alistgo-alist-web 3.61.0 → 3.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/dist/assets/{2fa-cb7ea2a9.js → 2fa-abc3de78.js} +1 -1
  2. package/dist/assets/{2fa-legacy.a3f8a30e.js → 2fa-legacy.55737098.js} +1 -1
  3. package/dist/assets/{About-6096f6c7.js → About-ebade33f.js} +1 -1
  4. package/dist/assets/{About-legacy.e9dbd119.js → About-legacy.1ab87d8b.js} +1 -1
  5. package/dist/assets/AddLabelDialog-d838839b.js +1 -0
  6. package/dist/assets/{AddLabelDialog-legacy.09ed510e.js → AddLabelDialog-legacy.0c773d90.js} +1 -1
  7. package/dist/assets/AddOrEdit-616ec90f.js +1 -0
  8. package/dist/assets/{AddOrEdit-b0e747e7.js → AddOrEdit-81330314.js} +4 -4
  9. package/dist/assets/AddOrEdit-b4bb1c42.js +1 -0
  10. package/dist/assets/AddOrEdit-ebed8ac0.js +1 -0
  11. package/dist/assets/{AddOrEdit-legacy.adf1d406.js → AddOrEdit-legacy.2fd88478.js} +1 -1
  12. package/dist/assets/{AddOrEdit-legacy.8f70f59e.js → AddOrEdit-legacy.3af450b0.js} +1 -1
  13. package/dist/assets/AddOrEdit-legacy.abd115d9.js +1 -0
  14. package/dist/assets/{AddOrEdit-legacy.05b84ff0.js → AddOrEdit-legacy.acbb24c8.js} +1 -1
  15. package/dist/assets/Common-ca550843.js +1 -0
  16. package/dist/assets/{Common-legacy.65996de0.js → Common-legacy.b3ab5071.js} +1 -1
  17. package/dist/assets/{Copy-85fded0f.js → Copy-0384ca0d.js} +1 -1
  18. package/dist/assets/{Copy-legacy.58c8c4e6.js → Copy-legacy.e201e664.js} +1 -1
  19. package/dist/assets/Decompress-272f91b5.js +1 -0
  20. package/dist/assets/{Decompress-legacy.0b27b3f9.js → Decompress-legacy.3df460b6.js} +1 -1
  21. package/dist/assets/{DeletePopover-89ff4c98.js → DeletePopover-3958d0ad.js} +1 -1
  22. package/dist/assets/{DeletePopover-legacy.4c59c493.js → DeletePopover-legacy.49680594.js} +1 -1
  23. package/dist/assets/EditLabelDialog-ea31ea23.js +1 -0
  24. package/dist/assets/{EditLabelDialog-legacy.0ab4de9e.js → EditLabelDialog-legacy.2b5bee02.js} +1 -1
  25. package/dist/assets/{File-38711440.js → File-9c374f1a.js} +1 -1
  26. package/dist/assets/{File-legacy.1dc99454.js → File-legacy.9d2c3ca7.js} +1 -1
  27. package/dist/assets/{Folder-82be7ec7.js → Folder-14a25b89.js} +2 -2
  28. package/dist/assets/{Folder-legacy.aaace84d.js → Folder-legacy.de37bd62.js} +2 -2
  29. package/dist/assets/{FolderTree-d1e90c37.js → FolderTree-7ae29384.js} +1 -1
  30. package/dist/assets/{FolderTree-legacy.a888e639.js → FolderTree-legacy.53528cb3.js} +1 -1
  31. package/dist/assets/Frp-f7302299.js +2 -0
  32. package/dist/assets/{Frp-legacy.1aa3da75.js → Frp-legacy.71102175.js} +1 -1
  33. package/dist/assets/Grid-f0c4d013.js +1 -0
  34. package/dist/assets/{Grid-legacy.d2b1b604.js → Grid-legacy.164386d7.js} +1 -1
  35. package/dist/assets/{GridItem-c56d6204.js → GridItem-657d21bd.js} +1 -1
  36. package/dist/assets/{GridItem-legacy.bf169195.js → GridItem-legacy.2c3dbff8.js} +1 -1
  37. package/dist/assets/ImageWithError-270ffbd0.js +1 -0
  38. package/dist/assets/{ImageWithError-legacy.00a2062f.js → ImageWithError-legacy.991e20db.js} +1 -1
  39. package/dist/assets/{Images-94d04fd2.js → Images-1b5fd472.js} +1 -1
  40. package/dist/assets/{Images-legacy.20063334.js → Images-legacy.d3a439bd.js} +1 -1
  41. package/dist/assets/Layout-77c54d54.js +11 -0
  42. package/dist/assets/Layout-legacy.d9c36690.js +1 -0
  43. package/dist/assets/{List-3ce3bd73.js → List-cb3f2b1f.js} +2 -2
  44. package/dist/assets/{List-legacy.47b3ba7a.js → List-legacy.d509dbd5.js} +1 -1
  45. package/dist/assets/Messenger-69bf75f1.js +1 -0
  46. package/dist/assets/{Messenger-legacy.4d680989.js → Messenger-legacy.2447ffbd.js} +1 -1
  47. package/dist/assets/{Metas-2c92e91e.js → Metas-6fc6206f.js} +1 -1
  48. package/dist/assets/{Metas-legacy.bc31a988.js → Metas-legacy.a22fda65.js} +1 -1
  49. package/dist/assets/Other-bf0c8f40.js +1 -0
  50. package/dist/assets/Other-legacy.0b52198b.js +1 -0
  51. package/dist/assets/{PackageDownload-ccd083d4.js → PackageDownload-f1225dad.js} +1 -1
  52. package/dist/assets/{PackageDownload-legacy.8cce0507.js → PackageDownload-legacy.5ce2ee6a.js} +1 -1
  53. package/dist/assets/{Paginator-9bdd1cd7.js → Paginator-8b9321c4.js} +1 -1
  54. package/dist/assets/{Paginator-legacy.81f596db.js → Paginator-legacy.25f9c490.js} +1 -1
  55. package/dist/assets/{Password-f142627a.js → Password-b98cef17.js} +1 -1
  56. package/dist/assets/{Password-legacy.ef070148.js → Password-legacy.f4c14222.js} +1 -1
  57. package/dist/assets/PermissionForm-7a161a53.js +1 -0
  58. package/dist/assets/{PermissionForm-legacy.ef1a4800.js → PermissionForm-legacy.14a9fe69.js} +1 -1
  59. package/dist/assets/{Profile-2a100efe.js → Profile-e8195cc8.js} +1 -1
  60. package/dist/assets/{Profile-legacy.66edb2d1.js → Profile-legacy.876024b1.js} +1 -1
  61. package/dist/assets/{ResponsiveGrid-5e43552b.js → ResponsiveGrid-0e943896.js} +1 -1
  62. package/dist/assets/{ResponsiveGrid-legacy.0bb996c1.js → ResponsiveGrid-legacy.a9062597.js} +1 -1
  63. package/dist/assets/{Role-cbe457f5.js → Role-3e2c225c.js} +1 -1
  64. package/dist/assets/{Role-legacy.c7e0abb3.js → Role-legacy.2745cfe3.js} +1 -1
  65. package/dist/assets/S3-3211311d.js +1 -0
  66. package/dist/assets/{S3-legacy.c4d143d3.js → S3-legacy.6b587900.js} +1 -1
  67. package/dist/assets/{S3Transition-95314e5a.js → S3Transition-4b41bf18.js} +1 -1
  68. package/dist/assets/{S3Transition-legacy.c82da694.js → S3Transition-legacy.cf3cde2a.js} +1 -1
  69. package/dist/assets/SettingItem-e7a7bfc9.js +1 -0
  70. package/dist/assets/{SettingItem-legacy.92882c3f.js → SettingItem-legacy.b5a9ffeb.js} +1 -1
  71. package/dist/assets/Storages-baae5b17.js +1 -0
  72. package/dist/assets/{Storages-legacy.8f8b8a89.js → Storages-legacy.bf0c1aa1.js} +1 -1
  73. package/dist/assets/StrmGenerate-768d6021.js +1 -0
  74. package/dist/assets/StrmGenerate-d4f07081.js +1 -0
  75. package/dist/assets/StrmGenerate-legacy.4402360f.js +1 -0
  76. package/dist/assets/StrmGenerate-legacy.ecbb8e9d.js +1 -0
  77. package/dist/assets/Tag-ffe1a992.js +1 -0
  78. package/dist/assets/{Tag-legacy.cc93cf4c.js → Tag-legacy.971a1953.js} +1 -1
  79. package/dist/assets/Task-438c4d6b.js +1 -0
  80. package/dist/assets/{Task-legacy.4ab8b723.js → Task-legacy.607e52ad.js} +1 -1
  81. package/dist/assets/Tasks-c0229b29.js +1 -0
  82. package/dist/assets/{Tasks-legacy.65d524f1.js → Tasks-legacy.f3598230.js} +1 -1
  83. package/dist/assets/{Upload-826e41e6.js → Upload-958e240c.js} +2 -2
  84. package/dist/assets/Upload-e69eb0ff.js +1 -0
  85. package/dist/assets/{Upload-legacy.9122522b.js → Upload-legacy.03c286e2.js} +1 -1
  86. package/dist/assets/{Upload-legacy.319a15b8.js → Upload-legacy.698d3c2b.js} +1 -1
  87. package/dist/assets/Users-bdf25bea.js +1 -0
  88. package/dist/assets/{Users-legacy.887929e8.js → Users-legacy.b0075433.js} +1 -1
  89. package/dist/assets/{Wether-029f9625.js → Wether-891c8709.js} +1 -1
  90. package/dist/assets/{Wether-legacy.539b2a22.js → Wether-legacy.7a5c9f59.js} +1 -1
  91. package/dist/assets/{aliyun_office-069047f5.js → aliyun_office-a22ac966.js} +1 -1
  92. package/dist/assets/{aliyun_office-legacy.44f48db4.js → aliyun_office-legacy.910c67dd.js} +1 -1
  93. package/dist/assets/{aliyun_video-a45fcaba.js → aliyun_video-72e75696.js} +1 -1
  94. package/dist/assets/{aliyun_video-legacy.c36029d3.js → aliyun_video-legacy.3ca538ae.js} +1 -1
  95. package/dist/assets/archive-15d8b252.js +1 -0
  96. package/dist/assets/{archive-legacy.472f5155.js → archive-legacy.141ed6de.js} +1 -1
  97. package/dist/assets/{asciinema-70fb1d19.js → asciinema-befe680b.js} +1 -1
  98. package/dist/assets/{asciinema-legacy.3708296e.js → asciinema-legacy.0e111ef8.js} +1 -1
  99. package/dist/assets/{audio-95e18513.js → audio-37bb4f75.js} +1 -1
  100. package/dist/assets/{audio-legacy.4b3e64b8.js → audio-legacy.9c9e6fd9.js} +1 -1
  101. package/dist/assets/backup-restore-8d5112f2.js +1 -0
  102. package/dist/assets/{backup-restore-legacy.69c0559a.js → backup-restore-legacy.21994194.js} +1 -1
  103. package/dist/assets/doubao-4962e438.js +1 -0
  104. package/dist/assets/{doubao-legacy.6e1a0c42.js → doubao-legacy.e8e5bddc.js} +1 -1
  105. package/dist/assets/{download-dd4a9f52.js → download-cf222578.js} +1 -1
  106. package/dist/assets/{download-legacy.83e3ca0d.js → download-legacy.6b17b261.js} +1 -1
  107. package/dist/assets/entry-23d0eac8.js +5 -0
  108. package/dist/assets/entry-2abbb591.js +5 -0
  109. package/dist/assets/entry-55b019b5.js +6 -0
  110. package/dist/assets/entry-6fb77620.js +5 -0
  111. package/dist/assets/entry-9896052e.js +5 -0
  112. package/dist/assets/entry-9a9c06fb.js +5 -0
  113. package/dist/assets/entry-d1529af3.js +8 -0
  114. package/dist/assets/entry-d2b2146e.js +5 -0
  115. package/dist/assets/entry-d9866ffb.js +5 -0
  116. package/dist/assets/entry-f67c0939.js +9 -0
  117. package/dist/assets/entry-legacy.1c11c4ce.js +1 -0
  118. package/dist/assets/entry-legacy.6066ebc9.js +1 -0
  119. package/dist/assets/entry-legacy.60876545.js +1 -0
  120. package/dist/assets/entry-legacy.62cc3c3d.js +1 -0
  121. package/dist/assets/entry-legacy.8088e3bc.js +1 -0
  122. package/dist/assets/entry-legacy.b99b54c1.js +1 -0
  123. package/dist/assets/entry-legacy.b9b7580f.js +1 -0
  124. package/dist/assets/entry-legacy.c9424c94.js +1 -0
  125. package/dist/assets/entry-legacy.d1b30365.js +1 -0
  126. package/dist/assets/entry-legacy.f43d27fe.js +1 -0
  127. package/dist/assets/helper-8d6da87f.js +1 -0
  128. package/dist/assets/{helper-302b9882.js → helper-bcff9934.js} +1 -1
  129. package/dist/assets/helper-legacy.c67cf50b.js +1 -0
  130. package/dist/assets/{helper-legacy.bb88e979.js → helper-legacy.fc3cc7d5.js} +1 -1
  131. package/dist/assets/{hls-b5c51f5c.js → hls-34ad2bf0.js} +1 -1
  132. package/dist/assets/{hls-legacy.f74f1b02.js → hls-legacy.258e62dc.js} +1 -1
  133. package/dist/assets/{html-e6ebbfe7.js → html-772e9d83.js} +1 -1
  134. package/dist/assets/{html-legacy.c448305e.js → html-legacy.d0f89f46.js} +1 -1
  135. package/dist/assets/{image-a765aabc.js → image-73b55447.js} +1 -1
  136. package/dist/assets/{image-legacy.b952a2ab.js → image-legacy.944e86c3.js} +1 -1
  137. package/dist/assets/index-003b5203.js +4 -0
  138. package/dist/assets/{index-097118aa.js → index-0af67a26.js} +3 -3
  139. package/dist/assets/{index-4272a855.js → index-14204052.js} +1 -1
  140. package/dist/assets/{index-6b9a4a39.js → index-2da9ca8e.js} +2 -2
  141. package/dist/assets/{index-64f3f7ee.js → index-314d6447.js} +1 -1
  142. package/dist/assets/index-54ddc888.js +1 -0
  143. package/dist/assets/{index-94d8bb81.js → index-6021c988.js} +1 -1
  144. package/dist/assets/{index-e14aed16.js → index-66bc0c4a.js} +1 -1
  145. package/dist/assets/{index-982dc586.js → index-66f271c4.js} +1 -1
  146. package/dist/assets/{index-f48677b4.js → index-6cfcfd46.js} +1 -1
  147. package/dist/assets/index-76fcdbdf.js +1 -0
  148. package/dist/assets/{index-46ff1987.js → index-bc854cf4.js} +1 -1
  149. package/dist/assets/index-cbfadd9b.js +1 -0
  150. package/dist/assets/index-ccd3c2df.js +1 -0
  151. package/dist/assets/index-legacy.06ba96c2.js +1 -0
  152. package/dist/assets/{index-legacy.5d7aedf8.js → index-legacy.14cbd866.js} +1 -1
  153. package/dist/assets/{index-legacy.109d2298.js → index-legacy.24d29f81.js} +1 -1
  154. package/dist/assets/index-legacy.257815ef.js +1 -0
  155. package/dist/assets/{index-legacy.39669174.js → index-legacy.2ecd8568.js} +1 -1
  156. package/dist/assets/index-legacy.35aba8a0.js +1 -0
  157. package/dist/assets/{index-legacy.65a03174.js → index-legacy.53efc4c8.js} +1 -1
  158. package/dist/assets/index-legacy.5a403980.js +1 -0
  159. package/dist/assets/{index-legacy.700628c0.js → index-legacy.7b9d362b.js} +1 -1
  160. package/dist/assets/{index-legacy.f351c9d5.js → index-legacy.831645c0.js} +1 -1
  161. package/dist/assets/{index-legacy.8e6dd372.js → index-legacy.9a995a78.js} +3 -3
  162. package/dist/assets/{index-legacy.a34f2550.js → index-legacy.aa1b93bf.js} +1 -1
  163. package/dist/assets/index-legacy.b2067bd5.js +1 -0
  164. package/dist/assets/{index-legacy.b47c082c.js → index-legacy.f9d48ec7.js} +1 -1
  165. package/dist/assets/{indexes-42915701.js → indexes-39a5b1ff.js} +2 -2
  166. package/dist/assets/{indexes-legacy.2be8c8e2.js → indexes-legacy.8769beeb.js} +1 -1
  167. package/dist/assets/{info-e6aec8da.js → info-6b46a634.js} +1 -1
  168. package/dist/assets/{info-legacy.8e2407e9.js → info-legacy.dc8f48be.js} +1 -1
  169. package/dist/assets/{ipa-355cad8e.js → ipa-86dc8896.js} +1 -1
  170. package/dist/assets/{ipa-legacy.620ed486.js → ipa-legacy.17ae2e8d.js} +1 -1
  171. package/dist/assets/{lark-c99ca602.js → lark-73a41a60.js} +1 -1
  172. package/dist/assets/lark-legacy.24acf7f1.js +1 -0
  173. package/dist/assets/{lark_tools-a69e5c86.js → lark_tools-649a02b3.js} +1 -1
  174. package/dist/assets/{lark_tools-legacy.2a07e7c5.js → lark_tools-legacy.eecb6c72.js} +1 -1
  175. package/dist/assets/{layout-3be5796c.js → layout-5d35ffe8.js} +1 -1
  176. package/dist/assets/{layout-legacy.c4ffb577.js → layout-legacy.ae9754f2.js} +1 -1
  177. package/dist/assets/{management-a3d9c57e.js → management-0c24b19e.js} +1 -1
  178. package/dist/assets/{management-legacy.609c17f0.js → management-legacy.8848a8f8.js} +1 -1
  179. package/dist/assets/{markdown-f993d929.js → markdown-8d906270.js} +1 -1
  180. package/dist/assets/{markdown-legacy.0e8ef12a.js → markdown-legacy.9eb66931.js} +1 -1
  181. package/dist/assets/{markdown_with_word_wrap-49e3006a.js → markdown_with_word_wrap-c0408f23.js} +1 -1
  182. package/dist/assets/{markdown_with_word_wrap-legacy.1bec17da.js → markdown_with_word_wrap-legacy.3463bef2.js} +1 -1
  183. package/dist/assets/{mySession-6bf003c9.js → mySession-884023ca.js} +1 -1
  184. package/dist/assets/{mySession-legacy.c215dd7e.js → mySession-legacy.68203a3e.js} +1 -1
  185. package/dist/assets/offline_download-6fa0e9d2.js +1 -0
  186. package/dist/assets/{offline_download-legacy.a515427b.js → offline_download-legacy.d0f875cd.js} +1 -1
  187. package/dist/assets/{open-with-dd359a85.js → open-with-7bd13257.js} +1 -1
  188. package/dist/assets/{open-with-legacy.1f1e9d2e.js → open-with-legacy.89db98a3.js} +1 -1
  189. package/dist/assets/{plist-6ecd435f.js → plist-18445805.js} +1 -1
  190. package/dist/assets/{plist-legacy.2a00f2b7.js → plist-legacy.c128376d.js} +1 -1
  191. package/dist/assets/{polyfills-legacy.03573a32.js → polyfills-legacy.bfccebe0.js} +1 -1
  192. package/dist/assets/shares-d862241a.js +1 -0
  193. package/dist/assets/shares-legacy.2e408931.js +1 -0
  194. package/dist/assets/solid-contextmenu-389460bd.js +1 -0
  195. package/dist/assets/{solid-contextmenu-legacy.45db084d.js → solid-contextmenu-legacy.0f1769af.js} +1 -1
  196. package/dist/assets/{text-editor-0d40b038.js → text-editor-ffff6c54.js} +3 -3
  197. package/dist/assets/{text-editor-legacy.d7ce2b09.js → text-editor-legacy.cd9e1a2d.js} +1 -1
  198. package/dist/assets/{url-2bd1af74.js → url-23fb7cc0.js} +1 -1
  199. package/dist/assets/{url-legacy.bb219aff.js → url-legacy.b18d3809.js} +1 -1
  200. package/dist/assets/{useTitle-67f5a76e.js → useTitle-394ae64f.js} +1 -1
  201. package/dist/assets/useTitle-legacy.2e69d9a6.js +1 -0
  202. package/dist/assets/{video-266fd479.js → video-ebb98b67.js} +1 -1
  203. package/dist/assets/{video-legacy.77f878d1.js → video-legacy.768a1779.js} +1 -1
  204. package/dist/assets/{video360-f09dd534.js → video360-a4d64816.js} +1 -1
  205. package/dist/assets/{video360-legacy.205eb009.js → video360-legacy.8266ee4a.js} +1 -1
  206. package/dist/assets/{video_box-045d9937.js → video_box-a8a43c3b.js} +1 -1
  207. package/dist/assets/{video_box-legacy.4950e5a2.js → video_box-legacy.53fe4ab0.js} +1 -1
  208. package/dist/index.html +3 -3
  209. package/package.json +1 -1
  210. package/dist/assets/AddLabelDialog-f30e62f0.js +0 -1
  211. package/dist/assets/AddOrEdit-571232ad.js +0 -1
  212. package/dist/assets/AddOrEdit-63e95d6c.js +0 -1
  213. package/dist/assets/AddOrEdit-6bc3eb11.js +0 -1
  214. package/dist/assets/AddOrEdit-legacy.cee8dee6.js +0 -1
  215. package/dist/assets/Common-7b514968.js +0 -1
  216. package/dist/assets/Decompress-cb05b916.js +0 -1
  217. package/dist/assets/EditLabelDialog-c0a81f18.js +0 -1
  218. package/dist/assets/Frp-7b991e30.js +0 -2
  219. package/dist/assets/Grid-bc261aa2.js +0 -1
  220. package/dist/assets/ImageWithError-5c8d2b0d.js +0 -1
  221. package/dist/assets/Layout-65ffe244.js +0 -11
  222. package/dist/assets/Layout-legacy.229a0237.js +0 -1
  223. package/dist/assets/Messenger-99ef38d1.js +0 -1
  224. package/dist/assets/Other-27081d81.js +0 -1
  225. package/dist/assets/Other-legacy.5be2fea1.js +0 -1
  226. package/dist/assets/PermissionForm-7ecd469c.js +0 -1
  227. package/dist/assets/S3-fcb45a4e.js +0 -1
  228. package/dist/assets/SettingItem-331c6d3d.js +0 -1
  229. package/dist/assets/Storages-565bb7ce.js +0 -1
  230. package/dist/assets/Tag-ea600438.js +0 -1
  231. package/dist/assets/Task-f2abc4f4.js +0 -1
  232. package/dist/assets/Tasks-4840b9b8.js +0 -1
  233. package/dist/assets/Upload-54c8e82b.js +0 -1
  234. package/dist/assets/Users-ef63a128.js +0 -1
  235. package/dist/assets/archive-797b61bd.js +0 -1
  236. package/dist/assets/backup-restore-ea1fa37f.js +0 -1
  237. package/dist/assets/doubao-2e2cf5a7.js +0 -1
  238. package/dist/assets/entry-0d5b2694.js +0 -5
  239. package/dist/assets/entry-1109d5de.js +0 -5
  240. package/dist/assets/entry-393b1257.js +0 -5
  241. package/dist/assets/entry-5d3890b4.js +0 -9
  242. package/dist/assets/entry-62f41435.js +0 -5
  243. package/dist/assets/entry-6663d7f8.js +0 -8
  244. package/dist/assets/entry-82ec069a.js +0 -5
  245. package/dist/assets/entry-99dedd16.js +0 -5
  246. package/dist/assets/entry-adef8f40.js +0 -6
  247. package/dist/assets/entry-e8da7559.js +0 -5
  248. package/dist/assets/entry-legacy.044c9107.js +0 -1
  249. package/dist/assets/entry-legacy.092feba6.js +0 -1
  250. package/dist/assets/entry-legacy.13267221.js +0 -1
  251. package/dist/assets/entry-legacy.208e2bf8.js +0 -1
  252. package/dist/assets/entry-legacy.45397b94.js +0 -1
  253. package/dist/assets/entry-legacy.714d1359.js +0 -1
  254. package/dist/assets/entry-legacy.75cb77dd.js +0 -1
  255. package/dist/assets/entry-legacy.a5dc8c0d.js +0 -1
  256. package/dist/assets/entry-legacy.c044cc8d.js +0 -1
  257. package/dist/assets/entry-legacy.dc0fb689.js +0 -1
  258. package/dist/assets/helper-64de39e5.js +0 -1
  259. package/dist/assets/helper-legacy.0544f8ea.js +0 -1
  260. package/dist/assets/index-65e1fb13.js +0 -1
  261. package/dist/assets/index-cf867bc3.js +0 -1
  262. package/dist/assets/index-e351922f.js +0 -1
  263. package/dist/assets/index-ebec74bc.js +0 -1
  264. package/dist/assets/index-ff603dcc.js +0 -4
  265. package/dist/assets/index-legacy.0622472a.js +0 -1
  266. package/dist/assets/index-legacy.48869c21.js +0 -1
  267. package/dist/assets/index-legacy.a94e1da0.js +0 -1
  268. package/dist/assets/index-legacy.ed85f231.js +0 -1
  269. package/dist/assets/index-legacy.f3eaa353.js +0 -1
  270. package/dist/assets/lark-legacy.18399c7f.js +0 -1
  271. package/dist/assets/offline_download-6f41303e.js +0 -1
  272. package/dist/assets/shares-dfda0ff5.js +0 -1
  273. package/dist/assets/shares-legacy.640a835f.js +0 -1
  274. package/dist/assets/solid-contextmenu-bcfd6ca7.js +0 -1
  275. package/dist/assets/useTitle-legacy.3f53e3dc.js +0 -1
@@ -1 +1 @@
1
- !function(){var e=["id","defaultRank"];function n(e,n){if(null==e)return{};var r,o,t=function(e,n){if(null==e)return{};var r,o,t={},i=Object.keys(e);for(o=0;o<i.length;o++)r=i[o],n.indexOf(r)>=0||(t[r]=e[r]);return t}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}System.register(["./index-legacy.8e6dd372.js","./index-legacy.a94e1da0.js"],(function(r,o){"use strict";var t,i,a,u,c,l,p,d,m,f,s,y,v,k,w,h,g,b,x,_,j,E;return{setters:[function(e){t=e.x,i=e.cT,a=e.A,u=e.dl,c=e.an,l=e.dt,p=e.aE,d=e.a9,m=e.dI,f=e.af,s=e.ag,y=e.cU,v=e.ay,k=e.az,w=e.dj,h=e.aV,g=e.cX,b=e.aO,x=e.d,_=e.dE,j=e.dJ},function(e){E=e.k}],execute:function(){var O=function(e){var n=i().currentObjLink,r=a((function(){return u(e.scheme,{raw_url:c.raw_url,name:c.obj.name,d_url:n(!0),ts:!0})}));return t(m,{w:"$full",h:"70vh",get children(){return[t(l.iframe,{w:"$full",h:"$full",get src(){return r()}}),t(p,{pos:"absolute",right:"$2",bottom:"$10","aria-label":"Open in new tab",as:E,onClick:function(){window.open(r(),"_blank")},cursor:"pointer",rounded:"$md",get bgColor(){return d()},p:"$1",boxSize:"$7"})]}})},A=new Set(["Aliyun Video Previewer","Doubao Preview","Aliyun Office Previewer","Archive Preview"]),P=["lark-doc","lark-docx","lark-sheet","lark-bitable","lark-mindnote","lark-slides"],$=[{key:"lark_preview",name:"Lark Preview",i18nKey:"home.preview.lark_preview",exts:"*",provider:/^Lark$/,enabled:function(e){return!e.web_proxy||(n=e.name,P.includes(g(n).toLowerCase()));var n},component:f((function(){return s((function(){return o.import("./lark-legacy.18399c7f.js")}),void 0)})),prior:!0},{key:"lark_tools",name:"Lark Tools",i18nKey:"home.preview.lark_tools.title",exts:["lark-doc","lark-docx","lark-sheet","lark-bitable"],provider:/^Lark$/,component:f((function(){return s((function(){return o.import("./lark_tools-legacy.2a07e7c5.js")}),void 0)})),prior:!0},{key:"html",name:"HTML render",exts:["html"],component:f((function(){return s((function(){return o.import("./html-legacy.c448305e.js")}),void 0)})),prior:!0},{key:"aliyun_video",name:"Aliyun Video Previewer",type:y.VIDEO,provider:/^Aliyundrive(Open)?$/,component:f((function(){return s((function(){return o.import("./aliyun_video-legacy.c36029d3.js")}),void 0)})),prior:!0},{key:"doubao",name:"Doubao Preview",exts:["pdf"],provider:/^DoubaoNew$/,component:f((function(){return s((function(){return o.import("./doubao-legacy.6e1a0c42.js")}),void 0)})),prior:!0},{key:"markdown",name:"Markdown",type:y.TEXT,component:f((function(){return s((function(){return o.import("./markdown-legacy.0e8ef12a.js")}),void 0)})),prior:!0},{key:"markdown_word_wrap",name:"Markdown with word wrap",type:y.TEXT,component:f((function(){return s((function(){return o.import("./markdown_with_word_wrap-legacy.1bec17da.js")}),void 0)})),prior:!0},{key:"url_open",name:"Url Open",exts:["url"],component:f((function(){return s((function(){return o.import("./url-legacy.bb219aff.js")}),void 0)})),prior:!0},{key:"text_editor",name:"Text Editor",type:y.TEXT,exts:["url"],component:f((function(){return s((function(){return o.import("./text-editor-legacy.d7ce2b09.js")}),void 0)})),prior:!0},{key:"image",name:"Image",type:y.IMAGE,component:f((function(){return s((function(){return o.import("./image-legacy.b952a2ab.js")}),void 0)})),prior:!0},{key:"video",name:"Video",type:y.VIDEO,component:f((function(){return s((function(){return o.import("./video-legacy.77f878d1.js")}),void 0)})),prior:!0},{key:"audio",name:"Audio",type:y.AUDIO,component:f((function(){return s((function(){return o.import("./audio-legacy.4b3e64b8.js")}),void 0)})),prior:!0},{key:"ipa",name:"Ipa",exts:["ipa","tipa"],component:f((function(){return s((function(){return o.import("./ipa-legacy.620ed486.js")}),void 0)})),prior:!0},{key:"plist",name:"Plist",exts:["plist"],component:f((function(){return s((function(){return o.import("./plist-legacy.2a00f2b7.js")}),void 0)})),prior:!0},{key:"aliyun_office",name:"Aliyun Office Previewer",exts:["doc","docx","ppt","pptx","xls","xlsx","pdf"],provider:/^Aliyundrive(Share)?$/,component:f((function(){return s((function(){return o.import("./aliyun_office-legacy.44f48db4.js")}),void 0)})),prior:!0},{key:"asciinema",name:"Asciinema",exts:["cast"],component:f((function(){return s((function(){return o.import("./asciinema-legacy.3708296e.js")}),void 0)})),prior:!0},{key:"video360",name:"Video360",type:y.VIDEO,component:f((function(){return s((function(){return o.import("./video360-legacy.205eb009.js")}),void 0)})),prior:!0},{key:"archive",name:"Archive Preview",exts:function(e){var n=b.findIndex((function(e){return"read_archives"===e}));return!!v.can(k(),n)&&w(e)},component:f((function(){return s((function(){return o.import("./archive-legacy.472f5155.js")}),void 0)})),prior:function(){return h("preview_archives_by_default")}}];r("g",(function(r){var i,a,u,c=x(),l=c.pathname,p=c.searchParams,d=y[null===(i=p.type)||void 0===i?void 0:i.toUpperCase()],m=l().startsWith("/s/"),v=g(r.name).toLowerCase(),k=_()[v],w=new Set(null!==(a=null==k?void 0:k.disabled)&&void 0!==a?a:[]),h=null!==(u=null==k?void 0:k.order)&&void 0!==u?u:[],b=new Map;h.forEach((function(e,n){return b.set(e,n)}));var E=[];$.forEach((function(e,n){if((!m||!A.has(e.name))&&(!e.provider||e.provider.test(r.provider))&&(!e.enabled||e.enabled(r))&&(e.type===r.type||d&&e.type===d||(o=e.exts,t=r.name,void 0!==o&&("*"===o||("function"==typeof o?o(t):o.includes(g(t).toLowerCase())))))){var o,t,i="builtin:".concat(e.key);if(!w.has(i)){var a,u=b.has(i),c=("boolean"==typeof(a=e.prior)?a:a())||u?n:1e4+n;E.push({id:i,name:e.name,i18nKey:e.i18nKey,component:e.component,defaultRank:c})}}})),j(r.name).forEach((function(e,n){var r,o="iframe:".concat(e.key);w.has(o)||E.push({id:o,name:e.key,component:(r=e.value,function(){return t(O,{scheme:r})}),defaultRank:1e3+n})})),E.sort((function(e,n){var r=b.has(e.id)?b.get(e.id):Number.MAX_SAFE_INTEGER,o=b.has(n.id)?b.get(n.id):Number.MAX_SAFE_INTEGER;return r!==o?r-o:e.defaultRank-n.defaultRank}));var P=E.map((function(r){r.id,r.defaultRank;return n(r,e)}));return m&&!r.download_url||P.push({name:"Download",i18nKey:"home.preview.download",component:f((function(){return s((function(){return o.import("./download-legacy.83e3ca0d.js")}),void 0)}))}),P})),r("a",(function(){return $}))}}}))}();
1
+ !function(){var e=["id","defaultRank"];function n(e,n){if(null==e)return{};var r,o,t=function(e,n){if(null==e)return{};var r,o,t={},i=Object.keys(e);for(o=0;o<i.length;o++)r=i[o],n.indexOf(r)>=0||(t[r]=e[r]);return t}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}System.register(["./index-legacy.9a995a78.js","./index-legacy.257815ef.js"],(function(r,o){"use strict";var t,i,a,u,c,l,p,d,m,f,s,y,v,k,w,h,g,b,x,_,j,E;return{setters:[function(e){t=e.y,i=e.cT,a=e.B,u=e.dl,c=e.an,l=e.dt,p=e.aE,d=e.aa,m=e.dI,f=e.ag,s=e.ah,y=e.cU,v=e.ay,k=e.az,w=e.dj,h=e.aV,g=e.cX,b=e.aO,x=e.d,_=e.dE,j=e.dJ},function(e){E=e.l}],execute:function(){var O=function(e){var n=i().currentObjLink,r=a((function(){return u(e.scheme,{raw_url:c.raw_url,name:c.obj.name,d_url:n(!0),ts:!0})}));return t(m,{w:"$full",h:"70vh",get children(){return[t(l.iframe,{w:"$full",h:"$full",get src(){return r()}}),t(p,{pos:"absolute",right:"$2",bottom:"$10","aria-label":"Open in new tab",as:E,onClick:function(){window.open(r(),"_blank")},cursor:"pointer",rounded:"$md",get bgColor(){return d()},p:"$1",boxSize:"$7"})]}})},A=new Set(["Aliyun Video Previewer","Doubao Preview","Aliyun Office Previewer","Archive Preview"]),P=["lark-doc","lark-docx","lark-sheet","lark-bitable","lark-mindnote","lark-slides"],$=[{key:"lark_preview",name:"Lark Preview",i18nKey:"home.preview.lark_preview",exts:"*",provider:/^Lark$/,enabled:function(e){return!e.web_proxy||(n=e.name,P.includes(g(n).toLowerCase()));var n},component:f((function(){return s((function(){return o.import("./lark-legacy.24acf7f1.js")}),void 0)})),prior:!0},{key:"lark_tools",name:"Lark Tools",i18nKey:"home.preview.lark_tools.title",exts:["lark-doc","lark-docx","lark-sheet","lark-bitable"],provider:/^Lark$/,component:f((function(){return s((function(){return o.import("./lark_tools-legacy.eecb6c72.js")}),void 0)})),prior:!0},{key:"html",name:"HTML render",exts:["html"],component:f((function(){return s((function(){return o.import("./html-legacy.d0f89f46.js")}),void 0)})),prior:!0},{key:"aliyun_video",name:"Aliyun Video Previewer",type:y.VIDEO,provider:/^Aliyundrive(Open)?$/,component:f((function(){return s((function(){return o.import("./aliyun_video-legacy.3ca538ae.js")}),void 0)})),prior:!0},{key:"doubao",name:"Doubao Preview",exts:["pdf"],provider:/^DoubaoNew$/,component:f((function(){return s((function(){return o.import("./doubao-legacy.e8e5bddc.js")}),void 0)})),prior:!0},{key:"markdown",name:"Markdown",type:y.TEXT,component:f((function(){return s((function(){return o.import("./markdown-legacy.9eb66931.js")}),void 0)})),prior:!0},{key:"markdown_word_wrap",name:"Markdown with word wrap",type:y.TEXT,component:f((function(){return s((function(){return o.import("./markdown_with_word_wrap-legacy.3463bef2.js")}),void 0)})),prior:!0},{key:"url_open",name:"Url Open",exts:["url"],component:f((function(){return s((function(){return o.import("./url-legacy.b18d3809.js")}),void 0)})),prior:!0},{key:"text_editor",name:"Text Editor",type:y.TEXT,exts:["url"],component:f((function(){return s((function(){return o.import("./text-editor-legacy.cd9e1a2d.js")}),void 0)})),prior:!0},{key:"image",name:"Image",type:y.IMAGE,component:f((function(){return s((function(){return o.import("./image-legacy.944e86c3.js")}),void 0)})),prior:!0},{key:"video",name:"Video",type:y.VIDEO,component:f((function(){return s((function(){return o.import("./video-legacy.768a1779.js")}),void 0)})),prior:!0},{key:"audio",name:"Audio",type:y.AUDIO,component:f((function(){return s((function(){return o.import("./audio-legacy.9c9e6fd9.js")}),void 0)})),prior:!0},{key:"ipa",name:"Ipa",exts:["ipa","tipa"],component:f((function(){return s((function(){return o.import("./ipa-legacy.17ae2e8d.js")}),void 0)})),prior:!0},{key:"plist",name:"Plist",exts:["plist"],component:f((function(){return s((function(){return o.import("./plist-legacy.c128376d.js")}),void 0)})),prior:!0},{key:"aliyun_office",name:"Aliyun Office Previewer",exts:["doc","docx","ppt","pptx","xls","xlsx","pdf"],provider:/^Aliyundrive(Share)?$/,component:f((function(){return s((function(){return o.import("./aliyun_office-legacy.910c67dd.js")}),void 0)})),prior:!0},{key:"asciinema",name:"Asciinema",exts:["cast"],component:f((function(){return s((function(){return o.import("./asciinema-legacy.0e111ef8.js")}),void 0)})),prior:!0},{key:"video360",name:"Video360",type:y.VIDEO,component:f((function(){return s((function(){return o.import("./video360-legacy.8266ee4a.js")}),void 0)})),prior:!0},{key:"archive",name:"Archive Preview",exts:function(e){var n=b.findIndex((function(e){return"read_archives"===e}));return!!v.can(k(),n)&&w(e)},component:f((function(){return s((function(){return o.import("./archive-legacy.141ed6de.js")}),void 0)})),prior:function(){return h("preview_archives_by_default")}}];r("g",(function(r){var i,a,u,c=x(),l=c.pathname,p=c.searchParams,d=y[null===(i=p.type)||void 0===i?void 0:i.toUpperCase()],m=l().startsWith("/s/"),v=g(r.name).toLowerCase(),k=_()[v],w=new Set(null!==(a=null==k?void 0:k.disabled)&&void 0!==a?a:[]),h=null!==(u=null==k?void 0:k.order)&&void 0!==u?u:[],b=new Map;h.forEach((function(e,n){return b.set(e,n)}));var E=[];$.forEach((function(e,n){if((!m||!A.has(e.name))&&(!e.provider||e.provider.test(r.provider))&&(!e.enabled||e.enabled(r))&&(e.type===r.type||d&&e.type===d||(o=e.exts,t=r.name,void 0!==o&&("*"===o||("function"==typeof o?o(t):o.includes(g(t).toLowerCase())))))){var o,t,i="builtin:".concat(e.key);if(!w.has(i)){var a,u=b.has(i),c=("boolean"==typeof(a=e.prior)?a:a())||u?n:1e4+n;E.push({id:i,name:e.name,i18nKey:e.i18nKey,component:e.component,defaultRank:c})}}})),j(r.name).forEach((function(e,n){var r,o="iframe:".concat(e.key);w.has(o)||E.push({id:o,name:e.key,component:(r=e.value,function(){return t(O,{scheme:r})}),defaultRank:1e3+n})})),E.sort((function(e,n){var r=b.has(e.id)?b.get(e.id):Number.MAX_SAFE_INTEGER,o=b.has(n.id)?b.get(n.id):Number.MAX_SAFE_INTEGER;return r!==o?r-o:e.defaultRank-n.defaultRank}));var P=E.map((function(r){r.id,r.defaultRank;return n(r,e)}));return m&&!r.download_url||P.push({name:"Download",i18nKey:"home.preview.download",component:f((function(){return s((function(){return o.import("./download-legacy.6b17b261.js")}),void 0)}))}),P})),r("a",(function(){return $}))}}}))}();
@@ -0,0 +1 @@
1
+ !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var r in t){(i=t[r]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r,i)}if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(t),o=0;o<n.length;o++){var i,a=n[o];(i=t[a]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a,i)}return e}function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return t};var t={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(E){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new $(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return I()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=_(a,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=s;var g={};function d(){}function p(){}function h(){}var v={};l(v,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(S([])));b&&b!==n&&o.call(b,a)&&(v=b);var m=h.prototype=d.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(t,r){function n(i,a,u,c){var l=f(t[i],t,a);if("throw"!==l.type){var s=l.arg,g=s.value;return g&&"object"==e(g)&&o.call(g,"__await")?r.resolve(g.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):r.resolve(g).then((function(e){s.value=e,u(s)}),(function(e){return n("throw",e,u,c)}))}c(l.arg)}var i;this._invoke=function(e,t){function o(){return new r((function(r,o){n(e,t,r,o)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,g;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,g):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function $(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=h,l(m,"constructor",h),l(h,"constructor",p),p.displayName=l(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,c,"GeneratorFunction")),e.prototype=Object.create(m),e},t.awrap=function(e){return{__await:e}},w(x.prototype),l(x.prototype,u,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(m),l(m,c,"Generator"),l(m,a,(function(){return this})),l(m,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=S,$.prototype={constructor:$,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),g}},t}function n(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(l){return void r(l)}u.done?t(c):Promise.resolve(c).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function u(e){n(a,o,i,u,c,"next",e)}function c(e){n(a,o,i,u,c,"throw",e)}u(void 0)}))}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}System.register(["./index-legacy.9a995a78.js","./useTitle-legacy.2e69d9a6.js","./webauthn-json.browser-ponyfill-legacy.1eb8248a.js"],(function(e,n){"use strict";var a,u,c,l,s,f,g,d,p,h,v,y,b,m,w,x,_,k,C,$,S,I,E,L,j,F,O,D,z,G,P,N,A,T,R,B,U,K,M,V,W,q,Y,H,J,Z,X,Q,ee,te,re,ne,oe,ie,ae,ue,ce,le;return{setters:[function(e){a=e.co,u=e.a5,c=e.bR,l=e.bS,s=e.aA,f=e.ai,g=e.y,d=e.aG,p=e.ac,h=e.S,v=e.av,y=e.aV,b=e.af,m=e.d,w=e.cp,x=e.cq,_=e.x,k=e.aE,C=e.bq,$=e.c3,S=e.cr,I=e.cs,E=e.ct,L=e.cu,j=e.b,F=e.B,O=e.C,D=e.cv,z=e.ba,G=e.r,P=e.cw,N=e.Y,A=e.aw,T=e.aB,R=e.bX,B=e.bW,U=e.N,K=e.a0,M=e.ar,V=e.R,W=e.bz,q=e.bA,Y=e.cx,H=e.cy,J=e.cz,Z=e.cA,X=e.ci,Q=e.cB,ee=e.cC,te=e.aJ,re=e.a3,ne=e.cD,oe=e.n,ie=e.cE},function(e){ae=e.a},function(e){ue=e.s,ce=e.g,le=e.a}],execute:function(){var n=s('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="896" width="967.8852157128662"><defs><path id="path-2" opacity="1" fill-rule="evenodd" d="M896,448 C1142.6325445712241,465.5747656464056 695.2579309733121,896 448,896 C200.74206902668806,896 5.684341886080802e-14,695.2579309733121 0,448.0000000000001 C0,200.74206902668806 200.74206902668791,5.684341886080802e-14 447.99999999999994,0 C695.2579309733121,0 475,418 896,448Z"></path><linearGradient id="linearGradient-3" x1="0.5" y1="0" x2="0.5" y2="1"><stop offset="0" stop-opacity="1"></stop><stop offset="1" stop-opacity="1"></stop></linearGradient></defs><g opacity="1"><use xlink:href="#path-2" fill="url(#linearGradient-3)" fill-opacity="1"></use></g></svg>'),se=function(e){var t,r,o,i=u({startColor:"#28aff0",endColor:"#120fc4"},e);return t=n.cloneNode(!0),r=t.firstChild.firstChild.nextSibling.firstChild,o=r.nextSibling,c((function(e){var t=i.startColor,n=i.endColor;return t!==e._v$&&l(r,"stop-color",e._v$=t),n!==e._v$2&&l(o,"stop-color",e._v$2=n),e}),{_v$:void 0,_v$2:void 0}),t},fe=s('<svg height="1337" width="1337"><defs><path id="path-1" opacity="1" fill-rule="evenodd" d="M1337,668.5 C1337,1037.455193874239 1037.455193874239,1337 668.5,1337 C523.6725684305388,1337 337,1236 370.50000000000006,1094 C434.03835568300906,824.6732385973953 6.906089672974592e-14,892.6277623047779 0,668.5000000000001 C0,299.5448061257611 299.5448061257609,1.1368683772161603e-13 668.4999999999999,0 C1037.455193874239,0 1337,299.544806125761 1337,668.5Z"></path><linearGradient id="linearGradient-2" x1="0.79" y1="0.62" x2="0.21" y2="0.86"><stop offset="0" stop-opacity="1"></stop><stop offset="1" stop-opacity="1"></stop></linearGradient></defs><g opacity="1"><use xlink:href="#path-1" fill="url(#linearGradient-2)" fill-opacity="1"></use></g></svg>'),ge=function(e){var t,r,n,o=u({startColor:"#28aff0",endColor:"#120fc4"},e);return t=fe.cloneNode(!0),r=t.firstChild.firstChild.nextSibling.firstChild,n=r.nextSibling,c((function(e){var t=o.startColor,i=o.endColor;return t!==e._v$&&l(r,"stop-color",e._v$=t),i!==e._v$2&&l(n,"stop-color",e._v$2=i),e}),{_v$:void 0,_v$2:void 0}),t},de=function(e){var t=f("#a9c6ff","#062b74");return g(v,{get bgColor(){return d((function(){return!!e.useNewVersion}),!0)()?void 0:t()},get style(){return d((function(){return!!e.useNewVersion}),!0)()?{"background-image":"url(".concat(p("/images/new_bg.png"),")"),"background-size":"cover","background-position":"center"}:void 0},pos:"fixed",top:"0",left:"0",overflow:"hidden",zIndex:"-1",w:"100vw",h:"100vh",get children(){return g(h,{get when(){return!e.useNewVersion},get children(){return[g(v,{pos:"absolute",right:{"@initial":"-100px","@sm":"-300px"},top:{"@initial":"-1170px","@sm":"-900px"},get children(){return g(ge,{})}}),g(v,{pos:"absolute",left:{"@initial":"-100px","@sm":"-200px"},bottom:{"@initial":"-760px","@sm":"-400px"},get children(){return g(se,{})}})]}})}})},pe=function(){var e=y("sso_login_enabled"),t=b("sso_login_platform"),r=y("sso_compatibility_mode"),n=m(),o=n.searchParams,i=n.to,a=o.token;function u(e){var t=e.data;t.token&&(w(t.token),i(decodeURIComponent(o.redirect||x||"/"),!0))}if(null!=a&&""!=a&&(w(a),i(decodeURIComponent(o.redirect||x||"/"),!0)),window.addEventListener("message",u),_((function(){window.removeEventListener("message",u)})),e){var c;switch(t){case"Github":c=L;break;case"Microsoft":c=E;break;case"Google":c=I;break;case"Dingtalk":c=S;break;default:c=$}return g(k,{cursor:"pointer",boxSize:"$8",as:c,p:"$0_5",onclick:function(){var e=C.getUri()+"/auth/sso?method=sso_get_token";r?window.location.href=e:window.open(e,"authPopup","width=500,height=600")}})}};e("default",(function(){var e=j(),n=F((function(){return"".concat(e("login.login_to")," ").concat(b("site_title"))}));ae(n);var u=f("white","$neutral1"),c=i(O(localStorage.getItem("username")||""),2),l=c[0],s=c[1],v=i(O(localStorage.getItem("password")||""),2),$=v[0],S=v[1],I=i(O(!1),2),E=I[0],L=I[1],se=i(O(""),2),fe=se[0],ge=se[1],he=i(O(!1),2),ve=he[0],ye=he[1],be=i(D("remember-pwd","false"),2),me=be[0],we=be[1],xe=i(O(!1),2),_e=xe[0],ke=xe[1],Ce=i(O(!1),2),$e=Ce[0],Se=Ce[1],Ie=function(){if($e()){var e=localStorage.getItem("username")||"",t=localStorage.getItem("password")||"";s(e),S(t)}else s(""),S("");Se(!$e())},Ee=i(z((function(){return C.get("/public/settings")})),2),Le=(Ee[0],Ee[1]),je=function(){var e=o(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Le();case 2:t=e.sent,re(t,(function(e){ne(e)}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Fe=F((function(){return"true"===b("use_newui")})),Oe=F((function(){return"true"===b("allow_register")}));G((function(){je()}));var De=i(z(o(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_e()){e.next=4;break}return e.abrupt("return",C.post("/auth/login/ldap",{username:l(),password:$(),otp_code:fe()}));case 4:return e.abrupt("return",C.post("/auth/login/hash",{username:l(),password:(t=$(),a("".concat(t,"-").concat("https://github.com/alist-org/alist"))),otp_code:fe()}));case 5:case"end":return e.stop()}var t}),e)})))),2),ze=De[0],Ge=De[1],Pe=i(z(o(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",P({username:l(),password:$()}));case 1:case"end":return e.stop()}}),e)})))),2),Ne=Pe[0],Ae=Pe[1],Te=z((function(e,t,r,n){return C.post("/authn/webauthn_finish_login?username="+r,JSON.stringify(t),{headers:{session:e},signal:n})})),Re=i(Te,2)[1],Be=z((function(e,t){return C.get("/authn/webauthn_begin_login?username="+e,{signal:t})})),Ue=i(Be,2)[1],Ke=m(),Me=Ke.searchParams,Ve=Ke.to,We=function(){var e=o(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!PublicKeyCredential||!("isConditionalMediationAvailable"in PublicKeyCredential)){e.next=6;break}return e.next=3,PublicKeyCredential.isConditionalMediationAvailable();case 3:return e.abrupt("return",e.sent);case 6:return e.abrupt("return",!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),qe=y("webauthn_login_enabled"),Ye=function(){var e=o(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ye(!ve());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),He=null,Je=function(){var t=o(r().mark((function t(n){var i,a,u,c;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(ue()){t.next=3;break}return n||oe.error(e("users.webauthn_not_supported")),t.abrupt("return");case 3:if(t.t0=n,!t.t0){t.next=8;break}return t.next=7,We();case 7:t.t0=!t.sent;case 8:if(!t.t0){t.next=10;break}return t.abrupt("return");case 10:return null===(i=He)||void 0===i||i.abort(),a=new AbortController,He=a,u=n?"":l(),n||"true"!==me()?localStorage.removeItem("username"):localStorage.setItem("username",l()),t.next=17,Ue(u,a.signal);case 17:c=t.sent,re(c,function(){var t=o(r().mark((function t(o){var i,c,l;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,(i=ce(o.options)).signal=a.signal,n&&(i.mediation="conditional"),t.next=6,le(i);case 6:return c=t.sent,t.next=9,Re(o.session,c,u,a.signal);case 9:l=t.sent,ie(l,(function(t){oe.success(e("login.success")),w(t.token),t.device_key?(localStorage.setItem("device_key",t.device_key),console.log("=== Login Debug (Hash) ==="),console.log("Saved device_key:",t.device_key),console.log("Full response data:",t),console.log("========================")):(console.log("=== Login Debug (Hash) ==="),console.log("No device_key in response"),console.log("Full response data:",t),console.log("========================")),Ve(decodeURIComponent(Me.redirect||x||"/"),!0)})),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(0),t.t0 instanceof Error&&"AbortError"!=t.t0.name&&oe.error(t.t0.message);case 16:case"end":return t.stop()}}),t,null,[[0,13]])})));return function(e){return t.apply(this,arguments)}}());case 19:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ze=function(){var e;return null===(e=He)||void 0===e?void 0:e.abort()};G((function(){qe&&(window.addEventListener("beforeunload",Ze),Je(!0))})),_((function(){var e;null===(e=He)||void 0===e||e.abort(),window.removeEventListener("beforeunload",Ze)}));var Xe=function(){var t=o(r().mark((function t(){var n,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!$e()){t.next=7;break}return t.next=3,Ae();case 3:n=t.sent,ie(n,(function(t){oe.success(e("login.register_success")),Se(!1),S("")}),(function(t,r){403===r?oe.error(e("login.register_disabled")):oe.error(t)})),t.next=17;break;case 7:if(ve()){t.next=15;break}return"true"===me()?(localStorage.setItem("username",l()),localStorage.setItem("password",$())):(localStorage.removeItem("username"),localStorage.removeItem("password")),t.next=11,Ge();case 11:o=t.sent,ie(o,(function(t){oe.success(e("login.success")),w(t.token),t.device_key?(localStorage.setItem("device_key",t.device_key),console.log("=== Login Debug ==="),console.log("Saved device_key:",t.device_key),console.log("Full response data:",t),console.log("==================")):(console.log("=== Login Debug ==="),console.log("No device_key in response"),console.log("Full response data:",t),console.log("==================")),Ve(decodeURIComponent(Me.redirect||x||"/"),!0)}),(function(e,t){et()||402!==t?oe.error(e):tt(!0)})),t.next=17;break;case 15:return t.next=17,Je();case 17:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Qe=i(O(!1),2),et=Qe[0],tt=Qe[1],rt=y("ldap_login_enabled"),nt=b("ldap_login_tips");rt&&ke(!0);return g(te,{zIndex:"1",w:"$full",h:"100vh",get children(){return[g(N,{spacing:"$6",alignItems:"center",get children(){return[g(h,{get when(){return Fe()},get children(){return g(A,{alignItems:"center",spacing:"$2",get children(){return g(T,{w:"151px",h:"auto",get src(){return d((function(){return"https://cdn.jsdelivr.net/gh/alist-org/logo@main/logo.svg"===b("logo").split("\n")[0]}),!0)()?p("/images/new_icon.png"):b("logo").split("\n")[0]},alt:"AList Logo"})}})}}),g(h,{get when(){return Fe()},get fallback(){return g(N,{get bgColor(){return u()},rounded:"$xl",p:"24px",w:{"@initial":"90%","@sm":"364px"},spacing:"$4",get children(){return[g(R,{alignItems:"center",justifyContent:"space-around",get children(){return[g(T,{mr:"$2",boxSize:"$12",get src(){return b("logo").split("\n")[0]}}),g(B,{color:"$info9",fontSize:"$2xl",get children(){return d((function(){return!!$e()}),!0)()?e("login.register"):e("login.password_login")}})]}}),g(h,{get when(){return!et()},get fallback(){return g(U,{id:"totp",name:"otp",get placeholder(){return e("login.otp-tips")},get value(){return fe()},onInput:function(e){return ge(e.currentTarget.value)},onKeyDown:function(e){"Enter"===e.key&&Xe()}})},get children(){return[g(U,{name:"username",get placeholder(){return e("login.username-tips")},get value(){return l()},onInput:function(e){return s(e.currentTarget.value)}}),g(h,{get when(){return!ve()},get children(){return g(U,{name:"password",get placeholder(){return e("login.password-tips")},type:"password",get value(){return $()},onInput:function(e){return S(e.currentTarget.value)},onKeyDown:function(e){"Enter"===e.key&&Xe()}})}}),g(R,{px:"$1",w:"$full",fontSize:"$sm",color:"$neutral10",justifyContent:"space-between",alignItems:"center",get children(){return[g(K,{get checked(){return"true"===me()},onChange:function(){return we("true"===me()?"false":"true")},get children(){return e("login.remember")}}),g(h,{get when(){return!$e()},get children(){return g(M,{as:"a",target:"_blank",get href(){return e("login.forget_url")},get children(){return e("login.forget")}})}}),g(h,{get when(){return $e()},get children(){return g(M,{as:"a",onClick:Ie,cursor:"pointer",_hover:{textDecoration:"underline",color:"#2B5CD9"},color:"#3573FF",get children(){return e("login.go_login")}})}})]}})]}}),g(A,{w:"$full",spacing:"$2",get children(){return[g(h,{get when(){return!ve()},get children(){return g(V,{colorScheme:"primary",w:"$full",onClick:function(){et()?ge(""):(s(""),S(""))},get children(){return e("login.clear")}})}}),g(V,{w:"$full",get loading(){return ze()||Ne()},onClick:Xe,get children(){return d((function(){return!!$e()}),!0)()?e("login.register"):e("login.login")}})]}}),g(h,{when:rt,get children(){return g(K,{w:"$full",get checked(){return!0===_e()},onChange:function(){return ke(!_e())},children:nt})}}),g(V,{w:"$full",colorScheme:"accent",onClick:function(){w(),Ve(decodeURIComponent(Me.redirect||x||"/"),!0)},get children(){return e("login.use_guest")}}),g(h,{get when(){return d((function(){return!$e()}),!0)()&&Oe()},get children(){return g(V,{w:"$full",get bgColor(){return f("#FFE9FB","#491D42")()},color:"#ED73D7",onClick:Ie,_hover:{backgroundColor:"rgba(237, 115, 215, 0.25)"},get children(){return e("login.register")}})}}),g(R,{mt:"$2",justifyContent:"space-evenly",alignItems:"center",color:"$neutral10",w:"$full",get children(){return[g(W,{}),g(q,{}),g(pe,{}),g(h,{when:qe,get children(){return g(k,{cursor:"pointer",boxSize:"$8",as:Y,p:"$0_5",onclick:Ye})}})]}})]}})},get children(){return g(N,{get bgColor(){return u()},rounded:"$xl",p:"24px",w:{"@initial":"90%","@sm":"420px"},spacing:"$4",get children(){return[g(R,{alignItems:"center",justifyContent:"center",get children(){return g(B,{color:"#3573FF",fontSize:"18px",get children(){return d((function(){return!!$e()}),!0)()?e("login.register"):e("login.password_login")}})}}),g(H,{borderColor:"#E9E9E9"}),g(h,{get when(){return!et()},get fallback(){return g(U,{id:"totp",name:"otp",get placeholder(){return e("login.otp-tips")},get value(){return fe()},onInput:function(e){return ge(e.currentTarget.value)},onKeyDown:function(e){"Enter"===e.key&&Xe()}})},get children(){return[g(A,{w:"$full",border:"1px solid",borderColor:"$neutral6",borderRadius:"12px",px:"$3",spacing:"$2",alignItems:"center",_focusWithin:{borderColor:"$primary6",boxShadow:"0 0 0 1px $colors$primary6"},get children(){return[g(k,{as:J,color:"$neutral8",boxSize:"$5"}),g(U,{name:"username",get placeholder(){return e("login.username-tips")},get value(){return l()},onInput:function(e){return s(e.currentTarget.value)},border:"none",backgroundColor:"transparent",_focus:{border:"none",boxShadow:"none",backgroundColor:"transparent"},_hover:{border:"none",boxShadow:"none",backgroundColor:"transparent"},flex:1})]}}),g(h,{get when(){return!ve()},get children(){return g(A,{w:"$full",border:"1px solid",borderColor:"$neutral6",borderRadius:"12px",px:"$3",spacing:"$2",alignItems:"center",_focusWithin:{borderColor:"$primary6",boxShadow:"0 0 0 1px $colors$primary6"},get children(){var r,n,o,i,a,u;return[g(k,{as:Z,color:"$neutral8",boxSize:"$5"}),g(U,{name:"password",get placeholder(){return e("login.password-tips")},get type(){return E()?"text":"password"},get value(){return $()},onInput:function(e){return S(e.currentTarget.value)},onKeyDown:function(e){"Enter"===e.key&&Xe()},border:"none",backgroundColor:"transparent",_focus:{border:"none",boxShadow:"none",backgroundColor:"transparent"},_hover:{border:"none",boxShadow:"none",backgroundColor:"transparent"},flex:1}),g(X,(n={size:"md",variant:"ghost",get icon(){return d((function(){return!!E()}),!0)()?g(Q,{}):g(ee,{})},onClick:function(){return L(!E())},color:"$neutral8"},r="aria-label",o={},o[r]=o[r]||{},o[r].get=function(){return E()?"隐藏密码":"显示密码"},i=n,a="_hover",u={backgroundColor:"$neutral3"},a in i?Object.defineProperty(i,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[a]=u,t(n,o),n))]}})}}),g(h,{get when(){return!$e()},get children(){return g(R,{px:"$1",w:"$full",fontSize:"$sm",color:"$neutral10",justifyContent:"flex-end",alignItems:"center",get children(){return g(M,{as:"a",target:"_blank",get href(){return e("login.forget_url")},get children(){return e("login.forget")}})}})}})]}}),g(N,{w:"$full",spacing:"$4",get children(){return[g(V,{w:"$full",get loading(){return ze()||Ne()},onClick:Xe,bgColor:"#3573FF",color:"white",_hover:{backgroundColor:"#2B5CD9"},_active:{backgroundColor:"#1E40AF"},h:"45px",fontSize:"16px",fontWeight:"bold",borderRadius:"12px",mt:"$2",get children(){return d((function(){return!!$e()}),!0)()?e("login.register"):e("login.login")}}),g(A,{w:"$full",justifyContent:"space-between",alignItems:"center",get children(){return[g(h,{get when(){return Oe()},get children(){return g(M,{color:"#3573FF",fontSize:"14px",cursor:"pointer",onClick:Ie,_hover:{textDecoration:"underline",color:"#2B5CD9"},get children(){return d((function(){return!!$e()}),!0)()?e("login.go_login"):e("login.register")}})}}),g(M,{as:"a",onClick:function(){w(),Ve(decodeURIComponent(Me.redirect||x||"/"),!0)},color:"#3573FF",fontSize:"14px",cursor:"pointer",_hover:{textDecoration:"underline",color:"#2B5CD9"},get children(){return e("login.use_guest")}})]}})]}}),g(R,{mt:"$2",justifyContent:"space-evenly",alignItems:"center",color:"$neutral10",w:"$full",get children(){return[g(W,{}),g(q,{}),g(pe,{}),g(h,{when:qe,get children(){return g(k,{cursor:"pointer",boxSize:"$8",as:Y,p:"$0_5",onclick:Ye})}})]}})]}})}})]}}),g(de,{get useNewVersion(){return Fe()}})]}})}))}}}))}();
@@ -1 +1 @@
1
- System.register(["./index-legacy.8e6dd372.js"],(function(v,e){"use strict";var h;return{setters:[function(v){h=v.aK}],execute:function(){v({B:function(v){return h({a:{viewBox:"0 0 24 24"},c:'<path d="M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z"/><path d="M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z"/>'},v)},C:function(v){return h({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" fill-rule="evenodd" d="M10 4H8v2H5a3 3 0 00-3 3v6a3 3 0 003 3h3v2h2V4zM8 8v8H5a1 1 0 01-1-1V9a1 1 0 011-1h3z" clip-rule="evenodd"/><path fill="currentColor" d="M19 16h-7v2h7a3 3 0 003-3V9a3 3 0 00-3-3h-7v2h7a1 1 0 011 1v6a1 1 0 01-1 1z"/>'},v)},a:function(v){return h({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M11 14.5v2h2v-2h2v-2h-2v-2h-2v2H9v2h2z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1.5a2 2 0 00-2 2v1c0 .057.002.113.007.168A3.001 3.001 0 000 7.5v12a3 3 0 003 3h18a3 3 0 003-3v-12a3 3 0 00-3-3h-9.126A4.002 4.002 0 008 1.5H4zm5.732 3A2 2 0 008 3.5H4v1h5.732zM3 6.5a1 1 0 00-1 1v12a1 1 0 001 1h18a1 1 0 001-1v-12a1 1 0 00-1-1H3z" clip-rule="evenodd"/>'},v)},b:function(v){return h({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M10 18v-2H8v-2h2v-2h2v2h2v2h-2v2h-2z"/><path fill="currentColor" fill-rule="evenodd" d="M6 2a3 3 0 00-3 3v14a3 3 0 003 3h12a3 3 0 003-3V9a7 7 0 00-7-7H6zm0 2h7v5h6v10a1 1 0 01-1 1H6a1 1 0 01-1-1V5a1 1 0 011-1zm9 .1A5.009 5.009 0 0118.584 7H15V4.1z" clip-rule="evenodd"/>'},v)},c:function(v){return h({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M7 14a2 2 0 100-4 2 2 0 000 4zM14 12a2 2 0 11-4 0 2 2 0 014 0zM17 14a2 2 0 100-4 2 2 0 000 4z"/><path fill="currentColor" fill-rule="evenodd" d="M24 12c0 6.627-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0s12 5.373 12 12zm-2 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10z" clip-rule="evenodd"/>'},v)},d:function(v){return h({a:{viewBox:"0 0 24 24"},c:'<path d="M20 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zm-1 4v2h-5V7h5zm-5 4h5v2h-5v-2zM4 19V5h7v14H4z"/>'},v)},e:function(v){return h({a:{viewBox:"0 0 24 24"},c:'<path d="M5.536 21.886a1.004 1.004 0 001.033-.064l13-9a1 1 0 000-1.644l-13-9A1 1 0 005 3v18a1 1 0 00.536.886z"/>'},v)},f:function(v){return h({a:{viewBox:"0 0 24 24"},c:'<path d="M5 2c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h3.586L12 21.414 15.414 18H19c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2H5zm14 14h-4.414L12 18.586 9.414 16H5V4h14v12z"/><path d="M7 7h10v2H7zm0 4h7v2H7z"/>'},v)},g:function(v){return h({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M5 9V7h2v2H5zM9 9h10V7H9v2zM5 15v2h2v-2H5zM19 17H9v-2h10v2z"/><path fill="currentColor" fill-rule="evenodd" d="M1 6a3 3 0 013-3h16a3 3 0 013 3v12a3 3 0 01-3 3H4a3 3 0 01-3-3V6zm3-1h16a1 1 0 011 1v5H3V6a1 1 0 011-1zm-1 8v5a1 1 0 001 1h16a1 1 0 001-1v-5H3z" clip-rule="evenodd"/>'},v)},h:function(v){return h({a:{viewBox:"0 0 24 24"},c:'<path d="M2.165 19.551c.186.28.499.449.835.449h15c.4 0 .762-.238.919-.606l3-7A.998.998 0 0021 11h-1V8c0-1.103-.897-2-2-2h-6.655L8.789 4H4c-1.103 0-2 .897-2 2v13h.007a1 1 0 00.158.551zM18 8v3H6c-.4 0-.762.238-.919.606L4 14.129V8h14z"/>'},v)}})}}}));
1
+ System.register(["./index-legacy.9a995a78.js"],(function(v,e){"use strict";var h;return{setters:[function(v){h=v.aK}],execute:function(){v({B:function(v){return h({a:{viewBox:"0 0 24 24"},c:'<path d="M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z"/><path d="M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z"/>'},v)},C:function(v){return h({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" fill-rule="evenodd" d="M10 4H8v2H5a3 3 0 00-3 3v6a3 3 0 003 3h3v2h2V4zM8 8v8H5a1 1 0 01-1-1V9a1 1 0 011-1h3z" clip-rule="evenodd"/><path fill="currentColor" d="M19 16h-7v2h7a3 3 0 003-3V9a3 3 0 00-3-3h-7v2h7a1 1 0 011 1v6a1 1 0 01-1 1z"/>'},v)},a:function(v){return h({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M11 14.5v2h2v-2h2v-2h-2v-2h-2v2H9v2h2z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1.5a2 2 0 00-2 2v1c0 .057.002.113.007.168A3.001 3.001 0 000 7.5v12a3 3 0 003 3h18a3 3 0 003-3v-12a3 3 0 00-3-3h-9.126A4.002 4.002 0 008 1.5H4zm5.732 3A2 2 0 008 3.5H4v1h5.732zM3 6.5a1 1 0 00-1 1v12a1 1 0 001 1h18a1 1 0 001-1v-12a1 1 0 00-1-1H3z" clip-rule="evenodd"/>'},v)},b:function(v){return h({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M10 18v-2H8v-2h2v-2h2v2h2v2h-2v2h-2z"/><path fill="currentColor" fill-rule="evenodd" d="M6 2a3 3 0 00-3 3v14a3 3 0 003 3h12a3 3 0 003-3V9a7 7 0 00-7-7H6zm0 2h7v5h6v10a1 1 0 01-1 1H6a1 1 0 01-1-1V5a1 1 0 011-1zm9 .1A5.009 5.009 0 0118.584 7H15V4.1z" clip-rule="evenodd"/>'},v)},c:function(v){return h({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M7 14a2 2 0 100-4 2 2 0 000 4zM14 12a2 2 0 11-4 0 2 2 0 014 0zM17 14a2 2 0 100-4 2 2 0 000 4z"/><path fill="currentColor" fill-rule="evenodd" d="M24 12c0 6.627-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0s12 5.373 12 12zm-2 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10z" clip-rule="evenodd"/>'},v)},d:function(v){return h({a:{viewBox:"0 0 24 24"},c:'<path d="M20 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zm-1 4v2h-5V7h5zm-5 4h5v2h-5v-2zM4 19V5h7v14H4z"/>'},v)},e:function(v){return h({a:{viewBox:"0 0 24 24"},c:'<path d="M5.536 21.886a1.004 1.004 0 001.033-.064l13-9a1 1 0 000-1.644l-13-9A1 1 0 005 3v18a1 1 0 00.536.886z"/>'},v)},f:function(v){return h({a:{viewBox:"0 0 24 24"},c:'<path d="M5 2c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h3.586L12 21.414 15.414 18H19c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2H5zm14 14h-4.414L12 18.586 9.414 16H5V4h14v12z"/><path d="M7 7h10v2H7zm0 4h7v2H7z"/>'},v)},g:function(v){return h({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M5 9V7h2v2H5zM9 9h10V7H9v2zM5 15v2h2v-2H5zM19 17H9v-2h10v2z"/><path fill="currentColor" fill-rule="evenodd" d="M1 6a3 3 0 013-3h16a3 3 0 013 3v12a3 3 0 01-3 3H4a3 3 0 01-3-3V6zm3-1h16a1 1 0 011 1v5H3V6a1 1 0 011-1zm-1 8v5a1 1 0 001 1h16a1 1 0 001-1v-5H3z" clip-rule="evenodd"/>'},v)},h:function(v){return h({a:{viewBox:"0 0 24 24"},c:'<path d="M2.165 19.551c.186.28.499.449.835.449h15c.4 0 .762-.238.919-.606l3-7A.998.998 0 0021 11h-1V8c0-1.103-.897-2-2-2h-6.655L8.789 4H4c-1.103 0-2 .897-2 2v13h.007a1 1 0 00.158.551zM18 8v3H6c-.4 0-.762.238-.919.606L4 14.129V8h14z"/>'},v)}})}}}));
@@ -1,2 +1,2 @@
1
- import{eg as C,aA as b,b as E,B as G,ba as i,bq as p,r as H,eD as F,eE as V,aW as X,x as e,bW as u,S as f,aw as x,ah as Z,aE as A,X as k,ar as h,aG as c,cI as m,dS as J,Q as o,R as K,M as Q,I as U,W as Y,J as ee,K as te,T as re,L as ne,O as ae,a2 as se,bc as g}from"./index-097118aa.js";import{G as oe}from"./index-e351922f.js";import ie from"./Common-7b514968.js";import"./useTitle-67f5a76e.js";import"./index-e14aed16.js";import"./index-4272a855.js";import"./index-f48677b4.js";import"./index-64f3f7ee.js";import"./SettingItem-331c6d3d.js";import"./item_type-32dc6fdf.js";import"./ResponsiveGrid-5e43552b.js";const de=b('<svg width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2"><path stroke-dasharray="60" stroke-dashoffset="60" stroke-opacity=".3" d="M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="1.3s" values="60;0"></animate></path><path stroke-dasharray="15" stroke-dashoffset="15" d="M12 3C16.9706 3 21 7.02944 21 12"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.3s" values="15;0"></animate><animateTransform attributeName="transform" dur="1.5s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"></animateTransform></path></g></svg>'),le=b('<svg width="1em" height="1em" viewBox="0 0 24 24"><g stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path fill="currentColor" fill-opacity="0" stroke-dasharray="60" stroke-dashoffset="60" d="M3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.5s" values="60;0"></animate><animate fill="freeze" attributeName="fill-opacity" begin="0.8s" dur="0.15s" values="0;0.3"></animate></path><path fill="none" stroke-dasharray="14" stroke-dashoffset="14" d="M8 12L11 15L16 10"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.2s" values="14;0"></animate></path></g></svg>');function ue(r){return(()=>{const n=de.cloneNode(!0);return C(n,r,!0,!0),n})()}function ce(r){return(()=>{const n=le.cloneNode(!0);return C(n,r,!0,!0),n})()}const ye=()=>{const r=E(),[n,w]=G(),[v,$]=i(()=>p.get("/admin/index/progress")),s=async()=>{const t=await $();se(t,a=>{w(a)})},y=setInterval(s,5e3);H(()=>clearInterval(y)),s();const[_,I]=i(F),M=async()=>{const t=await I();g(t),s()},[S,L]=i(()=>p.post("/admin/index/clear")),B=async()=>{const t=await L();g(t),s()},[N,R]=i(()=>p.post("/admin/index/stop")),T=async()=>{const t=await R();g(t),s()};let d,l;const[q,z]=i(V),D=async()=>{let t=[];d.value&&(t=d.value.split(`
2
- `));let a=20;l.value&&(a=parseInt(l.value));const j=await z(t,a);g(j),s()},{isOpen:P,onOpen:O,onClose:W}=X();return e(k,{spacing:"$2",w:"$full",alignItems:"start",get children(){return[e(u,{get children(){return r("manage.sidemenu.settings")}}),e(ie,{get group(){return oe.INDEX}}),e(u,{get children(){return r("indexes.current")}}),e(f,{get when(){return n()},get children(){return e(x,{spacing:"$2",w:"fit-content",shadow:"$md",rounded:"$lg",get bg(){return Z("","$neutral3")()},get children(){return[e(A,{boxSize:"$28",color:"$accent9",p:"$2",get as(){var t;return(t=n())!=null&&t.is_done?ce:ue}}),e(k,{spacing:"$2",flex:"1",alignItems:"start",mr:"$2",get children(){return[e(h,{get children(){return[c(()=>r("indexes.obj_count")),":",e(m,{colorScheme:"info",ml:"$2",get children(){var t;return(t=n())==null?void 0:t.obj_count}})]}}),e(h,{get children(){return[c(()=>r("indexes.last_done_time")),":",e(m,{colorScheme:"accent",ml:"$2",get children(){return c(()=>!!n().last_done_time,!0)()?J(n().last_done_time):r("indexes.unknown")}})]}}),e(f,{get when(){var t;return(t=n())==null?void 0:t.error},get children(){return e(h,{css:{wordBreak:"break-all"},get children(){return[c(()=>r("indexes.error")),":",e(m,{colorScheme:"danger",ml:"$2",get children(){return n().error}})]}})}})]}})]}})}}),e(x,{spacing:"$2",get children(){return[e(o,{colorScheme:"accent",onClick:[s,void 0],get loading(){return v()},get children(){return r("global.refresh")}}),e(o,{colorScheme:"danger",onClick:[B,void 0],get loading(){return S()},get children(){return r("indexes.clear")}}),e(o,{colorScheme:"warning",onClick:[T,void 0],get loading(){return N()},get children(){return r("indexes.stop")}}),e(o,{onClick:[M,void 0],get loading(){return _()},get children(){var t;return r(`indexes.${(t=n())!=null&&t.is_done?"rebuild":"build"}`)}})]}}),e(o,{onClick:O,get children(){return r("indexes.update")}}),e(K,{get opened(){return P()},onClose:W,get children(){return[e(Q,{}),e(U,{get children(){return[e(Y,{}),e(ee,{get children(){return r("indexes.update")}}),e(te,{get children(){return[e(u,{get children(){return r("indexes.paths_to_update")}}),e(re,{ref(t){const a=d;typeof a=="function"?a(t):d=t}}),e(u,{get children(){return r("indexes.max_depth")}}),e(ne,{value:20,type:"number",ref(t){const a=l;typeof a=="function"?a(t):l=t}})]}}),e(ae,{get children(){return e(o,{onClick:[D,void 0],get loading(){return q()},get children(){return r("indexes.update")}})}})]}})]}})]}})};export{ye as default};
1
+ import{eg as C,aA as b,b as H,C as O,ba as i,bq as p,x as W,eD as F,eE as V,aW as X,y as e,bW as u,S as f,aw as x,ai as Z,aE as A,Y as k,ar as h,aG as c,cI as m,dS as J,R as o,U as K,M as Q,J as U,X as Y,K as ee,L as te,T as re,N as ne,Q as ae,a3 as se,bc as g}from"./index-0af67a26.js";import{G as oe}from"./index-ccd3c2df.js";import ie from"./Common-ca550843.js";import"./useTitle-394ae64f.js";import"./index-66bc0c4a.js";import"./index-14204052.js";import"./index-6cfcfd46.js";import"./index-314d6447.js";import"./SettingItem-e7a7bfc9.js";import"./item_type-32dc6fdf.js";import"./ResponsiveGrid-0e943896.js";const de=b('<svg width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2"><path stroke-dasharray="60" stroke-dashoffset="60" stroke-opacity=".3" d="M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="1.3s" values="60;0"></animate></path><path stroke-dasharray="15" stroke-dashoffset="15" d="M12 3C16.9706 3 21 7.02944 21 12"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.3s" values="15;0"></animate><animateTransform attributeName="transform" dur="1.5s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"></animateTransform></path></g></svg>'),le=b('<svg width="1em" height="1em" viewBox="0 0 24 24"><g stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path fill="currentColor" fill-opacity="0" stroke-dasharray="60" stroke-dashoffset="60" d="M3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.5s" values="60;0"></animate><animate fill="freeze" attributeName="fill-opacity" begin="0.8s" dur="0.15s" values="0;0.3"></animate></path><path fill="none" stroke-dasharray="14" stroke-dashoffset="14" d="M8 12L11 15L16 10"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.2s" values="14;0"></animate></path></g></svg>');function ue(r){return(()=>{const n=de.cloneNode(!0);return C(n,r,!0,!0),n})()}function ce(r){return(()=>{const n=le.cloneNode(!0);return C(n,r,!0,!0),n})()}const $e=()=>{const r=H(),[n,w]=O(),[v,y]=i(()=>p.get("/admin/index/progress")),s=async()=>{const t=await y();se(t,a=>{w(a)})},$=setInterval(s,5e3);W(()=>clearInterval($)),s();const[_,M]=i(F),I=async()=>{const t=await M();g(t),s()},[S,L]=i(()=>p.post("/admin/index/clear")),N=async()=>{const t=await L();g(t),s()},[B,R]=i(()=>p.post("/admin/index/stop")),T=async()=>{const t=await R();g(t),s()};let d,l;const[q,z]=i(V),D=async()=>{let t=[];d.value&&(t=d.value.split(`
2
+ `));let a=20;l.value&&(a=parseInt(l.value));const G=await z(t,a);g(G),s()},{isOpen:P,onOpen:j,onClose:E}=X();return e(k,{spacing:"$2",w:"$full",alignItems:"start",get children(){return[e(u,{get children(){return r("manage.sidemenu.settings")}}),e(ie,{get group(){return oe.INDEX}}),e(u,{get children(){return r("indexes.current")}}),e(f,{get when(){return n()},get children(){return e(x,{spacing:"$2",w:"fit-content",shadow:"$md",rounded:"$lg",get bg(){return Z("","$neutral3")()},get children(){return[e(A,{boxSize:"$28",color:"$accent9",p:"$2",get as(){var t;return(t=n())!=null&&t.is_done?ce:ue}}),e(k,{spacing:"$2",flex:"1",alignItems:"start",mr:"$2",get children(){return[e(h,{get children(){return[c(()=>r("indexes.obj_count")),":",e(m,{colorScheme:"info",ml:"$2",get children(){var t;return(t=n())==null?void 0:t.obj_count}})]}}),e(h,{get children(){return[c(()=>r("indexes.last_done_time")),":",e(m,{colorScheme:"accent",ml:"$2",get children(){return c(()=>!!n().last_done_time,!0)()?J(n().last_done_time):r("indexes.unknown")}})]}}),e(f,{get when(){var t;return(t=n())==null?void 0:t.error},get children(){return e(h,{css:{wordBreak:"break-all"},get children(){return[c(()=>r("indexes.error")),":",e(m,{colorScheme:"danger",ml:"$2",get children(){return n().error}})]}})}})]}})]}})}}),e(x,{spacing:"$2",get children(){return[e(o,{colorScheme:"accent",onClick:[s,void 0],get loading(){return v()},get children(){return r("global.refresh")}}),e(o,{colorScheme:"danger",onClick:[N,void 0],get loading(){return S()},get children(){return r("indexes.clear")}}),e(o,{colorScheme:"warning",onClick:[T,void 0],get loading(){return B()},get children(){return r("indexes.stop")}}),e(o,{onClick:[I,void 0],get loading(){return _()},get children(){var t;return r(`indexes.${(t=n())!=null&&t.is_done?"rebuild":"build"}`)}})]}}),e(o,{onClick:j,get children(){return r("indexes.update")}}),e(K,{get opened(){return P()},onClose:E,get children(){return[e(Q,{}),e(U,{get children(){return[e(Y,{}),e(ee,{get children(){return r("indexes.update")}}),e(te,{get children(){return[e(u,{get children(){return r("indexes.paths_to_update")}}),e(re,{ref(t){const a=d;typeof a=="function"?a(t):d=t}}),e(u,{get children(){return r("indexes.max_depth")}}),e(ne,{value:20,type:"number",ref(t){const a=l;typeof a=="function"?a(t):l=t}})]}}),e(ae,{get children(){return e(o,{onClick:[D,void 0],get loading(){return q()},get children(){return r("indexes.update")}})}})]}})]}})]}})};export{$e as default};
@@ -1 +1 @@
1
- !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(C){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return E()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(C){return{type:"throw",arg:C}}}r.wrap=s;var h={};function d(){}function p(){}function g(){}var v={};l(v,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(S([])));m&&m!==n&&o.call(m,a)&&(v=m);var w=g.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function b(e,r){function n(i,a,u,c){var l=f(e[i],e,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(h).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function S(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=g,l(w,"constructor",g),l(g,"constructor",p),p.displayName=l(g,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},x(b.prototype),l(b.prototype,u,(function(){return this})),r.AsyncIterator=b,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new b(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=S,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy.8e6dd372.js","./index-legacy.ed85f231.js","./Common-legacy.65996de0.js","./useTitle-legacy.3f53e3dc.js","./index-legacy.f351c9d5.js","./index-legacy.b47c082c.js","./index-legacy.a94e1da0.js","./index-legacy.700628c0.js","./SettingItem-legacy.92882c3f.js","./item_type-legacy.1b6076a1.js","./ResponsiveGrid-legacy.0bb996c1.js"],(function(t,r){"use strict";var i,a,u,c,l,s,f,h,d,p,g,v,y,m,w,x,b,k,L,_,j,S,E,C,N,O,$,I,G,T,A,P,z,M,B;return{setters:[function(t){i=t.eg,a=t.aA,u=t.b,c=t.B,l=t.ba,s=t.bq,f=t.r,h=t.eD,d=t.eE,p=t.aW,g=t.x,v=t.bW,y=t.S,m=t.aw,w=t.ah,x=t.aE,b=t.X,k=t.ar,L=t.aG,_=t.cI,j=t.dS,S=t.Q,E=t.R,C=t.M,N=t.I,O=t.W,$=t.J,I=t.K,G=t.T,T=t.L,A=t.O,P=t.a2,z=t.bc},function(t){M=t.G},function(t){B=t.default},null,null,null,null,null,null,null,null],execute:function(){var r=a('<svg width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2"><path stroke-dasharray="60" stroke-dashoffset="60" stroke-opacity=".3" d="M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="1.3s" values="60;0"></animate></path><path stroke-dasharray="15" stroke-dashoffset="15" d="M12 3C16.9706 3 21 7.02944 21 12"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.3s" values="15;0"></animate><animateTransform attributeName="transform" dur="1.5s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"></animateTransform></path></g></svg>'),F=a('<svg width="1em" height="1em" viewBox="0 0 24 24"><g stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path fill="currentColor" fill-opacity="0" stroke-dasharray="60" stroke-dashoffset="60" d="M3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.5s" values="60;0"></animate><animate fill="freeze" attributeName="fill-opacity" begin="0.8s" dur="0.15s" values="0;0.3"></animate></path><path fill="none" stroke-dasharray="14" stroke-dashoffset="14" d="M8 12L11 15L16 10"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.2s" values="14;0"></animate></path></g></svg>');function D(t){return e=r.cloneNode(!0),i(e,t,!0,!0),e;var e}function W(t){return e=F.cloneNode(!0),i(e,t,!0,!0),e;var e}t("default",(function(){var t=u(),r=o(c(),2),i=r[0],a=r[1],F=o(l((function(){return s.get("/admin/index/progress")})),2),q=F[0],R=F[1],X=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,R();case 2:r=t.sent,P(r,(function(t){a(t)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Y=setInterval(X,5e3);f((function(){return clearInterval(Y)})),X();var Z,J,K=o(l(h),2),Q=K[0],U=K[1],H=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U();case 2:r=t.sent,z(r),X();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),V=o(l((function(){return s.post("/admin/index/clear")})),2),tt=V[0],et=V[1],rt=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,et();case 2:r=t.sent,z(r),X();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),nt=o(l((function(){return s.post("/admin/index/stop")})),2),ot=nt[0],it=nt[1],at=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,it();case 2:r=t.sent,z(r),X();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),ut=o(l(d),2),ct=ut[0],lt=ut[1],st=function(){var t=n(e().mark((function t(){var r,n,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],Z.value&&(r=Z.value.split("\n")),n=20,J.value&&(n=parseInt(J.value)),t.next=6,lt(r,n);case 6:o=t.sent,z(o),X();case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),ft=p(),ht=ft.isOpen,dt=ft.onOpen,pt=ft.onClose;return g(b,{spacing:"$2",w:"$full",alignItems:"start",get children(){return[g(v,{get children(){return t("manage.sidemenu.settings")}}),g(B,{get group(){return M.INDEX}}),g(v,{get children(){return t("indexes.current")}}),g(y,{get when(){return i()},get children(){return g(m,{spacing:"$2",w:"fit-content",shadow:"$md",rounded:"$lg",get bg(){return w("","$neutral3")()},get children(){return[g(x,{boxSize:"$28",color:"$accent9",p:"$2",get as(){var t;return null!==(t=i())&&void 0!==t&&t.is_done?W:D}}),g(b,{spacing:"$2",flex:"1",alignItems:"start",mr:"$2",get children(){return[g(k,{get children(){return[L((function(){return t("indexes.obj_count")})),":",g(_,{colorScheme:"info",ml:"$2",get children(){var t;return null===(t=i())||void 0===t?void 0:t.obj_count}})]}}),g(k,{get children(){return[L((function(){return t("indexes.last_done_time")})),":",g(_,{colorScheme:"accent",ml:"$2",get children(){return L((function(){return!!i().last_done_time}),!0)()?j(i().last_done_time):t("indexes.unknown")}})]}}),g(y,{get when(){var t;return null===(t=i())||void 0===t?void 0:t.error},get children(){return g(k,{css:{wordBreak:"break-all"},get children(){return[L((function(){return t("indexes.error")})),":",g(_,{colorScheme:"danger",ml:"$2",get children(){return i().error}})]}})}})]}})]}})}}),g(m,{spacing:"$2",get children(){return[g(S,{colorScheme:"accent",onClick:[X,void 0],get loading(){return q()},get children(){return t("global.refresh")}}),g(S,{colorScheme:"danger",onClick:[rt,void 0],get loading(){return tt()},get children(){return t("indexes.clear")}}),g(S,{colorScheme:"warning",onClick:[at,void 0],get loading(){return ot()},get children(){return t("indexes.stop")}}),g(S,{onClick:[H,void 0],get loading(){return Q()},get children(){var e;return t("indexes.".concat(null!==(e=i())&&void 0!==e&&e.is_done?"rebuild":"build"))}})]}}),g(S,{onClick:dt,get children(){return t("indexes.update")}}),g(E,{get opened(){return ht()},onClose:pt,get children(){return[g(C,{}),g(N,{get children(){return[g(O,{}),g($,{get children(){return t("indexes.update")}}),g(I,{get children(){return[g(v,{get children(){return t("indexes.paths_to_update")}}),g(G,{ref:function(t){"function"==typeof Z?Z(t):Z=t}}),g(v,{get children(){return t("indexes.max_depth")}}),g(T,{value:20,type:"number",ref:function(t){"function"==typeof J?J(t):J=t}})]}}),g(A,{get children(){return g(S,{onClick:[st,void 0],get loading(){return ct()},get children(){return t("indexes.update")}})}})]}})]}})]}})}))}}}))}();
1
+ !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(C){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return E()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(C){return{type:"throw",arg:C}}}r.wrap=s;var h={};function d(){}function p(){}function g(){}var v={};l(v,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(S([])));m&&m!==n&&o.call(m,a)&&(v=m);var w=g.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function b(e,r){function n(i,a,u,c){var l=f(e[i],e,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(h).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function S(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=g,l(w,"constructor",g),l(g,"constructor",p),p.displayName=l(g,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},x(b.prototype),l(b.prototype,u,(function(){return this})),r.AsyncIterator=b,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new b(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=S,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy.9a995a78.js","./index-legacy.35aba8a0.js","./Common-legacy.b3ab5071.js","./useTitle-legacy.2e69d9a6.js","./index-legacy.831645c0.js","./index-legacy.f9d48ec7.js","./index-legacy.257815ef.js","./index-legacy.7b9d362b.js","./SettingItem-legacy.b5a9ffeb.js","./item_type-legacy.1b6076a1.js","./ResponsiveGrid-legacy.a9062597.js"],(function(t,r){"use strict";var i,a,u,c,l,s,f,h,d,p,g,v,y,m,w,x,b,k,L,_,j,S,E,C,N,O,$,I,G,A,T,P,z,F,M;return{setters:[function(t){i=t.eg,a=t.aA,u=t.b,c=t.C,l=t.ba,s=t.bq,f=t.x,h=t.eD,d=t.eE,p=t.aW,g=t.y,v=t.bW,y=t.S,m=t.aw,w=t.ai,x=t.aE,b=t.Y,k=t.ar,L=t.aG,_=t.cI,j=t.dS,S=t.R,E=t.U,C=t.M,N=t.J,O=t.X,$=t.K,I=t.L,G=t.T,A=t.N,T=t.Q,P=t.a3,z=t.bc},function(t){F=t.G},function(t){M=t.default},null,null,null,null,null,null,null,null],execute:function(){var r=a('<svg width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2"><path stroke-dasharray="60" stroke-dashoffset="60" stroke-opacity=".3" d="M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="1.3s" values="60;0"></animate></path><path stroke-dasharray="15" stroke-dashoffset="15" d="M12 3C16.9706 3 21 7.02944 21 12"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.3s" values="15;0"></animate><animateTransform attributeName="transform" dur="1.5s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"></animateTransform></path></g></svg>'),B=a('<svg width="1em" height="1em" viewBox="0 0 24 24"><g stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path fill="currentColor" fill-opacity="0" stroke-dasharray="60" stroke-dashoffset="60" d="M3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.5s" values="60;0"></animate><animate fill="freeze" attributeName="fill-opacity" begin="0.8s" dur="0.15s" values="0;0.3"></animate></path><path fill="none" stroke-dasharray="14" stroke-dashoffset="14" d="M8 12L11 15L16 10"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.2s" values="14;0"></animate></path></g></svg>');function D(t){return e=r.cloneNode(!0),i(e,t,!0,!0),e;var e}function Y(t){return e=B.cloneNode(!0),i(e,t,!0,!0),e;var e}t("default",(function(){var t=u(),r=o(c(),2),i=r[0],a=r[1],B=o(l((function(){return s.get("/admin/index/progress")})),2),q=B[0],R=B[1],U=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,R();case 2:r=t.sent,P(r,(function(t){a(t)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),W=setInterval(U,5e3);f((function(){return clearInterval(W)})),U();var X,Z,J=o(l(h),2),K=J[0],Q=J[1],H=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Q();case 2:r=t.sent,z(r),U();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),V=o(l((function(){return s.post("/admin/index/clear")})),2),tt=V[0],et=V[1],rt=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,et();case 2:r=t.sent,z(r),U();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),nt=o(l((function(){return s.post("/admin/index/stop")})),2),ot=nt[0],it=nt[1],at=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,it();case 2:r=t.sent,z(r),U();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),ut=o(l(d),2),ct=ut[0],lt=ut[1],st=function(){var t=n(e().mark((function t(){var r,n,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],X.value&&(r=X.value.split("\n")),n=20,Z.value&&(n=parseInt(Z.value)),t.next=6,lt(r,n);case 6:o=t.sent,z(o),U();case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),ft=p(),ht=ft.isOpen,dt=ft.onOpen,pt=ft.onClose;return g(b,{spacing:"$2",w:"$full",alignItems:"start",get children(){return[g(v,{get children(){return t("manage.sidemenu.settings")}}),g(M,{get group(){return F.INDEX}}),g(v,{get children(){return t("indexes.current")}}),g(y,{get when(){return i()},get children(){return g(m,{spacing:"$2",w:"fit-content",shadow:"$md",rounded:"$lg",get bg(){return w("","$neutral3")()},get children(){return[g(x,{boxSize:"$28",color:"$accent9",p:"$2",get as(){var t;return null!==(t=i())&&void 0!==t&&t.is_done?Y:D}}),g(b,{spacing:"$2",flex:"1",alignItems:"start",mr:"$2",get children(){return[g(k,{get children(){return[L((function(){return t("indexes.obj_count")})),":",g(_,{colorScheme:"info",ml:"$2",get children(){var t;return null===(t=i())||void 0===t?void 0:t.obj_count}})]}}),g(k,{get children(){return[L((function(){return t("indexes.last_done_time")})),":",g(_,{colorScheme:"accent",ml:"$2",get children(){return L((function(){return!!i().last_done_time}),!0)()?j(i().last_done_time):t("indexes.unknown")}})]}}),g(y,{get when(){var t;return null===(t=i())||void 0===t?void 0:t.error},get children(){return g(k,{css:{wordBreak:"break-all"},get children(){return[L((function(){return t("indexes.error")})),":",g(_,{colorScheme:"danger",ml:"$2",get children(){return i().error}})]}})}})]}})]}})}}),g(m,{spacing:"$2",get children(){return[g(S,{colorScheme:"accent",onClick:[U,void 0],get loading(){return q()},get children(){return t("global.refresh")}}),g(S,{colorScheme:"danger",onClick:[rt,void 0],get loading(){return tt()},get children(){return t("indexes.clear")}}),g(S,{colorScheme:"warning",onClick:[at,void 0],get loading(){return ot()},get children(){return t("indexes.stop")}}),g(S,{onClick:[H,void 0],get loading(){return K()},get children(){var e;return t("indexes.".concat(null!==(e=i())&&void 0!==e&&e.is_done?"rebuild":"build"))}})]}}),g(S,{onClick:dt,get children(){return t("indexes.update")}}),g(E,{get opened(){return ht()},onClose:pt,get children(){return[g(C,{}),g(N,{get children(){return[g(O,{}),g($,{get children(){return t("indexes.update")}}),g(I,{get children(){return[g(v,{get children(){return t("indexes.paths_to_update")}}),g(G,{ref:function(t){"function"==typeof X?X(t):X=t}}),g(v,{get children(){return t("indexes.max_depth")}}),g(A,{value:20,type:"number",ref:function(t){"function"==typeof Z?Z(t):Z=t}})]}}),g(T,{get children(){return g(S,{onClick:[st,void 0],get loading(){return ct()},get children(){return t("indexes.update")}})}})]}})]}})]}})}))}}}))}();
@@ -1 +1 @@
1
- import{b as g,A as l,an as r,x as e,aB as m,aE as u,aD as b,ds as d,X as s,bW as h,S as f,cI as S,aG as a,ar as p,de as $,dS as j}from"./index-097118aa.js";import{n as x}from"./storage-class-1ac53f89.js";const y=c=>{const t=g(),i=l(()=>x(r.obj.storage_class)),n=l(()=>{const o=i();return o?t(`home.storage_class.${o}`):void 0});return e(s,{class:"fileinfo",py:"$6",spacing:"$6",get children(){return[e(m,{boxSize:"$20",get fallback(){return e(u,{get color(){return b()},boxSize:"$20",get as(){return d(r.obj)}})},get src(){return r.obj.thumb}}),e(s,{spacing:"$2",get children(){return[e(h,{size:"lg",css:{wordBreak:"break-all"},get children(){return r.obj.name}}),e(f,{get when(){return n()},get children(){return e(S,{variant:"subtle",colorScheme:"primary",textTransform:"none",css:{"align-self":"flex-start","font-size":"0.75rem"},get children(){return[a(()=>t("home.storage_class.label")),": ",a(()=>n())]}})}}),e(p,{color:"$neutral10",size:"sm",get children(){return[a(()=>$(r.obj.size))," · ",a(()=>j(r.obj.modified))]}})]}}),e(s,{spacing:"$2",get children(){return c.children}})]}})};export{y as F};
1
+ import{b as g,B as l,an as r,y as e,aB as m,aE as u,aD as b,ds as d,Y as s,bW as h,S as f,cI as S,aG as a,ar as p,de as $,dS as j}from"./index-0af67a26.js";import{n as z}from"./storage-class-1ac53f89.js";const B=c=>{const t=g(),i=l(()=>z(r.obj.storage_class)),n=l(()=>{const o=i();return o?t(`home.storage_class.${o}`):void 0});return e(s,{class:"fileinfo",py:"$6",spacing:"$6",get children(){return[e(m,{boxSize:"$20",get fallback(){return e(u,{get color(){return b()},boxSize:"$20",get as(){return d(r.obj)}})},get src(){return r.obj.thumb}}),e(s,{spacing:"$2",get children(){return[e(h,{size:"lg",css:{wordBreak:"break-all"},get children(){return r.obj.name}}),e(f,{get when(){return n()},get children(){return e(S,{variant:"subtle",colorScheme:"primary",textTransform:"none",css:{"align-self":"flex-start","font-size":"0.75rem"},get children(){return[a(()=>t("home.storage_class.label")),": ",a(()=>n())]}})}}),e(p,{color:"$neutral10",size:"sm",get children(){return[a(()=>$(r.obj.size))," · ",a(()=>j(r.obj.modified))]}})]}}),e(s,{spacing:"$2",get children(){return c.children}})]}})};export{B as F};
@@ -1 +1 @@
1
- System.register(["./index-legacy.8e6dd372.js","./storage-class-legacy.7f6d9768.js"],(function(e,r){"use strict";var n,t,c,s,a,i,o,u,l,g,f,d,b,h,m,j,x;return{setters:[function(e){n=e.b,t=e.A,c=e.an,s=e.x,a=e.aB,i=e.aE,o=e.aD,u=e.ds,l=e.X,g=e.bW,f=e.S,d=e.cI,b=e.aG,h=e.ar,m=e.de,j=e.dS},function(e){x=e.n}],execute:function(){e("F",(function(e){var r=n(),$=t((function(){return x(c.obj.storage_class)})),y=t((function(){var e=$();return e?r("home.storage_class.".concat(e)):void 0}));return s(l,{class:"fileinfo",py:"$6",spacing:"$6",get children(){return[s(a,{boxSize:"$20",get fallback(){return s(i,{get color(){return o()},boxSize:"$20",get as(){return u(c.obj)}})},get src(){return c.obj.thumb}}),s(l,{spacing:"$2",get children(){return[s(g,{size:"lg",css:{wordBreak:"break-all"},get children(){return c.obj.name}}),s(f,{get when(){return y()},get children(){return s(d,{variant:"subtle",colorScheme:"primary",textTransform:"none",css:{"align-self":"flex-start","font-size":"0.75rem"},get children(){return[b((function(){return r("home.storage_class.label")})),": ",b((function(){return y()}))]}})}}),s(h,{color:"$neutral10",size:"sm",get children(){return[b((function(){return m(c.obj.size)}))," · ",b((function(){return j(c.obj.modified)}))]}})]}}),s(l,{spacing:"$2",get children(){return e.children}})]}})}))}}}));
1
+ System.register(["./index-legacy.9a995a78.js","./storage-class-legacy.7f6d9768.js"],(function(e,r){"use strict";var n,t,c,s,a,i,o,u,l,g,f,d,b,h,m,j,z;return{setters:[function(e){n=e.b,t=e.B,c=e.an,s=e.y,a=e.aB,i=e.aE,o=e.aD,u=e.ds,l=e.Y,g=e.bW,f=e.S,d=e.cI,b=e.aG,h=e.ar,m=e.de,j=e.dS},function(e){z=e.n}],execute:function(){e("F",(function(e){var r=n(),$=t((function(){return z(c.obj.storage_class)})),x=t((function(){var e=$();return e?r("home.storage_class.".concat(e)):void 0}));return s(l,{class:"fileinfo",py:"$6",spacing:"$6",get children(){return[s(a,{boxSize:"$20",get fallback(){return s(i,{get color(){return o()},boxSize:"$20",get as(){return u(c.obj)}})},get src(){return c.obj.thumb}}),s(l,{spacing:"$2",get children(){return[s(g,{size:"lg",css:{wordBreak:"break-all"},get children(){return c.obj.name}}),s(f,{get when(){return x()},get children(){return s(d,{variant:"subtle",colorScheme:"primary",textTransform:"none",css:{"align-self":"flex-start","font-size":"0.75rem"},get children(){return[b((function(){return r("home.storage_class.label")})),": ",b((function(){return x()}))]}})}}),s(h,{color:"$neutral10",size:"sm",get children(){return[b((function(){return m(c.obj.size)}))," · ",b((function(){return j(c.obj.modified)}))]}})]}}),s(l,{spacing:"$2",get children(){return e.children}})]}})}))}}}));
@@ -1 +1 @@
1
- import{b as m,B as t,cT as u,x as e,aw as p,Q as a,eY as g,eZ as f,an as r,eX as d}from"./index-097118aa.js";import{F as h}from"./info-e6aec8da.js";import"./storage-class-1ac53f89.js";const k=()=>{const n=m(),[s,i]=t(!1),[o,l]=t(!1),{currentObjLink:c}=u();return e(h,{get children(){return e(p,{spacing:"$2",get children(){return[e(a,{as:"a",get href(){return`itms-services://?action=download-manifest&url=${g}/i/${f(encodeURIComponent(r.raw_url)+"/"+d(encodeURIComponent(r.obj.name)))}.plist`},onClick:()=>{i(!0)},get children(){return n(`home.preview.${s()?"installing":"install"}`)}}),e(a,{as:"a",colorScheme:"primary",get href(){return"apple-magnifier://install?url="+encodeURIComponent(c(!0))},onClick:()=>{l(!0)},get children(){return n(`home.preview.${o()?"tr-installing":"tr-install"}`)}})]}})}})};export{k as default};
1
+ import{b as m,C as t,cT as u,y as e,aw as p,R as a,eY as g,eZ as f,an as r,eX as d}from"./index-0af67a26.js";import{F as h}from"./info-6b46a634.js";import"./storage-class-1ac53f89.js";const k=()=>{const n=m(),[s,i]=t(!1),[o,l]=t(!1),{currentObjLink:c}=u();return e(h,{get children(){return e(p,{spacing:"$2",get children(){return[e(a,{as:"a",get href(){return`itms-services://?action=download-manifest&url=${g}/i/${f(encodeURIComponent(r.raw_url)+"/"+d(encodeURIComponent(r.obj.name)))}.plist`},onClick:()=>{i(!0)},get children(){return n(`home.preview.${s()?"installing":"install"}`)}}),e(a,{as:"a",colorScheme:"primary",get href(){return"apple-magnifier://install?url="+encodeURIComponent(c(!0))},onClick:()=>{l(!0)},get children(){return n(`home.preview.${o()?"tr-installing":"tr-install"}`)}})]}})}})};export{k as default};
@@ -1 +1 @@
1
- !function(){function n(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null==r)return;var e,o,i=[],a=!0,l=!1;try{for(r=r.call(n);!(a=(e=r.next()).done)&&(i.push(e.value),!t||i.length!==t);a=!0);}catch(c){l=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}(n,r)||function(n,r){if(!n)return;if("string"==typeof n)return t(n,r);var e=Object.prototype.toString.call(n).slice(8,-1);"Object"===e&&n.constructor&&(e=n.constructor.name);if("Map"===e||"Set"===e)return Array.from(n);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return t(n,r)}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=new Array(t);r<t;r++)e[r]=n[r];return e}System.register(["./index-legacy.8e6dd372.js","./info-legacy.8e2407e9.js","./storage-class-legacy.7f6d9768.js"],(function(t,r){"use strict";var e,o,i,a,l,c,u,s,f,y,m;return{setters:[function(n){e=n.b,o=n.B,i=n.cT,a=n.x,l=n.aw,c=n.Q,u=n.eY,s=n.eZ,f=n.an,y=n.eX},function(n){m=n.F},null],execute:function(){t("default",(function(){var t=e(),r=n(o(!1),2),g=r[0],d=r[1],p=n(o(!1),2),h=p[0],b=p[1],v=i().currentObjLink;return a(m,{get children(){return a(l,{spacing:"$2",get children(){return[a(c,{as:"a",get href(){return"itms-services://?action=download-manifest&url="+"".concat(u,"/i/").concat(s(encodeURIComponent(f.raw_url)+"/"+y(encodeURIComponent(f.obj.name))),".plist")},onClick:function(){d(!0)},get children(){return t("home.preview.".concat(g()?"installing":"install"))}}),a(c,{as:"a",colorScheme:"primary",get href(){return"apple-magnifier://install?url="+encodeURIComponent(v(!0))},onClick:function(){b(!0)},get children(){return t("home.preview.".concat(h()?"tr-installing":"tr-install"))}})]}})}})}))}}}))}();
1
+ !function(){function n(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null==r)return;var e,o,i=[],a=!0,l=!1;try{for(r=r.call(n);!(a=(e=r.next()).done)&&(i.push(e.value),!t||i.length!==t);a=!0);}catch(c){l=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}(n,r)||function(n,r){if(!n)return;if("string"==typeof n)return t(n,r);var e=Object.prototype.toString.call(n).slice(8,-1);"Object"===e&&n.constructor&&(e=n.constructor.name);if("Map"===e||"Set"===e)return Array.from(n);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return t(n,r)}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=new Array(t);r<t;r++)e[r]=n[r];return e}System.register(["./index-legacy.9a995a78.js","./info-legacy.dc8f48be.js","./storage-class-legacy.7f6d9768.js"],(function(t,r){"use strict";var e,o,i,a,l,c,u,s,f,y,m;return{setters:[function(n){e=n.b,o=n.C,i=n.cT,a=n.y,l=n.aw,c=n.R,u=n.eY,s=n.eZ,f=n.an,y=n.eX},function(n){m=n.F},null],execute:function(){t("default",(function(){var t=e(),r=n(o(!1),2),g=r[0],d=r[1],p=n(o(!1),2),h=p[0],b=p[1],v=i().currentObjLink;return a(m,{get children(){return a(l,{spacing:"$2",get children(){return[a(c,{as:"a",get href(){return"itms-services://?action=download-manifest&url="+"".concat(u,"/i/").concat(s(encodeURIComponent(f.raw_url)+"/"+y(encodeURIComponent(f.obj.name))),".plist")},onClick:function(){d(!0)},get children(){return t("home.preview.".concat(g()?"installing":"install"))}}),a(c,{as:"a",colorScheme:"primary",get href(){return"apple-magnifier://install?url="+encodeURIComponent(v(!0))},onClick:function(){b(!0)},get children(){return t("home.preview.".concat(h()?"tr-installing":"tr-install"))}})]}})}})}))}}}))}();
@@ -1 +1 @@
1
- import{b as n,x as e,aw as a,Q as o,an as t,dt as l,dI as u}from"./index-097118aa.js";import{k as i}from"./index-f48677b4.js";const d=()=>{const r=n();return e(u,{w:"$full",h:"75vh",get children(){return[e(a,{mb:"$2",justifyContent:"flex-end",get children(){return e(o,{as:"a",get href(){return t.raw_url},target:"_blank",get leftIcon(){return e(i,{})},get children(){return r("home.preview.open_in_new_window")}})}}),e(l.iframe,{w:"$full",h:"$full",rounded:"$lg",shadow:"$md",get src(){return t.raw_url},get title(){return r("home.preview.lark_preview")}})]}})};export{d as default};
1
+ import{b as n,y as e,aw as a,R as l,an as t,dt as o,dI as u}from"./index-0af67a26.js";import{l as i}from"./index-6cfcfd46.js";const d=()=>{const r=n();return e(u,{w:"$full",h:"75vh",get children(){return[e(a,{mb:"$2",justifyContent:"flex-end",get children(){return e(l,{as:"a",get href(){return t.raw_url},target:"_blank",get leftIcon(){return e(i,{})},get children(){return r("home.preview.open_in_new_window")}})}}),e(o.iframe,{w:"$full",h:"$full",rounded:"$lg",shadow:"$md",get src(){return t.raw_url},get title(){return r("home.preview.lark_preview")}})]}})};export{d as default};
@@ -0,0 +1 @@
1
+ System.register(["./index-legacy.9a995a78.js","./index-legacy.257815ef.js"],(function(e,r){"use strict";var t,n,u,l,i,a,c,d;return{setters:[function(e){t=e.b,n=e.y,u=e.aw,l=e.R,i=e.an,a=e.dt,c=e.dI},function(e){d=e.l}],execute:function(){e("default",(function(){var e=t();return n(c,{w:"$full",h:"75vh",get children(){return[n(u,{mb:"$2",justifyContent:"flex-end",get children(){return n(l,{as:"a",get href(){return i.raw_url},target:"_blank",get leftIcon(){return n(d,{})},get children(){return e("home.preview.open_in_new_window")}})}}),n(a.iframe,{w:"$full",h:"$full",rounded:"$lg",shadow:"$md",get src(){return i.raw_url},get title(){return e("home.preview.lark_preview")}})]}})}))}}}));
@@ -1 +1 @@
1
- import{d as ke,b as be,U as ve,B as p,A as z,r as $e,ba as J,bq as q,_ as A,H as oe,an as M,x as t,X as W,aw as H,av as P,ar as b,aG as u,bs as ne,S as v,cJ as G,dB as K,cL as Q,Q as V,a2 as X,n as Y}from"./index-097118aa.js";const xe=[".lark-doc",".lark-docx",".lark-sheet",".lark-bitable"],Se=i=>{for(const s of xe)if(i.endsWith(s))return i.slice(0,-s.length);return i},ae=()=>typeof window<"u"&&window.sessionStorage,Te=()=>{const{pathname:i}=ke(),s=be(),{copy:ie}=ve(),[l,Z]=p(),[ee,F]=p(""),[_,y]=p("pdf"),[g,$]=p(""),[T,C]=p(""),[c,d]=p("idle"),[E,R]=p(""),[I,f]=p(""),[x,h]=p("");let w,O=0;const B=(e=i(),r=M.obj.name)=>`alist:lark-export:${e}:${r}`,le=z(()=>{var e;return(e=l())==null?void 0:e.formats.find(r=>r.value===_())}),j=z(()=>{var e;return((e=le())==null?void 0:e.requires_sub_id)??!1}),D=z(()=>{var e;return((e=l())==null?void 0:e.sub_resources)??[]}),ce=z(()=>{var e;return!!((e=l())!=null&&e.formats.length)&&(!j()||!!g())}),m=()=>{w!==void 0&&(window.clearTimeout(w),w=void 0)};$e(m);const re=e=>{const r=ae();!r||!e.ticket||r.setItem(B(),JSON.stringify(e))},k=(e={})=>{!T()&&!e.ticket||re({ticket:e.ticket??T(),format:e.format??_(),sub_id:e.sub_id??g(),status:e.status??c(),file_token:e.file_token??E(),error_message:e.error_message??I(),error_detail:e.error_detail??x(),updated_at:Date.now()})},ue=(e,r,a)=>{const o=ae();if(!o)return;const S=o.getItem(B(e,r));if(!S)return;let n;try{n=JSON.parse(S)}catch{o.removeItem(B(e,r));return}if(!n.ticket||!a.formats.some(L=>L.value===n.format)){o.removeItem(B(e,r));return}C(n.ticket),y(n.format),$(n.sub_id??""),d(n.status),R(n.file_token??""),f(n.error_message??""),h(n.error_detail??""),(n.status==="pending"||n.status==="processing")&&(d("processing"),w=window.setTimeout(N,500))},[te,de]=J(()=>q.post("/fs/other",{path:i(),password:A(),method:"lark_export_options",data:{}}),!0),[pe,_e]=J(()=>q.post("/fs/other",{path:i(),password:A(),method:"lark_export_create",data:{format:_(),sub_id:g()}})),[ge,fe]=J(()=>q.post("/fs/other",{path:i(),password:A(),method:"lark_export_status",data:{ticket:T()}})),he=async(e,r)=>{m(),O=0,Z(void 0),F(""),C(""),R(""),f(""),h(""),d("idle");const a=await de();X(a,o=>{var n,L,se;Z(o);const S=(n=o.formats[0])==null?void 0:n.value;S&&y(S),$(((se=(L=o.sub_resources)==null?void 0:L[0])==null?void 0:se.id)??""),o.sub_resource_error&&F(o.sub_resource_error),ue(e,r,o)},o=>{F(o)},!0,!1)};oe(()=>{he(i(),M.obj.name)}),oe(()=>{var r,a;const e=(r=l())==null?void 0:r.formats;if(e!=null&&e.length&&!e.some(o=>o.value===_())&&y(e[0].value),!j()){$("");return}!g()&&((a=D()[0])!=null&&a.id)&&$(D()[0].id)});const N=async()=>{if(!T())return;const e=await fe();X(e,r=>{if(d(r.status),r.error_message&&f(r.error_message),r.error_detail&&h(r.error_detail),r.status==="success"&&r.file_token){R(r.file_token),k({status:"success",file_token:r.file_token,error_message:"",error_detail:""}),m();return}if(r.status==="failed"){k({status:"failed",error_message:r.error_message??I(),error_detail:r.error_detail??x()}),m();return}if(O+=1,O>=30){const a=s("home.preview.lark_tools.export_timeout");d("failed"),f(a),h(""),k({status:"failed",error_message:a,error_detail:""}),m();return}k({status:"processing"}),w=window.setTimeout(N,2e3)},r=>{d("failed"),f(r),h(r),k({status:"failed",error_message:r,error_detail:r}),m()},!0,!1)},me=async()=>{if(j()&&!g()){Y.warning(s("home.preview.lark_tools.sub_resource_required"));return}m(),O=0,C(""),R(""),f(""),h(""),d("pending");const e=await _e();X(e,r=>{C(r.ticket),d("processing"),re({ticket:r.ticket,format:r.format,sub_id:r.sub_id??g(),status:"processing",updated_at:Date.now()}),w=window.setTimeout(N,1e3)},r=>{d("failed"),f(r),h(r),k({status:"failed",error_message:r,error_detail:r})})},U=()=>`${Se(M.obj.name)}.${_()}`,we=async()=>{if(!E())return;const e=new URLSearchParams({path:i(),password:A(),file_token:E(),filename:U()}),r=await q.get(`/fs/lark/export/download?${e.toString()}`,{responseType:"blob"});if(!(r instanceof Blob)){Y.error((r==null?void 0:r.message)??s("home.preview.lark_tools.download_failed"));return}const a=URL.createObjectURL(r),o=document.createElement("a");o.href=a,o.download=U(),document.body.appendChild(o),o.click(),o.remove(),URL.revokeObjectURL(a),Y.success(s("home.preview.lark_tools.download_started"))};return t(P,{w:"$full",border:"1px solid $neutral6",rounded:"$lg",p:"$4",get children(){return t(W,{alignItems:"stretch",spacing:"$4",get children(){return[t(H,{justifyContent:"space-between",alignItems:"center",get children(){return[t(P,{get children(){return[t(b,{fontWeight:"$semibold",get children(){return s("home.preview.lark_tools.title")}}),t(b,{color:"$neutral11",size:"sm",get children(){return u(()=>!!te(),!0)()?s("home.preview.lark_tools.loading_options"):u(()=>!!l(),!0)()?s(`home.preview.lark_tools.type.${l().type}`):s("home.preview.lark_tools.unsupported_current")}})]}}),t(ne,{get value(){return _()},onChange:e=>y(e),get options(){var e;return((e=l())==null?void 0:e.formats.map(r=>({value:r.value,label:r.label})))??[{value:_(),label:_().toUpperCase()}]},size:"sm",w:"120px"})]}}),t(v,{get when(){return ee()},get children(){return t(G,{get status(){return l()?"warning":"danger"},get children(){return[t(K,{get children(){return u(()=>!!l(),!0)()?s("home.preview.lark_tools.sub_resource_error"):s("home.preview.lark_tools.option_failed")}}),t(Q,{get children(){return ee()}})]}})}}),t(v,{get when(){var e;return(e=l())==null?void 0:e.formats.length},get fallback(){return t(G,{status:"warning",get children(){return[t(K,{get children(){return s("home.preview.lark_tools.unsupported_title")}}),t(Q,{get children(){return s("home.preview.lark_tools.unsupported_description")}})]}})},get children(){return[t(v,{get when(){return j()},get children(){return t(W,{alignItems:"stretch",spacing:"$2",get children(){return[t(b,{color:"$neutral11",size:"sm",get children(){return s("home.preview.lark_tools.sub_resource")}}),t(ne,{get value(){return g()},onChange:e=>$(e),get options(){return u(()=>!!D().length,!0)()?D().map(e=>({value:e.id,label:e.name})):[{value:"",label:s("home.preview.lark_tools.no_sub_resources")}]},size:"sm",w:"$full"})]}})}}),t(b,{color:"$neutral11",size:"sm",get children(){return s("home.preview.lark_tools.download_name",{name:U()})}}),t(H,{spacing:"$3",get children(){return[t(V,{colorScheme:"accent",get loading(){return pe()},get isDisabled(){return te()||ge()||c()==="processing"||!ce()},onClick:me,get children(){return s("home.preview.lark_tools.create_export_task")}}),t(v,{get when(){return u(()=>c()==="success",!0)()&&E()},get children(){return t(V,{onClick:we,get children(){return s("home.preview.lark_tools.download_export",{name:U()})}})}})]}}),t(v,{get when(){return c()!=="idle"},get children(){return t(G,{get status(){return u(()=>c()==="failed",!0)()?"danger":c()==="success"?"success":"info"},get children(){return[t(K,{get children(){return u(()=>c()==="success",!0)()?s("home.preview.lark_tools.status.success_title"):u(()=>c()==="failed",!0)()?s("home.preview.lark_tools.status.failed_title"):s("home.preview.lark_tools.status.processing_title")}}),t(Q,{get children(){return u(()=>c()==="failed",!0)()?t(W,{alignItems:"stretch",spacing:"$2",get children(){return[t(b,{whiteSpace:"pre-wrap",get children(){return I()||s("home.preview.lark_tools.export_failed")}}),t(v,{get when(){return x()},get children(){return[t(H,{justifyContent:"space-between",get children(){return[t(b,{color:"$neutral11",get children(){return s("home.preview.lark_tools.feishu_error_detail")}}),t(V,{size:"sm",onClick:()=>ie(x()||I()),get children(){return s("home.preview.lark_tools.copy_error_detail")}})]}}),t(P,{as:"pre",m:"$0",p:"$2",rounded:"$md",bg:"$neutral3",whiteSpace:"pre-wrap",wordBreak:"break-word",get children(){return x()}})]}})]}}):u(()=>c()==="success",!0)()?s("home.preview.lark_tools.status.success_description"):s("home.preview.lark_tools.status.processing_description")}})]}})}})]}})]}})}})};export{Te as default};
1
+ import{d as ke,b as be,V as ve,C as p,B as z,x as $e,ba as J,bq as q,_ as F,I as oe,an as M,y as t,Y as W,aw as P,av as V,ar as b,aG as u,bs as ne,S as v,cJ as G,dB as H,cL as K,R as Y,a3 as Q,n as X}from"./index-0af67a26.js";const xe=[".lark-doc",".lark-docx",".lark-sheet",".lark-bitable"],ye=i=>{for(const s of xe)if(i.endsWith(s))return i.slice(0,-s.length);return i},ae=()=>typeof window<"u"&&window.sessionStorage,Te=()=>{const{pathname:i}=ke(),s=be(),{copy:ie}=ve(),[l,Z]=p(),[ee,A]=p(""),[_,S]=p("pdf"),[g,$]=p(""),[T,C]=p(""),[c,d]=p("idle"),[E,R]=p(""),[I,f]=p(""),[x,h]=p("");let w,O=0;const B=(e=i(),r=M.obj.name)=>`alist:lark-export:${e}:${r}`,le=z(()=>{var e;return(e=l())==null?void 0:e.formats.find(r=>r.value===_())}),j=z(()=>{var e;return((e=le())==null?void 0:e.requires_sub_id)??!1}),D=z(()=>{var e;return((e=l())==null?void 0:e.sub_resources)??[]}),ce=z(()=>{var e;return!!((e=l())!=null&&e.formats.length)&&(!j()||!!g())}),m=()=>{w!==void 0&&(window.clearTimeout(w),w=void 0)};$e(m);const re=e=>{const r=ae();!r||!e.ticket||r.setItem(B(),JSON.stringify(e))},k=(e={})=>{!T()&&!e.ticket||re({ticket:e.ticket??T(),format:e.format??_(),sub_id:e.sub_id??g(),status:e.status??c(),file_token:e.file_token??E(),error_message:e.error_message??I(),error_detail:e.error_detail??x(),updated_at:Date.now()})},ue=(e,r,a)=>{const o=ae();if(!o)return;const y=o.getItem(B(e,r));if(!y)return;let n;try{n=JSON.parse(y)}catch{o.removeItem(B(e,r));return}if(!n.ticket||!a.formats.some(U=>U.value===n.format)){o.removeItem(B(e,r));return}C(n.ticket),S(n.format),$(n.sub_id??""),d(n.status),R(n.file_token??""),f(n.error_message??""),h(n.error_detail??""),(n.status==="pending"||n.status==="processing")&&(d("processing"),w=window.setTimeout(N,500))},[te,de]=J(()=>q.post("/fs/other",{path:i(),password:F(),method:"lark_export_options",data:{}}),!0),[pe,_e]=J(()=>q.post("/fs/other",{path:i(),password:F(),method:"lark_export_create",data:{format:_(),sub_id:g()}})),[ge,fe]=J(()=>q.post("/fs/other",{path:i(),password:F(),method:"lark_export_status",data:{ticket:T()}})),he=async(e,r)=>{m(),O=0,Z(void 0),A(""),C(""),R(""),f(""),h(""),d("idle");const a=await de();Q(a,o=>{var n,U,se;Z(o);const y=(n=o.formats[0])==null?void 0:n.value;y&&S(y),$(((se=(U=o.sub_resources)==null?void 0:U[0])==null?void 0:se.id)??""),o.sub_resource_error&&A(o.sub_resource_error),ue(e,r,o)},o=>{A(o)},!0,!1)};oe(()=>{he(i(),M.obj.name)}),oe(()=>{var r,a;const e=(r=l())==null?void 0:r.formats;if(e!=null&&e.length&&!e.some(o=>o.value===_())&&S(e[0].value),!j()){$("");return}!g()&&((a=D()[0])!=null&&a.id)&&$(D()[0].id)});const N=async()=>{if(!T())return;const e=await fe();Q(e,r=>{if(d(r.status),r.error_message&&f(r.error_message),r.error_detail&&h(r.error_detail),r.status==="success"&&r.file_token){R(r.file_token),k({status:"success",file_token:r.file_token,error_message:"",error_detail:""}),m();return}if(r.status==="failed"){k({status:"failed",error_message:r.error_message??I(),error_detail:r.error_detail??x()}),m();return}if(O+=1,O>=30){const a=s("home.preview.lark_tools.export_timeout");d("failed"),f(a),h(""),k({status:"failed",error_message:a,error_detail:""}),m();return}k({status:"processing"}),w=window.setTimeout(N,2e3)},r=>{d("failed"),f(r),h(r),k({status:"failed",error_message:r,error_detail:r}),m()},!0,!1)},me=async()=>{if(j()&&!g()){X.warning(s("home.preview.lark_tools.sub_resource_required"));return}m(),O=0,C(""),R(""),f(""),h(""),d("pending");const e=await _e();Q(e,r=>{C(r.ticket),d("processing"),re({ticket:r.ticket,format:r.format,sub_id:r.sub_id??g(),status:"processing",updated_at:Date.now()}),w=window.setTimeout(N,1e3)},r=>{d("failed"),f(r),h(r),k({status:"failed",error_message:r,error_detail:r})})},L=()=>`${ye(M.obj.name)}.${_()}`,we=async()=>{if(!E())return;const e=new URLSearchParams({path:i(),password:F(),file_token:E(),filename:L()}),r=await q.get(`/fs/lark/export/download?${e.toString()}`,{responseType:"blob"});if(!(r instanceof Blob)){X.error((r==null?void 0:r.message)??s("home.preview.lark_tools.download_failed"));return}const a=URL.createObjectURL(r),o=document.createElement("a");o.href=a,o.download=L(),document.body.appendChild(o),o.click(),o.remove(),URL.revokeObjectURL(a),X.success(s("home.preview.lark_tools.download_started"))};return t(V,{w:"$full",border:"1px solid $neutral6",rounded:"$lg",p:"$4",get children(){return t(W,{alignItems:"stretch",spacing:"$4",get children(){return[t(P,{justifyContent:"space-between",alignItems:"center",get children(){return[t(V,{get children(){return[t(b,{fontWeight:"$semibold",get children(){return s("home.preview.lark_tools.title")}}),t(b,{color:"$neutral11",size:"sm",get children(){return u(()=>!!te(),!0)()?s("home.preview.lark_tools.loading_options"):u(()=>!!l(),!0)()?s(`home.preview.lark_tools.type.${l().type}`):s("home.preview.lark_tools.unsupported_current")}})]}}),t(ne,{get value(){return _()},onChange:e=>S(e),get options(){var e;return((e=l())==null?void 0:e.formats.map(r=>({value:r.value,label:r.label})))??[{value:_(),label:_().toUpperCase()}]},size:"sm",w:"120px"})]}}),t(v,{get when(){return ee()},get children(){return t(G,{get status(){return l()?"warning":"danger"},get children(){return[t(H,{get children(){return u(()=>!!l(),!0)()?s("home.preview.lark_tools.sub_resource_error"):s("home.preview.lark_tools.option_failed")}}),t(K,{get children(){return ee()}})]}})}}),t(v,{get when(){var e;return(e=l())==null?void 0:e.formats.length},get fallback(){return t(G,{status:"warning",get children(){return[t(H,{get children(){return s("home.preview.lark_tools.unsupported_title")}}),t(K,{get children(){return s("home.preview.lark_tools.unsupported_description")}})]}})},get children(){return[t(v,{get when(){return j()},get children(){return t(W,{alignItems:"stretch",spacing:"$2",get children(){return[t(b,{color:"$neutral11",size:"sm",get children(){return s("home.preview.lark_tools.sub_resource")}}),t(ne,{get value(){return g()},onChange:e=>$(e),get options(){return u(()=>!!D().length,!0)()?D().map(e=>({value:e.id,label:e.name})):[{value:"",label:s("home.preview.lark_tools.no_sub_resources")}]},size:"sm",w:"$full"})]}})}}),t(b,{color:"$neutral11",size:"sm",get children(){return s("home.preview.lark_tools.download_name",{name:L()})}}),t(P,{spacing:"$3",get children(){return[t(Y,{colorScheme:"accent",get loading(){return pe()},get isDisabled(){return te()||ge()||c()==="processing"||!ce()},onClick:me,get children(){return s("home.preview.lark_tools.create_export_task")}}),t(v,{get when(){return u(()=>c()==="success",!0)()&&E()},get children(){return t(Y,{onClick:we,get children(){return s("home.preview.lark_tools.download_export",{name:L()})}})}})]}}),t(v,{get when(){return c()!=="idle"},get children(){return t(G,{get status(){return u(()=>c()==="failed",!0)()?"danger":c()==="success"?"success":"info"},get children(){return[t(H,{get children(){return u(()=>c()==="success",!0)()?s("home.preview.lark_tools.status.success_title"):u(()=>c()==="failed",!0)()?s("home.preview.lark_tools.status.failed_title"):s("home.preview.lark_tools.status.processing_title")}}),t(K,{get children(){return u(()=>c()==="failed",!0)()?t(W,{alignItems:"stretch",spacing:"$2",get children(){return[t(b,{whiteSpace:"pre-wrap",get children(){return I()||s("home.preview.lark_tools.export_failed")}}),t(v,{get when(){return x()},get children(){return[t(P,{justifyContent:"space-between",get children(){return[t(b,{color:"$neutral11",get children(){return s("home.preview.lark_tools.feishu_error_detail")}}),t(Y,{size:"sm",onClick:()=>ie(x()||I()),get children(){return s("home.preview.lark_tools.copy_error_detail")}})]}}),t(V,{as:"pre",m:"$0",p:"$2",rounded:"$md",bg:"$neutral3",whiteSpace:"pre-wrap",wordBreak:"break-word",get children(){return x()}})]}})]}}):u(()=>c()==="success",!0)()?s("home.preview.lark_tools.status.success_description"):s("home.preview.lark_tools.status.processing_description")}})]}})}})]}})]}})}})};export{Te as default};
@@ -1 +1 @@
1
- !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch($){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=f(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch($){return{type:"throw",arg:$}}}r.wrap=s;var d={};function h(){}function p(){}function v(){}var m={};c(m,a,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(E([])));y&&y!==n&&o.call(y,a)&&(m=y);var w=v.prototype=h.prototype=Object.create(m);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(t,r){function n(i,a,u,l){var c=f(t[i],t,a);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==e(d)&&o.call(d,"__await")?r.resolve(d.__await).then((function(e){n("next",e,u,l)}),(function(e){n("throw",e,u,l)})):r.resolve(d).then((function(e){s.value=e,u(s)}),(function(e){return n("throw",e,u,l)}))}l(c.arg)}var i;this._invoke=function(e,t){function o(){return new r((function(r,o){n(e,t,r,o)}))}return i=i?i.then(o,o):o()}}function k(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=v,c(w,"constructor",v),c(v,"constructor",p),p.displayName=c(v,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},r.awrap=function(e){return{__await:e}},_(b.prototype),c(b.prototype,u,(function(){return this})),r.AsyncIterator=b,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new b(s(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),c(w,l,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=E,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},r}function r(e,t,r,n,o,i,a){try{var u=e[i](a),l=u.value}catch(c){return void r(c)}u.done?t(l):Promise.resolve(l).then(n,o)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,l,"next",e)}function l(e){r(a,o,i,u,l,"throw",e)}u(void 0)}))}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(l){u=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}System.register(["./index-legacy.8e6dd372.js"],(function(e,r){"use strict";var a,u,l,c,s,f,d,h,p,v,m,g,y,w,_,b,k,x,L,S,E,j,$,O,I;return{setters:[function(e){a=e.d,u=e.b,l=e.U,c=e.B,s=e.A,f=e.r,d=e.ba,h=e.bq,p=e._,v=e.H,m=e.an,g=e.x,y=e.X,w=e.aw,_=e.av,b=e.ar,k=e.aG,x=e.bs,L=e.S,S=e.cJ,E=e.dB,j=e.cL,$=e.Q,O=e.a2,I=e.n}],execute:function(){var r=[".lark-doc",".lark-docx",".lark-sheet",".lark-bitable"],T=function(e){var t,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){l=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(l)throw a}}}}(r);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(e.endsWith(o))return e.slice(0,-o.length)}}catch(a){n.e(a)}finally{n.f()}return e},A=function(){return"undefined"!=typeof window&&window.sessionStorage};e("default",(function(){var e,r=a().pathname,i=u(),C=l().copy,N=o(c(),2),G=N[0],P=N[1],U=o(c(""),2),z=U[0],B=U[1],F=o(c("pdf"),2),R=F[0],q=F[1],D=o(c(""),2),J=D[0],W=D[1],Y=o(c(""),2),H=Y[0],M=Y[1],Q=o(c("idle"),2),X=Q[0],K=Q[1],V=o(c(""),2),Z=V[0],ee=V[1],te=o(c(""),2),re=te[0],ne=te[1],oe=o(c(""),2),ie=oe[0],ae=oe[1],ue=0,le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.obj.name;return"alist:lark-export:".concat(e,":").concat(t)},ce=s((function(){var e;return null===(e=G())||void 0===e?void 0:e.formats.find((function(e){return e.value===R()}))})),se=s((function(){var e,t;return null!==(e=null===(t=ce())||void 0===t?void 0:t.requires_sub_id)&&void 0!==e&&e})),fe=s((function(){var e,t;return null!==(e=null===(t=G())||void 0===t?void 0:t.sub_resources)&&void 0!==e?e:[]})),de=s((function(){var e;return Boolean(null===(e=G())||void 0===e?void 0:e.formats.length)&&(!se()||Boolean(J()))})),he=function(){void 0!==e&&(window.clearTimeout(e),e=void 0)};f(he);var pe=function(e){var t=A();t&&e.ticket&&t.setItem(le(),JSON.stringify(e))},ve=function(){var e,t,r,n,o,i,a,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(H()||u.ticket)&&pe({ticket:null!==(e=u.ticket)&&void 0!==e?e:H(),format:null!==(t=u.format)&&void 0!==t?t:R(),sub_id:null!==(r=u.sub_id)&&void 0!==r?r:J(),status:null!==(n=u.status)&&void 0!==n?n:X(),file_token:null!==(o=u.file_token)&&void 0!==o?o:Z(),error_message:null!==(i=u.error_message)&&void 0!==i?i:re(),error_detail:null!==(a=u.error_detail)&&void 0!==a?a:ie(),updated_at:Date.now()})},me=function(t,r,n){var o,i,a,u,l=A();if(l){var c=l.getItem(le(t,r));if(c){var s;try{s=JSON.parse(c)}catch(f){return void l.removeItem(le(t,r))}s.ticket&&n.formats.some((function(e){return e.value===s.format}))?(M(s.ticket),q(s.format),W(null!==(o=s.sub_id)&&void 0!==o?o:""),K(s.status),ee(null!==(i=s.file_token)&&void 0!==i?i:""),ne(null!==(a=s.error_message)&&void 0!==a?a:""),ae(null!==(u=s.error_detail)&&void 0!==u?u:""),"pending"!==s.status&&"processing"!==s.status||(K("processing"),e=window.setTimeout(je,500))):l.removeItem(le(t,r))}}},ge=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_options",data:{}})}),!0),2),ye=ge[0],we=ge[1],_e=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_create",data:{format:R(),sub_id:J()}})})),2),be=_e[0],ke=_e[1],xe=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_status",data:{ticket:H()}})})),2),Le=xe[0],Se=xe[1],Ee=function(){var e=n(t().mark((function e(r,n){var o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return he(),ue=0,P(void 0),B(""),M(""),ee(""),ne(""),ae(""),K("idle"),e.next=11,we();case 11:o=e.sent,O(o,(function(e){var t,o,i,a;P(e);var u=null===(t=e.formats[0])||void 0===t?void 0:t.value;u&&q(u),W(null!==(o=null===(i=e.sub_resources)||void 0===i||null===(a=i[0])||void 0===a?void 0:a.id)&&void 0!==o?o:""),e.sub_resource_error&&B(e.sub_resource_error),me(r,n,e)}),(function(e){B(e)}),!0,!1);case 13:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();v((function(){Ee(r(),m.obj.name)})),v((function(){var e,t,r=null===(e=G())||void 0===e?void 0:e.formats;null!=r&&r.length&&!r.some((function(e){return e.value===R()}))&&q(r[0].value),se()?!J()&&null!==(t=fe()[0])&&void 0!==t&&t.id&&W(fe()[0].id):W("")}));var je=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(H()){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,Se();case 4:n=t.sent,O(n,(function(t){if(K(t.status),t.error_message&&ne(t.error_message),t.error_detail&&ae(t.error_detail),"success"===t.status&&t.file_token)return ee(t.file_token),ve({status:"success",file_token:t.file_token,error_message:"",error_detail:""}),void he();var r,n;if("failed"===t.status)return ve({status:"failed",error_message:null!==(r=t.error_message)&&void 0!==r?r:re(),error_detail:null!==(n=t.error_detail)&&void 0!==n?n:ie()}),void he();if((ue+=1)>=30){var o=i("home.preview.lark_tools.export_timeout");return K("failed"),ne(o),ae(""),ve({status:"failed",error_message:o,error_detail:""}),void he()}ve({status:"processing"}),e=window.setTimeout(je,2e3)}),(function(e){K("failed"),ne(e),ae(e),ve({status:"failed",error_message:e,error_detail:e}),he()}),!0,!1);case 6:case"end":return t.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),$e=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!se()||J()){t.next=3;break}return I.warning(i("home.preview.lark_tools.sub_resource_required")),t.abrupt("return");case 3:return he(),ue=0,M(""),ee(""),ne(""),ae(""),K("pending"),t.next=12,ke();case 12:n=t.sent,O(n,(function(t){var r;M(t.ticket),K("processing"),pe({ticket:t.ticket,format:t.format,sub_id:null!==(r=t.sub_id)&&void 0!==r?r:J(),status:"processing",updated_at:Date.now()}),e=window.setTimeout(je,1e3)}),(function(e){K("failed"),ne(e),ae(e),ve({status:"failed",error_message:e,error_detail:e})}));case 14:case"end":return t.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),Oe=function(){return"".concat(T(m.obj.name),".").concat(R())},Ie=function(){var e=n(t().mark((function e(){var n,o,a,u,l;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Z()){e.next=2;break}return e.abrupt("return");case 2:return n=new URLSearchParams({path:r(),password:p(),file_token:Z(),filename:Oe()}),e.next=5,h.get("/fs/lark/export/download?".concat(n.toString()),{responseType:"blob"});case 5:if((o=e.sent)instanceof Blob){e.next=9;break}return I.error(null!==(a=null==o?void 0:o.message)&&void 0!==a?a:i("home.preview.lark_tools.download_failed")),e.abrupt("return");case 9:u=URL.createObjectURL(o),(l=document.createElement("a")).href=u,l.download=Oe(),document.body.appendChild(l),l.click(),l.remove(),URL.revokeObjectURL(u),I.success(i("home.preview.lark_tools.download_started"));case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return g(_,{w:"$full",border:"1px solid $neutral6",rounded:"$lg",p:"$4",get children(){return g(y,{alignItems:"stretch",spacing:"$4",get children(){return[g(w,{justifyContent:"space-between",alignItems:"center",get children(){return[g(_,{get children(){return[g(b,{fontWeight:"$semibold",get children(){return i("home.preview.lark_tools.title")}}),g(b,{color:"$neutral11",size:"sm",get children(){return k((function(){return!!ye()}),!0)()?i("home.preview.lark_tools.loading_options"):k((function(){return!!G()}),!0)()?i("home.preview.lark_tools.type.".concat(G().type)):i("home.preview.lark_tools.unsupported_current")}})]}}),g(x,{get value(){return R()},onChange:function(e){return q(e)},get options(){var e,t;return null!==(e=null===(t=G())||void 0===t?void 0:t.formats.map((function(e){return{value:e.value,label:e.label}})))&&void 0!==e?e:[{value:R(),label:R().toUpperCase()}]},size:"sm",w:"120px"})]}}),g(L,{get when(){return z()},get children(){return g(S,{get status(){return G()?"warning":"danger"},get children(){return[g(E,{get children(){return k((function(){return!!G()}),!0)()?i("home.preview.lark_tools.sub_resource_error"):i("home.preview.lark_tools.option_failed")}}),g(j,{get children(){return z()}})]}})}}),g(L,{get when(){var e;return null===(e=G())||void 0===e?void 0:e.formats.length},get fallback(){return g(S,{status:"warning",get children(){return[g(E,{get children(){return i("home.preview.lark_tools.unsupported_title")}}),g(j,{get children(){return i("home.preview.lark_tools.unsupported_description")}})]}})},get children(){return[g(L,{get when(){return se()},get children(){return g(y,{alignItems:"stretch",spacing:"$2",get children(){return[g(b,{color:"$neutral11",size:"sm",get children(){return i("home.preview.lark_tools.sub_resource")}}),g(x,{get value(){return J()},onChange:function(e){return W(e)},get options(){return k((function(){return!!fe().length}),!0)()?fe().map((function(e){return{value:e.id,label:e.name}})):[{value:"",label:i("home.preview.lark_tools.no_sub_resources")}]},size:"sm",w:"$full"})]}})}}),g(b,{color:"$neutral11",size:"sm",get children(){return i("home.preview.lark_tools.download_name",{name:Oe()})}}),g(w,{spacing:"$3",get children(){return[g($,{colorScheme:"accent",get loading(){return be()},get isDisabled(){return ye()||Le()||"processing"===X()||!de()},onClick:$e,get children(){return i("home.preview.lark_tools.create_export_task")}}),g(L,{get when(){return k((function(){return"success"===X()}),!0)()&&Z()},get children(){return g($,{onClick:Ie,get children(){return i("home.preview.lark_tools.download_export",{name:Oe()})}})}})]}}),g(L,{get when(){return"idle"!==X()},get children(){return g(S,{get status(){return k((function(){return"failed"===X()}),!0)()?"danger":"success"===X()?"success":"info"},get children(){return[g(E,{get children(){return k((function(){return"success"===X()}),!0)()?i("home.preview.lark_tools.status.success_title"):k((function(){return"failed"===X()}),!0)()?i("home.preview.lark_tools.status.failed_title"):i("home.preview.lark_tools.status.processing_title")}}),g(j,{get children(){return k((function(){return"failed"===X()}),!0)()?g(y,{alignItems:"stretch",spacing:"$2",get children(){return[g(b,{whiteSpace:"pre-wrap",get children(){return re()||i("home.preview.lark_tools.export_failed")}}),g(L,{get when(){return ie()},get children(){return[g(w,{justifyContent:"space-between",get children(){return[g(b,{color:"$neutral11",get children(){return i("home.preview.lark_tools.feishu_error_detail")}}),g($,{size:"sm",onClick:function(){return C(ie()||re())},get children(){return i("home.preview.lark_tools.copy_error_detail")}})]}}),g(_,{as:"pre",m:"$0",p:"$2",rounded:"$md",bg:"$neutral3",whiteSpace:"pre-wrap",wordBreak:"break-word",get children(){return ie()}})]}})]}}):k((function(){return"success"===X()}),!0)()?i("home.preview.lark_tools.status.success_description"):i("home.preview.lark_tools.status.processing_description")}})]}})}})]}})]}})}})}))}}}))}();
1
+ !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch($){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=f(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch($){return{type:"throw",arg:$}}}r.wrap=s;var d={};function h(){}function p(){}function v(){}var m={};c(m,a,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(E([])));y&&y!==n&&o.call(y,a)&&(m=y);var w=v.prototype=h.prototype=Object.create(m);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(t,r){function n(i,a,u,l){var c=f(t[i],t,a);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==e(d)&&o.call(d,"__await")?r.resolve(d.__await).then((function(e){n("next",e,u,l)}),(function(e){n("throw",e,u,l)})):r.resolve(d).then((function(e){s.value=e,u(s)}),(function(e){return n("throw",e,u,l)}))}l(c.arg)}var i;this._invoke=function(e,t){function o(){return new r((function(r,o){n(e,t,r,o)}))}return i=i?i.then(o,o):o()}}function k(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=v,c(w,"constructor",v),c(v,"constructor",p),p.displayName=c(v,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},r.awrap=function(e){return{__await:e}},_(b.prototype),c(b.prototype,u,(function(){return this})),r.AsyncIterator=b,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new b(s(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),c(w,l,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=E,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},r}function r(e,t,r,n,o,i,a){try{var u=e[i](a),l=u.value}catch(c){return void r(c)}u.done?t(l):Promise.resolve(l).then(n,o)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,l,"next",e)}function l(e){r(a,o,i,u,l,"throw",e)}u(void 0)}))}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(l){u=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}System.register(["./index-legacy.9a995a78.js"],(function(e,r){"use strict";var a,u,l,c,s,f,d,h,p,v,m,g,y,w,_,b,k,x,L,S,E,j,$,O,I;return{setters:[function(e){a=e.d,u=e.b,l=e.V,c=e.C,s=e.B,f=e.x,d=e.ba,h=e.bq,p=e._,v=e.I,m=e.an,g=e.y,y=e.Y,w=e.aw,_=e.av,b=e.ar,k=e.aG,x=e.bs,L=e.S,S=e.cJ,E=e.dB,j=e.cL,$=e.R,O=e.a3,I=e.n}],execute:function(){var r=[".lark-doc",".lark-docx",".lark-sheet",".lark-bitable"],T=function(e){var t,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){l=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(l)throw a}}}}(r);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(e.endsWith(o))return e.slice(0,-o.length)}}catch(a){n.e(a)}finally{n.f()}return e},C=function(){return"undefined"!=typeof window&&window.sessionStorage};e("default",(function(){var e,r=a().pathname,i=u(),A=l().copy,N=o(c(),2),G=N[0],P=N[1],U=o(c(""),2),z=U[0],B=U[1],R=o(c("pdf"),2),F=R[0],q=R[1],D=o(c(""),2),J=D[0],Y=D[1],W=o(c(""),2),M=W[0],V=W[1],H=o(c("idle"),2),K=H[0],Q=H[1],X=o(c(""),2),Z=X[0],ee=X[1],te=o(c(""),2),re=te[0],ne=te[1],oe=o(c(""),2),ie=oe[0],ae=oe[1],ue=0,le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.obj.name;return"alist:lark-export:".concat(e,":").concat(t)},ce=s((function(){var e;return null===(e=G())||void 0===e?void 0:e.formats.find((function(e){return e.value===F()}))})),se=s((function(){var e,t;return null!==(e=null===(t=ce())||void 0===t?void 0:t.requires_sub_id)&&void 0!==e&&e})),fe=s((function(){var e,t;return null!==(e=null===(t=G())||void 0===t?void 0:t.sub_resources)&&void 0!==e?e:[]})),de=s((function(){var e;return Boolean(null===(e=G())||void 0===e?void 0:e.formats.length)&&(!se()||Boolean(J()))})),he=function(){void 0!==e&&(window.clearTimeout(e),e=void 0)};f(he);var pe=function(e){var t=C();t&&e.ticket&&t.setItem(le(),JSON.stringify(e))},ve=function(){var e,t,r,n,o,i,a,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(M()||u.ticket)&&pe({ticket:null!==(e=u.ticket)&&void 0!==e?e:M(),format:null!==(t=u.format)&&void 0!==t?t:F(),sub_id:null!==(r=u.sub_id)&&void 0!==r?r:J(),status:null!==(n=u.status)&&void 0!==n?n:K(),file_token:null!==(o=u.file_token)&&void 0!==o?o:Z(),error_message:null!==(i=u.error_message)&&void 0!==i?i:re(),error_detail:null!==(a=u.error_detail)&&void 0!==a?a:ie(),updated_at:Date.now()})},me=function(t,r,n){var o,i,a,u,l=C();if(l){var c=l.getItem(le(t,r));if(c){var s;try{s=JSON.parse(c)}catch(f){return void l.removeItem(le(t,r))}s.ticket&&n.formats.some((function(e){return e.value===s.format}))?(V(s.ticket),q(s.format),Y(null!==(o=s.sub_id)&&void 0!==o?o:""),Q(s.status),ee(null!==(i=s.file_token)&&void 0!==i?i:""),ne(null!==(a=s.error_message)&&void 0!==a?a:""),ae(null!==(u=s.error_detail)&&void 0!==u?u:""),"pending"!==s.status&&"processing"!==s.status||(Q("processing"),e=window.setTimeout(je,500))):l.removeItem(le(t,r))}}},ge=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_options",data:{}})}),!0),2),ye=ge[0],we=ge[1],_e=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_create",data:{format:F(),sub_id:J()}})})),2),be=_e[0],ke=_e[1],xe=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_status",data:{ticket:M()}})})),2),Le=xe[0],Se=xe[1],Ee=function(){var e=n(t().mark((function e(r,n){var o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return he(),ue=0,P(void 0),B(""),V(""),ee(""),ne(""),ae(""),Q("idle"),e.next=11,we();case 11:o=e.sent,O(o,(function(e){var t,o,i,a;P(e);var u=null===(t=e.formats[0])||void 0===t?void 0:t.value;u&&q(u),Y(null!==(o=null===(i=e.sub_resources)||void 0===i||null===(a=i[0])||void 0===a?void 0:a.id)&&void 0!==o?o:""),e.sub_resource_error&&B(e.sub_resource_error),me(r,n,e)}),(function(e){B(e)}),!0,!1);case 13:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();v((function(){Ee(r(),m.obj.name)})),v((function(){var e,t,r=null===(e=G())||void 0===e?void 0:e.formats;null!=r&&r.length&&!r.some((function(e){return e.value===F()}))&&q(r[0].value),se()?!J()&&null!==(t=fe()[0])&&void 0!==t&&t.id&&Y(fe()[0].id):Y("")}));var je=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(M()){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,Se();case 4:n=t.sent,O(n,(function(t){if(Q(t.status),t.error_message&&ne(t.error_message),t.error_detail&&ae(t.error_detail),"success"===t.status&&t.file_token)return ee(t.file_token),ve({status:"success",file_token:t.file_token,error_message:"",error_detail:""}),void he();var r,n;if("failed"===t.status)return ve({status:"failed",error_message:null!==(r=t.error_message)&&void 0!==r?r:re(),error_detail:null!==(n=t.error_detail)&&void 0!==n?n:ie()}),void he();if((ue+=1)>=30){var o=i("home.preview.lark_tools.export_timeout");return Q("failed"),ne(o),ae(""),ve({status:"failed",error_message:o,error_detail:""}),void he()}ve({status:"processing"}),e=window.setTimeout(je,2e3)}),(function(e){Q("failed"),ne(e),ae(e),ve({status:"failed",error_message:e,error_detail:e}),he()}),!0,!1);case 6:case"end":return t.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),$e=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!se()||J()){t.next=3;break}return I.warning(i("home.preview.lark_tools.sub_resource_required")),t.abrupt("return");case 3:return he(),ue=0,V(""),ee(""),ne(""),ae(""),Q("pending"),t.next=12,ke();case 12:n=t.sent,O(n,(function(t){var r;V(t.ticket),Q("processing"),pe({ticket:t.ticket,format:t.format,sub_id:null!==(r=t.sub_id)&&void 0!==r?r:J(),status:"processing",updated_at:Date.now()}),e=window.setTimeout(je,1e3)}),(function(e){Q("failed"),ne(e),ae(e),ve({status:"failed",error_message:e,error_detail:e})}));case 14:case"end":return t.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),Oe=function(){return"".concat(T(m.obj.name),".").concat(F())},Ie=function(){var e=n(t().mark((function e(){var n,o,a,u,l;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Z()){e.next=2;break}return e.abrupt("return");case 2:return n=new URLSearchParams({path:r(),password:p(),file_token:Z(),filename:Oe()}),e.next=5,h.get("/fs/lark/export/download?".concat(n.toString()),{responseType:"blob"});case 5:if((o=e.sent)instanceof Blob){e.next=9;break}return I.error(null!==(a=null==o?void 0:o.message)&&void 0!==a?a:i("home.preview.lark_tools.download_failed")),e.abrupt("return");case 9:u=URL.createObjectURL(o),(l=document.createElement("a")).href=u,l.download=Oe(),document.body.appendChild(l),l.click(),l.remove(),URL.revokeObjectURL(u),I.success(i("home.preview.lark_tools.download_started"));case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return g(_,{w:"$full",border:"1px solid $neutral6",rounded:"$lg",p:"$4",get children(){return g(y,{alignItems:"stretch",spacing:"$4",get children(){return[g(w,{justifyContent:"space-between",alignItems:"center",get children(){return[g(_,{get children(){return[g(b,{fontWeight:"$semibold",get children(){return i("home.preview.lark_tools.title")}}),g(b,{color:"$neutral11",size:"sm",get children(){return k((function(){return!!ye()}),!0)()?i("home.preview.lark_tools.loading_options"):k((function(){return!!G()}),!0)()?i("home.preview.lark_tools.type.".concat(G().type)):i("home.preview.lark_tools.unsupported_current")}})]}}),g(x,{get value(){return F()},onChange:function(e){return q(e)},get options(){var e,t;return null!==(e=null===(t=G())||void 0===t?void 0:t.formats.map((function(e){return{value:e.value,label:e.label}})))&&void 0!==e?e:[{value:F(),label:F().toUpperCase()}]},size:"sm",w:"120px"})]}}),g(L,{get when(){return z()},get children(){return g(S,{get status(){return G()?"warning":"danger"},get children(){return[g(E,{get children(){return k((function(){return!!G()}),!0)()?i("home.preview.lark_tools.sub_resource_error"):i("home.preview.lark_tools.option_failed")}}),g(j,{get children(){return z()}})]}})}}),g(L,{get when(){var e;return null===(e=G())||void 0===e?void 0:e.formats.length},get fallback(){return g(S,{status:"warning",get children(){return[g(E,{get children(){return i("home.preview.lark_tools.unsupported_title")}}),g(j,{get children(){return i("home.preview.lark_tools.unsupported_description")}})]}})},get children(){return[g(L,{get when(){return se()},get children(){return g(y,{alignItems:"stretch",spacing:"$2",get children(){return[g(b,{color:"$neutral11",size:"sm",get children(){return i("home.preview.lark_tools.sub_resource")}}),g(x,{get value(){return J()},onChange:function(e){return Y(e)},get options(){return k((function(){return!!fe().length}),!0)()?fe().map((function(e){return{value:e.id,label:e.name}})):[{value:"",label:i("home.preview.lark_tools.no_sub_resources")}]},size:"sm",w:"$full"})]}})}}),g(b,{color:"$neutral11",size:"sm",get children(){return i("home.preview.lark_tools.download_name",{name:Oe()})}}),g(w,{spacing:"$3",get children(){return[g($,{colorScheme:"accent",get loading(){return be()},get isDisabled(){return ye()||Le()||"processing"===K()||!de()},onClick:$e,get children(){return i("home.preview.lark_tools.create_export_task")}}),g(L,{get when(){return k((function(){return"success"===K()}),!0)()&&Z()},get children(){return g($,{onClick:Ie,get children(){return i("home.preview.lark_tools.download_export",{name:Oe()})}})}})]}}),g(L,{get when(){return"idle"!==K()},get children(){return g(S,{get status(){return k((function(){return"failed"===K()}),!0)()?"danger":"success"===K()?"success":"info"},get children(){return[g(E,{get children(){return k((function(){return"success"===K()}),!0)()?i("home.preview.lark_tools.status.success_title"):k((function(){return"failed"===K()}),!0)()?i("home.preview.lark_tools.status.failed_title"):i("home.preview.lark_tools.status.processing_title")}}),g(j,{get children(){return k((function(){return"failed"===K()}),!0)()?g(y,{alignItems:"stretch",spacing:"$2",get children(){return[g(b,{whiteSpace:"pre-wrap",get children(){return re()||i("home.preview.lark_tools.export_failed")}}),g(L,{get when(){return ie()},get children(){return[g(w,{justifyContent:"space-between",get children(){return[g(b,{color:"$neutral11",get children(){return i("home.preview.lark_tools.feishu_error_detail")}}),g($,{size:"sm",onClick:function(){return A(ie()||re())},get children(){return i("home.preview.lark_tools.copy_error_detail")}})]}}),g(_,{as:"pre",m:"$0",p:"$2",rounded:"$md",bg:"$neutral3",whiteSpace:"pre-wrap",wordBreak:"break-word",get children(){return ie()}})]}})]}}):k((function(){return"success"===K()}),!0)()?i("home.preview.lark_tools.status.success_description"):i("home.preview.lark_tools.status.processing_description")}})]}})}})]}})]}})}})}))}}}))}();
@@ -1 +1 @@
1
- import{ah as k,cT as I,d as T,A as _,D as j,ap as $,an as u,aY as D,x as r,aG as H,aV as z,av as p,cY as G,bV as N,S as U,cZ as V,ae as Y,am as w,c_ as q,al as S,b as O,aR as W,ci as Z,aD as b,cV as F,c$ as v,d0 as L,d1 as A,aS as J,a5 as K,aT as P,cW as Q,d2 as X,aU as ee}from"./index-097118aa.js";function ge(t){const e=k("white","$neutral3"),{proxyLink:l}=I();T();const s=_(j(()=>u.state,()=>{if(![$.FetchingMore,$.Folder,$.File].includes(u.state))return"";if([$.FetchingMore,$.Folder].includes(u.state)){const a=u.objs.find(m=>t.files.find(B=>B.toLowerCase()===m.name.toLowerCase()));if(a)return l(a,!0)}return u[t.fromMeta]&&typeof u[t.fromMeta]=="string"?u[t.fromMeta]:""})),f=async a=>{let m={content:a};return/^https?:\/\//g.test(a)&&(m=await V(a)),m},[x]=D(s,f);return r(U,{get when(){return H(()=>!!z("readme_autorender"),!0)()&&s()},get children(){return r(p,{w:"$full",rounded:"$xl",p:"$4",get bgColor(){return e()},shadow:"$lg",get children(){return r(G,{get loading(){return x.loading},get children(){return r(N,{get children(){var a;return(a=x())==null?void 0:a.content},readme:!0,get toc(){return t.fromMeta==="readme"}})}})}})}})}const le=t=>{const e=Y("home_container");return r(S,{get fallback(){return r(p,{w:"min(99%, 980px)",get children(){return t.children}})},get children(){return r(w,{when:e==="hope_container",get children(){return r(q,{get children(){return t.children}})}})}})},C={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},h="^\\s*",d="\\s*$",c="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",i="([0-9A-Fa-f])",g="([0-9A-Fa-f]{2})",te=new RegExp(`${h}rgb\\s*\\(${c},${c},${c}\\)${d}`),re=new RegExp(`${h}rgba\\s*\\(${c},${c},${c},${c}\\)${d}`),ne=new RegExp(`${h}#${i}${i}${i}${d}`),ae=new RegExp(`${h}#${g}${g}${g}${d}`),oe=new RegExp(`${h}#${i}${i}${i}${i}${d}`),se=new RegExp(`${h}#${g}${g}${g}${g}${d}`);function n(t){return parseInt(t,16)}function E(t){try{let e;if(e=ae.exec(t))return[n(e[1]),n(e[2]),n(e[3]),1];if(e=te.exec(t))return[o(e[1]),o(e[5]),o(e[9]),1];if(e=re.exec(t))return[o(e[1]),o(e[5]),o(e[9]),y(e[13])];if(e=ne.exec(t))return[n(e[1]+e[1]),n(e[2]+e[2]),n(e[3]+e[3]),1];if(e=se.exec(t))return[n(e[1]),n(e[2]),n(e[3]),y(n(e[4])/255)];if(e=oe.exec(t))return[n(e[1]+e[1]),n(e[2]+e[2]),n(e[3]+e[3]),y(n(e[4]+e[4])/255)];if(t in C)return E(C[t]);throw new Error(`[seemly/rgba]: Invalid color value ${t}.`)}catch(e){throw e}}function ue(t){return t>1?1:t<0?0:t}function M(t,e,l,s){return`rgba(${o(t)}, ${o(e)}, ${o(l)}, ${ue(s)})`}function R(t,e){const[l,s,f,x=1]=Array.isArray(t)?t:E(t);return e.alpha?M(l,s,f,e.alpha):M(l,s,f,x)}function y(t){const e=Math.round(Number(t)*100)/100;return e>1?1:e<0?0:e}function o(t){const e=Math.round(Number(t));return e>255?255:e<0?0:e}const ce={list:v,grid:L,image:A},he=()=>{const t=O();return r(ee,{get children(){return[r(W,{as:Z,get color(){return b()},get bgColor(){return R(b(),{alpha:.15})},get _hover(){return{bgColor:R(b(),{alpha:.2})}},"aria-label":"switch layout",compact:!0,size:"lg",get icon(){return r(S,{get children(){return[r(w,{get when(){return F()==="list"},get children(){return r(v,{})}}),r(w,{get when(){return F()==="grid"},get children(){return r(L,{})}}),r(w,{get when(){return F()==="image"},get children(){return r(A,{})}})]}})}}),r(J,{get children(){return r(K,{get each(){return Object.entries(ce)},children:e=>r(P,{get icon(){return r(Q,{get component(){return e[1]}})},onSelect:()=>{X(e[0])},get children(){return t(`home.layouts.${e[0]}`)}})})}})]}})};export{le as C,he as L,ge as R,R as c};
1
+ import{ai as k,cT as I,d as T,B as _,E as j,ap as f,an as u,aY as H,y as r,aG as z,aV as D,av as p,cY as G,bV as N,S as U,cZ as V,af as Y,am as w,c_ as q,al as S,b as O,aR as W,ci as Z,aD as b,cV as F,c$ as v,d0 as L,d1 as E,aS as J,a6 as K,aT as P,cW as Q,d2 as X,aU as ee}from"./index-0af67a26.js";function ge(t){const e=k("white","$neutral3"),{proxyLink:l}=I();T();const s=_(j(()=>u.state,()=>{if(![f.FetchingMore,f.Folder,f.File].includes(u.state))return"";if([f.FetchingMore,f.Folder].includes(u.state)){const a=u.objs.find(m=>t.files.find(A=>A.toLowerCase()===m.name.toLowerCase()));if(a)return l(a,!0)}return u[t.fromMeta]&&typeof u[t.fromMeta]=="string"?u[t.fromMeta]:""})),$=async a=>{let m={content:a};return/^https?:\/\//g.test(a)&&(m=await V(a)),m},[x]=H(s,$);return r(U,{get when(){return z(()=>!!D("readme_autorender"),!0)()&&s()},get children(){return r(p,{w:"$full",rounded:"$xl",p:"$4",get bgColor(){return e()},shadow:"$lg",get children(){return r(G,{get loading(){return x.loading},get children(){return r(N,{get children(){var a;return(a=x())==null?void 0:a.content},readme:!0,get toc(){return t.fromMeta==="readme"}})}})}})}})}const le=t=>{const e=Y("home_container");return r(S,{get fallback(){return r(p,{w:"min(99%, 980px)",get children(){return t.children}})},get children(){return r(w,{when:e==="hope_container",get children(){return r(q,{get children(){return t.children}})}})}})},C={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},d="^\\s*",h="\\s*$",i="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",c="([0-9A-Fa-f])",g="([0-9A-Fa-f]{2})",te=new RegExp(`${d}rgb\\s*\\(${i},${i},${i}\\)${h}`),re=new RegExp(`${d}rgba\\s*\\(${i},${i},${i},${i}\\)${h}`),ne=new RegExp(`${d}#${c}${c}${c}${h}`),ae=new RegExp(`${d}#${g}${g}${g}${h}`),oe=new RegExp(`${d}#${c}${c}${c}${c}${h}`),se=new RegExp(`${d}#${g}${g}${g}${g}${h}`);function n(t){return parseInt(t,16)}function B(t){try{let e;if(e=ae.exec(t))return[n(e[1]),n(e[2]),n(e[3]),1];if(e=te.exec(t))return[o(e[1]),o(e[5]),o(e[9]),1];if(e=re.exec(t))return[o(e[1]),o(e[5]),o(e[9]),y(e[13])];if(e=ne.exec(t))return[n(e[1]+e[1]),n(e[2]+e[2]),n(e[3]+e[3]),1];if(e=se.exec(t))return[n(e[1]),n(e[2]),n(e[3]),y(n(e[4])/255)];if(e=oe.exec(t))return[n(e[1]+e[1]),n(e[2]+e[2]),n(e[3]+e[3]),y(n(e[4]+e[4])/255)];if(t in C)return B(C[t]);throw new Error(`[seemly/rgba]: Invalid color value ${t}.`)}catch(e){throw e}}function ue(t){return t>1?1:t<0?0:t}function M(t,e,l,s){return`rgba(${o(t)}, ${o(e)}, ${o(l)}, ${ue(s)})`}function R(t,e){const[l,s,$,x=1]=Array.isArray(t)?t:B(t);return e.alpha?M(l,s,$,e.alpha):M(l,s,$,x)}function y(t){const e=Math.round(Number(t)*100)/100;return e>1?1:e<0?0:e}function o(t){const e=Math.round(Number(t));return e>255?255:e<0?0:e}const ie={list:v,grid:L,image:E},de=()=>{const t=O();return r(ee,{get children(){return[r(W,{as:Z,get color(){return b()},get bgColor(){return R(b(),{alpha:.15})},get _hover(){return{bgColor:R(b(),{alpha:.2})}},"aria-label":"switch layout",compact:!0,size:"lg",get icon(){return r(S,{get children(){return[r(w,{get when(){return F()==="list"},get children(){return r(v,{})}}),r(w,{get when(){return F()==="grid"},get children(){return r(L,{})}}),r(w,{get when(){return F()==="image"},get children(){return r(E,{})}})]}})}}),r(J,{get children(){return r(K,{get each(){return Object.entries(ie)},children:e=>r(P,{get icon(){return r(Q,{get component(){return e[1]}})},onSelect:()=>{X(e[0])},get children(){return t(`home.layouts.${e[0]}`)}})})}})]}})};export{le as C,de as L,ge as R,R as c};
@@ -1 +1 @@
1
- !function(){function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var n,o,i=[],a=!0,c=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==e.return||e.return()}finally{if(c)throw o}}return i}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return r};var r={},e=Object.prototype,o=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(O){l=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===s)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=h(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(O){return{type:"throw",arg:O}}}r.wrap=f;var s={};function d(){}function p(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(_([])));m&&m!==e&&o.call(m,a)&&(g=m);var w=y.prototype=d.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function n(i,a,c,u){var l=h(r[i],r,a);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==t(s)&&o.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(s).then((function(t){f.value=t,c(f)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return s;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=h(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,s;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,s):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,s)}function E(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function F(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function _(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e<t.length;)if(o.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=y,l(w,"constructor",y),l(y,"constructor",p),p.displayName=l(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,c,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),l(w,u,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=_,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),s},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),F(e),s}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;F(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:_(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),s}},r}function o(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void e(l)}c.done?r(u):Promise.resolve(u).then(n,o)}System.register(["./index-legacy.8e6dd372.js"],(function(t,e){"use strict";var i,a,c,u,l,f,h,s,d,p,y,g,v,m,w,b,x,L,E,F,S,_,j,O,k,A,C,N,G,M,I,P,R,T;return{setters:[function(t){i=t.ah,a=t.cT,c=t.d,u=t.A,l=t.D,f=t.ap,h=t.an,s=t.aY,d=t.x,p=t.aG,y=t.aV,g=t.av,v=t.cY,m=t.bV,w=t.S,b=t.cZ,x=t.ae,L=t.am,E=t.c_,F=t.al,S=t.b,_=t.aR,j=t.ci,O=t.aD,k=t.cV,A=t.c$,C=t.d0,N=t.d1,G=t.aS,M=t.a5,I=t.aT,P=t.cW,R=t.d2,T=t.aU}],execute:function(){t({R:function(t){var e=i("white","$neutral3"),x=a().proxyLink;c();var L=u(l((function(){return h.state}),(function(){if(![f.FetchingMore,f.Folder,f.File].includes(h.state))return"";if([f.FetchingMore,f.Folder].includes(h.state)){var r=h.objs.find((function(r){return t.files.find((function(t){return t.toLowerCase()===r.name.toLowerCase()}))}));if(r)return x(r,!0)}return h[t.fromMeta]&&"string"==typeof h[t.fromMeta]?h[t.fromMeta]:""}))),E=function(){var t,r=(t=n().mark((function t(r){var e;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e={content:r},!/^https?:\/\//g.test(r)){t.next=5;break}return t.next=4,b(r);case 4:e=t.sent;case 5:return t.abrupt("return",e);case 6:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,i){var a=t.apply(r,e);function c(t){o(a,n,i,c,u,"next",t)}function u(t){o(a,n,i,c,u,"throw",t)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}(),F=r(s(L,E),1)[0];return d(w,{get when(){return p((function(){return!!y("readme_autorender")}),!0)()&&L()},get children(){return d(g,{w:"$full",rounded:"$xl",p:"$4",get bgColor(){return e()},shadow:"$lg",get children(){return d(v,{get loading(){return F.loading},get children(){return d(m,{get children(){var t;return null===(t=F())||void 0===t?void 0:t.content},readme:!0,get toc(){return"readme"===t.fromMeta}})}})}})}})},c:X});t("C",(function(t){var r=x("home_container");return d(F,{get fallback(){return d(g,{w:"min(99%, 980px)",get children(){return t.children}})},get children(){return d(L,{when:"hope_container"===r,get children(){return d(E,{get children(){return t.children}})}})}})}));var e={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},$="^\\s*",Y="\\s*$",V="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",D="([0-9A-Fa-f])",U="([0-9A-Fa-f]{2})",q=new RegExp("".concat($,"rgb\\s*\\(").concat(V,",").concat(V,",").concat(V,"\\)").concat(Y)),z=new RegExp("".concat($,"rgba\\s*\\(").concat(V,",").concat(V,",").concat(V,",").concat(V,"\\)").concat(Y)),W=new RegExp("".concat($,"#").concat(D).concat(D).concat(D).concat(Y)),Z=new RegExp("".concat($,"#").concat(U).concat(U).concat(U).concat(Y)),B=new RegExp("".concat($,"#").concat(D).concat(D).concat(D).concat(D).concat(Y)),H=new RegExp("".concat($,"#").concat(U).concat(U).concat(U).concat(U).concat(Y));function J(t){return parseInt(t,16)}function K(t){try{var r;if(r=Z.exec(t))return[J(r[1]),J(r[2]),J(r[3]),1];if(r=q.exec(t))return[rt(r[1]),rt(r[5]),rt(r[9]),1];if(r=z.exec(t))return[rt(r[1]),rt(r[5]),rt(r[9]),tt(r[13])];if(r=W.exec(t))return[J(r[1]+r[1]),J(r[2]+r[2]),J(r[3]+r[3]),1];if(r=H.exec(t))return[J(r[1]),J(r[2]),J(r[3]),tt(J(r[4])/255)];if(r=B.exec(t))return[J(r[1]+r[1]),J(r[2]+r[2]),J(r[3]+r[3]),tt(J(r[4]+r[4])/255)];if(t in e)return K(e[t]);throw new Error("[seemly/rgba]: Invalid color value ".concat(t,"."))}catch(n){throw n}}function Q(t,r,e,n){return"rgba(".concat(rt(t),", ").concat(rt(r),", ").concat(rt(e),", ").concat((o=n)>1?1:o<0?0:o,")");var o}function X(t,e){var n=r(Array.isArray(t)?t:K(t),4),o=n[0],i=n[1],a=n[2],c=n[3],u=void 0===c?1:c;return e.alpha?Q(o,i,a,e.alpha):Q(o,i,a,u)}function tt(t){var r=Math.round(100*Number(t))/100;return r>1?1:r<0?0:r}function rt(t){var r=Math.round(Number(t));return r>255?255:r<0?0:r}var et={list:A,grid:C,image:N};t("L",(function(){var t=S();return d(T,{get children(){return[d(_,{as:j,get color(){return O()},get bgColor(){return X(O(),{alpha:.15})},get _hover(){return{bgColor:X(O(),{alpha:.2})}},"aria-label":"switch layout",compact:!0,size:"lg",get icon(){return d(F,{get children(){return[d(L,{get when(){return"list"===k()},get children(){return d(A,{})}}),d(L,{get when(){return"grid"===k()},get children(){return d(C,{})}}),d(L,{get when(){return"image"===k()},get children(){return d(N,{})}})]}})}}),d(G,{get children(){return d(M,{get each(){return Object.entries(et)},children:function(r){return d(I,{get icon(){return d(P,{get component(){return r[1]}})},onSelect:function(){R(r[0])},get children(){return t("home.layouts.".concat(r[0]))}})}})}})]}})}))}}}))}();
1
+ !function(){function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var n,o,i=[],a=!0,c=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==e.return||e.return()}finally{if(c)throw o}}return i}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,r)}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return r};var r={},e=Object.prototype,o=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(O){l=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===s)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=h(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(O){return{type:"throw",arg:O}}}r.wrap=f;var s={};function d(){}function p(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(_([])));m&&m!==e&&o.call(m,a)&&(g=m);var w=y.prototype=d.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function n(i,a,c,u){var l=h(r[i],r,a);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==t(s)&&o.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(s).then((function(t){f.value=t,c(f)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return s;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=h(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,s;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,s):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,s)}function E(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function F(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function _(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e<t.length;)if(o.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=y,l(w,"constructor",y),l(y,"constructor",p),p.displayName=l(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,c,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),l(w,u,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=_,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),s},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),F(e),s}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;F(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:_(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),s}},r}function o(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void e(l)}c.done?r(u):Promise.resolve(u).then(n,o)}System.register(["./index-legacy.9a995a78.js"],(function(t,e){"use strict";var i,a,c,u,l,f,h,s,d,p,y,g,v,m,w,b,x,L,E,F,S,_,j,O,k,A,C,N,G,M,I,P,R,T;return{setters:[function(t){i=t.ai,a=t.cT,c=t.d,u=t.B,l=t.E,f=t.ap,h=t.an,s=t.aY,d=t.y,p=t.aG,y=t.aV,g=t.av,v=t.cY,m=t.bV,w=t.S,b=t.cZ,x=t.af,L=t.am,E=t.c_,F=t.al,S=t.b,_=t.aR,j=t.ci,O=t.aD,k=t.cV,A=t.c$,C=t.d0,N=t.d1,G=t.aS,M=t.a6,I=t.aT,P=t.cW,R=t.d2,T=t.aU}],execute:function(){t({R:function(t){var e=i("white","$neutral3"),x=a().proxyLink;c();var L=u(l((function(){return h.state}),(function(){if(![f.FetchingMore,f.Folder,f.File].includes(h.state))return"";if([f.FetchingMore,f.Folder].includes(h.state)){var r=h.objs.find((function(r){return t.files.find((function(t){return t.toLowerCase()===r.name.toLowerCase()}))}));if(r)return x(r,!0)}return h[t.fromMeta]&&"string"==typeof h[t.fromMeta]?h[t.fromMeta]:""}))),E=function(){var t,r=(t=n().mark((function t(r){var e;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e={content:r},!/^https?:\/\//g.test(r)){t.next=5;break}return t.next=4,b(r);case 4:e=t.sent;case 5:return t.abrupt("return",e);case 6:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,i){var a=t.apply(r,e);function c(t){o(a,n,i,c,u,"next",t)}function u(t){o(a,n,i,c,u,"throw",t)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}(),F=r(s(L,E),1)[0];return d(w,{get when(){return p((function(){return!!y("readme_autorender")}),!0)()&&L()},get children(){return d(g,{w:"$full",rounded:"$xl",p:"$4",get bgColor(){return e()},shadow:"$lg",get children(){return d(v,{get loading(){return F.loading},get children(){return d(m,{get children(){var t;return null===(t=F())||void 0===t?void 0:t.content},readme:!0,get toc(){return"readme"===t.fromMeta}})}})}})}})},c:X});t("C",(function(t){var r=x("home_container");return d(F,{get fallback(){return d(g,{w:"min(99%, 980px)",get children(){return t.children}})},get children(){return d(L,{when:"hope_container"===r,get children(){return d(E,{get children(){return t.children}})}})}})}));var e={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},$="^\\s*",Y="\\s*$",V="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",U="([0-9A-Fa-f])",q="([0-9A-Fa-f]{2})",z=new RegExp("".concat($,"rgb\\s*\\(").concat(V,",").concat(V,",").concat(V,"\\)").concat(Y)),B=new RegExp("".concat($,"rgba\\s*\\(").concat(V,",").concat(V,",").concat(V,",").concat(V,"\\)").concat(Y)),D=new RegExp("".concat($,"#").concat(U).concat(U).concat(U).concat(Y)),W=new RegExp("".concat($,"#").concat(q).concat(q).concat(q).concat(Y)),Z=new RegExp("".concat($,"#").concat(U).concat(U).concat(U).concat(U).concat(Y)),H=new RegExp("".concat($,"#").concat(q).concat(q).concat(q).concat(q).concat(Y));function J(t){return parseInt(t,16)}function K(t){try{var r;if(r=W.exec(t))return[J(r[1]),J(r[2]),J(r[3]),1];if(r=z.exec(t))return[rt(r[1]),rt(r[5]),rt(r[9]),1];if(r=B.exec(t))return[rt(r[1]),rt(r[5]),rt(r[9]),tt(r[13])];if(r=D.exec(t))return[J(r[1]+r[1]),J(r[2]+r[2]),J(r[3]+r[3]),1];if(r=H.exec(t))return[J(r[1]),J(r[2]),J(r[3]),tt(J(r[4])/255)];if(r=Z.exec(t))return[J(r[1]+r[1]),J(r[2]+r[2]),J(r[3]+r[3]),tt(J(r[4]+r[4])/255)];if(t in e)return K(e[t]);throw new Error("[seemly/rgba]: Invalid color value ".concat(t,"."))}catch(n){throw n}}function Q(t,r,e,n){return"rgba(".concat(rt(t),", ").concat(rt(r),", ").concat(rt(e),", ").concat((o=n)>1?1:o<0?0:o,")");var o}function X(t,e){var n=r(Array.isArray(t)?t:K(t),4),o=n[0],i=n[1],a=n[2],c=n[3],u=void 0===c?1:c;return e.alpha?Q(o,i,a,e.alpha):Q(o,i,a,u)}function tt(t){var r=Math.round(100*Number(t))/100;return r>1?1:r<0?0:r}function rt(t){var r=Math.round(Number(t));return r>255?255:r<0?0:r}var et={list:A,grid:C,image:N};t("L",(function(){var t=S();return d(T,{get children(){return[d(_,{as:j,get color(){return O()},get bgColor(){return X(O(),{alpha:.15})},get _hover(){return{bgColor:X(O(),{alpha:.2})}},"aria-label":"switch layout",compact:!0,size:"lg",get icon(){return d(F,{get children(){return[d(L,{get when(){return"list"===k()},get children(){return d(A,{})}}),d(L,{get when(){return"grid"===k()},get children(){return d(C,{})}}),d(L,{get when(){return"image"===k()},get children(){return d(N,{})}})]}})}}),d(G,{get children(){return d(M,{get each(){return Object.entries(et)},children:function(r){return d(I,{get icon(){return d(P,{get component(){return r[1]}})},onSelect:function(){R(r[0])},get children(){return t("home.layouts.".concat(r[0]))}})}})}})]}})}))}}}))}();