@openlist-frontend/openlist-frontend 4.0.9 → 4.1.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 (514) hide show
  1. package/dist/VERSION +1 -1
  2. package/dist/assets/{2fa-2cc2atzU.js → 2fa-QoYFzgIF.js} +1 -1
  3. package/dist/assets/{2fa-legacy-Bv6NDiiZ.js → 2fa-legacy-DAkfvuaM.js} +1 -1
  4. package/dist/assets/About-B7Kvo1aB.js +1 -0
  5. package/dist/assets/{About-legacy-QsfCSVxq.js → About-legacy-DVj51Yvw.js} +1 -1
  6. package/dist/assets/AddOrEdit-BO6ufF5N.js +1 -0
  7. package/dist/assets/{AddOrEdit-B2PSnD-9.js → AddOrEdit-BnhxwceZ.js} +1 -1
  8. package/dist/assets/{AddOrEdit-DKPH7EZ_.js → AddOrEdit-DjfJsYrk.js} +1 -1
  9. package/dist/assets/{AddOrEdit-legacy-DxIDnAk7.js → AddOrEdit-legacy-Bg4C0OQU.js} +1 -1
  10. package/dist/assets/{AddOrEdit-legacy-COHYBFCt.js → AddOrEdit-legacy-CyctaWfp.js} +1 -1
  11. package/dist/assets/AddOrEdit-legacy-f8K0IUMl.js +1 -0
  12. package/dist/assets/Common-Dpk1gc-_.js +1 -0
  13. package/dist/assets/Common-legacy-BmK8ewzu.js +1 -0
  14. package/dist/assets/{Copy-CENvweJK.js → Copy-CqqotY0z.js} +1 -1
  15. package/dist/assets/{Copy-legacy-D_8otiMK.js → Copy-legacy-BruqHTeV.js} +1 -1
  16. package/dist/assets/Decompress-DLkWzQ3S.js +1 -0
  17. package/dist/assets/{Decompress-legacy-Dv_Jku2u.js → Decompress-legacy-DAB5qPVJ.js} +1 -1
  18. package/dist/assets/{DeletePopover-BFBUMopn.js → DeletePopover-CJe1R9Ss.js} +1 -1
  19. package/dist/assets/{DeletePopover-legacy-BEDnzn-m.js → DeletePopover-legacy-DXKXbGri.js} +1 -1
  20. package/dist/assets/{File-DOBK5V8m.js → File-Dfqdcr_u.js} +2 -2
  21. package/dist/assets/{File-legacy-D1ODACuv.js → File-legacy-CQVS1Vpk.js} +1 -1
  22. package/dist/assets/{Folder-CGWdNP6D.js → Folder-1H_XPHli.js} +3 -3
  23. package/dist/assets/{Folder-legacy-YsG9JF-C.js → Folder-legacy-DBPPt3z3.js} +2 -2
  24. package/dist/assets/FolderTree-legacy-BSV4stNN.js +1 -0
  25. package/dist/assets/FolderTree-tZ6zUZ7j.js +1 -0
  26. package/dist/assets/Grid-BrJTEWW6.js +1 -0
  27. package/dist/assets/Grid-legacy-CmmbMWtK.js +1 -0
  28. package/dist/assets/GridItem-IiSsrrRE.js +1 -0
  29. package/dist/assets/GridItem-legacy-Dd_rurIk.js +1 -0
  30. package/dist/assets/{ImageWithError-gG_AK8KG.js → ImageWithError-CSUD2e5_.js} +1 -1
  31. package/dist/assets/{ImageWithError-legacy-B07XhroH.js → ImageWithError-legacy-bpUxh_rg.js} +1 -1
  32. package/dist/assets/Images-legacy-Bloy8aMr.js +1 -0
  33. package/dist/assets/Images-ohOuh-tZ.js +1 -0
  34. package/dist/assets/Layout-CTXbLLrz.js +6 -0
  35. package/dist/assets/Layout-legacy-BEddNSfP.js +6 -0
  36. package/dist/assets/List-CioFfC3F.js +1 -0
  37. package/dist/assets/List-legacy-3BnwxKd9.js +1 -0
  38. package/dist/assets/{Messenger-Dmz66wIv.js → Messenger-BwX5Ot-u.js} +1 -1
  39. package/dist/assets/{Messenger-legacy-DEa2mtGl.js → Messenger-legacy-BdURBipq.js} +1 -1
  40. package/dist/assets/{Metas-BV8fZzUC.js → Metas-C-KooGDN.js} +1 -1
  41. package/dist/assets/{Metas-legacy-Dsed9U0b.js → Metas-legacy-DNSLvcPZ.js} +1 -1
  42. package/dist/assets/{Move-CjmsQ4oK.js → Move-BmKqqWgw.js} +1 -1
  43. package/dist/assets/{Move-legacy-BJYFMCwm.js → Move-legacy-r10bw0e-.js} +1 -1
  44. package/dist/assets/Other-DvpG5x28.js +1 -0
  45. package/dist/assets/Other-legacy-CpHIszvT.js +1 -0
  46. package/dist/assets/PackageDownload-B9EgcsaJ.js +1 -0
  47. package/dist/assets/{PackageDownload-legacy-DghWe59X.js → PackageDownload-legacy-DSGHgtWt.js} +1 -1
  48. package/dist/assets/{Paginator-CfTq8QGy.js → Paginator-DRB7Z41C.js} +1 -1
  49. package/dist/assets/{Paginator-legacy-BBwW9rLz.js → Paginator-legacy-DTdrq2lp.js} +1 -1
  50. package/dist/assets/{Password-_jCVU1BX.js → Password-B11wTWqR.js} +1 -1
  51. package/dist/assets/{Password-legacy-B7VWpO0t.js → Password-legacy-BGfOD_8_.js} +1 -1
  52. package/dist/assets/{Profile-DQqzso6r.js → Profile-C1cliTl8.js} +1 -1
  53. package/dist/assets/{Profile-legacy-DxHXHWHS.js → Profile-legacy-GCM5na_Q.js} +1 -1
  54. package/dist/assets/{PublicKeys-BUewmKb-.js → PublicKeys-Bx-4Shpz.js} +1 -1
  55. package/dist/assets/{PublicKeys-legacy-L19QKXEm.js → PublicKeys-legacy-Dq05MCbe.js} +1 -1
  56. package/dist/assets/{ResponsiveGrid-DBqpPiu2.js → ResponsiveGrid-BoOhAULT.js} +1 -1
  57. package/dist/assets/{ResponsiveGrid-legacy-io27eqXp.js → ResponsiveGrid-legacy-1sf4PYbB.js} +1 -1
  58. package/dist/assets/{S3-Ue8_AwRX.js → S3-Do-y1BLJ.js} +1 -1
  59. package/dist/assets/{S3-legacy-BEIExV0a.js → S3-legacy-DpBe-p2k.js} +1 -1
  60. package/dist/assets/{SettingItem-CoyA-wst.js → SettingItem-CG5PkkHH.js} +1 -1
  61. package/dist/assets/{SettingItem-legacy-FkrTuUbn.js → SettingItem-legacy-B4Pb_Xz0.js} +1 -1
  62. package/dist/assets/{Storages-B0zOmRwd.js → Storages-C_m4s20G.js} +1 -1
  63. package/dist/assets/{Storages-legacy-CBl6TdCy.js → Storages-legacy-DXs5dP9Y.js} +1 -1
  64. package/dist/assets/{Upload-y6lHsBbS.js → Upload-CKRnF4DO.js} +1 -1
  65. package/dist/assets/{Upload-9DDOLajr.js → Upload-aH9yNoOD.js} +1 -1
  66. package/dist/assets/{Upload-legacy-uISx3f64.js → Upload-legacy-CxFEzbZB.js} +1 -1
  67. package/dist/assets/{Upload-legacy-BX35PWMt.js → Upload-legacy-Duci8WH8.js} +1 -1
  68. package/dist/assets/Users-BnHY9262.js +1 -0
  69. package/dist/assets/Users-legacy-_OwnC7o5.js +1 -0
  70. package/dist/assets/{Wether-enRDnS5x.js → Wether-CG_Kg5-q.js} +1 -1
  71. package/dist/assets/{Wether-legacy-CUYxMAIK.js → Wether-legacy-Bdidv3LZ.js} +1 -1
  72. package/dist/assets/{aliyun_office-4kFcJSQ7.js → aliyun_office-B1HBHrPf.js} +1 -1
  73. package/dist/assets/{aliyun_office-legacy-CeoV_l42.js → aliyun_office-legacy-DTmek5GS.js} +1 -1
  74. package/dist/{lite/assets/aliyun_video-b2790a1e.js → assets/aliyun_video-U-pLeC7E.js} +1 -1
  75. package/dist/assets/aliyun_video-legacy-DTBjmE9W.js +1 -0
  76. package/dist/assets/archive-DOr7Dqax.js +1 -0
  77. package/dist/assets/archive-legacy-wJmPUETd.js +1 -0
  78. package/dist/{lite/assets/asciinema-03a03960.js → assets/asciinema-ZQcYEkAW.js} +1 -1
  79. package/dist/assets/asciinema-legacy-zxAySqsq.js +1 -0
  80. package/dist/assets/audio-CRzHxaoi.js +1 -0
  81. package/dist/assets/audio-legacy-Feenv18g.js +1 -0
  82. package/dist/assets/{backup-restore-C5uaukNL.js → backup-restore-DI3_7B-r.js} +1 -1
  83. package/dist/assets/{backup-restore-legacy-BNzSREad.js → backup-restore-legacy-Buh90yQQ.js} +1 -1
  84. package/dist/assets/{entry-CzYCw4_c.js → entry-B8RFtHi3.js} +1 -1
  85. package/dist/assets/{entry-8adOMWDV.js → entry-B98kaxtp.js} +1 -1
  86. package/dist/assets/{entry-legacy-BJi3IsKO.js → entry-legacy-ClQCsMpg.js} +1 -1
  87. package/dist/assets/{entry-legacy-CPgG9LS1.js → entry-legacy-CvWDK9vA.js} +1 -1
  88. package/dist/assets/flash-06hWdflD.js +1 -0
  89. package/dist/assets/flash-legacy-CEkIWCeS.js +1 -0
  90. package/dist/assets/heic-Dcuye9xt.js +1 -0
  91. package/dist/assets/heic-legacy-C297mKdd.js +1 -0
  92. package/dist/{lite/assets/helper-59016ddf.js → assets/helper-D_ZwLK_B.js} +1 -1
  93. package/dist/assets/{helper-CJdkogiC.js → helper-EtkfBFKy.js} +1 -1
  94. package/dist/assets/{helper-legacy-B4Xut8Z5.js → helper-legacy-BZAtBbx-.js} +1 -1
  95. package/dist/assets/helper-legacy-Crstiw7Q.js +1 -0
  96. package/dist/assets/{hls-CdGSrFYh.js → hls-Ct2iKFyb.js} +1 -1
  97. package/dist/assets/{hls-legacy-BR5PAXA5.js → hls-legacy-D8ZW6jtp.js} +1 -1
  98. package/dist/{lite/assets/html-a748c03a.js → assets/html-Der_HXVQ.js} +1 -1
  99. package/dist/assets/{html-legacy-DS9vIClh.js → html-legacy-qRV9zl9j.js} +1 -1
  100. package/dist/assets/{icon-CgK9sKtW.js → icon-Di-A6oGV.js} +1 -1
  101. package/dist/assets/{icon-legacy-jbuQXJrW.js → icon-legacy-RrRPpu72.js} +1 -1
  102. package/dist/assets/image-Dcp8UQSC.js +1 -0
  103. package/dist/assets/image-legacy-MktRWNPk.js +1 -0
  104. package/dist/{lite/assets/index-b8211a8c.js → assets/index-39alBTSo.js} +1 -1
  105. package/dist/assets/{index-BS5bVjs5.js → index-BQ3fKbcZ.js} +1 -1
  106. package/dist/assets/{index-CSwg5QXS.js → index-BeFrtC4h.js} +6 -6
  107. package/dist/assets/{index-DOY4u_GJ.js → index-DQgSmKvW.js} +1 -1
  108. package/dist/{lite/assets/index-dfffd899.js → assets/index-DnhdS7oh.js} +1 -1
  109. package/dist/assets/{index-DqW5xUnX.js → index-KrJvblBL.js} +1 -1
  110. package/dist/assets/{index-BJaZW_cl.js → index-U2hEgx40.js} +1 -1
  111. package/dist/assets/{index-BClBcNEu.js → index-ZTxfPVQc.js} +1 -1
  112. package/dist/assets/{index-DV8SB530.js → index-cDisVFxX.js} +1 -1
  113. package/dist/assets/{index-legacy-CDfFAMGs.js → index-legacy--GMgRmYe.js} +1 -1
  114. package/dist/assets/{index-legacy-CwvCVg8-.js → index-legacy-B1wMIUVA.js} +1 -1
  115. package/dist/assets/{index-legacy-nH7bmAdo.js → index-legacy-BDBjlhRR.js} +1 -1
  116. package/dist/assets/{index-legacy-zjwrrR91.js → index-legacy-BDOGUGER.js} +1 -1
  117. package/dist/assets/{index-legacy-Ctuk5AXi.js → index-legacy-BHlOEqoB.js} +1 -1
  118. package/dist/assets/{index-legacy-DkZZKHvO.js → index-legacy-BZ7kWilP.js} +1 -1
  119. package/dist/assets/{index-legacy-C5X1tU4Z.js → index-legacy-BsAqemlM.js} +1 -1
  120. package/dist/assets/index-legacy-C_fp4R35.js +1 -0
  121. package/dist/assets/{index-legacy-CtC7fn6O.js → index-legacy-CfXu3iPN.js} +4 -4
  122. package/dist/assets/index-legacy-CiO_xwp7.js +1 -0
  123. package/dist/assets/index-uMglY6aV.js +2 -0
  124. package/dist/assets/{indexes-Ba0IqlDk.js → indexes-DHzNsR3X.js} +1 -1
  125. package/dist/assets/{indexes-legacy-DOV4Irpp.js → indexes-legacy-CYDIc_-J.js} +1 -1
  126. package/dist/assets/ipa-Bvq4GufD.js +1 -0
  127. package/dist/assets/ipa-legacy-CXj6nWH_.js +1 -0
  128. package/dist/assets/markdown-BTG5QgAB.js +1 -0
  129. package/dist/assets/markdown-legacy-B4FJ2KYb.js +1 -0
  130. package/dist/assets/markdown_with_word_wrap-legacy-BfAsPsKl.js +1 -0
  131. package/dist/assets/markdown_with_word_wrap-sqgjsEFq.js +1 -0
  132. package/dist/assets/offline_download-DSXlv_fS.js +1 -0
  133. package/dist/assets/{offline_download-legacy-TAKRiM_z.js → offline_download-legacy-IVHhY0Fl.js} +1 -1
  134. package/dist/assets/pdf-hzVb4Kgy.js +1 -0
  135. package/dist/assets/pdf-legacy-WbGyXlrg.js +45 -0
  136. package/dist/assets/{pdf.worker.min--PgD6g2g.mjs → pdf.worker.min-DbR_HJhJ.js} +4 -4
  137. package/dist/assets/plist-2Y50jjt-.js +1 -0
  138. package/dist/assets/plist-legacy-B8d_27Yt.js +1 -0
  139. package/dist/assets/{style-QIM1DiTv.js → style-Mplh4sB8.js} +1 -1
  140. package/dist/assets/{style-legacy-DqRFDAwL.js → style-legacy-Cxcb54Ge.js} +1 -1
  141. package/dist/assets/text-editor-DGAoQNZR.js +1 -0
  142. package/dist/assets/text-editor-legacy-B2-OWm_i.js +1 -0
  143. package/dist/assets/{url-BdlNs2qR.js → url-95TlThfV.js} +1 -1
  144. package/dist/assets/{url-legacy-BObEvUIa.js → url-legacy-BhY0uecs.js} +1 -1
  145. package/dist/assets/{useTitle-DVdBzpBf.js → useTitle-QM9-qgni.js} +1 -1
  146. package/dist/assets/{useTitle-legacy-CeyL-0_E.js → useTitle-legacy-D5B3yBZZ.js} +1 -1
  147. package/dist/assets/video-KiVJHX0P.js +7 -0
  148. package/dist/assets/video-legacy-BrJOpPW-.js +9 -0
  149. package/dist/assets/{video360-Ceo5Bzr3.js → video360-HOYCbLmb.js} +1 -1
  150. package/dist/assets/{video360-legacy-DKyKnnjk.js → video360-legacy-BHwShuvc.js} +1 -1
  151. package/dist/assets/{video_box-BSgDB9Qt.js → video_box-0_m4vtRE.js} +2 -2
  152. package/dist/assets/{video_box-legacy-OIbbmS-k.js → video_box-legacy-DVP4wTZQ.js} +1 -1
  153. package/dist/i18n.tar.gz +0 -0
  154. package/dist/index.html +11 -11
  155. package/dist/lite/VERSION +1 -1
  156. package/dist/lite/assets/2fa-Bpxh448n.js +1 -0
  157. package/dist/lite/assets/2fa-legacy-DwWWjhKd.js +1 -0
  158. package/dist/lite/assets/About-ArjASC3Q.js +1 -0
  159. package/dist/lite/assets/About-legacy-Bj3uriA_.js +1 -0
  160. package/dist/lite/assets/AddOrEdit-B3LjAnjt.js +1 -0
  161. package/dist/lite/assets/AddOrEdit-BAx3eDaB.js +1 -0
  162. package/dist/lite/assets/AddOrEdit-DF0Uwc_L.js +1 -0
  163. package/dist/lite/assets/AddOrEdit-legacy-BiTUAbBy.js +1 -0
  164. package/dist/lite/assets/AddOrEdit-legacy-CA9WRPx4.js +1 -0
  165. package/dist/lite/assets/AddOrEdit-legacy-Dfi2IkNZ.js +1 -0
  166. package/dist/lite/assets/Common-BzbR55Cb.js +1 -0
  167. package/dist/lite/assets/Common-legacy-3RN_unfO.js +1 -0
  168. package/dist/lite/assets/Copy-DiJEbe33.js +1 -0
  169. package/dist/lite/assets/Copy-legacy-Cde3ux6l.js +1 -0
  170. package/dist/lite/assets/Decompress-CFzo8jdo.js +1 -0
  171. package/dist/lite/assets/Decompress-legacy-DsqpmmrM.js +1 -0
  172. package/dist/lite/assets/{DeletePopover-239d6d9d.js → DeletePopover-Cvk3C2o6.js} +1 -1
  173. package/dist/lite/assets/DeletePopover-legacy-Dfx3CmJo.js +1 -0
  174. package/dist/lite/assets/File-cqzoU4-v.js +2 -0
  175. package/dist/lite/assets/File-legacy-DdJSf0C9.js +1 -0
  176. package/dist/lite/assets/Folder-Do8UmR7t.js +115 -0
  177. package/dist/lite/assets/Folder-legacy-CmfB2sKk.js +43 -0
  178. package/dist/lite/assets/{Folder-6651c4e8.css → Folder-pZUjROFs.css} +1 -1
  179. package/dist/lite/assets/FolderTree-CFJsWcYU.js +1 -0
  180. package/dist/lite/assets/FolderTree-legacy-CPmKKEH_.js +1 -0
  181. package/dist/lite/assets/Grid-Cb4KcOOA.js +1 -0
  182. package/dist/lite/assets/Grid-legacy-BS9-SmUZ.js +1 -0
  183. package/dist/lite/assets/GridItem-DWKtcQLG.js +1 -0
  184. package/dist/lite/assets/GridItem-legacy-D1hKWaXY.js +1 -0
  185. package/dist/lite/assets/{ImageWithError-7a45dab8.js → ImageWithError-BS_j8_6Y.js} +1 -1
  186. package/dist/lite/assets/ImageWithError-legacy-Ce8hrBNL.js +1 -0
  187. package/dist/lite/assets/Images-CMH8hgp4.js +1 -0
  188. package/dist/lite/assets/Images-legacy-CC9la4S2.js +1 -0
  189. package/dist/lite/assets/Layout-jFFnLZug.js +6 -0
  190. package/dist/lite/assets/Layout-legacy-sqNeJgu3.js +6 -0
  191. package/dist/lite/assets/List-BsIOu856.js +1 -0
  192. package/dist/lite/assets/List-legacy-Btd-Aw-v.js +1 -0
  193. package/dist/lite/assets/Messenger-h8Gtjg9d.js +1 -0
  194. package/dist/lite/assets/Messenger-legacy-MSqQNafv.js +1 -0
  195. package/dist/lite/assets/Metas-ChO30D8Y.js +1 -0
  196. package/dist/lite/assets/Metas-legacy-BYtt6Ssn.js +1 -0
  197. package/dist/lite/assets/Move-JKMnsjzW.js +1 -0
  198. package/dist/lite/assets/Move-legacy-io1yEHph.js +1 -0
  199. package/dist/lite/assets/Other-DkvzL5dr.js +1 -0
  200. package/dist/lite/assets/Other-legacy-en5g3QVf.js +1 -0
  201. package/dist/lite/assets/PackageDownload-A3XlgYaK.js +1 -0
  202. package/dist/lite/assets/PackageDownload-legacy-Bsc8kCYa.js +1 -0
  203. package/dist/lite/assets/{Paginator-c6bbb723.js → Paginator-DYHEaUXh.js} +1 -1
  204. package/dist/lite/assets/Paginator-legacy-CHY0GWFh.js +1 -0
  205. package/dist/lite/assets/Password-DFzvuu_a.js +1 -0
  206. package/dist/lite/assets/Password-legacy-D3G8Nj3a.js +1 -0
  207. package/dist/lite/assets/{Profile-8e13fe60.js → Profile-D7CiDttN.js} +1 -1
  208. package/dist/lite/assets/Profile-legacy-CWckDtrc.js +1 -0
  209. package/dist/lite/assets/PublicKeys-legacy-U88DZl4m.js +1 -0
  210. package/dist/lite/assets/PublicKeys-wq_H67SA.js +1 -0
  211. package/dist/lite/assets/ResponsiveGrid-legacy-q5IrbTkd.js +1 -0
  212. package/dist/lite/assets/ResponsiveGrid-xgt3u3bA.js +1 -0
  213. package/dist/lite/assets/S3-BbQW41ep.js +1 -0
  214. package/dist/lite/assets/S3-legacy-DGp5ZhSq.js +1 -0
  215. package/dist/lite/assets/SettingItem-legacy-DcZ5E_l_.js +1 -0
  216. package/dist/lite/assets/SettingItem-roKcFMua.js +1 -0
  217. package/dist/lite/assets/Storages-BaIcw41y.js +1 -0
  218. package/dist/lite/assets/Storages-legacy-CFy4b4ek.js +1 -0
  219. package/dist/lite/assets/Upload-DHbPCUwq.js +5 -0
  220. package/dist/lite/assets/Upload-RIL7iquw.js +1 -0
  221. package/dist/lite/assets/Upload-legacy-3NfgdpZd.js +1 -0
  222. package/dist/lite/assets/Upload-legacy-poADpzfh.js +6 -0
  223. package/dist/lite/assets/Users-BAqP24Qw.js +1 -0
  224. package/dist/lite/assets/Users-legacy-C0mMiKMz.js +1 -0
  225. package/dist/lite/assets/Wether-DK3WDUbh.js +1 -0
  226. package/dist/lite/assets/Wether-legacy-Cavl6pKD.js +1 -0
  227. package/dist/lite/assets/aliyun_office-DBqDX_hp.js +1 -0
  228. package/dist/lite/assets/aliyun_office-legacy-_79ghtZB.js +1 -0
  229. package/dist/lite/assets/aliyun_video-CZcF0Nna.js +1 -0
  230. package/dist/lite/assets/aliyun_video-legacy-Ct0Zt1SB.js +1 -0
  231. package/dist/lite/assets/archive-1Ny6qOnL.js +1 -0
  232. package/dist/lite/assets/archive-legacy-BkYvaOrc.js +1 -0
  233. package/dist/lite/assets/asciinema-legacy-vQ791H0a.js +1 -0
  234. package/dist/lite/assets/asciinema-sSQhDJ1O.js +1 -0
  235. package/dist/lite/assets/audio-CpqrlW8K.js +1 -0
  236. package/dist/lite/assets/{audio-43f4c02b.css → audio-DVCFhzL6.css} +1 -1
  237. package/dist/lite/assets/audio-legacy-BXgPWYfA.js +1 -0
  238. package/dist/lite/assets/{backup-restore-a1922c8b.js → backup-restore-DoLA2IME.js} +1 -1
  239. package/dist/lite/assets/backup-restore-legacy-DNPfsuAH.js +1 -0
  240. package/dist/lite/assets/entry-BtEOFyfY.js +1 -0
  241. package/dist/lite/assets/entry-DtuXLztK.js +1 -0
  242. package/dist/lite/assets/entry-legacy-BxiK1GJf.js +1 -0
  243. package/dist/lite/assets/entry-legacy-Du4R67kT.js +1 -0
  244. package/dist/lite/assets/{flash-9e68a05e.js → flash-Djj83tqh.js} +1 -1
  245. package/dist/lite/assets/flash-legacy-BRVpO4r6.js +1 -0
  246. package/dist/lite/assets/heic-NwUjtcuG.js +1 -0
  247. package/dist/lite/assets/heic-legacy-B3T6GJ6D.js +1 -0
  248. package/dist/lite/assets/helper-Ch7ToGeM.js +1 -0
  249. package/dist/lite/assets/helper-DwX_dOuD.js +1 -0
  250. package/dist/lite/assets/helper-legacy-B5KaTScg.js +1 -0
  251. package/dist/lite/assets/helper-legacy-DcsEUFIj.js +1 -0
  252. package/dist/lite/assets/hls-DBosaSUe.js +6 -0
  253. package/dist/lite/assets/hls-legacy-DgOWpufA.js +8 -0
  254. package/dist/{assets/html-CBeb2Gu_.js → lite/assets/html-Ba6vHZ_J.js} +1 -1
  255. package/dist/lite/assets/html-legacy-Mvg6eZYQ.js +1 -0
  256. package/dist/lite/assets/{icon-cb9eb834.js → icon-ceZ0r1RC.js} +1 -1
  257. package/dist/lite/assets/icon-legacy-BoOzfCLN.js +1 -0
  258. package/dist/lite/assets/image-Bu07NFPt.js +1 -0
  259. package/dist/lite/assets/image-legacy-N3F4kT0B.js +1 -0
  260. package/dist/lite/assets/index-B_TdULNl.js +21 -0
  261. package/dist/{assets/index-DNDW0loe.js → lite/assets/index-BcZBdJ0I.js} +1 -1
  262. package/dist/lite/assets/index-Bn2D_UmB.js +2 -0
  263. package/dist/lite/assets/index-C3V6yVI8.js +1 -0
  264. package/dist/lite/assets/{index-a14fae00.js → index-CRXmqRYq.js} +1 -1
  265. package/dist/lite/assets/{index-6a28cbb7.js → index-C_aiEtJn.js} +1 -1
  266. package/dist/lite/assets/index-C_jPYH9Z.js +1 -0
  267. package/dist/{assets/index-C7ih00qx.js → lite/assets/index-Dqq7pWSD.js} +1 -1
  268. package/dist/lite/assets/{index-67a90f4f.js → index-HMcyQa6d.js} +1 -1
  269. package/dist/lite/assets/index-e42Miit8.js +14 -0
  270. package/dist/lite/assets/index-legacy-BVyUBVta.js +1 -0
  271. package/dist/lite/assets/index-legacy-CLqrKPV_.js +1 -0
  272. package/dist/lite/assets/index-legacy-CVBschDa.js +1 -0
  273. package/dist/lite/assets/index-legacy-CzA4JGfb.js +28 -0
  274. package/dist/lite/assets/index-legacy-D0eoTtsv.js +1 -0
  275. package/dist/lite/assets/index-legacy-DCVYtsVs.js +1 -0
  276. package/dist/lite/assets/index-legacy-Dc8ardce.js +1 -0
  277. package/dist/lite/assets/index-legacy-DrvGupqT.js +1 -0
  278. package/dist/lite/assets/index-legacy-biWX0Baf.js +1 -0
  279. package/dist/lite/assets/index-legacy-d-CZR28M.js +18 -0
  280. package/dist/lite/assets/indexes-CR9gvSWH.js +1 -0
  281. package/dist/lite/assets/indexes-legacy-DFzWwoPv.js +1 -0
  282. package/dist/lite/assets/ipa-DwQ4X4s4.js +1 -0
  283. package/dist/lite/assets/ipa-legacy-BCZ_Zc3J.js +1 -0
  284. package/dist/lite/assets/item_type-legacy-NfhfVKtF.js +1 -0
  285. package/dist/lite/assets/markdown-B4ybtoLY.js +1 -0
  286. package/dist/lite/assets/markdown-legacy-DUdUSvRx.js +1 -0
  287. package/dist/lite/assets/markdown_with_word_wrap-C6ZJsL5G.js +1 -0
  288. package/dist/lite/assets/markdown_with_word_wrap-legacy-D6JpLTGQ.js +1 -0
  289. package/dist/lite/assets/offline_download-B5VAjVkY.js +1 -0
  290. package/dist/lite/assets/offline_download-legacy-iaAjOlRE.js +1 -0
  291. package/dist/lite/assets/plist-BPhLI2sw.js +1 -0
  292. package/dist/lite/assets/plist-legacy-D1tXE2us.js +1 -0
  293. package/dist/lite/assets/polyfills-legacy-fFt7otW2.js +4 -0
  294. package/dist/lite/assets/style-DhbY8MLj.js +1 -0
  295. package/dist/lite/assets/style-legacy-BCQSOKfk.js +1 -0
  296. package/dist/lite/assets/text-editor-CyJ0Qq4M.js +1 -0
  297. package/dist/lite/assets/text-editor-legacy-DShJUMbE.js +1 -0
  298. package/dist/lite/assets/url-CT_IfmFh.js +1 -0
  299. package/dist/lite/assets/url-legacy-Ct_LVIpR.js +1 -0
  300. package/dist/lite/assets/useTitle-Eavd_FAg.js +1 -0
  301. package/dist/lite/assets/useTitle-legacy-mcHxhUhu.js +1 -0
  302. package/dist/lite/assets/video-DbnoLf1P.js +7 -0
  303. package/dist/lite/assets/video-legacy-CwAVgHet.js +9 -0
  304. package/dist/lite/assets/video360-legacy-DXyquQE4.js +16 -0
  305. package/dist/lite/assets/video360-qu887L1T.js +14 -0
  306. package/dist/lite/assets/video_box-DtlDzrz5.js +6 -0
  307. package/dist/lite/assets/video_box-legacy-zTy3pZGq.js +8 -0
  308. package/dist/lite/assets/webauthn-json.browser-ponyfill-legacy-8XJfKV2b.js +1 -0
  309. package/dist/lite/i18n.tar.gz +0 -0
  310. package/dist/lite/index.html +12 -19
  311. package/dist/lite/static/manifest.json +1 -1
  312. package/package.json +1 -1
  313. package/dist/assets/About-Cu11TW0D.js +0 -1
  314. package/dist/assets/AddOrEdit-B7sPaR10.js +0 -1
  315. package/dist/assets/AddOrEdit-legacy-BLNrBEUZ.js +0 -1
  316. package/dist/assets/Common-CrTYhaeL.js +0 -1
  317. package/dist/assets/Common-legacy-CYNGdYU-.js +0 -1
  318. package/dist/assets/Decompress-CzLWbcw1.js +0 -1
  319. package/dist/assets/FolderTree-BopfuzE_.js +0 -1
  320. package/dist/assets/FolderTree-legacy-DH3Vf9XJ.js +0 -1
  321. package/dist/assets/Grid-DPqNI8Qb.js +0 -1
  322. package/dist/assets/Grid-legacy-BgCqAxPk.js +0 -1
  323. package/dist/assets/GridItem-DKsYPXRd.js +0 -1
  324. package/dist/assets/GridItem-legacy-B5BlOcYb.js +0 -1
  325. package/dist/assets/Images-OiLzswiq.js +0 -1
  326. package/dist/assets/Images-legacy-ByM1mPR1.js +0 -1
  327. package/dist/assets/Layout-CyS6jJ_b.js +0 -6
  328. package/dist/assets/Layout-legacy-D9Zk98K6.js +0 -6
  329. package/dist/assets/List-CZc2zrbB.js +0 -1
  330. package/dist/assets/List-legacy-CFAZAIBP.js +0 -1
  331. package/dist/assets/Other-DXc0kpSC.js +0 -1
  332. package/dist/assets/Other-legacy-38X7w6nZ.js +0 -1
  333. package/dist/assets/PackageDownload-CwKBLgrB.js +0 -1
  334. package/dist/assets/Users-BNQGZuWH.js +0 -1
  335. package/dist/assets/Users-legacy-BINPeiuk.js +0 -1
  336. package/dist/assets/aliyun_video-CwA2k3Pu.js +0 -1
  337. package/dist/assets/aliyun_video-legacy-BpsCIyHp.js +0 -1
  338. package/dist/assets/archive-96T1hx83.js +0 -1
  339. package/dist/assets/archive-legacy-DNLQfLr5.js +0 -1
  340. package/dist/assets/asciinema-CyHXgEN-.js +0 -1
  341. package/dist/assets/asciinema-legacy-t3iZqcax.js +0 -1
  342. package/dist/assets/audio-DSt_Oo19.js +0 -1
  343. package/dist/assets/audio-legacy-BhsBrhkI.js +0 -1
  344. package/dist/assets/flash-Be81XNne.js +0 -1
  345. package/dist/assets/flash-legacy-CPqjLHQp.js +0 -1
  346. package/dist/assets/heic-DpvwRot7.js +0 -1
  347. package/dist/assets/heic-legacy-BoU2N_4X.js +0 -1
  348. package/dist/assets/helper-Ha9z54Sm.js +0 -1
  349. package/dist/assets/helper-legacy-CiLX6aDH.js +0 -1
  350. package/dist/assets/image-DK0tWDig.js +0 -1
  351. package/dist/assets/image-legacy-BpyMVaKK.js +0 -1
  352. package/dist/assets/index-D0sWo-se.js +0 -2
  353. package/dist/assets/index-legacy-BYcwzmYP.js +0 -1
  354. package/dist/assets/index-legacy-DIduvs2M.js +0 -1
  355. package/dist/assets/ipa-CThENlHd.js +0 -1
  356. package/dist/assets/ipa-legacy-ruQ-749T.js +0 -1
  357. package/dist/assets/markdown-DAEQr1YU.js +0 -1
  358. package/dist/assets/markdown-legacy-DtXqlrxB.js +0 -1
  359. package/dist/assets/markdown_with_word_wrap-D_gGyBgt.js +0 -1
  360. package/dist/assets/markdown_with_word_wrap-legacy-D-tfNhGw.js +0 -1
  361. package/dist/assets/offline_download--qix7jck.js +0 -1
  362. package/dist/assets/pdf-DS1TLqP2.js +0 -1
  363. package/dist/assets/pdf-legacy-BF9lSw5M.js +0 -45
  364. package/dist/assets/plist-BdQrMloW.js +0 -1
  365. package/dist/assets/plist-legacy-Dzyq_tdc.js +0 -1
  366. package/dist/assets/text-editor-BvoSciLk.js +0 -1
  367. package/dist/assets/text-editor-legacy-AXNOcpgF.js +0 -1
  368. package/dist/assets/video-legacy-DYsnLlgJ.js +0 -9
  369. package/dist/assets/video-oPytqEM3.js +0 -7
  370. package/dist/lite/assets/2fa-d2e88785.js +0 -1
  371. package/dist/lite/assets/2fa-legacy-300dfa68.js +0 -1
  372. package/dist/lite/assets/About-e76de340.js +0 -1
  373. package/dist/lite/assets/About-legacy-79773dac.js +0 -1
  374. package/dist/lite/assets/AddOrEdit-3d3353a8.js +0 -1
  375. package/dist/lite/assets/AddOrEdit-807696e5.js +0 -1
  376. package/dist/lite/assets/AddOrEdit-d6caff63.js +0 -1
  377. package/dist/lite/assets/AddOrEdit-legacy-8f86f1ff.js +0 -1
  378. package/dist/lite/assets/AddOrEdit-legacy-9983f6e1.js +0 -1
  379. package/dist/lite/assets/AddOrEdit-legacy-d0c7c380.js +0 -1
  380. package/dist/lite/assets/Common-9c9167f7.js +0 -1
  381. package/dist/lite/assets/Common-legacy-d52fea2b.js +0 -1
  382. package/dist/lite/assets/Copy-104d7d48.js +0 -1
  383. package/dist/lite/assets/Copy-legacy-e1bce4e6.js +0 -1
  384. package/dist/lite/assets/Decompress-62fd7241.js +0 -1
  385. package/dist/lite/assets/Decompress-legacy-bd78eb4f.js +0 -1
  386. package/dist/lite/assets/DeletePopover-legacy-f4764c72.js +0 -1
  387. package/dist/lite/assets/File-9bb7b3b6.js +0 -1
  388. package/dist/lite/assets/File-legacy-dbaad256.js +0 -1
  389. package/dist/lite/assets/Folder-80505a0c.js +0 -114
  390. package/dist/lite/assets/Folder-legacy-dbe7957d.js +0 -49
  391. package/dist/lite/assets/FolderTree-a7545b65.js +0 -1
  392. package/dist/lite/assets/FolderTree-legacy-cc6e2591.js +0 -1
  393. package/dist/lite/assets/Grid-2ea09356.js +0 -1
  394. package/dist/lite/assets/Grid-legacy-7e146882.js +0 -1
  395. package/dist/lite/assets/GridItem-a16cc1c5.js +0 -1
  396. package/dist/lite/assets/GridItem-legacy-3d2048e2.js +0 -1
  397. package/dist/lite/assets/ImageWithError-legacy-c2f680e8.js +0 -1
  398. package/dist/lite/assets/Images-137f7509.js +0 -1
  399. package/dist/lite/assets/Images-legacy-a43b6098.js +0 -1
  400. package/dist/lite/assets/Layout-ac0937fd.js +0 -5
  401. package/dist/lite/assets/Layout-legacy-0be654c6.js +0 -6
  402. package/dist/lite/assets/List-64c7752c.js +0 -1
  403. package/dist/lite/assets/List-legacy-913c133e.js +0 -1
  404. package/dist/lite/assets/Messenger-254abffb.js +0 -1
  405. package/dist/lite/assets/Messenger-legacy-97283620.js +0 -1
  406. package/dist/lite/assets/Metas-1bad1832.js +0 -1
  407. package/dist/lite/assets/Metas-legacy-7042cb89.js +0 -1
  408. package/dist/lite/assets/Other-29b70647.js +0 -1
  409. package/dist/lite/assets/Other-legacy-607dbff6.js +0 -1
  410. package/dist/lite/assets/PackageDownload-e264bfda.js +0 -1
  411. package/dist/lite/assets/PackageDownload-legacy-55a29bc7.js +0 -1
  412. package/dist/lite/assets/Paginator-legacy-612bab7f.js +0 -1
  413. package/dist/lite/assets/Password-647ac2f5.js +0 -1
  414. package/dist/lite/assets/Password-legacy-2e2010d5.js +0 -1
  415. package/dist/lite/assets/Profile-legacy-93d7fe2b.js +0 -1
  416. package/dist/lite/assets/PublicKeys-7daab5c3.js +0 -1
  417. package/dist/lite/assets/PublicKeys-legacy-83570ba5.js +0 -1
  418. package/dist/lite/assets/ResponsiveGrid-f263846b.js +0 -1
  419. package/dist/lite/assets/ResponsiveGrid-legacy-a8200443.js +0 -1
  420. package/dist/lite/assets/S3-40b2a439.js +0 -1
  421. package/dist/lite/assets/S3-legacy-310983e4.js +0 -1
  422. package/dist/lite/assets/SettingItem-72aa2179.js +0 -1
  423. package/dist/lite/assets/SettingItem-legacy-91ff3c53.js +0 -1
  424. package/dist/lite/assets/Storages-90b21781.js +0 -1
  425. package/dist/lite/assets/Storages-legacy-49b7b995.js +0 -1
  426. package/dist/lite/assets/Upload-9447b1be.js +0 -5
  427. package/dist/lite/assets/Upload-98dd51d8.js +0 -1
  428. package/dist/lite/assets/Upload-legacy-3b92717c.js +0 -6
  429. package/dist/lite/assets/Upload-legacy-ac99e541.js +0 -1
  430. package/dist/lite/assets/Users-30333127.js +0 -1
  431. package/dist/lite/assets/Users-legacy-0719c277.js +0 -1
  432. package/dist/lite/assets/Wether-b430b024.js +0 -1
  433. package/dist/lite/assets/Wether-legacy-274cd4f2.js +0 -1
  434. package/dist/lite/assets/aliyun_office-b0b45663.js +0 -1
  435. package/dist/lite/assets/aliyun_office-legacy-2d148972.js +0 -1
  436. package/dist/lite/assets/aliyun_video-legacy-6a647909.js +0 -1
  437. package/dist/lite/assets/archive-25c8ef3b.js +0 -1
  438. package/dist/lite/assets/archive-legacy-348dc806.js +0 -1
  439. package/dist/lite/assets/asciinema-legacy-1917d686.js +0 -1
  440. package/dist/lite/assets/audio-ea14d1c5.js +0 -1
  441. package/dist/lite/assets/audio-legacy-303c3bd9.js +0 -1
  442. package/dist/lite/assets/backup-restore-legacy-d4b0f25c.js +0 -1
  443. package/dist/lite/assets/entry-27030f25.js +0 -1
  444. package/dist/lite/assets/entry-f2e52067.js +0 -1
  445. package/dist/lite/assets/entry-legacy-a1d93529.js +0 -1
  446. package/dist/lite/assets/entry-legacy-fd98eab3.js +0 -1
  447. package/dist/lite/assets/flash-legacy-80373572.js +0 -1
  448. package/dist/lite/assets/heic-2554ec65.js +0 -1
  449. package/dist/lite/assets/heic-legacy-2c1c78ca.js +0 -1
  450. package/dist/lite/assets/helper-af29c315.js +0 -1
  451. package/dist/lite/assets/helper-legacy-25bddff0.js +0 -1
  452. package/dist/lite/assets/helper-legacy-94b49e67.js +0 -1
  453. package/dist/lite/assets/hls-e031156d.js +0 -6
  454. package/dist/lite/assets/hls-legacy-20bdc1ee.js +0 -8
  455. package/dist/lite/assets/html-legacy-619368c0.js +0 -1
  456. package/dist/lite/assets/icon-legacy-eb0f5143.js +0 -1
  457. package/dist/lite/assets/image-c8b0bac2.js +0 -1
  458. package/dist/lite/assets/image-legacy-7afc3d49.js +0 -1
  459. package/dist/lite/assets/index-3f395f83.js +0 -14
  460. package/dist/lite/assets/index-53a1dd81.js +0 -20
  461. package/dist/lite/assets/index-83750b21.js +0 -1
  462. package/dist/lite/assets/index-9d2d674f.js +0 -1
  463. package/dist/lite/assets/index-b94004c5.js +0 -1
  464. package/dist/lite/assets/index-legacy-17656f04.js +0 -1
  465. package/dist/lite/assets/index-legacy-3d6bd4ab.js +0 -1
  466. package/dist/lite/assets/index-legacy-52bb5f2d.js +0 -1
  467. package/dist/lite/assets/index-legacy-6dddbd7f.js +0 -18
  468. package/dist/lite/assets/index-legacy-737b5776.js +0 -1
  469. package/dist/lite/assets/index-legacy-a79f37d7.js +0 -27
  470. package/dist/lite/assets/index-legacy-b6946699.js +0 -1
  471. package/dist/lite/assets/index-legacy-d4734338.js +0 -1
  472. package/dist/lite/assets/index-legacy-e78804fc.js +0 -1
  473. package/dist/lite/assets/index-legacy-e78c6961.js +0 -1
  474. package/dist/lite/assets/indexes-8d6a3830.js +0 -1
  475. package/dist/lite/assets/indexes-legacy-8aad9cf2.js +0 -1
  476. package/dist/lite/assets/ipa-14799eac.js +0 -1
  477. package/dist/lite/assets/ipa-legacy-05317cab.js +0 -1
  478. package/dist/lite/assets/item_type-legacy-d49ae974.js +0 -1
  479. package/dist/lite/assets/markdown-438acebf.js +0 -1
  480. package/dist/lite/assets/markdown-legacy-85cc7347.js +0 -1
  481. package/dist/lite/assets/markdown_with_word_wrap-02b3d898.js +0 -1
  482. package/dist/lite/assets/markdown_with_word_wrap-legacy-c80bbc34.js +0 -1
  483. package/dist/lite/assets/offline_download-64a4f5ec.js +0 -1
  484. package/dist/lite/assets/offline_download-legacy-13c80c46.js +0 -1
  485. package/dist/lite/assets/plist-caa63a1c.js +0 -1
  486. package/dist/lite/assets/plist-legacy-97df7129.js +0 -1
  487. package/dist/lite/assets/polyfills-legacy-84c7163c.js +0 -1
  488. package/dist/lite/assets/style-da60bdcd.js +0 -1
  489. package/dist/lite/assets/style-legacy-56f6ffc2.js +0 -1
  490. package/dist/lite/assets/text-editor-faffc12e.js +0 -1
  491. package/dist/lite/assets/text-editor-legacy-c28b9e68.js +0 -1
  492. package/dist/lite/assets/url-e7419bc0.js +0 -1
  493. package/dist/lite/assets/url-legacy-c605c2b3.js +0 -1
  494. package/dist/lite/assets/useTitle-3c39724b.js +0 -1
  495. package/dist/lite/assets/useTitle-legacy-f359aa82.js +0 -1
  496. package/dist/lite/assets/video-bdb2443b.js +0 -7
  497. package/dist/lite/assets/video-legacy-aaca36d8.js +0 -9
  498. package/dist/lite/assets/video360-8fe849f4.js +0 -14
  499. package/dist/lite/assets/video360-legacy-60cbacb5.js +0 -16
  500. package/dist/lite/assets/video_box-cfac536c.js +0 -6
  501. package/dist/lite/assets/video_box-legacy-6b3ebc5b.js +0 -8
  502. package/dist/lite/assets/webauthn-json.browser-ponyfill-legacy-456cc8e1.js +0 -1
  503. /package/dist/lite/assets/{asciinema-9107553b.css → asciinema-CxBn2iyI.css} +0 -0
  504. /package/dist/lite/assets/{index-c0564af7.css → index-DYLAoZjS.css} +0 -0
  505. /package/dist/lite/assets/{item_type-32dc6fdf.js → item_type-CV3e5W3l.js} +0 -0
  506. /package/dist/lite/assets/{lg-f2fe1c00.svg → lg-B0dIV2BS.svg} +0 -0
  507. /package/dist/lite/assets/{lg-fefc5c0d.woff → lg-CosQH4Cu.woff} +0 -0
  508. /package/dist/lite/assets/{lg-22b72ba5.ttf → lg-oyjwlqP2.ttf} +0 -0
  509. /package/dist/lite/assets/{loading-298ad3ff.gif → loading-BZOHaeKn.gif} +0 -0
  510. /package/dist/lite/assets/{style-a6d16836.css → style-qq4T_k44.css} +0 -0
  511. /package/dist/lite/assets/{subtitles-octopus-worker-f95f2186.js → subtitles-octopus-worker-BE_B0Qbi.js} +0 -0
  512. /package/dist/lite/assets/{subtitles-octopus-worker-62892886.wasm → subtitles-octopus-worker-DBPz2dPT.wasm} +0 -0
  513. /package/dist/lite/assets/{video360-f0192288.css → video360-Cpoa0Nlv.css} +0 -0
  514. /package/dist/lite/assets/{webauthn-json.browser-ponyfill-29d8152c.js → webauthn-json.browser-ponyfill-CVZeZdny.js} +0 -0
@@ -1 +0,0 @@
1
- import{cG as A,ak as P,j,Q as T,at as H,N as C,D as I,am as F,aE as N,ap as z,e0 as R,e1 as L,a2 as U}from"./index-CSwg5QXS.js";import{a as W}from"./useTitle-DVdBzpBf.js";import{O as S}from"./icon-CgK9sKtW.js";import"./index-DOY4u_GJ.js";import"./Layout-CyS6jJ_b.js";import"./FolderTree-BopfuzE_.js";import"./index-DNDW0loe.js";import"./index-BS5bVjs5.js";import"./index-C7ih00qx.js";var E={exports:{}},B;function $(){return B||(B=1,function(q,_){(function(y,h){q.exports=h()})(window,function(){return function(y){var h={};function d(u){if(h[u])return h[u].exports;var c=h[u]={i:u,l:!1,exports:{}};return y[u].call(c.exports,c,c.exports,d),c.l=!0,c.exports}return d.m=y,d.c=h,d.d=function(u,c,t){d.o(u,c)||Object.defineProperty(u,c,{configurable:!1,enumerable:!0,get:t})},d.r=function(u){Object.defineProperty(u,"__esModule",{value:!0})},d.n=function(u){var c=u&&u.__esModule?function(){return u.default}:function(){return u};return d.d(c,"a",c),c},d.o=function(u,c){return Object.prototype.hasOwnProperty.call(u,c)},d.p="/",d(d.s=41)}([function(y,h,d){Object.defineProperty(h,"__esModule",{value:!0});var u=/mobile/i.test(window.navigator.userAgent),c={secondToTime:function(t){var n=Math.floor(t/3600),o=Math.floor((t-3600*n)/60),s=Math.floor(t-3600*n-60*o);return(n>0?[n,o,s]:[o,s]).map(function(e){return e<10?"0"+e:""+e}).join(":")},getElementViewLeft:function(t){var n=t.offsetLeft,o=t.offsetParent,s=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;o!==null&&o!==t;)n+=o.offsetLeft,o=o.offsetParent;else for(;o!==null;)n+=o.offsetLeft,o=o.offsetParent;return n-s},getElementViewTop:function(t,n){for(var o,s=t.offsetTop,e=t.offsetParent;e!==null;)s+=e.offsetTop,e=e.offsetParent;return o=document.body.scrollTop+document.documentElement.scrollTop,n?s:s-o},isMobile:u,storage:{set:function(t,n){localStorage.setItem(t,n)},get:function(t){return localStorage.getItem(t)}},nameMap:{dragStart:u?"touchstart":"mousedown",dragMove:u?"touchmove":"mousemove",dragEnd:u?"touchend":"mouseup"},randomOrder:function(t){return function(n){for(var o=n.length-1;o>=0;o--){var s=Math.floor(Math.random()*(o+1)),e=n[s];n[s]=n[o],n[o]=e}return n}([].concat(function(n){if(Array.isArray(n)){for(var o=0,s=Array(n.length);o<n.length;o++)s[o]=n[o];return s}return Array.from(n)}(Array(t))).map(function(n,o){return o}))}};h.default=c},function(y,h,d){var u=d(2);y.exports=function(c){c=c||{};var t="",n=u.$each,o=c.audio,s=(c.$value,c.$index,u.$escape),e=c.theme,a=c.index;return n(o,function(l,p){t+='\n<li>\n <span class="aplayer-list-cur" style="background-color: ',t+=s(l.theme||e),t+=';"></span>\n <span class="aplayer-list-index">',t+=s(p+a),t+='</span>\n <span class="aplayer-list-title">',t+=s(l.name),t+='</span>\n <span class="aplayer-list-author">',t+=s(l.artist),t+="</span>\n</li>\n"}),t}},function(y,h,d){y.exports=d(15)},function(y,h,d){Object.defineProperty(h,"__esModule",{value:!0});var u=w(d(33)),c=w(d(32)),t=w(d(31)),n=w(d(30)),o=w(d(29)),s=w(d(28)),e=w(d(27)),a=w(d(26)),l=w(d(25)),p=w(d(24)),r=w(d(23)),f=w(d(22)),x=w(d(21)),g=w(d(20)),b=w(d(19));function w(i){return i&&i.__esModule?i:{default:i}}var v={play:u.default,pause:c.default,volumeUp:t.default,volumeDown:n.default,volumeOff:o.default,orderRandom:s.default,orderList:e.default,menu:a.default,loopAll:l.default,loopOne:p.default,loopNone:r.default,loading:f.default,right:x.default,skip:g.default,lrc:b.default};h.default=v},function(y,h,d){var u,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};u=function(){return this}();try{u=u||Function("return this")()||(0,eval)("this")}catch(t){(typeof window>"u"?"undefined":c(window))==="object"&&(u=window)}y.exports=u},function(y,h,d){var u,c,t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};(c=typeof(u=function(){if((typeof window>"u"?"undefined":t(window))==="object"&&document.querySelectorAll!==void 0&&window.pageYOffset!==void 0&&history.pushState!==void 0){var n=function(e,a,l,p){return l>p?a:e+(a-e)*((r=l/p)<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1);var r},o=function(e,a,l,p){a=a||500;var r=(p=p||window).scrollTop||window.pageYOffset;if(typeof e=="number")var f=parseInt(e);else var f=function(b,w){return b.nodeName==="HTML"?-w:b.getBoundingClientRect().top+w}(e,r);var x=Date.now(),g=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(b){window.setTimeout(b,15)};(function b(){var w=Date.now()-x;p!==window?p.scrollTop=n(r,f,w,a):window.scroll(0,n(r,f,w,a)),w>a?typeof l=="function"&&l(e):g(b)})()},s=function(e){if(!e.defaultPrevented){e.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var a=document.getElementById(this.hash.substring(1));if(!a)return;o(a,500,function(l){location.replace("#"+l.id)})}};return document.addEventListener("DOMContentLoaded",function(){for(var e,a=document.querySelectorAll('a[href^="#"]:not([href="#"])'),l=a.length;e=a[--l];)e.addEventListener("click",s,!1)}),o}})=="function"?u.call(h,d,h,y):u)===void 0||(y.exports=c)},function(y,h,d){Object.defineProperty(h,"__esModule",{value:!0});var u=function(){function e(a,l){for(var p=0;p<l.length;p++){var r=l[p];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(a,r.key,r)}}return function(a,l,p){return l&&e(a.prototype,l),p&&e(a,p),a}}(),c=o(d(1)),t=o(d(0)),n=o(d(5));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(a){(function(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")})(this,e),this.player=a,this.index=0,this.audios=this.player.options.audio,this.bindEvents()}return u(e,[{key:"bindEvents",value:function(){var a=this;this.player.template.list.addEventListener("click",function(l){var p=void 0;p=l.target.tagName.toUpperCase()==="LI"?l.target:l.target.parentElement;var r=parseInt(p.getElementsByClassName("aplayer-list-index")[0].innerHTML)-1;r!==a.index?(a.switch(r),a.player.play()):a.player.toggle()})}},{key:"show",value:function(){this.player.events.trigger("listshow"),this.player.template.list.classList.remove("aplayer-list-hide"),this.player.template.listOl.scrollTop=33*this.index}},{key:"hide",value:function(){this.player.events.trigger("listhide"),this.player.template.list.classList.add("aplayer-list-hide")}},{key:"toggle",value:function(){this.player.template.list.classList.contains("aplayer-list-hide")?this.show():this.hide()}},{key:"add",value:function(a){this.player.events.trigger("listadd",{audios:a}),Object.prototype.toString.call(a)!=="[object Array]"&&(a=[a]),a.map(function(r){return r.name=r.name||r.title||"Audio name",r.artist=r.artist||r.author||"Audio artist",r.cover=r.cover||r.pic,r.type=r.type||"normal",r});var l=!(this.audios.length>1),p=this.audios.length===0;this.player.template.listOl.innerHTML+=(0,c.default)({theme:this.player.options.theme,audio:a,index:this.audios.length+1}),this.audios=this.audios.concat(a),l&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=t.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=a.theme||this.player.options.theme,p&&(this.player.options.order==="random"?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(a){if(this.player.events.trigger("listremove",{index:a}),this.audios[a])if(this.audios.length>1){var l=this.player.container.querySelectorAll(".aplayer-list li");l[a].remove(),this.audios.splice(a,1),this.player.lrc&&this.player.lrc.remove(a),a===this.index&&(this.audios[a]?this.switch(a):this.switch(a-1)),this.index>a&&this.index--;for(var p=a;p<l.length;p++)l[p].getElementsByClassName("aplayer-list-index")[0].textContent=p;this.audios.length===1&&this.player.container.classList.remove("aplayer-withlist"),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur")}else this.clear()}},{key:"switch",value:function(a){if(this.player.events.trigger("listswitch",{index:a}),a!==void 0&&this.audios[a]){this.index=a;var l=this.audios[this.index];this.player.template.pic.style.backgroundImage=l.cover?"url('"+l.cover+"')":"",this.player.theme(this.audios[this.index].theme||this.player.options.theme,this.index,!1),this.player.template.title.innerHTML=l.name,this.player.template.author.innerHTML=l.artist?" - "+l.artist:"";var p=this.player.container.getElementsByClassName("aplayer-list-light")[0];p&&p.classList.remove("aplayer-list-light"),this.player.container.querySelectorAll(".aplayer-list li")[this.index].classList.add("aplayer-list-light"),(0,n.default)(33*this.index,500,null,this.player.template.listOl),this.player.setAudio(l),this.player.lrc&&this.player.lrc.switch(this.index),this.player.lrc&&this.player.lrc.update(0),this.player.duration!==1&&(this.player.template.dtime.innerHTML=t.default.secondToTime(this.player.duration))}}},{key:"clear",value:function(){this.player.events.trigger("listclear"),this.index=0,this.player.container.classList.remove("aplayer-withlist"),this.player.pause(),this.audios=[],this.player.lrc&&this.player.lrc.clear(),this.player.audio.src="",this.player.template.listOl.innerHTML="",this.player.template.pic.style.backgroundImage="",this.player.theme(this.player.options.theme,this.index,!1),this.player.template.title.innerHTML="No audio",this.player.template.author.innerHTML="",this.player.bar.set("loaded",0,"width"),this.player.template.dtime.innerHTML=t.default.secondToTime(0)}}]),e}();h.default=s},function(y,h,d){Object.defineProperty(h,"__esModule",{value:!0});var u=function(){function t(n,o){for(var s=0;s<o.length;s++){var e=o[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}return function(n,o,s){return o&&t(n.prototype,o),s&&t(n,s),n}}(),c=function(){function t(){(function(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")})(this,t),this.events={},this.audioEvents=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],this.playerEvents=["destroy","listshow","listhide","listadd","listremove","listswitch","listclear","noticeshow","noticehide","lrcshow","lrchide"]}return u(t,[{key:"on",value:function(n,o){this.type(n)&&typeof o=="function"&&(this.events[n]||(this.events[n]=[]),this.events[n].push(o))}},{key:"trigger",value:function(n,o){if(this.events[n]&&this.events[n].length)for(var s=0;s<this.events[n].length;s++)this.events[n][s](o)}},{key:"type",value:function(n){return this.playerEvents.indexOf(n)!==-1?"player":this.audioEvents.indexOf(n)!==-1?"audio":(console.error("Unknown event name: "+n),null)}}]),t}();h.default=c},function(y,h,d){Object.defineProperty(h,"__esModule",{value:!0});var u=function(){function t(n,o){for(var s=0;s<o.length;s++){var e=o[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}return function(n,o,s){return o&&t(n.prototype,o),s&&t(n,s),n}}(),c=function(){function t(n){(function(o,s){if(!(o instanceof s))throw new TypeError("Cannot call a class as a function")})(this,t),this.player=n,window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(o){window.setTimeout(o,1e3/60)},this.types=["loading"],this.init()}return u(t,[{key:"init",value:function(){var n=this;this.types.forEach(function(o){n["init"+o+"Checker"]()})}},{key:"initloadingChecker",value:function(){var n=this,o=0,s=0,e=!1;this.loadingChecker=setInterval(function(){n.enableloadingChecker&&(s=n.player.audio.currentTime,e||s!==o||n.player.audio.paused||(n.player.container.classList.add("aplayer-loading"),e=!0),e&&s>o&&!n.player.audio.paused&&(n.player.container.classList.remove("aplayer-loading"),e=!1),o=s)},100)}},{key:"enable",value:function(n){this["enable"+n+"Checker"]=!0,n==="fps"&&this.initfpsChecker()}},{key:"disable",value:function(n){this["enable"+n+"Checker"]=!1}},{key:"destroy",value:function(){var n=this;this.types.forEach(function(o){n["enable"+o+"Checker"]=!1,n[o+"Checker"]&&clearInterval(n[o+"Checker"])})}}]),t}();h.default=c},function(y,h,d){Object.defineProperty(h,"__esModule",{value:!0});var u=function(){function s(e,a){for(var l=0;l<a.length;l++){var p=a[l];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(e,p.key,p)}}return function(e,a,l){return a&&s(e.prototype,a),l&&s(e,l),e}}(),c=n(d(0)),t=n(d(3));function n(s){return s&&s.__esModule?s:{default:s}}var o=function(){function s(e){(function(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")})(this,s),this.player=e,this.initPlayButton(),this.initPlayBar(),this.initOrderButton(),this.initLoopButton(),this.initMenuButton(),c.default.isMobile||this.initVolumeButton(),this.initMiniSwitcher(),this.initSkipButton(),this.initLrcButton()}return u(s,[{key:"initPlayButton",value:function(){var e=this;this.player.template.pic.addEventListener("click",function(){e.player.toggle()})}},{key:"initPlayBar",value:function(){var e=this,a=function(p){var r=((p.clientX||p.changedTouches[0].clientX)-c.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;r=Math.max(r,0),r=Math.min(r,1),e.player.bar.set("played",r,"width"),e.player.lrc&&e.player.lrc.update(r*e.player.duration),e.player.template.ptime.innerHTML=c.default.secondToTime(r*e.player.duration)},l=function p(r){document.removeEventListener(c.default.nameMap.dragEnd,p),document.removeEventListener(c.default.nameMap.dragMove,a);var f=((r.clientX||r.changedTouches[0].clientX)-c.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;f=Math.max(f,0),f=Math.min(f,1),e.player.bar.set("played",f,"width"),e.player.seek(e.player.bar.get("played","width")*e.player.duration),e.player.disableTimeupdate=!1};this.player.template.barWrap.addEventListener(c.default.nameMap.dragStart,function(){e.player.disableTimeupdate=!0,document.addEventListener(c.default.nameMap.dragMove,a),document.addEventListener(c.default.nameMap.dragEnd,l)})}},{key:"initVolumeButton",value:function(){var e=this;this.player.template.volumeButton.addEventListener("click",function(){e.player.audio.muted?(e.player.audio.muted=!1,e.player.switchVolumeIcon(),e.player.bar.set("volume",e.player.volume(),"height")):(e.player.audio.muted=!0,e.player.switchVolumeIcon(),e.player.bar.set("volume",0,"height"))});var a=function(p){var r=1-((p.clientY||p.changedTouches[0].clientY)-c.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;r=Math.max(r,0),r=Math.min(r,1),e.player.volume(r)},l=function p(r){e.player.template.volumeBarWrap.classList.remove("aplayer-volume-bar-wrap-active"),document.removeEventListener(c.default.nameMap.dragEnd,p),document.removeEventListener(c.default.nameMap.dragMove,a);var f=1-((r.clientY||r.changedTouches[0].clientY)-c.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;f=Math.max(f,0),f=Math.min(f,1),e.player.volume(f)};this.player.template.volumeBarWrap.addEventListener(c.default.nameMap.dragStart,function(){e.player.template.volumeBarWrap.classList.add("aplayer-volume-bar-wrap-active"),document.addEventListener(c.default.nameMap.dragMove,a),document.addEventListener(c.default.nameMap.dragEnd,l)})}},{key:"initOrderButton",value:function(){var e=this;this.player.template.order.addEventListener("click",function(){e.player.options.order==="list"?(e.player.options.order="random",e.player.template.order.innerHTML=t.default.orderRandom):e.player.options.order==="random"&&(e.player.options.order="list",e.player.template.order.innerHTML=t.default.orderList)})}},{key:"initLoopButton",value:function(){var e=this;this.player.template.loop.addEventListener("click",function(){e.player.list.audios.length>1?e.player.options.loop==="one"?(e.player.options.loop="none",e.player.template.loop.innerHTML=t.default.loopNone):e.player.options.loop==="none"?(e.player.options.loop="all",e.player.template.loop.innerHTML=t.default.loopAll):e.player.options.loop==="all"&&(e.player.options.loop="one",e.player.template.loop.innerHTML=t.default.loopOne):e.player.options.loop==="one"||e.player.options.loop==="all"?(e.player.options.loop="none",e.player.template.loop.innerHTML=t.default.loopNone):e.player.options.loop==="none"&&(e.player.options.loop="all",e.player.template.loop.innerHTML=t.default.loopAll)})}},{key:"initMenuButton",value:function(){var e=this;this.player.template.menu.addEventListener("click",function(){e.player.list.toggle()})}},{key:"initMiniSwitcher",value:function(){var e=this;this.player.template.miniSwitcher.addEventListener("click",function(){e.player.setMode(e.player.mode==="mini"?"normal":"mini")})}},{key:"initSkipButton",value:function(){var e=this;this.player.template.skipBackButton.addEventListener("click",function(){e.player.skipBack()}),this.player.template.skipForwardButton.addEventListener("click",function(){e.player.skipForward()}),this.player.template.skipPlayButton.addEventListener("click",function(){e.player.toggle()})}},{key:"initLrcButton",value:function(){var e=this;this.player.template.lrcButton.addEventListener("click",function(){e.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(e.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.show()):(e.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.hide())})}}]),s}();h.default=o},function(y,h,d){var u=d(2);y.exports=function(c){c=c||{};var t="",n=u.$each,o=c.lyrics,s=(c.$value,c.$index,u.$escape);return n(o,function(e,a){t+="\n <p",a===0&&(t+=' class="aplayer-lrc-current"'),t+=">",t+=s(e[1]),t+="</p>\n"}),t}},function(y,h,d){Object.defineProperty(h,"__esModule",{value:!0});var u,c=function(){function s(e,a){for(var l=0;l<a.length;l++){var p=a[l];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(e,p.key,p)}}return function(e,a,l){return a&&s(e.prototype,a),l&&s(e,l),e}}(),t=d(10),n=(u=t)&&u.__esModule?u:{default:u},o=function(){function s(e){(function(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")})(this,s),this.container=e.container,this.async=e.async,this.player=e.player,this.parsed=[],this.index=0,this.current=[]}return c(s,[{key:"show",value:function(){this.player.events.trigger("lrcshow"),this.player.template.lrcWrap.classList.remove("aplayer-lrc-hide")}},{key:"hide",value:function(){this.player.events.trigger("lrchide"),this.player.template.lrcWrap.classList.add("aplayer-lrc-hide")}},{key:"toggle",value:function(){this.player.template.lrcWrap.classList.contains("aplayer-lrc-hide")?this.show():this.hide()}},{key:"update",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||e<this.current[this.index][0]||!this.current[this.index+1]||e>=this.current[this.index+1][0])for(var a=0;a<this.current.length;a++)e>=this.current[a][0]&&(!this.current[a+1]||e<this.current[a+1][0])&&(this.index=a,this.container.style.transform="translateY("+16*-this.index+"px)",this.container.style.webkitTransform="translateY("+16*-this.index+"px)",this.container.getElementsByClassName("aplayer-lrc-current")[0].classList.remove("aplayer-lrc-current"),this.container.getElementsByTagName("p")[a].classList.add("aplayer-lrc-current"))}},{key:"switch",value:function(e){var a=this;if(!this.parsed[e])if(this.async){this.parsed[e]=[["00:00","Loading"]];var l=new XMLHttpRequest;l.onreadystatechange=function(){e===a.player.list.index&&l.readyState===4&&(l.status>=200&&l.status<300||l.status===304?a.parsed[e]=a.parse(l.responseText):(a.player.notice("LRC file request fails: status "+l.status),a.parsed[e]=[["00:00","Not available"]]),a.container.innerHTML=(0,n.default)({lyrics:a.parsed[e]}),a.update(0),a.current=a.parsed[e])};var p=this.player.list.audios[e].lrc;l.open("get",p,!0),l.send(null)}else this.player.list.audios[e].lrc?this.parsed[e]=this.parse(this.player.list.audios[e].lrc):this.parsed[e]=[["00:00","Not available"]];this.container.innerHTML=(0,n.default)({lyrics:this.parsed[e]}),this.update(0),this.current=this.parsed[e]}},{key:"parse",value:function(e){if(e){for(var a=(e=e.replace(/([^\]^\n])\[/g,function(i,m){return m+"\n["})).split("\n"),l=[],p=a.length,r=0;r<p;r++){var f=a[r].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),x=a[r].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(f)for(var g=f.length,b=0;b<g;b++){var w=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/.exec(f[b]),v=60*w[1]+parseInt(w[2])+(w[4]?parseInt(w[4])/((w[4]+"").length===2?100:1e3):0);l.push([v,x])}}return(l=l.filter(function(i){return i[1]})).sort(function(i,m){return i[0]-m[0]}),l}return[]}},{key:"remove",value:function(e){this.parsed.splice(e,1)}},{key:"clear",value:function(){this.parsed=[],this.container.innerHTML=""}}]),s}();h.default=o},function(y,h,d){Object.defineProperty(h,"__esModule",{value:!0});var u,c=function(){function s(e,a){for(var l=0;l<a.length;l++){var p=a[l];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(e,p.key,p)}}return function(e,a,l){return a&&s(e.prototype,a),l&&s(e,l),e}}(),t=d(0),n=(u=t)&&u.__esModule?u:{default:u},o=function(){function s(e){(function(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")})(this,s),this.storageName=e.options.storageName,this.data=JSON.parse(n.default.storage.get(this.storageName)),this.data||(this.data={}),this.data.volume=this.data.volume||e.options.volume}return c(s,[{key:"get",value:function(e){return this.data[e]}},{key:"set",value:function(e,a){this.data[e]=a,n.default.storage.set(this.storageName,JSON.stringify(this.data))}}]),s}();h.default=o},function(y,h,d){Object.defineProperty(h,"__esModule",{value:!0});var u=function(){function t(n,o){for(var s=0;s<o.length;s++){var e=o[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}return function(n,o,s){return o&&t(n.prototype,o),s&&t(n,s),n}}(),c=function(){function t(n){(function(o,s){if(!(o instanceof s))throw new TypeError("Cannot call a class as a function")})(this,t),this.elements={},this.elements.volume=n.volume,this.elements.played=n.played,this.elements.loaded=n.loaded}return u(t,[{key:"set",value:function(n,o,s){o=Math.max(o,0),o=Math.min(o,1),this.elements[n].style[s]=100*o+"%"}},{key:"get",value:function(n,o){return parseFloat(this.elements[n].style[o])/100}}]),t}();h.default=c},function(y,h,d){(function(u){y.exports=!1;try{y.exports=Object.prototype.toString.call(u.process)==="[object process]"}catch(c){}}).call(this,d(4))},function(y,h,d){(function(u){var c=d(14),t=Object.create(c?u:window),n=/["&'<>]/;t.$escape=function(o){return function(s){var e=""+s,a=n.exec(e);if(!a)return s;var l="",p=void 0,r=void 0,f=void 0;for(p=a.index,r=0;p<e.length;p++){switch(e.charCodeAt(p)){case 34:f="&#34;";break;case 38:f="&#38;";break;case 39:f="&#39;";break;case 60:f="&#60;";break;case 62:f="&#62;";break;default:continue}r!==p&&(l+=e.substring(r,p)),r=p+1,l+=f}return r!==p?l+e.substring(r,p):l}(function s(e){return typeof e!="string"&&(e=e==null?"":typeof e=="function"?s(e.call(e)):JSON.stringify(e)),e}(o))},t.$each=function(o,s){if(Array.isArray(o))for(var e=0,a=o.length;e<a;e++)s(o[e],e);else for(var l in o)s(o[l],l)},y.exports=t}).call(this,d(4))},function(y,h,d){var u=d(2);y.exports=function(c){var t="",n=(c=c||{}).options,o=c.cover,s=u.$escape,e=c.icons,a=function(p){return t+=p},l=c.getObject;return c.theme,c.audio,c.index,n.fixed?(t+='\n<div class="aplayer-list',n.listFolded&&(t+=" aplayer-list-hide"),t+='"',n.listMaxHeight&&(t+=' style="max-height: ',t+=s(n.listMaxHeight),t+='"'),t+=">\n <ol",n.listMaxHeight&&(t+=' style="max-height: ',t+=s(n.listMaxHeight),t+='"'),t+=">\n ",a(d(1)(l({theme:n.theme,audio:n.audio,index:1}))),t+='\n </ol>\n</div>\n<div class="aplayer-body">\n <div class="aplayer-pic" style="',o&&(t+="background-image: url(&quot;",t+=s(o),t+="&quot;);"),t+="background-color: ",t+=s(n.theme),t+=';">\n <div class="aplayer-button aplayer-play">',t+=e.play,t+='</div>\n </div>\n <div class="aplayer-info" style="display: none;">\n <div class="aplayer-music">\n <span class="aplayer-title">No audio</span>\n <span class="aplayer-author"></span>\n </div>\n <div class="aplayer-controller">\n <div class="aplayer-bar-wrap">\n <div class="aplayer-bar">\n <div class="aplayer-loaded" style="width: 0"></div>\n <div class="aplayer-played" style="width: 0; background: ',t+=s(n.theme),t+=';">\n <span class="aplayer-thumb" style="background: ',t+=s(n.theme),t+=';">\n <span class="aplayer-loading-icon">',t+=e.loading,t+='</span>\n </span>\n </div>\n </div>\n </div>\n <div class="aplayer-time">\n <span class="aplayer-time-inner">\n <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n </span>\n <span class="aplayer-icon aplayer-icon-back">\n ',t+=e.skip,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-play">\n ',t+=e.play,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-forward">\n ',t+=e.skip,t+='\n </span>\n <div class="aplayer-volume-wrap">\n <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n ',t+=e.volumeDown,t+='\n </button>\n <div class="aplayer-volume-bar-wrap">\n <div class="aplayer-volume-bar">\n <div class="aplayer-volume" style="height: 80%; background: ',t+=s(n.theme),t+=';"></div>\n </div>\n </div>\n </div>\n <button type="button" class="aplayer-icon aplayer-icon-order">\n ',n.order==="list"?t+=e.orderList:n.order==="random"&&(t+=e.orderRandom),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-loop">\n ',n.loop==="one"?t+=e.loopOne:n.loop==="all"?t+=e.loopAll:n.loop==="none"&&(t+=e.loopNone),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-menu">\n ',t+=e.menu,t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-lrc">\n ',t+=e.lrc,t+='\n </button>\n </div>\n </div>\n </div>\n <div class="aplayer-notice"></div>\n <div class="aplayer-miniswitcher"><button class="aplayer-icon">',t+=e.right,t+='</button></div>\n</div>\n<div class="aplayer-lrc">\n <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n</div>\n'):(t+='\n<div class="aplayer-body">\n <div class="aplayer-pic" style="',o&&(t+="background-image: url(&quot;",t+=s(o),t+="&quot;);"),t+="background-color: ",t+=s(n.theme),t+=';">\n <div class="aplayer-button aplayer-play">',t+=e.play,t+='</div>\n </div>\n <div class="aplayer-info">\n <div class="aplayer-music">\n <span class="aplayer-title">No audio</span>\n <span class="aplayer-author"></span>\n </div>\n <div class="aplayer-lrc">\n <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n </div>\n <div class="aplayer-controller">\n <div class="aplayer-bar-wrap">\n <div class="aplayer-bar">\n <div class="aplayer-loaded" style="width: 0"></div>\n <div class="aplayer-played" style="width: 0; background: ',t+=s(n.theme),t+=';">\n <span class="aplayer-thumb" style="background: ',t+=s(n.theme),t+=';">\n <span class="aplayer-loading-icon">',t+=e.loading,t+='</span>\n </span>\n </div>\n </div>\n </div>\n <div class="aplayer-time">\n <span class="aplayer-time-inner">\n <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n </span>\n <span class="aplayer-icon aplayer-icon-back">\n ',t+=e.skip,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-play">\n ',t+=e.play,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-forward">\n ',t+=e.skip,t+='\n </span>\n <div class="aplayer-volume-wrap">\n <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n ',t+=e.volumeDown,t+='\n </button>\n <div class="aplayer-volume-bar-wrap">\n <div class="aplayer-volume-bar">\n <div class="aplayer-volume" style="height: 80%; background: ',t+=s(n.theme),t+=';"></div>\n </div>\n </div>\n </div>\n <button type="button" class="aplayer-icon aplayer-icon-order">\n ',n.order==="list"?t+=e.orderList:n.order==="random"&&(t+=e.orderRandom),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-loop">\n ',n.loop==="one"?t+=e.loopOne:n.loop==="all"?t+=e.loopAll:n.loop==="none"&&(t+=e.loopNone),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-menu">\n ',t+=e.menu,t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-lrc">\n ',t+=e.lrc,t+='\n </button>\n </div>\n </div>\n </div>\n <div class="aplayer-notice"></div>\n <div class="aplayer-miniswitcher"><button class="aplayer-icon">',t+=e.right,t+='</button></div>\n</div>\n<div class="aplayer-list',n.listFolded&&(t+=" aplayer-list-hide"),t+='"',n.listMaxHeight&&(t+=' style="max-height: ',t+=s(n.listMaxHeight),t+='"'),t+=">\n <ol",n.listMaxHeight&&(t+=' style="max-height: ',t+=s(n.listMaxHeight),t+='"'),t+=">\n ",a(d(1)(l({theme:n.theme,audio:n.audio,index:1}))),t+="\n </ol>\n</div>\n"),t}},function(y,h,d){Object.defineProperty(h,"__esModule",{value:!0});var u=function(){function s(e,a){for(var l=0;l<a.length;l++){var p=a[l];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(e,p.key,p)}}return function(e,a,l){return a&&s(e.prototype,a),l&&s(e,l),e}}(),c=n(d(3)),t=n(d(16));function n(s){return s&&s.__esModule?s:{default:s}}var o=function(){function s(e){(function(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")})(this,s),this.container=e.container,this.options=e.options,this.randomOrder=e.randomOrder,this.init()}return u(s,[{key:"init",value:function(){var e="";this.options.audio.length&&(e=this.options.order==="random"?this.options.audio[this.randomOrder[0]].cover:this.options.audio[0].cover),this.container.innerHTML=(0,t.default)({options:this.options,icons:c.default,cover:e,getObject:function(a){return a}}),this.lrc=this.container.querySelector(".aplayer-lrc-contents"),this.lrcWrap=this.container.querySelector(".aplayer-lrc"),this.ptime=this.container.querySelector(".aplayer-ptime"),this.info=this.container.querySelector(".aplayer-info"),this.time=this.container.querySelector(".aplayer-time"),this.barWrap=this.container.querySelector(".aplayer-bar-wrap"),this.button=this.container.querySelector(".aplayer-button"),this.body=this.container.querySelector(".aplayer-body"),this.list=this.container.querySelector(".aplayer-list"),this.listOl=this.container.querySelector(".aplayer-list ol"),this.listCurs=this.container.querySelectorAll(".aplayer-list-cur"),this.played=this.container.querySelector(".aplayer-played"),this.loaded=this.container.querySelector(".aplayer-loaded"),this.thumb=this.container.querySelector(".aplayer-thumb"),this.volume=this.container.querySelector(".aplayer-volume"),this.volumeBar=this.container.querySelector(".aplayer-volume-bar"),this.volumeButton=this.container.querySelector(".aplayer-time button"),this.volumeBarWrap=this.container.querySelector(".aplayer-volume-bar-wrap"),this.loop=this.container.querySelector(".aplayer-icon-loop"),this.order=this.container.querySelector(".aplayer-icon-order"),this.menu=this.container.querySelector(".aplayer-icon-menu"),this.pic=this.container.querySelector(".aplayer-pic"),this.title=this.container.querySelector(".aplayer-title"),this.author=this.container.querySelector(".aplayer-author"),this.dtime=this.container.querySelector(".aplayer-dtime"),this.notice=this.container.querySelector(".aplayer-notice"),this.miniSwitcher=this.container.querySelector(".aplayer-miniswitcher"),this.skipBackButton=this.container.querySelector(".aplayer-icon-back"),this.skipForwardButton=this.container.querySelector(".aplayer-icon-forward"),this.skipPlayButton=this.container.querySelector(".aplayer-icon-play"),this.lrcButton=this.container.querySelector(".aplayer-icon-lrc")}}]),s}();h.default=o},function(y,h,d){Object.defineProperty(h,"__esModule",{value:!0}),h.default=function(u){var c={container:u.element||document.getElementsByClassName("aplayer")[0],mini:u.narrow||u.fixed||!1,fixed:!1,autoplay:!1,mutex:!0,lrcType:u.showlrc||u.lrc||0,preload:"auto",theme:"#b7daff",loop:"all",order:"list",volume:.7,listFolded:u.fixed,listMaxHeight:u.listmaxheight||"250px",audio:u.music||[],storageName:"aplayer-setting"};for(var t in c)c.hasOwnProperty(t)&&!u.hasOwnProperty(t)&&(u[t]=c[t]);return Object.prototype.toString.call(u.audio)!=="[object Array]"&&(u.audio=[u.audio]),u.audio.map(function(n){return n.name=n.name||n.title||"Audio name",n.artist=n.artist||n.author||"Audio artist",n.cover=n.cover||n.pic,n.type=n.type||"normal",n}),u.audio.length<=1&&u.loop==="one"&&(u.loop="all"),u}},function(y,h){y.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M26.667 5.333h-21.333c-0 0-0.001 0-0.001 0-1.472 0-2.666 1.194-2.666 2.666 0 0 0 0.001 0 0.001v-0 16c0 0 0 0.001 0 0.001 0 1.472 1.194 2.666 2.666 2.666 0 0 0.001 0 0.001 0h21.333c0 0 0.001 0 0.001 0 1.472 0 2.666-1.194 2.666-2.666 0-0 0-0.001 0-0.001v0-16c0-0 0-0.001 0-0.001 0-1.472-1.194-2.666-2.666-2.666-0 0-0.001 0-0.001 0h0zM5.333 16h5.333v2.667h-5.333v-2.667zM18.667 24h-13.333v-2.667h13.333v2.667zM26.667 24h-5.333v-2.667h5.333v2.667zM26.667 18.667h-13.333v-2.667h13.333v2.667z"></path></svg>'},function(y,h){y.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M25.468 6.947c-0.326-0.172-0.724-0.151-1.030 0.057l-6.438 4.38v-3.553c0-0.371-0.205-0.71-0.532-0.884-0.326-0.172-0.724-0.151-1.030 0.057l-12 8.164c-0.274 0.186-0.438 0.496-0.438 0.827s0.164 0.641 0.438 0.827l12 8.168c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-3.556l6.438 4.382c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-16.333c0-0.371-0.205-0.71-0.532-0.884z"></path></svg>'},function(y,h){y.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22 16l-10.105-10.6-1.895 1.987 8.211 8.613-8.211 8.612 1.895 1.988 8.211-8.613z"></path></svg>'},function(y,h){y.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M4 16c0-6.6 5.4-12 12-12s12 5.4 12 12c0 1.2-0.8 2-2 2s-2-0.8-2-2c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8c1.2 0 2 0.8 2 2s-0.8 2-2 2c-6.6 0-12-5.4-12-12z"></path></svg>'},function(y,h){y.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M2.667 7.027l1.707-1.693 22.293 22.293-1.693 1.707-4-4h-11.64v4l-5.333-5.333 5.333-5.333v4h8.973l-8.973-8.973v0.973h-2.667v-3.64l-4-4zM22.667 17.333h2.667v5.573l-2.667-2.667v-2.907zM22.667 6.667v-4l5.333 5.333-5.333 5.333v-4h-10.907l-2.667-2.667h13.573z"></path></svg>'},function(y,h){y.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 33 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333zM17.333 20v-8h-1.333l-2.667 1.333v1.333h2v5.333h2z"></path></svg>'},function(y,h){y.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333z"></path></svg>'},function(y,h){y.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 22 32"><path d="M20.8 14.4q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2zM1.6 11.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2zM20.8 20.8q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2z"></path></svg>'},function(y,h){y.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M0.622 18.334h19.54v7.55l11.052-9.412-11.052-9.413v7.549h-19.54v3.725z"></path></svg>'},function(y,h){y.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22.667 4l7 6-7 6 7 6-7 6v-4h-3.653l-3.76-3.76 2.827-2.827 2.587 2.587h2v-8h-2l-12 12h-6v-4h4.347l12-12h3.653v-4zM2.667 8h6l3.76 3.76-2.827 2.827-2.587-2.587h-4.347v-4z"></path></svg>'},function(y,h){y.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8z"></path></svg>'},function(y,h){y.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528z"></path></svg>'},function(y,h){y.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528zM25.152 16q0 2.72-1.536 5.056t-4 3.36q-0.256 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.704 0.672-1.056 1.024-0.512 1.376-0.8 1.312-0.96 2.048-2.4t0.736-3.104-0.736-3.104-2.048-2.4q-0.352-0.288-1.376-0.8-0.672-0.352-0.672-1.056 0-0.448 0.32-0.8t0.8-0.352q0.224 0 0.48 0.096 2.496 1.056 4 3.36t1.536 5.056zM29.728 16q0 4.096-2.272 7.552t-6.048 5.056q-0.224 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.64 0.704-1.056 0.128-0.064 0.384-0.192t0.416-0.192q0.8-0.448 1.44-0.896 2.208-1.632 3.456-4.064t1.216-5.152-1.216-5.152-3.456-4.064q-0.64-0.448-1.44-0.896-0.128-0.096-0.416-0.192t-0.384-0.192q-0.704-0.416-0.704-1.056 0-0.448 0.32-0.8t0.832-0.352q0.224 0 0.448 0.096 3.776 1.632 6.048 5.056t2.272 7.552z"></path></svg>'},function(y,h){y.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 17 32"><path d="M14.080 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048zM2.88 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048z"></path></svg>'},function(y,h){y.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 31"><path d="M15.552 15.168q0.448 0.32 0.448 0.832 0 0.448-0.448 0.768l-13.696 8.512q-0.768 0.512-1.312 0.192t-0.544-1.28v-16.448q0-0.96 0.544-1.28t1.312 0.192z"></path></svg>'},function(y,h,d){var u,c,t=y.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(b){if(u===setTimeout)return setTimeout(b,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(b,0);try{return u(b,0)}catch(w){try{return u.call(null,b,0)}catch(v){return u.call(this,b,0)}}}(function(){try{u=typeof setTimeout=="function"?setTimeout:n}catch(b){u=n}try{c=typeof clearTimeout=="function"?clearTimeout:o}catch(b){c=o}})();var e,a=[],l=!1,p=-1;function r(){l&&e&&(l=!1,e.length?a=e.concat(a):p=-1,a.length&&f())}function f(){if(!l){var b=s(r);l=!0;for(var w=a.length;w;){for(e=a,a=[];++p<w;)e&&e[p].run();p=-1,w=a.length}e=null,l=!1,function(v){if(c===clearTimeout)return clearTimeout(v);if((c===o||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(v);try{c(v)}catch(i){try{return c.call(null,v)}catch(m){return c.call(this,v)}}}(b)}}function x(b,w){this.fun=b,this.array=w}function g(){}t.nextTick=function(b){var w=new Array(arguments.length-1);if(arguments.length>1)for(var v=1;v<arguments.length;v++)w[v-1]=arguments[v];a.push(new x(b,w)),a.length!==1||l||s(f)},x.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=g,t.addListener=g,t.once=g,t.off=g,t.removeListener=g,t.removeAllListeners=g,t.emit=g,t.prependListener=g,t.prependOnceListener=g,t.listeners=function(b){return[]},t.binding=function(b){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(b){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(y,h,d){(function(u,c){(function(t,n){if(!t.setImmediate){var o,s,e,a,l,p=1,r={},f=!1,x=t.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(t);g=g&&g.setTimeout?g:t,{}.toString.call(t.process)==="[object process]"?o=function(v){c.nextTick(function(){w(v)})}:function(){if(t.postMessage&&!t.importScripts){var v=!0,i=t.onmessage;return t.onmessage=function(){v=!1},t.postMessage("","*"),t.onmessage=i,v}}()?(a="setImmediate$"+Math.random()+"$",l=function(v){v.source===t&&typeof v.data=="string"&&v.data.indexOf(a)===0&&w(+v.data.slice(a.length))},t.addEventListener?t.addEventListener("message",l,!1):t.attachEvent("onmessage",l),o=function(v){t.postMessage(a+v,"*")}):t.MessageChannel?((e=new MessageChannel).port1.onmessage=function(v){w(v.data)},o=function(v){e.port2.postMessage(v)}):x&&"onreadystatechange"in x.createElement("script")?(s=x.documentElement,o=function(v){var i=x.createElement("script");i.onreadystatechange=function(){w(v),i.onreadystatechange=null,s.removeChild(i),i=null},s.appendChild(i)}):o=function(v){setTimeout(w,0,v)},g.setImmediate=function(v){typeof v!="function"&&(v=new Function(""+v));for(var i=new Array(arguments.length-1),m=0;m<i.length;m++)i[m]=arguments[m+1];var k={callback:v,args:i};return r[p]=k,o(p),p++},g.clearImmediate=b}function b(v){delete r[v]}function w(v){if(f)setTimeout(w,0,v);else{var i=r[v];if(i){f=!0;try{(function(m){var k=m.callback,M=m.args;switch(M.length){case 0:k();break;case 1:k(M[0]);break;case 2:k(M[0],M[1]);break;case 3:k(M[0],M[1],M[2]);break;default:k.apply(n,M)}})(i)}finally{b(v),f=!1}}}}})(typeof self>"u"?u===void 0?void 0:u:self)}).call(this,d(4),d(34))},function(y,h,d){var u=Function.prototype.apply;function c(t,n){this._id=t,this._clearFn=n}h.setTimeout=function(){return new c(u.call(setTimeout,window,arguments),clearTimeout)},h.setInterval=function(){return new c(u.call(setInterval,window,arguments),clearInterval)},h.clearTimeout=h.clearInterval=function(t){t&&t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},h.enroll=function(t,n){clearTimeout(t._idleTimeoutId),t._idleTimeout=n},h.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},h._unrefActive=h.active=function(t){clearTimeout(t._idleTimeoutId);var n=t._idleTimeout;n>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},n))},d(35),h.setImmediate=setImmediate,h.clearImmediate=clearImmediate},function(y,h,d){(function(u){var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},t=setTimeout;function n(){}function o(r){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if(typeof r!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(r,this)}function s(r,f){for(;r._state===3;)r=r._value;r._state!==0?(r._handled=!0,o._immediateFn(function(){var x=r._state===1?f.onFulfilled:f.onRejected;if(x!==null){var g;try{g=x(r._value)}catch(b){return void a(f.promise,b)}e(f.promise,g)}else(r._state===1?e:a)(f.promise,r._value)})):r._deferreds.push(f)}function e(r,f){try{if(f===r)throw new TypeError("A promise cannot be resolved with itself.");if(f&&((f===void 0?"undefined":c(f))==="object"||typeof f=="function")){var x=f.then;if(f instanceof o)return r._state=3,r._value=f,void l(r);if(typeof x=="function")return void p((g=x,b=f,function(){g.apply(b,arguments)}),r)}r._state=1,r._value=f,l(r)}catch(w){a(r,w)}var g,b}function a(r,f){r._state=2,r._value=f,l(r)}function l(r){r._state===2&&r._deferreds.length===0&&o._immediateFn(function(){r._handled||o._unhandledRejectionFn(r._value)});for(var f=0,x=r._deferreds.length;f<x;f++)s(r,r._deferreds[f]);r._deferreds=null}function p(r,f){var x=!1;try{r(function(g){x||(x=!0,e(f,g))},function(g){x||(x=!0,a(f,g))})}catch(g){if(x)return;x=!0,a(f,g)}}o.prototype.catch=function(r){return this.then(null,r)},o.prototype.then=function(r,f){var x=new this.constructor(n);return s(this,new function(g,b,w){this.onFulfilled=typeof g=="function"?g:null,this.onRejected=typeof b=="function"?b:null,this.promise=w}(r,f,x)),x},o.prototype.finally=function(r){var f=this.constructor;return this.then(function(x){return f.resolve(r()).then(function(){return x})},function(x){return f.resolve(r()).then(function(){return f.reject(x)})})},o.all=function(r){return new o(function(f,x){if(!r||r.length===void 0)throw new TypeError("Promise.all accepts an array");var g=Array.prototype.slice.call(r);if(g.length===0)return f([]);var b=g.length;function w(i,m){try{if(m&&((m===void 0?"undefined":c(m))==="object"||typeof m=="function")){var k=m.then;if(typeof k=="function")return void k.call(m,function(M){w(i,M)},x)}g[i]=m,--b==0&&f(g)}catch(M){x(M)}}for(var v=0;v<g.length;v++)w(v,g[v])})},o.resolve=function(r){return r&&(r===void 0?"undefined":c(r))==="object"&&r.constructor===o?r:new o(function(f){f(r)})},o.reject=function(r){return new o(function(f,x){x(r)})},o.race=function(r){return new o(function(f,x){for(var g=0,b=r.length;g<b;g++)r[g].then(f,x)})},o._immediateFn=typeof u=="function"&&function(r){u(r)}||function(r){t(r,0)},o._unhandledRejectionFn=function(r){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",r)},y.exports=o}).call(this,d(36).setImmediate)},function(y,h,d){Object.defineProperty(h,"__esModule",{value:!0});var u=function(){function v(i,m){for(var k=0;k<m.length;k++){var M=m[k];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(i,M.key,M)}}return function(i,m,k){return m&&v(i.prototype,m),k&&v(i,k),i}}(),c=g(d(37)),t=g(d(0)),n=g(d(3)),o=g(d(18)),s=g(d(17)),e=g(d(13)),a=g(d(12)),l=g(d(11)),p=g(d(9)),r=g(d(8)),f=g(d(7)),x=g(d(6));function g(v){return v&&v.__esModule?v:{default:v}}var b=[],w=function(){function v(i){if(function(M,O){if(!(M instanceof O))throw new TypeError("Cannot call a class as a function")}(this,v),this.options=(0,o.default)(i),this.container=this.options.container,this.paused=!0,this.playedPromise=c.default.resolve(),this.mode="normal",this.randomOrder=t.default.randomOrder(this.options.audio.length),this.container.classList.add("aplayer"),this.options.lrcType&&!this.options.fixed&&this.container.classList.add("aplayer-withlrc"),this.options.audio.length>1&&this.container.classList.add("aplayer-withlist"),t.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,this.options.lrcType===2||this.options.lrcType===!0)for(var m=this.container.getElementsByClassName("aplayer-lrc-content"),k=0;k<m.length;k++)this.options.audio[k]&&(this.options.audio[k].lrc=m[k].innerHTML);this.template=new s.default({container:this.container,options:this.options,randomOrder:this.randomOrder}),this.options.fixed&&(this.container.classList.add("aplayer-fixed"),this.template.body.style.width=this.template.body.offsetWidth-18+"px"),this.options.mini&&(this.setMode("mini"),this.template.info.style.display="block"),this.template.info.offsetWidth<200&&this.template.time.classList.add("aplayer-time-narrow"),this.options.lrcType&&(this.lrc=new l.default({container:this.template.lrc,async:this.options.lrcType===3,player:this})),this.events=new f.default,this.storage=new a.default(this),this.bar=new e.default(this.template),this.controller=new p.default(this),this.timer=new r.default(this),this.list=new x.default(this),this.initAudio(),this.bindEvents(),this.options.order==="random"?this.list.switch(this.randomOrder[0]):this.list.switch(0),this.options.autoplay&&this.play(),b.push(this)}return u(v,[{key:"initAudio",value:function(){var i=this;this.audio=document.createElement("audio"),this.audio.preload=this.options.preload;for(var m=function(M){i.audio.addEventListener(i.events.audioEvents[M],function(O){i.events.trigger(i.events.audioEvents[M],O)})},k=0;k<this.events.audioEvents.length;k++)m(k);this.volume(this.storage.get("volume"),!0)}},{key:"bindEvents",value:function(){var i=this;this.on("play",function(){i.paused&&i.setUIPlaying()}),this.on("pause",function(){i.paused||i.setUIPaused()}),this.on("timeupdate",function(){if(!i.disableTimeupdate){i.bar.set("played",i.audio.currentTime/i.duration,"width"),i.lrc&&i.lrc.update();var k=t.default.secondToTime(i.audio.currentTime);i.template.ptime.innerHTML!==k&&(i.template.ptime.innerHTML=k)}}),this.on("durationchange",function(){i.duration!==1&&(i.template.dtime.innerHTML=t.default.secondToTime(i.duration))}),this.on("progress",function(){var k=i.audio.buffered.length?i.audio.buffered.end(i.audio.buffered.length-1)/i.duration:0;i.bar.set("loaded",k,"width")});var m=void 0;this.on("error",function(){i.list.audios.length>1?(i.notice("An audio error has occurred, player will skip forward in 2 seconds."),m=setTimeout(function(){i.skipForward(),i.paused||i.play()},2e3)):i.list.audios.length===1&&i.notice("An audio error has occurred.")}),this.events.on("listswitch",function(){m&&clearTimeout(m)}),this.on("ended",function(){i.options.loop==="none"?i.options.order==="list"?i.list.index<i.list.audios.length-1?(i.list.switch((i.list.index+1)%i.list.audios.length),i.play()):(i.list.switch((i.list.index+1)%i.list.audios.length),i.pause()):i.options.order==="random"&&(i.randomOrder.indexOf(i.list.index)<i.randomOrder.length-1?(i.list.switch(i.nextIndex()),i.play()):(i.list.switch(i.nextIndex()),i.pause())):i.options.loop==="one"?(i.list.switch(i.list.index),i.play()):i.options.loop==="all"&&(i.skipForward(),i.play())})}},{key:"setAudio",value:function(i){this.hls&&(this.hls.destroy(),this.hls=null);var m=i.type;this.options.customAudioType&&this.options.customAudioType[m]?Object.prototype.toString.call(this.options.customAudioType[m])==="[object Function]"?this.options.customAudioType[m](this.audio,i,this):console.error("Illegal customType: "+m):(m&&m!=="auto"||(m=/m3u8(#|\?|$)/i.exec(i.url)?"hls":"normal"),m==="hls"?Hls.isSupported()?(this.hls=new Hls,this.hls.loadSource(i.url),this.hls.attachMedia(this.audio)):this.audio.canPlayType("application/x-mpegURL")||this.audio.canPlayType("application/vnd.apple.mpegURL")?this.audio.src=i.url:this.notice("Error: HLS is not supported."):m==="normal"&&(this.audio.src=i.url)),this.seek(0),this.paused||this.audio.play()}},{key:"theme",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.list.index;(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])&&this.list.audios[m]&&(this.list.audios[m].theme=i),this.template.listCurs[m]&&(this.template.listCurs[m].style.backgroundColor=i),m===this.list.index&&(this.template.pic.style.backgroundColor=i,this.template.played.style.background=i,this.template.thumb.style.background=i,this.template.volume.style.background=i)}},{key:"seek",value:function(i){i=Math.max(i,0),i=Math.min(i,this.duration),this.audio.currentTime=i,this.bar.set("played",i/this.duration,"width"),this.template.ptime.innerHTML=t.default.secondToTime(i)}},{key:"setUIPlaying",value:function(){var i=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout(function(){i.template.button.innerHTML=n.default.pause},100),this.template.skipPlayButton.innerHTML=n.default.pause),this.timer.enable("loading"),this.options.mutex)for(var m=0;m<b.length;m++)this!==b[m]&&b[m].pause()}},{key:"play",value:function(){var i=this;this.setUIPlaying();var m=this.audio.play();m&&m.catch(function(k){console.warn(k),k.name==="NotAllowedError"&&i.setUIPaused()})}},{key:"setUIPaused",value:function(){var i=this;this.paused||(this.paused=!0,this.template.button.classList.remove("aplayer-pause"),this.template.button.classList.add("aplayer-play"),this.template.button.innerHTML="",setTimeout(function(){i.template.button.innerHTML=n.default.play},100),this.template.skipPlayButton.innerHTML=n.default.play),this.container.classList.remove("aplayer-loading"),this.timer.disable("loading")}},{key:"pause",value:function(){this.setUIPaused(),this.audio.pause()}},{key:"switchVolumeIcon",value:function(){this.volume()>=.95?this.template.volumeButton.innerHTML=n.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=n.default.volumeDown:this.template.volumeButton.innerHTML=n.default.volumeOff}},{key:"volume",value:function(i,m){return i=parseFloat(i),isNaN(i)||(i=Math.max(i,0),i=Math.min(i,1),this.bar.set("volume",i,"height"),m||this.storage.set("volume",i),this.audio.volume=i,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(i,m){this.events.on(i,m)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(i){this.list.switch(i)}},{key:"addAudio",value:function(i){this.list.add(i)}},{key:"removeAudio",value:function(i){this.list.remove(i)}},{key:"destroy",value:function(){b.splice(b.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"normal";this.mode=i,i==="mini"?this.container.classList.add("aplayer-narrow"):i==="normal"&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(i){var m=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2e3,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.8;this.template.notice.innerHTML=i,this.template.notice.style.opacity=M,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:i}),k&&(this.noticeTime=setTimeout(function(){m.template.notice.style.opacity=0,m.events.trigger("noticehide")},k))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if(this.options.order==="random"){var i=this.randomOrder.indexOf(this.list.index);return i===0?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[i-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return(this.list.index+1)%this.list.audios.length;if(this.options.order==="random"){var i=this.randomOrder.indexOf(this.list.index);return i===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[i+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),v}();h.default=w},,function(y,h,d){},function(y,h,d){Object.defineProperty(h,"__esModule",{value:!0}),d(40);var u,c=d(38),t=(u=c)&&u.__esModule?u:{default:u};console.log("\n %c APlayer v1.10.1 af84efb %c http://aplayer.js.org \n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),h.default=t.default}]).default})}(E)),E.exports}var V=$();const Y=A(V),ne=()=>{const{proxyLink:q,rawLink:_,previewPage:y}=P(),{searchParams:h}=j();let d=T.objs.filter(t=>t.type===S.AUDIO);(d.length===0||h.from==="search")&&(d=[T.obj]);let u;const c=t=>{let n;const o=T.objs.find(l=>L(l.name)===L(t.name)&&l.name.endsWith(".lrc"));o&&(n=q(o,!0));let s;const e=T.objs.find(l=>l.type===S.IMAGE&&(L(l.name).toLowerCase()===L(t.name).toLowerCase()||L(l.name).toLowerCase()==="front"||L(l.name).toLowerCase()==="cover"||L(l.name).toLowerCase()==="folder"));e?s=_(e,!0):s=t.thumb||U("audio_cover")||"https://cdn.oplist.org/gh/OpenListTeam/Logo@main/logo.svg";const a={name:t.name,artist:"Unknown",url:_(t,!0),cover:s,lrc:n};if(T.provider==="NeteaseMusic"){const l=t.name.match(/((.+)\s-\s)?(.+)\.(mp3|flac)/);a.artist=(l==null?void 0:l[2])||"Unknown",a.name=(l==null?void 0:l[3])||t.name;const p=new URL(y(t).replace(/\.(mp3|flac)/,".lrc"));a.lrc=decodeURIComponent(p.pathname)}return a};return H(()=>{u=new Y({container:document.querySelector("#audio-player"),mini:!1,autoplay:z("audio_autoplay"),theme:N(),loop:"all",order:"list",preload:"auto",volume:.7,mutex:!0,listFolded:!1,lrcType:T.provider==="NeteaseMusic"?1:3,audio:d.map(c)}),T.provider==="NeteaseMusic"&&u.on("loadstart",()=>{const n=u.list.index;if(!u.list.audios[n].lrc)return;const o=u.list.audios[n].lrc;R(o).then(s=>{u.lrc.async=!0,u.lrc.parsed[n]=void 0,u.list.audios[n].lrc=s.data.raw_url,u.lrc.switch(n),u.list.audios[n].lrc="",u.lrc.async=!1})});const t=d.findIndex(n=>n.name===T.obj.name);t!==-1&&u.list.switch(t),"mediaSession"in navigator&&(navigator.mediaSession.setActionHandler("seekto",n=>u.seek(n.seekTime)),u.list.audios.length>1&&(navigator.mediaSession.setActionHandler("previoustrack",()=>{u.skipBack()}),navigator.mediaSession.setActionHandler("nexttrack",()=>{u.skipForward()})),u.on("play",()=>{const n=u.list.audios[u.list.index];W(n.name),navigator.mediaSession.metadata=new MediaMetadata({title:n.name,artist:n.artist==="Unknown"?void 0:n.artist,artwork:[{src:n.cover}]})}))}),C(()=>{u==null||u.destroy()}),I(F,{w:"$full",id:"audio-player"})};export{ne as default};
@@ -1 +0,0 @@
1
- System.register(["./index-legacy-CtC7fn6O.js","./useTitle-legacy-CeyL-0_E.js","./icon-legacy-jbuQXJrW.js","./index-legacy-zjwrrR91.js","./Layout-legacy-D9Zk98K6.js","./FolderTree-legacy-DH3Vf9XJ.js","./index-legacy-C5X1tU4Z.js","./index-legacy-CDfFAMGs.js","./index-legacy-CwvCVg8-.js"],function(e,t){"use strict";var a,r,i,n,o,l,s,p,c,u,d,y,h,f,m;return{setters:[e=>{a=e.cG,r=e.ak,i=e.j,n=e.Q,o=e.at,l=e.N,s=e.D,p=e.am,c=e.aE,u=e.ap,d=e.e0,y=e.e1,h=e.a2},e=>{f=e.a},e=>{m=e.O},null,null,null,null,null,null],execute:function(){var t=document.createElement("style");t.textContent='.aplayer{background:#fff;font-family:Arial,Helvetica,sans-serif;margin:5px;box-shadow:0 2px 2px rgba(0,0,0,.07),0 1px 5px rgba(0,0,0,.1);border-radius:2px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:normal;position:relative}.aplayer *{box-sizing:content-box}.aplayer svg{width:100%;height:100%}.aplayer svg circle,.aplayer svg path{fill:#fff}.aplayer.aplayer-withlist .aplayer-info{border-bottom:1px solid #e9e9e9}.aplayer.aplayer-withlist .aplayer-list{display:block}.aplayer.aplayer-withlist .aplayer-icon-order,.aplayer.aplayer-withlist .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-menu{display:inline}.aplayer.aplayer-withlrc .aplayer-pic{height:90px;width:90px}.aplayer.aplayer-withlrc .aplayer-info{margin-left:90px;height:90px;padding:10px 7px 0}.aplayer.aplayer-withlrc .aplayer-lrc{display:block}.aplayer.aplayer-narrow{width:66px}.aplayer.aplayer-narrow .aplayer-info,.aplayer.aplayer-narrow .aplayer-list{display:none}.aplayer.aplayer-narrow .aplayer-body,.aplayer.aplayer-narrow .aplayer-pic{height:66px;width:66px}.aplayer.aplayer-fixed{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:99;overflow:visible;max-width:400px;box-shadow:none}.aplayer.aplayer-fixed .aplayer-list{margin-bottom:65px;border:1px solid #eee;border-bottom:none}.aplayer.aplayer-fixed .aplayer-body{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:99;background:#fff;padding-right:18px;transition:all .3s ease;max-width:400px}.aplayer.aplayer-fixed .aplayer-lrc{display:block;position:fixed;bottom:10px;left:0;right:0;margin:0;z-index:98;pointer-events:none;text-shadow:-1px -1px 0 #fff}.aplayer.aplayer-fixed .aplayer-lrc:after,.aplayer.aplayer-fixed .aplayer-lrc:before{display:none}.aplayer.aplayer-fixed .aplayer-info{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:0 0;transform-origin:0 0;transition:all .3s ease;border-bottom:none;border-top:1px solid #e9e9e9}.aplayer.aplayer-fixed .aplayer-info .aplayer-music{width:calc(100% - 105px)}.aplayer.aplayer-fixed .aplayer-miniswitcher{display:block}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-info{display:block;-webkit-transform:scaleX(0);transform:scaleX(0)}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body{width:66px!important}.aplayer.aplayer-fixed.aplayer-narrow .aplayer-miniswitcher .aplayer-icon{-webkit-transform:rotateY(0);transform:rotateY(0)}.aplayer.aplayer-fixed .aplayer-icon-back,.aplayer.aplayer-fixed .aplayer-icon-forward,.aplayer.aplayer-fixed .aplayer-icon-lrc,.aplayer.aplayer-fixed .aplayer-icon-play{display:inline-block}.aplayer.aplayer-fixed .aplayer-icon-back,.aplayer.aplayer-fixed .aplayer-icon-forward,.aplayer.aplayer-fixed .aplayer-icon-menu,.aplayer.aplayer-fixed .aplayer-icon-play{position:absolute;bottom:27px;width:20px;height:20px}.aplayer.aplayer-fixed .aplayer-icon-back{right:75px}.aplayer.aplayer-fixed .aplayer-icon-play{right:50px}.aplayer.aplayer-fixed .aplayer-icon-forward{right:25px}.aplayer.aplayer-fixed .aplayer-icon-menu{right:0}.aplayer.aplayer-arrow .aplayer-icon-loop,.aplayer.aplayer-arrow .aplayer-icon-order,.aplayer.aplayer-mobile .aplayer-icon-volume-down{display:none}.aplayer.aplayer-loading .aplayer-info .aplayer-controller .aplayer-loading-icon{display:block}.aplayer.aplayer-loading .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{-webkit-transform:scale(1);transform:scale(1)}.aplayer .aplayer-body{position:relative}.aplayer .aplayer-icon{width:15px;height:15px;border:none;background-color:transparent;outline:none;cursor:pointer;opacity:.8;vertical-align:middle;padding:0;font-size:12px;margin:0;display:inline-block}.aplayer .aplayer-icon path{transition:all .2s ease-in-out}.aplayer .aplayer-icon-back,.aplayer .aplayer-icon-forward,.aplayer .aplayer-icon-lrc,.aplayer .aplayer-icon-order,.aplayer .aplayer-icon-play{display:none}.aplayer .aplayer-icon-lrc-inactivity svg{opacity:.4}.aplayer .aplayer-icon-forward{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.aplayer .aplayer-lrc-content{display:none}.aplayer .aplayer-pic{position:relative;float:left;height:66px;width:66px;background-size:cover;background-position:50%;transition:all .3s ease;cursor:pointer}.aplayer .aplayer-pic:hover .aplayer-button{opacity:1}.aplayer .aplayer-pic .aplayer-button{position:absolute;border-radius:50%;opacity:.8;text-shadow:0 1px 1px rgba(0,0,0,.2);box-shadow:0 1px 1px rgba(0,0,0,.2);background:rgba(0,0,0,.2);transition:all .1s ease}.aplayer .aplayer-pic .aplayer-button path{fill:#fff}.aplayer .aplayer-pic .aplayer-hide{display:none}.aplayer .aplayer-pic .aplayer-play{width:26px;height:26px;border:2px solid #fff;bottom:50%;right:50%;margin:0 -15px -15px 0}.aplayer .aplayer-pic .aplayer-play svg{position:absolute;top:3px;left:4px;height:20px;width:20px}.aplayer .aplayer-pic .aplayer-pause{width:16px;height:16px;border:2px solid #fff;bottom:4px;right:4px}.aplayer .aplayer-pic .aplayer-pause svg{position:absolute;top:2px;left:2px;height:12px;width:12px}.aplayer .aplayer-info{margin-left:66px;padding:14px 7px 0 10px;height:66px;box-sizing:border-box}.aplayer .aplayer-info .aplayer-music{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0 0 13px 5px;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;cursor:default;padding-bottom:2px;height:20px}.aplayer .aplayer-info .aplayer-music .aplayer-title{font-size:14px}.aplayer .aplayer-info .aplayer-music .aplayer-author{font-size:12px;color:#666}.aplayer .aplayer-info .aplayer-controller{position:relative;display:flex}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap{margin:0 0 0 5px;padding:4px 0;cursor:pointer!important;flex:1}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap:hover .aplayer-bar .aplayer-played .aplayer-thumb{-webkit-transform:scale(1);transform:scale(1)}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar{position:relative;height:2px;width:100%;background:#cdcdcd}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-loaded{position:absolute;left:0;top:0;bottom:0;background:#aaa;height:2px;transition:all .5s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played{position:absolute;left:0;top:0;bottom:0;height:2px}.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:10px;width:10px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;-webkit-transform:scale(0);transform:scale(0)}.aplayer .aplayer-info .aplayer-controller .aplayer-time{position:relative;right:0;bottom:4px;height:17px;color:#999;font-size:11px;padding-left:7px}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-time-inner{vertical-align:middle}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon{cursor:pointer;transition:all .2s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon path{fill:#666}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-loop{margin-right:2px}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon:hover path{fill:#000}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-menu,.aplayer .aplayer-info .aplayer-controller .aplayer-time.aplayer-time-narrow .aplayer-icon-menu,.aplayer .aplayer-info .aplayer-controller .aplayer-time.aplayer-time-narrow .aplayer-icon-mode{display:none}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap{position:relative;display:inline-block;margin-left:3px;cursor:pointer!important}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap:hover .aplayer-volume-bar-wrap{height:40px}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap{position:absolute;bottom:15px;right:-3px;width:25px;height:0;z-index:99;overflow:hidden;transition:all .2s ease-in-out}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap.aplayer-volume-bar-wrap-active{height:40px}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar{position:absolute;bottom:0;right:10px;width:5px;height:35px;background:#aaa;border-radius:2.5px;overflow:hidden}.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar .aplayer-volume{position:absolute;bottom:0;right:0;width:5px;transition:all .1s ease}.aplayer .aplayer-info .aplayer-controller .aplayer-loading-icon{display:none}.aplayer .aplayer-info .aplayer-controller .aplayer-loading-icon svg{position:absolute;-webkit-animation:rotate 1s linear infinite;animation:rotate 1s linear infinite}.aplayer .aplayer-lrc{display:none;position:relative;height:30px;text-align:center;overflow:hidden;margin:-10px 0 7px}.aplayer .aplayer-lrc:before{top:0;height:10%;background:linear-gradient(180deg,#fff 0,rgba(255,255,255,0));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#00ffffff",GradientType=0)}.aplayer .aplayer-lrc:after,.aplayer .aplayer-lrc:before{position:absolute;z-index:1;display:block;overflow:hidden;width:100%;content:" "}.aplayer .aplayer-lrc:after{bottom:0;height:33%;background:linear-gradient(180deg,rgba(255,255,255,0) 0,rgba(255,255,255,.8));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ffffff",endColorstr="#ccffffff",GradientType=0)}.aplayer .aplayer-lrc p{font-size:12px;color:#666;line-height:16px!important;height:16px!important;padding:0!important;margin:0!important;transition:all .5s ease-out;opacity:.4;overflow:hidden}.aplayer .aplayer-lrc p.aplayer-lrc-current{opacity:1;overflow:visible;height:auto!important;min-height:16px}.aplayer .aplayer-lrc.aplayer-lrc-hide{display:none}.aplayer .aplayer-lrc .aplayer-lrc-contents{width:100%;transition:all .5s ease-out;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;cursor:default}.aplayer .aplayer-list{overflow:auto;transition:all .5s ease;will-change:height;display:none;overflow:hidden}.aplayer .aplayer-list.aplayer-list-hide{max-height:0!important}.aplayer .aplayer-list ol{list-style-type:none;margin:0;padding:0;overflow-y:auto}.aplayer .aplayer-list ol::-webkit-scrollbar{width:5px}.aplayer .aplayer-list ol::-webkit-scrollbar-thumb{border-radius:3px;background-color:#eee}.aplayer .aplayer-list ol::-webkit-scrollbar-thumb:hover{background-color:#ccc}.aplayer .aplayer-list ol li{position:relative;height:32px;line-height:32px;padding:0 15px;font-size:12px;border-top:1px solid #e9e9e9;cursor:pointer;transition:all .2s ease;overflow:hidden;margin:0}.aplayer .aplayer-list ol li:first-child{border-top:none}.aplayer .aplayer-list ol li:hover{background:#efefef}.aplayer .aplayer-list ol li.aplayer-list-light{background:#e9e9e9}.aplayer .aplayer-list ol li.aplayer-list-light .aplayer-list-cur{display:inline-block}.aplayer .aplayer-list ol li .aplayer-list-cur{display:none;width:3px;height:22px;position:absolute;left:0;top:5px;cursor:pointer}.aplayer .aplayer-list ol li .aplayer-list-index{color:#666;margin-right:12px;cursor:pointer}.aplayer .aplayer-list ol li .aplayer-list-author{color:#666;float:right;cursor:pointer}.aplayer .aplayer-notice{opacity:0;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);font-size:12px;border-radius:4px;padding:5px 10px;transition:all .3s ease-in-out;overflow:hidden;color:#fff;pointer-events:none;background-color:#f4f4f5;color:#909399}.aplayer .aplayer-miniswitcher{display:none;position:absolute;top:0;right:0;bottom:0;height:100%;background:#e6e6e6;width:18px;border-radius:0 2px 2px 0}.aplayer .aplayer-miniswitcher .aplayer-icon{height:100%;width:100%;-webkit-transform:rotateY(180deg);transform:rotateY(180deg);transition:all .3s ease}.aplayer .aplayer-miniswitcher .aplayer-icon path{fill:#666}.aplayer .aplayer-miniswitcher .aplayer-icon:hover path{fill:#000}@-webkit-keyframes aplayer-roll{0%{left:0}to{left:-100%}}@keyframes aplayer-roll{0%{left:0}to{left:-100%}}@-webkit-keyframes rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}#audio-player{border-radius:8px}.aplayer{background:var(--hope-colors-neutral2);color:var(--hope-colors-neutral12)!important}.aplayer-body .aplayer-pic{background-color:unset!important}.aplayer .aplayer-info .aplayer-music .aplayer-author{color:var(--hope-colors-neutral11)}.aplayer .aplayer-list ol li:hover,.aplayer .aplayer-list ol li.aplayer-list-light{background:var(--hope-colors-neutral4)}.aplayer .aplayer-list ol li .aplayer-list-author{color:var(--hope-colors-neutral9)}.aplayer .aplayer-list ol li .aplayer-list-index{color:var(--hope-colors-neutral10)}.aplayer .aplayer-lrc:after{background:none}.aplayer .aplayer-lrc:before{background:none}.aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon path{fill:var(--hope-colors-neutral12)}.aplayer .aplayer-lrc p{color:var(--hope-colors-neutral12)}.aplayer .aplayer-list ol li{border-top:1px solid var(--hope-colors-neutral6)}.aplayer.aplayer-withlist .aplayer-info{border-bottom:1px solid var(--hope-colors-neutral7)}\n/*$vite$:1*/',document.head.appendChild(t);var v,g={exports:{}},w=(v||(v=1,function(e){window,e.exports=function(e){var t={};function a(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},a.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/",a(a.s=41)}([function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var r=/mobile/i.test(window.navigator.userAgent),i={secondToTime:function(e){var t=Math.floor(e/3600),a=Math.floor((e-3600*t)/60),r=Math.floor(e-3600*t-60*a);return(t>0?[t,a,r]:[a,r]).map(function(e){return e<10?"0"+e:""+e}).join(":")},getElementViewLeft:function(e){var t=e.offsetLeft,a=e.offsetParent,r=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;null!==a&&a!==e;)t+=a.offsetLeft,a=a.offsetParent;else for(;null!==a;)t+=a.offsetLeft,a=a.offsetParent;return t-r},getElementViewTop:function(e,t){for(var a,r=e.offsetTop,i=e.offsetParent;null!==i;)r+=i.offsetTop,i=i.offsetParent;return a=document.body.scrollTop+document.documentElement.scrollTop,t?r:r-a},isMobile:r,storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}},nameMap:{dragStart:r?"touchstart":"mousedown",dragMove:r?"touchmove":"mousemove",dragEnd:r?"touchend":"mouseup"},randomOrder:function(e){return function(e){for(var t=e.length-1;t>=0;t--){var a=Math.floor(Math.random()*(t+1)),r=e[a];e[a]=e[t],e[t]=r}return e}([].concat(function(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}(Array(e))).map(function(e,t){return t}))}};t.default=i},function(e,t,a){var r=a(2);e.exports=function(e){e=e||{};var t="",a=r.$each,i=e.audio,n=(e.$value,e.$index,r.$escape),o=e.theme,l=e.index;return a(i,function(e,a){t+='\n<li>\n <span class="aplayer-list-cur" style="background-color: ',t+=n(e.theme||o),t+=';"></span>\n <span class="aplayer-list-index">',t+=n(a+l),t+='</span>\n <span class="aplayer-list-title">',t+=n(e.name),t+='</span>\n <span class="aplayer-list-author">',t+=n(e.artist),t+="</span>\n</li>\n"}),t}},function(e,t,a){e.exports=a(15)},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var r=g(a(33)),i=g(a(32)),n=g(a(31)),o=g(a(30)),l=g(a(29)),s=g(a(28)),p=g(a(27)),c=g(a(26)),u=g(a(25)),d=g(a(24)),y=g(a(23)),h=g(a(22)),f=g(a(21)),m=g(a(20)),v=g(a(19));function g(e){return e&&e.__esModule?e:{default:e}}var w={play:r.default,pause:i.default,volumeUp:n.default,volumeDown:o.default,volumeOff:l.default,orderRandom:s.default,orderList:p.default,menu:c.default,loopAll:u.default,loopOne:d.default,loopNone:y.default,loading:h.default,right:f.default,skip:m.default,lrc:v.default};t.default=w},function(e,t,a){var r,i="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};r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":i(window))&&(r=window)}e.exports=r},function(e,t,a){var r,i,n="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};void 0===(i="function"==typeof(r=function(){if("object"===("undefined"==typeof window?"undefined":n(window))&&void 0!==document.querySelectorAll&&void 0!==window.pageYOffset&&void 0!==history.pushState){var e=function(e,t,a,r){return a>r?t:e+(t-e)*((i=a/r)<.5?4*i*i*i:(i-1)*(2*i-2)*(2*i-2)+1);var i},t=function(t,a,r,i){a=a||500;var n=(i=i||window).scrollTop||window.pageYOffset;if("number"==typeof t)var o=parseInt(t);else o=function(e,t){return"HTML"===e.nodeName?-t:e.getBoundingClientRect().top+t}(t,n);var l=Date.now(),s=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,15)};!function p(){var c=Date.now()-l;i!==window?i.scrollTop=e(n,o,c,a):window.scroll(0,e(n,o,c,a)),c>a?"function"==typeof r&&r(t):s(p)}()},a=function(e){if(!e.defaultPrevented){e.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var a=document.getElementById(this.hash.substring(1));if(!a)return;t(a,500,function(e){location.replace("#"+e.id)})}};return document.addEventListener("DOMContentLoaded",function(){for(var e,t=document.querySelectorAll('a[href^="#"]:not([href="#"])'),r=t.length;e=t[--r];)e.addEventListener("click",a,!1)}),t}})?r.call(t,a,t,e):r)||(e.exports=i)},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=l(a(1)),n=l(a(0)),o=l(a(5));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,this.index=0,this.audios=this.player.options.audio,this.bindEvents()}return r(e,[{key:"bindEvents",value:function(){var e=this;this.player.template.list.addEventListener("click",function(t){var a=void 0;a="LI"===t.target.tagName.toUpperCase()?t.target:t.target.parentElement;var r=parseInt(a.getElementsByClassName("aplayer-list-index")[0].innerHTML)-1;r!==e.index?(e.switch(r),e.player.play()):e.player.toggle()})}},{key:"show",value:function(){this.player.events.trigger("listshow"),this.player.template.list.classList.remove("aplayer-list-hide"),this.player.template.listOl.scrollTop=33*this.index}},{key:"hide",value:function(){this.player.events.trigger("listhide"),this.player.template.list.classList.add("aplayer-list-hide")}},{key:"toggle",value:function(){this.player.template.list.classList.contains("aplayer-list-hide")?this.show():this.hide()}},{key:"add",value:function(e){this.player.events.trigger("listadd",{audios:e}),"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),e.map(function(e){return e.name=e.name||e.title||"Audio name",e.artist=e.artist||e.author||"Audio artist",e.cover=e.cover||e.pic,e.type=e.type||"normal",e});var t=!(this.audios.length>1),a=0===this.audios.length;this.player.template.listOl.innerHTML+=(0,i.default)({theme:this.player.options.theme,audio:e,index:this.audios.length+1}),this.audios=this.audios.concat(e),t&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=n.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=e.theme||this.player.options.theme,a&&("random"===this.player.options.order?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(e){if(this.player.events.trigger("listremove",{index:e}),this.audios[e])if(this.audios.length>1){var t=this.player.container.querySelectorAll(".aplayer-list li");t[e].remove(),this.audios.splice(e,1),this.player.lrc&&this.player.lrc.remove(e),e===this.index&&(this.audios[e]?this.switch(e):this.switch(e-1)),this.index>e&&this.index--;for(var a=e;a<t.length;a++)t[a].getElementsByClassName("aplayer-list-index")[0].textContent=a;1===this.audios.length&&this.player.container.classList.remove("aplayer-withlist"),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur")}else this.clear()}},{key:"switch",value:function(e){if(this.player.events.trigger("listswitch",{index:e}),void 0!==e&&this.audios[e]){this.index=e;var t=this.audios[this.index];this.player.template.pic.style.backgroundImage=t.cover?"url('"+t.cover+"')":"",this.player.theme(this.audios[this.index].theme||this.player.options.theme,this.index,!1),this.player.template.title.innerHTML=t.name,this.player.template.author.innerHTML=t.artist?" - "+t.artist:"";var a=this.player.container.getElementsByClassName("aplayer-list-light")[0];a&&a.classList.remove("aplayer-list-light"),this.player.container.querySelectorAll(".aplayer-list li")[this.index].classList.add("aplayer-list-light"),(0,o.default)(33*this.index,500,null,this.player.template.listOl),this.player.setAudio(t),this.player.lrc&&this.player.lrc.switch(this.index),this.player.lrc&&this.player.lrc.update(0),1!==this.player.duration&&(this.player.template.dtime.innerHTML=n.default.secondToTime(this.player.duration))}}},{key:"clear",value:function(){this.player.events.trigger("listclear"),this.index=0,this.player.container.classList.remove("aplayer-withlist"),this.player.pause(),this.audios=[],this.player.lrc&&this.player.lrc.clear(),this.player.audio.src="",this.player.template.listOl.innerHTML="",this.player.template.pic.style.backgroundImage="",this.player.theme(this.player.options.theme,this.index,!1),this.player.template.title.innerHTML="No audio",this.player.template.author.innerHTML="",this.player.bar.set("loaded",0,"width"),this.player.template.dtime.innerHTML=n.default.secondToTime(0)}}]),e}();t.default=s},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.events={},this.audioEvents=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],this.playerEvents=["destroy","listshow","listhide","listadd","listremove","listswitch","listclear","noticeshow","noticehide","lrcshow","lrchide"]}return r(e,[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var a=0;a<this.events[e].length;a++)this.events[e][a](t)}},{key:"type",value:function(e){return-1!==this.playerEvents.indexOf(e)?"player":-1!==this.audioEvents.indexOf(e)?"audio":(console.error("Unknown event name: "+e),null)}}]),e}();t.default=i},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},this.types=["loading"],this.init()}return r(e,[{key:"init",value:function(){var e=this;this.types.forEach(function(t){e["init"+t+"Checker"]()})}},{key:"initloadingChecker",value:function(){var e=this,t=0,a=0,r=!1;this.loadingChecker=setInterval(function(){e.enableloadingChecker&&(a=e.player.audio.currentTime,r||a!==t||e.player.audio.paused||(e.player.container.classList.add("aplayer-loading"),r=!0),r&&a>t&&!e.player.audio.paused&&(e.player.container.classList.remove("aplayer-loading"),r=!1),t=a)},100)}},{key:"enable",value:function(e){this["enable"+e+"Checker"]=!0,"fps"===e&&this.initfpsChecker()}},{key:"disable",value:function(e){this["enable"+e+"Checker"]=!1}},{key:"destroy",value:function(){var e=this;this.types.forEach(function(t){e["enable"+t+"Checker"]=!1,e[t+"Checker"]&&clearInterval(e[t+"Checker"])})}}]),e}();t.default=i},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=o(a(0)),n=o(a(3));function o(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,this.initPlayButton(),this.initPlayBar(),this.initOrderButton(),this.initLoopButton(),this.initMenuButton(),i.default.isMobile||this.initVolumeButton(),this.initMiniSwitcher(),this.initSkipButton(),this.initLrcButton()}return r(e,[{key:"initPlayButton",value:function(){var e=this;this.player.template.pic.addEventListener("click",function(){e.player.toggle()})}},{key:"initPlayBar",value:function(){var e=this,t=function(t){var a=((t.clientX||t.changedTouches[0].clientX)-i.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;a=Math.max(a,0),a=Math.min(a,1),e.player.bar.set("played",a,"width"),e.player.lrc&&e.player.lrc.update(a*e.player.duration),e.player.template.ptime.innerHTML=i.default.secondToTime(a*e.player.duration)},a=function a(r){document.removeEventListener(i.default.nameMap.dragEnd,a),document.removeEventListener(i.default.nameMap.dragMove,t);var n=((r.clientX||r.changedTouches[0].clientX)-i.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;n=Math.max(n,0),n=Math.min(n,1),e.player.bar.set("played",n,"width"),e.player.seek(e.player.bar.get("played","width")*e.player.duration),e.player.disableTimeupdate=!1};this.player.template.barWrap.addEventListener(i.default.nameMap.dragStart,function(){e.player.disableTimeupdate=!0,document.addEventListener(i.default.nameMap.dragMove,t),document.addEventListener(i.default.nameMap.dragEnd,a)})}},{key:"initVolumeButton",value:function(){var e=this;this.player.template.volumeButton.addEventListener("click",function(){e.player.audio.muted?(e.player.audio.muted=!1,e.player.switchVolumeIcon(),e.player.bar.set("volume",e.player.volume(),"height")):(e.player.audio.muted=!0,e.player.switchVolumeIcon(),e.player.bar.set("volume",0,"height"))});var t=function(t){var a=1-((t.clientY||t.changedTouches[0].clientY)-i.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;a=Math.max(a,0),a=Math.min(a,1),e.player.volume(a)},a=function a(r){e.player.template.volumeBarWrap.classList.remove("aplayer-volume-bar-wrap-active"),document.removeEventListener(i.default.nameMap.dragEnd,a),document.removeEventListener(i.default.nameMap.dragMove,t);var n=1-((r.clientY||r.changedTouches[0].clientY)-i.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;n=Math.max(n,0),n=Math.min(n,1),e.player.volume(n)};this.player.template.volumeBarWrap.addEventListener(i.default.nameMap.dragStart,function(){e.player.template.volumeBarWrap.classList.add("aplayer-volume-bar-wrap-active"),document.addEventListener(i.default.nameMap.dragMove,t),document.addEventListener(i.default.nameMap.dragEnd,a)})}},{key:"initOrderButton",value:function(){var e=this;this.player.template.order.addEventListener("click",function(){"list"===e.player.options.order?(e.player.options.order="random",e.player.template.order.innerHTML=n.default.orderRandom):"random"===e.player.options.order&&(e.player.options.order="list",e.player.template.order.innerHTML=n.default.orderList)})}},{key:"initLoopButton",value:function(){var e=this;this.player.template.loop.addEventListener("click",function(){e.player.list.audios.length>1?"one"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=n.default.loopNone):"none"===e.player.options.loop?(e.player.options.loop="all",e.player.template.loop.innerHTML=n.default.loopAll):"all"===e.player.options.loop&&(e.player.options.loop="one",e.player.template.loop.innerHTML=n.default.loopOne):"one"===e.player.options.loop||"all"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=n.default.loopNone):"none"===e.player.options.loop&&(e.player.options.loop="all",e.player.template.loop.innerHTML=n.default.loopAll)})}},{key:"initMenuButton",value:function(){var e=this;this.player.template.menu.addEventListener("click",function(){e.player.list.toggle()})}},{key:"initMiniSwitcher",value:function(){var e=this;this.player.template.miniSwitcher.addEventListener("click",function(){e.player.setMode("mini"===e.player.mode?"normal":"mini")})}},{key:"initSkipButton",value:function(){var e=this;this.player.template.skipBackButton.addEventListener("click",function(){e.player.skipBack()}),this.player.template.skipForwardButton.addEventListener("click",function(){e.player.skipForward()}),this.player.template.skipPlayButton.addEventListener("click",function(){e.player.toggle()})}},{key:"initLrcButton",value:function(){var e=this;this.player.template.lrcButton.addEventListener("click",function(){e.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(e.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.show()):(e.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.hide())})}}]),e}();t.default=l},function(e,t,a){var r=a(2);e.exports=function(e){e=e||{};var t="",a=r.$each,i=e.lyrics,n=(e.$value,e.$index,r.$escape);return a(i,function(e,a){t+="\n <p",0===a&&(t+=' class="aplayer-lrc-current"'),t+=">",t+=n(e[1]),t+="</p>\n"}),t}},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),n=(r=a(10))&&r.__esModule?r:{default:r},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.async=t.async,this.player=t.player,this.parsed=[],this.index=0,this.current=[]}return i(e,[{key:"show",value:function(){this.player.events.trigger("lrcshow"),this.player.template.lrcWrap.classList.remove("aplayer-lrc-hide")}},{key:"hide",value:function(){this.player.events.trigger("lrchide"),this.player.template.lrcWrap.classList.add("aplayer-lrc-hide")}},{key:"toggle",value:function(){this.player.template.lrcWrap.classList.contains("aplayer-lrc-hide")?this.show():this.hide()}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||e<this.current[this.index][0]||!this.current[this.index+1]||e>=this.current[this.index+1][0])for(var t=0;t<this.current.length;t++)e>=this.current[t][0]&&(!this.current[t+1]||e<this.current[t+1][0])&&(this.index=t,this.container.style.transform="translateY("+16*-this.index+"px)",this.container.style.webkitTransform="translateY("+16*-this.index+"px)",this.container.getElementsByClassName("aplayer-lrc-current")[0].classList.remove("aplayer-lrc-current"),this.container.getElementsByTagName("p")[t].classList.add("aplayer-lrc-current"))}},{key:"switch",value:function(e){var t=this;if(!this.parsed[e])if(this.async){this.parsed[e]=[["00:00","Loading"]];var a=new XMLHttpRequest;a.onreadystatechange=function(){e===t.player.list.index&&4===a.readyState&&(a.status>=200&&a.status<300||304===a.status?t.parsed[e]=t.parse(a.responseText):(t.player.notice("LRC file request fails: status "+a.status),t.parsed[e]=[["00:00","Not available"]]),t.container.innerHTML=(0,n.default)({lyrics:t.parsed[e]}),t.update(0),t.current=t.parsed[e])};var r=this.player.list.audios[e].lrc;a.open("get",r,!0),a.send(null)}else this.player.list.audios[e].lrc?this.parsed[e]=this.parse(this.player.list.audios[e].lrc):this.parsed[e]=[["00:00","Not available"]];this.container.innerHTML=(0,n.default)({lyrics:this.parsed[e]}),this.update(0),this.current=this.parsed[e]}},{key:"parse",value:function(e){if(e){for(var t=(e=e.replace(/([^\]^\n])\[/g,function(e,t){return t+"\n["})).split("\n"),a=[],r=t.length,i=0;i<r;i++){var n=t[i].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),o=t[i].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(n)for(var l=n.length,s=0;s<l;s++){var p=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/.exec(n[s]),c=60*p[1]+parseInt(p[2])+(p[4]?parseInt(p[4])/(2===(p[4]+"").length?100:1e3):0);a.push([c,o])}}return(a=a.filter(function(e){return e[1]})).sort(function(e,t){return e[0]-t[0]}),a}return[]}},{key:"remove",value:function(e){this.parsed.splice(e,1)}},{key:"clear",value:function(){this.parsed=[],this.container.innerHTML=""}}]),e}();t.default=o},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),n=(r=a(0))&&r.__esModule?r:{default:r},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.storageName=t.options.storageName,this.data=JSON.parse(n.default.storage.get(this.storageName)),this.data||(this.data={}),this.data.volume=this.data.volume||t.options.volume}return i(e,[{key:"get",value:function(e){return this.data[e]}},{key:"set",value:function(e,t){this.data[e]=t,n.default.storage.set(this.storageName,JSON.stringify(this.data))}}]),e}();t.default=o},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elements={},this.elements.volume=t.volume,this.elements.played=t.played,this.elements.loaded=t.loaded}return r(e,[{key:"set",value:function(e,t,a){t=Math.max(t,0),t=Math.min(t,1),this.elements[e].style[a]=100*t+"%"}},{key:"get",value:function(e,t){return parseFloat(this.elements[e].style[t])/100}}]),e}();t.default=i},function(e,t,a){(function(t){e.exports=!1;try{e.exports="[object process]"===Object.prototype.toString.call(t.process)}catch(e){}}).call(this,a(4))},function(e,t,a){(function(t){var r=a(14),i=Object.create(r?t:window),n=/["&'<>]/;i.$escape=function(e){return function(e){var t=""+e,a=n.exec(t);if(!a)return e;var r="",i=void 0,o=void 0,l=void 0;for(i=a.index,o=0;i<t.length;i++){switch(t.charCodeAt(i)){case 34:l="&#34;";break;case 38:l="&#38;";break;case 39:l="&#39;";break;case 60:l="&#60;";break;case 62:l="&#62;";break;default:continue}o!==i&&(r+=t.substring(o,i)),o=i+1,r+=l}return o!==i?r+t.substring(o,i):r}(function e(t){return"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t)),t}(e))},i.$each=function(e,t){if(Array.isArray(e))for(var a=0,r=e.length;a<r;a++)t(e[a],a);else for(var i in e)t(e[i],i)},e.exports=i}).call(this,a(4))},function(e,t,a){var r=a(2);e.exports=function(e){var t="",i=(e=e||{}).options,n=e.cover,o=r.$escape,l=e.icons,s=function(e){return t+=e},p=e.getObject;return e.theme,e.audio,e.index,i.fixed?(t+='\n<div class="aplayer-list',i.listFolded&&(t+=" aplayer-list-hide"),t+='"',i.listMaxHeight&&(t+=' style="max-height: ',t+=o(i.listMaxHeight),t+='"'),t+=">\n <ol",i.listMaxHeight&&(t+=' style="max-height: ',t+=o(i.listMaxHeight),t+='"'),t+=">\n ",s(a(1)(p({theme:i.theme,audio:i.audio,index:1}))),t+='\n </ol>\n</div>\n<div class="aplayer-body">\n <div class="aplayer-pic" style="',n&&(t+="background-image: url(&quot;",t+=o(n),t+="&quot;);"),t+="background-color: ",t+=o(i.theme),t+=';">\n <div class="aplayer-button aplayer-play">',t+=l.play,t+='</div>\n </div>\n <div class="aplayer-info" style="display: none;">\n <div class="aplayer-music">\n <span class="aplayer-title">No audio</span>\n <span class="aplayer-author"></span>\n </div>\n <div class="aplayer-controller">\n <div class="aplayer-bar-wrap">\n <div class="aplayer-bar">\n <div class="aplayer-loaded" style="width: 0"></div>\n <div class="aplayer-played" style="width: 0; background: ',t+=o(i.theme),t+=';">\n <span class="aplayer-thumb" style="background: ',t+=o(i.theme),t+=';">\n <span class="aplayer-loading-icon">',t+=l.loading,t+='</span>\n </span>\n </div>\n </div>\n </div>\n <div class="aplayer-time">\n <span class="aplayer-time-inner">\n <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n </span>\n <span class="aplayer-icon aplayer-icon-back">\n ',t+=l.skip,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-play">\n ',t+=l.play,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-forward">\n ',t+=l.skip,t+='\n </span>\n <div class="aplayer-volume-wrap">\n <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n ',t+=l.volumeDown,t+='\n </button>\n <div class="aplayer-volume-bar-wrap">\n <div class="aplayer-volume-bar">\n <div class="aplayer-volume" style="height: 80%; background: ',t+=o(i.theme),t+=';"></div>\n </div>\n </div>\n </div>\n <button type="button" class="aplayer-icon aplayer-icon-order">\n ',"list"===i.order?t+=l.orderList:"random"===i.order&&(t+=l.orderRandom),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-loop">\n ',"one"===i.loop?t+=l.loopOne:"all"===i.loop?t+=l.loopAll:"none"===i.loop&&(t+=l.loopNone),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-menu">\n ',t+=l.menu,t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-lrc">\n ',t+=l.lrc,t+='\n </button>\n </div>\n </div>\n </div>\n <div class="aplayer-notice"></div>\n <div class="aplayer-miniswitcher"><button class="aplayer-icon">',t+=l.right,t+='</button></div>\n</div>\n<div class="aplayer-lrc">\n <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n</div>\n'):(t+='\n<div class="aplayer-body">\n <div class="aplayer-pic" style="',n&&(t+="background-image: url(&quot;",t+=o(n),t+="&quot;);"),t+="background-color: ",t+=o(i.theme),t+=';">\n <div class="aplayer-button aplayer-play">',t+=l.play,t+='</div>\n </div>\n <div class="aplayer-info">\n <div class="aplayer-music">\n <span class="aplayer-title">No audio</span>\n <span class="aplayer-author"></span>\n </div>\n <div class="aplayer-lrc">\n <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n </div>\n <div class="aplayer-controller">\n <div class="aplayer-bar-wrap">\n <div class="aplayer-bar">\n <div class="aplayer-loaded" style="width: 0"></div>\n <div class="aplayer-played" style="width: 0; background: ',t+=o(i.theme),t+=';">\n <span class="aplayer-thumb" style="background: ',t+=o(i.theme),t+=';">\n <span class="aplayer-loading-icon">',t+=l.loading,t+='</span>\n </span>\n </div>\n </div>\n </div>\n <div class="aplayer-time">\n <span class="aplayer-time-inner">\n <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n </span>\n <span class="aplayer-icon aplayer-icon-back">\n ',t+=l.skip,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-play">\n ',t+=l.play,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-forward">\n ',t+=l.skip,t+='\n </span>\n <div class="aplayer-volume-wrap">\n <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n ',t+=l.volumeDown,t+='\n </button>\n <div class="aplayer-volume-bar-wrap">\n <div class="aplayer-volume-bar">\n <div class="aplayer-volume" style="height: 80%; background: ',t+=o(i.theme),t+=';"></div>\n </div>\n </div>\n </div>\n <button type="button" class="aplayer-icon aplayer-icon-order">\n ',"list"===i.order?t+=l.orderList:"random"===i.order&&(t+=l.orderRandom),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-loop">\n ',"one"===i.loop?t+=l.loopOne:"all"===i.loop?t+=l.loopAll:"none"===i.loop&&(t+=l.loopNone),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-menu">\n ',t+=l.menu,t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-lrc">\n ',t+=l.lrc,t+='\n </button>\n </div>\n </div>\n </div>\n <div class="aplayer-notice"></div>\n <div class="aplayer-miniswitcher"><button class="aplayer-icon">',t+=l.right,t+='</button></div>\n</div>\n<div class="aplayer-list',i.listFolded&&(t+=" aplayer-list-hide"),t+='"',i.listMaxHeight&&(t+=' style="max-height: ',t+=o(i.listMaxHeight),t+='"'),t+=">\n <ol",i.listMaxHeight&&(t+=' style="max-height: ',t+=o(i.listMaxHeight),t+='"'),t+=">\n ",s(a(1)(p({theme:i.theme,audio:i.audio,index:1}))),t+="\n </ol>\n</div>\n"),t}},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=o(a(3)),n=o(a(16));function o(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.randomOrder=t.randomOrder,this.init()}return r(e,[{key:"init",value:function(){var e="";this.options.audio.length&&(e="random"===this.options.order?this.options.audio[this.randomOrder[0]].cover:this.options.audio[0].cover),this.container.innerHTML=(0,n.default)({options:this.options,icons:i.default,cover:e,getObject:function(e){return e}}),this.lrc=this.container.querySelector(".aplayer-lrc-contents"),this.lrcWrap=this.container.querySelector(".aplayer-lrc"),this.ptime=this.container.querySelector(".aplayer-ptime"),this.info=this.container.querySelector(".aplayer-info"),this.time=this.container.querySelector(".aplayer-time"),this.barWrap=this.container.querySelector(".aplayer-bar-wrap"),this.button=this.container.querySelector(".aplayer-button"),this.body=this.container.querySelector(".aplayer-body"),this.list=this.container.querySelector(".aplayer-list"),this.listOl=this.container.querySelector(".aplayer-list ol"),this.listCurs=this.container.querySelectorAll(".aplayer-list-cur"),this.played=this.container.querySelector(".aplayer-played"),this.loaded=this.container.querySelector(".aplayer-loaded"),this.thumb=this.container.querySelector(".aplayer-thumb"),this.volume=this.container.querySelector(".aplayer-volume"),this.volumeBar=this.container.querySelector(".aplayer-volume-bar"),this.volumeButton=this.container.querySelector(".aplayer-time button"),this.volumeBarWrap=this.container.querySelector(".aplayer-volume-bar-wrap"),this.loop=this.container.querySelector(".aplayer-icon-loop"),this.order=this.container.querySelector(".aplayer-icon-order"),this.menu=this.container.querySelector(".aplayer-icon-menu"),this.pic=this.container.querySelector(".aplayer-pic"),this.title=this.container.querySelector(".aplayer-title"),this.author=this.container.querySelector(".aplayer-author"),this.dtime=this.container.querySelector(".aplayer-dtime"),this.notice=this.container.querySelector(".aplayer-notice"),this.miniSwitcher=this.container.querySelector(".aplayer-miniswitcher"),this.skipBackButton=this.container.querySelector(".aplayer-icon-back"),this.skipForwardButton=this.container.querySelector(".aplayer-icon-forward"),this.skipPlayButton=this.container.querySelector(".aplayer-icon-play"),this.lrcButton=this.container.querySelector(".aplayer-icon-lrc")}}]),e}();t.default=l},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={container:e.element||document.getElementsByClassName("aplayer")[0],mini:e.narrow||e.fixed||!1,fixed:!1,autoplay:!1,mutex:!0,lrcType:e.showlrc||e.lrc||0,preload:"auto",theme:"#b7daff",loop:"all",order:"list",volume:.7,listFolded:e.fixed,listMaxHeight:e.listmaxheight||"250px",audio:e.music||[],storageName:"aplayer-setting"};for(var a in t)t.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=t[a]);return"[object Array]"!==Object.prototype.toString.call(e.audio)&&(e.audio=[e.audio]),e.audio.map(function(e){return e.name=e.name||e.title||"Audio name",e.artist=e.artist||e.author||"Audio artist",e.cover=e.cover||e.pic,e.type=e.type||"normal",e}),e.audio.length<=1&&"one"===e.loop&&(e.loop="all"),e}},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M26.667 5.333h-21.333c-0 0-0.001 0-0.001 0-1.472 0-2.666 1.194-2.666 2.666 0 0 0 0.001 0 0.001v-0 16c0 0 0 0.001 0 0.001 0 1.472 1.194 2.666 2.666 2.666 0 0 0.001 0 0.001 0h21.333c0 0 0.001 0 0.001 0 1.472 0 2.666-1.194 2.666-2.666 0-0 0-0.001 0-0.001v0-16c0-0 0-0.001 0-0.001 0-1.472-1.194-2.666-2.666-2.666-0 0-0.001 0-0.001 0h0zM5.333 16h5.333v2.667h-5.333v-2.667zM18.667 24h-13.333v-2.667h13.333v2.667zM26.667 24h-5.333v-2.667h5.333v2.667zM26.667 18.667h-13.333v-2.667h13.333v2.667z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M25.468 6.947c-0.326-0.172-0.724-0.151-1.030 0.057l-6.438 4.38v-3.553c0-0.371-0.205-0.71-0.532-0.884-0.326-0.172-0.724-0.151-1.030 0.057l-12 8.164c-0.274 0.186-0.438 0.496-0.438 0.827s0.164 0.641 0.438 0.827l12 8.168c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-3.556l6.438 4.382c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-16.333c0-0.371-0.205-0.71-0.532-0.884z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22 16l-10.105-10.6-1.895 1.987 8.211 8.613-8.211 8.612 1.895 1.988 8.211-8.613z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M4 16c0-6.6 5.4-12 12-12s12 5.4 12 12c0 1.2-0.8 2-2 2s-2-0.8-2-2c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8c1.2 0 2 0.8 2 2s-0.8 2-2 2c-6.6 0-12-5.4-12-12z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M2.667 7.027l1.707-1.693 22.293 22.293-1.693 1.707-4-4h-11.64v4l-5.333-5.333 5.333-5.333v4h8.973l-8.973-8.973v0.973h-2.667v-3.64l-4-4zM22.667 17.333h2.667v5.573l-2.667-2.667v-2.907zM22.667 6.667v-4l5.333 5.333-5.333 5.333v-4h-10.907l-2.667-2.667h13.573z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 33 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333zM17.333 20v-8h-1.333l-2.667 1.333v1.333h2v5.333h2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 22 32"><path d="M20.8 14.4q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2zM1.6 11.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2zM20.8 20.8q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M0.622 18.334h19.54v7.55l11.052-9.412-11.052-9.413v7.549h-19.54v3.725z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22.667 4l7 6-7 6 7 6-7 6v-4h-3.653l-3.76-3.76 2.827-2.827 2.587 2.587h2v-8h-2l-12 12h-6v-4h4.347l12-12h3.653v-4zM2.667 8h6l3.76 3.76-2.827 2.827-2.587-2.587h-4.347v-4z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528zM25.152 16q0 2.72-1.536 5.056t-4 3.36q-0.256 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.704 0.672-1.056 1.024-0.512 1.376-0.8 1.312-0.96 2.048-2.4t0.736-3.104-0.736-3.104-2.048-2.4q-0.352-0.288-1.376-0.8-0.672-0.352-0.672-1.056 0-0.448 0.32-0.8t0.8-0.352q0.224 0 0.48 0.096 2.496 1.056 4 3.36t1.536 5.056zM29.728 16q0 4.096-2.272 7.552t-6.048 5.056q-0.224 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.64 0.704-1.056 0.128-0.064 0.384-0.192t0.416-0.192q0.8-0.448 1.44-0.896 2.208-1.632 3.456-4.064t1.216-5.152-1.216-5.152-3.456-4.064q-0.64-0.448-1.44-0.896-0.128-0.096-0.416-0.192t-0.384-0.192q-0.704-0.416-0.704-1.056 0-0.448 0.32-0.8t0.832-0.352q0.224 0 0.448 0.096 3.776 1.632 6.048 5.056t2.272 7.552z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 17 32"><path d="M14.080 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048zM2.88 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 31"><path d="M15.552 15.168q0.448 0.32 0.448 0.832 0 0.448-0.448 0.768l-13.696 8.512q-0.768 0.512-1.312 0.192t-0.544-1.28v-16.448q0-0.96 0.544-1.28t1.312 0.192z"></path></svg>'},function(e,t,a){var r,i,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{i="function"==typeof clearTimeout?clearTimeout:l}catch(e){i=l}}();var p,c=[],u=!1,d=-1;function y(){u&&p&&(u=!1,p.length?c=p.concat(c):d=-1,c.length&&h())}function h(){if(!u){var e=s(y);u=!0;for(var t=c.length;t;){for(p=c,c=[];++d<t;)p&&p[d].run();d=-1,t=c.length}p=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===l||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];c.push(new f(e,t)),1!==c.length||u||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=m,n.addListener=m,n.once=m,n.off=m,n.removeListener=m,n.removeAllListeners=m,n.emit=m,n.prependListener=m,n.prependOnceListener=m,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(e,t,a){(function(e,t){!function(e,a){if(!e.setImmediate){var r,i,n,o,l,s=1,p={},c=!1,u=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){h(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,a=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=a,t}}()?(o="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&h(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),r=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){n.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(i=u.documentElement,r=function(e){var t=u.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(h,0,e)},d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),a=0;a<t.length;a++)t[a]=arguments[a+1];var i={callback:e,args:t};return p[s]=i,r(s),s++},d.clearImmediate=y}function y(e){delete p[e]}function h(e){if(c)setTimeout(h,0,e);else{var t=p[e];if(t){c=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(a,r)}}(t)}finally{y(e),c=!1}}}}}("undefined"==typeof self?void 0===e?void 0:e:self)}).call(this,a(4),a(34))},function(e,t,a){var r=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(r.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new i(r.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},a(35),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,a){(function(t){var a="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},r=setTimeout;function i(){}function n(e){if(!(this instanceof n))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function o(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,n._immediateFn(function(){var a=1===e._state?t.onFulfilled:t.onRejected;if(null!==a){var r;try{r=a(e._value)}catch(e){return void s(t.promise,e)}l(t.promise,r)}else(1===e._state?l:s)(t.promise,e._value)})):e._deferreds.push(t)}function l(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":a(t))||"function"==typeof t)){var r=t.then;if(t instanceof n)return e._state=3,e._value=t,void p(e);if("function"==typeof r)return void c((i=r,o=t,function(){i.apply(o,arguments)}),e)}e._state=1,e._value=t,p(e)}catch(t){s(e,t)}var i,o}function s(e,t){e._state=2,e._value=t,p(e)}function p(e){2===e._state&&0===e._deferreds.length&&n._immediateFn(function(){e._handled||n._unhandledRejectionFn(e._value)});for(var t=0,a=e._deferreds.length;t<a;t++)o(e,e._deferreds[t]);e._deferreds=null}function c(e,t){var a=!1;try{e(function(e){a||(a=!0,l(t,e))},function(e){a||(a=!0,s(t,e))})}catch(e){if(a)return;a=!0,s(t,e)}}n.prototype.catch=function(e){return this.then(null,e)},n.prototype.then=function(e,t){var a=new this.constructor(i);return o(this,new function(e,t,a){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=a}(e,t,a)),a},n.prototype.finally=function(e){var t=this.constructor;return this.then(function(a){return t.resolve(e()).then(function(){return a})},function(a){return t.resolve(e()).then(function(){return t.reject(a)})})},n.all=function(e){return new n(function(t,r){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);var n=i.length;function o(e,l){try{if(l&&("object"===(void 0===l?"undefined":a(l))||"function"==typeof l)){var s=l.then;if("function"==typeof s)return void s.call(l,function(t){o(e,t)},r)}i[e]=l,0==--n&&t(i)}catch(e){r(e)}}for(var l=0;l<i.length;l++)o(l,i[l])})},n.resolve=function(e){return e&&"object"===(void 0===e?"undefined":a(e))&&e.constructor===n?e:new n(function(t){t(e)})},n.reject=function(e){return new n(function(t,a){a(e)})},n.race=function(e){return new n(function(t,a){for(var r=0,i=e.length;r<i;r++)e[r].then(t,a)})},n._immediateFn="function"==typeof t&&function(e){t(e)}||function(e){r(e,0)},n._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},e.exports=n}).call(this,a(36).setImmediate)},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=m(a(37)),n=m(a(0)),o=m(a(3)),l=m(a(18)),s=m(a(17)),p=m(a(13)),c=m(a(12)),u=m(a(11)),d=m(a(9)),y=m(a(8)),h=m(a(7)),f=m(a(6));function m(e){return e&&e.__esModule?e:{default:e}}var v=[],g=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=(0,l.default)(t),this.container=this.options.container,this.paused=!0,this.playedPromise=i.default.resolve(),this.mode="normal",this.randomOrder=n.default.randomOrder(this.options.audio.length),this.container.classList.add("aplayer"),this.options.lrcType&&!this.options.fixed&&this.container.classList.add("aplayer-withlrc"),this.options.audio.length>1&&this.container.classList.add("aplayer-withlist"),n.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,2===this.options.lrcType||!0===this.options.lrcType)for(var a=this.container.getElementsByClassName("aplayer-lrc-content"),r=0;r<a.length;r++)this.options.audio[r]&&(this.options.audio[r].lrc=a[r].innerHTML);this.template=new s.default({container:this.container,options:this.options,randomOrder:this.randomOrder}),this.options.fixed&&(this.container.classList.add("aplayer-fixed"),this.template.body.style.width=this.template.body.offsetWidth-18+"px"),this.options.mini&&(this.setMode("mini"),this.template.info.style.display="block"),this.template.info.offsetWidth<200&&this.template.time.classList.add("aplayer-time-narrow"),this.options.lrcType&&(this.lrc=new u.default({container:this.template.lrc,async:3===this.options.lrcType,player:this})),this.events=new h.default,this.storage=new c.default(this),this.bar=new p.default(this.template),this.controller=new d.default(this),this.timer=new y.default(this),this.list=new f.default(this),this.initAudio(),this.bindEvents(),"random"===this.options.order?this.list.switch(this.randomOrder[0]):this.list.switch(0),this.options.autoplay&&this.play(),v.push(this)}return r(e,[{key:"initAudio",value:function(){var e=this;this.audio=document.createElement("audio"),this.audio.preload=this.options.preload;for(var t=function(t){e.audio.addEventListener(e.events.audioEvents[t],function(a){e.events.trigger(e.events.audioEvents[t],a)})},a=0;a<this.events.audioEvents.length;a++)t(a);this.volume(this.storage.get("volume"),!0)}},{key:"bindEvents",value:function(){var e=this;this.on("play",function(){e.paused&&e.setUIPlaying()}),this.on("pause",function(){e.paused||e.setUIPaused()}),this.on("timeupdate",function(){if(!e.disableTimeupdate){e.bar.set("played",e.audio.currentTime/e.duration,"width"),e.lrc&&e.lrc.update();var t=n.default.secondToTime(e.audio.currentTime);e.template.ptime.innerHTML!==t&&(e.template.ptime.innerHTML=t)}}),this.on("durationchange",function(){1!==e.duration&&(e.template.dtime.innerHTML=n.default.secondToTime(e.duration))}),this.on("progress",function(){var t=e.audio.buffered.length?e.audio.buffered.end(e.audio.buffered.length-1)/e.duration:0;e.bar.set("loaded",t,"width")});var t=void 0;this.on("error",function(){e.list.audios.length>1?(e.notice("An audio error has occurred, player will skip forward in 2 seconds."),t=setTimeout(function(){e.skipForward(),e.paused||e.play()},2e3)):1===e.list.audios.length&&e.notice("An audio error has occurred.")}),this.events.on("listswitch",function(){t&&clearTimeout(t)}),this.on("ended",function(){"none"===e.options.loop?"list"===e.options.order?e.list.index<e.list.audios.length-1?(e.list.switch((e.list.index+1)%e.list.audios.length),e.play()):(e.list.switch((e.list.index+1)%e.list.audios.length),e.pause()):"random"===e.options.order&&(e.randomOrder.indexOf(e.list.index)<e.randomOrder.length-1?(e.list.switch(e.nextIndex()),e.play()):(e.list.switch(e.nextIndex()),e.pause())):"one"===e.options.loop?(e.list.switch(e.list.index),e.play()):"all"===e.options.loop&&(e.skipForward(),e.play())})}},{key:"setAudio",value:function(e){this.hls&&(this.hls.destroy(),this.hls=null);var t=e.type;this.options.customAudioType&&this.options.customAudioType[t]?"[object Function]"===Object.prototype.toString.call(this.options.customAudioType[t])?this.options.customAudioType[t](this.audio,e,this):console.error("Illegal customType: "+t):(t&&"auto"!==t||(t=/m3u8(#|\?|$)/i.exec(e.url)?"hls":"normal"),"hls"===t?Hls.isSupported()?(this.hls=new Hls,this.hls.loadSource(e.url),this.hls.attachMedia(this.audio)):this.audio.canPlayType("application/x-mpegURL")||this.audio.canPlayType("application/vnd.apple.mpegURL")?this.audio.src=e.url:this.notice("Error: HLS is not supported."):"normal"===t&&(this.audio.src=e.url)),this.seek(0),this.paused||this.audio.play()}},{key:"theme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.list.index;(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&this.list.audios[t]&&(this.list.audios[t].theme=e),this.template.listCurs[t]&&(this.template.listCurs[t].style.backgroundColor=e),t===this.list.index&&(this.template.pic.style.backgroundColor=e,this.template.played.style.background=e,this.template.thumb.style.background=e,this.template.volume.style.background=e)}},{key:"seek",value:function(e){e=Math.max(e,0),e=Math.min(e,this.duration),this.audio.currentTime=e,this.bar.set("played",e/this.duration,"width"),this.template.ptime.innerHTML=n.default.secondToTime(e)}},{key:"setUIPlaying",value:function(){var e=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout(function(){e.template.button.innerHTML=o.default.pause},100),this.template.skipPlayButton.innerHTML=o.default.pause),this.timer.enable("loading"),this.options.mutex)for(var t=0;t<v.length;t++)this!==v[t]&&v[t].pause()}},{key:"play",value:function(){var e=this;this.setUIPlaying();var t=this.audio.play();t&&t.catch(function(t){console.warn(t),"NotAllowedError"===t.name&&e.setUIPaused()})}},{key:"setUIPaused",value:function(){var e=this;this.paused||(this.paused=!0,this.template.button.classList.remove("aplayer-pause"),this.template.button.classList.add("aplayer-play"),this.template.button.innerHTML="",setTimeout(function(){e.template.button.innerHTML=o.default.play},100),this.template.skipPlayButton.innerHTML=o.default.play),this.container.classList.remove("aplayer-loading"),this.timer.disable("loading")}},{key:"pause",value:function(){this.setUIPaused(),this.audio.pause()}},{key:"switchVolumeIcon",value:function(){this.volume()>=.95?this.template.volumeButton.innerHTML=o.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=o.default.volumeDown:this.template.volumeButton.innerHTML=o.default.volumeOff}},{key:"volume",value:function(e,t){return e=parseFloat(e),isNaN(e)||(e=Math.max(e,0),e=Math.min(e,1),this.bar.set("volume",e,"height"),t||this.storage.set("volume",e),this.audio.volume=e,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(e){this.list.switch(e)}},{key:"addAudio",value:function(e){this.list.add(e)}},{key:"removeAudio",value:function(e){this.list.remove(e)}},{key:"destroy",value:function(){v.splice(v.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"normal";this.mode=e,"mini"===e?this.container.classList.add("aplayer-narrow"):"normal"===e&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8;this.template.notice.innerHTML=e,this.template.notice.style.opacity=r,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:e}),a&&(this.noticeTime=setTimeout(function(){t.template.notice.style.opacity=0,t.events.trigger("noticehide")},a))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return 0===e?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[e-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return(this.list.index+1)%this.list.audios.length;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return e===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[e+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),e}();t.default=g},,function(e,t,a){},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),a(40);var r,i=(r=a(38))&&r.__esModule?r:{default:r};console.log("\n %c APlayer v1.10.1 af84efb %c http://aplayer.js.org \n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),t.default=i.default}]).default}(g)),g.exports);const b=a(w);e("default",()=>{const{proxyLink:e,rawLink:t,previewPage:a}=r(),{searchParams:v}=i();let g,w=n.objs.filter(e=>e.type===m.AUDIO);0!==w.length&&"search"!==v.from||(w=[n.obj]);const x=r=>{let i;const o=n.objs.find(e=>y(e.name)===y(r.name)&&e.name.endsWith(".lrc"));let l;o&&(i=e(o,!0));const s=n.objs.find(e=>e.type===m.IMAGE&&(y(e.name).toLowerCase()===y(r.name).toLowerCase()||"front"===y(e.name).toLowerCase()||"cover"===y(e.name).toLowerCase()||"folder"===y(e.name).toLowerCase()));l=s?t(s,!0):r.thumb||h("audio_cover")||"https://cdn.oplist.org/gh/OpenListTeam/Logo@main/logo.svg";const p={name:r.name,artist:"Unknown",url:t(r,!0),cover:l,lrc:i};if("NeteaseMusic"===n.provider){const e=r.name.match(/((.+)\s-\s)?(.+)\.(mp3|flac)/);p.artist=e?.[2]||"Unknown",p.name=e?.[3]||r.name;const t=new URL(a(r).replace(/\.(mp3|flac)/,".lrc"));p.lrc=decodeURIComponent(t.pathname)}return p};return o(()=>{g=new b({container:document.querySelector("#audio-player"),mini:!1,autoplay:u("audio_autoplay"),theme:c(),loop:"all",order:"list",preload:"auto",volume:.7,mutex:!0,listFolded:!1,lrcType:"NeteaseMusic"===n.provider?1:3,audio:w.map(x)}),"NeteaseMusic"===n.provider&&g.on("loadstart",()=>{const e=g.list.index;if(!g.list.audios[e].lrc)return;const t=g.list.audios[e].lrc;d(t).then(t=>{g.lrc.async=!0,g.lrc.parsed[e]=void 0,g.list.audios[e].lrc=t.data.raw_url,g.lrc.switch(e),g.list.audios[e].lrc="",g.lrc.async=!1})});const e=w.findIndex(e=>e.name===n.obj.name);-1!==e&&g.list.switch(e),"mediaSession"in navigator&&(navigator.mediaSession.setActionHandler("seekto",e=>g.seek(e.seekTime)),g.list.audios.length>1&&(navigator.mediaSession.setActionHandler("previoustrack",()=>{g.skipBack()}),navigator.mediaSession.setActionHandler("nexttrack",()=>{g.skipForward()})),g.on("play",()=>{const e=g.list.audios[g.list.index];f(e.name),navigator.mediaSession.metadata=new MediaMetadata({title:e.name,artist:"Unknown"===e.artist?void 0:e.artist,artwork:[{src:e.cover}]})}))}),l(()=>{g?.destroy()}),s(p,{w:"$full",id:"audio-player"})})}}});
@@ -1 +0,0 @@
1
- import{j as g,B as c,Q as l,at as v,N as E,av as P,aZ as u,D as a,ad as L,S as y,ac as j,o as R}from"./index-CSwg5QXS.js";var B=P("<div id=swf-container>");const I=()=>{const w=R(),{replace:i}=g(),[m,n]=c(!0),[p,s]=c(!1);let r=l.objs.filter(e=>e.name.toLowerCase().endsWith(".swf"));r.length===0&&(r=[l.obj]);const d=e=>{const t=r.findIndex(o=>o.name===l.obj.name);e.key==="ArrowLeft"&&t>0?i(r[t-1].name):e.key==="ArrowRight"&&t<r.length-1&&i(r[t+1].name)};v(()=>{window.addEventListener("keydown",d),h()}),E(()=>{window.removeEventListener("keydown",d);const e=document.getElementById("ruffle-player");e==null||e.remove();const t=document.getElementById("ruffle-script");t==null||t.remove()});const h=()=>{n(!0),s(!1);const e=document.getElementById("ruffle-player");if(e==null||e.remove(),window.RufflePlayer){f();return}const t=document.createElement("script");t.src="/static/ruffle/ruffle.js",t.async=!0,t.id="ruffle-script",t.onload=()=>{f()},t.onerror=()=>{s(!0),n(!1),console.error("无法加载Ruffle播放器")},document.head.appendChild(t)},f=()=>{try{const t=window.RufflePlayer.newest().createPlayer();t.id="ruffle-player",t.style.width="100%",t.style.height="100%";const o=document.getElementById("swf-container");o&&(o.innerHTML="",o.appendChild(t),t.addEventListener("loaded",()=>{n(!1)}),t.addEventListener("error",()=>{s(!0),n(!1)}),t.load(l.raw_url))}catch(e){console.error("Ruffle初始化失败:",e),s(!0),n(!1)}};return(()=>{var e=B();return e.style.setProperty("position","relative"),e.style.setProperty("width","100%"),e.style.setProperty("height","75vh"),e.style.setProperty("display","flex"),e.style.setProperty("justify-content","center"),e.style.setProperty("align-items","center"),u(e,a(y,{get when(){return m()},get children(){return a(L,{})}}),null),u(e,a(y,{get when(){return p()},get children(){return a(j,{get msg(){return w("preview.failed_load_swf")},h:"75vh"})}}),null),e})()};export{I as default};
@@ -1 +0,0 @@
1
- System.register(["./index-legacy-CtC7fn6O.js"],function(e,t){"use strict";var r,n,o,l,s,d,i,a,c,f,u,y;return{setters:[e=>{r=e.j,n=e.B,o=e.Q,l=e.at,s=e.N,d=e.av,i=e.aZ,a=e.D,c=e.ad,f=e.S,u=e.ac,y=e.o}],execute:function(){var t=d("<div id=swf-container>");e("default",()=>{const e=y(),{replace:d}=r(),[w,m]=n(!0),[h,p]=n(!1);let g=o.objs.filter(e=>e.name.toLowerCase().endsWith(".swf"));0===g.length&&(g=[o.obj]);const v=e=>{const t=g.findIndex(e=>e.name===o.obj.name);"ArrowLeft"===e.key&&t>0?d(g[t-1].name):"ArrowRight"===e.key&&t<g.length-1&&d(g[t+1].name)};l(()=>{window.addEventListener("keydown",v),E()}),s(()=>{window.removeEventListener("keydown",v);const e=document.getElementById("ruffle-player");e?.remove();const t=document.getElementById("ruffle-script");t?.remove()});const E=()=>{m(!0),p(!1);const e=document.getElementById("ruffle-player");if(e?.remove(),window.RufflePlayer)return void P();const t=document.createElement("script");t.src="/static/ruffle/ruffle.js",t.async=!0,t.id="ruffle-script",t.onload=()=>{P()},t.onerror=()=>{p(!0),m(!1),console.error("无法加载Ruffle播放器")},document.head.appendChild(t)},P=()=>{try{const e=window.RufflePlayer.newest().createPlayer();e.id="ruffle-player",e.style.width="100%",e.style.height="100%";const t=document.getElementById("swf-container");t&&(t.innerHTML="",t.appendChild(e),e.addEventListener("loaded",()=>{m(!1)}),e.addEventListener("error",()=>{p(!0),m(!1)}),e.load(o.raw_url))}catch(e){console.error("Ruffle初始化失败:",e),p(!0),m(!1)}};return(j=t()).style.setProperty("position","relative"),j.style.setProperty("width","100%"),j.style.setProperty("height","75vh"),j.style.setProperty("display","flex"),j.style.setProperty("justify-content","center"),j.style.setProperty("align-items","center"),i(j,a(f,{get when(){return w()},get children(){return a(c,{})}}),null),i(j,a(f,{get when(){return h()},get children(){return a(u,{get msg(){return e("preview.failed_load_swf")},h:"75vh"})}}),null),j;var j})}}});
@@ -1 +0,0 @@
1
- import{j as E,B as g,Q as f,at as S,N as $,av as D,aZ as m,D as h,ad as I,S as b,ac as k,o as B,ck as H,e4 as L}from"./index-CSwg5QXS.js";var A=D("<div id=heic-container><canvas>");const M=()=>{const v=B();E();const[d,n]=g(!0),[u,o]=g(!1);let y=f.objs.filter(e=>/\.(heic|heif|avif|vvc|avc|jpeg|jpg)$/i.test(e.name));y.length===0&&(y=[f.obj]);let l,c,i;S(()=>{P()}),$(()=>{l&&c&&(c=null),l=null});const P=async()=>{n(!0),o(!1);try{window.libheif||await j("/static/libheif/libheif.js","libheif-script");const e=await _("/static/libheif/libheif.wasm");l=window.libheif({wasmBinary:e}),c=new l.HeifDecoder,await C(f.raw_url)}catch(e){console.error("HEIC初始化失败:",e),o(!0),n(!1)}},j=(e,t)=>new Promise((a,r)=>{const s=document.createElement("script");s.src=e,s.id=t,s.onload=()=>a(),s.onerror=()=>r("脚本加载失败: ".concat(e)),document.head.appendChild(s)}),_=async e=>{const t=await fetch(e);if(!t.ok)throw"WASM加载失败: ".concat(e);return await t.arrayBuffer()},C=async e=>{try{n(!0),o(!1);const t=await fetch(e);if(!t.ok)throw"文件获取失败";const a=await t.arrayBuffer(),r=c.decode(a);if(!r||r.length===0)throw"没有可解码的图像";const s=r[0];await x(s),n(!1)}catch(t){console.error("HEIC解码失败:",t),o(!0),n(!1)}},x=e=>new Promise(t=>{if(!i)return t();const a=e.get_width(),r=e.get_height();i.width=a,i.height=r;const s=new ImageData(a,r);e.display(s,p=>{if(!p||!i)return t();const w=i.getContext("2d");if(!w)return t();w.putImageData(p,0,0),t()})});return(()=>{var e=A(),t=e.firstChild;e.style.setProperty("position","relative"),e.style.setProperty("width","100%"),e.style.setProperty("height","75vh"),e.style.setProperty("display","flex"),e.style.setProperty("justify-content","center"),e.style.setProperty("align-items","center"),e.style.setProperty("overflow","hidden");var a=i;return typeof a=="function"?L(a,t):i=t,t.style.setProperty("max-width","100%"),t.style.setProperty("max-height","100%"),t.style.setProperty("object-fit","contain"),m(e,h(b,{get when(){return d()},get children(){return h(I,{})}}),null),m(e,h(b,{get when(){return u()},get children(){return h(k,{get msg(){return v("preview.failed_load_heic")},h:"75vh"})}}),null),H(r=>(r=d()||u()?"none":"block")!=null?t.style.setProperty("display",r):t.style.removeProperty("display")),e})()};export{M as default};
@@ -1 +0,0 @@
1
- System.register(["./index-legacy-CtC7fn6O.js"],function(e,t){"use strict";var r,i,n,s,a,o,c,l,h,y,f,d,w,u;return{setters:[e=>{r=e.j,i=e.B,n=e.Q,s=e.at,a=e.N,o=e.av,c=e.aZ,l=e.D,h=e.ad,y=e.S,f=e.ac,d=e.o,w=e.ck,u=e.e4}],execute:function(){var t=o("<div id=heic-container><canvas>");e("default",()=>{const e=d();r();const[o,p]=i(!0),[g,m]=i(!1);let v,P,b,j=n.objs.filter(e=>/\.(heic|heif|avif|vvc|avc|jpeg|jpg)$/i.test(e.name));0===j.length&&(j=[n.obj]),s(()=>{x()}),a(()=>{v&&P&&(P=null),v=null});const x=async()=>{p(!0),m(!1);try{window.libheif||await C("/static/libheif/libheif.js","libheif-script");const e=await _("/static/libheif/libheif.wasm");v=window.libheif({wasmBinary:e}),P=new v.HeifDecoder,await k(n.raw_url)}catch(e){console.error("HEIC初始化失败:",e),m(!0),p(!1)}},C=(e,t)=>new Promise((r,i)=>{const n=document.createElement("script");n.src=e,n.id=t,n.onload=()=>r(),n.onerror=()=>i(`脚本加载失败: ${e}`),document.head.appendChild(n)}),_=async e=>{const t=await fetch(e);if(!t.ok)throw`WASM加载失败: ${e}`;return await t.arrayBuffer()},k=async e=>{try{p(!0),m(!1);const t=await fetch(e);if(!t.ok)throw"文件获取失败";const r=await t.arrayBuffer(),i=P.decode(r);if(!i||0===i.length)throw"没有可解码的图像";const n=i[0];await B(n),p(!1)}catch(t){console.error("HEIC解码失败:",t),m(!0),p(!1)}},B=e=>new Promise(t=>{if(!b)return t();const r=e.get_width(),i=e.get_height();b.width=r,b.height=i;const n=new ImageData(r,i);e.display(n,e=>{if(!e||!b)return t();const r=b.getContext("2d");if(!r)return t();r.putImageData(e,0,0),t()})});return D=t(),I=D.firstChild,D.style.setProperty("position","relative"),D.style.setProperty("width","100%"),D.style.setProperty("height","75vh"),D.style.setProperty("display","flex"),D.style.setProperty("justify-content","center"),D.style.setProperty("align-items","center"),D.style.setProperty("overflow","hidden"),"function"==typeof b?u(b,I):b=I,I.style.setProperty("max-width","100%"),I.style.setProperty("max-height","100%"),I.style.setProperty("object-fit","contain"),c(D,l(y,{get when(){return o()},get children(){return l(h,{})}}),null),c(D,l(y,{get when(){return g()},get children(){return l(f,{get msg(){return e("preview.failed_load_heic")},h:"75vh"})}}),null),w(e=>null!=(e=o()||g()?"none":"block")?I.style.setProperty("display",e):I.style.removeProperty("display")),D;var D,I})}}});
@@ -1 +0,0 @@
1
- import{cI as $,bc as X,a_ as Y,a$ as L,bg as F,Q as A,C as J,q as M,dR as z,N as O,b0 as Q,dN as T,k as U}from"./index-CSwg5QXS.js";import{b as G}from"./style-QIM1DiTv.js";/*! @viselect/vanilla v3.9.0 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */class V{constructor(){this._listeners=new Map,this.on=this.addEventListener,this.off=this.removeEventListener,this.emit=this.dispatchEvent}addEventListener(e,t){var i;const s=(i=this._listeners.get(e))!=null?i:new Set;return this._listeners.set(e,s),s.add(t),this}removeEventListener(e,t){var s;return(s=this._listeners.get(e))==null||s.delete(t),this}dispatchEvent(e,...t){var i;let s=!0;for(const o of(i=this._listeners.get(e))!=null?i:[])s=o(...t)!==!1&&s;return s}unbindAllListeners(){this._listeners.clear()}}const R=(n,e="px")=>typeof n=="number"?n+e:n,b=({style:n},e,t)=>{if(typeof e=="object")for(const[s,i]of Object.entries(e))i!==void 0&&(n[s]=R(i));else t!==void 0&&(n[e]=R(t))},B=(n=0,e=0,t=0,s=0)=>{const i={x:n,y:e,width:t,height:s,top:e,left:n,right:n+t,bottom:e+s};return{...i,toJSON:()=>JSON.stringify(i)}},Z=n=>{let e,t=-1,s=!1;return{next:(...i)=>{e=i,s||(s=!0,t=requestAnimationFrame(()=>{n(...e),s=!1}))},cancel:()=>{cancelAnimationFrame(t),s=!1}}},D=(n,e,t="touch")=>{switch(t){case"center":{const s=e.left+e.width/2,i=e.top+e.height/2;return s>=n.left&&s<=n.right&&i>=n.top&&i<=n.bottom}case"cover":return e.left>=n.left&&e.top>=n.top&&e.right<=n.right&&e.bottom<=n.bottom;case"touch":return n.right>=e.left&&n.left<=e.right&&n.bottom>=e.top&&n.top<=e.bottom}},ee=()=>matchMedia("(hover: none), (pointer: coarse)").matches,te=()=>"safari"in window,k=n=>Array.isArray(n)?n:[n],q=n=>(e,t,s,i={})=>{(e instanceof HTMLCollection||e instanceof NodeList)&&(e=Array.from(e)),t=k(t),e=k(e);for(const o of e)if(o)for(const l of t)o[n](l,s,{capture:!1,...i})},y=q("addEventListener"),v=q("removeEventListener"),w=n=>{var o;var e;const{clientX:t,clientY:s,target:i}=(o=(e=n.touches)==null?void 0:e[0])!=null?o:n;return{x:t,y:s,target:i}},E=(n,e=document)=>k(n).map(t=>typeof t=="string"?Array.from(e.querySelectorAll(t)):t instanceof Element?t:null).flat().filter(Boolean),se=(n,e)=>e.some(t=>typeof t=="number"?n.button===t:typeof t=="object"?t.button!==n.button?!1:t.modifiers.every(s=>{switch(s){case"alt":return n.altKey;case"ctrl":return n.ctrlKey||n.metaKey;case"shift":return n.shiftKey}}):!1),{abs:S,max:j,min:N,ceil:P}=Math,K=(n=[])=>({stored:n,selected:[],touched:[],changed:{added:[],removed:[]}}),W=class extends V{constructor(e){var t,s,i,o,l;super(),this._selection=K(),this._targetBoundaryScrolled=!0,this._selectables=[],this._areaLocation={y1:0,x2:0,y2:0,x1:0},this._areaRect=B(),this._singleClick=!0,this._scrollAvailable=!0,this._scrollingActive=!1,this._scrollSpeed={x:0,y:0},this._scrollDelta={x:0,y:0},this._lastMousePosition={x:0,y:0},this.enable=this._toggleStartEvents,this.disable=this._toggleStartEvents.bind(this,!1),this._options={selectionAreaClass:"selection-area",selectionContainerClass:void 0,selectables:[],document:window.document,startAreas:["html"],boundaries:["html"],container:"body",...e,behaviour:{overlap:"invert",intersect:"touch",triggers:[0],...e.behaviour,startThreshold:(t=e.behaviour)!=null&&t.startThreshold?typeof e.behaviour.startThreshold=="number"?e.behaviour.startThreshold:{x:10,y:10,...e.behaviour.startThreshold}:{x:10,y:10},scrolling:{speedDivider:10,manualSpeed:750,...(s=e.behaviour)==null?void 0:s.scrolling,startScrollMargins:{x:0,y:0,...(o=(i=e.behaviour)==null?void 0:i.scrolling)==null?void 0:o.startScrollMargins}}},features:{range:!0,touch:!0,deselectOnBlur:!1,...e.features,singleTap:{allow:!0,intersect:"native",...(l=e.features)==null?void 0:l.singleTap}}};for(const h of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))typeof this[h]=="function"&&(this[h]=this[h].bind(this));const{document:r,selectionAreaClass:d,selectionContainerClass:c}=this._options;this._area=r.createElement("div"),this._clippingElement=r.createElement("div"),this._clippingElement.appendChild(this._area),this._area.classList.add(d),c&&this._clippingElement.classList.add(c),b(this._area,{willChange:"top, left, bottom, right, width, height",top:0,left:0,position:"fixed"}),b(this._clippingElement,{overflow:"hidden",position:"fixed",transform:"translate3d(0, 0, 0)",pointerEvents:"none",zIndex:"1"}),this._frame=Z(h=>{this._recalculateSelectionAreaRect(),this._updateElementSelection(),this._emitEvent("move",h),this._redrawSelectionArea()}),this.enable()}_toggleStartEvents(e=!0){const{document:t,features:s}=this._options,i=e?y:v;i(t,"mousedown",this._onTapStart),s.touch&&i(t,"touchstart",this._onTapStart,{passive:!1})}_onTapStart(e,t=!1){var x;const{x:s,y:i,target:o}=w(e),{document:l,startAreas:r,boundaries:d,features:c,behaviour:h}=this._options,a=o.getBoundingClientRect();if(e instanceof MouseEvent&&!se(e,h.triggers))return;const p=E(r,l),f=E(d,l);this._targetElement=f.find(g=>D(g.getBoundingClientRect(),a));const m=e.composedPath(),_=p.find(g=>m.includes(g));if(this._targetBoundary=f.find(g=>m.includes(g)),!this._targetElement||!_||!this._targetBoundary||!t&&this._emitEvent("beforestart",e)===!1)return;this._areaLocation={x1:s,y1:i,x2:0,y2:0};const u=(x=l.scrollingElement)!=null?x:l.body;this._scrollDelta={x:u.scrollLeft,y:u.scrollTop},this._singleClick=!0,this.clearSelection(!1,!0),y(l,["touchmove","mousemove"],this._delayedTapMove,{passive:!1}),y(l,["mouseup","touchcancel","touchend"],this._onTapStop),y(l,"scroll",this._onScroll),c.deselectOnBlur&&(this._targetBoundaryScrolled=!1,y(this._targetBoundary,"scroll",this._onStartAreaScroll))}_onSingleTap(e){const{singleTap:{intersect:t},range:s}=this._options.features,i=w(e);let o;if(t==="native")o=i.target;else if(t==="touch"){this.resolveSelectables();const{x:r,y:d}=i;o=this._selectables.find(c=>{const{right:h,left:a,top:p,bottom:f}=c.getBoundingClientRect();return r<h&&r>a&&d<f&&d>p})}if(!o)return;for(this.resolveSelectables();!this._selectables.includes(o);)if(o.parentElement)o=o.parentElement;else{this._targetBoundaryScrolled||this.clearSelection();return}const{stored:l}=this._selection;if(this._emitEvent("start",e),e.shiftKey&&s&&this._latestElement){const r=this._latestElement,[d,c]=r.compareDocumentPosition(o)&4?[o,r]:[r,o],h=[...this._selectables.filter(a=>a.compareDocumentPosition(d)&4&&a.compareDocumentPosition(c)&2),d,c];this.select(h),this._latestElement=r}else l.includes(o)&&(l.length===1||e.ctrlKey||l.every(r=>this._selection.stored.includes(r)))?this.deselect(o):(this.select(o),this._latestElement=o)}_delayedTapMove(e){const{container:t,document:s,behaviour:{startThreshold:i}}=this._options,{x1:o,y1:l}=this._areaLocation,{x:r,y:d}=w(e);if(typeof i=="number"&&S(r+d-(o+l))>=i||typeof i=="object"&&S(r-o)>=i.x||S(d-l)>=i.y){if(v(s,["mousemove","touchmove"],this._delayedTapMove,{passive:!1}),this._emitEvent("beforedrag",e)===!1){v(s,["mouseup","touchcancel","touchend"],this._onTapStop);return}y(s,["mousemove","touchmove"],this._onTapMove,{passive:!1}),b(this._area,"display","block"),E(t,s)[0].appendChild(this._clippingElement),this.resolveSelectables(),this._singleClick=!1,this._targetRect=this._targetElement.getBoundingClientRect(),this._scrollAvailable=this._targetElement.scrollHeight!==this._targetElement.clientHeight||this._targetElement.scrollWidth!==this._targetElement.clientWidth,this._scrollAvailable&&(y(this._targetElement,"wheel",this._wheelScroll,{passive:!1}),y(this._options.document,"keydown",this._keyboardScroll,{passive:!1}),this._selectables=this._selectables.filter(c=>this._targetElement.contains(c))),this._setupSelectionArea(),this._emitEvent("start",e),this._onTapMove(e)}this._handleMoveEvent(e)}_setupSelectionArea(){const{_clippingElement:e,_targetElement:t,_area:s}=this,i=this._targetRect=t.getBoundingClientRect();this._scrollAvailable?(b(e,{top:i.top,left:i.left,width:i.width,height:i.height}),b(s,{marginTop:-i.top,marginLeft:-i.left})):(b(e,{top:0,left:0,width:"100%",height:"100%"}),b(s,{marginTop:0,marginLeft:0}))}_onTapMove(e){const{_scrollSpeed:t,_areaLocation:s,_options:i,_frame:o}=this,{speedDivider:l}=i.behaviour.scrolling,r=this._targetElement,{x:d,y:c}=w(e);if(s.x2=d,s.y2=c,this._lastMousePosition.x=d,this._lastMousePosition.y=c,this._scrollAvailable&&!this._scrollingActive&&(t.y||t.x)){this._scrollingActive=!0;const h=()=>{if(!t.x&&!t.y){this._scrollingActive=!1;return}const{scrollTop:a,scrollLeft:p}=r;t.y&&(r.scrollTop+=P(t.y/l),s.y1-=r.scrollTop-a),t.x&&(r.scrollLeft+=P(t.x/l),s.x1-=r.scrollLeft-p),o.next(e),requestAnimationFrame(h)};requestAnimationFrame(h)}else o.next(e);this._handleMoveEvent(e)}_handleMoveEvent(e){const{features:t}=this._options;(t.touch&&ee()||this._scrollAvailable&&te())&&e.preventDefault()}_onScroll(){var o;const{_scrollDelta:e,_options:{document:t}}=this,{scrollTop:s,scrollLeft:i}=(o=t.scrollingElement)!=null?o:t.body;this._areaLocation.x1+=e.x-i,this._areaLocation.y1+=e.y-s,e.x=i,e.y=s,this._setupSelectionArea(),this._frame.next(null)}_onStartAreaScroll(){this._targetBoundaryScrolled=!0,v(this._targetElement,"scroll",this._onStartAreaScroll)}_wheelScroll(e){const{manualSpeed:t}=this._options.behaviour.scrolling,s=e.deltaY?e.deltaY>0?1:-1:0,i=e.deltaX?e.deltaX>0?1:-1:0;this._scrollSpeed.y+=s*t,this._scrollSpeed.x+=i*t,this._onTapMove(e),e.preventDefault()}_keyboardScroll(e){const{manualSpeed:t}=this._options.behaviour.scrolling,s=e.key==="ArrowLeft"?-1:e.key==="ArrowRight"?1:0,i=e.key==="ArrowUp"?-1:e.key==="ArrowDown"?1:0;this._scrollSpeed.x+=Math.sign(s)*t,this._scrollSpeed.y+=Math.sign(i)*t,e.preventDefault(),this._onTapMove({clientX:this._lastMousePosition.x,clientY:this._lastMousePosition.y,preventDefault:()=>{}})}_recalculateSelectionAreaRect(){const{_scrollSpeed:e,_areaLocation:t,_targetElement:s,_options:i}=this,{scrollTop:o,scrollHeight:l,clientHeight:r,scrollLeft:d,scrollWidth:c,clientWidth:h}=s,a=this._targetRect,{x1:p,y1:f}=t;let{x2:m,y2:_}=t;const{behaviour:{scrolling:{startScrollMargins:u}}}=i;m<a.left+u.x?(e.x=d?-S(a.left-m+u.x):0,m=m<a.left?a.left:m):m>a.right-u.x?(e.x=c-d-h?S(a.left+a.width-m-u.x):0,m=m>a.right?a.right:m):e.x=0,_<a.top+u.y?(e.y=o?-S(a.top-_+u.y):0,_=_<a.top?a.top:_):_>a.bottom-u.y?(e.y=l-o-r?S(a.top+a.height-_-u.y):0,_=_>a.bottom?a.bottom:_):e.y=0;const x=N(p,m),g=N(f,_),H=j(p,m),I=j(f,_);this._areaRect=B(x,g,H-x,I-g)}_redrawSelectionArea(){const{x:e,y:t,width:s,height:i}=this._areaRect,{style:o}=this._area;o.left="".concat(e,"px"),o.top="".concat(t,"px"),o.width="".concat(s,"px"),o.height="".concat(i,"px")}_onTapStop(e,t){var s;const{document:i,features:o}=this._options,{_singleClick:l}=this;v(this._targetElement,"scroll",this._onStartAreaScroll),v(i,["mousemove","touchmove"],this._delayedTapMove),v(i,["touchmove","mousemove"],this._onTapMove),v(i,["mouseup","touchcancel","touchend"],this._onTapStop),v(i,"scroll",this._onScroll),this._keepSelection(),e&&l&&o.singleTap.allow?this._onSingleTap(e):!l&&!t&&(this._updateElementSelection(),this._emitEvent("stop",e)),this._scrollSpeed.x=0,this._scrollSpeed.y=0,v(this._targetElement,"wheel",this._wheelScroll,{passive:!0}),v(this._options.document,"keydown",this._keyboardScroll,{passive:!0}),this._clippingElement.remove(),(s=this._frame)==null||s.cancel(),b(this._area,"display","none")}_updateElementSelection(){const{_selectables:e,_options:t,_selection:s,_areaRect:i}=this,{stored:o,selected:l,touched:r}=s,{intersect:d,overlap:c}=t.behaviour,h=c==="invert",a=[],p=[],f=[];for(let _=0;_<e.length;_++){const u=e[_];if(D(i,u.getBoundingClientRect(),d)){if(l.includes(u))o.includes(u)&&!r.includes(u)&&r.push(u);else if(h&&o.includes(u)){f.push(u);continue}else p.push(u);a.push(u)}}h&&p.push(...o.filter(_=>!l.includes(_)));const m=c==="keep";for(let _=0;_<l.length;_++){const u=l[_];!a.includes(u)&&!(m&&o.includes(u))&&f.push(u)}s.selected=a,s.changed={added:p,removed:f},this._latestElement=void 0}_emitEvent(e,t){return this.emit(e,{event:t,store:this._selection,selection:this})}_keepSelection(){const{_options:e,_selection:t}=this,{selected:s,changed:i,touched:o,stored:l}=t,r=s.filter(d=>!l.includes(d));switch(e.behaviour.overlap){case"drop":{t.stored=[...r,...l.filter(d=>!o.includes(d))];break}case"invert":{t.stored=[...r,...l.filter(d=>!i.removed.includes(d))];break}case"keep":{t.stored=[...l,...s.filter(d=>!l.includes(d))];break}}}trigger(e,t=!0){this._onTapStart(e,t)}resolveSelectables(){this._selectables=E(this._options.selectables,this._options.document)}clearSelection(e=!0,t=!1){const{selected:s,stored:i,changed:o}=this._selection;o.added=[],o.removed.push(...s,...e?i:[]),t||(this._emitEvent("move",null),this._emitEvent("stop",null)),this._selection=K(e?[]:i)}getSelection(){return this._selection.stored}getSelectionArea(){return this._area}getSelectables(){return this._selectables}setAreaLocation(e){Object.assign(this._areaLocation,e),this._redrawSelectionArea()}getAreaLocation(){return this._areaLocation}cancel(e=!1){this._onTapStop(null,!e)}destroy(){this.cancel(),this.disable(),this._clippingElement.remove(),super.unbindAllListeners()}select(e,t=!1){const{changed:s,selected:i,stored:o}=this._selection,l=E(e,this._options.document).filter(r=>!i.includes(r)&&!o.includes(r));return o.push(...l),i.push(...l),s.added.push(...l),s.removed=[],this._latestElement=void 0,t||(this._emitEvent("move",null),this._emitEvent("stop",null)),l}deselect(e,t=!1){const{selected:s,stored:i,changed:o}=this._selection,l=E(e,this._options.document).filter(r=>s.includes(r)||i.includes(r));this._selection.stored=i.filter(r=>!l.includes(r)),this._selection.selected=s.filter(r=>!l.includes(r)),this._selection.changed.added=[],this._selection.changed.removed.push(...l.filter(r=>!o.removed.includes(r))),this._latestElement=void 0,t||(this._emitEvent("move",null),this._emitEvent("stop",null))}};W.version="3.9.0";let ie=W,C=null;function re(){const n=()=>!z&&Y(),e=()=>n()&&M.open_item_on_checkbox==="dblclick",t=()=>n()&&M.open_item_on_checkbox==="disable_while_checked"&&L(),s=()=>{C=U()},i=()=>{if(C===null)return!1;for(let c=0;c<A.objs.length;++c)T(c,C.indexOf(A.objs[c])>=0);return!0},o=()=>{C=null},l=()=>{J(()=>{if(!n()){const h=document.querySelector(".viselect-container");h==null||h.addEventListener("mousedown",s),O(()=>h==null?void 0:h.removeEventListener("mousedown",s));return}const c=new ie({selectionAreaClass:"viselect-selection-area",startAreas:[".viselect-container"],boundaries:[".viselect-container"],selectables:[".viselect-item"]});c.on("beforestart",()=>{s(),c.clearSelection(!0,!0),c.select(".viselect-item.selected",!0)}),c.on("start",({event:h})=>{const a=h;a.type==="mousemove"&&o(),!a.shiftKey&&!a.ctrlKey&&!a.metaKey&&(Q(!1),c.clearSelection(!0))}),c.on("move",({store:{changed:{added:h,removed:a}}})=>{for(const p of h)T(Number(p.getAttribute("data-index")),!0);for(const p of a)T(Number(p.getAttribute("data-index")),!1)}),O(()=>c.destroy())})},{show:r}=G({id:1});return{isMouseSupported:n,openWithDoubleClick:e,toggleWithClick:t,restoreSelectionCache:i,registerSelectContainer:l,captureContentMenu:c=>{if(c.preventDefault(),L()&&!F()){const a=c.target.closest(".viselect-item"),p=Number(a==null?void 0:a.getAttribute("data-index"));if(Number.isNaN(p)||!!!A.objs[p].selected)return;c.stopPropagation(),r(c,{props:A.obj})}}}}const ae=$(X,{baseStyle:{_before:{content:"",pos:"absolute",top:-10,right:-2,bottom:-10,left:-10}}});export{ae as I,re as u};
@@ -1 +0,0 @@
1
- System.register(["./index-legacy-CtC7fn6O.js","./style-legacy-DqRFDAwL.js"],function(e,t){"use strict";var s,i,o,l,n,r,a,c,h,d,u,_,p,m;return{setters:[e=>{s=e.cI,i=e.bc,o=e.a_,l=e.a$,n=e.bg,r=e.Q,a=e.C,c=e.q,h=e.dR,d=e.N,u=e.b0,_=e.dN,p=e.k},e=>{m=e.b}],execute:function(){e("u",function(){const e=()=>!h&&o(),t=()=>{D=p()},{show:s}=m({id:1});return{isMouseSupported:e,openWithDoubleClick:()=>e()&&"dblclick"===c.open_item_on_checkbox,toggleWithClick:()=>e()&&"disable_while_checked"===c.open_item_on_checkbox&&l(),restoreSelectionCache:()=>{if(null===D)return!1;for(let e=0;e<r.objs.length;++e)_(e,D.indexOf(r.objs[e])>=0);return!0},registerSelectContainer:()=>{a(()=>{if(!e()){const e=document.querySelector(".viselect-container");return e?.addEventListener("mousedown",t),void d(()=>e?.removeEventListener("mousedown",t))}const s=new B({selectionAreaClass:"viselect-selection-area",startAreas:[".viselect-container"],boundaries:[".viselect-container"],selectables:[".viselect-item"]});s.on("beforestart",()=>{t(),s.clearSelection(!0,!0),s.select(".viselect-item.selected",!0)}),s.on("start",({event:e})=>{const t=e;"mousemove"===t.type&&(D=null),t.shiftKey||t.ctrlKey||t.metaKey||(u(!1),s.clearSelection(!0))}),s.on("move",({store:{changed:{added:e,removed:t}}})=>{for(const s of e)_(Number(s.getAttribute("data-index")),!0);for(const s of t)_(Number(s.getAttribute("data-index")),!1)}),d(()=>s.destroy())})},captureContentMenu:e=>{if(e.preventDefault(),l()&&!n()){const t=e.target.closest(".viselect-item"),i=Number(t?.getAttribute("data-index"));if(Number.isNaN(i)||!r.objs[i].selected)return;e.stopPropagation(),s(e,{props:r.obj})}}}});/*! @viselect/vanilla v3.9.0 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */class t{constructor(){this._listeners=new Map,this.on=this.addEventListener,this.off=this.removeEventListener,this.emit=this.dispatchEvent}addEventListener(e,t){const s=this._listeners.get(e)??new Set;return this._listeners.set(e,s),s.add(t),this}removeEventListener(e,t){var s;return null==(s=this._listeners.get(e))||s.delete(t),this}dispatchEvent(e,...t){let s=!0;for(const i of this._listeners.get(e)??[])s=!1!==i(...t)&&s;return s}unbindAllListeners(){this._listeners.clear()}}const v=(e,t="px")=>"number"==typeof e?e+t:e,g=({style:e},t,s)=>{if("object"==typeof t)for(const[i,o]of Object.entries(t))void 0!==o&&(e[i]=v(o));else void 0!==s&&(e[t]=v(s))},f=(e=0,t=0,s=0,i=0)=>{const o={x:e,y:t,width:s,height:i,top:t,left:e,right:e+s,bottom:t+i};return{...o,toJSON:()=>JSON.stringify(o)}},b=(e,t,s="touch")=>{switch(s){case"center":{const s=t.left+t.width/2,i=t.top+t.height/2;return s>=e.left&&s<=e.right&&i>=e.top&&i<=e.bottom}case"cover":return t.left>=e.left&&t.top>=e.top&&t.right<=e.right&&t.bottom<=e.bottom;case"touch":return e.right>=t.left&&e.left<=t.right&&e.bottom>=t.top&&e.top<=t.bottom}},y=e=>Array.isArray(e)?e:[e],S=e=>(t,s,i,o={})=>{(t instanceof HTMLCollection||t instanceof NodeList)&&(t=Array.from(t)),s=y(s),t=y(t);for(const l of t)if(l)for(const t of s)l[e](t,i,{capture:!1,...o})},E=S("addEventListener"),x=S("removeEventListener"),A=e=>{var t;const{clientX:s,clientY:i,target:o}=(null==(t=e.touches)?void 0:t[0])??e;return{x:s,y:i,target:o}},w=(e,t=document)=>y(e).map(e=>"string"==typeof e?Array.from(t.querySelectorAll(e)):e instanceof Element?e:null).flat().filter(Boolean),{abs:T,max:L,min:M,ceil:k}=Math,C=(e=[])=>({stored:e,selected:[],touched:[],changed:{added:[],removed:[]}}),R=class extends t{constructor(e){var t,s,i,o,l;super(),this._selection=C(),this._targetBoundaryScrolled=!0,this._selectables=[],this._areaLocation={y1:0,x2:0,y2:0,x1:0},this._areaRect=f(),this._singleClick=!0,this._scrollAvailable=!0,this._scrollingActive=!1,this._scrollSpeed={x:0,y:0},this._scrollDelta={x:0,y:0},this._lastMousePosition={x:0,y:0},this.enable=this._toggleStartEvents,this.disable=this._toggleStartEvents.bind(this,!1),this._options={selectionAreaClass:"selection-area",selectionContainerClass:void 0,selectables:[],document:window.document,startAreas:["html"],boundaries:["html"],container:"body",...e,behaviour:{overlap:"invert",intersect:"touch",triggers:[0],...e.behaviour,startThreshold:null!=(t=e.behaviour)&&t.startThreshold?"number"==typeof e.behaviour.startThreshold?e.behaviour.startThreshold:{x:10,y:10,...e.behaviour.startThreshold}:{x:10,y:10},scrolling:{speedDivider:10,manualSpeed:750,...null==(s=e.behaviour)?void 0:s.scrolling,startScrollMargins:{x:0,y:0,...null==(o=null==(i=e.behaviour)?void 0:i.scrolling)?void 0:o.startScrollMargins}}},features:{range:!0,touch:!0,deselectOnBlur:!1,...e.features,singleTap:{allow:!0,intersect:"native",...null==(l=e.features)?void 0:l.singleTap}}};for(const c of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))"function"==typeof this[c]&&(this[c]=this[c].bind(this));const{document:n,selectionAreaClass:r,selectionContainerClass:a}=this._options;this._area=n.createElement("div"),this._clippingElement=n.createElement("div"),this._clippingElement.appendChild(this._area),this._area.classList.add(r),a&&this._clippingElement.classList.add(a),g(this._area,{willChange:"top, left, bottom, right, width, height",top:0,left:0,position:"fixed"}),g(this._clippingElement,{overflow:"hidden",position:"fixed",transform:"translate3d(0, 0, 0)",pointerEvents:"none",zIndex:"1"}),this._frame=(e=>{let t,s=-1,i=!1;return{next:(...o)=>{t=o,i||(i=!0,s=requestAnimationFrame(()=>{e(...t),i=!1}))},cancel:()=>{cancelAnimationFrame(s),i=!1}}})(e=>{this._recalculateSelectionAreaRect(),this._updateElementSelection(),this._emitEvent("move",e),this._redrawSelectionArea()}),this.enable()}_toggleStartEvents(e=!0){const{document:t,features:s}=this._options,i=e?E:x;i(t,"mousedown",this._onTapStart),s.touch&&i(t,"touchstart",this._onTapStart,{passive:!1})}_onTapStart(e,t=!1){const{x:s,y:i,target:o}=A(e),{document:l,startAreas:n,boundaries:r,features:a,behaviour:c}=this._options,h=o.getBoundingClientRect();if(e instanceof MouseEvent&&!((e,t)=>t.some(t=>"number"==typeof t?e.button===t:"object"==typeof t&&t.button===e.button&&t.modifiers.every(t=>{switch(t){case"alt":return e.altKey;case"ctrl":return e.ctrlKey||e.metaKey;case"shift":return e.shiftKey}})))(e,c.triggers))return;const d=w(n,l),u=w(r,l);this._targetElement=u.find(e=>b(e.getBoundingClientRect(),h));const _=e.composedPath(),p=d.find(e=>_.includes(e));if(this._targetBoundary=u.find(e=>_.includes(e)),!this._targetElement||!p||!this._targetBoundary||!t&&!1===this._emitEvent("beforestart",e))return;this._areaLocation={x1:s,y1:i,x2:0,y2:0};const m=l.scrollingElement??l.body;this._scrollDelta={x:m.scrollLeft,y:m.scrollTop},this._singleClick=!0,this.clearSelection(!1,!0),E(l,["touchmove","mousemove"],this._delayedTapMove,{passive:!1}),E(l,["mouseup","touchcancel","touchend"],this._onTapStop),E(l,"scroll",this._onScroll),a.deselectOnBlur&&(this._targetBoundaryScrolled=!1,E(this._targetBoundary,"scroll",this._onStartAreaScroll))}_onSingleTap(e){const{singleTap:{intersect:t},range:s}=this._options.features,i=A(e);let o;if("native"===t)o=i.target;else if("touch"===t){this.resolveSelectables();const{x:e,y:t}=i;o=this._selectables.find(s=>{const{right:i,left:o,top:l,bottom:n}=s.getBoundingClientRect();return e<i&&e>o&&t<n&&t>l})}if(!o)return;for(this.resolveSelectables();!this._selectables.includes(o);){if(!o.parentElement)return void(this._targetBoundaryScrolled||this.clearSelection());o=o.parentElement}const{stored:l}=this._selection;if(this._emitEvent("start",e),e.shiftKey&&s&&this._latestElement){const e=this._latestElement,[t,s]=4&e.compareDocumentPosition(o)?[o,e]:[e,o],i=[...this._selectables.filter(e=>4&e.compareDocumentPosition(t)&&2&e.compareDocumentPosition(s)),t,s];this.select(i),this._latestElement=e}else l.includes(o)&&(1===l.length||e.ctrlKey||l.every(e=>this._selection.stored.includes(e)))?this.deselect(o):(this.select(o),this._latestElement=o)}_delayedTapMove(e){const{container:t,document:s,behaviour:{startThreshold:i}}=this._options,{x1:o,y1:l}=this._areaLocation,{x:n,y:r}=A(e);if("number"==typeof i&&T(n+r-(o+l))>=i||"object"==typeof i&&T(n-o)>=i.x||T(r-l)>=i.y){if(x(s,["mousemove","touchmove"],this._delayedTapMove,{passive:!1}),!1===this._emitEvent("beforedrag",e))return void x(s,["mouseup","touchcancel","touchend"],this._onTapStop);E(s,["mousemove","touchmove"],this._onTapMove,{passive:!1}),g(this._area,"display","block"),w(t,s)[0].appendChild(this._clippingElement),this.resolveSelectables(),this._singleClick=!1,this._targetRect=this._targetElement.getBoundingClientRect(),this._scrollAvailable=this._targetElement.scrollHeight!==this._targetElement.clientHeight||this._targetElement.scrollWidth!==this._targetElement.clientWidth,this._scrollAvailable&&(E(this._targetElement,"wheel",this._wheelScroll,{passive:!1}),E(this._options.document,"keydown",this._keyboardScroll,{passive:!1}),this._selectables=this._selectables.filter(e=>this._targetElement.contains(e))),this._setupSelectionArea(),this._emitEvent("start",e),this._onTapMove(e)}this._handleMoveEvent(e)}_setupSelectionArea(){const{_clippingElement:e,_targetElement:t,_area:s}=this,i=this._targetRect=t.getBoundingClientRect();this._scrollAvailable?(g(e,{top:i.top,left:i.left,width:i.width,height:i.height}),g(s,{marginTop:-i.top,marginLeft:-i.left})):(g(e,{top:0,left:0,width:"100%",height:"100%"}),g(s,{marginTop:0,marginLeft:0}))}_onTapMove(e){const{_scrollSpeed:t,_areaLocation:s,_options:i,_frame:o}=this,{speedDivider:l}=i.behaviour.scrolling,n=this._targetElement,{x:r,y:a}=A(e);if(s.x2=r,s.y2=a,this._lastMousePosition.x=r,this._lastMousePosition.y=a,this._scrollAvailable&&!this._scrollingActive&&(t.y||t.x)){this._scrollingActive=!0;const i=()=>{if(!t.x&&!t.y)return void(this._scrollingActive=!1);const{scrollTop:r,scrollLeft:a}=n;t.y&&(n.scrollTop+=k(t.y/l),s.y1-=n.scrollTop-r),t.x&&(n.scrollLeft+=k(t.x/l),s.x1-=n.scrollLeft-a),o.next(e),requestAnimationFrame(i)};requestAnimationFrame(i)}else o.next(e);this._handleMoveEvent(e)}_handleMoveEvent(e){const{features:t}=this._options;(t.touch&&matchMedia("(hover: none), (pointer: coarse)").matches||this._scrollAvailable&&"safari"in window)&&e.preventDefault()}_onScroll(){const{_scrollDelta:e,_options:{document:t}}=this,{scrollTop:s,scrollLeft:i}=t.scrollingElement??t.body;this._areaLocation.x1+=e.x-i,this._areaLocation.y1+=e.y-s,e.x=i,e.y=s,this._setupSelectionArea(),this._frame.next(null)}_onStartAreaScroll(){this._targetBoundaryScrolled=!0,x(this._targetElement,"scroll",this._onStartAreaScroll)}_wheelScroll(e){const{manualSpeed:t}=this._options.behaviour.scrolling,s=e.deltaY?e.deltaY>0?1:-1:0,i=e.deltaX?e.deltaX>0?1:-1:0;this._scrollSpeed.y+=s*t,this._scrollSpeed.x+=i*t,this._onTapMove(e),e.preventDefault()}_keyboardScroll(e){const{manualSpeed:t}=this._options.behaviour.scrolling,s="ArrowLeft"===e.key?-1:"ArrowRight"===e.key?1:0,i="ArrowUp"===e.key?-1:"ArrowDown"===e.key?1:0;this._scrollSpeed.x+=Math.sign(s)*t,this._scrollSpeed.y+=Math.sign(i)*t,e.preventDefault(),this._onTapMove({clientX:this._lastMousePosition.x,clientY:this._lastMousePosition.y,preventDefault:()=>{}})}_recalculateSelectionAreaRect(){const{_scrollSpeed:e,_areaLocation:t,_targetElement:s,_options:i}=this,{scrollTop:o,scrollHeight:l,clientHeight:n,scrollLeft:r,scrollWidth:a,clientWidth:c}=s,h=this._targetRect,{x1:d,y1:u}=t;let{x2:_,y2:p}=t;const{behaviour:{scrolling:{startScrollMargins:m}}}=i;_<h.left+m.x?(e.x=r?-T(h.left-_+m.x):0,_=_<h.left?h.left:_):_>h.right-m.x?(e.x=a-r-c?T(h.left+h.width-_-m.x):0,_=_>h.right?h.right:_):e.x=0,p<h.top+m.y?(e.y=o?-T(h.top-p+m.y):0,p=p<h.top?h.top:p):p>h.bottom-m.y?(e.y=l-o-n?T(h.top+h.height-p-m.y):0,p=p>h.bottom?h.bottom:p):e.y=0;const v=M(d,_),g=M(u,p),b=L(d,_),y=L(u,p);this._areaRect=f(v,g,b-v,y-g)}_redrawSelectionArea(){const{x:e,y:t,width:s,height:i}=this._areaRect,{style:o}=this._area;o.left=`${e}px`,o.top=`${t}px`,o.width=`${s}px`,o.height=`${i}px`}_onTapStop(e,t){var s;const{document:i,features:o}=this._options,{_singleClick:l}=this;x(this._targetElement,"scroll",this._onStartAreaScroll),x(i,["mousemove","touchmove"],this._delayedTapMove),x(i,["touchmove","mousemove"],this._onTapMove),x(i,["mouseup","touchcancel","touchend"],this._onTapStop),x(i,"scroll",this._onScroll),this._keepSelection(),e&&l&&o.singleTap.allow?this._onSingleTap(e):!l&&!t&&(this._updateElementSelection(),this._emitEvent("stop",e)),this._scrollSpeed.x=0,this._scrollSpeed.y=0,x(this._targetElement,"wheel",this._wheelScroll,{passive:!0}),x(this._options.document,"keydown",this._keyboardScroll,{passive:!0}),this._clippingElement.remove(),null==(s=this._frame)||s.cancel(),g(this._area,"display","none")}_updateElementSelection(){const{_selectables:e,_options:t,_selection:s,_areaRect:i}=this,{stored:o,selected:l,touched:n}=s,{intersect:r,overlap:a}=t.behaviour,c="invert"===a,h=[],d=[],u=[];for(let p=0;p<e.length;p++){const t=e[p];if(b(i,t.getBoundingClientRect(),r)){if(l.includes(t))o.includes(t)&&!n.includes(t)&&n.push(t);else{if(c&&o.includes(t)){u.push(t);continue}d.push(t)}h.push(t)}}c&&d.push(...o.filter(e=>!l.includes(e)));const _="keep"===a;for(let p=0;p<l.length;p++){const e=l[p];!h.includes(e)&&(!_||!o.includes(e))&&u.push(e)}s.selected=h,s.changed={added:d,removed:u},this._latestElement=void 0}_emitEvent(e,t){return this.emit(e,{event:t,store:this._selection,selection:this})}_keepSelection(){const{_options:e,_selection:t}=this,{selected:s,changed:i,touched:o,stored:l}=t,n=s.filter(e=>!l.includes(e));switch(e.behaviour.overlap){case"drop":t.stored=[...n,...l.filter(e=>!o.includes(e))];break;case"invert":t.stored=[...n,...l.filter(e=>!i.removed.includes(e))];break;case"keep":t.stored=[...l,...s.filter(e=>!l.includes(e))]}}trigger(e,t=!0){this._onTapStart(e,t)}resolveSelectables(){this._selectables=w(this._options.selectables,this._options.document)}clearSelection(e=!0,t=!1){const{selected:s,stored:i,changed:o}=this._selection;o.added=[],o.removed.push(...s,...e?i:[]),t||(this._emitEvent("move",null),this._emitEvent("stop",null)),this._selection=C(e?[]:i)}getSelection(){return this._selection.stored}getSelectionArea(){return this._area}getSelectables(){return this._selectables}setAreaLocation(e){Object.assign(this._areaLocation,e),this._redrawSelectionArea()}getAreaLocation(){return this._areaLocation}cancel(e=!1){this._onTapStop(null,!e)}destroy(){this.cancel(),this.disable(),this._clippingElement.remove(),super.unbindAllListeners()}select(e,t=!1){const{changed:s,selected:i,stored:o}=this._selection,l=w(e,this._options.document).filter(e=>!i.includes(e)&&!o.includes(e));return o.push(...l),i.push(...l),s.added.push(...l),s.removed=[],this._latestElement=void 0,t||(this._emitEvent("move",null),this._emitEvent("stop",null)),l}deselect(e,t=!1){const{selected:s,stored:i,changed:o}=this._selection,l=w(e,this._options.document).filter(e=>s.includes(e)||i.includes(e));this._selection.stored=i.filter(e=>!l.includes(e)),this._selection.selected=s.filter(e=>!l.includes(e)),this._selection.changed.added=[],this._selection.changed.removed.push(...l.filter(e=>!o.removed.includes(e))),this._latestElement=void 0,t||(this._emitEvent("move",null),this._emitEvent("stop",null))}};R.version="3.9.0";let B=R,D=null;e("I",s(i,{baseStyle:{_before:{content:"",pos:"absolute",top:-10,right:-2,bottom:-10,left:-10}}}))}}});
@@ -1 +0,0 @@
1
- import{j as l,Q as t,at as d,N as p,D as n,ac as u,o as f,ad as g}from"./index-CSwg5QXS.js";import{I as w}from"./ImageWithError-gG_AK8KG.js";import{O as c}from"./icon-CgK9sKtW.js";import"./index-DOY4u_GJ.js";import"./Layout-CyS6jJ_b.js";import"./useTitle-DVdBzpBf.js";import"./FolderTree-BopfuzE_.js";import"./index-DNDW0loe.js";import"./index-BS5bVjs5.js";import"./index-C7ih00qx.js";const A=()=>{const m=f(),{replace:a}=l();let e=t.objs.filter(r=>r.type===c.IMAGE);e.length===0&&(e=[t.obj]);const i=r=>{const o=e.findIndex(s=>s.name===t.obj.name);r.key==="ArrowLeft"&&o>0?a(e[o-1].name):r.key==="ArrowRight"&&o<e.length-1&&a(e[o+1].name)};return d(()=>{window.addEventListener("keydown",i)}),p(()=>{window.removeEventListener("keydown",i)}),n(w,{maxH:"75vh",rounded:"$lg",get src(){return t.raw_url},get fallback(){return n(g,{})},get fallbackErr(){return n(u,{get msg(){return m("home.preview.failed_load_img")}})}})};export{A as default};
@@ -1 +0,0 @@
1
- System.register(["./index-legacy-CtC7fn6O.js","./ImageWithError-legacy-B07XhroH.js","./icon-legacy-jbuQXJrW.js","./index-legacy-zjwrrR91.js","./Layout-legacy-D9Zk98K6.js","./useTitle-legacy-CeyL-0_E.js","./FolderTree-legacy-DH3Vf9XJ.js","./index-legacy-C5X1tU4Z.js","./index-legacy-CDfFAMGs.js","./index-legacy-CwvCVg8-.js"],function(e,n){"use strict";var l,r,t,a,s,c,g,i,o,u;return{setters:[e=>{l=e.j,r=e.Q,t=e.at,a=e.N,s=e.D,c=e.ac,g=e.o,i=e.ad},e=>{o=e.I},e=>{u=e.O},null,null,null,null,null,null,null],execute:function(){e("default",()=>{const e=g(),{replace:n}=l();let d=r.objs.filter(e=>e.type===u.IMAGE);0===d.length&&(d=[r.obj]);const y=e=>{const l=d.findIndex(e=>e.name===r.obj.name);"ArrowLeft"===e.key&&l>0?n(d[l-1].name):"ArrowRight"===e.key&&l<d.length-1&&n(d[l+1].name)};return t(()=>{window.addEventListener("keydown",y)}),a(()=>{window.removeEventListener("keydown",y)}),s(o,{maxH:"75vh",rounded:"$lg",get src(){return r.raw_url},get fallback(){return s(i,{})},get fallbackErr(){return s(c,{get msg(){return e("home.preview.failed_load_img")}})}})})}}});
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Common-CrTYhaeL.js","assets/index-CSwg5QXS.js","assets/index-DYLAoZjS.css","assets/useTitle-DVdBzpBf.js","assets/SettingItem-CoyA-wst.js","assets/item_type-CV3e5W3l.js","assets/index-DOY4u_GJ.js","assets/ResponsiveGrid-DBqpPiu2.js","assets/index-C7ih00qx.js","assets/Profile-DQqzso6r.js","assets/webauthn-json.browser-ponyfill-CVZeZdny.js","assets/PublicKeys-BUewmKb-.js","assets/S3-Ue8_AwRX.js","assets/FolderTree-BopfuzE_.js","assets/index-BS5bVjs5.js","assets/Other-DXc0kpSC.js","assets/offline_download--qix7jck.js","assets/helper-CJdkogiC.js","assets/Paginator-CfTq8QGy.js","assets/Upload-9DDOLajr.js","assets/Copy-CENvweJK.js","assets/Move-CjmsQ4oK.js","assets/Decompress-CzLWbcw1.js","assets/Users-BNQGZuWH.js","assets/DeletePopover-BFBUMopn.js","assets/Wether-enRDnS5x.js","assets/Storages-B0zOmRwd.js","assets/Metas-BV8fZzUC.js","assets/indexes-Ba0IqlDk.js","assets/backup-restore-C5uaukNL.js","assets/About-Cu11TW0D.js","assets/AddOrEdit-DKPH7EZ_.js","assets/AddOrEdit-B2PSnD-9.js","assets/AddOrEdit-B7sPaR10.js","assets/2fa-2cc2atzU.js","assets/Messenger-Dmz66wIv.js"])))=>i.map(i=>d[i]);
2
- import{D as t,V as w,ag as y,O as x,ax as T,ay as b,bW as i,ab as $,aa as M,j as f,B as F,bX as A,a6 as g,S as E,aM as p,bY as _,o as h,a0 as P,am as l,$ as N,Z as W,aS as U,ae as n,bZ as Y,b_ as H,b$ as z,c0 as j,c1 as Z,c2 as D,c3 as q,c4 as X,c5 as J,c6 as K,c7 as Q,b4 as G,c8 as ee,c9 as te,ca as ne,cb as oe,aN as re,cc as ae,cd as ie,ah as o,aA as S,aY as se,b9 as ce,ce as le,bD as ue,bv as me,bw as ge,bx as de,by as _e,bz as he,aR as I,bB as O,bC as C,a7 as k,bt as Ee,cf as pe,r as fe,bq as Ae,cg as Ie,ch as Re,ci as ve}from"./index-CSwg5QXS.js";import{b as Le,a as Te}from"./useTitle-DVdBzpBf.js";import{k as be,A as $e,d as De,l as Se,m as we,n as Pe,o as Oe}from"./index-DOY4u_GJ.js";import{S as Ce}from"./index-C7ih00qx.js";var s=(e=>(e[e.SINGLE=0]="SINGLE",e[e.SITE=1]="SITE",e[e.STYLE=2]="STYLE",e[e.PREVIEW=3]="PREVIEW",e[e.GLOBAL=4]="GLOBAL",e[e.ARIA2=5]="ARIA2",e[e.INDEX=6]="INDEX",e[e.SSO=7]="SSO",e[e.LDAP=8]="LDAP",e[e.S3=9]="S3",e[e.FTP=10]="FTP",e[e.TRAFFIC=11]="TRAFFIC",e))(s||{}),ke=(e=>(e[e.PUBLIC=0]="PUBLIC",e[e.PRIVATE=1]="PRIVATE",e[e.READONLY=2]="READONLY",e[e.DEPRECATED=3]="DEPRECATED",e))(ke||{});const Be=e=>{const r=x(()=>{if(!T.is_admin(b())){if(e.role===void 0)return!1;if(e.role===i.GENERAL&&!T.is_general(b()))return!1}return!0});return t(M,{get fallback(){return t(Ve,e)},get children(){return[t($,{get when(){return!r()},children:null}),t($,{get when(){return e.children},get children(){return t(ye,e)}})]}})},Ve=e=>{const{pathname:r}=f(),a=h(),u=()=>r()===e.to;return t($e,{get cancelBase(){return e.to.startsWith("http")},display:"flex",as:N,get href(){return e.to},onClick:m=>{var L;if(B(),e.refresh){(L=m.stopPropagation)==null||L.call(m);let d=e.to;d.startsWith("http")||(d=W(d)),window.open(d,"_self")}},w:"$full",alignItems:"center",get _hover(){return{bgColor:u()?"$info4":P(),textDecoration:"none"}},px:"$2",py:"$1_5",rounded:"$md",cursor:"pointer",get bgColor(){return u()?"$info4":""},get color(){return u()?"$info11":""},get external(){return e.external},get children(){return[t(E,{get when(){return e.icon},get children(){return t(p,{mr:"$2",get as(){return e.icon}})}}),t(_,{get children(){return a(e.title)}})]}})},ye=e=>{const{pathname:r}=f(),[a,u]=F(r().includes(e.to)),m=h();return t(l,{w:"$full",get children(){return[t(A,{justifyContent:"space-between",onClick:()=>{u(!a())},w:"$full",alignItems:"center",get _hover(){return{bgColor:P()}},px:"$2",py:"$1_5",rounded:"$md",cursor:"pointer",get children(){return[t(g,{get children(){return[t(E,{get when(){return e.icon},get children(){return t(p,{mr:"$2",get as(){return e.icon}})}}),t(_,{get children(){return m(e.title)}})]}}),t(p,{as:be,get transform(){return a()?"rotate(90deg)":"none"},transition:"transform 0.2s"})]}}),t(E,{get when(){return a()},get children(){return t(l,{pl:"$2",get children(){return t(R,{get items(){return e.children}})}})}})]}})},R=e=>t(y,{p:"$2",w:"$full",color:"$neutral11",spacing:"$1",get children(){return t(w,{get each(){return e.items},children:r=>t(Be,r)})}});function xe(e){return U({a:{viewBox:"0 0 16 16"},c:'<path d="M0 1.75C0 .784.784 0 1.75 0h3.5C6.216 0 7 .784 7 1.75v3.5A1.75 1.75 0 0 1 5.25 7H4v4a1 1 0 0 0 1 1h4v-1.25C9 9.784 9.784 9 10.75 9h3.5c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 14.25 16h-3.5A1.75 1.75 0 0 1 9 14.25v-.75H5A2.5 2.5 0 0 1 2.5 11V7h-.75A1.75 1.75 0 0 1 0 5.25Zm1.75-.25a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Zm9 9a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Z"/>'},e)}const c=n(()=>o(()=>import("./Common-CrTYhaeL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),v=[{title:"manage.sidemenu.profile",icon:Y,to:"/@manage",role:i.GUEST,component:n(()=>o(()=>import("./Profile-DQqzso6r.js"),__vite__mapDeps([9,1,2,3,6,10,11])))},{title:"manage.sidemenu.settings",icon:Q,to:"/@manage/settings",children:[{title:"manage.sidemenu.site",icon:H,to:"/@manage/settings/site",component:()=>t(c,{get group(){return s.SITE}})},{title:"manage.sidemenu.style",icon:z,to:"/@manage/settings/style",component:()=>t(c,{get group(){return s.STYLE}})},{title:"manage.sidemenu.preview",icon:j,to:"/@manage/settings/preview",component:()=>t(c,{get group(){return s.PREVIEW}})},{title:"manage.sidemenu.global",icon:Z,to:"/@manage/settings/global",component:()=>t(c,{get group(){return s.GLOBAL}})},{title:"manage.sidemenu.sso",icon:D,to:"/@manage/settings/sso",component:()=>t(c,{get group(){return s.SSO}})},{title:"manage.sidemenu.ldap",icon:D,to:"/@manage/settings/ldap",component:()=>t(c,{get group(){return s.LDAP}})},{title:"manage.sidemenu.s3",icon:q,to:"/@manage/settings/s3",component:n(()=>o(()=>import("./S3-Ue8_AwRX.js"),__vite__mapDeps([12,1,2,3,4,5,6,7,13,14,8])))},{title:"manage.sidemenu.ftp",icon:X,to:"/@manage/settings/ftp",component:()=>t(c,{get group(){return s.FTP}})},{title:"manage.sidemenu.traffic",icon:J,to:"/@manage/settings/traffic",component:()=>t(c,{get group(){return s.TRAFFIC}})},{title:"manage.sidemenu.other",icon:K,to:"/@manage/settings/other",component:n(()=>o(()=>import("./Other-DXc0kpSC.js"),__vite__mapDeps([15,1,2,13,6,3,4,5,8])))}]},{title:"manage.sidemenu.tasks",icon:xe,to:"/@manage/tasks",role:i.GENERAL,children:[{title:"manage.sidemenu.offline_download",icon:G,to:"/@manage/tasks/offline_download",role:i.GENERAL,component:n(()=>o(()=>import("./offline_download--qix7jck.js"),__vite__mapDeps([16,1,2,3,17,18,6])))},{title:"manage.sidemenu.upload",icon:ee,to:"/@manage/tasks/upload",role:i.GENERAL,component:n(()=>o(()=>import("./Upload-9DDOLajr.js"),__vite__mapDeps([19,1,2,3,17,18,6])))},{title:"manage.sidemenu.copy",icon:te,to:"/@manage/tasks/copy",role:i.GENERAL,component:n(()=>o(()=>import("./Copy-CENvweJK.js"),__vite__mapDeps([20,1,2,3,17,18,6])))},{title:"manage.sidemenu.move",icon:ne,to:"/@manage/tasks/move",role:i.GENERAL,component:n(()=>o(()=>import("./Move-CjmsQ4oK.js"),__vite__mapDeps([21,1,2,3,17,18,6])))},{title:"manage.sidemenu.decompress",icon:De,to:"/@manage/tasks/decompress",role:i.GENERAL,component:n(()=>o(()=>import("./Decompress-CzLWbcw1.js"),__vite__mapDeps([22,1,2,3,17,18,6])))}]},{title:"manage.sidemenu.users",icon:oe,to:"/@manage/users",component:n(()=>o(()=>import("./Users-BNQGZuWH.js"),__vite__mapDeps([23,1,2,3,24,25])))},{title:"manage.sidemenu.storages",icon:Se,to:"/@manage/storages",component:n(()=>o(()=>import("./Storages-B0zOmRwd.js"),__vite__mapDeps([26,1,2,3,24])))},{title:"manage.sidemenu.metas",icon:Ce,to:"/@manage/metas",component:n(()=>o(()=>import("./Metas-BV8fZzUC.js"),__vite__mapDeps([27,1,2,3,24,25])))},{title:"manage.sidemenu.indexes",icon:re,to:"/@manage/indexes",component:n(()=>o(()=>import("./indexes-Ba0IqlDk.js"),__vite__mapDeps([28,1,2,0,3,4,5,6,7,8])))},{title:"manage.sidemenu.backup-restore",to:"/@manage/backup-restore",icon:we,component:n(()=>o(()=>import("./backup-restore-C5uaukNL.js"),__vite__mapDeps([29,1,2,3,14])))},{title:"manage.sidemenu.about",icon:ae,to:"/@manage/about",role:i.GUEST,component:n(()=>o(()=>import("./About-Cu11TW0D.js"),__vite__mapDeps([30,1,2,3])))},{title:"manage.sidemenu.docs",icon:Pe,to:"https://doc.oplist.org",role:i.GUEST,external:!0},{title:"manage.sidemenu.home",icon:ie,to:"/",role:i.GUEST,refresh:!0}],{isOpen:Me,onOpen:Fe,onClose:B}=se(),[Ne,We]=ce(()=>Ae.get("/auth/logout")),Ue=()=>{const e=h(),{to:r}=f(),a=async()=>{Ee(await We(),()=>{pe(),fe.success(e("manage.logout_success")),r("/@login?redirect=".concat(encodeURIComponent(location.pathname)))})};return t(l,{as:"header",position:"sticky",top:"0",left:"0",right:"0",zIndex:"$sticky",height:"64px",flexShrink:0,shadow:"$md",p:"$4",get bgColor(){return k("$background","$neutral2")()},get children(){return[t(A,{alignItems:"center",justifyContent:"space-between",h:"$full",get children(){return[t(g,{spacing:"$2",get children(){return[t(S,{"aria-label":"menu",get icon(){return t(Oe,{})},display:{"@sm":"none"},onClick:Fe,size:"sm"}),t(_,{fontSize:"$xl",color:"$info9",cursor:"pointer",onClick:()=>{r("/@manage")},get children(){return e("manage.title")}})]}}),t(g,{spacing:"$1",get children(){return t(S,{"aria-label":"logout",get icon(){return t(le,{})},get loading(){return Ne()},onClick:a,size:"sm"})}})]}}),t(ue,{get opened(){return Me()},placement:"left",onClose:B,get children(){return[t(me,{}),t(ge,{get children(){return[t(de,{}),t(_e,{color:"$info9",get children(){return e("manage.title")}}),t(he,{get children(){return[t(R,{items:v}),t(I,{get children(){return t(g,{spacing:"$4",p:"$2",color:"$neutral11",get children(){return[t(O,{}),t(C,{})]}})}})]}})]}})]}})]}})},Ye=[{to:"/storages/add",component:n(()=>o(()=>import("./AddOrEdit-DKPH7EZ_.js"),__vite__mapDeps([31,1,2,5,7])))},{to:"/storages/edit/:id",component:n(()=>o(()=>import("./AddOrEdit-DKPH7EZ_.js"),__vite__mapDeps([31,1,2,5,7])))},{to:"/users/add",component:n(()=>o(()=>import("./AddOrEdit-B2PSnD-9.js"),__vite__mapDeps([32,1,2,13,6,11])))},{to:"/users/edit/:id",component:n(()=>o(()=>import("./AddOrEdit-B2PSnD-9.js"),__vite__mapDeps([32,1,2,13,6,11])))},{to:"/metas/add",component:n(()=>o(()=>import("./AddOrEdit-B7sPaR10.js"),__vite__mapDeps([33,1,2,13,6])))},{to:"/metas/edit/:id",component:n(()=>o(()=>import("./AddOrEdit-B7sPaR10.js"),__vite__mapDeps([33,1,2,13,6])))},{to:"/2fa",component:n(()=>o(()=>import("./2fa-2cc2atzU.js"),__vite__mapDeps([34,1,2])))},{to:"/messenger",component:n(()=>o(()=>import("./Messenger-Dmz66wIv.js"),__vite__mapDeps([35,1,2])))}],He=e=>(Le(e.title),t(I,{h:"$full",get children(){return t(_,{get children(){return e.title}})}})),V=(e,r=[])=>(e.forEach(a=>{a.children?V(a.children,r):r.push({to:Ie(a.to,"/@manage"),component:a.component||(()=>t(He,{get title(){return a.title},get to(){return a.to||"empty"}}))})}),r),ze=V(v).concat(Ye),je=()=>{const e=h();return Te(()=>e("manage.title")),t(l,{css:{"--hope-colors-background":"var(--hope-colors-loContrast)"},bgColor:"$background",w:"$full",get children(){return[t(Ue,{}),t(A,{w:"$full",h:"calc(100vh - 64px)",get children(){return[t(l,{display:{"@initial":"none","@sm":"block"},w:"$56",h:"$full",shadow:"$md",get bgColor(){return k("$background","$neutral2")()},overflowY:"auto",get children(){return[t(R,{items:v}),t(I,{get children(){return t(g,{spacing:"$4",p:"$2",color:"$neutral11",get children(){return[t(O,{}),t(C,{})]}})}})]}}),t(l,{w:{"@initial":"$full","@sm":"calc(100% - 14rem)"},p:"$4",overflowY:"auto",get children(){return t(Re,{get children(){return t(w,{each:ze,children:r=>t(ve,{get path(){return r.to},get component(){return r.component}})})}})}})]}})]}})},Ke=Object.freeze(Object.defineProperty({__proto__:null,default:je},Symbol.toStringTag,{value:"Module"}));export{ke as F,s as G,Ke as i};
@@ -1 +0,0 @@
1
- System.register(["./index-legacy-CtC7fn6O.js","./useTitle-legacy-CeyL-0_E.js","./index-legacy-zjwrrR91.js","./index-legacy-CwvCVg8-.js"],function(e,t){"use strict";var n,o,r,i,a,c,l,s,g,m,d,u,p,h,f,E,v,$,y,b,A,j,C,w,S,k,L,I,x,R,T,O,P,G,D,_,N,B,F,U,Y,z,V,M,W,Z,X,q,H,J,K,Q,ee,te,ne,oe,re,ie,ae,ce,le,se,ge,me,de,ue,pe,he,fe,Ee,ve,$e,ye,be;return{setters:[e=>{n=e.D,o=e.V,r=e.ag,i=e.O,a=e.ax,c=e.ay,l=e.bW,s=e.ab,g=e.aa,m=e.j,d=e.B,u=e.bX,p=e.a6,h=e.S,f=e.aM,E=e.bY,v=e.o,$=e.a0,y=e.am,b=e.$,A=e.Z,j=e.aS,C=e.ae,w=e.bZ,S=e.b_,k=e.b$,L=e.c0,I=e.c1,x=e.c2,R=e.c3,T=e.c4,O=e.c5,P=e.c6,G=e.c7,D=e.b4,_=e.c8,N=e.c9,B=e.ca,F=e.cb,U=e.aN,Y=e.cc,z=e.cd,V=e.ah,M=e.aA,W=e.aY,Z=e.b9,X=e.ce,q=e.bD,H=e.bv,J=e.bw,K=e.bx,Q=e.by,ee=e.bz,te=e.aR,ne=e.bB,oe=e.bC,re=e.a7,ie=e.bt,ae=e.cf,ce=e.r,le=e.bq,se=e.cg,ge=e.ch,me=e.ci},e=>{de=e.b,ue=e.a},e=>{pe=e.k,he=e.A,fe=e.d,Ee=e.l,ve=e.m,$e=e.n,ye=e.o},e=>{be=e.S}],execute:function(){var Ae=e("G",(e=>(e[e.SINGLE=0]="SINGLE",e[e.SITE=1]="SITE",e[e.STYLE=2]="STYLE",e[e.PREVIEW=3]="PREVIEW",e[e.GLOBAL=4]="GLOBAL",e[e.ARIA2=5]="ARIA2",e[e.INDEX=6]="INDEX",e[e.SSO=7]="SSO",e[e.LDAP=8]="LDAP",e[e.S3=9]="S3",e[e.FTP=10]="FTP",e[e.TRAFFIC=11]="TRAFFIC",e))(Ae||{})),je=e("F",(e=>(e[e.PUBLIC=0]="PUBLIC",e[e.PRIVATE=1]="PRIVATE",e[e.READONLY=2]="READONLY",e[e.DEPRECATED=3]="DEPRECATED",e))(je||{}));const Ce=e=>{const t=i(()=>{if(!a.is_admin(c())){if(void 0===e.role)return!1;if(e.role===l.GENERAL&&!a.is_general(c()))return!1}return!0});return n(g,{get fallback(){return n(we,e)},get children(){return[n(s,{get when(){return!t()},children:null}),n(s,{get when(){return e.children},get children(){return n(Se,e)}})]}})},we=e=>{const{pathname:t}=m(),o=v(),r=()=>t()===e.to;return n(he,{get cancelBase(){return e.to.startsWith("http")},display:"flex",as:b,get href(){return e.to},onClick:t=>{if(Te(),e.refresh){t.stopPropagation?.();let n=e.to;n.startsWith("http")||(n=A(n)),window.open(n,"_self")}},w:"$full",alignItems:"center",get _hover(){return{bgColor:r()?"$info4":$(),textDecoration:"none"}},px:"$2",py:"$1_5",rounded:"$md",cursor:"pointer",get bgColor(){return r()?"$info4":""},get color(){return r()?"$info11":""},get external(){return e.external},get children(){return[n(h,{get when(){return e.icon},get children(){return n(f,{mr:"$2",get as(){return e.icon}})}}),n(E,{get children(){return o(e.title)}})]}})},Se=e=>{const{pathname:t}=m(),[o,r]=d(t().includes(e.to)),i=v();return n(y,{w:"$full",get children(){return[n(u,{justifyContent:"space-between",onClick:()=>{r(!o())},w:"$full",alignItems:"center",get _hover(){return{bgColor:$()}},px:"$2",py:"$1_5",rounded:"$md",cursor:"pointer",get children(){return[n(p,{get children(){return[n(h,{get when(){return e.icon},get children(){return n(f,{mr:"$2",get as(){return e.icon}})}}),n(E,{get children(){return i(e.title)}})]}}),n(f,{as:pe,get transform(){return o()?"rotate(90deg)":"none"},transition:"transform 0.2s"})]}}),n(h,{get when(){return o()},get children(){return n(y,{pl:"$2",get children(){return n(ke,{get items(){return e.children}})}})}})]}})},ke=e=>n(r,{p:"$2",w:"$full",color:"$neutral11",spacing:"$1",get children(){return n(o,{get each(){return e.items},children:e=>n(Ce,e)})}}),Le=C(()=>V(()=>t.import("./Common-legacy-CYNGdYU-.js"),void 0)),Ie=[{title:"manage.sidemenu.profile",icon:w,to:"/@manage",role:l.GUEST,component:C(()=>V(()=>t.import("./Profile-legacy-DxHXHWHS.js"),void 0))},{title:"manage.sidemenu.settings",icon:G,to:"/@manage/settings",children:[{title:"manage.sidemenu.site",icon:S,to:"/@manage/settings/site",component:()=>n(Le,{get group(){return Ae.SITE}})},{title:"manage.sidemenu.style",icon:k,to:"/@manage/settings/style",component:()=>n(Le,{get group(){return Ae.STYLE}})},{title:"manage.sidemenu.preview",icon:L,to:"/@manage/settings/preview",component:()=>n(Le,{get group(){return Ae.PREVIEW}})},{title:"manage.sidemenu.global",icon:I,to:"/@manage/settings/global",component:()=>n(Le,{get group(){return Ae.GLOBAL}})},{title:"manage.sidemenu.sso",icon:x,to:"/@manage/settings/sso",component:()=>n(Le,{get group(){return Ae.SSO}})},{title:"manage.sidemenu.ldap",icon:x,to:"/@manage/settings/ldap",component:()=>n(Le,{get group(){return Ae.LDAP}})},{title:"manage.sidemenu.s3",icon:R,to:"/@manage/settings/s3",component:C(()=>V(()=>t.import("./S3-legacy-BEIExV0a.js"),void 0))},{title:"manage.sidemenu.ftp",icon:T,to:"/@manage/settings/ftp",component:()=>n(Le,{get group(){return Ae.FTP}})},{title:"manage.sidemenu.traffic",icon:O,to:"/@manage/settings/traffic",component:()=>n(Le,{get group(){return Ae.TRAFFIC}})},{title:"manage.sidemenu.other",icon:P,to:"/@manage/settings/other",component:C(()=>V(()=>t.import("./Other-legacy-38X7w6nZ.js"),void 0))}]},{title:"manage.sidemenu.tasks",icon:function(e){return j({a:{viewBox:"0 0 16 16"},c:'<path d="M0 1.75C0 .784.784 0 1.75 0h3.5C6.216 0 7 .784 7 1.75v3.5A1.75 1.75 0 0 1 5.25 7H4v4a1 1 0 0 0 1 1h4v-1.25C9 9.784 9.784 9 10.75 9h3.5c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 14.25 16h-3.5A1.75 1.75 0 0 1 9 14.25v-.75H5A2.5 2.5 0 0 1 2.5 11V7h-.75A1.75 1.75 0 0 1 0 5.25Zm1.75-.25a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Zm9 9a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Z"/>'},e)},to:"/@manage/tasks",role:l.GENERAL,children:[{title:"manage.sidemenu.offline_download",icon:D,to:"/@manage/tasks/offline_download",role:l.GENERAL,component:C(()=>V(()=>t.import("./offline_download-legacy-TAKRiM_z.js"),void 0))},{title:"manage.sidemenu.upload",icon:_,to:"/@manage/tasks/upload",role:l.GENERAL,component:C(()=>V(()=>t.import("./Upload-legacy-BX35PWMt.js"),void 0))},{title:"manage.sidemenu.copy",icon:N,to:"/@manage/tasks/copy",role:l.GENERAL,component:C(()=>V(()=>t.import("./Copy-legacy-D_8otiMK.js"),void 0))},{title:"manage.sidemenu.move",icon:B,to:"/@manage/tasks/move",role:l.GENERAL,component:C(()=>V(()=>t.import("./Move-legacy-BJYFMCwm.js"),void 0))},{title:"manage.sidemenu.decompress",icon:fe,to:"/@manage/tasks/decompress",role:l.GENERAL,component:C(()=>V(()=>t.import("./Decompress-legacy-Dv_Jku2u.js"),void 0))}]},{title:"manage.sidemenu.users",icon:F,to:"/@manage/users",component:C(()=>V(()=>t.import("./Users-legacy-BINPeiuk.js"),void 0))},{title:"manage.sidemenu.storages",icon:Ee,to:"/@manage/storages",component:C(()=>V(()=>t.import("./Storages-legacy-CBl6TdCy.js"),void 0))},{title:"manage.sidemenu.metas",icon:be,to:"/@manage/metas",component:C(()=>V(()=>t.import("./Metas-legacy-Dsed9U0b.js"),void 0))},{title:"manage.sidemenu.indexes",icon:U,to:"/@manage/indexes",component:C(()=>V(()=>t.import("./indexes-legacy-DOV4Irpp.js"),void 0))},{title:"manage.sidemenu.backup-restore",to:"/@manage/backup-restore",icon:ve,component:C(()=>V(()=>t.import("./backup-restore-legacy-BNzSREad.js"),void 0))},{title:"manage.sidemenu.about",icon:Y,to:"/@manage/about",role:l.GUEST,component:C(()=>V(()=>t.import("./About-legacy-QsfCSVxq.js"),void 0))},{title:"manage.sidemenu.docs",icon:$e,to:"https://doc.oplist.org",role:l.GUEST,external:!0},{title:"manage.sidemenu.home",icon:z,to:"/",role:l.GUEST,refresh:!0}],{isOpen:xe,onOpen:Re,onClose:Te}=W(),[Oe,Pe]=Z(()=>le.get("/auth/logout")),Ge=()=>{const e=v(),{to:t}=m(),o=async()=>{ie(await Pe(),()=>{ae(),ce.success(e("manage.logout_success")),t(`/@login?redirect=${encodeURIComponent(location.pathname)}`)})};return n(y,{as:"header",position:"sticky",top:"0",left:"0",right:"0",zIndex:"$sticky",height:"64px",flexShrink:0,shadow:"$md",p:"$4",get bgColor(){return re("$background","$neutral2")()},get children(){return[n(u,{alignItems:"center",justifyContent:"space-between",h:"$full",get children(){return[n(p,{spacing:"$2",get children(){return[n(M,{"aria-label":"menu",get icon(){return n(ye,{})},display:{"@sm":"none"},onClick:Re,size:"sm"}),n(E,{fontSize:"$xl",color:"$info9",cursor:"pointer",onClick:()=>{t("/@manage")},get children(){return e("manage.title")}})]}}),n(p,{spacing:"$1",get children(){return n(M,{"aria-label":"logout",get icon(){return n(X,{})},get loading(){return Oe()},onClick:o,size:"sm"})}})]}}),n(q,{get opened(){return xe()},placement:"left",onClose:Te,get children(){return[n(H,{}),n(J,{get children(){return[n(K,{}),n(Q,{color:"$info9",get children(){return e("manage.title")}}),n(ee,{get children(){return[n(ke,{items:Ie}),n(te,{get children(){return n(p,{spacing:"$4",p:"$2",color:"$neutral11",get children(){return[n(ne,{}),n(oe,{})]}})}})]}})]}})]}})]}})},De=[{to:"/storages/add",component:C(()=>V(()=>t.import("./AddOrEdit-legacy-COHYBFCt.js"),void 0))},{to:"/storages/edit/:id",component:C(()=>V(()=>t.import("./AddOrEdit-legacy-COHYBFCt.js"),void 0))},{to:"/users/add",component:C(()=>V(()=>t.import("./AddOrEdit-legacy-BLNrBEUZ.js"),void 0))},{to:"/users/edit/:id",component:C(()=>V(()=>t.import("./AddOrEdit-legacy-BLNrBEUZ.js"),void 0))},{to:"/metas/add",component:C(()=>V(()=>t.import("./AddOrEdit-legacy-DxIDnAk7.js"),void 0))},{to:"/metas/edit/:id",component:C(()=>V(()=>t.import("./AddOrEdit-legacy-DxIDnAk7.js"),void 0))},{to:"/2fa",component:C(()=>V(()=>t.import("./2fa-legacy-Bv6NDiiZ.js"),void 0))},{to:"/messenger",component:C(()=>V(()=>t.import("./Messenger-legacy-DEa2mtGl.js"),void 0))}],_e=e=>(de(e.title),n(te,{h:"$full",get children(){return n(E,{get children(){return e.title}})}})),Ne=(e,t=[])=>(e.forEach(e=>{e.children?Ne(e.children,t):t.push({to:se(e.to,"/@manage"),component:e.component||(()=>n(_e,{get title(){return e.title},get to(){return e.to||"empty"}}))})}),t),Be=Ne(Ie).concat(De),Fe=Object.freeze(Object.defineProperty({__proto__:null,default:()=>{const e=v();return ue(()=>e("manage.title")),n(y,{css:{"--hope-colors-background":"var(--hope-colors-loContrast)"},bgColor:"$background",w:"$full",get children(){return[n(Ge,{}),n(u,{w:"$full",h:"calc(100vh - 64px)",get children(){return[n(y,{display:{"@initial":"none","@sm":"block"},w:"$56",h:"$full",shadow:"$md",get bgColor(){return re("$background","$neutral2")()},overflowY:"auto",get children(){return[n(ke,{items:Ie}),n(te,{get children(){return n(p,{spacing:"$4",p:"$2",color:"$neutral11",get children(){return[n(ne,{}),n(oe,{})]}})}})]}}),n(y,{w:{"@initial":"$full","@sm":"calc(100% - 14rem)"},p:"$4",overflowY:"auto",get children(){return n(ge,{get children(){return n(o,{each:Be,children:e=>n(me,{get path(){return e.to},get component(){return e.component}})})}})}})]}})]}})}},Symbol.toStringTag,{value:"Module"}));e("i",Fe)}}});
@@ -1 +0,0 @@
1
- System.register(["./index-legacy-CtC7fn6O.js","./Upload-legacy-uISx3f64.js","./index-legacy-C5X1tU4Z.js"],function(e,t){"use strict";var n,r,u,c;return{setters:[e=>{n=e.D,r=e.am,u=e.ag},e=>{c=e.default},null],execute:function(){e("default",()=>n(u,{justifyContent:"center",h:"100vh",get children(){return n(r,{w:"$md",get children(){return n(c,{})}})}}))}}});
@@ -1 +0,0 @@
1
- import{B as n,ak as p,D as e,a6 as c,K as r,o as u,e2 as g,e3 as f,Q as a,e1 as d}from"./index-CSwg5QXS.js";import{F as h}from"./File-DOBK5V8m.js";import"./icon-CgK9sKtW.js";import"./index-DOY4u_GJ.js";import"./Layout-CyS6jJ_b.js";import"./useTitle-DVdBzpBf.js";import"./FolderTree-BopfuzE_.js";import"./index-DNDW0loe.js";import"./index-BS5bVjs5.js";import"./index-C7ih00qx.js";const R=()=>{const t=u(),[i,o]=n(!1),[s,l]=n(!1),{currentObjLink:m}=p();return e(h,{get children(){return e(c,{spacing:"$2",get children(){return[e(r,{as:"a",get href(){return"itms-services://?action=download-manifest&url=".concat(g,"/i/").concat(f(encodeURIComponent(a.raw_url)+"/"+d(encodeURIComponent(a.obj.name))),".plist")},onClick:()=>{o(!0)},get children(){return t("home.preview.".concat(i()?"installing":"install"))}}),e(r,{as:"a",colorScheme:"primary",get href(){return"apple-magnifier://install?url="+encodeURIComponent(m(!0))},onClick:()=>{l(!0)},get children(){return t("home.preview.".concat(s()?"tr-installing":"tr-install"))}})]}})}})};export{R as default};