@abtnode/blocklet-services 1.16.43-beta-20250422-042711-c40bec75 → 1.16.43-beta-20250424-125523-08a65a5c

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 (238) hide show
  1. package/api/routes/mcp.js +60 -26
  2. package/api/services/auth/session.js +4 -1
  3. package/api/services/mcp/server.js +7 -6
  4. package/api/services/notification/queue.js +25 -4
  5. package/api/services/oauth/server.js +1 -1
  6. package/api/socket/channel/did.js +13 -7
  7. package/api/util/attach-shared-utils.js +6 -1
  8. package/dist/assets/{AdapterDayjs-DcprbhsV.js → AdapterDayjs-DT-SVlwP.js} +1 -1
  9. package/dist/assets/{ArrowDropDown-BHNhtNqo.js → ArrowDropDown-D0s0w2rW.js} +1 -1
  10. package/dist/assets/{CheckCircle-C7lAzkFm.js → CheckCircle-BMPTHnwd.js} +1 -1
  11. package/dist/assets/{ChevronLeft-fcaEvvT2.js → ChevronLeft-BV65HBup.js} +1 -1
  12. package/dist/assets/{ChevronRight-BWcj-otI.js → ChevronRight-CSrWhu1k.js} +1 -1
  13. package/dist/assets/{Community-BXFIKoZW.js → Community-B6sqs6QK.js} +1 -1
  14. package/dist/assets/{DeleteOutline-CMgoFNHT.js → DeleteOutline-BwlJCwaD.js} +1 -1
  15. package/dist/assets/{Done-CkkNExgL.js → Done-ClKUqna8.js} +1 -1
  16. package/dist/assets/{Download-B1KcU2Zd.js → Download-DydXtD3g.js} +1 -1
  17. package/dist/assets/{Edit-C-ChSGAK.js → Edit-Cydc64DB.js} +1 -1
  18. package/dist/assets/{EditIcon-BRKobKzh.js → EditIcon-B3vzcBhw.js} +1 -1
  19. package/dist/assets/{Email-7cDhevM1.js → Email-DscM5ZVr.js} +1 -1
  20. package/dist/assets/{Error-Du9QXuYs.js → Error-BUxloyCF.js} +1 -1
  21. package/dist/assets/{ExpandLess-Cdn0T-U2.js → ExpandLess-D3psCjh2.js} +1 -1
  22. package/dist/assets/{Google-3Ox3gIL3.js → Google-nw2S1BAe.js} +1 -1
  23. package/dist/assets/{Holiday-BtexoPxk.js → Holiday-COvP72sQ.js} +1 -1
  24. package/dist/assets/{InfoOutlined-ZIQMeu0p.js → InfoOutlined-K2cm3ASV.js} +1 -1
  25. package/dist/assets/{Launch-qJWNGQwX.js → Launch-DSlNzUJo.js} +1 -1
  26. package/dist/assets/{LaunchOutlined-BVUDVgft.js → LaunchOutlined-DB41H1FZ.js} +1 -1
  27. package/dist/assets/{Location-BF9BwrVf.js → Location-DSdE-EW4.js} +1 -1
  28. package/dist/assets/{LockIcon-L5QI4AoC.js → LockIcon-Yic1ETPw.js} +1 -1
  29. package/dist/assets/{Meeting-gc3Ts6jN.js → Meeting-DlfumstQ.js} +1 -1
  30. package/dist/assets/{MoreHoriz-ByNTWUxY.js → MoreHoriz-BWdkQIhx.js} +1 -1
  31. package/dist/assets/{OffSick-_EZgqU01.js → OffSick-CG2hJbSq.js} +1 -1
  32. package/dist/assets/{Phone-oJLFEdfI.js → Phone-DkIl-1KJ.js} +1 -1
  33. package/dist/assets/{PlayArrow-rSzT1Thf.js → PlayArrow-DfQEcw-G.js} +1 -1
  34. package/dist/assets/{QuestionMarkCircle-Cw7EtCDd.js → QuestionMarkCircle-TVw9KuLr.js} +1 -1
  35. package/dist/assets/{ServerLogo-zdbLsMaw.js → ServerLogo-DQ3yw9lw.js} +1 -1
  36. package/dist/assets/{Timezone-BtCtoEo9.js → Timezone-B77bSXNW.js} +1 -1
  37. package/dist/assets/{TuneOutlined-BnxAi8kP.js → TuneOutlined-8KrrUCQF.js} +1 -1
  38. package/dist/assets/{ViewList-DbzNMeex.js → ViewList-Bql1EC1c.js} +1 -1
  39. package/dist/assets/{WorkingRemotely-YBya8rZT.js → WorkingRemotely-DNUERtUR.js} +1 -1
  40. package/dist/assets/{access-control-q2DA79L8.js → access-control-Bcd_n74E.js} +1 -1
  41. package/dist/assets/{actions-J8MFA_6y.js → actions-f0wKxzR1.js} +1 -1
  42. package/dist/assets/{add-component-core-IYRc9eac.js → add-component-core-BUAlsG4_.js} +1 -1
  43. package/dist/assets/add-resource-Djfsmv61.js +1 -0
  44. package/dist/assets/{addon-BQEpbqTR.js → addon-BkBy38_b.js} +1 -1
  45. package/dist/assets/{advanced-CX8tZItX.js → advanced-BPM38tnR.js} +1 -1
  46. package/dist/assets/{appearance-C5895lZP.js → appearance-DUNDV_8X.js} +1 -1
  47. package/dist/assets/ar-BNaEJSr3.js +7 -0
  48. package/dist/assets/ar-wbCXBm9M.js +1 -0
  49. package/dist/assets/{audit-logs-DukS3LSM.js → audit-logs-ClIsZeWB.js} +1 -1
  50. package/dist/assets/authorize-Czqr5dx0.js +1 -0
  51. package/dist/assets/{base32--dljmFCF.js → base32-CXHhcaAE.js} +1 -1
  52. package/dist/assets/{branding-Abk6CVlX.js → branding-CDVXldZI.js} +1 -1
  53. package/dist/assets/{branding-Cczews7F.js → branding-Dr6iifVv.js} +2 -2
  54. package/dist/assets/{bundle-avatar-DFwyxj9P.js → bundle-avatar-CXZCyfoQ.js} +1 -1
  55. package/dist/assets/button-n0UOGLKx.js +1 -0
  56. package/dist/assets/{click-to-copy-CbKZyfyr.js → click-to-copy-CYn1U-tf.js} +1 -1
  57. package/dist/assets/{complete-ejUOC1cY.js → complete-C-F4GC22.js} +1 -1
  58. package/dist/assets/{component-BOLQzzEI.js → component-DsEe2qX3.js} +2 -2
  59. package/dist/assets/{config-efFznM9P.js → config-A_My2cMO.js} +1 -1
  60. package/dist/assets/{config-Bv0DcfgY.js → config-DYPbZpg_.js} +1 -1
  61. package/dist/assets/{config-navigation-1cuUaRsL.js → config-navigation-Bi-pxL5K.js} +6 -6
  62. package/dist/assets/{config-space-DEku2tJv.js → config-space-DVjhjgJC.js} +1 -1
  63. package/dist/assets/{confirm-miQS3Z1c.js → confirm-BshZuFnD.js} +1 -1
  64. package/dist/assets/{connect-OYujfpaQ.js → connect-BPsVsyF2.js} +1 -1
  65. package/dist/assets/connect-DQxK32G8.js +5 -0
  66. package/dist/assets/{connect-to-C-vFK0ym.js → connect-to-DXXf0Nkb.js} +1 -1
  67. package/dist/assets/{content-layout-JixQ7owc.js → content-layout-AHDEW7YQ.js} +1 -1
  68. package/dist/assets/{dashboard-C9tAGBV0.js → dashboard-CCzZLCC4.js} +3 -3
  69. package/dist/assets/de-8GAnQkrt.js +1 -0
  70. package/dist/assets/de-BsZVQmUM.js +7 -0
  71. package/dist/assets/delete-confirm-DuoSMgmG.js +1 -0
  72. package/dist/assets/{did-address-DNf_-NM-.js → did-address-Cg-ez88b.js} +1 -1
  73. package/dist/assets/domain-B57opALw.js +9 -0
  74. package/dist/assets/domain-action-card-DGNzWGpO.js +24 -0
  75. package/dist/assets/domains-DSFXU6AI.js +1 -0
  76. package/dist/assets/dot-tsWWWiOg.js +7 -0
  77. package/dist/assets/{email-CBFKGDtB.js → email-DWoydsl3.js} +1 -1
  78. package/dist/assets/{empty-spinner-Rr_2DR73.js → empty-spinner-D_1iEwTc.js} +1 -1
  79. package/dist/assets/es-DsjXdm2X.js +1 -0
  80. package/dist/assets/es-ntlJbt-a.js +7 -0
  81. package/dist/assets/{exchange-passport-2U7cUaM-.js → exchange-passport-DysHnVpr.js} +1 -1
  82. package/dist/assets/fr-B-64BlVz.js +1 -0
  83. package/dist/assets/fr-Bv4B0MVB.js +7 -0
  84. package/dist/assets/{fuel-Ctl6kh4M.js → fuel-TLPi2Hr-.js} +1 -1
  85. package/dist/assets/gen-access-key-D4caSeDS.js +2 -0
  86. package/dist/assets/{get-safe-url-BXaepgsm.js → get-safe-url-Bz4L9R5-.js} +1 -1
  87. package/dist/assets/{get-safe-url-MZ-ksvtD.js → get-safe-url-Dex6FTwp.js} +1 -1
  88. package/dist/assets/hi-CY-kyCxp.js +1 -0
  89. package/dist/assets/hi-DIf_hqVB.js +5 -0
  90. package/dist/assets/{home-C2Bgs4zS.js → home-CBFACtB_.js} +1 -1
  91. package/dist/assets/id-BT_84X-S.js +1 -0
  92. package/dist/assets/id-DZBgOnwF.js +7 -0
  93. package/dist/assets/{iframe-oHkt22fl.js → iframe-B4jzt2b3.js} +1 -1
  94. package/dist/assets/{index-CNpN35y4.js → index-3r4UtN8A.js} +1 -1
  95. package/dist/assets/{index-C7UL-KG1.js → index-ARVZ7FJv.js} +1 -1
  96. package/dist/assets/index-B0-4M8vb.js +10 -0
  97. package/dist/assets/{index-DhGZEbPZ.js → index-BG5LYRZd.js} +1 -1
  98. package/dist/assets/{index-BiIKWZTs.js → index-BOEhBltr.js} +4 -4
  99. package/dist/assets/{index-BT3gX_Gs.js → index-BXkEM7e9.js} +1 -1
  100. package/dist/assets/{index-ILkKQT7G.js → index-Bdp7LpPc.js} +1 -1
  101. package/dist/assets/index-Birdle6P.js +224 -0
  102. package/dist/assets/{index-DQc29-JM.js → index-BowdADDJ.js} +1 -1
  103. package/dist/assets/{index-B1EwWGHW.js → index-BplAimRX.js} +1 -1
  104. package/dist/assets/{index-DHdYd4nT.js → index-C3f1mXja.js} +3 -3
  105. package/dist/assets/{index-DGPhY8xp.js → index-CGe7n5Gc.js} +1 -1
  106. package/dist/assets/index-CSARD20E.js +346 -0
  107. package/dist/assets/{index-DHjPgdgK.js → index-CU8fxqsS.js} +1 -1
  108. package/dist/assets/{index-BWx6ivvZ.js → index-CVvs-hHV.js} +23 -23
  109. package/dist/assets/{index-C3XAI9I7.js → index-Cks6t9cs.js} +1 -1
  110. package/dist/assets/index-DEAA6iri.js +92 -0
  111. package/dist/assets/{index-CzzLOOSx.js → index-DKq7-33g.js} +2 -2
  112. package/dist/assets/{index-BRXM9-_y.js → index-DO1hKTlI.js} +1 -1
  113. package/dist/assets/{index-GJgyTjK2.js → index-DPpP2Hz6.js} +1 -1
  114. package/dist/assets/{index-Hl4sXXdc.js → index-DomukIqT.js} +1 -1
  115. package/dist/assets/{index-51ncOoae.js → index-MbAvBCGD.js} +1 -1
  116. package/dist/assets/{index-qcSTfn8X.js → index-NRj7GpkA.js} +1 -1
  117. package/dist/assets/{invitation-CPSru_8S.js → invitation-7bE4cIXB.js} +5 -5
  118. package/dist/assets/{invite-DquuAqEb.js → invite-COQN-rNg.js} +1 -1
  119. package/dist/assets/{issue-passport-DW27M9Fi.js → issue-passport-11S7tmQW.js} +1 -1
  120. package/dist/assets/{item-CdEFLc19.js → item-BeeQ2vgS.js} +2 -2
  121. package/dist/assets/ja-8jRYJGVw.js +7 -0
  122. package/dist/assets/ja-BMmtgJml.js +1 -0
  123. package/dist/assets/ko-C4pbuwv8.js +7 -0
  124. package/dist/assets/ko-ChmGYnnx.js +1 -0
  125. package/dist/assets/{landing-page-DPD1zNWJ.js → landing-page-DfhVYZ3b.js} +1 -1
  126. package/dist/assets/{launch-result-message-yorrVgpQ.js → launch-result-message-CCo4xyOd.js} +1 -1
  127. package/dist/assets/{layout-DBsOgAhr.js → layout-DToDlHEw.js} +1 -1
  128. package/dist/assets/{list-BNd4p4TF.js → list-ChvGKHw5.js} +1 -1
  129. package/dist/assets/{list-header-BTUducS9.js → list-header-C7I2nEkf.js} +1 -1
  130. package/dist/assets/localization-DfJCYesK.js +1 -0
  131. package/dist/assets/{log-R8TIkchf.js → log-DwhNr5TA.js} +1 -1
  132. package/dist/assets/{logger-d2Lh_KCF.js → logger-DwVuCvCH.js} +1 -1
  133. package/dist/assets/{login-Dgvm6HMJ.js → login-_FUfsuwA.js} +1 -1
  134. package/dist/assets/{login-oauth-callback-rmUYgE44.js → login-oauth-callback-BfAWMSC0.js} +1 -1
  135. package/dist/assets/{logo-uploader-Bv2ZSxJV.js → logo-uploader-CYJXgjdA.js} +3 -3
  136. package/dist/assets/{lost-passport-CiVM9B2L.js → lost-passport-bl0QaFCp.js} +1 -1
  137. package/dist/assets/{open-window-D2wkW326.js → open-window-BTH_1q7i.js} +1 -1
  138. package/dist/assets/{overview-C_fDcPQA.js → overview-D4gQwSex.js} +1 -1
  139. package/dist/assets/{page-header-C86YQnHE.js → page-header-DWEFpJCI.js} +1 -1
  140. package/dist/assets/{passport-item-C4X2VZeo.js → passport-item-Z9x6DkU5.js} +1 -1
  141. package/dist/assets/{permission-CbDCh9eS.js → permission-CDRSpazM.js} +1 -1
  142. package/dist/assets/{preferences-Cdzon7pe.js → preferences-Dck4NebC.js} +1 -1
  143. package/dist/assets/{profile-embed-Dr2ZxkvM.js → profile-embed-CJdf2c_q.js} +1 -1
  144. package/dist/assets/pt-CMeQ7KWn.js +5 -0
  145. package/dist/assets/pt-DjThuHre.js +1 -0
  146. package/dist/assets/publish-resource-CaRrvCS8.js +1 -0
  147. package/dist/assets/{react-beautiful-dnd.esm-kcYalw4r.js → react-beautiful-dnd.esm-CP-WHcip.js} +1 -1
  148. package/dist/assets/{relative-time-Dkz5qmEb.js → relative-time-4f6xdgg-.js} +1 -1
  149. package/dist/assets/ru-8cWKcW3b.js +5 -0
  150. package/dist/assets/ru-CI1dkyMC.js +1 -0
  151. package/dist/assets/{runtime-HBzWjxDb.js → runtime-r0b7mSwp.js} +1 -1
  152. package/dist/assets/sdk-fuEXLKzh.js +1 -0
  153. package/dist/assets/{security-BFBpBlQy.js → security-CLc8EI2b.js} +1 -1
  154. package/dist/assets/{session-CdQbSkeB.js → session-CmpGpqja.js} +1 -1
  155. package/dist/assets/setup-C0tLi0hm.js +19 -0
  156. package/dist/assets/{shorten-label-Dz7RgJfj.js → shorten-label-CE57Fd6E.js} +1 -1
  157. package/dist/assets/{simple-select-BlUQXxNL.js → simple-select-rdkVpCfB.js} +1 -1
  158. package/dist/assets/{slicedToArray-lOWXD6Th.js → slicedToArray-BBoi0da6.js} +1 -1
  159. package/dist/assets/{spaces-CcTi9vap.js → spaces-Cf25Nw85.js} +1 -1
  160. package/dist/assets/{start-BitVK7fH.js → start-CrRC75qe.js} +1 -1
  161. package/dist/assets/{status-F7OR8ZWk.js → status-BSBLuo2u.js} +1 -1
  162. package/dist/assets/{step-actions-Cmh5n2jE.js → step-actions-YXGJQMCB.js} +1 -1
  163. package/dist/assets/{studio-CW2bLcBh.js → studio-wUJ0pUIv.js} +1 -1
  164. package/dist/assets/{switch-control-BjOmRKBW.js → switch-control-D0bd_WCg.js} +1 -1
  165. package/dist/assets/th-4Bnumejd.js +1 -0
  166. package/dist/assets/th-DYYGBboI.js +5 -0
  167. package/dist/assets/{traffic-CcfffSvS.js → traffic-BhA3A82Z.js} +1 -1
  168. package/dist/assets/{transfer-DHcMO-R4.js → transfer-BmP7JwN2.js} +1 -1
  169. package/dist/assets/{unsubscribe-DnPmucfC.js → unsubscribe-zK0TSWH3.js} +1 -1
  170. package/dist/assets/{use-app-logo-DnfizCGM.js → use-app-logo-DAnHvb1d.js} +1 -1
  171. package/dist/assets/{use-mobile-Bgy7gTTP.js → use-mobile-CwehvZ0f.js} +1 -1
  172. package/dist/assets/{use-mobile-CcdVxg80.js → use-mobile-KRs0Yv73.js} +1 -1
  173. package/dist/assets/useAsync-CGW40D2-.js +1 -0
  174. package/dist/assets/{useLocalStorage-BJb7uGDO.js → useLocalStorage-CNdV3Qx_.js} +1 -1
  175. package/dist/assets/{user-center-u43jJYr4.js → user-center-CTXkd8hW.js} +1 -1
  176. package/dist/assets/{util-BYLEVYA_.js → util-C4Ha7L5d.js} +1 -1
  177. package/dist/assets/{util-CJbxj6IE.js → util-DrL3FFCf.js} +1 -1
  178. package/dist/assets/{vendor-arcblock-CWji6U03.js → vendor-arcblock-JGYMkSwE.js} +5 -5
  179. package/dist/assets/{vendor-mui-core-CfA4EdRA.js → vendor-mui-core-8zafwTFh.js} +20 -20
  180. package/dist/assets/{vendor-mui-x-DSNWmGVo.js → vendor-mui-x-Df6DxoLi.js} +1 -1
  181. package/dist/assets/{vendor-ux-did-connect-zBIy2ulO.js → vendor-ux-did-connect-D2f9rdKK.js} +4 -4
  182. package/dist/assets/vi-Bc6q0tph.js +1 -0
  183. package/dist/assets/vi-CfH0km8q.js +5 -0
  184. package/dist/assets/wrap-locale-5dMXj7tV.js +1 -0
  185. package/dist/assets/{zh-CY9wasmC.js → zh-DZlGQAU9.js} +1 -1
  186. package/dist/assets/zh-tw-Be5lgYGX.js +7 -0
  187. package/dist/assets/zh-tw-CLcDyLaC.js +1 -0
  188. package/dist/index.html +4 -4
  189. package/dist/service-worker.js +1 -1
  190. package/package.json +45 -45
  191. package/dist/assets/LoadingButton-D_tuQuaP.js +0 -1
  192. package/dist/assets/add-resource-8w2aCwfA.js +0 -1
  193. package/dist/assets/ar-BUQWR0Zu.js +0 -1
  194. package/dist/assets/ar-DRtGxecv.js +0 -7
  195. package/dist/assets/authorize-CEHLfOxJ.js +0 -1
  196. package/dist/assets/button-CJk6Iiza.js +0 -1
  197. package/dist/assets/connect-0B3z_kZV.js +0 -5
  198. package/dist/assets/de-BZDWXY3K.js +0 -7
  199. package/dist/assets/de-_X0eQXZu.js +0 -1
  200. package/dist/assets/delete-confirm-kKb8VxbQ.js +0 -1
  201. package/dist/assets/domain-RAN90v9n.js +0 -9
  202. package/dist/assets/domain-action-card-BNybk5kq.js +0 -25
  203. package/dist/assets/domains-B51g2OQM.js +0 -1
  204. package/dist/assets/dot-xwsgXXMo.js +0 -7
  205. package/dist/assets/es-kQ6jQG-H.js +0 -7
  206. package/dist/assets/es-yHIDSG5r.js +0 -1
  207. package/dist/assets/fr-Bf3jz4q5.js +0 -7
  208. package/dist/assets/fr-D6i3bCqR.js +0 -1
  209. package/dist/assets/gen-access-key-CIrRotRy.js +0 -2
  210. package/dist/assets/hi-ChVLDWm_.js +0 -1
  211. package/dist/assets/hi-DPdbGXyy.js +0 -5
  212. package/dist/assets/id-BqmT-cL5.js +0 -7
  213. package/dist/assets/id-D6XXuY_a.js +0 -1
  214. package/dist/assets/index-B1-S-x6B.js +0 -346
  215. package/dist/assets/index-BaU0U5xc.js +0 -224
  216. package/dist/assets/index-CILVFQJH.js +0 -92
  217. package/dist/assets/index-Ds7z-vG7.js +0 -10
  218. package/dist/assets/ja-CyUU4_H1.js +0 -7
  219. package/dist/assets/ja-DKZCt8Yp.js +0 -1
  220. package/dist/assets/ko-B0uE9AyQ.js +0 -1
  221. package/dist/assets/ko-DWTxutv1.js +0 -7
  222. package/dist/assets/localization-CS7BsCef.js +0 -1
  223. package/dist/assets/pt-BcsDG9H6.js +0 -5
  224. package/dist/assets/pt-DCzE4kPq.js +0 -1
  225. package/dist/assets/publish-resource-DumHfLtC.js +0 -1
  226. package/dist/assets/ru-B9yj9TuE.js +0 -1
  227. package/dist/assets/ru-BwH1q1F1.js +0 -5
  228. package/dist/assets/sdk-DuZx5LYY.js +0 -1
  229. package/dist/assets/setup-BSfklNq4.js +0 -19
  230. package/dist/assets/th-CNztcQMJ.js +0 -5
  231. package/dist/assets/th-et0IV3ES.js +0 -1
  232. package/dist/assets/useAsync-70zHrUMr.js +0 -1
  233. package/dist/assets/useAsync-BquSRC77.js +0 -1
  234. package/dist/assets/vi-Bpl5HEj4.js +0 -5
  235. package/dist/assets/vi-LBvVt_pj.js +0 -1
  236. package/dist/assets/wrap-locale-BSYWBgCo.js +0 -1
  237. package/dist/assets/zh-tw-D6qZTlL3.js +0 -7
  238. package/dist/assets/zh-tw-l3XXo5aT.js +0 -1
@@ -1,4 +1,4 @@
1
- import{b as AA,r as u}from"./vendor-react-DEoibe3W.js";import{H as P,j as A,I as V,bw as xA,y as R,P as PA,w as OA,a6 as DA,M as sA,q as jA,c2 as yA,O as eA,a9 as e,aa as zA,ag as h,c_ as fA,b_ as CA,E as lA,bq as MA,ak as LA,T as o,X as m}from"./vendor-mui-core-CfA4EdRA.js";import{b2 as nA,d as q,Y as ZA}from"./vendor-ux-did-connect-zBIy2ulO.js";import{w as EA}from"./vendor-hooks-DftG_2gV.js";import{c as D}from"./vendor-arcblock-CWji6U03.js";import{d as tA}from"./Done-CkkNExgL.js";import{F as gA,R as cA,L as p}from"./logo-uploader-Bv2ZSxJV.js";import{E as TA}from"./EditIcon-BRKobKzh.js";import{d as QA}from"./ArrowDropDown-BHNhtNqo.js";import{z as bA,U as IA,V as YA}from"./index-BWx6ivvZ.js";import{w as uA}from"./permission-CbDCh9eS.js";import{u as GA}from"./use-app-logo-DnfizCGM.js";import{S as W}from"./dashboard-C9tAGBV0.js";import"./vendor-utils-BNHJB5U7.js";import"./lottie-web-jYmAQWuC.js";import"./index-DVQCgvFb.js";import"./session-CdQbSkeB.js";import"./useLocalStorage-BJb7uGDO.js";import"./confirm-miQS3Z1c.js";import"./format-error-BrmqJs5a.js";import"./PlayArrow-rSzT1Thf.js";import"./get-safe-url-MZ-ksvtD.js";import"./index-Hl4sXXdc.js";import"./InfoOutlined-ZIQMeu0p.js";import"./dot-xwsgXXMo.js";import"./useAsync-BquSRC77.js";import"./useSetState-CWq0AVWn.js";import"./use-mobile-CcdVxg80.js";function U({triggers:f,onEnterEdit:t,disabled:r}){const B=AA.useRef(null),[s,X]=AA.useState(!1),x=b=>{X(!1),b()},v=()=>{X(b=>!b)},c=b=>{B.current&&B.current.contains(b.target)||X(!1)};return f.length===0?A.jsx(V,{"data-cy":"schema-form-item-edit",onClick:t,disabled:r,size:"large",children:A.jsx(TA,{})}):A.jsxs(A.Fragment,{children:[A.jsx(xA,{variant:"outlined",ref:B,"aria-label":"split button",children:A.jsx(R,{size:"large","aria-controls":s?"split-button-menu":void 0,"aria-expanded":s?"true":void 0,sx:{paddingLeft:"12px",paddingRight:"12px"},onClick:v,children:A.jsx(QA,{})})}),A.jsx(PA,{sx:{zIndex:9999},open:s,anchorEl:B.current,role:void 0,placement:"bottom-end",children:A.jsx(OA,{children:A.jsx(DA,{onClickAway:c,children:A.jsx(sA,{id:"split-button-menu",autoFocusItem:!0,children:f.map(b=>A.jsx(jA,{onClick:()=>x(b.handler),children:b.title},b.key))})})})})]})}U.propTypes={triggers:P.arrayOf(P.shape({key:P.string.isRequired,title:P.string.isRequired,handler:P.func.isRequired})),onEnterEdit:P.func.isRequired,disabled:P.bool.isRequired};U.defaultProps={triggers:[]};const vA=(f,t,r)=>f===null&&t&&r?"******":f?t?"******":f:"",aA=yA`
1
+ import{b as AA,r as u}from"./vendor-react-DEoibe3W.js";import{H as P,j as A,I as V,bw as xA,y as R,P as PA,w as OA,a6 as DA,M as sA,q as jA,c2 as yA,O as eA,a9 as e,aa as zA,ag as h,cX as fA,b_ as CA,E as lA,bq as MA,ak as LA,T as o,X as m}from"./vendor-mui-core-8zafwTFh.js";import{b2 as nA,d as q,Y as ZA}from"./vendor-ux-did-connect-D2f9rdKK.js";import{w as EA}from"./vendor-hooks-DftG_2gV.js";import{c as D}from"./vendor-arcblock-JGYMkSwE.js";import{d as tA}from"./Done-ClKUqna8.js";import{F as gA,R as cA,L as p}from"./logo-uploader-CYJXgjdA.js";import{E as TA}from"./EditIcon-B3vzcBhw.js";import{d as QA}from"./ArrowDropDown-D0s0w2rW.js";import{z as bA,U as IA,V as YA}from"./index-CVvs-hHV.js";import{w as uA}from"./permission-CDRSpazM.js";import{u as GA}from"./use-app-logo-DAnHvb1d.js";import{S as W}from"./dashboard-CCzZLCC4.js";import"./vendor-utils-BNHJB5U7.js";import"./lottie-web-jYmAQWuC.js";import"./index-DVQCgvFb.js";import"./session-CmpGpqja.js";import"./useLocalStorage-CNdV3Qx_.js";import"./confirm-BshZuFnD.js";import"./format-error-BrmqJs5a.js";import"./PlayArrow-DfQEcw-G.js";import"./get-safe-url-Bz4L9R5-.js";import"./index-DomukIqT.js";import"./InfoOutlined-K2cm3ASV.js";import"./dot-tsWWWiOg.js";import"./useAsync-CGW40D2-.js";import"./useSetState-CWq0AVWn.js";import"./use-mobile-KRs0Yv73.js";function U({triggers:f,onEnterEdit:t,disabled:r}){const B=AA.useRef(null),[s,X]=AA.useState(!1),x=b=>{X(!1),b()},v=()=>{X(b=>!b)},c=b=>{B.current&&B.current.contains(b.target)||X(!1)};return f.length===0?A.jsx(V,{"data-cy":"schema-form-item-edit",onClick:t,disabled:r,size:"large",children:A.jsx(TA,{})}):A.jsxs(A.Fragment,{children:[A.jsx(xA,{variant:"outlined",ref:B,"aria-label":"split button",children:A.jsx(R,{size:"large","aria-controls":s?"split-button-menu":void 0,"aria-expanded":s?"true":void 0,sx:{paddingLeft:"12px",paddingRight:"12px"},onClick:v,children:A.jsx(QA,{})})}),A.jsx(PA,{sx:{zIndex:9999},open:s,anchorEl:B.current,role:void 0,placement:"bottom-end",children:A.jsx(OA,{children:A.jsx(DA,{onClickAway:c,children:A.jsx(sA,{id:"split-button-menu",autoFocusItem:!0,children:f.map(b=>A.jsx(jA,{onClick:()=>x(b.handler),children:b.title},b.key))})})})})]})}U.propTypes={triggers:P.arrayOf(P.shape({key:P.string.isRequired,title:P.string.isRequired,handler:P.func.isRequired})),onEnterEdit:P.func.isRequired,disabled:P.bool.isRequired};U.defaultProps={triggers:[]};const vA=(f,t,r)=>f===null&&t&&r?"******":f?t?"******":f:"",aA=yA`
2
2
  0%, 100% {
3
3
  transform: scale(1) translateX(0);
4
4
  }
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DHdYd4nT.js","assets/vendor-ux-did-connect-zBIy2ulO.js","assets/vendor-react-DEoibe3W.js","assets/vendor-utils-BNHJB5U7.js","assets/vendor-mui-core-CfA4EdRA.js","assets/vendor-hooks-DftG_2gV.js","assets/lottie-web-jYmAQWuC.js","assets/vendor-ux-did-connect-DpSGLE7B.css","assets/vendor-arcblock-CWji6U03.js","assets/index-YbJjfDTR.js","assets/index-BWx6ivvZ.js","assets/index-B1ljmpu4.css","assets/index-DVQCgvFb.js","assets/index-AgKpYdvC.css"])))=>i.map(i=>d[i]);
2
- import{_ as Se}from"./vendor-arcblock-CWji6U03.js";import{a8 as Ie,j as e,ak as z,T as P,a9 as m,bc as Pe,ac as re,I as F,D as ue,H as w,ai as ke,t as Re,bV as Ee,N as oe,z as _e,y as $,ag as Ve}from"./vendor-mui-core-CfA4EdRA.js";import{r as De,u as Le,b9 as Oe,j as L}from"./vendor-ux-did-connect-zBIy2ulO.js";import{E as M}from"./empty-spinner-Rr_2DR73.js";import{d as ie}from"./DeleteOutline-CMgoFNHT.js";import{m as Te,e as $e}from"./vendor-hooks-DftG_2gV.js";import{r as h}from"./vendor-react-DEoibe3W.js";import{D as se,C as ne,P as ae}from"./react-beautiful-dnd.esm-kcYalw4r.js";import{S as K}from"./studio-CW2bLcBh.js";import"./vendor-utils-BNHJB5U7.js";import"./lottie-web-jYmAQWuC.js";import"./raf-schd.esm-B3j6BePR.js";import"./TuneOutlined-BnxAi8kP.js";var C={};Object.defineProperty(C,"__esModule",{value:!0});C.getVideoId=O;var Ue=C.getEmbedUrl=ze,We=C.getVideoCoverUrl=Fe,Ae=C.getVideoCheckUrl=Ne;C.getYoutubeId=pe;C.getVimeoId=he;C.isVideoUrl=He;function pe(r){var s,l,i;const t=r.trim();return t.includes("youtu.be/")?(s=t.split("youtu.be/")[1])==null?void 0:s.split("?")[0]:t.includes("/embed/")?(l=t.split("/embed/")[1])==null?void 0:l.split("?")[0]:t.includes("youtube.com/watch")?new URL(t).searchParams.get("v"):t.includes("youtube.com/shorts/")?(i=t.split("/shorts/")[1])==null?void 0:i.split("?")[0]:""}function he(r){var s,l,i,a,u,y,f;const t=r.trim();return t.includes("/embed/")?(s=t.split("/embed/")[1])==null?void 0:s.split("?")[0]:t.includes("vimeo.com/video/")?(l=t.split("/video/")[1])==null?void 0:l.split("?")[0]:t.includes("vimeo.com/channels/")?(a=(i=t.split("/channels/")[1])==null?void 0:i.split("/")[1])==null?void 0:a.split("?")[0]:t.includes("vimeo.com/groups/")?(y=(u=t.split("/groups/")[1])==null?void 0:u.split("/")[1])==null?void 0:y.split("?")[0]:t.includes("vimeo.com/")?(f=t.split("vimeo.com/")[1])==null?void 0:f.split("?")[0]:""}const U={};function O(r){const t=r.trim();return!t||!/^https?:\/\/.+\..+/.test(t)?[]:(U[t]||(U[t]=(()=>{const s=new URL(t);return s.host.includes("youtube.com")||s.host.includes("youtu.be")?[pe(t),"youtube"]:s.host.includes("vimeo.com")?[he(t),"vimeo"]:[]})()),U[t])}const R={};function ze(r,{modestbranding:t=1,controls:s=0,autoplay:l=0}={}){const i=r.trim();if(!i)return"";if(R[i]!==void 0)return R[i];const[a,u]=O(i);return u==="youtube"?R[i]=`https://www.youtube.com/embed/${a}?modestbranding=${t}&controls=${s}&autoplay=${l}`:u==="vimeo"?R[i]=`https://player.vimeo.com/video/${a}?autoplay=${l}`:R[i]="",R[i]}const E={};function Fe(r){const t=r.trim();if(!t)return"";if(E[t]!==void 0)return E[t];const[s,l]=O(t);return l==="youtube"?E[t]=`https://img.youtube.com/vi/${s}/mqdefault.jpg`:l==="vimeo"?E[t]=`https://i.vimeocdn.com/${s}/1000x563`:E[t]="",E[t]}function Ne(r){const t=r.trim();if(!t)return"";const[s,l]=O(t);return l==="youtube"?`https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=${s}&format=json`:l==="vimeo"?`https://vimeo.com/api/oembed.json?url=https://vimeo.com/${s}`:""}function He(r){const t=r.trim();return O(t).length>0}var X={},qe=Ie;Object.defineProperty(X,"__esModule",{value:!0});var me=X.default=void 0,Be=qe(De()),Ke=e;me=X.default=(0,Be.default)((0,Ke.jsx)("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m7 18H5V4h2v3h10V4h2z"}),"ContentPaste");const le=h.lazy(()=>Se(()=>import("./index-DHdYd4nT.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])).then(r=>({default:r.Uploader}))),Me=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo/upload`,Xe=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots/upload`,Ye=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo`,W=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots`,Je=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/videos`,ce=5,de=3;function ut(){var ee;const{t:r,locale:t}=Le(),[s,l]=h.useState(!1),[i,a]=h.useState(!1),[u,y]=h.useState([]),[f,j]=h.useState([]),[x,S]=h.useState(""),[T,_]=h.useState(""),[N,H]=h.useState(Date.now()),p=Te(async()=>{var c;const n=await(await fetch(W)).json();return y(n.screenshots||[]),j(((c=n.videos)==null?void 0:c.filter(d=>!!d))||[]),n}),k=h.useRef(null),g=h.useRef(null);if(p.loading&&!p.data)return e.jsx(K,{children:e.jsx(M,{size:40})});if(p.error)return e.jsx(K,{children:e.jsx(z,{direction:"column",spacing:1,sx:{mb:3},children:e.jsx(P,{color:"error.main",sx:{fontWeight:"bold"},children:p.error.message})})});const v=async o=>{const n=o.filter(c=>!!c);j(n),await fetch(Je,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({videos:n})})},q=async o=>{const n=Array.from(f),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),await v(n)},fe=async o=>{const n=Array.from(u),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),y(n),await fetch(`${W}/reorder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({screenshots:n})})},J=async o=>{o.destination&&(o.source.droppableId==="screenshots"?await fe(o):o.source.droppableId==="videos"&&await q(o),p.runAsync())},Z=o=>{_(o.trim()),a(!0)},G=async(o,n="")=>{let c=[];n?c=o?f.map(d=>d===n?o.trim():d):f.filter(d=>d!==n):o&&(c=[...f,o.trim()]),_(""),a(!1),(o||n)&&await v(c),p.runAsync()},xe=o=>{l(!0),S(o)},Q=()=>{l(!1),S("")};function be(){const o=[{label:r("studio.type"),value:"png, jpg, webp, svg"},{label:r("studio.ratio"),value:"256x256"},{label:r("studio.size"),value:"<500KB"}],n=[{label:r("studio.tip"),value:r("studio.change")}];return e.jsx(A,{title:r("common.logo"),rules:o,tips:n,children:e.jsx(m,{sx:{flex:1,cursor:"pointer"},children:e.jsx(Pe,{variant:"square",sx:{width:128,height:128},alt:"Blocklet Logo",src:`${Ye}?t=${N}`,onClick:()=>{var c;return(c=k.current)==null?void 0:c.open()}})})})}function ve(){const o=[{label:r("studio.ratio"),value:"16 / 9"},{label:r("studio.count"),value:`1~${ce}`},{label:r("studio.size"),value:"<5MB"}],n=[{label:r("studio.tip"),value:r("studio.orderTipLong")}];return e.jsx(A,{title:r("common.screenshot"),tips:n,rules:o,children:e.jsx(se,{onDragEnd:J,children:e.jsx(ne,{droppableId:"screenshots",direction:"horizontal",children:(d,V)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:V.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:V.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[u.map((b,B)=>e.jsx(ae,{draggableId:b,index:B,children:(I,D)=>{const te=`${W}/${b}`;return e.jsxs(m,{ref:I.innerRef,...I.draggableProps,...I.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"screenshot",src:te,onClick:()=>xe(b),style:{cursor:"pointer"}}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:async()=>{await fetch(te,{method:"DELETE"}),p.runAsync()},children:e.jsx(ie,{})})})]})}},b)),d.placeholder,u.length<ce&&c()]})})})});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>{var d;return(d=g.current)==null?void 0:d.open()},children:"+"})}}function je(){const o=[{label:r("studio.count"),value:`1~${de}`},{label:r("studio.videoType"),value:e.jsxs(e.Fragment,{children:[e.jsx("a",{href:"https://www.youtube.com/",target:"_blank",rel:"noreferrer",children:"Youtube"}),","," ",e.jsx("a",{href:"https://vimeo.com/",target:"_blank",rel:"noreferrer",children:"Vimeo"})]})}],n=[{label:`${r("studio.tip")}`,value:r("studio.videoTipLong")}];return e.jsxs(A,{title:r("studio.video"),tips:n,rules:o,children:[e.jsx(se,{onDragEnd:J,children:e.jsx(ne,{droppableId:"videos",direction:"horizontal",children:(d,V)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:V.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:V.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[f.map((b,B)=>e.jsx(ae,{draggableId:b,index:B,children:(I,D)=>e.jsxs(m,{ref:I.innerRef,...I.draggableProps,...I.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"videos",src:We(b),onClick:()=>Z(b),style:{cursor:"pointer"}}),e.jsx(m,{sx:{position:"absolute",cursor:"pointer",fontSize:"3rem"},onClick:()=>Z(b),children:e.jsx(ge,{})}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:()=>G(null,b),children:e.jsx(ie,{})})})]})},b)),d.placeholder,f.length<de&&c()]})})}),i&&e.jsx(Y,{t:r,handleOperateVideo:G,defaultUrl:T,videos:f})]});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>a(!0),children:"+"})}}function ye(){return e.jsx(ue,{open:s,onClose:Q,maxWidth:"xl",PaperProps:{style:{backgroundColor:"transparent",boxShadow:"none"}},children:e.jsx("img",{src:`${W}/${x}`,alt:"Screenshot Full",style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain"},onClick:Q})})}function we(){return e.jsxs(h.Suspense,{fallback:e.jsx(M,{size:40}),children:[e.jsx(le,{ref:k,locale:t,popup:!0,onUploadFinish:()=>{var o;(o=k.current)==null||o.close(),H(Date.now()),p.runAsync()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:Me,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/png","image/jpeg","image/webp","image/svg+xml"],maxFileSize:1024*1024*.5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,aspectRatio:1,initialAspectRatio:1,autoCropArea:1,croppedCanvasOptions:{minWidth:256,minHeight:256}}}},"uploader-logo"),e.jsx(le,{ref:g,locale:t,popup:!0,onUploadFinish:()=>{var o;(o=g.current)==null||o.close(),p.runAsync()},installerProps:{disabled:!0},plugins:["ImageEditor"],apiPathProps:{uploader:Xe,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/*","image/svg+xml"],maxFileSize:1024*1024*5,maxNumberOfFiles:5-u.length}},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:16/9,initialAspectRatio:16/9,croppedCanvasOptions:{minWidth:1280,minHeight:720,maxWidth:1280*2,maxHeight:720*2}}}},"uploader-screenshot")]})}const Ce=`https://www.arcblock.io/docs/blocklet-store/${t}/supplying-images`;return e.jsx(K,{children:e.jsxs(Ze,{children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:3},children:[e.jsx(P,{variant:"h5",sx:{fontWeight:"bold"},children:r("studio.title",{title:(ee=p.data)==null?void 0:ee.title})}),e.jsxs(P,{variant:"body2",color:"text.secondary",children:[r("studio.description")," ",e.jsx("a",{href:Ce,target:"_blank",rel:"noreferrer",children:r("studio.documentation")})]})]}),be(),ve(),je(),ye(),we()]})})}function A({title:r,rules:t,tips:s,children:l}){return e.jsxs(m,{display:"flex",flexDirection:"column",sx:{mb:4},children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:2},children:[e.jsx(P,{variant:"h6",sx:{fontWeight:"bold"},children:r}),e.jsx(z,{direction:"row",spacing:2,sx:{fontSize:"13px",opacity:.8},children:t.map(a=>i(a.label,a.value))}),s.map(a=>e.jsx(m,{sx:{fontSize:"13px",opacity:.8},children:i(a.label,a.value)}))]}),l]});function i(a,u){return e.jsxs(m,{component:"span",children:[e.jsxs(m,{component:"span",sx:{color:"#555",mr:.5},children:[a,":"]}),e.jsx(m,{component:"span",sx:{color:"#007ec6"},children:u})]})}}A.propTypes={title:w.string.isRequired,rules:w.array.isRequired,tips:w.array.isRequired,children:w.node.isRequired};function Y({handleOperateVideo:r,t,defaultUrl:s="",videos:l}){var k;const[i,a]=h.useState(s),[u,y]=h.useState(!1),[f,j]=h.useState(!1),x=h.useRef(i),S=i!==s&&l.includes(i),T=!i&&s,_=!S&&(i&&i!==x.current||u),N=!!((k=navigator.clipboard)!=null&&k.readText),{run:H}=$e(p,{wait:500,leading:!0});return e.jsxs(ue,{open:!0,fullWidth:!0,maxWidth:"sm",children:[e.jsx(ke,{children:t(s?"studio.videoDialogEditTitle":"studio.videoDialogTitle")}),e.jsxs(Re,{children:[e.jsx(Ee,{fullWidth:!0,value:i,onChange:g=>{const v=g.target.value.trim();a(v),v?H(v):j(!1)},placeholder:t("studio.videoInputLabel"),endAdornment:i?e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:()=>{a(""),p("")},children:e.jsx(Oe,{})})}):N&&e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:async()=>{try{const g=(await navigator.clipboard.readText()||"").trim();a(g),p(g)}catch(g){console.error(g)}},children:e.jsx(me,{})})})}),e.jsxs(m,{mb:2,mt:.5,children:[S&&e.jsx(P,{variant:"body2",color:"error",children:t("studio.duplicateVideo")}),!S&&f&&e.jsx(P,{variant:"body2",color:"error",children:t("studio.videoDialogNoSrc")})]}),x.current?e.jsx("iframe",{width:"100%",height:"315",title:`video-${x.current}`,src:Ue(x.current),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,border:"1px solid #eee"}):e.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:315,width:"100%",border:"1px solid #eee"},children:u?e.jsx(M,{size:40}):e.jsx(P,{variant:"h5",color:"text.secondary",children:e.jsx(ge,{})})})]}),e.jsxs(_e,{children:[e.jsx($,{onClick:()=>r(),children:t("studio.cancel")}),T&&e.jsx($,{variant:"contained",color:"error",onClick:()=>r(null,s),children:t("studio.delete")}),_&&e.jsx($,{variant:"contained",onClick:()=>p(i),disabled:!i||u,children:t("studio.preview")}),!T&&!_&&e.jsx($,{variant:"contained",onClick:()=>r(x.current),disabled:!x.current||s===x.current||S,children:t("studio.confirm")})]})]});function p(g){x.current="";const v=Ae(g);j(g?!v:!1),v&&(y(!0),fetch(v).then(q=>{q.ok?(x.current=g,j(!1)):j(!0)}).catch(()=>{j(!0)}).finally(()=>y(!1)))}}Y.propTypes={handleOperateVideo:w.func.isRequired,t:w.func.isRequired,defaultUrl:w.string,videos:w.array.isRequired};Y.defaultProps={defaultUrl:""};function ge(){return e.jsxs("svg",{viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:48,width:48,children:[e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28 56C43.464 56 56 43.464 56 28C56 12.536 43.464 0 28 0C12.536 0 0 12.536 0 28C0 43.464 12.536 56 28 56Z",fill:"black","fill-opacity":"0.54"}),e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6667 28L21 17.5V38.5L39.6667 28Z",fill:"white"})]})}const Ze=Ve.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-C3f1mXja.js","assets/vendor-ux-did-connect-D2f9rdKK.js","assets/vendor-react-DEoibe3W.js","assets/vendor-utils-BNHJB5U7.js","assets/vendor-mui-core-8zafwTFh.js","assets/vendor-hooks-DftG_2gV.js","assets/lottie-web-jYmAQWuC.js","assets/vendor-ux-did-connect-DpSGLE7B.css","assets/vendor-arcblock-JGYMkSwE.js","assets/index-YbJjfDTR.js","assets/index-CVvs-hHV.js","assets/index-B1ljmpu4.css","assets/index-DVQCgvFb.js","assets/index-AgKpYdvC.css"])))=>i.map(i=>d[i]);
2
+ import{_ as Se}from"./vendor-arcblock-JGYMkSwE.js";import{a8 as Ie,j as e,ak as z,T as P,a9 as m,bc as Pe,ac as re,I as F,D as ue,H as w,ai as ke,t as Re,bV as Ee,N as oe,z as _e,y as $,ag as Ve}from"./vendor-mui-core-8zafwTFh.js";import{r as De,u as Le,b9 as Oe,j as L}from"./vendor-ux-did-connect-D2f9rdKK.js";import{E as M}from"./empty-spinner-D_1iEwTc.js";import{d as ie}from"./DeleteOutline-BwlJCwaD.js";import{m as Te,e as $e}from"./vendor-hooks-DftG_2gV.js";import{r as h}from"./vendor-react-DEoibe3W.js";import{D as se,C as ne,P as ae}from"./react-beautiful-dnd.esm-CP-WHcip.js";import{S as K}from"./studio-wUJ0pUIv.js";import"./vendor-utils-BNHJB5U7.js";import"./lottie-web-jYmAQWuC.js";import"./raf-schd.esm-B3j6BePR.js";import"./TuneOutlined-8KrrUCQF.js";var C={};Object.defineProperty(C,"__esModule",{value:!0});C.getVideoId=O;var Ue=C.getEmbedUrl=ze,We=C.getVideoCoverUrl=Fe,Ae=C.getVideoCheckUrl=Ne;C.getYoutubeId=pe;C.getVimeoId=he;C.isVideoUrl=He;function pe(r){var s,l,i;const t=r.trim();return t.includes("youtu.be/")?(s=t.split("youtu.be/")[1])==null?void 0:s.split("?")[0]:t.includes("/embed/")?(l=t.split("/embed/")[1])==null?void 0:l.split("?")[0]:t.includes("youtube.com/watch")?new URL(t).searchParams.get("v"):t.includes("youtube.com/shorts/")?(i=t.split("/shorts/")[1])==null?void 0:i.split("?")[0]:""}function he(r){var s,l,i,a,u,y,f;const t=r.trim();return t.includes("/embed/")?(s=t.split("/embed/")[1])==null?void 0:s.split("?")[0]:t.includes("vimeo.com/video/")?(l=t.split("/video/")[1])==null?void 0:l.split("?")[0]:t.includes("vimeo.com/channels/")?(a=(i=t.split("/channels/")[1])==null?void 0:i.split("/")[1])==null?void 0:a.split("?")[0]:t.includes("vimeo.com/groups/")?(y=(u=t.split("/groups/")[1])==null?void 0:u.split("/")[1])==null?void 0:y.split("?")[0]:t.includes("vimeo.com/")?(f=t.split("vimeo.com/")[1])==null?void 0:f.split("?")[0]:""}const U={};function O(r){const t=r.trim();return!t||!/^https?:\/\/.+\..+/.test(t)?[]:(U[t]||(U[t]=(()=>{const s=new URL(t);return s.host.includes("youtube.com")||s.host.includes("youtu.be")?[pe(t),"youtube"]:s.host.includes("vimeo.com")?[he(t),"vimeo"]:[]})()),U[t])}const R={};function ze(r,{modestbranding:t=1,controls:s=0,autoplay:l=0}={}){const i=r.trim();if(!i)return"";if(R[i]!==void 0)return R[i];const[a,u]=O(i);return u==="youtube"?R[i]=`https://www.youtube.com/embed/${a}?modestbranding=${t}&controls=${s}&autoplay=${l}`:u==="vimeo"?R[i]=`https://player.vimeo.com/video/${a}?autoplay=${l}`:R[i]="",R[i]}const E={};function Fe(r){const t=r.trim();if(!t)return"";if(E[t]!==void 0)return E[t];const[s,l]=O(t);return l==="youtube"?E[t]=`https://img.youtube.com/vi/${s}/mqdefault.jpg`:l==="vimeo"?E[t]=`https://i.vimeocdn.com/${s}/1000x563`:E[t]="",E[t]}function Ne(r){const t=r.trim();if(!t)return"";const[s,l]=O(t);return l==="youtube"?`https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=${s}&format=json`:l==="vimeo"?`https://vimeo.com/api/oembed.json?url=https://vimeo.com/${s}`:""}function He(r){const t=r.trim();return O(t).length>0}var X={},qe=Ie;Object.defineProperty(X,"__esModule",{value:!0});var me=X.default=void 0,Be=qe(De()),Ke=e;me=X.default=(0,Be.default)((0,Ke.jsx)("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m7 18H5V4h2v3h10V4h2z"}),"ContentPaste");const le=h.lazy(()=>Se(()=>import("./index-C3f1mXja.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])).then(r=>({default:r.Uploader}))),Me=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo/upload`,Xe=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots/upload`,Ye=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo`,W=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots`,Je=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/videos`,ce=5,de=3;function ut(){var ee;const{t:r,locale:t}=Le(),[s,l]=h.useState(!1),[i,a]=h.useState(!1),[u,y]=h.useState([]),[f,j]=h.useState([]),[x,S]=h.useState(""),[T,_]=h.useState(""),[N,H]=h.useState(Date.now()),p=Te(async()=>{var c;const n=await(await fetch(W)).json();return y(n.screenshots||[]),j(((c=n.videos)==null?void 0:c.filter(d=>!!d))||[]),n}),k=h.useRef(null),g=h.useRef(null);if(p.loading&&!p.data)return e.jsx(K,{children:e.jsx(M,{size:40})});if(p.error)return e.jsx(K,{children:e.jsx(z,{direction:"column",spacing:1,sx:{mb:3},children:e.jsx(P,{color:"error.main",sx:{fontWeight:"bold"},children:p.error.message})})});const v=async o=>{const n=o.filter(c=>!!c);j(n),await fetch(Je,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({videos:n})})},q=async o=>{const n=Array.from(f),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),await v(n)},fe=async o=>{const n=Array.from(u),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),y(n),await fetch(`${W}/reorder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({screenshots:n})})},J=async o=>{o.destination&&(o.source.droppableId==="screenshots"?await fe(o):o.source.droppableId==="videos"&&await q(o),p.runAsync())},Z=o=>{_(o.trim()),a(!0)},G=async(o,n="")=>{let c=[];n?c=o?f.map(d=>d===n?o.trim():d):f.filter(d=>d!==n):o&&(c=[...f,o.trim()]),_(""),a(!1),(o||n)&&await v(c),p.runAsync()},xe=o=>{l(!0),S(o)},Q=()=>{l(!1),S("")};function be(){const o=[{label:r("studio.type"),value:"png, jpg, webp, svg"},{label:r("studio.ratio"),value:"256x256"},{label:r("studio.size"),value:"<500KB"}],n=[{label:r("studio.tip"),value:r("studio.change")}];return e.jsx(A,{title:r("common.logo"),rules:o,tips:n,children:e.jsx(m,{sx:{flex:1,cursor:"pointer"},children:e.jsx(Pe,{variant:"square",sx:{width:128,height:128},alt:"Blocklet Logo",src:`${Ye}?t=${N}`,onClick:()=>{var c;return(c=k.current)==null?void 0:c.open()}})})})}function ve(){const o=[{label:r("studio.ratio"),value:"16 / 9"},{label:r("studio.count"),value:`1~${ce}`},{label:r("studio.size"),value:"<5MB"}],n=[{label:r("studio.tip"),value:r("studio.orderTipLong")}];return e.jsx(A,{title:r("common.screenshot"),tips:n,rules:o,children:e.jsx(se,{onDragEnd:J,children:e.jsx(ne,{droppableId:"screenshots",direction:"horizontal",children:(d,V)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:V.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:V.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[u.map((b,B)=>e.jsx(ae,{draggableId:b,index:B,children:(I,D)=>{const te=`${W}/${b}`;return e.jsxs(m,{ref:I.innerRef,...I.draggableProps,...I.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"screenshot",src:te,onClick:()=>xe(b),style:{cursor:"pointer"}}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:async()=>{await fetch(te,{method:"DELETE"}),p.runAsync()},children:e.jsx(ie,{})})})]})}},b)),d.placeholder,u.length<ce&&c()]})})})});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>{var d;return(d=g.current)==null?void 0:d.open()},children:"+"})}}function je(){const o=[{label:r("studio.count"),value:`1~${de}`},{label:r("studio.videoType"),value:e.jsxs(e.Fragment,{children:[e.jsx("a",{href:"https://www.youtube.com/",target:"_blank",rel:"noreferrer",children:"Youtube"}),","," ",e.jsx("a",{href:"https://vimeo.com/",target:"_blank",rel:"noreferrer",children:"Vimeo"})]})}],n=[{label:`${r("studio.tip")}`,value:r("studio.videoTipLong")}];return e.jsxs(A,{title:r("studio.video"),tips:n,rules:o,children:[e.jsx(se,{onDragEnd:J,children:e.jsx(ne,{droppableId:"videos",direction:"horizontal",children:(d,V)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:V.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:V.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[f.map((b,B)=>e.jsx(ae,{draggableId:b,index:B,children:(I,D)=>e.jsxs(m,{ref:I.innerRef,...I.draggableProps,...I.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"videos",src:We(b),onClick:()=>Z(b),style:{cursor:"pointer"}}),e.jsx(m,{sx:{position:"absolute",cursor:"pointer",fontSize:"3rem"},onClick:()=>Z(b),children:e.jsx(ge,{})}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:()=>G(null,b),children:e.jsx(ie,{})})})]})},b)),d.placeholder,f.length<de&&c()]})})}),i&&e.jsx(Y,{t:r,handleOperateVideo:G,defaultUrl:T,videos:f})]});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>a(!0),children:"+"})}}function ye(){return e.jsx(ue,{open:s,onClose:Q,maxWidth:"xl",PaperProps:{style:{backgroundColor:"transparent",boxShadow:"none"}},children:e.jsx("img",{src:`${W}/${x}`,alt:"Screenshot Full",style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain"},onClick:Q})})}function we(){return e.jsxs(h.Suspense,{fallback:e.jsx(M,{size:40}),children:[e.jsx(le,{ref:k,locale:t,popup:!0,onUploadFinish:()=>{var o;(o=k.current)==null||o.close(),H(Date.now()),p.runAsync()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:Me,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/png","image/jpeg","image/webp","image/svg+xml"],maxFileSize:1024*1024*.5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,aspectRatio:1,initialAspectRatio:1,autoCropArea:1,croppedCanvasOptions:{minWidth:256,minHeight:256}}}},"uploader-logo"),e.jsx(le,{ref:g,locale:t,popup:!0,onUploadFinish:()=>{var o;(o=g.current)==null||o.close(),p.runAsync()},installerProps:{disabled:!0},plugins:["ImageEditor"],apiPathProps:{uploader:Xe,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/*","image/svg+xml"],maxFileSize:1024*1024*5,maxNumberOfFiles:5-u.length}},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:16/9,initialAspectRatio:16/9,croppedCanvasOptions:{minWidth:1280,minHeight:720,maxWidth:1280*2,maxHeight:720*2}}}},"uploader-screenshot")]})}const Ce=`https://www.arcblock.io/docs/blocklet-store/${t}/supplying-images`;return e.jsx(K,{children:e.jsxs(Ze,{children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:3},children:[e.jsx(P,{variant:"h5",sx:{fontWeight:"bold"},children:r("studio.title",{title:(ee=p.data)==null?void 0:ee.title})}),e.jsxs(P,{variant:"body2",color:"text.secondary",children:[r("studio.description")," ",e.jsx("a",{href:Ce,target:"_blank",rel:"noreferrer",children:r("studio.documentation")})]})]}),be(),ve(),je(),ye(),we()]})})}function A({title:r,rules:t,tips:s,children:l}){return e.jsxs(m,{display:"flex",flexDirection:"column",sx:{mb:4},children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:2},children:[e.jsx(P,{variant:"h6",sx:{fontWeight:"bold"},children:r}),e.jsx(z,{direction:"row",spacing:2,sx:{fontSize:"13px",opacity:.8},children:t.map(a=>i(a.label,a.value))}),s.map(a=>e.jsx(m,{sx:{fontSize:"13px",opacity:.8},children:i(a.label,a.value)}))]}),l]});function i(a,u){return e.jsxs(m,{component:"span",children:[e.jsxs(m,{component:"span",sx:{color:"#555",mr:.5},children:[a,":"]}),e.jsx(m,{component:"span",sx:{color:"#007ec6"},children:u})]})}}A.propTypes={title:w.string.isRequired,rules:w.array.isRequired,tips:w.array.isRequired,children:w.node.isRequired};function Y({handleOperateVideo:r,t,defaultUrl:s="",videos:l}){var k;const[i,a]=h.useState(s),[u,y]=h.useState(!1),[f,j]=h.useState(!1),x=h.useRef(i),S=i!==s&&l.includes(i),T=!i&&s,_=!S&&(i&&i!==x.current||u),N=!!((k=navigator.clipboard)!=null&&k.readText),{run:H}=$e(p,{wait:500,leading:!0});return e.jsxs(ue,{open:!0,fullWidth:!0,maxWidth:"sm",children:[e.jsx(ke,{children:t(s?"studio.videoDialogEditTitle":"studio.videoDialogTitle")}),e.jsxs(Re,{children:[e.jsx(Ee,{fullWidth:!0,value:i,onChange:g=>{const v=g.target.value.trim();a(v),v?H(v):j(!1)},placeholder:t("studio.videoInputLabel"),endAdornment:i?e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:()=>{a(""),p("")},children:e.jsx(Oe,{})})}):N&&e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:async()=>{try{const g=(await navigator.clipboard.readText()||"").trim();a(g),p(g)}catch(g){console.error(g)}},children:e.jsx(me,{})})})}),e.jsxs(m,{mb:2,mt:.5,children:[S&&e.jsx(P,{variant:"body2",color:"error",children:t("studio.duplicateVideo")}),!S&&f&&e.jsx(P,{variant:"body2",color:"error",children:t("studio.videoDialogNoSrc")})]}),x.current?e.jsx("iframe",{width:"100%",height:"315",title:`video-${x.current}`,src:Ue(x.current),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,border:"1px solid #eee"}):e.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:315,width:"100%",border:"1px solid #eee"},children:u?e.jsx(M,{size:40}):e.jsx(P,{variant:"h5",color:"text.secondary",children:e.jsx(ge,{})})})]}),e.jsxs(_e,{children:[e.jsx($,{onClick:()=>r(),children:t("studio.cancel")}),T&&e.jsx($,{variant:"contained",color:"error",onClick:()=>r(null,s),children:t("studio.delete")}),_&&e.jsx($,{variant:"contained",onClick:()=>p(i),disabled:!i||u,children:t("studio.preview")}),!T&&!_&&e.jsx($,{variant:"contained",onClick:()=>r(x.current),disabled:!x.current||s===x.current||S,children:t("studio.confirm")})]})]});function p(g){x.current="";const v=Ae(g);j(g?!v:!1),v&&(y(!0),fetch(v).then(q=>{q.ok?(x.current=g,j(!1)):j(!0)}).catch(()=>{j(!0)}).finally(()=>y(!1)))}}Y.propTypes={handleOperateVideo:w.func.isRequired,t:w.func.isRequired,defaultUrl:w.string,videos:w.array.isRequired};Y.defaultProps={defaultUrl:""};function ge(){return e.jsxs("svg",{viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:48,width:48,children:[e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28 56C43.464 56 56 43.464 56 28C56 12.536 43.464 0 28 0C12.536 0 0 12.536 0 28C0 43.464 12.536 56 28 56Z",fill:"black","fill-opacity":"0.54"}),e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6667 28L21 17.5V38.5L39.6667 28Z",fill:"white"})]})}const Ze=Ve.div`
3
3
  margin-top: 24px;
4
4
  .image-wrapper {
5
5
  margin-bottom: 16px;
@@ -1 +1 @@
1
- import{j as f,bc as j,H as a}from"./vendor-mui-core-CfA4EdRA.js";import{j as P,X as $}from"./vendor-ux-did-connect-zBIy2ulO.js";import{y as g}from"./vendor-utils-BNHJB5U7.js";import{z as y,A as E,X as h,Y as R,Z as A}from"./index-BWx6ivvZ.js";function w({blocklet:r,ancestors:p=[]}){var d,m;const s=y(),{inService:n}=s,i=E(r==null?void 0:r.status)||h(r==null?void 0:r.status),o=`?v=${(d=r==null?void 0:r.meta)==null?void 0:d.version}${i?"~":""}`;let t=n?`${g(A,P.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle")}${o}`:g(s.imgPrefix,"blocklet.png");if(r.source==="registry"&&r.deployedFrom&&r.meta.logo)t=`${g(r.deployedFrom,R(r.meta.bundleDid,r.meta.logo))}${o}`;else{const u=((m=window.env)==null?void 0:m.apiPrefix)||"/",e=p.concat(r),c=n?e.slice(1):e;t=`${g(u,`/blocklet/logo-bundle${c.map(x=>`/${x.meta.did}`).join("")}`)}${o}`}return{logoUrl:t,inService:n}}function v({blocklet:r,style:p,size:s,ancestors:n,...i}){const o=y(),{logoUrl:t,inService:d}=w({blocklet:r,ancestors:n}),{variant:m}=i,u=d?()=>{}:c=>{c.target.src=`${o.imgPrefix}/blocklet.png`};let e=f.jsx("img",{src:t,onError:u,alt:r.meta.name,style:{width:s}});return r.meta.logo||(e=f.jsx($,{did:r.meta.did||"",responsive:!0})),f.jsx(j,{variant:m||"square",style:Object.assign({backgroundColor:"transparent",width:s,height:s,borderRadius:10},p),...i,children:e})}v.propTypes={blocklet:a.object.isRequired,style:a.object,size:a.oneOfType([a.number,a.string]),ancestors:a.array};v.defaultProps={style:{},size:40,ancestors:[]};export{v as B};
1
+ import{j as f,bc as j,H as a}from"./vendor-mui-core-8zafwTFh.js";import{j as P,X as $}from"./vendor-ux-did-connect-D2f9rdKK.js";import{y as g}from"./vendor-utils-BNHJB5U7.js";import{z as y,A as E,X as h,Y as R,Z as A}from"./index-CVvs-hHV.js";function w({blocklet:r,ancestors:p=[]}){var d,m;const s=y(),{inService:n}=s,i=E(r==null?void 0:r.status)||h(r==null?void 0:r.status),o=`?v=${(d=r==null?void 0:r.meta)==null?void 0:d.version}${i?"~":""}`;let t=n?`${g(A,P.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle")}${o}`:g(s.imgPrefix,"blocklet.png");if(r.source==="registry"&&r.deployedFrom&&r.meta.logo)t=`${g(r.deployedFrom,R(r.meta.bundleDid,r.meta.logo))}${o}`;else{const u=((m=window.env)==null?void 0:m.apiPrefix)||"/",e=p.concat(r),c=n?e.slice(1):e;t=`${g(u,`/blocklet/logo-bundle${c.map(x=>`/${x.meta.did}`).join("")}`)}${o}`}return{logoUrl:t,inService:n}}function v({blocklet:r,style:p,size:s,ancestors:n,...i}){const o=y(),{logoUrl:t,inService:d}=w({blocklet:r,ancestors:n}),{variant:m}=i,u=d?()=>{}:c=>{c.target.src=`${o.imgPrefix}/blocklet.png`};let e=f.jsx("img",{src:t,onError:u,alt:r.meta.name,style:{width:s}});return r.meta.logo||(e=f.jsx($,{did:r.meta.did||"",responsive:!0})),f.jsx(j,{variant:m||"square",style:Object.assign({backgroundColor:"transparent",width:s,height:s,borderRadius:10},p),...i,children:e})}v.propTypes={blocklet:a.object.isRequired,style:a.object,size:a.oneOfType([a.number,a.string]),ancestors:a.array};v.defaultProps={style:{},size:40,ancestors:[]};export{v as B};
@@ -0,0 +1 @@
1
+ import{j as o}from"./vendor-mui-core-8zafwTFh.js";import{B as n}from"./vendor-ux-did-connect-D2f9rdKK.js";function m({...t}){return o.jsx(n,{className:"bottom-button",variant:"contained",color:"primary",...t})}export{m as S};
@@ -1 +1 @@
1
- import{r as i}from"./vendor-react-DEoibe3W.js";import{j as t,H as e}from"./vendor-mui-core-CfA4EdRA.js";import{b2 as s,bs as c}from"./vendor-ux-did-connect-zBIy2ulO.js";function n({children:p,...r}){const{t:o}=i.useContext(s);return t.jsx(c,{tip:o("common.copyTip"),copiedTip:o("common.copiedTip"),...r,children:p})}n.propTypes={children:e.any.isRequired};export{n as C};
1
+ import{r as i}from"./vendor-react-DEoibe3W.js";import{j as t,H as e}from"./vendor-mui-core-8zafwTFh.js";import{b2 as s,bs as c}from"./vendor-ux-did-connect-D2f9rdKK.js";function n({children:p,...r}){const{t:o}=i.useContext(s);return t.jsx(c,{tip:o("common.copyTip"),copiedTip:o("common.copiedTip"),...r,children:p})}n.propTypes={children:e.any.isRequired};export{n as C};
@@ -1,4 +1,4 @@
1
- import{ag as d,j as e,aa as T,a9 as h,H as C}from"./vendor-mui-core-CfA4EdRA.js";import{u as B,a1 as _,Y as v,j as $}from"./vendor-ux-did-connect-zBIy2ulO.js";import{n as A,o as F,aq as I,d as M,e as N,ai as W,ar as z,P as H}from"./index-BWx6ivvZ.js";import{r as a}from"./vendor-react-DEoibe3W.js";import{y as O}from"./vendor-utils-BNHJB5U7.js";import{L as V}from"./launch-result-message-yorrVgpQ.js";import{g as X}from"./get-safe-url-BXaepgsm.js";import{S as E}from"./button-CJk6Iiza.js";import{S as q}from"./layout-DBsOgAhr.js";import"./vendor-hooks-DftG_2gV.js";import"./lottie-web-jYmAQWuC.js";import"./vendor-arcblock-CWji6U03.js";import"./content-layout-JixQ7owc.js";const K=d(V)`
1
+ import{ag as d,j as e,aa as T,a9 as h,H as C}from"./vendor-mui-core-8zafwTFh.js";import{u as B,a1 as _,Y as v,j as $}from"./vendor-ux-did-connect-D2f9rdKK.js";import{n as A,o as F,aq as I,d as M,e as N,ai as W,ar as z,P as H}from"./index-CVvs-hHV.js";import{r as a}from"./vendor-react-DEoibe3W.js";import{y as O}from"./vendor-utils-BNHJB5U7.js";import{L as V}from"./launch-result-message-CCo4xyOd.js";import{g as X}from"./get-safe-url-Dex6FTwp.js";import{S as E}from"./button-n0UOGLKx.js";import{S as q}from"./layout-DToDlHEw.js";import"./vendor-hooks-DftG_2gV.js";import"./lottie-web-jYmAQWuC.js";import"./vendor-arcblock-JGYMkSwE.js";import"./content-layout-AHDEW7YQ.js";const K=d(V)`
2
2
  && .result-footer {
3
3
  height: 120px;
4
4
  > div {
@@ -1,4 +1,4 @@
1
- var Nw=Object.defineProperty;var Fw=(e,t,n)=>t in e?Nw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ho=(e,t,n)=>Fw(e,typeof t!="symbol"?t+"":t,n);import{c$ as zw,co as Te,cn as Ze,cl as Ww,a8 as Se,j as x,a9 as Re,ac as Vn,H as oe,d0 as cv,d1 as uv,d2 as Vw,bD as dv,ag as Nt,d3 as el,c2 as Kt,J as tl,d4 as pi,b6 as Jn,cH as ft,b2 as It,d5 as Uw,d6 as qw,c as Pe,_ as N,Y as yr,c8 as Ke,d7 as Hw,ca as ys,b as qn,d8 as Xa,d9 as Gw,cI as Kw,da as Yw,c3 as Xw,cZ as Qw,db as Zw,cJ as Jw,g as ze,a as Le,k as Fe,dc as fv,u as Gt,dd as eS,d as nn,de as nl,df as Wp,o as on,dg as pv,i as Nr,dh as tS,di as mi,dj as nS,dk as Vp,f as kd,dl as mv,dm as rS,dn as oS,p as rl,K as aS,dp as iS,a$ as Up,aj as qp,O as Jt,I as an,ak as hv,T as Un,v as sS,q as Xn,aa as Fr,e as lS,bc as cS,ao as ol,dq as uS,bu as dS,bs as Au,bv as Hp,bg as gv,y as fS,D as Gp,ai as Kp,t as Yp,bS as Xp,bb as Li,z as pS,bt as mS}from"./vendor-mui-core-CfA4EdRA.js";import{a4 as hS,y as Cs,aL as gS}from"./vendor-utils-BNHJB5U7.js";import{r as S,R as bS,d as hi,a as $e,g as Dd,b as tt,e as bv,c as vS,f as vv}from"./vendor-react-DEoibe3W.js";import{bS as Ce,r as Vr,u as Yt,Y as ot,c2 as yS,c3 as CS,bh as Qp,bi as xS,bj as wS,bk as SS,z as PS,b4 as gi,b9 as Zp,bm as TS,c4 as kS,c5 as DS,b2 as Tr,al,j as Be,a1 as RS,b6 as ES,a4 as MS,I as Mn,B as Ni,_ as $S}from"./vendor-ux-did-connect-zBIy2ulO.js";import{K as yv,c as Qn,a6 as OS}from"./vendor-arcblock-CWji6U03.js";import{z as Qt,C as Ur,V as yo,f as dt,U as Qa,aG as IS,a8 as Cv,a9 as Co,ar as xv,aH as wv,b as Ia,l as gc,aI as _S,a7 as AS}from"./index-BWx6ivvZ.js";import{d as Sv}from"./TuneOutlined-BnxAi8kP.js";import{e as BS,W as xo,b as jS,f as Rd,B as Pv,a as LS}from"./dashboard-C9tAGBV0.js";import{S as NS}from"./switch-control-BjOmRKBW.js";import{P as Bu,w as il}from"./permission-CbDCh9eS.js";import{d as Ed}from"./Edit-C-ChSGAK.js";import{d as Jp,c as FS,b as nt,_ as Je,o as zS,e as WS,i as VS,p as US,g as qS,r as kr}from"./slicedToArray-lOWXD6Th.js";import{r as Ye,A as Md,B as Xt,C as xs,D as ju,t as qe,E as Tv,F as kv,j as Lu,m as HS,G as lr,H as GS,I as KS,J as Nu,K as Dv,L as YS,M as XS,N as Rv,O as $d,P as em,Q as QS,R as tm,S as ZS,T as JS,p as e1,e as nm,g as t1,b as bc,a as rm,c as n1,q as Fi,o as Qr,i as r1,d as o1,k as zi,l as vc,h as Wi,s as yc,f as Cc,x as a1,z as i1,n as s1,u as l1,v as c1,w as u1,U as d1,y as f1,V as p1,W as m1}from"./index-DhGZEbPZ.js";import{a as Qe,u as Me,r as Za,d as qr,b as h1,w as ws,g as Ev,e as Mv,c as g1,o as Fu}from"./raf-schd.esm-B3j6BePR.js";import{C as om}from"./click-to-copy-CbKZyfyr.js";import{d as am}from"./ChevronRight-BWcj-otI.js";import{d as b1}from"./ChevronLeft-fcaEvvT2.js";import{d as v1}from"./ArrowDropDown-BHNhtNqo.js";import{f as En}from"./format-error-BrmqJs5a.js";import{A as y1,a as C1,b as x1,d as $v,B as w1,f as S1,c as P1}from"./add-component-core-IYRc9eac.js";import{C as Mo}from"./confirm-miQS3Z1c.js";import{v as T1,b as Ss}from"./util-BYLEVYA_.js";import{L as k1}from"./LockIcon-L5QI4AoC.js";import{d as Ov}from"./Launch-qJWNGQwX.js";import{D as D1}from"./delete-confirm-kKb8VxbQ.js";import{d as R1}from"./InfoOutlined-ZIQMeu0p.js";import{I as E1}from"./iframe-oHkt22fl.js";import{B as M1}from"./bundle-avatar-DFwyxj9P.js";import{d as $1}from"./PlayArrow-rSzT1Thf.js";import{A as Iv}from"./actions-J8MFA_6y.js";import{I as xc}from"./index-C7UL-KG1.js";import{W as O1}from"./did-address-DNf_-NM-.js";import{u as I1}from"./vendor-hooks-DftG_2gV.js";import"./lottie-web-jYmAQWuC.js";import"./useLocalStorage-BJb7uGDO.js";import"./get-safe-url-MZ-ksvtD.js";import"./session-CdQbSkeB.js";import"./index-Hl4sXXdc.js";import"./dot-xwsgXXMo.js";import"./useAsync-BquSRC77.js";import"./useSetState-CWq0AVWn.js";import"./use-mobile-CcdVxg80.js";import"./item-CdEFLc19.js";import"./Done-CkkNExgL.js";import"./DeleteOutline-CMgoFNHT.js";import"./launch-result-message-yorrVgpQ.js";import"./page-header-C86YQnHE.js";import"./config-space-DEku2tJv.js";import"./spaces-CcTi9vap.js";import"./api-BrU7j0QA.js";import"./logo-uploader-Bv2ZSxJV.js";import"./index-DVQCgvFb.js";import"./index-qcSTfn8X.js";import"./Google-3Ox3gIL3.js";import"./cloneDeep-SfcdeqEN.js";import"./index-DQc29-JM.js";import"./index-YbJjfDTR.js";import"./use-mobile-Bgy7gTTP.js";import"./content-layout-JixQ7owc.js";import"./connect-to-C-vFK0ym.js";import"./shorten-label-Dz7RgJfj.js";import"./MoreHoriz-ByNTWUxY.js";var _1=36e5;function A1(e,t){Ye(2,arguments);var n=Xt(t);return Md(e,n*_1)}var B1=864e5;function j1(e,t){Ye(2,arguments);var n=xs(e),r=xs(t),o=n.getTime()-ju(n),a=r.getTime()-ju(r);return Math.round((o-a)/B1)}var L1=6e4;function N1(e,t){Ye(2,arguments);var n=Xt(t);return Md(e,n*L1)}function F1(e,t){Ye(2,arguments);var n=Xt(t);return Md(e,n*1e3)}function Fa(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function z1(e,t){Ye(2,arguments);var n=qe(e),r=qe(t);return n.getFullYear()-r.getFullYear()}function im(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function _v(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=im(n,r),a=Math.abs(j1(n,r));n.setDate(n.getDate()-o*a);var i=+(im(n,r)===-o),s=o*(a-i);return s===0?0:s}function sl(e,t){return Ye(2,arguments),qe(e).getTime()-qe(t).getTime()}var sm={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},W1="trunc";function bi(e){return e?sm[e]:sm[W1]}function V1(e,t,n){Ye(2,arguments);var r=sl(e,t)/Tv;return bi(void 0)(r)}function U1(e,t,n){Ye(2,arguments);var r=sl(e,t)/kv;return bi(void 0)(r)}function zu(e){Ye(1,arguments);var t=qe(e);return t.setHours(23,59,59,999),t}function q1(e){Ye(1,arguments);var t=qe(e);return zu(t).getTime()===Lu(t).getTime()}function Av(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=Fa(n,r),a=Math.abs(HS(n,r)),i;if(a<1)i=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);var s=Fa(n,r)===-o;q1(qe(e))&&a===1&&Fa(e,r)===1&&(s=!1),i=o*(a-Number(s))}return i===0?0:i}function H1(e,t,n){Ye(2,arguments);var r=Av(e,t)/3;return bi(void 0)(r)}function G1(e,t,n){Ye(2,arguments);var r=sl(e,t)/1e3;return bi(void 0)(r)}function K1(e,t,n){Ye(2,arguments);var r=_v(e,t)/7;return bi(void 0)(r)}function Y1(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=Fa(n,r),a=Math.abs(z1(n,r));n.setFullYear(1584),r.setFullYear(1584);var i=Fa(n,r)===-o,s=o*(a-Number(i));return s===0?0:s}function X1(e,t){var n;Ye(1,arguments);var r=e||{},o=qe(r.start),a=qe(r.end),i=a.getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var s=[],c=o;c.setHours(0,0,0,0);var l=Number((n=void 0)!==null&&n!==void 0?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;c.getTime()<=i;)s.push(qe(c)),c.setDate(c.getDate()+l),c.setHours(0,0,0,0);return s}function Q1(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Z1(e,t){var n,r;Ye(1,arguments);var o=qe(e);if(isNaN(o.getTime()))throw new RangeError("Invalid time value");var a=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),i=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(a!=="extended"&&a!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(i!=="date"&&i!=="time"&&i!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",c="",l=a==="extended"?"-":"",d=a==="extended"?":":"";if(i!=="time"){var u=lr(o.getDate(),2),f=lr(o.getMonth()+1,2),m=lr(o.getFullYear(),4);s="".concat(m).concat(l).concat(f).concat(l).concat(u)}if(i!=="date"){var b=o.getTimezoneOffset();if(b!==0){var h=Math.abs(b),w=lr(Math.floor(h/60),2),v=lr(h%60,2),g=b<0?"+":"-";c="".concat(g).concat(w,":").concat(v)}else c="Z";var p=lr(o.getHours(),2),y=lr(o.getMinutes(),2),D=lr(o.getSeconds(),2),P=s===""?"":"T",T=[p,y,D].join(d);s="".concat(s).concat(P).concat(T).concat(c)}return s}function J1(e){Ye(1,arguments);var t=qe(e),n=t.getDay();return n}function eP(e){Ye(1,arguments);var t=qe(e),n=t.getHours();return n}function tP(e){Ye(1,arguments);var t=qe(e),n=t.getMinutes();return n}function nP(e){Ye(1,arguments);var t=qe(e),n=t.getSeconds();return n}function rP(e,t){Ye(2,arguments);var n=qe(e),r=qe(t);return n.getTime()===r.getTime()}function lm(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=zw(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ var Nw=Object.defineProperty;var Fw=(e,t,n)=>t in e?Nw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ho=(e,t,n)=>Fw(e,typeof t!="symbol"?t+"":t,n);import{cY as zw,cl as Te,ck as Ze,ci as Ww,a8 as Se,j as x,a9 as Re,ac as Vn,H as oe,cZ as cv,c_ as uv,c$ as Vw,bD as dv,ag as Nt,d0 as el,c2 as Kt,J as tl,d1 as pi,b6 as Jn,cE as ft,b2 as It,d2 as Uw,d3 as qw,c as Pe,_ as N,Y as yr,d4 as Ke,d5 as Hw,d6 as ys,b as qn,d7 as Xa,d8 as Gw,cF as Kw,d9 as Yw,c3 as Xw,cW as Qw,da as Zw,cG as Jw,g as ze,a as Le,k as Fe,db as fv,u as Gt,dc as eS,d as nn,dd as nl,de as Wp,o as on,df as pv,i as Nr,dg as tS,dh as mi,di as nS,dj as Vp,f as kd,dk as mv,dl as rS,dm as oS,p as rl,K as aS,dn as iS,a$ as Up,aj as qp,O as Jt,I as an,ak as hv,T as Un,v as sS,q as Xn,aa as Fr,e as lS,bc as cS,ao as ol,dp as uS,bu as dS,bs as Au,bv as Hp,bg as gv,y as fS,D as Gp,ai as Kp,t as Yp,bS as Xp,bb as Li,z as pS,bt as mS}from"./vendor-mui-core-8zafwTFh.js";import{a4 as hS,y as Cs,aL as gS}from"./vendor-utils-BNHJB5U7.js";import{r as S,R as bS,d as hi,a as $e,g as Dd,b as tt,e as bv,c as vS,f as vv}from"./vendor-react-DEoibe3W.js";import{bS as Ce,r as Vr,u as Yt,Y as ot,c2 as yS,c3 as CS,bh as Qp,bi as xS,bj as wS,bk as SS,z as PS,b4 as gi,b9 as Zp,bm as TS,c4 as kS,c5 as DS,b2 as Tr,al,j as Be,a1 as RS,b6 as ES,a4 as MS,I as Mn,B as Ni,_ as $S}from"./vendor-ux-did-connect-D2f9rdKK.js";import{K as yv,c as Qn,a6 as OS}from"./vendor-arcblock-JGYMkSwE.js";import{z as Qt,C as Ur,V as yo,f as dt,U as Qa,aG as IS,a8 as Cv,a9 as Co,ar as xv,aH as wv,b as Ia,l as gc,aI as _S,a7 as AS}from"./index-CVvs-hHV.js";import{d as Sv}from"./TuneOutlined-8KrrUCQF.js";import{e as BS,W as xo,b as jS,f as Rd,B as Pv,a as LS}from"./dashboard-CCzZLCC4.js";import{S as NS}from"./switch-control-D0bd_WCg.js";import{P as Bu,w as il}from"./permission-CDRSpazM.js";import{d as Ed}from"./Edit-Cydc64DB.js";import{d as Jp,c as FS,b as nt,_ as Je,o as zS,e as WS,i as VS,p as US,g as qS,r as kr}from"./slicedToArray-BBoi0da6.js";import{r as Ye,A as Md,B as Xt,C as xs,D as ju,t as qe,E as Tv,F as kv,j as Lu,m as HS,G as lr,H as GS,I as KS,J as Nu,K as Dv,L as YS,M as XS,N as Rv,O as $d,P as em,Q as QS,R as tm,S as ZS,T as JS,p as e1,e as nm,g as t1,b as bc,a as rm,c as n1,q as Fi,o as Qr,i as r1,d as o1,k as zi,l as vc,h as Wi,s as yc,f as Cc,x as a1,z as i1,n as s1,u as l1,v as c1,w as u1,U as d1,y as f1,V as p1,W as m1}from"./index-BG5LYRZd.js";import{a as Qe,u as Me,r as Za,d as qr,b as h1,w as ws,g as Ev,e as Mv,c as g1,o as Fu}from"./raf-schd.esm-B3j6BePR.js";import{C as om}from"./click-to-copy-CYn1U-tf.js";import{d as am}from"./ChevronRight-CSrWhu1k.js";import{d as b1}from"./ChevronLeft-BV65HBup.js";import{d as v1}from"./ArrowDropDown-D0s0w2rW.js";import{f as En}from"./format-error-BrmqJs5a.js";import{A as y1,a as C1,b as x1,d as $v,B as w1,f as S1,c as P1}from"./add-component-core-BUAlsG4_.js";import{C as Mo}from"./confirm-BshZuFnD.js";import{v as T1,b as Ss}from"./util-C4Ha7L5d.js";import{L as k1}from"./LockIcon-Yic1ETPw.js";import{d as Ov}from"./Launch-DSlNzUJo.js";import{D as D1}from"./delete-confirm-DuoSMgmG.js";import{d as R1}from"./InfoOutlined-K2cm3ASV.js";import{I as E1}from"./iframe-B4jzt2b3.js";import{B as M1}from"./bundle-avatar-CXZCyfoQ.js";import{d as $1}from"./PlayArrow-DfQEcw-G.js";import{A as Iv}from"./actions-f0wKxzR1.js";import{I as xc}from"./index-ARVZ7FJv.js";import{W as O1}from"./did-address-Cg-ez88b.js";import{u as I1}from"./vendor-hooks-DftG_2gV.js";import"./lottie-web-jYmAQWuC.js";import"./useLocalStorage-CNdV3Qx_.js";import"./get-safe-url-Bz4L9R5-.js";import"./session-CmpGpqja.js";import"./index-DomukIqT.js";import"./dot-tsWWWiOg.js";import"./useAsync-CGW40D2-.js";import"./useSetState-CWq0AVWn.js";import"./use-mobile-KRs0Yv73.js";import"./item-BeeQ2vgS.js";import"./Done-ClKUqna8.js";import"./DeleteOutline-BwlJCwaD.js";import"./launch-result-message-CCo4xyOd.js";import"./page-header-DWEFpJCI.js";import"./config-space-DVjhjgJC.js";import"./spaces-Cf25Nw85.js";import"./api-BrU7j0QA.js";import"./logo-uploader-CYJXgjdA.js";import"./index-DVQCgvFb.js";import"./index-NRj7GpkA.js";import"./Google-nw2S1BAe.js";import"./cloneDeep-SfcdeqEN.js";import"./index-BowdADDJ.js";import"./index-YbJjfDTR.js";import"./use-mobile-CwehvZ0f.js";import"./content-layout-AHDEW7YQ.js";import"./connect-to-DXXf0Nkb.js";import"./MoreHoriz-BWdkQIhx.js";var _1=36e5;function A1(e,t){Ye(2,arguments);var n=Xt(t);return Md(e,n*_1)}var B1=864e5;function j1(e,t){Ye(2,arguments);var n=xs(e),r=xs(t),o=n.getTime()-ju(n),a=r.getTime()-ju(r);return Math.round((o-a)/B1)}var L1=6e4;function N1(e,t){Ye(2,arguments);var n=Xt(t);return Md(e,n*L1)}function F1(e,t){Ye(2,arguments);var n=Xt(t);return Md(e,n*1e3)}function Fa(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function z1(e,t){Ye(2,arguments);var n=qe(e),r=qe(t);return n.getFullYear()-r.getFullYear()}function im(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function _v(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=im(n,r),a=Math.abs(j1(n,r));n.setDate(n.getDate()-o*a);var i=+(im(n,r)===-o),s=o*(a-i);return s===0?0:s}function sl(e,t){return Ye(2,arguments),qe(e).getTime()-qe(t).getTime()}var sm={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},W1="trunc";function bi(e){return e?sm[e]:sm[W1]}function V1(e,t,n){Ye(2,arguments);var r=sl(e,t)/Tv;return bi(void 0)(r)}function U1(e,t,n){Ye(2,arguments);var r=sl(e,t)/kv;return bi(void 0)(r)}function zu(e){Ye(1,arguments);var t=qe(e);return t.setHours(23,59,59,999),t}function q1(e){Ye(1,arguments);var t=qe(e);return zu(t).getTime()===Lu(t).getTime()}function Av(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=Fa(n,r),a=Math.abs(HS(n,r)),i;if(a<1)i=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);var s=Fa(n,r)===-o;q1(qe(e))&&a===1&&Fa(e,r)===1&&(s=!1),i=o*(a-Number(s))}return i===0?0:i}function H1(e,t,n){Ye(2,arguments);var r=Av(e,t)/3;return bi(void 0)(r)}function G1(e,t,n){Ye(2,arguments);var r=sl(e,t)/1e3;return bi(void 0)(r)}function K1(e,t,n){Ye(2,arguments);var r=_v(e,t)/7;return bi(void 0)(r)}function Y1(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=Fa(n,r),a=Math.abs(z1(n,r));n.setFullYear(1584),r.setFullYear(1584);var i=Fa(n,r)===-o,s=o*(a-Number(i));return s===0?0:s}function X1(e,t){var n;Ye(1,arguments);var r=e||{},o=qe(r.start),a=qe(r.end),i=a.getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var s=[],c=o;c.setHours(0,0,0,0);var l=Number((n=void 0)!==null&&n!==void 0?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;c.getTime()<=i;)s.push(qe(c)),c.setDate(c.getDate()+l),c.setHours(0,0,0,0);return s}function Q1(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Z1(e,t){var n,r;Ye(1,arguments);var o=qe(e);if(isNaN(o.getTime()))throw new RangeError("Invalid time value");var a=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),i=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(a!=="extended"&&a!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(i!=="date"&&i!=="time"&&i!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",c="",l=a==="extended"?"-":"",d=a==="extended"?":":"";if(i!=="time"){var u=lr(o.getDate(),2),f=lr(o.getMonth()+1,2),m=lr(o.getFullYear(),4);s="".concat(m).concat(l).concat(f).concat(l).concat(u)}if(i!=="date"){var b=o.getTimezoneOffset();if(b!==0){var h=Math.abs(b),w=lr(Math.floor(h/60),2),v=lr(h%60,2),g=b<0?"+":"-";c="".concat(g).concat(w,":").concat(v)}else c="Z";var p=lr(o.getHours(),2),y=lr(o.getMinutes(),2),D=lr(o.getSeconds(),2),P=s===""?"":"T",T=[p,y,D].join(d);s="".concat(s).concat(P).concat(T).concat(c)}return s}function J1(e){Ye(1,arguments);var t=qe(e),n=t.getDay();return n}function eP(e){Ye(1,arguments);var t=qe(e),n=t.getHours();return n}function tP(e){Ye(1,arguments);var t=qe(e),n=t.getMinutes();return n}function nP(e){Ye(1,arguments);var t=qe(e),n=t.getSeconds();return n}function rP(e,t){Ye(2,arguments);var n=qe(e),r=qe(t);return n.getTime()===r.getTime()}function lm(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=zw(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return i=l.done,l},e:function(l){s=!0,a=l},f:function(){try{i||n.return==null||n.return()}finally{if(s)throw a}}}}function Bv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bv=function(){return!!e})()}function rt(e){var t=Bv();return function(){var n,r=Jp(e);if(t){var o=Jp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return FS(this,n)}}var oP=10,jv=function(){function e(){Je(this,e),Ce(this,"priority",void 0),Ce(this,"subPriority",0)}return Ze(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),aP=function(e){nt(n,e);var t=rt(n);function n(r,o,a,i,s){var c;return Je(this,n),c=t.call(this),c.value=r,c.validateValue=o,c.setValue=a,c.priority=i,s&&(c.subPriority=s),c}return Ze(n,[{key:"validate",value:function(o,a){return this.validateValue(o,this.value,a)}},{key:"set",value:function(o,a,i){return this.setValue(o,a,this.value,i)}}]),n}(jv),iP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",oP),Ce(Te(r),"subPriority",-1),r}return Ze(n,[{key:"set",value:function(o,a){if(a.timestampIsSet)return o;var i=new Date(0);return i.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),i.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),i}}]),n}(jv),at=function(){function e(){Je(this,e),Ce(this,"incompatibleTokens",void 0),Ce(this,"priority",void 0),Ce(this,"subPriority",void 0)}return Ze(e,[{key:"run",value:function(n,r,o,a){var i=this.parse(n,r,o,a);return i?{setter:new aP(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(n,r,o){return!0}}]),e}(),sP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",140),Ce(Te(r),"incompatibleTokens",["R","u","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"})||i.era(o,{width:"narrow"});case"GGGGG":return i.era(o,{width:"narrow"});case"GGGG":default:return i.era(o,{width:"wide"})||i.era(o,{width:"abbreviated"})||i.era(o,{width:"narrow"})}}},{key:"set",value:function(o,a,i){return a.era=i,o.setUTCFullYear(i,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),Dt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Fn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Rt(e,t){return e&&{value:t(e.value),rest:e.rest}}function vt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function zn(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*Tv+a*kv+i*GS),rest:t.slice(n[0].length)}}function Lv(e){return vt(Dt.anyDigitsSigned,e)}function kt(e,t){switch(e){case 1:return vt(Dt.singleDigit,t);case 2:return vt(Dt.twoDigits,t);case 3:return vt(Dt.threeDigits,t);case 4:return vt(Dt.fourDigits,t);default:return vt(new RegExp("^\\d{1,"+e+"}"),t)}}function Ps(e,t){switch(e){case 1:return vt(Dt.singleDigitSigned,t);case 2:return vt(Dt.twoDigitsSigned,t);case 3:return vt(Dt.threeDigitsSigned,t);case 4:return vt(Dt.fourDigitsSigned,t);default:return vt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Od(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Nv(e,t){var n=t>0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var a=r+50,i=Math.floor(a/100)*100,s=e>=a%100;o=e+i-(s?100:0)}return n?o:1-o}function Fv(e){return e%400===0||e%4===0&&e%100!==0}var lP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",130),Ce(Te(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){var s=function(l){return{year:l,isTwoDigitYear:a==="yy"}};switch(a){case"y":return Rt(kt(4,o),s);case"yo":return Rt(i.ordinalNumber(o,{unit:"year"}),s);default:return Rt(kt(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,i){var s=o.getUTCFullYear();if(i.isTwoDigitYear){var c=Nv(i.year,s);return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}var l=!("era"in a)||a.era===1?i.year:1-i.year;return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),cP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",130),Ce(Te(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){var s=function(l){return{year:l,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return Rt(kt(4,o),s);case"Yo":return Rt(i.ordinalNumber(o,{unit:"year"}),s);default:return Rt(kt(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,i,s){var c=KS(o,s);if(i.isTwoDigitYear){var l=Nv(i.year,c);return o.setUTCFullYear(l,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Nu(o,s)}var d=!("era"in a)||a.era===1?i.year:1-i.year;return o.setUTCFullYear(d,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Nu(o,s)}}]),n}(at),uP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",130),Ce(Te(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a){return Ps(a==="R"?4:a.length,o)}},{key:"set",value:function(o,a,i){var s=new Date(0);return s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0),Dv(s)}}]),n}(at),dP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",130),Ce(Te(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a){return Ps(a==="u"?4:a.length,o)}},{key:"set",value:function(o,a,i){return o.setUTCFullYear(i,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),fP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",120),Ce(Te(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"Q":case"QQ":return kt(a.length,o);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"})||i.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(o,{width:"wide",context:"formatting"})||i.quarter(o,{width:"abbreviated",context:"formatting"})||i.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,i){return o.setUTCMonth((i-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),pP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",120),Ce(Te(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"q":case"qq":return kt(a.length,o);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"})||i.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(o,{width:"wide",context:"standalone"})||i.quarter(o,{width:"abbreviated",context:"standalone"})||i.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,i){return o.setUTCMonth((i-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),mP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Ce(Te(r),"priority",110),r}return Ze(n,[{key:"parse",value:function(o,a,i){var s=function(l){return l-1};switch(a){case"M":return Rt(vt(Dt.month,o),s);case"MM":return Rt(kt(2,o),s);case"Mo":return Rt(i.ordinalNumber(o,{unit:"month"}),s);case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"})||i.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(o,{width:"wide",context:"formatting"})||i.month(o,{width:"abbreviated",context:"formatting"})||i.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,i){return o.setUTCMonth(i,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),hP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",110),Ce(Te(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){var s=function(l){return l-1};switch(a){case"L":return Rt(vt(Dt.month,o),s);case"LL":return Rt(kt(2,o),s);case"Lo":return Rt(i.ordinalNumber(o,{unit:"month"}),s);case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"})||i.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(o,{width:"wide",context:"standalone"})||i.month(o,{width:"abbreviated",context:"standalone"})||i.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,i){return o.setUTCMonth(i,1),o.setUTCHours(0,0,0,0),o}}]),n}(at);function gP(e,t,n){Ye(2,arguments);var r=qe(e),o=Xt(t),a=YS(r,n)-o;return r.setUTCDate(r.getUTCDate()-a*7),r}var bP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",100),Ce(Te(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"w":return vt(Dt.week,o);case"wo":return i.ordinalNumber(o,{unit:"week"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,i,s){return Nu(gP(o,i,s),s)}}]),n}(at);function vP(e,t){Ye(2,arguments);var n=qe(e),r=Xt(t),o=XS(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}var yP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",100),Ce(Te(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"I":return vt(Dt.week,o);case"Io":return i.ordinalNumber(o,{unit:"week"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,i){return Dv(vP(o,i))}}]),n}(at),CP=[31,28,31,30,31,30,31,31,30,31,30,31],xP=[31,29,31,30,31,30,31,31,30,31,30,31],wP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"subPriority",1),Ce(Te(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"d":return vt(Dt.date,o);case"do":return i.ordinalNumber(o,{unit:"date"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){var i=o.getUTCFullYear(),s=Fv(i),c=o.getUTCMonth();return s?a>=1&&a<=xP[c]:a>=1&&a<=CP[c]}},{key:"set",value:function(o,a,i){return o.setUTCDate(i),o.setUTCHours(0,0,0,0),o}}]),n}(at),SP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"subpriority",1),Ce(Te(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"D":case"DD":return vt(Dt.dayOfYear,o);case"Do":return i.ordinalNumber(o,{unit:"date"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){var i=o.getUTCFullYear(),s=Fv(i);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(o,a,i){return o.setUTCMonth(0,i),o.setUTCHours(0,0,0,0),o}}]),n}(at);function Id(e,t,n){var r,o,a,i,s,c,l,d;Ye(2,arguments);var u=Rv(),f=Xt((r=(o=(a=(i=n==null?void 0:n.weekStartsOn)!==null&&i!==void 0?i:n==null||(s=n.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&a!==void 0?a:u.weekStartsOn)!==null&&o!==void 0?o:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=qe(e),b=Xt(t),h=m.getUTCDay(),w=b%7,v=(w+7)%7,g=(v<f?7:0)+b-h;return m.setUTCDate(m.getUTCDate()+g),m}var PP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(o,{width:"wide",context:"formatting"})||i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,i,s){return o=Id(o,i,s),o.setUTCHours(0,0,0,0),o}}]),n}(at),TP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i,s){var c=function(d){var u=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+u};switch(a){case"e":case"ee":return Rt(kt(a.length,o),c);case"eo":return Rt(i.ordinalNumber(o,{unit:"day"}),c);case"eee":return i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(o,{width:"wide",context:"formatting"})||i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,i,s){return o=Id(o,i,s),o.setUTCHours(0,0,0,0),o}}]),n}(at),kP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i,s){var c=function(d){var u=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+u};switch(a){case"c":case"cc":return Rt(kt(a.length,o),c);case"co":return Rt(i.ordinalNumber(o,{unit:"day"}),c);case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"})||i.day(o,{width:"short",context:"standalone"})||i.day(o,{width:"narrow",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"})||i.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(o,{width:"wide",context:"standalone"})||i.day(o,{width:"abbreviated",context:"standalone"})||i.day(o,{width:"short",context:"standalone"})||i.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,i,s){return o=Id(o,i,s),o.setUTCHours(0,0,0,0),o}}]),n}(at);function DP(e,t){Ye(2,arguments);var n=Xt(t);n%7===0&&(n=n-7);var r=1,o=qe(e),a=o.getUTCDay(),i=n%7,s=(i+7)%7,c=(s<r?7:0)+n-a;return o.setUTCDate(o.getUTCDate()+c),o}var RP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){var s=function(l){return l===0?7:l};switch(a){case"i":case"ii":return kt(a.length,o);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return Rt(i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"}),s);case"iiiii":return Rt(i.day(o,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Rt(i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Rt(i.day(o,{width:"wide",context:"formatting"})||i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(o,a){return a>=1&&a<=7}},{key:"set",value:function(o,a,i){return o=DP(o,i),o.setUTCHours(0,0,0,0),o}}]),n}(at),EP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",80),Ce(Te(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"a":case"aa":case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})||i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,i){return o.setUTCHours(Od(i),0,0,0),o}}]),n}(at),MP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",80),Ce(Te(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"b":case"bb":case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})||i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,i){return o.setUTCHours(Od(i),0,0,0),o}}]),n}(at),$P=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",80),Ce(Te(r),"incompatibleTokens",["a","b","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})||i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,i){return o.setUTCHours(Od(i),0,0,0),o}}]),n}(at),OP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",70),Ce(Te(r),"incompatibleTokens",["H","K","k","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"h":return vt(Dt.hour12h,o);case"ho":return i.ordinalNumber(o,{unit:"hour"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=12}},{key:"set",value:function(o,a,i){var s=o.getUTCHours()>=12;return s&&i<12?o.setUTCHours(i+12,0,0,0):!s&&i===12?o.setUTCHours(0,0,0,0):o.setUTCHours(i,0,0,0),o}}]),n}(at),IP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",70),Ce(Te(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"H":return vt(Dt.hour23h,o);case"Ho":return i.ordinalNumber(o,{unit:"hour"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=23}},{key:"set",value:function(o,a,i){return o.setUTCHours(i,0,0,0),o}}]),n}(at),_P=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",70),Ce(Te(r),"incompatibleTokens",["h","H","k","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"K":return vt(Dt.hour11h,o);case"Ko":return i.ordinalNumber(o,{unit:"hour"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,i){var s=o.getUTCHours()>=12;return s&&i<12?o.setUTCHours(i+12,0,0,0):o.setUTCHours(i,0,0,0),o}}]),n}(at),AP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",70),Ce(Te(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"k":return vt(Dt.hour24h,o);case"ko":return i.ordinalNumber(o,{unit:"hour"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=24}},{key:"set",value:function(o,a,i){var s=i<=24?i%24:i;return o.setUTCHours(s,0,0,0),o}}]),n}(at),BP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",60),Ce(Te(r),"incompatibleTokens",["t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"m":return vt(Dt.minute,o);case"mo":return i.ordinalNumber(o,{unit:"minute"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,i){return o.setUTCMinutes(i,0,0),o}}]),n}(at),jP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",50),Ce(Te(r),"incompatibleTokens",["t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"s":return vt(Dt.second,o);case"so":return i.ordinalNumber(o,{unit:"second"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,i){return o.setUTCSeconds(i,0),o}}]),n}(at),LP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",30),Ce(Te(r),"incompatibleTokens",["t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a){var i=function(c){return Math.floor(c*Math.pow(10,-a.length+3))};return Rt(kt(a.length,o),i)}},{key:"set",value:function(o,a,i){return o.setUTCMilliseconds(i),o}}]),n}(at),NP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",10),Ce(Te(r),"incompatibleTokens",["t","T","x"]),r}return Ze(n,[{key:"parse",value:function(o,a){switch(a){case"X":return zn(Fn.basicOptionalMinutes,o);case"XX":return zn(Fn.basic,o);case"XXXX":return zn(Fn.basicOptionalSeconds,o);case"XXXXX":return zn(Fn.extendedOptionalSeconds,o);case"XXX":default:return zn(Fn.extended,o)}}},{key:"set",value:function(o,a,i){return a.timestampIsSet?o:new Date(o.getTime()-i)}}]),n}(at),FP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",10),Ce(Te(r),"incompatibleTokens",["t","T","X"]),r}return Ze(n,[{key:"parse",value:function(o,a){switch(a){case"x":return zn(Fn.basicOptionalMinutes,o);case"xx":return zn(Fn.basic,o);case"xxxx":return zn(Fn.basicOptionalSeconds,o);case"xxxxx":return zn(Fn.extendedOptionalSeconds,o);case"xxx":default:return zn(Fn.extended,o)}}},{key:"set",value:function(o,a,i){return a.timestampIsSet?o:new Date(o.getTime()-i)}}]),n}(at),zP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",40),Ce(Te(r),"incompatibleTokens","*"),r}return Ze(n,[{key:"parse",value:function(o){return Lv(o)}},{key:"set",value:function(o,a,i){return[new Date(i*1e3),{timestampIsSet:!0}]}}]),n}(at),WP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",20),Ce(Te(r),"incompatibleTokens","*"),r}return Ze(n,[{key:"parse",value:function(o){return Lv(o)}},{key:"set",value:function(o,a,i){return[new Date(i),{timestampIsSet:!0}]}}]),n}(at),VP={G:new sP,y:new lP,Y:new cP,R:new uP,u:new dP,Q:new fP,q:new pP,M:new mP,L:new hP,w:new bP,I:new yP,d:new wP,D:new SP,E:new PP,e:new TP,c:new kP,i:new RP,a:new EP,b:new MP,B:new $P,h:new OP,H:new IP,K:new _P,k:new AP,m:new BP,s:new jP,S:new LP,X:new NP,x:new FP,t:new zP,T:new WP},UP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,HP=/^'([^]*?)'?$/,GP=/''/g,KP=/\S/,YP=/[a-zA-Z]/;function XP(e,t,n,r){var o,a,i,s,c,l,d,u,f,m,b,h,w,v,g,p,y,D;Ye(3,arguments);var P=String(e),T=String(t),k=Rv(),C=(o=(a=r==null?void 0:r.locale)!==null&&a!==void 0?a:k.locale)!==null&&o!==void 0?o:$d;if(!C.match)throw new RangeError("locale must contain match property");var R=Xt((i=(s=(c=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(d=r.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&c!==void 0?c:k.firstWeekContainsDate)!==null&&s!==void 0?s:(f=k.locale)===null||f===void 0||(m=f.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Xt((b=(h=(w=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(g=r.locale)===null||g===void 0||(p=g.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&w!==void 0?w:k.weekStartsOn)!==null&&h!==void 0?h:(y=k.locale)===null||y===void 0||(D=y.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&b!==void 0?b:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return P===""?qe(n):new Date(NaN);var $={firstWeekContainsDate:R,weekStartsOn:M,locale:C},O=[new iP],I=T.match(qP).map(function(H){var K=H[0];if(K in em){var Q=em[K];return Q(H,C.formatLong)}return H}).join("").match(UP),_=[],A=lm(I),F;try{var L=function(){var K=F.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&QS(K)&&tm(K,T,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&ZS(K)&&tm(K,T,e);var Q=K[0],ie=VP[Q];if(ie){var Y=ie.incompatibleTokens;if(Array.isArray(Y)){var J=_.find(function(ge){return Y.includes(ge.token)||ge.token===Q});if(J)throw new RangeError("The format string mustn't contain `".concat(J.fullToken,"` and `").concat(K,"` at the same time"))}else if(ie.incompatibleTokens==="*"&&_.length>0)throw new RangeError("The format string mustn't contain `".concat(K,"` and any other token at the same time"));_.push({token:Q,fullToken:K});var ne=ie.run(P,K,C.match,$);if(!ne)return{v:new Date(NaN)};O.push(ne.setter),P=ne.rest}else{if(Q.match(YP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Q+"`");if(K==="''"?K="'":Q==="'"&&(K=QP(K)),P.indexOf(K)===0)P=P.slice(K.length);else return{v:new Date(NaN)}}};for(A.s();!(F=A.n()).done;){var W=L();if(Ww(W)==="object")return W.v}}catch(H){A.e(H)}finally{A.f()}if(P.length>0&&KP.test(P))return new Date(NaN);var G=O.map(function(H){return H.priority}).sort(function(H,K){return K-H}).filter(function(H,K,Q){return Q.indexOf(H)===K}).map(function(H){return O.filter(function(K){return K.priority===H}).sort(function(K,Q){return Q.subPriority-K.subPriority})}).map(function(H){return H[0]}),E=qe(n);if(isNaN(E.getTime()))return new Date(NaN);var q=JS(E,ju(E)),U={},j=lm(G),z;try{for(j.s();!(z=j.n()).done;){var B=z.value;if(!B.validate(q,$))return new Date(NaN);var V=B.set(q,U,$);Array.isArray(V)?(q=V[0],Q1(U,V[1])):q=V}}catch(H){j.e(H)}finally{j.f()}return q}function QP(e){return e.match(HP)[1].replace(GP,"'")}function cm(e){Ye(1,arguments);var t=qe(e);return t.setMinutes(0,0,0),t}function ZP(e,t){Ye(2,arguments);var n=cm(e),r=cm(t);return n.getTime()===r.getTime()}function JP(e,t){Ye(2,arguments);var n=qe(e),r=qe(t);return n.getFullYear()===r.getFullYear()}function eT(e,t){Ye(2,arguments);var n=qe(e),r=Xt(t);return n.setDate(r),n}function tT(e,t){Ye(2,arguments);var n=qe(e),r=Xt(t);return n.setHours(r),n}function nT(e,t){Ye(2,arguments);var n=qe(e),r=Xt(t);return n.setMinutes(r),n}function rT(e,t){Ye(2,arguments);var n=qe(e),r=Xt(t);return n.setSeconds(r),n}var _d={},oT=Se;Object.defineProperty(_d,"__esModule",{value:!0});var zv=_d.default=void 0,aT=oT(Vr()),iT=x;zv=_d.default=(0,aT.default)((0,iT.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");function Ad({children:e,...t}){var l;const{t:n}=Yt(),{api:r}=Qt(),{blocklet:o}=Ur(),a=(l=o==null?void 0:o.settings)==null?void 0:l.autoCheckUpdate,i=async d=>{await r.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:d}})},s=async()=>{try{const d=!(a!=null&&a.enabled);await i({enabled:d}),ot.success(n(d?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(d){ot.error(d.message)}},c=!!(a!=null&&a.enabled);return x.jsxs(Re,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,x.jsx(Vn,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:x.jsx("div",{children:x.jsx(NS,{checked:c,onChange:s,name:"enableWelcomePage",style:{...t.style,zoom:.8}})})})]})}Ad.propTypes={children:oe.any};Ad.defaultProps={children:null};var Wv={},Go={},wc={};function Vv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Vv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ye(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Vv(e))&&(r&&(r+=" "),r+=t);return r}function Ne(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let c=0;c<a.length;c+=1){const l=a[c];l&&(i+=(s===!0?"":" ")+t(l),s=!1,n&&n[l]&&(i+=" "+n[l]))}r[o]=i}return r}function Ts(e){return typeof e=="string"}function Wu(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function Uv(e){if(typeof e!="string")throw new Error(Wu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function hr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qv(e){if(!hr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=qv(e[n])}),t}function Lr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return hr(e)&&hr(t)&&Object.keys(t).forEach(o=>{hr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&hr(e[o])?r[o]=Lr(e[o],t[o],n):n.clone?r[o]=hr(t[o])?qv(t[o]):t[o]:r[o]=t[o]}),r}function za(e,t){return t?Lr(e,t,{clone:!1}):e}function sT(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var i,s;const a=/min-width:\s*([0-9.]+)/;return+(((i=r.match(a))==null?void 0:i[1])||0)-+(((s=o.match(a))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function lT(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function cT(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function uT(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const c=t(e.breakpoints.not(...s),i);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const ll={xs:0,sm:600,md:900,lg:1200,xl:1536},um={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ll[e]}px)`},dT={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:ll[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function er(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||um;return t.reduce((i,s,c)=>(i[a.up(a.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const a=r.breakpoints||um;return Object.keys(t).reduce((i,s)=>{if(lT(a.keys,s)){const c=cT(r.containerQueries?r:dT,s);c&&(i[c]=n(t[s],s))}else if(Object.keys(a.values||ll).includes(s)){const c=a.up(s);i[c]=n(t[s],s)}else{const c=s;i[c]=t[c]}return i},{})}return n(t)}function fT(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function pT(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function cl(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ks(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=cl(e,n)||r,t&&(o=t(o,r,e)),o}function Mt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],c=i.theme,l=cl(c,r)||{};return er(i,s,u=>{let f=ks(l,o,u);return u===f&&typeof u=="string"&&(f=ks(l,o,`${t}${u==="default"?"":Uv(u)}`,u)),n===!1?f:{[n]:f}})};return a.propTypes={},a.filterProps=[t],a}function mT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const hT={m:"margin",p:"padding"},gT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},dm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bT=mT(e=>{if(e.length>2)if(dm[e])e=dm[e];else return[e];const[t,n]=e.split(""),r=hT[t],o=gT[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),Bd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Bd,...jd];function vi(e,t,n,r){const o=cl(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function Ld(e){return vi(e,"spacing",8)}function yi(e,t){return typeof t=="string"||t==null?t:e(t)}function vT(e,t){return n=>e.reduce((r,o)=>(r[o]=yi(t,n),r),{})}function yT(e,t,n,r){if(!t.includes(n))return null;const o=bT(n),a=vT(o,r),i=e[n];return er(e,i,a)}function Hv(e,t){const n=Ld(e.theme);return Object.keys(e).map(r=>yT(e,t,r,n)).reduce(za,{})}function xt(e){return Hv(e,Bd)}xt.propTypes={};xt.filterProps=Bd;function wt(e){return Hv(e,jd)}wt.propTypes={};wt.filterProps=jd;function ul(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?za(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function mn(e){return typeof e!="number"?e:`${e}px solid`}function Pn(e,t){return Mt({prop:e,themeKey:"borders",transform:t})}const CT=Pn("border",mn),xT=Pn("borderTop",mn),wT=Pn("borderRight",mn),ST=Pn("borderBottom",mn),PT=Pn("borderLeft",mn),TT=Pn("borderColor"),kT=Pn("borderTopColor"),DT=Pn("borderRightColor"),RT=Pn("borderBottomColor"),ET=Pn("borderLeftColor"),MT=Pn("outline",mn),$T=Pn("outlineColor"),dl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=vi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:yi(t,r)});return er(e,e.borderRadius,n)}return null};dl.propTypes={};dl.filterProps=["borderRadius"];ul(CT,xT,wT,ST,PT,TT,kT,DT,RT,ET,dl,MT,$T);const fl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=vi(e.theme,"spacing",8),n=r=>({gap:yi(t,r)});return er(e,e.gap,n)}return null};fl.propTypes={};fl.filterProps=["gap"];const pl=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=vi(e.theme,"spacing",8),n=r=>({columnGap:yi(t,r)});return er(e,e.columnGap,n)}return null};pl.propTypes={};pl.filterProps=["columnGap"];const ml=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=vi(e.theme,"spacing",8),n=r=>({rowGap:yi(t,r)});return er(e,e.rowGap,n)}return null};ml.propTypes={};ml.filterProps=["rowGap"];const OT=Mt({prop:"gridColumn"}),IT=Mt({prop:"gridRow"}),_T=Mt({prop:"gridAutoFlow"}),AT=Mt({prop:"gridAutoColumns"}),BT=Mt({prop:"gridAutoRows"}),jT=Mt({prop:"gridTemplateColumns"}),LT=Mt({prop:"gridTemplateRows"}),NT=Mt({prop:"gridTemplateAreas"}),FT=Mt({prop:"gridArea"});ul(fl,pl,ml,OT,IT,_T,AT,BT,jT,LT,NT,FT);function mo(e,t){return t==="grey"?t:e}const zT=Mt({prop:"color",themeKey:"palette",transform:mo}),WT=Mt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mo}),VT=Mt({prop:"backgroundColor",themeKey:"palette",transform:mo});ul(zT,WT,VT);function en(e){return e<=1&&e!==0?`${e*100}%`:e}const UT=Mt({prop:"width",transform:en}),Nd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,a,i,s,c;const r=((i=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[n])||ll[n];return r?((c=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:en(n)}};return er(e,e.maxWidth,t)}return null};Nd.filterProps=["maxWidth"];const qT=Mt({prop:"minWidth",transform:en}),HT=Mt({prop:"height",transform:en}),GT=Mt({prop:"maxHeight",transform:en}),KT=Mt({prop:"minHeight",transform:en});Mt({prop:"size",cssProperty:"width",transform:en});Mt({prop:"size",cssProperty:"height",transform:en});const YT=Mt({prop:"boxSizing"});ul(UT,Nd,qT,HT,GT,KT,YT);const Ci={border:{themeKey:"borders",transform:mn},borderTop:{themeKey:"borders",transform:mn},borderRight:{themeKey:"borders",transform:mn},borderBottom:{themeKey:"borders",transform:mn},borderLeft:{themeKey:"borders",transform:mn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:mn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dl},color:{themeKey:"palette",transform:mo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mo},backgroundColor:{themeKey:"palette",transform:mo},p:{style:wt},pt:{style:wt},pr:{style:wt},pb:{style:wt},pl:{style:wt},px:{style:wt},py:{style:wt},padding:{style:wt},paddingTop:{style:wt},paddingRight:{style:wt},paddingBottom:{style:wt},paddingLeft:{style:wt},paddingX:{style:wt},paddingY:{style:wt},paddingInline:{style:wt},paddingInlineStart:{style:wt},paddingInlineEnd:{style:wt},paddingBlock:{style:wt},paddingBlockStart:{style:wt},paddingBlockEnd:{style:wt},m:{style:xt},mt:{style:xt},mr:{style:xt},mb:{style:xt},ml:{style:xt},mx:{style:xt},my:{style:xt},margin:{style:xt},marginTop:{style:xt},marginRight:{style:xt},marginBottom:{style:xt},marginLeft:{style:xt},marginX:{style:xt},marginY:{style:xt},marginInline:{style:xt},marginInlineStart:{style:xt},marginInlineEnd:{style:xt},marginBlock:{style:xt},marginBlockStart:{style:xt},marginBlockEnd:{style:xt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:fl},rowGap:{style:ml},columnGap:{style:pl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:en},maxWidth:{style:Nd},minWidth:{transform:en},height:{transform:en},maxHeight:{transform:en},minHeight:{transform:en},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function XT(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function QT(e,t){return typeof e=="function"?e(t):e}function ZT(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:c=n,themeKey:l,transform:d,style:u}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const f=cl(o,l)||{};return u?u(i):er(i,r,b=>{let h=ks(f,d,b);return b===h&&typeof b=="string"&&(h=ks(f,d,`${n}${b==="default"?"":Uv(b)}`,b)),c===!1?h:{[c]:h}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Ci;function i(s){let c=s;if(typeof s=="function")c=s(o);else if(typeof s!="object")return s;if(!c)return null;const l=fT(o.breakpoints),d=Object.keys(l);let u=l;return Object.keys(c).forEach(f=>{const m=QT(c[f],o);if(m!=null)if(typeof m=="object")if(a[f])u=za(u,e(f,m,o,a));else{const b=er({theme:o},m,h=>({[f]:h}));XT(b,m)?u[f]=t({sx:m,theme:o}):u=za(u,b)}else u=za(u,e(f,m,o,a))}),sT(o,pT(d,u))}return Array.isArray(r)?r.map(i):i(r)}return t}const Hr=ZT();Hr.filterProps=["sx"];const JT=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Ci;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Gv(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=JT(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return hr(s)?{...r,...s}:r}:a={...r,...t},{...o,sx:a}}const ek=e=>{const t=uv(e);class n extends Vw{constructor(o){super(o),this.prepend=t.sheet.prepend}}return t.sheet=new n({key:t.key,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy,prepend:t.sheet.prepend,insertionPoint:t.sheet.insertionPoint}),t};let Vu;typeof document=="object"&&(Vu=ek({key:"css",prepend:!0}));function tk(e){const{injectFirst:t,children:n}=e;return t&&Vu?x.jsx(cv,{value:Vu,children:n}):n}function nk(e){return e==null||Object.keys(e).length===0}function Kv(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(nk(o)?n:o):t;return x.jsx(dv,{styles:r})}/**
3
3
  * @mui/styled-engine v6.1.0
4
4
  *
@@ -700,7 +700,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
700
700
  margin-left: 4px;
701
701
  transform: translateY(-1px);
702
702
  }
703
- `;function jw({blocklet:e,ancestors:t,mountPoint:n,href:r}){const[o,a]=S.useState(!1),[i,s]=S.useState(!1),[c,l]=S.useState(!1),[d,u]=S.useState(n),{api:f}=Qt(),m=!t.length,b=m?e.meta.did:t.map(T=>T.meta.did)[0],{t:h}=Yt(),{confirmApi:w,confirmHolder:v}=MS();S.useEffect(()=>{s(!1),a(!1),l(!1)},[n]);const g=()=>{a(!1),s(!1),u(n)},p=async()=>{l(!0),a(!1);try{const T={rootDid:b,mountPoint:Co(d)};m||(T.did=e.meta.did),await f.updateComponentMountPoint({input:T})}catch(T){throw T.message=En(T),ot.error(T.message),T}finally{g()}},y=I1(()=>{w.open({title:h("common.noticeTitle"),content:x.jsxs(Re,{sx:{color:"#9397A1","& > li":{listStyle:"disc",ml:1.5}},children:[x.jsx(Un,{sx:{mb:1.5},children:h("blocklet.mountPoint.description1")}),x.jsx(Un,{component:"li",children:h("blocklet.mountPoint.case1")}),x.jsx(Un,{component:"li",children:h("blocklet.mountPoint.case2")}),x.jsx(Un,{sx:{mt:1.5},children:h("blocklet.mountPoint.description2")})]}),confirmButtonText:h("common.confirm"),cancelButtonText:h("common.cancel"),async onConfirm(T){await p(),T()},confirmButtonProps:{"data-cy":"edit-mount-point-confirm"}})}),D=T=>{T==null||T.preventDefault(),Co(d)!==n?y():s(!1)},P=i?x.jsxs(Re,{sx:{ml:1},children:[x.jsx(an,{size:"medium",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),"data-cy":"edit-mount-point-submit",onClick:D,children:x.jsx(Re,{component:Mn,icon:"material-symbols:done",sx:{color:"primary.main",transition:"0.3s opacity"}})}),x.jsx(an,{size:"medium",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onClick:g,children:x.jsx(Re,{component:Mn,icon:"iconoir:cancel",sx:{color:"primary.main",transition:"0.3s opacity"}})})]}):x.jsx(an,{size:"medium",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onClick:()=>s(!0),children:x.jsx(Re,{component:Mn,"data-cy":"edit-mount-point",icon:"lets-icons:edit-light",sx:{opacity:o?1:0,color:"primary.main",transition:"0.3s opacity"}})});return x.jsxs(Re,{sx:{display:{xs:"none",md:"flex"}},alignItems:"center",flexGrow:"1",children:[v,i?x.jsx("form",{onSubmit:D,children:x.jsx(Jt,{style:{flex:1},fullWidth:!0,"data-cy":"edit-mount-point-input",value:d,onChange:T=>u(T.target.value),autoFocus:!0,size:"small",variant:"outlined",placeholder:n})}):x.jsx(Re,{component:"a",target:"_blank",href:r,rel:"noopener noreferrer",title:r,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:x.jsx(Re,{maxWidth:400,sx:{color:"primary.main",fontSize:16,px:2},overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",children:_S(n)})}),c?x.jsx(Fr,{size:20,sx:{ml:1}}):P]},n)}jw.propTypes={mountPoint:oe.string.isRequired,href:oe.string.isRequired,blocklet:oe.object.isRequired,ancestors:oe.array.isRequired};const QH=e=>{var t;return!((t=e==null?void 0:e.meta)!=null&&t.group)},lv=(e,t)=>{const n=e.split("/").slice(1);let r=t,o=0;const a=[];for(;r&&o<n.length;){const i=r.children.find(s=>s.meta.did===n[o]);r=i,o++,i&&a.push(i.meta.title)}return a.join(" / ")};function Js({blocklet:e,ancestors:t,depth:n,onRemove:r,onStart:o,onStop:a,onRestart:i,getComponentUrl:s,app:c}){var F,L,W;const{t:l}=S.useContext(Tr),[d,u]=S.useState(),[f,m]=S.useState(!1),[b,h]=S.useState(!1),[w,v]=S.useState(null),{info:g}=Qt(),[p,y]=S.useState(!1),[D,P]=S.useState(!1),{deletingBlocklets:T}=Rd();let{status:k}=e;n===1&&T.includes(e.meta.did)&&(k="deleting");const C=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),R=s(C),M=dt.isInProgress(c.status),$=dt.isInProgress(e.status);let O="";if(M||$||n===1&&T.includes(e.meta.did))O=l("blocklet.component.tip.stopBlocklet");else if((F=e.dependents)!=null&&F.length){const G=e.dependents.filter(E=>E.required);if(G.length){const E=G.map(q=>lv(q.id,c));O=l("blocklet.component.tip.requiredBy",{name:E.join(", ")})}}const I=async(...G)=>{h(!0);try{await r(...G)}catch{}h(!1),m(!1)},{usingDocker:_,usingIsolation:A}=S.useMemo(()=>{var j,z;if(!e.meta.group||e.meta.group==="static")return{usingDocker:!1,usingIsolation:!1};const G=!!g.enableDocker||((j=window.blocklet)==null?void 0:j.enableDocker),E=[...c.configs,...e.configs].find(B=>B.key==="SKIP_DOCKER"&&B.value),q=[...c.configs,...e.configs].find(B=>B.key==="USE_DOCKER"&&B.value),U=[...c.configs,...e.configs].find(B=>B.key==="SKIP_DOCKER_NETWORK"&&B.value);return{usingDocker:G?!E:!!q,usingIsolation:G&&!U&&(g.enableDockerNetwork||((z=window.blocklet)==null?void 0:z.enableDockerNetwork))}},[e.configs,g.enableDocker,g.enableDockerNetwork,c.configs,e.meta.group]);return x.jsxs(x.Fragment,{children:[x.jsxs(jp,{display:"flex",py:2,className:"component-item",justifyContent:"flex-start",alignItems:"center",children:[x.jsxs(Re,{pl:2,width:{xs:250,sm:400},display:"flex",alignItems:"center",children:[x.jsx(M1,{blocklet:e,ancestors:t}),x.jsxs(Re,{ml:"16px",sx:{minWidth:0},children:[x.jsxs(Re,{className:"component-header",onClick:()=>u(e),children:[x.jsx(Re,{className:"component-name",children:dt.getDisplayName(e,!0)}),x.jsx(Re,{className:"component-version",children:(L=e==null?void 0:e.meta)==null?void 0:L.version})]}),x.jsxs(Re,{display:"flex",alignItems:"center",sx:{mt:"2px",ml:-.5},children:[k!=="unknown"&&x.jsx(Pv,{style:{marginLeft:4},status:k,source:e.source,progress:e.progress}),x.jsx(Aw,{style:{marginLeft:4},mode:e.mode||""}),e.mode!=="development"&&_&&x.jsx(Vn,{title:l("blocklet.usingDocker"),children:x.jsx(Re,{display:"flex",color:"primary.main",ml:1,children:x.jsx(Mn,{icon:P1})})}),e.mode!=="development"&&A&&x.jsx(Vn,{title:l("blocklet.usingIsolation"),children:x.jsx(Re,{display:"flex",color:"primary.main",ml:1,children:x.jsx(Mn,{icon:"streamline:network"})})}),!!((W=e.dependents)!=null&&W.length)&&x.jsx(Vn,{title:[`${l("common.dependents")}: `,e.dependents.map(G=>x.jsx(Re,{pl:1,children:`${lv(G.id,c)} ${G.required?`(${l("common.required")})`:""}`},G.id))],children:x.jsx(Re,{display:"flex",color:"primary.main",ml:1,children:x.jsx(Mn,{icon:"octicon:package-dependents-16"})})})]})]})]},e),AS.hasMountPoint(e.meta)&&x.jsx(jw,{blocklet:e,ancestors:t,mountPoint:C,href:R},C),x.jsx("div",{style:{flex:1}}),x.jsxs(Re,{display:"flex",alignItems:"center",children:[dt.hasStartEngine(e.meta)&&x.jsx(Vn,{title:l("common.visit"),children:x.jsx(Re,{component:"a",sx:{display:{xs:"flex",md:"none"}},target:"_blank",href:R,rel:"noopener noreferrer",children:x.jsx(an,{size:"small",children:x.jsx(Ov,{})})})}),x.jsx(Ip,{blocklet:c,component:e,onStart:o,onStop:a,disabled:!["starting","stopping"].includes(c.status)&&dt.isInProgress(c.status)}),x.jsx(an,{onClick:()=>P(!0),disabled:M||$,children:x.jsx(Sv,{fontSize:"small"})}),x.jsx(Td,{color:"error",badgeContent:"",variant:"dot",invisible:!dt.getComponentMissingConfigs(e,t[0]).length,children:x.jsx(Iv,{"data-cy":"component-actions",actions:[dt.hasStartEngine(e.meta)||QH(e)?{icon:x.jsx(R1,{}),text:l("common.detail"),onClick:()=>{u(e)}}:null,{icon:x.jsx(LS,{}),text:l("common.restart"),onClick:()=>{v({title:`${l("common.restart")} ${e.meta.title}`,description:l("blocklet.action.restartDescription"),confirm:l("blocklet.action.confirmRestart"),cancel:l("common.cancel"),onConfirm:async()=>{h(!0),await i(e),h(!1),v(null)},onCancel:()=>v(null)})},disabled:b||M||$||e.status!=="running"},{icon:x.jsx(gi,{}),text:l("common.delete"),onClick:()=>{m(!0)},disabled:M||$||!!O,tip:O},{separator:!0},{icon:x.jsx(Mn,{icon:"mdi:variable"}),onClick:()=>{y(!0)},text:x.jsx(Td,{color:"error",badgeContent:"",variant:"dot",invisible:!dt.getComponentMissingConfigs(e,t[0]).length,children:x.jsx(Re,{sx:{width:"100%"},children:l("common.environments")})}),disabled:M||$}].filter(Boolean)})})]},"actions")]},"group-not-gateway-box"),x.jsx(ji,{},"line"),x.jsx(Bp,{componentInfo:d,onClose:u,blocklet:e,app:c,depth:n}),x.jsx(Op,{blocklet:c,component:e,remove:I,onCancel:()=>m(!1),hideBtn:!0,showConfirm:f},"delete-component"),w&&x.jsx(Mo,{title:w.title,description:w.description,confirm:w.confirm,cancel:w.cancel,params:w.params,onConfirm:w.onConfirm,onCancel:w.onCancel},"confirm-setting"),p&&x.jsx(uc,{open:!0,hiddenChildren:!0,onClose:()=>y(!1),blocklet:e,ancestors:t}),D&&x.jsx(mc,{open:!0,onClose:()=>P(!1),blocklet:e,ancestors:t})]})}Js.propTypes={blocklet:oe.object.isRequired,ancestors:oe.array,depth:oe.number,onRemove:oe.func,onStart:oe.func,onStop:oe.func,onRestart:oe.func,getComponentUrl:oe.func,app:oe.object};Js.defaultProps={ancestors:[],depth:0,onRemove:()=>{},onStart:()=>{},onStop:()=>{},onRestart:()=>{},getComponentUrl:()=>window.location.origin,app:null};const Td=Nt(gv)`
703
+ `;function jw({blocklet:e,ancestors:t,mountPoint:n,href:r}){const[o,a]=S.useState(!1),[i,s]=S.useState(!1),[c,l]=S.useState(!1),[d,u]=S.useState(n),{api:f}=Qt(),m=!t.length,b=m?e.meta.did:t.map(T=>T.meta.did)[0],{t:h}=Yt(),{confirmApi:w,confirmHolder:v}=MS();S.useEffect(()=>{s(!1),a(!1),l(!1)},[n]);const g=()=>{a(!1),s(!1),u(n)},p=async()=>{l(!0),a(!1);try{const T={rootDid:b,mountPoint:Co(d)};m||(T.did=e.meta.did),await f.updateComponentMountPoint({input:T})}catch(T){throw T.message=En(T),ot.error(T.message),T}finally{g()}},y=I1(()=>{w.open({title:h("common.noticeTitle"),content:x.jsxs(Re,{sx:{color:"#9397A1","& > li":{listStyle:"disc",ml:1.5}},children:[x.jsx(Un,{sx:{mb:1.5},children:h("blocklet.mountPoint.description1")}),x.jsx(Un,{component:"li",children:h("blocklet.mountPoint.case1")}),x.jsx(Un,{component:"li",children:h("blocklet.mountPoint.case2")}),x.jsx(Un,{sx:{mt:1.5},children:h("blocklet.mountPoint.description2")})]}),confirmButtonText:h("common.confirm"),cancelButtonText:h("common.cancel"),async onConfirm(T){await p(),T()},confirmButtonProps:{"data-cy":"edit-mount-point-confirm"}})}),D=T=>{T==null||T.preventDefault(),Co(d)!==n?y():s(!1)},P=i?x.jsxs(Re,{sx:{ml:1},children:[x.jsx(an,{size:"medium",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),"data-cy":"edit-mount-point-submit",onClick:D,children:x.jsx(Re,{component:Mn,icon:"material-symbols:done",sx:{color:"primary.main",transition:"0.3s opacity"}})}),x.jsx(an,{size:"medium",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onClick:g,children:x.jsx(Re,{component:Mn,icon:"iconoir:cancel",sx:{color:"primary.main",transition:"0.3s opacity"}})})]}):x.jsx(an,{size:"medium",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onClick:()=>s(!0),children:x.jsx(Re,{component:Mn,"data-cy":"edit-mount-point",icon:"lets-icons:edit-light",sx:{opacity:o?1:0,color:"primary.main",transition:"0.3s opacity"}})});return x.jsxs(Re,{sx:{display:{xs:"none",md:"flex"}},alignItems:"center",flexGrow:"1",children:[v,i?x.jsx("form",{onSubmit:D,children:x.jsx(Jt,{style:{flex:1},fullWidth:!0,"data-cy":"edit-mount-point-input",value:d,onChange:T=>u(T.target.value),autoFocus:!0,size:"small",variant:"outlined",placeholder:n})}):x.jsx(Re,{component:"a",target:"_blank",href:r,rel:"noopener noreferrer",title:r,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:x.jsx(Re,{maxWidth:400,sx:{color:"primary.main",fontSize:16,px:2},overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",children:_S(n)})}),c?x.jsx(Fr,{size:20,sx:{ml:1}}):P]},n)}jw.propTypes={mountPoint:oe.string.isRequired,href:oe.string.isRequired,blocklet:oe.object.isRequired,ancestors:oe.array.isRequired};const QH=e=>{var t;return!((t=e==null?void 0:e.meta)!=null&&t.group)},lv=(e,t)=>{const n=e.split("/").slice(1);let r=t,o=0;const a=[];for(;r&&o<n.length;){const i=r.children.find(s=>s.meta.did===n[o]);r=i,o++,i&&a.push(i.meta.title)}return a.join(" / ")};function Js({blocklet:e,ancestors:t,depth:n,onRemove:r,onStart:o,onStop:a,onRestart:i,getComponentUrl:s,app:c}){var F,L,W;const{t:l}=S.useContext(Tr),[d,u]=S.useState(),[f,m]=S.useState(!1),[b,h]=S.useState(!1),[w,v]=S.useState(null),{info:g}=Qt(),[p,y]=S.useState(!1),[D,P]=S.useState(!1),{deletingBlocklets:T}=Rd();let{status:k}=e;n===1&&T.includes(e.meta.did)&&(k="deleting");const C=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),R=s(C),M=dt.isInProgress(c.status),$=dt.isInProgress(e.status);let O="";if(M||$||n===1&&T.includes(e.meta.did))O=l("blocklet.component.tip.stopBlocklet");else if((F=e.dependents)!=null&&F.length){const G=e.dependents.filter(E=>E.required);if(G.length){const E=G.map(q=>lv(q.id,c));O=l("blocklet.component.tip.requiredBy",{name:E.join(", ")})}}const I=async(...G)=>{h(!0);try{await r(...G)}catch{}h(!1),m(!1)},{usingDocker:_,usingIsolation:A}=S.useMemo(()=>{var j,z;if(!e.meta.group||e.meta.group==="static")return{usingDocker:!1,usingIsolation:!1};const G=!!(g!=null&&g.enableDocker)||((j=window.blocklet)==null?void 0:j.enableDocker),E=[...c.configs,...e.configs].find(B=>B.key==="SKIP_DOCKER"&&B.value),q=[...c.configs,...e.configs].find(B=>B.key==="USE_DOCKER"&&B.value),U=[...c.configs,...e.configs].find(B=>B.key==="SKIP_DOCKER_NETWORK"&&B.value);return{usingDocker:G?!E:!!q,usingIsolation:G&&!U&&((g==null?void 0:g.enableDockerNetwork)||((z=window.blocklet)==null?void 0:z.enableDockerNetwork))}},[e.configs,g==null?void 0:g.enableDocker,g==null?void 0:g.enableDockerNetwork,c.configs,e.meta.group]);return x.jsxs(x.Fragment,{children:[x.jsxs(jp,{display:"flex",py:2,className:"component-item",justifyContent:"flex-start",alignItems:"center",children:[x.jsxs(Re,{pl:2,width:{xs:250,sm:400},display:"flex",alignItems:"center",children:[x.jsx(M1,{blocklet:e,ancestors:t}),x.jsxs(Re,{ml:"16px",sx:{minWidth:0},children:[x.jsxs(Re,{className:"component-header",onClick:()=>u(e),children:[x.jsx(Re,{className:"component-name",children:dt.getDisplayName(e,!0)}),x.jsx(Re,{className:"component-version",children:(L=e==null?void 0:e.meta)==null?void 0:L.version})]}),x.jsxs(Re,{display:"flex",alignItems:"center",sx:{mt:"2px",ml:-.5},children:[k!=="unknown"&&x.jsx(Pv,{style:{marginLeft:4},status:k,source:e.source,progress:e.progress}),x.jsx(Aw,{style:{marginLeft:4},mode:e.mode||""}),e.mode!=="development"&&_&&x.jsx(Vn,{title:l("blocklet.usingDocker"),children:x.jsx(Re,{display:"flex",color:"primary.main",ml:1,children:x.jsx(Mn,{icon:P1})})}),e.mode!=="development"&&A&&x.jsx(Vn,{title:l("blocklet.usingIsolation"),children:x.jsx(Re,{display:"flex",color:"primary.main",ml:1,children:x.jsx(Mn,{icon:"streamline:network"})})}),!!((W=e.dependents)!=null&&W.length)&&x.jsx(Vn,{title:[`${l("common.dependents")}: `,e.dependents.map(G=>x.jsx(Re,{pl:1,children:`${lv(G.id,c)} ${G.required?`(${l("common.required")})`:""}`},G.id))],children:x.jsx(Re,{display:"flex",color:"primary.main",ml:1,children:x.jsx(Mn,{icon:"octicon:package-dependents-16"})})})]})]})]},e),AS.hasMountPoint(e.meta)&&x.jsx(jw,{blocklet:e,ancestors:t,mountPoint:C,href:R},C),x.jsx("div",{style:{flex:1}}),x.jsxs(Re,{display:"flex",alignItems:"center",children:[dt.hasStartEngine(e.meta)&&x.jsx(Vn,{title:l("common.visit"),children:x.jsx(Re,{component:"a",sx:{display:{xs:"flex",md:"none"}},target:"_blank",href:R,rel:"noopener noreferrer",children:x.jsx(an,{size:"small",children:x.jsx(Ov,{})})})}),x.jsx(Ip,{blocklet:c,component:e,onStart:o,onStop:a,disabled:!["starting","stopping"].includes(c.status)&&dt.isInProgress(c.status)}),x.jsx(an,{onClick:()=>P(!0),disabled:M||$,children:x.jsx(Sv,{fontSize:"small"})}),x.jsx(Td,{color:"error",badgeContent:"",variant:"dot",invisible:!dt.getComponentMissingConfigs(e,t[0]).length,children:x.jsx(Iv,{"data-cy":"component-actions",actions:[dt.hasStartEngine(e.meta)||QH(e)?{icon:x.jsx(R1,{}),text:l("common.detail"),onClick:()=>{u(e)}}:null,{icon:x.jsx(LS,{}),text:l("common.restart"),onClick:()=>{v({title:`${l("common.restart")} ${e.meta.title}`,description:l("blocklet.action.restartDescription"),confirm:l("blocklet.action.confirmRestart"),cancel:l("common.cancel"),onConfirm:async()=>{h(!0),await i(e),h(!1),v(null)},onCancel:()=>v(null)})},disabled:b||M||$||e.status!=="running"},{icon:x.jsx(gi,{}),text:l("common.delete"),onClick:()=>{m(!0)},disabled:M||$||!!O,tip:O},{separator:!0},{icon:x.jsx(Mn,{icon:"mdi:variable"}),onClick:()=>{y(!0)},text:x.jsx(Td,{color:"error",badgeContent:"",variant:"dot",invisible:!dt.getComponentMissingConfigs(e,t[0]).length,children:x.jsx(Re,{sx:{width:"100%"},children:l("common.environments")})}),disabled:M||$}].filter(Boolean)})})]},"actions")]},"group-not-gateway-box"),x.jsx(ji,{},"line"),x.jsx(Bp,{componentInfo:d,onClose:u,blocklet:e,app:c,depth:n}),x.jsx(Op,{blocklet:c,component:e,remove:I,onCancel:()=>m(!1),hideBtn:!0,showConfirm:f},"delete-component"),w&&x.jsx(Mo,{title:w.title,description:w.description,confirm:w.confirm,cancel:w.cancel,params:w.params,onConfirm:w.onConfirm,onCancel:w.onCancel},"confirm-setting"),p&&x.jsx(uc,{open:!0,hiddenChildren:!0,onClose:()=>y(!1),blocklet:e,ancestors:t}),D&&x.jsx(mc,{open:!0,onClose:()=>P(!1),blocklet:e,ancestors:t})]})}Js.propTypes={blocklet:oe.object.isRequired,ancestors:oe.array,depth:oe.number,onRemove:oe.func,onStart:oe.func,onStop:oe.func,onRestart:oe.func,getComponentUrl:oe.func,app:oe.object};Js.defaultProps={ancestors:[],depth:0,onRemove:()=>{},onStart:()=>{},onStop:()=>{},onRestart:()=>{},getComponentUrl:()=>window.location.origin,app:null};const Td=Nt(gv)`
704
704
  .BaseBadge-badge {
705
705
  top: ${e=>e.top*8||6}px;
706
706
  right: ${e=>e.right*8||6}px;
@@ -1 +1 @@
1
- import{a8 as t,j as c}from"./vendor-mui-core-CfA4EdRA.js";import{r as a,j as e}from"./vendor-ux-did-connect-zBIy2ulO.js";var r={},_=t;Object.defineProperty(r,"__esModule",{value:!0});var l=r.default=void 0,f=_(a()),h=c;l=r.default=(0,f.default)((0,h.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var n={},p=t;Object.defineProperty(n,"__esModule",{value:!0});var u=n.default=void 0,m=p(a()),s=c;u=n.default=(0,m.default)([(0,s.jsx)("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),(0,s.jsx)("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")],"LockPerson");var i={},C=t;Object.defineProperty(i,"__esModule",{value:!0});var v=i.default=void 0,A=C(a()),O=c;v=i.default=(0,A.default)((0,O.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail");var o={},S=t;Object.defineProperty(o,"__esModule",{value:!0});var d=o.default=void 0,j=S(a()),z=c;d=o.default=(0,j.default)((0,z.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");const $=[{value:e.WHO_CAN_ACCESS.ALL,icon:d,title:{zh:"面向所有人",en:"Open to Everyone"},description:{zh:"任何人都可以访问应用而不需要身份验证。",en:"Anyone can access this blocklet without authenticating."}},{value:e.WHO_CAN_ACCESS.INVITED,icon:v,title:{zh:"仅限受邀",en:"Invite-Only Access"},description:{zh:"仅限受邀用户可访问应用。",en:"Only invited members can access."}},{value:e.WHO_CAN_ACCESS.ADMIN,icon:u,title:{zh:"仅限拥有者 & 管理员",en:"Owner & Admin Access."},description:{zh:"仅限拥有者或管理员访问应用。",en:"Only the owner or an admin can access it."}},{value:e.WHO_CAN_ACCESS.OWNER,icon:l,title:{zh:"仅限拥有者",en:"Owner-Only Access"},description:{zh:"仅限拥有者访问应用。",en:"Only the blocklet owner can access it."}}];export{$ as A};
1
+ import{a8 as t,j as c}from"./vendor-mui-core-8zafwTFh.js";import{r as a,j as e}from"./vendor-ux-did-connect-D2f9rdKK.js";var r={},_=t;Object.defineProperty(r,"__esModule",{value:!0});var l=r.default=void 0,f=_(a()),h=c;l=r.default=(0,f.default)((0,h.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var n={},p=t;Object.defineProperty(n,"__esModule",{value:!0});var u=n.default=void 0,m=p(a()),s=c;u=n.default=(0,m.default)([(0,s.jsx)("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),(0,s.jsx)("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")],"LockPerson");var i={},C=t;Object.defineProperty(i,"__esModule",{value:!0});var v=i.default=void 0,A=C(a()),O=c;v=i.default=(0,A.default)((0,O.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail");var o={},S=t;Object.defineProperty(o,"__esModule",{value:!0});var d=o.default=void 0,j=S(a()),z=c;d=o.default=(0,j.default)((0,z.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");const $=[{value:e.WHO_CAN_ACCESS.ALL,icon:d,title:{zh:"面向所有人",en:"Open to Everyone"},description:{zh:"任何人都可以访问应用而不需要身份验证。",en:"Anyone can access this blocklet without authenticating."}},{value:e.WHO_CAN_ACCESS.INVITED,icon:v,title:{zh:"仅限受邀",en:"Invite-Only Access"},description:{zh:"仅限受邀用户可访问应用。",en:"Only invited members can access."}},{value:e.WHO_CAN_ACCESS.ADMIN,icon:u,title:{zh:"仅限拥有者 & 管理员",en:"Owner & Admin Access."},description:{zh:"仅限拥有者或管理员访问应用。",en:"Only the owner or an admin can access it."}},{value:e.WHO_CAN_ACCESS.OWNER,icon:l,title:{zh:"仅限拥有者",en:"Owner-Only Access"},description:{zh:"仅限拥有者访问应用。",en:"Only the blocklet owner can access it."}}];export{$ as A};
@@ -1,4 +1,4 @@
1
- import{j as i,ag as U,H as f,v as q}from"./vendor-mui-core-CfA4EdRA.js";import{r as c}from"./vendor-react-DEoibe3W.js";import{y as F,_ as G,ak as H,I as M}from"./vendor-utils-BNHJB5U7.js";import{u as z,j as D,Y}from"./vendor-ux-did-connect-zBIy2ulO.js";import{S as Q}from"./index-qcSTfn8X.js";import{P as $}from"./page-header-C86YQnHE.js";import{n as V,J as W,f as _}from"./index-BWx6ivvZ.js";import{c as d}from"./vendor-arcblock-CWji6U03.js";import{S as J}from"./layout-DBsOgAhr.js";import{S as X}from"./step-actions-Cmh5n2jE.js";import{S as Z}from"./button-CJk6Iiza.js";import"./vendor-hooks-DftG_2gV.js";import"./lottie-web-jYmAQWuC.js";import"./Done-CkkNExgL.js";import"./Google-3Ox3gIL3.js";import"./cloneDeep-SfcdeqEN.js";import"./logo-uploader-Bv2ZSxJV.js";import"./index-DVQCgvFb.js";import"./content-layout-JixQ7owc.js";import"./use-mobile-CcdVxg80.js";function x({children:h,bottom:E,onBottomFix:m}){const p=c.useRef(null),o=c.useRef(null),u=c.useRef(null),l=c.useRef(null),[g,C]=c.useState(!1);return c.useEffect(()=>{let a;const t=()=>{a||(a=setTimeout(()=>{o.current&&(o.current.scrollHeight>p.current.clientHeight-u.current.clientHeight?(l.current!=="fix"&&(m("fix"),l.current="fix"),C(!0)):(l.current!=="scroll"&&(m("scroll"),l.current="scroll"),C(!1))),a=null},50))};let s;return window.ResizeObserver?s=new ResizeObserver(t):window.addEventListener("resize",t),s.observe(p.current),s.observe(o.current),()=>{s?s.disconnect():window.removeEventListener("resize",t),a&&clearTimeout(a)}},[m]),i.jsxs(ee,{ref:p,className:`${g?"scroll-mode":""}`,children:[i.jsx("div",{className:"compact-context",ref:o,children:h}),i.jsx("div",{className:"fix-container",ref:u,children:E})]})}const ee=U.div`
1
+ import{j as i,ag as U,H as f,v as q}from"./vendor-mui-core-8zafwTFh.js";import{r as c}from"./vendor-react-DEoibe3W.js";import{y as F,_ as G,ak as H,I as M}from"./vendor-utils-BNHJB5U7.js";import{u as z,j as D,Y}from"./vendor-ux-did-connect-D2f9rdKK.js";import{S as Q}from"./index-NRj7GpkA.js";import{P as $}from"./page-header-DWEFpJCI.js";import{n as V,J as W,f as _}from"./index-CVvs-hHV.js";import{c as d}from"./vendor-arcblock-JGYMkSwE.js";import{S as J}from"./layout-DToDlHEw.js";import{S as X}from"./step-actions-YXGJQMCB.js";import{S as Z}from"./button-n0UOGLKx.js";import"./vendor-hooks-DftG_2gV.js";import"./lottie-web-jYmAQWuC.js";import"./Done-ClKUqna8.js";import"./Google-nw2S1BAe.js";import"./cloneDeep-SfcdeqEN.js";import"./logo-uploader-CYJXgjdA.js";import"./index-DVQCgvFb.js";import"./content-layout-AHDEW7YQ.js";import"./use-mobile-KRs0Yv73.js";function x({children:h,bottom:E,onBottomFix:m}){const p=c.useRef(null),o=c.useRef(null),u=c.useRef(null),l=c.useRef(null),[g,C]=c.useState(!1);return c.useEffect(()=>{let a;const t=()=>{a||(a=setTimeout(()=>{o.current&&(o.current.scrollHeight>p.current.clientHeight-u.current.clientHeight?(l.current!=="fix"&&(m("fix"),l.current="fix"),C(!0)):(l.current!=="scroll"&&(m("scroll"),l.current="scroll"),C(!1))),a=null},50))};let s;return window.ResizeObserver?s=new ResizeObserver(t):window.addEventListener("resize",t),s.observe(p.current),s.observe(o.current),()=>{s?s.disconnect():window.removeEventListener("resize",t),a&&clearTimeout(a)}},[m]),i.jsxs(ee,{ref:p,className:`${g?"scroll-mode":""}`,children:[i.jsx("div",{className:"compact-context",ref:o,children:h}),i.jsx("div",{className:"fix-container",ref:u,children:E})]})}const ee=U.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;