@abtnode/blocklet-services 1.16.29-beta-ec04c755 → 1.16.29-beta-2eaf40bc

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 (226) hide show
  1. package/api/index.js +6 -0
  2. package/api/libs/push-kit/index.js +1 -1
  3. package/api/routes/openapi.js +145 -0
  4. package/api/routes/opencomponent.js +141 -0
  5. package/api/routes/user.js +21 -21
  6. package/dist/assets/{Add-CbycMEbf.js → Add-C5zWPWbi.js} +1 -1
  7. package/dist/assets/{AddBox-DTM_80hR.js → AddBox-C4A7DDm4.js} +1 -1
  8. package/dist/assets/{Alert-YB1c66Kp.js → Alert-D91U5h--.js} +1 -1
  9. package/dist/assets/{ArrowDropDown-CyWdnmLZ.js → ArrowDropDown-Cq32DOpt.js} +1 -1
  10. package/dist/assets/{Avatar-D9rpNCqX.js → Avatar-XXXVLUFk.js} +1 -1
  11. package/dist/assets/{ButtonGroup-DGBxXxUQ.js → ButtonGroup-k3SZjeUa.js} +1 -1
  12. package/dist/assets/{CheckCircle-CRnx5xGs.js → CheckCircle-CbXxG2JL.js} +1 -1
  13. package/dist/assets/ChevronRight-BKcNccG9.js +1 -0
  14. package/dist/assets/{Close-Bn601fxJ.js → Close-CdBP5F4J.js} +1 -1
  15. package/dist/assets/{CloseOutlined-CptcS6gg.js → CloseOutlined-Crg0BDr4.js} +1 -1
  16. package/dist/assets/{Delete-Cx0Gf7gM.js → Delete-DlfFien6.js} +1 -1
  17. package/dist/assets/{DeleteOutline-BzwVBrxY.js → DeleteOutline-De4xAGvs.js} +1 -1
  18. package/dist/assets/{Done-B1UDtldR.js → Done-DO1tfb2_.js} +1 -1
  19. package/dist/assets/{Download-BwTZ49dl.js → Download-CVseEK0o.js} +1 -1
  20. package/dist/assets/{Edit-DYPDizZY.js → Edit-DOJCHJ5p.js} +1 -1
  21. package/dist/assets/{EditIcon-DrRjhUgU.js → EditIcon-Bg4AkV00.js} +1 -1
  22. package/dist/assets/{Error-BS_LdXbq.js → Error-CQmWghPs.js} +1 -1
  23. package/dist/assets/{ExpandMore-CKKkjQcY.js → ExpandMore-DD2GykPj.js} +1 -1
  24. package/dist/assets/{FilterList-MtVGweDW.js → FilterList-QafrkXbd.js} +1 -1
  25. package/dist/assets/{FormControl-D32uXM3n.js → FormControl-Kt4xANtI.js} +1 -1
  26. package/dist/assets/{FormControlLabel-e33RviPs.js → FormControlLabel-B6ISinfm.js} +1 -1
  27. package/dist/assets/{FormGroup-BLcBQcJn.js → FormGroup-BEMyIGSj.js} +1 -1
  28. package/dist/assets/{Google-Duvh4o_V.js → Google-DGP2JaKw.js} +3 -3
  29. package/dist/assets/{Hidden-BLWrU9rp.js → Hidden-kl5Tbw1B.js} +1 -1
  30. package/dist/assets/{InfoOutlined-gB9H6_Ii.js → InfoOutlined-BRuBRFbl.js} +1 -1
  31. package/dist/assets/{InputAdornment-BXT7PVpt.js → InputAdornment-C5IWgB4u.js} +1 -1
  32. package/dist/assets/{InputLabel-CWy9m12B.js → InputLabel-DbdmcDbJ.js} +1 -1
  33. package/dist/assets/{LastPage-CDtyKz24.js → LastPage-DXISIPs8.js} +1 -1
  34. package/dist/assets/{Launch-CzAofQSz.js → Launch-CDcio2Tm.js} +1 -1
  35. package/dist/assets/{LaunchOutlined-CeH0d6B4.js → LaunchOutlined-D8a8pCOt.js} +1 -1
  36. package/dist/assets/{Link-DD0QeQw6.js → Link-DFzOJFD-.js} +1 -1
  37. package/dist/assets/{ListItemText-BFKiv21F.js → ListItemText-Bnnk7Gbj.js} +1 -1
  38. package/dist/assets/{LoadingButton-Dz5AXKd9.js → LoadingButton-DGVicOWa.js} +1 -1
  39. package/dist/assets/{LockIcon-B487phFo.js → LockIcon-CTWJWfSc.js} +1 -1
  40. package/dist/assets/{Loop-BYS1LLqK.js → Loop-CbV2fFUd.js} +1 -1
  41. package/dist/assets/{MoreVert-CO-YEIdW.js → MoreVert-er-bltGF.js} +1 -1
  42. package/dist/assets/{OpenInNew-BhWlEURK.js → OpenInNew-Bu6iI6eA.js} +1 -1
  43. package/dist/assets/{Pagination-CydZ_ZS3.js → Pagination-Dz7kgZlB.js} +1 -1
  44. package/dist/assets/{PlayArrow-Cwl8HhMy.js → PlayArrow-2r36AAmk.js} +1 -1
  45. package/dist/assets/{QuestionMarkCircle-P8-fp7ZK.js → QuestionMarkCircle-CoIXItlb.js} +1 -1
  46. package/dist/assets/{RadioGroup-Betu38Nc.js → RadioGroup-C7j1KJ7y.js} +1 -1
  47. package/dist/assets/{Search-DJGc3pyw.js → Search-CMyGk9R2.js} +1 -1
  48. package/dist/assets/{Select-BtAvJtd9.js → Select-BeNQ99oP.js} +2 -2
  49. package/dist/assets/{ServerLogo-D8TxN4Jj.js → ServerLogo-D12k9g2u.js} +1 -1
  50. package/dist/assets/{Skeleton-DVKyXmm6.js → Skeleton-FXGSJdkA.js} +1 -1
  51. package/dist/assets/{Slider-BVffQOhx.js → Slider-GjDHfyBj.js} +1 -1
  52. package/dist/assets/{Stepper-BtyxP6gd.js → Stepper-BF6lz4ut.js} +1 -1
  53. package/dist/assets/{TextField-ZfIhKMlW.js → TextField-D3XEyFR4.js} +1 -1
  54. package/dist/assets/{Toolbar-_kp5UmF_.js → Toolbar-_9it32pJ.js} +1 -1
  55. package/dist/assets/{ViewList-CTVORyRy.js → ViewList-BhIE_M4V.js} +1 -1
  56. package/dist/assets/{access-control-D13qKQRZ.js → access-control-BWh_6uO-.js} +1 -1
  57. package/dist/assets/actions-DLO5dlyV.js +1 -0
  58. package/dist/assets/{add-component-core-BsClbBJx.js → add-component-core-C3OBXrft.js} +1 -1
  59. package/dist/assets/{add-resource-C27tcyN6.js → add-resource-DdlMvNYe.js} +1 -1
  60. package/dist/assets/{addon-BR28jmtN.js → addon-1j40gf6h.js} +1 -1
  61. package/dist/assets/{analytics-Bf2T1Aa5.js → analytics-DVd3xO2s.js} +8 -8
  62. package/dist/assets/api-C37A8mCN.js +1 -0
  63. package/dist/assets/ar-DAUz5_Ej.js +1 -0
  64. package/dist/assets/audit-logs-CJh_A9OZ.js +58 -0
  65. package/dist/assets/{button-D8ZxWj_Y.js → button-2f4tapJk.js} +1 -1
  66. package/dist/assets/{click-to-copy-BsmI9ksY.js → click-to-copy-CNizZfqS.js} +1 -1
  67. package/dist/assets/{complete-0EoJlSKH.js → complete-CTg4NtH_.js} +2 -2
  68. package/dist/assets/{component-BeTHUdSb.js → component-DyLPRRkR.js} +4 -1
  69. package/dist/assets/{config-Bc22LHzP.js → config-BBl1Og8k.js} +2 -2
  70. package/dist/assets/{config-BjGpyxSf.js → config-Cl9yfIWh.js} +1 -1
  71. package/dist/assets/{config-navigation-CiFM3Pkt.js → config-navigation-RZ9QpkFv.js} +2 -2
  72. package/dist/assets/{config-space-u4RHkocA.js → config-space-DTE8U19b.js} +1 -1
  73. package/dist/assets/{confirm-DZzubb9G.js → confirm-CD6_CMUq.js} +1 -1
  74. package/dist/assets/{connect-B84lJikd.js → connect-B-qpRVvn.js} +1 -1
  75. package/dist/assets/{connect-Bs0eOgUl.js → connect-DDELE721.js} +1 -1
  76. package/dist/assets/{connect-to-Dg702AqR.js → connect-to-DMAPIkc9.js} +1 -1
  77. package/dist/assets/{content-layout-jcciEmtz.js → content-layout-CK5XQfmW.js} +1 -1
  78. package/dist/assets/{dashboard-D5zK6xk2.js → dashboard-BOQEjKT8.js} +3 -3
  79. package/dist/assets/de-JXmbvsP-.js +1 -0
  80. package/dist/assets/{did-address-eujShTX2.js → did-address-GzRMEyk7.js} +1 -1
  81. package/dist/assets/domain-C3D9kcXD.js +9 -0
  82. package/dist/assets/domain-list-BRcBrFVB.js +15 -0
  83. package/dist/assets/es-D_uIRKnu.js +1 -0
  84. package/dist/assets/{exchange-passport-B9EVUjA6.js → exchange-passport-B9ZrHETZ.js} +1 -1
  85. package/dist/assets/{fallback-C_4si_rV.js → fallback-rg9fefdL.js} +1 -1
  86. package/dist/assets/{format-error-CjSMm5Vi.js → format-error-B3RYdl6q.js} +1 -1
  87. package/dist/assets/fr-BocLckhV.js +1 -0
  88. package/dist/assets/{fuel-C4na8ybQ.js → fuel-BDMvUxVC.js} +1 -1
  89. package/dist/assets/{fullpage-Dw1AcFTi.js → fullpage-DFMbQYE_.js} +1 -1
  90. package/dist/assets/hi-Bn38t0nX.js +1 -0
  91. package/dist/assets/home-YZ2dUhxo.js +1 -0
  92. package/dist/assets/id-DuC9mOr4.js +1 -0
  93. package/dist/assets/iframe-s25HWReH.js +1 -0
  94. package/dist/assets/{index-CS3NeNhP.js → index-5qacoeSv.js} +1 -1
  95. package/dist/assets/{index-T01X8GVg.js → index-BCpZXkUS.js} +1 -1
  96. package/dist/assets/index-BEbMx7tF.js +54 -0
  97. package/dist/assets/{index-QkFfPTY0.js → index-BPSr4f2j.js} +1 -1
  98. package/dist/assets/{index-DlS6Nfdi.js → index-BU9mgEVG.js} +1 -1
  99. package/dist/assets/index-BfhVorqV.js +1290 -0
  100. package/dist/assets/{index-DssKTsr4.js → index-Bva9FLKW.js} +1 -1
  101. package/dist/assets/{index-MrjkTnwO.js → index-CGXAjTXD.js} +5 -5
  102. package/dist/assets/index-CHJwugzh.js +268 -0
  103. package/dist/assets/{index-CKSMFqMY.js → index-CHbscbku.js} +1 -1
  104. package/dist/assets/{index-BdOmFQx3.js → index-CcddEj1V.js} +1 -1
  105. package/dist/assets/index-Ce3CP3Jp.js +721 -0
  106. package/dist/assets/{index-D3_-uxGg.js → index-CscyFLCJ.js} +1 -1
  107. package/dist/assets/{index-DcyNKKFa.js → index-CvOK9BmX.js} +1 -1
  108. package/dist/assets/{index-CsJ48DX9.js → index-Cx1j9azw.js} +1 -1
  109. package/dist/assets/{index-BOAwzMIx.js → index-D12KUiCG.js} +1 -1
  110. package/dist/assets/{index-I0PotiiS.js → index-DJLK29SJ.js} +1 -1
  111. package/dist/assets/{index-bXSSsGyP.js → index-DMq0_62n.js} +7 -7
  112. package/dist/assets/{index-B3fl5ZNI.js → index-DOU4d3bN.js} +23 -23
  113. package/dist/assets/{index-BCA-5NcY.js → index-DU7-35nh.js} +1 -1
  114. package/dist/assets/{index-B3IAFR-c.js → index-Db5U7Aba.js} +1 -1
  115. package/dist/assets/{index-XerBd5gM.js → index-Dcp0-2H6.js} +1 -1
  116. package/dist/assets/{index-CoTilh_C.js → index-Dn7MhkOZ.js} +2 -2
  117. package/dist/assets/{index-BmM6WRMt.js → index-UmXxvIz7.js} +1 -1
  118. package/dist/assets/{index-DOYpYIlu.js → index-VRudjsk_.js} +12 -12
  119. package/dist/assets/{index-CpmTHBat.js → index-WDF_phnR.js} +1 -1
  120. package/dist/assets/{index-CCfWoc62.js → index-Xh4BYwzS.js} +1 -1
  121. package/dist/assets/{index-_rl2L_ks.js → index-_y2ZXCMC.js} +1 -1
  122. package/dist/assets/{index-WNkObbJS.js → index-nyOsFIwy.js} +1 -1
  123. package/dist/assets/{index-D5HpWHRb.js → index-u_IDQFrq.js} +1 -1
  124. package/dist/assets/{index.es-CSkvA6BL.js → index.es-BySfVRax.js} +1 -1
  125. package/dist/assets/{index.esm-B1JHctvs.js → index.esm-Cpbu1bqz.js} +1 -1
  126. package/dist/assets/{invitation-BQDJkTqd.js → invitation-ZiYOpo0m.js} +1 -1
  127. package/dist/assets/{invite-B09RGp8m.js → invite-CP_9mlTp.js} +1 -1
  128. package/dist/assets/{issue-passport-B_jBeR91.js → issue-passport-OdsEQRgF.js} +1 -1
  129. package/dist/assets/item-B9vXmxNy.js +1 -0
  130. package/dist/assets/ja-B2J7-ZGM.js +1 -0
  131. package/dist/assets/{jss-plugin-props-sort.esm-CPTwTzr4.js → jss-plugin-props-sort.esm-InWevx1Y.js} +1 -1
  132. package/dist/assets/ko-TAMb2jXz.js +1 -0
  133. package/dist/assets/{launch-result-message-DwBMK891.js → launch-result-message-Z1C1sG3K.js} +1 -1
  134. package/dist/assets/{layout-CvQrD_gZ.js → layout-BJYUy5aS.js} +1 -1
  135. package/dist/assets/{list-header-ZAiNp7fJ.js → list-header-7mHFR-6j.js} +1 -1
  136. package/dist/assets/localization-DH4Rcoxd.js +1 -0
  137. package/dist/assets/{log-C6ON7x0p.js → log-D0ihnCPe.js} +1 -1
  138. package/dist/assets/{login-wWHcg30F.js → login-BJ99c8Da.js} +1 -1
  139. package/dist/assets/{login-oauth-callback-CQ285Vg9.js → login-oauth-callback-DXPZbXE8.js} +1 -1
  140. package/dist/assets/logo-uploader-Cb8u4LYv.js +122 -0
  141. package/dist/assets/{lost-passport-CexiR3Fy.js → lost-passport-PezCqF0f.js} +3 -3
  142. package/dist/assets/{lottie-FwjuTraW.js → lottie-BCG4dny2.js} +1 -1
  143. package/dist/assets/notifications-CKxrvr1-.js +62 -0
  144. package/dist/assets/{open-window-hBWl30km.js → open-window-CuGAzF2Z.js} +1 -1
  145. package/dist/assets/overview-BSBWgzbj.js +12 -0
  146. package/dist/assets/{page-header-CiI4ihlj.js → page-header-C5ecJ6Qd.js} +1 -1
  147. package/dist/assets/{permission-DPWxsEsJ.js → permission-BEPRmEw3.js} +1 -1
  148. package/dist/assets/preferences-knw56gSD.js +1 -0
  149. package/dist/assets/pt-DAmg1w9n.js +1 -0
  150. package/dist/assets/publish-resource-D_KlfXTF.js +1 -0
  151. package/dist/assets/{react-CPynQ78n.js → react-Di5TTO9l.js} +3 -3
  152. package/dist/assets/{redux-Dzi5_x1P.js → redux-tOVF_oDT.js} +1 -1
  153. package/dist/assets/resource-dialog-5vdlaAuh.js +57 -0
  154. package/dist/assets/ru-BqJl8PYs.js +1 -0
  155. package/dist/assets/{selector-f-DWZqru.js → selector-CNsCKDRb.js} +1 -1
  156. package/dist/assets/session-Cf-ZqG4P.js +1 -0
  157. package/dist/assets/setup-CbG6rF4U.js +14 -0
  158. package/dist/assets/{shorten-label-BlEZNxcS.js → shorten-label-CunJMulX.js} +1 -1
  159. package/dist/assets/{slicedToArray-Bu31_H15.js → slicedToArray-C9-uQLEN.js} +1 -1
  160. package/dist/assets/{spaces-5xok4VJR.js → spaces-Dm4toCmL.js} +1 -1
  161. package/dist/assets/{start-B0Kjrb_2.js → start-CrrzSOx-.js} +1 -1
  162. package/dist/assets/{step-actions-hcblvpy4.js → step-actions-BkxasUm3.js} +1 -1
  163. package/dist/assets/{studio-DZY4RG0a.js → studio-Cz2NXhoj.js} +1 -1
  164. package/dist/assets/{switch-control-CQFuZj13.js → switch-control-BOre_YDJ.js} +1 -1
  165. package/dist/assets/th-CGcwcZWK.js +1 -0
  166. package/dist/assets/{toUpper-1-4t-eKJ.js → toUpper-6wIhNvu3.js} +1 -1
  167. package/dist/assets/{transfer-CMipwPHo.js → transfer-DQPf7r9j.js} +1 -1
  168. package/dist/assets/{uniqBy-BUeS57o_.js → uniqBy-C3O4Rmks.js} +1 -1
  169. package/dist/assets/{unsubscribe-DPIZA8eJ.js → unsubscribe-DhdgpWxi.js} +1 -1
  170. package/dist/assets/{url-join-CumQIGHb.js → url-join-DH_b1eAH.js} +1 -1
  171. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-BlvTBdcE.js → use-blocklet-info-for-connect-did-spaces-gtr1x-_o.js} +1 -1
  172. package/dist/assets/{use-mobile-VmAoH7cf.js → use-mobile-CnnusHmf.js} +1 -1
  173. package/dist/assets/{useAsync-CHwNvR5w.js → useAsync-6Zzjy7PW.js} +1 -1
  174. package/dist/assets/{useFormControl-CKIqQYYi.js → useFormControl-DUzGwbSY.js} +1 -1
  175. package/dist/assets/{useLocalStorage-BwTfVICM.js → useLocalStorage-B-I-NsSz.js} +1 -1
  176. package/dist/assets/{useSetState-C2Fy5a5C.js → useSetState-Be-I2Gl-.js} +1 -1
  177. package/dist/assets/{useSlot-qUg8hMqb.js → useSlot-LBVvloQJ.js} +1 -1
  178. package/dist/assets/user-center-BXOQaeTd.js +1 -0
  179. package/dist/assets/{user-sessions-CF43osXe.js → user-sessions-CdgU8G0J.js} +1 -1
  180. package/dist/assets/{util-BgtPa_LA.js → util-CoWq6oMk.js} +1 -1
  181. package/dist/assets/vi-lYszmNr_.js +1 -0
  182. package/dist/assets/wrap-locale-Cn1jipF7.js +1 -0
  183. package/dist/assets/zh-DMGrvlv0.js +2 -0
  184. package/dist/assets/zh-tw-BkGc-T4k.js +1 -0
  185. package/dist/index.html +1 -1
  186. package/dist/service-worker.js +1 -1
  187. package/package.json +27 -26
  188. package/dist/assets/ChevronRight-CQFbCeFz.js +0 -1
  189. package/dist/assets/MoreHoriz-DXVNYHju.js +0 -1
  190. package/dist/assets/actions-C7XEfs3G.js +0 -1
  191. package/dist/assets/api-CTyhvZ_-.js +0 -1
  192. package/dist/assets/ar-C47j1nYN.js +0 -1
  193. package/dist/assets/audit-logs-DJspdLu1.js +0 -58
  194. package/dist/assets/de-Cku7GZWy.js +0 -1
  195. package/dist/assets/domain-dHNHfYFB.js +0 -9
  196. package/dist/assets/domain-list-BgPUULga.js +0 -12
  197. package/dist/assets/es-DQdPvLwC.js +0 -1
  198. package/dist/assets/fr-BANF9nk5.js +0 -1
  199. package/dist/assets/hi-3nYHQeSr.js +0 -1
  200. package/dist/assets/home-acB4wYr7.js +0 -1
  201. package/dist/assets/id-C4ULMWl7.js +0 -1
  202. package/dist/assets/iframe-D_Wekpko.js +0 -1
  203. package/dist/assets/index-CFGAX9C8.js +0 -719
  204. package/dist/assets/index-D2UR_i8S.js +0 -1291
  205. package/dist/assets/index-DcPK4-8I.js +0 -54
  206. package/dist/assets/index-GrtnklOv.js +0 -268
  207. package/dist/assets/item-CdwwMeVt.js +0 -1
  208. package/dist/assets/ja-DUtPzStV.js +0 -1
  209. package/dist/assets/ko-DHayH4OX.js +0 -1
  210. package/dist/assets/localization-DWMiEH8J.js +0 -1
  211. package/dist/assets/logo-uploader-BGESEvUM.js +0 -122
  212. package/dist/assets/notifications-DX9G-nKj.js +0 -62
  213. package/dist/assets/overview-LbqVzqfg.js +0 -12
  214. package/dist/assets/preferences-CCwHkP3g.js +0 -1
  215. package/dist/assets/pt-CtekrXAD.js +0 -1
  216. package/dist/assets/publish-resource-B_tonO3N.js +0 -1
  217. package/dist/assets/resource-dialog-CWv37rT1.js +0 -57
  218. package/dist/assets/ru-aujlmrJM.js +0 -1
  219. package/dist/assets/session-ClfaP8Dd.js +0 -1
  220. package/dist/assets/setup-B9T0hKlN.js +0 -14
  221. package/dist/assets/th-WxIih8J2.js +0 -1
  222. package/dist/assets/user-center-Bk4t_jqb.js +0 -1
  223. package/dist/assets/vi-DgBgwcpZ.js +0 -1
  224. package/dist/assets/wrap-locale-DD1QDW-M.js +0 -1
  225. package/dist/assets/zh-g9dUotWi.js +0 -2
  226. package/dist/assets/zh-tw-CoNRcnfg.js +0 -1
@@ -1 +1 @@
1
- import{r as S,cY as St,ga as pe,ci as Lt,ce as at,cz as wt,cI as Ge,cJ as $e,gb as Je,aG as c,cL as Te,aB as Pt,aC as Ct,aI as oe,j as P,aD as J,aE as B,cb as ot,ca as nt,ch as lt,ew as dt,cH as $t,aF as Tt,aH as Y,aJ as _t}from"./index-D2UR_i8S.js";import{c as Rt}from"./useSlot-qUg8hMqb.js";const It={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},At=It;function zt(e,t,a=(l,d)=>l===d){return e.length===t.length&&e.every((l,d)=>a(l,t[d]))}const Mt=2;function pt(e,t){return e-t}function st(e,t){var a;const{index:l}=(a=e.reduce((d,L,C)=>{const m=Math.abs(t-L);return d===null||m<d.distance||m===d.distance?{distance:m,index:C}:d},null))!=null?a:{};return l}function Le(e,t){if(t.current!==void 0&&e.changedTouches){const a=e;for(let l=0;l<a.changedTouches.length;l+=1){const d=a.changedTouches[l];if(d.identifier===t.current)return{x:d.clientX,y:d.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function _e(e,t,a){return(e-t)*100/(a-t)}function Nt(e,t,a){return(a-t)*e+t}function Et(e){if(Math.abs(e)<1){const a=e.toExponential().split("e-"),l=a[0].split(".")[1];return(l?l.length:0)+parseInt(a[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Vt(e,t,a){const l=Math.round((e-a)/t)*t+a;return Number(l.toFixed(Et(t)))}function it({values:e,newValue:t,index:a}){const l=e.slice();return l[a]=t,l.sort(pt)}function we({sliderRef:e,activeIndex:t,setActive:a}){var l,d;const L=$e(e.current);if(!((l=e.current)!=null&&l.contains(L.activeElement))||Number(L==null||(d=L.activeElement)==null?void 0:d.getAttribute("data-index"))!==t){var C;(C=e.current)==null||C.querySelector(`[type="range"][data-index="${t}"]`).focus()}a&&a(t)}function Pe(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?zt(e,t):!1}const Ht={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Ft=e=>e;let Ce;function ut(){return Ce===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ce=CSS.supports("touch-action","none"):Ce=!0),Ce}function jt(e){const{"aria-labelledby":t,defaultValue:a,disabled:l=!1,disableSwap:d=!1,isRtl:L=!1,marks:C=!1,max:m=100,min:f=0,name:U,onChange:ne,onChangeCommitted:K,orientation:Q="horizontal",rootRef:fe,scale:le=Ft,step:M=1,shiftStep:se=10,tabIndex:be,value:me}=e,V=S.useRef(),[W,j]=S.useState(-1),[ve,O]=S.useState(-1),[ie,ue]=S.useState(!1),X=S.useRef(0),[_,Z]=St({controlled:me,default:a??f,name:"Slider"}),N=ne&&((r,o,n)=>{const i=r.nativeEvent||r,u=new i.constructor(i.type,i);Object.defineProperty(u,"target",{writable:!0,value:{value:o,name:U}}),ne(u,o,n)}),q=Array.isArray(_);let y=q?_.slice().sort(pt):[_];y=y.map(r=>r==null?f:pe(r,f,m));const ce=C===!0&&M!==null?[...Array(Math.floor((m-f)/M)+1)].map((r,o)=>({value:f+M*o})):C||[],g=ce.map(r=>r.value),{isFocusVisibleRef:R,onBlur:Re,onFocus:Ie,ref:Ae}=Lt(),[he,G]=S.useState(-1),w=S.useRef(),ge=at(Ae,w),ye=at(fe,ge),ee=r=>o=>{var n;const i=Number(o.currentTarget.getAttribute("data-index"));Ie(o),R.current===!0&&G(i),O(i),r==null||(n=r.onFocus)==null||n.call(r,o)},te=r=>o=>{var n;Re(o),R.current===!1&&G(-1),O(-1),r==null||(n=r.onBlur)==null||n.call(r,o)},ke=(r,o)=>{const n=Number(r.currentTarget.getAttribute("data-index")),i=y[n],u=g.indexOf(i);let s=o;if(ce&&M==null){const z=g[g.length-1];s>z?s=z:s<g[0]?s=g[0]:s=s<i?g[u-1]:g[u+1]}if(s=pe(s,f,m),q){d&&(s=pe(s,y[n-1]||-1/0,y[n+1]||1/0));const z=s;s=it({values:y,newValue:s,index:n});let E=n;d||(E=s.indexOf(z)),we({sliderRef:w,activeIndex:E})}Z(s),G(n),N&&!Pe(s,_)&&N(r,s,n),K&&K(r,s)},ze=r=>o=>{var n;if(M!==null){const i=Number(o.currentTarget.getAttribute("data-index")),u=y[i];let s=null;(o.key==="ArrowLeft"||o.key==="ArrowDown")&&o.shiftKey||o.key==="PageDown"?s=Math.max(u-se,f):((o.key==="ArrowRight"||o.key==="ArrowUp")&&o.shiftKey||o.key==="PageUp")&&(s=Math.min(u+se,m)),s!==null&&(ke(o,s),o.preventDefault())}r==null||(n=r.onKeyDown)==null||n.call(r,o)};wt(()=>{if(l&&w.current.contains(document.activeElement)){var r;(r=document.activeElement)==null||r.blur()}},[l]),l&&W!==-1&&j(-1),l&&he!==-1&&G(-1);const Me=r=>o=>{var n;(n=r.onChange)==null||n.call(r,o),ke(o,o.target.valueAsNumber)},xe=S.useRef();let H=Q;L&&Q==="horizontal"&&(H+="-reverse");const v=({finger:r,move:o=!1})=>{const{current:n}=w,{width:i,height:u,bottom:s,left:z}=n.getBoundingClientRect();let E;H.indexOf("vertical")===0?E=(s-r.y)/u:E=(r.x-z)/i,H.indexOf("-reverse")!==-1&&(E=1-E);let p;if(p=Nt(E,f,m),M)p=Vt(p,M,f);else{const ae=st(g,p);p=g[ae]}p=pe(p,f,m);let $=0;if(q){o?$=xe.current:$=st(y,p),d&&(p=pe(p,y[$-1]||-1/0,y[$+1]||1/0));const ae=p;p=it({values:y,newValue:p,index:$}),d&&o||($=p.indexOf(ae),xe.current=$)}return{newValue:p,activeIndex:$}},b=Ge(r=>{const o=Le(r,V);if(!o)return;if(X.current+=1,r.type==="mousemove"&&r.buttons===0){I(r);return}const{newValue:n,activeIndex:i}=v({finger:o,move:!0});we({sliderRef:w,activeIndex:i,setActive:j}),Z(n),!ie&&X.current>Mt&&ue(!0),N&&!Pe(n,_)&&N(r,n,i)}),I=Ge(r=>{const o=Le(r,V);if(ue(!1),!o)return;const{newValue:n}=v({finger:o,move:!0});j(-1),r.type==="touchend"&&O(-1),K&&K(r,n),V.current=void 0,A()}),D=Ge(r=>{if(l)return;ut()||r.preventDefault();const o=r.changedTouches[0];o!=null&&(V.current=o.identifier);const n=Le(r,V);if(n!==!1){const{newValue:u,activeIndex:s}=v({finger:n});we({sliderRef:w,activeIndex:s,setActive:j}),Z(u),N&&!Pe(u,_)&&N(r,u,s)}X.current=0;const i=$e(w.current);i.addEventListener("touchmove",b,{passive:!0}),i.addEventListener("touchend",I,{passive:!0})}),A=S.useCallback(()=>{const r=$e(w.current);r.removeEventListener("mousemove",b),r.removeEventListener("mouseup",I),r.removeEventListener("touchmove",b),r.removeEventListener("touchend",I)},[I,b]);S.useEffect(()=>{const{current:r}=w;return r.addEventListener("touchstart",D,{passive:ut()}),()=>{r.removeEventListener("touchstart",D),A()}},[A,D]),S.useEffect(()=>{l&&A()},[l,A]);const Ne=r=>o=>{var n;if((n=r.onMouseDown)==null||n.call(r,o),l||o.defaultPrevented||o.button!==0)return;o.preventDefault();const i=Le(o,V);if(i!==!1){const{newValue:s,activeIndex:z}=v({finger:i});we({sliderRef:w,activeIndex:z,setActive:j}),Z(s),N&&!Pe(s,_)&&N(o,s,z)}X.current=0;const u=$e(w.current);u.addEventListener("mousemove",b,{passive:!0}),u.addEventListener("mouseup",I)},x=_e(q?y[0]:f,f,m),re=_e(y[y.length-1],f,m)-x,Ee=(r={})=>{const o=Je(r),n={onMouseDown:Ne(o||{})},i=c({},o,n);return c({},r,{ref:ye},i)},Ve=r=>o=>{var n;(n=r.onMouseOver)==null||n.call(r,o);const i=Number(o.currentTarget.getAttribute("data-index"));O(i)},He=r=>o=>{var n;(n=r.onMouseLeave)==null||n.call(r,o),O(-1)};return{active:W,axis:H,axisProps:Ht,dragging:ie,focusedThumbIndex:he,getHiddenInputProps:(r={})=>{var o;const n=Je(r),i={onChange:Me(n||{}),onFocus:ee(n||{}),onBlur:te(n||{}),onKeyDown:ze(n||{})},u=c({},n,i);return c({tabIndex:be,"aria-labelledby":t,"aria-orientation":Q,"aria-valuemax":le(m),"aria-valuemin":le(f),name:U,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(o=e.step)!=null?o:void 0,disabled:l},r,u,{style:c({},At,{direction:L?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ee,getThumbProps:(r={})=>{const o=Je(r),n={onMouseOver:Ve(o||{}),onMouseLeave:He(o||{})};return c({},r,o,n)},marks:ce,open:ve,range:q,rootRef:ye,trackLeap:re,trackOffset:x,values:y,getThumbStyle:r=>({pointerEvents:W!==-1&&W!==r?"none":void 0})}}const Ot=e=>!e||!Te(e);function Dt(e){return Ct("MuiSlider",e)}const Yt=Pt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),T=Yt,Bt=e=>{const{open:t}=e;return{offset:oe(t&&T.valueLabelOpen),circle:T.valueLabelCircle,label:T.valueLabelLabel}};function Ut(e){const{children:t,className:a,value:l}=e,d=Bt(e);return t?S.cloneElement(t,{className:oe(t.props.className)},P.jsxs(S.Fragment,{children:[t.props.children,P.jsx("span",{className:oe(d.offset,a),"aria-hidden":!0,children:P.jsx("span",{className:d.circle,children:P.jsx("span",{className:d.label,children:l})})})]})):null}const Kt=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"],Wt=Rt();function ct(e){return e}const Xt=J("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`color${B(a.color)}`],a.size!=="medium"&&t[`size${B(a.size)}`],a.marked&&t.marked,a.orientation==="vertical"&&t.vertical,a.track==="inverted"&&t.trackInverted,a.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${T.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${T.dragging}`]:{[`& .${T.thumb}, & .${T.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{color:(e.vars||e).palette[a].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),qt=J("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Gt=J("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a,track:"inverted"},style:c({},e.vars?{backgroundColor:e.vars.palette.Slider[`${a}Track`],borderColor:e.vars.palette.Slider[`${a}Track`]}:c({backgroundColor:ot(e.palette[a].main,.62),borderColor:ot(e.palette[a].main,.62)},e.applyStyles("dark",{backgroundColor:nt(e.palette[a].main,.5)}),e.applyStyles("dark",{borderColor:nt(e.palette[a].main,.5)})))}))]}}),Jt=J("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.thumb,t[`thumbColor${B(a.color)}`],a.size!=="medium"&&t[`thumbSize${B(a.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${T.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{[`&:hover, &.${T.focusVisible}`]:c({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${lt(e.palette[a].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${T.active}`]:c({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${lt(e.palette[a].main,.16)}`})}}))]}}),Qt=J(Ut,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>c({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Zt=J("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>dt(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:a}=e;return[t.mark,a&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),er=J("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>dt(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>c({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),tr=e=>{const{disabled:t,dragging:a,marked:l,orientation:d,track:L,classes:C,color:m,size:f}=e,U={root:["root",t&&"disabled",a&&"dragging",l&&"marked",d==="vertical"&&"vertical",L==="inverted"&&"trackInverted",L===!1&&"trackFalse",m&&`color${B(m)}`,f&&`size${B(f)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",f&&`thumbSize${B(f)}`,m&&`thumbColor${B(m)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return _t(U,Dt,C)},rr=({children:e})=>e,ar=S.forwardRef(function(t,a){var l,d,L,C,m,f,U,ne,K,Q,fe,le,M,se,be,me,V,W,j,ve,O,ie,ue,X;const _=Wt({props:t,name:"MuiSlider"}),Z=$t(),{"aria-label":N,"aria-valuetext":q,"aria-labelledby":y,component:ce="span",components:g={},componentsProps:R={},color:Re="primary",classes:Ie,className:Ae,disableSwap:he=!1,disabled:G=!1,getAriaLabel:w,getAriaValueText:ge,marks:ye=!1,max:ee=100,min:te=0,orientation:ke="horizontal",shiftStep:ze=10,size:Me="medium",step:xe=1,scale:H=ct,slotProps:v,slots:b,track:I="normal",valueLabelDisplay:D="off",valueLabelFormat:A=ct}=_,Ne=Tt(_,Kt),x=c({},_,{isRtl:Z,max:ee,min:te,classes:Ie,disabled:G,disableSwap:he,orientation:ke,marks:ye,color:Re,size:Me,step:xe,shiftStep:ze,scale:H,track:I,valueLabelDisplay:D,valueLabelFormat:A}),{axisProps:re,getRootProps:Ee,getHiddenInputProps:Ve,getThumbProps:He,open:Qe,active:Fe,axis:de,focusedThumbIndex:r,range:o,dragging:n,marks:i,values:u,trackOffset:s,trackLeap:z,getThumbStyle:E}=jt(c({},x,{rootRef:a}));x.marked=i.length>0&&i.some(h=>h.label),x.dragging=n,x.focusedThumbIndex=r;const p=tr(x),$=(l=(d=b==null?void 0:b.root)!=null?d:g.Root)!=null?l:Xt,ae=(L=(C=b==null?void 0:b.rail)!=null?C:g.Rail)!=null?L:qt,Ze=(m=(f=b==null?void 0:b.track)!=null?f:g.Track)!=null?m:Gt,et=(U=(ne=b==null?void 0:b.thumb)!=null?ne:g.Thumb)!=null?U:Jt,tt=(K=(Q=b==null?void 0:b.valueLabel)!=null?Q:g.ValueLabel)!=null?K:Qt,je=(fe=(le=b==null?void 0:b.mark)!=null?le:g.Mark)!=null?fe:Zt,Oe=(M=(se=b==null?void 0:b.markLabel)!=null?se:g.MarkLabel)!=null?M:er,rt=(be=(me=b==null?void 0:b.input)!=null?me:g.Input)!=null?be:"input",De=(V=v==null?void 0:v.root)!=null?V:R.root,ft=(W=v==null?void 0:v.rail)!=null?W:R.rail,Ye=(j=v==null?void 0:v.track)!=null?j:R.track,Be=(ve=v==null?void 0:v.thumb)!=null?ve:R.thumb,Ue=(O=v==null?void 0:v.valueLabel)!=null?O:R.valueLabel,bt=(ie=v==null?void 0:v.mark)!=null?ie:R.mark,mt=(ue=v==null?void 0:v.markLabel)!=null?ue:R.markLabel,vt=(X=v==null?void 0:v.input)!=null?X:R.input,ht=Y({elementType:$,getSlotProps:Ee,externalSlotProps:De,externalForwardedProps:Ne,additionalProps:c({},Ot($)&&{as:ce}),ownerState:c({},x,De==null?void 0:De.ownerState),className:[p.root,Ae]}),gt=Y({elementType:ae,externalSlotProps:ft,ownerState:x,className:p.rail}),yt=Y({elementType:Ze,externalSlotProps:Ye,additionalProps:{style:c({},re[de].offset(s),re[de].leap(z))},ownerState:c({},x,Ye==null?void 0:Ye.ownerState),className:p.track}),Ke=Y({elementType:et,getSlotProps:He,externalSlotProps:Be,ownerState:c({},x,Be==null?void 0:Be.ownerState),className:p.thumb}),kt=Y({elementType:tt,externalSlotProps:Ue,ownerState:c({},x,Ue==null?void 0:Ue.ownerState),className:p.valueLabel}),We=Y({elementType:je,externalSlotProps:bt,ownerState:x,className:p.mark}),Xe=Y({elementType:Oe,externalSlotProps:mt,ownerState:x,className:p.markLabel}),xt=Y({elementType:rt,getSlotProps:Ve,externalSlotProps:vt,ownerState:x});return P.jsxs($,c({},ht,{children:[P.jsx(ae,c({},gt)),P.jsx(Ze,c({},yt)),i.filter(h=>h.value>=te&&h.value<=ee).map((h,k)=>{const qe=_e(h.value,te,ee),Se=re[de].offset(qe);let F;return I===!1?F=u.indexOf(h.value)!==-1:F=I==="normal"&&(o?h.value>=u[0]&&h.value<=u[u.length-1]:h.value<=u[0])||I==="inverted"&&(o?h.value<=u[0]||h.value>=u[u.length-1]:h.value>=u[0]),P.jsxs(S.Fragment,{children:[P.jsx(je,c({"data-index":k},We,!Te(je)&&{markActive:F},{style:c({},Se,We.style),className:oe(We.className,F&&p.markActive)})),h.label!=null?P.jsx(Oe,c({"aria-hidden":!0,"data-index":k},Xe,!Te(Oe)&&{markLabelActive:F},{style:c({},Se,Xe.style),className:oe(p.markLabel,Xe.className,F&&p.markLabelActive),children:h.label})):null]},k)}),u.map((h,k)=>{const qe=_e(h,te,ee),Se=re[de].offset(qe),F=D==="off"?rr:tt;return P.jsx(F,c({},!Te(F)&&{valueLabelFormat:A,valueLabelDisplay:D,value:typeof A=="function"?A(H(h),k):A,index:k,open:Qe===k||Fe===k||D==="on",disabled:G},kt,{children:P.jsx(et,c({"data-index":k},Ke,{className:oe(p.thumb,Ke.className,Fe===k&&p.active,r===k&&p.focusVisible),style:c({},Se,E(k),Ke.style),children:P.jsx(rt,c({"data-index":k,"aria-label":w?w(k):N,"aria-valuenow":H(h),"aria-labelledby":y,"aria-valuetext":ge?ge(H(h),k):q,value:u[k]},xt))}))}),k)})]}))}),lr=ar;export{lr as S};
1
+ import{r as S,cY as St,gb as pe,ci as Lt,ce as at,cz as wt,cI as Ge,cJ as $e,gc as Je,aG as c,cL as Te,aB as Pt,aC as Ct,aI as oe,j as P,aD as J,aE as B,cb as ot,ca as nt,ch as lt,ey as dt,cH as $t,aF as Tt,aH as Y,aJ as _t}from"./index-BfhVorqV.js";import{c as Rt}from"./useSlot-LBVvloQJ.js";const It={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},At=It;function zt(e,t,a=(l,d)=>l===d){return e.length===t.length&&e.every((l,d)=>a(l,t[d]))}const Mt=2;function pt(e,t){return e-t}function st(e,t){var a;const{index:l}=(a=e.reduce((d,L,C)=>{const m=Math.abs(t-L);return d===null||m<d.distance||m===d.distance?{distance:m,index:C}:d},null))!=null?a:{};return l}function Le(e,t){if(t.current!==void 0&&e.changedTouches){const a=e;for(let l=0;l<a.changedTouches.length;l+=1){const d=a.changedTouches[l];if(d.identifier===t.current)return{x:d.clientX,y:d.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function _e(e,t,a){return(e-t)*100/(a-t)}function Nt(e,t,a){return(a-t)*e+t}function Et(e){if(Math.abs(e)<1){const a=e.toExponential().split("e-"),l=a[0].split(".")[1];return(l?l.length:0)+parseInt(a[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Vt(e,t,a){const l=Math.round((e-a)/t)*t+a;return Number(l.toFixed(Et(t)))}function it({values:e,newValue:t,index:a}){const l=e.slice();return l[a]=t,l.sort(pt)}function we({sliderRef:e,activeIndex:t,setActive:a}){var l,d;const L=$e(e.current);if(!((l=e.current)!=null&&l.contains(L.activeElement))||Number(L==null||(d=L.activeElement)==null?void 0:d.getAttribute("data-index"))!==t){var C;(C=e.current)==null||C.querySelector(`[type="range"][data-index="${t}"]`).focus()}a&&a(t)}function Pe(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?zt(e,t):!1}const Ht={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Ft=e=>e;let Ce;function ut(){return Ce===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ce=CSS.supports("touch-action","none"):Ce=!0),Ce}function jt(e){const{"aria-labelledby":t,defaultValue:a,disabled:l=!1,disableSwap:d=!1,isRtl:L=!1,marks:C=!1,max:m=100,min:f=0,name:U,onChange:ne,onChangeCommitted:K,orientation:Q="horizontal",rootRef:fe,scale:le=Ft,step:M=1,shiftStep:se=10,tabIndex:be,value:me}=e,V=S.useRef(),[W,j]=S.useState(-1),[ve,O]=S.useState(-1),[ie,ue]=S.useState(!1),X=S.useRef(0),[_,Z]=St({controlled:me,default:a??f,name:"Slider"}),N=ne&&((r,o,n)=>{const i=r.nativeEvent||r,u=new i.constructor(i.type,i);Object.defineProperty(u,"target",{writable:!0,value:{value:o,name:U}}),ne(u,o,n)}),q=Array.isArray(_);let y=q?_.slice().sort(pt):[_];y=y.map(r=>r==null?f:pe(r,f,m));const ce=C===!0&&M!==null?[...Array(Math.floor((m-f)/M)+1)].map((r,o)=>({value:f+M*o})):C||[],g=ce.map(r=>r.value),{isFocusVisibleRef:R,onBlur:Re,onFocus:Ie,ref:Ae}=Lt(),[he,G]=S.useState(-1),w=S.useRef(),ge=at(Ae,w),ye=at(fe,ge),ee=r=>o=>{var n;const i=Number(o.currentTarget.getAttribute("data-index"));Ie(o),R.current===!0&&G(i),O(i),r==null||(n=r.onFocus)==null||n.call(r,o)},te=r=>o=>{var n;Re(o),R.current===!1&&G(-1),O(-1),r==null||(n=r.onBlur)==null||n.call(r,o)},ke=(r,o)=>{const n=Number(r.currentTarget.getAttribute("data-index")),i=y[n],u=g.indexOf(i);let s=o;if(ce&&M==null){const z=g[g.length-1];s>z?s=z:s<g[0]?s=g[0]:s=s<i?g[u-1]:g[u+1]}if(s=pe(s,f,m),q){d&&(s=pe(s,y[n-1]||-1/0,y[n+1]||1/0));const z=s;s=it({values:y,newValue:s,index:n});let E=n;d||(E=s.indexOf(z)),we({sliderRef:w,activeIndex:E})}Z(s),G(n),N&&!Pe(s,_)&&N(r,s,n),K&&K(r,s)},ze=r=>o=>{var n;if(M!==null){const i=Number(o.currentTarget.getAttribute("data-index")),u=y[i];let s=null;(o.key==="ArrowLeft"||o.key==="ArrowDown")&&o.shiftKey||o.key==="PageDown"?s=Math.max(u-se,f):((o.key==="ArrowRight"||o.key==="ArrowUp")&&o.shiftKey||o.key==="PageUp")&&(s=Math.min(u+se,m)),s!==null&&(ke(o,s),o.preventDefault())}r==null||(n=r.onKeyDown)==null||n.call(r,o)};wt(()=>{if(l&&w.current.contains(document.activeElement)){var r;(r=document.activeElement)==null||r.blur()}},[l]),l&&W!==-1&&j(-1),l&&he!==-1&&G(-1);const Me=r=>o=>{var n;(n=r.onChange)==null||n.call(r,o),ke(o,o.target.valueAsNumber)},xe=S.useRef();let H=Q;L&&Q==="horizontal"&&(H+="-reverse");const v=({finger:r,move:o=!1})=>{const{current:n}=w,{width:i,height:u,bottom:s,left:z}=n.getBoundingClientRect();let E;H.indexOf("vertical")===0?E=(s-r.y)/u:E=(r.x-z)/i,H.indexOf("-reverse")!==-1&&(E=1-E);let p;if(p=Nt(E,f,m),M)p=Vt(p,M,f);else{const ae=st(g,p);p=g[ae]}p=pe(p,f,m);let $=0;if(q){o?$=xe.current:$=st(y,p),d&&(p=pe(p,y[$-1]||-1/0,y[$+1]||1/0));const ae=p;p=it({values:y,newValue:p,index:$}),d&&o||($=p.indexOf(ae),xe.current=$)}return{newValue:p,activeIndex:$}},b=Ge(r=>{const o=Le(r,V);if(!o)return;if(X.current+=1,r.type==="mousemove"&&r.buttons===0){I(r);return}const{newValue:n,activeIndex:i}=v({finger:o,move:!0});we({sliderRef:w,activeIndex:i,setActive:j}),Z(n),!ie&&X.current>Mt&&ue(!0),N&&!Pe(n,_)&&N(r,n,i)}),I=Ge(r=>{const o=Le(r,V);if(ue(!1),!o)return;const{newValue:n}=v({finger:o,move:!0});j(-1),r.type==="touchend"&&O(-1),K&&K(r,n),V.current=void 0,A()}),D=Ge(r=>{if(l)return;ut()||r.preventDefault();const o=r.changedTouches[0];o!=null&&(V.current=o.identifier);const n=Le(r,V);if(n!==!1){const{newValue:u,activeIndex:s}=v({finger:n});we({sliderRef:w,activeIndex:s,setActive:j}),Z(u),N&&!Pe(u,_)&&N(r,u,s)}X.current=0;const i=$e(w.current);i.addEventListener("touchmove",b,{passive:!0}),i.addEventListener("touchend",I,{passive:!0})}),A=S.useCallback(()=>{const r=$e(w.current);r.removeEventListener("mousemove",b),r.removeEventListener("mouseup",I),r.removeEventListener("touchmove",b),r.removeEventListener("touchend",I)},[I,b]);S.useEffect(()=>{const{current:r}=w;return r.addEventListener("touchstart",D,{passive:ut()}),()=>{r.removeEventListener("touchstart",D),A()}},[A,D]),S.useEffect(()=>{l&&A()},[l,A]);const Ne=r=>o=>{var n;if((n=r.onMouseDown)==null||n.call(r,o),l||o.defaultPrevented||o.button!==0)return;o.preventDefault();const i=Le(o,V);if(i!==!1){const{newValue:s,activeIndex:z}=v({finger:i});we({sliderRef:w,activeIndex:z,setActive:j}),Z(s),N&&!Pe(s,_)&&N(o,s,z)}X.current=0;const u=$e(w.current);u.addEventListener("mousemove",b,{passive:!0}),u.addEventListener("mouseup",I)},x=_e(q?y[0]:f,f,m),re=_e(y[y.length-1],f,m)-x,Ee=(r={})=>{const o=Je(r),n={onMouseDown:Ne(o||{})},i=c({},o,n);return c({},r,{ref:ye},i)},Ve=r=>o=>{var n;(n=r.onMouseOver)==null||n.call(r,o);const i=Number(o.currentTarget.getAttribute("data-index"));O(i)},He=r=>o=>{var n;(n=r.onMouseLeave)==null||n.call(r,o),O(-1)};return{active:W,axis:H,axisProps:Ht,dragging:ie,focusedThumbIndex:he,getHiddenInputProps:(r={})=>{var o;const n=Je(r),i={onChange:Me(n||{}),onFocus:ee(n||{}),onBlur:te(n||{}),onKeyDown:ze(n||{})},u=c({},n,i);return c({tabIndex:be,"aria-labelledby":t,"aria-orientation":Q,"aria-valuemax":le(m),"aria-valuemin":le(f),name:U,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(o=e.step)!=null?o:void 0,disabled:l},r,u,{style:c({},At,{direction:L?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ee,getThumbProps:(r={})=>{const o=Je(r),n={onMouseOver:Ve(o||{}),onMouseLeave:He(o||{})};return c({},r,o,n)},marks:ce,open:ve,range:q,rootRef:ye,trackLeap:re,trackOffset:x,values:y,getThumbStyle:r=>({pointerEvents:W!==-1&&W!==r?"none":void 0})}}const Ot=e=>!e||!Te(e);function Dt(e){return Ct("MuiSlider",e)}const Yt=Pt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),T=Yt,Bt=e=>{const{open:t}=e;return{offset:oe(t&&T.valueLabelOpen),circle:T.valueLabelCircle,label:T.valueLabelLabel}};function Ut(e){const{children:t,className:a,value:l}=e,d=Bt(e);return t?S.cloneElement(t,{className:oe(t.props.className)},P.jsxs(S.Fragment,{children:[t.props.children,P.jsx("span",{className:oe(d.offset,a),"aria-hidden":!0,children:P.jsx("span",{className:d.circle,children:P.jsx("span",{className:d.label,children:l})})})]})):null}const Kt=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"],Wt=Rt();function ct(e){return e}const Xt=J("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`color${B(a.color)}`],a.size!=="medium"&&t[`size${B(a.size)}`],a.marked&&t.marked,a.orientation==="vertical"&&t.vertical,a.track==="inverted"&&t.trackInverted,a.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${T.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${T.dragging}`]:{[`& .${T.thumb}, & .${T.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{color:(e.vars||e).palette[a].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),qt=J("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Gt=J("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a,track:"inverted"},style:c({},e.vars?{backgroundColor:e.vars.palette.Slider[`${a}Track`],borderColor:e.vars.palette.Slider[`${a}Track`]}:c({backgroundColor:ot(e.palette[a].main,.62),borderColor:ot(e.palette[a].main,.62)},e.applyStyles("dark",{backgroundColor:nt(e.palette[a].main,.5)}),e.applyStyles("dark",{borderColor:nt(e.palette[a].main,.5)})))}))]}}),Jt=J("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.thumb,t[`thumbColor${B(a.color)}`],a.size!=="medium"&&t[`thumbSize${B(a.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${T.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{[`&:hover, &.${T.focusVisible}`]:c({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${lt(e.palette[a].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${T.active}`]:c({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${lt(e.palette[a].main,.16)}`})}}))]}}),Qt=J(Ut,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>c({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Zt=J("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>dt(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:a}=e;return[t.mark,a&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),er=J("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>dt(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>c({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),tr=e=>{const{disabled:t,dragging:a,marked:l,orientation:d,track:L,classes:C,color:m,size:f}=e,U={root:["root",t&&"disabled",a&&"dragging",l&&"marked",d==="vertical"&&"vertical",L==="inverted"&&"trackInverted",L===!1&&"trackFalse",m&&`color${B(m)}`,f&&`size${B(f)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",f&&`thumbSize${B(f)}`,m&&`thumbColor${B(m)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return _t(U,Dt,C)},rr=({children:e})=>e,ar=S.forwardRef(function(t,a){var l,d,L,C,m,f,U,ne,K,Q,fe,le,M,se,be,me,V,W,j,ve,O,ie,ue,X;const _=Wt({props:t,name:"MuiSlider"}),Z=$t(),{"aria-label":N,"aria-valuetext":q,"aria-labelledby":y,component:ce="span",components:g={},componentsProps:R={},color:Re="primary",classes:Ie,className:Ae,disableSwap:he=!1,disabled:G=!1,getAriaLabel:w,getAriaValueText:ge,marks:ye=!1,max:ee=100,min:te=0,orientation:ke="horizontal",shiftStep:ze=10,size:Me="medium",step:xe=1,scale:H=ct,slotProps:v,slots:b,track:I="normal",valueLabelDisplay:D="off",valueLabelFormat:A=ct}=_,Ne=Tt(_,Kt),x=c({},_,{isRtl:Z,max:ee,min:te,classes:Ie,disabled:G,disableSwap:he,orientation:ke,marks:ye,color:Re,size:Me,step:xe,shiftStep:ze,scale:H,track:I,valueLabelDisplay:D,valueLabelFormat:A}),{axisProps:re,getRootProps:Ee,getHiddenInputProps:Ve,getThumbProps:He,open:Qe,active:Fe,axis:de,focusedThumbIndex:r,range:o,dragging:n,marks:i,values:u,trackOffset:s,trackLeap:z,getThumbStyle:E}=jt(c({},x,{rootRef:a}));x.marked=i.length>0&&i.some(h=>h.label),x.dragging=n,x.focusedThumbIndex=r;const p=tr(x),$=(l=(d=b==null?void 0:b.root)!=null?d:g.Root)!=null?l:Xt,ae=(L=(C=b==null?void 0:b.rail)!=null?C:g.Rail)!=null?L:qt,Ze=(m=(f=b==null?void 0:b.track)!=null?f:g.Track)!=null?m:Gt,et=(U=(ne=b==null?void 0:b.thumb)!=null?ne:g.Thumb)!=null?U:Jt,tt=(K=(Q=b==null?void 0:b.valueLabel)!=null?Q:g.ValueLabel)!=null?K:Qt,je=(fe=(le=b==null?void 0:b.mark)!=null?le:g.Mark)!=null?fe:Zt,Oe=(M=(se=b==null?void 0:b.markLabel)!=null?se:g.MarkLabel)!=null?M:er,rt=(be=(me=b==null?void 0:b.input)!=null?me:g.Input)!=null?be:"input",De=(V=v==null?void 0:v.root)!=null?V:R.root,ft=(W=v==null?void 0:v.rail)!=null?W:R.rail,Ye=(j=v==null?void 0:v.track)!=null?j:R.track,Be=(ve=v==null?void 0:v.thumb)!=null?ve:R.thumb,Ue=(O=v==null?void 0:v.valueLabel)!=null?O:R.valueLabel,bt=(ie=v==null?void 0:v.mark)!=null?ie:R.mark,mt=(ue=v==null?void 0:v.markLabel)!=null?ue:R.markLabel,vt=(X=v==null?void 0:v.input)!=null?X:R.input,ht=Y({elementType:$,getSlotProps:Ee,externalSlotProps:De,externalForwardedProps:Ne,additionalProps:c({},Ot($)&&{as:ce}),ownerState:c({},x,De==null?void 0:De.ownerState),className:[p.root,Ae]}),gt=Y({elementType:ae,externalSlotProps:ft,ownerState:x,className:p.rail}),yt=Y({elementType:Ze,externalSlotProps:Ye,additionalProps:{style:c({},re[de].offset(s),re[de].leap(z))},ownerState:c({},x,Ye==null?void 0:Ye.ownerState),className:p.track}),Ke=Y({elementType:et,getSlotProps:He,externalSlotProps:Be,ownerState:c({},x,Be==null?void 0:Be.ownerState),className:p.thumb}),kt=Y({elementType:tt,externalSlotProps:Ue,ownerState:c({},x,Ue==null?void 0:Ue.ownerState),className:p.valueLabel}),We=Y({elementType:je,externalSlotProps:bt,ownerState:x,className:p.mark}),Xe=Y({elementType:Oe,externalSlotProps:mt,ownerState:x,className:p.markLabel}),xt=Y({elementType:rt,getSlotProps:Ve,externalSlotProps:vt,ownerState:x});return P.jsxs($,c({},ht,{children:[P.jsx(ae,c({},gt)),P.jsx(Ze,c({},yt)),i.filter(h=>h.value>=te&&h.value<=ee).map((h,k)=>{const qe=_e(h.value,te,ee),Se=re[de].offset(qe);let F;return I===!1?F=u.indexOf(h.value)!==-1:F=I==="normal"&&(o?h.value>=u[0]&&h.value<=u[u.length-1]:h.value<=u[0])||I==="inverted"&&(o?h.value<=u[0]||h.value>=u[u.length-1]:h.value>=u[0]),P.jsxs(S.Fragment,{children:[P.jsx(je,c({"data-index":k},We,!Te(je)&&{markActive:F},{style:c({},Se,We.style),className:oe(We.className,F&&p.markActive)})),h.label!=null?P.jsx(Oe,c({"aria-hidden":!0,"data-index":k},Xe,!Te(Oe)&&{markLabelActive:F},{style:c({},Se,Xe.style),className:oe(p.markLabel,Xe.className,F&&p.markLabelActive),children:h.label})):null]},k)}),u.map((h,k)=>{const qe=_e(h,te,ee),Se=re[de].offset(qe),F=D==="off"?rr:tt;return P.jsx(F,c({},!Te(F)&&{valueLabelFormat:A,valueLabelDisplay:D,value:typeof A=="function"?A(H(h),k):A,index:k,open:Qe===k||Fe===k||D==="on",disabled:G},kt,{children:P.jsx(et,c({"data-index":k},Ke,{className:oe(p.thumb,Ke.className,Fe===k&&p.active,r===k&&p.focusVisible),style:c({},Se,E(k),Ke.style),children:P.jsx(rt,c({"data-index":k,"aria-label":w?w(k):N,"aria-valuenow":H(h),"aria-labelledby":y,"aria-valuetext":ge?ge(H(h),k):q,value:u[k]},xt))}))}),k)})]}))}),lr=ar;export{lr as S};
@@ -1 +1 @@
1
- import{r as v,aC as w,aB as U,aD as x,aG as l,aK as _,aF as T,j as i,aI as P,aJ as W,ao as B,cj as G,aE as V}from"./index-D2UR_i8S.js";const J=v.createContext({}),k=J,K=v.createContext({}),E=K;function q(e){return w("MuiStep",e)}U("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const O=["active","children","className","component","completed","disabled","expanded","index","last"],Q=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return W({root:["root",o,n&&"alternativeLabel",a&&"completed"]},q,t)},X=x("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>l({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),Y=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStep"}),{active:a,children:r,className:u,component:c="div",completed:p,disabled:b,expanded:d=!1,index:s,last:m}=n,M=T(n,O),{activeStep:h,connector:L,alternativeLabel:y,orientation:R,nonLinear:$}=v.useContext(k);let[S=!1,I=!1,C=!1]=[a,p,b];h===s?S=a!==void 0?a:!0:!$&&h>s?I=p!==void 0?p:!0:!$&&h<s&&(C=b!==void 0?b:!0);const j=v.useMemo(()=>({index:s,last:m,expanded:d,icon:s+1,active:S,completed:I,disabled:C}),[s,m,d,S,I,C]),f=l({},n,{active:S,orientation:R,alternativeLabel:y,completed:I,disabled:C,expanded:d,component:c}),N=Q(f),z=i.jsxs(X,l({as:c,className:P(N.root,u),ref:o,ownerState:f},M,{children:[L&&y&&s!==0?L:null,r]}));return i.jsx(E.Provider,{value:j,children:L&&!y&&s!==0?i.jsxs(v.Fragment,{children:[L,z]}):z})}),ze=Y,Z=B(i.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),ee=B(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function te(e){return w("MuiStepIcon",e)}const oe=U("MuiStepIcon",["root","active","completed","error","text"]),A=oe;var F;const ne=["active","className","completed","error","icon"],ae=e=>{const{classes:t,active:o,completed:n,error:a}=e;return W({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},te,t)},D=x(G,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${A.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.error}`]:{color:(e.vars||e).palette.error.main}})),re=x("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),se=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepIcon"}),{active:a=!1,className:r,completed:u=!1,error:c=!1,icon:p}=n,b=T(n,ne),d=l({},n,{active:a,completed:u,error:c}),s=ae(d);if(typeof p=="number"||typeof p=="string"){const m=P(r,s.root);return c?i.jsx(D,l({as:ee,className:m,ref:o,ownerState:d},b)):u?i.jsx(D,l({as:Z,className:m,ref:o,ownerState:d},b)):i.jsxs(D,l({className:m,ref:o,ownerState:d},b,{children:[F||(F=i.jsx("circle",{cx:"12",cy:"12",r:"12"})),i.jsx(re,{className:s.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:p})]}))}return p}),le=se;function ie(e){return w("MuiStepLabel",e)}const ce=U("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),g=ce,pe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],de=e=>{const{classes:t,orientation:o,active:n,completed:a,error:r,disabled:u,alternativeLabel:c}=e;return W({root:["root",o,r&&"error",u&&"disabled",c&&"alternativeLabel"],label:["label",n&&"active",a&&"completed",r&&"error",u&&"disabled",c&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",a&&"completed",r&&"error",u&&"disabled",c&&"alternativeLabel"],labelContainer:["labelContainer",c&&"alternativeLabel"]},ie,t)},ve=x("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>l({display:"flex",alignItems:"center",[`&.${g.alternativeLabel}`]:{flexDirection:"column"},[`&.${g.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),ue=x("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>l({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${g.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.alternativeLabel}`]:{marginTop:16},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}})),be=x("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${g.alternativeLabel}`]:{paddingRight:0}})),me=x("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${g.alternativeLabel}`]:{textAlign:"center"}})),H=v.forwardRef(function(t,o){var n;const a=_({props:t,name:"MuiStepLabel"}),{children:r,className:u,componentsProps:c={},error:p=!1,icon:b,optional:d,slotProps:s={},StepIconComponent:m,StepIconProps:M}=a,h=T(a,pe),{alternativeLabel:L,orientation:y}=v.useContext(k),{active:R,disabled:$,completed:S,icon:I}=v.useContext(E),C=b||I;let j=m;C&&!j&&(j=le);const f=l({},a,{active:R,alternativeLabel:L,completed:S,disabled:$,error:p,orientation:y}),N=de(f),z=(n=s.label)!=null?n:c.label;return i.jsxs(ve,l({className:P(N.root,u),ref:o,ownerState:f},h,{children:[C||j?i.jsx(be,{className:N.iconContainer,ownerState:f,children:i.jsx(j,l({completed:S,active:R,error:p,icon:C},M))}):null,i.jsxs(me,{className:N.labelContainer,ownerState:f,children:[r?i.jsx(ue,l({ownerState:f},z,{className:P(N.label,z==null?void 0:z.className),children:r})):null,d]})]}))});H.muiName="StepLabel";const Pe=H;function Se(e){return w("MuiStepConnector",e)}U("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const xe=["className"],Le=e=>{const{classes:t,orientation:o,alternativeLabel:n,active:a,completed:r,disabled:u}=e,c={root:["root",o,n&&"alternativeLabel",a&&"active",r&&"completed",u&&"disabled"],line:["line",`line${V(o)}`]};return W(c,Se,t)},Ce=x("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>l({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),fe=x("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${V(o.orientation)}`]]}})(({ownerState:e,theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return l({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:o},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),ge=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepConnector"}),{className:a}=n,r=T(n,xe),{alternativeLabel:u,orientation:c="horizontal"}=v.useContext(k),{active:p,disabled:b,completed:d}=v.useContext(E),s=l({},n,{alternativeLabel:u,orientation:c,active:p,completed:d,disabled:b}),m=Le(s);return i.jsx(Ce,l({className:P(m.root,a),ref:o,ownerState:s},r,{children:i.jsx(fe,{className:m.line,ownerState:s})}))}),he=ge;function ye(e){return w("MuiStepper",e)}U("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const $e=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Me=e=>{const{orientation:t,nonLinear:o,alternativeLabel:n,classes:a}=e;return W({root:["root",t,o&&"nonLinear",n&&"alternativeLabel"]},ye,a)},Re=x("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.nonLinear&&t.nonLinear]}})(({ownerState:e})=>l({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Ie=i.jsx(he,{}),je=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:r=!1,children:u,className:c,component:p="div",connector:b=Ie,nonLinear:d=!1,orientation:s="horizontal"}=n,m=T(n,$e),M=l({},n,{nonLinear:d,alternativeLabel:r,orientation:s,component:p}),h=Me(M),L=v.Children.toArray(u).filter(Boolean),y=L.map(($,S)=>v.cloneElement($,l({index:S,last:S+1===L.length},$.props))),R=v.useMemo(()=>({activeStep:a,alternativeLabel:r,connector:b,nonLinear:d,orientation:s}),[a,r,b,d,s]);return i.jsx(k.Provider,{value:R,children:i.jsx(Re,l({as:p,ownerState:M,className:P(h.root,c),ref:o},m,{children:y}))})}),we=je;export{we as S,ze as a,Pe as b,E as c,k as d};
1
+ import{r as v,aC as w,aB as U,aD as x,aG as l,aK as _,aF as T,j as i,aI as P,aJ as W,ao as B,cj as G,aE as V}from"./index-BfhVorqV.js";const J=v.createContext({}),k=J,K=v.createContext({}),E=K;function q(e){return w("MuiStep",e)}U("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const O=["active","children","className","component","completed","disabled","expanded","index","last"],Q=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return W({root:["root",o,n&&"alternativeLabel",a&&"completed"]},q,t)},X=x("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>l({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),Y=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStep"}),{active:a,children:r,className:u,component:c="div",completed:p,disabled:b,expanded:d=!1,index:s,last:m}=n,M=T(n,O),{activeStep:h,connector:L,alternativeLabel:y,orientation:R,nonLinear:$}=v.useContext(k);let[S=!1,I=!1,C=!1]=[a,p,b];h===s?S=a!==void 0?a:!0:!$&&h>s?I=p!==void 0?p:!0:!$&&h<s&&(C=b!==void 0?b:!0);const j=v.useMemo(()=>({index:s,last:m,expanded:d,icon:s+1,active:S,completed:I,disabled:C}),[s,m,d,S,I,C]),f=l({},n,{active:S,orientation:R,alternativeLabel:y,completed:I,disabled:C,expanded:d,component:c}),N=Q(f),z=i.jsxs(X,l({as:c,className:P(N.root,u),ref:o,ownerState:f},M,{children:[L&&y&&s!==0?L:null,r]}));return i.jsx(E.Provider,{value:j,children:L&&!y&&s!==0?i.jsxs(v.Fragment,{children:[L,z]}):z})}),ze=Y,Z=B(i.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),ee=B(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function te(e){return w("MuiStepIcon",e)}const oe=U("MuiStepIcon",["root","active","completed","error","text"]),A=oe;var F;const ne=["active","className","completed","error","icon"],ae=e=>{const{classes:t,active:o,completed:n,error:a}=e;return W({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},te,t)},D=x(G,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${A.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.error}`]:{color:(e.vars||e).palette.error.main}})),re=x("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),se=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepIcon"}),{active:a=!1,className:r,completed:u=!1,error:c=!1,icon:p}=n,b=T(n,ne),d=l({},n,{active:a,completed:u,error:c}),s=ae(d);if(typeof p=="number"||typeof p=="string"){const m=P(r,s.root);return c?i.jsx(D,l({as:ee,className:m,ref:o,ownerState:d},b)):u?i.jsx(D,l({as:Z,className:m,ref:o,ownerState:d},b)):i.jsxs(D,l({className:m,ref:o,ownerState:d},b,{children:[F||(F=i.jsx("circle",{cx:"12",cy:"12",r:"12"})),i.jsx(re,{className:s.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:p})]}))}return p}),le=se;function ie(e){return w("MuiStepLabel",e)}const ce=U("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),g=ce,pe=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],de=e=>{const{classes:t,orientation:o,active:n,completed:a,error:r,disabled:u,alternativeLabel:c}=e;return W({root:["root",o,r&&"error",u&&"disabled",c&&"alternativeLabel"],label:["label",n&&"active",a&&"completed",r&&"error",u&&"disabled",c&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",a&&"completed",r&&"error",u&&"disabled",c&&"alternativeLabel"],labelContainer:["labelContainer",c&&"alternativeLabel"]},ie,t)},ve=x("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>l({display:"flex",alignItems:"center",[`&.${g.alternativeLabel}`]:{flexDirection:"column"},[`&.${g.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),ue=x("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>l({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${g.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.alternativeLabel}`]:{marginTop:16},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}})),be=x("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${g.alternativeLabel}`]:{paddingRight:0}})),me=x("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${g.alternativeLabel}`]:{textAlign:"center"}})),H=v.forwardRef(function(t,o){var n;const a=_({props:t,name:"MuiStepLabel"}),{children:r,className:u,componentsProps:c={},error:p=!1,icon:b,optional:d,slotProps:s={},StepIconComponent:m,StepIconProps:M}=a,h=T(a,pe),{alternativeLabel:L,orientation:y}=v.useContext(k),{active:R,disabled:$,completed:S,icon:I}=v.useContext(E),C=b||I;let j=m;C&&!j&&(j=le);const f=l({},a,{active:R,alternativeLabel:L,completed:S,disabled:$,error:p,orientation:y}),N=de(f),z=(n=s.label)!=null?n:c.label;return i.jsxs(ve,l({className:P(N.root,u),ref:o,ownerState:f},h,{children:[C||j?i.jsx(be,{className:N.iconContainer,ownerState:f,children:i.jsx(j,l({completed:S,active:R,error:p,icon:C},M))}):null,i.jsxs(me,{className:N.labelContainer,ownerState:f,children:[r?i.jsx(ue,l({ownerState:f},z,{className:P(N.label,z==null?void 0:z.className),children:r})):null,d]})]}))});H.muiName="StepLabel";const Pe=H;function Se(e){return w("MuiStepConnector",e)}U("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const xe=["className"],Le=e=>{const{classes:t,orientation:o,alternativeLabel:n,active:a,completed:r,disabled:u}=e,c={root:["root",o,n&&"alternativeLabel",a&&"active",r&&"completed",u&&"disabled"],line:["line",`line${V(o)}`]};return W(c,Se,t)},Ce=x("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>l({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),fe=x("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${V(o.orientation)}`]]}})(({ownerState:e,theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return l({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:o},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),ge=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepConnector"}),{className:a}=n,r=T(n,xe),{alternativeLabel:u,orientation:c="horizontal"}=v.useContext(k),{active:p,disabled:b,completed:d}=v.useContext(E),s=l({},n,{alternativeLabel:u,orientation:c,active:p,completed:d,disabled:b}),m=Le(s);return i.jsx(Ce,l({className:P(m.root,a),ref:o,ownerState:s},r,{children:i.jsx(fe,{className:m.line,ownerState:s})}))}),he=ge;function ye(e){return w("MuiStepper",e)}U("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const $e=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Me=e=>{const{orientation:t,nonLinear:o,alternativeLabel:n,classes:a}=e;return W({root:["root",t,o&&"nonLinear",n&&"alternativeLabel"]},ye,a)},Re=x("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.nonLinear&&t.nonLinear]}})(({ownerState:e})=>l({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Ie=i.jsx(he,{}),je=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:r=!1,children:u,className:c,component:p="div",connector:b=Ie,nonLinear:d=!1,orientation:s="horizontal"}=n,m=T(n,$e),M=l({},n,{nonLinear:d,alternativeLabel:r,orientation:s,component:p}),h=Me(M),L=v.Children.toArray(u).filter(Boolean),y=L.map(($,S)=>v.cloneElement($,l({index:S,last:S+1===L.length},$.props))),R=v.useMemo(()=>({activeStep:a,alternativeLabel:r,connector:b,nonLinear:d,orientation:s}),[a,r,b,d,s]);return i.jsx(k.Provider,{value:R,children:i.jsx(Re,l({as:p,ownerState:M,className:P(h.root,c),ref:o},m,{children:y}))})}),we=je;export{we as S,ze as a,Pe as b,E as c,k as d};
@@ -1 +1 @@
1
- import{aC as M,aB as q,aD as S,aE as L,aG as a,r as N,aK as U,aF as _,j as i,aI as B,aJ as E,cZ as re}from"./index-D2UR_i8S.js";import{F as ae}from"./FormControl-D32uXM3n.js";import{I as le}from"./InputLabel-CWy9m12B.js";import{S as ie,a as ne,F as de,O as ce}from"./Select-BtAvJtd9.js";import{u as ue,f as pe}from"./useFormControl-CKIqQYYi.js";function me(e){return M("MuiFormHelperText",e)}const fe=q("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),j=fe;var w;const xe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Fe=e=>{const{classes:o,contained:t,size:r,disabled:n,error:d,filled:c,focused:p,required:u}=e,s={root:["root",n&&"disabled",d&&"error",r&&`size${L(r)}`,t&&"contained",p&&"focused",c&&"filled",u&&"required"]};return E(s,me,o)},Te=S("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${L(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${j.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${j.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),be=N.forwardRef(function(o,t){const r=U({props:o,name:"MuiFormHelperText"}),{children:n,className:d,component:c="p"}=r,p=_(r,xe),u=ue(),s=pe({props:r,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:c,contained:s.variant==="filled"||s.variant==="outlined",variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),F=Fe(m);return i.jsx(Te,a({as:c,ownerState:m,className:B(F.root,d),ref:t},p,{children:n===" "?w||(w=i.jsx("span",{className:"notranslate",children:"​"})):n}))}),ve=be;function he(e){return M("MuiTextField",e)}const Ce=q("MuiTextField",["root"]),Me=Ce,ge=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ie={standard:ne,filled:de,outlined:ce},Re=e=>{const{classes:o}=e;return E({root:["root"]},he,o)},ye=S(ae,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),He=N.forwardRef(function(o,t){const r=U({props:o,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:c,className:p,color:u="primary",defaultValue:s,disabled:m=!1,error:F=!1,FormHelperTextProps:O,fullWidth:v=!1,helperText:h,id:W,InputLabelProps:T,inputProps:k,InputProps:V,inputRef:A,label:f,maxRows:D,minRows:G,multiline:R=!1,name:J,onBlur:K,onChange:Z,onFocus:Q,placeholder:X,required:y=!1,rows:Y,select:C=!1,SelectProps:g,type:ee,value:H,variant:b="outlined"}=r,oe=_(r,ge),z=a({},r,{autoFocus:d,color:u,disabled:m,error:F,fullWidth:v,multiline:R,required:y,select:C,variant:b}),se=Re(z),x={};b==="outlined"&&(T&&typeof T.shrink<"u"&&(x.notched=T.shrink),x.label=f),C&&((!g||!g.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const l=re(W),I=h&&l?`${l}-helper-text`:void 0,P=f&&l?`${l}-label`:void 0,te=Ie[b],$=i.jsx(te,a({"aria-describedby":I,autoComplete:n,autoFocus:d,defaultValue:s,fullWidth:v,multiline:R,name:J,rows:Y,maxRows:D,minRows:G,type:ee,value:H,id:l,inputRef:A,onBlur:K,onChange:Z,onFocus:Q,placeholder:X,inputProps:k},x,V));return i.jsxs(ye,a({className:B(se.root,p),disabled:m,error:F,fullWidth:v,ref:t,required:y,color:u,variant:b,ownerState:z},oe,{children:[f!=null&&f!==""&&i.jsx(le,a({htmlFor:l,id:P},T,{children:f})),C?i.jsx(ie,a({"aria-describedby":I,id:l,labelId:P,value:H,input:$},g,{children:c})):$,h&&i.jsx(ve,a({id:I},O,{children:h}))]}))}),qe=He;export{ve as F,qe as T,me as a,j as f,he as g,Me as t};
1
+ import{aC as M,aB as q,aD as S,aE as L,aG as a,r as N,aK as U,aF as _,j as i,aI as B,aJ as E,cZ as re}from"./index-BfhVorqV.js";import{F as ae}from"./FormControl-Kt4xANtI.js";import{I as le}from"./InputLabel-DbdmcDbJ.js";import{S as ie,a as ne,F as de,O as ce}from"./Select-BeNQ99oP.js";import{u as ue,f as pe}from"./useFormControl-DUzGwbSY.js";function me(e){return M("MuiFormHelperText",e)}const fe=q("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),j=fe;var w;const xe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Fe=e=>{const{classes:o,contained:t,size:r,disabled:n,error:d,filled:c,focused:p,required:u}=e,s={root:["root",n&&"disabled",d&&"error",r&&`size${L(r)}`,t&&"contained",p&&"focused",c&&"filled",u&&"required"]};return E(s,me,o)},Te=S("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${L(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${j.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${j.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),be=N.forwardRef(function(o,t){const r=U({props:o,name:"MuiFormHelperText"}),{children:n,className:d,component:c="p"}=r,p=_(r,xe),u=ue(),s=pe({props:r,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:c,contained:s.variant==="filled"||s.variant==="outlined",variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),F=Fe(m);return i.jsx(Te,a({as:c,ownerState:m,className:B(F.root,d),ref:t},p,{children:n===" "?w||(w=i.jsx("span",{className:"notranslate",children:"​"})):n}))}),ve=be;function he(e){return M("MuiTextField",e)}const Ce=q("MuiTextField",["root"]),Me=Ce,ge=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ie={standard:ne,filled:de,outlined:ce},Re=e=>{const{classes:o}=e;return E({root:["root"]},he,o)},ye=S(ae,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),He=N.forwardRef(function(o,t){const r=U({props:o,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:c,className:p,color:u="primary",defaultValue:s,disabled:m=!1,error:F=!1,FormHelperTextProps:O,fullWidth:v=!1,helperText:h,id:W,InputLabelProps:T,inputProps:k,InputProps:V,inputRef:A,label:f,maxRows:D,minRows:G,multiline:R=!1,name:J,onBlur:K,onChange:Z,onFocus:Q,placeholder:X,required:y=!1,rows:Y,select:C=!1,SelectProps:g,type:ee,value:H,variant:b="outlined"}=r,oe=_(r,ge),z=a({},r,{autoFocus:d,color:u,disabled:m,error:F,fullWidth:v,multiline:R,required:y,select:C,variant:b}),se=Re(z),x={};b==="outlined"&&(T&&typeof T.shrink<"u"&&(x.notched=T.shrink),x.label=f),C&&((!g||!g.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const l=re(W),I=h&&l?`${l}-helper-text`:void 0,P=f&&l?`${l}-label`:void 0,te=Ie[b],$=i.jsx(te,a({"aria-describedby":I,autoComplete:n,autoFocus:d,defaultValue:s,fullWidth:v,multiline:R,name:J,rows:Y,maxRows:D,minRows:G,type:ee,value:H,id:l,inputRef:A,onBlur:K,onChange:Z,onFocus:Q,placeholder:X,inputProps:k},x,V));return i.jsxs(ye,a({className:B(se.root,p),disabled:m,error:F,fullWidth:v,ref:t,required:y,color:u,variant:b,ownerState:z},oe,{children:[f!=null&&f!==""&&i.jsx(le,a({htmlFor:l,id:P},T,{children:f})),C?i.jsx(ie,a({"aria-describedby":I,id:l,labelId:P,value:H,input:$},g,{children:c})):$,h&&i.jsx(ve,a({id:I},O,{children:h}))]}))}),qe=He;export{ve as F,qe as T,me as a,j as f,he as g,Me as t};
@@ -1 +1 @@
1
- import{aC as d,aB as g,aD as b,aG as e,r as m,aK as v,aF as T,j as x,aI as f,aJ as C}from"./index-D2UR_i8S.js";function R(s){return d("MuiToolbar",s)}const G=g("MuiToolbar",["root","gutters","regular","dense"]),N=G,j=["className","component","disableGutters","variant"],y=s=>{const{classes:a,disableGutters:t,variant:o}=s;return C({root:["root",!t&&"gutters",o]},R,a)},M=b("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(s,a)=>{const{ownerState:t}=s;return[a.root,!t.disableGutters&&a.gutters,a[t.variant]]}})(({theme:s,ownerState:a})=>e({position:"relative",display:"flex",alignItems:"center"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}},a.variant==="dense"&&{minHeight:48}),({theme:s,ownerState:a})=>a.variant==="regular"&&s.mixins.toolbar),U=m.forwardRef(function(a,t){const o=v({props:a,name:"MuiToolbar"}),{className:r,component:n="div",disableGutters:l=!1,variant:c="regular"}=o,u=T(o,j),i=e({},o,{component:n,disableGutters:l,variant:c}),p=y(i);return x.jsx(M,e({as:n,className:f(p.root,r),ref:t,ownerState:i},u))}),_=U;export{_ as T,R as g,N as t};
1
+ import{aC as d,aB as g,aD as b,aG as e,r as m,aK as v,aF as T,j as x,aI as f,aJ as C}from"./index-BfhVorqV.js";function R(s){return d("MuiToolbar",s)}const G=g("MuiToolbar",["root","gutters","regular","dense"]),N=G,j=["className","component","disableGutters","variant"],y=s=>{const{classes:a,disableGutters:t,variant:o}=s;return C({root:["root",!t&&"gutters",o]},R,a)},M=b("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(s,a)=>{const{ownerState:t}=s;return[a.root,!t.disableGutters&&a.gutters,a[t.variant]]}})(({theme:s,ownerState:a})=>e({position:"relative",display:"flex",alignItems:"center"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}},a.variant==="dense"&&{minHeight:48}),({theme:s,ownerState:a})=>a.variant==="regular"&&s.mixins.toolbar),U=m.forwardRef(function(a,t){const o=v({props:a,name:"MuiToolbar"}),{className:r,component:n="div",disableGutters:l=!1,variant:c="regular"}=o,u=T(o,j),i=e({},o,{component:n,disableGutters:l,variant:c}),p=y(i);return x.jsx(M,e({as:n,className:f(p.root,r),ref:t,ownerState:i},u))}),_=U;export{_ as T,R as g,N as t};
@@ -1 +1 @@
1
- import{X as t,Y as r,j as a}from"./index-D2UR_i8S.js";var e={},i=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=i(t()),o=a;u=e.default=(0,v.default)((0,o.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList");export{u as d};
1
+ import{X as t,Y as r,j as a}from"./index-BfhVorqV.js";var e={},i=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=i(t()),o=a;u=e.default=(0,v.default)((0,o.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList");export{u as d};
@@ -1,4 +1,4 @@
1
- import{r as c,u as g,j as e,a as L,az as B,P as j,bj as R,af as E,a7 as I,B as N,E as f,q as h,Z as z,aS as _}from"./index-D2UR_i8S.js";import{P as F}from"./page-header-CiI4ihlj.js";import{A as W}from"./config-BjGpyxSf.js";import{S as H}from"./layout-CvQrD_gZ.js";import{S as q}from"./step-actions-hcblvpy4.js";import{S as O}from"./button-D8ZxWj_Y.js";import{d as $}from"./InfoOutlined-gB9H6_Ii.js";import{F as G}from"./FormControl-D32uXM3n.js";import{R as V,a as Z}from"./RadioGroup-Betu38Nc.js";import{F as x,C as D}from"./FormControlLabel-e33RviPs.js";import"./content-layout-jcciEmtz.js";import"./useFormControl-CKIqQYYi.js";import"./FormGroup-BLcBQcJn.js";function b({children:s}){const{t:i}=g();return e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[s,e.jsx(L,{title:i("blocklet.config.access.publicInstanceTip"),children:e.jsx(B,{children:e.jsx($,{fontSize:"small"})})})]})}b.propTypes={children:j.any.isRequired};const J=c.memo(b);function y({onNext:s}){const i=R(),{t:r,locale:m}=g(),[a,o]=c.useState(!1),[p,d]=c.useState(""),[S,C]=c.useState(!1),{blocklet:n,actions:u,getPublicInstance:v}=E();c.useEffect(()=>{d(I.getWhoCanAccess(n)),C(v(n))},[n]);const A=async t=>{try{o(!0),await _(800),await u.configWhoCanAccess(t),o(!1)}catch(l){o(!1),h.error(l.message)}},P=async t=>{a||(d(t.target.value),await A(t.target.value))},T=async t=>{const l=t.target.checked;try{o(!0),await u.configPublicToStore(l),o(!1)}catch(w){o(!1),h.error(w.message)}},k={marginRight:4,fontSize:18,verticalAlign:"text-bottom",color:i.palette.text.secondary};return e.jsxs(K,{children:[e.jsx("div",{className:"header",children:e.jsx(F,{title:r("blocklet.config.access.description")})}),e.jsx(G,{component:"fieldset",children:e.jsx(V,{name:"inherit",value:p,onChange:P,children:W.map(t=>e.jsxs("div",{style:{marginBottom:16},children:[e.jsx(x,{value:t.value,control:e.jsx(Z,{color:"primary"}),label:e.jsxs("span",{children:[e.jsx(t.icon,{style:k}),t.title[m]]})}),e.jsxs(N,{className:"tip",children:[t.description[m],t.value===f.WHO_CAN_ACCESS.ALL&&p===f.WHO_CAN_ACCESS.ALL&&n.source==="registry"&&e.jsx(J,{children:e.jsx(x,{style:{marginRight:0},value:t.value,control:e.jsx(D,{size:"small"}),label:e.jsx("span",{children:r("blocklet.config.access.publicToStore")}),onChange:T,checked:S,disabled:a})})]})]},t.value))})}),e.jsx(q,{mt:8,disabled:a,blocklet:n,onStartNow:()=>s("complete"),children:e.jsx(O,{loading:a,variant:"contained",disabled:a,onClick:()=>s(),children:r("setup.continue")})})]})}y.propTypes={onNext:j.func};y.defaultProps={onNext:()=>{}};const K=z(H)`
1
+ import{r as c,u as g,j as e,a as L,az as B,P as j,bj as R,af as E,a7 as I,B as N,E as f,q as h,Z as z,aS as _}from"./index-BfhVorqV.js";import{P as F}from"./page-header-C5ecJ6Qd.js";import{A as W}from"./config-Cl9yfIWh.js";import{S as H}from"./layout-BJYUy5aS.js";import{S as q}from"./step-actions-BkxasUm3.js";import{S as O}from"./button-2f4tapJk.js";import{d as $}from"./InfoOutlined-BRuBRFbl.js";import{F as G}from"./FormControl-Kt4xANtI.js";import{R as V,a as Z}from"./RadioGroup-C7j1KJ7y.js";import{F as x,C as D}from"./FormControlLabel-B6ISinfm.js";import"./content-layout-CK5XQfmW.js";import"./useFormControl-DUzGwbSY.js";import"./FormGroup-BEMyIGSj.js";function b({children:s}){const{t:i}=g();return e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[s,e.jsx(L,{title:i("blocklet.config.access.publicInstanceTip"),children:e.jsx(B,{children:e.jsx($,{fontSize:"small"})})})]})}b.propTypes={children:j.any.isRequired};const J=c.memo(b);function y({onNext:s}){const i=R(),{t:r,locale:m}=g(),[a,o]=c.useState(!1),[p,d]=c.useState(""),[S,C]=c.useState(!1),{blocklet:n,actions:u,getPublicInstance:v}=E();c.useEffect(()=>{d(I.getWhoCanAccess(n)),C(v(n))},[n]);const A=async t=>{try{o(!0),await _(800),await u.configWhoCanAccess(t),o(!1)}catch(l){o(!1),h.error(l.message)}},P=async t=>{a||(d(t.target.value),await A(t.target.value))},T=async t=>{const l=t.target.checked;try{o(!0),await u.configPublicToStore(l),o(!1)}catch(w){o(!1),h.error(w.message)}},k={marginRight:4,fontSize:18,verticalAlign:"text-bottom",color:i.palette.text.secondary};return e.jsxs(K,{children:[e.jsx("div",{className:"header",children:e.jsx(F,{title:r("blocklet.config.access.description")})}),e.jsx(G,{component:"fieldset",children:e.jsx(V,{name:"inherit",value:p,onChange:P,children:W.map(t=>e.jsxs("div",{style:{marginBottom:16},children:[e.jsx(x,{value:t.value,control:e.jsx(Z,{color:"primary"}),label:e.jsxs("span",{children:[e.jsx(t.icon,{style:k}),t.title[m]]})}),e.jsxs(N,{className:"tip",children:[t.description[m],t.value===f.WHO_CAN_ACCESS.ALL&&p===f.WHO_CAN_ACCESS.ALL&&n.source==="registry"&&e.jsx(J,{children:e.jsx(x,{style:{marginRight:0},value:t.value,control:e.jsx(D,{size:"small"}),label:e.jsx("span",{children:r("blocklet.config.access.publicToStore")}),onChange:T,checked:S,disabled:a})})]})]},t.value))})}),e.jsx(q,{mt:8,disabled:a,blocklet:n,onStartNow:()=>s("complete"),children:e.jsx(O,{loading:a,variant:"contained",disabled:a,onClick:()=>s(),children:r("setup.continue")})})]})}y.propTypes={onNext:j.func};y.defaultProps={onNext:()=>{}};const K=z(H)`
2
2
  height: 100%;
3
3
  overflow-y: auto;
4
4
  .header {
@@ -0,0 +1 @@
1
+ import{X as E,Y as I,j as t,r as l,az as M,aO as z,aP as D,aQ as _,P as u,Z as R}from"./index-BfhVorqV.js";import{L as b,a as C}from"./ListItemText-Bnnk7Gbj.js";var o={},O=I;Object.defineProperty(o,"__esModule",{value:!0});var p=o.default=void 0,S=O(E()),T=t;p=o.default=(0,S.default)((0,T.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz");function d({actions:m,size:f,...y}){const[n,i]=l.useState(null),v=!!n,x=e=>{try{e.stopPropagation(),e.preventDefault()}catch{}i(e.currentTarget)},a=e=>{try{e.stopPropagation(),e.preventDefault()}catch{}i(null)};return t.jsxs(k,{...y,children:[t.jsx(M,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:x,size:f,children:t.jsx(p,{})}),t.jsx(z,{id:"actions-menu","data-cy":"actions-menu",anchorEl:n,keepMounted:!0,open:v,onClose:a,slotProps:{paper:{}},children:m.map((e,r)=>{if(typeof e=="function")return e({close:a});if(e.separator)return t.jsx(D,{},`separator-${r}`);const{icon:h,text:j,render:q,onClick:s,disabled:g=!1,...P}=e;return l.createElement(_,{...P,disabled:g,dense:!0,onClick:async c=>{c.stopPropagation(),await(s==null?void 0:s(c)),a()},key:r,"data-cy":`actions-menu-${r}`},t.jsx(b,{style:{minWidth:24,marginRight:8},children:h}),t.jsx(C,{primary:j}))})})]})}d.propTypes={actions:u.array,size:u.oneOf(["small","medium","large"])};d.defaultProps={actions:[],size:"small"};const k=R.div``;export{d as A};
@@ -1,4 +1,4 @@
1
- import{aG as Pt,c_ as Mo,c$ as No,r as g,ez as Lo,d5 as qo,aF as Uo,j as c,cK as zo,aI as Ko,d6 as Wo,aJ as Ho,aC as Qo,aD as Xo,aK as Yo,U as ot,O as Ur,eA as Jo,eB as Zo,h as Dt,eC as es,eD as ts,c0 as rs,eE as b0,bz as g0,E as pa,b4 as yt,eF as Qn,ey as ns,bA as is,P as k,bt as oe,X as Le,Y as qe,a1 as me,l as Ee,ap as q0,Z as ae,B as _,a7 as Ce,f as fa,cq as ue,D as as,T as le,u as we,$ as n0,bB as I0,aM as i0,z as os,e as ss,az as ls,eG as cs,I as da,aW as us,bk as ms,bs as Xn,eH as ps,c1 as Br,c as U0,eI as fs,b_ as ds,q as zr,eJ as xs,aV as z0,C as hs,cx as ks,eK as xa,aQ as ha,eL as ys,eM as bs,av as Yn,bj as K0,ad as ka,a8 as ya,N as ba,eN as gs,b as ga,ck as vs,db as Ss,k as Es,eO as ws,bq as va,be as Sa,dq as Gt,cj as As,bm as Ds,dr as Gs,ae as Bs,bn as Ps,eP as js,eQ as Vs,da as Os,ac as Cs,A as Fs,eR as Ts,eS as Is,eT as _s,bx as $s,a9 as Re,cr as Rs,eU as Ms,eV as Ns,eW as Ls,eX as v0,eY as Jn,eZ as qs}from"./index-D2UR_i8S.js";import{l as Us}from"./lottie-FwjuTraW.js";import{u as zs,a as Ks,L as Ws,C as Hs,S as Qs}from"./config-space-u4RHkocA.js";import{L as Zn}from"./launch-result-message-DwBMK891.js";import{P as Ea}from"./page-header-CiI4ihlj.js";import{u as wa}from"./uniqBy-BUeS57o_.js";import{R as hr}from"./logo-uploader-BGESEvUM.js";import{S as Xs}from"./index-CKSMFqMY.js";import{s as Aa,h as Ys,w as Js,f as Zs,a as el,b as tl,c as rl,M as nl}from"./index-T01X8GVg.js";import{j as ei}from"./url-join-CumQIGHb.js";import{F as il,C as al,S as ol}from"./FormControlLabel-e33RviPs.js";import{I as ti}from"./index-D5HpWHRb.js";import{u as sl}from"./session-ClfaP8Dd.js";import{W as ll}from"./did-address-eujShTX2.js";import{T as Kr}from"./TextField-ZfIhKMlW.js";import{S as cl,a as ul,b as ml}from"./Stepper-BtyxP6gd.js";import{D as pl,f as Da}from"./format-error-CjSMm5Vi.js";import{A as Ga}from"./Alert-YB1c66Kp.js";import{a as ri}from"./api-CTyhvZ_-.js";import{m as fl,S as dl,A as xl}from"./item-CdwwMeVt.js";import{L as hl}from"./MoreVert-CO-YEIdW.js";import{L as kl,a as yl}from"./ListItemText-BFKiv21F.js";import{v as bl}from"./util-BgtPa_LA.js";import{u as Ba,C as gl,D as vl,a as Sl}from"./connect-to-Dg702AqR.js";import{C as El}from"./content-layout-jcciEmtz.js";import{d as wl}from"./ArrowDropDown-CyWdnmLZ.js";import{_ as Al}from"./useLocalStorage-BwTfVICM.js";import{E as Wr}from"./fallback-C_4si_rV.js";import{E as Dl}from"./index-BOAwzMIx.js";import{d as Gl}from"./Search-DJGc3pyw.js";import{S as Bl}from"./index-WNkObbJS.js";import{O as Pl}from"./Select-BtAvJtd9.js";import{H as ni}from"./Hidden-BLWrU9rp.js";import{M as ii}from"./InputAdornment-BXT7PVpt.js";import{y as jl,g as Vl,N as Ol}from"./preact.module-B1z5cdvs.js";import{E as Cl}from"./Link-DD0QeQw6.js";const Fl=(e,t)=>e.filter(r=>t.includes(r)),bt=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((i,a)=>{r((o,s)=>{a<=e.keys.length-1&&(a===0?Object.assign(o,s):o[e.up(e.keys[a])]=s)},i)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Fl(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.indexOf(a)!==-1){const o=t[a];o!==void 0&&r((s,l)=>{n===a?Object.assign(s,l):s[e.up(a)]=l},o)}}):(typeof t=="number"||typeof t=="string")&&r((i,a)=>{Object.assign(i,a)},t)};function Fe(e){return e?`Level${e}`:""}function a0(e){return e.unstable_level>0&&e.container}function Pa(e){return function(r){return`var(--Grid-${r}Spacing${Fe(e.unstable_level)})`}}function Hr(e){return function(r){return e.unstable_level===0?`var(--Grid-${r}Spacing)`:`var(--Grid-${r}Spacing${Fe(e.unstable_level-1)})`}}function Qr(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${Fe(e.unstable_level-1)})`}const Tl=({theme:e,ownerState:t})=>{const r=Pa(t),n={};return bt(e.breakpoints,t.gridSize,(i,a)=>{let o={};a===!0&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${Qr(t)}${a0(t)?` + ${r("column")}`:""})`}),i(n,o)}),n},Il=({theme:e,ownerState:t})=>{const r={};return bt(e.breakpoints,t.gridOffset,(n,i)=>{let a={};i==="auto"&&(a={marginLeft:"auto"}),typeof i=="number"&&(a={marginLeft:i===0?"0px":`calc(100% * ${i} / ${Qr(t)})`}),n(r,a)}),r},_l=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=a0(t)?{[`--Grid-columns${Fe(t.unstable_level)}`]:Qr(t)}:{"--Grid-columns":12};return bt(e.breakpoints,t.columns,(n,i)=>{n(r,{[`--Grid-columns${Fe(t.unstable_level)}`]:i})}),r},$l=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Hr(t),n=a0(t)?{[`--Grid-rowSpacing${Fe(t.unstable_level)}`]:r("row")}:{};return bt(e.breakpoints,t.rowSpacing,(i,a)=>{var o;i(n,{[`--Grid-rowSpacing${Fe(t.unstable_level)}`]:typeof a=="string"?a:(o=e.spacing)==null?void 0:o.call(e,a)})}),n},Rl=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Hr(t),n=a0(t)?{[`--Grid-columnSpacing${Fe(t.unstable_level)}`]:r("column")}:{};return bt(e.breakpoints,t.columnSpacing,(i,a)=>{var o;i(n,{[`--Grid-columnSpacing${Fe(t.unstable_level)}`]:typeof a=="string"?a:(o=e.spacing)==null?void 0:o.call(e,a)})}),n},Ml=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return bt(e.breakpoints,t.direction,(n,i)=>{n(r,{flexDirection:i})}),r},Nl=({ownerState:e})=>{const t=Pa(e),r=Hr(e);return Pt({minWidth:0,boxSizing:"border-box"},e.container&&Pt({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||a0(e))&&Pt({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},Ll=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},ql=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([i,a])=>{r(a)&&n.push(`spacing-${i}-${String(a)}`)}),n}return[]},Ul=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],zl=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Kl=Mo(),Wl=No("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Hl(e){return Wo({props:e,name:"MuiGrid",defaultTheme:Kl})}function Ql(e={}){const{createStyledComponent:t=Wl,useThemeProps:r=Hl,componentName:n="MuiGrid"}=e,i=g.createContext(void 0),a=(l,u)=>{const{container:p,direction:m,spacing:f,wrap:h,gridSize:x}=l,d={root:["root",p&&"container",h!=="wrap"&&`wrap-xs-${String(h)}`,...Ul(m),...Ll(x),...p?ql(f,u.breakpoints.keys[0]):[]]};return Ho(d,y=>Qo(n,y),{})},o=t(_l,Rl,$l,Tl,Ml,Nl,Il),s=g.forwardRef(function(u,p){var m,f,h,x,d,y,E,v;const S=Lo(),w=r(u),A=qo(w),P=g.useContext(i),{className:V,children:j,columns:D=12,container:B=!1,component:G="div",direction:N="row",wrap:U="wrap",spacing:K=0,rowSpacing:F=K,columnSpacing:M=K,disableEqualOverflow:q,unstable_level:b=0}=A,T=Uo(A,zl);let $=q;b&&q!==void 0&&($=u.disableEqualOverflow);const z={},L={},ge={};Object.entries(T).forEach(([ce,De])=>{S.breakpoints.values[ce]!==void 0?z[ce]=De:S.breakpoints.values[ce.replace("Offset","")]!==void 0?L[ce.replace("Offset","")]=De:ge[ce]=De});const Ae=(m=u.columns)!=null?m:b?void 0:D,Ue=(f=u.spacing)!=null?f:b?void 0:K,s0=(h=(x=u.rowSpacing)!=null?x:u.spacing)!=null?h:b?void 0:F,l0=(d=(y=u.columnSpacing)!=null?y:u.spacing)!=null?d:b?void 0:M,c0=Pt({},A,{level:b,columns:Ae,container:B,direction:N,wrap:U,spacing:Ue,rowSpacing:s0,columnSpacing:l0,gridSize:z,gridOffset:L,disableEqualOverflow:(E=(v=$)!=null?v:P)!=null?E:!1,parentDisableEqualOverflow:P}),se=a(c0,S);let ee=c.jsx(o,Pt({ref:p,as:G,ownerState:c0,className:Ko(se.root,V)},ge,{children:g.Children.map(j,ce=>{if(g.isValidElement(ce)&&zo(ce,["Grid"])){var De;return g.cloneElement(ce,{unstable_level:(De=ce.props.unstable_level)!=null?De:b+1})}return ce})}));return $!==void 0&&$!==(P??!1)&&(ee=c.jsx(i.Provider,{value:$,children:ee})),ee});return s.muiName="Grid",s}const Xl=Ql({createStyledComponent:Xo("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>Yo({props:e,name:"MuiGrid2"})}),kr=Xl;var Yl=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Jl=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Zl=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},e1=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,a=i===void 0?100:i,o=t.reloadDeps,s=o===void 0?[]:o,l=t.manual,u=t.onBefore,p=t.onSuccess,m=t.onError,f=t.onFinally,h=ot(g.useState(),2),x=h[0],d=h[1],y=ot(g.useState(!1),2),E=y[0],v=y[1],S=g.useMemo(function(){return n?n(x):!1},[x]),w=Ur(function(F){return Jo(void 0,void 0,void 0,function(){var M,q,b;return Zo(this,function(T){switch(T.label){case 0:return[4,e(F)];case 1:return M=T.sent(),d(F?g0(g0({},M),{list:b0(b0([],ot((b=F.list)!==null&&b!==void 0?b:[]),!1),ot(M.list),!1)}):g0(g0({},M),{list:b0([],ot((q=M.list)!==null&&q!==void 0?q:[]),!1)})),[2,M]}})})},{manual:l,onFinally:function(F,M,q){v(!1),f==null||f(M,q)},onBefore:function(){return u==null?void 0:u()},onSuccess:function(F){setTimeout(function(){K()}),p==null||p(F)},onError:function(F){return m==null?void 0:m(F)}}),A=w.loading,P=w.error,V=w.run,j=w.runAsync,D=w.cancel,B=Dt(function(){S||(v(!0),V(x))}),G=Dt(function(){return S?Promise.reject():(v(!0),j(x))}),N=function(){return v(!1),V()},U=function(){return v(!1),j()},K=function(){var F=es(r);if(F){F=F===document?document.documentElement:F;var M=Yl(F),q=Jl(F),b=Zl(F);q-M<=b+a&&B()}};return ts("scroll",function(){A||E||K()},{target:r}),rs(function(){V()},b0([],ot(s),!1)),{data:x,loading:!E&&A,error:P,loadingMore:E,noMore:S,loadMore:B,loadMoreAsync:G,reload:Dt(N),reloadAsync:Dt(U),mutate:d,cancel:D}};const t1=e1,e2="blocklet-add-component-registry",t2="server-add-registry",r2=e=>`resource-${e}-add-registry`,{NODE_MODES:ai}=pa,r1=({mode:e,previousMode:t}={})=>e===ai.SERVERLESS||t===ai.SERVERLESS;var ja={isInServerlessMode:r1},n1=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],r.get(i[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(t[i]!==r[i])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var o=a[i];if(!(o==="_owner"&&t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r};const oi=yt(n1);var i1=a1;function dt(e){return e instanceof Qn?Qn.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function a1(e){if(e=e||{},e.circles)return o1(e);return e.proto?n:r;function t(i,a){for(var o=Object.keys(i),s=new Array(o.length),l=0;l<o.length;l++){var u=o[l],p=i[u];typeof p!="object"||p===null?s[u]=p:p instanceof Date?s[u]=new Date(p):ArrayBuffer.isView(p)?s[u]=dt(p):s[u]=a(p)}return s}function r(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,r);if(i instanceof Map)return new Map(t(Array.from(i),r));if(i instanceof Set)return new Set(t(Array.from(i),r));var a={};for(var o in i)if(Object.hasOwnProperty.call(i,o)!==!1){var s=i[o];typeof s!="object"||s===null?a[o]=s:s instanceof Date?a[o]=new Date(s):s instanceof Map?a[o]=new Map(t(Array.from(s),r)):s instanceof Set?a[o]=new Set(t(Array.from(s),r)):ArrayBuffer.isView(s)?a[o]=dt(s):a[o]=r(s)}return a}function n(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,n);if(i instanceof Map)return new Map(t(Array.from(i),n));if(i instanceof Set)return new Set(t(Array.from(i),n));var a={};for(var o in i){var s=i[o];typeof s!="object"||s===null?a[o]=s:s instanceof Date?a[o]=new Date(s):s instanceof Map?a[o]=new Map(t(Array.from(s),n)):s instanceof Set?a[o]=new Set(t(Array.from(s),n)):ArrayBuffer.isView(s)?a[o]=dt(s):a[o]=n(s)}return a}}function o1(e){var t=[],r=[];return e.proto?a:i;function n(o,s){for(var l=Object.keys(o),u=new Array(l.length),p=0;p<l.length;p++){var m=l[p],f=o[m];if(typeof f!="object"||f===null)u[m]=f;else if(f instanceof Date)u[m]=new Date(f);else if(ArrayBuffer.isView(f))u[m]=dt(f);else{var h=t.indexOf(f);h!==-1?u[m]=r[h]:u[m]=s(f)}}return u}function i(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,i);if(o instanceof Map)return new Map(n(Array.from(o),i));if(o instanceof Set)return new Set(n(Array.from(o),i));var s={};t.push(o),r.push(s);for(var l in o)if(Object.hasOwnProperty.call(o,l)!==!1){var u=o[l];if(typeof u!="object"||u===null)s[l]=u;else if(u instanceof Date)s[l]=new Date(u);else if(u instanceof Map)s[l]=new Map(n(Array.from(u),i));else if(u instanceof Set)s[l]=new Set(n(Array.from(u),i));else if(ArrayBuffer.isView(u))s[l]=dt(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=i(u)}}return t.pop(),r.pop(),s}function a(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,a);if(o instanceof Map)return new Map(n(Array.from(o),a));if(o instanceof Set)return new Set(n(Array.from(o),a));var s={};t.push(o),r.push(s);for(var l in o){var u=o[l];if(typeof u!="object"||u===null)s[l]=u;else if(u instanceof Date)s[l]=new Date(u);else if(u instanceof Map)s[l]=new Map(n(Array.from(u),a));else if(u instanceof Set)s[l]=new Set(n(Array.from(u),a));else if(ArrayBuffer.isView(u))s[l]=dt(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=a(u)}}return t.pop(),r.pop(),s}}var s1=i1();const si=yt(s1);function Pr(){return Pr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pr.apply(this,arguments)}function l1(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Xr(e,t){return t={exports:{}},e(t,t.exports),t.exports}/** @license React v16.13.1
1
+ import{aG as Pt,c_ as Mo,c$ as No,r as g,eB as Lo,d5 as qo,aF as Uo,j as c,cK as zo,aI as Ko,d6 as Wo,aJ as Ho,aC as Qo,aD as Xo,aK as Yo,U as ot,O as Ur,eC as Jo,eD as Zo,h as Dt,eE as es,eF as ts,c0 as rs,db as b0,bz as g0,E as pa,b4 as yt,eG as Qn,eA as ns,bA as is,P as k,bt as oe,X as Le,Y as qe,a1 as me,l as Ee,ap as q0,Z as ae,B as _,a7 as Ce,f as fa,cq as ue,D as as,T as le,u as we,$ as n0,bB as I0,aM as i0,z as os,e as ss,az as ls,eH as cs,I as da,aW as us,bk as ms,bs as Xn,eI as ps,c1 as Br,c as U0,eJ as fs,b_ as ds,q as zr,eK as xs,aV as z0,C as hs,cx as ks,eL as xa,aQ as ha,eM as ys,eN as bs,av as Yn,bj as K0,ad as ka,a8 as ya,N as ba,eO as gs,b as ga,ck as vs,dd as Ss,k as Es,eP as ws,bq as va,be as Sa,ds as Gt,cj as As,bm as Ds,dt as Gs,ae as Bs,bn as Ps,eQ as js,eR as Vs,dc as Os,ac as Cs,A as Fs,eS as Ts,eT as Is,eU as _s,bx as $s,a9 as Re,cr as Rs,eV as Ms,eW as Ns,eX as Ls,eY as v0,eZ as Jn,e_ as qs}from"./index-BfhVorqV.js";import{l as Us}from"./lottie-BCG4dny2.js";import{u as zs,a as Ks,L as Ws,C as Hs,S as Qs}from"./config-space-DTE8U19b.js";import{L as Zn}from"./launch-result-message-Z1C1sG3K.js";import{P as Ea}from"./page-header-C5ecJ6Qd.js";import{u as wa}from"./uniqBy-C3O4Rmks.js";import{R as hr}from"./logo-uploader-Cb8u4LYv.js";import{S as Xs}from"./index-CHbscbku.js";import{s as Aa,h as Ys,w as Js,f as Zs,a as el,b as tl,c as rl,M as nl}from"./index-BCpZXkUS.js";import{j as ei}from"./url-join-DH_b1eAH.js";import{F as il,C as al,S as ol}from"./FormControlLabel-B6ISinfm.js";import{I as ti}from"./index-u_IDQFrq.js";import{u as sl}from"./session-Cf-ZqG4P.js";import{W as ll}from"./did-address-GzRMEyk7.js";import{T as Kr}from"./TextField-D3XEyFR4.js";import{S as cl,a as ul,b as ml}from"./Stepper-BF6lz4ut.js";import{D as pl,f as Da}from"./format-error-B3RYdl6q.js";import{A as Ga}from"./Alert-D91U5h--.js";import{a as ri}from"./api-C37A8mCN.js";import{m as fl,S as dl,A as xl}from"./item-B9vXmxNy.js";import{L as hl}from"./MoreVert-er-bltGF.js";import{L as kl,a as yl}from"./ListItemText-Bnnk7Gbj.js";import{v as bl}from"./util-CoWq6oMk.js";import{u as Ba,C as gl,D as vl,a as Sl}from"./connect-to-DMAPIkc9.js";import{C as El}from"./content-layout-CK5XQfmW.js";import{d as wl}from"./ArrowDropDown-Cq32DOpt.js";import{_ as Al}from"./useLocalStorage-B-I-NsSz.js";import{E as Wr}from"./fallback-rg9fefdL.js";import{E as Dl}from"./index-D12KUiCG.js";import{d as Gl}from"./Search-CMyGk9R2.js";import{S as Bl}from"./index-nyOsFIwy.js";import{O as Pl}from"./Select-BeNQ99oP.js";import{H as ni}from"./Hidden-kl5Tbw1B.js";import{M as ii}from"./InputAdornment-C5IWgB4u.js";import{y as jl,g as Vl,N as Ol}from"./preact.module-B1z5cdvs.js";import{E as Cl}from"./Link-DFzOJFD-.js";const Fl=(e,t)=>e.filter(r=>t.includes(r)),bt=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((i,a)=>{r((o,s)=>{a<=e.keys.length-1&&(a===0?Object.assign(o,s):o[e.up(e.keys[a])]=s)},i)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Fl(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.indexOf(a)!==-1){const o=t[a];o!==void 0&&r((s,l)=>{n===a?Object.assign(s,l):s[e.up(a)]=l},o)}}):(typeof t=="number"||typeof t=="string")&&r((i,a)=>{Object.assign(i,a)},t)};function Fe(e){return e?`Level${e}`:""}function a0(e){return e.unstable_level>0&&e.container}function Pa(e){return function(r){return`var(--Grid-${r}Spacing${Fe(e.unstable_level)})`}}function Hr(e){return function(r){return e.unstable_level===0?`var(--Grid-${r}Spacing)`:`var(--Grid-${r}Spacing${Fe(e.unstable_level-1)})`}}function Qr(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${Fe(e.unstable_level-1)})`}const Tl=({theme:e,ownerState:t})=>{const r=Pa(t),n={};return bt(e.breakpoints,t.gridSize,(i,a)=>{let o={};a===!0&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${Qr(t)}${a0(t)?` + ${r("column")}`:""})`}),i(n,o)}),n},Il=({theme:e,ownerState:t})=>{const r={};return bt(e.breakpoints,t.gridOffset,(n,i)=>{let a={};i==="auto"&&(a={marginLeft:"auto"}),typeof i=="number"&&(a={marginLeft:i===0?"0px":`calc(100% * ${i} / ${Qr(t)})`}),n(r,a)}),r},_l=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=a0(t)?{[`--Grid-columns${Fe(t.unstable_level)}`]:Qr(t)}:{"--Grid-columns":12};return bt(e.breakpoints,t.columns,(n,i)=>{n(r,{[`--Grid-columns${Fe(t.unstable_level)}`]:i})}),r},$l=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Hr(t),n=a0(t)?{[`--Grid-rowSpacing${Fe(t.unstable_level)}`]:r("row")}:{};return bt(e.breakpoints,t.rowSpacing,(i,a)=>{var o;i(n,{[`--Grid-rowSpacing${Fe(t.unstable_level)}`]:typeof a=="string"?a:(o=e.spacing)==null?void 0:o.call(e,a)})}),n},Rl=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Hr(t),n=a0(t)?{[`--Grid-columnSpacing${Fe(t.unstable_level)}`]:r("column")}:{};return bt(e.breakpoints,t.columnSpacing,(i,a)=>{var o;i(n,{[`--Grid-columnSpacing${Fe(t.unstable_level)}`]:typeof a=="string"?a:(o=e.spacing)==null?void 0:o.call(e,a)})}),n},Ml=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return bt(e.breakpoints,t.direction,(n,i)=>{n(r,{flexDirection:i})}),r},Nl=({ownerState:e})=>{const t=Pa(e),r=Hr(e);return Pt({minWidth:0,boxSizing:"border-box"},e.container&&Pt({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||a0(e))&&Pt({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},Ll=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},ql=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([i,a])=>{r(a)&&n.push(`spacing-${i}-${String(a)}`)}),n}return[]},Ul=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],zl=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Kl=Mo(),Wl=No("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Hl(e){return Wo({props:e,name:"MuiGrid",defaultTheme:Kl})}function Ql(e={}){const{createStyledComponent:t=Wl,useThemeProps:r=Hl,componentName:n="MuiGrid"}=e,i=g.createContext(void 0),a=(l,u)=>{const{container:p,direction:m,spacing:f,wrap:h,gridSize:x}=l,d={root:["root",p&&"container",h!=="wrap"&&`wrap-xs-${String(h)}`,...Ul(m),...Ll(x),...p?ql(f,u.breakpoints.keys[0]):[]]};return Ho(d,y=>Qo(n,y),{})},o=t(_l,Rl,$l,Tl,Ml,Nl,Il),s=g.forwardRef(function(u,p){var m,f,h,x,d,y,E,v;const S=Lo(),w=r(u),A=qo(w),P=g.useContext(i),{className:V,children:j,columns:D=12,container:B=!1,component:G="div",direction:N="row",wrap:U="wrap",spacing:K=0,rowSpacing:F=K,columnSpacing:M=K,disableEqualOverflow:q,unstable_level:b=0}=A,T=Uo(A,zl);let $=q;b&&q!==void 0&&($=u.disableEqualOverflow);const z={},L={},ge={};Object.entries(T).forEach(([ce,De])=>{S.breakpoints.values[ce]!==void 0?z[ce]=De:S.breakpoints.values[ce.replace("Offset","")]!==void 0?L[ce.replace("Offset","")]=De:ge[ce]=De});const Ae=(m=u.columns)!=null?m:b?void 0:D,Ue=(f=u.spacing)!=null?f:b?void 0:K,s0=(h=(x=u.rowSpacing)!=null?x:u.spacing)!=null?h:b?void 0:F,l0=(d=(y=u.columnSpacing)!=null?y:u.spacing)!=null?d:b?void 0:M,c0=Pt({},A,{level:b,columns:Ae,container:B,direction:N,wrap:U,spacing:Ue,rowSpacing:s0,columnSpacing:l0,gridSize:z,gridOffset:L,disableEqualOverflow:(E=(v=$)!=null?v:P)!=null?E:!1,parentDisableEqualOverflow:P}),se=a(c0,S);let ee=c.jsx(o,Pt({ref:p,as:G,ownerState:c0,className:Ko(se.root,V)},ge,{children:g.Children.map(j,ce=>{if(g.isValidElement(ce)&&zo(ce,["Grid"])){var De;return g.cloneElement(ce,{unstable_level:(De=ce.props.unstable_level)!=null?De:b+1})}return ce})}));return $!==void 0&&$!==(P??!1)&&(ee=c.jsx(i.Provider,{value:$,children:ee})),ee});return s.muiName="Grid",s}const Xl=Ql({createStyledComponent:Xo("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>Yo({props:e,name:"MuiGrid2"})}),kr=Xl;var Yl=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Jl=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Zl=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},e1=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,a=i===void 0?100:i,o=t.reloadDeps,s=o===void 0?[]:o,l=t.manual,u=t.onBefore,p=t.onSuccess,m=t.onError,f=t.onFinally,h=ot(g.useState(),2),x=h[0],d=h[1],y=ot(g.useState(!1),2),E=y[0],v=y[1],S=g.useMemo(function(){return n?n(x):!1},[x]),w=Ur(function(F){return Jo(void 0,void 0,void 0,function(){var M,q,b;return Zo(this,function(T){switch(T.label){case 0:return[4,e(F)];case 1:return M=T.sent(),d(F?g0(g0({},M),{list:b0(b0([],ot((b=F.list)!==null&&b!==void 0?b:[]),!1),ot(M.list),!1)}):g0(g0({},M),{list:b0([],ot((q=M.list)!==null&&q!==void 0?q:[]),!1)})),[2,M]}})})},{manual:l,onFinally:function(F,M,q){v(!1),f==null||f(M,q)},onBefore:function(){return u==null?void 0:u()},onSuccess:function(F){setTimeout(function(){K()}),p==null||p(F)},onError:function(F){return m==null?void 0:m(F)}}),A=w.loading,P=w.error,V=w.run,j=w.runAsync,D=w.cancel,B=Dt(function(){S||(v(!0),V(x))}),G=Dt(function(){return S?Promise.reject():(v(!0),j(x))}),N=function(){return v(!1),V()},U=function(){return v(!1),j()},K=function(){var F=es(r);if(F){F=F===document?document.documentElement:F;var M=Yl(F),q=Jl(F),b=Zl(F);q-M<=b+a&&B()}};return ts("scroll",function(){A||E||K()},{target:r}),rs(function(){V()},b0([],ot(s),!1)),{data:x,loading:!E&&A,error:P,loadingMore:E,noMore:S,loadMore:B,loadMoreAsync:G,reload:Dt(N),reloadAsync:Dt(U),mutate:d,cancel:D}};const t1=e1,e2="blocklet-add-component-registry",t2="server-add-registry",r2=e=>`resource-${e}-add-registry`,{NODE_MODES:ai}=pa,r1=({mode:e,previousMode:t}={})=>e===ai.SERVERLESS||t===ai.SERVERLESS;var ja={isInServerlessMode:r1},n1=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],r.get(i[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(t[i]!==r[i])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var o=a[i];if(!(o==="_owner"&&t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r};const oi=yt(n1);var i1=a1;function dt(e){return e instanceof Qn?Qn.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function a1(e){if(e=e||{},e.circles)return o1(e);return e.proto?n:r;function t(i,a){for(var o=Object.keys(i),s=new Array(o.length),l=0;l<o.length;l++){var u=o[l],p=i[u];typeof p!="object"||p===null?s[u]=p:p instanceof Date?s[u]=new Date(p):ArrayBuffer.isView(p)?s[u]=dt(p):s[u]=a(p)}return s}function r(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,r);if(i instanceof Map)return new Map(t(Array.from(i),r));if(i instanceof Set)return new Set(t(Array.from(i),r));var a={};for(var o in i)if(Object.hasOwnProperty.call(i,o)!==!1){var s=i[o];typeof s!="object"||s===null?a[o]=s:s instanceof Date?a[o]=new Date(s):s instanceof Map?a[o]=new Map(t(Array.from(s),r)):s instanceof Set?a[o]=new Set(t(Array.from(s),r)):ArrayBuffer.isView(s)?a[o]=dt(s):a[o]=r(s)}return a}function n(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,n);if(i instanceof Map)return new Map(t(Array.from(i),n));if(i instanceof Set)return new Set(t(Array.from(i),n));var a={};for(var o in i){var s=i[o];typeof s!="object"||s===null?a[o]=s:s instanceof Date?a[o]=new Date(s):s instanceof Map?a[o]=new Map(t(Array.from(s),n)):s instanceof Set?a[o]=new Set(t(Array.from(s),n)):ArrayBuffer.isView(s)?a[o]=dt(s):a[o]=n(s)}return a}}function o1(e){var t=[],r=[];return e.proto?a:i;function n(o,s){for(var l=Object.keys(o),u=new Array(l.length),p=0;p<l.length;p++){var m=l[p],f=o[m];if(typeof f!="object"||f===null)u[m]=f;else if(f instanceof Date)u[m]=new Date(f);else if(ArrayBuffer.isView(f))u[m]=dt(f);else{var h=t.indexOf(f);h!==-1?u[m]=r[h]:u[m]=s(f)}}return u}function i(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,i);if(o instanceof Map)return new Map(n(Array.from(o),i));if(o instanceof Set)return new Set(n(Array.from(o),i));var s={};t.push(o),r.push(s);for(var l in o)if(Object.hasOwnProperty.call(o,l)!==!1){var u=o[l];if(typeof u!="object"||u===null)s[l]=u;else if(u instanceof Date)s[l]=new Date(u);else if(u instanceof Map)s[l]=new Map(n(Array.from(u),i));else if(u instanceof Set)s[l]=new Set(n(Array.from(u),i));else if(ArrayBuffer.isView(u))s[l]=dt(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=i(u)}}return t.pop(),r.pop(),s}function a(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,a);if(o instanceof Map)return new Map(n(Array.from(o),a));if(o instanceof Set)return new Set(n(Array.from(o),a));var s={};t.push(o),r.push(s);for(var l in o){var u=o[l];if(typeof u!="object"||u===null)s[l]=u;else if(u instanceof Date)s[l]=new Date(u);else if(u instanceof Map)s[l]=new Map(n(Array.from(u),a));else if(u instanceof Set)s[l]=new Set(n(Array.from(u),a));else if(ArrayBuffer.isView(u))s[l]=dt(u);else{var p=t.indexOf(u);p!==-1?s[l]=r[p]:s[l]=a(u)}}return t.pop(),r.pop(),s}}var s1=i1();const si=yt(s1);function Pr(){return Pr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pr.apply(this,arguments)}function l1(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Xr(e,t){return t={exports:{}},e(t,t.exports),t.exports}/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -1 +1 @@
1
- import{u as B,af as L,bx as W,$ as O,r,c as A,c1 as T,bw as _,k as h,h as $,c2 as F,j as w,ap as K}from"./index-D2UR_i8S.js";import{A as z,S as G}from"./add-component-core-BsClbBJx.js";import"./lottie-FwjuTraW.js";import"./config-space-u4RHkocA.js";import"./url-join-CumQIGHb.js";import"./Skeleton-DVKyXmm6.js";import"./Hidden-BLWrU9rp.js";import"./spaces-5xok4VJR.js";import"./index-BmM6WRMt.js";import"./api-CTyhvZ_-.js";import"./launch-result-message-DwBMK891.js";import"./Close-Bn601fxJ.js";import"./page-header-CiI4ihlj.js";import"./uniqBy-BUeS57o_.js";import"./logo-uploader-BGESEvUM.js";import"./index-BCA-5NcY.js";import"./index-CKSMFqMY.js";import"./EditIcon-DrRjhUgU.js";import"./Done-B1UDtldR.js";import"./Google-Duvh4o_V.js";import"./TextField-ZfIhKMlW.js";import"./FormControl-D32uXM3n.js";import"./useFormControl-CKIqQYYi.js";import"./InputLabel-CWy9m12B.js";import"./Select-BtAvJtd9.js";import"./index-T01X8GVg.js";import"./FormControlLabel-e33RviPs.js";import"./index-D5HpWHRb.js";import"./session-ClfaP8Dd.js";import"./did-address-eujShTX2.js";import"./Link-DD0QeQw6.js";import"./Stepper-BtyxP6gd.js";import"./format-error-CjSMm5Vi.js";import"./Alert-YB1c66Kp.js";import"./useSlot-qUg8hMqb.js";import"./item-CdwwMeVt.js";import"./Add-CbycMEbf.js";import"./MoreVert-CO-YEIdW.js";import"./Launch-CzAofQSz.js";import"./DeleteOutline-BzwVBrxY.js";import"./click-to-copy-BsmI9ksY.js";import"./shorten-label-BlEZNxcS.js";import"./confirm-DZzubb9G.js";import"./Avatar-D9rpNCqX.js";import"./ButtonGroup-DGBxXxUQ.js";import"./jss-plugin-props-sort.esm-CPTwTzr4.js";import"./toPropertyKey-hKuLU48H.js";import"./ListItemText-BFKiv21F.js";import"./util-BgtPa_LA.js";import"./connect-to-Dg702AqR.js";import"./use-blocklet-info-for-connect-did-spaces-BlvTBdcE.js";import"./CloseOutlined-CptcS6gg.js";import"./index-_rl2L_ks.js";import"./ExpandMore-CKKkjQcY.js";import"./content-layout-jcciEmtz.js";import"./ArrowDropDown-CyWdnmLZ.js";import"./useLocalStorage-BwTfVICM.js";import"./fallback-C_4si_rV.js";import"./index-BOAwzMIx.js";import"./Search-DJGc3pyw.js";import"./index-WNkObbJS.js";import"./InputAdornment-BXT7PVpt.js";import"./preact.module-B1z5cdvs.js";function Zt(){var u;const{t:g}=B(),{blocklet:a}=L(),{componentDid:s}=W(),f=O(t=>t.breakpoints.down("md")),e=new URL(window.location.href),C=e.searchParams.get("mode")==="dialog",p=e.searchParams.get("resourceType")||"",c=e.searchParams.get("resourceDid")||s,R=e.searchParams.get("store")||"",S=e.searchParams.get("showFromUrl")!=="false",y=e.searchParams.get("showResourcesSwitch")!=="false",E=e.searchParams.get("enableRunBackground")!=="false",P=e.searchParams.get("showCategory")!=="false",n=(u=a==null?void 0:a.meta)==null?void 0:u.did,m=R.split(",").filter(Boolean).map(t=>{try{return new URL(t.startsWith("http")?t:`https://${t}`).origin}catch(o){return console.error(o),null}}).filter(Boolean),[b,D]=r.useState(m.map(t=>({url:t,name:t.replace("https://","")}))),[x,U]=r.useState(null),[j,M]=r.useState("");r.useEffect(()=>{(async()=>{try{const t=await Promise.all(m.map(async o=>{const i=A(o,"/api/store.json"),{data:v}=await T.get(i);return{url:o,name:v.name}}));D(t||[])}catch(t){console.error(t)}})()},[m.join(",")]);const k=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")};r.useEffect(()=>{const t=_();return n&&t.connect(),()=>{n&&t.isConnected()&&t.disconnect()}},[n]),h(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:s},"*")});const l=$(t=>{var o,i;((o=t.data)==null?void 0:o.event)==="resourceDialog.select"&&((i=t.data)==null?void 0:i.componentDid)===s&&(U(t.data.data),M(t.data.storeUrl))});h(()=>{window.addEventListener("message",l)}),F(()=>{window.removeEventListener("message",l)});const d=({inDialog:t=!0}={})=>w.jsx(z,{stores:b,selectedMeta:x,storeUrl:j,resourceType:p,resourceDid:c,mode:"embed",inDialog:t,storageKey:G(`${p}+${c}`),showResourcesSwitch:y,showFromUrl:S,enableRunBackground:E,showCategory:P});return C?w.jsx(K,{className:"resource-dialog",title:g("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:f?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(t,o)=>{o!=="backdropClick"&&k()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:d()}):d({inDialog:!1})}export{Zt as default};
1
+ import{u as B,af as L,bx as W,$ as O,r,c as A,c1 as T,bw as _,k as h,h as $,c2 as F,j as w,ap as K}from"./index-BfhVorqV.js";import{A as z,S as G}from"./add-component-core-C3OBXrft.js";import"./lottie-BCG4dny2.js";import"./config-space-DTE8U19b.js";import"./url-join-DH_b1eAH.js";import"./Skeleton-FXGSJdkA.js";import"./Hidden-kl5Tbw1B.js";import"./spaces-Dm4toCmL.js";import"./index-UmXxvIz7.js";import"./api-C37A8mCN.js";import"./launch-result-message-Z1C1sG3K.js";import"./Close-CdBP5F4J.js";import"./page-header-C5ecJ6Qd.js";import"./uniqBy-C3O4Rmks.js";import"./logo-uploader-Cb8u4LYv.js";import"./index-DU7-35nh.js";import"./index-CHbscbku.js";import"./EditIcon-Bg4AkV00.js";import"./Done-DO1tfb2_.js";import"./Google-DGP2JaKw.js";import"./TextField-D3XEyFR4.js";import"./FormControl-Kt4xANtI.js";import"./useFormControl-DUzGwbSY.js";import"./InputLabel-DbdmcDbJ.js";import"./Select-BeNQ99oP.js";import"./index-BCpZXkUS.js";import"./FormControlLabel-B6ISinfm.js";import"./index-u_IDQFrq.js";import"./session-Cf-ZqG4P.js";import"./did-address-GzRMEyk7.js";import"./Link-DFzOJFD-.js";import"./Stepper-BF6lz4ut.js";import"./format-error-B3RYdl6q.js";import"./Alert-D91U5h--.js";import"./useSlot-LBVvloQJ.js";import"./item-B9vXmxNy.js";import"./Add-C5zWPWbi.js";import"./MoreVert-er-bltGF.js";import"./Launch-CDcio2Tm.js";import"./DeleteOutline-De4xAGvs.js";import"./click-to-copy-CNizZfqS.js";import"./shorten-label-CunJMulX.js";import"./confirm-CD6_CMUq.js";import"./Avatar-XXXVLUFk.js";import"./ButtonGroup-k3SZjeUa.js";import"./jss-plugin-props-sort.esm-InWevx1Y.js";import"./toPropertyKey-hKuLU48H.js";import"./ListItemText-Bnnk7Gbj.js";import"./util-CoWq6oMk.js";import"./connect-to-DMAPIkc9.js";import"./use-blocklet-info-for-connect-did-spaces-gtr1x-_o.js";import"./CloseOutlined-Crg0BDr4.js";import"./index-_y2ZXCMC.js";import"./ExpandMore-DD2GykPj.js";import"./content-layout-CK5XQfmW.js";import"./ArrowDropDown-Cq32DOpt.js";import"./useLocalStorage-B-I-NsSz.js";import"./fallback-rg9fefdL.js";import"./index-D12KUiCG.js";import"./Search-CMyGk9R2.js";import"./index-nyOsFIwy.js";import"./InputAdornment-C5IWgB4u.js";import"./preact.module-B1z5cdvs.js";function Zt(){var u;const{t:g}=B(),{blocklet:a}=L(),{componentDid:s}=W(),f=O(t=>t.breakpoints.down("md")),e=new URL(window.location.href),C=e.searchParams.get("mode")==="dialog",p=e.searchParams.get("resourceType")||"",c=e.searchParams.get("resourceDid")||s,R=e.searchParams.get("store")||"",S=e.searchParams.get("showFromUrl")!=="false",y=e.searchParams.get("showResourcesSwitch")!=="false",E=e.searchParams.get("enableRunBackground")!=="false",P=e.searchParams.get("showCategory")!=="false",n=(u=a==null?void 0:a.meta)==null?void 0:u.did,m=R.split(",").filter(Boolean).map(t=>{try{return new URL(t.startsWith("http")?t:`https://${t}`).origin}catch(o){return console.error(o),null}}).filter(Boolean),[b,D]=r.useState(m.map(t=>({url:t,name:t.replace("https://","")}))),[x,U]=r.useState(null),[j,M]=r.useState("");r.useEffect(()=>{(async()=>{try{const t=await Promise.all(m.map(async o=>{const i=A(o,"/api/store.json"),{data:v}=await T.get(i);return{url:o,name:v.name}}));D(t||[])}catch(t){console.error(t)}})()},[m.join(",")]);const k=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")};r.useEffect(()=>{const t=_();return n&&t.connect(),()=>{n&&t.isConnected()&&t.disconnect()}},[n]),h(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:s},"*")});const l=$(t=>{var o,i;((o=t.data)==null?void 0:o.event)==="resourceDialog.select"&&((i=t.data)==null?void 0:i.componentDid)===s&&(U(t.data.data),M(t.data.storeUrl))});h(()=>{window.addEventListener("message",l)}),F(()=>{window.removeEventListener("message",l)});const d=({inDialog:t=!0}={})=>w.jsx(z,{stores:b,selectedMeta:x,storeUrl:j,resourceType:p,resourceDid:c,mode:"embed",inDialog:t,storageKey:G(`${p}+${c}`),showResourcesSwitch:y,showFromUrl:S,enableRunBackground:E,showCategory:P});return C?w.jsx(K,{className:"resource-dialog",title:g("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:f?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(t,o)=>{o!=="backdropClick"&&k()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:d()}):d({inDialog:!1})}export{Zt as default};
@@ -1,4 +1,4 @@
1
- import{r as s,j as a,a0 as j,ay as P,az as O,aA as z,P as n,Z as _}from"./index-D2UR_i8S.js";import{L as M}from"./selector-f-DWZqru.js";import{d as S}from"./QuestionMarkCircle-P8-fp7ZK.js";var c={};Object.defineProperty(c,"__esModule",{value:!0});var m=c.default=void 0;H(s);var p=a;function H(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function f(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?d(Object(o),!0).forEach(function(r){A(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function A(e,t,o){return t=C(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function C(e){var t=k(e,"string");return typeof t=="symbol"?t:String(t)}function k(e,t){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,p.jsx)("svg",f(f({},t),{},{children:(0,p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.606 17.32a7.933 7.933 0 0 1-.581-1.18c-.165-.411-.312-.86-.44-1.339a7.639 7.639 0 0 0-1.586 1.054 7.69 7.69 0 0 0 2.607 1.465zm.657-1.675c-.16-.4-.305-.848-.429-1.335A7.643 7.643 0 0 1 10 14h.002c.734 0 1.463.104 2.165.31-.124.487-.268.935-.428 1.335-.283.707-.604 1.235-.925 1.575-.32.339-.595.447-.813.447-.218 0-.493-.108-.813-.447-.322-.34-.642-.867-.925-1.575zM10 12.667a8.976 8.976 0 0 1 2.436.334c.116-.727.193-1.511.22-2.334H7.344c.027.823.103 1.607.22 2.334A8.972 8.972 0 0 1 10 12.667zM7.345 9.333c.027-.823.103-1.607.22-2.334.791.223 1.61.335 2.436.334A8.974 8.974 0 0 0 12.437 7c.116.727.193 1.511.22 2.334H7.344zm6.646 1.334c-.03.982-.127 1.925-.28 2.797.81.367 1.56.852 2.227 1.439a7.666 7.666 0 0 0 1.734-4.236h-3.681zm3.681-1.334H13.99a19.718 19.718 0 0 0-.28-2.798 8.975 8.975 0 0 0 2.228-1.438 7.665 7.665 0 0 1 1.734 4.236zm1.329.669A9 9 0 1 1 1 10a9 9 0 0 1 18 0v.002zM2.329 9.333a7.665 7.665 0 0 1 1.734-4.236A8.974 8.974 0 0 0 6.29 6.535a19.74 19.74 0 0 0-.28 2.798H2.329zm0 1.334h3.682c.03.983.126 1.925.28 2.797a8.974 8.974 0 0 0-2.228 1.439 7.665 7.665 0 0 1-1.734-4.236zm10.648 5.473c.164-.411.312-.86.44-1.34.57.285 1.103.639 1.585 1.055a7.687 7.687 0 0 1-2.606 1.465c.216-.354.41-.751.58-1.18zm-.581-13.46c.967.316 1.85.819 2.606 1.465A7.64 7.64 0 0 1 13.417 5.2c-.128-.48-.276-.928-.44-1.34a7.925 7.925 0 0 0-.581-1.18zm-.657 1.675c.16.4.304.848.428 1.335a7.64 7.64 0 0 1-2.165.31H10a7.64 7.64 0 0 1-2.166-.31c.124-.487.268-.935.429-1.335.283-.708.603-1.235.925-1.575.32-.339.595-.447.813-.447.218 0 .492.108.813.447.321.34.642.867.925 1.575zM7.025 3.86c-.165.411-.312.86-.44 1.34a7.64 7.64 0 0 1-1.586-1.055A7.688 7.688 0 0 1 7.606 2.68c-.216.354-.41.751-.581 1.18z",fill:"currentColor"})}))};l.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"};l.displayName="globe";m=c.default=l;function w({SessionContext:e,extraItems:t,showLocale:o,showHelper:r,showSessionManager:i,sessionManagerProps:h}){const{session:b}=s.useContext(e),{locale:g}=s.useContext(j),v=P(),x=()=>{if(v.pathname.indexOf("/store")>-1){window.open("https://www.arcblock.io/content/docs/createblocklet","_blank");return}window.open("https://www.arcblock.io/content/docs/blocklet-developer","_blank")};return a.jsxs(R,{children:[t.map((u,y)=>s.cloneElement(u,{key:y})),o&&a.jsx(M,{"data-cy":"locale-addon",icon:m,size:23,showText:!1,className:"locale-addon"}),r&&a.jsx(O,{onClick:x,children:a.jsx(S,{})}),i&&a.jsx(z,{locale:g,session:b,size:24,showRole:!0,...h,showManageBlocklet:!1})]})}w.propTypes={SessionContext:n.object.isRequired,webWalletUrl:n.string,extraItems:n.array,showLocale:n.bool,showSessionManager:n.bool,showHelper:n.bool,sessionManagerProps:n.object};w.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};const R=_.div`
1
+ import{r as s,j as a,a0 as j,ay as P,az as O,aA as z,P as n,Z as _}from"./index-BfhVorqV.js";import{L as M}from"./selector-CNsCKDRb.js";import{d as S}from"./QuestionMarkCircle-CoIXItlb.js";var c={};Object.defineProperty(c,"__esModule",{value:!0});var m=c.default=void 0;H(s);var p=a;function H(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function f(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?d(Object(o),!0).forEach(function(r){A(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function A(e,t,o){return t=C(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function C(e){var t=k(e,"string");return typeof t=="symbol"?t:String(t)}function k(e,t){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,p.jsx)("svg",f(f({},t),{},{children:(0,p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.606 17.32a7.933 7.933 0 0 1-.581-1.18c-.165-.411-.312-.86-.44-1.339a7.639 7.639 0 0 0-1.586 1.054 7.69 7.69 0 0 0 2.607 1.465zm.657-1.675c-.16-.4-.305-.848-.429-1.335A7.643 7.643 0 0 1 10 14h.002c.734 0 1.463.104 2.165.31-.124.487-.268.935-.428 1.335-.283.707-.604 1.235-.925 1.575-.32.339-.595.447-.813.447-.218 0-.493-.108-.813-.447-.322-.34-.642-.867-.925-1.575zM10 12.667a8.976 8.976 0 0 1 2.436.334c.116-.727.193-1.511.22-2.334H7.344c.027.823.103 1.607.22 2.334A8.972 8.972 0 0 1 10 12.667zM7.345 9.333c.027-.823.103-1.607.22-2.334.791.223 1.61.335 2.436.334A8.974 8.974 0 0 0 12.437 7c.116.727.193 1.511.22 2.334H7.344zm6.646 1.334c-.03.982-.127 1.925-.28 2.797.81.367 1.56.852 2.227 1.439a7.666 7.666 0 0 0 1.734-4.236h-3.681zm3.681-1.334H13.99a19.718 19.718 0 0 0-.28-2.798 8.975 8.975 0 0 0 2.228-1.438 7.665 7.665 0 0 1 1.734 4.236zm1.329.669A9 9 0 1 1 1 10a9 9 0 0 1 18 0v.002zM2.329 9.333a7.665 7.665 0 0 1 1.734-4.236A8.974 8.974 0 0 0 6.29 6.535a19.74 19.74 0 0 0-.28 2.798H2.329zm0 1.334h3.682c.03.983.126 1.925.28 2.797a8.974 8.974 0 0 0-2.228 1.439 7.665 7.665 0 0 1-1.734-4.236zm10.648 5.473c.164-.411.312-.86.44-1.34.57.285 1.103.639 1.585 1.055a7.687 7.687 0 0 1-2.606 1.465c.216-.354.41-.751.58-1.18zm-.581-13.46c.967.316 1.85.819 2.606 1.465A7.64 7.64 0 0 1 13.417 5.2c-.128-.48-.276-.928-.44-1.34a7.925 7.925 0 0 0-.581-1.18zm-.657 1.675c.16.4.304.848.428 1.335a7.64 7.64 0 0 1-2.165.31H10a7.64 7.64 0 0 1-2.166-.31c.124-.487.268-.935.429-1.335.283-.708.603-1.235.925-1.575.32-.339.595-.447.813-.447.218 0 .492.108.813.447.321.34.642.867.925 1.575zM7.025 3.86c-.165.411-.312.86-.44 1.34a7.64 7.64 0 0 1-1.586-1.055A7.688 7.688 0 0 1 7.606 2.68c-.216.354-.41.751-.581 1.18z",fill:"currentColor"})}))};l.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"};l.displayName="globe";m=c.default=l;function w({SessionContext:e,extraItems:t,showLocale:o,showHelper:r,showSessionManager:i,sessionManagerProps:h}){const{session:b}=s.useContext(e),{locale:g}=s.useContext(j),v=P(),x=()=>{if(v.pathname.indexOf("/store")>-1){window.open("https://www.arcblock.io/content/docs/createblocklet","_blank");return}window.open("https://www.arcblock.io/content/docs/blocklet-developer","_blank")};return a.jsxs(R,{children:[t.map((u,y)=>s.cloneElement(u,{key:y})),o&&a.jsx(M,{"data-cy":"locale-addon",icon:m,size:23,showText:!1,className:"locale-addon"}),r&&a.jsx(O,{onClick:x,children:a.jsx(S,{})}),i&&a.jsx(z,{locale:g,session:b,size:24,showRole:!0,...h,showManageBlocklet:!1})]})}w.propTypes={SessionContext:n.object.isRequired,webWalletUrl:n.string,extraItems:n.array,showLocale:n.bool,showSessionManager:n.bool,showHelper:n.bool,sessionManagerProps:n.object};w.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};const R=_.div`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;