alistgo-alist-web 3.64.0 → 3.65.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 (247) hide show
  1. package/dist/assets/{2fa-4e84c410.js → 2fa-ed5fd3f5.js} +1 -1
  2. package/dist/assets/{2fa-legacy.f6d2ef4d.js → 2fa-legacy.ac2273d3.js} +1 -1
  3. package/dist/assets/{About-190507e6.js → About-07b39c36.js} +1 -1
  4. package/dist/assets/{About-legacy.b327ecf8.js → About-legacy.f45be2db.js} +1 -1
  5. package/dist/assets/{AddLabelDialog-9914fe78.js → AddLabelDialog-1d6357b9.js} +1 -1
  6. package/dist/assets/{AddLabelDialog-legacy.036a9ab6.js → AddLabelDialog-legacy.dd6c914a.js} +1 -1
  7. package/dist/assets/AddOrEdit-07c7f3da.js +1 -0
  8. package/dist/assets/AddOrEdit-8e0d8742.js +4 -0
  9. package/dist/assets/{AddOrEdit-67238002.js → AddOrEdit-a3103973.js} +1 -1
  10. package/dist/assets/{AddOrEdit-47e0ac05.js → AddOrEdit-dc4e0032.js} +1 -1
  11. package/dist/assets/{AddOrEdit-legacy.e74c5c7c.js → AddOrEdit-legacy.284f0a57.js} +1 -1
  12. package/dist/assets/AddOrEdit-legacy.4bcd7dc8.js +1 -0
  13. package/dist/assets/AddOrEdit-legacy.9c182801.js +1 -0
  14. package/dist/assets/{AddOrEdit-legacy.3db7bb35.js → AddOrEdit-legacy.afba0798.js} +1 -1
  15. package/dist/assets/{Common-0e68477f.js → Common-8516cca9.js} +1 -1
  16. package/dist/assets/{Common-legacy.c2861b24.js → Common-legacy.c5ae8b86.js} +1 -1
  17. package/dist/assets/{Copy-279e327d.js → Copy-4a811523.js} +1 -1
  18. package/dist/assets/{Copy-legacy.fde30af5.js → Copy-legacy.8d10f1fe.js} +1 -1
  19. package/dist/assets/Decompress-ca56760c.js +1 -0
  20. package/dist/assets/{Decompress-legacy.babd980c.js → Decompress-legacy.9f3f38d7.js} +1 -1
  21. package/dist/assets/{DeletePopover-8805036c.js → DeletePopover-b8a9a633.js} +1 -1
  22. package/dist/assets/{DeletePopover-legacy.c02233f5.js → DeletePopover-legacy.ca04a0ab.js} +1 -1
  23. package/dist/assets/{EditLabelDialog-caa825c7.js → EditLabelDialog-a98f4188.js} +1 -1
  24. package/dist/assets/{EditLabelDialog-legacy.f130f84a.js → EditLabelDialog-legacy.1621d4fa.js} +1 -1
  25. package/dist/assets/{File-a608e169.js → File-0abcb7cc.js} +1 -1
  26. package/dist/assets/{File-legacy.ba03acb0.js → File-legacy.9c7c661c.js} +1 -1
  27. package/dist/assets/{Folder-26f37994.js → Folder-41ab63d0.js} +2 -2
  28. package/dist/assets/{Folder-legacy.f5072a96.js → Folder-legacy.d3dd609c.js} +2 -2
  29. package/dist/assets/FolderTree-fee990c3.js +1 -0
  30. package/dist/assets/{FolderTree-legacy.4bc9cb59.js → FolderTree-legacy.5beed504.js} +1 -1
  31. package/dist/assets/{Frp-056a26c6.js → Frp-fdb81713.js} +1 -1
  32. package/dist/assets/{Frp-legacy.f5b4d8c3.js → Frp-legacy.3bd5da35.js} +1 -1
  33. package/dist/assets/Grid-96af823b.js +1 -0
  34. package/dist/assets/{Grid-legacy.dc4aab9b.js → Grid-legacy.8196af70.js} +1 -1
  35. package/dist/assets/GridItem-8f0a4e78.js +1 -0
  36. package/dist/assets/GridItem-legacy.53e5db4f.js +1 -0
  37. package/dist/assets/ImageWithError-7a9cb94e.js +1 -0
  38. package/dist/assets/{ImageWithError-legacy.d1f48994.js → ImageWithError-legacy.7897ddfe.js} +1 -1
  39. package/dist/assets/{Images-83a8d60b.js → Images-5b45ded6.js} +1 -1
  40. package/dist/assets/{Images-legacy.4d33680c.js → Images-legacy.7c25071b.js} +1 -1
  41. package/dist/assets/{Layout-897b8819.js → Layout-03b40a95.js} +4 -4
  42. package/dist/assets/{Layout-legacy.76d8e726.js → Layout-legacy.b774c154.js} +1 -1
  43. package/dist/assets/List-2219e301.js +9 -0
  44. package/dist/assets/List-legacy.b78e0937.js +1 -0
  45. package/dist/assets/Messenger-3b98cd80.js +1 -0
  46. package/dist/assets/{Messenger-legacy.bc15d42f.js → Messenger-legacy.ac452c08.js} +1 -1
  47. package/dist/assets/{Metas-e05f9ce1.js → Metas-8334d2a7.js} +1 -1
  48. package/dist/assets/{Metas-legacy.fbb019f8.js → Metas-legacy.bf01cbbc.js} +1 -1
  49. package/dist/assets/{Other-359d1308.js → Other-8a75824a.js} +1 -1
  50. package/dist/assets/{Other-legacy.98d34500.js → Other-legacy.a375dca6.js} +1 -1
  51. package/dist/assets/{PackageDownload-519b9a38.js → PackageDownload-1d343eca.js} +1 -1
  52. package/dist/assets/{PackageDownload-legacy.99bfadfb.js → PackageDownload-legacy.0718c7cf.js} +1 -1
  53. package/dist/assets/{Paginator-c9173645.js → Paginator-33b3808f.js} +1 -1
  54. package/dist/assets/{Paginator-legacy.20830174.js → Paginator-legacy.0bcc0a06.js} +1 -1
  55. package/dist/assets/{Password-ecb0e10f.js → Password-1e03b2a1.js} +1 -1
  56. package/dist/assets/{Password-legacy.6428b474.js → Password-legacy.38bae4cb.js} +1 -1
  57. package/dist/assets/{PermissionForm-c3eb17c8.js → PermissionForm-d8ce57a2.js} +1 -1
  58. package/dist/assets/{PermissionForm-legacy.7c5eb6c6.js → PermissionForm-legacy.9b4348f3.js} +1 -1
  59. package/dist/assets/{Profile-3ee435be.js → Profile-a5f67165.js} +1 -1
  60. package/dist/assets/{Profile-legacy.b4580d6f.js → Profile-legacy.ddceb40f.js} +1 -1
  61. package/dist/assets/{ResponsiveGrid-c7c746e7.js → ResponsiveGrid-9a165c0d.js} +1 -1
  62. package/dist/assets/{ResponsiveGrid-legacy.f9981337.js → ResponsiveGrid-legacy.92d430a0.js} +1 -1
  63. package/dist/assets/{Role-9912dd61.js → Role-237e29ce.js} +1 -1
  64. package/dist/assets/{Role-legacy.6533ab1b.js → Role-legacy.937d458b.js} +1 -1
  65. package/dist/assets/{S3-0aa994e6.js → S3-061d6236.js} +1 -1
  66. package/dist/assets/{S3-legacy.0fefd5e0.js → S3-legacy.8823249a.js} +1 -1
  67. package/dist/assets/{S3Transition-89090584.js → S3Transition-beb9f092.js} +1 -1
  68. package/dist/assets/{S3Transition-legacy.87d826d5.js → S3Transition-legacy.a9014759.js} +1 -1
  69. package/dist/assets/{SettingItem-004aa8f7.js → SettingItem-1101a924.js} +1 -1
  70. package/dist/assets/{SettingItem-legacy.4459beb0.js → SettingItem-legacy.2e0a1b78.js} +1 -1
  71. package/dist/assets/{Storages-41749b58.js → Storages-d34a1526.js} +1 -1
  72. package/dist/assets/{Storages-legacy.06dcad07.js → Storages-legacy.b1cd5702.js} +1 -1
  73. package/dist/assets/{StrmGenerate-a872c94f.js → StrmGenerate-79e9aee1.js} +1 -1
  74. package/dist/assets/StrmGenerate-7bb10c94.js +1 -0
  75. package/dist/assets/{StrmGenerate-legacy.cabca006.js → StrmGenerate-legacy.21cae5f7.js} +1 -1
  76. package/dist/assets/{StrmGenerate-legacy.bd455ae0.js → StrmGenerate-legacy.ab5aecec.js} +1 -1
  77. package/dist/assets/{Tag-090a70de.js → Tag-ec0bc77d.js} +1 -1
  78. package/dist/assets/{Tag-legacy.4d08ea51.js → Tag-legacy.091c6c0b.js} +1 -1
  79. package/dist/assets/{Task-305456a7.js → Task-ee12c6df.js} +1 -1
  80. package/dist/assets/{Task-legacy.bef00b05.js → Task-legacy.993c84aa.js} +1 -1
  81. package/dist/assets/{Tasks-bcb27730.js → Tasks-da5c9e10.js} +1 -1
  82. package/dist/assets/{Tasks-legacy.e4e4be39.js → Tasks-legacy.24f9634a.js} +1 -1
  83. package/dist/assets/Upload-0bd3bbaf.js +1 -0
  84. package/dist/assets/{Upload-f8f5df20.js → Upload-a30ea457.js} +1 -1
  85. package/dist/assets/{Upload-legacy.ea24de65.js → Upload-legacy.8e3f8f5b.js} +1 -1
  86. package/dist/assets/{Upload-legacy.3167d140.js → Upload-legacy.9c750547.js} +1 -1
  87. package/dist/assets/{Users-00f028b6.js → Users-8072ac4d.js} +1 -1
  88. package/dist/assets/{Users-legacy.6adffa4b.js → Users-legacy.f5b75f2a.js} +1 -1
  89. package/dist/assets/{Wether-2ad383a0.js → Wether-2d1fe638.js} +1 -1
  90. package/dist/assets/{Wether-legacy.c0dbd869.js → Wether-legacy.98561794.js} +1 -1
  91. package/dist/assets/{aliyun_office-70f9e774.js → aliyun_office-ebee9588.js} +1 -1
  92. package/dist/assets/{aliyun_office-legacy.01ab1f19.js → aliyun_office-legacy.b06a1a45.js} +1 -1
  93. package/dist/assets/{aliyun_video-8ecd5833.js → aliyun_video-b7361903.js} +1 -1
  94. package/dist/assets/{aliyun_video-legacy.b463b3a2.js → aliyun_video-legacy.6d4ff360.js} +1 -1
  95. package/dist/assets/archive-918eb782.js +1 -0
  96. package/dist/assets/{archive-legacy.665b85a4.js → archive-legacy.66cc28d1.js} +1 -1
  97. package/dist/assets/{asciinema-63cb7e53.js → asciinema-c7a38e55.js} +1 -1
  98. package/dist/assets/{asciinema-legacy.4d730bad.js → asciinema-legacy.f5ef7418.js} +1 -1
  99. package/dist/assets/{audio-99be5f4b.js → audio-767031b9.js} +1 -1
  100. package/dist/assets/{audio-legacy.cb5be320.js → audio-legacy.a1601447.js} +1 -1
  101. package/dist/assets/{backup-restore-87d007a6.js → backup-restore-1e664d39.js} +1 -1
  102. package/dist/assets/{backup-restore-legacy.fca2a0a0.js → backup-restore-legacy.3454be27.js} +1 -1
  103. package/dist/assets/{doubao-edc7ea0c.js → doubao-dbccef6f.js} +1 -1
  104. package/dist/assets/{doubao-legacy.1a73dcb5.js → doubao-legacy.54e97f26.js} +1 -1
  105. package/dist/assets/{download-fe955410.js → download-85777c30.js} +1 -1
  106. package/dist/assets/{download-legacy.40f6adf0.js → download-legacy.0a88d596.js} +1 -1
  107. package/dist/assets/{entry-dbda7502.js → entry-0c2f5c59.js} +4 -4
  108. package/dist/assets/{entry-47b2abb1.js → entry-1cb4692b.js} +4 -4
  109. package/dist/assets/{entry-cd479580.js → entry-293f8889.js} +4 -4
  110. package/dist/assets/{entry-65f35baf.js → entry-2b7d7a8d.js} +3 -3
  111. package/dist/assets/{entry-8a764c5e.js → entry-54719adb.js} +3 -3
  112. package/dist/assets/{entry-76e6ff37.js → entry-6a475220.js} +4 -4
  113. package/dist/assets/{entry-8e81cbee.js → entry-922e5ac4.js} +3 -3
  114. package/dist/assets/{entry-53f2edcc.js → entry-bb2bec47.js} +4 -4
  115. package/dist/assets/{entry-7bf2f5c5.js → entry-c0e113da.js} +3 -3
  116. package/dist/assets/{entry-ad0c322e.js → entry-d9ec77d7.js} +4 -4
  117. package/dist/assets/entry-legacy.3077b509.js +1 -0
  118. package/dist/assets/entry-legacy.30e420ec.js +1 -0
  119. package/dist/assets/entry-legacy.33fb2aeb.js +1 -0
  120. package/dist/assets/entry-legacy.5477e86d.js +1 -0
  121. package/dist/assets/entry-legacy.70163a35.js +1 -0
  122. package/dist/assets/entry-legacy.8ef24743.js +1 -0
  123. package/dist/assets/entry-legacy.da9a301f.js +1 -0
  124. package/dist/assets/entry-legacy.e8c74358.js +1 -0
  125. package/dist/assets/entry-legacy.eb9090b0.js +1 -0
  126. package/dist/assets/entry-legacy.ed0cc5a4.js +1 -0
  127. package/dist/assets/{helper-e7a18c7f.js → helper-89addd3d.js} +1 -1
  128. package/dist/assets/{helper-cfffcdeb.js → helper-ab5aae32.js} +1 -1
  129. package/dist/assets/{helper-legacy.f3369b5d.js → helper-legacy.41207839.js} +1 -1
  130. package/dist/assets/{helper-legacy.ecf72a12.js → helper-legacy.4304690b.js} +1 -1
  131. package/dist/assets/{hls-86ec98bf.js → hls-490669be.js} +1 -1
  132. package/dist/assets/{hls-legacy.7eb02010.js → hls-legacy.0cd3dbde.js} +1 -1
  133. package/dist/assets/{html-f0c8404b.js → html-ae28dd97.js} +1 -1
  134. package/dist/assets/{html-legacy.6b46728d.js → html-legacy.1ee9a3dd.js} +1 -1
  135. package/dist/assets/{image-aee483b3.js → image-ce762fda.js} +1 -1
  136. package/dist/assets/{image-legacy.293578fc.js → image-legacy.ebb99722.js} +1 -1
  137. package/dist/assets/{index-d2ee9913.js → index-0b95f278.js} +2 -2
  138. package/dist/assets/index-0c3482f7.js +1 -0
  139. package/dist/assets/{index-1c7df6bb.js → index-12a11fa4.js} +1 -1
  140. package/dist/assets/{index-3409ca0b.js → index-1f021dd2.js} +1 -1
  141. package/dist/assets/index-25c8c203.js +1 -0
  142. package/dist/assets/index-5b80a56f.js +1 -0
  143. package/dist/assets/{index-e2343554.js → index-6e2f0655.js} +1 -1
  144. package/dist/assets/{index-b0560a31.js → index-6e98aa26.js} +37 -37
  145. package/dist/assets/index-94a67054.js +4 -0
  146. package/dist/assets/{index-bfb42663.js → index-9f85fd4a.js} +1 -1
  147. package/dist/assets/index-aa5a83eb.js +1 -0
  148. package/dist/assets/{index-b8456ee7.js → index-cdc3b5ff.js} +1 -1
  149. package/dist/assets/index-d0610ae0.js +1 -0
  150. package/dist/assets/{index-63d411f6.js → index-d8ea6769.js} +1 -1
  151. package/dist/assets/{index-legacy.cdce98e1.js → index-legacy.0569de56.js} +3 -3
  152. package/dist/assets/index-legacy.35059afc.js +1 -0
  153. package/dist/assets/{index-legacy.77dc574f.js → index-legacy.4902336b.js} +1 -1
  154. package/dist/assets/{index-legacy.eb264a4b.js → index-legacy.50848259.js} +1 -1
  155. package/dist/assets/index-legacy.63ab569f.js +1 -0
  156. package/dist/assets/{index-legacy.510e67dc.js → index-legacy.7d1fb0aa.js} +1 -1
  157. package/dist/assets/{index-legacy.d888bbd6.js → index-legacy.7efaa5f5.js} +1 -1
  158. package/dist/assets/index-legacy.82ee4b37.js +1 -0
  159. package/dist/assets/{index-legacy.93f532c8.js → index-legacy.aadeb0a6.js} +1 -1
  160. package/dist/assets/{index-legacy.04ddeb6e.js → index-legacy.c084734b.js} +1 -1
  161. package/dist/assets/{index-legacy.e65fdd44.js → index-legacy.d8a05658.js} +1 -1
  162. package/dist/assets/{index-legacy.7d5d9c7c.js → index-legacy.e99049a5.js} +1 -1
  163. package/dist/assets/{index-legacy.e544ccf2.js → index-legacy.f38f262a.js} +1 -1
  164. package/dist/assets/{index-legacy.766df57d.js → index-legacy.fdc1b267.js} +1 -1
  165. package/dist/assets/{indexes-d17840a6.js → indexes-9e849b24.js} +2 -2
  166. package/dist/assets/{indexes-legacy.4a5b688a.js → indexes-legacy.09a65722.js} +1 -1
  167. package/dist/assets/info-57ab995f.js +1 -0
  168. package/dist/assets/{info-legacy.a104f6ee.js → info-legacy.6f573e67.js} +1 -1
  169. package/dist/assets/{ipa-adf70a53.js → ipa-1c627d9e.js} +1 -1
  170. package/dist/assets/{ipa-legacy.b0527f0c.js → ipa-legacy.466226b4.js} +1 -1
  171. package/dist/assets/{lark-1a7cae41.js → lark-9c1d307c.js} +1 -1
  172. package/dist/assets/{lark-legacy.05b566b8.js → lark-legacy.7226f6e3.js} +1 -1
  173. package/dist/assets/{lark_tools-fb000845.js → lark_tools-8c437ef0.js} +1 -1
  174. package/dist/assets/{lark_tools-legacy.6fedd7ea.js → lark_tools-legacy.90fd3d64.js} +1 -1
  175. package/dist/assets/{layout-28afe0f0.js → layout-8c3e88b6.js} +1 -1
  176. package/dist/assets/{layout-legacy.e0cfb4c0.js → layout-legacy.4f5f3870.js} +1 -1
  177. package/dist/assets/{management-01a86f43.js → management-4c1a6b51.js} +1 -1
  178. package/dist/assets/{management-legacy.77a4015b.js → management-legacy.84e5760a.js} +1 -1
  179. package/dist/assets/{markdown-5ea99b9a.js → markdown-3ab05481.js} +1 -1
  180. package/dist/assets/{markdown-legacy.ff36c111.js → markdown-legacy.0df6ed9c.js} +1 -1
  181. package/dist/assets/{markdown_with_word_wrap-a0b244a5.js → markdown_with_word_wrap-b392805e.js} +1 -1
  182. package/dist/assets/{markdown_with_word_wrap-legacy.a6da7d19.js → markdown_with_word_wrap-legacy.e68f3d4b.js} +1 -1
  183. package/dist/assets/{mySession-084533dd.js → mySession-7bcb5a9b.js} +1 -1
  184. package/dist/assets/{mySession-legacy.2f5e1d14.js → mySession-legacy.dadbd1a4.js} +1 -1
  185. package/dist/assets/offline_download-bcb94b4e.js +1 -0
  186. package/dist/assets/{offline_download-legacy.fe7fa221.js → offline_download-legacy.aa9a79f5.js} +1 -1
  187. package/dist/assets/open-with-d9208620.js +1 -0
  188. package/dist/assets/open-with-legacy.e3bd9fea.js +1 -0
  189. package/dist/assets/{plist-90c2d892.js → plist-a6756c80.js} +1 -1
  190. package/dist/assets/{plist-legacy.3de6335c.js → plist-legacy.e1cd044b.js} +1 -1
  191. package/dist/assets/{shares-63cf54ab.js → shares-51c029e6.js} +1 -1
  192. package/dist/assets/{shares-legacy.63ed175b.js → shares-legacy.bf13fa75.js} +1 -1
  193. package/dist/assets/{solid-contextmenu-905ecc32.js → solid-contextmenu-c30dd1d1.js} +1 -1
  194. package/dist/assets/{solid-contextmenu-legacy.b73c8617.js → solid-contextmenu-legacy.1761700f.js} +1 -1
  195. package/dist/assets/{text-editor-4451aa37.js → text-editor-fb3ed4e7.js} +2 -2
  196. package/dist/assets/{text-editor-legacy.1d233d02.js → text-editor-legacy.456eba2d.js} +1 -1
  197. package/dist/assets/{url-755a9cce.js → url-16016714.js} +1 -1
  198. package/dist/assets/{url-legacy.a69a518d.js → url-legacy.f4fd9db0.js} +1 -1
  199. package/dist/assets/{useTitle-838069b0.js → useTitle-f9295ffa.js} +1 -1
  200. package/dist/assets/{useTitle-legacy.b3b2613b.js → useTitle-legacy.4c438d1f.js} +1 -1
  201. package/dist/assets/{video-08e3c2a6.js → video-a0ebea7a.js} +1 -1
  202. package/dist/assets/{video-legacy.a9ff6ce2.js → video-legacy.5b7f41a6.js} +1 -1
  203. package/dist/assets/{video360-fc95901a.js → video360-df3b70b3.js} +1 -1
  204. package/dist/assets/{video360-legacy.e051fc87.js → video360-legacy.267eb864.js} +1 -1
  205. package/dist/assets/{video_box-de39a6c5.js → video_box-3ddaba1b.js} +1 -1
  206. package/dist/assets/{video_box-legacy.86e3adf4.js → video_box-legacy.a54c8061.js} +1 -1
  207. package/dist/index.html +2 -2
  208. package/package.json +1 -1
  209. package/dist/assets/AddOrEdit-79a98c71.js +0 -1
  210. package/dist/assets/AddOrEdit-83e5bdd3.js +0 -4
  211. package/dist/assets/AddOrEdit-legacy.4c3acaab.js +0 -1
  212. package/dist/assets/AddOrEdit-legacy.cd047027.js +0 -1
  213. package/dist/assets/Decompress-43856ece.js +0 -1
  214. package/dist/assets/FolderTree-89544a6b.js +0 -1
  215. package/dist/assets/Grid-37629e6d.js +0 -1
  216. package/dist/assets/GridItem-be9067db.js +0 -1
  217. package/dist/assets/GridItem-legacy.76a1e630.js +0 -1
  218. package/dist/assets/ImageWithError-ad444cc4.js +0 -1
  219. package/dist/assets/List-e85a0b2a.js +0 -9
  220. package/dist/assets/List-legacy.401536e5.js +0 -1
  221. package/dist/assets/Messenger-68d3a6f9.js +0 -1
  222. package/dist/assets/StrmGenerate-59595312.js +0 -1
  223. package/dist/assets/Upload-dea525de.js +0 -1
  224. package/dist/assets/archive-734c2ae5.js +0 -1
  225. package/dist/assets/entry-legacy.113b27f4.js +0 -1
  226. package/dist/assets/entry-legacy.12fb7042.js +0 -1
  227. package/dist/assets/entry-legacy.205b85a6.js +0 -1
  228. package/dist/assets/entry-legacy.84c5b84d.js +0 -1
  229. package/dist/assets/entry-legacy.99944f7e.js +0 -1
  230. package/dist/assets/entry-legacy.a1e4c725.js +0 -1
  231. package/dist/assets/entry-legacy.ccf750f1.js +0 -1
  232. package/dist/assets/entry-legacy.d79bc047.js +0 -1
  233. package/dist/assets/entry-legacy.e342d8cc.js +0 -1
  234. package/dist/assets/entry-legacy.e6d5043a.js +0 -1
  235. package/dist/assets/index-1da4255f.js +0 -1
  236. package/dist/assets/index-1eca9bf7.js +0 -1
  237. package/dist/assets/index-286258af.js +0 -1
  238. package/dist/assets/index-425600b4.js +0 -4
  239. package/dist/assets/index-653e8df2.js +0 -1
  240. package/dist/assets/index-9f389c06.js +0 -1
  241. package/dist/assets/index-legacy.5f2e7154.js +0 -1
  242. package/dist/assets/index-legacy.a2e25f9b.js +0 -1
  243. package/dist/assets/index-legacy.e932630e.js +0 -1
  244. package/dist/assets/info-a9253ca6.js +0 -1
  245. package/dist/assets/offline_download-ed30f8c1.js +0 -1
  246. package/dist/assets/open-with-79c445c3.js +0 -1
  247. package/dist/assets/open-with-legacy.a62babc1.js +0 -1
@@ -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(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},n=Object.prototype,o=n.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(j){l=function(t,r,e){return t[r]=e}}function s(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 $()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=k(a,e);if(c){if(c===f)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===f)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(j){return{type:"throw",arg:j}}}e.wrap=s;var f={};function d(){}function g(){}function p(){}var v={};l(v,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(E([])));m&&m!==n&&o.call(m,a)&&(v=m);var w=p.prototype=d.prototype=Object.create(v);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 s=l.arg,f=s.value;return f&&"object"==t(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(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 k(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,k(t,r),"throw"===r.method))return f;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=h(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,f;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,f):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)}function L(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 _(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function E(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:$}}function $(){return{value:void 0,done:!0}}return g.prototype=p,l(w,"constructor",p),l(p,"constructor",g),g.displayName=l(p,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===g||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?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]"})),e.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}},e.values=E,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(_),!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,f):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),f},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),_(e),f}},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;_(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:E(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),f}},e}function e(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)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function c(t){e(a,o,i,c,u,"next",t)}function u(t){e(a,o,i,c,u,"throw",t)}c(void 0)}))}}function o(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 i(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(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 i(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}System.register(["./index-legacy.cdce98e1.js","./useTitle-legacy.b3b2613b.js","./DeletePopover-legacy.c02233f5.js","./StrmGenerate-legacy.cabca006.js"],(function(t,e){"use strict";var i,a,c,u,l,s,h,f,d,g,p,v,y,m,w,b,x,k,L,_,S,E,$,j,O,G,C,N,P,I,T,A,F,B,D,M,H,Y,q,R,X,J,K,Q,U;return{setters:[function(t){i=t.b,a=t.y,c=t.ai,u=t.aD,l=t.aw,s=t.ar,h=t.cI,f=t.aG,d=t.av,g=t.Y,p=t.dR,v=t.dO,y=t.d,m=t.ba,w=t.bq,b=t.R,x=t.bc,k=t.a3,L=t.n,_=t.S,S=t.C,E=t.B,$=t.cv,j=t.bD,O=t.bE,G=t.bF,C=t.bG,N=t.bH,P=t.bI,I=t.bJ,T=t.a6,A=t.bK,F=t.bL,B=t.bM,D=t.bN,M=t.al,H=t.am,Y=t.e1,q=t.dM,R=t.dN,X=t.dP,J=t.dQ},function(t){K=t.b},function(t){Q=t.D},function(t){U=t.a}],execute:function(){function e(t){var e,c,u=i(),l=y().to,s=o(m((function(){return w.post("/admin/storage/delete?id=".concat(t.storage.id))})),2),h=s[0],f=s[1],d=o(m((function(){return w.post("/admin/storage/".concat(t.storage.disabled?"enable":"disable","?id=").concat(t.storage.id))})),2),g=d[0],p=d[1];return[a(b,{onClick:function(){l("/@manage/storages/edit/".concat(t.storage.id))},get children(){return u("global.edit")}}),a(b,{get loading(){return g()},get colorScheme(){return t.storage.disabled?"success":"warning"},onClick:(c=n(r().mark((function e(){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,p();case 2:n=r.sent,x(n,(function(){t.refresh()}));case 4:case"end":return r.stop()}}),e)}))),function(){return c.apply(this,arguments)}),get children(){return u("global.".concat(t.storage.disabled?"enable":"disable"))}}),a(Q,{get name(){return t.storage.mount_path},get loading(){return h()},onClick:(e=n(r().mark((function e(){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,f();case 2:n=r.sent,k(n,(function(){L.success(u("global.delete_success")),t.refresh()}));case 4:case"end":return r.stop()}}),e)}))),function(){return e.apply(this,arguments)})}),a(_,{get when(){return"Strm"===t.storage.driver},get children(){return a(U,{get path(){return t.storage.mount_path}})}})]}function W(t){var r=i();return a(g,{w:"$full",spacing:"$2",rounded:"$lg",border:"1px solid $neutral7",get background(){return c("$neutral2","$neutral3")()},p:"$3",get _hover(){return{border:"1px solid ".concat(u())}},get children(){return[a(l,{spacing:"$2",get children(){return[a(s,{fontWeight:"$medium",css:{wordBreak:"break-all"},get children(){return t.storage.mount_path}}),a(h,{colorScheme:"info",get children(){return r("drivers.drivers.".concat(t.storage.driver))}})]}}),a(l,{get children(){return[a(s,{get children(){return[f((function(){return r("storages.common.status")})),": "]}}),a(d,{css:{wordBreak:"break-all"},overflowX:"auto",get innerHTML(){return t.storage.status}})]}}),a(s,{css:{wordBreak:"break-all"},get children(){return t.storage.remark}}),a(l,{spacing:"$2",get children(){return a(e,t)}})]}})}function z(t){var r=i();return a(v,{get children(){return[a(p,{get children(){return t.storage.mount_path}}),a(p,{get children(){return r("drivers.drivers.".concat(t.storage.driver))}}),a(p,{get children(){return t.storage.order}}),a(p,{get children(){return t.storage.status}}),a(p,{get children(){return t.storage.remark}}),a(p,{get children(){return a(l,{spacing:"$2",get children(){return a(e,t)}})}})]}})}t("default",(function(){var t=i();K("manage.sidemenu.storages");var e=y().to,c=o(m((function(){return w.get("/admin/storage/list")})),2),u=c[0],s=c[1],h=o(S([]),2),f=h[0],p=h[1],x=function(){var t=n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s();case 2:e=t.sent,k(e,(function(t){return p(t.content)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Q=o(S([]),2),U=Q[0],V=Q[1],Z=o(S([]),2),tt=Z[0],rt=Z[1],et=function(){var t=n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.get("/admin/driver/names");case 2:e=t.sent,k(e,(function(t){return V(t)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();et(),x();var nt=function(){var e=n(r().mark((function e(){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,w.post("/admin/storage/load_all");case 2:n=r.sent,k(n,(function(){L.success(t("storages.other.start_load_success"))}));case 4:case"end":return r.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ot=E((function(){return f().filter((function(t){return 0===tt().length||tt().includes(t.driver)}))})),it=o($("storages-layout","grid"),2),at=it[0],ct=it[1];return a(g,{spacing:"$3",alignItems:"start",w:"$full",get children(){return[a(l,{spacing:"$2",gap:"$2",w:"$full",wrap:{"@initial":"wrap","@md":"unset"},get children(){return[a(b,{colorScheme:"accent",get loading(){return u()},onClick:x,get children(){return t("global.refresh")}}),a(b,{onClick:function(){e("/@manage/storages/add")},get children(){return t("global.add")}}),a(b,{colorScheme:"warning",get loading(){return u()},onClick:nt,get children(){return t("storages.other.load_all")}}),a(_,{get when(){return U().length>0},get children(){return a(j,{multiple:!0,get value(){return tt()},onChange:rt,get children(){return[a(O,{get children(){return[a(G,{get children(){return t("storages.other.filter_by_driver")}}),a(C,{}),a(N,{})]}}),a(P,{get children(){return a(I,{get children(){return a(T,{get each(){return U()},children:function(r){return a(A,{value:r,get children(){return[a(F,{get children(){return t("drivers.drivers.".concat(r))}}),a(B,{})]}})}})}})}})]}})}}),a(D,{get checked(){return"table"===at()},onChange:function(t){ct(t.currentTarget.checked?"table":"grid")},get children(){return t("storages.other.table_layout")}})]}}),a(M,{get children(){return[a(H,{get when(){return"grid"===at()},get children(){return a(Y,{w:"$full",gap:"$2_5",templateColumns:{"@initial":"1fr","@lg":"repeat(auto-fill, minmax(324px, 1fr))"},get children(){return a(T,{get each(){return ot()},children:function(t){return a(W,{storage:t,refresh:x})}})}})}}),a(H,{get when(){return"table"===at()},get children(){return a(d,{w:"$full",overflowX:"auto",get children(){return a(q,{highlightOnHover:!0,dense:!0,get children(){return[a(R,{get children(){return a(v,{get children(){return[a(T,{each:["mount_path","driver","order","status","remark"],children:function(r){return a(X,{get children(){return t("storages.common.".concat(r))}})}}),a(X,{get children(){return t("global.operations")}})]}})}}),a(J,{get children(){return a(T,{get each(){return ot()},children:function(t){return a(z,{storage:t,refresh:x})}})}})]}})}})}})]}})]}})}))}}}))}();
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(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},n=Object.prototype,o=n.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(j){l=function(t,r,e){return t[r]=e}}function s(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 $()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=k(a,e);if(c){if(c===f)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===f)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(j){return{type:"throw",arg:j}}}e.wrap=s;var f={};function d(){}function g(){}function p(){}var v={};l(v,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(E([])));m&&m!==n&&o.call(m,a)&&(v=m);var w=p.prototype=d.prototype=Object.create(v);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 s=l.arg,f=s.value;return f&&"object"==t(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(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 k(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,k(t,r),"throw"===r.method))return f;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=h(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,f;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,f):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)}function L(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 _(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function E(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:$}}function $(){return{value:void 0,done:!0}}return g.prototype=p,l(w,"constructor",p),l(p,"constructor",g),g.displayName=l(p,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===g||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?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]"})),e.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}},e.values=E,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(_),!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,f):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),f},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),_(e),f}},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;_(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:E(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),f}},e}function e(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)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function c(t){e(a,o,i,c,u,"next",t)}function u(t){e(a,o,i,c,u,"throw",t)}c(void 0)}))}}function o(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 i(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(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 i(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}System.register(["./index-legacy.0569de56.js","./useTitle-legacy.4c438d1f.js","./DeletePopover-legacy.ca04a0ab.js","./StrmGenerate-legacy.21cae5f7.js"],(function(t,e){"use strict";var i,a,c,u,l,s,h,f,d,g,p,v,y,m,w,b,x,k,L,_,S,E,$,j,O,G,C,N,P,T,A,I,F,B,D,M,H,Y,q,J,R,X,K,Q,U;return{setters:[function(t){i=t.b,a=t.y,c=t.ai,u=t.aD,l=t.aw,s=t.ar,h=t.cJ,f=t.aG,d=t.av,g=t.Y,p=t.dR,v=t.dO,y=t.d,m=t.ba,w=t.bq,b=t.R,x=t.bc,k=t.a3,L=t.n,_=t.S,S=t.C,E=t.B,$=t.cv,j=t.bD,O=t.bE,G=t.bF,C=t.bG,N=t.bH,P=t.bI,T=t.bJ,A=t.a6,I=t.bK,F=t.bL,B=t.bM,D=t.bN,M=t.al,H=t.am,Y=t.e1,q=t.dM,J=t.dN,R=t.dP,X=t.dQ},function(t){K=t.b},function(t){Q=t.D},function(t){U=t.a}],execute:function(){function e(t){var e,c,u=i(),l=y().to,s=o(m((function(){return w.post("/admin/storage/delete?id=".concat(t.storage.id))})),2),h=s[0],f=s[1],d=o(m((function(){return w.post("/admin/storage/".concat(t.storage.disabled?"enable":"disable","?id=").concat(t.storage.id))})),2),g=d[0],p=d[1];return[a(b,{onClick:function(){l("/@manage/storages/edit/".concat(t.storage.id))},get children(){return u("global.edit")}}),a(b,{get loading(){return g()},get colorScheme(){return t.storage.disabled?"success":"warning"},onClick:(c=n(r().mark((function e(){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,p();case 2:n=r.sent,x(n,(function(){t.refresh()}));case 4:case"end":return r.stop()}}),e)}))),function(){return c.apply(this,arguments)}),get children(){return u("global.".concat(t.storage.disabled?"enable":"disable"))}}),a(Q,{get name(){return t.storage.mount_path},get loading(){return h()},onClick:(e=n(r().mark((function e(){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,f();case 2:n=r.sent,k(n,(function(){L.success(u("global.delete_success")),t.refresh()}));case 4:case"end":return r.stop()}}),e)}))),function(){return e.apply(this,arguments)})}),a(_,{get when(){return"Strm"===t.storage.driver},get children(){return a(U,{get path(){return t.storage.mount_path}})}})]}function W(t){var r=i();return a(g,{w:"$full",spacing:"$2",rounded:"$lg",border:"1px solid $neutral7",get background(){return c("$neutral2","$neutral3")()},p:"$3",get _hover(){return{border:"1px solid ".concat(u())}},get children(){return[a(l,{spacing:"$2",get children(){return[a(s,{fontWeight:"$medium",css:{wordBreak:"break-all"},get children(){return t.storage.mount_path}}),a(h,{colorScheme:"info",get children(){return r("drivers.drivers.".concat(t.storage.driver))}})]}}),a(l,{get children(){return[a(s,{get children(){return[f((function(){return r("storages.common.status")})),": "]}}),a(d,{css:{wordBreak:"break-all"},overflowX:"auto",get innerHTML(){return t.storage.status}})]}}),a(s,{css:{wordBreak:"break-all"},get children(){return t.storage.remark}}),a(l,{spacing:"$2",get children(){return a(e,t)}})]}})}function z(t){var r=i();return a(v,{get children(){return[a(p,{get children(){return t.storage.mount_path}}),a(p,{get children(){return r("drivers.drivers.".concat(t.storage.driver))}}),a(p,{get children(){return t.storage.order}}),a(p,{get children(){return t.storage.status}}),a(p,{get children(){return t.storage.remark}}),a(p,{get children(){return a(l,{spacing:"$2",get children(){return a(e,t)}})}})]}})}t("default",(function(){var t=i();K("manage.sidemenu.storages");var e=y().to,c=o(m((function(){return w.get("/admin/storage/list")})),2),u=c[0],s=c[1],h=o(S([]),2),f=h[0],p=h[1],x=function(){var t=n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s();case 2:e=t.sent,k(e,(function(t){return p(t.content)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Q=o(S([]),2),U=Q[0],V=Q[1],Z=o(S([]),2),tt=Z[0],rt=Z[1],et=function(){var t=n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.get("/admin/driver/names");case 2:e=t.sent,k(e,(function(t){return V(t)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();et(),x();var nt=function(){var e=n(r().mark((function e(){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,w.post("/admin/storage/load_all");case 2:n=r.sent,k(n,(function(){L.success(t("storages.other.start_load_success"))}));case 4:case"end":return r.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ot=E((function(){return f().filter((function(t){return 0===tt().length||tt().includes(t.driver)}))})),it=o($("storages-layout","grid"),2),at=it[0],ct=it[1];return a(g,{spacing:"$3",alignItems:"start",w:"$full",get children(){return[a(l,{spacing:"$2",gap:"$2",w:"$full",wrap:{"@initial":"wrap","@md":"unset"},get children(){return[a(b,{colorScheme:"accent",get loading(){return u()},onClick:x,get children(){return t("global.refresh")}}),a(b,{onClick:function(){e("/@manage/storages/add")},get children(){return t("global.add")}}),a(b,{colorScheme:"warning",get loading(){return u()},onClick:nt,get children(){return t("storages.other.load_all")}}),a(_,{get when(){return U().length>0},get children(){return a(j,{multiple:!0,get value(){return tt()},onChange:rt,get children(){return[a(O,{get children(){return[a(G,{get children(){return t("storages.other.filter_by_driver")}}),a(C,{}),a(N,{})]}}),a(P,{get children(){return a(T,{get children(){return a(A,{get each(){return U()},children:function(r){return a(I,{value:r,get children(){return[a(F,{get children(){return t("drivers.drivers.".concat(r))}}),a(B,{})]}})}})}})}})]}})}}),a(D,{get checked(){return"table"===at()},onChange:function(t){ct(t.currentTarget.checked?"table":"grid")},get children(){return t("storages.other.table_layout")}})]}}),a(M,{get children(){return[a(H,{get when(){return"grid"===at()},get children(){return a(Y,{w:"$full",gap:"$2_5",templateColumns:{"@initial":"1fr","@lg":"repeat(auto-fill, minmax(324px, 1fr))"},get children(){return a(A,{get each(){return ot()},children:function(t){return a(W,{storage:t,refresh:x})}})}})}}),a(H,{get when(){return"table"===at()},get children(){return a(d,{w:"$full",overflowX:"auto",get children(){return a(q,{highlightOnHover:!0,dense:!0,get children(){return[a(J,{get children(){return a(v,{get children(){return[a(A,{each:["mount_path","driver","order","status","remark"],children:function(r){return a(R,{get children(){return t("storages.common.".concat(r))}})}}),a(R,{get children(){return t("global.operations")}})]}})}}),a(X,{get children(){return a(A,{get each(){return ot()},children:function(t){return a(z,{storage:t,refresh:x})}})}})]}})}})}})]}})]}})}))}}}))}();
@@ -1 +1 @@
1
- import{b as v,y as e,R as x,C as i,x as R,aG as k,M as T,J as q,K as E,L as F,Y as H,df as J,dg as K,ar as C,S as L,Q,U,bq as y,a3 as $,n as w}from"./index-b0560a31.js";const V=s=>{const t=v(),[g,u]=i(!1),[p,_]=i(0),[b,d]=i("idle"),[I,S]=i("");let c,n=0;const a=()=>{c&&(clearInterval(c),c=void 0)};R(()=>{n++,a()});const h=r=>{a(),d("failed"),S(r)},z=(r,f)=>{a(),c=setInterval(async()=>{const l=await y.post(`/admin/task/strm_generate/info?tid=${f}`);r===n&&$(l,o=>{if(r===n){if(o.error){h(o.error);return}_(Math.floor(o.progress)),o.progress>=100&&(a(),d("done"),w.success(t("global.generate_strm_done")))}},o=>{r===n&&h(o)})},1e3)},B=async()=>{a();const r=++n;u(!0),d("running"),_(0),S("");const f=await y.post("/admin/strm/generate",{path:s.path});r===n&&$(f,l=>{r===n&&(w.info(t("global.generate_strm_start")),z(r,l.task.id))},l=>{r===n&&h(l)})},G=()=>u(!1),O=()=>{n++,a(),u(!1)},m=()=>b()==="running",M=()=>m()?G():O(),P=()=>{switch(b()){case"failed":return t("global.generate_strm_failed")+": "+I();case"done":return t("global.generate_strm_done");case"running":return t("global.generate_strm_progress")+" "+p()+"%";default:return""}};return[k(()=>s.children({start:B})),e(U,{get opened(){return g()},onClose:M,blockScrollOnMount:!1,get children(){return[e(T,{}),e(q,{get children(){return[e(E,{get children(){return t("global.generate_strm")}}),e(F,{get children(){return e(H,{spacing:"$3",alignItems:"stretch",py:"$2",get children(){return[e(J,{get value(){return p()},trackColor:"$neutral4",get children(){return e(K,{color:"$success9"})}}),e(C,{get children(){return P()}}),e(L,{get when(){return m()},get children(){return e(C,{size:"sm",color:"$neutral10",get children(){return t("global.generate_strm_background")}})}})]}})}}),e(Q,{get children(){return e(x,{colorScheme:"neutral",onClick:M,get children(){return k(()=>!!m(),!0)()?t("global.generate_strm_hide"):t("global.close")}})}})]}})]}})]},j=s=>{const t=v();return e(V,{get path(){return s.path},children:({start:g})=>e(x,{get size(){return s.size},get colorScheme(){return s.colorScheme??"accent"},onClick:g,get children(){return t("global.generate_strm")}})})};export{V as S,j as a};
1
+ import{b as v,y as e,R as x,C as i,x as R,aG as k,M as T,J as q,K as E,L as F,Y as H,dg as J,dh as K,ar as C,S as L,Q,U,bq as y,a3 as $,n as w}from"./index-6e98aa26.js";const V=s=>{const t=v(),[g,u]=i(!1),[p,_]=i(0),[b,d]=i("idle"),[I,S]=i("");let c,n=0;const a=()=>{c&&(clearInterval(c),c=void 0)};R(()=>{n++,a()});const h=r=>{a(),d("failed"),S(r)},z=(r,f)=>{a(),c=setInterval(async()=>{const l=await y.post(`/admin/task/strm_generate/info?tid=${f}`);r===n&&$(l,o=>{if(r===n){if(o.error){h(o.error);return}_(Math.floor(o.progress)),o.progress>=100&&(a(),d("done"),w.success(t("global.generate_strm_done")))}},o=>{r===n&&h(o)})},1e3)},B=async()=>{a();const r=++n;u(!0),d("running"),_(0),S("");const f=await y.post("/admin/strm/generate",{path:s.path});r===n&&$(f,l=>{r===n&&(w.info(t("global.generate_strm_start")),z(r,l.task.id))},l=>{r===n&&h(l)})},G=()=>u(!1),O=()=>{n++,a(),u(!1)},m=()=>b()==="running",M=()=>m()?G():O(),P=()=>{switch(b()){case"failed":return t("global.generate_strm_failed")+": "+I();case"done":return t("global.generate_strm_done");case"running":return t("global.generate_strm_progress")+" "+p()+"%";default:return""}};return[k(()=>s.children({start:B})),e(U,{get opened(){return g()},onClose:M,blockScrollOnMount:!1,get children(){return[e(T,{}),e(q,{get children(){return[e(E,{get children(){return t("global.generate_strm")}}),e(F,{get children(){return e(H,{spacing:"$3",alignItems:"stretch",py:"$2",get children(){return[e(J,{get value(){return p()},trackColor:"$neutral4",get children(){return e(K,{color:"$success9"})}}),e(C,{get children(){return P()}}),e(L,{get when(){return m()},get children(){return e(C,{size:"sm",color:"$neutral10",get children(){return t("global.generate_strm_background")}})}})]}})}}),e(Q,{get children(){return e(x,{colorScheme:"neutral",onClick:M,get children(){return k(()=>!!m(),!0)()?t("global.generate_strm_hide"):t("global.close")}})}})]}})]}})]},j=s=>{const t=v();return e(V,{get path(){return s.path},children:({start:g})=>e(x,{get size(){return s.size},get colorScheme(){return s.colorScheme??"accent"},onClick:g,get children(){return t("global.generate_strm")}})})};export{V as S,j as a};
@@ -0,0 +1 @@
1
+ import{b as r,y as a}from"./index-6e98aa26.js";import{b as s}from"./useTitle-f9295ffa.js";import{T as m}from"./Tasks-da5c9e10.js";import"./Paginator-33b3808f.js";import"./index-aa5a83eb.js";import"./Task-ee12c6df.js";const y=()=>{const t=r();return s("manage.sidemenu.strm_generate"),a(m,{type:"strm_generate",canRetry:!0,get nameAnalyzer(){return{regex:/^generate strm \[(.+)]\((.*)\)$/,title:e=>e[1],attrs:{[t("tasks.attr.strm_generate.path")]:e=>e[2]||"/"}}}})};export{y as default};
@@ -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(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},n=Object.prototype,o=n.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 s(t,r,e,n){var o=r&&r.prototype instanceof p?r:p,i=Object.create(o.prototype),a=new E(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=_(a,e);if(c){if(c===h)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=f(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===h)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 f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(O){return{type:"throw",arg:O}}}e.wrap=s;var h={};function p(){}function d(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(k([])));m&&m!==n&&o.call(m,a)&&(g=m);var w=y.prototype=p.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=f(r[i],r,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(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 _(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,_(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;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,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function L(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 S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function k(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 d.prototype=y,l(w,"constructor",y),l(y,"constructor",d),d.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===d||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?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]"})),e.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}},e.values=k,E.prototype={constructor:E,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(S),!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,h):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),h},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),S(e),h}},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;S(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:k(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},e}function e(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)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function c(t){e(a,o,i,c,u,"next",t)}function u(t){e(a,o,i,c,u,"throw",t)}c(void 0)}))}}function o(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 i(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(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 i(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}System.register(["./index-legacy.cdce98e1.js"],(function(t,e){"use strict";var i,a,c,u,l,s,f,h,p,d,y,g,v,m,w,b,x,_,L,S;return{setters:[function(t){i=t.b,a=t.y,c=t.R,u=t.C,l=t.x,s=t.aG,f=t.M,h=t.J,p=t.K,d=t.L,y=t.Y,g=t.df,v=t.dg,m=t.ar,w=t.S,b=t.Q,x=t.U,_=t.bq,L=t.a3,S=t.n}],execute:function(){var e=t("S",(function(t){var e,E=i(),k=o(u(!1),2),j=k[0],O=k[1],G=o(u(0),2),I=G[0],A=G[1],N=o(u("idle"),2),P=N[0],C=N[1],T=o(u(""),2),$=T[0],F=T[1],M=0,z=function(){e&&(clearInterval(e),e=void 0)};l((function(){M++,z()}));var Y=function(t){z(),C("failed"),F(t)},U=function(t,o){z(),e=setInterval(n(r().mark((function e(){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_.post("/admin/task/strm_generate/info?tid=".concat(o));case 2:if(n=r.sent,t===M){r.next=5;break}return r.abrupt("return");case 5:L(n,(function(r){t===M&&(r.error?Y(r.error):(A(Math.floor(r.progress)),r.progress>=100&&(z(),C("done"),S.success(E("global.generate_strm_done")))))}),(function(r){t===M&&Y(r)}));case 6:case"end":return r.stop()}}),e)}))),1e3)},q=function(){var e=n(r().mark((function e(){var n,o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return z(),n=++M,O(!0),C("running"),A(0),F(""),r.next=8,_.post("/admin/strm/generate",{path:t.path});case 8:if(o=r.sent,n===M){r.next=11;break}return r.abrupt("return");case 11:L(o,(function(t){n===M&&(S.info(E("global.generate_strm_start")),U(n,t.task.id))}),(function(t){n===M&&Y(t)}));case 12:case"end":return r.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=function(){return"running"===P()},K=function(){return J()?O(!1):(M++,z(),void O(!1))};return[s((function(){return t.children({start:q})})),a(x,{get opened(){return j()},onClose:K,blockScrollOnMount:!1,get children(){return[a(f,{}),a(h,{get children(){return[a(p,{get children(){return E("global.generate_strm")}}),a(d,{get children(){return a(y,{spacing:"$3",alignItems:"stretch",py:"$2",get children(){return[a(g,{get value(){return I()},trackColor:"$neutral4",get children(){return a(v,{color:"$success9"})}}),a(m,{get children(){return function(){switch(P()){case"failed":return E("global.generate_strm_failed")+": "+$();case"done":return E("global.generate_strm_done");case"running":return E("global.generate_strm_progress")+" "+I()+"%";default:return""}}()}}),a(w,{get when(){return J()},get children(){return a(m,{size:"sm",color:"$neutral10",get children(){return E("global.generate_strm_background")}})}})]}})}}),a(b,{get children(){return a(c,{colorScheme:"neutral",onClick:K,get children(){return s((function(){return!!J()}),!0)()?E("global.generate_strm_hide"):E("global.close")}})}})]}})]}})]}));t("a",(function(t){var r=i();return a(e,{get path(){return t.path},children:function(e){var n=e.start;return a(c,{get size(){return t.size},get colorScheme(){var r;return null!==(r=t.colorScheme)&&void 0!==r?r:"accent"},onClick:n,get children(){return r("global.generate_strm")}})}})}))}}}))}();
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(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},n=Object.prototype,o=n.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 s(t,r,e,n){var o=r&&r.prototype instanceof p?r:p,i=Object.create(o.prototype),a=new E(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=_(a,e);if(c){if(c===h)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=f(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===h)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 f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(O){return{type:"throw",arg:O}}}e.wrap=s;var h={};function p(){}function d(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(k([])));m&&m!==n&&o.call(m,a)&&(g=m);var w=y.prototype=p.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=f(r[i],r,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(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 _(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,_(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;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,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function L(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 S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function k(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 d.prototype=y,l(w,"constructor",y),l(y,"constructor",d),d.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===d||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?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]"})),e.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}},e.values=k,E.prototype={constructor:E,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(S),!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,h):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),h},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),S(e),h}},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;S(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:k(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},e}function e(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)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function c(t){e(a,o,i,c,u,"next",t)}function u(t){e(a,o,i,c,u,"throw",t)}c(void 0)}))}}function o(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 i(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(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 i(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}System.register(["./index-legacy.0569de56.js"],(function(t,e){"use strict";var i,a,c,u,l,s,f,h,p,d,y,g,v,m,w,b,x,_,L,S;return{setters:[function(t){i=t.b,a=t.y,c=t.R,u=t.C,l=t.x,s=t.aG,f=t.M,h=t.J,p=t.K,d=t.L,y=t.Y,g=t.dg,v=t.dh,m=t.ar,w=t.S,b=t.Q,x=t.U,_=t.bq,L=t.a3,S=t.n}],execute:function(){var e=t("S",(function(t){var e,E=i(),k=o(u(!1),2),j=k[0],O=k[1],G=o(u(0),2),I=G[0],A=G[1],N=o(u("idle"),2),P=N[0],C=N[1],T=o(u(""),2),$=T[0],F=T[1],M=0,z=function(){e&&(clearInterval(e),e=void 0)};l((function(){M++,z()}));var Y=function(t){z(),C("failed"),F(t)},U=function(t,o){z(),e=setInterval(n(r().mark((function e(){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_.post("/admin/task/strm_generate/info?tid=".concat(o));case 2:if(n=r.sent,t===M){r.next=5;break}return r.abrupt("return");case 5:L(n,(function(r){t===M&&(r.error?Y(r.error):(A(Math.floor(r.progress)),r.progress>=100&&(z(),C("done"),S.success(E("global.generate_strm_done")))))}),(function(r){t===M&&Y(r)}));case 6:case"end":return r.stop()}}),e)}))),1e3)},q=function(){var e=n(r().mark((function e(){var n,o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return z(),n=++M,O(!0),C("running"),A(0),F(""),r.next=8,_.post("/admin/strm/generate",{path:t.path});case 8:if(o=r.sent,n===M){r.next=11;break}return r.abrupt("return");case 11:L(o,(function(t){n===M&&(S.info(E("global.generate_strm_start")),U(n,t.task.id))}),(function(t){n===M&&Y(t)}));case 12:case"end":return r.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=function(){return"running"===P()},K=function(){return J()?O(!1):(M++,z(),void O(!1))};return[s((function(){return t.children({start:q})})),a(x,{get opened(){return j()},onClose:K,blockScrollOnMount:!1,get children(){return[a(f,{}),a(h,{get children(){return[a(p,{get children(){return E("global.generate_strm")}}),a(d,{get children(){return a(y,{spacing:"$3",alignItems:"stretch",py:"$2",get children(){return[a(g,{get value(){return I()},trackColor:"$neutral4",get children(){return a(v,{color:"$success9"})}}),a(m,{get children(){return function(){switch(P()){case"failed":return E("global.generate_strm_failed")+": "+$();case"done":return E("global.generate_strm_done");case"running":return E("global.generate_strm_progress")+" "+I()+"%";default:return""}}()}}),a(w,{get when(){return J()},get children(){return a(m,{size:"sm",color:"$neutral10",get children(){return E("global.generate_strm_background")}})}})]}})}}),a(b,{get children(){return a(c,{colorScheme:"neutral",onClick:K,get children(){return s((function(){return!!J()}),!0)()?E("global.generate_strm_hide"):E("global.close")}})}})]}})]}})]}));t("a",(function(t){var r=i();return a(e,{get path(){return t.path},children:function(e){var n=e.start;return a(c,{get size(){return t.size},get colorScheme(){var r;return null!==(r=t.colorScheme)&&void 0!==r?r:"accent"},onClick:n,get children(){return r("global.generate_strm")}})}})}))}}}))}();
@@ -1 +1 @@
1
- System.register(["./index-legacy.cdce98e1.js","./useTitle-legacy.b3b2613b.js","./Tasks-legacy.e4e4be39.js","./Paginator-legacy.20830174.js","./index-legacy.a2e25f9b.js","./Task-legacy.bef00b05.js"],(function(e,t){"use strict";var n,r,a,s;return{setters:[function(e){n=e.b,r=e.y},function(e){a=e.b},function(e){s=e.T},null,null,null],execute:function(){e("default",(function(){var e=n();return a("manage.sidemenu.strm_generate"),r(s,{type:"strm_generate",canRetry:!0,get nameAnalyzer(){return{regex:/^generate strm \[(.+)]\((.*)\)$/,title:function(e){return e[1]},attrs:(t={},n=e("tasks.attr.strm_generate.path"),r=function(e){return e[2]||"/"},n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t)};var t,n,r}})}))}}}));
1
+ System.register(["./index-legacy.0569de56.js","./useTitle-legacy.4c438d1f.js","./Tasks-legacy.24f9634a.js","./Paginator-legacy.0bcc0a06.js","./index-legacy.35059afc.js","./Task-legacy.993c84aa.js"],(function(e,t){"use strict";var n,r,a,s;return{setters:[function(e){n=e.b,r=e.y},function(e){a=e.b},function(e){s=e.T},null,null,null],execute:function(){e("default",(function(){var e=n();return a("manage.sidemenu.strm_generate"),r(s,{type:"strm_generate",canRetry:!0,get nameAnalyzer(){return{regex:/^generate strm \[(.+)]\((.*)\)$/,title:function(e){return e[1]},attrs:(t={},n=e("tasks.attr.strm_generate.path"),r=function(e){return e[2]||"/"},n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t)};var t,n,r}})}))}}}));
@@ -1 +1 @@
1
- import{b as B,d as H,C as n,aY as N,r as F,y as e,aw as f,R as o,S as p,av as I,dM as E,dN as P,dO as b,a6 as m,dP as S,dQ as Q,dR as c,cI as Y,dS as q,a3 as w,n as y,U as z,M as J,J as K,K as U,L as V,Q as W,Y as X,aZ as Z,bq as C,dT as j}from"./index-b0560a31.js";import{g as G}from"./color-a58de010.js";import{D as ee}from"./DeletePopover-8805036c.js";import te from"./AddLabelDialog-9914fe78.js";const se=()=>{const a=B(),{to:L}=H(),[$,u]=n(!1),[M,d]=n(!1),[_,i]=n(null),[g,k]=n(!1),[T,s]=n(!1),O=async()=>{var t;try{const r=await C.get("/fs/list");return r.code===500&&((t=r.message)!=null&&t.includes("please add a storage first"))?(s(!0),!1):!0}catch(r){return console.error("Failed to check storage:",r),!1}},[R,{refetch:v}]=N(async()=>g()?await Z():{data:{content:[],total:0}}),D=async t=>await C.post(`/admin/label/delete?id=${t}`),l=async()=>{try{u(!0);const t=await O();k(t),t&&await v()}catch{y.error(a("global.refresh_failed"))}finally{u(!1)}};F(()=>{l()});const x=(t,r,h)=>{l()},A=async t=>{const r=await j(t);w(r,h=>{i(h),d(!0)})};return e(X,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[e(f,{spacing:"$2",get children(){return[e(o,{colorScheme:"accent",get loading(){return $()},onClick:l,get children(){return a("global.refresh")}}),e(p,{get when(){return g()},get children(){return e(o,{onClick:()=>{i(null),d(!0)},get children(){return a("global.add")}})}})]}}),e(p,{get when(){return g()},get children(){return e(I,{w:"$full",overflowX:"auto",get children(){return e(E,{highlightOnHover:!0,dense:!0,get children(){return[e(P,{get children(){return e(b,{get children(){return[e(m,{each:["name","description","create_time"],children:t=>e(S,{get children(){return a(`home.tag.${t}`)}})}),e(S,{get children(){return a("global.operations")}})]}})}}),e(Q,{get children(){return e(m,{get each(){var t,r;return((r=(t=R())==null?void 0:t.data)==null?void 0:r.content)||[]},children:t=>e(b,{get children(){return[e(c,{get children(){return e(Y,{get bgColor(){return G(t.bg_color)},get color(){return t.bg_color},textTransform:"none",px:"$3",py:"$2",rounded:"$md",fontSize:"$sm",get children(){return t.name}})}}),e(c,{get children(){return t.description}}),e(c,{get children(){return q(t.create_time)}}),e(c,{get children(){return e(f,{spacing:"$2",get children(){return[e(o,{colorScheme:"accent",onClick:()=>A(t.id),get children(){return a("global.edit")}}),e(ee,{get name(){return t.name},loading:!1,onClick:async()=>{const r=await D(t.id);w(r,()=>{y.success(a("global.delete_success")),l()})}})]}})}})]}})})}})]}})}})}}),e(te,{get isOpen(){return M()},onClose:()=>{d(!1),i(null)},onSubmit:x,get editingLabel(){return _()}}),e(z,{get opened(){return T()},onClose:()=>s(!1),get children(){return[e(J,{}),e(K,{get children(){return[e(U,{}),e(V,{get children(){return a("storages.no_storage_content")}}),e(W,{get children(){return[e(o,{colorScheme:"accent",onClick:()=>s(!1),get children(){return a("global.cancel")}}),e(o,{onClick:()=>{s(!1),L("/@manage/storages")},ml:"$2",get children(){return a("home.go_to_storages")}})]}})]}})]}})]}})};export{se as default};
1
+ import{b as B,d as H,C as n,aY as N,r as F,y as e,aw as f,R as o,S as p,av as E,dM as I,dN as J,dO as b,a6 as m,dP as S,dQ as P,dR as c,cJ as Q,dS as Y,a3 as w,n as y,U as q,M as z,J as K,K as U,L as V,Q as W,Y as X,aZ as Z,bq as C,dT as j}from"./index-6e98aa26.js";import{g as G}from"./color-a58de010.js";import{D as ee}from"./DeletePopover-b8a9a633.js";import te from"./AddLabelDialog-1d6357b9.js";const se=()=>{const a=B(),{to:L}=H(),[$,u]=n(!1),[M,d]=n(!1),[_,i]=n(null),[g,k]=n(!1),[T,s]=n(!1),O=async()=>{var t;try{const r=await C.get("/fs/list");return r.code===500&&((t=r.message)!=null&&t.includes("please add a storage first"))?(s(!0),!1):!0}catch(r){return console.error("Failed to check storage:",r),!1}},[R,{refetch:v}]=N(async()=>g()?await Z():{data:{content:[],total:0}}),D=async t=>await C.post(`/admin/label/delete?id=${t}`),l=async()=>{try{u(!0);const t=await O();k(t),t&&await v()}catch{y.error(a("global.refresh_failed"))}finally{u(!1)}};F(()=>{l()});const x=(t,r,h)=>{l()},A=async t=>{const r=await j(t);w(r,h=>{i(h),d(!0)})};return e(X,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[e(f,{spacing:"$2",get children(){return[e(o,{colorScheme:"accent",get loading(){return $()},onClick:l,get children(){return a("global.refresh")}}),e(p,{get when(){return g()},get children(){return e(o,{onClick:()=>{i(null),d(!0)},get children(){return a("global.add")}})}})]}}),e(p,{get when(){return g()},get children(){return e(E,{w:"$full",overflowX:"auto",get children(){return e(I,{highlightOnHover:!0,dense:!0,get children(){return[e(J,{get children(){return e(b,{get children(){return[e(m,{each:["name","description","create_time"],children:t=>e(S,{get children(){return a(`home.tag.${t}`)}})}),e(S,{get children(){return a("global.operations")}})]}})}}),e(P,{get children(){return e(m,{get each(){var t,r;return((r=(t=R())==null?void 0:t.data)==null?void 0:r.content)||[]},children:t=>e(b,{get children(){return[e(c,{get children(){return e(Q,{get bgColor(){return G(t.bg_color)},get color(){return t.bg_color},textTransform:"none",px:"$3",py:"$2",rounded:"$md",fontSize:"$sm",get children(){return t.name}})}}),e(c,{get children(){return t.description}}),e(c,{get children(){return Y(t.create_time)}}),e(c,{get children(){return e(f,{spacing:"$2",get children(){return[e(o,{colorScheme:"accent",onClick:()=>A(t.id),get children(){return a("global.edit")}}),e(ee,{get name(){return t.name},loading:!1,onClick:async()=>{const r=await D(t.id);w(r,()=>{y.success(a("global.delete_success")),l()})}})]}})}})]}})})}})]}})}})}}),e(te,{get isOpen(){return M()},onClose:()=>{d(!1),i(null)},onSubmit:x,get editingLabel(){return _()}}),e(q,{get opened(){return T()},onClose:()=>s(!1),get children(){return[e(z,{}),e(K,{get children(){return[e(U,{}),e(V,{get children(){return a("storages.no_storage_content")}}),e(W,{get children(){return[e(o,{colorScheme:"accent",onClick:()=>s(!1),get children(){return a("global.cancel")}}),e(o,{onClick:()=>{s(!1),L("/@manage/storages")},ml:"$2",get children(){return a("home.go_to_storages")}})]}})]}})]}})]}})};export{se as default};
@@ -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(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},n=Object.prototype,o=n.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 s(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new _(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===h)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=f(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===h)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 f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(O){return{type:"throw",arg:O}}}e.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(E([])));m&&m!==n&&o.call(m,a)&&(v=m);var w=g.prototype=d.prototype=Object.create(v);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=f(r[i],r,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(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 h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;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,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function k(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 S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(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=g,l(w,"constructor",g),l(g,"constructor",p),p.displayName=l(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?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]"})),e.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}},e.values=E,_.prototype={constructor:_,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(S),!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,h):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),h},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),S(e),h}},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;S(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:E(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},e}function e(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)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function c(t){e(a,o,i,c,u,"next",t)}function u(t){e(a,o,i,c,u,"throw",t)}c(void 0)}))}}function o(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 i(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(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 i(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}System.register(["./index-legacy.cdce98e1.js","./color-legacy.24148ccb.js","./DeletePopover-legacy.c02233f5.js","./AddLabelDialog-legacy.036a9ab6.js"],(function(t,e){"use strict";var i,a,c,u,l,s,f,h,d,p,g,v,y,m,w,b,x,L,k,S,_,E,j,O,C,$,P,A,G,N,I,T,F,Y;return{setters:[function(t){i=t.b,a=t.d,c=t.C,u=t.aY,l=t.r,s=t.y,f=t.aw,h=t.R,d=t.S,p=t.av,g=t.dM,v=t.dN,y=t.dO,m=t.a6,w=t.dP,b=t.dQ,x=t.dR,L=t.cI,k=t.dS,S=t.a3,_=t.n,E=t.U,j=t.M,O=t.J,C=t.K,$=t.L,P=t.Q,A=t.Y,G=t.aZ,N=t.bq,I=t.dT},function(t){T=t.g},function(t){F=t.D},function(t){Y=t.default}],execute:function(){t("default",(function(){var t=i(),e=a().to,D=o(c(!1),2),M=D[0],Q=D[1],R=o(c(!1),2),U=R[0],q=R[1],z=o(c(null),2),H=z[0],J=z[1],K=o(c(!1),2),X=K[0],Z=K[1],B=o(c(!1),2),V=B[0],W=B[1],tt=function(){var t=n(r().mark((function t(){var e,n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,N.get("/fs/list");case 3:if(500!==(n=t.sent).code||null===(e=n.message)||void 0===e||!e.includes("please add a storage first")){t.next=7;break}return W(!0),t.abrupt("return",!1);case 7:return t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(0),console.error("Failed to check storage:",t.t0),t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(){return t.apply(this,arguments)}}(),rt=o(u(n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(X()){t.next=2;break}return t.abrupt("return",{data:{content:[],total:0}});case 2:return t.next=4,G();case 4:return e=t.sent,t.abrupt("return",e);case 6:case"end":return t.stop()}}),t)})))),2),et=rt[0],nt=rt[1].refetch,ot=function(){var t=n(r().mark((function t(e){var n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,N.post("/admin/label/delete?id=".concat(e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}(),it=function(){var e=n(r().mark((function e(){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,Q(!0),r.next=4,tt();case 4:if(n=r.sent,Z(n),!n){r.next=9;break}return r.next=9,nt();case 9:r.next=14;break;case 11:r.prev=11,r.t0=r.catch(0),_.error(t("global.refresh_failed"));case 14:return r.prev=14,Q(!1),r.finish(14);case 17:case"end":return r.stop()}}),e,null,[[0,11,14,17]])})));return function(){return e.apply(this,arguments)}}();l((function(){it()}));var at=function(t,r,e){it()},ct=function(){var t=n(r().mark((function t(e){var n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I(e);case 2:n=t.sent,S(n,(function(t){J(t),q(!0)}));case 4:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}();return s(A,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[s(f,{spacing:"$2",get children(){return[s(h,{colorScheme:"accent",get loading(){return M()},onClick:it,get children(){return t("global.refresh")}}),s(d,{get when(){return X()},get children(){return s(h,{onClick:function(){J(null),q(!0)},get children(){return t("global.add")}})}})]}}),s(d,{get when(){return X()},get children(){return s(p,{w:"$full",overflowX:"auto",get children(){return s(g,{highlightOnHover:!0,dense:!0,get children(){return[s(v,{get children(){return s(y,{get children(){return[s(m,{each:["name","description","create_time"],children:function(r){return s(w,{get children(){return t("home.tag.".concat(r))}})}}),s(w,{get children(){return t("global.operations")}})]}})}}),s(b,{get children(){return s(m,{get each(){var t,r;return(null===(t=et())||void 0===t||null===(r=t.data)||void 0===r?void 0:r.content)||[]},children:function(e){return s(y,{get children(){return[s(x,{get children(){return s(L,{get bgColor(){return T(e.bg_color)},get color(){return e.bg_color},textTransform:"none",px:"$3",py:"$2",rounded:"$md",fontSize:"$sm",get children(){return e.name}})}}),s(x,{get children(){return e.description}}),s(x,{get children(){return k(e.create_time)}}),s(x,{get children(){return s(f,{spacing:"$2",get children(){return[s(h,{colorScheme:"accent",onClick:function(){return ct(e.id)},get children(){return t("global.edit")}}),s(F,{get name(){return e.name},loading:!1,onClick:(o=n(r().mark((function n(){var o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ot(e.id);case 2:o=r.sent,S(o,(function(){_.success(t("global.delete_success")),it()}));case 4:case"end":return r.stop()}}),n)}))),function(){return o.apply(this,arguments)})})];var o}})}})]}})}})}})]}})}})}}),s(Y,{get isOpen(){return U()},onClose:function(){q(!1),J(null)},onSubmit:at,get editingLabel(){return H()}}),s(E,{get opened(){return V()},onClose:function(){return W(!1)},get children(){return[s(j,{}),s(O,{get children(){return[s(C,{}),s($,{get children(){return t("storages.no_storage_content")}}),s(P,{get children(){return[s(h,{colorScheme:"accent",onClick:function(){return W(!1)},get children(){return t("global.cancel")}}),s(h,{onClick:function(){W(!1),e("/@manage/storages")},ml:"$2",get children(){return t("home.go_to_storages")}})]}})]}})]}})]}})}))}}}))}();
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(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},n=Object.prototype,o=n.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 s(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new _(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===h)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=f(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===h)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 f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(O){return{type:"throw",arg:O}}}e.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(E([])));m&&m!==n&&o.call(m,a)&&(v=m);var w=g.prototype=d.prototype=Object.create(v);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=f(r[i],r,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(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 h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;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,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function k(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 S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(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=g,l(w,"constructor",g),l(g,"constructor",p),p.displayName=l(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?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]"})),e.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}},e.values=E,_.prototype={constructor:_,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(S),!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,h):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),h},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),S(e),h}},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;S(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:E(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},e}function e(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)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function c(t){e(a,o,i,c,u,"next",t)}function u(t){e(a,o,i,c,u,"throw",t)}c(void 0)}))}}function o(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 i(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(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 i(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}System.register(["./index-legacy.0569de56.js","./color-legacy.24148ccb.js","./DeletePopover-legacy.ca04a0ab.js","./AddLabelDialog-legacy.dd6c914a.js"],(function(t,e){"use strict";var i,a,c,u,l,s,f,h,d,p,g,v,y,m,w,b,x,L,k,S,_,E,j,O,C,$,P,A,G,N,T,I,F,Y;return{setters:[function(t){i=t.b,a=t.d,c=t.C,u=t.aY,l=t.r,s=t.y,f=t.aw,h=t.R,d=t.S,p=t.av,g=t.dM,v=t.dN,y=t.dO,m=t.a6,w=t.dP,b=t.dQ,x=t.dR,L=t.cJ,k=t.dS,S=t.a3,_=t.n,E=t.U,j=t.M,O=t.J,C=t.K,$=t.L,P=t.Q,A=t.Y,G=t.aZ,N=t.bq,T=t.dT},function(t){I=t.g},function(t){F=t.D},function(t){Y=t.default}],execute:function(){t("default",(function(){var t=i(),e=a().to,D=o(c(!1),2),M=D[0],J=D[1],Q=o(c(!1),2),R=Q[0],U=Q[1],q=o(c(null),2),z=q[0],H=q[1],K=o(c(!1),2),X=K[0],Z=K[1],B=o(c(!1),2),V=B[0],W=B[1],tt=function(){var t=n(r().mark((function t(){var e,n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,N.get("/fs/list");case 3:if(500!==(n=t.sent).code||null===(e=n.message)||void 0===e||!e.includes("please add a storage first")){t.next=7;break}return W(!0),t.abrupt("return",!1);case 7:return t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(0),console.error("Failed to check storage:",t.t0),t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(){return t.apply(this,arguments)}}(),rt=o(u(n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(X()){t.next=2;break}return t.abrupt("return",{data:{content:[],total:0}});case 2:return t.next=4,G();case 4:return e=t.sent,t.abrupt("return",e);case 6:case"end":return t.stop()}}),t)})))),2),et=rt[0],nt=rt[1].refetch,ot=function(){var t=n(r().mark((function t(e){var n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,N.post("/admin/label/delete?id=".concat(e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}(),it=function(){var e=n(r().mark((function e(){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,J(!0),r.next=4,tt();case 4:if(n=r.sent,Z(n),!n){r.next=9;break}return r.next=9,nt();case 9:r.next=14;break;case 11:r.prev=11,r.t0=r.catch(0),_.error(t("global.refresh_failed"));case 14:return r.prev=14,J(!1),r.finish(14);case 17:case"end":return r.stop()}}),e,null,[[0,11,14,17]])})));return function(){return e.apply(this,arguments)}}();l((function(){it()}));var at=function(t,r,e){it()},ct=function(){var t=n(r().mark((function t(e){var n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T(e);case 2:n=t.sent,S(n,(function(t){H(t),U(!0)}));case 4:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}();return s(A,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[s(f,{spacing:"$2",get children(){return[s(h,{colorScheme:"accent",get loading(){return M()},onClick:it,get children(){return t("global.refresh")}}),s(d,{get when(){return X()},get children(){return s(h,{onClick:function(){H(null),U(!0)},get children(){return t("global.add")}})}})]}}),s(d,{get when(){return X()},get children(){return s(p,{w:"$full",overflowX:"auto",get children(){return s(g,{highlightOnHover:!0,dense:!0,get children(){return[s(v,{get children(){return s(y,{get children(){return[s(m,{each:["name","description","create_time"],children:function(r){return s(w,{get children(){return t("home.tag.".concat(r))}})}}),s(w,{get children(){return t("global.operations")}})]}})}}),s(b,{get children(){return s(m,{get each(){var t,r;return(null===(t=et())||void 0===t||null===(r=t.data)||void 0===r?void 0:r.content)||[]},children:function(e){return s(y,{get children(){return[s(x,{get children(){return s(L,{get bgColor(){return I(e.bg_color)},get color(){return e.bg_color},textTransform:"none",px:"$3",py:"$2",rounded:"$md",fontSize:"$sm",get children(){return e.name}})}}),s(x,{get children(){return e.description}}),s(x,{get children(){return k(e.create_time)}}),s(x,{get children(){return s(f,{spacing:"$2",get children(){return[s(h,{colorScheme:"accent",onClick:function(){return ct(e.id)},get children(){return t("global.edit")}}),s(F,{get name(){return e.name},loading:!1,onClick:(o=n(r().mark((function n(){var o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ot(e.id);case 2:o=r.sent,S(o,(function(){_.success(t("global.delete_success")),it()}));case 4:case"end":return r.stop()}}),n)}))),function(){return o.apply(this,arguments)})})];var o}})}})]}})}})}})]}})}})}}),s(Y,{get isOpen(){return R()},onClose:function(){U(!1),H(null)},onSubmit:at,get editingLabel(){return z()}}),s(E,{get opened(){return V()},onClose:function(){return W(!1)},get children(){return[s(j,{}),s(O,{get children(){return[s(C,{}),s($,{get children(){return t("storages.no_storage_content")}}),s(P,{get children(){return[s(h,{colorScheme:"accent",onClick:function(){return W(!1)},get children(){return t("global.cancel")}}),s(h,{onClick:function(){W(!1),e("/@manage/storages")},ml:"$2",get children(){return t("home.go_to_storages")}})]}})]}})]}})]}})}))}}}))}();
@@ -1 +1 @@
1
- import{az as y,b as D,y as t,cI as S,ba as v,bq as z,C as M,aw as F,a0 as O,bW as W,S as a,aJ as f,df as H,dg as N,ar as j,bX as q,dz as J,R as x,a3 as _,n as R,aG as K,Y as V,e1 as X,e2 as c,a6 as Y,cy as Q}from"./index-b0560a31.js";var d;(function(e){e[e.Pending=0]="Pending",e[e.Running=1]="Running",e[e.Succeeded=2]="Succeeded",e[e.Canceling=3]="Canceling",e[e.Canceled=4]="Canceled",e[e.Errored=5]="Errored",e[e.Failing=6]="Failing",e[e.Failed=7]="Failed",e[e.WaitingRetry=8]="WaitingRetry",e[e.BeforeRetry=9]="BeforeRetry"})(d||(d={}));const T={[d.Failed]:"danger",[d.Succeeded]:"success",[d.Canceled]:"neutral"},U=e=>{if(e.role<0)return null;const r=["info","neutral","accent"];return t(S,{get colorScheme(){return r[e.role]},css:{overflow:"hidden",whiteSpace:"nowrap",text:"ellipsis"},get children(){return e.name}})},Z=e=>{const r=D();return t(S,{get colorScheme(){return T[e.state]??"info"},get children(){return r(`tasks.state.${e.state}`)}})},s=[{name:"name",textAlign:"left",w:y().role.includes(2)?"calc(100% - 660px)":"calc(100% - 560px)"},{name:"creator",textAlign:"center",w:y().role.includes(2)?"100px":"0"},{name:"state",textAlign:"center",w:"100px"},{name:"progress",textAlign:"left",w:"140px"},{name:"speed",textAlign:"center",w:"100px"},{name:"operation",textAlign:"right",w:"220px"}],$=e=>Math.floor(e).toString().padStart(2,"0"),E=e=>{const r=e/1e3%60,o=e/1e3/60%60,g=e/1e3/3600;return`${$(g)}:${$(o)}:${$(r)}`},ee=e=>{const r=D(),o=e.done==="undone"?"cancel":"delete",g=e.done==="done"&&(e.state===d.Failed||e.state===d.Canceled),[B,k]=v(()=>z.post(`/task/${e.type}/${o}?tid=${e.id}`)),[P,G]=v(()=>z.post(`/task/${e.type}/retry?tid=${e.id}`)),[L,C]=M(!1),u=e.name.match(e.nameAnalyzer.regex),I=u===null?e.name:e.nameAnalyzer.title(u,e),h=e.start_time===null?-1:new Date(e.start_time).getTime(),b=e.end_time===null?new Date().getTime():new Date(e.end_time).getTime();let m="-";const A=(n,l)=>{let i=l/n,w="bytes/s";return i>1024&&(i/=1024,w="KB/s"),i>1024&&(i/=1024,w="MB/s"),i>1024&&(i/=1024,w="GB/s"),`${i.toFixed(2)} ${w}`};if(e.done){if(e.start_time!==e.end_time&&e.progress>0&&h!==-1){const n=(b-h)/1e3,l=e.total_bytes*e.progress/100;m=A(n,l)}}else if(e.prevProgress!==void 0&&e.prevFetchTime!==void 0){const n=(e.curFetchTime-e.prevFetchTime)/1e3,l=(e.progress-e.prevProgress)*e.total_bytes/100;m=A(n,l)}return t(a,{get when(){return!L()},get children(){return[t(F,{w:"$full",p:"$2",get children(){return[t(F,{get w(){return s[0].w},spacing:"$1",get children(){return[t(O,{"on:click":n=>{n.stopPropagation()},get checked(){return e.local.selected},onChange:n=>{e.setLocal({selected:n.target.checked,expanded:e.local.expanded})}}),t(W,{size:"sm",css:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:I})]}}),t(a,{get when(){return y().role.includes(2)},get children(){return t(f,{get w(){return s[1].w},get children(){return t(U,{get name(){return e.creator},get role(){return e.creator_role}})}})}}),t(f,{get w(){return s[2].w},get children(){return t(Z,{get state(){return e.state}})}}),t(H,{get w(){return s[3].w},trackColor:"$info3",rounded:"$full",size:"sm",get value(){return e.progress},mr:"$1",get children(){return t(N,{color:"$info8",rounded:"$md"})}}),t(f,{get w(){return s[1].w},get children(){return t(j,{size:"sm",css:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:m})}}),t(q,{get w(){return s[5].w},gap:"$1",get children(){return[t(J,{}),t(a,{get when(){return e.canRetry},get children(){return t(x,{size:"sm",disabled:!g,display:g?"block":"none",get loading(){return P()},onClick:async()=>{const n=await G();_(n,()=>{R.info(r("tasks.retry")),C(!0)})},get children(){return r("tasks.retry")}})}}),t(x,{size:"sm",colorScheme:"danger",get loading(){return B()},onClick:async()=>{const n=await k();_(n,()=>{R.success(r("global.delete_success")),C(!0)})},get children(){return r(`global.${o}`)}}),t(x,{size:"sm",colorScheme:"neutral",onClick:()=>{e.setLocal({selected:e.local.selected,expanded:!e.local.expanded})},get children(){return K(()=>!!e.local.expanded,!0)()?r("tasks.fold"):r("tasks.expand")}})]}})]}}),t(a,{get when(){return e.local.expanded},get children(){return t(V,{css:{wordBreak:"break-all",fontSize:"0.8em"},w:"$full",pl:"$2",pr:"$2",get children(){return[t(X,{templateColumns:"min-content 1fr",w:"$full",columnGap:"$4",mb:"$2",get children(){return[t(a,{when:h!==-1,get children(){return[t(c,{color:"$neutral9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return r("tasks.attr.time_elapsed")}}),t(c,{color:"$neutral9",get children(){return E(b-h)}})]}}),t(a,{when:u!==null,get children(){return t(Y,{get each(){return Object.entries(e.nameAnalyzer.attrs)},children:n=>{const l=n[1](u,e);return l===void 0?null:t(a,{get when(){return n[1]!==void 0},get children(){return[t(c,{color:"$neutral9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return n[0]}}),t(c,{color:"$neutral9",children:l})]}})}})}}),t(c,{color:"$neutral9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return r("tasks.attr.status")}}),t(c,{color:"$neutral9",get children(){var n,l;return((l=(n=e.nameAnalyzer).statusText)==null?void 0:l.call(n,e))??e.status}}),t(a,{get when(){return e.error},get children(){return[t(c,{color:"$danger9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return r("tasks.attr.err")}}),t(c,{color:"$danger9",get children(){return e.error}})]}})]}}),t(Q,{})]}})}})]}})};export{Z as T,ee as a,s as c};
1
+ import{az as y,b as D,y as t,cJ as S,ba as v,bq as F,C as O,aw as z,a0 as W,bW as H,S as a,aJ as f,dg as I,dh as J,ar as N,bX as j,dA as q,R as x,a3 as _,n as R,aG as K,Y as V,e1 as X,e2 as c,a6 as Y,cy as Q}from"./index-6e98aa26.js";var d;(function(e){e[e.Pending=0]="Pending",e[e.Running=1]="Running",e[e.Succeeded=2]="Succeeded",e[e.Canceling=3]="Canceling",e[e.Canceled=4]="Canceled",e[e.Errored=5]="Errored",e[e.Failing=6]="Failing",e[e.Failed=7]="Failed",e[e.WaitingRetry=8]="WaitingRetry",e[e.BeforeRetry=9]="BeforeRetry"})(d||(d={}));const T={[d.Failed]:"danger",[d.Succeeded]:"success",[d.Canceled]:"neutral"},U=e=>{if(e.role<0)return null;const r=["info","neutral","accent"];return t(S,{get colorScheme(){return r[e.role]},css:{overflow:"hidden",whiteSpace:"nowrap",text:"ellipsis"},get children(){return e.name}})},Z=e=>{const r=D();return t(S,{get colorScheme(){return T[e.state]??"info"},get children(){return r(`tasks.state.${e.state}`)}})},s=[{name:"name",textAlign:"left",w:y().role.includes(2)?"calc(100% - 660px)":"calc(100% - 560px)"},{name:"creator",textAlign:"center",w:y().role.includes(2)?"100px":"0"},{name:"state",textAlign:"center",w:"100px"},{name:"progress",textAlign:"left",w:"140px"},{name:"speed",textAlign:"center",w:"100px"},{name:"operation",textAlign:"right",w:"220px"}],$=e=>Math.floor(e).toString().padStart(2,"0"),E=e=>{const r=e/1e3%60,o=e/1e3/60%60,g=e/1e3/3600;return`${$(g)}:${$(o)}:${$(r)}`},ee=e=>{const r=D(),o=e.done==="undone"?"cancel":"delete",g=e.done==="done"&&(e.state===d.Failed||e.state===d.Canceled),[B,k]=v(()=>F.post(`/task/${e.type}/${o}?tid=${e.id}`)),[P,G]=v(()=>F.post(`/task/${e.type}/retry?tid=${e.id}`)),[L,C]=O(!1),u=e.name.match(e.nameAnalyzer.regex),M=u===null?e.name:e.nameAnalyzer.title(u,e),h=e.start_time===null?-1:new Date(e.start_time).getTime(),b=e.end_time===null?new Date().getTime():new Date(e.end_time).getTime();let m="-";const A=(n,l)=>{let i=l/n,w="bytes/s";return i>1024&&(i/=1024,w="KB/s"),i>1024&&(i/=1024,w="MB/s"),i>1024&&(i/=1024,w="GB/s"),`${i.toFixed(2)} ${w}`};if(e.done){if(e.start_time!==e.end_time&&e.progress>0&&h!==-1){const n=(b-h)/1e3,l=e.total_bytes*e.progress/100;m=A(n,l)}}else if(e.prevProgress!==void 0&&e.prevFetchTime!==void 0){const n=(e.curFetchTime-e.prevFetchTime)/1e3,l=(e.progress-e.prevProgress)*e.total_bytes/100;m=A(n,l)}return t(a,{get when(){return!L()},get children(){return[t(z,{w:"$full",p:"$2",get children(){return[t(z,{get w(){return s[0].w},spacing:"$1",get children(){return[t(W,{"on:click":n=>{n.stopPropagation()},get checked(){return e.local.selected},onChange:n=>{e.setLocal({selected:n.target.checked,expanded:e.local.expanded})}}),t(H,{size:"sm",css:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:M})]}}),t(a,{get when(){return y().role.includes(2)},get children(){return t(f,{get w(){return s[1].w},get children(){return t(U,{get name(){return e.creator},get role(){return e.creator_role}})}})}}),t(f,{get w(){return s[2].w},get children(){return t(Z,{get state(){return e.state}})}}),t(I,{get w(){return s[3].w},trackColor:"$info3",rounded:"$full",size:"sm",get value(){return e.progress},mr:"$1",get children(){return t(J,{color:"$info8",rounded:"$md"})}}),t(f,{get w(){return s[1].w},get children(){return t(N,{size:"sm",css:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:m})}}),t(j,{get w(){return s[5].w},gap:"$1",get children(){return[t(q,{}),t(a,{get when(){return e.canRetry},get children(){return t(x,{size:"sm",disabled:!g,display:g?"block":"none",get loading(){return P()},onClick:async()=>{const n=await G();_(n,()=>{R.info(r("tasks.retry")),C(!0)})},get children(){return r("tasks.retry")}})}}),t(x,{size:"sm",colorScheme:"danger",get loading(){return B()},onClick:async()=>{const n=await k();_(n,()=>{R.success(r("global.delete_success")),C(!0)})},get children(){return r(`global.${o}`)}}),t(x,{size:"sm",colorScheme:"neutral",onClick:()=>{e.setLocal({selected:e.local.selected,expanded:!e.local.expanded})},get children(){return K(()=>!!e.local.expanded,!0)()?r("tasks.fold"):r("tasks.expand")}})]}})]}}),t(a,{get when(){return e.local.expanded},get children(){return t(V,{css:{wordBreak:"break-all",fontSize:"0.8em"},w:"$full",pl:"$2",pr:"$2",get children(){return[t(X,{templateColumns:"min-content 1fr",w:"$full",columnGap:"$4",mb:"$2",get children(){return[t(a,{when:h!==-1,get children(){return[t(c,{color:"$neutral9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return r("tasks.attr.time_elapsed")}}),t(c,{color:"$neutral9",get children(){return E(b-h)}})]}}),t(a,{when:u!==null,get children(){return t(Y,{get each(){return Object.entries(e.nameAnalyzer.attrs)},children:n=>{const l=n[1](u,e);return l===void 0?null:t(a,{get when(){return n[1]!==void 0},get children(){return[t(c,{color:"$neutral9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return n[0]}}),t(c,{color:"$neutral9",children:l})]}})}})}}),t(c,{color:"$neutral9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return r("tasks.attr.status")}}),t(c,{color:"$neutral9",get children(){var n,l;return((l=(n=e.nameAnalyzer).statusText)==null?void 0:l.call(n,e))??e.status}}),t(a,{get when(){return e.error},get children(){return[t(c,{color:"$danger9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return r("tasks.attr.err")}}),t(c,{color:"$danger9",get children(){return e.error}})]}})]}}),t(Q,{})]}})}})]}})};export{Z as T,ee as a,s as c};
@@ -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",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(A){u=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 $()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=S(a,r);if(c){if(c===h)continue;return c}}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===h)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(A){return{type:"throw",arg:A}}}r.wrap=s;var h={};function d(){}function p(){}function g(){}var y={};u(y,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(E([])));m&&m!==n&&o.call(m,a)&&(y=m);var w=g.prototype=d.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(t,r){function n(i,a,c,l){var u=f(t[i],t,a);if("throw"!==u.type){var s=u.arg,h=s.value;return h&&"object"==e(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(e){n("next",e,c,l)}),(function(e){n("throw",e,c,l)})):r.resolve(h).then((function(e){s.value=e,c(s)}),(function(e){return n("throw",e,c,l)}))}l(u.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 S(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,S(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;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,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}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 L(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 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:$}}function $(){return{value:void 0,done:!0}}return p.prototype=g,u(w,"constructor",g),u(g,"constructor",p),p.displayName=u(g,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,g):(e.__proto__=g,u(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},r.awrap=function(e){return{__await:e}},x(b.prototype),u(b.prototype,c,(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()}))},x(w),u(w,l,"Generator"),u(w,a,(function(){return this})),u(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,_.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(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 c=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){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,h):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),h},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),h}},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),h}},r}function r(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(u){return void r(u)}c.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 c(e){r(a,o,i,c,l,"next",e)}function l(e){r(a,o,i,c,l,"throw",e)}c(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,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(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 i(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 i(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}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}System.register(["./index-legacy.cdce98e1.js"],(function(e,r){"use strict";var i,c,l,u,s,f,h,d,p,g,y,v,m,w,x,b,S,k,L,_,E,$,A,O,j,F;return{setters:[function(e){i=e.az,c=e.b,l=e.y,u=e.cI,s=e.ba,f=e.bq,h=e.C,d=e.aw,p=e.a0,g=e.bW,y=e.S,v=e.aJ,m=e.df,w=e.dg,x=e.ar,b=e.bX,S=e.dz,k=e.R,L=e.a3,_=e.n,E=e.aG,$=e.Y,A=e.e1,O=e.e2,j=e.a6,F=e.cy}],execute:function(){var r,C;!function(e){e[e.Pending=0]="Pending",e[e.Running=1]="Running",e[e.Succeeded=2]="Succeeded",e[e.Canceling=3]="Canceling",e[e.Canceled=4]="Canceled",e[e.Errored=5]="Errored",e[e.Failing=6]="Failing",e[e.Failed=7]="Failed",e[e.WaitingRetry=8]="WaitingRetry",e[e.BeforeRetry=9]="BeforeRetry"}(C||(C={}));var P=(a(r={},C.Failed,"danger"),a(r,C.Succeeded,"success"),a(r,C.Canceled,"neutral"),r),T=function(e){if(e.role<0)return null;var t=["info","neutral","accent"];return l(u,{get colorScheme(){return t[e.role]},css:{overflow:"hidden",whiteSpace:"nowrap",text:"ellipsis"},get children(){return e.name}})},z=e("T",(function(e){var t=c();return l(u,{get colorScheme(){var t;return null!==(t=P[e.state])&&void 0!==t?t:"info"},get children(){return t("tasks.state.".concat(e.state))}})})),G=e("c",[{name:"name",textAlign:"left",w:i().role.includes(2)?"calc(100% - 660px)":"calc(100% - 560px)"},{name:"creator",textAlign:"center",w:i().role.includes(2)?"100px":"0"},{name:"state",textAlign:"center",w:"100px"},{name:"progress",textAlign:"left",w:"140px"},{name:"speed",textAlign:"center",w:"100px"},{name:"operation",textAlign:"right",w:"220px"}]),N=function(e){return Math.floor(e).toString().padStart(2,"0")};e("a",(function(e){var r=c(),a="undone"===e.done?"cancel":"delete",u="done"===e.done&&(e.state===C.Failed||e.state===C.Canceled),P=o(s((function(){return f.post("/task/".concat(e.type,"/").concat(a,"?tid=").concat(e.id))})),2),R=P[0],I=P[1],B=o(s((function(){return f.post("/task/".concat(e.type,"/retry?tid=").concat(e.id))})),2),D=B[0],M=B[1],W=o(h(!1),2),Y=W[0],q=W[1],J=e.name.match(e.nameAnalyzer.regex),K=null===J?e.name:e.nameAnalyzer.title(J,e),U=null===e.start_time?-1:new Date(e.start_time).getTime(),X=null===e.end_time?(new Date).getTime():new Date(e.end_time).getTime(),H="-",Q=function(e,t){var r=t/e,n="bytes/s";return r>1024&&(r/=1024,n="KB/s"),r>1024&&(r/=1024,n="MB/s"),r>1024&&(r/=1024,n="GB/s"),"".concat(r.toFixed(2)," ").concat(n)};if(e.done){if(e.start_time!==e.end_time&&e.progress>0&&-1!==U){var V=(X-U)/1e3,Z=e.total_bytes*e.progress/100;H=Q(V,Z)}}else if(void 0!==e.prevProgress&&void 0!==e.prevFetchTime){var ee=(e.curFetchTime-e.prevFetchTime)/1e3,te=(e.progress-e.prevProgress)*e.total_bytes/100;H=Q(ee,te)}return l(y,{get when(){return!Y()},get children(){return[l(d,{w:"$full",p:"$2",get children(){return[l(d,{get w(){return G[0].w},spacing:"$1",get children(){return[l(p,{"on:click":function(e){e.stopPropagation()},get checked(){return e.local.selected},onChange:function(t){e.setLocal({selected:t.target.checked,expanded:e.local.expanded})}}),l(g,{size:"sm",css:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:K})]}}),l(y,{get when(){return i().role.includes(2)},get children(){return l(v,{get w(){return G[1].w},get children(){return l(T,{get name(){return e.creator},get role(){return e.creator_role}})}})}}),l(v,{get w(){return G[2].w},get children(){return l(z,{get state(){return e.state}})}}),l(m,{get w(){return G[3].w},trackColor:"$info3",rounded:"$full",size:"sm",get value(){return e.progress},mr:"$1",get children(){return l(w,{color:"$info8",rounded:"$md"})}}),l(v,{get w(){return G[1].w},get children(){return l(x,{size:"sm",css:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:H})}}),l(b,{get w(){return G[5].w},gap:"$1",get children(){return[l(S,{}),l(y,{get when(){return e.canRetry},get children(){return l(k,{size:"sm",disabled:!u,display:u?"block":"none",get loading(){return D()},onClick:(e=n(t().mark((function e(){var n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M();case 2:n=e.sent,L(n,(function(){_.info(r("tasks.retry")),q(!0)}));case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)}),get children(){return r("tasks.retry")}});var e}}),l(k,{size:"sm",colorScheme:"danger",get loading(){return R()},onClick:(o=n(t().mark((function e(){var n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I();case 2:n=e.sent,L(n,(function(){_.success(r("global.delete_success")),q(!0)}));case 4:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)}),get children(){return r("global.".concat(a))}}),l(k,{size:"sm",colorScheme:"neutral",onClick:function(){e.setLocal({selected:e.local.selected,expanded:!e.local.expanded})},get children(){return E((function(){return!!e.local.expanded}),!0)()?r("tasks.fold"):r("tasks.expand")}})];var o}})]}}),l(y,{get when(){return e.local.expanded},get children(){return l($,{css:{wordBreak:"break-all",fontSize:"0.8em"},w:"$full",pl:"$2",pr:"$2",get children(){return[l(A,{templateColumns:"min-content 1fr",w:"$full",columnGap:"$4",mb:"$2",get children(){return[l(y,{when:-1!==U,get children(){return[l(O,{color:"$neutral9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return r("tasks.attr.time_elapsed")}}),l(O,{color:"$neutral9",get children(){return t=(e=X-U)/1e3%60,r=e/1e3/60%60,"".concat(N(e/1e3/3600),":").concat(N(r),":").concat(N(t));var e,t,r}})]}}),l(y,{when:null!==J,get children(){return l(j,{get each(){return Object.entries(e.nameAnalyzer.attrs)},children:function(t){var r=t[1](J,e);return void 0===r?null:l(y,{get when(){return void 0!==t[1]},get children(){return[l(O,{color:"$neutral9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return t[0]}}),l(O,{color:"$neutral9",children:r})]}})}})}}),l(O,{color:"$neutral9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return r("tasks.attr.status")}}),l(O,{color:"$neutral9",get children(){var t,r,n;return null!==(t=null===(r=(n=e.nameAnalyzer).statusText)||void 0===r?void 0:r.call(n,e))&&void 0!==t?t:e.status}}),l(y,{get when(){return e.error},get children(){return[l(O,{color:"$danger9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return r("tasks.attr.err")}}),l(O,{color:"$danger9",get children(){return e.error}})]}})]}}),l(F,{})]}})}})]}})}))}}}))}();
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",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(A){u=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 $()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=S(a,r);if(c){if(c===f)continue;return c}}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=h(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)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 h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(A){return{type:"throw",arg:A}}}r.wrap=s;var f={};function d(){}function p(){}function g(){}var y={};u(y,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(E([])));m&&m!==n&&o.call(m,a)&&(y=m);var w=g.prototype=d.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(t,r){function n(i,a,c,l){var u=h(t[i],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==e(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,c,l)}),(function(e){n("throw",e,c,l)})):r.resolve(f).then((function(e){s.value=e,c(s)}),(function(e){return n("throw",e,c,l)}))}l(u.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 S(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,S(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=h(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;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,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}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 L(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 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:$}}function $(){return{value:void 0,done:!0}}return p.prototype=g,u(w,"constructor",g),u(g,"constructor",p),p.displayName=u(g,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,g):(e.__proto__=g,u(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},r.awrap=function(e){return{__await:e}},x(b.prototype),u(b.prototype,c,(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()}))},x(w),u(w,l,"Generator"),u(w,a,(function(){return this})),u(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,_.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(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 c=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){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,f):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),f},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),f}},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),f}},r}function r(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(u){return void r(u)}c.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 c(e){r(a,o,i,c,l,"next",e)}function l(e){r(a,o,i,c,l,"throw",e)}c(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,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(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 i(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 i(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}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}System.register(["./index-legacy.0569de56.js"],(function(e,r){"use strict";var i,c,l,u,s,h,f,d,p,g,y,v,m,w,x,b,S,k,L,_,E,$,A,O,j,F;return{setters:[function(e){i=e.az,c=e.b,l=e.y,u=e.cJ,s=e.ba,h=e.bq,f=e.C,d=e.aw,p=e.a0,g=e.bW,y=e.S,v=e.aJ,m=e.dg,w=e.dh,x=e.ar,b=e.bX,S=e.dA,k=e.R,L=e.a3,_=e.n,E=e.aG,$=e.Y,A=e.e1,O=e.e2,j=e.a6,F=e.cy}],execute:function(){var r,C;!function(e){e[e.Pending=0]="Pending",e[e.Running=1]="Running",e[e.Succeeded=2]="Succeeded",e[e.Canceling=3]="Canceling",e[e.Canceled=4]="Canceled",e[e.Errored=5]="Errored",e[e.Failing=6]="Failing",e[e.Failed=7]="Failed",e[e.WaitingRetry=8]="WaitingRetry",e[e.BeforeRetry=9]="BeforeRetry"}(C||(C={}));var P=(a(r={},C.Failed,"danger"),a(r,C.Succeeded,"success"),a(r,C.Canceled,"neutral"),r),T=function(e){if(e.role<0)return null;var t=["info","neutral","accent"];return l(u,{get colorScheme(){return t[e.role]},css:{overflow:"hidden",whiteSpace:"nowrap",text:"ellipsis"},get children(){return e.name}})},z=e("T",(function(e){var t=c();return l(u,{get colorScheme(){var t;return null!==(t=P[e.state])&&void 0!==t?t:"info"},get children(){return t("tasks.state.".concat(e.state))}})})),G=e("c",[{name:"name",textAlign:"left",w:i().role.includes(2)?"calc(100% - 660px)":"calc(100% - 560px)"},{name:"creator",textAlign:"center",w:i().role.includes(2)?"100px":"0"},{name:"state",textAlign:"center",w:"100px"},{name:"progress",textAlign:"left",w:"140px"},{name:"speed",textAlign:"center",w:"100px"},{name:"operation",textAlign:"right",w:"220px"}]),N=function(e){return Math.floor(e).toString().padStart(2,"0")};e("a",(function(e){var r=c(),a="undone"===e.done?"cancel":"delete",u="done"===e.done&&(e.state===C.Failed||e.state===C.Canceled),P=o(s((function(){return h.post("/task/".concat(e.type,"/").concat(a,"?tid=").concat(e.id))})),2),R=P[0],B=P[1],I=o(s((function(){return h.post("/task/".concat(e.type,"/retry?tid=").concat(e.id))})),2),D=I[0],M=I[1],W=o(f(!1),2),Y=W[0],J=W[1],q=e.name.match(e.nameAnalyzer.regex),K=null===q?e.name:e.nameAnalyzer.title(q,e),U=null===e.start_time?-1:new Date(e.start_time).getTime(),X=null===e.end_time?(new Date).getTime():new Date(e.end_time).getTime(),H="-",Q=function(e,t){var r=t/e,n="bytes/s";return r>1024&&(r/=1024,n="KB/s"),r>1024&&(r/=1024,n="MB/s"),r>1024&&(r/=1024,n="GB/s"),"".concat(r.toFixed(2)," ").concat(n)};if(e.done){if(e.start_time!==e.end_time&&e.progress>0&&-1!==U){var V=(X-U)/1e3,Z=e.total_bytes*e.progress/100;H=Q(V,Z)}}else if(void 0!==e.prevProgress&&void 0!==e.prevFetchTime){var ee=(e.curFetchTime-e.prevFetchTime)/1e3,te=(e.progress-e.prevProgress)*e.total_bytes/100;H=Q(ee,te)}return l(y,{get when(){return!Y()},get children(){return[l(d,{w:"$full",p:"$2",get children(){return[l(d,{get w(){return G[0].w},spacing:"$1",get children(){return[l(p,{"on:click":function(e){e.stopPropagation()},get checked(){return e.local.selected},onChange:function(t){e.setLocal({selected:t.target.checked,expanded:e.local.expanded})}}),l(g,{size:"sm",css:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:K})]}}),l(y,{get when(){return i().role.includes(2)},get children(){return l(v,{get w(){return G[1].w},get children(){return l(T,{get name(){return e.creator},get role(){return e.creator_role}})}})}}),l(v,{get w(){return G[2].w},get children(){return l(z,{get state(){return e.state}})}}),l(m,{get w(){return G[3].w},trackColor:"$info3",rounded:"$full",size:"sm",get value(){return e.progress},mr:"$1",get children(){return l(w,{color:"$info8",rounded:"$md"})}}),l(v,{get w(){return G[1].w},get children(){return l(x,{size:"sm",css:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:H})}}),l(b,{get w(){return G[5].w},gap:"$1",get children(){return[l(S,{}),l(y,{get when(){return e.canRetry},get children(){return l(k,{size:"sm",disabled:!u,display:u?"block":"none",get loading(){return D()},onClick:(e=n(t().mark((function e(){var n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M();case 2:n=e.sent,L(n,(function(){_.info(r("tasks.retry")),J(!0)}));case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)}),get children(){return r("tasks.retry")}});var e}}),l(k,{size:"sm",colorScheme:"danger",get loading(){return R()},onClick:(o=n(t().mark((function e(){var n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B();case 2:n=e.sent,L(n,(function(){_.success(r("global.delete_success")),J(!0)}));case 4:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)}),get children(){return r("global.".concat(a))}}),l(k,{size:"sm",colorScheme:"neutral",onClick:function(){e.setLocal({selected:e.local.selected,expanded:!e.local.expanded})},get children(){return E((function(){return!!e.local.expanded}),!0)()?r("tasks.fold"):r("tasks.expand")}})];var o}})]}}),l(y,{get when(){return e.local.expanded},get children(){return l($,{css:{wordBreak:"break-all",fontSize:"0.8em"},w:"$full",pl:"$2",pr:"$2",get children(){return[l(A,{templateColumns:"min-content 1fr",w:"$full",columnGap:"$4",mb:"$2",get children(){return[l(y,{when:-1!==U,get children(){return[l(O,{color:"$neutral9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return r("tasks.attr.time_elapsed")}}),l(O,{color:"$neutral9",get children(){return t=(e=X-U)/1e3%60,r=e/1e3/60%60,"".concat(N(e/1e3/3600),":").concat(N(r),":").concat(N(t));var e,t,r}})]}}),l(y,{when:null!==q,get children(){return l(j,{get each(){return Object.entries(e.nameAnalyzer.attrs)},children:function(t){var r=t[1](q,e);return void 0===r?null:l(y,{get when(){return void 0!==t[1]},get children(){return[l(O,{color:"$neutral9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return t[0]}}),l(O,{color:"$neutral9",children:r})]}})}})}}),l(O,{color:"$neutral9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return r("tasks.attr.status")}}),l(O,{color:"$neutral9",get children(){var t,r,n;return null!==(t=null===(r=(n=e.nameAnalyzer).statusText)||void 0===r?void 0:r.call(n,e))&&void 0!==t?t:e.status}}),l(y,{get when(){return e.error},get children(){return[l(O,{color:"$danger9",textAlign:"right",css:{whiteSpace:"nowrap"},get children(){return r("tasks.attr.err")}}),l(O,{color:"$danger9",get children(){return e.error}})]}})]}}),l(F,{})]}})}})]}})}))}}}))}();
@@ -1 +1 @@
1
- import{b as J,y as r,bW as K,Y as F,a6 as Fe,ba as p,bq as f,C as d,B as g,x as Te,I as Ce,az as x,aw as I,S as v,R as u,a3 as y,N as _e,a0 as G,ar as w,a5 as h,bX as Pe,dz as Re,aG as Y,n as ze,F as Ie}from"./index-b0560a31.js";import{P as Le}from"./Paginator-c9173645.js";import{c as n,a as Me}from"./Task-305456a7.js";const be=a=>{const s=J(),[T,Q]=p(()=>f.get(`/task/${a.type}/${a.done}`)),[$,k]=d([]),[L,U]=d("name"),[M,b]=d(!1),Z={name:(e,t)=>e.name>t.name?1:-1,creator:(e,t)=>e.creator===t.creator?e.id>t.id?1:-1:e.creator>t.creator?1:-1,state:(e,t)=>e.state===t.state?e.id>t.id?1:-1:e.state>t.state?1:-1,progress:(e,t)=>e.progress===t.progress?e.id>t.id?1:-1:e.progress<t.progress?1:-1},ee=g(()=>(e,t)=>(M()?-1:1)*Z[L()](e,t)),o=async()=>{const e=await Q();y(e,t=>{const l=new Date().getTime(),N={},X={},P={},j={},q={};for(const c of $())N[c.id]=c.curFetchTime,X[c.id]=c.prevFetchTime,P[c.id]=c.progress,j[c.id]=c.prevProgress,q[c.id]=c.local;k((t==null?void 0:t.map(c=>{let R,z;c.progress===P[c.id]?(R=X[c.id],z=j[c.id]):(R=N[c.id],z=P[c.id]);const ve=q[c.id]??{selected:!1,expanded:!1};return{...c,curFetchTime:l,prevFetchTime:R,prevProgress:z,local:ve}}).sort(ee()))??[])})};if(o(),a.done==="undone"){const e=setInterval(o,2e3);Te(()=>clearInterval(e))}const[te,re]=p(()=>f.post(`/task/${a.type}/clear_done`)),[ne,ae]=p(()=>f.post(`/task/${a.type}/clear_succeeded`)),[se,ce]=p(()=>f.post(`/task/${a.type}/retry_failed`));console.log("props",a.type);const[B,le]=d(""),[oe,ie]=d(new RegExp("")),[de,A]=d(!1);Ce(()=>{try{ie(new RegExp(B())),A(!1)}catch{A(!0)}});const[E,ge]=d(x().role!==2),C=g(()=>{const e=oe(),t=E();return l=>e.test(l.name)&&(!t||l.creator===x().username)}),i=g(()=>$().filter(C())),O=g(()=>i().map(e=>e.local.selected).every(Boolean)),ue=g(()=>i().map(e=>e.local.selected).some(Boolean)&&!O()),he=e=>k($().map(t=>(C()(t)&&(t.local.selected=e),t))),D=g(()=>i().map(e=>e.local.expanded).every(Boolean)),me=e=>k($().map(t=>(C()(t)&&(t.local.expanded=e),t))),V=()=>i().filter(e=>e.local.selected).map(e=>e.id),[pe,fe]=p(()=>f.post(`/task/${a.type}/retry_some`,V())),[ye,we]=p(()=>f.post(`/task/${a.type}/${H}_some`,V())),W=e=>{Object.entries(e).forEach(([t,l])=>{ze.error(`${t}: ${l}`)})},[$e,ke]=d(1),_=20,H=a.done==="undone"?"cancel":"delete",Se=g(()=>{const e=($e()-1)*_,t=e+_;return i().slice(e,t)}),m=e=>({fontWeight:"bold",fontSize:"$sm",color:"$neutral11",textAlign:e.textAlign}),S=e=>({cursor:"pointer",onClick:()=>{L()===e.name?b(!M()):Ie(()=>{U(e.name),b(!1)}),o()}}),xe=e=>t=>k($().map(l=>(l.id===e&&(l.local=t),l)));return r(F,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[r(K,{size:"lg",get children(){return s(`tasks.${a.done}`)}}),r(I,{gap:"$2",flexWrap:"wrap",get children(){return[r(v,{get when(){return a.done==="done"},get children(){return[r(u,{colorScheme:"accent",get loading(){return T()},onClick:o,get children(){return s("global.refresh")}}),r(u,{get loading(){return se()},onClick:async()=>{const e=await ce();y(e,()=>o())},get children(){return s("tasks.retry_failed")}}),r(u,{colorScheme:"danger",get loading(){return te()},onClick:async()=>{const e=await re();y(e,()=>o())},get children(){return s("global.clear")}}),r(u,{colorScheme:"success",get loading(){return ne()},onClick:async()=>{const e=await ae();y(e,()=>o())},get children(){return s("tasks.clear_succeeded")}})]}}),r(v,{get when(){return a.canRetry},get children(){return r(u,{colorScheme:"primary",get loading(){return pe()},onClick:async()=>{const e=await fe();y(e,t=>{W(t),o()})},get children(){return s("tasks.retry_selected")}})}}),r(u,{colorScheme:"warning",get loading(){return ye()},onClick:async()=>{const e=await we();y(e,t=>{W(t),o()})},get children(){return s(`tasks.${H}_selected`)}}),r(_e,{width:"auto",get placeholder(){return s("tasks.filter")},get value(){return B()},onInput:e=>le(e.target.value),get invalid(){return de()}}),r(v,{get when(){return x().role===2},get children(){return r(G,{get checked(){return E()},onChange:e=>ge(e.target.checked),get children(){return s("tasks.show_only_mine")}})}})]}}),r(F,{w:{"@initial":"1024px","@lg":"$full"},overflowX:"auto",shadow:"$md",rounded:"$lg",spacing:"$1",p:"$1",get children(){return[r(I,{class:"title",w:"$full",p:"$2",get children(){return[r(I,{get w(){return n[0].w},spacing:"$1",get children(){return[r(G,{get disabled(){return i().length===0},get checked(){return O()},get indeterminate(){return ue()},onChange:e=>he(e.target.checked)}),r(w,h(()=>m(n[0]),()=>S(n[0]),{get children(){return s(`tasks.attr.${n[0].name}`)}}))]}}),r(v,{get when(){return x().role===2},get children(){return r(w,h({get w(){return n[1].w}},()=>m(n[1]),()=>S(n[1]),{get children(){return s(`tasks.attr.${n[1].name}`)}}))}}),r(w,h({get w(){return n[2].w}},()=>m(n[2]),()=>S(n[2]),{get children(){return s(`tasks.attr.${n[2].name}`)}})),r(w,h({get w(){return n[3].w}},()=>m(n[3]),()=>S(n[3]),{get children(){return s(`tasks.attr.${n[3].name}`)}})),r(w,h({get w(){return n[4].w}},()=>m(n[4]),{get children(){return s(`tasks.attr.${n[4].name}`)}})),r(Pe,{get w(){return n[5].w},gap:"$2",get children(){return[r(Re,{}),r(w,h(()=>m(n[5]),{get children(){return s(`tasks.attr.${n[5].name}`)}})),r(u,{size:"xs",colorScheme:"neutral",onClick:()=>me(!D()),get disabled(){return i().length===0},get children(){return Y(()=>!!D(),!0)()?s("tasks.fold_all"):s("tasks.expand_all")}})]}})]}}),Y(()=>Se().map(e=>r(Me,h(e,a,{get setLocal(){return xe(e.id)}}))))]}}),r(Le,{get total(){return i().length},defaultPageSize:_,onChange:e=>{ke(e)}})]}})},Oe=a=>{const s=J();return r(F,{w:"$full",alignItems:"start",spacing:"$4",get children(){return[r(K,{size:"xl",get children(){return s(`tasks.${a.type}`)}}),r(F,{w:"$full",spacing:"$2",get children(){return r(Fe,{each:["undone","done"],children:T=>r(be,{get type(){return a.type},done:T,get canRetry(){return a.canRetry},get nameAnalyzer(){return a.nameAnalyzer}})})}})]}})};export{Oe as T};
1
+ import{b as J,y as r,bW as K,Y as F,a6 as Fe,ba as p,bq as f,C as d,B as g,x as Te,I as Ce,az as x,aw as z,S as v,R as u,a3 as y,N as _e,a0 as G,ar as w,a5 as h,bX as Pe,dA as Re,aG as Y,n as Ie,F as ze}from"./index-6e98aa26.js";import{P as Le}from"./Paginator-33b3808f.js";import{c as n,a as Me}from"./Task-ee12c6df.js";const be=a=>{const s=J(),[T,Q]=p(()=>f.get(`/task/${a.type}/${a.done}`)),[$,k]=d([]),[L,U]=d("name"),[M,b]=d(!1),Z={name:(e,t)=>e.name>t.name?1:-1,creator:(e,t)=>e.creator===t.creator?e.id>t.id?1:-1:e.creator>t.creator?1:-1,state:(e,t)=>e.state===t.state?e.id>t.id?1:-1:e.state>t.state?1:-1,progress:(e,t)=>e.progress===t.progress?e.id>t.id?1:-1:e.progress<t.progress?1:-1},ee=g(()=>(e,t)=>(M()?-1:1)*Z[L()](e,t)),o=async()=>{const e=await Q();y(e,t=>{const l=new Date().getTime(),N={},X={},P={},j={},q={};for(const c of $())N[c.id]=c.curFetchTime,X[c.id]=c.prevFetchTime,P[c.id]=c.progress,j[c.id]=c.prevProgress,q[c.id]=c.local;k((t==null?void 0:t.map(c=>{let R,I;c.progress===P[c.id]?(R=X[c.id],I=j[c.id]):(R=N[c.id],I=P[c.id]);const ve=q[c.id]??{selected:!1,expanded:!1};return{...c,curFetchTime:l,prevFetchTime:R,prevProgress:I,local:ve}}).sort(ee()))??[])})};if(o(),a.done==="undone"){const e=setInterval(o,2e3);Te(()=>clearInterval(e))}const[te,re]=p(()=>f.post(`/task/${a.type}/clear_done`)),[ne,ae]=p(()=>f.post(`/task/${a.type}/clear_succeeded`)),[se,ce]=p(()=>f.post(`/task/${a.type}/retry_failed`));console.log("props",a.type);const[A,le]=d(""),[oe,ie]=d(new RegExp("")),[de,B]=d(!1);Ce(()=>{try{ie(new RegExp(A())),B(!1)}catch{B(!0)}});const[E,ge]=d(x().role!==2),C=g(()=>{const e=oe(),t=E();return l=>e.test(l.name)&&(!t||l.creator===x().username)}),i=g(()=>$().filter(C())),O=g(()=>i().map(e=>e.local.selected).every(Boolean)),ue=g(()=>i().map(e=>e.local.selected).some(Boolean)&&!O()),he=e=>k($().map(t=>(C()(t)&&(t.local.selected=e),t))),D=g(()=>i().map(e=>e.local.expanded).every(Boolean)),me=e=>k($().map(t=>(C()(t)&&(t.local.expanded=e),t))),V=()=>i().filter(e=>e.local.selected).map(e=>e.id),[pe,fe]=p(()=>f.post(`/task/${a.type}/retry_some`,V())),[ye,we]=p(()=>f.post(`/task/${a.type}/${H}_some`,V())),W=e=>{Object.entries(e).forEach(([t,l])=>{Ie.error(`${t}: ${l}`)})},[$e,ke]=d(1),_=20,H=a.done==="undone"?"cancel":"delete",Se=g(()=>{const e=($e()-1)*_,t=e+_;return i().slice(e,t)}),m=e=>({fontWeight:"bold",fontSize:"$sm",color:"$neutral11",textAlign:e.textAlign}),S=e=>({cursor:"pointer",onClick:()=>{L()===e.name?b(!M()):ze(()=>{U(e.name),b(!1)}),o()}}),xe=e=>t=>k($().map(l=>(l.id===e&&(l.local=t),l)));return r(F,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[r(K,{size:"lg",get children(){return s(`tasks.${a.done}`)}}),r(z,{gap:"$2",flexWrap:"wrap",get children(){return[r(v,{get when(){return a.done==="done"},get children(){return[r(u,{colorScheme:"accent",get loading(){return T()},onClick:o,get children(){return s("global.refresh")}}),r(u,{get loading(){return se()},onClick:async()=>{const e=await ce();y(e,()=>o())},get children(){return s("tasks.retry_failed")}}),r(u,{colorScheme:"danger",get loading(){return te()},onClick:async()=>{const e=await re();y(e,()=>o())},get children(){return s("global.clear")}}),r(u,{colorScheme:"success",get loading(){return ne()},onClick:async()=>{const e=await ae();y(e,()=>o())},get children(){return s("tasks.clear_succeeded")}})]}}),r(v,{get when(){return a.canRetry},get children(){return r(u,{colorScheme:"primary",get loading(){return pe()},onClick:async()=>{const e=await fe();y(e,t=>{W(t),o()})},get children(){return s("tasks.retry_selected")}})}}),r(u,{colorScheme:"warning",get loading(){return ye()},onClick:async()=>{const e=await we();y(e,t=>{W(t),o()})},get children(){return s(`tasks.${H}_selected`)}}),r(_e,{width:"auto",get placeholder(){return s("tasks.filter")},get value(){return A()},onInput:e=>le(e.target.value),get invalid(){return de()}}),r(v,{get when(){return x().role===2},get children(){return r(G,{get checked(){return E()},onChange:e=>ge(e.target.checked),get children(){return s("tasks.show_only_mine")}})}})]}}),r(F,{w:{"@initial":"1024px","@lg":"$full"},overflowX:"auto",shadow:"$md",rounded:"$lg",spacing:"$1",p:"$1",get children(){return[r(z,{class:"title",w:"$full",p:"$2",get children(){return[r(z,{get w(){return n[0].w},spacing:"$1",get children(){return[r(G,{get disabled(){return i().length===0},get checked(){return O()},get indeterminate(){return ue()},onChange:e=>he(e.target.checked)}),r(w,h(()=>m(n[0]),()=>S(n[0]),{get children(){return s(`tasks.attr.${n[0].name}`)}}))]}}),r(v,{get when(){return x().role===2},get children(){return r(w,h({get w(){return n[1].w}},()=>m(n[1]),()=>S(n[1]),{get children(){return s(`tasks.attr.${n[1].name}`)}}))}}),r(w,h({get w(){return n[2].w}},()=>m(n[2]),()=>S(n[2]),{get children(){return s(`tasks.attr.${n[2].name}`)}})),r(w,h({get w(){return n[3].w}},()=>m(n[3]),()=>S(n[3]),{get children(){return s(`tasks.attr.${n[3].name}`)}})),r(w,h({get w(){return n[4].w}},()=>m(n[4]),{get children(){return s(`tasks.attr.${n[4].name}`)}})),r(Pe,{get w(){return n[5].w},gap:"$2",get children(){return[r(Re,{}),r(w,h(()=>m(n[5]),{get children(){return s(`tasks.attr.${n[5].name}`)}})),r(u,{size:"xs",colorScheme:"neutral",onClick:()=>me(!D()),get disabled(){return i().length===0},get children(){return Y(()=>!!D(),!0)()?s("tasks.fold_all"):s("tasks.expand_all")}})]}})]}}),Y(()=>Se().map(e=>r(Me,h(e,a,{get setLocal(){return xe(e.id)}}))))]}}),r(Le,{get total(){return i().length},defaultPageSize:_,onChange:e=>{ke(e)}})]}})},Oe=a=>{const s=J();return r(F,{w:"$full",alignItems:"start",spacing:"$4",get children(){return[r(K,{size:"xl",get children(){return s(`tasks.${a.type}`)}}),r(F,{w:"$full",spacing:"$2",get children(){return r(Fe,{each:["undone","done"],children:T=>r(be,{get type(){return a.type},done:T,get canRetry(){return a.canRetry},get nameAnalyzer(){return a.nameAnalyzer}})})}})]}})};export{Oe as T};
@@ -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",c=i.asyncIterator||"@@asyncIterator",u=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(_){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 L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=k(a,r);if(c){if(c===h)continue;return c}}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 u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(_){return{type:"throw",arg:_}}}r.wrap=s;var h={};function d(){}function p(){}function g(){}var y={};l(y,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(E([])));m&&m!==n&&o.call(m,a)&&(y=m);var w=g.prototype=d.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,c,u){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,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(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 O(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function E(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:L}}function L(){return{value:void 0,done:!0}}return p.prototype=g,l(w,"constructor",g),l(g,"constructor",p),p.displayName=l(g,u,"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,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(s(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 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=E,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(S),!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 c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)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),S(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;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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 i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function a(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void r(l)}c.done?e(u):Promise.resolve(u).then(n,o)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){a(i,n,o,c,u,"next",t)}function u(t){a(i,n,o,c,u,"throw",t)}c(void 0)}))}}function u(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,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||l(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 l(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}function s(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.cdce98e1.js","./Paginator-legacy.20830174.js","./Task-legacy.bef00b05.js"],(function(t,r){"use strict";var o,a,l,s,f,h,d,p,g,y,v,m,w,b,x,k,O,S,j,E,L,_,P,$,A,I,T,C;return{setters:[function(t){o=t.b,a=t.y,l=t.bW,s=t.Y,f=t.a6,h=t.ba,d=t.bq,p=t.C,g=t.B,y=t.x,v=t.I,m=t.az,w=t.aw,b=t.S,x=t.R,k=t.a3,O=t.N,S=t.a0,j=t.ar,E=t.a5,L=t.bX,_=t.dz,P=t.aG,$=t.n,A=t.F},function(t){I=t.P},function(t){T=t.c,C=t.a}],execute:function(){var r=function(t){var r=o(),f=u(h((function(){return d.get("/task/".concat(t.type,"/").concat(t.done))})),2),F=f[0],z=f[1],G=u(p([]),2),N=G[0],R=G[1],D=u(p("name"),2),B=D[0],W=D[1],Y=u(p(!1),2),X=Y[0],q=Y[1],M={name:function(t,e){return t.name>e.name?1:-1},creator:function(t,e){return t.creator===e.creator?t.id>e.id?1:-1:t.creator>e.creator?1:-1},state:function(t,e){return t.state===e.state?t.id>e.id?1:-1:t.state>e.state?1:-1},progress:function(t,e){return t.progress===e.progress?t.id>e.id?1:-1:t.progress<e.progress?1:-1}},U=g((function(){return function(t,e){return(X()?-1:1)*M[B()](t,e)}})),H=function(){var t=c(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,z();case 2:r=t.sent,k(r,(function(t){var e,r,o=(new Date).getTime(),a={},c={},u={},l={},s={},f=i(N());try{for(f.s();!(r=f.n()).done;){var h=r.value;a[h.id]=h.curFetchTime,c[h.id]=h.prevFetchTime,u[h.id]=h.progress,l[h.id]=h.prevProgress,s[h.id]=h.local}}catch(d){f.e(d)}finally{f.f()}R(null!==(e=null==t?void 0:t.map((function(t){var e,r,i;t.progress===u[t.id]?(r=c[t.id],i=l[t.id]):(r=a[t.id],i=u[t.id]);var f=null!==(e=s[t.id])&&void 0!==e?e:{selected:!1,expanded:!1};return n(n({},t),{},{curFetchTime:o,prevFetchTime:r,prevProgress:i,local:f})})).sort(U()))&&void 0!==e?e:[])}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();if(H(),"undone"===t.done){var J=setInterval(H,2e3);y((function(){return clearInterval(J)}))}var K=u(h((function(){return d.post("/task/".concat(t.type,"/clear_done"))})),2),Q=K[0],V=K[1],Z=u(h((function(){return d.post("/task/".concat(t.type,"/clear_succeeded"))})),2),tt=Z[0],et=Z[1],rt=u(h((function(){return d.post("/task/".concat(t.type,"/retry_failed"))})),2),nt=rt[0],ot=rt[1];console.log("props",t.type);var it=u(p(""),2),at=it[0],ct=it[1],ut=u(p(new RegExp("")),2),lt=ut[0],st=ut[1],ft=u(p(!1),2),ht=ft[0],dt=ft[1];v((function(){try{st(new RegExp(at())),dt(!1)}catch(t){dt(!0)}}));var pt=u(p(2!==m().role),2),gt=pt[0],yt=pt[1],vt=g((function(){var t=lt(),e=gt();return function(r){return t.test(r.name)&&(!e||r.creator===m().username)}})),mt=g((function(){return N().filter(vt())})),wt=g((function(){return mt().map((function(t){return t.local.selected})).every(Boolean)})),bt=g((function(){return mt().map((function(t){return t.local.selected})).some(Boolean)&&!wt()})),xt=g((function(){return mt().map((function(t){return t.local.expanded})).every(Boolean)})),kt=function(){return mt().filter((function(t){return t.local.selected})).map((function(t){return t.id}))},Ot=u(h((function(){return d.post("/task/".concat(t.type,"/retry_some"),kt())})),2),St=Ot[0],jt=Ot[1],Et=u(h((function(){return d.post("/task/".concat(t.type,"/").concat(Tt,"_some"),kt())})),2),Lt=Et[0],_t=Et[1],Pt=function(t){Object.entries(t).forEach((function(t){var e=u(t,2),r=e[0],n=e[1];$.error("".concat(r,": ").concat(n))}))},$t=u(p(1),2),At=$t[0],It=$t[1],Tt="undone"===t.done?"cancel":"delete",Ct=g((function(){var t=20*(At()-1),e=t+20;return mt().slice(t,e)})),Ft=function(t){return{fontWeight:"bold",fontSize:"$sm",color:"$neutral11",textAlign:t.textAlign}},zt=function(t){return{cursor:"pointer",onClick:function(){B()===t.name?q(!X()):A((function(){W(t.name),q(!1)})),H()}}};return a(s,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[a(l,{size:"lg",get children(){return r("tasks.".concat(t.done))}}),a(w,{gap:"$2",flexWrap:"wrap",get children(){return[a(b,{get when(){return"done"===t.done},get children(){return[a(x,{colorScheme:"accent",get loading(){return F()},onClick:H,get children(){return r("global.refresh")}}),a(x,{get loading(){return nt()},onClick:(o=c(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ot();case 2:r=t.sent,k(r,(function(){return H()}));case 4:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),get children(){return r("tasks.retry_failed")}}),a(x,{colorScheme:"danger",get loading(){return Q()},onClick:(n=c(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,V();case 2:r=t.sent,k(r,(function(){return H()}));case 4:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)}),get children(){return r("global.clear")}}),a(x,{colorScheme:"success",get loading(){return tt()},onClick:(t=c(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,k(r,(function(){return H()}));case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)}),get children(){return r("tasks.clear_succeeded")}})];var t,n,o}}),a(b,{get when(){return t.canRetry},get children(){return a(x,{colorScheme:"primary",get loading(){return St()},onClick:(t=c(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jt();case 2:r=t.sent,k(r,(function(t){Pt(t),H()}));case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)}),get children(){return r("tasks.retry_selected")}});var t}}),a(x,{colorScheme:"warning",get loading(){return Lt()},onClick:(n=c(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_t();case 2:r=t.sent,k(r,(function(t){Pt(t),H()}));case 4:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)}),get children(){return r("tasks.".concat(Tt,"_selected"))}}),a(O,{width:"auto",get placeholder(){return r("tasks.filter")},get value(){return at()},onInput:function(t){return ct(t.target.value)},get invalid(){return ht()}}),a(b,{get when(){return 2===m().role},get children(){return a(S,{get checked(){return gt()},onChange:function(t){return yt(t.target.checked)},get children(){return r("tasks.show_only_mine")}})}})];var n}}),a(s,{w:{"@initial":"1024px","@lg":"$full"},overflowX:"auto",shadow:"$md",rounded:"$lg",spacing:"$1",p:"$1",get children(){return[a(w,{class:"title",w:"$full",p:"$2",get children(){return[a(w,{get w(){return T[0].w},spacing:"$1",get children(){return[a(S,{get disabled(){return 0===mt().length},get checked(){return wt()},get indeterminate(){return bt()},onChange:function(t){return e=t.target.checked,R(N().map((function(t){return vt()(t)&&(t.local.selected=e),t})));var e}}),a(j,E((function(){return Ft(T[0])}),(function(){return zt(T[0])}),{get children(){return r("tasks.attr.".concat(T[0].name))}}))]}}),a(b,{get when(){return 2===m().role},get children(){return a(j,E({get w(){return T[1].w}},(function(){return Ft(T[1])}),(function(){return zt(T[1])}),{get children(){return r("tasks.attr.".concat(T[1].name))}}))}}),a(j,E({get w(){return T[2].w}},(function(){return Ft(T[2])}),(function(){return zt(T[2])}),{get children(){return r("tasks.attr.".concat(T[2].name))}})),a(j,E({get w(){return T[3].w}},(function(){return Ft(T[3])}),(function(){return zt(T[3])}),{get children(){return r("tasks.attr.".concat(T[3].name))}})),a(j,E({get w(){return T[4].w}},(function(){return Ft(T[4])}),{get children(){return r("tasks.attr.".concat(T[4].name))}})),a(L,{get w(){return T[5].w},gap:"$2",get children(){return[a(_,{}),a(j,E((function(){return Ft(T[5])}),{get children(){return r("tasks.attr.".concat(T[5].name))}})),a(x,{size:"xs",colorScheme:"neutral",onClick:function(){return t=!xt(),R(N().map((function(e){return vt()(e)&&(e.local.expanded=t),e})));var t},get disabled(){return 0===mt().length},get children(){return P((function(){return!!xt()}),!0)()?r("tasks.fold_all"):r("tasks.expand_all")}})]}})]}}),P((function(){return Ct().map((function(e){return a(C,E(e,t,{get setLocal(){return t=e.id,function(e){return R(N().map((function(r){return r.id===t&&(r.local=e),r})))};var t}}))}))}))]}}),a(I,{get total(){return mt().length},defaultPageSize:20,onChange:function(t){It(t)}})]}})};t("T",(function(t){var e=o();return a(s,{w:"$full",alignItems:"start",spacing:"$4",get children(){return[a(l,{size:"xl",get children(){return e("tasks.".concat(t.type))}}),a(s,{w:"$full",spacing:"$2",get children(){return a(f,{each:["undone","done"],children:function(e){return a(r,{get type(){return t.type},done:e,get canRetry(){return t.canRetry},get nameAnalyzer(){return t.nameAnalyzer}})}})}})]}})}))}}}))}();
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",c=i.asyncIterator||"@@asyncIterator",u=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(_){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 L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=k(a,r);if(c){if(c===h)continue;return c}}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 u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(_){return{type:"throw",arg:_}}}r.wrap=s;var h={};function d(){}function p(){}function g(){}var y={};l(y,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(E([])));m&&m!==n&&o.call(m,a)&&(y=m);var w=g.prototype=d.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,c,u){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,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(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 O(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function E(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:L}}function L(){return{value:void 0,done:!0}}return p.prototype=g,l(w,"constructor",g),l(g,"constructor",p),p.displayName=l(g,u,"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,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(s(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 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=E,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(S),!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 c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)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),S(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;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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 i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function a(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void r(l)}c.done?e(u):Promise.resolve(u).then(n,o)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){a(i,n,o,c,u,"next",t)}function u(t){a(i,n,o,c,u,"throw",t)}c(void 0)}))}}function u(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,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||l(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 l(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}function s(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.0569de56.js","./Paginator-legacy.0bcc0a06.js","./Task-legacy.993c84aa.js"],(function(t,r){"use strict";var o,a,l,s,f,h,d,p,g,y,v,m,w,b,x,k,O,S,j,E,L,_,P,$,A,I,T,C;return{setters:[function(t){o=t.b,a=t.y,l=t.bW,s=t.Y,f=t.a6,h=t.ba,d=t.bq,p=t.C,g=t.B,y=t.x,v=t.I,m=t.az,w=t.aw,b=t.S,x=t.R,k=t.a3,O=t.N,S=t.a0,j=t.ar,E=t.a5,L=t.bX,_=t.dA,P=t.aG,$=t.n,A=t.F},function(t){I=t.P},function(t){T=t.c,C=t.a}],execute:function(){var r=function(t){var r=o(),f=u(h((function(){return d.get("/task/".concat(t.type,"/").concat(t.done))})),2),F=f[0],G=f[1],N=u(p([]),2),z=N[0],R=N[1],D=u(p("name"),2),B=D[0],W=D[1],Y=u(p(!1),2),X=Y[0],q=Y[1],M={name:function(t,e){return t.name>e.name?1:-1},creator:function(t,e){return t.creator===e.creator?t.id>e.id?1:-1:t.creator>e.creator?1:-1},state:function(t,e){return t.state===e.state?t.id>e.id?1:-1:t.state>e.state?1:-1},progress:function(t,e){return t.progress===e.progress?t.id>e.id?1:-1:t.progress<e.progress?1:-1}},U=g((function(){return function(t,e){return(X()?-1:1)*M[B()](t,e)}})),H=function(){var t=c(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,G();case 2:r=t.sent,k(r,(function(t){var e,r,o=(new Date).getTime(),a={},c={},u={},l={},s={},f=i(z());try{for(f.s();!(r=f.n()).done;){var h=r.value;a[h.id]=h.curFetchTime,c[h.id]=h.prevFetchTime,u[h.id]=h.progress,l[h.id]=h.prevProgress,s[h.id]=h.local}}catch(d){f.e(d)}finally{f.f()}R(null!==(e=null==t?void 0:t.map((function(t){var e,r,i;t.progress===u[t.id]?(r=c[t.id],i=l[t.id]):(r=a[t.id],i=u[t.id]);var f=null!==(e=s[t.id])&&void 0!==e?e:{selected:!1,expanded:!1};return n(n({},t),{},{curFetchTime:o,prevFetchTime:r,prevProgress:i,local:f})})).sort(U()))&&void 0!==e?e:[])}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();if(H(),"undone"===t.done){var J=setInterval(H,2e3);y((function(){return clearInterval(J)}))}var K=u(h((function(){return d.post("/task/".concat(t.type,"/clear_done"))})),2),Q=K[0],V=K[1],Z=u(h((function(){return d.post("/task/".concat(t.type,"/clear_succeeded"))})),2),tt=Z[0],et=Z[1],rt=u(h((function(){return d.post("/task/".concat(t.type,"/retry_failed"))})),2),nt=rt[0],ot=rt[1];console.log("props",t.type);var it=u(p(""),2),at=it[0],ct=it[1],ut=u(p(new RegExp("")),2),lt=ut[0],st=ut[1],ft=u(p(!1),2),ht=ft[0],dt=ft[1];v((function(){try{st(new RegExp(at())),dt(!1)}catch(t){dt(!0)}}));var pt=u(p(2!==m().role),2),gt=pt[0],yt=pt[1],vt=g((function(){var t=lt(),e=gt();return function(r){return t.test(r.name)&&(!e||r.creator===m().username)}})),mt=g((function(){return z().filter(vt())})),wt=g((function(){return mt().map((function(t){return t.local.selected})).every(Boolean)})),bt=g((function(){return mt().map((function(t){return t.local.selected})).some(Boolean)&&!wt()})),xt=g((function(){return mt().map((function(t){return t.local.expanded})).every(Boolean)})),kt=function(){return mt().filter((function(t){return t.local.selected})).map((function(t){return t.id}))},Ot=u(h((function(){return d.post("/task/".concat(t.type,"/retry_some"),kt())})),2),St=Ot[0],jt=Ot[1],Et=u(h((function(){return d.post("/task/".concat(t.type,"/").concat(Tt,"_some"),kt())})),2),Lt=Et[0],_t=Et[1],Pt=function(t){Object.entries(t).forEach((function(t){var e=u(t,2),r=e[0],n=e[1];$.error("".concat(r,": ").concat(n))}))},$t=u(p(1),2),At=$t[0],It=$t[1],Tt="undone"===t.done?"cancel":"delete",Ct=g((function(){var t=20*(At()-1),e=t+20;return mt().slice(t,e)})),Ft=function(t){return{fontWeight:"bold",fontSize:"$sm",color:"$neutral11",textAlign:t.textAlign}},Gt=function(t){return{cursor:"pointer",onClick:function(){B()===t.name?q(!X()):A((function(){W(t.name),q(!1)})),H()}}};return a(s,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[a(l,{size:"lg",get children(){return r("tasks.".concat(t.done))}}),a(w,{gap:"$2",flexWrap:"wrap",get children(){return[a(b,{get when(){return"done"===t.done},get children(){return[a(x,{colorScheme:"accent",get loading(){return F()},onClick:H,get children(){return r("global.refresh")}}),a(x,{get loading(){return nt()},onClick:(o=c(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ot();case 2:r=t.sent,k(r,(function(){return H()}));case 4:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),get children(){return r("tasks.retry_failed")}}),a(x,{colorScheme:"danger",get loading(){return Q()},onClick:(n=c(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,V();case 2:r=t.sent,k(r,(function(){return H()}));case 4:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)}),get children(){return r("global.clear")}}),a(x,{colorScheme:"success",get loading(){return tt()},onClick:(t=c(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,k(r,(function(){return H()}));case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)}),get children(){return r("tasks.clear_succeeded")}})];var t,n,o}}),a(b,{get when(){return t.canRetry},get children(){return a(x,{colorScheme:"primary",get loading(){return St()},onClick:(t=c(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jt();case 2:r=t.sent,k(r,(function(t){Pt(t),H()}));case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)}),get children(){return r("tasks.retry_selected")}});var t}}),a(x,{colorScheme:"warning",get loading(){return Lt()},onClick:(n=c(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_t();case 2:r=t.sent,k(r,(function(t){Pt(t),H()}));case 4:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)}),get children(){return r("tasks.".concat(Tt,"_selected"))}}),a(O,{width:"auto",get placeholder(){return r("tasks.filter")},get value(){return at()},onInput:function(t){return ct(t.target.value)},get invalid(){return ht()}}),a(b,{get when(){return 2===m().role},get children(){return a(S,{get checked(){return gt()},onChange:function(t){return yt(t.target.checked)},get children(){return r("tasks.show_only_mine")}})}})];var n}}),a(s,{w:{"@initial":"1024px","@lg":"$full"},overflowX:"auto",shadow:"$md",rounded:"$lg",spacing:"$1",p:"$1",get children(){return[a(w,{class:"title",w:"$full",p:"$2",get children(){return[a(w,{get w(){return T[0].w},spacing:"$1",get children(){return[a(S,{get disabled(){return 0===mt().length},get checked(){return wt()},get indeterminate(){return bt()},onChange:function(t){return e=t.target.checked,R(z().map((function(t){return vt()(t)&&(t.local.selected=e),t})));var e}}),a(j,E((function(){return Ft(T[0])}),(function(){return Gt(T[0])}),{get children(){return r("tasks.attr.".concat(T[0].name))}}))]}}),a(b,{get when(){return 2===m().role},get children(){return a(j,E({get w(){return T[1].w}},(function(){return Ft(T[1])}),(function(){return Gt(T[1])}),{get children(){return r("tasks.attr.".concat(T[1].name))}}))}}),a(j,E({get w(){return T[2].w}},(function(){return Ft(T[2])}),(function(){return Gt(T[2])}),{get children(){return r("tasks.attr.".concat(T[2].name))}})),a(j,E({get w(){return T[3].w}},(function(){return Ft(T[3])}),(function(){return Gt(T[3])}),{get children(){return r("tasks.attr.".concat(T[3].name))}})),a(j,E({get w(){return T[4].w}},(function(){return Ft(T[4])}),{get children(){return r("tasks.attr.".concat(T[4].name))}})),a(L,{get w(){return T[5].w},gap:"$2",get children(){return[a(_,{}),a(j,E((function(){return Ft(T[5])}),{get children(){return r("tasks.attr.".concat(T[5].name))}})),a(x,{size:"xs",colorScheme:"neutral",onClick:function(){return t=!xt(),R(z().map((function(e){return vt()(e)&&(e.local.expanded=t),e})));var t},get disabled(){return 0===mt().length},get children(){return P((function(){return!!xt()}),!0)()?r("tasks.fold_all"):r("tasks.expand_all")}})]}})]}}),P((function(){return Ct().map((function(e){return a(C,E(e,t,{get setLocal(){return t=e.id,function(e){return R(z().map((function(r){return r.id===t&&(r.local=e),r})))};var t}}))}))}))]}}),a(I,{get total(){return mt().length},defaultPageSize:20,onChange:function(t){It(t)}})]}})};t("T",(function(t){var e=o();return a(s,{w:"$full",alignItems:"start",spacing:"$4",get children(){return[a(l,{size:"xl",get children(){return e("tasks.".concat(t.type))}}),a(s,{w:"$full",spacing:"$2",get children(){return a(f,{each:["undone","done"],children:function(e){return a(r,{get type(){return t.type},done:e,get canRetry(){return t.canRetry},get nameAnalyzer(){return t.nameAnalyzer}})}})}})]}})}))}}}))}();
@@ -0,0 +1 @@
1
+ import{b as e,y as r}from"./index-6e98aa26.js";import{b as o}from"./useTitle-f9295ffa.js";import{T as p}from"./Tasks-da5c9e10.js";import{b as s}from"./helper-ab5aae32.js";import"./Paginator-33b3808f.js";import"./index-aa5a83eb.js";import"./Task-ee12c6df.js";const g=()=>{const a=e();return o("manage.sidemenu.upload"),r(p,{type:"upload",canRetry:!0,get nameAnalyzer(){return{regex:/^upload (.+) to \[(.+)]\((.+)\)$/,title:t=>t[1],attrs:{[a("tasks.attr.upload.path")]:t=>s(t[2],t[3])}}}})};export{g as default};
@@ -1,4 +1,4 @@
1
- import{_ as CA,bq as IA,an as qA,b as sA,d as hA,a4 as zA,C as U,dd as kA,x as pA,y as Q,S,aw as m,R as P,ac as yA,a6 as RA,N as cA,Y as _,aD as $,n as uA,bW as QA,av as JA,bs as GA,ci as nA,a0 as b,ar as O,cI as EA,aG as HA,de as fA,df as SA,dg as MA,j as UA}from"./index-b0560a31.js";import{b as XA,c as xA}from"./index-e2343554.js";import{T as mA}from"./Task-305456a7.js";async function*wA(A,g,I){const e=new Set;async function n(){const[E,t]=await Promise.race(e);return e.delete(E),t}for(const E of g){const t=(async()=>await I(E,g))().then(y=>[t,y]);e.add(t),e.size>=A&&(yield await n())}for(;e.size;)yield await n()}const VA={pending:"neutral",uploading:"info",backending:"info",success:"success",error:"danger"};/*!
1
+ import{_ as CA,bq as IA,an as qA,b as sA,d as hA,a4 as zA,C as U,de as kA,x as pA,y as Q,S,aw as m,R as P,ac as yA,a6 as RA,N as cA,Y as _,aD as $,n as uA,bW as QA,av as JA,bs as GA,ci as nA,a0 as b,ar as O,cJ as EA,aG as HA,df as fA,dg as SA,dh as MA,j as UA}from"./index-6e98aa26.js";import{b as XA,c as xA}from"./index-6e2f0655.js";import{T as mA}from"./Task-ee12c6df.js";async function*wA(A,g,I){const e=new Set;async function n(){const[E,t]=await Promise.race(e);return e.delete(E),t}for(const E of g){const t=(async()=>await I(E,g))().then(y=>[t,y]);e.add(t),e.size>=A&&(yield await n())}for(;e.size;)yield await n()}const VA={pending:"neutral",uploading:"info",backending:"info",success:"success",error:"danger"};/*!
2
2
  * hash-wasm (https://www.npmjs.com/package/hash-wasm)
3
3
  * (c) Dani Biro
4
4
  * @license MIT
@@ -1 +1 @@
1
- System.register(["./index-legacy.cdce98e1.js","./useTitle-legacy.b3b2613b.js","./Tasks-legacy.e4e4be39.js","./helper-legacy.ecf72a12.js","./Paginator-legacy.20830174.js","./index-legacy.a2e25f9b.js","./Task-legacy.bef00b05.js"],(function(e,t){"use strict";var n,a,r,u,l;return{setters:[function(e){n=e.b,a=e.y},function(e){r=e.b},function(e){u=e.T},function(e){l=e.b},null,null,null],execute:function(){e("default",(function(){var e=n();return r("manage.sidemenu.upload"),a(u,{type:"upload",canRetry:!0,get nameAnalyzer(){return{regex:/^upload (.+) to \[(.+)]\((.+)\)$/,title:function(e){return e[1]},attrs:(t={},n=e("tasks.attr.upload.path"),a=function(e){return l(e[2],e[3])},n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t)};var t,n,a}})}))}}}));
1
+ System.register(["./index-legacy.0569de56.js","./useTitle-legacy.4c438d1f.js","./Tasks-legacy.24f9634a.js","./helper-legacy.4304690b.js","./Paginator-legacy.0bcc0a06.js","./index-legacy.35059afc.js","./Task-legacy.993c84aa.js"],(function(e,t){"use strict";var n,a,r,u,l;return{setters:[function(e){n=e.b,a=e.y},function(e){r=e.b},function(e){u=e.T},function(e){l=e.b},null,null,null],execute:function(){e("default",(function(){var e=n();return r("manage.sidemenu.upload"),a(u,{type:"upload",canRetry:!0,get nameAnalyzer(){return{regex:/^upload (.+) to \[(.+)]\((.+)\)$/,title:function(e){return e[1]},attrs:(t={},n=e("tasks.attr.upload.path"),a=function(e){return l(e[2],e[3])},n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t)};var t,n,a}})}))}}}));