@abtnode/blocklet-services 1.16.26-beta-818ea1c5 → 1.16.26-beta-cca12425

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 (268) hide show
  1. package/api/libs/auth/adapters/apple.js +78 -0
  2. package/api/libs/auth/adapters/auth0.js +56 -0
  3. package/api/libs/auth/adapters/facebook.js +34 -0
  4. package/api/libs/auth/adapters/github.js +75 -0
  5. package/api/libs/auth/adapters/google.js +66 -0
  6. package/api/libs/auth/adapters/twitter.js +22 -0
  7. package/api/libs/auth/index.js +170 -0
  8. package/api/routes/federated.js +23 -1
  9. package/api/routes/oauth.js +257 -102
  10. package/api/services/auth/connect/receive-transfer-app-owner.js +7 -1
  11. package/api/services/oauth/index.js +70 -0
  12. package/api/util/federated.js +2 -2
  13. package/dist/assets/{Add-DgrYlJHm.js → Add-B1KQFZbB.js} +1 -1
  14. package/dist/assets/{AddBox-Cqkk9Zb6.js → AddBox-C_rCPKut.js} +1 -1
  15. package/dist/assets/{Alert-CJmzHVEH.js → Alert-D7OuAtqq.js} +1 -1
  16. package/dist/assets/{ArrowDropDown-qzt62tXO.js → ArrowDropDown-DDSSUsgw.js} +1 -1
  17. package/dist/assets/{Avatar-VThXe6vp.js → Avatar-BKvod5qm.js} +1 -1
  18. package/dist/assets/{ButtonGroup-crNqYhpS.js → ButtonGroup-B93e6tqm.js} +1 -1
  19. package/dist/assets/{CheckCircle-hTa9NuuL.js → CheckCircle-DgHejmJm.js} +1 -1
  20. package/dist/assets/{ChevronRight-Zd4sj4Ik.js → ChevronRight-KVhjO69S.js} +1 -1
  21. package/dist/assets/{CloseOutlined-DzkxsEbx.js → CloseOutlined-BdzvaiT0.js} +1 -1
  22. package/dist/assets/{Delete-FPkQEM7j.js → Delete-Cmb6a-TW.js} +1 -1
  23. package/dist/assets/{DeleteOutline-BgceRLMI.js → DeleteOutline-C_JPQWoC.js} +1 -1
  24. package/dist/assets/{Done-Dw6uaCDC.js → Done-Cqcgj3XK.js} +1 -1
  25. package/dist/assets/{Download-D4aLfdYz.js → Download-DYDCm5jq.js} +1 -1
  26. package/dist/assets/{Edit-BQ8r9eYD.js → Edit-JQ58DRtF.js} +1 -1
  27. package/dist/assets/{EditIcon-DonYKsD8.js → EditIcon-BuHKvSX-.js} +1 -1
  28. package/dist/assets/Error-bprXV3Qz.js +1 -0
  29. package/dist/assets/{ExpandMore-BgRJle39.js → ExpandMore-CMOFmrRl.js} +1 -1
  30. package/dist/assets/{FilterList-Cr_Ge89T.js → FilterList-MfdHX_OT.js} +4 -4
  31. package/dist/assets/{FormControl-D-JqMY5K.js → FormControl-BrDVvV0w.js} +1 -1
  32. package/dist/assets/{FormControlLabel-CxQTOZJ1.js → FormControlLabel-Bj1raPoa.js} +1 -1
  33. package/dist/assets/{FormGroup-C-BEyape.js → FormGroup-CTmu8GWz.js} +1 -1
  34. package/dist/assets/{Google-DBpd-Csd.js → Google-B8EaETJY.js} +4 -4
  35. package/dist/assets/{Grid-BKo3Eu4m.js → Grid-BtGjPvuC.js} +1 -1
  36. package/dist/assets/{Hidden-BIcc-Ri_.js → Hidden-DWKJv_Ts.js} +1 -1
  37. package/dist/assets/{InfoOutlined-BAo9kLny.js → InfoOutlined-BItr8vqq.js} +1 -1
  38. package/dist/assets/{InputAdornment-eRc8XOzM.js → InputAdornment-CGuzdfXX.js} +1 -1
  39. package/dist/assets/{InputLabel-DIt1gEGj.js → InputLabel-DA3u5GP-.js} +1 -1
  40. package/dist/assets/{LastPage-DBc4oFoT.js → LastPage-DzK9EKF-.js} +1 -1
  41. package/dist/assets/{Launch-Cb7jRIVL.js → Launch-p5mGEt8g.js} +1 -1
  42. package/dist/assets/{LaunchOutlined-T5Mcb8X-.js → LaunchOutlined-BiGPJuP-.js} +1 -1
  43. package/dist/assets/{Link-BP6MkNEU.js → Link-C1R9I8T5.js} +1 -1
  44. package/dist/assets/{ListItemText-nUHfvFm4.js → ListItemText-9kG4LhTP.js} +1 -1
  45. package/dist/assets/{LockIcon-8lU2ELwJ.js → LockIcon-BYVTkf1W.js} +1 -1
  46. package/dist/assets/{Loop-BmbGUwLx.js → Loop-DoUT9kIB.js} +1 -1
  47. package/dist/assets/{MoreHoriz-Cr0ijI9A.js → MoreHoriz-B921hlWY.js} +1 -1
  48. package/dist/assets/{MoreVert-B1iH4_5V.js → MoreVert-C4XqRKE4.js} +1 -1
  49. package/dist/assets/{OpenInNew-CuPWiq3c.js → OpenInNew-DjHvMAdQ.js} +1 -1
  50. package/dist/assets/{Pagination-DcDob8Pn.js → Pagination-BlJxwbJW.js} +2 -2
  51. package/dist/assets/{PlayArrow-BMdF4bh0.js → PlayArrow-D4vxqsKR.js} +1 -1
  52. package/dist/assets/{RadioGroup-DjjhaMO1.js → RadioGroup-DFQHgpUl.js} +1 -1
  53. package/dist/assets/{Search-D5RGjNs-.js → Search-BuZJTzDq.js} +1 -1
  54. package/dist/assets/{Select-DCojKr5m.js → Select-0rvptrXH.js} +2 -2
  55. package/dist/assets/{ServerLogo-B8biNuwQ.js → ServerLogo-BS1tW7SN.js} +1 -1
  56. package/dist/assets/{Skeleton-D7s7WiMT.js → Skeleton-BQyN-0sJ.js} +3 -3
  57. package/dist/assets/{Slider-CQHQc72o.js → Slider-DaMMponj.js} +1 -1
  58. package/dist/assets/{Stepper-7vJEQecO.js → Stepper-ASzJY9Wh.js} +1 -1
  59. package/dist/assets/{TableRow-G7CkKHMa.js → TableRow-DQB9jM8W.js} +2 -2
  60. package/dist/assets/{TextField-BiWs3Roa.js → TextField-BHg3uTSC.js} +1 -1
  61. package/dist/assets/{Toolbar-BIHRXxj8.js → Toolbar-C3gbqZgN.js} +1 -1
  62. package/dist/assets/{ViewList-BlQf9CJF.js → ViewList-D9nsZOsI.js} +1 -1
  63. package/dist/assets/access-control-CZnhbObg.js +13 -0
  64. package/dist/assets/{actions-qRYQXtmd.js → actions-CFxlQnVb.js} +1 -1
  65. package/dist/assets/{add-component-core-Dk3cdqQl.js → add-component-core-CUisTrXt.js} +28 -28
  66. package/dist/assets/add-resource-Cg68DwqT.js +1 -0
  67. package/dist/assets/{addon-D37LISTV.js → addon-htB6vNOx.js} +1 -1
  68. package/dist/assets/{analytics-BVTyrWL4.js → analytics-D0Q9Rbgs.js} +8 -8
  69. package/dist/assets/api-DZcbXOwe.js +1 -0
  70. package/dist/assets/ar-B34f4HdK.js +1 -0
  71. package/dist/assets/ar-D80LEtfP.js +1 -0
  72. package/dist/assets/{audit-logs-DYpquiBv.js → audit-logs-DsHwARYT.js} +4 -4
  73. package/dist/assets/{button-8D8Sy6Jr.js → button-CtcdFik9.js} +1 -1
  74. package/dist/assets/{click-to-copy-BuvkZSYS.js → click-to-copy-DJVlTNr8.js} +1 -1
  75. package/dist/assets/{complete-C1W5A3f0.js → complete-CGMY06_W.js} +4 -4
  76. package/dist/assets/{component-D-wlgWPx.js → component-C8WremgG.js} +4 -4
  77. package/dist/assets/{config-BWOSsVWv.js → config-J8uHydLG.js} +2 -2
  78. package/dist/assets/{config-BBK_6yxt.js → config-ggazJABW.js} +1 -1
  79. package/dist/assets/{config-navigation-CCSF4RHD.js → config-navigation-COwAaVq0.js} +3 -3
  80. package/dist/assets/{config-space-DQlVUMKm.js → config-space-CPyb_eZ-.js} +1 -1
  81. package/dist/assets/confirm-BjHkE8rM.js +7 -0
  82. package/dist/assets/{connect-BkB_iVwc.js → connect-BbzlMR5b.js} +1 -1
  83. package/dist/assets/{connect-Cz-uMP2K.js → connect-BuLrPUuZ.js} +1 -1
  84. package/dist/assets/connect-to-BQINcy1q.js +54 -0
  85. package/dist/assets/{content-layout-BYCcnYXE.js → content-layout-af8Tk37j.js} +1 -1
  86. package/dist/assets/{dashboard-Bv2HZZCV.js → dashboard-CMs2secm.js} +8 -8
  87. package/dist/assets/de-CbWSpQPN.js +1 -0
  88. package/dist/assets/de-R8SpyfWD.js +1 -0
  89. package/dist/assets/{did-address-DZIM4xfX.js → did-address-BTH0hYaF.js} +1 -1
  90. package/dist/assets/domain-CMHk_z2Z.js +9 -0
  91. package/dist/assets/domain-list-DFffhAi2.js +12 -0
  92. package/dist/assets/es-D2WPMiOg.js +1 -0
  93. package/dist/assets/es-DQJXbL8c.js +1 -0
  94. package/dist/assets/exchange-passport-CQ4sTk73.js +1 -0
  95. package/dist/assets/{fallback-UK-V5wy0.js → fallback-BCzfpkx_.js} +1 -1
  96. package/dist/assets/fr-BU_67rSB.js +1 -0
  97. package/dist/assets/fr-ojA_joLk.js +1 -0
  98. package/dist/assets/{fuel-DYF8oUki.js → fuel-DAtablaD.js} +1 -1
  99. package/dist/assets/{fullpage-bvTUfN0w.js → fullpage-DY6OHAG0.js} +1 -1
  100. package/dist/assets/hi-BQAxHgmg.js +1 -0
  101. package/dist/assets/hi-D5wWKqkp.js +1 -0
  102. package/dist/assets/home-BfnWYBKb.js +1 -0
  103. package/dist/assets/id-BerMjI8d.js +1 -0
  104. package/dist/assets/id-Do44PG5N.js +1 -0
  105. package/dist/assets/iframe-Cet_1xjB.js +1 -0
  106. package/dist/assets/{index-CSYh4gtP.js → index-6HBsHgLl.js} +1 -1
  107. package/dist/assets/index-A5YVryx_.js +13 -0
  108. package/dist/assets/{index-BXhBzR7Q.js → index-BXCKXS5j.js} +7 -7
  109. package/dist/assets/index-BqsMd8kb.js +1290 -0
  110. package/dist/assets/{index-CCY6RJsj.js → index-Bt4rb2Bc.js} +1 -1
  111. package/dist/assets/index-BxJWfUoy.js +262 -0
  112. package/dist/assets/{index-Bw_Ej9Cn.js → index-ByPqHR4r.js} +9 -9
  113. package/dist/assets/{index-BdxvQHKQ.js → index-C5WzGzSj.js} +1 -1
  114. package/dist/assets/{index-C2vBcXqD.js → index-C9d9WjZ0.js} +1 -1
  115. package/dist/assets/index-CHX9AKKy.js +221 -0
  116. package/dist/assets/{index-B0WIUFz1.js → index-CKhzUQzq.js} +7 -7
  117. package/dist/assets/{index-XV3z9IXt.js → index-CZ9EO740.js} +7 -7
  118. package/dist/assets/{index-DMSZt2ZE.js → index-CgXB8tNh.js} +2 -2
  119. package/dist/assets/{index-DWCMi3WL.js → index-Cn1zzQRb.js} +1 -1
  120. package/dist/assets/{index-Ok0xRBbf.js → index-CnV_HSYC.js} +1 -1
  121. package/dist/assets/{index-DPLdk86R.js → index-D0TsVpOv.js} +1 -1
  122. package/dist/assets/{index-CNHAiDvM.js → index-DG2_Yw8Q.js} +1 -1
  123. package/dist/assets/index-DJI8p4CV.js +54 -0
  124. package/dist/assets/{index-C00VKsL6.js → index-DJvJ2Tmc.js} +1 -1
  125. package/dist/assets/{index-BgNMSa3N.js → index-DMPZsfun.js} +1 -1
  126. package/dist/assets/{index-BQaoZKI6.js → index-Dbqss1Fe.js} +8 -8
  127. package/dist/assets/index-DcHRVIKm.js +12 -0
  128. package/dist/assets/{index-DXjXo6f0.js → index-DtNxMhKO.js} +1 -1
  129. package/dist/assets/{index-BZzKaGvd.js → index-DthjsZ09.js} +1 -1
  130. package/dist/assets/{index-mNlCpV8P.js → index-Dylzk7Aa.js} +2 -2
  131. package/dist/assets/{index-dUNOHPzk.js → index-LSzcGKHj.js} +4 -4
  132. package/dist/assets/index-NdCq_QfL.js +234 -0
  133. package/dist/assets/{index-BKdL2tN6.js → index-e7NHyY1q.js} +15 -17
  134. package/dist/assets/{index-DuoMkzRH.js → index-o-Ihmjeu.js} +1 -1
  135. package/dist/assets/index-zxzrHJEP.js +11 -0
  136. package/dist/assets/{index.es-B_ckeqWW.js → index.es-BEaw1DFj.js} +3 -3
  137. package/dist/assets/index.esm-C9zb95qH.js +1 -0
  138. package/dist/assets/info-outline-rounded-BTpTFmEK.js +57 -0
  139. package/dist/assets/{invitation-DlUxWMm0.js → invitation-3r-X891j.js} +5 -5
  140. package/dist/assets/{invite-DVE8FTA3.js → invite-CrWjnaC0.js} +1 -1
  141. package/dist/assets/{issue-passport-DTrWwTY_.js → issue-passport-CCGBLWf8.js} +1 -1
  142. package/dist/assets/item-BNHxZM2p.js +1 -0
  143. package/dist/assets/ja-BO4aqMDb.js +1 -0
  144. package/dist/assets/ja-D8qblxbX.js +1 -0
  145. package/dist/assets/{jss-plugin-props-sort.esm-r4rT6imo.js → jss-plugin-props-sort.esm-CjzdPk2L.js} +4 -4
  146. package/dist/assets/ko-C8eR3MIF.js +1 -0
  147. package/dist/assets/ko-Cv-NiLYG.js +1 -0
  148. package/dist/assets/{launch-result-message-DKVZaiuQ.js → launch-result-message-D2CQfmUY.js} +1 -1
  149. package/dist/assets/{layout-r1uFQEiA.js → layout--pblhAfc.js} +2 -2
  150. package/dist/assets/{list-header-Bqj4L1f9.js → list-header-Br5YHewG.js} +1 -1
  151. package/dist/assets/localization-BwDw74Zq.js +1 -0
  152. package/dist/assets/{log-6WvRhIsI.js → log-BJjAfVl8.js} +1 -1
  153. package/dist/assets/{login-Cv7Mu9fV.js → login-BQQD6meW.js} +1 -1
  154. package/dist/assets/login-oauth-callback-Dmleuitf.js +1 -0
  155. package/dist/assets/logo-uploader-eDNDJkbn.js +127 -0
  156. package/dist/assets/{lost-passport-D1SohDZY.js → lost-passport-BWTuZR78.js} +3 -3
  157. package/dist/assets/{lottie-DGWD8Sx6.js → lottie-VJFQ68oA.js} +1 -1
  158. package/dist/assets/{notifications-B2-qZM1R.js → notifications-DwecRDR9.js} +2 -2
  159. package/dist/assets/overview-BMcMnUtN.js +12 -0
  160. package/dist/assets/{page-header-CNlMYlWe.js → page-header-EqcdM7n1.js} +1 -1
  161. package/dist/assets/{permission-rTeG4c6s.js → permission-D9TNO0kT.js} +1 -1
  162. package/dist/assets/{preferences-uQd05OUd.js → preferences-CN9EJ9NX.js} +1 -1
  163. package/dist/assets/pt-DfarVqto.js +1 -0
  164. package/dist/assets/pt-Dly5Myel.js +1 -0
  165. package/dist/assets/publish-resource-D7WXvm6u.js +1 -0
  166. package/dist/assets/{react-Cv1mxS7R.js → react-DP2ngoHF.js} +15 -15
  167. package/dist/assets/{redux-YC_VNDAW.js → redux-BpyOm6pS.js} +1 -1
  168. package/dist/assets/ru-C9Wh9IKf.js +1 -0
  169. package/dist/assets/ru-DeqfYyhe.js +1 -0
  170. package/dist/assets/{selector-UANcYMI5.js → selector-Dpt9nBq7.js} +3 -3
  171. package/dist/assets/session-DESbRLD5.js +1 -0
  172. package/dist/assets/setup-DFybTsc-.js +19 -0
  173. package/dist/assets/{slicedToArray-BDirS3b-.js → slicedToArray-SBrU6gJV.js} +2 -2
  174. package/dist/assets/spaces-DNtrZi8N.js +1 -0
  175. package/dist/assets/start-CgH7B6u8.js +186 -0
  176. package/dist/assets/{step-actions-DBbKtvUA.js → step-actions-BNn2aM9R.js} +1 -1
  177. package/dist/assets/{studio-DseQhKM-.js → studio-8gthozLh.js} +1 -1
  178. package/dist/assets/{switch-control-ChRbLafp.js → switch-control-DO3LxG2v.js} +1 -1
  179. package/dist/assets/th-B6Z2fc62.js +1 -0
  180. package/dist/assets/th-BEfUwHXu.js +1 -0
  181. package/dist/assets/{toUpper-aYHMIsgS.js → toUpper-C0A9jQTp.js} +1 -1
  182. package/dist/assets/transfer-Blq_vH7z.js +16 -0
  183. package/dist/assets/uniqBy-DN9WBw_C.js +1 -0
  184. package/dist/assets/{unsubscribe-CD5-lgl8.js → unsubscribe-CkiFEJUY.js} +1 -1
  185. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-BZgwpcda.js → use-blocklet-info-for-connect-did-spaces-Car-GPAS.js} +1 -1
  186. package/dist/assets/useAsync-D0lrbkdE.js +1 -0
  187. package/dist/assets/{useFormControl-Dg1dn0q0.js → useFormControl-b_gcFCyO.js} +1 -1
  188. package/dist/assets/{useLocalStorage-Cz7o0KhC.js → useLocalStorage-Cvbq9kSP.js} +1 -1
  189. package/dist/assets/{useSetState-CabR74SD.js → useSetState-p_ztAK1J.js} +1 -1
  190. package/dist/assets/useSlot-MeMXV443.js +1 -0
  191. package/dist/assets/user-center-B0jK0JhV.js +1 -0
  192. package/dist/assets/user-sessions-gd1hKrWX.js +1 -0
  193. package/dist/assets/{util-nCKofCSa.js → util-BkBoAuZA.js} +1 -1
  194. package/dist/assets/vi-CVN1WwF4.js +1 -0
  195. package/dist/assets/vi-Di0ynKe6.js +1 -0
  196. package/dist/assets/wrap-locale-BONrbXck.js +1 -0
  197. package/dist/assets/{zh-BjdUZ9y0.js → zh-Bgfgr3pp.js} +2 -2
  198. package/dist/assets/zh-e04FR-Ps.js +1 -0
  199. package/dist/assets/zh-tw-DlepKNg6.js +1 -0
  200. package/dist/assets/zh-tw-kaMajsUI.js +1 -0
  201. package/dist/index.html +1 -1
  202. package/dist/service-worker.js +1 -1
  203. package/package.json +28 -27
  204. package/dist/assets/access-control-2ITAVZFE.js +0 -13
  205. package/dist/assets/add-resource-DXNOMO-U.js +0 -1
  206. package/dist/assets/api-DbKOEDhE.js +0 -1
  207. package/dist/assets/ar-CxvIl-Ji.js +0 -1
  208. package/dist/assets/ar-DkKlynAd.js +0 -1
  209. package/dist/assets/confirm-B_AqBUcU.js +0 -7
  210. package/dist/assets/connect-to-DY7ehzSR.js +0 -54
  211. package/dist/assets/de-3qOdEa6P.js +0 -1
  212. package/dist/assets/de-6SF_cfoR.js +0 -1
  213. package/dist/assets/domain-DhXcq2zb.js +0 -9
  214. package/dist/assets/domain-list-DgsYQNVw.js +0 -12
  215. package/dist/assets/es-7PLonVLT.js +0 -1
  216. package/dist/assets/es-Cgmj9Jck.js +0 -1
  217. package/dist/assets/exchange-passport-B9snHp27.js +0 -1
  218. package/dist/assets/fr-1I2E8gH_.js +0 -1
  219. package/dist/assets/fr-CEcEkJ0j.js +0 -1
  220. package/dist/assets/hi-B2Zih4k5.js +0 -1
  221. package/dist/assets/hi-O7fF0c9u.js +0 -1
  222. package/dist/assets/home-CU_IGJyv.js +0 -1
  223. package/dist/assets/id-BF9h-bev.js +0 -1
  224. package/dist/assets/id-Cvddby74.js +0 -1
  225. package/dist/assets/iframe-COW-8OqG.js +0 -1
  226. package/dist/assets/index-7_LDggGs.js +0 -11
  227. package/dist/assets/index-BiG0eNQl.js +0 -233
  228. package/dist/assets/index-Cqc114Nl.js +0 -54
  229. package/dist/assets/index-D04f13KU.js +0 -1304
  230. package/dist/assets/index-DGFV1Kbv.js +0 -13
  231. package/dist/assets/index-De-cDFqF.js +0 -262
  232. package/dist/assets/index-cOMrpLvw.js +0 -221
  233. package/dist/assets/index.esm-CymxS9uw.js +0 -1
  234. package/dist/assets/item-DJ0IfbAJ.js +0 -1
  235. package/dist/assets/ja-BRl6JgyC.js +0 -1
  236. package/dist/assets/ja-D-8llXBd.js +0 -1
  237. package/dist/assets/ko-BjJKFx_R.js +0 -1
  238. package/dist/assets/ko-wij13JCo.js +0 -1
  239. package/dist/assets/localization-CWTtfgBA.js +0 -1
  240. package/dist/assets/logo-uploader-Bd9nGCUT.js +0 -127
  241. package/dist/assets/overview--CbrsoGh.js +0 -12
  242. package/dist/assets/pt-CkaW7MUR.js +0 -1
  243. package/dist/assets/pt-DwFQV4Br.js +0 -1
  244. package/dist/assets/publish-resource-DOdKon0e.js +0 -1
  245. package/dist/assets/ru-1GZMliq9.js +0 -1
  246. package/dist/assets/ru-D1AQvTQo.js +0 -1
  247. package/dist/assets/session-CNTfeDhH.js +0 -1
  248. package/dist/assets/setup-Cv13s2jR.js +0 -19
  249. package/dist/assets/spaces-BRT7WRxg.js +0 -1
  250. package/dist/assets/start-Bcl56tnq.js +0 -186
  251. package/dist/assets/th-BXoQZNC4.js +0 -1
  252. package/dist/assets/th-Bc32gh20.js +0 -1
  253. package/dist/assets/transfer-DTM2UHnW.js +0 -16
  254. package/dist/assets/ua-parser-Ca9ZhtBr.js +0 -57
  255. package/dist/assets/uniqBy-BkV8rpNe.js +0 -1
  256. package/dist/assets/useAsync-COTc7rmY.js +0 -1
  257. package/dist/assets/useSlot-Ceul9GiJ.js +0 -1
  258. package/dist/assets/user-center-6Xre-wMU.js +0 -1
  259. package/dist/assets/user-sessions-B85QTl3T.js +0 -1
  260. package/dist/assets/vi-BnooUqta.js +0 -1
  261. package/dist/assets/vi-CRasBMRh.js +0 -1
  262. package/dist/assets/wrap-locale-bIxHxEdd.js +0 -1
  263. package/dist/assets/zh-B75pu7gp.js +0 -1
  264. package/dist/assets/zh-tw-BYDo5dcg.js +0 -1
  265. package/dist/assets/zh-tw-prJAtGne.js +0 -1
  266. /package/api/libs/auth/adapters/{auth0 → auth0-legacy}/authentication-client.js +0 -0
  267. /package/api/libs/auth/adapters/{auth0 → auth0-legacy}/index.js +0 -0
  268. /package/api/libs/auth/adapters/{auth0 → auth0-legacy}/management-client.js +0 -0
@@ -1,4 +1,4 @@
1
- import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as ae,j as o,aI as T,aJ as Me,cZ as eo,cK as oo,bo as oe,ct as ro,c_ as no,P as n,U as ie,V as le,bT as v,ac as to,ay as de,L as Q,T as F,b as ao,az as Re,B as C,bU as so,Z as U,c$ as io,H as Te,a3 as lo,d0 as co,h as po,d1 as uo,d2 as ho}from"./index-D04f13KU.js";import{T as xo}from"./Toolbar-BIHRXxj8.js";import{H as Be}from"./Hidden-BIcc-Ri_.js";import{d as mo}from"./MoreHoriz-Cr0ijI9A.js";import{d as fo}from"./ExpandMore-BgRJle39.js";const se={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"};function go(e){return Pe("MuiAppBar",e)}ze("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const bo=["className","color","enableColorOnDark","position"],vo=e=>{const{color:r,position:t,classes:a}=e,s={root:["root",`color${W(r)}`,`position${W(t)}`]};return Me(s,go,a)},J=(e,r)=>e?`${e==null?void 0:e.replace(")","")}, ${r})`:r,yo=ee(Ne,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[`position${W(t.position)}`],r[`color${W(t.color)}`]]}})(({theme:e,ownerState:r})=>{const t=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return P({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},r.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},r.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},r.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},r.position==="static"&&{position:"static"},r.position==="relative"&&{position:"relative"},!e.vars&&P({},r.color==="default"&&{backgroundColor:t,color:e.palette.getContrastText(t)},r.color&&r.color!=="default"&&r.color!=="inherit"&&r.color!=="transparent"&&{backgroundColor:e.palette[r.color].main,color:e.palette[r.color].contrastText},r.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!r.enableColorOnDark&&{backgroundColor:null,color:null},r.color==="transparent"&&P({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&P({},r.color==="default"&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette.AppBar.defaultBg:J(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?e.vars.palette.text.primary:J(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette[r.color].main:J(e.vars.palette.AppBar.darkBg,e.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?e.vars.palette[r.color].contrastText:J(e.vars.palette.AppBar.darkColor,e.vars.palette[r.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:r.color==="inherit"?"inherit":"var(--AppBar-color)"},r.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),jo=l.forwardRef(function(r,t){const a=Ce({props:r,name:"MuiAppBar"}),{className:s,color:c="primary",enableColorOnDark:d=!1,position:i="fixed"}=a,p=ae(a,bo),u=P({},a,{color:c,position:i,enableColorOnDark:d}),x=vo(u);return o.jsx(yo,P({square:!0,component:"header",ownerState:u,elevation:4,className:T(x.root,s,i==="fixed"&&"mui-fixed"),ref:t},p))}),wo=jo;function ko(e){return Pe("MuiDrawer",e)}ze("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const $o=["BackdropProps"],Po=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Le=(e,r)=>{const{ownerState:t}=e;return[r.root,(t.variant==="permanent"||t.variant==="persistent")&&r.docked,r.modal]},zo=e=>{const{classes:r,anchor:t,variant:a}=e,s={root:["root"],docked:[(a==="permanent"||a==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${W(t)}`,a!=="temporary"&&`paperAnchorDocked${W(t)}`]};return Me(s,ko,r)},No=ee(eo,{name:"MuiDrawer",slot:"Root",overridesResolver:Le})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),ke=ee("div",{shouldForwardProp:oo,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Le})({flex:"0 0 auto"}),Co=ee(Ne,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.paper,r[`paperAnchor${W(t.anchor)}`],t.variant!=="temporary"&&r[`paperAnchorDocked${W(t.anchor)}`]]}})(({theme:e,ownerState:r})=>P({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},r.anchor==="left"&&{left:0},r.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},r.anchor==="right"&&{right:0},r.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},r.anchor==="left"&&r.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},r.anchor==="top"&&r.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},r.anchor==="right"&&r.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},r.anchor==="bottom"&&r.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Ae={left:"right",right:"left",top:"down",bottom:"up"};function Mo(e){return["left","right"].indexOf(e)!==-1}function Ro({direction:e},r){return e==="rtl"&&Mo(r)?Ae[r]:r}const To=l.forwardRef(function(r,t){const a=Ce({props:r,name:"MuiDrawer"}),s=oe(),c=ro(),d={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:p,children:u,className:x,elevation:m=16,hideBackdrop:j=!1,ModalProps:{BackdropProps:y}={},onClose:z,open:g=!1,PaperProps:b={},SlideProps:N,TransitionComponent:w=no,transitionDuration:M=d,variant:R="temporary"}=a,I=ae(a.ModalProps,$o),k=ae(a,Po),$=l.useRef(!1);l.useEffect(()=>{$.current=!0},[]);const _=Ro({direction:c?"rtl":"ltr"},i),B=P({},a,{anchor:i,elevation:m,open:g,variant:R},k),L=zo(B),Z=o.jsx(Co,P({elevation:R==="temporary"?m:0,square:!0},b,{className:T(L.paper,b.className),ownerState:B,children:u}));if(R==="permanent")return o.jsx(ke,P({className:T(L.root,L.docked,x),ownerState:B,ref:t},k,{children:Z}));const q=o.jsx(w,P({in:g,direction:Ae[_],timeout:M,appear:$.current},N,{children:Z}));return R==="persistent"?o.jsx(ke,P({className:T(L.root,L.docked,x),ownerState:B,ref:t},k,{children:q})):o.jsx(No,P({BackdropProps:P({},p,y,{transitionDuration:M}),className:T(L.root,L.modal,x),open:g,ownerState:B,onClose:z,hideBackdrop:j,ref:t},k,I,{children:q}))}),De=To,Ie=l.createContext(),Bo=e=>{const r=l.useContext(Ie);return l.useLayoutEffect(()=>{e&&r.configure(e)},[]),r};function _e({children:e,...r}){const[t,a]=l.useState({inFullPage:!1,showToggleButton:!1,headerVisibleInFullPage:!0,footerVisibleInFullPage:!1,sidebarVisibleInFullPage:!1}),s=()=>{a(d=>({...d,inFullPage:!d.inFullPage}))},c=l.useMemo(()=>({...t,headerVisible:!t.inFullPage||t.headerVisibleInFullPage,footerVisible:!t.inFullPage||t.footerVisibleInFullPage,sidebarVisible:!t.inFullPage||t.sidebarVisibleInFullPage,toggleFullPage:s,configure:d=>a(i=>({...i,...d}))}),[t]);return o.jsx(Ie.Provider,{value:c,...r,children:e})}_e.propTypes={children:n.node.isRequired};var ce={},Lo=le;Object.defineProperty(ce,"__esModule",{value:!0});var Fe=ce.default=void 0,Ao=Lo(ie()),Do=o;Fe=ce.default=(0,Ao.default)((0,Do.jsx)("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");var pe={},Io=le;Object.defineProperty(pe,"__esModule",{value:!0});var We=pe.default=void 0,_o=Io(ie()),Fo=o;We=pe.default=(0,_o.default)((0,Fo.jsx)("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59z"}),"CloseFullscreen");function ue({name:e,size:r,alt:t,color:a,style:s,prefix:c,showBadge:d,...i}){const p=`${c}/${e}-${a.replace(/^#/,"")}.png`;return o.jsxs(Wo,{style:{width:r,height:r},children:[o.jsx(to,{width:r,height:r,alt:t||e,src:p,style:Object.assign({width:r},s),...i}),d&&o.jsx("i",{className:"badge-point"})]})}ue.propTypes={name:n.string.isRequired,size:n.number,color:n.string,alt:n.string,style:n.object,prefix:n.string,showBadge:n.bool};ue.defaultProps={size:36,color:"#000000",alt:"",style:{},prefix:"/images",showBadge:!1};const Wo=v("div")`
1
+ import{aD as Pe,aC as ze,aE as ee,ag as Ne,aF as W,aH as P,r as l,aL as Ce,aG as ae,j as o,aJ as T,aK as Me,d7 as eo,cV as oo,bp as oe,cG as ro,d8 as no,P as n,W as ie,X as le,c1 as v,ad as to,az as de,L as Q,T as F,b as ao,aA as Re,B as C,c2 as so,y as S,d9 as io,H as Te,a4 as lo,da as co,h as po,db as uo,dc as ho}from"./index-BqsMd8kb.js";import{T as xo}from"./Toolbar-C3gbqZgN.js";import{H as Be}from"./Hidden-DWKJv_Ts.js";import{d as mo}from"./MoreHoriz-B921hlWY.js";import{d as fo}from"./ExpandMore-CMOFmrRl.js";const se={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"};function go(e){return Pe("MuiAppBar",e)}ze("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const bo=["className","color","enableColorOnDark","position"],vo=e=>{const{color:r,position:t,classes:a}=e,s={root:["root",`color${W(r)}`,`position${W(t)}`]};return Me(s,go,a)},K=(e,r)=>e?`${e==null?void 0:e.replace(")","")}, ${r})`:r,yo=ee(Ne,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[`position${W(t.position)}`],r[`color${W(t.color)}`]]}})(({theme:e,ownerState:r})=>{const t=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return P({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},r.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},r.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},r.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},r.position==="static"&&{position:"static"},r.position==="relative"&&{position:"relative"},!e.vars&&P({},r.color==="default"&&{backgroundColor:t,color:e.palette.getContrastText(t)},r.color&&r.color!=="default"&&r.color!=="inherit"&&r.color!=="transparent"&&{backgroundColor:e.palette[r.color].main,color:e.palette[r.color].contrastText},r.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!r.enableColorOnDark&&{backgroundColor:null,color:null},r.color==="transparent"&&P({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&P({},r.color==="default"&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette.AppBar.defaultBg:K(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?e.vars.palette.text.primary:K(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette[r.color].main:K(e.vars.palette.AppBar.darkBg,e.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?e.vars.palette[r.color].contrastText:K(e.vars.palette.AppBar.darkColor,e.vars.palette[r.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:r.color==="inherit"?"inherit":"var(--AppBar-color)"},r.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),jo=l.forwardRef(function(r,t){const a=Ce({props:r,name:"MuiAppBar"}),{className:s,color:c="primary",enableColorOnDark:d=!1,position:i="fixed"}=a,p=ae(a,bo),u=P({},a,{color:c,position:i,enableColorOnDark:d}),x=vo(u);return o.jsx(yo,P({square:!0,component:"header",ownerState:u,elevation:4,className:T(x.root,s,i==="fixed"&&"mui-fixed"),ref:t},p))}),wo=jo;function ko(e){return Pe("MuiDrawer",e)}ze("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const $o=["BackdropProps"],Po=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Le=(e,r)=>{const{ownerState:t}=e;return[r.root,(t.variant==="permanent"||t.variant==="persistent")&&r.docked,r.modal]},zo=e=>{const{classes:r,anchor:t,variant:a}=e,s={root:["root"],docked:[(a==="permanent"||a==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${W(t)}`,a!=="temporary"&&`paperAnchorDocked${W(t)}`]};return Me(s,ko,r)},No=ee(eo,{name:"MuiDrawer",slot:"Root",overridesResolver:Le})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),ke=ee("div",{shouldForwardProp:oo,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Le})({flex:"0 0 auto"}),Co=ee(Ne,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.paper,r[`paperAnchor${W(t.anchor)}`],t.variant!=="temporary"&&r[`paperAnchorDocked${W(t.anchor)}`]]}})(({theme:e,ownerState:r})=>P({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},r.anchor==="left"&&{left:0},r.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},r.anchor==="right"&&{right:0},r.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},r.anchor==="left"&&r.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},r.anchor==="top"&&r.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},r.anchor==="right"&&r.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},r.anchor==="bottom"&&r.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Ae={left:"right",right:"left",top:"down",bottom:"up"};function Mo(e){return["left","right"].indexOf(e)!==-1}function Ro({direction:e},r){return e==="rtl"&&Mo(r)?Ae[r]:r}const To=l.forwardRef(function(r,t){const a=Ce({props:r,name:"MuiDrawer"}),s=oe(),c=ro(),d={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:p,children:u,className:x,elevation:m=16,hideBackdrop:j=!1,ModalProps:{BackdropProps:y}={},onClose:z,open:g=!1,PaperProps:b={},SlideProps:N,TransitionComponent:w=no,transitionDuration:M=d,variant:R="temporary"}=a,I=ae(a.ModalProps,$o),k=ae(a,Po),$=l.useRef(!1);l.useEffect(()=>{$.current=!0},[]);const _=Ro({direction:c?"rtl":"ltr"},i),B=P({},a,{anchor:i,elevation:m,open:g,variant:R},k),L=zo(B),J=o.jsx(Co,P({elevation:R==="temporary"?m:0,square:!0},b,{className:T(L.paper,b.className),ownerState:B,children:u}));if(R==="permanent")return o.jsx(ke,P({className:T(L.root,L.docked,x),ownerState:B,ref:t},k,{children:J}));const q=o.jsx(w,P({in:g,direction:Ae[_],timeout:M,appear:$.current},N,{children:J}));return R==="persistent"?o.jsx(ke,P({className:T(L.root,L.docked,x),ownerState:B,ref:t},k,{children:q})):o.jsx(No,P({BackdropProps:P({},p,y,{transitionDuration:M}),className:T(L.root,L.modal,x),open:g,ownerState:B,onClose:z,hideBackdrop:j,ref:t},k,I,{children:q}))}),De=To,Ie=l.createContext(),Bo=e=>{const r=l.useContext(Ie);return l.useLayoutEffect(()=>{e&&r.configure(e)},[]),r};function _e({children:e,...r}){const[t,a]=l.useState({inFullPage:!1,showToggleButton:!1,headerVisibleInFullPage:!0,footerVisibleInFullPage:!1,sidebarVisibleInFullPage:!1}),s=()=>{a(d=>({...d,inFullPage:!d.inFullPage}))},c=l.useMemo(()=>({...t,headerVisible:!t.inFullPage||t.headerVisibleInFullPage,footerVisible:!t.inFullPage||t.footerVisibleInFullPage,sidebarVisible:!t.inFullPage||t.sidebarVisibleInFullPage,toggleFullPage:s,configure:d=>a(i=>({...i,...d}))}),[t]);return o.jsx(Ie.Provider,{value:c,...r,children:e})}_e.propTypes={children:n.node.isRequired};var ce={},Lo=le;Object.defineProperty(ce,"__esModule",{value:!0});var Fe=ce.default=void 0,Ao=Lo(ie()),Do=o;Fe=ce.default=(0,Ao.default)((0,Do.jsx)("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");var pe={},Io=le;Object.defineProperty(pe,"__esModule",{value:!0});var We=pe.default=void 0,_o=Io(ie()),Fo=o;We=pe.default=(0,_o.default)((0,Fo.jsx)("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59z"}),"CloseFullscreen");function ue({name:e,size:r,alt:t,color:a,style:s,prefix:c,showBadge:d,...i}){const p=`${c}/${e}-${a.replace(/^#/,"")}.png`;return o.jsxs(Wo,{style:{width:r,height:r},children:[o.jsx(to,{width:r,height:r,alt:t||e,src:p,style:Object.assign({width:r},s),...i}),d&&o.jsx("i",{className:"badge-point"})]})}ue.propTypes={name:n.string.isRequired,size:n.number,color:n.string,alt:n.string,style:n.object,prefix:n.string,showBadge:n.bool};ue.defaultProps={size:36,color:"#000000",alt:"",style:{},prefix:"/images",showBadge:!1};const Wo=v("div")`
2
2
  position: relative;
3
3
  .badge-point {
4
4
  position: absolute;
@@ -10,7 +10,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
10
10
  top: 0;
11
11
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3), 0px 0px 20px rgba(0, 0, 0, 0.1);
12
12
  }
13
- `;var Oe=function(r){return o.jsx("svg",{...r,children:o.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF",children:[o.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),o.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Oe.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var He=function(r){return o.jsx("svg",{...r,children:o.jsx("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};He.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};var Ve=function(r){return o.jsx("svg",{...r,children:o.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#000",children:[o.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),o.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Ve.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var qe=function(r){return o.jsx("svg",{...r,children:o.jsx("path",{fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};qe.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};function S({showText:e,showLogo:r,mode:t,layout:a,...s}){const c=t==="light"?o.jsx(Oe,{}):o.jsx(Ve,{}),d=t==="light"?o.jsx(He,{className:"logo-text"}):o.jsx(qe,{className:"logo-text"});return o.jsxs(Oo,{layout:a,...s,children:[r&&c,e&&d]})}S.propTypes={mode:n.oneOf(["light","dark"]),layout:n.oneOf(["vertical","horizontal"]),showText:n.bool,showLogo:n.bool};S.defaultProps={mode:"dark",layout:"vertical",showText:!0,showLogo:!0};const Oo=v("span")`
13
+ `;var Oe=function(r){return o.jsx("svg",{...r,children:o.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF",children:[o.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),o.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Oe.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var He=function(r){return o.jsx("svg",{...r,children:o.jsx("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};He.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};var Ve=function(r){return o.jsx("svg",{...r,children:o.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#000",children:[o.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),o.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Ve.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var qe=function(r){return o.jsx("svg",{...r,children:o.jsx("path",{fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};qe.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};function U({showText:e,showLogo:r,mode:t,layout:a,...s}){const c=t==="light"?o.jsx(Oe,{}):o.jsx(Ve,{}),d=t==="light"?o.jsx(He,{className:"logo-text"}):o.jsx(qe,{className:"logo-text"});return o.jsxs(Oo,{layout:a,...s,children:[r&&c,e&&d]})}U.propTypes={mode:n.oneOf(["light","dark"]),layout:n.oneOf(["vertical","horizontal"]),showText:n.bool,showLogo:n.bool};U.defaultProps={mode:"dark",layout:"vertical",showText:!0,showLogo:!0};const Oo=v("span")`
14
14
  display: inline-flex;
15
15
  flex-direction: ${e=>e.layout==="horizontal"?"row":"column"};
16
16
  justify-content: center;
@@ -20,7 +20,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
20
20
  ${e=>e.layout==="vertical"?"margin-top: 8px;":""}
21
21
  ${e=>e.layout==="vertical"?"":"margin-left: 8px;"};
22
22
  }
23
- `;function he({images:e,links:r,prefix:t,addons:a,logo:s,...c}){const d=oe(),i=de(),p=(u,x)=>new RegExp(`/${x}`).test(i.pathname);return o.jsxs(Ho,{...c,children:[o.jsx(Q,{to:"/",className:"sidebar-logo",children:s||o.jsx(S,{showText:!1,size:20})}),r.map(({url:u,name:x,title:m,showBadge:j})=>{const y=p(u,x);return o.jsxs(Vo,{component:Q,selected:y,to:u,children:[o.jsx(ue,{name:e[x],size:36,color:y?"#00c2c4":d.typography.color.main,prefix:t,showBadge:j}),o.jsx(F,{component:"span",className:"menu-title",children:m})]},u)}),o.jsx("div",{style:{flex:1}}),a]})}he.propTypes={images:n.object.isRequired,links:n.array.isRequired,prefix:n.string,addons:n.any,logo:n.any};he.defaultProps={prefix:"/images",addons:null,logo:null};const Ho=l.memo(v("div")`
23
+ `;function he({images:e,links:r,prefix:t,addons:a,logo:s,...c}){const d=oe(),i=de(),p=(u,x)=>new RegExp(`/${x}`).test(i.pathname);return o.jsxs(Ho,{...c,children:[o.jsx(Q,{to:"/",className:"sidebar-logo",children:s||o.jsx(U,{showText:!1,size:20})}),r.map(({url:u,name:x,title:m,showBadge:j})=>{const y=p(u,x);return o.jsxs(Vo,{component:Q,selected:y,to:u,children:[o.jsx(ue,{name:e[x],size:36,color:y?"#00c2c4":d.typography.color.main,prefix:t,showBadge:j}),o.jsx(F,{component:"span",className:"menu-title",children:m})]},u)}),o.jsx("div",{style:{flex:1}}),a]})}he.propTypes={images:n.object.isRequired,links:n.array.isRequired,prefix:n.string,addons:n.any,logo:n.any};he.defaultProps={prefix:"/images",addons:null,logo:null};const Ho=l.memo(v("div")`
24
24
  flex: 1;
25
25
  display: flex;
26
26
  flex-direction: column;
@@ -70,7 +70,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
70
70
  color: ${e=>e.theme.palette.text.primary};
71
71
  }
72
72
  }
73
- `;var xe={},qo=le;Object.defineProperty(xe,"__esModule",{value:!0});var re=xe.default=void 0,Eo=qo(ie()),Uo=o;re=xe.default=(0,Eo.default)((0,Uo.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");const So=v(wo)`
73
+ `;var xe={},qo=le;Object.defineProperty(xe,"__esModule",{value:!0});var re=xe.default=void 0,Eo=qo(ie()),So=o;re=xe.default=(0,Eo.default)((0,So.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");const Uo=v(wo)`
74
74
  && {
75
75
  z-index: ${e=>e.theme.zIndex.drawer};
76
76
  background: ${e=>e.theme.palette.background.default};
@@ -140,7 +140,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
140
140
  display: block;
141
141
  }
142
142
  }
143
- `;function me({children:e,brand:r,brandAddon:t,description:a,addons:s,onToggleMenu:c,homeUrl:d,logo:i,...p}){return o.jsx(So,{position:"sticky",className:"header",...p,children:o.jsxs(xo,{disableGutters:!1,className:"header-toolbar",children:[o.jsx(Re,{color:"inherit","aria-label":"open drawer",edge:"start",className:"header-menu","aira-label":"header menu button",onClick:c,children:o.jsx(re,{})}),o.jsxs(Q,{to:d,className:"header-link",children:[o.jsx(Be,{mdDown:!0,children:o.jsx("div",{className:"header-logo",children:i||o.jsx(S,{showText:!1})})}),o.jsxs("div",{className:"header-title",children:[o.jsxs(F,{component:"h2",noWrap:!0,className:"header-title__primary",children:[r,t]}),o.jsx(F,{component:"p",noWrap:!0,className:"header-title__secondary",children:a})]})]}),o.jsx(C,{flexGrow:1}),!!e&&o.jsx("div",{className:"header-children",children:e}),o.jsx("div",{className:"header-addons",children:s})]})})}me.propTypes={onToggleMenu:n.func.isRequired,brand:n.string.isRequired,brandAddon:n.object,description:n.any.isRequired,children:n.any,addons:n.any,homeUrl:n.string,logo:n.any};me.defaultProps={children:null,addons:null,brandAddon:null,homeUrl:"/",logo:null};function H(e){var m;const r=so(e,H,["dark","style"]),{className:t,copyStart:a,style:s,brand:c,dark:d,addon:i}=r,p=`${new Date().getFullYear()}`,u=`${a}`,x=p===u?p:`${u}-${p}`;return o.jsxs(Go,{className:t,style:s,dark:d,children:[o.jsx(U,{maxWidth:!1,children:o.jsxs(F,{component:"div",className:"footer",children:[o.jsxs(F,{component:"p",className:"footer-item",children:[o.jsxs("span",{className:"footer-copy",children:["Copyright © ",x," "]}),o.jsx("span",{className:"footer-brand",children:c})]}),i&&o.jsx(F,{component:"div",className:"footer-item",sx:{order:{xs:"-1",md:"initial"},ml:{xs:0,md:"auto"},width:{xs:"100%",md:"auto"}},children:i}),o.jsxs(F,{component:"p",className:"footer-item",style:{justifyContent:"flex-end",flexShrink:0},children:["Powered by",o.jsx(S,{mode:d?"light":"dark",layout:"horizontal",className:"logo-container"})]})]})}),o.jsx(C,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(m=window==null?void 0:window.blocklet)==null?void 0:m.version})]})}H.propTypes={dark:n.bool,className:n.string,copyStart:n.oneOfType([n.string,n.number]),brand:n.string,style:n.object,addon:n.node};H.defaultProps={dark:!1,brand:"ArcBlock",copyStart:"2017",className:"",style:{},addon:null};const Go=v("div",{shouldForwardProp:e=>e!=="dark"})`
143
+ `;function me({children:e,brand:r,brandAddon:t,description:a,addons:s,onToggleMenu:c,homeUrl:d,logo:i,...p}){return o.jsx(Uo,{position:"sticky",className:"header",...p,children:o.jsxs(xo,{disableGutters:!1,className:"header-toolbar",children:[o.jsx(Re,{color:"inherit","aria-label":"open drawer",edge:"start",className:"header-menu","aira-label":"header menu button",onClick:c,children:o.jsx(re,{})}),o.jsxs(Q,{to:d,className:"header-link",children:[o.jsx(Be,{mdDown:!0,children:o.jsx("div",{className:"header-logo",children:i||o.jsx(U,{showText:!1})})}),o.jsxs("div",{className:"header-title",children:[o.jsxs(F,{component:"h2",noWrap:!0,className:"header-title__primary",children:[r,t]}),o.jsx(F,{component:"p",noWrap:!0,className:"header-title__secondary",children:a})]})]}),o.jsx(C,{flexGrow:1}),!!e&&o.jsx("div",{className:"header-children",children:e}),o.jsx("div",{className:"header-addons",children:s})]})})}me.propTypes={onToggleMenu:n.func.isRequired,brand:n.string.isRequired,brandAddon:n.object,description:n.any.isRequired,children:n.any,addons:n.any,homeUrl:n.string,logo:n.any};me.defaultProps={children:null,addons:null,brandAddon:null,homeUrl:"/",logo:null};function H(e){var m;const r=so(e,H,["dark","style"]),{className:t,copyStart:a,style:s,brand:c,dark:d,addon:i}=r,p=`${new Date().getFullYear()}`,u=`${a}`,x=p===u?p:`${u}-${p}`;return o.jsxs(Go,{className:t,style:s,dark:d,children:[o.jsx(S,{maxWidth:!1,children:o.jsxs(F,{component:"div",className:"footer",children:[o.jsxs(F,{component:"p",className:"footer-item",children:[o.jsxs("span",{className:"footer-copy",children:["Copyright © ",x," "]}),o.jsx("span",{className:"footer-brand",children:c})]}),i&&o.jsx(F,{component:"div",className:"footer-item",sx:{order:{xs:"-1",md:"initial"},ml:{xs:0,md:"auto"},width:{xs:"100%",md:"auto"}},children:i}),o.jsxs(F,{component:"p",className:"footer-item",style:{justifyContent:"flex-end",flexShrink:0},children:["Powered by",o.jsx(U,{mode:d?"light":"dark",layout:"horizontal",className:"logo-container"})]})]})}),o.jsx(C,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(m=window==null?void 0:window.blocklet)==null?void 0:m.version})]})}H.propTypes={dark:n.bool,className:n.string,copyStart:n.oneOfType([n.string,n.number]),brand:n.string,style:n.object,addon:n.node};H.defaultProps={dark:!1,brand:"ArcBlock",copyStart:"2017",className:"",style:{},addon:null};const Go=v("div",{shouldForwardProp:e=>e!=="dark"})`
144
144
  position: relative;
145
145
  margin-top: 64px;
146
146
  padding: 24px 0 32px;
@@ -228,7 +228,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
228
228
  box-shadow: 2px 16px 10px 0 rgba(0, 0, 0, ${e=>e.theme.mode==="light"?.05:.5});
229
229
  border: 0;
230
230
  }
231
- `;function fe({children:e,title:r,brand:t,description:a,brandAddon:s,headerAddon:c,images:d,links:i,prefix:p,fullWidth:u,contentLayout:x,className:m,homeUrl:j,logo:y,...z}){const b=io(document.body),N=(b==null?void 0:b.width)||0,[w,M]=l.useState(N>=960?"permanent":"temporary"),[R,I]=l.useState(w==="permanent");l.useEffect(()=>{const _=N>=960?"permanent":"temporary";M(_),I(_!=="temporary")},[N]);const k=()=>{I(!R)},$=u||x==="row";return o.jsxs(Yo,{className:`dashboard ${m}`,...z,children:[o.jsx(Te,{title:`${r}-${t}`}),o.jsx(me,{className:"dashboard__header",onToggleMenu:k,brand:t,brandAddon:s,description:a,addons:c,homeUrl:j,logo:y}),o.jsxs(C,{display:"flex",className:"dashboard__body",children:[o.jsx(De,{variant:w,className:"drawer",classes:{paper:"drawerPaper"},open:R,onClose:k,ModalProps:{disablePortal:!0,keepMounted:!0},children:o.jsx(he,{className:"dashboard__sidebar",images:d,links:i,prefix:p,logo:y})}),o.jsxs(C,{className:"dashboard__main",children:[o.jsx(U,{maxWidth:$?!1:"lg",className:"dashboard__content",children:e}),o.jsx(H,{})]})]})]})}fe.propTypes={children:n.any.isRequired,title:n.string,brand:n.string.isRequired,links:n.array.isRequired,images:n.object.isRequired,brandAddon:n.object,description:n.any.isRequired,headerAddon:n.any,prefix:n.string,contentLayout:n.oneOf(["row","column"]),fullWidth:n.bool,className:n.string,homeUrl:n.string,logo:n.any};fe.defaultProps={title:"Home",contentLayout:"column",headerAddon:null,brandAddon:null,prefix:"/images",fullWidth:!1,className:"",homeUrl:"/",logo:null};function Ee({height:e,...r}){return o.jsx(Ko,{height:e,...r})}Ee.propTypes={height:n.oneOfType([n.number,n.string]).isRequired};const Ko=v(C)`
231
+ `;function fe({children:e,title:r,brand:t,description:a,brandAddon:s,headerAddon:c,images:d,links:i,prefix:p,fullWidth:u,contentLayout:x,className:m,homeUrl:j,logo:y,...z}){const b=io(document.body),N=(b==null?void 0:b.width)||0,[w,M]=l.useState(N>=960?"permanent":"temporary"),[R,I]=l.useState(w==="permanent");l.useEffect(()=>{const _=N>=960?"permanent":"temporary";M(_),I(_!=="temporary")},[N]);const k=()=>{I(!R)},$=u||x==="row";return o.jsxs(Yo,{className:`dashboard ${m}`,...z,children:[o.jsx(Te,{title:`${r}-${t}`}),o.jsx(me,{className:"dashboard__header",onToggleMenu:k,brand:t,brandAddon:s,description:a,addons:c,homeUrl:j,logo:y}),o.jsxs(C,{display:"flex",className:"dashboard__body",children:[o.jsx(De,{variant:w,className:"drawer",classes:{paper:"drawerPaper"},open:R,onClose:k,ModalProps:{disablePortal:!0,keepMounted:!0},children:o.jsx(he,{className:"dashboard__sidebar",images:d,links:i,prefix:p,logo:y})}),o.jsxs(C,{className:"dashboard__main",children:[o.jsx(S,{maxWidth:$?!1:"lg",className:"dashboard__content",children:e}),o.jsx(H,{})]})]})]})}fe.propTypes={children:n.any.isRequired,title:n.string,brand:n.string.isRequired,links:n.array.isRequired,images:n.object.isRequired,brandAddon:n.object,description:n.any.isRequired,headerAddon:n.any,prefix:n.string,contentLayout:n.oneOf(["row","column"]),fullWidth:n.bool,className:n.string,homeUrl:n.string,logo:n.any};fe.defaultProps={title:"Home",contentLayout:"column",headerAddon:null,brandAddon:null,prefix:"/images",fullWidth:!1,className:"",homeUrl:"/",logo:null};function Ee({height:e,...r}){return o.jsx(Xo,{height:e,...r})}Ee.propTypes={height:n.oneOfType([n.number,n.string]).isRequired};const Xo=v(C)`
232
232
  overflow: hidden;
233
233
  &:before {
234
234
  content: '';
@@ -241,7 +241,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
241
241
  float: left;
242
242
  white-space: nowrap;
243
243
  }
244
- `;function V({logo:e,brand:r,brandAddon:t,description:a,children:s,addons:c,prepend:d,align:i,maxWidth:p,homeLink:u,...x}){const m=l.useRef(),[j,y]=l.useState("0px"),z={minWidth:j};l.useEffect(()=>{m.current&&y(`${m.current.offsetWidth}px`)},[]);const g=()=>{const b=o.jsxs(o.Fragment,{children:[e&&o.jsx("div",{className:"header-logo",ref:m,children:e}),r&&o.jsx(Ee,{height:44,sx:{flexShrink:{xs:1}},children:o.jsxs("div",{className:"header-brand",children:[o.jsx("div",{className:"header-brand-title",children:o.jsx("h2",{children:r})}),o.jsx("div",{className:"header-brand-desc",children:a})]})})]});return typeof u=="function"?u(b):o.jsx("a",{href:u,children:b})};return o.jsx(Zo,{...x,children:o.jsxs(U,{maxWidth:p,className:"header-container",children:[d,o.jsx("div",{className:"header-brand-wrapper",style:z,children:g()}),o.jsx("div",{className:"header-brand-addon",children:t}),i==="right"&&o.jsx(C,{flexGrow:1}),s,i==="left"&&o.jsx(C,{flexGrow:1}),o.jsx("div",{className:"header-addons",children:c})]})})}V.propTypes={logo:n.node,brand:n.node,brandAddon:n.node,description:n.node,children:n.node,addons:n.node,prepend:n.node,align:n.oneOf(["left","right"]),maxWidth:n.oneOfType([n.string,n.oneOf(["xs","sm","md","lg","xl",!1])]),homeLink:n.oneOfType([n.string,n.func])};V.defaultProps={logo:null,brand:null,brandAddon:null,description:null,children:null,addons:null,prepend:null,align:"left",maxWidth:void 0,homeLink:"/"};const Zo=v("div")`
244
+ `;function V({logo:e,brand:r,brandAddon:t,description:a,children:s,addons:c,prepend:d,align:i,maxWidth:p,homeLink:u,...x}){const m=l.useRef(),[j,y]=l.useState("0px"),z={minWidth:j};l.useEffect(()=>{m.current&&y(`${m.current.offsetWidth}px`)},[]);const g=()=>{const b=o.jsxs(o.Fragment,{children:[e&&o.jsx("div",{className:"header-logo",ref:m,children:e}),r&&o.jsx(Ee,{height:44,sx:{flexShrink:{xs:1}},children:o.jsxs("div",{className:"header-brand",children:[o.jsx("div",{className:"header-brand-title",children:o.jsx("h2",{children:r})}),o.jsx("div",{className:"header-brand-desc",children:a})]})})]});return typeof u=="function"?u(b):o.jsx("a",{href:u,children:b})};return o.jsx(Jo,{...x,children:o.jsxs(S,{maxWidth:p,className:"header-container",children:[d,o.jsx("div",{className:"header-brand-wrapper",style:z,children:g()}),o.jsx("div",{className:"header-brand-addon",children:t}),i==="right"&&o.jsx(C,{flexGrow:1}),s,i==="left"&&o.jsx(C,{flexGrow:1}),o.jsx("div",{className:"header-addons",children:c})]})})}V.propTypes={logo:n.node,brand:n.node,brandAddon:n.node,description:n.node,children:n.node,addons:n.node,prepend:n.node,align:n.oneOf(["left","right"]),maxWidth:n.oneOfType([n.string,n.oneOf(["xs","sm","md","lg","xl",!1])]),homeLink:n.oneOfType([n.string,n.func])};V.defaultProps={logo:null,brand:null,brandAddon:null,description:null,children:null,addons:null,prepend:null,align:"left",maxWidth:void 0,homeLink:"/"};const Jo=v("div")`
245
245
  position: relative;
246
246
  z-index: ${e=>e.theme.zIndex.appBar};
247
247
  font-size: 14px;
@@ -337,7 +337,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
337
337
  }
338
338
  }
339
339
  }
340
- `;function ge({menu:e,prepend:r,children:t,...a}){const s=oe(),c=lo(s.breakpoints.down("md")),[d,i]=l.useState(!1),p=typeof t=="function"?t({isMobile:c,closeMenu:()=>i(!1)}):t;return t?o.jsxs(Jo,{prepend:r||o.jsx(Re,{sx:{color:s.palette.grey[500]},edge:"start",className:"header-menu","aria-label":"header menu button",onClick:()=>i(!d),children:d?o.jsx(co,{}):o.jsx(re,{})}),...a,children:[!c&&p,c&&o.jsx(De,{open:d,onClose:()=>i(!1),ModalProps:{disablePortal:!1,keepMounted:!0,BackdropComponent:null},anchor:"top",sx:{top:64,zIndex:s.zIndex.appBar-1},PaperProps:{style:{top:64,bottom:0,boxShadow:"none"}},children:o.jsx(Qo,{children:p})})]}):o.jsx(V,{prepend:r,...a})}ge.propTypes={...V.PropTypes,children:n.oneOfType([n.node,n.func])};ge.defaultProps={...V.defaultProps};const Jo=v(V)`
340
+ `;function ge({menu:e,prepend:r,children:t,...a}){const s=oe(),c=lo(s.breakpoints.down("md")),[d,i]=l.useState(!1),p=typeof t=="function"?t({isMobile:c,closeMenu:()=>i(!1)}):t;return t?o.jsxs(Ko,{prepend:r||o.jsx(Re,{sx:{color:s.palette.grey[500]},edge:"start",className:"header-menu","aria-label":"header menu button",onClick:()=>i(!d),children:d?o.jsx(co,{}):o.jsx(re,{})}),...a,children:[!c&&p,c&&o.jsx(De,{open:d,onClose:()=>i(!1),ModalProps:{disablePortal:!1,keepMounted:!0,BackdropComponent:null},anchor:"top",sx:{top:64,zIndex:s.zIndex.appBar-1},PaperProps:{style:{top:64,bottom:0,boxShadow:"none"}},children:o.jsx(Qo,{children:p})})]}):o.jsx(V,{prepend:r,...a})}ge.propTypes={...V.PropTypes,children:n.oneOfType([n.node,n.func])};ge.defaultProps={...V.defaultProps};const Ko=v(V)`
341
341
  .header-menu {
342
342
  display: none;
343
343
  }
@@ -347,7 +347,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
347
347
  margin-right: 12px;
348
348
  }
349
349
  }
350
- `,Qo=v(U)`
350
+ `,Qo=v(S)`
351
351
  padding-top: 8px;
352
352
  padding-bottom: 16px;
353
353
  .navmenu {
@@ -357,7 +357,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
357
357
  border: 0;
358
358
  }
359
359
  }
360
- `,Ue=v("nav")`
360
+ `,Se=v("nav")`
361
361
  background-color: ${e=>e.$bgColor};
362
362
  font-size: 16px;
363
363
  ul {
@@ -433,7 +433,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
433
433
  transition: transform 0.2s ease-in-out;
434
434
  }
435
435
  }
436
- `,Xo=v(Ue)`
436
+ `,Zo=v(Se)`
437
437
  padding: 8px 16px;
438
438
  min-width: 50px;
439
439
  flex-grow: 1;
@@ -480,7 +480,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
480
480
  display: block;
481
481
  }
482
482
  }
483
- `,er=v(Ue)`
483
+ `,er=v(Se)`
484
484
  font-size: 16px;
485
485
  .navmenu-root {
486
486
  display: flex;
@@ -532,7 +532,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
532
532
  .navmenu-sub--opened > .navmenu-sub-container {
533
533
  display: block;
534
534
  }
535
- `,be=l.createContext();function Se(e){return e?l.Children.toArray(e).filter(r=>r.type===Y||r.type===O):null}function Ge(e){return l.useRef(e||`navmenu-item-id-${Math.random().toString(36).slice(2)}`).current}function G({items:e,mode:r,children:t,activeId:a,textColor:s,activeTextColor:c,bgColor:d,onSelected:i,...p}){var q;if(t=Se(t),!(e!=null&&e.length)&&!(t!=null&&t.length))throw new Error("One of 'items' or 'children' is required by NavMenu component.");const[u,x]=l.useState({activeId:a,openedIds:[]}),m=l.useCallback(h=>{x(f=>({...f,activeId:h})),i==null||i(h)},[i]),j=l.useCallback(h=>{x(f=>({...f,openedIds:[...f.openedIds,h]}))},[]),y=l.useCallback(h=>{x(f=>({...f,openedIds:f.openedIds.filter(A=>A!==h)}))},[]),z=l.useMemo(()=>({...u,mode:r,activate:m,open:j,close:y}),[u,r,m,j,y]),[g,b]=l.useState(0),N=l.useRef(),w=l.useRef([]),M=l.useRef(),R=g===((q=w.current)==null?void 0:q.length),I=R?o.jsx(re,{}):o.jsx(mo,{}),k=R?{marginLeft:"0px"}:void 0,$=h=>l.Children.map(h,(f,A)=>l.cloneElement(f,{ref:D=>{w.current[A]=D}})),_=po(()=>{var je;let h=0,f=0,A=!1;const D=((je=N.current)==null?void 0:je.offsetWidth)||0,te=M.current?M.current.offsetWidth+parseFloat(window.getComputedStyle(M.current).marginLeft):0;w.current.forEach((E,Qe)=>{if(E){E.style.display="flex";const Xe=Qe>0?parseFloat(window.getComputedStyle(E).marginLeft):0,we=E.offsetWidth+Xe;D-te>=h+we&&!A?h+=we:(E.style.display="none",A=!0,f++)}}),f!==g&&b(f)});l.useEffect(()=>{if(r==="horizontal")return _(),window.addEventListener("resize",_),()=>{window.removeEventListener("resize",_)}},[r]),l.useEffect(()=>{a!=null&&x(h=>({...h,activeId:a}))},[a]);const ye=T("navmenu",`navmenu--${r}`,p.className),B=(h,f,A=!1)=>h!=null&&h.children?o.jsx(O,{id:h.id,icon:h.icon,label:h.label,ref:A?D=>{w.current[f]=D}:void 0,children:h.children.map((D,te)=>B(D,te,!1))},f):o.jsx(Y,{id:h.id,icon:h.icon,label:h.label,active:h.active,ref:A?D=>{w.current[f]=D}:void 0},f),L=e?e==null?void 0:e.slice(-g).map((h,f)=>B(h,f)):t==null?void 0:t.slice(-g),Z=r==="inline"?er:Xo;return o.jsx(be.Provider,{value:z,children:o.jsx(Z,{...p,className:ye,$textColor:s,$activeTextColor:c,$bgColor:d,children:o.jsxs("ul",{className:"navmenu-root",ref:N,children:[e?e.map((h,f)=>B(h,f,!0)):$(t),g>0&&o.jsx(O,{expandIcon:!1,icon:I,label:"",ref:M,style:k,children:L})]})})})}G.propTypes={items:n.array,mode:n.oneOf(["horizontal","vertical","inline"]),children:n.array,activeId:n.string,textColor:n.string,activeTextColor:n.string,bgColor:n.string,onSelected:n.func};G.defaultProps={items:null,mode:"horizontal",children:null,activeId:null,textColor:"#9397a1",activeTextColor:"#25292f",bgColor:"#fff",onSelected:null};const Y=l.forwardRef(({id:e,icon:r,label:t,active:a,onClick:s,...c},d)=>{const i=Ge(e),{activeId:p,activate:u}=l.useContext(be),x=T("navmenu-item",{"navmenu-item--active":p===i},c.className);l.useEffect(()=>{a&&u(i)},[a]);const m=()=>{s==null||s(),u(i)};return o.jsxs("li",{...c,className:x,onClick:m,ref:d,children:[r&&o.jsx("span",{className:"navmenu-item-icon",children:r}),o.jsx("span",{className:"navmenu-item-label",children:t})]})});Y.propTypes={id:n.string,icon:n.element,label:n.node,active:n.bool,onClick:n.func};Y.defaultProps={id:null,icon:null,label:"",active:!1,onClick:null};const O=l.forwardRef(({id:e,icon:r,label:t,children:a,expandIcon:s,...c},d)=>{const i=Ge(e),{openedIds:p,open:u,close:x,mode:m}=l.useContext(be),j=p.includes(i),y=T("navmenu-sub",{"navmenu-sub--opened":j},c.className),z=m==="inline",g=z?{onClick:()=>p.includes(i)?x(i):u(i)}:{onMouseEnter:()=>u(i),onMouseLeave:()=>x(i)},b=z?{onClick:N=>N.stopPropagation()}:{};return o.jsxs("li",{...c,className:y,...g,ref:d,children:[r&&o.jsx("span",{className:"navmenu-sub-icon",children:r}),o.jsx("span",{className:"navmenu-sub-label",children:t}),s&&o.jsx("span",{className:"navmenu-sub-expand-icon",children:(s==null?void 0:s({isOpen:j}))||s}),o.jsx("div",{className:"navmenu-sub-container",...b,children:o.jsx("ul",{className:"navmenu-sub-list",children:Se(a)})})]})});O.propTypes={id:n.string,icon:n.element,label:n.node.isRequired,children:n.array.isRequired,expandIcon:n.oneOfType([n.node,n.func])};O.defaultProps={id:null,icon:null,expandIcon:({isOpen:e})=>o.jsx(fo,{style:{transform:`rotate(${e?180:0}deg)`}})};G.Item=Y;G.Sub=O;function ne({children:e,routerLinkComponent:r,to:t,external:a,...s}){return a?o.jsx("a",{href:t,...s,children:e}):o.jsx(r,{to:t,...s,children:e})}ne.propTypes={children:n.any.isRequired,routerLinkComponent:n.elementType.isRequired,external:n.bool,to:n.oneOfType([n.string,n.object]).isRequired};ne.defaultProps={external:!1};function Ye(e){return o.jsx(ne,{routerLinkComponent:Q,...e})}function ve({className:e,...r}){const t=r.external&&typeof e=="function"?e({}):e;return o.jsx(ne,{routerLinkComponent:uo,className:t,...r})}ve.propTypes={className:n.oneOfType([n.string,n.func])};ve.defaultProps={className:""};function or(e,r){return o.jsxs("li",{className:"layout-sidebar-group",children:[o.jsx("span",{className:"layout-sidebar-group-title",children:e.title}),o.jsx("ul",{children:e.children.map(Ke)})]},`group-${e.title}-${r}`)}function Ke(e,r){var p;if((p=e.children)!=null&&p.length)return or(e,r);const{url:t,icon:a,title:s,showBadge:c,external:d,active:i}=e;return o.jsx("li",{className:"layout-sidebar-item",children:o.jsxs(ve,{external:d,to:t,className:({isActive:u})=>T("layout-sidebar-link",{"layout-sidebar-link--active":d?i:u}),children:[a&&o.jsx("span",{className:`layout-sidebar-icon ${c?"layout-sidebar-badge":""}`,children:a}),o.jsx(F,{component:"span",className:"layout-sidebar-link-text",children:s})]})},`${t}-${r}`)}function X({links:e,addons:r,dense:t,...a}){return o.jsxs(nr,{...a,className:T({"layout-sidebar-dense":t}),children:[o.jsx("ul",{children:e.map(Ke)}),o.jsx("div",{style:{flex:1}}),r]})}X.propTypes={links:n.array.isRequired,addons:n.any,dense:n.bool};X.defaultProps={addons:null,dense:!1};const rr="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",nr=v("div")`
535
+ `,be=l.createContext();function Ue(e){return e?l.Children.toArray(e).filter(r=>r.type===Y||r.type===O):null}function Ge(e){return l.useRef(e||`navmenu-item-id-${Math.random().toString(36).slice(2)}`).current}function G({items:e,mode:r,children:t,activeId:a,textColor:s,activeTextColor:c,bgColor:d,onSelected:i,...p}){var q;if(t=Ue(t),!(e!=null&&e.length)&&!(t!=null&&t.length))throw new Error("One of 'items' or 'children' is required by NavMenu component.");const[u,x]=l.useState({activeId:a,openedIds:[]}),m=l.useCallback(h=>{x(f=>({...f,activeId:h})),i==null||i(h)},[i]),j=l.useCallback(h=>{x(f=>({...f,openedIds:[...f.openedIds,h]}))},[]),y=l.useCallback(h=>{x(f=>({...f,openedIds:f.openedIds.filter(A=>A!==h)}))},[]),z=l.useMemo(()=>({...u,mode:r,activate:m,open:j,close:y}),[u,r,m,j,y]),[g,b]=l.useState(0),N=l.useRef(),w=l.useRef([]),M=l.useRef(),R=g===((q=w.current)==null?void 0:q.length),I=R?o.jsx(re,{}):o.jsx(mo,{}),k=R?{marginLeft:"0px"}:void 0,$=h=>l.Children.map(h,(f,A)=>l.cloneElement(f,{ref:D=>{w.current[A]=D}})),_=po(()=>{var je;let h=0,f=0,A=!1;const D=((je=N.current)==null?void 0:je.offsetWidth)||0,te=M.current?M.current.offsetWidth+parseFloat(window.getComputedStyle(M.current).marginLeft):0;w.current.forEach((E,Qe)=>{if(E){E.style.display="flex";const Ze=Qe>0?parseFloat(window.getComputedStyle(E).marginLeft):0,we=E.offsetWidth+Ze;D-te>=h+we&&!A?h+=we:(E.style.display="none",A=!0,f++)}}),f!==g&&b(f)});l.useEffect(()=>{if(r==="horizontal")return _(),window.addEventListener("resize",_),()=>{window.removeEventListener("resize",_)}},[r]),l.useEffect(()=>{a!=null&&x(h=>({...h,activeId:a}))},[a]);const ye=T("navmenu",`navmenu--${r}`,p.className),B=(h,f,A=!1)=>h!=null&&h.children?o.jsx(O,{id:h.id,icon:h.icon,label:h.label,ref:A?D=>{w.current[f]=D}:void 0,children:h.children.map((D,te)=>B(D,te,!1))},f):o.jsx(Y,{id:h.id,icon:h.icon,label:h.label,active:h.active,ref:A?D=>{w.current[f]=D}:void 0},f),L=e?e==null?void 0:e.slice(-g).map((h,f)=>B(h,f)):t==null?void 0:t.slice(-g),J=r==="inline"?er:Zo;return o.jsx(be.Provider,{value:z,children:o.jsx(J,{...p,className:ye,$textColor:s,$activeTextColor:c,$bgColor:d,children:o.jsxs("ul",{className:"navmenu-root",ref:N,children:[e?e.map((h,f)=>B(h,f,!0)):$(t),g>0&&o.jsx(O,{expandIcon:!1,icon:I,label:"",ref:M,style:k,children:L})]})})})}G.propTypes={items:n.array,mode:n.oneOf(["horizontal","vertical","inline"]),children:n.array,activeId:n.string,textColor:n.string,activeTextColor:n.string,bgColor:n.string,onSelected:n.func};G.defaultProps={items:null,mode:"horizontal",children:null,activeId:null,textColor:"#9397a1",activeTextColor:"#25292f",bgColor:"#fff",onSelected:null};const Y=l.forwardRef(({id:e,icon:r,label:t,active:a,onClick:s,...c},d)=>{const i=Ge(e),{activeId:p,activate:u}=l.useContext(be),x=T("navmenu-item",{"navmenu-item--active":p===i},c.className);l.useEffect(()=>{a&&u(i)},[a]);const m=()=>{s==null||s(),u(i)};return o.jsxs("li",{...c,className:x,onClick:m,ref:d,children:[r&&o.jsx("span",{className:"navmenu-item-icon",children:r}),o.jsx("span",{className:"navmenu-item-label",children:t})]})});Y.propTypes={id:n.string,icon:n.element,label:n.node,active:n.bool,onClick:n.func};Y.defaultProps={id:null,icon:null,label:"",active:!1,onClick:null};const O=l.forwardRef(({id:e,icon:r,label:t,children:a,expandIcon:s,...c},d)=>{const i=Ge(e),{openedIds:p,open:u,close:x,mode:m}=l.useContext(be),j=p.includes(i),y=T("navmenu-sub",{"navmenu-sub--opened":j},c.className),z=m==="inline",g=z?{onClick:()=>p.includes(i)?x(i):u(i)}:{onMouseEnter:()=>u(i),onMouseLeave:()=>x(i)},b=z?{onClick:N=>N.stopPropagation()}:{};return o.jsxs("li",{...c,className:y,...g,ref:d,children:[r&&o.jsx("span",{className:"navmenu-sub-icon",children:r}),o.jsx("span",{className:"navmenu-sub-label",children:t}),s&&o.jsx("span",{className:"navmenu-sub-expand-icon",children:(s==null?void 0:s({isOpen:j}))||s}),o.jsx("div",{className:"navmenu-sub-container",...b,children:o.jsx("ul",{className:"navmenu-sub-list",children:Ue(a)})})]})});O.propTypes={id:n.string,icon:n.element,label:n.node.isRequired,children:n.array.isRequired,expandIcon:n.oneOfType([n.node,n.func])};O.defaultProps={id:null,icon:null,expandIcon:({isOpen:e})=>o.jsx(fo,{style:{transform:`rotate(${e?180:0}deg)`}})};G.Item=Y;G.Sub=O;function ne({children:e,routerLinkComponent:r,to:t,external:a,...s}){return a?o.jsx("a",{href:t,...s,children:e}):o.jsx(r,{to:t,...s,children:e})}ne.propTypes={children:n.any.isRequired,routerLinkComponent:n.elementType.isRequired,external:n.bool,to:n.oneOfType([n.string,n.object]).isRequired};ne.defaultProps={external:!1};function Ye(e){return o.jsx(ne,{routerLinkComponent:Q,...e})}function ve({className:e,...r}){const t=r.external&&typeof e=="function"?e({}):e;return o.jsx(ne,{routerLinkComponent:uo,className:t,...r})}ve.propTypes={className:n.oneOfType([n.string,n.func])};ve.defaultProps={className:""};function or(e,r){return o.jsxs("li",{className:"layout-sidebar-group",children:[o.jsx("span",{className:"layout-sidebar-group-title",children:e.title}),o.jsx("ul",{children:e.children.map(Xe)})]},`group-${e.title}-${r}`)}function Xe(e,r){var p;if((p=e.children)!=null&&p.length)return or(e,r);const{url:t,icon:a,title:s,showBadge:c,external:d,active:i}=e;return o.jsx("li",{className:"layout-sidebar-item",children:o.jsxs(ve,{external:d,to:t,className:({isActive:u})=>T("layout-sidebar-link",{"layout-sidebar-link--active":d?i:u}),children:[a&&o.jsx("span",{className:`layout-sidebar-icon ${c?"layout-sidebar-badge":""}`,children:a}),o.jsx(F,{component:"span",className:"layout-sidebar-link-text",children:s})]})},`${t}-${r}`)}function Z({links:e,addons:r,dense:t,...a}){return o.jsxs(nr,{...a,className:T({"layout-sidebar-dense":t}),children:[o.jsx("ul",{children:e.map(Xe)}),o.jsx("div",{style:{flex:1}}),r]})}Z.propTypes={links:n.array.isRequired,addons:n.any,dense:n.bool};Z.defaultProps={addons:null,dense:!1};const rr="linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))",nr=v("div")`
536
536
  display: flex;
537
537
  flex-direction: column;
538
538
  ul {
@@ -655,7 +655,7 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
655
655
  margin-top: 16px;
656
656
  }
657
657
  }
658
- `;function tr({closeMenu:e,...r}){const t=de();return l.useEffect(()=>{e()},[t]),o.jsx(G,{...r})}function Ze(e,r){return e.map(t=>{var a;return(a=t.children)!=null&&a.length?{...t,label:t.title,children:Ze(t.children,r)}:{...t,label:o.jsx(Ye,{to:t.url,external:t.external,children:t.title}),active:t.external?t.active:!!ho({path:t.url,end:!1},r.pathname)}})}function K({children:e,title:r,headerProps:t,links:a=[],fullWidth:s,dense:c,footerProps:d,...i}){const p=oe(),{inFullPage:u,showToggleButton:x,headerVisible:m,footerVisible:j,sidebarVisible:y,toggleFullPage:z}=Bo(),g=de(),b=l.useMemo(()=>Ze(a,g),[g,a]),N=b.some(k=>{var $;return!!(($=k.children)!=null&&$.length)}),w=c==="auto"?b.length>=8||N:c,M=T("dashboard",{"dashboard-dense":w},i.className),I={homeLink:k=>{var $;return o.jsx(Ye,{to:(($=window.blocklet)==null?void 0:$.prefix)||"/",children:k})},...t};return o.jsxs(ar,{...i,className:M,children:[o.jsx(Te,{title:r},r),m&&o.jsx(sr,{...I,className:"dashboard-header",children:a!=null&&a.length?({isMobile:k,closeMenu:$})=>k?o.jsx(tr,{mode:"inline",items:b,closeMenu:$,bgColor:"transparent",activeTextColor:p.palette.primary.main}):null:null}),o.jsxs(C,{display:"flex",className:"dashboard-body",children:[o.jsx(Be,{mdDown:!0,children:!!(a!=null&&a.length)&&y&&o.jsx(C,{className:"dashboard-sidebar",children:w?o.jsx(X,{links:a,dense:w}):o.jsx(C,{className:"dashboard-sidebar-container",children:o.jsx(X,{links:a,dense:w})})})}),o.jsxs(C,{className:"dashboard-main",children:[x&&o.jsx(C,{sx:{position:"absolute",top:4,right:4,display:"flex",justifyContent:"center",alignItems:"center",width:24,height:24,color:"#fff",bgcolor:"rgba(158,158,158, 0.6);",borderRadius:1,cursor:"pointer"},onClick:z,children:u?o.jsx(We,{style:{fontSize:18}}):o.jsx(Fe,{style:{fontSize:18}})}),o.jsx(U,{className:"dashboard-content",...s&&{maxWidth:!1},children:e}),j&&o.jsx(H,{...d})]})]})]})}K.propTypes={children:n.any.isRequired,title:n.string,links:n.array.isRequired,headerProps:n.object,fullWidth:n.bool,sidebarWidth:n.number,dense:n.oneOf([!0,!1,"auto"])};K.defaultProps={title:"Home",headerProps:{},fullWidth:!1,sidebarWidth:120,dense:"auto"};const ar=v("div",{shouldForwardProp:e=>e!=="sidebarWidth"})`
658
+ `;function tr({closeMenu:e,...r}){const t=de();return l.useEffect(()=>{e()},[t]),o.jsx(G,{...r})}function Je(e,r){return e.map(t=>{var a;return(a=t.children)!=null&&a.length?{...t,label:t.title,children:Je(t.children,r)}:{...t,label:o.jsx(Ye,{to:t.url,external:t.external,children:t.title}),active:t.external?t.active:!!ho({path:t.url,end:!1},r.pathname)}})}function X({children:e,title:r,headerProps:t,links:a=[],fullWidth:s,dense:c,footerProps:d,...i}){const p=oe(),{inFullPage:u,showToggleButton:x,headerVisible:m,footerVisible:j,sidebarVisible:y,toggleFullPage:z}=Bo(),g=de(),b=l.useMemo(()=>Je(a,g),[g,a]),N=b.some(k=>{var $;return!!(($=k.children)!=null&&$.length)}),w=c==="auto"?b.length>=8||N:c,M=T("dashboard",{"dashboard-dense":w},i.className),I={homeLink:k=>{var $;return o.jsx(Ye,{to:(($=window.blocklet)==null?void 0:$.prefix)||"/",children:k})},...t};return o.jsxs(ar,{...i,className:M,children:[o.jsx(Te,{title:r},r),m&&o.jsx(sr,{...I,className:"dashboard-header",children:a!=null&&a.length?({isMobile:k,closeMenu:$})=>k?o.jsx(tr,{mode:"inline",items:b,closeMenu:$,bgColor:"transparent",activeTextColor:p.palette.primary.main}):null:null}),o.jsxs(C,{display:"flex",className:"dashboard-body",children:[o.jsx(Be,{mdDown:!0,children:!!(a!=null&&a.length)&&y&&o.jsx(C,{className:"dashboard-sidebar",children:w?o.jsx(Z,{links:a,dense:w}):o.jsx(C,{className:"dashboard-sidebar-container",children:o.jsx(Z,{links:a,dense:w})})})}),o.jsxs(C,{className:"dashboard-main",children:[x&&o.jsx(C,{sx:{position:"absolute",top:4,right:4,display:"flex",justifyContent:"center",alignItems:"center",width:24,height:24,color:"#fff",bgcolor:"rgba(158,158,158, 0.6);",borderRadius:1,cursor:"pointer"},onClick:z,children:u?o.jsx(We,{style:{fontSize:18}}):o.jsx(Fe,{style:{fontSize:18}})}),o.jsx(S,{className:"dashboard-content",...s&&{maxWidth:!1},children:e}),j&&o.jsx(H,{...d})]})]})]})}X.propTypes={children:n.any.isRequired,title:n.string,links:n.array.isRequired,headerProps:n.object,fullWidth:n.bool,sidebarWidth:n.number,dense:n.oneOf([!0,!1,"auto"])};X.defaultProps={title:"Home",headerProps:{},fullWidth:!1,sidebarWidth:120,dense:"auto"};const ar=v("div",{shouldForwardProp:e=>e!=="sidebarWidth"})`
659
659
  &.dashboard {
660
660
  display: flex;
661
661
  flex-direction: column;
@@ -700,8 +700,6 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
700
700
  .header-logo {
701
701
  display: flex;
702
702
  justify-content: center;
703
- /* logo 与 sidebar 中的 icon 垂直对齐, sidebarWidth - 24 * 2 */
704
- min-width: ${e=>e.sidebarWidth-24*2}px;
705
703
  }
706
704
  &.dashboard-dense {
707
705
  .header-logo {
@@ -714,4 +712,4 @@ import{aC as Pe,aB as ze,aD as ee,af as Ne,aE as W,aG as P,r as l,aK as Ce,aF as
714
712
  .header-container {
715
713
  max-width: 100%;
716
714
  }
717
- `;function Je({legacy:e,...r}){return e?o.jsx(fe,{...r}):o.jsx(_e,{children:o.jsx(K,{...r})})}Je.propTypes={...K.propTypes,legacy:n.bool,footerProps:n.shape(H.propTypes)};Je.defaultProps={...K.defaultProps,legacy:!0};export{Je as D,G as N,ge as R,Bo as u};
715
+ `;function Ke({legacy:e,...r}){return e?o.jsx(fe,{...r}):o.jsx(_e,{children:o.jsx(X,{...r})})}Ke.propTypes={...X.propTypes,legacy:n.bool,footerProps:n.shape(H.propTypes)};Ke.defaultProps={...X.defaultProps,legacy:!0};export{Ke as D,G as N,ge as R,Bo as u};
@@ -1,4 +1,4 @@
1
- import{r as g,X as y,ba as v,j as t,C as w,S as P,B as c,Y as d,P as m,W as T}from"./index-D04f13KU.js";import{P as b}from"./page-header-CNlMYlWe.js";import{u as B}from"./config-space-DQlVUMKm.js";import{C as E,D,a as N}from"./connect-to-DY7ehzSR.js";import{u as G,S as u}from"./step-actions-DBbKtvUA.js";import{S as L}from"./layout-r1uFQEiA.js";import"./Skeleton-D7s7WiMT.js";import"./Hidden-BIcc-Ri_.js";import"./spaces-BRT7WRxg.js";import"./index-C00VKsL6.js";import"./index-D-XBJ_hS.js";import"./api-DbKOEDhE.js";import"./use-blocklet-info-for-connect-did-spaces-BZgwpcda.js";import"./CloseOutlined-DzkxsEbx.js";import"./did-address-DZIM4xfX.js";import"./Link-BP6MkNEU.js";import"./DeleteOutline-BgceRLMI.js";import"./index-dUNOHPzk.js";import"./index-mNlCpV8P.js";import"./ExpandMore-BgRJle39.js";import"./ButtonGroup-crNqYhpS.js";import"./TextField-BiWs3Roa.js";import"./FormControl-D-JqMY5K.js";import"./useFormControl-Dg1dn0q0.js";import"./InputLabel-DIt1gEGj.js";import"./Select-DCojKr5m.js";import"./content-layout-BYCcnYXE.js";function l({onNext:s,onPrevious:x}){var a,r,p;const{t:i}=g.useContext(y),{blocklet:e}=v(),S=G(),{spaceGateway:j,settingStorageEndpoint:C,updateSpaceGateway:f,hasStorageEndpoint:h,loading:o,storageEndpoint:n}=B();return o?t.jsx(w,{relative:"parent",children:t.jsx(P,{})}):t.jsxs(M,{children:[t.jsx("div",{className:"header",children:t.jsx(b,{title:i("setup.didSpace.title"),subTitle:i("setup.didSpace.subTitle"),onClickBack:x})}),t.jsx(c,{width:S?"360px":"720px",children:h?t.jsx(E,{spaceGateway:j,settingStorageEndpoint:C}):t.jsx(D,{})}),((a=e==null?void 0:e.capabilities)==null?void 0:a.didSpace)&&t.jsx(c,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:"24px",children:t.jsx(N,{onConnect:f,storageEndpoint:n})}),((r=e==null?void 0:e.capabilities)==null?void 0:r.didSpace)==="required"&&t.jsx(u,{mt:8,children:t.jsx(d,{loading:o,variant:"contained",disabled:o||!n,onClick:()=>s(),children:i("setup.continue")})}),((p=e==null?void 0:e.capabilities)==null?void 0:p.didSpace)==="optional"&&t.jsx(u,{blocklet:e,onStartNow:()=>s("complete"),children:t.jsx(d,{className:"start-now",loading:o,variant:"contained",disabled:o,onClick:()=>s(),children:i(n?"setup.continue":"setup.skip")})})]})}l.propTypes={onNext:m.func,onPrevious:m.func};l.defaultProps={onNext:()=>{},onPrevious:()=>{}};const M=T(L)`
1
+ import{r as g,Z as y,bb as v,j as t,C as w,S as P,B as c,$ as d,P as m,Y as b}from"./index-BqsMd8kb.js";import{P as T}from"./page-header-EqcdM7n1.js";import{u as B}from"./config-space-CPyb_eZ-.js";import{C as E,D,a as N}from"./connect-to-BQINcy1q.js";import{u as G,S as u}from"./step-actions-BNn2aM9R.js";import{S as L}from"./layout--pblhAfc.js";import"./Skeleton-BQyN-0sJ.js";import"./Hidden-DWKJv_Ts.js";import"./spaces-DNtrZi8N.js";import"./index-DJvJ2Tmc.js";import"./index-D-XBJ_hS.js";import"./api-DZcbXOwe.js";import"./use-blocklet-info-for-connect-did-spaces-Car-GPAS.js";import"./CloseOutlined-BdzvaiT0.js";import"./did-address-BTH0hYaF.js";import"./Link-C1R9I8T5.js";import"./DeleteOutline-C_JPQWoC.js";import"./index-LSzcGKHj.js";import"./index-Dylzk7Aa.js";import"./ExpandMore-CMOFmrRl.js";import"./ButtonGroup-B93e6tqm.js";import"./TextField-BHg3uTSC.js";import"./FormControl-BrDVvV0w.js";import"./useFormControl-b_gcFCyO.js";import"./InputLabel-DA3u5GP-.js";import"./Select-0rvptrXH.js";import"./content-layout-af8Tk37j.js";function l({onNext:s,onPrevious:x}){var a,r,p;const{t:i}=g.useContext(y),{blocklet:e}=v(),S=G(),{spaceGateway:j,settingStorageEndpoint:C,updateSpaceGateway:f,hasStorageEndpoint:h,loading:o,storageEndpoint:n}=B();return o?t.jsx(w,{relative:"parent",children:t.jsx(P,{})}):t.jsxs(M,{children:[t.jsx("div",{className:"header",children:t.jsx(T,{title:i("setup.didSpace.title"),subTitle:i("setup.didSpace.subTitle"),onClickBack:x})}),t.jsx(c,{width:S?"360px":"720px",children:h?t.jsx(E,{spaceGateway:j,settingStorageEndpoint:C}):t.jsx(D,{})}),((a=e==null?void 0:e.capabilities)==null?void 0:a.didSpace)&&t.jsx(c,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:"24px",children:t.jsx(N,{onConnect:f,storageEndpoint:n})}),((r=e==null?void 0:e.capabilities)==null?void 0:r.didSpace)==="required"&&t.jsx(u,{mt:8,children:t.jsx(d,{loading:o,variant:"contained",disabled:o||!n,onClick:()=>s(),children:i("setup.continue")})}),((p=e==null?void 0:e.capabilities)==null?void 0:p.didSpace)==="optional"&&t.jsx(u,{blocklet:e,onStartNow:()=>s("complete"),children:t.jsx(d,{className:"start-now",loading:o,variant:"contained",disabled:o,onClick:()=>s(),children:i(n?"setup.continue":"setup.skip")})})]})}l.propTypes={onNext:m.func,onPrevious:m.func};l.defaultProps={onNext:()=>{},onPrevious:()=>{}};const M=b(L)`
2
2
  height: 100%;
3
3
  overflow-y: auto;
4
4
  `;export{l as default};
@@ -0,0 +1,11 @@
1
+ var bt=Object.defineProperty;var yt=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var D=(e,t,n)=>(yt(e,typeof t!="symbol"?t+"":t,n),n);import{aE as xt,cD as wt,cV as vt,aH as W,cg as V,r as A,aL as It,aG as Ct,aM as ve,cy as St,cd as Tt,j as m,aJ as Ie,aK as At,P as f,M as jt,h as Pt,aA as kt,bB as Ce,bs as Lt,bt as Mt,dd as Ot,ag as Rt,K as j,bq as Et,B as _t,bI as Nt,T as qt,de as Ft,df as $t,$ as Bt,dg as zt,bO as De,u as Ve,aB as Ht,_ as Dt,v as Vt}from"./index-BqsMd8kb.js";import{D as Ut}from"./index-e7NHyY1q.js";import{l as R,g as Qt,L as Gt}from"./MoreVert-C4XqRKE4.js";import{L as Wt}from"./selector-Dpt9nBq7.js";const Zt=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Jt=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Xt=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:i,selected:a}=e,l=At({root:["root",r&&"dense",!s&&"gutters",i&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},Qt,n);return W({},n,l)},Yt=xt(wt,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Jt})(({theme:e,ownerState:t})=>W({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${R.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:V(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${R.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:V(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${R.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:V(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:V(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${R.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${R.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),Kt=A.forwardRef(function(t,n){const r=It({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:i="div",children:a,dense:c=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:d,selected:p=!1,className:g}=r,b=Ct(r,Zt),x=A.useContext(ve),I=A.useMemo(()=>({dense:c||x.dense||!1,alignItems:o,disableGutters:l}),[o,x.dense,c,l]),T=A.useRef(null);St(()=>{s&&T.current&&T.current.focus()},[s]);const w=W({},r,{alignItems:o,dense:I.dense,disableGutters:l,divider:u,selected:p}),y=Xt(w),O=Tt(T,n);return m.jsx(ve.Provider,{value:I,children:m.jsx(Yt,W({ref:O,href:b.href||b.to,component:(b.href||b.to)&&i==="div"?"button":i,focusVisibleClassName:Ie(y.focusVisible,d),ownerState:w,className:Ie(y.root,g)},b,{classes:y,children:a}))})}),en=Kt;/**
2
+ * (c) Iconify
3
+ *
4
+ * For the full copyright and license information, please view the license.txt
5
+ * files at https://github.com/iconify/iconify
6
+ *
7
+ * Licensed under MIT.
8
+ *
9
+ * @license MIT
10
+ * @version 1.0.8
11
+ */const Ue=Object.freeze({left:0,top:0,width:16,height:16}),Z=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),B=Object.freeze({...Ue,...Z}),re=Object.freeze({...B,body:"",hidden:!1}),tn=Object.freeze({width:null,height:null}),Qe=Object.freeze({...tn,...Z});function nn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const on=/[\s,]+/;function rn(e,t){t.split(on).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Ge={...Qe,preserveAspectRatio:""};function Se(e){const t={...Ge},n=(r,o)=>e.getAttribute(r)||o;return t.width=n("width",null),t.height=n("height",null),t.rotate=nn(n("rotate","")),rn(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function sn(e,t){for(const n in Ge)if(e[n]!==t[n])return!0;return!1}const _=/^[a-z0-9]+(-[a-z0-9]+)*$/,z=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:r,prefix:c,name:a};return t&&!Q(l)?null:l}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Q(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!Q(a,n)?null:a}return null},Q=(e,t)=>e?!!((e.provider===""||e.provider.match(_))&&(t&&e.prefix===""||e.prefix.match(_))&&e.name.match(_)):!1;function cn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Te(e,t){const n=cn(e,t);for(const r in re)r in Z?r in e&&!(r in n)&&(n[r]=Z[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function an(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function ln(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Te(r[a]||o[a],s)}return i(t),n.forEach(i),Te(e,s)}function We(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=an(e);for(const o in r){const s=r[o];s&&(t(o,ln(e,o,s)),n.push(o))}return n}const un={provider:"",aliases:{},not_found:{},...Ue};function ee(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Ze(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ee(e,un))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(_)||typeof s.body!="string"||!ee(s,re))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(_)||typeof i!="string"||!n[i]&&!r[i]||!ee(s,re))return null}return t}const J=Object.create(null);function fn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function k(e,t){const n=J[e]||(J[e]=Object.create(null));return n[t]||(n[t]=fn(e,t))}function pe(e,t){return Ze(t)?We(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function dn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function pn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(J)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(J[o]||{})).forEach(i=>{const a=k(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let q=!1;function Je(e){return typeof e=="boolean"&&(q=e),q}function F(e){const t=typeof e=="string"?z(e,!0,q):e;if(t){const n=k(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Xe(e,t){const n=z(e,!0,q);if(!n)return!1;const r=k(n.provider,n.prefix);return dn(r,n.name,t)}function Ae(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),q&&!t&&!e.prefix){let o=!1;return Ze(e)&&(e.prefix="",We(e,(s,i)=>{i&&Xe(s,i)&&(o=!0)})),o}const n=e.prefix;if(!Q({provider:t,prefix:n,name:"a"}))return!1;const r=k(t,n);return!!pe(r,e)}function hn(e){return!!F(e)}function gn(e){const t=F(e);return t?{...B,...t}:null}function mn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),l=c[i]||(c[i]=k(s,i));let u;a in l.icons?u=t.loaded:i===""||l.missing.has(a)?u=t.missing:u=t.pending;const d={provider:s,prefix:i,name:a};u.push(d)}),t}function Ye(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function bn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(e.icons[l])i.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))i.missing.push({provider:r,prefix:o,name:l});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||Ye([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let yn=0;function xn(e,t,n){const r=yn++,o=Ye.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const se=Object.create(null);function je(e,t){se[e]=t}function ie(e){return se[e]||se[""]}function wn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?z(o,t,n):o;s&&r.push(s)}),r}var vn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function In(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let h=e.resources.slice(0);for(i=[];h.length>1;){const v=Math.floor(Math.random()*h.length);i.push(h[v]),h=h.slice(0,v).concat(h.slice(v+1))}i=i.concat(h)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",l=0,u,d=null,p=[],g=[];typeof r=="function"&&g.push(r);function b(){d&&(clearTimeout(d),d=null)}function x(){c==="pending"&&(c="aborted"),b(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function I(h,v){v&&(g=[]),typeof h=="function"&&g.push(h)}function T(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:p.length,subscribe:I,abort:x}}function w(){c="failed",g.forEach(h=>{h(void 0,u)})}function y(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function O(h,v,P){const S=v!=="success";switch(p=p.filter(L=>L!==h),c){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(v==="abort"){u=P,w();return}if(S){u=P,p.length||(i.length?C():w());return}if(b(),y(),!e.random){const L=e.resources.indexOf(h.resource);L!==-1&&L!==e.index&&(e.index=L)}c="completed",g.forEach(L=>{L(P)})}function C(){if(c!=="pending")return;b();const h=i.shift();if(h===void 0){if(p.length){d=setTimeout(()=>{b(),c==="pending"&&(y(),w())},e.timeout);return}w();return}const v={status:"pending",resource:h,callback:(P,S)=>{O(v,P,S)}};p.push(v),l++,d=setTimeout(C,e.rotate),n(h,t,v.callback)}return setTimeout(C),T}function Ke(e){const t={...vn,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const u=In(t,a,c,(d,p)=>{r(),l&&l(d,p)});return n.push(u),u}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function he(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Y=Object.create(null),E=["https://api.simplesvg.com","https://api.unisvg.com"],G=[];for(;E.length>0;)E.length===1||Math.random()>.5?G.push(E.shift()):G.push(E.pop());Y[""]=he({resources:["https://api.iconify.design"].concat(G)});function Pe(e,t){const n=he(t);return n===null?!1:(Y[e]=n,!0)}function K(e){return Y[e]}function Cn(){return Object.keys(Y)}function ke(){}const te=Object.create(null);function Sn(e){if(!te[e]){const t=K(e);if(!t)return;const n=Ke(t),r={config:t,redundancy:n};te[e]=r}return te[e]}function et(e,t,n){let r,o;if(typeof e=="string"){const s=ie(e);if(!s)return n(void 0,424),ke;o=s.send;const i=Sn(e);i&&(r=i.redundancy)}else{const s=he(e);if(s){r=Ke(s);const i=e.resources?e.resources[0]:"",a=ie(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),ke):r.query(t,o,n)().abort}const Le="iconify2",$="iconify",tt=$+"-count",Me=$+"-version",nt=36e5,Tn=168;function ce(e,t){try{return e.getItem(t)}catch{}}function ge(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Oe(e,t){try{e.removeItem(t)}catch{}}function ae(e,t){return ge(e,tt,t.toString())}function le(e){return parseInt(ce(e,tt))||0}const M={local:!0,session:!0},ot={local:new Set,session:new Set};let me=!1;function An(e){me=e}let U=typeof window>"u"?{}:window;function rt(e){const t=e+"Storage";try{if(U&&U[t]&&typeof U[t].length=="number")return U[t]}catch{}M[e]=!1}function st(e,t){const n=rt(e);if(!n)return;const r=ce(n,Me);if(r!==Le){if(r){const a=le(n);for(let c=0;c<a;c++)Oe(n,$+c.toString())}ge(n,Me,Le),ae(n,0);return}const o=Math.floor(Date.now()/nt)-Tn,s=a=>{const c=$+a.toString(),l=ce(n,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Oe(n,c)}};let i=le(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ae(n,i)):ot[e].add(a))}function it(){if(!me){An(!0);for(const e in M)st(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=k(r,o);if(!pe(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function jn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in M)st(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Pn(e,t){me||it();function n(r){let o;if(!M[r]||!(o=rt(r)))return;const s=ot[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=le(o),!ae(o,i+1))return;const a={cached:Math.floor(Date.now()/nt),provider:e.provider,data:t};return ge(o,$+i.toString(),JSON.stringify(a))}t.lastModified&&!jn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Re(){}function kn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,bn(e)}))}function Ln(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ie(n)))return;s.prepare(n,r,o).forEach(a=>{et(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=pe(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),Pn(e,c)}catch(l){console.error(l)}kn(e)})})}))}const be=(e,t)=>{const n=wn(e,!0,Je()),r=mn(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,Re)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===i)return;i=l,a=u,s.push(k(l,u));const d=o[l]||(o[l]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(c=>{const{provider:l,prefix:u,name:d}=c,p=k(l,u),g=p.pendingIcons||(p.pendingIcons=new Set);g.has(d)||(g.add(d),o[l][u].push(d))}),s.forEach(c=>{const{provider:l,prefix:u}=c;o[l][u].length&&Ln(c,o[l][u])}),t?xn(t,r,s):Re},Mn=e=>new Promise((t,n)=>{const r=typeof e=="string"?z(e,!0):e;if(!r){n(e);return}be([r||e],o=>{if(o.length&&r){const s=F(r);if(s){t({...B,...s});return}}n(e)})});function On(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function Rn(e,t){const n=typeof e=="string"?z(e,!0,!0):null;if(!n){const s=On(e);return{value:e,data:s}}const r=F(n);if(r!==void 0||!n.prefix)return{value:e,name:n,data:r};const o=be([n],()=>t(e,n,F(n)));return{value:e,name:n,loading:o}}function ne(e){return e.hasAttribute("inline")}let ct=!1;try{ct=navigator.vendor.indexOf("Apple")===0}catch{}function En(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(ct||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const _n=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Nn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ue(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(_n);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Nn.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const qn=e=>e==="unset"||e==="undefined"||e==="none";function at(e,t){const n={...B,...e},r={...Qe,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(b=>{const x=[],I=b.hFlip,T=b.vFlip;let w=b.rotate;I?T?w+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):T&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let y;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:y=o.height/2+o.top,x.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:y=o.width/2+o.left,x.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}w%2===1&&(o.left!==o.top&&(y=o.left,o.left=o.top,o.top=y),o.width!==o.height&&(y=o.width,o.width=o.height,o.height=y)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,l=o.height;let u,d;i===null?(d=a===null?"1em":a==="auto"?l:a,u=ue(d,c/l)):(u=i==="auto"?c:i,d=a===null?ue(u,l/c):a==="auto"?l:a);const p={},g=(b,x)=>{qn(x)||(p[b]=x.toString())};return g("width",u),g("height",d),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:p,body:s}}const Fn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let X=Fn();function $n(e){X=e}function Bn(){return X}function zn(e,t){const n=K(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Hn(e){return e===404}const Dn=(e,t,n)=>{const r=[],o=zn(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function Vn(e){if(typeof e=="string"){const t=K(e);if(t)return t.path}return"/"}const Un=(e,t,n)=>{if(!X){n("abort",424);return}let r=Vn(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;X(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Hn(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Qn={prepare:Dn,send:Un};function Ee(e,t){switch(e){case"local":case"session":M[e]=t;break;case"all":for(const n in M)M[n]=t;break}}const oe="data-style";let lt="";function Gn(e){lt=e}function _e(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(oe));n||(n=document.createElement("style"),n.setAttribute(oe,oe),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+lt}function ut(){je("",Qn),Je(!0);let e;try{e=window}catch{}if(e){if(it(),e.IconifyPreload!==void 0){const n=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Ae(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;Pe(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Ee(n,!0),disableCache:n=>Ee(n,!1),iconExists:hn,getIcon:gn,listIcons:pn,addIcon:Xe,addCollection:Ae,calculateSize:ue,buildIcon:at,loadIcons:be,loadIcon:Mn,addAPIProvider:Pe,appendCustomStyle:Gn,_api:{getAPIConfig:K,setAPIModule:je,sendAPIQuery:et,setFetch:$n,getFetch:Bn,listAPIProviders:Cn}}}function ft(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Wn(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Zn(e){return"data:image/svg+xml,"+Wn(e)}function Jn(e){return'url("'+Zn(e)+'")'}const fe={"background-color":"currentColor"},dt={"background-color":"transparent"},Ne={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},qe={"-webkit-mask":fe,mask:fe,background:dt};for(const e in qe){const t=qe[e];for(const n in Ne)t[e+"-"+n]=Ne[n]}function Fe(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function Xn(e,t,n){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=ft(o,{...s,width:t.width+"",height:t.height+""}),a=Jn(i),c=r.style,l={"--svg":a,width:Fe(s.width),height:Fe(s.height),...n?fe:dt};for(const u in l)c.setProperty(u,l[u]);return r}let N;function Yn(){try{N=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{N=null}}function Kn(e){return N===void 0&&Yn(),N?N.createHTML(e):e}function eo(e){const t=document.createElement("span"),n=e.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=ft(e.body,n);return t.innerHTML=Kn(o),t.firstChild}function $e(e,t){const n=t.icon.data,r=t.customisations,o=at(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=t.renderedMode;let i;switch(s){case"svg":i=eo(o);break;default:i=Xn(o,{...B,...n},s==="mask")}const a=Array.from(e.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,a):e.appendChild(i)}function Be(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function to(e="iconify-icon"){let t,n;try{t=window.customElements,n=window.HTMLElement}catch{return}if(!t||!n)return;const r=t.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();D(this,"_shadowRoot");D(this,"_state");D(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=ne(this);_e(c,l),this._state=Be({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=ne(this),u=this._state;l!==u.inline&&(u.inline=l,_e(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return ne(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}$e(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const u=this.getAttribute("mode"),d=Se(this);(c.attrMode!==u||sn(c.customisations,d))&&this._renderIcon(c.icon,d,u)}_iconChanged(c){const l=Rn(c,(u,d,p)=>{const g=this._state;if(g.rendered||this.getAttribute("icon")!==u)return;const b={value:u,name:d,data:p};b.data?this._gotIconData(b):g.icon=b});l.data?this._gotIconData(l):this._state=Be(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Se(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const d=En(c.data.body,u),p=this._state.inline;$e(this._shadowRoot,this._state={rendered:!0,icon:c,inline:p,customisations:l,attrMode:u,renderedMode:d})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=ut();for(const a in i)s[a]=s.prototype[a]=i[a];return t.define(e,s),s}to()||ut();const no=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),pt=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),H=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:H(r[n],t,n)}):t(r)),oo=(e,t="children")=>{const n=[];return H(e,r=>n.push(r),t),n},ye=(e,t,n="children")=>e.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=ye(o,t,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return t(r,s)}),ro=e=>/^https?:\/\//.test(e),vo=e=>/^[\w-]+:[\w-]+$/.test(e),so=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const t=o=>o.endsWith("/")?o:`${o}/`,n=t(window.location.pathname),r=t(new URL(e,window.location.origin).pathname);return n.startsWith(r)},io=(e=[])=>{const t=e.map((r,o)=>({path:r,index:o})).filter(r=>so(r.path));return t!=null&&t.length?t.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,t[0]).index:-1};var ze,He;const de=((ze=window==null?void 0:window.blocklet)==null?void 0:ze.groupPrefix)||((He=window==null?void 0:window.blocklet)==null?void 0:He.prefix)||"/",co=e=>{const t={...e},n=e==null?void 0:e.background;return typeof n=="string"?t.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(t.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),t},ht=(e,t="en")=>{if(!(e!=null&&e.length))return e;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(ro(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return H(e,o=>{var s;return{...o,title:n(o.title,t),link:(s=o.items)!=null&&s.length?o.link:r(o.link,t),_rawLink:o.link}},"items")},ao=e=>H(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),lo=e=>{if(!(e!=null&&e.length))return null;const t=ao(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},uo=e=>{if(!e)return null;const t={...e};return t.theme=co(t.theme),t.navigation=lo(fo(t.navigation)),t},fo=(e=[])=>ye(e,(t,n)=>{var r;return!!t.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),gt=(e,t)=>ye(e,(n,r)=>{var s;const o=!n.role||t&&n.role.includes(t);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items"),po={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},ho={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function xe({session:e,locale:t,size:n}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=e==null?void 0:e.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((r==null?void 0:r.componentMountPoints)||[]).find(u=>c.component===u.name);return{...c,component:l}}),s=A.useRef(null),i=jt({open:!1}),a=Pt((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:m.jsxs(m.Fragment,{children:[m.jsx(kt,{size:"medium",ref:s,onClick:()=>a(),children:m.jsx(Ce,{icon:po,fontSize:n,style:{transform:"scale(1.08)"}})}),m.jsx(Lt,{open:i.open,onClose:()=>a(!1),anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>m.jsx(Mt,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:m.jsx(Ot,{...c,timeout:350,children:m.jsxs(Rt,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:j.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${j.gray6}, 0px 0px 0px 1px ${j.gray6}`},children:[m.jsx(Et,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var u;return m.jsx(Gt,{disablePadding:!0,children:m.jsxs(en,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:j.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?m.jsx(_t,{component:"img",src:`${Nt}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):m.jsx(Ce,{fontSize:50,icon:l.icon||ho,color:j.textSubtitle}),m.jsx(qt,{sx:{fontSize:"12px",color:j.textBase,textAlign:"center",lineHeight:"normal"},children:Ft(l.title,t)})]})},l.id)})}),m.jsx($t,{session:e,children:m.jsx(Bt,{variant:"outlined",fullWidth:!0,href:zt,sx:{mt:1,borderRadius:2,color:j.textBase,borderColor:j.lineBorderStrong,"&:hover":{color:j.primaryBase,borderColor:j.primaryBase}},children:t==="zh"?"管理":"Manage"})})]})})})})]})}xe.propTypes={session:f.object.isRequired,locale:f.string,size:f.number};xe.defaultProps={locale:"en",size:24};function we({formattedBlocklet:e,addons:t,sessionManagerProps:n}){var p,g,b,x;const r=A.useContext(De),{locale:o}=Ve()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((p=r==null?void 0:r.session)!=null&&p.user);let c=ht((g=e==null?void 0:e.navigation)==null?void 0:g.sessionManager,o)||[];c=gt(c,(x=(b=r==null?void 0:r.session)==null?void 0:b.user)==null?void 0:x.role);const u=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let I=[];if(i&&o&&I.push(m.jsx(Wt,{showText:!1},"locale-selector")),s&&r){const T=[];a&&(c?c.slice(0,5):[]).forEach(y=>{T.push({label:y.title,icon:y.icon?m.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),I.push(m.jsx(xe,{session:r.session,locale:o},"session-blocklet")),I.push(m.jsx(Ht,{session:r.session,locale:o,menu:T,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(I=t(I)||[]),I})();return A.createElement(m.Fragment,null,...Array.isArray(u)?u:[u])}we.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:pt};we.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const go=()=>{const e=Dt();A.useEffect(()=>{e.wallet&&Vt.call("arcHideTopBar","{}")},[e])};function mt({meta:e,fallbackUrl:t,invalidPathFallback:n,headerAddons:r,sessionManagerProps:o,links:s,...i}){var O;go();const a=A.useContext(De),c=(O=a==null?void 0:a.session)==null?void 0:O.user,l=c==null?void 0:c.role,{locale:u}=Ve()||{},d=A.useMemo(()=>{const C=Object.assign({},window.blocklet,e);try{return uo(C)}catch(h){return console.error("Failed to format blocklet info",h,C),C}},[e]),{localizedNav:p,flattened:g,matchedIndex:b}=A.useMemo(()=>{var P;let C=ht((P=d==null?void 0:d.navigation)==null?void 0:P.dashboard,u)||[];C=gt(C,l),C=H(C,S=>({title:S.title,url:S.link,icon:S.icon?m.jsx("iconify-icon",{height:"100%",width:"100%",icon:S.icon}):null,external:!0,children:S.items}),"items");const h=oo(C).filter(S=>!!S.url),v=io(h.map(S=>S.url));return v!==-1&&(h[v].active=!0),{localizedNav:C,flattened:h,matchedIndex:v}},[d,u,l]),x=typeof s=="function"?s(p):[...p,...s];if(A.useLayoutEffect(()=>{c&&!(g!=null&&g.length)&&t&&(window.location.href=t)},[t]),A.useLayoutEffect(()=>{c&&(g!=null&&g.length)&&b===-1&&n&&n()},[n,g,b]),!d.appName)return null;const{appLogo:I,appLogoRect:T,appName:w}=d,y=m.jsx(we,{formattedBlocklet:d,addons:r,sessionManagerProps:o});return m.jsx(Ut,{title:w,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:de,logo:m.jsx("img",{src:T||I,alt:"logo"}),addons:y,...i.headerProps}})}mt.propTypes={meta:no,fallbackUrl:f.string,invalidPathFallback:f.func,headerAddons:f.oneOfType([f.func,f.node]),sessionManagerProps:pt,links:f.oneOfType([f.array,f.func])};mt.defaultProps={meta:{},fallbackUrl:de,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=de}},links:[]};export{no as B,mt as D,we as H,en as L,pt as S,vo as a,oo as b,io as c,uo as f,ht as g,ro as i,H as m,de as p,go as u};
@@ -1,3 +1,3 @@
1
- import{l as q}from"./lottie-DGWD8Sx6.js";import{r as D,eo as z}from"./index-D04f13KU.js";function G(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,u,c,i,b=[],s=!0,A=!1;try{if(c=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(b.push(n.value),b.length!==e);s=!0);}catch(g){A=!0,u=g}finally{try{if(!s&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(A)throw u}}return b}}function E(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?E(Object(r),!0).forEach(function(n){J(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function J(t,e,r){return e=ae(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Q(t,e){if(t==null)return{};var r={},n=Object.keys(t),u,c;for(c=0;c<n.length;c++)u=n[c],!(e.indexOf(u)>=0)&&(r[u]=t[u]);return r}function x(t,e){if(t==null)return{};var r=Q(t,e),n,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)n=c[u],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Z(t,e){return ee(t)||G(t,e)||te(t,e)||ne()}function ee(t){if(Array.isArray(t))return t}function te(t,e){if(t){if(typeof t=="string")return j(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(t,e)}}function j(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ae(t){var e=re(t,"string");return typeof e=="symbol"?e:String(e)}var oe=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],ie=function(e,r){var n=e.animationData,u=e.loop,c=e.autoplay,i=e.initialSegment,b=e.onComplete,s=e.onLoopComplete,A=e.onEnterFrame,g=e.onSegmentStart,O=e.onConfigReady,w=e.onDataReady,h=e.onDataFailed,l=e.onLoadedImages,L=e.onDOMLoaded,S=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var p=x(e,oe),P=D.useState(!1),d=Z(P,2),C=d[0],I=d[1],o=D.useRef(),v=D.useRef(null),H=function(){var a;(a=o.current)===null||a===void 0||a.play()},M=function(){var a;(a=o.current)===null||a===void 0||a.stop()},F=function(){var a;(a=o.current)===null||a===void 0||a.pause()},V=function(a){var f;(f=o.current)===null||f===void 0||f.setSpeed(a)},N=function(a,f){var m;(m=o.current)===null||m===void 0||m.goToAndPlay(a,f)},B=function(a,f){var m;(m=o.current)===null||m===void 0||m.goToAndStop(a,f)},$=function(a){var f;(f=o.current)===null||f===void 0||f.setDirection(a)},k=function(a,f){var m;(m=o.current)===null||m===void 0||m.playSegments(a,f)},W=function(a){var f;(f=o.current)===null||f===void 0||f.setSubframe(a)},K=function(a){var f;return(f=o.current)===null||f===void 0?void 0:f.getDuration(a)},U=function(){var a;(a=o.current)===null||a===void 0||a.destroy(),o.current=void 0},X=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f;if(v.current){(f=o.current)===null||f===void 0||f.destroy();var m=T(T(T({},e),a),{},{container:v.current});return o.current=q.loadAnimation(m),I(!!o.current),function(){var R;(R=o.current)===null||R===void 0||R.destroy(),o.current=void 0}}};D.useEffect(function(){var y=X();return function(){return y==null?void 0:y()}},[n,u]),D.useEffect(function(){o.current&&(o.current.autoplay=!!c)},[c]),D.useEffect(function(){if(o.current){if(!i){o.current.resetSegments(!0);return}!Array.isArray(i)||!i.length||((o.current.currentRawFrame<i[0]||o.current.currentRawFrame>i[1])&&(o.current.currentRawFrame=i[0]),o.current.setSegment(i[0],i[1]))}},[i]),D.useEffect(function(){var y=[{name:"complete",handler:b},{name:"loopComplete",handler:s},{name:"enterFrame",handler:A},{name:"segmentStart",handler:g},{name:"config_ready",handler:O},{name:"data_ready",handler:w},{name:"data_failed",handler:h},{name:"loaded_images",handler:l},{name:"DOMLoaded",handler:L},{name:"destroy",handler:S}],a=y.filter(function(m){return m.handler!=null});if(a.length){var f=a.map(function(m){var R;return(R=o.current)===null||R===void 0||R.addEventListener(m.name,m.handler),function(){var _;(_=o.current)===null||_===void 0||_.removeEventListener(m.name,m.handler)}});return function(){f.forEach(function(m){return m()})}}},[b,s,A,g,O,w,h,l,L,S]);var Y=z.createElement("div",T({style:r,ref:v},p));return{View:Y,play:H,stop:M,pause:F,setSpeed:V,goToAndStop:B,goToAndPlay:N,setDirection:$,playSegments:k,setSubframe:W,getDuration:K,destroy:U,animationContainerRef:v,animationLoaded:C,animationItem:o.current}};function ue(t){var e=t.getBoundingClientRect(),r=e.top,n=e.height,u=window.innerHeight-r,c=window.innerHeight+n;return u/c}function le(t,e,r){var n=t.getBoundingClientRect(),u=n.top,c=n.left,i=n.width,b=n.height,s=(e-c)/i,A=(r-u)/b;return{x:s,y:A}}var se=function(e){var r=e.wrapperRef,n=e.animationItem,u=e.mode,c=e.actions;D.useEffect(function(){var i=r.current;if(!(!i||!n||!c.length)){n.stop();var b=function(){var g=null,O=function(){var h=ue(i),l=c.find(function(S){var p=S.visibility;return p&&h>=p[0]&&h<=p[1]});if(l){if(l.type==="seek"&&l.visibility&&l.frames.length===2){var L=l.frames[0]+Math.ceil((h-l.visibility[0])/(l.visibility[1]-l.visibility[0])*l.frames[1]);//! goToAndStop must be relative to the start of the current segment
3
- n.goToAndStop(L-n.firstFrame-1,!0)}l.type==="loop"&&(g===null||g!==l.frames||n.isPaused)&&(n.playSegments(l.frames,!0),g=l.frames),l.type==="play"&&n.isPaused&&(n.resetSegments(!0),n.play()),l.type==="stop"&&n.goToAndStop(l.frames[0]-n.firstFrame-1,!0)}};return document.addEventListener("scroll",O),function(){document.removeEventListener("scroll",O)}},s=function(){var g=function(l,L){var S=l,p=L;if(S!==-1&&p!==-1){var P=le(i,S,p);S=P.x,p=P.y}var d=c.find(function(o){var v=o.position;return v&&Array.isArray(v.x)&&Array.isArray(v.y)?S>=v.x[0]&&S<=v.x[1]&&p>=v.y[0]&&p<=v.y[1]:v&&!Number.isNaN(v.x)&&!Number.isNaN(v.y)?S===v.x&&p===v.y:!1});if(d){if(d.type==="seek"&&d.position&&Array.isArray(d.position.x)&&Array.isArray(d.position.y)&&d.frames.length===2){var C=(S-d.position.x[0])/(d.position.x[1]-d.position.x[0]),I=(p-d.position.y[0])/(d.position.y[1]-d.position.y[0]);n.playSegments(d.frames,!0),n.goToAndStop(Math.ceil((C+I)/2*(d.frames[1]-d.frames[0])),!0)}d.type==="loop"&&n.playSegments(d.frames,!0),d.type==="play"&&(n.isPaused&&n.resetSegments(!1),n.playSegments(d.frames)),d.type==="stop"&&n.goToAndStop(d.frames[0],!0)}},O=function(l){g(l.clientX,l.clientY)},w=function(){g(-1,-1)};return i.addEventListener("mousemove",O),i.addEventListener("mouseout",w),function(){i.removeEventListener("mousemove",O),i.removeEventListener("mouseout",w)}};switch(u){case"scroll":return b();case"cursor":return s()}}},[u,n])},de=function(e){var r=e.actions,n=e.mode,u=e.lottieObj,c=u.animationItem,i=u.View,b=u.animationContainerRef;return se({actions:r,animationItem:c,mode:n,wrapperRef:b}),i},fe=["style","interactivity"],ve=function(e){var r,n,u,c=e.style,i=e.interactivity,b=x(e,fe),s=ie(b,c),A=s.View,g=s.play,O=s.stop,w=s.pause,h=s.setSpeed,l=s.goToAndStop,L=s.goToAndPlay,S=s.setDirection,p=s.playSegments,P=s.setSubframe,d=s.getDuration,C=s.destroy,I=s.animationContainerRef,o=s.animationLoaded,v=s.animationItem;return D.useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:g,stop:O,pause:w,setSpeed:h,goToAndPlay:L,goToAndStop:l,setDirection:S,playSegments:p,setSubframe:P,getDuration:d,destroy:C,animationContainerRef:I,animationLoaded:o,animationItem:v})},[(r=e.lottieRef)===null||r===void 0?void 0:r.current]),de({lottieObj:{View:A,play:g,stop:O,pause:w,setSpeed:h,goToAndStop:l,goToAndPlay:L,setDirection:S,playSegments:p,setSubframe:P,getDuration:d,destroy:C,animationContainerRef:I,animationLoaded:o,animationItem:v},actions:(n=i==null?void 0:i.actions)!==null&&n!==void 0?n:[],mode:(u=i==null?void 0:i.mode)!==null&&u!==void 0?u:"scroll"})};export{q as LottiePlayer,ve as default,ie as useLottie,de as useLottieInteractivity};
1
+ import{l as q}from"./lottie-VJFQ68oA.js";import{r as D,ey as z}from"./index-BqsMd8kb.js";function G(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,u,c,o,b=[],s=!0,A=!1;try{if(c=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(b.push(n.value),b.length!==e);s=!0);}catch(g){A=!0,u=g}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(A)throw u}}return b}}function E(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?E(Object(r),!0).forEach(function(n){J(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function J(t,e,r){return e=ae(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Q(t,e){if(t==null)return{};var r={},n=Object.keys(t),u,c;for(c=0;c<n.length;c++)u=n[c],!(e.indexOf(u)>=0)&&(r[u]=t[u]);return r}function x(t,e){if(t==null)return{};var r=Q(t,e),n,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)n=c[u],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Z(t,e){return ee(t)||G(t,e)||te(t,e)||ne()}function ee(t){if(Array.isArray(t))return t}function te(t,e){if(t){if(typeof t=="string")return j(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(t,e)}}function j(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ae(t){var e=re(t,"string");return typeof e=="symbol"?e:String(e)}var ie=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],oe=function(e,r){var n=e.animationData,u=e.loop,c=e.autoplay,o=e.initialSegment,b=e.onComplete,s=e.onLoopComplete,A=e.onEnterFrame,g=e.onSegmentStart,O=e.onConfigReady,w=e.onDataReady,h=e.onDataFailed,l=e.onLoadedImages,L=e.onDOMLoaded,S=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var p=x(e,ie),P=D.useState(!1),d=Z(P,2),C=d[0],I=d[1],i=D.useRef(),v=D.useRef(null),H=function(){var a;(a=i.current)===null||a===void 0||a.play()},M=function(){var a;(a=i.current)===null||a===void 0||a.stop()},F=function(){var a;(a=i.current)===null||a===void 0||a.pause()},V=function(a){var f;(f=i.current)===null||f===void 0||f.setSpeed(a)},N=function(a,f){var m;(m=i.current)===null||m===void 0||m.goToAndPlay(a,f)},B=function(a,f){var m;(m=i.current)===null||m===void 0||m.goToAndStop(a,f)},$=function(a){var f;(f=i.current)===null||f===void 0||f.setDirection(a)},k=function(a,f){var m;(m=i.current)===null||m===void 0||m.playSegments(a,f)},W=function(a){var f;(f=i.current)===null||f===void 0||f.setSubframe(a)},K=function(a){var f;return(f=i.current)===null||f===void 0?void 0:f.getDuration(a)},U=function(){var a;(a=i.current)===null||a===void 0||a.destroy(),i.current=void 0},X=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f;if(v.current){(f=i.current)===null||f===void 0||f.destroy();var m=T(T(T({},e),a),{},{container:v.current});return i.current=q.loadAnimation(m),I(!!i.current),function(){var R;(R=i.current)===null||R===void 0||R.destroy(),i.current=void 0}}};D.useEffect(function(){var y=X();return function(){return y==null?void 0:y()}},[n,u]),D.useEffect(function(){i.current&&(i.current.autoplay=!!c)},[c]),D.useEffect(function(){if(i.current){if(!o){i.current.resetSegments(!0);return}!Array.isArray(o)||!o.length||((i.current.currentRawFrame<o[0]||i.current.currentRawFrame>o[1])&&(i.current.currentRawFrame=o[0]),i.current.setSegment(o[0],o[1]))}},[o]),D.useEffect(function(){var y=[{name:"complete",handler:b},{name:"loopComplete",handler:s},{name:"enterFrame",handler:A},{name:"segmentStart",handler:g},{name:"config_ready",handler:O},{name:"data_ready",handler:w},{name:"data_failed",handler:h},{name:"loaded_images",handler:l},{name:"DOMLoaded",handler:L},{name:"destroy",handler:S}],a=y.filter(function(m){return m.handler!=null});if(a.length){var f=a.map(function(m){var R;return(R=i.current)===null||R===void 0||R.addEventListener(m.name,m.handler),function(){var _;(_=i.current)===null||_===void 0||_.removeEventListener(m.name,m.handler)}});return function(){f.forEach(function(m){return m()})}}},[b,s,A,g,O,w,h,l,L,S]);var Y=z.createElement("div",T({style:r,ref:v},p));return{View:Y,play:H,stop:M,pause:F,setSpeed:V,goToAndStop:B,goToAndPlay:N,setDirection:$,playSegments:k,setSubframe:W,getDuration:K,destroy:U,animationContainerRef:v,animationLoaded:C,animationItem:i.current}};function ue(t){var e=t.getBoundingClientRect(),r=e.top,n=e.height,u=window.innerHeight-r,c=window.innerHeight+n;return u/c}function le(t,e,r){var n=t.getBoundingClientRect(),u=n.top,c=n.left,o=n.width,b=n.height,s=(e-c)/o,A=(r-u)/b;return{x:s,y:A}}var se=function(e){var r=e.wrapperRef,n=e.animationItem,u=e.mode,c=e.actions;D.useEffect(function(){var o=r.current;if(!(!o||!n||!c.length)){n.stop();var b=function(){var g=null,O=function(){var h=ue(o),l=c.find(function(S){var p=S.visibility;return p&&h>=p[0]&&h<=p[1]});if(l){if(l.type==="seek"&&l.visibility&&l.frames.length===2){var L=l.frames[0]+Math.ceil((h-l.visibility[0])/(l.visibility[1]-l.visibility[0])*l.frames[1]);//! goToAndStop must be relative to the start of the current segment
3
+ n.goToAndStop(L-n.firstFrame-1,!0)}l.type==="loop"&&(g===null||g!==l.frames||n.isPaused)&&(n.playSegments(l.frames,!0),g=l.frames),l.type==="play"&&n.isPaused&&(n.resetSegments(!0),n.play()),l.type==="stop"&&n.goToAndStop(l.frames[0]-n.firstFrame-1,!0)}};return document.addEventListener("scroll",O),function(){document.removeEventListener("scroll",O)}},s=function(){var g=function(l,L){var S=l,p=L;if(S!==-1&&p!==-1){var P=le(o,S,p);S=P.x,p=P.y}var d=c.find(function(i){var v=i.position;return v&&Array.isArray(v.x)&&Array.isArray(v.y)?S>=v.x[0]&&S<=v.x[1]&&p>=v.y[0]&&p<=v.y[1]:v&&!Number.isNaN(v.x)&&!Number.isNaN(v.y)?S===v.x&&p===v.y:!1});if(d){if(d.type==="seek"&&d.position&&Array.isArray(d.position.x)&&Array.isArray(d.position.y)&&d.frames.length===2){var C=(S-d.position.x[0])/(d.position.x[1]-d.position.x[0]),I=(p-d.position.y[0])/(d.position.y[1]-d.position.y[0]);n.playSegments(d.frames,!0),n.goToAndStop(Math.ceil((C+I)/2*(d.frames[1]-d.frames[0])),!0)}d.type==="loop"&&n.playSegments(d.frames,!0),d.type==="play"&&(n.isPaused&&n.resetSegments(!1),n.playSegments(d.frames)),d.type==="stop"&&n.goToAndStop(d.frames[0],!0)}},O=function(l){g(l.clientX,l.clientY)},w=function(){g(-1,-1)};return o.addEventListener("mousemove",O),o.addEventListener("mouseout",w),function(){o.removeEventListener("mousemove",O),o.removeEventListener("mouseout",w)}};switch(u){case"scroll":return b();case"cursor":return s()}}},[u,n])},de=function(e){var r=e.actions,n=e.mode,u=e.lottieObj,c=u.animationItem,o=u.View,b=u.animationContainerRef;return se({actions:r,animationItem:c,mode:n,wrapperRef:b}),o},fe=["style","interactivity"],ve=function(e){var r,n,u,c=e.style,o=e.interactivity,b=x(e,fe),s=oe(b,c),A=s.View,g=s.play,O=s.stop,w=s.pause,h=s.setSpeed,l=s.goToAndStop,L=s.goToAndPlay,S=s.setDirection,p=s.playSegments,P=s.setSubframe,d=s.getDuration,C=s.destroy,I=s.animationContainerRef,i=s.animationLoaded,v=s.animationItem;return D.useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:g,stop:O,pause:w,setSpeed:h,goToAndPlay:L,goToAndStop:l,setDirection:S,playSegments:p,setSubframe:P,getDuration:d,destroy:C,animationContainerRef:I,animationLoaded:i,animationItem:v})},[(r=e.lottieRef)===null||r===void 0?void 0:r.current]),de({lottieObj:{View:A,play:g,stop:O,pause:w,setSpeed:h,goToAndStop:l,goToAndPlay:L,setDirection:S,playSegments:p,setSubframe:P,getDuration:d,destroy:C,animationContainerRef:I,animationLoaded:i,animationItem:v},actions:(n=o==null?void 0:o.actions)!==null&&n!==void 0?n:[],mode:(u=o==null?void 0:o.mode)!==null&&u!==void 0?u:"scroll"})};export{q as LottiePlayer,ve as default,oe as useLottie,de as useLottieInteractivity};