@abtnode/blocklet-services 1.16.23-beta-abdda301 → 1.16.23-beta-035db744

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 (284) hide show
  1. package/api/routes/env.js +8 -0
  2. package/api/routes/user.js +3 -0
  3. package/api/services/dashboard/index.js +1 -1
  4. package/api/services/notification/index.js +1 -1
  5. package/api/services/relay/index.js +1 -1
  6. package/dist/assets/Add-wAhT997v.js +1 -0
  7. package/dist/assets/Avatar-FfLDTS1T.js +1 -0
  8. package/dist/assets/Box-lZ5spsQH.js +1 -0
  9. package/dist/assets/Box-xVyhqbFH.js +1 -0
  10. package/dist/assets/Button-RbtuWDeR.js +1 -0
  11. package/dist/assets/ButtonBase-TSoPFIBe.js +74 -0
  12. package/dist/assets/ButtonBase-WWn27IPV.js +74 -0
  13. package/dist/assets/CardContent-JgOQSc2A.js +1 -0
  14. package/dist/assets/CheckCircle-lrVCqf2n.js +1 -0
  15. package/dist/assets/Checkbox-hUFDjNSc.js +1 -0
  16. package/dist/assets/ChevronLeft-xvl64PGZ.js +1 -0
  17. package/dist/assets/ChevronRight-wrcW9iQD.js +1 -0
  18. package/dist/assets/Chip-7KtYmZN9.js +1 -0
  19. package/dist/assets/CircularProgress-Q4pselFx.js +28 -0
  20. package/dist/assets/Close-SFAKpp5f.js +1 -0
  21. package/dist/assets/Collapse-B9GV1Oit.js +1 -0
  22. package/dist/assets/DeleteOutline-bqcRHaFk.js +1 -0
  23. package/dist/assets/Done-Rmbh35pz.js +1 -0
  24. package/dist/assets/Download-ubfkvcSA.js +1 -0
  25. package/dist/assets/Edit-13YG9S_C.js +1 -0
  26. package/dist/assets/{EditIcon-mE1h5C2Z.js → EditIcon-BFyZg_Io.js} +1 -1
  27. package/dist/assets/ExpandMore-BaF2rZER.js +1 -0
  28. package/dist/assets/ExpandMore-KT3Riu-V.js +1 -0
  29. package/dist/assets/FilterList-A3lP9lXN.js +25 -0
  30. package/dist/assets/{Google-keN4-shv.js → Google-cGngGIlT.js} +4 -4
  31. package/dist/assets/Grid-Ja7ckZan.js +1 -0
  32. package/dist/assets/Grid-lKrAKrf2.js +1 -0
  33. package/dist/assets/Hidden-epK0WlDg.js +1 -0
  34. package/dist/assets/IconButton-2kDl8ha3.js +1 -0
  35. package/dist/assets/IconButton-Bw_740x8.js +74 -0
  36. package/dist/assets/InfoOutlined-ZQ0Ss7Qq.js +1 -0
  37. package/dist/assets/InputAdornment-JJseDebg.js +1 -0
  38. package/dist/assets/InputAdornment-gVGmth-c.js +1 -0
  39. package/dist/assets/InputLabel-E4gynfPT.js +1 -0
  40. package/dist/assets/Launch-0UyPzd-q.js +1 -0
  41. package/dist/assets/Link-QmOupva0.js +1 -0
  42. package/dist/assets/Link-qhTRVvm5.js +1 -0
  43. package/dist/assets/ListItem-cxnU28E5.js +1 -0
  44. package/dist/assets/ListItemText-3DGsMIsc.js +1 -0
  45. package/dist/assets/{LockIcon-u-MEyeJ4.js → LockIcon-ScNYb_CL.js} +1 -1
  46. package/dist/assets/Loop-jlraOZ0y.js +1 -0
  47. package/dist/assets/OpenInNew-QAO3RVjc.js +1 -0
  48. package/dist/assets/Pagination-cc9vbiQH.js +2 -0
  49. package/dist/assets/Paper-kKqGsJ2_.js +1 -0
  50. package/dist/assets/{RevokeIcon-4zvAH67R.js → RevokeIcon-qytdNGtr.js} +1 -1
  51. package/dist/assets/Search-NO0Vj1Jx.js +2 -0
  52. package/dist/assets/Search-OMtIqcCB.js +1 -0
  53. package/dist/assets/Select-CLqvWhqc.js +2 -0
  54. package/dist/assets/{ServerLogo-isi19Tgj.js → ServerLogo-S3ffHW5K.js} +1 -1
  55. package/dist/assets/{Skeleton-gnG2NynL.js → Skeleton-kWPBv3hN.js} +5 -5
  56. package/dist/assets/StepLabel-xaoyvbWL.js +1 -0
  57. package/dist/assets/TextField-w62Tj_bv.js +2 -0
  58. package/dist/assets/TextField-yFSUKkfQ.js +1 -0
  59. package/dist/assets/Toolbar-p2Rw9VP_.js +1 -0
  60. package/dist/assets/Tooltip-a9pLijAX.js +1 -0
  61. package/dist/assets/Typography-4MXIXIgI.js +1 -0
  62. package/dist/assets/Typography-tvdIv5ZI.js +1 -0
  63. package/dist/assets/access-control-pMbwueld.js +13 -0
  64. package/dist/assets/actions-d6S2vs_m.js +1 -0
  65. package/dist/assets/add-component-core-Ixi2anfP.js +1001 -0
  66. package/dist/assets/add-resource-ul54uC2R.js +1 -0
  67. package/dist/assets/addon-jQ_lW5VA.js +31 -0
  68. package/dist/assets/analytics-FnaWc0o9.js +52 -0
  69. package/dist/assets/api-2KA7QvaK.js +1 -0
  70. package/dist/assets/{audit-logs-gy_GiPr1.js → audit-logs-dvdWU6So.js} +4 -4
  71. package/dist/assets/{button-sDNcUZdA.js → button-GVcV-kDi.js} +1 -1
  72. package/dist/assets/{click-to-copy-jP1Jjfmi.js → click-to-copy-0upUV1g8.js} +1 -1
  73. package/dist/assets/complete-jMtkQCKD.js +45 -0
  74. package/dist/assets/{component-mGiUoK4S.js → component-CWQe0NKu.js} +52 -52
  75. package/dist/assets/config-1ig6XAhh.js +1 -0
  76. package/dist/assets/config-navigation-0_7bDd95.js +102 -0
  77. package/dist/assets/config-ne8Y3LYs.js +32 -0
  78. package/dist/assets/{config-space-PPRQ64ov.js → config-space-KB8DhRe0.js} +1 -1
  79. package/dist/assets/confirm-Tyae6_Zc.js +7 -0
  80. package/dist/assets/connect-1QIaxGG0.js +1 -0
  81. package/dist/assets/connect-5SX-6mUN.js +5 -0
  82. package/dist/assets/connect-to-wW4QpEKP.js +54 -0
  83. package/dist/assets/{content-layout-RY8gcl_K.js → content-layout-3EgufeDh.js} +1 -1
  84. package/dist/assets/createStack-jceJWRju.js +1 -0
  85. package/dist/assets/createSvgIcon-TtyKAxsD.js +1 -0
  86. package/dist/assets/createSvgIcon-tFt1ryL0.js +1 -0
  87. package/dist/assets/dashboard-XUsTUl6m.js +134 -0
  88. package/dist/assets/did-address-3FoRRVKx.js +1 -0
  89. package/dist/assets/domain-Ou4FCB7Q.js +9 -0
  90. package/dist/assets/domain-list-uKO7uNWW.js +12 -0
  91. package/dist/assets/exchange-passport-X9HNXxpJ.js +1 -0
  92. package/dist/assets/{fallback-LxCPCLff.js → fallback-79zmcfbz.js} +1 -1
  93. package/dist/assets/formControlState-3f1dynOx.js +1 -0
  94. package/dist/assets/fuel-NHW2abk6.js +32 -0
  95. package/dist/assets/fullpage-gUYOsR-B.js +1 -0
  96. package/dist/assets/home-82LFYu2G.js +1 -0
  97. package/dist/assets/{iframe--iPe_a2f.js → iframe-f6hNs76Z.js} +1 -1
  98. package/dist/assets/{index-nkT_KXMy.js → index--CkleDlS.js} +1 -1
  99. package/dist/assets/index-2x3nG07a.js +201 -0
  100. package/dist/assets/{index-Vhx3FEvR.js → index-575yCkwl.js} +1 -1
  101. package/dist/assets/{index-MxeALFQf.js → index-7R0o6am8.js} +1 -1
  102. package/dist/assets/index-C3Uo8DGF.js +1 -0
  103. package/dist/assets/index-Dgm_SdZp.js +38 -0
  104. package/dist/assets/index-ELElcEqG.js +262 -0
  105. package/dist/assets/index-EuNhIMk-.js +1 -0
  106. package/dist/assets/index-QooYxDDB.js +17 -0
  107. package/dist/assets/{index-MylE_YAh.js → index-UPj3aFBg.js} +1 -1
  108. package/dist/assets/{index-tI696upG.js → index-Wd4YrnM9.js} +239 -329
  109. package/dist/assets/index-WjkFYOnL.js +16 -0
  110. package/dist/assets/{index-E4ZWmyGk.js → index-Z2TAkC1I.js} +1 -1
  111. package/dist/assets/index-ZibHxXIb.js +1 -0
  112. package/dist/assets/{index-z3ODAN3L.js → index-ac-7VxTm.js} +1 -1
  113. package/dist/assets/{index-W37UcQvv.js → index-cC16saNb.js} +25 -25
  114. package/dist/assets/index-dEtDHC5_.js +107 -0
  115. package/dist/assets/{index-WQaB8b9n.js → index-dO0N2FSj.js} +18 -18
  116. package/dist/assets/{index-2nmtaKL_.js → index-eiTVXDI8.js} +7 -7
  117. package/dist/assets/index-eshZ-tWA.js +4 -0
  118. package/dist/assets/{index-zukWofPQ.js → index-gaKMaa0N.js} +2 -2
  119. package/dist/assets/{index-gES45_RI.js → index-ja_Ipmzw.js} +5 -5
  120. package/dist/assets/{index-8pn_hXfi.js → index-jhy8ISuP.js} +7 -7
  121. package/dist/assets/index-jzY_5Mpt.js +1 -0
  122. package/dist/assets/index-k2zXVcXF.js +13 -0
  123. package/dist/assets/{index-bo2FHAot.js → index-oibkouzz.js} +1 -1
  124. package/dist/assets/index-qz_i-v1s.js +232 -0
  125. package/dist/assets/index-xk-W3y0O.js +268 -0
  126. package/dist/assets/index-yQZH21L_.js +1 -0
  127. package/dist/assets/{index.es-i484Hhds.js → index.es-pb4HlLo5.js} +1 -1
  128. package/dist/assets/index.esm-MVO-Yc9O.js +1 -0
  129. package/dist/assets/{invite-Q1WeH466.js → invite-7yOdsQPj.js} +8 -8
  130. package/dist/assets/issue-passport-mz5RdvLm.js +23 -0
  131. package/dist/assets/{jss-plugin-props-sort.esm-FVYd2q-V.js → jss-plugin-props-sort.esm-RZD2YHN-.js} +5 -5
  132. package/dist/assets/{launch-result-message-vav8FvlH.js → launch-result-message-dnUrrccd.js} +1 -1
  133. package/dist/assets/{layout-RSyMpp2D.js → layout-IXZgeuoW.js} +2 -2
  134. package/dist/assets/{list-header-BSBH0zQ3.js → list-header-T8PLjATD.js} +3 -3
  135. package/dist/assets/listItemButtonClasses-ej_0Wd0u.js +1 -0
  136. package/dist/assets/localization-UG7NGJKC.js +1 -0
  137. package/dist/assets/{log-E6fi0KKA.js → log-So71tnEv.js} +9 -9
  138. package/dist/assets/login-z1wY6qap.js +1 -0
  139. package/dist/assets/{logo-uploader-zfDQNUwk.js → logo-uploader-3ZuH123a.js} +5 -5
  140. package/dist/assets/lost-passport-R6oQSaxt.js +169 -0
  141. package/dist/assets/{lottie-_pLPoJ-1.js → lottie-RksaOdGU.js} +1 -1
  142. package/dist/assets/notifications-4fCG9FZ_.js +62 -0
  143. package/dist/assets/overview-B1K4ptrI.js +12 -0
  144. package/dist/assets/{page-header-XDCgljDC.js → page-header-2zyJkZ9E.js} +1 -1
  145. package/dist/assets/permission-DycDqWdA.js +7 -0
  146. package/dist/assets/preferences-k5XbYYxZ.js +1 -0
  147. package/dist/assets/publish-resource-1Zx2Swpb.js +1 -0
  148. package/dist/assets/{react-6q_2_cUd.js → react-5TzuQvhn.js} +3 -3
  149. package/dist/assets/selector-8Gj_YDKP.js +46 -0
  150. package/dist/assets/session-VA6PMO42.js +1 -0
  151. package/dist/assets/setup-y6CbGPfx.js +19 -0
  152. package/dist/assets/slicedToArray-8mFdVgnF.js +2 -0
  153. package/dist/assets/spaces-jG6buFhb.js +1 -0
  154. package/dist/assets/start-sUJoEx0p.js +186 -0
  155. package/dist/assets/step-actions-igJpcln5.js +31 -0
  156. package/dist/assets/studio-nX-Lvt-n.js +6 -0
  157. package/dist/assets/styled-QR9SQDeC.js +1 -0
  158. package/dist/assets/{switch-control-oXc5mNlV.js → switch-control-CzeK8njp.js} +1 -1
  159. package/dist/assets/{toUpper-RvHIoRYk.js → toUpper-3Gzsyh0C.js} +1 -1
  160. package/dist/assets/transfer-9hxkFsSj.js +16 -0
  161. package/dist/assets/{uniqBy-G2UOKHwr.js → uniqBy-p8TICBgq.js} +1 -1
  162. package/dist/assets/unsubscribe-9M-VvMEf.js +1 -0
  163. package/dist/assets/use-blocklet-info-for-connect-did-spaces-3p2Dd823.js +1 -0
  164. package/dist/assets/useAsync-bLl3m9OW.js +1 -0
  165. package/dist/assets/useMediaQuery-HjFmqP7e.js +1 -0
  166. package/dist/assets/useSetState-8hL6FUWi.js +1 -0
  167. package/dist/assets/useSlotProps-XvH7yjDf.js +1 -0
  168. package/dist/assets/useTheme-FGGdIoCP.js +1 -0
  169. package/dist/assets/user-center-GbgTVIf_.js +57 -0
  170. package/dist/assets/util-dDJEMWX7.js +1 -0
  171. package/dist/assets/visuallyHidden-DVicuktI.js +1 -0
  172. package/dist/assets/wrap-locale-DMEY67bd.js +7 -0
  173. package/dist/assets/{zh-fBqPZH6c.js → zh-MG2dbypE.js} +1 -1
  174. package/dist/index.html +1 -1
  175. package/dist/service-worker.js +1 -1
  176. package/package.json +38 -36
  177. package/dist/assets/Add-7g2VVPVn.js +0 -1
  178. package/dist/assets/Alert-J_LOTKGn.js +0 -1
  179. package/dist/assets/ArrowDropDown-w6SQB4Z1.js +0 -1
  180. package/dist/assets/Avatar-xIRaYTfu.js +0 -1
  181. package/dist/assets/ButtonGroup-HB3VSTeB.js +0 -1
  182. package/dist/assets/CardContent-5l4uh4ig.js +0 -1
  183. package/dist/assets/CheckCircle-nSCABwDK.js +0 -1
  184. package/dist/assets/Checkbox-P8vtjjVF.js +0 -1
  185. package/dist/assets/ChevronRight-ZrEi_w6i.js +0 -1
  186. package/dist/assets/CloseOutlined-PTKdbMiF.js +0 -1
  187. package/dist/assets/DeleteOutline-ey3GBCUW.js +0 -1
  188. package/dist/assets/Done-vK5iR6vU.js +0 -1
  189. package/dist/assets/Download-aahJoMlE.js +0 -1
  190. package/dist/assets/Edit-OU0N7xYs.js +0 -1
  191. package/dist/assets/ExpandMore-DBIVxyRD.js +0 -1
  192. package/dist/assets/FilterList-R-AE_GHN.js +0 -25
  193. package/dist/assets/FormControl-6yEJYlS5.js +0 -1
  194. package/dist/assets/FormControlLabel-20HNTqkg.js +0 -1
  195. package/dist/assets/FormGroup-35Eh4cl8.js +0 -1
  196. package/dist/assets/Grid-Q18GgpBs.js +0 -1
  197. package/dist/assets/Hidden-3U4cjY85.js +0 -1
  198. package/dist/assets/Icon-WKt0hv2v.js +0 -1
  199. package/dist/assets/InfoOutlined-GGjNqSSj.js +0 -1
  200. package/dist/assets/InputAdornment-v0Ghs4vA.js +0 -1
  201. package/dist/assets/InputLabel-PDpXpeRG.js +0 -1
  202. package/dist/assets/LastPage-eSVNX9y4.js +0 -1
  203. package/dist/assets/Launch-FTSCmPJ-.js +0 -1
  204. package/dist/assets/LaunchOutlined-5E6LXiE2.js +0 -1
  205. package/dist/assets/ListItem-pLuDtQgS.js +0 -1
  206. package/dist/assets/Loop-e0nOZxTR.js +0 -1
  207. package/dist/assets/MoreHoriz-PuMXq2PC.js +0 -1
  208. package/dist/assets/MoreVert-dCeo9SdV.js +0 -13
  209. package/dist/assets/OpenInNew-2pd62hQ9.js +0 -1
  210. package/dist/assets/Pagination-w5FDsB3B.js +0 -2
  211. package/dist/assets/PlayArrow-Uiau983f.js +0 -1
  212. package/dist/assets/RadioGroup-YCEsD_pu.js +0 -1
  213. package/dist/assets/Search-gz6hDZ_X.js +0 -1
  214. package/dist/assets/Select-M-8Lo2J5.js +0 -2
  215. package/dist/assets/Slider-iEQ0mBzA.js +0 -1
  216. package/dist/assets/Stepper-XYDkJ2KJ.js +0 -1
  217. package/dist/assets/TableRow-k9qE6omq.js +0 -2
  218. package/dist/assets/TextField-6hzePx6A.js +0 -1
  219. package/dist/assets/Toolbar-sSwWYKZs.js +0 -1
  220. package/dist/assets/access-control-k-igQFn7.js +0 -13
  221. package/dist/assets/actions-vPPAeKO_.js +0 -1
  222. package/dist/assets/add-component-core-mNoHl6TM.js +0 -900
  223. package/dist/assets/add-resource-BqkaB-gy.js +0 -1
  224. package/dist/assets/addon-_8k2HI__.js +0 -31
  225. package/dist/assets/analytics-W_LPwJnj.js +0 -52
  226. package/dist/assets/api-ED7jlksD.js +0 -1
  227. package/dist/assets/complete-cr5QM3f0.js +0 -45
  228. package/dist/assets/config-KH6srg17.js +0 -1
  229. package/dist/assets/config-U_F5gU_d.js +0 -32
  230. package/dist/assets/config-navigation-d3bE_bc9.js +0 -25
  231. package/dist/assets/confirm-1yUPPWyO.js +0 -7
  232. package/dist/assets/connect-JblIPNnK.js +0 -5
  233. package/dist/assets/connect-lEBu3S8Z.js +0 -1
  234. package/dist/assets/connect-to-Ec-PR8-d.js +0 -54
  235. package/dist/assets/dashboard-nqR-1NiP.js +0 -134
  236. package/dist/assets/did-address-OD4YOZ2O.js +0 -1
  237. package/dist/assets/domain-K6GMaIw4.js +0 -9
  238. package/dist/assets/domain-list-9GkXg5KQ.js +0 -12
  239. package/dist/assets/exchange-passport-NbW-kRvx.js +0 -1
  240. package/dist/assets/fuel-PLFgTm7J.js +0 -32
  241. package/dist/assets/fullpage-dMf47sgh.js +0 -1
  242. package/dist/assets/home-UZSoxDIO.js +0 -1
  243. package/dist/assets/index-1sYdSjgN.js +0 -54
  244. package/dist/assets/index-DbTtClCr.js +0 -1
  245. package/dist/assets/index-Iq36j3UA.js +0 -4
  246. package/dist/assets/index-Lwmxm_Tf.js +0 -16
  247. package/dist/assets/index-LwwZXnmq.js +0 -1
  248. package/dist/assets/index-PppwoIFB.js +0 -1
  249. package/dist/assets/index-Rean_S2b.js +0 -1
  250. package/dist/assets/index-_pLbqUL4.js +0 -267
  251. package/dist/assets/index-ckNUZNet.js +0 -232
  252. package/dist/assets/index-e6gALx9Q.js +0 -201
  253. package/dist/assets/index-fbLp4t_l.js +0 -38
  254. package/dist/assets/index-pgOqLld_.js +0 -1
  255. package/dist/assets/index-qpt45Jn0.js +0 -17
  256. package/dist/assets/index-zHYp13Ik.js +0 -262
  257. package/dist/assets/index.esm-HfciCOwM.js +0 -1
  258. package/dist/assets/issue-passport-tWWlizy7.js +0 -23
  259. package/dist/assets/localization-Q3LMXTEM.js +0 -1
  260. package/dist/assets/login-aWY-kYPK.js +0 -1
  261. package/dist/assets/lost-passport-wGRDHiL4.js +0 -169
  262. package/dist/assets/notifications-knIU14Bw.js +0 -62
  263. package/dist/assets/overview-7x_asHqV.js +0 -12
  264. package/dist/assets/permission-MnsY9Eps.js +0 -7
  265. package/dist/assets/preferences-vAQvxF7l.js +0 -1
  266. package/dist/assets/publish-resource-K9WG3ef9.js +0 -1
  267. package/dist/assets/selector-1dpe9L67.js +0 -46
  268. package/dist/assets/session-4Q3tQEqQ.js +0 -1
  269. package/dist/assets/setup-xSftcgSH.js +0 -19
  270. package/dist/assets/slicedToArray-Ed16vtYp.js +0 -2
  271. package/dist/assets/spaces--3SmdlJ4.js +0 -1
  272. package/dist/assets/start-bCHKgB-l.js +0 -186
  273. package/dist/assets/step-actions-h70_KUEF.js +0 -31
  274. package/dist/assets/studio-0bYB_8US.js +0 -6
  275. package/dist/assets/transfer-ChTc5bsG.js +0 -16
  276. package/dist/assets/unsubscribe-9GoXYfe0.js +0 -1
  277. package/dist/assets/use-blocklet-info-for-connect-did-spaces-k15NWp1Q.js +0 -1
  278. package/dist/assets/useAsync-y9Q4DzVF.js +0 -1
  279. package/dist/assets/useFormControl-UFbFMiSx.js +0 -1
  280. package/dist/assets/useLocalStorage-Ne-e0YYQ.js +0 -1
  281. package/dist/assets/useSetState-YFQy57cQ.js +0 -1
  282. package/dist/assets/user-center-sD1F8VCv.js +0 -57
  283. package/dist/assets/util-fKfjbPC7.js +0 -1
  284. package/dist/assets/wrap-locale-BDhExX8x.js +0 -7
@@ -0,0 +1 @@
1
+ import{g as S,a as x,U as d,c as r,_ as e,d as k,bs as y,br as C,r as m,W as M,f as z,j as s,h as j,i as R,c9 as B,P as T}from"./index-Wd4YrnM9.js";import{b as E,F as P}from"./TextField-w62Tj_bv.js";function N(o){return x("MuiSwitch",o)}const D=S("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),a=D,I=["className","color","edge","size","sx"],O=o=>{const{classes:t,edge:i,size:c,color:p,checked:u,disabled:h}=o,g={root:["root",i&&`edge${r(i)}`,`size${r(c)}`],switchBase:["switchBase",`color${r(p)}`,u&&"checked",h&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},b=R(g,N,t);return e({},t,b)},U=d("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:i}=o;return[t.root,i.edge&&t[`edge${r(i.edge)}`],t[`size${r(i.size)}`]]}})(({ownerState:o})=>e({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},o.edge==="start"&&{marginLeft:-8},o.edge==="end"&&{marginRight:-8},o.size==="small"&&{width:40,height:24,padding:7,[`& .${a.thumb}`]:{width:16,height:16},[`& .${a.switchBase}`]:{padding:4,[`&.${a.checked}`]:{transform:"translateX(16px)"}}})),A=d(E,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(o,t)=>{const{ownerState:i}=o;return[t.switchBase,{[`& .${a.input}`]:t.input},i.color!=="default"&&t[`color${r(i.color)}`]]}})(({theme:o})=>({position:"absolute",top:0,left:0,zIndex:1,color:o.vars?o.vars.palette.Switch.defaultColor:`${o.palette.mode==="light"?o.palette.common.white:o.palette.grey[300]}`,transition:o.transitions.create(["left","transform"],{duration:o.transitions.duration.shortest}),[`&.${a.checked}`]:{transform:"translateX(20px)"},[`&.${a.disabled}`]:{color:o.vars?o.vars.palette.Switch.defaultDisabledColor:`${o.palette.mode==="light"?o.palette.grey[100]:o.palette.grey[600]}`},[`&.${a.checked} + .${a.track}`]:{opacity:.5},[`&.${a.disabled} + .${a.track}`]:{opacity:o.vars?o.vars.opacity.switchTrackDisabled:`${o.palette.mode==="light"?.12:.2}`},[`& .${a.input}`]:{left:"-100%",width:"300%"}}),({theme:o,ownerState:t})=>e({"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:k(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${a.checked}`]:{color:(o.vars||o).palette[t.color].main,"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette[t.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:k(o.palette[t.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${a.disabled}`]:{color:o.vars?o.vars.palette.Switch[`${t.color}DisabledColor`]:`${o.palette.mode==="light"?y(o.palette[t.color].main,.62):C(o.palette[t.color].main,.55)}`}},[`&.${a.checked} + .${a.track}`]:{backgroundColor:(o.vars||o).palette[t.color].main}})),_=d("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(o,t)=>t.track})(({theme:o})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:o.transitions.create(["opacity","background-color"],{duration:o.transitions.duration.shortest}),backgroundColor:o.vars?o.vars.palette.common.onBackground:`${o.palette.mode==="light"?o.palette.common.black:o.palette.common.white}`,opacity:o.vars?o.vars.opacity.switchTrack:`${o.palette.mode==="light"?.38:.3}`})),L=d("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(o,t)=>t.thumb})(({theme:o})=>({boxShadow:(o.vars||o).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),V=m.forwardRef(function(t,i){const c=M({props:t,name:"MuiSwitch"}),{className:p,color:u="primary",edge:h=!1,size:g="medium",sx:b}=c,$=z(c,I),l=e({},c,{color:u,edge:h,size:g}),n=O(l),w=s.jsx(L,{className:n.thumb,ownerState:l});return s.jsxs(U,{className:j(n.root,p),sx:b,ownerState:l,children:[s.jsx(A,e({type:"checkbox",icon:w,checkedIcon:w,ref:i,ownerState:l},$,{classes:e({},n,{root:n.switchBase})})),s.jsx(_,{className:n.track,ownerState:l})]})}),X=V,v=B(o=>s.jsx(X,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...o}))(({theme:o})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:o.palette.mode==="dark"?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:o.palette.mode==="light"?o.palette.grey[100]:o.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:o.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:o.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:o.transitions.create(["background-color"],{duration:500})}}));function f({labelProps:o,...t}){return o?s.jsx(P,{control:s.jsx(v,{...t}),...o}):s.jsx(v,{...t})}f.propTypes={labelProps:T.object};f.defaultProps={labelProps:null};export{f as S};
@@ -0,0 +1,17 @@
1
+ var Be=Object.defineProperty;var ze=(t,e,n)=>e in t?Be(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var tt=(t,e,n)=>(ze(t,typeof e!="symbol"?e+"":e,n),n);import{g as Pt,a as Tt,U as lt,bX as ae,bY as He,_ as P,d as O,r as I,W as Lt,f as st,bZ as B,bc as le,Y as ue,j as h,h as z,i as jt,b_ as Ve,b$ as zt,P as d,a2 as De,q as Ue,bt as Ge,bu as Ht,c0 as Qe,c1 as We,c2 as Ze,bq as Je,a0 as k,c3 as Ye,$ as Xe,c4 as Ke,V as tn,c5 as en,O as nn,c6 as on,bE as de,l as fe,aC as sn,a3 as rn,a4 as cn}from"./index-Wd4YrnM9.js";import{D as an}from"./index-cC16saNb.js";import{L as ln}from"./selector-8Gj_YDKP.js";function un(t){return Tt("MuiListItem",t)}const dn=Pt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),q=dn;function fn(t){return Tt("MuiListItemButton",t)}const pn=Pt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),F=pn,hn=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],gn=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters]},mn=t=>{const{alignItems:e,classes:n,dense:s,disabled:o,disableGutters:r,divider:i,selected:a}=t,l=jt({root:["root",s&&"dense",!r&&"gutters",i&&"divider",o&&"disabled",e==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},fn,n);return P({},n,l)},bn=lt(ae,{shouldForwardProp:t=>He(t)||t==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:gn})(({theme:t,ownerState:e})=>P({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:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${F.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:O(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${F.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:O(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${F.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:O(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:O(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${F.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${F.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},e.alignItems==="flex-start"&&{alignItems:"flex-start"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.dense&&{paddingTop:4,paddingBottom:4})),yn=I.forwardRef(function(e,n){const s=Lt({props:e,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:r=!1,component:i="div",children:a,dense:c=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:f,selected:p=!1,className:m}=s,b=st(s,hn),x=I.useContext(B),C=I.useMemo(()=>({dense:c||x.dense||!1,alignItems:o,disableGutters:l}),[o,x.dense,c,l]),T=I.useRef(null);le(()=>{r&&T.current&&T.current.focus()},[r]);const v=P({},s,{alignItems:o,dense:C.dense,disableGutters:l,divider:u,selected:p}),y=mn(v),R=ue(T,n);return h.jsx(B.Provider,{value:C,children:h.jsx(bn,P({ref:R,href:b.href||b.to,component:(b.href||b.to)&&i==="div"?"button":i,focusVisibleClassName:z(y.focusVisible,f),ownerState:v,className:z(y.root,m)},b,{classes:y,children:a}))})}),xn=yn;function vn(t){return Tt("MuiListItemSecondaryAction",t)}Pt("MuiListItemSecondaryAction",["root","disableGutters"]);const In=["className"],Cn=t=>{const{disableGutters:e,classes:n}=t;return jt({root:["root",e&&"disableGutters"]},vn,n)},wn=lt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.disableGutters&&e.disableGutters]}})(({ownerState:t})=>P({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})),pe=I.forwardRef(function(e,n){const s=Lt({props:e,name:"MuiListItemSecondaryAction"}),{className:o}=s,r=st(s,In),i=I.useContext(B),a=P({},s,{disableGutters:i.disableGutters}),c=Cn(a);return h.jsx(wn,P({className:z(c.root,o),ownerState:a,ref:n},r))});pe.muiName="ListItemSecondaryAction";const Sn=pe,An=["className"],Pn=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Tn=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters,!n.disablePadding&&e.padding,n.button&&e.button,n.hasSecondaryAction&&e.secondaryAction]},Ln=t=>{const{alignItems:e,button:n,classes:s,dense:o,disabled:r,disableGutters:i,disablePadding:a,divider:c,hasSecondaryAction:l,selected:u}=t;return jt({root:["root",o&&"dense",!i&&"gutters",!a&&"padding",c&&"divider",r&&"disabled",n&&"button",e==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction",u&&"selected"],container:["container"]},un,s)},jn=lt("div",{name:"MuiListItem",slot:"Root",overridesResolver:Tn})(({theme:t,ownerState:e})=>P({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!e.disablePadding&&P({paddingTop:8,paddingBottom:8},e.dense&&{paddingTop:4,paddingBottom:4},!e.disableGutters&&{paddingLeft:16,paddingRight:16},!!e.secondaryAction&&{paddingRight:48}),!!e.secondaryAction&&{[`& > .${F.root}`]:{paddingRight:48}},{[`&.${q.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${q.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:O(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${q.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:O(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${q.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.alignItems==="flex-start"&&{alignItems:"flex-start"},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},e.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${q.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:O(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:O(t.palette.primary.main,t.palette.action.selectedOpacity)}}},e.hasSecondaryAction&&{paddingRight:48})),kn=lt("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"}),Rn=I.forwardRef(function(e,n){const s=Lt({props:e,name:"MuiListItem"}),{alignItems:o="center",autoFocus:r=!1,button:i=!1,children:a,className:c,component:l,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:b=!1,disabled:x=!1,disableGutters:C=!1,disablePadding:T=!1,divider:v=!1,focusVisibleClassName:y,secondaryAction:R,selected:w=!1,slotProps:g={},slots:S={}}=s,L=st(s.ContainerProps,An),A=st(s,Pn),j=I.useContext(B),ft=I.useMemo(()=>({dense:b||j.dense||!1,alignItems:o,disableGutters:C}),[o,j.dense,b,C]),pt=I.useRef(null);le(()=>{r&&pt.current&&pt.current.focus()},[r]);const E=I.Children.toArray(a),qt=E.length&&Ve(E[E.length-1],["ListItemSecondaryAction"]),X=P({},s,{alignItems:o,autoFocus:r,button:i,dense:ft.dense,disabled:x,disableGutters:C,disablePadding:T,divider:v,hasSecondaryAction:qt,selected:w}),Ft=Ln(X),Bt=ue(pt,n),K=S.root||u.Root||jn,H=g.root||f.root||{},N=P({className:z(Ft.root,H.className,c),disabled:x},A);let _=l||"li";return i&&(N.component=l||"div",N.focusVisibleClassName=z(q.focusVisible,y),_=ae),qt?(_=!N.component&&!l?"div":_,p==="li"&&(_==="li"?_="div":N.component==="li"&&(N.component="div")),h.jsx(B.Provider,{value:ft,children:h.jsxs(kn,P({as:p,className:z(Ft.container,m),ref:Bt,ownerState:X},L,{children:[h.jsx(K,P({},H,!zt(K)&&{as:_,ownerState:P({},X,H.ownerState)},N,{children:E})),E.pop()]}))})):h.jsx(B.Provider,{value:ft,children:h.jsxs(K,P({},H,{as:_,ref:Bt},!zt(K)&&{ownerState:P({},X,H.ownerState)},N,{children:[E,R&&h.jsx(Sn,{children:R})]}))})}),On=Rn;/**
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 he=Object.freeze({left:0,top:0,width:16,height:16}),rt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Z=Object.freeze({...he,...rt}),yt=Object.freeze({...Z,body:"",hidden:!1}),Mn=Object.freeze({width:null,height:null}),ge=Object.freeze({...Mn,...rt});function Nn(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function s(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:s(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let r=parseFloat(t.slice(0,t.length-n.length));return isNaN(r)?0:(r=r/o,r%1===0?s(r):0)}}return e}const _n=/[\s,]+/;function $n(t,e){e.split(_n).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}const me={...ge,preserveAspectRatio:""};function Vt(t){const e={...me},n=(s,o)=>t.getAttribute(s)||o;return e.width=n("width",null),e.height=n("height",null),e.rotate=Nn(n("rotate","")),$n(e,n("flip","")),e.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),e}function En(t,e){for(const n in me)if(t[n]!==e[n])return!0;return!1}const D=/^[a-z0-9]+(-[a-z0-9]+)*$/,J=(t,e,n,s="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;s=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]:s,prefix:c,name:a};return e&&!nt(l)?null:l}const r=o[0],i=r.split("-");if(i.length>1){const a={provider:s,prefix:i.shift(),name:i.join("-")};return e&&!nt(a)?null:a}if(n&&s===""){const a={provider:s,prefix:"",name:r};return e&&!nt(a,n)?null:a}return null},nt=(t,e)=>t?!!((t.provider===""||t.provider.match(D))&&(e&&t.prefix===""||t.prefix.match(D))&&t.name.match(D)):!1;function qn(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function Dt(t,e){const n=qn(t,e);for(const s in yt)s in rt?s in t&&!(s in n)&&(n[s]=rt[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function Fn(t,e){const n=t.icons,s=t.aliases||Object.create(null),o=Object.create(null);function r(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=s[i]&&s[i].parent,c=a&&r(a);c&&(o[i]=[a].concat(c))}return o[i]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(r),o}function Bn(t,e,n){const s=t.icons,o=t.aliases||Object.create(null);let r={};function i(a){r=Dt(s[a]||o[a],r)}return i(e),n.forEach(i),Dt(t,r)}function be(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});const s=Fn(t);for(const o in s){const r=s[o];r&&(e(o,Bn(t,o,r)),n.push(o))}return n}const zn={provider:"",aliases:{},not_found:{},...he};function ht(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function ye(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!ht(t,zn))return null;const n=e.icons;for(const o in n){const r=n[o];if(!o.match(D)||typeof r.body!="string"||!ht(r,yt))return null}const s=e.aliases||Object.create(null);for(const o in s){const r=s[o],i=r.parent;if(!o.match(D)||typeof i!="string"||!n[i]&&!s[i]||!ht(r,yt))return null}return e}const it=Object.create(null);function Hn(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function M(t,e){const n=it[t]||(it[t]=Object.create(null));return n[e]||(n[e]=Hn(t,e))}function kt(t,e){return ye(e)?be(e,(n,s)=>{s?t.icons[n]=s:t.missing.add(n)}):[]}function Vn(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}function Dn(t,e){let n=[];return(typeof t=="string"?[t]:Object.keys(it)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys(it[o]||{})).forEach(i=>{const a=M(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let G=!1;function xe(t){return typeof t=="boolean"&&(G=t),G}function Q(t){const e=typeof t=="string"?J(t,!0,G):t;if(e){const n=M(e.provider,e.prefix),s=e.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function ve(t,e){const n=J(t,!0,G);if(!n)return!1;const s=M(n.provider,n.prefix);return Vn(s,n.name,e)}function Ut(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),G&&!e&&!t.prefix){let o=!1;return ye(t)&&(t.prefix="",be(t,(r,i)=>{i&&ve(r,i)&&(o=!0)})),o}const n=t.prefix;if(!nt({provider:e,prefix:n,name:"a"}))return!1;const s=M(e,n);return!!kt(s,t)}function Un(t){return!!Q(t)}function Gn(t){const e=Q(t);return e?{...Z,...e}:null}function Qn(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,r)=>o.provider!==r.provider?o.provider.localeCompare(r.provider):o.prefix!==r.prefix?o.prefix.localeCompare(r.prefix):o.name.localeCompare(r.name));let s={provider:"",prefix:"",name:""};return t.forEach(o=>{if(s.name===o.name&&s.prefix===o.prefix&&s.provider===o.provider)return;s=o;const r=o.provider,i=o.prefix,a=o.name,c=n[r]||(n[r]=Object.create(null)),l=c[i]||(c[i]=M(r,i));let u;a in l.icons?u=e.loaded:i===""||l.missing.has(a)?u=e.missing:u=e.pending;const f={provider:r,prefix:i,name:a};u.push(f)}),e}function Ie(t,e){t.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(o=>o.id!==e))})}function Wn(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const s=t.provider,o=t.prefix;e.forEach(r=>{const i=r.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(t.icons[l])i.loaded.push({provider:s,prefix:o,name:l});else if(t.missing.has(l))i.missing.push({provider:s,prefix:o,name:l});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||Ie([t],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let Zn=0;function Jn(t,e,n){const s=Zn++,o=Ie.bind(null,n,s);if(!e.pending.length)return o;const r={id:s,icons:e,callback:t,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),o}const xt=Object.create(null);function Gt(t,e){xt[t]=e}function vt(t){return xt[t]||xt[""]}function Yn(t,e=!0,n=!1){const s=[];return t.forEach(o=>{const r=typeof o=="string"?J(o,e,n):o;r&&s.push(r)}),s}var Xn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Kn(t,e,n,s){const o=t.resources.length,r=t.random?Math.floor(Math.random()*o):t.index;let i;if(t.random){let g=t.resources.slice(0);for(i=[];g.length>1;){const S=Math.floor(Math.random()*g.length);i.push(g[S]),g=g.slice(0,S).concat(g.slice(S+1))}i=i.concat(g)}else i=t.resources.slice(r).concat(t.resources.slice(0,r));const a=Date.now();let c="pending",l=0,u,f=null,p=[],m=[];typeof s=="function"&&m.push(s);function b(){f&&(clearTimeout(f),f=null)}function x(){c==="pending"&&(c="aborted"),b(),p.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),p=[]}function C(g,S){S&&(m=[]),typeof g=="function"&&m.push(g)}function T(){return{startTime:a,payload:e,status:c,queriesSent:l,queriesPending:p.length,subscribe:C,abort:x}}function v(){c="failed",m.forEach(g=>{g(void 0,u)})}function y(){p.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),p=[]}function R(g,S,L){const A=S!=="success";switch(p=p.filter(j=>j!==g),c){case"pending":break;case"failed":if(A||!t.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=L,v();return}if(A){u=L,p.length||(i.length?w():v());return}if(b(),y(),!t.random){const j=t.resources.indexOf(g.resource);j!==-1&&j!==t.index&&(t.index=j)}c="completed",m.forEach(j=>{j(L)})}function w(){if(c!=="pending")return;b();const g=i.shift();if(g===void 0){if(p.length){f=setTimeout(()=>{b(),c==="pending"&&(y(),v())},t.timeout);return}v();return}const S={status:"pending",resource:g,callback:(L,A)=>{R(S,L,A)}};p.push(S),l++,f=setTimeout(w,t.rotate),n(g,e,S.callback)}return setTimeout(w),T}function Ce(t){const e={...Xn,...t};let n=[];function s(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const u=Kn(e,a,c,(f,p)=>{s(),l&&l(f,p)});return n.push(u),u}function r(a){return n.find(c=>a(c))||null}return{query:o,find:r,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:s}}function Rt(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const ut=Object.create(null),V=["https://api.simplesvg.com","https://api.unisvg.com"],ot=[];for(;V.length>0;)V.length===1||Math.random()>.5?ot.push(V.shift()):ot.push(V.pop());ut[""]=Rt({resources:["https://api.iconify.design"].concat(ot)});function Qt(t,e){const n=Rt(e);return n===null?!1:(ut[t]=n,!0)}function dt(t){return ut[t]}function to(){return Object.keys(ut)}function Wt(){}const gt=Object.create(null);function eo(t){if(!gt[t]){const e=dt(t);if(!e)return;const n=Ce(e),s={config:e,redundancy:n};gt[t]=s}return gt[t]}function we(t,e,n){let s,o;if(typeof t=="string"){const r=vt(t);if(!r)return n(void 0,424),Wt;o=r.send;const i=eo(t);i&&(s=i.redundancy)}else{const r=Rt(t);if(r){s=Ce(r);const i=t.resources?t.resources[0]:"",a=vt(i);a&&(o=a.send)}}return!s||!o?(n(void 0,424),Wt):s.query(e,o,n)().abort}const Zt="iconify2",W="iconify",Se=W+"-count",Jt=W+"-version",Ae=36e5,no=168;function It(t,e){try{return t.getItem(e)}catch{}}function Ot(t,e,n){try{return t.setItem(e,n),!0}catch{}}function Yt(t,e){try{t.removeItem(e)}catch{}}function Ct(t,e){return Ot(t,Se,e.toString())}function wt(t){return parseInt(It(t,Se))||0}const $={local:!0,session:!0},Pe={local:new Set,session:new Set};let Mt=!1;function oo(t){Mt=t}let et=typeof window>"u"?{}:window;function Te(t){const e=t+"Storage";try{if(et&&et[e]&&typeof et[e].length=="number")return et[e]}catch{}$[t]=!1}function Le(t,e){const n=Te(t);if(!n)return;const s=It(n,Jt);if(s!==Zt){if(s){const a=wt(n);for(let c=0;c<a;c++)Yt(n,W+c.toString())}Ot(n,Jt,Zt),Ct(n,0);return}const o=Math.floor(Date.now()/Ae)-no,r=a=>{const c=W+a.toString(),l=It(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"&&e(u,a))return!0}catch{}Yt(n,c)}};let i=wt(n);for(let a=i-1;a>=0;a--)r(a)||(a===i-1?(i--,Ct(n,i)):Pe[t].add(a))}function je(){if(!Mt){oo(!0);for(const t in $)Le(t,e=>{const n=e.data,s=e.provider,o=n.prefix,r=M(s,o);if(!kt(r,n).length)return!1;const i=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,i):i,!0})}}function so(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const s in $)Le(s,o=>{const r=o.data;return o.provider!==t.provider||r.prefix!==t.prefix||r.lastModified===e});return!0}function ro(t,e){Mt||je();function n(s){let o;if(!$[s]||!(o=Te(s)))return;const r=Pe[s];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=wt(o),!Ct(o,i+1))return;const a={cached:Math.floor(Date.now()/Ae),provider:t.provider,data:e};return Ot(o,W+i.toString(),JSON.stringify(a))}e.lastModified&&!so(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function Xt(){}function io(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Wn(t)}))}function co(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:s}=t,o=t.iconsToLoad;delete t.iconsToLoad;let r;if(!o||!(r=vt(n)))return;r.prepare(n,s,o).forEach(a=>{we(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{t.missing.add(l)});else try{const l=kt(t,c);if(!l.length)return;const u=t.pendingIcons;u&&l.forEach(f=>{u.delete(f)}),ro(t,c)}catch(l){console.error(l)}io(t)})})}))}const Nt=(t,e)=>{const n=Yn(t,!0,xe()),s=Qn(n);if(!s.pending.length){let c=!0;return e&&setTimeout(()=>{c&&e(s.loaded,s.missing,s.pending,Xt)}),()=>{c=!1}}const o=Object.create(null),r=[];let i,a;return s.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===i)return;i=l,a=u,r.push(M(l,u));const f=o[l]||(o[l]=Object.create(null));f[u]||(f[u]=[])}),s.pending.forEach(c=>{const{provider:l,prefix:u,name:f}=c,p=M(l,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(f)||(m.add(f),o[l][u].push(f))}),r.forEach(c=>{const{provider:l,prefix:u}=c;o[l][u].length&&co(c,o[l][u])}),e?Jn(e,s,r):Xt},ao=t=>new Promise((e,n)=>{const s=typeof t=="string"?J(t,!0):t;if(!s){n(t);return}Nt([s||t],o=>{if(o.length&&s){const r=Q(s);if(r){e({...Z,...r});return}}n(t)})});function lo(t){try{const e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function uo(t,e){const n=typeof t=="string"?J(t,!0,!0):null;if(!n){const r=lo(t);return{value:t,data:r}}const s=Q(n);if(s!==void 0||!n.prefix)return{value:t,name:n,data:s};const o=Nt([n],()=>e(t,n,Q(n)));return{value:t,name:n,loading:o}}function mt(t){return t.hasAttribute("inline")}let ke=!1;try{ke=navigator.vendor.indexOf("Apple")===0}catch{}function fo(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(ke||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}const po=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ho=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function St(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(po);if(s===null||!s.length)return t;const o=[];let r=s.shift(),i=ho.test(r);for(;;){if(i){const a=parseFloat(r);isNaN(a)?o.push(r):o.push(Math.ceil(a*e*n)/n)}else o.push(r);if(r=s.shift(),r===void 0)return o.join("");i=!i}}const go=t=>t==="unset"||t==="undefined"||t==="none";function Re(t,e){const n={...Z,...t},s={...ge,...e},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(b=>{const x=[],C=b.hFlip,T=b.vFlip;let v=b.rotate;C?T?v+=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(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){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}v%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&&(r='<g transform="'+x.join(" ")+'">'+r+"</g>")});const i=s.width,a=s.height,c=o.width,l=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?l:a,u=St(f,c/l)):(u=i==="auto"?c:i,f=a===null?St(u,l/c):a==="auto"?l:a);const p={},m=(b,x)=>{go(x)||(p[b]=x.toString())};return m("width",u),m("height",f),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:p,body:r}}const mo=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let ct=mo();function bo(t){ct=t}function yo(){return ct}function xo(t,e){const n=dt(t);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const r=e+".json?icons=";s=n.maxURL-o-n.path.length-r.length}return s}function vo(t){return t===404}const Io=(t,e,n)=>{const s=[],o=xo(t,e),r="icons";let i={type:r,provider:t,prefix:e,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(s.push(i),i={type:r,provider:t,prefix:e,icons:[]},a=c.length),i.icons.push(c)}),s.push(i),s};function Co(t){if(typeof t=="string"){const e=dt(t);if(e)return e.path}return"/"}const wo=(t,e,n)=>{if(!ct){n("abort",424);return}let s=Co(e.provider);switch(e.type){case"icons":{const r=e.prefix,a=e.icons.join(","),c=new URLSearchParams({icons:a});s+=r+".json?"+c.toString();break}case"custom":{const r=e.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let o=503;ct(t+s).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(vo(i)?"abort":"next",i)});return}return o=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",o)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",o)})},So={prepare:Io,send:wo};function Kt(t,e){switch(t){case"local":case"session":$[t]=e;break;case"all":for(const n in $)$[n]=e;break}}const bt="data-style";let Oe="";function Ao(t){Oe=t}function te(t,e){let n=Array.from(t.childNodes).find(s=>s.hasAttribute&&s.hasAttribute(bt));n||(n=document.createElement("style"),n.setAttribute(bt,bt),t.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"+Oe}function Me(){Gt("",So),xe(!0);let t;try{t=window}catch{}if(t){if(je(),t.IconifyPreload!==void 0){const n=t.IconifyPreload,s="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"||!Ut(o))&&console.error(s)}catch{console.error(s)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(const s in n){const o="IconifyProviders["+s+"] is invalid.";try{const r=n[s];if(typeof r!="object"||!r||r.resources===void 0)continue;Qt(s,r)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Kt(n,!0),disableCache:n=>Kt(n,!1),iconExists:Un,getIcon:Gn,listIcons:Dn,addIcon:ve,addCollection:Ut,calculateSize:St,buildIcon:Re,loadIcons:Nt,loadIcon:ao,addAPIProvider:Qt,appendCustomStyle:Ao,_api:{getAPIConfig:dt,setAPIModule:Gt,sendAPIQuery:we,setFetch:bo,getFetch:yo,listAPIProviders:to}}}function Ne(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in e)n+=" "+s+'="'+e[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function Po(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function To(t){return"data:image/svg+xml,"+Po(t)}function Lo(t){return'url("'+To(t)+'")'}const At={"background-color":"currentColor"},_e={"background-color":"transparent"},ee={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},ne={"-webkit-mask":At,mask:At,background:_e};for(const t in ne){const e=ne[t];for(const n in ee)e[t+"-"+n]=ee[n]}function oe(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function jo(t,e,n){const s=document.createElement("span");let o=t.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const r=t.attributes,i=Ne(o,{...r,width:e.width+"",height:e.height+""}),a=Lo(i),c=s.style,l={"--svg":a,width:oe(r.width),height:oe(r.height),...n?At:_e};for(const u in l)c.setProperty(u,l[u]);return s}let U;function ko(){try{U=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{U=null}}function Ro(t){return U===void 0&&ko(),U?U.createHTML(t):t}function Oo(t){const e=document.createElement("span"),n=t.attributes;let s="";n.width||(s="width: inherit;"),n.height||(s+="height: inherit;"),s&&(n.style=s);const o=Ne(t.body,n);return e.innerHTML=Ro(o),e.firstChild}function se(t,e){const n=e.icon.data,s=e.customisations,o=Re(n,s);s.preserveAspectRatio&&(o.attributes.preserveAspectRatio=s.preserveAspectRatio);const r=e.renderedMode;let i;switch(r){case"svg":i=Oo(o);break;default:i=jo(o,{...Z,...n},r==="mask")}const a=Array.from(t.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")):t.replaceChild(i,a):t.appendChild(i)}function re(t,e,n){const s=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:e,icon:t,lastRender:s}}function Mo(t="iconify-icon"){let e,n;try{e=window.customElements,n=window.HTMLElement}catch{return}if(!e||!n)return;const s=e.get(t);if(s)return s;const o=["icon","mode","inline","width","height","rotate","flip"],r=class extends n{constructor(){super();tt(this,"_shadowRoot");tt(this,"_state");tt(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=mt(this);te(c,l),this._state=re({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=mt(this),u=this._state;l!==u.inline&&(u.inline=l,te(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 mt(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{}se(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"),f=Vt(this);(c.attrMode!==u||En(c.customisations,f))&&this._renderIcon(c.icon,f,u)}_iconChanged(c){const l=uo(c,(u,f,p)=>{const m=this._state;if(m.rendered||this.getAttribute("icon")!==u)return;const b={value:u,name:f,data:p};b.data?this._gotIconData(b):m.icon=b});l.data?this._gotIconData(l):this._state=re(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Vt(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const f=fo(c.data.body,u),p=this._state.inline;se(this._shadowRoot,this._state={rendered:!0,icon:c,inline:p,customisations:l,attrMode:u,renderedMode:f})}};o.forEach(a=>{a in r.prototype||Object.defineProperty(r.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=Me();for(const a in i)r[a]=r.prototype[a]=i[a];return e.define(t,r),r}Mo()||Me();const No=d.shape({appLogo:d.node,appName:d.string,theme:d.shape({background:d.string}),enableConnect:d.bool,enableLocale:d.bool,navigation:d.arrayOf(d.shape({title:d.oneOfType([d.string,d.object]),link:d.oneOfType([d.string,d.object]),icon:d.string,items:d.arrayOf(d.shape({title:d.oneOfType([d.string,d.object]),link:d.oneOfType([d.string,d.object])}))}))}),$e=d.shape({showText:d.bool,showRole:d.bool,switchDid:d.bool,switchProfile:d.bool,switchPassport:d.bool,disableLogout:d.bool,onLogin:d.func,onLogout:d.func,onSwitchDid:d.func,onSwitchProfile:d.func,onSwitchPassport:d.func,menu:d.array,menuRender:d.func,dark:d.bool,size:d.number}),Y=(t,e,n="children")=>t.map(s=>Array.isArray(s[n])?e({...s,[n]:Y(s[n],e,n)}):e(s)),_o=(t,e="children")=>{const n=[];return Y(t,s=>n.push(s),e),n},_t=(t,e,n="children")=>t.map(s=>({...s})).filter(s=>{const o=s[n];if(Array.isArray(o)){const i=_t(o,e,n);s[n]=i!=null&&i.length?i:void 0}const r={filteredChildren:s[n],isLeaf:!(o!=null&&o.length)};return e(s,r)}),$o=t=>/^https?:\/\//.test(t),Yo=t=>/^[\w-]+:[\w-]+$/.test(t),Eo=t=>{if(!t||!(t!=null&&t.startsWith("/")))return!1;const e=o=>o.endsWith("/")?o:`${o}/`,n=e(window.location.pathname),s=e(new URL(t,window.location.origin).pathname);return n.startsWith(s)},qo=(t=[])=>{const e=t.map((s,o)=>({path:s,index:o})).filter(s=>Eo(s.path));return e!=null&&e.length?e.slice(1).reduce((s,o)=>s.path.length>=o.path.length?s:o,e[0]).index:-1};var ie,ce;const at=((ie=window==null?void 0:window.blocklet)==null?void 0:ie.groupPrefix)||((ce=window==null?void 0:window.blocklet)==null?void 0:ce.prefix)||"/",Fo=t=>{const e={...t},n=t==null?void 0:t.background;return typeof n=="string"?e.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(e.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),e},Ee=(t,e="en")=>{if(!(t!=null&&t.length))return t;const n=(o,r)=>typeof o=="string"?o:typeof o=="object"?o[r]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,s=(o,r)=>{if(typeof o=="string"){if($o(o)){const a=new URL(o);return a.searchParams.set("locale",r),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",r),i.pathname+i.search}return typeof o=="object"?o[r]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return Y(t,o=>{var r;return{...o,title:n(o.title,e),link:(r=o.items)!=null&&r.length?o.link:s(o.link,e),_rawLink:o.link}},"items")},Bo=t=>Y(t,e=>e.role?{...e,role:Array.isArray(e.role)?e.role:[e.role]}:e,"items"),zo=t=>{if(!(t!=null&&t.length))return null;const e=Bo(t),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return e.forEach(s=>{var o;s.section?Array.isArray(s.section)?s.section.forEach(r=>{var i;(i=n[r])==null||i.push(s)}):typeof s.section=="string"&&((o=n[s.section])==null||o.push(s)):n.header.push(s)}),n},Ho=t=>{if(!t)return null;const e={...t};return e.theme=Fo(e.theme),e.navigation=zo(Vo(e.navigation)),e},Vo=(t=[])=>_t(t,(e,n)=>{var s;return!!e.link||((s=n.filteredChildren)==null?void 0:s.length)},"items"),qe=(t,e)=>_t(t,(n,s)=>{var r;const o=!n.role||e&&n.role.includes(e);return s.isLeaf?o:o&&((r=s.filteredChildren)==null?void 0:r.length)},"items"),Do={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"/>'},Uo={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 $t({session:t,locale:e,size:n}){const s=(window==null?void 0:window.blocklet)||{},o=(s.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=t==null?void 0:t.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((s==null?void 0:s.componentMountPoints)||[]).find(u=>c.component===u.name);return{...c,component:l}}),r=I.useRef(null),i=De({open:!1}),a=Ue((c=!i.open)=>{i.open=c});return o.length===0||!(t!=null&&t.user)?null:h.jsxs(h.Fragment,{children:[h.jsx(Ge,{size:"medium",ref:r,onClick:()=>a(),children:h.jsx(Ht,{icon:Do,fontSize:n,style:{transform:"scale(1.08)"}})}),h.jsx(Qe,{open:i.open,onClose:()=>a(!1),anchorEl:r.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>h.jsx(We,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:h.jsx(Ze,{...c,timeout:350,children:h.jsxs(Je,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:k.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${k.gray6}, 0px 0px 0px 1px ${k.gray6}`},children:[h.jsx(Ye,{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,f;return h.jsx(On,{disablePadding:!0,children:h.jsxs(xn,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:k.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?h.jsx(Xe,{component:"img",src:`${Ke}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):h.jsx(Ht,{fontSize:50,icon:l.icon||Uo,color:k.textSubtitle}),h.jsx(tn,{sx:{fontSize:"12px",color:k.textBase,textAlign:"center",lineHeight:"normal"},children:((f=l.title)==null?void 0:f.zh)||l.title})]})},l.id)})}),h.jsx(en,{session:t,children:h.jsx(nn,{variant:"outlined",fullWidth:!0,href:on,sx:{mt:1,borderRadius:2,color:k.textBase,borderColor:k.lineBorderStrong,"&:hover":{color:k.primaryBase,borderColor:k.primaryBase}},children:e==="zh"?"管理":"Manage"})})]})})})})]})}$t.propTypes={session:d.object.isRequired,locale:d.string,size:d.number};$t.defaultProps={locale:"en",size:24};function Et({formattedBlocklet:t,addons:e,sessionManagerProps:n}){var p,m,b,x;const s=I.useContext(de),{locale:o}=fe()||{},{enableConnect:r=!0,enableLocale:i=!0}=t,a=!!((p=s==null?void 0:s.session)!=null&&p.user);let c=Ee((m=t==null?void 0:t.navigation)==null?void 0:m.sessionManager,o)||[];c=qe(c,(x=(b=s==null?void 0:s.session)==null?void 0:b.user)==null?void 0:x.role);const u=(()=>{if(e&&typeof e!="function")return Array.isArray(e)?e:[e];let C=[];if(i&&o&&C.push(h.jsx(ln,{showText:!1},"locale-selector")),r&&s){const T=[];a&&(c?c.slice(0,5):[]).forEach(y=>{T.push({label:y.title,icon:y.icon?h.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),C.push(h.jsx($t,{session:s.session,locale:o},"session-blocklet")),C.push(h.jsx(sn,{session:s.session,locale:o,menu:T,showRole:!0,...n},"session-user"))}return typeof e=="function"&&(C=e(C)||[]),C})();return I.createElement(h.Fragment,null,...Array.isArray(u)?u:[u])}Et.propTypes={formattedBlocklet:d.object.isRequired,addons:d.oneOfType([d.func,d.node]),sessionManagerProps:$e};Et.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Go=()=>{const t=rn();I.useEffect(()=>{t.wallet&&cn(()=>import("./index-7R0o6am8.js").then(e=>e.i),__vite__mapDeps([0,1,2])).then(e=>{e.call||(e=e.default),e.call("arcHideTopBar","{}")}).catch(e=>{console.error("load dsbridge error",e)})},[t])};function Fe({meta:t,fallbackUrl:e,invalidPathFallback:n,headerAddons:s,sessionManagerProps:o,links:r,...i}){var R;Go();const a=I.useContext(de),c=(R=a==null?void 0:a.session)==null?void 0:R.user,l=c==null?void 0:c.role,{locale:u}=fe()||{},f=I.useMemo(()=>{const w=Object.assign({},window.blocklet,t);try{return Ho(w)}catch(g){return console.error("Failed to format blocklet info",g,w),w}},[t]),{localizedNav:p,flattened:m,matchedIndex:b}=I.useMemo(()=>{var L;let w=Ee((L=f==null?void 0:f.navigation)==null?void 0:L.dashboard,u)||[];w=qe(w,l),w=Y(w,A=>({title:A.title,url:A.link,icon:A.icon?h.jsx("iconify-icon",{height:"100%",width:"100%",icon:A.icon}):null,external:!0,children:A.items}),"items");const g=_o(w).filter(A=>!!A.url),S=qo(g.map(A=>A.url));return S!==-1&&(g[S].active=!0),{localizedNav:w,flattened:g,matchedIndex:S}},[f,u,l]),x=typeof r=="function"?r(p):[...p,...r];if(I.useLayoutEffect(()=>{c&&!(m!=null&&m.length)&&e&&(window.location.href=e)},[e]),I.useLayoutEffect(()=>{var w;c&&(m!=null&&m.length)&&b===-1&&(n?n():window.location.href=((w=m[0])==null?void 0:w.url)||at)},[n,m,b]),!f.appName)return null;const{appLogo:C,appLogoRect:T,appName:v}=f,y=h.jsx(Et,{formattedBlocklet:f,addons:s,sessionManagerProps:o});return h.jsx(an,{title:v,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:at,logo:h.jsx("img",{src:T||C,alt:"logo"}),addons:y,...i.headerProps}})}Fe.propTypes={meta:No,fallbackUrl:d.string,invalidPathFallback:d.func,headerAddons:d.oneOfType([d.func,d.node]),sessionManagerProps:$e,links:d.oneOfType([d.array,d.func])};Fe.defaultProps={meta:{},fallbackUrl:at,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=at}},links:[]};export{Fe as D,Et as H,Yo as a,No as b,_o as c,qo as d,Ho as f,Ee as g,$o as i,Y as m,at as p,$e as s,Go as u};
12
+ function __vite__mapDeps(indexes) {
13
+ if (!__vite__mapDeps.viteFileDeps) {
14
+ __vite__mapDeps.viteFileDeps = ["assets/index-7R0o6am8.js","assets/index-Wd4YrnM9.js","assets/index-TCTrVMXW.css"]
15
+ }
16
+ return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
17
+ }
@@ -1 +1 @@
1
- import{aO as y}from"./index-tI696upG.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var a=this._errors[r],o=a.message,n=(e[o]||0)+1;e[o]=n,n>=t&&(i=a,t=n)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var a in t)r[a]=t[a];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],n=0;n<r.retries;n++)o.push(this.createTimeout(n,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(n,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var a=r.randomize?Math.random()+1:1,o=Math.round(a*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,a){if(r instanceof Array&&(a=r,r=null),!a){a=[];for(var o in t)typeof t[o]=="function"&&a.push(o)}for(var n=0;n<a.length;n++){var s=a[n],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
1
+ import{aM as y}from"./index-Wd4YrnM9.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var a=this._errors[r],o=a.message,n=(e[o]||0)+1;e[o]=n,n>=t&&(i=a,t=n)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var a in t)r[a]=t[a];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],n=0;n<r.retries;n++)o.push(this.createTimeout(n,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(n,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var a=r.randomize?Math.random()+1:1,o=Math.round(a*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,a){if(r instanceof Array&&(a=r,r=null),!a){a=[];for(var o in t)typeof t[o]=="function"&&a.push(o)}for(var n=0;n<a.length;n++){var s=a[n],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};