@ganglion/xacpx-relay 0.2.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,271 @@
1
+ import{j as X,k as yt,r as T,l as ue,A as Su,m as K,n as Ma,d as ie,p as mt,q as zu,c as y,a as f,s as W,t as k,b as O,f as x,F as Y,x as oe,g as I,h as Xe,y as j,o as d,z as St,B as he,T as Ru,e as le,w as Ee,v as Oe,C as On,D as iu,E as Lu,G as bu,H as Oa,I as zn,J as Rn,K as rt,L as za,M as Tt,N as ft,O as Ra,P as La}from"./index-CyMgv7-t.js";import{_ as Na}from"./BrandLogo.vue_vue_type_script_setup_true_lang-XzbW2yS0.js";import{u as Pa}from"./theme-BYwU4uAb.js";/**
2
+ * @license lucide-vue-next v1.0.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const bs=X("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
7
+ * @license lucide-vue-next v1.0.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const pr=X("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]);/**
12
+ * @license lucide-vue-next v1.0.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const Ba=X("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
17
+ * @license lucide-vue-next v1.0.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 Dn=X("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
22
+ * @license lucide-vue-next v1.0.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const Ln=X("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]);/**
27
+ * @license lucide-vue-next v1.0.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const qa=X("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
32
+ * @license lucide-vue-next v1.0.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const Yt=X("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
37
+ * @license lucide-vue-next v1.0.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const Je=X("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
42
+ * @license lucide-vue-next v1.0.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 Ft=X("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
47
+ * @license lucide-vue-next v1.0.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 Ua=X("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
52
+ * @license lucide-vue-next v1.0.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 hr=X("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
57
+ * @license lucide-vue-next v1.0.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 ja=X("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
62
+ * @license lucide-vue-next v1.0.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 Ha=X("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
67
+ * @license lucide-vue-next v1.0.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 Va=X("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
72
+ * @license lucide-vue-next v1.0.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 br=X("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);/**
77
+ * @license lucide-vue-next v1.0.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 Wa=X("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"}]]);/**
82
+ * @license lucide-vue-next v1.0.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const Ga=X("corner-left-up",[["path",{d:"M14 9 9 4 4 9",key:"1af5af"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]]);/**
87
+ * @license lucide-vue-next v1.0.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const Ka=X("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
92
+ * @license lucide-vue-next v1.0.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const Za=X("file-diff",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]);/**
97
+ * @license lucide-vue-next v1.0.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const lu=X("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
102
+ * @license lucide-vue-next v1.0.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const Fu=X("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);/**
107
+ * @license lucide-vue-next v1.0.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const Ya=X("folder-git-2",[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);/**
112
+ * @license lucide-vue-next v1.0.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const $n=X("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"}]]);/**
117
+ * @license lucide-vue-next v1.0.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const Xa=X("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
122
+ * @license lucide-vue-next v1.0.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const Tn=X("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]);/**
127
+ * @license lucide-vue-next v1.0.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const It=X("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
132
+ * @license lucide-vue-next v1.0.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const Iu=X("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);/**
137
+ * @license lucide-vue-next v1.0.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const Ja=X("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);/**
142
+ * @license lucide-vue-next v1.0.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const Qa=X("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);/**
147
+ * @license lucide-vue-next v1.0.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const eo=X("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/**
152
+ * @license lucide-vue-next v1.0.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const to=X("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
157
+ * @license lucide-vue-next v1.0.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const uo=X("panel-left-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/**
162
+ * @license lucide-vue-next v1.0.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const no=X("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
167
+ * @license lucide-vue-next v1.0.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const mr=X("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
172
+ * @license lucide-vue-next v1.0.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const so=X("refresh-cw",[["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"}]]);/**
177
+ * @license lucide-vue-next v1.0.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const ro=X("rotate-ccw",[["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"}]]);/**
182
+ * @license lucide-vue-next v1.0.0 - ISC
183
+ *
184
+ * This source code is licensed under the ISC license.
185
+ * See the LICENSE file in the root directory of this source tree.
186
+ */const Nu=X("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
187
+ * @license lucide-vue-next v1.0.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */const ao=X("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
192
+ * @license lucide-vue-next v1.0.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */const oo=X("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
197
+ * @license lucide-vue-next v1.0.0 - ISC
198
+ *
199
+ * This source code is licensed under the ISC license.
200
+ * See the LICENSE file in the root directory of this source tree.
201
+ */const io=X("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
202
+ * @license lucide-vue-next v1.0.0 - ISC
203
+ *
204
+ * This source code is licensed under the ISC license.
205
+ * See the LICENSE file in the root directory of this source tree.
206
+ */const lo=X("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);/**
207
+ * @license lucide-vue-next v1.0.0 - ISC
208
+ *
209
+ * This source code is licensed under the ISC license.
210
+ * See the LICENSE file in the root directory of this source tree.
211
+ */const co=X("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
212
+ * @license lucide-vue-next v1.0.0 - ISC
213
+ *
214
+ * This source code is licensed under the ISC license.
215
+ * See the LICENSE file in the root directory of this source tree.
216
+ */const Pu=X("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/**
217
+ * @license lucide-vue-next v1.0.0 - ISC
218
+ *
219
+ * This source code is licensed under the ISC license.
220
+ * See the LICENSE file in the root directory of this source tree.
221
+ */const gr=X("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]);/**
222
+ * @license lucide-vue-next v1.0.0 - ISC
223
+ *
224
+ * This source code is licensed under the ISC license.
225
+ * See the LICENSE file in the root directory of this source tree.
226
+ */const at=X("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var ms=1;function fo(e){let t;try{t=JSON.parse(e)}catch{return{ok:!1,error:"invalid-json"}}return po(t)?t.protocolVersion!==ms?{ok:!1,error:"version-mismatch",detail:`expected protocolVersion ${ms}, got ${t.protocolVersion}`}:{ok:!0,envelope:t}:{ok:!1,error:"invalid-envelope"}}function po(e){if(typeof e!="object"||e===null)return!1;const t=e;return!(typeof t.protocolVersion!="number"||!Number.isInteger(t.protocolVersion)||t.kind!=="req"&&t.kind!=="res"&&t.kind!=="event"||typeof t.type!="string"||t.type.trim().length===0||t.id!==void 0&&typeof t.id!="string"||(t.kind==="req"||t.kind==="res")&&(typeof t.id!="string"||t.id.length===0))}function Gt(e){if(typeof e!="object"||e===null)return!1;const t=e.error;if(typeof t!="object"||t===null)return!1;const u=t;return typeof u.code=="string"&&typeof u.message=="string"}var ho="web.event",bo=new Set(["instance-status","control-event","notice"]),mo=new Set(["turn-output","turn-started","tool-event","turn-thought","plan","turn-usage","turn-finished","sessions-changed","scheduled-changed","orchestration-changed"]),go=new Set(["read","search","execute","edit","think","other"]),xo=new Set(["running","success","error"]),nt=e=>typeof e=="string",Ht=e=>e===void 0||typeof e=="string",vo=e=>e===void 0||typeof e=="number";function yo(e){switch(e.type){case"diff":return nt(e.path)&&nt(e.oldText)&&nt(e.newText);case"read":return nt(e.path)&&Ht(e.lines)&&Ht(e.preview);case"command":return nt(e.command)&&Ht(e.output)&&vo(e.exitCode);case"search":return nt(e.query)&&Ht(e.output);case"text":return nt(e.text);case"fields":return Array.isArray(e.fields)&&e.fields.every(t=>t!==null&&typeof t=="object"&&nt(t.label)&&nt(t.value))&&Ht(e.output);default:return!1}}function ko(e){if(typeof e!="object"||e===null)return!1;const t=e;return!(typeof t.toolCallId!="string"||typeof t.toolName!="string"||typeof t.title!="string"||typeof t.kind!="string"||!go.has(t.kind)||typeof t.status!="string"||!xo.has(t.status)||!Ht(t.error)||t.detail!==void 0&&(typeof t.detail!="object"||t.detail===null||!yo(t.detail)))}function _o(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.type!="string"||!mo.has(t.type)?!1:t.type==="turn-output"?typeof t.chatKey=="string"&&typeof t.sessionAlias=="string"&&typeof t.chunk=="string":t.type==="turn-finished"?typeof t.chatKey=="string"&&typeof t.sessionAlias=="string"&&typeof t.ok=="boolean":t.type==="scheduled-changed"?typeof t.chatKey=="string":t.type==="turn-started"?typeof t.chatKey=="string"&&typeof t.sessionAlias=="string":t.type==="turn-thought"?typeof t.chatKey=="string"&&typeof t.sessionAlias=="string"&&typeof t.chunk=="string":t.type==="plan"?typeof t.chatKey=="string"&&typeof t.sessionAlias=="string"&&Array.isArray(t.entries):t.type==="turn-usage"?typeof t.chatKey=="string"&&typeof t.sessionAlias=="string"&&typeof t.used=="number"&&typeof t.size=="number":t.type==="tool-event"?typeof t.chatKey=="string"&&typeof t.sessionAlias=="string"&&ko(t.step):!0}var wo=new Set(["task-completion","task-progress","coordinator-message"]);function Eo(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.kind=="string"&&wo.has(t.kind)&&typeof t.text=="string"}function Ao(e){if(e.kind!=="event"||e.type!==ho)return null;const t=e.payload;if(typeof t!="object"||t===null)return null;const u=t;return typeof u.instanceId!="string"||typeof u.kind!="string"||!bo.has(u.kind)||u.kind==="instance-status"&&typeof u.online!="boolean"||u.kind==="control-event"&&!_o(u.event)||u.kind==="notice"&&!Eo(u.notice)?null:t}function Co(e,t){let u=null,n=!1,s=0,r=null;const a=()=>{const o=location.protocol==="https:"?"wss":"ws";u=new WebSocket(`${o}://${location.host}/ws`),u.onmessage=i=>{const l=fo(String(i.data));if(!l.ok)return;const p=Ao(l.envelope);p&&e(p)},u.onopen=()=>{s=0,t==null||t(!0)},u.onclose=()=>{t==null||t(!1),!n&&(s=Math.min(s+1,6),r=setTimeout(()=>{r=null,n||a()},250*2**(s-1)))}};return a(),()=>{n=!0,r&&(clearTimeout(r),r=null),u==null||u.close()}}function Ct(e){if(Gt(e))throw e.error.code==="unknown-type"?new Error("This feature needs a newer connector — rebuild and reconnect the relay channel on that instance."):new Error(e.error.message||e.error.code);return e}const ot=yt("instances",()=>{const e=T([]);async function t(){const{instances:_}=await ue.get("/api/instances");e.value=_.map(g=>{const w=A(g.id);return{...g,sessions:(w==null?void 0:w.sessions)??[],sessionsLoaded:(w==null?void 0:w.sessionsLoaded)??!1,agents:(w==null?void 0:w.agents)??[],workspaces:(w==null?void 0:w.workspaces)??[],agentCatalog:(w==null?void 0:w.agentCatalog)??[]}});for(const g of e.value)g.online&&!g.sessionsLoaded&&u(g.id).catch(()=>{})}async function u(_){const{sessions:g}=await ue.rpc(_,"control.sessions.list"),w=A(_);w&&(w.sessions=g,w.sessionsLoaded=!0)}async function n(_){const{workspaces:g}=await ue.rpc(_,"control.workspaces.list"),w=A(_);w&&(w.workspaces=g)}async function s(_){const[{agents:g},{workspaces:w},{agents:D}]=await Promise.all([ue.rpc(_,"control.agents.list"),ue.rpc(_,"control.workspaces.list"),ue.rpc(_,"control.agents.catalog")]),M=A(_);M&&(M.agents=g,M.workspaces=w,M.agentCatalog=D)}async function r(_){const{agents:g}=await ue.rpc(_,"control.agents.catalog"),w=A(_);w&&(w.agentCatalog=g)}async function a(_,g,w){Ct(await ue.rpc(_,"control.agents.create",{name:g,driver:w})),await s(_)}async function o(_,g){Ct(await ue.rpc(_,"control.agents.remove",{name:g})),await s(_)}async function i(_,g){Ct(await ue.rpc(_,"control.workspaces.remove",{name:g})),await s(_)}async function l(_,g,w,D){const{workspace:M}=Ct(await ue.rpc(_,"control.workspaces.create",{name:g,cwd:w,description:D})),q=A(_);return q&&!q.workspaces.some($=>$.name===M.name)&&(q.workspaces=[...q.workspaces,M]),M}async function p(_,g,w,D,M,q){try{Ct(await ue.rpc(_,"control.sessions.create",{alias:g,agent:w,workspace:D,...M?{agentSessionId:M}:{},...q?{model:q}:{}}))}catch($){if($ instanceof Su&&($.status===504||$.code==="timeout"))return{pending:!0};throw $}return await u(_),{pending:!1}}async function c(_,g,w){const{sessions:D}=Ct(await ue.rpc(_,"control.sessions.native.list",{agent:g,workspace:w}));return D}async function v(_,g,w){const D=A(_),M=((D==null?void 0:D.sessions)??[]).find(q=>q.agent===g&&q.workspace===w);if(!M)return[];try{const q=Ct(await ue.rpc(_,"control.session.model.get",{sessionAlias:M.alias})),$=new Set,F=[];for(const R of[...q.current?[q.current]:[],...q.available])R&&!$.has(R)&&($.add(R),F.push(R));return F}catch{return[]}}async function h(_,g){await ue.rpc(_,"control.sessions.remove",{alias:g}),await u(_)}async function m(_,g){await ue.patch(`/api/instances/${_}`,{name:g});const w=A(_);w&&(w.name=g)}function E(_){if(_.kind==="instance-status"){const g=A(_.instanceId);g&&(g.online=_.online,_.online&&!g.sessionsLoaded&&u(_.instanceId).catch(()=>{}))}else _.kind==="control-event"&&_.event.type==="sessions-changed"&&u(_.instanceId).catch(()=>{})}function A(_){return e.value.find(g=>g.id===_)}return{instances:e,loadInstances:t,loadSessions:u,loadWorkspaces:n,loadFormOptions:s,loadAgentCatalog:r,createWorkspace:l,createAgent:a,removeAgent:o,removeWorkspace:i,createSession:p,listNativeSessions:c,listModelSuggestions:v,removeSession:h,renameInstance:m,applyEvent:E,byId:A}}),xr="xrelay.selectedSession";function Do(e,t){try{localStorage.setItem(xr,JSON.stringify({instanceId:e,alias:t}))}catch{}}function $o(){try{const e=localStorage.getItem(xr);if(!e)return null;const t=JSON.parse(e);return typeof t.instanceId=="string"&&typeof t.alias=="string"?{instanceId:t.instanceId,alias:t.alias}:null}catch{return null}}function To(e,t){const u=e[e.length-1];(u==null?void 0:u.type)==="text"?u.text+=t:e.push({type:"text",text:t})}function So(e,t){const u=e[e.length-1];(u==null?void 0:u.type)==="reasoning"?u.text+=t:e.push({type:"reasoning",text:t})}function Fo(e,t){const u=e.findIndex(n=>n.type==="tool"&&n.step.toolCallId===t.toolCallId);u>=0?e[u]={type:"tool",step:t}:e.push({type:"tool",step:t})}const gs=e=>e.filter(t=>t.type==="text").map(t=>t.text).join(""),xs=e=>e.filter(t=>t.type==="tool").map(t=>t.step),Io=e=>e.filter(t=>t.type==="reasoning").map(t=>t.text).join(""),kt=yt("chat",()=>{const e=T(null),t=T(null),u=T([]),n=T({}),s=T({}),r=T({}),a=T(new Set),o=new Set,i=(N,L)=>`${N}\0${L}`;function l(N,L){const Z=i(N,L);return n.value[Z]?"working":a.value.has(Z)?"unread":"idle"}function p(N,L){var Z;return((Z=n.value[i(N,L)])==null?void 0:Z.startedAt)??null}const c=K(()=>e.value&&t.value?i(e.value,t.value):null),v=K(()=>c.value?n.value[c.value]??null:null),h=K(()=>c.value?s.value[c.value]??null:null),m=K(()=>c.value?r.value[c.value]??null:null),E=K(()=>v.value?gs(v.value.parts):""),A=K(()=>v.value?xs(v.value.parts):[]),_=K(()=>v.value!==null),g=T(!1),w=T(""),D=T(null);let M=0;function q(N){D.value={taskId:N,nonce:++M}}const $=100,F=T(!1),R=T(!1);function Q(N){let L=n.value[N];return L||(L={parts:[],status:"working",startedAt:Date.now()},n.value[N]=L),L}function te(N,L,Z,ge){const xe=i(N,L),Ce=n.value[xe];delete n.value[xe];const zt=N===e.value&&L===t.value;if(Z==="error"&&zt&&(w.value=ge??"turn-failed"),!Ce)return;const wt=gs(Ce.parts),it=xs(Ce.parts),Pe=Io(Ce.parts);if((wt.length>0||it.length>0||Pe.length>0)&&zt){const B=it.length>0||Pe.length>0?{toolSteps:it,...Pe?{reasoning:Pe}:{},parts:Ce.parts}:void 0;u.value.push({instanceId:N,sessionAlias:L,direction:"out",text:wt,createdAt:new Date().toISOString(),failed:Z==="error",status:Z,...B?{structured:B}:{}})}}function G(N,L){e.value=N,t.value=L,Do(N,L),u.value=[],w.value="",F.value=!1,R.value=!1;const Z=i(N,L);if(a.value.has(Z)){const ge=new Set(a.value);ge.delete(Z),a.value=ge}}async function J(){if(!e.value||!t.value)return;const{messages:N,hasMore:L}=await ue.get(`/api/instances/${e.value}/sessions/${t.value}/messages?limit=${$}`);u.value=N,F.value=L??!1}async function ae(){var ge;if(!e.value||!t.value||R.value||!F.value)return;const N=(ge=u.value.find(xe=>typeof xe.id=="number"))==null?void 0:ge.id;if(N===void 0)return;const L=e.value,Z=t.value;R.value=!0;try{const{messages:xe,hasMore:Ce}=await ue.get(`/api/instances/${L}/sessions/${Z}/messages?before=${N}&limit=${$}`);if(L!==e.value||Z!==t.value)return;xe.length>0&&(u.value=[...xe,...u.value]),F.value=Ce??!1}catch{}finally{R.value=!1}}function U(N){for(const L of N){const Z=i(L.instanceId,L.sessionAlias);n.value[Z]||o.has(Z)||(n.value[Z]={parts:L.parts,status:L.status,startedAt:L.startedAt})}}async function me(){const{turns:N}=await ue.get("/api/active-turns");U(N)}function Re(N){if(N.kind==="instance-status"&&!N.online){const Z=`${N.instanceId}\0`;for(const xe of Object.keys(n.value))xe.startsWith(Z)&&delete n.value[xe];const ge=new Set([...a.value].filter(xe=>!xe.startsWith(Z)));ge.size!==a.value.size&&(a.value=ge);return}if(N.kind!=="control-event")return;const L=N.event;if(L.type==="turn-started"){const Z=i(N.instanceId,L.sessionAlias);o.delete(Z),Q(Z);const ge=N.instanceId===e.value&&L.sessionAlias===t.value;L.prompt&&ge&&u.value.push({instanceId:N.instanceId,sessionAlias:L.sessionAlias,direction:"in",text:L.prompt,createdAt:new Date().toISOString(),...L.scheduled?{scheduled:L.scheduled}:{}})}else if(L.type==="turn-output"){const Z=Q(i(N.instanceId,L.sessionAlias));To(Z.parts,L.chunk),Z.status="streaming"}else if(L.type==="tool-event"){const Z=Q(i(N.instanceId,L.sessionAlias));Fo(Z.parts,L.step)}else if(L.type==="turn-thought")So(Q(i(N.instanceId,L.sessionAlias)).parts,L.chunk);else if(L.type==="plan")s.value[i(N.instanceId,L.sessionAlias)]=L.entries;else if(L.type==="turn-usage")r.value[i(N.instanceId,L.sessionAlias)]={used:L.used,size:L.size};else if(L.type==="session-history")N.instanceId===e.value&&L.sessionAlias===t.value&&J().catch(()=>{});else if(L.type==="turn-finished"){const Z=L.cancelled?"cancelled":L.ok?"done":"error",ge=N.instanceId===e.value&&L.sessionAlias===t.value;if(o.add(i(N.instanceId,L.sessionAlias)),te(N.instanceId,L.sessionAlias,Z,L.errorMessage),!ge&&(Z==="done"||Z==="error")){const xe=i(N.instanceId,L.sessionAlias),Ce=new Set(a.value);Ce.add(xe),a.value=Ce}}}async function _t(N){if(!e.value||!t.value)return;w.value="",g.value=!0;const L={instanceId:e.value,sessionAlias:t.value,direction:"in",text:N,createdAt:new Date().toISOString()};u.value.push(L);try{const Z=await ue.rpc(e.value,"control.prompt",{sessionAlias:t.value,text:N});Z&&Z.ok===!1&&(w.value=Z.errorMessage??"prompt-failed",L.failed=!0)}catch(Z){Z instanceof Su&&(Z.status===504||Z.code==="timeout")||(w.value=Z instanceof Su?Z.code:"send-failed",L.failed=!0)}finally{g.value=!1}}async function Ot(N){if(!N.failed||N.direction!=="in")return;const L=u.value.indexOf(N);L>=0&&u.value.splice(L,1),await _t(N.text)}async function Jt(){if(!e.value||!t.value)return;const N=e.value,L=t.value;te(N,L,"cancelled");try{await ue.rpc(N,"control.prompt.cancel",{sessionAlias:L})}catch(Z){w.value=Z instanceof Su?Z.code:"cancel-failed"}}return{instanceId:e,sessionAlias:t,messages:u,streaming:E,liveTurn:v,sessionPlan:h,sessionUsage:m,liveToolSteps:A,busy:_,unread:a,sessionAttention:l,runningSince:p,sending:g,error:w,scrollRequest:D,requestScrollToScheduled:q,hasMoreOlder:F,loadingOlder:R,select:G,loadHistory:J,loadOlder:ae,loadActiveTurns:me,seedActiveTurns:U,applyEvent:Re,send:_t,resend:Ot,cancel:Jt}}),mu=yt("tasks",()=>{const e=T([]),t=T([]),u=T(null);async function n(p,c){const{tasks:v}=await ue.rpc(p,"control.scheduled.list");e.value=v.filter(h=>h.sessionAlias===c)}async function s(p){const{tasks:c}=await ue.rpc(p,"control.orchestration.list");t.value=c}async function r(p,c){u.value={instanceId:p,sessionAlias:c},await Promise.all([n(p,c).catch(()=>{e.value=[]}),s(p).catch(()=>{t.value=[]})])}async function a(p,c,v,h){await ue.rpc(p,"control.scheduled.create",{sessionAlias:c,executeAt:v,message:h}),await n(p,c)}async function o(p){const c=u.value;c&&(await ue.rpc(c.instanceId,"control.scheduled.cancel",{id:p}),await n(c.instanceId,c.sessionAlias))}async function i(p){const c=u.value;c&&(await ue.rpc(c.instanceId,"control.orchestration.cancel",{taskId:p}),await s(c.instanceId))}function l(p){if(p.kind!=="control-event")return;const c=u.value;!c||p.instanceId!==c.instanceId||(p.event.type==="scheduled-changed"?n(c.instanceId,c.sessionAlias).catch(()=>{}):p.event.type==="orchestration-changed"&&s(c.instanceId).catch(()=>{}))}return{scheduled:e,orchestration:t,scope:u,loadScheduled:n,loadOrchestration:s,loadFor:r,createScheduled:a,cancelScheduled:o,cancelOrchestration:i,applyEvent:l}}),vs=20,vr=yt("notices",()=>{const e=T([]);let t=0;function u(s){s.kind==="notice"&&(e.value.unshift({id:++t,instanceId:s.instanceId,kind:s.notice.kind,text:s.notice.text}),e.value.length>vs&&(e.value.length=vs))}function n(s){e.value=e.value.filter(r=>r.id!==s)}return{items:e,applyEvent:u,dismiss:n}}),yr=yt("connection",()=>{const e=T(!1);function t(u){e.value=u}return{online:e,setOnline:t}});function uu(e){if(Gt(e))throw new Error(e.error.message||e.error.code);return e}const Bu=yt("files",()=>{const e=T(null),t=T(null),u=T(""),n=T([]),s=T(null),r=T(null),a=T(null),o=T(!1),i=T("files"),l=T({}),p=T(null),c=T(""),v=T([]),h=T(!1),m=T(!1),E=T(!1),A=T("");function _(){t.value=null,u.value="",n.value=[],s.value=null,r.value=null,a.value=null,o.value=!1,l.value={},c.value="",v.value=[],A.value=""}async function g(G,J){e.value=G,t.value=J,s.value=null,r.value=null,a.value=null,o.value=!1,l.value={},c.value="",v.value=[],await M(""),w()}async function w(){if(!(!e.value||!t.value))try{const G=await ue.rpc(e.value,"control.fs.diff",{workspace:t.value});if(Gt(G)){l.value={};return}const J={};for(const ae of G.files)J[ae.path]=ae.status;l.value=J}catch{l.value={}}}async function D(G,J){if(!G||!J){p.value=null;return}try{const ae=await ue.rpc(G,"control.fs.diff",{workspace:J});if(Gt(ae)){p.value=null;return}const U=typeof ae.branch=="string"?ae.branch:void 0,me=ae.detached===!0;p.value={workspace:J,changedCount:ae.files.length,...U?{branch:U}:{},...me?{detached:!0}:{}}}catch{p.value=null}}async function M(G){if(!(!e.value||!t.value)){E.value=!0,A.value="",s.value=null;try{const J=uu(await ue.rpc(e.value,"control.fs.list",{workspace:t.value,path:G}));u.value=J.path,n.value=J.entries}catch(J){A.value=J instanceof Error?J.message:"list-failed"}finally{E.value=!1}}}async function q(G){const J=u.value?`${u.value}/${G.name}`:G.name;if(G.type==="dir")return M(J);if(!(!e.value||!t.value)){E.value=!0,A.value="";try{s.value=uu(await ue.rpc(e.value,"control.fs.read",{workspace:t.value,path:J}))}catch(ae){A.value=ae instanceof Error?ae.message:"read-failed"}finally{E.value=!1}}}async function $(G){if(!(!e.value||!t.value)){E.value=!0,A.value="";try{s.value=uu(await ue.rpc(e.value,"control.fs.read",{workspace:t.value,path:G}))}catch(J){A.value=J instanceof Error?J.message:"read-failed"}finally{E.value=!1}}}async function F(){if(!(!e.value||!t.value)){if(i.value==="changes"){await te(a.value??void 0);return}await M(u.value),await w(),await D(e.value,t.value)}}function R(G){const J=u.value?u.value.split("/"):[];M(J.slice(0,G+1).join("/"))}async function Q(G){if(c.value=G,!e.value||!t.value||!G.trim()){v.value=[],h.value=!1;return}m.value=!0,A.value="";try{const J=uu(await ue.rpc(e.value,"control.fs.search",{workspace:t.value,query:G}));v.value=J.matches,h.value=J.truncated}catch(J){A.value=J instanceof Error?J.message:"search-failed"}finally{m.value=!1}}async function te(G){if(!(!e.value||!t.value)){E.value=!0,A.value="",a.value=G??null;try{r.value=uu(await ue.rpc(e.value,"control.fs.diff",{workspace:t.value,...G?{path:G}:{}})),o.value=!1}catch(J){const ae=J instanceof Error?J.message:"diff-failed";r.value=null,ae==="not-a-git-repo"?o.value=!0:A.value=ae}finally{E.value=!1}}}return{instanceId:e,workspace:t,path:u,entries:n,file:s,diff:r,diffPath:a,notGit:o,changed:l,gitSummary:p,tab:i,query:c,results:v,searchTruncated:h,searching:m,loading:E,error:A,reset:_,selectWorkspace:g,list:M,open:q,openFile:$,up:R,search:Q,loadDiff:te,loadStatus:w,loadGitSummary:D,refresh:F}});function kr(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function cn(e,t){return kr(`${e}-${t}`)}function dn(e,t){const u=new Set(t);if(!u.has(e))return e;for(let n=2;;n+=1){const s=`${e}-${n}`;if(!u.has(s))return s}}function ys(e){const u=e.replace(/[\\/]+$/,"").split(/[\\/]/).pop()??"";return kr(u)}function _r(){return Ma.global.locale.value}function ks(e){if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleTimeString(_r(),{hour:"2-digit",minute:"2-digit"})}function Nn(e){if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleString(_r())}const Mo=["data-test","aria-label","aria-expanded"],Oo={key:0,class:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-lg border border-border bg-raised py-1 shadow-xl"},zo={key:0,class:"px-3 pb-0.5 pt-1.5 text-[11px] font-medium uppercase tracking-wide text-fg-muted"},Ro=["data-value","onMousedown","onMouseenter"],Lo={class:"truncate"},fn=ie({__name:"SelectMenu",props:{modelValue:{},groups:{},placeholder:{},dataTest:{},ariaLabel:{}},emits:["update:modelValue"],setup(e,{emit:t}){const u=e,n=t,s=T(!1),r=T(null),a=T(-1),o=K(()=>u.groups.flatMap(_=>_.options)),i=K(()=>{var _;return((_=o.value.find(g=>g.value===u.modelValue))==null?void 0:_.label)??""});function l(){s.value=!0;const _=o.value.findIndex(g=>g.value===u.modelValue&&!g.disabled);a.value=_>=0?_:o.value.findIndex(g=>!g.disabled)}function p(){s.value=!1}function c(){s.value?p():l()}function v(_){_.disabled||(n("update:modelValue",_.value),p())}function h(_){const g=o.value;if(!g.length)return;let w=a.value;for(let D=0;D<g.length;D++)if(w=(w+_+g.length)%g.length,!g[w].disabled){a.value=w;return}}function m(_){if(!s.value){(_.key==="Enter"||_.key===" "||_.key==="ArrowDown")&&(_.preventDefault(),l());return}if(_.key==="ArrowDown")_.preventDefault(),h(1);else if(_.key==="ArrowUp")_.preventDefault(),h(-1);else if(_.key==="Enter"||_.key===" "){_.preventDefault();const g=o.value[a.value];g&&v(g)}else _.key==="Escape"&&(_.stopPropagation(),p())}function E(_){s.value&&r.value&&!r.value.contains(_.target)&&p()}mt(()=>document.addEventListener("mousedown",E)),zu(()=>document.removeEventListener("mousedown",E));function A(_,g){let w=0;for(let D=0;D<_;D++)w+=u.groups[D].options.length;return w+g}return(_,g)=>(d(),y("div",{ref_key:"boxEl",ref:r,class:"relative"},[f("button",{type:"button","data-test":e.dataTest,"aria-label":e.ariaLabel,"aria-expanded":s.value,class:"flex w-full items-center justify-between rounded-lg border border-border bg-bg py-2 pl-3 pr-2 text-left text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",onClick:c,onKeydown:m},[f("span",{class:W(["truncate",i.value?"text-fg":"text-fg-muted"])},k(i.value||e.placeholder||"Select…"),3),O(x(Je),{size:16,class:W(["ml-2 shrink-0 text-fg-muted transition-transform",s.value?"rotate-180":""])},null,8,["class"])],40,Mo),s.value?(d(),y("ul",Oo,[(d(!0),y(Y,null,oe(e.groups,(w,D)=>(d(),y(Y,{key:D},[w.label?(d(),y("li",zo,k(w.label),1)):I("",!0),(d(!0),y(Y,null,oe(w.options,(M,q)=>(d(),y("li",{key:M.value,"data-value":M.value,class:W(["flex items-center justify-between px-3 py-1.5 text-sm",[M.disabled?"cursor-not-allowed text-fg-muted/50":A(D,q)===a.value?"cursor-pointer bg-accent/15 text-fg":"cursor-pointer text-fg-muted hover:bg-fg/5"]]),onMousedown:Xe($=>v(M),["prevent"]),onMouseenter:$=>!M.disabled&&(a.value=A(D,q))},[f("span",Lo,k(M.label),1),M.value===e.modelValue?(d(),j(x(Yt),{key:0,size:14,class:"ml-2 shrink-0 text-accent"})):I("",!0)],42,Ro))),128))],64))),128))])):I("",!0)],512))}}),No={class:"w-full max-w-md rounded-xl border border-border bg-raised shadow-xl","data-test":"new-session-dialog"},Po={class:"flex items-center justify-between border-b border-border px-5 py-3"},Bo={class:"text-sm font-semibold text-fg"},qo={class:"font-normal text-fg-muted"},Uo=["aria-label"],jo={class:"space-y-4 px-5 py-4"},Ho={key:0,"data-test":"ns-pending",class:"rounded-lg bg-info/10 px-3 py-3 text-xs text-info"},Vo={key:1,class:"py-6 text-center text-sm text-fg-muted"},Wo={class:"block"},Go={class:"mb-1 block text-xs font-medium text-fg-muted"},Ko={class:"flex gap-1"},Zo={class:"block"},Yo={class:"mb-1 block text-xs font-medium text-fg-muted"},Xo={class:"font-normal text-fg-muted"},Jo=["placeholder"],Qo={class:"block"},ei={class:"mb-1 block text-xs font-medium text-fg-muted"},ti={class:"block"},ui={class:"mb-1 flex items-center justify-between"},ni={class:"text-xs font-medium text-fg-muted"},si={key:0,class:"flex gap-1"},ri=["placeholder"],ai={key:0,class:"block"},oi={class:"mb-1 block text-xs font-medium text-fg-muted"},ii={class:"font-normal text-fg-muted"},li=["aria-label"],ci={key:0,"data-test":"ns-model-list",class:"absolute z-10 mt-1 max-h-48 w-full overflow-auto rounded-lg border border-border bg-raised py-1 shadow-xl"},di=["onMousedown","onMouseenter"],fi={class:"truncate"},pi={key:0,class:"ml-2 shrink-0 text-xs text-fg-muted"},hi={key:1,class:"block"},bi={class:"mb-1 block text-xs font-medium text-fg-muted"},mi={key:0,"data-test":"ns-native-loading",class:"space-y-1.5"},gi={class:"flex items-center gap-2 text-xs text-fg-muted"},xi={key:2,"data-test":"ns-native-error",class:"rounded-lg bg-danger/10 px-3 py-2 text-xs text-danger"},vi={class:"flex items-start gap-1.5"},yi={class:"min-w-0"},ki={class:"break-words font-medium"},_i={key:0,class:"mt-1 text-danger/80"},wi={key:3,"data-test":"ns-native-empty",class:"rounded-lg bg-bg px-3 py-2 text-xs text-fg-muted"},Ei={key:2,"data-test":"ns-error",class:"rounded-lg bg-danger/10 px-3 py-2 text-xs text-danger"},Ai={class:"flex justify-end gap-2 border-t border-border px-5 py-3"},Ci=["disabled"],Di=ie({__name:"NewSessionDialog",props:{instanceId:{},instanceName:{}},emits:["created","close"],setup(e,{emit:t}){const u=e,n=t,{t:s}=St(),r=ot(),a=K(()=>r.byId(u.instanceId)),o=T(""),i=T(""),l=T("new"),p=T("existing"),c=T(""),v=T(""),h=T(""),m=T([]),E=T(!1),A=T(0),_=T(null),g=K(()=>{const S=new Set(["default"]),H=["default"];for(const B of m.value)B&&!S.has(B)&&(S.add(B),H.push(B));return H}),w=K(()=>{const S=h.value.trim().toLowerCase();return S?g.value.filter(H=>H.toLowerCase().includes(S)):g.value});function D(){E.value=!0,A.value=0}function M(){E.value=!1}function q(S){h.value=S==="default"?"":S,M()}function $(S){if(S.key==="ArrowDown"){if(S.preventDefault(),!E.value){D();return}A.value=Math.min(A.value+1,w.value.length-1)}else S.key==="ArrowUp"?(S.preventDefault(),A.value=Math.max(A.value-1,0)):S.key==="Enter"?E.value&&A.value>=0&&A.value<w.value.length?(S.preventDefault(),q(w.value[A.value])):Pe():S.key==="Escape"&&E.value&&(S.stopPropagation(),M())}function F(S){E.value&&_.value&&!_.value.contains(S.target)&&M()}mt(()=>document.addEventListener("mousedown",F)),zu(()=>document.removeEventListener("mousedown",F));const R=T(!1),Q=T(!1),te=T(""),G=T(""),J=T(!0),ae=T([]),U=T(""),me=T(!1),Re=T("");mt(async()=>{var S,H,B,de,se,Me;try{await r.loadFormOptions(u.instanceId)}catch(Be){G.value=Be instanceof Error?Be.message:s("session.failedLoadOptions")}finally{J.value=!1}i.value=((H=(S=a.value)==null?void 0:S.agents[0])==null?void 0:H.name)??((de=(B=a.value)==null?void 0:B.agentCatalog.find(Be=>Be.installed!=="unknown"))==null?void 0:de.driver)??"",c.value=((Me=(se=a.value)==null?void 0:se.workspaces[0])==null?void 0:Me.name)??""});const _t=K(()=>{var S;return new Set((((S=a.value)==null?void 0:S.agents)??[]).map(H=>H.name))}),Ot=K(()=>{var S;return(((S=a.value)==null?void 0:S.agentCatalog)??[]).filter(H=>!H.configured)}),Jt=K(()=>{var B;const S=[],H=((B=a.value)==null?void 0:B.agents)??[];return H.length&&S.push({label:s("session.configured"),options:H.map(de=>({value:de.name,label:`${de.name} · ${de.driver}`}))}),Ot.value.length&&S.push({label:s("session.availableDrivers"),options:Ot.value.map(de=>({value:de.driver,label:de.installed==="unknown"?s("session.cliNotDetected",{driver:de.driver}):de.driver,disabled:de.installed==="unknown"}))}),S}),N=K(()=>{var S;return[{options:(((S=a.value)==null?void 0:S.workspaces)??[]).map(H=>({value:H.name,label:`${H.name} — ${H.cwd}`}))}]}),L=K(()=>p.value==="path"?v.value.trim()?ys(v.value):"":c.value),Z=K(()=>L.value&&i.value?cn(L.value,i.value):s("session.autoAlias")),ge=K(()=>_t.value.has(i.value));async function xe(){var S;if(U.value="",ae.value=[],Re.value="",!(l.value!=="native"||!i.value||!c.value)){if(!ge.value){Re.value=s("session.pickConfiguredAgent");return}me.value=!0;try{ae.value=await r.listNativeSessions(u.instanceId,i.value,c.value),U.value=((S=ae.value[0])==null?void 0:S.sessionId)??""}catch(H){Re.value=H instanceof Error?H.message:s("session.failedListNative")}finally{me.value=!1}}}he([l,i,c],()=>{l.value==="native"&&(p.value="existing",xe())}),he([i,c],async()=>{m.value=[],!(!i.value||!c.value)&&(m.value=await r.listModelSuggestions(u.instanceId,i.value,c.value))});const Ce=K(()=>{const S=Re.value;return S&&/auth|login|unauthor|credential|sign[\s-]?in/i.test(S)?s("session.authHint",{agent:i.value||s("session.thisAgent")}):""});function zt(S){const H=(S.title??"").trim()||S.sessionId,B=S.sessionId.length>8?`…${S.sessionId.slice(-8)}`:S.sessionId,de=S.updatedAt?` · ${Nn(S.updatedAt)}`:"";return`${H} (${B})${de}`}const wt=K(()=>[{options:ae.value.map(S=>({value:S.sessionId,label:zt(S)}))}]),it=K(()=>R.value||!i.value?!1:l.value==="native"?!!U.value:p.value==="existing"?!!c.value:!!v.value.trim());async function Pe(){var S,H;if(it.value){R.value=!0,G.value="";try{const B=i.value,de=(((S=a.value)==null?void 0:S.sessions)??[]).map(qe=>qe.alias);if(l.value==="native"){const qe=c.value,tt=o.value.trim()||dn(cn(qe,B),de);if(!qe||!tt||!U.value){G.value=s("session.pickNativeAndAlias");return}if((await r.createSession(u.instanceId,tt,B,qe,U.value)).pending){te.value=tt,Q.value=!0;return}n("created",tt),n("close");return}let se=c.value;if(p.value==="path"){const qe=(((H=a.value)==null?void 0:H.workspaces)??[]).map(tt=>tt.name);se=dn(ys(v.value),qe)}const Me=o.value.trim()||dn(cn(se,B),de);if(!se||!Me){G.value=s("session.couldNotDeriveName");return}_t.value.has(B)||await r.createAgent(u.instanceId,B,B),p.value==="path"&&await r.createWorkspace(u.instanceId,se,v.value.trim());const Be=h.value.trim(),He=Be&&Be.toLowerCase()!=="default"?Be:void 0;if((await r.createSession(u.instanceId,Me,B,se,void 0,He)).pending){te.value=Me,Q.value=!0;return}n("created",Me),n("close")}catch(B){G.value=B instanceof Error?B.message:s("session.createFailed")}finally{R.value=!1}}}return(S,H)=>(d(),j(Ru,{to:"body"},[f("div",{class:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",onClick:H[14]||(H[14]=Xe(B=>n("close"),["self"]))},[f("div",No,[f("header",Po,[f("h2",Bo,[le(k(S.$t("session.newSession"))+" ",1),f("span",qo,"· "+k(e.instanceName),1)]),f("button",{class:"rounded p-1 text-fg-muted hover:bg-fg/5 hover:text-fg","aria-label":S.$t("session.close"),onClick:H[0]||(H[0]=B=>n("close"))},[O(x(at),{size:16})],8,Uo)]),f("div",jo,[Q.value?(d(),y("div",Ho,k(S.$t("session.creating")),1)):J.value?(d(),y("div",Vo,k(S.$t("session.loadingOptions")),1)):(d(),y(Y,{key:2},[f("div",Wo,[f("span",Go,k(S.$t("session.source")),1),f("div",Ko,[f("button",{type:"button","data-test":"ns-source-new",class:W(["flex-1 rounded px-2 py-1 text-xs",l.value==="new"?"bg-accent text-white":"bg-bg border border-border text-fg-muted hover:bg-fg/5"]),onClick:H[1]||(H[1]=B=>l.value="new")},k(S.$t("session.newSession")),3),f("button",{type:"button","data-test":"ns-source-native",class:W(["flex-1 rounded px-2 py-1 text-xs",l.value==="native"?"bg-accent text-white":"bg-bg border border-border text-fg-muted hover:bg-fg/5"]),onClick:H[2]||(H[2]=B=>l.value="native")},k(S.$t("session.nativeSession")),3)])]),f("label",Zo,[f("span",Yo,[le(k(S.$t("session.sessionAlias"))+" ",1),f("span",Xo,k(S.$t("session.optional")),1)]),Ee(f("input",{"onUpdate:modelValue":H[3]||(H[3]=B=>o.value=B),"data-test":"ns-alias",placeholder:Z.value,class:"w-full rounded-lg border border-border bg-bg px-3 py-2 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",onKeydown:On(Pe,["enter"])},null,40,Jo),[[Oe,o.value]])]),f("div",Qo,[f("span",ei,k(S.$t("session.agent")),1),O(fn,{modelValue:i.value,"onUpdate:modelValue":H[4]||(H[4]=B=>i.value=B),groups:Jt.value,"data-test":"ns-agent","aria-label":S.$t("session.agent"),placeholder:S.$t("session.selectAgent")},null,8,["modelValue","groups","aria-label","placeholder"])]),f("div",ti,[f("div",ui,[f("span",ni,k(S.$t("session.workspace")),1),l.value==="new"?(d(),y("div",si,[f("button",{type:"button","data-test":"ns-ws-mode-existing",class:W(["rounded px-2 py-0.5 text-xs",p.value==="existing"?"bg-accent text-white":"bg-bg border border-border text-fg-muted hover:bg-fg/5"]),onClick:H[5]||(H[5]=B=>p.value="existing")},k(S.$t("session.existing")),3),f("button",{type:"button","data-test":"ns-ws-mode-path",class:W(["rounded px-2 py-0.5 text-xs",p.value==="path"?"bg-accent text-white":"bg-bg border border-border text-fg-muted hover:bg-fg/5"]),onClick:H[6]||(H[6]=B=>p.value="path")},k(S.$t("session.newPath")),3)])):I("",!0)]),p.value==="existing"?(d(),j(fn,{key:0,modelValue:c.value,"onUpdate:modelValue":H[7]||(H[7]=B=>c.value=B),groups:N.value,"data-test":"ns-workspace","aria-label":S.$t("session.workspace"),placeholder:S.$t("session.selectWorkspace")},null,8,["modelValue","groups","aria-label","placeholder"])):Ee((d(),y("input",{key:1,"onUpdate:modelValue":H[8]||(H[8]=B=>v.value=B),"data-test":"ns-ws-path",placeholder:S.$t("session.pathPlaceholder"),class:"w-full rounded-lg border border-border bg-bg px-3 py-2 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},null,8,ri)),[[Oe,v.value]])]),l.value==="new"?(d(),y("div",ai,[f("span",oi,[le(k(S.$t("session.model"))+" ",1),f("span",ii,k(S.$t("session.optional")),1)]),f("div",{ref_key:"modelBoxEl",ref:_,class:"relative"},[Ee(f("input",{"onUpdate:modelValue":H[9]||(H[9]=B=>h.value=B),"data-test":"ns-model",placeholder:"default",autocomplete:"off",class:"w-full rounded-lg border border-border bg-bg py-2 pl-3 pr-9 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",onFocus:D,onInput:D,onKeydown:$},null,544),[[Oe,h.value]]),f("button",{type:"button",tabindex:"-1","aria-label":S.$t("session.toggleModelList"),class:"absolute right-1.5 top-1/2 -translate-y-1/2 rounded p-1 text-fg-muted hover:text-fg",onClick:H[10]||(H[10]=B=>E.value?M():D())},[O(x(Je),{size:16,class:W(["transition-transform",E.value?"rotate-180":""])},null,8,["class"])],8,li),E.value&&w.value.length?(d(),y("ul",ci,[(d(!0),y(Y,null,oe(w.value,(B,de)=>(d(),y("li",{key:B,class:W(["flex cursor-pointer items-center justify-between px-3 py-1.5 text-sm",de===A.value?"bg-accent/15 text-fg":"text-fg-muted hover:bg-fg/5"]),onMousedown:Xe(se=>q(B),["prevent"]),onMouseenter:se=>A.value=de},[f("span",fi,k(B),1),B==="default"?(d(),y("span",pi,k(S.$t("session.agentDefault")),1)):I("",!0)],42,di))),128))])):I("",!0)],512)])):I("",!0),l.value==="native"?(d(),y("div",hi,[f("span",bi,k(S.$t("session.nativeSession")),1),me.value?(d(),y("div",mi,[f("div",gi,[O(x(It),{size:13,class:"animate-spin motion-reduce:animate-none text-accent"}),le(" "+k(S.$t("session.listingNative")),1)]),(d(),y(Y,null,oe(3,B=>f("div",{key:B,class:"h-7 animate-pulse rounded-lg bg-fg/5 motion-reduce:animate-none",style:Lu({width:`${92-B*12}%`})},null,4)),64))])):ae.value.length?(d(),j(fn,{key:1,modelValue:U.value,"onUpdate:modelValue":H[11]||(H[11]=B=>U.value=B),groups:wt.value,"data-test":"ns-native","aria-label":S.$t("session.nativeSession"),placeholder:S.$t("session.selectNative")},null,8,["modelValue","groups","aria-label","placeholder"])):Re.value?(d(),y("div",xi,[f("div",vi,[O(x(iu),{size:13,class:"mt-0.5 shrink-0"}),f("div",yi,[f("p",ki,k(Re.value),1),Ce.value?(d(),y("p",_i,k(Ce.value),1)):I("",!0)])])])):(d(),y("p",wi,k(S.$t("session.noNativeSessions")),1))])):I("",!0),G.value?(d(),y("p",Ei,k(G.value),1)):I("",!0)],64))]),f("footer",Ai,[Q.value?(d(),y("button",{key:0,"data-test":"ns-pending-close",class:"rounded-lg bg-accent px-4 py-1.5 text-sm font-medium text-white hover:bg-accent-hover",onClick:H[12]||(H[12]=B=>{n("created",te.value),n("close")})},k(S.$t("common.ok")),1)):(d(),y(Y,{key:1},[f("button",{class:"rounded-lg px-3 py-1.5 text-sm text-fg-muted hover:bg-fg/5",onClick:H[13]||(H[13]=B=>n("close"))},k(S.$t("common.cancel")),1),f("button",{"data-test":"ns-create",disabled:!it.value,class:"rounded-lg bg-accent px-4 py-1.5 text-sm font-medium text-white enabled:hover:bg-accent-hover disabled:opacity-40",onClick:Pe},k(R.value?S.$t("session.creatingButton"):S.$t("session.create")),9,Ci)],64))])])])]))}}),$i={class:"space-y-3"},Ti={class:"text-sm font-semibold uppercase text-fg-muted"},Si={key:0,"data-test":"wm-error",class:"rounded bg-danger/10 px-3 py-2 text-sm text-danger"},Fi={key:1,"data-test":"wm-empty",class:"text-sm text-fg-muted"},Ii={key:2,class:"divide-y divide-border rounded border border-border"},Mi={class:"font-medium"},Oi={class:"text-fg-muted"},zi=["data-test","title","aria-label","disabled","onClick"],Ri={class:"grid grid-cols-1 gap-2 sm:grid-cols-3"},Li=["placeholder"],Ni=["placeholder"],Pi=["placeholder"],Bi=["disabled"],qi=ie({__name:"WorkspacesManager",props:{instanceId:{}},setup(e){const t=e,u=ot(),{t:n}=St(),s=K(()=>u.byId(t.instanceId)),r=T(""),a=T(""),o=T(""),i=T(""),l=T(!1);async function p(){if(!(!r.value.trim()||!a.value.trim()||l.value)){l.value=!0,i.value="";try{await u.createWorkspace(t.instanceId,r.value.trim(),a.value.trim(),o.value.trim()||void 0),r.value="",a.value="",o.value=""}catch(v){i.value=v instanceof Error?v.message:n("workspaces.createFailed")}finally{l.value=!1}}}async function c(v){if(!(l.value||!await bu({title:n("workspaces.removeTitle"),message:n("workspaces.removeBody",{name:v}),confirmLabel:n("common.remove"),tone:"danger"}))){l.value=!0,i.value="";try{await u.removeWorkspace(t.instanceId,v)}catch(m){i.value=m instanceof Error?m.message:n("workspaces.removeFailed")}finally{l.value=!1}}}return(v,h)=>{var m,E;return d(),y("section",$i,[f("h3",Ti,k(v.$t("workspaces.title")),1),i.value?(d(),y("p",Si,k(i.value),1)):I("",!0),(((m=s.value)==null?void 0:m.workspaces)??[]).length?(d(),y("ul",Ii,[(d(!0),y(Y,null,oe(((E=s.value)==null?void 0:E.workspaces)??[],A=>(d(),y("li",{key:A.name,class:"flex items-center justify-between px-3 py-2 text-sm text-fg"},[f("span",null,[f("span",Mi,k(A.name),1),h[3]||(h[3]=le(" — ",-1)),f("span",Oi,k(A.cwd),1)]),f("button",{"data-test":`wm-remove-${A.name}`,title:v.$t("workspaces.remove",{name:A.name}),"aria-label":v.$t("workspaces.removeAria",{name:A.name}),class:"grid h-7 w-7 shrink-0 place-items-center rounded text-fg-muted transition-colors hover:bg-danger/15 hover:text-danger disabled:opacity-50",disabled:l.value,onClick:_=>c(A.name)},[O(x(Pu),{size:14})],8,zi)]))),128))])):(d(),y("p",Fi,k(v.$t("workspaces.empty")),1)),f("div",Ri,[Ee(f("input",{"onUpdate:modelValue":h[0]||(h[0]=A=>r.value=A),"data-test":"wm-name",placeholder:v.$t("workspaces.namePlaceholder"),class:"rounded border border-border bg-bg px-2 py-1 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},null,8,Li),[[Oe,r.value]]),Ee(f("input",{"onUpdate:modelValue":h[1]||(h[1]=A=>a.value=A),"data-test":"wm-path",placeholder:v.$t("workspaces.pathPlaceholder"),class:"rounded border border-border bg-bg px-2 py-1 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},null,8,Ni),[[Oe,a.value]]),Ee(f("input",{"onUpdate:modelValue":h[2]||(h[2]=A=>o.value=A),"data-test":"wm-desc",placeholder:v.$t("workspaces.descPlaceholder"),class:"rounded border border-border bg-bg px-2 py-1 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},null,8,Pi),[[Oe,o.value]])]),f("button",{"data-test":"wm-create",class:"rounded bg-accent px-3 py-1.5 text-sm text-white hover:bg-accent-hover disabled:opacity-50",disabled:l.value||!r.value.trim()||!a.value.trim(),onClick:p},k(v.$t("workspaces.add")),9,Bi)])}}}),Ui={class:"space-y-3"},ji={class:"text-sm font-semibold uppercase text-fg-muted"},Hi={key:0,"data-test":"am-error",class:"rounded bg-danger/10 px-3 py-2 text-sm text-danger"},Vi={key:1,"data-test":"am-empty",class:"text-sm text-fg-muted"},Wi={key:2,class:"divide-y divide-border rounded border border-border"},Gi={class:"font-medium"},Ki={class:"text-fg-muted"},Zi=["data-test","title","aria-label","disabled","onClick"],Yi={class:"grid grid-cols-1 gap-2 sm:grid-cols-3"},Xi={value:"",disabled:""},Ji=["value","disabled"],Qi=["placeholder"],el=["disabled"],tl=ie({__name:"AgentsManager",props:{instanceId:{}},setup(e){const t=e,u=ot(),{t:n}=St(),s=K(()=>u.byId(t.instanceId)),r=T(""),a=T(""),o=T(""),i=T(!1),l=K(()=>{var h;return(((h=s.value)==null?void 0:h.agentCatalog)??[]).filter(m=>!m.configured)});async function p(){if(!(!r.value||i.value)){i.value=!0,o.value="";try{await u.createAgent(t.instanceId,a.value.trim()||r.value,r.value),r.value="",a.value=""}catch(h){o.value=h instanceof Error?h.message:n("agents.addFailed")}finally{i.value=!1}}}async function c(h){if(!(i.value||!await bu({title:n("agents.removeTitle"),message:n("agents.removeBody",{name:h}),confirmLabel:n("common.remove"),tone:"danger"}))){i.value=!0,o.value="";try{await u.removeAgent(t.instanceId,h)}catch(E){o.value=E instanceof Error?E.message:n("agents.removeFailed")}finally{i.value=!1}}}function v(h){return n(h==="builtin"?"agents.builtin":h==="yes"?"agents.installed":"agents.cliNotDetected")}return(h,m)=>{var E,A;return d(),y("section",Ui,[f("h3",ji,k(h.$t("agents.title")),1),o.value?(d(),y("p",Hi,k(o.value),1)):I("",!0),(((E=s.value)==null?void 0:E.agents)??[]).length?(d(),y("ul",Wi,[(d(!0),y(Y,null,oe(((A=s.value)==null?void 0:A.agents)??[],_=>(d(),y("li",{key:_.name,class:"flex items-center justify-between px-3 py-2 text-sm text-fg"},[f("span",null,[f("span",Gi,k(_.name),1),m[2]||(m[2]=le(" · ",-1)),f("span",Ki,k(_.driver),1)]),f("button",{"data-test":`am-remove-${_.name}`,title:h.$t("agents.remove",{name:_.name}),"aria-label":h.$t("agents.removeAria",{name:_.name}),class:"grid h-7 w-7 shrink-0 place-items-center rounded text-fg-muted transition-colors hover:bg-danger/15 hover:text-danger disabled:opacity-50",disabled:i.value,onClick:g=>c(_.name)},[O(x(Pu),{size:14})],8,Zi)]))),128))])):(d(),y("p",Vi,k(h.$t("agents.empty")),1)),f("div",Yi,[Ee(f("select",{"onUpdate:modelValue":m[0]||(m[0]=_=>r.value=_),"data-test":"am-driver",class:"rounded border border-border bg-bg px-2 py-1 text-sm text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},[f("option",Xi,k(h.$t("agents.chooseDriver")),1),(d(!0),y(Y,null,oe(l.value,_=>(d(),y("option",{key:_.driver,value:_.driver,disabled:_.installed==="unknown"},k(_.driver)+" ("+k(v(_.installed))+") ",9,Ji))),128))],512),[[Oa,r.value]]),Ee(f("input",{"onUpdate:modelValue":m[1]||(m[1]=_=>a.value=_),"data-test":"am-name",placeholder:h.$t("agents.namePlaceholder"),class:"rounded border border-border bg-bg px-2 py-1 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},null,8,Qi),[[Oe,a.value]]),f("button",{"data-test":"am-add",class:"rounded bg-accent px-3 py-1.5 text-sm text-white hover:bg-accent-hover disabled:opacity-50",disabled:i.value||!r.value,onClick:p},k(h.$t("agents.add")),9,el)])])}}}),ul={class:"max-h-[85vh] w-full max-w-xl overflow-y-auto rounded-xl border border-border bg-raised shadow-xl","data-test":"manage-instance-dialog"},nl={class:"flex items-center justify-between border-b border-border px-5 py-3"},sl={class:"text-sm font-semibold text-fg"},rl=["aria-label"],al={key:0,class:"py-6 text-center text-sm text-fg-muted"},ol={key:1,class:"space-y-6 p-5"},il={class:"space-y-3"},ll={class:"text-sm font-semibold uppercase text-fg-muted"},cl={key:0,"data-test":"rename-error",class:"rounded bg-danger/10 px-3 py-2 text-sm text-danger"},dl={class:"flex gap-2"},fl=["placeholder"],pl=["disabled"],hl=ie({__name:"ManageInstanceDialog",props:{instanceId:{},instanceName:{}},emits:["close"],setup(e,{emit:t}){const u=e,n=t,s=ot(),{t:r}=St(),a=T(!0),o=T(u.instanceName),i=T(""),l=T(!1);async function p(){const c=o.value.trim();if(!(!c||l.value)){l.value=!0,i.value="";try{await s.renameInstance(u.instanceId,c),o.value=c}catch(v){i.value=v instanceof Error?v.message:r("instance.renameFailed")}finally{l.value=!1}}}return mt(async()=>{try{await s.loadFormOptions(u.instanceId)}catch{}finally{a.value=!1}}),(c,v)=>(d(),j(Ru,{to:"body"},[f("div",{class:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",onClick:v[2]||(v[2]=Xe(h=>n("close"),["self"]))},[f("div",ul,[f("header",nl,[f("h2",sl,k(c.$t("instance.manageTitle",{name:o.value})),1),f("button",{class:"rounded p-1 text-fg-muted hover:bg-fg/5 hover:text-fg","aria-label":c.$t("instance.close"),onClick:v[0]||(v[0]=h=>n("close"))},[O(x(at),{size:16})],8,rl)]),a.value?(d(),y("div",al,k(c.$t("instance.dialogLoading")),1)):(d(),y("div",ol,[f("section",il,[f("h3",ll,k(c.$t("instance.nameLabel")),1),i.value?(d(),y("p",cl,k(i.value),1)):I("",!0),f("div",dl,[Ee(f("input",{"onUpdate:modelValue":v[1]||(v[1]=h=>o.value=h),"data-test":"rename-name",placeholder:c.$t("instance.renamePlaceholder"),class:"min-w-0 flex-1 rounded border border-border bg-bg px-2 py-1 text-sm text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",onKeyup:On(p,["enter"])},null,40,fl),[[Oe,o.value]]),f("button",{"data-test":"rename-save",class:"shrink-0 rounded bg-accent px-3 py-1.5 text-sm text-white hover:bg-accent-hover disabled:opacity-50",disabled:l.value||!o.value.trim(),onClick:p},k(l.value?c.$t("instance.renameSaving"):c.$t("instance.renameSave")),9,pl)])]),O(qi,{"instance-id":e.instanceId},null,8,["instance-id"]),O(tl,{"instance-id":e.instanceId},null,8,["instance-id"])]))])])]))}}),bl={class:"thin-scroll flex h-full flex-1 flex-col space-y-1.5 overflow-y-auto px-2 pb-2 pt-1.5"},ml=["onClick"],gl=["title"],xl={key:2,class:"font-mono text-[10px] tabular-nums text-fg-muted"},vl={key:3,class:"text-[10px] font-medium text-fg-muted"},yl={class:"ml-2.5 mt-px space-y-px border-l border-border pl-2.5"},kl={key:0,class:"absolute bottom-1 left-0 top-1 w-[3px] rounded-full bg-accent"},_l=["onClick"],wl={key:0,"data-test":"attention-dot","data-attention":"working",class:"pulse-dot h-2 w-2 shrink-0 rounded-full bg-run-bright"},El={key:1,"data-test":"attention-dot","data-attention":"unread",class:"h-2 w-2 shrink-0 rounded-full bg-info"},Al={key:2,"data-test":"attention-dot","data-attention":"running",class:"h-2 w-2 shrink-0 rounded-full bg-run"},Cl={key:3,"data-test":"session-elapsed",class:"ml-auto shrink-0 font-mono text-[10px] tabular-nums text-run"},Dl=["title","aria-label","onClick"],$l={key:0,"data-test":"sessions-loading",class:"py-1 pl-2.5 text-[11px] text-fg-muted"},Tl={key:1,"data-test":"no-sessions",class:"py-1 pl-2.5 text-[11px] text-fg-muted"},Sl={class:"flex items-center gap-0.5 pb-px pl-2 pt-0.5"},Fl=["title","aria-label","onClick"],Il=["title","aria-label","onClick"],Ml=ie({__name:"InstanceTree",emits:["select"],setup(e,{emit:t}){const u=ot(),n=kt(),{t:s}=St(),r=t,a=T(null),o=T(null),i=T(Date.now()),l=setInterval(()=>{i.value=Date.now()},1e3);zn(()=>clearInterval(l));function p(A,_){const g=n.runningSince(A,_);if(g===null)return"";const w=Math.max(0,Math.floor((i.value-g)/1e3));return w<60?`${w}s`:w<3600?`${Math.floor(w/60)}m`:`${Math.floor(w/3600)}h`}function c(A,_){return n.instanceId===A&&n.sessionAlias===_}const v=T(new Set);function h(A){return!v.value.has(A)}function m(A){const _=new Set(v.value);_.has(A)?_.delete(A):_.add(A),v.value=_,h(A)&&u.loadSessions(A).catch(()=>{})}async function E(A,_){await bu({title:s("instance.deleteSessionTitle"),message:s("instance.deleteSessionBody",{alias:_}),confirmLabel:s("common.delete"),tone:"danger"})&&u.removeSession(A,_).catch(()=>{})}return(A,_)=>(d(),y("nav",bl,[(d(!0),y(Y,null,oe(x(u).instances,g=>(d(),y("div",{key:g.id,class:W(g.online?"":"opacity-60")},[f("button",{class:"group flex h-7 w-full items-center gap-1.5 rounded-md px-1.5 transition-colors hover:bg-raised",onClick:w=>m(g.id)},[h(g.id)?(d(),j(x(Je),{key:0,size:12,class:"shrink-0 text-fg-muted"})):(d(),j(x(Ft),{key:1,size:12,class:"shrink-0 text-fg-muted"})),f("span",{class:W(["h-2 w-2 shrink-0 rounded-full",g.online?"bg-run":"bg-fg-muted"]),"data-test":"online-dot"},null,2),f("span",{class:W(["flex-1 truncate text-left text-[12.5px] font-semibold",g.online?"text-fg":"text-fg-muted"]),title:g.coreVersion?A.$t("instance.coreVersion",{version:g.coreVersion}):A.$t("instance.coreVersionUnknown")},k(g.name),11,gl),g.online?(d(),y("span",xl,k(g.sessions.length),1)):(d(),y("span",vl,k(A.$t("instance.offline")),1))],8,ml),Ee(f("div",yl,[(d(!0),y(Y,null,oe(g.sessions,w=>(d(),y("div",{key:w.alias,class:W(["group relative flex items-center rounded-md transition-colors",c(g.id,w.alias)?"bg-accent/10":"hover:bg-raised"])},[c(g.id,w.alias)?(d(),y("span",kl)):I("",!0),f("button",{class:"flex min-w-0 flex-1 items-center gap-2 py-1 pl-2.5 pr-1.5 text-left",onClick:D=>r("select",g.id,w.alias)},[x(n).sessionAttention(g.id,w.alias)==="working"?(d(),y("span",wl)):x(n).sessionAttention(g.id,w.alias)==="unread"?(d(),y("span",El)):w.running?(d(),y("span",Al)):I("",!0),f("span",{class:W(["truncate text-[12.5px] font-medium",c(g.id,w.alias)?"font-semibold text-accent":"text-fg"])},k(w.alias),3),f("span",{class:W(["shrink-0 rounded px-1 py-px font-mono text-[9.5px]",c(g.id,w.alias)?"bg-accent/15 text-accent":"bg-bg text-fg-muted"])},k(w.agent),3),p(g.id,w.alias)?(d(),y("span",Cl,k(p(g.id,w.alias)),1)):I("",!0)],8,_l),f("button",{"data-test":"delete-session",title:A.$t("instance.deleteSession"),"aria-label":A.$t("instance.deleteSession"),class:"mr-1 grid h-5 w-5 shrink-0 place-items-center rounded text-fg-muted opacity-0 transition-opacity hover:bg-danger/15 hover:text-danger group-hover:opacity-100",onClick:Xe(D=>E(g.id,w.alias),["stop"])},[O(x(Pu),{size:12})],8,Dl)],2))),128)),g.online&&!g.sessionsLoaded&&!g.sessions.length?(d(),y("div",$l,k(A.$t("instance.loading")),1)):g.sessionsLoaded&&!g.sessions.length?(d(),y("div",Tl,k(A.$t("instance.noSessions")),1)):I("",!0),f("div",Sl,[f("button",{"data-test":"new-session",title:A.$t("instance.newSession"),"aria-label":A.$t("instance.newSession"),class:"grid h-6 w-6 place-items-center rounded text-accent transition-colors hover:bg-accent/10",onClick:w=>a.value={id:g.id,name:g.name}},[O(x(mr),{size:14})],8,Fl),f("button",{"data-test":"manage-instance",title:A.$t("instance.manage"),"aria-label":A.$t("instance.manage"),class:"grid h-6 w-6 place-items-center rounded text-fg-muted transition-colors hover:bg-raised hover:text-fg",onClick:w=>o.value={id:g.id,name:g.name}},[O(x(oo),{size:13})],8,Il)])],512),[[Rn,h(g.id)]])],2))),128)),a.value?(d(),j(Di,{key:0,"instance-id":a.value.id,"instance-name":a.value.name,onClose:_[0]||(_[0]=g=>a.value=null),onCreated:_[1]||(_[1]=g=>a.value=null)},null,8,["instance-id","instance-name"])):I("",!0),o.value?(d(),j(hl,{key:1,"instance-id":o.value.id,"instance-name":o.value.name,onClose:_[2]||(_[2]=g=>o.value=null)},null,8,["instance-id","instance-name"])):I("",!0)]))}}),_s={};function Ol(e){let t=_s[e];if(t)return t;t=_s[e]=[];for(let u=0;u<128;u++){const n=String.fromCharCode(u);t.push(n)}for(let u=0;u<e.length;u++){const n=e.charCodeAt(u);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}function Kt(e,t){typeof t!="string"&&(t=Kt.defaultChars);const u=Ol(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(n){let s="";for(let r=0,a=n.length;r<a;r+=3){const o=parseInt(n.slice(r+1,r+3),16);if(o<128){s+=u[o];continue}if((o&224)===192&&r+3<a){const i=parseInt(n.slice(r+4,r+6),16);if((i&192)===128){const l=o<<6&1984|i&63;l<128?s+="��":s+=String.fromCharCode(l),r+=3;continue}}if((o&240)===224&&r+6<a){const i=parseInt(n.slice(r+4,r+6),16),l=parseInt(n.slice(r+7,r+9),16);if((i&192)===128&&(l&192)===128){const p=o<<12&61440|i<<6&4032|l&63;p<2048||p>=55296&&p<=57343?s+="���":s+=String.fromCharCode(p),r+=6;continue}}if((o&248)===240&&r+9<a){const i=parseInt(n.slice(r+4,r+6),16),l=parseInt(n.slice(r+7,r+9),16),p=parseInt(n.slice(r+10,r+12),16);if((i&192)===128&&(l&192)===128&&(p&192)===128){let c=o<<18&1835008|i<<12&258048|l<<6&4032|p&63;c<65536||c>1114111?s+="����":(c-=65536,s+=String.fromCharCode(55296+(c>>10),56320+(c&1023))),r+=9;continue}}s+="�"}return s})}Kt.defaultChars=";/?:@&=+$,#";Kt.componentChars="";const ws={};function zl(e){let t=ws[e];if(t)return t;t=ws[e]=[];for(let u=0;u<128;u++){const n=String.fromCharCode(u);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+u.toString(16).toUpperCase()).slice(-2))}for(let u=0;u<e.length;u++)t[e.charCodeAt(u)]=e[u];return t}function gu(e,t,u){typeof t!="string"&&(u=t,t=gu.defaultChars),typeof u>"u"&&(u=!0);const n=zl(t);let s="";for(let r=0,a=e.length;r<a;r++){const o=e.charCodeAt(r);if(u&&o===37&&r+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3))){s+=e.slice(r,r+3),r+=2;continue}if(o<128){s+=n[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<a){const i=e.charCodeAt(r+1);if(i>=56320&&i<=57343){s+=encodeURIComponent(e[r]+e[r+1]),r++;continue}}s+="%EF%BF%BD";continue}s+=encodeURIComponent(e[r])}return s}gu.defaultChars=";/?:@&=+$,-_.!~*'()#";gu.componentChars="-_.!~*'()";function Pn(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Mu(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Rl=/^([a-z0-9.+-]+:)/i,Ll=/:[0-9]*$/,Nl=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Pl=["<",">",'"',"`"," ","\r",`
227
+ `," "],Bl=["{","}","|","\\","^","`"].concat(Pl),ql=["'"].concat(Bl),Es=["%","/","?",";","#"].concat(ql),As=["/","?","#"],Ul=255,Cs=/^[+a-z0-9A-Z_-]{0,63}$/,jl=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ds={javascript:!0,"javascript:":!0},$s={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Bn(e,t){if(e&&e instanceof Mu)return e;const u=new Mu;return u.parse(e,t),u}Mu.prototype.parse=function(e,t){let u,n,s,r=e;if(r=r.trim(),!t&&e.split("#").length===1){const l=Nl.exec(r);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let a=Rl.exec(r);if(a&&(a=a[0],u=a.toLowerCase(),this.protocol=a,r=r.substr(a.length)),(t||a||r.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=r.substr(0,2)==="//",s&&!(a&&Ds[a])&&(r=r.substr(2),this.slashes=!0)),!Ds[a]&&(s||a&&!$s[a])){let l=-1;for(let m=0;m<As.length;m++)n=r.indexOf(As[m]),n!==-1&&(l===-1||n<l)&&(l=n);let p,c;l===-1?c=r.lastIndexOf("@"):c=r.lastIndexOf("@",l),c!==-1&&(p=r.slice(0,c),r=r.slice(c+1),this.auth=p),l=-1;for(let m=0;m<Es.length;m++)n=r.indexOf(Es[m]),n!==-1&&(l===-1||n<l)&&(l=n);l===-1&&(l=r.length),r[l-1]===":"&&l--;const v=r.slice(0,l);r=r.slice(l),this.parseHost(v),this.hostname=this.hostname||"";const h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){const m=this.hostname.split(/\./);for(let E=0,A=m.length;E<A;E++){const _=m[E];if(_&&!_.match(Cs)){let g="";for(let w=0,D=_.length;w<D;w++)_.charCodeAt(w)>127?g+="x":g+=_[w];if(!g.match(Cs)){const w=m.slice(0,E),D=m.slice(E+1),M=_.match(jl);M&&(w.push(M[1]),D.unshift(M[2])),D.length&&(r=D.join(".")+r),this.hostname=w.join(".");break}}}}this.hostname.length>Ul&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=r.indexOf("#");o!==-1&&(this.hash=r.substr(o),r=r.slice(0,o));const i=r.indexOf("?");return i!==-1&&(this.search=r.substr(i),r=r.slice(0,i)),r&&(this.pathname=r),$s[u]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Mu.prototype.parseHost=function(e){let t=Ll.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Hl=Object.freeze(Object.defineProperty({__proto__:null,decode:Kt,encode:gu,format:Pn,parse:Bn},Symbol.toStringTag,{value:"Module"})),wr=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Er=/[\0-\x1F\x7F-\x9F]/,Vl=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,qn=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Ar=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Cr=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Wl=Object.freeze(Object.defineProperty({__proto__:null,Any:wr,Cc:Er,Cf:Vl,P:qn,S:Ar,Z:Cr},Symbol.toStringTag,{value:"Module"})),Gl=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Kl=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var pn;const Zl=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Yl=(pn=String.fromCodePoint)!==null&&pn!==void 0?pn:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Xl(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Zl.get(e))!==null&&t!==void 0?t:e}var ke;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ke||(ke={}));const Jl=32;var bt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(bt||(bt={}));function Sn(e){return e>=ke.ZERO&&e<=ke.NINE}function Ql(e){return e>=ke.UPPER_A&&e<=ke.UPPER_F||e>=ke.LOWER_A&&e<=ke.LOWER_F}function ec(e){return e>=ke.UPPER_A&&e<=ke.UPPER_Z||e>=ke.LOWER_A&&e<=ke.LOWER_Z||Sn(e)}function tc(e){return e===ke.EQUALS||ec(e)}var ye;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(ye||(ye={}));var st;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(st||(st={}));class uc{constructor(t,u,n){this.decodeTree=t,this.emitCodePoint=u,this.errors=n,this.state=ye.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=st.Strict}startEntity(t){this.decodeMode=t,this.state=ye.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,u){switch(this.state){case ye.EntityStart:return t.charCodeAt(u)===ke.NUM?(this.state=ye.NumericStart,this.consumed+=1,this.stateNumericStart(t,u+1)):(this.state=ye.NamedEntity,this.stateNamedEntity(t,u));case ye.NumericStart:return this.stateNumericStart(t,u);case ye.NumericDecimal:return this.stateNumericDecimal(t,u);case ye.NumericHex:return this.stateNumericHex(t,u);case ye.NamedEntity:return this.stateNamedEntity(t,u)}}stateNumericStart(t,u){return u>=t.length?-1:(t.charCodeAt(u)|Jl)===ke.LOWER_X?(this.state=ye.NumericHex,this.consumed+=1,this.stateNumericHex(t,u+1)):(this.state=ye.NumericDecimal,this.stateNumericDecimal(t,u))}addToNumericResult(t,u,n,s){if(u!==n){const r=n-u;this.result=this.result*Math.pow(s,r)+parseInt(t.substr(u,r),s),this.consumed+=r}}stateNumericHex(t,u){const n=u;for(;u<t.length;){const s=t.charCodeAt(u);if(Sn(s)||Ql(s))u+=1;else return this.addToNumericResult(t,n,u,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,n,u,16),-1}stateNumericDecimal(t,u){const n=u;for(;u<t.length;){const s=t.charCodeAt(u);if(Sn(s))u+=1;else return this.addToNumericResult(t,n,u,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,n,u,10),-1}emitNumericEntity(t,u){var n;if(this.consumed<=u)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ke.SEMI)this.consumed+=1;else if(this.decodeMode===st.Strict)return 0;return this.emitCodePoint(Xl(this.result),this.consumed),this.errors&&(t!==ke.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,u){const{decodeTree:n}=this;let s=n[this.treeIndex],r=(s&bt.VALUE_LENGTH)>>14;for(;u<t.length;u++,this.excess++){const a=t.charCodeAt(u);if(this.treeIndex=nc(n,s,this.treeIndex+Math.max(1,r),a),this.treeIndex<0)return this.result===0||this.decodeMode===st.Attribute&&(r===0||tc(a))?0:this.emitNotTerminatedNamedEntity();if(s=n[this.treeIndex],r=(s&bt.VALUE_LENGTH)>>14,r!==0){if(a===ke.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==st.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:u,decodeTree:n}=this,s=(n[u]&bt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(u,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,u,n){const{decodeTree:s}=this;return this.emitCodePoint(u===1?s[t]&~bt.VALUE_LENGTH:s[t+1],n),u===3&&this.emitCodePoint(s[t+2],n),n}end(){var t;switch(this.state){case ye.NamedEntity:return this.result!==0&&(this.decodeMode!==st.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ye.NumericDecimal:return this.emitNumericEntity(0,2);case ye.NumericHex:return this.emitNumericEntity(0,3);case ye.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ye.EntityStart:return 0}}}function Dr(e){let t="";const u=new uc(e,n=>t+=Yl(n));return function(s,r){let a=0,o=0;for(;(o=s.indexOf("&",o))>=0;){t+=s.slice(a,o),u.startEntity(r);const l=u.write(s,o+1);if(l<0){a=o+u.end();break}a=o+l,o=l===0?a+1:a}const i=t+s.slice(a);return t="",i}}function nc(e,t,u,n){const s=(t&bt.BRANCH_LENGTH)>>7,r=t&bt.JUMP_TABLE;if(s===0)return r!==0&&n===r?u:-1;if(r){const i=n-r;return i<0||i>=s?-1:e[u+i]-1}let a=u,o=a+s-1;for(;a<=o;){const i=a+o>>>1,l=e[i];if(l<n)a=i+1;else if(l>n)o=i-1;else return e[i+s]}return-1}const $r=Dr(Gl);Dr(Kl);function sc(e,t=st.Legacy){return $r(e,t)}function rc(e){return $r(e,st.Strict)}function ac(e){return Object.prototype.toString.call(e)}function Un(e){return ac(e)==="[object String]"}const oc=Object.prototype.hasOwnProperty;function ic(e,t){return oc.call(e,t)}function qu(e){return Array.prototype.slice.call(arguments,1).forEach(function(u){if(u){if(typeof u!="object")throw new TypeError(u+"must be object");Object.keys(u).forEach(function(n){e[n]=u[n]})}}),e}function Tr(e,t,u){return[].concat(e.slice(0,t),u,e.slice(t+1))}function jn(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function cu(e){if(e>65535){e-=65536;const t=55296+(e>>10),u=56320+(e&1023);return String.fromCharCode(t,u)}return String.fromCharCode(e)}const Sr=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,lc=/&([a-z#][a-z0-9]{1,31});/gi,cc=new RegExp(Sr.source+"|"+lc.source,"gi"),dc=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function fc(e,t){if(t.charCodeAt(0)===35&&dc.test(t)){const n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return jn(n)?cu(n):e}const u=sc(e);return u!==e?u:e}function pc(e){return e.indexOf("\\")<0?e:e.replace(Sr,"$1")}function Zt(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(cc,function(t,u,n){return u||fc(t,n)})}const hc=/[&<>"]/,bc=/[&<>"]/g,mc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function gc(e){return mc[e]}function gt(e){return hc.test(e)?e.replace(bc,gc):e}const xc=/[.?*+^$[\]\\(){}|-]/g;function vc(e){return e.replace(xc,"\\$&")}function ce(e){switch(e){case 9:case 32:return!0}return!1}function du(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Fr(e){return qn.test(e)||Ar.test(e)}function fu(e){return Fr(cu(e))}function pu(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Uu(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function Ts(e){return e===32||e===9||e===10||e===13}function ju(e){let t=0;for(;t<e.length&&Ts(e.charCodeAt(t));t++);let u=e.length-1;for(;u>=t&&Ts(e.charCodeAt(u));u--);return e.slice(t,u+1)}const yc={mdurl:Hl,ucmicro:Wl},kc=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Tr,asciiTrim:ju,assign:qu,escapeHtml:gt,escapeRE:vc,fromCodePoint:cu,has:ic,isMdAsciiPunct:pu,isPunctChar:Fr,isPunctCharCode:fu,isSpace:ce,isString:Un,isValidEntityCode:jn,isWhiteSpace:du,lib:yc,normalizeReference:Uu,unescapeAll:Zt,unescapeMd:pc},Symbol.toStringTag,{value:"Module"}));function _c(e,t,u){let n,s,r,a;const o=e.posMax,i=e.pos;for(e.pos=t+1,n=1;e.pos<o;){if(r=e.src.charCodeAt(e.pos),r===93&&(n--,n===0)){s=!0;break}if(a=e.pos,e.md.inline.skipToken(e),r===91){if(a===e.pos-1)n++;else if(u)return e.pos=i,-1}}let l=-1;return s&&(l=e.pos),e.pos=i,l}function wc(e,t,u){let n,s=t;const r={ok:!1,pos:0,str:""};if(e.charCodeAt(s)===60){for(s++;s<u;){if(n=e.charCodeAt(s),n===10||n===60)return r;if(n===62)return r.pos=s+1,r.str=Zt(e.slice(t+1,s)),r.ok=!0,r;if(n===92&&s+1<u){s+=2;continue}s++}return r}let a=0;for(;s<u&&(n=e.charCodeAt(s),!(n===32||n<32||n===127));){if(n===92&&s+1<u){if(e.charCodeAt(s+1)===32)break;s+=2;continue}if(n===40&&(a++,a>32))return r;if(n===41){if(a===0)break;a--}s++}return t===s||a!==0||(r.str=Zt(e.slice(t,s)),r.pos=s,r.ok=!0),r}function Ec(e,t,u,n){let s,r=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)a.str=n.str,a.marker=n.marker;else{if(r>=u)return a;let o=e.charCodeAt(r);if(o!==34&&o!==39&&o!==40)return a;t++,r++,o===40&&(o=41),a.marker=o}for(;r<u;){if(s=e.charCodeAt(r),s===a.marker)return a.pos=r+1,a.str+=Zt(e.slice(t,r)),a.ok=!0,a;if(s===40&&a.marker===41)return a;s===92&&r+1<u&&r++,r++}return a.can_continue=!0,a.str+=Zt(e.slice(t,r)),a}const Ac=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:wc,parseLinkLabel:_c,parseLinkTitle:Ec},Symbol.toStringTag,{value:"Module"})),Qe={};Qe.code_inline=function(e,t,u,n,s){const r=e[t];return"<code"+s.renderAttrs(r)+">"+gt(r.content)+"</code>"};Qe.code_block=function(e,t,u,n,s){const r=e[t];return"<pre"+s.renderAttrs(r)+"><code>"+gt(e[t].content)+`</code></pre>
228
+ `};Qe.fence=function(e,t,u,n,s){const r=e[t],a=r.info?Zt(r.info).trim():"";let o="",i="";if(a){const p=a.split(/(\s+)/g);o=p[0],i=p.slice(2).join("")}let l;if(u.highlight?l=u.highlight(r.content,o,i)||gt(r.content):l=gt(r.content),l.indexOf("<pre")===0)return l+`
229
+ `;if(a){const p=r.attrIndex("class"),c=r.attrs?r.attrs.slice():[];p<0?c.push(["class",u.langPrefix+o]):(c[p]=c[p].slice(),c[p][1]+=" "+u.langPrefix+o);const v={attrs:c};return`<pre><code${s.renderAttrs(v)}>${l}</code></pre>
230
+ `}return`<pre><code${s.renderAttrs(r)}>${l}</code></pre>
231
+ `};Qe.image=function(e,t,u,n,s){const r=e[t];return r.attrs[r.attrIndex("alt")][1]=s.renderInlineAsText(r.children,u,n),s.renderToken(e,t,u)};Qe.hardbreak=function(e,t,u){return u.xhtmlOut?`<br />
232
+ `:`<br>
233
+ `};Qe.softbreak=function(e,t,u){return u.breaks?u.xhtmlOut?`<br />
234
+ `:`<br>
235
+ `:`
236
+ `};Qe.text=function(e,t){return gt(e[t].content)};Qe.html_block=function(e,t){return e[t].content};Qe.html_inline=function(e,t){return e[t].content};function Xt(){this.rules=qu({},Qe)}Xt.prototype.renderAttrs=function(t){let u,n,s;if(!t.attrs)return"";for(s="",u=0,n=t.attrs.length;u<n;u++)s+=" "+gt(t.attrs[u][0])+'="'+gt(t.attrs[u][1])+'"';return s};Xt.prototype.renderToken=function(t,u,n){const s=t[u];let r="";if(s.hidden)return"";s.block&&s.nesting!==-1&&u&&t[u-1].hidden&&(r+=`
237
+ `),r+=(s.nesting===-1?"</":"<")+s.tag,r+=this.renderAttrs(s),s.nesting===0&&n.xhtmlOut&&(r+=" /");let a=!1;if(s.block&&(a=!0,s.nesting===1&&u+1<t.length)){const o=t[u+1];(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===s.tag)&&(a=!1)}return r+=a?`>
238
+ `:">",r};Xt.prototype.renderInline=function(e,t,u){let n="";const s=this.rules;for(let r=0,a=e.length;r<a;r++){const o=e[r].type;typeof s[o]<"u"?n+=s[o](e,r,t,u,this):n+=this.renderToken(e,r,t)}return n};Xt.prototype.renderInlineAsText=function(e,t,u){let n="";for(let s=0,r=e.length;s<r;s++)switch(e[s].type){case"text":n+=e[s].content;break;case"image":n+=this.renderInlineAsText(e[s].children,t,u);break;case"html_inline":case"html_block":n+=e[s].content;break;case"softbreak":case"hardbreak":n+=`
239
+ `;break}return n};Xt.prototype.render=function(e,t,u){let n="";const s=this.rules;for(let r=0,a=e.length;r<a;r++){const o=e[r].type;o==="inline"?n+=this.renderInline(e[r].children,t,u):typeof s[o]<"u"?n+=s[o](e,r,t,u,this):n+=this.renderToken(e,r,t,u)}return n};function Ie(){this.__rules__=[],this.__cache__=null}Ie.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Ie.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(u){u.enabled&&u.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(u){e.__cache__[u]=[],e.__rules__.forEach(function(n){n.enabled&&(u&&n.alt.indexOf(u)<0||e.__cache__[u].push(n.fn))})})};Ie.prototype.at=function(e,t,u){const n=this.__find__(e),s=u||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=s.alt||[],this.__cache__=null};Ie.prototype.before=function(e,t,u,n){const s=this.__find__(e),r=n||{};if(s===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(s,0,{name:t,enabled:!0,fn:u,alt:r.alt||[]}),this.__cache__=null};Ie.prototype.after=function(e,t,u,n){const s=this.__find__(e),r=n||{};if(s===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(s+1,0,{name:t,enabled:!0,fn:u,alt:r.alt||[]}),this.__cache__=null};Ie.prototype.push=function(e,t,u){const n=u||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};Ie.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const u=[];return e.forEach(function(n){const s=this.__find__(n);if(s<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[s].enabled=!0,u.push(n)},this),this.__cache__=null,u};Ie.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(u){u.enabled=!1}),this.enable(e,t)};Ie.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const u=[];return e.forEach(function(n){const s=this.__find__(n);if(s<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[s].enabled=!1,u.push(n)},this),this.__cache__=null,u};Ie.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function je(e,t,u){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=u,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}je.prototype.attrIndex=function(t){if(!this.attrs)return-1;const u=this.attrs;for(let n=0,s=u.length;n<s;n++)if(u[n][0]===t)return n;return-1};je.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};je.prototype.attrSet=function(t,u){const n=this.attrIndex(t),s=[t,u];n<0?this.attrPush(s):this.attrs[n]=s};je.prototype.attrGet=function(t){const u=this.attrIndex(t);let n=null;return u>=0&&(n=this.attrs[u][1]),n};je.prototype.attrJoin=function(t,u){const n=this.attrIndex(t);n<0?this.attrPush([t,u]):this.attrs[n][1]=this.attrs[n][1]+" "+u};function Ir(e,t,u){this.src=e,this.env=u,this.tokens=[],this.inlineMode=!1,this.md=t}Ir.prototype.Token=je;const Cc=/\r\n?|\n/g,Dc=/\0/g;function $c(e){let t;t=e.src.replace(Cc,`
240
+ `),t=t.replace(Dc,"�"),e.src=t}function Tc(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Sc(e){const t=e.tokens;for(let u=0,n=t.length;u<n;u++){const s=t[u];s.type==="inline"&&e.md.inline.parse(s.content,e.md,e.env,s.children)}}function Fc(e){return/^<a[>\s]/i.test(e)}function Ic(e){return/^<\/a\s*>/i.test(e)}function Mc(e){const t=e.tokens;if(e.md.options.linkify)for(let u=0,n=t.length;u<n;u++){if(t[u].type!=="inline"||!e.md.linkify.pretest(t[u].content))continue;let s=t[u].children,r=0;for(let a=s.length-1;a>=0;a--){const o=s[a];if(o.type==="link_close"){for(a--;s[a].level!==o.level&&s[a].type!=="link_open";)a--;continue}if(o.type==="html_inline"&&(Fc(o.content)&&r>0&&r--,Ic(o.content)&&r++),!(r>0)&&o.type==="text"&&e.md.linkify.test(o.content)){const i=o.content;let l=e.md.linkify.match(i);const p=[];let c=o.level,v=0;l.length>0&&l[0].index===0&&a>0&&s[a-1].type==="text_special"&&(l=l.slice(1));for(let h=0;h<l.length;h++){const m=l[h].url,E=e.md.normalizeLink(m);if(!e.md.validateLink(E))continue;let A=l[h].text;l[h].schema?l[h].schema==="mailto:"&&!/^mailto:/i.test(A)?A=e.md.normalizeLinkText("mailto:"+A).replace(/^mailto:/,""):A=e.md.normalizeLinkText(A):A=e.md.normalizeLinkText("http://"+A).replace(/^http:\/\//,"");const _=l[h].index;if(_>v){const M=new e.Token("text","",0);M.content=i.slice(v,_),M.level=c,p.push(M)}const g=new e.Token("link_open","a",1);g.attrs=[["href",E]],g.level=c++,g.markup="linkify",g.info="auto",p.push(g);const w=new e.Token("text","",0);w.content=A,w.level=c,p.push(w);const D=new e.Token("link_close","a",-1);D.level=--c,D.markup="linkify",D.info="auto",p.push(D),v=l[h].lastIndex}if(v<i.length){const h=new e.Token("text","",0);h.content=i.slice(v),h.level=c,p.push(h)}t[u].children=s=Tr(s,a,p)}}}}const Mr=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Oc=/\((c|tm|r)\)/i,zc=/\((c|tm|r)\)/ig,Rc={c:"©",r:"®",tm:"™"};function Lc(e,t){return Rc[t.toLowerCase()]}function Nc(e){let t=0;for(let u=e.length-1;u>=0;u--){const n=e[u];n.type==="text"&&!t&&(n.content=n.content.replace(zc,Lc)),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function Pc(e){let t=0;for(let u=e.length-1;u>=0;u--){const n=e[u];n.type==="text"&&!t&&Mr.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function Bc(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Oc.test(e.tokens[t].content)&&Nc(e.tokens[t].children),Mr.test(e.tokens[t].content)&&Pc(e.tokens[t].children))}const qc=/['"]/,Ss=/['"]/g,Fs="’";function Du(e,t,u,n){e[t]||(e[t]=[]),e[t].push({pos:u,ch:n})}function Uc(e,t){let u="",n=0;t.sort((s,r)=>s.pos-r.pos);for(let s=0;s<t.length;s++){const r=t[s];u+=e.slice(n,r.pos)+r.ch,n=r.pos+1}return u+e.slice(n)}function jc(e,t){let u;const n=[],s={};for(let r=0;r<e.length;r++){const a=e[r],o=e[r].level;for(u=n.length-1;u>=0&&!(n[u].level<=o);u--);if(n.length=u+1,a.type!=="text")continue;const i=a.content;let l=0;const p=i.length;e:for(;l<p;){Ss.lastIndex=l;const c=Ss.exec(i);if(!c)break;let v=!0,h=!0;l=c.index+1;const m=c[0]==="'";let E=32;if(c.index-1>=0)E=i.charCodeAt(c.index-1);else for(u=r-1;u>=0&&!(e[u].type==="softbreak"||e[u].type==="hardbreak");u--)if(e[u].content){E=e[u].content.charCodeAt(e[u].content.length-1);break}let A=32;if(l<p)A=i.charCodeAt(l);else for(u=r+1;u<e.length&&!(e[u].type==="softbreak"||e[u].type==="hardbreak");u++)if(e[u].content){A=e[u].content.charCodeAt(0);break}const _=pu(E)||fu(E),g=pu(A)||fu(A),w=du(E),D=du(A);if(D?v=!1:g&&(w||_||(v=!1)),w?h=!1:_&&(D||g||(h=!1)),A===34&&c[0]==='"'&&E>=48&&E<=57&&(h=v=!1),v&&h&&(v=_,h=g),!v&&!h){m&&Du(s,r,c.index,Fs);continue}if(h)for(u=n.length-1;u>=0;u--){let M=n[u];if(n[u].level<o)break;if(M.single===m&&n[u].level===o){M=n[u];let q,$;m?(q=t.md.options.quotes[2],$=t.md.options.quotes[3]):(q=t.md.options.quotes[0],$=t.md.options.quotes[1]),Du(s,r,c.index,$),Du(s,M.token,M.pos,q),n.length=u;continue e}}v?n.push({token:r,pos:c.index,single:m,level:o}):h&&m&&Du(s,r,c.index,Fs)}}Object.keys(s).forEach(function(r){e[r].content=Uc(e[r].content,s[r])})}function Hc(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!qc.test(e.tokens[t].content)||jc(e.tokens[t].children,e)}function Vc(e){let t,u;const n=e.tokens,s=n.length;for(let r=0;r<s;r++){if(n[r].type!=="inline")continue;const a=n[r].children,o=a.length;for(t=0;t<o;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=u=0;t<o;t++)a[t].type==="text"&&t+1<o&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==u&&(a[u]=a[t]),u++);t!==u&&(a.length=u)}}const hn=[["normalize",$c],["block",Tc],["inline",Sc],["linkify",Mc],["replacements",Bc],["smartquotes",Hc],["text_join",Vc]];function Hn(){this.ruler=new Ie;for(let e=0;e<hn.length;e++)this.ruler.push(hn[e][0],hn[e][1])}Hn.prototype.process=function(e){const t=this.ruler.getRules("");for(let u=0,n=t.length;u<n;u++)t[u](e)};Hn.prototype.State=Ir;function et(e,t,u,n){this.src=e,this.md=t,this.env=u,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const s=this.src;for(let r=0,a=0,o=0,i=0,l=s.length,p=!1;a<l;a++){const c=s.charCodeAt(a);if(!p)if(ce(c)){o++,c===9?i+=4-i%4:i++;continue}else p=!0;(c===10||a===l-1)&&(c!==10&&a++,this.bMarks.push(r),this.eMarks.push(a),this.tShift.push(o),this.sCount.push(i),this.bsCount.push(0),p=!1,o=0,i=0,r=a+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}et.prototype.push=function(e,t,u){const n=new je(e,t,u);return n.block=!0,u<0&&this.level--,n.level=this.level,u>0&&this.level++,this.tokens.push(n),n};et.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};et.prototype.skipEmptyLines=function(t){for(let u=this.lineMax;t<u&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};et.prototype.skipSpaces=function(t){for(let u=this.src.length;t<u;t++){const n=this.src.charCodeAt(t);if(!ce(n))break}return t};et.prototype.skipSpacesBack=function(t,u){if(t<=u)return t;for(;t>u;)if(!ce(this.src.charCodeAt(--t)))return t+1;return t};et.prototype.skipChars=function(t,u){for(let n=this.src.length;t<n&&this.src.charCodeAt(t)===u;t++);return t};et.prototype.skipCharsBack=function(t,u,n){if(t<=n)return t;for(;t>n;)if(u!==this.src.charCodeAt(--t))return t+1;return t};et.prototype.getLines=function(t,u,n,s){if(t>=u)return"";const r=new Array(u-t);for(let a=0,o=t;o<u;o++,a++){let i=0;const l=this.bMarks[o];let p=l,c;for(o+1<u||s?c=this.eMarks[o]+1:c=this.eMarks[o];p<c&&i<n;){const v=this.src.charCodeAt(p);if(ce(v))v===9?i+=4-(i+this.bsCount[o])%4:i++;else if(p-l<this.tShift[o])i++;else break;p++}i>n?r[a]=new Array(i-n+1).join(" ")+this.src.slice(p,c):r[a]=this.src.slice(p,c)}return r.join("")};et.prototype.Token=je;const Wc=65536;function bn(e,t){const u=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(u,n)}function Is(e){const t=[],u=e.length;let n=0,s=e.charCodeAt(n),r=!1,a=0,o="";for(;n<u;)s===124&&(r?(o+=e.substring(a,n-1),a=n):(t.push(o+e.substring(a,n)),o="",a=n+1)),r=s===92,n++,s=e.charCodeAt(n);return t.push(o+e.substring(a)),t}function Gc(e,t,u,n){if(t+2>u)return!1;let s=t+1;if(e.sCount[s]<e.blkIndent||e.sCount[s]-e.blkIndent>=4)return!1;let r=e.bMarks[s]+e.tShift[s];if(r>=e.eMarks[s])return!1;const a=e.src.charCodeAt(r++);if(a!==124&&a!==45&&a!==58||r>=e.eMarks[s])return!1;const o=e.src.charCodeAt(r++);if(o!==124&&o!==45&&o!==58&&!ce(o)||a===45&&ce(o))return!1;for(;r<e.eMarks[s];){const D=e.src.charCodeAt(r);if(D!==124&&D!==45&&D!==58&&!ce(D))return!1;r++}let i=bn(e,t+1),l=i.split("|");const p=[];for(let D=0;D<l.length;D++){const M=l[D].trim();if(!M){if(D===0||D===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(M))return!1;M.charCodeAt(M.length-1)===58?p.push(M.charCodeAt(0)===58?"center":"right"):M.charCodeAt(0)===58?p.push("left"):p.push("")}if(i=bn(e,t).trim(),i.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=Is(i),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const c=l.length;if(c===0||c!==p.length)return!1;if(n)return!0;const v=e.parentType;e.parentType="table";const h=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),E=[t,0];m.map=E;const A=e.push("thead_open","thead",1);A.map=[t,t+1];const _=e.push("tr_open","tr",1);_.map=[t,t+1];for(let D=0;D<l.length;D++){const M=e.push("th_open","th",1);p[D]&&(M.attrs=[["style","text-align:"+p[D]]]);const q=e.push("inline","",0);q.content=l[D].trim(),q.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g,w=0;for(s=t+2;s<u&&!(e.sCount[s]<e.blkIndent);s++){let D=!1;for(let q=0,$=h.length;q<$;q++)if(h[q](e,s,u,!0)){D=!0;break}if(D||(i=bn(e,s).trim(),!i)||e.sCount[s]-e.blkIndent>=4||(l=Is(i),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),w+=c-l.length,w>Wc))break;if(s===t+2){const q=e.push("tbody_open","tbody",1);q.map=g=[t+2,0]}const M=e.push("tr_open","tr",1);M.map=[s,s+1];for(let q=0;q<c;q++){const $=e.push("td_open","td",1);p[q]&&($.attrs=[["style","text-align:"+p[q]]]);const F=e.push("inline","",0);F.content=l[q]?l[q].trim():"",F.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return g&&(e.push("tbody_close","tbody",-1),g[1]=s),e.push("table_close","table",-1),E[1]=s,e.parentType=v,e.line=s,!0}function Kc(e,t,u){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,s=n;for(;n<u;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){n++,s=n;continue}break}e.line=s;const r=e.push("code_block","code",0);return r.content=e.getLines(t,s,4+e.blkIndent,!1)+`
241
+ `,r.map=[t,e.line],!0}function Zc(e,t,u,n){let s=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||s+3>r)return!1;const a=e.src.charCodeAt(s);if(a!==126&&a!==96)return!1;let o=s;s=e.skipChars(s,a);let i=s-o;if(i<3)return!1;const l=e.src.slice(o,s),p=e.src.slice(s,r);if(a===96&&p.indexOf(String.fromCharCode(a))>=0)return!1;if(n)return!0;let c=t,v=!1;for(;c++,!(c>=u||(s=o=e.bMarks[c]+e.tShift[c],r=e.eMarks[c],s<r&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(s)===a&&!(e.sCount[c]-e.blkIndent>=4)&&(s=e.skipChars(s,a),!(s-o<i)&&(s=e.skipSpaces(s),!(s<r)))){v=!0;break}i=e.sCount[t],e.line=c+(v?1:0);const h=e.push("fence","code",0);return h.info=p,h.content=e.getLines(t+1,c,i,!0),h.markup=l,h.map=[t,e.line],!0}function Yc(e,t,u,n){let s=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(s)!==62)return!1;if(n)return!0;const o=[],i=[],l=[],p=[],c=e.md.block.ruler.getRules("blockquote"),v=e.parentType;e.parentType="blockquote";let h=!1,m;for(m=t;m<u;m++){const w=e.sCount[m]<e.blkIndent;if(s=e.bMarks[m]+e.tShift[m],r=e.eMarks[m],s>=r)break;if(e.src.charCodeAt(s++)===62&&!w){let M=e.sCount[m]+1,q,$;e.src.charCodeAt(s)===32?(s++,M++,$=!1,q=!0):e.src.charCodeAt(s)===9?(q=!0,(e.bsCount[m]+M)%4===3?(s++,M++,$=!1):$=!0):q=!1;let F=M;for(o.push(e.bMarks[m]),e.bMarks[m]=s;s<r;){const R=e.src.charCodeAt(s);if(ce(R))R===9?F+=4-(F+e.bsCount[m]+($?1:0))%4:F++;else break;s++}h=s>=r,i.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(q?1:0),l.push(e.sCount[m]),e.sCount[m]=F-M,p.push(e.tShift[m]),e.tShift[m]=s-e.bMarks[m];continue}if(h)break;let D=!1;for(let M=0,q=c.length;M<q;M++)if(c[M](e,m,u,!0)){D=!0;break}if(D){e.lineMax=m,e.blkIndent!==0&&(o.push(e.bMarks[m]),i.push(e.bsCount[m]),p.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}o.push(e.bMarks[m]),i.push(e.bsCount[m]),p.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}const E=e.blkIndent;e.blkIndent=0;const A=e.push("blockquote_open","blockquote",1);A.markup=">";const _=[t,0];A.map=_,e.md.block.tokenize(e,t,m);const g=e.push("blockquote_close","blockquote",-1);g.markup=">",e.lineMax=a,e.parentType=v,_[1]=e.line;for(let w=0;w<p.length;w++)e.bMarks[w+t]=o[w],e.tShift[w+t]=p[w],e.sCount[w+t]=l[w],e.bsCount[w+t]=i[w];return e.blkIndent=E,!0}function Xc(e,t,u,n){const s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let r=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(r++);if(a!==42&&a!==45&&a!==95)return!1;let o=1;for(;r<s;){const l=e.src.charCodeAt(r++);if(l!==a&&!ce(l))return!1;l===a&&o++}if(o<3)return!1;if(n)return!0;e.line=t+1;const i=e.push("hr","hr",0);return i.map=[t,e.line],i.markup=Array(o+1).join(String.fromCharCode(a)),!0}function Ms(e,t){const u=e.eMarks[t];let n=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(n++);if(s!==42&&s!==45&&s!==43)return-1;if(n<u){const r=e.src.charCodeAt(n);if(!ce(r))return-1}return n}function Os(e,t){const u=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];let s=u;if(s+1>=n)return-1;let r=e.src.charCodeAt(s++);if(r<48||r>57)return-1;for(;;){if(s>=n)return-1;if(r=e.src.charCodeAt(s++),r>=48&&r<=57){if(s-u>=10)return-1;continue}if(r===41||r===46)break;return-1}return s<n&&(r=e.src.charCodeAt(s),!ce(r))?-1:s}function Jc(e,t){const u=e.level+2;for(let n=t+2,s=e.tokens.length-2;n<s;n++)e.tokens[n].level===u&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}function Qc(e,t,u,n){let s,r,a,o,i=t,l=!0;if(e.sCount[i]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[i]-e.listIndent>=4&&e.sCount[i]<e.blkIndent)return!1;let p=!1;n&&e.parentType==="paragraph"&&e.sCount[i]>=e.blkIndent&&(p=!0);let c,v,h;if((h=Os(e,i))>=0){if(c=!0,a=e.bMarks[i]+e.tShift[i],v=Number(e.src.slice(a,h-1)),p&&v!==1)return!1}else if((h=Ms(e,i))>=0)c=!1;else return!1;if(p&&e.skipSpaces(h)>=e.eMarks[i])return!1;if(n)return!0;const m=e.src.charCodeAt(h-1),E=e.tokens.length;c?(o=e.push("ordered_list_open","ol",1),v!==1&&(o.attrs=[["start",v]])):o=e.push("bullet_list_open","ul",1);const A=[i,0];o.map=A,o.markup=String.fromCharCode(m);let _=!1;const g=e.md.block.ruler.getRules("list"),w=e.parentType;for(e.parentType="list";i<u;){r=h,s=e.eMarks[i];const D=e.sCount[i]+h-(e.bMarks[i]+e.tShift[i]);let M=D;for(;r<s;){const U=e.src.charCodeAt(r);if(U===9)M+=4-(M+e.bsCount[i])%4;else if(U===32)M++;else break;r++}const q=r;let $;q>=s?$=1:$=M-D,$>4&&($=1);const F=D+$;o=e.push("list_item_open","li",1),o.markup=String.fromCharCode(m);const R=[i,0];o.map=R,c&&(o.info=e.src.slice(a,h-1));const Q=e.tight,te=e.tShift[i],G=e.sCount[i],J=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=F,e.tight=!0,e.tShift[i]=q-e.bMarks[i],e.sCount[i]=M,q>=s&&e.isEmpty(i+1)?e.line=Math.min(e.line+2,u):e.md.block.tokenize(e,i,u,!0),(!e.tight||_)&&(l=!1),_=e.line-i>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=J,e.tShift[i]=te,e.sCount[i]=G,e.tight=Q,o=e.push("list_item_close","li",-1),o.markup=String.fromCharCode(m),i=e.line,R[1]=i,i>=u||e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)break;let ae=!1;for(let U=0,me=g.length;U<me;U++)if(g[U](e,i,u,!0)){ae=!0;break}if(ae)break;if(c){if(h=Os(e,i),h<0)break;a=e.bMarks[i]+e.tShift[i]}else if(h=Ms(e,i),h<0)break;if(m!==e.src.charCodeAt(h-1))break}return c?o=e.push("ordered_list_close","ol",-1):o=e.push("bullet_list_close","ul",-1),o.markup=String.fromCharCode(m),A[1]=i,e.line=i,e.parentType=w,l&&Jc(e,E),!0}function e0(e,t,u,n){let s=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(s)!==91)return!1;function o(g){const w=e.lineMax;if(g>=w||e.isEmpty(g))return null;let D=!1;if(e.sCount[g]-e.blkIndent>3&&(D=!0),e.sCount[g]<0&&(D=!0),!D){const $=e.md.block.ruler.getRules("reference"),F=e.parentType;e.parentType="reference";let R=!1;for(let Q=0,te=$.length;Q<te;Q++)if($[Q](e,g,w,!0)){R=!0;break}if(e.parentType=F,R)return null}const M=e.bMarks[g]+e.tShift[g],q=e.eMarks[g];return e.src.slice(M,q+1)}let i=e.src.slice(s,r+1);r=i.length;let l=-1;for(s=1;s<r;s++){const g=i.charCodeAt(s);if(g===91)return!1;if(g===93){l=s;break}else if(g===10){const w=o(a);w!==null&&(i+=w,r=i.length,a++)}else if(g===92&&(s++,s<r&&i.charCodeAt(s)===10)){const w=o(a);w!==null&&(i+=w,r=i.length,a++)}}if(l<0||i.charCodeAt(l+1)!==58)return!1;for(s=l+2;s<r;s++){const g=i.charCodeAt(s);if(g===10){const w=o(a);w!==null&&(i+=w,r=i.length,a++)}else if(!ce(g))break}const p=e.md.helpers.parseLinkDestination(i,s,r);if(!p.ok)return!1;const c=e.md.normalizeLink(p.str);if(!e.md.validateLink(c))return!1;s=p.pos;const v=s,h=a,m=s;for(;s<r;s++){const g=i.charCodeAt(s);if(g===10){const w=o(a);w!==null&&(i+=w,r=i.length,a++)}else if(!ce(g))break}let E=e.md.helpers.parseLinkTitle(i,s,r);for(;E.can_continue;){const g=o(a);if(g===null)break;i+=g,s=r,r=i.length,a++,E=e.md.helpers.parseLinkTitle(i,s,r,E)}let A;for(s<r&&m!==s&&E.ok?(A=E.str,s=E.pos):(A="",s=v,a=h);s<r;){const g=i.charCodeAt(s);if(!ce(g))break;s++}if(s<r&&i.charCodeAt(s)!==10&&A)for(A="",s=v,a=h;s<r;){const g=i.charCodeAt(s);if(!ce(g))break;s++}if(s<r&&i.charCodeAt(s)!==10)return!1;const _=Uu(i.slice(1,l));return _?(n||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[_]>"u"&&(e.env.references[_]={title:A,href:c}),e.line=a),!0):!1}const t0=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],u0="[a-zA-Z_:][a-zA-Z0-9:._-]*",n0="[^\"'=<>`\\x00-\\x20]+",s0="'[^']*'",r0='"[^"]*"',a0="(?:"+n0+"|"+s0+"|"+r0+")",o0="(?:\\s+"+u0+"(?:\\s*=\\s*"+a0+")?)",Or="<[A-Za-z][A-Za-z0-9\\-]*"+o0+"*\\s*\\/?>",zr="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",i0="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",l0="<[?][\\s\\S]*?[?]>",c0="<![A-Za-z][^>]*>",d0="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",f0=new RegExp("^(?:"+Or+"|"+zr+"|"+i0+"|"+l0+"|"+c0+"|"+d0+")"),p0=new RegExp("^(?:"+Or+"|"+zr+")"),Dt=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+t0.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(p0.source+"\\s*$"),/^$/,!1]];function h0(e,t,u,n){let s=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(s)!==60)return!1;let a=e.src.slice(s,r),o=0;for(;o<Dt.length&&!Dt[o][0].test(a);o++);if(o===Dt.length)return!1;if(n)return Dt[o][2];let i=t+1;const l=Dt[o][1].test("");if(!Dt[o][1].test(a)){for(;i<u&&!(e.sCount[i]<e.blkIndent&&(l||!e.isEmpty(i)));i++)if(s=e.bMarks[i]+e.tShift[i],r=e.eMarks[i],a=e.src.slice(s,r),Dt[o][1].test(a)){a.length!==0&&i++;break}}e.line=i;const p=e.push("html_block","",0);return p.map=[t,i],p.content=e.getLines(t,i,e.blkIndent,!0),!0}function b0(e,t,u,n){let s=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(s);if(a!==35||s>=r)return!1;let o=1;for(a=e.src.charCodeAt(++s);a===35&&s<r&&o<=6;)o++,a=e.src.charCodeAt(++s);if(o>6||s<r&&!ce(a))return!1;if(n)return!0;r=e.skipSpacesBack(r,s);const i=e.skipCharsBack(r,35,s);i>s&&ce(e.src.charCodeAt(i-1))&&(r=i),e.line=t+1;const l=e.push("heading_open","h"+String(o),1);l.markup="########".slice(0,o),l.map=[t,e.line];const p=e.push("inline","",0);p.content=ju(e.src.slice(s,r)),p.map=[t,e.line],p.children=[];const c=e.push("heading_close","h"+String(o),-1);return c.markup="########".slice(0,o),!0}function m0(e,t,u){const n=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const s=e.parentType;e.parentType="paragraph";let r=0,a,o=t+1;for(;o<u&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3)continue;if(e.sCount[o]>=e.blkIndent){let h=e.bMarks[o]+e.tShift[o];const m=e.eMarks[o];if(h<m&&(a=e.src.charCodeAt(h),(a===45||a===61)&&(h=e.skipChars(h,a),h=e.skipSpaces(h),h>=m))){r=a===61?1:2;break}}if(e.sCount[o]<0)continue;let v=!1;for(let h=0,m=n.length;h<m;h++)if(n[h](e,o,u,!0)){v=!0;break}if(v)break}if(!r)return e.parentType=s,!1;const i=ju(e.getLines(t,o,e.blkIndent,!1));e.line=o+1;const l=e.push("heading_open","h"+String(r),1);l.markup=String.fromCharCode(a),l.map=[t,e.line];const p=e.push("inline","",0);p.content=i,p.map=[t,e.line-1],p.children=[];const c=e.push("heading_close","h"+String(r),-1);return c.markup=String.fromCharCode(a),e.parentType=s,!0}function g0(e,t,u){const n=e.md.block.ruler.getRules("paragraph"),s=e.parentType;let r=t+1;for(e.parentType="paragraph";r<u&&!e.isEmpty(r);r++){if(e.sCount[r]-e.blkIndent>3||e.sCount[r]<0)continue;let l=!1;for(let p=0,c=n.length;p<c;p++)if(n[p](e,r,u,!0)){l=!0;break}if(l)break}const a=ju(e.getLines(t,r,e.blkIndent,!1));e.line=r;const o=e.push("paragraph_open","p",1);o.map=[t,e.line];const i=e.push("inline","",0);return i.content=a,i.map=[t,e.line],i.children=[],e.push("paragraph_close","p",-1),e.parentType=s,!0}const $u=[["table",Gc,["paragraph","reference"]],["code",Kc],["fence",Zc,["paragraph","reference","blockquote","list"]],["blockquote",Yc,["paragraph","reference","blockquote","list"]],["hr",Xc,["paragraph","reference","blockquote","list"]],["list",Qc,["paragraph","reference","blockquote"]],["reference",e0],["html_block",h0,["paragraph","reference","blockquote"]],["heading",b0,["paragraph","reference","blockquote"]],["lheading",m0],["paragraph",g0]];function Hu(){this.ruler=new Ie;for(let e=0;e<$u.length;e++)this.ruler.push($u[e][0],$u[e][1],{alt:($u[e][2]||[]).slice()})}Hu.prototype.tokenize=function(e,t,u){const n=this.ruler.getRules(""),s=n.length,r=e.md.options.maxNesting;let a=t,o=!1;for(;a<u&&(e.line=a=e.skipEmptyLines(a),!(a>=u||e.sCount[a]<e.blkIndent));){if(e.level>=r){e.line=u;break}const i=e.line;let l=!1;for(let p=0;p<s;p++)if(l=n[p](e,a,u,!1),l){if(i>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!o,e.isEmpty(e.line-1)&&(o=!0),a=e.line,a<u&&e.isEmpty(a)&&(o=!0,a++,e.line=a)}};Hu.prototype.parse=function(e,t,u,n){if(!e)return;const s=new this.State(e,t,u,n);this.tokenize(s,s.line,s.lineMax)};Hu.prototype.State=et;function xu(e,t,u,n){this.src=e,this.env=u,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}xu.prototype.pushPending=function(){const e=new je("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};xu.prototype.push=function(e,t,u){this.pending&&this.pushPending();const n=new je(e,t,u);let s=null;return u<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,u>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(s),n};xu.prototype.scanDelims=function(e,t){const u=this.posMax,n=this.src.charCodeAt(e);let s;if(e===0)s=32;else if(e===1)s=this.src.charCodeAt(0),(s&63488)===55296&&(s=65533);else if(s=this.src.charCodeAt(e-1),(s&64512)===56320){const A=this.src.charCodeAt(e-2);s=(A&64512)===55296?65536+(A-55296<<10)+(s-56320):65533}else(s&64512)===55296&&(s=65533);let r=e;for(;r<u&&this.src.charCodeAt(r)===n;)r++;const a=r-e;let o=r<u?this.src.charCodeAt(r):32;if((o&64512)===55296){const A=this.src.charCodeAt(r+1);o=(A&64512)===56320?65536+(o-55296<<10)+(A-56320):65533}else(o&64512)===56320&&(o=65533);const i=pu(s)||fu(s),l=pu(o)||fu(o),p=du(s),c=du(o),v=!c&&(!l||p||i),h=!p&&(!i||c||l);return{can_open:v&&(t||!h||i),can_close:h&&(t||!v||l),length:a}};xu.prototype.Token=je;function x0(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function v0(e,t){let u=e.pos;for(;u<e.posMax&&!x0(e.src.charCodeAt(u));)u++;return u===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,u)),e.pos=u,!0)}const y0=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function k0(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const u=e.pos,n=e.posMax;if(u+3>n||e.src.charCodeAt(u)!==58||e.src.charCodeAt(u+1)!==47||e.src.charCodeAt(u+2)!==47)return!1;const s=e.pending.match(y0);if(!s)return!1;const r=s[1],a=e.md.linkify.matchAtStart(e.src.slice(u-r.length));if(!a)return!1;let o=a.url;if(o.length<=r.length)return!1;let i=o.length;for(;i>0&&o.charCodeAt(i-1)===42;)i--;i!==o.length&&(o=o.slice(0,i));const l=e.md.normalizeLink(o);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-r.length);const p=e.push("link_open","a",1);p.attrs=[["href",l]],p.markup="linkify",p.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(o);const v=e.push("link_close","a",-1);v.markup="linkify",v.info="auto"}return e.pos+=o.length-r.length,!0}function _0(e,t){let u=e.pos;if(e.src.charCodeAt(u)!==10)return!1;const n=e.pending.length-1,s=e.posMax;if(!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let r=n-1;for(;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(u++;u<s&&ce(e.src.charCodeAt(u));)u++;return e.pos=u,!0}const Vn=[];for(let e=0;e<256;e++)Vn.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Vn[e.charCodeAt(0)]=1});function w0(e,t){let u=e.pos;const n=e.posMax;if(e.src.charCodeAt(u)!==92||(u++,u>=n))return!1;let s=e.src.charCodeAt(u);if(s===10){for(t||e.push("hardbreak","br",0),u++;u<n&&(s=e.src.charCodeAt(u),!!ce(s));)u++;return e.pos=u,!0}let r=e.src[u];if(s>=55296&&s<=56319&&u+1<n){const o=e.src.charCodeAt(u+1);o>=56320&&o<=57343&&(r+=e.src[u+1],u++)}const a="\\"+r;if(!t){const o=e.push("text_special","",0);s<256&&Vn[s]!==0?o.content=r:o.content=a,o.markup=a,o.info="escape"}return e.pos=u+1,!0}function E0(e,t){let u=e.pos;if(e.src.charCodeAt(u)!==96)return!1;const s=u;u++;const r=e.posMax;for(;u<r&&e.src.charCodeAt(u)===96;)u++;const a=e.src.slice(s,u),o=a.length;if(e.backticksScanned&&(e.backticks[o]||0)<=s)return t||(e.pending+=a),e.pos+=o,!0;let i=u,l;for(;(l=e.src.indexOf("`",i))!==-1;){for(i=l+1;i<r&&e.src.charCodeAt(i)===96;)i++;const p=i-l;if(p===o){if(!t){const c=e.push("code_inline","code",0);c.markup=a,c.content=e.src.slice(u,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=i,!0}e.backticks[p]=l}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=o,!0}function A0(e,t){const u=e.pos,n=e.src.charCodeAt(u);if(t||n!==126)return!1;const s=e.scanDelims(e.pos,!0);let r=s.length;const a=String.fromCharCode(n);if(r<2)return!1;let o;r%2&&(o=e.push("text","",0),o.content=a,r--);for(let i=0;i<r;i+=2)o=e.push("text","",0),o.content=a+a,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return e.pos+=s.length,!0}function zs(e,t){let u;const n=[],s=t.length;for(let r=0;r<s;r++){const a=t[r];if(a.marker!==126||a.end===-1)continue;const o=t[a.end];u=e.tokens[a.token],u.type="s_open",u.tag="s",u.nesting=1,u.markup="~~",u.content="",u=e.tokens[o.token],u.type="s_close",u.tag="s",u.nesting=-1,u.markup="~~",u.content="",e.tokens[o.token-1].type==="text"&&e.tokens[o.token-1].content==="~"&&n.push(o.token-1)}for(;n.length;){const r=n.pop();let a=r+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,r!==a&&(u=e.tokens[a],e.tokens[a]=e.tokens[r],e.tokens[r]=u)}}function C0(e){const t=e.tokens_meta,u=e.tokens_meta.length;zs(e,e.delimiters);for(let n=0;n<u;n++)t[n]&&t[n].delimiters&&zs(e,t[n].delimiters)}const Rr={tokenize:A0,postProcess:C0};function D0(e,t){const u=e.pos,n=e.src.charCodeAt(u);if(t||n!==95&&n!==42)return!1;const s=e.scanDelims(e.pos,n===42);for(let r=0;r<s.length;r++){const a=e.push("text","",0);a.content=String.fromCharCode(n),e.delimiters.push({marker:n,length:s.length,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close})}return e.pos+=s.length,!0}function Rs(e,t){const u=t.length;for(let n=u-1;n>=0;n--){const s=t[n];if(s.marker!==95&&s.marker!==42||s.end===-1)continue;const r=t[s.end],a=n>0&&t[n-1].end===s.end+1&&t[n-1].marker===s.marker&&t[n-1].token===s.token-1&&t[s.end+1].token===r.token+1,o=String.fromCharCode(s.marker),i=e.tokens[s.token];i.type=a?"strong_open":"em_open",i.tag=a?"strong":"em",i.nesting=1,i.markup=a?o+o:o,i.content="";const l=e.tokens[r.token];l.type=a?"strong_close":"em_close",l.tag=a?"strong":"em",l.nesting=-1,l.markup=a?o+o:o,l.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[s.end+1].token].content="",n--)}}function $0(e){const t=e.tokens_meta,u=e.tokens_meta.length;Rs(e,e.delimiters);for(let n=0;n<u;n++)t[n]&&t[n].delimiters&&Rs(e,t[n].delimiters)}const Lr={tokenize:D0,postProcess:$0};function T0(e,t){let u,n,s,r,a="",o="",i=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const p=e.pos,c=e.posMax,v=e.pos+1,h=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(h<0)return!1;let m=h+1;if(m<c&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<c&&(u=e.src.charCodeAt(m),!(!ce(u)&&u!==10));m++);if(m>=c)return!1;if(i=m,s=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),s.ok){for(a=e.md.normalizeLink(s.str),e.md.validateLink(a)?m=s.pos:a="",i=m;m<c&&(u=e.src.charCodeAt(m),!(!ce(u)&&u!==10));m++);if(s=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<c&&i!==m&&s.ok)for(o=s.str,m=s.pos;m<c&&(u=e.src.charCodeAt(m),!(!ce(u)&&u!==10));m++);}(m>=c||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(typeof e.env.references>"u")return!1;if(m<c&&e.src.charCodeAt(m)===91?(i=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?n=e.src.slice(i,m++):m=h+1):m=h+1,n||(n=e.src.slice(v,h)),r=e.env.references[Uu(n)],!r)return e.pos=p,!1;a=r.href,o=r.title}if(!t){e.pos=v,e.posMax=h;const E=e.push("link_open","a",1),A=[["href",a]];E.attrs=A,o&&A.push(["title",o]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=c,!0}function S0(e,t){let u,n,s,r,a,o,i,l,p="";const c=e.pos,v=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const h=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(r=m+1,r<v&&e.src.charCodeAt(r)===40){for(r++;r<v&&(u=e.src.charCodeAt(r),!(!ce(u)&&u!==10));r++);if(r>=v)return!1;for(l=r,o=e.md.helpers.parseLinkDestination(e.src,r,e.posMax),o.ok&&(p=e.md.normalizeLink(o.str),e.md.validateLink(p)?r=o.pos:p=""),l=r;r<v&&(u=e.src.charCodeAt(r),!(!ce(u)&&u!==10));r++);if(o=e.md.helpers.parseLinkTitle(e.src,r,e.posMax),r<v&&l!==r&&o.ok)for(i=o.str,r=o.pos;r<v&&(u=e.src.charCodeAt(r),!(!ce(u)&&u!==10));r++);else i="";if(r>=v||e.src.charCodeAt(r)!==41)return e.pos=c,!1;r++}else{if(typeof e.env.references>"u")return!1;if(r<v&&e.src.charCodeAt(r)===91?(l=r+1,r=e.md.helpers.parseLinkLabel(e,r),r>=0?s=e.src.slice(l,r++):r=m+1):r=m+1,s||(s=e.src.slice(h,m)),a=e.env.references[Uu(s)],!a)return e.pos=c,!1;p=a.href,i=a.title}if(!t){n=e.src.slice(h,m);const E=[];e.md.inline.parse(n,e.md,e.env,E);const A=e.push("image","img",0),_=[["src",p],["alt",""]];A.attrs=_,A.children=E,A.content=n,i&&_.push(["title",i])}return e.pos=r,e.posMax=v,!0}const F0=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,I0=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function M0(e,t){let u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;const n=e.pos,s=e.posMax;for(;;){if(++u>=s)return!1;const a=e.src.charCodeAt(u);if(a===60)return!1;if(a===62)break}const r=e.src.slice(n+1,u);if(I0.test(r)){const a=e.md.normalizeLink(r);if(!e.md.validateLink(a))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",a]],o.markup="autolink",o.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(r);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=r.length+2,!0}if(F0.test(r)){const a=e.md.normalizeLink("mailto:"+r);if(!e.md.validateLink(a))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",a]],o.markup="autolink",o.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(r);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=r.length+2,!0}return!1}function O0(e){return/^<a[>\s]/i.test(e)}function z0(e){return/^<\/a\s*>/i.test(e)}function R0(e){const t=e|32;return t>=97&&t<=122}function L0(e,t){if(!e.md.options.html)return!1;const u=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=u)return!1;const s=e.src.charCodeAt(n+1);if(s!==33&&s!==63&&s!==47&&!R0(s))return!1;const r=e.src.slice(n).match(f0);if(!r)return!1;if(!t){const a=e.push("html_inline","",0);a.content=r[0],O0(a.content)&&e.linkLevel++,z0(a.content)&&e.linkLevel--}return e.pos+=r[0].length,!0}const N0=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,P0=/^&([a-z][a-z0-9]{1,31});/i;function B0(e,t){const u=e.pos,n=e.posMax;if(e.src.charCodeAt(u)!==38||u+1>=n)return!1;if(e.src.charCodeAt(u+1)===35){const r=e.src.slice(u).match(N0);if(r){if(!t){const a=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),o=e.push("text_special","",0);o.content=jn(a)?cu(a):cu(65533),o.markup=r[0],o.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(u).match(P0);if(r){const a=rc(r[0]);if(a!==r[0]){if(!t){const o=e.push("text_special","",0);o.content=a,o.markup=r[0],o.info="entity"}return e.pos+=r[0].length,!0}}}return!1}function Ls(e){const t={},u=e.length;if(!u)return;let n=0,s=-2;const r=[];for(let a=0;a<u;a++){const o=e[a];if(r.push(0),(e[n].marker!==o.marker||s!==o.token-1)&&(n=a),s=o.token,o.length=o.length||0,!o.close)continue;t.hasOwnProperty(o.marker)||(t[o.marker]=[-1,-1,-1,-1,-1,-1]);const i=t[o.marker][(o.open?3:0)+o.length%3];let l=n-r[n]-1,p=l;for(;l>i;l-=r[l]+1){const c=e[l];if(c.marker===o.marker&&c.open&&c.end<0){let v=!1;if((c.close||o.open)&&(c.length+o.length)%3===0&&(c.length%3!==0||o.length%3!==0)&&(v=!0),!v){const h=l>0&&!e[l-1].open?r[l-1]+1:0;r[a]=a-l+h,r[l]=h,o.open=!1,c.end=a,c.close=!1,p=-1,s=-2;break}}}p!==-1&&(t[o.marker][(o.open?3:0)+(o.length||0)%3]=p)}}function q0(e){const t=e.tokens_meta,u=e.tokens_meta.length;Ls(e.delimiters);for(let n=0;n<u;n++)t[n]&&t[n].delimiters&&Ls(t[n].delimiters)}function U0(e){let t,u,n=0;const s=e.tokens,r=e.tokens.length;for(t=u=0;t<r;t++)s[t].nesting<0&&n--,s[t].level=n,s[t].nesting>0&&n++,s[t].type==="text"&&t+1<r&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==u&&(s[u]=s[t]),u++);t!==u&&(s.length=u)}const mn=[["text",v0],["linkify",k0],["newline",_0],["escape",w0],["backticks",E0],["strikethrough",Rr.tokenize],["emphasis",Lr.tokenize],["link",T0],["image",S0],["autolink",M0],["html_inline",L0],["entity",B0]],gn=[["balance_pairs",q0],["strikethrough",Rr.postProcess],["emphasis",Lr.postProcess],["fragments_join",U0]];function vu(){this.ruler=new Ie;for(let e=0;e<mn.length;e++)this.ruler.push(mn[e][0],mn[e][1]);this.ruler2=new Ie;for(let e=0;e<gn.length;e++)this.ruler2.push(gn[e][0],gn[e][1])}vu.prototype.skipToken=function(e){const t=e.pos,u=this.ruler.getRules(""),n=u.length,s=e.md.options.maxNesting,r=e.cache;if(typeof r[t]<"u"){e.pos=r[t];return}let a=!1;if(e.level<s){for(let o=0;o<n;o++)if(e.level++,a=u[o](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,r[t]=e.pos};vu.prototype.tokenize=function(e){const t=this.ruler.getRules(""),u=t.length,n=e.posMax,s=e.md.options.maxNesting;for(;e.pos<n;){const r=e.pos;let a=!1;if(e.level<s){for(let o=0;o<u;o++)if(a=t[o](e,!1),a){if(r>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};vu.prototype.parse=function(e,t,u,n){const s=new this.State(e,t,u,n);this.tokenize(s);const r=this.ruler2.getRules(""),a=r.length;for(let o=0;o<a;o++)r[o](s)};vu.prototype.State=xu;function j0(e){const t={};e=e||{},t.src_Any=wr.source,t.src_Cc=Er.source,t.src_Z=Cr.source,t.src_P=qn.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const u="[><|]";return t.src_pseudo_letter="(?:(?!"+u+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+u+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+u+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+u+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function Fn(e){return Array.prototype.slice.call(arguments,1).forEach(function(u){u&&Object.keys(u).forEach(function(n){e[n]=u[n]})}),e}function Vu(e){return Object.prototype.toString.call(e)}function H0(e){return Vu(e)==="[object String]"}function V0(e){return Vu(e)==="[object Object]"}function W0(e){return Vu(e)==="[object RegExp]"}function Ns(e){return Vu(e)==="[object Function]"}function G0(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Nr={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function K0(e){return Object.keys(e||{}).reduce(function(t,u){return t||Nr.hasOwnProperty(u)},!1)}const Z0={"http:":{validate:function(e,t,u){const n=e.slice(t);return u.re.http||(u.re.http=new RegExp("^\\/\\/"+u.re.src_auth+u.re.src_host_port_strict+u.re.src_path,"i")),u.re.http.test(n)?n.match(u.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,u){const n=e.slice(t);return u.re.no_http||(u.re.no_http=new RegExp("^"+u.re.src_auth+"(?:localhost|(?:(?:"+u.re.src_domain+")\\.)+"+u.re.src_domain_root+")"+u.re.src_port+u.re.src_host_terminator+u.re.src_path,"i")),u.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(u.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,u){const n=e.slice(t);return u.re.mailto||(u.re.mailto=new RegExp("^"+u.re.src_email_name+"@"+u.re.src_host_strict,"i")),u.re.mailto.test(n)?n.match(u.re.mailto)[0].length:0}}},Y0="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",X0="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function J0(e){return function(t,u){const n=t.slice(u);return e.test(n)?n.match(e)[0].length:0}}function Ps(){return function(e,t){t.normalize(e)}}function Ou(e){const t=e.re=j0(e.__opts__),u=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||u.push(Y0),u.push(t.src_xn),t.src_tlds=u.join("|");function n(o){return o.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(n(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(n(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(n(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");const s=[];e.__compiled__={};function r(o,i){throw new Error('(LinkifyIt) Invalid schema "'+o+'": '+i)}Object.keys(e.__schemas__).forEach(function(o){const i=e.__schemas__[o];if(i===null)return;const l={validate:null,link:null};if(e.__compiled__[o]=l,V0(i)){W0(i.validate)?l.validate=J0(i.validate):Ns(i.validate)?l.validate=i.validate:r(o,i),Ns(i.normalize)?l.normalize=i.normalize:i.normalize?r(o,i):l.normalize=Ps();return}if(H0(i)){s.push(o);return}r(o,i)}),s.forEach(function(o){e.__compiled__[e.__schemas__[o]]&&(e.__compiled__[o].validate=e.__compiled__[e.__schemas__[o]].validate,e.__compiled__[o].normalize=e.__compiled__[e.__schemas__[o]].normalize)}),e.__compiled__[""]={validate:null,normalize:Ps()};const a=Object.keys(e.__compiled__).filter(function(o){return o.length>0&&e.__compiled__[o]}).map(G0).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i")}function Pr(e,t,u,n){const s=e.slice(u,n);this.schema=t.toLowerCase(),this.index=u,this.lastIndex=n,this.raw=s,this.text=s,this.url=s}function ze(e,t){if(!(this instanceof ze))return new ze(e,t);t||K0(e)&&(t=e,e={}),this.__opts__=Fn({},Nr,t),this.__schemas__=Fn({},Z0,e),this.__compiled__={},this.__tlds__=X0,this.__tlds_replaced__=!1,this.re={},Ou(this)}ze.prototype.add=function(t,u){return this.__schemas__[t]=u,Ou(this),this};ze.prototype.set=function(t){return this.__opts__=Fn(this.__opts__,t),this};ze.prototype.test=function(t){if(!t.length)return!1;let u,n;if(this.re.schema_test.test(t)){for(n=this.re.schema_search,n.lastIndex=0;(u=n.exec(t))!==null;)if(this.testSchemaAt(t,u[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};ze.prototype.pretest=function(t){return this.re.pretest.test(t)};ze.prototype.testSchemaAt=function(t,u,n){return this.__compiled__[u.toLowerCase()]?this.__compiled__[u.toLowerCase()].validate(t,n,this):0};ze.prototype.match=function(t){const u=[],n=[],s=[],r=[];let a,o,i;function l(v,h){return v?h?v.index!==h.index?v.index<h.index?v:h:v.lastIndex>=h.lastIndex?v:h:v:h}if(!t.length)return null;if(this.re.schema_test.test(t))for(i=this.re.schema_search,i.lastIndex=0;(a=i.exec(t))!==null;)o=this.testSchemaAt(t,a[2],i.lastIndex),o&&n.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(i=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,i.lastIndex=0;(a=i.exec(t))!==null;)s.push({schema:"",index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(i=this.re.email_fuzzy_global,i.lastIndex=0;(a=i.exec(t))!==null;)r.push({schema:"mailto:",index:a.index+a[1].length,lastIndex:a.index+a[0].length});const p=[0,0,0];let c=0;for(;;){const v=[n[p[0]],r[p[1]],s[p[2]]],h=l(l(v[0],v[1]),v[2]);if(!h)break;if(h===v[0]?p[0]++:h===v[1]?p[1]++:p[2]++,h.index<c)continue;const m=new Pr(t,h.schema,h.index,h.lastIndex);this.__compiled__[m.schema].normalize(m,this),u.push(m),c=h.lastIndex}return u.length?u:null};ze.prototype.matchAtStart=function(t){if(!t.length)return null;const u=this.re.schema_at_start.exec(t);if(!u)return null;const n=this.testSchemaAt(t,u[2],u[0].length);if(!n)return null;const s=new Pr(t,u[2],u.index+u[1].length,u.index+u[0].length+n);return this.__compiled__[s.schema].normalize(s,this),s};ze.prototype.tlds=function(t,u){return t=Array.isArray(t)?t:[t],u?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,s,r){return n!==r[s-1]}).reverse(),Ou(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Ou(this),this)};ze.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};ze.prototype.onCompile=function(){};const Wt=2147483647,Ze=36,Wn=1,hu=26,Q0=38,ed=700,Br=72,qr=128,Ur="-",td=/^xn--/,ud=/[^\0-\x7F]/,nd=/[\x2E\u3002\uFF0E\uFF61]/g,sd={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},xn=Ze-Wn,Ye=Math.floor,vn=String.fromCharCode;function pt(e){throw new RangeError(sd[e])}function rd(e,t){const u=[];let n=e.length;for(;n--;)u[n]=t(e[n]);return u}function jr(e,t){const u=e.split("@");let n="";u.length>1&&(n=u[0]+"@",e=u[1]),e=e.replace(nd,".");const s=e.split("."),r=rd(s,t).join(".");return n+r}function Hr(e){const t=[];let u=0;const n=e.length;for(;u<n;){const s=e.charCodeAt(u++);if(s>=55296&&s<=56319&&u<n){const r=e.charCodeAt(u++);(r&64512)==56320?t.push(((s&1023)<<10)+(r&1023)+65536):(t.push(s),u--)}else t.push(s)}return t}const ad=e=>String.fromCodePoint(...e),od=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Ze},Bs=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Vr=function(e,t,u){let n=0;for(e=u?Ye(e/ed):e>>1,e+=Ye(e/t);e>xn*hu>>1;n+=Ze)e=Ye(e/xn);return Ye(n+(xn+1)*e/(e+Q0))},Wr=function(e){const t=[],u=e.length;let n=0,s=qr,r=Br,a=e.lastIndexOf(Ur);a<0&&(a=0);for(let o=0;o<a;++o)e.charCodeAt(o)>=128&&pt("not-basic"),t.push(e.charCodeAt(o));for(let o=a>0?a+1:0;o<u;){const i=n;for(let p=1,c=Ze;;c+=Ze){o>=u&&pt("invalid-input");const v=od(e.charCodeAt(o++));v>=Ze&&pt("invalid-input"),v>Ye((Wt-n)/p)&&pt("overflow"),n+=v*p;const h=c<=r?Wn:c>=r+hu?hu:c-r;if(v<h)break;const m=Ze-h;p>Ye(Wt/m)&&pt("overflow"),p*=m}const l=t.length+1;r=Vr(n-i,l,i==0),Ye(n/l)>Wt-s&&pt("overflow"),s+=Ye(n/l),n%=l,t.splice(n++,0,s)}return String.fromCodePoint(...t)},Gr=function(e){const t=[];e=Hr(e);const u=e.length;let n=qr,s=0,r=Br;for(const i of e)i<128&&t.push(vn(i));const a=t.length;let o=a;for(a&&t.push(Ur);o<u;){let i=Wt;for(const p of e)p>=n&&p<i&&(i=p);const l=o+1;i-n>Ye((Wt-s)/l)&&pt("overflow"),s+=(i-n)*l,n=i;for(const p of e)if(p<n&&++s>Wt&&pt("overflow"),p===n){let c=s;for(let v=Ze;;v+=Ze){const h=v<=r?Wn:v>=r+hu?hu:v-r;if(c<h)break;const m=c-h,E=Ze-h;t.push(vn(Bs(h+m%E,0))),c=Ye(m/E)}t.push(vn(Bs(c,0))),r=Vr(s,l,o===a),s=0,++o}++s,++n}return t.join("")},id=function(e){return jr(e,function(t){return td.test(t)?Wr(t.slice(4).toLowerCase()):t})},ld=function(e){return jr(e,function(t){return ud.test(t)?"xn--"+Gr(t):t})},Kr={version:"2.3.1",ucs2:{decode:Hr,encode:ad},decode:Wr,encode:Gr,toASCII:ld,toUnicode:id},cd={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},dd={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},fd={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},pd={default:cd,zero:dd,commonmark:fd},hd=/^(vbscript|javascript|file|data):/,bd=/^data:image\/(gif|png|jpeg|webp);/;function md(e){const t=e.trim().toLowerCase();return hd.test(t)?bd.test(t):!0}const Zr=["http:","https:","mailto:"];function gd(e){const t=Bn(e,!0);if(t.hostname&&(!t.protocol||Zr.indexOf(t.protocol)>=0))try{t.hostname=Kr.toASCII(t.hostname)}catch{}return gu(Pn(t))}function xd(e){const t=Bn(e,!0);if(t.hostname&&(!t.protocol||Zr.indexOf(t.protocol)>=0))try{t.hostname=Kr.toUnicode(t.hostname)}catch{}return Kt(Pn(t),Kt.defaultChars+"%")}function Ne(e,t){if(!(this instanceof Ne))return new Ne(e,t);t||Un(e)||(t=e||{},e="default"),this.inline=new vu,this.block=new Hu,this.core=new Hn,this.renderer=new Xt,this.linkify=new ze,this.validateLink=md,this.normalizeLink=gd,this.normalizeLinkText=xd,this.utils=kc,this.helpers=qu({},Ac),this.options={},this.configure(e),t&&this.set(t)}Ne.prototype.set=function(e){return qu(this.options,e),this};Ne.prototype.configure=function(e){const t=this;if(Un(e)){const u=e;if(e=pd[u],!e)throw new Error('Wrong `markdown-it` preset "'+u+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(u){e.components[u].rules&&t[u].ruler.enableOnly(e.components[u].rules),e.components[u].rules2&&t[u].ruler2.enableOnly(e.components[u].rules2)}),this};Ne.prototype.enable=function(e,t){let u=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(s){u=u.concat(this[s].ruler.enable(e,!0))},this),u=u.concat(this.inline.ruler2.enable(e,!0));const n=e.filter(function(s){return u.indexOf(s)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};Ne.prototype.disable=function(e,t){let u=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(s){u=u.concat(this[s].ruler.disable(e,!0))},this),u=u.concat(this.inline.ruler2.disable(e,!0));const n=e.filter(function(s){return u.indexOf(s)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};Ne.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Ne.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const u=new this.core.State(e,this,t);return this.core.process(u),u.tokens};Ne.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Ne.prototype.parseInline=function(e,t){const u=new this.core.State(e,this,t);return u.inlineMode=!0,this.core.process(u),u.tokens};Ne.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};/*! @license DOMPurify 3.4.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.10/LICENSE */function qs(e,t){(t==null||t>e.length)&&(t=e.length);for(var u=0,n=Array(t);u<t;u++)n[u]=e[u];return n}function vd(e){if(Array.isArray(e))return e}function yd(e,t){var u=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(u!=null){var n,s,r,a,o=[],i=!0,l=!1;try{if(r=(u=u.call(e)).next,t!==0)for(;!(i=(n=r.call(u)).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(p){l=!0,s=p}finally{try{if(!i&&u.return!=null&&(a=u.return(),Object(a)!==a))return}finally{if(l)throw s}}return o}}function kd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
242
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _d(e,t){return vd(e)||yd(e,t)||wd(e,t)||kd()}function wd(e,t){if(e){if(typeof e=="string")return qs(e,t);var u={}.toString.call(e).slice(8,-1);return u==="Object"&&e.constructor&&(u=e.constructor.name),u==="Map"||u==="Set"?Array.from(e):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?qs(e,t):void 0}}const Yr=Object.entries,Us=Object.setPrototypeOf,Ed=Object.isFrozen,Ad=Object.getPrototypeOf,Cd=Object.getOwnPropertyDescriptor;let we=Object.freeze,Ae=Object.seal,Vt=Object.create,Xr=typeof Reflect<"u"&&Reflect,In=Xr.apply,Mn=Xr.construct;we||(we=function(t){return t});Ae||(Ae=function(t){return t});In||(In=function(t,u){for(var n=arguments.length,s=new Array(n>2?n-2:0),r=2;r<n;r++)s[r-2]=arguments[r];return t.apply(u,s)});Mn||(Mn=function(t){for(var u=arguments.length,n=new Array(u>1?u-1:0),s=1;s<u;s++)n[s-1]=arguments[s];return new t(...n)});const nu=be(Array.prototype.forEach),Dd=be(Array.prototype.lastIndexOf),js=be(Array.prototype.pop),qt=be(Array.prototype.push),$d=be(Array.prototype.splice),ht=Array.isArray,au=be(String.prototype.toLowerCase),yn=be(String.prototype.toString),Hs=be(String.prototype.match),su=be(String.prototype.replace),Vs=be(String.prototype.indexOf),Td=be(String.prototype.trim),Sd=be(Number.prototype.toString),Fd=be(Boolean.prototype.toString),Ws=typeof BigInt>"u"?null:be(BigInt.prototype.toString),Gs=typeof Symbol>"u"?null:be(Symbol.prototype.toString),Se=be(Object.prototype.hasOwnProperty),ru=be(Object.prototype.toString),_e=be(RegExp.prototype.test),$t=Id(TypeError);function be(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var u=arguments.length,n=new Array(u>1?u-1:0),s=1;s<u;s++)n[s-1]=arguments[s];return In(e,t,n)}}function Id(e){return function(){for(var t=arguments.length,u=new Array(t),n=0;n<t;n++)u[n]=arguments[n];return Mn(e,u)}}function ne(e,t){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:au;if(Us&&Us(e,null),!ht(t))return e;let n=t.length;for(;n--;){let s=t[n];if(typeof s=="string"){const r=u(s);r!==s&&(Ed(t)||(t[n]=r),s=r)}e[s]=!0}return e}function Md(e){for(let t=0;t<e.length;t++)Se(e,t)||(e[t]=null);return e}function Te(e){const t=Vt(null);for(const n of Yr(e)){var u=_d(n,2);const s=u[0],r=u[1];Se(e,s)&&(ht(r)?t[s]=Md(r):r&&typeof r=="object"&&r.constructor===Object?t[s]=Te(r):t[s]=r)}return t}function Od(e){switch(typeof e){case"string":return e;case"number":return Sd(e);case"boolean":return Fd(e);case"bigint":return Ws?Ws(e):"0";case"symbol":return Gs?Gs(e):"Symbol()";case"undefined":return ru(e);case"function":case"object":{if(e===null)return ru(e);const t=e,u=Ke(t,"toString");if(typeof u=="function"){const n=u(t);return typeof n=="string"?n:ru(n)}return ru(e)}default:return ru(e)}}function Ke(e,t){for(;e!==null;){const n=Cd(e,t);if(n){if(n.get)return be(n.get);if(typeof n.value=="function")return be(n.value)}e=Ad(e)}function u(){return null}return u}function zd(e){try{return _e(e,""),!0}catch{return!1}}const Ks=we(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),kn=we(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_n=we(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Rd=we(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),wn=we(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ld=we(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zs=we(["#text"]),Ys=we(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),En=we(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Xs=we(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Tu=we(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Nd=Ae(/{{[\w\W]*|^[\w\W]*}}/g),Pd=Ae(/<%[\w\W]*|^[\w\W]*%>/g),Bd=Ae(/\${[\w\W]*/g),qd=Ae(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ud=Ae(/^aria-[\-\w]+$/),Js=Ae(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jd=Ae(/^(?:\w+script|data):/i),Hd=Ae(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Vd=Ae(/^html$/i),Wd=Ae(/^[a-z][.\w]*(-[.\w]+)+$/i),Qs=Ae(/<[/\w!]/g),Gd=Ae(/<[/\w]/g),Kd=Ae(/<\/no(script|embed|frames)/i),Zd=Ae(/\/>/i),Ge={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Yd=function(){return typeof window>"u"?null:window},Xd=function(t,u){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const s="data-tt-policy-suffix";u&&u.hasAttribute(s)&&(n=u.getAttribute(s));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},er=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},dt=function(t,u,n,s){return Se(t,u)&&ht(t[u])?ne(s.base?Te(s.base):{},t[u],s.transform):n};function Jr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yd();const t=P=>Jr(P);if(t.version="3.4.10",t.removed=[],!e||!e.document||e.document.nodeType!==Ge.document||!e.Element)return t.isSupported=!1,t;let u=e.document;const n=u,s=n.currentScript;e.DocumentFragment;const r=e.HTMLTemplateElement,a=e.Node,o=e.Element,i=e.NodeFilter,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,c=e.trustedTypes,v=o.prototype,h=Ke(v,"cloneNode"),m=Ke(v,"remove"),E=Ke(v,"nextSibling"),A=Ke(v,"childNodes"),_=Ke(v,"parentNode"),g=Ke(v,"shadowRoot"),w=Ke(v,"attributes"),D=a&&a.prototype?Ke(a.prototype,"nodeType"):null,M=a&&a.prototype?Ke(a.prototype,"nodeName"):null;if(typeof r=="function"){const P=u.createElement("template");P.content&&P.content.ownerDocument&&(u=P.content.ownerDocument)}let q,$="",F,R=!1,Q=0;const te=function(){if(Q>0)throw $t('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},G=function(b){te(),Q++;try{return q.createHTML(b)}finally{Q--}},J=function(b){te(),Q++;try{return q.createScriptURL(b)}finally{Q--}},ae=function(){return R||(F=Xd(c,s),R=!0),F},U=u,me=U.implementation,Re=U.createNodeIterator,_t=U.createDocumentFragment,Ot=U.getElementsByTagName,Jt=n.importNode;let N=er();t.isSupported=typeof Yr=="function"&&typeof _=="function"&&me&&me.createHTMLDocument!==void 0;const L=Nd,Z=Pd,ge=Bd,xe=qd,Ce=Ud,zt=jd,wt=Hd,it=Wd;let Pe=Js,S=null;const H=ne({},[...Ks,...kn,..._n,...wn,...Zs]);let B=null;const de=ne({},[...Ys,...En,...Xs,...Tu]);let se=Object.seal(Vt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Me=null,Be=null;const He=Object.seal(Vt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Gu=!0,qe=!0,tt=!1,Ku=!0,lt=!1,Qt=!0,Et=!1,Zu=!1,Yu=!1,Rt=!1,yu=!1,ku=!1,Xn=!0,Jn=!1;const Qn="user-content-";let Xu=!0,Ju=!1,Lt={},Ve=null;const Qu=ne({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let es=null;const ts=ne({},["audio","video","img","source","image","track"]);let en=null;const us=ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_u="http://www.w3.org/1998/Math/MathML",wu="http://www.w3.org/2000/svg",We="http://www.w3.org/1999/xhtml";let Nt=We,tn=!1,un=null;const ga=ne({},[_u,wu,We],yn),ns=we(["mi","mo","mn","ms","mtext"]);let nn=ne({},ns);const ss=we(["annotation-xml"]);let sn=ne({},ss);const xa=ne({},["title","style","font","a","script"]);let eu=null;const va=["application/xhtml+xml","text/html"],ya="text/html";let fe=null,Pt=null;const ka=u.createElement("form"),rs=function(b){return b instanceof RegExp||b instanceof Function},rn=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Pt&&Pt===b)return;(!b||typeof b!="object")&&(b={}),b=Te(b),eu=va.indexOf(b.PARSER_MEDIA_TYPE)===-1?ya:b.PARSER_MEDIA_TYPE,fe=eu==="application/xhtml+xml"?yn:au,S=dt(b,"ALLOWED_TAGS",H,{transform:fe}),B=dt(b,"ALLOWED_ATTR",de,{transform:fe}),un=dt(b,"ALLOWED_NAMESPACES",ga,{transform:yn}),en=dt(b,"ADD_URI_SAFE_ATTR",us,{transform:fe,base:us}),es=dt(b,"ADD_DATA_URI_TAGS",ts,{transform:fe,base:ts}),Ve=dt(b,"FORBID_CONTENTS",Qu,{transform:fe}),Me=dt(b,"FORBID_TAGS",Te({}),{transform:fe}),Be=dt(b,"FORBID_ATTR",Te({}),{transform:fe}),Lt=Se(b,"USE_PROFILES")?b.USE_PROFILES&&typeof b.USE_PROFILES=="object"?Te(b.USE_PROFILES):b.USE_PROFILES:!1,Gu=b.ALLOW_ARIA_ATTR!==!1,qe=b.ALLOW_DATA_ATTR!==!1,tt=b.ALLOW_UNKNOWN_PROTOCOLS||!1,Ku=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,lt=b.SAFE_FOR_TEMPLATES||!1,Qt=b.SAFE_FOR_XML!==!1,Et=b.WHOLE_DOCUMENT||!1,Rt=b.RETURN_DOM||!1,yu=b.RETURN_DOM_FRAGMENT||!1,ku=b.RETURN_TRUSTED_TYPE||!1,Yu=b.FORCE_BODY||!1,Xn=b.SANITIZE_DOM!==!1,Jn=b.SANITIZE_NAMED_PROPS||!1,Xu=b.KEEP_CONTENT!==!1,Ju=b.IN_PLACE||!1,Pe=zd(b.ALLOWED_URI_REGEXP)?b.ALLOWED_URI_REGEXP:Js,Nt=typeof b.NAMESPACE=="string"?b.NAMESPACE:We,nn=Se(b,"MATHML_TEXT_INTEGRATION_POINTS")&&b.MATHML_TEXT_INTEGRATION_POINTS&&typeof b.MATHML_TEXT_INTEGRATION_POINTS=="object"?Te(b.MATHML_TEXT_INTEGRATION_POINTS):ne({},ns),sn=Se(b,"HTML_INTEGRATION_POINTS")&&b.HTML_INTEGRATION_POINTS&&typeof b.HTML_INTEGRATION_POINTS=="object"?Te(b.HTML_INTEGRATION_POINTS):ne({},ss);const C=Se(b,"CUSTOM_ELEMENT_HANDLING")&&b.CUSTOM_ELEMENT_HANDLING&&typeof b.CUSTOM_ELEMENT_HANDLING=="object"?Te(b.CUSTOM_ELEMENT_HANDLING):Vt(null);if(se=Vt(null),Se(C,"tagNameCheck")&&rs(C.tagNameCheck)&&(se.tagNameCheck=C.tagNameCheck),Se(C,"attributeNameCheck")&&rs(C.attributeNameCheck)&&(se.attributeNameCheck=C.attributeNameCheck),Se(C,"allowCustomizedBuiltInElements")&&typeof C.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=C.allowCustomizedBuiltInElements),Ae(se),lt&&(qe=!1),yu&&(Rt=!0),Lt&&(S=ne({},Zs),B=Vt(null),Lt.html===!0&&(ne(S,Ks),ne(B,Ys)),Lt.svg===!0&&(ne(S,kn),ne(B,En),ne(B,Tu)),Lt.svgFilters===!0&&(ne(S,_n),ne(B,En),ne(B,Tu)),Lt.mathMl===!0&&(ne(S,wn),ne(B,Xs),ne(B,Tu))),He.tagCheck=null,He.attributeCheck=null,Se(b,"ADD_TAGS")&&(typeof b.ADD_TAGS=="function"?He.tagCheck=b.ADD_TAGS:ht(b.ADD_TAGS)&&(S===H&&(S=Te(S)),ne(S,b.ADD_TAGS,fe))),Se(b,"ADD_ATTR")&&(typeof b.ADD_ATTR=="function"?He.attributeCheck=b.ADD_ATTR:ht(b.ADD_ATTR)&&(B===de&&(B=Te(B)),ne(B,b.ADD_ATTR,fe))),Se(b,"ADD_URI_SAFE_ATTR")&&ht(b.ADD_URI_SAFE_ATTR)&&ne(en,b.ADD_URI_SAFE_ATTR,fe),Se(b,"FORBID_CONTENTS")&&ht(b.FORBID_CONTENTS)&&(Ve===Qu&&(Ve=Te(Ve)),ne(Ve,b.FORBID_CONTENTS,fe)),Se(b,"ADD_FORBID_CONTENTS")&&ht(b.ADD_FORBID_CONTENTS)&&(Ve===Qu&&(Ve=Te(Ve)),ne(Ve,b.ADD_FORBID_CONTENTS,fe)),Xu&&(S["#text"]=!0),Et&&ne(S,["html","head","body"]),S.table&&(ne(S,["tbody"]),delete Me.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw $t('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $t('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const z=q;q=b.TRUSTED_TYPES_POLICY;try{$=G("")}catch(V){throw q=z,V}}else b.TRUSTED_TYPES_POLICY===null?(q=void 0,$=""):(q===void 0&&(q=ae()),q&&typeof $=="string"&&($=G("")));(N.uponSanitizeElement.length>0||N.uponSanitizeAttribute.length>0)&&S===H&&(S=Te(S)),N.uponSanitizeAttribute.length>0&&B===de&&(B=Te(B)),we&&we(b),Pt=b},as=ne({},[...kn,..._n,...Rd]),os=ne({},[...wn,...Ld]),_a=function(b,C,z){return C.namespaceURI===We?b==="svg":C.namespaceURI===_u?b==="svg"&&(z==="annotation-xml"||nn[z]):!!as[b]},wa=function(b,C,z){return C.namespaceURI===We?b==="math":C.namespaceURI===wu?b==="math"&&sn[z]:!!os[b]},Ea=function(b,C,z){return C.namespaceURI===wu&&!sn[z]||C.namespaceURI===_u&&!nn[z]?!1:!os[b]&&(xa[b]||!as[b])},Aa=function(b){let C=_(b);(!C||!C.tagName)&&(C={namespaceURI:Nt,tagName:"template"});const z=au(b.tagName),V=au(C.tagName);return un[b.namespaceURI]?b.namespaceURI===wu?_a(z,C,V):b.namespaceURI===_u?wa(z,C,V):b.namespaceURI===We?Ea(z,C,V):!!(eu==="application/xhtml+xml"&&un[b.namespaceURI]):!1},ct=function(b){qt(t.removed,{element:b});try{_(b).removeChild(b)}catch{if(m(b),!_(b))throw $t("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},is=function(b){const C=A(b);if(C){const V=[];nu(C,ee=>{qt(V,ee)}),nu(V,ee=>{try{m(ee)}catch{}})}const z=w(b);if(z)for(let V=z.length-1;V>=0;--V){const ee=z[V],re=ee&&ee.name;if(typeof re=="string")try{b.removeAttribute(re)}catch{}}},At=function(b,C){try{qt(t.removed,{attribute:C.getAttributeNode(b),from:C})}catch{qt(t.removed,{attribute:null,from:C})}if(C.removeAttribute(b),b==="is")if(Rt||yu)try{ct(C)}catch{}else try{C.setAttribute(b,"")}catch{}},Ca=function(b){const C=w(b);if(C)for(let z=C.length-1;z>=0;--z){const V=C[z],ee=V&&V.name;if(!(typeof ee!="string"||B[fe(ee)]))try{b.removeAttribute(ee)}catch{}}},Da=function(b){const C=[b];for(;C.length>0;){const z=C.pop();(D?D(z):z.nodeType)===Ge.element&&Ca(z);const ee=A(z);if(ee)for(let re=ee.length-1;re>=0;--re)C.push(ee[re])}},ls=function(b){let C=null,z=null;if(Yu)b="<remove></remove>"+b;else{const re=Hs(b,/^[\r\n\t ]+/);z=re&&re[0]}eu==="application/xhtml+xml"&&Nt===We&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");const V=q?G(b):b;if(Nt===We)try{C=new p().parseFromString(V,eu)}catch{}if(!C||!C.documentElement){C=me.createDocument(Nt,"template",null);try{C.documentElement.innerHTML=tn?$:V}catch{}}const ee=C.body||C.documentElement;return b&&z&&ee.insertBefore(u.createTextNode(z),ee.childNodes[0]||null),Nt===We?Ot.call(C,Et?"html":"body")[0]:Et?C.documentElement:ee},cs=function(b){return Re.call(b.ownerDocument||b,b,i.SHOW_ELEMENT|i.SHOW_COMMENT|i.SHOW_TEXT|i.SHOW_PROCESSING_INSTRUCTION|i.SHOW_CDATA_SECTION,null)},Eu=function(b){return b=su(b,L," "),b=su(b,Z," "),b=su(b,ge," "),b},an=function(b){var C;b.normalize();const z=Re.call(b.ownerDocument||b,b,i.SHOW_TEXT|i.SHOW_COMMENT|i.SHOW_CDATA_SECTION|i.SHOW_PROCESSING_INSTRUCTION,null);let V=z.nextNode();for(;V;)V.data=Eu(V.data),V=z.nextNode();const ee=(C=b.querySelectorAll)===null||C===void 0?void 0:C.call(b,"template");ee&&nu(ee,re=>{Bt(re.content)&&an(re.content)})},Au=function(b){const C=M?M(b):null;return typeof C!="string"||fe(C)!=="form"?!1:typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||b.attributes!==w(b)||typeof b.removeAttribute!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function"||b.nodeType!==D(b)||b.childNodes!==A(b)},Bt=function(b){if(!D||typeof b!="object"||b===null)return!1;try{return D(b)===Ge.documentFragment}catch{return!1}},tu=function(b){if(!D||typeof b!="object"||b===null)return!1;try{return typeof D(b)=="number"}catch{return!1}};function ut(P,b,C){P.length!==0&&nu(P,z=>{z.call(t,b,C,Pt)})}const $a=function(b,C){return!!(Qt&&b.hasChildNodes()&&!tu(b.firstElementChild)&&_e(Qs,b.textContent)&&_e(Qs,b.innerHTML)||Qt&&b.namespaceURI===We&&C==="style"&&tu(b.firstElementChild)||b.nodeType===Ge.processingInstruction||Qt&&b.nodeType===Ge.comment&&_e(Gd,b.data))},Ta=function(b,C){if(!Me[C]&&ps(C)&&(se.tagNameCheck instanceof RegExp&&_e(se.tagNameCheck,C)||se.tagNameCheck instanceof Function&&se.tagNameCheck(C)))return!1;if(Xu&&!Ve[C]){const z=_(b),V=A(b);if(V&&z){const ee=V.length;for(let re=ee-1;re>=0;--re){const ve=Ju?V[re]:h(V[re],!0);z.insertBefore(ve,E(b))}}}return ct(b),!0},ds=function(b){if(ut(N.beforeSanitizeElements,b,null),Au(b))return ct(b),!0;const C=fe(M?M(b):b.nodeName);if(ut(N.uponSanitizeElement,b,{tagName:C,allowedTags:S}),$a(b,C))return ct(b),!0;if(Me[C]||!(He.tagCheck instanceof Function&&He.tagCheck(C))&&!S[C])return Ta(b,C);if((D?D(b):b.nodeType)===Ge.element&&!Aa(b)||(C==="noscript"||C==="noembed"||C==="noframes")&&_e(Kd,b.innerHTML))return ct(b),!0;if(lt&&b.nodeType===Ge.text){const V=Eu(b.textContent);b.textContent!==V&&(qt(t.removed,{element:b.cloneNode()}),b.textContent=V)}return ut(N.afterSanitizeElements,b,null),!1},fs=function(b,C,z){if(Be[C]||Xn&&(C==="id"||C==="name")&&(z in u||z in ka))return!1;const V=B[C]||He.attributeCheck instanceof Function&&He.attributeCheck(C,b);if(!(qe&&_e(xe,C))){if(!(Gu&&_e(Ce,C))){if(V){if(!en[C]){if(!_e(Pe,su(z,wt,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&b!=="script"&&Vs(z,"data:")===0&&es[b])){if(!(tt&&!_e(zt,su(z,wt,"")))){if(z)return!1}}}}}else if(!(ps(b)&&(se.tagNameCheck instanceof RegExp&&_e(se.tagNameCheck,b)||se.tagNameCheck instanceof Function&&se.tagNameCheck(b))&&(se.attributeNameCheck instanceof RegExp&&_e(se.attributeNameCheck,C)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(C,b))||C==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&_e(se.tagNameCheck,z)||se.tagNameCheck instanceof Function&&se.tagNameCheck(z))))return!1}}return!0},Sa=ne({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ps=function(b){return!Sa[au(b)]&&_e(it,b)},Fa=function(b,C,z,V){if(q&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!z)switch(c.getAttributeType(b,C)){case"TrustedHTML":return G(V);case"TrustedScriptURL":return J(V)}return V},Ia=function(b,C,z,V){try{z?b.setAttributeNS(z,C,V):b.setAttribute(C,V),Au(b)?ct(b):js(t.removed)}catch{At(C,b)}},hs=function(b){ut(N.beforeSanitizeAttributes,b,null);const C=b.attributes;if(!C||Au(b))return;const z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let V=C.length;const ee=fe(b.nodeName);for(;V--;){const re=C[V],ve=re.name,pe=re.namespaceURI,Le=re.value,Ue=fe(ve),ln=Le;let De=ve==="value"?ln:Td(ln);if(z.attrName=Ue,z.attrValue=De,z.keepAttr=!0,z.forceKeepAttr=void 0,ut(N.uponSanitizeAttribute,b,z),De=z.attrValue,Jn&&(Ue==="id"||Ue==="name")&&Vs(De,Qn)!==0&&(At(ve,b),De=Qn+De),Qt&&_e(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,De)){At(ve,b);continue}if(Ue==="attributename"&&Hs(De,"href")){At(ve,b);continue}if(!z.forceKeepAttr){if(!z.keepAttr){At(ve,b);continue}if(!Ku&&_e(Zd,De)){At(ve,b);continue}if(lt&&(De=Eu(De)),!fs(ee,Ue,De)){At(ve,b);continue}De=Fa(ee,Ue,pe,De),De!==ln&&Ia(b,ve,pe,De)}}ut(N.afterSanitizeAttributes,b,null)},Cu=function(b){let C=null;const z=cs(b);for(ut(N.beforeSanitizeShadowDOM,b,null);C=z.nextNode();)if(ut(N.uponSanitizeShadowNode,C,null),ds(C),hs(C),Bt(C.content)&&Cu(C.content),(D?D(C):C.nodeType)===Ge.element){const ee=g(C);Bt(ee)&&(on(ee),Cu(ee))}ut(N.afterSanitizeShadowDOM,b,null)},on=function(b){const C=[{node:b,shadow:null}];for(;C.length>0;){const z=C.pop();if(z.shadow){Cu(z.shadow);continue}const V=z.node,re=(D?D(V):V.nodeType)===Ge.element,ve=A(V);if(ve)for(let pe=ve.length-1;pe>=0;--pe)C.push({node:ve[pe],shadow:null});if(re){const pe=M?M(V):null;if(typeof pe=="string"&&fe(pe)==="template"){const Le=V.content;Bt(Le)&&C.push({node:Le,shadow:null})}}if(re){const pe=g(V);Bt(pe)&&C.push({node:null,shadow:pe},{node:pe,shadow:null})}}};return t.sanitize=function(P){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,z=null,V=null,ee=null;if(tn=!P,tn&&(P="<!-->"),typeof P!="string"&&!tu(P)&&(P=Od(P),typeof P!="string"))throw $t("dirty is not a string, aborting");if(!t.isSupported)return P;Zu||rn(b),t.removed=[];const re=Ju&&typeof P!="string"&&tu(P);if(re){const Le=M?M(P):P.nodeName;if(typeof Le=="string"){const Ue=fe(Le);if(!S[Ue]||Me[Ue])throw $t("root node is forbidden and cannot be sanitized in-place")}if(Au(P))throw $t("root node is clobbered and cannot be sanitized in-place");try{on(P)}catch(Ue){throw is(P),Ue}}else if(tu(P))C=ls("<!---->"),z=C.ownerDocument.importNode(P,!0),z.nodeType===Ge.element&&z.nodeName==="BODY"||z.nodeName==="HTML"?C=z:C.appendChild(z),on(z);else{if(!Rt&&!lt&&!Et&&P.indexOf("<")===-1)return q&&ku?G(P):P;if(C=ls(P),!C)return Rt?null:ku?$:""}C&&Yu&&ct(C.firstChild);const ve=cs(re?P:C);try{for(;V=ve.nextNode();)ds(V),hs(V),Bt(V.content)&&Cu(V.content)}catch(Le){throw re&&is(P),Le}if(re)return nu(t.removed,Le=>{Le.element&&Da(Le.element)}),lt&&an(P),P;if(Rt){if(lt&&an(C),yu)for(ee=_t.call(C.ownerDocument);C.firstChild;)ee.appendChild(C.firstChild);else ee=C;return(B.shadowroot||B.shadowrootmode)&&(ee=Jt.call(n,ee,!0)),ee}let pe=Et?C.outerHTML:C.innerHTML;return Et&&S["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&_e(Vd,C.ownerDocument.doctype.name)&&(pe="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
243
+ `+pe),lt&&(pe=Eu(pe)),q&&ku?G(pe):pe},t.setConfig=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rn(P),Zu=!0},t.clearConfig=function(){Pt=null,Zu=!1,q=F,$=""},t.isValidAttribute=function(P,b,C){Pt||rn({});const z=fe(P),V=fe(b);return fs(z,V,C)},t.addHook=function(P,b){typeof b=="function"&&qt(N[P],b)},t.removeHook=function(P,b){if(b!==void 0){const C=Dd(N[P],b);return C===-1?void 0:$d(N[P],C,1)[0]}return js(N[P])},t.removeHooks=function(P){N[P]=[]},t.removeAllHooks=function(){N=er()},t}var Qr=Jr(),Jd=Object.defineProperty,Qd=Object.defineProperties,ef=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertySymbols,tf=Object.prototype.hasOwnProperty,uf=Object.prototype.propertyIsEnumerable,ur=(e,t,u)=>t in e?Jd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[t]=u,ea=(e,t)=>{for(var u in t||(t={}))tf.call(t,u)&&ur(e,u,t[u]);if(tr)for(var u of tr(t))uf.call(t,u)&&ur(e,u,t[u]);return e},ta=(e,t)=>Qd(e,ef(t)),Fe=(e,t)=>{let u=!1,n=!1;for(let s=0;s<t;s+=1){if(e[s]==="\\"&&s+1<e.length&&e[s+1]==="`"){s+=1;continue}if(e.substring(s,s+3)==="```"){n=!n,s+=2;continue}!n&&e[s]==="`"&&(u=!u)}return u||n},nf=(e,t)=>{let u=e.substring(t,t+3)==="```",n=t>0&&e.substring(t-1,t+2)==="```",s=t>1&&e.substring(t-2,t+1)==="```";return u||n||s},sf=e=>{let t=0;for(let u=0;u<e.length;u+=1){if(e[u]==="\\"&&u+1<e.length&&e[u+1]==="`"){u+=1;continue}e[u]==="`"&&!nf(e,u)&&(t+=1)}return t},xt=(e,t)=>{let u=!1,n=!1,s=-1;for(let r=0;r<e.length;r+=1){if(e[r]==="\\"&&r+1<e.length&&e[r+1]==="`"){r+=1;continue}if(e.substring(r,r+3)==="```"){n=!n,r+=2;continue}if(!n&&e[r]==="`")if(u){if(s<t&&t<r)return!0;u=!1,s=-1}else u=!0,s=r}return!1},rf=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,af=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(rf,(t,u,n,s)=>Fe(e,s)?t:`${u}\\>${n}`),of=/(\*\*)([^*]*\*?)$/,lf=/(__)([^_]*?)$/,cf=/(\*\*\*)([^*]*?)$/,df=/(\*)([^*]*?)$/,ff=/(_)([^_]*?)$/,pf=/(`)([^`]*?)$/,hf=/(~~)([^~]*?)$/,Mt=/^[\s_~*`]*$/,ua=/^[\s]*[-*+][\s]+$/,bf=/[\p{L}\p{N}_]/u,mf=/^```[^`\n]*```?$/,gf=/^\*{4,}$/,xf=/(__)([^_]+)_$/,vf=/(~~)([^~]+)~$/,nr=/~~/g,vt=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:bf.test(e)},yf=(e,t)=>{let u=1;for(let n=t-1;n>=0;n-=1)if(e[n]==="]")u+=1;else if(e[n]==="["&&(u-=1,u===0))return n;return-1},na=(e,t)=>{let u=1;for(let n=t+1;n<e.length;n+=1)if(e[n]==="[")u+=1;else if(e[n]==="]"&&(u-=1,u===0))return n;return-1},Wu=(e,t)=>{let u=!1,n=!1;for(let s=0;s<e.length&&s<t;s+=1){if(e[s]==="\\"&&e[s+1]==="$"){s+=1;continue}e[s]==="$"&&(e[s+1]==="$"?(n=!n,s+=1,u=!1):n||(u=!u))}return u||n},kf=(e,t)=>{for(let u=t;u<e.length;u+=1){if(e[u]===")")return!0;if(e[u]===`
244
+ `)return!1}return!1},sa=(e,t)=>{for(let u=t-1;u>=0;u-=1){if(e[u]===")")return!1;if(e[u]==="(")return u>0&&e[u-1]==="]"?kf(e,t):!1;if(e[u]===`
245
+ `)return!1}return!1},_f=(e,t)=>{for(let u=t-1;u>=0;u-=1){if(e[u]===">")return!1;if(e[u]==="<"){let n=u+1<e.length?e[u+1]:"";return n>="a"&&n<="z"||n>="A"&&n<="Z"||n==="/"}if(e[u]===`
246
+ `)return!1}return!1},Gn=(e,t,u)=>{let n=0;for(let i=t-1;i>=0;i-=1)if(e[i]===`
247
+ `){n=i+1;break}let s=e.length;for(let i=t;i<e.length;i+=1)if(e[i]===`
248
+ `){s=i;break}let r=e.substring(n,s),a=0,o=!1;for(let i of r)if(i===u)a+=1;else if(i!==" "&&i!==" "){o=!0;break}return a>=3&&!o},wf=(e,t,u,n)=>u==="\\"||e.includes("$")&&Wu(e,t)?!0:u!=="*"&&n==="*"?(t<e.length-2?e[t+2]:"")!=="*":!!(u==="*"||u&&n&&vt(u)&&vt(n)||(!u||u===" "||u===" "||u===`
249
+ `)&&(!n||n===" "||n===" "||n===`
250
+ `)),ra=e=>{let t=0,u=!1,n=e.length;for(let s=0;s<n;s+=1){if(e[s]==="`"&&s+2<n&&e[s+1]==="`"&&e[s+2]==="`"){u=!u,s+=2;continue}if(u||e[s]!=="*")continue;let r=s>0?e[s-1]:"",a=s<n-1?e[s+1]:"";wf(e,s,r,a)||(t+=1)}return t},Ef=(e,t,u,n)=>!!(u==="\\"||e.includes("$")&&Wu(e,t)||sa(e,t)||_f(e,t)||u==="_"||n==="_"||u&&n&&vt(u)&&vt(n)),Af=e=>{let t=0,u=!1,n=e.length;for(let s=0;s<n;s+=1){if(e[s]==="`"&&s+2<n&&e[s+1]==="`"&&e[s+2]==="`"){u=!u,s+=2;continue}if(u||e[s]!=="_")continue;let r=s>0?e[s-1]:"",a=s<n-1?e[s+1]:"";Ef(e,s,r,a)||(t+=1)}return t},Cf=e=>{let t=0,u=0,n=!1;for(let s=0;s<e.length;s+=1){if(e[s]==="`"&&s+2<e.length&&e[s+1]==="`"&&e[s+2]==="`"){u>=3&&(t+=Math.floor(u/3)),u=0,n=!n,s+=2;continue}n||(e[s]==="*"?u+=1:(u>=3&&(t+=Math.floor(u/3)),u=0))}return u>=3&&(t+=Math.floor(u/3)),t},Kn=e=>{let t=0,u=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){u=!u,n+=2;continue}u||e[n]==="*"&&n+1<e.length&&e[n+1]==="*"&&(t+=1,n+=1)}return t},sr=e=>{let t=0,u=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){u=!u,n+=2;continue}u||e[n]==="_"&&n+1<e.length&&e[n+1]==="_"&&(t+=1,n+=1)}return t},Df=(e,t,u)=>{if(!t||Mt.test(t))return!0;let n=e.substring(0,u).lastIndexOf(`
251
+ `),s=n===-1?0:n+1,r=e.substring(s,u);return ua.test(r)&&t.includes(`
252
+ `)?!0:Gn(e,u,"*")},$f=e=>{let t=e.match(of);if(!t)return e;let u=t[2],n=e.lastIndexOf(t[1]);return Fe(e,n)||xt(e,n)||Df(e,u,n)?e:Kn(e)%2===1?u.endsWith("*")?`${e}*`:`${e}**`:e},Tf=(e,t,u)=>{if(!t||Mt.test(t))return!0;let n=e.substring(0,u).lastIndexOf(`
253
+ `),s=n===-1?0:n+1,r=e.substring(s,u);return ua.test(r)&&t.includes(`
254
+ `)?!0:Gn(e,u,"_")},Sf=e=>{let t=e.match(lf);if(!t){let s=e.match(xf);if(s){let r=e.lastIndexOf(s[1]);if(!(Fe(e,r)||xt(e,r))&&sr(e)%2===1)return`${e}_`}return e}let u=t[2],n=e.lastIndexOf(t[1]);return Fe(e,n)||xt(e,n)||Tf(e,u,n)?e:sr(e)%2===1?`${e}__`:e},Ff=e=>{let t=!1;for(let u=0;u<e.length;u+=1){if(e[u]==="`"&&u+2<e.length&&e[u+1]==="`"&&e[u+2]==="`"){t=!t,u+=2;continue}if(!t&&e[u]==="*"&&e[u-1]!=="*"&&e[u+1]!=="*"&&e[u-1]!=="\\"&&!Wu(e,u)){let n=u>0?e[u-1]:"",s=u<e.length-1?e[u+1]:"";if((!n||n===" "||n===" "||n===`
255
+ `)&&(!s||s===" "||s===" "||s===`
256
+ `)||n&&s&&vt(n)&&vt(s))continue;return u}}return-1},If=e=>{if(!e.match(df))return e;let t=Ff(e);if(t===-1||Fe(e,t)||xt(e,t))return e;let u=e.substring(t+1);return!u||Mt.test(u)?e:ra(e)%2===1?`${e}*`:e},aa=e=>{let t=!1;for(let u=0;u<e.length;u+=1){if(e[u]==="`"&&u+2<e.length&&e[u+1]==="`"&&e[u+2]==="`"){t=!t,u+=2;continue}if(!t&&e[u]==="_"&&e[u-1]!=="_"&&e[u+1]!=="_"&&e[u-1]!=="\\"&&!Wu(e,u)&&!sa(e,u)){let n=u>0?e[u-1]:"",s=u<e.length-1?e[u+1]:"";if(n&&s&&vt(n)&&vt(s))continue;return u}}return-1},Mf=e=>{let t=e.length;for(;t>0&&e[t-1]===`
257
+ `;)t-=1;if(t<e.length){let u=e.slice(0,t),n=e.slice(t);return`${u}_${n}`}return`${e}_`},Of=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(Kn(t)%2!==1)return null;let u=t.indexOf("**"),n=aa(t);return u!==-1&&n!==-1&&u<n?`${t}_**`:null},zf=e=>{if(!e.match(ff))return e;let t=aa(e);if(t===-1)return e;let u=e.substring(t+1);if(!u||Mt.test(u)||Fe(e,t)||xt(e,t))return e;if(Af(e)%2===1){let n=Of(e);return n!==null?n:Mf(e)}return e},Rf=e=>{let t=Kn(e),u=ra(e);return t%2===0&&u%2===0},Lf=(e,t,u)=>!t||Mt.test(t)||Fe(e,u)||xt(e,u)?!0:Gn(e,u,"*"),Nf=e=>{if(gf.test(e))return e;let t=e.match(cf);if(!t)return e;let u=t[2],n=e.lastIndexOf(t[1]);return Lf(e,u,n)?e:Cf(e)%2===1?Rf(e)?e:`${e}***`:e},Pf=/<[a-zA-Z/][^>]*$/,Bf=e=>{let t=e.match(Pf);return!t||t.index===void 0||Fe(e,t.index)?e:e.substring(0,t.index).trimEnd()},qf=e=>!e.match(mf)||e.includes(`
258
+ `)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,Uf=e=>(e.match(/```/g)||[]).length%2===1,jf=e=>{let t=qf(e);if(t!==null)return t;let u=e.match(pf);if(u&&!Uf(e)){let n=u[2];if(!n||Mt.test(n))return e;if(sf(e)%2===1)return`${e}\``}return e},oa=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",Hf=e=>{let t=0,u=!1;for(let n=0;n<e.length-1;n+=1)e[n]==="`"&&!oa(e,n)&&(u=!u),!u&&e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},Vf=e=>{let t=0,u=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="\\"){n+=1;continue}if(e[n]==="`"&&!oa(e,n)){u=!u;continue}!u&&e[n]==="$"&&(n+1<e.length&&e[n+1]==="$"?n+=1:t+=1)}return t},Wf=e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
259
+ `,t)!==-1&&!e.endsWith(`
260
+ `)?`${e}
261
+ $$`:`${e}$$`},Gf=e=>Hf(e)%2===0?e:Wf(e),Kf=e=>Vf(e)%2===1?`${e}$`:e,Zf=(e,t,u)=>{if(e.substring(t+2).includes(")"))return null;let n=yf(e,t);if(n===-1||Fe(e,n))return null;let s=n>0&&e[n-1]==="!",r=s?n-1:n,a=e.substring(0,r);if(s)return a;let o=e.substring(n+1,t);return u==="text-only"?`${a}${o}`:`${a}[${o}](streamdown:incomplete-link)`},rr=(e,t)=>{for(let u=0;u<t;u++)if(e[u]==="["&&!Fe(e,u)){if(u>0&&e[u-1]==="!")continue;let n=na(e,u);if(n===-1)return u;if(n+1<e.length&&e[n+1]==="("){let s=e.indexOf(")",n+2);s!==-1&&(u=s)}}return t},Yf=(e,t,u)=>{let n=t>0&&e[t-1]==="!",s=n?t-1:t;if(!e.substring(t+1).includes("]")){let r=e.substring(0,s);if(n)return r;if(u==="text-only"){let a=rr(e,t);return e.substring(0,a)+e.substring(a+1)}return`${e}](streamdown:incomplete-link)`}if(na(e,t)===-1){let r=e.substring(0,s);if(n)return r;if(u==="text-only"){let a=rr(e,t);return e.substring(0,a)+e.substring(a+1)}return`${e}](streamdown:incomplete-link)`}return null},ia=(e,t="protocol")=>{let u=e.lastIndexOf("](");if(u!==-1&&!Fe(e,u)){let n=Zf(e,u,t);if(n!==null)return n}for(let n=e.length-1;n>=0;n-=1)if(e[n]==="["&&!Fe(e,n)){let s=Yf(e,n,t);if(s!==null)return s}return e},Xf=/^-{1,2}$/,Jf=/^[\s]*-{1,2}[\s]+$/,Qf=/^={1,2}$/,e1=/^[\s]*={1,2}[\s]+$/,t1=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
262
+ `);if(t===-1)return e;let u=e.substring(t+1),n=e.substring(0,t),s=u.trim();if(Xf.test(s)&&!u.match(Jf)){let r=n.split(`
263
+ `).at(-1);if(r&&r.trim().length>0)return`${e}​`}if(Qf.test(s)&&!u.match(e1)){let r=n.split(`
264
+ `).at(-1);if(r&&r.trim().length>0)return`${e}​`}return e},u1=new RegExp("(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])","gu"),n1=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(u1,(t,u)=>Fe(e,u)?t:"\\~"),s1=e=>{var t,u;let n=e.match(hf);if(n){let s=n[2];if(!s||Mt.test(s))return e;let r=e.lastIndexOf(n[1]);if(Fe(e,r)||xt(e,r))return e;if(((t=e.match(nr))==null?void 0:t.length)%2===1)return`${e}~~`}else{let s=e.match(vf);if(s){let r=e.lastIndexOf(s[0].slice(0,2));if(Fe(e,r)||xt(e,r))return e;if(((u=e.match(nr))==null?void 0:u.length)%2===1)return`${e}~`}}return e},An=e=>e!==!1,r1=e=>e===!0,$e={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},a1=[{handler:{name:"singleTilde",handle:n1,priority:$e.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:af,priority:$e.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:Bf,priority:$e.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:t1,priority:$e.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:ia,priority:$e.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:Nf,priority:$e.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:$f,priority:$e.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:Sf,priority:$e.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:If,priority:$e.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:zf,priority:$e.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:jf,priority:$e.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:s1,priority:$e.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:Gf,priority:$e.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:Kf,priority:$e.INLINE_KATEX},optionKey:"inlineKatex"}],o1=e=>{var t;let u=(t=e==null?void 0:e.linkMode)!=null?t:"protocol";return a1.filter(({handler:n,optionKey:s})=>n.name==="links"?An(e==null?void 0:e.links)||An(e==null?void 0:e.images):n.name==="inlineKatex"?r1(e==null?void 0:e.inlineKatex):An(e==null?void 0:e[s])).map(({handler:n,earlyReturn:s})=>n.name==="links"?{handler:ta(ea({},n),{handle:r=>ia(r,u)}),earlyReturn:u==="protocol"?s:void 0}:{handler:n,earlyReturn:s})},i1=(e,t)=>{var u;if(!e||typeof e!="string")return e;let n=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,s=o1(t),r=((u=t==null?void 0:t.handlers)!=null?u:[]).map(o=>{var i;return{handler:ta(ea({},o),{priority:(i=o.priority)!=null?i:$e.DEFAULT}),earlyReturn:void 0}}),a=[...s,...r].sort((o,i)=>{var l,p;return((l=o.handler.priority)!=null?l:0)-((p=i.handler.priority)!=null?p:0)});for(let{handler:o,earlyReturn:i}of a)if(n=o.handle(n),i!=null&&i(n))return n;return n},l1=i1;function ou(e){return e.trim().startsWith("|")}function c1(e){return/^(?: {4,}|\t)/.test(e)}function la(e){let t=e.trim();return t.startsWith("|")&&(t=t.slice(1)),t.endsWith("|")&&(t=t.slice(0,-1)),t.split("|")}function ar(e){if(!ou(e))return!1;const t=la(e);return t.length===0?!1:t.every(u=>/^\s*:?-+:?\s*$/.test(u))}function d1(e){return"| "+Array(e).fill("---").join(" | ")+" |"}function f1(e){if(e==="")return"";const t=e.split(`
265
+ `),u=[];let n=!1;for(let s=0;s<t.length;s++){const r=t[s];if(/^\s*(```|~~~)/.test(r)){n=!n,u.push(r);continue}if(n){u.push(r);continue}const a=u.length>0?u[u.length-1]:null,o=a!==null&&ou(a);if(ou(r)&&!c1(r)&&!o&&!ar(r)){const i=s+1<t.length?t[s+1]:null;if(i!==null&&ou(i)&&ar(i)){u.length>0&&u[u.length-1].trim()!==""&&u.push(""),u.push(r);continue}if(i!==null&&ou(i)){u.length>0&&u[u.length-1].trim()!==""&&u.push(""),u.push(r),u.push(d1(la(r).length));continue}u.push(r);continue}u.push(r)}return u.join(`
266
+ `)}const Zn=new Ne({html:!1,linkify:!0,breaks:!0});Zn.renderer.rules.table_open=()=>'<div class="md-table-wrap"><table>';Zn.renderer.rules.table_close=()=>"</table></div>";Qr.addHook("afterSanitizeAttributes",e=>{e.nodeName==="A"&&e.hasAttribute("href")&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer nofollow"))});function p1(e,t={}){const u=t.streaming?l1(e):e,n=f1(u),s=Zn.render(n);return Qr.sanitize(s)}const h1=["innerHTML"],ca=ie({__name:"StreamMarkdown",props:{text:{},streaming:{type:Boolean}},setup(e){const t=e,u=K(()=>p1(t.text,{streaming:t.streaming}));return(n,s)=>(d(),y("div",{class:"stream-md text-sm",innerHTML:u.value},null,8,h1))}}),Ut=ie({__name:"ExpandableBlock",props:{maxPx:{default:200}},setup(e){const t=e,u=T(!1),n=T(!1),s=T(null);let r=null;function a(){const o=s.value;o&&(n.value=o.scrollHeight>t.maxPx+8)}return mt(()=>{rt(a),typeof ResizeObserver<"u"&&s.value&&(r=new ResizeObserver(()=>a()),r.observe(s.value))}),zu(()=>r==null?void 0:r.disconnect()),he(u,()=>{u.value||rt(a)}),(o,i)=>(d(),y("div",null,[f("div",{ref_key:"inner",ref:s,"data-test":"clamp-inner",class:W(!u.value&&n.value?"overflow-hidden":""),style:Lu(!u.value&&n.value?{maxHeight:e.maxPx+"px"}:void 0)},[za(o.$slots,"default")],6),n.value?(d(),y("button",{key:0,type:"button","data-test":"expand-toggle",class:"mt-1 inline-flex items-center gap-1 text-[10.5px] font-medium text-accent hover:underline",onClick:i[0]||(i[0]=l=>u.value=!u.value)},[(d(),j(Tt(u.value?x(Ua):x(Je)),{size:12})),le(" "+k(u.value?"Show less":"Show more"),1)])):I("",!0)]))}}),b1={class:"mt-1 space-y-1 text-xs"},m1={class:"flex min-w-0 items-center gap-2 font-mono text-fg-muted"},g1={class:"inline-flex min-w-0 items-center gap-1"},x1={class:"truncate"},v1={"data-test":"diff-stats",class:"ml-auto flex shrink-0 items-center gap-2 font-mono text-[10px]"},y1={key:0,class:"text-run"},k1={key:1,class:"text-danger"},_1={class:"overflow-x-auto rounded bg-bg p-2 font-mono"},w1={"data-test":"cmd-command",class:"break-all font-mono text-fg"},E1={"data-test":"cmd-output",class:"overflow-x-auto rounded bg-raised p-2 font-mono text-fg whitespace-pre-wrap"},A1={key:1,class:"text-fg-muted"},C1={"data-test":"read-path",class:"flex min-w-0 items-center gap-1 font-mono text-fg"},D1={class:"truncate"},$1={key:0,class:"ml-2 shrink-0 text-fg-muted"},T1={class:"overflow-x-auto rounded bg-bg p-2 font-mono text-fg-muted whitespace-pre-wrap"},S1={"data-test":"search-query",class:"flex min-w-0 items-center gap-1 font-mono text-fg"},F1={class:"truncate"},I1={"data-test":"search-output",class:"overflow-x-auto rounded bg-bg p-2 font-mono text-fg-muted whitespace-pre-wrap"},M1={class:"grid grid-cols-[auto,1fr] gap-x-3 gap-y-1"},O1={class:"text-fg-muted"},z1=["data-test"],R1={class:"overflow-x-auto rounded bg-bg p-2 font-mono text-fg-muted whitespace-pre-wrap"},L1={"data-test":"tool-text",class:"whitespace-pre-wrap text-fg-muted"},da=ie({__name:"ToolDetail",props:{detail:{}},setup(e){const t=e,u=K(()=>t.detail.type!=="diff"?{del:[],add:[]}:{del:t.detail.oldText.split(`
267
+ `),add:t.detail.newText.split(`
268
+ `)}),n=K(()=>({add:u.value.add.filter(s=>s.length>0).length,del:u.value.del.filter(s=>s.length>0).length}));return(s,r)=>(d(),y("div",b1,[e.detail.type==="diff"?(d(),y(Y,{key:0},[f("div",m1,[f("span",g1,[O(x(Fu),{size:14,class:"shrink-0"}),f("span",x1,k(e.detail.path),1)]),f("span",v1,[n.value.add?(d(),y("span",y1,"+"+k(n.value.add),1)):I("",!0),n.value.del?(d(),y("span",k1,"−"+k(n.value.del),1)):I("",!0)])]),O(Ut,null,{default:ft(()=>[f("div",_1,[(d(!0),y(Y,null,oe(u.value.del,(a,o)=>(d(),y("div",{key:"d"+o,"data-test":"diff-del",class:"whitespace-pre text-danger"},"- "+k(a),1))),128)),(d(!0),y(Y,null,oe(u.value.add,(a,o)=>(d(),y("div",{key:"a"+o,"data-test":"diff-add",class:"whitespace-pre text-run"},"+ "+k(a),1))),128))])]),_:1})],64)):e.detail.type==="command"?(d(),y(Y,{key:1},[f("div",w1,"$ "+k(e.detail.command),1),e.detail.output?(d(),j(Ut,{key:0},{default:ft(()=>[f("pre",E1,k(e.detail.output),1)]),_:1})):I("",!0),e.detail.exitCode!==void 0?(d(),y("div",A1,"exit "+k(e.detail.exitCode),1)):I("",!0)],64)):e.detail.type==="read"?(d(),y(Y,{key:2},[f("div",C1,[O(x(Fu),{size:14,class:"shrink-0"}),f("span",D1,k(e.detail.path),1),e.detail.lines?(d(),y("span",$1,k(e.detail.lines),1)):I("",!0)]),e.detail.preview?(d(),j(Ut,{key:0},{default:ft(()=>[f("pre",T1,k(e.detail.preview),1)]),_:1})):I("",!0)],64)):e.detail.type==="search"?(d(),y(Y,{key:3},[f("div",S1,[O(x(Nu),{size:14,class:"shrink-0"}),f("span",F1,k(e.detail.query),1)]),e.detail.output?(d(),j(Ut,{key:0},{default:ft(()=>[f("pre",I1,k(e.detail.output),1)]),_:1})):I("",!0)],64)):e.detail.type==="fields"?(d(),y(Y,{key:4},[f("dl",M1,[(d(!0),y(Y,null,oe(e.detail.fields,a=>(d(),y(Y,{key:a.label},[f("dt",O1,k(a.label),1),f("dd",{"data-test":"field-"+a.label,class:"font-mono text-fg break-all"},k(a.value),9,z1)],64))),128))]),e.detail.output?(d(),j(Ut,{key:0},{default:ft(()=>[f("pre",R1,k(e.detail.output),1)]),_:1})):I("",!0)],64)):e.detail.type==="text"?(d(),j(Ut,{key:5},{default:ft(()=>[f("p",L1,k(e.detail.text),1)]),_:1})):I("",!0)]))}}),N1=ie({__name:"FueDot",props:{pulsing:{type:Boolean,default:!0}},setup(e){return(t,u)=>(d(),y("span",{"data-test":"fue-dot",class:W(["inline-block h-2 w-2 rounded-full bg-accent",e.pulsing?"animate-pulse motion-reduce:animate-none":""]),"aria-hidden":"true"},null,2))}}),jt=8;function P1(e,t,u,n=jt){const s=e.top+e.height+n,r=e.top-t.height-n,a=u.height-(e.top+e.height),o=e.top,p=s+t.height>u.height-jt&&o>a?"above":"below",c=p==="above"?Math.max(jt,r):s,v=e.left+e.width/2-t.width/2,h=Math.max(jt,u.width-t.width-jt),m=Math.min(Math.max(jt,v),h);return{top:c,left:m,placement:p}}const B1={class:"flex items-center gap-2 font-medium text-fg"},q1={class:"mt-1 text-xs text-fg-muted"},U1={class:"mt-2 flex justify-end"},j1=ie({__name:"FueCallout",props:{title:{},body:{},anchor:{}},emits:["dismiss"],setup(e,{emit:t}){const u=e,n=t,s=T(null),r=T({visibility:"hidden"});function a(){const i=s.value;if(!i)return;const l={width:i.offsetWidth||256,height:i.offsetHeight||96},p={width:window.innerWidth,height:window.innerHeight};if(u.anchor){const c=P1(u.anchor,l,p);r.value={top:`${c.top}px`,left:`${c.left}px`,visibility:"visible"}}else r.value={top:`${Math.max(8,p.height/2-l.height/2)}px`,left:`${Math.max(8,p.width/2-l.width/2)}px`,visibility:"visible"}}function o(i){i.key==="Escape"&&n("dismiss")}return mt(()=>{a(),window.addEventListener("keydown",o),window.addEventListener("resize",a)}),zu(()=>{window.removeEventListener("keydown",o),window.removeEventListener("resize",a)}),(i,l)=>(d(),j(Ru,{to:"body"},[f("div",{ref_key:"card",ref:s,"data-test":"fue-callout",class:"fixed z-50 w-64 rounded-lg border border-border bg-raised p-3 text-sm shadow-lg",style:Lu(r.value),role:"dialog"},[f("p",B1,[l[1]||(l[1]=f("span",{class:"inline-block h-2 w-2 rounded-full bg-accent","aria-hidden":"true"},null,-1)),le(" "+k(e.title),1)]),f("p",q1,k(e.body),1),f("div",U1,[f("button",{"data-test":"fue-dismiss",type:"button",class:"rounded bg-accent px-2 py-1 text-xs font-medium text-white hover:bg-accent-hover",onClick:l[0]||(l[0]=p=>n("dismiss"))},k(i.$t("fue.gotIt")),1)])],4)]))}}),fa="xacpx.fue.v1.";function H1(e){try{return localStorage.getItem(fa+e)==="1"}catch{return!1}}function V1(e){try{localStorage.setItem(fa+e,"1")}catch{}}function W1(e){const t=T(H1(e)?"acknowledged":"unseen");function u(){t.value==="unseen"&&(t.value="engaging")}function n(){t.value="acknowledged",V1(e)}return{status:t,engage:u,dismiss:n}}const Yn={read:Ba,search:Nu,execute:lo,edit:no,think:Ln,other:gr},G1={running:It,success:Yt,error:at},K1=["read","search","execute","edit","think","other"],Z1=["running","success","error"],or=5;function Y1(e){const t=new Map,u=new Map;for(const n of e)t.set(n.kind,(t.get(n.kind)??0)+1),u.set(n.status,(u.get(n.status)??0)+1);return{kinds:K1.filter(n=>t.has(n)).map(n=>({icon:Yn[n],count:t.get(n),label:n})),statuses:Z1.filter(n=>u.has(n)).map(n=>({icon:G1[n],count:u.get(n),label:n}))}}const X1={class:"overflow-hidden rounded-lg border border-border bg-surface text-xs shadow-e1"},J1={class:"inline-flex items-center gap-1.5 text-[11.5px] font-semibold text-fg-muted"},Q1={key:3,"data-test":"tool-count",class:"font-mono text-[10.5px] text-fg-muted"},ep={"data-test":"tool-summary",class:"ml-1 flex items-center gap-1.5 text-[10.5px] text-fg-muted"},tp=["data-test"],up={class:"tabular-nums"},np={key:0,class:"text-fg-muted"},sp=["data-test"],rp={class:"tabular-nums"},ap={key:1,class:"space-y-1 border-t border-border px-3 pb-2.5 pt-2"},op=["onClick"],ip={class:"truncate font-mono text-[11px] text-fg"},lp={key:0,class:"ml-auto font-mono text-[10.5px] text-fg-muted"},cp={key:0,class:"px-2 pb-2 pt-1"},dp=ie({__name:"ToolCallPanel",props:{steps:{}},setup(e){const t=e,u=T(t.steps.length<=or),n=T(new Set);function s(h){n.value.has(h)?n.value.delete(h):n.value.add(h),n.value=new Set(n.value)}const r=K(()=>Y1(t.steps)),a=W1("tool-group-collapse"),o=K(()=>t.steps.length>or),i=K(()=>o.value&&a.status.value!=="acknowledged"),l=T(null),p=T(null);function c(){var h;if(u.value=!u.value,i.value){const m=(h=l.value)==null?void 0:h.getBoundingClientRect();m&&(p.value={top:m.top,left:m.left,width:m.width,height:m.height}),a.engage()}}function v(h){return h===void 0?"":h>=1e3?`${(h/1e3).toFixed(1)}s`:`${h}ms`}return(h,m)=>(d(),y("div",X1,[f("button",{ref_key:"header",ref:l,type:"button",class:"flex w-full items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-bg",onClick:c},[u.value?(d(),j(x(Je),{key:0,size:13,class:"text-fg-muted"})):(d(),j(x(Ft),{key:1,size:13,class:"text-fg-muted"})),f("span",J1,[O(x(gr),{size:13}),le(" "+k(h.$t("tools.toolSteps")),1)]),i.value?(d(),j(N1,{key:2,pulsing:x(a).status.value==="unseen"},null,8,["pulsing"])):(d(),y("span",Q1,k(e.steps.length),1)),f("span",ep,[(d(!0),y(Y,null,oe(r.value.kinds,E=>(d(),y("span",{key:"k"+E.label,"data-test":"sum-"+E.label,class:"inline-flex items-center gap-0.5"},[(d(),j(Tt(E.icon),{size:11})),f("span",up,k(E.count),1)],8,tp))),128)),r.value.statuses.length?(d(),y("span",np,"·")):I("",!0),(d(!0),y(Y,null,oe(r.value.statuses,E=>(d(),y("span",{key:"s"+E.label,"data-test":"sum-"+E.label,class:W(["inline-flex items-center gap-0.5",E.label==="success"?"text-run":E.label==="error"?"text-danger":"text-fg-muted"])},[(d(),j(Tt(E.icon),{size:11,class:W(E.label==="running"?"animate-spin motion-reduce:animate-none":"")},null,8,["class"])),f("span",rp,k(E.count),1)],10,sp))),128))])],512),x(a).status.value==="engaging"?(d(),j(j1,{key:0,title:h.$t("tools.collapsed"),body:h.$t("tools.collapsedBody"),anchor:p.value,onDismiss:m[0]||(m[0]=E=>x(a).dismiss())},null,8,["title","body","anchor"])):I("",!0),u.value?(d(),y("ul",ap,[(d(!0),y(Y,null,oe(e.steps,E=>(d(),y("li",{key:E.toolCallId},[f("button",{type:"button","data-test":"tool-row",class:"flex w-full items-center gap-2 rounded text-left text-[12px] hover:bg-fg/5",onClick:A=>s(E.toolCallId)},[f("span",{class:W(["grid h-4 w-4 shrink-0 place-items-center rounded-full",E.status==="success"?"bg-run/15":E.status==="running"?"bg-accent/15":"bg-danger/15"])},[E.status==="success"?(d(),j(x(Yt),{key:0,"data-test":"step-status-success",size:9,class:"text-run"})):E.status==="running"?(d(),j(x(It),{key:1,"data-test":"step-status-running",size:9,class:"animate-spin motion-reduce:animate-none text-accent"})):(d(),j(x(iu),{key:2,"data-test":"step-status-error",size:9,class:"text-danger"}))],2),(d(),j(Tt(x(Yn)[E.kind]),{size:12,class:"shrink-0 text-fg-muted"})),f("span",ip,k(E.title),1),E.durationMs!==void 0?(d(),y("span",lp,k(v(E.durationMs)),1)):I("",!0)],8,op),n.value.has(E.toolCallId)&&E.detail?(d(),y("div",cp,[O(da,{detail:E.detail},null,8,["detail"])])):I("",!0)]))),128))])):I("",!0)]))}}),fp={class:"overflow-hidden rounded-lg border border-border bg-surface text-xs shadow-e1"},pp={key:2,"data-test":"reasoning-shimmer",class:"ml-1 inline-block h-1.5 w-1.5 animate-pulse motion-reduce:animate-none rounded-full bg-fg-muted","aria-hidden":"true"},hp={key:0,"data-test":"reasoning-body",class:"whitespace-pre-wrap border-t border-border px-3 pb-2.5 pt-2 text-[12px] leading-relaxed text-fg-muted"},pa=ie({__name:"ReasoningPanel",props:{reasoning:{},defaultOpen:{type:Boolean,default:!1},streaming:{type:Boolean,default:!1}},setup(e){const u=T(e.defaultOpen??!1),n=K(()=>u.value);return(s,r)=>(d(),y("div",fp,[f("button",{type:"button",class:"flex w-full items-center gap-1.5 px-3 py-2 text-left text-fg-muted",onClick:r[0]||(r[0]=a=>u.value=!u.value)},[n.value?(d(),j(x(Je),{key:0,size:13})):(d(),j(x(Ft),{key:1,size:13})),O(x(Ln),{size:13,class:W(e.streaming?"text-accent":"")},null,8,["class"]),f("span",{class:W(["text-[12px] font-medium",e.streaming?"shimmer-text":""])},k(e.streaming?s.$t("reasoning.reasoningStreaming"):s.$t("reasoning.reasoning")),3),e.streaming?(d(),y("span",pp)):I("",!0)]),n.value?(d(),y("p",hp,k(e.reasoning),1)):I("",!0)]))}}),bp={class:"truncate font-mono text-[11.5px] text-fg"},mp={class:"ml-auto flex shrink-0 items-center gap-2"},gp={key:0,class:"font-mono text-[10.5px] text-fg-muted"},xp={key:0,class:"border-t border-border px-3 pb-2.5 pt-2"},vp={key:0,"data-test":"tool-step-error",class:"mb-1.5 flex items-start gap-1.5 rounded bg-danger/10 px-2 py-1.5 text-danger"},yp={class:"whitespace-pre-wrap break-words font-mono text-[11px] leading-relaxed"},kp=ie({__name:"ToolStepCard",props:{step:{}},setup(e){const t=T(!0);function u(n){return n===void 0?"":n>=1e3?`${(n/1e3).toFixed(1)}s`:`${n}ms`}return(n,s)=>(d(),y("div",{"data-test":"tool-step-card",class:W(["overflow-hidden rounded-lg border bg-surface text-xs shadow-e1",e.step.status==="error"?"border-danger/40":"border-border"])},[f("button",{type:"button","data-test":"tool-step-header",class:"flex w-full items-center gap-2 px-3 py-2 text-left transition-colors hover:bg-bg",onClick:s[0]||(s[0]=r=>t.value=!t.value)},[t.value?(d(),j(x(Je),{key:0,size:13,class:"text-fg-muted"})):(d(),j(x(Ft),{key:1,size:13,class:"text-fg-muted"})),(d(),j(Tt(x(Yn)[e.step.kind]),{size:13,class:"shrink-0 text-fg-muted"})),f("span",bp,k(e.step.title),1),f("span",mp,[e.step.durationMs!==void 0?(d(),y("span",gp,k(u(e.step.durationMs)),1)):I("",!0),e.step.status==="success"?(d(),j(x(Yt),{key:1,"data-test":"step-status-success",size:13,class:"text-run"})):e.step.status==="running"?(d(),j(x(It),{key:2,"data-test":"step-status-running",size:13,class:"animate-spin motion-reduce:animate-none text-accent"})):(d(),j(x(iu),{key:3,"data-test":"step-status-error",size:13,class:"text-danger"}))])]),t.value?(d(),y("div",xp,[e.step.status==="error"&&e.step.error?(d(),y("div",vp,[O(x(iu),{size:13,class:"mt-0.5 shrink-0"}),f("span",yp,k(e.step.error),1)])):I("",!0),e.step.detail?(d(),j(da,{key:1,detail:e.step.detail},null,8,["detail"])):I("",!0)])):I("",!0)],2))}}),_p={class:"space-y-2.5"},ir=ie({__name:"TurnParts",props:{parts:{},streaming:{type:Boolean}},setup(e){const t=e,u=n=>t.streaming===!0&&n===t.parts.length-1;return(n,s)=>(d(),y("div",_p,[(d(!0),y(Y,null,oe(e.parts,(r,a)=>(d(),y(Y,{key:a},[r.type==="reasoning"?(d(),j(pa,{key:0,reasoning:r.text,streaming:u(a),"default-open":!1},null,8,["reasoning","streaming"])):r.type==="tool"?(d(),j(kp,{key:1,step:r.step},null,8,["step"])):(d(),j(ca,{key:2,text:r.text,streaming:u(a),class:W(["text-[14px] leading-relaxed text-fg",u(a)?"caret":""])},null,8,["text","streaming","class"]))],64))),128))]))}}),wp=["aria-label","title"],ha=ie({__name:"CopyButton",props:{text:{}},setup(e){const t=e,u=T(!1);let n=null;async function s(){try{await navigator.clipboard.writeText(t.text)}catch{const r=document.createElement("textarea");r.value=t.text,r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.select();try{document.execCommand("copy")}catch{}document.body.removeChild(r)}u.value=!0,n&&clearTimeout(n),n=setTimeout(()=>u.value=!1,1200)}return(r,a)=>(d(),y("button",{"data-test":"copy-button",type:"button","aria-label":r.$t("copy.copy"),title:u.value?r.$t("copy.copied"):r.$t("copy.copy"),class:"rounded p-1 leading-none text-fg-muted hover:bg-fg/5 hover:text-fg",onClick:Xe(s,["stop"])},[u.value?(d(),j(x(Yt),{key:0,size:14,class:"text-run"})):(d(),j(x(Wa),{key:1,size:14}))],8,wp))}}),Ep={class:"relative flex-1 overflow-hidden"},Ap={class:"mx-auto max-w-3xl space-y-5"},Cp={key:0,"data-test":"loading-older",class:"flex justify-center py-1 text-[11px] text-fg-muted"},Dp=["data-scheduled-task"],$p={class:"flex max-w-[80%] flex-col items-end"},Tp=["title"],Sp={class:"whitespace-pre-wrap text-[14px] leading-relaxed text-fg"},Fp={key:1,class:"mt-1 flex items-center gap-2"},Ip={"data-test":"msg-failed",class:"text-xs text-danger"},Mp=["title","onClick"],Op={key:1,class:"cv-row group flex gap-2.5"},zp={class:"mt-0.5 grid h-6 w-6 shrink-0 place-items-center rounded-lg border border-border bg-surface"},Rp={"data-test":"msg-actions",class:"flex items-center gap-1.5 pt-0.5 text-fg-muted"},Lp={key:1,"data-test":"msg-time",class:"font-mono text-[10.5px] tabular-nums"},Np={key:2,"data-test":"msg-cancelled",class:"inline-flex items-center gap-1 text-[11px] text-warn"},Pp={key:3,"data-test":"msg-failed",class:"text-[11px] text-danger"},Bp={key:1,class:"flex gap-2.5"},qp={class:"mt-0.5 grid h-6 w-6 shrink-0 place-items-center rounded-lg border border-border bg-surface"},Up={"data-test":"msg-streaming",class:"min-w-0 flex-1"},jp=48,Hp=240,Vp=ie({__name:"MessageList",props:{messages:{},liveTurn:{},hasMoreOlder:{type:Boolean},loadingOlder:{type:Boolean},sessionKey:{},scrollToScheduled:{}},emits:["resend","loadOlder"],setup(e,{emit:t}){const u=e,n=t;function s(c){var v;return c.scheduled??((v=c.structured)==null?void 0:v.scheduled)}const r=T(null),a=T(!0);let o=null;function i(){const c=r.value;c&&(a.value=c.scrollHeight-c.scrollTop-c.clientHeight<=jp,c.scrollTop<=Hp&&u.hasMoreOlder&&!u.loadingOlder&&o===null&&(o=c.scrollHeight-c.scrollTop,n("loadOlder")))}he(()=>u.loadingOlder,(c,v)=>{if(!(v&&!c)||o===null)return;const h=o;o=null,rt(()=>{const m=r.value;m&&(m.scrollTop=m.scrollHeight-h)})});let l=0;function p(c=!1){const v=r.value;if(!v||(typeof v.scrollTo=="function"?v.scrollTo({top:v.scrollHeight,behavior:c?"smooth":"auto"}):v.scrollTop=v.scrollHeight,a.value=!0,c||typeof requestAnimationFrame!="function"))return;l&&cancelAnimationFrame(l);let h=0;const m=()=>{l=0;const E=r.value;E&&(E.scrollHeight-E.scrollTop-E.clientHeight>1&&(E.scrollTop=E.scrollHeight),++h<4&&(l=requestAnimationFrame(m)))};l=requestAnimationFrame(m)}return he(()=>u.sessionKey,()=>{a.value=!0,o=null,rt(()=>p(!1))}),he(()=>{var c;return(c=u.scrollToScheduled)==null?void 0:c.nonce},()=>{var v;const c=(v=u.scrollToScheduled)==null?void 0:v.taskId;c&&rt(()=>{var m;const h=(m=r.value)==null?void 0:m.querySelector(`[data-scheduled-task="${c}"]`);h&&typeof h.scrollIntoView=="function"&&(h.scrollIntoView({behavior:"smooth",block:"center"}),a.value=!1)})}),he(()=>{const c=u.liveTurn,v=c==null?void 0:c.parts[c.parts.length-1],h=v?v.type==="tool"?v.step.status:v.text.length:0;return[u.messages.length,(c==null?void 0:c.parts.length)??0,h]},()=>{a.value&&rt(()=>p(!1))}),(c,v)=>(d(),y("div",Ep,[f("div",{ref_key:"scroller",ref:r,"data-test":"msg-scroller",class:"thin-scroll h-full overflow-y-auto px-3 py-4 lg:px-5 lg:py-5",onScroll:i},[f("div",Ap,[e.loadingOlder?(d(),y("div",Cp,[O(x(It),{size:13,class:"animate-spin motion-reduce:animate-none"})])):I("",!0),(d(!0),y(Y,null,oe(e.messages,(h,m)=>{var E,A,_,g,w,D;return d(),y(Y,{key:h.id!==void 0?`p${h.id}`:`o${h.createdAt}:${m}`},[h.direction==="in"?(d(),y("div",{key:0,class:"cv-row flex justify-end","data-scheduled-task":(E=s(h))==null?void 0:E.taskId},[f("div",$p,[s(h)?(d(),y("span",{key:0,"data-test":"msg-scheduled-badge",class:"mb-1 inline-flex items-center gap-1 rounded-full bg-accent/10 px-2 py-0.5 text-[10.5px] font-medium text-accent",title:`${c.$t("chat.scheduledFor")} ${x(Nn)(s(h).executeAt)}`},[O(x(br),{size:11}),le(k(c.$t("chat.scheduled")),1)],8,Tp)):I("",!0),f("div",{"data-test":"msg-in",class:W(["rounded-2xl rounded-tr-md border border-accent/15 bg-accent/10 px-3.5 py-2",h.failed?"ring-1 ring-danger":""])},[f("p",Sp,k(h.text),1)],2),h.failed?(d(),y("div",Fp,[f("span",Ip,k(c.$t("chat.failedToSend")),1),f("button",{type:"button","data-test":"msg-resend",class:"inline-flex items-center gap-1 text-xs font-medium text-accent hover:opacity-80",title:c.$t("chat.resendThis"),onClick:M=>n("resend",h)},[O(x(ro),{size:12}),le(k(c.$t("chat.resend")),1)],8,Mp)])):I("",!0)])],8,Dp)):(d(),y("div",Op,[f("div",zp,[O(x(Dn),{size:13,class:"text-accent"})]),f("div",{"data-test":"msg-out",class:W(["min-w-0 flex-1 space-y-2.5",h.failed?"rounded-lg ring-1 ring-danger":""])},[(_=(A=h.structured)==null?void 0:A.parts)!=null&&_.length?(d(),j(ir,{key:0,parts:h.structured.parts},null,8,["parts"])):(d(),y(Y,{key:1},[(w=(g=h.structured)==null?void 0:g.toolSteps)!=null&&w.length?(d(),j(dp,{key:0,steps:h.structured.toolSteps},null,8,["steps"])):I("",!0),(D=h.structured)!=null&&D.reasoning?(d(),j(pa,{key:1,reasoning:h.structured.reasoning,"default-open":!1},null,8,["reasoning"])):I("",!0),h.text?(d(),j(ca,{key:2,text:h.text,class:"text-[14px] leading-relaxed text-fg"},null,8,["text"])):I("",!0)],64)),f("div",Rp,[h.text?(d(),j(ha,{key:0,text:h.text},null,8,["text"])):I("",!0),x(ks)(h.createdAt)?(d(),y("span",Lp,k(x(ks)(h.createdAt)),1)):I("",!0),h.status==="cancelled"?(d(),y("span",Np,[O(x(ja),{size:12}),le(" "+k(c.$t("chat.stopped")),1)])):I("",!0),h.failed?(d(),y("span",Pp,k(c.$t("chat.failed")),1)):I("",!0)])],2)]))],64)}),128)),e.liveTurn&&e.liveTurn.parts.length?(d(),y("div",Bp,[f("div",qp,[O(x(Dn),{size:13,class:"text-accent"})]),f("div",Up,[O(ir,{parts:e.liveTurn.parts,streaming:!0},null,8,["parts"])])])):I("",!0)])],544),Ee(f("button",{"data-test":"jump-latest",type:"button",class:"absolute bottom-3 left-1/2 -translate-x-1/2 rounded-full border border-border bg-raised px-3 py-1 text-xs text-fg-muted shadow hover:bg-fg/5",onClick:v[0]||(v[0]=h=>p(!0))},k(c.$t("chat.jumpLatest")),513),[[Rn,!a.value]])]))}}),Wp=(e,t)=>{const u=e.__vccOpts||e;for(const[n,s]of t)u[n]=s;return u},Gp=Wp(Vp,[["__scopeId","data-v-e4c8869b"]]),ba="xacpx.composer-drafts.v1";function ma(){try{const e=sessionStorage.getItem(ba);return e?JSON.parse(e):{}}catch{return{}}}function Kp(e){try{sessionStorage.setItem(ba,JSON.stringify(e))}catch{}}function lr(e){return e?ma()[e]??"":""}function cr(e,t){if(!e)return;const u=ma();t?u[e]=t:delete u[e],Kp(u)}const Zp=yt("composer",()=>{const e=T(null);let t=0;function u(n,s){e.value={key:n,text:s,seq:++t}}return{insertRequest:e,requestInsert:u}}),Yp=yt("session-controls",()=>{const e=T(void 0),t=T([]),u=T(!1),n=T("");function s(){e.value=void 0,t.value=[],n.value=""}async function r(o,i){if(!o||!i){s();return}u.value=!0,n.value="";try{const l=await ue.rpc(o,"control.session.model.get",{sessionAlias:i});if(Gt(l)){s();return}e.value=typeof l.current=="string"?l.current:void 0,t.value=Array.isArray(l.available)?l.available:[]}catch{s()}finally{u.value=!1}}async function a(o,i,l){n.value="";const p=e.value;e.value=l;try{const c=await ue.rpc(o,"control.session.model.set",{sessionAlias:i,modelId:l});return Gt(c)?(e.value=p,n.value=c.error.message,!1):!0}catch(c){return e.value=p,n.value=c instanceof Error?c.message:"set-failed",!1}}return{current:e,available:t,loading:u,error:n,reset:s,loadModel:r,setModel:a}}),Xp={class:"rounded-lg border border-border bg-surface shadow-e2 focus-within:border-accent/50 transition-colors"},Jp=["placeholder"],Qp={class:"flex items-center justify-between px-2.5 pb-2.5 pt-0.5"},e2={key:0,class:"relative flex items-center gap-2"},t2=["disabled"],u2={class:"font-mono text-[11.5px] font-medium text-fg"},n2={key:0,"data-test":"model-menu",class:"absolute bottom-full left-0 z-10 mb-1 max-h-48 min-w-40 overflow-y-auto rounded-lg border border-border bg-raised shadow-lg"},s2=["onClick"],r2={class:"font-mono"},a2={key:1,"data-test":"model-error",class:"text-xs text-danger"},o2=["title"],i2={class:"relative h-1 w-8 shrink-0 overflow-hidden rounded-full bg-border"},l2={class:"shrink-0 text-[11.5px] font-medium tabular-nums text-fg-muted"},c2={key:1},d2=["disabled"],f2=ie({__name:"PromptInput",props:{busy:{type:Boolean},draftKey:{},instanceId:{},sessionAlias:{}},emits:["send","cancel"],setup(e,{emit:t}){const u=e,n=t,s=Zp(),r=Yp(),a=kt(),o=K(()=>{const g=a.sessionUsage;if(!g||g.size<=0)return null;const w=Math.min(100,Math.round(g.used/g.size*100)),D=w>=90?"danger":w>=75?"warn":"accent";return{used:g.used,size:g.size,pct:w,tone:D}}),i=T(!1);he(()=>[u.instanceId,u.sessionAlias],([g,w])=>{r.loadModel(g??null,w??null),i.value=!1},{immediate:!0});async function l(g){i.value=!1,u.instanceId&&u.sessionAlias&&await r.setModel(u.instanceId,u.sessionAlias,g)}const p=T(lr(u.draftKey??"")),c=T(null);he(p,g=>cr(u.draftKey??"",g)),he(()=>u.draftKey,(g,w)=>{w&&cr(w,p.value),p.value=lr(g??"")}),he(()=>s.insertRequest,g=>{!g||g.key!==(u.draftKey??"")||(p.value=p.value.trim()?`${p.value.trimEnd()} ${g.text}`:g.text,rt(()=>{var w;return(w=c.value)==null?void 0:w.focus()}))});const v=T([]);let h=-1;function m(){if(u.busy)return;const g=p.value.trim();g&&(n("send",g),v.value[v.value.length-1]!==g&&v.value.push(g),h=-1,p.value="")}function E(g){if(v.value.length!==0){if(g===-1)h=h===-1?v.value.length-1:Math.max(0,h-1);else{if(h===-1)return;if(h=h+1,h>=v.value.length){h=-1,p.value="";return}}p.value=v.value[h]}}function A(g){var D,M;if(g.isComposing)return;if(g.key==="Escape"){u.busy&&(n("cancel"),g.preventDefault());return}if(g.key==="Enter"&&!g.shiftKey){m(),g.preventDefault();return}const w=(((D=c.value)==null?void 0:D.selectionStart)??0)===0&&(((M=c.value)==null?void 0:M.selectionEnd)??0)===0;if(g.key==="ArrowUp"&&w){E(-1),g.preventDefault();return}if(g.key==="ArrowDown"&&h!==-1&&w){E(1),g.preventDefault();return}}function _(){h=-1}return(g,w)=>(d(),y("form",{class:"relative border-t border-border px-0 py-3 lg:p-3",onSubmit:Xe(m,["prevent"])},[f("div",Xp,[Ee(f("textarea",{ref_key:"textarea",ref:c,"onUpdate:modelValue":w[0]||(w[0]=D=>p.value=D),rows:"2",class:"w-full resize-none bg-transparent px-3.5 pt-2.5 pb-1 text-[16px] lg:text-[14px] leading-relaxed text-fg placeholder:text-fg-muted focus:outline-none",placeholder:e.busy?g.$t("chat.working"):g.$t("chat.message"),onInput:_,onKeydown:A},null,40,Jp),[[Oe,p.value]]),f("div",Qp,[e.instanceId&&e.sessionAlias?(d(),y("div",e2,[f("button",{type:"button","data-test":"model-chip",class:"flex items-center gap-1.5 px-1.5 py-1 rounded-md text-fg-muted hover:bg-raised transition-colors disabled:opacity-60",disabled:!x(r).available.length,onClick:w[1]||(w[1]=D=>i.value=!i.value)},[O(x(Ln),{size:14,class:"text-accent"}),f("span",u2,k(x(r).current||g.$t("chat.model")),1),x(r).available.length?(d(),j(x(Je),{key:0,size:13})):I("",!0)],8,t2),i.value&&x(r).available.length?(d(),y("ul",n2,[(d(!0),y(Y,null,oe(x(r).available,D=>(d(),y("li",{key:D},[f("button",{type:"button","data-test":"model-option",class:W(["flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm",D===x(r).current?"bg-accent/10 text-accent":"hover:bg-fg/10 text-fg-muted"]),onClick:M=>l(D)},[f("span",r2,k(D),1),D===x(r).current?(d(),j(x(Yt),{key:0,size:14,class:"ml-auto"})):I("",!0)],10,s2)]))),128))])):I("",!0),x(r).error?(d(),y("span",a2,k(x(r).error),1)):I("",!0),o.value?(d(),y("span",{key:2,"data-test":"context-meter",class:"flex shrink-0 items-center gap-1.5 whitespace-nowrap pl-0.5",title:g.$t("chat.contextUsage",{used:o.value.used.toLocaleString(),size:o.value.size.toLocaleString()})},[O(x(Xa),{size:13,class:W(["shrink-0",o.value.tone==="danger"?"text-danger":o.value.tone==="warn"?"text-warn":"text-accent"])},null,8,["class"]),f("span",i2,[f("span",{class:W(["absolute inset-y-0 left-0 rounded-full",o.value.tone==="danger"?"bg-danger":o.value.tone==="warn"?"bg-warn":"bg-accent"]),style:Lu({width:o.value.pct+"%"})},null,6)]),f("span",l2,k(o.value.pct)+"%",1)],8,o2)):I("",!0)])):(d(),y("span",c2)),e.busy?(d(),y("button",{key:2,type:"button","data-test":"composer-stop",class:"flex items-center gap-1.5 pl-3 pr-2.5 py-1.5 rounded-md bg-danger text-white text-[12.5px] font-semibold hover:opacity-90 transition-all",onClick:w[2]||(w[2]=D=>n("cancel"))},k(g.$t("chat.stop")),1)):(d(),y("button",{key:3,type:"submit","data-test":"composer-send",disabled:!p.value.trim(),class:"flex items-center gap-1.5 pl-3 pr-2.5 py-1.5 rounded-md bg-accent text-white text-[12.5px] font-semibold shadow-e1 hover:bg-accent-hover hover:shadow-e2 transition-all disabled:bg-fg/10 disabled:text-fg-muted disabled:shadow-none"},[le(k(g.$t("chat.send"))+" ",1),O(x(ao),{size:14})],8,d2))])])],32))}}),p2={key:0,"data-test":"plan-panel",class:"rounded-md border border-border bg-surface p-2 text-sm"},h2=["aria-expanded","aria-label"],b2={class:"ml-auto font-mono tabular-nums"},m2=["data-test"],g2=ie({__name:"PlanPanel",props:{entries:{},active:{type:Boolean,default:void 0}},setup(e){const t=e,u=T(t.active??!0),n=T(null),s=K(()=>t.entries.filter(l=>l.status==="completed").length),r=K(()=>{let l=-1;return t.entries.forEach((p,c)=>{p.status==="in_progress"&&(l=c)}),l>=0?l:(t.entries.forEach((p,c)=>{p.status==="completed"&&(l=c)}),l>=0?l:t.entries.length-1)}),a=l=>l==="completed"?hr:l==="in_progress"?It:Va,o=l=>l==="completed"?"text-run":l==="in_progress"?"text-accent":"text-fg-muted";async function i(){var c;if(!u.value)return;await rt();const l=n.value;if(!l)return;const p=l.children[r.value];(c=p==null?void 0:p.scrollIntoView)==null||c.call(p,{block:"nearest"})}return he(()=>t.entries,i,{flush:"post"}),he(u,i),he(()=>t.active,l=>{l!==void 0&&(u.value=l)}),(l,p)=>e.entries.length?(d(),y("div",p2,[f("button",{type:"button","data-test":"plan-toggle","aria-expanded":u.value,"aria-controls":"plan-list","aria-label":l.$t("plan.togglePlan"),class:"mb-1 flex w-full items-center gap-1.5 text-xs font-semibold uppercase text-fg-muted hover:text-fg transition-colors",onClick:p[0]||(p[0]=c=>u.value=!u.value)},[u.value?(d(),j(x(Je),{key:0,size:12,class:"shrink-0"})):(d(),j(x(Ft),{key:1,size:12,class:"shrink-0"})),le(" "+k(l.$t("plan.title"))+" ",1),f("span",b2,k(s.value)+"/"+k(e.entries.length),1)],8,h2),Ee(f("ul",{id:"plan-list",ref_key:"listEl",ref:n,class:"max-h-48 overflow-y-auto thin-scroll space-y-0.5"},[(d(!0),y(Y,null,oe(e.entries,(c,v)=>(d(),y("li",{key:v,"data-test":v===r.value?"plan-active":void 0,class:"flex items-start gap-1.5"},[(d(),j(Tt(a(c.status)),{size:13,class:W([o(c.status),"mt-0.5 shrink-0",c.status==="in_progress"?"animate-spin motion-reduce:animate-none":""])},null,8,["class"])),f("span",{class:W(["min-w-0",c.status==="completed"?"text-fg-muted line-through":"text-fg"])},k(c.content),3)],8,m2))),128))],512),[[Rn,u.value]])])):I("",!0)}}),x2={class:"flex h-full flex-1 flex-col"},v2={key:0,class:"flex flex-1 items-center justify-center text-fg-muted"},y2={class:"shrink-0 flex min-h-11 lg:h-11 items-center gap-2.5 border-b border-border bg-surface/60 px-3 lg:px-5 py-1.5 lg:py-0 backdrop-blur-md"},k2={class:"hidden lg:block text-[14px] font-semibold tracking-tight text-fg"},_2={key:0,class:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden"},w2=["title"],E2={class:"min-w-0 truncate"},A2={key:1,"data-test":"ctx-chip-instance",class:"flex min-w-0 max-w-[9rem] items-center gap-1 whitespace-nowrap rounded-md border border-border bg-surface py-0.5 pl-1.5 pr-2 text-[10.5px] font-medium text-fg-muted"},C2={class:"min-w-0 truncate"},D2={key:2,"data-test":"ctx-chip-agent",class:"flex min-w-0 max-w-[9rem] items-center gap-1.5 whitespace-nowrap rounded-md border border-border bg-surface py-0.5 pl-1.5 pr-2 text-[10.5px] font-medium text-fg-muted"},$2={class:"min-w-0 truncate"},T2=["title"],S2={key:0,class:"min-w-0 truncate font-mono"},F2={key:1,class:"shrink-0 italic"},I2={class:"shrink-0 text-warn"},M2={key:0,"data-test":"chat-error",class:"bg-danger/10 px-4 py-1 text-xs text-danger"},O2={class:"shrink-0 space-y-2 bg-gradient-to-t from-bg to-transparent px-2 lg:px-5 pb-4 pt-1.5"},z2={key:0,"data-test":"turn-hud",class:"flex items-center gap-2 rounded-lg border border-run/20 bg-run/8 px-3 py-1.5"},R2={class:"text-[12px] font-semibold text-run"},L2={class:"font-mono text-[12px] font-semibold tabular-nums text-run"},N2={key:0,class:"text-[11.5px] text-fg-muted"},P2=ie({__name:"ChatPane",emits:["show-files"],setup(e,{emit:t}){const u=t,n=kt(),s=ot(),r=Bu(),a=K(()=>n.instanceId?s.byId(n.instanceId):void 0),o=K(()=>{var m;return(m=a.value)==null?void 0:m.sessions.find(E=>E.alias===n.sessionAlias)});he(()=>{var m;return[n.instanceId,(m=o.value)==null?void 0:m.workspace]},([m,E])=>{m&&E?r.loadGitSummary(m,E):r.gitSummary=null},{immediate:!0});const i=T(Date.now()),l=setInterval(()=>{i.value=Date.now()},1e3);zn(()=>clearInterval(l));const p=K(()=>{if(!n.liveTurn)return"";const m=Math.max(0,Math.floor((i.value-n.liveTurn.startedAt)/1e3));return`${Math.floor(m/60)}:${String(m%60).padStart(2,"0")}`}),c=K(()=>n.liveToolSteps.filter(m=>m.status==="running").length),v=["Working","Thinking","Pondering","Cogitating","Reasoning","Computing","Churning","Crunching","Percolating","Noodling","Mulling","Brewing","Processing","Deliberating","Ruminating","Synthesizing","Wrangling","Tinkering"],h=K(()=>{if(!n.liveTurn)return v[0];const m=Math.max(0,Math.floor((i.value-n.liveTurn.startedAt)/1e3));return v[Math.floor(m/4)%v.length]});return(m,E)=>{var A,_,g,w;return d(),y("div",x2,[x(n).sessionAlias?(d(),y(Y,{key:1},[f("div",y2,[f("h1",k2,k(x(n).sessionAlias),1),o.value||a.value?(d(),y("div",_2,[(A=o.value)!=null&&A.workspace?(d(),y("button",{key:0,"data-test":"ctx-chip-workspace",class:"flex min-w-0 max-w-[10rem] items-center gap-1.5 whitespace-nowrap rounded-md border border-border bg-surface py-0.5 pl-1.5 pr-2 text-[10.5px] font-medium text-fg-muted hover:bg-fg/5",title:m.$t("chat.browseFiles"),onClick:E[0]||(E[0]=D=>u("show-files"))},[O(x($n),{size:11,class:"shrink-0 text-warn"}),f("span",E2,k(o.value.workspace),1)],8,w2)):I("",!0),(_=a.value)!=null&&_.name?(d(),y("span",A2,[E[4]||(E[4]=f("span",{class:"shrink-0 font-mono text-accent"},"@",-1)),f("span",C2,k(a.value.name),1)])):I("",!0),(g=o.value)!=null&&g.agent?(d(),y("span",D2,[O(x(Dn),{size:11,class:"shrink-0 text-accent"}),f("span",$2,k(o.value.agent),1)])):I("",!0),x(r).gitSummary?(d(),y("button",{key:3,"data-test":"git-summary",class:"flex min-w-0 max-w-[13rem] items-center gap-1.5 whitespace-nowrap rounded-md border border-border bg-surface py-0.5 pl-1.5 pr-2 text-[10.5px] font-medium text-fg-muted hover:bg-fg/5",title:x(r).gitSummary.branch||m.$t("chat.viewChanges"),onClick:E[1]||(E[1]=D=>{x(r).tab="changes",u("show-files")})},[O(x(Tn),{size:11,class:"shrink-0 text-warn"}),x(r).gitSummary.branch?(d(),y("span",S2,k(x(r).gitSummary.branch),1)):x(r).gitSummary.detached?(d(),y("span",F2,k(m.$t("files.detached")),1)):I("",!0),E[5]||(E[5]=f("span",{class:"h-1 w-1 shrink-0 rounded-full bg-warn","aria-hidden":"true"},null,-1)),f("span",I2,k(x(r).gitSummary.changedCount)+" "+k(m.$t("chat.changed")),1)],8,T2)):I("",!0)])):I("",!0)]),x(n).error?(d(),y("div",M2,[le(k(x(n).error)+" ",1),f("button",{class:"ml-2 text-danger underline",onClick:E[2]||(E[2]=D=>x(n).error="")},k(m.$t("common.dismiss")),1)])):I("",!0),O(Gp,{messages:x(n).messages,"live-turn":x(n).liveTurn,"session-key":`${x(n).instanceId}\0${x(n).sessionAlias}`,"scroll-to-scheduled":x(n).scrollRequest,"has-more-older":x(n).hasMoreOlder,"loading-older":x(n).loadingOlder,onResend:x(n).resend,onLoadOlder:x(n).loadOlder},null,8,["messages","live-turn","session-key","scroll-to-scheduled","has-more-older","loading-older","onResend","onLoadOlder"]),f("div",O2,[x(n).busy?(d(),y("div",z2,[E[6]||(E[6]=f("span",{class:"h-2 w-2 rounded-full bg-run pulse-dot","aria-hidden":"true"},null,-1)),f("span",R2,k(h.value)+"…",1),f("span",L2,k(p.value),1),c.value>0?(d(),y("span",N2,"· "+k(c.value)+" "+k(c.value===1?m.$t("chat.tool"):m.$t("chat.tools")),1)):I("",!0),E[7]||(E[7]=f("span",{class:"flex-1"},null,-1)),f("button",{"data-test":"cancel-turn",class:"flex items-center gap-1.5 text-[11.5px] font-medium text-danger transition-opacity hover:opacity-80",onClick:E[3]||(E[3]=(...D)=>x(n).cancel&&x(n).cancel(...D))},[O(x(at),{size:13}),le(k(m.$t("common.cancel")),1)])])):I("",!0),(w=x(n).sessionPlan)!=null&&w.length?(d(),j(g2,{key:1,entries:x(n).sessionPlan,active:x(n).busy},null,8,["entries","active"])):I("",!0),O(f2,{busy:x(n).busy,"draft-key":`${x(n).instanceId}\0${x(n).sessionAlias}`,"instance-id":x(n).instanceId,"session-alias":x(n).sessionAlias,onSend:x(n).send,onCancel:x(n).cancel},null,8,["busy","draft-key","instance-id","session-alias","onSend","onCancel"])])],64)):(d(),y("div",v2,k(m.$t("chat.selectSession")),1))])}}}),B2={class:"flex h-full flex-1 flex-col bg-bg","data-test":"file-viewer-center"},q2={class:"flex h-11 shrink-0 items-center gap-2 border-b border-border bg-surface/60 px-3 backdrop-blur-md"},U2=["aria-label"],j2=["aria-label"],H2={class:"truncate font-mono text-[12.5px] text-fg"},V2={class:"shrink-0 text-[11px] text-fg-muted"},W2={key:0,class:"shrink-0 rounded bg-warn/10 px-1 text-[10.5px] text-warn"},G2={key:1,class:"shrink-0 rounded bg-fg/5 px-1 text-[10.5px] text-fg-muted"},K2={class:"truncate font-mono text-[12.5px] text-fg"},Z2={class:"ml-auto flex shrink-0 items-center gap-1"},Y2=["aria-label"],X2={class:"min-h-0 flex-1 overflow-auto thin-scroll"},J2={key:0,"data-test":"fv-file-body",class:"font-mono text-[12.5px] leading-relaxed"},Q2={class:"sticky left-0 w-14 shrink-0 select-none border-r border-border bg-surface px-3 text-right text-fg-muted tabular-nums"},eh={class:"whitespace-pre px-4 text-fg"},th={key:1,class:"overflow-x-auto p-4 font-mono text-[12.5px] leading-relaxed text-fg whitespace-pre"},uh={key:2,class:"p-6 text-sm text-fg-muted"},nh={key:0,"data-test":"fv-diff-body",class:"p-4 font-mono text-[12.5px] leading-relaxed whitespace-pre"},sh={key:1,class:"p-6 text-sm text-fg-muted"},rh={key:2,class:"px-4 py-1 text-xs text-warn"},ah=5e3,oh=ie({__name:"FileViewer",emits:["back","close"],setup(e,{emit:t}){const u=t,n=Bu(),s=K(()=>{const o=n.file;return!o||o.binary?[]:o.content.split(`
269
+ `)});function r(o){return o===void 0?"":o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/1024/1024).toFixed(1)} MB`}function a(o){return o.startsWith("+")&&!o.startsWith("+++")?"text-run":o.startsWith("-")&&!o.startsWith("---")?"text-danger":o.startsWith("@@")?"text-info":(o.startsWith("diff ")||o.startsWith("index "),"text-fg-muted")}return(o,i)=>(d(),y("div",B2,[f("div",q2,[f("button",{"data-test":"fv-back-list","aria-label":o.$t("files.backToList"),class:"flex lg:hidden items-center gap-1.5 rounded-md px-2 py-1 text-[12px] font-medium text-fg-muted transition-colors hover:bg-raised hover:text-fg",onClick:i[0]||(i[0]=l=>u("back"))},[O(x(bs),{size:14}),le(k(o.$t("files.title")),1)],8,U2),f("button",{"data-test":"fv-back","aria-label":o.$t("files.back"),class:"hidden lg:flex items-center gap-1.5 rounded-md px-2 py-1 text-[12px] font-medium text-fg-muted transition-colors hover:bg-raised hover:text-fg",onClick:i[1]||(i[1]=l=>u("close"))},[O(x(bs),{size:14}),le(k(o.$t("files.back")),1)],8,j2),i[3]||(i[3]=f("span",{class:"h-4 w-px bg-border","aria-hidden":"true"},null,-1)),x(n).file?(d(),y(Y,{key:0},[O(x(lu),{size:14,class:"shrink-0 text-accent"}),f("span",H2,k(x(n).file.path),1),f("span",V2,k(r(x(n).file.size)),1),x(n).file.truncated?(d(),y("span",W2,k(o.$t("files.truncated")),1)):I("",!0),x(n).file.binary?(d(),y("span",G2,k(o.$t("files.binary")),1)):I("",!0)],64)):x(n).diffPath?(d(),y(Y,{key:1},[O(x(Za),{size:14,class:"shrink-0 text-accent"}),f("span",K2,k(x(n).diffPath),1)],64)):I("",!0),f("div",Z2,[x(n).file&&!x(n).file.binary?(d(),j(ha,{key:0,text:x(n).file.content},null,8,["text"])):I("",!0),f("button",{"data-test":"fv-close","aria-label":o.$t("files.closeFile"),class:"grid h-7 w-7 place-items-center rounded text-fg-muted transition-colors hover:bg-raised hover:text-fg lg:hidden",onClick:i[2]||(i[2]=l=>u("close"))},[O(x(at),{size:16})],8,Y2)])]),f("div",X2,[x(n).file?(d(),y(Y,{key:0},[!x(n).file.binary&&s.value.length<=ah?(d(),y("div",J2,[(d(!0),y(Y,null,oe(s.value,(l,p)=>(d(),y("div",{key:p,"data-test":"fv-line",class:"flex"},[f("span",Q2,k(p+1),1),f("span",eh,k(l||" "),1)]))),128))])):x(n).file.binary?(d(),y("div",uh,k(o.$t("files.binaryNotShown")),1)):(d(),y("pre",th,k(x(n).file.content),1))],64)):x(n).diffPath&&x(n).diff?(d(),y(Y,{key:1},[x(n).diff.diff?(d(),y("pre",nh,[(d(!0),y(Y,null,oe(x(n).diff.diff.split(`
270
+ `),(l,p)=>(d(),y("span",{key:p,class:W(["block",a(l)])},k(l),3))),128))])):(d(),y("div",sh,k(o.$t("files.noDiffContent")),1)),x(n).diff.truncated?(d(),y("div",rh,k(o.$t("files.diffTruncated")),1)):I("",!0)],64)):I("",!0)])]))}}),ih={"data-test":"scheduled-item",class:"rounded-md border border-border bg-bg text-sm"},lh={class:"flex items-center gap-1 px-2 py-1.5"},ch=["data-test"],dh=["data-test"],fh={class:"min-w-0 flex-1 truncate text-[12.5px] text-fg"},ph={class:"flex shrink-0 items-center gap-0.5"},hh=["title","aria-label"],bh=["title","aria-label"],mh=["data-test"],gh={class:"whitespace-pre-wrap text-[12.5px] text-fg"},xh={class:"font-mono text-[10.5px] tabular-nums text-fg-muted"},vh=["data-test"],dr=ie({__name:"ScheduledTaskRow",props:{task:{}},emits:["view"],setup(e,{emit:t}){const u=e,n=t,{t:s}=St(),r=mu(),a=kt(),o=T(!1);function i(c){switch(c){case"pending":return{label:s("tasks.statusUpcoming"),cls:"text-fg-muted",icon:br};case"triggering":return{label:s("tasks.statusRunning"),cls:"text-run",icon:It,spin:!0};case"executed":return{label:s("tasks.statusDone"),cls:"text-run",icon:hr};case"failed":return{label:s("tasks.statusFailed"),cls:"text-danger",icon:Ha};case"missed":return{label:s("tasks.statusMissed"),cls:"text-warn",icon:iu};case"cancelled":return{label:s("tasks.statusCancelled"),cls:"text-fg-muted",icon:pr}}}function l(){a.requestScrollToScheduled(u.task.id),n("view")}async function p(c){await bu({title:s("tasks.cancelScheduledTitle"),message:s("tasks.cancelScheduledBody"),confirmLabel:s("tasks.cancelTask"),cancelLabel:s("tasks.keep"),tone:"danger"})&&await r.cancelScheduled(c)}return(c,v)=>(d(),y("li",ih,[f("div",lh,[f("button",{type:"button","data-test":`scheduled-toggle-${e.task.id}`,class:"flex min-w-0 flex-1 items-center gap-1.5 text-left cursor-pointer",onClick:v[0]||(v[0]=h=>o.value=!o.value)},[O(x(Ft),{size:12,class:W(["shrink-0 text-fg-muted transition-transform",o.value?"rotate-90":""])},null,8,["class"]),f("span",{"data-test":`scheduled-status-${e.task.id}`,class:W(["inline-flex shrink-0 items-center gap-1 text-[11px] font-medium",i(e.task.status).cls])},[(d(),j(Tt(i(e.task.status).icon),{size:12,class:W(i(e.task.status).spin?"animate-spin motion-reduce:animate-none":"")},null,8,["class"])),le(" "+k(i(e.task.status).label),1)],10,dh),f("span",fh,k(e.task.message),1)],8,ch),f("span",ph,[e.task.status==="executed"?(d(),y("button",{key:0,"data-test":"view-scheduled",title:c.$t("tasks.viewRunTitle"),"aria-label":c.$t("tasks.viewRun"),class:"grid h-6 w-6 place-items-center rounded text-fg-muted transition-colors hover:bg-accent/15 hover:text-accent",onClick:l},[O(x(Ka),{size:13})],8,hh)):I("",!0),e.task.status==="pending"?(d(),y("button",{key:1,"data-test":"cancel-scheduled",title:c.$t("tasks.cancelScheduled"),"aria-label":c.$t("tasks.cancelScheduled"),class:"grid h-6 w-6 place-items-center rounded text-fg-muted transition-colors hover:bg-danger/15 hover:text-danger",onClick:v[1]||(v[1]=h=>p(e.task.id))},[O(x(Pu),{size:13})],8,bh)):I("",!0)])]),o.value?(d(),y("div",{key:0,"data-test":`scheduled-detail-${e.task.id}`,class:"space-y-1 border-t border-border px-2 py-1.5"},[f("p",gh,k(e.task.message),1),f("p",xh,k(x(Nn)(e.task.executeAt)),1),e.task.status==="failed"&&e.task.lastError?(d(),y("p",{key:0,"data-test":`scheduled-error-${e.task.id}`,class:"rounded bg-danger/10 px-2 py-1 text-[11px] text-danger"},k(e.task.lastError),9,vh)):I("",!0)],8,mh)):I("",!0)]))}}),yh={class:"shrink-0 border-b border-border bg-surface p-3"},kh={class:"mb-2 flex items-center gap-1.5"},_h={class:"text-xs font-semibold uppercase tracking-wide text-fg-muted"},wh={key:0,class:"rounded-full bg-bg px-1.5 font-mono text-[10px] tabular-nums text-fg-muted"},Eh=["title","aria-label"],Ah={class:"space-y-1"},Ch={key:0,class:"rounded-md border border-dashed border-border px-2 py-2 text-center text-[11px] text-fg-muted"},Dh={class:"flex flex-col gap-1"},$h={class:"text-[10px] font-semibold uppercase tracking-wide text-fg-muted"},Th={class:"flex flex-col gap-1"},Sh={class:"text-[10px] font-semibold uppercase tracking-wide text-fg-muted"},Fh=["placeholder"],Ih={class:"flex items-center gap-1.5 pt-0.5"},Mh=["disabled"],Oh=["aria-label"],zh={class:"flex items-center justify-between border-b border-border px-4 py-3"},Rh={class:"text-sm font-semibold text-fg"},Lh=["aria-label"],Nh={class:"flex-1 space-y-1 overflow-y-auto p-3"},fr=3,Ph=ie({__name:"ScheduledTasks",setup(e){const t=mu(),u=kt(),n=T(""),s=T(""),r=T(!1),a=K(()=>t.scheduled.slice(0,fr)),o=K(()=>Math.max(0,t.scheduled.length-fr)),i=T(!1);async function l(){if(!u.instanceId||!u.sessionAlias||!n.value||!s.value)return;const p=new Date(n.value).toISOString();await t.createScheduled(u.instanceId,u.sessionAlias,p,s.value),n.value="",s.value="",r.value=!1}return(p,c)=>(d(),y("div",yh,[f("div",kh,[O(x(qa),{size:13,class:"shrink-0 text-fg-muted"}),f("h3",_h,k(p.$t("tasks.scheduled")),1),x(t).scheduled.length?(d(),y("span",wh,k(x(t).scheduled.length),1)):I("",!0),f("button",{type:"button","data-test":"scheduled-compose-toggle",title:p.$t("tasks.newScheduled"),"aria-label":p.$t("tasks.newScheduled"),class:W(["ml-auto grid h-6 w-6 place-items-center rounded-md transition-colors hover:bg-raised hover:text-fg",r.value?"bg-raised text-fg":"text-fg-muted"]),onClick:c[0]||(c[0]=v=>r.value=!r.value)},[O(x(mr),{size:14,class:W(["transition-transform",r.value?"rotate-45":""])},null,8,["class"])],10,Eh)]),f("ul",Ah,[(d(!0),y(Y,null,oe(a.value,v=>(d(),j(dr,{key:v.id,task:v},null,8,["task"]))),128)),x(t).scheduled.length===0?(d(),y("li",Ch,k(p.$t("tasks.noScheduled")),1)):I("",!0)]),o.value>0?(d(),y("button",{key:0,type:"button","data-test":"scheduled-view-all",class:"mt-1.5 flex w-full items-center justify-center gap-1 rounded-md border border-border bg-bg px-2 py-1 text-[11px] font-medium text-fg-muted transition-colors hover:bg-accent/10 hover:text-accent",onClick:c[1]||(c[1]=v=>i.value=!0)},[le(k(p.$t("tasks.viewAll",{count:x(t).scheduled.length}))+" ",1),O(x(Je),{size:12})])):I("",!0),r.value?(d(),y("form",{key:1,"data-test":"scheduled-composer",class:"mt-2 space-y-2 rounded-lg border border-border bg-bg p-2.5",onSubmit:Xe(l,["prevent"])},[f("label",Dh,[f("span",$h,k(p.$t("tasks.whenLabel")),1),Ee(f("input",{"onUpdate:modelValue":c[2]||(c[2]=v=>n.value=v),type:"datetime-local",class:"w-full rounded-md border border-border bg-surface px-2 py-1 text-xs text-fg focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent"},null,512),[[Oe,n.value]])]),f("label",Th,[f("span",Sh,k(p.$t("tasks.messageLabel")),1),Ee(f("input",{"onUpdate:modelValue":c[3]||(c[3]=v=>s.value=v),placeholder:p.$t("tasks.messagePlaceholder"),class:"w-full rounded-md border border-border bg-surface px-2 py-1 text-xs text-fg placeholder:text-fg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent"},null,8,Fh),[[Oe,s.value]])]),f("div",Ih,[f("button",{type:"submit",disabled:!n.value||!s.value,class:"flex-1 rounded-md bg-accent px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-accent-hover disabled:cursor-not-allowed disabled:opacity-40"},k(p.$t("tasks.schedule")),9,Mh),f("button",{type:"button",class:"rounded-md border border-border px-2 py-1 text-xs text-fg-muted transition-colors hover:bg-raised hover:text-fg",onClick:c[4]||(c[4]=v=>r.value=!1)},k(p.$t("common.cancel")),1)])],32)):I("",!0),(d(),j(Ru,{to:"body"},[O(Ra,{"enter-active-class":"transition-opacity duration-200 ease-out motion-reduce:transition-none","enter-from-class":"opacity-0","leave-active-class":"transition-opacity duration-150 ease-in motion-reduce:transition-none","leave-to-class":"opacity-0"},{default:ft(()=>[i.value?(d(),y("div",{key:0,"data-test":"scheduled-drawer",class:"fixed inset-0 z-50 flex justify-end bg-black/50",onClick:c[7]||(c[7]=Xe(v=>i.value=!1,["self"])),onKeydown:c[8]||(c[8]=On(v=>i.value=!1,["esc"]))},[f("aside",{class:"flex h-full w-full max-w-md flex-col border-l border-border bg-raised shadow-xl",role:"dialog","aria-label":p.$t("tasks.allScheduled")},[f("header",zh,[f("h2",Rh,k(p.$t("tasks.scheduledCount",{count:x(t).scheduled.length})),1),f("button",{class:"rounded p-1 text-fg-muted hover:bg-fg/5 hover:text-fg","aria-label":p.$t("tasks.close"),"data-test":"scheduled-drawer-close",onClick:c[5]||(c[5]=v=>i.value=!1)},[O(x(at),{size:16})],8,Lh)]),f("ul",Nh,[(d(!0),y(Y,null,oe(x(t).scheduled,v=>(d(),j(dr,{key:v.id,task:v,onView:c[6]||(c[6]=h=>i.value=!1)},null,8,["task"]))),128))])],8,Oh)],32)):I("",!0)]),_:1})]))]))}}),Bh={class:"flex min-h-0 flex-col bg-surface"},qh={class:"shrink-0 px-3 pt-3 pb-2 text-xs font-semibold uppercase text-fg-muted"},Uh={class:"min-h-0 flex-1 space-y-1 overflow-y-auto thin-scroll px-3 pb-3"},jh={class:"flex min-w-0 items-center gap-1.5"},Hh={class:"truncate"},Vh=["title","aria-label","onClick"],Wh={key:0,class:"text-xs text-fg-muted"},Gh={key:1,class:"pt-0.5 text-center text-[10.5px] text-fg-muted"},Cn=10,Kh=ie({__name:"OrchestrationTasks",setup(e){const{t}=St(),u=mu(),n=K(()=>[...u.orchestration].sort((a,o)=>o.createdAt.localeCompare(a.createdAt)).slice(0,Cn));async function s(a){await bu({title:t("tasks.cancelTitle"),message:t("tasks.cancelBody"),confirmLabel:t("tasks.cancelConfirm"),cancelLabel:t("tasks.keepRunning"),tone:"danger"})&&await u.cancelOrchestration(a)}function r(a){const o=a.toLowerCase();return o.includes("run")||o.includes("active")?"text-run":o.includes("fail")||o.includes("error")||o.includes("cancel")?"text-danger":o.includes("wait")||o.includes("pending")||o.includes("block")?"text-warn":"text-fg-muted"}return(a,o)=>(d(),y("div",Bh,[f("h3",qh,k(a.$t("tasks.orchestration")),1),f("ul",Uh,[(d(!0),y(Y,null,oe(n.value,i=>(d(),y("li",{key:i.taskId,class:"flex items-center justify-between text-sm text-fg"},[f("span",jh,[O(x(Iu),{size:14,class:"shrink-0 text-fg-muted"}),f("span",Hh,[le(k(i.task)+" ",1),f("span",{class:W(["text-xs",r(i.status)])},"("+k(i.status)+")",3)])]),f("button",{"data-test":"cancel-orchestration",title:a.$t("tasks.cancelTask"),"aria-label":a.$t("tasks.cancelOrchestrationAria"),class:"ml-2 grid h-6 w-6 shrink-0 place-items-center rounded text-fg-muted transition-colors hover:bg-danger/15 hover:text-danger",onClick:l=>s(i.taskId)},[O(x(pr),{size:13})],8,Vh)]))),128)),x(u).orchestration.length===0?(d(),y("li",Wh,k(a.$t("tasks.noOrchestration")),1)):I("",!0),x(u).orchestration.length>Cn?(d(),y("li",Gh,k(a.$t("tasks.moreOrchestration",{count:x(u).orchestration.length-Cn})),1)):I("",!0)])]))}}),Zh={key:0,class:"flex h-full flex-col"},Yh={key:1,class:"p-4 text-sm text-fg-muted"},Xh=ie({__name:"TaskPanel",setup(e){const t=kt(),u=mu();return he(()=>[t.instanceId,t.sessionAlias],([n,s])=>{n&&s&&u.loadFor(n,s)},{immediate:!0}),(n,s)=>x(t).instanceId&&x(t).sessionAlias?(d(),y("div",Zh,[O(Ph),O(Kh,{class:"min-h-0 flex-1"})])):(d(),y("div",Yh,k(n.$t("taskPanel.noSession")),1))}}),Jh={class:"flex h-full flex-col bg-surface text-sm text-fg-muted"},Qh={key:0,class:"flex flex-1 items-center justify-center p-4 text-center text-xs text-fg-muted"},eb={class:"flex shrink-0 items-center gap-2 border-b border-border p-2"},tb=["title"],ub={class:"truncate font-medium"},nb={class:"flex shrink-0 items-center gap-1"},sb=["title","aria-label","disabled"],rb={key:0,"data-test":"files-error",class:"shrink-0 bg-danger/10 px-2 py-1 text-xs text-danger"},ab={key:1,class:"flex min-h-0 flex-1 flex-col"},ob={class:"flex shrink-0 items-center gap-1 border-b border-border px-2 py-1"},ib=["placeholder"],lb=["aria-label"],cb={key:0,"data-test":"fs-results",class:"min-h-0 flex-1 overflow-y-auto thin-scroll"},db={class:"p-2.5 text-[11px] font-mono leading-5 space-y-px"},fb=["onClick"],pb={class:"truncate font-sans text-[12px] text-fg-muted"},hb={key:0,class:"px-1.5 py-1 text-xs text-fg-muted"},bb={key:0,class:"px-2.5 pb-1 text-xs text-warn"},mb={class:"flex shrink-0 flex-wrap items-center gap-1 border-b border-border px-2.5 py-1.5 font-mono text-[11px] text-fg-muted"},gb=["title","aria-label","disabled"],xb=["onClick"],vb={class:"min-h-0 flex-1 overflow-y-auto thin-scroll p-2.5 text-[11px] font-mono leading-5 space-y-px"},yb=["onClick"],kb={key:1,class:"w-[11px] shrink-0"},_b=["title"],wb={key:5,class:"shrink-0 font-mono text-[10.5px] text-fg-muted tabular-nums"},Eb={key:0,class:"px-1.5 py-1 text-xs text-fg-muted"},Ab={key:2,class:"flex min-h-0 flex-1 flex-col"},Cb={class:"shrink-0 border-b border-border"},Db={key:0,"data-test":"changes-branch",class:"truncate font-mono text-[11.5px] font-medium text-fg"},$b={key:1,"data-test":"changes-branch",class:"truncate font-mono text-[11.5px] italic text-fg-muted"},Tb={key:2,class:"text-[10.5px] font-semibold uppercase tracking-wider text-fg-muted"},Sb={key:3,"data-test":"worktree-linked",class:"shrink-0 rounded-full border border-accent/30 bg-accent/10 px-1.5 py-px text-[9px] font-semibold uppercase tracking-wide text-accent"},Fb={key:4,class:"flex shrink-0 items-center gap-1.5 font-mono text-[10.5px] tabular-nums"},Ib={class:"text-fg-muted"},Mb={class:"text-run"},Ob={class:"text-danger"},zb=["title"],Rb={class:"truncate font-mono",dir:"rtl"},Lb={class:"min-h-0 flex-1 overflow-y-auto thin-scroll p-2.5 space-y-px"},Nb=["onClick"],Pb={key:0,class:"px-1.5 py-1 text-xs text-fg-muted"},Bb={key:1,"data-test":"changes-not-git",class:"flex min-h-0 flex-1 flex-col items-center justify-center gap-1.5 p-6 text-center text-xs text-fg-muted"},qb={class:"text-[11px] text-fg-muted/70"},Ub={key:2,class:"p-3 text-xs text-fg-muted"},jb={key:3,class:"shrink-0 border-t border-border px-3 py-1 text-xs text-fg-muted"},Hb=ie({__name:"FilesPanel",props:{instanceId:{}},setup(e){const t=e,u=Bu(),n=ot(),s=kt(),r=K(()=>u.path?u.path.split("/"):[]),a=K(()=>r.value.length===0);function o(){a.value||u.up(r.value.length-2)}const i=K(()=>{var F;const $=t.instanceId?n.byId(t.instanceId):void 0;return((F=$==null?void 0:$.sessions.find(R=>R.alias===s.sessionAlias))==null?void 0:F.workspace)??null}),l=K(()=>{const $=u.diff;return $?{branch:$.branch,detached:$.detached===!0,worktree:$.worktree}:null}),p=K(()=>{const $=u.diff;if(!$)return null;let F=0,R=0;for(const Q of $.diff?$.diff.split(`
271
+ `):[])Q.startsWith("+")&&!Q.startsWith("+++")?F++:Q.startsWith("-")&&!Q.startsWith("---")&&R++;return{fileCount:$.files.length,add:F,del:R}}),c=T("");let v=null;function h(){v&&clearTimeout(v),v=setTimeout(()=>void u.search(c.value),250)}function m(){c.value="",u.search("")}function E($){return $===void 0?"":$<1024?`${$} B`:$<1024*1024?`${($/1024).toFixed(1)} KB`:`${($/1024/1024).toFixed(1)} MB`}function A($){return u.path?`${u.path}/${$}`:$}function _($){const F=$.trim();return F.includes("?")?{label:"U",cls:"text-warn",dot:"bg-warn"}:F.includes("A")?{label:"A",cls:"text-run",dot:"bg-run"}:F.includes("D")?{label:"D",cls:"text-danger",dot:"bg-danger"}:F.includes("R")?{label:"R",cls:"text-accent",dot:"bg-accent"}:F.includes("M")?{label:"M",cls:"text-info",dot:"bg-warn"}:{label:F[0]??"•",cls:"text-fg-muted",dot:"bg-warn"}}function g($){const F=A($.name);if($.type==="file"){const Q=u.changed[F];return Q?_(Q):null}const R=`${F}/`;return Object.keys(u.changed).some(Q=>Q.startsWith(R))?{label:"•",cls:"text-warn",dot:"bg-warn"}:null}function w($){return!!u.file&&u.file.path===A($)}function D($){$.type==="file"&&(u.diffPath=null),u.open($)}function M($){u.diffPath=null,u.openFile($)}function q($){u.file=null,u.loadDiff($)}return he(()=>[t.instanceId,i.value],async([$,F])=>{var Q,te,G;if(u.reset(),c.value="",!$)return;u.instanceId=$,await n.loadWorkspaces($).catch(()=>{});const R=F??((G=(te=(Q=n.byId($))==null?void 0:Q.workspaces)==null?void 0:te[0])==null?void 0:G.name);R&&u.selectWorkspace($,R)},{immediate:!0}),he(()=>u.tab,$=>{$==="changes"&&!u.diff&&u.loadDiff()}),($,F)=>{var R,Q,te,G,J,ae;return d(),y("div",Jh,[e.instanceId?(d(),y(Y,{key:1},[f("div",eb,[f("div",{"data-test":"ws-label",class:"flex min-w-0 flex-1 items-center gap-1.5 text-xs text-fg",title:x(u).workspace??""},[O(x($n),{size:13,class:"shrink-0 text-warn"}),f("span",ub,k(x(u).workspace??"—"),1)],8,tb),f("div",nb,[f("button",{"data-test":"refresh-files",title:$.$t("files.refresh"),"aria-label":$.$t("files.refresh"),class:"grid h-6 w-6 place-items-center rounded text-fg-muted transition-colors hover:bg-raised hover:text-fg disabled:opacity-50",disabled:x(u).loading,onClick:F[0]||(F[0]=U=>x(u).refresh())},[O(x(so),{size:13,class:W(x(u).loading?"animate-spin motion-reduce:animate-none":"")},null,8,["class"])],8,sb),f("button",{"data-test":"tab-files",class:W(["flex items-center gap-1.5 rounded-md px-2.5 py-1 text-[11.5px] transition-colors cursor-pointer",x(u).tab==="files"?"bg-accent/10 text-accent font-semibold":"text-fg-muted font-medium hover:bg-raised"]),onClick:F[1]||(F[1]=U=>x(u).tab="files")},[O(x(lu),{size:13}),le(k($.$t("files.title")),1)],2),f("button",{"data-test":"tab-changes",class:W(["flex items-center gap-1.5 rounded-md px-2.5 py-1 text-[11.5px] transition-colors cursor-pointer",x(u).tab==="changes"?"bg-accent/10 text-accent font-semibold":"text-fg-muted font-medium hover:bg-raised"]),onClick:F[2]||(F[2]=U=>x(u).tab="changes")},[O(x(Iu),{size:13}),le(k($.$t("files.changes")),1)],2)])]),x(u).error?(d(),y("div",rb,k(x(u).error),1)):I("",!0),x(u).tab==="files"?(d(),y("div",ab,[f("div",ob,[Ee(f("input",{"onUpdate:modelValue":F[3]||(F[3]=U=>c.value=U),"data-test":"fs-search",placeholder:$.$t("files.searchPlaceholder"),class:"min-w-0 flex-1 rounded border border-border bg-bg px-2 py-1 text-xs text-fg placeholder:text-fg-muted",onInput:h},null,40,ib),[[Oe,c.value]]),c.value?(d(),y("button",{key:0,"aria-label":$.$t("files.clearSearch"),class:"text-fg-muted hover:text-fg",onClick:m},[O(x(at),{size:14})],8,lb)):I("",!0)]),x(u).query.trim()?(d(),y("div",cb,[f("ul",db,[(d(!0),y(Y,null,oe(x(u).results,U=>(d(),y("li",{key:U},[f("button",{"data-test":"fs-result",class:"flex w-full items-center gap-1.5 rounded-md px-1.5 py-1 text-left hover:bg-raised cursor-pointer",onClick:me=>M(U)},[O(x(Fu),{size:13,class:"shrink-0 text-fg-muted"}),f("span",pb,k(U),1)],8,fb)]))),128)),!x(u).results.length&&!x(u).searching?(d(),y("li",hb,k($.$t("palette.noMatches")),1)):I("",!0)]),x(u).searchTruncated?(d(),y("div",bb,k($.$t("files.showingFirstMatches")),1)):I("",!0)])):(d(),y(Y,{key:1},[f("div",mb,[f("button",{"data-test":"fs-up",title:$.$t("files.upOneLevel"),"aria-label":$.$t("files.upOneLevel"),class:"grid h-5 w-5 shrink-0 place-items-center rounded text-fg-muted hover:bg-raised hover:text-fg disabled:opacity-40 disabled:hover:bg-transparent disabled:hover:text-fg-muted",disabled:a.value||x(u).loading,onClick:o},[O(x(Ga),{size:13})],8,gb),f("button",{class:"hover:text-fg",onClick:F[4]||(F[4]=U=>x(u).up(-1))},k(x(u).workspace??$.$t("files.root")),1),(d(!0),y(Y,null,oe(r.value,(U,me)=>(d(),y(Y,{key:me},[F[5]||(F[5]=f("span",null,"/",-1)),f("button",{class:"hover:text-fg",onClick:Re=>x(u).up(me)},k(U),9,xb)],64))),128))]),f("ul",vb,[(d(!0),y(Y,null,oe(x(u).entries,U=>(d(),y("li",{key:U.name},[f("button",{"data-test":"fs-entry",class:W(["flex w-full items-center gap-1.5 rounded-md px-1.5 py-1 text-left cursor-pointer",w(U.name)?"bg-accent/15":g(U)?"bg-accent/10":"hover:bg-raised"]),onClick:me=>D(U)},[U.type==="dir"?(d(),j(x(Ft),{key:0,size:11,class:"shrink-0 text-fg-muted"})):(d(),y("span",kb)),U.type==="dir"?(d(),j(x($n),{key:2,size:13,class:W(["shrink-0",g(U)?"text-accent":"text-fg-muted"])},null,8,["class"])):(d(),j(x(Fu),{key:3,size:13,class:W(["shrink-0",w(U.name)||g(U)?"text-accent":"text-fg-muted"])},null,8,["class"])),f("span",{class:W(["flex-1 truncate font-sans text-[12px]",w(U.name)||g(U)?"text-accent font-medium":U.type==="dir"?"text-fg font-medium":"text-fg-muted"])},k(U.name),3),g(U)?(d(),y("span",{key:4,"data-test":"fs-status",class:W(["w-1.5 h-1.5 shrink-0 rounded-full",g(U).dot]),title:`${g(U).label} — ${x(u).changed[A(U.name)]||$.$t("files.containsChanges")}`},null,10,_b)):I("",!0),U.type==="file"&&!g(U)?(d(),y("span",wb,k(E(U.size)),1)):I("",!0)],10,yb)]))),128)),!x(u).entries.length&&!x(u).loading?(d(),y("li",Eb,k($.$t("files.emptyDirectory")),1)):I("",!0)])],64))])):(d(),y("div",Ab,[x(u).diff?(d(),y(Y,{key:0},[f("div",Cb,[f("div",{"data-test":"changes-summary",class:W(["flex items-center gap-1.5 px-2.5 pt-2",(R=l.value)!=null&&R.worktree?"pb-1":"pb-2"])},[O(x(Tn),{size:12,class:"shrink-0 text-accent"}),(Q=l.value)!=null&&Q.branch?(d(),y("span",Db,k(l.value.branch),1)):(te=l.value)!=null&&te.detached?(d(),y("span",$b,k($.$t("files.detached")),1)):(d(),y("span",Tb,k($.$t("files.changes")),1)),(J=(G=l.value)==null?void 0:G.worktree)!=null&&J.linked?(d(),y("span",Sb,k($.$t("files.linked")),1)):I("",!0),F[6]||(F[6]=f("span",{class:"flex-1"},null,-1)),p.value?(d(),y("div",Fb,[f("span",Ib,k(p.value.fileCount)+" "+k($.$t("files.filesCount")),1),f("span",Mb,"+"+k(p.value.add),1),f("span",Ob,"−"+k(p.value.del),1)])):I("",!0)],2),(ae=l.value)!=null&&ae.worktree?(d(),y("div",{key:0,"data-test":"worktree-path",class:"flex items-center gap-1.5 px-2.5 pb-2 text-[10px] text-fg-muted",title:`${$.$t("files.worktree")}: ${l.value.worktree.root}`},[O(x(Ya),{size:11,class:"shrink-0 opacity-70"}),f("span",Rb,k(l.value.worktree.root),1)],8,zb)):I("",!0)]),f("ul",Lb,[(d(!0),y(Y,null,oe(x(u).diff.files,U=>(d(),y("li",{key:U.path},[f("button",{"data-test":"diff-file",class:W(["flex w-full items-center gap-2 rounded-md px-1.5 py-1 text-left cursor-pointer",x(u).diffPath===U.path?"bg-accent/10":"hover:bg-raised"]),onClick:me=>q(U.path)},[O(x(lu),{size:12,class:W(["shrink-0",x(u).diffPath===U.path?"text-accent":"text-fg-muted"])},null,8,["class"]),f("span",{class:W(["flex-1 truncate font-mono text-[11px]",x(u).diffPath===U.path?"text-accent":"text-fg"])},k(U.path),3),f("span",{class:W(["shrink-0 font-mono text-[10.5px] uppercase tabular-nums",_(U.status).cls])},k(U.status.trim()||"··"),3)],10,Nb)]))),128)),x(u).diff.files.length?I("",!0):(d(),y("li",Pb,k($.$t("files.noChanges")),1))])],64)):x(u).notGit?(d(),y("div",Bb,[O(x(Tn),{size:20,class:"text-fg-muted/60"}),f("span",null,k($.$t("files.notGitRepo")),1),f("span",qb,k($.$t("files.notGitRepoBody")),1)])):x(u).loading?I("",!0):(d(),y("div",Ub,k($.$t("files.noDiffLoaded")),1))])),x(u).loading?(d(),y("div",jb,k($.$t("files.loading")),1)):I("",!0)],64)):(d(),y("div",Qh,k($.$t("files.selectToBrowse")),1))])}}}),Vb={class:"pointer-events-none fixed bottom-4 right-4 z-50 flex w-72 flex-col gap-2","aria-live":"polite"},Wb={class:"flex items-start justify-between gap-2"},Gb=["aria-label","onClick"],Kb=ie({__name:"NoticeToast",setup(e){const t=vr();function u(n){const s=n.toLowerCase();return s.includes("fail")||s.includes("error")?"text-danger":s.includes("complet")||s.includes("done")||s.includes("success")?"text-run":"text-info"}return(n,s)=>(d(),y("div",Vb,[(d(!0),y(Y,null,oe(x(t).items.slice(0,4),r=>(d(),y("div",{key:r.id,"data-test":"notice",class:"pointer-events-auto rounded border border-border bg-raised px-3 py-2 text-sm text-fg shadow-lg"},[f("div",Wb,[f("span",null,[f("span",{class:W(["text-xs uppercase",u(r.kind)])},k(r.kind),3),s[0]||(s[0]=f("br",null,null,-1)),le(k(r.text),1)]),f("button",{class:"text-xs text-fg-muted hover:text-fg","aria-label":n.$t("common.dismissNotice"),onClick:a=>x(t).dismiss(r.id)},"×",8,Gb)])]))),128))]))}}),Zb=["title"],Yb=ie({__name:"ConnectionBadge",setup(e){const t=yr();return(u,n)=>(d(),y("div",{"data-test":"conn-badge",class:W(["inline-flex items-center gap-1.5 rounded-full border border-border px-2 py-0.5 text-xs",x(t).online?"text-run":"text-danger"]),title:x(t).online?u.$t("connection.online"):u.$t("connection.reconnecting")},[f("span",{class:W(["h-2 w-2 rounded-full",x(t).online?"bg-run":"bg-danger"]),"aria-hidden":"true"},null,2),f("span",null,k(x(t).online?u.$t("connection.online"):u.$t("connection.reconnecting")),1)],10,Zb))}}),Xb={class:"w-full max-w-lg overflow-hidden rounded-xl border border-border bg-raised shadow-xl"},Jb={class:"flex items-center gap-2 border-b border-border px-4 py-3"},Qb=["placeholder"],em={class:"max-h-80 overflow-y-auto py-1 text-sm"},tm=["onMouseenter","onClick"],um={class:"font-medium"},nm={class:"truncate text-xs text-fg-muted"},sm={key:0,class:"px-4 py-3 text-xs text-fg-muted"},rm=ie({__name:"CommandPalette",emits:["close","select-session"],setup(e,{emit:t}){const u=t,n=ot(),s=T(""),r=T(null),a=T(0),o=K(()=>n.instances.flatMap(h=>h.sessions.map(m=>({label:m.alias,sub:`${h.name} · ${m.agent}`,instanceId:h.id,alias:m.alias}))));function i(h,m){return m?`${h.label} ${h.sub}`.toLowerCase().includes(m.toLowerCase()):!0}const l=K(()=>{const h=s.value.trim();return o.value.filter(m=>i(m,h))});function p(){a.value>=l.value.length&&(a.value=Math.max(0,l.value.length-1))}function c(h){u("select-session",h.instanceId,h.alias),u("close")}function v(h){if(h.key==="Escape"){u("close");return}if(h.key==="ArrowDown")h.preventDefault(),a.value=Math.min(a.value+1,l.value.length-1);else if(h.key==="ArrowUp")h.preventDefault(),a.value=Math.max(a.value-1,0);else if(h.key==="Enter"){h.preventDefault();const m=l.value[a.value];m&&c(m)}}return mt(()=>void rt(()=>{var h;return(h=r.value)==null?void 0:h.focus()})),(h,m)=>(d(),y("div",{class:"fixed inset-0 z-50 flex items-start justify-center bg-black/50 pt-24","data-test":"command-palette",onClick:m[2]||(m[2]=Xe(E=>u("close"),["self"]))},[f("div",Xb,[f("div",Jb,[O(x(Nu),{size:16,class:"shrink-0 text-fg-muted"}),Ee(f("input",{ref_key:"input",ref:r,"onUpdate:modelValue":m[0]||(m[0]=E=>s.value=E),"data-test":"palette-input",placeholder:h.$t("palette.placeholder"),class:"w-full bg-transparent text-sm text-fg placeholder:text-fg-muted outline-none",onInput:m[1]||(m[1]=E=>{a.value=0,p()}),onKeydown:v},null,40,Qb),[[Oe,s.value]])]),f("ul",em,[(d(!0),y(Y,null,oe(l.value,(E,A)=>(d(),y("li",{key:`${E.instanceId}:${E.alias}:${A}`},[f("button",{"data-test":"palette-row",class:W(["flex w-full items-center gap-2 px-4 py-1.5 text-left",A===a.value?"bg-accent/10 text-accent":"text-fg hover:bg-fg/5"]),onMouseenter:_=>a.value=A,onClick:_=>c(E)},[O(x(Qa),{size:14,class:"shrink-0"}),f("span",um,k(E.label),1),f("span",nm,k(E.sub),1)],42,tm)]))),128)),l.value.length?I("",!0):(d(),y("li",sm,k(h.$t("palette.noMatches")),1))])])]))}}),am={class:"flex h-dvh flex-col bg-bg text-fg"},om={class:"sticky top-0 z-30 flex h-11 shrink-0 items-center justify-between border-b border-border bg-surface/80 px-3 backdrop-blur-xl"},im={class:"flex items-center gap-2"},lm={class:"flex items-center gap-1.5"},cm=["aria-label"],dm={class:"hidden flex-1 text-[12.5px] text-fg-muted sm:inline"},fm=["aria-label"],pm={class:"flex items-center gap-2 border-b border-border bg-surface px-2 py-1.5 lg:hidden"},hm=["aria-label"],bm={class:"min-w-0 flex-1 truncate text-center text-sm font-medium"},mm={class:"flex shrink-0 items-center gap-0.5"},gm=["aria-label","title"],xm=["aria-label","title"],vm={class:"flex flex-1 overflow-hidden"},ym={class:"flex h-9 shrink-0 items-center justify-between px-3 text-xs"},km={class:"font-semibold uppercase tracking-wider text-fg-muted"},_m={class:"flex items-center gap-2"},wm=["aria-label","title"],Em=["aria-label"],Am=["aria-label","title"],Cm={"data-test":"column",class:"relative flex min-w-0 flex-1 flex-col"},Dm={class:"flex h-9 shrink-0 items-center gap-1 border-b border-border px-2.5"},$m=["aria-label"],Tm={class:"min-h-0 flex-1 overflow-hidden"},Mm=ie({__name:"DashboardView",setup(e){const t=Pa(),u=ot(),n=kt(),s=Bu(),r=mu(),a=vr(),o=yr();let i=null;const l=T(!1),p=T(!1),c=T("tasks");function v(){l.value=!1,p.value=!1}function h(F){c.value=F,p.value=!0}function m(){_(),h("files")}const E=T(localStorage.getItem("xacpx.leftCollapsed")==="1");he(E,F=>localStorage.setItem("xacpx.leftCollapsed",F?"1":"0"));const A=K(()=>!!(s.file||s.diffPath));function _(){s.file=null,s.diffPath=null}he(A,F=>{F&&(p.value=!1)});const g=T(!1);function w(F){(F.metaKey||F.ctrlKey)&&F.key.toLowerCase()==="k"&&(F.preventDefault(),g.value=!g.value)}function D(F,R){n.select(F,R),n.loadHistory().catch(()=>{}),l.value=!1}let M=!1;async function q(){await u.loadInstances().catch(()=>{}),await n.loadActiveTurns().catch(()=>{}),n.instanceId&&n.sessionAlias&&(await u.loadSessions(n.instanceId).catch(()=>{}),await n.loadHistory().catch(()=>{}),await r.loadFor(n.instanceId,n.sessionAlias).catch(()=>{}))}function $(F){o.setOnline(F),F&&(M&&q(),M=!0)}return mt(async()=>{window.addEventListener("keydown",w),await u.loadInstances(),i=Co(R=>{u.applyEvent(R),n.applyEvent(R),r.applyEvent(R),a.applyEvent(R)},$),await n.loadActiveTurns().catch(()=>{});const F=$o();F&&u.byId(F.instanceId)&&D(F.instanceId,F.alias)}),zn(()=>{window.removeEventListener("keydown",w),i==null||i()}),(F,R)=>{const Q=La("router-link");return d(),y("div",am,[f("header",om,[f("div",im,[O(Na),O(Yb)]),f("div",lm,[f("button",{"data-test":"global-search","aria-label":F.$t("nav.search"),class:"group flex h-7 items-center gap-2 rounded-lg border border-border bg-bg px-2.5 text-left transition-colors hover:border-accent/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent sm:w-64",onClick:R[0]||(R[0]=te=>g.value=!0)},[O(x(Nu),{size:14,class:"text-fg-muted"}),f("span",dm,k(F.$t("nav.searchPlaceholder")),1),R[14]||(R[14]=f("kbd",{class:"hidden rounded border border-border bg-raised px-1.5 py-0.5 font-mono text-[10px] text-fg-muted sm:inline"},"⌘K",-1))],8,cm),f("button",{"data-test":"theme-toggle","aria-label":x(t).mode==="dark"?F.$t("nav.toLight"):F.$t("nav.toDark"),class:"grid h-7 w-7 place-items-center rounded-lg border border-border text-fg-muted transition-colors hover:bg-raised focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",onClick:R[1]||(R[1]=te=>x(t).toggle())},[x(t).mode==="dark"?(d(),j(x(eo),{key:0,size:15})):(d(),j(x(co),{key:1,size:15}))],8,fm),O(Q,{to:"/settings","data-test":"settings-link","aria-label":F.$t("nav.settings"),class:"grid h-7 w-7 place-items-center rounded-lg border border-border text-fg-muted transition-colors hover:bg-raised focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"},{default:ft(()=>[O(x(io),{size:15})]),_:1},8,["aria-label"])])]),f("div",pm,[f("button",{"data-test":"open-instances","aria-label":F.$t("nav.openInstances"),class:"rounded p-1 leading-none text-fg-muted hover:bg-fg/5",onClick:R[2]||(R[2]=te=>l.value=!0)},[O(x(Ja),{size:20})],8,hm),f("span",bm,k(x(n).sessionAlias??"xacpx relay"),1),f("div",mm,[f("button",{"data-test":"open-files","aria-label":F.$t("nav.openFiles"),title:F.$t("nav.files"),class:"grid h-8 w-8 place-items-center rounded text-fg-muted hover:bg-fg/5",onClick:R[3]||(R[3]=te=>h("files"))},[O(x(lu),{size:18})],8,gm),f("button",{"data-test":"open-tasks","aria-label":F.$t("nav.openTasks"),title:F.$t("nav.tasks"),class:"grid h-8 w-8 place-items-center rounded text-fg-muted hover:bg-fg/5",onClick:R[4]||(R[4]=te=>h("tasks"))},[O(x(Iu),{size:18})],8,xm)])]),f("div",vm,[l.value||p.value?(d(),y("div",{key:0,"data-test":"drawer-backdrop",class:"fixed inset-0 z-30 bg-black/30 lg:hidden",onClick:v})):I("",!0),f("div",{"data-test":"column","data-drawer":"left",class:W(["fixed inset-y-0 left-0 z-40 flex w-72 max-w-[85%] shrink-0 transform flex-col border-r border-border bg-surface shadow-lg transition-[transform,width] lg:static lg:z-auto lg:max-w-none lg:translate-x-0 lg:transform-none lg:shadow-none",[l.value?"translate-x-0":"-translate-x-full",E.value?"lg:w-0 lg:min-w-0 lg:overflow-hidden lg:border-r-0":"lg:w-[248px]"]])},[f("div",ym,[f("span",km,k(F.$t("nav.instances")),1),f("div",_m,[f("button",{"data-test":"toggle-left","aria-label":F.$t("nav.hideSidebar"),title:F.$t("nav.hideSidebar"),class:"hidden h-6 w-6 place-items-center rounded-md text-fg-muted transition-colors hover:bg-raised hover:text-fg lg:grid",onClick:R[5]||(R[5]=te=>E.value=!0)},[O(x(to),{size:15})],8,wm),f("button",{"data-test":"close-instances","aria-label":F.$t("nav.closeInstances"),class:"text-fg-muted hover:text-fg lg:hidden",onClick:R[6]||(R[6]=te=>l.value=!1)},[O(x(at),{size:18})],8,Em)])]),O(Ml,{onSelect:D})],2),E.value?(d(),y("button",{key:1,"data-test":"expand-left","aria-label":F.$t("nav.showSidebar"),title:F.$t("nav.showSidebar"),class:"hidden w-5 shrink-0 items-center justify-center border-r border-border bg-surface/60 text-fg-muted transition-colors hover:bg-raised hover:text-fg lg:flex",onClick:R[7]||(R[7]=te=>E.value=!1)},[O(x(uo),{size:15})],8,Am)):I("",!0),f("div",Cm,[O(P2,{class:"absolute inset-0",inert:A.value,onShowFiles:R[8]||(R[8]=te=>c.value="files")},null,8,["inert"]),A.value?(d(),j(oh,{key:0,class:"absolute inset-0 z-10",onBack:m,onClose:_})):I("",!0)]),f("div",{"data-test":"column","data-drawer":"right",class:W(["fixed inset-y-0 right-0 z-40 flex w-72 max-w-[85%] shrink-0 transform flex-col overflow-hidden border-l border-border bg-surface shadow-lg transition-transform lg:static lg:z-auto lg:w-[296px] lg:max-w-none lg:translate-x-0 lg:transform-none lg:shadow-none",p.value?"translate-x-0":"translate-x-full"])},[f("div",Dm,[f("button",{"data-test":"right-tab-files",class:W(["flex items-center gap-1.5 rounded-md px-2.5 py-1 text-[11.5px] transition-colors cursor-pointer",c.value==="files"?"bg-accent/10 text-accent font-semibold":"text-fg-muted font-medium hover:bg-raised"]),onClick:R[9]||(R[9]=te=>c.value="files")},[O(x(lu),{size:13}),le(k(F.$t("nav.files")),1)],2),f("button",{"data-test":"right-tab-tasks",class:W(["flex items-center gap-1.5 rounded-md px-2.5 py-1 text-[11.5px] transition-colors cursor-pointer",c.value==="tasks"?"bg-accent/10 text-accent font-semibold":"text-fg-muted font-medium hover:bg-raised"]),onClick:R[10]||(R[10]=te=>c.value="tasks")},[O(x(Iu),{size:13}),le(k(F.$t("nav.tasks")),1)],2),f("button",{"data-test":"close-tasks","aria-label":F.$t("nav.closeTasks"),class:"ml-auto text-fg-muted hover:text-fg lg:hidden",onClick:R[11]||(R[11]=te=>p.value=!1)},[O(x(at),{size:18})],8,$m)]),f("div",Tm,[c.value==="tasks"?(d(),j(Xh,{key:0})):(d(),j(Hb,{key:1,"instance-id":x(n).instanceId},null,8,["instance-id"]))])],2)]),O(Kb),g.value?(d(),j(rm,{key:0,onClose:R[12]||(R[12]=te=>g.value=!1),onSelectSession:R[13]||(R[13]=(te,G)=>{D(te,G),g.value=!1})})):I("",!0)])}}});export{Mm as default};