most-box 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (400) hide show
  1. package/README.md +22 -12
  2. package/electron/main.js +31 -10
  3. package/out/404/index.html +3 -3
  4. package/out/404.html +3 -3
  5. package/out/__next.__PAGE__.txt +6 -6
  6. package/out/__next._full.txt +16 -16
  7. package/out/__next._head.txt +3 -3
  8. package/out/__next._index.txt +8 -8
  9. package/out/__next._tree.txt +5 -5
  10. package/out/_next/static/chunks/{06lttvu7563zo.css → 0-ryc9icn6dql.css} +1 -1
  11. package/out/_next/static/chunks/088-v8tzobg5g.js +1 -0
  12. package/out/_next/static/chunks/0g9303i8psy6z.js +1 -0
  13. package/out/_next/static/chunks/0nwdp-n94owg0.css +1 -0
  14. package/out/_next/static/chunks/{0pt.5cg1t09qs.js → 0s7i7nfr9j3b1.js} +1 -1
  15. package/out/_next/static/chunks/0vmjat-s4a3yj.css +1 -0
  16. package/out/_next/static/chunks/10p6-qnuk3p9x.js +1 -0
  17. package/out/_next/static/chunks/1ei8b9nw-ea8p.css +1 -0
  18. package/out/_next/static/chunks/1lxjpnw925-0p.css +1 -0
  19. package/out/_next/static/chunks/1v-molv0hbcjl.js +1 -0
  20. package/out/_next/static/chunks/23kls47vn_rpg.css +23 -0
  21. package/out/_next/static/chunks/2524ggtr3e4fp.js +1 -0
  22. package/out/_next/static/chunks/2fmkcw8ui5xp3.js +5 -0
  23. package/out/_next/static/chunks/2mcmt4yla_xle.js +1 -0
  24. package/out/_next/static/chunks/2uget3ephe4e3.js +736 -0
  25. package/out/_next/static/chunks/2v7_4ps1l4a8o.css +1 -0
  26. package/out/_next/static/chunks/2va-v1iiap4zv.js +1 -0
  27. package/out/_next/static/chunks/2vk2ln79gpvm4.js +1 -0
  28. package/out/_next/static/chunks/2vm9uslik2wfi.css +5 -0
  29. package/out/_next/static/chunks/37msy2-4ucgts.js +1 -0
  30. package/out/_next/static/chunks/384w3w4qvhw61.js +1 -0
  31. package/out/_next/static/chunks/3aa-weedhv4e0.js +1 -0
  32. package/out/_next/static/chunks/3erbaukgkw8f2.js +1 -0
  33. package/out/_next/static/chunks/3fea100s764m-.js +1 -0
  34. package/out/_next/static/chunks/3g0c367tk4esf.js +1 -0
  35. package/out/_next/static/chunks/{0gcsdf57gcm6h.js → 3oe03qxgd_rid.js} +1 -1
  36. package/out/_next/static/chunks/3qj5xz_d4cbk6.js +1 -0
  37. package/out/_next/static/chunks/3r5wf57k0gys9.js +1 -0
  38. package/out/_next/static/chunks/3yc_zd5vxq0j7.css +1 -0
  39. package/out/_next/static/chunks/{turbopack-0xta0kqwzkf28.js → turbopack-026p0g9v9_pva.js} +1 -1
  40. package/out/_not-found/__next._full.txt +13 -13
  41. package/out/_not-found/__next._head.txt +3 -3
  42. package/out/_not-found/__next._index.txt +8 -8
  43. package/out/_not-found/__next._not-found.__PAGE__.txt +4 -4
  44. package/out/_not-found/__next._not-found.txt +3 -3
  45. package/out/_not-found/__next._tree.txt +3 -3
  46. package/out/_not-found/index.html +3 -3
  47. package/out/_not-found/index.txt +13 -13
  48. package/out/admin/__next._full.txt +15 -15
  49. package/out/admin/__next._head.txt +3 -3
  50. package/out/admin/__next._index.txt +8 -8
  51. package/out/admin/__next._tree.txt +4 -4
  52. package/out/admin/__next.admin.__PAGE__.txt +4 -4
  53. package/out/admin/__next.admin.txt +4 -4
  54. package/out/admin/index.html +3 -3
  55. package/out/admin/index.txt +15 -15
  56. package/out/app/__next._full.txt +14 -14
  57. package/out/app/__next._head.txt +3 -3
  58. package/out/app/__next._index.txt +8 -8
  59. package/out/app/__next._tree.txt +3 -3
  60. package/out/app/__next.app.__PAGE__.txt +4 -4
  61. package/out/app/__next.app.txt +3 -3
  62. package/out/app/index.html +3 -3
  63. package/out/app/index.txt +14 -14
  64. package/out/chat/__next._full.txt +15 -15
  65. package/out/chat/__next._head.txt +3 -3
  66. package/out/chat/__next._index.txt +8 -8
  67. package/out/chat/__next._tree.txt +4 -4
  68. package/out/chat/__next.chat.__PAGE__.txt +4 -4
  69. package/out/chat/__next.chat.txt +4 -4
  70. package/out/chat/index.html +3 -3
  71. package/out/chat/index.txt +15 -15
  72. package/out/chat/join/__next._full.txt +15 -15
  73. package/out/chat/join/__next._head.txt +3 -3
  74. package/out/chat/join/__next._index.txt +8 -8
  75. package/out/chat/join/__next._tree.txt +4 -4
  76. package/out/chat/join/__next.chat.join.__PAGE__.txt +4 -4
  77. package/out/chat/join/__next.chat.join.txt +3 -3
  78. package/out/chat/join/__next.chat.txt +4 -4
  79. package/out/chat/join/index.html +3 -3
  80. package/out/chat/join/index.txt +15 -15
  81. package/out/demo/__next._full.txt +27 -0
  82. package/out/demo/__next._head.txt +5 -0
  83. package/out/demo/__next._index.txt +9 -0
  84. package/out/demo/__next._tree.txt +7 -0
  85. package/out/demo/__next.demo.__PAGE__.txt +12 -0
  86. package/out/demo/__next.demo.txt +5 -0
  87. package/out/demo/index.html +17 -0
  88. package/out/demo/index.txt +27 -0
  89. package/out/download/__next._full.txt +35 -37
  90. package/out/download/__next._head.txt +3 -3
  91. package/out/download/__next._index.txt +8 -8
  92. package/out/download/__next._tree.txt +5 -5
  93. package/out/download/__next.download.__PAGE__.txt +7 -7
  94. package/out/download/__next.download.txt +3 -3
  95. package/out/download/index.html +3 -3
  96. package/out/download/index.txt +35 -37
  97. package/out/favicon.ico +0 -0
  98. package/out/game/__next._full.txt +13 -13
  99. package/out/game/__next._head.txt +3 -3
  100. package/out/game/__next._index.txt +8 -8
  101. package/out/game/__next._tree.txt +4 -4
  102. package/out/game/__next.game.__PAGE__.txt +2 -2
  103. package/out/game/__next.game.txt +4 -4
  104. package/out/game/gandengyan/__next._full.txt +16 -16
  105. package/out/game/gandengyan/__next._head.txt +3 -3
  106. package/out/game/gandengyan/__next._index.txt +8 -8
  107. package/out/game/gandengyan/__next._tree.txt +5 -5
  108. package/out/game/gandengyan/__next.game.gandengyan.__PAGE__.txt +5 -5
  109. package/out/game/gandengyan/__next.game.gandengyan.txt +3 -3
  110. package/out/game/gandengyan/__next.game.txt +4 -4
  111. package/out/game/gandengyan/index.html +3 -3
  112. package/out/game/gandengyan/index.txt +16 -16
  113. package/out/game/index.html +1 -1
  114. package/out/game/index.txt +13 -13
  115. package/out/game/zhajinhua/__next._full.txt +15 -15
  116. package/out/game/zhajinhua/__next._head.txt +3 -3
  117. package/out/game/zhajinhua/__next._index.txt +8 -8
  118. package/out/game/zhajinhua/__next._tree.txt +4 -4
  119. package/out/game/zhajinhua/__next.game.txt +4 -4
  120. package/out/game/zhajinhua/__next.game.zhajinhua.__PAGE__.txt +4 -4
  121. package/out/game/zhajinhua/__next.game.zhajinhua.txt +3 -3
  122. package/out/game/zhajinhua/index.html +3 -3
  123. package/out/game/zhajinhua/index.txt +15 -15
  124. package/out/index.html +3 -3
  125. package/out/index.txt +16 -16
  126. package/out/logo-512.png +0 -0
  127. package/out/logo.ico +0 -0
  128. package/out/logo.svg +12 -0
  129. package/out/note/__next._full.txt +14 -14
  130. package/out/note/__next._head.txt +3 -3
  131. package/out/note/__next._index.txt +8 -8
  132. package/out/note/__next._tree.txt +3 -3
  133. package/out/note/__next.note.__PAGE__.txt +4 -4
  134. package/out/note/__next.note.txt +3 -3
  135. package/out/note/index.html +3 -3
  136. package/out/note/index.txt +14 -14
  137. package/out/ping/__next._full.txt +16 -16
  138. package/out/ping/__next._head.txt +3 -3
  139. package/out/ping/__next._index.txt +8 -8
  140. package/out/ping/__next._tree.txt +5 -5
  141. package/out/ping/__next.ping.__PAGE__.txt +5 -5
  142. package/out/ping/__next.ping.txt +4 -4
  143. package/out/ping/index.html +3 -3
  144. package/out/ping/index.txt +16 -16
  145. package/out/web3/__next._full.txt +15 -15
  146. package/out/web3/__next._head.txt +3 -3
  147. package/out/web3/__next._index.txt +8 -8
  148. package/out/web3/__next._tree.txt +4 -4
  149. package/out/web3/__next.web3.__PAGE__.txt +4 -4
  150. package/out/web3/__next.web3.txt +4 -4
  151. package/out/web3/ed25519/__next._full.txt +13 -13
  152. package/out/web3/ed25519/__next._head.txt +3 -3
  153. package/out/web3/ed25519/__next._index.txt +8 -8
  154. package/out/web3/ed25519/__next._tree.txt +4 -4
  155. package/out/web3/ed25519/__next.web3.ed25519.__PAGE__.txt +2 -2
  156. package/out/web3/ed25519/__next.web3.ed25519.txt +3 -3
  157. package/out/web3/ed25519/__next.web3.txt +4 -4
  158. package/out/web3/ed25519/index.html +1 -1
  159. package/out/web3/ed25519/index.txt +13 -13
  160. package/out/web3/index.html +3 -3
  161. package/out/web3/index.txt +15 -15
  162. package/out/web3/tools/__next._full.txt +13 -13
  163. package/out/web3/tools/__next._head.txt +3 -3
  164. package/out/web3/tools/__next._index.txt +8 -8
  165. package/out/web3/tools/__next._tree.txt +4 -4
  166. package/out/web3/tools/__next.web3.tools.__PAGE__.txt +2 -2
  167. package/out/web3/tools/__next.web3.tools.txt +3 -3
  168. package/out/web3/tools/__next.web3.txt +4 -4
  169. package/out/web3/tools/index.html +1 -1
  170. package/out/web3/tools/index.txt +13 -13
  171. package/package.json +27 -27
  172. package/public/favicon.ico +0 -0
  173. package/public/logo-512.png +0 -0
  174. package/public/logo.ico +0 -0
  175. package/public/logo.svg +12 -0
  176. package/server/src/core/mostLink.js +1 -1
  177. package/server/src/games/gandengyan.js +49 -19
  178. package/server/src/http/app.js +40 -15
  179. package/server/src/http/nodeStatus.js +37 -0
  180. package/server/src/http/uploads.js +1 -0
  181. package/server/src/index.js +417 -112
  182. package/server/src/utils/avatar.js +3 -2
  183. package/out/_next/static/chunks/03gsbg0fr00ey.js +0 -1
  184. package/out/_next/static/chunks/0adx~d-j05c9d.css +0 -24
  185. package/out/_next/static/chunks/0ao1lbi4b.sfa.js +0 -1
  186. package/out/_next/static/chunks/0fo9-h4knidcz.js +0 -1
  187. package/out/_next/static/chunks/0g_a~e050bgzg.css +0 -1
  188. package/out/_next/static/chunks/0h4r.qtmpa6eh.js +0 -1
  189. package/out/_next/static/chunks/0hpev4am9jpmu.css +0 -1
  190. package/out/_next/static/chunks/0hyds~bp.auvh.js +0 -1
  191. package/out/_next/static/chunks/0i9sfdypwuw8~.js +0 -1
  192. package/out/_next/static/chunks/0o9ce4cyf76by.js +0 -736
  193. package/out/_next/static/chunks/0olqjomda37-e.js +0 -1
  194. package/out/_next/static/chunks/0puk.7e.tr2zy.js +0 -1
  195. package/out/_next/static/chunks/0qgx9t4jx16ua.css +0 -1
  196. package/out/_next/static/chunks/0s1k6rlwy02c2.js +0 -1
  197. package/out/_next/static/chunks/0sgltmtk_9s8p.css +0 -1
  198. package/out/_next/static/chunks/0snehvtvu1n4q.js +0 -1
  199. package/out/_next/static/chunks/0s~g.l~x049o2.js +0 -1
  200. package/out/_next/static/chunks/0t_3xxx4zkerp.js +0 -5
  201. package/out/_next/static/chunks/0u38kke9vhobe.js +0 -1
  202. package/out/_next/static/chunks/0vd4_a5x-wpdh.js +0 -1
  203. package/out/_next/static/chunks/0xdwau5k2augv.css +0 -4
  204. package/out/_next/static/chunks/0xx_10jns1.s7.css +0 -1
  205. package/out/_next/static/chunks/10f-t2n4y1zx8.js +0 -1
  206. package/out/_next/static/chunks/13jdyag9a-~kk.js +0 -1
  207. package/out/_next/static/chunks/153-sz7s.qml2.js +0 -1
  208. package/out/_next/static/chunks/17cwkb2yn_akx.js +0 -1
  209. /package/out/_next/static/{sSvbBrwXZY-4lBmcHshga → NPIlpdzQWkiVZpgfhlypH}/_buildManifest.js +0 -0
  210. /package/out/_next/static/{sSvbBrwXZY-4lBmcHshga → NPIlpdzQWkiVZpgfhlypH}/_clientMiddlewareManifest.js +0 -0
  211. /package/out/_next/static/{sSvbBrwXZY-4lBmcHshga → NPIlpdzQWkiVZpgfhlypH}/_ssgManifest.js +0 -0
  212. /package/out/_next/static/chunks/{0bld2u_ld~va2.js → 0-jy8rfo075fy.js} +0 -0
  213. /package/out/_next/static/chunks/{0bliugh5lxw55.js → 0-kczrcxjk7lc.js} +0 -0
  214. /package/out/_next/static/chunks/{00d9h1tddnnnd.js → 012yllpioyi-k.js} +0 -0
  215. /package/out/_next/static/chunks/{00tkdqwxch-3s.js → 02f7w-ybfnvpd.js} +0 -0
  216. /package/out/_next/static/chunks/{01l3o90g~1z42.js → 04_v8i3c2y4ni.js} +0 -0
  217. /package/out/_next/static/chunks/{01xlw8hd842-c.js → 05-c3ty_6dwfk.js} +0 -0
  218. /package/out/_next/static/chunks/{01mfky9camw6i.js → 052vp9tk7oqx6.js} +0 -0
  219. /package/out/_next/static/chunks/{01r.v-pqs1vrm.js → 05k6874y7n0cw.js} +0 -0
  220. /package/out/_next/static/chunks/{02zzxfop_k6tl.css → 09g8c9-u_uh1z.css} +0 -0
  221. /package/out/_next/static/chunks/{03edqrb4zdj~g.js → 0az8vxg2gfuhm.js} +0 -0
  222. /package/out/_next/static/chunks/{03h_6oo-gqkhz.js → 0b899y85ei3i_.js} +0 -0
  223. /package/out/_next/static/chunks/{03~yq9q893hmn.js → 0cz1d0mv5g_q7.js} +0 -0
  224. /package/out/_next/static/chunks/{04hcgsanv1hhu.js → 0eg1osglq6nq7.js} +0 -0
  225. /package/out/_next/static/chunks/{05g2q0w5b34.g.js → 0hlvocunlbrjs.js} +0 -0
  226. /package/out/_next/static/chunks/{05of77xycbt8~.js → 0i9k23rx749fx.js} +0 -0
  227. /package/out/_next/static/chunks/{05zwemzfjx3sh.js → 0j6wiyqf1637r.js} +0 -0
  228. /package/out/_next/static/chunks/{06dpc5df94.v1.js → 0knzyzd1jvley.js} +0 -0
  229. /package/out/_next/static/chunks/{06e1~1-z_ic9a.js → 0kp8ujaqwut11.js} +0 -0
  230. /package/out/_next/static/chunks/{075s7sn.ns~u5.js → 0n92y9hb-ta0u.js} +0 -0
  231. /package/out/_next/static/chunks/{07dynrbvd3.f4.js → 0nybb-z3ufrbx.js} +0 -0
  232. /package/out/_next/static/chunks/{07r9nn-pzlgg1.js → 0o-o9af-grvj8.js} +0 -0
  233. /package/out/_next/static/chunks/{07p~uva5pwgwe.js → 0oxr0r0aewn99.js} +0 -0
  234. /package/out/_next/static/chunks/{08576xhv~~jck.js → 0qh3b90ouc9bd.js} +0 -0
  235. /package/out/_next/static/chunks/{08u211~k~qu52.js → 0sh_jm8siqvek.js} +0 -0
  236. /package/out/_next/static/chunks/{08.72abkgwy9g.js → 0t86ducxkqweb.js} +0 -0
  237. /package/out/_next/static/chunks/{098.p.2-zm4p7.js → 0u0j5i6-n4oqd.js} +0 -0
  238. /package/out/_next/static/chunks/{09ngvtajm7e5y.js → 0v73vfxjds7sj.js} +0 -0
  239. /package/out/_next/static/chunks/{09ps~-43n5qyo.js → 0ve8ixremhwy0.js} +0 -0
  240. /package/out/_next/static/chunks/{09v7_0gclxr46.js → 0vv5cwj6kr506.js} +0 -0
  241. /package/out/_next/static/chunks/{09yql86dir9c4.js → 0w3wf8o-ewec9.js} +0 -0
  242. /package/out/_next/static/chunks/{09zmlfljowj1~.js → 0w6o4o76scrb2.js} +0 -0
  243. /package/out/_next/static/chunks/{0n4t80gjc3q5h.js → 1-88dio6azz54.js} +0 -0
  244. /package/out/_next/static/chunks/{0cn9a7aimbdzq.js → 12zg24u7mbv4z.js} +0 -0
  245. /package/out/_next/static/chunks/{0d3f-nk3c.2re.js → 14lsse587-ccf.js} +0 -0
  246. /package/out/_next/static/chunks/{0dtohpf7~3d12.js → 16qtikqm_sate.js} +0 -0
  247. /package/out/_next/static/chunks/{0e531nije_ln2.js → 17_ly1mk2z3q8.js} +0 -0
  248. /package/out/_next/static/chunks/{0e5zvj_rh0z3m.js → 181421-y2xzj7.js} +0 -0
  249. /package/out/_next/static/chunks/{0myp4sjagr~h0.js → 1_e-vuvfsntao.js} +0 -0
  250. /package/out/_next/static/chunks/{0e-3e8h7g99yf.js → 1aljc62wfhqhr.js} +0 -0
  251. /package/out/_next/static/chunks/{0f4y~rkk-n81e.js → 1b7mbzsylsn-m.js} +0 -0
  252. /package/out/_next/static/chunks/{0fk~0~p7ivfn1.js → 1cjakikh0o1tm.js} +0 -0
  253. /package/out/_next/static/chunks/{0fw6juc~lsj3z.js → 1dfzez629llzh.js} +0 -0
  254. /package/out/_next/static/chunks/{0g0u7785a73vo.js → 1e4ilit3ave6c.js} +0 -0
  255. /package/out/_next/static/chunks/{0gze5uso1mbe9.js → 1gzgcv355ziff.js} +0 -0
  256. /package/out/_next/static/chunks/{0g_fpgh7drfda.js → 1h0o6fj73le9_.js} +0 -0
  257. /package/out/_next/static/chunks/{0hf.aosc-7172.js → 1in766ibz5l-p.js} +0 -0
  258. /package/out/_next/static/chunks/{0hgz35c1ejbs9.js → 1ip_c70si4tj2.js} +0 -0
  259. /package/out/_next/static/chunks/{0hrw-r.xmvmsq.js → 1jlu197-yog_n.js} +0 -0
  260. /package/out/_next/static/chunks/{0hzg4al.v~8~m.js → 1k788fny29y_j.js} +0 -0
  261. /package/out/_next/static/chunks/{0ip9xrols_83o.js → 1mnhfyfn52md5.js} +0 -0
  262. /package/out/_next/static/chunks/{0j4-d0qf.v~kn.js → 1o8brm8yipzn4.js} +0 -0
  263. /package/out/_next/static/chunks/{0jhdeq.j9_02m.js → 1p8oa39bqu6ed.js} +0 -0
  264. /package/out/_next/static/chunks/{0jy63h3i-y69i.js → 1qmnmb_dutuw8.js} +0 -0
  265. /package/out/_next/static/chunks/{0kdnx_u-60k9s.js → 1s6rdcw0q185p.js} +0 -0
  266. /package/out/_next/static/chunks/{0kq~edq42o1-c.js → 1ta0w8zc7tae7.js} +0 -0
  267. /package/out/_next/static/chunks/{0l682p362d-5w.js → 1uvi_hie0s3z5.js} +0 -0
  268. /package/out/_next/static/chunks/{0m68p9txef5rs.js → 1y36s6sv2z7r4.js} +0 -0
  269. /package/out/_next/static/chunks/{0mme-fm5d2oz2.js → 1zf4i-oj7n-ll.js} +0 -0
  270. /package/out/_next/static/chunks/{0y.li-~3oybew.js → 2-vtwv8h_uokj.js} +0 -0
  271. /package/out/_next/static/chunks/{0n.qlfk~z7o.6.js → 2227enga_0c-6.js} +0 -0
  272. /package/out/_next/static/chunks/{0oz3yl6_-716p.js → 24zr4q96g-eii.js} +0 -0
  273. /package/out/_next/static/chunks/{0pqt~8bl3ukh4.js → 27jktro2p5rq9.js} +0 -0
  274. /package/out/_next/static/chunks/{0yl2t7cs-n_ng.js → 2_cqphhur0a6t.js} +0 -0
  275. /package/out/_next/static/chunks/{0yq3kh.hchtm_.js → 2_s88st3j0tql.js} +0 -0
  276. /package/out/_next/static/chunks/{0ys0l5au.9c2c.js → 2_y6edbaubqrt.js} +0 -0
  277. /package/out/_next/static/chunks/{0qqupeexg83u7.js → 2at8y3pbt5cue.js} +0 -0
  278. /package/out/_next/static/chunks/{0rb-ri481.kc9.js → 2cv1zex4has67.js} +0 -0
  279. /package/out/_next/static/chunks/{0rsnmahfd.59p.js → 2e6j5h4ftd4jd.js} +0 -0
  280. /package/out/_next/static/chunks/{0rt6rgnvr-s_p.js → 2e8b26r0td7ou.js} +0 -0
  281. /package/out/_next/static/chunks/{0runh28p_gg6..js → 2ecppdrjm9cs4.js} +0 -0
  282. /package/out/_next/static/chunks/{0shy.t1fwqcev.js → 2gl0wusc9zf3d.js} +0 -0
  283. /package/out/_next/static/chunks/{0t2xr05rlu96l.js → 2im7c515bo69p.js} +0 -0
  284. /package/out/_next/static/chunks/{0t6h56rhg1y5i.js → 2ixaku9ie8hym.js} +0 -0
  285. /package/out/_next/static/chunks/{0tdqd1zunusgk.js → 2jhnrjgj_k2-z.js} +0 -0
  286. /package/out/_next/static/chunks/{0ujbnp38x63ek.js → 2n6pb94vmohgf.js} +0 -0
  287. /package/out/_next/static/chunks/{0ukyg~tkm~h2m.css → 2nbju8t9-ux58.css} +0 -0
  288. /package/out/_next/static/chunks/{0v68pdrp54lb-.js → 2pdxw43rsbho0.js} +0 -0
  289. /package/out/_next/static/chunks/{0vsm0m5sxrb.3.js → 2r6z3vlfw0ppd.js} +0 -0
  290. /package/out/_next/static/chunks/{0vzlz.iboqo3c.js → 2rskzmv3skmq3.js} +0 -0
  291. /package/out/_next/static/chunks/{0w87vbpkf-ogd.js → 2stoe6xiau1b3.js} +0 -0
  292. /package/out/_next/static/chunks/{0xgg0~kmf3gd-.js → 2wqoc60afpg_5.js} +0 -0
  293. /package/out/_next/static/chunks/{0xj24-70ptdzp.js → 2wyvwsayrr98o.js} +0 -0
  294. /package/out/_next/static/chunks/{0xxlx772fr3x4.js → 2y3o2mnyfnx68.js} +0 -0
  295. /package/out/_next/static/chunks/{16i.qbk8t8gf_.js → 3-7y7sjol3yto.js} +0 -0
  296. /package/out/_next/static/chunks/{0z48pmi6buytt.js → 3089gugfv3ov9.js} +0 -0
  297. /package/out/_next/static/chunks/{0zapnvgy89mg..js → 30s3_0brd77ky.js} +0 -0
  298. /package/out/_next/static/chunks/{0_s~ebb-7b2hr.js → 35idql3ziq0wz.js} +0 -0
  299. /package/out/_next/static/chunks/{0_w-0-2z5oqd_.js → 35unmm4isvqg5.js} +0 -0
  300. /package/out/_next/static/chunks/{0-n3pg7th.zza.js → 389wmv2b6x2nn.js} +0 -0
  301. /package/out/_next/static/chunks/{0~4f5p6tvn1lq.js → 39-oy5n969lo6.js} +0 -0
  302. /package/out/_next/static/chunks/{0~3ik-hfp9s-7.js → 39yvee40syj70.js} +0 -0
  303. /package/out/_next/static/chunks/{0~_0ys.2whxbw.js → 3clhij8e1eul0.js} +0 -0
  304. /package/out/_next/static/chunks/{0~_ui9l7.2sxf.js → 3cnsdzbvm3q7p.js} +0 -0
  305. /package/out/_next/static/chunks/{0~.-vxi5oc.r0.js → 3cxmalqqghdac.js} +0 -0
  306. /package/out/_next/static/chunks/{0.4j.0k5a64vg.js → 3d9p88evh2scq.js} +0 -0
  307. /package/out/_next/static/chunks/{0.ozi1_x2.m.~.js → 3eyprczj7yrg6.js} +0 -0
  308. /package/out/_next/static/chunks/{0.t5wlt51zou5.js → 3f9v_gtppe4hs.js} +0 -0
  309. /package/out/_next/static/chunks/{0.w4hkvap~bva.js → 3fj0amtzqae6f.js} +0 -0
  310. /package/out/_next/static/chunks/{1037jlyw5~7ht.js → 3gf98e08a-l_e.js} +0 -0
  311. /package/out/_next/static/chunks/{1045hfzu533z0.js → 3gi6og9m_yaak.js} +0 -0
  312. /package/out/_next/static/chunks/{104e5nmc.c-pl.js → 3giw7r1lii84y.js} +0 -0
  313. /package/out/_next/static/chunks/{109taw1pbh-0b.js → 3gzhy1cs_f2oi.js} +0 -0
  314. /package/out/_next/static/chunks/{10ynz1dy483wf.js → 3i_ceknny1oqt.js} +0 -0
  315. /package/out/_next/static/chunks/{10x7~onqwp338.js → 3iw0815ssih3b.js} +0 -0
  316. /package/out/_next/static/chunks/{11hds.mg~4_r-.js → 3kun-vwr7nzd4.js} +0 -0
  317. /package/out/_next/static/chunks/{11ibzaklcauw~.js → 3kxm1e-b1er3_.js} +0 -0
  318. /package/out/_next/static/chunks/{11z.0s6.42b.p.js → 3mc8fynmv71yg.js} +0 -0
  319. /package/out/_next/static/chunks/{126enaq~f7scl.js → 3n6cor2n9zyn7.js} +0 -0
  320. /package/out/_next/static/chunks/{12pep-2t-qg4n.css → 3or2h8swxfxyj.css} +0 -0
  321. /package/out/_next/static/chunks/{12-9n56l0y3yr.js → 3ppt04b6xqz29.js} +0 -0
  322. /package/out/_next/static/chunks/{1380op_pfk.qo.js → 3ql2pi_m5_5p_.js} +0 -0
  323. /package/out/_next/static/chunks/{14a4fwbiq.l3z.js → 3t-6u8caafiu9.js} +0 -0
  324. /package/out/_next/static/chunks/{146oiw1bggtn4.js → 3tqdzb_n12tdm.js} +0 -0
  325. /package/out/_next/static/chunks/{14cowsqn95m1k.js → 3u6zpg943kpst.js} +0 -0
  326. /package/out/_next/static/chunks/{14dtd3l03v.kx.js → 3uaedu2hf291z.js} +0 -0
  327. /package/out/_next/static/chunks/{14tm3qa-v9o-4.js → 3vladx3wh0d4k.js} +0 -0
  328. /package/out/_next/static/chunks/{14_inksek_rth.js → 3w4o9hklow6fg.js} +0 -0
  329. /package/out/_next/static/chunks/{14_po2rb_arn4.js → 3w56w25z6u89b.js} +0 -0
  330. /package/out/_next/static/chunks/{157z7bowux3xj.js → 3x1y_gkazt6kx.js} +0 -0
  331. /package/out/_next/static/chunks/{15m1_677az2cm.js → 3y7r1h96dtcov.js} +0 -0
  332. /package/out/_next/static/chunks/{15v.~.ne6ogkk.js → 3z0hydntmwg19.js} +0 -0
  333. /package/out/_next/static/chunks/{15-o4kb-evqd7.js → 3zhu1svjr0bc5.js} +0 -0
  334. /package/out/_next/static/chunks/{16u9f35gylw8l.js → 404orp1erq__7.js} +0 -0
  335. /package/out/_next/static/chunks/{17ajyb5ogk5yj.js → 41talcs-dc2tc.js} +0 -0
  336. /package/out/_next/static/chunks/{17dyfxbq8yz8n.js → 421pn8weymo-b.js} +0 -0
  337. /package/out/_next/static/chunks/{180zln9pcq9ih.js → 44987pmr20now.js} +0 -0
  338. /package/out/_next/static/chunks/{1814izi5gh.kp.js → 449ygeh62gitc.js} +0 -0
  339. /package/out/_next/static/media/{KaTeX_AMS-Regular.0b~8ki5y928w2.woff → KaTeX_AMS-Regular.10y3kupq4t663.woff} +0 -0
  340. /package/out/_next/static/media/{KaTeX_AMS-Regular.0p1vbqd84i2~o.woff2 → KaTeX_AMS-Regular.25ieegmnh38ts.woff2} +0 -0
  341. /package/out/_next/static/media/{KaTeX_AMS-Regular.173t6ktr7uf-w.ttf → KaTeX_AMS-Regular.418dr7cz3fo2x.ttf} +0 -0
  342. /package/out/_next/static/media/{KaTeX_Caligraphic-Bold.01-pzluls4zgb.woff2 → KaTeX_Caligraphic-Bold.06b-ya9t43ioz.woff2} +0 -0
  343. /package/out/_next/static/media/{KaTeX_Caligraphic-Bold.0x2v1lwn~880f.woff → KaTeX_Caligraphic-Bold.2vmk2hva4ctha.woff} +0 -0
  344. /package/out/_next/static/media/{KaTeX_Caligraphic-Bold.16zv5fax0h0ka.ttf → KaTeX_Caligraphic-Bold.40ltxhe834pns.ttf} +0 -0
  345. /package/out/_next/static/media/{KaTeX_Caligraphic-Regular.02i3z7wig438t.ttf → KaTeX_Caligraphic-Regular.07-7u27-nhn_r.ttf} +0 -0
  346. /package/out/_next/static/media/{KaTeX_Caligraphic-Regular.0rysu1t-ncjq8.woff2 → KaTeX_Caligraphic-Regular.2eph4dlhid_m9.woff2} +0 -0
  347. /package/out/_next/static/media/{KaTeX_Caligraphic-Regular.10927swgekwun.woff → KaTeX_Caligraphic-Regular.3gxeetazf831f.woff} +0 -0
  348. /package/out/_next/static/media/{KaTeX_Fraktur-Bold.0et27v~3~4uhe.ttf → KaTeX_Fraktur-Bold.19yqa_tc9d_gx.ttf} +0 -0
  349. /package/out/_next/static/media/{KaTeX_Fraktur-Bold.0e-16u10iuyyf.woff → KaTeX_Fraktur-Bold.1alcy76__wdj2.woff} +0 -0
  350. /package/out/_next/static/media/{KaTeX_Fraktur-Bold.0w23i72~hprpq.woff2 → KaTeX_Fraktur-Bold.2sasz-d-jtw8y.woff2} +0 -0
  351. /package/out/_next/static/media/{KaTeX_Fraktur-Regular.0b.riegzdfue2.woff → KaTeX_Fraktur-Regular.110oo81prr9n5.woff} +0 -0
  352. /package/out/_next/static/media/{KaTeX_Fraktur-Regular.0rekyoa-52fj_.woff2 → KaTeX_Fraktur-Regular.2d10y4xmjvzlf.woff2} +0 -0
  353. /package/out/_next/static/media/{KaTeX_Fraktur-Regular.0vjwa15znhk~4.ttf → KaTeX_Fraktur-Regular.2qhy34r6a05dn.ttf} +0 -0
  354. /package/out/_next/static/media/{KaTeX_Main-Bold.09i7~607shf-h.ttf → KaTeX_Main-Bold.0us_n0tnxlxu7.ttf} +0 -0
  355. /package/out/_next/static/media/{KaTeX_Main-Bold.09lmynrorhcbw.woff → KaTeX_Main-Bold.0v1esh257kqpe.woff} +0 -0
  356. /package/out/_next/static/media/{KaTeX_Main-Bold.16pfc63_du6mx.woff2 → KaTeX_Main-Bold.3-rowy8o6_4ky.woff2} +0 -0
  357. /package/out/_next/static/media/{KaTeX_Main-BoldItalic.0cp37g7x1q8h6.woff → KaTeX_Main-BoldItalic.13355ck5zr48q.woff} +0 -0
  358. /package/out/_next/static/media/{KaTeX_Main-BoldItalic.0d54rk08rx11s.woff2 → KaTeX_Main-BoldItalic.14r2naom8mrec.woff2} +0 -0
  359. /package/out/_next/static/media/{KaTeX_Main-BoldItalic.15j6k~hix2t_0.ttf → KaTeX_Main-BoldItalic.3x_u9cepaced0.ttf} +0 -0
  360. /package/out/_next/static/media/{KaTeX_Main-Italic.0382gqciexmbu.woff → KaTeX_Main-Italic.0afv392dj4w59.woff} +0 -0
  361. /package/out/_next/static/media/{KaTeX_Main-Italic.06o5nq0_91v60.woff2 → KaTeX_Main-Italic.0lig0v9j0700p.woff2} +0 -0
  362. /package/out/_next/static/media/{KaTeX_Main-Italic.0su4i6mm18-wo.ttf → KaTeX_Main-Italic.2hkw3230mfwcv.ttf} +0 -0
  363. /package/out/_next/static/media/{KaTeX_Main-Regular.08zh8z.7shijf.ttf → KaTeX_Main-Regular.0symfa7dqj6jd.ttf} +0 -0
  364. /package/out/_next/static/media/{KaTeX_Main-Regular.0diheg01zyoph.woff → KaTeX_Main-Regular.15u8r3b2y7fv4.woff} +0 -0
  365. /package/out/_next/static/media/{KaTeX_Main-Regular.0kaf-ag2_wkm-.woff2 → KaTeX_Main-Regular.1ryvsdzh2w1_e.woff2} +0 -0
  366. /package/out/_next/static/media/{KaTeX_Math-BoldItalic.0ajzxypnbx1h1.ttf → KaTeX_Math-BoldItalic.0y5w36a5aq__2.ttf} +0 -0
  367. /package/out/_next/static/media/{KaTeX_Math-BoldItalic.0ck1myuerwyqw.woff → KaTeX_Math-BoldItalic.12pl58orkw9rg.woff} +0 -0
  368. /package/out/_next/static/media/{KaTeX_Math-BoldItalic.0ja97dn.cpc87.woff2 → KaTeX_Math-BoldItalic.1oopuu636h4il.woff2} +0 -0
  369. /package/out/_next/static/media/{KaTeX_Math-Italic.09xkhecjcn5r9.woff → KaTeX_Math-Italic.0w0b1ugh62cfr.woff} +0 -0
  370. /package/out/_next/static/media/{KaTeX_Math-Italic.0x23a-bmp-5tg.ttf → KaTeX_Math-Italic.2vkekfblmz5nb.ttf} +0 -0
  371. /package/out/_next/static/media/{KaTeX_Math-Italic.0zrha2c4sl2je.woff2 → KaTeX_Math-Italic.32405s1aq8vas.woff2} +0 -0
  372. /package/out/_next/static/media/{KaTeX_SansSerif-Bold.05a9.pc1j_zx9.woff2 → KaTeX_SansSerif-Bold.0h3wi2z_eouyg.woff2} +0 -0
  373. /package/out/_next/static/media/{KaTeX_SansSerif-Bold.0jcl-ayi1uun0.woff → KaTeX_SansSerif-Bold.1ovw5p-yjp56g.woff} +0 -0
  374. /package/out/_next/static/media/{KaTeX_SansSerif-Bold.0re8y.dm7.mt5.ttf → KaTeX_SansSerif-Bold.2d03q85pwxpti.ttf} +0 -0
  375. /package/out/_next/static/media/{KaTeX_SansSerif-Italic.0a0234dc3s62j.woff2 → KaTeX_SansSerif-Italic.0wkjc4dm2kcit.woff2} +0 -0
  376. /package/out/_next/static/media/{KaTeX_SansSerif-Italic.0judofdln9731.woff → KaTeX_SansSerif-Italic.1qavw__2zz8gk.woff} +0 -0
  377. /package/out/_next/static/media/{KaTeX_SansSerif-Italic.10z1iap9pfus8.ttf → KaTeX_SansSerif-Italic.3i-q087b23-m8.ttf} +0 -0
  378. /package/out/_next/static/media/{KaTeX_SansSerif-Regular.0h9yjlugq4q_e.woff → KaTeX_SansSerif-Regular.1i4afx8nk8n4r.woff} +0 -0
  379. /package/out/_next/static/media/{KaTeX_SansSerif-Regular.0v6gcj32-czft.woff2 → KaTeX_SansSerif-Regular.2peiewu59z3d-.woff2} +0 -0
  380. /package/out/_next/static/media/{KaTeX_SansSerif-Regular.0zm18kga42ebc.ttf → KaTeX_SansSerif-Regular.31pbu25feko_c.ttf} +0 -0
  381. /package/out/_next/static/media/{KaTeX_Script-Regular.0c4.h-mer83d_.woff2 → KaTeX_Script-Regular.11h14300o9pd0.woff2} +0 -0
  382. /package/out/_next/static/media/{KaTeX_Script-Regular.0q14y6zkzlpob.ttf → KaTeX_Script-Regular.28p_x7iz71ofe.ttf} +0 -0
  383. /package/out/_next/static/media/{KaTeX_Script-Regular.0ze6v4r_-99oy.woff → KaTeX_Script-Regular.3110jb9c-bxna.woff} +0 -0
  384. /package/out/_next/static/media/{KaTeX_Size1-Regular.013x6a4ierotp.woff2 → KaTeX_Size1-Regular.03lhvx36ekcou.woff2} +0 -0
  385. /package/out/_next/static/media/{KaTeX_Size1-Regular.0kidw0oi.m68o.woff → KaTeX_Size1-Regular.1slf4bh0hc6vm.woff} +0 -0
  386. /package/out/_next/static/media/{KaTeX_Size1-Regular.0m6y-i6wfokni.ttf → KaTeX_Size1-Regular.1y57-ck23ey8c.ttf} +0 -0
  387. /package/out/_next/static/media/{KaTeX_Size2-Regular.0blpmluwilgbg.woff → KaTeX_Size2-Regular.0-kwyvx03omo8.woff} +0 -0
  388. /package/out/_next/static/media/{KaTeX_Size2-Regular.0d5inmyp-tyv3.woff2 → KaTeX_Size2-Regular.14s5gg-puz6h-.woff2} +0 -0
  389. /package/out/_next/static/media/{KaTeX_Size2-Regular.0wnhnvj-.k9d5.ttf → KaTeX_Size2-Regular.2u0s-b07k2o9m.ttf} +0 -0
  390. /package/out/_next/static/media/{KaTeX_Size3-Regular.01h0xm_sfctj3.woff → KaTeX_Size3-Regular.04o9a_02gu_e8.woff} +0 -0
  391. /package/out/_next/static/media/{KaTeX_Size3-Regular.0iukctyhw5j56.woff2 → KaTeX_Size3-Regular.1n1rgzz84z8r9.woff2} +0 -0
  392. /package/out/_next/static/media/{KaTeX_Size3-Regular.0jl8mqyf4gzpn.ttf → KaTeX_Size3-Regular.1pkn-dge4q0fv.ttf} +0 -0
  393. /package/out/_next/static/media/{KaTeX_Size4-Regular.0w3.rb_c4stzk.woff2 → KaTeX_Size4-Regular.2sgotkdv3dcyv.woff2} +0 -0
  394. /package/out/_next/static/media/{KaTeX_Size4-Regular.0wr_9l81-mu06.ttf → KaTeX_Size4-Regular.2uelkfk2yna5e.ttf} +0 -0
  395. /package/out/_next/static/media/{KaTeX_Size4-Regular.12tvaesf3.zl3.woff → KaTeX_Size4-Regular.3p2r1l7xmebxv.woff} +0 -0
  396. /package/out/_next/static/media/{KaTeX_Typewriter-Regular.0c4zdxz~8frhm.woff2 → KaTeX_Typewriter-Regular.11gr2d2wuwz77.woff2} +0 -0
  397. /package/out/_next/static/media/{KaTeX_Typewriter-Regular.0cgrzn5l3kao5.woff → KaTeX_Typewriter-Regular.12f8myjij3617.woff} +0 -0
  398. /package/out/_next/static/media/{KaTeX_Typewriter-Regular.128~qc3858otl.ttf → KaTeX_Typewriter-Regular.3nee9kjfy6nm8.ttf} +0 -0
  399. /package/out/{pwa-512x512.png → avatar.png} +0 -0
  400. /package/public/{pwa-512x512.png → avatar.png} +0 -0
@@ -0,0 +1 @@
1
+ .mkt-layout{flex-direction:column;min-height:100dvh;display:flex}.mkt-layout-main{flex:1}.mkt-container{width:100%;max-width:960px;padding-inline:var(--space-6);margin-inline:auto}@media (max-width:768px){.mkt-container{padding-inline:var(--space-4)}}.mkt-nav{z-index:100;border-bottom:1px solid var(--glass-border);background:var(--glass-bg-heavy);height:64px;-webkit-backdrop-filter:var(--blur-xl);align-items:center;display:flex;position:sticky;top:0}.mkt-nav-inner{width:100%;max-width:960px;padding-inline:var(--space-6);justify-content:space-between;align-items:center;margin-inline:auto;display:flex}.mkt-nav-logo{align-items:center;gap:var(--space-2);font-size:var(--font-size-lg,1.125rem);color:var(--text-primary);font-weight:700;text-decoration:none;display:flex}.mkt-nav-logo:hover{color:var(--text-primary)}.mkt-nav-cta{align-items:center;gap:var(--space-3);flex-wrap:wrap;justify-content:flex-end;display:flex}.mkt-nav-preview{color:var(--text-secondary)}.mkt-theme-toggle{border-radius:var(--radius-sm,8px);width:32px;height:32px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;transition:all .15s;display:flex}.mkt-theme-toggle:hover{color:var(--text-primary);background:var(--glass-bg-subtle)}.mkt-footer{border-top:1px solid var(--glass-border);padding-block:var(--space-8);background:var(--glass-bg-subtle)}.mkt-footer-inner{justify-content:center;align-items:center;gap:var(--space-4);flex-wrap:wrap;display:flex}.mkt-footer-links{gap:var(--space-6);display:flex}.mkt-footer-links a{font-size:var(--font-size-xs,.75rem);color:var(--text-muted)}.mkt-footer-links a:hover{color:var(--text-primary)}.mkt-footer-copy{font-size:var(--font-size-xs,.75rem);color:var(--text-muted)}@media (max-width:768px){.mkt-nav-inner{padding-inline:var(--space-4)}.mkt-nav-logo{font-size:14px}.mkt-nav-cta{gap:var(--space-2)}.mkt-nav-preview{display:none}.mkt-footer-inner{flex-direction:column;align-items:flex-start}}.mkt-landing{font-family:var(--font-sans)}.mkt-hero{text-align:center;padding:80px 24px 48px}.mkt-hero-badge{border-radius:var(--radius-full);background:var(--glass-bg-subtle);color:var(--text-secondary);border:1px solid var(--glass-border);margin-bottom:24px;padding:4px 12px;font-size:12px;font-weight:500;display:inline-block}.mkt-hero-title{letter-spacing:0;background:linear-gradient(135deg, var(--text-primary), var(--accent));-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin-bottom:16px;font-size:60px;font-weight:700;line-height:1.05}.mkt-hero-desc{color:var(--text-secondary);max-width:36ch;margin:0 auto 32px;font-size:18px;line-height:1.6}.mkt-hero-cta{justify-content:center;gap:12px;margin-top:24px;display:flex}.mkt-screenshot-placeholder{background:var(--glass-bg-subtle);border:1px dashed var(--glass-border);border-radius:var(--radius-lg);aspect-ratio:16/9;color:var(--text-muted);justify-content:center;align-items:center;margin-bottom:48px;font-size:13px;display:flex}.mkt-section-desc{color:var(--text-secondary);max-width:65ch;margin-bottom:32px;font-size:18px;line-height:1.7}.mkt-features{flex-direction:column;gap:20px;display:flex}.mkt-feature{align-items:flex-start;gap:12px;display:flex}.mkt-feature .mkt-feature-icon{color:var(--accent);flex-shrink:0;margin-top:2px}.mkt-feature strong{color:var(--text-primary);font-weight:600;display:block}.mkt-feature span{color:var(--text-secondary);font-size:13px}.mkt-link{color:var(--accent);margin-top:32px;font-size:13px;text-decoration:none;display:inline-block}.mkt-link:hover{text-decoration:underline}.mkt-section-alt{background:var(--glass-bg-subtle);border-top:1px solid var(--glass-border);border-bottom:1px solid var(--glass-border)}.mkt-steps{flex-direction:column;gap:24px;margin-bottom:32px;display:flex}.mkt-step{align-items:flex-start;gap:16px;display:flex}.mkt-step-num{border-radius:var(--radius-full);background:var(--accent);color:#fff;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:13px;font-weight:700;display:flex}.mkt-step-content{flex:1}.mkt-step-content h4{color:var(--text-primary);margin-bottom:8px;font-size:15px;font-weight:600}.mkt-step-content p{color:var(--text-secondary);font-size:13px}.mkt-code{background:var(--glass-bg-subtle);border:1px solid var(--glass-border);border-radius:var(--radius-sm);font-size:13px;font-family:var(--font-mono);color:var(--text-primary);margin-top:8px;padding:12px 16px;display:block}.mkt-step-link{margin-top:8px}.mkt-step-link a{color:var(--accent);font-size:13px}.mkt-remote-grid{grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:24px;display:grid}.mkt-remote-card{background:var(--glass-bg-subtle);-webkit-backdrop-filter:var(--blur-sm);border:1px solid var(--glass-border);border-radius:var(--radius-lg);transition:all var(--transition);padding:20px}.mkt-remote-card:hover{background:var(--glass-bg);box-shadow:var(--glass-shadow);transform:translateY(-2px)}.mkt-remote-card h4{color:var(--text-primary);margin-bottom:4px;font-size:15px;font-weight:600}.mkt-remote-card p{color:var(--text-secondary);font-size:13px;line-height:1.5}.mkt-tag{color:var(--accent);background:var(--accent-soft);border-radius:var(--radius-sm);margin-top:8px;padding:4px 8px;font-size:11px;font-weight:500;display:inline-block}.mkt-cta{text-align:center}.mkt-cta-desc{color:var(--text-secondary);max-width:40ch;margin:0 auto 32px;font-size:18px;line-height:1.6}.mkt-cta-install{max-width:520px;margin:0 auto}@media (max-width:768px){.mkt-hero-title{font-size:40px}.mkt-hero-desc{font-size:16px}.mkt-remote-grid{grid-template-columns:1fr}.mkt-hero-cta{flex-direction:column;align-items:center}}.page-loading{flex-direction:column;justify-content:center;align-items:center;min-height:calc(100dvh - 144px);display:flex}.page-loading-logo{opacity:.5;background:linear-gradient(135deg, var(--accent) 25%, transparent 25%) 0 0 / 50% 50% no-repeat, linear-gradient(135deg, var(--accent) 25%, transparent 25%) 50% 0 / 50% 50% no-repeat, linear-gradient(135deg, var(--accent) 25%, transparent 25%) 0 50% / 50% 50% no-repeat, linear-gradient(135deg, var(--accent) 25%, transparent 25%) 50% 50% / 50% 50% no-repeat;background-color:var(--accent);border-radius:4px;width:48px;height:48px;animation:1.5s ease-in-out infinite pulse;-webkit-mask:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2' y='2' width='8' height='8' rx='2' fill='black' opacity='0.4'/%3E%3Crect x='14' y='2' width='8' height='8' rx='2' fill='black' opacity='0.7'/%3E%3Crect x='2' y='14' width='8' height='8' rx='2' fill='black' opacity='0.7'/%3E%3Crect x='14' y='14' width='8' height='8' rx='2' fill='black'/%3E%3C/svg%3E") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2' y='2' width='8' height='8' rx='2' fill='black' opacity='0.4'/%3E%3Crect x='14' y='2' width='8' height='8' rx='2' fill='black' opacity='0.7'/%3E%3Crect x='2' y='14' width='8' height='8' rx='2' fill='black' opacity='0.7'/%3E%3Crect x='14' y='14' width='8' height='8' rx='2' fill='black'/%3E%3C/svg%3E") 50%/contain no-repeat}@keyframes pulse{0%,to{opacity:.3;transform:scale(.95)}50%{opacity:.7;transform:scale(1)}}.mkt-nav-settings-btn{border-radius:var(--radius-sm,8px);width:32px;height:32px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;transition:all .15s;display:flex}.mkt-nav-settings-btn:hover{color:var(--text-primary);background:var(--glass-bg-subtle)}.mkt-settings-overlay{z-index:200;-webkit-backdrop-filter:var(--blur-xl);background:#0006;justify-content:center;align-items:center;animation:.2s ease-out fadeIn;display:flex;position:fixed;inset:0}.mkt-settings-modal{background:var(--glass-bg-heavy);-webkit-backdrop-filter:var(--blur-2xl);border:1px solid var(--glass-border);border-radius:var(--radius-xl);padding:var(--space-8);width:90%;max-width:420px;box-shadow:var(--glass-shadow-lg);animation:.25s ease-out scaleIn}.mkt-settings-modal h3{margin-bottom:var(--space-2);font-size:18px;font-weight:600}.mkt-settings-desc{color:var(--text-secondary);margin-bottom:var(--space-5);font-size:13px;line-height:1.5}.mkt-settings-actions{gap:var(--space-3);display:flex}.mkt-settings-status{margin-top:var(--space-3);text-align:center;font-size:13px}.mkt-settings-status.success{color:var(--success)}.mkt-settings-status.error{color:var(--danger)}
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let l=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",i=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(l.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${a}${c}${i}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(71645);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=l(e,n)),t&&(a.current=l(t,n))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let n=e.r(18967),a=e.r(52817);function l(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return x}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let l=e.r(90809),o=e.r(18050),i=l._(e.r(71645)),s=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550);e.r(33525);let p=e.r(88540),h=e.r(91949),m=e.r(73668),b=e.r(9396);function y(t){var r,n;let a,l,y,[x,v]=(0,i.useOptimistic)(h.IDLE_LINK_STATUS),j=(0,i.useRef)(null),{href:w,as:_,children:k,prefetch:R=null,passHref:C,replace:U,shallow:S,scroll:E,onClick:P,onMouseEnter:A,onTouchStart:M,legacyBehavior:O=!1,onNavigate:N,transitionTypes:T,ref:L,unstable_dynamicOnHover:$,...I}=t;a=k,O&&("string"==typeof a||"number"==typeof a)&&(a=(0,o.jsx)("a",{children:a}));let H=i.default.useContext(u.AppRouterContext),B=!1!==R,D=!1!==R?null===(n=R)||"auto"===n?b.FetchStrategy.PPR:b.FetchStrategy.Full:b.FetchStrategy.PPR,G="string"==typeof(r=_||w)?r:(0,s.formatUrl)(r);if(O){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});l=i.default.Children.only(a)}let z=O?l&&"object"==typeof l&&l.ref:L,K=i.default.useCallback(e=>(null!==H&&(j.current=(0,h.mountLinkInstance)(e,G,H,D,B,v)),()=>{j.current&&((0,h.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,h.unmountPrefetchableInstance)(e)}),[B,G,H,D,v]),F={ref:(0,c.useMergedRef)(K,z),onClick(t){O||"function"!=typeof P||P(t),O&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(t),!H||t.defaultPrevented||function(t,r,n,a,l,o,s){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);i.default.startTransition(()=>{d(r,a?"replace":"push",!1===l?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,s)})}}(t,G,j,U,E,N,T)},onMouseEnter(e){O||"function"!=typeof A||A(e),O&&l.props&&"function"==typeof l.props.onMouseEnter&&l.props.onMouseEnter(e),H&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){O||"function"!=typeof M||M(e),O&&l.props&&"function"==typeof l.props.onTouchStart&&l.props.onTouchStart(e),H&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,d.isAbsoluteUrl)(G)?F.href=G:O&&!C&&("a"!==l.type||"href"in l.props)||(F.href=(0,f.addBasePath)(G)),y=O?i.default.cloneElement(l,F):(0,o.jsx)("a",{...I,...F,children:a}),(0,o.jsx)(g.Provider,{value:x,children:y})}e.r(84508);let g=(0,i.createContext)(h.IDLE_LINK_STATUS),x=()=>(0,i.useContext)(g);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},62368,e=>{"use strict";let t=(0,e.i(56420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],62368)},31214,e=>{"use strict";let t=(0,e.i(56420).default)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);e.s(["Cloud",0,t],31214)},58072,e=>{"use strict";let t=(0,e.i(56420).default)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);e.s(["Code",0,t],58072)},18597,e=>{"use strict";var t=e.i(47167),r=e.i(18050),n=e.i(71645),a=e.i(56420);let l=(0,a.default)("apple",[["path",{d:"M12 6.528V3a1 1 0 0 1 1-1h0",key:"11qiee"}],["path",{d:"M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21",key:"110c12"}]]);var o=e.i(31214),i=e.i(58072),s=e.i(62368);let u=(0,a.default)("laptop",[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]),c=(0,a.default)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),d="https://github.com/most-people/most/releases/latest",f=t.default.env.NEXT_PUBLIC_RELEASE_MANIFEST_URL||`${(t.default.env.NEXT_PUBLIC_R2_PUBLIC_BASE_URL||"https://download.most.box").replace(/\/+$/,"")}/releases/latest.json`,p=[{platform:"windows",arch:"x64",kind:"installer",filename:"GitHub Releases",githubUrl:d},{platform:"windows",arch:"arm64",kind:"installer",filename:"GitHub Releases",githubUrl:d},{platform:"macos",arch:"x64",kind:"installer",filename:"GitHub Releases",githubUrl:d},{platform:"macos",arch:"arm64",kind:"installer",filename:"GitHub Releases",githubUrl:d},{platform:"linux",arch:"x64",kind:"installer",filename:"GitHub Releases",githubUrl:d},{platform:"linux",arch:"arm64",kind:"installer",filename:"GitHub Releases",githubUrl:d}],h={windows:{name:"Windows",ext:".exe",desc:"Windows 10 或更高版本",icon:c},macos:{name:"macOS",ext:".dmg",desc:"macOS 12 Monterey 或更高版本",icon:l},linux:{name:"Linux",ext:".AppImage",desc:"Ubuntu 20.04+ / Debian 11+ / 其他主流发行版",icon:u}};function m(e){return"object"==typeof e&&null!==e}function b(e){return!!m(e)&&["windows","macos","linux"].includes(String(e.platform))&&["x64","arm64"].includes(String(e.arch))&&"installer"===e.kind&&"string"==typeof e.filename&&"string"==typeof e.githubUrl&&("string"==typeof e.r2Url||void 0===e.r2Url)}e.s(["default",0,function(){let[e,t]=(0,n.useState)(null),[a,l]=(0,n.useState)("loading"),[u,c]=(0,n.useState)("windows:x64"),[d,y]=(0,n.useState)("r2");(0,n.useEffect)(()=>{c(function(){let e;if("u"<typeof navigator)return"windows:x64";let t=(e=navigator,[e.userAgentData?.platform,navigator.platform,navigator.userAgent].filter(Boolean).join(" ").toLowerCase()),r=/arm|aarch64/.test(t)?"arm64":"x64";return/mac|darwin/.test(t)?`macos:${r}`:/linux/.test(t)?`linux:${r}`:`windows:${r}`}())},[]),(0,n.useEffect)(()=>{let e=new AbortController;return fetch(f,{cache:"no-store",signal:e.signal}).then(e=>{if(!e.ok)throw Error(`Manifest request failed: ${e.status}`);return e.json()}).then(e=>{if(!(m(e)&&"string"==typeof e.version&&"string"==typeof e.publishedAt&&Array.isArray(e.assets)&&e.assets.every(b)))throw Error("Invalid download manifest");t(e),l("ready")}).catch(e=>{e instanceof DOMException&&"AbortError"===e.name||(t(null),l("fallback"))}),()=>e.abort()},[]),(0,n.useEffect)(()=>{"fallback"===a&&y("github")},[a]);let g=e?.assets.length?e.assets:p,x=g.some(e=>e.r2Url),v="r2"===d&&x?"r2":"github";return(0,r.jsxs)("div",{className:"download-options",children:[(0,r.jsxs)("div",{className:"ui-segmented-control download-source-tabs",role:"tablist","aria-label":"下载来源",children:[(0,r.jsxs)("button",{type:"button",role:"tab","aria-selected":"r2"===v,disabled:!x,className:"r2"===v?"ui-segmented-option download-source-tab is-active":"ui-segmented-option download-source-tab",onClick:()=>y("r2"),children:[(0,r.jsx)(o.Cloud,{size:15}),"Cloudflare R2"]}),(0,r.jsxs)("button",{type:"button",role:"tab","aria-selected":"github"===v,className:"github"===v?"ui-segmented-option download-source-tab is-active":"ui-segmented-option download-source-tab",onClick:()=>y("github"),children:[(0,r.jsx)(i.Code,{size:15}),"GitHub Releases"]})]}),(0,r.jsx)("p",{className:"download-source-note",children:"loading"===a?"正在获取 Cloudflare R2 高速镜像。":"ready"===a&&e?`当前版本 ${e.version},可切换 Cloudflare R2 或 GitHub Releases 下载。`:"无法获取高速镜像信息,已切换到 GitHub Releases 备用下载。"}),(0,r.jsx)("div",{className:"download-platform-grid",children:g.map(e=>{let t=h[e.platform],n=t.icon,a=`${e.platform}:${e.arch}`,l="r2"===v&&e.r2Url?e.r2Url:e.githubUrl,o=a===u;return(0,r.jsxs)("article",{className:o?"download-platform-card is-recommended":"download-platform-card",children:[(0,r.jsx)("div",{className:"download-platform-icon",children:(0,r.jsx)(n,{size:32})}),(0,r.jsxs)("div",{className:"download-platform-content",children:[(0,r.jsxs)("div",{className:"download-platform-heading",children:[(0,r.jsx)("h3",{children:t.name}),(0,r.jsx)("span",{children:e.arch})]}),(0,r.jsx)("p",{children:t.desc}),(0,r.jsxs)("dl",{className:"download-platform-meta",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("dt",{children:"来源"}),(0,r.jsx)("dd",{children:"r2"===v&&e.r2Url&&e.r2Url?"Cloudflare R2 高速镜像":"GitHub Releases"})]}),e.size?(0,r.jsxs)("div",{children:[(0,r.jsx)("dt",{children:"大小"}),(0,r.jsx)("dd",{children:function(e){if(!e)return"";let t=e/1024/1024;return`${t.toFixed(t>=100?0:1)} MB`}(e.size)})]}):null,e.sha256?(0,r.jsxs)("div",{children:[(0,r.jsx)("dt",{children:"SHA256"}),(0,r.jsx)("dd",{children:e.sha256.slice(0,12)})]}):null]}),(0,r.jsx)("div",{className:"download-platform-actions",children:(0,r.jsxs)("a",{href:l,className:"btn btn-primary",children:[(0,r.jsx)(s.Download,{size:16}),"下载 ",t.ext]})})]}),o?(0,r.jsx)("span",{className:"download-recommended-badge",children:"当前"}):null]},a)})})]})}],18597)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89664,e=>{"use strict";let a=(0,e.i(56420).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,a],89664)},11241,e=>{"use strict";let a=(0,e.i(56420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,a],11241)},35965,e=>{"use strict";let a=(0,e.i(56420).default)("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"}]]);e.s(["Sun",0,a],35965)},96699,e=>{"use strict";let a=(0,e.i(56420).default)("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"}]]);e.s(["Moon",0,a],96699)},59665,5142,e=>{"use strict";var a=e.i(18050),n=e.i(71645);let t=(0,e.i(56420).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);function i(e=!1,a={}){let[t,s]=(0,n.useState)(e),l=(0,n.useCallback)(()=>{s(e=>e||(a.onOpen?.(),!0))},[a.onOpen]),r=(0,n.useCallback)(()=>{s(e=>e?(a.onClose?.(),!1):e)},[a.onClose]);return[t,{open:l,close:r,toggle:(0,n.useCallback)(()=>{t?r():l()},[r,l,t]),set:s}]}e.s(["useDisclosure",0,i],5142);let s=(0,n.createContext)(null);e.s(["default",0,function({sidebar:e,headerTitle:l,headerRight:r,children:c}){let[d,o]=i(!1),[h,u]=(0,n.useState)(!1),p=function(e,{getInitialValueInEffect:a}={getInitialValueInEffect:!0}){let[t,i]=(0,n.useState)(a?void 0:!!("u">typeof window&&"matchMedia"in window)&&window.matchMedia(e).matches);return(0,n.useEffect)(()=>{try{if("matchMedia"in window){let a=window.matchMedia(e);i(a.matches);let n=e=>i(e.matches);return a.addEventListener("change",n),()=>{a.removeEventListener("change",n)}}}catch(e){return}},[e]),t||!1}("(max-width: 768px)"),m=()=>{p?o.open():u(!1)};return(0,a.jsx)(s.Provider,{value:{closeSidebar:o.close,openSidebar:m,isSidebarVisible:p?d:!h},children:(0,a.jsxs)("div",{className:"app-layout",children:[(0,a.jsx)("div",{className:`sidebar-overlay ${d?"visible":""}`,onClick:()=>o.close()}),(0,a.jsx)("div",{className:`sidebar ${d?"open":""} ${h?"collapsed":""}`,children:e({closeSidebar:o.close,openSidebar:m})}),(0,a.jsxs)("div",{className:"main-content",children:[(0,a.jsxs)("header",{className:"app-header",children:[(0,a.jsxs)("div",{className:"header-left",children:[(0,a.jsx)("button",{onClick:()=>{p?o.toggle():u(!h)},className:"btn btn-icon sidebar-toggle-btn","aria-label":p?"打开菜单":h?"展开侧边栏":"收起侧边栏",children:(0,a.jsx)(t,{size:16})}),l]}),(0,a.jsx)("div",{className:"header-right",children:r})]}),c]})]})})},"useAppShell",0,function(){let e=(0,n.useContext)(s);if(!e)throw Error("useAppShell must be used within AppShell");return e}],59665)},87884,e=>{"use strict";var a=e.i(26913);e.s(["channelApi",0,{getChannels(e={}){let n=new URLSearchParams;e.type&&n.set("type",e.type),e.excludeType&&n.set("excludeType",e.excludeType);let t=n.toString();return a.api.get(t?`/api/channels?${t}`:"/api/channels").json()},createChannel:(e,n="personal",t={})=>a.api.post("/api/channels",{json:{name:e,type:n,...t}}).json(),leaveChannel:e=>a.api.delete(`/api/channels/${encodeURIComponent(e)}`).json(),getChannelMessages:(e,n=100,t=0)=>a.api.get(`/api/channels/${encodeURIComponent(e)}/messages?limit=${n}&offset=${t}`).json(),sendChannelMessage:({channelName:e,content:n,author:t,authorName:i,avatar:s,attachment:l})=>a.api.post(`/api/channels/${encodeURIComponent(e)}/messages`,{json:l?{content:n,author:t,authorName:i,avatar:s,attachment:l}:{content:n,author:t,authorName:i,avatar:s}}).json(),getChannelMembers:e=>a.api.get(`/api/channels/${encodeURIComponent(e)}/members`).json(),getChannelPeers:e=>a.api.get(`/api/channels/${encodeURIComponent(e)}/peers`).json(),setChannelRemark:(e,n)=>a.api.put(`/api/channels/${encodeURIComponent(e)}/remark`,{json:{remark:n}}).json(),getFileDownloadUrl:e=>(0,a.getApiUrl)(`/api/files/${e}/download`)}])},99847,e=>{"use strict";let a=(0,e.i(56420).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,a],99847)},58925,e=>{"use strict";let a=(0,e.i(56420).default)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);e.s(["KeyRound",0,a],58925)},90165,e=>{"use strict";var a=e.i(47167),n=e.i(18050),t=e.i(71645),i=e.i(18566),s=e.i(58925),l=e.i(89664),r=e.i(99847),c=e.i(35965),d=e.i(96699),o=e.i(11241),h=e.i(59665),u=e.i(3593),p=e.i(71192),m=e.i(11470),j=e.i(26913),f=e.i(87884);let y=[{name:"node_url",required:!1,description:"Web 端未连接后端时,用于连接远程节点。"},{name:"node_invite",required:!1,description:"配合 node_url 作为远程节点邀请码。"},{name:"uid",required:!0,description:"作为用户名,密码为空,用于生成账户并自动登录。"},{name:"avatar",required:!1,description:"覆盖默认头像。"},{name:"name",required:!1,description:"覆盖默认昵称。"},{name:"locale",required:!1,description:"预留给多语言切换,当前暂不执行。"},{name:"channels[].id",required:!0,description:"频道 ID,用于自动加入频道。"},{name:"channels[].name",required:!1,description:"频道备注,不作为频道 ID。"}],x=a.default.env.NEXT_PUBLIC_CHAT_JOIN_API_BASE||"https://api.most.box";function v(e){try{return JSON.parse(e)}catch{return null}}function k(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function b(e){return"string"==typeof e?e.trim():""}function g(){let e=(0,i.useSearchParams)(),a=(0,u.useAppStore)(e=>e.isDarkMode),g=(0,u.useAppStore)(e=>e.setIsDarkMode),C=(0,u.useAppStore)(e=>e.hasBackend),N=(0,p.useUserStore)(e=>e.setUserIdentity),[w,S]=(0,t.useState)(""),[A,M]=(0,t.useState)(""),[_,R]=(0,t.useState)(!0),[$,I]=(0,t.useState)(""),U=(0,t.useRef)("");return(0,t.useEffect)(()=>{let a=e.get("token"),n=e.get("pub");if(!a){M("缺少 token 参数"),R(!1);return}if(!n){M("缺少 pub 参数"),R(!1);return}if(null===C)return void I("正在检测后端连接...");let t=`${a}:${n}`;async function i(e){var a;if(!C&&e.node_url){if(I("正在连接远程节点..."),!(await (0,j.checkBackendConnectionTarget)({url:e.node_url,invite:e.node_invite||""})).ok)throw Error("远程节点连接失败");(0,j.configureBackend)({url:e.node_url,invite:e.node_invite||""}),u.useAppStore.setState({hasBackend:!0})}else if(!C)throw Error("未连接后端,邀请中也没有 node_url");I("正在登录邀请账号...");let n=(0,m.createLoginIdentity)(e.uid,"");for(let a of(N({...n,displayName:e.name||n.displayName,avatar:e.avatar}),I("正在加入频道..."),e.channels)){await f.channelApi.createChannel(a.id,"public",{displayName:e.name||n.displayName,avatar:e.avatar});let t=String(a.name||"").trim().slice(0,50);t&&await f.channelApi.setChannelRemark(a.id,t)}let t=e.channels[0];I("加入成功,正在打开频道..."),window.location.href=(a=t.id,`/chat?channel=${encodeURIComponent(a)}`)}async function s(){try{I("正在解密邀请...");let e=await fetch(`${x}/api/chat.join.decrypt`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:a,pub:n})}),t=await e.text(),s=v(t);if(e.ok){S(null===s?t:JSON.stringify(s,null,2));let e=function(e){let a="string"!=typeof e?e:v(e);if(!k(a))return null;let n=b(a.uid),t=(Array.isArray(a.channels)?a.channels:[]).filter(k).map(e=>({id:b(e.id),name:b(e.name)||void 0})).filter(e=>e.id);return n&&0!==t.length?{node_url:b(a.node_url)||void 0,node_invite:b(a.node_invite)||void 0,locale:b(a.locale)||void 0,uid:n,avatar:b(a.avatar)||void 0,name:b(a.name)||void 0,channels:t}:null}(s);if(!e)return void M("邀请内容缺少 uid 或 channels[].id");await i(e)}else M(function(e,a){if(a&&"object"==typeof a&&"error"in a){let e=a.error;if("string"==typeof e)return e}return e||"解密失败"}(t,s))}catch(e){M(`请求出错: ${e instanceof Error?e.message:String(e)}`)}finally{R(!1)}}U.current!==t&&(U.current=t,s())},[C,e,N]),(0,n.jsx)(h.default,{sidebar:()=>(0,n.jsxs)("div",{className:"sidebar-header sidebar-header-link",onClick:()=>window.location.href="/chat",children:[(0,n.jsx)(o.ArrowLeft,{size:18}),(0,n.jsx)("h1",{children:"MOST PEOPLE"})]}),headerTitle:(0,n.jsx)("h2",{className:"header-title",children:"加入频道"}),headerRight:(0,n.jsx)("button",{className:"btn btn-icon",onClick:()=>g(!a),title:"切换主题",children:a?(0,n.jsx)(c.Sun,{size:16}):(0,n.jsx)(d.Moon,{size:16})}),children:(0,n.jsx)("div",{className:"chat-join-container",children:(0,n.jsxs)("div",{className:"chat-join-panel",children:[_?(0,n.jsxs)("div",{className:"chat-join-loading",children:[(0,n.jsx)(s.KeyRound,{size:32}),(0,n.jsx)("p",{children:$||"正在解密..."})]}):A?(0,n.jsxs)("div",{className:"chat-join-error",children:[(0,n.jsx)(r.AlertCircle,{size:32}),(0,n.jsx)("p",{children:A}),$&&(0,n.jsx)("p",{className:"chat-join-status",children:$}),w&&(0,n.jsx)("pre",{className:"chat-join-result",children:w})]}):(0,n.jsxs)("div",{className:"chat-join-success",children:[(0,n.jsx)(l.Check,{size:32}),(0,n.jsx)("p",{children:$||"解密成功"}),(0,n.jsx)("pre",{className:"chat-join-result",children:w})]}),(0,n.jsxs)("section",{className:"chat-join-spec","aria-labelledby":"chat-join-spec-title",children:[(0,n.jsxs)("div",{className:"chat-join-helper-title",children:[(0,n.jsx)(s.KeyRound,{size:18}),(0,n.jsx)("h3",{id:"chat-join-spec-title",children:"支持字段"})]}),(0,n.jsx)("div",{className:"chat-join-field-list",children:y.map(e=>(0,n.jsxs)("div",{className:"chat-join-field",children:[(0,n.jsxs)("div",{className:"chat-join-field-meta",children:[(0,n.jsx)("code",{className:"chat-join-field-name",children:e.name}),(0,n.jsx)("span",{children:e.required?"必填":"可选"})]}),(0,n.jsx)("p",{children:e.description})]},e.name))})]}),(0,n.jsxs)("section",{className:"chat-join-helper","aria-labelledby":"ea-test-title",children:[(0,n.jsxs)("div",{className:"chat-join-helper-title",children:[(0,n.jsx)(s.KeyRound,{size:18}),(0,n.jsx)("h3",{id:"ea-test-title",children:"测试公钥"})]}),(0,n.jsx)("code",{className:"ui-code-box chat-join-public-key",children:"0x955fe80bdb8312165471fcacd6a8f83df88a770dda6f38657ca4e62ec28d5b54"}),(0,n.jsx)("a",{className:"btn",href:"/web3/#EA",target:"_blank",children:"前往 Web3 工具箱"})]})]})})})}e.s(["default",0,function(){return(0,n.jsx)(t.Suspense,{children:(0,n.jsx)(g,{})})}],90165)}]);
@@ -0,0 +1,5 @@
1
+ .milkdown{--crepe-color-diff-added:#22c55e;--crepe-color-diff-removed:#ef4444;--crepe-color-diff-added-bg:color-mix(in srgb, var(--crepe-color-diff-added), transparent 88%);--crepe-color-diff-added-text:color-mix(in srgb, var(--crepe-color-diff-added), var(--crepe-color-on-background) 40%);--crepe-color-diff-removed-bg:color-mix(in srgb, var(--crepe-color-diff-removed), transparent 88%);--crepe-color-diff-removed-text:color-mix(in srgb, var(--crepe-color-diff-removed), var(--crepe-color-on-background) 40%)}.milkdown .milkdown-diff-removed{background-color:var(--crepe-color-diff-removed-bg);color:var(--crepe-color-diff-removed-text);text-decoration:line-through}.milkdown .milkdown-diff-removed-block{opacity:.45;outline-offset:2px;background-color:var(--crepe-color-diff-removed-bg);border-radius:4px;position:relative;outline:2px dashed var(--crepe-color-diff-removed)!important}.milkdown .milkdown-diff-added{background-color:var(--crepe-color-diff-added-bg);color:var(--crepe-color-diff-added-text);border-radius:2px;padding:0 2px}.milkdown .milkdown-diff-added-block{background-color:var(--crepe-color-diff-added-bg);border-left:3px solid var(--crepe-color-diff-added);border-radius:4px;margin:8px 0;padding:8px 12px;display:block}.milkdown .milkdown-diff-added-block h1,.milkdown .milkdown-diff-added-block h2,.milkdown .milkdown-diff-added-block h3,.milkdown .milkdown-diff-added-block h4,.milkdown .milkdown-diff-added-block h5,.milkdown .milkdown-diff-added-block h6,.milkdown .milkdown-diff-added-block p{color:var(--crepe-color-diff-added-text);margin:4px 0}.milkdown .milkdown-diff-added-block ul,.milkdown .milkdown-diff-added-block ol{color:var(--crepe-color-diff-added-text);margin:4px 0;padding-left:20px}.milkdown .milkdown-diff-added-block li{margin:2px 0}.milkdown .milkdown-diff-added-block table{border-collapse:collapse;width:100%;margin:4px 0}.milkdown .milkdown-diff-added-block th,.milkdown .milkdown-diff-added-block td{border:1px solid color-mix(in srgb, var(--crepe-color-diff-added), transparent 50%);text-align:left;padding:6px 12px}.milkdown .milkdown-diff-added-block th{font-weight:600}.milkdown .milkdown-diff-added-block img{border-radius:4px;max-width:100%}.milkdown .milkdown-diff-added-block pre,.milkdown .milkdown-diff-added-block code{background:color-mix(in srgb, var(--crepe-color-diff-added), transparent 94%);font-family:var(--crepe-font-code);white-space:pre;border-radius:4px;padding:8px 12px;font-size:13px;display:block;overflow-x:auto}.milkdown .milkdown-diff-controls{vertical-align:middle;white-space:nowrap;gap:3px;margin:0 4px;display:inline-flex}.milkdown .milkdown-diff-controls button{font-family:var(--crepe-font-default);cursor:pointer;border:1px solid;border-radius:3px;padding:2px 6px;font-size:11px;font-weight:500;line-height:1}.milkdown .milkdown-diff-controls-block{gap:4px;margin:4px 0;display:flex}.milkdown .milkdown-diff-accept{background-color:color-mix(in srgb, var(--crepe-color-diff-added), var(--crepe-color-background) 85%);color:var(--crepe-color-diff-added-text);border-color:color-mix(in srgb, var(--crepe-color-diff-added), transparent 50%)}.milkdown .milkdown-diff-accept:hover{background-color:color-mix(in srgb, var(--crepe-color-diff-added), var(--crepe-color-background) 75%)}.milkdown .milkdown-diff-reject{background-color:color-mix(in srgb, var(--crepe-color-diff-removed), var(--crepe-color-background) 85%);color:var(--crepe-color-diff-removed-text);border-color:color-mix(in srgb, var(--crepe-color-diff-removed), transparent 50%)}.milkdown .milkdown-diff-reject:hover{background-color:color-mix(in srgb, var(--crepe-color-diff-removed), var(--crepe-color-background) 75%)}
2
+ .milkdown .milkdown-ai-instruction{z-index:10;position:absolute}.milkdown .milkdown-ai-instruction[data-show=false]{display:none}.milkdown .milkdown-ai-instruction>.ai-instruction{background:var(--crepe-color-surface);width:360px;box-shadow:var(--crepe-shadow-2);font-family:var(--crepe-font-default);color:var(--crepe-color-on-background);border-radius:12px;font-size:14px;overflow:hidden}.milkdown .ai-instruction-input{background:var(--crepe-color-background);border:1px solid color-mix(in srgb, var(--crepe-color-primary) 35%, transparent);border-radius:999px;align-items:center;gap:8px;margin:8px;padding:4px 4px 4px 12px;display:flex}.milkdown .ai-instruction-input-prefix{color:var(--crepe-color-primary);flex-shrink:0;align-items:center;display:inline-flex}.milkdown .ai-instruction-input-prefix svg{width:18px;height:18px;color:var(--crepe-color-primary);fill:var(--crepe-color-primary)}.milkdown .ai-instruction-input-field{min-width:0;color:var(--crepe-color-on-background);background:0 0;border:none;outline:none;flex:1;padding:4px 0;font-family:inherit;font-size:14px;line-height:20px}.milkdown .ai-instruction-input-field::placeholder{color:var(--crepe-color-outline)}.milkdown .ai-instruction-submit{background:var(--crepe-color-primary);width:28px;height:28px;color:var(--crepe-color-on-inverse);cursor:pointer;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.milkdown .ai-instruction-submit svg{width:16px;height:16px;color:var(--crepe-color-on-inverse);fill:var(--crepe-color-on-inverse)}.milkdown .ai-instruction-submit:hover:not(:disabled){background:color-mix(in srgb, var(--crepe-color-primary) 85%, white)}.milkdown .ai-instruction-submit:disabled{opacity:.4;cursor:not-allowed}.milkdown .ai-instruction-list{max-height:320px;padding-bottom:6px;overflow-y:auto}.milkdown .ai-instruction-back{appearance:none;text-align:left;cursor:pointer;width:100%;color:var(--crepe-color-outline);-webkit-user-select:none;user-select:none;background:0 0;border:none;align-items:center;gap:6px;padding:6px 12px 4px;font-family:inherit;font-size:12px;font-weight:500;display:flex}.milkdown .ai-instruction-back:hover{color:var(--crepe-color-on-background)}.milkdown .ai-instruction-back-icon{display:inline-flex}.milkdown .ai-instruction-back-icon svg{stroke:currentColor;width:16px;height:16px}.milkdown .ai-instruction-section{flex-direction:column;display:flex}.milkdown .ai-instruction-section-header{letter-spacing:.08em;color:var(--crepe-color-outline);text-transform:uppercase;-webkit-user-select:none;user-select:none;padding:6px 16px 4px;font-size:11px;font-weight:600}.milkdown .ai-instruction-item{cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--crepe-color-on-background);align-items:center;gap:12px;padding:8px 16px;display:flex}.milkdown .ai-instruction-item.active{background:var(--crepe-color-hover)}.milkdown .ai-instruction-item-icon{flex-shrink:0;justify-content:center;align-items:center;width:20px;height:20px;display:inline-flex}.milkdown .ai-instruction-item-icon svg{width:18px;height:18px;color:var(--crepe-color-on-surface-variant);fill:var(--crepe-color-on-surface-variant);stroke:var(--crepe-color-on-surface-variant)}.milkdown .ai-instruction-item-label{text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:14px;line-height:20px;overflow:hidden}.milkdown .ai-instruction-item-label mark{background:var(--crepe-color-secondary);color:inherit;border-radius:2px;padding:0 1px}.milkdown .ai-instruction-item-arrow{color:var(--crepe-color-outline);flex-shrink:0;display:inline-flex}.milkdown .ai-instruction-item-arrow svg{stroke:currentColor;width:14px;height:14px}.milkdown .ai-instruction-item-prompt .ai-instruction-item-label{color:var(--crepe-color-primary)}.milkdown .ai-instruction-item-prompt .ai-instruction-item-icon svg{color:var(--crepe-color-primary);fill:var(--crepe-color-primary)}.milkdown .ai-instruction-item-quote{font-weight:500}.milkdown .ai-instruction-item-shortcut{background:var(--crepe-color-surface-low);min-width:24px;height:20px;color:var(--crepe-color-outline);border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;padding:0 4px;display:inline-flex}.milkdown .ai-instruction-item-shortcut svg{width:14px;height:14px;color:var(--crepe-color-outline);fill:var(--crepe-color-outline)}.milkdown .milkdown-ai-streaming-indicator{border:1px solid color-mix(in srgb, var(--crepe-color-primary) 20%, transparent);background:var(--crepe-color-surface);vertical-align:middle;white-space:nowrap;-webkit-user-select:none;user-select:none;font-family:var(--crepe-font-default);border-radius:999px;align-items:center;gap:8px;margin:4px 0;padding:4px 6px 4px 12px;display:inline-flex}.milkdown .milkdown-ai-streaming-spinner{border:1.5px solid color-mix(in srgb, var(--crepe-color-primary) 25%, transparent);border-top-color:var(--crepe-color-primary);will-change:transform;border-radius:50%;flex-shrink:0;width:14px;height:14px}.milkdown .milkdown-ai-streaming-label{color:var(--crepe-color-on-background);font-size:13px;line-height:18px}.milkdown .milkdown-ai-streaming-esc{font-family:var(--crepe-font-code,ui-monospace, monospace);background:var(--crepe-color-surface-low);color:var(--crepe-color-outline);border-radius:999px;padding:4px 8px;font-size:11px;line-height:1}.milkdown .milkdown-ai-diff-actions{z-index:11;background:var(--crepe-color-surface);border:1px solid color-mix(in srgb, var(--crepe-color-primary) 18%, transparent);box-shadow:var(--crepe-shadow-2);font-family:var(--crepe-font-default);-webkit-user-select:none;user-select:none;border-radius:999px;align-items:center;gap:4px;padding:6px;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.milkdown .milkdown-ai-diff-actions[data-show=false]{display:none}.milkdown .milkdown-ai-diff-actions-btn{color:var(--crepe-color-on-background);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:999px;align-items:center;gap:6px;padding:8px 14px;font-family:inherit;font-size:13px;font-weight:500;line-height:1;display:inline-flex}.milkdown .milkdown-ai-diff-actions-btn:hover{background:var(--crepe-color-hover)}.milkdown .milkdown-ai-diff-actions-btn:disabled{opacity:.4;cursor:not-allowed}.milkdown .milkdown-ai-diff-actions-btn:disabled:hover{background:0 0}.milkdown .milkdown-ai-diff-actions-icon{justify-content:center;align-items:center;width:18px;height:18px;display:inline-flex}.milkdown .milkdown-ai-diff-actions-icon svg{color:currentColor;fill:currentColor;width:16px;height:16px}.milkdown .milkdown-ai-diff-actions-btn-retry{color:var(--crepe-color-on-surface-variant)}.milkdown .milkdown-ai-diff-actions-btn-reject{color:var(--crepe-color-diff-removed-text,#ba1a1a);background:color-mix(in srgb, var(--crepe-color-diff-removed,#ef4444) 8%, transparent)}.milkdown .milkdown-ai-diff-actions-btn-reject:hover{background:color-mix(in srgb, var(--crepe-color-diff-removed,#ef4444) 16%, transparent)}.milkdown .milkdown-ai-diff-actions-btn-accept{color:var(--crepe-color-diff-added-text,#166534);background:color-mix(in srgb, var(--crepe-color-diff-added,#22c55e) 12%, transparent)}.milkdown .milkdown-ai-diff-actions-btn-accept:hover{background:color-mix(in srgb, var(--crepe-color-diff-added,#22c55e) 22%, transparent)}.milkdown .milkdown-ai-diff-actions-shortcut{background:color-mix(in srgb, var(--crepe-color-diff-added,#22c55e) 14%, transparent);font-family:var(--crepe-font-code,ui-monospace, monospace);color:inherit;border-radius:4px;align-items:center;gap:2px;margin-left:4px;padding:3px 6px;font-size:11px;display:inline-flex}.milkdown .milkdown-ai-diff-actions-shortcut-icon{display:inline-flex}.milkdown .milkdown-ai-diff-actions-shortcut-icon svg{color:currentColor;fill:currentColor;width:12px;height:12px}
3
+
4
+ .milkdown{--crepe-color-background:#fff;--crepe-color-on-background:#000;--crepe-color-surface:#f7f7f7;--crepe-color-surface-low:#ededed;--crepe-color-on-surface:#1c1c1c;--crepe-color-on-surface-variant:#4d4d4d;--crepe-color-outline:#a8a8a8;--crepe-color-primary:#333;--crepe-color-secondary:#cfcfcf;--crepe-color-on-secondary:#000;--crepe-color-inverse:#f0f0f0;--crepe-color-on-inverse:#1a1a1a;--crepe-color-inline-code:#ba1a1a;--crepe-color-error:#ba1a1a;--crepe-color-hover:#e0e0e0;--crepe-color-selected:#d5d5d5;--crepe-color-inline-area:#cacaca;--crepe-font-title:"Noto Serif", Cambria, "Times New Roman", Times, serif;--crepe-font-default:"Noto Sans", Arial, Helvetica, sans-serif;--crepe-font-code:"Space Mono", Fira Code, Menlo, Monaco, "Courier New", Courier, monospace;--crepe-shadow-1:0px 1px 3px 1px #00000026, 0px 1px 2px 0px #0000004d;--crepe-shadow-2:0px 2px 6px 2px #00000026, 0px 1px 2px 0px #0000004d}
5
+ .note-page{height:calc(100dvh - 64px);min-height:0;padding:16px;overflow:hidden}.note-theme-wrap,.note-header-actions{align-items:center;gap:8px;min-width:0;display:flex}.note-header-title{align-items:baseline;gap:10px;min-width:0;display:flex}.note-header-title span{color:var(--text-secondary);white-space:nowrap;font-size:12px}.note-more{flex:none;position:relative}.note-more-trigger{position:relative}.note-more-menu{z-index:50;border:1px solid var(--glass-border);background:var(--glass-bg-solid);width:280px;max-width:calc(100vw - 24px);box-shadow:var(--shadow-lg);border-radius:8px;flex-direction:column;gap:4px;padding:8px;display:flex;position:absolute;top:calc(100% + 8px);right:0}.note-sync-status,.note-more-item{border-radius:8px;align-items:center;gap:10px;min-width:0;display:flex}.note-sync-status{padding:10px}.note-sync-status.conflict{color:var(--warning)}.note-sync-status-icon{border-radius:8px;flex:none;width:30px;height:30px}.note-sync-status span:last-child{flex-direction:column;gap:2px;min-width:0;display:flex}.note-sync-status strong,.note-sync-status small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.note-sync-status strong{color:var(--text-primary);font-size:13px}.note-sync-status small{color:inherit;font-size:12px}.note-more-item{width:100%;min-height:36px;color:var(--text-secondary);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:8px 10px;font-size:13px;font-weight:600}.note-more-item:hover:not(:disabled){background:var(--glass-bg-subtle);color:var(--text-primary)}.note-more-item:disabled{cursor:not-allowed;opacity:.45}.note-more-separator{background:var(--glass-border);height:1px;margin:4px 2px}.app-layout:has(.note-browser-page) .sidebar{width:320px;overflow:hidden}.app-layout:has(.note-browser-page) .sidebar.collapsed{width:0}.note-workspace{border:1px solid var(--glass-border);background:var(--glass-bg-heavy);height:100%;box-shadow:var(--shadow-sm);border-radius:8px;display:flex;overflow:hidden}.note-edit-workspace{border:1px solid var(--glass-border);background:var(--glass-bg-heavy);height:100%;min-height:0;box-shadow:var(--shadow-sm);border-radius:8px;overflow:hidden}.note-list-panel,.note-editor-panel{background:var(--glass-bg-solid);min-width:0;min-height:0}.note-list-panel{border-right:1px solid var(--glass-border)}.note-sidebar-list{background:0 0;border-right:0;flex:1;min-height:0;padding:12px 8px}.note-sidebar-list .note-list-header{align-items:flex-start;padding:0 4px}.note-current-location{flex-direction:column;gap:4px;min-width:0;display:flex}.note-sidebar-list .note-search{height:36px;margin-top:12px}.note-sidebar-list .note-create-btn{justify-content:center;margin-top:10px;display:flex}.note-sidebar-list .note-breadcrumbs{min-height:22px;margin:0}.note-sidebar-list .note-list{margin-top:12px;padding-bottom:6px}.note-sidebar-list .note-list-item-main{grid-template-columns:30px minmax(0,1fr) auto;padding:8px 6px}.note-sidebar-list .note-list-icon{width:30px;height:30px}.note-sidebar-list .note-list-date{display:none}.note-sidebar-list .note-empty-state{min-height:180px;padding:16px 8px}.note-list-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.note-count{color:var(--text-muted);flex-shrink:0;font-size:12px;font-weight:600}.note-list-panel{flex-direction:column;padding:16px 12px;display:flex;overflow:hidden}.note-list-header{margin-bottom:12px}.note-list-header h3{max-width:220px;color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;font-size:18px;font-weight:700;overflow:hidden}.note-kicker{color:var(--text-muted);letter-spacing:0;margin-bottom:3px;font-size:11px;font-weight:700;display:block}.note-search{border:1px solid var(--glass-border);background:var(--glass-bg-subtle);height:38px;color:var(--text-secondary);border-radius:8px;flex:none;align-items:center;gap:8px;padding:0 10px;display:flex}.note-search .input{background:0 0;border:0;min-width:0;padding-left:0}.note-search .input:focus{box-shadow:none}.note-breadcrumbs{min-height:34px;color:var(--text-muted);flex-wrap:wrap;flex:none;align-items:center;gap:6px;margin:8px 0;font-size:12px;display:flex}.note-breadcrumbs button{color:var(--text-secondary);cursor:pointer;font:inherit;white-space:nowrap;background:0 0;border:0;flex:none}.note-breadcrumbs button:hover{color:var(--accent)}.note-list{flex-direction:column;gap:4px;min-height:0;display:flex;overflow:auto}.note-list-item{border-radius:8px}.note-list-item-main{padding:9px 8px}.note-list-icon{border-radius:8px}.note-list-date{max-width:58px}.note-editor-panel{flex-direction:column;flex:1;display:flex;overflow:hidden}.note-editor-panel-standalone{height:100%}.note-editor-panel-header{border-bottom:1px solid var(--glass-border);background:var(--glass-bg-heavy);flex:none;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px 14px;display:flex}.note-editor-title-area{flex:1;min-width:0}.note-editor-title-area h3{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;font-size:22px;font-weight:750;line-height:1.25;overflow:hidden}.note-title-input{border:1px solid var(--glass-border);background:var(--glass-bg-subtle);width:100%;max-width:min(720px,100%);color:var(--text-primary);font-family:var(--font-sans);border-radius:8px;outline:none;padding:7px 10px;font-size:22px;font-weight:750;line-height:1.25}.note-title-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.note-title-input::placeholder{color:var(--text-muted)}.note-editor-info{color:var(--text-secondary);align-items:center;gap:14px;margin-top:8px;padding:4px 10px;font-size:12px;display:flex;overflow-x:auto}.note-editor-info span{background:var(--glass-bg-subtle);color:inherit;font:inherit;border:0;border-radius:8px;flex:none}.note-editor-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.note-editor-action-danger{background:var(--danger);color:#fff;border-color:#0000}.note-editor-action-danger:hover:not(:disabled){background:var(--danger);color:#fff;border-color:#0000;box-shadow:0 4px 16px #ff3b304d}.note-editor-frame{background:var(--bg-secondary);flex:1;min-height:0}[data-theme=dark] .note-editor-frame.editing{background:#121214}.note-editor-frame.reading{background:var(--glass-bg-solid)}.milkdown-editor{min-height:100%}.milkdown-editor .milkdown{--crepe-font-default:var(--font-sans);--crepe-font-code:var(--font-mono);height:100%;color:var(--text-primary);background:0 0}[data-theme=dark] .milkdown-editor .milkdown{--crepe-color-background:var(--bg-secondary);--crepe-color-on-background:#d8d8dd;--crepe-color-surface:#151518;--crepe-color-surface-low:#202024;--crepe-color-on-surface:#d8d8dd;--crepe-color-on-surface-variant:var(--text-secondary);--crepe-color-outline:#ffffff2e;--crepe-color-primary:#c2d0ff;--crepe-color-secondary:#ffffff1f;--crepe-color-on-secondary:#d8d8dd;--crepe-color-inverse:#f5f5f7;--crepe-color-on-inverse:#1d1d1f;--crepe-color-inline-code:#ffb4ab;--crepe-color-error:#ffb4ab;--crepe-color-hover:#ffffff14;--crepe-color-selected:#5e6ad23d;--crepe-color-inline-area:#ffffff14}.milkdown-editor .ProseMirror{width:min(760px,100%);color:var(--text-primary);background:0 0;outline:none;margin:0 auto;padding:42px 36px 72px;font-size:15px;line-height:1.75}[data-theme=dark] .note-editor-frame.reading .milkdown-editor .ProseMirror{color:#d8d8dd}[data-theme=dark] .note-editor-frame.reading .milkdown-editor .ProseMirror h1,[data-theme=dark] .note-editor-frame.reading .milkdown-editor .ProseMirror h2,[data-theme=dark] .note-editor-frame.reading .milkdown-editor .ProseMirror h3,[data-theme=dark] .note-editor-frame.reading .milkdown-editor .ProseMirror strong{color:#ececf0}.milkdown-editor .ProseMirror a{color:#4f5bd5;text-underline-offset:.18em;font-weight:400;text-decoration:underline;text-decoration-thickness:1px}[data-theme=dark] .milkdown-editor .ProseMirror a{color:#9bb4ff}.milkdown-editor .ProseMirror a:hover{color:var(--accent-hover)}[data-theme=dark] .milkdown-editor .ProseMirror a:hover{color:#c2d0ff}.milkdown-editor .ProseMirror h1,.milkdown-editor .ProseMirror h2,.milkdown-editor .ProseMirror h3{line-height:1.25}.milkdown-editor .milkdown-code-block{border:1px solid var(--glass-border);border-radius:8px;overflow:hidden}[data-theme=dark] .milkdown-editor .milkdown-code-block,[data-theme=dark] .milkdown-editor .milkdown-code-block .cm-editor,[data-theme=dark] .milkdown-editor .milkdown-code-block .cm-gutters,[data-theme=dark] .milkdown-editor .milkdown-code-block .cm-panel{background:var(--crepe-color-surface);color:var(--text-primary)}[data-theme=dark] .milkdown-editor .milkdown-code-block .cm-content,[data-theme=dark] .milkdown-editor .milkdown-code-block .cm-line,[data-theme=dark] .milkdown-editor .milkdown-code-block .milkdown-code-block-placeholder,[data-theme=dark] .milkdown-editor .milkdown-code-block .preview-panel .preview,[data-theme=dark] .milkdown-editor .milkdown-code-block .preview-panel .preview .katex,[data-theme=dark] .milkdown-editor span[data-type=math_inline],[data-theme=dark] .milkdown-editor .katex{color:var(--text-primary)}.milkdown-editor .crepe-placeholder{color:var(--text-muted)}.milkdown-editor .crepe-placeholder:before{color:var(--text-secondary)}.milkdown-editor .link-preview,.milkdown-editor .milkdown-link-preview{background:var(--glass-bg-heavy);color:var(--text-primary)}.note-empty-state,.note-editor-loading,.note-editor-empty{min-height:260px;padding:24px}.note-editor-empty{background:var(--glass-bg-solid);flex:1}.note-editor-empty-icon{width:56px;height:56px;color:var(--accent);background:var(--accent-soft);border-radius:8px}.note-empty-state.editor-error{flex:1}.note-move-modal{flex-direction:column;gap:12px;display:flex}.modal-glass:has(.note-move-modal){background:var(--bg-secondary);-webkit-backdrop-filter:none;border-color:var(--glass-border-strong)}[data-theme=dark] .modal-glass:has(.note-move-modal){background:#17171a;box-shadow:0 24px 72px #0000009e}.note-move-target{border:1px solid var(--glass-border);border-radius:var(--radius-sm);background:var(--glass-bg-subtle);gap:4px;padding:10px 12px;display:grid}.note-move-target span,.note-move-folder-item small,.note-move-destination{color:var(--text-secondary);font-size:12px}.note-move-target strong{min-width:0;color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.note-move-path{min-height:30px;color:var(--text-muted);flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;display:flex}.note-move-path button{color:var(--accent);cursor:pointer;font:inherit;background:0 0;border:0;flex:none}.note-move-folder-list{border:1px solid var(--glass-border);border-radius:var(--radius-sm);background:var(--glass-bg-subtle);gap:6px;max-height:220px;padding:4px;display:grid;overflow:auto}.note-move-folder-item{border-radius:var(--radius-sm);width:100%;color:var(--text-primary);cursor:pointer;text-align:left;transition:all var(--transition-fast);background:0 0;border:1px solid #0000;grid-template-columns:16px 16px minmax(0,1fr);align-items:center;gap:2px 8px;padding:8px 10px;display:grid}.note-move-folder-item:hover,.note-move-folder-item.selected{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.note-move-expander,.note-move-folder-icon{align-self:center}.note-move-folder-icon{grid-row:span 2}.note-move-folder-spacer{width:16px;height:16px}.note-move-folder-item span:not(.note-move-folder-spacer),.note-move-folder-item small{text-overflow:ellipsis;white-space:nowrap;grid-column:3;min-width:0;overflow:hidden}.note-move-depth-1{padding-left:22px}.note-move-depth-2{padding-left:34px}.note-move-depth-3{padding-left:46px}.note-move-depth-4{padding-left:58px}.note-move-empty{color:var(--text-secondary);text-align:center;padding:12px;font-size:12px}.note-move-destination{border-radius:var(--radius-sm);background:var(--glass-bg-subtle);padding:8px 10px}@media (max-width:1180px){.note-list-date{display:none}}@media (max-width:900px){.note-page{overflow:auto}.note-workspace,.note-edit-workspace{height:auto;min-height:100%}.note-list-panel{border-right:0;border-bottom:1px solid var(--glass-border)}.note-sidebar-list{border-bottom:0}.note-editor-panel{min-height:70dvh}}@media (max-width:768px){.note-page{height:calc(100dvh - 56px);padding:10px}.app-layout:has(.note-browser-page) .sidebar{width:min(320px,100vw - 32px)}.note-page.has-editor .note-list-panel{display:none}.note-theme-wrap,.note-header-actions{gap:6px}.note-header-title span{display:none}.note-header-actions .btn{padding:9px 10px}.note-more-menu{right:-4px}.note-editor-panel-header{flex-direction:column;padding:14px}.note-editor-actions{justify-content:flex-start;width:100%}.note-list-item{grid-template-columns:minmax(0,1fr)}.milkdown-editor .ProseMirror{padding:28px 18px 56px}}
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89664,e=>{"use strict";let a=(0,e.i(56420).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,a],89664)},8734,e=>{"use strict";let a=(0,e.i(56420).default)("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"}]]);e.s(["Copy",0,a],8734)},26091,e=>{"use strict";let a=(0,e.i(56420).default)("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"}]]);e.s(["FileText",0,a],26091)},73474,e=>{"use strict";let a=(0,e.i(56420).default)("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"}]]);e.s(["Trash2",0,a],73474)},62368,e=>{"use strict";let a=(0,e.i(56420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,a],62368)},66595,e=>{"use strict";let a=(0,e.i(56420).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,a],66595)},51921,e=>{"use strict";let a=(0,e.i(56420).default)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);e.s(["Music",0,a],51921)},12796,e=>{"use strict";let a=(0,e.i(56420).default)("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);e.s(["Loader",0,a],12796)},80796,e=>{"use strict";let a=(0,e.i(56420).default)("film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);e.s(["Film",0,a],80796)},15170,e=>{"use strict";let a=(0,e.i(56420).default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);e.s(["Image",0,a],15170)},6933,e=>{"use strict";e.s(["getFileSubtype",0,function(e){let a=String(e||"").split(".").pop()?.toLowerCase()||"";return["jpg","jpeg","png","gif","webp","svg","bmp","ico","tiff","heic","heif"].includes(a)?"image":["mp4","webm","mov","avi","mkv","flv","wmv","m4v","mpeg","3gp"].includes(a)?"video":["mp3","wav","ogg","flac","aac","m4a","wma","opus"].includes(a)?"audio":["txt","md","js","ts","jsx","tsx","css","scss","less","json","xml","html","htm","yaml","yml","toml","ini","cfg","conf","log","sh","bash","py","rb","go","rs","java","c","cpp","h","hpp","cs","php","sql","graphql","env","gitignore","dockerfile","readme"].includes(a)?"text":"file"}])},25981,67927,e=>{"use strict";var a=e.i(56420);let s=(0,a.default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,s],25981);let t=(0,a.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],67927)},26067,e=>{"use strict";let a=(0,e.i(56420).default)("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"}]]);e.s(["Folder",0,a],26067)},10818,61507,40616,e=>{"use strict";let a=(0,e.i(56420).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",0,a],10818);var s=e.i(18050),t=e.i(26091),i=e.i(80796),r=e.i(26067),l=e.i(15170),n=e.i(51921),o=e.i(6933);function c(e){let a=e.lastIndexOf("/");return -1===a?{folder:"",name:e}:{folder:e.substring(0,a),name:e.substring(a+1)}}e.s(["FileCard",0,function({file:e,isSelected:a,onSelect:r,onPreview:d}){let u=(0,o.getFileSubtype)(e.fileName),m=(0,s.jsx)(t.FileText,{size:24,color:"#fff"});return"image"===u?m=(0,s.jsx)(l.Image,{size:24,color:"#fff"}):"video"===u?m=(0,s.jsx)(i.Film,{size:24,color:"#fff"}):"audio"===u&&(m=(0,s.jsx)(n.Music,{size:24,color:"#fff"})),(0,s.jsxs)("div",{"data-id":e.cid,onClick:()=>r(e.cid),onDoubleClick:()=>d(e),className:`card ${a?"selected":""}`,children:[(0,s.jsx)("div",{className:`card-icon ${e.starred?"starred":"file"}`,children:m}),(0,s.jsx)("p",{className:"card-name",children:c(e.fileName).name})]})},"FolderCard",0,function({folder:e,onClick:a}){return(0,s.jsxs)("div",{onClick:a,className:"card",children:[(0,s.jsx)("div",{className:"card-icon folder",children:(0,s.jsx)(r.Folder,{size:28,color:"#fff"})}),(0,s.jsx)("p",{className:"card-name",children:e.name})]})},"parseAppFileName",0,c],61507);var d=e.i(71645),u=e.i(63676);e.i(4121);var m=e.i(57667);e.s(["MoveModal",0,function({items:e,allFolders:a,currentPath:t,onMove:i,onClose:l}){let[n,o]=(0,d.useState)(""),[c,p]=(0,d.useState)(t),h=n?[{path:"",name:"全部内容"},...n.split("/").filter(Boolean).map((e,a,s)=>({path:s.slice(0,a+1).join("/"),name:e}))]:[],f=a.filter(e=>{if(""===n)return!e.path.includes("/");let a=n+"/";return!!e.path.startsWith(a)&&!e.path.substring(a.length).includes("/")});return(0,s.jsx)(m.ModalOverlay,{onClose:l,children:(0,s.jsxs)("div",{className:"move-modal",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("div",{className:"modal-header",children:[(0,s.jsx)("h3",{children:"移动到"}),(0,s.jsx)("button",{type:"button",onClick:l,className:"btn btn-icon",children:(0,s.jsx)(u.X,{size:18})})]}),(0,s.jsxs)("p",{className:"move-modal-desc",children:["已选 ",e.length," 个项目"]}),(0,s.jsx)("div",{className:"move-new-folder",children:(0,s.jsx)("input",{type:"text",className:"input",value:c,onChange:e=>p(e.target.value),placeholder:"输入路径创建嵌套文件夹"})}),(0,s.jsx)("p",{className:"move-modal-hint",children:"如 图片/壁纸"}),(0,s.jsx)("div",{className:"move-breadcrumb",children:h.map((e,a)=>(0,s.jsxs)(d.default.Fragment,{children:[a>0&&(0,s.jsx)("span",{className:"breadcrumb-separator",children:"/"}),(0,s.jsx)("button",{type:"button",onClick:()=>{o(e.path),p(e.path)},className:`move-breadcrumb-btn ${n===e.path&&!c?"active":""}`,children:e.name})]},e.path))}),(0,s.jsxs)("div",{className:"move-folder-list",children:[0===f.length&&(0,s.jsx)("p",{className:"move-modal-empty",children:"该目录下没有子文件夹"}),f.map(e=>(0,s.jsxs)("button",{type:"button",onClick:()=>o(e.path),className:`move-folder-item ${n===e.path&&!c?"selected":""}`,children:[(0,s.jsx)(r.Folder,{size:16}),(0,s.jsx)("span",{children:e.name})]},e.path))]}),(0,s.jsxs)("div",{className:"modal-actions",children:[(0,s.jsx)("button",{type:"button",onClick:l,className:"btn btn-secondary",children:"取消"}),(0,s.jsx)("button",{type:"button",onClick:function(){i(n||c.trim())},className:"btn btn-primary",children:"移动"})]})]})})}],40616)},11241,e=>{"use strict";let a=(0,e.i(56420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,a],11241)},35965,e=>{"use strict";let a=(0,e.i(56420).default)("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"}]]);e.s(["Sun",0,a],35965)},96699,e=>{"use strict";let a=(0,e.i(56420).default)("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"}]]);e.s(["Moon",0,a],96699)},59665,5142,e=>{"use strict";var a=e.i(18050),s=e.i(71645);let t=(0,e.i(56420).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);function i(e=!1,a={}){let[t,r]=(0,s.useState)(e),l=(0,s.useCallback)(()=>{r(e=>e||(a.onOpen?.(),!0))},[a.onOpen]),n=(0,s.useCallback)(()=>{r(e=>e?(a.onClose?.(),!1):e)},[a.onClose]);return[t,{open:l,close:n,toggle:(0,s.useCallback)(()=>{t?n():l()},[n,l,t]),set:r}]}e.s(["useDisclosure",0,i],5142);let r=(0,s.createContext)(null);e.s(["default",0,function({sidebar:e,headerTitle:l,headerRight:n,children:o}){let[c,d]=i(!1),[u,m]=(0,s.useState)(!1),p=function(e,{getInitialValueInEffect:a}={getInitialValueInEffect:!0}){let[t,i]=(0,s.useState)(a?void 0:!!("u">typeof window&&"matchMedia"in window)&&window.matchMedia(e).matches);return(0,s.useEffect)(()=>{try{if("matchMedia"in window){let a=window.matchMedia(e);i(a.matches);let s=e=>i(e.matches);return a.addEventListener("change",s),()=>{a.removeEventListener("change",s)}}}catch(e){return}},[e]),t||!1}("(max-width: 768px)"),h=()=>{p?d.open():m(!1)};return(0,a.jsx)(r.Provider,{value:{closeSidebar:d.close,openSidebar:h,isSidebarVisible:p?c:!u},children:(0,a.jsxs)("div",{className:"app-layout",children:[(0,a.jsx)("div",{className:`sidebar-overlay ${c?"visible":""}`,onClick:()=>d.close()}),(0,a.jsx)("div",{className:`sidebar ${c?"open":""} ${u?"collapsed":""}`,children:e({closeSidebar:d.close,openSidebar:h})}),(0,a.jsxs)("div",{className:"main-content",children:[(0,a.jsxs)("header",{className:"app-header",children:[(0,a.jsxs)("div",{className:"header-left",children:[(0,a.jsx)("button",{onClick:()=>{p?d.toggle():m(!u)},className:"btn btn-icon sidebar-toggle-btn","aria-label":p?"打开菜单":u?"展开侧边栏":"收起侧边栏",children:(0,a.jsx)(t,{size:16})}),l]}),(0,a.jsx)("div",{className:"header-right",children:n})]}),o]})]})})},"useAppShell",0,function(){let e=(0,s.useContext)(r);if(!e)throw Error("useAppShell must be used within AppShell");return e}],59665)},27648,e=>{"use strict";var a=e.i(18050),s=e.i(93957),t=e.i(71192);e.s(["default",0,function({className:e=""}){let i=(0,t.useUserStore)(e=>e.identity),r=(0,t.useUserStore)(e=>e.openLoginModal),l=(0,t.useUserStore)(e=>e.logoutUser);return(0,a.jsxs)("div",{className:`chat-sidebar-footer sidebar-account ${e}`,children:[(0,a.jsxs)("div",{className:"user-info",children:[(0,a.jsx)("img",{className:"user-avatar-img",src:(0,s.generateAvatar)(i?.address,i?.avatar),alt:"avatar"}),(0,a.jsx)("span",{className:"user-name",title:i?.address,children:i?.displayName||"未登录"})]}),i?(0,a.jsx)("button",{className:"btn btn-ghost logout-btn",onClick:l,children:"退出"}):(0,a.jsx)("button",{className:"btn btn-primary login-btn",onClick:r,children:"登录"})]})}])},39626,e=>{"use strict";var a=e.i(18050);let s=(0,e.i(56420).default)("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"}]]);var t=e.i(59665);e.s(["default",0,function({label:e="打开侧边栏",className:i="",variant:r="primary"}){let{isSidebarVisible:l,openSidebar:n}=(0,t.useAppShell)();return l?null:(0,a.jsxs)("button",{type:"button",className:`btn ${"primary"===r?"btn-primary":""} sidebar-open-hint ${i}`.trim(),onClick:n,children:[(0,a.jsx)(s,{size:16}),e]})}],39626)},79490,11028,27668,e=>{"use strict";let a=(0,e.i(56420).default)("pen",[["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"}]]);e.s(["Edit2",0,a],79490);var s=e.i(18050),t=e.i(71645),i=e.i(26091),r=e.i(12796),l=e.i(51921),n=e.i(63676),o=e.i(26913);e.s(["default",0,function({item:e,isBackendReady:a,getFileDownloadUrl:c,onClose:d}){let[u,m]=(0,t.useState)(""),[p,h]=(0,t.useState)(!1),[f,x]=(0,t.useState)(""),[j,g]=(0,t.useState)("");return(0,t.useEffect)(()=>{if("text"!==e.subtype)return;let s=!1;return(m(""),g(""),a)?(h(!0),(async()=>{try{let a=await fetch(c(e.cid),{headers:{...await (0,o.getApiRequestHeaders)("GET",`/api/files/${e.cid}/download`),Range:"bytes=0-9999"}});if(!a.ok)throw Error("加载失败");let t=await a.text();s||m(t||"(文件为空)")}catch{s||m("加载失败")}finally{s||h(!1)}})(),()=>{s=!0}):void m("加载失败")},[c,a,e.cid,e.subtype]),(0,t.useEffect)(()=>{var s;if("image"!==(s=e.subtype)&&"video"!==s&&"audio"!==s)return void x("");if(x(""),g(""),!a)return void g("加载失败");let t="",i=!1;return(async()=>{try{let a=await fetch(c(e.cid),{headers:await (0,o.getApiRequestHeaders)("GET",`/api/files/${e.cid}/download`)});if(!a.ok)throw Error("加载失败");let s=URL.createObjectURL(await a.blob());t=s,i||x(s)}catch{i||g("加载失败")}})(),()=>{i=!0,t&&URL.revokeObjectURL(t)}},[c,a,e.cid,e.subtype]),(0,s.jsxs)("div",{className:"preview-overlay",onClick:d,children:[(0,s.jsx)("button",{type:"button",className:"preview-close",onClick:d,"aria-label":"关闭预览",children:(0,s.jsx)(n.X,{size:20})}),(0,s.jsxs)("div",{onClick:e=>e.stopPropagation(),children:["image"===e.subtype&&(0,s.jsx)("div",{className:"preview-media-wrapper",children:f?(0,s.jsx)("img",{src:f,alt:e.fileName}):j?(0,s.jsxs)("div",{className:"preview-unsupported",children:[(0,s.jsx)(i.FileText,{size:48,className:"preview-file-icon"}),(0,s.jsx)("p",{children:e.fileName}),(0,s.jsx)("p",{className:"preview-unsupported-hint",children:j})]}):(0,s.jsx)("div",{className:"preview-loading",children:(0,s.jsx)("div",{className:"preview-loading-spinner"})})}),"video"===e.subtype&&(0,s.jsx)("div",{className:"preview-media-wrapper",children:f?(0,s.jsx)("video",{src:f,controls:!0}):j?(0,s.jsxs)("div",{className:"preview-unsupported",children:[(0,s.jsx)(i.FileText,{size:48,className:"preview-file-icon"}),(0,s.jsx)("p",{children:e.fileName}),(0,s.jsx)("p",{className:"preview-unsupported-hint",children:j})]}):(0,s.jsx)("div",{className:"preview-loading",children:(0,s.jsx)("div",{className:"preview-loading-spinner"})})}),"audio"===e.subtype&&(0,s.jsxs)("div",{className:"preview-audio",children:[(0,s.jsx)("div",{className:"preview-audio-icon",children:(0,s.jsx)(l.Music,{size:36,color:"var(--accent)"})}),(0,s.jsx)("p",{className:"preview-audio-filename",children:e.fileName}),f?(0,s.jsx)("audio",{className:"preview-audio-player",src:f,controls:!0}):(0,s.jsx)("div",{className:"preview-text-loading",children:j?(0,s.jsx)("p",{children:j}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.Loader,{size:24,className:"preview-text-spinner"}),(0,s.jsx)("p",{children:"正在加载音频预览..."})]})})]}),"file"===e.subtype&&(0,s.jsxs)("div",{className:"preview-unsupported",children:[(0,s.jsx)(i.FileText,{size:48,className:"preview-file-icon"}),(0,s.jsx)("p",{children:e.fileName}),(0,s.jsx)("p",{className:"preview-unsupported-hint",children:"无法预览"})]}),"text"===e.subtype&&(0,s.jsxs)("div",{className:"preview-text-container",children:[(0,s.jsx)("div",{className:"preview-text-header",children:(0,s.jsx)("span",{children:e.fileName})}),p?(0,s.jsxs)("div",{className:"preview-text-loading",children:[(0,s.jsx)(r.Loader,{size:24,className:"preview-text-spinner"}),(0,s.jsx)("p",{children:"正在加载文本预览..."}),(0,s.jsx)("p",{className:"preview-text-loading-hint",children:"如果是初次预览,可能需要等待 P2P 网络同步"})]}):(0,s.jsx)("pre",{className:"preview-text",children:u||"(文件为空)"})]})]})]})}],11028);var c=e.i(64621);let d="链接格式不正确,请粘贴完整的 most://<cid>?filename=... 分享链接。",u="暂时没有发现在线种子。请确认分享者或其他下载者仍在线做种,稍后再检测。",m={"Link must be a valid most:// URL":"链接无法解析,请粘贴完整的 most://<cid>?filename=... 分享链接。","Link must use most:// protocol":"链接协议不正确,应以 most:// 开头。","Link path is not supported":"链接里不应包含路径,请使用 most://<cid>?filename=... 格式。","Invalid CID format":"CID 无效,请确认 most:// 后面的内容没有缺失或被截断。","Invalid CID format: CID v1 required":"CID 格式不符合 MostBox 要求,请确认分享链接完整。","CID digest must be 32 bytes":"CID 格式不符合 MostBox 要求,请确认分享链接完整。","filename is required":"链接缺少 filename 参数,请复制完整分享链接后再检测。"};e.s(["getDownloadCheckErrorMessageFromPayload",0,function(e={},a=""){if("TimeoutError"===a)return"检测等待超时,暂时没有等到在线种子响应。请确认分享者或其他下载者仍在线做种,稍后再检测。";if(!e.status)return"无法连接本地节点,请确认 MostBox 后端正在运行后再检测。";if(404===e.status)return"当前后端还没有检测接口,请重启 MostBox 后端后再试。";switch(e.code){case"VALIDATION_ERROR":return d;case"CONFLICT":return e.error?`${e.error},请先处理同名文件后再下载。`:"下载目录已有同名文件,请先重命名或移走后再检测。";case"PEER_NOT_FOUND":return u;case"PERMISSION_ERROR":return e.error?`下载目录不可写:${e.error}`:"下载目录不可写,请检查目录权限后再检测。";case"ENGINE_NOT_INITIALIZED":return"本地节点还没有启动完成,请稍等几秒后重新检测。"}return 503===e.status?u:e.status>=500?"本地节点检测时出错,请稍后重试或查看节点日志。":e.error?`检测未通过:${e.error}`:"检测未通过,请确认链接完整、发布者在线且本机网络正常。"},"getDownloadLinkValidationMessage",0,function(e=""){let a=String(e||"").trim();if(!a)return"请先粘贴 most:// 分享链接。";let s=function(e){let a;if(!e||"string"!=typeof e)return{cid:"",error:"Link must be a non-empty string"};try{a=new URL(e)}catch{return{cid:"",error:"Link must be a valid most:// URL"}}if("most:"!==a.protocol)return{cid:"",error:"Link must use most:// protocol"};if(a.pathname&&"/"!==a.pathname)return{cid:"",error:"Link path is not supported"};let s=a.hostname,t=a.searchParams.get("filename"),i=[...a.searchParams.keys()].find(e=>"filename"!==e),r=function(e){let a;if(!e||"string"!=typeof e)return{valid:!1,error:"CID must be a non-empty string"};try{a=c.CID.parse(e)}catch{return{valid:!1,error:"Invalid CID format"}}return 1!==a.version?{valid:!1,error:"Invalid CID format: CID v1 required"}:32!==a.multihash.digest.length?{valid:!1,error:"CID digest must be 32 bytes"}:{valid:!0}}(s);return r.valid?t&&t.trim()?i?{cid:"",error:`Unsupported query parameter: ${i}`}:{cid:s,fileName:t}:{cid:"",error:"filename is required"}:{cid:"",error:r.error}}(a);if(!s.error)return s.fileName?.trim()?null:m["filename is required"];if(s.error.startsWith("Unsupported query parameter: ")){let e=s.error.slice(29);return`链接包含暂不支持的参数 ${e},请只保留 filename。`}return m[s.error]||d}],27668)},27627,e=>{"use strict";var a=e.i(18050),s=e.i(71645),t=e.i(25981),i=e.i(35965),r=e.i(96699),l=e.i(73474),n=e.i(67927),o=e.i(26091),c=e.i(63676),d=e.i(89664),u=e.i(8734),m=e.i(62368),p=e.i(56420);let h=(0,p.default)("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),f=(0,p.default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),x=(0,p.default)("files",[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]]);var j=e.i(66595),g=e.i(79490),v=e.i(12796),y=e.i(11241),b=e.i(10818),w=e.i(59665),k=e.i(61507),N=e.i(39626),C=e.i(27648),M=e.i(11028),S=e.i(40616);e.i(4121);var F=e.i(57667),$=e.i(88361),z=e.i(47910),L=e.i(26913),D=e.i(27668),E=e.i(3593),T=e.i(71192),I=e.i(5142),A=e.i(6933);async function R(e){let a=await (0,L.getApiErrorPayload)(e),s=e&&"object"==typeof e&&"name"in e?String(e.name):"";return(0,D.getDownloadCheckErrorMessageFromPayload)(a,s)}let U={listPublishedFiles:()=>L.api.get("/api/files").json(),listTrashFiles:()=>L.api.get("/api/trash").json(),deletePublishedFile:e=>L.api.delete(`/api/files/${e}`).json(),restoreTrashFile:e=>L.api.post(`/api/trash/${e}/restore`).json(),permanentDeleteTrashFile:e=>L.api.delete(`/api/trash/${e}`).json(),emptyTrash:()=>L.api.delete("/api/trash").json(),toggleStar:e=>L.api.post(`/api/files/${e}/star`).json(),getConfig:()=>L.api.get("/api/config").json(),getDataPath:()=>L.api.get("/api/config/data-path").json(),getNetworkAddresses:()=>L.api.get("/api/network").json(),saveConfig:e=>L.api.post("/api/config",{json:e}).json(),async publishFile(e,a){let s=new FormData;s.append("file",e,a||e.name);let t=await L.api.post("/api/publish",{body:s});if(!t.ok)throw Error((await t.json().catch(()=>({error:t.statusText}))).error||"Request failed");return t.json()},checkDownload:e=>L.api.post("/api/download/check",{json:{link:e},timeout:15e3}).json(),downloadFile:e=>L.api.post("/api/download",{json:{link:e}}).json(),cancelDownload:e=>L.api.post("/api/download/cancel",{json:{taskId:e}}).json(),getFileDownloadUrl:e=>(0,L.getApiUrl)(`/api/files/${e}/download`),moveFile:(e,a)=>L.api.post("/api/move",{json:{cid:e,newFileName:a}}).json(),renameFolder:(e,a)=>L.api.post("/api/folder/rename",{json:{oldPath:e,newPath:a}}).json()};function O(e){return!e||e<=0?"0 B":e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:e<0x40000000?`${(e/1048576).toFixed(1)} MB`:`${(e/0x40000000).toFixed(2)} GB`}function P(e){return(0,k.parseAppFileName)(e)}e.s(["default",0,function(){let e,p,q,V=(0,E.useAppStore)(e=>e.isDarkMode),B=(0,E.useAppStore)(e=>e.setIsDarkMode),H=(0,E.useAppStore)(e=>e.addToast),_=(0,E.useAppStore)(e=>e.hasBackend),W=(0,E.useAppStore)(e=>e.openConnectModal),X=(0,T.useUserStore)(e=>e.identity),G=(0,T.useUserStore)(e=>e.openLoginModal),[K,Z]=(0,s.useState)([]),[J,Q]=(0,s.useState)([]),[Y,ee]=(0,s.useState)(null),[ea,es]=(0,s.useState)("all"),[et,ei]=(0,s.useState)(!1),[er,el]=(0,s.useState)([]),[en,eo]=(0,s.useState)(null),[ec,ed]=(0,s.useState)(null),[eu,em]=(0,I.useDisclosure)(!1),[ep,eh]=(0,s.useState)(""),[ef,ex]=(0,s.useState)(null),[ej,eg]=(0,s.useState)(!1),[ev,ey]=(0,s.useState)([]),[eb,ew]=(0,I.useDisclosure)(!1),[ek,eN]=(0,s.useState)(""),{copy:eC,copied:eM}=function(e={}){let a=e.timeout??2e3,[t,i]=(0,s.useState)(null),[r,l]=(0,s.useState)(!1),n=(0,s.useRef)(null);return(0,s.useEffect)(()=>()=>{window.clearTimeout(n.current)},[]),{copy:e=>{"clipboard"in navigator?navigator.clipboard.writeText(e).then(()=>{i(null),window.clearTimeout(n.current),n.current=window.setTimeout(()=>l(!1),a),l(!0)}).catch(e=>i(e)):i(Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{l(!1),i(null),window.clearTimeout(n.current)},error:t,copied:r}}({timeout:2e3}),[eS,eF]=(0,I.useDisclosure)(!1),[e$,ez]=(0,s.useState)(null),[eL,eD]=(0,s.useState)(null),[eE,eT]=(0,s.useState)(!1),eI=!0===_,eA=Y||"",eR=(e=new Set,K.forEach(a=>{let{folder:s}=P(a.fileName),t=s.split("/").filter(Boolean),i="";for(let a of t)i+=(i?"/":"")+a,e.add(i)}),[...e].sort()),{folders:eU,files:eO}={folders:(p=eA?eA+"/":"",eR.filter(e=>{let a=e.toLowerCase().startsWith(p.toLowerCase()),s=e.substring(p.length);return a&&!s.includes("/")}).map(e=>({name:e.substring(p.length),path:e}))),files:K.filter(e=>P(e.fileName).folder===eA)};function eP(){return!!eI||(W(),!1)}function eq(){return!!X||(G(),!1)}let eV=ek?K.filter(e=>P(e.fileName).name.toLowerCase().includes(ek.toLowerCase())):eO,eB=async()=>{if(!eI||!X)return void Z([]);try{let e=await U.listPublishedFiles();Z(e||[])}catch{Z([])}},eH=async()=>{if(!eI||!X)return void Q([]);try{let e=await U.listTrashFiles();Q(e||[])}catch{Q([])}},e_=e=>{el(a=>a.includes(e)?a.filter(a=>a!==e):[...a,e])},eW=async e=>{if(eq()&&eP())try{await U.restoreTrashFile(e),H("已恢复","success"),eB(),eH()}catch(e){H(await (0,L.getApiErrorMessage)(e,"恢复失败"),"error")}},eX=async()=>{!eq()||eP()&&ez({title:"清空回收站",message:"确定要清空回收站吗?此操作不可恢复!",confirmText:"清空",danger:!0,onConfirm:async()=>{ez(null);try{await U.emptyTrash(),H("回收站已清空","success"),eH()}catch(e){H(await (0,L.getApiErrorMessage)(e,"清空失败"),"error")}}})},eG=async e=>{if(eq()&&eP())try{let a=await U.toggleStar(e);Z(s=>s.map(s=>s.cid===e?{...s,starred:a.starred}:s)),H(a.starred?"已收藏":"已取消收藏","success")}catch(e){H(await (0,L.getApiErrorMessage)(e,"操作失败"),"error")}},eK=async()=>{if(!eq()||!eP())return;let e="trash"===ea;ez({title:e?"永久删除":"批量删除",message:e?`确定要永久删除选中的 ${er.length} 个项目吗?此操作不可恢复!`:`确定要删除选中的 ${er.length} 个项目吗?`,confirmText:e?"永久删除":"删除",danger:!0,onConfirm:async()=>{ez(null);try{for(let a of er)e?await U.permanentDeleteTrashFile(a):a.startsWith("__")||await U.deletePublishedFile(a);el([]),H(e?"已永久删除":"已删除","success"),eB(),eH()}catch(e){H(await (0,L.getApiErrorMessage)(e,"删除失败"),"error")}}})},eZ=async e=>{if(eq()&&eP())try{for(let a of er){let s=K.find(e=>e.cid===a);if(!s)continue;let{name:t}=P(s.fileName),i=e?`${e}/${t}`:t;s.fileName!==i&&await U.moveFile(a,i)}el([]),eF.close(),H("已移动","success"),eB()}catch(e){H(await (0,L.getApiErrorMessage)(e,"移动失败"),"error")}},eJ=e=>{let a=!!e.path,s=a?e.name:P(e.fileName).name;eD({title:a?"重命名文件夹":"重命名文件",placeholder:"请输入新名称",defaultValue:s,confirmText:"重命名",onConfirm:async t=>{if(t!==s&&eq()&&eP()){eT(!0);try{if(a){let a=e.path.lastIndexOf("/"),s=-1!==a?e.path.substring(0,a):"",i=s?`${s}/${t}`:t;await U.renameFolder(e.path,i),H("已重命名","success"),eB(),e7(i)}else{let{folder:a}=P(e.fileName),s=a?`${a}/${t}`:t;await U.moveFile(e.cid,s),H("已重命名","success"),eB()}eD(null)}catch(e){H(await (0,L.getApiErrorMessage)(e,"重命名失败"),"error")}finally{eT(!1)}}}})},eQ=async e=>{if(!X){G(),H("请先登录后发布文件","warning");return}if(!eP())return;let a=eA?eA+"/":"",s=[];for(let t of Array.from(e)){let e=a+t.name;if(K.some(a=>a.fileName===e)){H(`${t.name} 已存在`,"warning");continue}let i=`upload_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,r={id:i,fileName:t.name,progress:0,type:"upload",status:"uploading"};s.push(r),ey(e=>[...e,r]),s.length>0&&ew.open();try{(await U.publishFile(t,e)).alreadyExists?(ey(e=>e.map(e=>e.id===i?{...e,status:"completed"}:e)),H(`${t.name} 已存在`,"warning")):(ey(e=>e.map(e=>e.id===i?{...e,progress:100,status:"completed"}:e)),H(`${t.name} 已添加到本地`,"success"))}catch(e){ey(e=>e.map(e=>e.id===i?{...e,status:"error"}:e)),H(await (0,L.getApiErrorMessage)(e,`发布失败: ${t.name}`),"error")}}setTimeout(()=>{ey(e=>e.filter(e=>"completed"!==e.status&&"error"!==e.status&&"cancelled"!==e.status))},3e3),eB()},[eY,e0]=(0,s.useState)(!1),e1=ep.trim(),e2=ef?.status==="success"&&ef.link===e1,e6=()=>{em.close(),ex(null)},e4=async()=>{let e=(0,D.getDownloadLinkValidationMessage)(e1);if(e){ex({status:"error",link:e1,message:e}),H(e,"warning");return}if(!ej&&!eY&&eq()&&eP()){eg(!0),ex(null);try{let e=await U.checkDownload(e1),a=e.alreadyExists?`${e.fileName} 已在本机`:`${e.fileName} 可下载`;ex({status:"success",link:e1,message:a}),H(e.alreadyExists?`${e.fileName} 已存在`:"检测通过",e.alreadyExists?"warning":"success")}catch(a){let e=await R(a);ex({status:"error",link:e1,message:e}),H(e,"error")}finally{eg(!1)}}},e5=async()=>{if(!X){G(),H("请先登录后下载文件","warning");return}if(!eP())return;let e=(0,D.getDownloadLinkValidationMessage)(e1);if(e)return void H(e,"warning");if(!e2)return void H("请先检测链接可用性","warning");if(!eY){e0(!0);try{let e=await U.downloadFile(e1);if(eh(""),ex(null),e6(),e.alreadyExists)H(`${e.fileName} 已存在`,"warning");else{let a={id:e.taskId,fileName:"下载文件",progress:0,type:"download",status:"downloading"};ey(e=>[...e,a]),ew.open(),H("下载已开始","info")}}catch(e){H(await (0,L.getApiErrorMessage)(e,"下载失败"),"error")}finally{e0(!1)}}},e9=async e=>{if(eq()&&eP()&&"download"===e.type&&"downloading"===e.status){ey(a=>a.map(a=>a.id===e.id?{...a,status:"cancelling"}:a));try{await U.cancelDownload(e.id)}catch(a){ey(a=>a.map(a=>a.id===e.id?{...a,status:"downloading"}:a)),H(await (0,L.getApiErrorMessage)(a,"取消失败"),"error")}}},e3=async e=>{if(eq()&&eP())try{let a=await fetch(U.getFileDownloadUrl(e.cid),{headers:await (0,L.getApiRequestHeaders)("GET",`/api/files/${e.cid}/download`)});if(!a.ok)throw Error("获取文件失败");let s=await a.blob(),t=window.showSaveFilePicker;if(t){let a=await t({suggestedName:e.fileName}),i=await a.createWritable();await i.write(s),await i.close(),H("文件已保存","success")}else{let a=URL.createObjectURL(s),t=document.createElement("a");t.href=a,t.download=e.fileName,document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(a),H("文件已下载","success")}}catch(e){"AbortError"!==e.name&&H("保存失败: "+e.message,"error")}},e7=e=>{ee(e||null),el([])};(0,s.useEffect)(()=>{if(!0!==_)return;let e=null,a=!1;return(async()=>{if(e=new WebSocket(await (0,L.getAuthenticatedWebSocketUrl)("/ws")),a)return e.close();e.onmessage=e=>{try{let{event:a,data:s}=JSON.parse(e.data);if("publish:success"===a||"download:success"===a){eB();let e=s.taskId||s.fileName;ey(a=>a.map(a=>a.id===e||a.fileName===s.fileName?{...a,progress:100,status:"completed"}:a)),"download:success"===a&&(s.alreadyExists?H(`${s.fileName} 已存在`,"warning"):H(`${s.fileName} 下载完成`,"success"),setTimeout(()=>{ey(a=>a.filter(a=>a.id!==e||"completed"!==a.status))},3e3))}"publish:progress"===a&&ey(e=>e.map(e=>{if(s.file&&e.fileName===s.file&&"upload"===e.type){let a=50;return"calculating-cid"===s.stage?a=25:"uploading"===s.stage?a=75:"complete"===s.stage&&(a=100),{...e,progress:a}}return e})),"download:progress"===a&&ey(e=>e.map(e=>e.id===s.taskId?{...e,progress:s.percent||0,loaded:s.loaded,total:s.total}:e)),"download:error"===a&&(ey(e=>e.map(e=>e.id===s.taskId?{...e,status:"error"}:e)),H(`下载失败: ${s.error}`,"error")),"download:status"===a&&ey(e=>e.map(e=>e.id===s.taskId?{...e,fileName:s.file||e.fileName}:e)),"download:cancelled"===a&&(ey(e=>e.map(e=>e.id===s.taskId?{...e,status:"cancelled"}:e)),H("下载已取消","warning"))}catch(e){console.warn("[App WS] Failed to parse message:",e.message)}}})(),()=>{a=!0,e?.close()}},[_,X?.address]),(0,s.useEffect)(()=>{if(!0===_&&X){eB(),eH();return}!1===_&&(Z([]),Q([]))},[_,X?.address]),(0,s.useEffect)(()=>{X||(el([]),eo(null),ed(null),eh(""),ex(null),ey([]),eN(""),ee(null),es("all"))},[X?.address]);let e8="all"===ea?eV:"starred"===ea?K.filter(e=>e.starred&&P(e.fileName).name.toLowerCase().includes(ek.toLowerCase())):J.filter(e=>P(e.fileName).name.toLowerCase().includes(ek.toLowerCase())),ae="starred"===ea?[]:eU.filter(e=>e.name.toLowerCase().includes(ek.toLowerCase())),aa=eA?[{path:"",name:"全部内容"},...eA.split("/").filter(Boolean).map((e,a,s)=>({path:s.slice(0,a+1).join("/"),name:e}))]:[];return(0,a.jsxs)(w.default,{sidebar:({closeSidebar:e})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"sidebar-header sidebar-header-link",onClick:()=>window.location.href="/",children:[(0,a.jsx)(y.ArrowLeft,{size:18}),(0,a.jsx)("h1",{children:"MOST PEOPLE"})]}),(0,a.jsx)("nav",{className:"sidebar-nav",children:[{id:"all",icon:(0,a.jsx)(x,{size:18}),label:"本地"},{id:"starred",icon:(0,a.jsx)(f,{size:18}),label:"收藏"},{id:"trash",icon:(0,a.jsx)(l.Trash2,{size:18}),label:"回收站"}].map(s=>(0,a.jsxs)("button",{onClick:()=>{es(s.id),ee(null),el([]),eN(""),e()},className:`sidebar-nav-btn ${ea===s.id?"active":""}`,children:[s.icon,(0,a.jsx)("span",{children:s.label})]},s.id))}),(0,a.jsx)(C.default,{})]}),headerTitle:(0,a.jsx)("h2",{className:"header-title",children:"all"===ea?"本地":"starred"===ea?"收藏":"回收站"}),headerRight:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"search-box",children:[(0,a.jsx)(j.Search,{size:14}),(0,a.jsx)("input",{type:"text",value:ek,onChange:e=>eN(e.target.value),placeholder:"搜索..."}),ek&&(0,a.jsx)("button",{onClick:()=>eN(""),children:(0,a.jsx)(c.X,{size:12})})]}),"trash"===ea&&J.length>0&&(0,a.jsx)("button",{onClick:eX,className:"btn btn-sm btn-empty-trash",children:"清空回收站"}),(0,a.jsx)("button",{onClick:()=>ew.open(),className:"btn btn-icon",children:(0,a.jsx)(h,{size:16})}),(0,a.jsx)("button",{onClick:()=>B(!V),className:"btn btn-icon",children:V?(0,a.jsx)(i.Sun,{size:16}):(0,a.jsx)(r.Moon,{size:16})})]}),children:["all"===ea&&(0,a.jsxs)("div",{className:"action-grid",children:[(0,a.jsxs)("div",{className:`action-card upload ${et?"drag-over":""}`,onDragOver:e=>{e.preventDefault(),ei(!0)},onDragLeave:()=>ei(!1),onDrop:e=>{e.preventDefault(),ei(!1),eq()&&eP()&&eQ(e.dataTransfer.files)},children:[(0,a.jsx)("input",{type:"file",multiple:!0,onClick:e=>{eq()&&eP()||e.preventDefault()},onChange:e=>eQ(e.target.files),className:"action-card-input"}),(0,a.jsx)(t.Upload,{size:20,className:"action-grid-icon"}),(0,a.jsx)("p",{children:"发布文件"})]}),(0,a.jsxs)("div",{className:"action-card action-card-download",onClick:()=>{eq()&&eP()&&em.open()},children:[(0,a.jsx)(m.Download,{size:20,className:"action-grid-icon"}),(0,a.jsx)("p",{children:"下载文件"})]})]}),"all"===ea&&(0,a.jsx)("div",{className:"breadcrumb",children:eA?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{onClick:()=>e7(""),children:"全部内容"}),aa.slice(1).map((e,t)=>(0,a.jsxs)(s.default.Fragment,{children:[(0,a.jsx)(n.ChevronRight,{size:12}),(0,a.jsx)("button",{onClick:()=>e7(e.path),className:t===aa.length-2?"current":"",children:e.name}),t===aa.length-2&&(0,a.jsx)("button",{onClick:()=>eJ(e),className:"breadcrumb-edit-btn",children:(0,a.jsx)(g.Edit2,{size:12})})]},e.path))]}):null}),(0,a.jsxs)("div",{className:"content-grid",children:["trash"===ea&&(0===e8.length?(0,a.jsxs)("div",{className:"empty-state app-empty-state",children:[(0,a.jsx)("p",{children:ek?"未找到相关文件":"回收站是空的"}),(0,a.jsx)(N.default,{label:"打开文件导航"})]}):(0,a.jsx)("div",{className:"file-grid",children:e8.map(e=>{var s;return(0,a.jsxs)("div",{onClick:()=>el(a=>a.includes(e.cid)?a.filter(a=>a!==e.cid):[...a,e.cid]),onDoubleClick:()=>eW(e.cid),className:`card ${er.includes(e.cid)?"selected":""}`,children:[(0,a.jsx)("div",{className:"card-icon trash",children:(0,a.jsx)(o.FileText,{size:24,color:"#fff"})}),(0,a.jsx)("p",{className:"card-name",children:P(e.fileName).name}),(0,a.jsxs)("p",{className:"card-date",children:["删除于 ",(s=e.deletedAt)?new Date(s).toLocaleDateString("zh-CN"):""]})]},e.cid)})})),"trash"!==ea&&(0===e8.length&&0===ae.length?(0,a.jsxs)("div",{className:"empty-state app-empty-state",children:[(0,a.jsx)("p",{children:ek?"未找到相关文件":"starred"===ea?"暂无的收藏":"暂无本地文件"}),(0,a.jsx)(N.default,{label:"打开文件导航"})]}):(0,a.jsxs)("div",{className:"file-grid",children:[ae.map(e=>(0,a.jsx)(k.FolderCard,{folder:e,onClick:()=>e7(e.path)},e.path)),e8.map(e=>(0,a.jsx)(k.FileCard,{file:e,isSelected:er.includes(e.cid),onSelect:e_,onPreview:e=>eo({...e,subtype:(0,A.getFileSubtype)(e.fileName)})},e.cid))]}))]}),e$&&(0,a.jsx)($.ConfirmModal,{title:e$.title,message:e$.message,confirmText:e$.confirmText,danger:e$.danger,closeOnOverlayClick:e$.danger,onConfirm:e$.onConfirm,onClose:()=>ez(null)}),eL&&(0,a.jsx)(z.InputModal,{title:eL.title,placeholder:eL.placeholder,defaultValue:eL.defaultValue,confirmText:eL.confirmText,isLoading:eE,onConfirm:eL.onConfirm,onClose:()=>eD(null)}),eS&&(0,a.jsx)(S.MoveModal,{items:er.map(e=>K.find(a=>a.cid===e)).filter(Boolean),allFolders:eR.map(e=>({path:e,name:e.split("/").pop()})),currentPath:eA,onMove:eZ,onClose:()=>eF.close()}),ec&&(0,a.jsx)(F.ModalOverlay,{onClose:()=>ed(null),children:(0,a.jsxs)("div",{className:"share-modal",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"modal-header",children:[(0,a.jsx)("h3",{children:"分享链接"}),(0,a.jsx)("button",{onClick:()=>ed(null),className:"btn btn-icon",children:(0,a.jsx)(c.X,{size:18})})]}),(0,a.jsxs)("div",{className:"share-link-box",children:[(0,a.jsx)("div",{className:"share-link-text",children:`most://${ec.cid}?filename=${encodeURIComponent(ec.fileName)}`}),(0,a.jsx)("button",{onClick:()=>{eC(`most://${ec.cid}?filename=${encodeURIComponent(ec.fileName)}`)},className:`btn btn-circle btn-primary ${eM?"copied":""}`,children:eM?(0,a.jsx)(d.Check,{size:18}):(0,a.jsx)(u.Copy,{size:18})})]}),(0,a.jsx)("div",{className:"share-storage-note",children:(0,a.jsx)("span",{children:"本机在线时可下载;下载者完成后会默认继续做种。"})})]})}),eu&&(0,a.jsx)(F.ModalOverlay,{onClose:e6,children:(0,a.jsxs)("div",{className:"download-modal",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"modal-header",children:[(0,a.jsx)("h3",{children:"下载文件"}),(0,a.jsx)("button",{onClick:e6,className:"btn btn-icon",children:(0,a.jsx)(c.X,{size:18})})]}),(0,a.jsxs)("div",{className:"download-link-row",children:[(0,a.jsx)("input",{type:"text",className:"input",value:ep,onChange:e=>{eh(e.target.value),ex(null)},placeholder:"输入 most:// 链接"}),(0,a.jsxs)("button",{type:"button",onClick:e4,disabled:!e1||ej||eY,className:"btn btn-secondary download-check-btn",children:[ej?(0,a.jsx)(v.Loader,{size:14,className:"spin"}):e2?(0,a.jsx)(d.Check,{size:14}):(0,a.jsx)(j.Search,{size:14}),ej?"检测中...":e2?"已通过":"检测"]})]}),ef&&(0,a.jsxs)("div",{className:`download-check-status ${ef.status}`,children:["success"===ef.status?(0,a.jsx)(d.Check,{size:14}):(0,a.jsx)(b.Info,{size:14}),(0,a.jsx)("span",{children:ef.message})]}),(0,a.jsxs)("button",{onClick:e5,disabled:!e2||eY||ej,className:"btn btn-info btn-full",children:[eY?(0,a.jsx)(v.Loader,{size:14,className:"spin"}):(0,a.jsx)(m.Download,{size:14}),eY?"下载中...":"开始下载"]})]})}),en&&(0,a.jsx)(M.default,{item:en,isBackendReady:eI,getFileDownloadUrl:U.getFileDownloadUrl,onClose:()=>eo(null)}),er.length>0&&(0,a.jsxs)("div",{className:"batch-bar",children:[(0,a.jsxs)("span",{className:"batch-info",children:["已选 ",er.length," 项"]}),(0,a.jsx)("button",{onClick:()=>el([]),className:"batch-dismiss",children:(0,a.jsx)(c.X,{size:16})}),(0,a.jsx)("div",{className:"batch-divider"}),"trash"===ea?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{onClick:async()=>{!eq()||eP()&&(await Promise.all(er.map(e=>U.restoreTrashFile(e))),el([]),H("已恢复","success"),eB(),eH())},className:"btn btn-sm",children:"恢复"}),(0,a.jsx)("button",{onClick:eK,className:"btn btn-sm btn-danger",children:"永久删除"})]}):(0,a.jsxs)(a.Fragment,{children:[1===er.length&&(q=K.find(e=>e.cid===er[0]))&&"file"!==(0,A.getFileSubtype)(q.fileName)&&(0,a.jsx)("button",{onClick:()=>{let e=K.find(e=>e.cid===er[0]);if(e){let a=(0,A.getFileSubtype)(e.fileName);eo({...e,subtype:a})}},className:"btn btn-sm",children:"预览"}),(0,a.jsx)("button",{onClick:()=>{let e=er.some(e=>{let a=K.find(a=>a.cid===e);return a&&!a.starred});er.forEach(a=>{let s=K.find(e=>e.cid===a);s&&(e?!s.starred:s.starred)&&eG(a)})},className:"btn btn-sm btn-star",children:"收藏"}),1===er.length&&(0,a.jsx)("button",{onClick:()=>{let e=K.find(e=>e.cid===er[0]);e&&eJ(e)},className:"btn btn-sm",children:"重命名"}),(0,a.jsx)("button",{onClick:()=>eF.open(),className:"btn btn-sm btn-move",children:"移动"}),(0,a.jsx)("button",{onClick:eK,className:"btn btn-sm btn-danger",children:"删除"}),1===er.length&&(0,a.jsx)("button",{onClick:()=>ed(K.find(e=>e.cid===er[0])),className:"btn btn-sm",children:"分享"}),1===er.length&&(0,a.jsx)("button",{onClick:()=>{let e=K.find(e=>e.cid===er[0]);e&&e3(e)},className:"btn btn-sm",children:"另存为"})]})]}),eb&&(0,a.jsx)(F.ModalOverlay,{onClose:()=>ew.close(),closeOnOverlayClick:!0,children:(0,a.jsxs)("div",{className:"transfer-modal",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"modal-header",children:[(0,a.jsx)("h3",{children:"传输"}),(0,a.jsx)("button",{onClick:()=>ew.close(),className:"btn btn-icon",children:(0,a.jsx)(c.X,{size:18})})]}),0===ev.length?(0,a.jsx)("div",{className:"empty-transfer",children:"暂无传输"}):ev.map(e=>(0,a.jsxs)("div",{className:"transfer-item",children:[(0,a.jsxs)("div",{className:"transfer-item-header",children:["upload"===e.type?(0,a.jsx)(t.Upload,{size:14}):(0,a.jsx)(m.Download,{size:14}),(0,a.jsx)("span",{className:"transfer-item-name",children:e.fileName}),"downloading"===e.status&&"download"===e.type&&(0,a.jsx)("button",{onClick:()=>e9(e),className:"transfer-item-cancel",children:(0,a.jsx)(c.X,{size:14})})]}),(0,a.jsxs)("div",{className:"transfer-progress-row",children:[(0,a.jsx)("progress",{className:`transfer-progress-meter ${"download"===e.type?"download":""} ${"error"===e.status?"error":""} ${"cancelled"===e.status?"cancelled":""}`,value:Math.max(0,Math.min(100,e.progress)),max:100,"aria-label":`${e.fileName} 传输进度`}),(0,a.jsx)("span",{className:"transfer-progress-text",children:"completed"===e.status?"完成":"error"===e.status?"失败":"cancelled"===e.status?"已取消":"cancelling"===e.status?"取消中":e.loaded&&e.total?`${O(e.loaded)}/${O(e.total)}`:`${e.progress}%`})]})]},e.id))]})})]})}],27627)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95057,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={formatUrl:function(){return i},formatWithValidation:function(){return o},urlObjectKeys:function(){return c}};for(var s in r)Object.defineProperty(a,s,{enumerable:!0,get:r[s]});let n=e.r(90809)._(e.r(98183)),l=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:a}=e,r=e.protocol||"",s=e.pathname||"",i=e.hash||"",c=e.query||"",o=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?o=t+e.host:a&&(o=t+(~a.indexOf(":")?`[${a}]`:a),e.port&&(o+=":"+e.port)),c&&"object"==typeof c&&(c=String(n.urlQueryToSearchParams(c)));let d=e.search||c&&`?${c}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||l.test(r))&&!1!==o?(o="//"+(o||""),s&&"/"!==s[0]&&(s="/"+s)):o||(o=""),i&&"#"!==i[0]&&(i="#"+i),d&&"?"!==d[0]&&(d="?"+d),s=s.replace(/[?#]/g,encodeURIComponent),d=d.replace("#","%23"),`${r}${o}${s}${d}${i}`}let c=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function o(e){return i(e)}},18581,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"useMergedRef",{enumerable:!0,get:function(){return s}});let r=e.r(71645);function s(e,t){let a=(0,r.useRef)(null),s=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=a.current;e&&(a.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(a.current=n(e,r)),t&&(s.current=n(t,r))},[e,t])}function n(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let a=e(t);return"function"==typeof a?a:()=>e(null)}}("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},73668,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"isLocalURL",{enumerable:!0,get:function(){return n}});let r=e.r(18967),s=e.r(52817);function n(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),a=new URL(e,t);return a.origin===t&&(0,s.hasBasePath)(a.pathname)}catch(e){return!1}}},84508,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},22016,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={default:function(){return y},useLinkStatus:function(){return j}};for(var s in r)Object.defineProperty(a,s,{enumerable:!0,get:r[s]});let n=e.r(90809),l=e.r(18050),i=n._(e.r(71645)),c=e.r(95057),o=e.r(8372),d=e.r(18581),u=e.r(18967),h=e.r(5550);e.r(33525);let p=e.r(88540),f=e.r(91949),m=e.r(73668),x=e.r(9396);function y(t){var a,r;let s,n,y,[j,v]=(0,i.useOptimistic)(f.IDLE_LINK_STATUS),b=(0,i.useRef)(null),{href:g,as:M,children:N,prefetch:P=null,passHref:w,replace:S,shallow:E,scroll:O,onClick:_,onMouseEnter:C,onTouchStart:z,legacyBehavior:T=!1,onNavigate:L,transitionTypes:B,ref:q,unstable_dynamicOnHover:I,...A}=t;s=N,T&&("string"==typeof s||"number"==typeof s)&&(s=(0,l.jsx)("a",{children:s}));let R=i.default.useContext(o.AppRouterContext),H=!1!==P,D=!1!==P?null===(r=P)||"auto"===r?x.FetchStrategy.PPR:x.FetchStrategy.Full:x.FetchStrategy.PPR,W="string"==typeof(a=M||g)?a:(0,c.formatUrl)(a);if(T){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=i.default.Children.only(s)}let F=T?n&&"object"==typeof n&&n.ref:q,U=i.default.useCallback(e=>(null!==R&&(b.current=(0,f.mountLinkInstance)(e,W,R,D,H,v)),()=>{b.current&&((0,f.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,f.unmountPrefetchableInstance)(e)}),[H,W,R,D,v]),$={ref:(0,d.useMergedRef)(U,F),onClick(t){T||"function"!=typeof _||_(t),T&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),!R||t.defaultPrevented||function(t,a,r,s,n,l,c){if("u">typeof window){let o,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((o=t.currentTarget.getAttribute("target"))&&"_self"!==o||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(a)){s&&(t.preventDefault(),location.replace(a));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:u}=e.r(99781);i.default.startTransition(()=>{u(a,s?"replace":"push",!1===n?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,r.current,c)})}}(t,W,b,S,O,L,B)},onMouseEnter(e){T||"function"!=typeof C||C(e),T&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),R&&H&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){T||"function"!=typeof z||z(e),T&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),R&&H&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,u.isAbsoluteUrl)(W)?$.href=W:T&&!w&&("a"!==n.type||"href"in n.props)||($.href=(0,h.addBasePath)(W)),y=T?i.default.cloneElement(n,$):(0,l.jsx)("a",{...A,...$,children:s}),(0,l.jsx)(k.Provider,{value:j,children:y})}e.r(84508);let k=(0,i.createContext)(f.IDLE_LINK_STATUS),j=()=>(0,i.useContext)(k);("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},89664,e=>{"use strict";let t=(0,e.i(56420).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],89664)},50285,e=>{"use strict";let t=(0,e.i(56420).default)("hard-drive",[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]]);e.s(["HardDrive",0,t],50285)},10566,e=>{"use strict";let t=(0,e.i(56420).default)("notebook-pen",[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]]);e.s(["NotebookPen",0,t],10566)},70904,e=>{"use strict";let t=(0,e.i(56420).default)("wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);e.s(["Wallet",0,t],70904)},82022,e=>{"use strict";let t=(0,e.i(56420).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],82022)},96699,e=>{"use strict";let t=(0,e.i(56420).default)("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"}]]);e.s(["Moon",0,t],96699)},35965,e=>{"use strict";let t=(0,e.i(56420).default)("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"}]]);e.s(["Sun",0,t],35965)},62368,e=>{"use strict";let t=(0,e.i(56420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],62368)},68590,e=>{"use strict";let t=(0,e.i(56420).default)("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"}]]);e.s(["MessageSquare",0,t],68590)},42724,58501,e=>{"use strict";var t=e.i(18050),a=e.i(71645),r=e.i(22016),s=e.i(62368),n=e.i(96699),l=e.i(35965);function i({size:e=24}){return(0,t.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"2",y:"2",width:"8",height:"8",rx:"2",fill:"var(--accent)",opacity:"0.4"}),(0,t.jsx)("rect",{x:"14",y:"2",width:"8",height:"8",rx:"2",fill:"var(--accent)",opacity:"0.7"}),(0,t.jsx)("rect",{x:"2",y:"14",width:"8",height:"8",rx:"2",fill:"var(--accent)",opacity:"0.7"}),(0,t.jsx)("rect",{x:"14",y:"14",width:"8",height:"8",rx:"2",fill:"var(--accent)"})]})}e.s(["LogoIcon",0,i],58501),e.s(["Nav",0,function(){let[e,c]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=localStorage.getItem("theme"),t=window.matchMedia("(prefers-color-scheme: dark)").matches;("dark"===e||!e&&t)&&c(!0)},[]),(0,a.useEffect)(()=>{document.documentElement.setAttribute("data-theme",e?"dark":"light"),localStorage.setItem("theme",e?"dark":"light")},[e]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("nav",{className:"mkt-nav",children:(0,t.jsxs)("div",{className:"mkt-nav-inner",children:[(0,t.jsxs)(r.default,{href:"/",className:"mkt-nav-logo",children:[(0,t.jsx)(i,{}),"MOST PEOPLE"]}),(0,t.jsxs)("div",{className:"mkt-nav-cta",children:[(0,t.jsx)("button",{className:"mkt-theme-toggle",onClick:()=>c(!e),"aria-label":"切换主题",children:e?(0,t.jsx)(l.Sun,{size:16}):(0,t.jsx)(n.Moon,{size:16})}),(0,t.jsxs)(r.default,{href:"/download/",className:"btn btn-secondary mkt-nav-preview",children:[(0,t.jsx)(s.Download,{size:16}),"下载客户端"]}),(0,t.jsx)(r.default,{href:"/app/",className:"btn btn-primary",children:"开始使用"})]})]})})})}],42724)},56691,e=>{"use strict";var t=e.i(18050),a=e.i(22016);let r=[{href:"/",label:"关于"},{href:"/ping/",label:"网络"},{href:"https://github.com/most-people/most",label:"GitHub",external:!0}];e.s(["Footer",0,function(){return(0,t.jsx)("footer",{className:"mkt-footer",children:(0,t.jsx)("div",{className:"mkt-container",children:(0,t.jsxs)("div",{className:"mkt-footer-inner",children:[(0,t.jsx)("div",{className:"mkt-footer-links",children:r.map(e=>(0,t.jsx)(a.default,{href:e.href,...e.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:e.label},e.href))}),(0,t.jsxs)("span",{className:"mkt-footer-copy",children:["© ",new Date().getFullYear()," MOST PEOPLE · MIT License"]})]})})})}])},40983,e=>{"use strict";var t=e.i(18050),a=e.i(42724),r=e.i(56691);e.s(["MarketingLayout",0,function({children:e}){return(0,t.jsxs)("div",{className:"mkt-layout",children:[(0,t.jsx)(a.Nav,{}),(0,t.jsx)("main",{className:"mkt-layout-main",children:e}),(0,t.jsx)(r.Footer,{})]})}])},31713,e=>{"use strict";var t=e.i(18050),a=e.i(71645),r=e.i(22016),s=e.i(56420);let n=(0,s.default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);var l=e.i(68590),i=e.i(10566),c=e.i(70904);let o=(0,s.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),d=(0,s.default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);var u=e.i(89664),h=e.i(82022),p=e.i(62368),f=e.i(41220),m=e.i(50285);let x=(0,s.default)("gamepad-2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]]);var y=e.i(3593);let k=[{id:"app",title:"MostBox",subtitle:"P2P 文件分享",icon:(0,t.jsx)(n,{size:28}),path:"/app/",requiresBackend:!0,hero:"P2P 文件分享,无需注册",desc:"基于 Hyperswarm 的去中心化文件传输,让文件分享回归点对点。MostBox 不是云盘;链接来自 CID,可用性来自当前在线种子。",features:["无需注册,打开浏览器即用","Hyperswarm P2P 直连传输","GB 级大文件流式处理","相同文件 = 相同 CID,链接可反复校验","下载完成后默认继续做种","相比微信、QQ 或网盘,不依赖中心化账号和云端托管","Web 端负责展示,完整发布、下载和持续做种依赖桌面客户端","MIT 开源,自托管,数据完全自主掌控"],steps:[{num:"1",title:"下载桌面客户端",desc:"支持 Windows、macOS 和 Linux,桌面端提供完整的 P2P 能力。",link:"/download",linkText:"前往下载页"},{num:"2",title:"安装并运行",desc:"安装后打开应用,即可使用。"},{num:"3",title:"开始分享",desc:"发布文件生成 most:// 链接,朋友下载校验通过后也会成为新的种子。"}]},{id:"chat",title:"P2P 聊天",subtitle:"频道加密通讯",icon:(0,t.jsx)(l.MessageSquare,{size:28}),path:"/chat/",requiresBackend:!0,hero:"去中心化频道聊天",desc:"基于 Hypercore 的 P2P 加密即时通讯。创建频道,邀请朋友,端到端加密,无需服务器中转。",features:["P2P 加密频道消息","本地登录身份保护消息署名","消息通过 Hyperswarm 网络同步","离线消息自动同步","无需中心化账号注册"],steps:[{num:"1",title:"下载桌面客户端",desc:"支持 Windows、macOS 和 Linux。",link:"/download",linkText:"前往下载页"},{num:"2",title:"创建频道",desc:"输入任意频道名即可加入或创建。"},{num:"3",title:"开始聊天",desc:"发送消息,P2P 网络自动同步给所有在线节点。"}]},{id:"note",title:"笔记",subtitle:"加密云备份",icon:(0,t.jsx)(i.NotebookPen,{size:28}),path:"/note/",requiresBackend:!1,hero:"Web3 加密笔记",desc:"使用本地 Web3 密钥加密 Markdown 笔记,可在浏览器本地保存并按需同步到云端备份。",features:["Markdown 块编辑器","公开 / 私密笔记切换","文件夹、搜索和移动","Web3 登录态加密","云端备份与恢复","独立于 P2P 文件分享"],steps:[{num:"1",title:"生成 Web3 账号",desc:"用用户名和密码派生本地密钥。"},{num:"2",title:"创建笔记",desc:"写 Markdown,按需切换为私密内容。"},{num:"3",title:"备份恢复",desc:"登录后可把加密笔记同步到云端。"}]},{id:"gandengyan",title:"干瞪眼",subtitle:"P2P 牌桌",icon:(0,t.jsx)(x,{size:28}),path:"/game/gandengyan/",requiresBackend:!0,hero:"常驻节点里的在线牌桌",desc:"把干瞪眼作为 MostBox 的独立页面接入,复用现有频道消息、Web3 登录身份和桌面端常驻入口。",features:["使用 MostBox 本地账号进入房间","复用 /chat/ 的频道后端,不新增游戏后端接口","房间链接可直接分享到群组","支持 1-2 副牌、2-6 人和人机陪测","游戏规则、频道事件和页面样式拆分维护"],steps:[{num:"1",title:"登录账号",desc:"使用现有 MostBox Web3 本地账号作为牌桌身份。"},{num:"2",title:"创建房间",desc:"创建房间后复制链接,发给朋友加入。"},{num:"3",title:"开始调试",desc:"可先用人机补位测试出牌、计分和房间同步。"}]},{id:"web3",title:"Web3",subtitle:"账户工具箱",icon:(0,t.jsx)(c.Wallet,{size:28}),path:"/web3/",requiresBackend:!1,hero:"确定性密钥派生工具箱",desc:"纯前端运行的 Web3 账户工具。输入用户名和密码,即可生成 Ed25519 / x25519 密钥对、助记词、以太坊地址,支持 PEM 导出和地址派生。",features:["纯前端运行,无需后端","Ed25519 / x25519 密钥对生成","BIP-39 助记词派生","以太坊地址与私钥导出","PEM 格式密钥导出","二维码展示地址与助记词"],steps:[{num:"1",title:"输入用户名",desc:"用户名 + 密码(可选)作为种子。"},{num:"2",title:"查看密钥",desc:"即时生成 Ed25519、x25519 公钥与 IPNS ID。"},{num:"3",title:"导出使用",desc:"复制地址、导出 PEM、派生子地址。"}]}];function j(){let e=(0,y.useAppStore)(e=>e.hasBackend),s=(0,y.useAppStore)(e=>e.openConnectModal),[n,l]=(0,a.useState)("app"),i=k.find(e=>e.id===n)||k[0];return(0,t.jsxs)("div",{className:"portal-page",children:[(0,t.jsx)("section",{className:"portal-hero",children:(0,t.jsxs)("div",{className:"mkt-container",children:[(0,t.jsx)("h1",{className:"portal-hero-title",children:"MOST PEOPLE"}),(0,t.jsx)("p",{className:"portal-hero-subtitle",children:"去中心化 P2P 工具箱"})]})}),(0,t.jsx)("section",{className:"portal-cards-section",children:(0,t.jsxs)("div",{className:"mkt-container",children:[(0,t.jsx)("div",{className:"portal-cards",children:k.map(a=>{let s=n===a.id,i=a.requiresBackend,c=i?!0===e?"connected":!1===e?"disconnected":"checking":"none";return(0,t.jsxs)("button",{className:`portal-card ${s?"active":""}`,onClick:()=>l(a.id),children:[(0,t.jsx)(r.default,{href:a.path,className:"btn btn-icon portal-card-open-btn",onClick:e=>e.stopPropagation(),title:`打开${a.title}`,children:(0,t.jsx)(d,{size:16})}),(0,t.jsx)("div",{className:"portal-card-icon",children:a.icon}),(0,t.jsx)("div",{className:"portal-card-title",children:a.title}),(0,t.jsx)("div",{className:"portal-card-subtitle",children:a.subtitle}),i?(0,t.jsxs)("div",{className:`ui-badge portal-card-status ${c}`,children:["checking"===c&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"status-dot checking"}),"检测中"]}),"connected"===c&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"status-dot connected"}),"已连接"]}),"disconnected"===c&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"status-dot disconnected"}),"需连接"]})]}):(0,t.jsxs)("div",{className:"portal-card-status ready",children:[(0,t.jsx)("span",{className:"status-dot ready"}),"已就绪"]})]},a.id)})}),(0,t.jsxs)("div",{className:"portal-node-actions","aria-label":"节点入口",children:[(0,t.jsxs)("button",{onClick:s,className:"btn btn-secondary",children:[(0,t.jsx)(f.Server,{size:16}),"连接节点"]}),(0,t.jsxs)(r.default,{href:"/admin",className:"btn btn-secondary",children:[(0,t.jsx)(m.HardDrive,{size:16}),"节点管理"]})]})]})}),(0,t.jsx)("section",{className:"portal-marketing",children:(0,t.jsx)("div",{className:"mkt-container",children:(0,t.jsx)("div",{className:"portal-marketing-inner",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"portal-marketing-header",children:[(0,t.jsx)("h2",{children:i.hero}),(0,t.jsx)("p",{children:i.desc})]}),(0,t.jsx)("div",{className:"portal-marketing-features",children:i.features.map((e,a)=>(0,t.jsxs)("div",{className:"portal-feature-item",children:[(0,t.jsx)("span",{className:"portal-feature-icon",children:(0,t.jsx)(u.Check,{size:14,strokeWidth:3})}),(0,t.jsx)("span",{children:e})]},a))}),(0,t.jsx)("div",{className:"portal-marketing-steps",children:i.steps.map(e=>(0,t.jsxs)("div",{className:"portal-step",children:[(0,t.jsx)("span",{className:"portal-step-num",children:e.num}),(0,t.jsxs)("div",{className:"portal-step-content",children:[(0,t.jsx)("strong",{children:e.title}),(0,t.jsx)("p",{children:e.desc}),e.code&&(0,t.jsx)("code",{className:"portal-step-code",children:e.code}),e.link&&(0,t.jsx)("p",{className:"portal-step-link",children:(0,t.jsxs)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",children:[e.linkText," ",(0,t.jsx)(h.ExternalLink,{size:12})]})})]})]},e.num))}),(0,t.jsxs)("div",{className:"portal-actions",children:[(0,t.jsxs)(r.default,{href:i.path,className:"btn btn-primary",children:["进入 ",i.title,(0,t.jsx)(o,{size:16})]}),i.requiresBackend&&!1===e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{onClick:s,className:"btn btn-secondary",children:[(0,t.jsx)(f.Server,{size:16}),"连接节点"]}),(0,t.jsxs)(r.default,{href:"/download",className:"btn btn-secondary",children:[(0,t.jsx)(p.Download,{size:16}),"下载桌面客户端"]})]})]})]})})})})]})}var v=e.i(40983);e.s(["default",0,function(){return(0,t.jsx)(v.MarketingLayout,{children:(0,t.jsx)(j,{})})}],31713)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95057,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a={formatUrl:function(){return r},formatWithValidation:function(){return o},urlObjectKeys:function(){return c}};for(var i in a)Object.defineProperty(s,i,{enumerable:!0,get:a[i]});let n=e.r(90809)._(e.r(98183)),l=/https?|ftp|gopher|file/;function r(e){let{auth:t,hostname:s}=e,a=e.protocol||"",i=e.pathname||"",r=e.hash||"",c=e.query||"",o=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?o=t+e.host:s&&(o=t+(~s.indexOf(":")?`[${s}]`:s),e.port&&(o+=":"+e.port)),c&&"object"==typeof c&&(c=String(n.urlQueryToSearchParams(c)));let d=e.search||c&&`?${c}`||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||l.test(a))&&!1!==o?(o="//"+(o||""),i&&"/"!==i[0]&&(i="/"+i)):o||(o=""),r&&"#"!==r[0]&&(r="#"+r),d&&"?"!==d[0]&&(d="?"+d),i=i.replace(/[?#]/g,encodeURIComponent),d=d.replace("#","%23"),`${a}${o}${i}${d}${r}`}let c=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function o(e){return r(e)}},18581,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"useMergedRef",{enumerable:!0,get:function(){return i}});let a=e.r(71645);function i(e,t){let s=(0,a.useRef)(null),i=(0,a.useRef)(null);return(0,a.useCallback)(a=>{if(null===a){let e=s.current;e&&(s.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(s.current=n(e,a)),t&&(i.current=n(t,a))},[e,t])}function n(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let s=e(t);return"function"==typeof s?s:()=>e(null)}}("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},73668,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"isLocalURL",{enumerable:!0,get:function(){return n}});let a=e.r(18967),i=e.r(52817);function n(e){if(!(0,a.isAbsoluteUrl)(e))return!0;try{let t=(0,a.getLocationOrigin)(),s=new URL(e,t);return s.origin===t&&(0,i.hasBasePath)(s.pathname)}catch(e){return!1}}},84508,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"errorOnce",{enumerable:!0,get:function(){return a}});let a=e=>{}},22016,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a={default:function(){return f},useLinkStatus:function(){return b}};for(var i in a)Object.defineProperty(s,i,{enumerable:!0,get:a[i]});let n=e.r(90809),l=e.r(18050),r=n._(e.r(71645)),c=e.r(95057),o=e.r(8372),d=e.r(18581),h=e.r(18967),u=e.r(5550);e.r(33525);let m=e.r(88540),p=e.r(91949),x=e.r(73668),j=e.r(9396);function f(t){var s,a;let i,n,f,[b,v]=(0,r.useOptimistic)(p.IDLE_LINK_STATUS),k=(0,r.useRef)(null),{href:N,as:g,children:C,prefetch:M=null,passHref:w,replace:z,shallow:S,scroll:P,onClick:O,onMouseEnter:L,onTouchStart:F,legacyBehavior:T=!1,onNavigate:E,transitionTypes:A,ref:I,unstable_dynamicOnHover:B,...D}=t;i=C,T&&("string"==typeof i||"number"==typeof i)&&(i=(0,l.jsx)("a",{children:i}));let _=r.default.useContext(o.AppRouterContext),$=!1!==M,U=!1!==M?null===(a=M)||"auto"===a?j.FetchStrategy.PPR:j.FetchStrategy.Full:j.FetchStrategy.PPR,R="string"==typeof(s=g||N)?s:(0,c.formatUrl)(s);if(T){if(i?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=r.default.Children.only(i)}let q=T?n&&"object"==typeof n&&n.ref:I,K=r.default.useCallback(e=>(null!==_&&(k.current=(0,p.mountLinkInstance)(e,R,_,U,$,v)),()=>{k.current&&((0,p.unmountLinkForCurrentNavigation)(k.current),k.current=null),(0,p.unmountPrefetchableInstance)(e)}),[$,R,_,U,v]),H={ref:(0,d.useMergedRef)(K,q),onClick(t){T||"function"!=typeof O||O(t),T&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),!_||t.defaultPrevented||function(t,s,a,i,n,l,c){if("u">typeof window){let o,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((o=t.currentTarget.getAttribute("target"))&&"_self"!==o||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,x.isLocalURL)(s)){i&&(t.preventDefault(),location.replace(s));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:h}=e.r(99781);r.default.startTransition(()=>{h(s,i?"replace":"push",!1===n?m.ScrollBehavior.NoScroll:m.ScrollBehavior.Default,a.current,c)})}}(t,R,k,z,P,E,A)},onMouseEnter(e){T||"function"!=typeof L||L(e),T&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),_&&$&&(0,p.onNavigationIntent)(e.currentTarget,!0===B)},onTouchStart:function(e){T||"function"!=typeof F||F(e),T&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),_&&$&&(0,p.onNavigationIntent)(e.currentTarget,!0===B)}};return(0,h.isAbsoluteUrl)(R)?H.href=R:T&&!w&&("a"!==n.type||"href"in n.props)||(H.href=(0,u.addBasePath)(R)),f=T?r.default.cloneElement(n,H):(0,l.jsx)("a",{...D,...H,children:i}),(0,l.jsx)(y.Provider,{value:b,children:f})}e.r(84508);let y=(0,r.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,r.useContext)(y);("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},89664,e=>{"use strict";let t=(0,e.i(56420).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],89664)},31214,e=>{"use strict";let t=(0,e.i(56420).default)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);e.s(["Cloud",0,t],31214)},11241,e=>{"use strict";let t=(0,e.i(56420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],11241)},96699,e=>{"use strict";let t=(0,e.i(56420).default)("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"}]]);e.s(["Moon",0,t],96699)},35965,e=>{"use strict";let t=(0,e.i(56420).default)("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"}]]);e.s(["Sun",0,t],35965)},27648,e=>{"use strict";var t=e.i(18050),s=e.i(93957),a=e.i(71192);e.s(["default",0,function({className:e=""}){let i=(0,a.useUserStore)(e=>e.identity),n=(0,a.useUserStore)(e=>e.openLoginModal),l=(0,a.useUserStore)(e=>e.logoutUser);return(0,t.jsxs)("div",{className:`chat-sidebar-footer sidebar-account ${e}`,children:[(0,t.jsxs)("div",{className:"user-info",children:[(0,t.jsx)("img",{className:"user-avatar-img",src:(0,s.generateAvatar)(i?.address,i?.avatar),alt:"avatar"}),(0,t.jsx)("span",{className:"user-name",title:i?.address,children:i?.displayName||"未登录"})]}),i?(0,t.jsx)("button",{className:"btn btn-ghost logout-btn",onClick:l,children:"退出"}):(0,t.jsx)("button",{className:"btn btn-primary login-btn",onClick:n,children:"登录"})]})}])},8734,e=>{"use strict";let t=(0,e.i(56420).default)("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"}]]);e.s(["Copy",0,t],8734)},66627,e=>{"use strict";let t=(0,e.i(56420).default)("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);e.s(["Wifi",0,t],66627)},68590,e=>{"use strict";let t=(0,e.i(56420).default)("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"}]]);e.s(["MessageSquare",0,t],68590)},56691,e=>{"use strict";var t=e.i(18050),s=e.i(22016);let a=[{href:"/",label:"关于"},{href:"/ping/",label:"网络"},{href:"https://github.com/most-people/most",label:"GitHub",external:!0}];e.s(["Footer",0,function(){return(0,t.jsx)("footer",{className:"mkt-footer",children:(0,t.jsx)("div",{className:"mkt-container",children:(0,t.jsxs)("div",{className:"mkt-footer-inner",children:[(0,t.jsx)("div",{className:"mkt-footer-links",children:a.map(e=>(0,t.jsx)(s.default,{href:e.href,...e.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:e.label},e.href))}),(0,t.jsxs)("span",{className:"mkt-footer-copy",children:["© ",new Date().getFullYear()," MOST PEOPLE · MIT License"]})]})})})}])},42724,58501,e=>{"use strict";var t=e.i(18050),s=e.i(71645),a=e.i(22016),i=e.i(62368),n=e.i(96699),l=e.i(35965);function r({size:e=24}){return(0,t.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"2",y:"2",width:"8",height:"8",rx:"2",fill:"var(--accent)",opacity:"0.4"}),(0,t.jsx)("rect",{x:"14",y:"2",width:"8",height:"8",rx:"2",fill:"var(--accent)",opacity:"0.7"}),(0,t.jsx)("rect",{x:"2",y:"14",width:"8",height:"8",rx:"2",fill:"var(--accent)",opacity:"0.7"}),(0,t.jsx)("rect",{x:"14",y:"14",width:"8",height:"8",rx:"2",fill:"var(--accent)"})]})}e.s(["LogoIcon",0,r],58501),e.s(["Nav",0,function(){let[e,c]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=localStorage.getItem("theme"),t=window.matchMedia("(prefers-color-scheme: dark)").matches;("dark"===e||!e&&t)&&c(!0)},[]),(0,s.useEffect)(()=>{document.documentElement.setAttribute("data-theme",e?"dark":"light"),localStorage.setItem("theme",e?"dark":"light")},[e]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("nav",{className:"mkt-nav",children:(0,t.jsxs)("div",{className:"mkt-nav-inner",children:[(0,t.jsxs)(a.default,{href:"/",className:"mkt-nav-logo",children:[(0,t.jsx)(r,{}),"MOST PEOPLE"]}),(0,t.jsxs)("div",{className:"mkt-nav-cta",children:[(0,t.jsx)("button",{className:"mkt-theme-toggle",onClick:()=>c(!e),"aria-label":"切换主题",children:e?(0,t.jsx)(l.Sun,{size:16}):(0,t.jsx)(n.Moon,{size:16})}),(0,t.jsxs)(a.default,{href:"/download/",className:"btn btn-secondary mkt-nav-preview",children:[(0,t.jsx)(i.Download,{size:16}),"下载客户端"]}),(0,t.jsx)(a.default,{href:"/app/",className:"btn btn-primary",children:"开始使用"})]})]})})})}],42724)},58072,e=>{"use strict";let t=(0,e.i(56420).default)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);e.s(["Code",0,t],58072)},16327,e=>{"use strict";let t=(0,e.i(56420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],16327)},16306,23165,24851,64830,16546,e=>{"use strict";let t=(0,e.i(56420).default)("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);e.s(["ShieldAlert",0,t],16306);var s=e.i(18050),a=e.i(71645),i=e.i(89664),n=e.i(8734);function l({text:e,label:t,copiedLabel:r="已复制",className:c="btn btn-icon",iconSize:o=14}){let[d,h]=(0,a.useState)(!1);async function u(){try{await navigator.clipboard.writeText(e),h(!0),setTimeout(()=>h(!1),1500)}catch{}}return(0,s.jsxs)("button",{type:"button",className:c,onClick:u,title:d?r:t||"复制",children:[d?(0,s.jsx)(i.Check,{size:o}):(0,s.jsx)(n.Copy,{size:o}),t?d?r:t:null]})}e.s(["CopyButton",0,l],23165),e.s(["EmptyState",0,function({icon:e,message:t,className:a="empty-state glass"}){return(0,s.jsxs)("div",{className:a,children:[(0,s.jsx)("div",{className:"empty-state-icon",children:e}),(0,s.jsx)("p",{children:t})]})}],24851),e.s(["KeyCard",0,function({title:e,icon:t,children:a,accent:i=!1}){return(0,s.jsxs)("div",{className:`web3-key-card ${i?"accent":""}`,children:[(0,s.jsxs)("div",{className:"web3-key-card-header",children:[(0,s.jsx)("span",{className:"web3-key-card-icon",children:t}),(0,s.jsx)("span",{className:"web3-key-card-title",children:e})]}),(0,s.jsx)("div",{className:"web3-key-card-body",children:a})]})}],64830);var r=e.i(62368);e.s(["PemBlock",0,function({label:e,pem:t,filename:a}){return(0,s.jsxs)("div",{className:"web3-pem-block",children:[(0,s.jsxs)("div",{className:"web3-pem-header",children:[(0,s.jsx)("span",{className:"web3-pem-label",children:e}),(0,s.jsxs)("div",{className:"web3-pem-actions",children:[(0,s.jsx)(l,{text:t,label:"复制",className:"btn btn-sm",iconSize:14}),(0,s.jsxs)("button",{type:"button",className:"btn btn-sm btn-primary",onClick:function(){let e=new Blob([t],{type:"text/plain"}),s=URL.createObjectURL(e),i=document.createElement("a");i.href=s,i.download=a,i.click(),URL.revokeObjectURL(s)},title:"下载",children:[(0,s.jsx)(r.Download,{size:14}),"下载"]})]})]}),(0,s.jsx)("textarea",{className:"textarea mono",value:t,readOnly:!0,rows:6})]})}],16546)},62368,e=>{"use strict";let t=(0,e.i(56420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],62368)},66595,e=>{"use strict";let t=(0,e.i(56420).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],66595)},51921,e=>{"use strict";let t=(0,e.i(56420).default)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);e.s(["Music",0,t],51921)},80796,e=>{"use strict";let t=(0,e.i(56420).default)("film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);e.s(["Film",0,t],80796)},15170,e=>{"use strict";let t=(0,e.i(56420).default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);e.s(["Image",0,t],15170)},12796,e=>{"use strict";let t=(0,e.i(56420).default)("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);e.s(["Loader",0,t],12796)},6933,e=>{"use strict";e.s(["getFileSubtype",0,function(e){let t=String(e||"").split(".").pop()?.toLowerCase()||"";return["jpg","jpeg","png","gif","webp","svg","bmp","ico","tiff","heic","heif"].includes(t)?"image":["mp4","webm","mov","avi","mkv","flv","wmv","m4v","mpeg","3gp"].includes(t)?"video":["mp3","wav","ogg","flac","aac","m4a","wma","opus"].includes(t)?"audio":["txt","md","js","ts","jsx","tsx","css","scss","less","json","xml","html","htm","yaml","yml","toml","ini","cfg","conf","log","sh","bash","py","rb","go","rs","java","c","cpp","h","hpp","cs","php","sql","graphql","env","gitignore","dockerfile","readme"].includes(t)?"text":"file"}])},26091,e=>{"use strict";let t=(0,e.i(56420).default)("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"}]]);e.s(["FileText",0,t],26091)},77071,e=>{"use strict";let t=(0,e.i(56420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],77071)},99847,e=>{"use strict";let t=(0,e.i(56420).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,t],99847)},77685,e=>{"use strict";var t=e.i(18050),s=e.i(99847),a=e.i(62368),i=e.i(72382),n=e.i(26091),l=e.i(80796),r=e.i(15170),c=e.i(12796),o=e.i(51921);function d(e){let t=String(e||"").split("/");return t[t.length-1]||e}e.s(["ChatAttachmentCard",0,function({attachment:e,status:h="idle",pending:u=!1,onOpen:m}){var p,x;let j="checking"===h,f=["ui-file-action","chat-attachment-action","error"===h?"error":"","available"===h?"available":""].filter(Boolean).join(" "),y=((p=e.size)&&!(p<=0)?p<1024?`${p} B`:p<1048576?`${(p/1024).toFixed(1)} KB`:p<0x40000000?`${(p/1048576).toFixed(1)} MB`:`${(p/0x40000000).toFixed(2)} GB`:"")||"MostBox 文件";return(0,t.jsxs)("button",{type:"button",className:"ui-file-card chat-attachment-card",onClick:()=>m?.(e),disabled:u||j,title:e.link,children:[(0,t.jsx)("span",{className:`ui-file-icon chat-attachment-icon ${e.kind}`,children:j?(0,t.jsx)(c.Loader,{size:20,className:"ui-spinner chat-attachment-spinner"}):"image"===(x=e.kind)?(0,t.jsx)(r.Image,{size:20}):"video"===x?(0,t.jsx)(l.Film,{size:20}):"audio"===x?(0,t.jsx)(o.Music,{size:20}):(0,t.jsx)(n.FileText,{size:20})}),(0,t.jsxs)("span",{className:"ui-file-info chat-attachment-info",children:[(0,t.jsx)("span",{className:"ui-file-name chat-attachment-name",children:d(e.fileName)}),(0,t.jsx)("span",{className:"ui-file-meta chat-attachment-meta",children:u?"发送中...":y})]}),(0,t.jsx)("span",{className:f,children:j?"检测中":"available"===h?(0,t.jsx)(i.Eye,{size:16}):"error"===h?(0,t.jsx)(s.AlertCircle,{size:17}):(0,t.jsx)(a.Download,{size:16})})]})},"getAttachmentBaseFileName",0,d])},26067,e=>{"use strict";let t=(0,e.i(56420).default)("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"}]]);e.s(["Folder",0,t],26067)},25981,67927,e=>{"use strict";var t=e.i(56420);let s=(0,t.default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,s],25981);let a=(0,t.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,a],67927)},10818,61507,40616,e=>{"use strict";let t=(0,e.i(56420).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",0,t],10818);var s=e.i(18050),a=e.i(26091),i=e.i(80796),n=e.i(26067),l=e.i(15170),r=e.i(51921),c=e.i(6933);function o(e){let t=e.lastIndexOf("/");return -1===t?{folder:"",name:e}:{folder:e.substring(0,t),name:e.substring(t+1)}}e.s(["FileCard",0,function({file:e,isSelected:t,onSelect:n,onPreview:d}){let h=(0,c.getFileSubtype)(e.fileName),u=(0,s.jsx)(a.FileText,{size:24,color:"#fff"});return"image"===h?u=(0,s.jsx)(l.Image,{size:24,color:"#fff"}):"video"===h?u=(0,s.jsx)(i.Film,{size:24,color:"#fff"}):"audio"===h&&(u=(0,s.jsx)(r.Music,{size:24,color:"#fff"})),(0,s.jsxs)("div",{"data-id":e.cid,onClick:()=>n(e.cid),onDoubleClick:()=>d(e),className:`card ${t?"selected":""}`,children:[(0,s.jsx)("div",{className:`card-icon ${e.starred?"starred":"file"}`,children:u}),(0,s.jsx)("p",{className:"card-name",children:o(e.fileName).name})]})},"FolderCard",0,function({folder:e,onClick:t}){return(0,s.jsxs)("div",{onClick:t,className:"card",children:[(0,s.jsx)("div",{className:"card-icon folder",children:(0,s.jsx)(n.Folder,{size:28,color:"#fff"})}),(0,s.jsx)("p",{className:"card-name",children:e.name})]})},"parseAppFileName",0,o],61507);var d=e.i(71645),h=e.i(63676);e.i(4121);var u=e.i(57667);e.s(["MoveModal",0,function({items:e,allFolders:t,currentPath:a,onMove:i,onClose:l}){let[r,c]=(0,d.useState)(""),[o,m]=(0,d.useState)(a),p=r?[{path:"",name:"全部内容"},...r.split("/").filter(Boolean).map((e,t,s)=>({path:s.slice(0,t+1).join("/"),name:e}))]:[],x=t.filter(e=>{if(""===r)return!e.path.includes("/");let t=r+"/";return!!e.path.startsWith(t)&&!e.path.substring(t.length).includes("/")});return(0,s.jsx)(u.ModalOverlay,{onClose:l,children:(0,s.jsxs)("div",{className:"move-modal",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("div",{className:"modal-header",children:[(0,s.jsx)("h3",{children:"移动到"}),(0,s.jsx)("button",{type:"button",onClick:l,className:"btn btn-icon",children:(0,s.jsx)(h.X,{size:18})})]}),(0,s.jsxs)("p",{className:"move-modal-desc",children:["已选 ",e.length," 个项目"]}),(0,s.jsx)("div",{className:"move-new-folder",children:(0,s.jsx)("input",{type:"text",className:"input",value:o,onChange:e=>m(e.target.value),placeholder:"输入路径创建嵌套文件夹"})}),(0,s.jsx)("p",{className:"move-modal-hint",children:"如 图片/壁纸"}),(0,s.jsx)("div",{className:"move-breadcrumb",children:p.map((e,t)=>(0,s.jsxs)(d.default.Fragment,{children:[t>0&&(0,s.jsx)("span",{className:"breadcrumb-separator",children:"/"}),(0,s.jsx)("button",{type:"button",onClick:()=>{c(e.path),m(e.path)},className:`move-breadcrumb-btn ${r===e.path&&!o?"active":""}`,children:e.name})]},e.path))}),(0,s.jsxs)("div",{className:"move-folder-list",children:[0===x.length&&(0,s.jsx)("p",{className:"move-modal-empty",children:"该目录下没有子文件夹"}),x.map(e=>(0,s.jsxs)("button",{type:"button",onClick:()=>c(e.path),className:`move-folder-item ${r===e.path&&!o?"selected":""}`,children:[(0,s.jsx)(n.Folder,{size:16}),(0,s.jsx)("span",{children:e.name})]},e.path))]}),(0,s.jsxs)("div",{className:"modal-actions",children:[(0,s.jsx)("button",{type:"button",onClick:l,className:"btn btn-secondary",children:"取消"}),(0,s.jsx)("button",{type:"button",onClick:function(){i(r||o.trim())},className:"btn btn-primary",children:"移动"})]})]})})}],40616)},53138,51757,e=>{"use strict";var t=e.i(56420);let s=(0,t.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["AlertTriangle",0,s],53138);let a=(0,t.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",0,a],51757)},32391,60923,86512,e=>{"use strict";var t=e.i(18050),s=e.i(71645),a=e.i(53138),i=e.i(51757),n=e.i(31214),l=e.i(62368);let r=(0,e.i(56420).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);var c=e.i(25981),o=e.i(71192);e.s(["NoteMoreMenu",0,function({sync:e}){let d=(0,s.useRef)(null),[h,u]=(0,s.useState)(!1),m=(0,o.useUserStore)(e=>e.wallet),p=null!==e.action;async function x(e){u(!1),await e()}return(0,s.useEffect)(()=>{if(h)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){d.current?.contains(e.target)||u(!1)}},[h]),(0,t.jsxs)("div",{className:"note-more",ref:d,children:[(0,t.jsx)("button",{className:"btn btn-icon note-more-trigger",onClick:()=>u(e=>!e),title:"更多","aria-label":"更多",children:(0,t.jsx)(r,{size:16})}),h&&(0,t.jsxs)("div",{className:"note-more-menu",children:[(0,t.jsxs)("div",{className:`ui-notice note-sync-status ${e.hasConflict?"warning conflict":""}`,children:[(0,t.jsx)("span",{className:`ui-icon-tile note-sync-status-icon ${e.hasConflict?"warning":""}`,children:e.hasConflict?(0,t.jsx)(a.AlertTriangle,{size:16}):"synced"===e.status?(0,t.jsx)(i.CheckCircle2,{size:16}):(0,t.jsx)(n.Cloud,{size:16})}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:"云同步"}),(0,t.jsx)("small",{children:e.statusLabel})]})]}),(0,t.jsxs)("button",{className:"note-more-item",onClick:()=>x(e.exportLocalBackup),disabled:!m||p,children:[(0,t.jsx)(c.Upload,{size:16}),"本地导出"]}),(0,t.jsxs)("button",{className:"note-more-item",onClick:()=>x(e.importLocalBackup),disabled:!m||p,children:[(0,t.jsx)(l.Download,{size:16}),"本地导入"]})]})]})}],32391);var d=e.i(16327),h=e.i(67927),u=e.i(26067),m=e.i(63676);e.i(4121);var p=e.i(57667),x=e.i(3789);e.s(["NoteMoveModal",0,function({target:e,directories:a,onMove:i,onClose:n}){let l=(0,x.normalizeNotePath)(e.path||""),r="directory"===e.type?(0,x.normalizeNotePath)(e.path?`${e.path}/${e.name}`:e.name):(0,x.getNoteFullPath)(e),c=a.filter(t=>"directory"!==e.type||t.path!==r&&!t.path.startsWith(`${r}/`)),[o,j]=(0,s.useState)(l),[f,y]=(0,s.useState)(""),[b,v]=(0,s.useState)(new Set),k=(0,x.normalizeNotePath)(f),N=f.trim()?k:o,g=(0,x.normalizeNotePath)(N)===l,C=new Map;for(let e of c){let t=C.get(e.parentPath)||[];t.push(e),C.set(e.parentPath,t)}let M=c.filter(e=>{if(!e.parentPath)return!0;let t=e.parentPath.split("/").filter(Boolean);return t.every((e,s)=>b.has(t.slice(0,s+1).join("/")))}),w=[{label:"全部笔记",path:""},...o.split("/").filter(Boolean).map((e,t,s)=>({label:e,path:s.slice(0,t+1).join("/")}))];function z(e){j((0,x.normalizeNotePath)(e)),y("")}return(0,t.jsx)(p.ModalOverlay,{onClose:n,children:(0,t.jsxs)("div",{className:"note-move-modal",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"modal-header",children:[(0,t.jsx)("h3",{children:"移动笔记"}),(0,t.jsx)("button",{className:"btn btn-icon",onClick:n,children:(0,t.jsx)(m.X,{size:18})})]}),(0,t.jsxs)("div",{className:"note-move-target",children:[(0,t.jsx)("span",{children:"正在移动"}),(0,t.jsx)("strong",{children:e.name})]}),(0,t.jsx)("div",{className:"note-move-path",children:w.map((e,a)=>(0,t.jsxs)(s.default.Fragment,{children:[a>0&&(0,t.jsx)("span",{children:"/"}),(0,t.jsx)("button",{type:"button",onClick:()=>z(e.path),children:e.label})]},e.path||"root"))}),(0,t.jsxs)("div",{className:"note-move-folder-list",children:[(0,t.jsxs)("button",{type:"button",className:`note-move-folder-item ${""===o?"selected":""}`,onClick:()=>z(""),children:[(0,t.jsx)("span",{className:"note-move-folder-spacer"}),(0,t.jsx)(u.Folder,{className:"note-move-folder-icon",size:16}),(0,t.jsx)("span",{children:"全部笔记"})]}),0===c.length?(0,t.jsx)("p",{className:"note-move-empty",children:"还没有可选文件夹"}):M.map(e=>{let s=C.has(e.path),a=b.has(e.path);return(0,t.jsxs)("button",{type:"button",className:`note-move-folder-item note-move-depth-${Math.min(e.depth,4)} ${o===e.path?"selected":""}`,onClick:()=>{var t;z(t=e.path),C.has(t)&&v(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},children:[s?a?(0,t.jsx)(d.ChevronDown,{className:"note-move-expander",size:14}):(0,t.jsx)(h.ChevronRight,{className:"note-move-expander",size:14}):(0,t.jsx)("span",{className:"note-move-folder-spacer"}),(0,t.jsx)(u.Folder,{className:"note-move-folder-icon",size:16}),(0,t.jsx)("span",{children:e.name}),e.parentPath&&(0,t.jsx)("small",{children:e.parentPath})]},e.path)})]}),(0,t.jsx)("input",{className:"input input-compact",value:f,onChange:e=>y(e.target.value),placeholder:"或输入新目录路径,如 文章/摘录"}),(0,t.jsxs)("div",{className:"note-move-destination",children:["目标位置:",N||"全部笔记"]}),(0,t.jsxs)("div",{className:"modal-actions",children:[(0,t.jsx)("button",{className:"btn btn-secondary",onClick:n,children:"取消"}),(0,t.jsx)("button",{className:"btn btn-primary",onClick:function(){g||i(N)},disabled:g,children:"移动"})]})]})})}],60923);var j=e.i(11241),f=e.i(27648);e.s(["NoteSidebar",0,function({children:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sidebar-header sidebar-header-link",onClick:()=>{window.location.href="/"},children:[(0,t.jsx)(j.ArrowLeft,{size:18}),(0,t.jsx)("h1",{children:"MOST PEOPLE"})]}),e,(0,t.jsx)(f.default,{})]})}],86512)},38999,e=>{"use strict";var t=e.i(18050),s=e.i(71645),a=e.i(53138),i=e.i(11241),n=e.i(56420);let l=(0,n.default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);var r=e.i(51757),c=e.i(31214),o=e.i(58072),d=e.i(72382),h=e.i(26091),u=e.i(26067),m=e.i(10818);let p=(0,n.default)("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]);var x=e.i(68590),j=e.i(96699);let f=(0,n.default)("mouse-pointer-click",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]]),y=(0,n.default)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]);var b=e.i(77071),v=e.i(66595),k=e.i(41220),N=e.i(16306);let g=(0,n.default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);var C=e.i(35965);let M=(0,n.default)("type",[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]);var w=e.i(66627),z=e.i(3593),S=e.i(71192),P=e.i(23165),O=e.i(77685),L=e.i(19767),F=e.i(24851),T=e.i(56691),E=e.i(61507),A=e.i(58501),I=e.i(64830),B=e.i(40616),D=e.i(42724),_=e.i(32391),$=e.i(60923),U=e.i(86512),R=e.i(16546);e.i(4121);var q=e.i(88361),K=e.i(47910),H=e.i(57667),V=e.i(80809),W=e.i(79952);let G={name:"产品计划.md",cid:"bafy-demo-note",path:"产品/计划",content:"# MostBox Demo",size:2048,type:"file",created_at:17645472e5,updated_at:17645472e5},X=[{path:"产品",name:"产品",parentPath:"",depth:0},{path:"产品/计划",name:"计划",parentPath:"产品",depth:1},{path:"产品/摘录",name:"摘录",parentPath:"产品",depth:1},{path:"灵感",name:"灵感",parentPath:"",depth:0}];function Y({id:e,icon:s,eyebrow:a,title:i,description:n,children:l}){return(0,t.jsxs)("section",{className:"demo-section",id:e,children:[(0,t.jsxs)("div",{className:"demo-section-heading",children:[(0,t.jsx)("div",{className:"demo-section-icon",children:s}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"demo-eyebrow",children:a}),(0,t.jsx)("h2",{children:i}),(0,t.jsx)("p",{children:n})]})]}),l]})}function Z({title:e,children:s,className:a=""}){let i=a?`demo-surface ${a}`:"demo-surface";return(0,t.jsxs)("article",{className:i,children:[(0,t.jsx)("h3",{children:e}),s]})}e.s(["default",0,function(){let[e,n]=(0,s.useState)("r2"),[J,Q]=(0,s.useState)(!1),[ee,et]=(0,s.useState)(!1),[es,ea]=(0,s.useState)(!1),[ei,en]=(0,s.useState)(!1),[el,er]=(0,s.useState)(!1),[ec,eo]=(0,s.useState)([]),ed=(0,z.useAppStore)(e=>e.isDarkMode),eh=(0,z.useAppStore)(e=>e.setIsDarkMode),eu=(0,z.useAppStore)(e=>e.openConnectModal),em=(0,S.useUserStore)(e=>e.openLoginModal);function ep(e,t){eo(s=>[...s.slice(-4),{id:Date.now(),type:e,message:t}])}return(0,t.jsxs)("main",{className:"demo-page",children:[(0,t.jsxs)("header",{className:"demo-topbar",children:[(0,t.jsxs)("a",{className:"mkt-nav-logo",href:"/",children:[(0,t.jsx)(i.ArrowLeft,{size:18}),(0,t.jsx)("span",{children:"MOST PEOPLE"})]}),(0,t.jsx)("button",{type:"button",className:"mkt-theme-toggle",onClick:()=>eh(!ed),"aria-label":"切换主题",title:"切换主题",children:ed?(0,t.jsx)(C.Sun,{size:16}):(0,t.jsx)(j.Moon,{size:16})})]}),(0,t.jsx)("section",{className:"demo-hero",children:(0,t.jsxs)("div",{className:"demo-hero-copy",children:[(0,t.jsx)("p",{className:"demo-eyebrow",children:"Shared Component Library"}),(0,t.jsx)("h1",{children:"共享组件检查页"}),(0,t.jsx)("p",{children:"把基础样式、全局 UI 片段和已迁入 components 的共享组件按用途集中展示, 方便以后改 UI 时直接从这里检查联动效果。"})]})}),(0,t.jsx)(Y,{id:"foundation",icon:(0,t.jsx)(y,{size:18}),eyebrow:"Foundation",title:"基础样式",description:"全局按钮、输入框、开关、分段控件和状态反馈。",children:(0,t.jsxs)("div",{className:"demo-grid demo-grid-two",children:[(0,t.jsx)(Z,{title:"默认按钮",children:(0,t.jsxs)("div",{className:"demo-control-row",children:[(0,t.jsxs)("button",{className:"btn btn-primary",children:[(0,t.jsx)(r.CheckCircle2,{size:16}),"Primary"]}),(0,t.jsxs)("button",{className:"btn btn-secondary",children:[(0,t.jsx)(m.Info,{size:16}),"Secondary"]}),(0,t.jsxs)("button",{className:"btn btn-ghost",children:[(0,t.jsx)(g,{size:16}),"Ghost"]}),(0,t.jsxs)("button",{className:"btn btn-danger",children:[(0,t.jsx)(N.ShieldAlert,{size:16}),"Danger"]}),(0,t.jsx)("button",{className:"btn btn-primary",disabled:!0,children:"Disabled"}),(0,t.jsxs)("button",{type:"button",className:"ui-action-dashed",children:[(0,t.jsx)(b.Plus,{size:16}),"Dashed"]})]})}),(0,t.jsx)(Z,{title:"小号按钮",children:(0,t.jsxs)("div",{className:"demo-control-row",children:[(0,t.jsxs)("button",{className:"btn btn-sm btn-primary",children:[(0,t.jsx)(r.CheckCircle2,{size:14}),"Primary"]}),(0,t.jsxs)("button",{className:"btn btn-sm btn-secondary",children:[(0,t.jsx)(m.Info,{size:14}),"Secondary"]}),(0,t.jsxs)("button",{className:"btn btn-sm btn-ghost",children:[(0,t.jsx)(g,{size:14}),"Ghost"]}),(0,t.jsxs)("button",{className:"btn btn-sm btn-danger",children:[(0,t.jsx)(N.ShieldAlert,{size:14}),"Danger"]}),(0,t.jsx)("button",{className:"btn btn-sm btn-icon","aria-label":"小号图标按钮",children:(0,t.jsx)(l,{size:14})}),(0,t.jsx)("button",{className:"btn btn-sm btn-primary",disabled:!0,children:"Disabled"}),(0,t.jsxs)("button",{type:"button",className:"ui-action-dashed ui-action-dashed-sm",children:[(0,t.jsx)(b.Plus,{size:14}),"Dashed"]})]})}),(0,t.jsx)(Z,{title:"输入控件",children:(0,t.jsxs)("div",{className:"demo-input-grid",children:[(0,t.jsx)("input",{className:"input",value:"标准输入框",readOnly:!0}),(0,t.jsx)("input",{className:"input input-compact",value:"紧凑输入框",readOnly:!0}),(0,t.jsx)("input",{className:"input input-pill",value:"胶囊输入框",readOnly:!0}),(0,t.jsx)("textarea",{className:"textarea",value:"多行输入框",rows:3,readOnly:!0}),(0,t.jsxs)("div",{className:"ui-input-control",children:[(0,t.jsx)(v.Search,{className:"ui-input-icon",size:15}),(0,t.jsx)("input",{className:"input input-compact",placeholder:"带图标搜索",readOnly:!0})]})]})}),(0,t.jsx)(Z,{title:"开关、分段与徽标",children:(0,t.jsxs)("div",{className:"demo-stack",children:[(0,t.jsxs)("label",{className:"setting-switch",children:[(0,t.jsx)("span",{children:"显示 #地址后四位"}),(0,t.jsx)("input",{type:"checkbox",defaultChecked:!0})]}),(0,t.jsxs)("label",{className:"setting-switch",children:[(0,t.jsx)("span",{children:"自动同步"}),(0,t.jsx)("input",{type:"checkbox"})]}),(0,t.jsxs)("div",{className:"ui-segmented-control download-source-tabs demo-download-source-tabs",role:"tablist","aria-label":"下载来源",children:[(0,t.jsxs)("button",{type:"button",className:"r2"===e?"ui-segmented-option download-source-tab is-active":"ui-segmented-option download-source-tab",role:"tab","aria-selected":"r2"===e,onClick:()=>n("r2"),children:[(0,t.jsx)(c.Cloud,{size:15}),"R2"]}),(0,t.jsxs)("button",{type:"button",className:"github"===e?"ui-segmented-option download-source-tab is-active":"ui-segmented-option download-source-tab",role:"tab","aria-selected":"github"===e,onClick:()=>n("github"),children:[(0,t.jsx)(o.Code,{size:15}),"GitHub"]})]}),(0,t.jsxs)("div",{className:"demo-control-row",children:[(0,t.jsxs)("span",{className:"ui-badge success",children:[(0,t.jsx)("span",{className:"status-dot success"}),"已连接"]}),(0,t.jsxs)("span",{className:"ui-badge warning",children:[(0,t.jsx)("span",{className:"status-dot warning"}),"检测中"]}),(0,t.jsxs)("span",{className:"ui-badge danger",children:[(0,t.jsx)("span",{className:"status-dot danger"}),"不可用"]}),(0,t.jsxs)("span",{className:"ui-badge info",children:[(0,t.jsx)("span",{className:"status-dot info"}),"已就绪"]})]})]})})]})}),(0,t.jsx)(Y,{id:"brand",icon:(0,t.jsx)(M,{size:18}),eyebrow:"Brand",title:"品牌与导航",description:"Logo、营销导航和页脚放在独立预览面板里,避免和 demo 容器互相挤压。",children:(0,t.jsxs)("div",{className:"demo-grid demo-brand-grid",children:[(0,t.jsx)(Z,{title:"LogoIcon",children:(0,t.jsxs)("div",{className:"demo-logo-row",children:[(0,t.jsx)(A.LogoIcon,{size:24}),(0,t.jsx)(A.LogoIcon,{size:36}),(0,t.jsx)(A.LogoIcon,{size:52})]})}),(0,t.jsx)(Z,{title:"Nav",className:"demo-nav-preview",children:(0,t.jsx)(D.Nav,{})}),(0,t.jsx)(Z,{title:"Footer",className:"demo-footer-preview",children:(0,t.jsx)(T.Footer,{})})]})}),(0,t.jsx)(Y,{id:"feedback",icon:(0,t.jsx)(f,{size:18}),eyebrow:"Feedback",title:"弹窗与反馈",description:"弹窗、Toast、连接和登录入口都使用按钮触发,页面加载时不主动打开。",children:(0,t.jsx)(Z,{title:"触发式组件",children:(0,t.jsxs)("div",{className:"demo-control-row",children:[(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary",onClick:()=>Q(!0),children:[(0,t.jsx)(d.Eye,{size:16}),"ModalOverlay"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary",onClick:()=>et(!0),children:[(0,t.jsx)(N.ShieldAlert,{size:16}),"ConfirmModal"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary",onClick:()=>ea(!0),children:[(0,t.jsx)(M,{size:16}),"InputModal"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary",onClick:()=>ep("info","这是一条本地 demo toast"),children:[(0,t.jsx)(l,{size:16}),"Toast"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary",onClick:eu,children:[(0,t.jsx)(k.Server,{size:16}),"ConnectModal"]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary",onClick:em,children:[(0,t.jsx)(p,{size:16}),"UserLoginModal"]})]})})}),(0,t.jsx)(Y,{id:"patterns",icon:(0,t.jsx)(g,{size:18}),eyebrow:"Patterns",title:"全局样式片段",description:"页面里反复复用的全局 class 和组合形态。",children:(0,t.jsxs)("div",{className:"demo-grid demo-grid-two",children:[(0,t.jsx)(Z,{title:"文件行",children:(0,t.jsxs)("div",{className:"demo-stack",children:[(0,t.jsx)(O.ChatAttachmentCard,{attachment:{kind:"text",cid:"bafy-demo-text",fileName:"demo-preview.txt",link:"most://bafy-demo-text?filename=demo-preview.txt",size:12697},status:"available"}),(0,t.jsx)(O.ChatAttachmentCard,{attachment:{kind:"video",cid:"bafy-demo-video",fileName:"movie-sample.mp4",link:"most://bafy-demo-video?filename=movie-sample.mp4",size:0},status:"checking"})]})}),(0,t.jsx)(Z,{title:"空状态",children:(0,t.jsxs)("div",{className:"ui-empty-state demo-empty-preview",children:[(0,t.jsx)("div",{className:"ui-empty-icon",children:(0,t.jsx)(x.MessageSquare,{size:28})}),(0,t.jsx)("h4",{className:"ui-empty-title",children:"暂无消息"}),(0,t.jsx)("p",{className:"ui-empty-desc",children:"开始聊天或选择一个频道。"})]})}),(0,t.jsx)(Z,{title:"列表与元信息",children:(0,t.jsxs)("div",{className:"demo-stack",children:[(0,t.jsx)("article",{className:"ui-list-item active",children:(0,t.jsxs)("button",{type:"button",className:"ui-list-item-main",children:[(0,t.jsx)("span",{className:"ui-list-icon",children:(0,t.jsx)(h.FileText,{size:18})}),(0,t.jsxs)("span",{className:"ui-list-copy",children:[(0,t.jsx)("span",{className:"ui-list-title",children:"产品计划.md"}),(0,t.jsx)("span",{className:"ui-list-desc",children:"CID、下载和做种说明"})]}),(0,t.jsx)("span",{className:"ui-list-meta",children:"今天"})]})}),(0,t.jsx)("article",{className:"ui-list-item",children:(0,t.jsxs)("button",{type:"button",className:"ui-list-item-main",children:[(0,t.jsx)("span",{className:"ui-list-icon warning",children:(0,t.jsx)(u.Folder,{size:18})}),(0,t.jsxs)("span",{className:"ui-list-copy",children:[(0,t.jsx)("span",{className:"ui-list-title",children:"归档"}),(0,t.jsx)("span",{className:"ui-list-desc",children:"文件夹"})]}),(0,t.jsx)("span",{className:"ui-list-meta",children:"12 篇"})]})}),(0,t.jsx)("div",{className:"ui-meta-box",children:"频道 ID:general"}),(0,t.jsx)("div",{className:"ui-empty-inline",children:"暂无成员"})]})}),(0,t.jsx)(Z,{title:"通知、标签与代码",children:(0,t.jsxs)("div",{className:"demo-stack",children:[(0,t.jsxs)("p",{className:"ui-notice success",children:[(0,t.jsx)(r.CheckCircle2,{size:14}),"同步完成,所有内容已更新。"]}),(0,t.jsxs)("p",{className:"ui-notice warning",children:[(0,t.jsx)(a.AlertTriangle,{size:14}),"节点正在检测中,请稍候。"]}),(0,t.jsxs)("ul",{className:"ui-chip-list demo-chip-preview",children:[(0,t.jsx)("li",{className:"ui-chip",children:"MostBox"}),(0,t.jsx)("li",{className:"ui-chip",children:"P2P"}),(0,t.jsx)("li",{className:"ui-chip",children:"CID"}),(0,t.jsx)("li",{className:"ui-chip",children:"Hyperdrive"})]}),(0,t.jsx)("code",{className:"ui-code-box",children:"most://bafy-demo-cid?filename=demo.txt"}),(0,t.jsxs)("div",{className:"ui-peer-info demo-peer-info",children:[(0,t.jsx)("span",{className:"peer-dot"}),(0,t.jsx)("span",{className:"peer-id",children:"12D3KooW...demo"}),(0,t.jsx)(w.Wifi,{size:14})]})]})})]})}),(0,t.jsx)(Y,{id:"shared",icon:(0,t.jsx)(h.FileText,{size:18}),eyebrow:"Shared Components",title:"共享组件",description:"已迁入 components 的页面组件,只展示外观和轻交互。",children:(0,t.jsxs)("div",{className:"demo-grid demo-grid-two",children:[(0,t.jsx)(Z,{title:"Web3 小组件",children:(0,t.jsxs)("div",{className:"demo-stack",children:[(0,t.jsx)(I.KeyCard,{title:"Ed25519 公钥",icon:(0,t.jsx)(N.ShieldAlert,{size:18}),children:(0,t.jsxs)("div",{className:"mono-row",children:[(0,t.jsx)("code",{className:"mono",children:"ed25519-demo-public-key"}),(0,t.jsx)(P.CopyButton,{text:"ed25519-demo-public-key"})]})}),(0,t.jsx)(F.EmptyState,{icon:(0,t.jsx)(p,{size:32}),message:"请输入用户名和密码以查看身份信息"})]})}),(0,t.jsx)(Z,{title:"PEM 与复制",className:"demo-pem-preview",children:(0,t.jsx)(R.PemBlock,{label:"demo.pub",filename:"demo.pub",pem:"-----BEGIN PUBLIC KEY-----\nMOSTBOXDEMO\n-----END PUBLIC KEY-----"})}),(0,t.jsxs)(Z,{title:"文件管理卡片",children:[(0,t.jsxs)("div",{className:"demo-app-card-grid",children:[(0,t.jsx)(E.FolderCard,{folder:{name:"图片",path:"图片"},onClick:()=>ep("info","FolderCard demo")}),(0,t.jsx)(E.FileCard,{file:{cid:"bafy-demo-file",fileName:"图片/demo.png",starred:!0},isSelected:!0,onSelect:()=>ep("info","FileCard select"),onPreview:()=>ep("info","FileCard preview")})]}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary demo-move-trigger",onClick:()=>en(!0),children:[(0,t.jsx)(u.Folder,{size:16}),"MoveModal"]})]}),(0,t.jsx)(Z,{title:"笔记组件",children:(0,t.jsxs)("div",{className:"demo-note-shell",children:[(0,t.jsxs)("div",{className:"demo-note-header",children:[(0,t.jsx)("span",{children:"笔记"}),(0,t.jsx)(_.NoteMoreMenu,{sync:{action:null,status:"synced",statusLabel:"已同步",hasConflict:!1,uploadNow:async()=>!0,restoreFromCloud:async()=>!0,exportLocalBackup:()=>ep("info","本地导出"),importLocalBackup:()=>ep("info","本地导入")}})]}),(0,t.jsx)("div",{className:"sidebar demo-note-sidebar",children:(0,t.jsx)(U.NoteSidebar,{children:(0,t.jsx)("div",{className:"sidebar-empty-state",children:(0,t.jsx)("p",{children:"NoteSidebar 已迁入 components"})})})}),(0,t.jsxs)("button",{type:"button",className:"btn btn-secondary demo-move-trigger",onClick:()=>er(!0),children:[(0,t.jsx)(u.Folder,{size:16}),"NoteMoveModal"]})]})})]})}),ec.map((e,s)=>(0,t.jsx)(V.Toast,{message:e.message,type:e.type,index:s,onDone:()=>{var t;return t=e.id,void eo(e=>e.filter(e=>e.id!==t))}},e.id)),J&&(0,t.jsx)(H.ModalOverlay,{onClose:()=>Q(!1),closeOnOverlayClick:!0,children:(0,t.jsxs)("div",{className:"demo-basic-modal",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("h3",{children:"ModalOverlay"}),(0,t.jsx)("p",{children:"这是基础容器示例,用来检查玻璃背景、居中和关闭行为。"}),(0,t.jsx)("button",{type:"button",className:"btn btn-primary",onClick:()=>Q(!1),children:"关闭"})]})}),ee&&(0,t.jsx)(q.ConfirmModal,{title:"确认弹窗示例",message:"用于检查标题、正文、按钮和危险态之外的默认确认状态。",confirmText:"确认",onConfirm:()=>{et(!1),ep("success","ConfirmModal 已确认")},onClose:()=>et(!1),closeOnOverlayClick:!0}),es&&(0,t.jsx)(K.InputModal,{title:"输入弹窗示例",placeholder:"输入任意文本",confirmText:"保存",defaultValue:"MostBox",onConfirm:e=>{ea(!1),ep("success",`InputModal: ${e}`)},onClose:()=>ea(!1),validate:e=>e.length<2?"至少输入 2 个字符":""}),ei&&(0,t.jsx)(B.MoveModal,{items:[{cid:"bafy-demo-file"}],allFolders:[{name:"图片",path:"图片"},{name:"壁纸",path:"图片/壁纸"},{name:"文档",path:"文档"}],currentPath:"图片",onMove:e=>{en(!1),ep("success",`MoveModal: ${e||"根目录"}`)},onClose:()=>en(!1)}),el&&(0,t.jsx)($.NoteMoveModal,{target:G,directories:X,onMove:e=>{er(!1),ep("success",`NoteMoveModal: ${e||"全部笔记"}`)},onClose:()=>er(!1)}),(0,t.jsx)(L.default,{}),(0,t.jsx)(W.default,{})]})}],38999)}]);