@abtnode/blocklet-services 1.16.30-beta-b80c7bcd → 1.16.30-beta-5d9c2c41

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 (234) hide show
  1. package/api/libs/open-graph/index.js +2 -0
  2. package/api/libs/open-graph/template.js +6 -6
  3. package/dist/assets/{Add-CvWpFwb9.js → Add-CVYAN2n2.js} +1 -1
  4. package/dist/assets/{AddBox-B5yAYYc5.js → AddBox-DnwcDko1.js} +1 -1
  5. package/dist/assets/{Alert-D6BaRZ7F.js → Alert-bzh-1cuw.js} +1 -1
  6. package/dist/assets/{ArrowDropDown-D_JtvQgy.js → ArrowDropDown-B3gw7vQE.js} +1 -1
  7. package/dist/assets/{Avatar-CF7xxGtX.js → Avatar-CDgX4gdS.js} +1 -1
  8. package/dist/assets/{ButtonGroup-DxKP8J2j.js → ButtonGroup-XCe_4Dd6.js} +1 -1
  9. package/dist/assets/{CheckCircle-D_xN1gyv.js → CheckCircle-ZNzwITLi.js} +1 -1
  10. package/dist/assets/{ChevronRight-BSKZBb_2.js → ChevronRight-BQxGComx.js} +1 -1
  11. package/dist/assets/{Close-FzUYS6m6.js → Close-qW-xij4G.js} +1 -1
  12. package/dist/assets/{CloseOutlined-dfX0_udm.js → CloseOutlined-WD0GWqZM.js} +1 -1
  13. package/dist/assets/{Delete-7FY_-hW2.js → Delete-CRriNkym.js} +1 -1
  14. package/dist/assets/{DeleteOutline-KzktAnTa.js → DeleteOutline-BBqJ5_Hu.js} +1 -1
  15. package/dist/assets/{Done-DGweKa9V.js → Done-DCkMGid3.js} +1 -1
  16. package/dist/assets/{Download-5T3TCzDB.js → Download-DmONKHB6.js} +1 -1
  17. package/dist/assets/{Edit-DDrR6P5J.js → Edit-Dl7Da72r.js} +1 -1
  18. package/dist/assets/EditIcon-CqMuLEHT.js +1 -0
  19. package/dist/assets/{Error-COixndSy.js → Error-BXJV4yzT.js} +1 -1
  20. package/dist/assets/{ExpandMore-DTe37e10.js → ExpandMore-Br1x9msZ.js} +1 -1
  21. package/dist/assets/{FilterList-Cf8dLFs7.js → FilterList-CH2nj31H.js} +5 -5
  22. package/dist/assets/{FormControl-BTtk2Fad.js → FormControl-DE9N6Db0.js} +1 -1
  23. package/dist/assets/{FormControlLabel-D3D12HVK.js → FormControlLabel-DGbEY6m8.js} +1 -1
  24. package/dist/assets/{FormGroup-BfchPA9v.js → FormGroup-n5wwFjBA.js} +1 -1
  25. package/dist/assets/Google-BL_kfN9f.js +27 -0
  26. package/dist/assets/{Hidden-Bx2uY5CL.js → Hidden-BYIvIL0k.js} +1 -1
  27. package/dist/assets/{InfoOutlined-C7gqICvw.js → InfoOutlined-CDKG5pPz.js} +1 -1
  28. package/dist/assets/{InputAdornment-A7HvHn8B.js → InputAdornment-tlUB0OtI.js} +1 -1
  29. package/dist/assets/{InputLabel-Bc6EtwvH.js → InputLabel-D2kHO3Su.js} +1 -1
  30. package/dist/assets/{LastPage-BYYTvJ73.js → LastPage-bpkDUtUD.js} +1 -1
  31. package/dist/assets/{Launch-CEjbrPHI.js → Launch-Ddq1J5R1.js} +1 -1
  32. package/dist/assets/{LaunchOutlined-CXXofhlE.js → LaunchOutlined-ItmbAFN0.js} +1 -1
  33. package/dist/assets/{Link-B103RPwf.js → Link-NMapyzp6.js} +1 -1
  34. package/dist/assets/{ListItemText-OzALNktK.js → ListItemText-OVWUZ8Yw.js} +1 -1
  35. package/dist/assets/{LoadingButton-XTgnQgpj.js → LoadingButton-TfmYHzFH.js} +1 -1
  36. package/dist/assets/LockIcon-XG87P4do.js +1 -0
  37. package/dist/assets/{Loop-ajn0Dz_B.js → Loop-B5igBWDP.js} +1 -1
  38. package/dist/assets/MoreHoriz-c2PDP89o.js +1 -0
  39. package/dist/assets/{MoreVert-inIvVOb4.js → MoreVert-VUWyXDsQ.js} +1 -1
  40. package/dist/assets/{OpenInNew-cdburhfQ.js → OpenInNew-ChhskXmz.js} +1 -1
  41. package/dist/assets/{Pagination-aVDLdtSl.js → Pagination-aUFIvi5y.js} +1 -1
  42. package/dist/assets/{PlayArrow-Bg4MoRTr.js → PlayArrow-By-kmerY.js} +1 -1
  43. package/dist/assets/QuestionMarkCircle-B9pyXZy7.js +1 -0
  44. package/dist/assets/{RadioGroup-CWmfUngk.js → RadioGroup-DiH-c46e.js} +1 -1
  45. package/dist/assets/{Search-BYFGRH1q.js → Search-YlhHuO6O.js} +1 -1
  46. package/dist/assets/{Select-Dv7psaww.js → Select-DxpmtgW4.js} +2 -2
  47. package/dist/assets/ServerLogo-CKkyRIMN.js +1 -0
  48. package/dist/assets/{Skeleton-DtyJbT9M.js → Skeleton-D1F5dy2x.js} +4 -4
  49. package/dist/assets/{Slider-n1kGv6jU.js → Slider-ao2S-hIb.js} +1 -1
  50. package/dist/assets/{Stepper-CiCy8LMQ.js → Stepper-DGOl59kQ.js} +1 -1
  51. package/dist/assets/{TextField-0v_oVobJ.js → TextField-BYfKGYpN.js} +1 -1
  52. package/dist/assets/{Toolbar-CermspyY.js → Toolbar-B_xj2T9O.js} +1 -1
  53. package/dist/assets/{ViewList-n9WkULd7.js → ViewList-CjH94hua.js} +1 -1
  54. package/dist/assets/{access-control-DRBoSb7z.js → access-control-tbrDClnL.js} +1 -1
  55. package/dist/assets/actions-HNNA8mAr.js +1 -0
  56. package/dist/assets/{add-component-core-CjnJn3tx.js → add-component-core-HIykDunt.js} +56 -56
  57. package/dist/assets/add-resource-C-yDv8nK.js +1 -0
  58. package/dist/assets/addon-DIKMgGhZ.js +31 -0
  59. package/dist/assets/analytics-BKsUeXDw.js +52 -0
  60. package/dist/assets/api-D5rmifNl.js +1 -0
  61. package/dist/assets/ar-CqvGG4eC.js +1 -0
  62. package/dist/assets/{audit-logs-CgWtOpVL.js → audit-logs-HTNz9Ui5.js} +1 -1
  63. package/dist/assets/{button-EzWQLPRA.js → button-Bfs5dmJW.js} +1 -1
  64. package/dist/assets/{click-to-copy-CT6HFlqB.js → click-to-copy-D14O9X1o.js} +1 -1
  65. package/dist/assets/{complete-Dy4e3QP7.js → complete-Dqz9_rJD.js} +1 -1
  66. package/dist/assets/{component-C1NjVIvL.js → component-UDUqL4fG.js} +11 -3
  67. package/dist/assets/{config-3WJD6Lmn.js → config-CPhfDBZV.js} +2 -2
  68. package/dist/assets/{config-navigation-kIkN-CW4.js → config-navigation-CJ-de3j1.js} +5 -5
  69. package/dist/assets/{config-Bd98pKpd.js → config-rlS2Ozpo.js} +1 -1
  70. package/dist/assets/confirm-CnJhc68Q.js +7 -0
  71. package/dist/assets/{connect-BkHKwHTP.js → connect-31ih5dtl.js} +1 -1
  72. package/dist/assets/{connect-OnYoMOe-.js → connect-BlBcX7xs.js} +1 -1
  73. package/dist/assets/{connect-to-CdXioxNK.js → connect-to-NQzylv_u.js} +2 -2
  74. package/dist/assets/{content-layout-Ffxi3pDS.js → content-layout-CvCSD7Cn.js} +1 -1
  75. package/dist/assets/dashboard-WQeB59iZ.js +165 -0
  76. package/dist/assets/de-l0XzFKav.js +1 -0
  77. package/dist/assets/{did-address-miQOme8J.js → did-address-B8vaNsMa.js} +1 -1
  78. package/dist/assets/domain-DLjLI_5f.js +9 -0
  79. package/dist/assets/{domain-list-ByfH_4BX.js → domain-list-RbmvUGd2.js} +1 -1
  80. package/dist/assets/es-DYmEeFzA.js +1 -0
  81. package/dist/assets/{exchange-passport-BL_VVwVP.js → exchange-passport-BVVa20rU.js} +1 -1
  82. package/dist/assets/{fallback-iFxe1QEH.js → fallback-l6x8Ufow.js} +1 -1
  83. package/dist/assets/{format-error-BTo2sOsy.js → format-error-Blif5aTO.js} +2 -2
  84. package/dist/assets/fr-DwS-xj4v.js +1 -0
  85. package/dist/assets/{fuel-BN90_Z9V.js → fuel-BlKNXMVP.js} +1 -1
  86. package/dist/assets/{fullpage-BeQEfGEU.js → fullpage-uuQNoBvu.js} +1 -1
  87. package/dist/assets/hi-Dj91QHv6.js +1 -0
  88. package/dist/assets/{home-BWWr9Pub.js → home-DRLEBJrk.js} +1 -1
  89. package/dist/assets/id-CzhlCzfQ.js +1 -0
  90. package/dist/assets/{iframe-BM-ye9El.js → iframe-CVrqJU8l.js} +1 -1
  91. package/dist/assets/{index-B2VTYhTK.js → index--iA86Fqj.js} +1 -1
  92. package/dist/assets/{index-DViUZb8d.js → index-255o-u6L.js} +17 -5
  93. package/dist/assets/{index-vWNkWn6D.js → index-B8k2vim3.js} +1 -1
  94. package/dist/assets/{index-Yhw9Sqjw.js → index-BA1LIiSA.js} +1 -1
  95. package/dist/assets/{index-B-luKSks.js → index-BJ9Owdb4.js} +2 -2
  96. package/dist/assets/{index-mDicGCqx.js → index-BS9TWd2p.js} +8 -8
  97. package/dist/assets/{index-BSXNgTl3.js → index-Bdg2hH7J.js} +8 -8
  98. package/dist/assets/{index-epYODeW2.js → index-Bn5NB2JF.js} +1 -1
  99. package/dist/assets/{index-KDOy0aWS.js → index-BnWtXVAz.js} +1 -1
  100. package/dist/assets/index-Bo9QnPG1.js +1 -0
  101. package/dist/assets/{index-Bxbm4EMl.js → index-ByD4ydGX.js} +1 -1
  102. package/dist/assets/{index-CNgteYFD.js → index-CJj_4VZH.js} +1 -1
  103. package/dist/assets/{index-C6s_FyYj.js → index-CSBw7k-G.js} +30 -30
  104. package/dist/assets/{index-DsXDaWwP.js → index-CWfGuhnW.js} +6 -6
  105. package/dist/assets/index-Ci6IWDWf.js +12 -0
  106. package/dist/assets/index-Cpb38s9N.js +222 -0
  107. package/dist/assets/{index-Den5lqn5.js → index-CvAjMcvY.js} +1 -1
  108. package/dist/assets/{index-gtaSQ7gG.js → index-CxrCgTse.js} +5 -5
  109. package/dist/assets/{index-vuG-tmg9.js → index-D3CByOWX.js} +1 -1
  110. package/dist/assets/{index-ChCLhV94.js → index-DA21JYSh.js} +4 -4
  111. package/dist/assets/index-DHvniSKa.js +68 -0
  112. package/dist/assets/{index-Gre-8z9c.js → index-DNlUUcTz.js} +1 -1
  113. package/dist/assets/{index-WfBcu-P1.js → index-DT8M-stk.js} +1 -1
  114. package/dist/assets/index-DTg4Ig3M.js +1 -0
  115. package/dist/assets/{index-Bqwy4e4W.js → index-DiWAz-Pl.js} +1 -1
  116. package/dist/assets/{index-DIdke58B.js → index-Dt07hFjg.js} +1 -1
  117. package/dist/assets/{index-BMjJsyOm.js → index-ZShT0NT3.js} +1 -1
  118. package/dist/assets/{index-PyVJ1uw4.js → index-_F8kdc8Q.js} +1 -1
  119. package/dist/assets/{index-Cpj1zQ53.js → index-cHjJj_dG.js} +9 -9
  120. package/dist/assets/{index-xZ--t8ut.js → index-cVr26mKy.js} +1 -1
  121. package/dist/assets/{index-CtTJXVmG.js → index-tfBxNgKx.js} +1 -1
  122. package/dist/assets/{index-cLm2IEPr.js → index-wK8MJeLI.js} +1 -1
  123. package/dist/assets/{index.es-Bu8p_gVi.js → index.es-B5pLCk4-.js} +3 -3
  124. package/dist/assets/{index.esm-DFvabpqA.js → index.esm-MqNtIWnn.js} +1 -1
  125. package/dist/assets/{invitation-Dkf5j7Cx.js → invitation-BfR9BdX3.js} +1 -1
  126. package/dist/assets/{invite-Bv4ckLQM.js → invite-COB2td-Z.js} +1 -1
  127. package/dist/assets/{issue-passport-DjiRUYZ3.js → issue-passport-C8WI5I2r.js} +1 -1
  128. package/dist/assets/{item-bLTqsv2V.js → item-DxzYKgGj.js} +1 -1
  129. package/dist/assets/ja-Ut-jFS9r.js +1 -0
  130. package/dist/assets/{jss-plugin-props-sort.esm-BMX6GVGS.js → jss-plugin-props-sort.esm-D8X7o2pr.js} +1 -1
  131. package/dist/assets/ko-Clp4qzRT.js +1 -0
  132. package/dist/assets/{launch-result-message-vjq2wI81.js → launch-result-message-DlfUpqsM.js} +1 -1
  133. package/dist/assets/{layout-Cyqn-aQE.js → layout-B0gSHs6T.js} +1 -1
  134. package/dist/assets/list-header-Bma_K6X2.js +57 -0
  135. package/dist/assets/localization-DQx8Ct-X.js +1 -0
  136. package/dist/assets/{log-C6s81A46.js → log-CypPgBlx.js} +9 -9
  137. package/dist/assets/{login-BbFOUgLg.js → login-CN16WkWc.js} +1 -1
  138. package/dist/assets/{login-oauth-callback-BhxSgaZ6.js → login-oauth-callback-2ujdQmZH.js} +1 -1
  139. package/dist/assets/{logo-uploader-DwIbVZzU.js → logo-uploader-ClUYYxL1.js} +3 -3
  140. package/dist/assets/{lost-passport-CPNJQz4_.js → lost-passport-CPnepwqM.js} +3 -3
  141. package/dist/assets/{lottie-CDJt9sxS.js → lottie-7e9js8BB.js} +1 -1
  142. package/dist/assets/{notifications-odlwUvdh.js → notifications-DNM-dija.js} +1 -1
  143. package/dist/assets/{open-window-BSOd9nWZ.js → open-window-BPoK7T-M.js} +1 -1
  144. package/dist/assets/overview-D47edAva.js +12 -0
  145. package/dist/assets/{page-header-Bl6FpBo-.js → page-header-Dlu4P1xk.js} +1 -1
  146. package/dist/assets/{permission-DrtsPi3A.js → permission-ClswWE64.js} +1 -1
  147. package/dist/assets/{preferences-DmeQhObF.js → preferences-COQfVvgo.js} +1 -1
  148. package/dist/assets/pt-BXaJbqdY.js +1 -0
  149. package/dist/assets/publish-resource-D7CEW6PO.js +1 -0
  150. package/dist/assets/react-C8LgBs_k.js +57 -0
  151. package/dist/assets/{redux-D0zq8PYj.js → redux-_YFRGxHq.js} +1 -1
  152. package/dist/assets/resource-dialog-CROCpfsh.js +57 -0
  153. package/dist/assets/ru-p_K_7IoQ.js +1 -0
  154. package/dist/assets/sdk-DR0yLm5u.js +1 -0
  155. package/dist/assets/selector-YK8Xf2Rq.js +48 -0
  156. package/dist/assets/session-CBJgIJsY.js +1 -0
  157. package/dist/assets/setup-Cq2NZKc3.js +19 -0
  158. package/dist/assets/{shorten-label-wHG2oGCl.js → shorten-label-CeQzn9-u.js} +1 -1
  159. package/dist/assets/{slicedToArray-Dv4JDbRI.js → slicedToArray-Ci6zdtll.js} +1 -1
  160. package/dist/assets/{spaces-303hXP-m.js → spaces-Cz9_Xdg_.js} +1 -1
  161. package/dist/assets/{start-Cy4f4eHt.js → start-DfU9ilW5.js} +1 -1
  162. package/dist/assets/{step-actions-SssWLlsZ.js → step-actions-BvzypTeZ.js} +1 -1
  163. package/dist/assets/{studio-S7QOZ6iJ.js → studio-Dogn9FY7.js} +1 -1
  164. package/dist/assets/{switch-control-DQCTtEmu.js → switch-control-D9hjlMId.js} +1 -1
  165. package/dist/assets/th-BJT9w_Lk.js +1 -0
  166. package/dist/assets/{toUpper-CE-GJpRF.js → toUpper-DiCihDmj.js} +1 -1
  167. package/dist/assets/{transfer-DcDmAqsy.js → transfer-BTtIrW0g.js} +1 -1
  168. package/dist/assets/{uniqBy-l3dsFoVZ.js → uniqBy-Blkjf7ps.js} +1 -1
  169. package/dist/assets/{unsubscribe-DAT0pcu-.js → unsubscribe-Bl9PzG7o.js} +1 -1
  170. package/dist/assets/{url-join-BCF1MSj_.js → url-join-Cc5MbaZB.js} +1 -1
  171. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-B5DOV2jF.js → use-blocklet-info-for-connect-did-spaces-BNPOv7wG.js} +1 -1
  172. package/dist/assets/{use-mobile-CG2H0Itc.js → use-mobile-CPAuyQwU.js} +1 -1
  173. package/dist/assets/{useAsync-D_GBVXyM.js → useAsync-CbQ86h-f.js} +1 -1
  174. package/dist/assets/{useFormControl-cywmDuiA.js → useFormControl-CDmRrmKw.js} +1 -1
  175. package/dist/assets/{useLocalStorage-DrkFylVo.js → useLocalStorage-DvZZwTDC.js} +1 -1
  176. package/dist/assets/{useSetState-DIAnRvUO.js → useSetState-BpZL0m-H.js} +1 -1
  177. package/dist/assets/{useSlot-rUibNc1t.js → useSlot-DxWJyNOJ.js} +1 -1
  178. package/dist/assets/{useSlotProps-D0FDJtqc.js → useSlotProps-C9cl4-TZ.js} +1 -1
  179. package/dist/assets/useThemeProps-_7k5Wu1c.js +1 -0
  180. package/dist/assets/user-center-CKSVKtEg.js +1 -0
  181. package/dist/assets/user-sessions-QPFNNTrZ.js +1 -0
  182. package/dist/assets/{util-EtIRSuFW.js → util-C2KlfrNA.js} +1 -1
  183. package/dist/assets/vi-CycHlNkN.js +1 -0
  184. package/dist/assets/wrap-locale-aa3oShvm.js +1 -0
  185. package/dist/assets/{zh-C1zF4vlg.js → zh-Dv1l1HNj.js} +1 -1
  186. package/dist/assets/zh-tw-44W5osxR.js +1 -0
  187. package/dist/index.html +1 -1
  188. package/dist/service-worker.js +1 -1
  189. package/package.json +36 -36
  190. package/dist/assets/EditIcon-DuMLUXPr.js +0 -1
  191. package/dist/assets/LockIcon-BbAqn8tR.js +0 -1
  192. package/dist/assets/QuestionMarkCircle-BxJnG-bt.js +0 -1
  193. package/dist/assets/ServerLogo-Dyw0Fs-p.js +0 -1
  194. package/dist/assets/actions-qdAEgYI9.js +0 -1
  195. package/dist/assets/add-resource-DOZyX8VM.js +0 -1
  196. package/dist/assets/addon-B4kHptrT.js +0 -31
  197. package/dist/assets/analytics-DjYXM6bV.js +0 -52
  198. package/dist/assets/api-DoDJZYqZ.js +0 -1
  199. package/dist/assets/ar-Bk-8E67P.js +0 -1
  200. package/dist/assets/confirm-Cwv0NkNp.js +0 -7
  201. package/dist/assets/dashboard-CuP4aWas.js +0 -165
  202. package/dist/assets/de-Cu2RTl6l.js +0 -1
  203. package/dist/assets/domain-BLk6xbDd.js +0 -9
  204. package/dist/assets/es-DDPFvDl4.js +0 -1
  205. package/dist/assets/fr-CnF6MLuI.js +0 -1
  206. package/dist/assets/hi-BXN3D_GN.js +0 -1
  207. package/dist/assets/id-BEXmSSv4.js +0 -1
  208. package/dist/assets/index-BsrufvYy.js +0 -222
  209. package/dist/assets/index-Bt3JYQGV.js +0 -706
  210. package/dist/assets/index-CH6xw3Jk.js +0 -1
  211. package/dist/assets/index-CQK4XXi1.js +0 -54
  212. package/dist/assets/index-CYHohlep.js +0 -1
  213. package/dist/assets/index-lBw0H73K.js +0 -12
  214. package/dist/assets/ja-nMk3xlFJ.js +0 -1
  215. package/dist/assets/ko-CsOxrRrq.js +0 -1
  216. package/dist/assets/list-header-EA-BLfKM.js +0 -57
  217. package/dist/assets/localization-CyfMl-JK.js +0 -1
  218. package/dist/assets/overview-BLsrTI_U.js +0 -12
  219. package/dist/assets/pt-BViI9ESj.js +0 -1
  220. package/dist/assets/publish-resource-CBxkMxOl.js +0 -1
  221. package/dist/assets/react-DL5EGmZR.js +0 -56
  222. package/dist/assets/resource-dialog-1BYw_f8A.js +0 -736
  223. package/dist/assets/ru-C_GgRAP9.js +0 -1
  224. package/dist/assets/sdk-mxqK4XKk.js +0 -1
  225. package/dist/assets/selector-Bqv1cSRc.js +0 -48
  226. package/dist/assets/session-BX0sD_Dd.js +0 -1
  227. package/dist/assets/setup-Btcaa_sk.js +0 -19
  228. package/dist/assets/th-BmzrcHqy.js +0 -1
  229. package/dist/assets/useThemeProps-TricuE4R.js +0 -1
  230. package/dist/assets/user-center-Cbrq0Bv3.js +0 -1
  231. package/dist/assets/user-sessions-DDNnTf-W.js +0 -1
  232. package/dist/assets/vi-NbF9HZkr.js +0 -1
  233. package/dist/assets/wrap-locale-BjE8BIyl.js +0 -1
  234. package/dist/assets/zh-tw-BXz91JiB.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-BbFOUgLg.js","assets/use-passport-id-B-b-_oYF.js","assets/LaunchOutlined-CXXofhlE.js","assets/login-oauth-callback-BhxSgaZ6.js","assets/fallback-iFxe1QEH.js","assets/Alert-D6BaRZ7F.js","assets/useSlot-rUibNc1t.js","assets/connect-BkHKwHTP.js","assets/index-B2VTYhTK.js","assets/fullpage-BeQEfGEU.js","assets/Link-B103RPwf.js","assets/exchange-passport-BL_VVwVP.js","assets/wrap-locale-BjE8BIyl.js","assets/issue-passport-DjiRUYZ3.js","assets/invitation-Dkf5j7Cx.js","assets/index-CYHohlep.js","assets/session-BX0sD_Dd.js","assets/sdk-mxqK4XKk.js","assets/CheckCircle-D_xN1gyv.js","assets/lost-passport-CPNJQz4_.js","assets/ViewList-n9WkULd7.js","assets/Done-DGweKa9V.js","assets/did-address-miQOme8J.js","assets/Avatar-CF7xxGtX.js","assets/Stepper-CiCy8LMQ.js","assets/start-Cy4f4eHt.js","assets/PlayArrow-Bg4MoRTr.js","assets/Error-COixndSy.js","assets/ServerLogo-Dyw0Fs-p.js","assets/addon-B4kHptrT.js","assets/selector-Bqv1cSRc.js","assets/QuestionMarkCircle-BxJnG-bt.js","assets/setup-Btcaa_sk.js","assets/index-DViUZb8d.js","assets/spaces-303hXP-m.js","assets/api-DoDJZYqZ.js","assets/url-join-BCF1MSj_.js","assets/Skeleton-DtyJbT9M.js","assets/Hidden-Bx2uY5CL.js","assets/invite-Bv4ckLQM.js","assets/transfer-DcDmAqsy.js","assets/dashboard-CuP4aWas.js","assets/index-Gre-8z9c.js","assets/useLocalStorage-DrkFylVo.js","assets/MoreVert-inIvVOb4.js","assets/confirm-Cwv0NkNp.js","assets/format-error-BTo2sOsy.js","assets/Delete-7FY_-hW2.js","assets/ListItemText-OzALNktK.js","assets/ButtonGroup-DxKP8J2j.js","assets/RadioGroup-CWmfUngk.js","assets/FormControlLabel-D3D12HVK.js","assets/useFormControl-cywmDuiA.js","assets/FormGroup-BfchPA9v.js","assets/permission-DrtsPi3A.js","assets/useAsync-D_GBVXyM.js","assets/index-Bxbm4EMl.js","assets/useSetState-DIAnRvUO.js","assets/index-mDicGCqx.js","assets/Toolbar-CermspyY.js","assets/index-KDOy0aWS.js","assets/user-center-Cbrq0Bv3.js","assets/index-DsXDaWwP.js","assets/ExpandMore-DTe37e10.js","assets/resource-dialog-1BYw_f8A.js","assets/OpenInNew-cdburhfQ.js","assets/CloseOutlined-dfX0_udm.js","assets/use-mobile-CG2H0Itc.js","assets/index-lBw0H73K.js","assets/uniqBy-l3dsFoVZ.js","assets/index-vuG-tmg9.js","assets/Select-Dv7psaww.js","assets/FormControl-BTtk2Fad.js","assets/TextField-0v_oVobJ.js","assets/InputLabel-Bc6EtwvH.js","assets/InputAdornment-A7HvHn8B.js","assets/user-sessions-DDNnTf-W.js","assets/index-WfBcu-P1.js","assets/FilterList-Cf8dLFs7.js","assets/useThemeProps-TricuE4R.js","assets/toPropertyKey-PLuKRk1e.js","assets/LastPage-BYYTvJ73.js","assets/index-Cpj1zQ53.js","assets/redux-D0zq8PYj.js","assets/Search-BYFGRH1q.js","assets/home-BWWr9Pub.js","assets/studio-S7QOZ6iJ.js","assets/preferences-DmeQhObF.js","assets/iframe-BM-ye9El.js","assets/localization-CyfMl-JK.js","assets/add-resource-DOZyX8VM.js","assets/add-component-core-CjnJn3tx.js","assets/lottie-CDJt9sxS.js","assets/launch-result-message-vjq2wI81.js","assets/Close-FzUYS6m6.js","assets/page-header-Bl6FpBo-.js","assets/logo-uploader-DwIbVZzU.js","assets/index-PyVJ1uw4.js","assets/index-CH6xw3Jk.js","assets/EditIcon-DuMLUXPr.js","assets/index-Bt3JYQGV.js","assets/index-xZ--t8ut.js","assets/index-D4PP6P2d.css","assets/index-Yhw9Sqjw.js","assets/index-BMjJsyOm.js","assets/item-bLTqsv2V.js","assets/Add-CvWpFwb9.js","assets/Launch-CEjbrPHI.js","assets/DeleteOutline-KzktAnTa.js","assets/click-to-copy-CT6HFlqB.js","assets/shorten-label-wHG2oGCl.js","assets/jss-plugin-props-sort.esm-BMX6GVGS.js","assets/util-EtIRSuFW.js","assets/connect-to-CdXioxNK.js","assets/use-blocklet-info-for-connect-did-spaces-B5DOV2jF.js","assets/index-cLm2IEPr.js","assets/content-layout-Ffxi3pDS.js","assets/ArrowDropDown-D_JtvQgy.js","assets/preact.module-DJUF--8d.js","assets/add-component-core-D_j8BgsJ.css","assets/publish-resource-CBxkMxOl.js","assets/index-BsrufvYy.js","assets/AddBox-B5yAYYc5.js","assets/ChevronRight-BSKZBb_2.js","assets/Download-5T3TCzDB.js","assets/index-HqFqdQ4r.js","assets/useSlotProps-D0FDJtqc.js","assets/index-vWNkWn6D.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-CN16WkWc.js","assets/use-passport-id-B-b-_oYF.js","assets/LaunchOutlined-ItmbAFN0.js","assets/login-oauth-callback-2ujdQmZH.js","assets/fallback-l6x8Ufow.js","assets/Alert-bzh-1cuw.js","assets/useSlot-DxWJyNOJ.js","assets/connect-31ih5dtl.js","assets/index--iA86Fqj.js","assets/fullpage-uuQNoBvu.js","assets/Link-NMapyzp6.js","assets/exchange-passport-BVVa20rU.js","assets/wrap-locale-aa3oShvm.js","assets/issue-passport-C8WI5I2r.js","assets/invitation-BfR9BdX3.js","assets/index-Bo9QnPG1.js","assets/session-CBJgIJsY.js","assets/sdk-DR0yLm5u.js","assets/CheckCircle-ZNzwITLi.js","assets/lost-passport-CPnepwqM.js","assets/ViewList-CjH94hua.js","assets/Done-DCkMGid3.js","assets/did-address-B8vaNsMa.js","assets/Avatar-CDgX4gdS.js","assets/Stepper-DGOl59kQ.js","assets/start-DfU9ilW5.js","assets/PlayArrow-By-kmerY.js","assets/Error-BXJV4yzT.js","assets/ServerLogo-CKkyRIMN.js","assets/addon-DIKMgGhZ.js","assets/selector-YK8Xf2Rq.js","assets/QuestionMarkCircle-B9pyXZy7.js","assets/setup-Cq2NZKc3.js","assets/index-255o-u6L.js","assets/spaces-Cz9_Xdg_.js","assets/api-D5rmifNl.js","assets/url-join-Cc5MbaZB.js","assets/Skeleton-D1F5dy2x.js","assets/Hidden-BYIvIL0k.js","assets/invite-COB2td-Z.js","assets/transfer-BTtIrW0g.js","assets/dashboard-WQeB59iZ.js","assets/index-DNlUUcTz.js","assets/useLocalStorage-DvZZwTDC.js","assets/MoreVert-VUWyXDsQ.js","assets/confirm-CnJhc68Q.js","assets/format-error-Blif5aTO.js","assets/Delete-CRriNkym.js","assets/ListItemText-OVWUZ8Yw.js","assets/ButtonGroup-XCe_4Dd6.js","assets/RadioGroup-DiH-c46e.js","assets/FormControlLabel-DGbEY6m8.js","assets/useFormControl-CDmRrmKw.js","assets/FormGroup-n5wwFjBA.js","assets/permission-ClswWE64.js","assets/useAsync-CbQ86h-f.js","assets/index-ByD4ydGX.js","assets/useSetState-BpZL0m-H.js","assets/index-BS9TWd2p.js","assets/Toolbar-B_xj2T9O.js","assets/index-BnWtXVAz.js","assets/user-center-CKSVKtEg.js","assets/index-CWfGuhnW.js","assets/ExpandMore-Br1x9msZ.js","assets/resource-dialog-CROCpfsh.js","assets/OpenInNew-ChhskXmz.js","assets/CloseOutlined-WD0GWqZM.js","assets/use-mobile-CPAuyQwU.js","assets/index-Ci6IWDWf.js","assets/uniqBy-Blkjf7ps.js","assets/index-D3CByOWX.js","assets/Select-DxpmtgW4.js","assets/FormControl-DE9N6Db0.js","assets/TextField-BYfKGYpN.js","assets/InputLabel-D2kHO3Su.js","assets/InputAdornment-tlUB0OtI.js","assets/user-sessions-QPFNNTrZ.js","assets/index-DT8M-stk.js","assets/FilterList-CH2nj31H.js","assets/useThemeProps-_7k5Wu1c.js","assets/toPropertyKey-PLuKRk1e.js","assets/LastPage-bpkDUtUD.js","assets/index-cHjJj_dG.js","assets/redux-_YFRGxHq.js","assets/Search-YlhHuO6O.js","assets/home-DRLEBJrk.js","assets/studio-Dogn9FY7.js","assets/preferences-COQfVvgo.js","assets/iframe-CVrqJU8l.js","assets/localization-DQx8Ct-X.js","assets/add-resource-C-yDv8nK.js","assets/add-component-core-HIykDunt.js","assets/lottie-7e9js8BB.js","assets/launch-result-message-DlfUpqsM.js","assets/Close-qW-xij4G.js","assets/page-header-Dlu4P1xk.js","assets/logo-uploader-ClUYYxL1.js","assets/index-_F8kdc8Q.js","assets/index-DTg4Ig3M.js","assets/EditIcon-CqMuLEHT.js","assets/Google-BL_kfN9f.js","assets/index-cVr26mKy.js","assets/index-D4PP6P2d.css","assets/index-BA1LIiSA.js","assets/index-ZShT0NT3.js","assets/item-DxzYKgGj.js","assets/Add-CVYAN2n2.js","assets/Launch-Ddq1J5R1.js","assets/DeleteOutline-BBqJ5_Hu.js","assets/click-to-copy-D14O9X1o.js","assets/shorten-label-CeQzn9-u.js","assets/jss-plugin-props-sort.esm-D8X7o2pr.js","assets/util-C2KlfrNA.js","assets/connect-to-NQzylv_u.js","assets/use-blocklet-info-for-connect-did-spaces-BNPOv7wG.js","assets/index-wK8MJeLI.js","assets/content-layout-CvCSD7Cn.js","assets/ArrowDropDown-B3gw7vQE.js","assets/preact.module-DJUF--8d.js","assets/add-component-core-D_j8BgsJ.css","assets/publish-resource-D7CEW6PO.js","assets/index-Cpb38s9N.js","assets/AddBox-DnwcDko1.js","assets/ChevronRight-BQxGComx.js","assets/Download-DmONKHB6.js","assets/index-HqFqdQ4r.js","assets/useSlotProps-C9cl4-TZ.js","assets/index-B8k2vim3.js"])))=>i.map(i=>d[i]);
2
2
  var W0=a=>{throw TypeError(a)};var kp=(a,j,_e)=>j.has(a)||W0("Cannot "+_e);var Gr=(a,j,_e)=>(kp(a,j,"read from private field"),_e?_e.call(a):j.get(a)),Ds=(a,j,_e)=>j.has(a)?W0("Cannot add the same private member more than once"):j instanceof WeakSet?j.add(a):j.set(a,_e),Ho=(a,j,_e,et)=>(kp(a,j,"write to private field"),et?et.call(a,_e):j.set(a,_e),_e),Ao=(a,j,_e)=>(kp(a,j,"access private method"),_e);var Pp=(a,j,_e,et)=>({set _(tt){Ho(a,j,tt,_e)},get _(){return Gr(a,j,et)}});function _mergeNamespaces(a,j){for(var _e=0;_e<j.length;_e++){const et=j[_e];if(typeof et!="string"&&!Array.isArray(et)){for(const tt in et)if(tt!=="default"&&!(tt in a)){const nt=Object.getOwnPropertyDescriptor(et,tt);nt&&Object.defineProperty(a,tt,nt.get?nt:{enumerable:!0,get:()=>et[tt]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const j=document.createElement("link").relList;if(j&&j.supports&&j.supports("modulepreload"))return;for(const tt of document.querySelectorAll('link[rel="modulepreload"]'))et(tt);new MutationObserver(tt=>{for(const nt of tt)if(nt.type==="childList")for(const rt of nt.addedNodes)rt.tagName==="LINK"&&rt.rel==="modulepreload"&&et(rt)}).observe(document,{childList:!0,subtree:!0});function _e(tt){const nt={};return tt.integrity&&(nt.integrity=tt.integrity),tt.referrerPolicy&&(nt.referrerPolicy=tt.referrerPolicy),tt.crossOrigin==="use-credentials"?nt.credentials="include":tt.crossOrigin==="anonymous"?nt.credentials="omit":nt.credentials="same-origin",nt}function et(tt){if(tt.ep)return;tt.ep=!0;const nt=_e(tt);fetch(tt.href,nt)}})();const scriptRel="modulepreload",assetsURL=function(a){return"/.well-known/service/static/"+a},seen={},__vitePreload=function(j,_e,et){let tt=Promise.resolve();if(_e&&_e.length>0){document.getElementsByTagName("link");const nt=document.querySelector("meta[property=csp-nonce]"),rt=(nt==null?void 0:nt.nonce)||(nt==null?void 0:nt.getAttribute("nonce"));tt=Promise.all(_e.map(it=>{if(it=assetsURL(it),it in seen)return;seen[it]=!0;const ot=it.endsWith(".css"),ct=ot?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${it}"]${ct}`))return;const ut=document.createElement("link");if(ut.rel=ot?"stylesheet":scriptRel,ot||(ut.as="script",ut.crossOrigin=""),ut.href=it,rt&&ut.setAttribute("nonce",rt),document.head.appendChild(ut),ot)return new Promise((dt,pt)=>{ut.addEventListener("load",dt),ut.addEventListener("error",()=>pt(new Error(`Unable to preload CSS for ${it}`)))})}))}return tt.then(()=>j()).catch(nt=>{const rt=new Event("vite:preloadError",{cancelable:!0});if(rt.payload=nt,window.dispatchEvent(rt),!rt.defaultPrevented)throw nt})};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function getAugmentedNamespace(a){if(a.__esModule)return a;var j=a.default;if(typeof j=="function"){var _e=function et(){return this instanceof et?Reflect.construct(j,arguments,this.constructor):j.apply(this,arguments)};_e.prototype=j.prototype}else _e={};return Object.defineProperty(_e,"__esModule",{value:!0}),Object.keys(a).forEach(function(et){var tt=Object.getOwnPropertyDescriptor(a,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return a[et]}})}),_e}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/**
3
3
  * @license React
4
4
  * react.production.min.js
@@ -257,8 +257,8 @@ object-assign
257
257
  10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},WarningIcon=function(j){return React$2.createElement(SvgIcon,Object.assign({},j),React$2.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},ErrorIcon=function(j){return React$2.createElement(SvgIcon,Object.assign({},j),React$2.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
258
258
  6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
259
259
  13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},InfoIcon=function(j){return React$2.createElement(SvgIcon,Object.assign({},j),React$2.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
260
- 0 22,12A10,10 0 0,0 12,2Z`}))},iconStyles={fontSize:20,marginInlineEnd:8},defaultIconVariants={default:void 0,success:React$2.createElement(CheckIcon,{style:iconStyles}),warning:React$2.createElement(WarningIcon,{style:iconStyles}),error:React$2.createElement(ErrorIcon,{style:iconStyles}),info:React$2.createElement(InfoIcon,{style:iconStyles})};function createChainedFunction(a,j){return a.reduce(function(_e,et){return et==null?_e:function(){for(var nt=arguments.length,rt=new Array(nt),it=0;it<nt;it++)rt[it]=arguments[it];var ot=[].concat(rt);j&&ot.indexOf(j)===-1&&ot.push(j),_e.apply(this,ot),et.apply(this,ot)}},function(){})}var useEnhancedEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useEventCallback(a){var j=reactExports.useRef(a);return useEnhancedEffect(function(){j.current=a}),reactExports.useCallback(function(){return j.current.apply(void 0,arguments)},[])}var Snackbar=reactExports.forwardRef(function(a,j){var _e=a.children,et=a.autoHideDuration,tt=a.ClickAwayListenerProps,nt=a.disableWindowBlurListener,rt=nt===void 0?!1:nt,it=a.onClose,ot=a.onMouseEnter,ct=a.onMouseLeave,ut=a.open,dt=a.resumeHideDuration,pt=_objectWithoutPropertiesLoose(a,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),mt=reactExports.useRef(),vt=useEventCallback(function(){it&&it.apply(void 0,arguments)}),Et=useEventCallback(function(zt){!it||zt==null||(clearTimeout(mt.current),mt.current=setTimeout(function(){vt(null,REASONS.TIMEOUT)},zt))});reactExports.useEffect(function(){return ut&&Et(et),function(){clearTimeout(mt.current)}},[ut,et,Et]);var Rt=function(){clearTimeout(mt.current)},xt=reactExports.useCallback(function(){et!=null&&Et(dt??et*.5)},[et,dt,Et]),Pt=function(Nt){ot&&ot(Nt),Rt()},Dt=function(Nt){ct&&ct(Nt),xt()},Ft=function(Nt){it&&it(Nt,REASONS.CLICKAWAY)};return reactExports.useEffect(function(){if(!rt&&ut)return window.addEventListener("focus",xt),window.addEventListener("blur",Rt),function(){window.removeEventListener("focus",xt),window.removeEventListener("blur",Rt)}},[rt,xt,ut]),reactExports.createElement(ClickAwayListener,_extends({onClickAway:Ft},tt),reactExports.createElement("div",_extends({onMouseEnter:Pt,onMouseLeave:Dt,ref:j},pt),_e))}),componentName$1="SnackbarItem",classes$1$1={contentRoot:componentName$1+"-contentRoot",lessPadding:componentName$1+"-lessPadding",variantSuccess:componentName$1+"-variantSuccess",variantError:componentName$1+"-variantError",variantInfo:componentName$1+"-variantInfo",variantWarning:componentName$1+"-variantWarning",message:componentName$1+"-message",action:componentName$1+"-action",wrappedRoot:componentName$1+"-wrappedRoot"},StyledSnackbar=styled$1(Snackbar)(function(a){var j,_e=a.theme,et=_e.palette.mode||_e.palette.type,tt=emphasize$1(_e.palette.background.default,et==="light"?.8:.98);return j={},j["&."+classes$1$1.wrappedRoot]={position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0},j["."+classes$1$1.contentRoot]=_extends({},_e.typography.body2,{backgroundColor:tt,color:_e.palette.getContrastText(tt),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),j["."+classes$1$1.lessPadding]={paddingLeft:8*2.5},j["."+classes$1$1.variantSuccess]={backgroundColor:"#43a047",color:"#fff"},j["."+classes$1$1.variantError]={backgroundColor:"#d32f2f",color:"#fff"},j["."+classes$1$1.variantInfo]={backgroundColor:"#2196f3",color:"#fff"},j["."+classes$1$1.variantWarning]={backgroundColor:"#ff9800",color:"#fff"},j["."+classes$1$1.message]={display:"flex",alignItems:"center",padding:"8px 0"},j["."+classes$1$1.action]={display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},j}),SnackbarItem=function(j){var _e=j.classes,et=_objectWithoutPropertiesLoose(j,["classes"]),tt=reactExports.useRef(),nt=reactExports.useState(!0),rt=nt[0],it=nt[1];reactExports.useEffect(function(){return function(){tt.current&&clearTimeout(tt.current)}},[]);var ot=createChainedFunction([et.snack.onClose,et.onClose],et.snack.key),ct=function(){et.snack.requestClose&&ot(null,REASONS.INSTRCUTED)},ut=function(){tt.current=setTimeout(function(){it(!rt)},125)},dt=et.style,pt=et.ariaAttributes,mt=et.className,vt=et.hideIconVariant,Et=et.iconVariant,Rt=et.snack,xt=et.action,Pt=et.content,Dt=et.TransitionComponent,Ft=et.TransitionProps,zt=et.transitionDuration,Nt=_objectWithoutPropertiesLoose(et,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),Vt=Rt.key,nn=Rt.open,fn=Rt.className,hn=Rt.variant,Qt=Rt.content,Mt=Rt.action,wt=Rt.ariaAttributes,ft=Rt.anchorOrigin,ht=Rt.message,$t=Rt.TransitionComponent,Tt=Rt.TransitionProps,At=Rt.transitionDuration,kt=_objectWithoutPropertiesLoose(Rt,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),Ct=_extends({},defaultIconVariants,{},Et)[hn],It=_extends({"aria-describedby":"notistack-snackbar"},objectMerge(wt,pt)),bt=$t||Dt||DEFAULTS.TransitionComponent,Lt=objectMerge(At,zt,DEFAULTS.transitionDuration),sn=_extends({direction:getTransitionDirection(ft)},objectMerge(Tt,Ft)),Ut=Mt||xt;typeof Ut=="function"&&(Ut=Ut(Vt));var Zt=Qt||Pt;typeof Zt=="function"&&(Zt=Zt(Vt,Rt.message));var Gt=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce(function(Yt,cn){var En;return _extends({},Yt,(En={},En[cn]=createChainedFunction([et.snack[cn],et[cn]],et.snack.key),En))},{});return React$2.createElement(Collapse,{unmountOnExit:!0,timeout:175,in:rt,onExited:Gt.onExited},React$2.createElement(StyledSnackbar,Object.assign({},Nt,kt,{open:nn,className:clsx(_e.root,classes$1$1.wrappedRoot,_e[transformer.toAnchorOrigin(ft)]),onClose:ot}),React$2.createElement(bt,Object.assign({appear:!0,in:nn,timeout:Lt},sn,{onExit:Gt.onExit,onExiting:Gt.onExiting,onExited:ut,onEnter:Gt.onEnter,onEntering:Gt.onEntering,onEntered:createChainedFunction([Gt.onEntered,ct])}),Zt||React$2.createElement(SnackbarContent,Object.assign({},It,{role:"alert",style:dt,className:clsx(classes$1$1.contentRoot,classes$1$1[transformer.toVariant(hn)],_e[transformer.toVariant(hn)],mt,fn,!vt&&Ct&&classes$1$1.lessPadding)}),React$2.createElement("div",{id:It["aria-describedby"],className:classes$1$1.message},vt?null:Ct,ht),Ut&&React$2.createElement("div",{className:classes$1$1.action},Ut)))))},collapse={container:"& > .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},xsWidthMargin=16,componentName$2="SnackbarContainer",classes$2={root:componentName$2+"-root",rootDense:componentName$2+"-rootDense",top:componentName$2+"-top",bottom:componentName$2+"-bottom",left:componentName$2+"-left",right:componentName$2+"-right",center:componentName$2+"-center"},Root$1$1=styled$1("div")(function(a){var j,_e,et,tt,nt,rt,it=a.theme;return rt={},rt["&."+classes$2.root]=(j={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:it.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},j[collapse.container]={pointerEvents:"all"},j[collapse.wrapper]={padding:SNACKBAR_INDENTS.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},j.maxWidth="calc(100% - "+SNACKBAR_INDENTS.view.default*2+"px)",j[it.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+xsWidthMargin*2+"px)"},j),rt["&."+classes$2.rootDense]=(_e={},_e[collapse.wrapper]={padding:SNACKBAR_INDENTS.snackbar.dense+"px 0px"},_e),rt["&."+classes$2.top]={top:SNACKBAR_INDENTS.view.default-SNACKBAR_INDENTS.snackbar.default,flexDirection:"column"},rt["&."+classes$2.bottom]={bottom:SNACKBAR_INDENTS.view.default-SNACKBAR_INDENTS.snackbar.default,flexDirection:"column-reverse"},rt["&."+classes$2.left]=(et={left:SNACKBAR_INDENTS.view.default},et[it.breakpoints.up("sm")]={alignItems:"flex-start"},et[it.breakpoints.down("sm")]={left:xsWidthMargin+"px"},et),rt["&."+classes$2.right]=(tt={right:SNACKBAR_INDENTS.view.default},tt[it.breakpoints.up("sm")]={alignItems:"flex-end"},tt[it.breakpoints.down("sm")]={right:xsWidthMargin+"px"},tt),rt["&."+classes$2.center]=(nt={left:"50%",transform:"translateX(-50%)"},nt[it.breakpoints.up("sm")]={alignItems:"center"},nt),rt}),SnackbarContainer=function(j){var _e=j.className,et=j.anchorOrigin,tt=j.dense,nt=_objectWithoutPropertiesLoose(j,["className","anchorOrigin","dense"]),rt=clsx(classes$2[et.vertical],classes$2[et.horizontal],classes$2.root,_e,tt&&classes$2.rootDense);return React$2.createElement(Root$1$1,Object.assign({className:rt},nt))},SnackbarContainer$1=React$2.memo(SnackbarContainer),SnackbarProvider=function(a){_inheritsLoose$1(j,a);function j(et){var tt;return tt=a.call(this,et)||this,tt.enqueueSnackbar=function(nt,rt){rt===void 0&&(rt={});var it=rt,ot=it.key,ct=it.preventDuplicate,ut=_objectWithoutPropertiesLoose(it,["key","preventDuplicate"]),dt=isDefined(ot),pt=dt?ot:new Date().getTime()+Math.random(),mt=merge$3(ut,tt.props,DEFAULTS),vt=_extends({key:pt},ut,{message:nt,open:!0,entered:!1,requestClose:!1,variant:mt("variant"),anchorOrigin:mt("anchorOrigin"),autoHideDuration:mt("autoHideDuration")});return ut.persist&&(vt.autoHideDuration=void 0),tt.setState(function(Et){if(ct===void 0&&tt.props.preventDuplicate||ct){var Rt=function(Ft){return dt?Ft.key===ot:Ft.message===nt},xt=Et.queue.findIndex(Rt)>-1,Pt=Et.snacks.findIndex(Rt)>-1;if(xt||Pt)return Et}return tt.handleDisplaySnack(_extends({},Et,{queue:[].concat(Et.queue,[vt])}))}),pt},tt.handleDisplaySnack=function(nt){var rt=nt.snacks;return rt.length>=tt.maxSnack?tt.handleDismissOldest(nt):tt.processQueue(nt)},tt.processQueue=function(nt){var rt=nt.queue,it=nt.snacks;return rt.length>0?_extends({},nt,{snacks:[].concat(it,[rt[0]]),queue:rt.slice(1,rt.length)}):nt},tt.handleDismissOldest=function(nt){if(nt.snacks.some(function(ut){return!ut.open||ut.requestClose}))return nt;var rt=!1,it=!1,ot=nt.snacks.reduce(function(ut,dt){return ut+(dt.open&&dt.persist?1:0)},0);ot===tt.maxSnack&&(it=!0);var ct=nt.snacks.map(function(ut){return!rt&&(!ut.persist||it)?(rt=!0,ut.entered?(ut.onClose&&ut.onClose(null,REASONS.MAXSNACK,ut.key),tt.props.onClose&&tt.props.onClose(null,REASONS.MAXSNACK,ut.key),_extends({},ut,{open:!1})):_extends({},ut,{requestClose:!0})):_extends({},ut)});return _extends({},nt,{snacks:ct})},tt.handleEnteredSnack=function(nt,rt,it){if(!isDefined(it))throw new Error("handleEnteredSnack Cannot be called with undefined key");tt.setState(function(ot){var ct=ot.snacks;return{snacks:ct.map(function(ut){return ut.key===it?_extends({},ut,{entered:!0}):_extends({},ut)})}})},tt.handleCloseSnack=function(nt,rt,it){if(tt.props.onClose&&tt.props.onClose(nt,rt,it),rt!==REASONS.CLICKAWAY){var ot=it===void 0;tt.setState(function(ct){var ut=ct.snacks,dt=ct.queue;return{snacks:ut.map(function(pt){return!ot&&pt.key!==it?_extends({},pt):pt.entered?_extends({},pt,{open:!1}):_extends({},pt,{requestClose:!0})}),queue:dt.filter(function(pt){return pt.key!==it})}})}},tt.closeSnackbar=function(nt){var rt=tt.state.snacks.find(function(it){return it.key===nt});isDefined(nt)&&rt&&rt.onClose&&rt.onClose(null,REASONS.INSTRUCTED,nt),tt.handleCloseSnack(null,REASONS.INSTRUCTED,nt)},tt.handleExitedSnack=function(nt,rt,it){var ot=rt||it;if(!isDefined(ot))throw new Error("handleExitedSnack Cannot be called with undefined key");tt.setState(function(ct){var ut=tt.processQueue(_extends({},ct,{snacks:ct.snacks.filter(function(dt){return dt.key!==ot})}));return ut.queue.length===0?ut:tt.handleDismissOldest(ut)})},tt.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:tt.enqueueSnackbar.bind(_assertThisInitialized(tt)),closeSnackbar:tt.closeSnackbar.bind(_assertThisInitialized(tt))}},tt}var _e=j.prototype;return _e.render=function(){var tt=this,nt=this.state.contextValue,rt=this.props,it=rt.iconVariant,ot=rt.dense,ct=ot===void 0?DEFAULTS.dense:ot,ut=rt.hideIconVariant,dt=ut===void 0?DEFAULTS.hideIconVariant:ut,pt=rt.domRoot,mt=rt.children,vt=rt.classes,Et=vt===void 0?{}:vt,Rt=_objectWithoutPropertiesLoose(rt,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),xt=this.state.snacks.reduce(function(Dt,Ft){var zt,Nt=originKeyExtractor(Ft.anchorOrigin),Vt=Dt[Nt]||[];return _extends({},Dt,(zt={},zt[Nt]=[].concat(Vt,[Ft]),zt))},{}),Pt=Object.keys(xt).map(function(Dt){var Ft=xt[Dt];return React$2.createElement(SnackbarContainer$1,{key:Dt,dense:ct,anchorOrigin:Ft[0].anchorOrigin,className:clsx(Et.containerRoot,Et[transformer.toContainerAnchorOrigin(Dt)])},Ft.map(function(zt){return React$2.createElement(SnackbarItem,Object.assign({},Rt,{key:zt.key,snack:zt,dense:ct,iconVariant:it,hideIconVariant:dt,classes:omitContainerKeys(Et),onClose:tt.handleCloseSnack,onExited:createChainedFunction([tt.handleExitedSnack,tt.props.onExited]),onEntered:createChainedFunction([tt.handleEnteredSnack,tt.props.onEntered])}))}))});return React$2.createElement(SnackbarContext.Provider,{value:nt},mt,pt?reactDomExports.createPortal(Pt,pt):Pt)},_createClass(j,[{key:"maxSnack",get:function(){return this.props.maxSnack||DEFAULTS.maxSnack}}]),j}(reactExports.Component),useSnackbar=function(){return reactExports.useContext(SnackbarContext)},Close={},createSvgIcon={};const require$$0$7=getAugmentedNamespace(utils$p);var hasRequiredCreateSvgIcon;function requireCreateSvgIcon(){return hasRequiredCreateSvgIcon||(hasRequiredCreateSvgIcon=1,function(a){"use client";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return j.createSvgIcon}});var j=require$$0$7}(createSvgIcon)),createSvgIcon}var _interopRequireDefault$7=interopRequireDefaultExports;Object.defineProperty(Close,"__esModule",{value:!0});var default_1$7=Close.default=void 0,_createSvgIcon$4=_interopRequireDefault$7(requireCreateSvgIcon()),_jsxRuntime$6=jsxRuntimeExports;default_1$7=Close.default=(0,_createSvgIcon$4.default)((0,_jsxRuntime$6.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function noop$6(){}var noop_1=noop$6;const noop$7=getDefaultExportFromCjs$1(noop_1);let success=noop$7,error=noop$7,warning=noop$7,info=noop$7;const genFn=(a,j)=>(_e,et={})=>{a(_e,{autoHideDuration:5e3,variant:j,...et})};function ToastProvider({children:a}){const j=reactExports.createRef(),_e=et=>()=>{j.current.closeSnackbar(et)};return jsxRuntimeExports.jsxs(SnackbarProvider,{anchorOrigin:{vertical:"top",horizontal:"right"},ref:j,action:et=>jsxRuntimeExports.jsx(IconButton,{"aria-label":"close",color:"inherit",onClick:_e(et),size:"large",children:jsxRuntimeExports.jsx(default_1$7,{style:{fontSize:16}})},"close"),children:[jsxRuntimeExports.jsx(Toast,{}),a]})}function Toast(){const{enqueueSnackbar:a}=useSnackbar();return success=genFn(a,"success"),error=genFn(a,"error"),warning=genFn(a,"warning"),info=genFn(a,"info"),null}const Toast$1={success:(a,j={},..._e)=>success(a,j,..._e),error:(a,j={autoHideDuration:15e3},..._e)=>error(a,j,..._e),warning:(a,j={},..._e)=>warning(a,j,..._e),info:(a,j={},..._e)=>info(a,j,..._e)};var flat=flatten$4;flatten$4.flatten=flatten$4;flatten$4.unflatten=unflatten;function isBuffer$7(a){return a&&a.constructor&&typeof a.constructor.isBuffer=="function"&&a.constructor.isBuffer(a)}function keyIdentity(a){return a}function flatten$4(a,j){j=j||{};const _e=j.delimiter||".",et=j.maxDepth,tt=j.transformKey||keyIdentity,nt={};function rt(it,ot,ct){ct=ct||1,Object.keys(it).forEach(function(ut){const dt=it[ut],pt=j.safe&&Array.isArray(dt),mt=Object.prototype.toString.call(dt),vt=isBuffer$7(dt),Et=mt==="[object Object]"||mt==="[object Array]",Rt=ot?ot+_e+tt(ut):tt(ut);if(!pt&&!vt&&Et&&Object.keys(dt).length&&(!j.maxDepth||ct<et))return rt(dt,Rt,ct+1);nt[Rt]=dt})}return rt(a),nt}function unflatten(a,j){j=j||{};const _e=j.delimiter||".",et=j.overwrite||!1,tt=j.transformKey||keyIdentity,nt={};if(isBuffer$7(a)||Object.prototype.toString.call(a)!=="[object Object]")return a;function it(ut){const dt=Number(ut);return isNaN(dt)||ut.indexOf(".")!==-1||j.object?ut:dt}function ot(ut,dt,pt){return Object.keys(pt).reduce(function(mt,vt){return mt[ut+_e+vt]=pt[vt],mt},dt)}function ct(ut){const dt=Object.prototype.toString.call(ut),pt=dt==="[object Array]",mt=dt==="[object Object]";if(ut){if(pt)return!ut.length;if(mt)return!Object.keys(ut).length}else return!0}return a=Object.keys(a).reduce(function(ut,dt){const pt=Object.prototype.toString.call(a[dt]);return!(pt==="[object Object]"||pt==="[object Array]")||ct(a[dt])?(ut[dt]=a[dt],ut):ot(dt,ut,flatten$4(a[dt],j))},{}),Object.keys(a).forEach(function(ut){const dt=ut.split(_e).map(tt);let pt=it(dt.shift()),mt=it(dt[0]),vt=nt;for(;mt!==void 0;){if(pt==="__proto__")return;const Et=Object.prototype.toString.call(vt[pt]),Rt=Et==="[object Object]"||Et==="[object Array]";if(!et&&!Rt&&typeof vt[pt]<"u")return;(et&&!Rt||!et&&vt[pt]==null)&&(vt[pt]=typeof mt=="number"&&!j.object?[]:{}),vt=vt[pt],dt.length>0&&(pt=it(dt.shift()),mt=it(dt[0]))}vt[pt]=unflatten(a[ut],j)}),nt}const be=getDefaultExportFromCjs$1(flat);var ListCache$4=_ListCache;function stackClear$1(){this.__data__=new ListCache$4,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(a){var j=this.__data__,_e=j.delete(a);return this.size=j.size,_e}var _stackDelete=stackDelete$1;function stackGet$1(a){return this.__data__.get(a)}var _stackGet=stackGet$1;function stackHas$1(a){return this.__data__.has(a)}var _stackHas=stackHas$1,ListCache$3=_ListCache,Map$4=_Map,MapCache$3=_MapCache,LARGE_ARRAY_SIZE$1=200;function stackSet$1(a,j){var _e=this.__data__;if(_e instanceof ListCache$3){var et=_e.__data__;if(!Map$4||et.length<LARGE_ARRAY_SIZE$1-1)return et.push([a,j]),this.size=++_e.size,this;_e=this.__data__=new MapCache$3(et)}return _e.set(a,j),this.size=_e.size,this}var _stackSet=stackSet$1,ListCache$2=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$4(a){var j=this.__data__=new ListCache$2(a);this.size=j.size}Stack$4.prototype.clear=stackClear;Stack$4.prototype.delete=stackDelete;Stack$4.prototype.get=stackGet;Stack$4.prototype.has=stackHas;Stack$4.prototype.set=stackSet;var _Stack=Stack$4,getNative$6=_getNative,defineProperty$4=function(){try{var a=getNative$6(Object,"defineProperty");return a({},"",{}),a}catch{}}(),_defineProperty$2=defineProperty$4,defineProperty$3=_defineProperty$2;function baseAssignValue$3(a,j,_e){j=="__proto__"&&defineProperty$3?defineProperty$3(a,j,{configurable:!0,enumerable:!0,value:_e,writable:!0}):a[j]=_e}var _baseAssignValue=baseAssignValue$3,baseAssignValue$2=_baseAssignValue,eq$8=eq_1$1;function assignMergeValue$2(a,j,_e){(_e!==void 0&&!eq$8(a[j],_e)||_e===void 0&&!(j in a))&&baseAssignValue$2(a,j,_e)}var _assignMergeValue=assignMergeValue$2;function createBaseFor$1(a){return function(j,_e,et){for(var tt=-1,nt=Object(j),rt=et(j),it=rt.length;it--;){var ot=rt[a?it:++tt];if(_e(nt[ot],ot,nt)===!1)break}return j}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$2=createBaseFor(),_baseFor=baseFor$2,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(a,j){var _e=_root,et=j&&!j.nodeType&&j,tt=et&&!0&&a&&!a.nodeType&&a,nt=tt&&tt.exports===et,rt=nt?_e.Buffer:void 0,it=rt?rt.allocUnsafe:void 0;function ot(ct,ut){if(ut)return ct.slice();var dt=ct.length,pt=it?it(dt):new ct.constructor(dt);return ct.copy(pt),pt}a.exports=ot})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports,root$8=_root,Uint8Array$3=root$8.Uint8Array,_Uint8Array=Uint8Array$3,Uint8Array$2=_Uint8Array;function cloneArrayBuffer$3(a){var j=new a.constructor(a.byteLength);return new Uint8Array$2(j).set(new Uint8Array$2(a)),j}var _cloneArrayBuffer=cloneArrayBuffer$3,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneTypedArray$2(a,j){var _e=j?cloneArrayBuffer$2(a.buffer):a.buffer;return new a.constructor(_e,a.byteOffset,a.length)}var _cloneTypedArray=cloneTypedArray$2;function copyArray$2(a,j){var _e=-1,et=a.length;for(j||(j=Array(et));++_e<et;)j[_e]=a[_e];return j}var _copyArray=copyArray$2,isObject$k=isObject_1,objectCreate$1=Object.create,baseCreate$1=function(){function a(){}return function(j){if(!isObject$k(j))return{};if(objectCreate$1)return objectCreate$1(j);a.prototype=j;var _e=new a;return a.prototype=void 0,_e}}(),_baseCreate=baseCreate$1;function overArg$2(a,j){return function(_e){return a(j(_e))}}var _overArg=overArg$2,overArg$1=_overArg,getPrototype$3=overArg$1(Object.getPrototypeOf,Object),_getPrototype=getPrototype$3,objectProto$d=Object.prototype;function isPrototype$4(a){var j=a&&a.constructor,_e=typeof j=="function"&&j.prototype||objectProto$d;return a===_e}var _isPrototype=isPrototype$4,baseCreate=_baseCreate,getPrototype$2=_getPrototype,isPrototype$3=_isPrototype;function initCloneObject$2(a){return typeof a.constructor=="function"&&!isPrototype$3(a)?baseCreate(getPrototype$2(a)):{}}var _initCloneObject=initCloneObject$2,baseGetTag$6=_baseGetTag,isObjectLike$d=isObjectLike_1,argsTag$3="[object Arguments]";function baseIsArguments$1(a){return isObjectLike$d(a)&&baseGetTag$6(a)==argsTag$3}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$c=isObjectLike_1,objectProto$c=Object.prototype,hasOwnProperty$g=objectProto$c.hasOwnProperty,propertyIsEnumerable$1=objectProto$c.propertyIsEnumerable,isArguments$7=baseIsArguments(function(){return arguments}())?baseIsArguments:function(a){return isObjectLike$c(a)&&hasOwnProperty$g.call(a,"callee")&&!propertyIsEnumerable$1.call(a,"callee")},isArguments_1=isArguments$7,MAX_SAFE_INTEGER$4=9007199254740991;function isLength$3(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=MAX_SAFE_INTEGER$4}var isLength_1=isLength$3,isFunction$5=isFunction_1,isLength$2=isLength_1;function isArrayLike$7(a){return a!=null&&isLength$2(a.length)&&!isFunction$5(a)}var isArrayLike_1=isArrayLike$7,isArrayLike$6=isArrayLike_1,isObjectLike$b=isObjectLike_1;function isArrayLikeObject$3(a){return isObjectLike$b(a)&&isArrayLike$6(a)}var isArrayLikeObject_1=isArrayLikeObject$3,isBuffer$6={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$6.exports;(function(a,j){var _e=_root,et=stubFalse_1,tt=j&&!j.nodeType&&j,nt=tt&&!0&&a&&!a.nodeType&&a,rt=nt&&nt.exports===tt,it=rt?_e.Buffer:void 0,ot=it?it.isBuffer:void 0,ct=ot||et;a.exports=ct})(isBuffer$6,isBuffer$6.exports);var isBufferExports=isBuffer$6.exports,baseGetTag$5=_baseGetTag,getPrototype$1=_getPrototype,isObjectLike$a=isObjectLike_1,objectTag$4="[object Object]",funcProto$2=Function.prototype,objectProto$b=Object.prototype,funcToString$2=funcProto$2.toString,hasOwnProperty$f=objectProto$b.hasOwnProperty,objectCtorString=funcToString$2.call(Object);function isPlainObject$3(a){if(!isObjectLike$a(a)||baseGetTag$5(a)!=objectTag$4)return!1;var j=getPrototype$1(a);if(j===null)return!0;var _e=hasOwnProperty$f.call(j,"constructor")&&j.constructor;return typeof _e=="function"&&_e instanceof _e&&funcToString$2.call(_e)==objectCtorString}var isPlainObject_1=isPlainObject$3;const isPlainObject$4=getDefaultExportFromCjs$1(isPlainObject_1);var baseGetTag$4=_baseGetTag,isLength$1=isLength_1,isObjectLike$9=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$4="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$3="[object Function]",mapTag$6="[object Map]",numberTag$4="[object Number]",objectTag$3="[object Object]",regexpTag$3="[object RegExp]",setTag$6="[object Set]",stringTag$4="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$4]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$3]=typedArrayTags[mapTag$6]=typedArrayTags[numberTag$4]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$6]=typedArrayTags[stringTag$4]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(a){return isObjectLike$9(a)&&isLength$1(a.length)&&!!typedArrayTags[baseGetTag$4(a)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$5(a){return function(j){return a(j)}}var _baseUnary=baseUnary$5,_nodeUtil={exports:{}};_nodeUtil.exports;(function(a,j){var _e=_freeGlobal,et=j&&!j.nodeType&&j,tt=et&&!0&&a&&!a.nodeType&&a,nt=tt&&tt.exports===et,rt=nt&&_e.process,it=function(){try{var ot=tt&&tt.require&&tt.require("util").types;return ot||rt&&rt.binding&&rt.binding("util")}catch{}}();a.exports=it})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$4=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$6=nodeIsTypedArray?baseUnary$4(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$6;function safeGet$2(a,j){if(!(j==="constructor"&&typeof a[j]=="function")&&j!="__proto__")return a[j]}var _safeGet=safeGet$2,baseAssignValue$1=_baseAssignValue,eq$7=eq_1$1,objectProto$a=Object.prototype,hasOwnProperty$e=objectProto$a.hasOwnProperty;function assignValue$4(a,j,_e){var et=a[j];(!(hasOwnProperty$e.call(a,j)&&eq$7(et,_e))||_e===void 0&&!(j in a))&&baseAssignValue$1(a,j,_e)}var _assignValue=assignValue$4,assignValue$3=_assignValue,baseAssignValue=_baseAssignValue;function copyObject$6(a,j,_e,et){var tt=!_e;_e||(_e={});for(var nt=-1,rt=j.length;++nt<rt;){var it=j[nt],ot=et?et(_e[it],a[it],it,_e,a):void 0;ot===void 0&&(ot=a[it]),tt?baseAssignValue(_e,it,ot):assignValue$3(_e,it,ot)}return _e}var _copyObject=copyObject$6;function baseTimes$1(a,j){for(var _e=-1,et=Array(a);++_e<a;)et[_e]=j(_e);return et}var _baseTimes=baseTimes$1,MAX_SAFE_INTEGER$3=9007199254740991,reIsUint$1=/^(?:0|[1-9]\d*)$/;function isIndex$5(a,j){var _e=typeof a;return j=j??MAX_SAFE_INTEGER$3,!!j&&(_e=="number"||_e!="symbol"&&reIsUint$1.test(a))&&a>-1&&a%1==0&&a<j}var _isIndex=isIndex$5,baseTimes=_baseTimes,isArguments$6=isArguments_1,isArray$g=isArray_1,isBuffer$5=isBufferExports,isIndex$4=_isIndex,isTypedArray$5=isTypedArray_1,objectProto$9=Object.prototype,hasOwnProperty$d=objectProto$9.hasOwnProperty;function arrayLikeKeys$2(a,j){var _e=isArray$g(a),et=!_e&&isArguments$6(a),tt=!_e&&!et&&isBuffer$5(a),nt=!_e&&!et&&!tt&&isTypedArray$5(a),rt=_e||et||tt||nt,it=rt?baseTimes(a.length,String):[],ot=it.length;for(var ct in a)(j||hasOwnProperty$d.call(a,ct))&&!(rt&&(ct=="length"||tt&&(ct=="offset"||ct=="parent")||nt&&(ct=="buffer"||ct=="byteLength"||ct=="byteOffset")||isIndex$4(ct,ot)))&&it.push(ct);return it}var _arrayLikeKeys=arrayLikeKeys$2;function nativeKeysIn$1(a){var j=[];if(a!=null)for(var _e in Object(a))j.push(_e);return j}var _nativeKeysIn=nativeKeysIn$1,isObject$j=isObject_1,isPrototype$2=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$8=Object.prototype,hasOwnProperty$c=objectProto$8.hasOwnProperty;function baseKeysIn$1(a){if(!isObject$j(a))return nativeKeysIn(a);var j=isPrototype$2(a),_e=[];for(var et in a)et=="constructor"&&(j||!hasOwnProperty$c.call(a,et))||_e.push(et);return _e}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys$1=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike$5=isArrayLike_1;function keysIn$5(a){return isArrayLike$5(a)?arrayLikeKeys$1(a,!0):baseKeysIn(a)}var keysIn_1=keysIn$5,copyObject$5=_copyObject,keysIn$4=keysIn_1;function toPlainObject$1(a){return copyObject$5(a,keysIn$4(a))}var toPlainObject_1=toPlainObject$1,assignMergeValue$1=_assignMergeValue,cloneBuffer$1=_cloneBufferExports,cloneTypedArray$1=_cloneTypedArray,copyArray$1=_copyArray,initCloneObject$1=_initCloneObject,isArguments$5=isArguments_1,isArray$f=isArray_1,isArrayLikeObject$2=isArrayLikeObject_1,isBuffer$4=isBufferExports,isFunction$4=isFunction_1,isObject$i=isObject_1,isPlainObject$2=isPlainObject_1,isTypedArray$4=isTypedArray_1,safeGet$1=_safeGet,toPlainObject=toPlainObject_1;function baseMergeDeep$1(a,j,_e,et,tt,nt,rt){var it=safeGet$1(a,_e),ot=safeGet$1(j,_e),ct=rt.get(ot);if(ct){assignMergeValue$1(a,_e,ct);return}var ut=nt?nt(it,ot,_e+"",a,j,rt):void 0,dt=ut===void 0;if(dt){var pt=isArray$f(ot),mt=!pt&&isBuffer$4(ot),vt=!pt&&!mt&&isTypedArray$4(ot);ut=ot,pt||mt||vt?isArray$f(it)?ut=it:isArrayLikeObject$2(it)?ut=copyArray$1(it):mt?(dt=!1,ut=cloneBuffer$1(ot,!0)):vt?(dt=!1,ut=cloneTypedArray$1(ot,!0)):ut=[]:isPlainObject$2(ot)||isArguments$5(ot)?(ut=it,isArguments$5(it)?ut=toPlainObject(it):(!isObject$i(it)||isFunction$4(it))&&(ut=initCloneObject$1(ot))):dt=!1}dt&&(rt.set(ot,ut),tt(ut,ot,et,nt,rt),rt.delete(ot)),assignMergeValue$1(a,_e,ut)}var _baseMergeDeep=baseMergeDeep$1,Stack$3=_Stack,assignMergeValue=_assignMergeValue,baseFor$1=_baseFor,baseMergeDeep=_baseMergeDeep,isObject$h=isObject_1,keysIn$3=keysIn_1,safeGet=_safeGet;function baseMerge$3(a,j,_e,et,tt){a!==j&&baseFor$1(j,function(nt,rt){if(tt||(tt=new Stack$3),isObject$h(nt))baseMergeDeep(a,j,rt,_e,baseMerge$3,et,tt);else{var it=et?et(safeGet(a,rt),nt,rt+"",a,j,tt):void 0;it===void 0&&(it=nt),assignMergeValue(a,rt,it)}},keysIn$3)}var _baseMerge=baseMerge$3;function identity$4(a){return a}var identity_1=identity$4;function apply$4(a,j,_e){switch(_e.length){case 0:return a.call(j);case 1:return a.call(j,_e[0]);case 2:return a.call(j,_e[0],_e[1]);case 3:return a.call(j,_e[0],_e[1],_e[2])}return a.apply(j,_e)}var _apply=apply$4,apply$3=_apply,nativeMax$1=Math.max;function overRest$2(a,j,_e){return j=nativeMax$1(j===void 0?a.length-1:j,0),function(){for(var et=arguments,tt=-1,nt=nativeMax$1(et.length-j,0),rt=Array(nt);++tt<nt;)rt[tt]=et[j+tt];tt=-1;for(var it=Array(j+1);++tt<j;)it[tt]=et[tt];return it[j]=_e(rt),apply$3(a,this,it)}}var _overRest=overRest$2;function constant$1(a){return function(){return a}}var constant_1=constant$1,constant=constant_1,defineProperty$2=_defineProperty$2,identity$3=identity_1,baseSetToString$1=defineProperty$2?function(a,j){return defineProperty$2(a,"toString",{configurable:!0,enumerable:!1,value:constant(j),writable:!0})}:identity$3,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut$1(a){var j=0,_e=0;return function(){var et=nativeNow(),tt=HOT_SPAN-(et-_e);if(_e=et,tt>0){if(++j>=HOT_COUNT)return arguments[0]}else j=0;return a.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$2=shortOut(baseSetToString),_setToString=setToString$2,identity$2=identity_1,overRest$1=_overRest,setToString$1=_setToString;function baseRest$5(a,j){return setToString$1(overRest$1(a,j,identity$2),a+"")}var _baseRest=baseRest$5,eq$6=eq_1$1,isArrayLike$4=isArrayLike_1,isIndex$3=_isIndex,isObject$g=isObject_1;function isIterateeCall$2(a,j,_e){if(!isObject$g(_e))return!1;var et=typeof j;return(et=="number"?isArrayLike$4(_e)&&isIndex$3(j,_e.length):et=="string"&&j in _e)?eq$6(_e[j],a):!1}var _isIterateeCall=isIterateeCall$2,baseRest$4=_baseRest,isIterateeCall$1=_isIterateeCall;function createAssigner$2(a){return baseRest$4(function(j,_e){var et=-1,tt=_e.length,nt=tt>1?_e[tt-1]:void 0,rt=tt>2?_e[2]:void 0;for(nt=a.length>3&&typeof nt=="function"?(tt--,nt):void 0,rt&&isIterateeCall$1(_e[0],_e[1],rt)&&(nt=tt<3?void 0:nt,tt=1),j=Object(j);++et<tt;){var it=_e[et];it&&a(j,it,et,nt)}return j})}var _createAssigner=createAssigner$2,baseMerge$2=_baseMerge,createAssigner$1=_createAssigner,merge$1=createAssigner$1(function(a,j,_e){baseMerge$2(a,j,_e)}),merge_1=merge$1;const merge$2=getDefaultExportFromCjs$1(merge_1),en$1={setup:{connect:{title:"Signature Required",scan:"Connect your DID Wallet to become the owner of this server",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},keyPair:{title:"Derived KeyPair Required",scan:"Connect your DID Wallet to generate a key-pair for this app",confirm:"Review this operation on your DID Wallet",success:"Your key pair is securely stored"},verify:{title:"Ownership Credential Required",scan:"Connect your DID Wallet to provide ownership credentials",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},accept:{title:"Accepting server require ownership certificates",scan:"Connect your DID Wallet to provide ownership credentials",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},title:"Setup Blocklet Server",steps:{eula:"End User License Agreement",eulaFooter:"I have read and agreed to the terms of the EULA",connect:"Connect Owner DID Wallet",verify:"Verify Ownership",basicSettings:"Basic Settings",launchApp:"Launch Application",complete:"Complete"},congratulation:"Congratulations! Your Blocklet Server is secure and ready to use",redirectButton:"Take me to dashboard!"},login:{loginTo:"Connect to",description:"Only server owner and approved members can access the dashboard",switchDid:{title:"Switch DID Wallet",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},switchSpecifiedDid:{title:"Switch DID Wallet",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},connect:{title:"Connect DID Wallet",scan:"Connect your DID Wallet to provide passport",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"}},acceptServer:{title:"Claim Server with Ownership NFT",tooltip:"If you received a server ownership nft, you can claim your owner passport with this link."},exchangePassport:{title:"Get Passport with NFT",success:"You have successfully get your passport and logged in with the passport",login:"Login",tooltip:"If you own NFT from collection {collections}, you can exchange your passport with this link.",dialog:{title:"Get Passport with NFT",scan:"Connect your DID Wallet to present your NFT to get a passport",confirm:"Select NFT on your DID Wallet",success:"Passport has been successfully exchanged"}},payablePassport:{title:"Purchase passport with payment",tooltip:"If you do not have a passport, you can purchase a passport with this link."},sidebar:{dashboard:"Dashboard",blocklets:"Blocklets",console:"Console",settings:"Settings"},system:{total:"Total",used:"Used",free:"Free",cores:"Number of cores",instances:"Number of instances"},common:{invalid:"Invalid",about:"About",access:"Access",change:"Change",upload:"Upload",accessKey:"Access Keys",action:"Action",actions:"Actions",add:"Add",address:"Address",afterTime:"After {time}",allow:"Allow",alreadyExist:"already exists",approve:"Approve",approved:"approved",appUrl:"APP Url",auditLogs:"Audit Trail",author:"Author",avatar:"Avatar",back:"Back",basic:"Basic",basicInfo:"Basic Information",profile:"Profile",bind:"Bind",blocklet:"Blocklet",blocklets:"Blocklets",blockletsStorage:"Blocklets Storage",cacheStorage:"Cache Storage",cancel:"Cancel",certificate:"certificate",category:"Log Topic",click:"Click to copy",close:"Close",collapseAll:"Collapse All",community:"Community",complete:"Complete",componentBasicInfo:"Component Basic Information",components:"Blocklets",config:"Configure",configuration:"Configuration",configNavigation:"Navigation",configSuccess:"Config successfully",confirm:"Confirm",connect:"Connect",console:"Console",continue:"Continue",continueWith:"Continue With",copiedTip:"Copied",copyAndClose:"Copy & Close",copyTip:"Click To Copy",coreStorage:"Core Storage",cpu:"CPU",create:"Create",createSuccess:"Create Access Key",created:"Created At",createdAt:"Created At",createdBy:"Created By",dAddress:"Decentralized Identifiers (DID)",dataStorage:"Storage on Local Disk",delConfirm:"Delete",delConfirmDescription:"Confirm delete {data}?",delete:"Delete",dependents:"Dependents",description:"Description",detail:"Detail",did:"DID",disk:"Disk",diskInfo:"Disk Info",docker:"IS Docker",documentation:"Documentation",domain:"Domain",downgradeTo:"Downgrade to",download:"Download",connectToStore:"Connect to Store",blockletStudio:"Studio",uploaded:"Uploaded",downloading:"Downloading",edit:"Edit",email:"Email",phone:"Phone",empty:"Empty",emptyData:"No results found",enable:"Enable",engine:"Engine",env:"Environment",environment:"Environment",expandAll:"Expand All",expired:"Expired",expires:"Expires",export:"Export",externalIp:"External IP",failed:"Failed",filter:"Log Filter",fingerprint:"Fingerprint",finish:"Finish",forbid:"Forbid",free:"Free",general:"General",gitpod:"IS Gitpod",goEULA:'Click to view "End User License Agreement"',group:"Group",image:"IS Image",install:"Install",installed:"Installed",installedAt:"Installed At",installSuccess:"Successfully installed",installing:"Installing",internalIp:"Internal IP",introduction:"Introduction",invite:"Invite",inviting:"Inviting",ip:"IP",isPublic:"Public",issue:"Issue",issuer:"Issuer",item:"Item",joined:"Joined",key:"Key",lastPublishedAt:"Published At",launcher:"Launcher Information",leavePageTip:"Are you sure to leave the page?",link:"Link",loading:"loading",log:"View Logs",logStorage:"Log Storage",login:"Login",logo:"Logo",logout:"Logout",logs:"Logs",manageTeam:"Manage Team",marketplace:"Marketplace",member:"Member",members:"Members",memory:"Memory",meta:"Meta Data",analytics:"Analytics",runtime:"Runtime",traffic:"Traffic",more:"More",mountPoint:"MountPoint",name:"Name",next:"Next",no:"No",noData:"No records to display",notice:"Unexpected bad things will happen if you don’t read this!",noticeTitle:"Notice",notification:"Notification",open:"Open",visitStore:"Visit Store",visitTarget:"Visit {name}",management:"Management",os:"Operating System",overview:"Overview",owner:"Owner",page404:"404 Page",passport:"Passport",permission:"Permission",port:"Port",pre:"Previous",preferences:"Preferences",preview:"Preview",protected:"Protected",protocol:"Protocol",purchase:"Purchase",reconnect:"Reconnect",disconnect:"Disconnect",readMore:"More",redirect:"Redirect",redirectCode:"Redirect Code",redirectPermanently:"Permanent Redirect",redirectTemporary:"Temporary Redirect",redirectUrl:"Redirect URL",rewrite:"Rewrite",release:"Release",rewriteUrl:"Rewrite URL",reject:"Reject",reload:"Reload",remark:"Remark",remove:"Remove",removeSuccess:"Remove successfully",renew:"Renew",reportIssue:"Report an issue",required:"Required",requiredErrorText:"{name} is required",resource:"Resource",restart:"Restart",restore:"Restore",retry:"Retry",revoke:"Revoke",role:"Role",running:"running",runtimeInfo:"Runtime Info",save:"Save",saveChanges:"Save Changes",saveSuccess:"Saved successfully",scheduleFailed:"schedule failed",scheduleSuccess:"successfully scheduled",scope:"Scope",screenshot:"Screenshot",search:"Search",security:"Security",serverDid:"Server DID",serverVersion:"Server Version",setting:"Settings",start:"Start",status:"Status",stop:"Stop",storage:"Storage",backup:"Backup",store:"Store",succeeded:"Succeeded",subscription:"Subscription",support:"Support",switch:"Switch",team:"Team",the:"The",timeAgo:"{time} ago",title:"Title",type:"Type",unavailable:"Unavailable",update:"Update",updateAvailable:"New version {version} available",updatedAt:"Updated At",updatedBy:"Updated By",upgrade:"Upgrade",upgradeTo:"Upgrade to",upgrading:"Upgrading",uptime:"Uptime",url:"URL",valid:"Valid",value:"Value",version:"Version",visit:"Visit",waiting:"Waiting",webhook:"Integrations",yes:"Yes",invalidParam:"Invalid Params",launch:"Launch",price:"Price",redirecting:"Redirecting",error:"Error",reminder:"Reminder",normal:"Normal",gateway:"Gateway",verifyNFT:"Verify NFT",errorMessage:"Error Message: ",slugifyHint:"The actual mount point will be: {value}",strategy:"Strategy",auto:"Auto",manual:"Manual",progress:"In progress",startTime:"Start time",endTime:"End time",selected:"Selected",timeoutError:"Timeout error",tags:"Tags",sourceApp:"Belong to App"},blocklet:{external:"External",notFound:"Blocklet not found on this server, maybe it has been deleted",installFromMarket:"Install New Blocklets",installFromUrl:"Install From Url",installFromCreate:"Create Blocklet",titleValidationError:"Title length must be between 3 and 40 characters",descriptionValidationError:"Description length must be between 3 and 160 characters",installFromDiskBackup:"Restore from this server",installedAt:"Installed At",internal:"Internal",startedAt:"Started At",stoppedAt:"Stopped At",urlEmptyTip:"No Access URL, ",goToAddRule:"Go To Add",services:"Exposed Services",upstreamPort:"Upstream Port",noService:"No Services",appId:"App DID",appPid:"Permanent DID",whyNeedAppPid:"If your application has been migrated, the permanent DID is the DID generated when this Blocklet was originally installed",alsoKnownAs:"Also Known As",skSource:"Owner Wallet",reloadSuccess:"Blocklet was reloaded successfully",statusTip:"Blocklet is {status}",initialUptime:"Less than 1m",dashboard:"Blocklet Dashboard",noComponent:"Application has no components and cannot be started",fromUrl:{title:"Install Blocklet",label:"Blocklet Meta URL",description:"The URL should point to the Meta File of the Blocklet. If you need to refer to a local file, please add the file:// prefix, e.g. file:///Users/foo/blocklet.json.",confirm:"Install",step0:"Input URL",step1:"Confirm Meta Info",existTipPrefix:"Blocklet with the same DID already exists, the version is",existTipSuffix:", Please install a higher version."},action:{stopDescription:"Stopping the blocklet will make its public interfaces unaccessible, which may cause end user failures",stopComponentDescription:"Stopping the component will make its public interfaces unaccessible, which may cause end user failures",confirmStop:"Yes, Stop It",cancelDownloadDescription:"Cancel download {name} ?",removeApplicationDescription:"Removing the application will erase code and data generated by this application, which is not recoverable if you do not have any backups",removeApplicationAfterBackup:"Backup and remove the application. You can restore the application from this server if you need",removeApplicationComplete:"Remove both code and data for this application",removeComponentDescription:"Removing the component will erase code and data generated by this component, which is not recoverable if you do not have any backups",removeComponentKeepData:"Keep data for this component, only remove code",removeComponentComplete:"Remove both code and data for this component",confirmRemove:"Yes, Remove It",confirmComponentRemove:"Yes, Remove It",upgradeDescription:"Upgrading the blocklet will make it temporarily unavailable, are you sure to continue?",confirmUpgrade:"Yes, Upgrade It",confirmRestart:"Yes, Restart It",restartDescription:"Restarting the blocklet will temporarily suspended and may not start because of a configuration change"},dev:{modeTip:"Please switch Blocklet Server to DEBUG mode"},index:{tableTitle:"Manage Your Blocklets",noBlocklet:"No blocklets found in this Blocklet Server, install a blocklet from market place to start."},admin:{iframeTitle:"Blocklet Admin Interface",title:"Admin Interface",noContent:"This blocklet does not have a admin interface",securityError:"SecurityError: Can not open the admin url from accessing a cross-origin frame"},config:{name:"App Name",description:"App Description",sk:"Secret key for the app wallet",logoSquare:"App Logo",logoRect:"Rect logo",logoRectDesc:"Usually displayed at the top of the page, default to app logo",logoFavicon:"Favicon",logoFaviconDesc:"Usually displayed in the browser's address bar or tab page, default to app logo",clusterSize:"Instance count when run this blocklet in cluster mode",copyrightOwner:"Copyright Owner (Display in footer)",copyrightYear:"Copyright Year (Display in footer)",deletable:{name:"Delete Protection",enable:"This blocklet can NOT currently be deleted",disable:"This blocklet can currently be deleted"},tenantMode:{name:"Multiple Tenant Mode",multiple:"This blocklet runs in multiple tenant mode, data should be isolated for each tenant",single:"This blocklet runs in single tenant mode, all data are shared"},walletType:{name:"Wallet Type",description:"Blocklet instance wallet type, will change the derived DID"},languages:"Supported Languages",selectLanguagesTip:"Adjust the order by removing and re-adding",languagesSearch:"Search by Country's Local Name, English Name, or ISO Code...",passportColor:"Passport Color",appUrl:"App URL",access:{title:"Who Can Access",description:"Who can access the blocklet",useDefault:"Use default",defaultDescription:"Use the application's default configuration",whoCanAccess:{all:{title:"Accessible to all",description:"Open to the world anyone can access without passport"},owner:{title:"Only me can access",description:"You must provide owner passport to access this application"},invited:{title:"Only invited people can access",description:"You can invite members later in the admin page"}},publicToStore:"Public On Store",publicInstanceTip:"The access address of this blocklet will be displayed in the Store (along with your DID for accepting donations)",updatedTip:"Access Control Modified"},changedTip:"Configuration updated, please restart Blocklet",missingRequired:"Missing required configuration to start the blocklet",gotoFix:"Go to fix",environment:{key:"Configuration key",value:"Configuration value",keyValueRequired:"Configuration key and value must be specified",invalidKey:"Configuration key must not start with BLOCKLET_ or COMPONENT_",deleteForbidden:"This configuration is required and should not be deleted",tip:"Configurations prefixed with BWA_ should not contain sensitive information because they will be sent to the browser"},dangerZone:"Danger Zone",blockletTypeChangeTip:"Wallet Type will be changed to <b>{value}</b>",appDidChangeTip:"This operation will change the DID of the application, which will lead to the following problems. Please confirm after careful evaluation:",appDidChangeTipL1:"The user's account connected to this application will change",appDidChangeTipL2:"The DID domain name of the application will change, and the original domain name will become invalid",appSkChangeTip:"You are changing application secret key",walletTypeTitle:"Update Wallet Type",appSkTitle:"Update Application Secret Key",sharedToAllComponents:"Will be shared to all components",session:{ttl:"Login session validity period (user will be asked to login again if they have no activity on this site for {day} days)",day:"{day} day",days:"{day} days"},clearCache:{name:"Cache Management",purpose:"Manage files cached in router and blocklet services",title:"Confirm Cache Clear?",action:"Clear Cache",success:"Successfully cleared {count} cache entries",description:"Are you sure you want to clear cached files in router and blocklet service? this operation may cause slight performance downgrade in the short term"}},overview:{source:"Source",deployedFrom:"Deployed From",accessControl:"Access Control",viewInStore:"View It In Store"},diskInfo:{empty:"Disk info not available now!",appDir:"App Directory",dataDir:"Data Directory",logDir:"Log Directory",cacheDir:"Cache Directory"},runtimeInfo:{noRunning:"Runtime information will be available when blocklet is running!",memoryUsage:"Memory Usage",cpuUsage:"CPU Usage",uptime:"Uptime",port:"Port",processId:"Process ID"},dist:{downloadLink:"Download Link",verify:"Verify"},status:{added:"Added",waiting:"Waiting",downloading:"Downloading",extracting:"Extracting",installing:"Installing",upgrading:"Upgrading",installed:"Installed",created:"Created",starting:"Starting",running:"Running",stopping:"Stopping",stopped:"Stopped",error:"Error",deleting:"Deleting",corrupted:"Corrupted",purchasing:"Waiting for purchase",purchased:"Purchased",verifying:"Verifying purchase",resource:"Resource"},list:{download:"Download",star:"Star"},component:{container:"Global Config",showContainer:"Show Global Config",didSpaceConfig:"Configure DID Spaces",didSpaceConfigTip:"Complete the following authorize process to store application data in DID Spaces",didSpaceConnected:"Storage being authorized to: {endpoint}",checkUpdateTitle:"Check for Updates",updateTitle:"Update Blocklets",noUpdate:"No Blocklets to update",add:"Add Blocklet",selectComponent:"Select Blocklet",selectRegistry:"Select Blocklet Store",selectRegistryTip:"You can switch blocklet store to see more components",selectInstance:"Select Instance",selectInstanceTip:"You can select an existing instance or create a new instance. Existing instances will use previously saved configuration and data",newInstance:"Create New Instance",noComponent:"No Blocklets",mountPoint:"What's the mount point?",mountPointTip:"If you set mount point to '/my-prefix', then all requests that begins with that mount point will be routed to the selected Blocklet",delete:"Delete Blocklet",deleteDescription:"This Blocklet will not be accessible after deletion. Confirm delete?",purchase:"Payment Required",tip:{stopBlocklet:"Please stop running Blocklet first",requiredBy:"The Blocklet is required by {name}"},choose:"Choose",upgrade:"Upgrade",addWithName:"Add Blocklet To {name}",relatedComponents:"Related Blocklets",required:"Required",noDependencies:"{name} doesn't have any dependencies",installed:"Installed",installingTip:"Installing component, please wait...",installingCanCloseWindowTip:"Installing component in the background, you can safely close this window",installSuccessTip:"Congratulations, the component was installed successfully!",missDownloadTokenTip:"Cannot add paid component without valid download token",purchaseComponentSecondCheckTip:"Please present your blocklet purchase NFT to continue",installComponentError:"There was an error installing the component, please retry again",downloadComponentError:"There was an error downloading the component, please retry again",addComponentTip:{introduction:"Welcome to the Add Component Wizard",isPurchase:"You need to Verify NFT before use <b>{name}</b> as a component;",belowInformation:"Below is the information for the component: ",verifyNFT:"Please select the Verify NFT method",config:"Please fill in the configuration of the component",environment:"Please fill in the environment of the component",fromUrl:"Add Blocklet From Url"},addNext:"Add {name}",upgradeNext:"Upgrade {name}",setting:"Settings"},router:{urlPath:"URL Path",noRunning:"The blocklet is not currently started. Unable to access through the following address!",securitySetting:"Security Setting",checkUrlAccessible:"Check the accessibility of the address",urlInaccessible:"It may be due to network reasons, the address is temporarily inaccessible",noAccessibleUrl:"No accessible URL",domainLockTooltip:"The system generated Domain cannot be edited.",urlLockTooltip:"The system generated URL Path cannot be edited.",showAllDomains:"Show all domains",showAllDIDs:"Show all DIDs",currentDomainTip:"You are accessing the current page through this domain"},export:{title:"Export Blocklet",name:"Bundle Name",nameTip:'e.g. "my-blocklet-name" or "@my-scope/blocklet-name"',result:"What's next",exportSource:"Export Source",success:"Blocklet successfully exported",resultTipStart:"With",resultTipEnd:"you can build and publish this blocklet within minutes",uploadedComponentTip:"Directly uploaded components cannot be exported:"},migrate:{title:"Migrate Application",scan:"Connect your DID Wallet to generate a key-pair for this application",confirm:"Review this operation on your DID Wallet",success:"Your application is successfully migrated, the page will be refreshed in {sec} seconds",intro:{l1:"Click here",l2:"to migrate your application to new version (changes are disabled before the migration completes)",l3:"1. The application DID will be fully controlled from your DID Wallet.",l4:"2. The application data will be migrated, and no further changes required.",l5:"3. The new application structure will give you more flexibly when change components.",l6:"4. Please do not change component mount points before component new version is out."},tip:{duplicate:"Find duplicate component {name}, please delete useless components and migrate again",running:"Please stop blocklet before migration"}},error:{isRunning:"Blocklet is running, please stop it first",isInProgress:"Blocklet is in progress, please wait for it to finish"},publish:{connectOrUpload:"Connect or Upload",projectSettings:"Project Settings",noStoreSelected:"Please select one of the existing stores or add a new store to continue",autoUploadTip:"Upload release to connected Blocklet Stores automatically after creation",possibleSameStoreTip:"Try resolving dependency blocklets to the same Blocklet Store before each uploading when possible",needProjectId:"Please create a project first",developerInfo:"Developer Information",branding:"Branding",brandingHelp:"More information about the blocklet will be displayed in the Store",download:"Download {name}",deleteStoreTip:"Are you sure you want to remove {name} from the connect Store list?",delete:"Delete {name}",copyInstallUrl:"Copy Install URL",installToThisServer:"Install to this server",createResource:"Create Resource",blockletStudio:"Blocklet Studio",tenantScope:"Tenant",addResource:"Add Blocklet",productTitle:"Product",versionTitle:"Versioning",imgTitle:"Images",resourceTitle:"Resources",resourceSelect:"Select resource from following blocklets",resourceUpload:"Upload resource from your disk (index.html is required in the archive)",blockletEmptyTip:"There aren’t any blocklets here",createBlockletTip:"You can create new blocklet through existing resources, components, and configuration in this application",createBlocklet:"New blocklet",reconnectStoreTip:"After reconnecting, a new developer will be bound. Are you sure you want to reconnect?",disconnectStoreTip:"After disconnecting, the blocklet will be removed from the store. Are you sure you want to disconnect?",componentNotRunning:"Blocklet {name} is not running, please start it first",allComponentsNotRunning:"Blocklets is not running, please start it first",releaseEmptyTip:"There aren't any releases here",resourceEmptyTip:"No available resources",viewLastRelease:"View last release",createReleaseTip:"You can create a release of the blocklet, along with release notes and resources, for other people to use",createRelease:"Create release",deleteReleaseTip:"The release cannot be recovered after deletion",createBlockletDid:"Create from DID Wallet",createReleaseSuccess:"Release created successfully",saveDraftSuccess:"Draft saved successfully",packTip:"Currently blocklets can be installed directly as applications. Components and application configurations will be automatically included in the Blocklet",resourceTip:"Currently, as a Resource Blocklet, it cannot be directly installed from the Store.",whyCantSeeInStore:"You need to publish the blocklet on connected store before you can see it in the store listing page",whyCantSeeResourceBlockletInStore:"Resource Blocklet are hidden from the store listing page by default",resourceChangedWarning:"You have modified the resource, please save it in time",install:"Install {name}",installResourceTip:"Install Url:",installResourceTip2:"If you want to see more tips, please visit",installResourceHelp:"Help Document",componentIncluded:"Included",componentForceRequired:"Required",steps:{branding:"Describe the basic information of your Blocklet. This information will be presented to users in the store.",introduction:"A clear introduction can effectively highlight your Blocklet. You can use Markdown syntax to write and preview it.",resources:"Please select the resources that need to be associated with the current Blocklet, as these resources will be installed along with the Blocklet.",blocklets:"Please select the Blocklets that need to be associated and installed when installing the current Blocklet.",version:"Set the release version and the change log."},connect:{title:"Create Blocklet DID",scan:"Scan the QR code below to generate Blocklet DID",confirm:"Confirm using DID Wallet",success:"Blocklet DID has been generated, please continue your operation"},deleteProject:{title:"Delete {name}",scan:"Scan the QR code below to delete {name}",confirm:"Confirm using DID Wallet",success:"Blocklet has been deleted, please continue your operation",description:"Are you sure you want to delete the Blocklet? Here are the issues you might encounter:",tip1:"The Blocklet cannot be recovered after deletion.",tip2:"You will no longer be able to publish new versions to the deleted Blocklet, which means that the Blocklet will not be updated in the Store anymore.",tip3:"Deleting the Blocklet will not affect its currently published version in the Store."},saveDraft:"Save Draft",releaseNote:"Release Note",errorTip:{noDid:"Blocklet DID is required",noFirstDid:"Please create Blocklet DID first",noTitle:"Blocklet Title is required",noVersion:"Blocklet Version is required",inValidVersion:"Invalid Blocklet Version",noResource:"Please select upload resource to be included in the blocklet",noDescription:"Blocklet Description is required",noNote:"Release Note is required"},uploadToStoreSuccess:"Blocklet upload to Store successfully, you need publish it in the Store",publishToStoreSuccess:"Blocklet published to Store successfully",connectStoreSuccess:"Blocklet Store connected successfully"}},dashboard:{nodeDid:"Node",ownerDid:"Owner",routingEngine:"Routing Engine",ownerNftURL:"Owner NFT",expirationLeft:"Expiration Left",startFromCrashTip:"Blocklet Server did not exit normally last time, please manually start the blocklets that needs to be run.",runtimeConfig:{blockletMaxMemoryLimit:"Blocklet Max Memory Limit",daemonMaxMemoryLimit:"Server Max Memory Limit",proxyMaxMemoryLimit:"Event Bus Max Memory Limit"}},store:{nameSort:"Name",popularSort:"Popularity",headerDescription:"Find and Install Your Blocklets",detail:{purchase:"Purchase {name}",open:"Open {name}",install:"Install {name}",upgrade:"Upgrade {name}",empty:"No introduction"},blockletRegistry:{changeFailed:"Change Blocklet Store Failed: ",addFailed:"Add Blocklet Store Failed: ",editFailed:"Edit Blocklet Store Failed: ",switchRegistry:"Switch Blocklet Store",addRegistry:"Add Blocklet Store",editRegistry:"Edit Blocklet Store",deleteRegistry:"Delete Blocklet Store",haveSameRegistry:"The same blocklet store exists",registryName:"Blocklet Store Name",registryUrl:"Blocklet Store URL",registryNameEmpty:"Blocklet Store name cannot be empty",registryUrlEmpty:"Blocklet store url cannot be empty",deleteDesc:'Confirm Delete blocklet store {name} ?<br/><span style="color: {color}">*After removing this blocklet store, you cannot update the apps installed from this blocklet store unless you add them again.</span>',confirmDesc:"Please input {name} to delete"},purchase:{title:"Purchase {name}",confirmed:"Your blocklet purchase NFT is verified",declined:"You do not provided valid the blocklet purchase NFT",waiting:"Waiting for purchase complete...",purchase:{title:"Purchase NFT",description:"Pay some token before installing this blocklet if you have not purchased this blocklet"},verify:{title:"Verify NFT",description:"Your NFT will be verified before installing this blocklet if you have purchased and hold the purchase NFT in your DID Wallet",auth:{title:"Purchase Credential Required",scan:"Connect DID Wallet to provide blocklet purchase NFT",confirm:"Review this operation on your DID Wallet",success:"Your purchase NFT is verified, and installing has started"}},auth:{title:"Purchase {name}",scan:"Scan following QRCode with your DID Wallet",confirm:"Confirm on your DID Wallet",success:"Purchase NFT sent to your DID Wallet"},launch:"Launch {name}",autoLaunch:"{name} successfully purchased, redirecting to launch page..."}},setting:{saveSuccess:"Settings Saved Successfully",unSavedTip:'There are unsaved changes, please click "Save Changes" to save them.',unSavedLeaveTip:"There are unsaved changes, are you sure to leave the page?",form:{name:"Name Your Server",nameRequired:"Server description is required",namePlaceholder:"Server Name",description:"Describe Your Server",descriptionHolder:"Server Description",descriptionRequired:"Server description is required",domain:"Your Server Domain Name",domainPlaceholder:"Server Domain Name",domainRequired:"Server domain is required",ipPlaceholder:"IP",ipRequired:"IP is required",registry:"Blocklet Store",registryPlaceholder:"Blocklet store to fetch blocklets",registryRequired:"Blocklet store is required ",registerUrl:"Blocklet Launcher URL",registerUrlPlaceholder:"Input the URL of your preferred Blocklet Launcher, you can use the official one safely",webWalletUrl:"DID Wallet URL",webWalletUrlPlaceholder:'Please input the URL of your hosted "DID Wallet", you can use the official one safely',nftDomainUrl:"NFT Domain URL",nftDomainUrlPlaceholder:'Please input the URL of your hosted "NFT Domain", you can use the official one safely',enableWelcomePage:"Enable welcome page",welcome:{switchLabel:"Welcome Page"},security:{switchLabel:"File System Isolation",switchTips:"After disabling this option, the file system of the Blocklet will no longer be in isolation, which may pose a risk of malicious software damaging the file system.",warningTips:"The file system isolation feature cannot take effect. Please upgrade the node.js version (current version is {version}) to v21.6.0 or higher."},upgrade:{title:"Upgrade Blocklet Server to {version}",description:"During the upgrade, your Blocklet Server will enter maintenance mode for a few minutes while the update is completed.",dialog:'Click on "confirm" to install the update. Blocklet Server will enter maintenance mode until the update is completed and return to production mode automatically.',confirm:"Upgrade",switchLabel:"Auto Update Check",enableBetaRelease:"Enable Beta Release",setup:"Preparing the upgrade",installing:"Installing Blocklet Server v{version}",restarting:"Restarting Blocklet Server",cleanup:"Migrating Blocklet Server data",verifying:"Verifying Blocklet Server v{version}",rollback:"Rollback Blocklet Server",complete:"Upgrade complete!",progress:"Upgrading {name}",check:"Check for Updates",latest:"You are running the latest version."},restart:{title:"Restart Blocklet Server",description:"During the restarting, your Blocklet Server will enter maintenance mode while the restart is completed.",dialog:'Click on "confirm" to restart. Blocklet Server will enter maintenance mode until the restart is completed and return to production mode automatically.',confirm:"Restart",setup:"Preparing the restart",verifying:"Verifying Blocklet Server",restarting:"Restarting Blocklet Server",cleanup:"Ensure everything is OK",rollback:"Cleanup the dirty state",complete:"Maintain complete!",progress:"Restarting {name}"},register:{titleAdded:"Added to Blocklet Launcher",title:"Add to Blocklet Launcher",description:"Once added, you can launch blocklets to this blocklet server from {url}.",descriptionOnAdded:"you can launch blocklets to this blocklet server from {url}.",btn:"Add",update:"Update",added:"Added",addSucceed:"Add succeed",updateSucceed:"Update succeed",detecting:"Detecting",timeout:"Detection timeout, please check if the blocklet launcher is started"},monitor:{diskThreshold:"Send alert when disk usage exceeds (%)",diskThresholdPlaceholder:"Please set the disk usage alert threshold"}},accessKey:{accessKeyId:"ACCESS KEY",lastUsed:"Last Used At",tip:"Please enter a name for this access key for future reference:",saveSecretTip:"This is the only time that your Access Secret key can be viewed and cannot be recovered. However, you can create new access keys at any time",iKnow:"I have copied and saved the Access Secret",showSecret:"Show Secret Access Key",hideSecret:"Hide Secret",title:"Delete Access Key",descriptionNoTime:"This will permanently delete the access key {key} with name {name}, which is (never used before)",description:"This will permanently delete access key {key} with name {name}, which is (last used on {time}, {timeAge})",confirm_desc:"Please input {name} to delete",remark:"Access Key Name",remarkInvalid:"Access Key Name is required"},webhook:{add:"Add Integration",delTitle:"Delete Integration",requiredError:"Please provide a valid {type}",confirm_desc:"Please input {name} to delete",test:"Test",description:"This will permanently delete integration with ID {id}",columns:{description:"ID",params:"Params",createdAt:"createdAt"}}},notification:{title:"Activities",empty:"No activities yet",viewAll:"View All",showRead:"Show Read",markAllAsRead:"Mark All as Read",markAsRead:"Mark As Read",proceed:"Proceed",checkingForUpdates:"Checking for updates...",installComponentError:"Not found uninstalled component {name}",installingComponent:"Installing component {name}",pushKit:{enable:"Enable PushKit notification",endpoint:"PushKit endpoint",endpointInvalid:"PushKit endpoint is invalid URL",testSuccess:"Test PushKit send successfully",testFailed:"Test PushKit send failed",testReceiver:"PushKit receiver",testSend:"Test push-kit send",inputTestReceiver:"Please input test receiver did",receiverRequired:"PushKit receiver is required",pushPath:"Api path for push-kit (default /api/push)",did:"PushKit Blocklet DID",customOptions:"Custom Options"},email:{enable:"Enable email notification",from:"Email sender",host:"SMTP server host",port:"SMTP server port",user:"SMTP server username",secure:"Enable secure connection",password:"SMTP server user password",fromRequired:"Email sender is required",fromInvalid:"Email sender is invalid",receiverRequired:"Email receiver is required",receiverInvalid:"Email receiver is invalid",hostRequired:"SMTP server host is required",hostInvalid:"SMTP server host is invalid",portRequired:"SMTP server port is required",portInvalid:"SMTP server port is invalid, port should be between 1 and 65535",userRequired:"SMTP server username is required",passwordRequired:"SMTP server user password is required",testSuccess:"Test email send successfully",testFailed:"Test email send failed",testReceiver:"Email receiver",testSendEmail:"Test email send",inputTestReceiver:"Please input test receiver email",disable:"Unsubscribe email notification",disableDescription:"After unsubscribe, you will no longer receive email notifications. To receive email notifications, you can subscribe it again on this page.",unsubscribe:"Unsubscribe email notification",unsubscribeDescription:"After unsubscribe, you will no longer receive any email notifications.",subscribe:"subscribe",subscribeDescription:"To receive email notifications, you can subscribe it again on settings page."},comingSoon:"More notification channel are under construction",unsubscribe:"Unsubscribe",unsubscribeSucceed:"Unsubscribe succeeded",unsubscribeFailed:"Unsubscribe failed",unsubscribeTokenRequired:"Unsubscribe token in required",unsubscribeTokenExpired:"Unsubscribe token is expired",unsubscribeTokenInvalid:"Unsubscribe token is invalid"},router:{routerSetting:"Domains & URLs",certSetting:"SSL Certificates",defaultSite:"Default",urlHelperText:"URL that do not start with HTTP/HTTPS are considered relative paths",empty:"Click on Actions to setup URL Mapping",healthy:{ok:"Blocklet or service is running",error:"Blocklet or service is not running or not installed"},service:{select:"Select Blocklet Services (Optional)",what:"Blocklet Services are pipelines executed against the request before redirecting to upstream blocklet"},nonProvider:{title:"Engine Change Warning",description:"If you change engine to none, your current page may not work properly because the previous engine will be stopped, are you sure to continue?",confirm:"I understand, continue"},validation:{urlRequired:"URL is required",redirectCodeRequired:"Redirect code is required",didRequired:"Blocklet is required",pathPrefixTooLong:"The URL Prefix cannot exceed {length} characters",pathPrefixCannotBeEmpty:"The URL Prefix cannot be empty",domainRequired:"Server domain is required",invalidUrl:"Please provide a valid URL",pathPrefixRequired:"URL prefix is required",redirectUrlRequired:"Redirect URL is required",rewriteUrlRequired:"Rewrite URL is required"},domain:{addSite:"Add Site",validate:{emptyTip:"Site domain cannot be empty",suffixTip:"Site domain cannot include {suffix}"},add:{title:"Add Domain Name",description:"Please provide a valid domain name",confirm:"Add",cancel:"Cancel",blocklet:"Select Blocklet",redirect:"Where to redirect the traffic?",port:"What port does your request handler need to listen to?",portTip:"This defaults to the main port of request handler, you can customize this",type:"Traffic Handler",component:"Select Component",pageGroup:"Page Group",pageGroupTip:"This component can render any group of pages listed above, leave empty to render all pages"},update:{title:"Update Site Domain",label:"Site Domain",description:"Please provide a valid site domain"},setup:{tipStart:"Add the DNS records for the domain",tipEnd:"as per the following guidelines",recordType:"Record Type",recordValue:"Record Value"},verify:{ok:"The domain resolution is normal",notResolved:"This domain neither resolved nor accessible, please check your DNS configuration"},https:{ok:"This domain has https enabled",bad:"This domain has not enabled https"},delete:{title:"Delete Site",description:'By confirming, you will delete your existing "{name}" site. Type "{name}" below and select Delete to complete the change, or select Cancel if you want to leave your site',confirm_desc:"Please input {name} to confirm"}},domainAlias:{nftDomain:"Automatic config with DID Domain",showTipHint:"How do I configure domain name resolution?",add:{title:"Add Additional Domain",domainDescription:"Please provide a valid domain name",forceTip:"Force add if domain name already exists",helperText:"If an HTTP or HTTPS URL is entered, it will be automatically converted into a domain name.",isDidDomainError:"This domain is a DID Domain. Please add it using the method for automatic domain configuration."},addCustomDomain:{name:"Custom Domain"},addDomainNFT:{showNFT:"Configure domain automatically",tips:"You can enter a domain purchased from DID Domain. If a DID Domain is detected, you must present the DID Domain NFT to continue.",connect:{title:"Please show your Domain NFT",scan:"Scan following QR code with DID Wallet to authorize to blocklet to use your domain",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"},buyTip:"DID Domain will do the domain name resolution automatically, no need to configure it manually, and the application will update the resolution record of the domain name automatically when needed. If your don't have DID Domain NFT yet, ",buy:"buy it now!"},delete:{title:"Delete",description:"After removing a domain alias, access to that alias may not be handled properly."}},domainSecurity:{title:"Domain Security",cors:{title:"Allowed CORS Domains",description:'Domain list that can send cross origin requests to {name}, comma separated, use "*" to allow anyone, which is not recommended',domainInvalid:"Please input a valid list of domain names"}},rule:{add:{title:"Add URL Mapping",confirm:"Add",pathPrefix:"What's the URL Prefix?",pathPrefixTip:"If you set prefix to '/my-prefix', then all requests that begins with that prefix will be routed to the configured blocklet",blocklet:"Which Blocklet will be handling those requests?",port:"Which port of the blocklet will be handling requests?",portTip:"This defaults to the main port of blocklet, if your blocklet listens on multiple ports, you can customize this",responseType:"Response Type",responseBody:"Response Content",responseBodyTip:"Paste your response content here, should not exceed 4096 characters",responseBodyRequired:"Response content can not be empty"},delete:{title:"Delete URL Mapping",description:'By confirming, you will delete your existing "{name}" URL Mapping. Type "{name}" below and select Delete to complete the change, or select Cancel if you want to leave your URL Mapping.',confirm_desc:"Please input {name} to delete",cancel:"Cancel"},update:{title:"Update URL Mapping",confirm:"Yes, Update",cancel:"Cancel"}},cert:{name:"Certificate Name",domain:"Domain Name",action:"Action",commonName:"Common Name",boundDomains:"Domains",source:"Source",expired:"Expired",leftDays:" days left",issuedOn:"Issued On",expiryOn:"Expiry On",fingerprintAlg:"Fingerprint Algorithm",validityPeriod:"Validity Period",matchedSites:"Matched Sites",upload:"Manual Upload",publicCertHelperText:"Public certificates can be downloaded",nonPublicCertHelperText:"Non-public certificates cannot be downloaded",protectedCertHelperText:"Protected certificates cannot be edited",unprotectedCertHelperText:"Unprotected certificates can be edited",issuing:"Certificate being generated",sourceTypes:{upload:"Manual Upload",lets_encrypt:"Let's Encrypt"},table:{nodata:"No data"},delete:{title:"Delete Certificate",description:"Confirm delete certificate of domain {domain}? Deleting it may affect related services. Please confirm it's safe before proceeding with the deletion.",confirm:"Confirm"},nginx:{title:"Update Certificate",titleAdd:"Add Certificate",pem:"SSL Certificate File",pemTip:'Please drop your server certificate file here, it should ends with ".pem" or ".crt"',key:"Private Key File",keyTip:'Please drop your server private key file here, it should ends with ".pem" or ".key"',confirm:"Save",cancel:"Cancel",invalidFile:"You have selected an invalid file",empty:"No file selected yet",source:"Source",sourceTypes:{upload:"Manual Upload",lets_encrypt:"Let's Encrypt"}},detail:{title:"Certificate Details"},genLetsEncryptCert:{title:"Generate Let's Encrypt certificate",dnsTip:"Please make sure the domain name has point to the current Blocklet Server.",description:"Adding a certificate will make the service more secure, and Blocklet Server will automatically renew the certificate before it expires."}},gateway:{reqLimit:{status:{true:"Enabled",false:"Disabled"},switchLabel:"Request Limit",rate:"Request Limit({rate} Request/Second)",ipHeaderLabel:"Customize client IP header(Optional)",ipHeaderDesc:"If the Blocklet Server is running behind some proxies, you can set the header of the client's real IP here. Optional, leave empty to use default."},cacheEnabled:{switchLabel:"Enable Gateway Cache"}}},noMatch:{desc:"We can't find the page that you're looking for"},health:{connectionErrorTip:"Blocklet Server can't connect to the network, please check if Blocklet Server has been stopped or there is a network issue",connectionRecoveryTip:"Blocklet Server connectivity has been recovered",connectionStoppedTip:"Blocklet Server has been stopped",wrongAccessUrlTip:"Blocklet Server access address is wrong, please use the correct access address"},debug:{title:"Your Blocklet Server is up and running!"},team:{invite:"Invite New",add:"Add New",member:{name:"Name",passport:"Passport",passports:"Passports",lastLogin:"Last Login",lastLoginIp:"Last Login IP",openProfile:"View Profile",source:"Register Source",source_derived:"Derived from oauth",source_wallet:"DID Wallet",filter:"Filter by",forbidLogin:"Forbid Login",forbidLoginDescription:"The user will not be able to connect to this application",allowLogin:"Allow Login",allowLoginDescription:"The user will be able to connect to this application",updateRole:"Update Role",deleteUser:"Delete User",deleteUserDescription:'Confirm delete user "{name}"?',revokePassport:"Revoke Passport",revokePassportDescription:"Once the passport is revoked, the passport holder can not use it to login again, are you sure to continue?",enablePassport:"Enable Passport",enablePassportDescription:"Once the revoked passport is enabled again, the passport holder can use it to login again, are you sure to continue?",passportPermissionTitle:"The passport has the following permissions:",search:"Search Member",hideBlockedMember:"Hide Unapproved Members",inviteDialog:{createInviteLink:"Generate Invitation Link",createSuccessTip:"The invitation link is successfully created, click to copy and send the link to the invited member, please note that this invitation link can not be reused and will expire on {expireDate}"},error:{passportEmpty:"Passport should not be empty"},connectedAccounts:"Connected Accounts",connections:"Connections",federated:"Federated",switch:{did:"Switch DID",profile:"Switch Profile",passport:"Switch Passport"},settings:{notification:"Notifications",email:"Send email to me when some events happen",wallet:"Send notification to my wallet when some events happen",phone:"Send text message to me when some events happen",webhook:"Webhooks",add:"Add new webhook",url:"Custom URL",slack:"Slack Webhook",tested:"Test message sent"},activeUserSessions:"Active User Sessions",forceLogout:"Force logout",forceLogoutDescription:"Confirm to force logout this user?"},transferNode:{name:"Transfer Ownership",inviteDialog:{title:"Transfer Blocklet Server",tips:{progress:"Transfer the server needs to be accepted by the receiver to complete the transfer operation, and once the receiver accepts it, you cannot log in to the server with the current passport again.",newOwnerPermissions:"The new Owner will have the right to manage all operations such as members, passports, and Blocklets.",revoke:'If you want to withdraw the transfer invitation, you can delete the invitation link in the "Team -> Members -> Inviting" page.'},createInviteLink:"Generate Invitation Link",createSuccessTip:"The invitation link is successfully created, click to copy and send the link to the invited member, please note that this invitation link can not be reused and will expire on {expireDate}"},delegateDialog:{title:"Authorize Required",scan:"Scan following QR code with DID Wallet to authorize server to transfer server ownership NFT.",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"}},transferApp:{name:"Transfer Ownership",transferDialog:{title:"Transfer Application",tips:{progress:"Transfer the application needs to be accepted by the receiver to complete the transfer operation, and once the receiver accepts it, you cannot log in to the application with the current passport again.",newOwnerPermissions:"The new Owner will have the right to manage all operations such as members, passports, and settings."},createTransferLink:"Generate Transfer Link",createSuccessTip1:'The transfer link is successfully created, the invitee must use <a style="color: rgb(29, 193, 199)" target="_blank" href="https://www.didwallet.io/">DID Wallet</a> to receive the app ownership',createSuccessTip2:"Please click to copy and send the link to the invited member, please note that this transfer link can not be reused and will expire on {expireDate}. Your transfer link will only be shown once and will not be viewable again after closing this dialog",createSuccessTip3:"After the transfer is successful, the application will automatically restart to make the changes take effect",link:"Transfer Link",iKnow:"I have copied and saved the link"},connectDialog:{title:"Authorize Required",scan:"Scan following QR code with DID Wallet to authorize application to transfer ownership.",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"},receiveDialog:{title:"Receive Application Ownership",scan:"Scan following QR code with DID Wallet to receive the application ownership.",confirm:"Confirm on your DID Wallet",success:"Receive Ownership Successfully"},successTitle:"You have become the new owner of this application",visitDashboard:"Visit Application Dashboard"},permission:{create:{title:"Create Permission",description:`Format: <action>_<resource>
261
- e.g. 'query_user', 'mutate_user'`},delete:{title:"Delete Permission",description:"Confirm delete {name}?"},error:{actionEmpty:"action cannot be empty",resourceEmpty:"resource cannot be empty",permissionTooLong:"permission cannot exceed {length} characters",descriptionTooLong:"description cannot exceed {length} characters"}},passport:{create:{title:"Create Passport",titleTip:"Title cannot be modified after created, recommended within 14 letters"},bind:{title:"Bind Permission",roleTip:"You will get all the permissions of the selected passport after binding",permissionTip:"You will get the selected permissions after binding",transferLeftTitle:"All permissions",transferRightTitle:"Granted permissions"},delete:{title:"Delete Passport",description:"The passports holds by user will lose all permissions after it is deleted. Are you sure to continue?"},error:{titleEmpty:"title cannot be empty",titleTooLong:"title cannot exceed {length} characters",descriptionEmpty:"description cannot be empty"},issuance:{pending:"Pending",create:{title:"Generate Link"},delete:{title:"Delete Receive Link",description:"Confirm delete {link}?"}},issue:"Issue Passport",disableIssuance:"Disable Passport Issuance",enableIssuance:"Enable Passport Issuance",disableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be disabled',enableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be enabled',trustedPassportIssuers:"Trusted Passport Issuers",trustedIssuers:"Trusted Issuers",trustedFactories:"Trusted NFT Collections",trustedFactoriesTip:"Manage trusted NFT Collections that can be used to exchange for a passport",searchFactoryAddress:"Search Collection DID",configFactories:"Config Trusted NFT Collections",configFactoriesTip:"Allow users to exchange NFTs for passport",factoryAddress:"NFT Collection Address",factory404:"NFT Collection not found",factoryAddressTip:"The NFT Collection address must exist on ArcBlock Main Chain",role:"Passport Type",ttl:"Passport Expire Policy",ttlNever:"Never Expire",ttlMint:"From NFT Purchase",ttlExchange:"From Passport Exchange",ttlNeverTip:"The passport will be valid until revoked",ttlMintTip:"The passport will be valid from the time the NFT is purchased until you specified ttl or revoke",ttlExchangeTip:"The passport will be valid from the time user successfully exchanged until you specified ttl or revoke",ttlTip:'"365d" means 365 days, you can also use "30 days" or "24h"',validUntil:"Valid until: {date}",externalPassport:"External Passport",notTrustedIssuerTip:"The passport cannot be used because the issuer is not on the list of trusted issuers",issuerDid:"Issuer DID",addNodeToTrustedIssuers:"Add current server as a trusted passport issuer",revoked:"Revoked",noPermission:"No permission to perform this operation",shouldNotDeleteCurrent:"You can not revoke your passport currently in use",mappingRule:"Mapping rule",defaultRule:"Default rule",search:"Search Passport",searchIssuerDid:"Search Issuer DID",issueBy:"Issue by {name}",configColor:"Config Passport Color",configColorTip:"Customize the color of the passport",color:"Passport Color",description:"Use this passport to connect {teamName} as {title}"},inviting:{link:"Invite Link",inviter:"Inviter",delete:{title:"Delete Invite Link",description:"Confirm delete {link}?"},disabledTip:"Invitation is not enabled"},whoCanAccess:{all:{title:"Accessible to all"},owner:{title:"Owner only"},invited:{title:"Invited user only"}}},launcher:{provider:"Provider",adminUrl:"URL"},session:{forbidLogin:"You have been blocked from access this server"},launchBlocklet:{appInfo:"Application Information",appInfoDesc:"Confirm the application information",author:"Application Author: {author}",setup:"Setup Blocklet",redirect:"Redirect",alreadyRunning:"Application {name} is already running on this Blocklet Server",alreadyInstalled:"Application {name} is already installed on this Blocklet Server",alreadyExists:"This application already exists, redirecting...",purchased:"Already Purchased",purchase:"Purchase",nextStep:"Next Step",agreement:"License Agreement",agreeAll:"Agree & Continue",installing:"Installing {appName} on {serverName}, it may take minutes to complete, please stay tuned...",redirecting:"{appName} is successfully installed, now starting...",start:"Launching",launch:"Install Blocklet to Server",launchSuccess:"{appName} is successfully launched!",installSuccess:"Blocklet is successfully installed and launched on {serverName}",openInRegistry:"View in Blocklet Store",subTitle:"Ready to install Blocklet {appName} on {serverName}",installingSubTitle:"{appName} installing",access:"Open the application",installRelatedComponents:"Install related Blocklets",viewApplication:"View Application",newVersion:"New Version",newVersionDesc:"The application already exists, but the current version can be upgraded",upgradeNow:"Upgrade Now",later:"Later",introduction:"Introduction",welcome:"Welcome to the Blocklet Launch Wizard",accept:"I agree to the Blocklet EULA",license:"Application License",next:"Agree to the EULA and continue",purchaseApp:"Purchase Blocklet",setupAppDesc:"Initialize your Blocklet",launched:"Complete",confirmInstall:"Confirm Installation",dialog:{title:"Become App Owner",nftFreeDescription:"Please present app space NFT and create app account to continue",nftPaidDescription:"Please present app space NFT and app purchase NFT to continue",freeDescription:"Please create app account to continue",paidDescription:"Please present app purchase NFT and create app account to continue",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully",authorizationTimeout:"Authorization timeout"},waiting:{verifying:"Verifying app meta...",downloading:"Downloading app bundle...",downloadingComponent:"Downloading {name}",extractingComponent:"Extracting {name}",extracting:"Extracting app bundle...",installing:"Installing app components...",installed:"Installed",starting:"Starting the app...",done:"Waiting for app ready..."},error:{loadMetaFailed:"Load app information failed",appMetaNotFound:"No information found for this app",downloadFailed:"Failed to download the app, please try again",installFailed:"Failed to install the app, please try again",startFailed:"Failed to start the app, please try again",launchFailed:"Failed to launch the app, please try again",installedButStopped:"The app is installed successfully, but cannot be started. You can start it manually after resolving blocking issues",installedButError:"The app is successfully installed, but failed to start",restoreFailed:"Failed to restore app, please try again",resourceBlocklet:"This blocklet cannot be launched directly, but you can add it into existing application."},steps:{introduction:"Introduction",installApp:"Install Application",purchaseSpace:"Purchase Space",prepareSpace:"Prepare Space"}},issuePassport:{title:"Receive Passport",description:"Use DID Wallet to receive the passport issued by {name}",dialog:{scan:"Use your DID Wallet to claim the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet",loginWithPassport:"Connect with this Passport",autoClose:"Page will auto close in {seconds}s",autoJump:"Page will auto jump in {seconds}s"}},lostPassport:{title:"Lost Passport",description:"The owner of {name} can scan the QR code to retrieve the passport, members please contact the owner to reissue the passport",dialog:{title:"Recover Passport",scan:"Use your DID Wallet to recover the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet"},return:"Connect with passport",selectPassport:"Select passport",receivePassport:"Receive passport"},invite:{message:"{name} invite you to be the {role} of {dapp}",success:"You have successfully joined {dapp}",receive:"Receive with",validUntil:"Valid until:",viewPermission:"View Permission",emptyPermission:"Empty Permission",open:"Open",description:{step1:"Download and setup your {wallet}",step2:"Click above button to receive passport",step3:"Login in {dapp} with received passport"},transferNFTDialog:{title:"Accept Blocklet Server {name}",scan:"Connect the Launcher to complete the reception of the Blocklet Server.",confirm:"Review this operation on your DID Wallet",success:"Connect successfully, waiting for confirmation of receiving the Server"}},receive:{dialog:{title:"Use your DID Wallet to receive passport",scan:"Connect your DID Wallet to receive passport",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"}},navigation:{navigation:"Navigation",access:"Access",members:"Members",passport:"Passport",analytics:"Analytics",dashboard:"Dashboard",studio:"Studio",blockletService:"Blocklet Service",actionFailed:"Action Failed",form:{title:"Title",titlePlaceholder:"Please input navigation title",titleTooLong:"Title length should small than {len}",icon:"Navigation Icon",iconPlaceholder:"Please input navigation icon",invalidIcon:"Icon is invalid",findMoreIcon:"Find more icons",link:"Link",linkPlaceholder:"Please input navigation link",invalidLink:"Link is invalid",component:"Component",componentPlaceholder:"Please select navigation component",role:"Role",rolePlaceholder:"Please select navigation role",locale:"Locale",localePlaceholder:"Please input locale need to add",localeExists:"{value} is already exists"},action:{add:"Add navigation",addSub:"Add sub navigation",edit:"Edit navigation",hide:"Hide navigation",show:"Show navigation",del:"Delete navigation",new:"New",noAddSub:"Uninstalled component can't add sub navigation",noEdit:"Uninstalled component can't edit",noDel:"Not allowed delete built-in navigation",reset:"Reset",restConfirmTitle:"Do you want to clear all custom navigation?",restConfirmDesc:"After clearing, the navigation will be restored to Blocklet's original default configuration.",resetSuccessful:"Reset successful"}},storage:{spaces:{tips:"Tips",label:"Enter DID Spaces Gateway",connected:{title:"Connected DID Spaces",tag:"Connected"},connectedWithName:"You have successfully connected to {name}",addedWithName:"You have successfully added {name}",connects:"Connect",reconnect:"Reconnect",addressCannotEmpty:"Address cannot be empty",addressNotValid:"{url} is not a valid address",authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"},provideNFT:{title:"Please show the DID Spaces NFT for {appName}",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} show DID space NFT",success:"Connected successfully"},backup:{title:"Backup",records:"Backup Records"},autoBackup:{title:"Auto backup",enabled:"Automatic backup is on",disabled:"Automatic backup is off"},autoCheckUpdate:{title:"Automatically check for new version notification",enabled:"Automatically check for new version is on",disabled:"Automatically check for new version is off"},backupSuccessfully:"Backup successfully",restore:"Restore",restoreSuccessfully:"Restore successfully",gateway:{title:"Gateway",select:"Select a DID Spaces",add:{title:"Add DID Spaces",label:"Enter the url of the DID Spaces",failed:"Add DID Spaces failed",invalidUrl:"Invalid DID Spaces gateway url",duplicate:"DID Space({name}) already exist"},delete:{title:"Delete gateway",succeeded:"Delete DID Spaces{name} Success",failed:"Delete gateway failed",failedForSelected:"Unable to delete a selected DID Spaces"},connect:{title:"Connect DID Spaces",add:"Connect to DID Spaces now",addTips:"You are not connected to any Space yet",switch:"Switch DID Spaces",switchTips:"You are connected to {name}",connected:"Connected"},switch:{failedForMismatchSpace:"Please connect to the correct Space{name}"},connectTo:"Connect to DID Spaces"},strategy:{title:"Backup Strategy",autoBackup:"Auto backup",backupNow:"Backup now",viewBackupFiles:"View backup files"},progress:{title:"Backup progress"},record:{title:"Backup records",emptyData:"No records"},notYet:"You don't have a backup in progress yet...",connect:{now:"Connect now",title:"Connect DID Spaces",provider:"Provide your DID Spaces to start backups",providerForStorage:"Please connect your DID Spaces",useWallet:"Connect with DID Wallet",useWalletReconnect:"Reconnect with DID Wallet",useSpaceGateway:"Connect using the DID Spaces gateway",useSpaceGatewayReconnect:"Reconnect using the DID Spaces gateway",switchToSpace:"Switch to Space",switchToSpaceSucceeded:"Switched to Space{name}",succeeded:"You have successfully connected to DID Spaces",disconnect:"disconnect"},disconnected:{tag:"Disconnected",reconnectNow:"Reconnect Now"}}},log:{lastDays:{1:"Last 1 Day",7:"Last 1 Week"}},oauth:{commonSettings:"Common Settings",save:"Save",saveSuccess:"Save successfully",saveFailed:"Save failed",issued:"Issued",thirdPartyLogin:"Third party login",alreadyBindOAuth:"Already bind third party login",alreadyBindWallet:"Already bind DID Wallet",auth0:{enable:"Enable Auth0 login",domain:"Domain",domainDescription:"Auth0's domain is required",clientId:"Client ID",clientIdDescription:"Auth0 OAuth application client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Auth0 OAuth application Client Secret is required"},github:{enable:"Enable Github login",clientId:"Client ID",clientIdDescription:"Github OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Github OAuth application Client Secret is required"},google:{enable:"Enable Google login",clientId:"Client ID",clientIdDescription:"Google OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Google OAuth application Client Secret is required"},apple:{enable:"Enable Apple login",teamId:"Team ID",teamIdDescription:"Apple OAuth application Team ID is required",serviceId:"Service ID",serviceIdDescription:"Apple OAuth application Service ID is required",keyId:"Key ID",keyIdDescription:"Apple OAuth application Key ID is required",authKey:"Auth Key",authKeyDescription:"Apple OAuth application Auth Key is required",bundleId:"Bundle ID",bundleIdDescription:"Apple OAuth application Bundle ID is required"},comingSoon:"More login methods are under construction",moreLogin:"More Login",federated:"Federated Login",oauth:"Third Party Login",runTest:"Test"},expiration:{mobile:{tips:{success:"{validity}",warning:"{validity}",error:"Expired"},loadFailed:"Retry!"},desktop:{tips:{success:"Subscription will expire after {validity}",warning:"Subscription will expire after {validity}",error:"Subscription Expired"},loading:"Load subscription...",loadFailed:"Failed to load subscription info, please retry!",nextInvoice:"Next Invoice: {date}"}},analytics:{trend:"Trends",detail:"Breakdown",traffic:{totalRequests:"Total Requests",validRequests:"Success Requests",failedRequests:"Failed Requests",uniqueVisitors:"Unique Visitors",uniqueFiles:"Unique URLs",uniqueReferrers:"Unique Referrers",uniqueNotFound:"Unique 404",uniqueStaticFiles:"Unique Static Files",logSize:"Log Size",bandwidth:"Bandwidth"}},federated:{inviteJoinFederatedLogin:"Invite to join federated login",inviteJoinFederatedLoginDescription:"Copy the following address and fill it in the application where you need to join to apply for federated login.",federatedLogin:"Federated login",joinFederatedLogin:"Join federated login",joinFederatedLoginDescription:"Please enter the federated login address provided by Master Blocklet to join the federated login",quitFederatedLogin:"Quit federated login",quitFederatedLoginDescription:"After quit federated login, normal login is always available",federatedJoinAppUrl:"Federated login join appUrl",federatedJoinAppUrlRequired:"Please input federated login join appUrl",failedToGetFederatedLoginAppUrl:"Failed to get federated login join appUrl",federatedJoinAppUrlInvalid:"Federated login appUrl is invalid",siteDetail:"Site detail",approveToJoinLogin:"Approve to join federated login",approve:"Enable login",revoke:"Disable login",enableFederatedLogin:"Enable federated login",disableFederatedLogin:"Disable federated login",enableFederatedLoginDescription:"After enable federated login, this site will be auto login",disableFederatedLoginDescription:"After disable federated login, this site will not be auto login",enableFederatedAutoLogin:"Enable automatic login",enableFederatedAutoLoginDescription:"After enable automatic login, if there is currently a unified login status, the site will automatically log in the identity of the federated login",disableFederatedAutoLogin:"Disable automatic login",disableFederatedAutoLoginDescription:"After the automatic login is turned off, the site will not automatically log in the user information of the unified login, and you can still choose to manually click to log in with the identity of the federated login",info:{appId:"APP DID",appPid:"Permanent ID",migratedFrom:"Also Known As",appName:"Blocklet name",appDescription:"Blocklet description",appUrl:"Blocklet url",appLogo:"Blocklet logo",did:"Blocklet DID",serverId:"Blocklet Server ID",serverVersion:"Blocklet Server version",version:"Blocklet version",appliedAt:"Apply at",status:"Status"},status:{pending:"Pending",approved:"Approved",rejected:"Rejected",revoked:"Revoked"},disbandFederatedLogin:"Disband federated login",disbandFederatedLoginDescription:"After disband federated login, all member site will quit federated login automatically"},optionsOrder:{1:"Option One",2:"Option Two"}},en={pageTitle:{login:"Login",dashboard:"Blocklet Dashboard",userCenter:"User Center",invite:"Invite",issuePassport:"Issue Passport",lostPassort:"Lost Passport"},auth:{noPermission:{title:"No Permission",description:"You are not the administrator of the blocklet"}},login:{reLogin:"Reconnect",description:"You must connect your DID Wallet to access {name}",already:"You are connected as",connectWallet:"Connect DID Wallet",closeWindow:"Close window",switchDid:{title:"Switch DID Wallet",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},switchSpecifiedDid:{title:"Switch DID Wallet",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},connect:{title:"Connect DID Wallet",scan:"Connect your DID Wallet to access this application",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"},accessLimit:{title:"Page access restricted ",description:"This page requires the following passports to access, please connect to the wallet to change or apply for the corresponding pass.",alreadyHavePassport:"Already have the passport",connectWithPassport:"Connect with this passport",buyPassport:"buyPassport"},connectWithPassport:"Connect with this passport",needManualClose:"Login success, if this window is not auto closed, please close it."},studio:{home:"Studio",preferences:"Preference Builder",localization:"Localization"},blocklet:{startApplication:"Start Application",startDescription:"Ready to start {name}",start:"Start",starting:"Starting...",open:"Open",suspended:"Application suspended",terminated:"Application terminated",suspendedCausedByExpired:"This application has been suspended due to payment expiration. Please renew before the {deadline} to resume. Failure to renew within the specified timeframe will result in the inability to renew or resume.",suspendedCausedByTerminated:"The application was terminated due to the cancellation of the subscription, which was canceled on {canceledAt}, and the data will be retained until {deadline}; before the data is deleted, you can back up the data to DID Spaces.",manageSubscription:"Manage Subscription"},setup:{steps:{connect:"Connect",didSpace:"DID Spaces",config:"Configuration",domain:"Domain",access:"Access Control",fuel:"Fuel",complete:"Complete",introduction:"Introduction",selectNodeDesc:"Select Blocklet Server",launchAppDesc:"Install Blocklet to Server",setupAppDesc:"Setup Blocklet",launched:"Complete"},connect:{title:"Connect to Application",scan:"Connect your DID Wallet to provide user profile and the blocklet's Owner privileges, then you can configure and launch the app.",confirm:"Confirm on your DID Wallet",success:"You are connected successfully"},domain:{addTitle:"Add a new domain name (Optional)",title:"Domain Setting",subTitle:"Set a custom domain for the application",label:"Please provide a valid domain name",tipStart:"Please make sure",tipEnd:"has point to the current Server",cannotResolve:"{domain} can not be resolved, please check your DNS configuration",checkingResolvable:"Checking domain status...",addingCert:"Generating certificate...",addingDomain:"Adding domain...",recordType:"Record Type",recordValue:"Record Value",skipStart:"You can",skip:"skip custom domain setting",skipEnd:"and use the default domain to access the application",genCertSuccess:"The {domain} certificate is issued successfully",genCertFailed:"Failed to issue certificate for {domain}: {message}",genCertFailedForNFTDomain:"Added NFT domain successfully, but failed to generate HTTPS certificate, please try again later",resolvedAddressError:"{domain} does not point to the same IP address as {curDomain}",invalidDNSReminder:"{error}. However, you can continue to add the domain, but automatic certificate generation is not available.",continueAdd:"Continue Adding"},didSpace:{title:"Configure DID Spaces",subTitle:"Complete the following connection process to store application data in DID Spaces",tips:"Tips",description:"Configure the DID Spaces instance address and store the application data in DID Spaces after a successful connection",label:"Please select the DID Spaces service",connected:"You have successfully connected to DID Spaces",connect:"Connect Now",reconnect:"Reconnect",addressCannotEmpty:"Address cannot be empty",addressNotValid:"{url} is not a valid address",authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"}},config:{title:"Configuration",subTitle:"Other configuration items (you will also need to set the following items)"},complete:{title:"Everything is Ready",failedTitle:"Failed to start Blocklet",backToServer:"Back to Blocklet Server",notRunning:"Blocklet failed to start on the first shot, please retry"},fuel:{title:"Fuel required to start",tipStart:"slot",tipEnd:" is required for this application to work properly, the fund are saved in the application wallet and can consumed for transaction gas purpose. You can withdraw your balance at any time when you no longer have the app running.",addressTitle:"Application Account",addressTip:"Fuel the application with DID Wallet",need:"Need",current:"Current",fuelApp:"Fuel the application"},title:"Setup",next:"Next",previous:"Previous",continue:"Continue",skip:"Skip",startNow:"Start Now",confirm:"Confirm",cancel:"Cancel"},user:{walletNotification:"DID Wallet notification",emailNotification:"Email notification",smsNotification:"SMS notification",addWebhook:"Add New Webhook"}},translations$9={en:be(merge$2(en$1,en)),ar:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ar-Bk-8E67P.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ar-BOQhQYjx.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},de:async()=>{const a=await Promise.all([__vitePreload(()=>import("./de-Cu2RTl6l.js"),[]).then(j=>j.default),__vitePreload(()=>import("./de-t1rC40NN.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},es:async()=>{const a=await Promise.all([__vitePreload(()=>import("./es-DDPFvDl4.js"),[]).then(j=>j.default),__vitePreload(()=>import("./es-DfbI4mbP.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},fr:async()=>{const a=await Promise.all([__vitePreload(()=>import("./fr-CnF6MLuI.js"),[]).then(j=>j.default),__vitePreload(()=>import("./fr-_U79lUBj.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},hi:async()=>{const a=await Promise.all([__vitePreload(()=>import("./hi-BXN3D_GN.js"),[]).then(j=>j.default),__vitePreload(()=>import("./hi-Di6UaHUZ.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},id:async()=>{const a=await Promise.all([__vitePreload(()=>import("./id-BEXmSSv4.js"),[]).then(j=>j.default),__vitePreload(()=>import("./id-CuP-z2YS.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},ja:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ja-nMk3xlFJ.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ja-CsYEjFuw.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},ko:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ko-CsOxrRrq.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ko-DwcGU2RJ.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},pt:async()=>{const a=await Promise.all([__vitePreload(()=>import("./pt-BViI9ESj.js"),[]).then(j=>j.default),__vitePreload(()=>import("./pt-DF-luAxv.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},ru:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ru-C_GgRAP9.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ru-DKnB6G3S.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},th:async()=>{const a=await Promise.all([__vitePreload(()=>import("./th-BmzrcHqy.js"),[]).then(j=>j.default),__vitePreload(()=>import("./th-Dna3ZHAu.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},vi:async()=>{const a=await Promise.all([__vitePreload(()=>import("./vi-NbF9HZkr.js"),[]).then(j=>j.default),__vitePreload(()=>import("./vi-tHyNmIs-.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},zh:async()=>{const a=await Promise.all([__vitePreload(()=>import("./zh-C1zF4vlg.js"),[]).then(j=>j.default),__vitePreload(()=>import("./zh-CZ75v_KR.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},"zh-TW":async()=>{const a=await Promise.all([__vitePreload(()=>import("./zh-tw-BXz91JiB.js"),[]).then(j=>j.default),__vitePreload(()=>import("./zh-tw-BDv-O3sb.js"),[]).then(j=>j.default)]);return be(merge$2(...a))}};function arrayEach$1(a,j){for(var _e=-1,et=a==null?0:a.length;++_e<et&&j(a[_e],_e,a)!==!1;);return a}var _arrayEach=arrayEach$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$1=_isPrototype,nativeKeys=_nativeKeys,objectProto$7=Object.prototype,hasOwnProperty$b=objectProto$7.hasOwnProperty;function baseKeys$2(a){if(!isPrototype$1(a))return nativeKeys(a);var j=[];for(var _e in Object(a))hasOwnProperty$b.call(a,_e)&&_e!="constructor"&&j.push(_e);return j}var _baseKeys=baseKeys$2,arrayLikeKeys=_arrayLikeKeys,baseKeys$1=_baseKeys,isArrayLike$3=isArrayLike_1;function keys$6(a){return isArrayLike$3(a)?arrayLikeKeys(a):baseKeys$1(a)}var keys_1=keys$6,copyObject$4=_copyObject,keys$5=keys_1;function baseAssign$1(a,j){return a&&copyObject$4(j,keys$5(j),a)}var _baseAssign=baseAssign$1,copyObject$3=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(a,j){return a&&copyObject$3(j,keysIn$2(j),a)}var _baseAssignIn=baseAssignIn$1;function arrayFilter$1(a,j){for(var _e=-1,et=a==null?0:a.length,tt=0,nt=[];++_e<et;){var rt=a[_e];j(rt,_e,a)&&(nt[tt++]=rt)}return nt}var _arrayFilter=arrayFilter$1;function stubArray$2(){return[]}var stubArray_1=stubArray$2,arrayFilter=_arrayFilter,stubArray$1=stubArray_1,objectProto$6=Object.prototype,propertyIsEnumerable=objectProto$6.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols$3=nativeGetSymbols$1?function(a){return a==null?[]:(a=Object(a),arrayFilter(nativeGetSymbols$1(a),function(j){return propertyIsEnumerable.call(a,j)}))}:stubArray$1,_getSymbols=getSymbols$3,copyObject$2=_copyObject,getSymbols$2=_getSymbols;function copySymbols$1(a,j){return copyObject$2(a,getSymbols$2(a),j)}var _copySymbols=copySymbols$1;function arrayPush$3(a,j){for(var _e=-1,et=j.length,tt=a.length;++_e<et;)a[tt+_e]=j[_e];return a}var _arrayPush=arrayPush$3,arrayPush$2=_arrayPush,getPrototype=_getPrototype,getSymbols$1=_getSymbols,stubArray=stubArray_1,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols?function(a){for(var j=[];a;)arrayPush$2(j,getSymbols$1(a)),a=getPrototype(a);return j}:stubArray,_getSymbolsIn=getSymbolsIn$2,copyObject$1=_copyObject,getSymbolsIn$1=_getSymbolsIn;function copySymbolsIn$1(a,j){return copyObject$1(a,getSymbolsIn$1(a),j)}var _copySymbolsIn=copySymbolsIn$1,arrayPush$1=_arrayPush,isArray$e=isArray_1;function baseGetAllKeys$2(a,j,_e){var et=j(a);return isArray$e(a)?et:arrayPush$1(et,_e(a))}var _baseGetAllKeys=baseGetAllKeys$2,baseGetAllKeys$1=_baseGetAllKeys,getSymbols=_getSymbols,keys$4=keys_1;function getAllKeys$2(a){return baseGetAllKeys$1(a,keys$4,getSymbols)}var _getAllKeys=getAllKeys$2,baseGetAllKeys=_baseGetAllKeys,getSymbolsIn=_getSymbolsIn,keysIn$1=keysIn_1;function getAllKeysIn$3(a){return baseGetAllKeys(a,keysIn$1,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$3,getNative$5=_getNative,root$7=_root,DataView$2=getNative$5(root$7,"DataView"),_DataView=DataView$2,getNative$4=_getNative,root$6=_root,Promise$2=getNative$4(root$6,"Promise"),_Promise=Promise$2,getNative$3=_getNative,root$5=_root,Set$3=getNative$3(root$5,"Set"),_Set=Set$3,getNative$2=_getNative,root$4=_root,WeakMap$4=getNative$2(root$4,"WeakMap"),_WeakMap=WeakMap$4,DataView$1=_DataView,Map$3=_Map,Promise$1=_Promise,Set$2=_Set,WeakMap$3=_WeakMap,baseGetTag$3=_baseGetTag,toSource$2=_toSource,mapTag$5="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$5="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource$2(DataView$1),mapCtorString=toSource$2(Map$3),promiseCtorString=toSource$2(Promise$1),setCtorString=toSource$2(Set$2),weakMapCtorString=toSource$2(WeakMap$3),getTag$5=baseGetTag$3;(DataView$1&&getTag$5(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$3&&getTag$5(new Map$3)!=mapTag$5||Promise$1&&getTag$5(Promise$1.resolve())!=promiseTag||Set$2&&getTag$5(new Set$2)!=setTag$5||WeakMap$3&&getTag$5(new WeakMap$3)!=weakMapTag$1)&&(getTag$5=function(a){var j=baseGetTag$3(a),_e=j==objectTag$2?a.constructor:void 0,et=_e?toSource$2(_e):"";if(et)switch(et){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$5;case promiseCtorString:return promiseTag;case setCtorString:return setTag$5;case weakMapCtorString:return weakMapTag$1}return j});var _getTag=getTag$5,objectProto$5=Object.prototype,hasOwnProperty$a=objectProto$5.hasOwnProperty;function initCloneArray$1(a){var j=a.length,_e=new a.constructor(j);return j&&typeof a[0]=="string"&&hasOwnProperty$a.call(a,"index")&&(_e.index=a.index,_e.input=a.input),_e}var _initCloneArray=initCloneArray$1,cloneArrayBuffer$1=_cloneArrayBuffer;function cloneDataView$1(a,j){var _e=j?cloneArrayBuffer$1(a.buffer):a.buffer;return new a.constructor(_e,a.byteOffset,a.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(a){var j=new a.constructor(a.source,reFlags.exec(a));return j.lastIndex=a.lastIndex,j}var _cloneRegExp=cloneRegExp$1,Symbol$6=_Symbol,symbolProto$3=Symbol$6?Symbol$6.prototype:void 0,symbolValueOf$1=symbolProto$3?symbolProto$3.valueOf:void 0;function cloneSymbol$1(a){return symbolValueOf$1?Object(symbolValueOf$1.call(a)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=_cloneSymbol,cloneTypedArray=_cloneTypedArray,boolTag$3="[object Boolean]",dateTag$2="[object Date]",mapTag$4="[object Map]",numberTag$3="[object Number]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$3="[object String]",symbolTag$4="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag$1(a,j,_e){var et=a.constructor;switch(j){case arrayBufferTag$2:return cloneArrayBuffer(a);case boolTag$3:case dateTag$2:return new et(+a);case dataViewTag$2:return cloneDataView(a,_e);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(a,_e);case mapTag$4:return new et;case numberTag$3:case stringTag$3:return new et(a);case regexpTag$2:return cloneRegExp(a);case setTag$4:return new et;case symbolTag$4:return cloneSymbol(a)}}var _initCloneByTag=initCloneByTag$1,getTag$4=_getTag,isObjectLike$8=isObjectLike_1,mapTag$3="[object Map]";function baseIsMap$1(a){return isObjectLike$8(a)&&getTag$4(a)==mapTag$3}var _baseIsMap=baseIsMap$1,baseIsMap=_baseIsMap,baseUnary$3=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap$1=nodeIsMap?baseUnary$3(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$3=_getTag,isObjectLike$7=isObjectLike_1,setTag$3="[object Set]";function baseIsSet$1(a){return isObjectLike$7(a)&&getTag$3(a)==setTag$3}var _baseIsSet=baseIsSet$1,baseIsSet=_baseIsSet,baseUnary$2=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet$1=nodeIsSet?baseUnary$2(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack$2=_Stack,arrayEach=_arrayEach,assignValue$2=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer=_cloneBufferExports,copyArray=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys$1=_getAllKeys,getAllKeysIn$2=_getAllKeysIn,getTag$2=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject=_initCloneObject,isArray$d=isArray_1,isBuffer$3=isBufferExports,isMap=isMap_1,isObject$f=isObject_1,isSet=isSet_1,keys$3=keys_1,keysIn=keysIn_1,CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag$2="[object Function]",genTag$2="[object GeneratorFunction]",mapTag$2="[object Map]",numberTag$2="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$2="[object String]",symbolTag$3="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$2]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$2]=cloneableTags[numberTag$2]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$2]=cloneableTags[stringTag$2]=cloneableTags[symbolTag$3]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag$2]=cloneableTags[weakMapTag]=!1;function baseClone$2(a,j,_e,et,tt,nt){var rt,it=j&CLONE_DEEP_FLAG$2,ot=j&CLONE_FLAT_FLAG$1,ct=j&CLONE_SYMBOLS_FLAG$2;if(_e&&(rt=tt?_e(a,et,tt,nt):_e(a)),rt!==void 0)return rt;if(!isObject$f(a))return a;var ut=isArray$d(a);if(ut){if(rt=initCloneArray(a),!it)return copyArray(a,rt)}else{var dt=getTag$2(a),pt=dt==funcTag$2||dt==genTag$2;if(isBuffer$3(a))return cloneBuffer(a,it);if(dt==objectTag$1||dt==argsTag$1||pt&&!tt){if(rt=ot||pt?{}:initCloneObject(a),!it)return ot?copySymbolsIn(a,baseAssignIn(rt,a)):copySymbols(a,baseAssign(rt,a))}else{if(!cloneableTags[dt])return tt?a:{};rt=initCloneByTag(a,dt,it)}}nt||(nt=new Stack$2);var mt=nt.get(a);if(mt)return mt;nt.set(a,rt),isSet(a)?a.forEach(function(Rt){rt.add(baseClone$2(Rt,j,_e,Rt,a,nt))}):isMap(a)&&a.forEach(function(Rt,xt){rt.set(xt,baseClone$2(Rt,j,_e,xt,a,nt))});var vt=ct?ot?getAllKeysIn$2:getAllKeys$1:ot?keysIn:keys$3,Et=ut?void 0:vt(a);return arrayEach(Et||a,function(Rt,xt){Et&&(xt=Rt,Rt=a[xt]),assignValue$2(rt,xt,baseClone$2(Rt,j,_e,xt,a,nt))}),rt}var _baseClone=baseClone$2;function last$2(a){var j=a==null?0:a.length;return j?a[j-1]:void 0}var last_1=last$2,baseGet$4=_baseGet,baseSlice=_baseSlice;function parent$1(a,j){return j.length<2?a:baseGet$4(a,baseSlice(j,0,-1))}var _parent=parent$1,castPath$6=_castPath,last$1=last_1,parent=_parent,toKey$6=_toKey;function baseUnset$1(a,j){return j=castPath$6(j,a),a=parent(a,j),a==null||delete a[toKey$6(last$1(j))]}var _baseUnset=baseUnset$1,isPlainObject$1=isPlainObject_1;function customOmitClone$1(a){return isPlainObject$1(a)?void 0:a}var _customOmitClone=customOmitClone$1,Symbol$5=_Symbol,isArguments$4=isArguments_1,isArray$c=isArray_1,spreadableSymbol=Symbol$5?Symbol$5.isConcatSpreadable:void 0;function isFlattenable$1(a){return isArray$c(a)||isArguments$4(a)||!!(spreadableSymbol&&a&&a[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush=_arrayPush,isFlattenable=_isFlattenable;function baseFlatten$3(a,j,_e,et,tt){var nt=-1,rt=a.length;for(_e||(_e=isFlattenable),tt||(tt=[]);++nt<rt;){var it=a[nt];j>0&&_e(it)?j>1?baseFlatten$3(it,j-1,_e,et,tt):arrayPush(tt,it):et||(tt[tt.length]=it)}return tt}var _baseFlatten=baseFlatten$3,baseFlatten$2=_baseFlatten;function flatten$2(a){var j=a==null?0:a.length;return j?baseFlatten$2(a,1):[]}var flatten_1=flatten$2;const flatten$3=getDefaultExportFromCjs$1(flatten_1);var flatten$1=flatten_1,overRest=_overRest,setToString=_setToString;function flatRest$2(a){return setToString(overRest(a,void 0,flatten$1),a+"")}var _flatRest=flatRest$2,arrayMap$4=_arrayMap,baseClone$1=_baseClone,baseUnset=_baseUnset,castPath$5=_castPath,copyObject=_copyObject,customOmitClone=_customOmitClone,flatRest$1=_flatRest,getAllKeysIn$1=_getAllKeysIn,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,omit=flatRest$1(function(a,j){var _e={};if(a==null)return _e;var et=!1;j=arrayMap$4(j,function(nt){return nt=castPath$5(nt,a),et||(et=nt.length>1),nt}),copyObject(a,getAllKeysIn$1(a),_e),et&&(_e=baseClone$1(_e,CLONE_DEEP_FLAG$1|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG$1,customOmitClone));for(var tt=j.length;tt--;)baseUnset(_e,j[tt]);return _e}),omit_1=omit;const omit$1=getDefaultExportFromCjs$1(omit_1);var assignValue$1=_assignValue,castPath$4=_castPath,isIndex$2=_isIndex,isObject$e=isObject_1,toKey$5=_toKey;function baseSet$2(a,j,_e,et){if(!isObject$e(a))return a;j=castPath$4(j,a);for(var tt=-1,nt=j.length,rt=nt-1,it=a;it!=null&&++tt<nt;){var ot=toKey$5(j[tt]),ct=_e;if(ot==="__proto__"||ot==="constructor"||ot==="prototype")return a;if(tt!=rt){var ut=it[ot];ct=et?et(ut,ot,it):void 0,ct===void 0&&(ct=isObject$e(ut)?ut:isIndex$2(j[tt+1])?[]:{})}assignValue$1(it,ot,ct),it=it[ot]}return a}var _baseSet=baseSet$2,baseGet$3=_baseGet,baseSet$1=_baseSet,castPath$3=_castPath;function basePickBy$2(a,j,_e){for(var et=-1,tt=j.length,nt={};++et<tt;){var rt=j[et],it=baseGet$3(a,rt);_e(it,rt)&&baseSet$1(nt,castPath$3(rt,a),it)}return nt}var _basePickBy=basePickBy$2;function baseHasIn$1(a,j){return a!=null&&j in Object(a)}var _baseHasIn=baseHasIn$1,castPath$2=_castPath,isArguments$3=isArguments_1,isArray$b=isArray_1,isIndex$1=_isIndex,isLength=isLength_1,toKey$4=_toKey;function hasPath$1(a,j,_e){j=castPath$2(j,a);for(var et=-1,tt=j.length,nt=!1;++et<tt;){var rt=toKey$4(j[et]);if(!(nt=a!=null&&_e(a,rt)))break;a=a[rt]}return nt||++et!=tt?nt:(tt=a==null?0:a.length,!!tt&&isLength(tt)&&isIndex$1(rt,tt)&&(isArray$b(a)||isArguments$3(a)))}var _hasPath=hasPath$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$2(a,j){return a!=null&&hasPath(a,j,baseHasIn)}var hasIn_1=hasIn$2,basePickBy$1=_basePickBy,hasIn$1=hasIn_1;function basePick$1(a,j){return basePickBy$1(a,j,function(_e,et){return hasIn$1(a,et)})}var _basePick=basePick$1,basePick=_basePick,flatRest=_flatRest,pick$1=flatRest(function(a,j){return a==null?{}:basePick(a,j)}),pick_1$1=pick$1;const pick$2=getDefaultExportFromCjs$1(pick_1$1);var baseClone=_baseClone,CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(a){return baseClone(a,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var cloneDeep_1=cloneDeep;const cloneDeep$1=getDefaultExportFromCjs$1(cloneDeep_1);function isUndefined$1(a){return a===void 0}var isUndefined_1=isUndefined$1;const isUndefined$2=getDefaultExportFromCjs$1(isUndefined_1);var baseMerge$1=_baseMerge,isObject$d=isObject_1;function customDefaultsMerge$1(a,j,_e,et,tt,nt){return isObject$d(a)&&isObject$d(j)&&(nt.set(j,a),baseMerge$1(a,j,void 0,customDefaultsMerge$1,nt),nt.delete(j)),a}var _customDefaultsMerge=customDefaultsMerge$1,baseMerge=_baseMerge,createAssigner=_createAssigner,mergeWith$1=createAssigner(function(a,j,_e,et){baseMerge(a,j,_e,et)}),mergeWith_1=mergeWith$1,apply$2=_apply,baseRest$3=_baseRest,customDefaultsMerge=_customDefaultsMerge,mergeWith=mergeWith_1,defaultsDeep=baseRest$3(function(a){return a.push(void 0,customDefaultsMerge),apply$2(mergeWith,void 0,a)}),defaultsDeep_1=defaultsDeep;const defaultsDeep$1=getDefaultExportFromCjs$1(defaultsDeep_1);var eventemitter3$3={exports:{}};(function(a){var j=Object.prototype.hasOwnProperty,_e="~";function et(){}Object.create&&(et.prototype=Object.create(null),new et().__proto__||(_e=!1));function tt(ot,ct,ut){this.fn=ot,this.context=ct,this.once=ut||!1}function nt(ot,ct,ut,dt,pt){if(typeof ut!="function")throw new TypeError("The listener must be a function");var mt=new tt(ut,dt||ot,pt),vt=_e?_e+ct:ct;return ot._events[vt]?ot._events[vt].fn?ot._events[vt]=[ot._events[vt],mt]:ot._events[vt].push(mt):(ot._events[vt]=mt,ot._eventsCount++),ot}function rt(ot,ct){--ot._eventsCount===0?ot._events=new et:delete ot._events[ct]}function it(){this._events=new et,this._eventsCount=0}it.prototype.eventNames=function(){var ct=[],ut,dt;if(this._eventsCount===0)return ct;for(dt in ut=this._events)j.call(ut,dt)&&ct.push(_e?dt.slice(1):dt);return Object.getOwnPropertySymbols?ct.concat(Object.getOwnPropertySymbols(ut)):ct},it.prototype.listeners=function(ct){var ut=_e?_e+ct:ct,dt=this._events[ut];if(!dt)return[];if(dt.fn)return[dt.fn];for(var pt=0,mt=dt.length,vt=new Array(mt);pt<mt;pt++)vt[pt]=dt[pt].fn;return vt},it.prototype.listenerCount=function(ct){var ut=_e?_e+ct:ct,dt=this._events[ut];return dt?dt.fn?1:dt.length:0},it.prototype.emit=function(ct,ut,dt,pt,mt,vt){var Et=_e?_e+ct:ct;if(!this._events[Et])return!1;var Rt=this._events[Et],xt=arguments.length,Pt,Dt;if(Rt.fn){switch(Rt.once&&this.removeListener(ct,Rt.fn,void 0,!0),xt){case 1:return Rt.fn.call(Rt.context),!0;case 2:return Rt.fn.call(Rt.context,ut),!0;case 3:return Rt.fn.call(Rt.context,ut,dt),!0;case 4:return Rt.fn.call(Rt.context,ut,dt,pt),!0;case 5:return Rt.fn.call(Rt.context,ut,dt,pt,mt),!0;case 6:return Rt.fn.call(Rt.context,ut,dt,pt,mt,vt),!0}for(Dt=1,Pt=new Array(xt-1);Dt<xt;Dt++)Pt[Dt-1]=arguments[Dt];Rt.fn.apply(Rt.context,Pt)}else{var Ft=Rt.length,zt;for(Dt=0;Dt<Ft;Dt++)switch(Rt[Dt].once&&this.removeListener(ct,Rt[Dt].fn,void 0,!0),xt){case 1:Rt[Dt].fn.call(Rt[Dt].context);break;case 2:Rt[Dt].fn.call(Rt[Dt].context,ut);break;case 3:Rt[Dt].fn.call(Rt[Dt].context,ut,dt);break;case 4:Rt[Dt].fn.call(Rt[Dt].context,ut,dt,pt);break;default:if(!Pt)for(zt=1,Pt=new Array(xt-1);zt<xt;zt++)Pt[zt-1]=arguments[zt];Rt[Dt].fn.apply(Rt[Dt].context,Pt)}}return!0},it.prototype.on=function(ct,ut,dt){return nt(this,ct,ut,dt,!1)},it.prototype.once=function(ct,ut,dt){return nt(this,ct,ut,dt,!0)},it.prototype.removeListener=function(ct,ut,dt,pt){var mt=_e?_e+ct:ct;if(!this._events[mt])return this;if(!ut)return rt(this,mt),this;var vt=this._events[mt];if(vt.fn)vt.fn===ut&&(!pt||vt.once)&&(!dt||vt.context===dt)&&rt(this,mt);else{for(var Et=0,Rt=[],xt=vt.length;Et<xt;Et++)(vt[Et].fn!==ut||pt&&!vt[Et].once||dt&&vt[Et].context!==dt)&&Rt.push(vt[Et]);Rt.length?this._events[mt]=Rt.length===1?Rt[0]:Rt:rt(this,mt)}return this},it.prototype.removeAllListeners=function(ct){var ut;return ct?(ut=_e?_e+ct:ct,this._events[ut]&&rt(this,ut)):(this._events=new et,this._eventsCount=0),this},it.prototype.off=it.prototype.removeListener,it.prototype.addListener=it.prototype.on,it.prefixed=_e,it.EventEmitter=it,a.exports=it})(eventemitter3$3);var eventemitter3Exports$3=eventemitter3$3.exports;const EventEmitter$6=getDefaultExportFromCjs$1(eventemitter3Exports$3);var pWaitFor$2={exports:{}},pTimeout$3={exports:{}};class TimeoutError extends Error{constructor(j){super(j),this.name="TimeoutError"}}const pTimeout$1=(a,j,_e,et)=>{let tt;const nt=new Promise((rt,it)=>{if(typeof j!="number"||j<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(j===1/0){rt(a);return}et={customTimers:{setTimeout,clearTimeout},...et},tt=et.customTimers.setTimeout.call(void 0,()=>{if(typeof _e=="function"){try{rt(_e())}catch(ut){it(ut)}return}const ot=typeof _e=="string"?_e:`Promise timed out after ${j} milliseconds`,ct=_e instanceof Error?_e:new TimeoutError(ot);typeof a.cancel=="function"&&a.cancel(),it(ct)},j),(async()=>{try{rt(await a)}catch(ot){it(ot)}finally{et.customTimers.clearTimeout.call(void 0,tt)}})()});return nt.clear=()=>{clearTimeout(tt),tt=void 0},nt};pTimeout$3.exports=pTimeout$1;pTimeout$3.exports.default=pTimeout$1;var TimeoutError_1=pTimeout$3.exports.TimeoutError=TimeoutError,pTimeoutExports=pTimeout$3.exports;const pTimeout$2=getDefaultExportFromCjs$1(pTimeoutExports),pTimeout=pTimeoutExports,pWaitFor=async(a,j)=>{j={interval:20,timeout:1/0,leadingCheck:!0,...j};let _e;const et=new Promise((tt,nt)=>{const rt=async()=>{try{const it=await a();if(typeof it!="boolean")throw new TypeError("Expected condition to return a boolean");it===!0?tt():_e=setTimeout(rt,j.interval)}catch(it){nt(it)}};j.leadingCheck?rt():_e=setTimeout(rt,j.interval)});if(j.timeout!==1/0)try{return await pTimeout(et,j.timeout)}catch(tt){throw _e&&clearTimeout(_e),tt}return et};pWaitFor$2.exports=pWaitFor;pWaitFor$2.exports.default=pWaitFor;var pWaitForExports=pWaitFor$2.exports;const pWaitFor$1=getDefaultExportFromCjs$1(pWaitForExports);var createUpdateEffect=function(a){return function(j,_e){var et=reactExports.useRef(!1);a(function(){return function(){et.current=!1}},[]),a(function(){if(!et.current)et.current=!0;else return j()},_e)}},extendStatics=function(a,j){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,et){_e.__proto__=et}||function(_e,et){for(var tt in et)Object.prototype.hasOwnProperty.call(et,tt)&&(_e[tt]=et[tt])},extendStatics(a,j)};function __extends(a,j){if(typeof j!="function"&&j!==null)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");extendStatics(a,j);function _e(){this.constructor=a}a.prototype=j===null?Object.create(j):(_e.prototype=j.prototype,new _e)}var __assign=function(){return __assign=Object.assign||function(j){for(var _e,et=1,tt=arguments.length;et<tt;et++){_e=arguments[et];for(var nt in _e)Object.prototype.hasOwnProperty.call(_e,nt)&&(j[nt]=_e[nt])}return j},__assign.apply(this,arguments)};function __rest(a,j){var _e={};for(var et in a)Object.prototype.hasOwnProperty.call(a,et)&&j.indexOf(et)<0&&(_e[et]=a[et]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,et=Object.getOwnPropertySymbols(a);tt<et.length;tt++)j.indexOf(et[tt])<0&&Object.prototype.propertyIsEnumerable.call(a,et[tt])&&(_e[et[tt]]=a[et[tt]]);return _e}function __decorate(a,j,_e,et){var tt=arguments.length,nt=tt<3?j:et===null?et=Object.getOwnPropertyDescriptor(j,_e):et,rt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")nt=Reflect.decorate(a,j,_e,et);else for(var it=a.length-1;it>=0;it--)(rt=a[it])&&(nt=(tt<3?rt(nt):tt>3?rt(j,_e,nt):rt(j,_e))||nt);return tt>3&&nt&&Object.defineProperty(j,_e,nt),nt}function __param(a,j){return function(_e,et){j(_e,et,a)}}function __esDecorate(a,j,_e,et,tt,nt){function rt(xt){if(xt!==void 0&&typeof xt!="function")throw new TypeError("Function expected");return xt}for(var it=et.kind,ot=it==="getter"?"get":it==="setter"?"set":"value",ct=!j&&a?et.static?a:a.prototype:null,ut=j||(ct?Object.getOwnPropertyDescriptor(ct,et.name):{}),dt,pt=!1,mt=_e.length-1;mt>=0;mt--){var vt={};for(var Et in et)vt[Et]=Et==="access"?{}:et[Et];for(var Et in et.access)vt.access[Et]=et.access[Et];vt.addInitializer=function(xt){if(pt)throw new TypeError("Cannot add initializers after decoration has completed");nt.push(rt(xt||null))};var Rt=(0,_e[mt])(it==="accessor"?{get:ut.get,set:ut.set}:ut[ot],vt);if(it==="accessor"){if(Rt===void 0)continue;if(Rt===null||typeof Rt!="object")throw new TypeError("Object expected");(dt=rt(Rt.get))&&(ut.get=dt),(dt=rt(Rt.set))&&(ut.set=dt),(dt=rt(Rt.init))&&tt.unshift(dt)}else(dt=rt(Rt))&&(it==="field"?tt.unshift(dt):ut[ot]=dt)}ct&&Object.defineProperty(ct,et.name,ut),pt=!0}function __runInitializers(a,j,_e){for(var et=arguments.length>2,tt=0;tt<j.length;tt++)_e=et?j[tt].call(a,_e):j[tt].call(a);return et?_e:void 0}function __propKey(a){return typeof a=="symbol"?a:"".concat(a)}function __setFunctionName(a,j,_e){return typeof j=="symbol"&&(j=j.description?"[".concat(j.description,"]"):""),Object.defineProperty(a,"name",{configurable:!0,value:_e?"".concat(_e," ",j):j})}function __metadata(a,j){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,j)}function __awaiter(a,j,_e,et){function tt(nt){return nt instanceof _e?nt:new _e(function(rt){rt(nt)})}return new(_e||(_e=Promise))(function(nt,rt){function it(ut){try{ct(et.next(ut))}catch(dt){rt(dt)}}function ot(ut){try{ct(et.throw(ut))}catch(dt){rt(dt)}}function ct(ut){ut.done?nt(ut.value):tt(ut.value).then(it,ot)}ct((et=et.apply(a,j||[])).next())})}function __generator(a,j){var _e={label:0,sent:function(){if(nt[0]&1)throw nt[1];return nt[1]},trys:[],ops:[]},et,tt,nt,rt;return rt={next:it(0),throw:it(1),return:it(2)},typeof Symbol=="function"&&(rt[Symbol.iterator]=function(){return this}),rt;function it(ct){return function(ut){return ot([ct,ut])}}function ot(ct){if(et)throw new TypeError("Generator is already executing.");for(;rt&&(rt=0,ct[0]&&(_e=0)),_e;)try{if(et=1,tt&&(nt=ct[0]&2?tt.return:ct[0]?tt.throw||((nt=tt.return)&&nt.call(tt),0):tt.next)&&!(nt=nt.call(tt,ct[1])).done)return nt;switch(tt=0,nt&&(ct=[ct[0]&2,nt.value]),ct[0]){case 0:case 1:nt=ct;break;case 4:return _e.label++,{value:ct[1],done:!1};case 5:_e.label++,tt=ct[1],ct=[0];continue;case 7:ct=_e.ops.pop(),_e.trys.pop();continue;default:if(nt=_e.trys,!(nt=nt.length>0&&nt[nt.length-1])&&(ct[0]===6||ct[0]===2)){_e=0;continue}if(ct[0]===3&&(!nt||ct[1]>nt[0]&&ct[1]<nt[3])){_e.label=ct[1];break}if(ct[0]===6&&_e.label<nt[1]){_e.label=nt[1],nt=ct;break}if(nt&&_e.label<nt[2]){_e.label=nt[2],_e.ops.push(ct);break}nt[2]&&_e.ops.pop(),_e.trys.pop();continue}ct=j.call(a,_e)}catch(ut){ct=[6,ut],tt=0}finally{et=nt=0}if(ct[0]&5)throw ct[1];return{value:ct[0]?ct[1]:void 0,done:!0}}}var __createBinding=Object.create?function(a,j,_e,et){et===void 0&&(et=_e);var tt=Object.getOwnPropertyDescriptor(j,_e);(!tt||("get"in tt?!j.__esModule:tt.writable||tt.configurable))&&(tt={enumerable:!0,get:function(){return j[_e]}}),Object.defineProperty(a,et,tt)}:function(a,j,_e,et){et===void 0&&(et=_e),a[et]=j[_e]};function __exportStar(a,j){for(var _e in a)_e!=="default"&&!Object.prototype.hasOwnProperty.call(j,_e)&&__createBinding(j,a,_e)}function __values(a){var j=typeof Symbol=="function"&&Symbol.iterator,_e=j&&a[j],et=0;if(_e)return _e.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&et>=a.length&&(a=void 0),{value:a&&a[et++],done:!a}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(a,j){var _e=typeof Symbol=="function"&&a[Symbol.iterator];if(!_e)return a;var et=_e.call(a),tt,nt=[],rt;try{for(;(j===void 0||j-- >0)&&!(tt=et.next()).done;)nt.push(tt.value)}catch(it){rt={error:it}}finally{try{tt&&!tt.done&&(_e=et.return)&&_e.call(et)}finally{if(rt)throw rt.error}}return nt}function __spread(){for(var a=[],j=0;j<arguments.length;j++)a=a.concat(__read(arguments[j]));return a}function __spreadArrays(){for(var a=0,j=0,_e=arguments.length;j<_e;j++)a+=arguments[j].length;for(var et=Array(a),tt=0,j=0;j<_e;j++)for(var nt=arguments[j],rt=0,it=nt.length;rt<it;rt++,tt++)et[tt]=nt[rt];return et}function __spreadArray(a,j,_e){if(_e||arguments.length===2)for(var et=0,tt=j.length,nt;et<tt;et++)(nt||!(et in j))&&(nt||(nt=Array.prototype.slice.call(j,0,et)),nt[et]=j[et]);return a.concat(nt||Array.prototype.slice.call(j))}function __await(a){return this instanceof __await?(this.v=a,this):new __await(a)}function __asyncGenerator(a,j,_e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var et=_e.apply(a,j||[]),tt,nt=[];return tt={},it("next"),it("throw"),it("return",rt),tt[Symbol.asyncIterator]=function(){return this},tt;function rt(mt){return function(vt){return Promise.resolve(vt).then(mt,dt)}}function it(mt,vt){et[mt]&&(tt[mt]=function(Et){return new Promise(function(Rt,xt){nt.push([mt,Et,Rt,xt])>1||ot(mt,Et)})},vt&&(tt[mt]=vt(tt[mt])))}function ot(mt,vt){try{ct(et[mt](vt))}catch(Et){pt(nt[0][3],Et)}}function ct(mt){mt.value instanceof __await?Promise.resolve(mt.value.v).then(ut,dt):pt(nt[0][2],mt)}function ut(mt){ot("next",mt)}function dt(mt){ot("throw",mt)}function pt(mt,vt){mt(vt),nt.shift(),nt.length&&ot(nt[0][0],nt[0][1])}}function __asyncDelegator(a){var j,_e;return j={},et("next"),et("throw",function(tt){throw tt}),et("return"),j[Symbol.iterator]=function(){return this},j;function et(tt,nt){j[tt]=a[tt]?function(rt){return(_e=!_e)?{value:__await(a[tt](rt)),done:!1}:nt?nt(rt):rt}:nt}}function __asyncValues(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var j=a[Symbol.asyncIterator],_e;return j?j.call(a):(a=typeof __values=="function"?__values(a):a[Symbol.iterator](),_e={},et("next"),et("throw"),et("return"),_e[Symbol.asyncIterator]=function(){return this},_e);function et(nt){_e[nt]=a[nt]&&function(rt){return new Promise(function(it,ot){rt=a[nt](rt),tt(it,ot,rt.done,rt.value)})}}function tt(nt,rt,it,ot){Promise.resolve(ot).then(function(ct){nt({value:ct,done:it})},rt)}}function __makeTemplateObject(a,j){return Object.defineProperty?Object.defineProperty(a,"raw",{value:j}):a.raw=j,a}var __setModuleDefault=Object.create?function(a,j){Object.defineProperty(a,"default",{enumerable:!0,value:j})}:function(a,j){a.default=j};function __importStar(a){if(a&&a.__esModule)return a;var j={};if(a!=null)for(var _e in a)_e!=="default"&&Object.prototype.hasOwnProperty.call(a,_e)&&__createBinding(j,a,_e);return __setModuleDefault(j,a),j}function __importDefault$b(a){return a&&a.__esModule?a:{default:a}}function __classPrivateFieldGet(a,j,_e,et){if(_e==="a"&&!et)throw new TypeError("Private accessor was defined without a getter");if(typeof j=="function"?a!==j||!et:!j.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return _e==="m"?et:_e==="a"?et.call(a):et?et.value:j.get(a)}function __classPrivateFieldSet(a,j,_e,et,tt){if(et==="m")throw new TypeError("Private method is not writable");if(et==="a"&&!tt)throw new TypeError("Private accessor was defined without a setter");if(typeof j=="function"?a!==j||!tt:!j.has(a))throw new TypeError("Cannot write private member to an object whose class did not declare it");return et==="a"?tt.call(a,_e):tt?tt.value=_e:j.set(a,_e),_e}function __classPrivateFieldIn(a,j){if(j===null||typeof j!="object"&&typeof j!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof a=="function"?j===a:a.has(j)}function __addDisposableResource(a,j,_e){if(j!=null){if(typeof j!="object"&&typeof j!="function")throw new TypeError("Object expected.");var et,tt;if(_e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");et=j[Symbol.asyncDispose]}if(et===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");et=j[Symbol.dispose],_e&&(tt=et)}if(typeof et!="function")throw new TypeError("Object not disposable.");tt&&(et=function(){try{tt.call(this)}catch(nt){return Promise.reject(nt)}}),a.stack.push({value:j,dispose:et,async:_e})}else _e&&a.stack.push({async:!0});return j}var _SuppressedError=typeof SuppressedError=="function"?SuppressedError:function(a,j,_e){var et=new Error(_e);return et.name="SuppressedError",et.error=a,et.suppressed=j,et};function __disposeResources(a){function j(et){a.error=a.hasError?new _SuppressedError(et,a.error,"An error was suppressed during disposal."):et,a.hasError=!0}function _e(){for(;a.stack.length;){var et=a.stack.pop();try{var tt=et.dispose&&et.dispose.call(et.value);if(et.async)return Promise.resolve(tt).then(_e,function(nt){return j(nt),_e()})}catch(nt){j(nt)}}if(a.hasError)throw a.error}return _e()}const tslib_es6={__extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator,__createBinding,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault:__importDefault$b,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources},tslib_es6$1=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource,get __assign(){return __assign},__asyncDelegator,__asyncGenerator,__asyncValues,__await,__awaiter,__classPrivateFieldGet,__classPrivateFieldIn,__classPrivateFieldSet,__createBinding,__decorate,__disposeResources,__esDecorate,__exportStar,__extends,__generator,__importDefault:__importDefault$b,__importStar,__makeTemplateObject,__metadata,__param,__propKey,__read,__rest,__runInitializers,__setFunctionName,__spread,__spreadArray,__spreadArrays,__values,default:tslib_es6},Symbol.toStringTag,{value:"Module"}));var isFunction$3=function(a){return typeof a=="function"},isString$3=function(a){return typeof a=="string"},isNumber$2=function(a){return typeof a=="number"},isUndef=function(a){return typeof a>"u"};function useMemoizedFn(a){var j=reactExports.useRef(a);j.current=reactExports.useMemo(function(){return a},[a]);var _e=reactExports.useRef();return _e.current||(_e.current=function(){for(var et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];return j.current.apply(this,et)}),_e.current}const useUpdateEffect=createUpdateEffect(reactExports.useEffect);var useAutoRunPlugin=function(a,j){var _e=j.manual,et=j.ready,tt=et===void 0?!0:et,nt=j.defaultParams,rt=nt===void 0?[]:nt,it=j.refreshDeps,ot=it===void 0?[]:it,ct=j.refreshDepsAction,ut=reactExports.useRef(!1);return ut.current=!1,useUpdateEffect(function(){!_e&&tt&&(ut.current=!0,a.run.apply(a,__spreadArray([],__read(rt),!1)))},[tt]),useUpdateEffect(function(){ut.current||_e||(ut.current=!0,ct?ct():a.refresh())},__spreadArray([],__read(ot),!1)),{onBefore:function(){if(!tt)return{stopNow:!0}}}};useAutoRunPlugin.onInit=function(a){var j=a.ready,_e=j===void 0?!0:j,et=a.manual;return{loading:!et&&_e}};function depsAreSame(a,j){if(a===j)return!0;for(var _e=0;_e<a.length;_e++)if(!Object.is(a[_e],j[_e]))return!1;return!0}function useCreation(a,j){var _e=reactExports.useRef({deps:j,obj:void 0,initialized:!1}).current;return(_e.initialized===!1||!depsAreSame(_e.deps,j))&&(_e.deps=j,_e.obj=a(),_e.initialized=!0),_e.obj}function useLatest(a){var j=reactExports.useRef(a);return j.current=a,j}var useUnmount=function(a){var j=useLatest(a);reactExports.useEffect(function(){return function(){j.current()}},[])},cache$2=new Map,setCache=function(a,j,_e){var et=cache$2.get(a);et!=null&&et.timer&&clearTimeout(et.timer);var tt=void 0;j>-1&&(tt=setTimeout(function(){cache$2.delete(a)},j)),cache$2.set(a,__assign(__assign({},_e),{timer:tt}))},getCache=function(a){return cache$2.get(a)},cachePromise=new Map,getCachePromise=function(a){return cachePromise.get(a)},setCachePromise=function(a,j){cachePromise.set(a,j),j.then(function(_e){return cachePromise.delete(a),_e}).catch(function(){cachePromise.delete(a)})},listeners$2={},trigger=function(a,j){listeners$2[a]&&listeners$2[a].forEach(function(_e){return _e(j)})},subscribe$2=function(a,j){return listeners$2[a]||(listeners$2[a]=[]),listeners$2[a].push(j),function(){var et=listeners$2[a].indexOf(j);listeners$2[a].splice(et,1)}},useCachePlugin=function(a,j){var _e=j.cacheKey,et=j.cacheTime,tt=et===void 0?5*60*1e3:et,nt=j.staleTime,rt=nt===void 0?0:nt,it=j.setCache,ot=j.getCache,ct=reactExports.useRef(),ut=reactExports.useRef(),dt=function(mt,vt){it?it(vt):setCache(mt,tt,vt),trigger(mt,vt.data)},pt=function(mt,vt){return vt===void 0&&(vt=[]),ot?ot(vt):getCache(mt)};return useCreation(function(){if(_e){var mt=pt(_e);mt&&Object.hasOwnProperty.call(mt,"data")&&(a.state.data=mt.data,a.state.params=mt.params,(rt===-1||new Date().getTime()-mt.time<=rt)&&(a.state.loading=!1)),ct.current=subscribe$2(_e,function(vt){a.setState({data:vt})})}},[]),useUnmount(function(){var mt;(mt=ct.current)===null||mt===void 0||mt.call(ct)}),_e?{onBefore:function(mt){var vt=pt(_e,mt);return!vt||!Object.hasOwnProperty.call(vt,"data")?{}:rt===-1||new Date().getTime()-vt.time<=rt?{loading:!1,data:vt==null?void 0:vt.data,error:void 0,returnNow:!0}:{data:vt==null?void 0:vt.data,error:void 0}},onRequest:function(mt,vt){var Et=getCachePromise(_e);return Et&&Et!==ut.current?{servicePromise:Et}:(Et=mt.apply(void 0,__spreadArray([],__read(vt),!1)),ut.current=Et,setCachePromise(_e,Et),{servicePromise:Et})},onSuccess:function(mt,vt){var Et;_e&&((Et=ct.current)===null||Et===void 0||Et.call(ct),dt(_e,{data:mt,params:vt,time:new Date().getTime()}),ct.current=subscribe$2(_e,function(Rt){a.setState({data:Rt})}))},onMutate:function(mt){var vt;_e&&((vt=ct.current)===null||vt===void 0||vt.call(ct),dt(_e,{data:mt,params:a.state.params,time:new Date().getTime()}),ct.current=subscribe$2(_e,function(Et){a.setState({data:Et})}))}}:{}},root$3=_root,now$1=function(){return root$3.Date.now()},now_1=now$1,isObject$c=isObject_1,now=now_1,toNumber$2=toNumber_1,FUNC_ERROR_TEXT$4="Expected a function",nativeMax=Math.max,nativeMin$1=Math.min;function debounce$2(a,j,_e){var et,tt,nt,rt,it,ot,ct=0,ut=!1,dt=!1,pt=!0;if(typeof a!="function")throw new TypeError(FUNC_ERROR_TEXT$4);j=toNumber$2(j)||0,isObject$c(_e)&&(ut=!!_e.leading,dt="maxWait"in _e,nt=dt?nativeMax(toNumber$2(_e.maxWait)||0,j):nt,pt="trailing"in _e?!!_e.trailing:pt);function mt(Nt){var Vt=et,nn=tt;return et=tt=void 0,ct=Nt,rt=a.apply(nn,Vt),rt}function vt(Nt){return ct=Nt,it=setTimeout(xt,j),ut?mt(Nt):rt}function Et(Nt){var Vt=Nt-ot,nn=Nt-ct,fn=j-Vt;return dt?nativeMin$1(fn,nt-nn):fn}function Rt(Nt){var Vt=Nt-ot,nn=Nt-ct;return ot===void 0||Vt>=j||Vt<0||dt&&nn>=nt}function xt(){var Nt=now();if(Rt(Nt))return Pt(Nt);it=setTimeout(xt,Et(Nt))}function Pt(Nt){return it=void 0,pt&&et?mt(Nt):(et=tt=void 0,rt)}function Dt(){it!==void 0&&clearTimeout(it),ct=0,et=ot=tt=it=void 0}function Ft(){return it===void 0?rt:Pt(now())}function zt(){var Nt=now(),Vt=Rt(Nt);if(et=arguments,tt=this,ot=Nt,Vt){if(it===void 0)return vt(ot);if(dt)return clearTimeout(it),it=setTimeout(xt,j),mt(ot)}return it===void 0&&(it=setTimeout(xt,j)),rt}return zt.cancel=Dt,zt.flush=Ft,zt}var debounce_1=debounce$2;const debounce$3=getDefaultExportFromCjs$1(debounce_1);var useDebouncePlugin=function(a,j){var _e=j.debounceWait,et=j.debounceLeading,tt=j.debounceTrailing,nt=j.debounceMaxWait,rt=reactExports.useRef(),it=reactExports.useMemo(function(){var ot={};return et!==void 0&&(ot.leading=et),tt!==void 0&&(ot.trailing=tt),nt!==void 0&&(ot.maxWait=nt),ot},[et,tt,nt]);return reactExports.useEffect(function(){if(_e){var ot=a.runAsync.bind(a);return rt.current=debounce$3(function(ct){ct()},_e,it),a.runAsync=function(){for(var ct=[],ut=0;ut<arguments.length;ut++)ct[ut]=arguments[ut];return new Promise(function(dt,pt){var mt;(mt=rt.current)===null||mt===void 0||mt.call(rt,function(){ot.apply(void 0,__spreadArray([],__read(ct),!1)).then(dt).catch(pt)})})},function(){var ct;(ct=rt.current)===null||ct===void 0||ct.cancel(),a.runAsync=ot}}},[_e,it]),_e?{onCancel:function(){var ot;(ot=rt.current)===null||ot===void 0||ot.cancel()}}:{}},useLoadingDelayPlugin=function(a,j){var _e=j.loadingDelay,et=j.ready,tt=reactExports.useRef();if(!_e)return{};var nt=function(){tt.current&&clearTimeout(tt.current)};return{onBefore:function(){return nt(),et!==!1&&(tt.current=setTimeout(function(){a.setState({loading:!0})},_e)),{loading:!1}},onFinally:function(){nt()},onCancel:function(){nt()}}},isBrowser$1=!!(typeof window<"u"&&window.document&&window.document.createElement);function isDocumentVisible(){return isBrowser$1?document.visibilityState!=="hidden":!0}var listeners$1=[];function subscribe$1(a){return listeners$1.push(a),function(){var _e=listeners$1.indexOf(a);listeners$1.splice(_e,1)}}if(isBrowser$1){var revalidate$1=function(){if(isDocumentVisible())for(var a=0;a<listeners$1.length;a++){var j=listeners$1[a];j()}};window.addEventListener("visibilitychange",revalidate$1,!1)}var usePollingPlugin=function(a,j){var _e=j.pollingInterval,et=j.pollingWhenHidden,tt=et===void 0?!0:et,nt=j.pollingErrorRetryCount,rt=nt===void 0?-1:nt,it=reactExports.useRef(),ot=reactExports.useRef(),ct=reactExports.useRef(0),ut=function(){var dt;it.current&&clearTimeout(it.current),(dt=ot.current)===null||dt===void 0||dt.call(ot)};return useUpdateEffect(function(){_e||ut()},[_e]),_e?{onBefore:function(){ut()},onError:function(){ct.current+=1},onSuccess:function(){ct.current=0},onFinally:function(){rt===-1||rt!==-1&&ct.current<=rt?it.current=setTimeout(function(){!tt&&!isDocumentVisible()?ot.current=subscribe$1(function(){a.refresh()}):a.refresh()},_e):ct.current=0},onCancel:function(){ut()}}:{}};function limit(a,j){var _e=!1;return function(){for(var et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];_e||(_e=!0,a.apply(void 0,__spreadArray([],__read(et),!1)),setTimeout(function(){_e=!1},j))}}function isOnline(){return isBrowser$1&&typeof navigator.onLine<"u"?navigator.onLine:!0}var listeners=[];function subscribe(a){return listeners.push(a),function(){var _e=listeners.indexOf(a);_e>-1&&listeners.splice(_e,1)}}if(isBrowser$1){var revalidate=function(){if(!(!isDocumentVisible()||!isOnline()))for(var a=0;a<listeners.length;a++){var j=listeners[a];j()}};window.addEventListener("visibilitychange",revalidate,!1),window.addEventListener("focus",revalidate,!1)}var useRefreshOnWindowFocusPlugin=function(a,j){var _e=j.refreshOnWindowFocus,et=j.focusTimespan,tt=et===void 0?5e3:et,nt=reactExports.useRef(),rt=function(){var it;(it=nt.current)===null||it===void 0||it.call(nt)};return reactExports.useEffect(function(){if(_e){var it=limit(a.refresh.bind(a),tt);nt.current=subscribe(function(){it()})}return function(){rt()}},[_e,tt]),useUnmount(function(){rt()}),{}},useRetryPlugin=function(a,j){var _e=j.retryInterval,et=j.retryCount,tt=reactExports.useRef(),nt=reactExports.useRef(0),rt=reactExports.useRef(!1);return et?{onBefore:function(){rt.current||(nt.current=0),rt.current=!1,tt.current&&clearTimeout(tt.current)},onSuccess:function(){nt.current=0},onError:function(){if(nt.current+=1,et===-1||nt.current<=et){var it=_e??Math.min(1e3*Math.pow(2,nt.current),3e4);tt.current=setTimeout(function(){rt.current=!0,a.refresh()},it)}else nt.current=0},onCancel:function(){nt.current=0,tt.current&&clearTimeout(tt.current)}}:{}},debounce$1=debounce_1,isObject$b=isObject_1,FUNC_ERROR_TEXT$3="Expected a function";function throttle$3(a,j,_e){var et=!0,tt=!0;if(typeof a!="function")throw new TypeError(FUNC_ERROR_TEXT$3);return isObject$b(_e)&&(et="leading"in _e?!!_e.leading:et,tt="trailing"in _e?!!_e.trailing:tt),debounce$1(a,j,{leading:et,maxWait:j,trailing:tt})}var throttle_1=throttle$3;const throttle$4=getDefaultExportFromCjs$1(throttle_1);var useThrottlePlugin=function(a,j){var _e=j.throttleWait,et=j.throttleLeading,tt=j.throttleTrailing,nt=reactExports.useRef(),rt={};return et!==void 0&&(rt.leading=et),tt!==void 0&&(rt.trailing=tt),reactExports.useEffect(function(){if(_e){var it=a.runAsync.bind(a);return nt.current=throttle$4(function(ot){ot()},_e,rt),a.runAsync=function(){for(var ot=[],ct=0;ct<arguments.length;ct++)ot[ct]=arguments[ct];return new Promise(function(ut,dt){var pt;(pt=nt.current)===null||pt===void 0||pt.call(nt,function(){it.apply(void 0,__spreadArray([],__read(ot),!1)).then(ut).catch(dt)})})},function(){var ot;a.runAsync=it,(ot=nt.current)===null||ot===void 0||ot.cancel()}}},[_e,et,tt]),_e?{onCancel:function(){var it;(it=nt.current)===null||it===void 0||it.cancel()}}:{}},useMount=function(a){reactExports.useEffect(function(){a==null||a()},[])},useUpdate=function(){var a=__read(reactExports.useState({}),2),j=a[1];return reactExports.useCallback(function(){return j({})},[])},Fetch=function(){function a(j,_e,et,tt){tt===void 0&&(tt={}),this.serviceRef=j,this.options=_e,this.subscribe=et,this.initState=tt,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=__assign(__assign(__assign({},this.state),{loading:!_e.manual}),tt)}return a.prototype.setState=function(j){j===void 0&&(j={}),this.state=__assign(__assign({},this.state),j),this.subscribe()},a.prototype.runPluginHandler=function(j){for(var _e=[],et=1;et<arguments.length;et++)_e[et-1]=arguments[et];var tt=this.pluginImpls.map(function(nt){var rt;return(rt=nt[j])===null||rt===void 0?void 0:rt.call.apply(rt,__spreadArray([nt],__read(_e),!1))}).filter(Boolean);return Object.assign.apply(Object,__spreadArray([{}],__read(tt),!1))},a.prototype.runAsync=function(){for(var j,_e,et,tt,nt,rt,it,ot,ct,ut,dt=[],pt=0;pt<arguments.length;pt++)dt[pt]=arguments[pt];return __awaiter(this,void 0,void 0,function(){var mt,vt,Et,Rt,xt,Pt,Dt,Ft,zt,Nt,Vt;return __generator(this,function(nn){switch(nn.label){case 0:if(this.count+=1,mt=this.count,vt=this.runPluginHandler("onBefore",dt),Et=vt.stopNow,Rt=Et===void 0?!1:Et,xt=vt.returnNow,Pt=xt===void 0?!1:xt,Dt=__rest(vt,["stopNow","returnNow"]),Rt)return[2,new Promise(function(){})];if(this.setState(__assign({loading:!0,params:dt},Dt)),Pt)return[2,Promise.resolve(Dt.data)];(_e=(j=this.options).onBefore)===null||_e===void 0||_e.call(j,dt),nn.label=1;case 1:return nn.trys.push([1,3,,4]),Ft=this.runPluginHandler("onRequest",this.serviceRef.current,dt).servicePromise,Ft||(Ft=(Vt=this.serviceRef).current.apply(Vt,__spreadArray([],__read(dt),!1))),[4,Ft];case 2:return zt=nn.sent(),mt!==this.count?[2,new Promise(function(){})]:(this.setState({data:zt,error:void 0,loading:!1}),(tt=(et=this.options).onSuccess)===null||tt===void 0||tt.call(et,zt,dt),this.runPluginHandler("onSuccess",zt,dt),(rt=(nt=this.options).onFinally)===null||rt===void 0||rt.call(nt,dt,zt,void 0),mt===this.count&&this.runPluginHandler("onFinally",dt,zt,void 0),[2,zt]);case 3:if(Nt=nn.sent(),mt!==this.count)return[2,new Promise(function(){})];throw this.setState({error:Nt,loading:!1}),(ot=(it=this.options).onError)===null||ot===void 0||ot.call(it,Nt,dt),this.runPluginHandler("onError",Nt,dt),(ut=(ct=this.options).onFinally)===null||ut===void 0||ut.call(ct,dt,void 0,Nt),mt===this.count&&this.runPluginHandler("onFinally",dt,void 0,Nt),Nt;case 4:return[2]}})})},a.prototype.run=function(){for(var j=this,_e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];this.runAsync.apply(this,__spreadArray([],__read(_e),!1)).catch(function(tt){j.options.onError||console.error(tt)})},a.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},a.prototype.refresh=function(){this.run.apply(this,__spreadArray([],__read(this.state.params||[]),!1))},a.prototype.refreshAsync=function(){return this.runAsync.apply(this,__spreadArray([],__read(this.state.params||[]),!1))},a.prototype.mutate=function(j){var _e=isFunction$3(j)?j(this.state.data):j;this.runPluginHandler("onMutate",_e),this.setState({data:_e})},a}();function useRequestImplement(a,j,_e){j===void 0&&(j={}),_e===void 0&&(_e=[]);var et=j.manual,tt=et===void 0?!1:et,nt=j.ready,rt=nt===void 0?!0:nt,it=__rest(j,["manual","ready"]),ot=__assign({manual:tt,ready:rt},it),ct=useLatest(a),ut=useUpdate(),dt=useCreation(function(){var pt=_e.map(function(mt){var vt;return(vt=mt==null?void 0:mt.onInit)===null||vt===void 0?void 0:vt.call(mt,ot)}).filter(Boolean);return new Fetch(ct,ot,ut,Object.assign.apply(Object,__spreadArray([{}],__read(pt),!1)))},[]);return dt.options=ot,dt.pluginImpls=_e.map(function(pt){return pt(dt,ot)}),useMount(function(){if(!tt&&rt){var pt=dt.state.params||j.defaultParams||[];dt.run.apply(dt,__spreadArray([],__read(pt),!1))}}),useUnmount(function(){dt.cancel()}),{loading:dt.state.loading,data:dt.state.data,error:dt.state.error,params:dt.state.params||[],cancel:useMemoizedFn(dt.cancel.bind(dt)),refresh:useMemoizedFn(dt.refresh.bind(dt)),refreshAsync:useMemoizedFn(dt.refreshAsync.bind(dt)),run:useMemoizedFn(dt.run.bind(dt)),runAsync:useMemoizedFn(dt.runAsync.bind(dt)),mutate:useMemoizedFn(dt.mutate.bind(dt))}}function useRequest(a,j,_e){return useRequestImplement(a,j,__spreadArray(__spreadArray([],__read([]),!1),[useDebouncePlugin,useLoadingDelayPlugin,usePollingPlugin,useRefreshOnWindowFocusPlugin,useThrottlePlugin,useAutoRunPlugin,useCachePlugin,useRetryPlugin],!1))}function isAsyncGenerator(a){return isFunction$3(a[Symbol.asyncIterator])}function useAsyncEffect(a,j){reactExports.useEffect(function(){var _e=a(),et=!1;function tt(){return __awaiter(this,void 0,void 0,function(){var nt;return __generator(this,function(rt){switch(rt.label){case 0:if(!isAsyncGenerator(_e))return[3,4];rt.label=1;case 1:return[4,_e.next()];case 2:return nt=rt.sent(),nt.done||et?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,_e];case 5:rt.sent(),rt.label=6;case 6:return[2]}})})}return tt(),function(){et=!0}},j)}function getTargetElement(a,j){if(isBrowser$1){if(!a)return j;var _e;return isFunction$3(a)?_e=a():"current"in a?_e=a.current:_e=a,_e}}var createEffectWithTarget=function(a){var j=function(_e,et,tt){var nt=reactExports.useRef(!1),rt=reactExports.useRef([]),it=reactExports.useRef([]),ot=reactExports.useRef();a(function(){var ct,ut=Array.isArray(tt)?tt:[tt],dt=ut.map(function(pt){return getTargetElement(pt)});if(!nt.current){nt.current=!0,rt.current=dt,it.current=et,ot.current=_e();return}(dt.length!==rt.current.length||!depsAreSame(rt.current,dt)||!depsAreSame(it.current,et))&&((ct=ot.current)===null||ct===void 0||ct.call(ot),rt.current=dt,it.current=et,ot.current=_e())}),useUnmount(function(){var ct;(ct=ot.current)===null||ct===void 0||ct.call(ot),nt.current=!1})};return j},useEffectWithTarget$1=createEffectWithTarget(reactExports.useEffect);function isNodeOrWeb(){var a=(typeof global$2>"u"?"undefined":typeof global$2)=="object"&&global$2&&global$2.Object===Object&&global$2,j=typeof self=="object"&&self&&self.Object===Object&&self;return a||j}isNodeOrWeb()||(global$2.Date=Date);function useDebounceFn(a,j){var _e,et=useLatest(a),tt=(_e=j==null?void 0:j.wait)!==null&&_e!==void 0?_e:1e3,nt=reactExports.useMemo(function(){return debounce$3(function(){for(var rt=[],it=0;it<arguments.length;it++)rt[it]=arguments[it];return et.current.apply(et,__spreadArray([],__read(rt),!1))},tt,j)},[]);return useUnmount(function(){nt.cancel()}),{run:nt,cancel:nt.cancel,flush:nt.flush}}function useDebounce(a,j){var _e=__read(reactExports.useState(a),2),et=_e[0],tt=_e[1],nt=useDebounceFn(function(){tt(a)},j).run;return reactExports.useEffect(function(){nt()},[a]),et}function useEventListener(a,j,_e){_e===void 0&&(_e={});var et=_e.enable,tt=et===void 0?!0:et,nt=useLatest(j);useEffectWithTarget$1(function(){if(tt){var rt=getTargetElement(_e.target,window);if(rt!=null&&rt.addEventListener){var it=function(ot){return nt.current(ot)};return rt.addEventListener(a,it,{capture:_e.capture,once:_e.once,passive:_e.passive}),function(){rt.removeEventListener(a,it,{capture:_e.capture})}}}},[a,_e.capture,_e.once,_e.passive,tt],_e.target)}var useInterval$1=function(a,j,_e){_e===void 0&&(_e={});var et=useMemoizedFn(a),tt=reactExports.useRef(null),nt=reactExports.useCallback(function(){tt.current&&clearInterval(tt.current)},[]);return reactExports.useEffect(function(){if(!(!isNumber$2(j)||j<0))return _e.immediate&&et(),tt.current=setInterval(et,j),nt},[j,_e.immediate]),nt},SYNC_STORAGE_EVENT_NAME="AHOOKS_SYNC_STORAGE_EVENT_NAME";function createUseStorageState(a){function j(_e,et){et===void 0&&(et={});var tt,nt=et.listenStorageChange,rt=nt===void 0?!1:nt,it=et.onError,ot=it===void 0?function(Pt){console.error(Pt)}:it;try{tt=a()}catch(Pt){ot(Pt)}var ct=function(Pt){return et.serializer?et.serializer(Pt):JSON.stringify(Pt)},ut=function(Pt){return et.deserializer?et.deserializer(Pt):JSON.parse(Pt)};function dt(){try{var Pt=tt==null?void 0:tt.getItem(_e);if(Pt)return ut(Pt)}catch(Dt){ot(Dt)}return isFunction$3(et.defaultValue)?et.defaultValue():et.defaultValue}var pt=__read(reactExports.useState(dt),2),mt=pt[0],vt=pt[1];useUpdateEffect(function(){vt(dt())},[_e]);var Et=function(Pt){var Dt=isFunction$3(Pt)?Pt(mt):Pt;rt||vt(Dt);try{var Ft=void 0,zt=tt==null?void 0:tt.getItem(_e);isUndef(Dt)?(Ft=null,tt==null||tt.removeItem(_e)):(Ft=ct(Dt),tt==null||tt.setItem(_e,Ft)),dispatchEvent(new CustomEvent(SYNC_STORAGE_EVENT_NAME,{detail:{key:_e,newValue:Ft,oldValue:zt,storageArea:tt}}))}catch(Nt){ot(Nt)}},Rt=function(Pt){Pt.key!==_e||Pt.storageArea!==tt||vt(dt())},xt=function(Pt){Rt(Pt.detail)};return useEventListener("storage",Rt,{enable:rt}),useEventListener(SYNC_STORAGE_EVENT_NAME,xt,{enable:rt}),[mt,useMemoizedFn(Et)]}return j}var useLocalStorageState=createUseStorageState(function(){return isBrowser$1?localStorage:void 0});function useRafState(a){var j=reactExports.useRef(0),_e=__read(reactExports.useState(a),2),et=_e[0],tt=_e[1],nt=reactExports.useCallback(function(rt){cancelAnimationFrame(j.current),j.current=requestAnimationFrame(function(){tt(rt)})},[]);return useUnmount(function(){cancelAnimationFrame(j.current)}),[et,nt]}var defaultShouldUpdate=function(a,j){return!Object.is(a,j)};function usePrevious(a,j){j===void 0&&(j=defaultShouldUpdate);var _e=reactExports.useRef(),et=reactExports.useRef();return j(et.current,a)&&(_e.current=et.current,et.current=a),_e.current}var proxyMap=new WeakMap,rawMap=new WeakMap;function observer(a,j){var _e=proxyMap.get(a);if(_e)return _e;if(rawMap.has(a))return a;var et=new Proxy(a,{get:function(tt,nt,rt){var it=Reflect.get(tt,nt,rt),ot=Reflect.getOwnPropertyDescriptor(tt,nt);return!(ot!=null&&ot.configurable)&&!(ot!=null&&ot.writable)?it:isPlainObject$4(it)||Array.isArray(it)?observer(it,j):it},set:function(tt,nt,rt){var it=Reflect.set(tt,nt,rt);return j(),it},deleteProperty:function(tt,nt){var rt=Reflect.deleteProperty(tt,nt);return j(),rt}});return proxyMap.set(a,et),rawMap.set(et,a),et}function useReactive(a){var j=useUpdate(),_e=reactExports.useRef(a),et=useCreation(function(){return observer(_e.current,function(){j()})},[]);return et}var MapShim=function(){if(typeof Map<"u")return Map;function a(j,_e){var et=-1;return j.some(function(tt,nt){return tt[0]===_e?(et=nt,!0):!1}),et}return function(){function j(){this.__entries__=[]}return Object.defineProperty(j.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),j.prototype.get=function(_e){var et=a(this.__entries__,_e),tt=this.__entries__[et];return tt&&tt[1]},j.prototype.set=function(_e,et){var tt=a(this.__entries__,_e);~tt?this.__entries__[tt][1]=et:this.__entries__.push([_e,et])},j.prototype.delete=function(_e){var et=this.__entries__,tt=a(et,_e);~tt&&et.splice(tt,1)},j.prototype.has=function(_e){return!!~a(this.__entries__,_e)},j.prototype.clear=function(){this.__entries__.splice(0)},j.prototype.forEach=function(_e,et){et===void 0&&(et=null);for(var tt=0,nt=this.__entries__;tt<nt.length;tt++){var rt=nt[tt];_e.call(et,rt[1],rt[0])}},j}()}(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1$1=function(){return typeof global$2<"u"&&global$2.Math===Math?global$2:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1$1):function(a){return setTimeout(function(){return a(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle$2(a,j){var _e=!1,et=!1,tt=0;function nt(){_e&&(_e=!1,a()),et&&it()}function rt(){requestAnimationFrame$1(nt)}function it(){var ot=Date.now();if(_e){if(ot-tt<trailingTimeout)return;et=!0}else _e=!0,et=!1,setTimeout(rt,j);tt=ot}return it}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function a(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle$2(this.refresh.bind(this),REFRESH_DELAY)}return a.prototype.addObserver=function(j){~this.observers_.indexOf(j)||this.observers_.push(j),this.connected_||this.connect_()},a.prototype.removeObserver=function(j){var _e=this.observers_,et=_e.indexOf(j);~et&&_e.splice(et,1),!_e.length&&this.connected_&&this.disconnect_()},a.prototype.refresh=function(){var j=this.updateObservers_();j&&this.refresh()},a.prototype.updateObservers_=function(){var j=this.observers_.filter(function(_e){return _e.gatherActive(),_e.hasActive()});return j.forEach(function(_e){return _e.broadcastActive()}),j.length>0},a.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},a.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},a.prototype.onTransitionEnd_=function(j){var _e=j.propertyName,et=_e===void 0?"":_e,tt=transitionKeys.some(function(nt){return!!~et.indexOf(nt)});tt&&this.refresh()},a.getInstance=function(){return this.instance_||(this.instance_=new a),this.instance_},a.instance_=null,a}(),defineConfigurable=function(a,j){for(var _e=0,et=Object.keys(j);_e<et.length;_e++){var tt=et[_e];Object.defineProperty(a,tt,{value:j[tt],enumerable:!1,writable:!1,configurable:!0})}return a},getWindowOf=function(a){var j=a&&a.ownerDocument&&a.ownerDocument.defaultView;return j||global$1$1},emptyRect=createRectInit(0,0,0,0);function toFloat(a){return parseFloat(a)||0}function getBordersSize(a){for(var j=[],_e=1;_e<arguments.length;_e++)j[_e-1]=arguments[_e];return j.reduce(function(et,tt){var nt=a["border-"+tt+"-width"];return et+toFloat(nt)},0)}function getPaddings(a){for(var j=["top","right","bottom","left"],_e={},et=0,tt=j;et<tt.length;et++){var nt=tt[et],rt=a["padding-"+nt];_e[nt]=toFloat(rt)}return _e}function getSVGContentRect(a){var j=a.getBBox();return createRectInit(0,0,j.width,j.height)}function getHTMLElementContentRect(a){var j=a.clientWidth,_e=a.clientHeight;if(!j&&!_e)return emptyRect;var et=getWindowOf(a).getComputedStyle(a),tt=getPaddings(et),nt=tt.left+tt.right,rt=tt.top+tt.bottom,it=toFloat(et.width),ot=toFloat(et.height);if(et.boxSizing==="border-box"&&(Math.round(it+nt)!==j&&(it-=getBordersSize(et,"left","right")+nt),Math.round(ot+rt)!==_e&&(ot-=getBordersSize(et,"top","bottom")+rt)),!isDocumentElement(a)){var ct=Math.round(it+nt)-j,ut=Math.round(ot+rt)-_e;Math.abs(ct)!==1&&(it-=ct),Math.abs(ut)!==1&&(ot-=ut)}return createRectInit(tt.left,tt.top,it,ot)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(a){return a instanceof getWindowOf(a).SVGGraphicsElement}:function(a){return a instanceof getWindowOf(a).SVGElement&&typeof a.getBBox=="function"}}();function isDocumentElement(a){return a===getWindowOf(a).document.documentElement}function getContentRect(a){return isBrowser?isSVGGraphicsElement(a)?getSVGContentRect(a):getHTMLElementContentRect(a):emptyRect}function createReadOnlyRect(a){var j=a.x,_e=a.y,et=a.width,tt=a.height,nt=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,rt=Object.create(nt.prototype);return defineConfigurable(rt,{x:j,y:_e,width:et,height:tt,top:_e,right:j+et,bottom:tt+_e,left:j}),rt}function createRectInit(a,j,_e,et){return{x:a,y:j,width:_e,height:et}}var ResizeObservation=function(){function a(j){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=j}return a.prototype.isActive=function(){var j=getContentRect(this.target);return this.contentRect_=j,j.width!==this.broadcastWidth||j.height!==this.broadcastHeight},a.prototype.broadcastRect=function(){var j=this.contentRect_;return this.broadcastWidth=j.width,this.broadcastHeight=j.height,j},a}(),ResizeObserverEntry=function(){function a(j,_e){var et=createReadOnlyRect(_e);defineConfigurable(this,{target:j,contentRect:et})}return a}(),ResizeObserverSPI=function(){function a(j,_e,et){if(this.activeObservations_=[],this.observations_=new MapShim,typeof j!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=j,this.controller_=_e,this.callbackCtx_=et}return a.prototype.observe=function(j){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(j instanceof getWindowOf(j).Element))throw new TypeError('parameter 1 is not of type "Element".');var _e=this.observations_;_e.has(j)||(_e.set(j,new ResizeObservation(j)),this.controller_.addObserver(this),this.controller_.refresh())}},a.prototype.unobserve=function(j){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(j instanceof getWindowOf(j).Element))throw new TypeError('parameter 1 is not of type "Element".');var _e=this.observations_;_e.has(j)&&(_e.delete(j),_e.size||this.controller_.removeObserver(this))}},a.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},a.prototype.gatherActive=function(){var j=this;this.clearActive(),this.observations_.forEach(function(_e){_e.isActive()&&j.activeObservations_.push(_e)})},a.prototype.broadcastActive=function(){if(this.hasActive()){var j=this.callbackCtx_,_e=this.activeObservations_.map(function(et){return new ResizeObserverEntry(et.target,et.broadcastRect())});this.callback_.call(j,_e,j),this.clearActive()}},a.prototype.clearActive=function(){this.activeObservations_.splice(0)},a.prototype.hasActive=function(){return this.activeObservations_.length>0},a}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver=function(){function a(j){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var _e=ResizeObserverController.getInstance(),et=new ResizeObserverSPI(j,_e,this);observers.set(this,et)}return a}();["observe","unobserve","disconnect"].forEach(function(a){ResizeObserver.prototype[a]=function(){var j;return(j=observers.get(this))[a].apply(j,arguments)}});var index=function(){return typeof global$1$1.ResizeObserver<"u"?global$1$1.ResizeObserver:ResizeObserver}(),useEffectWithTarget=createEffectWithTarget(reactExports.useLayoutEffect),useIsomorphicLayoutEffectWithTarget=isBrowser$1?useEffectWithTarget:useEffectWithTarget$1;function useSize(a){var j=__read(useRafState(function(){var tt=getTargetElement(a);return tt?{width:tt.clientWidth,height:tt.clientHeight}:void 0}),2),_e=j[0],et=j[1];return useIsomorphicLayoutEffectWithTarget(function(){var tt=getTargetElement(a);if(tt){var nt=new index(function(rt){rt.forEach(function(it){var ot=it.target,ct=ot.clientWidth,ut=ot.clientHeight;et({width:ct,height:ut})})});return nt.observe(tt),function(){nt.disconnect()}}},[],a),_e}const n$1=/[^\0-\x7E]/,t$3=/[\x2E\u3002\uFF0E\uFF61]/g,o$1={overflow:"Overflow Error","not-basic":"Illegal Input","invalid-input":"Invalid Input"},e$1=Math.floor,r$2=String.fromCharCode;function s$1(a){throw new RangeError(o$1[a])}const c=function(a,j){return a+22+75*(a<26)-((j!=0)<<5)},u=function(a,j,_e){let et=0;for(a=_e?e$1(a/700):a>>1,a+=e$1(a/j);a>455;et+=36)a=e$1(a/35);return e$1(et+36*a/(a+38))};function toASCII(a){return function(j,_e){const et=j.split("@");let tt="";et.length>1&&(tt=et[0]+"@",j=et[1]);const nt=function(rt,it){const ot=[];let ct=rt.length;for(;ct--;)ot[ct]=it(rt[ct]);return ot}((j=j.replace(t$3,".")).split("."),_e).join(".");return tt+nt}(a,function(j){return n$1.test(j)?"xn--"+function(_e){const et=[],tt=(_e=function(ut){const dt=[];let pt=0;const mt=ut.length;for(;pt<mt;){const vt=ut.charCodeAt(pt++);if(vt>=55296&&vt<=56319&&pt<mt){const Et=ut.charCodeAt(pt++);(64512&Et)==56320?dt.push(((1023&vt)<<10)+(1023&Et)+65536):(dt.push(vt),pt--)}else dt.push(vt)}return dt}(_e)).length;let nt=128,rt=0,it=72;for(const ut of _e)ut<128&&et.push(r$2(ut));const ot=et.length;let ct=ot;for(ot&&et.push("-");ct<tt;){let ut=2147483647;for(const pt of _e)pt>=nt&&pt<ut&&(ut=pt);const dt=ct+1;ut-nt>e$1((2147483647-rt)/dt)&&s$1("overflow"),rt+=(ut-nt)*dt,nt=ut;for(const pt of _e)if(pt<nt&&++rt>2147483647&&s$1("overflow"),pt==nt){let mt=rt;for(let vt=36;;vt+=36){const Et=vt<=it?1:vt>=it+26?26:vt-it;if(mt<Et)break;const Rt=mt-Et,xt=36-Et;et.push(r$2(c(Et+Rt%xt,0))),mt=e$1(Rt/xt)}et.push(r$2(c(mt,0))),it=u(rt,dt,ct==ot),rt=0,++ct}++rt,++nt}return et.join("")}(j):j})}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_CARET_RE=/%5e/gi,ENC_BACKTICK_RE=/%60/gi,ENC_CURLY_OPEN_RE=/%7b/gi,ENC_PIPE_RE=/%7c/gi,ENC_CURLY_CLOSE_RE=/%7d/gi,ENC_SPACE_RE=/%20/gi,ENC_SLASH_RE=/%2f/gi,ENC_ENC_SLASH_RE=/%252f/gi;function encode$7(a){return encodeURI(""+a).replace(ENC_PIPE_RE,"|")}function encodeHash(a){return encode$7(a).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(a){return encode$7(typeof a=="string"?a:JSON.stringify(a)).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CARET_RE,"^").replace(SLASH_RE,"%2F")}function encodeQueryKey(a){return encodeQueryValue(a).replace(EQUAL_RE,"%3D")}function encodePath(a){return encode$7(a).replace(HASH_RE,"%23").replace(IM_RE,"%3F").replace(ENC_ENC_SLASH_RE,"%2F").replace(AMPERSAND_RE,"%26").replace(PLUS_RE,"%2B")}function encodeParam(a){return encodePath(a).replace(SLASH_RE,"%2F")}function decode$4(a=""){try{return decodeURIComponent(""+a)}catch{return""+a}}function decodePath(a){return decode$4(a.replace(ENC_SLASH_RE,"%252F"))}function decodeQueryKey(a){return decode$4(a.replace(PLUS_RE," "))}function decodeQueryValue(a){return decode$4(a.replace(PLUS_RE," "))}function encodeHost(a=""){return toASCII(a)}function parseQuery(a=""){const j={};a[0]==="?"&&(a=a.slice(1));for(const _e of a.split("&")){const et=_e.match(/([^=]+)=?(.*)/)||[];if(et.length<2)continue;const tt=decodeQueryKey(et[1]);if(tt==="__proto__"||tt==="constructor")continue;const nt=decodeQueryValue(et[2]||"");j[tt]===void 0?j[tt]=nt:Array.isArray(j[tt])?j[tt].push(nt):j[tt]=[j[tt],nt]}return j}function encodeQueryItem(a,j){return(typeof j=="number"||typeof j=="boolean")&&(j=String(j)),j?Array.isArray(j)?j.map(_e=>`${encodeQueryKey(a)}=${encodeQueryValue(_e)}`).join("&"):`${encodeQueryKey(a)}=${encodeQueryValue(j)}`:encodeQueryKey(a)}function stringifyQuery(a){return Object.keys(a).filter(j=>a[j]!==void 0).map(j=>encodeQueryItem(j,a[j])).filter(Boolean).join("&")}const PROTOCOL_STRICT_REGEX=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,PROTOCOL_REGEX=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,PROTOCOL_RELATIVE_REGEX=/^([/\\]\s*){2,}[^/\\]/,PROTOCOL_SCRIPT_RE=/^[\s\0]*(blob|data|javascript|vbscript):$/i,TRAILING_SLASH_RE=/\/$|\/\?|\/#/,JOIN_LEADING_SLASH_RE=/^\.?\//;function isRelative(a){return["./","../"].some(j=>a.startsWith(j))}function hasProtocol(a,j={}){return typeof j=="boolean"&&(j={acceptRelative:j}),j.strict?PROTOCOL_STRICT_REGEX.test(a):PROTOCOL_REGEX.test(a)||(j.acceptRelative?PROTOCOL_RELATIVE_REGEX.test(a):!1)}function isScriptProtocol(a){return!!a&&PROTOCOL_SCRIPT_RE.test(a)}function hasTrailingSlash(a="",j){return j?TRAILING_SLASH_RE.test(a):a.endsWith("/")}function withoutTrailingSlash(a="",j){if(!j)return(hasTrailingSlash(a)?a.slice(0,-1):a)||"/";if(!hasTrailingSlash(a,!0))return a||"/";let _e=a,et="";const tt=a.indexOf("#");tt>=0&&(_e=a.slice(0,tt),et=a.slice(tt));const[nt,...rt]=_e.split("?");return((nt.endsWith("/")?nt.slice(0,-1):nt)||"/")+(rt.length>0?`?${rt.join("?")}`:"")+et}function withTrailingSlash(a="",j){if(!j)return a.endsWith("/")?a:a+"/";if(hasTrailingSlash(a,!0))return a||"/";let _e=a,et="";const tt=a.indexOf("#");if(tt>=0&&(_e=a.slice(0,tt),et=a.slice(tt),!_e))return et;const[nt,...rt]=_e.split("?");return nt+"/"+(rt.length>0?`?${rt.join("?")}`:"")+et}function hasLeadingSlash(a=""){return a.startsWith("/")}function withoutLeadingSlash(a=""){return(hasLeadingSlash(a)?a.slice(1):a)||"/"}function withLeadingSlash(a=""){return hasLeadingSlash(a)?a:"/"+a}function cleanDoubleSlashes(a=""){return a.split("://").map(j=>j.replace(/\/{2,}/g,"/")).join("://")}function withBase(a,j){if(isEmptyURL(j)||hasProtocol(a))return a;const _e=withoutTrailingSlash(j);return a.startsWith(_e)?a:joinURL(_e,a)}function withoutBase(a,j){if(isEmptyURL(j))return a;const _e=withoutTrailingSlash(j);if(!a.startsWith(_e))return a;const et=a.slice(_e.length);return et[0]==="/"?et:"/"+et}function withQuery(a,j){const _e=parseURL(a),et={...parseQuery(_e.search),...j};return _e.search=stringifyQuery(et),stringifyParsedURL(_e)}function getQuery(a){return parseQuery(parseURL(a).search)}function isEmptyURL(a){return!a||a==="/"}function isNonEmptyURL(a){return a&&a!=="/"}function joinURL(a,...j){let _e=a||"";for(const et of j.filter(tt=>isNonEmptyURL(tt)))if(_e){const tt=et.replace(JOIN_LEADING_SLASH_RE,"");_e=withTrailingSlash(_e)+tt}else _e=et;return _e}function joinRelativeURL(...a){var rt,it,ot,ct;const j=/\/(?!\/)/,_e=a.filter(Boolean),et=[];let tt=0;for(const ut of _e)if(!(!ut||ut==="/")){for(const[dt,pt]of ut.split(j).entries())if(!(!pt||pt===".")){if(pt===".."){if(et.length===1&&hasProtocol(et[0]))continue;et.pop(),tt--;continue}if(dt===1&&((rt=et[et.length-1])!=null&&rt.endsWith(":/"))){et[et.length-1]+="/"+pt;continue}et.push(pt),tt++}}let nt=et.join("/");return tt>=0?(it=_e[0])!=null&&it.startsWith("/")&&!nt.startsWith("/")?nt="/"+nt:(ot=_e[0])!=null&&ot.startsWith("./")&&!nt.startsWith("./")&&(nt="./"+nt):nt="../".repeat(-1*tt)+nt,(ct=_e[_e.length-1])!=null&&ct.endsWith("/")&&!nt.endsWith("/")&&(nt+="/"),nt}function withHttp(a){return withProtocol(a,"http://")}function withHttps(a){return withProtocol(a,"https://")}function withoutProtocol(a){return withProtocol(a,"")}function withProtocol(a,j){let _e=a.match(PROTOCOL_REGEX);return _e||(_e=a.match(/^\/{2,}/)),_e?j+a.slice(_e[0].length):j+a}function normalizeURL(a){const j=parseURL(a);return j.pathname=encodePath(decodePath(j.pathname)),j.hash=encodeHash(decode$4(j.hash)),j.host=encodeHost(decode$4(j.host)),j.search=stringifyQuery(parseQuery(j.search)),stringifyParsedURL(j)}function resolveURL(a="",...j){if(typeof a!="string")throw new TypeError(`URL input should be string received ${typeof a} (${a})`);const _e=j.filter(tt=>isNonEmptyURL(tt));if(_e.length===0)return a;const et=parseURL(a);for(const tt of _e){const nt=parseURL(tt);if(nt.pathname&&(et.pathname=withTrailingSlash(et.pathname)+withoutLeadingSlash(nt.pathname)),nt.hash&&nt.hash!=="#"&&(et.hash=nt.hash),nt.search&&nt.search!=="?")if(et.search&&et.search!=="?"){const rt=stringifyQuery({...parseQuery(et.search),...parseQuery(nt.search)});et.search=rt.length>0?"?"+rt:""}else et.search=nt.search}return stringifyParsedURL(et)}function isSamePath(a,j){return decode$4(withoutTrailingSlash(a))===decode$4(withoutTrailingSlash(j))}function isEqual$2(a,j,_e={}){return _e.trailingSlash||(a=withTrailingSlash(a),j=withTrailingSlash(j)),_e.leadingSlash||(a=withLeadingSlash(a),j=withLeadingSlash(j)),_e.encoding||(a=decode$4(a),j=decode$4(j)),a===j}function withFragment(a,j){if(!j||j==="#")return a;const _e=parseURL(a);return _e.hash=j===""?"":"#"+encodeHash(j),stringifyParsedURL(_e)}function withoutFragment(a){return stringifyParsedURL({...parseURL(a),hash:""})}function withoutHost(a){const j=parseURL(a);return(j.pathname||"/")+j.search+j.hash}const protocolRelative=Symbol.for("ufo:protocolRelative");function parseURL(a="",j){const _e=a.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(_e){const[,dt,pt=""]=_e;return{protocol:dt.toLowerCase(),pathname:pt,href:dt+pt,auth:"",host:"",search:"",hash:""}}if(!hasProtocol(a,{acceptRelative:!0}))return j?parseURL(j+a):parsePath(a);const[,et="",tt,nt=""]=a.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,rt="",it=""]=nt.match(/([^#/?]*)(.*)?/)||[];et==="file:"&&(it=it.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:ot,search:ct,hash:ut}=parsePath(it);return{protocol:et.toLowerCase(),auth:tt?tt.slice(0,Math.max(0,tt.length-1)):"",host:rt,pathname:ot,search:ct,hash:ut,[protocolRelative]:!et}}function parsePath(a=""){const[j="",_e="",et=""]=(a.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:j,search:_e,hash:et}}function parseAuth(a=""){const[j,_e]=a.split(":");return{username:decode$4(j),password:decode$4(_e)}}function parseHost(a=""){const[j,_e]=(a.match(/([^/:]*):?(\d+)?/)||[]).splice(1);return{hostname:decode$4(j),port:_e}}function stringifyParsedURL(a){const j=a.pathname||"",_e=a.search?(a.search.startsWith("?")?"":"?")+a.search:"",et=a.hash||"",tt=a.auth?a.auth+"@":"",nt=a.host||"";return(a.protocol||a[protocolRelative]?(a.protocol||"")+"//":"")+tt+nt+j+_e+et}const FILENAME_STRICT_REGEX=/\/([^/]+\.[^/]+)$/,FILENAME_REGEX=/\/([^/]+)$/;function parseFilename(a="",{strict:j}){const{pathname:_e}=parseURL(a),et=j?_e.match(FILENAME_STRICT_REGEX):_e.match(FILENAME_REGEX);return et?et[1]:void 0}var __defProp$5=Object.defineProperty,__defNormalProp$4=(a,j,_e)=>j in a?__defProp$5(a,j,{enumerable:!0,configurable:!0,writable:!0,value:_e}):a[j]=_e,__publicField$3=(a,j,_e)=>(__defNormalProp$4(a,typeof j!="symbol"?j+"":j,_e),_e);class $URL{constructor(j=""){if(__publicField$3(this,"protocol"),__publicField$3(this,"host"),__publicField$3(this,"auth"),__publicField$3(this,"pathname"),__publicField$3(this,"query",{}),__publicField$3(this,"hash"),typeof j!="string")throw new TypeError(`URL input should be string received ${typeof j} (${j})`);const _e=parseURL(j);this.protocol=decode$4(_e.protocol),this.host=decode$4(_e.host),this.auth=decode$4(_e.auth),this.pathname=decodePath(_e.pathname),this.query=parseQuery(_e.search),this.hash=decode$4(_e.hash)}get hostname(){return parseHost(this.host).hostname}get port(){return parseHost(this.host).port||""}get username(){return parseAuth(this.auth).username}get password(){return parseAuth(this.auth).password||""}get hasProtocol(){return this.protocol.length}get isAbsolute(){return this.hasProtocol||this.pathname[0]==="/"}get search(){const j=stringifyQuery(this.query);return j.length>0?"?"+j:""}get searchParams(){const j=new URLSearchParams;for(const _e in this.query){const et=this.query[_e];if(Array.isArray(et))for(const tt of et)j.append(_e,tt);else j.append(_e,typeof et=="string"?et:JSON.stringify(et))}return j}get origin(){return(this.protocol?this.protocol+"//":"")+encodeHost(this.host)}get fullpath(){return encodePath(this.pathname)+this.search+encodeHash(this.hash)}get encodedAuth(){if(!this.auth)return"";const{username:j,password:_e}=parseAuth(this.auth);return encodeURIComponent(j)+(_e?":"+encodeURIComponent(_e):"")}get href(){const j=this.encodedAuth,_e=(this.protocol?this.protocol+"//":"")+(j?j+"@":"")+encodeHost(this.host);return this.hasProtocol&&this.isAbsolute?_e+this.fullpath:this.fullpath}append(j){if(j.hasProtocol)throw new Error("Cannot append a URL with protocol");Object.assign(this.query,j.query),j.pathname&&(this.pathname=withTrailingSlash(this.pathname)+withoutLeadingSlash(j.pathname)),j.hash&&(this.hash=j.hash)}toJSON(){return this.href}toString(){return this.href}}function createURL(a){return new $URL(a)}const dist$3=Object.freeze(Object.defineProperty({__proto__:null,$URL,cleanDoubleSlashes,createURL,decode:decode$4,decodePath,decodeQueryKey,decodeQueryValue,encode:encode$7,encodeHash,encodeHost,encodeParam,encodePath,encodeQueryItem,encodeQueryKey,encodeQueryValue,getQuery,hasLeadingSlash,hasProtocol,hasTrailingSlash,isEmptyURL,isEqual:isEqual$2,isNonEmptyURL,isRelative,isSamePath,isScriptProtocol,joinRelativeURL,joinURL,normalizeURL,parseAuth,parseFilename,parseHost,parsePath,parseQuery,parseURL,resolveURL,stringifyParsedURL,stringifyQuery,withBase,withFragment,withHttp,withHttps,withLeadingSlash,withProtocol,withQuery,withTrailingSlash,withoutBase,withoutFragment,withoutHost,withoutLeadingSlash,withoutProtocol,withoutTrailingSlash},Symbol.toStringTag,{value:"Module"})),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(a,j,_e,et="")=>{const tt=a.split(":");if(a.slice(0,1)==="@"){if(tt.length<2||tt.length>3)return null;et=tt.shift().slice(1)}if(tt.length>3||!tt.length)return null;if(tt.length>1){const it=tt.pop(),ot=tt.pop(),ct={provider:tt.length>0?tt[0]:et,prefix:ot,name:it};return j&&!validateIconName(ct)?null:ct}const nt=tt[0],rt=nt.split("-");if(rt.length>1){const it={provider:et,prefix:rt.shift(),name:rt.join("-")};return j&&!validateIconName(it)?null:it}if(_e&&et===""){const it={provider:et,prefix:"",name:nt};return j&&!validateIconName(it,_e)?null:it}return null},validateIconName=(a,j)=>a?!!((a.provider===""||a.provider.match(matchIconName))&&(j&&a.prefix===""||a.prefix.match(matchIconName))&&a.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations(a,j){const _e={};!a.hFlip!=!j.hFlip&&(_e.hFlip=!0),!a.vFlip!=!j.vFlip&&(_e.vFlip=!0);const et=((a.rotate||0)+(j.rotate||0))%4;return et&&(_e.rotate=et),_e}function mergeIconData(a,j){const _e=mergeIconTransformations(a,j);for(const et in defaultExtendedIconProps)et in defaultIconTransformations?et in a&&!(et in _e)&&(_e[et]=defaultIconTransformations[et]):et in j?_e[et]=j[et]:et in a&&(_e[et]=a[et]);return _e}function getIconsTree(a,j){const _e=a.icons,et=a.aliases||Object.create(null),tt=Object.create(null);function nt(rt){if(_e[rt])return tt[rt]=[];if(!(rt in tt)){tt[rt]=null;const it=et[rt]&&et[rt].parent,ot=it&&nt(it);ot&&(tt[rt]=[it].concat(ot))}return tt[rt]}return Object.keys(_e).concat(Object.keys(et)).forEach(nt),tt}function internalGetIconData(a,j,_e){const et=a.icons,tt=a.aliases||Object.create(null);let nt={};function rt(it){nt=mergeIconData(et[it]||tt[it],nt)}return rt(j),_e.forEach(rt),mergeIconData(a,nt)}function parseIconSet(a,j){const _e=[];if(typeof a!="object"||typeof a.icons!="object")return _e;a.not_found instanceof Array&&a.not_found.forEach(tt=>{j(tt,null),_e.push(tt)});const et=getIconsTree(a);for(const tt in et){const nt=et[tt];nt&&(j(tt,internalGetIconData(a,tt,nt)),_e.push(tt))}return _e}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps(a,j){for(const _e in j)if(_e in a&&typeof a[_e]!=typeof j[_e])return!1;return!0}function quicklyValidateIconSet(a){if(typeof a!="object"||a===null)return null;const j=a;if(typeof j.prefix!="string"||!a.icons||typeof a.icons!="object"||!checkOptionalProps(a,optionalPropertyDefaults))return null;const _e=j.icons;for(const tt in _e){const nt=_e[tt];if(!tt.match(matchIconName)||typeof nt.body!="string"||!checkOptionalProps(nt,defaultExtendedIconProps))return null}const et=j.aliases||Object.create(null);for(const tt in et){const nt=et[tt],rt=nt.parent;if(!tt.match(matchIconName)||typeof rt!="string"||!_e[rt]&&!et[rt]||!checkOptionalProps(nt,defaultExtendedIconProps))return null}return j}const dataStorage=Object.create(null);function newStorage(a,j){return{provider:a,prefix:j,icons:Object.create(null),missing:new Set}}function getStorage(a,j){const _e=dataStorage[a]||(dataStorage[a]=Object.create(null));return _e[j]||(_e[j]=newStorage(a,j))}function addIconSet(a,j){return quicklyValidateIconSet(j)?parseIconSet(j,(_e,et)=>{et?a.icons[_e]=et:a.missing.add(_e)}):[]}function addIconToStorage(a,j,_e){try{if(typeof _e.body=="string")return a.icons[j]={..._e},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames(a){return typeof a=="boolean"&&(simpleNames=a),simpleNames}function getIconData(a){const j=typeof a=="string"?stringToIcon(a,!0,simpleNames):a;if(j){const _e=getStorage(j.provider,j.prefix),et=j.name;return _e.icons[et]||(_e.missing.has(et)?null:void 0)}}function addIcon(a,j){const _e=stringToIcon(a,!0,simpleNames);if(!_e)return!1;const et=getStorage(_e.provider,_e.prefix);return addIconToStorage(et,_e.name,j)}function addCollection(a,j){if(typeof a!="object")return!1;if(typeof j!="string"&&(j=a.provider||""),simpleNames&&!j&&!a.prefix){let tt=!1;return quicklyValidateIconSet(a)&&(a.prefix="",parseIconSet(a,(nt,rt)=>{rt&&addIcon(nt,rt)&&(tt=!0)})),tt}const _e=a.prefix;if(!validateIconName({provider:j,prefix:_e,name:"a"}))return!1;const et=getStorage(j,_e);return!!addIconSet(et,a)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(a,j,_e){if(j===1)return a;if(_e=_e||100,typeof a=="number")return Math.ceil(a*j*_e)/_e;if(typeof a!="string")return a;const et=a.split(unitsSplit);if(et===null||!et.length)return a;const tt=[];let nt=et.shift(),rt=unitsTest.test(nt);for(;;){if(rt){const it=parseFloat(nt);isNaN(it)?tt.push(nt):tt.push(Math.ceil(it*j*_e)/_e)}else tt.push(nt);if(nt=et.shift(),nt===void 0)return tt.join("");rt=!rt}}const isUnsetKeyword=a=>a==="unset"||a==="undefined"||a==="none";function iconToSVG(a,j){const _e={...defaultIconProps,...a},et={...defaultIconCustomisations,...j},tt={left:_e.left,top:_e.top,width:_e.width,height:_e.height};let nt=_e.body;[_e,et].forEach(vt=>{const Et=[],Rt=vt.hFlip,xt=vt.vFlip;let Pt=vt.rotate;Rt?xt?Pt+=2:(Et.push("translate("+(tt.width+tt.left).toString()+" "+(0-tt.top).toString()+")"),Et.push("scale(-1 1)"),tt.top=tt.left=0):xt&&(Et.push("translate("+(0-tt.left).toString()+" "+(tt.height+tt.top).toString()+")"),Et.push("scale(1 -1)"),tt.top=tt.left=0);let Dt;switch(Pt<0&&(Pt-=Math.floor(Pt/4)*4),Pt=Pt%4,Pt){case 1:Dt=tt.height/2+tt.top,Et.unshift("rotate(90 "+Dt.toString()+" "+Dt.toString()+")");break;case 2:Et.unshift("rotate(180 "+(tt.width/2+tt.left).toString()+" "+(tt.height/2+tt.top).toString()+")");break;case 3:Dt=tt.width/2+tt.left,Et.unshift("rotate(-90 "+Dt.toString()+" "+Dt.toString()+")");break}Pt%2===1&&(tt.left!==tt.top&&(Dt=tt.left,tt.left=tt.top,tt.top=Dt),tt.width!==tt.height&&(Dt=tt.width,tt.width=tt.height,tt.height=Dt)),Et.length&&(nt='<g transform="'+Et.join(" ")+'">'+nt+"</g>")});const rt=et.width,it=et.height,ot=tt.width,ct=tt.height;let ut,dt;rt===null?(dt=it===null?"1em":it==="auto"?ct:it,ut=calculateSize(dt,ot/ct)):(ut=rt==="auto"?ot:rt,dt=it===null?calculateSize(ut,ct/ot):it==="auto"?ct:it);const pt={},mt=(vt,Et)=>{isUnsetKeyword(Et)||(pt[vt]=Et.toString())};return mt("width",ut),mt("height",dt),pt.viewBox=tt.left.toString()+" "+tt.top.toString()+" "+ot.toString()+" "+ct.toString(),{attributes:pt,body:nt}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(a,j=randomPrefix){const _e=[];let et;for(;et=regex.exec(a);)_e.push(et[1]);if(!_e.length)return a;const tt="suffix"+(Math.random()*16777216|Date.now()).toString(16);return _e.forEach(nt=>{const rt=typeof j=="function"?j(nt):j+(counter++).toString(),it=nt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");a=a.replace(new RegExp('([#;"])('+it+')([")]|\\.[a-z])',"g"),"$1"+rt+tt+"$3")}),a=a.replace(new RegExp(tt,"g"),""),a}const storage=Object.create(null);function setAPIModule(a,j){storage[a]=j}function getAPIModule(a){return storage[a]||storage[""]}function createAPIConfig(a){let j;if(typeof a.resources=="string")j=[a.resources];else if(j=a.resources,!(j instanceof Array)||!j.length)return null;return{resources:j,path:a.path||"/",maxURL:a.maxURL||500,rotate:a.rotate||750,timeout:a.timeout||5e3,random:a.random===!0,index:a.index||0,dataAfterTimeout:a.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(a,j){const _e=createAPIConfig(j);return _e===null?!1:(configStorage[a]=_e,!0)}function getAPIConfig(a){return configStorage[a]}const detectFetch=()=>{let a;try{if(a=fetch,typeof a=="function")return a}catch{}};let fetchModule=detectFetch();function calculateMaxLength(a,j){const _e=getAPIConfig(a);if(!_e)return 0;let et;if(!_e.maxURL)et=0;else{let tt=0;_e.resources.forEach(rt=>{tt=Math.max(tt,rt.length)});const nt=j+".json?icons=";et=_e.maxURL-tt-_e.path.length-nt.length}return et}function shouldAbort(a){return a===404}const prepare=(a,j,_e)=>{const et=[],tt=calculateMaxLength(a,j),nt="icons";let rt={type:nt,provider:a,prefix:j,icons:[]},it=0;return _e.forEach((ot,ct)=>{it+=ot.length+1,it>=tt&&ct>0&&(et.push(rt),rt={type:nt,provider:a,prefix:j,icons:[]},it=ot.length),rt.icons.push(ot)}),et.push(rt),et};function getPath(a){if(typeof a=="string"){const j=getAPIConfig(a);if(j)return j.path}return"/"}const send=(a,j,_e)=>{if(!fetchModule){_e("abort",424);return}let et=getPath(j.provider);switch(j.type){case"icons":{const nt=j.prefix,it=j.icons.join(","),ot=new URLSearchParams({icons:it});et+=nt+".json?"+ot.toString();break}case"custom":{const nt=j.uri;et+=nt.slice(0,1)==="/"?nt.slice(1):nt;break}default:_e("abort",400);return}let tt=503;fetchModule(a+et).then(nt=>{const rt=nt.status;if(rt!==200){setTimeout(()=>{_e(shouldAbort(rt)?"abort":"next",rt)});return}return tt=501,nt.json()}).then(nt=>{if(typeof nt!="object"||nt===null){setTimeout(()=>{nt===404?_e("abort",nt):_e("next",tt)});return}setTimeout(()=>{_e("success",nt)})}).catch(()=>{_e("next",tt)})},fetchAPIModule={prepare,send};function sortIcons(a){const j={loaded:[],missing:[],pending:[]},_e=Object.create(null);a.sort((tt,nt)=>tt.provider!==nt.provider?tt.provider.localeCompare(nt.provider):tt.prefix!==nt.prefix?tt.prefix.localeCompare(nt.prefix):tt.name.localeCompare(nt.name));let et={provider:"",prefix:"",name:""};return a.forEach(tt=>{if(et.name===tt.name&&et.prefix===tt.prefix&&et.provider===tt.provider)return;et=tt;const nt=tt.provider,rt=tt.prefix,it=tt.name,ot=_e[nt]||(_e[nt]=Object.create(null)),ct=ot[rt]||(ot[rt]=getStorage(nt,rt));let ut;it in ct.icons?ut=j.loaded:rt===""||ct.missing.has(it)?ut=j.missing:ut=j.pending;const dt={provider:nt,prefix:rt,name:it};ut.push(dt)}),j}function removeCallback(a,j){a.forEach(_e=>{const et=_e.loaderCallbacks;et&&(_e.loaderCallbacks=et.filter(tt=>tt.id!==j))})}function updateCallbacks(a){a.pendingCallbacksFlag||(a.pendingCallbacksFlag=!0,setTimeout(()=>{a.pendingCallbacksFlag=!1;const j=a.loaderCallbacks?a.loaderCallbacks.slice(0):[];if(!j.length)return;let _e=!1;const et=a.provider,tt=a.prefix;j.forEach(nt=>{const rt=nt.icons,it=rt.pending.length;rt.pending=rt.pending.filter(ot=>{if(ot.prefix!==tt)return!0;const ct=ot.name;if(a.icons[ct])rt.loaded.push({provider:et,prefix:tt,name:ct});else if(a.missing.has(ct))rt.missing.push({provider:et,prefix:tt,name:ct});else return _e=!0,!0;return!1}),rt.pending.length!==it&&(_e||removeCallback([a],nt.id),nt.callback(rt.loaded.slice(0),rt.missing.slice(0),rt.pending.slice(0),nt.abort))})}))}let idCounter=0;function storeCallback(a,j,_e){const et=idCounter++,tt=removeCallback.bind(null,_e,et);if(!j.pending.length)return tt;const nt={id:et,icons:j,callback:a,abort:tt};return _e.forEach(rt=>{(rt.loaderCallbacks||(rt.loaderCallbacks=[])).push(nt)}),tt}function listToIcons(a,j=!0,_e=!1){const et=[];return a.forEach(tt=>{const nt=typeof tt=="string"?stringToIcon(tt,j,_e):tt;nt&&et.push(nt)}),et}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(a,j,_e,et){const tt=a.resources.length,nt=a.random?Math.floor(Math.random()*tt):a.index;let rt;if(a.random){let Nt=a.resources.slice(0);for(rt=[];Nt.length>1;){const Vt=Math.floor(Math.random()*Nt.length);rt.push(Nt[Vt]),Nt=Nt.slice(0,Vt).concat(Nt.slice(Vt+1))}rt=rt.concat(Nt)}else rt=a.resources.slice(nt).concat(a.resources.slice(0,nt));const it=Date.now();let ot="pending",ct=0,ut,dt=null,pt=[],mt=[];typeof et=="function"&&mt.push(et);function vt(){dt&&(clearTimeout(dt),dt=null)}function Et(){ot==="pending"&&(ot="aborted"),vt(),pt.forEach(Nt=>{Nt.status==="pending"&&(Nt.status="aborted")}),pt=[]}function Rt(Nt,Vt){Vt&&(mt=[]),typeof Nt=="function"&&mt.push(Nt)}function xt(){return{startTime:it,payload:j,status:ot,queriesSent:ct,queriesPending:pt.length,subscribe:Rt,abort:Et}}function Pt(){ot="failed",mt.forEach(Nt=>{Nt(void 0,ut)})}function Dt(){pt.forEach(Nt=>{Nt.status==="pending"&&(Nt.status="aborted")}),pt=[]}function Ft(Nt,Vt,nn){const fn=Vt!=="success";switch(pt=pt.filter(hn=>hn!==Nt),ot){case"pending":break;case"failed":if(fn||!a.dataAfterTimeout)return;break;default:return}if(Vt==="abort"){ut=nn,Pt();return}if(fn){ut=nn,pt.length||(rt.length?zt():Pt());return}if(vt(),Dt(),!a.random){const hn=a.resources.indexOf(Nt.resource);hn!==-1&&hn!==a.index&&(a.index=hn)}ot="completed",mt.forEach(hn=>{hn(nn)})}function zt(){if(ot!=="pending")return;vt();const Nt=rt.shift();if(Nt===void 0){if(pt.length){dt=setTimeout(()=>{vt(),ot==="pending"&&(Dt(),Pt())},a.timeout);return}Pt();return}const Vt={status:"pending",resource:Nt,callback:(nn,fn)=>{Ft(Vt,nn,fn)}};pt.push(Vt),ct++,dt=setTimeout(zt,a.rotate),_e(Nt,j,Vt.callback)}return setTimeout(zt),xt}function initRedundancy(a){const j={...defaultConfig,...a};let _e=[];function et(){_e=_e.filter(it=>it().status==="pending")}function tt(it,ot,ct){const ut=sendQuery(j,it,ot,(dt,pt)=>{et(),ct&&ct(dt,pt)});return _e.push(ut),ut}function nt(it){return _e.find(ot=>it(ot))||null}return{query:tt,find:nt,setIndex:it=>{j.index=it},getIndex:()=>j.index,cleanup:et}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(a){if(!redundancyCache[a]){const j=getAPIConfig(a);if(!j)return;const _e=initRedundancy(j),et={config:j,redundancy:_e};redundancyCache[a]=et}return redundancyCache[a]}function sendAPIQuery(a,j,_e){let et,tt;if(typeof a=="string"){const nt=getAPIModule(a);if(!nt)return _e(void 0,424),emptyCallback$1;tt=nt.send;const rt=getRedundancyCache(a);rt&&(et=rt.redundancy)}else{const nt=createAPIConfig(a);if(nt){et=initRedundancy(nt);const rt=a.resources?a.resources[0]:"",it=getAPIModule(rt);it&&(tt=it.send)}}return!et||!tt?(_e(void 0,424),emptyCallback$1):et.query(j,tt,_e)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem(a,j){try{return a.getItem(j)}catch{}}function setStoredItem(a,j,_e){try{return a.setItem(j,_e),!0}catch{}}function removeStoredItem(a,j){try{a.removeItem(j)}catch{}}function setBrowserStorageItemsCount(a,j){return setStoredItem(a,browserCacheCountKey,j.toString())}function getBrowserStorageItemsCount(a){return parseInt(getStoredItem(a,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(a){browserStorageStatus=a}let _window=typeof window>"u"?{}:window;function getBrowserStorage(a){const j=a+"Storage";try{if(_window&&_window[j]&&typeof _window[j].length=="number")return _window[j]}catch{}browserStorageConfig[a]=!1}function iterateBrowserStorage(a,j){const _e=getBrowserStorage(a);if(!_e)return;const et=getStoredItem(_e,browserCacheVersionKey);if(et!==browserCacheVersion){if(et){const it=getBrowserStorageItemsCount(_e);for(let ot=0;ot<it;ot++)removeStoredItem(_e,browserCachePrefix+ot.toString())}setStoredItem(_e,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(_e,0);return}const tt=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,nt=it=>{const ot=browserCachePrefix+it.toString(),ct=getStoredItem(_e,ot);if(typeof ct=="string"){try{const ut=JSON.parse(ct);if(typeof ut=="object"&&typeof ut.cached=="number"&&ut.cached>tt&&typeof ut.provider=="string"&&typeof ut.data=="object"&&typeof ut.data.prefix=="string"&&j(ut,it))return!0}catch{}removeStoredItem(_e,ot)}};let rt=getBrowserStorageItemsCount(_e);for(let it=rt-1;it>=0;it--)nt(it)||(it===rt-1?(rt--,setBrowserStorageItemsCount(_e,rt)):browserStorageEmptyItems[a].add(it))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const a in browserStorageConfig)iterateBrowserStorage(a,j=>{const _e=j.data,et=j.provider,tt=_e.prefix,nt=getStorage(et,tt);if(!addIconSet(nt,_e).length)return!1;const rt=_e.lastModified||-1;return nt.lastModifiedCached=nt.lastModifiedCached?Math.min(nt.lastModifiedCached,rt):rt,!0})}}function updateLastModified(a,j){const _e=a.lastModifiedCached;if(_e&&_e>=j)return _e===j;if(a.lastModifiedCached=j,_e)for(const et in browserStorageConfig)iterateBrowserStorage(et,tt=>{const nt=tt.data;return tt.provider!==a.provider||nt.prefix!==a.prefix||nt.lastModified===j});return!0}function storeInBrowserStorage(a,j){browserStorageStatus||initBrowserStorage();function _e(et){let tt;if(!browserStorageConfig[et]||!(tt=getBrowserStorage(et)))return;const nt=browserStorageEmptyItems[et];let rt;if(nt.size)nt.delete(rt=Array.from(nt).shift());else if(rt=getBrowserStorageItemsCount(tt),!setBrowserStorageItemsCount(tt,rt+1))return;const it={cached:Math.floor(Date.now()/browserStorageHour),provider:a.provider,data:j};return setStoredItem(tt,browserCachePrefix+rt.toString(),JSON.stringify(it))}j.lastModified&&!updateLastModified(a,j.lastModified)||Object.keys(j.icons).length&&(j.not_found&&(j=Object.assign({},j),delete j.not_found),_e("local")||_e("session"))}function emptyCallback(){}function loadedNewIcons(a){a.iconsLoaderFlag||(a.iconsLoaderFlag=!0,setTimeout(()=>{a.iconsLoaderFlag=!1,updateCallbacks(a)}))}function loadNewIcons(a,j){a.iconsToLoad?a.iconsToLoad=a.iconsToLoad.concat(j).sort():a.iconsToLoad=j,a.iconsQueueFlag||(a.iconsQueueFlag=!0,setTimeout(()=>{a.iconsQueueFlag=!1;const{provider:_e,prefix:et}=a,tt=a.iconsToLoad;delete a.iconsToLoad;let nt;if(!tt||!(nt=getAPIModule(_e)))return;nt.prepare(_e,et,tt).forEach(it=>{sendAPIQuery(_e,it,ot=>{if(typeof ot!="object")it.icons.forEach(ct=>{a.missing.add(ct)});else try{const ct=addIconSet(a,ot);if(!ct.length)return;const ut=a.pendingIcons;ut&&ct.forEach(dt=>{ut.delete(dt)}),storeInBrowserStorage(a,ot)}catch(ct){console.error(ct)}loadedNewIcons(a)})})}))}const loadIcons=(a,j)=>{const _e=listToIcons(a,!0,allowSimpleNames()),et=sortIcons(_e);if(!et.pending.length){let ot=!0;return j&&setTimeout(()=>{ot&&j(et.loaded,et.missing,et.pending,emptyCallback)}),()=>{ot=!1}}const tt=Object.create(null),nt=[];let rt,it;return et.pending.forEach(ot=>{const{provider:ct,prefix:ut}=ot;if(ut===it&&ct===rt)return;rt=ct,it=ut,nt.push(getStorage(ct,ut));const dt=tt[ct]||(tt[ct]=Object.create(null));dt[ut]||(dt[ut]=[])}),et.pending.forEach(ot=>{const{provider:ct,prefix:ut,name:dt}=ot,pt=getStorage(ct,ut),mt=pt.pendingIcons||(pt.pendingIcons=new Set);mt.has(dt)||(mt.add(dt),tt[ct][ut].push(dt))}),nt.forEach(ot=>{const{provider:ct,prefix:ut}=ot;tt[ct][ut].length&&loadNewIcons(ot,tt[ct][ut])}),j?storeCallback(j,et,nt):emptyCallback},loadIcon=a=>new Promise((j,_e)=>{const et=typeof a=="string"?stringToIcon(a,!0):a;if(!et){_e(a);return}loadIcons([et||a],tt=>{if(tt.length&&et){const nt=getIconData(et);if(nt){j({...defaultIconProps,...nt});return}}_e(a)})});function mergeCustomisations(a,j){const _e={...a};for(const et in j){const tt=j[et],nt=typeof tt;et in defaultIconSizeCustomisations?(tt===null||tt&&(nt==="string"||nt==="number"))&&(_e[et]=tt):nt===typeof _e[et]&&(_e[et]=et==="rotate"?tt%4:tt)}return _e}const separator=/[\s,]+/;function flipFromString(a,j){j.split(separator).forEach(_e=>{switch(_e.trim()){case"horizontal":a.hFlip=!0;break;case"vertical":a.vFlip=!0;break}})}function rotateFromString(a,j=0){const _e=a.replace(/^-?[0-9.]*/,"");function et(tt){for(;tt<0;)tt+=4;return tt%4}if(_e===""){const tt=parseInt(a);return isNaN(tt)?0:et(tt)}else if(_e!==a){let tt=0;switch(_e){case"%":tt=25;break;case"deg":tt=90}if(tt){let nt=parseFloat(a.slice(0,a.length-_e.length));return isNaN(nt)?0:(nt=nt/tt,nt%1===0?et(nt):0)}}return j}function iconToHTML(a,j){let _e=a.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const et in j)_e+=" "+et+'="'+j[et]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+_e+">"+a+"</svg>"}function encodeSVGforURL(a){return a.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData(a){return"data:image/svg+xml,"+encodeSVGforURL(a)}function svgToURL(a){return'url("'+svgToData(a)+'")'}let policy;function createPolicy(){try{policy=window.trustedTypes.createPolicy("iconify",{createHTML:a=>a})}catch{policy=null}}function cleanUpInnerHTML(a){return policy===void 0&&createPolicy(),policy?policy.createHTML(a):a}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={WebkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const a in propsToAddTo){const j=propsToAddTo[a];for(const _e in propsToAdd)j[a+_e]=propsToAdd[_e]}const inlineDefaults={...defaultExtendedIconCustomisations,inline:!0};function fixSize(a){return a+(a.match(/^[-0-9.]+$/)?"px":"")}const render=(a,j,_e,et)=>{const tt=_e?inlineDefaults:defaultExtendedIconCustomisations,nt=mergeCustomisations(tt,j),rt=j.mode||"svg",it={},ot=j.style||{},ct={...rt==="svg"?svgDefaults:{},ref:et};for(let xt in j){const Pt=j[xt];if(Pt!==void 0)switch(xt){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":nt[xt]=Pt===!0||Pt==="true"||Pt===1;break;case"flip":typeof Pt=="string"&&flipFromString(nt,Pt);break;case"color":it.color=Pt;break;case"rotate":typeof Pt=="string"?nt[xt]=rotateFromString(Pt):typeof Pt=="number"&&(nt[xt]=Pt);break;case"ariaHidden":case"aria-hidden":Pt!==!0&&Pt!=="true"&&delete ct["aria-hidden"];break;default:tt[xt]===void 0&&(ct[xt]=Pt)}}const ut=iconToSVG(a,nt),dt=ut.attributes;if(nt.inline&&(it.verticalAlign="-0.125em"),rt==="svg"){ct.style={...it,...ot},Object.assign(ct,dt);let xt=0,Pt=j.id;return typeof Pt=="string"&&(Pt=Pt.replace(/-/g,"_")),ct.dangerouslySetInnerHTML={__html:cleanUpInnerHTML(replaceIDs(ut.body,Pt?()=>Pt+"ID"+xt++:"iconifyReact"))},React$2.createElement("svg",ct)}const{body:pt,width:mt,height:vt}=a,Et=rt==="mask"||(rt==="bg"?!1:pt.indexOf("currentColor")!==-1),Rt=iconToHTML(pt,{...dt,width:mt+"",height:vt+""});return ct.style={...it,"--svg":svgToURL(Rt),width:fixSize(dt.width),height:fixSize(dt.height),...commonProps,...Et?monotoneProps:coloredProps,...ot},React$2.createElement("span",ct)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const a=window;if(a.IconifyPreload!==void 0){const j=a.IconifyPreload,_e="Invalid IconifyPreload syntax.";typeof j=="object"&&j!==null&&(j instanceof Array?j:[j]).forEach(et=>{try{(typeof et!="object"||et===null||et instanceof Array||typeof et.icons!="object"||typeof et.prefix!="string"||!addCollection(et))&&console.error(_e)}catch{console.error(_e)}})}if(a.IconifyProviders!==void 0){const j=a.IconifyProviders;if(typeof j=="object"&&j!==null)for(let _e in j){const et="IconifyProviders["+_e+"] is invalid.";try{const tt=j[_e];if(typeof tt!="object"||!tt||tt.resources===void 0)continue;addAPIProvider(_e,tt)||console.error(et)}catch{console.error(et)}}}}class IconComponent extends React$2.Component{constructor(j){super(j),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(j){this.state.icon!==j&&this.setState({icon:j})}_checkIcon(j){const _e=this.state,et=this.props.icon;if(typeof et=="object"&&et!==null&&typeof et.body=="string"){this._icon="",this._abortLoading(),(j||_e.icon===null)&&this._setData({data:et});return}let tt;if(typeof et!="string"||(tt=stringToIcon(et,!1,!0))===null){this._abortLoading(),this._setData(null);return}const nt=getIconData(tt);if(!nt){(!this._loading||this._loading.name!==et)&&(this._abortLoading(),this._icon="",this._setData(null),nt!==null&&(this._loading={name:et,abort:loadIcons([tt],this._checkIcon.bind(this,!1))}));return}if(this._icon!==et||_e.icon===null){this._abortLoading(),this._icon=et;const rt=["iconify"];tt.prefix!==""&&rt.push("iconify--"+tt.prefix),tt.provider!==""&&rt.push("iconify--"+tt.provider),this._setData({data:nt,classes:rt}),this.props.onLoad&&this.props.onLoad(et)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(j){j.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const j=this.props,_e=this.state.icon;if(_e===null)return j.children?j.children:React$2.createElement("span",{});let et=j;return _e.classes&&(et={...j,className:(typeof j.className=="string"?j.className+" ":"")+_e.classes.join(" ")}),render({...defaultIconProps,..._e.data},et,j._inline,j._ref)}}const Icon=React$2.forwardRef(function(j,_e){const et={...j,_ref:_e,_inline:!1};return React$2.createElement(IconComponent,et)});React$2.forwardRef(function(j,_e){const et={...j,_ref:_e,_inline:!0};return React$2.createElement(IconComponent,et)});const data$v={width:24,height:24,body:'<path fill="currentColor" d="M9.575 12L5.7 8.1q-.275-.275-.288-.688T5.7 6.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.062.375t-.213.325l-4.6 4.6q-.275.275-.687.288T5.7 17.3q-.275-.275-.275-.7t.275-.7L9.575 12Zm6.6 0L12.3 8.1q-.275-.275-.288-.688T12.3 6.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.6 4.6q-.275.275-.687.288T12.3 17.3q-.275-.275-.275-.7t.275-.7l3.875-3.9Z"/>'};var appleIphone=/iPhone/i,appleIpod=/iPod/i,appleTablet=/iPad/i,appleUniversal=/\biOS-universal(?:.+)Mac\b/i,androidPhone=/\bAndroid(?:.+)Mobile\b/i,androidTablet=/Android/i,amazonPhone=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,amazonTablet=/Silk/i,windowsPhone=/Windows Phone/i,windowsTablet=/\bWindows(?:.+)ARM\b/i,otherBlackBerry=/BlackBerry/i,otherBlackBerry10=/BB10/i,otherOpera=/Opera Mini/i,otherChrome=/\b(CriOS|Chrome)(?:.+)Mobile/i,otherFirefox=/Mobile(?:.+)Firefox\b/i,isAppleTabletOnIos13=function(a){return typeof a<"u"&&a.platform==="MacIntel"&&typeof a.maxTouchPoints=="number"&&a.maxTouchPoints>1&&typeof MSStream>"u"};function createMatch(a){return function(j){return j.test(a)}}function isMobile(a){var j={userAgent:"",platform:"",maxTouchPoints:0};!a&&typeof navigator<"u"?j={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof a=="string"?j.userAgent=a:a&&a.userAgent&&(j={userAgent:a.userAgent,platform:a.platform,maxTouchPoints:a.maxTouchPoints||0});var _e=j.userAgent,et=_e.split("[FBAN");typeof et[1]<"u"&&(_e=et[0]),et=_e.split("Twitter"),typeof et[1]<"u"&&(_e=et[0]);var tt=createMatch(_e),nt={apple:{phone:tt(appleIphone)&&!tt(windowsPhone),ipod:tt(appleIpod),tablet:!tt(appleIphone)&&(tt(appleTablet)||isAppleTabletOnIos13(j))&&!tt(windowsPhone),universal:tt(appleUniversal),device:(tt(appleIphone)||tt(appleIpod)||tt(appleTablet)||tt(appleUniversal)||isAppleTabletOnIos13(j))&&!tt(windowsPhone)},amazon:{phone:tt(amazonPhone),tablet:!tt(amazonPhone)&&tt(amazonTablet),device:tt(amazonPhone)||tt(amazonTablet)},android:{phone:!tt(windowsPhone)&&tt(amazonPhone)||!tt(windowsPhone)&&tt(androidPhone),tablet:!tt(windowsPhone)&&!tt(amazonPhone)&&!tt(androidPhone)&&(tt(amazonTablet)||tt(androidTablet)),device:!tt(windowsPhone)&&(tt(amazonPhone)||tt(amazonTablet)||tt(androidPhone)||tt(androidTablet))||tt(/\bokhttp\b/i)},windows:{phone:tt(windowsPhone),tablet:tt(windowsTablet),device:tt(windowsPhone)||tt(windowsTablet)},other:{blackberry:tt(otherBlackBerry),blackberry10:tt(otherBlackBerry10),opera:tt(otherOpera),firefox:tt(otherFirefox),chrome:tt(otherChrome),device:tt(otherBlackBerry)||tt(otherBlackBerry10)||tt(otherOpera)||tt(otherFirefox)||tt(otherChrome)},any:!1,phone:!1,tablet:!1};return nt.any=nt.apple.device||nt.android.device||nt.windows.device||nt.other.device,nt.phone=nt.apple.phone||nt.android.phone||nt.windows.phone,nt.tablet=nt.apple.tablet||nt.android.tablet||nt.windows.tablet,nt}const DID_WALLET_TAG="ABTWallet",ARC_SPHERE_TAG="ArcSphere";function getDIDWalletVersion(a){var tt;const _e=new RegExp(`${DID_WALLET_TAG}/(?<version>[0-9.]+)`,"g").exec(a);return(tt=_e==null?void 0:_e.groups)==null?void 0:tt.version}function useBrowser(){var _e;const a=(_e=window==null?void 0:window.navigator)==null?void 0:_e.userAgent,[j]=reactExports.useState({wallet:a.indexOf(DID_WALLET_TAG)>-1||a.indexOf(ARC_SPHERE_TAG)>-1,walletVersion:getDIDWalletVersion(a),wechat:/MicroMessenger/i.test(a),mobile:{apple:{phone:!1,ipod:!1,tablet:!1,device:!1},amazon:{phone:!1,tablet:!1,device:!1},android:{phone:!1,tablet:!1,device:!1},windows:{phone:!1,tablet:!1,device:!1},other:{blackberry:!1,blackberry10:!1,opera:!1,firefox:!1,chrome:!1,device:!1},phone:!1,tablet:!1,any:!1,...isMobile(a)}});return j}const extendedColors={did:{contained:{backgroundColor:colors$2.did.primary,color:colors$2.common.white},outlined:{borderColor:colors$2.did.primary,color:colors$2.did.primary}},reverse:{contained:{backgroundColor:"rgba(255, 255, 255, 0.9)",color:colors$2.grey[900]},outlined:{borderColor:colors$2.grey[900],color:colors$2.grey[900]}}};function wrap$1(a){function j(_e){const et=mergeProps(_e,j,["style"]),{children:tt,rounded:nt,loading:rt,disabled:it,style:ot,forwardedRef:ct,color:ut,...dt}=et,pt=it||rt;let mt=16;switch(dt.size){case"small":mt=14;break;case"large":mt=18;break}const vt=extendedColors[ut]&&extendedColors[ut][dt.variant],Et=Object.assign({},ot,{boxShadow:"none",textTransform:"capitalize",...vt});let Rt=dt;return vt||(Rt={...Rt,color:ut}),nt&&(Et.borderRadius="100vw"),jsxRuntimeExports.jsxs(a,{style:Et,ref:ct,disabled:pt,...Rt,children:[rt&&jsxRuntimeExports.jsx(CircularProgress,{size:mt,style:{marginRight:5}}),tt]})}return j.propTypes={children:PropTypes.any.isRequired,style:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),size:PropTypes.oneOf(["large","medium","small"]),forwardedRef:PropTypes.any,rounded:PropTypes.bool},j.defaultProps={rounded:!1,size:"medium",forwardedRef:null,style:{}},reactExports.forwardRef((_e,et)=>jsxRuntimeExports.jsx(j,{..._e,forwardedRef:et}))}const ButtonComponent=wrap$1(Button$1);function Dialog({children:a,title:j,prepend:_e,toolbar:et,actions:tt,showCloseButton:nt,actionsPosition:rt,PaperProps:it,slotProps:ot,...ct}){const ut=useTheme$1(),dt=useMediaQuery(ut.breakpoints.down("md")),pt=j||nt||et,mt=(Et,Rt)=>{const{onClose:xt}=ct;xt&&xt(Et,Rt)};it.style=Object.assign({minWidth:300,minHeight:300},it.style);const vt=jsxRuntimeExports.jsx(IconButton,{className:"ux-dialog_closeButton",onClick:Et=>mt(Et,"closeButton"),children:jsxRuntimeExports.jsx(default_1$7,{})});return jsxRuntimeExports.jsxs(StyledMuiDialog,{fullScreen:dt,onClose:mt,PaperProps:it,...ct,children:[pt&&jsxRuntimeExports.jsxs(Header$1,{...ot.header,className:"ux-dialog_header",isMobile:dt,children:[jsxRuntimeExports.jsxs("div",{className:"ux-dialog_left",children:[nt&&dt&&vt,_e&&jsxRuntimeExports.jsx("div",{className:"ux-dialog_prepend",children:_e}),j&&jsxRuntimeExports.jsx(Typography,{variant:"h6",className:"ux-dialog_title",children:j})]}),jsxRuntimeExports.jsxs("div",{className:"ux-dialog_right",children:[jsxRuntimeExports.jsx("div",{className:"ux-dialog_toolbar",children:et}),nt&&!dt&&vt]})]}),jsxRuntimeExports.jsx(DialogContent,{...ot.content,children:a}),tt&&jsxRuntimeExports.jsx(DialogActions,{className:`ux-dialog_actions--${rt}`,children:tt})]})}Dialog.propTypes={children:PropTypes.node.isRequired,title:PropTypes.node,prepend:PropTypes.node,toolbar:PropTypes.node,actions:PropTypes.node,showCloseButton:PropTypes.bool,actionsPosition:PropTypes.oneOf(["left","center","right"]),PaperProps:PropTypes.object,slotProps:PropTypes.shape({content:PropTypes.object,header:PropTypes.object})};Dialog.defaultProps={showCloseButton:!0,title:"",prepend:null,toolbar:null,actions:null,actionsPosition:"right",PaperProps:{},slotProps:{}};const StyledMuiDialog=styled(Dialog$1)`
260
+ 0 22,12A10,10 0 0,0 12,2Z`}))},iconStyles={fontSize:20,marginInlineEnd:8},defaultIconVariants={default:void 0,success:React$2.createElement(CheckIcon,{style:iconStyles}),warning:React$2.createElement(WarningIcon,{style:iconStyles}),error:React$2.createElement(ErrorIcon,{style:iconStyles}),info:React$2.createElement(InfoIcon,{style:iconStyles})};function createChainedFunction(a,j){return a.reduce(function(_e,et){return et==null?_e:function(){for(var nt=arguments.length,rt=new Array(nt),it=0;it<nt;it++)rt[it]=arguments[it];var ot=[].concat(rt);j&&ot.indexOf(j)===-1&&ot.push(j),_e.apply(this,ot),et.apply(this,ot)}},function(){})}var useEnhancedEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function useEventCallback(a){var j=reactExports.useRef(a);return useEnhancedEffect(function(){j.current=a}),reactExports.useCallback(function(){return j.current.apply(void 0,arguments)},[])}var Snackbar=reactExports.forwardRef(function(a,j){var _e=a.children,et=a.autoHideDuration,tt=a.ClickAwayListenerProps,nt=a.disableWindowBlurListener,rt=nt===void 0?!1:nt,it=a.onClose,ot=a.onMouseEnter,ct=a.onMouseLeave,ut=a.open,dt=a.resumeHideDuration,pt=_objectWithoutPropertiesLoose(a,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),mt=reactExports.useRef(),vt=useEventCallback(function(){it&&it.apply(void 0,arguments)}),Et=useEventCallback(function(zt){!it||zt==null||(clearTimeout(mt.current),mt.current=setTimeout(function(){vt(null,REASONS.TIMEOUT)},zt))});reactExports.useEffect(function(){return ut&&Et(et),function(){clearTimeout(mt.current)}},[ut,et,Et]);var Rt=function(){clearTimeout(mt.current)},xt=reactExports.useCallback(function(){et!=null&&Et(dt??et*.5)},[et,dt,Et]),Pt=function(Nt){ot&&ot(Nt),Rt()},Dt=function(Nt){ct&&ct(Nt),xt()},Ft=function(Nt){it&&it(Nt,REASONS.CLICKAWAY)};return reactExports.useEffect(function(){if(!rt&&ut)return window.addEventListener("focus",xt),window.addEventListener("blur",Rt),function(){window.removeEventListener("focus",xt),window.removeEventListener("blur",Rt)}},[rt,xt,ut]),reactExports.createElement(ClickAwayListener,_extends({onClickAway:Ft},tt),reactExports.createElement("div",_extends({onMouseEnter:Pt,onMouseLeave:Dt,ref:j},pt),_e))}),componentName$1="SnackbarItem",classes$1$1={contentRoot:componentName$1+"-contentRoot",lessPadding:componentName$1+"-lessPadding",variantSuccess:componentName$1+"-variantSuccess",variantError:componentName$1+"-variantError",variantInfo:componentName$1+"-variantInfo",variantWarning:componentName$1+"-variantWarning",message:componentName$1+"-message",action:componentName$1+"-action",wrappedRoot:componentName$1+"-wrappedRoot"},StyledSnackbar=styled$1(Snackbar)(function(a){var j,_e=a.theme,et=_e.palette.mode||_e.palette.type,tt=emphasize$1(_e.palette.background.default,et==="light"?.8:.98);return j={},j["&."+classes$1$1.wrappedRoot]={position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0},j["."+classes$1$1.contentRoot]=_extends({},_e.typography.body2,{backgroundColor:tt,color:_e.palette.getContrastText(tt),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),j["."+classes$1$1.lessPadding]={paddingLeft:8*2.5},j["."+classes$1$1.variantSuccess]={backgroundColor:"#43a047",color:"#fff"},j["."+classes$1$1.variantError]={backgroundColor:"#d32f2f",color:"#fff"},j["."+classes$1$1.variantInfo]={backgroundColor:"#2196f3",color:"#fff"},j["."+classes$1$1.variantWarning]={backgroundColor:"#ff9800",color:"#fff"},j["."+classes$1$1.message]={display:"flex",alignItems:"center",padding:"8px 0"},j["."+classes$1$1.action]={display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},j}),SnackbarItem=function(j){var _e=j.classes,et=_objectWithoutPropertiesLoose(j,["classes"]),tt=reactExports.useRef(),nt=reactExports.useState(!0),rt=nt[0],it=nt[1];reactExports.useEffect(function(){return function(){tt.current&&clearTimeout(tt.current)}},[]);var ot=createChainedFunction([et.snack.onClose,et.onClose],et.snack.key),ct=function(){et.snack.requestClose&&ot(null,REASONS.INSTRCUTED)},ut=function(){tt.current=setTimeout(function(){it(!rt)},125)},dt=et.style,pt=et.ariaAttributes,mt=et.className,vt=et.hideIconVariant,Et=et.iconVariant,Rt=et.snack,xt=et.action,Pt=et.content,Dt=et.TransitionComponent,Ft=et.TransitionProps,zt=et.transitionDuration,Nt=_objectWithoutPropertiesLoose(et,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),Vt=Rt.key,nn=Rt.open,fn=Rt.className,hn=Rt.variant,Qt=Rt.content,Mt=Rt.action,wt=Rt.ariaAttributes,ft=Rt.anchorOrigin,ht=Rt.message,$t=Rt.TransitionComponent,Tt=Rt.TransitionProps,At=Rt.transitionDuration,kt=_objectWithoutPropertiesLoose(Rt,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),Ct=_extends({},defaultIconVariants,{},Et)[hn],It=_extends({"aria-describedby":"notistack-snackbar"},objectMerge(wt,pt)),bt=$t||Dt||DEFAULTS.TransitionComponent,Lt=objectMerge(At,zt,DEFAULTS.transitionDuration),sn=_extends({direction:getTransitionDirection(ft)},objectMerge(Tt,Ft)),Ut=Mt||xt;typeof Ut=="function"&&(Ut=Ut(Vt));var Zt=Qt||Pt;typeof Zt=="function"&&(Zt=Zt(Vt,Rt.message));var Gt=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce(function(Yt,cn){var En;return _extends({},Yt,(En={},En[cn]=createChainedFunction([et.snack[cn],et[cn]],et.snack.key),En))},{});return React$2.createElement(Collapse,{unmountOnExit:!0,timeout:175,in:rt,onExited:Gt.onExited},React$2.createElement(StyledSnackbar,Object.assign({},Nt,kt,{open:nn,className:clsx(_e.root,classes$1$1.wrappedRoot,_e[transformer.toAnchorOrigin(ft)]),onClose:ot}),React$2.createElement(bt,Object.assign({appear:!0,in:nn,timeout:Lt},sn,{onExit:Gt.onExit,onExiting:Gt.onExiting,onExited:ut,onEnter:Gt.onEnter,onEntering:Gt.onEntering,onEntered:createChainedFunction([Gt.onEntered,ct])}),Zt||React$2.createElement(SnackbarContent,Object.assign({},It,{role:"alert",style:dt,className:clsx(classes$1$1.contentRoot,classes$1$1[transformer.toVariant(hn)],_e[transformer.toVariant(hn)],mt,fn,!vt&&Ct&&classes$1$1.lessPadding)}),React$2.createElement("div",{id:It["aria-describedby"],className:classes$1$1.message},vt?null:Ct,ht),Ut&&React$2.createElement("div",{className:classes$1$1.action},Ut)))))},collapse={container:"& > .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},xsWidthMargin=16,componentName$2="SnackbarContainer",classes$2={root:componentName$2+"-root",rootDense:componentName$2+"-rootDense",top:componentName$2+"-top",bottom:componentName$2+"-bottom",left:componentName$2+"-left",right:componentName$2+"-right",center:componentName$2+"-center"},Root$1$1=styled$1("div")(function(a){var j,_e,et,tt,nt,rt,it=a.theme;return rt={},rt["&."+classes$2.root]=(j={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:it.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},j[collapse.container]={pointerEvents:"all"},j[collapse.wrapper]={padding:SNACKBAR_INDENTS.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},j.maxWidth="calc(100% - "+SNACKBAR_INDENTS.view.default*2+"px)",j[it.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+xsWidthMargin*2+"px)"},j),rt["&."+classes$2.rootDense]=(_e={},_e[collapse.wrapper]={padding:SNACKBAR_INDENTS.snackbar.dense+"px 0px"},_e),rt["&."+classes$2.top]={top:SNACKBAR_INDENTS.view.default-SNACKBAR_INDENTS.snackbar.default,flexDirection:"column"},rt["&."+classes$2.bottom]={bottom:SNACKBAR_INDENTS.view.default-SNACKBAR_INDENTS.snackbar.default,flexDirection:"column-reverse"},rt["&."+classes$2.left]=(et={left:SNACKBAR_INDENTS.view.default},et[it.breakpoints.up("sm")]={alignItems:"flex-start"},et[it.breakpoints.down("sm")]={left:xsWidthMargin+"px"},et),rt["&."+classes$2.right]=(tt={right:SNACKBAR_INDENTS.view.default},tt[it.breakpoints.up("sm")]={alignItems:"flex-end"},tt[it.breakpoints.down("sm")]={right:xsWidthMargin+"px"},tt),rt["&."+classes$2.center]=(nt={left:"50%",transform:"translateX(-50%)"},nt[it.breakpoints.up("sm")]={alignItems:"center"},nt),rt}),SnackbarContainer=function(j){var _e=j.className,et=j.anchorOrigin,tt=j.dense,nt=_objectWithoutPropertiesLoose(j,["className","anchorOrigin","dense"]),rt=clsx(classes$2[et.vertical],classes$2[et.horizontal],classes$2.root,_e,tt&&classes$2.rootDense);return React$2.createElement(Root$1$1,Object.assign({className:rt},nt))},SnackbarContainer$1=React$2.memo(SnackbarContainer),SnackbarProvider=function(a){_inheritsLoose$1(j,a);function j(et){var tt;return tt=a.call(this,et)||this,tt.enqueueSnackbar=function(nt,rt){rt===void 0&&(rt={});var it=rt,ot=it.key,ct=it.preventDuplicate,ut=_objectWithoutPropertiesLoose(it,["key","preventDuplicate"]),dt=isDefined(ot),pt=dt?ot:new Date().getTime()+Math.random(),mt=merge$3(ut,tt.props,DEFAULTS),vt=_extends({key:pt},ut,{message:nt,open:!0,entered:!1,requestClose:!1,variant:mt("variant"),anchorOrigin:mt("anchorOrigin"),autoHideDuration:mt("autoHideDuration")});return ut.persist&&(vt.autoHideDuration=void 0),tt.setState(function(Et){if(ct===void 0&&tt.props.preventDuplicate||ct){var Rt=function(Ft){return dt?Ft.key===ot:Ft.message===nt},xt=Et.queue.findIndex(Rt)>-1,Pt=Et.snacks.findIndex(Rt)>-1;if(xt||Pt)return Et}return tt.handleDisplaySnack(_extends({},Et,{queue:[].concat(Et.queue,[vt])}))}),pt},tt.handleDisplaySnack=function(nt){var rt=nt.snacks;return rt.length>=tt.maxSnack?tt.handleDismissOldest(nt):tt.processQueue(nt)},tt.processQueue=function(nt){var rt=nt.queue,it=nt.snacks;return rt.length>0?_extends({},nt,{snacks:[].concat(it,[rt[0]]),queue:rt.slice(1,rt.length)}):nt},tt.handleDismissOldest=function(nt){if(nt.snacks.some(function(ut){return!ut.open||ut.requestClose}))return nt;var rt=!1,it=!1,ot=nt.snacks.reduce(function(ut,dt){return ut+(dt.open&&dt.persist?1:0)},0);ot===tt.maxSnack&&(it=!0);var ct=nt.snacks.map(function(ut){return!rt&&(!ut.persist||it)?(rt=!0,ut.entered?(ut.onClose&&ut.onClose(null,REASONS.MAXSNACK,ut.key),tt.props.onClose&&tt.props.onClose(null,REASONS.MAXSNACK,ut.key),_extends({},ut,{open:!1})):_extends({},ut,{requestClose:!0})):_extends({},ut)});return _extends({},nt,{snacks:ct})},tt.handleEnteredSnack=function(nt,rt,it){if(!isDefined(it))throw new Error("handleEnteredSnack Cannot be called with undefined key");tt.setState(function(ot){var ct=ot.snacks;return{snacks:ct.map(function(ut){return ut.key===it?_extends({},ut,{entered:!0}):_extends({},ut)})}})},tt.handleCloseSnack=function(nt,rt,it){if(tt.props.onClose&&tt.props.onClose(nt,rt,it),rt!==REASONS.CLICKAWAY){var ot=it===void 0;tt.setState(function(ct){var ut=ct.snacks,dt=ct.queue;return{snacks:ut.map(function(pt){return!ot&&pt.key!==it?_extends({},pt):pt.entered?_extends({},pt,{open:!1}):_extends({},pt,{requestClose:!0})}),queue:dt.filter(function(pt){return pt.key!==it})}})}},tt.closeSnackbar=function(nt){var rt=tt.state.snacks.find(function(it){return it.key===nt});isDefined(nt)&&rt&&rt.onClose&&rt.onClose(null,REASONS.INSTRUCTED,nt),tt.handleCloseSnack(null,REASONS.INSTRUCTED,nt)},tt.handleExitedSnack=function(nt,rt,it){var ot=rt||it;if(!isDefined(ot))throw new Error("handleExitedSnack Cannot be called with undefined key");tt.setState(function(ct){var ut=tt.processQueue(_extends({},ct,{snacks:ct.snacks.filter(function(dt){return dt.key!==ot})}));return ut.queue.length===0?ut:tt.handleDismissOldest(ut)})},tt.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:tt.enqueueSnackbar.bind(_assertThisInitialized(tt)),closeSnackbar:tt.closeSnackbar.bind(_assertThisInitialized(tt))}},tt}var _e=j.prototype;return _e.render=function(){var tt=this,nt=this.state.contextValue,rt=this.props,it=rt.iconVariant,ot=rt.dense,ct=ot===void 0?DEFAULTS.dense:ot,ut=rt.hideIconVariant,dt=ut===void 0?DEFAULTS.hideIconVariant:ut,pt=rt.domRoot,mt=rt.children,vt=rt.classes,Et=vt===void 0?{}:vt,Rt=_objectWithoutPropertiesLoose(rt,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),xt=this.state.snacks.reduce(function(Dt,Ft){var zt,Nt=originKeyExtractor(Ft.anchorOrigin),Vt=Dt[Nt]||[];return _extends({},Dt,(zt={},zt[Nt]=[].concat(Vt,[Ft]),zt))},{}),Pt=Object.keys(xt).map(function(Dt){var Ft=xt[Dt];return React$2.createElement(SnackbarContainer$1,{key:Dt,dense:ct,anchorOrigin:Ft[0].anchorOrigin,className:clsx(Et.containerRoot,Et[transformer.toContainerAnchorOrigin(Dt)])},Ft.map(function(zt){return React$2.createElement(SnackbarItem,Object.assign({},Rt,{key:zt.key,snack:zt,dense:ct,iconVariant:it,hideIconVariant:dt,classes:omitContainerKeys(Et),onClose:tt.handleCloseSnack,onExited:createChainedFunction([tt.handleExitedSnack,tt.props.onExited]),onEntered:createChainedFunction([tt.handleEnteredSnack,tt.props.onEntered])}))}))});return React$2.createElement(SnackbarContext.Provider,{value:nt},mt,pt?reactDomExports.createPortal(Pt,pt):Pt)},_createClass(j,[{key:"maxSnack",get:function(){return this.props.maxSnack||DEFAULTS.maxSnack}}]),j}(reactExports.Component),useSnackbar=function(){return reactExports.useContext(SnackbarContext)},Close={},createSvgIcon={};const require$$0$7=getAugmentedNamespace(utils$p);var hasRequiredCreateSvgIcon;function requireCreateSvgIcon(){return hasRequiredCreateSvgIcon||(hasRequiredCreateSvgIcon=1,function(a){"use client";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return j.createSvgIcon}});var j=require$$0$7}(createSvgIcon)),createSvgIcon}var _interopRequireDefault$7=interopRequireDefaultExports;Object.defineProperty(Close,"__esModule",{value:!0});var default_1$7=Close.default=void 0,_createSvgIcon$4=_interopRequireDefault$7(requireCreateSvgIcon()),_jsxRuntime$6=jsxRuntimeExports;default_1$7=Close.default=(0,_createSvgIcon$4.default)((0,_jsxRuntime$6.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function noop$6(){}var noop_1=noop$6;const noop$7=getDefaultExportFromCjs$1(noop_1);let success=noop$7,error=noop$7,warning=noop$7,info=noop$7;const genFn=(a,j)=>(_e,et={})=>{a(_e,{autoHideDuration:5e3,variant:j,...et})};function ToastProvider({children:a}){const j=reactExports.createRef(),_e=et=>()=>{j.current.closeSnackbar(et)};return jsxRuntimeExports.jsxs(SnackbarProvider,{anchorOrigin:{vertical:"top",horizontal:"right"},ref:j,action:et=>jsxRuntimeExports.jsx(IconButton,{"aria-label":"close",color:"inherit",onClick:_e(et),size:"large",children:jsxRuntimeExports.jsx(default_1$7,{style:{fontSize:16}})},"close"),children:[jsxRuntimeExports.jsx(Toast,{}),a]})}function Toast(){const{enqueueSnackbar:a}=useSnackbar();return success=genFn(a,"success"),error=genFn(a,"error"),warning=genFn(a,"warning"),info=genFn(a,"info"),null}const Toast$1={success:(a,j={},..._e)=>success(a,j,..._e),error:(a,j={autoHideDuration:15e3},..._e)=>error(a,j,..._e),warning:(a,j={},..._e)=>warning(a,j,..._e),info:(a,j={},..._e)=>info(a,j,..._e)};var flat=flatten$4;flatten$4.flatten=flatten$4;flatten$4.unflatten=unflatten;function isBuffer$7(a){return a&&a.constructor&&typeof a.constructor.isBuffer=="function"&&a.constructor.isBuffer(a)}function keyIdentity(a){return a}function flatten$4(a,j){j=j||{};const _e=j.delimiter||".",et=j.maxDepth,tt=j.transformKey||keyIdentity,nt={};function rt(it,ot,ct){ct=ct||1,Object.keys(it).forEach(function(ut){const dt=it[ut],pt=j.safe&&Array.isArray(dt),mt=Object.prototype.toString.call(dt),vt=isBuffer$7(dt),Et=mt==="[object Object]"||mt==="[object Array]",Rt=ot?ot+_e+tt(ut):tt(ut);if(!pt&&!vt&&Et&&Object.keys(dt).length&&(!j.maxDepth||ct<et))return rt(dt,Rt,ct+1);nt[Rt]=dt})}return rt(a),nt}function unflatten(a,j){j=j||{};const _e=j.delimiter||".",et=j.overwrite||!1,tt=j.transformKey||keyIdentity,nt={};if(isBuffer$7(a)||Object.prototype.toString.call(a)!=="[object Object]")return a;function it(ut){const dt=Number(ut);return isNaN(dt)||ut.indexOf(".")!==-1||j.object?ut:dt}function ot(ut,dt,pt){return Object.keys(pt).reduce(function(mt,vt){return mt[ut+_e+vt]=pt[vt],mt},dt)}function ct(ut){const dt=Object.prototype.toString.call(ut),pt=dt==="[object Array]",mt=dt==="[object Object]";if(ut){if(pt)return!ut.length;if(mt)return!Object.keys(ut).length}else return!0}return a=Object.keys(a).reduce(function(ut,dt){const pt=Object.prototype.toString.call(a[dt]);return!(pt==="[object Object]"||pt==="[object Array]")||ct(a[dt])?(ut[dt]=a[dt],ut):ot(dt,ut,flatten$4(a[dt],j))},{}),Object.keys(a).forEach(function(ut){const dt=ut.split(_e).map(tt);let pt=it(dt.shift()),mt=it(dt[0]),vt=nt;for(;mt!==void 0;){if(pt==="__proto__")return;const Et=Object.prototype.toString.call(vt[pt]),Rt=Et==="[object Object]"||Et==="[object Array]";if(!et&&!Rt&&typeof vt[pt]<"u")return;(et&&!Rt||!et&&vt[pt]==null)&&(vt[pt]=typeof mt=="number"&&!j.object?[]:{}),vt=vt[pt],dt.length>0&&(pt=it(dt.shift()),mt=it(dt[0]))}vt[pt]=unflatten(a[ut],j)}),nt}const be=getDefaultExportFromCjs$1(flat);var ListCache$4=_ListCache;function stackClear$1(){this.__data__=new ListCache$4,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(a){var j=this.__data__,_e=j.delete(a);return this.size=j.size,_e}var _stackDelete=stackDelete$1;function stackGet$1(a){return this.__data__.get(a)}var _stackGet=stackGet$1;function stackHas$1(a){return this.__data__.has(a)}var _stackHas=stackHas$1,ListCache$3=_ListCache,Map$4=_Map,MapCache$3=_MapCache,LARGE_ARRAY_SIZE$1=200;function stackSet$1(a,j){var _e=this.__data__;if(_e instanceof ListCache$3){var et=_e.__data__;if(!Map$4||et.length<LARGE_ARRAY_SIZE$1-1)return et.push([a,j]),this.size=++_e.size,this;_e=this.__data__=new MapCache$3(et)}return _e.set(a,j),this.size=_e.size,this}var _stackSet=stackSet$1,ListCache$2=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$4(a){var j=this.__data__=new ListCache$2(a);this.size=j.size}Stack$4.prototype.clear=stackClear;Stack$4.prototype.delete=stackDelete;Stack$4.prototype.get=stackGet;Stack$4.prototype.has=stackHas;Stack$4.prototype.set=stackSet;var _Stack=Stack$4,getNative$6=_getNative,defineProperty$4=function(){try{var a=getNative$6(Object,"defineProperty");return a({},"",{}),a}catch{}}(),_defineProperty$2=defineProperty$4,defineProperty$3=_defineProperty$2;function baseAssignValue$3(a,j,_e){j=="__proto__"&&defineProperty$3?defineProperty$3(a,j,{configurable:!0,enumerable:!0,value:_e,writable:!0}):a[j]=_e}var _baseAssignValue=baseAssignValue$3,baseAssignValue$2=_baseAssignValue,eq$8=eq_1$1;function assignMergeValue$2(a,j,_e){(_e!==void 0&&!eq$8(a[j],_e)||_e===void 0&&!(j in a))&&baseAssignValue$2(a,j,_e)}var _assignMergeValue=assignMergeValue$2;function createBaseFor$1(a){return function(j,_e,et){for(var tt=-1,nt=Object(j),rt=et(j),it=rt.length;it--;){var ot=rt[a?it:++tt];if(_e(nt[ot],ot,nt)===!1)break}return j}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$2=createBaseFor(),_baseFor=baseFor$2,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(a,j){var _e=_root,et=j&&!j.nodeType&&j,tt=et&&!0&&a&&!a.nodeType&&a,nt=tt&&tt.exports===et,rt=nt?_e.Buffer:void 0,it=rt?rt.allocUnsafe:void 0;function ot(ct,ut){if(ut)return ct.slice();var dt=ct.length,pt=it?it(dt):new ct.constructor(dt);return ct.copy(pt),pt}a.exports=ot})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports,root$8=_root,Uint8Array$3=root$8.Uint8Array,_Uint8Array=Uint8Array$3,Uint8Array$2=_Uint8Array;function cloneArrayBuffer$3(a){var j=new a.constructor(a.byteLength);return new Uint8Array$2(j).set(new Uint8Array$2(a)),j}var _cloneArrayBuffer=cloneArrayBuffer$3,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneTypedArray$2(a,j){var _e=j?cloneArrayBuffer$2(a.buffer):a.buffer;return new a.constructor(_e,a.byteOffset,a.length)}var _cloneTypedArray=cloneTypedArray$2;function copyArray$2(a,j){var _e=-1,et=a.length;for(j||(j=Array(et));++_e<et;)j[_e]=a[_e];return j}var _copyArray=copyArray$2,isObject$k=isObject_1,objectCreate$1=Object.create,baseCreate$1=function(){function a(){}return function(j){if(!isObject$k(j))return{};if(objectCreate$1)return objectCreate$1(j);a.prototype=j;var _e=new a;return a.prototype=void 0,_e}}(),_baseCreate=baseCreate$1;function overArg$2(a,j){return function(_e){return a(j(_e))}}var _overArg=overArg$2,overArg$1=_overArg,getPrototype$3=overArg$1(Object.getPrototypeOf,Object),_getPrototype=getPrototype$3,objectProto$d=Object.prototype;function isPrototype$4(a){var j=a&&a.constructor,_e=typeof j=="function"&&j.prototype||objectProto$d;return a===_e}var _isPrototype=isPrototype$4,baseCreate=_baseCreate,getPrototype$2=_getPrototype,isPrototype$3=_isPrototype;function initCloneObject$2(a){return typeof a.constructor=="function"&&!isPrototype$3(a)?baseCreate(getPrototype$2(a)):{}}var _initCloneObject=initCloneObject$2,baseGetTag$6=_baseGetTag,isObjectLike$d=isObjectLike_1,argsTag$3="[object Arguments]";function baseIsArguments$1(a){return isObjectLike$d(a)&&baseGetTag$6(a)==argsTag$3}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$c=isObjectLike_1,objectProto$c=Object.prototype,hasOwnProperty$g=objectProto$c.hasOwnProperty,propertyIsEnumerable$1=objectProto$c.propertyIsEnumerable,isArguments$7=baseIsArguments(function(){return arguments}())?baseIsArguments:function(a){return isObjectLike$c(a)&&hasOwnProperty$g.call(a,"callee")&&!propertyIsEnumerable$1.call(a,"callee")},isArguments_1=isArguments$7,MAX_SAFE_INTEGER$4=9007199254740991;function isLength$3(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=MAX_SAFE_INTEGER$4}var isLength_1=isLength$3,isFunction$5=isFunction_1,isLength$2=isLength_1;function isArrayLike$7(a){return a!=null&&isLength$2(a.length)&&!isFunction$5(a)}var isArrayLike_1=isArrayLike$7,isArrayLike$6=isArrayLike_1,isObjectLike$b=isObjectLike_1;function isArrayLikeObject$3(a){return isObjectLike$b(a)&&isArrayLike$6(a)}var isArrayLikeObject_1=isArrayLikeObject$3,isBuffer$6={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$6.exports;(function(a,j){var _e=_root,et=stubFalse_1,tt=j&&!j.nodeType&&j,nt=tt&&!0&&a&&!a.nodeType&&a,rt=nt&&nt.exports===tt,it=rt?_e.Buffer:void 0,ot=it?it.isBuffer:void 0,ct=ot||et;a.exports=ct})(isBuffer$6,isBuffer$6.exports);var isBufferExports=isBuffer$6.exports,baseGetTag$5=_baseGetTag,getPrototype$1=_getPrototype,isObjectLike$a=isObjectLike_1,objectTag$4="[object Object]",funcProto$2=Function.prototype,objectProto$b=Object.prototype,funcToString$2=funcProto$2.toString,hasOwnProperty$f=objectProto$b.hasOwnProperty,objectCtorString=funcToString$2.call(Object);function isPlainObject$3(a){if(!isObjectLike$a(a)||baseGetTag$5(a)!=objectTag$4)return!1;var j=getPrototype$1(a);if(j===null)return!0;var _e=hasOwnProperty$f.call(j,"constructor")&&j.constructor;return typeof _e=="function"&&_e instanceof _e&&funcToString$2.call(_e)==objectCtorString}var isPlainObject_1=isPlainObject$3;const isPlainObject$4=getDefaultExportFromCjs$1(isPlainObject_1);var baseGetTag$4=_baseGetTag,isLength$1=isLength_1,isObjectLike$9=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$4="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$3="[object Function]",mapTag$6="[object Map]",numberTag$4="[object Number]",objectTag$3="[object Object]",regexpTag$3="[object RegExp]",setTag$6="[object Set]",stringTag$4="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$4]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$3]=typedArrayTags[mapTag$6]=typedArrayTags[numberTag$4]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$6]=typedArrayTags[stringTag$4]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(a){return isObjectLike$9(a)&&isLength$1(a.length)&&!!typedArrayTags[baseGetTag$4(a)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$5(a){return function(j){return a(j)}}var _baseUnary=baseUnary$5,_nodeUtil={exports:{}};_nodeUtil.exports;(function(a,j){var _e=_freeGlobal,et=j&&!j.nodeType&&j,tt=et&&!0&&a&&!a.nodeType&&a,nt=tt&&tt.exports===et,rt=nt&&_e.process,it=function(){try{var ot=tt&&tt.require&&tt.require("util").types;return ot||rt&&rt.binding&&rt.binding("util")}catch{}}();a.exports=it})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$4=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$6=nodeIsTypedArray?baseUnary$4(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$6;function safeGet$2(a,j){if(!(j==="constructor"&&typeof a[j]=="function")&&j!="__proto__")return a[j]}var _safeGet=safeGet$2,baseAssignValue$1=_baseAssignValue,eq$7=eq_1$1,objectProto$a=Object.prototype,hasOwnProperty$e=objectProto$a.hasOwnProperty;function assignValue$4(a,j,_e){var et=a[j];(!(hasOwnProperty$e.call(a,j)&&eq$7(et,_e))||_e===void 0&&!(j in a))&&baseAssignValue$1(a,j,_e)}var _assignValue=assignValue$4,assignValue$3=_assignValue,baseAssignValue=_baseAssignValue;function copyObject$6(a,j,_e,et){var tt=!_e;_e||(_e={});for(var nt=-1,rt=j.length;++nt<rt;){var it=j[nt],ot=et?et(_e[it],a[it],it,_e,a):void 0;ot===void 0&&(ot=a[it]),tt?baseAssignValue(_e,it,ot):assignValue$3(_e,it,ot)}return _e}var _copyObject=copyObject$6;function baseTimes$1(a,j){for(var _e=-1,et=Array(a);++_e<a;)et[_e]=j(_e);return et}var _baseTimes=baseTimes$1,MAX_SAFE_INTEGER$3=9007199254740991,reIsUint$1=/^(?:0|[1-9]\d*)$/;function isIndex$5(a,j){var _e=typeof a;return j=j??MAX_SAFE_INTEGER$3,!!j&&(_e=="number"||_e!="symbol"&&reIsUint$1.test(a))&&a>-1&&a%1==0&&a<j}var _isIndex=isIndex$5,baseTimes=_baseTimes,isArguments$6=isArguments_1,isArray$g=isArray_1,isBuffer$5=isBufferExports,isIndex$4=_isIndex,isTypedArray$5=isTypedArray_1,objectProto$9=Object.prototype,hasOwnProperty$d=objectProto$9.hasOwnProperty;function arrayLikeKeys$2(a,j){var _e=isArray$g(a),et=!_e&&isArguments$6(a),tt=!_e&&!et&&isBuffer$5(a),nt=!_e&&!et&&!tt&&isTypedArray$5(a),rt=_e||et||tt||nt,it=rt?baseTimes(a.length,String):[],ot=it.length;for(var ct in a)(j||hasOwnProperty$d.call(a,ct))&&!(rt&&(ct=="length"||tt&&(ct=="offset"||ct=="parent")||nt&&(ct=="buffer"||ct=="byteLength"||ct=="byteOffset")||isIndex$4(ct,ot)))&&it.push(ct);return it}var _arrayLikeKeys=arrayLikeKeys$2;function nativeKeysIn$1(a){var j=[];if(a!=null)for(var _e in Object(a))j.push(_e);return j}var _nativeKeysIn=nativeKeysIn$1,isObject$j=isObject_1,isPrototype$2=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$8=Object.prototype,hasOwnProperty$c=objectProto$8.hasOwnProperty;function baseKeysIn$1(a){if(!isObject$j(a))return nativeKeysIn(a);var j=isPrototype$2(a),_e=[];for(var et in a)et=="constructor"&&(j||!hasOwnProperty$c.call(a,et))||_e.push(et);return _e}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys$1=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike$5=isArrayLike_1;function keysIn$5(a){return isArrayLike$5(a)?arrayLikeKeys$1(a,!0):baseKeysIn(a)}var keysIn_1=keysIn$5,copyObject$5=_copyObject,keysIn$4=keysIn_1;function toPlainObject$1(a){return copyObject$5(a,keysIn$4(a))}var toPlainObject_1=toPlainObject$1,assignMergeValue$1=_assignMergeValue,cloneBuffer$1=_cloneBufferExports,cloneTypedArray$1=_cloneTypedArray,copyArray$1=_copyArray,initCloneObject$1=_initCloneObject,isArguments$5=isArguments_1,isArray$f=isArray_1,isArrayLikeObject$2=isArrayLikeObject_1,isBuffer$4=isBufferExports,isFunction$4=isFunction_1,isObject$i=isObject_1,isPlainObject$2=isPlainObject_1,isTypedArray$4=isTypedArray_1,safeGet$1=_safeGet,toPlainObject=toPlainObject_1;function baseMergeDeep$1(a,j,_e,et,tt,nt,rt){var it=safeGet$1(a,_e),ot=safeGet$1(j,_e),ct=rt.get(ot);if(ct){assignMergeValue$1(a,_e,ct);return}var ut=nt?nt(it,ot,_e+"",a,j,rt):void 0,dt=ut===void 0;if(dt){var pt=isArray$f(ot),mt=!pt&&isBuffer$4(ot),vt=!pt&&!mt&&isTypedArray$4(ot);ut=ot,pt||mt||vt?isArray$f(it)?ut=it:isArrayLikeObject$2(it)?ut=copyArray$1(it):mt?(dt=!1,ut=cloneBuffer$1(ot,!0)):vt?(dt=!1,ut=cloneTypedArray$1(ot,!0)):ut=[]:isPlainObject$2(ot)||isArguments$5(ot)?(ut=it,isArguments$5(it)?ut=toPlainObject(it):(!isObject$i(it)||isFunction$4(it))&&(ut=initCloneObject$1(ot))):dt=!1}dt&&(rt.set(ot,ut),tt(ut,ot,et,nt,rt),rt.delete(ot)),assignMergeValue$1(a,_e,ut)}var _baseMergeDeep=baseMergeDeep$1,Stack$3=_Stack,assignMergeValue=_assignMergeValue,baseFor$1=_baseFor,baseMergeDeep=_baseMergeDeep,isObject$h=isObject_1,keysIn$3=keysIn_1,safeGet=_safeGet;function baseMerge$3(a,j,_e,et,tt){a!==j&&baseFor$1(j,function(nt,rt){if(tt||(tt=new Stack$3),isObject$h(nt))baseMergeDeep(a,j,rt,_e,baseMerge$3,et,tt);else{var it=et?et(safeGet(a,rt),nt,rt+"",a,j,tt):void 0;it===void 0&&(it=nt),assignMergeValue(a,rt,it)}},keysIn$3)}var _baseMerge=baseMerge$3;function identity$4(a){return a}var identity_1=identity$4;function apply$4(a,j,_e){switch(_e.length){case 0:return a.call(j);case 1:return a.call(j,_e[0]);case 2:return a.call(j,_e[0],_e[1]);case 3:return a.call(j,_e[0],_e[1],_e[2])}return a.apply(j,_e)}var _apply=apply$4,apply$3=_apply,nativeMax$1=Math.max;function overRest$2(a,j,_e){return j=nativeMax$1(j===void 0?a.length-1:j,0),function(){for(var et=arguments,tt=-1,nt=nativeMax$1(et.length-j,0),rt=Array(nt);++tt<nt;)rt[tt]=et[j+tt];tt=-1;for(var it=Array(j+1);++tt<j;)it[tt]=et[tt];return it[j]=_e(rt),apply$3(a,this,it)}}var _overRest=overRest$2;function constant$1(a){return function(){return a}}var constant_1=constant$1,constant=constant_1,defineProperty$2=_defineProperty$2,identity$3=identity_1,baseSetToString$1=defineProperty$2?function(a,j){return defineProperty$2(a,"toString",{configurable:!0,enumerable:!1,value:constant(j),writable:!0})}:identity$3,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut$1(a){var j=0,_e=0;return function(){var et=nativeNow(),tt=HOT_SPAN-(et-_e);if(_e=et,tt>0){if(++j>=HOT_COUNT)return arguments[0]}else j=0;return a.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$2=shortOut(baseSetToString),_setToString=setToString$2,identity$2=identity_1,overRest$1=_overRest,setToString$1=_setToString;function baseRest$5(a,j){return setToString$1(overRest$1(a,j,identity$2),a+"")}var _baseRest=baseRest$5,eq$6=eq_1$1,isArrayLike$4=isArrayLike_1,isIndex$3=_isIndex,isObject$g=isObject_1;function isIterateeCall$2(a,j,_e){if(!isObject$g(_e))return!1;var et=typeof j;return(et=="number"?isArrayLike$4(_e)&&isIndex$3(j,_e.length):et=="string"&&j in _e)?eq$6(_e[j],a):!1}var _isIterateeCall=isIterateeCall$2,baseRest$4=_baseRest,isIterateeCall$1=_isIterateeCall;function createAssigner$2(a){return baseRest$4(function(j,_e){var et=-1,tt=_e.length,nt=tt>1?_e[tt-1]:void 0,rt=tt>2?_e[2]:void 0;for(nt=a.length>3&&typeof nt=="function"?(tt--,nt):void 0,rt&&isIterateeCall$1(_e[0],_e[1],rt)&&(nt=tt<3?void 0:nt,tt=1),j=Object(j);++et<tt;){var it=_e[et];it&&a(j,it,et,nt)}return j})}var _createAssigner=createAssigner$2,baseMerge$2=_baseMerge,createAssigner$1=_createAssigner,merge$1=createAssigner$1(function(a,j,_e){baseMerge$2(a,j,_e)}),merge_1=merge$1;const merge$2=getDefaultExportFromCjs$1(merge_1),en$1={setup:{connect:{title:"Signature Required",scan:"Connect your DID Wallet to become the owner of this server",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},keyPair:{title:"Derived KeyPair Required",scan:"Connect your DID Wallet to generate a key-pair for this app",confirm:"Review this operation on your DID Wallet",success:"Your key pair is securely stored"},verify:{title:"Ownership Credential Required",scan:"Connect your DID Wallet to provide ownership credentials",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},accept:{title:"Accepting server require ownership certificates",scan:"Connect your DID Wallet to provide ownership credentials",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},title:"Setup Blocklet Server",steps:{eula:"End User License Agreement",eulaFooter:"I have read and agreed to the terms of the EULA",connect:"Connect Owner DID Wallet",verify:"Verify Ownership",basicSettings:"Basic Settings",launchApp:"Launch Application",complete:"Complete"},congratulation:"Congratulations! Your Blocklet Server is secure and ready to use",redirectButton:"Take me to dashboard!"},login:{loginTo:"Connect to",description:"Only server owner and approved members can access the dashboard",switchDid:{title:"Switch DID Wallet",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},switchSpecifiedDid:{title:"Switch DID Wallet",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},connect:{title:"Connect DID Wallet",scan:"Connect your DID Wallet to provide passport",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"}},acceptServer:{title:"Claim Server with Ownership NFT",tooltip:"If you received a server ownership nft, you can claim your owner passport with this link."},exchangePassport:{title:"Get Passport with NFT",success:"You have successfully get your passport and logged in with the passport",login:"Login",tooltip:"If you own NFT from collection {collections}, you can exchange your passport with this link.",dialog:{title:"Get Passport with NFT",scan:"Connect your DID Wallet to present your NFT to get a passport",confirm:"Select NFT on your DID Wallet",success:"Passport has been successfully exchanged"}},payablePassport:{title:"Purchase passport with payment",tooltip:"If you do not have a passport, you can purchase a passport with this link."},sidebar:{dashboard:"Dashboard",blocklets:"Blocklets",console:"Console",settings:"Settings"},system:{total:"Total",used:"Used",free:"Free",cores:"Number of cores",instances:"Number of instances"},common:{invalid:"Invalid",about:"About",access:"Access",change:"Change",upload:"Upload",accessKey:"Access Keys",action:"Action",actions:"Actions",add:"Add",address:"Address",afterTime:"After {time}",allow:"Allow",alreadyExist:"already exists",approve:"Approve",approved:"approved",appUrl:"APP Url",auditLogs:"Audit Trail",author:"Author",avatar:"Avatar",back:"Back",basic:"Basic",basicInfo:"Basic Information",profile:"Profile",bind:"Bind",blocklet:"Blocklet",blocklets:"Blocklets",blockletsStorage:"Blocklets Storage",cacheStorage:"Cache Storage",cancel:"Cancel",certificate:"certificate",category:"Log Topic",click:"Click to copy",close:"Close",collapseAll:"Collapse All",community:"Community",complete:"Complete",componentBasicInfo:"Component Basic Information",components:"Blocklets",config:"Configure",configuration:"Configuration",configNavigation:"Navigation",configSuccess:"Config successfully",confirm:"Confirm",connect:"Connect",console:"Console",continue:"Continue",continueWith:"Continue With",copiedTip:"Copied",copyAndClose:"Copy & Close",copyTip:"Click To Copy",coreStorage:"Core Storage",cpu:"CPU",create:"Create",createSuccess:"Create Access Key",created:"Created At",createdAt:"Created At",createdBy:"Created By",dAddress:"Decentralized Identifiers (DID)",dataStorage:"Storage on Local Disk",delConfirm:"Delete",delConfirmDescription:"Confirm delete {data}?",delete:"Delete",dependents:"Dependents",description:"Description",detail:"Detail",did:"DID",disk:"Disk",diskInfo:"Disk Info",docker:"IS Docker",documentation:"Documentation",domain:"Domain",downgradeTo:"Downgrade to",download:"Download",connectToStore:"Connect to Store",blockletStudio:"Studio",uploaded:"Uploaded",downloading:"Downloading",edit:"Edit",email:"Email",phone:"Phone",empty:"Empty",emptyData:"No results found",enable:"Enable",engine:"Engine",env:"Environment",environment:"Environment",expandAll:"Expand All",expired:"Expired",expires:"Expires",export:"Export",externalIp:"External IP",failed:"Failed",filter:"Log Filter",fingerprint:"Fingerprint",finish:"Finish",forbid:"Forbid",free:"Free",general:"General",gitpod:"IS Gitpod",goEULA:'Click to view "End User License Agreement"',group:"Group",image:"IS Image",install:"Install",installed:"Installed",installedAt:"Installed At",installSuccess:"Successfully installed",installing:"Installing",internalIp:"Internal IP",introduction:"Introduction",invite:"Invite",inviting:"Inviting",ip:"IP",isPublic:"Public",issue:"Issue",issuer:"Issuer",item:"Item",joined:"Joined",key:"Key",lastPublishedAt:"Published At",launcher:"Launcher Information",leavePageTip:"Are you sure to leave the page?",link:"Link",loading:"loading",log:"View Logs",logStorage:"Log Storage",login:"Login",logo:"Logo",logout:"Logout",logs:"Logs",manageTeam:"Manage Team",marketplace:"Marketplace",member:"Member",members:"Members",memory:"Memory",meta:"Meta Data",analytics:"Analytics",runtime:"Runtime",traffic:"Traffic",more:"More",mountPoint:"MountPoint",name:"Name",next:"Next",no:"No",noData:"No records to display",notice:"Unexpected bad things will happen if you don’t read this!",noticeTitle:"Notice",notification:"Notification",open:"Open",visitStore:"Visit Store",visitTarget:"Visit {name}",management:"Management",os:"Operating System",overview:"Overview",owner:"Owner",page404:"404 Page",passport:"Passport",permission:"Permission",port:"Port",pre:"Previous",preferences:"Preferences",preview:"Preview",protected:"Protected",protocol:"Protocol",purchase:"Purchase",reconnect:"Reconnect",disconnect:"Disconnect",readMore:"More",redirect:"Redirect",redirectCode:"Redirect Code",redirectPermanently:"Permanent Redirect",redirectTemporary:"Temporary Redirect",redirectUrl:"Redirect URL",rewrite:"Rewrite",release:"Release",rewriteUrl:"Rewrite URL",reject:"Reject",reload:"Reload",remark:"Remark",remove:"Remove",removeSuccess:"Remove successfully",renew:"Renew",reportIssue:"Report an issue",required:"Required",requiredErrorText:"{name} is required",resource:"Resource",restart:"Restart",restore:"Restore",retry:"Retry",revoke:"Revoke",role:"Role",running:"running",runtimeInfo:"Runtime Info",save:"Save",saveChanges:"Save Changes",saveSuccess:"Saved successfully",scheduleFailed:"schedule failed",scheduleSuccess:"successfully scheduled",scope:"Scope",screenshot:"Screenshot",search:"Search",security:"Security",serverDid:"Server DID",serverVersion:"Server Version",setting:"Settings",start:"Start",status:"Status",stop:"Stop",storage:"Storage",backup:"Backup",store:"Store",succeeded:"Succeeded",subscription:"Subscription",support:"Support",switch:"Switch",team:"Team",the:"The",timeAgo:"{time} ago",title:"Title",type:"Type",unavailable:"Unavailable",update:"Update",updateAvailable:"New version {version} available",updatedAt:"Updated At",updatedBy:"Updated By",upgrade:"Upgrade",upgradeTo:"Upgrade to",upgrading:"Upgrading",uptime:"Uptime",url:"URL",valid:"Valid",value:"Value",version:"Version",visit:"Visit",waiting:"Waiting",webhook:"Integrations",yes:"Yes",invalidParam:"Invalid Params",launch:"Launch",price:"Price",redirecting:"Redirecting",error:"Error",reminder:"Reminder",normal:"Normal",gateway:"Gateway",verifyNFT:"Verify NFT",errorMessage:"Error Message: ",slugifyHint:"The actual mount point will be: {value}",strategy:"Strategy",auto:"Auto",manual:"Manual",progress:"In progress",startTime:"Start time",endTime:"End time",selected:"Selected",timeoutError:"Timeout error",tags:"Tags",sourceApp:"Belong to App"},blocklet:{external:"External",notFound:"Blocklet not found on this server, maybe it has been deleted",installFromMarket:"Install New Blocklets",installFromUrl:"Install From Url",installFromCreate:"Create Blocklet",titleValidationError:"Title length must be between 3 and 20 characters",descriptionValidationError:"Description length must be between 3 and 80 characters",installFromDiskBackup:"Restore from this server",installedAt:"Installed At",internal:"Internal",startedAt:"Started At",stoppedAt:"Stopped At",urlEmptyTip:"No Access URL, ",goToAddRule:"Go To Add",services:"Exposed Services",upstreamPort:"Upstream Port",noService:"No Services",appId:"App DID",appPid:"Permanent DID",whyNeedAppPid:"If your application has been migrated, the permanent DID is the DID generated when this Blocklet was originally installed",alsoKnownAs:"Also Known As",skSource:"Owner Wallet",reloadSuccess:"Blocklet was reloaded successfully",statusTip:"Blocklet is {status}",initialUptime:"Less than 1m",dashboard:"Blocklet Dashboard",noComponent:"Application has no components and cannot be started",fromUrl:{title:"Install Blocklet",label:"Blocklet Meta URL",description:"The URL should point to the Meta File of the Blocklet. If you need to refer to a local file, please add the file:// prefix, e.g. file:///Users/foo/blocklet.json.",confirm:"Install",step0:"Input URL",step1:"Confirm Meta Info",existTipPrefix:"Blocklet with the same DID already exists, the version is",existTipSuffix:", Please install a higher version."},action:{stopDescription:"Stopping the blocklet will make its public interfaces unaccessible, which may cause end user failures",stopComponentDescription:"Stopping the component will make its public interfaces unaccessible, which may cause end user failures",confirmStop:"Yes, Stop It",cancelDownloadDescription:"Cancel download {name} ?",removeApplicationDescription:"Removing the application will erase code and data generated by this application, which is not recoverable if you do not have any backups",removeApplicationAfterBackup:"Backup and remove the application. You can restore the application from this server if you need",removeApplicationComplete:"Remove both code and data for this application",removeComponentDescription:"Removing the component will erase code and data generated by this component, which is not recoverable if you do not have any backups",removeComponentKeepData:"Keep data for this component, only remove code",removeComponentComplete:"Remove both code and data for this component",confirmRemove:"Yes, Remove It",confirmComponentRemove:"Yes, Remove It",upgradeDescription:"Upgrading the blocklet will make it temporarily unavailable, are you sure to continue?",confirmUpgrade:"Yes, Upgrade It",confirmRestart:"Yes, Restart It",restartDescription:"Restarting the blocklet will temporarily suspended and may not start because of a configuration change"},dev:{modeTip:"Please switch Blocklet Server to DEBUG mode"},index:{tableTitle:"Manage Your Blocklets",noBlocklet:"No blocklets found in this Blocklet Server, install a blocklet from market place to start."},admin:{iframeTitle:"Blocklet Admin Interface",title:"Admin Interface",noContent:"This blocklet does not have a admin interface",securityError:"SecurityError: Can not open the admin url from accessing a cross-origin frame"},config:{name:"App Name",description:"App Description",sk:"Secret key for the app wallet",logoSquare:"App Logo",logoRect:"Rect logo",logoRectDesc:"Usually displayed at the top of the page, default to app logo",logoFavicon:"Favicon",logoFaviconDesc:"Usually displayed in the browser's address bar or tab page, default to app logo",clusterSize:"Instance count when run this blocklet in cluster mode",copyrightOwner:"Copyright Owner (Display in footer)",copyrightYear:"Copyright Year (Display in footer)",deletable:{name:"Delete Protection",enable:"This blocklet can NOT currently be deleted",disable:"This blocklet can currently be deleted"},tenantMode:{name:"Multiple Tenant Mode",multiple:"This blocklet runs in multiple tenant mode, data should be isolated for each tenant",single:"This blocklet runs in single tenant mode, all data are shared"},walletType:{name:"Wallet Type",description:"Blocklet instance wallet type, will change the derived DID"},languages:"Supported Languages",selectLanguagesTip:"Adjust the order by removing and re-adding",languagesSearch:"Search by Country's Local Name, English Name, or ISO Code...",passportColor:"Passport Color",appUrl:"App URL",access:{title:"Who Can Access",description:"Who can access the blocklet",useDefault:"Use default",defaultDescription:"Use the application's default configuration",whoCanAccess:{all:{title:"Accessible to all",description:"Open to the world anyone can access without passport"},owner:{title:"Only me can access",description:"You must provide owner passport to access this application"},invited:{title:"Only invited people can access",description:"You can invite members later in the admin page"}},publicToStore:"Public On Store",publicInstanceTip:"The access address of this blocklet will be displayed in the Store (along with your DID for accepting donations)",updatedTip:"Access Control Modified"},changedTip:"Configuration updated, please restart Blocklet",missingRequired:"Missing required configuration to start the blocklet",gotoFix:"Go to fix",environment:{key:"Configuration key",value:"Configuration value",keyValueRequired:"Configuration key and value must be specified",invalidKey:"Configuration key must not start with BLOCKLET_ or COMPONENT_",deleteForbidden:"This configuration is required and should not be deleted",tip:"Configurations prefixed with BWA_ should not contain sensitive information because they will be sent to the browser"},dangerZone:"Danger Zone",blockletTypeChangeTip:"Wallet Type will be changed to <b>{value}</b>",appDidChangeTip:"This operation will change the DID of the application, which will lead to the following problems. Please confirm after careful evaluation:",appDidChangeTipL1:"The user's account connected to this application will change",appDidChangeTipL2:"The DID domain name of the application will change, and the original domain name will become invalid",appSkChangeTip:"You are changing application secret key",walletTypeTitle:"Update Wallet Type",appSkTitle:"Update Application Secret Key",sharedToAllComponents:"Will be shared to all components",session:{ttl:"Login session validity period (user will be asked to login again if they have no activity on this site for {day} days)",day:"{day} day",days:"{day} days"},clearCache:{name:"Cache Management",purpose:"Manage files cached in router and blocklet services",title:"Confirm Cache Clear?",action:"Clear Cache",success:"Successfully cleared {count} cache entries",description:"Are you sure you want to clear cached files in router and blocklet service? this operation may cause slight performance downgrade in the short term"}},overview:{source:"Source",deployedFrom:"Deployed From",accessControl:"Access Control",viewInStore:"View It In Store"},diskInfo:{empty:"Disk info not available now!",appDir:"App Directory",dataDir:"Data Directory",logDir:"Log Directory",cacheDir:"Cache Directory"},runtimeInfo:{noRunning:"Runtime information will be available when blocklet is running!",memoryUsage:"Memory Usage",cpuUsage:"CPU Usage",uptime:"Uptime",port:"Port",processId:"Process ID"},dist:{downloadLink:"Download Link",verify:"Verify"},status:{added:"Added",waiting:"Waiting",downloading:"Downloading",extracting:"Extracting",installing:"Installing",upgrading:"Upgrading",installed:"Installed",created:"Created",starting:"Starting",running:"Running",stopping:"Stopping",stopped:"Stopped",error:"Error",deleting:"Deleting",corrupted:"Corrupted",purchasing:"Waiting for purchase",purchased:"Purchased",verifying:"Verifying purchase",resource:"Resource"},list:{download:"Download",star:"Star"},component:{container:"Global Config",showContainer:"Show Global Config",didSpaceConfig:"Configure DID Spaces",didSpaceConfigTip:"Complete the following authorize process to store application data in DID Spaces",didSpaceConnected:"Storage being authorized to: {endpoint}",checkUpdateTitle:"Check for Updates",updateTitle:"Update Blocklets",noUpdate:"No Blocklets to update",add:"Add Blocklet",selectComponent:"Select Blocklet",selectRegistry:"Select Blocklet Store",selectRegistryTip:"You can switch blocklet store to see more components",selectInstance:"Select Instance",selectInstanceTip:"You can select an existing instance or create a new instance. Existing instances will use previously saved configuration and data",newInstance:"Create New Instance",noComponent:"No Blocklets",mountPoint:"What's the mount point?",mountPointTip:"If you set mount point to '/my-prefix', then all requests that begins with that mount point will be routed to the selected Blocklet",delete:"Delete Blocklet",deleteDescription:"This Blocklet will not be accessible after deletion. Confirm delete?",purchase:"Payment Required",tip:{stopBlocklet:"Please stop running Blocklet first",requiredBy:"The Blocklet is required by {name}"},choose:"Choose",upgrade:"Upgrade",addWithName:"Add Blocklet To {name}",relatedComponents:"Related Blocklets",required:"Required",noDependencies:"{name} doesn't have any dependencies",installed:"Installed",installingTip:"Installing component, please wait...",installingCanCloseWindowTip:"Installing component in the background, you can safely close this window",installSuccessTip:"Congratulations, the component was installed successfully!",missDownloadTokenTip:"Cannot add paid component without valid download token",purchaseComponentSecondCheckTip:"Please present your blocklet purchase NFT to continue",installComponentError:"There was an error installing the component, please retry again",downloadComponentError:"There was an error downloading the component, please retry again",addComponentTip:{introduction:"Welcome to the Add Component Wizard",isPurchase:"You need to Verify NFT before use <b>{name}</b> as a component;",belowInformation:"Below is the information for the component: ",verifyNFT:"Please select the Verify NFT method",config:"Please fill in the configuration of the component",environment:"Please fill in the environment of the component",fromUrl:"Add Blocklet From Url"},addNext:"Add {name}",upgradeNext:"Upgrade {name}",setting:"Settings"},router:{urlPath:"URL Path",noRunning:"The blocklet is not currently started. Unable to access through the following address!",securitySetting:"Security Setting",checkUrlAccessible:"Check the accessibility of the address",urlInaccessible:"It may be due to network reasons, the address is temporarily inaccessible",noAccessibleUrl:"No accessible URL",domainLockTooltip:"The system generated Domain cannot be edited.",urlLockTooltip:"The system generated URL Path cannot be edited.",showAllDomains:"Show all domains",showAllDIDs:"Show all DIDs",currentDomainTip:"You are accessing the current page through this domain"},export:{title:"Export Blocklet",name:"Bundle Name",nameTip:'e.g. "my-blocklet-name" or "@my-scope/blocklet-name"',result:"What's next",exportSource:"Export Source",success:"Blocklet successfully exported",resultTipStart:"With",resultTipEnd:"you can build and publish this blocklet within minutes",uploadedComponentTip:"Directly uploaded components cannot be exported:"},migrate:{title:"Migrate Application",scan:"Connect your DID Wallet to generate a key-pair for this application",confirm:"Review this operation on your DID Wallet",success:"Your application is successfully migrated, the page will be refreshed in {sec} seconds",intro:{l1:"Click here",l2:"to migrate your application to new version (changes are disabled before the migration completes)",l3:"1. The application DID will be fully controlled from your DID Wallet.",l4:"2. The application data will be migrated, and no further changes required.",l5:"3. The new application structure will give you more flexibly when change components.",l6:"4. Please do not change component mount points before component new version is out."},tip:{duplicate:"Find duplicate component {name}, please delete useless components and migrate again",running:"Please stop blocklet before migration"}},error:{isRunning:"Blocklet is running, please stop it first",isInProgress:"Blocklet is in progress, please wait for it to finish"},publish:{connectOrUpload:"Connect or Upload",projectSettings:"Project Settings",noStoreSelected:"Please select one of the existing stores or add a new store to continue",autoUploadTip:"Upload release to connected Blocklet Stores automatically after creation",possibleSameStoreTip:"Try resolving dependency blocklets to the same Blocklet Store before each uploading when possible",needProjectId:"Please create a project first",developerInfo:"Developer Information",branding:"Branding",brandingHelp:"More information about the blocklet will be displayed in the Store",download:"Download {name}",deleteStoreTip:"Are you sure you want to remove {name} from the connect Store list?",delete:"Delete {name}",copyInstallUrl:"Copy Install URL",installToThisServer:"Install to this server",createResource:"Create Resource",blockletStudio:"Blocklet Studio",tenantScope:"Tenant",addResource:"Add Blocklet",productTitle:"Product",versionTitle:"Versioning",imgTitle:"Images",resourceTitle:"Resources",resourceSelect:"Select resource from following blocklets",resourceUpload:"Upload resource from your disk (index.html is required in the archive)",blockletEmptyTip:"There aren’t any blocklets here",createBlockletTip:"You can create new blocklet through existing resources, components, and configuration in this application",createBlocklet:"New blocklet",reconnectStoreTip:"After reconnecting, a new developer will be bound. Are you sure you want to reconnect?",disconnectStoreTip:"After disconnecting, the blocklet will be removed from the store. Are you sure you want to disconnect?",componentNotRunning:"Blocklet {name} is not running, please start it first",allComponentsNotRunning:"Blocklets is not running, please start it first",releaseEmptyTip:"There aren't any releases here",resourceEmptyTip:"No available resources",viewLastRelease:"View last release",createReleaseTip:"You can create a release of the blocklet, along with release notes and resources, for other people to use",createRelease:"Create release",deleteReleaseTip:"The release cannot be recovered after deletion",createBlockletDid:"Create from DID Wallet",createReleaseSuccess:"Release created successfully",saveDraftSuccess:"Draft saved successfully",packTip:"Currently blocklets can be installed directly as applications. Components and application configurations will be automatically included in the Blocklet",resourceTip:"Currently, as a Resource Blocklet, it cannot be directly installed from the Store.",whyCantSeeInStore:"You need to publish the blocklet on connected store before you can see it in the store listing page",whyCantSeeResourceBlockletInStore:"Resource Blocklet are hidden from the store listing page by default",resourceChangedWarning:"You have modified the resource, please save it in time",install:"Install {name}",installResourceTip:"Install Url:",installResourceTip2:"If you want to see more tips, please visit",installResourceHelp:"Help Document",componentIncluded:"Included",componentForceRequired:"Required",steps:{branding:"Describe the basic information of your Blocklet. This information will be presented to users in the store.",introduction:"A clear introduction can effectively highlight your Blocklet. You can use Markdown syntax to write and preview it.",resources:"Please select the resources that need to be associated with the current Blocklet, as these resources will be installed along with the Blocklet.",blocklets:"Please select the Blocklets that need to be associated and installed when installing the current Blocklet.",version:"Set the release version and the change log."},connect:{title:"Create Blocklet DID",scan:"Scan the QR code below to generate Blocklet DID",confirm:"Confirm using DID Wallet",success:"Blocklet DID has been generated, please continue your operation"},deleteProject:{title:"Delete {name}",scan:"Scan the QR code below to delete {name}",confirm:"Confirm using DID Wallet",success:"Blocklet has been deleted, please continue your operation",description:"Are you sure you want to delete the Blocklet? Here are the issues you might encounter:",tip1:"The Blocklet cannot be recovered after deletion.",tip2:"You will no longer be able to publish new versions to the deleted Blocklet, which means that the Blocklet will not be updated in the Store anymore.",tip3:"Deleting the Blocklet will not affect its currently published version in the Store."},saveDraft:"Save Draft",releaseNote:"Release Note",errorTip:{noDid:"Blocklet DID is required",noFirstDid:"Please create Blocklet DID first",noTitle:"Blocklet Title is required",noVersion:"Blocklet Version is required",inValidVersion:"Invalid Blocklet Version",noResource:"Please select upload resource to be included in the blocklet",noDescription:"Blocklet Description is required",noNote:"Release Note is required"},uploadToStoreSuccess:"Blocklet upload to Store successfully, you need publish it in the Store",publishToStoreSuccess:"Blocklet published to Store successfully",connectStoreSuccess:"Blocklet Store connected successfully"}},dashboard:{nodeDid:"Node",ownerDid:"Owner",routingEngine:"Routing Engine",ownerNftURL:"Owner NFT",expirationLeft:"Expiration Left",startFromCrashTip:"Blocklet Server did not exit normally last time, please manually start the blocklets that needs to be run.",runtimeConfig:{blockletMaxMemoryLimit:"Blocklet Max Memory Limit",daemonMaxMemoryLimit:"Server Max Memory Limit",proxyMaxMemoryLimit:"Event Bus Max Memory Limit"}},store:{nameSort:"Name",popularSort:"Popularity",headerDescription:"Find and Install Your Blocklets",detail:{purchase:"Purchase {name}",open:"Open {name}",install:"Install {name}",upgrade:"Upgrade {name}",empty:"No introduction"},blockletRegistry:{changeFailed:"Change Blocklet Store Failed: ",addFailed:"Add Blocklet Store Failed: ",editFailed:"Edit Blocklet Store Failed: ",switchRegistry:"Switch Blocklet Store",addRegistry:"Add Blocklet Store",editRegistry:"Edit Blocklet Store",deleteRegistry:"Delete Blocklet Store",haveSameRegistry:"The same blocklet store exists",registryName:"Blocklet Store Name",registryUrl:"Blocklet Store URL",registryNameEmpty:"Blocklet Store name cannot be empty",registryUrlEmpty:"Blocklet store url cannot be empty",deleteDesc:'Confirm Delete blocklet store {name} ?<br/><span style="color: {color}">*After removing this blocklet store, you cannot update the apps installed from this blocklet store unless you add them again.</span>',confirmDesc:"Please input {name} to delete"},purchase:{title:"Purchase {name}",confirmed:"Your blocklet purchase NFT is verified",declined:"You do not provided valid the blocklet purchase NFT",waiting:"Waiting for purchase complete...",purchase:{title:"Purchase NFT",description:"Pay some token before installing this blocklet if you have not purchased this blocklet"},verify:{title:"Verify NFT",description:"Your NFT will be verified before installing this blocklet if you have purchased and hold the purchase NFT in your DID Wallet",auth:{title:"Purchase Credential Required",scan:"Connect DID Wallet to provide blocklet purchase NFT",confirm:"Review this operation on your DID Wallet",success:"Your purchase NFT is verified, and installing has started"}},auth:{title:"Purchase {name}",scan:"Scan following QRCode with your DID Wallet",confirm:"Confirm on your DID Wallet",success:"Purchase NFT sent to your DID Wallet"},launch:"Launch {name}",autoLaunch:"{name} successfully purchased, redirecting to launch page..."}},setting:{saveSuccess:"Settings Saved Successfully",unSavedTip:'There are unsaved changes, please click "Save Changes" to save them.',unSavedLeaveTip:"There are unsaved changes, are you sure to leave the page?",form:{name:"Name Your Server",nameRequired:"Server description is required",namePlaceholder:"Server Name",description:"Describe Your Server",descriptionHolder:"Server Description",descriptionRequired:"Server description is required",domain:"Your Server Domain Name",domainPlaceholder:"Server Domain Name",domainRequired:"Server domain is required",ipPlaceholder:"IP",ipRequired:"IP is required",registry:"Blocklet Store",registryPlaceholder:"Blocklet store to fetch blocklets",registryRequired:"Blocklet store is required ",registerUrl:"Blocklet Launcher URL",registerUrlPlaceholder:"Input the URL of your preferred Blocklet Launcher, you can use the official one safely",webWalletUrl:"DID Wallet URL",webWalletUrlPlaceholder:'Please input the URL of your hosted "DID Wallet", you can use the official one safely',nftDomainUrl:"NFT Domain URL",nftDomainUrlPlaceholder:'Please input the URL of your hosted "NFT Domain", you can use the official one safely',enableWelcomePage:"Enable welcome page",welcome:{switchLabel:"Welcome Page"},security:{switchLabel:"File System Isolation",switchTips:"After disabling this option, the file system of the Blocklet will no longer be in isolation, which may pose a risk of malicious software damaging the file system.",warningTips:"The file system isolation feature cannot take effect. Please upgrade the node.js version (current version is {version}) to v21.6.0 or higher."},upgrade:{title:"Upgrade Blocklet Server to {version}",description:"During the upgrade, your Blocklet Server will enter maintenance mode for a few minutes while the update is completed.",dialog:'Click on "confirm" to install the update. Blocklet Server will enter maintenance mode until the update is completed and return to production mode automatically.',confirm:"Upgrade",switchLabel:"Auto Update Check",enableBetaRelease:"Enable Beta Release",setup:"Preparing the upgrade",installing:"Installing Blocklet Server v{version}",restarting:"Restarting Blocklet Server",cleanup:"Migrating Blocklet Server data",verifying:"Verifying Blocklet Server v{version}",rollback:"Rollback Blocklet Server",complete:"Upgrade complete!",progress:"Upgrading {name}",check:"Check for Updates",latest:"You are running the latest version."},restart:{title:"Restart Blocklet Server",description:"During the restarting, your Blocklet Server will enter maintenance mode while the restart is completed.",dialog:'Click on "confirm" to restart. Blocklet Server will enter maintenance mode until the restart is completed and return to production mode automatically.',confirm:"Restart",setup:"Preparing the restart",verifying:"Verifying Blocklet Server",restarting:"Restarting Blocklet Server",cleanup:"Ensure everything is OK",rollback:"Cleanup the dirty state",complete:"Maintain complete!",progress:"Restarting {name}"},register:{titleAdded:"Added to Blocklet Launcher",title:"Add to Blocklet Launcher",description:"Once added, you can launch blocklets to this blocklet server from {url}.",descriptionOnAdded:"you can launch blocklets to this blocklet server from {url}.",btn:"Add",update:"Update",added:"Added",addSucceed:"Add succeed",updateSucceed:"Update succeed",detecting:"Detecting",timeout:"Detection timeout, please check if the blocklet launcher is started"},monitor:{diskThreshold:"Send alert when disk usage exceeds (%)",diskThresholdPlaceholder:"Please set the disk usage alert threshold"}},accessKey:{accessKeyId:"ACCESS KEY",lastUsed:"Last Used At",tip:"Please enter a name for this access key for future reference:",saveSecretTip:"This is the only time that your Access Secret key can be viewed and cannot be recovered. However, you can create new access keys at any time",iKnow:"I have copied and saved the Access Secret",showSecret:"Show Secret Access Key",hideSecret:"Hide Secret",title:"Delete Access Key",descriptionNoTime:"This will permanently delete the access key {key} with name {name}, which is (never used before)",description:"This will permanently delete access key {key} with name {name}, which is (last used on {time}, {timeAge})",confirm_desc:"Please input {name} to delete",remark:"Access Key Name",remarkInvalid:"Access Key Name is required"},webhook:{add:"Add Integration",delTitle:"Delete Integration",requiredError:"Please provide a valid {type}",confirm_desc:"Please input {name} to delete",test:"Test",description:"This will permanently delete integration with ID {id}",columns:{description:"ID",params:"Params",createdAt:"createdAt"}}},notification:{title:"Activities",empty:"No activities yet",viewAll:"View All",showRead:"Show Read",markAllAsRead:"Mark All as Read",markAsRead:"Mark As Read",proceed:"Proceed",checkingForUpdates:"Checking for updates...",installComponentError:"Not found uninstalled component {name}",installingComponent:"Installing component {name}",pushKit:{enable:"Enable PushKit notification",endpoint:"PushKit endpoint",endpointInvalid:"PushKit endpoint is invalid URL",testSuccess:"Test PushKit send successfully",testFailed:"Test PushKit send failed",testReceiver:"PushKit receiver",testSend:"Test push-kit send",inputTestReceiver:"Please input test receiver did",receiverRequired:"PushKit receiver is required",pushPath:"Api path for push-kit (default /api/push)",did:"PushKit Blocklet DID",customOptions:"Custom Options"},email:{enable:"Enable email notification",from:"Email sender",host:"SMTP server host",port:"SMTP server port",user:"SMTP server username",secure:"Enable secure connection",password:"SMTP server user password",fromRequired:"Email sender is required",fromInvalid:"Email sender is invalid",receiverRequired:"Email receiver is required",receiverInvalid:"Email receiver is invalid",hostRequired:"SMTP server host is required",hostInvalid:"SMTP server host is invalid",portRequired:"SMTP server port is required",portInvalid:"SMTP server port is invalid, port should be between 1 and 65535",userRequired:"SMTP server username is required",passwordRequired:"SMTP server user password is required",testSuccess:"Test email send successfully",testFailed:"Test email send failed",testReceiver:"Email receiver",testSendEmail:"Test email send",inputTestReceiver:"Please input test receiver email",disable:"Unsubscribe email notification",disableDescription:"After unsubscribe, you will no longer receive email notifications. To receive email notifications, you can subscribe it again on this page.",unsubscribe:"Unsubscribe email notification",unsubscribeDescription:"After unsubscribe, you will no longer receive any email notifications.",subscribe:"subscribe",subscribeDescription:"To receive email notifications, you can subscribe it again on settings page."},comingSoon:"More notification channel are under construction",unsubscribe:"Unsubscribe",unsubscribeSucceed:"Unsubscribe succeeded",unsubscribeFailed:"Unsubscribe failed",unsubscribeTokenRequired:"Unsubscribe token in required",unsubscribeTokenExpired:"Unsubscribe token is expired",unsubscribeTokenInvalid:"Unsubscribe token is invalid"},router:{routerSetting:"Domains & URLs",certSetting:"SSL Certificates",defaultSite:"Default",urlHelperText:"URL that do not start with HTTP/HTTPS are considered relative paths",empty:"Click on Actions to setup URL Mapping",healthy:{ok:"Blocklet or service is running",error:"Blocklet or service is not running or not installed"},service:{select:"Select Blocklet Services (Optional)",what:"Blocklet Services are pipelines executed against the request before redirecting to upstream blocklet"},nonProvider:{title:"Engine Change Warning",description:"If you change engine to none, your current page may not work properly because the previous engine will be stopped, are you sure to continue?",confirm:"I understand, continue"},validation:{urlRequired:"URL is required",redirectCodeRequired:"Redirect code is required",didRequired:"Blocklet is required",pathPrefixTooLong:"The URL Prefix cannot exceed {length} characters",pathPrefixCannotBeEmpty:"The URL Prefix cannot be empty",domainRequired:"Server domain is required",invalidUrl:"Please provide a valid URL",pathPrefixRequired:"URL prefix is required",redirectUrlRequired:"Redirect URL is required",rewriteUrlRequired:"Rewrite URL is required"},domain:{addSite:"Add Site",validate:{emptyTip:"Site domain cannot be empty",suffixTip:"Site domain cannot include {suffix}"},add:{title:"Add Domain Name",description:"Please provide a valid domain name",confirm:"Add",cancel:"Cancel",blocklet:"Select Blocklet",redirect:"Where to redirect the traffic?",port:"What port does your request handler need to listen to?",portTip:"This defaults to the main port of request handler, you can customize this",type:"Traffic Handler",component:"Select Component",pageGroup:"Page Group",pageGroupTip:"This component can render any group of pages listed above, leave empty to render all pages"},update:{title:"Update Site Domain",label:"Site Domain",description:"Please provide a valid site domain"},setup:{tipStart:"Add the DNS records for the domain",tipEnd:"as per the following guidelines",recordType:"Record Type",recordValue:"Record Value"},verify:{ok:"The domain resolution is normal",notResolved:"This domain neither resolved nor accessible, please check your DNS configuration"},https:{ok:"This domain has https enabled",bad:"This domain has not enabled https"},delete:{title:"Delete Site",description:'By confirming, you will delete your existing "{name}" site. Type "{name}" below and select Delete to complete the change, or select Cancel if you want to leave your site',confirm_desc:"Please input {name} to confirm"}},domainAlias:{nftDomain:"Automatic config with DID Domain",showTipHint:"How do I configure domain name resolution?",add:{title:"Add Additional Domain",domainDescription:"Please provide a valid domain name",forceTip:"Force add if domain name already exists",helperText:"If an HTTP or HTTPS URL is entered, it will be automatically converted into a domain name.",isDidDomainError:"This domain is a DID Domain. Please add it using the method for automatic domain configuration."},addCustomDomain:{name:"Custom Domain"},addDomainNFT:{showNFT:"Configure domain automatically",tips:"You can enter a domain purchased from DID Domain. If a DID Domain is detected, you must present the DID Domain NFT to continue.",connect:{title:"Please show your Domain NFT",scan:"Scan following QR code with DID Wallet to authorize to blocklet to use your domain",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"},buyTip:"DID Domain will do the domain name resolution automatically, no need to configure it manually, and the application will update the resolution record of the domain name automatically when needed. If your don't have DID Domain NFT yet, ",buy:"buy it now!"},delete:{title:"Delete",description:"After removing a domain alias, access to that alias may not be handled properly."}},domainSecurity:{title:"Domain Security",cors:{title:"Allowed CORS Domains",description:'Domain list that can send cross origin requests to {name}, comma separated, use "*" to allow anyone, which is not recommended',domainInvalid:"Please input a valid list of domain names"}},rule:{add:{title:"Add URL Mapping",confirm:"Add",pathPrefix:"What's the URL Prefix?",pathPrefixTip:"If you set prefix to '/my-prefix', then all requests that begins with that prefix will be routed to the configured blocklet",blocklet:"Which Blocklet will be handling those requests?",port:"Which port of the blocklet will be handling requests?",portTip:"This defaults to the main port of blocklet, if your blocklet listens on multiple ports, you can customize this",responseType:"Response Type",responseBody:"Response Content",responseBodyTip:"Paste your response content here, should not exceed 4096 characters",responseBodyRequired:"Response content can not be empty"},delete:{title:"Delete URL Mapping",description:'By confirming, you will delete your existing "{name}" URL Mapping. Type "{name}" below and select Delete to complete the change, or select Cancel if you want to leave your URL Mapping.',confirm_desc:"Please input {name} to delete",cancel:"Cancel"},update:{title:"Update URL Mapping",confirm:"Yes, Update",cancel:"Cancel"}},cert:{name:"Certificate Name",domain:"Domain Name",action:"Action",commonName:"Common Name",boundDomains:"Domains",source:"Source",expired:"Expired",leftDays:" days left",issuedOn:"Issued On",expiryOn:"Expiry On",fingerprintAlg:"Fingerprint Algorithm",validityPeriod:"Validity Period",matchedSites:"Matched Sites",upload:"Manual Upload",publicCertHelperText:"Public certificates can be downloaded",nonPublicCertHelperText:"Non-public certificates cannot be downloaded",protectedCertHelperText:"Protected certificates cannot be edited",unprotectedCertHelperText:"Unprotected certificates can be edited",issuing:"Certificate being generated",sourceTypes:{upload:"Manual Upload",lets_encrypt:"Let's Encrypt"},table:{nodata:"No data"},delete:{title:"Delete Certificate",description:"Confirm delete certificate of domain {domain}? Deleting it may affect related services. Please confirm it's safe before proceeding with the deletion.",confirm:"Confirm"},nginx:{title:"Update Certificate",titleAdd:"Add Certificate",pem:"SSL Certificate File",pemTip:'Please drop your server certificate file here, it should ends with ".pem" or ".crt"',key:"Private Key File",keyTip:'Please drop your server private key file here, it should ends with ".pem" or ".key"',confirm:"Save",cancel:"Cancel",invalidFile:"You have selected an invalid file",empty:"No file selected yet",source:"Source",sourceTypes:{upload:"Manual Upload",lets_encrypt:"Let's Encrypt"}},detail:{title:"Certificate Details"},genLetsEncryptCert:{title:"Generate Let's Encrypt certificate",dnsTip:"Please make sure the domain name has point to the current Blocklet Server.",description:"Adding a certificate will make the service more secure, and Blocklet Server will automatically renew the certificate before it expires."}},gateway:{reqLimit:{status:{true:"Enabled",false:"Disabled"},switchLabel:"Request Limit",rate:"Request Limit({rate} Request/Second)",ipHeaderLabel:"Customize client IP header(Optional)",ipHeaderDesc:"If the Blocklet Server is running behind some proxies, you can set the header of the client's real IP here. Optional, leave empty to use default."},cacheEnabled:{switchLabel:"Enable Gateway Cache"}}},noMatch:{desc:"We can't find the page that you're looking for"},health:{connectionErrorTip:"Blocklet Server can't connect to the network, please check if Blocklet Server has been stopped or there is a network issue",connectionRecoveryTip:"Blocklet Server connectivity has been recovered",connectionStoppedTip:"Blocklet Server has been stopped",wrongAccessUrlTip:"Blocklet Server access address is wrong, please use the correct access address"},debug:{title:"Your Blocklet Server is up and running!"},team:{invite:"Invite New",add:"Add New",member:{name:"Name",passport:"Passport",passports:"Passports",lastLogin:"Last Login",lastLoginIp:"Last Login IP",openProfile:"View Profile",source:"Register Source",source_derived:"Derived from oauth",source_wallet:"DID Wallet",filter:"Filter by",forbidLogin:"Forbid Login",forbidLoginDescription:"The user will not be able to connect to this application",allowLogin:"Allow Login",allowLoginDescription:"The user will be able to connect to this application",updateRole:"Update Role",deleteUser:"Delete User",deleteUserDescription:'Confirm delete user "{name}"?',revokePassport:"Revoke Passport",revokePassportDescription:"Once the passport is revoked, the passport holder can not use it to login again, are you sure to continue?",enablePassport:"Enable Passport",enablePassportDescription:"Once the revoked passport is enabled again, the passport holder can use it to login again, are you sure to continue?",passportPermissionTitle:"The passport has the following permissions:",search:"Search Member",hideBlockedMember:"Hide Unapproved Members",inviteDialog:{createInviteLink:"Generate Invitation Link",createSuccessTip:"The invitation link is successfully created, click to copy and send the link to the invited member, please note that this invitation link can not be reused and will expire on {expireDate}"},error:{passportEmpty:"Passport should not be empty"},connectedAccounts:"Connected Accounts",connections:"Connections",federated:"Federated",switch:{did:"Switch DID",profile:"Switch Profile",passport:"Switch Passport"},settings:{notification:"Notifications",email:"Send email to me when some events happen",wallet:"Send notification to my wallet when some events happen",phone:"Send text message to me when some events happen",webhook:"Webhooks",add:"Add new webhook",url:"Custom URL",slack:"Slack Webhook",tested:"Test message sent"},activeUserSessions:"Active User Sessions",forceLogout:"Force logout",forceLogoutDescription:"Confirm to force logout this user?"},transferNode:{name:"Transfer Ownership",inviteDialog:{title:"Transfer Blocklet Server",tips:{progress:"Transfer the server needs to be accepted by the receiver to complete the transfer operation, and once the receiver accepts it, you cannot log in to the server with the current passport again.",newOwnerPermissions:"The new Owner will have the right to manage all operations such as members, passports, and Blocklets.",revoke:'If you want to withdraw the transfer invitation, you can delete the invitation link in the "Team -> Members -> Inviting" page.'},createInviteLink:"Generate Invitation Link",createSuccessTip:"The invitation link is successfully created, click to copy and send the link to the invited member, please note that this invitation link can not be reused and will expire on {expireDate}"},delegateDialog:{title:"Authorize Required",scan:"Scan following QR code with DID Wallet to authorize server to transfer server ownership NFT.",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"}},transferApp:{name:"Transfer Ownership",transferDialog:{title:"Transfer Application",tips:{progress:"Transfer the application needs to be accepted by the receiver to complete the transfer operation, and once the receiver accepts it, you cannot log in to the application with the current passport again.",newOwnerPermissions:"The new Owner will have the right to manage all operations such as members, passports, and settings."},createTransferLink:"Generate Transfer Link",createSuccessTip1:'The transfer link is successfully created, the invitee must use <a style="color: rgb(29, 193, 199)" target="_blank" href="https://www.didwallet.io/">DID Wallet</a> to receive the app ownership',createSuccessTip2:"Please click to copy and send the link to the invited member, please note that this transfer link can not be reused and will expire on {expireDate}. Your transfer link will only be shown once and will not be viewable again after closing this dialog",createSuccessTip3:"After the transfer is successful, the application will automatically restart to make the changes take effect",link:"Transfer Link",iKnow:"I have copied and saved the link"},connectDialog:{title:"Authorize Required",scan:"Scan following QR code with DID Wallet to authorize application to transfer ownership.",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"},receiveDialog:{title:"Receive Application Ownership",scan:"Scan following QR code with DID Wallet to receive the application ownership.",confirm:"Confirm on your DID Wallet",success:"Receive Ownership Successfully"},successTitle:"You have become the new owner of this application",visitDashboard:"Visit Application Dashboard"},permission:{create:{title:"Create Permission",description:`Format: <action>_<resource>
261
+ e.g. 'query_user', 'mutate_user'`},delete:{title:"Delete Permission",description:"Confirm delete {name}?"},error:{actionEmpty:"action cannot be empty",resourceEmpty:"resource cannot be empty",permissionTooLong:"permission cannot exceed {length} characters",descriptionTooLong:"description cannot exceed {length} characters"}},passport:{create:{title:"Create Passport",titleTip:"Title cannot be modified after created, recommended within 14 letters"},bind:{title:"Bind Permission",roleTip:"You will get all the permissions of the selected passport after binding",permissionTip:"You will get the selected permissions after binding",transferLeftTitle:"All permissions",transferRightTitle:"Granted permissions"},delete:{title:"Delete Passport",description:"The passports holds by user will lose all permissions after it is deleted. Are you sure to continue?"},error:{titleEmpty:"title cannot be empty",titleTooLong:"title cannot exceed {length} characters",descriptionEmpty:"description cannot be empty"},issuance:{pending:"Pending",create:{title:"Generate Link"},delete:{title:"Delete Receive Link",description:"Confirm delete {link}?"}},issue:"Issue Passport",disableIssuance:"Disable Passport Issuance",enableIssuance:"Enable Passport Issuance",disableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be disabled',enableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be enabled',trustedPassportIssuers:"Trusted Passport Issuers",trustedIssuers:"Trusted Issuers",trustedFactories:"Trusted NFT Collections",trustedFactoriesTip:"Manage trusted NFT Collections that can be used to exchange for a passport",searchFactoryAddress:"Search Collection DID",configFactories:"Config Trusted NFT Collections",configFactoriesTip:"Allow users to exchange NFTs for passport",factoryAddress:"NFT Collection Address",factory404:"NFT Collection not found",factoryAddressTip:"The NFT Collection address must exist on ArcBlock Main Chain",role:"Passport Type",ttl:"Passport Expire Policy",ttlNever:"Never Expire",ttlMint:"From NFT Purchase",ttlExchange:"From Passport Exchange",ttlNeverTip:"The passport will be valid until revoked",ttlMintTip:"The passport will be valid from the time the NFT is purchased until you specified ttl or revoke",ttlExchangeTip:"The passport will be valid from the time user successfully exchanged until you specified ttl or revoke",ttlTip:'"365d" means 365 days, you can also use "30 days" or "24h"',validUntil:"Valid until: {date}",externalPassport:"External Passport",notTrustedIssuerTip:"The passport cannot be used because the issuer is not on the list of trusted issuers",issuerDid:"Issuer DID",addNodeToTrustedIssuers:"Add current server as a trusted passport issuer",revoked:"Revoked",noPermission:"No permission to perform this operation",shouldNotDeleteCurrent:"You can not revoke your passport currently in use",mappingRule:"Mapping rule",defaultRule:"Default rule",search:"Search Passport",searchIssuerDid:"Search Issuer DID",issueBy:"Issue by {name}",configColor:"Config Passport Color",configColorTip:"Customize the color of the passport",color:"Passport Color",description:"Use this passport to connect {teamName} as {title}"},inviting:{link:"Invite Link",inviter:"Inviter",delete:{title:"Delete Invite Link",description:"Confirm delete {link}?"},disabledTip:"Invitation is not enabled"},whoCanAccess:{all:{title:"Accessible to all"},owner:{title:"Owner only"},invited:{title:"Invited user only"}}},launcher:{provider:"Provider",adminUrl:"URL"},session:{forbidLogin:"You have been blocked from access this server"},launchBlocklet:{appInfo:"Application Information",appInfoDesc:"Confirm the application information",author:"Application Author: {author}",setup:"Setup Blocklet",redirect:"Redirect",alreadyRunning:"Application {name} is already running on this Blocklet Server",alreadyInstalled:"Application {name} is already installed on this Blocklet Server",alreadyExists:"This application already exists, redirecting...",purchased:"Already Purchased",purchase:"Purchase",nextStep:"Next Step",agreement:"License Agreement",agreeAll:"Agree & Continue",installing:"Installing {appName} on {serverName}, it may take minutes to complete, please stay tuned...",redirecting:"{appName} is successfully installed, now starting...",start:"Launching",launch:"Install Blocklet to Server",launchSuccess:"{appName} is successfully launched!",installSuccess:"Blocklet is successfully installed and launched on {serverName}",openInRegistry:"View in Blocklet Store",subTitle:"Ready to install Blocklet {appName} on {serverName}",installingSubTitle:"{appName} installing",access:"Open the application",installRelatedComponents:"Install related Blocklets",viewApplication:"View Application",newVersion:"New Version",newVersionDesc:"The application already exists, but the current version can be upgraded",upgradeNow:"Upgrade Now",later:"Later",introduction:"Introduction",welcome:"Welcome to the Blocklet Launch Wizard",accept:"I agree to the Blocklet EULA",license:"Application License",next:"Agree to the EULA and continue",purchaseApp:"Purchase Blocklet",setupAppDesc:"Initialize your Blocklet",launched:"Complete",confirmInstall:"Confirm Installation",dialog:{title:"Become App Owner",nftFreeDescription:"Please present app space NFT and create app account to continue",nftPaidDescription:"Please present app space NFT and app purchase NFT to continue",freeDescription:"Please create app account to continue",paidDescription:"Please present app purchase NFT and create app account to continue",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully",authorizationTimeout:"Authorization timeout"},waiting:{verifying:"Verifying app meta...",downloading:"Downloading app bundle...",downloadingComponent:"Downloading {name}",extractingComponent:"Extracting {name}",extracting:"Extracting app bundle...",installing:"Installing app components...",installed:"Installed",starting:"Starting the app...",done:"Waiting for app ready..."},error:{loadMetaFailed:"Load app information failed",appMetaNotFound:"No information found for this app",downloadFailed:"Failed to download the app, please try again",installFailed:"Failed to install the app, please try again",startFailed:"Failed to start the app, please try again",launchFailed:"Failed to launch the app, please try again",installedButStopped:"The app is installed successfully, but cannot be started. You can start it manually after resolving blocking issues",installedButError:"The app is successfully installed, but failed to start",restoreFailed:"Failed to restore app, please try again",resourceBlocklet:"This blocklet cannot be launched directly, but you can add it into existing application."},steps:{introduction:"Introduction",installApp:"Install Application",purchaseSpace:"Purchase Space",prepareSpace:"Prepare Space"}},issuePassport:{title:"Receive Passport",description:"Use DID Wallet to receive the passport issued by {name}",dialog:{scan:"Use your DID Wallet to claim the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet",loginWithPassport:"Connect with this Passport",autoClose:"Page will auto close in {seconds}s",autoJump:"Page will auto jump in {seconds}s"}},lostPassport:{title:"Lost Passport",description:"The owner of {name} can scan the QR code to retrieve the passport, members please contact the owner to reissue the passport",dialog:{title:"Recover Passport",scan:"Use your DID Wallet to recover the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet"},return:"Connect with passport",selectPassport:"Select passport",receivePassport:"Receive passport"},invite:{message:"{name} invite you to be the {role} of {dapp}",success:"You have successfully joined {dapp}",receive:"Receive with",validUntil:"Valid until:",viewPermission:"View Permission",emptyPermission:"Empty Permission",open:"Open",description:{step1:"Download and setup your {wallet}",step2:"Click above button to receive passport",step3:"Login in {dapp} with received passport"},transferNFTDialog:{title:"Accept Blocklet Server {name}",scan:"Connect the Launcher to complete the reception of the Blocklet Server.",confirm:"Review this operation on your DID Wallet",success:"Connect successfully, waiting for confirmation of receiving the Server"}},receive:{dialog:{title:"Use your DID Wallet to receive passport",scan:"Connect your DID Wallet to receive passport",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"}},navigation:{navigation:"Navigation",access:"Access",members:"Members",passport:"Passport",analytics:"Analytics",dashboard:"Dashboard",studio:"Studio",blockletService:"Blocklet Service",actionFailed:"Action Failed",form:{title:"Title",titlePlaceholder:"Please input navigation title",titleTooLong:"Title length should small than {len}",icon:"Navigation Icon",iconPlaceholder:"Please input navigation icon",invalidIcon:"Icon is invalid",findMoreIcon:"Find more icons",link:"Link",linkPlaceholder:"Please input navigation link",invalidLink:"Link is invalid",component:"Component",componentPlaceholder:"Please select navigation component",role:"Role",rolePlaceholder:"Please select navigation role",locale:"Locale",localePlaceholder:"Please input locale need to add",localeExists:"{value} is already exists"},action:{add:"Add navigation",addSub:"Add sub navigation",edit:"Edit navigation",hide:"Hide navigation",show:"Show navigation",del:"Delete navigation",new:"New",noAddSub:"Uninstalled component can't add sub navigation",noEdit:"Uninstalled component can't edit",noDel:"Not allowed delete built-in navigation",reset:"Reset",restConfirmTitle:"Do you want to clear all custom navigation?",restConfirmDesc:"After clearing, the navigation will be restored to Blocklet's original default configuration.",resetSuccessful:"Reset successful"}},storage:{spaces:{tips:"Tips",label:"Enter DID Spaces Gateway",connected:{title:"Connected DID Spaces",tag:"Connected"},connectedWithName:"You have successfully connected to {name}",addedWithName:"You have successfully added {name}",connects:"Connect",reconnect:"Reconnect",addressCannotEmpty:"Address cannot be empty",addressNotValid:"{url} is not a valid address",authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"},provideNFT:{title:"Please show the DID Spaces NFT for {appName}",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} show DID space NFT",success:"Connected successfully"},backup:{title:"Backup",records:"Backup Records"},autoBackup:{title:"Auto backup",enabled:"Automatic backup is on",disabled:"Automatic backup is off"},autoCheckUpdate:{title:"Automatically check for new version notification",enabled:"Automatically check for new version is on",disabled:"Automatically check for new version is off"},backupSuccessfully:"Backup successfully",restore:"Restore",restoreSuccessfully:"Restore successfully",gateway:{title:"Gateway",select:"Select a DID Spaces",add:{title:"Add DID Spaces",label:"Enter the url of the DID Spaces",failed:"Add DID Spaces failed",invalidUrl:"Invalid DID Spaces gateway url",duplicate:"DID Space({name}) already exist"},delete:{title:"Delete gateway",succeeded:"Delete DID Spaces{name} Success",failed:"Delete gateway failed",failedForSelected:"Unable to delete a selected DID Spaces"},connect:{title:"Connect DID Spaces",add:"Connect to DID Spaces now",addTips:"You are not connected to any Space yet",switch:"Switch DID Spaces",switchTips:"You are connected to {name}",connected:"Connected"},switch:{failedForMismatchSpace:"Please connect to the correct Space{name}"},connectTo:"Connect to DID Spaces"},strategy:{title:"Backup Strategy",autoBackup:"Auto backup",backupNow:"Backup now",viewBackupFiles:"View backup files"},progress:{title:"Backup progress"},record:{title:"Backup records",emptyData:"No records"},notYet:"You don't have a backup in progress yet...",connect:{now:"Connect now",title:"Connect DID Spaces",provider:"Provide your DID Spaces to start backups",providerForStorage:"Please connect your DID Spaces",useWallet:"Connect with DID Wallet",useWalletReconnect:"Reconnect with DID Wallet",useSpaceGateway:"Connect using the DID Spaces gateway",useSpaceGatewayReconnect:"Reconnect using the DID Spaces gateway",switchToSpace:"Switch to Space",switchToSpaceSucceeded:"Switched to Space{name}",succeeded:"You have successfully connected to DID Spaces",disconnect:"disconnect"},disconnected:{tag:"Disconnected",reconnectNow:"Reconnect Now"}}},log:{lastDays:{1:"Last 1 Day",7:"Last 1 Week"}},oauth:{commonSettings:"Common Settings",save:"Save",saveSuccess:"Save successfully",saveFailed:"Save failed",issued:"Issued",thirdPartyLogin:"Third party login",alreadyBindOAuth:"Already bind third party login",alreadyBindWallet:"Already bind DID Wallet",auth0:{enable:"Enable Auth0 login",domain:"Domain",domainDescription:"Auth0's domain is required",clientId:"Client ID",clientIdDescription:"Auth0 OAuth application client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Auth0 OAuth application Client Secret is required"},github:{enable:"Enable Github login",clientId:"Client ID",clientIdDescription:"Github OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Github OAuth application Client Secret is required"},google:{enable:"Enable Google login",clientId:"Client ID",clientIdDescription:"Google OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Google OAuth application Client Secret is required"},apple:{enable:"Enable Apple login",teamId:"Team ID",teamIdDescription:"Apple OAuth application Team ID is required",serviceId:"Service ID",serviceIdDescription:"Apple OAuth application Service ID is required",keyId:"Key ID",keyIdDescription:"Apple OAuth application Key ID is required",authKey:"Auth Key",authKeyDescription:"Apple OAuth application Auth Key is required",bundleId:"Bundle ID",bundleIdDescription:"Apple OAuth application Bundle ID is required"},comingSoon:"More login methods are under construction",moreLogin:"More Login",federated:"Federated Login",oauth:"Third Party Login",runTest:"Test"},expiration:{mobile:{tips:{success:"{validity}",warning:"{validity}",error:"Expired"},loadFailed:"Retry!"},desktop:{tips:{success:"Subscription will expire after {validity}",warning:"Subscription will expire after {validity}",error:"Subscription Expired"},loading:"Load subscription...",loadFailed:"Failed to load subscription info, please retry!",nextInvoice:"Next Invoice: {date}"}},analytics:{trend:"Trends",detail:"Breakdown",traffic:{totalRequests:"Total Requests",validRequests:"Success Requests",failedRequests:"Failed Requests",uniqueVisitors:"Unique Visitors",uniqueFiles:"Unique URLs",uniqueReferrers:"Unique Referrers",uniqueNotFound:"Unique 404",uniqueStaticFiles:"Unique Static Files",logSize:"Log Size",bandwidth:"Bandwidth"}},federated:{inviteJoinFederatedLogin:"Invite to join federated login",inviteJoinFederatedLoginDescription:"Copy the following address and fill it in the application where you need to join to apply for federated login.",federatedLogin:"Federated login",joinFederatedLogin:"Join federated login",joinFederatedLoginDescription:"Please enter the federated login address provided by Master Blocklet to join the federated login",quitFederatedLogin:"Quit federated login",quitFederatedLoginDescription:"After quit federated login, normal login is always available",federatedJoinAppUrl:"Federated login join appUrl",federatedJoinAppUrlRequired:"Please input federated login join appUrl",failedToGetFederatedLoginAppUrl:"Failed to get federated login join appUrl",federatedJoinAppUrlInvalid:"Federated login appUrl is invalid",siteDetail:"Site detail",approveToJoinLogin:"Approve to join federated login",approve:"Enable login",revoke:"Disable login",enableFederatedLogin:"Enable federated login",disableFederatedLogin:"Disable federated login",enableFederatedLoginDescription:"After enable federated login, this site will be auto login",disableFederatedLoginDescription:"After disable federated login, this site will not be auto login",enableFederatedAutoLogin:"Enable automatic login",enableFederatedAutoLoginDescription:"After enable automatic login, if there is currently a unified login status, the site will automatically log in the identity of the federated login",disableFederatedAutoLogin:"Disable automatic login",disableFederatedAutoLoginDescription:"After the automatic login is turned off, the site will not automatically log in the user information of the unified login, and you can still choose to manually click to log in with the identity of the federated login",info:{appId:"APP DID",appPid:"Permanent ID",migratedFrom:"Also Known As",appName:"Blocklet name",appDescription:"Blocklet description",appUrl:"Blocklet url",appLogo:"Blocklet logo",did:"Blocklet DID",serverId:"Blocklet Server ID",serverVersion:"Blocklet Server version",version:"Blocklet version",appliedAt:"Apply at",status:"Status"},status:{pending:"Pending",approved:"Approved",rejected:"Rejected",revoked:"Revoked"},disbandFederatedLogin:"Disband federated login",disbandFederatedLoginDescription:"After disband federated login, all member site will quit federated login automatically"},optionsOrder:{1:"Option One",2:"Option Two"}},en={pageTitle:{login:"Login",dashboard:"Blocklet Dashboard",userCenter:"User Center",invite:"Invite",issuePassport:"Issue Passport",lostPassort:"Lost Passport"},auth:{noPermission:{title:"No Permission",description:"You are not the administrator of the blocklet"}},login:{reLogin:"Reconnect",description:"You must connect your DID Wallet to access {name}",already:"You are connected as",connectWallet:"Connect DID Wallet",closeWindow:"Close window",switchDid:{title:"Switch DID Wallet",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},switchSpecifiedDid:{title:"Switch DID Wallet",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},connect:{title:"Connect DID Wallet",scan:"Connect your DID Wallet to access this application",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"},accessLimit:{title:"Page access restricted ",description:"This page requires the following passports to access, please connect to the wallet to change or apply for the corresponding pass.",alreadyHavePassport:"Already have the passport",connectWithPassport:"Connect with this passport",buyPassport:"buyPassport"},connectWithPassport:"Connect with this passport",needManualClose:"Login success, if this window is not auto closed, please close it."},studio:{home:"Studio",preferences:"Preference Builder",localization:"Localization"},blocklet:{startApplication:"Start Application",startDescription:"Ready to start {name}",start:"Start",starting:"Starting...",open:"Open",suspended:"Application suspended",terminated:"Application terminated",suspendedCausedByExpired:"This application has been suspended due to payment expiration. Please renew before the {deadline} to resume. Failure to renew within the specified timeframe will result in the inability to renew or resume.",suspendedCausedByTerminated:"The application was terminated due to the cancellation of the subscription, which was canceled on {canceledAt}, and the data will be retained until {deadline}; before the data is deleted, you can back up the data to DID Spaces.",manageSubscription:"Manage Subscription"},setup:{steps:{connect:"Connect",didSpace:"DID Spaces",config:"Configuration",domain:"Domain",access:"Access Control",fuel:"Fuel",complete:"Complete",introduction:"Introduction",selectNodeDesc:"Select Blocklet Server",launchAppDesc:"Install Blocklet to Server",setupAppDesc:"Setup Blocklet",launched:"Complete"},connect:{title:"Connect to Application",scan:"Connect your DID Wallet to provide user profile and the blocklet's Owner privileges, then you can configure and launch the app.",confirm:"Confirm on your DID Wallet",success:"You are connected successfully"},domain:{addTitle:"Add a new domain name (Optional)",title:"Domain Setting",subTitle:"Set a custom domain for the application",label:"Please provide a valid domain name",tipStart:"Please make sure",tipEnd:"has point to the current Server",cannotResolve:"{domain} can not be resolved, please check your DNS configuration",checkingResolvable:"Checking domain status...",addingCert:"Generating certificate...",addingDomain:"Adding domain...",recordType:"Record Type",recordValue:"Record Value",skipStart:"You can",skip:"skip custom domain setting",skipEnd:"and use the default domain to access the application",genCertSuccess:"The {domain} certificate is issued successfully",genCertFailed:"Failed to issue certificate for {domain}: {message}",genCertFailedForNFTDomain:"Added NFT domain successfully, but failed to generate HTTPS certificate, please try again later",resolvedAddressError:"{domain} does not point to the same IP address as {curDomain}",invalidDNSReminder:"{error}. However, you can continue to add the domain, but automatic certificate generation is not available.",continueAdd:"Continue Adding"},didSpace:{title:"Configure DID Spaces",subTitle:"Complete the following connection process to store application data in DID Spaces",tips:"Tips",description:"Configure the DID Spaces instance address and store the application data in DID Spaces after a successful connection",label:"Please select the DID Spaces service",connected:"You have successfully connected to DID Spaces",connect:"Connect Now",reconnect:"Reconnect",addressCannotEmpty:"Address cannot be empty",addressNotValid:"{url} is not a valid address",authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"}},config:{title:"Configuration",subTitle:"Other configuration items (you will also need to set the following items)"},complete:{title:"Everything is Ready",failedTitle:"Failed to start Blocklet",backToServer:"Back to Blocklet Server",notRunning:"Blocklet failed to start on the first shot, please retry"},fuel:{title:"Fuel required to start",tipStart:"slot",tipEnd:" is required for this application to work properly, the fund are saved in the application wallet and can consumed for transaction gas purpose. You can withdraw your balance at any time when you no longer have the app running.",addressTitle:"Application Account",addressTip:"Fuel the application with DID Wallet",need:"Need",current:"Current",fuelApp:"Fuel the application"},title:"Setup",next:"Next",previous:"Previous",continue:"Continue",skip:"Skip",startNow:"Start Now",confirm:"Confirm",cancel:"Cancel"},user:{walletNotification:"DID Wallet notification",emailNotification:"Email notification",smsNotification:"SMS notification",addWebhook:"Add New Webhook"}},translations$9={en:be(merge$2(en$1,en)),ar:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ar-CqvGG4eC.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ar-BOQhQYjx.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},de:async()=>{const a=await Promise.all([__vitePreload(()=>import("./de-l0XzFKav.js"),[]).then(j=>j.default),__vitePreload(()=>import("./de-t1rC40NN.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},es:async()=>{const a=await Promise.all([__vitePreload(()=>import("./es-DYmEeFzA.js"),[]).then(j=>j.default),__vitePreload(()=>import("./es-DfbI4mbP.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},fr:async()=>{const a=await Promise.all([__vitePreload(()=>import("./fr-DwS-xj4v.js"),[]).then(j=>j.default),__vitePreload(()=>import("./fr-_U79lUBj.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},hi:async()=>{const a=await Promise.all([__vitePreload(()=>import("./hi-Dj91QHv6.js"),[]).then(j=>j.default),__vitePreload(()=>import("./hi-Di6UaHUZ.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},id:async()=>{const a=await Promise.all([__vitePreload(()=>import("./id-CzhlCzfQ.js"),[]).then(j=>j.default),__vitePreload(()=>import("./id-CuP-z2YS.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},ja:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ja-Ut-jFS9r.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ja-CsYEjFuw.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},ko:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ko-Clp4qzRT.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ko-DwcGU2RJ.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},pt:async()=>{const a=await Promise.all([__vitePreload(()=>import("./pt-BXaJbqdY.js"),[]).then(j=>j.default),__vitePreload(()=>import("./pt-DF-luAxv.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},ru:async()=>{const a=await Promise.all([__vitePreload(()=>import("./ru-p_K_7IoQ.js"),[]).then(j=>j.default),__vitePreload(()=>import("./ru-DKnB6G3S.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},th:async()=>{const a=await Promise.all([__vitePreload(()=>import("./th-BJT9w_Lk.js"),[]).then(j=>j.default),__vitePreload(()=>import("./th-Dna3ZHAu.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},vi:async()=>{const a=await Promise.all([__vitePreload(()=>import("./vi-CycHlNkN.js"),[]).then(j=>j.default),__vitePreload(()=>import("./vi-tHyNmIs-.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},zh:async()=>{const a=await Promise.all([__vitePreload(()=>import("./zh-Dv1l1HNj.js"),[]).then(j=>j.default),__vitePreload(()=>import("./zh-CZ75v_KR.js"),[]).then(j=>j.default)]);return be(merge$2(...a))},"zh-TW":async()=>{const a=await Promise.all([__vitePreload(()=>import("./zh-tw-44W5osxR.js"),[]).then(j=>j.default),__vitePreload(()=>import("./zh-tw-BDv-O3sb.js"),[]).then(j=>j.default)]);return be(merge$2(...a))}};function arrayEach$1(a,j){for(var _e=-1,et=a==null?0:a.length;++_e<et&&j(a[_e],_e,a)!==!1;);return a}var _arrayEach=arrayEach$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$1=_isPrototype,nativeKeys=_nativeKeys,objectProto$7=Object.prototype,hasOwnProperty$b=objectProto$7.hasOwnProperty;function baseKeys$2(a){if(!isPrototype$1(a))return nativeKeys(a);var j=[];for(var _e in Object(a))hasOwnProperty$b.call(a,_e)&&_e!="constructor"&&j.push(_e);return j}var _baseKeys=baseKeys$2,arrayLikeKeys=_arrayLikeKeys,baseKeys$1=_baseKeys,isArrayLike$3=isArrayLike_1;function keys$6(a){return isArrayLike$3(a)?arrayLikeKeys(a):baseKeys$1(a)}var keys_1=keys$6,copyObject$4=_copyObject,keys$5=keys_1;function baseAssign$1(a,j){return a&&copyObject$4(j,keys$5(j),a)}var _baseAssign=baseAssign$1,copyObject$3=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(a,j){return a&&copyObject$3(j,keysIn$2(j),a)}var _baseAssignIn=baseAssignIn$1;function arrayFilter$1(a,j){for(var _e=-1,et=a==null?0:a.length,tt=0,nt=[];++_e<et;){var rt=a[_e];j(rt,_e,a)&&(nt[tt++]=rt)}return nt}var _arrayFilter=arrayFilter$1;function stubArray$2(){return[]}var stubArray_1=stubArray$2,arrayFilter=_arrayFilter,stubArray$1=stubArray_1,objectProto$6=Object.prototype,propertyIsEnumerable=objectProto$6.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols$3=nativeGetSymbols$1?function(a){return a==null?[]:(a=Object(a),arrayFilter(nativeGetSymbols$1(a),function(j){return propertyIsEnumerable.call(a,j)}))}:stubArray$1,_getSymbols=getSymbols$3,copyObject$2=_copyObject,getSymbols$2=_getSymbols;function copySymbols$1(a,j){return copyObject$2(a,getSymbols$2(a),j)}var _copySymbols=copySymbols$1;function arrayPush$3(a,j){for(var _e=-1,et=j.length,tt=a.length;++_e<et;)a[tt+_e]=j[_e];return a}var _arrayPush=arrayPush$3,arrayPush$2=_arrayPush,getPrototype=_getPrototype,getSymbols$1=_getSymbols,stubArray=stubArray_1,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols?function(a){for(var j=[];a;)arrayPush$2(j,getSymbols$1(a)),a=getPrototype(a);return j}:stubArray,_getSymbolsIn=getSymbolsIn$2,copyObject$1=_copyObject,getSymbolsIn$1=_getSymbolsIn;function copySymbolsIn$1(a,j){return copyObject$1(a,getSymbolsIn$1(a),j)}var _copySymbolsIn=copySymbolsIn$1,arrayPush$1=_arrayPush,isArray$e=isArray_1;function baseGetAllKeys$2(a,j,_e){var et=j(a);return isArray$e(a)?et:arrayPush$1(et,_e(a))}var _baseGetAllKeys=baseGetAllKeys$2,baseGetAllKeys$1=_baseGetAllKeys,getSymbols=_getSymbols,keys$4=keys_1;function getAllKeys$2(a){return baseGetAllKeys$1(a,keys$4,getSymbols)}var _getAllKeys=getAllKeys$2,baseGetAllKeys=_baseGetAllKeys,getSymbolsIn=_getSymbolsIn,keysIn$1=keysIn_1;function getAllKeysIn$3(a){return baseGetAllKeys(a,keysIn$1,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$3,getNative$5=_getNative,root$7=_root,DataView$2=getNative$5(root$7,"DataView"),_DataView=DataView$2,getNative$4=_getNative,root$6=_root,Promise$2=getNative$4(root$6,"Promise"),_Promise=Promise$2,getNative$3=_getNative,root$5=_root,Set$3=getNative$3(root$5,"Set"),_Set=Set$3,getNative$2=_getNative,root$4=_root,WeakMap$4=getNative$2(root$4,"WeakMap"),_WeakMap=WeakMap$4,DataView$1=_DataView,Map$3=_Map,Promise$1=_Promise,Set$2=_Set,WeakMap$3=_WeakMap,baseGetTag$3=_baseGetTag,toSource$2=_toSource,mapTag$5="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$5="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource$2(DataView$1),mapCtorString=toSource$2(Map$3),promiseCtorString=toSource$2(Promise$1),setCtorString=toSource$2(Set$2),weakMapCtorString=toSource$2(WeakMap$3),getTag$5=baseGetTag$3;(DataView$1&&getTag$5(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$3&&getTag$5(new Map$3)!=mapTag$5||Promise$1&&getTag$5(Promise$1.resolve())!=promiseTag||Set$2&&getTag$5(new Set$2)!=setTag$5||WeakMap$3&&getTag$5(new WeakMap$3)!=weakMapTag$1)&&(getTag$5=function(a){var j=baseGetTag$3(a),_e=j==objectTag$2?a.constructor:void 0,et=_e?toSource$2(_e):"";if(et)switch(et){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$5;case promiseCtorString:return promiseTag;case setCtorString:return setTag$5;case weakMapCtorString:return weakMapTag$1}return j});var _getTag=getTag$5,objectProto$5=Object.prototype,hasOwnProperty$a=objectProto$5.hasOwnProperty;function initCloneArray$1(a){var j=a.length,_e=new a.constructor(j);return j&&typeof a[0]=="string"&&hasOwnProperty$a.call(a,"index")&&(_e.index=a.index,_e.input=a.input),_e}var _initCloneArray=initCloneArray$1,cloneArrayBuffer$1=_cloneArrayBuffer;function cloneDataView$1(a,j){var _e=j?cloneArrayBuffer$1(a.buffer):a.buffer;return new a.constructor(_e,a.byteOffset,a.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(a){var j=new a.constructor(a.source,reFlags.exec(a));return j.lastIndex=a.lastIndex,j}var _cloneRegExp=cloneRegExp$1,Symbol$6=_Symbol,symbolProto$3=Symbol$6?Symbol$6.prototype:void 0,symbolValueOf$1=symbolProto$3?symbolProto$3.valueOf:void 0;function cloneSymbol$1(a){return symbolValueOf$1?Object(symbolValueOf$1.call(a)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=_cloneSymbol,cloneTypedArray=_cloneTypedArray,boolTag$3="[object Boolean]",dateTag$2="[object Date]",mapTag$4="[object Map]",numberTag$3="[object Number]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$3="[object String]",symbolTag$4="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag$1(a,j,_e){var et=a.constructor;switch(j){case arrayBufferTag$2:return cloneArrayBuffer(a);case boolTag$3:case dateTag$2:return new et(+a);case dataViewTag$2:return cloneDataView(a,_e);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(a,_e);case mapTag$4:return new et;case numberTag$3:case stringTag$3:return new et(a);case regexpTag$2:return cloneRegExp(a);case setTag$4:return new et;case symbolTag$4:return cloneSymbol(a)}}var _initCloneByTag=initCloneByTag$1,getTag$4=_getTag,isObjectLike$8=isObjectLike_1,mapTag$3="[object Map]";function baseIsMap$1(a){return isObjectLike$8(a)&&getTag$4(a)==mapTag$3}var _baseIsMap=baseIsMap$1,baseIsMap=_baseIsMap,baseUnary$3=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap$1=nodeIsMap?baseUnary$3(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$3=_getTag,isObjectLike$7=isObjectLike_1,setTag$3="[object Set]";function baseIsSet$1(a){return isObjectLike$7(a)&&getTag$3(a)==setTag$3}var _baseIsSet=baseIsSet$1,baseIsSet=_baseIsSet,baseUnary$2=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet$1=nodeIsSet?baseUnary$2(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack$2=_Stack,arrayEach=_arrayEach,assignValue$2=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer=_cloneBufferExports,copyArray=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys$1=_getAllKeys,getAllKeysIn$2=_getAllKeysIn,getTag$2=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject=_initCloneObject,isArray$d=isArray_1,isBuffer$3=isBufferExports,isMap=isMap_1,isObject$f=isObject_1,isSet=isSet_1,keys$3=keys_1,keysIn=keysIn_1,CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag$2="[object Function]",genTag$2="[object GeneratorFunction]",mapTag$2="[object Map]",numberTag$2="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$2="[object String]",symbolTag$3="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$2]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$2]=cloneableTags[numberTag$2]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$2]=cloneableTags[stringTag$2]=cloneableTags[symbolTag$3]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag$2]=cloneableTags[weakMapTag]=!1;function baseClone$2(a,j,_e,et,tt,nt){var rt,it=j&CLONE_DEEP_FLAG$2,ot=j&CLONE_FLAT_FLAG$1,ct=j&CLONE_SYMBOLS_FLAG$2;if(_e&&(rt=tt?_e(a,et,tt,nt):_e(a)),rt!==void 0)return rt;if(!isObject$f(a))return a;var ut=isArray$d(a);if(ut){if(rt=initCloneArray(a),!it)return copyArray(a,rt)}else{var dt=getTag$2(a),pt=dt==funcTag$2||dt==genTag$2;if(isBuffer$3(a))return cloneBuffer(a,it);if(dt==objectTag$1||dt==argsTag$1||pt&&!tt){if(rt=ot||pt?{}:initCloneObject(a),!it)return ot?copySymbolsIn(a,baseAssignIn(rt,a)):copySymbols(a,baseAssign(rt,a))}else{if(!cloneableTags[dt])return tt?a:{};rt=initCloneByTag(a,dt,it)}}nt||(nt=new Stack$2);var mt=nt.get(a);if(mt)return mt;nt.set(a,rt),isSet(a)?a.forEach(function(Rt){rt.add(baseClone$2(Rt,j,_e,Rt,a,nt))}):isMap(a)&&a.forEach(function(Rt,xt){rt.set(xt,baseClone$2(Rt,j,_e,xt,a,nt))});var vt=ct?ot?getAllKeysIn$2:getAllKeys$1:ot?keysIn:keys$3,Et=ut?void 0:vt(a);return arrayEach(Et||a,function(Rt,xt){Et&&(xt=Rt,Rt=a[xt]),assignValue$2(rt,xt,baseClone$2(Rt,j,_e,xt,a,nt))}),rt}var _baseClone=baseClone$2;function last$2(a){var j=a==null?0:a.length;return j?a[j-1]:void 0}var last_1=last$2,baseGet$4=_baseGet,baseSlice=_baseSlice;function parent$1(a,j){return j.length<2?a:baseGet$4(a,baseSlice(j,0,-1))}var _parent=parent$1,castPath$6=_castPath,last$1=last_1,parent=_parent,toKey$6=_toKey;function baseUnset$1(a,j){return j=castPath$6(j,a),a=parent(a,j),a==null||delete a[toKey$6(last$1(j))]}var _baseUnset=baseUnset$1,isPlainObject$1=isPlainObject_1;function customOmitClone$1(a){return isPlainObject$1(a)?void 0:a}var _customOmitClone=customOmitClone$1,Symbol$5=_Symbol,isArguments$4=isArguments_1,isArray$c=isArray_1,spreadableSymbol=Symbol$5?Symbol$5.isConcatSpreadable:void 0;function isFlattenable$1(a){return isArray$c(a)||isArguments$4(a)||!!(spreadableSymbol&&a&&a[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush=_arrayPush,isFlattenable=_isFlattenable;function baseFlatten$3(a,j,_e,et,tt){var nt=-1,rt=a.length;for(_e||(_e=isFlattenable),tt||(tt=[]);++nt<rt;){var it=a[nt];j>0&&_e(it)?j>1?baseFlatten$3(it,j-1,_e,et,tt):arrayPush(tt,it):et||(tt[tt.length]=it)}return tt}var _baseFlatten=baseFlatten$3,baseFlatten$2=_baseFlatten;function flatten$2(a){var j=a==null?0:a.length;return j?baseFlatten$2(a,1):[]}var flatten_1=flatten$2;const flatten$3=getDefaultExportFromCjs$1(flatten_1);var flatten$1=flatten_1,overRest=_overRest,setToString=_setToString;function flatRest$2(a){return setToString(overRest(a,void 0,flatten$1),a+"")}var _flatRest=flatRest$2,arrayMap$4=_arrayMap,baseClone$1=_baseClone,baseUnset=_baseUnset,castPath$5=_castPath,copyObject=_copyObject,customOmitClone=_customOmitClone,flatRest$1=_flatRest,getAllKeysIn$1=_getAllKeysIn,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,omit=flatRest$1(function(a,j){var _e={};if(a==null)return _e;var et=!1;j=arrayMap$4(j,function(nt){return nt=castPath$5(nt,a),et||(et=nt.length>1),nt}),copyObject(a,getAllKeysIn$1(a),_e),et&&(_e=baseClone$1(_e,CLONE_DEEP_FLAG$1|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG$1,customOmitClone));for(var tt=j.length;tt--;)baseUnset(_e,j[tt]);return _e}),omit_1=omit;const omit$1=getDefaultExportFromCjs$1(omit_1);var assignValue$1=_assignValue,castPath$4=_castPath,isIndex$2=_isIndex,isObject$e=isObject_1,toKey$5=_toKey;function baseSet$2(a,j,_e,et){if(!isObject$e(a))return a;j=castPath$4(j,a);for(var tt=-1,nt=j.length,rt=nt-1,it=a;it!=null&&++tt<nt;){var ot=toKey$5(j[tt]),ct=_e;if(ot==="__proto__"||ot==="constructor"||ot==="prototype")return a;if(tt!=rt){var ut=it[ot];ct=et?et(ut,ot,it):void 0,ct===void 0&&(ct=isObject$e(ut)?ut:isIndex$2(j[tt+1])?[]:{})}assignValue$1(it,ot,ct),it=it[ot]}return a}var _baseSet=baseSet$2,baseGet$3=_baseGet,baseSet$1=_baseSet,castPath$3=_castPath;function basePickBy$2(a,j,_e){for(var et=-1,tt=j.length,nt={};++et<tt;){var rt=j[et],it=baseGet$3(a,rt);_e(it,rt)&&baseSet$1(nt,castPath$3(rt,a),it)}return nt}var _basePickBy=basePickBy$2;function baseHasIn$1(a,j){return a!=null&&j in Object(a)}var _baseHasIn=baseHasIn$1,castPath$2=_castPath,isArguments$3=isArguments_1,isArray$b=isArray_1,isIndex$1=_isIndex,isLength=isLength_1,toKey$4=_toKey;function hasPath$1(a,j,_e){j=castPath$2(j,a);for(var et=-1,tt=j.length,nt=!1;++et<tt;){var rt=toKey$4(j[et]);if(!(nt=a!=null&&_e(a,rt)))break;a=a[rt]}return nt||++et!=tt?nt:(tt=a==null?0:a.length,!!tt&&isLength(tt)&&isIndex$1(rt,tt)&&(isArray$b(a)||isArguments$3(a)))}var _hasPath=hasPath$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$2(a,j){return a!=null&&hasPath(a,j,baseHasIn)}var hasIn_1=hasIn$2,basePickBy$1=_basePickBy,hasIn$1=hasIn_1;function basePick$1(a,j){return basePickBy$1(a,j,function(_e,et){return hasIn$1(a,et)})}var _basePick=basePick$1,basePick=_basePick,flatRest=_flatRest,pick$1=flatRest(function(a,j){return a==null?{}:basePick(a,j)}),pick_1$1=pick$1;const pick$2=getDefaultExportFromCjs$1(pick_1$1);var baseClone=_baseClone,CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(a){return baseClone(a,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var cloneDeep_1=cloneDeep;const cloneDeep$1=getDefaultExportFromCjs$1(cloneDeep_1);function isUndefined$1(a){return a===void 0}var isUndefined_1=isUndefined$1;const isUndefined$2=getDefaultExportFromCjs$1(isUndefined_1);var baseMerge$1=_baseMerge,isObject$d=isObject_1;function customDefaultsMerge$1(a,j,_e,et,tt,nt){return isObject$d(a)&&isObject$d(j)&&(nt.set(j,a),baseMerge$1(a,j,void 0,customDefaultsMerge$1,nt),nt.delete(j)),a}var _customDefaultsMerge=customDefaultsMerge$1,baseMerge=_baseMerge,createAssigner=_createAssigner,mergeWith$1=createAssigner(function(a,j,_e,et){baseMerge(a,j,_e,et)}),mergeWith_1=mergeWith$1,apply$2=_apply,baseRest$3=_baseRest,customDefaultsMerge=_customDefaultsMerge,mergeWith=mergeWith_1,defaultsDeep=baseRest$3(function(a){return a.push(void 0,customDefaultsMerge),apply$2(mergeWith,void 0,a)}),defaultsDeep_1=defaultsDeep;const defaultsDeep$1=getDefaultExportFromCjs$1(defaultsDeep_1);var eventemitter3$3={exports:{}};(function(a){var j=Object.prototype.hasOwnProperty,_e="~";function et(){}Object.create&&(et.prototype=Object.create(null),new et().__proto__||(_e=!1));function tt(ot,ct,ut){this.fn=ot,this.context=ct,this.once=ut||!1}function nt(ot,ct,ut,dt,pt){if(typeof ut!="function")throw new TypeError("The listener must be a function");var mt=new tt(ut,dt||ot,pt),vt=_e?_e+ct:ct;return ot._events[vt]?ot._events[vt].fn?ot._events[vt]=[ot._events[vt],mt]:ot._events[vt].push(mt):(ot._events[vt]=mt,ot._eventsCount++),ot}function rt(ot,ct){--ot._eventsCount===0?ot._events=new et:delete ot._events[ct]}function it(){this._events=new et,this._eventsCount=0}it.prototype.eventNames=function(){var ct=[],ut,dt;if(this._eventsCount===0)return ct;for(dt in ut=this._events)j.call(ut,dt)&&ct.push(_e?dt.slice(1):dt);return Object.getOwnPropertySymbols?ct.concat(Object.getOwnPropertySymbols(ut)):ct},it.prototype.listeners=function(ct){var ut=_e?_e+ct:ct,dt=this._events[ut];if(!dt)return[];if(dt.fn)return[dt.fn];for(var pt=0,mt=dt.length,vt=new Array(mt);pt<mt;pt++)vt[pt]=dt[pt].fn;return vt},it.prototype.listenerCount=function(ct){var ut=_e?_e+ct:ct,dt=this._events[ut];return dt?dt.fn?1:dt.length:0},it.prototype.emit=function(ct,ut,dt,pt,mt,vt){var Et=_e?_e+ct:ct;if(!this._events[Et])return!1;var Rt=this._events[Et],xt=arguments.length,Pt,Dt;if(Rt.fn){switch(Rt.once&&this.removeListener(ct,Rt.fn,void 0,!0),xt){case 1:return Rt.fn.call(Rt.context),!0;case 2:return Rt.fn.call(Rt.context,ut),!0;case 3:return Rt.fn.call(Rt.context,ut,dt),!0;case 4:return Rt.fn.call(Rt.context,ut,dt,pt),!0;case 5:return Rt.fn.call(Rt.context,ut,dt,pt,mt),!0;case 6:return Rt.fn.call(Rt.context,ut,dt,pt,mt,vt),!0}for(Dt=1,Pt=new Array(xt-1);Dt<xt;Dt++)Pt[Dt-1]=arguments[Dt];Rt.fn.apply(Rt.context,Pt)}else{var Ft=Rt.length,zt;for(Dt=0;Dt<Ft;Dt++)switch(Rt[Dt].once&&this.removeListener(ct,Rt[Dt].fn,void 0,!0),xt){case 1:Rt[Dt].fn.call(Rt[Dt].context);break;case 2:Rt[Dt].fn.call(Rt[Dt].context,ut);break;case 3:Rt[Dt].fn.call(Rt[Dt].context,ut,dt);break;case 4:Rt[Dt].fn.call(Rt[Dt].context,ut,dt,pt);break;default:if(!Pt)for(zt=1,Pt=new Array(xt-1);zt<xt;zt++)Pt[zt-1]=arguments[zt];Rt[Dt].fn.apply(Rt[Dt].context,Pt)}}return!0},it.prototype.on=function(ct,ut,dt){return nt(this,ct,ut,dt,!1)},it.prototype.once=function(ct,ut,dt){return nt(this,ct,ut,dt,!0)},it.prototype.removeListener=function(ct,ut,dt,pt){var mt=_e?_e+ct:ct;if(!this._events[mt])return this;if(!ut)return rt(this,mt),this;var vt=this._events[mt];if(vt.fn)vt.fn===ut&&(!pt||vt.once)&&(!dt||vt.context===dt)&&rt(this,mt);else{for(var Et=0,Rt=[],xt=vt.length;Et<xt;Et++)(vt[Et].fn!==ut||pt&&!vt[Et].once||dt&&vt[Et].context!==dt)&&Rt.push(vt[Et]);Rt.length?this._events[mt]=Rt.length===1?Rt[0]:Rt:rt(this,mt)}return this},it.prototype.removeAllListeners=function(ct){var ut;return ct?(ut=_e?_e+ct:ct,this._events[ut]&&rt(this,ut)):(this._events=new et,this._eventsCount=0),this},it.prototype.off=it.prototype.removeListener,it.prototype.addListener=it.prototype.on,it.prefixed=_e,it.EventEmitter=it,a.exports=it})(eventemitter3$3);var eventemitter3Exports$3=eventemitter3$3.exports;const EventEmitter$6=getDefaultExportFromCjs$1(eventemitter3Exports$3);var pWaitFor$2={exports:{}},pTimeout$3={exports:{}};class TimeoutError extends Error{constructor(j){super(j),this.name="TimeoutError"}}const pTimeout$1=(a,j,_e,et)=>{let tt;const nt=new Promise((rt,it)=>{if(typeof j!="number"||j<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(j===1/0){rt(a);return}et={customTimers:{setTimeout,clearTimeout},...et},tt=et.customTimers.setTimeout.call(void 0,()=>{if(typeof _e=="function"){try{rt(_e())}catch(ut){it(ut)}return}const ot=typeof _e=="string"?_e:`Promise timed out after ${j} milliseconds`,ct=_e instanceof Error?_e:new TimeoutError(ot);typeof a.cancel=="function"&&a.cancel(),it(ct)},j),(async()=>{try{rt(await a)}catch(ot){it(ot)}finally{et.customTimers.clearTimeout.call(void 0,tt)}})()});return nt.clear=()=>{clearTimeout(tt),tt=void 0},nt};pTimeout$3.exports=pTimeout$1;pTimeout$3.exports.default=pTimeout$1;var TimeoutError_1=pTimeout$3.exports.TimeoutError=TimeoutError,pTimeoutExports=pTimeout$3.exports;const pTimeout$2=getDefaultExportFromCjs$1(pTimeoutExports),pTimeout=pTimeoutExports,pWaitFor=async(a,j)=>{j={interval:20,timeout:1/0,leadingCheck:!0,...j};let _e;const et=new Promise((tt,nt)=>{const rt=async()=>{try{const it=await a();if(typeof it!="boolean")throw new TypeError("Expected condition to return a boolean");it===!0?tt():_e=setTimeout(rt,j.interval)}catch(it){nt(it)}};j.leadingCheck?rt():_e=setTimeout(rt,j.interval)});if(j.timeout!==1/0)try{return await pTimeout(et,j.timeout)}catch(tt){throw _e&&clearTimeout(_e),tt}return et};pWaitFor$2.exports=pWaitFor;pWaitFor$2.exports.default=pWaitFor;var pWaitForExports=pWaitFor$2.exports;const pWaitFor$1=getDefaultExportFromCjs$1(pWaitForExports);var createUpdateEffect=function(a){return function(j,_e){var et=reactExports.useRef(!1);a(function(){return function(){et.current=!1}},[]),a(function(){if(!et.current)et.current=!0;else return j()},_e)}},extendStatics=function(a,j){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,et){_e.__proto__=et}||function(_e,et){for(var tt in et)Object.prototype.hasOwnProperty.call(et,tt)&&(_e[tt]=et[tt])},extendStatics(a,j)};function __extends(a,j){if(typeof j!="function"&&j!==null)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");extendStatics(a,j);function _e(){this.constructor=a}a.prototype=j===null?Object.create(j):(_e.prototype=j.prototype,new _e)}var __assign=function(){return __assign=Object.assign||function(j){for(var _e,et=1,tt=arguments.length;et<tt;et++){_e=arguments[et];for(var nt in _e)Object.prototype.hasOwnProperty.call(_e,nt)&&(j[nt]=_e[nt])}return j},__assign.apply(this,arguments)};function __rest(a,j){var _e={};for(var et in a)Object.prototype.hasOwnProperty.call(a,et)&&j.indexOf(et)<0&&(_e[et]=a[et]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,et=Object.getOwnPropertySymbols(a);tt<et.length;tt++)j.indexOf(et[tt])<0&&Object.prototype.propertyIsEnumerable.call(a,et[tt])&&(_e[et[tt]]=a[et[tt]]);return _e}function __decorate(a,j,_e,et){var tt=arguments.length,nt=tt<3?j:et===null?et=Object.getOwnPropertyDescriptor(j,_e):et,rt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")nt=Reflect.decorate(a,j,_e,et);else for(var it=a.length-1;it>=0;it--)(rt=a[it])&&(nt=(tt<3?rt(nt):tt>3?rt(j,_e,nt):rt(j,_e))||nt);return tt>3&&nt&&Object.defineProperty(j,_e,nt),nt}function __param(a,j){return function(_e,et){j(_e,et,a)}}function __esDecorate(a,j,_e,et,tt,nt){function rt(xt){if(xt!==void 0&&typeof xt!="function")throw new TypeError("Function expected");return xt}for(var it=et.kind,ot=it==="getter"?"get":it==="setter"?"set":"value",ct=!j&&a?et.static?a:a.prototype:null,ut=j||(ct?Object.getOwnPropertyDescriptor(ct,et.name):{}),dt,pt=!1,mt=_e.length-1;mt>=0;mt--){var vt={};for(var Et in et)vt[Et]=Et==="access"?{}:et[Et];for(var Et in et.access)vt.access[Et]=et.access[Et];vt.addInitializer=function(xt){if(pt)throw new TypeError("Cannot add initializers after decoration has completed");nt.push(rt(xt||null))};var Rt=(0,_e[mt])(it==="accessor"?{get:ut.get,set:ut.set}:ut[ot],vt);if(it==="accessor"){if(Rt===void 0)continue;if(Rt===null||typeof Rt!="object")throw new TypeError("Object expected");(dt=rt(Rt.get))&&(ut.get=dt),(dt=rt(Rt.set))&&(ut.set=dt),(dt=rt(Rt.init))&&tt.unshift(dt)}else(dt=rt(Rt))&&(it==="field"?tt.unshift(dt):ut[ot]=dt)}ct&&Object.defineProperty(ct,et.name,ut),pt=!0}function __runInitializers(a,j,_e){for(var et=arguments.length>2,tt=0;tt<j.length;tt++)_e=et?j[tt].call(a,_e):j[tt].call(a);return et?_e:void 0}function __propKey(a){return typeof a=="symbol"?a:"".concat(a)}function __setFunctionName(a,j,_e){return typeof j=="symbol"&&(j=j.description?"[".concat(j.description,"]"):""),Object.defineProperty(a,"name",{configurable:!0,value:_e?"".concat(_e," ",j):j})}function __metadata(a,j){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,j)}function __awaiter(a,j,_e,et){function tt(nt){return nt instanceof _e?nt:new _e(function(rt){rt(nt)})}return new(_e||(_e=Promise))(function(nt,rt){function it(ut){try{ct(et.next(ut))}catch(dt){rt(dt)}}function ot(ut){try{ct(et.throw(ut))}catch(dt){rt(dt)}}function ct(ut){ut.done?nt(ut.value):tt(ut.value).then(it,ot)}ct((et=et.apply(a,j||[])).next())})}function __generator(a,j){var _e={label:0,sent:function(){if(nt[0]&1)throw nt[1];return nt[1]},trys:[],ops:[]},et,tt,nt,rt;return rt={next:it(0),throw:it(1),return:it(2)},typeof Symbol=="function"&&(rt[Symbol.iterator]=function(){return this}),rt;function it(ct){return function(ut){return ot([ct,ut])}}function ot(ct){if(et)throw new TypeError("Generator is already executing.");for(;rt&&(rt=0,ct[0]&&(_e=0)),_e;)try{if(et=1,tt&&(nt=ct[0]&2?tt.return:ct[0]?tt.throw||((nt=tt.return)&&nt.call(tt),0):tt.next)&&!(nt=nt.call(tt,ct[1])).done)return nt;switch(tt=0,nt&&(ct=[ct[0]&2,nt.value]),ct[0]){case 0:case 1:nt=ct;break;case 4:return _e.label++,{value:ct[1],done:!1};case 5:_e.label++,tt=ct[1],ct=[0];continue;case 7:ct=_e.ops.pop(),_e.trys.pop();continue;default:if(nt=_e.trys,!(nt=nt.length>0&&nt[nt.length-1])&&(ct[0]===6||ct[0]===2)){_e=0;continue}if(ct[0]===3&&(!nt||ct[1]>nt[0]&&ct[1]<nt[3])){_e.label=ct[1];break}if(ct[0]===6&&_e.label<nt[1]){_e.label=nt[1],nt=ct;break}if(nt&&_e.label<nt[2]){_e.label=nt[2],_e.ops.push(ct);break}nt[2]&&_e.ops.pop(),_e.trys.pop();continue}ct=j.call(a,_e)}catch(ut){ct=[6,ut],tt=0}finally{et=nt=0}if(ct[0]&5)throw ct[1];return{value:ct[0]?ct[1]:void 0,done:!0}}}var __createBinding=Object.create?function(a,j,_e,et){et===void 0&&(et=_e);var tt=Object.getOwnPropertyDescriptor(j,_e);(!tt||("get"in tt?!j.__esModule:tt.writable||tt.configurable))&&(tt={enumerable:!0,get:function(){return j[_e]}}),Object.defineProperty(a,et,tt)}:function(a,j,_e,et){et===void 0&&(et=_e),a[et]=j[_e]};function __exportStar(a,j){for(var _e in a)_e!=="default"&&!Object.prototype.hasOwnProperty.call(j,_e)&&__createBinding(j,a,_e)}function __values(a){var j=typeof Symbol=="function"&&Symbol.iterator,_e=j&&a[j],et=0;if(_e)return _e.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&et>=a.length&&(a=void 0),{value:a&&a[et++],done:!a}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(a,j){var _e=typeof Symbol=="function"&&a[Symbol.iterator];if(!_e)return a;var et=_e.call(a),tt,nt=[],rt;try{for(;(j===void 0||j-- >0)&&!(tt=et.next()).done;)nt.push(tt.value)}catch(it){rt={error:it}}finally{try{tt&&!tt.done&&(_e=et.return)&&_e.call(et)}finally{if(rt)throw rt.error}}return nt}function __spread(){for(var a=[],j=0;j<arguments.length;j++)a=a.concat(__read(arguments[j]));return a}function __spreadArrays(){for(var a=0,j=0,_e=arguments.length;j<_e;j++)a+=arguments[j].length;for(var et=Array(a),tt=0,j=0;j<_e;j++)for(var nt=arguments[j],rt=0,it=nt.length;rt<it;rt++,tt++)et[tt]=nt[rt];return et}function __spreadArray(a,j,_e){if(_e||arguments.length===2)for(var et=0,tt=j.length,nt;et<tt;et++)(nt||!(et in j))&&(nt||(nt=Array.prototype.slice.call(j,0,et)),nt[et]=j[et]);return a.concat(nt||Array.prototype.slice.call(j))}function __await(a){return this instanceof __await?(this.v=a,this):new __await(a)}function __asyncGenerator(a,j,_e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var et=_e.apply(a,j||[]),tt,nt=[];return tt={},it("next"),it("throw"),it("return",rt),tt[Symbol.asyncIterator]=function(){return this},tt;function rt(mt){return function(vt){return Promise.resolve(vt).then(mt,dt)}}function it(mt,vt){et[mt]&&(tt[mt]=function(Et){return new Promise(function(Rt,xt){nt.push([mt,Et,Rt,xt])>1||ot(mt,Et)})},vt&&(tt[mt]=vt(tt[mt])))}function ot(mt,vt){try{ct(et[mt](vt))}catch(Et){pt(nt[0][3],Et)}}function ct(mt){mt.value instanceof __await?Promise.resolve(mt.value.v).then(ut,dt):pt(nt[0][2],mt)}function ut(mt){ot("next",mt)}function dt(mt){ot("throw",mt)}function pt(mt,vt){mt(vt),nt.shift(),nt.length&&ot(nt[0][0],nt[0][1])}}function __asyncDelegator(a){var j,_e;return j={},et("next"),et("throw",function(tt){throw tt}),et("return"),j[Symbol.iterator]=function(){return this},j;function et(tt,nt){j[tt]=a[tt]?function(rt){return(_e=!_e)?{value:__await(a[tt](rt)),done:!1}:nt?nt(rt):rt}:nt}}function __asyncValues(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var j=a[Symbol.asyncIterator],_e;return j?j.call(a):(a=typeof __values=="function"?__values(a):a[Symbol.iterator](),_e={},et("next"),et("throw"),et("return"),_e[Symbol.asyncIterator]=function(){return this},_e);function et(nt){_e[nt]=a[nt]&&function(rt){return new Promise(function(it,ot){rt=a[nt](rt),tt(it,ot,rt.done,rt.value)})}}function tt(nt,rt,it,ot){Promise.resolve(ot).then(function(ct){nt({value:ct,done:it})},rt)}}function __makeTemplateObject(a,j){return Object.defineProperty?Object.defineProperty(a,"raw",{value:j}):a.raw=j,a}var __setModuleDefault=Object.create?function(a,j){Object.defineProperty(a,"default",{enumerable:!0,value:j})}:function(a,j){a.default=j};function __importStar(a){if(a&&a.__esModule)return a;var j={};if(a!=null)for(var _e in a)_e!=="default"&&Object.prototype.hasOwnProperty.call(a,_e)&&__createBinding(j,a,_e);return __setModuleDefault(j,a),j}function __importDefault$b(a){return a&&a.__esModule?a:{default:a}}function __classPrivateFieldGet(a,j,_e,et){if(_e==="a"&&!et)throw new TypeError("Private accessor was defined without a getter");if(typeof j=="function"?a!==j||!et:!j.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return _e==="m"?et:_e==="a"?et.call(a):et?et.value:j.get(a)}function __classPrivateFieldSet(a,j,_e,et,tt){if(et==="m")throw new TypeError("Private method is not writable");if(et==="a"&&!tt)throw new TypeError("Private accessor was defined without a setter");if(typeof j=="function"?a!==j||!tt:!j.has(a))throw new TypeError("Cannot write private member to an object whose class did not declare it");return et==="a"?tt.call(a,_e):tt?tt.value=_e:j.set(a,_e),_e}function __classPrivateFieldIn(a,j){if(j===null||typeof j!="object"&&typeof j!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof a=="function"?j===a:a.has(j)}function __addDisposableResource(a,j,_e){if(j!=null){if(typeof j!="object"&&typeof j!="function")throw new TypeError("Object expected.");var et,tt;if(_e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");et=j[Symbol.asyncDispose]}if(et===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");et=j[Symbol.dispose],_e&&(tt=et)}if(typeof et!="function")throw new TypeError("Object not disposable.");tt&&(et=function(){try{tt.call(this)}catch(nt){return Promise.reject(nt)}}),a.stack.push({value:j,dispose:et,async:_e})}else _e&&a.stack.push({async:!0});return j}var _SuppressedError=typeof SuppressedError=="function"?SuppressedError:function(a,j,_e){var et=new Error(_e);return et.name="SuppressedError",et.error=a,et.suppressed=j,et};function __disposeResources(a){function j(et){a.error=a.hasError?new _SuppressedError(et,a.error,"An error was suppressed during disposal."):et,a.hasError=!0}function _e(){for(;a.stack.length;){var et=a.stack.pop();try{var tt=et.dispose&&et.dispose.call(et.value);if(et.async)return Promise.resolve(tt).then(_e,function(nt){return j(nt),_e()})}catch(nt){j(nt)}}if(a.hasError)throw a.error}return _e()}const tslib_es6={__extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator,__createBinding,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault:__importDefault$b,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources},tslib_es6$1=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource,get __assign(){return __assign},__asyncDelegator,__asyncGenerator,__asyncValues,__await,__awaiter,__classPrivateFieldGet,__classPrivateFieldIn,__classPrivateFieldSet,__createBinding,__decorate,__disposeResources,__esDecorate,__exportStar,__extends,__generator,__importDefault:__importDefault$b,__importStar,__makeTemplateObject,__metadata,__param,__propKey,__read,__rest,__runInitializers,__setFunctionName,__spread,__spreadArray,__spreadArrays,__values,default:tslib_es6},Symbol.toStringTag,{value:"Module"}));var isFunction$3=function(a){return typeof a=="function"},isString$3=function(a){return typeof a=="string"},isNumber$2=function(a){return typeof a=="number"},isUndef=function(a){return typeof a>"u"};function useMemoizedFn(a){var j=reactExports.useRef(a);j.current=reactExports.useMemo(function(){return a},[a]);var _e=reactExports.useRef();return _e.current||(_e.current=function(){for(var et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];return j.current.apply(this,et)}),_e.current}const useUpdateEffect=createUpdateEffect(reactExports.useEffect);var useAutoRunPlugin=function(a,j){var _e=j.manual,et=j.ready,tt=et===void 0?!0:et,nt=j.defaultParams,rt=nt===void 0?[]:nt,it=j.refreshDeps,ot=it===void 0?[]:it,ct=j.refreshDepsAction,ut=reactExports.useRef(!1);return ut.current=!1,useUpdateEffect(function(){!_e&&tt&&(ut.current=!0,a.run.apply(a,__spreadArray([],__read(rt),!1)))},[tt]),useUpdateEffect(function(){ut.current||_e||(ut.current=!0,ct?ct():a.refresh())},__spreadArray([],__read(ot),!1)),{onBefore:function(){if(!tt)return{stopNow:!0}}}};useAutoRunPlugin.onInit=function(a){var j=a.ready,_e=j===void 0?!0:j,et=a.manual;return{loading:!et&&_e}};function depsAreSame(a,j){if(a===j)return!0;for(var _e=0;_e<a.length;_e++)if(!Object.is(a[_e],j[_e]))return!1;return!0}function useCreation(a,j){var _e=reactExports.useRef({deps:j,obj:void 0,initialized:!1}).current;return(_e.initialized===!1||!depsAreSame(_e.deps,j))&&(_e.deps=j,_e.obj=a(),_e.initialized=!0),_e.obj}function useLatest(a){var j=reactExports.useRef(a);return j.current=a,j}var useUnmount=function(a){var j=useLatest(a);reactExports.useEffect(function(){return function(){j.current()}},[])},cache$2=new Map,setCache=function(a,j,_e){var et=cache$2.get(a);et!=null&&et.timer&&clearTimeout(et.timer);var tt=void 0;j>-1&&(tt=setTimeout(function(){cache$2.delete(a)},j)),cache$2.set(a,__assign(__assign({},_e),{timer:tt}))},getCache=function(a){return cache$2.get(a)},cachePromise=new Map,getCachePromise=function(a){return cachePromise.get(a)},setCachePromise=function(a,j){cachePromise.set(a,j),j.then(function(_e){return cachePromise.delete(a),_e}).catch(function(){cachePromise.delete(a)})},listeners$2={},trigger=function(a,j){listeners$2[a]&&listeners$2[a].forEach(function(_e){return _e(j)})},subscribe$2=function(a,j){return listeners$2[a]||(listeners$2[a]=[]),listeners$2[a].push(j),function(){var et=listeners$2[a].indexOf(j);listeners$2[a].splice(et,1)}},useCachePlugin=function(a,j){var _e=j.cacheKey,et=j.cacheTime,tt=et===void 0?5*60*1e3:et,nt=j.staleTime,rt=nt===void 0?0:nt,it=j.setCache,ot=j.getCache,ct=reactExports.useRef(),ut=reactExports.useRef(),dt=function(mt,vt){it?it(vt):setCache(mt,tt,vt),trigger(mt,vt.data)},pt=function(mt,vt){return vt===void 0&&(vt=[]),ot?ot(vt):getCache(mt)};return useCreation(function(){if(_e){var mt=pt(_e);mt&&Object.hasOwnProperty.call(mt,"data")&&(a.state.data=mt.data,a.state.params=mt.params,(rt===-1||new Date().getTime()-mt.time<=rt)&&(a.state.loading=!1)),ct.current=subscribe$2(_e,function(vt){a.setState({data:vt})})}},[]),useUnmount(function(){var mt;(mt=ct.current)===null||mt===void 0||mt.call(ct)}),_e?{onBefore:function(mt){var vt=pt(_e,mt);return!vt||!Object.hasOwnProperty.call(vt,"data")?{}:rt===-1||new Date().getTime()-vt.time<=rt?{loading:!1,data:vt==null?void 0:vt.data,error:void 0,returnNow:!0}:{data:vt==null?void 0:vt.data,error:void 0}},onRequest:function(mt,vt){var Et=getCachePromise(_e);return Et&&Et!==ut.current?{servicePromise:Et}:(Et=mt.apply(void 0,__spreadArray([],__read(vt),!1)),ut.current=Et,setCachePromise(_e,Et),{servicePromise:Et})},onSuccess:function(mt,vt){var Et;_e&&((Et=ct.current)===null||Et===void 0||Et.call(ct),dt(_e,{data:mt,params:vt,time:new Date().getTime()}),ct.current=subscribe$2(_e,function(Rt){a.setState({data:Rt})}))},onMutate:function(mt){var vt;_e&&((vt=ct.current)===null||vt===void 0||vt.call(ct),dt(_e,{data:mt,params:a.state.params,time:new Date().getTime()}),ct.current=subscribe$2(_e,function(Et){a.setState({data:Et})}))}}:{}},root$3=_root,now$1=function(){return root$3.Date.now()},now_1=now$1,isObject$c=isObject_1,now=now_1,toNumber$2=toNumber_1,FUNC_ERROR_TEXT$4="Expected a function",nativeMax=Math.max,nativeMin$1=Math.min;function debounce$2(a,j,_e){var et,tt,nt,rt,it,ot,ct=0,ut=!1,dt=!1,pt=!0;if(typeof a!="function")throw new TypeError(FUNC_ERROR_TEXT$4);j=toNumber$2(j)||0,isObject$c(_e)&&(ut=!!_e.leading,dt="maxWait"in _e,nt=dt?nativeMax(toNumber$2(_e.maxWait)||0,j):nt,pt="trailing"in _e?!!_e.trailing:pt);function mt(Nt){var Vt=et,nn=tt;return et=tt=void 0,ct=Nt,rt=a.apply(nn,Vt),rt}function vt(Nt){return ct=Nt,it=setTimeout(xt,j),ut?mt(Nt):rt}function Et(Nt){var Vt=Nt-ot,nn=Nt-ct,fn=j-Vt;return dt?nativeMin$1(fn,nt-nn):fn}function Rt(Nt){var Vt=Nt-ot,nn=Nt-ct;return ot===void 0||Vt>=j||Vt<0||dt&&nn>=nt}function xt(){var Nt=now();if(Rt(Nt))return Pt(Nt);it=setTimeout(xt,Et(Nt))}function Pt(Nt){return it=void 0,pt&&et?mt(Nt):(et=tt=void 0,rt)}function Dt(){it!==void 0&&clearTimeout(it),ct=0,et=ot=tt=it=void 0}function Ft(){return it===void 0?rt:Pt(now())}function zt(){var Nt=now(),Vt=Rt(Nt);if(et=arguments,tt=this,ot=Nt,Vt){if(it===void 0)return vt(ot);if(dt)return clearTimeout(it),it=setTimeout(xt,j),mt(ot)}return it===void 0&&(it=setTimeout(xt,j)),rt}return zt.cancel=Dt,zt.flush=Ft,zt}var debounce_1=debounce$2;const debounce$3=getDefaultExportFromCjs$1(debounce_1);var useDebouncePlugin=function(a,j){var _e=j.debounceWait,et=j.debounceLeading,tt=j.debounceTrailing,nt=j.debounceMaxWait,rt=reactExports.useRef(),it=reactExports.useMemo(function(){var ot={};return et!==void 0&&(ot.leading=et),tt!==void 0&&(ot.trailing=tt),nt!==void 0&&(ot.maxWait=nt),ot},[et,tt,nt]);return reactExports.useEffect(function(){if(_e){var ot=a.runAsync.bind(a);return rt.current=debounce$3(function(ct){ct()},_e,it),a.runAsync=function(){for(var ct=[],ut=0;ut<arguments.length;ut++)ct[ut]=arguments[ut];return new Promise(function(dt,pt){var mt;(mt=rt.current)===null||mt===void 0||mt.call(rt,function(){ot.apply(void 0,__spreadArray([],__read(ct),!1)).then(dt).catch(pt)})})},function(){var ct;(ct=rt.current)===null||ct===void 0||ct.cancel(),a.runAsync=ot}}},[_e,it]),_e?{onCancel:function(){var ot;(ot=rt.current)===null||ot===void 0||ot.cancel()}}:{}},useLoadingDelayPlugin=function(a,j){var _e=j.loadingDelay,et=j.ready,tt=reactExports.useRef();if(!_e)return{};var nt=function(){tt.current&&clearTimeout(tt.current)};return{onBefore:function(){return nt(),et!==!1&&(tt.current=setTimeout(function(){a.setState({loading:!0})},_e)),{loading:!1}},onFinally:function(){nt()},onCancel:function(){nt()}}},isBrowser$1=!!(typeof window<"u"&&window.document&&window.document.createElement);function isDocumentVisible(){return isBrowser$1?document.visibilityState!=="hidden":!0}var listeners$1=[];function subscribe$1(a){return listeners$1.push(a),function(){var _e=listeners$1.indexOf(a);listeners$1.splice(_e,1)}}if(isBrowser$1){var revalidate$1=function(){if(isDocumentVisible())for(var a=0;a<listeners$1.length;a++){var j=listeners$1[a];j()}};window.addEventListener("visibilitychange",revalidate$1,!1)}var usePollingPlugin=function(a,j){var _e=j.pollingInterval,et=j.pollingWhenHidden,tt=et===void 0?!0:et,nt=j.pollingErrorRetryCount,rt=nt===void 0?-1:nt,it=reactExports.useRef(),ot=reactExports.useRef(),ct=reactExports.useRef(0),ut=function(){var dt;it.current&&clearTimeout(it.current),(dt=ot.current)===null||dt===void 0||dt.call(ot)};return useUpdateEffect(function(){_e||ut()},[_e]),_e?{onBefore:function(){ut()},onError:function(){ct.current+=1},onSuccess:function(){ct.current=0},onFinally:function(){rt===-1||rt!==-1&&ct.current<=rt?it.current=setTimeout(function(){!tt&&!isDocumentVisible()?ot.current=subscribe$1(function(){a.refresh()}):a.refresh()},_e):ct.current=0},onCancel:function(){ut()}}:{}};function limit(a,j){var _e=!1;return function(){for(var et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];_e||(_e=!0,a.apply(void 0,__spreadArray([],__read(et),!1)),setTimeout(function(){_e=!1},j))}}function isOnline(){return isBrowser$1&&typeof navigator.onLine<"u"?navigator.onLine:!0}var listeners=[];function subscribe(a){return listeners.push(a),function(){var _e=listeners.indexOf(a);_e>-1&&listeners.splice(_e,1)}}if(isBrowser$1){var revalidate=function(){if(!(!isDocumentVisible()||!isOnline()))for(var a=0;a<listeners.length;a++){var j=listeners[a];j()}};window.addEventListener("visibilitychange",revalidate,!1),window.addEventListener("focus",revalidate,!1)}var useRefreshOnWindowFocusPlugin=function(a,j){var _e=j.refreshOnWindowFocus,et=j.focusTimespan,tt=et===void 0?5e3:et,nt=reactExports.useRef(),rt=function(){var it;(it=nt.current)===null||it===void 0||it.call(nt)};return reactExports.useEffect(function(){if(_e){var it=limit(a.refresh.bind(a),tt);nt.current=subscribe(function(){it()})}return function(){rt()}},[_e,tt]),useUnmount(function(){rt()}),{}},useRetryPlugin=function(a,j){var _e=j.retryInterval,et=j.retryCount,tt=reactExports.useRef(),nt=reactExports.useRef(0),rt=reactExports.useRef(!1);return et?{onBefore:function(){rt.current||(nt.current=0),rt.current=!1,tt.current&&clearTimeout(tt.current)},onSuccess:function(){nt.current=0},onError:function(){if(nt.current+=1,et===-1||nt.current<=et){var it=_e??Math.min(1e3*Math.pow(2,nt.current),3e4);tt.current=setTimeout(function(){rt.current=!0,a.refresh()},it)}else nt.current=0},onCancel:function(){nt.current=0,tt.current&&clearTimeout(tt.current)}}:{}},debounce$1=debounce_1,isObject$b=isObject_1,FUNC_ERROR_TEXT$3="Expected a function";function throttle$3(a,j,_e){var et=!0,tt=!0;if(typeof a!="function")throw new TypeError(FUNC_ERROR_TEXT$3);return isObject$b(_e)&&(et="leading"in _e?!!_e.leading:et,tt="trailing"in _e?!!_e.trailing:tt),debounce$1(a,j,{leading:et,maxWait:j,trailing:tt})}var throttle_1=throttle$3;const throttle$4=getDefaultExportFromCjs$1(throttle_1);var useThrottlePlugin=function(a,j){var _e=j.throttleWait,et=j.throttleLeading,tt=j.throttleTrailing,nt=reactExports.useRef(),rt={};return et!==void 0&&(rt.leading=et),tt!==void 0&&(rt.trailing=tt),reactExports.useEffect(function(){if(_e){var it=a.runAsync.bind(a);return nt.current=throttle$4(function(ot){ot()},_e,rt),a.runAsync=function(){for(var ot=[],ct=0;ct<arguments.length;ct++)ot[ct]=arguments[ct];return new Promise(function(ut,dt){var pt;(pt=nt.current)===null||pt===void 0||pt.call(nt,function(){it.apply(void 0,__spreadArray([],__read(ot),!1)).then(ut).catch(dt)})})},function(){var ot;a.runAsync=it,(ot=nt.current)===null||ot===void 0||ot.cancel()}}},[_e,et,tt]),_e?{onCancel:function(){var it;(it=nt.current)===null||it===void 0||it.cancel()}}:{}},useMount=function(a){reactExports.useEffect(function(){a==null||a()},[])},useUpdate=function(){var a=__read(reactExports.useState({}),2),j=a[1];return reactExports.useCallback(function(){return j({})},[])},Fetch=function(){function a(j,_e,et,tt){tt===void 0&&(tt={}),this.serviceRef=j,this.options=_e,this.subscribe=et,this.initState=tt,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=__assign(__assign(__assign({},this.state),{loading:!_e.manual}),tt)}return a.prototype.setState=function(j){j===void 0&&(j={}),this.state=__assign(__assign({},this.state),j),this.subscribe()},a.prototype.runPluginHandler=function(j){for(var _e=[],et=1;et<arguments.length;et++)_e[et-1]=arguments[et];var tt=this.pluginImpls.map(function(nt){var rt;return(rt=nt[j])===null||rt===void 0?void 0:rt.call.apply(rt,__spreadArray([nt],__read(_e),!1))}).filter(Boolean);return Object.assign.apply(Object,__spreadArray([{}],__read(tt),!1))},a.prototype.runAsync=function(){for(var j,_e,et,tt,nt,rt,it,ot,ct,ut,dt=[],pt=0;pt<arguments.length;pt++)dt[pt]=arguments[pt];return __awaiter(this,void 0,void 0,function(){var mt,vt,Et,Rt,xt,Pt,Dt,Ft,zt,Nt,Vt;return __generator(this,function(nn){switch(nn.label){case 0:if(this.count+=1,mt=this.count,vt=this.runPluginHandler("onBefore",dt),Et=vt.stopNow,Rt=Et===void 0?!1:Et,xt=vt.returnNow,Pt=xt===void 0?!1:xt,Dt=__rest(vt,["stopNow","returnNow"]),Rt)return[2,new Promise(function(){})];if(this.setState(__assign({loading:!0,params:dt},Dt)),Pt)return[2,Promise.resolve(Dt.data)];(_e=(j=this.options).onBefore)===null||_e===void 0||_e.call(j,dt),nn.label=1;case 1:return nn.trys.push([1,3,,4]),Ft=this.runPluginHandler("onRequest",this.serviceRef.current,dt).servicePromise,Ft||(Ft=(Vt=this.serviceRef).current.apply(Vt,__spreadArray([],__read(dt),!1))),[4,Ft];case 2:return zt=nn.sent(),mt!==this.count?[2,new Promise(function(){})]:(this.setState({data:zt,error:void 0,loading:!1}),(tt=(et=this.options).onSuccess)===null||tt===void 0||tt.call(et,zt,dt),this.runPluginHandler("onSuccess",zt,dt),(rt=(nt=this.options).onFinally)===null||rt===void 0||rt.call(nt,dt,zt,void 0),mt===this.count&&this.runPluginHandler("onFinally",dt,zt,void 0),[2,zt]);case 3:if(Nt=nn.sent(),mt!==this.count)return[2,new Promise(function(){})];throw this.setState({error:Nt,loading:!1}),(ot=(it=this.options).onError)===null||ot===void 0||ot.call(it,Nt,dt),this.runPluginHandler("onError",Nt,dt),(ut=(ct=this.options).onFinally)===null||ut===void 0||ut.call(ct,dt,void 0,Nt),mt===this.count&&this.runPluginHandler("onFinally",dt,void 0,Nt),Nt;case 4:return[2]}})})},a.prototype.run=function(){for(var j=this,_e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];this.runAsync.apply(this,__spreadArray([],__read(_e),!1)).catch(function(tt){j.options.onError||console.error(tt)})},a.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},a.prototype.refresh=function(){this.run.apply(this,__spreadArray([],__read(this.state.params||[]),!1))},a.prototype.refreshAsync=function(){return this.runAsync.apply(this,__spreadArray([],__read(this.state.params||[]),!1))},a.prototype.mutate=function(j){var _e=isFunction$3(j)?j(this.state.data):j;this.runPluginHandler("onMutate",_e),this.setState({data:_e})},a}();function useRequestImplement(a,j,_e){j===void 0&&(j={}),_e===void 0&&(_e=[]);var et=j.manual,tt=et===void 0?!1:et,nt=j.ready,rt=nt===void 0?!0:nt,it=__rest(j,["manual","ready"]),ot=__assign({manual:tt,ready:rt},it),ct=useLatest(a),ut=useUpdate(),dt=useCreation(function(){var pt=_e.map(function(mt){var vt;return(vt=mt==null?void 0:mt.onInit)===null||vt===void 0?void 0:vt.call(mt,ot)}).filter(Boolean);return new Fetch(ct,ot,ut,Object.assign.apply(Object,__spreadArray([{}],__read(pt),!1)))},[]);return dt.options=ot,dt.pluginImpls=_e.map(function(pt){return pt(dt,ot)}),useMount(function(){if(!tt&&rt){var pt=dt.state.params||j.defaultParams||[];dt.run.apply(dt,__spreadArray([],__read(pt),!1))}}),useUnmount(function(){dt.cancel()}),{loading:dt.state.loading,data:dt.state.data,error:dt.state.error,params:dt.state.params||[],cancel:useMemoizedFn(dt.cancel.bind(dt)),refresh:useMemoizedFn(dt.refresh.bind(dt)),refreshAsync:useMemoizedFn(dt.refreshAsync.bind(dt)),run:useMemoizedFn(dt.run.bind(dt)),runAsync:useMemoizedFn(dt.runAsync.bind(dt)),mutate:useMemoizedFn(dt.mutate.bind(dt))}}function useRequest(a,j,_e){return useRequestImplement(a,j,__spreadArray(__spreadArray([],__read([]),!1),[useDebouncePlugin,useLoadingDelayPlugin,usePollingPlugin,useRefreshOnWindowFocusPlugin,useThrottlePlugin,useAutoRunPlugin,useCachePlugin,useRetryPlugin],!1))}function isAsyncGenerator(a){return isFunction$3(a[Symbol.asyncIterator])}function useAsyncEffect(a,j){reactExports.useEffect(function(){var _e=a(),et=!1;function tt(){return __awaiter(this,void 0,void 0,function(){var nt;return __generator(this,function(rt){switch(rt.label){case 0:if(!isAsyncGenerator(_e))return[3,4];rt.label=1;case 1:return[4,_e.next()];case 2:return nt=rt.sent(),nt.done||et?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,_e];case 5:rt.sent(),rt.label=6;case 6:return[2]}})})}return tt(),function(){et=!0}},j)}function getTargetElement(a,j){if(isBrowser$1){if(!a)return j;var _e;return isFunction$3(a)?_e=a():"current"in a?_e=a.current:_e=a,_e}}var createEffectWithTarget=function(a){var j=function(_e,et,tt){var nt=reactExports.useRef(!1),rt=reactExports.useRef([]),it=reactExports.useRef([]),ot=reactExports.useRef();a(function(){var ct,ut=Array.isArray(tt)?tt:[tt],dt=ut.map(function(pt){return getTargetElement(pt)});if(!nt.current){nt.current=!0,rt.current=dt,it.current=et,ot.current=_e();return}(dt.length!==rt.current.length||!depsAreSame(rt.current,dt)||!depsAreSame(it.current,et))&&((ct=ot.current)===null||ct===void 0||ct.call(ot),rt.current=dt,it.current=et,ot.current=_e())}),useUnmount(function(){var ct;(ct=ot.current)===null||ct===void 0||ct.call(ot),nt.current=!1})};return j},useEffectWithTarget$1=createEffectWithTarget(reactExports.useEffect);function isNodeOrWeb(){var a=(typeof global$2>"u"?"undefined":typeof global$2)=="object"&&global$2&&global$2.Object===Object&&global$2,j=typeof self=="object"&&self&&self.Object===Object&&self;return a||j}isNodeOrWeb()||(global$2.Date=Date);function useDebounceFn(a,j){var _e,et=useLatest(a),tt=(_e=j==null?void 0:j.wait)!==null&&_e!==void 0?_e:1e3,nt=reactExports.useMemo(function(){return debounce$3(function(){for(var rt=[],it=0;it<arguments.length;it++)rt[it]=arguments[it];return et.current.apply(et,__spreadArray([],__read(rt),!1))},tt,j)},[]);return useUnmount(function(){nt.cancel()}),{run:nt,cancel:nt.cancel,flush:nt.flush}}function useDebounce(a,j){var _e=__read(reactExports.useState(a),2),et=_e[0],tt=_e[1],nt=useDebounceFn(function(){tt(a)},j).run;return reactExports.useEffect(function(){nt()},[a]),et}function useEventListener(a,j,_e){_e===void 0&&(_e={});var et=_e.enable,tt=et===void 0?!0:et,nt=useLatest(j);useEffectWithTarget$1(function(){if(tt){var rt=getTargetElement(_e.target,window);if(rt!=null&&rt.addEventListener){var it=function(ot){return nt.current(ot)};return rt.addEventListener(a,it,{capture:_e.capture,once:_e.once,passive:_e.passive}),function(){rt.removeEventListener(a,it,{capture:_e.capture})}}}},[a,_e.capture,_e.once,_e.passive,tt],_e.target)}var useInterval$1=function(a,j,_e){_e===void 0&&(_e={});var et=useMemoizedFn(a),tt=reactExports.useRef(null),nt=reactExports.useCallback(function(){tt.current&&clearInterval(tt.current)},[]);return reactExports.useEffect(function(){if(!(!isNumber$2(j)||j<0))return _e.immediate&&et(),tt.current=setInterval(et,j),nt},[j,_e.immediate]),nt},SYNC_STORAGE_EVENT_NAME="AHOOKS_SYNC_STORAGE_EVENT_NAME";function createUseStorageState(a){function j(_e,et){et===void 0&&(et={});var tt,nt=et.listenStorageChange,rt=nt===void 0?!1:nt,it=et.onError,ot=it===void 0?function(Pt){console.error(Pt)}:it;try{tt=a()}catch(Pt){ot(Pt)}var ct=function(Pt){return et.serializer?et.serializer(Pt):JSON.stringify(Pt)},ut=function(Pt){return et.deserializer?et.deserializer(Pt):JSON.parse(Pt)};function dt(){try{var Pt=tt==null?void 0:tt.getItem(_e);if(Pt)return ut(Pt)}catch(Dt){ot(Dt)}return isFunction$3(et.defaultValue)?et.defaultValue():et.defaultValue}var pt=__read(reactExports.useState(dt),2),mt=pt[0],vt=pt[1];useUpdateEffect(function(){vt(dt())},[_e]);var Et=function(Pt){var Dt=isFunction$3(Pt)?Pt(mt):Pt;rt||vt(Dt);try{var Ft=void 0,zt=tt==null?void 0:tt.getItem(_e);isUndef(Dt)?(Ft=null,tt==null||tt.removeItem(_e)):(Ft=ct(Dt),tt==null||tt.setItem(_e,Ft)),dispatchEvent(new CustomEvent(SYNC_STORAGE_EVENT_NAME,{detail:{key:_e,newValue:Ft,oldValue:zt,storageArea:tt}}))}catch(Nt){ot(Nt)}},Rt=function(Pt){Pt.key!==_e||Pt.storageArea!==tt||vt(dt())},xt=function(Pt){Rt(Pt.detail)};return useEventListener("storage",Rt,{enable:rt}),useEventListener(SYNC_STORAGE_EVENT_NAME,xt,{enable:rt}),[mt,useMemoizedFn(Et)]}return j}var useLocalStorageState=createUseStorageState(function(){return isBrowser$1?localStorage:void 0});function useRafState(a){var j=reactExports.useRef(0),_e=__read(reactExports.useState(a),2),et=_e[0],tt=_e[1],nt=reactExports.useCallback(function(rt){cancelAnimationFrame(j.current),j.current=requestAnimationFrame(function(){tt(rt)})},[]);return useUnmount(function(){cancelAnimationFrame(j.current)}),[et,nt]}var defaultShouldUpdate=function(a,j){return!Object.is(a,j)};function usePrevious(a,j){j===void 0&&(j=defaultShouldUpdate);var _e=reactExports.useRef(),et=reactExports.useRef();return j(et.current,a)&&(_e.current=et.current,et.current=a),_e.current}var proxyMap=new WeakMap,rawMap=new WeakMap;function observer(a,j){var _e=proxyMap.get(a);if(_e)return _e;if(rawMap.has(a))return a;var et=new Proxy(a,{get:function(tt,nt,rt){var it=Reflect.get(tt,nt,rt),ot=Reflect.getOwnPropertyDescriptor(tt,nt);return!(ot!=null&&ot.configurable)&&!(ot!=null&&ot.writable)?it:isPlainObject$4(it)||Array.isArray(it)?observer(it,j):it},set:function(tt,nt,rt){var it=Reflect.set(tt,nt,rt);return j(),it},deleteProperty:function(tt,nt){var rt=Reflect.deleteProperty(tt,nt);return j(),rt}});return proxyMap.set(a,et),rawMap.set(et,a),et}function useReactive(a){var j=useUpdate(),_e=reactExports.useRef(a),et=useCreation(function(){return observer(_e.current,function(){j()})},[]);return et}var MapShim=function(){if(typeof Map<"u")return Map;function a(j,_e){var et=-1;return j.some(function(tt,nt){return tt[0]===_e?(et=nt,!0):!1}),et}return function(){function j(){this.__entries__=[]}return Object.defineProperty(j.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),j.prototype.get=function(_e){var et=a(this.__entries__,_e),tt=this.__entries__[et];return tt&&tt[1]},j.prototype.set=function(_e,et){var tt=a(this.__entries__,_e);~tt?this.__entries__[tt][1]=et:this.__entries__.push([_e,et])},j.prototype.delete=function(_e){var et=this.__entries__,tt=a(et,_e);~tt&&et.splice(tt,1)},j.prototype.has=function(_e){return!!~a(this.__entries__,_e)},j.prototype.clear=function(){this.__entries__.splice(0)},j.prototype.forEach=function(_e,et){et===void 0&&(et=null);for(var tt=0,nt=this.__entries__;tt<nt.length;tt++){var rt=nt[tt];_e.call(et,rt[1],rt[0])}},j}()}(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1$1=function(){return typeof global$2<"u"&&global$2.Math===Math?global$2:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1$1):function(a){return setTimeout(function(){return a(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle$2(a,j){var _e=!1,et=!1,tt=0;function nt(){_e&&(_e=!1,a()),et&&it()}function rt(){requestAnimationFrame$1(nt)}function it(){var ot=Date.now();if(_e){if(ot-tt<trailingTimeout)return;et=!0}else _e=!0,et=!1,setTimeout(rt,j);tt=ot}return it}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function a(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle$2(this.refresh.bind(this),REFRESH_DELAY)}return a.prototype.addObserver=function(j){~this.observers_.indexOf(j)||this.observers_.push(j),this.connected_||this.connect_()},a.prototype.removeObserver=function(j){var _e=this.observers_,et=_e.indexOf(j);~et&&_e.splice(et,1),!_e.length&&this.connected_&&this.disconnect_()},a.prototype.refresh=function(){var j=this.updateObservers_();j&&this.refresh()},a.prototype.updateObservers_=function(){var j=this.observers_.filter(function(_e){return _e.gatherActive(),_e.hasActive()});return j.forEach(function(_e){return _e.broadcastActive()}),j.length>0},a.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},a.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},a.prototype.onTransitionEnd_=function(j){var _e=j.propertyName,et=_e===void 0?"":_e,tt=transitionKeys.some(function(nt){return!!~et.indexOf(nt)});tt&&this.refresh()},a.getInstance=function(){return this.instance_||(this.instance_=new a),this.instance_},a.instance_=null,a}(),defineConfigurable=function(a,j){for(var _e=0,et=Object.keys(j);_e<et.length;_e++){var tt=et[_e];Object.defineProperty(a,tt,{value:j[tt],enumerable:!1,writable:!1,configurable:!0})}return a},getWindowOf=function(a){var j=a&&a.ownerDocument&&a.ownerDocument.defaultView;return j||global$1$1},emptyRect=createRectInit(0,0,0,0);function toFloat(a){return parseFloat(a)||0}function getBordersSize(a){for(var j=[],_e=1;_e<arguments.length;_e++)j[_e-1]=arguments[_e];return j.reduce(function(et,tt){var nt=a["border-"+tt+"-width"];return et+toFloat(nt)},0)}function getPaddings(a){for(var j=["top","right","bottom","left"],_e={},et=0,tt=j;et<tt.length;et++){var nt=tt[et],rt=a["padding-"+nt];_e[nt]=toFloat(rt)}return _e}function getSVGContentRect(a){var j=a.getBBox();return createRectInit(0,0,j.width,j.height)}function getHTMLElementContentRect(a){var j=a.clientWidth,_e=a.clientHeight;if(!j&&!_e)return emptyRect;var et=getWindowOf(a).getComputedStyle(a),tt=getPaddings(et),nt=tt.left+tt.right,rt=tt.top+tt.bottom,it=toFloat(et.width),ot=toFloat(et.height);if(et.boxSizing==="border-box"&&(Math.round(it+nt)!==j&&(it-=getBordersSize(et,"left","right")+nt),Math.round(ot+rt)!==_e&&(ot-=getBordersSize(et,"top","bottom")+rt)),!isDocumentElement(a)){var ct=Math.round(it+nt)-j,ut=Math.round(ot+rt)-_e;Math.abs(ct)!==1&&(it-=ct),Math.abs(ut)!==1&&(ot-=ut)}return createRectInit(tt.left,tt.top,it,ot)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(a){return a instanceof getWindowOf(a).SVGGraphicsElement}:function(a){return a instanceof getWindowOf(a).SVGElement&&typeof a.getBBox=="function"}}();function isDocumentElement(a){return a===getWindowOf(a).document.documentElement}function getContentRect(a){return isBrowser?isSVGGraphicsElement(a)?getSVGContentRect(a):getHTMLElementContentRect(a):emptyRect}function createReadOnlyRect(a){var j=a.x,_e=a.y,et=a.width,tt=a.height,nt=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,rt=Object.create(nt.prototype);return defineConfigurable(rt,{x:j,y:_e,width:et,height:tt,top:_e,right:j+et,bottom:tt+_e,left:j}),rt}function createRectInit(a,j,_e,et){return{x:a,y:j,width:_e,height:et}}var ResizeObservation=function(){function a(j){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=j}return a.prototype.isActive=function(){var j=getContentRect(this.target);return this.contentRect_=j,j.width!==this.broadcastWidth||j.height!==this.broadcastHeight},a.prototype.broadcastRect=function(){var j=this.contentRect_;return this.broadcastWidth=j.width,this.broadcastHeight=j.height,j},a}(),ResizeObserverEntry=function(){function a(j,_e){var et=createReadOnlyRect(_e);defineConfigurable(this,{target:j,contentRect:et})}return a}(),ResizeObserverSPI=function(){function a(j,_e,et){if(this.activeObservations_=[],this.observations_=new MapShim,typeof j!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=j,this.controller_=_e,this.callbackCtx_=et}return a.prototype.observe=function(j){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(j instanceof getWindowOf(j).Element))throw new TypeError('parameter 1 is not of type "Element".');var _e=this.observations_;_e.has(j)||(_e.set(j,new ResizeObservation(j)),this.controller_.addObserver(this),this.controller_.refresh())}},a.prototype.unobserve=function(j){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(j instanceof getWindowOf(j).Element))throw new TypeError('parameter 1 is not of type "Element".');var _e=this.observations_;_e.has(j)&&(_e.delete(j),_e.size||this.controller_.removeObserver(this))}},a.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},a.prototype.gatherActive=function(){var j=this;this.clearActive(),this.observations_.forEach(function(_e){_e.isActive()&&j.activeObservations_.push(_e)})},a.prototype.broadcastActive=function(){if(this.hasActive()){var j=this.callbackCtx_,_e=this.activeObservations_.map(function(et){return new ResizeObserverEntry(et.target,et.broadcastRect())});this.callback_.call(j,_e,j),this.clearActive()}},a.prototype.clearActive=function(){this.activeObservations_.splice(0)},a.prototype.hasActive=function(){return this.activeObservations_.length>0},a}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver=function(){function a(j){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var _e=ResizeObserverController.getInstance(),et=new ResizeObserverSPI(j,_e,this);observers.set(this,et)}return a}();["observe","unobserve","disconnect"].forEach(function(a){ResizeObserver.prototype[a]=function(){var j;return(j=observers.get(this))[a].apply(j,arguments)}});var index=function(){return typeof global$1$1.ResizeObserver<"u"?global$1$1.ResizeObserver:ResizeObserver}(),useEffectWithTarget=createEffectWithTarget(reactExports.useLayoutEffect),useIsomorphicLayoutEffectWithTarget=isBrowser$1?useEffectWithTarget:useEffectWithTarget$1;function useSize(a){var j=__read(useRafState(function(){var tt=getTargetElement(a);return tt?{width:tt.clientWidth,height:tt.clientHeight}:void 0}),2),_e=j[0],et=j[1];return useIsomorphicLayoutEffectWithTarget(function(){var tt=getTargetElement(a);if(tt){var nt=new index(function(rt){rt.forEach(function(it){var ot=it.target,ct=ot.clientWidth,ut=ot.clientHeight;et({width:ct,height:ut})})});return nt.observe(tt),function(){nt.disconnect()}}},[],a),_e}const n$1=/[^\0-\x7E]/,t$3=/[\x2E\u3002\uFF0E\uFF61]/g,o$1={overflow:"Overflow Error","not-basic":"Illegal Input","invalid-input":"Invalid Input"},e$1=Math.floor,r$2=String.fromCharCode;function s$1(a){throw new RangeError(o$1[a])}const c=function(a,j){return a+22+75*(a<26)-((j!=0)<<5)},u=function(a,j,_e){let et=0;for(a=_e?e$1(a/700):a>>1,a+=e$1(a/j);a>455;et+=36)a=e$1(a/35);return e$1(et+36*a/(a+38))};function toASCII(a){return function(j,_e){const et=j.split("@");let tt="";et.length>1&&(tt=et[0]+"@",j=et[1]);const nt=function(rt,it){const ot=[];let ct=rt.length;for(;ct--;)ot[ct]=it(rt[ct]);return ot}((j=j.replace(t$3,".")).split("."),_e).join(".");return tt+nt}(a,function(j){return n$1.test(j)?"xn--"+function(_e){const et=[],tt=(_e=function(ut){const dt=[];let pt=0;const mt=ut.length;for(;pt<mt;){const vt=ut.charCodeAt(pt++);if(vt>=55296&&vt<=56319&&pt<mt){const Et=ut.charCodeAt(pt++);(64512&Et)==56320?dt.push(((1023&vt)<<10)+(1023&Et)+65536):(dt.push(vt),pt--)}else dt.push(vt)}return dt}(_e)).length;let nt=128,rt=0,it=72;for(const ut of _e)ut<128&&et.push(r$2(ut));const ot=et.length;let ct=ot;for(ot&&et.push("-");ct<tt;){let ut=2147483647;for(const pt of _e)pt>=nt&&pt<ut&&(ut=pt);const dt=ct+1;ut-nt>e$1((2147483647-rt)/dt)&&s$1("overflow"),rt+=(ut-nt)*dt,nt=ut;for(const pt of _e)if(pt<nt&&++rt>2147483647&&s$1("overflow"),pt==nt){let mt=rt;for(let vt=36;;vt+=36){const Et=vt<=it?1:vt>=it+26?26:vt-it;if(mt<Et)break;const Rt=mt-Et,xt=36-Et;et.push(r$2(c(Et+Rt%xt,0))),mt=e$1(Rt/xt)}et.push(r$2(c(mt,0))),it=u(rt,dt,ct==ot),rt=0,++ct}++rt,++nt}return et.join("")}(j):j})}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_CARET_RE=/%5e/gi,ENC_BACKTICK_RE=/%60/gi,ENC_CURLY_OPEN_RE=/%7b/gi,ENC_PIPE_RE=/%7c/gi,ENC_CURLY_CLOSE_RE=/%7d/gi,ENC_SPACE_RE=/%20/gi,ENC_SLASH_RE=/%2f/gi,ENC_ENC_SLASH_RE=/%252f/gi;function encode$7(a){return encodeURI(""+a).replace(ENC_PIPE_RE,"|")}function encodeHash(a){return encode$7(a).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(a){return encode$7(typeof a=="string"?a:JSON.stringify(a)).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CARET_RE,"^").replace(SLASH_RE,"%2F")}function encodeQueryKey(a){return encodeQueryValue(a).replace(EQUAL_RE,"%3D")}function encodePath(a){return encode$7(a).replace(HASH_RE,"%23").replace(IM_RE,"%3F").replace(ENC_ENC_SLASH_RE,"%2F").replace(AMPERSAND_RE,"%26").replace(PLUS_RE,"%2B")}function encodeParam(a){return encodePath(a).replace(SLASH_RE,"%2F")}function decode$4(a=""){try{return decodeURIComponent(""+a)}catch{return""+a}}function decodePath(a){return decode$4(a.replace(ENC_SLASH_RE,"%252F"))}function decodeQueryKey(a){return decode$4(a.replace(PLUS_RE," "))}function decodeQueryValue(a){return decode$4(a.replace(PLUS_RE," "))}function encodeHost(a=""){return toASCII(a)}function parseQuery(a=""){const j={};a[0]==="?"&&(a=a.slice(1));for(const _e of a.split("&")){const et=_e.match(/([^=]+)=?(.*)/)||[];if(et.length<2)continue;const tt=decodeQueryKey(et[1]);if(tt==="__proto__"||tt==="constructor")continue;const nt=decodeQueryValue(et[2]||"");j[tt]===void 0?j[tt]=nt:Array.isArray(j[tt])?j[tt].push(nt):j[tt]=[j[tt],nt]}return j}function encodeQueryItem(a,j){return(typeof j=="number"||typeof j=="boolean")&&(j=String(j)),j?Array.isArray(j)?j.map(_e=>`${encodeQueryKey(a)}=${encodeQueryValue(_e)}`).join("&"):`${encodeQueryKey(a)}=${encodeQueryValue(j)}`:encodeQueryKey(a)}function stringifyQuery(a){return Object.keys(a).filter(j=>a[j]!==void 0).map(j=>encodeQueryItem(j,a[j])).filter(Boolean).join("&")}const PROTOCOL_STRICT_REGEX=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,PROTOCOL_REGEX=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,PROTOCOL_RELATIVE_REGEX=/^([/\\]\s*){2,}[^/\\]/,PROTOCOL_SCRIPT_RE=/^[\s\0]*(blob|data|javascript|vbscript):$/i,TRAILING_SLASH_RE=/\/$|\/\?|\/#/,JOIN_LEADING_SLASH_RE=/^\.?\//;function isRelative(a){return["./","../"].some(j=>a.startsWith(j))}function hasProtocol(a,j={}){return typeof j=="boolean"&&(j={acceptRelative:j}),j.strict?PROTOCOL_STRICT_REGEX.test(a):PROTOCOL_REGEX.test(a)||(j.acceptRelative?PROTOCOL_RELATIVE_REGEX.test(a):!1)}function isScriptProtocol(a){return!!a&&PROTOCOL_SCRIPT_RE.test(a)}function hasTrailingSlash(a="",j){return j?TRAILING_SLASH_RE.test(a):a.endsWith("/")}function withoutTrailingSlash(a="",j){if(!j)return(hasTrailingSlash(a)?a.slice(0,-1):a)||"/";if(!hasTrailingSlash(a,!0))return a||"/";let _e=a,et="";const tt=a.indexOf("#");tt>=0&&(_e=a.slice(0,tt),et=a.slice(tt));const[nt,...rt]=_e.split("?");return((nt.endsWith("/")?nt.slice(0,-1):nt)||"/")+(rt.length>0?`?${rt.join("?")}`:"")+et}function withTrailingSlash(a="",j){if(!j)return a.endsWith("/")?a:a+"/";if(hasTrailingSlash(a,!0))return a||"/";let _e=a,et="";const tt=a.indexOf("#");if(tt>=0&&(_e=a.slice(0,tt),et=a.slice(tt),!_e))return et;const[nt,...rt]=_e.split("?");return nt+"/"+(rt.length>0?`?${rt.join("?")}`:"")+et}function hasLeadingSlash(a=""){return a.startsWith("/")}function withoutLeadingSlash(a=""){return(hasLeadingSlash(a)?a.slice(1):a)||"/"}function withLeadingSlash(a=""){return hasLeadingSlash(a)?a:"/"+a}function cleanDoubleSlashes(a=""){return a.split("://").map(j=>j.replace(/\/{2,}/g,"/")).join("://")}function withBase(a,j){if(isEmptyURL(j)||hasProtocol(a))return a;const _e=withoutTrailingSlash(j);return a.startsWith(_e)?a:joinURL(_e,a)}function withoutBase(a,j){if(isEmptyURL(j))return a;const _e=withoutTrailingSlash(j);if(!a.startsWith(_e))return a;const et=a.slice(_e.length);return et[0]==="/"?et:"/"+et}function withQuery(a,j){const _e=parseURL(a),et={...parseQuery(_e.search),...j};return _e.search=stringifyQuery(et),stringifyParsedURL(_e)}function getQuery(a){return parseQuery(parseURL(a).search)}function isEmptyURL(a){return!a||a==="/"}function isNonEmptyURL(a){return a&&a!=="/"}function joinURL(a,...j){let _e=a||"";for(const et of j.filter(tt=>isNonEmptyURL(tt)))if(_e){const tt=et.replace(JOIN_LEADING_SLASH_RE,"");_e=withTrailingSlash(_e)+tt}else _e=et;return _e}function joinRelativeURL(...a){var rt,it,ot,ct;const j=/\/(?!\/)/,_e=a.filter(Boolean),et=[];let tt=0;for(const ut of _e)if(!(!ut||ut==="/")){for(const[dt,pt]of ut.split(j).entries())if(!(!pt||pt===".")){if(pt===".."){if(et.length===1&&hasProtocol(et[0]))continue;et.pop(),tt--;continue}if(dt===1&&((rt=et[et.length-1])!=null&&rt.endsWith(":/"))){et[et.length-1]+="/"+pt;continue}et.push(pt),tt++}}let nt=et.join("/");return tt>=0?(it=_e[0])!=null&&it.startsWith("/")&&!nt.startsWith("/")?nt="/"+nt:(ot=_e[0])!=null&&ot.startsWith("./")&&!nt.startsWith("./")&&(nt="./"+nt):nt="../".repeat(-1*tt)+nt,(ct=_e[_e.length-1])!=null&&ct.endsWith("/")&&!nt.endsWith("/")&&(nt+="/"),nt}function withHttp(a){return withProtocol(a,"http://")}function withHttps(a){return withProtocol(a,"https://")}function withoutProtocol(a){return withProtocol(a,"")}function withProtocol(a,j){let _e=a.match(PROTOCOL_REGEX);return _e||(_e=a.match(/^\/{2,}/)),_e?j+a.slice(_e[0].length):j+a}function normalizeURL(a){const j=parseURL(a);return j.pathname=encodePath(decodePath(j.pathname)),j.hash=encodeHash(decode$4(j.hash)),j.host=encodeHost(decode$4(j.host)),j.search=stringifyQuery(parseQuery(j.search)),stringifyParsedURL(j)}function resolveURL(a="",...j){if(typeof a!="string")throw new TypeError(`URL input should be string received ${typeof a} (${a})`);const _e=j.filter(tt=>isNonEmptyURL(tt));if(_e.length===0)return a;const et=parseURL(a);for(const tt of _e){const nt=parseURL(tt);if(nt.pathname&&(et.pathname=withTrailingSlash(et.pathname)+withoutLeadingSlash(nt.pathname)),nt.hash&&nt.hash!=="#"&&(et.hash=nt.hash),nt.search&&nt.search!=="?")if(et.search&&et.search!=="?"){const rt=stringifyQuery({...parseQuery(et.search),...parseQuery(nt.search)});et.search=rt.length>0?"?"+rt:""}else et.search=nt.search}return stringifyParsedURL(et)}function isSamePath(a,j){return decode$4(withoutTrailingSlash(a))===decode$4(withoutTrailingSlash(j))}function isEqual$2(a,j,_e={}){return _e.trailingSlash||(a=withTrailingSlash(a),j=withTrailingSlash(j)),_e.leadingSlash||(a=withLeadingSlash(a),j=withLeadingSlash(j)),_e.encoding||(a=decode$4(a),j=decode$4(j)),a===j}function withFragment(a,j){if(!j||j==="#")return a;const _e=parseURL(a);return _e.hash=j===""?"":"#"+encodeHash(j),stringifyParsedURL(_e)}function withoutFragment(a){return stringifyParsedURL({...parseURL(a),hash:""})}function withoutHost(a){const j=parseURL(a);return(j.pathname||"/")+j.search+j.hash}const protocolRelative=Symbol.for("ufo:protocolRelative");function parseURL(a="",j){const _e=a.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(_e){const[,dt,pt=""]=_e;return{protocol:dt.toLowerCase(),pathname:pt,href:dt+pt,auth:"",host:"",search:"",hash:""}}if(!hasProtocol(a,{acceptRelative:!0}))return j?parseURL(j+a):parsePath(a);const[,et="",tt,nt=""]=a.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,rt="",it=""]=nt.match(/([^#/?]*)(.*)?/)||[];et==="file:"&&(it=it.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:ot,search:ct,hash:ut}=parsePath(it);return{protocol:et.toLowerCase(),auth:tt?tt.slice(0,Math.max(0,tt.length-1)):"",host:rt,pathname:ot,search:ct,hash:ut,[protocolRelative]:!et}}function parsePath(a=""){const[j="",_e="",et=""]=(a.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:j,search:_e,hash:et}}function parseAuth(a=""){const[j,_e]=a.split(":");return{username:decode$4(j),password:decode$4(_e)}}function parseHost(a=""){const[j,_e]=(a.match(/([^/:]*):?(\d+)?/)||[]).splice(1);return{hostname:decode$4(j),port:_e}}function stringifyParsedURL(a){const j=a.pathname||"",_e=a.search?(a.search.startsWith("?")?"":"?")+a.search:"",et=a.hash||"",tt=a.auth?a.auth+"@":"",nt=a.host||"";return(a.protocol||a[protocolRelative]?(a.protocol||"")+"//":"")+tt+nt+j+_e+et}const FILENAME_STRICT_REGEX=/\/([^/]+\.[^/]+)$/,FILENAME_REGEX=/\/([^/]+)$/;function parseFilename(a="",{strict:j}){const{pathname:_e}=parseURL(a),et=j?_e.match(FILENAME_STRICT_REGEX):_e.match(FILENAME_REGEX);return et?et[1]:void 0}var __defProp$5=Object.defineProperty,__defNormalProp$4=(a,j,_e)=>j in a?__defProp$5(a,j,{enumerable:!0,configurable:!0,writable:!0,value:_e}):a[j]=_e,__publicField$3=(a,j,_e)=>(__defNormalProp$4(a,typeof j!="symbol"?j+"":j,_e),_e);class $URL{constructor(j=""){if(__publicField$3(this,"protocol"),__publicField$3(this,"host"),__publicField$3(this,"auth"),__publicField$3(this,"pathname"),__publicField$3(this,"query",{}),__publicField$3(this,"hash"),typeof j!="string")throw new TypeError(`URL input should be string received ${typeof j} (${j})`);const _e=parseURL(j);this.protocol=decode$4(_e.protocol),this.host=decode$4(_e.host),this.auth=decode$4(_e.auth),this.pathname=decodePath(_e.pathname),this.query=parseQuery(_e.search),this.hash=decode$4(_e.hash)}get hostname(){return parseHost(this.host).hostname}get port(){return parseHost(this.host).port||""}get username(){return parseAuth(this.auth).username}get password(){return parseAuth(this.auth).password||""}get hasProtocol(){return this.protocol.length}get isAbsolute(){return this.hasProtocol||this.pathname[0]==="/"}get search(){const j=stringifyQuery(this.query);return j.length>0?"?"+j:""}get searchParams(){const j=new URLSearchParams;for(const _e in this.query){const et=this.query[_e];if(Array.isArray(et))for(const tt of et)j.append(_e,tt);else j.append(_e,typeof et=="string"?et:JSON.stringify(et))}return j}get origin(){return(this.protocol?this.protocol+"//":"")+encodeHost(this.host)}get fullpath(){return encodePath(this.pathname)+this.search+encodeHash(this.hash)}get encodedAuth(){if(!this.auth)return"";const{username:j,password:_e}=parseAuth(this.auth);return encodeURIComponent(j)+(_e?":"+encodeURIComponent(_e):"")}get href(){const j=this.encodedAuth,_e=(this.protocol?this.protocol+"//":"")+(j?j+"@":"")+encodeHost(this.host);return this.hasProtocol&&this.isAbsolute?_e+this.fullpath:this.fullpath}append(j){if(j.hasProtocol)throw new Error("Cannot append a URL with protocol");Object.assign(this.query,j.query),j.pathname&&(this.pathname=withTrailingSlash(this.pathname)+withoutLeadingSlash(j.pathname)),j.hash&&(this.hash=j.hash)}toJSON(){return this.href}toString(){return this.href}}function createURL(a){return new $URL(a)}const dist$3=Object.freeze(Object.defineProperty({__proto__:null,$URL,cleanDoubleSlashes,createURL,decode:decode$4,decodePath,decodeQueryKey,decodeQueryValue,encode:encode$7,encodeHash,encodeHost,encodeParam,encodePath,encodeQueryItem,encodeQueryKey,encodeQueryValue,getQuery,hasLeadingSlash,hasProtocol,hasTrailingSlash,isEmptyURL,isEqual:isEqual$2,isNonEmptyURL,isRelative,isSamePath,isScriptProtocol,joinRelativeURL,joinURL,normalizeURL,parseAuth,parseFilename,parseHost,parsePath,parseQuery,parseURL,resolveURL,stringifyParsedURL,stringifyQuery,withBase,withFragment,withHttp,withHttps,withLeadingSlash,withProtocol,withQuery,withTrailingSlash,withoutBase,withoutFragment,withoutHost,withoutLeadingSlash,withoutProtocol,withoutTrailingSlash},Symbol.toStringTag,{value:"Module"})),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(a,j,_e,et="")=>{const tt=a.split(":");if(a.slice(0,1)==="@"){if(tt.length<2||tt.length>3)return null;et=tt.shift().slice(1)}if(tt.length>3||!tt.length)return null;if(tt.length>1){const it=tt.pop(),ot=tt.pop(),ct={provider:tt.length>0?tt[0]:et,prefix:ot,name:it};return j&&!validateIconName(ct)?null:ct}const nt=tt[0],rt=nt.split("-");if(rt.length>1){const it={provider:et,prefix:rt.shift(),name:rt.join("-")};return j&&!validateIconName(it)?null:it}if(_e&&et===""){const it={provider:et,prefix:"",name:nt};return j&&!validateIconName(it,_e)?null:it}return null},validateIconName=(a,j)=>a?!!((a.provider===""||a.provider.match(matchIconName))&&(j&&a.prefix===""||a.prefix.match(matchIconName))&&a.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations(a,j){const _e={};!a.hFlip!=!j.hFlip&&(_e.hFlip=!0),!a.vFlip!=!j.vFlip&&(_e.vFlip=!0);const et=((a.rotate||0)+(j.rotate||0))%4;return et&&(_e.rotate=et),_e}function mergeIconData(a,j){const _e=mergeIconTransformations(a,j);for(const et in defaultExtendedIconProps)et in defaultIconTransformations?et in a&&!(et in _e)&&(_e[et]=defaultIconTransformations[et]):et in j?_e[et]=j[et]:et in a&&(_e[et]=a[et]);return _e}function getIconsTree(a,j){const _e=a.icons,et=a.aliases||Object.create(null),tt=Object.create(null);function nt(rt){if(_e[rt])return tt[rt]=[];if(!(rt in tt)){tt[rt]=null;const it=et[rt]&&et[rt].parent,ot=it&&nt(it);ot&&(tt[rt]=[it].concat(ot))}return tt[rt]}return Object.keys(_e).concat(Object.keys(et)).forEach(nt),tt}function internalGetIconData(a,j,_e){const et=a.icons,tt=a.aliases||Object.create(null);let nt={};function rt(it){nt=mergeIconData(et[it]||tt[it],nt)}return rt(j),_e.forEach(rt),mergeIconData(a,nt)}function parseIconSet(a,j){const _e=[];if(typeof a!="object"||typeof a.icons!="object")return _e;a.not_found instanceof Array&&a.not_found.forEach(tt=>{j(tt,null),_e.push(tt)});const et=getIconsTree(a);for(const tt in et){const nt=et[tt];nt&&(j(tt,internalGetIconData(a,tt,nt)),_e.push(tt))}return _e}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps(a,j){for(const _e in j)if(_e in a&&typeof a[_e]!=typeof j[_e])return!1;return!0}function quicklyValidateIconSet(a){if(typeof a!="object"||a===null)return null;const j=a;if(typeof j.prefix!="string"||!a.icons||typeof a.icons!="object"||!checkOptionalProps(a,optionalPropertyDefaults))return null;const _e=j.icons;for(const tt in _e){const nt=_e[tt];if(!tt.match(matchIconName)||typeof nt.body!="string"||!checkOptionalProps(nt,defaultExtendedIconProps))return null}const et=j.aliases||Object.create(null);for(const tt in et){const nt=et[tt],rt=nt.parent;if(!tt.match(matchIconName)||typeof rt!="string"||!_e[rt]&&!et[rt]||!checkOptionalProps(nt,defaultExtendedIconProps))return null}return j}const dataStorage=Object.create(null);function newStorage(a,j){return{provider:a,prefix:j,icons:Object.create(null),missing:new Set}}function getStorage(a,j){const _e=dataStorage[a]||(dataStorage[a]=Object.create(null));return _e[j]||(_e[j]=newStorage(a,j))}function addIconSet(a,j){return quicklyValidateIconSet(j)?parseIconSet(j,(_e,et)=>{et?a.icons[_e]=et:a.missing.add(_e)}):[]}function addIconToStorage(a,j,_e){try{if(typeof _e.body=="string")return a.icons[j]={..._e},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames(a){return typeof a=="boolean"&&(simpleNames=a),simpleNames}function getIconData(a){const j=typeof a=="string"?stringToIcon(a,!0,simpleNames):a;if(j){const _e=getStorage(j.provider,j.prefix),et=j.name;return _e.icons[et]||(_e.missing.has(et)?null:void 0)}}function addIcon(a,j){const _e=stringToIcon(a,!0,simpleNames);if(!_e)return!1;const et=getStorage(_e.provider,_e.prefix);return addIconToStorage(et,_e.name,j)}function addCollection(a,j){if(typeof a!="object")return!1;if(typeof j!="string"&&(j=a.provider||""),simpleNames&&!j&&!a.prefix){let tt=!1;return quicklyValidateIconSet(a)&&(a.prefix="",parseIconSet(a,(nt,rt)=>{rt&&addIcon(nt,rt)&&(tt=!0)})),tt}const _e=a.prefix;if(!validateIconName({provider:j,prefix:_e,name:"a"}))return!1;const et=getStorage(j,_e);return!!addIconSet(et,a)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(a,j,_e){if(j===1)return a;if(_e=_e||100,typeof a=="number")return Math.ceil(a*j*_e)/_e;if(typeof a!="string")return a;const et=a.split(unitsSplit);if(et===null||!et.length)return a;const tt=[];let nt=et.shift(),rt=unitsTest.test(nt);for(;;){if(rt){const it=parseFloat(nt);isNaN(it)?tt.push(nt):tt.push(Math.ceil(it*j*_e)/_e)}else tt.push(nt);if(nt=et.shift(),nt===void 0)return tt.join("");rt=!rt}}const isUnsetKeyword=a=>a==="unset"||a==="undefined"||a==="none";function iconToSVG(a,j){const _e={...defaultIconProps,...a},et={...defaultIconCustomisations,...j},tt={left:_e.left,top:_e.top,width:_e.width,height:_e.height};let nt=_e.body;[_e,et].forEach(vt=>{const Et=[],Rt=vt.hFlip,xt=vt.vFlip;let Pt=vt.rotate;Rt?xt?Pt+=2:(Et.push("translate("+(tt.width+tt.left).toString()+" "+(0-tt.top).toString()+")"),Et.push("scale(-1 1)"),tt.top=tt.left=0):xt&&(Et.push("translate("+(0-tt.left).toString()+" "+(tt.height+tt.top).toString()+")"),Et.push("scale(1 -1)"),tt.top=tt.left=0);let Dt;switch(Pt<0&&(Pt-=Math.floor(Pt/4)*4),Pt=Pt%4,Pt){case 1:Dt=tt.height/2+tt.top,Et.unshift("rotate(90 "+Dt.toString()+" "+Dt.toString()+")");break;case 2:Et.unshift("rotate(180 "+(tt.width/2+tt.left).toString()+" "+(tt.height/2+tt.top).toString()+")");break;case 3:Dt=tt.width/2+tt.left,Et.unshift("rotate(-90 "+Dt.toString()+" "+Dt.toString()+")");break}Pt%2===1&&(tt.left!==tt.top&&(Dt=tt.left,tt.left=tt.top,tt.top=Dt),tt.width!==tt.height&&(Dt=tt.width,tt.width=tt.height,tt.height=Dt)),Et.length&&(nt='<g transform="'+Et.join(" ")+'">'+nt+"</g>")});const rt=et.width,it=et.height,ot=tt.width,ct=tt.height;let ut,dt;rt===null?(dt=it===null?"1em":it==="auto"?ct:it,ut=calculateSize(dt,ot/ct)):(ut=rt==="auto"?ot:rt,dt=it===null?calculateSize(ut,ct/ot):it==="auto"?ct:it);const pt={},mt=(vt,Et)=>{isUnsetKeyword(Et)||(pt[vt]=Et.toString())};return mt("width",ut),mt("height",dt),pt.viewBox=tt.left.toString()+" "+tt.top.toString()+" "+ot.toString()+" "+ct.toString(),{attributes:pt,body:nt}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(a,j=randomPrefix){const _e=[];let et;for(;et=regex.exec(a);)_e.push(et[1]);if(!_e.length)return a;const tt="suffix"+(Math.random()*16777216|Date.now()).toString(16);return _e.forEach(nt=>{const rt=typeof j=="function"?j(nt):j+(counter++).toString(),it=nt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");a=a.replace(new RegExp('([#;"])('+it+')([")]|\\.[a-z])',"g"),"$1"+rt+tt+"$3")}),a=a.replace(new RegExp(tt,"g"),""),a}const storage=Object.create(null);function setAPIModule(a,j){storage[a]=j}function getAPIModule(a){return storage[a]||storage[""]}function createAPIConfig(a){let j;if(typeof a.resources=="string")j=[a.resources];else if(j=a.resources,!(j instanceof Array)||!j.length)return null;return{resources:j,path:a.path||"/",maxURL:a.maxURL||500,rotate:a.rotate||750,timeout:a.timeout||5e3,random:a.random===!0,index:a.index||0,dataAfterTimeout:a.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(a,j){const _e=createAPIConfig(j);return _e===null?!1:(configStorage[a]=_e,!0)}function getAPIConfig(a){return configStorage[a]}const detectFetch=()=>{let a;try{if(a=fetch,typeof a=="function")return a}catch{}};let fetchModule=detectFetch();function calculateMaxLength(a,j){const _e=getAPIConfig(a);if(!_e)return 0;let et;if(!_e.maxURL)et=0;else{let tt=0;_e.resources.forEach(rt=>{tt=Math.max(tt,rt.length)});const nt=j+".json?icons=";et=_e.maxURL-tt-_e.path.length-nt.length}return et}function shouldAbort(a){return a===404}const prepare=(a,j,_e)=>{const et=[],tt=calculateMaxLength(a,j),nt="icons";let rt={type:nt,provider:a,prefix:j,icons:[]},it=0;return _e.forEach((ot,ct)=>{it+=ot.length+1,it>=tt&&ct>0&&(et.push(rt),rt={type:nt,provider:a,prefix:j,icons:[]},it=ot.length),rt.icons.push(ot)}),et.push(rt),et};function getPath(a){if(typeof a=="string"){const j=getAPIConfig(a);if(j)return j.path}return"/"}const send=(a,j,_e)=>{if(!fetchModule){_e("abort",424);return}let et=getPath(j.provider);switch(j.type){case"icons":{const nt=j.prefix,it=j.icons.join(","),ot=new URLSearchParams({icons:it});et+=nt+".json?"+ot.toString();break}case"custom":{const nt=j.uri;et+=nt.slice(0,1)==="/"?nt.slice(1):nt;break}default:_e("abort",400);return}let tt=503;fetchModule(a+et).then(nt=>{const rt=nt.status;if(rt!==200){setTimeout(()=>{_e(shouldAbort(rt)?"abort":"next",rt)});return}return tt=501,nt.json()}).then(nt=>{if(typeof nt!="object"||nt===null){setTimeout(()=>{nt===404?_e("abort",nt):_e("next",tt)});return}setTimeout(()=>{_e("success",nt)})}).catch(()=>{_e("next",tt)})},fetchAPIModule={prepare,send};function sortIcons(a){const j={loaded:[],missing:[],pending:[]},_e=Object.create(null);a.sort((tt,nt)=>tt.provider!==nt.provider?tt.provider.localeCompare(nt.provider):tt.prefix!==nt.prefix?tt.prefix.localeCompare(nt.prefix):tt.name.localeCompare(nt.name));let et={provider:"",prefix:"",name:""};return a.forEach(tt=>{if(et.name===tt.name&&et.prefix===tt.prefix&&et.provider===tt.provider)return;et=tt;const nt=tt.provider,rt=tt.prefix,it=tt.name,ot=_e[nt]||(_e[nt]=Object.create(null)),ct=ot[rt]||(ot[rt]=getStorage(nt,rt));let ut;it in ct.icons?ut=j.loaded:rt===""||ct.missing.has(it)?ut=j.missing:ut=j.pending;const dt={provider:nt,prefix:rt,name:it};ut.push(dt)}),j}function removeCallback(a,j){a.forEach(_e=>{const et=_e.loaderCallbacks;et&&(_e.loaderCallbacks=et.filter(tt=>tt.id!==j))})}function updateCallbacks(a){a.pendingCallbacksFlag||(a.pendingCallbacksFlag=!0,setTimeout(()=>{a.pendingCallbacksFlag=!1;const j=a.loaderCallbacks?a.loaderCallbacks.slice(0):[];if(!j.length)return;let _e=!1;const et=a.provider,tt=a.prefix;j.forEach(nt=>{const rt=nt.icons,it=rt.pending.length;rt.pending=rt.pending.filter(ot=>{if(ot.prefix!==tt)return!0;const ct=ot.name;if(a.icons[ct])rt.loaded.push({provider:et,prefix:tt,name:ct});else if(a.missing.has(ct))rt.missing.push({provider:et,prefix:tt,name:ct});else return _e=!0,!0;return!1}),rt.pending.length!==it&&(_e||removeCallback([a],nt.id),nt.callback(rt.loaded.slice(0),rt.missing.slice(0),rt.pending.slice(0),nt.abort))})}))}let idCounter=0;function storeCallback(a,j,_e){const et=idCounter++,tt=removeCallback.bind(null,_e,et);if(!j.pending.length)return tt;const nt={id:et,icons:j,callback:a,abort:tt};return _e.forEach(rt=>{(rt.loaderCallbacks||(rt.loaderCallbacks=[])).push(nt)}),tt}function listToIcons(a,j=!0,_e=!1){const et=[];return a.forEach(tt=>{const nt=typeof tt=="string"?stringToIcon(tt,j,_e):tt;nt&&et.push(nt)}),et}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(a,j,_e,et){const tt=a.resources.length,nt=a.random?Math.floor(Math.random()*tt):a.index;let rt;if(a.random){let Nt=a.resources.slice(0);for(rt=[];Nt.length>1;){const Vt=Math.floor(Math.random()*Nt.length);rt.push(Nt[Vt]),Nt=Nt.slice(0,Vt).concat(Nt.slice(Vt+1))}rt=rt.concat(Nt)}else rt=a.resources.slice(nt).concat(a.resources.slice(0,nt));const it=Date.now();let ot="pending",ct=0,ut,dt=null,pt=[],mt=[];typeof et=="function"&&mt.push(et);function vt(){dt&&(clearTimeout(dt),dt=null)}function Et(){ot==="pending"&&(ot="aborted"),vt(),pt.forEach(Nt=>{Nt.status==="pending"&&(Nt.status="aborted")}),pt=[]}function Rt(Nt,Vt){Vt&&(mt=[]),typeof Nt=="function"&&mt.push(Nt)}function xt(){return{startTime:it,payload:j,status:ot,queriesSent:ct,queriesPending:pt.length,subscribe:Rt,abort:Et}}function Pt(){ot="failed",mt.forEach(Nt=>{Nt(void 0,ut)})}function Dt(){pt.forEach(Nt=>{Nt.status==="pending"&&(Nt.status="aborted")}),pt=[]}function Ft(Nt,Vt,nn){const fn=Vt!=="success";switch(pt=pt.filter(hn=>hn!==Nt),ot){case"pending":break;case"failed":if(fn||!a.dataAfterTimeout)return;break;default:return}if(Vt==="abort"){ut=nn,Pt();return}if(fn){ut=nn,pt.length||(rt.length?zt():Pt());return}if(vt(),Dt(),!a.random){const hn=a.resources.indexOf(Nt.resource);hn!==-1&&hn!==a.index&&(a.index=hn)}ot="completed",mt.forEach(hn=>{hn(nn)})}function zt(){if(ot!=="pending")return;vt();const Nt=rt.shift();if(Nt===void 0){if(pt.length){dt=setTimeout(()=>{vt(),ot==="pending"&&(Dt(),Pt())},a.timeout);return}Pt();return}const Vt={status:"pending",resource:Nt,callback:(nn,fn)=>{Ft(Vt,nn,fn)}};pt.push(Vt),ct++,dt=setTimeout(zt,a.rotate),_e(Nt,j,Vt.callback)}return setTimeout(zt),xt}function initRedundancy(a){const j={...defaultConfig,...a};let _e=[];function et(){_e=_e.filter(it=>it().status==="pending")}function tt(it,ot,ct){const ut=sendQuery(j,it,ot,(dt,pt)=>{et(),ct&&ct(dt,pt)});return _e.push(ut),ut}function nt(it){return _e.find(ot=>it(ot))||null}return{query:tt,find:nt,setIndex:it=>{j.index=it},getIndex:()=>j.index,cleanup:et}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(a){if(!redundancyCache[a]){const j=getAPIConfig(a);if(!j)return;const _e=initRedundancy(j),et={config:j,redundancy:_e};redundancyCache[a]=et}return redundancyCache[a]}function sendAPIQuery(a,j,_e){let et,tt;if(typeof a=="string"){const nt=getAPIModule(a);if(!nt)return _e(void 0,424),emptyCallback$1;tt=nt.send;const rt=getRedundancyCache(a);rt&&(et=rt.redundancy)}else{const nt=createAPIConfig(a);if(nt){et=initRedundancy(nt);const rt=a.resources?a.resources[0]:"",it=getAPIModule(rt);it&&(tt=it.send)}}return!et||!tt?(_e(void 0,424),emptyCallback$1):et.query(j,tt,_e)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem(a,j){try{return a.getItem(j)}catch{}}function setStoredItem(a,j,_e){try{return a.setItem(j,_e),!0}catch{}}function removeStoredItem(a,j){try{a.removeItem(j)}catch{}}function setBrowserStorageItemsCount(a,j){return setStoredItem(a,browserCacheCountKey,j.toString())}function getBrowserStorageItemsCount(a){return parseInt(getStoredItem(a,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(a){browserStorageStatus=a}let _window=typeof window>"u"?{}:window;function getBrowserStorage(a){const j=a+"Storage";try{if(_window&&_window[j]&&typeof _window[j].length=="number")return _window[j]}catch{}browserStorageConfig[a]=!1}function iterateBrowserStorage(a,j){const _e=getBrowserStorage(a);if(!_e)return;const et=getStoredItem(_e,browserCacheVersionKey);if(et!==browserCacheVersion){if(et){const it=getBrowserStorageItemsCount(_e);for(let ot=0;ot<it;ot++)removeStoredItem(_e,browserCachePrefix+ot.toString())}setStoredItem(_e,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(_e,0);return}const tt=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,nt=it=>{const ot=browserCachePrefix+it.toString(),ct=getStoredItem(_e,ot);if(typeof ct=="string"){try{const ut=JSON.parse(ct);if(typeof ut=="object"&&typeof ut.cached=="number"&&ut.cached>tt&&typeof ut.provider=="string"&&typeof ut.data=="object"&&typeof ut.data.prefix=="string"&&j(ut,it))return!0}catch{}removeStoredItem(_e,ot)}};let rt=getBrowserStorageItemsCount(_e);for(let it=rt-1;it>=0;it--)nt(it)||(it===rt-1?(rt--,setBrowserStorageItemsCount(_e,rt)):browserStorageEmptyItems[a].add(it))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const a in browserStorageConfig)iterateBrowserStorage(a,j=>{const _e=j.data,et=j.provider,tt=_e.prefix,nt=getStorage(et,tt);if(!addIconSet(nt,_e).length)return!1;const rt=_e.lastModified||-1;return nt.lastModifiedCached=nt.lastModifiedCached?Math.min(nt.lastModifiedCached,rt):rt,!0})}}function updateLastModified(a,j){const _e=a.lastModifiedCached;if(_e&&_e>=j)return _e===j;if(a.lastModifiedCached=j,_e)for(const et in browserStorageConfig)iterateBrowserStorage(et,tt=>{const nt=tt.data;return tt.provider!==a.provider||nt.prefix!==a.prefix||nt.lastModified===j});return!0}function storeInBrowserStorage(a,j){browserStorageStatus||initBrowserStorage();function _e(et){let tt;if(!browserStorageConfig[et]||!(tt=getBrowserStorage(et)))return;const nt=browserStorageEmptyItems[et];let rt;if(nt.size)nt.delete(rt=Array.from(nt).shift());else if(rt=getBrowserStorageItemsCount(tt),!setBrowserStorageItemsCount(tt,rt+1))return;const it={cached:Math.floor(Date.now()/browserStorageHour),provider:a.provider,data:j};return setStoredItem(tt,browserCachePrefix+rt.toString(),JSON.stringify(it))}j.lastModified&&!updateLastModified(a,j.lastModified)||Object.keys(j.icons).length&&(j.not_found&&(j=Object.assign({},j),delete j.not_found),_e("local")||_e("session"))}function emptyCallback(){}function loadedNewIcons(a){a.iconsLoaderFlag||(a.iconsLoaderFlag=!0,setTimeout(()=>{a.iconsLoaderFlag=!1,updateCallbacks(a)}))}function loadNewIcons(a,j){a.iconsToLoad?a.iconsToLoad=a.iconsToLoad.concat(j).sort():a.iconsToLoad=j,a.iconsQueueFlag||(a.iconsQueueFlag=!0,setTimeout(()=>{a.iconsQueueFlag=!1;const{provider:_e,prefix:et}=a,tt=a.iconsToLoad;delete a.iconsToLoad;let nt;if(!tt||!(nt=getAPIModule(_e)))return;nt.prepare(_e,et,tt).forEach(it=>{sendAPIQuery(_e,it,ot=>{if(typeof ot!="object")it.icons.forEach(ct=>{a.missing.add(ct)});else try{const ct=addIconSet(a,ot);if(!ct.length)return;const ut=a.pendingIcons;ut&&ct.forEach(dt=>{ut.delete(dt)}),storeInBrowserStorage(a,ot)}catch(ct){console.error(ct)}loadedNewIcons(a)})})}))}const loadIcons=(a,j)=>{const _e=listToIcons(a,!0,allowSimpleNames()),et=sortIcons(_e);if(!et.pending.length){let ot=!0;return j&&setTimeout(()=>{ot&&j(et.loaded,et.missing,et.pending,emptyCallback)}),()=>{ot=!1}}const tt=Object.create(null),nt=[];let rt,it;return et.pending.forEach(ot=>{const{provider:ct,prefix:ut}=ot;if(ut===it&&ct===rt)return;rt=ct,it=ut,nt.push(getStorage(ct,ut));const dt=tt[ct]||(tt[ct]=Object.create(null));dt[ut]||(dt[ut]=[])}),et.pending.forEach(ot=>{const{provider:ct,prefix:ut,name:dt}=ot,pt=getStorage(ct,ut),mt=pt.pendingIcons||(pt.pendingIcons=new Set);mt.has(dt)||(mt.add(dt),tt[ct][ut].push(dt))}),nt.forEach(ot=>{const{provider:ct,prefix:ut}=ot;tt[ct][ut].length&&loadNewIcons(ot,tt[ct][ut])}),j?storeCallback(j,et,nt):emptyCallback},loadIcon=a=>new Promise((j,_e)=>{const et=typeof a=="string"?stringToIcon(a,!0):a;if(!et){_e(a);return}loadIcons([et||a],tt=>{if(tt.length&&et){const nt=getIconData(et);if(nt){j({...defaultIconProps,...nt});return}}_e(a)})});function mergeCustomisations(a,j){const _e={...a};for(const et in j){const tt=j[et],nt=typeof tt;et in defaultIconSizeCustomisations?(tt===null||tt&&(nt==="string"||nt==="number"))&&(_e[et]=tt):nt===typeof _e[et]&&(_e[et]=et==="rotate"?tt%4:tt)}return _e}const separator=/[\s,]+/;function flipFromString(a,j){j.split(separator).forEach(_e=>{switch(_e.trim()){case"horizontal":a.hFlip=!0;break;case"vertical":a.vFlip=!0;break}})}function rotateFromString(a,j=0){const _e=a.replace(/^-?[0-9.]*/,"");function et(tt){for(;tt<0;)tt+=4;return tt%4}if(_e===""){const tt=parseInt(a);return isNaN(tt)?0:et(tt)}else if(_e!==a){let tt=0;switch(_e){case"%":tt=25;break;case"deg":tt=90}if(tt){let nt=parseFloat(a.slice(0,a.length-_e.length));return isNaN(nt)?0:(nt=nt/tt,nt%1===0?et(nt):0)}}return j}function iconToHTML(a,j){let _e=a.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const et in j)_e+=" "+et+'="'+j[et]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+_e+">"+a+"</svg>"}function encodeSVGforURL(a){return a.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData(a){return"data:image/svg+xml,"+encodeSVGforURL(a)}function svgToURL(a){return'url("'+svgToData(a)+'")'}let policy;function createPolicy(){try{policy=window.trustedTypes.createPolicy("iconify",{createHTML:a=>a})}catch{policy=null}}function cleanUpInnerHTML(a){return policy===void 0&&createPolicy(),policy?policy.createHTML(a):a}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={WebkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const a in propsToAddTo){const j=propsToAddTo[a];for(const _e in propsToAdd)j[a+_e]=propsToAdd[_e]}const inlineDefaults={...defaultExtendedIconCustomisations,inline:!0};function fixSize(a){return a+(a.match(/^[-0-9.]+$/)?"px":"")}const render=(a,j,_e,et)=>{const tt=_e?inlineDefaults:defaultExtendedIconCustomisations,nt=mergeCustomisations(tt,j),rt=j.mode||"svg",it={},ot=j.style||{},ct={...rt==="svg"?svgDefaults:{},ref:et};for(let xt in j){const Pt=j[xt];if(Pt!==void 0)switch(xt){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":nt[xt]=Pt===!0||Pt==="true"||Pt===1;break;case"flip":typeof Pt=="string"&&flipFromString(nt,Pt);break;case"color":it.color=Pt;break;case"rotate":typeof Pt=="string"?nt[xt]=rotateFromString(Pt):typeof Pt=="number"&&(nt[xt]=Pt);break;case"ariaHidden":case"aria-hidden":Pt!==!0&&Pt!=="true"&&delete ct["aria-hidden"];break;default:tt[xt]===void 0&&(ct[xt]=Pt)}}const ut=iconToSVG(a,nt),dt=ut.attributes;if(nt.inline&&(it.verticalAlign="-0.125em"),rt==="svg"){ct.style={...it,...ot},Object.assign(ct,dt);let xt=0,Pt=j.id;return typeof Pt=="string"&&(Pt=Pt.replace(/-/g,"_")),ct.dangerouslySetInnerHTML={__html:cleanUpInnerHTML(replaceIDs(ut.body,Pt?()=>Pt+"ID"+xt++:"iconifyReact"))},React$2.createElement("svg",ct)}const{body:pt,width:mt,height:vt}=a,Et=rt==="mask"||(rt==="bg"?!1:pt.indexOf("currentColor")!==-1),Rt=iconToHTML(pt,{...dt,width:mt+"",height:vt+""});return ct.style={...it,"--svg":svgToURL(Rt),width:fixSize(dt.width),height:fixSize(dt.height),...commonProps,...Et?monotoneProps:coloredProps,...ot},React$2.createElement("span",ct)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const a=window;if(a.IconifyPreload!==void 0){const j=a.IconifyPreload,_e="Invalid IconifyPreload syntax.";typeof j=="object"&&j!==null&&(j instanceof Array?j:[j]).forEach(et=>{try{(typeof et!="object"||et===null||et instanceof Array||typeof et.icons!="object"||typeof et.prefix!="string"||!addCollection(et))&&console.error(_e)}catch{console.error(_e)}})}if(a.IconifyProviders!==void 0){const j=a.IconifyProviders;if(typeof j=="object"&&j!==null)for(let _e in j){const et="IconifyProviders["+_e+"] is invalid.";try{const tt=j[_e];if(typeof tt!="object"||!tt||tt.resources===void 0)continue;addAPIProvider(_e,tt)||console.error(et)}catch{console.error(et)}}}}class IconComponent extends React$2.Component{constructor(j){super(j),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(j){this.state.icon!==j&&this.setState({icon:j})}_checkIcon(j){const _e=this.state,et=this.props.icon;if(typeof et=="object"&&et!==null&&typeof et.body=="string"){this._icon="",this._abortLoading(),(j||_e.icon===null)&&this._setData({data:et});return}let tt;if(typeof et!="string"||(tt=stringToIcon(et,!1,!0))===null){this._abortLoading(),this._setData(null);return}const nt=getIconData(tt);if(!nt){(!this._loading||this._loading.name!==et)&&(this._abortLoading(),this._icon="",this._setData(null),nt!==null&&(this._loading={name:et,abort:loadIcons([tt],this._checkIcon.bind(this,!1))}));return}if(this._icon!==et||_e.icon===null){this._abortLoading(),this._icon=et;const rt=["iconify"];tt.prefix!==""&&rt.push("iconify--"+tt.prefix),tt.provider!==""&&rt.push("iconify--"+tt.provider),this._setData({data:nt,classes:rt}),this.props.onLoad&&this.props.onLoad(et)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(j){j.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const j=this.props,_e=this.state.icon;if(_e===null)return j.children?j.children:React$2.createElement("span",{});let et=j;return _e.classes&&(et={...j,className:(typeof j.className=="string"?j.className+" ":"")+_e.classes.join(" ")}),render({...defaultIconProps,..._e.data},et,j._inline,j._ref)}}const Icon=React$2.forwardRef(function(j,_e){const et={...j,_ref:_e,_inline:!1};return React$2.createElement(IconComponent,et)});React$2.forwardRef(function(j,_e){const et={...j,_ref:_e,_inline:!0};return React$2.createElement(IconComponent,et)});const data$v={width:24,height:24,body:'<path fill="currentColor" d="M9.575 12L5.7 8.1q-.275-.275-.288-.688T5.7 6.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.062.375t-.213.325l-4.6 4.6q-.275.275-.687.288T5.7 17.3q-.275-.275-.275-.7t.275-.7L9.575 12Zm6.6 0L12.3 8.1q-.275-.275-.288-.688T12.3 6.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.6 4.6q-.275.275-.687.288T12.3 17.3q-.275-.275-.275-.7t.275-.7l3.875-3.9Z"/>'};var appleIphone=/iPhone/i,appleIpod=/iPod/i,appleTablet=/iPad/i,appleUniversal=/\biOS-universal(?:.+)Mac\b/i,androidPhone=/\bAndroid(?:.+)Mobile\b/i,androidTablet=/Android/i,amazonPhone=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,amazonTablet=/Silk/i,windowsPhone=/Windows Phone/i,windowsTablet=/\bWindows(?:.+)ARM\b/i,otherBlackBerry=/BlackBerry/i,otherBlackBerry10=/BB10/i,otherOpera=/Opera Mini/i,otherChrome=/\b(CriOS|Chrome)(?:.+)Mobile/i,otherFirefox=/Mobile(?:.+)Firefox\b/i,isAppleTabletOnIos13=function(a){return typeof a<"u"&&a.platform==="MacIntel"&&typeof a.maxTouchPoints=="number"&&a.maxTouchPoints>1&&typeof MSStream>"u"};function createMatch(a){return function(j){return j.test(a)}}function isMobile(a){var j={userAgent:"",platform:"",maxTouchPoints:0};!a&&typeof navigator<"u"?j={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof a=="string"?j.userAgent=a:a&&a.userAgent&&(j={userAgent:a.userAgent,platform:a.platform,maxTouchPoints:a.maxTouchPoints||0});var _e=j.userAgent,et=_e.split("[FBAN");typeof et[1]<"u"&&(_e=et[0]),et=_e.split("Twitter"),typeof et[1]<"u"&&(_e=et[0]);var tt=createMatch(_e),nt={apple:{phone:tt(appleIphone)&&!tt(windowsPhone),ipod:tt(appleIpod),tablet:!tt(appleIphone)&&(tt(appleTablet)||isAppleTabletOnIos13(j))&&!tt(windowsPhone),universal:tt(appleUniversal),device:(tt(appleIphone)||tt(appleIpod)||tt(appleTablet)||tt(appleUniversal)||isAppleTabletOnIos13(j))&&!tt(windowsPhone)},amazon:{phone:tt(amazonPhone),tablet:!tt(amazonPhone)&&tt(amazonTablet),device:tt(amazonPhone)||tt(amazonTablet)},android:{phone:!tt(windowsPhone)&&tt(amazonPhone)||!tt(windowsPhone)&&tt(androidPhone),tablet:!tt(windowsPhone)&&!tt(amazonPhone)&&!tt(androidPhone)&&(tt(amazonTablet)||tt(androidTablet)),device:!tt(windowsPhone)&&(tt(amazonPhone)||tt(amazonTablet)||tt(androidPhone)||tt(androidTablet))||tt(/\bokhttp\b/i)},windows:{phone:tt(windowsPhone),tablet:tt(windowsTablet),device:tt(windowsPhone)||tt(windowsTablet)},other:{blackberry:tt(otherBlackBerry),blackberry10:tt(otherBlackBerry10),opera:tt(otherOpera),firefox:tt(otherFirefox),chrome:tt(otherChrome),device:tt(otherBlackBerry)||tt(otherBlackBerry10)||tt(otherOpera)||tt(otherFirefox)||tt(otherChrome)},any:!1,phone:!1,tablet:!1};return nt.any=nt.apple.device||nt.android.device||nt.windows.device||nt.other.device,nt.phone=nt.apple.phone||nt.android.phone||nt.windows.phone,nt.tablet=nt.apple.tablet||nt.android.tablet||nt.windows.tablet,nt}const DID_WALLET_TAG="ABTWallet",ARC_SPHERE_TAG="ArcSphere";function getDIDWalletVersion(a){var tt;const _e=new RegExp(`${DID_WALLET_TAG}/(?<version>[0-9.]+)`,"g").exec(a);return(tt=_e==null?void 0:_e.groups)==null?void 0:tt.version}function useBrowser(){var _e;const a=(_e=window==null?void 0:window.navigator)==null?void 0:_e.userAgent,[j]=reactExports.useState({wallet:a.indexOf(DID_WALLET_TAG)>-1||a.indexOf(ARC_SPHERE_TAG)>-1,walletVersion:getDIDWalletVersion(a),wechat:/MicroMessenger/i.test(a),mobile:{apple:{phone:!1,ipod:!1,tablet:!1,device:!1},amazon:{phone:!1,tablet:!1,device:!1},android:{phone:!1,tablet:!1,device:!1},windows:{phone:!1,tablet:!1,device:!1},other:{blackberry:!1,blackberry10:!1,opera:!1,firefox:!1,chrome:!1,device:!1},phone:!1,tablet:!1,any:!1,...isMobile(a)}});return j}const extendedColors={did:{contained:{backgroundColor:colors$2.did.primary,color:colors$2.common.white},outlined:{borderColor:colors$2.did.primary,color:colors$2.did.primary}},reverse:{contained:{backgroundColor:"rgba(255, 255, 255, 0.9)",color:colors$2.grey[900]},outlined:{borderColor:colors$2.grey[900],color:colors$2.grey[900]}}};function wrap$1(a){function j(_e){const et=mergeProps(_e,j,["style"]),{children:tt,rounded:nt,loading:rt,disabled:it,style:ot,forwardedRef:ct,color:ut,...dt}=et,pt=it||rt;let mt=16;switch(dt.size){case"small":mt=14;break;case"large":mt=18;break}const vt=extendedColors[ut]&&extendedColors[ut][dt.variant],Et=Object.assign({},ot,{boxShadow:"none",textTransform:"capitalize",...vt});let Rt=dt;return vt||(Rt={...Rt,color:ut}),nt&&(Et.borderRadius="100vw"),jsxRuntimeExports.jsxs(a,{style:Et,ref:ct,disabled:pt,...Rt,children:[rt&&jsxRuntimeExports.jsx(CircularProgress,{size:mt,style:{marginRight:5}}),tt]})}return j.propTypes={children:PropTypes.any.isRequired,style:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),size:PropTypes.oneOf(["large","medium","small"]),forwardedRef:PropTypes.any,rounded:PropTypes.bool},j.defaultProps={rounded:!1,size:"medium",forwardedRef:null,style:{}},reactExports.forwardRef((_e,et)=>jsxRuntimeExports.jsx(j,{..._e,forwardedRef:et}))}const ButtonComponent=wrap$1(Button$1);function Dialog({children:a,title:j,prepend:_e,toolbar:et,actions:tt,showCloseButton:nt,actionsPosition:rt,PaperProps:it,slotProps:ot,...ct}){const ut=useTheme$1(),dt=useMediaQuery(ut.breakpoints.down("md")),pt=j||nt||et,mt=(Et,Rt)=>{const{onClose:xt}=ct;xt&&xt(Et,Rt)};it.style=Object.assign({minWidth:300,minHeight:300},it.style);const vt=jsxRuntimeExports.jsx(IconButton,{className:"ux-dialog_closeButton",onClick:Et=>mt(Et,"closeButton"),children:jsxRuntimeExports.jsx(default_1$7,{})});return jsxRuntimeExports.jsxs(StyledMuiDialog,{fullScreen:dt,onClose:mt,PaperProps:it,...ct,children:[pt&&jsxRuntimeExports.jsxs(Header$1,{...ot.header,className:"ux-dialog_header",isMobile:dt,children:[jsxRuntimeExports.jsxs("div",{className:"ux-dialog_left",children:[nt&&dt&&vt,_e&&jsxRuntimeExports.jsx("div",{className:"ux-dialog_prepend",children:_e}),j&&jsxRuntimeExports.jsx(Typography,{variant:"h6",className:"ux-dialog_title",children:j})]}),jsxRuntimeExports.jsxs("div",{className:"ux-dialog_right",children:[jsxRuntimeExports.jsx("div",{className:"ux-dialog_toolbar",children:et}),nt&&!dt&&vt]})]}),jsxRuntimeExports.jsx(DialogContent,{...ot.content,children:a}),tt&&jsxRuntimeExports.jsx(DialogActions,{className:`ux-dialog_actions--${rt}`,children:tt})]})}Dialog.propTypes={children:PropTypes.node.isRequired,title:PropTypes.node,prepend:PropTypes.node,toolbar:PropTypes.node,actions:PropTypes.node,showCloseButton:PropTypes.bool,actionsPosition:PropTypes.oneOf(["left","center","right"]),PaperProps:PropTypes.object,slotProps:PropTypes.shape({content:PropTypes.object,header:PropTypes.object})};Dialog.defaultProps={showCloseButton:!0,title:"",prepend:null,toolbar:null,actions:null,actionsPosition:"right",PaperProps:{},slotProps:{}};const StyledMuiDialog=styled(Dialog$1)`
262
262
  .MuiDialog-paper {
263
263
  ${a=>a.fullScreen?"border-radius: 0;":""};
264
264
  }
@@ -428,7 +428,7 @@ Use Chrome, Firefox or Internet Explorer 11`)}var Buffer$2=safeBufferExports.Buf
428
428
  use chrome, FireFox or Internet Explorer 11`)}var j=safeBufferExports,_e=browserExports$1,et=j.Buffer,tt=j.kMaxLength,nt=commonjsGlobal.crypto||commonjsGlobal.msCrypto,rt=Math.pow(2,32)-1;function it(pt,mt){if(typeof pt!="number"||pt!==pt)throw new TypeError("offset must be a number");if(pt>rt||pt<0)throw new TypeError("offset must be a uint32");if(pt>tt||pt>mt)throw new RangeError("offset out of range")}function ot(pt,mt,vt){if(typeof pt!="number"||pt!==pt)throw new TypeError("size must be a number");if(pt>rt||pt<0)throw new TypeError("size must be a uint32");if(pt+mt>vt||pt>tt)throw new RangeError("buffer too small")}nt&&nt.getRandomValues||!process$1$1.browser?(browser$6.randomFill=ct,browser$6.randomFillSync=dt):(browser$6.randomFill=a,browser$6.randomFillSync=a);function ct(pt,mt,vt,Et){if(!et.isBuffer(pt)&&!(pt instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof mt=="function")Et=mt,mt=0,vt=pt.length;else if(typeof vt=="function")Et=vt,vt=pt.length-mt;else if(typeof Et!="function")throw new TypeError('"cb" argument must be a function');return it(mt,pt.length),ot(vt,mt,pt.length),ut(pt,mt,vt,Et)}function ut(pt,mt,vt,Et){if(process$1$1.browser){var Rt=pt.buffer,xt=new Uint8Array(Rt,mt,vt);if(nt.getRandomValues(xt),Et){process$1$1.nextTick(function(){Et(null,pt)});return}return pt}if(Et){_e(vt,function(Dt,Ft){if(Dt)return Et(Dt);Ft.copy(pt,mt),Et(null,pt)});return}var Pt=_e(vt);return Pt.copy(pt,mt),pt}function dt(pt,mt,vt){if(typeof mt>"u"&&(mt=0),!et.isBuffer(pt)&&!(pt instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return it(mt,pt.length),vt===void 0&&(vt=pt.length-mt),ot(vt,mt,pt.length),ut(pt,mt,vt)}return browser$6}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=browserExports$1,cryptoBrowserify.createHash=cryptoBrowserify.Hash=requireBrowser$9(),cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=requireBrowser$8();var a=requireAlgos(),j=Object.keys(a),_e=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(j);cryptoBrowserify.getHashes=function(){return _e};var et=requireBrowser$7();cryptoBrowserify.pbkdf2=et.pbkdf2,cryptoBrowserify.pbkdf2Sync=et.pbkdf2Sync;var tt=requireBrowser$5();cryptoBrowserify.Cipher=tt.Cipher,cryptoBrowserify.createCipher=tt.createCipher,cryptoBrowserify.Cipheriv=tt.Cipheriv,cryptoBrowserify.createCipheriv=tt.createCipheriv,cryptoBrowserify.Decipher=tt.Decipher,cryptoBrowserify.createDecipher=tt.createDecipher,cryptoBrowserify.Decipheriv=tt.Decipheriv,cryptoBrowserify.createDecipheriv=tt.createDecipheriv,cryptoBrowserify.getCiphers=tt.getCiphers,cryptoBrowserify.listCiphers=tt.listCiphers;var nt=requireBrowser$4();cryptoBrowserify.DiffieHellmanGroup=nt.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=nt.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=nt.getDiffieHellman,cryptoBrowserify.createDiffieHellman=nt.createDiffieHellman,cryptoBrowserify.DiffieHellman=nt.DiffieHellman;var rt=requireBrowser$3();cryptoBrowserify.createSign=rt.createSign,cryptoBrowserify.Sign=rt.Sign,cryptoBrowserify.createVerify=rt.createVerify,cryptoBrowserify.Verify=rt.Verify,cryptoBrowserify.createECDH=requireBrowser$2();var it=requireBrowser$1();cryptoBrowserify.publicEncrypt=it.publicEncrypt,cryptoBrowserify.privateEncrypt=it.privateEncrypt,cryptoBrowserify.publicDecrypt=it.publicDecrypt,cryptoBrowserify.privateDecrypt=it.privateDecrypt;var ot=requireBrowser();return cryptoBrowserify.randomFill=ot.randomFill,cryptoBrowserify.randomFillSync=ot.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
429
429
  `))},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}(function(a){(function(j){var _e=function(qt){var rn,un=new Float64Array(16);if(qt)for(rn=0;rn<qt.length;rn++)un[rn]=qt[rn];return un},et=function(){throw new Error("no PRNG")},tt=new Uint8Array(16),nt=new Uint8Array(32);nt[0]=9;var rt=_e(),it=_e([1]),ot=_e([56129,1]),ct=_e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),ut=_e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),dt=_e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),pt=_e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),mt=_e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function vt(qt,rn,un,jt){qt[rn]=un>>24&255,qt[rn+1]=un>>16&255,qt[rn+2]=un>>8&255,qt[rn+3]=un&255,qt[rn+4]=jt>>24&255,qt[rn+5]=jt>>16&255,qt[rn+6]=jt>>8&255,qt[rn+7]=jt&255}function Et(qt,rn,un,jt,pn){var kn,An=0;for(kn=0;kn<pn;kn++)An|=qt[rn+kn]^un[jt+kn];return(1&An-1>>>8)-1}function Rt(qt,rn,un,jt){return Et(qt,rn,un,jt,16)}function xt(qt,rn,un,jt){return Et(qt,rn,un,jt,32)}function Pt(qt,rn,un,jt){for(var pn=jt[0]&255|(jt[1]&255)<<8|(jt[2]&255)<<16|(jt[3]&255)<<24,kn=un[0]&255|(un[1]&255)<<8|(un[2]&255)<<16|(un[3]&255)<<24,An=un[4]&255|(un[5]&255)<<8|(un[6]&255)<<16|(un[7]&255)<<24,Ln=un[8]&255|(un[9]&255)<<8|(un[10]&255)<<16|(un[11]&255)<<24,Gn=un[12]&255|(un[13]&255)<<8|(un[14]&255)<<16|(un[15]&255)<<24,Jn=jt[4]&255|(jt[5]&255)<<8|(jt[6]&255)<<16|(jt[7]&255)<<24,Yn=rn[0]&255|(rn[1]&255)<<8|(rn[2]&255)<<16|(rn[3]&255)<<24,Rr=rn[4]&255|(rn[5]&255)<<8|(rn[6]&255)<<16|(rn[7]&255)<<24,dr=rn[8]&255|(rn[9]&255)<<8|(rn[10]&255)<<16|(rn[11]&255)<<24,rr=rn[12]&255|(rn[13]&255)<<8|(rn[14]&255)<<16|(rn[15]&255)<<24,$r=jt[8]&255|(jt[9]&255)<<8|(jt[10]&255)<<16|(jt[11]&255)<<24,Cr=un[16]&255|(un[17]&255)<<8|(un[18]&255)<<16|(un[19]&255)<<24,Mr=un[20]&255|(un[21]&255)<<8|(un[22]&255)<<16|(un[23]&255)<<24,Lr=un[24]&255|(un[25]&255)<<8|(un[26]&255)<<16|(un[27]&255)<<24,Or=un[28]&255|(un[29]&255)<<8|(un[30]&255)<<16|(un[31]&255)<<24,Br=jt[12]&255|(jt[13]&255)<<8|(jt[14]&255)<<16|(jt[15]&255)<<24,Ar=pn,Ir=kn,Sr=An,wr=Ln,kr=Gn,lr=Jn,Kn=Yn,Zn=Rr,tr=dr,ir=rr,pr=$r,Tr=Cr,jr=Mr,Kr=Lr,Yr=Or,Wr=Br,Mn,_i=0;_i<20;_i+=2)Mn=Ar+jr|0,kr^=Mn<<7|Mn>>>25,Mn=kr+Ar|0,tr^=Mn<<9|Mn>>>23,Mn=tr+kr|0,jr^=Mn<<13|Mn>>>19,Mn=jr+tr|0,Ar^=Mn<<18|Mn>>>14,Mn=lr+Ir|0,ir^=Mn<<7|Mn>>>25,Mn=ir+lr|0,Kr^=Mn<<9|Mn>>>23,Mn=Kr+ir|0,Ir^=Mn<<13|Mn>>>19,Mn=Ir+Kr|0,lr^=Mn<<18|Mn>>>14,Mn=pr+Kn|0,Yr^=Mn<<7|Mn>>>25,Mn=Yr+pr|0,Sr^=Mn<<9|Mn>>>23,Mn=Sr+Yr|0,Kn^=Mn<<13|Mn>>>19,Mn=Kn+Sr|0,pr^=Mn<<18|Mn>>>14,Mn=Wr+Tr|0,wr^=Mn<<7|Mn>>>25,Mn=wr+Wr|0,Zn^=Mn<<9|Mn>>>23,Mn=Zn+wr|0,Tr^=Mn<<13|Mn>>>19,Mn=Tr+Zn|0,Wr^=Mn<<18|Mn>>>14,Mn=Ar+wr|0,Ir^=Mn<<7|Mn>>>25,Mn=Ir+Ar|0,Sr^=Mn<<9|Mn>>>23,Mn=Sr+Ir|0,wr^=Mn<<13|Mn>>>19,Mn=wr+Sr|0,Ar^=Mn<<18|Mn>>>14,Mn=lr+kr|0,Kn^=Mn<<7|Mn>>>25,Mn=Kn+lr|0,Zn^=Mn<<9|Mn>>>23,Mn=Zn+Kn|0,kr^=Mn<<13|Mn>>>19,Mn=kr+Zn|0,lr^=Mn<<18|Mn>>>14,Mn=pr+ir|0,Tr^=Mn<<7|Mn>>>25,Mn=Tr+pr|0,tr^=Mn<<9|Mn>>>23,Mn=tr+Tr|0,ir^=Mn<<13|Mn>>>19,Mn=ir+tr|0,pr^=Mn<<18|Mn>>>14,Mn=Wr+Yr|0,jr^=Mn<<7|Mn>>>25,Mn=jr+Wr|0,Kr^=Mn<<9|Mn>>>23,Mn=Kr+jr|0,Yr^=Mn<<13|Mn>>>19,Mn=Yr+Kr|0,Wr^=Mn<<18|Mn>>>14;Ar=Ar+pn|0,Ir=Ir+kn|0,Sr=Sr+An|0,wr=wr+Ln|0,kr=kr+Gn|0,lr=lr+Jn|0,Kn=Kn+Yn|0,Zn=Zn+Rr|0,tr=tr+dr|0,ir=ir+rr|0,pr=pr+$r|0,Tr=Tr+Cr|0,jr=jr+Mr|0,Kr=Kr+Lr|0,Yr=Yr+Or|0,Wr=Wr+Br|0,qt[0]=Ar>>>0&255,qt[1]=Ar>>>8&255,qt[2]=Ar>>>16&255,qt[3]=Ar>>>24&255,qt[4]=Ir>>>0&255,qt[5]=Ir>>>8&255,qt[6]=Ir>>>16&255,qt[7]=Ir>>>24&255,qt[8]=Sr>>>0&255,qt[9]=Sr>>>8&255,qt[10]=Sr>>>16&255,qt[11]=Sr>>>24&255,qt[12]=wr>>>0&255,qt[13]=wr>>>8&255,qt[14]=wr>>>16&255,qt[15]=wr>>>24&255,qt[16]=kr>>>0&255,qt[17]=kr>>>8&255,qt[18]=kr>>>16&255,qt[19]=kr>>>24&255,qt[20]=lr>>>0&255,qt[21]=lr>>>8&255,qt[22]=lr>>>16&255,qt[23]=lr>>>24&255,qt[24]=Kn>>>0&255,qt[25]=Kn>>>8&255,qt[26]=Kn>>>16&255,qt[27]=Kn>>>24&255,qt[28]=Zn>>>0&255,qt[29]=Zn>>>8&255,qt[30]=Zn>>>16&255,qt[31]=Zn>>>24&255,qt[32]=tr>>>0&255,qt[33]=tr>>>8&255,qt[34]=tr>>>16&255,qt[35]=tr>>>24&255,qt[36]=ir>>>0&255,qt[37]=ir>>>8&255,qt[38]=ir>>>16&255,qt[39]=ir>>>24&255,qt[40]=pr>>>0&255,qt[41]=pr>>>8&255,qt[42]=pr>>>16&255,qt[43]=pr>>>24&255,qt[44]=Tr>>>0&255,qt[45]=Tr>>>8&255,qt[46]=Tr>>>16&255,qt[47]=Tr>>>24&255,qt[48]=jr>>>0&255,qt[49]=jr>>>8&255,qt[50]=jr>>>16&255,qt[51]=jr>>>24&255,qt[52]=Kr>>>0&255,qt[53]=Kr>>>8&255,qt[54]=Kr>>>16&255,qt[55]=Kr>>>24&255,qt[56]=Yr>>>0&255,qt[57]=Yr>>>8&255,qt[58]=Yr>>>16&255,qt[59]=Yr>>>24&255,qt[60]=Wr>>>0&255,qt[61]=Wr>>>8&255,qt[62]=Wr>>>16&255,qt[63]=Wr>>>24&255}function Dt(qt,rn,un,jt){for(var pn=jt[0]&255|(jt[1]&255)<<8|(jt[2]&255)<<16|(jt[3]&255)<<24,kn=un[0]&255|(un[1]&255)<<8|(un[2]&255)<<16|(un[3]&255)<<24,An=un[4]&255|(un[5]&255)<<8|(un[6]&255)<<16|(un[7]&255)<<24,Ln=un[8]&255|(un[9]&255)<<8|(un[10]&255)<<16|(un[11]&255)<<24,Gn=un[12]&255|(un[13]&255)<<8|(un[14]&255)<<16|(un[15]&255)<<24,Jn=jt[4]&255|(jt[5]&255)<<8|(jt[6]&255)<<16|(jt[7]&255)<<24,Yn=rn[0]&255|(rn[1]&255)<<8|(rn[2]&255)<<16|(rn[3]&255)<<24,Rr=rn[4]&255|(rn[5]&255)<<8|(rn[6]&255)<<16|(rn[7]&255)<<24,dr=rn[8]&255|(rn[9]&255)<<8|(rn[10]&255)<<16|(rn[11]&255)<<24,rr=rn[12]&255|(rn[13]&255)<<8|(rn[14]&255)<<16|(rn[15]&255)<<24,$r=jt[8]&255|(jt[9]&255)<<8|(jt[10]&255)<<16|(jt[11]&255)<<24,Cr=un[16]&255|(un[17]&255)<<8|(un[18]&255)<<16|(un[19]&255)<<24,Mr=un[20]&255|(un[21]&255)<<8|(un[22]&255)<<16|(un[23]&255)<<24,Lr=un[24]&255|(un[25]&255)<<8|(un[26]&255)<<16|(un[27]&255)<<24,Or=un[28]&255|(un[29]&255)<<8|(un[30]&255)<<16|(un[31]&255)<<24,Br=jt[12]&255|(jt[13]&255)<<8|(jt[14]&255)<<16|(jt[15]&255)<<24,Ar=pn,Ir=kn,Sr=An,wr=Ln,kr=Gn,lr=Jn,Kn=Yn,Zn=Rr,tr=dr,ir=rr,pr=$r,Tr=Cr,jr=Mr,Kr=Lr,Yr=Or,Wr=Br,Mn,_i=0;_i<20;_i+=2)Mn=Ar+jr|0,kr^=Mn<<7|Mn>>>25,Mn=kr+Ar|0,tr^=Mn<<9|Mn>>>23,Mn=tr+kr|0,jr^=Mn<<13|Mn>>>19,Mn=jr+tr|0,Ar^=Mn<<18|Mn>>>14,Mn=lr+Ir|0,ir^=Mn<<7|Mn>>>25,Mn=ir+lr|0,Kr^=Mn<<9|Mn>>>23,Mn=Kr+ir|0,Ir^=Mn<<13|Mn>>>19,Mn=Ir+Kr|0,lr^=Mn<<18|Mn>>>14,Mn=pr+Kn|0,Yr^=Mn<<7|Mn>>>25,Mn=Yr+pr|0,Sr^=Mn<<9|Mn>>>23,Mn=Sr+Yr|0,Kn^=Mn<<13|Mn>>>19,Mn=Kn+Sr|0,pr^=Mn<<18|Mn>>>14,Mn=Wr+Tr|0,wr^=Mn<<7|Mn>>>25,Mn=wr+Wr|0,Zn^=Mn<<9|Mn>>>23,Mn=Zn+wr|0,Tr^=Mn<<13|Mn>>>19,Mn=Tr+Zn|0,Wr^=Mn<<18|Mn>>>14,Mn=Ar+wr|0,Ir^=Mn<<7|Mn>>>25,Mn=Ir+Ar|0,Sr^=Mn<<9|Mn>>>23,Mn=Sr+Ir|0,wr^=Mn<<13|Mn>>>19,Mn=wr+Sr|0,Ar^=Mn<<18|Mn>>>14,Mn=lr+kr|0,Kn^=Mn<<7|Mn>>>25,Mn=Kn+lr|0,Zn^=Mn<<9|Mn>>>23,Mn=Zn+Kn|0,kr^=Mn<<13|Mn>>>19,Mn=kr+Zn|0,lr^=Mn<<18|Mn>>>14,Mn=pr+ir|0,Tr^=Mn<<7|Mn>>>25,Mn=Tr+pr|0,tr^=Mn<<9|Mn>>>23,Mn=tr+Tr|0,ir^=Mn<<13|Mn>>>19,Mn=ir+tr|0,pr^=Mn<<18|Mn>>>14,Mn=Wr+Yr|0,jr^=Mn<<7|Mn>>>25,Mn=jr+Wr|0,Kr^=Mn<<9|Mn>>>23,Mn=Kr+jr|0,Yr^=Mn<<13|Mn>>>19,Mn=Yr+Kr|0,Wr^=Mn<<18|Mn>>>14;qt[0]=Ar>>>0&255,qt[1]=Ar>>>8&255,qt[2]=Ar>>>16&255,qt[3]=Ar>>>24&255,qt[4]=lr>>>0&255,qt[5]=lr>>>8&255,qt[6]=lr>>>16&255,qt[7]=lr>>>24&255,qt[8]=pr>>>0&255,qt[9]=pr>>>8&255,qt[10]=pr>>>16&255,qt[11]=pr>>>24&255,qt[12]=Wr>>>0&255,qt[13]=Wr>>>8&255,qt[14]=Wr>>>16&255,qt[15]=Wr>>>24&255,qt[16]=Kn>>>0&255,qt[17]=Kn>>>8&255,qt[18]=Kn>>>16&255,qt[19]=Kn>>>24&255,qt[20]=Zn>>>0&255,qt[21]=Zn>>>8&255,qt[22]=Zn>>>16&255,qt[23]=Zn>>>24&255,qt[24]=tr>>>0&255,qt[25]=tr>>>8&255,qt[26]=tr>>>16&255,qt[27]=tr>>>24&255,qt[28]=ir>>>0&255,qt[29]=ir>>>8&255,qt[30]=ir>>>16&255,qt[31]=ir>>>24&255}function Ft(qt,rn,un,jt){Pt(qt,rn,un,jt)}function zt(qt,rn,un,jt){Dt(qt,rn,un,jt)}var Nt=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Vt(qt,rn,un,jt,pn,kn,An){var Ln=new Uint8Array(16),Gn=new Uint8Array(64),Jn,Yn;for(Yn=0;Yn<16;Yn++)Ln[Yn]=0;for(Yn=0;Yn<8;Yn++)Ln[Yn]=kn[Yn];for(;pn>=64;){for(Ft(Gn,Ln,An,Nt),Yn=0;Yn<64;Yn++)qt[rn+Yn]=un[jt+Yn]^Gn[Yn];for(Jn=1,Yn=8;Yn<16;Yn++)Jn=Jn+(Ln[Yn]&255)|0,Ln[Yn]=Jn&255,Jn>>>=8;pn-=64,rn+=64,jt+=64}if(pn>0)for(Ft(Gn,Ln,An,Nt),Yn=0;Yn<pn;Yn++)qt[rn+Yn]=un[jt+Yn]^Gn[Yn];return 0}function nn(qt,rn,un,jt,pn){var kn=new Uint8Array(16),An=new Uint8Array(64),Ln,Gn;for(Gn=0;Gn<16;Gn++)kn[Gn]=0;for(Gn=0;Gn<8;Gn++)kn[Gn]=jt[Gn];for(;un>=64;){for(Ft(An,kn,pn,Nt),Gn=0;Gn<64;Gn++)qt[rn+Gn]=An[Gn];for(Ln=1,Gn=8;Gn<16;Gn++)Ln=Ln+(kn[Gn]&255)|0,kn[Gn]=Ln&255,Ln>>>=8;un-=64,rn+=64}if(un>0)for(Ft(An,kn,pn,Nt),Gn=0;Gn<un;Gn++)qt[rn+Gn]=An[Gn];return 0}function fn(qt,rn,un,jt,pn){var kn=new Uint8Array(32);zt(kn,jt,pn,Nt);for(var An=new Uint8Array(8),Ln=0;Ln<8;Ln++)An[Ln]=jt[Ln+16];return nn(qt,rn,un,An,kn)}function hn(qt,rn,un,jt,pn,kn,An){var Ln=new Uint8Array(32);zt(Ln,kn,An,Nt);for(var Gn=new Uint8Array(8),Jn=0;Jn<8;Jn++)Gn[Jn]=kn[Jn+16];return Vt(qt,rn,un,jt,pn,Gn,Ln)}var Qt=function(qt){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var rn,un,jt,pn,kn,An,Ln,Gn;rn=qt[0]&255|(qt[1]&255)<<8,this.r[0]=rn&8191,un=qt[2]&255|(qt[3]&255)<<8,this.r[1]=(rn>>>13|un<<3)&8191,jt=qt[4]&255|(qt[5]&255)<<8,this.r[2]=(un>>>10|jt<<6)&7939,pn=qt[6]&255|(qt[7]&255)<<8,this.r[3]=(jt>>>7|pn<<9)&8191,kn=qt[8]&255|(qt[9]&255)<<8,this.r[4]=(pn>>>4|kn<<12)&255,this.r[5]=kn>>>1&8190,An=qt[10]&255|(qt[11]&255)<<8,this.r[6]=(kn>>>14|An<<2)&8191,Ln=qt[12]&255|(qt[13]&255)<<8,this.r[7]=(An>>>11|Ln<<5)&8065,Gn=qt[14]&255|(qt[15]&255)<<8,this.r[8]=(Ln>>>8|Gn<<8)&8191,this.r[9]=Gn>>>5&127,this.pad[0]=qt[16]&255|(qt[17]&255)<<8,this.pad[1]=qt[18]&255|(qt[19]&255)<<8,this.pad[2]=qt[20]&255|(qt[21]&255)<<8,this.pad[3]=qt[22]&255|(qt[23]&255)<<8,this.pad[4]=qt[24]&255|(qt[25]&255)<<8,this.pad[5]=qt[26]&255|(qt[27]&255)<<8,this.pad[6]=qt[28]&255|(qt[29]&255)<<8,this.pad[7]=qt[30]&255|(qt[31]&255)<<8};Qt.prototype.blocks=function(qt,rn,un){for(var jt=this.fin?0:2048,pn,kn,An,Ln,Gn,Jn,Yn,Rr,dr,rr,$r,Cr,Mr,Lr,Or,Br,Ar,Ir,Sr,wr=this.h[0],kr=this.h[1],lr=this.h[2],Kn=this.h[3],Zn=this.h[4],tr=this.h[5],ir=this.h[6],pr=this.h[7],Tr=this.h[8],jr=this.h[9],Kr=this.r[0],Yr=this.r[1],Wr=this.r[2],Mn=this.r[3],_i=this.r[4],oo=this.r[5],ao=this.r[6],Xr=this.r[7],so=this.r[8],ro=this.r[9];un>=16;)pn=qt[rn+0]&255|(qt[rn+1]&255)<<8,wr+=pn&8191,kn=qt[rn+2]&255|(qt[rn+3]&255)<<8,kr+=(pn>>>13|kn<<3)&8191,An=qt[rn+4]&255|(qt[rn+5]&255)<<8,lr+=(kn>>>10|An<<6)&8191,Ln=qt[rn+6]&255|(qt[rn+7]&255)<<8,Kn+=(An>>>7|Ln<<9)&8191,Gn=qt[rn+8]&255|(qt[rn+9]&255)<<8,Zn+=(Ln>>>4|Gn<<12)&8191,tr+=Gn>>>1&8191,Jn=qt[rn+10]&255|(qt[rn+11]&255)<<8,ir+=(Gn>>>14|Jn<<2)&8191,Yn=qt[rn+12]&255|(qt[rn+13]&255)<<8,pr+=(Jn>>>11|Yn<<5)&8191,Rr=qt[rn+14]&255|(qt[rn+15]&255)<<8,Tr+=(Yn>>>8|Rr<<8)&8191,jr+=Rr>>>5|jt,dr=0,rr=dr,rr+=wr*Kr,rr+=kr*(5*ro),rr+=lr*(5*so),rr+=Kn*(5*Xr),rr+=Zn*(5*ao),dr=rr>>>13,rr&=8191,rr+=tr*(5*oo),rr+=ir*(5*_i),rr+=pr*(5*Mn),rr+=Tr*(5*Wr),rr+=jr*(5*Yr),dr+=rr>>>13,rr&=8191,$r=dr,$r+=wr*Yr,$r+=kr*Kr,$r+=lr*(5*ro),$r+=Kn*(5*so),$r+=Zn*(5*Xr),dr=$r>>>13,$r&=8191,$r+=tr*(5*ao),$r+=ir*(5*oo),$r+=pr*(5*_i),$r+=Tr*(5*Mn),$r+=jr*(5*Wr),dr+=$r>>>13,$r&=8191,Cr=dr,Cr+=wr*Wr,Cr+=kr*Yr,Cr+=lr*Kr,Cr+=Kn*(5*ro),Cr+=Zn*(5*so),dr=Cr>>>13,Cr&=8191,Cr+=tr*(5*Xr),Cr+=ir*(5*ao),Cr+=pr*(5*oo),Cr+=Tr*(5*_i),Cr+=jr*(5*Mn),dr+=Cr>>>13,Cr&=8191,Mr=dr,Mr+=wr*Mn,Mr+=kr*Wr,Mr+=lr*Yr,Mr+=Kn*Kr,Mr+=Zn*(5*ro),dr=Mr>>>13,Mr&=8191,Mr+=tr*(5*so),Mr+=ir*(5*Xr),Mr+=pr*(5*ao),Mr+=Tr*(5*oo),Mr+=jr*(5*_i),dr+=Mr>>>13,Mr&=8191,Lr=dr,Lr+=wr*_i,Lr+=kr*Mn,Lr+=lr*Wr,Lr+=Kn*Yr,Lr+=Zn*Kr,dr=Lr>>>13,Lr&=8191,Lr+=tr*(5*ro),Lr+=ir*(5*so),Lr+=pr*(5*Xr),Lr+=Tr*(5*ao),Lr+=jr*(5*oo),dr+=Lr>>>13,Lr&=8191,Or=dr,Or+=wr*oo,Or+=kr*_i,Or+=lr*Mn,Or+=Kn*Wr,Or+=Zn*Yr,dr=Or>>>13,Or&=8191,Or+=tr*Kr,Or+=ir*(5*ro),Or+=pr*(5*so),Or+=Tr*(5*Xr),Or+=jr*(5*ao),dr+=Or>>>13,Or&=8191,Br=dr,Br+=wr*ao,Br+=kr*oo,Br+=lr*_i,Br+=Kn*Mn,Br+=Zn*Wr,dr=Br>>>13,Br&=8191,Br+=tr*Yr,Br+=ir*Kr,Br+=pr*(5*ro),Br+=Tr*(5*so),Br+=jr*(5*Xr),dr+=Br>>>13,Br&=8191,Ar=dr,Ar+=wr*Xr,Ar+=kr*ao,Ar+=lr*oo,Ar+=Kn*_i,Ar+=Zn*Mn,dr=Ar>>>13,Ar&=8191,Ar+=tr*Wr,Ar+=ir*Yr,Ar+=pr*Kr,Ar+=Tr*(5*ro),Ar+=jr*(5*so),dr+=Ar>>>13,Ar&=8191,Ir=dr,Ir+=wr*so,Ir+=kr*Xr,Ir+=lr*ao,Ir+=Kn*oo,Ir+=Zn*_i,dr=Ir>>>13,Ir&=8191,Ir+=tr*Mn,Ir+=ir*Wr,Ir+=pr*Yr,Ir+=Tr*Kr,Ir+=jr*(5*ro),dr+=Ir>>>13,Ir&=8191,Sr=dr,Sr+=wr*ro,Sr+=kr*so,Sr+=lr*Xr,Sr+=Kn*ao,Sr+=Zn*oo,dr=Sr>>>13,Sr&=8191,Sr+=tr*_i,Sr+=ir*Mn,Sr+=pr*Wr,Sr+=Tr*Yr,Sr+=jr*Kr,dr+=Sr>>>13,Sr&=8191,dr=(dr<<2)+dr|0,dr=dr+rr|0,rr=dr&8191,dr=dr>>>13,$r+=dr,wr=rr,kr=$r,lr=Cr,Kn=Mr,Zn=Lr,tr=Or,ir=Br,pr=Ar,Tr=Ir,jr=Sr,rn+=16,un-=16;this.h[0]=wr,this.h[1]=kr,this.h[2]=lr,this.h[3]=Kn,this.h[4]=Zn,this.h[5]=tr,this.h[6]=ir,this.h[7]=pr,this.h[8]=Tr,this.h[9]=jr},Qt.prototype.finish=function(qt,rn){var un=new Uint16Array(10),jt,pn,kn,An;if(this.leftover){for(An=this.leftover,this.buffer[An++]=1;An<16;An++)this.buffer[An]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(jt=this.h[1]>>>13,this.h[1]&=8191,An=2;An<10;An++)this.h[An]+=jt,jt=this.h[An]>>>13,this.h[An]&=8191;for(this.h[0]+=jt*5,jt=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=jt,jt=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=jt,un[0]=this.h[0]+5,jt=un[0]>>>13,un[0]&=8191,An=1;An<10;An++)un[An]=this.h[An]+jt,jt=un[An]>>>13,un[An]&=8191;for(un[9]-=8192,pn=(jt^1)-1,An=0;An<10;An++)un[An]&=pn;for(pn=~pn,An=0;An<10;An++)this.h[An]=this.h[An]&pn|un[An];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,kn=this.h[0]+this.pad[0],this.h[0]=kn&65535,An=1;An<8;An++)kn=(this.h[An]+this.pad[An]|0)+(kn>>>16)|0,this.h[An]=kn&65535;qt[rn+0]=this.h[0]>>>0&255,qt[rn+1]=this.h[0]>>>8&255,qt[rn+2]=this.h[1]>>>0&255,qt[rn+3]=this.h[1]>>>8&255,qt[rn+4]=this.h[2]>>>0&255,qt[rn+5]=this.h[2]>>>8&255,qt[rn+6]=this.h[3]>>>0&255,qt[rn+7]=this.h[3]>>>8&255,qt[rn+8]=this.h[4]>>>0&255,qt[rn+9]=this.h[4]>>>8&255,qt[rn+10]=this.h[5]>>>0&255,qt[rn+11]=this.h[5]>>>8&255,qt[rn+12]=this.h[6]>>>0&255,qt[rn+13]=this.h[6]>>>8&255,qt[rn+14]=this.h[7]>>>0&255,qt[rn+15]=this.h[7]>>>8&255},Qt.prototype.update=function(qt,rn,un){var jt,pn;if(this.leftover){for(pn=16-this.leftover,pn>un&&(pn=un),jt=0;jt<pn;jt++)this.buffer[this.leftover+jt]=qt[rn+jt];if(un-=pn,rn+=pn,this.leftover+=pn,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(un>=16&&(pn=un-un%16,this.blocks(qt,rn,pn),rn+=pn,un-=pn),un){for(jt=0;jt<un;jt++)this.buffer[this.leftover+jt]=qt[rn+jt];this.leftover+=un}};function Mt(qt,rn,un,jt,pn,kn){var An=new Qt(kn);return An.update(un,jt,pn),An.finish(qt,rn),0}function wt(qt,rn,un,jt,pn,kn){var An=new Uint8Array(16);return Mt(An,0,un,jt,pn,kn),Rt(qt,rn,An,0)}function ft(qt,rn,un,jt,pn){var kn;if(un<32)return-1;for(hn(qt,0,rn,0,un,jt,pn),Mt(qt,16,qt,32,un-32,qt),kn=0;kn<16;kn++)qt[kn]=0;return 0}function ht(qt,rn,un,jt,pn){var kn,An=new Uint8Array(32);if(un<32||(fn(An,0,32,jt,pn),wt(rn,16,rn,32,un-32,An)!==0))return-1;for(hn(qt,0,rn,0,un,jt,pn),kn=0;kn<32;kn++)qt[kn]=0;return 0}function $t(qt,rn){var un;for(un=0;un<16;un++)qt[un]=rn[un]|0}function Tt(qt){var rn,un,jt=1;for(rn=0;rn<16;rn++)un=qt[rn]+jt+65535,jt=Math.floor(un/65536),qt[rn]=un-jt*65536;qt[0]+=jt-1+37*(jt-1)}function At(qt,rn,un){for(var jt,pn=~(un-1),kn=0;kn<16;kn++)jt=pn&(qt[kn]^rn[kn]),qt[kn]^=jt,rn[kn]^=jt}function kt(qt,rn){var un,jt,pn,kn=_e(),An=_e();for(un=0;un<16;un++)An[un]=rn[un];for(Tt(An),Tt(An),Tt(An),jt=0;jt<2;jt++){for(kn[0]=An[0]-65517,un=1;un<15;un++)kn[un]=An[un]-65535-(kn[un-1]>>16&1),kn[un-1]&=65535;kn[15]=An[15]-32767-(kn[14]>>16&1),pn=kn[15]>>16&1,kn[14]&=65535,At(An,kn,1-pn)}for(un=0;un<16;un++)qt[2*un]=An[un]&255,qt[2*un+1]=An[un]>>8}function Ct(qt,rn){var un=new Uint8Array(32),jt=new Uint8Array(32);return kt(un,qt),kt(jt,rn),xt(un,0,jt,0)}function It(qt){var rn=new Uint8Array(32);return kt(rn,qt),rn[0]&1}function bt(qt,rn){var un;for(un=0;un<16;un++)qt[un]=rn[2*un]+(rn[2*un+1]<<8);qt[15]&=32767}function Lt(qt,rn,un){for(var jt=0;jt<16;jt++)qt[jt]=rn[jt]+un[jt]}function sn(qt,rn,un){for(var jt=0;jt<16;jt++)qt[jt]=rn[jt]-un[jt]}function Ut(qt,rn,un){var jt,pn,kn=0,An=0,Ln=0,Gn=0,Jn=0,Yn=0,Rr=0,dr=0,rr=0,$r=0,Cr=0,Mr=0,Lr=0,Or=0,Br=0,Ar=0,Ir=0,Sr=0,wr=0,kr=0,lr=0,Kn=0,Zn=0,tr=0,ir=0,pr=0,Tr=0,jr=0,Kr=0,Yr=0,Wr=0,Mn=un[0],_i=un[1],oo=un[2],ao=un[3],Xr=un[4],so=un[5],ro=un[6],bo=un[7],co=un[8],mo=un[9],Eo=un[10],$o=un[11],Co=un[12],Po=un[13],Do=un[14],Lo=un[15];jt=rn[0],kn+=jt*Mn,An+=jt*_i,Ln+=jt*oo,Gn+=jt*ao,Jn+=jt*Xr,Yn+=jt*so,Rr+=jt*ro,dr+=jt*bo,rr+=jt*co,$r+=jt*mo,Cr+=jt*Eo,Mr+=jt*$o,Lr+=jt*Co,Or+=jt*Po,Br+=jt*Do,Ar+=jt*Lo,jt=rn[1],An+=jt*Mn,Ln+=jt*_i,Gn+=jt*oo,Jn+=jt*ao,Yn+=jt*Xr,Rr+=jt*so,dr+=jt*ro,rr+=jt*bo,$r+=jt*co,Cr+=jt*mo,Mr+=jt*Eo,Lr+=jt*$o,Or+=jt*Co,Br+=jt*Po,Ar+=jt*Do,Ir+=jt*Lo,jt=rn[2],Ln+=jt*Mn,Gn+=jt*_i,Jn+=jt*oo,Yn+=jt*ao,Rr+=jt*Xr,dr+=jt*so,rr+=jt*ro,$r+=jt*bo,Cr+=jt*co,Mr+=jt*mo,Lr+=jt*Eo,Or+=jt*$o,Br+=jt*Co,Ar+=jt*Po,Ir+=jt*Do,Sr+=jt*Lo,jt=rn[3],Gn+=jt*Mn,Jn+=jt*_i,Yn+=jt*oo,Rr+=jt*ao,dr+=jt*Xr,rr+=jt*so,$r+=jt*ro,Cr+=jt*bo,Mr+=jt*co,Lr+=jt*mo,Or+=jt*Eo,Br+=jt*$o,Ar+=jt*Co,Ir+=jt*Po,Sr+=jt*Do,wr+=jt*Lo,jt=rn[4],Jn+=jt*Mn,Yn+=jt*_i,Rr+=jt*oo,dr+=jt*ao,rr+=jt*Xr,$r+=jt*so,Cr+=jt*ro,Mr+=jt*bo,Lr+=jt*co,Or+=jt*mo,Br+=jt*Eo,Ar+=jt*$o,Ir+=jt*Co,Sr+=jt*Po,wr+=jt*Do,kr+=jt*Lo,jt=rn[5],Yn+=jt*Mn,Rr+=jt*_i,dr+=jt*oo,rr+=jt*ao,$r+=jt*Xr,Cr+=jt*so,Mr+=jt*ro,Lr+=jt*bo,Or+=jt*co,Br+=jt*mo,Ar+=jt*Eo,Ir+=jt*$o,Sr+=jt*Co,wr+=jt*Po,kr+=jt*Do,lr+=jt*Lo,jt=rn[6],Rr+=jt*Mn,dr+=jt*_i,rr+=jt*oo,$r+=jt*ao,Cr+=jt*Xr,Mr+=jt*so,Lr+=jt*ro,Or+=jt*bo,Br+=jt*co,Ar+=jt*mo,Ir+=jt*Eo,Sr+=jt*$o,wr+=jt*Co,kr+=jt*Po,lr+=jt*Do,Kn+=jt*Lo,jt=rn[7],dr+=jt*Mn,rr+=jt*_i,$r+=jt*oo,Cr+=jt*ao,Mr+=jt*Xr,Lr+=jt*so,Or+=jt*ro,Br+=jt*bo,Ar+=jt*co,Ir+=jt*mo,Sr+=jt*Eo,wr+=jt*$o,kr+=jt*Co,lr+=jt*Po,Kn+=jt*Do,Zn+=jt*Lo,jt=rn[8],rr+=jt*Mn,$r+=jt*_i,Cr+=jt*oo,Mr+=jt*ao,Lr+=jt*Xr,Or+=jt*so,Br+=jt*ro,Ar+=jt*bo,Ir+=jt*co,Sr+=jt*mo,wr+=jt*Eo,kr+=jt*$o,lr+=jt*Co,Kn+=jt*Po,Zn+=jt*Do,tr+=jt*Lo,jt=rn[9],$r+=jt*Mn,Cr+=jt*_i,Mr+=jt*oo,Lr+=jt*ao,Or+=jt*Xr,Br+=jt*so,Ar+=jt*ro,Ir+=jt*bo,Sr+=jt*co,wr+=jt*mo,kr+=jt*Eo,lr+=jt*$o,Kn+=jt*Co,Zn+=jt*Po,tr+=jt*Do,ir+=jt*Lo,jt=rn[10],Cr+=jt*Mn,Mr+=jt*_i,Lr+=jt*oo,Or+=jt*ao,Br+=jt*Xr,Ar+=jt*so,Ir+=jt*ro,Sr+=jt*bo,wr+=jt*co,kr+=jt*mo,lr+=jt*Eo,Kn+=jt*$o,Zn+=jt*Co,tr+=jt*Po,ir+=jt*Do,pr+=jt*Lo,jt=rn[11],Mr+=jt*Mn,Lr+=jt*_i,Or+=jt*oo,Br+=jt*ao,Ar+=jt*Xr,Ir+=jt*so,Sr+=jt*ro,wr+=jt*bo,kr+=jt*co,lr+=jt*mo,Kn+=jt*Eo,Zn+=jt*$o,tr+=jt*Co,ir+=jt*Po,pr+=jt*Do,Tr+=jt*Lo,jt=rn[12],Lr+=jt*Mn,Or+=jt*_i,Br+=jt*oo,Ar+=jt*ao,Ir+=jt*Xr,Sr+=jt*so,wr+=jt*ro,kr+=jt*bo,lr+=jt*co,Kn+=jt*mo,Zn+=jt*Eo,tr+=jt*$o,ir+=jt*Co,pr+=jt*Po,Tr+=jt*Do,jr+=jt*Lo,jt=rn[13],Or+=jt*Mn,Br+=jt*_i,Ar+=jt*oo,Ir+=jt*ao,Sr+=jt*Xr,wr+=jt*so,kr+=jt*ro,lr+=jt*bo,Kn+=jt*co,Zn+=jt*mo,tr+=jt*Eo,ir+=jt*$o,pr+=jt*Co,Tr+=jt*Po,jr+=jt*Do,Kr+=jt*Lo,jt=rn[14],Br+=jt*Mn,Ar+=jt*_i,Ir+=jt*oo,Sr+=jt*ao,wr+=jt*Xr,kr+=jt*so,lr+=jt*ro,Kn+=jt*bo,Zn+=jt*co,tr+=jt*mo,ir+=jt*Eo,pr+=jt*$o,Tr+=jt*Co,jr+=jt*Po,Kr+=jt*Do,Yr+=jt*Lo,jt=rn[15],Ar+=jt*Mn,Ir+=jt*_i,Sr+=jt*oo,wr+=jt*ao,kr+=jt*Xr,lr+=jt*so,Kn+=jt*ro,Zn+=jt*bo,tr+=jt*co,ir+=jt*mo,pr+=jt*Eo,Tr+=jt*$o,jr+=jt*Co,Kr+=jt*Po,Yr+=jt*Do,Wr+=jt*Lo,kn+=38*Ir,An+=38*Sr,Ln+=38*wr,Gn+=38*kr,Jn+=38*lr,Yn+=38*Kn,Rr+=38*Zn,dr+=38*tr,rr+=38*ir,$r+=38*pr,Cr+=38*Tr,Mr+=38*jr,Lr+=38*Kr,Or+=38*Yr,Br+=38*Wr,pn=1,jt=kn+pn+65535,pn=Math.floor(jt/65536),kn=jt-pn*65536,jt=An+pn+65535,pn=Math.floor(jt/65536),An=jt-pn*65536,jt=Ln+pn+65535,pn=Math.floor(jt/65536),Ln=jt-pn*65536,jt=Gn+pn+65535,pn=Math.floor(jt/65536),Gn=jt-pn*65536,jt=Jn+pn+65535,pn=Math.floor(jt/65536),Jn=jt-pn*65536,jt=Yn+pn+65535,pn=Math.floor(jt/65536),Yn=jt-pn*65536,jt=Rr+pn+65535,pn=Math.floor(jt/65536),Rr=jt-pn*65536,jt=dr+pn+65535,pn=Math.floor(jt/65536),dr=jt-pn*65536,jt=rr+pn+65535,pn=Math.floor(jt/65536),rr=jt-pn*65536,jt=$r+pn+65535,pn=Math.floor(jt/65536),$r=jt-pn*65536,jt=Cr+pn+65535,pn=Math.floor(jt/65536),Cr=jt-pn*65536,jt=Mr+pn+65535,pn=Math.floor(jt/65536),Mr=jt-pn*65536,jt=Lr+pn+65535,pn=Math.floor(jt/65536),Lr=jt-pn*65536,jt=Or+pn+65535,pn=Math.floor(jt/65536),Or=jt-pn*65536,jt=Br+pn+65535,pn=Math.floor(jt/65536),Br=jt-pn*65536,jt=Ar+pn+65535,pn=Math.floor(jt/65536),Ar=jt-pn*65536,kn+=pn-1+37*(pn-1),pn=1,jt=kn+pn+65535,pn=Math.floor(jt/65536),kn=jt-pn*65536,jt=An+pn+65535,pn=Math.floor(jt/65536),An=jt-pn*65536,jt=Ln+pn+65535,pn=Math.floor(jt/65536),Ln=jt-pn*65536,jt=Gn+pn+65535,pn=Math.floor(jt/65536),Gn=jt-pn*65536,jt=Jn+pn+65535,pn=Math.floor(jt/65536),Jn=jt-pn*65536,jt=Yn+pn+65535,pn=Math.floor(jt/65536),Yn=jt-pn*65536,jt=Rr+pn+65535,pn=Math.floor(jt/65536),Rr=jt-pn*65536,jt=dr+pn+65535,pn=Math.floor(jt/65536),dr=jt-pn*65536,jt=rr+pn+65535,pn=Math.floor(jt/65536),rr=jt-pn*65536,jt=$r+pn+65535,pn=Math.floor(jt/65536),$r=jt-pn*65536,jt=Cr+pn+65535,pn=Math.floor(jt/65536),Cr=jt-pn*65536,jt=Mr+pn+65535,pn=Math.floor(jt/65536),Mr=jt-pn*65536,jt=Lr+pn+65535,pn=Math.floor(jt/65536),Lr=jt-pn*65536,jt=Or+pn+65535,pn=Math.floor(jt/65536),Or=jt-pn*65536,jt=Br+pn+65535,pn=Math.floor(jt/65536),Br=jt-pn*65536,jt=Ar+pn+65535,pn=Math.floor(jt/65536),Ar=jt-pn*65536,kn+=pn-1+37*(pn-1),qt[0]=kn,qt[1]=An,qt[2]=Ln,qt[3]=Gn,qt[4]=Jn,qt[5]=Yn,qt[6]=Rr,qt[7]=dr,qt[8]=rr,qt[9]=$r,qt[10]=Cr,qt[11]=Mr,qt[12]=Lr,qt[13]=Or,qt[14]=Br,qt[15]=Ar}function Zt(qt,rn){Ut(qt,rn,rn)}function Gt(qt,rn){var un=_e(),jt;for(jt=0;jt<16;jt++)un[jt]=rn[jt];for(jt=253;jt>=0;jt--)Zt(un,un),jt!==2&&jt!==4&&Ut(un,un,rn);for(jt=0;jt<16;jt++)qt[jt]=un[jt]}function Yt(qt,rn){var un=_e(),jt;for(jt=0;jt<16;jt++)un[jt]=rn[jt];for(jt=250;jt>=0;jt--)Zt(un,un),jt!==1&&Ut(un,un,rn);for(jt=0;jt<16;jt++)qt[jt]=un[jt]}function cn(qt,rn,un){var jt=new Uint8Array(32),pn=new Float64Array(80),kn,An,Ln=_e(),Gn=_e(),Jn=_e(),Yn=_e(),Rr=_e(),dr=_e();for(An=0;An<31;An++)jt[An]=rn[An];for(jt[31]=rn[31]&127|64,jt[0]&=248,bt(pn,un),An=0;An<16;An++)Gn[An]=pn[An],Yn[An]=Ln[An]=Jn[An]=0;for(Ln[0]=Yn[0]=1,An=254;An>=0;--An)kn=jt[An>>>3]>>>(An&7)&1,At(Ln,Gn,kn),At(Jn,Yn,kn),Lt(Rr,Ln,Jn),sn(Ln,Ln,Jn),Lt(Jn,Gn,Yn),sn(Gn,Gn,Yn),Zt(Yn,Rr),Zt(dr,Ln),Ut(Ln,Jn,Ln),Ut(Jn,Gn,Rr),Lt(Rr,Ln,Jn),sn(Ln,Ln,Jn),Zt(Gn,Ln),sn(Jn,Yn,dr),Ut(Ln,Jn,ot),Lt(Ln,Ln,Yn),Ut(Jn,Jn,Ln),Ut(Ln,Yn,dr),Ut(Yn,Gn,pn),Zt(Gn,Rr),At(Ln,Gn,kn),At(Jn,Yn,kn);for(An=0;An<16;An++)pn[An+16]=Ln[An],pn[An+32]=Jn[An],pn[An+48]=Gn[An],pn[An+64]=Yn[An];var rr=pn.subarray(32),$r=pn.subarray(16);return Gt(rr,rr),Ut($r,$r,rr),kt(qt,$r),0}function En(qt,rn){return cn(qt,rn,nt)}function Ht(qt,rn){return et(rn,32),En(qt,rn)}function Ot(qt,rn,un){var jt=new Uint8Array(32);return cn(jt,un,rn),zt(qt,tt,jt,Nt)}var Kt=ft,Xt=ht;function an(qt,rn,un,jt,pn,kn){var An=new Uint8Array(32);return Ot(An,pn,kn),Kt(qt,rn,un,jt,An)}function _n(qt,rn,un,jt,pn,kn){var An=new Uint8Array(32);return Ot(An,pn,kn),Xt(qt,rn,un,jt,An)}var yn=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function dn(qt,rn,un,jt){for(var pn=new Int32Array(16),kn=new Int32Array(16),An,Ln,Gn,Jn,Yn,Rr,dr,rr,$r,Cr,Mr,Lr,Or,Br,Ar,Ir,Sr,wr,kr,lr,Kn,Zn,tr,ir,pr,Tr,jr=qt[0],Kr=qt[1],Yr=qt[2],Wr=qt[3],Mn=qt[4],_i=qt[5],oo=qt[6],ao=qt[7],Xr=rn[0],so=rn[1],ro=rn[2],bo=rn[3],co=rn[4],mo=rn[5],Eo=rn[6],$o=rn[7],Co=0;jt>=128;){for(kr=0;kr<16;kr++)lr=8*kr+Co,pn[kr]=un[lr+0]<<24|un[lr+1]<<16|un[lr+2]<<8|un[lr+3],kn[kr]=un[lr+4]<<24|un[lr+5]<<16|un[lr+6]<<8|un[lr+7];for(kr=0;kr<80;kr++)if(An=jr,Ln=Kr,Gn=Yr,Jn=Wr,Yn=Mn,Rr=_i,dr=oo,rr=ao,$r=Xr,Cr=so,Mr=ro,Lr=bo,Or=co,Br=mo,Ar=Eo,Ir=$o,Kn=ao,Zn=$o,tr=Zn&65535,ir=Zn>>>16,pr=Kn&65535,Tr=Kn>>>16,Kn=(Mn>>>14|co<<18)^(Mn>>>18|co<<14)^(co>>>9|Mn<<23),Zn=(co>>>14|Mn<<18)^(co>>>18|Mn<<14)^(Mn>>>9|co<<23),tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,Kn=Mn&_i^~Mn&oo,Zn=co&mo^~co&Eo,tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,Kn=yn[kr*2],Zn=yn[kr*2+1],tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,Kn=pn[kr%16],Zn=kn[kr%16],tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,ir+=tr>>>16,pr+=ir>>>16,Tr+=pr>>>16,Sr=pr&65535|Tr<<16,wr=tr&65535|ir<<16,Kn=Sr,Zn=wr,tr=Zn&65535,ir=Zn>>>16,pr=Kn&65535,Tr=Kn>>>16,Kn=(jr>>>28|Xr<<4)^(Xr>>>2|jr<<30)^(Xr>>>7|jr<<25),Zn=(Xr>>>28|jr<<4)^(jr>>>2|Xr<<30)^(jr>>>7|Xr<<25),tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,Kn=jr&Kr^jr&Yr^Kr&Yr,Zn=Xr&so^Xr&ro^so&ro,tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,ir+=tr>>>16,pr+=ir>>>16,Tr+=pr>>>16,rr=pr&65535|Tr<<16,Ir=tr&65535|ir<<16,Kn=Jn,Zn=Lr,tr=Zn&65535,ir=Zn>>>16,pr=Kn&65535,Tr=Kn>>>16,Kn=Sr,Zn=wr,tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,ir+=tr>>>16,pr+=ir>>>16,Tr+=pr>>>16,Jn=pr&65535|Tr<<16,Lr=tr&65535|ir<<16,Kr=An,Yr=Ln,Wr=Gn,Mn=Jn,_i=Yn,oo=Rr,ao=dr,jr=rr,so=$r,ro=Cr,bo=Mr,co=Lr,mo=Or,Eo=Br,$o=Ar,Xr=Ir,kr%16===15)for(lr=0;lr<16;lr++)Kn=pn[lr],Zn=kn[lr],tr=Zn&65535,ir=Zn>>>16,pr=Kn&65535,Tr=Kn>>>16,Kn=pn[(lr+9)%16],Zn=kn[(lr+9)%16],tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,Sr=pn[(lr+1)%16],wr=kn[(lr+1)%16],Kn=(Sr>>>1|wr<<31)^(Sr>>>8|wr<<24)^Sr>>>7,Zn=(wr>>>1|Sr<<31)^(wr>>>8|Sr<<24)^(wr>>>7|Sr<<25),tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,Sr=pn[(lr+14)%16],wr=kn[(lr+14)%16],Kn=(Sr>>>19|wr<<13)^(wr>>>29|Sr<<3)^Sr>>>6,Zn=(wr>>>19|Sr<<13)^(Sr>>>29|wr<<3)^(wr>>>6|Sr<<26),tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,ir+=tr>>>16,pr+=ir>>>16,Tr+=pr>>>16,pn[lr]=pr&65535|Tr<<16,kn[lr]=tr&65535|ir<<16;Kn=jr,Zn=Xr,tr=Zn&65535,ir=Zn>>>16,pr=Kn&65535,Tr=Kn>>>16,Kn=qt[0],Zn=rn[0],tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,ir+=tr>>>16,pr+=ir>>>16,Tr+=pr>>>16,qt[0]=jr=pr&65535|Tr<<16,rn[0]=Xr=tr&65535|ir<<16,Kn=Kr,Zn=so,tr=Zn&65535,ir=Zn>>>16,pr=Kn&65535,Tr=Kn>>>16,Kn=qt[1],Zn=rn[1],tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,ir+=tr>>>16,pr+=ir>>>16,Tr+=pr>>>16,qt[1]=Kr=pr&65535|Tr<<16,rn[1]=so=tr&65535|ir<<16,Kn=Yr,Zn=ro,tr=Zn&65535,ir=Zn>>>16,pr=Kn&65535,Tr=Kn>>>16,Kn=qt[2],Zn=rn[2],tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,ir+=tr>>>16,pr+=ir>>>16,Tr+=pr>>>16,qt[2]=Yr=pr&65535|Tr<<16,rn[2]=ro=tr&65535|ir<<16,Kn=Wr,Zn=bo,tr=Zn&65535,ir=Zn>>>16,pr=Kn&65535,Tr=Kn>>>16,Kn=qt[3],Zn=rn[3],tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,ir+=tr>>>16,pr+=ir>>>16,Tr+=pr>>>16,qt[3]=Wr=pr&65535|Tr<<16,rn[3]=bo=tr&65535|ir<<16,Kn=Mn,Zn=co,tr=Zn&65535,ir=Zn>>>16,pr=Kn&65535,Tr=Kn>>>16,Kn=qt[4],Zn=rn[4],tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,ir+=tr>>>16,pr+=ir>>>16,Tr+=pr>>>16,qt[4]=Mn=pr&65535|Tr<<16,rn[4]=co=tr&65535|ir<<16,Kn=_i,Zn=mo,tr=Zn&65535,ir=Zn>>>16,pr=Kn&65535,Tr=Kn>>>16,Kn=qt[5],Zn=rn[5],tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,ir+=tr>>>16,pr+=ir>>>16,Tr+=pr>>>16,qt[5]=_i=pr&65535|Tr<<16,rn[5]=mo=tr&65535|ir<<16,Kn=oo,Zn=Eo,tr=Zn&65535,ir=Zn>>>16,pr=Kn&65535,Tr=Kn>>>16,Kn=qt[6],Zn=rn[6],tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,ir+=tr>>>16,pr+=ir>>>16,Tr+=pr>>>16,qt[6]=oo=pr&65535|Tr<<16,rn[6]=Eo=tr&65535|ir<<16,Kn=ao,Zn=$o,tr=Zn&65535,ir=Zn>>>16,pr=Kn&65535,Tr=Kn>>>16,Kn=qt[7],Zn=rn[7],tr+=Zn&65535,ir+=Zn>>>16,pr+=Kn&65535,Tr+=Kn>>>16,ir+=tr>>>16,pr+=ir>>>16,Tr+=pr>>>16,qt[7]=ao=pr&65535|Tr<<16,rn[7]=$o=tr&65535|ir<<16,Co+=128,jt-=128}return jt}function $n(qt,rn,un){var jt=new Int32Array(8),pn=new Int32Array(8),kn=new Uint8Array(256),An,Ln=un;for(jt[0]=1779033703,jt[1]=3144134277,jt[2]=1013904242,jt[3]=2773480762,jt[4]=1359893119,jt[5]=2600822924,jt[6]=528734635,jt[7]=1541459225,pn[0]=4089235720,pn[1]=2227873595,pn[2]=4271175723,pn[3]=1595750129,pn[4]=2917565137,pn[5]=725511199,pn[6]=4215389547,pn[7]=327033209,dn(jt,pn,rn,un),un%=128,An=0;An<un;An++)kn[An]=rn[Ln-un+An];for(kn[un]=128,un=256-128*(un<112?1:0),kn[un-9]=0,vt(kn,un-8,Ln/536870912|0,Ln<<3),dn(jt,pn,kn,un),An=0;An<8;An++)vt(qt,8*An,jt[An],pn[An]);return 0}function wn(qt,rn){var un=_e(),jt=_e(),pn=_e(),kn=_e(),An=_e(),Ln=_e(),Gn=_e(),Jn=_e(),Yn=_e();sn(un,qt[1],qt[0]),sn(Yn,rn[1],rn[0]),Ut(un,un,Yn),Lt(jt,qt[0],qt[1]),Lt(Yn,rn[0],rn[1]),Ut(jt,jt,Yn),Ut(pn,qt[3],rn[3]),Ut(pn,pn,ut),Ut(kn,qt[2],rn[2]),Lt(kn,kn,kn),sn(An,jt,un),sn(Ln,kn,pn),Lt(Gn,kn,pn),Lt(Jn,jt,un),Ut(qt[0],An,Ln),Ut(qt[1],Jn,Gn),Ut(qt[2],Gn,Ln),Ut(qt[3],An,Jn)}function Sn(qt,rn,un){var jt;for(jt=0;jt<4;jt++)At(qt[jt],rn[jt],un)}function qn(qt,rn){var un=_e(),jt=_e(),pn=_e();Gt(pn,rn[2]),Ut(un,rn[0],pn),Ut(jt,rn[1],pn),kt(qt,jt),qt[31]^=It(un)<<7}function Qn(qt,rn,un){var jt,pn;for($t(qt[0],rt),$t(qt[1],it),$t(qt[2],it),$t(qt[3],rt),pn=255;pn>=0;--pn)jt=un[pn/8|0]>>(pn&7)&1,Sn(qt,rn,jt),wn(rn,qt),wn(qt,qt),Sn(qt,rn,jt)}function jn(qt,rn){var un=[_e(),_e(),_e(),_e()];$t(un[0],dt),$t(un[1],pt),$t(un[2],it),Ut(un[3],dt,pt),Qn(qt,un,rn)}function zn(qt,rn,un){var jt=new Uint8Array(64),pn=[_e(),_e(),_e(),_e()],kn;for(un||et(rn,32),$n(jt,rn,32),jt[0]&=248,jt[31]&=127,jt[31]|=64,jn(pn,jt),qn(qt,pn),kn=0;kn<32;kn++)rn[kn+32]=qt[kn];return 0}var vn=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Rn(qt,rn){var un,jt,pn,kn;for(jt=63;jt>=32;--jt){for(un=0,pn=jt-32,kn=jt-12;pn<kn;++pn)rn[pn]+=un-16*rn[jt]*vn[pn-(jt-32)],un=Math.floor((rn[pn]+128)/256),rn[pn]-=un*256;rn[pn]+=un,rn[jt]=0}for(un=0,pn=0;pn<32;pn++)rn[pn]+=un-(rn[31]>>4)*vn[pn],un=rn[pn]>>8,rn[pn]&=255;for(pn=0;pn<32;pn++)rn[pn]-=un*vn[pn];for(jt=0;jt<32;jt++)rn[jt+1]+=rn[jt]>>8,qt[jt]=rn[jt]&255}function Fn(qt){var rn=new Float64Array(64),un;for(un=0;un<64;un++)rn[un]=qt[un];for(un=0;un<64;un++)qt[un]=0;Rn(qt,rn)}function Dn(qt,rn,un,jt){var pn=new Uint8Array(64),kn=new Uint8Array(64),An=new Uint8Array(64),Ln,Gn,Jn=new Float64Array(64),Yn=[_e(),_e(),_e(),_e()];$n(pn,jt,32),pn[0]&=248,pn[31]&=127,pn[31]|=64;var Rr=un+64;for(Ln=0;Ln<un;Ln++)qt[64+Ln]=rn[Ln];for(Ln=0;Ln<32;Ln++)qt[32+Ln]=pn[32+Ln];for($n(An,qt.subarray(32),un+32),Fn(An),jn(Yn,An),qn(qt,Yn),Ln=32;Ln<64;Ln++)qt[Ln]=jt[Ln];for($n(kn,qt,un+64),Fn(kn),Ln=0;Ln<64;Ln++)Jn[Ln]=0;for(Ln=0;Ln<32;Ln++)Jn[Ln]=An[Ln];for(Ln=0;Ln<32;Ln++)for(Gn=0;Gn<32;Gn++)Jn[Ln+Gn]+=kn[Ln]*pn[Gn];return Rn(qt.subarray(32),Jn),Rr}function ln(qt,rn){var un=_e(),jt=_e(),pn=_e(),kn=_e(),An=_e(),Ln=_e(),Gn=_e();return $t(qt[2],it),bt(qt[1],rn),Zt(pn,qt[1]),Ut(kn,pn,ct),sn(pn,pn,qt[2]),Lt(kn,qt[2],kn),Zt(An,kn),Zt(Ln,An),Ut(Gn,Ln,An),Ut(un,Gn,pn),Ut(un,un,kn),Yt(un,un),Ut(un,un,pn),Ut(un,un,kn),Ut(un,un,kn),Ut(qt[0],un,kn),Zt(jt,qt[0]),Ut(jt,jt,kn),Ct(jt,pn)&&Ut(qt[0],qt[0],mt),Zt(jt,qt[0]),Ut(jt,jt,kn),Ct(jt,pn)?-1:(It(qt[0])===rn[31]>>7&&sn(qt[0],rt,qt[0]),Ut(qt[3],qt[0],qt[1]),0)}function Jt(qt,rn,un,jt){var pn,kn=new Uint8Array(32),An=new Uint8Array(64),Ln=[_e(),_e(),_e(),_e()],Gn=[_e(),_e(),_e(),_e()];if(un<64||ln(Gn,jt))return-1;for(pn=0;pn<un;pn++)qt[pn]=rn[pn];for(pn=0;pn<32;pn++)qt[pn+32]=jt[pn];if($n(An,qt,un),Fn(An),Qn(Ln,Gn,An),jn(Gn,rn.subarray(32)),wn(Ln,Gn),qn(kn,Ln),un-=64,xt(rn,0,kn,0)){for(pn=0;pn<un;pn++)qt[pn]=0;return-1}for(pn=0;pn<un;pn++)qt[pn]=rn[pn+64];return un}var Wt=32,mn=24,In=32,Cn=16,On=32,Vn=32,Nn=32,Un=32,ar=32,er=mn,or=In,Dr=Cn,_r=64,ur=32,Fr=64,xr=32,yr=64;j.lowlevel={crypto_core_hsalsa20:zt,crypto_stream_xor:hn,crypto_stream:fn,crypto_stream_salsa20_xor:Vt,crypto_stream_salsa20:nn,crypto_onetimeauth:Mt,crypto_onetimeauth_verify:wt,crypto_verify_16:Rt,crypto_verify_32:xt,crypto_secretbox:ft,crypto_secretbox_open:ht,crypto_scalarmult:cn,crypto_scalarmult_base:En,crypto_box_beforenm:Ot,crypto_box_afternm:Kt,crypto_box:an,crypto_box_open:_n,crypto_box_keypair:Ht,crypto_hash:$n,crypto_sign:Dn,crypto_sign_keypair:zn,crypto_sign_open:Jt,crypto_secretbox_KEYBYTES:Wt,crypto_secretbox_NONCEBYTES:mn,crypto_secretbox_ZEROBYTES:In,crypto_secretbox_BOXZEROBYTES:Cn,crypto_scalarmult_BYTES:On,crypto_scalarmult_SCALARBYTES:Vn,crypto_box_PUBLICKEYBYTES:Nn,crypto_box_SECRETKEYBYTES:Un,crypto_box_BEFORENMBYTES:ar,crypto_box_NONCEBYTES:er,crypto_box_ZEROBYTES:or,crypto_box_BOXZEROBYTES:Dr,crypto_sign_BYTES:_r,crypto_sign_PUBLICKEYBYTES:ur,crypto_sign_SECRETKEYBYTES:Fr,crypto_sign_SEEDBYTES:xr,crypto_hash_BYTES:yr,gf:_e,D:ct,L:vn,pack25519:kt,unpack25519:bt,M:Ut,A:Lt,S:Zt,Z:sn,pow2523:Yt,add:wn,set25519:$t,modL:Rn,scalarmult:Qn,scalarbase:jn};function Hr(qt,rn){if(qt.length!==Wt)throw new Error("bad key size");if(rn.length!==mn)throw new Error("bad nonce size")}function br(qt,rn){if(qt.length!==Nn)throw new Error("bad public key size");if(rn.length!==Un)throw new Error("bad secret key size")}function cr(){for(var qt=0;qt<arguments.length;qt++)if(!(arguments[qt]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Pn(qt){for(var rn=0;rn<qt.length;rn++)qt[rn]=0}j.randomBytes=function(qt){var rn=new Uint8Array(qt);return et(rn,qt),rn},j.secretbox=function(qt,rn,un){cr(qt,rn,un),Hr(un,rn);for(var jt=new Uint8Array(In+qt.length),pn=new Uint8Array(jt.length),kn=0;kn<qt.length;kn++)jt[kn+In]=qt[kn];return ft(pn,jt,jt.length,rn,un),pn.subarray(Cn)},j.secretbox.open=function(qt,rn,un){cr(qt,rn,un),Hr(un,rn);for(var jt=new Uint8Array(Cn+qt.length),pn=new Uint8Array(jt.length),kn=0;kn<qt.length;kn++)jt[kn+Cn]=qt[kn];return jt.length<32||ht(pn,jt,jt.length,rn,un)!==0?null:pn.subarray(In)},j.secretbox.keyLength=Wt,j.secretbox.nonceLength=mn,j.secretbox.overheadLength=Cn,j.scalarMult=function(qt,rn){if(cr(qt,rn),qt.length!==Vn)throw new Error("bad n size");if(rn.length!==On)throw new Error("bad p size");var un=new Uint8Array(On);return cn(un,qt,rn),un},j.scalarMult.base=function(qt){if(cr(qt),qt.length!==Vn)throw new Error("bad n size");var rn=new Uint8Array(On);return En(rn,qt),rn},j.scalarMult.scalarLength=Vn,j.scalarMult.groupElementLength=On,j.box=function(qt,rn,un,jt){var pn=j.box.before(un,jt);return j.secretbox(qt,rn,pn)},j.box.before=function(qt,rn){cr(qt,rn),br(qt,rn);var un=new Uint8Array(ar);return Ot(un,qt,rn),un},j.box.after=j.secretbox,j.box.open=function(qt,rn,un,jt){var pn=j.box.before(un,jt);return j.secretbox.open(qt,rn,pn)},j.box.open.after=j.secretbox.open,j.box.keyPair=function(){var qt=new Uint8Array(Nn),rn=new Uint8Array(Un);return Ht(qt,rn),{publicKey:qt,secretKey:rn}},j.box.keyPair.fromSecretKey=function(qt){if(cr(qt),qt.length!==Un)throw new Error("bad secret key size");var rn=new Uint8Array(Nn);return En(rn,qt),{publicKey:rn,secretKey:new Uint8Array(qt)}},j.box.publicKeyLength=Nn,j.box.secretKeyLength=Un,j.box.sharedKeyLength=ar,j.box.nonceLength=er,j.box.overheadLength=j.secretbox.overheadLength,j.sign=function(qt,rn){if(cr(qt,rn),rn.length!==Fr)throw new Error("bad secret key size");var un=new Uint8Array(_r+qt.length);return Dn(un,qt,qt.length,rn),un},j.sign.open=function(qt,rn){if(cr(qt,rn),rn.length!==ur)throw new Error("bad public key size");var un=new Uint8Array(qt.length),jt=Jt(un,qt,qt.length,rn);if(jt<0)return null;for(var pn=new Uint8Array(jt),kn=0;kn<pn.length;kn++)pn[kn]=un[kn];return pn},j.sign.detached=function(qt,rn){for(var un=j.sign(qt,rn),jt=new Uint8Array(_r),pn=0;pn<jt.length;pn++)jt[pn]=un[pn];return jt},j.sign.detached.verify=function(qt,rn,un){if(cr(qt,rn,un),rn.length!==_r)throw new Error("bad signature size");if(un.length!==ur)throw new Error("bad public key size");var jt=new Uint8Array(_r+qt.length),pn=new Uint8Array(_r+qt.length),kn;for(kn=0;kn<_r;kn++)jt[kn]=rn[kn];for(kn=0;kn<qt.length;kn++)jt[kn+_r]=qt[kn];return Jt(pn,jt,jt.length,un)>=0},j.sign.keyPair=function(){var qt=new Uint8Array(ur),rn=new Uint8Array(Fr);return zn(qt,rn),{publicKey:qt,secretKey:rn}},j.sign.keyPair.fromSecretKey=function(qt){if(cr(qt),qt.length!==Fr)throw new Error("bad secret key size");for(var rn=new Uint8Array(ur),un=0;un<rn.length;un++)rn[un]=qt[32+un];return{publicKey:rn,secretKey:new Uint8Array(qt)}},j.sign.keyPair.fromSeed=function(qt){if(cr(qt),qt.length!==xr)throw new Error("bad seed size");for(var rn=new Uint8Array(ur),un=new Uint8Array(Fr),jt=0;jt<32;jt++)un[jt]=qt[jt];return zn(rn,un,!0),{publicKey:rn,secretKey:un}},j.sign.publicKeyLength=ur,j.sign.secretKeyLength=Fr,j.sign.seedLength=xr,j.sign.signatureLength=_r,j.hash=function(qt){cr(qt);var rn=new Uint8Array(yr);return $n(rn,qt,qt.length),rn},j.hash.hashLength=yr,j.verify=function(qt,rn){return cr(qt,rn),qt.length===0||rn.length===0||qt.length!==rn.length?!1:Et(qt,0,rn,0,qt.length)===0},j.setPRNG=function(qt){et=qt},function(){var qt=typeof self<"u"?self.crypto||self.msCrypto:null;if(qt&&qt.getRandomValues){var rn=65536;j.setPRNG(function(un,jt){var pn,kn=new Uint8Array(jt);for(pn=0;pn<jt;pn+=rn)qt.getRandomValues(kn.subarray(pn,pn+Math.min(jt-pn,rn)));for(pn=0;pn<jt;pn++)un[pn]=kn[pn];Pn(kn)})}else typeof commonjsRequire<"u"&&(qt=requireCryptoBrowserify(),qt&&qt.randomBytes&&j.setPRNG(function(un,jt){var pn,kn=qt.randomBytes(jt);for(pn=0;pn<jt;pn++)un[pn]=kn[pn];Pn(kn)}))}()})(a.exports?a.exports:self.nacl=self.nacl||{})})(naclFast);var naclFastExports=naclFast.exports;const tweetnacl=getDefaultExportFromCjs$1(naclFastExports),overheadLength=tweetnacl.box.publicKeyLength+tweetnacl.box.overheadLength,ERROR_MSG_INPUT="Input must be an string, Buffer or Uint8Array";function normalizeInput(a){let j;if(a instanceof Uint8Array)j=a;else if(typeof a=="string")j=new TextEncoder().encode(a);else throw new Error(ERROR_MSG_INPUT);return j}function toHex(a){return Array.prototype.map.call(a,function(j){return(j<16?"0":"")+j.toString(16)}).join("")}function uint32ToHex(a){return(4294967296+a).toString(16).substring(1)}function debugPrint(a,j,_e){let et=`
430
430
  `+a+" = ";for(let tt=0;tt<j.length;tt+=2){if(_e===32)et+=uint32ToHex(j[tt]).toUpperCase(),et+=" ",et+=uint32ToHex(j[tt+1]).toUpperCase();else if(_e===64)et+=uint32ToHex(j[tt+1]).toUpperCase(),et+=uint32ToHex(j[tt]).toUpperCase();else throw new Error("Invalid size "+_e);tt%6===4?et+=`
431
- `+new Array(a.length+4).join(" "):tt<j.length-2&&(et+=" ")}console.log(et)}function testSpeed(a,j,_e){let et=new Date().getTime();const tt=new Uint8Array(j);for(let rt=0;rt<j;rt++)tt[rt]=rt%256;const nt=new Date().getTime();console.log("Generated random input in "+(nt-et)+"ms"),et=nt;for(let rt=0;rt<_e;rt++){const it=a(tt),ot=new Date().getTime(),ct=ot-et;et=ot,console.log("Hashed in "+ct+"ms: "+it.substring(0,20)+"..."),console.log(Math.round(j/(1<<20)/(ct/1e3)*100)/100+" MB PER SECOND")}}var util$6={normalizeInput,toHex,debugPrint,testSpeed};const util$5=util$6;function ADD64AA(a,j,_e){const et=a[j]+a[_e];let tt=a[j+1]+a[_e+1];et>=4294967296&&tt++,a[j]=et,a[j+1]=tt}function ADD64AC(a,j,_e,et){let tt=a[j]+_e;_e<0&&(tt+=4294967296);let nt=a[j+1]+et;tt>=4294967296&&nt++,a[j]=tt,a[j+1]=nt}function B2B_GET32(a,j){return a[j]^a[j+1]<<8^a[j+2]<<16^a[j+3]<<24}function B2B_G(a,j,_e,et,tt,nt){const rt=m[tt],it=m[tt+1],ot=m[nt],ct=m[nt+1];ADD64AA(v,a,j),ADD64AC(v,a,rt,it);let ut=v[et]^v[a],dt=v[et+1]^v[a+1];v[et]=dt,v[et+1]=ut,ADD64AA(v,_e,et),ut=v[j]^v[_e],dt=v[j+1]^v[_e+1],v[j]=ut>>>24^dt<<8,v[j+1]=dt>>>24^ut<<8,ADD64AA(v,a,j),ADD64AC(v,a,ot,ct),ut=v[et]^v[a],dt=v[et+1]^v[a+1],v[et]=ut>>>16^dt<<16,v[et+1]=dt>>>16^ut<<16,ADD64AA(v,_e,et),ut=v[j]^v[_e],dt=v[j+1]^v[_e+1],v[j]=dt>>>31^ut<<1,v[j+1]=ut>>>31^dt<<1}const BLAKE2B_IV32=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),SIGMA8=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],SIGMA82=new Uint8Array(SIGMA8.map(function(a){return a*2})),v=new Uint32Array(32),m=new Uint32Array(32);function blake2bCompress(a,j){let _e=0;for(_e=0;_e<16;_e++)v[_e]=a.h[_e],v[_e+16]=BLAKE2B_IV32[_e];for(v[24]=v[24]^a.t,v[25]=v[25]^a.t/4294967296,j&&(v[28]=~v[28],v[29]=~v[29]),_e=0;_e<32;_e++)m[_e]=B2B_GET32(a.b,4*_e);for(_e=0;_e<12;_e++)B2B_G(0,8,16,24,SIGMA82[_e*16+0],SIGMA82[_e*16+1]),B2B_G(2,10,18,26,SIGMA82[_e*16+2],SIGMA82[_e*16+3]),B2B_G(4,12,20,28,SIGMA82[_e*16+4],SIGMA82[_e*16+5]),B2B_G(6,14,22,30,SIGMA82[_e*16+6],SIGMA82[_e*16+7]),B2B_G(0,10,20,30,SIGMA82[_e*16+8],SIGMA82[_e*16+9]),B2B_G(2,12,22,24,SIGMA82[_e*16+10],SIGMA82[_e*16+11]),B2B_G(4,14,16,26,SIGMA82[_e*16+12],SIGMA82[_e*16+13]),B2B_G(6,8,18,28,SIGMA82[_e*16+14],SIGMA82[_e*16+15]);for(_e=0;_e<16;_e++)a.h[_e]=a.h[_e]^v[_e]^v[_e+16]}const parameterBlock=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function blake2bInit(a,j,_e,et){if(a===0||a>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(j&&j.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(_e&&_e.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(et&&et.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const tt={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:a};parameterBlock.fill(0),parameterBlock[0]=a,j&&(parameterBlock[1]=j.length),parameterBlock[2]=1,parameterBlock[3]=1,_e&&parameterBlock.set(_e,32),et&&parameterBlock.set(et,48);for(let nt=0;nt<16;nt++)tt.h[nt]=BLAKE2B_IV32[nt]^B2B_GET32(parameterBlock,nt*4);return j&&(blake2bUpdate(tt,j),tt.c=128),tt}function blake2bUpdate(a,j){for(let _e=0;_e<j.length;_e++)a.c===128&&(a.t+=a.c,blake2bCompress(a,!1),a.c=0),a.b[a.c++]=j[_e]}function blake2bFinal(a){for(a.t+=a.c;a.c<128;)a.b[a.c++]=0;blake2bCompress(a,!0);const j=new Uint8Array(a.outlen);for(let _e=0;_e<a.outlen;_e++)j[_e]=a.h[_e>>2]>>8*(_e&3);return j}function blake2b(a,j,_e,et,tt){_e=_e||64,a=util$5.normalizeInput(a),et&&(et=util$5.normalizeInput(et)),tt&&(tt=util$5.normalizeInput(tt));const nt=blake2bInit(_e,j,et,tt);return blake2bUpdate(nt,a),blake2bFinal(nt)}function blake2bHex(a,j,_e,et,tt){const nt=blake2b(a,j,_e,et,tt);return util$5.toHex(nt)}var blake2b_1={blake2b,blake2bHex,blake2bInit,blake2bUpdate,blake2bFinal};const blake=getDefaultExportFromCjs$1(blake2b_1);function nonce(a,j){var _e=blake.blake2bInit(tweetnacl.box.nonceLength,null);return blake.blake2bUpdate(_e,a),blake.blake2bUpdate(_e,j),blake.blake2bFinal(_e)}function zero(a){for(var j=0;j<a.length;j++)a[j]=0}function seal(a,j){var _e=new Uint8Array(overheadLength+a.length),et=tweetnacl.box.keyPair();_e.set(et.publicKey);var tt=nonce(et.publicKey,j),nt=tweetnacl.box(a,tt,j,et.secretKey);return _e.set(nt,et.publicKey.length),zero(et.secretKey),_e}function open(a,j,_e){var et=a.subarray(0,tweetnacl.box.publicKeyLength),tt=nonce(et,j),nt=a.subarray(tweetnacl.box.publicKeyLength);return tweetnacl.box.open(nt,tt,et,_e)}const SealedBox={seal,open};function isNil(a){return a==null}var isNil_1=isNil;const isNil$1=getDefaultExportFromCjs$1(isNil_1);var baseGetTag$2=_baseGetTag,isArray$9=isArray_1,isObjectLike$6=isObjectLike_1,stringTag$1="[object String]";function isString(a){return typeof a=="string"||!isArray$9(a)&&isObjectLike$6(a)&&baseGetTag$2(a)==stringTag$1}var isString_1=isString;const isString$1=getDefaultExportFromCjs$1(isString_1),name="@arcblock/did-connect",version$2="2.10.18",description="Client side library to work with DID Connect by ArcBlock.",keywords=["react","arcblock","component"],author="wangshijun<wangshijun2010@gmail.com>",homepage="https://github.com/ArcBlock/ux#readme",license="Apache-2.0",main$1="lib/index.js",module$1="lib/index.js",repository={type:"git",url:"git+https://github.com/ArcBlock/ux.git"},scripts={lint:"eslint src tests --ext js --ext jsx","lint:fix":"npm run lint -- --fix",build:"babel --config-file ./babel.config.es.js src --out-dir lib --copy-files --no-copy-ignored",autoexports:"node tools/auto-exports.js",watch:"babel --config-file ./babel.config.es.js src --out-dir lib -w --copy-files --no-copy-ignored",precommit:"CI=1 npm run lint",prepush:"CI=1 npm run lint",prepublish:"npm run build",test:"node tools/jest.js",coverage:"npm run test -- --coverage"},bugs={url:"https://github.com/ArcBlock/ux/issues"},dependencies={"@arcblock/bridge":"^2.10.18","@arcblock/icons":"^2.10.18","@arcblock/react-hooks":"^2.10.18","@arcblock/ws":"^1.18.128","@fontsource/inter":"^5.0.16","@iconify-icons/logos":"^1.2.36","@iconify-icons/material-symbols":"^1.2.58","@iconify/react":"^4.1.1",ahooks:"^3.7.10",axios:"^1.7.2",buffer:"^6.0.3","core-js":"^3.25.5",eventemitter3:"^5.0.1","js-cookie":"^2.2.1","jwt-decode":"^3.1.2",lodash:"^4.17.21","mdi-material-ui":"^7.5.0","p-queue":"^6.6.2","p-wait-for":"^5.0.2","path-to-regexp":"^1.8.0",semver:"^7.5.4",tweetnacl:"^1.0.3","tweetnacl-sealedbox-js":"^1.2.0",ufo:"^1.5.3"},peerDependencies={"@arcblock/ux":"^2.9.79","@blocklet/js-sdk":"^1.16.28-beta-641c9f13","@emotion/react":"^11.10.4","@emotion/styled":"^11.10.4","@mui/material":"^5.15.0",react:"^18.2.0","react-dom":"^18.2.0"},publishConfig={access:"public"},devDependencies={"@babel/cli":"^7.19.3","@babel/core":"^7.19.3","@babel/preset-env":"^7.19.3","@babel/preset-react":"^7.18.6","eslint-plugin-react-hooks":"^4.6.0",glob:"^10.3.3",jest:"^28.1.3"},gitHead="0c8a31e386a07c1d4ec78e702091d450ab4e4847",pkg={name,version:version$2,description,keywords,author,homepage,license,main:main$1,module:module$1,repository,scripts,bugs,dependencies,peerDependencies,publishConfig,devDependencies,gitHead},DEFAULT_TIMEOUT$1=5*60,DEFAULT_WINDOW_TIMEOUT=30*60,AUTH_SERVICE_PREFIX="/.well-known/service",SESSION_TOKEN_STORAGE_KEY="login_token",REFRESH_TOKEN_STORAGE_KEY="refresh_token",RELAY_SOCKET_PREFIX="/.well-known/service",API_DID_PREFIX="/api/did",DEFAULT_NAME="DID Connect",DID_CONNECT_URL_PARAMS_NAME="__did-connect__";class NotOpenError extends Error{constructor(){super("Failed to open popup")}}const providerName="wallet_url",getWebWalletUrl$1=()=>{var a,j;return window.localStorage.getItem(providerName)||((a=window.env)==null?void 0:a.webWalletUrl)||((j=window.blocklet)==null?void 0:j.webWalletUrl)||"https://web.abtwallet.io/"},checkSameProtocol=a=>{const{protocol:j}=window.location;let _e="";try{_e=new URL(a).protocol}catch{_e=""}return j===_e},{version:version$1}=pkg;function unescape$2(a){return(a+"===".slice((a.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function escape$2(a){return a.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const decodeConnectUrl=a=>window.atob(unescape$2(a)),parseTokenFromConnectUrl=a=>{const j=new URL(a),_e=decodeURIComponent(j.searchParams.get("url"));return new URL(_e).searchParams.get("_t_")},getAppId$1=(a,j)=>{var et,tt,nt;let _e=j==null?void 0:j.publisher;if(!_e){if(a!=null&&a.agentDid)return a.agentDid;_e=a==null?void 0:a.publisher}return _e?_e.replace("did:abt:",""):((et=globalThis.blocklet)==null?void 0:et.appPid)||((tt=globalThis.blocklet)==null?void 0:tt.appId)||((nt=globalThis.env)==null?void 0:nt.appId)||""},getConnectedInfo=a=>{var _e;const j={connected_did:a.did||"",connected_pk:a.pk||"",connected_app:getAppId$1(a.appInfo,a.memberAppInfo)};return(_e=a==null?void 0:a.connectedWallet)!=null&&_e.os&&(j.connected_wallet_os=a.connectedWallet.os),j},updateConnectedInfo=(a,j=!1)=>{if(!a)return;j||(a=getConnectedInfo(a));const _e=getCookieOptions({expireInDays:7,returnDomain:!1});isNil$1(a.connected_did)||Cookie.set("connected_did",a.connected_did,_e),isNil$1(a.connected_pk)||Cookie.set("connected_pk",a.connected_pk,_e),isNil$1(a.connected_app)||Cookie.set("connected_app",a.connected_app,_e),a.connected_wallet_os&&Cookie.set("connected_wallet_os",a.connected_wallet_os,_e)},encodeKey=a=>escape$2(Buffer$1$1.from(a).toString("base64")),decodeKey=a=>Uint8Array.from(Buffer$1$1.from(unescape$2(a),"base64")),decrypt$1=(a,j,_e)=>{const et=SealedBox.open(Uint8Array.from(Buffer$1$1.from(a,"base64")),decodeKey(j),decodeKey(_e));return JSON.parse(Buffer$1$1.from(et).toString("utf8"))},parseNextWorkflow=(a,j="_t_")=>{const _e=new URL(a),et={baseUrl:_e.origin,prefix:_e.pathname.replace(/\/auth$/,""),token:_e.searchParams.get(j)||""};if(!et.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!et.token)throw new Error("Invalid next workflow: token not found");return et},getApiErrorMessage=(a,j)=>{var et;let _e=a.message;return a.response&&(_e=((et=a.response)==null?void 0:et.data)||j),_e},createAxios=(a={},{lazy:j=!1,lazyTime:_e=300}={})=>createAxios$2({...a,headers:{...a.headers,"x-did-connect-version":version$1}},{lazy:j,lazyTime:_e}),sleep$1=(a=0)=>new Promise(j=>{setTimeout(()=>{j()},a)});function getBrowserLang(){if(typeof window>"u")return null;const a=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[a]||"en"}async function decodeUrlParams(){const a=window.location.href;try{const j=new URL(a),_e=j.searchParams.get(DID_CONNECT_URL_PARAMS_NAME);if(_e){j.searchParams.delete(DID_CONNECT_URL_PARAMS_NAME);const et=JSON.parse(Buffer$1$1.from(_e,"base64").toString("utf-8"));if(isString$1(et.forceConnected)&&isUndefined$2(et.sourceAppPid)){const nt=await new BlockletSDK().user.getUserPublicInfo({did:et.forceConnected});isUndefined$2(nt==null?void 0:nt.sourceAppPid)||(et.sourceAppPid=nt.sourceAppPid)}return{params:et,url:j.href}}}catch{console.warn("Failed to decode did-connect url params")}return{params:null,url:a}}const openPopup=(a,{width:j=600,height:_e=700,name:et="did-connect:popup"}={})=>{const tt=window.screenX+(window.innerWidth-j)/2,nt=window.screenY+(window.innerHeight-_e)/2,rt=[`left=${tt}`,`top=${nt}`,`width=${j}`,`height=${_e}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],it=window.open("",et,rt.join(","));if(it===null)throw new NotOpenError;return it.location.href=a,it},runPopup=a=>new Promise((j,_e)=>{let et,tt;const nt=({data:rt})=>{if(rt&&rt.type==="authorization_response"){if(rt!=null&&rt.error){console.error(rt.error);return}setTimeout(()=>{var it;(it=a.popup)==null||it.close(),clearTimeout(tt),clearInterval(et),window.removeEventListener("message",nt,!1),j(rt)},a.closeTimeout||0)}};tt=setTimeout(()=>{clearInterval(et),_e(new Error("Timeout")),window.removeEventListener("message",nt,!1)},(a.timeoutInSeconds||DEFAULT_WINDOW_TIMEOUT)*1e3),et=setInterval(()=>{var rt;(rt=a.popup)!=null&&rt.closed&&(clearInterval(et),clearTimeout(tt),window.removeEventListener("message",nt,!1),_e(new Error("Popup closed")))},1e3),window.addEventListener("message",nt)});function WindowFocusAware({callback:a}){return reactExports.useEffect(()=>(window.addEventListener("focus",a),()=>{window.removeEventListener("focus",a)}),[]),null}WindowFocusAware.propTypes={callback:PropTypes.func.isRequired};function CardSelector({list:a,width:j,height:_e,cardSpace:et,onSelect:tt,defaultIndex:nt}){const[rt,it]=reactExports.useState(0),[ot,ct]=reactExports.useState(0),ut=reactExports.useRef(null),dt=Et=>{if(Et<0||Et>a.length-1)return;it(Et);const Rt=ut.current.clientWidth;ct(Et*(j+et)-(Rt-j)/2+et*.5),tt(Et)};reactExports.useEffect(()=>{dt(nt);const Et=Rt=>Rt.preventDefault();ut.current.addEventListener("touchmove",Et,{passive:!1})},[]);let pt;const mt=Et=>{pt=Et.touches[0].clientX},vt=Et=>{const Rt=Et.changedTouches[0],xt=pt-Rt.clientX;Math.abs(xt)>60&&(xt>0?dt(rt+1):dt(rt-1))};return jsxRuntimeExports.jsx(Contianer,{ref:ut,onTouchStart:mt,onTouchEnd:vt,children:jsxRuntimeExports.jsx("div",{className:"card-container",style:{transform:`translate(${-ot}px, 0)`},children:a.map((Et,Rt)=>Et instanceof Function?jsxRuntimeExports.jsx("div",{className:`card-item ${Rt===rt?"selected":""}`,style:{width:j,height:_e,margin:et/2},onClick:()=>dt(Rt),children:Et(Rt)},Rt):jsxRuntimeExports.jsx("div",{className:`card-item ${Rt===rt?"selected":""}`,style:{width:j,height:_e,margin:et/2},onClick:()=>dt(Rt),children:jsxRuntimeExports.jsx("img",{src:Et.src,alt:Et.name})},Rt))})})}const Contianer=newStyled.div`
431
+ `+new Array(a.length+4).join(" "):tt<j.length-2&&(et+=" ")}console.log(et)}function testSpeed(a,j,_e){let et=new Date().getTime();const tt=new Uint8Array(j);for(let rt=0;rt<j;rt++)tt[rt]=rt%256;const nt=new Date().getTime();console.log("Generated random input in "+(nt-et)+"ms"),et=nt;for(let rt=0;rt<_e;rt++){const it=a(tt),ot=new Date().getTime(),ct=ot-et;et=ot,console.log("Hashed in "+ct+"ms: "+it.substring(0,20)+"..."),console.log(Math.round(j/(1<<20)/(ct/1e3)*100)/100+" MB PER SECOND")}}var util$6={normalizeInput,toHex,debugPrint,testSpeed};const util$5=util$6;function ADD64AA(a,j,_e){const et=a[j]+a[_e];let tt=a[j+1]+a[_e+1];et>=4294967296&&tt++,a[j]=et,a[j+1]=tt}function ADD64AC(a,j,_e,et){let tt=a[j]+_e;_e<0&&(tt+=4294967296);let nt=a[j+1]+et;tt>=4294967296&&nt++,a[j]=tt,a[j+1]=nt}function B2B_GET32(a,j){return a[j]^a[j+1]<<8^a[j+2]<<16^a[j+3]<<24}function B2B_G(a,j,_e,et,tt,nt){const rt=m[tt],it=m[tt+1],ot=m[nt],ct=m[nt+1];ADD64AA(v,a,j),ADD64AC(v,a,rt,it);let ut=v[et]^v[a],dt=v[et+1]^v[a+1];v[et]=dt,v[et+1]=ut,ADD64AA(v,_e,et),ut=v[j]^v[_e],dt=v[j+1]^v[_e+1],v[j]=ut>>>24^dt<<8,v[j+1]=dt>>>24^ut<<8,ADD64AA(v,a,j),ADD64AC(v,a,ot,ct),ut=v[et]^v[a],dt=v[et+1]^v[a+1],v[et]=ut>>>16^dt<<16,v[et+1]=dt>>>16^ut<<16,ADD64AA(v,_e,et),ut=v[j]^v[_e],dt=v[j+1]^v[_e+1],v[j]=dt>>>31^ut<<1,v[j+1]=ut>>>31^dt<<1}const BLAKE2B_IV32=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),SIGMA8=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],SIGMA82=new Uint8Array(SIGMA8.map(function(a){return a*2})),v=new Uint32Array(32),m=new Uint32Array(32);function blake2bCompress(a,j){let _e=0;for(_e=0;_e<16;_e++)v[_e]=a.h[_e],v[_e+16]=BLAKE2B_IV32[_e];for(v[24]=v[24]^a.t,v[25]=v[25]^a.t/4294967296,j&&(v[28]=~v[28],v[29]=~v[29]),_e=0;_e<32;_e++)m[_e]=B2B_GET32(a.b,4*_e);for(_e=0;_e<12;_e++)B2B_G(0,8,16,24,SIGMA82[_e*16+0],SIGMA82[_e*16+1]),B2B_G(2,10,18,26,SIGMA82[_e*16+2],SIGMA82[_e*16+3]),B2B_G(4,12,20,28,SIGMA82[_e*16+4],SIGMA82[_e*16+5]),B2B_G(6,14,22,30,SIGMA82[_e*16+6],SIGMA82[_e*16+7]),B2B_G(0,10,20,30,SIGMA82[_e*16+8],SIGMA82[_e*16+9]),B2B_G(2,12,22,24,SIGMA82[_e*16+10],SIGMA82[_e*16+11]),B2B_G(4,14,16,26,SIGMA82[_e*16+12],SIGMA82[_e*16+13]),B2B_G(6,8,18,28,SIGMA82[_e*16+14],SIGMA82[_e*16+15]);for(_e=0;_e<16;_e++)a.h[_e]=a.h[_e]^v[_e]^v[_e+16]}const parameterBlock=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function blake2bInit(a,j,_e,et){if(a===0||a>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(j&&j.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(_e&&_e.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(et&&et.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const tt={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:a};parameterBlock.fill(0),parameterBlock[0]=a,j&&(parameterBlock[1]=j.length),parameterBlock[2]=1,parameterBlock[3]=1,_e&&parameterBlock.set(_e,32),et&&parameterBlock.set(et,48);for(let nt=0;nt<16;nt++)tt.h[nt]=BLAKE2B_IV32[nt]^B2B_GET32(parameterBlock,nt*4);return j&&(blake2bUpdate(tt,j),tt.c=128),tt}function blake2bUpdate(a,j){for(let _e=0;_e<j.length;_e++)a.c===128&&(a.t+=a.c,blake2bCompress(a,!1),a.c=0),a.b[a.c++]=j[_e]}function blake2bFinal(a){for(a.t+=a.c;a.c<128;)a.b[a.c++]=0;blake2bCompress(a,!0);const j=new Uint8Array(a.outlen);for(let _e=0;_e<a.outlen;_e++)j[_e]=a.h[_e>>2]>>8*(_e&3);return j}function blake2b(a,j,_e,et,tt){_e=_e||64,a=util$5.normalizeInput(a),et&&(et=util$5.normalizeInput(et)),tt&&(tt=util$5.normalizeInput(tt));const nt=blake2bInit(_e,j,et,tt);return blake2bUpdate(nt,a),blake2bFinal(nt)}function blake2bHex(a,j,_e,et,tt){const nt=blake2b(a,j,_e,et,tt);return util$5.toHex(nt)}var blake2b_1={blake2b,blake2bHex,blake2bInit,blake2bUpdate,blake2bFinal};const blake=getDefaultExportFromCjs$1(blake2b_1);function nonce(a,j){var _e=blake.blake2bInit(tweetnacl.box.nonceLength,null);return blake.blake2bUpdate(_e,a),blake.blake2bUpdate(_e,j),blake.blake2bFinal(_e)}function zero(a){for(var j=0;j<a.length;j++)a[j]=0}function seal(a,j){var _e=new Uint8Array(overheadLength+a.length),et=tweetnacl.box.keyPair();_e.set(et.publicKey);var tt=nonce(et.publicKey,j),nt=tweetnacl.box(a,tt,j,et.secretKey);return _e.set(nt,et.publicKey.length),zero(et.secretKey),_e}function open(a,j,_e){var et=a.subarray(0,tweetnacl.box.publicKeyLength),tt=nonce(et,j),nt=a.subarray(tweetnacl.box.publicKeyLength);return tweetnacl.box.open(nt,tt,et,_e)}const SealedBox={seal,open};function isNil(a){return a==null}var isNil_1=isNil;const isNil$1=getDefaultExportFromCjs$1(isNil_1);var baseGetTag$2=_baseGetTag,isArray$9=isArray_1,isObjectLike$6=isObjectLike_1,stringTag$1="[object String]";function isString(a){return typeof a=="string"||!isArray$9(a)&&isObjectLike$6(a)&&baseGetTag$2(a)==stringTag$1}var isString_1=isString;const isString$1=getDefaultExportFromCjs$1(isString_1),name="@arcblock/did-connect",version$2="2.10.21",description="Client side library to work with DID Connect by ArcBlock.",keywords=["react","arcblock","component"],author="wangshijun<wangshijun2010@gmail.com>",homepage="https://github.com/ArcBlock/ux#readme",license="Apache-2.0",main$1="lib/index.js",module$1="lib/index.js",repository={type:"git",url:"git+https://github.com/ArcBlock/ux.git"},scripts={lint:"eslint src tests --ext js --ext jsx","lint:fix":"npm run lint -- --fix",build:"babel --config-file ./babel.config.es.js src --out-dir lib --copy-files --no-copy-ignored",autoexports:"node tools/auto-exports.js",watch:"babel --config-file ./babel.config.es.js src --out-dir lib -w --copy-files --no-copy-ignored",precommit:"CI=1 npm run lint",prepush:"CI=1 npm run lint",prepublish:"npm run build",test:"node tools/jest.js",coverage:"npm run test -- --coverage"},bugs={url:"https://github.com/ArcBlock/ux/issues"},dependencies={"@arcblock/bridge":"^2.10.21","@arcblock/icons":"^2.10.21","@arcblock/react-hooks":"^2.10.21","@arcblock/ws":"^1.18.130","@fontsource/inter":"^5.0.16","@iconify-icons/logos":"^1.2.36","@iconify-icons/material-symbols":"^1.2.58","@iconify/react":"^4.1.1",ahooks:"^3.7.10",axios:"^1.7.2",buffer:"^6.0.3","core-js":"^3.25.5",eventemitter3:"^5.0.1","js-cookie":"^2.2.1","jwt-decode":"^3.1.2",lodash:"^4.17.21","mdi-material-ui":"^7.5.0","p-queue":"^6.6.2","p-wait-for":"^5.0.2","path-to-regexp":"^1.8.0",semver:"^7.5.4",tweetnacl:"^1.0.3","tweetnacl-sealedbox-js":"^1.2.0",ufo:"^1.5.3"},peerDependencies={"@arcblock/ux":"^2.9.79","@blocklet/js-sdk":"^1.16.28-beta-641c9f13","@emotion/react":"^11.10.4","@emotion/styled":"^11.10.4","@mui/material":"^5.15.0",react:"^18.2.0","react-dom":"^18.2.0"},publishConfig={access:"public"},devDependencies={"@babel/cli":"^7.19.3","@babel/core":"^7.19.3","@babel/preset-env":"^7.19.3","@babel/preset-react":"^7.18.6","eslint-plugin-react-hooks":"^4.6.0",glob:"^10.3.3",jest:"^28.1.3"},gitHead="949068dfafbd2bff9933a2fc2a48d1cd90db491b",pkg={name,version:version$2,description,keywords,author,homepage,license,main:main$1,module:module$1,repository,scripts,bugs,dependencies,peerDependencies,publishConfig,devDependencies,gitHead},DEFAULT_TIMEOUT$1=5*60,DEFAULT_WINDOW_TIMEOUT=30*60,AUTH_SERVICE_PREFIX="/.well-known/service",SESSION_TOKEN_STORAGE_KEY="login_token",REFRESH_TOKEN_STORAGE_KEY="refresh_token",RELAY_SOCKET_PREFIX="/.well-known/service",API_DID_PREFIX="/api/did",DEFAULT_NAME="DID Connect",DID_CONNECT_URL_PARAMS_NAME="__did-connect__";class NotOpenError extends Error{constructor(){super("Failed to open popup")}}const providerName="wallet_url",getWebWalletUrl$1=()=>{var a,j;return window.localStorage.getItem(providerName)||((a=window.env)==null?void 0:a.webWalletUrl)||((j=window.blocklet)==null?void 0:j.webWalletUrl)||"https://web.abtwallet.io/"},checkSameProtocol=a=>{const{protocol:j}=window.location;let _e="";try{_e=new URL(a).protocol}catch{_e=""}return j===_e},{version:version$1}=pkg;function unescape$2(a){return(a+"===".slice((a.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function escape$2(a){return a.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const decodeConnectUrl=a=>window.atob(unescape$2(a)),parseTokenFromConnectUrl=a=>{const j=new URL(a),_e=decodeURIComponent(j.searchParams.get("url"));return new URL(_e).searchParams.get("_t_")},getAppId$1=(a,j)=>{var et,tt,nt;let _e=j==null?void 0:j.publisher;if(!_e){if(a!=null&&a.agentDid)return a.agentDid;_e=a==null?void 0:a.publisher}return _e?_e.replace("did:abt:",""):((et=globalThis.blocklet)==null?void 0:et.appPid)||((tt=globalThis.blocklet)==null?void 0:tt.appId)||((nt=globalThis.env)==null?void 0:nt.appId)||""},getConnectedInfo=a=>{var _e;const j={connected_did:a.did||"",connected_pk:a.pk||"",connected_app:getAppId$1(a.appInfo,a.memberAppInfo)};return(_e=a==null?void 0:a.connectedWallet)!=null&&_e.os&&(j.connected_wallet_os=a.connectedWallet.os),j},updateConnectedInfo=(a,j=!1)=>{if(!a)return;j||(a=getConnectedInfo(a));const _e=getCookieOptions({expireInDays:7,returnDomain:!1});isNil$1(a.connected_did)||Cookie.set("connected_did",a.connected_did,_e),isNil$1(a.connected_pk)||Cookie.set("connected_pk",a.connected_pk,_e),isNil$1(a.connected_app)||Cookie.set("connected_app",a.connected_app,_e),a.connected_wallet_os&&Cookie.set("connected_wallet_os",a.connected_wallet_os,_e)},encodeKey=a=>escape$2(Buffer$1$1.from(a).toString("base64")),decodeKey=a=>Uint8Array.from(Buffer$1$1.from(unescape$2(a),"base64")),decrypt$1=(a,j,_e)=>{const et=SealedBox.open(Uint8Array.from(Buffer$1$1.from(a,"base64")),decodeKey(j),decodeKey(_e));return JSON.parse(Buffer$1$1.from(et).toString("utf8"))},parseNextWorkflow=(a,j="_t_")=>{const _e=new URL(a),et={baseUrl:_e.origin,prefix:_e.pathname.replace(/\/auth$/,""),token:_e.searchParams.get(j)||""};if(!et.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!et.token)throw new Error("Invalid next workflow: token not found");return et},getApiErrorMessage=(a,j)=>{var et;let _e=a.message;return a.response&&(_e=((et=a.response)==null?void 0:et.data)||j),_e},createAxios=(a={},{lazy:j=!1,lazyTime:_e=300}={})=>createAxios$2({...a,headers:{...a.headers,"x-did-connect-version":version$1}},{lazy:j,lazyTime:_e}),sleep$1=(a=0)=>new Promise(j=>{setTimeout(()=>{j()},a)});function getBrowserLang(){if(typeof window>"u")return null;const a=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[a]||"en"}async function decodeUrlParams(){const a=window.location.href;try{const j=new URL(a),_e=j.searchParams.get(DID_CONNECT_URL_PARAMS_NAME);if(_e){j.searchParams.delete(DID_CONNECT_URL_PARAMS_NAME);const et=JSON.parse(Buffer$1$1.from(_e,"base64").toString("utf-8"));if(isString$1(et.forceConnected)&&isUndefined$2(et.sourceAppPid)){const nt=await new BlockletSDK().user.getUserPublicInfo({did:et.forceConnected});isUndefined$2(nt==null?void 0:nt.sourceAppPid)||(et.sourceAppPid=nt.sourceAppPid)}return{params:et,url:j.href}}}catch{console.warn("Failed to decode did-connect url params")}return{params:null,url:a}}const openPopup=(a,{width:j=600,height:_e=700,name:et="did-connect:popup"}={})=>{const tt=window.screenX+(window.innerWidth-j)/2,nt=window.screenY+(window.innerHeight-_e)/2,rt=[`left=${tt}`,`top=${nt}`,`width=${j}`,`height=${_e}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],it=window.open("",et,rt.join(","));if(it===null)throw new NotOpenError;return it.location.href=a,it},runPopup=a=>new Promise((j,_e)=>{let et,tt;const nt=({data:rt})=>{if(rt&&rt.type==="authorization_response"){if(rt!=null&&rt.error){console.error(rt.error);return}setTimeout(()=>{var it;(it=a.popup)==null||it.close(),clearTimeout(tt),clearInterval(et),window.removeEventListener("message",nt,!1),j(rt)},a.closeTimeout||0)}};tt=setTimeout(()=>{clearInterval(et),_e(new Error("Timeout")),window.removeEventListener("message",nt,!1)},(a.timeoutInSeconds||DEFAULT_WINDOW_TIMEOUT)*1e3),et=setInterval(()=>{var rt;(rt=a.popup)!=null&&rt.closed&&(clearInterval(et),clearTimeout(tt),window.removeEventListener("message",nt,!1),_e(new Error("Popup closed")))},1e3),window.addEventListener("message",nt)});function WindowFocusAware({callback:a}){return reactExports.useEffect(()=>(window.addEventListener("focus",a),()=>{window.removeEventListener("focus",a)}),[]),null}WindowFocusAware.propTypes={callback:PropTypes.func.isRequired};function CardSelector({list:a,width:j,height:_e,cardSpace:et,onSelect:tt,defaultIndex:nt}){const[rt,it]=reactExports.useState(0),[ot,ct]=reactExports.useState(0),ut=reactExports.useRef(null),dt=Et=>{if(Et<0||Et>a.length-1)return;it(Et);const Rt=ut.current.clientWidth;ct(Et*(j+et)-(Rt-j)/2+et*.5),tt(Et)};reactExports.useEffect(()=>{dt(nt);const Et=Rt=>Rt.preventDefault();ut.current.addEventListener("touchmove",Et,{passive:!1})},[]);let pt;const mt=Et=>{pt=Et.touches[0].clientX},vt=Et=>{const Rt=Et.changedTouches[0],xt=pt-Rt.clientX;Math.abs(xt)>60&&(xt>0?dt(rt+1):dt(rt-1))};return jsxRuntimeExports.jsx(Contianer,{ref:ut,onTouchStart:mt,onTouchEnd:vt,children:jsxRuntimeExports.jsx("div",{className:"card-container",style:{transform:`translate(${-ot}px, 0)`},children:a.map((Et,Rt)=>Et instanceof Function?jsxRuntimeExports.jsx("div",{className:`card-item ${Rt===rt?"selected":""}`,style:{width:j,height:_e,margin:et/2},onClick:()=>dt(Rt),children:Et(Rt)},Rt):jsxRuntimeExports.jsx("div",{className:`card-item ${Rt===rt?"selected":""}`,style:{width:j,height:_e,margin:et/2},onClick:()=>dt(Rt),children:jsxRuntimeExports.jsx("img",{src:Et.src,alt:Et.name})},Rt))})})}const Contianer=newStyled.div`
432
432
  overflow: hidden;
433
433
  mask-image: linear-gradient(to left, transparent, black 3%, black 97%, transparent);
434
434
  overflow: hidden;
@@ -488,12 +488,12 @@ __p += '`),uo&&(Er+=`' +
488
488
  function print() { __p += __j.call(arguments, '') }
489
489
  `:`;
490
490
  `)+Er+`return __p
491
- }`;var to=V0(function(){return po(xn,Ur+"return "+Er).apply(_e,Bn)});if(to.source=Er,Ep(to))throw to;return to}function a$(yt){return ho(yt).toLowerCase()}function s$(yt){return ho(yt).toUpperCase()}function l$(yt,St,Bt){if(yt=ho(yt),yt&&(Bt||St===_e))return Qp(yt);if(!yt||!(St=Zo(St)))return yt;var tn=os(yt),gn=os(St),xn=_h(tn,gn),Bn=e1(tn,gn)+1;return ks(tn,xn,Bn).join("")}function u$(yt,St,Bt){if(yt=ho(yt),yt&&(Bt||St===_e))return yt.slice(0,n1(yt)+1);if(!yt||!(St=Zo(St)))return yt;var tn=os(yt),gn=e1(tn,os(St))+1;return ks(tn,0,gn).join("")}function c$(yt,St,Bt){if(yt=ho(yt),yt&&(Bt||St===_e))return yt.replace(qt,"");if(!yt||!(St=Zo(St)))return yt;var tn=os(yt),gn=_h(tn,os(St));return ks(tn,gn).join("")}function f$(yt,St){var Bt=hn,tn=Qt;if(xo(St)){var gn="separator"in St?St.separator:gn;Bt="length"in St?eo(St.length):Bt,tn="omission"in St?Zo(St.omission):tn}yt=ho(yt);var xn=yt.length;if(Gs(yt)){var Bn=os(yt);xn=Bn.length}if(Bt>=xn)return yt;var Hn=Bt-Ws(tn);if(Hn<1)return tn;var Xn=Bn?ks(Bn,0,Hn).join(""):yt.slice(0,Hn);if(gn===_e)return Xn+tn;if(Bn&&(Hn+=Xn.length-Hn),$p(gn)){if(yt.slice(Hn).search(gn)){var gr,vr=Xn;for(gn.global||(gn=Uu(gn.source,ho(Jn.exec(gn))+"g")),gn.lastIndex=0;gr=gn.exec(vr);)var Er=gr.index;Xn=Xn.slice(0,Er===_e?Hn:Er)}}else if(yt.indexOf(Zo(gn),Hn)!=Hn){var Pr=Xn.lastIndexOf(gn);Pr>-1&&(Xn=Xn.slice(0,Pr))}return Xn+tn}function d$(yt){return yt=ho(yt),yt&&Dr.test(yt)?yt.replace(er,qm):yt}var p$=yl(function(yt,St,Bt){return yt+(Bt?" ":"")+St.toUpperCase()}),Sp=J1("toUpperCase");function q0(yt,St,Bt){return yt=ho(yt),St=Bt?_e:St,St===_e?Nm(yt)?Gm(yt):Cm(yt):yt.match(St)||[]}var V0=no(function(yt,St){try{return Yo(yt,_e,St)}catch(Bt){return Ep(Bt)?Bt:new Zr(Bt)}}),h$=bs(function(yt,St){return $a(St,function(Bt){Bt=ds(Bt),ys(yt,Bt,vp(yt[Bt],yt))}),yt});function m$(yt){var St=yt==null?0:yt.length,Bt=qr();return yt=St?So(yt,function(tn){if(typeof tn[1]!="function")throw new _a(rt);return[Bt(tn[0]),tn[1]]}):[],no(function(tn){for(var gn=-1;++gn<St;){var xn=yt[gn];if(Yo(xn[0],this,tn))return Yo(xn[1],this,tn)}})}function g$(yt){return Hy(es(yt,dt))}function xp(yt){return function(){return yt}}function y$(yt,St){return yt==null||yt!==yt?St:yt}var v$=W1(),b$=W1(!0);function Ko(yt){return yt}function Ap(yt){return T1(typeof yt=="function"?yt:es(yt,dt))}function E$(yt){return x1(es(yt,dt))}function $$(yt,St){return A1(yt,es(St,dt))}var _$=no(function(yt,St){return function(Bt){return Pl(Bt,yt,St)}}),T$=no(function(yt,St){return function(Bt){return Pl(yt,Bt,St)}});function Rp(yt,St,Bt){var tn=Mo(St),gn=lu(St,tn);Bt==null&&!(xo(St)&&(gn.length||!tn.length))&&(Bt=St,St=yt,yt=this,gn=lu(St,Mo(St)));var xn=!(xo(Bt)&&"chain"in Bt)||!!Bt.chain,Bn=$s(yt);return $a(gn,function(Hn){var Xn=St[Hn];yt[Hn]=Xn,Bn&&(yt.prototype[Hn]=function(){var gr=this.__chain__;if(xn||gr){var vr=yt(this.__wrapped__),Er=vr.__actions__=Go(this.__actions__);return Er.push({func:Xn,args:arguments,thisArg:yt}),vr.__chain__=gr,vr}return Xn.apply(yt,xs([this.value()],arguments))})}),yt}function S$(){return No._===this&&(No._=Zm),this}function wp(){}function x$(yt){return yt=eo(yt),no(function(St){return R1(St,yt)})}var A$=op(So),R$=op(zp),w$=op(Du);function J0(yt){return dp(yt)?Lu(ds(yt)):ov(yt)}function C$(yt){return function(St){return yt==null?_e:js(yt,St)}}var I$=K1(),k$=K1(!0);function Cp(){return[]}function Ip(){return!1}function P$(){return{}}function D$(){return""}function L$(){return!0}function O$(yt,St){if(yt=eo(yt),yt<1||yt>At)return[];var Bt=It,tn=Uo(yt,It);St=qr(St),yt-=It;for(var gn=Mu(tn,St);++Bt<yt;)St(Bt);return gn}function B$(yt){return Qr(yt)?So(yt,ds):Qo(yt)?[yt]:Go(f0(ho(yt)))}function M$(yt){var St=++Ym;return ho(yt)+St}var N$=hu(function(yt,St){return yt+St},0),F$=ap("ceil"),U$=hu(function(yt,St){return yt/St},1),j$=ap("floor");function H$(yt){return yt&&yt.length?su(yt,Ko,zu):_e}function q$(yt,St){return yt&&yt.length?su(yt,qr(St,2),zu):_e}function V$(yt){return Xp(yt,Ko)}function J$(yt,St){return Xp(yt,qr(St,2))}function G$(yt){return yt&&yt.length?su(yt,Ko,Zu):_e}function W$(yt,St){return yt&&yt.length?su(yt,qr(St,2),Zu):_e}var z$=hu(function(yt,St){return yt*St},1),K$=ap("round"),Y$=hu(function(yt,St){return yt-St},0);function X$(yt){return yt&&yt.length?Bu(yt,Ko):0}function Z$(yt,St){return yt&&yt.length?Bu(yt,qr(St,2)):0}return Tn.after=$3,Tn.ary=_0,Tn.assign=sE,Tn.assignIn=B0,Tn.assignInWith=Ru,Tn.assignWith=lE,Tn.at=uE,Tn.before=T0,Tn.bind=vp,Tn.bindAll=h$,Tn.bindKey=S0,Tn.castArray=D3,Tn.chain=b0,Tn.chunk=Hv,Tn.compact=qv,Tn.concat=Vv,Tn.cond=m$,Tn.conforms=g$,Tn.constant=xp,Tn.countBy=Z2,Tn.create=cE,Tn.curry=x0,Tn.curryRight=A0,Tn.debounce=R0,Tn.defaults=fE,Tn.defaultsDeep=dE,Tn.defer=_3,Tn.delay=T3,Tn.difference=Jv,Tn.differenceBy=Gv,Tn.differenceWith=Wv,Tn.drop=zv,Tn.dropRight=Kv,Tn.dropRightWhile=Yv,Tn.dropWhile=Xv,Tn.fill=Zv,Tn.filter=e3,Tn.flatMap=r3,Tn.flatMapDeep=i3,Tn.flatMapDepth=o3,Tn.flatten=m0,Tn.flattenDeep=Qv,Tn.flattenDepth=e2,Tn.flip=S3,Tn.flow=v$,Tn.flowRight=b$,Tn.fromPairs=t2,Tn.functions=bE,Tn.functionsIn=EE,Tn.groupBy=a3,Tn.initial=r2,Tn.intersection=i2,Tn.intersectionBy=o2,Tn.intersectionWith=a2,Tn.invert=_E,Tn.invertBy=TE,Tn.invokeMap=l3,Tn.iteratee=Ap,Tn.keyBy=u3,Tn.keys=Mo,Tn.keysIn=zo,Tn.map=$u,Tn.mapKeys=xE,Tn.mapValues=AE,Tn.matches=E$,Tn.matchesProperty=$$,Tn.memoize=Tu,Tn.merge=RE,Tn.mergeWith=M0,Tn.method=_$,Tn.methodOf=T$,Tn.mixin=Rp,Tn.negate=Su,Tn.nthArg=x$,Tn.omit=wE,Tn.omitBy=CE,Tn.once=x3,Tn.orderBy=c3,Tn.over=A$,Tn.overArgs=A3,Tn.overEvery=R$,Tn.overSome=w$,Tn.partial=bp,Tn.partialRight=w0,Tn.partition=f3,Tn.pick=IE,Tn.pickBy=N0,Tn.property=J0,Tn.propertyOf=C$,Tn.pull=c2,Tn.pullAll=y0,Tn.pullAllBy=f2,Tn.pullAllWith=d2,Tn.pullAt=p2,Tn.range=I$,Tn.rangeRight=k$,Tn.rearg=R3,Tn.reject=h3,Tn.remove=h2,Tn.rest=w3,Tn.reverse=gp,Tn.sampleSize=g3,Tn.set=PE,Tn.setWith=DE,Tn.shuffle=y3,Tn.slice=m2,Tn.sortBy=E3,Tn.sortedUniq=_2,Tn.sortedUniqBy=T2,Tn.split=n$,Tn.spread=C3,Tn.tail=S2,Tn.take=x2,Tn.takeRight=A2,Tn.takeRightWhile=R2,Tn.takeWhile=w2,Tn.tap=q2,Tn.throttle=I3,Tn.thru=Eu,Tn.toArray=D0,Tn.toPairs=F0,Tn.toPairsIn=U0,Tn.toPath=B$,Tn.toPlainObject=O0,Tn.transform=LE,Tn.unary=k3,Tn.union=C2,Tn.unionBy=I2,Tn.unionWith=k2,Tn.uniq=P2,Tn.uniqBy=D2,Tn.uniqWith=L2,Tn.unset=OE,Tn.unzip=yp,Tn.unzipWith=v0,Tn.update=BE,Tn.updateWith=ME,Tn.values=_l,Tn.valuesIn=NE,Tn.without=O2,Tn.words=q0,Tn.wrap=P3,Tn.xor=B2,Tn.xorBy=M2,Tn.xorWith=N2,Tn.zip=F2,Tn.zipObject=U2,Tn.zipObjectDeep=j2,Tn.zipWith=H2,Tn.entries=F0,Tn.entriesIn=U0,Tn.extend=B0,Tn.extendWith=Ru,Rp(Tn,Tn),Tn.add=N$,Tn.attempt=V0,Tn.camelCase=HE,Tn.capitalize=j0,Tn.ceil=F$,Tn.clamp=FE,Tn.clone=L3,Tn.cloneDeep=B3,Tn.cloneDeepWith=M3,Tn.cloneWith=O3,Tn.conformsTo=N3,Tn.deburr=H0,Tn.defaultTo=y$,Tn.divide=U$,Tn.endsWith=qE,Tn.eq=ss,Tn.escape=VE,Tn.escapeRegExp=JE,Tn.every=Q2,Tn.find=t3,Tn.findIndex=p0,Tn.findKey=pE,Tn.findLast=n3,Tn.findLastIndex=h0,Tn.findLastKey=hE,Tn.floor=j$,Tn.forEach=E0,Tn.forEachRight=$0,Tn.forIn=mE,Tn.forInRight=gE,Tn.forOwn=yE,Tn.forOwnRight=vE,Tn.get=_p,Tn.gt=F3,Tn.gte=U3,Tn.has=$E,Tn.hasIn=Tp,Tn.head=g0,Tn.identity=Ko,Tn.includes=s3,Tn.indexOf=n2,Tn.inRange=UE,Tn.invoke=SE,Tn.isArguments=Vs,Tn.isArray=Qr,Tn.isArrayBuffer=j3,Tn.isArrayLike=Wo,Tn.isArrayLikeObject=Io,Tn.isBoolean=H3,Tn.isBuffer=Ps,Tn.isDate=q3,Tn.isElement=V3,Tn.isEmpty=J3,Tn.isEqual=G3,Tn.isEqualWith=W3,Tn.isError=Ep,Tn.isFinite=z3,Tn.isFunction=$s,Tn.isInteger=C0,Tn.isLength=xu,Tn.isMap=I0,Tn.isMatch=K3,Tn.isMatchWith=Y3,Tn.isNaN=X3,Tn.isNative=Z3,Tn.isNil=_b,Tn.isNull=Q3,Tn.isNumber=k0,Tn.isObject=xo,Tn.isObjectLike=Ro,Tn.isPlainObject=Nl,Tn.isRegExp=$p,Tn.isSafeInteger=eE,Tn.isSet=P0,Tn.isString=Au,Tn.isSymbol=Qo,Tn.isTypedArray=$l,Tn.isUndefined=tE,Tn.isWeakMap=nE,Tn.isWeakSet=rE,Tn.join=s2,Tn.kebabCase=GE,Tn.last=ns,Tn.lastIndexOf=l2,Tn.lowerCase=WE,Tn.lowerFirst=zE,Tn.lt=iE,Tn.lte=oE,Tn.max=H$,Tn.maxBy=q$,Tn.mean=V$,Tn.meanBy=J$,Tn.min=G$,Tn.minBy=W$,Tn.stubArray=Cp,Tn.stubFalse=Ip,Tn.stubObject=P$,Tn.stubString=D$,Tn.stubTrue=L$,Tn.multiply=z$,Tn.nth=u2,Tn.noConflict=S$,Tn.noop=wp,Tn.now=_u,Tn.pad=KE,Tn.padEnd=YE,Tn.padStart=XE,Tn.parseInt=ZE,Tn.random=jE,Tn.reduce=d3,Tn.reduceRight=p3,Tn.repeat=QE,Tn.replace=e$,Tn.result=kE,Tn.round=K$,Tn.runInContext=Wn,Tn.sample=m3,Tn.size=v3,Tn.snakeCase=t$,Tn.some=b3,Tn.sortedIndex=g2,Tn.sortedIndexBy=y2,Tn.sortedIndexOf=v2,Tn.sortedLastIndex=b2,Tn.sortedLastIndexBy=E2,Tn.sortedLastIndexOf=$2,Tn.startCase=r$,Tn.startsWith=i$,Tn.subtract=Y$,Tn.sum=X$,Tn.sumBy=Z$,Tn.template=o$,Tn.times=O$,Tn.toFinite=_s,Tn.toInteger=eo,Tn.toLength=L0,Tn.toLower=a$,Tn.toNumber=rs,Tn.toSafeInteger=aE,Tn.toString=ho,Tn.toUpper=s$,Tn.trim=l$,Tn.trimEnd=u$,Tn.trimStart=c$,Tn.truncate=f$,Tn.unescape=d$,Tn.uniqueId=M$,Tn.upperCase=p$,Tn.upperFirst=Sp,Tn.each=E0,Tn.eachRight=$0,Tn.first=g0,Rp(Tn,function(){var yt={};return cs(Tn,function(St,Bt){go.call(Tn.prototype,Bt)||(yt[Bt]=St)}),yt}(),{chain:!1}),Tn.VERSION=et,$a(["bind","bindKey","curry","curryRight","partial","partialRight"],function(yt){Tn[yt].placeholder=Tn}),$a(["drop","take"],function(yt,St){lo.prototype[yt]=function(Bt){Bt=Bt===_e?1:Bo(eo(Bt),0);var tn=this.__filtered__&&!St?new lo(this):this.clone();return tn.__filtered__?tn.__takeCount__=Uo(Bt,tn.__takeCount__):tn.__views__.push({size:Uo(Bt,It),type:yt+(tn.__dir__<0?"Right":"")}),tn},lo.prototype[yt+"Right"]=function(Bt){return this.reverse()[yt](Bt).reverse()}}),$a(["filter","map","takeWhile"],function(yt,St){var Bt=St+1,tn=Bt==ft||Bt==$t;lo.prototype[yt]=function(gn){var xn=this.clone();return xn.__iteratees__.push({iteratee:qr(gn,3),type:Bt}),xn.__filtered__=xn.__filtered__||tn,xn}}),$a(["head","last"],function(yt,St){var Bt="take"+(St?"Right":"");lo.prototype[yt]=function(){return this[Bt](1).value()[0]}}),$a(["initial","tail"],function(yt,St){var Bt="drop"+(St?"":"Right");lo.prototype[yt]=function(){return this.__filtered__?new lo(this):this[Bt](1)}}),lo.prototype.compact=function(){return this.filter(Ko)},lo.prototype.find=function(yt){return this.filter(yt).head()},lo.prototype.findLast=function(yt){return this.reverse().find(yt)},lo.prototype.invokeMap=no(function(yt,St){return typeof yt=="function"?new lo(this):this.map(function(Bt){return Pl(Bt,yt,St)})}),lo.prototype.reject=function(yt){return this.filter(Su(qr(yt)))},lo.prototype.slice=function(yt,St){yt=eo(yt);var Bt=this;return Bt.__filtered__&&(yt>0||St<0)?new lo(Bt):(yt<0?Bt=Bt.takeRight(-yt):yt&&(Bt=Bt.drop(yt)),St!==_e&&(St=eo(St),Bt=St<0?Bt.dropRight(-St):Bt.take(St-yt)),Bt)},lo.prototype.takeRightWhile=function(yt){return this.reverse().takeWhile(yt).reverse()},lo.prototype.toArray=function(){return this.take(It)},cs(lo.prototype,function(yt,St){var Bt=/^(?:filter|find|map|reject)|While$/.test(St),tn=/^(?:head|last)$/.test(St),gn=Tn[tn?"take"+(St=="last"?"Right":""):St],xn=tn||/^find/.test(St);gn&&(Tn.prototype[St]=function(){var Bn=this.__wrapped__,Hn=tn?[1]:arguments,Xn=Bn instanceof lo,gr=Hn[0],vr=Xn||Qr(Bn),Er=function(io){var uo=gn.apply(Tn,xs([io],Hn));return tn&&Pr?uo[0]:uo};vr&&Bt&&typeof gr=="function"&&gr.length!=1&&(Xn=vr=!1);var Pr=this.__chain__,Ur=!!this.__actions__.length,Vr=xn&&!Pr,to=Xn&&!Ur;if(!xn&&vr){Bn=to?Bn:new lo(this);var Jr=yt.apply(Bn,Hn);return Jr.__actions__.push({func:Eu,args:[Er],thisArg:_e}),new xa(Jr,Pr)}return Vr&&to?yt.apply(this,Hn):(Jr=this.thru(Er),Vr?tn?Jr.value()[0]:Jr.value():Jr)})}),$a(["pop","push","shift","sort","splice","unshift"],function(yt){var St=Jl[yt],Bt=/^(?:push|sort|unshift)$/.test(yt)?"tap":"thru",tn=/^(?:pop|shift)$/.test(yt);Tn.prototype[yt]=function(){var gn=arguments;if(tn&&!this.__chain__){var xn=this.value();return St.apply(Qr(xn)?xn:[],gn)}return this[Bt](function(Bn){return St.apply(Qr(Bn)?Bn:[],gn)})}}),cs(lo.prototype,function(yt,St){var Bt=Tn[St];if(Bt){var tn=Bt.name+"";go.call(Xs,tn)||(Xs[tn]=[]),Xs[tn].push({name:St,func:Bt})}}),Xs[pu(_e,xt).name]=[{name:"wrapper",func:_e}],lo.prototype.clone=py,lo.prototype.reverse=hy,lo.prototype.value=my,Tn.prototype.at=V2,Tn.prototype.chain=J2,Tn.prototype.commit=G2,Tn.prototype.next=W2,Tn.prototype.plant=K2,Tn.prototype.reverse=Y2,Tn.prototype.toJSON=Tn.prototype.valueOf=Tn.prototype.value=X2,Tn.prototype.first=Tn.prototype.head,Sl&&(Tn.prototype[Sl]=z2),Tn},zs=Wm();Bs?((Bs.exports=zs)._=zs,Cu._=zs):No._=zs}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;function useApps({blocklet:a,action:j,sourceAppPid:_e,connectState:et,enableSwitchApp:tt}){var ct,ut;const nt=reactExports.useContext(SessionContext$1),rt=useCreation(()=>{var dt;return tt===!0?!0:!(tt===!1||(dt=nt==null?void 0:nt.session)!=null&&dt.user&&!["login"].includes(j))},[j,(ct=nt==null?void 0:nt.session)==null?void 0:ct.user]),it=useCreation(()=>{if(lodashExports.isUndefined(_e)){const dt=getFederatedEnabled(a),pt=getMaster(a);if(dt&&(pt!=null&&pt.appPid))return pt.appPid}return _e},[_e]);return{appInfoList:useCreation(()=>getApps(a).filter(pt=>{var mt;return rt?!0:lodashExports.isUndefined(_e)?lodashExports.isUndefined(et.sourceAppPid)?(mt=nt==null?void 0:nt.session)!=null&&mt.user?pt.sourceAppPid===nt.session.user.sourceAppPid:pt.sourceAppPid===it:pt.sourceAppPid===et.sourceAppPid:pt.sourceAppPid===_e}),[rt,_e,et.sourceAppPid,it,(ut=nt==null?void 0:nt.session)==null?void 0:ut.user]),autoGenerateSourceAppPid:it,canSwitchApp:rt}}const translations$3={en:{generateError:"Request new qrcode failed",checkError:"Status check failed!",scanned:"Use your wallet to continue operation...",mfaCode:"We sent you a verification request on your DID Wallet, enter the digits below to confirm.",refresh:"Refresh",open:"Open in DID Wallet",openDidConnect:"Open DID Connect",error:"We encountered some errors when processing the request",invalidSessionStatus:"Invalid session status",success:"Success",wait:"Wait a second",waiting:"Waiting for next workflow to complete...",failed:"Failed",oops:"Oops",forbidden:"Login user and wallet user mismatch, please logout, then login to retry",webWallet:"Auth with Web Wallet",cancel:"Cancel",close:"Close",retry:"Retry",retryForbidden:"Please start this workflow from the beginning",getWallet:"Don't have the DID Wallet? Get it now.",back:"Back",connect:"Use the following to connect",connecting:"Connecting to your",connectingSuffix:"Or use the following to connect",connected:"Connected to your",busyTitle:"Busy",busyDesc:"Busy processing another DID Connect request",loginWithBefore:"Login with ",loginWithAfter:"",bindOAuth:"Bind third party login",bind:"Bind ",loginOAuthFailed:"Login with third party failed",loginWithAnotherAccount:"Login with another account",quickLoginDescription:"The following accounts have been detected in the current unified login environment. Click the following accounts to log in quickly.",quickLogin:"Login {appName} with {masterAppName} account",sessionFrom:"Session founded from {appName} blocklet",loginWithThisAccount:"Click to login with this account",chooseAccount:"Choose an account",lostPassport:"Lost your passport?",lostPassportTips:"If you have lost your passport, you can click here to claim back.",download:"Download",downloadTips:"Don't have DID Wallet ?",scanWithWallet:"Easy Login with QR Code Scanning",openInWallet:"Open in DID Wallet",webExtension:"Web Wallet Extension",connectButton:"Connect",switch:"Switch",requestConnect:"Requesting Connection",continueInWallet:"Please continue in the DID Wallet",loginWithBelow:"Login using the following methods",otherAccount:"Other account"},zh:{generateError:"二维码生成失败",checkError:"扫码状态检查失败",scanned:"请到您的钱包上继续操作……",mfaCode:"我们给你的 DID 钱包发送了一个二次验证请求,请输入下面的数字完成验证",refresh:"刷新",open:"在 DID 钱包中打开",openDidConnect:"打开 DID Connect",error:"服务器开小差了!",invalidSessionStatus:"无效的会话状态",success:"成功",failed:"失败",wait:"请稍候",waiting:"正在等待下个流程完成...",forbidden:"登录用户和扫码用户不匹配,为保障安全,请退出后重新登录",oops:"哎呀",webWallet:"使用 Web Wallet 验证",cancel:"取消",close:"关闭",retry:"重试",retryForbidden:"请关闭当前弹窗并重新开始当前流程",getWallet:"还没有 DID Wallet? 现在下载.",back:"返回",connect:"请选择以下方式之一连接",connecting:"正在自动连接您的",connectingSuffix:"或选择以下方式手动连接",connected:"已连接您的",busyTitle:"钱包繁忙",busyDesc:"正在处理其他请求",loginWithBefore:"使用",loginWithAfter:"登录",bindOAuth:"绑定第三方登录",bind:"绑定",loginOAuthFailed:"第三方登录失败",loginWithAnotherAccount:"使用其他账户登录",quickLoginDescription:"检测到当前统一登录环境中已存在下列账户,点击以下账户,进行快捷登录",quickLogin:"使用 {masterAppName} 账户登录 {appName}",sessionFrom:"发现自 {appName} 应用",loginWithThisAccount:"点击使用此账号登录",chooseAccount:"选择一个账号",lostPassport:"找回通行证",lostPassportTips:"如果您丢失了登录通行证,您可以点击这里来找回。",download:"下载",downloadTips:"没有 DID Wallet ?",scanWithWallet:"使用 DID Wallet 扫码二维码",openInWallet:"使用 DID Wallet 打开",webExtension:"浏览器插件",connectButton:"连接",switch:"切换",requestConnect:"正在请求连接",continueInWallet:"请在 DID Wallet 中继续完成您的操作",loginWithBelow:"使用以下方式进行登录",otherAccount:"其他账号"}},StateContext=reactExports.createContext({isWalletWebview:!1,isMobile:!1,matchSmallScreen:!1}),{Provider:Provider$5,Consumer:Consumer$5}=StateContext;function StateProvider({children:a,blocklet:j,action:_e,extraParams:et,locale:tt,...nt}){var zt;const rt=useMemoizedFn((Nt,Vt={})=>translate(translations$3,Nt,tt,"en",Vt)),it=reactExports.useContext(SessionContext$1),ot=useReactive({sourceAppPid:void 0,status:"created",autoActiveWebview:!0}),ct=reactExports.useRef({cancelCount:0}),ut=useBrowser(),{appInfoList:dt,autoGenerateSourceAppPid:pt,canSwitchApp:mt}=useApps({blocklet:j,connectState:ot,action:_e,sourceAppPid:et==null?void 0:et.sourceAppPid,enableSwitchApp:(et==null?void 0:et.forceSwitch)||(et==null?void 0:et.enableSwitchApp)}),vt=reactExports.useRef(null),Et=useSize(vt),xt=((Et==null?void 0:Et.width)||0)<500,Pt=useCreation(()=>{var Nt,Vt;return mt?{...et,sourceAppPid:isUndefined$2(ot.sourceAppPid)?pt:ot.sourceAppPid}:(Nt=it==null?void 0:it.session)!=null&&Nt.user?isUndefined$2(et==null?void 0:et.sourceAppPid)?{...et,sourceAppPid:(Vt=it.session.user)==null?void 0:Vt.sourceAppPid}:et:{...et,sourceAppPid:pt}},[mt,et,ot.sourceAppPid,_e,pt,(zt=it==null?void 0:it.session)==null?void 0:zt.user]),Dt=useMemoizedFn(Nt=>{ot.status=Nt||"created"}),Ft={isWalletWebview:ut.wallet,isMobile:ut.mobile.any,matchSmallScreen:xt,connectState:ot,staticState:ct,reactiveState:ot,appInfoList:dt,extraParams:Pt,blocklet:j,t:rt,locale:tt,changeStatus:Dt};return jsxRuntimeExports.jsx(Provider$5,{value:Ft,children:jsxRuntimeExports.jsx(Box,{...nt,ref:vt,children:a})})}StateProvider.propTypes={children:PropTypes.any.isRequired,blocklet:PropTypes.object.isRequired,action:PropTypes.string.isRequired,sourceAppPid:PropTypes.string,extraParams:PropTypes.object,locale:PropTypes.string};StateProvider.defaultProps={sourceAppPid:void 0,extraParams:{},locale:"en"};function useStateContext(){return reactExports.useContext(StateContext)}const data$p={width:24,height:24,hidden:!0,body:'<path fill="currentColor" d="M12 11q.825 0 1.413-.588Q14 9.825 14 9t-.587-1.413Q12.825 7 12 7q-.825 0-1.412.587Q10 8.175 10 9q0 .825.588 1.412Q11.175 11 12 11Zm0 2q-1.65 0-2.825-1.175Q8 10.65 8 9q0-1.65 1.175-2.825Q10.35 5 12 5q1.65 0 2.825 1.175Q16 7.35 16 9q0 1.65-1.175 2.825Q13.65 13 12 13Zm0 11q-2.475 0-4.662-.938q-2.188-.937-3.825-2.574Q1.875 18.85.938 16.663Q0 14.475 0 12t.938-4.663q.937-2.187 2.575-3.825Q5.15 1.875 7.338.938Q9.525 0 12 0t4.663.938q2.187.937 3.825 2.574q1.637 1.638 2.574 3.825Q24 9.525 24 12t-.938 4.663q-.937 2.187-2.574 3.825q-1.638 1.637-3.825 2.574Q14.475 24 12 24Zm0-2q1.8 0 3.375-.575T18.25 19.8q-.825-.925-2.425-1.612q-1.6-.688-3.825-.688t-3.825.688q-1.6.687-2.425 1.612q1.3 1.05 2.875 1.625T12 22Zm-7.7-3.6q1.2-1.3 3.225-2.1q2.025-.8 4.475-.8q2.45 0 4.463.8q2.012.8 3.212 2.1q1.1-1.325 1.713-2.95Q22 13.825 22 12q0-2.075-.788-3.887q-.787-1.813-2.15-3.175q-1.362-1.363-3.175-2.151Q14.075 2 12 2q-2.05 0-3.875.787q-1.825.788-3.187 2.151Q3.575 6.3 2.788 8.113Q2 9.925 2 12q0 1.825.6 3.463q.6 1.637 1.7 2.937Z"/>'},data$o={width:24,height:24,body:'<path fill="currentColor" d="M16.15 13H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.15L13.3 8.15q-.3-.3-.288-.7t.288-.7q.3-.3.713-.313t.712.288L19.3 11.3q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.575 4.575q-.3.3-.712.288t-.713-.313q-.275-.3-.288-.7t.288-.7L16.15 13Z"/>'};var zhCn={exports:{}};(function(a,j){(function(_e,et){a.exports=et(dayjs_minExports)})(commonjsGlobal,function(_e){function et(rt){return rt&&typeof rt=="object"&&"default"in rt?rt:{default:rt}}var tt=et(_e),nt={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(rt,it){return it==="W"?rt+"周":rt+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(rt,it){var ot=100*rt+it;return ot<600?"凌晨":ot<900?"早上":ot<1100?"上午":ot<1300?"中午":ot<1800?"下午":"晚上"}};return tt.default.locale(nt,null,!0),nt})})(zhCn);var updateLocale$1={exports:{}};(function(a,j){(function(_e,et){a.exports=et()})(commonjsGlobal,function(){return function(_e,et,tt){tt.updateLocale=function(nt,rt){var it=tt.Ls[nt];if(it)return(rt?Object.keys(rt):[]).forEach(function(ot){it[ot]=rt[ot]}),it}}})})(updateLocale$1);var updateLocaleExports=updateLocale$1.exports;const updateLocale=getDefaultExportFromCjs$1(updateLocaleExports);defaultDayjs.extend(localizedFormatPlugin);defaultDayjs.extend(utc$1);defaultDayjs.extend(timezone$1);defaultDayjs.extend(updateLocale);defaultDayjs.extend(relativeTime$1);defaultDayjs.updateLocale("zh-cn",{relativeTime:{future:"%s后",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"}});setDateTool(defaultDayjs);function RelativeTime({value:a,locale:j,withoutSuffix:_e,from:et,to:tt,type:nt,tz:rt,relativeRange:it,...ot}){if(!a)return"-";const ct=j==="zh"?"zh-cn":"en-us",ut=defaultDayjs(a).locale(ct);rt&&ut.tz(rt);const dt=formatToDatetime$1(a,{locale:ct,tz:rt});let pt;if(et)pt=ut.from(et,_e);else if(tt)pt=ut.to(tt,_e);else if(it){const Et=ut.diff(defaultDayjs());Math.abs(Et)>it&&(pt=dt)}pt||(pt=ut.fromNow(_e));let mt=pt,vt=dt;return nt==="absolute"&&(mt=dt,vt=pt),jsxRuntimeExports.jsx(Tooltip,{title:vt,placement:"top-end",enterTouchDelay:0,children:jsxRuntimeExports.jsx("span",{...ot,children:mt})})}RelativeTime.propTypes={value:PropTypes.oneOfType([PropTypes.string,PropTypes.number]).isRequired,locale:PropTypes.string,withoutSuffix:PropTypes.bool,from:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),to:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),type:PropTypes.oneOf(["relative","absolute"]),tz:PropTypes.string,relativeRange:PropTypes.number};RelativeTime.defaultProps={locale:"en",withoutSuffix:!1,from:"",to:"",type:"relative",tz:void 0,relativeRange:void 0};const data$n={width:24,height:24,body:'<path fill="currentColor" d="M7 7H5a2 2 0 0 0-2 2v8h2v-4h2v4h2V9a2 2 0 0 0-2-2m0 4H5V9h2m7-2h-4v10h2v-4h2a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2m0 4h-2V9h2m6 0v6h1v2h-4v-2h1V9h-1V7h4v2Z"/>'},data$m={width:24,height:24,body:'<path fill="currentColor" d="M5 17q-.425 0-.713-.288T4 16v-4q0-.425.288-.713T5 11q.425 0 .713.288T6 12v4q0 .425-.288.713T5 17Zm4 0q-.825 0-1.413-.588T7 15V9q0-.825.588-1.413T9 7h2q.825 0 1.413.588T13 9v6q0 .825-.588 1.413T11 17H9Zm0-2h2V9H9v6Zm6 2q-.425 0-.713-.288T14 16q0-.425.288-.713T15 15h3v-2h-2q-.825 0-1.413-.588T14 11V9q0-.825.588-1.413T16 7h3q.425 0 .713.288T20 8q0 .425-.288.713T19 9h-3v2h2q.825 0 1.413.588T20 13v2q0 .825-.588 1.413T18 17h-3ZM5 9q-.425 0-.713-.288T4 8q0-.425.288-.713T5 7q.425 0 .713.288T6 8q0 .425-.288.713T5 9Z"/>'},data$l={width:24,height:24,body:'<path fill="currentColor" d="M12 22q-2.05 0-3.875-.788t-3.188-2.15q-1.362-1.362-2.15-3.187T2 12q0-2.075.788-3.888t2.15-3.174Q6.3 3.575 8.124 2.788T12 2q2.075 0 3.888.788t3.174 2.15q1.363 1.362 2.15 3.175T22 12q0 2.05-.788 3.875t-2.15 3.188q-1.362 1.362-3.175 2.15T12 22Zm0-2.05q.65-.9 1.125-1.875T13.9 16h-3.8q.3 1.1.775 2.075T12 19.95Zm-2.6-.4q-.45-.825-.788-1.713T8.05 16H5.1q.725 1.25 1.813 2.175T9.4 19.55Zm5.2 0q1.4-.45 2.488-1.375T18.9 16h-2.95q-.225.95-.562 1.838T14.6 19.55ZM4.25 14h3.4q-.075-.5-.113-.988T7.5 12q0-.525.038-1.012T7.65 10h-3.4q-.125.5-.188.988T4 12q0 .525.063 1.012T4.25 14Zm5.4 0h4.7q.075-.5.113-.988T14.5 12q0-.525-.038-1.012T14.35 10h-4.7q-.075.5-.113.988T9.5 12q0 .525.038 1.012T9.65 14Zm6.7 0h3.4q.125-.5.188-.988T20 12q0-.525-.063-1.012T19.75 10h-3.4q.075.5.113.988T16.5 12q0 .525-.038 1.012T16.35 14Zm-.4-6h2.95q-.725-1.25-1.812-2.175T14.6 4.45q.45.825.788 1.713T15.95 8ZM10.1 8h3.8q-.3-1.1-.775-2.075T12 4.05q-.65.9-1.125 1.875T10.1 8Zm-5 0h2.95q.225-.95.563-1.838T9.4 4.45Q8 4.9 6.912 5.825T5.1 8Z"/>'},data$k={width:24,height:24,body:'<path fill="currentColor" d="M1 18q.225-2.675 1.638-4.925T6.4 9.5L4.55 6.3q-.15-.225-.075-.475T4.8 5.45q.2-.125.45-.05t.4.3L7.5 8.9Q9.65 8 12 8t4.5.9l1.85-3.2q.15-.225.4-.3t.45.05q.25.125.325.375t-.075.475L17.6 9.5q2.35 1.325 3.762 3.575T23 18H1Zm6-2.75q.525 0 .888-.363T8.25 14q0-.525-.363-.888T7 12.75q-.525 0-.888.363T5.75 14q0 .525.363.888T7 15.25Zm10 0q.525 0 .888-.363T18.25 14q0-.525-.363-.888T17 12.75q-.525 0-.888.363T15.75 14q0 .525.363.888t.887.362Z"/>'},data$j={width:24,height:24,body:'<path fill="currentColor" d="M14.6 8.075q0-1.075-.712-1.725T12 5.7q-.725 0-1.313.313t-1.012.912q-.4.575-1.088.663T7.4 7.225q-.35-.325-.388-.8t.238-.9q.8-1.2 2.038-1.863T12 3q2.425 0 3.938 1.375t1.512 3.6q0 1.125-.475 2.025t-1.75 2.125q-.925.875-1.25 1.363T13.55 14.6q-.1.6-.513 1t-.987.4q-.575 0-.988-.388t-.412-.962q0-.975.425-1.788T12.5 11.15q1.275-1.125 1.688-1.738t.412-1.337ZM12 22q-.825 0-1.413-.588T10 20q0-.825.588-1.413T12 18q.825 0 1.413.588T14 20q0 .825-.588 1.413T12 22Z"/>'},data$i={width:24,height:24,body:'<path fill="currentColor" d="M4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.588 1.413T20 20H4ZM20 8l-7.475 4.675q-.125.075-.263.113t-.262.037q-.125 0-.263-.037t-.262-.113L4 8v10h16V8Zm-8 3l8-5H4l8 5ZM4 8v.25v-1.475v.025V6v.8v-.012V8.25V8v10V8Z"/>'};function WalletOSIcon({loading:a,walletOS:j,provider:_e,color:et}){return a?jsxRuntimeExports.jsx(Icon,{icon:data$j,style:{color:"transparent"}}):_e===LOGIN_PROVIDER$1.AUTH0?jsxRuntimeExports.jsx(Icon,{icon:data$i,style:{color:et,transform:"scale(0.85)"}}):j==="ios"?jsxRuntimeExports.jsx(Icon,{icon:data$m,style:{color:et,transform:"scale(1.1)"}}):j==="android"?jsxRuntimeExports.jsx(Icon,{icon:data$k,style:{color:et}}):j==="web"?jsxRuntimeExports.jsx(Icon,{icon:data$l,style:{color:et}}):j==="api"?jsxRuntimeExports.jsx(Icon,{icon:data$n,style:{color:et,transform:"scale(1.05)"}}):null}WalletOSIcon.propTypes={loading:PropTypes.bool,walletOS:PropTypes.string,provider:PropTypes.string,color:PropTypes.string};WalletOSIcon.defaultProps={loading:!1,walletOS:null,provider:null,color:"black"};function ItemWrap({children:a,...j}){return jsxRuntimeExports.jsx(Box,{...j,sx:{borderRadius:2,backgroundColor:colors$1.backgroundsBgSubtile,p:2,transition:"background-color 0.5s","&:hover":{backgroundColor:colors$1.backgroundsBgSubtileHover},...j.sx},children:a})}ItemWrap.propTypes={children:PropTypes.any.isRequired};const data$h={width:24,height:24,body:'<path fill="currentColor" d="M8 20h8v-3q0-1.65-1.175-2.825T12 13q-1.65 0-2.825 1.175T8 17v3Zm4-9q1.65 0 2.825-1.175T16 7V4H8v3q0 1.65 1.175 2.825T12 11ZM5 22q-.425 0-.713-.288T4 21q0-.425.288-.713T5 20h1v-3q0-1.525.713-2.863T8.7 12q-1.275-.8-1.987-2.138T6 7V4H5q-.425 0-.713-.288T4 3q0-.425.288-.713T5 2h14q.425 0 .713.288T20 3q0 .425-.288.713T19 4h-1v3q0 1.525-.713 2.863T15.3 12q1.275.8 1.988 2.138T18 17v3h1q.425 0 .713.288T20 21q0 .425-.288.713T19 22H5Z"/>'},data$g={width:24,height:24,body:'<path fill="currentColor" d="m5.75 18l-.4-.35q-1.3-1.15-1.825-2.625T3 12.05Q3 9.7 4.187 7.787T7.4 4.85q.35-.2.75-.025t.525.575q.125.375-.013.75t-.487.575q-1.45.8-2.313 2.213T5 12.05q0 1.125.425 2.188T6.75 16.2l.25.25V15q0-.425.288-.713T8 14q.425 0 .713.288T9 15v4q0 .425-.288.713T8 20H4q-.425 0-.713-.288T3 19q0-.425.288-.713T4 18h1.75ZM17 7.55V9q0 .425-.288.713T16 10q-.425 0-.713-.288T15 9V5q0-.425.288-.713T16 4h4q.425 0 .713.288T21 5q0 .425-.288.713T20 6h-1.75l.4.35q1.025 1.05 1.575 2.225t.7 2.425H18.9q-.125-.875-.537-1.675T17.25 7.8L17 7.55ZM17.4 23q-.2 0-.313-.113t-.162-.287l-.225-1.1q-.3-.125-.563-.263T15.6 20.9l-1.075.325q-.175.05-.325-.013T13.95 21l-.6-1q-.1-.15-.05-.325t.175-.3l.825-.725q-.05-.35-.05-.65t.05-.65l-.825-.725q-.125-.125-.175-.3t.05-.325l.6-1q.1-.15.25-.212t.325-.013l1.075.325q.275-.2.538-.337t.562-.263l.225-1.1q.05-.175.163-.288T17.4 13h1.2q.2 0 .313.113t.162.287l.225 1.1q.3.125.563.275t.537.375l1.05-.375q.175-.05.338.013t.262.212l.6 1.05q.1.15.063.325t-.163.3l-.85.725q.05.3.05.625t-.05.625l.825.725q.125.125.175.3t-.05.325l-.6 1q-.1.15-.25.213t-.325.012L20.4 20.9q-.275.2-.537.338t-.563.262l-.225 1.1q-.05.175-.163.288T18.6 23h-1.2Zm.6-3q.825 0 1.413-.588T20 18q0-.825-.588-1.413T18 16q-.825 0-1.413.588T16 18q0 .825.588 1.413T18 20Z"/>'};function LoadingMask({size:a,padding:j,borderWidth:_e,borderRadius:et,duration:tt,children:nt}){const rt=a,it=et??rt/8,ot=_e??rt/32,ct=j??rt*.2-ot,ut=tt??2.5;return jsxRuntimeExports.jsxs(Box,{sx:{display:"inline-flex",justifyContent:"center",alignItems:"center",width:rt,height:rt,position:"relative"},children:[jsxRuntimeExports.jsx(Box,{sx:{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center",width:rt,height:rt,overflow:"hidden",borderRadius:`${it}px`,backgroundColor:colors$1.strokeBorderBase,"&::before,&::after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,pointerEvents:"none"},"&::after":{left:ot,right:ot,top:ot,bottom:ot,backgroundColor:"white",borderRadius:`${it-ot}px`},"&::before":{background:`conic-gradient(from 45deg, ${colors$1.foregroundsFgInteractiveTransparent} 0%, ${colors$1.foregroundsFgInteractiveTransparent} 50%, ${colors$1.foregroundsFgInteractive} 90%, ${colors$1.foregroundsFgInteractive} 100%)`,transform:"scale(100)",animation:`rotate ${ut}s linear infinite`,"@keyframes rotate":{"0%":{transform:"scale(100) rotate(0deg)"},"100%":{transform:"scale(100) rotate(360deg)"}}}}}),jsxRuntimeExports.jsx(Box,{sx:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",width:rt-ct-ot,height:rt-ct-ot},children:nt})]})}LoadingMask.propTypes={size:PropTypes.number,padding:PropTypes.number,borderRadius:PropTypes.number,borderWidth:PropTypes.number,duration:PropTypes.number,children:PropTypes.node.isRequired};LoadingMask.defaultProps={size:64,padding:void 0,borderWidth:void 0,duration:void 0,borderRadius:void 0};var DidWallet={};Object.defineProperty(DidWallet,"__esModule",{value:!0});var default_1$4=DidWallet.default=void 0;_interopRequireDefault$4(reactExports);var _jsxRuntime$3=jsxRuntimeExports;function _interopRequireDefault$4(a){return a&&a.__esModule?a:{default:a}}function ownKeys$3(a,j){var _e=Object.keys(a);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(a);j&&(et=et.filter(function(tt){return Object.getOwnPropertyDescriptor(a,tt).enumerable})),_e.push.apply(_e,et)}return _e}function _objectSpread$1(a){for(var j=1;j<arguments.length;j++){var _e=arguments[j]!=null?arguments[j]:{};j%2?ownKeys$3(Object(_e),!0).forEach(function(et){_defineProperty$1(a,et,_e[et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(_e)):ownKeys$3(Object(_e)).forEach(function(et){Object.defineProperty(a,et,Object.getOwnPropertyDescriptor(_e,et))})}return a}function _defineProperty$1(a,j,_e){return j=_toPropertyKey$1(j),j in a?Object.defineProperty(a,j,{value:_e,enumerable:!0,configurable:!0,writable:!0}):a[j]=_e,a}function _toPropertyKey$1(a){var j=_toPrimitive$1(a,"string");return typeof j=="symbol"?j:String(j)}function _toPrimitive$1(a,j){if(typeof a!="object"||!a)return a;var _e=a[Symbol.toPrimitive];if(_e!==void 0){var et=_e.call(a,j||"default");if(typeof et!="object")return et;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(a)}var Component$1=function a(j){return(0,_jsxRuntime$3.jsxs)("svg",_objectSpread$1(_objectSpread$1({},j),{},{children:[(0,_jsxRuntime$3.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,_jsxRuntime$3.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"url(#paint0_linear)"}),(0,_jsxRuntime$3.jsx)("path",{d:"M3.52 7.36A2.56 2.56 0 0 1 6.08 4.8h19.84a2.56 2.56 0 0 1 2.56 2.56v12.16a2.56 2.56 0 0 1-2.56 2.56H6.08a2.56 2.56 0 0 1-2.56-2.56V7.36z",fill:"#9FCBFF",filter:"url(#filter0_i)"}),(0,_jsxRuntime$3.jsx)("path",{d:"M2.56 9.28a2.56 2.56 0 0 1 2.56-2.56h21.76a2.56 2.56 0 0 1 2.56 2.56v13.6a2.56 2.56 0 0 1-2.56 2.56H5.12a2.56 2.56 0 0 1-2.56-2.56V9.28z",fill:"url(#paint1_linear)",filter:"url(#filter1_d)"}),(0,_jsxRuntime$3.jsx)("path",{d:"M0 22.32l32-6.16V32H0v-9.68z",fill:"url(#paint2_linear)",filter:"url(#filter2_d)"}),(0,_jsxRuntime$3.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.536 9.248h8.288c.408 0 .74.3.74.672v4.64c0 .371-.332.672-.74.672H5.536c-.408 0-.74-.3-.74-.672v-.04a.158.158 0 1 0-.316 0v.04c0 .53.473.96 1.056.96h8.288c.583 0 1.056-.43 1.056-.96V9.92c0-.53-.473-.96-1.056-.96H5.536c-.583 0-1.056.43-1.056.96v.04a.158.158 0 0 0 .317 0v-.04c0-.371.33-.672.739-.672zm-1.023 4.638a.127.127 0 0 0 .087.034h1.267c.472 0 .83-.107 1.076-.322.25-.217.381-.548.397-.993a11.281 11.281 0 0 0 0-.734c-.012-.426-.148-.751-.406-.975-.258-.224-.622-.336-1.09-.336H4.6a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.794-.806c-.099.1-.253.149-.464.149h-.502V11.25h.478c.21 0 .369.051.474.154.108.102.166.26.172.475.006.09.01.208.01.355s-.004.267-.01.36c-.006.221-.059.383-.158.485zm1.63.806a.127.127 0 0 0 .087.034h.64a.116.116 0 0 0 .087-.034.11.11 0 0 0 .038-.086v-3.12a.11.11 0 0 0-.038-.086.116.116 0 0 0-.086-.034h-.641a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.637.034a.127.127 0 0 1-.086-.034.128.128 0 0 1-.033-.086v-3.12c0-.035.01-.064.033-.086a.127.127 0 0 1 .086-.034h1.244c.469 0 .832.112 1.09.336.259.224.394.549.407.974a11.244 11.244 0 0 1 0 .735c-.016.445-.148.776-.397.993-.245.215-.604.322-1.076.322H9.574zm1.244-.691c.21 0 .365-.05.464-.149.099-.102.152-.264.158-.485a5.52 5.52 0 0 0 .01-.36c0-.147-.004-.265-.01-.355-.006-.214-.064-.373-.172-.475-.106-.103-.263-.154-.474-.154h-.478v1.978h.502zm2.468-1.382a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.286-.288.286zm0 1.495a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.287-.288.287z",fill:"#4598FA"})]}),(0,_jsxRuntime$3.jsxs)("defs",{children:[(0,_jsxRuntime$3.jsxs)("filter",{id:"filter0_i",x:"3.52",y:"1.8",width:"24.96",height:"20.28",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,_jsxRuntime$3.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,_jsxRuntime$3.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,_jsxRuntime$3.jsx)("feOffset",{dy:"-3"}),(0,_jsxRuntime$3.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,_jsxRuntime$3.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.2 0"}),(0,_jsxRuntime$3.jsx)("feBlend",{in2:"shape",result:"effect1_innerShadow"})]}),(0,_jsxRuntime$3.jsxs)("filter",{id:"filter1_d",x:"-1.44",y:"1.72",width:"34.88",height:"26.72",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,_jsxRuntime$3.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,_jsxRuntime$3.jsx)("feOffset",{dy:"-1"}),(0,_jsxRuntime$3.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{values:"0 0 0 0 0.220767 0 0 0 0 0.470803 0 0 0 0 0.701605 0 0 0 0.18 0"}),(0,_jsxRuntime$3.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,_jsxRuntime$3.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,_jsxRuntime$3.jsxs)("filter",{id:"filter2_d",x:"-5",y:"11.16",width:"42",height:"25.84",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,_jsxRuntime$3.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,_jsxRuntime$3.jsx)("feOffset",{}),(0,_jsxRuntime$3.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{values:"0 0 0 0 0.14382 0 0 0 0 0.205065 0 0 0 0 0.522634 0 0 0 0.25 0"}),(0,_jsxRuntime$3.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,_jsxRuntime$3.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,_jsxRuntime$3.jsxs)("linearGradient",{id:"paint0_linear",x1:"16",x2:"16",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,_jsxRuntime$3.jsx)("stop",{stopColor:"#4F9DF6"}),(0,_jsxRuntime$3.jsx)("stop",{offset:"1",stopColor:"#0A79F8"})]}),(0,_jsxRuntime$3.jsxs)("linearGradient",{id:"paint1_linear",x1:"16",y1:"6.72",x2:"16",y2:"25.44",gradientUnits:"userSpaceOnUse",children:[(0,_jsxRuntime$3.jsx)("stop",{stopColor:"#fff"}),(0,_jsxRuntime$3.jsx)("stop",{offset:"1",stopColor:"#ECEFFF"})]}),(0,_jsxRuntime$3.jsxs)("linearGradient",{id:"paint2_linear",x1:"16",y1:"19.2",x2:"18.48",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,_jsxRuntime$3.jsx)("stop",{offset:".007",stopColor:"#77B2F6"}),(0,_jsxRuntime$3.jsx)("stop",{offset:".055",stopColor:"#4F9DF6"}),(0,_jsxRuntime$3.jsx)("stop",{offset:"1",stopColor:"#4598FA"})]}),(0,_jsxRuntime$3.jsx)("clipPath",{id:"clip0",children:(0,_jsxRuntime$3.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"#fff"})})]})]}))};Component$1.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};Component$1.displayName="did-wallet";default_1$4=DidWallet.default=Component$1;function Success({size:a,backgroundColor:j,borderWidth:_e}){const et=a-_e*2;return jsxRuntimeExports.jsxs(Box,{className:"check-icon",sx:{width:et,height:et,position:"relative",borderRadius:"100%","&, *, *::before, *::after":{boxSizing:"content-box !important"},border:tt=>`${_e}px solid ${tt.palette.success.main}`,"&::before, &::after":{content:'""',height:"125%",position:"absolute",background:j,transform:"rotate(-45deg)"},"&::before":{top:`${_e/2+1}px`,left:`-${_e/2}px`,width:`calc(32.5% + ${_e}px)`,transformOrigin:"100% 50%",borderRadius:"100% 0 0 100%"},"&::after":{top:0,left:"37.5%",width:`calc(70% + ${_e}px)`,transformOrigin:"0 50%",borderRadius:"0 100% 100% 0",animation:"rotate-circle 4.25s ease-in"},".icon-line":{height:`${_e+1}px`,backgroundColor:tt=>tt.palette.success.main,display:"block",borderRadius:"100vw",position:"absolute",zIndex:10},"@keyframes rotate-circle":{"0%":{transform:"rotate(-45deg)"},"5%":{transform:"rotate(-45deg)"},"12%":{transform:"rotate(-405deg)"},"100%":{transform:"rotate(-405deg)"}}},children:[jsxRuntimeExports.jsx(Box,{component:"span",className:"icon-line line-tip",sx:{top:"57.5%",left:"17.5%",width:"31.25%",transform:"rotate(45deg)",animation:"icon-line-tip 0.75s","@keyframes icon-line-tip":{"0%":{width:"0",left:"1px",top:"23.75%"},"54%":{width:"0",left:"1px",top:"23.75%"},"70%":{width:"62.5%",left:"-10%",top:"46.25%"},"84%":{width:"21.25%",left:"26.25%",top:"60%"},"100%":{width:"31.25",left:"17.5%",top:"56.25%"}}}}),jsxRuntimeExports.jsx(Box,{component:"span",className:"icon-line line-long",sx:{top:"47.5%",right:"10%",width:"58.75%",transform:"rotate(-45deg)",animation:"icon-line-long 0.75s","@keyframes icon-line-long":{"0%":{width:"0",right:"57.5%",top:"67.5%"},"65%":{width:"0",right:"57.5%",top:"67.5%"},"84%":{width:"68.75%",right:"0px",top:"43.75%"},"100%":{width:"58.75%",right:"10%",top:"47.5%"}}}}),jsxRuntimeExports.jsx(Box,{className:"icon-circle",sx:{top:`-${_e}px`,left:`-${_e}px`,zIndex:10,width:et,height:et,borderRadius:"100%",position:"absolute",boxSizing:"contentBox",border:`${_e}px solid rgba(76, 175, 80, 0.5)`}}),jsxRuntimeExports.jsx(Box,{className:"icon-fix",sx:{top:`calc(8% - ${Math.sqrt(_e)}px)`,width:_e+1,left:`calc(32% - ${Math.sqrt(_e)}px)`,zIndex:1,height:et+_e*2,position:"absolute",transform:"rotate(-45deg)",backgroundColor:j}})]})}Success.propTypes={size:PropTypes.number,borderWidth:PropTypes.number,backgroundColor:PropTypes.string};Success.defaultProps={size:64,borderWidth:4,backgroundColor:"white"};function Button({...a}){return jsxRuntimeExports.jsx(Button$1,{variant:"outlined",color:"inherit",...a,sx:{borderRadius:2,borderColor:colors$1.strokeBorderBase,color:colors$1.foregroundsFgBase,backgroundColor:"#fff",fontWeight:500,fontSize:13,...a.sx}})}function BaseStatus({icon:a,title:j,color:_e,description:et,extraContent:tt,actions:nt}){return jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:1.5},children:[reactExports.isValidElement(a)?a:jsxRuntimeExports.jsx(Box,{sx:{backgroundColor:_e,borderRadius:"100%",fontSize:0},children:jsxRuntimeExports.jsx(Icon,{icon:a,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})}),jsxRuntimeExports.jsxs(Box,{sx:{textAlign:"center"},children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",sx:{fontWeight:500,color:_e},children:j}),jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{color:colors$1.foregroundsFgSubtile,overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"3",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:et})]}),tt,jsxRuntimeExports.jsx(Box,{children:nt})]})}BaseStatus.propTypes={icon:PropTypes.node,title:PropTypes.string,color:PropTypes.string,description:PropTypes.string,extraContent:PropTypes.node,actions:PropTypes.node};BaseStatus.defaultProps={icon:null,title:"",color:colors$1.foregroundsFgBase,description:"",extraContent:null,actions:null};function MfaCode({title:a,mfaCode:j}){return jsxRuntimeExports.jsxs(Box,{className:"status-mfa",sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",border:`1px solid ${colors$1.strokeBorderBase}`,borderRadius:2,maxWidth:"360px",backgroundColor:"transparent",p:1},children:[jsxRuntimeExports.jsx(Box,{className:"status-mfa-tip",sx:{textAlign:"center",textWrap:"balance"},children:a}),jsxRuntimeExports.jsx(Typography,{className:"status-mfa-code",sx:{mt:1,lineHeight:1,fontSize:"36px",fontWeight:700,letterSpacing:1},children:j})]})}MfaCode.propTypes={title:PropTypes.string,mfaCode:PropTypes.number};MfaCode.defaultProps={title:"",mfaCode:0};function ConnectStatus({status:a,nextWorkflow:j,mfaCode:_e,onCancel:et,onRetry:tt,onClose:nt,messages:rt,locale:it,...ot}){const ct=translations$3[it]||translations$3.en;return jsxRuntimeExports.jsxs(Box,{...ot,sx:{py:2,minHeight:200,...ot.sx},children:[a==="scanned"&&!j&&jsxRuntimeExports.jsx(BaseStatus,{icon:jsxRuntimeExports.jsx(LoadingMask,{size:52,borderRadius:12,children:jsxRuntimeExports.jsx(default_1$4,{style:{width:"100%",height:"100%"}})}),title:ct.requestConnect,description:ct.continueInWallet,extraContent:_e>0&&jsxRuntimeExports.jsx(MfaCode,{mfaCode:_e,title:ct.mfaCode}),actions:jsxRuntimeExports.jsx(Button,{onClick:et,children:ct.back})}),a==="scanned"&&!!j&&jsxRuntimeExports.jsx(BaseStatus,{color:colors$1.foregroundsFgInteractive,icon:data$h,title:ct.wait,description:ct.waiting,extraContent:_e>0&&jsxRuntimeExports.jsx(MfaCode,{mfaCode:_e,title:ct.mfaCode}),actions:jsxRuntimeExports.jsx(Button,{onClick:et,children:ct.back})}),a==="succeed"&&jsxRuntimeExports.jsx(BaseStatus,{color:"#3ab39d",icon:jsxRuntimeExports.jsx(Success,{size:52}),title:ct.success,description:rt.success,actions:jsxRuntimeExports.jsx(Button,{onClick:nt,children:ct.close})}),a==="error"&&jsxRuntimeExports.jsx(BaseStatus,{color:colors$1.buttonsButtonDanger,icon:data$q,title:ct.failed,description:rt.error||ct.error,actions:jsxRuntimeExports.jsx(Button,{onClick:tt,children:ct.retry})}),a==="busy"&&jsxRuntimeExports.jsx(BaseStatus,{color:"#ed6c02",icon:data$g,title:ct.busyTitle,description:rt.error||ct.busyDesc,actions:jsxRuntimeExports.jsx(Button,{onClick:tt,children:ct.retry})})]})}ConnectStatus.propTypes={status:PropTypes.string,nextWorkflow:PropTypes.string,mfaCode:PropTypes.number,onCancel:PropTypes.func,onRetry:PropTypes.func,onClose:PropTypes.func,messages:PropTypes.shape({confirm:PropTypes.string.isRequired,success:PropTypes.any.isRequired,error:PropTypes.any.isRequired}).isRequired,locale:PropTypes.oneOf(["en","zh"])};ConnectStatus.defaultProps={status:"",nextWorkflow:"",mfaCode:0,onCancel:noop$7,onRetry:noop$7,onClose:noop$7,locale:"en"};function QuickLoginItem({userSession:a,locale:j}){var et,tt,nt,rt;const _e=getSourceProvider(a==null?void 0:a.user)==="wallet";return jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:colors$1.surfacePrimarySubtitle}},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1.5,flex:1,overflow:"hidden"},children:[jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{src:a.user.avatar,did:a.user.did,size:48,variant:"circle",shape:"circle"}),jsxRuntimeExports.jsxs(Box,{sx:{flex:1,overflow:"hidden"},children:[jsxRuntimeExports.jsxs(Typography,{sx:{fontSize:"16px",fontWeight:"bold",display:"flex",alignItems:"center",gap:1,color:colors$1.textBase},children:[a.user.fullName,jsxRuntimeExports.jsx(Chip,{label:((et=a.user)==null?void 0:et.roleTitle)||((tt=a.user)==null?void 0:tt.role),size:"small",variant:"outlined",sx:()=>({height:"auto",fontWeight:"bold",fontSize:"12px",borderColor:colors$1.lineBorderStrong,color:colors$1.textSubtitle})})]}),_e?jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[jsxRuntimeExports.jsx(WalletOSIcon,{provider:(nt=a==null?void 0:a.extra)==null?void 0:nt.provider,walletOS:(rt=a==null?void 0:a.extra)==null?void 0:rt.walletOS,color:colors$1.textSubtitle}),jsxRuntimeExports.jsx(DID,{did:a.user.did,size:12,sx:{lineHeight:1,fontSize:"12px",mt:.5},responsive:!0})]}):jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"12px",color:colors$1.textSubtitle},children:a.user.email})]})]}),a.updatedAt&&jsxRuntimeExports.jsx(Box,{component:"span",sx:{color:colors$1.textMuted,fontSize:"12px",flexShrink:0},children:jsxRuntimeExports.jsx(RelativeTime,{value:a.updatedAt,locale:j})})]})}QuickLoginItem.propTypes={userSession:PropTypes.shape({user:PropTypes.shape({avatar:PropTypes.string,did:PropTypes.string,fullName:PropTypes.string,role:PropTypes.string,roleTitle:PropTypes.string,email:PropTypes.string}),extra:PropTypes.shape({walletOS:PropTypes.string,provider:PropTypes.string}),updatedAt:PropTypes.string}).isRequired,locale:PropTypes.string};QuickLoginItem.defaultProps={locale:"en"};function QuickConnect({userSessions:a,onLogin:j,onClose:_e,messages:et,onRetry:tt,onLoginAnother:nt}){const{t:rt,locale:it,changeStatus:ot,blocklet:ct}=useStateContext(),ut=rt("otherAccount"),dt=useReactive({loadingId:null,status:"created",messages:{confirm:et.confirm,success:et.success,error:""},reset(){this.loadingId=null,this.status="created",this.messages.error=""}}),pt=useMemoizedFn(async vt=>{dt.loadingId=vt.id;try{await j({...vt,appPid:ct==null?void 0:ct.appPid}),dt.status="succeed"}catch(Et){dt.status="error",dt.messages.error=Et.messages}finally{dt.loadingId=null}}),mt=useMemoizedFn(()=>{dt.reset(),tt()});return reactExports.useEffect(()=>{ot(dt.status)},[ot,dt.status]),dt.status!=="created"?jsxRuntimeExports.jsx(ConnectStatus,{status:dt.status,onRetry:mt,onClose:_e,messages:dt.messages,locale:it,className:"auth-status"}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a.map(vt=>{var Et;return jsxRuntimeExports.jsx(Tooltip,{title:rt("loginWithThisAccount"),arrow:!0,placement:"top",children:jsxRuntimeExports.jsxs(Box,{sx:{position:"relative"},onClick:()=>pt(vt),children:[dt.loadingId===vt.id?jsxRuntimeExports.jsx(LinearProgress,{sx:{height:"2px",position:"absolute",top:0,left:0,right:0}}):null,jsxRuntimeExports.jsx(QuickLoginItem,{userSession:vt,locale:it})]})},(Et=vt==null?void 0:vt.user)==null?void 0:Et.did)}),jsxRuntimeExports.jsx(Tooltip,{title:rt("loginWithAnotherAccount"),arrow:!0,placement:"top",children:jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:colors$1.surfacePrimarySubtitle},color:colors$1.textBase},onClick:nt,children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(Box,{sx:{fontSize:0,p:.5},children:jsxRuntimeExports.jsx(Icon,{icon:data$p,fontSize:"40px"})}),jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"16px",fontWeight:"bold"},children:ut})]}),jsxRuntimeExports.jsx(Icon,{className:"other-item-icon",icon:data$o,fontSize:"24px"})]})})})]})}QuickConnect.propTypes={userSessions:PropTypes.array.isRequired,onLogin:PropTypes.func.isRequired,onRetry:PropTypes.func.isRequired,onClose:PropTypes.func.isRequired,onLoginAnother:PropTypes.func.isRequired,messages:PropTypes.object};QuickConnect.defaultProps={messages:{}};var HASH_UNDEFINED$2="__lodash_hash_undefined__";function setCacheAdd$1(a){return this.__data__.set(a,HASH_UNDEFINED$2),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(a){return this.__data__.has(a)}var _setCacheHas=setCacheHas$1,MapCache$2=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$3(a){var j=-1,_e=a==null?0:a.length;for(this.__data__=new MapCache$2;++j<_e;)this.add(a[j])}SetCache$3.prototype.add=SetCache$3.prototype.push=setCacheAdd;SetCache$3.prototype.has=setCacheHas;var _SetCache=SetCache$3;function baseFindIndex$1(a,j,_e,et){for(var tt=a.length,nt=_e+(et?1:-1);et?nt--:++nt<tt;)if(j(a[nt],nt,a))return nt;return-1}var _baseFindIndex=baseFindIndex$1;function baseIsNaN$1(a){return a!==a}var _baseIsNaN=baseIsNaN$1;function strictIndexOf$1(a,j,_e){for(var et=_e-1,tt=a.length;++et<tt;)if(a[et]===j)return et;return-1}var _strictIndexOf=strictIndexOf$1,baseFindIndex=_baseFindIndex,baseIsNaN=_baseIsNaN,strictIndexOf=_strictIndexOf;function baseIndexOf$2(a,j,_e){return j===j?strictIndexOf(a,j,_e):baseFindIndex(a,baseIsNaN,_e)}var _baseIndexOf=baseIndexOf$2,baseIndexOf$1=_baseIndexOf;function arrayIncludes$3(a,j){var _e=a==null?0:a.length;return!!_e&&baseIndexOf$1(a,j,0)>-1}var _arrayIncludes=arrayIncludes$3;function arrayIncludesWith$2(a,j,_e){for(var et=-1,tt=a==null?0:a.length;++et<tt;)if(_e(j,a[et]))return!0;return!1}var _arrayIncludesWith=arrayIncludesWith$2;function cacheHas$3(a,j){return a.has(j)}var _cacheHas=cacheHas$3,SetCache$2=_SetCache,arrayIncludes$2=_arrayIncludes,arrayIncludesWith$1=_arrayIncludesWith,arrayMap$3=_arrayMap,baseUnary$1=_baseUnary,cacheHas$2=_cacheHas,nativeMin=Math.min;function baseIntersection$1(a,j,_e){for(var et=_e?arrayIncludesWith$1:arrayIncludes$2,tt=a[0].length,nt=a.length,rt=nt,it=Array(nt),ot=1/0,ct=[];rt--;){var ut=a[rt];rt&&j&&(ut=arrayMap$3(ut,baseUnary$1(j))),ot=nativeMin(ut.length,ot),it[rt]=!_e&&(j||tt>=120&&ut.length>=120)?new SetCache$2(rt&&ut):void 0}ut=a[0];var dt=-1,pt=it[0];e:for(;++dt<tt&&ct.length<ot;){var mt=ut[dt],vt=j?j(mt):mt;if(mt=_e||mt!==0?mt:0,!(pt?cacheHas$2(pt,vt):et(ct,vt,_e))){for(rt=nt;--rt;){var Et=it[rt];if(!(Et?cacheHas$2(Et,vt):et(a[rt],vt,_e)))continue e}pt&&pt.push(vt),ct.push(mt)}}return ct}var _baseIntersection=baseIntersection$1,isArrayLikeObject$1=isArrayLikeObject_1;function castArrayLikeObject$1(a){return isArrayLikeObject$1(a)?a:[]}var _castArrayLikeObject=castArrayLikeObject$1,arrayMap$2=_arrayMap,baseIntersection=_baseIntersection,baseRest$2=_baseRest,castArrayLikeObject=_castArrayLikeObject,intersection=baseRest$2(function(a){var j=arrayMap$2(a,castArrayLikeObject);return j.length&&j[0]===a[0]?baseIntersection(j):[]}),intersection_1=intersection;const intersection$1=getDefaultExportFromCjs$1(intersection_1),data$f={width:24,height:24,body:'<path fill="currentColor" d="M19 21q-.975 0-1.75-.563T16.175 19H11q-1.65 0-2.825-1.175T7 15q0-1.65 1.175-2.825T11 11h2q.825 0 1.413-.588T15 9q0-.825-.588-1.413T13 7H7.825q-.325.875-1.088 1.438T5 9q-1.25 0-2.125-.875T2 6q0-1.25.875-2.125T5 3q.975 0 1.738.563T7.824 5H13q1.65 0 2.825 1.175T17 9q0 1.65-1.175 2.825T13 13h-2q-.825 0-1.413.588T9 15q0 .825.588 1.413T11 17h5.175q.325-.875 1.088-1.438T19 15q1.25 0 2.125.875T22 18q0 1.25-.875 2.125T19 21ZM5 7q.425 0 .713-.288T6 6q0-.425-.288-.713T5 5q-.425 0-.713.288T4 6q0 .425.288.713T5 7Z"/>'},chromeExtDownloadUrl="https://chromewebstore.google.com/detail/did-wallet/ibjflpbmadchofnbpppegdbnifdgincp",edgeExtDownloadUrl="https://microsoftedge.microsoft.com/addons/detail/did-wallet/hjgoblidjnnnamdkinbichnfbmghmafd";function WebLoginItem({tokenState:a,locale:j,webWalletUrl:_e}){const et=detectWalletExtension(),{t:tt}=useStateContext(),nt=useMemoizedFn(()=>{openWebWallet({webWalletUrl:_e,url:a.url,locale:j})}),rt=useCreation(()=>{var mt;const pt=(mt=window==null?void 0:window.navigator)==null?void 0:mt.userAgent;return pt.indexOf("Edge")>-1||pt.indexOf("Edg")>-1?"edge":pt.indexOf("Chrome")>-1?"chrome":"unknown"},[]),it=useCreation(()=>rt==="edge"?edgeExtDownloadUrl:rt==="chrome"?chromeExtDownloadUrl:null,[rt]),ot=useCreation(()=>et?{onClick:nt}:it?{href:it,target:"_blank",rel:"noopener"}:{onClick:nt},[nt]),ct=useCreation(()=>et||it?"Web Wallet Extension":"Web Wallet",[et,it]),ut=useCreation(()=>!et&&!it?new URL(_e).hostname:null,[_e,it]),dt=useCreation(()=>et?null:it?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["You can also use"," ",jsxRuntimeExports.jsx(Box,{onClick:nt,component:"span",sx:{color:colors$1.foregroundsFgInteractive,cursor:"pointer","&:hover":{textDecoration:"underline dashed"}},children:"Web Wallet"})]}):null,[et,it]);return jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(default_1$4,{width:"24px",height:"24px"}),jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"14px",fontWeight:500},children:ct}),ut?jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"12px",color:colors$1.textMuted},children:ut}):null]}),dt?jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"12px",color:colors$1.textMuted},children:dt}):null]})]}),jsxRuntimeExports.jsx(Button,{...ot,startIcon:jsxRuntimeExports.jsx(Icon,{icon:data$f}),children:tt("connectButton")})]})}WebLoginItem.propTypes={tokenState:PropTypes.object.isRequired,locale:PropTypes.string,webWalletUrl:PropTypes.string.isRequired};WebLoginItem.defaultProps={locale:"en"};var qrCodeStyling={exports:{}};(function(a,j){(function(_e,et){a.exports=et()})(commonjsGlobal,function(){return(()=>{var _e={192:(nt,rt)=>{var it,ot,ct=function(){var ut=function(wt,ft){var ht=wt,$t=Rt[ft],Tt=null,At=0,kt=null,Ct=[],It={},bt=function(Ht,Ot){Tt=function(Kt){for(var Xt=new Array(Kt),an=0;an<Kt;an+=1){Xt[an]=new Array(Kt);for(var _n=0;_n<Kt;_n+=1)Xt[an][_n]=null}return Xt}(At=4*ht+17),Lt(0,0),Lt(At-7,0),Lt(0,At-7),Ut(),sn(),Gt(Ht,Ot),ht>=7&&Zt(Ht),kt==null&&(kt=cn(ht,$t,Ct)),Yt(kt,Ot)},Lt=function(Ht,Ot){for(var Kt=-1;Kt<=7;Kt+=1)if(!(Ht+Kt<=-1||At<=Ht+Kt))for(var Xt=-1;Xt<=7;Xt+=1)Ot+Xt<=-1||At<=Ot+Xt||(Tt[Ht+Kt][Ot+Xt]=0<=Kt&&Kt<=6&&(Xt==0||Xt==6)||0<=Xt&&Xt<=6&&(Kt==0||Kt==6)||2<=Kt&&Kt<=4&&2<=Xt&&Xt<=4)},sn=function(){for(var Ht=8;Ht<At-8;Ht+=1)Tt[Ht][6]==null&&(Tt[Ht][6]=Ht%2==0);for(var Ot=8;Ot<At-8;Ot+=1)Tt[6][Ot]==null&&(Tt[6][Ot]=Ot%2==0)},Ut=function(){for(var Ht=xt.getPatternPosition(ht),Ot=0;Ot<Ht.length;Ot+=1)for(var Kt=0;Kt<Ht.length;Kt+=1){var Xt=Ht[Ot],an=Ht[Kt];if(Tt[Xt][an]==null)for(var _n=-2;_n<=2;_n+=1)for(var yn=-2;yn<=2;yn+=1)Tt[Xt+_n][an+yn]=_n==-2||_n==2||yn==-2||yn==2||_n==0&&yn==0}},Zt=function(Ht){for(var Ot=xt.getBCHTypeNumber(ht),Kt=0;Kt<18;Kt+=1){var Xt=!Ht&&(Ot>>Kt&1)==1;Tt[Math.floor(Kt/3)][Kt%3+At-8-3]=Xt}for(Kt=0;Kt<18;Kt+=1)Xt=!Ht&&(Ot>>Kt&1)==1,Tt[Kt%3+At-8-3][Math.floor(Kt/3)]=Xt},Gt=function(Ht,Ot){for(var Kt=$t<<3|Ot,Xt=xt.getBCHTypeInfo(Kt),an=0;an<15;an+=1){var _n=!Ht&&(Xt>>an&1)==1;an<6?Tt[an][8]=_n:an<8?Tt[an+1][8]=_n:Tt[At-15+an][8]=_n}for(an=0;an<15;an+=1)_n=!Ht&&(Xt>>an&1)==1,an<8?Tt[8][At-an-1]=_n:an<9?Tt[8][15-an-1+1]=_n:Tt[8][15-an-1]=_n;Tt[At-8][8]=!Ht},Yt=function(Ht,Ot){for(var Kt=-1,Xt=At-1,an=7,_n=0,yn=xt.getMaskFunction(Ot),dn=At-1;dn>0;dn-=2)for(dn==6&&(dn-=1);;){for(var $n=0;$n<2;$n+=1)if(Tt[Xt][dn-$n]==null){var wn=!1;_n<Ht.length&&(wn=(Ht[_n]>>>an&1)==1),yn(Xt,dn-$n)&&(wn=!wn),Tt[Xt][dn-$n]=wn,(an-=1)==-1&&(_n+=1,an=7)}if((Xt+=Kt)<0||At<=Xt){Xt-=Kt,Kt=-Kt;break}}},cn=function(Ht,Ot,Kt){for(var Xt=Ft.getRSBlocks(Ht,Ot),an=zt(),_n=0;_n<Kt.length;_n+=1){var yn=Kt[_n];an.put(yn.getMode(),4),an.put(yn.getLength(),xt.getLengthInBits(yn.getMode(),Ht)),yn.write(an)}var dn=0;for(_n=0;_n<Xt.length;_n+=1)dn+=Xt[_n].dataCount;if(an.getLengthInBits()>8*dn)throw"code length overflow. ("+an.getLengthInBits()+">"+8*dn+")";for(an.getLengthInBits()+4<=8*dn&&an.put(0,4);an.getLengthInBits()%8!=0;)an.putBit(!1);for(;!(an.getLengthInBits()>=8*dn||(an.put(236,8),an.getLengthInBits()>=8*dn));)an.put(17,8);return function($n,wn){for(var Sn=0,qn=0,Qn=0,jn=new Array(wn.length),zn=new Array(wn.length),vn=0;vn<wn.length;vn+=1){var Rn=wn[vn].dataCount,Fn=wn[vn].totalCount-Rn;qn=Math.max(qn,Rn),Qn=Math.max(Qn,Fn),jn[vn]=new Array(Rn);for(var Dn=0;Dn<jn[vn].length;Dn+=1)jn[vn][Dn]=255&$n.getBuffer()[Dn+Sn];Sn+=Rn;var ln=xt.getErrorCorrectPolynomial(Fn),Jt=Dt(jn[vn],ln.getLength()-1).mod(ln);for(zn[vn]=new Array(ln.getLength()-1),Dn=0;Dn<zn[vn].length;Dn+=1){var Wt=Dn+Jt.getLength()-zn[vn].length;zn[vn][Dn]=Wt>=0?Jt.getAt(Wt):0}}var mn=0;for(Dn=0;Dn<wn.length;Dn+=1)mn+=wn[Dn].totalCount;var In=new Array(mn),Cn=0;for(Dn=0;Dn<qn;Dn+=1)for(vn=0;vn<wn.length;vn+=1)Dn<jn[vn].length&&(In[Cn]=jn[vn][Dn],Cn+=1);for(Dn=0;Dn<Qn;Dn+=1)for(vn=0;vn<wn.length;vn+=1)Dn<zn[vn].length&&(In[Cn]=zn[vn][Dn],Cn+=1);return In}(an,Xt)};It.addData=function(Ht,Ot){var Kt=null;switch(Ot=Ot||"Byte"){case"Numeric":Kt=Nt(Ht);break;case"Alphanumeric":Kt=Vt(Ht);break;case"Byte":Kt=nn(Ht);break;case"Kanji":Kt=fn(Ht);break;default:throw"mode:"+Ot}Ct.push(Kt),kt=null},It.isDark=function(Ht,Ot){if(Ht<0||At<=Ht||Ot<0||At<=Ot)throw Ht+","+Ot;return Tt[Ht][Ot]},It.getModuleCount=function(){return At},It.make=function(){if(ht<1){for(var Ht=1;Ht<40;Ht++){for(var Ot=Ft.getRSBlocks(Ht,$t),Kt=zt(),Xt=0;Xt<Ct.length;Xt++){var an=Ct[Xt];Kt.put(an.getMode(),4),Kt.put(an.getLength(),xt.getLengthInBits(an.getMode(),Ht)),an.write(Kt)}var _n=0;for(Xt=0;Xt<Ot.length;Xt++)_n+=Ot[Xt].dataCount;if(Kt.getLengthInBits()<=8*_n)break}ht=Ht}bt(!1,function(){for(var yn=0,dn=0,$n=0;$n<8;$n+=1){bt(!0,$n);var wn=xt.getLostPoint(It);($n==0||yn>wn)&&(yn=wn,dn=$n)}return dn}())},It.createTableTag=function(Ht,Ot){Ht=Ht||2;var Kt="";Kt+='<table style="',Kt+=" border-width: 0px; border-style: none;",Kt+=" border-collapse: collapse;",Kt+=" padding: 0px; margin: "+(Ot=Ot===void 0?4*Ht:Ot)+"px;",Kt+='">',Kt+="<tbody>";for(var Xt=0;Xt<It.getModuleCount();Xt+=1){Kt+="<tr>";for(var an=0;an<It.getModuleCount();an+=1)Kt+='<td style="',Kt+=" border-width: 0px; border-style: none;",Kt+=" border-collapse: collapse;",Kt+=" padding: 0px; margin: 0px;",Kt+=" width: "+Ht+"px;",Kt+=" height: "+Ht+"px;",Kt+=" background-color: ",Kt+=It.isDark(Xt,an)?"#000000":"#ffffff",Kt+=";",Kt+='"/>';Kt+="</tr>"}return(Kt+="</tbody>")+"</table>"},It.createSvgTag=function(Ht,Ot,Kt,Xt){var an={};typeof arguments[0]=="object"&&(Ht=(an=arguments[0]).cellSize,Ot=an.margin,Kt=an.alt,Xt=an.title),Ht=Ht||2,Ot=Ot===void 0?4*Ht:Ot,(Kt=typeof Kt=="string"?{text:Kt}:Kt||{}).text=Kt.text||null,Kt.id=Kt.text?Kt.id||"qrcode-description":null,(Xt=typeof Xt=="string"?{text:Xt}:Xt||{}).text=Xt.text||null,Xt.id=Xt.text?Xt.id||"qrcode-title":null;var _n,yn,dn,$n,wn=It.getModuleCount()*Ht+2*Ot,Sn="";for($n="l"+Ht+",0 0,"+Ht+" -"+Ht+",0 0,-"+Ht+"z ",Sn+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',Sn+=an.scalable?"":' width="'+wn+'px" height="'+wn+'px"',Sn+=' viewBox="0 0 '+wn+" "+wn+'" ',Sn+=' preserveAspectRatio="xMinYMin meet"',Sn+=Xt.text||Kt.text?' role="img" aria-labelledby="'+En([Xt.id,Kt.id].join(" ").trim())+'"':"",Sn+=">",Sn+=Xt.text?'<title id="'+En(Xt.id)+'">'+En(Xt.text)+"</title>":"",Sn+=Kt.text?'<description id="'+En(Kt.id)+'">'+En(Kt.text)+"</description>":"",Sn+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',Sn+='<path d="',yn=0;yn<It.getModuleCount();yn+=1)for(dn=yn*Ht+Ot,_n=0;_n<It.getModuleCount();_n+=1)It.isDark(yn,_n)&&(Sn+="M"+(_n*Ht+Ot)+","+dn+$n);return(Sn+='" stroke="transparent" fill="black"/>')+"</svg>"},It.createDataURL=function(Ht,Ot){Ht=Ht||2,Ot=Ot===void 0?4*Ht:Ot;var Kt=It.getModuleCount()*Ht+2*Ot,Xt=Ot,an=Kt-Ot;return Mt(Kt,Kt,function(_n,yn){if(Xt<=_n&&_n<an&&Xt<=yn&&yn<an){var dn=Math.floor((_n-Xt)/Ht),$n=Math.floor((yn-Xt)/Ht);return It.isDark($n,dn)?0:1}return 1})},It.createImgTag=function(Ht,Ot,Kt){Ht=Ht||2,Ot=Ot===void 0?4*Ht:Ot;var Xt=It.getModuleCount()*Ht+2*Ot,an="";return an+="<img",an+=' src="',an+=It.createDataURL(Ht,Ot),an+='"',an+=' width="',an+=Xt,an+='"',an+=' height="',an+=Xt,an+='"',Kt&&(an+=' alt="',an+=En(Kt),an+='"'),an+"/>"};var En=function(Ht){for(var Ot="",Kt=0;Kt<Ht.length;Kt+=1){var Xt=Ht.charAt(Kt);switch(Xt){case"<":Ot+="&lt;";break;case">":Ot+="&gt;";break;case"&":Ot+="&amp;";break;case'"':Ot+="&quot;";break;default:Ot+=Xt}}return Ot};return It.createASCII=function(Ht,Ot){if((Ht=Ht||1)<2)return function(jn){jn=jn===void 0?2:jn;var zn,vn,Rn,Fn,Dn,ln=1*It.getModuleCount()+2*jn,Jt=jn,Wt=ln-jn,mn={"██":"█","█ ":"▀"," █":"▄"," ":" "},In={"██":"▀","█ ":"▀"," █":" "," ":" "},Cn="";for(zn=0;zn<ln;zn+=2){for(Rn=Math.floor((zn-Jt)/1),Fn=Math.floor((zn+1-Jt)/1),vn=0;vn<ln;vn+=1)Dn="█",Jt<=vn&&vn<Wt&&Jt<=zn&&zn<Wt&&It.isDark(Rn,Math.floor((vn-Jt)/1))&&(Dn=" "),Jt<=vn&&vn<Wt&&Jt<=zn+1&&zn+1<Wt&&It.isDark(Fn,Math.floor((vn-Jt)/1))?Dn+=" ":Dn+="█",Cn+=jn<1&&zn+1>=Wt?In[Dn]:mn[Dn];Cn+=`
491
+ }`;var to=V0(function(){return po(xn,Ur+"return "+Er).apply(_e,Bn)});if(to.source=Er,Ep(to))throw to;return to}function a$(yt){return ho(yt).toLowerCase()}function s$(yt){return ho(yt).toUpperCase()}function l$(yt,St,Bt){if(yt=ho(yt),yt&&(Bt||St===_e))return Qp(yt);if(!yt||!(St=Zo(St)))return yt;var tn=os(yt),gn=os(St),xn=_h(tn,gn),Bn=e1(tn,gn)+1;return ks(tn,xn,Bn).join("")}function u$(yt,St,Bt){if(yt=ho(yt),yt&&(Bt||St===_e))return yt.slice(0,n1(yt)+1);if(!yt||!(St=Zo(St)))return yt;var tn=os(yt),gn=e1(tn,os(St))+1;return ks(tn,0,gn).join("")}function c$(yt,St,Bt){if(yt=ho(yt),yt&&(Bt||St===_e))return yt.replace(qt,"");if(!yt||!(St=Zo(St)))return yt;var tn=os(yt),gn=_h(tn,os(St));return ks(tn,gn).join("")}function f$(yt,St){var Bt=hn,tn=Qt;if(xo(St)){var gn="separator"in St?St.separator:gn;Bt="length"in St?eo(St.length):Bt,tn="omission"in St?Zo(St.omission):tn}yt=ho(yt);var xn=yt.length;if(Gs(yt)){var Bn=os(yt);xn=Bn.length}if(Bt>=xn)return yt;var Hn=Bt-Ws(tn);if(Hn<1)return tn;var Xn=Bn?ks(Bn,0,Hn).join(""):yt.slice(0,Hn);if(gn===_e)return Xn+tn;if(Bn&&(Hn+=Xn.length-Hn),$p(gn)){if(yt.slice(Hn).search(gn)){var gr,vr=Xn;for(gn.global||(gn=Uu(gn.source,ho(Jn.exec(gn))+"g")),gn.lastIndex=0;gr=gn.exec(vr);)var Er=gr.index;Xn=Xn.slice(0,Er===_e?Hn:Er)}}else if(yt.indexOf(Zo(gn),Hn)!=Hn){var Pr=Xn.lastIndexOf(gn);Pr>-1&&(Xn=Xn.slice(0,Pr))}return Xn+tn}function d$(yt){return yt=ho(yt),yt&&Dr.test(yt)?yt.replace(er,qm):yt}var p$=yl(function(yt,St,Bt){return yt+(Bt?" ":"")+St.toUpperCase()}),Sp=J1("toUpperCase");function q0(yt,St,Bt){return yt=ho(yt),St=Bt?_e:St,St===_e?Nm(yt)?Gm(yt):Cm(yt):yt.match(St)||[]}var V0=no(function(yt,St){try{return Yo(yt,_e,St)}catch(Bt){return Ep(Bt)?Bt:new Zr(Bt)}}),h$=bs(function(yt,St){return $a(St,function(Bt){Bt=ds(Bt),ys(yt,Bt,vp(yt[Bt],yt))}),yt});function m$(yt){var St=yt==null?0:yt.length,Bt=qr();return yt=St?So(yt,function(tn){if(typeof tn[1]!="function")throw new _a(rt);return[Bt(tn[0]),tn[1]]}):[],no(function(tn){for(var gn=-1;++gn<St;){var xn=yt[gn];if(Yo(xn[0],this,tn))return Yo(xn[1],this,tn)}})}function g$(yt){return Hy(es(yt,dt))}function xp(yt){return function(){return yt}}function y$(yt,St){return yt==null||yt!==yt?St:yt}var v$=W1(),b$=W1(!0);function Ko(yt){return yt}function Ap(yt){return T1(typeof yt=="function"?yt:es(yt,dt))}function E$(yt){return x1(es(yt,dt))}function $$(yt,St){return A1(yt,es(St,dt))}var _$=no(function(yt,St){return function(Bt){return Pl(Bt,yt,St)}}),T$=no(function(yt,St){return function(Bt){return Pl(yt,Bt,St)}});function Rp(yt,St,Bt){var tn=Mo(St),gn=lu(St,tn);Bt==null&&!(xo(St)&&(gn.length||!tn.length))&&(Bt=St,St=yt,yt=this,gn=lu(St,Mo(St)));var xn=!(xo(Bt)&&"chain"in Bt)||!!Bt.chain,Bn=$s(yt);return $a(gn,function(Hn){var Xn=St[Hn];yt[Hn]=Xn,Bn&&(yt.prototype[Hn]=function(){var gr=this.__chain__;if(xn||gr){var vr=yt(this.__wrapped__),Er=vr.__actions__=Go(this.__actions__);return Er.push({func:Xn,args:arguments,thisArg:yt}),vr.__chain__=gr,vr}return Xn.apply(yt,xs([this.value()],arguments))})}),yt}function S$(){return No._===this&&(No._=Zm),this}function wp(){}function x$(yt){return yt=eo(yt),no(function(St){return R1(St,yt)})}var A$=op(So),R$=op(zp),w$=op(Du);function J0(yt){return dp(yt)?Lu(ds(yt)):ov(yt)}function C$(yt){return function(St){return yt==null?_e:js(yt,St)}}var I$=K1(),k$=K1(!0);function Cp(){return[]}function Ip(){return!1}function P$(){return{}}function D$(){return""}function L$(){return!0}function O$(yt,St){if(yt=eo(yt),yt<1||yt>At)return[];var Bt=It,tn=Uo(yt,It);St=qr(St),yt-=It;for(var gn=Mu(tn,St);++Bt<yt;)St(Bt);return gn}function B$(yt){return Qr(yt)?So(yt,ds):Qo(yt)?[yt]:Go(f0(ho(yt)))}function M$(yt){var St=++Ym;return ho(yt)+St}var N$=hu(function(yt,St){return yt+St},0),F$=ap("ceil"),U$=hu(function(yt,St){return yt/St},1),j$=ap("floor");function H$(yt){return yt&&yt.length?su(yt,Ko,zu):_e}function q$(yt,St){return yt&&yt.length?su(yt,qr(St,2),zu):_e}function V$(yt){return Xp(yt,Ko)}function J$(yt,St){return Xp(yt,qr(St,2))}function G$(yt){return yt&&yt.length?su(yt,Ko,Zu):_e}function W$(yt,St){return yt&&yt.length?su(yt,qr(St,2),Zu):_e}var z$=hu(function(yt,St){return yt*St},1),K$=ap("round"),Y$=hu(function(yt,St){return yt-St},0);function X$(yt){return yt&&yt.length?Bu(yt,Ko):0}function Z$(yt,St){return yt&&yt.length?Bu(yt,qr(St,2)):0}return Tn.after=$3,Tn.ary=_0,Tn.assign=sE,Tn.assignIn=B0,Tn.assignInWith=Ru,Tn.assignWith=lE,Tn.at=uE,Tn.before=T0,Tn.bind=vp,Tn.bindAll=h$,Tn.bindKey=S0,Tn.castArray=D3,Tn.chain=b0,Tn.chunk=Hv,Tn.compact=qv,Tn.concat=Vv,Tn.cond=m$,Tn.conforms=g$,Tn.constant=xp,Tn.countBy=Z2,Tn.create=cE,Tn.curry=x0,Tn.curryRight=A0,Tn.debounce=R0,Tn.defaults=fE,Tn.defaultsDeep=dE,Tn.defer=_3,Tn.delay=T3,Tn.difference=Jv,Tn.differenceBy=Gv,Tn.differenceWith=Wv,Tn.drop=zv,Tn.dropRight=Kv,Tn.dropRightWhile=Yv,Tn.dropWhile=Xv,Tn.fill=Zv,Tn.filter=e3,Tn.flatMap=r3,Tn.flatMapDeep=i3,Tn.flatMapDepth=o3,Tn.flatten=m0,Tn.flattenDeep=Qv,Tn.flattenDepth=e2,Tn.flip=S3,Tn.flow=v$,Tn.flowRight=b$,Tn.fromPairs=t2,Tn.functions=bE,Tn.functionsIn=EE,Tn.groupBy=a3,Tn.initial=r2,Tn.intersection=i2,Tn.intersectionBy=o2,Tn.intersectionWith=a2,Tn.invert=_E,Tn.invertBy=TE,Tn.invokeMap=l3,Tn.iteratee=Ap,Tn.keyBy=u3,Tn.keys=Mo,Tn.keysIn=zo,Tn.map=$u,Tn.mapKeys=xE,Tn.mapValues=AE,Tn.matches=E$,Tn.matchesProperty=$$,Tn.memoize=Tu,Tn.merge=RE,Tn.mergeWith=M0,Tn.method=_$,Tn.methodOf=T$,Tn.mixin=Rp,Tn.negate=Su,Tn.nthArg=x$,Tn.omit=wE,Tn.omitBy=CE,Tn.once=x3,Tn.orderBy=c3,Tn.over=A$,Tn.overArgs=A3,Tn.overEvery=R$,Tn.overSome=w$,Tn.partial=bp,Tn.partialRight=w0,Tn.partition=f3,Tn.pick=IE,Tn.pickBy=N0,Tn.property=J0,Tn.propertyOf=C$,Tn.pull=c2,Tn.pullAll=y0,Tn.pullAllBy=f2,Tn.pullAllWith=d2,Tn.pullAt=p2,Tn.range=I$,Tn.rangeRight=k$,Tn.rearg=R3,Tn.reject=h3,Tn.remove=h2,Tn.rest=w3,Tn.reverse=gp,Tn.sampleSize=g3,Tn.set=PE,Tn.setWith=DE,Tn.shuffle=y3,Tn.slice=m2,Tn.sortBy=E3,Tn.sortedUniq=_2,Tn.sortedUniqBy=T2,Tn.split=n$,Tn.spread=C3,Tn.tail=S2,Tn.take=x2,Tn.takeRight=A2,Tn.takeRightWhile=R2,Tn.takeWhile=w2,Tn.tap=q2,Tn.throttle=I3,Tn.thru=Eu,Tn.toArray=D0,Tn.toPairs=F0,Tn.toPairsIn=U0,Tn.toPath=B$,Tn.toPlainObject=O0,Tn.transform=LE,Tn.unary=k3,Tn.union=C2,Tn.unionBy=I2,Tn.unionWith=k2,Tn.uniq=P2,Tn.uniqBy=D2,Tn.uniqWith=L2,Tn.unset=OE,Tn.unzip=yp,Tn.unzipWith=v0,Tn.update=BE,Tn.updateWith=ME,Tn.values=_l,Tn.valuesIn=NE,Tn.without=O2,Tn.words=q0,Tn.wrap=P3,Tn.xor=B2,Tn.xorBy=M2,Tn.xorWith=N2,Tn.zip=F2,Tn.zipObject=U2,Tn.zipObjectDeep=j2,Tn.zipWith=H2,Tn.entries=F0,Tn.entriesIn=U0,Tn.extend=B0,Tn.extendWith=Ru,Rp(Tn,Tn),Tn.add=N$,Tn.attempt=V0,Tn.camelCase=HE,Tn.capitalize=j0,Tn.ceil=F$,Tn.clamp=FE,Tn.clone=L3,Tn.cloneDeep=B3,Tn.cloneDeepWith=M3,Tn.cloneWith=O3,Tn.conformsTo=N3,Tn.deburr=H0,Tn.defaultTo=y$,Tn.divide=U$,Tn.endsWith=qE,Tn.eq=ss,Tn.escape=VE,Tn.escapeRegExp=JE,Tn.every=Q2,Tn.find=t3,Tn.findIndex=p0,Tn.findKey=pE,Tn.findLast=n3,Tn.findLastIndex=h0,Tn.findLastKey=hE,Tn.floor=j$,Tn.forEach=E0,Tn.forEachRight=$0,Tn.forIn=mE,Tn.forInRight=gE,Tn.forOwn=yE,Tn.forOwnRight=vE,Tn.get=_p,Tn.gt=F3,Tn.gte=U3,Tn.has=$E,Tn.hasIn=Tp,Tn.head=g0,Tn.identity=Ko,Tn.includes=s3,Tn.indexOf=n2,Tn.inRange=UE,Tn.invoke=SE,Tn.isArguments=Vs,Tn.isArray=Qr,Tn.isArrayBuffer=j3,Tn.isArrayLike=Wo,Tn.isArrayLikeObject=Io,Tn.isBoolean=H3,Tn.isBuffer=Ps,Tn.isDate=q3,Tn.isElement=V3,Tn.isEmpty=J3,Tn.isEqual=G3,Tn.isEqualWith=W3,Tn.isError=Ep,Tn.isFinite=z3,Tn.isFunction=$s,Tn.isInteger=C0,Tn.isLength=xu,Tn.isMap=I0,Tn.isMatch=K3,Tn.isMatchWith=Y3,Tn.isNaN=X3,Tn.isNative=Z3,Tn.isNil=_b,Tn.isNull=Q3,Tn.isNumber=k0,Tn.isObject=xo,Tn.isObjectLike=Ro,Tn.isPlainObject=Nl,Tn.isRegExp=$p,Tn.isSafeInteger=eE,Tn.isSet=P0,Tn.isString=Au,Tn.isSymbol=Qo,Tn.isTypedArray=$l,Tn.isUndefined=tE,Tn.isWeakMap=nE,Tn.isWeakSet=rE,Tn.join=s2,Tn.kebabCase=GE,Tn.last=ns,Tn.lastIndexOf=l2,Tn.lowerCase=WE,Tn.lowerFirst=zE,Tn.lt=iE,Tn.lte=oE,Tn.max=H$,Tn.maxBy=q$,Tn.mean=V$,Tn.meanBy=J$,Tn.min=G$,Tn.minBy=W$,Tn.stubArray=Cp,Tn.stubFalse=Ip,Tn.stubObject=P$,Tn.stubString=D$,Tn.stubTrue=L$,Tn.multiply=z$,Tn.nth=u2,Tn.noConflict=S$,Tn.noop=wp,Tn.now=_u,Tn.pad=KE,Tn.padEnd=YE,Tn.padStart=XE,Tn.parseInt=ZE,Tn.random=jE,Tn.reduce=d3,Tn.reduceRight=p3,Tn.repeat=QE,Tn.replace=e$,Tn.result=kE,Tn.round=K$,Tn.runInContext=Wn,Tn.sample=m3,Tn.size=v3,Tn.snakeCase=t$,Tn.some=b3,Tn.sortedIndex=g2,Tn.sortedIndexBy=y2,Tn.sortedIndexOf=v2,Tn.sortedLastIndex=b2,Tn.sortedLastIndexBy=E2,Tn.sortedLastIndexOf=$2,Tn.startCase=r$,Tn.startsWith=i$,Tn.subtract=Y$,Tn.sum=X$,Tn.sumBy=Z$,Tn.template=o$,Tn.times=O$,Tn.toFinite=_s,Tn.toInteger=eo,Tn.toLength=L0,Tn.toLower=a$,Tn.toNumber=rs,Tn.toSafeInteger=aE,Tn.toString=ho,Tn.toUpper=s$,Tn.trim=l$,Tn.trimEnd=u$,Tn.trimStart=c$,Tn.truncate=f$,Tn.unescape=d$,Tn.uniqueId=M$,Tn.upperCase=p$,Tn.upperFirst=Sp,Tn.each=E0,Tn.eachRight=$0,Tn.first=g0,Rp(Tn,function(){var yt={};return cs(Tn,function(St,Bt){go.call(Tn.prototype,Bt)||(yt[Bt]=St)}),yt}(),{chain:!1}),Tn.VERSION=et,$a(["bind","bindKey","curry","curryRight","partial","partialRight"],function(yt){Tn[yt].placeholder=Tn}),$a(["drop","take"],function(yt,St){lo.prototype[yt]=function(Bt){Bt=Bt===_e?1:Bo(eo(Bt),0);var tn=this.__filtered__&&!St?new lo(this):this.clone();return tn.__filtered__?tn.__takeCount__=Uo(Bt,tn.__takeCount__):tn.__views__.push({size:Uo(Bt,It),type:yt+(tn.__dir__<0?"Right":"")}),tn},lo.prototype[yt+"Right"]=function(Bt){return this.reverse()[yt](Bt).reverse()}}),$a(["filter","map","takeWhile"],function(yt,St){var Bt=St+1,tn=Bt==ft||Bt==$t;lo.prototype[yt]=function(gn){var xn=this.clone();return xn.__iteratees__.push({iteratee:qr(gn,3),type:Bt}),xn.__filtered__=xn.__filtered__||tn,xn}}),$a(["head","last"],function(yt,St){var Bt="take"+(St?"Right":"");lo.prototype[yt]=function(){return this[Bt](1).value()[0]}}),$a(["initial","tail"],function(yt,St){var Bt="drop"+(St?"":"Right");lo.prototype[yt]=function(){return this.__filtered__?new lo(this):this[Bt](1)}}),lo.prototype.compact=function(){return this.filter(Ko)},lo.prototype.find=function(yt){return this.filter(yt).head()},lo.prototype.findLast=function(yt){return this.reverse().find(yt)},lo.prototype.invokeMap=no(function(yt,St){return typeof yt=="function"?new lo(this):this.map(function(Bt){return Pl(Bt,yt,St)})}),lo.prototype.reject=function(yt){return this.filter(Su(qr(yt)))},lo.prototype.slice=function(yt,St){yt=eo(yt);var Bt=this;return Bt.__filtered__&&(yt>0||St<0)?new lo(Bt):(yt<0?Bt=Bt.takeRight(-yt):yt&&(Bt=Bt.drop(yt)),St!==_e&&(St=eo(St),Bt=St<0?Bt.dropRight(-St):Bt.take(St-yt)),Bt)},lo.prototype.takeRightWhile=function(yt){return this.reverse().takeWhile(yt).reverse()},lo.prototype.toArray=function(){return this.take(It)},cs(lo.prototype,function(yt,St){var Bt=/^(?:filter|find|map|reject)|While$/.test(St),tn=/^(?:head|last)$/.test(St),gn=Tn[tn?"take"+(St=="last"?"Right":""):St],xn=tn||/^find/.test(St);gn&&(Tn.prototype[St]=function(){var Bn=this.__wrapped__,Hn=tn?[1]:arguments,Xn=Bn instanceof lo,gr=Hn[0],vr=Xn||Qr(Bn),Er=function(io){var uo=gn.apply(Tn,xs([io],Hn));return tn&&Pr?uo[0]:uo};vr&&Bt&&typeof gr=="function"&&gr.length!=1&&(Xn=vr=!1);var Pr=this.__chain__,Ur=!!this.__actions__.length,Vr=xn&&!Pr,to=Xn&&!Ur;if(!xn&&vr){Bn=to?Bn:new lo(this);var Jr=yt.apply(Bn,Hn);return Jr.__actions__.push({func:Eu,args:[Er],thisArg:_e}),new xa(Jr,Pr)}return Vr&&to?yt.apply(this,Hn):(Jr=this.thru(Er),Vr?tn?Jr.value()[0]:Jr.value():Jr)})}),$a(["pop","push","shift","sort","splice","unshift"],function(yt){var St=Jl[yt],Bt=/^(?:push|sort|unshift)$/.test(yt)?"tap":"thru",tn=/^(?:pop|shift)$/.test(yt);Tn.prototype[yt]=function(){var gn=arguments;if(tn&&!this.__chain__){var xn=this.value();return St.apply(Qr(xn)?xn:[],gn)}return this[Bt](function(Bn){return St.apply(Qr(Bn)?Bn:[],gn)})}}),cs(lo.prototype,function(yt,St){var Bt=Tn[St];if(Bt){var tn=Bt.name+"";go.call(Xs,tn)||(Xs[tn]=[]),Xs[tn].push({name:St,func:Bt})}}),Xs[pu(_e,xt).name]=[{name:"wrapper",func:_e}],lo.prototype.clone=py,lo.prototype.reverse=hy,lo.prototype.value=my,Tn.prototype.at=V2,Tn.prototype.chain=J2,Tn.prototype.commit=G2,Tn.prototype.next=W2,Tn.prototype.plant=K2,Tn.prototype.reverse=Y2,Tn.prototype.toJSON=Tn.prototype.valueOf=Tn.prototype.value=X2,Tn.prototype.first=Tn.prototype.head,Sl&&(Tn.prototype[Sl]=z2),Tn},zs=Wm();Bs?((Bs.exports=zs)._=zs,Cu._=zs):No._=zs}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;function useApps({blocklet:a,action:j,sourceAppPid:_e,connectState:et,enableSwitchApp:tt}){var ct,ut;const nt=reactExports.useContext(SessionContext$1),rt=useCreation(()=>{var dt;return tt===!0?!0:!(tt===!1||(dt=nt==null?void 0:nt.session)!=null&&dt.user&&!["login"].includes(j))},[j,(ct=nt==null?void 0:nt.session)==null?void 0:ct.user]),it=useCreation(()=>{if(lodashExports.isUndefined(_e)){const dt=getFederatedEnabled(a),pt=getMaster(a);if(dt&&(pt!=null&&pt.appPid))return pt.appPid}return _e},[_e]);return{appInfoList:useCreation(()=>getApps(a).filter(pt=>{var mt;return rt?!0:lodashExports.isUndefined(_e)?lodashExports.isUndefined(et.sourceAppPid)?(mt=nt==null?void 0:nt.session)!=null&&mt.user?pt.sourceAppPid===nt.session.user.sourceAppPid:pt.sourceAppPid===it:pt.sourceAppPid===et.sourceAppPid:pt.sourceAppPid===_e}),[rt,_e,et.sourceAppPid,it,(ut=nt==null?void 0:nt.session)==null?void 0:ut.user]),autoGenerateSourceAppPid:it,canSwitchApp:rt}}const translations$3={en:{generateError:"Request new qrcode failed",checkError:"Status check failed!",scanned:"Use your wallet to continue operation...",mfaCode:"We sent you a verification request on your DID Wallet, enter the digits below to confirm.",refresh:"Refresh",open:"Open in DID Wallet",openDidConnect:"Open DID Connect",error:"We encountered some errors when processing the request",invalidSessionStatus:"Invalid session status",success:"Success",wait:"Wait a second",waiting:"Waiting for next workflow to complete...",failed:"Failed",oops:"Oops",forbidden:"Login user and wallet user mismatch, please logout, then login to retry",webWallet:"Auth with Web Wallet",cancel:"Cancel",close:"Close",retry:"Retry",retryForbidden:"Please start this workflow from the beginning",getWallet:"Don't have the DID Wallet? Get it now.",back:"Back",connect:"Use the following to connect",connecting:"Connecting to your",connectingSuffix:"Or use the following to connect",connected:"Connected to your",busyTitle:"Busy",busyDesc:"Busy processing another DID Connect request",loginWithBefore:"Login with ",loginWithAfter:"",bindOAuth:"Bind third party login",bind:"Bind ",loginOAuthFailed:"Login with third party failed",loginWithAnotherAccount:"Login with another account",quickLoginDescription:"The following accounts have been detected in the current unified login environment. Click the following accounts to log in quickly.",quickLogin:"Login {appName} with {masterAppName} account",sessionFrom:"Session founded from {appName} blocklet",loginWithThisAccount:"Click to login with this account",chooseAccount:"Choose an account",lostPassport:"Lost your passport?",lostPassportTips:"If you have lost your passport, you can click here to claim back.",download:"Download",downloadTips:"Don't have DID Wallet ?",scanWithWallet:"Easy Login with QR Code Scanning",openInWallet:"Open in DID Wallet",webExtension:"Web Wallet Extension",connectButton:"Connect",switch:"Switch",requestConnect:"Requesting Connection",continueInWallet:"Please continue in the DID Wallet",loginWithBelow:"Login using the following methods",otherAccount:"Other account"},zh:{generateError:"二维码生成失败",checkError:"扫码状态检查失败",scanned:"请到您的钱包上继续操作……",mfaCode:"我们给你的 DID 钱包发送了一个二次验证请求,请输入下面的数字完成验证",refresh:"刷新",open:"在 DID 钱包中打开",openDidConnect:"打开 DID Connect",error:"服务器开小差了!",invalidSessionStatus:"无效的会话状态",success:"成功",failed:"失败",wait:"请稍候",waiting:"正在等待下个流程完成...",forbidden:"登录用户和扫码用户不匹配,为保障安全,请退出后重新登录",oops:"哎呀",webWallet:"使用 Web Wallet 验证",cancel:"取消",close:"关闭",retry:"重试",retryForbidden:"请关闭当前弹窗并重新开始当前流程",getWallet:"还没有 DID Wallet? 现在下载.",back:"返回",connect:"请选择以下方式之一连接",connecting:"正在自动连接您的",connectingSuffix:"或选择以下方式手动连接",connected:"已连接您的",busyTitle:"钱包繁忙",busyDesc:"正在处理其他请求",loginWithBefore:"使用",loginWithAfter:"登录",bindOAuth:"绑定第三方登录",bind:"绑定",loginOAuthFailed:"第三方登录失败",loginWithAnotherAccount:"使用其他账户登录",quickLoginDescription:"检测到当前统一登录环境中已存在下列账户,点击以下账户,进行快捷登录",quickLogin:"使用 {masterAppName} 账户登录 {appName}",sessionFrom:"发现自 {appName} 应用",loginWithThisAccount:"点击使用此账号登录",chooseAccount:"选择一个账号",lostPassport:"找回通行证",lostPassportTips:"如果您丢失了登录通行证,您可以点击这里来找回。",download:"下载",downloadTips:"没有 DID Wallet ?",scanWithWallet:"使用 DID Wallet 扫码二维码",openInWallet:"使用 DID Wallet 打开",webExtension:"浏览器插件",connectButton:"连接",switch:"切换",requestConnect:"正在请求连接",continueInWallet:"请在 DID Wallet 中继续完成您的操作",loginWithBelow:"使用以下方式进行登录",otherAccount:"其他账号"}},StateContext=reactExports.createContext({isWalletWebview:!1,isMobile:!1,matchSmallScreen:!1}),{Provider:Provider$5,Consumer:Consumer$5}=StateContext;function StateProvider({children:a,blocklet:j,action:_e,extraParams:et,locale:tt,...nt}){var zt;const rt=useMemoizedFn((Nt,Vt={})=>translate(translations$3,Nt,tt,"en",Vt)),it=reactExports.useContext(SessionContext$1),ot=useReactive({sourceAppPid:void 0,status:"created",autoActiveWebview:!0}),ct=reactExports.useRef({cancelCount:0}),ut=useBrowser(),{appInfoList:dt,autoGenerateSourceAppPid:pt,canSwitchApp:mt}=useApps({blocklet:j,connectState:ot,action:_e,sourceAppPid:et==null?void 0:et.sourceAppPid,enableSwitchApp:(et==null?void 0:et.forceSwitch)||(et==null?void 0:et.enableSwitchApp)}),vt=reactExports.useRef(null),Et=useSize(vt),xt=((Et==null?void 0:Et.width)||0)<500,Pt=useCreation(()=>{var Nt,Vt;return mt?{...et,sourceAppPid:isUndefined$2(ot.sourceAppPid)?pt:ot.sourceAppPid}:(Nt=it==null?void 0:it.session)!=null&&Nt.user?isUndefined$2(et==null?void 0:et.sourceAppPid)?{...et,sourceAppPid:(Vt=it.session.user)==null?void 0:Vt.sourceAppPid}:et:{...et,sourceAppPid:pt}},[mt,et,ot.sourceAppPid,_e,pt,(zt=it==null?void 0:it.session)==null?void 0:zt.user]),Dt=useMemoizedFn(Nt=>{ot.status=Nt||"created"}),Ft={isWalletWebview:ut.wallet,isMobile:ut.mobile.any,matchSmallScreen:xt,connectState:ot,staticState:ct,reactiveState:ot,appInfoList:dt,extraParams:Pt,blocklet:j,t:rt,locale:tt,changeStatus:Dt};return jsxRuntimeExports.jsx(Provider$5,{value:Ft,children:jsxRuntimeExports.jsx(Box,{...nt,ref:vt,children:a})})}StateProvider.propTypes={children:PropTypes.any.isRequired,blocklet:PropTypes.object.isRequired,action:PropTypes.string.isRequired,sourceAppPid:PropTypes.string,extraParams:PropTypes.object,locale:PropTypes.string};StateProvider.defaultProps={sourceAppPid:void 0,extraParams:{},locale:"en"};function useStateContext(){return reactExports.useContext(StateContext)}const data$p={width:24,height:24,hidden:!0,body:'<path fill="currentColor" d="M12 11q.825 0 1.413-.588Q14 9.825 14 9t-.587-1.413Q12.825 7 12 7q-.825 0-1.412.587Q10 8.175 10 9q0 .825.588 1.412Q11.175 11 12 11Zm0 2q-1.65 0-2.825-1.175Q8 10.65 8 9q0-1.65 1.175-2.825Q10.35 5 12 5q1.65 0 2.825 1.175Q16 7.35 16 9q0 1.65-1.175 2.825Q13.65 13 12 13Zm0 11q-2.475 0-4.662-.938q-2.188-.937-3.825-2.574Q1.875 18.85.938 16.663Q0 14.475 0 12t.938-4.663q.937-2.187 2.575-3.825Q5.15 1.875 7.338.938Q9.525 0 12 0t4.663.938q2.187.937 3.825 2.574q1.637 1.638 2.574 3.825Q24 9.525 24 12t-.938 4.663q-.937 2.187-2.574 3.825q-1.638 1.637-3.825 2.574Q14.475 24 12 24Zm0-2q1.8 0 3.375-.575T18.25 19.8q-.825-.925-2.425-1.612q-1.6-.688-3.825-.688t-3.825.688q-1.6.687-2.425 1.612q1.3 1.05 2.875 1.625T12 22Zm-7.7-3.6q1.2-1.3 3.225-2.1q2.025-.8 4.475-.8q2.45 0 4.463.8q2.012.8 3.212 2.1q1.1-1.325 1.713-2.95Q22 13.825 22 12q0-2.075-.788-3.887q-.787-1.813-2.15-3.175q-1.362-1.363-3.175-2.151Q14.075 2 12 2q-2.05 0-3.875.787q-1.825.788-3.187 2.151Q3.575 6.3 2.788 8.113Q2 9.925 2 12q0 1.825.6 3.463q.6 1.637 1.7 2.937Z"/>'},data$o={width:24,height:24,body:'<path fill="currentColor" d="M16.15 13H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.15L13.3 8.15q-.3-.3-.288-.7t.288-.7q.3-.3.713-.313t.712.288L19.3 11.3q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.575 4.575q-.3.3-.712.288t-.713-.313q-.275-.3-.288-.7t.288-.7L16.15 13Z"/>'};var zhCn={exports:{}};(function(a,j){(function(_e,et){a.exports=et(dayjs_minExports)})(commonjsGlobal,function(_e){function et(rt){return rt&&typeof rt=="object"&&"default"in rt?rt:{default:rt}}var tt=et(_e),nt={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(rt,it){return it==="W"?rt+"周":rt+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(rt,it){var ot=100*rt+it;return ot<600?"凌晨":ot<900?"早上":ot<1100?"上午":ot<1300?"中午":ot<1800?"下午":"晚上"}};return tt.default.locale(nt,null,!0),nt})})(zhCn);var updateLocale$1={exports:{}};(function(a,j){(function(_e,et){a.exports=et()})(commonjsGlobal,function(){return function(_e,et,tt){tt.updateLocale=function(nt,rt){var it=tt.Ls[nt];if(it)return(rt?Object.keys(rt):[]).forEach(function(ot){it[ot]=rt[ot]}),it}}})})(updateLocale$1);var updateLocaleExports=updateLocale$1.exports;const updateLocale=getDefaultExportFromCjs$1(updateLocaleExports);defaultDayjs.extend(localizedFormatPlugin);defaultDayjs.extend(utc$1);defaultDayjs.extend(timezone$1);defaultDayjs.extend(updateLocale);defaultDayjs.extend(relativeTime$1);defaultDayjs.updateLocale("zh-cn",{relativeTime:{future:"%s后",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"}});setDateTool(defaultDayjs);function RelativeTime({value:a,locale:j,withoutSuffix:_e,from:et,to:tt,type:nt,tz:rt,relativeRange:it,...ot}){if(!a)return"-";const ct=j==="zh"?"zh-cn":"en-us",ut=defaultDayjs(a).locale(ct);rt&&ut.tz(rt);const dt=formatToDatetime$1(a,{locale:ct,tz:rt});let pt;if(et)pt=ut.from(et,_e);else if(tt)pt=ut.to(tt,_e);else if(it){const Et=ut.diff(defaultDayjs());Math.abs(Et)>it&&(pt=dt)}pt||(pt=ut.fromNow(_e));let mt=pt,vt=dt;return nt==="absolute"&&(mt=dt,vt=pt),jsxRuntimeExports.jsx(Tooltip,{title:vt,placement:"top-end",enterTouchDelay:0,children:jsxRuntimeExports.jsx("span",{...ot,children:mt})})}RelativeTime.propTypes={value:PropTypes.oneOfType([PropTypes.string,PropTypes.number]).isRequired,locale:PropTypes.string,withoutSuffix:PropTypes.bool,from:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),to:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),type:PropTypes.oneOf(["relative","absolute"]),tz:PropTypes.string,relativeRange:PropTypes.number};RelativeTime.defaultProps={locale:"en",withoutSuffix:!1,from:"",to:"",type:"relative",tz:void 0,relativeRange:void 0};const data$n={width:24,height:24,body:'<path fill="currentColor" d="M7 7H5a2 2 0 0 0-2 2v8h2v-4h2v4h2V9a2 2 0 0 0-2-2m0 4H5V9h2m7-2h-4v10h2v-4h2a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2m0 4h-2V9h2m6 0v6h1v2h-4v-2h1V9h-1V7h4v2Z"/>'},data$m={width:24,height:24,body:'<path fill="currentColor" d="M5 17q-.425 0-.713-.288T4 16v-4q0-.425.288-.713T5 11q.425 0 .713.288T6 12v4q0 .425-.288.713T5 17Zm4 0q-.825 0-1.413-.588T7 15V9q0-.825.588-1.413T9 7h2q.825 0 1.413.588T13 9v6q0 .825-.588 1.413T11 17H9Zm0-2h2V9H9v6Zm6 2q-.425 0-.713-.288T14 16q0-.425.288-.713T15 15h3v-2h-2q-.825 0-1.413-.588T14 11V9q0-.825.588-1.413T16 7h3q.425 0 .713.288T20 8q0 .425-.288.713T19 9h-3v2h2q.825 0 1.413.588T20 13v2q0 .825-.588 1.413T18 17h-3ZM5 9q-.425 0-.713-.288T4 8q0-.425.288-.713T5 7q.425 0 .713.288T6 8q0 .425-.288.713T5 9Z"/>'},data$l={width:24,height:24,body:'<path fill="currentColor" d="M12 22q-2.05 0-3.875-.788t-3.188-2.15q-1.362-1.362-2.15-3.187T2 12q0-2.075.788-3.888t2.15-3.174Q6.3 3.575 8.124 2.788T12 2q2.075 0 3.888.788t3.174 2.15q1.363 1.362 2.15 3.175T22 12q0 2.05-.788 3.875t-2.15 3.188q-1.362 1.362-3.175 2.15T12 22Zm0-2.05q.65-.9 1.125-1.875T13.9 16h-3.8q.3 1.1.775 2.075T12 19.95Zm-2.6-.4q-.45-.825-.788-1.713T8.05 16H5.1q.725 1.25 1.813 2.175T9.4 19.55Zm5.2 0q1.4-.45 2.488-1.375T18.9 16h-2.95q-.225.95-.562 1.838T14.6 19.55ZM4.25 14h3.4q-.075-.5-.113-.988T7.5 12q0-.525.038-1.012T7.65 10h-3.4q-.125.5-.188.988T4 12q0 .525.063 1.012T4.25 14Zm5.4 0h4.7q.075-.5.113-.988T14.5 12q0-.525-.038-1.012T14.35 10h-4.7q-.075.5-.113.988T9.5 12q0 .525.038 1.012T9.65 14Zm6.7 0h3.4q.125-.5.188-.988T20 12q0-.525-.063-1.012T19.75 10h-3.4q.075.5.113.988T16.5 12q0 .525-.038 1.012T16.35 14Zm-.4-6h2.95q-.725-1.25-1.812-2.175T14.6 4.45q.45.825.788 1.713T15.95 8ZM10.1 8h3.8q-.3-1.1-.775-2.075T12 4.05q-.65.9-1.125 1.875T10.1 8Zm-5 0h2.95q.225-.95.563-1.838T9.4 4.45Q8 4.9 6.912 5.825T5.1 8Z"/>'},data$k={width:24,height:24,body:'<path fill="currentColor" d="M1 18q.225-2.675 1.638-4.925T6.4 9.5L4.55 6.3q-.15-.225-.075-.475T4.8 5.45q.2-.125.45-.05t.4.3L7.5 8.9Q9.65 8 12 8t4.5.9l1.85-3.2q.15-.225.4-.3t.45.05q.25.125.325.375t-.075.475L17.6 9.5q2.35 1.325 3.762 3.575T23 18H1Zm6-2.75q.525 0 .888-.363T8.25 14q0-.525-.363-.888T7 12.75q-.525 0-.888.363T5.75 14q0 .525.363.888T7 15.25Zm10 0q.525 0 .888-.363T18.25 14q0-.525-.363-.888T17 12.75q-.525 0-.888.363T15.75 14q0 .525.363.888t.887.362Z"/>'},data$j={width:24,height:24,body:'<path fill="currentColor" d="M14.6 8.075q0-1.075-.712-1.725T12 5.7q-.725 0-1.313.313t-1.012.912q-.4.575-1.088.663T7.4 7.225q-.35-.325-.388-.8t.238-.9q.8-1.2 2.038-1.863T12 3q2.425 0 3.938 1.375t1.512 3.6q0 1.125-.475 2.025t-1.75 2.125q-.925.875-1.25 1.363T13.55 14.6q-.1.6-.513 1t-.987.4q-.575 0-.988-.388t-.412-.962q0-.975.425-1.788T12.5 11.15q1.275-1.125 1.688-1.738t.412-1.337ZM12 22q-.825 0-1.413-.588T10 20q0-.825.588-1.413T12 18q.825 0 1.413.588T14 20q0 .825-.588 1.413T12 22Z"/>'},data$i={width:24,height:24,body:'<path fill="currentColor" d="M4 20q-.825 0-1.413-.588T2 18V6q0-.825.588-1.413T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.588 1.413T20 20H4ZM20 8l-7.475 4.675q-.125.075-.263.113t-.262.037q-.125 0-.263-.037t-.262-.113L4 8v10h16V8Zm-8 3l8-5H4l8 5ZM4 8v.25v-1.475v.025V6v.8v-.012V8.25V8v10V8Z"/>'};function WalletOSIcon({loading:a,walletOS:j,provider:_e,color:et}){return a?jsxRuntimeExports.jsx(Icon,{icon:data$j,style:{color:"transparent"}}):_e===LOGIN_PROVIDER$1.AUTH0?jsxRuntimeExports.jsx(Icon,{icon:data$i,style:{color:et,transform:"scale(0.85)"}}):j==="ios"?jsxRuntimeExports.jsx(Icon,{icon:data$m,style:{color:et,transform:"scale(1.1)"}}):j==="android"?jsxRuntimeExports.jsx(Icon,{icon:data$k,style:{color:et}}):j==="web"?jsxRuntimeExports.jsx(Icon,{icon:data$l,style:{color:et}}):j==="api"?jsxRuntimeExports.jsx(Icon,{icon:data$n,style:{color:et,transform:"scale(1.05)"}}):null}WalletOSIcon.propTypes={loading:PropTypes.bool,walletOS:PropTypes.string,provider:PropTypes.string,color:PropTypes.string};WalletOSIcon.defaultProps={loading:!1,walletOS:null,provider:null,color:"black"};function ItemWrap({children:a,...j}){return jsxRuntimeExports.jsx(Box,{...j,sx:{borderRadius:2,backgroundColor:colors$1.backgroundsBgSubtile,p:2,transition:"background-color 0.5s","&:hover":{backgroundColor:colors$1.backgroundsBgSubtileHover},...j.sx},children:a})}ItemWrap.propTypes={children:PropTypes.any.isRequired};const data$h={width:24,height:24,body:'<path fill="currentColor" d="M8 20h8v-3q0-1.65-1.175-2.825T12 13q-1.65 0-2.825 1.175T8 17v3Zm4-9q1.65 0 2.825-1.175T16 7V4H8v3q0 1.65 1.175 2.825T12 11ZM5 22q-.425 0-.713-.288T4 21q0-.425.288-.713T5 20h1v-3q0-1.525.713-2.863T8.7 12q-1.275-.8-1.987-2.138T6 7V4H5q-.425 0-.713-.288T4 3q0-.425.288-.713T5 2h14q.425 0 .713.288T20 3q0 .425-.288.713T19 4h-1v3q0 1.525-.713 2.863T15.3 12q1.275.8 1.988 2.138T18 17v3h1q.425 0 .713.288T20 21q0 .425-.288.713T19 22H5Z"/>'},data$g={width:24,height:24,body:'<path fill="currentColor" d="m5.75 18l-.4-.35q-1.3-1.15-1.825-2.625T3 12.05Q3 9.7 4.187 7.787T7.4 4.85q.35-.2.75-.025t.525.575q.125.375-.013.75t-.487.575q-1.45.8-2.313 2.213T5 12.05q0 1.125.425 2.188T6.75 16.2l.25.25V15q0-.425.288-.713T8 14q.425 0 .713.288T9 15v4q0 .425-.288.713T8 20H4q-.425 0-.713-.288T3 19q0-.425.288-.713T4 18h1.75ZM17 7.55V9q0 .425-.288.713T16 10q-.425 0-.713-.288T15 9V5q0-.425.288-.713T16 4h4q.425 0 .713.288T21 5q0 .425-.288.713T20 6h-1.75l.4.35q1.025 1.05 1.575 2.225t.7 2.425H18.9q-.125-.875-.537-1.675T17.25 7.8L17 7.55ZM17.4 23q-.2 0-.313-.113t-.162-.287l-.225-1.1q-.3-.125-.563-.263T15.6 20.9l-1.075.325q-.175.05-.325-.013T13.95 21l-.6-1q-.1-.15-.05-.325t.175-.3l.825-.725q-.05-.35-.05-.65t.05-.65l-.825-.725q-.125-.125-.175-.3t.05-.325l.6-1q.1-.15.25-.212t.325-.013l1.075.325q.275-.2.538-.337t.562-.263l.225-1.1q.05-.175.163-.288T17.4 13h1.2q.2 0 .313.113t.162.287l.225 1.1q.3.125.563.275t.537.375l1.05-.375q.175-.05.338.013t.262.212l.6 1.05q.1.15.063.325t-.163.3l-.85.725q.05.3.05.625t-.05.625l.825.725q.125.125.175.3t-.05.325l-.6 1q-.1.15-.25.213t-.325.012L20.4 20.9q-.275.2-.537.338t-.563.262l-.225 1.1q-.05.175-.163.288T18.6 23h-1.2Zm.6-3q.825 0 1.413-.588T20 18q0-.825-.588-1.413T18 16q-.825 0-1.413.588T16 18q0 .825.588 1.413T18 20Z"/>'};function LoadingMask({size:a,padding:j,borderWidth:_e,borderRadius:et,duration:tt,children:nt}){const rt=a,it=et??rt/8,ot=_e??rt/32,ct=j??rt*.2-ot,ut=tt??2.5;return jsxRuntimeExports.jsxs(Box,{sx:{display:"inline-flex",justifyContent:"center",alignItems:"center",width:rt,height:rt,position:"relative"},children:[jsxRuntimeExports.jsx(Box,{sx:{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center",width:rt,height:rt,overflow:"hidden",borderRadius:`${it}px`,backgroundColor:colors$1.strokeBorderBase,"&::before,&::after":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,pointerEvents:"none"},"&::after":{left:ot,right:ot,top:ot,bottom:ot,backgroundColor:"white",borderRadius:`${it-ot}px`},"&::before":{background:`conic-gradient(from 45deg, ${colors$1.foregroundsFgInteractiveTransparent} 0%, ${colors$1.foregroundsFgInteractiveTransparent} 50%, ${colors$1.foregroundsFgInteractive} 90%, ${colors$1.foregroundsFgInteractive} 100%)`,transform:"scale(100)",animation:`rotate ${ut}s linear infinite`,"@keyframes rotate":{"0%":{transform:"scale(100) rotate(0deg)"},"100%":{transform:"scale(100) rotate(360deg)"}}}}}),jsxRuntimeExports.jsx(Box,{sx:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",width:rt-ct-ot,height:rt-ct-ot},children:nt})]})}LoadingMask.propTypes={size:PropTypes.number,padding:PropTypes.number,borderRadius:PropTypes.number,borderWidth:PropTypes.number,duration:PropTypes.number,children:PropTypes.node.isRequired};LoadingMask.defaultProps={size:64,padding:void 0,borderWidth:void 0,duration:void 0,borderRadius:void 0};var DidWallet={};Object.defineProperty(DidWallet,"__esModule",{value:!0});var default_1$4=DidWallet.default=void 0;_interopRequireDefault$4(reactExports);var _jsxRuntime$3=jsxRuntimeExports;function _interopRequireDefault$4(a){return a&&a.__esModule?a:{default:a}}function ownKeys$3(a,j){var _e=Object.keys(a);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(a);j&&(et=et.filter(function(tt){return Object.getOwnPropertyDescriptor(a,tt).enumerable})),_e.push.apply(_e,et)}return _e}function _objectSpread$1(a){for(var j=1;j<arguments.length;j++){var _e=arguments[j]!=null?arguments[j]:{};j%2?ownKeys$3(Object(_e),!0).forEach(function(et){_defineProperty$1(a,et,_e[et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(_e)):ownKeys$3(Object(_e)).forEach(function(et){Object.defineProperty(a,et,Object.getOwnPropertyDescriptor(_e,et))})}return a}function _defineProperty$1(a,j,_e){return(j=_toPropertyKey$1(j))in a?Object.defineProperty(a,j,{value:_e,enumerable:!0,configurable:!0,writable:!0}):a[j]=_e,a}function _toPropertyKey$1(a){var j=_toPrimitive$1(a,"string");return typeof j=="symbol"?j:j+""}function _toPrimitive$1(a,j){if(typeof a!="object"||!a)return a;var _e=a[Symbol.toPrimitive];if(_e!==void 0){var et=_e.call(a,j||"default");if(typeof et!="object")return et;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(a)}var Component$1=function a(j){return(0,_jsxRuntime$3.jsxs)("svg",_objectSpread$1(_objectSpread$1({},j),{},{children:[(0,_jsxRuntime$3.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,_jsxRuntime$3.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"url(#paint0_linear)"}),(0,_jsxRuntime$3.jsx)("path",{d:"M3.52 7.36A2.56 2.56 0 0 1 6.08 4.8h19.84a2.56 2.56 0 0 1 2.56 2.56v12.16a2.56 2.56 0 0 1-2.56 2.56H6.08a2.56 2.56 0 0 1-2.56-2.56V7.36z",fill:"#9FCBFF",filter:"url(#filter0_i)"}),(0,_jsxRuntime$3.jsx)("path",{d:"M2.56 9.28a2.56 2.56 0 0 1 2.56-2.56h21.76a2.56 2.56 0 0 1 2.56 2.56v13.6a2.56 2.56 0 0 1-2.56 2.56H5.12a2.56 2.56 0 0 1-2.56-2.56V9.28z",fill:"url(#paint1_linear)",filter:"url(#filter1_d)"}),(0,_jsxRuntime$3.jsx)("path",{d:"M0 22.32l32-6.16V32H0v-9.68z",fill:"url(#paint2_linear)",filter:"url(#filter2_d)"}),(0,_jsxRuntime$3.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.536 9.248h8.288c.408 0 .74.3.74.672v4.64c0 .371-.332.672-.74.672H5.536c-.408 0-.74-.3-.74-.672v-.04a.158.158 0 1 0-.316 0v.04c0 .53.473.96 1.056.96h8.288c.583 0 1.056-.43 1.056-.96V9.92c0-.53-.473-.96-1.056-.96H5.536c-.583 0-1.056.43-1.056.96v.04a.158.158 0 0 0 .317 0v-.04c0-.371.33-.672.739-.672zm-1.023 4.638a.127.127 0 0 0 .087.034h1.267c.472 0 .83-.107 1.076-.322.25-.217.381-.548.397-.993a11.281 11.281 0 0 0 0-.734c-.012-.426-.148-.751-.406-.975-.258-.224-.622-.336-1.09-.336H4.6a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.794-.806c-.099.1-.253.149-.464.149h-.502V11.25h.478c.21 0 .369.051.474.154.108.102.166.26.172.475.006.09.01.208.01.355s-.004.267-.01.36c-.006.221-.059.383-.158.485zm1.63.806a.127.127 0 0 0 .087.034h.64a.116.116 0 0 0 .087-.034.11.11 0 0 0 .038-.086v-3.12a.11.11 0 0 0-.038-.086.116.116 0 0 0-.086-.034h-.641a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.637.034a.127.127 0 0 1-.086-.034.128.128 0 0 1-.033-.086v-3.12c0-.035.01-.064.033-.086a.127.127 0 0 1 .086-.034h1.244c.469 0 .832.112 1.09.336.259.224.394.549.407.974a11.244 11.244 0 0 1 0 .735c-.016.445-.148.776-.397.993-.245.215-.604.322-1.076.322H9.574zm1.244-.691c.21 0 .365-.05.464-.149.099-.102.152-.264.158-.485a5.52 5.52 0 0 0 .01-.36c0-.147-.004-.265-.01-.355-.006-.214-.064-.373-.172-.475-.106-.103-.263-.154-.474-.154h-.478v1.978h.502zm2.468-1.382a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.286-.288.286zm0 1.495a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.287-.288.287z",fill:"#4598FA"})]}),(0,_jsxRuntime$3.jsxs)("defs",{children:[(0,_jsxRuntime$3.jsxs)("filter",{id:"filter0_i",x:"3.52",y:"1.8",width:"24.96",height:"20.28",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,_jsxRuntime$3.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,_jsxRuntime$3.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,_jsxRuntime$3.jsx)("feOffset",{dy:"-3"}),(0,_jsxRuntime$3.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,_jsxRuntime$3.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.2 0"}),(0,_jsxRuntime$3.jsx)("feBlend",{in2:"shape",result:"effect1_innerShadow"})]}),(0,_jsxRuntime$3.jsxs)("filter",{id:"filter1_d",x:"-1.44",y:"1.72",width:"34.88",height:"26.72",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,_jsxRuntime$3.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,_jsxRuntime$3.jsx)("feOffset",{dy:"-1"}),(0,_jsxRuntime$3.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{values:"0 0 0 0 0.220767 0 0 0 0 0.470803 0 0 0 0 0.701605 0 0 0 0.18 0"}),(0,_jsxRuntime$3.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,_jsxRuntime$3.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,_jsxRuntime$3.jsxs)("filter",{id:"filter2_d",x:"-5",y:"11.16",width:"42",height:"25.84",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,_jsxRuntime$3.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,_jsxRuntime$3.jsx)("feOffset",{}),(0,_jsxRuntime$3.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,_jsxRuntime$3.jsx)("feColorMatrix",{values:"0 0 0 0 0.14382 0 0 0 0 0.205065 0 0 0 0 0.522634 0 0 0 0.25 0"}),(0,_jsxRuntime$3.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,_jsxRuntime$3.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,_jsxRuntime$3.jsxs)("linearGradient",{id:"paint0_linear",x1:"16",x2:"16",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,_jsxRuntime$3.jsx)("stop",{stopColor:"#4F9DF6"}),(0,_jsxRuntime$3.jsx)("stop",{offset:"1",stopColor:"#0A79F8"})]}),(0,_jsxRuntime$3.jsxs)("linearGradient",{id:"paint1_linear",x1:"16",y1:"6.72",x2:"16",y2:"25.44",gradientUnits:"userSpaceOnUse",children:[(0,_jsxRuntime$3.jsx)("stop",{stopColor:"#fff"}),(0,_jsxRuntime$3.jsx)("stop",{offset:"1",stopColor:"#ECEFFF"})]}),(0,_jsxRuntime$3.jsxs)("linearGradient",{id:"paint2_linear",x1:"16",y1:"19.2",x2:"18.48",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,_jsxRuntime$3.jsx)("stop",{offset:".007",stopColor:"#77B2F6"}),(0,_jsxRuntime$3.jsx)("stop",{offset:".055",stopColor:"#4F9DF6"}),(0,_jsxRuntime$3.jsx)("stop",{offset:"1",stopColor:"#4598FA"})]}),(0,_jsxRuntime$3.jsx)("clipPath",{id:"clip0",children:(0,_jsxRuntime$3.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"#fff"})})]})]}))};Component$1.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};Component$1.displayName="did-wallet";default_1$4=DidWallet.default=Component$1;function Success({size:a,backgroundColor:j,borderWidth:_e}){const et=a-_e*2;return jsxRuntimeExports.jsxs(Box,{className:"check-icon",sx:{width:et,height:et,position:"relative",borderRadius:"100%","&, *, *::before, *::after":{boxSizing:"content-box !important"},border:tt=>`${_e}px solid ${tt.palette.success.main}`,"&::before, &::after":{content:'""',height:"125%",position:"absolute",background:j,transform:"rotate(-45deg)"},"&::before":{top:`${_e/2+1}px`,left:`-${_e/2}px`,width:`calc(32.5% + ${_e}px)`,transformOrigin:"100% 50%",borderRadius:"100% 0 0 100%"},"&::after":{top:0,left:"37.5%",width:`calc(70% + ${_e}px)`,transformOrigin:"0 50%",borderRadius:"0 100% 100% 0",animation:"rotate-circle 4.25s ease-in"},".icon-line":{height:`${_e+1}px`,backgroundColor:tt=>tt.palette.success.main,display:"block",borderRadius:"100vw",position:"absolute",zIndex:10},"@keyframes rotate-circle":{"0%":{transform:"rotate(-45deg)"},"5%":{transform:"rotate(-45deg)"},"12%":{transform:"rotate(-405deg)"},"100%":{transform:"rotate(-405deg)"}}},children:[jsxRuntimeExports.jsx(Box,{component:"span",className:"icon-line line-tip",sx:{top:"57.5%",left:"17.5%",width:"31.25%",transform:"rotate(45deg)",animation:"icon-line-tip 0.75s","@keyframes icon-line-tip":{"0%":{width:"0",left:"1px",top:"23.75%"},"54%":{width:"0",left:"1px",top:"23.75%"},"70%":{width:"62.5%",left:"-10%",top:"46.25%"},"84%":{width:"21.25%",left:"26.25%",top:"60%"},"100%":{width:"31.25",left:"17.5%",top:"56.25%"}}}}),jsxRuntimeExports.jsx(Box,{component:"span",className:"icon-line line-long",sx:{top:"47.5%",right:"10%",width:"58.75%",transform:"rotate(-45deg)",animation:"icon-line-long 0.75s","@keyframes icon-line-long":{"0%":{width:"0",right:"57.5%",top:"67.5%"},"65%":{width:"0",right:"57.5%",top:"67.5%"},"84%":{width:"68.75%",right:"0px",top:"43.75%"},"100%":{width:"58.75%",right:"10%",top:"47.5%"}}}}),jsxRuntimeExports.jsx(Box,{className:"icon-circle",sx:{top:`-${_e}px`,left:`-${_e}px`,zIndex:10,width:et,height:et,borderRadius:"100%",position:"absolute",boxSizing:"contentBox",border:`${_e}px solid rgba(76, 175, 80, 0.5)`}}),jsxRuntimeExports.jsx(Box,{className:"icon-fix",sx:{top:`calc(8% - ${Math.sqrt(_e)}px)`,width:_e+1,left:`calc(32% - ${Math.sqrt(_e)}px)`,zIndex:1,height:et+_e*2,position:"absolute",transform:"rotate(-45deg)",backgroundColor:j}})]})}Success.propTypes={size:PropTypes.number,borderWidth:PropTypes.number,backgroundColor:PropTypes.string};Success.defaultProps={size:64,borderWidth:4,backgroundColor:"white"};function Button({...a}){return jsxRuntimeExports.jsx(Button$1,{variant:"outlined",color:"inherit",...a,sx:{borderRadius:2,borderColor:colors$1.strokeBorderBase,color:colors$1.foregroundsFgBase,backgroundColor:"#fff",fontWeight:500,fontSize:13,...a.sx}})}function BaseStatus({icon:a,title:j,color:_e,description:et,extraContent:tt,actions:nt}){return jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:1.5},children:[reactExports.isValidElement(a)?a:jsxRuntimeExports.jsx(Box,{sx:{backgroundColor:_e,borderRadius:"100%",fontSize:0},children:jsxRuntimeExports.jsx(Icon,{icon:a,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})}),jsxRuntimeExports.jsxs(Box,{sx:{textAlign:"center"},children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",sx:{fontWeight:500,color:_e},children:j}),jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{color:colors$1.foregroundsFgSubtile,overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":"3",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:et})]}),tt,jsxRuntimeExports.jsx(Box,{children:nt})]})}BaseStatus.propTypes={icon:PropTypes.node,title:PropTypes.string,color:PropTypes.string,description:PropTypes.string,extraContent:PropTypes.node,actions:PropTypes.node};BaseStatus.defaultProps={icon:null,title:"",color:colors$1.foregroundsFgBase,description:"",extraContent:null,actions:null};function MfaCode({title:a,mfaCode:j}){return jsxRuntimeExports.jsxs(Box,{className:"status-mfa",sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",border:`1px solid ${colors$1.strokeBorderBase}`,borderRadius:2,maxWidth:"360px",backgroundColor:"transparent",p:1},children:[jsxRuntimeExports.jsx(Box,{className:"status-mfa-tip",sx:{textAlign:"center",textWrap:"balance"},children:a}),jsxRuntimeExports.jsx(Typography,{className:"status-mfa-code",sx:{mt:1,lineHeight:1,fontSize:"36px",fontWeight:700,letterSpacing:1},children:j})]})}MfaCode.propTypes={title:PropTypes.string,mfaCode:PropTypes.number};MfaCode.defaultProps={title:"",mfaCode:0};function ConnectStatus({status:a,nextWorkflow:j,mfaCode:_e,onCancel:et,onRetry:tt,onClose:nt,messages:rt,locale:it,...ot}){const ct=translations$3[it]||translations$3.en;return jsxRuntimeExports.jsxs(Box,{...ot,sx:{py:2,minHeight:200,...ot.sx},children:[a==="scanned"&&!j&&jsxRuntimeExports.jsx(BaseStatus,{icon:jsxRuntimeExports.jsx(LoadingMask,{size:52,borderRadius:12,children:jsxRuntimeExports.jsx(default_1$4,{style:{width:"100%",height:"100%"}})}),title:ct.requestConnect,description:ct.continueInWallet,extraContent:_e>0&&jsxRuntimeExports.jsx(MfaCode,{mfaCode:_e,title:ct.mfaCode}),actions:jsxRuntimeExports.jsx(Button,{onClick:et,children:ct.back})}),a==="scanned"&&!!j&&jsxRuntimeExports.jsx(BaseStatus,{color:colors$1.foregroundsFgInteractive,icon:data$h,title:ct.wait,description:ct.waiting,extraContent:_e>0&&jsxRuntimeExports.jsx(MfaCode,{mfaCode:_e,title:ct.mfaCode}),actions:jsxRuntimeExports.jsx(Button,{onClick:et,children:ct.back})}),a==="succeed"&&jsxRuntimeExports.jsx(BaseStatus,{color:"#3ab39d",icon:jsxRuntimeExports.jsx(Success,{size:52}),title:ct.success,description:rt.success,actions:jsxRuntimeExports.jsx(Button,{onClick:nt,children:ct.close})}),a==="error"&&jsxRuntimeExports.jsx(BaseStatus,{color:colors$1.buttonsButtonDanger,icon:data$q,title:ct.failed,description:rt.error||ct.error,actions:jsxRuntimeExports.jsx(Button,{onClick:tt,children:ct.retry})}),a==="busy"&&jsxRuntimeExports.jsx(BaseStatus,{color:"#ed6c02",icon:data$g,title:ct.busyTitle,description:rt.error||ct.busyDesc,actions:jsxRuntimeExports.jsx(Button,{onClick:tt,children:ct.retry})})]})}ConnectStatus.propTypes={status:PropTypes.string,nextWorkflow:PropTypes.string,mfaCode:PropTypes.number,onCancel:PropTypes.func,onRetry:PropTypes.func,onClose:PropTypes.func,messages:PropTypes.shape({confirm:PropTypes.string.isRequired,success:PropTypes.any.isRequired,error:PropTypes.any.isRequired}).isRequired,locale:PropTypes.oneOf(["en","zh"])};ConnectStatus.defaultProps={status:"",nextWorkflow:"",mfaCode:0,onCancel:noop$7,onRetry:noop$7,onClose:noop$7,locale:"en"};function QuickLoginItem({userSession:a,locale:j}){var et,tt,nt,rt;const _e=getSourceProvider(a==null?void 0:a.user)==="wallet";return jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:colors$1.surfacePrimarySubtitle}},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1.5,flex:1,overflow:"hidden"},children:[jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{src:a.user.avatar,did:a.user.did,size:48,variant:"circle",shape:"circle"}),jsxRuntimeExports.jsxs(Box,{sx:{flex:1,overflow:"hidden"},children:[jsxRuntimeExports.jsxs(Typography,{sx:{fontSize:"16px",fontWeight:"bold",display:"flex",alignItems:"center",gap:1,color:colors$1.textBase},children:[a.user.fullName,jsxRuntimeExports.jsx(Chip,{label:((et=a.user)==null?void 0:et.roleTitle)||((tt=a.user)==null?void 0:tt.role),size:"small",variant:"outlined",sx:()=>({height:"auto",fontWeight:"bold",fontSize:"12px",borderColor:colors$1.lineBorderStrong,color:colors$1.textSubtitle})})]}),_e?jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[jsxRuntimeExports.jsx(WalletOSIcon,{provider:(nt=a==null?void 0:a.extra)==null?void 0:nt.provider,walletOS:(rt=a==null?void 0:a.extra)==null?void 0:rt.walletOS,color:colors$1.textSubtitle}),jsxRuntimeExports.jsx(DID,{did:a.user.did,size:12,sx:{lineHeight:1,fontSize:"12px",mt:.5},responsive:!0})]}):jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"12px",color:colors$1.textSubtitle},children:a.user.email})]})]}),a.updatedAt&&jsxRuntimeExports.jsx(Box,{component:"span",sx:{color:colors$1.textMuted,fontSize:"12px",flexShrink:0},children:jsxRuntimeExports.jsx(RelativeTime,{value:a.updatedAt,locale:j})})]})}QuickLoginItem.propTypes={userSession:PropTypes.shape({user:PropTypes.shape({avatar:PropTypes.string,did:PropTypes.string,fullName:PropTypes.string,role:PropTypes.string,roleTitle:PropTypes.string,email:PropTypes.string}),extra:PropTypes.shape({walletOS:PropTypes.string,provider:PropTypes.string}),updatedAt:PropTypes.string}).isRequired,locale:PropTypes.string};QuickLoginItem.defaultProps={locale:"en"};function QuickConnect({userSessions:a,onLogin:j,onClose:_e,messages:et,onRetry:tt,onLoginAnother:nt}){const{t:rt,locale:it,changeStatus:ot,blocklet:ct}=useStateContext(),ut=rt("otherAccount"),dt=useReactive({loadingId:null,status:"created",messages:{confirm:et.confirm,success:et.success,error:""},reset(){this.loadingId=null,this.status="created",this.messages.error=""}}),pt=useMemoizedFn(async vt=>{dt.loadingId=vt.id;try{await j({...vt,appPid:ct==null?void 0:ct.appPid}),dt.status="succeed"}catch(Et){dt.status="error",dt.messages.error=Et.messages}finally{dt.loadingId=null}}),mt=useMemoizedFn(()=>{dt.reset(),tt()});return reactExports.useEffect(()=>{ot(dt.status)},[ot,dt.status]),dt.status!=="created"?jsxRuntimeExports.jsx(ConnectStatus,{status:dt.status,onRetry:mt,onClose:_e,messages:dt.messages,locale:it,className:"auth-status"}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a.map(vt=>{var Et;return jsxRuntimeExports.jsx(Tooltip,{title:rt("loginWithThisAccount"),arrow:!0,placement:"top",children:jsxRuntimeExports.jsxs(Box,{sx:{position:"relative"},onClick:()=>pt(vt),children:[dt.loadingId===vt.id?jsxRuntimeExports.jsx(LinearProgress,{sx:{height:"2px",position:"absolute",top:0,left:0,right:0}}):null,jsxRuntimeExports.jsx(QuickLoginItem,{userSession:vt,locale:it})]})},(Et=vt==null?void 0:vt.user)==null?void 0:Et.did)}),jsxRuntimeExports.jsx(Tooltip,{title:rt("loginWithAnotherAccount"),arrow:!0,placement:"top",children:jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:colors$1.surfacePrimarySubtitle},color:colors$1.textBase},onClick:nt,children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(Box,{sx:{fontSize:0,p:.5},children:jsxRuntimeExports.jsx(Icon,{icon:data$p,fontSize:"40px"})}),jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"16px",fontWeight:"bold"},children:ut})]}),jsxRuntimeExports.jsx(Icon,{className:"other-item-icon",icon:data$o,fontSize:"24px"})]})})})]})}QuickConnect.propTypes={userSessions:PropTypes.array.isRequired,onLogin:PropTypes.func.isRequired,onRetry:PropTypes.func.isRequired,onClose:PropTypes.func.isRequired,onLoginAnother:PropTypes.func.isRequired,messages:PropTypes.object};QuickConnect.defaultProps={messages:{}};var HASH_UNDEFINED$2="__lodash_hash_undefined__";function setCacheAdd$1(a){return this.__data__.set(a,HASH_UNDEFINED$2),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(a){return this.__data__.has(a)}var _setCacheHas=setCacheHas$1,MapCache$2=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$3(a){var j=-1,_e=a==null?0:a.length;for(this.__data__=new MapCache$2;++j<_e;)this.add(a[j])}SetCache$3.prototype.add=SetCache$3.prototype.push=setCacheAdd;SetCache$3.prototype.has=setCacheHas;var _SetCache=SetCache$3;function baseFindIndex$1(a,j,_e,et){for(var tt=a.length,nt=_e+(et?1:-1);et?nt--:++nt<tt;)if(j(a[nt],nt,a))return nt;return-1}var _baseFindIndex=baseFindIndex$1;function baseIsNaN$1(a){return a!==a}var _baseIsNaN=baseIsNaN$1;function strictIndexOf$1(a,j,_e){for(var et=_e-1,tt=a.length;++et<tt;)if(a[et]===j)return et;return-1}var _strictIndexOf=strictIndexOf$1,baseFindIndex=_baseFindIndex,baseIsNaN=_baseIsNaN,strictIndexOf=_strictIndexOf;function baseIndexOf$2(a,j,_e){return j===j?strictIndexOf(a,j,_e):baseFindIndex(a,baseIsNaN,_e)}var _baseIndexOf=baseIndexOf$2,baseIndexOf$1=_baseIndexOf;function arrayIncludes$3(a,j){var _e=a==null?0:a.length;return!!_e&&baseIndexOf$1(a,j,0)>-1}var _arrayIncludes=arrayIncludes$3;function arrayIncludesWith$2(a,j,_e){for(var et=-1,tt=a==null?0:a.length;++et<tt;)if(_e(j,a[et]))return!0;return!1}var _arrayIncludesWith=arrayIncludesWith$2;function cacheHas$3(a,j){return a.has(j)}var _cacheHas=cacheHas$3,SetCache$2=_SetCache,arrayIncludes$2=_arrayIncludes,arrayIncludesWith$1=_arrayIncludesWith,arrayMap$3=_arrayMap,baseUnary$1=_baseUnary,cacheHas$2=_cacheHas,nativeMin=Math.min;function baseIntersection$1(a,j,_e){for(var et=_e?arrayIncludesWith$1:arrayIncludes$2,tt=a[0].length,nt=a.length,rt=nt,it=Array(nt),ot=1/0,ct=[];rt--;){var ut=a[rt];rt&&j&&(ut=arrayMap$3(ut,baseUnary$1(j))),ot=nativeMin(ut.length,ot),it[rt]=!_e&&(j||tt>=120&&ut.length>=120)?new SetCache$2(rt&&ut):void 0}ut=a[0];var dt=-1,pt=it[0];e:for(;++dt<tt&&ct.length<ot;){var mt=ut[dt],vt=j?j(mt):mt;if(mt=_e||mt!==0?mt:0,!(pt?cacheHas$2(pt,vt):et(ct,vt,_e))){for(rt=nt;--rt;){var Et=it[rt];if(!(Et?cacheHas$2(Et,vt):et(a[rt],vt,_e)))continue e}pt&&pt.push(vt),ct.push(mt)}}return ct}var _baseIntersection=baseIntersection$1,isArrayLikeObject$1=isArrayLikeObject_1;function castArrayLikeObject$1(a){return isArrayLikeObject$1(a)?a:[]}var _castArrayLikeObject=castArrayLikeObject$1,arrayMap$2=_arrayMap,baseIntersection=_baseIntersection,baseRest$2=_baseRest,castArrayLikeObject=_castArrayLikeObject,intersection=baseRest$2(function(a){var j=arrayMap$2(a,castArrayLikeObject);return j.length&&j[0]===a[0]?baseIntersection(j):[]}),intersection_1=intersection;const intersection$1=getDefaultExportFromCjs$1(intersection_1),data$f={width:24,height:24,body:'<path fill="currentColor" d="M19 21q-.975 0-1.75-.563T16.175 19H11q-1.65 0-2.825-1.175T7 15q0-1.65 1.175-2.825T11 11h2q.825 0 1.413-.588T15 9q0-.825-.588-1.413T13 7H7.825q-.325.875-1.088 1.438T5 9q-1.25 0-2.125-.875T2 6q0-1.25.875-2.125T5 3q.975 0 1.738.563T7.824 5H13q1.65 0 2.825 1.175T17 9q0 1.65-1.175 2.825T13 13h-2q-.825 0-1.413.588T9 15q0 .825.588 1.413T11 17h5.175q.325-.875 1.088-1.438T19 15q1.25 0 2.125.875T22 18q0 1.25-.875 2.125T19 21ZM5 7q.425 0 .713-.288T6 6q0-.425-.288-.713T5 5q-.425 0-.713.288T4 6q0 .425.288.713T5 7Z"/>'},chromeExtDownloadUrl="https://chromewebstore.google.com/detail/did-wallet/ibjflpbmadchofnbpppegdbnifdgincp",edgeExtDownloadUrl="https://microsoftedge.microsoft.com/addons/detail/did-wallet/hjgoblidjnnnamdkinbichnfbmghmafd";function WebLoginItem({tokenState:a,locale:j,webWalletUrl:_e}){const et=detectWalletExtension(),{t:tt}=useStateContext(),nt=useMemoizedFn(()=>{openWebWallet({webWalletUrl:_e,url:a.url,locale:j})}),rt=useCreation(()=>{var mt;const pt=(mt=window==null?void 0:window.navigator)==null?void 0:mt.userAgent;return pt.indexOf("Edge")>-1||pt.indexOf("Edg")>-1?"edge":pt.indexOf("Chrome")>-1?"chrome":"unknown"},[]),it=useCreation(()=>rt==="edge"?edgeExtDownloadUrl:rt==="chrome"?chromeExtDownloadUrl:null,[rt]),ot=useCreation(()=>et?{onClick:nt}:it?{href:it,target:"_blank",rel:"noopener"}:{onClick:nt},[nt]),ct=useCreation(()=>et||it?"Web Wallet Extension":"Web Wallet",[et,it]),ut=useCreation(()=>!et&&!it?new URL(_e).hostname:null,[_e,it]),dt=useCreation(()=>et?null:it?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["You can also use"," ",jsxRuntimeExports.jsx(Box,{onClick:nt,component:"span",sx:{color:colors$1.foregroundsFgInteractive,cursor:"pointer","&:hover":{textDecoration:"underline dashed"}},children:"Web Wallet"})]}):null,[et,it]);return jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(default_1$4,{width:"24px",height:"24px"}),jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"14px",fontWeight:500},children:ct}),ut?jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"12px",color:colors$1.textMuted},children:ut}):null]}),dt?jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"12px",color:colors$1.textMuted},children:dt}):null]})]}),jsxRuntimeExports.jsx(Button,{...ot,startIcon:jsxRuntimeExports.jsx(Icon,{icon:data$f}),children:tt("connectButton")})]})}WebLoginItem.propTypes={tokenState:PropTypes.object.isRequired,locale:PropTypes.string,webWalletUrl:PropTypes.string.isRequired};WebLoginItem.defaultProps={locale:"en"};var qrCodeStyling={exports:{}};(function(a,j){(function(_e,et){a.exports=et()})(commonjsGlobal,function(){return(()=>{var _e={192:(nt,rt)=>{var it,ot,ct=function(){var ut=function(wt,ft){var ht=wt,$t=Rt[ft],Tt=null,At=0,kt=null,Ct=[],It={},bt=function(Ht,Ot){Tt=function(Kt){for(var Xt=new Array(Kt),an=0;an<Kt;an+=1){Xt[an]=new Array(Kt);for(var _n=0;_n<Kt;_n+=1)Xt[an][_n]=null}return Xt}(At=4*ht+17),Lt(0,0),Lt(At-7,0),Lt(0,At-7),Ut(),sn(),Gt(Ht,Ot),ht>=7&&Zt(Ht),kt==null&&(kt=cn(ht,$t,Ct)),Yt(kt,Ot)},Lt=function(Ht,Ot){for(var Kt=-1;Kt<=7;Kt+=1)if(!(Ht+Kt<=-1||At<=Ht+Kt))for(var Xt=-1;Xt<=7;Xt+=1)Ot+Xt<=-1||At<=Ot+Xt||(Tt[Ht+Kt][Ot+Xt]=0<=Kt&&Kt<=6&&(Xt==0||Xt==6)||0<=Xt&&Xt<=6&&(Kt==0||Kt==6)||2<=Kt&&Kt<=4&&2<=Xt&&Xt<=4)},sn=function(){for(var Ht=8;Ht<At-8;Ht+=1)Tt[Ht][6]==null&&(Tt[Ht][6]=Ht%2==0);for(var Ot=8;Ot<At-8;Ot+=1)Tt[6][Ot]==null&&(Tt[6][Ot]=Ot%2==0)},Ut=function(){for(var Ht=xt.getPatternPosition(ht),Ot=0;Ot<Ht.length;Ot+=1)for(var Kt=0;Kt<Ht.length;Kt+=1){var Xt=Ht[Ot],an=Ht[Kt];if(Tt[Xt][an]==null)for(var _n=-2;_n<=2;_n+=1)for(var yn=-2;yn<=2;yn+=1)Tt[Xt+_n][an+yn]=_n==-2||_n==2||yn==-2||yn==2||_n==0&&yn==0}},Zt=function(Ht){for(var Ot=xt.getBCHTypeNumber(ht),Kt=0;Kt<18;Kt+=1){var Xt=!Ht&&(Ot>>Kt&1)==1;Tt[Math.floor(Kt/3)][Kt%3+At-8-3]=Xt}for(Kt=0;Kt<18;Kt+=1)Xt=!Ht&&(Ot>>Kt&1)==1,Tt[Kt%3+At-8-3][Math.floor(Kt/3)]=Xt},Gt=function(Ht,Ot){for(var Kt=$t<<3|Ot,Xt=xt.getBCHTypeInfo(Kt),an=0;an<15;an+=1){var _n=!Ht&&(Xt>>an&1)==1;an<6?Tt[an][8]=_n:an<8?Tt[an+1][8]=_n:Tt[At-15+an][8]=_n}for(an=0;an<15;an+=1)_n=!Ht&&(Xt>>an&1)==1,an<8?Tt[8][At-an-1]=_n:an<9?Tt[8][15-an-1+1]=_n:Tt[8][15-an-1]=_n;Tt[At-8][8]=!Ht},Yt=function(Ht,Ot){for(var Kt=-1,Xt=At-1,an=7,_n=0,yn=xt.getMaskFunction(Ot),dn=At-1;dn>0;dn-=2)for(dn==6&&(dn-=1);;){for(var $n=0;$n<2;$n+=1)if(Tt[Xt][dn-$n]==null){var wn=!1;_n<Ht.length&&(wn=(Ht[_n]>>>an&1)==1),yn(Xt,dn-$n)&&(wn=!wn),Tt[Xt][dn-$n]=wn,(an-=1)==-1&&(_n+=1,an=7)}if((Xt+=Kt)<0||At<=Xt){Xt-=Kt,Kt=-Kt;break}}},cn=function(Ht,Ot,Kt){for(var Xt=Ft.getRSBlocks(Ht,Ot),an=zt(),_n=0;_n<Kt.length;_n+=1){var yn=Kt[_n];an.put(yn.getMode(),4),an.put(yn.getLength(),xt.getLengthInBits(yn.getMode(),Ht)),yn.write(an)}var dn=0;for(_n=0;_n<Xt.length;_n+=1)dn+=Xt[_n].dataCount;if(an.getLengthInBits()>8*dn)throw"code length overflow. ("+an.getLengthInBits()+">"+8*dn+")";for(an.getLengthInBits()+4<=8*dn&&an.put(0,4);an.getLengthInBits()%8!=0;)an.putBit(!1);for(;!(an.getLengthInBits()>=8*dn||(an.put(236,8),an.getLengthInBits()>=8*dn));)an.put(17,8);return function($n,wn){for(var Sn=0,qn=0,Qn=0,jn=new Array(wn.length),zn=new Array(wn.length),vn=0;vn<wn.length;vn+=1){var Rn=wn[vn].dataCount,Fn=wn[vn].totalCount-Rn;qn=Math.max(qn,Rn),Qn=Math.max(Qn,Fn),jn[vn]=new Array(Rn);for(var Dn=0;Dn<jn[vn].length;Dn+=1)jn[vn][Dn]=255&$n.getBuffer()[Dn+Sn];Sn+=Rn;var ln=xt.getErrorCorrectPolynomial(Fn),Jt=Dt(jn[vn],ln.getLength()-1).mod(ln);for(zn[vn]=new Array(ln.getLength()-1),Dn=0;Dn<zn[vn].length;Dn+=1){var Wt=Dn+Jt.getLength()-zn[vn].length;zn[vn][Dn]=Wt>=0?Jt.getAt(Wt):0}}var mn=0;for(Dn=0;Dn<wn.length;Dn+=1)mn+=wn[Dn].totalCount;var In=new Array(mn),Cn=0;for(Dn=0;Dn<qn;Dn+=1)for(vn=0;vn<wn.length;vn+=1)Dn<jn[vn].length&&(In[Cn]=jn[vn][Dn],Cn+=1);for(Dn=0;Dn<Qn;Dn+=1)for(vn=0;vn<wn.length;vn+=1)Dn<zn[vn].length&&(In[Cn]=zn[vn][Dn],Cn+=1);return In}(an,Xt)};It.addData=function(Ht,Ot){var Kt=null;switch(Ot=Ot||"Byte"){case"Numeric":Kt=Nt(Ht);break;case"Alphanumeric":Kt=Vt(Ht);break;case"Byte":Kt=nn(Ht);break;case"Kanji":Kt=fn(Ht);break;default:throw"mode:"+Ot}Ct.push(Kt),kt=null},It.isDark=function(Ht,Ot){if(Ht<0||At<=Ht||Ot<0||At<=Ot)throw Ht+","+Ot;return Tt[Ht][Ot]},It.getModuleCount=function(){return At},It.make=function(){if(ht<1){for(var Ht=1;Ht<40;Ht++){for(var Ot=Ft.getRSBlocks(Ht,$t),Kt=zt(),Xt=0;Xt<Ct.length;Xt++){var an=Ct[Xt];Kt.put(an.getMode(),4),Kt.put(an.getLength(),xt.getLengthInBits(an.getMode(),Ht)),an.write(Kt)}var _n=0;for(Xt=0;Xt<Ot.length;Xt++)_n+=Ot[Xt].dataCount;if(Kt.getLengthInBits()<=8*_n)break}ht=Ht}bt(!1,function(){for(var yn=0,dn=0,$n=0;$n<8;$n+=1){bt(!0,$n);var wn=xt.getLostPoint(It);($n==0||yn>wn)&&(yn=wn,dn=$n)}return dn}())},It.createTableTag=function(Ht,Ot){Ht=Ht||2;var Kt="";Kt+='<table style="',Kt+=" border-width: 0px; border-style: none;",Kt+=" border-collapse: collapse;",Kt+=" padding: 0px; margin: "+(Ot=Ot===void 0?4*Ht:Ot)+"px;",Kt+='">',Kt+="<tbody>";for(var Xt=0;Xt<It.getModuleCount();Xt+=1){Kt+="<tr>";for(var an=0;an<It.getModuleCount();an+=1)Kt+='<td style="',Kt+=" border-width: 0px; border-style: none;",Kt+=" border-collapse: collapse;",Kt+=" padding: 0px; margin: 0px;",Kt+=" width: "+Ht+"px;",Kt+=" height: "+Ht+"px;",Kt+=" background-color: ",Kt+=It.isDark(Xt,an)?"#000000":"#ffffff",Kt+=";",Kt+='"/>';Kt+="</tr>"}return(Kt+="</tbody>")+"</table>"},It.createSvgTag=function(Ht,Ot,Kt,Xt){var an={};typeof arguments[0]=="object"&&(Ht=(an=arguments[0]).cellSize,Ot=an.margin,Kt=an.alt,Xt=an.title),Ht=Ht||2,Ot=Ot===void 0?4*Ht:Ot,(Kt=typeof Kt=="string"?{text:Kt}:Kt||{}).text=Kt.text||null,Kt.id=Kt.text?Kt.id||"qrcode-description":null,(Xt=typeof Xt=="string"?{text:Xt}:Xt||{}).text=Xt.text||null,Xt.id=Xt.text?Xt.id||"qrcode-title":null;var _n,yn,dn,$n,wn=It.getModuleCount()*Ht+2*Ot,Sn="";for($n="l"+Ht+",0 0,"+Ht+" -"+Ht+",0 0,-"+Ht+"z ",Sn+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',Sn+=an.scalable?"":' width="'+wn+'px" height="'+wn+'px"',Sn+=' viewBox="0 0 '+wn+" "+wn+'" ',Sn+=' preserveAspectRatio="xMinYMin meet"',Sn+=Xt.text||Kt.text?' role="img" aria-labelledby="'+En([Xt.id,Kt.id].join(" ").trim())+'"':"",Sn+=">",Sn+=Xt.text?'<title id="'+En(Xt.id)+'">'+En(Xt.text)+"</title>":"",Sn+=Kt.text?'<description id="'+En(Kt.id)+'">'+En(Kt.text)+"</description>":"",Sn+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',Sn+='<path d="',yn=0;yn<It.getModuleCount();yn+=1)for(dn=yn*Ht+Ot,_n=0;_n<It.getModuleCount();_n+=1)It.isDark(yn,_n)&&(Sn+="M"+(_n*Ht+Ot)+","+dn+$n);return(Sn+='" stroke="transparent" fill="black"/>')+"</svg>"},It.createDataURL=function(Ht,Ot){Ht=Ht||2,Ot=Ot===void 0?4*Ht:Ot;var Kt=It.getModuleCount()*Ht+2*Ot,Xt=Ot,an=Kt-Ot;return Mt(Kt,Kt,function(_n,yn){if(Xt<=_n&&_n<an&&Xt<=yn&&yn<an){var dn=Math.floor((_n-Xt)/Ht),$n=Math.floor((yn-Xt)/Ht);return It.isDark($n,dn)?0:1}return 1})},It.createImgTag=function(Ht,Ot,Kt){Ht=Ht||2,Ot=Ot===void 0?4*Ht:Ot;var Xt=It.getModuleCount()*Ht+2*Ot,an="";return an+="<img",an+=' src="',an+=It.createDataURL(Ht,Ot),an+='"',an+=' width="',an+=Xt,an+='"',an+=' height="',an+=Xt,an+='"',Kt&&(an+=' alt="',an+=En(Kt),an+='"'),an+"/>"};var En=function(Ht){for(var Ot="",Kt=0;Kt<Ht.length;Kt+=1){var Xt=Ht.charAt(Kt);switch(Xt){case"<":Ot+="&lt;";break;case">":Ot+="&gt;";break;case"&":Ot+="&amp;";break;case'"':Ot+="&quot;";break;default:Ot+=Xt}}return Ot};return It.createASCII=function(Ht,Ot){if((Ht=Ht||1)<2)return function(jn){jn=jn===void 0?2:jn;var zn,vn,Rn,Fn,Dn,ln=1*It.getModuleCount()+2*jn,Jt=jn,Wt=ln-jn,mn={"██":"█","█ ":"▀"," █":"▄"," ":" "},In={"██":"▀","█ ":"▀"," █":" "," ":" "},Cn="";for(zn=0;zn<ln;zn+=2){for(Rn=Math.floor((zn-Jt)/1),Fn=Math.floor((zn+1-Jt)/1),vn=0;vn<ln;vn+=1)Dn="█",Jt<=vn&&vn<Wt&&Jt<=zn&&zn<Wt&&It.isDark(Rn,Math.floor((vn-Jt)/1))&&(Dn=" "),Jt<=vn&&vn<Wt&&Jt<=zn+1&&zn+1<Wt&&It.isDark(Fn,Math.floor((vn-Jt)/1))?Dn+=" ":Dn+="█",Cn+=jn<1&&zn+1>=Wt?In[Dn]:mn[Dn];Cn+=`
492
492
  `}return ln%2&&jn>0?Cn.substring(0,Cn.length-ln-1)+Array(ln+1).join("▀"):Cn.substring(0,Cn.length-1)}(Ot);Ht-=1,Ot=Ot===void 0?2*Ht:Ot;var Kt,Xt,an,_n,yn=It.getModuleCount()*Ht+2*Ot,dn=Ot,$n=yn-Ot,wn=Array(Ht+1).join("██"),Sn=Array(Ht+1).join(" "),qn="",Qn="";for(Kt=0;Kt<yn;Kt+=1){for(an=Math.floor((Kt-dn)/Ht),Qn="",Xt=0;Xt<yn;Xt+=1)_n=1,dn<=Xt&&Xt<$n&&dn<=Kt&&Kt<$n&&It.isDark(an,Math.floor((Xt-dn)/Ht))&&(_n=0),Qn+=_n?wn:Sn;for(an=0;an<Ht;an+=1)qn+=Qn+`
493
493
  `}return qn.substring(0,qn.length-1)},It.renderTo2dContext=function(Ht,Ot){Ot=Ot||2;for(var Kt=It.getModuleCount(),Xt=0;Xt<Kt;Xt++)for(var an=0;an<Kt;an++)Ht.fillStyle=It.isDark(Xt,an)?"black":"white",Ht.fillRect(Xt*Ot,an*Ot,Ot,Ot)},It};ut.stringToBytes=(ut.stringToBytesFuncs={default:function(wt){for(var ft=[],ht=0;ht<wt.length;ht+=1){var $t=wt.charCodeAt(ht);ft.push(255&$t)}return ft}}).default,ut.createStringToBytes=function(wt,ft){var ht=function(){for(var Tt=Qt(wt),At=function(){var sn=Tt.read();if(sn==-1)throw"eof";return sn},kt=0,Ct={};;){var It=Tt.read();if(It==-1)break;var bt=At(),Lt=At()<<8|At();Ct[String.fromCharCode(It<<8|bt)]=Lt,kt+=1}if(kt!=ft)throw kt+" != "+ft;return Ct}(),$t=63;return function(Tt){for(var At=[],kt=0;kt<Tt.length;kt+=1){var Ct=Tt.charCodeAt(kt);if(Ct<128)At.push(Ct);else{var It=ht[Tt.charAt(kt)];typeof It=="number"?(255&It)==It?At.push(It):(At.push(It>>>8),At.push(255&It)):At.push($t)}}return At}};var dt,pt,mt,vt,Et,Rt={L:1,M:0,Q:3,H:2},xt=(dt=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],pt=1335,mt=7973,Et=function(wt){for(var ft=0;wt!=0;)ft+=1,wt>>>=1;return ft},(vt={}).getBCHTypeInfo=function(wt){for(var ft=wt<<10;Et(ft)-Et(pt)>=0;)ft^=pt<<Et(ft)-Et(pt);return 21522^(wt<<10|ft)},vt.getBCHTypeNumber=function(wt){for(var ft=wt<<12;Et(ft)-Et(mt)>=0;)ft^=mt<<Et(ft)-Et(mt);return wt<<12|ft},vt.getPatternPosition=function(wt){return dt[wt-1]},vt.getMaskFunction=function(wt){switch(wt){case 0:return function(ft,ht){return(ft+ht)%2==0};case 1:return function(ft,ht){return ft%2==0};case 2:return function(ft,ht){return ht%3==0};case 3:return function(ft,ht){return(ft+ht)%3==0};case 4:return function(ft,ht){return(Math.floor(ft/2)+Math.floor(ht/3))%2==0};case 5:return function(ft,ht){return ft*ht%2+ft*ht%3==0};case 6:return function(ft,ht){return(ft*ht%2+ft*ht%3)%2==0};case 7:return function(ft,ht){return(ft*ht%3+(ft+ht)%2)%2==0};default:throw"bad maskPattern:"+wt}},vt.getErrorCorrectPolynomial=function(wt){for(var ft=Dt([1],0),ht=0;ht<wt;ht+=1)ft=ft.multiply(Dt([1,Pt.gexp(ht)],0));return ft},vt.getLengthInBits=function(wt,ft){if(1<=ft&&ft<10)switch(wt){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+wt}else if(ft<27)switch(wt){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+wt}else{if(!(ft<41))throw"type:"+ft;switch(wt){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+wt}}},vt.getLostPoint=function(wt){for(var ft=wt.getModuleCount(),ht=0,$t=0;$t<ft;$t+=1)for(var Tt=0;Tt<ft;Tt+=1){for(var At=0,kt=wt.isDark($t,Tt),Ct=-1;Ct<=1;Ct+=1)if(!($t+Ct<0||ft<=$t+Ct))for(var It=-1;It<=1;It+=1)Tt+It<0||ft<=Tt+It||Ct==0&&It==0||kt==wt.isDark($t+Ct,Tt+It)&&(At+=1);At>5&&(ht+=3+At-5)}for($t=0;$t<ft-1;$t+=1)for(Tt=0;Tt<ft-1;Tt+=1){var bt=0;wt.isDark($t,Tt)&&(bt+=1),wt.isDark($t+1,Tt)&&(bt+=1),wt.isDark($t,Tt+1)&&(bt+=1),wt.isDark($t+1,Tt+1)&&(bt+=1),bt!=0&&bt!=4||(ht+=3)}for($t=0;$t<ft;$t+=1)for(Tt=0;Tt<ft-6;Tt+=1)wt.isDark($t,Tt)&&!wt.isDark($t,Tt+1)&&wt.isDark($t,Tt+2)&&wt.isDark($t,Tt+3)&&wt.isDark($t,Tt+4)&&!wt.isDark($t,Tt+5)&&wt.isDark($t,Tt+6)&&(ht+=40);for(Tt=0;Tt<ft;Tt+=1)for($t=0;$t<ft-6;$t+=1)wt.isDark($t,Tt)&&!wt.isDark($t+1,Tt)&&wt.isDark($t+2,Tt)&&wt.isDark($t+3,Tt)&&wt.isDark($t+4,Tt)&&!wt.isDark($t+5,Tt)&&wt.isDark($t+6,Tt)&&(ht+=40);var Lt=0;for(Tt=0;Tt<ft;Tt+=1)for($t=0;$t<ft;$t+=1)wt.isDark($t,Tt)&&(Lt+=1);return ht+Math.abs(100*Lt/ft/ft-50)/5*10},vt),Pt=function(){for(var wt=new Array(256),ft=new Array(256),ht=0;ht<8;ht+=1)wt[ht]=1<<ht;for(ht=8;ht<256;ht+=1)wt[ht]=wt[ht-4]^wt[ht-5]^wt[ht-6]^wt[ht-8];for(ht=0;ht<255;ht+=1)ft[wt[ht]]=ht;return{glog:function($t){if($t<1)throw"glog("+$t+")";return ft[$t]},gexp:function($t){for(;$t<0;)$t+=255;for(;$t>=256;)$t-=255;return wt[$t]}}}();function Dt(wt,ft){if(wt.length===void 0)throw wt.length+"/"+ft;var ht=function(){for(var Tt=0;Tt<wt.length&&wt[Tt]==0;)Tt+=1;for(var At=new Array(wt.length-Tt+ft),kt=0;kt<wt.length-Tt;kt+=1)At[kt]=wt[kt+Tt];return At}(),$t={getAt:function(Tt){return ht[Tt]},getLength:function(){return ht.length},multiply:function(Tt){for(var At=new Array($t.getLength()+Tt.getLength()-1),kt=0;kt<$t.getLength();kt+=1)for(var Ct=0;Ct<Tt.getLength();Ct+=1)At[kt+Ct]^=Pt.gexp(Pt.glog($t.getAt(kt))+Pt.glog(Tt.getAt(Ct)));return Dt(At,0)},mod:function(Tt){if($t.getLength()-Tt.getLength()<0)return $t;for(var At=Pt.glog($t.getAt(0))-Pt.glog(Tt.getAt(0)),kt=new Array($t.getLength()),Ct=0;Ct<$t.getLength();Ct+=1)kt[Ct]=$t.getAt(Ct);for(Ct=0;Ct<Tt.getLength();Ct+=1)kt[Ct]^=Pt.gexp(Pt.glog(Tt.getAt(Ct))+At);return Dt(kt,0).mod(Tt)}};return $t}var Ft=function(){var wt=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],ft=function($t,Tt){var At={};return At.totalCount=$t,At.dataCount=Tt,At},ht={getRSBlocks:function($t,Tt){var At=function(Zt,Gt){switch(Gt){case Rt.L:return wt[4*(Zt-1)+0];case Rt.M:return wt[4*(Zt-1)+1];case Rt.Q:return wt[4*(Zt-1)+2];case Rt.H:return wt[4*(Zt-1)+3];default:return}}($t,Tt);if(At===void 0)throw"bad rs block @ typeNumber:"+$t+"/errorCorrectionLevel:"+Tt;for(var kt=At.length/3,Ct=[],It=0;It<kt;It+=1)for(var bt=At[3*It+0],Lt=At[3*It+1],sn=At[3*It+2],Ut=0;Ut<bt;Ut+=1)Ct.push(ft(Lt,sn));return Ct}};return ht}(),zt=function(){var wt=[],ft=0,ht={getBuffer:function(){return wt},getAt:function($t){var Tt=Math.floor($t/8);return(wt[Tt]>>>7-$t%8&1)==1},put:function($t,Tt){for(var At=0;At<Tt;At+=1)ht.putBit(($t>>>Tt-At-1&1)==1)},getLengthInBits:function(){return ft},putBit:function($t){var Tt=Math.floor(ft/8);wt.length<=Tt&&wt.push(0),$t&&(wt[Tt]|=128>>>ft%8),ft+=1}};return ht},Nt=function(wt){var ft=wt,ht={getMode:function(){return 1},getLength:function(At){return ft.length},write:function(At){for(var kt=ft,Ct=0;Ct+2<kt.length;)At.put($t(kt.substring(Ct,Ct+3)),10),Ct+=3;Ct<kt.length&&(kt.length-Ct==1?At.put($t(kt.substring(Ct,Ct+1)),4):kt.length-Ct==2&&At.put($t(kt.substring(Ct,Ct+2)),7))}},$t=function(At){for(var kt=0,Ct=0;Ct<At.length;Ct+=1)kt=10*kt+Tt(At.charAt(Ct));return kt},Tt=function(At){if("0"<=At&&At<="9")return At.charCodeAt(0)-48;throw"illegal char :"+At};return ht},Vt=function(wt){var ft=wt,ht={getMode:function(){return 2},getLength:function(Tt){return ft.length},write:function(Tt){for(var At=ft,kt=0;kt+1<At.length;)Tt.put(45*$t(At.charAt(kt))+$t(At.charAt(kt+1)),11),kt+=2;kt<At.length&&Tt.put($t(At.charAt(kt)),6)}},$t=function(Tt){if("0"<=Tt&&Tt<="9")return Tt.charCodeAt(0)-48;if("A"<=Tt&&Tt<="Z")return Tt.charCodeAt(0)-65+10;switch(Tt){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+Tt}};return ht},nn=function(wt){var ft=ut.stringToBytes(wt);return{getMode:function(){return 4},getLength:function(ht){return ft.length},write:function(ht){for(var $t=0;$t<ft.length;$t+=1)ht.put(ft[$t],8)}}},fn=function(wt){var ft=ut.stringToBytesFuncs.SJIS;if(!ft)throw"sjis not supported.";(function(Tt,At){var kt=ft("友");if(kt.length!=2||(kt[0]<<8|kt[1])!=38726)throw"sjis not supported."})();var ht=ft(wt),$t={getMode:function(){return 8},getLength:function(Tt){return~~(ht.length/2)},write:function(Tt){for(var At=ht,kt=0;kt+1<At.length;){var Ct=(255&At[kt])<<8|255&At[kt+1];if(33088<=Ct&&Ct<=40956)Ct-=33088;else{if(!(57408<=Ct&&Ct<=60351))throw"illegal char at "+(kt+1)+"/"+Ct;Ct-=49472}Ct=192*(Ct>>>8&255)+(255&Ct),Tt.put(Ct,13),kt+=2}if(kt<At.length)throw"illegal char at "+(kt+1)}};return $t},hn=function(){var wt=[],ft={writeByte:function(ht){wt.push(255&ht)},writeShort:function(ht){ft.writeByte(ht),ft.writeByte(ht>>>8)},writeBytes:function(ht,$t,Tt){$t=$t||0,Tt=Tt||ht.length;for(var At=0;At<Tt;At+=1)ft.writeByte(ht[At+$t])},writeString:function(ht){for(var $t=0;$t<ht.length;$t+=1)ft.writeByte(ht.charCodeAt($t))},toByteArray:function(){return wt},toString:function(){var ht="";ht+="[";for(var $t=0;$t<wt.length;$t+=1)$t>0&&(ht+=","),ht+=wt[$t];return ht+"]"}};return ft},Qt=function(wt){var ft=wt,ht=0,$t=0,Tt=0,At={read:function(){for(;Tt<8;){if(ht>=ft.length){if(Tt==0)return-1;throw"unexpected end of file./"+Tt}var Ct=ft.charAt(ht);if(ht+=1,Ct=="=")return Tt=0,-1;Ct.match(/^\s$/)||($t=$t<<6|kt(Ct.charCodeAt(0)),Tt+=6)}var It=$t>>>Tt-8&255;return Tt-=8,It}},kt=function(Ct){if(65<=Ct&&Ct<=90)return Ct-65;if(97<=Ct&&Ct<=122)return Ct-97+26;if(48<=Ct&&Ct<=57)return Ct-48+52;if(Ct==43)return 62;if(Ct==47)return 63;throw"c:"+Ct};return At},Mt=function(wt,ft,ht){for(var $t=function(Lt,sn){var Ut=Lt,Zt=sn,Gt=new Array(Lt*sn),Yt={setPixel:function(Ht,Ot,Kt){Gt[Ot*Ut+Ht]=Kt},write:function(Ht){Ht.writeString("GIF87a"),Ht.writeShort(Ut),Ht.writeShort(Zt),Ht.writeByte(128),Ht.writeByte(0),Ht.writeByte(0),Ht.writeByte(0),Ht.writeByte(0),Ht.writeByte(0),Ht.writeByte(255),Ht.writeByte(255),Ht.writeByte(255),Ht.writeString(","),Ht.writeShort(0),Ht.writeShort(0),Ht.writeShort(Ut),Ht.writeShort(Zt),Ht.writeByte(0);var Ot=cn(2);Ht.writeByte(2);for(var Kt=0;Ot.length-Kt>255;)Ht.writeByte(255),Ht.writeBytes(Ot,Kt,255),Kt+=255;Ht.writeByte(Ot.length-Kt),Ht.writeBytes(Ot,Kt,Ot.length-Kt),Ht.writeByte(0),Ht.writeString(";")}},cn=function(Ht){for(var Ot=1<<Ht,Kt=1+(1<<Ht),Xt=Ht+1,an=En(),_n=0;_n<Ot;_n+=1)an.add(String.fromCharCode(_n));an.add(String.fromCharCode(Ot)),an.add(String.fromCharCode(Kt));var yn,dn,$n,wn=hn(),Sn=(yn=wn,dn=0,$n=0,{write:function(zn,vn){if(zn>>>vn)throw"length over";for(;dn+vn>=8;)yn.writeByte(255&(zn<<dn|$n)),vn-=8-dn,zn>>>=8-dn,$n=0,dn=0;$n|=zn<<dn,dn+=vn},flush:function(){dn>0&&yn.writeByte($n)}});Sn.write(Ot,Xt);var qn=0,Qn=String.fromCharCode(Gt[qn]);for(qn+=1;qn<Gt.length;){var jn=String.fromCharCode(Gt[qn]);qn+=1,an.contains(Qn+jn)?Qn+=jn:(Sn.write(an.indexOf(Qn),Xt),an.size()<4095&&(an.size()==1<<Xt&&(Xt+=1),an.add(Qn+jn)),Qn=jn)}return Sn.write(an.indexOf(Qn),Xt),Sn.write(Kt,Xt),Sn.flush(),wn.toByteArray()},En=function(){var Ht={},Ot=0,Kt={add:function(Xt){if(Kt.contains(Xt))throw"dup key:"+Xt;Ht[Xt]=Ot,Ot+=1},size:function(){return Ot},indexOf:function(Xt){return Ht[Xt]},contains:function(Xt){return Ht[Xt]!==void 0}};return Kt};return Yt}(wt,ft),Tt=0;Tt<ft;Tt+=1)for(var At=0;At<wt;At+=1)$t.setPixel(At,Tt,ht(At,Tt));var kt=hn();$t.write(kt);for(var Ct=function(){var Lt=0,sn=0,Ut=0,Zt="",Gt={},Yt=function(En){Zt+=String.fromCharCode(cn(63&En))},cn=function(En){if(!(En<0)){if(En<26)return 65+En;if(En<52)return En-26+97;if(En<62)return En-52+48;if(En==62)return 43;if(En==63)return 47}throw"n:"+En};return Gt.writeByte=function(En){for(Lt=Lt<<8|255&En,sn+=8,Ut+=1;sn>=6;)Yt(Lt>>>sn-6),sn-=6},Gt.flush=function(){if(sn>0&&(Yt(Lt<<6-sn),Lt=0,sn=0),Ut%3!=0)for(var En=3-Ut%3,Ht=0;Ht<En;Ht+=1)Zt+="="},Gt.toString=function(){return Zt},Gt}(),It=kt.toByteArray(),bt=0;bt<It.length;bt+=1)Ct.writeByte(It[bt]);return Ct.flush(),"data:image/gif;base64,"+Ct};return ut}();ct.stringToBytesFuncs["UTF-8"]=function(ut){return function(dt){for(var pt=[],mt=0;mt<dt.length;mt++){var vt=dt.charCodeAt(mt);vt<128?pt.push(vt):vt<2048?pt.push(192|vt>>6,128|63&vt):vt<55296||vt>=57344?pt.push(224|vt>>12,128|vt>>6&63,128|63&vt):(mt++,vt=65536+((1023&vt)<<10|1023&dt.charCodeAt(mt)),pt.push(240|vt>>18,128|vt>>12&63,128|vt>>6&63,128|63&vt))}return pt}(ut)},(ot=typeof(it=function(){return ct})=="function"?it.apply(rt,[]):it)===void 0||(nt.exports=ot)},676:(nt,rt,it)=>{it.d(rt,{default:()=>En});const ot="Numeric",ct="Alphanumeric",ut="Byte";var dt=function(){return dt=Object.assign||function(Ht){for(var Ot,Kt=1,Xt=arguments.length;Kt<Xt;Kt++)for(var an in Ot=arguments[Kt])Object.prototype.hasOwnProperty.call(Ot,an)&&(Ht[an]=Ot[an]);return Ht},dt.apply(this,arguments)},pt=function(){for(var Ht=0,Ot=0,Kt=arguments.length;Ot<Kt;Ot++)Ht+=arguments[Ot].length;var Xt=Array(Ht),an=0;for(Ot=0;Ot<Kt;Ot++)for(var _n=arguments[Ot],yn=0,dn=_n.length;yn<dn;yn++,an++)Xt[an]=_n[yn];return Xt},mt=function(Ht){return!!Ht&&typeof Ht=="object"&&!Array.isArray(Ht)};function vt(Ht){for(var Ot=[],Kt=1;Kt<arguments.length;Kt++)Ot[Kt-1]=arguments[Kt];if(!Ot.length)return Ht;var Xt=Ot.shift();return Xt!==void 0&&mt(Ht)&&mt(Xt)?(Ht=dt({},Ht),Object.keys(Xt).forEach(function(an){var _n=Ht[an],yn=Xt[an];Array.isArray(_n)&&Array.isArray(yn)?Ht[an]=yn:mt(_n)&&mt(yn)?Ht[an]=vt(Object.assign({},_n),yn):Ht[an]=yn}),vt.apply(void 0,pt([Ht],Ot))):Ht}function Et(Ht,Ot){var Kt=document.createElement("a");Kt.download=Ot,Kt.href=Ht,document.body.appendChild(Kt),Kt.click(),document.body.removeChild(Kt)}var Rt=function(Ht,Ot,Kt,Xt){return new(Kt||(Kt=Promise))(function(an,_n){function yn(wn){try{$n(Xt.next(wn))}catch(Sn){_n(Sn)}}function dn(wn){try{$n(Xt.throw(wn))}catch(Sn){_n(Sn)}}function $n(wn){var Sn;wn.done?an(wn.value):(Sn=wn.value,Sn instanceof Kt?Sn:new Kt(function(qn){qn(Sn)})).then(yn,dn)}$n((Xt=Xt.apply(Ht,[])).next())})},xt=function(Ht,Ot){var Kt,Xt,an,_n,yn={label:0,sent:function(){if(1&an[0])throw an[1];return an[1]},trys:[],ops:[]};return _n={next:dn(0),throw:dn(1),return:dn(2)},typeof Symbol=="function"&&(_n[Symbol.iterator]=function(){return this}),_n;function dn($n){return function(wn){return function(Sn){if(Kt)throw new TypeError("Generator is already executing.");for(;yn;)try{if(Kt=1,Xt&&(an=2&Sn[0]?Xt.return:Sn[0]?Xt.throw||((an=Xt.return)&&an.call(Xt),0):Xt.next)&&!(an=an.call(Xt,Sn[1])).done)return an;switch(Xt=0,an&&(Sn=[2&Sn[0],an.value]),Sn[0]){case 0:case 1:an=Sn;break;case 4:return yn.label++,{value:Sn[1],done:!1};case 5:yn.label++,Xt=Sn[1],Sn=[0];continue;case 7:Sn=yn.ops.pop(),yn.trys.pop();continue;default:if(!((an=(an=yn.trys).length>0&&an[an.length-1])||Sn[0]!==6&&Sn[0]!==2)){yn=0;continue}if(Sn[0]===3&&(!an||Sn[1]>an[0]&&Sn[1]<an[3])){yn.label=Sn[1];break}if(Sn[0]===6&&yn.label<an[1]){yn.label=an[1],an=Sn;break}if(an&&yn.label<an[2]){yn.label=an[2],yn.ops.push(Sn);break}an[2]&&yn.ops.pop(),yn.trys.pop();continue}Sn=Ot.call(Ht,yn)}catch(qn){Sn=[6,qn],Xt=0}finally{Kt=an=0}if(5&Sn[0])throw Sn[1];return{value:Sn[0]?Sn[1]:void 0,done:!0}}([$n,wn])}}};function Pt(Ht){return Rt(this,void 0,void 0,function(){return xt(this,function(Ot){return[2,new Promise(function(Kt){var Xt=new XMLHttpRequest;Xt.onload=function(){var an=new FileReader;an.onloadend=function(){Kt(an.result)},an.readAsDataURL(Xt.response)},Xt.open("GET",Ht),Xt.responseType="blob",Xt.send()})]})})}const Dt={L:.07,M:.15,Q:.25,H:.3};var Ft=function(){return Ft=Object.assign||function(Ht){for(var Ot,Kt=1,Xt=arguments.length;Kt<Xt;Kt++)for(var an in Ot=arguments[Kt])Object.prototype.hasOwnProperty.call(Ot,an)&&(Ht[an]=Ot[an]);return Ht},Ft.apply(this,arguments)},zt=function(){function Ht(Ot){var Kt=Ot.svg,Xt=Ot.type;this._svg=Kt,this._type=Xt}return Ht.prototype.draw=function(Ot,Kt,Xt,an){var _n;switch(this._type){case"dots":_n=this._drawDot;break;case"classy":_n=this._drawClassy;break;case"classy-rounded":_n=this._drawClassyRounded;break;case"rounded":_n=this._drawRounded;break;case"extra-rounded":_n=this._drawExtraRounded;break;default:_n=this._drawSquare}_n.call(this,{x:Ot,y:Kt,size:Xt,getNeighbor:an})},Ht.prototype._rotateFigure=function(Ot){var Kt,Xt=Ot.x,an=Ot.y,_n=Ot.size,yn=Ot.rotation,dn=yn===void 0?0:yn,$n=Xt+_n/2,wn=an+_n/2;(0,Ot.draw)(),(Kt=this._element)===null||Kt===void 0||Kt.setAttribute("transform","rotate("+180*dn/Math.PI+","+$n+","+wn+")")},Ht.prototype._basicDot=function(Ot){var Kt=this,Xt=Ot.size,an=Ot.x,_n=Ot.y;this._rotateFigure(Ft(Ft({},Ot),{draw:function(){Kt._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Kt._element.setAttribute("cx",String(an+Xt/2)),Kt._element.setAttribute("cy",String(_n+Xt/2)),Kt._element.setAttribute("r",String(Xt/2))}}))},Ht.prototype._basicSquare=function(Ot){var Kt=this,Xt=Ot.size,an=Ot.x,_n=Ot.y;this._rotateFigure(Ft(Ft({},Ot),{draw:function(){Kt._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Kt._element.setAttribute("x",String(an)),Kt._element.setAttribute("y",String(_n)),Kt._element.setAttribute("width",String(Xt)),Kt._element.setAttribute("height",String(Xt))}}))},Ht.prototype._basicSideRounded=function(Ot){var Kt=this,Xt=Ot.size,an=Ot.x,_n=Ot.y;this._rotateFigure(Ft(Ft({},Ot),{draw:function(){Kt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Kt._element.setAttribute("d","M "+an+" "+_n+"v "+Xt+"h "+Xt/2+"a "+Xt/2+" "+Xt/2+", 0, 0, 0, 0 "+-Xt)}}))},Ht.prototype._basicCornerRounded=function(Ot){var Kt=this,Xt=Ot.size,an=Ot.x,_n=Ot.y;this._rotateFigure(Ft(Ft({},Ot),{draw:function(){Kt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Kt._element.setAttribute("d","M "+an+" "+_n+"v "+Xt+"h "+Xt+"v "+-Xt/2+"a "+Xt/2+" "+Xt/2+", 0, 0, 0, "+-Xt/2+" "+-Xt/2)}}))},Ht.prototype._basicCornerExtraRounded=function(Ot){var Kt=this,Xt=Ot.size,an=Ot.x,_n=Ot.y;this._rotateFigure(Ft(Ft({},Ot),{draw:function(){Kt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Kt._element.setAttribute("d","M "+an+" "+_n+"v "+Xt+"h "+Xt+"a "+Xt+" "+Xt+", 0, 0, 0, "+-Xt+" "+-Xt)}}))},Ht.prototype._basicCornersRounded=function(Ot){var Kt=this,Xt=Ot.size,an=Ot.x,_n=Ot.y;this._rotateFigure(Ft(Ft({},Ot),{draw:function(){Kt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Kt._element.setAttribute("d","M "+an+" "+_n+"v "+Xt/2+"a "+Xt/2+" "+Xt/2+", 0, 0, 0, "+Xt/2+" "+Xt/2+"h "+Xt/2+"v "+-Xt/2+"a "+Xt/2+" "+Xt/2+", 0, 0, 0, "+-Xt/2+" "+-Xt/2)}}))},Ht.prototype._drawDot=function(Ot){var Kt=Ot.x,Xt=Ot.y,an=Ot.size;this._basicDot({x:Kt,y:Xt,size:an,rotation:0})},Ht.prototype._drawSquare=function(Ot){var Kt=Ot.x,Xt=Ot.y,an=Ot.size;this._basicSquare({x:Kt,y:Xt,size:an,rotation:0})},Ht.prototype._drawRounded=function(Ot){var Kt=Ot.x,Xt=Ot.y,an=Ot.size,_n=Ot.getNeighbor,yn=_n?+_n(-1,0):0,dn=_n?+_n(1,0):0,$n=_n?+_n(0,-1):0,wn=_n?+_n(0,1):0,Sn=yn+dn+$n+wn;if(Sn!==0)if(Sn>2||yn&&dn||$n&&wn)this._basicSquare({x:Kt,y:Xt,size:an,rotation:0});else{if(Sn===2){var qn=0;return yn&&$n?qn=Math.PI/2:$n&&dn?qn=Math.PI:dn&&wn&&(qn=-Math.PI/2),void this._basicCornerRounded({x:Kt,y:Xt,size:an,rotation:qn})}if(Sn===1)return qn=0,$n?qn=Math.PI/2:dn?qn=Math.PI:wn&&(qn=-Math.PI/2),void this._basicSideRounded({x:Kt,y:Xt,size:an,rotation:qn})}else this._basicDot({x:Kt,y:Xt,size:an,rotation:0})},Ht.prototype._drawExtraRounded=function(Ot){var Kt=Ot.x,Xt=Ot.y,an=Ot.size,_n=Ot.getNeighbor,yn=_n?+_n(-1,0):0,dn=_n?+_n(1,0):0,$n=_n?+_n(0,-1):0,wn=_n?+_n(0,1):0,Sn=yn+dn+$n+wn;if(Sn!==0)if(Sn>2||yn&&dn||$n&&wn)this._basicSquare({x:Kt,y:Xt,size:an,rotation:0});else{if(Sn===2){var qn=0;return yn&&$n?qn=Math.PI/2:$n&&dn?qn=Math.PI:dn&&wn&&(qn=-Math.PI/2),void this._basicCornerExtraRounded({x:Kt,y:Xt,size:an,rotation:qn})}if(Sn===1)return qn=0,$n?qn=Math.PI/2:dn?qn=Math.PI:wn&&(qn=-Math.PI/2),void this._basicSideRounded({x:Kt,y:Xt,size:an,rotation:qn})}else this._basicDot({x:Kt,y:Xt,size:an,rotation:0})},Ht.prototype._drawClassy=function(Ot){var Kt=Ot.x,Xt=Ot.y,an=Ot.size,_n=Ot.getNeighbor,yn=_n?+_n(-1,0):0,dn=_n?+_n(1,0):0,$n=_n?+_n(0,-1):0,wn=_n?+_n(0,1):0;yn+dn+$n+wn!==0?yn||$n?dn||wn?this._basicSquare({x:Kt,y:Xt,size:an,rotation:0}):this._basicCornerRounded({x:Kt,y:Xt,size:an,rotation:Math.PI/2}):this._basicCornerRounded({x:Kt,y:Xt,size:an,rotation:-Math.PI/2}):this._basicCornersRounded({x:Kt,y:Xt,size:an,rotation:Math.PI/2})},Ht.prototype._drawClassyRounded=function(Ot){var Kt=Ot.x,Xt=Ot.y,an=Ot.size,_n=Ot.getNeighbor,yn=_n?+_n(-1,0):0,dn=_n?+_n(1,0):0,$n=_n?+_n(0,-1):0,wn=_n?+_n(0,1):0;yn+dn+$n+wn!==0?yn||$n?dn||wn?this._basicSquare({x:Kt,y:Xt,size:an,rotation:0}):this._basicCornerExtraRounded({x:Kt,y:Xt,size:an,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:Kt,y:Xt,size:an,rotation:-Math.PI/2}):this._basicCornersRounded({x:Kt,y:Xt,size:an,rotation:Math.PI/2})},Ht}();const Nt=zt;var Vt=function(){return Vt=Object.assign||function(Ht){for(var Ot,Kt=1,Xt=arguments.length;Kt<Xt;Kt++)for(var an in Ot=arguments[Kt])Object.prototype.hasOwnProperty.call(Ot,an)&&(Ht[an]=Ot[an]);return Ht},Vt.apply(this,arguments)},nn=function(){function Ht(Ot){var Kt=Ot.svg,Xt=Ot.type;this._svg=Kt,this._type=Xt}return Ht.prototype.draw=function(Ot,Kt,Xt,an){var _n;switch(this._type){case"square":_n=this._drawSquare;break;case"extra-rounded":_n=this._drawExtraRounded;break;default:_n=this._drawDot}_n.call(this,{x:Ot,y:Kt,size:Xt,rotation:an})},Ht.prototype._rotateFigure=function(Ot){var Kt,Xt=Ot.x,an=Ot.y,_n=Ot.size,yn=Ot.rotation,dn=yn===void 0?0:yn,$n=Xt+_n/2,wn=an+_n/2;(0,Ot.draw)(),(Kt=this._element)===null||Kt===void 0||Kt.setAttribute("transform","rotate("+180*dn/Math.PI+","+$n+","+wn+")")},Ht.prototype._basicDot=function(Ot){var Kt=this,Xt=Ot.size,an=Ot.x,_n=Ot.y,yn=Xt/7;this._rotateFigure(Vt(Vt({},Ot),{draw:function(){Kt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Kt._element.setAttribute("clip-rule","evenodd"),Kt._element.setAttribute("d","M "+(an+Xt/2)+" "+_n+"a "+Xt/2+" "+Xt/2+" 0 1 0 0.1 0zm 0 "+yn+"a "+(Xt/2-yn)+" "+(Xt/2-yn)+" 0 1 1 -0.1 0Z")}}))},Ht.prototype._basicSquare=function(Ot){var Kt=this,Xt=Ot.size,an=Ot.x,_n=Ot.y,yn=Xt/7;this._rotateFigure(Vt(Vt({},Ot),{draw:function(){Kt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Kt._element.setAttribute("clip-rule","evenodd"),Kt._element.setAttribute("d","M "+an+" "+_n+"v "+Xt+"h "+Xt+"v "+-Xt+"zM "+(an+yn)+" "+(_n+yn)+"h "+(Xt-2*yn)+"v "+(Xt-2*yn)+"h "+(2*yn-Xt)+"z")}}))},Ht.prototype._basicExtraRounded=function(Ot){var Kt=this,Xt=Ot.size,an=Ot.x,_n=Ot.y,yn=Xt/7;this._rotateFigure(Vt(Vt({},Ot),{draw:function(){Kt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Kt._element.setAttribute("clip-rule","evenodd"),Kt._element.setAttribute("d","M "+an+" "+(_n+2.5*yn)+"v "+2*yn+"a "+2.5*yn+" "+2.5*yn+", 0, 0, 0, "+2.5*yn+" "+2.5*yn+"h "+2*yn+"a "+2.5*yn+" "+2.5*yn+", 0, 0, 0, "+2.5*yn+" "+2.5*-yn+"v "+-2*yn+"a "+2.5*yn+" "+2.5*yn+", 0, 0, 0, "+2.5*-yn+" "+2.5*-yn+"h "+-2*yn+"a "+2.5*yn+" "+2.5*yn+", 0, 0, 0, "+2.5*-yn+" "+2.5*yn+"M "+(an+2.5*yn)+" "+(_n+yn)+"h "+2*yn+"a "+1.5*yn+" "+1.5*yn+", 0, 0, 1, "+1.5*yn+" "+1.5*yn+"v "+2*yn+"a "+1.5*yn+" "+1.5*yn+", 0, 0, 1, "+1.5*-yn+" "+1.5*yn+"h "+-2*yn+"a "+1.5*yn+" "+1.5*yn+", 0, 0, 1, "+1.5*-yn+" "+1.5*-yn+"v "+-2*yn+"a "+1.5*yn+" "+1.5*yn+", 0, 0, 1, "+1.5*yn+" "+1.5*-yn)}}))},Ht.prototype._drawDot=function(Ot){var Kt=Ot.x,Xt=Ot.y,an=Ot.size,_n=Ot.rotation;this._basicDot({x:Kt,y:Xt,size:an,rotation:_n})},Ht.prototype._drawSquare=function(Ot){var Kt=Ot.x,Xt=Ot.y,an=Ot.size,_n=Ot.rotation;this._basicSquare({x:Kt,y:Xt,size:an,rotation:_n})},Ht.prototype._drawExtraRounded=function(Ot){var Kt=Ot.x,Xt=Ot.y,an=Ot.size,_n=Ot.rotation;this._basicExtraRounded({x:Kt,y:Xt,size:an,rotation:_n})},Ht}();const fn=nn;var hn=function(){return hn=Object.assign||function(Ht){for(var Ot,Kt=1,Xt=arguments.length;Kt<Xt;Kt++)for(var an in Ot=arguments[Kt])Object.prototype.hasOwnProperty.call(Ot,an)&&(Ht[an]=Ot[an]);return Ht},hn.apply(this,arguments)},Qt=function(){function Ht(Ot){var Kt=Ot.svg,Xt=Ot.type;this._svg=Kt,this._type=Xt}return Ht.prototype.draw=function(Ot,Kt,Xt,an){(this._type==="square"?this._drawSquare:this._drawDot).call(this,{x:Ot,y:Kt,size:Xt,rotation:an})},Ht.prototype._rotateFigure=function(Ot){var Kt,Xt=Ot.x,an=Ot.y,_n=Ot.size,yn=Ot.rotation,dn=yn===void 0?0:yn,$n=Xt+_n/2,wn=an+_n/2;(0,Ot.draw)(),(Kt=this._element)===null||Kt===void 0||Kt.setAttribute("transform","rotate("+180*dn/Math.PI+","+$n+","+wn+")")},Ht.prototype._basicDot=function(Ot){var Kt=this,Xt=Ot.size,an=Ot.x,_n=Ot.y;this._rotateFigure(hn(hn({},Ot),{draw:function(){Kt._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Kt._element.setAttribute("cx",String(an+Xt/2)),Kt._element.setAttribute("cy",String(_n+Xt/2)),Kt._element.setAttribute("r",String(Xt/2))}}))},Ht.prototype._basicSquare=function(Ot){var Kt=this,Xt=Ot.size,an=Ot.x,_n=Ot.y;this._rotateFigure(hn(hn({},Ot),{draw:function(){Kt._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Kt._element.setAttribute("x",String(an)),Kt._element.setAttribute("y",String(_n)),Kt._element.setAttribute("width",String(Xt)),Kt._element.setAttribute("height",String(Xt))}}))},Ht.prototype._drawDot=function(Ot){var Kt=Ot.x,Xt=Ot.y,an=Ot.size,_n=Ot.rotation;this._basicDot({x:Kt,y:Xt,size:an,rotation:_n})},Ht.prototype._drawSquare=function(Ot){var Kt=Ot.x,Xt=Ot.y,an=Ot.size,_n=Ot.rotation;this._basicSquare({x:Kt,y:Xt,size:an,rotation:_n})},Ht}();const Mt=Qt,wt="circle";var ft=function(Ht,Ot,Kt,Xt){return new(Kt||(Kt=Promise))(function(an,_n){function yn(wn){try{$n(Xt.next(wn))}catch(Sn){_n(Sn)}}function dn(wn){try{$n(Xt.throw(wn))}catch(Sn){_n(Sn)}}function $n(wn){var Sn;wn.done?an(wn.value):(Sn=wn.value,Sn instanceof Kt?Sn:new Kt(function(qn){qn(Sn)})).then(yn,dn)}$n((Xt=Xt.apply(Ht,[])).next())})},ht=function(Ht,Ot){var Kt,Xt,an,_n,yn={label:0,sent:function(){if(1&an[0])throw an[1];return an[1]},trys:[],ops:[]};return _n={next:dn(0),throw:dn(1),return:dn(2)},typeof Symbol=="function"&&(_n[Symbol.iterator]=function(){return this}),_n;function dn($n){return function(wn){return function(Sn){if(Kt)throw new TypeError("Generator is already executing.");for(;yn;)try{if(Kt=1,Xt&&(an=2&Sn[0]?Xt.return:Sn[0]?Xt.throw||((an=Xt.return)&&an.call(Xt),0):Xt.next)&&!(an=an.call(Xt,Sn[1])).done)return an;switch(Xt=0,an&&(Sn=[2&Sn[0],an.value]),Sn[0]){case 0:case 1:an=Sn;break;case 4:return yn.label++,{value:Sn[1],done:!1};case 5:yn.label++,Xt=Sn[1],Sn=[0];continue;case 7:Sn=yn.ops.pop(),yn.trys.pop();continue;default:if(!((an=(an=yn.trys).length>0&&an[an.length-1])||Sn[0]!==6&&Sn[0]!==2)){yn=0;continue}if(Sn[0]===3&&(!an||Sn[1]>an[0]&&Sn[1]<an[3])){yn.label=Sn[1];break}if(Sn[0]===6&&yn.label<an[1]){yn.label=an[1],an=Sn;break}if(an&&yn.label<an[2]){yn.label=an[2],yn.ops.push(Sn);break}an[2]&&yn.ops.pop(),yn.trys.pop();continue}Sn=Ot.call(Ht,yn)}catch(qn){Sn=[6,qn],Xt=0}finally{Kt=an=0}if(5&Sn[0])throw Sn[1];return{value:Sn[0]?Sn[1]:void 0,done:!0}}([$n,wn])}}},$t=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],Tt=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const At=function(){function Ht(Ot){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(Ot.width)),this._element.setAttribute("height",String(Ot.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._instanceId=Ht.instanceCount++,this._options=Ot}return Object.defineProperty(Ht.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),Ht.prototype.getElement=function(){return this._element},Ht.prototype.drawQR=function(Ot){return ft(this,void 0,void 0,function(){var Kt,Xt,an,_n,yn,dn,$n,wn,Sn,qn,Qn=this;return ht(this,function(jn){switch(jn.label){case 0:return Kt=Ot.getModuleCount(),Xt=Math.min(this._options.width,this._options.height)-2*this._options.margin,an=this._options.shape===wt?Xt/Math.sqrt(2):Xt,_n=an/Kt,yn={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=Ot,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(jn.sent(),!this._image)return[2];dn=this._options,$n=dn.imageOptions,wn=dn.qrOptions,Sn=$n.imageSize*Dt[wn.errorCorrectionLevel],qn=Math.floor(Sn*Kt*Kt),yn=function(zn){var vn=zn.originalHeight,Rn=zn.originalWidth,Fn=zn.maxHiddenDots,Dn=zn.maxHiddenAxisDots,ln=zn.dotSize,Jt={x:0,y:0},Wt={x:0,y:0};if(vn<=0||Rn<=0||Fn<=0||ln<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var mn=vn/Rn;return Jt.x=Math.floor(Math.sqrt(Fn/mn)),Jt.x<=0&&(Jt.x=1),Dn&&Dn<Jt.x&&(Jt.x=Dn),Jt.x%2==0&&Jt.x--,Wt.x=Jt.x*ln,Jt.y=1+2*Math.ceil((Jt.x*mn-1)/2),Wt.y=Math.round(Wt.x*mn),(Jt.y*Jt.x>Fn||Dn&&Dn<Jt.y)&&(Dn&&Dn<Jt.y?(Jt.y=Dn,Jt.y%2==0&&Jt.x--):Jt.y-=2,Wt.y=Jt.y*ln,Jt.x=1+2*Math.ceil((Jt.y/mn-1)/2),Wt.x=Math.round(Wt.y/mn)),{height:Wt.y,width:Wt.x,hideYDots:Jt.y,hideXDots:Jt.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:qn,maxHiddenAxisDots:Kt-14,dotSize:_n}),jn.label=2;case 2:return this.drawBackground(),this.drawDots(function(zn,vn){var Rn,Fn,Dn,ln,Jt,Wt;return!(Qn._options.imageOptions.hideBackgroundDots&&zn>=(Kt-yn.hideXDots)/2&&zn<(Kt+yn.hideXDots)/2&&vn>=(Kt-yn.hideYDots)/2&&vn<(Kt+yn.hideYDots)/2||!((Rn=$t[zn])===null||Rn===void 0)&&Rn[vn]||!((Fn=$t[zn-Kt+7])===null||Fn===void 0)&&Fn[vn]||!((Dn=$t[zn])===null||Dn===void 0)&&Dn[vn-Kt+7]||!((ln=Tt[zn])===null||ln===void 0)&&ln[vn]||!((Jt=Tt[zn-Kt+7])===null||Jt===void 0)&&Jt[vn]||!((Wt=Tt[zn])===null||Wt===void 0)&&Wt[vn-Kt+7])}),this.drawCorners(),this._options.image?[4,this.drawImage({width:yn.width,height:yn.height,count:Kt,dotSize:_n})]:[3,4];case 3:jn.sent(),jn.label=4;case 4:return[2]}})})},Ht.prototype.drawBackground=function(){var Ot,Kt,Xt,an=this._element,_n=this._options;if(an){var yn=(Ot=_n.backgroundOptions)===null||Ot===void 0?void 0:Ot.gradient,dn=(Kt=_n.backgroundOptions)===null||Kt===void 0?void 0:Kt.color;if((yn||dn)&&this._createColor({options:yn,color:dn,additionalRotation:0,x:0,y:0,height:_n.height,width:_n.width,name:"background-color"}),(Xt=_n.backgroundOptions)===null||Xt===void 0?void 0:Xt.round){var $n=Math.min(_n.width,_n.height),wn=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),wn.setAttribute("x",String((_n.width-$n)/2)),wn.setAttribute("y",String((_n.height-$n)/2)),wn.setAttribute("width",String($n)),wn.setAttribute("height",String($n)),wn.setAttribute("rx",String($n/2*_n.backgroundOptions.round)),this._backgroundClipPath.appendChild(wn)}}},Ht.prototype.drawDots=function(Ot){var Kt,Xt,an=this;if(!this._qr)throw"QR code is not defined";var _n=this._options,yn=this._qr.getModuleCount();if(yn>_n.width||yn>_n.height)throw"The canvas is too small.";var dn=Math.min(_n.width,_n.height)-2*_n.margin,$n=(_n.shape===wt?dn/Math.sqrt(2):dn)/yn,wn=(_n.width-yn*$n)/2,Sn=(_n.height-yn*$n)/2,qn=new Nt({svg:this._element,type:_n.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color-"+this._instanceId),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(Kt=_n.dotsOptions)===null||Kt===void 0?void 0:Kt.gradient,color:_n.dotsOptions.color,additionalRotation:0,x:0,y:0,height:_n.height,width:_n.width,name:"dot-color-"+this._instanceId});for(var Qn=function(Cn){for(var On=function(Nn){return Ot&&!Ot(Cn,Nn)?"continue":!((Xt=jn._qr)===null||Xt===void 0)&&Xt.isDark(Cn,Nn)?(qn.draw(wn+Cn*$n,Sn+Nn*$n,$n,function(Un,ar){return!(Cn+Un<0||Nn+ar<0||Cn+Un>=yn||Nn+ar>=yn)&&!(Ot&&!Ot(Cn+Un,Nn+ar))&&!!an._qr&&an._qr.isDark(Cn+Un,Nn+ar)}),void(qn._element&&jn._dotsClipPath&&jn._dotsClipPath.appendChild(qn._element))):"continue"},Vn=0;Vn<yn;Vn++)On(Vn)},jn=this,zn=0;zn<yn;zn++)Qn(zn);if(_n.shape===wt){var vn=Math.floor((dn/$n-yn)/2),Rn=yn+2*vn,Fn=wn-vn*$n,Dn=Sn-vn*$n,ln=[],Jt=Math.floor(Rn/2);for(zn=0;zn<Rn;zn++){ln[zn]=[];for(var Wt=0;Wt<Rn;Wt++)zn>=vn-1&&zn<=Rn-vn&&Wt>=vn-1&&Wt<=Rn-vn||Math.sqrt((zn-Jt)*(zn-Jt)+(Wt-Jt)*(Wt-Jt))>Jt?ln[zn][Wt]=0:ln[zn][Wt]=this._qr.isDark(Wt-2*vn<0?Wt:Wt>=yn?Wt-2*vn:Wt-vn,zn-2*vn<0?zn:zn>=yn?zn-2*vn:zn-vn)?1:0}var mn=function(Cn){for(var On=function(Nn){if(!ln[Cn][Nn])return"continue";qn.draw(Fn+Cn*$n,Dn+Nn*$n,$n,function(Un,ar){var er;return!!(!((er=ln[Cn+Un])===null||er===void 0)&&er[Nn+ar])}),qn._element&&In._dotsClipPath&&In._dotsClipPath.appendChild(qn._element)},Vn=0;Vn<Rn;Vn++)On(Vn)},In=this;for(zn=0;zn<Rn;zn++)mn(zn)}},Ht.prototype.drawCorners=function(){var Ot=this;if(!this._qr)throw"QR code is not defined";var Kt=this._element,Xt=this._options;if(!Kt)throw"Element code is not defined";var an=this._qr.getModuleCount(),_n=Math.min(Xt.width,Xt.height)-2*Xt.margin,yn=(Xt.shape===wt?_n/Math.sqrt(2):_n)/an,dn=7*yn,$n=3*yn,wn=(Xt.width-an*yn)/2,Sn=(Xt.height-an*yn)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(qn){var Qn,jn,zn,vn,Rn,Fn,Dn,ln,Jt,Wt,mn,In,Cn=qn[0],On=qn[1],Vn=qn[2],Nn=wn+Cn*yn*(an-7),Un=Sn+On*yn*(an-7),ar=Ot._dotsClipPath,er=Ot._dotsClipPath;if((!((Qn=Xt.cornersSquareOptions)===null||Qn===void 0)&&Qn.gradient||!((jn=Xt.cornersSquareOptions)===null||jn===void 0)&&jn.color)&&((ar=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Cn+"-"+On),Ot._defs.appendChild(ar),Ot._cornersSquareClipPath=Ot._cornersDotClipPath=er=ar,Ot._createColor({options:(zn=Xt.cornersSquareOptions)===null||zn===void 0?void 0:zn.gradient,color:(vn=Xt.cornersSquareOptions)===null||vn===void 0?void 0:vn.color,additionalRotation:Vn,x:Nn,y:Un,height:dn,width:dn,name:"corners-square-color-"+Cn+"-"+On})),(Rn=Xt.cornersSquareOptions)===null||Rn===void 0?void 0:Rn.type){var or=new fn({svg:Ot._element,type:Xt.cornersSquareOptions.type});or.draw(Nn,Un,dn,Vn),or._element&&ar&&ar.appendChild(or._element)}else for(var Dr=new Nt({svg:Ot._element,type:Xt.dotsOptions.type}),_r=function(yr){for(var Hr=function(cr){if(!(!((Fn=$t[yr])===null||Fn===void 0)&&Fn[cr]))return"continue";Dr.draw(Nn+yr*yn,Un+cr*yn,yn,function(Pn,qt){var rn;return!!(!((rn=$t[yr+Pn])===null||rn===void 0)&&rn[cr+qt])}),Dr._element&&ar&&ar.appendChild(Dr._element)},br=0;br<$t[yr].length;br++)Hr(br)},ur=0;ur<$t.length;ur++)_r(ur);if((!((Dn=Xt.cornersDotOptions)===null||Dn===void 0)&&Dn.gradient||!((ln=Xt.cornersDotOptions)===null||ln===void 0)&&ln.color)&&((er=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Cn+"-"+On),Ot._defs.appendChild(er),Ot._cornersDotClipPath=er,Ot._createColor({options:(Jt=Xt.cornersDotOptions)===null||Jt===void 0?void 0:Jt.gradient,color:(Wt=Xt.cornersDotOptions)===null||Wt===void 0?void 0:Wt.color,additionalRotation:Vn,x:Nn+2*yn,y:Un+2*yn,height:$n,width:$n,name:"corners-dot-color-"+Cn+"-"+On})),(mn=Xt.cornersDotOptions)===null||mn===void 0?void 0:mn.type){var Fr=new Mt({svg:Ot._element,type:Xt.cornersDotOptions.type});Fr.draw(Nn+2*yn,Un+2*yn,$n,Vn),Fr._element&&er&&er.appendChild(Fr._element)}else{Dr=new Nt({svg:Ot._element,type:Xt.dotsOptions.type});var xr=function(yr){for(var Hr=function(cr){if(!(!((In=Tt[yr])===null||In===void 0)&&In[cr]))return"continue";Dr.draw(Nn+yr*yn,Un+cr*yn,yn,function(Pn,qt){var rn;return!!(!((rn=Tt[yr+Pn])===null||rn===void 0)&&rn[cr+qt])}),Dr._element&&er&&er.appendChild(Dr._element)},br=0;br<Tt[yr].length;br++)Hr(br)};for(ur=0;ur<Tt.length;ur++)xr(ur)}})},Ht.prototype.loadImage=function(){var Ot=this;return new Promise(function(Kt,Xt){var an=Ot._options,_n=new Image;if(!an.image)return Xt("Image is not defined");typeof an.imageOptions.crossOrigin=="string"&&(_n.crossOrigin=an.imageOptions.crossOrigin),Ot._image=_n,_n.onload=function(){Kt()},_n.src=an.image})},Ht.prototype.drawImage=function(Ot){var Kt=Ot.width,Xt=Ot.height,an=Ot.count,_n=Ot.dotSize;return ft(this,void 0,void 0,function(){var yn,dn,$n,wn,Sn,qn,Qn,jn,zn;return ht(this,function(vn){switch(vn.label){case 0:return yn=this._options,dn=(yn.width-an*_n)/2,$n=(yn.height-an*_n)/2,wn=dn+yn.imageOptions.margin+(an*_n-Kt)/2,Sn=$n+yn.imageOptions.margin+(an*_n-Xt)/2,qn=Kt-2*yn.imageOptions.margin,Qn=Xt-2*yn.imageOptions.margin,(jn=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(wn)),jn.setAttribute("y",String(Sn)),jn.setAttribute("width",qn+"px"),jn.setAttribute("height",Qn+"px"),[4,Pt(yn.image||"")];case 1:return zn=vn.sent(),jn.setAttribute("href",zn||""),this._element.appendChild(jn),[2]}})})},Ht.prototype._createColor=function(Ot){var Kt=Ot.options,Xt=Ot.color,an=Ot.additionalRotation,_n=Ot.x,yn=Ot.y,dn=Ot.height,$n=Ot.width,wn=Ot.name,Sn=$n>dn?$n:dn,qn=document.createElementNS("http://www.w3.org/2000/svg","rect");if(qn.setAttribute("x",String(_n)),qn.setAttribute("y",String(yn)),qn.setAttribute("height",String(dn)),qn.setAttribute("width",String($n)),qn.setAttribute("clip-path","url('#clip-path-"+wn+"')"),Kt){var Qn;if(Kt.type==="radial")(Qn=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",wn),Qn.setAttribute("gradientUnits","userSpaceOnUse"),Qn.setAttribute("fx",String(_n+$n/2)),Qn.setAttribute("fy",String(yn+dn/2)),Qn.setAttribute("cx",String(_n+$n/2)),Qn.setAttribute("cy",String(yn+dn/2)),Qn.setAttribute("r",String(Sn/2));else{var jn=((Kt.rotation||0)+an)%(2*Math.PI),zn=(jn+2*Math.PI)%(2*Math.PI),vn=_n+$n/2,Rn=yn+dn/2,Fn=_n+$n/2,Dn=yn+dn/2;zn>=0&&zn<=.25*Math.PI||zn>1.75*Math.PI&&zn<=2*Math.PI?(vn-=$n/2,Rn-=dn/2*Math.tan(jn),Fn+=$n/2,Dn+=dn/2*Math.tan(jn)):zn>.25*Math.PI&&zn<=.75*Math.PI?(Rn-=dn/2,vn-=$n/2/Math.tan(jn),Dn+=dn/2,Fn+=$n/2/Math.tan(jn)):zn>.75*Math.PI&&zn<=1.25*Math.PI?(vn+=$n/2,Rn+=dn/2*Math.tan(jn),Fn-=$n/2,Dn-=dn/2*Math.tan(jn)):zn>1.25*Math.PI&&zn<=1.75*Math.PI&&(Rn+=dn/2,vn+=$n/2/Math.tan(jn),Dn-=dn/2,Fn-=$n/2/Math.tan(jn)),(Qn=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",wn),Qn.setAttribute("gradientUnits","userSpaceOnUse"),Qn.setAttribute("x1",String(Math.round(vn))),Qn.setAttribute("y1",String(Math.round(Rn))),Qn.setAttribute("x2",String(Math.round(Fn))),Qn.setAttribute("y2",String(Math.round(Dn)))}Kt.colorStops.forEach(function(ln){var Jt=ln.offset,Wt=ln.color,mn=document.createElementNS("http://www.w3.org/2000/svg","stop");mn.setAttribute("offset",100*Jt+"%"),mn.setAttribute("stop-color",Wt),Qn.appendChild(mn)}),qn.setAttribute("fill","url('#"+wn+"')"),this._defs.appendChild(Qn)}else Xt&&qn.setAttribute("fill",Xt);this._element.appendChild(qn)},Ht.instanceCount=0,Ht}(),kt="canvas";for(var Ct={},It=0;It<=40;It++)Ct[It]=It;const bt={type:kt,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:Ct[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var Lt=function(){return Lt=Object.assign||function(Ht){for(var Ot,Kt=1,Xt=arguments.length;Kt<Xt;Kt++)for(var an in Ot=arguments[Kt])Object.prototype.hasOwnProperty.call(Ot,an)&&(Ht[an]=Ot[an]);return Ht},Lt.apply(this,arguments)};function sn(Ht){var Ot=Lt({},Ht);if(!Ot.colorStops||!Ot.colorStops.length)throw"Field 'colorStops' is required in gradient";return Ot.rotation?Ot.rotation=Number(Ot.rotation):Ot.rotation=0,Ot.colorStops=Ot.colorStops.map(function(Kt){return Lt(Lt({},Kt),{offset:Number(Kt.offset)})}),Ot}function Ut(Ht){var Ot=Lt({},Ht);return Ot.width=Number(Ot.width),Ot.height=Number(Ot.height),Ot.margin=Number(Ot.margin),Ot.imageOptions=Lt(Lt({},Ot.imageOptions),{hideBackgroundDots:!!Ot.imageOptions.hideBackgroundDots,imageSize:Number(Ot.imageOptions.imageSize),margin:Number(Ot.imageOptions.margin)}),Ot.margin>Math.min(Ot.width,Ot.height)&&(Ot.margin=Math.min(Ot.width,Ot.height)),Ot.dotsOptions=Lt({},Ot.dotsOptions),Ot.dotsOptions.gradient&&(Ot.dotsOptions.gradient=sn(Ot.dotsOptions.gradient)),Ot.cornersSquareOptions&&(Ot.cornersSquareOptions=Lt({},Ot.cornersSquareOptions),Ot.cornersSquareOptions.gradient&&(Ot.cornersSquareOptions.gradient=sn(Ot.cornersSquareOptions.gradient))),Ot.cornersDotOptions&&(Ot.cornersDotOptions=Lt({},Ot.cornersDotOptions),Ot.cornersDotOptions.gradient&&(Ot.cornersDotOptions.gradient=sn(Ot.cornersDotOptions.gradient))),Ot.backgroundOptions&&(Ot.backgroundOptions=Lt({},Ot.backgroundOptions),Ot.backgroundOptions.gradient&&(Ot.backgroundOptions.gradient=sn(Ot.backgroundOptions.gradient))),Ot}var Zt=it(192),Gt=it.n(Zt),Yt=function(Ht,Ot,Kt,Xt){return new(Kt||(Kt=Promise))(function(an,_n){function yn(wn){try{$n(Xt.next(wn))}catch(Sn){_n(Sn)}}function dn(wn){try{$n(Xt.throw(wn))}catch(Sn){_n(Sn)}}function $n(wn){var Sn;wn.done?an(wn.value):(Sn=wn.value,Sn instanceof Kt?Sn:new Kt(function(qn){qn(Sn)})).then(yn,dn)}$n((Xt=Xt.apply(Ht,[])).next())})},cn=function(Ht,Ot){var Kt,Xt,an,_n,yn={label:0,sent:function(){if(1&an[0])throw an[1];return an[1]},trys:[],ops:[]};return _n={next:dn(0),throw:dn(1),return:dn(2)},typeof Symbol=="function"&&(_n[Symbol.iterator]=function(){return this}),_n;function dn($n){return function(wn){return function(Sn){if(Kt)throw new TypeError("Generator is already executing.");for(;yn;)try{if(Kt=1,Xt&&(an=2&Sn[0]?Xt.return:Sn[0]?Xt.throw||((an=Xt.return)&&an.call(Xt),0):Xt.next)&&!(an=an.call(Xt,Sn[1])).done)return an;switch(Xt=0,an&&(Sn=[2&Sn[0],an.value]),Sn[0]){case 0:case 1:an=Sn;break;case 4:return yn.label++,{value:Sn[1],done:!1};case 5:yn.label++,Xt=Sn[1],Sn=[0];continue;case 7:Sn=yn.ops.pop(),yn.trys.pop();continue;default:if(!((an=(an=yn.trys).length>0&&an[an.length-1])||Sn[0]!==6&&Sn[0]!==2)){yn=0;continue}if(Sn[0]===3&&(!an||Sn[1]>an[0]&&Sn[1]<an[3])){yn.label=Sn[1];break}if(Sn[0]===6&&yn.label<an[1]){yn.label=an[1],an=Sn;break}if(an&&yn.label<an[2]){yn.label=an[2],yn.ops.push(Sn);break}an[2]&&yn.ops.pop(),yn.trys.pop();continue}Sn=Ot.call(Ht,yn)}catch(qn){Sn=[6,qn],Xt=0}finally{Kt=an=0}if(5&Sn[0])throw Sn[1];return{value:Sn[0]?Sn[1]:void 0,done:!0}}([$n,wn])}}};const En=function(){function Ht(Ot){this._options=Ot?Ut(vt(bt,Ot)):bt,this.update()}return Ht._clearContainer=function(Ot){Ot&&(Ot.innerHTML="")},Ht.prototype._setupSvg=function(){var Ot=this;if(this._qr){var Kt=new At(this._options);this._svg=Kt.getElement(),this._svgDrawingPromise=Kt.drawQR(this._qr).then(function(){var Xt;Ot._svg&&((Xt=Ot._extension)===null||Xt===void 0||Xt.call(Ot,Kt.getElement(),Ot._options))})}},Ht.prototype._setupCanvas=function(){var Ot,Kt=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=(Ot=this._svgDrawingPromise)===null||Ot===void 0?void 0:Ot.then(function(){if(Kt._svg){var Xt=Kt._svg,an=new XMLSerializer().serializeToString(Xt),_n="data:image/svg+xml;base64,"+btoa(an),yn=new Image;return new Promise(function(dn){yn.onload=function(){var $n,wn;(wn=($n=Kt._canvas)===null||$n===void 0?void 0:$n.getContext("2d"))===null||wn===void 0||wn.drawImage(yn,0,0),dn()},yn.src=_n})}}))},Ht.prototype._getElement=function(Ot){return Ot===void 0&&(Ot="png"),Yt(this,void 0,void 0,function(){return cn(this,function(Kt){switch(Kt.label){case 0:if(!this._qr)throw"QR code is empty";return Ot.toLowerCase()!=="svg"?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return Kt.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return Kt.sent(),[2,this._canvas]}})})},Ht.prototype.update=function(Ot){Ht._clearContainer(this._container),this._options=Ot?Ut(vt(this._options,Ot)):this._options,this._options.data&&(this._qr=Gt()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(Kt){switch(!0){case/^[0-9]*$/.test(Kt):return ot;case/^[0-9A-Z $%*+\-./:]*$/.test(Kt):return ct;default:return ut}}(this._options.data)),this._qr.make(),this._options.type===kt?this._setupCanvas():this._setupSvg(),this.append(this._container))},Ht.prototype.append=function(Ot){if(Ot){if(typeof Ot.appendChild!="function")throw"Container should be a single DOM node";this._options.type===kt?this._canvas&&Ot.appendChild(this._canvas):this._svg&&Ot.appendChild(this._svg),this._container=Ot}},Ht.prototype.applyExtension=function(Ot){if(!Ot)throw"Extension function should be defined.";this._extension=Ot,this.update()},Ht.prototype.deleteExtension=function(){this._extension=void 0,this.update()},Ht.prototype.getRawData=function(Ot){return Ot===void 0&&(Ot="png"),Yt(this,void 0,void 0,function(){var Kt,Xt,an;return cn(this,function(_n){switch(_n.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(Ot)];case 1:return(Kt=_n.sent())?Ot.toLowerCase()==="svg"?(Xt=new XMLSerializer,an=Xt.serializeToString(Kt),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
494
494
  `+an],{type:"image/svg+xml"})]):[2,new Promise(function(yn){return Kt.toBlob(yn,"image/"+Ot,1)})]:[2,null]}})})},Ht.prototype.download=function(Ot){return Yt(this,void 0,void 0,function(){var Kt,Xt,an,_n,yn;return cn(this,function(dn){switch(dn.label){case 0:if(!this._qr)throw"QR code is empty";return Kt="png",Xt="qr",typeof Ot=="string"?(Kt=Ot,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof Ot=="object"&&Ot!==null&&(Ot.name&&(Xt=Ot.name),Ot.extension&&(Kt=Ot.extension)),[4,this._getElement(Kt)];case 1:return(an=dn.sent())?(Kt.toLowerCase()==="svg"?(_n=new XMLSerializer,yn=`<?xml version="1.0" standalone="no"?>\r
495
495
  `+(yn=_n.serializeToString(an)),Et("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(yn),Xt+".svg")):Et(an.toDataURL("image/"+Kt),Xt+"."+Kt),[2]):[2]}})})},Ht}()}},et={};function tt(nt){if(et[nt])return et[nt].exports;var rt=et[nt]={exports:{}};return _e[nt](rt,rt.exports,tt),rt.exports}return tt.n=nt=>{var rt=nt&&nt.__esModule?()=>nt.default:()=>nt;return tt.d(rt,{a:rt}),rt},tt.d=(nt,rt)=>{for(var it in rt)tt.o(rt,it)&&!tt.o(nt,it)&&Object.defineProperty(nt,it,{enumerable:!0,get:rt[it]})},tt.o=(nt,rt)=>Object.prototype.hasOwnProperty.call(nt,rt),tt(676)})().default})})(qrCodeStyling);var qrCodeStylingExports=qrCodeStyling.exports;const QRCodeStyling=getDefaultExportFromCjs$1(qrCodeStylingExports),defaults={margin:0,dotsOptions:{type:"dots"},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}};function QRCode({data:a,size:j,image:_e,config:et,...tt}){const nt=reactExports.useRef(null),rt=reactExports.useMemo(()=>({...defaults,data:a,width:j,height:j,..._e&&{image:_e,imageOptions:{crossOrigin:"anonymous",margin:0}},...et}),[a,j,_e,et]),[it]=reactExports.useState(new QRCodeStyling(rt));return reactExports.useEffect(()=>{nt.current&&it.append(nt.current)},[it,nt]),reactExports.useEffect(()=>{it&&it.update(rt)},[a,j,_e,et]),jsxRuntimeExports.jsx(Box,{ref:nt,...tt})}QRCode.propTypes={data:PropTypes.string.isRequired,size:PropTypes.number.isRequired,image:PropTypes.string,config:PropTypes.object};QRCode.defaultProps={image:null,config:{}};function MobileLoginItem({tokenState:a,locale:j,messages:_e}){const{t:et,matchSmallScreen:tt}=useStateContext(),nt="DID Wallet",rt=(_e==null?void 0:_e.scan)||et("scanWithWallet"),it=et("download"),ot=et("downloadTips"),ct=160,ut=useCreation(()=>["zh","en"].includes?`https://www.didwallet.io/${j}`:"https://www.didwallet.io/en",[j]),dt=useCreation(()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ot," ",jsxRuntimeExports.jsx(Box,{component:"a",href:ut,target:"_blank",rel:"noopener",sx:{color:colors$1.foregroundsFgInteractive,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:it})]}),[ut,it,ot]);return jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",gap:1,justifyContent:"space-between",alignItems:tt?"center":"stretch",flexDirection:tt?"column":"row"},children:[jsxRuntimeExports.jsx(Box,{sx:{display:tt?"none":"block"},children:jsxRuntimeExports.jsx(default_1$4,{width:"24px",height:"24px"})}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",flex:1,wordBreak:"break-word",width:tt?186:"auto"},children:[jsxRuntimeExports.jsxs(Typography,{sx:{fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:1},children:[tt?jsxRuntimeExports.jsx(default_1$4,{width:"24px",height:"24px"}):null,nt]}),jsxRuntimeExports.jsx(Typography,{sx:{flex:1,color:colors$1.foregroundsFgMuted,fontSize:"12px"},children:rt}),jsxRuntimeExports.jsx(Box,{sx:{color:colors$1.foregroundsFgMuted,fontSize:"12px",display:tt?"none":"block"},children:dt})]}),jsxRuntimeExports.jsx(QRCode,{data:a.url,size:ct,sx:{p:1.5,borderRadius:2,border:`1px solid ${colors$1.strokeBorderBase}`,backgroundColor:"white",fontSize:0}}),jsxRuntimeExports.jsx(Box,{sx:{color:colors$1.textMuted,fontSize:"12px",display:tt?"block":"none"},children:dt})]})}MobileLoginItem.propTypes={tokenState:PropTypes.object.isRequired,locale:PropTypes.string,messages:PropTypes.object};MobileLoginItem.defaultProps={locale:"en",messages:{}};const data$e={width:256,height:315,body:'<path d="M213.803 167.03c.442 47.58 41.74 63.413 42.197 63.615c-.35 1.116-6.599 22.563-21.757 44.716c-13.104 19.153-26.705 38.235-48.13 38.63c-21.05.388-27.82-12.483-51.888-12.483c-24.061 0-31.582 12.088-51.51 12.871c-20.68.783-36.428-20.71-49.64-39.793c-27-39.033-47.633-110.3-19.928-158.406c13.763-23.89 38.36-39.017 65.056-39.405c20.307-.387 39.475 13.662 51.889 13.662c12.406 0 35.699-16.895 60.186-14.414c10.25.427 39.026 4.14 57.503 31.186c-1.49.923-34.335 20.044-33.978 59.822M174.24 50.199c10.98-13.29 18.369-31.79 16.353-50.199c-15.826.636-34.962 10.546-46.314 23.828c-10.173 11.763-19.082 30.589-16.678 48.633c17.64 1.365 35.66-8.964 46.64-22.262"/>'},data$d={width:256,height:250,body:'<path fill="#161614" d="M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0Zm-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931Zm6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66Zm4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08Zm7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27Zm9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622Zm10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868Zm10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403Z"/>'},data$c={width:256,height:262,body:'<path fill="#4285F4" d="M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622l38.755 30.023l2.685.268c24.659-22.774 38.875-56.282 38.875-96.027"/><path fill="#34A853" d="M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055c-34.523 0-63.824-22.773-74.269-54.25l-1.531.13l-40.298 31.187l-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1"/><path fill="#FBBC05" d="M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82c0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782"/><path fill="#EB4335" d="M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0C79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251"/>'};function IconItem({icon:a,...j}){return jsxRuntimeExports.jsx(IconButton,{...j,sx:{backgroundColor:"white",border:`1px solid ${colors$1.borderBase}`,...j==null?void 0:j.sx},children:jsxRuntimeExports.jsx(Icon,{icon:a,width:"1em",height:"1em"})})}IconItem.propTypes={icon:PropTypes.any.isRequired};function OAuthLoginStack({providerList:a,onLogin:j}){return jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(Icon,{icon:data$l,fontSize:"1.3rem"}),jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Others"})]}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",gap:2},children:a.map(et=>{const tt={[LOGIN_PROVIDER$1.AUTH0]:data$i,[LOGIN_PROVIDER$1.APPLE]:data$e,[LOGIN_PROVIDER$1.GITHUB]:data$d,[LOGIN_PROVIDER$1.GOOGLE]:data$c};return jsxRuntimeExports.jsx(IconItem,{icon:tt[et.provider],onClick:()=>j(et)},et.provider)})})]})}OAuthLoginStack.propTypes={onLogin:PropTypes.func.isRequired,providerList:PropTypes.array.isRequired};function OAuthItem({title:a,icon:j,..._e}){return jsxRuntimeExports.jsxs(ItemWrap,{..._e,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:colors$1.surfacePrimarySubtitle,"& .other-item-icon":{display:"inline-block",transform:"translateX(0)",opacity:"1"}},"& .other-item-icon":{opacity:"0",transform:"translateX(-100%)",transition:"transform 0.2s ease"},..._e==null?void 0:_e.sx},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(Icon,{icon:j,width:"1em",height:"1em",fontSize:"1.5rem",style:{transform:"scale(0.95)"}}),jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"16px",fontWeight:"bold"},children:a})]}),jsxRuntimeExports.jsx(Icon,{className:"other-item-icon",icon:data$o,fontSize:"1.3rem",color:colors$1.primaryBase})]})}OAuthItem.propTypes={title:PropTypes.string.isRequired,icon:PropTypes.string.isRequired};function OAuthLoginList({providerList:a,onLogin:j}){const{t:_e}=useStateContext(),et={[LOGIN_PROVIDER$1.AUTH0]:data$i,[LOGIN_PROVIDER$1.APPLE]:data$e,[LOGIN_PROVIDER$1.GITHUB]:data$d,[LOGIN_PROVIDER$1.GOOGLE]:data$c};return jsxRuntimeExports.jsx(Box,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:a.map(tt=>{if(tt.provider===LOGIN_PROVIDER$1.AUTH0&&a.length===1){const nt=_e("otherAccount");return jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:colors$1.surfacePrimarySubtitle}},onClick:()=>{j(tt)},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(Icon,{icon:data$l,fontSize:"1.3rem"}),jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"16px",fontWeight:"bold"},children:nt})]}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",gap:2},children:[{provider:"auth0"},{provider:"google"},{provider:"apple"}].map(rt=>jsxRuntimeExports.jsx(IconButton,{sx:{backgroundColor:"white",border:`1px solid ${colors$1.borderBase}`},children:jsxRuntimeExports.jsx(Icon,{icon:et[rt.provider],width:"1em",height:"1em"})},rt.provider))})]},tt.provider)}return jsxRuntimeExports.jsx(OAuthItem,{title:OAUTH_PROVIDER[tt.provider],icon:et[tt.provider],onClick:()=>{j(tt)}},tt.provider)})})}OAuthLoginList.propTypes={onLogin:PropTypes.func.isRequired,providerList:PropTypes.array.isRequired};function OAuthLogin({providerList:a,type:j,onSuccess:_e,onError:et,tokenState:tt}){const{extraParams:nt,changeStatus:rt}=useStateContext(),{loginOAuth:it,logoutOAuth:ot,t:ct,oauthState:ut}=useOAuth(),dt=useMemoizedFn(async pt=>{const mt=nt==null?void 0:nt.sourceAppPid;try{ut.loading=!0,ut.status="scanned";const vt=await it(pt,{action:tt.action,...nt}),Et=getCookieOptions({returnDomain:!1});Cookie.remove("connected_did",Et),Cookie.remove("connected_pk",Et),Cookie.remove("connected_wallet_os",Et),vt!=null&&vt.sessionToken&&(ut.loading=!1,ut.status="succeed",_e({...vt,encrypted:!1},Rt=>Rt,{sourceAppPid:mt,connected_app:getAppId$1(tt.appInfo,tt.memberAppInfo)}))}catch(vt){const Et=getApiErrorMessage(vt,ct("loginOAuthFailed"));ut.loading=!1,ut.error=Et,ut.status="error",await ot({provider:pt.provider}),et(new Error(Et))}});return reactExports.useEffect(()=>{rt(ut.status)},[rt,ut.status]),j==="stack"?jsxRuntimeExports.jsx(OAuthLoginStack,{providerList:a,onLogin:dt}):jsxRuntimeExports.jsx(OAuthLoginList,{providerList:a,onLogin:dt})}OAuthLogin.propTypes={providerList:PropTypes.array.isRequired,type:PropTypes.oneOf(["list","stack"]),onSuccess:PropTypes.func.isRequired,onError:PropTypes.func.isRequired,tokenState:PropTypes.object.isRequired};OAuthLogin.defaultProps={type:"stack"};function arraySome$1(a,j){for(var _e=-1,et=a==null?0:a.length;++_e<et;)if(j(a[_e],_e,a))return!0;return!1}var _arraySome=arraySome$1,SetCache$1=_SetCache,arraySome=_arraySome,cacheHas$1=_cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(a,j,_e,et,tt,nt){var rt=_e&COMPARE_PARTIAL_FLAG$5,it=a.length,ot=j.length;if(it!=ot&&!(rt&&ot>it))return!1;var ct=nt.get(a),ut=nt.get(j);if(ct&&ut)return ct==j&&ut==a;var dt=-1,pt=!0,mt=_e&COMPARE_UNORDERED_FLAG$3?new SetCache$1:void 0;for(nt.set(a,j),nt.set(j,a);++dt<it;){var vt=a[dt],Et=j[dt];if(et)var Rt=rt?et(Et,vt,dt,j,a,nt):et(vt,Et,dt,a,j,nt);if(Rt!==void 0){if(Rt)continue;pt=!1;break}if(mt){if(!arraySome(j,function(xt,Pt){if(!cacheHas$1(mt,Pt)&&(vt===xt||tt(vt,xt,_e,et,nt)))return mt.push(Pt)})){pt=!1;break}}else if(!(vt===Et||tt(vt,Et,_e,et,nt))){pt=!1;break}}return nt.delete(a),nt.delete(j),pt}var _equalArrays=equalArrays$2;function mapToArray$1(a){var j=-1,_e=Array(a.size);return a.forEach(function(et,tt){_e[++j]=[tt,et]}),_e}var _mapToArray=mapToArray$1;function setToArray$3(a){var j=-1,_e=Array(a.size);return a.forEach(function(et){_e[++j]=et}),_e}var _setToArray=setToArray$3,Symbol$4=_Symbol,Uint8Array$1=_Uint8Array,eq$5=eq_1$1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray$2=_setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag$1="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag$1="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto$2=Symbol$4?Symbol$4.prototype:void 0,symbolValueOf=symbolProto$2?symbolProto$2.valueOf:void 0;function equalByTag$1(a,j,_e,et,tt,nt,rt){switch(_e){case dataViewTag:if(a.byteLength!=j.byteLength||a.byteOffset!=j.byteOffset)return!1;a=a.buffer,j=j.buffer;case arrayBufferTag:return!(a.byteLength!=j.byteLength||!nt(new Uint8Array$1(a),new Uint8Array$1(j)));case boolTag$1:case dateTag:case numberTag$1:return eq$5(+a,+j);case errorTag:return a.name==j.name&&a.message==j.message;case regexpTag:case stringTag:return a==j+"";case mapTag:var it=mapToArray;case setTag:var ot=et&COMPARE_PARTIAL_FLAG$4;if(it||(it=setToArray$2),a.size!=j.size&&!ot)return!1;var ct=rt.get(a);if(ct)return ct==j;et|=COMPARE_UNORDERED_FLAG$2,rt.set(a,j);var ut=equalArrays$1(it(a),it(j),et,tt,nt,rt);return rt.delete(a),ut;case symbolTag$2:if(symbolValueOf)return symbolValueOf.call(a)==symbolValueOf.call(j)}return!1}var _equalByTag=equalByTag$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$3=Object.prototype,hasOwnProperty$6=objectProto$3.hasOwnProperty;function equalObjects$1(a,j,_e,et,tt,nt){var rt=_e&COMPARE_PARTIAL_FLAG$3,it=getAllKeys(a),ot=it.length,ct=getAllKeys(j),ut=ct.length;if(ot!=ut&&!rt)return!1;for(var dt=ot;dt--;){var pt=it[dt];if(!(rt?pt in j:hasOwnProperty$6.call(j,pt)))return!1}var mt=nt.get(a),vt=nt.get(j);if(mt&&vt)return mt==j&&vt==a;var Et=!0;nt.set(a,j),nt.set(j,a);for(var Rt=rt;++dt<ot;){pt=it[dt];var xt=a[pt],Pt=j[pt];if(et)var Dt=rt?et(Pt,xt,pt,j,a,nt):et(xt,Pt,pt,a,j,nt);if(!(Dt===void 0?xt===Pt||tt(xt,Pt,_e,et,nt):Dt)){Et=!1;break}Rt||(Rt=pt=="constructor")}if(Et&&!Rt){var Ft=a.constructor,zt=j.constructor;Ft!=zt&&"constructor"in a&&"constructor"in j&&!(typeof Ft=="function"&&Ft instanceof Ft&&typeof zt=="function"&&zt instanceof zt)&&(Et=!1)}return nt.delete(a),nt.delete(j),Et}var _equalObjects=equalObjects$1,Stack$1=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray$7=isArray_1,isBuffer=isBufferExports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto$2=Object.prototype,hasOwnProperty$5=objectProto$2.hasOwnProperty;function baseIsEqualDeep$1(a,j,_e,et,tt,nt){var rt=isArray$7(a),it=isArray$7(j),ot=rt?arrayTag:getTag(a),ct=it?arrayTag:getTag(j);ot=ot==argsTag?objectTag:ot,ct=ct==argsTag?objectTag:ct;var ut=ot==objectTag,dt=ct==objectTag,pt=ot==ct;if(pt&&isBuffer(a)){if(!isBuffer(j))return!1;rt=!0,ut=!1}if(pt&&!ut)return nt||(nt=new Stack$1),rt||isTypedArray(a)?equalArrays(a,j,_e,et,tt,nt):equalByTag(a,j,ot,_e,et,tt,nt);if(!(_e&COMPARE_PARTIAL_FLAG$2)){var mt=ut&&hasOwnProperty$5.call(a,"__wrapped__"),vt=dt&&hasOwnProperty$5.call(j,"__wrapped__");if(mt||vt){var Et=mt?a.value():a,Rt=vt?j.value():j;return nt||(nt=new Stack$1),tt(Et,Rt,_e,et,nt)}}return pt?(nt||(nt=new Stack$1),equalObjects(a,j,_e,et,tt,nt)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike$5=isObjectLike_1;function baseIsEqual$3(a,j,_e,et,tt){return a===j?!0:a==null||j==null||!isObjectLike$5(a)&&!isObjectLike$5(j)?a!==a&&j!==j:baseIsEqualDeep(a,j,_e,et,baseIsEqual$3,tt)}var _baseIsEqual=baseIsEqual$3,Stack=_Stack,baseIsEqual$2=_baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(a,j,_e,et){var tt=_e.length,nt=tt,rt=!et;if(a==null)return!nt;for(a=Object(a);tt--;){var it=_e[tt];if(rt&&it[2]?it[1]!==a[it[0]]:!(it[0]in a))return!1}for(;++tt<nt;){it=_e[tt];var ot=it[0],ct=a[ot],ut=it[1];if(rt&&it[2]){if(ct===void 0&&!(ot in a))return!1}else{var dt=new Stack;if(et)var pt=et(ct,ut,ot,a,j,dt);if(!(pt===void 0?baseIsEqual$2(ut,ct,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,et,dt):pt))return!1}}return!0}var _baseIsMatch=baseIsMatch$1,isObject$9=isObject_1;function isStrictComparable$2(a){return a===a&&!isObject$9(a)}var _isStrictComparable=isStrictComparable$2,isStrictComparable$1=_isStrictComparable,keys$2=keys_1;function getMatchData$1(a){for(var j=keys$2(a),_e=j.length;_e--;){var et=j[_e],tt=a[et];j[_e]=[et,tt,isStrictComparable$1(tt)]}return j}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(a,j){return function(_e){return _e==null?!1:_e[a]===j&&(j!==void 0||a in Object(_e))}}var _matchesStrictComparable=matchesStrictComparable$2,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(a){var j=getMatchData(a);return j.length==1&&j[0][2]?matchesStrictComparable$1(j[0][0],j[0][1]):function(_e){return _e===a||baseIsMatch(_e,a,j)}}var _baseMatches=baseMatches$1,baseIsEqual$1=_baseIsEqual,get$4=get_1,hasIn=hasIn_1,isKey$3=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$3=_toKey,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(a,j){return isKey$3(a)&&isStrictComparable(j)?matchesStrictComparable(toKey$3(a),j):function(_e){var et=get$4(_e,a);return et===void 0&&et===j?hasIn(_e,a):baseIsEqual$1(j,et,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty$1,baseGet$2=_baseGet;function basePropertyDeep$1(a){return function(j){return baseGet$2(j,a)}}var _basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey$2=_isKey,toKey$2=_toKey;function property$1(a){return isKey$2(a)?baseProperty(toKey$2(a)):basePropertyDeep(a)}var property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity$1=identity_1,isArray$6=isArray_1,property=property_1;function baseIteratee$4(a){return typeof a=="function"?a:a==null?identity$1:typeof a=="object"?isArray$6(a)?baseMatchesProperty(a[0],a[1]):baseMatches(a):property(a)}var _baseIteratee=baseIteratee$4,FUNC_ERROR_TEXT$2="Expected a function";function negate$1(a){if(typeof a!="function")throw new TypeError(FUNC_ERROR_TEXT$2);return function(){var j=arguments;switch(j.length){case 0:return!a.call(this);case 1:return!a.call(this,j[0]);case 2:return!a.call(this,j[0],j[1]);case 3:return!a.call(this,j[0],j[1],j[2])}return!a.apply(this,j)}}var negate_1=negate$1,arrayMap$1=_arrayMap,baseIteratee$3=_baseIteratee,basePickBy=_basePickBy,getAllKeysIn=_getAllKeysIn;function pickBy$1(a,j){if(a==null)return{};var _e=arrayMap$1(getAllKeysIn(a),function(et){return[et]});return j=baseIteratee$3(j),basePickBy(a,_e,function(et,tt){return j(et,tt[0])})}var pickBy_1=pickBy$1,baseIteratee$2=_baseIteratee,negate=negate_1,pickBy=pickBy_1;function omitBy(a,j){return pickBy(a,negate(baseIteratee$2(j)))}var omitBy_1=omitBy;const omitBy$1=getDefaultExportFromCjs$1(omitBy_1);function useInterval(a,j){const _e=reactExports.useRef();reactExports.useEffect(()=>{_e.current=a},[a]),reactExports.useEffect(()=>{function et(){_e.current()}if(j!==null){const tt=setInterval(et,j);return()=>clearInterval(tt)}},[j])}var eventemitter3$1={exports:{}};(function(a){var j=Object.prototype.hasOwnProperty,_e="~";function et(){}Object.create&&(et.prototype=Object.create(null),new et().__proto__||(_e=!1));function tt(ot,ct,ut){this.fn=ot,this.context=ct,this.once=ut||!1}function nt(ot,ct,ut,dt,pt){if(typeof ut!="function")throw new TypeError("The listener must be a function");var mt=new tt(ut,dt||ot,pt),vt=_e?_e+ct:ct;return ot._events[vt]?ot._events[vt].fn?ot._events[vt]=[ot._events[vt],mt]:ot._events[vt].push(mt):(ot._events[vt]=mt,ot._eventsCount++),ot}function rt(ot,ct){--ot._eventsCount===0?ot._events=new et:delete ot._events[ct]}function it(){this._events=new et,this._eventsCount=0}it.prototype.eventNames=function(){var ct=[],ut,dt;if(this._eventsCount===0)return ct;for(dt in ut=this._events)j.call(ut,dt)&&ct.push(_e?dt.slice(1):dt);return Object.getOwnPropertySymbols?ct.concat(Object.getOwnPropertySymbols(ut)):ct},it.prototype.listeners=function(ct){var ut=_e?_e+ct:ct,dt=this._events[ut];if(!dt)return[];if(dt.fn)return[dt.fn];for(var pt=0,mt=dt.length,vt=new Array(mt);pt<mt;pt++)vt[pt]=dt[pt].fn;return vt},it.prototype.listenerCount=function(ct){var ut=_e?_e+ct:ct,dt=this._events[ut];return dt?dt.fn?1:dt.length:0},it.prototype.emit=function(ct,ut,dt,pt,mt,vt){var Et=_e?_e+ct:ct;if(!this._events[Et])return!1;var Rt=this._events[Et],xt=arguments.length,Pt,Dt;if(Rt.fn){switch(Rt.once&&this.removeListener(ct,Rt.fn,void 0,!0),xt){case 1:return Rt.fn.call(Rt.context),!0;case 2:return Rt.fn.call(Rt.context,ut),!0;case 3:return Rt.fn.call(Rt.context,ut,dt),!0;case 4:return Rt.fn.call(Rt.context,ut,dt,pt),!0;case 5:return Rt.fn.call(Rt.context,ut,dt,pt,mt),!0;case 6:return Rt.fn.call(Rt.context,ut,dt,pt,mt,vt),!0}for(Dt=1,Pt=new Array(xt-1);Dt<xt;Dt++)Pt[Dt-1]=arguments[Dt];Rt.fn.apply(Rt.context,Pt)}else{var Ft=Rt.length,zt;for(Dt=0;Dt<Ft;Dt++)switch(Rt[Dt].once&&this.removeListener(ct,Rt[Dt].fn,void 0,!0),xt){case 1:Rt[Dt].fn.call(Rt[Dt].context);break;case 2:Rt[Dt].fn.call(Rt[Dt].context,ut);break;case 3:Rt[Dt].fn.call(Rt[Dt].context,ut,dt);break;case 4:Rt[Dt].fn.call(Rt[Dt].context,ut,dt,pt);break;default:if(!Pt)for(zt=1,Pt=new Array(xt-1);zt<xt;zt++)Pt[zt-1]=arguments[zt];Rt[Dt].fn.apply(Rt[Dt].context,Pt)}}return!0},it.prototype.on=function(ct,ut,dt){return nt(this,ct,ut,dt,!1)},it.prototype.once=function(ct,ut,dt){return nt(this,ct,ut,dt,!0)},it.prototype.removeListener=function(ct,ut,dt,pt){var mt=_e?_e+ct:ct;if(!this._events[mt])return this;if(!ut)return rt(this,mt),this;var vt=this._events[mt];if(vt.fn)vt.fn===ut&&(!pt||vt.once)&&(!dt||vt.context===dt)&&rt(this,mt);else{for(var Et=0,Rt=[],xt=vt.length;Et<xt;Et++)(vt[Et].fn!==ut||pt&&!vt[Et].once||dt&&vt[Et].context!==dt)&&Rt.push(vt[Et]);Rt.length?this._events[mt]=Rt.length===1?Rt[0]:Rt:rt(this,mt)}return this},it.prototype.removeAllListeners=function(ct){var ut;return ct?(ut=_e?_e+ct:ct,this._events[ut]&&rt(this,ut)):(this._events=new et,this._eventsCount=0),this},it.prototype.off=it.prototype.removeListener,it.prototype.addListener=it.prototype.on,it.prefixed=_e,it.EventEmitter=it,a.exports=it})(eventemitter3$1);var eventemitter3Exports$1=eventemitter3$1.exports,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(a,j)=>{for(var _e in j)__defProp(a,_e,{get:j[_e],enumerable:!0})},__copyProps=(a,j,_e,et)=>{if(j&&typeof j=="object"||typeof j=="function")for(let tt of __getOwnPropNames(j))!__hasOwnProp.call(a,tt)&&tt!==_e&&__defProp(a,tt,{get:()=>j[tt],enumerable:!(et=__getOwnPropDesc(j,tt))||et.enumerable});return a},__toCommonJS=a=>__copyProps(__defProp({},"__esModule",{value:!0}),a),phoenix_exports={};__export(phoenix_exports,{Channel:()=>Channel,LongPoll:()=>LongPoll,Presence:()=>Presence,Serializer:()=>serializer_default,Socket:()=>Socket$1});var phoenix_cjs=__toCommonJS(phoenix_exports),closure=a=>typeof a=="function"?a:function(){return a},globalSelf=typeof self<"u"?self:null,phxWindow=typeof window<"u"?window:null,global$1=globalSelf||phxWindow||global$1,DEFAULT_VSN="2.0.0",SOCKET_STATES={connecting:0,open:1,closing:2,closed:3},DEFAULT_TIMEOUT=1e4,WS_CLOSE_NORMAL=1e3,CHANNEL_STATES={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},CHANNEL_EVENTS={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},TRANSPORTS={longpoll:"longpoll",websocket:"websocket"},XHR_STATES={complete:4},Push=class{constructor(a,j,_e,et){this.channel=a,this.event=j,this.payload=_e||function(){return{}},this.receivedResp=null,this.timeout=et,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(a){this.timeout=a,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(a,j){return this.hasReceived(a)&&j(this.receivedResp.response),this.recHooks.push({status:a,callback:j}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:a,response:j,_ref:_e}){this.recHooks.filter(et=>et.status===a).forEach(et=>et.callback(j))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,a=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=a,this.matchReceive(a)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(a){return this.receivedResp&&this.receivedResp.status===a}trigger(a,j){this.channel.trigger(this.refEvent,{status:a,response:j})}},Timer=class{constructor(a,j){this.callback=a,this.timerCalc=j,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},Channel=class{constructor(a,j,_e){this.state=CHANNEL_STATES.closed,this.topic=a,this.params=closure(j||{}),this.socket=_e,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Push(this,CHANNEL_EVENTS.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Timer(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=CHANNEL_STATES.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(et=>et.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=CHANNEL_STATES.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=CHANNEL_STATES.closed,this.socket.remove(this)}),this.onError(et=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,et),this.isJoining()&&this.joinPush.reset(),this.state=CHANNEL_STATES.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new Push(this,CHANNEL_EVENTS.leave,closure({}),this.timeout).send(),this.state=CHANNEL_STATES.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(CHANNEL_EVENTS.reply,(et,tt)=>{this.trigger(this.replyEventName(tt),et)})}join(a=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=a,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(a){this.on(CHANNEL_EVENTS.close,a)}onError(a){return this.on(CHANNEL_EVENTS.error,j=>a(j))}on(a,j){let _e=this.bindingRef++;return this.bindings.push({event:a,ref:_e,callback:j}),_e}off(a,j){this.bindings=this.bindings.filter(_e=>!(_e.event===a&&(typeof j>"u"||j===_e.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(a,j,_e=this.timeout){if(j=j||{},!this.joinedOnce)throw new Error(`tried to push '${a}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let et=new Push(this,a,function(){return j},_e);return this.canPush()?et.send():(et.startTimeout(),this.pushBuffer.push(et)),et}leave(a=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=CHANNEL_STATES.leaving;let j=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(CHANNEL_EVENTS.close,"leave")},_e=new Push(this,CHANNEL_EVENTS.leave,closure({}),a);return _e.receive("ok",()=>j()).receive("timeout",()=>j()),_e.send(),this.canPush()||_e.trigger("ok",{}),_e}onMessage(a,j,_e){return j}isMember(a,j,_e,et){return this.topic!==a?!1:et&&et!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:a,event:j,payload:_e,joinRef:et}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(a=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=CHANNEL_STATES.joining,this.joinPush.resend(a))}trigger(a,j,_e,et){let tt=this.onMessage(a,j,_e,et);if(j&&!tt)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let nt=this.bindings.filter(rt=>rt.event===a);for(let rt=0;rt<nt.length;rt++)nt[rt].callback(tt,_e,et||this.joinRef())}replyEventName(a){return`chan_reply_${a}`}isClosed(){return this.state===CHANNEL_STATES.closed}isErrored(){return this.state===CHANNEL_STATES.errored}isJoined(){return this.state===CHANNEL_STATES.joined}isJoining(){return this.state===CHANNEL_STATES.joining}isLeaving(){return this.state===CHANNEL_STATES.leaving}},Ajax=class{static request(a,j,_e,et,tt,nt,rt){if(global$1.XDomainRequest){let it=new global$1.XDomainRequest;return this.xdomainRequest(it,a,j,et,tt,nt,rt)}else{let it=new global$1.XMLHttpRequest;return this.xhrRequest(it,a,j,_e,et,tt,nt,rt)}}static xdomainRequest(a,j,_e,et,tt,nt,rt){return a.timeout=tt,a.open(j,_e),a.onload=()=>{let it=this.parseJSON(a.responseText);rt&&rt(it)},nt&&(a.ontimeout=nt),a.onprogress=()=>{},a.send(et),a}static xhrRequest(a,j,_e,et,tt,nt,rt,it){return a.open(j,_e,!0),a.timeout=nt,a.setRequestHeader("Content-Type",et),a.onerror=()=>it&&it(null),a.onreadystatechange=()=>{if(a.readyState===XHR_STATES.complete&&it){let ot=this.parseJSON(a.responseText);it(ot)}},rt&&(a.ontimeout=rt),a.send(tt),a}static parseJSON(a){if(!a||a==="")return null;try{return JSON.parse(a)}catch{return console&&console.log("failed to parse JSON response",a),null}}static serialize(a,j){let _e=[];for(var et in a){if(!Object.prototype.hasOwnProperty.call(a,et))continue;let tt=j?`${j}[${et}]`:et,nt=a[et];typeof nt=="object"?_e.push(this.serialize(nt,tt)):_e.push(encodeURIComponent(tt)+"="+encodeURIComponent(nt))}return _e.join("&")}static appendParams(a,j){if(Object.keys(j).length===0)return a;let _e=a.match(/\?/)?"&":"?";return`${a}${_e}${this.serialize(j)}`}},LongPoll=class{constructor(a){this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(a),this.readyState=SOCKET_STATES.connecting,this.poll()}normalizeEndpoint(a){return a.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+TRANSPORTS.websocket),"$1/"+TRANSPORTS.longpoll)}endpointURL(){return Ajax.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(a,j,_e){this.close(a,j,_e),this.readyState=SOCKET_STATES.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===SOCKET_STATES.open||this.readyState===SOCKET_STATES.connecting}poll(){this.ajax("GET","application/json",null,()=>this.ontimeout(),a=>{if(a){var{status:j,token:_e,messages:et}=a;this.token=_e}else j=0;switch(j){case 200:et.forEach(tt=>{setTimeout(()=>this.onmessage({data:tt}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=SOCKET_STATES.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${j}`)}})}send(a){this.currentBatch?this.currentBatch.push(a):this.awaitingBatchAck?this.batchBuffer.push(a):(this.currentBatch=[a],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(a){this.awaitingBatchAck=!0,this.ajax("POST","application/x-ndjson",a.join(`
496
- `),()=>this.onerror("timeout"),j=>{this.awaitingBatchAck=!1,!j||j.status!==200?(this.onerror(j&&j.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(a,j,_e){for(let tt of this.reqs)tt.abort();this.readyState=SOCKET_STATES.closed;let et=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:a,reason:j,wasClean:_e});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",et)):this.onclose(et)}ajax(a,j,_e,et,tt){let nt,rt=()=>{this.reqs.delete(nt),et()};nt=Ajax.request(a,this.endpointURL(),j,_e,this.timeout,rt,it=>{this.reqs.delete(nt),this.isActive()&&tt(it)}),this.reqs.add(nt)}},Presence=class{constructor(a,j={}){let _e=j.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=a,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(_e.state,et=>{let{onJoin:tt,onLeave:nt,onSync:rt}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Presence.syncState(this.state,et,tt,nt),this.pendingDiffs.forEach(it=>{this.state=Presence.syncDiff(this.state,it,tt,nt)}),this.pendingDiffs=[],rt()}),this.channel.on(_e.diff,et=>{let{onJoin:tt,onLeave:nt,onSync:rt}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(et):(this.state=Presence.syncDiff(this.state,et,tt,nt),rt())})}onJoin(a){this.caller.onJoin=a}onLeave(a){this.caller.onLeave=a}onSync(a){this.caller.onSync=a}list(a){return Presence.list(this.state,a)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(a,j,_e,et){let tt=this.clone(a),nt={},rt={};return this.map(tt,(it,ot)=>{j[it]||(rt[it]=ot)}),this.map(j,(it,ot)=>{let ct=tt[it];if(ct){let ut=ot.metas.map(vt=>vt.phx_ref),dt=ct.metas.map(vt=>vt.phx_ref),pt=ot.metas.filter(vt=>dt.indexOf(vt.phx_ref)<0),mt=ct.metas.filter(vt=>ut.indexOf(vt.phx_ref)<0);pt.length>0&&(nt[it]=ot,nt[it].metas=pt),mt.length>0&&(rt[it]=this.clone(ct),rt[it].metas=mt)}else nt[it]=ot}),this.syncDiff(tt,{joins:nt,leaves:rt},_e,et)}static syncDiff(a,j,_e,et){let{joins:tt,leaves:nt}=this.clone(j);return _e||(_e=function(){}),et||(et=function(){}),this.map(tt,(rt,it)=>{let ot=a[rt];if(a[rt]=this.clone(it),ot){let ct=a[rt].metas.map(dt=>dt.phx_ref),ut=ot.metas.filter(dt=>ct.indexOf(dt.phx_ref)<0);a[rt].metas.unshift(...ut)}_e(rt,ot,it)}),this.map(nt,(rt,it)=>{let ot=a[rt];if(!ot)return;let ct=it.metas.map(ut=>ut.phx_ref);ot.metas=ot.metas.filter(ut=>ct.indexOf(ut.phx_ref)<0),et(rt,ot,it),ot.metas.length===0&&delete a[rt]}),a}static list(a,j){return j||(j=function(_e,et){return et}),this.map(a,(_e,et)=>j(_e,et))}static map(a,j){return Object.getOwnPropertyNames(a).map(_e=>j(_e,a[_e]))}static clone(a){return JSON.parse(JSON.stringify(a))}},serializer_default={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(a,j){if(a.payload.constructor===ArrayBuffer)return j(this.binaryEncode(a));{let _e=[a.join_ref,a.ref,a.topic,a.event,a.payload];return j(JSON.stringify(_e))}},decode(a,j){if(a.constructor===ArrayBuffer)return j(this.binaryDecode(a));{let[_e,et,tt,nt,rt]=JSON.parse(a);return j({join_ref:_e,ref:et,topic:tt,event:nt,payload:rt})}},binaryEncode(a){let{join_ref:j,ref:_e,event:et,topic:tt,payload:nt}=a,rt=this.META_LENGTH+j.length+_e.length+tt.length+et.length,it=new ArrayBuffer(this.HEADER_LENGTH+rt),ot=new DataView(it),ct=0;ot.setUint8(ct++,this.KINDS.push),ot.setUint8(ct++,j.length),ot.setUint8(ct++,_e.length),ot.setUint8(ct++,tt.length),ot.setUint8(ct++,et.length),Array.from(j,dt=>ot.setUint8(ct++,dt.charCodeAt(0))),Array.from(_e,dt=>ot.setUint8(ct++,dt.charCodeAt(0))),Array.from(tt,dt=>ot.setUint8(ct++,dt.charCodeAt(0))),Array.from(et,dt=>ot.setUint8(ct++,dt.charCodeAt(0)));var ut=new Uint8Array(it.byteLength+nt.byteLength);return ut.set(new Uint8Array(it),0),ut.set(new Uint8Array(nt),it.byteLength),ut.buffer},binaryDecode(a){let j=new DataView(a),_e=j.getUint8(0),et=new TextDecoder;switch(_e){case this.KINDS.push:return this.decodePush(a,j,et);case this.KINDS.reply:return this.decodeReply(a,j,et);case this.KINDS.broadcast:return this.decodeBroadcast(a,j,et)}},decodePush(a,j,_e){let et=j.getUint8(1),tt=j.getUint8(2),nt=j.getUint8(3),rt=this.HEADER_LENGTH+this.META_LENGTH-1,it=_e.decode(a.slice(rt,rt+et));rt=rt+et;let ot=_e.decode(a.slice(rt,rt+tt));rt=rt+tt;let ct=_e.decode(a.slice(rt,rt+nt));rt=rt+nt;let ut=a.slice(rt,a.byteLength);return{join_ref:it,ref:null,topic:ot,event:ct,payload:ut}},decodeReply(a,j,_e){let et=j.getUint8(1),tt=j.getUint8(2),nt=j.getUint8(3),rt=j.getUint8(4),it=this.HEADER_LENGTH+this.META_LENGTH,ot=_e.decode(a.slice(it,it+et));it=it+et;let ct=_e.decode(a.slice(it,it+tt));it=it+tt;let ut=_e.decode(a.slice(it,it+nt));it=it+nt;let dt=_e.decode(a.slice(it,it+rt));it=it+rt;let pt=a.slice(it,a.byteLength),mt={status:dt,response:pt};return{join_ref:ot,ref:ct,topic:ut,event:CHANNEL_EVENTS.reply,payload:mt}},decodeBroadcast(a,j,_e){let et=j.getUint8(1),tt=j.getUint8(2),nt=this.HEADER_LENGTH+2,rt=_e.decode(a.slice(nt,nt+et));nt=nt+et;let it=_e.decode(a.slice(nt,nt+tt));nt=nt+tt;let ot=a.slice(nt,a.byteLength);return{join_ref:null,ref:null,topic:rt,event:it,payload:ot}}},Socket$1=class{constructor(j,_e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=_e.timeout||DEFAULT_TIMEOUT,this.transport=_e.transport||global$1.WebSocket||LongPoll,this.establishedConnections=0,this.defaultEncoder=serializer_default.encode.bind(serializer_default),this.defaultDecoder=serializer_default.decode.bind(serializer_default),this.closeWasClean=!1,this.binaryType=_e.binaryType||"arraybuffer",this.connectClock=1,this.transport!==LongPoll?(this.encode=_e.encode||this.defaultEncoder,this.decode=_e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let et=null;phxWindow&&phxWindow.addEventListener&&(phxWindow.addEventListener("pagehide",tt=>{this.conn&&(this.disconnect(),et=this.connectClock)}),phxWindow.addEventListener("pageshow",tt=>{et===this.connectClock&&(et=null,this.connect())})),this.heartbeatIntervalMs=_e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=tt=>_e.rejoinAfterMs?_e.rejoinAfterMs(tt):[1e3,2e3,5e3][tt-1]||1e4,this.reconnectAfterMs=tt=>_e.reconnectAfterMs?_e.reconnectAfterMs(tt):[10,50,100,150,200,250,500,1e3,2e3][tt-1]||5e3,this.logger=_e.logger||null,this.longpollerTimeout=_e.longpollerTimeout||2e4,this.params=closure(_e.params||{}),this.endPoint=`${j}/${TRANSPORTS.websocket}`,this.vsn=_e.vsn||DEFAULT_VSN,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Timer(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return LongPoll}replaceTransport(j){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=j}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let j=Ajax.appendParams(Ajax.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return j.charAt(0)!=="/"?j:j.charAt(1)==="/"?`${this.protocol()}:${j}`:`${this.protocol()}://${location.host}${j}`}disconnect(j,_e,et){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(j,_e,et)}connect(j){j&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=closure(j)),!this.conn&&(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=_e=>this.onConnError(_e),this.conn.onmessage=_e=>this.onConnMessage(_e),this.conn.onclose=_e=>this.onConnClose(_e))}log(j,_e,et){this.logger(j,_e,et)}hasLogger(){return this.logger!==null}onOpen(j){let _e=this.makeRef();return this.stateChangeCallbacks.open.push([_e,j]),_e}onClose(j){let _e=this.makeRef();return this.stateChangeCallbacks.close.push([_e,j]),_e}onError(j){let _e=this.makeRef();return this.stateChangeCallbacks.error.push([_e,j]),_e}onMessage(j){let _e=this.makeRef();return this.stateChangeCallbacks.message.push([_e,j]),_e}ping(j){if(!this.isConnected())return!1;let _e=this.makeRef(),et=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:_e});let tt=this.onMessage(nt=>{nt.ref===_e&&(this.off([tt]),j(Date.now()-et))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,j])=>j())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),WS_CLOSE_NORMAL,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(j,_e,et){if(!this.conn)return j&&j();this.waitForBufferDone(()=>{this.conn&&(_e?this.conn.close(_e,et||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),j&&j()})})}waitForBufferDone(j,_e=1){if(_e===5||!this.conn||!this.conn.bufferedAmount){j();return}setTimeout(()=>{this.waitForBufferDone(j,_e+1)},150*_e)}waitForSocketClosed(j,_e=1){if(_e===5||!this.conn||this.conn.readyState===SOCKET_STATES.closed){j();return}setTimeout(()=>{this.waitForSocketClosed(j,_e+1)},150*_e)}onConnClose(j){let _e=j&&j.code;this.hasLogger()&&this.log("transport","close",j),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&_e!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,et])=>et(j))}onConnError(j){this.hasLogger()&&this.log("transport",j);let _e=this.transport,et=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,tt])=>{tt(j,_e,et)}),(_e===this.transport||et>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(j=>{j.isErrored()||j.isLeaving()||j.isClosed()||j.trigger(CHANNEL_EVENTS.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case SOCKET_STATES.connecting:return"connecting";case SOCKET_STATES.open:return"open";case SOCKET_STATES.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(j){this.off(j.stateChangeRefs),this.channels=this.channels.filter(_e=>_e.joinRef()!==j.joinRef())}off(j){for(let _e in this.stateChangeCallbacks)this.stateChangeCallbacks[_e]=this.stateChangeCallbacks[_e].filter(([et])=>j.indexOf(et)===-1)}channel(j,_e={}){let et=new Channel(j,_e,this);return this.channels.push(et),et}push(j){if(this.hasLogger()){let{topic:_e,event:et,payload:tt,ref:nt,join_ref:rt}=j;this.log("push",`${_e} ${et} (${rt}, ${nt})`,tt)}this.isConnected()?this.encode(j,_e=>this.conn.send(_e)):this.sendBuffer.push(()=>this.encode(j,_e=>this.conn.send(_e)))}makeRef(){let j=this.ref+1;return j===this.ref?this.ref=0:this.ref=j,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(j=>j()),this.sendBuffer=[])}onConnMessage(j){this.decode(j.data,_e=>{let{topic:et,event:tt,payload:nt,ref:rt,join_ref:it}=_e;rt&&rt===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${nt.status||""} ${et} ${tt} ${rt&&"("+rt+")"||""}`,nt);for(let ot=0;ot<this.channels.length;ot++){const ct=this.channels[ot];ct.isMember(et,tt,nt,it)&&ct.trigger(tt,nt,rt,it)}for(let ot=0;ot<this.stateChangeCallbacks.message.length;ot++){let[,ct]=this.stateChangeCallbacks.message[ot];ct(_e)}})}leaveOpenTopic(j){let _e=this.channels.find(et=>et.topic===j&&(et.isJoined()||et.isJoining()));_e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${j}"`),_e.leave())}},browser$5={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var a=1e3,j=a*60,_e=j*60,et=_e*24,tt=et*7,nt=et*365.25;ms=function(ut,dt){dt=dt||{};var pt=typeof ut;if(pt==="string"&&ut.length>0)return rt(ut);if(pt==="number"&&isFinite(ut))return dt.long?ot(ut):it(ut);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ut))};function rt(ut){if(ut=String(ut),!(ut.length>100)){var dt=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(ut);if(dt){var pt=parseFloat(dt[1]),mt=(dt[2]||"ms").toLowerCase();switch(mt){case"years":case"year":case"yrs":case"yr":case"y":return pt*nt;case"weeks":case"week":case"w":return pt*tt;case"days":case"day":case"d":return pt*et;case"hours":case"hour":case"hrs":case"hr":case"h":return pt*_e;case"minutes":case"minute":case"mins":case"min":case"m":return pt*j;case"seconds":case"second":case"secs":case"sec":case"s":return pt*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return pt;default:return}}}}function it(ut){var dt=Math.abs(ut);return dt>=et?Math.round(ut/et)+"d":dt>=_e?Math.round(ut/_e)+"h":dt>=j?Math.round(ut/j)+"m":dt>=a?Math.round(ut/a)+"s":ut+"ms"}function ot(ut){var dt=Math.abs(ut);return dt>=et?ct(ut,dt,et,"day"):dt>=_e?ct(ut,dt,_e,"hour"):dt>=j?ct(ut,dt,j,"minute"):dt>=a?ct(ut,dt,a,"second"):ut+" ms"}function ct(ut,dt,pt,mt){var vt=dt>=pt*1.5;return Math.round(ut/pt)+" "+mt+(vt?"s":"")}return ms}function setup(a){_e.debug=_e,_e.default=_e,_e.coerce=ot,_e.disable=nt,_e.enable=tt,_e.enabled=rt,_e.humanize=requireMs(),_e.destroy=ct,Object.keys(a).forEach(ut=>{_e[ut]=a[ut]}),_e.names=[],_e.skips=[],_e.formatters={};function j(ut){let dt=0;for(let pt=0;pt<ut.length;pt++)dt=(dt<<5)-dt+ut.charCodeAt(pt),dt|=0;return _e.colors[Math.abs(dt)%_e.colors.length]}_e.selectColor=j;function _e(ut){let dt,pt=null,mt,vt;function Et(...Rt){if(!Et.enabled)return;const xt=Et,Pt=Number(new Date),Dt=Pt-(dt||Pt);xt.diff=Dt,xt.prev=dt,xt.curr=Pt,dt=Pt,Rt[0]=_e.coerce(Rt[0]),typeof Rt[0]!="string"&&Rt.unshift("%O");let Ft=0;Rt[0]=Rt[0].replace(/%([a-zA-Z%])/g,(Nt,Vt)=>{if(Nt==="%%")return"%";Ft++;const nn=_e.formatters[Vt];if(typeof nn=="function"){const fn=Rt[Ft];Nt=nn.call(xt,fn),Rt.splice(Ft,1),Ft--}return Nt}),_e.formatArgs.call(xt,Rt),(xt.log||_e.log).apply(xt,Rt)}return Et.namespace=ut,Et.useColors=_e.useColors(),Et.color=_e.selectColor(ut),Et.extend=et,Et.destroy=_e.destroy,Object.defineProperty(Et,"enabled",{enumerable:!0,configurable:!1,get:()=>pt!==null?pt:(mt!==_e.namespaces&&(mt=_e.namespaces,vt=_e.enabled(ut)),vt),set:Rt=>{pt=Rt}}),typeof _e.init=="function"&&_e.init(Et),Et}function et(ut,dt){const pt=_e(this.namespace+(typeof dt>"u"?":":dt)+ut);return pt.log=this.log,pt}function tt(ut){_e.save(ut),_e.namespaces=ut,_e.names=[],_e.skips=[];let dt;const pt=(typeof ut=="string"?ut:"").split(/[\s,]+/),mt=pt.length;for(dt=0;dt<mt;dt++)pt[dt]&&(ut=pt[dt].replace(/\*/g,".*?"),ut[0]==="-"?_e.skips.push(new RegExp("^"+ut.slice(1)+"$")):_e.names.push(new RegExp("^"+ut+"$")))}function nt(){const ut=[..._e.names.map(it),..._e.skips.map(it).map(dt=>"-"+dt)].join(",");return _e.enable(""),ut}function rt(ut){if(ut[ut.length-1]==="*")return!0;let dt,pt;for(dt=0,pt=_e.skips.length;dt<pt;dt++)if(_e.skips[dt].test(ut))return!1;for(dt=0,pt=_e.names.length;dt<pt;dt++)if(_e.names[dt].test(ut))return!0;return!1}function it(ut){return ut.toString().substring(2,ut.toString().length-2).replace(/\.\*\?$/,"*")}function ot(ut){return ut instanceof Error?ut.stack||ut.message:ut}function ct(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return _e.enable(_e.load()),_e}var common$1=setup;(function(a,j){var _e={};j.formatArgs=tt,j.save=nt,j.load=rt,j.useColors=et,j.storage=it(),j.destroy=(()=>{let ct=!1;return()=>{ct||(ct=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),j.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function et(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let ct;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(ct=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(ct[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function tt(ct){if(ct[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+ct[0]+(this.useColors?"%c ":" ")+"+"+a.exports.humanize(this.diff),!this.useColors)return;const ut="color: "+this.color;ct.splice(1,0,ut,"color: inherit");let dt=0,pt=0;ct[0].replace(/%[a-zA-Z%]/g,mt=>{mt!=="%%"&&(dt++,mt==="%c"&&(pt=dt))}),ct.splice(pt,0,ut)}j.log=console.debug||console.log||(()=>{});function nt(ct){try{ct?j.storage.setItem("debug",ct):j.storage.removeItem("debug")}catch{}}function rt(){let ct;try{ct=j.storage.getItem("debug")}catch{}return!ct&&typeof process$1$1<"u"&&"env"in process$1$1&&(ct=_e.DEBUG),ct}function it(){try{return localStorage}catch{}}a.exports=common$1(j);const{formatters:ot}=a.exports;ot.j=function(ct){try{return JSON.stringify(ct)}catch(ut){return"[UnexpectedJSONParseError]: "+ut.message}}})(browser$5,browser$5.exports);var browserExports=browser$5.exports;const debug$4=browserExports;var logger=(a,j=!1)=>{const _e=debug$4(["@arcblock/ws",a].join(":"));return{debug:_e,warn:_e,info:_e,trace:j?_e:console.error,error:j?_e:console.error}};const createLogger=logger;var base$2=(a,j,_e)=>class extends a{constructor(tt,nt={}){super(tt,{transport:_e,...nt}),this._logger=createLogger("client",nt.silent),this.emitter=new j,this.onOpen(()=>{this._logger.debug("socket open",tt)}),this.onClose(()=>{this._logger.debug("socket close",tt)}),this.onError(rt=>{this._logger.error("socket error",rt.error)}),this.onMessage(rt=>{this._logger.debug("socket message",rt)})}on(tt,nt,rt={}){this.ensureJoinChannel(tt,rt),this.emitter.on(tt,nt)}off(tt,nt){nt?this.emitter.off(tt,nt):this.emitter.removeAllListeners(tt),this.ensureLeaveChannel(tt)}disconnect(tt,nt,rt){this.emitter.eventNames().forEach(it=>{this.emitter.removeAllListeners(it)}),super.disconnect(tt,nt,rt)}ensureJoinChannel(tt,nt={}){if(this.emitter.listenerCount(tt)>0)return;const it=this.channel(tt,nt);it.join().receive("ok",ot=>{this._logger.debug("join success",{topic:tt,message:ot})}).receive("error",ot=>{this._logger.error("join error",{topic:tt,error:ot})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:tt})}),it.on(tt,({status:ot,response:ct})=>{ot==="ok"?this.emitter.emit(tt,ct):this._logger.debug("response error",{topic:tt,status:ot,data:ct})})}ensureLeaveChannel(tt){if(this.emitter.listenerCount(tt)>0)return;const rt=this.channels.find(it=>it.topic===tt);rt&&(this.remove(rt),rt.leave().receive("ok",it=>{this._logger.debug("leave success",{topic:tt,message:it})}).receive("error",it=>{this._logger.error("leave error",{topic:tt,err:it})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:tt})}),rt.off(tt))}subscribe(tt,nt={}){let rt=this.channels.find(it=>it.topic===tt);return rt||(rt=this.channel(tt,nt),rt.join().receive("ok",it=>{this._logger.debug("join success",{topic:tt,message:it})}).receive("error",it=>{this._logger.error("join error",{topic:tt,error:it})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:tt})}),rt)}unsubscribe(tt){this.ensureLeaveChannel(tt)}};const EventEmitter$3=eventemitter3Exports$1,{Socket}=phoenix_cjs,createClient=base$2;var browser$4=createClient(Socket,EventEmitter$3);const WsClient$1=browser$4;var browser$3={WsClient:WsClient$1};function usePageShow(a){const j=reactExports.useRef(a);reactExports.useEffect(()=>{j.current=a},[a]),reactExports.useEffect(()=>{const _e=et=>{!document.hidden&&j.current&&j.current(et)};return document.addEventListener("visibilitychange",_e),()=>{document.removeEventListener("visibilitychange",_e)}},[])}function getSocketHost(a){const j=a||window.location.href;return new URL(j).host}function getExtraHeaders(a){const j={},_e=a||window.location.href;if(_e){const{hostname:et,protocol:tt,port:nt}=new URL(_e);j["x-real-hostname"]=et,j["x-real-port"]=nt,j["x-real-protocol"]=tt.endsWith(":")?tt.substring(0,tt.length-1):tt}return j}const fns={};function createTokenFn({action:a,prefix:j,checkFn:_e,extraParams:et,baseUrl:tt}){const nt=`${j}/token?${stringifyQuery$1(et)}`;return fns[nt]||(fns[nt]=async function(){var dt,pt;const it=+new Date,ot=await _e(nt,{headers:getExtraHeaders(tt)}),ct=+new Date;if(ct-it<500&&await sleep$1(500-(ct-it)),(dt=ot==null?void 0:ot.data)!=null&&dt.token)return ot.data;if((pt=ot==null?void 0:ot.data)!=null&&pt.error)throw new Error(ot.data.error);const ut=isUrl(j)?j:`${tt}${j}`;throw new Error(`Error generating ${a} qrcode from: ${ut}`)}),fns[nt]}const parseExistingSession=()=>{try{const j=new URL(window.location.href).searchParams.get("__connect_url__");if(!j)return null;const _e=decodeConnectUrl(j);return{token:parseTokenFromConnectUrl(_e),url:_e}}catch(a){return{error:a}}},getAppId=()=>get$6(globalThis,"blocklet.appPid")||get$6(globalThis,"blocklet.appId")||get$6(globalThis,"env.appId")||"",getAppPrefix=()=>(get$6(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(RELAY_SOCKET_PREFIX,""),getRelayChannel=a=>`relay:${getAppId()}:${a}`,getRelayProtocol=()=>window.location.protocol==="https:"?"wss:":"ws:",isSameOrigin=a=>!a||new URL(a).origin===window.location.origin,isSessionEnded=a=>["succeed","error","timeout","busy"].includes(a);function useToken({action:a,checkFn:j,checkInterval:_e,checkTimeout:et,extraParams:tt,locale:nt,prefix:rt,tokenKey:it,encKey:ot,onError:ct,onSuccess:ut,baseUrl:dt,autoConnect:pt=!0,forceConnected:mt=!0,saveConnect:vt=!0,useSocket:Et=!0,provider:Rt="wallet"}){const xt=useReactive({checking:!1,loading:!1,token:"",url:"",store:null,status:"created",error:"",checkCount:0,mfaCode:0,appInfo:null,memberAppInfo:null,connectedDid:"",saveConnect:!1,inExistingSession:!1,nextWorkflow:"",baseUrl:dt,prefix:`${rt}/${a}`,extraParams:omitBy$1(tt,isNil$1),checkFn:j,results:{},action:a,provider:Rt}),Pt=reactExports.useRef(null),Dt=translations$3[nt]||translations$3.en,Ft=useCreation(()=>parseExistingSession(),[]),zt=Math.ceil(et/_e),Nt=useReactive({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:Vt,decrypt:nn}=useSecurity(),fn=useBrowser(),hn=getVisitorId$2(),Qt=reactExports.useRef(null),Mt=reactExports.useRef(null),wt={...xt.extraParams,locale:nt,[it]:xt.token||(Ft==null?void 0:Ft.token),provider:xt.provider},ft=async()=>{if(!(Ft!=null&&Ft.token&&(Ft==null?void 0:Ft.token)===xt.token)){try{wt[it]&&xt.status==="created"&&await xt.checkFn(`${xt.prefix}/timeout?${stringifyQuery$1(wt)}`,{headers:getExtraHeaders(xt.baseUrl)})}catch{}try{xt.token&&Mt.current&&(await Qt.current.unsubscribe(getRelayChannel(xt.token)),Mt.current=null)}catch{}}},ht=useMemoizedFn((...bt)=>{const Lt={[ot]:Vt,...xt.extraParams,locale:nt,forceConnected:mt,autoConnect:pt&&!fn.wallet&&!Nt.cancelWhenScannedCounter&&["ios","android"].includes(Cookie.get("connected_wallet_os")),provider:xt.provider};hn&&(Lt.visitorId=hn);const sn=omit$1(Pt.current||{},["sourceAppPid","verbose"]);return Object.keys(sn).forEach(Zt=>{(!Lt[Zt]||Zt===ot&&sn[Zt])&&(Lt[Zt]=sn[Zt])}),Ft!=null&&Ft.token&&!Lt.sourceToken&&(Lt.sourceToken=Ft==null?void 0:Ft.token),createTokenFn({action:a,prefix:xt.prefix,baseUrl:xt.baseUrl,checkFn:xt.checkFn,extraParams:Lt})(...bt)}),$t=useMemoizedFn(async(bt=!0)=>{bt&&ft();try{xt.loading=!0,xt.token="",xt.url="",xt.store=null,xt.extraParams=omitBy$1(tt,isNil$1),await sleep$1();const Lt=await ht(),sn=Lt.extra||{};xt.loading=!1,xt.token=Lt.token,xt.url=Lt.url,xt.status="created",xt.error="",xt.checkCount=0,xt.appInfo=Lt.appInfo,xt.memberAppInfo=Lt.memberAppInfo,xt.connectedDid=sn.connectedDid,xt.saveConnect=sn.saveConnect}catch(Lt){xt.loading=!1,xt.status="error",xt.error=`${Dt.generateError}: ${Lt.message}`}}),Tt=()=>{Nt.cancelWhenScannedCounter++};reactExports.useEffect(()=>{Nt.cancelWhenScannedCounter>0&&(tt.nw?ct(new Error(Dt.retryForbidden)):$t())},[Nt.cancelWhenScannedCounter]),reactExports.useEffect(()=>(Et&&isSameOrigin(xt.baseUrl)&&getAppId()?(!Qt.current||Qt.current.isConnected()===!1||Qt.current.baseUrl!==xt.baseUrl)&&(Qt.current=new browser$3.WsClient(`${getRelayProtocol()}//${getSocketHost(xt.baseUrl)}${getAppPrefix()}${RELAY_SOCKET_PREFIX}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),Qt.current.baseUrl=xt.baseUrl,Qt.current.onOpen(()=>{Nt.isSocketAvailable=!0}),Qt.current.connect()):Nt.isSocketAvailable&&(Nt.isSocketAvailable=!1),()=>{Qt.current&&(Qt.current.disconnect(),Qt.current=null)}),[xt.baseUrl]);const At=()=>!xt.token||xt.loading||isSessionEnded(xt.status)?null:_e,kt=reactExports.useRef(null);reactExports.useEffect(()=>{kt.current={state:xt,params:wt}}),reactExports.useEffect(()=>()=>{const{state:bt,params:Lt}=kt.current;bt.status==="created"&&Lt[it]&&bt.checkFn(`${bt.prefix}/timeout?${stringifyQuery$1(Lt)}`,{headers:getExtraHeaders(bt.baseUrl)})},[]);const Ct=async(bt=!1)=>{var Lt;if(xt.checking||(xt.status==="created"&&xt.checkCount++,Nt.isSocketAvailable&&!bt))return null;try{xt.checking=!0;const sn=await xt.checkFn(`${xt.prefix}/status?${stringifyQuery$1(wt)}`,{headers:getExtraHeaders(xt.baseUrl)}),{status:Ut,error:Zt,mfaCode:Gt=0}=sn.data;if(xt.store=sn.data,xt.mfaCode=Gt,xt.checking=!1,xt.status=Ut,Ut==="error"&&Zt){const Yt=new Error(Zt);throw Yt.response=sn,Yt}return sn.data}catch(sn){const{response:Ut}=sn;if(Ut!=null&&Ut.status){wt[it]&&xt.checkFn(`${xt.prefix}/timeout?${stringifyQuery$1(wt)}`,{headers:getExtraHeaders(xt.baseUrl)});const Zt=(Lt=Ut==null?void 0:Ut.data)!=null&&Lt.error?Ut.data.error:sn.message,Gt=new Error(Zt);Gt.code=Ut.status,xt.status="error",xt.checking=!1,xt.error=Zt,ct(Gt,xt==null?void 0:xt.store,nn)}else xt.status="error",xt.checking=!1,xt.error=Dt.generateError}return null},It=async()=>{try{if(Ft.error)throw Ft.error;xt.loading=!0,xt.token=Ft.token,xt.url=Ft.url,xt.inExistingSession=!0;let bt=await Ct();if((["scanned"].includes(bt==null?void 0:bt.status)||(bt==null?void 0:bt.sourceToken)===(Ft==null?void 0:Ft.token))&&(await $t(!1),bt=await Ct()),Pt.current=(bt==null?void 0:bt.extraParams)||null,bt!=null&&bt.status&&!["created"].includes(bt==null?void 0:bt.status))throw new Error(`${Dt.invalidSessionStatus} [${bt.status}]`)}catch(bt){xt.status="error",xt.error=bt.message,ct(bt,xt==null?void 0:xt.store,nn)}finally{xt.loading=!1}};return reactExports.useEffect(()=>{var bt;if(!xt.token&&!xt.store&&!xt.loading&&!xt.error)if(Ft)It();else{$t(!1);return}if(xt.status!=="timeout"&&xt.checkCount>zt){xt.status="timeout",ft();return}if(xt.status==="succeed"&&!Nt.onSuccessCalled){const Lt=getConnectedInfo({...xt.store,appInfo:xt.appInfo,memberAppInfo:xt.memberAppInfo});if(isSameOrigin(xt.baseUrl)&&vt&&xt.saveConnect&&xt.store.did&&updateConnectedInfo(Lt,!0),xt.store){const{nextWorkflow:sn}=xt.store;if(sn)try{const Ut=parseNextWorkflow(sn,it);xt.nextWorkflow=(Ut==null?void 0:Ut.nextWorkflow)||sn,Object.assign(xt,Ut),xt.store=null,xt.error="",xt.url="",xt.appInfo=null,xt.memberAppInfo=null,xt.checkCount=0,xt.status="scanned",xt.results={...xt.results,[xt.token]:xt.store},xt.checkFn=createAxios({baseURL:Ut.baseUrl,timeout:8e3}).get,Ct()}catch(Ut){console.error(`Invalid nextWorkflow: ${sn}`,Ut),xt.status="error",xt.error=`Invalid nextWorkflow: ${sn}: ${Ut.message}`}else if(xt.nextWorkflow&&(xt.nextWorkflow="",xt.url=""),typeof ut=="function"){const Ut=Object.values({...xt.results,[xt.token]:xt.store});Nt.onSuccessCalled=!0;const Zt=Ut.length>1?Ut:Ut[0],Gt=cloneDeep$1(Zt);ut(Gt,nn,{sourceAppPid:tt==null?void 0:tt.sourceAppPid,...Lt})}}return}if((bt=xt.store)!=null&&bt.nextWorkflow){const{nextWorkflow:Lt}=xt.store;try{const sn=parseNextWorkflow(Lt,it);xt.nextWorkflow=(sn==null?void 0:sn.nextWorkflow)||Lt,Object.assign(xt,sn),xt.store=null,xt.error="",xt.url="",xt.appInfo=null,xt.memberAppInfo=null,xt.checkCount=0,xt.status="scanned",xt.results={...xt.results,[xt.token]:xt.store},xt.checkFn=createAxios({baseURL:sn.baseUrl,timeout:8e3}).get,Ct()}catch(sn){console.error(`Invalid nextWorkflow: ${Lt}`,sn),xt.status="error",xt.error=`Invalid nextWorkflow: ${Lt}: ${sn.message}`}}}),reactExports.useEffect(()=>{if(xt.token&&Nt.isSocketAvailable&&Qt.current){let bt=!1;Mt.current?Mt.current.token!==xt.token&&(Qt.current.unsubscribe(getRelayChannel(Mt.current.token)),bt=!0):bt=!0,bt&&(Mt.current=Qt.current.subscribe(getRelayChannel(xt.token)),Mt.current.token=xt.token,Mt.current.on("updated",({response:Lt})=>{let{status:sn,error:Ut}=Lt;sn==="forbidden"&&(Ut=Dt.forbidden,sn="error"),xt.status=sn,xt.mfaCode=Lt.mfaCode||0,xt.store=Lt,xt.error=Ut,Ut&&ct(new Error(Ut),xt==null?void 0:xt.store,nn)}))}},[xt.token,Nt.isSocketAvailable,Qt.current]),useInterval(Ct,At()),usePageShow(()=>{Nt.isSocketAvailable&&xt.token&&isSessionEnded(xt.status)===!1&&Ct(!0)}),{state:xt,generate:$t,cancelWhenScanned:Tt}}var lib$5={},dsbridge={};Object.defineProperty(dsbridge,"__esModule",{value:!0});dsbridge.default=void 0;var bridge={call:function a(j,_e,et){var tt="";typeof _e=="function"&&(et=_e,_e={});var nt={data:_e===void 0?null:_e};if(typeof et=="function"){var rt="dscb"+window.dscb++;window[rt]=et,nt._dscbstub=rt}return nt=JSON.stringify(nt),window._dsbridge?tt=_dsbridge.call(j,nt):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(tt=prompt("_dsbridge="+j,nt)),JSON.parse(tt||"{}").data},register:function a(j,_e,et){var tt=et?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){bridge.call("_dsb.dsinit")},0)),typeof _e=="object"?tt._obs[j]=_e:tt[j]=_e},registerAsyn:function a(j,_e){this.register(j,_e,!0)},hasNativeMethod:function a(j,_e){return this.call("_dsb.hasNativeMethod",{name:j,type:_e||"all"})},disableJavascriptDialogBlock:function a(j){this.call("_dsb.disableJavascriptDialogBlock",{disable:j!==!1})}};(function(){if(!(window._dsbridge||window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)||window._dsf)return;const a=window.close;var j={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:bridge,close:function(){bridge.call("_dsb.closePage"),a()},_handleMessageFromNative:function(tt){var nt=JSON.parse(tt.data),rt={id:tt.callbackId,complete:!0},it=this._dsf[tt.method],ot=this._dsaf[tt.method],ct=function(Pt,Dt){rt.data=Pt.apply(Dt,nt),bridge.call("_dsb.returnValue",rt)},ut=function(Pt,Dt){nt.push(function(Ft,zt){rt.data=Ft,rt.complete=zt!==!1,bridge.call("_dsb.returnValue",rt)}),Pt.apply(Dt,nt)};if(it)ct(it,this._dsf);else if(ot)ut(ot,this._dsaf);else{var dt=tt.method.split(".");if(dt.length<2)return;var pt=dt.pop(),mt=dt.join("."),vt=this._dsf._obs,Et=vt[mt]||{},Rt=Et[pt];if(Rt&&typeof Rt=="function"){ct(Rt,Et);return}if(vt=this._dsaf._obs,Et=vt[mt]||{},Rt=Et[pt],Rt&&typeof Rt=="function"){ut(Rt,Et);return}}}};for(var _e in j)window[_e]=j[_e];bridge.register("_hasJavascriptMethod",function(et,tt){var nt=et.split(".");if(nt.length<2)return!!(_dsf[nt]||_dsaf[nt]);var et=nt.pop(),rt=nt.join("."),it=_dsf._obs[rt]||_dsaf._obs[rt];return it&&!!it[et]})})();dsbridge.default=bridge;Object.defineProperty(lib$5,"__esModule",{value:!0});var default_1$3=lib$5.default=void 0,_dsbridge$1=_interopRequireDefault$3(dsbridge);function _interopRequireDefault$3(a){return a&&a.__esModule?a:{default:a}}default_1$3=lib$5.default={call(){_dsbridge$1.default.call(...arguments)},asyncCall(){for(var a=arguments.length,j=new Array(a),_e=0;_e<a;_e++)j[_e]=arguments[_e];return new Promise((et,tt)=>{_dsbridge$1.default.call(...j,nt=>{try{const rt=JSON.parse(nt);if(rt.code===0){const it=JSON.parse(rt.data);et(it)}else tt(new Error(rt.error))}catch{et(nt)}})})},shareMessage(a){const{content:j,imgUrl:_e,success:et,fail:tt}=a;if(!j&&!_e){tt("params error");return}_dsbridge$1.default.call("arcShare",JSON.stringify({content:j,imgUrl:_e}),nt=>{const rt=JSON.parse(nt);rt&&rt.code===0?typeof et=="function"&&et(nt):typeof tt=="function"&&tt(nt)})},showLoading(){_dsbridge$1.default.call("arcShowLoading")},hideLoading(){_dsbridge$1.default.call("arcHideLoading")},showToast(a){a&&typeof a=="string"&&_dsbridge$1.default.call("arcToast",a)},chooseImgs(a){const{limit:j,success:_e,fail:et}=a;_dsbridge$1.default.call("arcChooseImgs",JSON.stringify({limit:j}),tt=>{const nt=JSON.parse(tt);nt&&nt.code===0?typeof _e=="function"&&_e(tt):typeof et=="function"&&et(tt)})},previewImgs(a){const{imgs:j}=a;!j||j.length===0||_dsbridge$1.default.call("arcPreviewImgs",JSON.stringify(a))},isSetPWD(a){const{success:j,fail:_e}=a;_dsbridge$1.default.call("arcIsSetPWD","",et=>{const tt=JSON.parse(et);tt&&tt.code===0?typeof j=="function"&&j(et):typeof _e=="function"&&_e(et)})},isCodeABOk(a){const{success:j,fail:_e}=a;_dsbridge$1.default.call("arcIsCodeABOk","",et=>{const tt=JSON.parse(et);tt&&tt.code===0?typeof j=="function"&&j(et):typeof _e=="function"&&_e(et)})}};function WebviewLoginItem({tokenState:a,locale:j,tokenKey:_e}){const{t:et,isWalletWebview:tt,connectState:nt}=useStateContext(),rt=et(tt?"openDidConnect":"openInWallet"),it=useCreation(()=>{if(!a.url)return"";const ut=new URL(window.location.href);ut.searchParams.set("tokenKey",a.token);const dt=new URL(a.url);return dt.searchParams.set("callback",encodeURIComponent(ut)),dt.searchParams.set("callback_delay",1500),dt.searchParams.set("locale",j),dt.href.replace(/^https?:\/\//,"abt://")},[_e,a.token]),ot=useMemoizedFn(()=>{default_1$3.call("authAction",{action:"auth",deepLink:it})}),ct={};return tt||(ct.component="a",ct.href=it),useMount(()=>{nt.autoActiveWebview&&it&&(nt.autoActiveWebview=!1,ot())}),jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:colors$1.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...ct,onClick:tt?ot:noop$7,children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(default_1$4,{width:"24px",height:"24px"}),jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"14px",fontWeight:500},children:rt})]}),jsxRuntimeExports.jsx(Icon,{icon:data$o,fontSize:"1.3rem",color:colors$1.primaryBase})]})}WebviewLoginItem.propTypes={tokenState:PropTypes.object.isRequired,locale:PropTypes.string,tokenKey:PropTypes.string};WebviewLoginItem.defaultProps={locale:"en",tokenKey:"_t_"};const data$b={width:24,height:24,body:'<path fill="currentColor" d="M12 20q-3.35 0-5.675-2.325T4 12q0-3.35 2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.713T19 4q.425 0 .713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.713-.288T13 10q0-.425.288-.713T14 9h3.2q-.8-1.4-2.188-2.2T12 6Q9.5 6 7.75 7.75T6 12q0 2.5 1.75 4.25T12 18q1.7 0 3.113-.863t2.187-2.312q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20Z"/>'};function RefreshOverlay({onRefresh:a,...j}){const _e=et=>{et.stopPropagation(),a()};return jsxRuntimeExports.jsx(Box,{...j,onClick:_e,sx:{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(255, 255, 255, 0.75)",cursor:"pointer",...j.sx},children:jsxRuntimeExports.jsx(Box,{sx:{backgroundColor:colors$1.foregroundsFgInteractive,borderRadius:"100%",fontSize:0},children:jsxRuntimeExports.jsx(Icon,{icon:data$b,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})})})}RefreshOverlay.propTypes={onRefresh:PropTypes.func.isRequired};const busyStatusList=["scanned","succeed","error","busy"];function DIDWalletConnect({onSuccess:a,onError:j,action:_e,prefix:et,checkFn:tt,checkInterval:nt,checkTimeout:rt,locale:it,tokenKey:ot,encKey:ct,baseUrl:ut,autoConnect:dt,forceConnected:pt,saveConnect:mt,useSocket:vt,allowWallet:Et,provider:Rt,webWalletUrl:xt,onRecreateSession:Pt,onClose:Dt,messages:Ft,enabledConnectTypes:zt}){var dn,$n,wn;if(typeof tt!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const Nt=reactExports.useContext(SessionContext$1),{connectState:Vt,extraParams:nn,staticState:fn,changeStatus:hn,isWalletWebview:Qt,matchSmallScreen:Mt,t:wt}=useStateContext(),ft=useBrowser(),ht=detectWalletExtension(),{setBaseUrl:$t,oauthState:Tt,getOAuthConfigList:At}=useOAuth(),kt=useCreation(()=>{var Sn;return Rt||(nn==null?void 0:nn.provider)||((Sn=Nt==null?void 0:Nt.session)==null?void 0:Sn.provider)||"wallet"},[nn==null?void 0:nn.provider,(dn=Nt==null?void 0:Nt.session)==null?void 0:dn.provider]);reactExports.useEffect(()=>{$t(ut)},[ut]);const{state:Ct,generate:It,cancelWhenScanned:bt}=useToken({action:_e,baseUrl:ut,checkFn:tt,checkInterval:nt,checkTimeout:rt,extraParams:nn,prefix:et,onError:j,onSuccess:a,locale:it,tokenKey:ot,encKey:ct,autoConnect:dt,forceConnected:pt,saveConnect:mt,useSocket:vt,allowWallet:Et,provider:kt}),[Lt,sn]=reactExports.useState([]);useAsyncEffect(async()=>{const Sn=await At({sourceAppPid:Vt==null?void 0:Vt.sourceAppPid});sn(Sn)},[Vt==null?void 0:Vt.sourceAppPid]);const Ut=usePrevious(Vt==null?void 0:Vt.sourceAppPid);useUpdateEffect(()=>{isUndefined$2(Ut)||It()},[Vt==null?void 0:Vt.sourceAppPid]);const Zt=useCreation(()=>busyStatusList.includes(Tt.status)||busyStatusList.includes(Ct.status),[Ct.status,Tt.status]);reactExports.useEffect(()=>{busyStatusList.includes(Tt.status)?hn(Tt.status):busyStatusList.includes(Ct.status)?hn(Ct.status):hn("created")},[hn,Ct.status,Tt.status]);const Gt=useMemoizedFn(()=>{Pt(),Tt.reset(),It(!1)}),Yt=useMemoizedFn(()=>{Pt(),fn.current.cancelCount++,bt()}),cn=useCreation(()=>({confirm:Ft.confirm,success:Ft.success,error:Ct.error||Tt.error||""}),[Ft.confirm,Ft.success,Ct.error,Tt.error]),En=useCreation(()=>Et&&zt.includes("mobile")&&!Qt,[Et,zt,Qt]),Ht=checkSameProtocol(xt),Ot=useCreation(()=>Et&&zt.includes("web")&&(Ht||ht)&&(!ft.mobile.any||ht),[Et,zt,($n=ft==null?void 0:ft.mobile)==null?void 0:$n.any]),Kt=useCreation(()=>Et&&zt.includes("mobile")&&ft.mobile.any&&!ht,[Et,zt,(wn=ft==null?void 0:ft.mobile)==null?void 0:wn.any]),Xt=useCreation(()=>{const Sn=intersection$1(Object.keys(OAUTH_PROVIDER),zt);return Lt.filter(qn=>Sn.includes(qn.provider))},[Lt,zt]),an=useCreation(()=>Xt.length>0&&["login","invite"].includes(Ct.action),[Xt]),_n=useCreation(()=>{const Sn=En||Ot||Kt;let qn=null;return an&&(qn=Sn?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Divider,{sx:{color:colors$1.textMuted,width:Mt?"200px":"368px",opacity:.6,maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:colors$1.lineStep}},children:"OR"}),jsxRuntimeExports.jsx(OAuthLogin,{providerList:Xt,onSuccess:a,onError:j,tokenState:Ct,locale:it,type:"list"})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{mt:1,textAlign:"center",color:colors$1.foregroundsFgSubtile},children:wt("loginWithBelow")}),jsxRuntimeExports.jsx(OAuthLogin,{providerList:Xt,onSuccess:a,onError:j,tokenState:Ct,type:"list",locale:it})]})),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Ct.status==="timeout"?jsxRuntimeExports.jsx(RefreshOverlay,{onRefresh:Gt,sx:{zIndex:1,animation:"fadeIn 1s","@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}}}):null,jsxRuntimeExports.jsx(Box,{"data-did-auth-url":Ct.url,sx:{display:"none"}}),Kt&&jsxRuntimeExports.jsx(WebviewLoginItem,{tokenState:Ct,locale:it,tokenKey:ot}),En&&jsxRuntimeExports.jsx(MobileLoginItem,{tokenState:Ct,messages:Ft,locale:it}),Ot&&jsxRuntimeExports.jsx(WebLoginItem,{tokenState:Ct,webWalletUrl:xt,locale:it}),qn]})},[Ct,Ct.url,Ct.status,En,Ot,Kt,Xt,an,an,a,j,it,ot,Ft,xt]);return useCreation(()=>Ct.loading||Tt.loading||!Ct.token&&!Ct.error,[Ct.loading,Tt.loading])?jsxRuntimeExports.jsx(Loading,{}):Zt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{"data-did-auth-url":Ct.url,sx:{display:"none"}}),jsxRuntimeExports.jsx(ConnectStatus,{status:Tt.status||Ct.status,nextWorkflow:Ct.nextWorkflow,mfaCode:Ct.mfaCode,onCancel:Yt,onRetry:Gt,onClose:Dt,messages:cn,locale:it,className:"auth-status"})]}):_n}DIDWalletConnect.propTypes={onError:PropTypes.func,onSuccess:PropTypes.func.isRequired,action:PropTypes.string.isRequired,checkFn:PropTypes.func.isRequired,prefix:PropTypes.string,checkInterval:PropTypes.number,checkTimeout:PropTypes.number,locale:PropTypes.oneOf(["en","zh",""]),tokenKey:PropTypes.string,encKey:PropTypes.string,baseUrl:PropTypes.string,autoConnect:PropTypes.bool,forceConnected:PropTypes.oneOfType([PropTypes.bool,PropTypes.string]),saveConnect:PropTypes.bool,useSocket:PropTypes.bool,allowWallet:PropTypes.bool,provider:PropTypes.oneOf([LOGIN_PROVIDER$1.WALLET,...Object.keys(OAUTH_PROVIDER),""]),webWalletUrl:PropTypes.string,onRecreateSession:PropTypes.func,onClose:PropTypes.func,messages:PropTypes.object,enabledConnectTypes:PropTypes.arrayOf(PropTypes.oneOf(["web","mobile",...Object.keys(OAUTH_PROVIDER)]))};DIDWalletConnect.defaultProps={prefix:API_DID_PREFIX,onError:noop$7,checkInterval:2*1e3,checkTimeout:DEFAULT_TIMEOUT$1*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:getWebWalletUrl$1(),onRecreateSession:noop$7,onClose:noop$7,messages:{},enabledConnectTypes:["web","mobile",...Object.keys(OAUTH_PROVIDER)]};var Set$1=_Set,noop=noop_1,setToArray$1=_setToArray,INFINITY$2=1/0,createSet$1=Set$1&&1/setToArray$1(new Set$1([,-0]))[1]==INFINITY$2?function(a){return new Set$1(a)}:noop,_createSet=createSet$1,SetCache=_SetCache,arrayIncludes$1=_arrayIncludes,arrayIncludesWith=_arrayIncludesWith,cacheHas=_cacheHas,createSet=_createSet,setToArray=_setToArray,LARGE_ARRAY_SIZE=200;function baseUniq$2(a,j,_e){var et=-1,tt=arrayIncludes$1,nt=a.length,rt=!0,it=[],ot=it;if(_e)rt=!1,tt=arrayIncludesWith;else if(nt>=LARGE_ARRAY_SIZE){var ct=j?null:createSet(a);if(ct)return setToArray(ct);rt=!1,tt=cacheHas,ot=new SetCache}else ot=j?[]:it;e:for(;++et<nt;){var ut=a[et],dt=j?j(ut):ut;if(ut=_e||ut!==0?ut:0,rt&&dt===dt){for(var pt=ot.length;pt--;)if(ot[pt]===dt)continue e;j&&ot.push(dt),it.push(ut)}else tt(ot,dt,_e)||(ot!==it&&ot.push(dt),it.push(ut))}return it}var _baseUniq=baseUniq$2,baseFlatten$1=_baseFlatten,baseIteratee$1=_baseIteratee,baseRest$1=_baseRest,baseUniq$1=_baseUniq,isArrayLikeObject=isArrayLikeObject_1,last=last_1,unionBy=baseRest$1(function(a){var j=last(a);return isArrayLikeObject(j)&&(j=void 0),baseUniq$1(baseFlatten$1(a,1,isArrayLikeObject,!0),baseIteratee$1(j))}),unionBy_1=unionBy;const unionBy$1=getDefaultExportFromCjs$1(unionBy_1);var baseFor=_baseFor,keys$1=keys_1;function baseForOwn$1(a,j){return a&&baseFor(a,j,keys$1)}var _baseForOwn=baseForOwn$1,isArrayLike$1=isArrayLike_1;function createBaseEach$1(a,j){return function(_e,et){if(_e==null)return _e;if(!isArrayLike$1(_e))return a(_e,et);for(var tt=_e.length,nt=j?tt:-1,rt=Object(_e);(j?nt--:++nt<tt)&&et(rt[nt],nt,rt)!==!1;);return _e}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1,baseEach=_baseEach,isArrayLike=isArrayLike_1;function baseMap$1(a,j){var _e=-1,et=isArrayLike(a)?Array(a.length):[];return baseEach(a,function(tt,nt,rt){et[++_e]=j(tt,nt,rt)}),et}var _baseMap=baseMap$1;function baseSortBy$1(a,j){var _e=a.length;for(a.sort(j);_e--;)a[_e]=a[_e].value;return a}var _baseSortBy=baseSortBy$1,isSymbol$5=isSymbol_1;function compareAscending$1(a,j){if(a!==j){var _e=a!==void 0,et=a===null,tt=a===a,nt=isSymbol$5(a),rt=j!==void 0,it=j===null,ot=j===j,ct=isSymbol$5(j);if(!it&&!ct&&!nt&&a>j||nt&&rt&&ot&&!it&&!ct||et&&rt&&ot||!_e&&ot||!tt)return 1;if(!et&&!nt&&!ct&&a<j||ct&&_e&&tt&&!et&&!nt||it&&_e&&tt||!rt&&tt||!ot)return-1}return 0}var _compareAscending=compareAscending$1,compareAscending=_compareAscending;function compareMultiple$1(a,j,_e){for(var et=-1,tt=a.criteria,nt=j.criteria,rt=tt.length,it=_e.length;++et<rt;){var ot=compareAscending(tt[et],nt[et]);if(ot){if(et>=it)return ot;var ct=_e[et];return ot*(ct=="desc"?-1:1)}}return a.index-j.index}var _compareMultiple=compareMultiple$1,arrayMap=_arrayMap,baseGet$1=_baseGet,baseIteratee=_baseIteratee,baseMap=_baseMap,baseSortBy=_baseSortBy,baseUnary=_baseUnary,compareMultiple=_compareMultiple,identity=identity_1,isArray$5=isArray_1;function baseOrderBy$1(a,j,_e){j.length?j=arrayMap(j,function(nt){return isArray$5(nt)?function(rt){return baseGet$1(rt,nt.length===1?nt[0]:nt)}:nt}):j=[identity];var et=-1;j=arrayMap(j,baseUnary(baseIteratee));var tt=baseMap(a,function(nt,rt,it){var ot=arrayMap(j,function(ct){return ct(nt)});return{criteria:ot,index:++et,value:nt}});return baseSortBy(tt,function(nt,rt){return compareMultiple(nt,rt,_e)})}var _baseOrderBy=baseOrderBy$1,baseFlatten=_baseFlatten,baseOrderBy=_baseOrderBy,baseRest=_baseRest,isIterateeCall=_isIterateeCall,sortBy=baseRest(function(a,j){if(a==null)return[];var _e=j.length;return _e>1&&isIterateeCall(a,j[0],j[1])?j=[]:_e>2&&isIterateeCall(j[0],j[1],j[2])&&(j=[j[0]]),baseOrderBy(a,baseFlatten(j,1),[])}),sortBy_1=sortBy;const sortBy$1=getDefaultExportFromCjs$1(sortBy_1),prefix$2=joinURL(AUTH_SERVICE_PREFIX,"/api/user-session");function useQuickConnect({appPid:a,sourceAppPid:j,loginAppPid:_e,autoFetch:et=!0,baseUrl:tt="/",fetchAll:nt=!1}={}){const rt=getVisitorId$2(),it=useCreation(()=>createAxios({baseURL:joinURL(tt,prefix$2)},{lazy:!0,lazyTime:500}),[tt]),ot=useMemoizedFn(async()=>{const{data:Et=[]}=await it.get("",{params:{visitorId:rt}}),Rt=getFederatedEnabled(),xt=getMaster();if(nt&&Rt&&xt){const{data:Pt}=await it.get(joinURL(xt.appUrl,AUTH_SERVICE_PREFIX,"/api/user-session"),{params:{visitorId:rt}});return Et.concat(Pt||[])}return!Rt||!xt?Et.filter(Pt=>{var Dt;return((Dt=Pt==null?void 0:Pt.user)==null?void 0:Dt.sourceAppPid)===null}):Et}),ct=useReactive({loaded:!1,loadingId:null}),ut=useRequest(ot,{manual:!et,onFinally(){ct.loaded=!0},refreshDeps:[tt]}),dt=async Et=>{var xt,Pt,Dt;const Rt=pick$2(Et,["userDid","visitorId","passportId"]);try{ct.loadingId=Et.id;const Ft=getMaster();if(getFederatedEnabled()&&Ft&&_e!==Et.appPid){const{data:Nt}=await it.post("login",{...Rt,appPid:_e},{baseURL:joinURL(Ft.appUrl,AUTH_SERVICE_PREFIX,"/api/user-session")});return Nt}const{data:zt}=await it.post("login",{...Rt,appPid:_e});return zt}catch(Ft){const zt=Ft.response?((Pt=(xt=Ft.response)==null?void 0:xt.data)==null?void 0:Pt.error)||((Dt=Ft.response)==null?void 0:Dt.data):Ft.message;throw Toast$1.error(zt),console.error("Quick login error",Ft),Ft}finally{ct.loadingId=null}},pt=useCreation(()=>ut.data?ut.data.filter(Et=>Et.status!=="expired"):[],[ut.data]),mt=useCreation(()=>{const Et=new Date().getTime(),Rt=sortBy$1(pt,xt=>Et-new Date(xt.updatedAt).getTime());return unionBy$1(Rt,xt=>[xt.userDid].join("_"))},[pt,j,a]),vt=useCreation(()=>!!(mt&&mt.length>0),[mt]);return{loadingId:ct.loadingId,userSessions:mt,quickLoginEnabled:vt,loginUserSession:dt,loading:ut.loading,loaded:ut.loaded,refresh:ut.refreshAsync}}const data$a={width:24,height:24,body:'<path fill="currentColor" d="M11.95 18q.525 0 .888-.363t.362-.887q0-.525-.362-.888t-.888-.362q-.525 0-.887.363t-.363.887q0 .525.363.888t.887.362Zm.05 4q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20Zm0-8Zm.1-4.3q.625 0 1.088.4t.462 1q0 .55-.337.975t-.763.8q-.575.5-1.012 1.1t-.438 1.35q0 .35.263.588t.612.237q.375 0 .638-.25t.337-.625q.1-.525.45-.938t.75-.787q.575-.55.988-1.2t.412-1.45q0-1.275-1.038-2.087T12.1 6q-.95 0-1.812.4T8.975 7.625q-.175.3-.113.638t.338.512q.35.2.725.125t.625-.425q.275-.375.688-.575t.862-.2Z"/>'},data$9={width:24,height:24,body:'<path fill="currentColor" d="m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4L9.55 18Z"/>'};function AppIcon({appInfo:a,...j}){const[_e,et]=reactExports.useState(!1);if(_e||!(a.appUrl||a.appLogo))return jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{did:a.appPid,size:32});let tt=a.appLogo||"";return isUrl(tt)||(tt=joinURL(a.appUrl||"",tt)),jsxRuntimeExports.jsx(Img,{src:tt,alt:a.appName||"Blocklet Icon",width:32,height:32,...j,onError:()=>et(!0)})}AppIcon.propTypes={appInfo:PropTypes.object.isRequired};const getAppDid=a=>a?a.split(":").pop():"";function AppInfoItem({appInfo:a,active:j,appLogo:_e}){return jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",fontWeight:600,color:colors$1.textBase,"& .app-info-content":{paddingLeft:"8px",overflow:"hidden"},"& .app-info-name":{maxWidth:"100%",paddingRight:"32px",lineHeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"},"& .app-info-did":{fontSize:0},"& .app-info-did .did-address-text":{color:colors$1.textMuted,fontSize:"12px"}},children:[_e||jsxRuntimeExports.jsx(Box,{sx:{borderRadius:"8px",overflow:"hidden",fontSize:0},children:jsxRuntimeExports.jsx(AppIcon,{appInfo:a})}),jsxRuntimeExports.jsxs(Box,{className:"app-info-content",children:[jsxRuntimeExports.jsx(Box,{className:"app-info-name",children:a.appName}),a.appPid&&jsxRuntimeExports.jsx(DidAddressWrapper,{size:12,className:"app-info-did",copyable:!1,color:colors$1.textMuted,compact:!1,responsive:!1,children:getAppDid(a.appPid)})]}),j?jsxRuntimeExports.jsx(IconButton,{size:"small",color:"success",children:jsxRuntimeExports.jsx(Icon$1,{icon:data$9,color:"success"})}):null]})}AppInfoItem.propTypes={appInfo:PropTypes.object.isRequired,active:PropTypes.bool,appLogo:PropTypes.node};AppInfoItem.defaultProps={active:!1,appLogo:null};function CurrentApp({appInfo:a}){const j=reactExports.useRef(null),_e=useReactive({hoverOnButton:!1,hoverOnPopover:!1}),et=useCreation(()=>_e.hoverOnButton||_e.hoverOnPopover,[_e.hoverOnButton,_e.hoverOnPopover]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{component:"span",ref:j,sx:{color:colors$1.foregroundsFgInteractive,cursor:"help"},onClick:()=>{_e.hoverOnButton=!0},onMouseEnter:()=>{_e.hoverOnButton=!0},onMouseLeave:()=>{setTimeout(()=>{_e.hoverOnButton=!1},200)},children:a.appName}),jsxRuntimeExports.jsx(Popover,{open:et,sx:{pointerEvents:"none"},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${colors$1.gray6}, 0px 0px 0px 1px ${colors$1.gray6}`,py:1,px:1.5,borderRadius:2,transform:"translateY(-6px) !important"}}},anchorEl:j.current,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{_e.open=!1},disableRestoreFocus:!0,children:jsxRuntimeExports.jsx(Box,{component:"span",sx:{pointerEvents:"auto"},onMouseEnter:()=>{_e.hoverOnPopover=!0},onMouseLeave:()=>{_e.hoverOnPopover=!1},children:jsxRuntimeExports.jsx(AppInfoItem,{appInfo:a,appLogo:jsxRuntimeExports.jsx(AppIcon,{appInfo:a})})})})]})}CurrentApp.propTypes={appInfo:PropTypes.object.isRequired};function SwitchApp(){const{appInfoList:a,t:j,extraParams:_e,connectState:et}=useStateContext(),tt=reactExports.useRef(null),nt=useReactive({open:!1});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{component:"span",ref:tt,sx:{textTransform:"lowercase",color:colors$1.foregroundsFgInteractive,cursor:"pointer"},onClick:()=>{nt.open=!0},children:j("switch")}),jsxRuntimeExports.jsx(Menu,{anchorEl:tt.current,open:nt.open,onClose:()=>{nt.open=!1},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${colors$1.gray6}, 0px 0px 0px 1px ${colors$1.gray6}`,borderRadius:2}}},children:a.map(rt=>jsxRuntimeExports.jsx(MenuItem,{onClick:()=>{nt.open=!1,et.sourceAppPid=rt.sourceAppPid},children:jsxRuntimeExports.jsx(AppInfoItem,{appInfo:rt,active:rt.sourceAppPid===(_e==null?void 0:_e.sourceAppPid)})},rt.appPid))})]})}function AppTips({locale:a,disableSwitchApp:j}){const{appInfoList:_e,extraParams:et,connectState:tt,blocklet:nt}=useStateContext(),rt=useCreation(()=>_e.find(ct=>lodashExports.isUndefined(et==null?void 0:et.sourceAppPid)?!0:lodashExports.isNull(ct.sourceAppPid)?ct.appPid===(nt==null?void 0:nt.appPid):ct.sourceAppPid===(et==null?void 0:et.sourceAppPid)),[et==null?void 0:et.sourceAppPid,_e]),it=!j&&_e.length>1;useMount(()=>{(nt==null?void 0:nt.appPid)===(rt==null?void 0:rt.appPid)?tt.sourceAppPid=null:tt.sourceAppPid=rt==null?void 0:rt.appPid});const ot=useCreation(()=>a==="zh"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["您正在使用 ",jsxRuntimeExports.jsx(CurrentApp,{appInfo:rt,appInfoList:_e})," 账户来连接站点",it?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[",点击",jsxRuntimeExports.jsx(SwitchApp,{appInfoList:_e})]}):null]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["You're using ",jsxRuntimeExports.jsx(CurrentApp,{appInfo:rt})," account for site access",it?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[". Click to ",jsxRuntimeExports.jsx(SwitchApp,{appInfoList:_e})]}):null]}),[a,rt,_e,it]);return lodashExports.isEmpty(_e)?null:jsxRuntimeExports.jsxs(Box,{sx:{fontSize:"13px",color:colors$1.foregroundsFgSubtile,lineHeight:1.5},children:[ot,it&&jsxRuntimeExports.jsx(Box,{component:"span",sx:{display:"inline-block",ml:.5,fontSize:"13px",height:"16px",lineHeight:1,verticalAlign:"middle"},children:jsxRuntimeExports.jsx(Box,{component:Icon,icon:data$a,sx:{verticalAlign:"middle"}})})]})}AppTips.propTypes={locale:PropTypes.string,disableSwitchApp:PropTypes.bool};AppTips.defaultProps={locale:"en",disableSwitchApp:!1};var DidLogoColorful={};Object.defineProperty(DidLogoColorful,"__esModule",{value:!0});var default_1$2=DidLogoColorful.default=void 0;_interopRequireDefault$2(reactExports);var _jsxRuntime$2=jsxRuntimeExports;function _interopRequireDefault$2(a){return a&&a.__esModule?a:{default:a}}function ownKeys$2(a,j){var _e=Object.keys(a);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(a);j&&(et=et.filter(function(tt){return Object.getOwnPropertyDescriptor(a,tt).enumerable})),_e.push.apply(_e,et)}return _e}function _objectSpread(a){for(var j=1;j<arguments.length;j++){var _e=arguments[j]!=null?arguments[j]:{};j%2?ownKeys$2(Object(_e),!0).forEach(function(et){_defineProperty(a,et,_e[et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(_e)):ownKeys$2(Object(_e)).forEach(function(et){Object.defineProperty(a,et,Object.getOwnPropertyDescriptor(_e,et))})}return a}function _defineProperty(a,j,_e){return j=_toPropertyKey(j),j in a?Object.defineProperty(a,j,{value:_e,enumerable:!0,configurable:!0,writable:!0}):a[j]=_e,a}function _toPropertyKey(a){var j=_toPrimitive(a,"string");return typeof j=="symbol"?j:String(j)}function _toPrimitive(a,j){if(typeof a!="object"||!a)return a;var _e=a[Symbol.toPrimitive];if(_e!==void 0){var et=_e.call(a,j||"default");if(typeof et!="object")return et;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(a)}var Component=function a(j){return(0,_jsxRuntime$2.jsxs)("svg",_objectSpread(_objectSpread({},j),{},{children:[(0,_jsxRuntime$2.jsx)("path",{d:"M7.366.646L8.46 0h3.981v11.96H8.564a.381.381 0 0 1-.194-.053L4.18 9.431V2.53l.508-.3.893.528-.508.3v5.845L8.7 11.046h2.85V.914h-2.85l-.44.26-.893-.528z",fill:"color(display-p3 .4196 .7412 .9961)"}),(0,_jsxRuntime$2.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.868 8.903V3.057L4.242.915H1.393v10.132h2.85l.44-.26.893.527-1.095.647H.5V0h3.981l4.28 2.53v6.9l-.506.3-.893-.528.506-.299z",fill:"color(display-p3 .2706 .5961 .9804)"})]}))};Component.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};Component.displayName="did-logo-colorful";default_1$2=DidLogoColorful.default=Component;function PoweredBy({...a}){return jsxRuntimeExports.jsxs(Box,{...a,sx:{display:"flex",alignItems:"center",color:colors$1.foregroundsFgMuted,gap:.5,...a.sx},children:[jsxRuntimeExports.jsx(default_1$2,{}),"Powered By",jsxRuntimeExports.jsx(Box,{component:"a",href:"https://www.didconnect.io/",target:"_blank",rel:"noopener",sx:{color:colors$1.foregroundsFgInteractive,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:"DID Connect"})]})}function AutoHeight({children:a,initHeight:j,slotProps:_e}){var it;const[et,tt]=reactExports.useState(j),nt=reactExports.useRef(null),rt=useSize(nt);return reactExports.useEffect(()=>{rt!=null&&rt.height&&tt(rt.height)},[rt==null?void 0:rt.height,et]),jsxRuntimeExports.jsx(Box,{..._e==null?void 0:_e.root,sx:{height:et,overflow:"hidden",transition:"height 0.2s ease-in-out",...(it=_e==null?void 0:_e.root)==null?void 0:it.sx},children:jsxRuntimeExports.jsx(Box,{..._e==null?void 0:_e.container,ref:nt,children:a})})}AutoHeight.propTypes={initHeight:PropTypes.number,children:PropTypes.node.isRequired,slotProps:PropTypes.object};AutoHeight.defaultProps={initHeight:0,slotProps:{}};const didConnectTab="did-connect",quickConnectTab="quick-connect";function Connect$1({mode:a,isFullScreen:j,hideCloseButton:_e,...et}){var ht;const tt=useReactive({showTab:didConnectTab}),{connectState:nt,blocklet:rt,appInfoList:it,extraParams:ot}=useStateContext(),{extraContent:ct,onSuccess:ut,action:dt,onClose:pt,options:mt}=et,vt=useCreation(()=>it.find($t=>isUndefined$2(ot==null?void 0:ot.sourceAppPid)?!0:isNull$3($t.sourceAppPid)?$t.appPid===(rt==null?void 0:rt.appPid):$t.sourceAppPid===(ot==null?void 0:ot.sourceAppPid)),[ot==null?void 0:ot.sourceAppPid,it]),Et=useCreation(()=>isNull$3(nt==null?void 0:nt.sourceAppPid)?vt==null?void 0:vt.appPid:(nt==null?void 0:nt.sourceAppPid)||getCurrentAppPid(),[nt==null?void 0:nt.sourceAppPid]),{quickLoginEnabled:Rt,loading:xt,userSessions:Pt,loginUserSession:Dt,refresh:Ft}=useQuickConnect({appPid:Et,loginAppPid:rt==null?void 0:rt.appPid,sourceAppPid:nt==null?void 0:nt.sourceAppPid,autoFetch:["login"].includes(dt),baseUrl:(vt==null?void 0:vt.appUrl)||""}),zt=useCreation(()=>{var $t;return(($t=et==null?void 0:et.messages)==null?void 0:$t.title)||DEFAULT_NAME},[(ht=et==null?void 0:et.messages)==null?void 0:ht.title]),Nt=useCreation(()=>{if(dt==="login"){const $t=getMaster(rt),Tt=getFederatedEnabled(rt);return ot!=null&&ot.forceConnected?Pt.filter(At=>At.userDid===(ot==null?void 0:ot.forceConnected)):!Tt||!$t?Pt.filter(At=>{var kt;return((kt=At==null?void 0:At.user)==null?void 0:kt.sourceAppPid)===null}):Pt.filter(At=>{var kt;return Et===rt.appPid?((kt=At.user)==null?void 0:kt.sourceAppPid)===(ot==null?void 0:ot.sourceAppPid):!0})}return Pt},[ot==null?void 0:ot.forceConnected,dt,Pt]),Vt=useMemoizedFn(async(...$t)=>{var Ct,It,bt;const Tt=await Dt(...$t),[At]=$t,kt={};At&&((Ct=At==null?void 0:At.user)!=null&&Ct.did&&(kt.connected_did=At.user.did),(It=At==null?void 0:At.user)!=null&&It.pk&&(kt.connected_pk=At.user.pk),(bt=At==null?void 0:At.extra)!=null&&bt.walletOS&&(kt.connected_wallet_os=At.extra.walletOS),At!=null&&At.appPid&&(kt.connected_app=At.appPid)),await ut({...Tt,encrypted:!1},Lt=>Lt,kt)});reactExports.useEffect(()=>{(mt==null?void 0:mt.showQuickConnect)!==!1&&!xt&&Rt&&(tt.showTab=quickConnectTab)},[xt,Rt,mt==null?void 0:mt.showQuickConnect]);const nn=useDebounce(xt,{wait:100}),fn=useMemoizedFn(()=>{tt.showTab=didConnectTab}),hn=useMemoizedFn(()=>{tt.showTab=quickConnectTab}),Qt=useCreation(()=>Nt.length===0?!0:tt.showTab===didConnectTab||!Rt,[tt.showTab,Rt]),Mt=useCreation(()=>{let $t=!0;return(xt||nn)&&($t=!1),Rt||($t=!1),mt.showQuickConnect===!1&&($t=!1),tt.showTab!==didConnectTab&&($t=!1),$t},[Rt,tt.showTab,xt,nn]),wt=useCreation(()=>jsxRuntimeExports.jsx(Box,{onClick:pt,sx:{fontSize:"1.5rem",width:"1.5rem",height:"1.5rem",cursor:"pointer",color:colors$1.foregroundsFgSubtile,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:jsxRuntimeExports.jsx(Icon,{icon:data$q})}),[pt]);let ft=null;return xt||nn?ft=jsxRuntimeExports.jsx(Loading,{}):Qt?ft=jsxRuntimeExports.jsx(DIDWalletConnect,{...et,onClose:pt}):ft=jsxRuntimeExports.jsx(QuickConnect,{userSessions:Nt,onLogin:Vt,onRetry:Ft,onClose:pt,messages:et.messages,onLoginAnother:fn}),jsxRuntimeExports.jsxs(Card,{variant:"outlined",sx:{color:colors$1.foregroundsFgBase,backgroundColor:"white",borderRadius:2,borderColor:colors$1.strokeBorderBase,height:"100%",display:"flex",flexDirection:"column"},children:[jsxRuntimeExports.jsx(CardHeader,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Mt&&jsxRuntimeExports.jsx(IconButton,{size:"small",disabled:nt.status!=="created",onClick:hn,disableRipple:!0,sx:{fontSize:"0.75em"},children:jsxRuntimeExports.jsx(Icon,{icon:data$r,color:colors$1.textMuted})}),zt]}),titleTypographyProps:{display:"flex",alignItems:"center",variant:"h6",lineHeight:"28px",fontWeight:600},action:_e?null:wt,sx:{px:2.5,".MuiCardHeader-action":{margin:0,alignSelf:"center"}}}),jsxRuntimeExports.jsx(CardContent,{sx:{borderTop:`1px solid ${colors$1.strokeBorderBase}`,borderBottom:`1px solid ${colors$1.strokeBorderBase}`,flex:1,verticalAlign:"middle",overflow:"auto",p:2.5,position:"relative","&::after":{content:'""',height:"100%",verticalAlign:"middle",display:"inline-block",width:0}},children:jsxRuntimeExports.jsxs(AutoHeight,{slotProps:{root:{sx:{display:"inline-block",width:"100%",verticalAlign:"middle"}},container:{sx:{display:"flex",flexDirection:"column",gap:1}}},children:[jsxRuntimeExports.jsx(AppTips,{locale:et.locale,disableSwitchApp:et.disableSwitchApp}),ft,ct?jsxRuntimeExports.jsx(Box,{children:ct}):null]})}),jsxRuntimeExports.jsx(CardActions,{sx:{py:2,px:2.5,justifyContent:"center"},children:jsxRuntimeExports.jsx(PoweredBy,{sx:{fontSize:"12px"}})})]})}Connect$1.propTypes={action:PropTypes.string.isRequired,onSuccess:PropTypes.func,onClose:PropTypes.func,messages:PropTypes.object,extraContent:PropTypes.any,disableSwitchApp:PropTypes.bool,mode:PropTypes.oneOf(["fullScreen","dialog","normal"]),isFullScreen:PropTypes.bool,options:PropTypes.object,hideCloseButton:PropTypes.bool,locale:PropTypes.string};Connect$1.defaultProps={onSuccess:noop$7,onClose:noop$7,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!0,locale:"en"};function WrapConnect(a){const{checkFn:j,extraParams:_e,blocklet:et,action:tt,locale:nt}=a;if(typeof j!="function")throw new Error("Cannot initialize did connect component without a fetchFn");return jsxRuntimeExports.jsx(StateProvider,{blocklet:et,action:tt,locale:nt,extraParams:_e,sx:{position:"relative",width:"100%",height:"100%",lineHeight:1.2,fontFamily:"Inter",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:jsxRuntimeExports.jsx(Connect$1,{...a})})}WrapConnect.propTypes={checkFn:PropTypes.func.isRequired,extraParams:PropTypes.object,blocklet:PropTypes.object.isRequired,action:PropTypes.string.isRequired,locale:PropTypes.string};WrapConnect.defaultProps={extraParams:{},locale:"en"};const DidConnect=withWebWalletSWKeeper(withDialog(withBlocklet(WrapConnect))),ConnectHolder=reactExports.forwardRef((a,j)=>{const{api:_e}=reactExports.useContext(SessionContext$1),et={containerEl:null,popup:!0,checkFn:(_e==null?void 0:_e.get)||noop$7,messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},tt=useReactive({show:!1,...cloneDeep$1(et)}),[nt,rt]=reactExports.useState({}),it=useMemoizedFn(()=>{const dt=cloneDeep$1(et);Object.keys(dt).forEach(pt=>{tt[pt]=dt[pt]})}),ot=useMemoizedFn(()=>{tt.show=!1,it()}),ct=useMemoizedFn(dt=>{const{containerEl:pt,checkFn:mt,popup:vt,messages:Et,...Rt}=cloneDeep$1(dt);typeof mt=="function"&&(tt.checkFn=mt),vt!==void 0&&(tt.popup=vt),Et!==void 0&&(tt.messages=Et),pt!==void 0&&(tt.containerEl=pt),rt(Rt),tt.show=!0});reactExports.useImperativeHandle(j,()=>({open:ct,close:ot}),[ct,ot]);const ut=jsxRuntimeExports.jsx(DidConnect,{open:!0,popup:tt.popup,messages:tt.messages,checkFn:tt.checkFn,...nt});return tt.containerEl?reactDomExports.createPortal(ut,tt.containerEl):tt.show&&ut});function useConnect(){const a=reactExports.useRef(null),j=useCreation(()=>new _default$2({concurrency:1})),_e=useMemoizedFn((...it)=>{var ot;(ot=a.current)==null||ot.close(...it)}),et=useMemoizedFn(({onSuccess:it,onClose:ot,onEnd:ct,...ut},...dt)=>{const pt=()=>new Promise(mt=>{typeof it=="function"?ut.onSuccess=(...vt)=>{it(...vt),setTimeout(()=>{_e(),mt()},2e3)}:ut.onSuccess=()=>{setTimeout(()=>{_e(),mt()},2e3)},typeof ot=="function"?ut.onClose=(...vt)=>{ot(...vt),_e(),mt(),j.clear()}:ut.onClose=()=>{_e(),mt(),j.clear()},setTimeout(()=>{var vt;(vt=a.current)==null||vt.open(ut,...dt)})});j.add(pt)}),tt=useMemoizedFn((it={},{baseUrl:ot,locale:ct="en",blocklet:ut=globalThis==null?void 0:globalThis.blocklet}={})=>new Promise((dt,pt)=>{const mt=()=>new Promise(vt=>{(async()=>{var Nt;if(isUndefined$2(ot)){const Vt=getFederatedEnabled(),nn=getMaster();ot=Vt?nn.appUrl:window.location.origin}const{onSuccess:Rt,onClose:xt,onError:Pt,...Dt}=it;if(!((Nt=Dt==null?void 0:Dt.extraParams)!=null&&Nt.provider))throw isFunction$8(Pt)&&Pt("Must have extraParams.provider"),new Error("Must have extraParams.provider");Dt!=null&&Dt.prefix||(Dt.prefix=window.location.origin+joinURL(ut==null?void 0:ut.prefix,API_DID_PREFIX));const Ft=new URLSearchParams;Ft.set("params",btoa(encodeURIComponent(JSON.stringify(Dt)))),Ft.set("appPid",ut==null?void 0:ut.appPid),Ft.set("locale",ct);const zt=openPopup(joinURL(ot||"/",AUTH_SERVICE_PREFIX,`/connect?${Ft.toString()}`));try{const Vt=await runPopup({popup:zt,closeTimeout:2e3});updateConnectedInfo({connected_app:getAppId$1(),...Vt==null?void 0:Vt.options},!0),isFunction$8(Rt)?(Rt({...Vt.response,encrypted:!1}),_e(),vt()):(_e(),vt()),dt({...Vt.response,encrypted:!1})}catch(Vt){throw Vt.message==="Popup closed"?isFunction$8(xt)?(xt(),vt(),j.clear()):(vt(),j.clear()):isFunction$8(Pt)&&Pt(Vt),Vt}})().catch(Rt=>{vt(),pt(Rt)})});j.add(mt)})),nt=useCreation(()=>jsxRuntimeExports.jsx(ConnectHolder,{ref:a})),rt=useCreation(()=>({open:et,close:_e,openPopup:tt,queue:j}));return{connectHolder:nt,connectApi:rt}}const EVENTS={LOGIN:Symbol("login"),CANCEL_LOGIN:Symbol("cancelLogin"),LOGOUT:Symbol("logout"),SWITCH_PROFILE:Symbol("switchProfile"),CANCEL_SWITCH_PROFILE:Symbol("cancelSwitchProfile"),SWITCH_PASSPORT:Symbol("switchPassport"),CANCEL_SWITCH_PASSPORT:Symbol("cancelSwitchPassport"),BIND_WALLET:Symbol("bindWallet"),CANCEL_BIND_WALLET:Symbol("cancelBindWallet"),CONNECT_TO_DID_SPACE_FOR_FULL_ACCESS:Symbol("connectToDidSpaceForFullAccess")},translations$2={login:{en:{title:"Connect DID Wallet",scan:"Scan following qrcode to connect your DID Wallet",confirm:"Confirm connection in your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包",scan:"请使用 DID 钱包扫码下面的二维码完成连接",confirm:"在 DID 钱包中确认连接",success:"连接成功"}},"switch-specified-did":{en:{title:"Switch DID",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"你需要切换账号至 {did} 才能完成后续的操作",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-did":{en:{title:"Switch DID",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"请使用 DID 钱包扫码下面的二维码完成切换",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-profile":{en:{title:"Switch Profile",scan:"Scan following qrcode with DID Wallet to switch profile",confirm:"Select profile in your DID Wallet",success:"Profile updated"},zh:{title:"切换个人信息",scan:"请使用 DID 钱包扫码下面的二维码来切换个人信息",confirm:"在 DID 钱包中选择个人信息",success:"个人信息已经更新"}},"switch-passport":{en:{title:"Switch Passport",scan:"Scan following qrcode with DID Wallet to switch passport",confirm:"Select passport in your DID Wallet",success:"Passport and session updated"},zh:{title:"切换通行证",scan:"请使用 DID 钱包扫码二维码来切换通行证",confirm:"在 DID 钱包中选择通行证",success:"通行证和会话已经更新"}},"connect-to-did-spaces-for-user":{en:{title:"Please authorize the application to connect to your DID Space",scan:"Please use your DID wallet to scan the QR code for authorization",confirm:"Select the DID Spaces NFT in your DID wallet",success:"Connection successful"},zh:{title:"请授权应用连接你的 DID Space",scan:"请使用 DID 钱包扫码二维码来完成授权",confirm:"在 DID 钱包中选择 DID Spaces NFT",success:"连接成功"}},"bind-wallet":{en:{title:"Connect DID Wallet for enhanced security",scan:"Scan following qrcode with DID Wallet to connect your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包获得更高的安全性",scan:"请使用 DID 钱包扫码二维码来连接您的 DID 钱包",success:"连接成功"}},exchangePassport:{en:{action:"Exchange Passport with NFT",tooltip:"Exchange passport if you owns any required NFT"},zh:{action:"兑换通行证",tooltip:"通过出示你持有的特定 NFT 来获取通行证"}},lostPassport:{en:{action:"Lost Passport"},zh:{action:"找回通行证"}},switchAccountDialog:{en:{confirm:"Switch",title:"Switch Account",description:"Please switch accounts to complete next action",currentAccount:"Current account",nextAccount:"Account to be switched"},zh:{confirm:"切换",title:"切换账号",description:"请切换账号来完成后续的操作",currentAccount:"当前登录的账户",nextAccount:"即将切换的账户"}}};var re$2={exports:{}};const SEMVER_SPEC_VERSION="2.0.0",MAX_LENGTH$1=256,MAX_SAFE_INTEGER$2=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=MAX_LENGTH$1-6,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var constants$1={MAX_LENGTH:MAX_LENGTH$1,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$2,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},define_process_env_default$1={};const debug$3=typeof process$1$1=="object"&&define_process_env_default$1&&define_process_env_default$1.NODE_DEBUG&&/\bsemver\b/i.test(define_process_env_default$1.NODE_DEBUG)?(...a)=>console.error("SEMVER",...a):()=>{};var debug_1$1=debug$3;(function(a,j){const{MAX_SAFE_COMPONENT_LENGTH:_e,MAX_SAFE_BUILD_LENGTH:et,MAX_LENGTH:tt}=constants$1,nt=debug_1$1;j=a.exports={};const rt=j.re=[],it=j.safeRe=[],ot=j.src=[],ct=j.t={};let ut=0;const dt="[a-zA-Z0-9-]",pt=[["\\s",1],["\\d",tt],[dt,et]],mt=Et=>{for(const[Rt,xt]of pt)Et=Et.split(`${Rt}*`).join(`${Rt}{0,${xt}}`).split(`${Rt}+`).join(`${Rt}{1,${xt}}`);return Et},vt=(Et,Rt,xt)=>{const Pt=mt(Rt),Dt=ut++;nt(Et,Dt,Rt),ct[Et]=Dt,ot[Dt]=Rt,rt[Dt]=new RegExp(Rt,xt?"g":void 0),it[Dt]=new RegExp(Pt,xt?"g":void 0)};vt("NUMERICIDENTIFIER","0|[1-9]\\d*"),vt("NUMERICIDENTIFIERLOOSE","\\d+"),vt("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${dt}*`),vt("MAINVERSION",`(${ot[ct.NUMERICIDENTIFIER]})\\.(${ot[ct.NUMERICIDENTIFIER]})\\.(${ot[ct.NUMERICIDENTIFIER]})`),vt("MAINVERSIONLOOSE",`(${ot[ct.NUMERICIDENTIFIERLOOSE]})\\.(${ot[ct.NUMERICIDENTIFIERLOOSE]})\\.(${ot[ct.NUMERICIDENTIFIERLOOSE]})`),vt("PRERELEASEIDENTIFIER",`(?:${ot[ct.NUMERICIDENTIFIER]}|${ot[ct.NONNUMERICIDENTIFIER]})`),vt("PRERELEASEIDENTIFIERLOOSE",`(?:${ot[ct.NUMERICIDENTIFIERLOOSE]}|${ot[ct.NONNUMERICIDENTIFIER]})`),vt("PRERELEASE",`(?:-(${ot[ct.PRERELEASEIDENTIFIER]}(?:\\.${ot[ct.PRERELEASEIDENTIFIER]})*))`),vt("PRERELEASELOOSE",`(?:-?(${ot[ct.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ot[ct.PRERELEASEIDENTIFIERLOOSE]})*))`),vt("BUILDIDENTIFIER",`${dt}+`),vt("BUILD",`(?:\\+(${ot[ct.BUILDIDENTIFIER]}(?:\\.${ot[ct.BUILDIDENTIFIER]})*))`),vt("FULLPLAIN",`v?${ot[ct.MAINVERSION]}${ot[ct.PRERELEASE]}?${ot[ct.BUILD]}?`),vt("FULL",`^${ot[ct.FULLPLAIN]}$`),vt("LOOSEPLAIN",`[v=\\s]*${ot[ct.MAINVERSIONLOOSE]}${ot[ct.PRERELEASELOOSE]}?${ot[ct.BUILD]}?`),vt("LOOSE",`^${ot[ct.LOOSEPLAIN]}$`),vt("GTLT","((?:<|>)?=?)"),vt("XRANGEIDENTIFIERLOOSE",`${ot[ct.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),vt("XRANGEIDENTIFIER",`${ot[ct.NUMERICIDENTIFIER]}|x|X|\\*`),vt("XRANGEPLAIN",`[v=\\s]*(${ot[ct.XRANGEIDENTIFIER]})(?:\\.(${ot[ct.XRANGEIDENTIFIER]})(?:\\.(${ot[ct.XRANGEIDENTIFIER]})(?:${ot[ct.PRERELEASE]})?${ot[ct.BUILD]}?)?)?`),vt("XRANGEPLAINLOOSE",`[v=\\s]*(${ot[ct.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ot[ct.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ot[ct.XRANGEIDENTIFIERLOOSE]})(?:${ot[ct.PRERELEASELOOSE]})?${ot[ct.BUILD]}?)?)?`),vt("XRANGE",`^${ot[ct.GTLT]}\\s*${ot[ct.XRANGEPLAIN]}$`),vt("XRANGELOOSE",`^${ot[ct.GTLT]}\\s*${ot[ct.XRANGEPLAINLOOSE]}$`),vt("COERCEPLAIN",`(^|[^\\d])(\\d{1,${_e}})(?:\\.(\\d{1,${_e}}))?(?:\\.(\\d{1,${_e}}))?`),vt("COERCE",`${ot[ct.COERCEPLAIN]}(?:$|[^\\d])`),vt("COERCEFULL",ot[ct.COERCEPLAIN]+`(?:${ot[ct.PRERELEASE]})?(?:${ot[ct.BUILD]})?(?:$|[^\\d])`),vt("COERCERTL",ot[ct.COERCE],!0),vt("COERCERTLFULL",ot[ct.COERCEFULL],!0),vt("LONETILDE","(?:~>?)"),vt("TILDETRIM",`(\\s*)${ot[ct.LONETILDE]}\\s+`,!0),j.tildeTrimReplace="$1~",vt("TILDE",`^${ot[ct.LONETILDE]}${ot[ct.XRANGEPLAIN]}$`),vt("TILDELOOSE",`^${ot[ct.LONETILDE]}${ot[ct.XRANGEPLAINLOOSE]}$`),vt("LONECARET","(?:\\^)"),vt("CARETTRIM",`(\\s*)${ot[ct.LONECARET]}\\s+`,!0),j.caretTrimReplace="$1^",vt("CARET",`^${ot[ct.LONECARET]}${ot[ct.XRANGEPLAIN]}$`),vt("CARETLOOSE",`^${ot[ct.LONECARET]}${ot[ct.XRANGEPLAINLOOSE]}$`),vt("COMPARATORLOOSE",`^${ot[ct.GTLT]}\\s*(${ot[ct.LOOSEPLAIN]})$|^$`),vt("COMPARATOR",`^${ot[ct.GTLT]}\\s*(${ot[ct.FULLPLAIN]})$|^$`),vt("COMPARATORTRIM",`(\\s*)${ot[ct.GTLT]}\\s*(${ot[ct.LOOSEPLAIN]}|${ot[ct.XRANGEPLAIN]})`,!0),j.comparatorTrimReplace="$1$2$3",vt("HYPHENRANGE",`^\\s*(${ot[ct.XRANGEPLAIN]})\\s+-\\s+(${ot[ct.XRANGEPLAIN]})\\s*$`),vt("HYPHENRANGELOOSE",`^\\s*(${ot[ct.XRANGEPLAINLOOSE]})\\s+-\\s+(${ot[ct.XRANGEPLAINLOOSE]})\\s*$`),vt("STAR","(<|>)?=?\\s*\\*"),vt("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),vt("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(re$2,re$2.exports);var reExports=re$2.exports;const looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$1=a=>a?typeof a!="object"?looseOption:a:emptyOpts;var parseOptions_1=parseOptions$1;const numeric=/^[0-9]+$/,compareIdentifiers$1=(a,j)=>{const _e=numeric.test(a),et=numeric.test(j);return _e&&et&&(a=+a,j=+j),a===j?0:_e&&!et?-1:et&&!_e?1:a<j?-1:1},rcompareIdentifiers=(a,j)=>compareIdentifiers$1(j,a);var identifiers$1={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers};const debug$2=debug_1$1,{MAX_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1}=constants$1,{safeRe:re$1,t:t$1}=reExports,parseOptions=parseOptions_1,{compareIdentifiers}=identifiers$1;let SemVer$d=class ps{constructor(j,_e){if(_e=parseOptions(_e),j instanceof ps){if(j.loose===!!_e.loose&&j.includePrerelease===!!_e.includePrerelease)return j;j=j.version}else if(typeof j!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof j}".`);if(j.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug$2("SemVer",j,_e),this.options=_e,this.loose=!!_e.loose,this.includePrerelease=!!_e.includePrerelease;const et=j.trim().match(_e.loose?re$1[t$1.LOOSE]:re$1[t$1.FULL]);if(!et)throw new TypeError(`Invalid Version: ${j}`);if(this.raw=j,this.major=+et[1],this.minor=+et[2],this.patch=+et[3],this.major>MAX_SAFE_INTEGER$1||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER$1||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER$1||this.patch<0)throw new TypeError("Invalid patch version");et[4]?this.prerelease=et[4].split(".").map(tt=>{if(/^[0-9]+$/.test(tt)){const nt=+tt;if(nt>=0&&nt<MAX_SAFE_INTEGER$1)return nt}return tt}):this.prerelease=[],this.build=et[5]?et[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(j){if(debug$2("SemVer.compare",this.version,this.options,j),!(j instanceof ps)){if(typeof j=="string"&&j===this.version)return 0;j=new ps(j,this.options)}return j.version===this.version?0:this.compareMain(j)||this.comparePre(j)}compareMain(j){return j instanceof ps||(j=new ps(j,this.options)),compareIdentifiers(this.major,j.major)||compareIdentifiers(this.minor,j.minor)||compareIdentifiers(this.patch,j.patch)}comparePre(j){if(j instanceof ps||(j=new ps(j,this.options)),this.prerelease.length&&!j.prerelease.length)return-1;if(!this.prerelease.length&&j.prerelease.length)return 1;if(!this.prerelease.length&&!j.prerelease.length)return 0;let _e=0;do{const et=this.prerelease[_e],tt=j.prerelease[_e];if(debug$2("prerelease compare",_e,et,tt),et===void 0&&tt===void 0)return 0;if(tt===void 0)return 1;if(et===void 0)return-1;if(et===tt)continue;return compareIdentifiers(et,tt)}while(++_e)}compareBuild(j){j instanceof ps||(j=new ps(j,this.options));let _e=0;do{const et=this.build[_e],tt=j.build[_e];if(debug$2("build compare",_e,et,tt),et===void 0&&tt===void 0)return 0;if(tt===void 0)return 1;if(et===void 0)return-1;if(et===tt)continue;return compareIdentifiers(et,tt)}while(++_e)}inc(j,_e,et){switch(j){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",_e,et);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",_e,et);break;case"prepatch":this.prerelease.length=0,this.inc("patch",_e,et),this.inc("pre",_e,et);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",_e,et),this.inc("pre",_e,et);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const tt=Number(et)?1:0;if(!_e&&et===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[tt];else{let nt=this.prerelease.length;for(;--nt>=0;)typeof this.prerelease[nt]=="number"&&(this.prerelease[nt]++,nt=-2);if(nt===-1){if(_e===this.prerelease.join(".")&&et===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(tt)}}if(_e){let nt=[_e,tt];et===!1&&(nt=[_e]),compareIdentifiers(this.prerelease[0],_e)===0?isNaN(this.prerelease[1])&&(this.prerelease=nt):this.prerelease=nt}break}default:throw new Error(`invalid increment argument: ${j}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var semver$2=SemVer$d;const SemVer$c=semver$2,parse$d=(a,j,_e=!1)=>{if(a instanceof SemVer$c)return a;try{return new SemVer$c(a,j)}catch(et){if(!_e)return null;throw et}};var parse_1=parse$d;const parse$c=parse_1,valid$2=(a,j)=>{const _e=parse$c(a,j);return _e?_e.version:null};var valid_1=valid$2;const parse$b=parse_1,clean$1=(a,j)=>{const _e=parse$b(a.trim().replace(/^[=v]+/,""),j);return _e?_e.version:null};var clean_1=clean$1;const SemVer$b=semver$2,inc$1=(a,j,_e,et,tt)=>{typeof _e=="string"&&(tt=et,et=_e,_e=void 0);try{return new SemVer$b(a instanceof SemVer$b?a.version:a,_e).inc(j,et,tt).version}catch{return null}};var inc_1=inc$1;const parse$a=parse_1,diff$1=(a,j)=>{const _e=parse$a(a,null,!0),et=parse$a(j,null,!0),tt=_e.compare(et);if(tt===0)return null;const nt=tt>0,rt=nt?_e:et,it=nt?et:_e,ot=!!rt.prerelease.length;if(!!it.prerelease.length&&!ot)return!it.patch&&!it.minor?"major":rt.patch?"patch":rt.minor?"minor":"major";const ut=ot?"pre":"";return _e.major!==et.major?ut+"major":_e.minor!==et.minor?ut+"minor":_e.patch!==et.patch?ut+"patch":"prerelease"};var diff_1=diff$1;const SemVer$a=semver$2,major$1=(a,j)=>new SemVer$a(a,j).major;var major_1=major$1;const SemVer$9=semver$2,minor$1=(a,j)=>new SemVer$9(a,j).minor;var minor_1=minor$1;const SemVer$8=semver$2,patch$1=(a,j)=>new SemVer$8(a,j).patch;var patch_1=patch$1;const parse$9=parse_1,prerelease$1=(a,j)=>{const _e=parse$9(a,j);return _e&&_e.prerelease.length?_e.prerelease:null};var prerelease_1=prerelease$1;const SemVer$7=semver$2,compare$b=(a,j,_e)=>new SemVer$7(a,_e).compare(new SemVer$7(j,_e));var compare_1=compare$b;const compare$a=compare_1,rcompare$1=(a,j,_e)=>compare$a(j,a,_e);var rcompare_1=rcompare$1;const compare$9=compare_1,compareLoose$1=(a,j)=>compare$9(a,j,!0);var compareLoose_1=compareLoose$1;const SemVer$6=semver$2,compareBuild$3=(a,j,_e)=>{const et=new SemVer$6(a,_e),tt=new SemVer$6(j,_e);return et.compare(tt)||et.compareBuild(tt)};var compareBuild_1=compareBuild$3;const compareBuild$2=compareBuild_1,sort$1=(a,j)=>a.sort((_e,et)=>compareBuild$2(_e,et,j));var sort_1=sort$1;const compareBuild$1=compareBuild_1,rsort$1=(a,j)=>a.sort((_e,et)=>compareBuild$1(et,_e,j));var rsort_1=rsort$1;const compare$8=compare_1,gt$4=(a,j,_e)=>compare$8(a,j,_e)>0;var gt_1=gt$4;const compare$7=compare_1,lt$3=(a,j,_e)=>compare$7(a,j,_e)<0;var lt_1=lt$3;const compare$6=compare_1,eq$4=(a,j,_e)=>compare$6(a,j,_e)===0;var eq_1=eq$4;const compare$5=compare_1,neq$2=(a,j,_e)=>compare$5(a,j,_e)!==0;var neq_1=neq$2;const compare$4=compare_1,gte$3=(a,j,_e)=>compare$4(a,j,_e)>=0;var gte_1=gte$3;const compare$3=compare_1,lte$3=(a,j,_e)=>compare$3(a,j,_e)<=0;var lte_1=lte$3;const eq$3=eq_1,neq$1=neq_1,gt$3=gt_1,gte$2=gte_1,lt$2=lt_1,lte$2=lte_1,cmp$1=(a,j,_e,et)=>{switch(j){case"===":return typeof a=="object"&&(a=a.version),typeof _e=="object"&&(_e=_e.version),a===_e;case"!==":return typeof a=="object"&&(a=a.version),typeof _e=="object"&&(_e=_e.version),a!==_e;case"":case"=":case"==":return eq$3(a,_e,et);case"!=":return neq$1(a,_e,et);case">":return gt$3(a,_e,et);case">=":return gte$2(a,_e,et);case"<":return lt$2(a,_e,et);case"<=":return lte$2(a,_e,et);default:throw new TypeError(`Invalid operator: ${j}`)}};var cmp_1=cmp$1;const SemVer$5=semver$2,parse$8=parse_1,{safeRe:re,t}=reExports,coerce$1=(a,j)=>{if(a instanceof SemVer$5)return a;if(typeof a=="number"&&(a=String(a)),typeof a!="string")return null;j=j||{};let _e=null;if(!j.rtl)_e=a.match(j.includePrerelease?re[t.COERCEFULL]:re[t.COERCE]);else{const ot=j.includePrerelease?re[t.COERCERTLFULL]:re[t.COERCERTL];let ct;for(;(ct=ot.exec(a))&&(!_e||_e.index+_e[0].length!==a.length);)(!_e||ct.index+ct[0].length!==_e.index+_e[0].length)&&(_e=ct),ot.lastIndex=ct.index+ct[1].length+ct[2].length;ot.lastIndex=-1}if(_e===null)return null;const et=_e[2],tt=_e[3]||"0",nt=_e[4]||"0",rt=j.includePrerelease&&_e[5]?`-${_e[5]}`:"",it=j.includePrerelease&&_e[6]?`+${_e[6]}`:"";return parse$8(`${et}.${tt}.${nt}${rt}${it}`,j)};var coerce_1=coerce$1;class LRUCache{constructor(){this.max=1e3,this.map=new Map}get(j){const _e=this.map.get(j);if(_e!==void 0)return this.map.delete(j),this.map.set(j,_e),_e}delete(j){return this.map.delete(j)}set(j,_e){if(!this.delete(j)&&_e!==void 0){if(this.map.size>=this.max){const tt=this.map.keys().next().value;this.delete(tt)}this.map.set(j,_e)}return this}}var lrucache=LRUCache,range,hasRequiredRange;function requireRange(){if(hasRequiredRange)return range;hasRequiredRange=1;const a=/\s+/g;class j{constructor(ht,$t){if($t=tt($t),ht instanceof j)return ht.loose===!!$t.loose&&ht.includePrerelease===!!$t.includePrerelease?ht:new j(ht.raw,$t);if(ht instanceof nt)return this.raw=ht.value,this.set=[[ht]],this.formatted=void 0,this;if(this.options=$t,this.loose=!!$t.loose,this.includePrerelease=!!$t.includePrerelease,this.raw=ht.trim().replace(a," "),this.set=this.raw.split("||").map(Tt=>this.parseRange(Tt.trim())).filter(Tt=>Tt.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const Tt=this.set[0];if(this.set=this.set.filter(At=>!Et(At[0])),this.set.length===0)this.set=[Tt];else if(this.set.length>1){for(const At of this.set)if(At.length===1&&Rt(At[0])){this.set=[At];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let ht=0;ht<this.set.length;ht++){ht>0&&(this.formatted+="||");const $t=this.set[ht];for(let Tt=0;Tt<$t.length;Tt++)Tt>0&&(this.formatted+=" "),this.formatted+=$t[Tt].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(ht){const Tt=((this.options.includePrerelease&&mt)|(this.options.loose&&vt))+":"+ht,At=et.get(Tt);if(At)return At;const kt=this.options.loose,Ct=kt?ot[ct.HYPHENRANGELOOSE]:ot[ct.HYPHENRANGE];ht=ht.replace(Ct,Mt(this.options.includePrerelease)),rt("hyphen replace",ht),ht=ht.replace(ot[ct.COMPARATORTRIM],ut),rt("comparator trim",ht),ht=ht.replace(ot[ct.TILDETRIM],dt),rt("tilde trim",ht),ht=ht.replace(ot[ct.CARETTRIM],pt),rt("caret trim",ht);let It=ht.split(" ").map(Ut=>Pt(Ut,this.options)).join(" ").split(/\s+/).map(Ut=>Qt(Ut,this.options));kt&&(It=It.filter(Ut=>(rt("loose invalid filter",Ut,this.options),!!Ut.match(ot[ct.COMPARATORLOOSE])))),rt("range list",It);const bt=new Map,Lt=It.map(Ut=>new nt(Ut,this.options));for(const Ut of Lt){if(Et(Ut))return[Ut];bt.set(Ut.value,Ut)}bt.size>1&&bt.has("")&&bt.delete("");const sn=[...bt.values()];return et.set(Tt,sn),sn}intersects(ht,$t){if(!(ht instanceof j))throw new TypeError("a Range is required");return this.set.some(Tt=>xt(Tt,$t)&&ht.set.some(At=>xt(At,$t)&&Tt.every(kt=>At.every(Ct=>kt.intersects(Ct,$t)))))}test(ht){if(!ht)return!1;if(typeof ht=="string")try{ht=new it(ht,this.options)}catch{return!1}for(let $t=0;$t<this.set.length;$t++)if(wt(this.set[$t],ht,this.options))return!0;return!1}}range=j;const _e=lrucache,et=new _e,tt=parseOptions_1,nt=requireComparator(),rt=debug_1$1,it=semver$2,{safeRe:ot,t:ct,comparatorTrimReplace:ut,tildeTrimReplace:dt,caretTrimReplace:pt}=reExports,{FLAG_INCLUDE_PRERELEASE:mt,FLAG_LOOSE:vt}=constants$1,Et=ft=>ft.value==="<0.0.0-0",Rt=ft=>ft.value==="",xt=(ft,ht)=>{let $t=!0;const Tt=ft.slice();let At=Tt.pop();for(;$t&&Tt.length;)$t=Tt.every(kt=>At.intersects(kt,ht)),At=Tt.pop();return $t},Pt=(ft,ht)=>(rt("comp",ft,ht),ft=Nt(ft,ht),rt("caret",ft),ft=Ft(ft,ht),rt("tildes",ft),ft=nn(ft,ht),rt("xrange",ft),ft=hn(ft,ht),rt("stars",ft),ft),Dt=ft=>!ft||ft.toLowerCase()==="x"||ft==="*",Ft=(ft,ht)=>ft.trim().split(/\s+/).map($t=>zt($t,ht)).join(" "),zt=(ft,ht)=>{const $t=ht.loose?ot[ct.TILDELOOSE]:ot[ct.TILDE];return ft.replace($t,(Tt,At,kt,Ct,It)=>{rt("tilde",ft,Tt,At,kt,Ct,It);let bt;return Dt(At)?bt="":Dt(kt)?bt=`>=${At}.0.0 <${+At+1}.0.0-0`:Dt(Ct)?bt=`>=${At}.${kt}.0 <${At}.${+kt+1}.0-0`:It?(rt("replaceTilde pr",It),bt=`>=${At}.${kt}.${Ct}-${It} <${At}.${+kt+1}.0-0`):bt=`>=${At}.${kt}.${Ct} <${At}.${+kt+1}.0-0`,rt("tilde return",bt),bt})},Nt=(ft,ht)=>ft.trim().split(/\s+/).map($t=>Vt($t,ht)).join(" "),Vt=(ft,ht)=>{rt("caret",ft,ht);const $t=ht.loose?ot[ct.CARETLOOSE]:ot[ct.CARET],Tt=ht.includePrerelease?"-0":"";return ft.replace($t,(At,kt,Ct,It,bt)=>{rt("caret",ft,At,kt,Ct,It,bt);let Lt;return Dt(kt)?Lt="":Dt(Ct)?Lt=`>=${kt}.0.0${Tt} <${+kt+1}.0.0-0`:Dt(It)?kt==="0"?Lt=`>=${kt}.${Ct}.0${Tt} <${kt}.${+Ct+1}.0-0`:Lt=`>=${kt}.${Ct}.0${Tt} <${+kt+1}.0.0-0`:bt?(rt("replaceCaret pr",bt),kt==="0"?Ct==="0"?Lt=`>=${kt}.${Ct}.${It}-${bt} <${kt}.${Ct}.${+It+1}-0`:Lt=`>=${kt}.${Ct}.${It}-${bt} <${kt}.${+Ct+1}.0-0`:Lt=`>=${kt}.${Ct}.${It}-${bt} <${+kt+1}.0.0-0`):(rt("no pr"),kt==="0"?Ct==="0"?Lt=`>=${kt}.${Ct}.${It}${Tt} <${kt}.${Ct}.${+It+1}-0`:Lt=`>=${kt}.${Ct}.${It}${Tt} <${kt}.${+Ct+1}.0-0`:Lt=`>=${kt}.${Ct}.${It} <${+kt+1}.0.0-0`),rt("caret return",Lt),Lt})},nn=(ft,ht)=>(rt("replaceXRanges",ft,ht),ft.split(/\s+/).map($t=>fn($t,ht)).join(" ")),fn=(ft,ht)=>{ft=ft.trim();const $t=ht.loose?ot[ct.XRANGELOOSE]:ot[ct.XRANGE];return ft.replace($t,(Tt,At,kt,Ct,It,bt)=>{rt("xRange",ft,Tt,At,kt,Ct,It,bt);const Lt=Dt(kt),sn=Lt||Dt(Ct),Ut=sn||Dt(It),Zt=Ut;return At==="="&&Zt&&(At=""),bt=ht.includePrerelease?"-0":"",Lt?At===">"||At==="<"?Tt="<0.0.0-0":Tt="*":At&&Zt?(sn&&(Ct=0),It=0,At===">"?(At=">=",sn?(kt=+kt+1,Ct=0,It=0):(Ct=+Ct+1,It=0)):At==="<="&&(At="<",sn?kt=+kt+1:Ct=+Ct+1),At==="<"&&(bt="-0"),Tt=`${At+kt}.${Ct}.${It}${bt}`):sn?Tt=`>=${kt}.0.0${bt} <${+kt+1}.0.0-0`:Ut&&(Tt=`>=${kt}.${Ct}.0${bt} <${kt}.${+Ct+1}.0-0`),rt("xRange return",Tt),Tt})},hn=(ft,ht)=>(rt("replaceStars",ft,ht),ft.trim().replace(ot[ct.STAR],"")),Qt=(ft,ht)=>(rt("replaceGTE0",ft,ht),ft.trim().replace(ot[ht.includePrerelease?ct.GTE0PRE:ct.GTE0],"")),Mt=ft=>(ht,$t,Tt,At,kt,Ct,It,bt,Lt,sn,Ut,Zt)=>(Dt(Tt)?$t="":Dt(At)?$t=`>=${Tt}.0.0${ft?"-0":""}`:Dt(kt)?$t=`>=${Tt}.${At}.0${ft?"-0":""}`:Ct?$t=`>=${$t}`:$t=`>=${$t}${ft?"-0":""}`,Dt(Lt)?bt="":Dt(sn)?bt=`<${+Lt+1}.0.0-0`:Dt(Ut)?bt=`<${Lt}.${+sn+1}.0-0`:Zt?bt=`<=${Lt}.${sn}.${Ut}-${Zt}`:ft?bt=`<${Lt}.${sn}.${+Ut+1}-0`:bt=`<=${bt}`,`${$t} ${bt}`.trim()),wt=(ft,ht,$t)=>{for(let Tt=0;Tt<ft.length;Tt++)if(!ft[Tt].test(ht))return!1;if(ht.prerelease.length&&!$t.includePrerelease){for(let Tt=0;Tt<ft.length;Tt++)if(rt(ft[Tt].semver),ft[Tt].semver!==nt.ANY&&ft[Tt].semver.prerelease.length>0){const At=ft[Tt].semver;if(At.major===ht.major&&At.minor===ht.minor&&At.patch===ht.patch)return!0}return!1}return!0};return range}var comparator,hasRequiredComparator;function requireComparator(){if(hasRequiredComparator)return comparator;hasRequiredComparator=1;const a=Symbol("SemVer ANY");class j{static get ANY(){return a}constructor(ut,dt){if(dt=_e(dt),ut instanceof j){if(ut.loose===!!dt.loose)return ut;ut=ut.value}ut=ut.trim().split(/\s+/).join(" "),rt("comparator",ut,dt),this.options=dt,this.loose=!!dt.loose,this.parse(ut),this.semver===a?this.value="":this.value=this.operator+this.semver.version,rt("comp",this)}parse(ut){const dt=this.options.loose?et[tt.COMPARATORLOOSE]:et[tt.COMPARATOR],pt=ut.match(dt);if(!pt)throw new TypeError(`Invalid comparator: ${ut}`);this.operator=pt[1]!==void 0?pt[1]:"",this.operator==="="&&(this.operator=""),pt[2]?this.semver=new it(pt[2],this.options.loose):this.semver=a}toString(){return this.value}test(ut){if(rt("Comparator.test",ut,this.options.loose),this.semver===a||ut===a)return!0;if(typeof ut=="string")try{ut=new it(ut,this.options)}catch{return!1}return nt(ut,this.operator,this.semver,this.options)}intersects(ut,dt){if(!(ut instanceof j))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new ot(ut.value,dt).test(this.value):ut.operator===""?ut.value===""?!0:new ot(this.value,dt).test(ut.semver):(dt=_e(dt),dt.includePrerelease&&(this.value==="<0.0.0-0"||ut.value==="<0.0.0-0")||!dt.includePrerelease&&(this.value.startsWith("<0.0.0")||ut.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&ut.operator.startsWith(">")||this.operator.startsWith("<")&&ut.operator.startsWith("<")||this.semver.version===ut.semver.version&&this.operator.includes("=")&&ut.operator.includes("=")||nt(this.semver,"<",ut.semver,dt)&&this.operator.startsWith(">")&&ut.operator.startsWith("<")||nt(this.semver,">",ut.semver,dt)&&this.operator.startsWith("<")&&ut.operator.startsWith(">")))}}comparator=j;const _e=parseOptions_1,{safeRe:et,t:tt}=reExports,nt=cmp_1,rt=debug_1$1,it=semver$2,ot=requireRange();return comparator}const Range$9=requireRange(),satisfies$4=(a,j,_e)=>{try{j=new Range$9(j,_e)}catch{return!1}return j.test(a)};var satisfies_1=satisfies$4;const Range$8=requireRange(),toComparators$1=(a,j)=>new Range$8(a,j).set.map(_e=>_e.map(et=>et.value).join(" ").trim().split(" "));var toComparators_1=toComparators$1;const SemVer$4=semver$2,Range$7=requireRange(),maxSatisfying$1=(a,j,_e)=>{let et=null,tt=null,nt=null;try{nt=new Range$7(j,_e)}catch{return null}return a.forEach(rt=>{nt.test(rt)&&(!et||tt.compare(rt)===-1)&&(et=rt,tt=new SemVer$4(et,_e))}),et};var maxSatisfying_1=maxSatisfying$1;const SemVer$3=semver$2,Range$6=requireRange(),minSatisfying$1=(a,j,_e)=>{let et=null,tt=null,nt=null;try{nt=new Range$6(j,_e)}catch{return null}return a.forEach(rt=>{nt.test(rt)&&(!et||tt.compare(rt)===1)&&(et=rt,tt=new SemVer$3(et,_e))}),et};var minSatisfying_1=minSatisfying$1;const SemVer$2=semver$2,Range$5=requireRange(),gt$2=gt_1,minVersion$1=(a,j)=>{a=new Range$5(a,j);let _e=new SemVer$2("0.0.0");if(a.test(_e)||(_e=new SemVer$2("0.0.0-0"),a.test(_e)))return _e;_e=null;for(let et=0;et<a.set.length;++et){const tt=a.set[et];let nt=null;tt.forEach(rt=>{const it=new SemVer$2(rt.semver.version);switch(rt.operator){case">":it.prerelease.length===0?it.patch++:it.prerelease.push(0),it.raw=it.format();case"":case">=":(!nt||gt$2(it,nt))&&(nt=it);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${rt.operator}`)}}),nt&&(!_e||gt$2(_e,nt))&&(_e=nt)}return _e&&a.test(_e)?_e:null};var minVersion_1=minVersion$1;const Range$4=requireRange(),validRange$1=(a,j)=>{try{return new Range$4(a,j).range||"*"}catch{return null}};var valid$1=validRange$1;const SemVer$1=semver$2,Comparator$2=requireComparator(),{ANY:ANY$1}=Comparator$2,Range$3=requireRange(),satisfies$3=satisfies_1,gt$1=gt_1,lt$1=lt_1,lte$1=lte_1,gte$1=gte_1,outside$3=(a,j,_e,et)=>{a=new SemVer$1(a,et),j=new Range$3(j,et);let tt,nt,rt,it,ot;switch(_e){case">":tt=gt$1,nt=lte$1,rt=lt$1,it=">",ot=">=";break;case"<":tt=lt$1,nt=gte$1,rt=gt$1,it="<",ot="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies$3(a,j,et))return!1;for(let ct=0;ct<j.set.length;++ct){const ut=j.set[ct];let dt=null,pt=null;if(ut.forEach(mt=>{mt.semver===ANY$1&&(mt=new Comparator$2(">=0.0.0")),dt=dt||mt,pt=pt||mt,tt(mt.semver,dt.semver,et)?dt=mt:rt(mt.semver,pt.semver,et)&&(pt=mt)}),dt.operator===it||dt.operator===ot||(!pt.operator||pt.operator===it)&&nt(a,pt.semver))return!1;if(pt.operator===ot&&rt(a,pt.semver))return!1}return!0};var outside_1=outside$3;const outside$2=outside_1,gtr$1=(a,j,_e)=>outside$2(a,j,">",_e);var gtr_1=gtr$1;const outside$1=outside_1,ltr$1=(a,j,_e)=>outside$1(a,j,"<",_e);var ltr_1=ltr$1;const Range$2=requireRange(),intersects$1=(a,j,_e)=>(a=new Range$2(a,_e),j=new Range$2(j,_e),a.intersects(j,_e));var intersects_1=intersects$1;const satisfies$2=satisfies_1,compare$2=compare_1;var simplify=(a,j,_e)=>{const et=[];let tt=null,nt=null;const rt=a.sort((ut,dt)=>compare$2(ut,dt,_e));for(const ut of rt)satisfies$2(ut,j,_e)?(nt=ut,tt||(tt=ut)):(nt&&et.push([tt,nt]),nt=null,tt=null);tt&&et.push([tt,null]);const it=[];for(const[ut,dt]of et)ut===dt?it.push(ut):!dt&&ut===rt[0]?it.push("*"):dt?ut===rt[0]?it.push(`<=${dt}`):it.push(`${ut} - ${dt}`):it.push(`>=${ut}`);const ot=it.join(" || "),ct=typeof j.raw=="string"?j.raw:String(j);return ot.length<ct.length?ot:j};const Range$1=requireRange(),Comparator$1=requireComparator(),{ANY}=Comparator$1,satisfies$1=satisfies_1,compare$1=compare_1,subset$1=(a,j,_e={})=>{if(a===j)return!0;a=new Range$1(a,_e),j=new Range$1(j,_e);let et=!1;e:for(const tt of a.set){for(const nt of j.set){const rt=simpleSubset(tt,nt,_e);if(et=et||rt!==null,rt)continue e}if(et)return!1}return!0},minimumVersionWithPreRelease=[new Comparator$1(">=0.0.0-0")],minimumVersion=[new Comparator$1(">=0.0.0")],simpleSubset=(a,j,_e)=>{if(a===j)return!0;if(a.length===1&&a[0].semver===ANY){if(j.length===1&&j[0].semver===ANY)return!0;_e.includePrerelease?a=minimumVersionWithPreRelease:a=minimumVersion}if(j.length===1&&j[0].semver===ANY){if(_e.includePrerelease)return!0;j=minimumVersion}const et=new Set;let tt,nt;for(const mt of a)mt.operator===">"||mt.operator===">="?tt=higherGT(tt,mt,_e):mt.operator==="<"||mt.operator==="<="?nt=lowerLT(nt,mt,_e):et.add(mt.semver);if(et.size>1)return null;let rt;if(tt&&nt){if(rt=compare$1(tt.semver,nt.semver,_e),rt>0)return null;if(rt===0&&(tt.operator!==">="||nt.operator!=="<="))return null}for(const mt of et){if(tt&&!satisfies$1(mt,String(tt),_e)||nt&&!satisfies$1(mt,String(nt),_e))return null;for(const vt of j)if(!satisfies$1(mt,String(vt),_e))return!1;return!0}let it,ot,ct,ut,dt=nt&&!_e.includePrerelease&&nt.semver.prerelease.length?nt.semver:!1,pt=tt&&!_e.includePrerelease&&tt.semver.prerelease.length?tt.semver:!1;dt&&dt.prerelease.length===1&&nt.operator==="<"&&dt.prerelease[0]===0&&(dt=!1);for(const mt of j){if(ut=ut||mt.operator===">"||mt.operator===">=",ct=ct||mt.operator==="<"||mt.operator==="<=",tt){if(pt&&mt.semver.prerelease&&mt.semver.prerelease.length&&mt.semver.major===pt.major&&mt.semver.minor===pt.minor&&mt.semver.patch===pt.patch&&(pt=!1),mt.operator===">"||mt.operator===">="){if(it=higherGT(tt,mt,_e),it===mt&&it!==tt)return!1}else if(tt.operator===">="&&!satisfies$1(tt.semver,String(mt),_e))return!1}if(nt){if(dt&&mt.semver.prerelease&&mt.semver.prerelease.length&&mt.semver.major===dt.major&&mt.semver.minor===dt.minor&&mt.semver.patch===dt.patch&&(dt=!1),mt.operator==="<"||mt.operator==="<="){if(ot=lowerLT(nt,mt,_e),ot===mt&&ot!==nt)return!1}else if(nt.operator==="<="&&!satisfies$1(nt.semver,String(mt),_e))return!1}if(!mt.operator&&(nt||tt)&&rt!==0)return!1}return!(tt&&ct&&!nt&&rt!==0||nt&&ut&&!tt&&rt!==0||pt||dt)},higherGT=(a,j,_e)=>{if(!a)return j;const et=compare$1(a.semver,j.semver,_e);return et>0?a:et<0||j.operator===">"&&a.operator===">="?j:a},lowerLT=(a,j,_e)=>{if(!a)return j;const et=compare$1(a.semver,j.semver,_e);return et<0?a:et>0||j.operator==="<"&&a.operator==="<="?j:a};var subset_1=subset$1;const internalRe=reExports,constants=constants$1,SemVer=semver$2,identifiers=identifiers$1,parse$7=parse_1,valid=valid_1,clean=clean_1,inc=inc_1,diff=diff_1,major=major_1,minor=minor_1,patch=patch_1,prerelease=prerelease_1,compare=compare_1,rcompare=rcompare_1,compareLoose=compareLoose_1,compareBuild=compareBuild_1,sort=sort_1,rsort=rsort_1,gt=gt_1,lt=lt_1,eq$2=eq_1,neq=neq_1,gte=gte_1,lte=lte_1,cmp=cmp_1,coerce=coerce_1,Comparator=requireComparator(),Range=requireRange(),satisfies=satisfies_1,toComparators=toComparators_1,maxSatisfying=maxSatisfying_1,minSatisfying=minSatisfying_1,minVersion=minVersion_1,validRange=valid$1,outside=outside_1,gtr=gtr_1,ltr=ltr_1,intersects=intersects_1,simplifyRange=simplify,subset=subset_1;var semver={parse:parse$7,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq:eq$2,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers};const semver$1=getDefaultExportFromCjs$1(semver),BLACK_LIST=[`${AUTH_SERVICE_PREFIX}/connect`,`${AUTH_SERVICE_PREFIX}/login`,`${AUTH_SERVICE_PREFIX}/invite`,`${AUTH_SERVICE_PREFIX}/issue-passport`,`${AUTH_SERVICE_PREFIX}/oauth/*`],blackListRoute=BLACK_LIST.map(a=>pathToRegexp$1(a,[]));async function login(){const a=(window==null?void 0:window.blocklet)||{},j=window.location.pathname,{componentId:_e,CHAIN_TYPE:et="arcblock",appPid:tt}=a;if(blackListRoute.some(it=>it.exec(j)))return null;const rt=getApps();try{const it=`${window.location.origin}${AUTH_SERVICE_PREFIX}/api/user/loginByWallet`;return await default_1$3.asyncCall("arcLogin",{target:it,chainType:et,appPid:tt,componentId:_e,apps:rt.map(ct=>{let ut=ct==null?void 0:ct.appLogo;return isUrl(ut)||(ut=joinURL(ct.appUrl,ut)),{appName:ct.appName,appPid:ct.appPid,appUrl:ct.appUrl,appLogo:ut,sourceAppPid:ct.sourceAppPid}})})}catch(it){return console.error(it),null}}async function getVisitorId(){return await default_1$3.asyncCall("arcGetVisitorId")}function checkEnableAutoLogin({platform:a,version:j}={}){return!!(a==="ios"&&j&&semver$1.gte(j,"4.15.6")||a==="android"&&j&&semver$1.gte(j,"4.15.1"))}async function didSpacesIsRequired(a){var tt;if((tt=a==null?void 0:a.didSpace)!=null&&tt.endpoint||!window.blocklet||window.self!==window.top)return!1;const j=getWalletDid(a);if(isEmpty$1(j))return!1;const{componentMountPoints:_e}=window.blocklet,[,et]=window.blocklet.componentId.split("/");return _e.some(nt=>{var rt;return((rt=nt==null?void 0:nt.capabilities)==null?void 0:rt.didSpace)==="requiredOnConnect"&&et===nt.did})}const{Provider:Provider$4,Consumer:Consumer$4}=SessionContext$1,didConnectTimeoutError={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"},waitForDidConnect={en:"DID Connect is already opened, please wait for it to complete",zh:"DID Connect 已打开,请等待完成"};function createSessionContext(a=SESSION_TOKEN_STORAGE_KEY,j="ls",_e={},et={}){var ct;let tt="/";(ct=globalThis==null?void 0:globalThis.blocklet)!=null&&ct.prefix&&(tt=globalThis.blocklet.prefix),typeof et=="boolean"&&(et={appendAuthServicePrefix:et,extraParams:{}}),defaultsDeep$1(et,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:REFRESH_TOKEN_STORAGE_KEY});const nt=createStorage(a,j,_e),rt=createStorage(et.refreshTokenStorageKey,"ls");function it(ut){var Cn,On;const{connectApi:dt,connectHolder:pt}=useConnect(),mt=useBrowser(),vt=useReactive({extraParams:{},options:{},currentLocale:ut.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof ut.autoConnect=="boolean"?ut.autoConnect:!!ut.autoLogin},get prefix(){return et.appendAuthServicePrefix||ut.appendAuthServicePrefix?joinURL(AUTH_SERVICE_PREFIX,ut.prefix):ut.prefix}}),Et=useReactive({action:ut.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:""}),Rt=useCreation(()=>ut.locale||vt.currentLocale||getBrowserLang(),[ut.locale,vt.currentLocale]),{confirmApi:xt,confirmHolder:Pt}=useConfirm(),Dt=useMemoizedFn(()=>{if(Et.open){const Vn=waitForDidConnect[Rt]||waitForDidConnect.en;throw Toast$1.warning(Vn),new Error(Vn)}}),Ft=useCreation(()=>new EventEmitter$6,[]),zt=useMemoizedFn((Vn,Nn,Un)=>{const ar={login:[EVENTS.LOGIN,EVENTS.CANCEL_LOGIN],"bind-wallet":[EVENTS.BIND_WALLET,EVENTS.CANCEL_BIND_WALLET],"switch-passport":[EVENTS.SWITCH_PASSPORT,EVENTS.CANCEL_SWITCH_PASSPORT],"switch-profile":[EVENTS.SWITCH_PROFILE,EVENTS.CANCEL_SWITCH_PROFILE],"switch-did":[EVENTS.LOGIN,EVENTS.CANCEL_LOGIN]};if(!Object.keys(ar).includes(Vn))return;const er=async(...or)=>{isFunction$8(Nn)&&await Nn(...or),Ft.emit(Vn,...or)};Ft.once(ar[Vn][0],er),Ft.once(ar[Vn][1],async(...or)=>{isFunction$8(er)&&Ft.off(ar[Vn][0],er),isFunction$8(Un)&&await Un(...or),Ft.emit(`cancel-${Vn}`,...or)})}),Nt=usePrevious(Et.initialized,(Vn,Nn)=>Vn!==Nn||Vn===!0&&Nn===!0),{handleRefreshUser:Vt,handleRefreshToken:nn,renewToken:fn,clearSession:hn,handleLoginResult:Qt,decrypt:Mt,service:wt,getSessionToken:ft,getRefreshToken:ht,setRefreshToken:$t,setSessionToken:Tt}=useSessionToken({state:Et,pageState:vt,sessionTokenStorage:nt,refreshTokenStorage:rt,serviceHost:ut.serviceHost,apiOptions:ut.apiOptions,lazyRefreshToken:ut.lazyRefreshToken}),At=useMemoizedFn((Vn,Nn={},Un={})=>{Dt();const ar=Vn;typeof ar=="object"&&(Vn=ar.onSuccess,Nn=ar.extraParams||{},Un=ar.options||{},Un.origin=ar.origin||""),(!Et.user||Un.origin==="switch-did")&&(Un.origin==="switch-did"?zt("switch-did",Vn,ar==null?void 0:ar.onCancel):zt("login",Vn,ar==null?void 0:ar.onCancel),vt.extraParams=Nn,vt.options=Un,Et.action="login",Fn())}),kt=useMemoizedFn(async(Vn,Nn={},Un={})=>{var ur;Dt();const ar=Vn;typeof ar=="object"&&(Vn=ar.onSuccess,Nn=ar.extraParams||{},Un=ar.options||{});const{params:er}=await decodeUrlParams();if(isUndefined$2(Nn==null?void 0:Nn.forceConnected)&&(er!=null&&er.forceConnected)&&(Nn.forceConnected=er.forceConnected,isUndefined$2(Un.showQuickConnect)&&(Un.showQuickConnect=!1)),isUndefined$2(Nn==null?void 0:Nn.sourceAppPid)&&!isUndefined$2(er==null?void 0:er.sourceAppPid)&&(Nn.sourceAppPid=er.sourceAppPid),(Nn==null?void 0:Nn.openMode)==="redirect"){const Fr=(Nn==null?void 0:Nn.redirect)||"/",xr=new URL(`${AUTH_SERVICE_PREFIX}/login`,window.location.origin);xr.searchParams.set("redirect",Fr),Nn!=null&&Nn.forceConnected&&xr.searchParams.set("forceConnected",Nn==null?void 0:Nn.forceConnected),isUndefined$2(Nn==null?void 0:Nn.sourceAppPid)||xr.searchParams.set("sourceAppPid",Nn==null?void 0:Nn.sourceAppPid),Un!=null&&Un.origin&&xr.searchParams.set("origin",Un.origin),window.location.href=xr.href;return}let or=Nn==null?void 0:Nn.sourceAppPid;isUndefined$2(or)&&qn&&(or=Qn.appPid),await pWaitFor$1(()=>Et.initialized),typeof Un=="string"&&(Un={origin:Un});const Dr=cloneDeep$1(Nn);vt.allowWallet=void 0;const _r=(Dr==null?void 0:Dr.openMode)||((ur=ut==null?void 0:ut.extraParams)==null?void 0:ur.openMode);isUndefined$2(_r)?vt.openMode="window":vt.openMode=_r,or?Et.baseUrl=globalThis.blocklet.appUrl:Et.baseUrl="",At(Vn,Dr,Un)}),Ct=getVisitorId$2(),It=useMemoizedFn(async Vn=>{const Nn=joinURL(AUTH_SERVICE_PREFIX,"/api/user/logout");await fetch(Nn,{method:"POST",body:JSON.stringify({visitorId:Ct}),headers:{"Content-Type":"application/json"}}),hn(),Rn(),Et.user=null,Et.provider="",Et.walletOS="",Et.error="",Et.loading=!1,Ft.emit("logout"),typeof Vn=="function"&&Vn()}),{userSessions:bt,refresh:Lt,loaded:sn,loginUserSession:Ut}=useQuickConnect({appPid:getCurrentAppPid(Et.user),loginAppPid:(Cn=globalThis==null?void 0:globalThis.blocklet)==null?void 0:Cn.appPid,sourceAppPid:(On=Et==null?void 0:Et.user)==null?void 0:On.sourceAppPid,autoFetch:!1,fetchAll:!0}),Zt=useMemoizedFn(async()=>{Et!=null&&Et.user||await new Promise(Vn=>{kt(()=>{Vn()})})}),Gt=useMemoizedFn((Vn,Nn={},Un={})=>{Dt();const ar=Vn;typeof ar=="object"&&(Vn=ar.onSuccess,Nn=ar.extraParams||{},Un=ar.options||{}),typeof Un=="string"&&(Un={origin:Un}),Un!=null&&Un.userSession?Ut(Un.userSession).then(er=>{updateConnectedInfo({connected_did:Un.userSession.user.did,connected_pk:Un.userSession.user.pk,connected_wallet_os:Un.userSession.extra.walletOS,connected_app:getAppId$1()},!0),zt("switch-did",Vn),Qt({...er,encrypted:!1}),Vt(!0).then(async()=>{await sleep$1(),Ft.emit(EVENTS.LOGIN,er,Mt,Wt.current),await Kt()})}):(isUndefined$2(Nn==null?void 0:Nn.forceConnected)&&(Nn.forceConnected=!1),kt(Vn,Nn,{...Un,origin:"switch-did"}))}),Yt=useMemoizedFn(async()=>{await new BlockletSDK().user.refreshProfile()}),cn=useMemoizedFn(async(Vn,Nn={})=>{await Zt(),Dt();const Un=Vn;typeof Un=="object"&&(Vn=Un.onSuccess,Nn=Un.extraParams||{}),zt("switch-profile",Vn,Un==null?void 0:Un.onCancel),vt.extraParams=Nn,vt.options={},Et.action="switch-profile",Fn()}),En=useMemoizedFn(async(Vn,Nn={})=>{await Zt(),Dt();const Un=Vn;typeof Un=="object"&&(Vn=Un.onSuccess,Nn=Un.extraParams||{}),zt("switch-passport",Vn,Un==null?void 0:Un.onCancel),vt.extraParams=Nn,vt.options={},Et.action="switch-passport",Fn()}),Ht=useMemoizedFn(async({extraParams:Vn={},onSuccess:Nn=()=>{},...Un}={})=>{await Zt(),Dt(),vt.extraParams={referrer:window.location.href,purpose:"authorize-for-import",...Vn},vt.options={},Et.action="connect-to-did-spaces-for-user",Fn({hideCloseButton:!0,onSuccess:Nn,...Un})}),Ot=useMemoizedFn(async({extraParams:Vn={},onSuccess:Nn={}}={})=>{await Zt(),Ht({extraParams:{purpose:"authorize-for-import",...Vn},onSuccess:Nn,hideCloseButton:!1})}),Kt=useMemoizedFn(async({extraParams:Vn={},onSuccess:Nn={}}={})=>{await Zt(),await didSpacesIsRequired(Et==null?void 0:Et.user)&&Ht({extraParams:{purpose:"authorize-for-full-access",...Vn},onSuccess:Nn})}),Xt=useMemoizedFn(async(Vn,Nn={})=>{if(await Zt(),getWalletDid(Et.user)){Vn({},Mt,Wt.current);return}Dt();const Un=Vn;typeof Un=="object"&&(Vn=Un.onSuccess),zt("bind-wallet",Vn,Un==null?void 0:Un.onCancel),vt.extraParams=Nn,vt.options={},Et.action="bind-wallet",Fn()}),an=useMemoizedFn(async Vn=>{vt.extraParams={},vt.options={},Qt(Vn),Et.loading=!1,await Vt(!0),await sleep$1(),Et.action==="login"?(Ft.emit(EVENTS.LOGIN,Vn,Mt,Wt.current),Kt()):Et.action==="switch-passport"&&Ft.emit(EVENTS.SWITCH_PASSPORT,Vn,Mt,Wt.current)}),_n=useMemoizedFn(Vn=>{vt.extraParams={},vt.options={},Qt(Vn),Et.loading=!1,Vt(!0).then(async()=>{await sleep$1(),Ft.emit(EVENTS.BIND_WALLET,Vn,Mt,Wt.current)})}),yn=useMemoizedFn(()=>{Vt(!0),Ft.emit(EVENTS.CONNECT_TO_DID_SPACE_FOR_FULL_ACCESS)}),dn=useMemoizedFn(Vn=>{vt.extraParams={},vt.options={},Et.loading=!1,Vt(!0).then(async()=>{await sleep$1(),Ft.emit(EVENTS.SWITCH_PROFILE,Vn,Mt,Wt.current)})}),$n=useMemoizedFn(Vn=>{vt.extraParams={},vt.options={},Rn();const Nn={login:EVENTS.CANCEL_LOGIN,"switch-profile":EVENTS.CANCEL_SWITCH_PROFILE,"switch-passport":EVENTS.CANCEL_SWITCH_PASSPORT,"bind-wallet":EVENTS.CANCEL_BIND_WALLET};Ft.emit(Nn[Vn])}),wn=useMemoizedFn((Vn,...Nn)=>{try{In[Vn](...Nn)}catch(Un){console.error("Catch error in onSuccess",{action:Vn,args:Nn,err:Un})}}),{federatedMaster:Sn,federatedEnabled:qn,master:Qn}=useFederated({locale:Rt,decrypt:Mt,login:At,logout:It,handleLoginResult:Qt,handleRefreshUser:Vt,setRefreshToken:$t,setSessionToken:Tt}),{checkMatch:jn}=useProtectedRoutes({protectedRoutes:ut.protectedRoutes||[]}),zn=useLatest(bt),vn=useMemoizedFn(async()=>(sn||(await Lt(),await sleep$1()),zn.current)),Rn=useMemoizedFn(()=>{Et.open=!1,dt.close()}),Fn=async(Vn={})=>{var Dr,_r,ur,Fr,xr,yr,Hr;let Nn=Et.action;((Dr=vt==null?void 0:vt.options)==null?void 0:Dr.origin)==="switch-did"&&(Nn=(_r=vt==null?void 0:vt.options)==null?void 0:_r.origin);const Un=translations$2[Nn],ar=Un[Rt]||Un.en,er={...et.extraParams,...ut.extraParams,...vt.extraParams,previousUserDid:(ur=Et==null?void 0:Et.user)==null?void 0:ur.did,email:(Fr=Et==null?void 0:Et.user)==null?void 0:Fr.email};if(Nn==="switch-did"&&(er!=null&&er.forceConnected)){const br=(cr,Pn={})=>translate(translations$2["switch-specified-did"],cr,Rt,"en",Pn);ar.title=br("title"),ar.scan=br("scan",{did:er.forceConnected}),ar.confirm=br("confirm"),ar.success=br("success")}er==null||delete er.openMode;const or={action:Et.action,locale:Rt,hideCloseButton:Vn==null?void 0:Vn.hideCloseButton,extraParams:er,options:{...ut.options||{},...vt.options},checkTimeout:ut.timeout,webWalletUrl:ut.webWalletUrl,messages:ar,useSocket:ut.useSocket,...omit$1(ut,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...pick$2(vt.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:vt.prefix,allowWallet:isUndefined$2(vt.allowWallet)?Et.action!=="login"||(((xr=globalThis.blocklet)==null?void 0:xr.DID_CONNECT_ALLOW_WALLET)||"1")==="1":vt.allowWallet,onSuccess:async(...br)=>{wn(Et.action,...br),isFunction$8(Vn==null?void 0:Vn.onSuccess)&&await Vn.onSuccess(...br),Et.open=!1},onClose(...br){$n(Et.action,...br)},onError(br){console.error(br)}};if(Et.open=!0,["login"].includes(Et.action)&&vt.openMode==="window"&&!mt.wallet)try{const br={...or,baseUrl:window.location.origin};isUrl(vt.prefix)||(br.prefix=joinURL(window.location.origin,ut.serviceHost==="/"?"":ut.serviceHost,vt.prefix)),(yr=br.extraParams)!=null&&yr.provider||(br.extraParams.provider=((Hr=Et==null?void 0:Et.user)==null?void 0:Hr.provider)||"wallet"),await dt.openPopup(br,{locale:Rt})}catch(br){br instanceof NotOpenError&&Rn(),br.message==="Timeout"?Toast$1.error(didConnectTimeoutError[Rt]||didConnectTimeoutError.en):console.error(br)}else dt.open(or)},Dn=useMemoizedFn(async()=>{const{params:Vn,url:Nn}=await decodeUrlParams();if(Vn){const{switchBehavior:Un,forceConnected:ar,sourceAppPid:er,showClose:or}=Vn;ar===Et.user.did?window.history.replaceState(null,"trim",Nn):Un==="required"?Gt(()=>{},{openMode:"redirect",redirect:Nn,sourceAppPid:er,forceConnected:ar}):Un==="disabled"?window.history.replaceState(null,"trim",Nn):xt.open({title:translations$2.switchAccountDialog[Rt].title,content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:{textAlign:"center",mb:2},children:translations$2.switchAccountDialog[Rt].description}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",color:colors$1.foregroundsFgBase},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1},children:[jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{did:Et.user.did,shape:"circle",variant:"circle",size:80}),jsxRuntimeExports.jsx(DID,{did:Et.user.did,showAvatar:!1,compact:!0,responsive:!1}),translations$2.switchAccountDialog[Rt].currentAccount]}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",justifyContent:"center",px:2},children:jsxRuntimeExports.jsx(Box,{component:Icon,icon:data$v,fontSize:24,color:colors$1.foregroundsFgMuted,sx:{animation:"right 2.5s linear infinite","@keyframes right":{"0%":{transform:"translateX(-3px)",opacity:0},"60%":{transform:"translateX(3px)",opacity:1},"100%":{transform:"translateX(0px)",opacity:0}}}})}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1,fontWeight:500},children:[jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{did:ar,shape:"circle",variant:"circle",size:80}),jsxRuntimeExports.jsx(DID,{did:ar,showAvatar:!1,compact:!0,responsive:!1}),translations$2.switchAccountDialog[Rt].nextAccount]})]})]}),showCloseButton:or,showCancelButton:!1,confirmButtonText:translations$2.switchAccountDialog[Rt].confirm,async onConfirm(Dr){const ur=(await vn()).find(Fr=>Fr.userDid===ar);if(ur){Ut(ur).then(Fr=>{updateConnectedInfo({connected_did:ur.user.did,connected_pk:ur.user.pk,connected_wallet_os:ur.extra.walletOS,connected_app:getAppId$1()},!0),Qt({...Fr,encrypted:!1}),Vt(!0).then(async()=>{await sleep$1(),Ft.emit(EVENTS.LOGIN,Fr,Mt,Wt.current),await Kt()})}),Dr();return}Gt(()=>{Dr(),window.location.replace(Nn)},{sourceAppPid:er,forceConnected:ar,enableSwitchApp:!1},{showQuickConnect:!0})}})}}),ln=useMemoizedFn(async(Vn,Nn)=>{const Un=Object.assign({login:!0,bindWallet:!0,bindDidSpaces:!1},Nn==null?void 0:Nn.requirements),ar=(Nn==null?void 0:Nn.openMode)||"popup";Un.login&&await Zt(),Un.bindWallet&&await new Promise(er=>{Xt(()=>{er()})}),Un.bindDidSpaces&&(await didSpacesIsRequired(Et==null?void 0:Et.user)||await new Promise(er=>{Un.bindDidSpaces==="full"?Kt({onSuccess(){er()}}):Un.bindDidSpaces==="read"&&Ot({onSuccess(){er()}})})),ar==="window"?dt.openPopup(Vn,Nn):ar==="popup"&&dt.open(Vn)}),Jt={...Et,loading:vt.autoConnect&&!Et.user||Et.loading,openDidConnect:ln,login:kt,logout:It,switchDid:Gt,autoSwitchDid:Dn,refreshProfile:Yt,switchProfile:cn,switchPassport:En,connectToDidSpaceForImport:Ot,connectToDidSpaceForFullAccess:Kt,bindWallet:Xt,refresh:Vt,updateConnectedInfo,federatedMaster:Sn,useOAuth,OAuthProvider,OAuthConsumer,OAuthContext,useDid,WrapDid,getUserSessions:vn},Wt=useLatest(Jt),mn={api:wt,events:Ft,storage:nt,connectApi:dt,session:Wt.current},In={login:an,"switch-profile":dn,"switch-passport":an,"bind-wallet":_n,"connect-to-did-spaces-for-user":yn};return useUpdateEffect(()=>{if(Et.initialized){const Vn=!Nt;Ft.emit("change",{user:cloneDeep$1(Et.user),isFirst:Vn})}},[Et.user,Et.initialized,Ft]),useUpdateEffect(()=>{Et.initialized&&Et.user&&Dn()},[Et.initialized]),useMount(async()=>{const Vn=Cookie.get("connected_app"),Nn=getAppId$1();if(ut.autoDisconnect&&Vn&&Nn&&Vn!==Nn){hn(),Et.initialized=!0,vt.autoConnect?Fn():Rn();return}const Un=ft();let ar="web";if(mt.mobile.apple.device?ar="ios":mt.mobile.android.device&&(ar="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&mt.wallet&&checkEnableAutoLogin({version:mt.walletVersion,platform:ar})){if(!Ct){const or=await getVisitorId();setVisitorId(or)}if(!Un)try{Et.loading=!0;const or=await login();if(or){await an({sessionToken:or.sessionToken,refreshToken:or.refreshToken,encrypted:!1}),Et.initialized=!0;return}}finally{Et.loading=!1}}if(Un){await Vt(!0),Et.initialized=!0,await Kt();return}if(typeof window<"u"){const or=new URL(window.location.href),Dr=or.searchParams.get("loginToken");if(Dr){Qt({loginToken:Dr,encrypted:!1}),or.searchParams.delete("loginToken"),window.history.replaceState({},window.title,or.href);return}}if(ht()){await nn(!0),Et.initialized=!0;return}try{}catch(or){console.error("Federated: tryAutoLogin failed",or)}finally{Et.initialized=!0}vt.autoConnect?Fn():Rn()}),jn()&&!Et.initialized?jsxRuntimeExports.jsx(Center,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):jsxRuntimeExports.jsx(Provider$4,{value:mn,children:jsxRuntimeExports.jsxs(OAuthProvider,{locale:Rt,onSwitchPassport:({sessionToken:Vn,refreshToken:Nn})=>{an({sessionToken:Vn,refreshToken:Nn,encrypted:!1})},onUnbindOAuth:()=>{Vt()},onBindOAuth:()=>{Vt()},children:[!Et.open&&typeof ut.children=="function"?ut.children(Et):ut.children,pt,Pt,et.rolling&&jsxRuntimeExports.jsx(WindowFocusAware,{callback:()=>fn()})]})})}it.propTypes={children:PropTypes.any.isRequired,serviceHost:PropTypes.string,action:PropTypes.string,prefix:PropTypes.string,appendAuthServicePrefix:PropTypes.bool,locale:PropTypes.string,timeout:PropTypes.number,autoConnect:PropTypes.bool,autoDisconnect:PropTypes.bool,useSocket:PropTypes.bool,extraParams:PropTypes.object,options:PropTypes.object,webWalletUrl:PropTypes.string,protectedRoutes:PropTypes.arrayOf(PropTypes.string),apiOptions:PropTypes.object,lazyRefreshToken:PropTypes.bool},it.defaultProps={serviceHost:tt,locale:"",action:"login",prefix:API_DID_PREFIX,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:DEFAULT_TIMEOUT$1*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function ot(ut){return function(pt){return jsxRuntimeExports.jsx(ToastProvider,{children:jsxRuntimeExports.jsx(Consumer$4,{children:mt=>jsxRuntimeExports.jsx(ut,{...pt,...mt})})})}}return{SessionProvider:ut=>jsxRuntimeExports.jsx(ToastProvider,{children:jsxRuntimeExports.jsx(it,{...ut})}),SessionConsumer:Consumer$4,SessionContext:SessionContext$1,withSession:ot}}let path="/";window.env&&(path=window.env.groupPathPrefix||window.env.pathPrefix||"/");function formatCacheTtl(a,j){return[void 0,null,""].includes(a)?j:a/86400}var z0,K0,Y0;const sessionTokenExpireInDays=formatCacheTtl((Y0=(K0=(z0=window.blocklet)==null?void 0:z0.settings)==null?void 0:K0.session)==null?void 0:Y0.cacheTtl,constant$3.SESSION_CACHE_TTL/86400);var X0,Z0,Q0;const refreshTokenExpireInDays=formatCacheTtl((Q0=(Z0=(X0=window.blocklet)==null?void 0:X0.settings)==null?void 0:Z0.session)==null?void 0:Q0.ttl,constant$3.SESSION_TTL/86400),{SessionProvider,SessionContext,SessionConsumer,withSession}=createSessionContext("login_token","cookie",{returnDomain:!1,path,expireInDays:sessionTokenExpireInDays},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays});function useSessionContext(){return reactExports.useContext(SessionContext)}function Root$1({children:a}){const j=create$3({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return jsxRuntimeExports.jsx(StyledEngineProvider,{injectFirst:!0,children:jsxRuntimeExports.jsx(ThemeProvider$1,{theme:j,children:jsxRuntimeExports.jsx(ThemeProvider$4,{theme:j,children:jsxRuntimeExports.jsx(LocaleProvider,{translations:translations$9,fallbackLocale:"en",children:jsxRuntimeExports.jsx(ToastProvider,{children:jsxRuntimeExports.jsx(RootInside,{theme:j,children:a})})})})})})}const url$1=new URL(window.location.href),mode=url$1.searchParams.get("mode")||"",isEmbedDialog=url$1.pathname.includes("embed")&&mode==="dialog",isEmbedSection=url$1.pathname.includes("embed")&&mode!=="dialog";function RootInside({children:a,theme:j}){var tt,nt,rt;const{locale:_e}=useLocaleContext(),et=css`
496
+ `),()=>this.onerror("timeout"),j=>{this.awaitingBatchAck=!1,!j||j.status!==200?(this.onerror(j&&j.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(a,j,_e){for(let tt of this.reqs)tt.abort();this.readyState=SOCKET_STATES.closed;let et=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:a,reason:j,wasClean:_e});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",et)):this.onclose(et)}ajax(a,j,_e,et,tt){let nt,rt=()=>{this.reqs.delete(nt),et()};nt=Ajax.request(a,this.endpointURL(),j,_e,this.timeout,rt,it=>{this.reqs.delete(nt),this.isActive()&&tt(it)}),this.reqs.add(nt)}},Presence=class{constructor(a,j={}){let _e=j.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=a,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(_e.state,et=>{let{onJoin:tt,onLeave:nt,onSync:rt}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Presence.syncState(this.state,et,tt,nt),this.pendingDiffs.forEach(it=>{this.state=Presence.syncDiff(this.state,it,tt,nt)}),this.pendingDiffs=[],rt()}),this.channel.on(_e.diff,et=>{let{onJoin:tt,onLeave:nt,onSync:rt}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(et):(this.state=Presence.syncDiff(this.state,et,tt,nt),rt())})}onJoin(a){this.caller.onJoin=a}onLeave(a){this.caller.onLeave=a}onSync(a){this.caller.onSync=a}list(a){return Presence.list(this.state,a)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(a,j,_e,et){let tt=this.clone(a),nt={},rt={};return this.map(tt,(it,ot)=>{j[it]||(rt[it]=ot)}),this.map(j,(it,ot)=>{let ct=tt[it];if(ct){let ut=ot.metas.map(vt=>vt.phx_ref),dt=ct.metas.map(vt=>vt.phx_ref),pt=ot.metas.filter(vt=>dt.indexOf(vt.phx_ref)<0),mt=ct.metas.filter(vt=>ut.indexOf(vt.phx_ref)<0);pt.length>0&&(nt[it]=ot,nt[it].metas=pt),mt.length>0&&(rt[it]=this.clone(ct),rt[it].metas=mt)}else nt[it]=ot}),this.syncDiff(tt,{joins:nt,leaves:rt},_e,et)}static syncDiff(a,j,_e,et){let{joins:tt,leaves:nt}=this.clone(j);return _e||(_e=function(){}),et||(et=function(){}),this.map(tt,(rt,it)=>{let ot=a[rt];if(a[rt]=this.clone(it),ot){let ct=a[rt].metas.map(dt=>dt.phx_ref),ut=ot.metas.filter(dt=>ct.indexOf(dt.phx_ref)<0);a[rt].metas.unshift(...ut)}_e(rt,ot,it)}),this.map(nt,(rt,it)=>{let ot=a[rt];if(!ot)return;let ct=it.metas.map(ut=>ut.phx_ref);ot.metas=ot.metas.filter(ut=>ct.indexOf(ut.phx_ref)<0),et(rt,ot,it),ot.metas.length===0&&delete a[rt]}),a}static list(a,j){return j||(j=function(_e,et){return et}),this.map(a,(_e,et)=>j(_e,et))}static map(a,j){return Object.getOwnPropertyNames(a).map(_e=>j(_e,a[_e]))}static clone(a){return JSON.parse(JSON.stringify(a))}},serializer_default={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(a,j){if(a.payload.constructor===ArrayBuffer)return j(this.binaryEncode(a));{let _e=[a.join_ref,a.ref,a.topic,a.event,a.payload];return j(JSON.stringify(_e))}},decode(a,j){if(a.constructor===ArrayBuffer)return j(this.binaryDecode(a));{let[_e,et,tt,nt,rt]=JSON.parse(a);return j({join_ref:_e,ref:et,topic:tt,event:nt,payload:rt})}},binaryEncode(a){let{join_ref:j,ref:_e,event:et,topic:tt,payload:nt}=a,rt=this.META_LENGTH+j.length+_e.length+tt.length+et.length,it=new ArrayBuffer(this.HEADER_LENGTH+rt),ot=new DataView(it),ct=0;ot.setUint8(ct++,this.KINDS.push),ot.setUint8(ct++,j.length),ot.setUint8(ct++,_e.length),ot.setUint8(ct++,tt.length),ot.setUint8(ct++,et.length),Array.from(j,dt=>ot.setUint8(ct++,dt.charCodeAt(0))),Array.from(_e,dt=>ot.setUint8(ct++,dt.charCodeAt(0))),Array.from(tt,dt=>ot.setUint8(ct++,dt.charCodeAt(0))),Array.from(et,dt=>ot.setUint8(ct++,dt.charCodeAt(0)));var ut=new Uint8Array(it.byteLength+nt.byteLength);return ut.set(new Uint8Array(it),0),ut.set(new Uint8Array(nt),it.byteLength),ut.buffer},binaryDecode(a){let j=new DataView(a),_e=j.getUint8(0),et=new TextDecoder;switch(_e){case this.KINDS.push:return this.decodePush(a,j,et);case this.KINDS.reply:return this.decodeReply(a,j,et);case this.KINDS.broadcast:return this.decodeBroadcast(a,j,et)}},decodePush(a,j,_e){let et=j.getUint8(1),tt=j.getUint8(2),nt=j.getUint8(3),rt=this.HEADER_LENGTH+this.META_LENGTH-1,it=_e.decode(a.slice(rt,rt+et));rt=rt+et;let ot=_e.decode(a.slice(rt,rt+tt));rt=rt+tt;let ct=_e.decode(a.slice(rt,rt+nt));rt=rt+nt;let ut=a.slice(rt,a.byteLength);return{join_ref:it,ref:null,topic:ot,event:ct,payload:ut}},decodeReply(a,j,_e){let et=j.getUint8(1),tt=j.getUint8(2),nt=j.getUint8(3),rt=j.getUint8(4),it=this.HEADER_LENGTH+this.META_LENGTH,ot=_e.decode(a.slice(it,it+et));it=it+et;let ct=_e.decode(a.slice(it,it+tt));it=it+tt;let ut=_e.decode(a.slice(it,it+nt));it=it+nt;let dt=_e.decode(a.slice(it,it+rt));it=it+rt;let pt=a.slice(it,a.byteLength),mt={status:dt,response:pt};return{join_ref:ot,ref:ct,topic:ut,event:CHANNEL_EVENTS.reply,payload:mt}},decodeBroadcast(a,j,_e){let et=j.getUint8(1),tt=j.getUint8(2),nt=this.HEADER_LENGTH+2,rt=_e.decode(a.slice(nt,nt+et));nt=nt+et;let it=_e.decode(a.slice(nt,nt+tt));nt=nt+tt;let ot=a.slice(nt,a.byteLength);return{join_ref:null,ref:null,topic:rt,event:it,payload:ot}}},Socket$1=class{constructor(j,_e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=_e.timeout||DEFAULT_TIMEOUT,this.transport=_e.transport||global$1.WebSocket||LongPoll,this.establishedConnections=0,this.defaultEncoder=serializer_default.encode.bind(serializer_default),this.defaultDecoder=serializer_default.decode.bind(serializer_default),this.closeWasClean=!1,this.binaryType=_e.binaryType||"arraybuffer",this.connectClock=1,this.transport!==LongPoll?(this.encode=_e.encode||this.defaultEncoder,this.decode=_e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let et=null;phxWindow&&phxWindow.addEventListener&&(phxWindow.addEventListener("pagehide",tt=>{this.conn&&(this.disconnect(),et=this.connectClock)}),phxWindow.addEventListener("pageshow",tt=>{et===this.connectClock&&(et=null,this.connect())})),this.heartbeatIntervalMs=_e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=tt=>_e.rejoinAfterMs?_e.rejoinAfterMs(tt):[1e3,2e3,5e3][tt-1]||1e4,this.reconnectAfterMs=tt=>_e.reconnectAfterMs?_e.reconnectAfterMs(tt):[10,50,100,150,200,250,500,1e3,2e3][tt-1]||5e3,this.logger=_e.logger||null,this.longpollerTimeout=_e.longpollerTimeout||2e4,this.params=closure(_e.params||{}),this.endPoint=`${j}/${TRANSPORTS.websocket}`,this.vsn=_e.vsn||DEFAULT_VSN,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Timer(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return LongPoll}replaceTransport(j){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=j}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let j=Ajax.appendParams(Ajax.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return j.charAt(0)!=="/"?j:j.charAt(1)==="/"?`${this.protocol()}:${j}`:`${this.protocol()}://${location.host}${j}`}disconnect(j,_e,et){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(j,_e,et)}connect(j){j&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=closure(j)),!this.conn&&(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=_e=>this.onConnError(_e),this.conn.onmessage=_e=>this.onConnMessage(_e),this.conn.onclose=_e=>this.onConnClose(_e))}log(j,_e,et){this.logger(j,_e,et)}hasLogger(){return this.logger!==null}onOpen(j){let _e=this.makeRef();return this.stateChangeCallbacks.open.push([_e,j]),_e}onClose(j){let _e=this.makeRef();return this.stateChangeCallbacks.close.push([_e,j]),_e}onError(j){let _e=this.makeRef();return this.stateChangeCallbacks.error.push([_e,j]),_e}onMessage(j){let _e=this.makeRef();return this.stateChangeCallbacks.message.push([_e,j]),_e}ping(j){if(!this.isConnected())return!1;let _e=this.makeRef(),et=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:_e});let tt=this.onMessage(nt=>{nt.ref===_e&&(this.off([tt]),j(Date.now()-et))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,j])=>j())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),WS_CLOSE_NORMAL,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(j,_e,et){if(!this.conn)return j&&j();this.waitForBufferDone(()=>{this.conn&&(_e?this.conn.close(_e,et||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),j&&j()})})}waitForBufferDone(j,_e=1){if(_e===5||!this.conn||!this.conn.bufferedAmount){j();return}setTimeout(()=>{this.waitForBufferDone(j,_e+1)},150*_e)}waitForSocketClosed(j,_e=1){if(_e===5||!this.conn||this.conn.readyState===SOCKET_STATES.closed){j();return}setTimeout(()=>{this.waitForSocketClosed(j,_e+1)},150*_e)}onConnClose(j){let _e=j&&j.code;this.hasLogger()&&this.log("transport","close",j),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&_e!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,et])=>et(j))}onConnError(j){this.hasLogger()&&this.log("transport",j);let _e=this.transport,et=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,tt])=>{tt(j,_e,et)}),(_e===this.transport||et>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(j=>{j.isErrored()||j.isLeaving()||j.isClosed()||j.trigger(CHANNEL_EVENTS.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case SOCKET_STATES.connecting:return"connecting";case SOCKET_STATES.open:return"open";case SOCKET_STATES.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(j){this.off(j.stateChangeRefs),this.channels=this.channels.filter(_e=>_e.joinRef()!==j.joinRef())}off(j){for(let _e in this.stateChangeCallbacks)this.stateChangeCallbacks[_e]=this.stateChangeCallbacks[_e].filter(([et])=>j.indexOf(et)===-1)}channel(j,_e={}){let et=new Channel(j,_e,this);return this.channels.push(et),et}push(j){if(this.hasLogger()){let{topic:_e,event:et,payload:tt,ref:nt,join_ref:rt}=j;this.log("push",`${_e} ${et} (${rt}, ${nt})`,tt)}this.isConnected()?this.encode(j,_e=>this.conn.send(_e)):this.sendBuffer.push(()=>this.encode(j,_e=>this.conn.send(_e)))}makeRef(){let j=this.ref+1;return j===this.ref?this.ref=0:this.ref=j,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(j=>j()),this.sendBuffer=[])}onConnMessage(j){this.decode(j.data,_e=>{let{topic:et,event:tt,payload:nt,ref:rt,join_ref:it}=_e;rt&&rt===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${nt.status||""} ${et} ${tt} ${rt&&"("+rt+")"||""}`,nt);for(let ot=0;ot<this.channels.length;ot++){const ct=this.channels[ot];ct.isMember(et,tt,nt,it)&&ct.trigger(tt,nt,rt,it)}for(let ot=0;ot<this.stateChangeCallbacks.message.length;ot++){let[,ct]=this.stateChangeCallbacks.message[ot];ct(_e)}})}leaveOpenTopic(j){let _e=this.channels.find(et=>et.topic===j&&(et.isJoined()||et.isJoining()));_e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${j}"`),_e.leave())}},browser$5={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var a=1e3,j=a*60,_e=j*60,et=_e*24,tt=et*7,nt=et*365.25;ms=function(ut,dt){dt=dt||{};var pt=typeof ut;if(pt==="string"&&ut.length>0)return rt(ut);if(pt==="number"&&isFinite(ut))return dt.long?ot(ut):it(ut);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ut))};function rt(ut){if(ut=String(ut),!(ut.length>100)){var dt=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(ut);if(dt){var pt=parseFloat(dt[1]),mt=(dt[2]||"ms").toLowerCase();switch(mt){case"years":case"year":case"yrs":case"yr":case"y":return pt*nt;case"weeks":case"week":case"w":return pt*tt;case"days":case"day":case"d":return pt*et;case"hours":case"hour":case"hrs":case"hr":case"h":return pt*_e;case"minutes":case"minute":case"mins":case"min":case"m":return pt*j;case"seconds":case"second":case"secs":case"sec":case"s":return pt*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return pt;default:return}}}}function it(ut){var dt=Math.abs(ut);return dt>=et?Math.round(ut/et)+"d":dt>=_e?Math.round(ut/_e)+"h":dt>=j?Math.round(ut/j)+"m":dt>=a?Math.round(ut/a)+"s":ut+"ms"}function ot(ut){var dt=Math.abs(ut);return dt>=et?ct(ut,dt,et,"day"):dt>=_e?ct(ut,dt,_e,"hour"):dt>=j?ct(ut,dt,j,"minute"):dt>=a?ct(ut,dt,a,"second"):ut+" ms"}function ct(ut,dt,pt,mt){var vt=dt>=pt*1.5;return Math.round(ut/pt)+" "+mt+(vt?"s":"")}return ms}function setup(a){_e.debug=_e,_e.default=_e,_e.coerce=ot,_e.disable=nt,_e.enable=tt,_e.enabled=rt,_e.humanize=requireMs(),_e.destroy=ct,Object.keys(a).forEach(ut=>{_e[ut]=a[ut]}),_e.names=[],_e.skips=[],_e.formatters={};function j(ut){let dt=0;for(let pt=0;pt<ut.length;pt++)dt=(dt<<5)-dt+ut.charCodeAt(pt),dt|=0;return _e.colors[Math.abs(dt)%_e.colors.length]}_e.selectColor=j;function _e(ut){let dt,pt=null,mt,vt;function Et(...Rt){if(!Et.enabled)return;const xt=Et,Pt=Number(new Date),Dt=Pt-(dt||Pt);xt.diff=Dt,xt.prev=dt,xt.curr=Pt,dt=Pt,Rt[0]=_e.coerce(Rt[0]),typeof Rt[0]!="string"&&Rt.unshift("%O");let Ft=0;Rt[0]=Rt[0].replace(/%([a-zA-Z%])/g,(Nt,Vt)=>{if(Nt==="%%")return"%";Ft++;const nn=_e.formatters[Vt];if(typeof nn=="function"){const fn=Rt[Ft];Nt=nn.call(xt,fn),Rt.splice(Ft,1),Ft--}return Nt}),_e.formatArgs.call(xt,Rt),(xt.log||_e.log).apply(xt,Rt)}return Et.namespace=ut,Et.useColors=_e.useColors(),Et.color=_e.selectColor(ut),Et.extend=et,Et.destroy=_e.destroy,Object.defineProperty(Et,"enabled",{enumerable:!0,configurable:!1,get:()=>pt!==null?pt:(mt!==_e.namespaces&&(mt=_e.namespaces,vt=_e.enabled(ut)),vt),set:Rt=>{pt=Rt}}),typeof _e.init=="function"&&_e.init(Et),Et}function et(ut,dt){const pt=_e(this.namespace+(typeof dt>"u"?":":dt)+ut);return pt.log=this.log,pt}function tt(ut){_e.save(ut),_e.namespaces=ut,_e.names=[],_e.skips=[];let dt;const pt=(typeof ut=="string"?ut:"").split(/[\s,]+/),mt=pt.length;for(dt=0;dt<mt;dt++)pt[dt]&&(ut=pt[dt].replace(/\*/g,".*?"),ut[0]==="-"?_e.skips.push(new RegExp("^"+ut.slice(1)+"$")):_e.names.push(new RegExp("^"+ut+"$")))}function nt(){const ut=[..._e.names.map(it),..._e.skips.map(it).map(dt=>"-"+dt)].join(",");return _e.enable(""),ut}function rt(ut){if(ut[ut.length-1]==="*")return!0;let dt,pt;for(dt=0,pt=_e.skips.length;dt<pt;dt++)if(_e.skips[dt].test(ut))return!1;for(dt=0,pt=_e.names.length;dt<pt;dt++)if(_e.names[dt].test(ut))return!0;return!1}function it(ut){return ut.toString().substring(2,ut.toString().length-2).replace(/\.\*\?$/,"*")}function ot(ut){return ut instanceof Error?ut.stack||ut.message:ut}function ct(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return _e.enable(_e.load()),_e}var common$1=setup;(function(a,j){var _e={};j.formatArgs=tt,j.save=nt,j.load=rt,j.useColors=et,j.storage=it(),j.destroy=(()=>{let ct=!1;return()=>{ct||(ct=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),j.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function et(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let ct;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(ct=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(ct[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function tt(ct){if(ct[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+ct[0]+(this.useColors?"%c ":" ")+"+"+a.exports.humanize(this.diff),!this.useColors)return;const ut="color: "+this.color;ct.splice(1,0,ut,"color: inherit");let dt=0,pt=0;ct[0].replace(/%[a-zA-Z%]/g,mt=>{mt!=="%%"&&(dt++,mt==="%c"&&(pt=dt))}),ct.splice(pt,0,ut)}j.log=console.debug||console.log||(()=>{});function nt(ct){try{ct?j.storage.setItem("debug",ct):j.storage.removeItem("debug")}catch{}}function rt(){let ct;try{ct=j.storage.getItem("debug")}catch{}return!ct&&typeof process$1$1<"u"&&"env"in process$1$1&&(ct=_e.DEBUG),ct}function it(){try{return localStorage}catch{}}a.exports=common$1(j);const{formatters:ot}=a.exports;ot.j=function(ct){try{return JSON.stringify(ct)}catch(ut){return"[UnexpectedJSONParseError]: "+ut.message}}})(browser$5,browser$5.exports);var browserExports=browser$5.exports;const debug$4=browserExports;var logger=(a,j=!1)=>{const _e=debug$4(["@arcblock/ws",a].join(":"));return{debug:_e,warn:_e,info:_e,trace:j?_e:console.error,error:j?_e:console.error}};const createLogger=logger;var base$2=(a,j,_e)=>class extends a{constructor(tt,nt={}){super(tt,{transport:_e,...nt}),this._logger=createLogger("client",nt.silent),this.emitter=new j,this.onOpen(()=>{this._logger.debug("socket open",tt)}),this.onClose(()=>{this._logger.debug("socket close",tt)}),this.onError(rt=>{this._logger.error("socket error",rt.error)}),this.onMessage(rt=>{this._logger.debug("socket message",rt)})}on(tt,nt,rt={}){this.ensureJoinChannel(tt,rt),this.emitter.on(tt,nt)}off(tt,nt){nt?this.emitter.off(tt,nt):this.emitter.removeAllListeners(tt),this.ensureLeaveChannel(tt)}disconnect(tt,nt,rt){this.emitter.eventNames().forEach(it=>{this.emitter.removeAllListeners(it)}),super.disconnect(tt,nt,rt)}ensureJoinChannel(tt,nt={}){if(this.emitter.listenerCount(tt)>0)return;const it=this.channel(tt,nt);it.join().receive("ok",ot=>{this._logger.debug("join success",{topic:tt,message:ot})}).receive("error",ot=>{this._logger.error("join error",{topic:tt,error:ot})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:tt})}),it.on(tt,({status:ot,response:ct})=>{ot==="ok"?this.emitter.emit(tt,ct):this._logger.debug("response error",{topic:tt,status:ot,data:ct})})}ensureLeaveChannel(tt){if(this.emitter.listenerCount(tt)>0)return;const rt=this.channels.find(it=>it.topic===tt);rt&&(this.remove(rt),rt.leave().receive("ok",it=>{this._logger.debug("leave success",{topic:tt,message:it})}).receive("error",it=>{this._logger.error("leave error",{topic:tt,err:it})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:tt})}),rt.off(tt))}subscribe(tt,nt={}){let rt=this.channels.find(it=>it.topic===tt);return rt||(rt=this.channel(tt,nt),rt.join().receive("ok",it=>{this._logger.debug("join success",{topic:tt,message:it})}).receive("error",it=>{this._logger.error("join error",{topic:tt,error:it})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:tt})}),rt)}unsubscribe(tt){this.ensureLeaveChannel(tt)}};const EventEmitter$3=eventemitter3Exports$1,{Socket}=phoenix_cjs,createClient=base$2;var browser$4=createClient(Socket,EventEmitter$3);const WsClient$1=browser$4;var browser$3={WsClient:WsClient$1};function usePageShow(a){const j=reactExports.useRef(a);reactExports.useEffect(()=>{j.current=a},[a]),reactExports.useEffect(()=>{const _e=et=>{!document.hidden&&j.current&&j.current(et)};return document.addEventListener("visibilitychange",_e),()=>{document.removeEventListener("visibilitychange",_e)}},[])}function getSocketHost(a){const j=a||window.location.href;return new URL(j).host}function getExtraHeaders(a){const j={},_e=a||window.location.href;if(_e){const{hostname:et,protocol:tt,port:nt}=new URL(_e);j["x-real-hostname"]=et,j["x-real-port"]=nt,j["x-real-protocol"]=tt.endsWith(":")?tt.substring(0,tt.length-1):tt}return j}const fns={};function createTokenFn({action:a,prefix:j,checkFn:_e,extraParams:et,baseUrl:tt}){const nt=`${j}/token?${stringifyQuery$1(et)}`;return fns[nt]||(fns[nt]=async function(){var dt,pt;const it=+new Date,ot=await _e(nt,{headers:getExtraHeaders(tt)}),ct=+new Date;if(ct-it<500&&await sleep$1(500-(ct-it)),(dt=ot==null?void 0:ot.data)!=null&&dt.token)return ot.data;if((pt=ot==null?void 0:ot.data)!=null&&pt.error)throw new Error(ot.data.error);const ut=isUrl(j)?j:`${tt}${j}`;throw new Error(`Error generating ${a} qrcode from: ${ut}`)}),fns[nt]}const parseExistingSession=()=>{try{const j=new URL(window.location.href).searchParams.get("__connect_url__");if(!j)return null;const _e=decodeConnectUrl(j);return{token:parseTokenFromConnectUrl(_e),url:_e}}catch(a){return{error:a}}},getAppId=()=>get$6(globalThis,"blocklet.appPid")||get$6(globalThis,"blocklet.appId")||get$6(globalThis,"env.appId")||"",getAppPrefix=()=>(get$6(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(RELAY_SOCKET_PREFIX,""),getRelayChannel=a=>`relay:${getAppId()}:${a}`,getRelayProtocol=()=>window.location.protocol==="https:"?"wss:":"ws:",isSameOrigin=a=>!a||new URL(a).origin===window.location.origin,isSessionEnded=a=>["succeed","error","timeout","busy"].includes(a);function useToken({action:a,checkFn:j,checkInterval:_e,checkTimeout:et,extraParams:tt,locale:nt,prefix:rt,tokenKey:it,encKey:ot,onError:ct,onSuccess:ut,baseUrl:dt,autoConnect:pt=!0,forceConnected:mt=!0,saveConnect:vt=!0,useSocket:Et=!0,provider:Rt="wallet"}){const xt=useReactive({checking:!1,loading:!1,token:"",url:"",store:null,status:"created",error:"",checkCount:0,mfaCode:0,appInfo:null,memberAppInfo:null,connectedDid:"",saveConnect:!1,inExistingSession:!1,nextWorkflow:"",baseUrl:dt,prefix:`${rt}/${a}`,extraParams:omitBy$1(tt,isNil$1),checkFn:j,results:{},action:a,provider:Rt}),Pt=reactExports.useRef(null),Dt=translations$3[nt]||translations$3.en,Ft=useCreation(()=>parseExistingSession(),[]),zt=Math.ceil(et/_e),Nt=useReactive({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:Vt,decrypt:nn}=useSecurity(),fn=useBrowser(),hn=getVisitorId$2(),Qt=reactExports.useRef(null),Mt=reactExports.useRef(null),wt={...xt.extraParams,locale:nt,[it]:xt.token||(Ft==null?void 0:Ft.token),provider:xt.provider},ft=async()=>{if(!(Ft!=null&&Ft.token&&(Ft==null?void 0:Ft.token)===xt.token)){try{wt[it]&&xt.status==="created"&&await xt.checkFn(`${xt.prefix}/timeout?${stringifyQuery$1(wt)}`,{headers:getExtraHeaders(xt.baseUrl)})}catch{}try{xt.token&&Mt.current&&(await Qt.current.unsubscribe(getRelayChannel(xt.token)),Mt.current=null)}catch{}}},ht=useMemoizedFn((...bt)=>{const Lt={[ot]:Vt,...xt.extraParams,locale:nt,forceConnected:mt,autoConnect:pt&&!fn.wallet&&!Nt.cancelWhenScannedCounter&&["ios","android"].includes(Cookie.get("connected_wallet_os")),provider:xt.provider};hn&&(Lt.visitorId=hn);const sn=omit$1(Pt.current||{},["sourceAppPid","verbose"]);return Object.keys(sn).forEach(Zt=>{(!Lt[Zt]||Zt===ot&&sn[Zt])&&(Lt[Zt]=sn[Zt])}),Ft!=null&&Ft.token&&!Lt.sourceToken&&(Lt.sourceToken=Ft==null?void 0:Ft.token),createTokenFn({action:a,prefix:xt.prefix,baseUrl:xt.baseUrl,checkFn:xt.checkFn,extraParams:Lt})(...bt)}),$t=useMemoizedFn(async(bt=!0)=>{bt&&ft();try{xt.loading=!0,xt.token="",xt.url="",xt.store=null,xt.extraParams=omitBy$1(tt,isNil$1),await sleep$1();const Lt=await ht(),sn=Lt.extra||{};xt.loading=!1,xt.token=Lt.token,xt.url=Lt.url,xt.status="created",xt.error="",xt.checkCount=0,xt.appInfo=Lt.appInfo,xt.memberAppInfo=Lt.memberAppInfo,xt.connectedDid=sn.connectedDid,xt.saveConnect=sn.saveConnect}catch(Lt){xt.loading=!1,xt.status="error",xt.error=`${Dt.generateError}: ${Lt.message}`}}),Tt=()=>{Nt.cancelWhenScannedCounter++};reactExports.useEffect(()=>{Nt.cancelWhenScannedCounter>0&&(tt.nw?ct(new Error(Dt.retryForbidden)):$t())},[Nt.cancelWhenScannedCounter]),reactExports.useEffect(()=>(Et&&isSameOrigin(xt.baseUrl)&&getAppId()?(!Qt.current||Qt.current.isConnected()===!1||Qt.current.baseUrl!==xt.baseUrl)&&(Qt.current=new browser$3.WsClient(`${getRelayProtocol()}//${getSocketHost(xt.baseUrl)}${getAppPrefix()}${RELAY_SOCKET_PREFIX}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),Qt.current.baseUrl=xt.baseUrl,Qt.current.onOpen(()=>{Nt.isSocketAvailable=!0}),Qt.current.connect()):Nt.isSocketAvailable&&(Nt.isSocketAvailable=!1),()=>{Qt.current&&(Qt.current.disconnect(),Qt.current=null)}),[xt.baseUrl]);const At=()=>!xt.token||xt.loading||isSessionEnded(xt.status)?null:_e,kt=reactExports.useRef(null);reactExports.useEffect(()=>{kt.current={state:xt,params:wt}}),reactExports.useEffect(()=>()=>{const{state:bt,params:Lt}=kt.current;bt.status==="created"&&Lt[it]&&bt.checkFn(`${bt.prefix}/timeout?${stringifyQuery$1(Lt)}`,{headers:getExtraHeaders(bt.baseUrl)})},[]);const Ct=async(bt=!1)=>{var Lt;if(xt.checking||(xt.status==="created"&&xt.checkCount++,Nt.isSocketAvailable&&!bt))return null;try{xt.checking=!0;const sn=await xt.checkFn(`${xt.prefix}/status?${stringifyQuery$1(wt)}`,{headers:getExtraHeaders(xt.baseUrl)}),{status:Ut,error:Zt,mfaCode:Gt=0}=sn.data;if(xt.store=sn.data,xt.mfaCode=Gt,xt.checking=!1,xt.status=Ut,Ut==="error"&&Zt){const Yt=new Error(Zt);throw Yt.response=sn,Yt}return sn.data}catch(sn){const{response:Ut}=sn;if(Ut!=null&&Ut.status){wt[it]&&xt.checkFn(`${xt.prefix}/timeout?${stringifyQuery$1(wt)}`,{headers:getExtraHeaders(xt.baseUrl)});const Zt=(Lt=Ut==null?void 0:Ut.data)!=null&&Lt.error?Ut.data.error:sn.message,Gt=new Error(Zt);Gt.code=Ut.status,xt.status="error",xt.checking=!1,xt.error=Zt,ct(Gt,xt==null?void 0:xt.store,nn)}else xt.status="error",xt.checking=!1,xt.error=Dt.generateError}return null},It=async()=>{try{if(Ft.error)throw Ft.error;xt.loading=!0,xt.token=Ft.token,xt.url=Ft.url,xt.inExistingSession=!0;let bt=await Ct();if((["scanned"].includes(bt==null?void 0:bt.status)||(bt==null?void 0:bt.sourceToken)===(Ft==null?void 0:Ft.token))&&(await $t(!1),bt=await Ct()),Pt.current=(bt==null?void 0:bt.extraParams)||null,bt!=null&&bt.status&&!["created"].includes(bt==null?void 0:bt.status))throw new Error(`${Dt.invalidSessionStatus} [${bt.status}]`)}catch(bt){xt.status="error",xt.error=bt.message,ct(bt,xt==null?void 0:xt.store,nn)}finally{xt.loading=!1}};return reactExports.useEffect(()=>{var bt;if(!xt.token&&!xt.store&&!xt.loading&&!xt.error)if(Ft)It();else{$t(!1);return}if(xt.status!=="timeout"&&xt.checkCount>zt){xt.status="timeout",ft();return}if(xt.status==="succeed"&&!Nt.onSuccessCalled){const Lt=getConnectedInfo({...xt.store,appInfo:xt.appInfo,memberAppInfo:xt.memberAppInfo});if(isSameOrigin(xt.baseUrl)&&vt&&xt.saveConnect&&xt.store.did&&updateConnectedInfo(Lt,!0),xt.store){const{nextWorkflow:sn}=xt.store;if(sn)try{const Ut=parseNextWorkflow(sn,it);xt.nextWorkflow=(Ut==null?void 0:Ut.nextWorkflow)||sn,Object.assign(xt,Ut),xt.store=null,xt.error="",xt.url="",xt.appInfo=null,xt.memberAppInfo=null,xt.checkCount=0,xt.status="scanned",xt.results={...xt.results,[xt.token]:xt.store},xt.checkFn=createAxios({baseURL:Ut.baseUrl,timeout:8e3}).get,Ct()}catch(Ut){console.error(`Invalid nextWorkflow: ${sn}`,Ut),xt.status="error",xt.error=`Invalid nextWorkflow: ${sn}: ${Ut.message}`}else if(xt.nextWorkflow&&(xt.nextWorkflow="",xt.url=""),typeof ut=="function"){const Ut=Object.values({...xt.results,[xt.token]:xt.store});Nt.onSuccessCalled=!0;const Zt=Ut.length>1?Ut:Ut[0],Gt=cloneDeep$1(Zt);ut(Gt,nn,{sourceAppPid:tt==null?void 0:tt.sourceAppPid,...Lt})}}return}if((bt=xt.store)!=null&&bt.nextWorkflow){const{nextWorkflow:Lt}=xt.store;try{const sn=parseNextWorkflow(Lt,it);xt.nextWorkflow=(sn==null?void 0:sn.nextWorkflow)||Lt,Object.assign(xt,sn),xt.store=null,xt.error="",xt.url="",xt.appInfo=null,xt.memberAppInfo=null,xt.checkCount=0,xt.status="scanned",xt.results={...xt.results,[xt.token]:xt.store},xt.checkFn=createAxios({baseURL:sn.baseUrl,timeout:8e3}).get,Ct()}catch(sn){console.error(`Invalid nextWorkflow: ${Lt}`,sn),xt.status="error",xt.error=`Invalid nextWorkflow: ${Lt}: ${sn.message}`}}}),reactExports.useEffect(()=>{if(xt.token&&Nt.isSocketAvailable&&Qt.current){let bt=!1;Mt.current?Mt.current.token!==xt.token&&(Qt.current.unsubscribe(getRelayChannel(Mt.current.token)),bt=!0):bt=!0,bt&&(Mt.current=Qt.current.subscribe(getRelayChannel(xt.token)),Mt.current.token=xt.token,Mt.current.on("updated",({response:Lt})=>{let{status:sn,error:Ut}=Lt;sn==="forbidden"&&(Ut=Dt.forbidden,sn="error"),xt.status=sn,xt.mfaCode=Lt.mfaCode||0,xt.store=Lt,xt.error=Ut,Ut&&ct(new Error(Ut),xt==null?void 0:xt.store,nn)}))}},[xt.token,Nt.isSocketAvailable,Qt.current]),useInterval(Ct,At()),usePageShow(()=>{Nt.isSocketAvailable&&xt.token&&isSessionEnded(xt.status)===!1&&Ct(!0)}),{state:xt,generate:$t,cancelWhenScanned:Tt}}var lib$5={},dsbridge={};Object.defineProperty(dsbridge,"__esModule",{value:!0});dsbridge.default=void 0;var bridge={call:function a(j,_e,et){var tt="";typeof _e=="function"&&(et=_e,_e={});var nt={data:_e===void 0?null:_e};if(typeof et=="function"){var rt="dscb"+window.dscb++;window[rt]=et,nt._dscbstub=rt}return nt=JSON.stringify(nt),window._dsbridge?tt=_dsbridge.call(j,nt):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(tt=prompt("_dsbridge="+j,nt)),JSON.parse(tt||"{}").data},register:function a(j,_e,et){var tt=et?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){bridge.call("_dsb.dsinit")},0)),typeof _e=="object"?tt._obs[j]=_e:tt[j]=_e},registerAsyn:function a(j,_e){this.register(j,_e,!0)},hasNativeMethod:function a(j,_e){return this.call("_dsb.hasNativeMethod",{name:j,type:_e||"all"})},disableJavascriptDialogBlock:function a(j){this.call("_dsb.disableJavascriptDialogBlock",{disable:j!==!1})}};(function(){if(!(window._dsbridge||window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)||window._dsf)return;const a=window.close;var j={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:bridge,close:function(){bridge.call("_dsb.closePage"),a()},_handleMessageFromNative:function(tt){var nt=JSON.parse(tt.data),rt={id:tt.callbackId,complete:!0},it=this._dsf[tt.method],ot=this._dsaf[tt.method],ct=function(Pt,Dt){rt.data=Pt.apply(Dt,nt),bridge.call("_dsb.returnValue",rt)},ut=function(Pt,Dt){nt.push(function(Ft,zt){rt.data=Ft,rt.complete=zt!==!1,bridge.call("_dsb.returnValue",rt)}),Pt.apply(Dt,nt)};if(it)ct(it,this._dsf);else if(ot)ut(ot,this._dsaf);else{var dt=tt.method.split(".");if(dt.length<2)return;var pt=dt.pop(),mt=dt.join("."),vt=this._dsf._obs,Et=vt[mt]||{},Rt=Et[pt];if(Rt&&typeof Rt=="function"){ct(Rt,Et);return}if(vt=this._dsaf._obs,Et=vt[mt]||{},Rt=Et[pt],Rt&&typeof Rt=="function"){ut(Rt,Et);return}}}};for(var _e in j)window[_e]=j[_e];bridge.register("_hasJavascriptMethod",function(et,tt){var nt=et.split(".");if(nt.length<2)return!!(_dsf[nt]||_dsaf[nt]);var et=nt.pop(),rt=nt.join("."),it=_dsf._obs[rt]||_dsaf._obs[rt];return it&&!!it[et]})})();dsbridge.default=bridge;Object.defineProperty(lib$5,"__esModule",{value:!0});var default_1$3=lib$5.default=void 0,_dsbridge$1=_interopRequireDefault$3(dsbridge);function _interopRequireDefault$3(a){return a&&a.__esModule?a:{default:a}}default_1$3=lib$5.default={call(){_dsbridge$1.default.call(...arguments)},asyncCall(){for(var a=arguments.length,j=new Array(a),_e=0;_e<a;_e++)j[_e]=arguments[_e];return new Promise((et,tt)=>{_dsbridge$1.default.call(...j,nt=>{try{const rt=JSON.parse(nt);if(rt.code===0){const it=JSON.parse(rt.data);et(it)}else tt(new Error(rt.error))}catch{et(nt)}})})},shareMessage(a){const{content:j,imgUrl:_e,success:et,fail:tt}=a;if(!j&&!_e){tt("params error");return}_dsbridge$1.default.call("arcShare",JSON.stringify({content:j,imgUrl:_e}),nt=>{const rt=JSON.parse(nt);rt&&rt.code===0?typeof et=="function"&&et(nt):typeof tt=="function"&&tt(nt)})},showLoading(){_dsbridge$1.default.call("arcShowLoading")},hideLoading(){_dsbridge$1.default.call("arcHideLoading")},showToast(a){a&&typeof a=="string"&&_dsbridge$1.default.call("arcToast",a)},chooseImgs(a){const{limit:j,success:_e,fail:et}=a;_dsbridge$1.default.call("arcChooseImgs",JSON.stringify({limit:j}),tt=>{const nt=JSON.parse(tt);nt&&nt.code===0?typeof _e=="function"&&_e(tt):typeof et=="function"&&et(tt)})},previewImgs(a){const{imgs:j}=a;!j||j.length===0||_dsbridge$1.default.call("arcPreviewImgs",JSON.stringify(a))},isSetPWD(a){const{success:j,fail:_e}=a;_dsbridge$1.default.call("arcIsSetPWD","",et=>{const tt=JSON.parse(et);tt&&tt.code===0?typeof j=="function"&&j(et):typeof _e=="function"&&_e(et)})},isCodeABOk(a){const{success:j,fail:_e}=a;_dsbridge$1.default.call("arcIsCodeABOk","",et=>{const tt=JSON.parse(et);tt&&tt.code===0?typeof j=="function"&&j(et):typeof _e=="function"&&_e(et)})}};function WebviewLoginItem({tokenState:a,locale:j,tokenKey:_e}){const{t:et,isWalletWebview:tt,connectState:nt}=useStateContext(),rt=et(tt?"openDidConnect":"openInWallet"),it=useCreation(()=>{if(!a.url)return"";const ut=new URL(window.location.href);ut.searchParams.set("tokenKey",a.token);const dt=new URL(a.url);return dt.searchParams.set("callback",encodeURIComponent(ut)),dt.searchParams.set("callback_delay",1500),dt.searchParams.set("locale",j),dt.href.replace(/^https?:\/\//,"abt://")},[_e,a.token]),ot=useMemoizedFn(()=>{default_1$3.call("authAction",{action:"auth",deepLink:it})}),ct={};return tt||(ct.component="a",ct.href=it),useMount(()=>{nt.autoActiveWebview&&it&&(nt.autoActiveWebview=!1,ot())}),jsxRuntimeExports.jsxs(ItemWrap,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:colors$1.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...ct,onClick:tt?ot:noop$7,children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[jsxRuntimeExports.jsx(default_1$4,{width:"24px",height:"24px"}),jsxRuntimeExports.jsx(Typography,{sx:{fontSize:"14px",fontWeight:500},children:rt})]}),jsxRuntimeExports.jsx(Icon,{icon:data$o,fontSize:"1.3rem",color:colors$1.primaryBase})]})}WebviewLoginItem.propTypes={tokenState:PropTypes.object.isRequired,locale:PropTypes.string,tokenKey:PropTypes.string};WebviewLoginItem.defaultProps={locale:"en",tokenKey:"_t_"};const data$b={width:24,height:24,body:'<path fill="currentColor" d="M12 20q-3.35 0-5.675-2.325T4 12q0-3.35 2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.713T19 4q.425 0 .713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.713-.288T13 10q0-.425.288-.713T14 9h3.2q-.8-1.4-2.188-2.2T12 6Q9.5 6 7.75 7.75T6 12q0 2.5 1.75 4.25T12 18q1.7 0 3.113-.863t2.187-2.312q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20Z"/>'};function RefreshOverlay({onRefresh:a,...j}){const _e=et=>{et.stopPropagation(),a()};return jsxRuntimeExports.jsx(Box,{...j,onClick:_e,sx:{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(255, 255, 255, 0.75)",cursor:"pointer",...j.sx},children:jsxRuntimeExports.jsx(Box,{sx:{backgroundColor:colors$1.foregroundsFgInteractive,borderRadius:"100%",fontSize:0},children:jsxRuntimeExports.jsx(Icon,{icon:data$b,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})})})}RefreshOverlay.propTypes={onRefresh:PropTypes.func.isRequired};const busyStatusList=["scanned","succeed","error","busy"];function DIDWalletConnect({onSuccess:a,onError:j,action:_e,prefix:et,checkFn:tt,checkInterval:nt,checkTimeout:rt,locale:it,tokenKey:ot,encKey:ct,baseUrl:ut,autoConnect:dt,forceConnected:pt,saveConnect:mt,useSocket:vt,allowWallet:Et,provider:Rt,webWalletUrl:xt,onRecreateSession:Pt,onClose:Dt,messages:Ft,enabledConnectTypes:zt}){var dn,$n,wn;if(typeof tt!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const Nt=reactExports.useContext(SessionContext$1),{connectState:Vt,extraParams:nn,staticState:fn,changeStatus:hn,isWalletWebview:Qt,matchSmallScreen:Mt,t:wt}=useStateContext(),ft=useBrowser(),ht=detectWalletExtension(),{setBaseUrl:$t,oauthState:Tt,getOAuthConfigList:At}=useOAuth(),kt=useCreation(()=>{var Sn;return Rt||(nn==null?void 0:nn.provider)||((Sn=Nt==null?void 0:Nt.session)==null?void 0:Sn.provider)||"wallet"},[nn==null?void 0:nn.provider,(dn=Nt==null?void 0:Nt.session)==null?void 0:dn.provider]);reactExports.useEffect(()=>{$t(ut)},[ut]);const{state:Ct,generate:It,cancelWhenScanned:bt}=useToken({action:_e,baseUrl:ut,checkFn:tt,checkInterval:nt,checkTimeout:rt,extraParams:nn,prefix:et,onError:j,onSuccess:a,locale:it,tokenKey:ot,encKey:ct,autoConnect:dt,forceConnected:pt,saveConnect:mt,useSocket:vt,allowWallet:Et,provider:kt}),[Lt,sn]=reactExports.useState([]);useAsyncEffect(async()=>{const Sn=await At({sourceAppPid:Vt==null?void 0:Vt.sourceAppPid});sn(Sn)},[Vt==null?void 0:Vt.sourceAppPid]);const Ut=usePrevious(Vt==null?void 0:Vt.sourceAppPid);useUpdateEffect(()=>{isUndefined$2(Ut)||It()},[Vt==null?void 0:Vt.sourceAppPid]);const Zt=useCreation(()=>busyStatusList.includes(Tt.status)||busyStatusList.includes(Ct.status),[Ct.status,Tt.status]);reactExports.useEffect(()=>{busyStatusList.includes(Tt.status)?hn(Tt.status):busyStatusList.includes(Ct.status)?hn(Ct.status):hn("created")},[hn,Ct.status,Tt.status]);const Gt=useMemoizedFn(()=>{Pt(),Tt.reset(),It(!1)}),Yt=useMemoizedFn(()=>{Pt(),fn.current.cancelCount++,bt()}),cn=useCreation(()=>({confirm:Ft.confirm,success:Ft.success,error:Ct.error||Tt.error||""}),[Ft.confirm,Ft.success,Ct.error,Tt.error]),En=useCreation(()=>Et&&zt.includes("mobile")&&!Qt,[Et,zt,Qt]),Ht=checkSameProtocol(xt),Ot=useCreation(()=>Et&&zt.includes("web")&&(Ht||ht)&&(!ft.mobile.any||ht),[Et,zt,($n=ft==null?void 0:ft.mobile)==null?void 0:$n.any]),Kt=useCreation(()=>Et&&zt.includes("mobile")&&ft.mobile.any&&!ht,[Et,zt,(wn=ft==null?void 0:ft.mobile)==null?void 0:wn.any]),Xt=useCreation(()=>{const Sn=intersection$1(Object.keys(OAUTH_PROVIDER),zt);return Lt.filter(qn=>Sn.includes(qn.provider))},[Lt,zt]),an=useCreation(()=>Xt.length>0&&["login","invite"].includes(Ct.action),[Xt]),_n=useCreation(()=>{const Sn=En||Ot||Kt;let qn=null;return an&&(qn=Sn?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Divider,{sx:{color:colors$1.textMuted,width:Mt?"200px":"368px",opacity:.6,maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:colors$1.lineStep}},children:"OR"}),jsxRuntimeExports.jsx(OAuthLogin,{providerList:Xt,onSuccess:a,onError:j,tokenState:Ct,locale:it,type:"list"})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",sx:{mt:1,textAlign:"center",color:colors$1.foregroundsFgSubtile},children:wt("loginWithBelow")}),jsxRuntimeExports.jsx(OAuthLogin,{providerList:Xt,onSuccess:a,onError:j,tokenState:Ct,type:"list",locale:it})]})),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Ct.status==="timeout"?jsxRuntimeExports.jsx(RefreshOverlay,{onRefresh:Gt,sx:{zIndex:1,animation:"fadeIn 1s","@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}}}):null,jsxRuntimeExports.jsx(Box,{"data-did-auth-url":Ct.url,sx:{display:"none"}}),Kt&&jsxRuntimeExports.jsx(WebviewLoginItem,{tokenState:Ct,locale:it,tokenKey:ot}),En&&jsxRuntimeExports.jsx(MobileLoginItem,{tokenState:Ct,messages:Ft,locale:it}),Ot&&jsxRuntimeExports.jsx(WebLoginItem,{tokenState:Ct,webWalletUrl:xt,locale:it}),qn]})},[Ct,Ct.url,Ct.status,En,Ot,Kt,Xt,an,an,a,j,it,ot,Ft,xt]);return useCreation(()=>Ct.loading||Tt.loading||!Ct.token&&!Ct.error,[Ct.loading,Tt.loading])?jsxRuntimeExports.jsx(Loading,{}):Zt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{"data-did-auth-url":Ct.url,sx:{display:"none"}}),jsxRuntimeExports.jsx(ConnectStatus,{status:Tt.status||Ct.status,nextWorkflow:Ct.nextWorkflow,mfaCode:Ct.mfaCode,onCancel:Yt,onRetry:Gt,onClose:Dt,messages:cn,locale:it,className:"auth-status"})]}):_n}DIDWalletConnect.propTypes={onError:PropTypes.func,onSuccess:PropTypes.func.isRequired,action:PropTypes.string.isRequired,checkFn:PropTypes.func.isRequired,prefix:PropTypes.string,checkInterval:PropTypes.number,checkTimeout:PropTypes.number,locale:PropTypes.oneOf(["en","zh",""]),tokenKey:PropTypes.string,encKey:PropTypes.string,baseUrl:PropTypes.string,autoConnect:PropTypes.bool,forceConnected:PropTypes.oneOfType([PropTypes.bool,PropTypes.string]),saveConnect:PropTypes.bool,useSocket:PropTypes.bool,allowWallet:PropTypes.bool,provider:PropTypes.oneOf([LOGIN_PROVIDER$1.WALLET,...Object.keys(OAUTH_PROVIDER),""]),webWalletUrl:PropTypes.string,onRecreateSession:PropTypes.func,onClose:PropTypes.func,messages:PropTypes.object,enabledConnectTypes:PropTypes.arrayOf(PropTypes.oneOf(["web","mobile",...Object.keys(OAUTH_PROVIDER)]))};DIDWalletConnect.defaultProps={prefix:API_DID_PREFIX,onError:noop$7,checkInterval:2*1e3,checkTimeout:DEFAULT_TIMEOUT$1*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:getWebWalletUrl$1(),onRecreateSession:noop$7,onClose:noop$7,messages:{},enabledConnectTypes:["web","mobile",...Object.keys(OAUTH_PROVIDER)]};var Set$1=_Set,noop=noop_1,setToArray$1=_setToArray,INFINITY$2=1/0,createSet$1=Set$1&&1/setToArray$1(new Set$1([,-0]))[1]==INFINITY$2?function(a){return new Set$1(a)}:noop,_createSet=createSet$1,SetCache=_SetCache,arrayIncludes$1=_arrayIncludes,arrayIncludesWith=_arrayIncludesWith,cacheHas=_cacheHas,createSet=_createSet,setToArray=_setToArray,LARGE_ARRAY_SIZE=200;function baseUniq$2(a,j,_e){var et=-1,tt=arrayIncludes$1,nt=a.length,rt=!0,it=[],ot=it;if(_e)rt=!1,tt=arrayIncludesWith;else if(nt>=LARGE_ARRAY_SIZE){var ct=j?null:createSet(a);if(ct)return setToArray(ct);rt=!1,tt=cacheHas,ot=new SetCache}else ot=j?[]:it;e:for(;++et<nt;){var ut=a[et],dt=j?j(ut):ut;if(ut=_e||ut!==0?ut:0,rt&&dt===dt){for(var pt=ot.length;pt--;)if(ot[pt]===dt)continue e;j&&ot.push(dt),it.push(ut)}else tt(ot,dt,_e)||(ot!==it&&ot.push(dt),it.push(ut))}return it}var _baseUniq=baseUniq$2,baseFlatten$1=_baseFlatten,baseIteratee$1=_baseIteratee,baseRest$1=_baseRest,baseUniq$1=_baseUniq,isArrayLikeObject=isArrayLikeObject_1,last=last_1,unionBy=baseRest$1(function(a){var j=last(a);return isArrayLikeObject(j)&&(j=void 0),baseUniq$1(baseFlatten$1(a,1,isArrayLikeObject,!0),baseIteratee$1(j))}),unionBy_1=unionBy;const unionBy$1=getDefaultExportFromCjs$1(unionBy_1);var baseFor=_baseFor,keys$1=keys_1;function baseForOwn$1(a,j){return a&&baseFor(a,j,keys$1)}var _baseForOwn=baseForOwn$1,isArrayLike$1=isArrayLike_1;function createBaseEach$1(a,j){return function(_e,et){if(_e==null)return _e;if(!isArrayLike$1(_e))return a(_e,et);for(var tt=_e.length,nt=j?tt:-1,rt=Object(_e);(j?nt--:++nt<tt)&&et(rt[nt],nt,rt)!==!1;);return _e}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1,baseEach=_baseEach,isArrayLike=isArrayLike_1;function baseMap$1(a,j){var _e=-1,et=isArrayLike(a)?Array(a.length):[];return baseEach(a,function(tt,nt,rt){et[++_e]=j(tt,nt,rt)}),et}var _baseMap=baseMap$1;function baseSortBy$1(a,j){var _e=a.length;for(a.sort(j);_e--;)a[_e]=a[_e].value;return a}var _baseSortBy=baseSortBy$1,isSymbol$5=isSymbol_1;function compareAscending$1(a,j){if(a!==j){var _e=a!==void 0,et=a===null,tt=a===a,nt=isSymbol$5(a),rt=j!==void 0,it=j===null,ot=j===j,ct=isSymbol$5(j);if(!it&&!ct&&!nt&&a>j||nt&&rt&&ot&&!it&&!ct||et&&rt&&ot||!_e&&ot||!tt)return 1;if(!et&&!nt&&!ct&&a<j||ct&&_e&&tt&&!et&&!nt||it&&_e&&tt||!rt&&tt||!ot)return-1}return 0}var _compareAscending=compareAscending$1,compareAscending=_compareAscending;function compareMultiple$1(a,j,_e){for(var et=-1,tt=a.criteria,nt=j.criteria,rt=tt.length,it=_e.length;++et<rt;){var ot=compareAscending(tt[et],nt[et]);if(ot){if(et>=it)return ot;var ct=_e[et];return ot*(ct=="desc"?-1:1)}}return a.index-j.index}var _compareMultiple=compareMultiple$1,arrayMap=_arrayMap,baseGet$1=_baseGet,baseIteratee=_baseIteratee,baseMap=_baseMap,baseSortBy=_baseSortBy,baseUnary=_baseUnary,compareMultiple=_compareMultiple,identity=identity_1,isArray$5=isArray_1;function baseOrderBy$1(a,j,_e){j.length?j=arrayMap(j,function(nt){return isArray$5(nt)?function(rt){return baseGet$1(rt,nt.length===1?nt[0]:nt)}:nt}):j=[identity];var et=-1;j=arrayMap(j,baseUnary(baseIteratee));var tt=baseMap(a,function(nt,rt,it){var ot=arrayMap(j,function(ct){return ct(nt)});return{criteria:ot,index:++et,value:nt}});return baseSortBy(tt,function(nt,rt){return compareMultiple(nt,rt,_e)})}var _baseOrderBy=baseOrderBy$1,baseFlatten=_baseFlatten,baseOrderBy=_baseOrderBy,baseRest=_baseRest,isIterateeCall=_isIterateeCall,sortBy=baseRest(function(a,j){if(a==null)return[];var _e=j.length;return _e>1&&isIterateeCall(a,j[0],j[1])?j=[]:_e>2&&isIterateeCall(j[0],j[1],j[2])&&(j=[j[0]]),baseOrderBy(a,baseFlatten(j,1),[])}),sortBy_1=sortBy;const sortBy$1=getDefaultExportFromCjs$1(sortBy_1),prefix$2=joinURL(AUTH_SERVICE_PREFIX,"/api/user-session");function useQuickConnect({appPid:a,sourceAppPid:j,loginAppPid:_e,autoFetch:et=!0,baseUrl:tt="/",fetchAll:nt=!1}={}){const rt=getVisitorId$2(),it=useCreation(()=>createAxios({baseURL:joinURL(tt,prefix$2)},{lazy:!0,lazyTime:500}),[tt]),ot=useMemoizedFn(async()=>{const{data:Et=[]}=await it.get("",{params:{visitorId:rt}}),Rt=getFederatedEnabled(),xt=getMaster();if(nt&&Rt&&xt){const{data:Pt}=await it.get(joinURL(xt.appUrl,AUTH_SERVICE_PREFIX,"/api/user-session"),{params:{visitorId:rt}});return Et.concat(Pt||[])}return!Rt||!xt?Et.filter(Pt=>{var Dt;return((Dt=Pt==null?void 0:Pt.user)==null?void 0:Dt.sourceAppPid)===null}):Et}),ct=useReactive({loaded:!1,loadingId:null}),ut=useRequest(ot,{manual:!et,onFinally(){ct.loaded=!0},refreshDeps:[tt]}),dt=async Et=>{var xt,Pt,Dt;const Rt=pick$2(Et,["userDid","visitorId","passportId"]);try{ct.loadingId=Et.id;const Ft=getMaster();if(getFederatedEnabled()&&Ft&&_e!==Et.appPid){const{data:Nt}=await it.post("login",{...Rt,appPid:_e},{baseURL:joinURL(Ft.appUrl,AUTH_SERVICE_PREFIX,"/api/user-session")});return Nt}const{data:zt}=await it.post("login",{...Rt,appPid:_e});return zt}catch(Ft){const zt=Ft.response?((Pt=(xt=Ft.response)==null?void 0:xt.data)==null?void 0:Pt.error)||((Dt=Ft.response)==null?void 0:Dt.data):Ft.message;throw Toast$1.error(zt),console.error("Quick login error",Ft),Ft}finally{ct.loadingId=null}},pt=useCreation(()=>ut.data?ut.data.filter(Et=>Et.status!=="expired"):[],[ut.data]),mt=useCreation(()=>{const Et=new Date().getTime(),Rt=sortBy$1(pt,xt=>Et-new Date(xt.updatedAt).getTime());return unionBy$1(Rt,xt=>[xt.userDid].join("_"))},[pt,j,a]),vt=useCreation(()=>!!(mt&&mt.length>0),[mt]);return{loadingId:ct.loadingId,userSessions:mt,quickLoginEnabled:vt,loginUserSession:dt,loading:ut.loading,loaded:ut.loaded,refresh:ut.refreshAsync}}const data$a={width:24,height:24,body:'<path fill="currentColor" d="M11.95 18q.525 0 .888-.363t.362-.887q0-.525-.362-.888t-.888-.362q-.525 0-.887.363t-.363.887q0 .525.363.888t.887.362Zm.05 4q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20Zm0-8Zm.1-4.3q.625 0 1.088.4t.462 1q0 .55-.337.975t-.763.8q-.575.5-1.012 1.1t-.438 1.35q0 .35.263.588t.612.237q.375 0 .638-.25t.337-.625q.1-.525.45-.938t.75-.787q.575-.55.988-1.2t.412-1.45q0-1.275-1.038-2.087T12.1 6q-.95 0-1.812.4T8.975 7.625q-.175.3-.113.638t.338.512q.35.2.725.125t.625-.425q.275-.375.688-.575t.862-.2Z"/>'},data$9={width:24,height:24,body:'<path fill="currentColor" d="m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4L9.55 18Z"/>'};function AppIcon({appInfo:a,...j}){const[_e,et]=reactExports.useState(!1);if(_e||!(a.appUrl||a.appLogo))return jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{did:a.appPid,size:32});let tt=a.appLogo||"";return isUrl(tt)||(tt=joinURL(a.appUrl||"",tt)),jsxRuntimeExports.jsx(Img,{src:tt,alt:a.appName||"Blocklet Icon",width:32,height:32,...j,onError:()=>et(!0)})}AppIcon.propTypes={appInfo:PropTypes.object.isRequired};const getAppDid=a=>a?a.split(":").pop():"";function AppInfoItem({appInfo:a,active:j,appLogo:_e}){return jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",fontWeight:600,color:colors$1.textBase,"& .app-info-content":{paddingLeft:"8px",overflow:"hidden"},"& .app-info-name":{maxWidth:"100%",paddingRight:"32px",lineHeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"},"& .app-info-did":{fontSize:0},"& .app-info-did .did-address-text":{color:colors$1.textMuted,fontSize:"12px"}},children:[_e||jsxRuntimeExports.jsx(Box,{sx:{borderRadius:"8px",overflow:"hidden",fontSize:0},children:jsxRuntimeExports.jsx(AppIcon,{appInfo:a})}),jsxRuntimeExports.jsxs(Box,{className:"app-info-content",children:[jsxRuntimeExports.jsx(Box,{className:"app-info-name",children:a.appName}),a.appPid&&jsxRuntimeExports.jsx(DidAddressWrapper,{size:12,className:"app-info-did",copyable:!1,color:colors$1.textMuted,compact:!1,responsive:!1,children:getAppDid(a.appPid)})]}),j?jsxRuntimeExports.jsx(IconButton,{size:"small",color:"success",children:jsxRuntimeExports.jsx(Icon$1,{icon:data$9,color:"success"})}):null]})}AppInfoItem.propTypes={appInfo:PropTypes.object.isRequired,active:PropTypes.bool,appLogo:PropTypes.node};AppInfoItem.defaultProps={active:!1,appLogo:null};function CurrentApp({appInfo:a}){const j=reactExports.useRef(null),_e=useReactive({hoverOnButton:!1,hoverOnPopover:!1}),et=useCreation(()=>_e.hoverOnButton||_e.hoverOnPopover,[_e.hoverOnButton,_e.hoverOnPopover]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{component:"span",ref:j,sx:{color:colors$1.foregroundsFgInteractive,cursor:"help"},onClick:()=>{_e.hoverOnButton=!0},onMouseEnter:()=>{_e.hoverOnButton=!0},onMouseLeave:()=>{setTimeout(()=>{_e.hoverOnButton=!1},200)},children:a.appName}),jsxRuntimeExports.jsx(Popover,{open:et,sx:{pointerEvents:"none"},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${colors$1.gray6}, 0px 0px 0px 1px ${colors$1.gray6}`,py:1,px:1.5,borderRadius:2,transform:"translateY(-6px) !important"}}},anchorEl:j.current,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{_e.open=!1},disableRestoreFocus:!0,children:jsxRuntimeExports.jsx(Box,{component:"span",sx:{pointerEvents:"auto"},onMouseEnter:()=>{_e.hoverOnPopover=!0},onMouseLeave:()=>{_e.hoverOnPopover=!1},children:jsxRuntimeExports.jsx(AppInfoItem,{appInfo:a,appLogo:jsxRuntimeExports.jsx(AppIcon,{appInfo:a})})})})]})}CurrentApp.propTypes={appInfo:PropTypes.object.isRequired};function SwitchApp(){const{appInfoList:a,t:j,extraParams:_e,connectState:et}=useStateContext(),tt=reactExports.useRef(null),nt=useReactive({open:!1});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Box,{component:"span",ref:tt,sx:{textTransform:"lowercase",color:colors$1.foregroundsFgInteractive,cursor:"pointer"},onClick:()=>{nt.open=!0},children:j("switch")}),jsxRuntimeExports.jsx(Menu,{anchorEl:tt.current,open:nt.open,onClose:()=>{nt.open=!1},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${colors$1.gray6}, 0px 0px 0px 1px ${colors$1.gray6}`,borderRadius:2}}},children:a.map(rt=>jsxRuntimeExports.jsx(MenuItem,{onClick:()=>{nt.open=!1,et.sourceAppPid=rt.sourceAppPid},children:jsxRuntimeExports.jsx(AppInfoItem,{appInfo:rt,active:rt.sourceAppPid===(_e==null?void 0:_e.sourceAppPid)})},rt.appPid))})]})}function AppTips({locale:a,disableSwitchApp:j}){const{appInfoList:_e,extraParams:et,connectState:tt,blocklet:nt}=useStateContext(),rt=useCreation(()=>_e.find(ct=>lodashExports.isUndefined(et==null?void 0:et.sourceAppPid)?!0:lodashExports.isNull(ct.sourceAppPid)?ct.appPid===(nt==null?void 0:nt.appPid):ct.sourceAppPid===(et==null?void 0:et.sourceAppPid)),[et==null?void 0:et.sourceAppPid,_e]),it=!j&&_e.length>1;useMount(()=>{(nt==null?void 0:nt.appPid)===(rt==null?void 0:rt.appPid)?tt.sourceAppPid=null:tt.sourceAppPid=rt==null?void 0:rt.appPid});const ot=useCreation(()=>a==="zh"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["您正在使用 ",jsxRuntimeExports.jsx(CurrentApp,{appInfo:rt,appInfoList:_e})," 账户来连接站点",it?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[",点击",jsxRuntimeExports.jsx(SwitchApp,{appInfoList:_e})]}):null]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["You're using ",jsxRuntimeExports.jsx(CurrentApp,{appInfo:rt})," account for site access",it?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[". Click to ",jsxRuntimeExports.jsx(SwitchApp,{appInfoList:_e})]}):null]}),[a,rt,_e,it]);return lodashExports.isEmpty(_e)?null:jsxRuntimeExports.jsxs(Box,{sx:{fontSize:"13px",color:colors$1.foregroundsFgSubtile,lineHeight:1.5},children:[ot,it&&jsxRuntimeExports.jsx(Box,{component:"span",sx:{display:"inline-block",ml:.5,fontSize:"13px",height:"16px",lineHeight:1,verticalAlign:"middle"},children:jsxRuntimeExports.jsx(Box,{component:Icon,icon:data$a,sx:{verticalAlign:"middle"}})})]})}AppTips.propTypes={locale:PropTypes.string,disableSwitchApp:PropTypes.bool};AppTips.defaultProps={locale:"en",disableSwitchApp:!1};var DidLogoColorful={};Object.defineProperty(DidLogoColorful,"__esModule",{value:!0});var default_1$2=DidLogoColorful.default=void 0;_interopRequireDefault$2(reactExports);var _jsxRuntime$2=jsxRuntimeExports;function _interopRequireDefault$2(a){return a&&a.__esModule?a:{default:a}}function ownKeys$2(a,j){var _e=Object.keys(a);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(a);j&&(et=et.filter(function(tt){return Object.getOwnPropertyDescriptor(a,tt).enumerable})),_e.push.apply(_e,et)}return _e}function _objectSpread(a){for(var j=1;j<arguments.length;j++){var _e=arguments[j]!=null?arguments[j]:{};j%2?ownKeys$2(Object(_e),!0).forEach(function(et){_defineProperty(a,et,_e[et])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(_e)):ownKeys$2(Object(_e)).forEach(function(et){Object.defineProperty(a,et,Object.getOwnPropertyDescriptor(_e,et))})}return a}function _defineProperty(a,j,_e){return(j=_toPropertyKey(j))in a?Object.defineProperty(a,j,{value:_e,enumerable:!0,configurable:!0,writable:!0}):a[j]=_e,a}function _toPropertyKey(a){var j=_toPrimitive(a,"string");return typeof j=="symbol"?j:j+""}function _toPrimitive(a,j){if(typeof a!="object"||!a)return a;var _e=a[Symbol.toPrimitive];if(_e!==void 0){var et=_e.call(a,j||"default");if(typeof et!="object")return et;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(a)}var Component=function a(j){return(0,_jsxRuntime$2.jsxs)("svg",_objectSpread(_objectSpread({},j),{},{children:[(0,_jsxRuntime$2.jsx)("path",{d:"M7.366.646L8.46 0h3.981v11.96H8.564a.381.381 0 0 1-.194-.053L4.18 9.431V2.53l.508-.3.893.528-.508.3v5.845L8.7 11.046h2.85V.914h-2.85l-.44.26-.893-.528z",fill:"color(display-p3 .4196 .7412 .9961)"}),(0,_jsxRuntime$2.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.868 8.903V3.057L4.242.915H1.393v10.132h2.85l.44-.26.893.527-1.095.647H.5V0h3.981l4.28 2.53v6.9l-.506.3-.893-.528.506-.299z",fill:"color(display-p3 .2706 .5961 .9804)"})]}))};Component.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};Component.displayName="did-logo-colorful";default_1$2=DidLogoColorful.default=Component;function PoweredBy({...a}){return jsxRuntimeExports.jsxs(Box,{...a,sx:{display:"flex",alignItems:"center",color:colors$1.foregroundsFgMuted,gap:.5,...a.sx},children:[jsxRuntimeExports.jsx(default_1$2,{}),"Powered By",jsxRuntimeExports.jsx(Box,{component:"a",href:"https://www.didconnect.io/",target:"_blank",rel:"noopener",sx:{color:colors$1.foregroundsFgInteractive,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:"DID Connect"})]})}function AutoHeight({children:a,initHeight:j,slotProps:_e}){var it;const[et,tt]=reactExports.useState(j),nt=reactExports.useRef(null),rt=useSize(nt);return reactExports.useEffect(()=>{rt!=null&&rt.height&&tt(rt.height)},[rt==null?void 0:rt.height,et]),jsxRuntimeExports.jsx(Box,{..._e==null?void 0:_e.root,sx:{height:et,overflow:"hidden",transition:"height 0.2s ease-in-out",...(it=_e==null?void 0:_e.root)==null?void 0:it.sx},children:jsxRuntimeExports.jsx(Box,{..._e==null?void 0:_e.container,ref:nt,children:a})})}AutoHeight.propTypes={initHeight:PropTypes.number,children:PropTypes.node.isRequired,slotProps:PropTypes.object};AutoHeight.defaultProps={initHeight:0,slotProps:{}};const didConnectTab="did-connect",quickConnectTab="quick-connect";function Connect$1({mode:a,isFullScreen:j,hideCloseButton:_e,...et}){var ht;const tt=useReactive({showTab:didConnectTab}),{connectState:nt,blocklet:rt,appInfoList:it,extraParams:ot}=useStateContext(),{extraContent:ct,onSuccess:ut,action:dt,onClose:pt,options:mt}=et,vt=useCreation(()=>it.find($t=>isUndefined$2(ot==null?void 0:ot.sourceAppPid)?!0:isNull$3($t.sourceAppPid)?$t.appPid===(rt==null?void 0:rt.appPid):$t.sourceAppPid===(ot==null?void 0:ot.sourceAppPid)),[ot==null?void 0:ot.sourceAppPid,it]),Et=useCreation(()=>isNull$3(nt==null?void 0:nt.sourceAppPid)?vt==null?void 0:vt.appPid:(nt==null?void 0:nt.sourceAppPid)||getCurrentAppPid(),[nt==null?void 0:nt.sourceAppPid]),{quickLoginEnabled:Rt,loading:xt,userSessions:Pt,loginUserSession:Dt,refresh:Ft}=useQuickConnect({appPid:Et,loginAppPid:rt==null?void 0:rt.appPid,sourceAppPid:nt==null?void 0:nt.sourceAppPid,autoFetch:["login"].includes(dt),baseUrl:(vt==null?void 0:vt.appUrl)||""}),zt=useCreation(()=>{var $t;return(($t=et==null?void 0:et.messages)==null?void 0:$t.title)||DEFAULT_NAME},[(ht=et==null?void 0:et.messages)==null?void 0:ht.title]),Nt=useCreation(()=>{if(dt==="login"){const $t=getMaster(rt),Tt=getFederatedEnabled(rt);return ot!=null&&ot.forceConnected?Pt.filter(At=>At.userDid===(ot==null?void 0:ot.forceConnected)):!Tt||!$t?Pt.filter(At=>{var kt;return((kt=At==null?void 0:At.user)==null?void 0:kt.sourceAppPid)===null}):Pt.filter(At=>{var kt;return Et===rt.appPid?((kt=At.user)==null?void 0:kt.sourceAppPid)===(ot==null?void 0:ot.sourceAppPid):!0})}return Pt},[ot==null?void 0:ot.forceConnected,dt,Pt]),Vt=useMemoizedFn(async(...$t)=>{var Ct,It,bt;const Tt=await Dt(...$t),[At]=$t,kt={};At&&((Ct=At==null?void 0:At.user)!=null&&Ct.did&&(kt.connected_did=At.user.did),(It=At==null?void 0:At.user)!=null&&It.pk&&(kt.connected_pk=At.user.pk),(bt=At==null?void 0:At.extra)!=null&&bt.walletOS&&(kt.connected_wallet_os=At.extra.walletOS),At!=null&&At.appPid&&(kt.connected_app=At.appPid)),await ut({...Tt,encrypted:!1},Lt=>Lt,kt)});reactExports.useEffect(()=>{(mt==null?void 0:mt.showQuickConnect)!==!1&&!xt&&Rt&&(tt.showTab=quickConnectTab)},[xt,Rt,mt==null?void 0:mt.showQuickConnect]);const nn=useDebounce(xt,{wait:100}),fn=useMemoizedFn(()=>{tt.showTab=didConnectTab}),hn=useMemoizedFn(()=>{tt.showTab=quickConnectTab}),Qt=useCreation(()=>Nt.length===0?!0:tt.showTab===didConnectTab||!Rt,[tt.showTab,Rt]),Mt=useCreation(()=>{let $t=!0;return(xt||nn)&&($t=!1),Rt||($t=!1),mt.showQuickConnect===!1&&($t=!1),tt.showTab!==didConnectTab&&($t=!1),$t},[Rt,tt.showTab,xt,nn]),wt=useCreation(()=>jsxRuntimeExports.jsx(Box,{onClick:pt,sx:{fontSize:"1.5rem",width:"1.5rem",height:"1.5rem",cursor:"pointer",color:colors$1.foregroundsFgSubtile,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:jsxRuntimeExports.jsx(Icon,{icon:data$q})}),[pt]);let ft=null;return xt||nn?ft=jsxRuntimeExports.jsx(Loading,{}):Qt?ft=jsxRuntimeExports.jsx(DIDWalletConnect,{...et,onClose:pt}):ft=jsxRuntimeExports.jsx(QuickConnect,{userSessions:Nt,onLogin:Vt,onRetry:Ft,onClose:pt,messages:et.messages,onLoginAnother:fn}),jsxRuntimeExports.jsxs(Card,{variant:"outlined",sx:{color:colors$1.foregroundsFgBase,backgroundColor:"white",borderRadius:2,borderColor:colors$1.strokeBorderBase,height:"100%",display:"flex",flexDirection:"column"},children:[jsxRuntimeExports.jsx(CardHeader,{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Mt&&jsxRuntimeExports.jsx(IconButton,{size:"small",disabled:nt.status!=="created",onClick:hn,disableRipple:!0,sx:{fontSize:"0.75em"},children:jsxRuntimeExports.jsx(Icon,{icon:data$r,color:colors$1.textMuted})}),zt]}),titleTypographyProps:{display:"flex",alignItems:"center",variant:"h6",lineHeight:"28px",fontWeight:600},action:_e?null:wt,sx:{px:2.5,".MuiCardHeader-action":{margin:0,alignSelf:"center"}}}),jsxRuntimeExports.jsx(CardContent,{sx:{borderTop:`1px solid ${colors$1.strokeBorderBase}`,borderBottom:`1px solid ${colors$1.strokeBorderBase}`,flex:1,verticalAlign:"middle",overflow:"auto",p:2.5,position:"relative","&::after":{content:'""',height:"100%",verticalAlign:"middle",display:"inline-block",width:0}},children:jsxRuntimeExports.jsxs(AutoHeight,{slotProps:{root:{sx:{display:"inline-block",width:"100%",verticalAlign:"middle"}},container:{sx:{display:"flex",flexDirection:"column",gap:1}}},children:[jsxRuntimeExports.jsx(AppTips,{locale:et.locale,disableSwitchApp:et.disableSwitchApp}),ft,ct?jsxRuntimeExports.jsx(Box,{children:ct}):null]})}),jsxRuntimeExports.jsx(CardActions,{sx:{py:2,px:2.5,justifyContent:"center"},children:jsxRuntimeExports.jsx(PoweredBy,{sx:{fontSize:"12px"}})})]})}Connect$1.propTypes={action:PropTypes.string.isRequired,onSuccess:PropTypes.func,onClose:PropTypes.func,messages:PropTypes.object,extraContent:PropTypes.any,disableSwitchApp:PropTypes.bool,mode:PropTypes.oneOf(["fullScreen","dialog","normal"]),isFullScreen:PropTypes.bool,options:PropTypes.object,hideCloseButton:PropTypes.bool,locale:PropTypes.string};Connect$1.defaultProps={onSuccess:noop$7,onClose:noop$7,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!0,locale:"en"};function WrapConnect(a){const{checkFn:j,extraParams:_e,blocklet:et,action:tt,locale:nt}=a;if(typeof j!="function")throw new Error("Cannot initialize did connect component without a fetchFn");return jsxRuntimeExports.jsx(StateProvider,{blocklet:et,action:tt,locale:nt,extraParams:_e,sx:{position:"relative",width:"100%",height:"100%",lineHeight:1.2,fontFamily:"Inter",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:jsxRuntimeExports.jsx(Connect$1,{...a})})}WrapConnect.propTypes={checkFn:PropTypes.func.isRequired,extraParams:PropTypes.object,blocklet:PropTypes.object.isRequired,action:PropTypes.string.isRequired,locale:PropTypes.string};WrapConnect.defaultProps={extraParams:{},locale:"en"};const DidConnect=withWebWalletSWKeeper(withDialog(withBlocklet(WrapConnect))),ConnectHolder=reactExports.forwardRef((a,j)=>{const{api:_e}=reactExports.useContext(SessionContext$1),et={containerEl:null,popup:!0,checkFn:(_e==null?void 0:_e.get)||noop$7,messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},tt=useReactive({show:!1,...cloneDeep$1(et)}),[nt,rt]=reactExports.useState({}),it=useMemoizedFn(()=>{const dt=cloneDeep$1(et);Object.keys(dt).forEach(pt=>{tt[pt]=dt[pt]})}),ot=useMemoizedFn(()=>{tt.show=!1,it()}),ct=useMemoizedFn(dt=>{const{containerEl:pt,checkFn:mt,popup:vt,messages:Et,...Rt}=cloneDeep$1(dt);typeof mt=="function"&&(tt.checkFn=mt),vt!==void 0&&(tt.popup=vt),Et!==void 0&&(tt.messages=Et),pt!==void 0&&(tt.containerEl=pt),rt(Rt),tt.show=!0});reactExports.useImperativeHandle(j,()=>({open:ct,close:ot}),[ct,ot]);const ut=jsxRuntimeExports.jsx(DidConnect,{open:!0,popup:tt.popup,messages:tt.messages,checkFn:tt.checkFn,...nt});return tt.containerEl?reactDomExports.createPortal(ut,tt.containerEl):tt.show&&ut});function useConnect(){const a=reactExports.useRef(null),j=useCreation(()=>new _default$2({concurrency:1})),_e=useMemoizedFn((...it)=>{var ot;(ot=a.current)==null||ot.close(...it)}),et=useMemoizedFn(({onSuccess:it,onClose:ot,onEnd:ct,...ut},...dt)=>{const pt=()=>new Promise(mt=>{typeof it=="function"?ut.onSuccess=(...vt)=>{it(...vt),setTimeout(()=>{_e(),mt()},2e3)}:ut.onSuccess=()=>{setTimeout(()=>{_e(),mt()},2e3)},typeof ot=="function"?ut.onClose=(...vt)=>{ot(...vt),_e(),mt(),j.clear()}:ut.onClose=()=>{_e(),mt(),j.clear()},setTimeout(()=>{var vt;(vt=a.current)==null||vt.open(ut,...dt)})});j.add(pt)}),tt=useMemoizedFn((it={},{baseUrl:ot,locale:ct="en",blocklet:ut=globalThis==null?void 0:globalThis.blocklet}={})=>new Promise((dt,pt)=>{const mt=()=>new Promise(vt=>{(async()=>{var Nt;if(isUndefined$2(ot)){const Vt=getFederatedEnabled(),nn=getMaster();ot=Vt?nn.appUrl:window.location.origin}const{onSuccess:Rt,onClose:xt,onError:Pt,...Dt}=it;if(!((Nt=Dt==null?void 0:Dt.extraParams)!=null&&Nt.provider))throw isFunction$8(Pt)&&Pt("Must have extraParams.provider"),new Error("Must have extraParams.provider");Dt!=null&&Dt.prefix||(Dt.prefix=window.location.origin+joinURL(ut==null?void 0:ut.prefix,API_DID_PREFIX));const Ft=new URLSearchParams;Ft.set("params",btoa(encodeURIComponent(JSON.stringify(Dt)))),Ft.set("appPid",ut==null?void 0:ut.appPid),Ft.set("locale",ct);const zt=openPopup(joinURL(ot||"/",AUTH_SERVICE_PREFIX,`/connect?${Ft.toString()}`));try{const Vt=await runPopup({popup:zt,closeTimeout:2e3});updateConnectedInfo({connected_app:getAppId$1(),...Vt==null?void 0:Vt.options},!0),isFunction$8(Rt)?(Rt({...Vt.response,encrypted:!1}),_e(),vt()):(_e(),vt()),dt({...Vt.response,encrypted:!1})}catch(Vt){throw Vt.message==="Popup closed"?isFunction$8(xt)?(xt(),vt(),j.clear()):(vt(),j.clear()):isFunction$8(Pt)&&Pt(Vt),Vt}})().catch(Rt=>{vt(),pt(Rt)})});j.add(mt)})),nt=useCreation(()=>jsxRuntimeExports.jsx(ConnectHolder,{ref:a})),rt=useCreation(()=>({open:et,close:_e,openPopup:tt,queue:j}));return{connectHolder:nt,connectApi:rt}}const EVENTS={LOGIN:Symbol("login"),CANCEL_LOGIN:Symbol("cancelLogin"),LOGOUT:Symbol("logout"),SWITCH_PROFILE:Symbol("switchProfile"),CANCEL_SWITCH_PROFILE:Symbol("cancelSwitchProfile"),SWITCH_PASSPORT:Symbol("switchPassport"),CANCEL_SWITCH_PASSPORT:Symbol("cancelSwitchPassport"),BIND_WALLET:Symbol("bindWallet"),CANCEL_BIND_WALLET:Symbol("cancelBindWallet"),CONNECT_TO_DID_SPACE_FOR_FULL_ACCESS:Symbol("connectToDidSpaceForFullAccess")},translations$2={login:{en:{title:"Connect DID Wallet",scan:"Scan following qrcode to connect your DID Wallet",confirm:"Confirm connection in your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包",scan:"请使用 DID 钱包扫码下面的二维码完成连接",confirm:"在 DID 钱包中确认连接",success:"连接成功"}},"switch-specified-did":{en:{title:"Switch DID",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"你需要切换账号至 {did} 才能完成后续的操作",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-did":{en:{title:"Switch DID",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"请使用 DID 钱包扫码下面的二维码完成切换",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-profile":{en:{title:"Switch Profile",scan:"Scan following qrcode with DID Wallet to switch profile",confirm:"Select profile in your DID Wallet",success:"Profile updated"},zh:{title:"切换个人信息",scan:"请使用 DID 钱包扫码下面的二维码来切换个人信息",confirm:"在 DID 钱包中选择个人信息",success:"个人信息已经更新"}},"switch-passport":{en:{title:"Switch Passport",scan:"Scan following qrcode with DID Wallet to switch passport",confirm:"Select passport in your DID Wallet",success:"Passport and session updated"},zh:{title:"切换通行证",scan:"请使用 DID 钱包扫码二维码来切换通行证",confirm:"在 DID 钱包中选择通行证",success:"通行证和会话已经更新"}},"connect-to-did-spaces-for-user":{en:{title:"Please authorize the application to connect to your DID Space",scan:"Please use your DID wallet to scan the QR code for authorization",confirm:"Select the DID Spaces NFT in your DID wallet",success:"Connection successful"},zh:{title:"请授权应用连接你的 DID Space",scan:"请使用 DID 钱包扫码二维码来完成授权",confirm:"在 DID 钱包中选择 DID Spaces NFT",success:"连接成功"}},"bind-wallet":{en:{title:"Connect DID Wallet for enhanced security",scan:"Scan following qrcode with DID Wallet to connect your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包获得更高的安全性",scan:"请使用 DID 钱包扫码二维码来连接您的 DID 钱包",success:"连接成功"}},exchangePassport:{en:{action:"Exchange Passport with NFT",tooltip:"Exchange passport if you owns any required NFT"},zh:{action:"兑换通行证",tooltip:"通过出示你持有的特定 NFT 来获取通行证"}},lostPassport:{en:{action:"Lost Passport"},zh:{action:"找回通行证"}},switchAccountDialog:{en:{confirm:"Switch",title:"Switch Account",description:"Please switch accounts to complete next action",currentAccount:"Current account",nextAccount:"Account to be switched"},zh:{confirm:"切换",title:"切换账号",description:"请切换账号来完成后续的操作",currentAccount:"当前登录的账户",nextAccount:"即将切换的账户"}}};var re$2={exports:{}};const SEMVER_SPEC_VERSION="2.0.0",MAX_LENGTH$1=256,MAX_SAFE_INTEGER$2=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=MAX_LENGTH$1-6,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var constants$1={MAX_LENGTH:MAX_LENGTH$1,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$2,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},define_process_env_default$1={};const debug$3=typeof process$1$1=="object"&&define_process_env_default$1&&define_process_env_default$1.NODE_DEBUG&&/\bsemver\b/i.test(define_process_env_default$1.NODE_DEBUG)?(...a)=>console.error("SEMVER",...a):()=>{};var debug_1$1=debug$3;(function(a,j){const{MAX_SAFE_COMPONENT_LENGTH:_e,MAX_SAFE_BUILD_LENGTH:et,MAX_LENGTH:tt}=constants$1,nt=debug_1$1;j=a.exports={};const rt=j.re=[],it=j.safeRe=[],ot=j.src=[],ct=j.t={};let ut=0;const dt="[a-zA-Z0-9-]",pt=[["\\s",1],["\\d",tt],[dt,et]],mt=Et=>{for(const[Rt,xt]of pt)Et=Et.split(`${Rt}*`).join(`${Rt}{0,${xt}}`).split(`${Rt}+`).join(`${Rt}{1,${xt}}`);return Et},vt=(Et,Rt,xt)=>{const Pt=mt(Rt),Dt=ut++;nt(Et,Dt,Rt),ct[Et]=Dt,ot[Dt]=Rt,rt[Dt]=new RegExp(Rt,xt?"g":void 0),it[Dt]=new RegExp(Pt,xt?"g":void 0)};vt("NUMERICIDENTIFIER","0|[1-9]\\d*"),vt("NUMERICIDENTIFIERLOOSE","\\d+"),vt("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${dt}*`),vt("MAINVERSION",`(${ot[ct.NUMERICIDENTIFIER]})\\.(${ot[ct.NUMERICIDENTIFIER]})\\.(${ot[ct.NUMERICIDENTIFIER]})`),vt("MAINVERSIONLOOSE",`(${ot[ct.NUMERICIDENTIFIERLOOSE]})\\.(${ot[ct.NUMERICIDENTIFIERLOOSE]})\\.(${ot[ct.NUMERICIDENTIFIERLOOSE]})`),vt("PRERELEASEIDENTIFIER",`(?:${ot[ct.NUMERICIDENTIFIER]}|${ot[ct.NONNUMERICIDENTIFIER]})`),vt("PRERELEASEIDENTIFIERLOOSE",`(?:${ot[ct.NUMERICIDENTIFIERLOOSE]}|${ot[ct.NONNUMERICIDENTIFIER]})`),vt("PRERELEASE",`(?:-(${ot[ct.PRERELEASEIDENTIFIER]}(?:\\.${ot[ct.PRERELEASEIDENTIFIER]})*))`),vt("PRERELEASELOOSE",`(?:-?(${ot[ct.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ot[ct.PRERELEASEIDENTIFIERLOOSE]})*))`),vt("BUILDIDENTIFIER",`${dt}+`),vt("BUILD",`(?:\\+(${ot[ct.BUILDIDENTIFIER]}(?:\\.${ot[ct.BUILDIDENTIFIER]})*))`),vt("FULLPLAIN",`v?${ot[ct.MAINVERSION]}${ot[ct.PRERELEASE]}?${ot[ct.BUILD]}?`),vt("FULL",`^${ot[ct.FULLPLAIN]}$`),vt("LOOSEPLAIN",`[v=\\s]*${ot[ct.MAINVERSIONLOOSE]}${ot[ct.PRERELEASELOOSE]}?${ot[ct.BUILD]}?`),vt("LOOSE",`^${ot[ct.LOOSEPLAIN]}$`),vt("GTLT","((?:<|>)?=?)"),vt("XRANGEIDENTIFIERLOOSE",`${ot[ct.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),vt("XRANGEIDENTIFIER",`${ot[ct.NUMERICIDENTIFIER]}|x|X|\\*`),vt("XRANGEPLAIN",`[v=\\s]*(${ot[ct.XRANGEIDENTIFIER]})(?:\\.(${ot[ct.XRANGEIDENTIFIER]})(?:\\.(${ot[ct.XRANGEIDENTIFIER]})(?:${ot[ct.PRERELEASE]})?${ot[ct.BUILD]}?)?)?`),vt("XRANGEPLAINLOOSE",`[v=\\s]*(${ot[ct.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ot[ct.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ot[ct.XRANGEIDENTIFIERLOOSE]})(?:${ot[ct.PRERELEASELOOSE]})?${ot[ct.BUILD]}?)?)?`),vt("XRANGE",`^${ot[ct.GTLT]}\\s*${ot[ct.XRANGEPLAIN]}$`),vt("XRANGELOOSE",`^${ot[ct.GTLT]}\\s*${ot[ct.XRANGEPLAINLOOSE]}$`),vt("COERCEPLAIN",`(^|[^\\d])(\\d{1,${_e}})(?:\\.(\\d{1,${_e}}))?(?:\\.(\\d{1,${_e}}))?`),vt("COERCE",`${ot[ct.COERCEPLAIN]}(?:$|[^\\d])`),vt("COERCEFULL",ot[ct.COERCEPLAIN]+`(?:${ot[ct.PRERELEASE]})?(?:${ot[ct.BUILD]})?(?:$|[^\\d])`),vt("COERCERTL",ot[ct.COERCE],!0),vt("COERCERTLFULL",ot[ct.COERCEFULL],!0),vt("LONETILDE","(?:~>?)"),vt("TILDETRIM",`(\\s*)${ot[ct.LONETILDE]}\\s+`,!0),j.tildeTrimReplace="$1~",vt("TILDE",`^${ot[ct.LONETILDE]}${ot[ct.XRANGEPLAIN]}$`),vt("TILDELOOSE",`^${ot[ct.LONETILDE]}${ot[ct.XRANGEPLAINLOOSE]}$`),vt("LONECARET","(?:\\^)"),vt("CARETTRIM",`(\\s*)${ot[ct.LONECARET]}\\s+`,!0),j.caretTrimReplace="$1^",vt("CARET",`^${ot[ct.LONECARET]}${ot[ct.XRANGEPLAIN]}$`),vt("CARETLOOSE",`^${ot[ct.LONECARET]}${ot[ct.XRANGEPLAINLOOSE]}$`),vt("COMPARATORLOOSE",`^${ot[ct.GTLT]}\\s*(${ot[ct.LOOSEPLAIN]})$|^$`),vt("COMPARATOR",`^${ot[ct.GTLT]}\\s*(${ot[ct.FULLPLAIN]})$|^$`),vt("COMPARATORTRIM",`(\\s*)${ot[ct.GTLT]}\\s*(${ot[ct.LOOSEPLAIN]}|${ot[ct.XRANGEPLAIN]})`,!0),j.comparatorTrimReplace="$1$2$3",vt("HYPHENRANGE",`^\\s*(${ot[ct.XRANGEPLAIN]})\\s+-\\s+(${ot[ct.XRANGEPLAIN]})\\s*$`),vt("HYPHENRANGELOOSE",`^\\s*(${ot[ct.XRANGEPLAINLOOSE]})\\s+-\\s+(${ot[ct.XRANGEPLAINLOOSE]})\\s*$`),vt("STAR","(<|>)?=?\\s*\\*"),vt("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),vt("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(re$2,re$2.exports);var reExports=re$2.exports;const looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$1=a=>a?typeof a!="object"?looseOption:a:emptyOpts;var parseOptions_1=parseOptions$1;const numeric=/^[0-9]+$/,compareIdentifiers$1=(a,j)=>{const _e=numeric.test(a),et=numeric.test(j);return _e&&et&&(a=+a,j=+j),a===j?0:_e&&!et?-1:et&&!_e?1:a<j?-1:1},rcompareIdentifiers=(a,j)=>compareIdentifiers$1(j,a);var identifiers$1={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers};const debug$2=debug_1$1,{MAX_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1}=constants$1,{safeRe:re$1,t:t$1}=reExports,parseOptions=parseOptions_1,{compareIdentifiers}=identifiers$1;let SemVer$d=class ps{constructor(j,_e){if(_e=parseOptions(_e),j instanceof ps){if(j.loose===!!_e.loose&&j.includePrerelease===!!_e.includePrerelease)return j;j=j.version}else if(typeof j!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof j}".`);if(j.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug$2("SemVer",j,_e),this.options=_e,this.loose=!!_e.loose,this.includePrerelease=!!_e.includePrerelease;const et=j.trim().match(_e.loose?re$1[t$1.LOOSE]:re$1[t$1.FULL]);if(!et)throw new TypeError(`Invalid Version: ${j}`);if(this.raw=j,this.major=+et[1],this.minor=+et[2],this.patch=+et[3],this.major>MAX_SAFE_INTEGER$1||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER$1||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER$1||this.patch<0)throw new TypeError("Invalid patch version");et[4]?this.prerelease=et[4].split(".").map(tt=>{if(/^[0-9]+$/.test(tt)){const nt=+tt;if(nt>=0&&nt<MAX_SAFE_INTEGER$1)return nt}return tt}):this.prerelease=[],this.build=et[5]?et[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(j){if(debug$2("SemVer.compare",this.version,this.options,j),!(j instanceof ps)){if(typeof j=="string"&&j===this.version)return 0;j=new ps(j,this.options)}return j.version===this.version?0:this.compareMain(j)||this.comparePre(j)}compareMain(j){return j instanceof ps||(j=new ps(j,this.options)),compareIdentifiers(this.major,j.major)||compareIdentifiers(this.minor,j.minor)||compareIdentifiers(this.patch,j.patch)}comparePre(j){if(j instanceof ps||(j=new ps(j,this.options)),this.prerelease.length&&!j.prerelease.length)return-1;if(!this.prerelease.length&&j.prerelease.length)return 1;if(!this.prerelease.length&&!j.prerelease.length)return 0;let _e=0;do{const et=this.prerelease[_e],tt=j.prerelease[_e];if(debug$2("prerelease compare",_e,et,tt),et===void 0&&tt===void 0)return 0;if(tt===void 0)return 1;if(et===void 0)return-1;if(et===tt)continue;return compareIdentifiers(et,tt)}while(++_e)}compareBuild(j){j instanceof ps||(j=new ps(j,this.options));let _e=0;do{const et=this.build[_e],tt=j.build[_e];if(debug$2("build compare",_e,et,tt),et===void 0&&tt===void 0)return 0;if(tt===void 0)return 1;if(et===void 0)return-1;if(et===tt)continue;return compareIdentifiers(et,tt)}while(++_e)}inc(j,_e,et){switch(j){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",_e,et);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",_e,et);break;case"prepatch":this.prerelease.length=0,this.inc("patch",_e,et),this.inc("pre",_e,et);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",_e,et),this.inc("pre",_e,et);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const tt=Number(et)?1:0;if(!_e&&et===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[tt];else{let nt=this.prerelease.length;for(;--nt>=0;)typeof this.prerelease[nt]=="number"&&(this.prerelease[nt]++,nt=-2);if(nt===-1){if(_e===this.prerelease.join(".")&&et===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(tt)}}if(_e){let nt=[_e,tt];et===!1&&(nt=[_e]),compareIdentifiers(this.prerelease[0],_e)===0?isNaN(this.prerelease[1])&&(this.prerelease=nt):this.prerelease=nt}break}default:throw new Error(`invalid increment argument: ${j}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var semver$2=SemVer$d;const SemVer$c=semver$2,parse$d=(a,j,_e=!1)=>{if(a instanceof SemVer$c)return a;try{return new SemVer$c(a,j)}catch(et){if(!_e)return null;throw et}};var parse_1=parse$d;const parse$c=parse_1,valid$2=(a,j)=>{const _e=parse$c(a,j);return _e?_e.version:null};var valid_1=valid$2;const parse$b=parse_1,clean$1=(a,j)=>{const _e=parse$b(a.trim().replace(/^[=v]+/,""),j);return _e?_e.version:null};var clean_1=clean$1;const SemVer$b=semver$2,inc$1=(a,j,_e,et,tt)=>{typeof _e=="string"&&(tt=et,et=_e,_e=void 0);try{return new SemVer$b(a instanceof SemVer$b?a.version:a,_e).inc(j,et,tt).version}catch{return null}};var inc_1=inc$1;const parse$a=parse_1,diff$1=(a,j)=>{const _e=parse$a(a,null,!0),et=parse$a(j,null,!0),tt=_e.compare(et);if(tt===0)return null;const nt=tt>0,rt=nt?_e:et,it=nt?et:_e,ot=!!rt.prerelease.length;if(!!it.prerelease.length&&!ot)return!it.patch&&!it.minor?"major":rt.patch?"patch":rt.minor?"minor":"major";const ut=ot?"pre":"";return _e.major!==et.major?ut+"major":_e.minor!==et.minor?ut+"minor":_e.patch!==et.patch?ut+"patch":"prerelease"};var diff_1=diff$1;const SemVer$a=semver$2,major$1=(a,j)=>new SemVer$a(a,j).major;var major_1=major$1;const SemVer$9=semver$2,minor$1=(a,j)=>new SemVer$9(a,j).minor;var minor_1=minor$1;const SemVer$8=semver$2,patch$1=(a,j)=>new SemVer$8(a,j).patch;var patch_1=patch$1;const parse$9=parse_1,prerelease$1=(a,j)=>{const _e=parse$9(a,j);return _e&&_e.prerelease.length?_e.prerelease:null};var prerelease_1=prerelease$1;const SemVer$7=semver$2,compare$b=(a,j,_e)=>new SemVer$7(a,_e).compare(new SemVer$7(j,_e));var compare_1=compare$b;const compare$a=compare_1,rcompare$1=(a,j,_e)=>compare$a(j,a,_e);var rcompare_1=rcompare$1;const compare$9=compare_1,compareLoose$1=(a,j)=>compare$9(a,j,!0);var compareLoose_1=compareLoose$1;const SemVer$6=semver$2,compareBuild$3=(a,j,_e)=>{const et=new SemVer$6(a,_e),tt=new SemVer$6(j,_e);return et.compare(tt)||et.compareBuild(tt)};var compareBuild_1=compareBuild$3;const compareBuild$2=compareBuild_1,sort$1=(a,j)=>a.sort((_e,et)=>compareBuild$2(_e,et,j));var sort_1=sort$1;const compareBuild$1=compareBuild_1,rsort$1=(a,j)=>a.sort((_e,et)=>compareBuild$1(et,_e,j));var rsort_1=rsort$1;const compare$8=compare_1,gt$4=(a,j,_e)=>compare$8(a,j,_e)>0;var gt_1=gt$4;const compare$7=compare_1,lt$3=(a,j,_e)=>compare$7(a,j,_e)<0;var lt_1=lt$3;const compare$6=compare_1,eq$4=(a,j,_e)=>compare$6(a,j,_e)===0;var eq_1=eq$4;const compare$5=compare_1,neq$2=(a,j,_e)=>compare$5(a,j,_e)!==0;var neq_1=neq$2;const compare$4=compare_1,gte$3=(a,j,_e)=>compare$4(a,j,_e)>=0;var gte_1=gte$3;const compare$3=compare_1,lte$3=(a,j,_e)=>compare$3(a,j,_e)<=0;var lte_1=lte$3;const eq$3=eq_1,neq$1=neq_1,gt$3=gt_1,gte$2=gte_1,lt$2=lt_1,lte$2=lte_1,cmp$1=(a,j,_e,et)=>{switch(j){case"===":return typeof a=="object"&&(a=a.version),typeof _e=="object"&&(_e=_e.version),a===_e;case"!==":return typeof a=="object"&&(a=a.version),typeof _e=="object"&&(_e=_e.version),a!==_e;case"":case"=":case"==":return eq$3(a,_e,et);case"!=":return neq$1(a,_e,et);case">":return gt$3(a,_e,et);case">=":return gte$2(a,_e,et);case"<":return lt$2(a,_e,et);case"<=":return lte$2(a,_e,et);default:throw new TypeError(`Invalid operator: ${j}`)}};var cmp_1=cmp$1;const SemVer$5=semver$2,parse$8=parse_1,{safeRe:re,t}=reExports,coerce$1=(a,j)=>{if(a instanceof SemVer$5)return a;if(typeof a=="number"&&(a=String(a)),typeof a!="string")return null;j=j||{};let _e=null;if(!j.rtl)_e=a.match(j.includePrerelease?re[t.COERCEFULL]:re[t.COERCE]);else{const ot=j.includePrerelease?re[t.COERCERTLFULL]:re[t.COERCERTL];let ct;for(;(ct=ot.exec(a))&&(!_e||_e.index+_e[0].length!==a.length);)(!_e||ct.index+ct[0].length!==_e.index+_e[0].length)&&(_e=ct),ot.lastIndex=ct.index+ct[1].length+ct[2].length;ot.lastIndex=-1}if(_e===null)return null;const et=_e[2],tt=_e[3]||"0",nt=_e[4]||"0",rt=j.includePrerelease&&_e[5]?`-${_e[5]}`:"",it=j.includePrerelease&&_e[6]?`+${_e[6]}`:"";return parse$8(`${et}.${tt}.${nt}${rt}${it}`,j)};var coerce_1=coerce$1;class LRUCache{constructor(){this.max=1e3,this.map=new Map}get(j){const _e=this.map.get(j);if(_e!==void 0)return this.map.delete(j),this.map.set(j,_e),_e}delete(j){return this.map.delete(j)}set(j,_e){if(!this.delete(j)&&_e!==void 0){if(this.map.size>=this.max){const tt=this.map.keys().next().value;this.delete(tt)}this.map.set(j,_e)}return this}}var lrucache=LRUCache,range,hasRequiredRange;function requireRange(){if(hasRequiredRange)return range;hasRequiredRange=1;const a=/\s+/g;class j{constructor(ht,$t){if($t=tt($t),ht instanceof j)return ht.loose===!!$t.loose&&ht.includePrerelease===!!$t.includePrerelease?ht:new j(ht.raw,$t);if(ht instanceof nt)return this.raw=ht.value,this.set=[[ht]],this.formatted=void 0,this;if(this.options=$t,this.loose=!!$t.loose,this.includePrerelease=!!$t.includePrerelease,this.raw=ht.trim().replace(a," "),this.set=this.raw.split("||").map(Tt=>this.parseRange(Tt.trim())).filter(Tt=>Tt.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const Tt=this.set[0];if(this.set=this.set.filter(At=>!Et(At[0])),this.set.length===0)this.set=[Tt];else if(this.set.length>1){for(const At of this.set)if(At.length===1&&Rt(At[0])){this.set=[At];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let ht=0;ht<this.set.length;ht++){ht>0&&(this.formatted+="||");const $t=this.set[ht];for(let Tt=0;Tt<$t.length;Tt++)Tt>0&&(this.formatted+=" "),this.formatted+=$t[Tt].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(ht){const Tt=((this.options.includePrerelease&&mt)|(this.options.loose&&vt))+":"+ht,At=et.get(Tt);if(At)return At;const kt=this.options.loose,Ct=kt?ot[ct.HYPHENRANGELOOSE]:ot[ct.HYPHENRANGE];ht=ht.replace(Ct,Mt(this.options.includePrerelease)),rt("hyphen replace",ht),ht=ht.replace(ot[ct.COMPARATORTRIM],ut),rt("comparator trim",ht),ht=ht.replace(ot[ct.TILDETRIM],dt),rt("tilde trim",ht),ht=ht.replace(ot[ct.CARETTRIM],pt),rt("caret trim",ht);let It=ht.split(" ").map(Ut=>Pt(Ut,this.options)).join(" ").split(/\s+/).map(Ut=>Qt(Ut,this.options));kt&&(It=It.filter(Ut=>(rt("loose invalid filter",Ut,this.options),!!Ut.match(ot[ct.COMPARATORLOOSE])))),rt("range list",It);const bt=new Map,Lt=It.map(Ut=>new nt(Ut,this.options));for(const Ut of Lt){if(Et(Ut))return[Ut];bt.set(Ut.value,Ut)}bt.size>1&&bt.has("")&&bt.delete("");const sn=[...bt.values()];return et.set(Tt,sn),sn}intersects(ht,$t){if(!(ht instanceof j))throw new TypeError("a Range is required");return this.set.some(Tt=>xt(Tt,$t)&&ht.set.some(At=>xt(At,$t)&&Tt.every(kt=>At.every(Ct=>kt.intersects(Ct,$t)))))}test(ht){if(!ht)return!1;if(typeof ht=="string")try{ht=new it(ht,this.options)}catch{return!1}for(let $t=0;$t<this.set.length;$t++)if(wt(this.set[$t],ht,this.options))return!0;return!1}}range=j;const _e=lrucache,et=new _e,tt=parseOptions_1,nt=requireComparator(),rt=debug_1$1,it=semver$2,{safeRe:ot,t:ct,comparatorTrimReplace:ut,tildeTrimReplace:dt,caretTrimReplace:pt}=reExports,{FLAG_INCLUDE_PRERELEASE:mt,FLAG_LOOSE:vt}=constants$1,Et=ft=>ft.value==="<0.0.0-0",Rt=ft=>ft.value==="",xt=(ft,ht)=>{let $t=!0;const Tt=ft.slice();let At=Tt.pop();for(;$t&&Tt.length;)$t=Tt.every(kt=>At.intersects(kt,ht)),At=Tt.pop();return $t},Pt=(ft,ht)=>(rt("comp",ft,ht),ft=Nt(ft,ht),rt("caret",ft),ft=Ft(ft,ht),rt("tildes",ft),ft=nn(ft,ht),rt("xrange",ft),ft=hn(ft,ht),rt("stars",ft),ft),Dt=ft=>!ft||ft.toLowerCase()==="x"||ft==="*",Ft=(ft,ht)=>ft.trim().split(/\s+/).map($t=>zt($t,ht)).join(" "),zt=(ft,ht)=>{const $t=ht.loose?ot[ct.TILDELOOSE]:ot[ct.TILDE];return ft.replace($t,(Tt,At,kt,Ct,It)=>{rt("tilde",ft,Tt,At,kt,Ct,It);let bt;return Dt(At)?bt="":Dt(kt)?bt=`>=${At}.0.0 <${+At+1}.0.0-0`:Dt(Ct)?bt=`>=${At}.${kt}.0 <${At}.${+kt+1}.0-0`:It?(rt("replaceTilde pr",It),bt=`>=${At}.${kt}.${Ct}-${It} <${At}.${+kt+1}.0-0`):bt=`>=${At}.${kt}.${Ct} <${At}.${+kt+1}.0-0`,rt("tilde return",bt),bt})},Nt=(ft,ht)=>ft.trim().split(/\s+/).map($t=>Vt($t,ht)).join(" "),Vt=(ft,ht)=>{rt("caret",ft,ht);const $t=ht.loose?ot[ct.CARETLOOSE]:ot[ct.CARET],Tt=ht.includePrerelease?"-0":"";return ft.replace($t,(At,kt,Ct,It,bt)=>{rt("caret",ft,At,kt,Ct,It,bt);let Lt;return Dt(kt)?Lt="":Dt(Ct)?Lt=`>=${kt}.0.0${Tt} <${+kt+1}.0.0-0`:Dt(It)?kt==="0"?Lt=`>=${kt}.${Ct}.0${Tt} <${kt}.${+Ct+1}.0-0`:Lt=`>=${kt}.${Ct}.0${Tt} <${+kt+1}.0.0-0`:bt?(rt("replaceCaret pr",bt),kt==="0"?Ct==="0"?Lt=`>=${kt}.${Ct}.${It}-${bt} <${kt}.${Ct}.${+It+1}-0`:Lt=`>=${kt}.${Ct}.${It}-${bt} <${kt}.${+Ct+1}.0-0`:Lt=`>=${kt}.${Ct}.${It}-${bt} <${+kt+1}.0.0-0`):(rt("no pr"),kt==="0"?Ct==="0"?Lt=`>=${kt}.${Ct}.${It}${Tt} <${kt}.${Ct}.${+It+1}-0`:Lt=`>=${kt}.${Ct}.${It}${Tt} <${kt}.${+Ct+1}.0-0`:Lt=`>=${kt}.${Ct}.${It} <${+kt+1}.0.0-0`),rt("caret return",Lt),Lt})},nn=(ft,ht)=>(rt("replaceXRanges",ft,ht),ft.split(/\s+/).map($t=>fn($t,ht)).join(" ")),fn=(ft,ht)=>{ft=ft.trim();const $t=ht.loose?ot[ct.XRANGELOOSE]:ot[ct.XRANGE];return ft.replace($t,(Tt,At,kt,Ct,It,bt)=>{rt("xRange",ft,Tt,At,kt,Ct,It,bt);const Lt=Dt(kt),sn=Lt||Dt(Ct),Ut=sn||Dt(It),Zt=Ut;return At==="="&&Zt&&(At=""),bt=ht.includePrerelease?"-0":"",Lt?At===">"||At==="<"?Tt="<0.0.0-0":Tt="*":At&&Zt?(sn&&(Ct=0),It=0,At===">"?(At=">=",sn?(kt=+kt+1,Ct=0,It=0):(Ct=+Ct+1,It=0)):At==="<="&&(At="<",sn?kt=+kt+1:Ct=+Ct+1),At==="<"&&(bt="-0"),Tt=`${At+kt}.${Ct}.${It}${bt}`):sn?Tt=`>=${kt}.0.0${bt} <${+kt+1}.0.0-0`:Ut&&(Tt=`>=${kt}.${Ct}.0${bt} <${kt}.${+Ct+1}.0-0`),rt("xRange return",Tt),Tt})},hn=(ft,ht)=>(rt("replaceStars",ft,ht),ft.trim().replace(ot[ct.STAR],"")),Qt=(ft,ht)=>(rt("replaceGTE0",ft,ht),ft.trim().replace(ot[ht.includePrerelease?ct.GTE0PRE:ct.GTE0],"")),Mt=ft=>(ht,$t,Tt,At,kt,Ct,It,bt,Lt,sn,Ut,Zt)=>(Dt(Tt)?$t="":Dt(At)?$t=`>=${Tt}.0.0${ft?"-0":""}`:Dt(kt)?$t=`>=${Tt}.${At}.0${ft?"-0":""}`:Ct?$t=`>=${$t}`:$t=`>=${$t}${ft?"-0":""}`,Dt(Lt)?bt="":Dt(sn)?bt=`<${+Lt+1}.0.0-0`:Dt(Ut)?bt=`<${Lt}.${+sn+1}.0-0`:Zt?bt=`<=${Lt}.${sn}.${Ut}-${Zt}`:ft?bt=`<${Lt}.${sn}.${+Ut+1}-0`:bt=`<=${bt}`,`${$t} ${bt}`.trim()),wt=(ft,ht,$t)=>{for(let Tt=0;Tt<ft.length;Tt++)if(!ft[Tt].test(ht))return!1;if(ht.prerelease.length&&!$t.includePrerelease){for(let Tt=0;Tt<ft.length;Tt++)if(rt(ft[Tt].semver),ft[Tt].semver!==nt.ANY&&ft[Tt].semver.prerelease.length>0){const At=ft[Tt].semver;if(At.major===ht.major&&At.minor===ht.minor&&At.patch===ht.patch)return!0}return!1}return!0};return range}var comparator,hasRequiredComparator;function requireComparator(){if(hasRequiredComparator)return comparator;hasRequiredComparator=1;const a=Symbol("SemVer ANY");class j{static get ANY(){return a}constructor(ut,dt){if(dt=_e(dt),ut instanceof j){if(ut.loose===!!dt.loose)return ut;ut=ut.value}ut=ut.trim().split(/\s+/).join(" "),rt("comparator",ut,dt),this.options=dt,this.loose=!!dt.loose,this.parse(ut),this.semver===a?this.value="":this.value=this.operator+this.semver.version,rt("comp",this)}parse(ut){const dt=this.options.loose?et[tt.COMPARATORLOOSE]:et[tt.COMPARATOR],pt=ut.match(dt);if(!pt)throw new TypeError(`Invalid comparator: ${ut}`);this.operator=pt[1]!==void 0?pt[1]:"",this.operator==="="&&(this.operator=""),pt[2]?this.semver=new it(pt[2],this.options.loose):this.semver=a}toString(){return this.value}test(ut){if(rt("Comparator.test",ut,this.options.loose),this.semver===a||ut===a)return!0;if(typeof ut=="string")try{ut=new it(ut,this.options)}catch{return!1}return nt(ut,this.operator,this.semver,this.options)}intersects(ut,dt){if(!(ut instanceof j))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new ot(ut.value,dt).test(this.value):ut.operator===""?ut.value===""?!0:new ot(this.value,dt).test(ut.semver):(dt=_e(dt),dt.includePrerelease&&(this.value==="<0.0.0-0"||ut.value==="<0.0.0-0")||!dt.includePrerelease&&(this.value.startsWith("<0.0.0")||ut.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&ut.operator.startsWith(">")||this.operator.startsWith("<")&&ut.operator.startsWith("<")||this.semver.version===ut.semver.version&&this.operator.includes("=")&&ut.operator.includes("=")||nt(this.semver,"<",ut.semver,dt)&&this.operator.startsWith(">")&&ut.operator.startsWith("<")||nt(this.semver,">",ut.semver,dt)&&this.operator.startsWith("<")&&ut.operator.startsWith(">")))}}comparator=j;const _e=parseOptions_1,{safeRe:et,t:tt}=reExports,nt=cmp_1,rt=debug_1$1,it=semver$2,ot=requireRange();return comparator}const Range$9=requireRange(),satisfies$4=(a,j,_e)=>{try{j=new Range$9(j,_e)}catch{return!1}return j.test(a)};var satisfies_1=satisfies$4;const Range$8=requireRange(),toComparators$1=(a,j)=>new Range$8(a,j).set.map(_e=>_e.map(et=>et.value).join(" ").trim().split(" "));var toComparators_1=toComparators$1;const SemVer$4=semver$2,Range$7=requireRange(),maxSatisfying$1=(a,j,_e)=>{let et=null,tt=null,nt=null;try{nt=new Range$7(j,_e)}catch{return null}return a.forEach(rt=>{nt.test(rt)&&(!et||tt.compare(rt)===-1)&&(et=rt,tt=new SemVer$4(et,_e))}),et};var maxSatisfying_1=maxSatisfying$1;const SemVer$3=semver$2,Range$6=requireRange(),minSatisfying$1=(a,j,_e)=>{let et=null,tt=null,nt=null;try{nt=new Range$6(j,_e)}catch{return null}return a.forEach(rt=>{nt.test(rt)&&(!et||tt.compare(rt)===1)&&(et=rt,tt=new SemVer$3(et,_e))}),et};var minSatisfying_1=minSatisfying$1;const SemVer$2=semver$2,Range$5=requireRange(),gt$2=gt_1,minVersion$1=(a,j)=>{a=new Range$5(a,j);let _e=new SemVer$2("0.0.0");if(a.test(_e)||(_e=new SemVer$2("0.0.0-0"),a.test(_e)))return _e;_e=null;for(let et=0;et<a.set.length;++et){const tt=a.set[et];let nt=null;tt.forEach(rt=>{const it=new SemVer$2(rt.semver.version);switch(rt.operator){case">":it.prerelease.length===0?it.patch++:it.prerelease.push(0),it.raw=it.format();case"":case">=":(!nt||gt$2(it,nt))&&(nt=it);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${rt.operator}`)}}),nt&&(!_e||gt$2(_e,nt))&&(_e=nt)}return _e&&a.test(_e)?_e:null};var minVersion_1=minVersion$1;const Range$4=requireRange(),validRange$1=(a,j)=>{try{return new Range$4(a,j).range||"*"}catch{return null}};var valid$1=validRange$1;const SemVer$1=semver$2,Comparator$2=requireComparator(),{ANY:ANY$1}=Comparator$2,Range$3=requireRange(),satisfies$3=satisfies_1,gt$1=gt_1,lt$1=lt_1,lte$1=lte_1,gte$1=gte_1,outside$3=(a,j,_e,et)=>{a=new SemVer$1(a,et),j=new Range$3(j,et);let tt,nt,rt,it,ot;switch(_e){case">":tt=gt$1,nt=lte$1,rt=lt$1,it=">",ot=">=";break;case"<":tt=lt$1,nt=gte$1,rt=gt$1,it="<",ot="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies$3(a,j,et))return!1;for(let ct=0;ct<j.set.length;++ct){const ut=j.set[ct];let dt=null,pt=null;if(ut.forEach(mt=>{mt.semver===ANY$1&&(mt=new Comparator$2(">=0.0.0")),dt=dt||mt,pt=pt||mt,tt(mt.semver,dt.semver,et)?dt=mt:rt(mt.semver,pt.semver,et)&&(pt=mt)}),dt.operator===it||dt.operator===ot||(!pt.operator||pt.operator===it)&&nt(a,pt.semver))return!1;if(pt.operator===ot&&rt(a,pt.semver))return!1}return!0};var outside_1=outside$3;const outside$2=outside_1,gtr$1=(a,j,_e)=>outside$2(a,j,">",_e);var gtr_1=gtr$1;const outside$1=outside_1,ltr$1=(a,j,_e)=>outside$1(a,j,"<",_e);var ltr_1=ltr$1;const Range$2=requireRange(),intersects$1=(a,j,_e)=>(a=new Range$2(a,_e),j=new Range$2(j,_e),a.intersects(j,_e));var intersects_1=intersects$1;const satisfies$2=satisfies_1,compare$2=compare_1;var simplify=(a,j,_e)=>{const et=[];let tt=null,nt=null;const rt=a.sort((ut,dt)=>compare$2(ut,dt,_e));for(const ut of rt)satisfies$2(ut,j,_e)?(nt=ut,tt||(tt=ut)):(nt&&et.push([tt,nt]),nt=null,tt=null);tt&&et.push([tt,null]);const it=[];for(const[ut,dt]of et)ut===dt?it.push(ut):!dt&&ut===rt[0]?it.push("*"):dt?ut===rt[0]?it.push(`<=${dt}`):it.push(`${ut} - ${dt}`):it.push(`>=${ut}`);const ot=it.join(" || "),ct=typeof j.raw=="string"?j.raw:String(j);return ot.length<ct.length?ot:j};const Range$1=requireRange(),Comparator$1=requireComparator(),{ANY}=Comparator$1,satisfies$1=satisfies_1,compare$1=compare_1,subset$1=(a,j,_e={})=>{if(a===j)return!0;a=new Range$1(a,_e),j=new Range$1(j,_e);let et=!1;e:for(const tt of a.set){for(const nt of j.set){const rt=simpleSubset(tt,nt,_e);if(et=et||rt!==null,rt)continue e}if(et)return!1}return!0},minimumVersionWithPreRelease=[new Comparator$1(">=0.0.0-0")],minimumVersion=[new Comparator$1(">=0.0.0")],simpleSubset=(a,j,_e)=>{if(a===j)return!0;if(a.length===1&&a[0].semver===ANY){if(j.length===1&&j[0].semver===ANY)return!0;_e.includePrerelease?a=minimumVersionWithPreRelease:a=minimumVersion}if(j.length===1&&j[0].semver===ANY){if(_e.includePrerelease)return!0;j=minimumVersion}const et=new Set;let tt,nt;for(const mt of a)mt.operator===">"||mt.operator===">="?tt=higherGT(tt,mt,_e):mt.operator==="<"||mt.operator==="<="?nt=lowerLT(nt,mt,_e):et.add(mt.semver);if(et.size>1)return null;let rt;if(tt&&nt){if(rt=compare$1(tt.semver,nt.semver,_e),rt>0)return null;if(rt===0&&(tt.operator!==">="||nt.operator!=="<="))return null}for(const mt of et){if(tt&&!satisfies$1(mt,String(tt),_e)||nt&&!satisfies$1(mt,String(nt),_e))return null;for(const vt of j)if(!satisfies$1(mt,String(vt),_e))return!1;return!0}let it,ot,ct,ut,dt=nt&&!_e.includePrerelease&&nt.semver.prerelease.length?nt.semver:!1,pt=tt&&!_e.includePrerelease&&tt.semver.prerelease.length?tt.semver:!1;dt&&dt.prerelease.length===1&&nt.operator==="<"&&dt.prerelease[0]===0&&(dt=!1);for(const mt of j){if(ut=ut||mt.operator===">"||mt.operator===">=",ct=ct||mt.operator==="<"||mt.operator==="<=",tt){if(pt&&mt.semver.prerelease&&mt.semver.prerelease.length&&mt.semver.major===pt.major&&mt.semver.minor===pt.minor&&mt.semver.patch===pt.patch&&(pt=!1),mt.operator===">"||mt.operator===">="){if(it=higherGT(tt,mt,_e),it===mt&&it!==tt)return!1}else if(tt.operator===">="&&!satisfies$1(tt.semver,String(mt),_e))return!1}if(nt){if(dt&&mt.semver.prerelease&&mt.semver.prerelease.length&&mt.semver.major===dt.major&&mt.semver.minor===dt.minor&&mt.semver.patch===dt.patch&&(dt=!1),mt.operator==="<"||mt.operator==="<="){if(ot=lowerLT(nt,mt,_e),ot===mt&&ot!==nt)return!1}else if(nt.operator==="<="&&!satisfies$1(nt.semver,String(mt),_e))return!1}if(!mt.operator&&(nt||tt)&&rt!==0)return!1}return!(tt&&ct&&!nt&&rt!==0||nt&&ut&&!tt&&rt!==0||pt||dt)},higherGT=(a,j,_e)=>{if(!a)return j;const et=compare$1(a.semver,j.semver,_e);return et>0?a:et<0||j.operator===">"&&a.operator===">="?j:a},lowerLT=(a,j,_e)=>{if(!a)return j;const et=compare$1(a.semver,j.semver,_e);return et<0?a:et>0||j.operator==="<"&&a.operator==="<="?j:a};var subset_1=subset$1;const internalRe=reExports,constants=constants$1,SemVer=semver$2,identifiers=identifiers$1,parse$7=parse_1,valid=valid_1,clean=clean_1,inc=inc_1,diff=diff_1,major=major_1,minor=minor_1,patch=patch_1,prerelease=prerelease_1,compare=compare_1,rcompare=rcompare_1,compareLoose=compareLoose_1,compareBuild=compareBuild_1,sort=sort_1,rsort=rsort_1,gt=gt_1,lt=lt_1,eq$2=eq_1,neq=neq_1,gte=gte_1,lte=lte_1,cmp=cmp_1,coerce=coerce_1,Comparator=requireComparator(),Range=requireRange(),satisfies=satisfies_1,toComparators=toComparators_1,maxSatisfying=maxSatisfying_1,minSatisfying=minSatisfying_1,minVersion=minVersion_1,validRange=valid$1,outside=outside_1,gtr=gtr_1,ltr=ltr_1,intersects=intersects_1,simplifyRange=simplify,subset=subset_1;var semver={parse:parse$7,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq:eq$2,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers};const semver$1=getDefaultExportFromCjs$1(semver),BLACK_LIST=[`${AUTH_SERVICE_PREFIX}/connect`,`${AUTH_SERVICE_PREFIX}/login`,`${AUTH_SERVICE_PREFIX}/invite`,`${AUTH_SERVICE_PREFIX}/issue-passport`,`${AUTH_SERVICE_PREFIX}/oauth/*`],blackListRoute=BLACK_LIST.map(a=>pathToRegexp$1(a,[]));async function login(){const a=(window==null?void 0:window.blocklet)||{},j=window.location.pathname,{componentId:_e,CHAIN_TYPE:et="arcblock",appPid:tt}=a;if(blackListRoute.some(it=>it.exec(j)))return null;const rt=getApps();try{const it=`${window.location.origin}${AUTH_SERVICE_PREFIX}/api/user/loginByWallet`;return await default_1$3.asyncCall("arcLogin",{target:it,chainType:et,appPid:tt,componentId:_e,apps:rt.map(ct=>{let ut=ct==null?void 0:ct.appLogo;return isUrl(ut)||(ut=joinURL(ct.appUrl,ut)),{appName:ct.appName,appPid:ct.appPid,appUrl:ct.appUrl,appLogo:ut,sourceAppPid:ct.sourceAppPid}})})}catch(it){return console.error(it),null}}async function getVisitorId(){return await default_1$3.asyncCall("arcGetVisitorId")}function checkEnableAutoLogin({platform:a,version:j}={}){return!!(a==="ios"&&j&&semver$1.gte(j,"4.15.6")||a==="android"&&j&&semver$1.gte(j,"4.15.1"))}async function didSpacesIsRequired(a){var tt;if((tt=a==null?void 0:a.didSpace)!=null&&tt.endpoint||!window.blocklet||window.self!==window.top)return!1;const j=getWalletDid(a);if(isEmpty$1(j))return!1;const{componentMountPoints:_e}=window.blocklet,[,et]=window.blocklet.componentId.split("/");return _e.some(nt=>{var rt;return((rt=nt==null?void 0:nt.capabilities)==null?void 0:rt.didSpace)==="requiredOnConnect"&&et===nt.did})}const{Provider:Provider$4,Consumer:Consumer$4}=SessionContext$1,didConnectTimeoutError={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"},waitForDidConnect={en:"DID Connect is already opened, please wait for it to complete",zh:"DID Connect 已打开,请等待完成"};function createSessionContext(a=SESSION_TOKEN_STORAGE_KEY,j="ls",_e={},et={}){var ct;let tt="/";(ct=globalThis==null?void 0:globalThis.blocklet)!=null&&ct.prefix&&(tt=globalThis.blocklet.prefix),typeof et=="boolean"&&(et={appendAuthServicePrefix:et,extraParams:{}}),defaultsDeep$1(et,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:REFRESH_TOKEN_STORAGE_KEY});const nt=createStorage(a,j,_e),rt=createStorage(et.refreshTokenStorageKey,"ls");function it(ut){var Cn,On;const{connectApi:dt,connectHolder:pt}=useConnect(),mt=useBrowser(),vt=useReactive({extraParams:{},options:{},currentLocale:ut.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof ut.autoConnect=="boolean"?ut.autoConnect:!!ut.autoLogin},get prefix(){return et.appendAuthServicePrefix||ut.appendAuthServicePrefix?joinURL(AUTH_SERVICE_PREFIX,ut.prefix):ut.prefix}}),Et=useReactive({action:ut.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:""}),Rt=useCreation(()=>ut.locale||vt.currentLocale||getBrowserLang(),[ut.locale,vt.currentLocale]),{confirmApi:xt,confirmHolder:Pt}=useConfirm(),Dt=useMemoizedFn(()=>{if(Et.open){const Vn=waitForDidConnect[Rt]||waitForDidConnect.en;throw Toast$1.warning(Vn),new Error(Vn)}}),Ft=useCreation(()=>new EventEmitter$6,[]),zt=useMemoizedFn((Vn,Nn,Un)=>{const ar={login:[EVENTS.LOGIN,EVENTS.CANCEL_LOGIN],"bind-wallet":[EVENTS.BIND_WALLET,EVENTS.CANCEL_BIND_WALLET],"switch-passport":[EVENTS.SWITCH_PASSPORT,EVENTS.CANCEL_SWITCH_PASSPORT],"switch-profile":[EVENTS.SWITCH_PROFILE,EVENTS.CANCEL_SWITCH_PROFILE],"switch-did":[EVENTS.LOGIN,EVENTS.CANCEL_LOGIN]};if(!Object.keys(ar).includes(Vn))return;const er=async(...or)=>{isFunction$8(Nn)&&await Nn(...or),Ft.emit(Vn,...or)};Ft.once(ar[Vn][0],er),Ft.once(ar[Vn][1],async(...or)=>{isFunction$8(er)&&Ft.off(ar[Vn][0],er),isFunction$8(Un)&&await Un(...or),Ft.emit(`cancel-${Vn}`,...or)})}),Nt=usePrevious(Et.initialized,(Vn,Nn)=>Vn!==Nn||Vn===!0&&Nn===!0),{handleRefreshUser:Vt,handleRefreshToken:nn,renewToken:fn,clearSession:hn,handleLoginResult:Qt,decrypt:Mt,service:wt,getSessionToken:ft,getRefreshToken:ht,setRefreshToken:$t,setSessionToken:Tt}=useSessionToken({state:Et,pageState:vt,sessionTokenStorage:nt,refreshTokenStorage:rt,serviceHost:ut.serviceHost,apiOptions:ut.apiOptions,lazyRefreshToken:ut.lazyRefreshToken}),At=useMemoizedFn((Vn,Nn={},Un={})=>{Dt();const ar=Vn;typeof ar=="object"&&(Vn=ar.onSuccess,Nn=ar.extraParams||{},Un=ar.options||{},Un.origin=ar.origin||""),(!Et.user||Un.origin==="switch-did")&&(Un.origin==="switch-did"?zt("switch-did",Vn,ar==null?void 0:ar.onCancel):zt("login",Vn,ar==null?void 0:ar.onCancel),vt.extraParams=Nn,vt.options=Un,Et.action="login",Fn())}),kt=useMemoizedFn(async(Vn,Nn={},Un={})=>{var ur;Dt();const ar=Vn;typeof ar=="object"&&(Vn=ar.onSuccess,Nn=ar.extraParams||{},Un=ar.options||{});const{params:er}=await decodeUrlParams();if(isUndefined$2(Nn==null?void 0:Nn.forceConnected)&&(er!=null&&er.forceConnected)&&(Nn.forceConnected=er.forceConnected,isUndefined$2(Un.showQuickConnect)&&(Un.showQuickConnect=!1)),isUndefined$2(Nn==null?void 0:Nn.sourceAppPid)&&!isUndefined$2(er==null?void 0:er.sourceAppPid)&&(Nn.sourceAppPid=er.sourceAppPid),(Nn==null?void 0:Nn.openMode)==="redirect"){const Fr=(Nn==null?void 0:Nn.redirect)||"/",xr=new URL(`${AUTH_SERVICE_PREFIX}/login`,window.location.origin);xr.searchParams.set("redirect",Fr),Nn!=null&&Nn.forceConnected&&xr.searchParams.set("forceConnected",Nn==null?void 0:Nn.forceConnected),isUndefined$2(Nn==null?void 0:Nn.sourceAppPid)||xr.searchParams.set("sourceAppPid",Nn==null?void 0:Nn.sourceAppPid),Un!=null&&Un.origin&&xr.searchParams.set("origin",Un.origin),window.location.href=xr.href;return}let or=Nn==null?void 0:Nn.sourceAppPid;isUndefined$2(or)&&qn&&(or=Qn.appPid),await pWaitFor$1(()=>Et.initialized),typeof Un=="string"&&(Un={origin:Un});const Dr=cloneDeep$1(Nn);vt.allowWallet=void 0;const _r=(Dr==null?void 0:Dr.openMode)||((ur=ut==null?void 0:ut.extraParams)==null?void 0:ur.openMode);isUndefined$2(_r)?vt.openMode="window":vt.openMode=_r,or?Et.baseUrl=globalThis.blocklet.appUrl:Et.baseUrl="",At(Vn,Dr,Un)}),Ct=getVisitorId$2(),It=useMemoizedFn(async Vn=>{const Nn=joinURL(AUTH_SERVICE_PREFIX,"/api/user/logout");await fetch(Nn,{method:"POST",body:JSON.stringify({visitorId:Ct}),headers:{"Content-Type":"application/json"}}),hn(),Rn(),Et.user=null,Et.provider="",Et.walletOS="",Et.error="",Et.loading=!1,Ft.emit("logout"),typeof Vn=="function"&&Vn()}),{userSessions:bt,refresh:Lt,loaded:sn,loginUserSession:Ut}=useQuickConnect({appPid:getCurrentAppPid(Et.user),loginAppPid:(Cn=globalThis==null?void 0:globalThis.blocklet)==null?void 0:Cn.appPid,sourceAppPid:(On=Et==null?void 0:Et.user)==null?void 0:On.sourceAppPid,autoFetch:!1,fetchAll:!0}),Zt=useMemoizedFn(async()=>{Et!=null&&Et.user||await new Promise(Vn=>{kt(()=>{Vn()})})}),Gt=useMemoizedFn((Vn,Nn={},Un={})=>{Dt();const ar=Vn;typeof ar=="object"&&(Vn=ar.onSuccess,Nn=ar.extraParams||{},Un=ar.options||{}),typeof Un=="string"&&(Un={origin:Un}),Un!=null&&Un.userSession?Ut(Un.userSession).then(er=>{updateConnectedInfo({connected_did:Un.userSession.user.did,connected_pk:Un.userSession.user.pk,connected_wallet_os:Un.userSession.extra.walletOS,connected_app:getAppId$1()},!0),zt("switch-did",Vn),Qt({...er,encrypted:!1}),Vt(!0).then(async()=>{await sleep$1(),Ft.emit(EVENTS.LOGIN,er,Mt,Wt.current),await Kt()})}):(isUndefined$2(Nn==null?void 0:Nn.forceConnected)&&(Nn.forceConnected=!1),kt(Vn,Nn,{...Un,origin:"switch-did"}))}),Yt=useMemoizedFn(async()=>{await new BlockletSDK().user.refreshProfile()}),cn=useMemoizedFn(async(Vn,Nn={})=>{await Zt(),Dt();const Un=Vn;typeof Un=="object"&&(Vn=Un.onSuccess,Nn=Un.extraParams||{}),zt("switch-profile",Vn,Un==null?void 0:Un.onCancel),vt.extraParams=Nn,vt.options={},Et.action="switch-profile",Fn()}),En=useMemoizedFn(async(Vn,Nn={})=>{await Zt(),Dt();const Un=Vn;typeof Un=="object"&&(Vn=Un.onSuccess,Nn=Un.extraParams||{}),zt("switch-passport",Vn,Un==null?void 0:Un.onCancel),vt.extraParams=Nn,vt.options={},Et.action="switch-passport",Fn()}),Ht=useMemoizedFn(async({extraParams:Vn={},onSuccess:Nn=()=>{},...Un}={})=>{await Zt(),Dt(),vt.extraParams={referrer:window.location.href,purpose:"authorize-for-import",...Vn},vt.options={},Et.action="connect-to-did-spaces-for-user",Fn({hideCloseButton:!0,onSuccess:Nn,...Un})}),Ot=useMemoizedFn(async({extraParams:Vn={},onSuccess:Nn={}}={})=>{await Zt(),Ht({extraParams:{purpose:"authorize-for-import",...Vn},onSuccess:Nn,hideCloseButton:!1})}),Kt=useMemoizedFn(async({extraParams:Vn={},onSuccess:Nn={}}={})=>{await Zt(),await didSpacesIsRequired(Et==null?void 0:Et.user)&&Ht({extraParams:{purpose:"authorize-for-full-access",...Vn},onSuccess:Nn})}),Xt=useMemoizedFn(async(Vn,Nn={})=>{if(await Zt(),getWalletDid(Et.user)){Vn({},Mt,Wt.current);return}Dt();const Un=Vn;typeof Un=="object"&&(Vn=Un.onSuccess),zt("bind-wallet",Vn,Un==null?void 0:Un.onCancel),vt.extraParams=Nn,vt.options={},Et.action="bind-wallet",Fn()}),an=useMemoizedFn(async Vn=>{vt.extraParams={},vt.options={},Qt(Vn),Et.loading=!1,await Vt(!0),await sleep$1(),Et.action==="login"?(Ft.emit(EVENTS.LOGIN,Vn,Mt,Wt.current),Kt()):Et.action==="switch-passport"&&Ft.emit(EVENTS.SWITCH_PASSPORT,Vn,Mt,Wt.current)}),_n=useMemoizedFn(Vn=>{vt.extraParams={},vt.options={},Qt(Vn),Et.loading=!1,Vt(!0).then(async()=>{await sleep$1(),Ft.emit(EVENTS.BIND_WALLET,Vn,Mt,Wt.current)})}),yn=useMemoizedFn(()=>{Vt(!0),Ft.emit(EVENTS.CONNECT_TO_DID_SPACE_FOR_FULL_ACCESS)}),dn=useMemoizedFn(Vn=>{vt.extraParams={},vt.options={},Et.loading=!1,Vt(!0).then(async()=>{await sleep$1(),Ft.emit(EVENTS.SWITCH_PROFILE,Vn,Mt,Wt.current)})}),$n=useMemoizedFn(Vn=>{vt.extraParams={},vt.options={},Rn();const Nn={login:EVENTS.CANCEL_LOGIN,"switch-profile":EVENTS.CANCEL_SWITCH_PROFILE,"switch-passport":EVENTS.CANCEL_SWITCH_PASSPORT,"bind-wallet":EVENTS.CANCEL_BIND_WALLET};Ft.emit(Nn[Vn])}),wn=useMemoizedFn((Vn,...Nn)=>{try{In[Vn](...Nn)}catch(Un){console.error("Catch error in onSuccess",{action:Vn,args:Nn,err:Un})}}),{federatedMaster:Sn,federatedEnabled:qn,master:Qn}=useFederated({locale:Rt,decrypt:Mt,login:At,logout:It,handleLoginResult:Qt,handleRefreshUser:Vt,setRefreshToken:$t,setSessionToken:Tt}),{checkMatch:jn}=useProtectedRoutes({protectedRoutes:ut.protectedRoutes||[]}),zn=useLatest(bt),vn=useMemoizedFn(async()=>(sn||(await Lt(),await sleep$1()),zn.current)),Rn=useMemoizedFn(()=>{Et.open=!1,dt.close()}),Fn=async(Vn={})=>{var Dr,_r,ur,Fr,xr,yr,Hr;let Nn=Et.action;((Dr=vt==null?void 0:vt.options)==null?void 0:Dr.origin)==="switch-did"&&(Nn=(_r=vt==null?void 0:vt.options)==null?void 0:_r.origin);const Un=translations$2[Nn],ar=Un[Rt]||Un.en,er={...et.extraParams,...ut.extraParams,...vt.extraParams,previousUserDid:(ur=Et==null?void 0:Et.user)==null?void 0:ur.did,email:(Fr=Et==null?void 0:Et.user)==null?void 0:Fr.email};if(Nn==="switch-did"&&(er!=null&&er.forceConnected)){const br=(cr,Pn={})=>translate(translations$2["switch-specified-did"],cr,Rt,"en",Pn);ar.title=br("title"),ar.scan=br("scan",{did:er.forceConnected}),ar.confirm=br("confirm"),ar.success=br("success")}er==null||delete er.openMode;const or={action:Et.action,locale:Rt,hideCloseButton:Vn==null?void 0:Vn.hideCloseButton,extraParams:er,options:{...ut.options||{},...vt.options},checkTimeout:ut.timeout,webWalletUrl:ut.webWalletUrl,messages:ar,useSocket:ut.useSocket,...omit$1(ut,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...pick$2(vt.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:vt.prefix,allowWallet:isUndefined$2(vt.allowWallet)?Et.action!=="login"||(((xr=globalThis.blocklet)==null?void 0:xr.DID_CONNECT_ALLOW_WALLET)||"1")==="1":vt.allowWallet,onSuccess:async(...br)=>{wn(Et.action,...br),isFunction$8(Vn==null?void 0:Vn.onSuccess)&&await Vn.onSuccess(...br),Et.open=!1},onClose(...br){$n(Et.action,...br)},onError(br){console.error(br)}};if(Et.open=!0,["login"].includes(Et.action)&&vt.openMode==="window"&&!mt.wallet)try{const br={...or,baseUrl:window.location.origin};isUrl(vt.prefix)||(br.prefix=joinURL(window.location.origin,ut.serviceHost==="/"?"":ut.serviceHost,vt.prefix)),(yr=br.extraParams)!=null&&yr.provider||(br.extraParams.provider=((Hr=Et==null?void 0:Et.user)==null?void 0:Hr.provider)||"wallet"),await dt.openPopup(br,{locale:Rt})}catch(br){br instanceof NotOpenError&&Rn(),br.message==="Timeout"?Toast$1.error(didConnectTimeoutError[Rt]||didConnectTimeoutError.en):console.error(br)}else dt.open(or)},Dn=useMemoizedFn(async()=>{const{params:Vn,url:Nn}=await decodeUrlParams();if(Vn){const{switchBehavior:Un,forceConnected:ar,sourceAppPid:er,showClose:or}=Vn;ar===Et.user.did?window.history.replaceState(null,"trim",Nn):Un==="required"?Gt(()=>{},{openMode:"redirect",redirect:Nn,sourceAppPid:er,forceConnected:ar}):Un==="disabled"?window.history.replaceState(null,"trim",Nn):xt.open({title:translations$2.switchAccountDialog[Rt].title,content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Typography,{variant:"body1",sx:{textAlign:"center",mb:2},children:translations$2.switchAccountDialog[Rt].description}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",alignItems:"center",color:colors$1.foregroundsFgBase},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1},children:[jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{did:Et.user.did,shape:"circle",variant:"circle",size:80}),jsxRuntimeExports.jsx(DID,{did:Et.user.did,showAvatar:!1,compact:!0,responsive:!1}),translations$2.switchAccountDialog[Rt].currentAccount]}),jsxRuntimeExports.jsx(Box,{sx:{display:"flex",justifyContent:"center",px:2},children:jsxRuntimeExports.jsx(Box,{component:Icon,icon:data$v,fontSize:24,color:colors$1.foregroundsFgMuted,sx:{animation:"right 2.5s linear infinite","@keyframes right":{"0%":{transform:"translateX(-3px)",opacity:0},"60%":{transform:"translateX(3px)",opacity:1},"100%":{transform:"translateX(0px)",opacity:0}}}})}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1,fontWeight:500},children:[jsxRuntimeExports.jsx(AvatarWithErrorBoundary,{did:ar,shape:"circle",variant:"circle",size:80}),jsxRuntimeExports.jsx(DID,{did:ar,showAvatar:!1,compact:!0,responsive:!1}),translations$2.switchAccountDialog[Rt].nextAccount]})]})]}),showCloseButton:or,showCancelButton:!1,confirmButtonText:translations$2.switchAccountDialog[Rt].confirm,async onConfirm(Dr){const ur=(await vn()).find(Fr=>Fr.userDid===ar);if(ur){Ut(ur).then(Fr=>{updateConnectedInfo({connected_did:ur.user.did,connected_pk:ur.user.pk,connected_wallet_os:ur.extra.walletOS,connected_app:getAppId$1()},!0),Qt({...Fr,encrypted:!1}),Vt(!0).then(async()=>{await sleep$1(),Ft.emit(EVENTS.LOGIN,Fr,Mt,Wt.current),await Kt()})}),Dr();return}Gt(()=>{Dr(),window.location.replace(Nn)},{sourceAppPid:er,forceConnected:ar,enableSwitchApp:!1},{showQuickConnect:!0})}})}}),ln=useMemoizedFn(async(Vn,Nn)=>{const Un=Object.assign({login:!0,bindWallet:!0,bindDidSpaces:!1},Nn==null?void 0:Nn.requirements),ar=(Nn==null?void 0:Nn.openMode)||"popup";Un.login&&await Zt(),Un.bindWallet&&await new Promise(er=>{Xt(()=>{er()})}),Un.bindDidSpaces&&(await didSpacesIsRequired(Et==null?void 0:Et.user)||await new Promise(er=>{Un.bindDidSpaces==="full"?Kt({onSuccess(){er()}}):Un.bindDidSpaces==="read"&&Ot({onSuccess(){er()}})})),ar==="window"?dt.openPopup(Vn,Nn):ar==="popup"&&dt.open(Vn)}),Jt={...Et,loading:vt.autoConnect&&!Et.user||Et.loading,openDidConnect:ln,login:kt,logout:It,switchDid:Gt,autoSwitchDid:Dn,refreshProfile:Yt,switchProfile:cn,switchPassport:En,connectToDidSpaceForImport:Ot,connectToDidSpaceForFullAccess:Kt,bindWallet:Xt,refresh:Vt,updateConnectedInfo,federatedMaster:Sn,useOAuth,OAuthProvider,OAuthConsumer,OAuthContext,useDid,WrapDid,getUserSessions:vn},Wt=useLatest(Jt),mn={api:wt,events:Ft,storage:nt,connectApi:dt,session:Wt.current},In={login:an,"switch-profile":dn,"switch-passport":an,"bind-wallet":_n,"connect-to-did-spaces-for-user":yn};return useUpdateEffect(()=>{if(Et.initialized){const Vn=!Nt;Ft.emit("change",{user:cloneDeep$1(Et.user),isFirst:Vn})}},[Et.user,Et.initialized,Ft]),useUpdateEffect(()=>{Et.initialized&&Et.user&&Dn()},[Et.initialized]),useMount(async()=>{const Vn=Cookie.get("connected_app"),Nn=getAppId$1();if(ut.autoDisconnect&&Vn&&Nn&&Vn!==Nn){hn(),Et.initialized=!0,vt.autoConnect?Fn():Rn();return}const Un=ft();let ar="web";if(mt.mobile.apple.device?ar="ios":mt.mobile.android.device&&(ar="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&mt.wallet&&checkEnableAutoLogin({version:mt.walletVersion,platform:ar})){if(!Ct){const or=await getVisitorId();setVisitorId(or)}if(!Un)try{Et.loading=!0;const or=await login();if(or){await an({sessionToken:or.sessionToken,refreshToken:or.refreshToken,encrypted:!1}),Et.initialized=!0;return}}finally{Et.loading=!1}}if(Un){await Vt(!0),Et.initialized=!0,await Kt();return}if(typeof window<"u"){const or=new URL(window.location.href),Dr=or.searchParams.get("loginToken");if(Dr){Qt({loginToken:Dr,encrypted:!1}),or.searchParams.delete("loginToken"),window.history.replaceState({},window.title,or.href);return}}if(ht()){await nn(!0),Et.initialized=!0;return}try{}catch(or){console.error("Federated: tryAutoLogin failed",or)}finally{Et.initialized=!0}vt.autoConnect?Fn():Rn()}),jn()&&!Et.initialized?jsxRuntimeExports.jsx(Center,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):jsxRuntimeExports.jsx(Provider$4,{value:mn,children:jsxRuntimeExports.jsxs(OAuthProvider,{locale:Rt,onSwitchPassport:({sessionToken:Vn,refreshToken:Nn})=>{an({sessionToken:Vn,refreshToken:Nn,encrypted:!1})},onUnbindOAuth:()=>{Vt()},onBindOAuth:()=>{Vt()},children:[!Et.open&&typeof ut.children=="function"?ut.children(Et):ut.children,pt,Pt,et.rolling&&jsxRuntimeExports.jsx(WindowFocusAware,{callback:()=>fn()})]})})}it.propTypes={children:PropTypes.any.isRequired,serviceHost:PropTypes.string,action:PropTypes.string,prefix:PropTypes.string,appendAuthServicePrefix:PropTypes.bool,locale:PropTypes.string,timeout:PropTypes.number,autoConnect:PropTypes.bool,autoDisconnect:PropTypes.bool,useSocket:PropTypes.bool,extraParams:PropTypes.object,options:PropTypes.object,webWalletUrl:PropTypes.string,protectedRoutes:PropTypes.arrayOf(PropTypes.string),apiOptions:PropTypes.object,lazyRefreshToken:PropTypes.bool},it.defaultProps={serviceHost:tt,locale:"",action:"login",prefix:API_DID_PREFIX,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:DEFAULT_TIMEOUT$1*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function ot(ut){return function(pt){return jsxRuntimeExports.jsx(ToastProvider,{children:jsxRuntimeExports.jsx(Consumer$4,{children:mt=>jsxRuntimeExports.jsx(ut,{...pt,...mt})})})}}return{SessionProvider:ut=>jsxRuntimeExports.jsx(ToastProvider,{children:jsxRuntimeExports.jsx(it,{...ut})}),SessionConsumer:Consumer$4,SessionContext:SessionContext$1,withSession:ot}}let path="/";window.env&&(path=window.env.groupPathPrefix||window.env.pathPrefix||"/");function formatCacheTtl(a,j){return[void 0,null,""].includes(a)?j:a/86400}var z0,K0,Y0;const sessionTokenExpireInDays=formatCacheTtl((Y0=(K0=(z0=window.blocklet)==null?void 0:z0.settings)==null?void 0:K0.session)==null?void 0:Y0.cacheTtl,constant$3.SESSION_CACHE_TTL/86400);var X0,Z0,Q0;const refreshTokenExpireInDays=formatCacheTtl((Q0=(Z0=(X0=window.blocklet)==null?void 0:X0.settings)==null?void 0:Z0.session)==null?void 0:Q0.ttl,constant$3.SESSION_TTL/86400),{SessionProvider,SessionContext,SessionConsumer,withSession}=createSessionContext("login_token","cookie",{returnDomain:!1,path,expireInDays:sessionTokenExpireInDays},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays});function useSessionContext(){return reactExports.useContext(SessionContext)}function Root$1({children:a}){const j=create$3({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return jsxRuntimeExports.jsx(StyledEngineProvider,{injectFirst:!0,children:jsxRuntimeExports.jsx(ThemeProvider$1,{theme:j,children:jsxRuntimeExports.jsx(ThemeProvider$4,{theme:j,children:jsxRuntimeExports.jsx(LocaleProvider,{translations:translations$9,fallbackLocale:"en",children:jsxRuntimeExports.jsx(ToastProvider,{children:jsxRuntimeExports.jsx(RootInside,{theme:j,children:a})})})})})})}const url$1=new URL(window.location.href),mode=url$1.searchParams.get("mode")||"",isEmbedDialog=url$1.pathname.includes("embed")&&mode==="dialog",isEmbedSection=url$1.pathname.includes("embed")&&mode!=="dialog";function RootInside({children:a,theme:j}){var tt,nt,rt;const{locale:_e}=useLocaleContext(),et=css`
497
497
  ${isEmbedDialog?"body { background-color: transparent }":""}
498
498
  ${isEmbedSection?".MuiModal-backdrop { background-color: transparent !important }":""}
499
499
  a {
@@ -534,7 +534,7 @@ function print() { __p += __j.call(arguments, '') }
534
534
  height: 36px;
535
535
  }
536
536
  }
537
- `;var lib$4={},baseGetTag$1=_baseGetTag,isObjectLike$4=isObjectLike_1,boolTag="[object Boolean]";function isBoolean(a){return a===!0||a===!1||isObjectLike$4(a)&&baseGetTag$1(a)==boolTag}var isBoolean_1=isBoolean,baseGetTag=_baseGetTag,isObjectLike$3=isObjectLike_1,numberTag="[object Number]";function isNumber(a){return typeof a=="number"||isObjectLike$3(a)&&baseGetTag(a)==numberTag}var isNumber_1=isNumber,castSlice$1=_castSlice,hasUnicode=_hasUnicode,stringToArray$1=_stringToArray,toString$h=toString_1;function createCaseFirst$1(a){return function(j){j=toString$h(j);var _e=hasUnicode(j)?stringToArray$1(j):void 0,et=_e?_e[0]:j.charAt(0),tt=_e?castSlice$1(_e,1).join(""):j.slice(1);return et[a]()+tt}}var _createCaseFirst=createCaseFirst$1,createCaseFirst=_createCaseFirst,upperFirst$1=createCaseFirst("toUpperCase"),upperFirst_1$1=upperFirst$1;const upperFirst$2=getDefaultExportFromCjs$1(upperFirst_1$1);var toString$g=toString_1,upperFirst=upperFirst_1$1;function capitalize$1(a){return upperFirst(toString$g(a).toLowerCase())}var capitalize_1=capitalize$1;function arrayReduce$1(a,j,_e,et){var tt=-1,nt=a==null?0:a.length;for(et&&nt&&(_e=a[++tt]);++tt<nt;)_e=j(_e,a[tt],tt,a);return _e}var _arrayReduce=arrayReduce$1;function basePropertyOf$1(a){return function(j){return a==null?void 0:a[j]}}var _basePropertyOf=basePropertyOf$1,basePropertyOf=_basePropertyOf,deburredLetters={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$f=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr$1(a){return a=toString$f(a),a&&a.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(a){return a.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(a){return reHasUnicodeWord.test(a)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords$1(a){return a.match(reUnicodeWord)||[]}var _unicodeWords=unicodeWords$1,asciiWords=_asciiWords,hasUnicodeWord=_hasUnicodeWord,toString$e=toString_1,unicodeWords=_unicodeWords;function words$1(a,j,_e){return a=toString$e(a),j=_e?void 0:j,j===void 0?hasUnicodeWord(a)?unicodeWords(a):asciiWords(a):a.match(j)||[]}var words_1=words$1,arrayReduce=_arrayReduce,deburr=deburr_1,words=words_1,rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder$1(a){return function(j){return arrayReduce(words(deburr(j).replace(reApos,"")),a,"")}}var _createCompounder=createCompounder$1,capitalize=capitalize_1,createCompounder=_createCompounder,camelCase=createCompounder(function(a,j,_e){return j=j.toLowerCase(),a+(_e?capitalize(j):j)}),camelCase_1=camelCase;const camelCase$1=getDefaultExportFromCjs$1(camelCase_1);var createPadding=_createPadding,stringSize=_stringSize,toInteger=toInteger_1,toString$d=toString_1;function padEnd(a,j,_e){a=toString$d(a),j=toInteger(j);var et=j?stringSize(a):0;return j&&et<j?a+createPadding(j-et,_e):a}var padEnd_1=padEnd,base64Url={unescape:unescape$1,escape:escape$1,encode:encode$4,decode:decode$3};function unescape$1(a){return(a+"===".slice((a.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function escape$1(a){return a.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function encode$4(a,j){return escape$1(Buffer$3.from(a,j||"utf8").toString("base64"))}function decode$3(a,j){return Buffer$3.from(unescape$1(a),"base64").toString(j||"utf8")}var bn={exports:{}};bn.exports;(function(a){(function(j,_e){function et(wt,ft){if(!wt)throw new Error(ft||"Assertion failed")}function tt(wt,ft){wt.super_=ft;var ht=function(){};ht.prototype=ft.prototype,wt.prototype=new ht,wt.prototype.constructor=wt}function nt(wt,ft,ht){if(nt.isBN(wt))return wt;this.negative=0,this.words=null,this.length=0,this.red=null,wt!==null&&((ft==="le"||ft==="be")&&(ht=ft,ft=10),this._init(wt||0,ft||10,ht||"be"))}typeof j=="object"?j.exports=nt:_e.BN=nt,nt.BN=nt,nt.wordSize=26;var rt;try{typeof window<"u"&&typeof window.Buffer<"u"?rt=window.Buffer:rt=require$$0$6.Buffer}catch{}nt.isBN=function(ft){return ft instanceof nt?!0:ft!==null&&typeof ft=="object"&&ft.constructor.wordSize===nt.wordSize&&Array.isArray(ft.words)},nt.max=function(ft,ht){return ft.cmp(ht)>0?ft:ht},nt.min=function(ft,ht){return ft.cmp(ht)<0?ft:ht},nt.prototype._init=function(ft,ht,$t){if(typeof ft=="number")return this._initNumber(ft,ht,$t);if(typeof ft=="object")return this._initArray(ft,ht,$t);ht==="hex"&&(ht=16),et(ht===(ht|0)&&ht>=2&&ht<=36),ft=ft.toString().replace(/\s+/g,"");var Tt=0;ft[0]==="-"&&(Tt++,this.negative=1),Tt<ft.length&&(ht===16?this._parseHex(ft,Tt,$t):(this._parseBase(ft,ht,Tt),$t==="le"&&this._initArray(this.toArray(),ht,$t)))},nt.prototype._initNumber=function(ft,ht,$t){ft<0&&(this.negative=1,ft=-ft),ft<67108864?(this.words=[ft&67108863],this.length=1):ft<4503599627370496?(this.words=[ft&67108863,ft/67108864&67108863],this.length=2):(et(ft<9007199254740992),this.words=[ft&67108863,ft/67108864&67108863,1],this.length=3),$t==="le"&&this._initArray(this.toArray(),ht,$t)},nt.prototype._initArray=function(ft,ht,$t){if(et(typeof ft.length=="number"),ft.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(ft.length/3),this.words=new Array(this.length);for(var Tt=0;Tt<this.length;Tt++)this.words[Tt]=0;var At,kt,Ct=0;if($t==="be")for(Tt=ft.length-1,At=0;Tt>=0;Tt-=3)kt=ft[Tt]|ft[Tt-1]<<8|ft[Tt-2]<<16,this.words[At]|=kt<<Ct&67108863,this.words[At+1]=kt>>>26-Ct&67108863,Ct+=24,Ct>=26&&(Ct-=26,At++);else if($t==="le")for(Tt=0,At=0;Tt<ft.length;Tt+=3)kt=ft[Tt]|ft[Tt+1]<<8|ft[Tt+2]<<16,this.words[At]|=kt<<Ct&67108863,this.words[At+1]=kt>>>26-Ct&67108863,Ct+=24,Ct>=26&&(Ct-=26,At++);return this._strip()};function it(wt,ft){var ht=wt.charCodeAt(ft);if(ht>=48&&ht<=57)return ht-48;if(ht>=65&&ht<=70)return ht-55;if(ht>=97&&ht<=102)return ht-87;et(!1,"Invalid character in "+wt)}function ot(wt,ft,ht){var $t=it(wt,ht);return ht-1>=ft&&($t|=it(wt,ht-1)<<4),$t}nt.prototype._parseHex=function(ft,ht,$t){this.length=Math.ceil((ft.length-ht)/6),this.words=new Array(this.length);for(var Tt=0;Tt<this.length;Tt++)this.words[Tt]=0;var At=0,kt=0,Ct;if($t==="be")for(Tt=ft.length-1;Tt>=ht;Tt-=2)Ct=ot(ft,ht,Tt)<<At,this.words[kt]|=Ct&67108863,At>=18?(At-=18,kt+=1,this.words[kt]|=Ct>>>26):At+=8;else{var It=ft.length-ht;for(Tt=It%2===0?ht+1:ht;Tt<ft.length;Tt+=2)Ct=ot(ft,ht,Tt)<<At,this.words[kt]|=Ct&67108863,At>=18?(At-=18,kt+=1,this.words[kt]|=Ct>>>26):At+=8}this._strip()};function ct(wt,ft,ht,$t){for(var Tt=0,At=0,kt=Math.min(wt.length,ht),Ct=ft;Ct<kt;Ct++){var It=wt.charCodeAt(Ct)-48;Tt*=$t,It>=49?At=It-49+10:It>=17?At=It-17+10:At=It,et(It>=0&&At<$t,"Invalid character"),Tt+=At}return Tt}nt.prototype._parseBase=function(ft,ht,$t){this.words=[0],this.length=1;for(var Tt=0,At=1;At<=67108863;At*=ht)Tt++;Tt--,At=At/ht|0;for(var kt=ft.length-$t,Ct=kt%Tt,It=Math.min(kt,kt-Ct)+$t,bt=0,Lt=$t;Lt<It;Lt+=Tt)bt=ct(ft,Lt,Lt+Tt,ht),this.imuln(At),this.words[0]+bt<67108864?this.words[0]+=bt:this._iaddn(bt);if(Ct!==0){var sn=1;for(bt=ct(ft,Lt,ft.length,ht),Lt=0;Lt<Ct;Lt++)sn*=ht;this.imuln(sn),this.words[0]+bt<67108864?this.words[0]+=bt:this._iaddn(bt)}this._strip()},nt.prototype.copy=function(ft){ft.words=new Array(this.length);for(var ht=0;ht<this.length;ht++)ft.words[ht]=this.words[ht];ft.length=this.length,ft.negative=this.negative,ft.red=this.red};function ut(wt,ft){wt.words=ft.words,wt.length=ft.length,wt.negative=ft.negative,wt.red=ft.red}if(nt.prototype._move=function(ft){ut(ft,this)},nt.prototype.clone=function(){var ft=new nt(null);return this.copy(ft),ft},nt.prototype._expand=function(ft){for(;this.length<ft;)this.words[this.length++]=0;return this},nt.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},nt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{nt.prototype[Symbol.for("nodejs.util.inspect.custom")]=dt}catch{nt.prototype.inspect=dt}else nt.prototype.inspect=dt;function dt(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var pt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],mt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],vt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];nt.prototype.toString=function(ft,ht){ft=ft||10,ht=ht|0||1;var $t;if(ft===16||ft==="hex"){$t="";for(var Tt=0,At=0,kt=0;kt<this.length;kt++){var Ct=this.words[kt],It=((Ct<<Tt|At)&16777215).toString(16);At=Ct>>>24-Tt&16777215,Tt+=2,Tt>=26&&(Tt-=26,kt--),At!==0||kt!==this.length-1?$t=pt[6-It.length]+It+$t:$t=It+$t}for(At!==0&&($t=At.toString(16)+$t);$t.length%ht!==0;)$t="0"+$t;return this.negative!==0&&($t="-"+$t),$t}if(ft===(ft|0)&&ft>=2&&ft<=36){var bt=mt[ft],Lt=vt[ft];$t="";var sn=this.clone();for(sn.negative=0;!sn.isZero();){var Ut=sn.modrn(Lt).toString(ft);sn=sn.idivn(Lt),sn.isZero()?$t=Ut+$t:$t=pt[bt-Ut.length]+Ut+$t}for(this.isZero()&&($t="0"+$t);$t.length%ht!==0;)$t="0"+$t;return this.negative!==0&&($t="-"+$t),$t}et(!1,"Base should be between 2 and 36")},nt.prototype.toNumber=function(){var ft=this.words[0];return this.length===2?ft+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ft+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ft:ft},nt.prototype.toJSON=function(){return this.toString(16,2)},rt&&(nt.prototype.toBuffer=function(ft,ht){return this.toArrayLike(rt,ft,ht)}),nt.prototype.toArray=function(ft,ht){return this.toArrayLike(Array,ft,ht)};var Et=function(ft,ht){return ft.allocUnsafe?ft.allocUnsafe(ht):new ft(ht)};nt.prototype.toArrayLike=function(ft,ht,$t){this._strip();var Tt=this.byteLength(),At=$t||Math.max(1,Tt);et(Tt<=At,"byte array longer than desired length"),et(At>0,"Requested array length <= 0");var kt=Et(ft,At),Ct=ht==="le"?"LE":"BE";return this["_toArrayLike"+Ct](kt,Tt),kt},nt.prototype._toArrayLikeLE=function(ft,ht){for(var $t=0,Tt=0,At=0,kt=0;At<this.length;At++){var Ct=this.words[At]<<kt|Tt;ft[$t++]=Ct&255,$t<ft.length&&(ft[$t++]=Ct>>8&255),$t<ft.length&&(ft[$t++]=Ct>>16&255),kt===6?($t<ft.length&&(ft[$t++]=Ct>>24&255),Tt=0,kt=0):(Tt=Ct>>>24,kt+=2)}if($t<ft.length)for(ft[$t++]=Tt;$t<ft.length;)ft[$t++]=0},nt.prototype._toArrayLikeBE=function(ft,ht){for(var $t=ft.length-1,Tt=0,At=0,kt=0;At<this.length;At++){var Ct=this.words[At]<<kt|Tt;ft[$t--]=Ct&255,$t>=0&&(ft[$t--]=Ct>>8&255),$t>=0&&(ft[$t--]=Ct>>16&255),kt===6?($t>=0&&(ft[$t--]=Ct>>24&255),Tt=0,kt=0):(Tt=Ct>>>24,kt+=2)}if($t>=0)for(ft[$t--]=Tt;$t>=0;)ft[$t--]=0},Math.clz32?nt.prototype._countBits=function(ft){return 32-Math.clz32(ft)}:nt.prototype._countBits=function(ft){var ht=ft,$t=0;return ht>=4096&&($t+=13,ht>>>=13),ht>=64&&($t+=7,ht>>>=7),ht>=8&&($t+=4,ht>>>=4),ht>=2&&($t+=2,ht>>>=2),$t+ht},nt.prototype._zeroBits=function(ft){if(ft===0)return 26;var ht=ft,$t=0;return ht&8191||($t+=13,ht>>>=13),ht&127||($t+=7,ht>>>=7),ht&15||($t+=4,ht>>>=4),ht&3||($t+=2,ht>>>=2),ht&1||$t++,$t},nt.prototype.bitLength=function(){var ft=this.words[this.length-1],ht=this._countBits(ft);return(this.length-1)*26+ht};function Rt(wt){for(var ft=new Array(wt.bitLength()),ht=0;ht<ft.length;ht++){var $t=ht/26|0,Tt=ht%26;ft[ht]=wt.words[$t]>>>Tt&1}return ft}nt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ft=0,ht=0;ht<this.length;ht++){var $t=this._zeroBits(this.words[ht]);if(ft+=$t,$t!==26)break}return ft},nt.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},nt.prototype.toTwos=function(ft){return this.negative!==0?this.abs().inotn(ft).iaddn(1):this.clone()},nt.prototype.fromTwos=function(ft){return this.testn(ft-1)?this.notn(ft).iaddn(1).ineg():this.clone()},nt.prototype.isNeg=function(){return this.negative!==0},nt.prototype.neg=function(){return this.clone().ineg()},nt.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},nt.prototype.iuor=function(ft){for(;this.length<ft.length;)this.words[this.length++]=0;for(var ht=0;ht<ft.length;ht++)this.words[ht]=this.words[ht]|ft.words[ht];return this._strip()},nt.prototype.ior=function(ft){return et((this.negative|ft.negative)===0),this.iuor(ft)},nt.prototype.or=function(ft){return this.length>ft.length?this.clone().ior(ft):ft.clone().ior(this)},nt.prototype.uor=function(ft){return this.length>ft.length?this.clone().iuor(ft):ft.clone().iuor(this)},nt.prototype.iuand=function(ft){var ht;this.length>ft.length?ht=ft:ht=this;for(var $t=0;$t<ht.length;$t++)this.words[$t]=this.words[$t]&ft.words[$t];return this.length=ht.length,this._strip()},nt.prototype.iand=function(ft){return et((this.negative|ft.negative)===0),this.iuand(ft)},nt.prototype.and=function(ft){return this.length>ft.length?this.clone().iand(ft):ft.clone().iand(this)},nt.prototype.uand=function(ft){return this.length>ft.length?this.clone().iuand(ft):ft.clone().iuand(this)},nt.prototype.iuxor=function(ft){var ht,$t;this.length>ft.length?(ht=this,$t=ft):(ht=ft,$t=this);for(var Tt=0;Tt<$t.length;Tt++)this.words[Tt]=ht.words[Tt]^$t.words[Tt];if(this!==ht)for(;Tt<ht.length;Tt++)this.words[Tt]=ht.words[Tt];return this.length=ht.length,this._strip()},nt.prototype.ixor=function(ft){return et((this.negative|ft.negative)===0),this.iuxor(ft)},nt.prototype.xor=function(ft){return this.length>ft.length?this.clone().ixor(ft):ft.clone().ixor(this)},nt.prototype.uxor=function(ft){return this.length>ft.length?this.clone().iuxor(ft):ft.clone().iuxor(this)},nt.prototype.inotn=function(ft){et(typeof ft=="number"&&ft>=0);var ht=Math.ceil(ft/26)|0,$t=ft%26;this._expand(ht),$t>0&&ht--;for(var Tt=0;Tt<ht;Tt++)this.words[Tt]=~this.words[Tt]&67108863;return $t>0&&(this.words[Tt]=~this.words[Tt]&67108863>>26-$t),this._strip()},nt.prototype.notn=function(ft){return this.clone().inotn(ft)},nt.prototype.setn=function(ft,ht){et(typeof ft=="number"&&ft>=0);var $t=ft/26|0,Tt=ft%26;return this._expand($t+1),ht?this.words[$t]=this.words[$t]|1<<Tt:this.words[$t]=this.words[$t]&~(1<<Tt),this._strip()},nt.prototype.iadd=function(ft){var ht;if(this.negative!==0&&ft.negative===0)return this.negative=0,ht=this.isub(ft),this.negative^=1,this._normSign();if(this.negative===0&&ft.negative!==0)return ft.negative=0,ht=this.isub(ft),ft.negative=1,ht._normSign();var $t,Tt;this.length>ft.length?($t=this,Tt=ft):($t=ft,Tt=this);for(var At=0,kt=0;kt<Tt.length;kt++)ht=($t.words[kt]|0)+(Tt.words[kt]|0)+At,this.words[kt]=ht&67108863,At=ht>>>26;for(;At!==0&&kt<$t.length;kt++)ht=($t.words[kt]|0)+At,this.words[kt]=ht&67108863,At=ht>>>26;if(this.length=$t.length,At!==0)this.words[this.length]=At,this.length++;else if($t!==this)for(;kt<$t.length;kt++)this.words[kt]=$t.words[kt];return this},nt.prototype.add=function(ft){var ht;return ft.negative!==0&&this.negative===0?(ft.negative=0,ht=this.sub(ft),ft.negative^=1,ht):ft.negative===0&&this.negative!==0?(this.negative=0,ht=ft.sub(this),this.negative=1,ht):this.length>ft.length?this.clone().iadd(ft):ft.clone().iadd(this)},nt.prototype.isub=function(ft){if(ft.negative!==0){ft.negative=0;var ht=this.iadd(ft);return ft.negative=1,ht._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ft),this.negative=1,this._normSign();var $t=this.cmp(ft);if($t===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Tt,At;$t>0?(Tt=this,At=ft):(Tt=ft,At=this);for(var kt=0,Ct=0;Ct<At.length;Ct++)ht=(Tt.words[Ct]|0)-(At.words[Ct]|0)+kt,kt=ht>>26,this.words[Ct]=ht&67108863;for(;kt!==0&&Ct<Tt.length;Ct++)ht=(Tt.words[Ct]|0)+kt,kt=ht>>26,this.words[Ct]=ht&67108863;if(kt===0&&Ct<Tt.length&&Tt!==this)for(;Ct<Tt.length;Ct++)this.words[Ct]=Tt.words[Ct];return this.length=Math.max(this.length,Ct),Tt!==this&&(this.negative=1),this._strip()},nt.prototype.sub=function(ft){return this.clone().isub(ft)};function xt(wt,ft,ht){ht.negative=ft.negative^wt.negative;var $t=wt.length+ft.length|0;ht.length=$t,$t=$t-1|0;var Tt=wt.words[0]|0,At=ft.words[0]|0,kt=Tt*At,Ct=kt&67108863,It=kt/67108864|0;ht.words[0]=Ct;for(var bt=1;bt<$t;bt++){for(var Lt=It>>>26,sn=It&67108863,Ut=Math.min(bt,ft.length-1),Zt=Math.max(0,bt-wt.length+1);Zt<=Ut;Zt++){var Gt=bt-Zt|0;Tt=wt.words[Gt]|0,At=ft.words[Zt]|0,kt=Tt*At+sn,Lt+=kt/67108864|0,sn=kt&67108863}ht.words[bt]=sn|0,It=Lt|0}return It!==0?ht.words[bt]=It|0:ht.length--,ht._strip()}var Pt=function(ft,ht,$t){var Tt=ft.words,At=ht.words,kt=$t.words,Ct=0,It,bt,Lt,sn=Tt[0]|0,Ut=sn&8191,Zt=sn>>>13,Gt=Tt[1]|0,Yt=Gt&8191,cn=Gt>>>13,En=Tt[2]|0,Ht=En&8191,Ot=En>>>13,Kt=Tt[3]|0,Xt=Kt&8191,an=Kt>>>13,_n=Tt[4]|0,yn=_n&8191,dn=_n>>>13,$n=Tt[5]|0,wn=$n&8191,Sn=$n>>>13,qn=Tt[6]|0,Qn=qn&8191,jn=qn>>>13,zn=Tt[7]|0,vn=zn&8191,Rn=zn>>>13,Fn=Tt[8]|0,Dn=Fn&8191,ln=Fn>>>13,Jt=Tt[9]|0,Wt=Jt&8191,mn=Jt>>>13,In=At[0]|0,Cn=In&8191,On=In>>>13,Vn=At[1]|0,Nn=Vn&8191,Un=Vn>>>13,ar=At[2]|0,er=ar&8191,or=ar>>>13,Dr=At[3]|0,_r=Dr&8191,ur=Dr>>>13,Fr=At[4]|0,xr=Fr&8191,yr=Fr>>>13,Hr=At[5]|0,br=Hr&8191,cr=Hr>>>13,Pn=At[6]|0,qt=Pn&8191,rn=Pn>>>13,un=At[7]|0,jt=un&8191,pn=un>>>13,kn=At[8]|0,An=kn&8191,Ln=kn>>>13,Gn=At[9]|0,Jn=Gn&8191,Yn=Gn>>>13;$t.negative=ft.negative^ht.negative,$t.length=19,It=Math.imul(Ut,Cn),bt=Math.imul(Ut,On),bt=bt+Math.imul(Zt,Cn)|0,Lt=Math.imul(Zt,On);var Rr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,It=Math.imul(Yt,Cn),bt=Math.imul(Yt,On),bt=bt+Math.imul(cn,Cn)|0,Lt=Math.imul(cn,On),It=It+Math.imul(Ut,Nn)|0,bt=bt+Math.imul(Ut,Un)|0,bt=bt+Math.imul(Zt,Nn)|0,Lt=Lt+Math.imul(Zt,Un)|0;var dr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(dr>>>26)|0,dr&=67108863,It=Math.imul(Ht,Cn),bt=Math.imul(Ht,On),bt=bt+Math.imul(Ot,Cn)|0,Lt=Math.imul(Ot,On),It=It+Math.imul(Yt,Nn)|0,bt=bt+Math.imul(Yt,Un)|0,bt=bt+Math.imul(cn,Nn)|0,Lt=Lt+Math.imul(cn,Un)|0,It=It+Math.imul(Ut,er)|0,bt=bt+Math.imul(Ut,or)|0,bt=bt+Math.imul(Zt,er)|0,Lt=Lt+Math.imul(Zt,or)|0;var rr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(rr>>>26)|0,rr&=67108863,It=Math.imul(Xt,Cn),bt=Math.imul(Xt,On),bt=bt+Math.imul(an,Cn)|0,Lt=Math.imul(an,On),It=It+Math.imul(Ht,Nn)|0,bt=bt+Math.imul(Ht,Un)|0,bt=bt+Math.imul(Ot,Nn)|0,Lt=Lt+Math.imul(Ot,Un)|0,It=It+Math.imul(Yt,er)|0,bt=bt+Math.imul(Yt,or)|0,bt=bt+Math.imul(cn,er)|0,Lt=Lt+Math.imul(cn,or)|0,It=It+Math.imul(Ut,_r)|0,bt=bt+Math.imul(Ut,ur)|0,bt=bt+Math.imul(Zt,_r)|0,Lt=Lt+Math.imul(Zt,ur)|0;var $r=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+($r>>>26)|0,$r&=67108863,It=Math.imul(yn,Cn),bt=Math.imul(yn,On),bt=bt+Math.imul(dn,Cn)|0,Lt=Math.imul(dn,On),It=It+Math.imul(Xt,Nn)|0,bt=bt+Math.imul(Xt,Un)|0,bt=bt+Math.imul(an,Nn)|0,Lt=Lt+Math.imul(an,Un)|0,It=It+Math.imul(Ht,er)|0,bt=bt+Math.imul(Ht,or)|0,bt=bt+Math.imul(Ot,er)|0,Lt=Lt+Math.imul(Ot,or)|0,It=It+Math.imul(Yt,_r)|0,bt=bt+Math.imul(Yt,ur)|0,bt=bt+Math.imul(cn,_r)|0,Lt=Lt+Math.imul(cn,ur)|0,It=It+Math.imul(Ut,xr)|0,bt=bt+Math.imul(Ut,yr)|0,bt=bt+Math.imul(Zt,xr)|0,Lt=Lt+Math.imul(Zt,yr)|0;var Cr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,It=Math.imul(wn,Cn),bt=Math.imul(wn,On),bt=bt+Math.imul(Sn,Cn)|0,Lt=Math.imul(Sn,On),It=It+Math.imul(yn,Nn)|0,bt=bt+Math.imul(yn,Un)|0,bt=bt+Math.imul(dn,Nn)|0,Lt=Lt+Math.imul(dn,Un)|0,It=It+Math.imul(Xt,er)|0,bt=bt+Math.imul(Xt,or)|0,bt=bt+Math.imul(an,er)|0,Lt=Lt+Math.imul(an,or)|0,It=It+Math.imul(Ht,_r)|0,bt=bt+Math.imul(Ht,ur)|0,bt=bt+Math.imul(Ot,_r)|0,Lt=Lt+Math.imul(Ot,ur)|0,It=It+Math.imul(Yt,xr)|0,bt=bt+Math.imul(Yt,yr)|0,bt=bt+Math.imul(cn,xr)|0,Lt=Lt+Math.imul(cn,yr)|0,It=It+Math.imul(Ut,br)|0,bt=bt+Math.imul(Ut,cr)|0,bt=bt+Math.imul(Zt,br)|0,Lt=Lt+Math.imul(Zt,cr)|0;var Mr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,It=Math.imul(Qn,Cn),bt=Math.imul(Qn,On),bt=bt+Math.imul(jn,Cn)|0,Lt=Math.imul(jn,On),It=It+Math.imul(wn,Nn)|0,bt=bt+Math.imul(wn,Un)|0,bt=bt+Math.imul(Sn,Nn)|0,Lt=Lt+Math.imul(Sn,Un)|0,It=It+Math.imul(yn,er)|0,bt=bt+Math.imul(yn,or)|0,bt=bt+Math.imul(dn,er)|0,Lt=Lt+Math.imul(dn,or)|0,It=It+Math.imul(Xt,_r)|0,bt=bt+Math.imul(Xt,ur)|0,bt=bt+Math.imul(an,_r)|0,Lt=Lt+Math.imul(an,ur)|0,It=It+Math.imul(Ht,xr)|0,bt=bt+Math.imul(Ht,yr)|0,bt=bt+Math.imul(Ot,xr)|0,Lt=Lt+Math.imul(Ot,yr)|0,It=It+Math.imul(Yt,br)|0,bt=bt+Math.imul(Yt,cr)|0,bt=bt+Math.imul(cn,br)|0,Lt=Lt+Math.imul(cn,cr)|0,It=It+Math.imul(Ut,qt)|0,bt=bt+Math.imul(Ut,rn)|0,bt=bt+Math.imul(Zt,qt)|0,Lt=Lt+Math.imul(Zt,rn)|0;var Lr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,It=Math.imul(vn,Cn),bt=Math.imul(vn,On),bt=bt+Math.imul(Rn,Cn)|0,Lt=Math.imul(Rn,On),It=It+Math.imul(Qn,Nn)|0,bt=bt+Math.imul(Qn,Un)|0,bt=bt+Math.imul(jn,Nn)|0,Lt=Lt+Math.imul(jn,Un)|0,It=It+Math.imul(wn,er)|0,bt=bt+Math.imul(wn,or)|0,bt=bt+Math.imul(Sn,er)|0,Lt=Lt+Math.imul(Sn,or)|0,It=It+Math.imul(yn,_r)|0,bt=bt+Math.imul(yn,ur)|0,bt=bt+Math.imul(dn,_r)|0,Lt=Lt+Math.imul(dn,ur)|0,It=It+Math.imul(Xt,xr)|0,bt=bt+Math.imul(Xt,yr)|0,bt=bt+Math.imul(an,xr)|0,Lt=Lt+Math.imul(an,yr)|0,It=It+Math.imul(Ht,br)|0,bt=bt+Math.imul(Ht,cr)|0,bt=bt+Math.imul(Ot,br)|0,Lt=Lt+Math.imul(Ot,cr)|0,It=It+Math.imul(Yt,qt)|0,bt=bt+Math.imul(Yt,rn)|0,bt=bt+Math.imul(cn,qt)|0,Lt=Lt+Math.imul(cn,rn)|0,It=It+Math.imul(Ut,jt)|0,bt=bt+Math.imul(Ut,pn)|0,bt=bt+Math.imul(Zt,jt)|0,Lt=Lt+Math.imul(Zt,pn)|0;var Or=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Or>>>26)|0,Or&=67108863,It=Math.imul(Dn,Cn),bt=Math.imul(Dn,On),bt=bt+Math.imul(ln,Cn)|0,Lt=Math.imul(ln,On),It=It+Math.imul(vn,Nn)|0,bt=bt+Math.imul(vn,Un)|0,bt=bt+Math.imul(Rn,Nn)|0,Lt=Lt+Math.imul(Rn,Un)|0,It=It+Math.imul(Qn,er)|0,bt=bt+Math.imul(Qn,or)|0,bt=bt+Math.imul(jn,er)|0,Lt=Lt+Math.imul(jn,or)|0,It=It+Math.imul(wn,_r)|0,bt=bt+Math.imul(wn,ur)|0,bt=bt+Math.imul(Sn,_r)|0,Lt=Lt+Math.imul(Sn,ur)|0,It=It+Math.imul(yn,xr)|0,bt=bt+Math.imul(yn,yr)|0,bt=bt+Math.imul(dn,xr)|0,Lt=Lt+Math.imul(dn,yr)|0,It=It+Math.imul(Xt,br)|0,bt=bt+Math.imul(Xt,cr)|0,bt=bt+Math.imul(an,br)|0,Lt=Lt+Math.imul(an,cr)|0,It=It+Math.imul(Ht,qt)|0,bt=bt+Math.imul(Ht,rn)|0,bt=bt+Math.imul(Ot,qt)|0,Lt=Lt+Math.imul(Ot,rn)|0,It=It+Math.imul(Yt,jt)|0,bt=bt+Math.imul(Yt,pn)|0,bt=bt+Math.imul(cn,jt)|0,Lt=Lt+Math.imul(cn,pn)|0,It=It+Math.imul(Ut,An)|0,bt=bt+Math.imul(Ut,Ln)|0,bt=bt+Math.imul(Zt,An)|0,Lt=Lt+Math.imul(Zt,Ln)|0;var Br=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Br>>>26)|0,Br&=67108863,It=Math.imul(Wt,Cn),bt=Math.imul(Wt,On),bt=bt+Math.imul(mn,Cn)|0,Lt=Math.imul(mn,On),It=It+Math.imul(Dn,Nn)|0,bt=bt+Math.imul(Dn,Un)|0,bt=bt+Math.imul(ln,Nn)|0,Lt=Lt+Math.imul(ln,Un)|0,It=It+Math.imul(vn,er)|0,bt=bt+Math.imul(vn,or)|0,bt=bt+Math.imul(Rn,er)|0,Lt=Lt+Math.imul(Rn,or)|0,It=It+Math.imul(Qn,_r)|0,bt=bt+Math.imul(Qn,ur)|0,bt=bt+Math.imul(jn,_r)|0,Lt=Lt+Math.imul(jn,ur)|0,It=It+Math.imul(wn,xr)|0,bt=bt+Math.imul(wn,yr)|0,bt=bt+Math.imul(Sn,xr)|0,Lt=Lt+Math.imul(Sn,yr)|0,It=It+Math.imul(yn,br)|0,bt=bt+Math.imul(yn,cr)|0,bt=bt+Math.imul(dn,br)|0,Lt=Lt+Math.imul(dn,cr)|0,It=It+Math.imul(Xt,qt)|0,bt=bt+Math.imul(Xt,rn)|0,bt=bt+Math.imul(an,qt)|0,Lt=Lt+Math.imul(an,rn)|0,It=It+Math.imul(Ht,jt)|0,bt=bt+Math.imul(Ht,pn)|0,bt=bt+Math.imul(Ot,jt)|0,Lt=Lt+Math.imul(Ot,pn)|0,It=It+Math.imul(Yt,An)|0,bt=bt+Math.imul(Yt,Ln)|0,bt=bt+Math.imul(cn,An)|0,Lt=Lt+Math.imul(cn,Ln)|0,It=It+Math.imul(Ut,Jn)|0,bt=bt+Math.imul(Ut,Yn)|0,bt=bt+Math.imul(Zt,Jn)|0,Lt=Lt+Math.imul(Zt,Yn)|0;var Ar=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,It=Math.imul(Wt,Nn),bt=Math.imul(Wt,Un),bt=bt+Math.imul(mn,Nn)|0,Lt=Math.imul(mn,Un),It=It+Math.imul(Dn,er)|0,bt=bt+Math.imul(Dn,or)|0,bt=bt+Math.imul(ln,er)|0,Lt=Lt+Math.imul(ln,or)|0,It=It+Math.imul(vn,_r)|0,bt=bt+Math.imul(vn,ur)|0,bt=bt+Math.imul(Rn,_r)|0,Lt=Lt+Math.imul(Rn,ur)|0,It=It+Math.imul(Qn,xr)|0,bt=bt+Math.imul(Qn,yr)|0,bt=bt+Math.imul(jn,xr)|0,Lt=Lt+Math.imul(jn,yr)|0,It=It+Math.imul(wn,br)|0,bt=bt+Math.imul(wn,cr)|0,bt=bt+Math.imul(Sn,br)|0,Lt=Lt+Math.imul(Sn,cr)|0,It=It+Math.imul(yn,qt)|0,bt=bt+Math.imul(yn,rn)|0,bt=bt+Math.imul(dn,qt)|0,Lt=Lt+Math.imul(dn,rn)|0,It=It+Math.imul(Xt,jt)|0,bt=bt+Math.imul(Xt,pn)|0,bt=bt+Math.imul(an,jt)|0,Lt=Lt+Math.imul(an,pn)|0,It=It+Math.imul(Ht,An)|0,bt=bt+Math.imul(Ht,Ln)|0,bt=bt+Math.imul(Ot,An)|0,Lt=Lt+Math.imul(Ot,Ln)|0,It=It+Math.imul(Yt,Jn)|0,bt=bt+Math.imul(Yt,Yn)|0,bt=bt+Math.imul(cn,Jn)|0,Lt=Lt+Math.imul(cn,Yn)|0;var Ir=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,It=Math.imul(Wt,er),bt=Math.imul(Wt,or),bt=bt+Math.imul(mn,er)|0,Lt=Math.imul(mn,or),It=It+Math.imul(Dn,_r)|0,bt=bt+Math.imul(Dn,ur)|0,bt=bt+Math.imul(ln,_r)|0,Lt=Lt+Math.imul(ln,ur)|0,It=It+Math.imul(vn,xr)|0,bt=bt+Math.imul(vn,yr)|0,bt=bt+Math.imul(Rn,xr)|0,Lt=Lt+Math.imul(Rn,yr)|0,It=It+Math.imul(Qn,br)|0,bt=bt+Math.imul(Qn,cr)|0,bt=bt+Math.imul(jn,br)|0,Lt=Lt+Math.imul(jn,cr)|0,It=It+Math.imul(wn,qt)|0,bt=bt+Math.imul(wn,rn)|0,bt=bt+Math.imul(Sn,qt)|0,Lt=Lt+Math.imul(Sn,rn)|0,It=It+Math.imul(yn,jt)|0,bt=bt+Math.imul(yn,pn)|0,bt=bt+Math.imul(dn,jt)|0,Lt=Lt+Math.imul(dn,pn)|0,It=It+Math.imul(Xt,An)|0,bt=bt+Math.imul(Xt,Ln)|0,bt=bt+Math.imul(an,An)|0,Lt=Lt+Math.imul(an,Ln)|0,It=It+Math.imul(Ht,Jn)|0,bt=bt+Math.imul(Ht,Yn)|0,bt=bt+Math.imul(Ot,Jn)|0,Lt=Lt+Math.imul(Ot,Yn)|0;var Sr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,It=Math.imul(Wt,_r),bt=Math.imul(Wt,ur),bt=bt+Math.imul(mn,_r)|0,Lt=Math.imul(mn,ur),It=It+Math.imul(Dn,xr)|0,bt=bt+Math.imul(Dn,yr)|0,bt=bt+Math.imul(ln,xr)|0,Lt=Lt+Math.imul(ln,yr)|0,It=It+Math.imul(vn,br)|0,bt=bt+Math.imul(vn,cr)|0,bt=bt+Math.imul(Rn,br)|0,Lt=Lt+Math.imul(Rn,cr)|0,It=It+Math.imul(Qn,qt)|0,bt=bt+Math.imul(Qn,rn)|0,bt=bt+Math.imul(jn,qt)|0,Lt=Lt+Math.imul(jn,rn)|0,It=It+Math.imul(wn,jt)|0,bt=bt+Math.imul(wn,pn)|0,bt=bt+Math.imul(Sn,jt)|0,Lt=Lt+Math.imul(Sn,pn)|0,It=It+Math.imul(yn,An)|0,bt=bt+Math.imul(yn,Ln)|0,bt=bt+Math.imul(dn,An)|0,Lt=Lt+Math.imul(dn,Ln)|0,It=It+Math.imul(Xt,Jn)|0,bt=bt+Math.imul(Xt,Yn)|0,bt=bt+Math.imul(an,Jn)|0,Lt=Lt+Math.imul(an,Yn)|0;var wr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(wr>>>26)|0,wr&=67108863,It=Math.imul(Wt,xr),bt=Math.imul(Wt,yr),bt=bt+Math.imul(mn,xr)|0,Lt=Math.imul(mn,yr),It=It+Math.imul(Dn,br)|0,bt=bt+Math.imul(Dn,cr)|0,bt=bt+Math.imul(ln,br)|0,Lt=Lt+Math.imul(ln,cr)|0,It=It+Math.imul(vn,qt)|0,bt=bt+Math.imul(vn,rn)|0,bt=bt+Math.imul(Rn,qt)|0,Lt=Lt+Math.imul(Rn,rn)|0,It=It+Math.imul(Qn,jt)|0,bt=bt+Math.imul(Qn,pn)|0,bt=bt+Math.imul(jn,jt)|0,Lt=Lt+Math.imul(jn,pn)|0,It=It+Math.imul(wn,An)|0,bt=bt+Math.imul(wn,Ln)|0,bt=bt+Math.imul(Sn,An)|0,Lt=Lt+Math.imul(Sn,Ln)|0,It=It+Math.imul(yn,Jn)|0,bt=bt+Math.imul(yn,Yn)|0,bt=bt+Math.imul(dn,Jn)|0,Lt=Lt+Math.imul(dn,Yn)|0;var kr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(kr>>>26)|0,kr&=67108863,It=Math.imul(Wt,br),bt=Math.imul(Wt,cr),bt=bt+Math.imul(mn,br)|0,Lt=Math.imul(mn,cr),It=It+Math.imul(Dn,qt)|0,bt=bt+Math.imul(Dn,rn)|0,bt=bt+Math.imul(ln,qt)|0,Lt=Lt+Math.imul(ln,rn)|0,It=It+Math.imul(vn,jt)|0,bt=bt+Math.imul(vn,pn)|0,bt=bt+Math.imul(Rn,jt)|0,Lt=Lt+Math.imul(Rn,pn)|0,It=It+Math.imul(Qn,An)|0,bt=bt+Math.imul(Qn,Ln)|0,bt=bt+Math.imul(jn,An)|0,Lt=Lt+Math.imul(jn,Ln)|0,It=It+Math.imul(wn,Jn)|0,bt=bt+Math.imul(wn,Yn)|0,bt=bt+Math.imul(Sn,Jn)|0,Lt=Lt+Math.imul(Sn,Yn)|0;var lr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(lr>>>26)|0,lr&=67108863,It=Math.imul(Wt,qt),bt=Math.imul(Wt,rn),bt=bt+Math.imul(mn,qt)|0,Lt=Math.imul(mn,rn),It=It+Math.imul(Dn,jt)|0,bt=bt+Math.imul(Dn,pn)|0,bt=bt+Math.imul(ln,jt)|0,Lt=Lt+Math.imul(ln,pn)|0,It=It+Math.imul(vn,An)|0,bt=bt+Math.imul(vn,Ln)|0,bt=bt+Math.imul(Rn,An)|0,Lt=Lt+Math.imul(Rn,Ln)|0,It=It+Math.imul(Qn,Jn)|0,bt=bt+Math.imul(Qn,Yn)|0,bt=bt+Math.imul(jn,Jn)|0,Lt=Lt+Math.imul(jn,Yn)|0;var Kn=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,It=Math.imul(Wt,jt),bt=Math.imul(Wt,pn),bt=bt+Math.imul(mn,jt)|0,Lt=Math.imul(mn,pn),It=It+Math.imul(Dn,An)|0,bt=bt+Math.imul(Dn,Ln)|0,bt=bt+Math.imul(ln,An)|0,Lt=Lt+Math.imul(ln,Ln)|0,It=It+Math.imul(vn,Jn)|0,bt=bt+Math.imul(vn,Yn)|0,bt=bt+Math.imul(Rn,Jn)|0,Lt=Lt+Math.imul(Rn,Yn)|0;var Zn=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,It=Math.imul(Wt,An),bt=Math.imul(Wt,Ln),bt=bt+Math.imul(mn,An)|0,Lt=Math.imul(mn,Ln),It=It+Math.imul(Dn,Jn)|0,bt=bt+Math.imul(Dn,Yn)|0,bt=bt+Math.imul(ln,Jn)|0,Lt=Lt+Math.imul(ln,Yn)|0;var tr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(tr>>>26)|0,tr&=67108863,It=Math.imul(Wt,Jn),bt=Math.imul(Wt,Yn),bt=bt+Math.imul(mn,Jn)|0,Lt=Math.imul(mn,Yn);var ir=(Ct+It|0)+((bt&8191)<<13)|0;return Ct=(Lt+(bt>>>13)|0)+(ir>>>26)|0,ir&=67108863,kt[0]=Rr,kt[1]=dr,kt[2]=rr,kt[3]=$r,kt[4]=Cr,kt[5]=Mr,kt[6]=Lr,kt[7]=Or,kt[8]=Br,kt[9]=Ar,kt[10]=Ir,kt[11]=Sr,kt[12]=wr,kt[13]=kr,kt[14]=lr,kt[15]=Kn,kt[16]=Zn,kt[17]=tr,kt[18]=ir,Ct!==0&&(kt[19]=Ct,$t.length++),$t};Math.imul||(Pt=xt);function Dt(wt,ft,ht){ht.negative=ft.negative^wt.negative,ht.length=wt.length+ft.length;for(var $t=0,Tt=0,At=0;At<ht.length-1;At++){var kt=Tt;Tt=0;for(var Ct=$t&67108863,It=Math.min(At,ft.length-1),bt=Math.max(0,At-wt.length+1);bt<=It;bt++){var Lt=At-bt,sn=wt.words[Lt]|0,Ut=ft.words[bt]|0,Zt=sn*Ut,Gt=Zt&67108863;kt=kt+(Zt/67108864|0)|0,Gt=Gt+Ct|0,Ct=Gt&67108863,kt=kt+(Gt>>>26)|0,Tt+=kt>>>26,kt&=67108863}ht.words[At]=Ct,$t=kt,kt=Tt}return $t!==0?ht.words[At]=$t:ht.length--,ht._strip()}function Ft(wt,ft,ht){return Dt(wt,ft,ht)}nt.prototype.mulTo=function(ft,ht){var $t,Tt=this.length+ft.length;return this.length===10&&ft.length===10?$t=Pt(this,ft,ht):Tt<63?$t=xt(this,ft,ht):Tt<1024?$t=Dt(this,ft,ht):$t=Ft(this,ft,ht),$t},nt.prototype.mul=function(ft){var ht=new nt(null);return ht.words=new Array(this.length+ft.length),this.mulTo(ft,ht)},nt.prototype.mulf=function(ft){var ht=new nt(null);return ht.words=new Array(this.length+ft.length),Ft(this,ft,ht)},nt.prototype.imul=function(ft){return this.clone().mulTo(ft,this)},nt.prototype.imuln=function(ft){var ht=ft<0;ht&&(ft=-ft),et(typeof ft=="number"),et(ft<67108864);for(var $t=0,Tt=0;Tt<this.length;Tt++){var At=(this.words[Tt]|0)*ft,kt=(At&67108863)+($t&67108863);$t>>=26,$t+=At/67108864|0,$t+=kt>>>26,this.words[Tt]=kt&67108863}return $t!==0&&(this.words[Tt]=$t,this.length++),ht?this.ineg():this},nt.prototype.muln=function(ft){return this.clone().imuln(ft)},nt.prototype.sqr=function(){return this.mul(this)},nt.prototype.isqr=function(){return this.imul(this.clone())},nt.prototype.pow=function(ft){var ht=Rt(ft);if(ht.length===0)return new nt(1);for(var $t=this,Tt=0;Tt<ht.length&&ht[Tt]===0;Tt++,$t=$t.sqr());if(++Tt<ht.length)for(var At=$t.sqr();Tt<ht.length;Tt++,At=At.sqr())ht[Tt]!==0&&($t=$t.mul(At));return $t},nt.prototype.iushln=function(ft){et(typeof ft=="number"&&ft>=0);var ht=ft%26,$t=(ft-ht)/26,Tt=67108863>>>26-ht<<26-ht,At;if(ht!==0){var kt=0;for(At=0;At<this.length;At++){var Ct=this.words[At]&Tt,It=(this.words[At]|0)-Ct<<ht;this.words[At]=It|kt,kt=Ct>>>26-ht}kt&&(this.words[At]=kt,this.length++)}if($t!==0){for(At=this.length-1;At>=0;At--)this.words[At+$t]=this.words[At];for(At=0;At<$t;At++)this.words[At]=0;this.length+=$t}return this._strip()},nt.prototype.ishln=function(ft){return et(this.negative===0),this.iushln(ft)},nt.prototype.iushrn=function(ft,ht,$t){et(typeof ft=="number"&&ft>=0);var Tt;ht?Tt=(ht-ht%26)/26:Tt=0;var At=ft%26,kt=Math.min((ft-At)/26,this.length),Ct=67108863^67108863>>>At<<At,It=$t;if(Tt-=kt,Tt=Math.max(0,Tt),It){for(var bt=0;bt<kt;bt++)It.words[bt]=this.words[bt];It.length=kt}if(kt!==0)if(this.length>kt)for(this.length-=kt,bt=0;bt<this.length;bt++)this.words[bt]=this.words[bt+kt];else this.words[0]=0,this.length=1;var Lt=0;for(bt=this.length-1;bt>=0&&(Lt!==0||bt>=Tt);bt--){var sn=this.words[bt]|0;this.words[bt]=Lt<<26-At|sn>>>At,Lt=sn&Ct}return It&&Lt!==0&&(It.words[It.length++]=Lt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},nt.prototype.ishrn=function(ft,ht,$t){return et(this.negative===0),this.iushrn(ft,ht,$t)},nt.prototype.shln=function(ft){return this.clone().ishln(ft)},nt.prototype.ushln=function(ft){return this.clone().iushln(ft)},nt.prototype.shrn=function(ft){return this.clone().ishrn(ft)},nt.prototype.ushrn=function(ft){return this.clone().iushrn(ft)},nt.prototype.testn=function(ft){et(typeof ft=="number"&&ft>=0);var ht=ft%26,$t=(ft-ht)/26,Tt=1<<ht;if(this.length<=$t)return!1;var At=this.words[$t];return!!(At&Tt)},nt.prototype.imaskn=function(ft){et(typeof ft=="number"&&ft>=0);var ht=ft%26,$t=(ft-ht)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=$t)return this;if(ht!==0&&$t++,this.length=Math.min($t,this.length),ht!==0){var Tt=67108863^67108863>>>ht<<ht;this.words[this.length-1]&=Tt}return this._strip()},nt.prototype.maskn=function(ft){return this.clone().imaskn(ft)},nt.prototype.iaddn=function(ft){return et(typeof ft=="number"),et(ft<67108864),ft<0?this.isubn(-ft):this.negative!==0?this.length===1&&(this.words[0]|0)<=ft?(this.words[0]=ft-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(ft),this.negative=1,this):this._iaddn(ft)},nt.prototype._iaddn=function(ft){this.words[0]+=ft;for(var ht=0;ht<this.length&&this.words[ht]>=67108864;ht++)this.words[ht]-=67108864,ht===this.length-1?this.words[ht+1]=1:this.words[ht+1]++;return this.length=Math.max(this.length,ht+1),this},nt.prototype.isubn=function(ft){if(et(typeof ft=="number"),et(ft<67108864),ft<0)return this.iaddn(-ft);if(this.negative!==0)return this.negative=0,this.iaddn(ft),this.negative=1,this;if(this.words[0]-=ft,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var ht=0;ht<this.length&&this.words[ht]<0;ht++)this.words[ht]+=67108864,this.words[ht+1]-=1;return this._strip()},nt.prototype.addn=function(ft){return this.clone().iaddn(ft)},nt.prototype.subn=function(ft){return this.clone().isubn(ft)},nt.prototype.iabs=function(){return this.negative=0,this},nt.prototype.abs=function(){return this.clone().iabs()},nt.prototype._ishlnsubmul=function(ft,ht,$t){var Tt=ft.length+$t,At;this._expand(Tt);var kt,Ct=0;for(At=0;At<ft.length;At++){kt=(this.words[At+$t]|0)+Ct;var It=(ft.words[At]|0)*ht;kt-=It&67108863,Ct=(kt>>26)-(It/67108864|0),this.words[At+$t]=kt&67108863}for(;At<this.length-$t;At++)kt=(this.words[At+$t]|0)+Ct,Ct=kt>>26,this.words[At+$t]=kt&67108863;if(Ct===0)return this._strip();for(et(Ct===-1),Ct=0,At=0;At<this.length;At++)kt=-(this.words[At]|0)+Ct,Ct=kt>>26,this.words[At]=kt&67108863;return this.negative=1,this._strip()},nt.prototype._wordDiv=function(ft,ht){var $t=this.length-ft.length,Tt=this.clone(),At=ft,kt=At.words[At.length-1]|0,Ct=this._countBits(kt);$t=26-Ct,$t!==0&&(At=At.ushln($t),Tt.iushln($t),kt=At.words[At.length-1]|0);var It=Tt.length-At.length,bt;if(ht!=="mod"){bt=new nt(null),bt.length=It+1,bt.words=new Array(bt.length);for(var Lt=0;Lt<bt.length;Lt++)bt.words[Lt]=0}var sn=Tt.clone()._ishlnsubmul(At,1,It);sn.negative===0&&(Tt=sn,bt&&(bt.words[It]=1));for(var Ut=It-1;Ut>=0;Ut--){var Zt=(Tt.words[At.length+Ut]|0)*67108864+(Tt.words[At.length+Ut-1]|0);for(Zt=Math.min(Zt/kt|0,67108863),Tt._ishlnsubmul(At,Zt,Ut);Tt.negative!==0;)Zt--,Tt.negative=0,Tt._ishlnsubmul(At,1,Ut),Tt.isZero()||(Tt.negative^=1);bt&&(bt.words[Ut]=Zt)}return bt&&bt._strip(),Tt._strip(),ht!=="div"&&$t!==0&&Tt.iushrn($t),{div:bt||null,mod:Tt}},nt.prototype.divmod=function(ft,ht,$t){if(et(!ft.isZero()),this.isZero())return{div:new nt(0),mod:new nt(0)};var Tt,At,kt;return this.negative!==0&&ft.negative===0?(kt=this.neg().divmod(ft,ht),ht!=="mod"&&(Tt=kt.div.neg()),ht!=="div"&&(At=kt.mod.neg(),$t&&At.negative!==0&&At.iadd(ft)),{div:Tt,mod:At}):this.negative===0&&ft.negative!==0?(kt=this.divmod(ft.neg(),ht),ht!=="mod"&&(Tt=kt.div.neg()),{div:Tt,mod:kt.mod}):this.negative&ft.negative?(kt=this.neg().divmod(ft.neg(),ht),ht!=="div"&&(At=kt.mod.neg(),$t&&At.negative!==0&&At.isub(ft)),{div:kt.div,mod:At}):ft.length>this.length||this.cmp(ft)<0?{div:new nt(0),mod:this}:ft.length===1?ht==="div"?{div:this.divn(ft.words[0]),mod:null}:ht==="mod"?{div:null,mod:new nt(this.modrn(ft.words[0]))}:{div:this.divn(ft.words[0]),mod:new nt(this.modrn(ft.words[0]))}:this._wordDiv(ft,ht)},nt.prototype.div=function(ft){return this.divmod(ft,"div",!1).div},nt.prototype.mod=function(ft){return this.divmod(ft,"mod",!1).mod},nt.prototype.umod=function(ft){return this.divmod(ft,"mod",!0).mod},nt.prototype.divRound=function(ft){var ht=this.divmod(ft);if(ht.mod.isZero())return ht.div;var $t=ht.div.negative!==0?ht.mod.isub(ft):ht.mod,Tt=ft.ushrn(1),At=ft.andln(1),kt=$t.cmp(Tt);return kt<0||At===1&&kt===0?ht.div:ht.div.negative!==0?ht.div.isubn(1):ht.div.iaddn(1)},nt.prototype.modrn=function(ft){var ht=ft<0;ht&&(ft=-ft),et(ft<=67108863);for(var $t=(1<<26)%ft,Tt=0,At=this.length-1;At>=0;At--)Tt=($t*Tt+(this.words[At]|0))%ft;return ht?-Tt:Tt},nt.prototype.modn=function(ft){return this.modrn(ft)},nt.prototype.idivn=function(ft){var ht=ft<0;ht&&(ft=-ft),et(ft<=67108863);for(var $t=0,Tt=this.length-1;Tt>=0;Tt--){var At=(this.words[Tt]|0)+$t*67108864;this.words[Tt]=At/ft|0,$t=At%ft}return this._strip(),ht?this.ineg():this},nt.prototype.divn=function(ft){return this.clone().idivn(ft)},nt.prototype.egcd=function(ft){et(ft.negative===0),et(!ft.isZero());var ht=this,$t=ft.clone();ht.negative!==0?ht=ht.umod(ft):ht=ht.clone();for(var Tt=new nt(1),At=new nt(0),kt=new nt(0),Ct=new nt(1),It=0;ht.isEven()&&$t.isEven();)ht.iushrn(1),$t.iushrn(1),++It;for(var bt=$t.clone(),Lt=ht.clone();!ht.isZero();){for(var sn=0,Ut=1;!(ht.words[0]&Ut)&&sn<26;++sn,Ut<<=1);if(sn>0)for(ht.iushrn(sn);sn-- >0;)(Tt.isOdd()||At.isOdd())&&(Tt.iadd(bt),At.isub(Lt)),Tt.iushrn(1),At.iushrn(1);for(var Zt=0,Gt=1;!($t.words[0]&Gt)&&Zt<26;++Zt,Gt<<=1);if(Zt>0)for($t.iushrn(Zt);Zt-- >0;)(kt.isOdd()||Ct.isOdd())&&(kt.iadd(bt),Ct.isub(Lt)),kt.iushrn(1),Ct.iushrn(1);ht.cmp($t)>=0?(ht.isub($t),Tt.isub(kt),At.isub(Ct)):($t.isub(ht),kt.isub(Tt),Ct.isub(At))}return{a:kt,b:Ct,gcd:$t.iushln(It)}},nt.prototype._invmp=function(ft){et(ft.negative===0),et(!ft.isZero());var ht=this,$t=ft.clone();ht.negative!==0?ht=ht.umod(ft):ht=ht.clone();for(var Tt=new nt(1),At=new nt(0),kt=$t.clone();ht.cmpn(1)>0&&$t.cmpn(1)>0;){for(var Ct=0,It=1;!(ht.words[0]&It)&&Ct<26;++Ct,It<<=1);if(Ct>0)for(ht.iushrn(Ct);Ct-- >0;)Tt.isOdd()&&Tt.iadd(kt),Tt.iushrn(1);for(var bt=0,Lt=1;!($t.words[0]&Lt)&&bt<26;++bt,Lt<<=1);if(bt>0)for($t.iushrn(bt);bt-- >0;)At.isOdd()&&At.iadd(kt),At.iushrn(1);ht.cmp($t)>=0?(ht.isub($t),Tt.isub(At)):($t.isub(ht),At.isub(Tt))}var sn;return ht.cmpn(1)===0?sn=Tt:sn=At,sn.cmpn(0)<0&&sn.iadd(ft),sn},nt.prototype.gcd=function(ft){if(this.isZero())return ft.abs();if(ft.isZero())return this.abs();var ht=this.clone(),$t=ft.clone();ht.negative=0,$t.negative=0;for(var Tt=0;ht.isEven()&&$t.isEven();Tt++)ht.iushrn(1),$t.iushrn(1);do{for(;ht.isEven();)ht.iushrn(1);for(;$t.isEven();)$t.iushrn(1);var At=ht.cmp($t);if(At<0){var kt=ht;ht=$t,$t=kt}else if(At===0||$t.cmpn(1)===0)break;ht.isub($t)}while(!0);return $t.iushln(Tt)},nt.prototype.invm=function(ft){return this.egcd(ft).a.umod(ft)},nt.prototype.isEven=function(){return(this.words[0]&1)===0},nt.prototype.isOdd=function(){return(this.words[0]&1)===1},nt.prototype.andln=function(ft){return this.words[0]&ft},nt.prototype.bincn=function(ft){et(typeof ft=="number");var ht=ft%26,$t=(ft-ht)/26,Tt=1<<ht;if(this.length<=$t)return this._expand($t+1),this.words[$t]|=Tt,this;for(var At=Tt,kt=$t;At!==0&&kt<this.length;kt++){var Ct=this.words[kt]|0;Ct+=At,At=Ct>>>26,Ct&=67108863,this.words[kt]=Ct}return At!==0&&(this.words[kt]=At,this.length++),this},nt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},nt.prototype.cmpn=function(ft){var ht=ft<0;if(this.negative!==0&&!ht)return-1;if(this.negative===0&&ht)return 1;this._strip();var $t;if(this.length>1)$t=1;else{ht&&(ft=-ft),et(ft<=67108863,"Number is too big");var Tt=this.words[0]|0;$t=Tt===ft?0:Tt<ft?-1:1}return this.negative!==0?-$t|0:$t},nt.prototype.cmp=function(ft){if(this.negative!==0&&ft.negative===0)return-1;if(this.negative===0&&ft.negative!==0)return 1;var ht=this.ucmp(ft);return this.negative!==0?-ht|0:ht},nt.prototype.ucmp=function(ft){if(this.length>ft.length)return 1;if(this.length<ft.length)return-1;for(var ht=0,$t=this.length-1;$t>=0;$t--){var Tt=this.words[$t]|0,At=ft.words[$t]|0;if(Tt!==At){Tt<At?ht=-1:Tt>At&&(ht=1);break}}return ht},nt.prototype.gtn=function(ft){return this.cmpn(ft)===1},nt.prototype.gt=function(ft){return this.cmp(ft)===1},nt.prototype.gten=function(ft){return this.cmpn(ft)>=0},nt.prototype.gte=function(ft){return this.cmp(ft)>=0},nt.prototype.ltn=function(ft){return this.cmpn(ft)===-1},nt.prototype.lt=function(ft){return this.cmp(ft)===-1},nt.prototype.lten=function(ft){return this.cmpn(ft)<=0},nt.prototype.lte=function(ft){return this.cmp(ft)<=0},nt.prototype.eqn=function(ft){return this.cmpn(ft)===0},nt.prototype.eq=function(ft){return this.cmp(ft)===0},nt.red=function(ft){return new Qt(ft)},nt.prototype.toRed=function(ft){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),ft.convertTo(this)._forceRed(ft)},nt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},nt.prototype._forceRed=function(ft){return this.red=ft,this},nt.prototype.forceRed=function(ft){return et(!this.red,"Already a number in reduction context"),this._forceRed(ft)},nt.prototype.redAdd=function(ft){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,ft)},nt.prototype.redIAdd=function(ft){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ft)},nt.prototype.redSub=function(ft){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,ft)},nt.prototype.redISub=function(ft){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,ft)},nt.prototype.redShl=function(ft){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,ft)},nt.prototype.redMul=function(ft){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,ft),this.red.mul(this,ft)},nt.prototype.redIMul=function(ft){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,ft),this.red.imul(this,ft)},nt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},nt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},nt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},nt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},nt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},nt.prototype.redPow=function(ft){return et(this.red&&!ft.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ft)};var zt={k256:null,p224:null,p192:null,p25519:null};function Nt(wt,ft){this.name=wt,this.p=new nt(ft,16),this.n=this.p.bitLength(),this.k=new nt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Nt.prototype._tmp=function(){var ft=new nt(null);return ft.words=new Array(Math.ceil(this.n/13)),ft},Nt.prototype.ireduce=function(ft){var ht=ft,$t;do this.split(ht,this.tmp),ht=this.imulK(ht),ht=ht.iadd(this.tmp),$t=ht.bitLength();while($t>this.n);var Tt=$t<this.n?-1:ht.ucmp(this.p);return Tt===0?(ht.words[0]=0,ht.length=1):Tt>0?ht.isub(this.p):ht.strip!==void 0?ht.strip():ht._strip(),ht},Nt.prototype.split=function(ft,ht){ft.iushrn(this.n,0,ht)},Nt.prototype.imulK=function(ft){return ft.imul(this.k)};function Vt(){Nt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}tt(Vt,Nt),Vt.prototype.split=function(ft,ht){for(var $t=4194303,Tt=Math.min(ft.length,9),At=0;At<Tt;At++)ht.words[At]=ft.words[At];if(ht.length=Tt,ft.length<=9){ft.words[0]=0,ft.length=1;return}var kt=ft.words[9];for(ht.words[ht.length++]=kt&$t,At=10;At<ft.length;At++){var Ct=ft.words[At]|0;ft.words[At-10]=(Ct&$t)<<4|kt>>>22,kt=Ct}kt>>>=22,ft.words[At-10]=kt,kt===0&&ft.length>10?ft.length-=10:ft.length-=9},Vt.prototype.imulK=function(ft){ft.words[ft.length]=0,ft.words[ft.length+1]=0,ft.length+=2;for(var ht=0,$t=0;$t<ft.length;$t++){var Tt=ft.words[$t]|0;ht+=Tt*977,ft.words[$t]=ht&67108863,ht=Tt*64+(ht/67108864|0)}return ft.words[ft.length-1]===0&&(ft.length--,ft.words[ft.length-1]===0&&ft.length--),ft};function nn(){Nt.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}tt(nn,Nt);function fn(){Nt.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}tt(fn,Nt);function hn(){Nt.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}tt(hn,Nt),hn.prototype.imulK=function(ft){for(var ht=0,$t=0;$t<ft.length;$t++){var Tt=(ft.words[$t]|0)*19+ht,At=Tt&67108863;Tt>>>=26,ft.words[$t]=At,ht=Tt}return ht!==0&&(ft.words[ft.length++]=ht),ft},nt._prime=function(ft){if(zt[ft])return zt[ft];var ht;if(ft==="k256")ht=new Vt;else if(ft==="p224")ht=new nn;else if(ft==="p192")ht=new fn;else if(ft==="p25519")ht=new hn;else throw new Error("Unknown prime "+ft);return zt[ft]=ht,ht};function Qt(wt){if(typeof wt=="string"){var ft=nt._prime(wt);this.m=ft.p,this.prime=ft}else et(wt.gtn(1),"modulus must be greater than 1"),this.m=wt,this.prime=null}Qt.prototype._verify1=function(ft){et(ft.negative===0,"red works only with positives"),et(ft.red,"red works only with red numbers")},Qt.prototype._verify2=function(ft,ht){et((ft.negative|ht.negative)===0,"red works only with positives"),et(ft.red&&ft.red===ht.red,"red works only with red numbers")},Qt.prototype.imod=function(ft){return this.prime?this.prime.ireduce(ft)._forceRed(this):(ut(ft,ft.umod(this.m)._forceRed(this)),ft)},Qt.prototype.neg=function(ft){return ft.isZero()?ft.clone():this.m.sub(ft)._forceRed(this)},Qt.prototype.add=function(ft,ht){this._verify2(ft,ht);var $t=ft.add(ht);return $t.cmp(this.m)>=0&&$t.isub(this.m),$t._forceRed(this)},Qt.prototype.iadd=function(ft,ht){this._verify2(ft,ht);var $t=ft.iadd(ht);return $t.cmp(this.m)>=0&&$t.isub(this.m),$t},Qt.prototype.sub=function(ft,ht){this._verify2(ft,ht);var $t=ft.sub(ht);return $t.cmpn(0)<0&&$t.iadd(this.m),$t._forceRed(this)},Qt.prototype.isub=function(ft,ht){this._verify2(ft,ht);var $t=ft.isub(ht);return $t.cmpn(0)<0&&$t.iadd(this.m),$t},Qt.prototype.shl=function(ft,ht){return this._verify1(ft),this.imod(ft.ushln(ht))},Qt.prototype.imul=function(ft,ht){return this._verify2(ft,ht),this.imod(ft.imul(ht))},Qt.prototype.mul=function(ft,ht){return this._verify2(ft,ht),this.imod(ft.mul(ht))},Qt.prototype.isqr=function(ft){return this.imul(ft,ft.clone())},Qt.prototype.sqr=function(ft){return this.mul(ft,ft)},Qt.prototype.sqrt=function(ft){if(ft.isZero())return ft.clone();var ht=this.m.andln(3);if(et(ht%2===1),ht===3){var $t=this.m.add(new nt(1)).iushrn(2);return this.pow(ft,$t)}for(var Tt=this.m.subn(1),At=0;!Tt.isZero()&&Tt.andln(1)===0;)At++,Tt.iushrn(1);et(!Tt.isZero());var kt=new nt(1).toRed(this),Ct=kt.redNeg(),It=this.m.subn(1).iushrn(1),bt=this.m.bitLength();for(bt=new nt(2*bt*bt).toRed(this);this.pow(bt,It).cmp(Ct)!==0;)bt.redIAdd(Ct);for(var Lt=this.pow(bt,Tt),sn=this.pow(ft,Tt.addn(1).iushrn(1)),Ut=this.pow(ft,Tt),Zt=At;Ut.cmp(kt)!==0;){for(var Gt=Ut,Yt=0;Gt.cmp(kt)!==0;Yt++)Gt=Gt.redSqr();et(Yt<Zt);var cn=this.pow(Lt,new nt(1).iushln(Zt-Yt-1));sn=sn.redMul(cn),Lt=cn.redSqr(),Ut=Ut.redMul(Lt),Zt=Yt}return sn},Qt.prototype.invm=function(ft){var ht=ft._invmp(this.m);return ht.negative!==0?(ht.negative=0,this.imod(ht).redNeg()):this.imod(ht)},Qt.prototype.pow=function(ft,ht){if(ht.isZero())return new nt(1).toRed(this);if(ht.cmpn(1)===0)return ft.clone();var $t=4,Tt=new Array(1<<$t);Tt[0]=new nt(1).toRed(this),Tt[1]=ft;for(var At=2;At<Tt.length;At++)Tt[At]=this.mul(Tt[At-1],ft);var kt=Tt[0],Ct=0,It=0,bt=ht.bitLength()%26;for(bt===0&&(bt=26),At=ht.length-1;At>=0;At--){for(var Lt=ht.words[At],sn=bt-1;sn>=0;sn--){var Ut=Lt>>sn&1;if(kt!==Tt[0]&&(kt=this.sqr(kt)),Ut===0&&Ct===0){It=0;continue}Ct<<=1,Ct|=Ut,It++,!(It!==$t&&(At!==0||sn!==0))&&(kt=this.mul(kt,Tt[Ct]),It=0,Ct=0)}bt=26}return kt},Qt.prototype.convertTo=function(ft){var ht=ft.umod(this.m);return ht===ft?ht.clone():ht},Qt.prototype.convertFrom=function(ft){var ht=ft.clone();return ht.red=null,ht},nt.mont=function(ft){return new Mt(ft)};function Mt(wt){Qt.call(this,wt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new nt(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}tt(Mt,Qt),Mt.prototype.convertTo=function(ft){return this.imod(ft.ushln(this.shift))},Mt.prototype.convertFrom=function(ft){var ht=this.imod(ft.mul(this.rinv));return ht.red=null,ht},Mt.prototype.imul=function(ft,ht){if(ft.isZero()||ht.isZero())return ft.words[0]=0,ft.length=1,ft;var $t=ft.imul(ht),Tt=$t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=$t.isub(Tt).iushrn(this.shift),kt=At;return At.cmp(this.m)>=0?kt=At.isub(this.m):At.cmpn(0)<0&&(kt=At.iadd(this.m)),kt._forceRed(this)},Mt.prototype.mul=function(ft,ht){if(ft.isZero()||ht.isZero())return new nt(0)._forceRed(this);var $t=ft.mul(ht),Tt=$t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=$t.isub(Tt).iushrn(this.shift),kt=At;return At.cmp(this.m)>=0?kt=At.isub(this.m):At.cmpn(0)<0&&(kt=At.iadd(this.m)),kt._forceRed(this)},Mt.prototype.invm=function(ft){var ht=this.imod(ft._invmp(this.m).mul(this.r2));return ht._forceRed(this)}})(a,commonjsGlobal)})(bn);var bnExports=bn.exports,utf8={};/*! https://mths.be/utf8js v3.0.0 by @mathias */(function(a){(function(j){var _e=String.fromCharCode;function et(Et){for(var Rt=[],xt=0,Pt=Et.length,Dt,Ft;xt<Pt;)Dt=Et.charCodeAt(xt++),Dt>=55296&&Dt<=56319&&xt<Pt?(Ft=Et.charCodeAt(xt++),(Ft&64512)==56320?Rt.push(((Dt&1023)<<10)+(Ft&1023)+65536):(Rt.push(Dt),xt--)):Rt.push(Dt);return Rt}function tt(Et){for(var Rt=Et.length,xt=-1,Pt,Dt="";++xt<Rt;)Pt=Et[xt],Pt>65535&&(Pt-=65536,Dt+=_e(Pt>>>10&1023|55296),Pt=56320|Pt&1023),Dt+=_e(Pt);return Dt}function nt(Et){if(Et>=55296&&Et<=57343)throw Error("Lone surrogate U+"+Et.toString(16).toUpperCase()+" is not a scalar value")}function rt(Et,Rt){return _e(Et>>Rt&63|128)}function it(Et){if(!(Et&4294967168))return _e(Et);var Rt="";return Et&4294965248?Et&4294901760?Et&4292870144||(Rt=_e(Et>>18&7|240),Rt+=rt(Et,12),Rt+=rt(Et,6)):(nt(Et),Rt=_e(Et>>12&15|224),Rt+=rt(Et,6)):Rt=_e(Et>>6&31|192),Rt+=_e(Et&63|128),Rt}function ot(Et){for(var Rt=et(Et),xt=Rt.length,Pt=-1,Dt,Ft="";++Pt<xt;)Dt=Rt[Pt],Ft+=it(Dt);return Ft}function ct(){if(mt>=pt)throw Error("Invalid byte index");var Et=dt[mt]&255;if(mt++,(Et&192)==128)return Et&63;throw Error("Invalid continuation byte")}function ut(){var Et,Rt,xt,Pt,Dt;if(mt>pt)throw Error("Invalid byte index");if(mt==pt)return!1;if(Et=dt[mt]&255,mt++,!(Et&128))return Et;if((Et&224)==192){if(Rt=ct(),Dt=(Et&31)<<6|Rt,Dt>=128)return Dt;throw Error("Invalid continuation byte")}if((Et&240)==224){if(Rt=ct(),xt=ct(),Dt=(Et&15)<<12|Rt<<6|xt,Dt>=2048)return nt(Dt),Dt;throw Error("Invalid continuation byte")}if((Et&248)==240&&(Rt=ct(),xt=ct(),Pt=ct(),Dt=(Et&7)<<18|Rt<<12|xt<<6|Pt,Dt>=65536&&Dt<=1114111))return Dt;throw Error("Invalid UTF-8 detected")}var dt,pt,mt;function vt(Et){dt=et(Et),pt=dt.length,mt=0;for(var Rt=[],xt;(xt=ut())!==!1;)Rt.push(xt);return tt(Rt)}j.version="3.0.0",j.encode=ot,j.decode=vt})(a)})(utf8);(function(a){var j=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(dn,$n,wn,Sn){Sn===void 0&&(Sn=wn);var qn=Object.getOwnPropertyDescriptor($n,wn);(!qn||("get"in qn?!$n.__esModule:qn.writable||qn.configurable))&&(qn={enumerable:!0,get:function(){return $n[wn]}}),Object.defineProperty(dn,Sn,qn)}:function(dn,$n,wn,Sn){Sn===void 0&&(Sn=wn),dn[Sn]=$n[wn]}),_e=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(dn,$n){Object.defineProperty(dn,"default",{enumerable:!0,value:$n})}:function(dn,$n){dn.default=$n}),et=commonjsGlobal&&commonjsGlobal.__importStar||function(dn){if(dn&&dn.__esModule)return dn;var $n={};if(dn!=null)for(var wn in dn)wn!=="default"&&Object.prototype.hasOwnProperty.call(dn,wn)&&j($n,dn,wn);return _e($n,dn),$n},tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(dn){return dn&&dn.__esModule?dn:{default:dn}};Object.defineProperty(a,"__esModule",{value:!0}),a.formatTxType=a.isSameDid=a.toDid=a.toAddress=a.fromBase64=a.toBase64=a.fromBase58=a.toBase58=a.toBuffer=a.toUint8Array=a.isUUID=a.UUID=a.isUint8Array=a.fromTokenToUnit=a.fromUnitToToken=a.numberToString=a.toHex=a.hexToBytes=a.bytesToHex=a.numberToHex=a.hexToNumber=a.hexToUtf8=a.utf8ToHex=a.toBN=a.isHex=a.isHexStrict=a.isBigNumber=a.isBN=a.stripHexPrefix=a.isHexPrefixed=a.numberToBN=a.rightPad=a.leftPad=a.BN=a.isBase58btc=void 0;const nt=tt(isBoolean_1),rt=tt(isString_1),it=tt(isNumber_1),ot=tt(isObject_1),ct=tt(upperFirst_1$1),ut=tt(camelCase_1),dt=tt(isNull_1),pt=tt(padEnd_1);a.rightPad=pt.default;const mt=tt(padStart_1$1);a.leftPad=mt.default;const vt=tt(bs58),Et=tt(base64Url),Rt=tt(bnExports);a.BN=Rt.default;const xt=et(utf8),Pt="did:abt:",Dt=new Rt.default(0),Ft=new Rt.default(-1),zt={encode:dn=>`z${vt.default.encode(dn)}`,decode:dn=>vt.default.decode(dn.slice(1))},Nt=dn=>{if(typeof dn!="string")return!1;if(dn[0]==="z")try{return zt.decode(dn),!0}catch{return!1}return!1};a.isBase58btc=Nt;const Vt=dn=>{if(typeof dn=="string"||typeof dn=="number"){let $n=new Rt.default(1);const wn=String(dn).toLowerCase().trim(),Sn=wn.substr(0,2)==="0x"||wn.substr(0,3)==="-0x";let qn=(0,a.stripHexPrefix)(wn);if(qn.substr(0,1)==="-"&&(qn=(0,a.stripHexPrefix)(qn.slice(1)),$n=new Rt.default(-1,10)),qn=qn===""?"0":qn,!qn.match(/^-?[0-9]+$/)&&qn.match(/^[0-9A-Fa-f]+$/)||qn.match(/^[a-fA-F]+$/)||Sn===!0&&qn.match(/^[0-9A-Fa-f]+$/))return new Rt.default(qn,16).mul($n);if((qn.match(/^-?[0-9]+$/)||qn==="")&&Sn===!1)return new Rt.default(qn,10).mul($n)}if((0,a.isBN)(dn))return new Rt.default(dn.toString(10),10);throw new Error(`[number-to-bn] while converting number ${JSON.stringify(dn)} to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.`)};a.numberToBN=Vt;const nn=dn=>{if(typeof dn!="string")throw new Error("[is-hex-prefixed] value must be type string");return dn.slice(0,2).toLowerCase()==="0x"};a.isHexPrefixed=nn;const fn=dn=>typeof dn=="string"&&(0,a.isHexPrefixed)(dn)?dn.slice(2):dn;a.stripHexPrefix=fn;const hn=dn=>dn instanceof Rt.default||dn&&dn.constructor&&dn.constructor.name==="BN";a.isBN=hn;const Qt=dn=>dn&&dn.constructor&&dn.constructor.name==="BigNumber";a.isBigNumber=Qt;const Mt=dn=>((0,rt.default)(dn)||(0,it.default)(dn))&&/^(-)?0x[0-9a-f]*$/i.test(dn);a.isHexStrict=Mt;const wt=dn=>((0,rt.default)(dn)||(0,it.default)(dn))&&/^(-0x|0x|0X|-0X)?[0-9a-f]*$/i.test(dn);a.isHex=wt;const ft=(dn,$n=10)=>{try{if(typeof dn=="number"&&dn>0){const wn=Number(dn).toLocaleString("fullwide",{useGrouping:!1});return new Rt.default(wn,$n)}return(0,a.numberToBN)(dn)}catch(wn){throw new Error(`${wn} Given value: "${dn}"`)}};a.toBN=ft;const ht=dn=>{dn=xt.encode(dn);let $n="";dn=dn.replace(/^(?:\u0000)*/,""),dn=dn.split("").reverse().join(""),dn=dn.replace(/^(?:\u0000)*/,""),dn=dn.split("").reverse().join("");for(let wn=0;wn<dn.length;wn++){const qn=dn.charCodeAt(wn).toString(16);$n+=qn.length<2?`0${qn}`:qn}return`0x${$n}`};a.utf8ToHex=ht;const $t=dn=>{if(!(0,a.isHexStrict)(dn))throw new Error(`The parameter "${dn}" must be a valid HEX string.`);let $n="",wn=0;dn=dn.replace(/^0x/i,""),dn=dn.replace(/^(?:00)*/,""),dn=dn.split("").reverse().join(""),dn=dn.replace(/^(?:00)*/,""),dn=dn.split("").reverse().join("");const Sn=dn.length;for(let qn=0;qn<Sn;qn+=2)wn=parseInt(dn.substr(qn,2),16),$n+=String.fromCharCode(wn);return xt.decode($n)};a.hexToUtf8=$t;const Tt=dn=>dn?(0,a.toBN)(dn).toNumber():0;a.hexToNumber=Tt;const At=dn=>{if((0,dt.default)(dn)||typeof dn>"u")return dn;if(!isFinite(dn)&&!(0,a.isHex)(dn))throw new Error(`Given input "${dn}" is not a number.`);const $n=(0,a.toBN)(dn),wn=$n.toString(16);return $n.lt(new Rt.default(0))?`-0x${wn.substr(1)}`:`0x${wn}`};a.numberToHex=At;const kt=dn=>{const $n=[];for(let wn=0;wn<dn.length;wn++)$n.push((dn[wn]>>>4).toString(16)),$n.push((dn[wn]&15).toString(16));return`0x${$n.join("")}`};a.bytesToHex=kt;const Ct=dn=>{if(dn=dn.toString(16),!(0,a.isHex)(dn))throw new Error(`Given value "${dn}" is not a valid hex string.`);dn=dn.replace(/^0x/i,""),dn=dn.length%2?`0${dn}`:dn;const $n=[];for(let wn=0;wn<dn.length;wn+=2)$n.push(parseInt(dn.substr(wn,2),16));return $n};a.hexToBytes=Ct;const It=(dn,$n=!1)=>Ut(dn)||Buffer$3.isBuffer(dn)?$n?"bytes":(0,a.bytesToHex)(dn):(0,a.isBase58btc)(dn)?$n?"bytes":(0,a.bytesToHex)(zt.decode(dn)):(0,nt.default)(dn)?$n?"bool":dn?"0x01":"0x00":(0,ot.default)(dn)&&!(0,a.isBigNumber)(dn)&&!(0,a.isBN)(dn)?$n?"string":(0,a.utf8ToHex)(JSON.stringify(dn)):typeof dn=="string"?dn.indexOf("-0x")===0||dn.indexOf("-0X")===0?$n?"int256":(0,a.numberToHex)(dn):dn.indexOf("0x")===0||dn.indexOf("0X")===0?$n?"bytes":dn:$n?"string":(0,a.utf8ToHex)(dn):$n?dn<0?"int256":"uint256":(0,a.numberToHex)(dn);a.toHex=It;const bt=dn=>{if(typeof dn=="string"){if(!dn.match(/^-?[0-9.]+$/))throw new Error(`Invalid value '${dn}' while converting to string, should be a number matching (^-?[0-9.]+).`);return dn}if(typeof dn=="number")return Number.isInteger(dn)&&dn>0?Number(dn).toLocaleString("fullwide",{useGrouping:!1}):String(dn);if(typeof dn=="object"&&dn.toString&&(dn.toTwos||dn.dividedToIntegerBy))return dn.toPrecision?String(dn.toPrecision()):dn.toString(10);throw new Error(`while converting number to string, invalid number value '${dn}' type ${typeof dn}.`)};a.numberToString=bt;const Lt=(dn,$n=18,wn={})=>{let Sn=(0,a.toBN)(dn);const qn=Sn.lt(Dt),Qn=(0,a.toBN)(`1${"0".repeat($n)}`,10),jn=Qn.toString(10).length-1||1,zn=wn||{};qn&&(Sn=Sn.mul(Ft));let vn=Sn.mod(Qn).toString(10);for(;vn.length<jn;)vn=`0${vn}`;zn.pad||(vn=vn.match(/^([0-9]*[1-9]|0)(0*)/)[1]);let Rn=Sn.div(Qn).toString(10);zn.commify&&(Rn=Rn.replace(/\B(?=(\d{3})+(?!\d))/g,","));let Fn=`${Rn}${vn==="0"?"":`.${vn}`}`;return qn&&(Fn=`-${Fn}`),Fn};a.fromUnitToToken=Lt;const sn=(dn,$n=18)=>{let wn=(0,a.numberToString)(dn);const Sn=(0,a.toBN)(`1${"0".repeat($n)}`,10),qn=Sn.toString(10).length-1||1,Qn=wn.substring(0,1)==="-";if(Qn&&(wn=wn.substring(1)),wn===".")throw new Error(`error converting token ${dn} to unit, invalid value`);const jn=wn.split(".");if(jn.length>2)throw new Error(`error converting token ${dn} to unit, too many decimal points`);let zn=jn[0],vn=jn[1];if(zn||(zn="0"),vn||(vn="0"),vn.length>qn)throw new Error(`error converting token ${dn} to unit, too many decimal places`);for(;vn.length<qn;)vn+="0";zn=new Rt.default(zn),vn=new Rt.default(vn);let Rn=zn.mul(Sn).add(vn);return Qn&&(Rn=Rn.mul(Ft)),new Rt.default(Rn.toString(10),10)};a.fromTokenToUnit=sn;function Ut(dn){return Object.prototype.toString.call(dn)==="[object Uint8Array]"}a.isUint8Array=Ut;function Zt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,dn=>{const $n=Math.random()*16|0;return(dn==="x"?$n:$n&3|8).toString(16)})}a.UUID=Zt;function Gt(dn){return/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(dn)}a.isUUID=Gt;function Yt(dn){let $n=null;if([null,void 0,""].includes(dn))$n=new Uint8Array;else if(Buffer$3.isBuffer(dn))$n=new Uint8Array(dn);else if((0,a.isHexStrict)(dn))$n=new Uint8Array((0,a.hexToBytes)(dn));else if(Ut(dn))$n=new Uint8Array(dn);else if((0,a.isBase58btc)(dn))$n=new Uint8Array(zt.decode(dn));else if(typeof dn=="string")$n=new Uint8Array((0,a.hexToBytes)((0,a.toHex)(dn)));else throw new Error(`Unsupported input type ${typeof dn} detected for toBuffer, only Uint8Array/Buffer/Hex/Base58 are supported`);return $n}a.toUint8Array=Yt;function cn(dn){return Buffer$3.from(Yt(dn))}a.toBuffer=cn;function En(dn){const $n=zt.encode(Yt(dn));return Buffer$3.from($n).toString("utf-8")}a.toBase58=En;function Ht(dn){if((0,a.isBase58btc)(dn)===!1)throw new Error("fromBase58 expect strict base58 encoded string as input");return Buffer$3.from(zt.decode(dn))}a.fromBase58=Ht;function Ot(dn,$n=!0){const wn=Et.default.encode(cn(dn));return $n?Et.default.escape(wn):wn}a.toBase64=Ot;function Kt(dn){if(typeof dn!="string")throw new Error("fromBase64 requires input to be a string");return Buffer$3.from(Et.default.unescape(dn),"base64")}a.fromBase64=Kt;function Xt(dn){return dn.replace(Pt,"")}a.toAddress=Xt;function an(dn){return`${Pt}${Xt(dn)}`}a.toDid=an;function _n(dn,$n){return Xt(dn)===Xt($n)}a.isSameDid=_n;function yn(dn){return(0,ct.default)((0,ut.default)(dn))}a.formatTxType=yn})(lib$4);const BlockletContext=reactExports.createContext({});function useBlockletContext$1(){return reactExports.useContext(BlockletContext)}/**
537
+ `;var lib$4={},baseGetTag$1=_baseGetTag,isObjectLike$4=isObjectLike_1,boolTag="[object Boolean]";function isBoolean(a){return a===!0||a===!1||isObjectLike$4(a)&&baseGetTag$1(a)==boolTag}var isBoolean_1=isBoolean,baseGetTag=_baseGetTag,isObjectLike$3=isObjectLike_1,numberTag="[object Number]";function isNumber(a){return typeof a=="number"||isObjectLike$3(a)&&baseGetTag(a)==numberTag}var isNumber_1=isNumber,castSlice$1=_castSlice,hasUnicode=_hasUnicode,stringToArray$1=_stringToArray,toString$h=toString_1;function createCaseFirst$1(a){return function(j){j=toString$h(j);var _e=hasUnicode(j)?stringToArray$1(j):void 0,et=_e?_e[0]:j.charAt(0),tt=_e?castSlice$1(_e,1).join(""):j.slice(1);return et[a]()+tt}}var _createCaseFirst=createCaseFirst$1,createCaseFirst=_createCaseFirst,upperFirst$1=createCaseFirst("toUpperCase"),upperFirst_1$1=upperFirst$1;const upperFirst$2=getDefaultExportFromCjs$1(upperFirst_1$1);var toString$g=toString_1,upperFirst=upperFirst_1$1;function capitalize$1(a){return upperFirst(toString$g(a).toLowerCase())}var capitalize_1=capitalize$1;function arrayReduce$1(a,j,_e,et){var tt=-1,nt=a==null?0:a.length;for(et&&nt&&(_e=a[++tt]);++tt<nt;)_e=j(_e,a[tt],tt,a);return _e}var _arrayReduce=arrayReduce$1;function basePropertyOf$1(a){return function(j){return a==null?void 0:a[j]}}var _basePropertyOf=basePropertyOf$1,basePropertyOf=_basePropertyOf,deburredLetters={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$f=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr$1(a){return a=toString$f(a),a&&a.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(a){return a.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(a){return reHasUnicodeWord.test(a)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords$1(a){return a.match(reUnicodeWord)||[]}var _unicodeWords=unicodeWords$1,asciiWords=_asciiWords,hasUnicodeWord=_hasUnicodeWord,toString$e=toString_1,unicodeWords=_unicodeWords;function words$1(a,j,_e){return a=toString$e(a),j=_e?void 0:j,j===void 0?hasUnicodeWord(a)?unicodeWords(a):asciiWords(a):a.match(j)||[]}var words_1=words$1,arrayReduce=_arrayReduce,deburr=deburr_1,words=words_1,rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder$1(a){return function(j){return arrayReduce(words(deburr(j).replace(reApos,"")),a,"")}}var _createCompounder=createCompounder$1,capitalize=capitalize_1,createCompounder=_createCompounder,camelCase=createCompounder(function(a,j,_e){return j=j.toLowerCase(),a+(_e?capitalize(j):j)}),camelCase_1=camelCase;const camelCase$1=getDefaultExportFromCjs$1(camelCase_1);var createPadding=_createPadding,stringSize=_stringSize,toInteger=toInteger_1,toString$d=toString_1;function padEnd(a,j,_e){a=toString$d(a),j=toInteger(j);var et=j?stringSize(a):0;return j&&et<j?a+createPadding(j-et,_e):a}var padEnd_1=padEnd,base64Url={unescape:unescape$1,escape:escape$1,encode:encode$4,decode:decode$3};function unescape$1(a){return(a+"===".slice((a.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function escape$1(a){return a.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function encode$4(a,j){return escape$1(Buffer$3.from(a,j||"utf8").toString("base64"))}function decode$3(a,j){return Buffer$3.from(unescape$1(a),"base64").toString(j||"utf8")}var bn={exports:{}};bn.exports;(function(a){(function(j,_e){function et(wt,ft){if(!wt)throw new Error(ft||"Assertion failed")}function tt(wt,ft){wt.super_=ft;var ht=function(){};ht.prototype=ft.prototype,wt.prototype=new ht,wt.prototype.constructor=wt}function nt(wt,ft,ht){if(nt.isBN(wt))return wt;this.negative=0,this.words=null,this.length=0,this.red=null,wt!==null&&((ft==="le"||ft==="be")&&(ht=ft,ft=10),this._init(wt||0,ft||10,ht||"be"))}typeof j=="object"?j.exports=nt:_e.BN=nt,nt.BN=nt,nt.wordSize=26;var rt;try{typeof window<"u"&&typeof window.Buffer<"u"?rt=window.Buffer:rt=require$$0$6.Buffer}catch{}nt.isBN=function(ft){return ft instanceof nt?!0:ft!==null&&typeof ft=="object"&&ft.constructor.wordSize===nt.wordSize&&Array.isArray(ft.words)},nt.max=function(ft,ht){return ft.cmp(ht)>0?ft:ht},nt.min=function(ft,ht){return ft.cmp(ht)<0?ft:ht},nt.prototype._init=function(ft,ht,$t){if(typeof ft=="number")return this._initNumber(ft,ht,$t);if(typeof ft=="object")return this._initArray(ft,ht,$t);ht==="hex"&&(ht=16),et(ht===(ht|0)&&ht>=2&&ht<=36),ft=ft.toString().replace(/\s+/g,"");var Tt=0;ft[0]==="-"&&(Tt++,this.negative=1),Tt<ft.length&&(ht===16?this._parseHex(ft,Tt,$t):(this._parseBase(ft,ht,Tt),$t==="le"&&this._initArray(this.toArray(),ht,$t)))},nt.prototype._initNumber=function(ft,ht,$t){ft<0&&(this.negative=1,ft=-ft),ft<67108864?(this.words=[ft&67108863],this.length=1):ft<4503599627370496?(this.words=[ft&67108863,ft/67108864&67108863],this.length=2):(et(ft<9007199254740992),this.words=[ft&67108863,ft/67108864&67108863,1],this.length=3),$t==="le"&&this._initArray(this.toArray(),ht,$t)},nt.prototype._initArray=function(ft,ht,$t){if(et(typeof ft.length=="number"),ft.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(ft.length/3),this.words=new Array(this.length);for(var Tt=0;Tt<this.length;Tt++)this.words[Tt]=0;var At,kt,Ct=0;if($t==="be")for(Tt=ft.length-1,At=0;Tt>=0;Tt-=3)kt=ft[Tt]|ft[Tt-1]<<8|ft[Tt-2]<<16,this.words[At]|=kt<<Ct&67108863,this.words[At+1]=kt>>>26-Ct&67108863,Ct+=24,Ct>=26&&(Ct-=26,At++);else if($t==="le")for(Tt=0,At=0;Tt<ft.length;Tt+=3)kt=ft[Tt]|ft[Tt+1]<<8|ft[Tt+2]<<16,this.words[At]|=kt<<Ct&67108863,this.words[At+1]=kt>>>26-Ct&67108863,Ct+=24,Ct>=26&&(Ct-=26,At++);return this._strip()};function it(wt,ft){var ht=wt.charCodeAt(ft);if(ht>=48&&ht<=57)return ht-48;if(ht>=65&&ht<=70)return ht-55;if(ht>=97&&ht<=102)return ht-87;et(!1,"Invalid character in "+wt)}function ot(wt,ft,ht){var $t=it(wt,ht);return ht-1>=ft&&($t|=it(wt,ht-1)<<4),$t}nt.prototype._parseHex=function(ft,ht,$t){this.length=Math.ceil((ft.length-ht)/6),this.words=new Array(this.length);for(var Tt=0;Tt<this.length;Tt++)this.words[Tt]=0;var At=0,kt=0,Ct;if($t==="be")for(Tt=ft.length-1;Tt>=ht;Tt-=2)Ct=ot(ft,ht,Tt)<<At,this.words[kt]|=Ct&67108863,At>=18?(At-=18,kt+=1,this.words[kt]|=Ct>>>26):At+=8;else{var It=ft.length-ht;for(Tt=It%2===0?ht+1:ht;Tt<ft.length;Tt+=2)Ct=ot(ft,ht,Tt)<<At,this.words[kt]|=Ct&67108863,At>=18?(At-=18,kt+=1,this.words[kt]|=Ct>>>26):At+=8}this._strip()};function ct(wt,ft,ht,$t){for(var Tt=0,At=0,kt=Math.min(wt.length,ht),Ct=ft;Ct<kt;Ct++){var It=wt.charCodeAt(Ct)-48;Tt*=$t,It>=49?At=It-49+10:It>=17?At=It-17+10:At=It,et(It>=0&&At<$t,"Invalid character"),Tt+=At}return Tt}nt.prototype._parseBase=function(ft,ht,$t){this.words=[0],this.length=1;for(var Tt=0,At=1;At<=67108863;At*=ht)Tt++;Tt--,At=At/ht|0;for(var kt=ft.length-$t,Ct=kt%Tt,It=Math.min(kt,kt-Ct)+$t,bt=0,Lt=$t;Lt<It;Lt+=Tt)bt=ct(ft,Lt,Lt+Tt,ht),this.imuln(At),this.words[0]+bt<67108864?this.words[0]+=bt:this._iaddn(bt);if(Ct!==0){var sn=1;for(bt=ct(ft,Lt,ft.length,ht),Lt=0;Lt<Ct;Lt++)sn*=ht;this.imuln(sn),this.words[0]+bt<67108864?this.words[0]+=bt:this._iaddn(bt)}this._strip()},nt.prototype.copy=function(ft){ft.words=new Array(this.length);for(var ht=0;ht<this.length;ht++)ft.words[ht]=this.words[ht];ft.length=this.length,ft.negative=this.negative,ft.red=this.red};function ut(wt,ft){wt.words=ft.words,wt.length=ft.length,wt.negative=ft.negative,wt.red=ft.red}if(nt.prototype._move=function(ft){ut(ft,this)},nt.prototype.clone=function(){var ft=new nt(null);return this.copy(ft),ft},nt.prototype._expand=function(ft){for(;this.length<ft;)this.words[this.length++]=0;return this},nt.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},nt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{nt.prototype[Symbol.for("nodejs.util.inspect.custom")]=dt}catch{nt.prototype.inspect=dt}else nt.prototype.inspect=dt;function dt(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var pt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],mt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],vt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];nt.prototype.toString=function(ft,ht){ft=ft||10,ht=ht|0||1;var $t;if(ft===16||ft==="hex"){$t="";for(var Tt=0,At=0,kt=0;kt<this.length;kt++){var Ct=this.words[kt],It=((Ct<<Tt|At)&16777215).toString(16);At=Ct>>>24-Tt&16777215,Tt+=2,Tt>=26&&(Tt-=26,kt--),At!==0||kt!==this.length-1?$t=pt[6-It.length]+It+$t:$t=It+$t}for(At!==0&&($t=At.toString(16)+$t);$t.length%ht!==0;)$t="0"+$t;return this.negative!==0&&($t="-"+$t),$t}if(ft===(ft|0)&&ft>=2&&ft<=36){var bt=mt[ft],Lt=vt[ft];$t="";var sn=this.clone();for(sn.negative=0;!sn.isZero();){var Ut=sn.modrn(Lt).toString(ft);sn=sn.idivn(Lt),sn.isZero()?$t=Ut+$t:$t=pt[bt-Ut.length]+Ut+$t}for(this.isZero()&&($t="0"+$t);$t.length%ht!==0;)$t="0"+$t;return this.negative!==0&&($t="-"+$t),$t}et(!1,"Base should be between 2 and 36")},nt.prototype.toNumber=function(){var ft=this.words[0];return this.length===2?ft+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ft+=4503599627370496+this.words[1]*67108864:this.length>2&&et(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ft:ft},nt.prototype.toJSON=function(){return this.toString(16,2)},rt&&(nt.prototype.toBuffer=function(ft,ht){return this.toArrayLike(rt,ft,ht)}),nt.prototype.toArray=function(ft,ht){return this.toArrayLike(Array,ft,ht)};var Et=function(ft,ht){return ft.allocUnsafe?ft.allocUnsafe(ht):new ft(ht)};nt.prototype.toArrayLike=function(ft,ht,$t){this._strip();var Tt=this.byteLength(),At=$t||Math.max(1,Tt);et(Tt<=At,"byte array longer than desired length"),et(At>0,"Requested array length <= 0");var kt=Et(ft,At),Ct=ht==="le"?"LE":"BE";return this["_toArrayLike"+Ct](kt,Tt),kt},nt.prototype._toArrayLikeLE=function(ft,ht){for(var $t=0,Tt=0,At=0,kt=0;At<this.length;At++){var Ct=this.words[At]<<kt|Tt;ft[$t++]=Ct&255,$t<ft.length&&(ft[$t++]=Ct>>8&255),$t<ft.length&&(ft[$t++]=Ct>>16&255),kt===6?($t<ft.length&&(ft[$t++]=Ct>>24&255),Tt=0,kt=0):(Tt=Ct>>>24,kt+=2)}if($t<ft.length)for(ft[$t++]=Tt;$t<ft.length;)ft[$t++]=0},nt.prototype._toArrayLikeBE=function(ft,ht){for(var $t=ft.length-1,Tt=0,At=0,kt=0;At<this.length;At++){var Ct=this.words[At]<<kt|Tt;ft[$t--]=Ct&255,$t>=0&&(ft[$t--]=Ct>>8&255),$t>=0&&(ft[$t--]=Ct>>16&255),kt===6?($t>=0&&(ft[$t--]=Ct>>24&255),Tt=0,kt=0):(Tt=Ct>>>24,kt+=2)}if($t>=0)for(ft[$t--]=Tt;$t>=0;)ft[$t--]=0},Math.clz32?nt.prototype._countBits=function(ft){return 32-Math.clz32(ft)}:nt.prototype._countBits=function(ft){var ht=ft,$t=0;return ht>=4096&&($t+=13,ht>>>=13),ht>=64&&($t+=7,ht>>>=7),ht>=8&&($t+=4,ht>>>=4),ht>=2&&($t+=2,ht>>>=2),$t+ht},nt.prototype._zeroBits=function(ft){if(ft===0)return 26;var ht=ft,$t=0;return ht&8191||($t+=13,ht>>>=13),ht&127||($t+=7,ht>>>=7),ht&15||($t+=4,ht>>>=4),ht&3||($t+=2,ht>>>=2),ht&1||$t++,$t},nt.prototype.bitLength=function(){var ft=this.words[this.length-1],ht=this._countBits(ft);return(this.length-1)*26+ht};function Rt(wt){for(var ft=new Array(wt.bitLength()),ht=0;ht<ft.length;ht++){var $t=ht/26|0,Tt=ht%26;ft[ht]=wt.words[$t]>>>Tt&1}return ft}nt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ft=0,ht=0;ht<this.length;ht++){var $t=this._zeroBits(this.words[ht]);if(ft+=$t,$t!==26)break}return ft},nt.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},nt.prototype.toTwos=function(ft){return this.negative!==0?this.abs().inotn(ft).iaddn(1):this.clone()},nt.prototype.fromTwos=function(ft){return this.testn(ft-1)?this.notn(ft).iaddn(1).ineg():this.clone()},nt.prototype.isNeg=function(){return this.negative!==0},nt.prototype.neg=function(){return this.clone().ineg()},nt.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},nt.prototype.iuor=function(ft){for(;this.length<ft.length;)this.words[this.length++]=0;for(var ht=0;ht<ft.length;ht++)this.words[ht]=this.words[ht]|ft.words[ht];return this._strip()},nt.prototype.ior=function(ft){return et((this.negative|ft.negative)===0),this.iuor(ft)},nt.prototype.or=function(ft){return this.length>ft.length?this.clone().ior(ft):ft.clone().ior(this)},nt.prototype.uor=function(ft){return this.length>ft.length?this.clone().iuor(ft):ft.clone().iuor(this)},nt.prototype.iuand=function(ft){var ht;this.length>ft.length?ht=ft:ht=this;for(var $t=0;$t<ht.length;$t++)this.words[$t]=this.words[$t]&ft.words[$t];return this.length=ht.length,this._strip()},nt.prototype.iand=function(ft){return et((this.negative|ft.negative)===0),this.iuand(ft)},nt.prototype.and=function(ft){return this.length>ft.length?this.clone().iand(ft):ft.clone().iand(this)},nt.prototype.uand=function(ft){return this.length>ft.length?this.clone().iuand(ft):ft.clone().iuand(this)},nt.prototype.iuxor=function(ft){var ht,$t;this.length>ft.length?(ht=this,$t=ft):(ht=ft,$t=this);for(var Tt=0;Tt<$t.length;Tt++)this.words[Tt]=ht.words[Tt]^$t.words[Tt];if(this!==ht)for(;Tt<ht.length;Tt++)this.words[Tt]=ht.words[Tt];return this.length=ht.length,this._strip()},nt.prototype.ixor=function(ft){return et((this.negative|ft.negative)===0),this.iuxor(ft)},nt.prototype.xor=function(ft){return this.length>ft.length?this.clone().ixor(ft):ft.clone().ixor(this)},nt.prototype.uxor=function(ft){return this.length>ft.length?this.clone().iuxor(ft):ft.clone().iuxor(this)},nt.prototype.inotn=function(ft){et(typeof ft=="number"&&ft>=0);var ht=Math.ceil(ft/26)|0,$t=ft%26;this._expand(ht),$t>0&&ht--;for(var Tt=0;Tt<ht;Tt++)this.words[Tt]=~this.words[Tt]&67108863;return $t>0&&(this.words[Tt]=~this.words[Tt]&67108863>>26-$t),this._strip()},nt.prototype.notn=function(ft){return this.clone().inotn(ft)},nt.prototype.setn=function(ft,ht){et(typeof ft=="number"&&ft>=0);var $t=ft/26|0,Tt=ft%26;return this._expand($t+1),ht?this.words[$t]=this.words[$t]|1<<Tt:this.words[$t]=this.words[$t]&~(1<<Tt),this._strip()},nt.prototype.iadd=function(ft){var ht;if(this.negative!==0&&ft.negative===0)return this.negative=0,ht=this.isub(ft),this.negative^=1,this._normSign();if(this.negative===0&&ft.negative!==0)return ft.negative=0,ht=this.isub(ft),ft.negative=1,ht._normSign();var $t,Tt;this.length>ft.length?($t=this,Tt=ft):($t=ft,Tt=this);for(var At=0,kt=0;kt<Tt.length;kt++)ht=($t.words[kt]|0)+(Tt.words[kt]|0)+At,this.words[kt]=ht&67108863,At=ht>>>26;for(;At!==0&&kt<$t.length;kt++)ht=($t.words[kt]|0)+At,this.words[kt]=ht&67108863,At=ht>>>26;if(this.length=$t.length,At!==0)this.words[this.length]=At,this.length++;else if($t!==this)for(;kt<$t.length;kt++)this.words[kt]=$t.words[kt];return this},nt.prototype.add=function(ft){var ht;return ft.negative!==0&&this.negative===0?(ft.negative=0,ht=this.sub(ft),ft.negative^=1,ht):ft.negative===0&&this.negative!==0?(this.negative=0,ht=ft.sub(this),this.negative=1,ht):this.length>ft.length?this.clone().iadd(ft):ft.clone().iadd(this)},nt.prototype.isub=function(ft){if(ft.negative!==0){ft.negative=0;var ht=this.iadd(ft);return ft.negative=1,ht._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ft),this.negative=1,this._normSign();var $t=this.cmp(ft);if($t===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Tt,At;$t>0?(Tt=this,At=ft):(Tt=ft,At=this);for(var kt=0,Ct=0;Ct<At.length;Ct++)ht=(Tt.words[Ct]|0)-(At.words[Ct]|0)+kt,kt=ht>>26,this.words[Ct]=ht&67108863;for(;kt!==0&&Ct<Tt.length;Ct++)ht=(Tt.words[Ct]|0)+kt,kt=ht>>26,this.words[Ct]=ht&67108863;if(kt===0&&Ct<Tt.length&&Tt!==this)for(;Ct<Tt.length;Ct++)this.words[Ct]=Tt.words[Ct];return this.length=Math.max(this.length,Ct),Tt!==this&&(this.negative=1),this._strip()},nt.prototype.sub=function(ft){return this.clone().isub(ft)};function xt(wt,ft,ht){ht.negative=ft.negative^wt.negative;var $t=wt.length+ft.length|0;ht.length=$t,$t=$t-1|0;var Tt=wt.words[0]|0,At=ft.words[0]|0,kt=Tt*At,Ct=kt&67108863,It=kt/67108864|0;ht.words[0]=Ct;for(var bt=1;bt<$t;bt++){for(var Lt=It>>>26,sn=It&67108863,Ut=Math.min(bt,ft.length-1),Zt=Math.max(0,bt-wt.length+1);Zt<=Ut;Zt++){var Gt=bt-Zt|0;Tt=wt.words[Gt]|0,At=ft.words[Zt]|0,kt=Tt*At+sn,Lt+=kt/67108864|0,sn=kt&67108863}ht.words[bt]=sn|0,It=Lt|0}return It!==0?ht.words[bt]=It|0:ht.length--,ht._strip()}var Pt=function(ft,ht,$t){var Tt=ft.words,At=ht.words,kt=$t.words,Ct=0,It,bt,Lt,sn=Tt[0]|0,Ut=sn&8191,Zt=sn>>>13,Gt=Tt[1]|0,Yt=Gt&8191,cn=Gt>>>13,En=Tt[2]|0,Ht=En&8191,Ot=En>>>13,Kt=Tt[3]|0,Xt=Kt&8191,an=Kt>>>13,_n=Tt[4]|0,yn=_n&8191,dn=_n>>>13,$n=Tt[5]|0,wn=$n&8191,Sn=$n>>>13,qn=Tt[6]|0,Qn=qn&8191,jn=qn>>>13,zn=Tt[7]|0,vn=zn&8191,Rn=zn>>>13,Fn=Tt[8]|0,Dn=Fn&8191,ln=Fn>>>13,Jt=Tt[9]|0,Wt=Jt&8191,mn=Jt>>>13,In=At[0]|0,Cn=In&8191,On=In>>>13,Vn=At[1]|0,Nn=Vn&8191,Un=Vn>>>13,ar=At[2]|0,er=ar&8191,or=ar>>>13,Dr=At[3]|0,_r=Dr&8191,ur=Dr>>>13,Fr=At[4]|0,xr=Fr&8191,yr=Fr>>>13,Hr=At[5]|0,br=Hr&8191,cr=Hr>>>13,Pn=At[6]|0,qt=Pn&8191,rn=Pn>>>13,un=At[7]|0,jt=un&8191,pn=un>>>13,kn=At[8]|0,An=kn&8191,Ln=kn>>>13,Gn=At[9]|0,Jn=Gn&8191,Yn=Gn>>>13;$t.negative=ft.negative^ht.negative,$t.length=19,It=Math.imul(Ut,Cn),bt=Math.imul(Ut,On),bt=bt+Math.imul(Zt,Cn)|0,Lt=Math.imul(Zt,On);var Rr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,It=Math.imul(Yt,Cn),bt=Math.imul(Yt,On),bt=bt+Math.imul(cn,Cn)|0,Lt=Math.imul(cn,On),It=It+Math.imul(Ut,Nn)|0,bt=bt+Math.imul(Ut,Un)|0,bt=bt+Math.imul(Zt,Nn)|0,Lt=Lt+Math.imul(Zt,Un)|0;var dr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(dr>>>26)|0,dr&=67108863,It=Math.imul(Ht,Cn),bt=Math.imul(Ht,On),bt=bt+Math.imul(Ot,Cn)|0,Lt=Math.imul(Ot,On),It=It+Math.imul(Yt,Nn)|0,bt=bt+Math.imul(Yt,Un)|0,bt=bt+Math.imul(cn,Nn)|0,Lt=Lt+Math.imul(cn,Un)|0,It=It+Math.imul(Ut,er)|0,bt=bt+Math.imul(Ut,or)|0,bt=bt+Math.imul(Zt,er)|0,Lt=Lt+Math.imul(Zt,or)|0;var rr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(rr>>>26)|0,rr&=67108863,It=Math.imul(Xt,Cn),bt=Math.imul(Xt,On),bt=bt+Math.imul(an,Cn)|0,Lt=Math.imul(an,On),It=It+Math.imul(Ht,Nn)|0,bt=bt+Math.imul(Ht,Un)|0,bt=bt+Math.imul(Ot,Nn)|0,Lt=Lt+Math.imul(Ot,Un)|0,It=It+Math.imul(Yt,er)|0,bt=bt+Math.imul(Yt,or)|0,bt=bt+Math.imul(cn,er)|0,Lt=Lt+Math.imul(cn,or)|0,It=It+Math.imul(Ut,_r)|0,bt=bt+Math.imul(Ut,ur)|0,bt=bt+Math.imul(Zt,_r)|0,Lt=Lt+Math.imul(Zt,ur)|0;var $r=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+($r>>>26)|0,$r&=67108863,It=Math.imul(yn,Cn),bt=Math.imul(yn,On),bt=bt+Math.imul(dn,Cn)|0,Lt=Math.imul(dn,On),It=It+Math.imul(Xt,Nn)|0,bt=bt+Math.imul(Xt,Un)|0,bt=bt+Math.imul(an,Nn)|0,Lt=Lt+Math.imul(an,Un)|0,It=It+Math.imul(Ht,er)|0,bt=bt+Math.imul(Ht,or)|0,bt=bt+Math.imul(Ot,er)|0,Lt=Lt+Math.imul(Ot,or)|0,It=It+Math.imul(Yt,_r)|0,bt=bt+Math.imul(Yt,ur)|0,bt=bt+Math.imul(cn,_r)|0,Lt=Lt+Math.imul(cn,ur)|0,It=It+Math.imul(Ut,xr)|0,bt=bt+Math.imul(Ut,yr)|0,bt=bt+Math.imul(Zt,xr)|0,Lt=Lt+Math.imul(Zt,yr)|0;var Cr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,It=Math.imul(wn,Cn),bt=Math.imul(wn,On),bt=bt+Math.imul(Sn,Cn)|0,Lt=Math.imul(Sn,On),It=It+Math.imul(yn,Nn)|0,bt=bt+Math.imul(yn,Un)|0,bt=bt+Math.imul(dn,Nn)|0,Lt=Lt+Math.imul(dn,Un)|0,It=It+Math.imul(Xt,er)|0,bt=bt+Math.imul(Xt,or)|0,bt=bt+Math.imul(an,er)|0,Lt=Lt+Math.imul(an,or)|0,It=It+Math.imul(Ht,_r)|0,bt=bt+Math.imul(Ht,ur)|0,bt=bt+Math.imul(Ot,_r)|0,Lt=Lt+Math.imul(Ot,ur)|0,It=It+Math.imul(Yt,xr)|0,bt=bt+Math.imul(Yt,yr)|0,bt=bt+Math.imul(cn,xr)|0,Lt=Lt+Math.imul(cn,yr)|0,It=It+Math.imul(Ut,br)|0,bt=bt+Math.imul(Ut,cr)|0,bt=bt+Math.imul(Zt,br)|0,Lt=Lt+Math.imul(Zt,cr)|0;var Mr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,It=Math.imul(Qn,Cn),bt=Math.imul(Qn,On),bt=bt+Math.imul(jn,Cn)|0,Lt=Math.imul(jn,On),It=It+Math.imul(wn,Nn)|0,bt=bt+Math.imul(wn,Un)|0,bt=bt+Math.imul(Sn,Nn)|0,Lt=Lt+Math.imul(Sn,Un)|0,It=It+Math.imul(yn,er)|0,bt=bt+Math.imul(yn,or)|0,bt=bt+Math.imul(dn,er)|0,Lt=Lt+Math.imul(dn,or)|0,It=It+Math.imul(Xt,_r)|0,bt=bt+Math.imul(Xt,ur)|0,bt=bt+Math.imul(an,_r)|0,Lt=Lt+Math.imul(an,ur)|0,It=It+Math.imul(Ht,xr)|0,bt=bt+Math.imul(Ht,yr)|0,bt=bt+Math.imul(Ot,xr)|0,Lt=Lt+Math.imul(Ot,yr)|0,It=It+Math.imul(Yt,br)|0,bt=bt+Math.imul(Yt,cr)|0,bt=bt+Math.imul(cn,br)|0,Lt=Lt+Math.imul(cn,cr)|0,It=It+Math.imul(Ut,qt)|0,bt=bt+Math.imul(Ut,rn)|0,bt=bt+Math.imul(Zt,qt)|0,Lt=Lt+Math.imul(Zt,rn)|0;var Lr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,It=Math.imul(vn,Cn),bt=Math.imul(vn,On),bt=bt+Math.imul(Rn,Cn)|0,Lt=Math.imul(Rn,On),It=It+Math.imul(Qn,Nn)|0,bt=bt+Math.imul(Qn,Un)|0,bt=bt+Math.imul(jn,Nn)|0,Lt=Lt+Math.imul(jn,Un)|0,It=It+Math.imul(wn,er)|0,bt=bt+Math.imul(wn,or)|0,bt=bt+Math.imul(Sn,er)|0,Lt=Lt+Math.imul(Sn,or)|0,It=It+Math.imul(yn,_r)|0,bt=bt+Math.imul(yn,ur)|0,bt=bt+Math.imul(dn,_r)|0,Lt=Lt+Math.imul(dn,ur)|0,It=It+Math.imul(Xt,xr)|0,bt=bt+Math.imul(Xt,yr)|0,bt=bt+Math.imul(an,xr)|0,Lt=Lt+Math.imul(an,yr)|0,It=It+Math.imul(Ht,br)|0,bt=bt+Math.imul(Ht,cr)|0,bt=bt+Math.imul(Ot,br)|0,Lt=Lt+Math.imul(Ot,cr)|0,It=It+Math.imul(Yt,qt)|0,bt=bt+Math.imul(Yt,rn)|0,bt=bt+Math.imul(cn,qt)|0,Lt=Lt+Math.imul(cn,rn)|0,It=It+Math.imul(Ut,jt)|0,bt=bt+Math.imul(Ut,pn)|0,bt=bt+Math.imul(Zt,jt)|0,Lt=Lt+Math.imul(Zt,pn)|0;var Or=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Or>>>26)|0,Or&=67108863,It=Math.imul(Dn,Cn),bt=Math.imul(Dn,On),bt=bt+Math.imul(ln,Cn)|0,Lt=Math.imul(ln,On),It=It+Math.imul(vn,Nn)|0,bt=bt+Math.imul(vn,Un)|0,bt=bt+Math.imul(Rn,Nn)|0,Lt=Lt+Math.imul(Rn,Un)|0,It=It+Math.imul(Qn,er)|0,bt=bt+Math.imul(Qn,or)|0,bt=bt+Math.imul(jn,er)|0,Lt=Lt+Math.imul(jn,or)|0,It=It+Math.imul(wn,_r)|0,bt=bt+Math.imul(wn,ur)|0,bt=bt+Math.imul(Sn,_r)|0,Lt=Lt+Math.imul(Sn,ur)|0,It=It+Math.imul(yn,xr)|0,bt=bt+Math.imul(yn,yr)|0,bt=bt+Math.imul(dn,xr)|0,Lt=Lt+Math.imul(dn,yr)|0,It=It+Math.imul(Xt,br)|0,bt=bt+Math.imul(Xt,cr)|0,bt=bt+Math.imul(an,br)|0,Lt=Lt+Math.imul(an,cr)|0,It=It+Math.imul(Ht,qt)|0,bt=bt+Math.imul(Ht,rn)|0,bt=bt+Math.imul(Ot,qt)|0,Lt=Lt+Math.imul(Ot,rn)|0,It=It+Math.imul(Yt,jt)|0,bt=bt+Math.imul(Yt,pn)|0,bt=bt+Math.imul(cn,jt)|0,Lt=Lt+Math.imul(cn,pn)|0,It=It+Math.imul(Ut,An)|0,bt=bt+Math.imul(Ut,Ln)|0,bt=bt+Math.imul(Zt,An)|0,Lt=Lt+Math.imul(Zt,Ln)|0;var Br=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Br>>>26)|0,Br&=67108863,It=Math.imul(Wt,Cn),bt=Math.imul(Wt,On),bt=bt+Math.imul(mn,Cn)|0,Lt=Math.imul(mn,On),It=It+Math.imul(Dn,Nn)|0,bt=bt+Math.imul(Dn,Un)|0,bt=bt+Math.imul(ln,Nn)|0,Lt=Lt+Math.imul(ln,Un)|0,It=It+Math.imul(vn,er)|0,bt=bt+Math.imul(vn,or)|0,bt=bt+Math.imul(Rn,er)|0,Lt=Lt+Math.imul(Rn,or)|0,It=It+Math.imul(Qn,_r)|0,bt=bt+Math.imul(Qn,ur)|0,bt=bt+Math.imul(jn,_r)|0,Lt=Lt+Math.imul(jn,ur)|0,It=It+Math.imul(wn,xr)|0,bt=bt+Math.imul(wn,yr)|0,bt=bt+Math.imul(Sn,xr)|0,Lt=Lt+Math.imul(Sn,yr)|0,It=It+Math.imul(yn,br)|0,bt=bt+Math.imul(yn,cr)|0,bt=bt+Math.imul(dn,br)|0,Lt=Lt+Math.imul(dn,cr)|0,It=It+Math.imul(Xt,qt)|0,bt=bt+Math.imul(Xt,rn)|0,bt=bt+Math.imul(an,qt)|0,Lt=Lt+Math.imul(an,rn)|0,It=It+Math.imul(Ht,jt)|0,bt=bt+Math.imul(Ht,pn)|0,bt=bt+Math.imul(Ot,jt)|0,Lt=Lt+Math.imul(Ot,pn)|0,It=It+Math.imul(Yt,An)|0,bt=bt+Math.imul(Yt,Ln)|0,bt=bt+Math.imul(cn,An)|0,Lt=Lt+Math.imul(cn,Ln)|0,It=It+Math.imul(Ut,Jn)|0,bt=bt+Math.imul(Ut,Yn)|0,bt=bt+Math.imul(Zt,Jn)|0,Lt=Lt+Math.imul(Zt,Yn)|0;var Ar=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,It=Math.imul(Wt,Nn),bt=Math.imul(Wt,Un),bt=bt+Math.imul(mn,Nn)|0,Lt=Math.imul(mn,Un),It=It+Math.imul(Dn,er)|0,bt=bt+Math.imul(Dn,or)|0,bt=bt+Math.imul(ln,er)|0,Lt=Lt+Math.imul(ln,or)|0,It=It+Math.imul(vn,_r)|0,bt=bt+Math.imul(vn,ur)|0,bt=bt+Math.imul(Rn,_r)|0,Lt=Lt+Math.imul(Rn,ur)|0,It=It+Math.imul(Qn,xr)|0,bt=bt+Math.imul(Qn,yr)|0,bt=bt+Math.imul(jn,xr)|0,Lt=Lt+Math.imul(jn,yr)|0,It=It+Math.imul(wn,br)|0,bt=bt+Math.imul(wn,cr)|0,bt=bt+Math.imul(Sn,br)|0,Lt=Lt+Math.imul(Sn,cr)|0,It=It+Math.imul(yn,qt)|0,bt=bt+Math.imul(yn,rn)|0,bt=bt+Math.imul(dn,qt)|0,Lt=Lt+Math.imul(dn,rn)|0,It=It+Math.imul(Xt,jt)|0,bt=bt+Math.imul(Xt,pn)|0,bt=bt+Math.imul(an,jt)|0,Lt=Lt+Math.imul(an,pn)|0,It=It+Math.imul(Ht,An)|0,bt=bt+Math.imul(Ht,Ln)|0,bt=bt+Math.imul(Ot,An)|0,Lt=Lt+Math.imul(Ot,Ln)|0,It=It+Math.imul(Yt,Jn)|0,bt=bt+Math.imul(Yt,Yn)|0,bt=bt+Math.imul(cn,Jn)|0,Lt=Lt+Math.imul(cn,Yn)|0;var Ir=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,It=Math.imul(Wt,er),bt=Math.imul(Wt,or),bt=bt+Math.imul(mn,er)|0,Lt=Math.imul(mn,or),It=It+Math.imul(Dn,_r)|0,bt=bt+Math.imul(Dn,ur)|0,bt=bt+Math.imul(ln,_r)|0,Lt=Lt+Math.imul(ln,ur)|0,It=It+Math.imul(vn,xr)|0,bt=bt+Math.imul(vn,yr)|0,bt=bt+Math.imul(Rn,xr)|0,Lt=Lt+Math.imul(Rn,yr)|0,It=It+Math.imul(Qn,br)|0,bt=bt+Math.imul(Qn,cr)|0,bt=bt+Math.imul(jn,br)|0,Lt=Lt+Math.imul(jn,cr)|0,It=It+Math.imul(wn,qt)|0,bt=bt+Math.imul(wn,rn)|0,bt=bt+Math.imul(Sn,qt)|0,Lt=Lt+Math.imul(Sn,rn)|0,It=It+Math.imul(yn,jt)|0,bt=bt+Math.imul(yn,pn)|0,bt=bt+Math.imul(dn,jt)|0,Lt=Lt+Math.imul(dn,pn)|0,It=It+Math.imul(Xt,An)|0,bt=bt+Math.imul(Xt,Ln)|0,bt=bt+Math.imul(an,An)|0,Lt=Lt+Math.imul(an,Ln)|0,It=It+Math.imul(Ht,Jn)|0,bt=bt+Math.imul(Ht,Yn)|0,bt=bt+Math.imul(Ot,Jn)|0,Lt=Lt+Math.imul(Ot,Yn)|0;var Sr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,It=Math.imul(Wt,_r),bt=Math.imul(Wt,ur),bt=bt+Math.imul(mn,_r)|0,Lt=Math.imul(mn,ur),It=It+Math.imul(Dn,xr)|0,bt=bt+Math.imul(Dn,yr)|0,bt=bt+Math.imul(ln,xr)|0,Lt=Lt+Math.imul(ln,yr)|0,It=It+Math.imul(vn,br)|0,bt=bt+Math.imul(vn,cr)|0,bt=bt+Math.imul(Rn,br)|0,Lt=Lt+Math.imul(Rn,cr)|0,It=It+Math.imul(Qn,qt)|0,bt=bt+Math.imul(Qn,rn)|0,bt=bt+Math.imul(jn,qt)|0,Lt=Lt+Math.imul(jn,rn)|0,It=It+Math.imul(wn,jt)|0,bt=bt+Math.imul(wn,pn)|0,bt=bt+Math.imul(Sn,jt)|0,Lt=Lt+Math.imul(Sn,pn)|0,It=It+Math.imul(yn,An)|0,bt=bt+Math.imul(yn,Ln)|0,bt=bt+Math.imul(dn,An)|0,Lt=Lt+Math.imul(dn,Ln)|0,It=It+Math.imul(Xt,Jn)|0,bt=bt+Math.imul(Xt,Yn)|0,bt=bt+Math.imul(an,Jn)|0,Lt=Lt+Math.imul(an,Yn)|0;var wr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(wr>>>26)|0,wr&=67108863,It=Math.imul(Wt,xr),bt=Math.imul(Wt,yr),bt=bt+Math.imul(mn,xr)|0,Lt=Math.imul(mn,yr),It=It+Math.imul(Dn,br)|0,bt=bt+Math.imul(Dn,cr)|0,bt=bt+Math.imul(ln,br)|0,Lt=Lt+Math.imul(ln,cr)|0,It=It+Math.imul(vn,qt)|0,bt=bt+Math.imul(vn,rn)|0,bt=bt+Math.imul(Rn,qt)|0,Lt=Lt+Math.imul(Rn,rn)|0,It=It+Math.imul(Qn,jt)|0,bt=bt+Math.imul(Qn,pn)|0,bt=bt+Math.imul(jn,jt)|0,Lt=Lt+Math.imul(jn,pn)|0,It=It+Math.imul(wn,An)|0,bt=bt+Math.imul(wn,Ln)|0,bt=bt+Math.imul(Sn,An)|0,Lt=Lt+Math.imul(Sn,Ln)|0,It=It+Math.imul(yn,Jn)|0,bt=bt+Math.imul(yn,Yn)|0,bt=bt+Math.imul(dn,Jn)|0,Lt=Lt+Math.imul(dn,Yn)|0;var kr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(kr>>>26)|0,kr&=67108863,It=Math.imul(Wt,br),bt=Math.imul(Wt,cr),bt=bt+Math.imul(mn,br)|0,Lt=Math.imul(mn,cr),It=It+Math.imul(Dn,qt)|0,bt=bt+Math.imul(Dn,rn)|0,bt=bt+Math.imul(ln,qt)|0,Lt=Lt+Math.imul(ln,rn)|0,It=It+Math.imul(vn,jt)|0,bt=bt+Math.imul(vn,pn)|0,bt=bt+Math.imul(Rn,jt)|0,Lt=Lt+Math.imul(Rn,pn)|0,It=It+Math.imul(Qn,An)|0,bt=bt+Math.imul(Qn,Ln)|0,bt=bt+Math.imul(jn,An)|0,Lt=Lt+Math.imul(jn,Ln)|0,It=It+Math.imul(wn,Jn)|0,bt=bt+Math.imul(wn,Yn)|0,bt=bt+Math.imul(Sn,Jn)|0,Lt=Lt+Math.imul(Sn,Yn)|0;var lr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(lr>>>26)|0,lr&=67108863,It=Math.imul(Wt,qt),bt=Math.imul(Wt,rn),bt=bt+Math.imul(mn,qt)|0,Lt=Math.imul(mn,rn),It=It+Math.imul(Dn,jt)|0,bt=bt+Math.imul(Dn,pn)|0,bt=bt+Math.imul(ln,jt)|0,Lt=Lt+Math.imul(ln,pn)|0,It=It+Math.imul(vn,An)|0,bt=bt+Math.imul(vn,Ln)|0,bt=bt+Math.imul(Rn,An)|0,Lt=Lt+Math.imul(Rn,Ln)|0,It=It+Math.imul(Qn,Jn)|0,bt=bt+Math.imul(Qn,Yn)|0,bt=bt+Math.imul(jn,Jn)|0,Lt=Lt+Math.imul(jn,Yn)|0;var Kn=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,It=Math.imul(Wt,jt),bt=Math.imul(Wt,pn),bt=bt+Math.imul(mn,jt)|0,Lt=Math.imul(mn,pn),It=It+Math.imul(Dn,An)|0,bt=bt+Math.imul(Dn,Ln)|0,bt=bt+Math.imul(ln,An)|0,Lt=Lt+Math.imul(ln,Ln)|0,It=It+Math.imul(vn,Jn)|0,bt=bt+Math.imul(vn,Yn)|0,bt=bt+Math.imul(Rn,Jn)|0,Lt=Lt+Math.imul(Rn,Yn)|0;var Zn=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,It=Math.imul(Wt,An),bt=Math.imul(Wt,Ln),bt=bt+Math.imul(mn,An)|0,Lt=Math.imul(mn,Ln),It=It+Math.imul(Dn,Jn)|0,bt=bt+Math.imul(Dn,Yn)|0,bt=bt+Math.imul(ln,Jn)|0,Lt=Lt+Math.imul(ln,Yn)|0;var tr=(Ct+It|0)+((bt&8191)<<13)|0;Ct=(Lt+(bt>>>13)|0)+(tr>>>26)|0,tr&=67108863,It=Math.imul(Wt,Jn),bt=Math.imul(Wt,Yn),bt=bt+Math.imul(mn,Jn)|0,Lt=Math.imul(mn,Yn);var ir=(Ct+It|0)+((bt&8191)<<13)|0;return Ct=(Lt+(bt>>>13)|0)+(ir>>>26)|0,ir&=67108863,kt[0]=Rr,kt[1]=dr,kt[2]=rr,kt[3]=$r,kt[4]=Cr,kt[5]=Mr,kt[6]=Lr,kt[7]=Or,kt[8]=Br,kt[9]=Ar,kt[10]=Ir,kt[11]=Sr,kt[12]=wr,kt[13]=kr,kt[14]=lr,kt[15]=Kn,kt[16]=Zn,kt[17]=tr,kt[18]=ir,Ct!==0&&(kt[19]=Ct,$t.length++),$t};Math.imul||(Pt=xt);function Dt(wt,ft,ht){ht.negative=ft.negative^wt.negative,ht.length=wt.length+ft.length;for(var $t=0,Tt=0,At=0;At<ht.length-1;At++){var kt=Tt;Tt=0;for(var Ct=$t&67108863,It=Math.min(At,ft.length-1),bt=Math.max(0,At-wt.length+1);bt<=It;bt++){var Lt=At-bt,sn=wt.words[Lt]|0,Ut=ft.words[bt]|0,Zt=sn*Ut,Gt=Zt&67108863;kt=kt+(Zt/67108864|0)|0,Gt=Gt+Ct|0,Ct=Gt&67108863,kt=kt+(Gt>>>26)|0,Tt+=kt>>>26,kt&=67108863}ht.words[At]=Ct,$t=kt,kt=Tt}return $t!==0?ht.words[At]=$t:ht.length--,ht._strip()}function Ft(wt,ft,ht){return Dt(wt,ft,ht)}nt.prototype.mulTo=function(ft,ht){var $t,Tt=this.length+ft.length;return this.length===10&&ft.length===10?$t=Pt(this,ft,ht):Tt<63?$t=xt(this,ft,ht):Tt<1024?$t=Dt(this,ft,ht):$t=Ft(this,ft,ht),$t},nt.prototype.mul=function(ft){var ht=new nt(null);return ht.words=new Array(this.length+ft.length),this.mulTo(ft,ht)},nt.prototype.mulf=function(ft){var ht=new nt(null);return ht.words=new Array(this.length+ft.length),Ft(this,ft,ht)},nt.prototype.imul=function(ft){return this.clone().mulTo(ft,this)},nt.prototype.imuln=function(ft){var ht=ft<0;ht&&(ft=-ft),et(typeof ft=="number"),et(ft<67108864);for(var $t=0,Tt=0;Tt<this.length;Tt++){var At=(this.words[Tt]|0)*ft,kt=(At&67108863)+($t&67108863);$t>>=26,$t+=At/67108864|0,$t+=kt>>>26,this.words[Tt]=kt&67108863}return $t!==0&&(this.words[Tt]=$t,this.length++),ht?this.ineg():this},nt.prototype.muln=function(ft){return this.clone().imuln(ft)},nt.prototype.sqr=function(){return this.mul(this)},nt.prototype.isqr=function(){return this.imul(this.clone())},nt.prototype.pow=function(ft){var ht=Rt(ft);if(ht.length===0)return new nt(1);for(var $t=this,Tt=0;Tt<ht.length&&ht[Tt]===0;Tt++,$t=$t.sqr());if(++Tt<ht.length)for(var At=$t.sqr();Tt<ht.length;Tt++,At=At.sqr())ht[Tt]!==0&&($t=$t.mul(At));return $t},nt.prototype.iushln=function(ft){et(typeof ft=="number"&&ft>=0);var ht=ft%26,$t=(ft-ht)/26,Tt=67108863>>>26-ht<<26-ht,At;if(ht!==0){var kt=0;for(At=0;At<this.length;At++){var Ct=this.words[At]&Tt,It=(this.words[At]|0)-Ct<<ht;this.words[At]=It|kt,kt=Ct>>>26-ht}kt&&(this.words[At]=kt,this.length++)}if($t!==0){for(At=this.length-1;At>=0;At--)this.words[At+$t]=this.words[At];for(At=0;At<$t;At++)this.words[At]=0;this.length+=$t}return this._strip()},nt.prototype.ishln=function(ft){return et(this.negative===0),this.iushln(ft)},nt.prototype.iushrn=function(ft,ht,$t){et(typeof ft=="number"&&ft>=0);var Tt;ht?Tt=(ht-ht%26)/26:Tt=0;var At=ft%26,kt=Math.min((ft-At)/26,this.length),Ct=67108863^67108863>>>At<<At,It=$t;if(Tt-=kt,Tt=Math.max(0,Tt),It){for(var bt=0;bt<kt;bt++)It.words[bt]=this.words[bt];It.length=kt}if(kt!==0)if(this.length>kt)for(this.length-=kt,bt=0;bt<this.length;bt++)this.words[bt]=this.words[bt+kt];else this.words[0]=0,this.length=1;var Lt=0;for(bt=this.length-1;bt>=0&&(Lt!==0||bt>=Tt);bt--){var sn=this.words[bt]|0;this.words[bt]=Lt<<26-At|sn>>>At,Lt=sn&Ct}return It&&Lt!==0&&(It.words[It.length++]=Lt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},nt.prototype.ishrn=function(ft,ht,$t){return et(this.negative===0),this.iushrn(ft,ht,$t)},nt.prototype.shln=function(ft){return this.clone().ishln(ft)},nt.prototype.ushln=function(ft){return this.clone().iushln(ft)},nt.prototype.shrn=function(ft){return this.clone().ishrn(ft)},nt.prototype.ushrn=function(ft){return this.clone().iushrn(ft)},nt.prototype.testn=function(ft){et(typeof ft=="number"&&ft>=0);var ht=ft%26,$t=(ft-ht)/26,Tt=1<<ht;if(this.length<=$t)return!1;var At=this.words[$t];return!!(At&Tt)},nt.prototype.imaskn=function(ft){et(typeof ft=="number"&&ft>=0);var ht=ft%26,$t=(ft-ht)/26;if(et(this.negative===0,"imaskn works only with positive numbers"),this.length<=$t)return this;if(ht!==0&&$t++,this.length=Math.min($t,this.length),ht!==0){var Tt=67108863^67108863>>>ht<<ht;this.words[this.length-1]&=Tt}return this._strip()},nt.prototype.maskn=function(ft){return this.clone().imaskn(ft)},nt.prototype.iaddn=function(ft){return et(typeof ft=="number"),et(ft<67108864),ft<0?this.isubn(-ft):this.negative!==0?this.length===1&&(this.words[0]|0)<=ft?(this.words[0]=ft-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(ft),this.negative=1,this):this._iaddn(ft)},nt.prototype._iaddn=function(ft){this.words[0]+=ft;for(var ht=0;ht<this.length&&this.words[ht]>=67108864;ht++)this.words[ht]-=67108864,ht===this.length-1?this.words[ht+1]=1:this.words[ht+1]++;return this.length=Math.max(this.length,ht+1),this},nt.prototype.isubn=function(ft){if(et(typeof ft=="number"),et(ft<67108864),ft<0)return this.iaddn(-ft);if(this.negative!==0)return this.negative=0,this.iaddn(ft),this.negative=1,this;if(this.words[0]-=ft,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var ht=0;ht<this.length&&this.words[ht]<0;ht++)this.words[ht]+=67108864,this.words[ht+1]-=1;return this._strip()},nt.prototype.addn=function(ft){return this.clone().iaddn(ft)},nt.prototype.subn=function(ft){return this.clone().isubn(ft)},nt.prototype.iabs=function(){return this.negative=0,this},nt.prototype.abs=function(){return this.clone().iabs()},nt.prototype._ishlnsubmul=function(ft,ht,$t){var Tt=ft.length+$t,At;this._expand(Tt);var kt,Ct=0;for(At=0;At<ft.length;At++){kt=(this.words[At+$t]|0)+Ct;var It=(ft.words[At]|0)*ht;kt-=It&67108863,Ct=(kt>>26)-(It/67108864|0),this.words[At+$t]=kt&67108863}for(;At<this.length-$t;At++)kt=(this.words[At+$t]|0)+Ct,Ct=kt>>26,this.words[At+$t]=kt&67108863;if(Ct===0)return this._strip();for(et(Ct===-1),Ct=0,At=0;At<this.length;At++)kt=-(this.words[At]|0)+Ct,Ct=kt>>26,this.words[At]=kt&67108863;return this.negative=1,this._strip()},nt.prototype._wordDiv=function(ft,ht){var $t=this.length-ft.length,Tt=this.clone(),At=ft,kt=At.words[At.length-1]|0,Ct=this._countBits(kt);$t=26-Ct,$t!==0&&(At=At.ushln($t),Tt.iushln($t),kt=At.words[At.length-1]|0);var It=Tt.length-At.length,bt;if(ht!=="mod"){bt=new nt(null),bt.length=It+1,bt.words=new Array(bt.length);for(var Lt=0;Lt<bt.length;Lt++)bt.words[Lt]=0}var sn=Tt.clone()._ishlnsubmul(At,1,It);sn.negative===0&&(Tt=sn,bt&&(bt.words[It]=1));for(var Ut=It-1;Ut>=0;Ut--){var Zt=(Tt.words[At.length+Ut]|0)*67108864+(Tt.words[At.length+Ut-1]|0);for(Zt=Math.min(Zt/kt|0,67108863),Tt._ishlnsubmul(At,Zt,Ut);Tt.negative!==0;)Zt--,Tt.negative=0,Tt._ishlnsubmul(At,1,Ut),Tt.isZero()||(Tt.negative^=1);bt&&(bt.words[Ut]=Zt)}return bt&&bt._strip(),Tt._strip(),ht!=="div"&&$t!==0&&Tt.iushrn($t),{div:bt||null,mod:Tt}},nt.prototype.divmod=function(ft,ht,$t){if(et(!ft.isZero()),this.isZero())return{div:new nt(0),mod:new nt(0)};var Tt,At,kt;return this.negative!==0&&ft.negative===0?(kt=this.neg().divmod(ft,ht),ht!=="mod"&&(Tt=kt.div.neg()),ht!=="div"&&(At=kt.mod.neg(),$t&&At.negative!==0&&At.iadd(ft)),{div:Tt,mod:At}):this.negative===0&&ft.negative!==0?(kt=this.divmod(ft.neg(),ht),ht!=="mod"&&(Tt=kt.div.neg()),{div:Tt,mod:kt.mod}):this.negative&ft.negative?(kt=this.neg().divmod(ft.neg(),ht),ht!=="div"&&(At=kt.mod.neg(),$t&&At.negative!==0&&At.isub(ft)),{div:kt.div,mod:At}):ft.length>this.length||this.cmp(ft)<0?{div:new nt(0),mod:this}:ft.length===1?ht==="div"?{div:this.divn(ft.words[0]),mod:null}:ht==="mod"?{div:null,mod:new nt(this.modrn(ft.words[0]))}:{div:this.divn(ft.words[0]),mod:new nt(this.modrn(ft.words[0]))}:this._wordDiv(ft,ht)},nt.prototype.div=function(ft){return this.divmod(ft,"div",!1).div},nt.prototype.mod=function(ft){return this.divmod(ft,"mod",!1).mod},nt.prototype.umod=function(ft){return this.divmod(ft,"mod",!0).mod},nt.prototype.divRound=function(ft){var ht=this.divmod(ft);if(ht.mod.isZero())return ht.div;var $t=ht.div.negative!==0?ht.mod.isub(ft):ht.mod,Tt=ft.ushrn(1),At=ft.andln(1),kt=$t.cmp(Tt);return kt<0||At===1&&kt===0?ht.div:ht.div.negative!==0?ht.div.isubn(1):ht.div.iaddn(1)},nt.prototype.modrn=function(ft){var ht=ft<0;ht&&(ft=-ft),et(ft<=67108863);for(var $t=(1<<26)%ft,Tt=0,At=this.length-1;At>=0;At--)Tt=($t*Tt+(this.words[At]|0))%ft;return ht?-Tt:Tt},nt.prototype.modn=function(ft){return this.modrn(ft)},nt.prototype.idivn=function(ft){var ht=ft<0;ht&&(ft=-ft),et(ft<=67108863);for(var $t=0,Tt=this.length-1;Tt>=0;Tt--){var At=(this.words[Tt]|0)+$t*67108864;this.words[Tt]=At/ft|0,$t=At%ft}return this._strip(),ht?this.ineg():this},nt.prototype.divn=function(ft){return this.clone().idivn(ft)},nt.prototype.egcd=function(ft){et(ft.negative===0),et(!ft.isZero());var ht=this,$t=ft.clone();ht.negative!==0?ht=ht.umod(ft):ht=ht.clone();for(var Tt=new nt(1),At=new nt(0),kt=new nt(0),Ct=new nt(1),It=0;ht.isEven()&&$t.isEven();)ht.iushrn(1),$t.iushrn(1),++It;for(var bt=$t.clone(),Lt=ht.clone();!ht.isZero();){for(var sn=0,Ut=1;!(ht.words[0]&Ut)&&sn<26;++sn,Ut<<=1);if(sn>0)for(ht.iushrn(sn);sn-- >0;)(Tt.isOdd()||At.isOdd())&&(Tt.iadd(bt),At.isub(Lt)),Tt.iushrn(1),At.iushrn(1);for(var Zt=0,Gt=1;!($t.words[0]&Gt)&&Zt<26;++Zt,Gt<<=1);if(Zt>0)for($t.iushrn(Zt);Zt-- >0;)(kt.isOdd()||Ct.isOdd())&&(kt.iadd(bt),Ct.isub(Lt)),kt.iushrn(1),Ct.iushrn(1);ht.cmp($t)>=0?(ht.isub($t),Tt.isub(kt),At.isub(Ct)):($t.isub(ht),kt.isub(Tt),Ct.isub(At))}return{a:kt,b:Ct,gcd:$t.iushln(It)}},nt.prototype._invmp=function(ft){et(ft.negative===0),et(!ft.isZero());var ht=this,$t=ft.clone();ht.negative!==0?ht=ht.umod(ft):ht=ht.clone();for(var Tt=new nt(1),At=new nt(0),kt=$t.clone();ht.cmpn(1)>0&&$t.cmpn(1)>0;){for(var Ct=0,It=1;!(ht.words[0]&It)&&Ct<26;++Ct,It<<=1);if(Ct>0)for(ht.iushrn(Ct);Ct-- >0;)Tt.isOdd()&&Tt.iadd(kt),Tt.iushrn(1);for(var bt=0,Lt=1;!($t.words[0]&Lt)&&bt<26;++bt,Lt<<=1);if(bt>0)for($t.iushrn(bt);bt-- >0;)At.isOdd()&&At.iadd(kt),At.iushrn(1);ht.cmp($t)>=0?(ht.isub($t),Tt.isub(At)):($t.isub(ht),At.isub(Tt))}var sn;return ht.cmpn(1)===0?sn=Tt:sn=At,sn.cmpn(0)<0&&sn.iadd(ft),sn},nt.prototype.gcd=function(ft){if(this.isZero())return ft.abs();if(ft.isZero())return this.abs();var ht=this.clone(),$t=ft.clone();ht.negative=0,$t.negative=0;for(var Tt=0;ht.isEven()&&$t.isEven();Tt++)ht.iushrn(1),$t.iushrn(1);do{for(;ht.isEven();)ht.iushrn(1);for(;$t.isEven();)$t.iushrn(1);var At=ht.cmp($t);if(At<0){var kt=ht;ht=$t,$t=kt}else if(At===0||$t.cmpn(1)===0)break;ht.isub($t)}while(!0);return $t.iushln(Tt)},nt.prototype.invm=function(ft){return this.egcd(ft).a.umod(ft)},nt.prototype.isEven=function(){return(this.words[0]&1)===0},nt.prototype.isOdd=function(){return(this.words[0]&1)===1},nt.prototype.andln=function(ft){return this.words[0]&ft},nt.prototype.bincn=function(ft){et(typeof ft=="number");var ht=ft%26,$t=(ft-ht)/26,Tt=1<<ht;if(this.length<=$t)return this._expand($t+1),this.words[$t]|=Tt,this;for(var At=Tt,kt=$t;At!==0&&kt<this.length;kt++){var Ct=this.words[kt]|0;Ct+=At,At=Ct>>>26,Ct&=67108863,this.words[kt]=Ct}return At!==0&&(this.words[kt]=At,this.length++),this},nt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},nt.prototype.cmpn=function(ft){var ht=ft<0;if(this.negative!==0&&!ht)return-1;if(this.negative===0&&ht)return 1;this._strip();var $t;if(this.length>1)$t=1;else{ht&&(ft=-ft),et(ft<=67108863,"Number is too big");var Tt=this.words[0]|0;$t=Tt===ft?0:Tt<ft?-1:1}return this.negative!==0?-$t|0:$t},nt.prototype.cmp=function(ft){if(this.negative!==0&&ft.negative===0)return-1;if(this.negative===0&&ft.negative!==0)return 1;var ht=this.ucmp(ft);return this.negative!==0?-ht|0:ht},nt.prototype.ucmp=function(ft){if(this.length>ft.length)return 1;if(this.length<ft.length)return-1;for(var ht=0,$t=this.length-1;$t>=0;$t--){var Tt=this.words[$t]|0,At=ft.words[$t]|0;if(Tt!==At){Tt<At?ht=-1:Tt>At&&(ht=1);break}}return ht},nt.prototype.gtn=function(ft){return this.cmpn(ft)===1},nt.prototype.gt=function(ft){return this.cmp(ft)===1},nt.prototype.gten=function(ft){return this.cmpn(ft)>=0},nt.prototype.gte=function(ft){return this.cmp(ft)>=0},nt.prototype.ltn=function(ft){return this.cmpn(ft)===-1},nt.prototype.lt=function(ft){return this.cmp(ft)===-1},nt.prototype.lten=function(ft){return this.cmpn(ft)<=0},nt.prototype.lte=function(ft){return this.cmp(ft)<=0},nt.prototype.eqn=function(ft){return this.cmpn(ft)===0},nt.prototype.eq=function(ft){return this.cmp(ft)===0},nt.red=function(ft){return new Qt(ft)},nt.prototype.toRed=function(ft){return et(!this.red,"Already a number in reduction context"),et(this.negative===0,"red works only with positives"),ft.convertTo(this)._forceRed(ft)},nt.prototype.fromRed=function(){return et(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},nt.prototype._forceRed=function(ft){return this.red=ft,this},nt.prototype.forceRed=function(ft){return et(!this.red,"Already a number in reduction context"),this._forceRed(ft)},nt.prototype.redAdd=function(ft){return et(this.red,"redAdd works only with red numbers"),this.red.add(this,ft)},nt.prototype.redIAdd=function(ft){return et(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ft)},nt.prototype.redSub=function(ft){return et(this.red,"redSub works only with red numbers"),this.red.sub(this,ft)},nt.prototype.redISub=function(ft){return et(this.red,"redISub works only with red numbers"),this.red.isub(this,ft)},nt.prototype.redShl=function(ft){return et(this.red,"redShl works only with red numbers"),this.red.shl(this,ft)},nt.prototype.redMul=function(ft){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,ft),this.red.mul(this,ft)},nt.prototype.redIMul=function(ft){return et(this.red,"redMul works only with red numbers"),this.red._verify2(this,ft),this.red.imul(this,ft)},nt.prototype.redSqr=function(){return et(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},nt.prototype.redISqr=function(){return et(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},nt.prototype.redSqrt=function(){return et(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},nt.prototype.redInvm=function(){return et(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},nt.prototype.redNeg=function(){return et(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},nt.prototype.redPow=function(ft){return et(this.red&&!ft.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ft)};var zt={k256:null,p224:null,p192:null,p25519:null};function Nt(wt,ft){this.name=wt,this.p=new nt(ft,16),this.n=this.p.bitLength(),this.k=new nt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Nt.prototype._tmp=function(){var ft=new nt(null);return ft.words=new Array(Math.ceil(this.n/13)),ft},Nt.prototype.ireduce=function(ft){var ht=ft,$t;do this.split(ht,this.tmp),ht=this.imulK(ht),ht=ht.iadd(this.tmp),$t=ht.bitLength();while($t>this.n);var Tt=$t<this.n?-1:ht.ucmp(this.p);return Tt===0?(ht.words[0]=0,ht.length=1):Tt>0?ht.isub(this.p):ht.strip!==void 0?ht.strip():ht._strip(),ht},Nt.prototype.split=function(ft,ht){ft.iushrn(this.n,0,ht)},Nt.prototype.imulK=function(ft){return ft.imul(this.k)};function Vt(){Nt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}tt(Vt,Nt),Vt.prototype.split=function(ft,ht){for(var $t=4194303,Tt=Math.min(ft.length,9),At=0;At<Tt;At++)ht.words[At]=ft.words[At];if(ht.length=Tt,ft.length<=9){ft.words[0]=0,ft.length=1;return}var kt=ft.words[9];for(ht.words[ht.length++]=kt&$t,At=10;At<ft.length;At++){var Ct=ft.words[At]|0;ft.words[At-10]=(Ct&$t)<<4|kt>>>22,kt=Ct}kt>>>=22,ft.words[At-10]=kt,kt===0&&ft.length>10?ft.length-=10:ft.length-=9},Vt.prototype.imulK=function(ft){ft.words[ft.length]=0,ft.words[ft.length+1]=0,ft.length+=2;for(var ht=0,$t=0;$t<ft.length;$t++){var Tt=ft.words[$t]|0;ht+=Tt*977,ft.words[$t]=ht&67108863,ht=Tt*64+(ht/67108864|0)}return ft.words[ft.length-1]===0&&(ft.length--,ft.words[ft.length-1]===0&&ft.length--),ft};function nn(){Nt.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}tt(nn,Nt);function fn(){Nt.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}tt(fn,Nt);function hn(){Nt.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}tt(hn,Nt),hn.prototype.imulK=function(ft){for(var ht=0,$t=0;$t<ft.length;$t++){var Tt=(ft.words[$t]|0)*19+ht,At=Tt&67108863;Tt>>>=26,ft.words[$t]=At,ht=Tt}return ht!==0&&(ft.words[ft.length++]=ht),ft},nt._prime=function(ft){if(zt[ft])return zt[ft];var ht;if(ft==="k256")ht=new Vt;else if(ft==="p224")ht=new nn;else if(ft==="p192")ht=new fn;else if(ft==="p25519")ht=new hn;else throw new Error("Unknown prime "+ft);return zt[ft]=ht,ht};function Qt(wt){if(typeof wt=="string"){var ft=nt._prime(wt);this.m=ft.p,this.prime=ft}else et(wt.gtn(1),"modulus must be greater than 1"),this.m=wt,this.prime=null}Qt.prototype._verify1=function(ft){et(ft.negative===0,"red works only with positives"),et(ft.red,"red works only with red numbers")},Qt.prototype._verify2=function(ft,ht){et((ft.negative|ht.negative)===0,"red works only with positives"),et(ft.red&&ft.red===ht.red,"red works only with red numbers")},Qt.prototype.imod=function(ft){return this.prime?this.prime.ireduce(ft)._forceRed(this):(ut(ft,ft.umod(this.m)._forceRed(this)),ft)},Qt.prototype.neg=function(ft){return ft.isZero()?ft.clone():this.m.sub(ft)._forceRed(this)},Qt.prototype.add=function(ft,ht){this._verify2(ft,ht);var $t=ft.add(ht);return $t.cmp(this.m)>=0&&$t.isub(this.m),$t._forceRed(this)},Qt.prototype.iadd=function(ft,ht){this._verify2(ft,ht);var $t=ft.iadd(ht);return $t.cmp(this.m)>=0&&$t.isub(this.m),$t},Qt.prototype.sub=function(ft,ht){this._verify2(ft,ht);var $t=ft.sub(ht);return $t.cmpn(0)<0&&$t.iadd(this.m),$t._forceRed(this)},Qt.prototype.isub=function(ft,ht){this._verify2(ft,ht);var $t=ft.isub(ht);return $t.cmpn(0)<0&&$t.iadd(this.m),$t},Qt.prototype.shl=function(ft,ht){return this._verify1(ft),this.imod(ft.ushln(ht))},Qt.prototype.imul=function(ft,ht){return this._verify2(ft,ht),this.imod(ft.imul(ht))},Qt.prototype.mul=function(ft,ht){return this._verify2(ft,ht),this.imod(ft.mul(ht))},Qt.prototype.isqr=function(ft){return this.imul(ft,ft.clone())},Qt.prototype.sqr=function(ft){return this.mul(ft,ft)},Qt.prototype.sqrt=function(ft){if(ft.isZero())return ft.clone();var ht=this.m.andln(3);if(et(ht%2===1),ht===3){var $t=this.m.add(new nt(1)).iushrn(2);return this.pow(ft,$t)}for(var Tt=this.m.subn(1),At=0;!Tt.isZero()&&Tt.andln(1)===0;)At++,Tt.iushrn(1);et(!Tt.isZero());var kt=new nt(1).toRed(this),Ct=kt.redNeg(),It=this.m.subn(1).iushrn(1),bt=this.m.bitLength();for(bt=new nt(2*bt*bt).toRed(this);this.pow(bt,It).cmp(Ct)!==0;)bt.redIAdd(Ct);for(var Lt=this.pow(bt,Tt),sn=this.pow(ft,Tt.addn(1).iushrn(1)),Ut=this.pow(ft,Tt),Zt=At;Ut.cmp(kt)!==0;){for(var Gt=Ut,Yt=0;Gt.cmp(kt)!==0;Yt++)Gt=Gt.redSqr();et(Yt<Zt);var cn=this.pow(Lt,new nt(1).iushln(Zt-Yt-1));sn=sn.redMul(cn),Lt=cn.redSqr(),Ut=Ut.redMul(Lt),Zt=Yt}return sn},Qt.prototype.invm=function(ft){var ht=ft._invmp(this.m);return ht.negative!==0?(ht.negative=0,this.imod(ht).redNeg()):this.imod(ht)},Qt.prototype.pow=function(ft,ht){if(ht.isZero())return new nt(1).toRed(this);if(ht.cmpn(1)===0)return ft.clone();var $t=4,Tt=new Array(1<<$t);Tt[0]=new nt(1).toRed(this),Tt[1]=ft;for(var At=2;At<Tt.length;At++)Tt[At]=this.mul(Tt[At-1],ft);var kt=Tt[0],Ct=0,It=0,bt=ht.bitLength()%26;for(bt===0&&(bt=26),At=ht.length-1;At>=0;At--){for(var Lt=ht.words[At],sn=bt-1;sn>=0;sn--){var Ut=Lt>>sn&1;if(kt!==Tt[0]&&(kt=this.sqr(kt)),Ut===0&&Ct===0){It=0;continue}Ct<<=1,Ct|=Ut,It++,!(It!==$t&&(At!==0||sn!==0))&&(kt=this.mul(kt,Tt[Ct]),It=0,Ct=0)}bt=26}return kt},Qt.prototype.convertTo=function(ft){var ht=ft.umod(this.m);return ht===ft?ht.clone():ht},Qt.prototype.convertFrom=function(ft){var ht=ft.clone();return ht.red=null,ht},nt.mont=function(ft){return new Mt(ft)};function Mt(wt){Qt.call(this,wt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new nt(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}tt(Mt,Qt),Mt.prototype.convertTo=function(ft){return this.imod(ft.ushln(this.shift))},Mt.prototype.convertFrom=function(ft){var ht=this.imod(ft.mul(this.rinv));return ht.red=null,ht},Mt.prototype.imul=function(ft,ht){if(ft.isZero()||ht.isZero())return ft.words[0]=0,ft.length=1,ft;var $t=ft.imul(ht),Tt=$t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=$t.isub(Tt).iushrn(this.shift),kt=At;return At.cmp(this.m)>=0?kt=At.isub(this.m):At.cmpn(0)<0&&(kt=At.iadd(this.m)),kt._forceRed(this)},Mt.prototype.mul=function(ft,ht){if(ft.isZero()||ht.isZero())return new nt(0)._forceRed(this);var $t=ft.mul(ht),Tt=$t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=$t.isub(Tt).iushrn(this.shift),kt=At;return At.cmp(this.m)>=0?kt=At.isub(this.m):At.cmpn(0)<0&&(kt=At.iadd(this.m)),kt._forceRed(this)},Mt.prototype.invm=function(ft){var ht=this.imod(ft._invmp(this.m).mul(this.r2));return ht._forceRed(this)}})(a,commonjsGlobal)})(bn);var bnExports=bn.exports,utf8={};/*! https://mths.be/utf8js v3.0.0 by @mathias */(function(a){(function(j){var _e=String.fromCharCode;function et(Et){for(var Rt=[],xt=0,Pt=Et.length,Dt,Ft;xt<Pt;)Dt=Et.charCodeAt(xt++),Dt>=55296&&Dt<=56319&&xt<Pt?(Ft=Et.charCodeAt(xt++),(Ft&64512)==56320?Rt.push(((Dt&1023)<<10)+(Ft&1023)+65536):(Rt.push(Dt),xt--)):Rt.push(Dt);return Rt}function tt(Et){for(var Rt=Et.length,xt=-1,Pt,Dt="";++xt<Rt;)Pt=Et[xt],Pt>65535&&(Pt-=65536,Dt+=_e(Pt>>>10&1023|55296),Pt=56320|Pt&1023),Dt+=_e(Pt);return Dt}function nt(Et){if(Et>=55296&&Et<=57343)throw Error("Lone surrogate U+"+Et.toString(16).toUpperCase()+" is not a scalar value")}function rt(Et,Rt){return _e(Et>>Rt&63|128)}function it(Et){if(!(Et&4294967168))return _e(Et);var Rt="";return Et&4294965248?Et&4294901760?Et&4292870144||(Rt=_e(Et>>18&7|240),Rt+=rt(Et,12),Rt+=rt(Et,6)):(nt(Et),Rt=_e(Et>>12&15|224),Rt+=rt(Et,6)):Rt=_e(Et>>6&31|192),Rt+=_e(Et&63|128),Rt}function ot(Et){for(var Rt=et(Et),xt=Rt.length,Pt=-1,Dt,Ft="";++Pt<xt;)Dt=Rt[Pt],Ft+=it(Dt);return Ft}function ct(){if(mt>=pt)throw Error("Invalid byte index");var Et=dt[mt]&255;if(mt++,(Et&192)==128)return Et&63;throw Error("Invalid continuation byte")}function ut(){var Et,Rt,xt,Pt,Dt;if(mt>pt)throw Error("Invalid byte index");if(mt==pt)return!1;if(Et=dt[mt]&255,mt++,!(Et&128))return Et;if((Et&224)==192){if(Rt=ct(),Dt=(Et&31)<<6|Rt,Dt>=128)return Dt;throw Error("Invalid continuation byte")}if((Et&240)==224){if(Rt=ct(),xt=ct(),Dt=(Et&15)<<12|Rt<<6|xt,Dt>=2048)return nt(Dt),Dt;throw Error("Invalid continuation byte")}if((Et&248)==240&&(Rt=ct(),xt=ct(),Pt=ct(),Dt=(Et&7)<<18|Rt<<12|xt<<6|Pt,Dt>=65536&&Dt<=1114111))return Dt;throw Error("Invalid UTF-8 detected")}var dt,pt,mt;function vt(Et){dt=et(Et),pt=dt.length,mt=0;for(var Rt=[],xt;(xt=ut())!==!1;)Rt.push(xt);return tt(Rt)}j.version="3.0.0",j.encode=ot,j.decode=vt})(a)})(utf8);(function(a){var j=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(dn,$n,wn,Sn){Sn===void 0&&(Sn=wn);var qn=Object.getOwnPropertyDescriptor($n,wn);(!qn||("get"in qn?!$n.__esModule:qn.writable||qn.configurable))&&(qn={enumerable:!0,get:function(){return $n[wn]}}),Object.defineProperty(dn,Sn,qn)}:function(dn,$n,wn,Sn){Sn===void 0&&(Sn=wn),dn[Sn]=$n[wn]}),_e=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(dn,$n){Object.defineProperty(dn,"default",{enumerable:!0,value:$n})}:function(dn,$n){dn.default=$n}),et=commonjsGlobal&&commonjsGlobal.__importStar||function(dn){if(dn&&dn.__esModule)return dn;var $n={};if(dn!=null)for(var wn in dn)wn!=="default"&&Object.prototype.hasOwnProperty.call(dn,wn)&&j($n,dn,wn);return _e($n,dn),$n},tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(dn){return dn&&dn.__esModule?dn:{default:dn}};Object.defineProperty(a,"__esModule",{value:!0}),a.formatTxType=a.isSameDid=a.toDid=a.toAddress=a.fromBase64=a.toBase64=a.fromBase58=a.toBase58=a.toBuffer=a.toUint8Array=a.isUUID=a.UUID=a.isUint8Array=a.fromTokenToUnit=a.fromUnitToToken=a.numberToString=a.toHex=a.hexToBytes=a.bytesToHex=a.numberToHex=a.hexToNumber=a.hexToUtf8=a.utf8ToHex=a.toBN=a.isHex=a.isHexStrict=a.isBigNumber=a.isBN=a.stripHexPrefix=a.isHexPrefixed=a.numberToBN=a.rightPad=a.leftPad=a.BN=a.isBase58btc=void 0;const nt=tt(isBoolean_1),rt=tt(isString_1),it=tt(isNumber_1),ot=tt(isObject_1),ct=tt(upperFirst_1$1),ut=tt(camelCase_1),dt=tt(isNull_1),pt=tt(padEnd_1);a.rightPad=pt.default;const mt=tt(padStart_1$1);a.leftPad=mt.default;const vt=tt(bs58),Et=tt(base64Url),Rt=tt(bnExports);a.BN=Rt.default;const xt=et(utf8),Pt="did:abt:",Dt=new Rt.default(0),Ft=new Rt.default(-1),zt={encode:dn=>`z${vt.default.encode(dn)}`,decode:dn=>vt.default.decode(dn.slice(1))},Nt=dn=>{if(typeof dn!="string")return!1;if(dn[0]==="z")try{return zt.decode(dn),!0}catch{return!1}return!1};a.isBase58btc=Nt;const Vt=dn=>{if(typeof dn=="string"||typeof dn=="number"){let $n=new Rt.default(1);const wn=String(dn).toLowerCase().trim(),Sn=wn.substr(0,2)==="0x"||wn.substr(0,3)==="-0x";let qn=(0,a.stripHexPrefix)(wn);if(qn.substr(0,1)==="-"&&(qn=(0,a.stripHexPrefix)(qn.slice(1)),$n=new Rt.default(-1,10)),qn=qn===""?"0":qn,!qn.match(/^-?[0-9]+$/)&&qn.match(/^[0-9A-Fa-f]+$/)||qn.match(/^[a-fA-F]+$/)||Sn===!0&&qn.match(/^[0-9A-Fa-f]+$/))return new Rt.default(qn,16).mul($n);if((qn.match(/^-?[0-9]+$/)||qn==="")&&Sn===!1)return new Rt.default(qn,10).mul($n)}if((0,a.isBN)(dn))return new Rt.default(dn.toString(10),10);throw new Error(`[number-to-bn] while converting number ${JSON.stringify(dn)} to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.`)};a.numberToBN=Vt;const nn=dn=>{if(typeof dn!="string")throw new Error("[is-hex-prefixed] value must be type string");return dn.slice(0,2).toLowerCase()==="0x"};a.isHexPrefixed=nn;const fn=dn=>typeof dn=="string"&&(0,a.isHexPrefixed)(dn)?dn.slice(2):dn;a.stripHexPrefix=fn;const hn=dn=>dn instanceof Rt.default||dn&&dn.constructor&&dn.constructor.name==="BN";a.isBN=hn;const Qt=dn=>dn&&dn.constructor&&dn.constructor.name==="BigNumber";a.isBigNumber=Qt;const Mt=dn=>((0,rt.default)(dn)||(0,it.default)(dn))&&/^(-)?0x[0-9a-f]*$/i.test(dn);a.isHexStrict=Mt;const wt=dn=>((0,rt.default)(dn)||(0,it.default)(dn))&&/^(-0x|0x|0X|-0X)?[0-9a-f]*$/i.test(dn);a.isHex=wt;const ft=(dn,$n=10)=>{try{if(typeof dn=="number"&&dn>0){const wn=Number(dn).toLocaleString("fullwide",{useGrouping:!1});return new Rt.default(wn,$n)}return(0,a.numberToBN)(dn)}catch(wn){throw new Error(`${wn} Given value: "${dn}"`)}};a.toBN=ft;const ht=dn=>{dn=xt.encode(dn);let $n="";dn=dn.replace(/^(?:\u0000)*/,""),dn=dn.split("").reverse().join(""),dn=dn.replace(/^(?:\u0000)*/,""),dn=dn.split("").reverse().join("");for(let wn=0;wn<dn.length;wn++){const qn=dn.charCodeAt(wn).toString(16);$n+=qn.length<2?`0${qn}`:qn}return`0x${$n}`};a.utf8ToHex=ht;const $t=dn=>{if(!(0,a.isHexStrict)(dn))throw new Error(`The parameter "${dn}" must be a valid HEX string.`);let $n="",wn=0;dn=dn.replace(/^0x/i,""),dn=dn.replace(/^(?:00)*/,""),dn=dn.split("").reverse().join(""),dn=dn.replace(/^(?:00)*/,""),dn=dn.split("").reverse().join("");const Sn=dn.length;for(let qn=0;qn<Sn;qn+=2)wn=parseInt(dn.substr(qn,2),16),$n+=String.fromCharCode(wn);return xt.decode($n)};a.hexToUtf8=$t;const Tt=dn=>dn?(0,a.toBN)(dn).toNumber():0;a.hexToNumber=Tt;const At=dn=>{if((0,dt.default)(dn)||typeof dn>"u")return dn;if(!isFinite(dn)&&!(0,a.isHex)(dn))throw new Error(`Given input "${dn}" is not a number.`);const $n=(0,a.toBN)(dn),wn=$n.toString(16);return $n.lt(new Rt.default(0))?`-0x${wn.substr(1)}`:`0x${wn}`};a.numberToHex=At;const kt=dn=>{const $n=[];for(let wn=0;wn<dn.length;wn++)$n.push((dn[wn]>>>4).toString(16)),$n.push((dn[wn]&15).toString(16));return`0x${$n.join("")}`};a.bytesToHex=kt;const Ct=dn=>{if(dn=dn.toString(16),!(0,a.isHex)(dn))throw new Error(`Given value "${dn}" is not a valid hex string.`);dn=dn.replace(/^0x/i,""),dn=dn.length%2?`0${dn}`:dn;const $n=[];for(let wn=0;wn<dn.length;wn+=2)$n.push(parseInt(dn.substr(wn,2),16));return $n};a.hexToBytes=Ct;const It=(dn,$n=!1)=>Ut(dn)||Buffer$3.isBuffer(dn)?$n?"bytes":(0,a.bytesToHex)(dn):(0,a.isBase58btc)(dn)?$n?"bytes":(0,a.bytesToHex)(zt.decode(dn)):(0,nt.default)(dn)?$n?"bool":dn?"0x01":"0x00":(0,ot.default)(dn)&&!(0,a.isBigNumber)(dn)&&!(0,a.isBN)(dn)?$n?"string":(0,a.utf8ToHex)(JSON.stringify(dn)):typeof dn=="string"?dn.indexOf("-0x")===0||dn.indexOf("-0X")===0?$n?"int256":(0,a.numberToHex)(dn):dn.indexOf("0x")===0||dn.indexOf("0X")===0?$n?"bytes":dn:$n?"string":(0,a.utf8ToHex)(dn):$n?dn<0?"int256":"uint256":(0,a.numberToHex)(dn);a.toHex=It;const bt=dn=>{if(typeof dn=="string"){if(!dn.match(/^-?[0-9.]+$/))throw new Error(`Invalid value '${dn}' while converting to string, should be a number matching (^-?[0-9.]+).`);return dn}if(typeof dn=="number")return Number.isInteger(dn)&&dn>0?Number(dn).toLocaleString("fullwide",{useGrouping:!1}):String(dn);if(typeof dn=="object"&&dn.toString&&(dn.toTwos||dn.dividedToIntegerBy))return dn.toPrecision?String(dn.toPrecision()):dn.toString(10);throw new Error(`while converting number to string, invalid number value '${dn}' type ${typeof dn}.`)};a.numberToString=bt;const Lt=(dn,$n=18,wn={})=>{let Sn=(0,a.toBN)(dn);const qn=Sn.lt(Dt),Qn=(0,a.toBN)(`1${"0".repeat($n)}`,10),jn=Qn.toString(10).length-1||1,zn=wn||{};qn&&(Sn=Sn.mul(Ft));let vn=Sn.mod(Qn).toString(10);for(;vn.length<jn;)vn=`0${vn}`;zn.pad||(vn=vn.match(/^([0-9]*[1-9]|0)(0*)/)[1]);let Rn=Sn.div(Qn).toString(10);zn.commify&&(Rn=Rn.replace(/\B(?=(\d{3})+(?!\d))/g,","));let Fn=`${Rn}${vn==="0"?"":`.${vn}`}`;return qn&&(Fn=`-${Fn}`),Fn};a.fromUnitToToken=Lt;const sn=(dn,$n=18)=>{let wn=(0,a.numberToString)(dn);const Sn=(0,a.toBN)(`1${"0".repeat($n)}`,10),qn=Sn.toString(10).length-1||1,Qn=wn.substring(0,1)==="-";if(Qn&&(wn=wn.substring(1)),wn===".")throw new Error(`error converting token ${dn} to unit, invalid value`);const jn=wn.split(".");if(jn.length>2)throw new Error(`error converting token ${dn} to unit, too many decimal points`);let zn=jn[0],vn=jn[1];if(zn||(zn="0"),vn||(vn="0"),vn.length>qn)throw new Error(`error converting token ${dn} to unit, too many decimal places`);for(;vn.length<qn;)vn+="0";zn=new Rt.default(zn),vn=new Rt.default(vn);let Rn=zn.mul(Sn).add(vn);return Qn&&(Rn=Rn.mul(Ft)),new Rt.default(Rn.toString(10),10)};a.fromTokenToUnit=sn;function Ut(dn){return Object.prototype.toString.call(dn)==="[object Uint8Array]"}a.isUint8Array=Ut;function Zt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,dn=>{const $n=Math.random()*16|0;return(dn==="x"?$n:$n&3|8).toString(16)})}a.UUID=Zt;function Gt(dn){return/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(dn)}a.isUUID=Gt;function Yt(dn){let $n=null;if([null,void 0,""].includes(dn))$n=new Uint8Array;else if(Buffer$3.isBuffer(dn))$n=new Uint8Array(dn);else if((0,a.isHexStrict)(dn))$n=new Uint8Array((0,a.hexToBytes)(dn));else if(Ut(dn))$n=new Uint8Array(dn);else if((0,a.isBase58btc)(dn))$n=new Uint8Array(zt.decode(dn));else if(typeof dn=="string")$n=new Uint8Array((0,a.hexToBytes)((0,a.toHex)(dn)));else throw new Error(`Unsupported input type ${typeof dn} detected for toBuffer, only Uint8Array/Buffer/Hex/Base58 are supported`);return $n}a.toUint8Array=Yt;function cn(dn){return Buffer$3.from(Yt(dn))}a.toBuffer=cn;function En(dn){const $n=zt.encode(Yt(dn));return Buffer$3.from($n).toString("utf-8")}a.toBase58=En;function Ht(dn){if((0,a.isBase58btc)(dn)===!1)throw new Error("fromBase58 expect strict base58 encoded string as input");return Buffer$3.from(zt.decode(dn))}a.fromBase58=Ht;function Ot(dn,$n=!0){const wn=Et.default.encode(cn(dn));return $n?Et.default.escape(wn):wn}a.toBase64=Ot;function Kt(dn){if(typeof dn!="string")throw new Error("fromBase64 requires input to be a string");return Buffer$3.from(Et.default.unescape(dn),"base64")}a.fromBase64=Kt;function Xt(dn){return dn.replace(Pt,"")}a.toAddress=Xt;function an(dn){return`${Pt}${Xt(dn)}`}a.toDid=an;function _n(dn,$n){return Xt(dn).toLowerCase()===Xt($n).toLowerCase()}a.isSameDid=_n;function yn(dn){return(0,ct.default)((0,ut.default)(dn))}a.formatTxType=yn})(lib$4);const BlockletContext=reactExports.createContext({});function useBlockletContext$1(){return reactExports.useContext(BlockletContext)}/**
538
538
  * filesize
539
539
  *
540
540
  * @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
@@ -1290,4 +1290,4 @@ ${et.length}`,rt=Buffer$3.from(nt),it=Buffer$3.concat([rt,tt]);return hash_1.def
1290
1290
  `)&&a.flags==="s")}),fails$2=fails$d,globalThis$1=globalThis_1,$RegExp=globalThis$1.RegExp,regexpUnsupportedNcg=fails$2(function(){var a=$RegExp("(?<a>b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$<a>c")!=="bc"}),call$4=functionCall,uncurryThis$5=functionUncurryThis,toString$3=toString$4,regexpFlags=regexpFlags$1,stickyHelpers=regexpStickyHelpers,shared=shared$4,create$1=objectCreate,getInternalState=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$3=uncurryThis$5("".charAt),indexOf=uncurryThis$5("".indexOf),replace$1=uncurryThis$5("".replace),stringSlice$3=uncurryThis$5("".slice),UPDATES_LAST_INDEX_WRONG=function(){var a=/a/,j=/b*/g;return call$4(nativeExec,a,"a"),call$4(nativeExec,j,"a"),a.lastIndex!==0||j.lastIndex!==0}(),UNSUPPORTED_Y=stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=/()??/.exec("")[1]!==void 0,PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG;PATCH&&(patchedExec=function(j){var _e=this,et=getInternalState(_e),tt=toString$3(j),nt=et.raw,rt,it,ot,ct,ut,dt,pt;if(nt)return nt.lastIndex=_e.lastIndex,rt=call$4(patchedExec,nt,tt),_e.lastIndex=nt.lastIndex,rt;var mt=et.groups,vt=UNSUPPORTED_Y&&_e.sticky,Et=call$4(regexpFlags,_e),Rt=_e.source,xt=0,Pt=tt;if(vt&&(Et=replace$1(Et,"y",""),indexOf(Et,"g")===-1&&(Et+="g"),Pt=stringSlice$3(tt,_e.lastIndex),_e.lastIndex>0&&(!_e.multiline||_e.multiline&&charAt$3(tt,_e.lastIndex-1)!==`
1291
1291
  `)&&(Rt="(?: "+Rt+")",Pt=" "+Pt,xt++),it=new RegExp("^(?:"+Rt+")",Et)),NPCG_INCLUDED&&(it=new RegExp("^"+Rt+"$(?!\\s)",Et)),UPDATES_LAST_INDEX_WRONG&&(ot=_e.lastIndex),ct=call$4(nativeExec,vt?it:_e,Pt),vt?ct?(ct.input=stringSlice$3(ct.input,xt),ct[0]=stringSlice$3(ct[0],xt),ct.index=_e.lastIndex,_e.lastIndex+=ct[0].length):_e.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&ct&&(_e.lastIndex=_e.global?ct.index+ct[0].length:ot),NPCG_INCLUDED&&ct&&ct.length>1&&call$4(nativeReplace,ct[0],it,function(){for(ut=1;ut<arguments.length-2;ut++)arguments[ut]===void 0&&(ct[ut]=void 0)}),ct&&mt)for(ct.groups=dt=create$1(null),ut=0;ut<mt.length;ut++)pt=mt[ut],dt[pt[0]]=ct[pt[1]];return ct});var regexpExec$2=patchedExec,$$1=_export,exec=regexpExec$2;$$1({target:"RegExp",proto:!0,forced:/./.exec!==exec},{exec});var classofRaw=classofRaw$2,uncurryThis$4=functionUncurryThis,functionUncurryThisClause=function(a){if(classofRaw(a)==="Function")return uncurryThis$4(a)},isObject=isObject$6,classof$1=classofRaw$2,wellKnownSymbol$3=wellKnownSymbol$7,MATCH$1=wellKnownSymbol$3("match"),isRegexp=function(a){var j;return isObject(a)&&((j=a[MATCH$1])!==void 0?!!j:classof$1(a)==="RegExp")},isRegExp=isRegexp,$TypeError$1=TypeError,notARegexp=function(a){if(isRegExp(a))throw new $TypeError$1("The method doesn't accept regular expressions");return a},wellKnownSymbol$2=wellKnownSymbol$7,MATCH=wellKnownSymbol$2("match"),correctIsRegexpLogic=function(a){var j=/./;try{"/./"[a](j)}catch{try{return j[MATCH]=!1,"/./"[a](j)}catch{}}return!1},$=_export,uncurryThis$3=functionUncurryThisClause,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,toLength$1=toLength$3,toString$2=toString$4,notARegExp=notARegexp,requireObjectCoercible$2=requireObjectCoercible$5,correctIsRegExpLogic=correctIsRegexpLogic,slice=uncurryThis$3("".slice),min$1=Math.min,CORRECT_IS_REGEXP_LOGIC=correctIsRegExpLogic("endsWith"),MDN_POLYFILL_BUG=!CORRECT_IS_REGEXP_LOGIC&&!!function(){var a=getOwnPropertyDescriptor(String.prototype,"endsWith");return a&&!a.writable}();$({target:"String",proto:!0,forced:!MDN_POLYFILL_BUG&&!CORRECT_IS_REGEXP_LOGIC},{endsWith:function a(j){var _e=toString$2(requireObjectCoercible$2(this));notARegExp(j);var et=arguments.length>1?arguments[1]:void 0,tt=_e.length,nt=et===void 0?tt:min$1(toLength$1(et),tt),rt=toString$2(j);return slice(_e,nt-rt.length,nt)===rt}});var NATIVE_BIND=functionBindNative,FunctionPrototype=Function.prototype,apply$1=FunctionPrototype.apply,call$3=FunctionPrototype.call,functionApply=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND?call$3.bind(apply$1):function(){return call$3.apply(apply$1,arguments)}),call$2=functionCall,defineBuiltIn=defineBuiltIn$2,regexpExec$1=regexpExec$2,fails$1=fails$d,wellKnownSymbol$1=wellKnownSymbol$7,createNonEnumerableProperty=createNonEnumerableProperty$3,SPECIES=wellKnownSymbol$1("species"),RegExpPrototype=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(a,j,_e,et){var tt=wellKnownSymbol$1(a),nt=!fails$1(function(){var ct={};return ct[tt]=function(){return 7},""[a](ct)!==7}),rt=nt&&!fails$1(function(){var ct=!1,ut=/a/;return a==="split"&&(ut={},ut.constructor={},ut.constructor[SPECIES]=function(){return ut},ut.flags="",ut[tt]=/./[tt]),ut.exec=function(){return ct=!0,null},ut[tt](""),!ct});if(!nt||!rt||_e){var it=/./[tt],ot=j(tt,""[a],function(ct,ut,dt,pt,mt){var vt=ut.exec;return vt===regexpExec$1||vt===RegExpPrototype.exec?nt&&!mt?{done:!0,value:call$2(it,ut,dt,pt)}:{done:!0,value:call$2(ct,dt,ut,pt)}:{done:!1}});defineBuiltIn(String.prototype,a,ot[0]),defineBuiltIn(RegExpPrototype,tt,ot[1])}et&&createNonEnumerableProperty(RegExpPrototype[tt],"sham",!0)},uncurryThis$2=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$1=toString$4,requireObjectCoercible$1=requireObjectCoercible$5,charAt$2=uncurryThis$2("".charAt),charCodeAt=uncurryThis$2("".charCodeAt),stringSlice$2=uncurryThis$2("".slice),createMethod=function(a){return function(j,_e){var et=toString$1(requireObjectCoercible$1(j)),tt=toIntegerOrInfinity$1(_e),nt=et.length,rt,it;return tt<0||tt>=nt?a?"":void 0:(rt=charCodeAt(et,tt),rt<55296||rt>56319||tt+1===nt||(it=charCodeAt(et,tt+1))<56320||it>57343?a?charAt$2(et,tt):rt:a?stringSlice$2(et,tt,tt+2):(rt-55296<<10)+(it-56320)+65536)}},stringMultibyte={codeAt:createMethod(!1),charAt:createMethod(!0)},charAt$1=stringMultibyte.charAt,advanceStringIndex$1=function(a,j,_e){return j+(_e?charAt$1(a,j).length:1)},uncurryThis$1=functionUncurryThis,toObject=toObject$2,floor=Math.floor,charAt=uncurryThis$1("".charAt),replace=uncurryThis$1("".replace),stringSlice$1=uncurryThis$1("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(a,j,_e,et,tt,nt){var rt=_e+a.length,it=et.length,ot=SUBSTITUTION_SYMBOLS_NO_NAMED;return tt!==void 0&&(tt=toObject(tt),ot=SUBSTITUTION_SYMBOLS),replace(nt,ot,function(ct,ut){var dt;switch(charAt(ut,0)){case"$":return"$";case"&":return a;case"`":return stringSlice$1(j,0,_e);case"'":return stringSlice$1(j,rt);case"<":dt=tt[stringSlice$1(ut,1,-1)];break;default:var pt=+ut;if(pt===0)return ct;if(pt>it){var mt=floor(pt/10);return mt===0?ct:mt<=it?et[mt-1]===void 0?charAt(ut,1):et[mt-1]+charAt(ut,1):ct}dt=et[pt-1]}return dt===void 0?"":dt})},call$1=functionCall,anObject$1=anObject$7,isCallable$1=isCallable$d,classof=classofRaw$2,regexpExec=regexpExec$2,$TypeError=TypeError,regexpExecAbstract=function(a,j){var _e=a.exec;if(isCallable$1(_e)){var et=call$1(_e,a,j);return et!==null&&anObject$1(et),et}if(classof(a)==="RegExp")return call$1(regexpExec,a,j);throw new $TypeError("RegExp#exec called on incompatible receiver")},apply=functionApply,call=functionCall,uncurryThis=functionUncurryThis,fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,fails=fails$d,anObject=anObject$7,isCallable=isCallable$d,isNullOrUndefined=isNullOrUndefined$3,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength=toLength$3,toString=toString$4,requireObjectCoercible=requireObjectCoercible$5,advanceStringIndex=advanceStringIndex$1,getMethod=getMethod$2,getSubstitution=getSubstitution$1,regExpExec=regexpExecAbstract,wellKnownSymbol=wellKnownSymbol$7,REPLACE=wellKnownSymbol("replace"),max=Math.max,min=Math.min,concat=uncurryThis([].concat),push=uncurryThis([].push),stringIndexOf=uncurryThis("".indexOf),stringSlice=uncurryThis("".slice),maybeToString=function(a){return a===void 0?a:String(a)},REPLACE_KEEPS_$0=function(){return"a".replace(/./,"$0")==="$0"}(),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=function(){return/./[REPLACE]?/./[REPLACE]("a","$0")==="":!1}(),REPLACE_SUPPORTS_NAMED_GROUPS=!fails(function(){var a=/./;return a.exec=function(){var j=[];return j.groups={a:"7"},j},"".replace(a,"$<a>")!=="7"});fixRegExpWellKnownSymbolLogic("replace",function(a,j,_e){var et=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(nt,rt){var it=requireObjectCoercible(this),ot=isNullOrUndefined(nt)?void 0:getMethod(nt,REPLACE);return ot?call(ot,nt,it,rt):call(j,toString(it),nt,rt)},function(tt,nt){var rt=anObject(this),it=toString(tt);if(typeof nt=="string"&&stringIndexOf(nt,et)===-1&&stringIndexOf(nt,"$<")===-1){var ot=_e(j,rt,it,nt);if(ot.done)return ot.value}var ct=isCallable(nt);ct||(nt=toString(nt));var ut=rt.global,dt;ut&&(dt=rt.unicode,rt.lastIndex=0);for(var pt=[],mt;mt=regExpExec(rt,it),!(mt===null||(push(pt,mt),!ut));){var vt=toString(mt[0]);vt===""&&(rt.lastIndex=advanceStringIndex(it,toLength(rt.lastIndex),dt))}for(var Et="",Rt=0,xt=0;xt<pt.length;xt++){mt=pt[xt];for(var Pt=toString(mt[0]),Dt=max(min(toIntegerOrInfinity(mt.index),it.length),0),Ft=[],zt,Nt=1;Nt<mt.length;Nt++)push(Ft,maybeToString(mt[Nt]));var Vt=mt.groups;if(ct){var nn=concat([Pt],Ft,Dt,it);Vt!==void 0&&push(nn,Vt),zt=toString(apply(nt,void 0,nn))}else zt=getSubstitution(Pt,it,Dt,Ft,Vt,nt);Dt>=Rt&&(Et+=stringSlice(it,Rt,Dt)+zt,Rt=Dt+Pt.length)}return Et+stringSlice(it,Rt)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);const queryType={name:"Query"},mutationType={name:"Mutation"},subscriptionType=null,types=[{kind:"SCALAR",name:"Any",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Bytes",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Float32",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Int32",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Int64",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Uint32",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Uint64",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"AutoBackupInput",description:null,fields:null,inputFields:[{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"AutoCheckUpdateInput",description:null,fields:null,inputFields:[{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"BlockletStoreInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"logoUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"maintainer",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"cdnUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"protected",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"scope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"ConfigEntryInput",description:null,fields:null,inputFields:[{name:"key",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"value",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"required",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"validation",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"secure",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"custom",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"shared",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"ConfigNavigationInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"link",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"icon",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"section",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"component",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"parent",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"visible",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"from",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"ConnectedAccountInput",description:null,fields:null,inputFields:[{name:"provider",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"userInfo",description:null,type:{kind:"INPUT_OBJECT",name:"ConnectedAccountInfoInput",ofType:null},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"ConnectedAccountInfoInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"picture",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"emailVerified",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"sub",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"extraData",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"DownloadTokenInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"token",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"HashFileInput",description:null,fields:null,inputFields:[{name:"file",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"hash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"IssuerInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"NodeInfoInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoUpgrade",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"enableWelcomePage",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"registerUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"webWalletUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletRegistryList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"BlockletStoreInput",ofType:null}}},defaultValue:null},{name:"diskAlertThreshold",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"enableBetaRelease",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"nftDomainUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"enableFileSystemIsolation",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"PagingInput",description:null,fields:null,inputFields:[{name:"total",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"pageSize",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"pageCount",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"page",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"PassportInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"issuer",description:null,type:{kind:"INPUT_OBJECT",name:"IssuerInput",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"issuanceDate",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"expirationDate",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"status",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"PermissionInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"isProtected",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddBlockletSpaceGatewayInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"spaceGateway",description:null,type:{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddBlockletStoreInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"scope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddDomainAliasInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"domainAlias",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"force",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"nftDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"chainHost",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"inBlockletSetup",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddLetsEncryptCertInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"siteId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"inBlockletSetup",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddNginxHttpsCertInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"privateKey",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"certificate",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddRoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rule",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleInput",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddRoutingSiteInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rules",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"RoutingRuleInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAuditFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"memberPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"status",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBackupBlockletInput",description:null,fields:null,inputFields:[{name:"appDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"to",description:null,type:{kind:"ENUM",name:"BackupTo",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletDetailInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"attachDiskInfo",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"attachRuntimeInfo",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"getOptionalComponents",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletDiffInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"hashFiles",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"HashFileInput",ofType:null}}},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletMetaInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletMetaFromUrlInput",description:null,fields:null,inputFields:[{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"checkPrice",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletRuntimeHistoryInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"hours",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCheckDomainsInput",description:null,fields:null,inputFields:[{name:"domains",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestClearCacheInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pattern",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestComponentsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDids",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigBlockletInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"configs",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConfigEntryInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigFederatedInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoLogin",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigNavigationsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"navigations",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConfigNavigationInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigNotificationInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"notification",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigOAuthInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"oauth",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigPassportIssuanceInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"enable",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigPublicToStoreInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"publicToStore",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigTrustedFactoriesInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"trustedFactories",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TrustedFactoryInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigTrustedPassportsInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"trustedPassports",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TrustedPassportInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConnectByStudioInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletTitle",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tenantScope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"messageId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConnectToStoreInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateAccessKeyInput",description:null,fields:null,inputFields:[{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passport",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateInvitationInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sourceAppPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreatePassportIssuanceInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ownerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreatePermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateProjectInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"ENUM",name:"PublishType",ofType:null},defaultValue:null},{name:"blockletDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletTitle",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tenantScope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateReleaseInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletVersion",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletTitle",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletDescription",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletLogo",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletIntroduction",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletScreenshots",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"note",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"status",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletComponents",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"uploadedResource",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"childName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"permissions",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateTransferNodeInvitationInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateWebHookInput",description:null,fields:null,inputFields:[{name:"type",description:null,type:{kind:"ENUM",name:"SenderType",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"params",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"WebHookParamInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteAccessKeyInput",description:null,fields:null,inputFields:[{name:"accessKeyId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"keepData",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletSpaceGatewayInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"spaceGatewayDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletStoreInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"scope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteComponentInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"keepData",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteDomainAliasInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"domainAlias",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteInvitationInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"inviteId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteNginxHttpsCertInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeletePermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ruleId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingSiteInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteTeamSessionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sessionId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteWebHookInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDisbandFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDisconnectFromStoreInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeScope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestEndSessionInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestFindCertificateByDomainInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGatewayInput",description:null,fields:null,inputFields:[{name:"requestLimit",description:null,type:{kind:"INPUT_OBJECT",name:"RequestLimitInput",ofType:null},defaultValue:null},{name:"cacheEnabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetAuditLogsInput",description:null,fields:null,inputFields:[{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"scope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"category",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletBackupsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletNotificationsInput",description:null,fields:null,inputFields:[{name:"receiver",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sender",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"read",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletsInput",description:null,fields:null,inputFields:[{name:"useCache",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetDynamicComponentsInput",description:null,fields:null,inputFields:[{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetLauncherSessionInput",description:null,fields:null,inputFields:[{name:"launcherSessionId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"launcherUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetNotificationsInput",description:null,fields:null,inputFields:[{name:"receiver",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sender",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"read",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetPassportIssuancesInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ownerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetProjectsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tenantScope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetReleasesInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetRoutingSitesInput",description:null,fields:null,inputFields:[{name:"snapshotHash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetRoutingSnapshotsInput",description:null,fields:null,inputFields:[{name:"limit",description:null,type:{kind:"SCALAR",name:"Int32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetSelectedResourcesInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetSessionInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetSnapshotSitesInput",description:null,fields:null,inputFields:[{name:"hash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetTrafficInsightsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"startDate",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"endDate",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGrantPermissionForRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"roleName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"grantName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestHasPermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"permission",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestInstallComponentInput",description:null,fields:null,inputFields:[{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"mountPoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"file",description:null,type:{kind:"SCALAR",name:"Upload",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"diffVersion",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"deleteSet",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"configs",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConfigEntryInput",ofType:null}}},defaultValue:null},{name:"downloadTokenList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"DownloadTokenInput",ofType:null}}},defaultValue:null},{name:"skipNavigation",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"onlyRequired",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestIsDidDomainInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestIssuePassportToUserInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestJoinFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestLimitInput",description:null,fields:null,inputFields:[{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"rate",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"ipHeader",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestLogoutUserInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"visitorId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestMigrateApplicationToStructV2Input",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appSk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestNodeRoutingInput",description:null,fields:null,inputFields:[{name:"provider",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"snapshotHash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"forceRepopulate",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestNodeRuntimeHistoryInput",description:null,fields:null,inputFields:[{name:"hours",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestProjectInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"messageId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestPublishToStoreInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestQuitFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestReadBlockletNotificationsInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestReadNotificationsInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestReleaseInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestResetNodeInput",description:null,fields:null,inputFields:[{name:"owner",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"blocklets",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"webhooks",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"certificates",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"accessKeys",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"blockletExtras",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"routingRules",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"users",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"invitations",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestRestoreBlockletInput",description:null,fields:null,inputFields:[{name:"endpoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"delegation",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"password",description:null,type:{kind:"SCALAR",name:"Bytes",ofType:null},defaultValue:null},{name:"wallet",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null},{name:"from",description:null,type:{kind:"ENUM",name:"BackupTo",ofType:null},defaultValue:null},{name:"appPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestRevokePermissionFromRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"roleName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"grantName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passportId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestSendEmailInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"receiver",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestSendMsgInput",description:null,fields:null,inputFields:[{name:"webhookId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"message",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestSendPushInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"receiver",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"notification",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestStartSessionInput",description:null,fields:null,inputFields:[{name:"data",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestSwitchProfileInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"profile",description:null,type:{kind:"INPUT_OBJECT",name:"UserProfileInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTagInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tag",description:null,type:{kind:"INPUT_OBJECT",name:"TagInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTagsInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTakeRoutingSnapshotInput",description:null,fields:null,inputFields:[{name:"dryRun",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"message",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamPermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"permission",description:null,type:{kind:"INPUT_OBJECT",name:"PermissionInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"INPUT_OBJECT",name:"RoleUpdateInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"user",description:null,type:{kind:"INPUT_OBJECT",name:"UserInfoInput",ofType:null},defaultValue:null},{name:"options",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserOptionsInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamUserOptionsInput",description:null,fields:null,inputFields:[{name:"enableConnectedAccount",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"includeTags",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAccessKeyInput",description:null,fields:null,inputFields:[{name:"accessKeyId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passport",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAppSessionConfigInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"config",description:null,type:{kind:"INPUT_OBJECT",name:"SessionConfigInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAutoBackupInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoBackup",description:null,type:{kind:"INPUT_OBJECT",name:"AutoBackupInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAutoCheckUpdateInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoCheckUpdate",description:null,type:{kind:"INPUT_OBJECT",name:"AutoCheckUpdateInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateBlockletSpaceGatewayInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"where",description:null,type:{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",ofType:null},defaultValue:null},{name:"spaceGateway",description:null,type:{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateComponentMountPointInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"mountPoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateComponentTitleInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateComponentsInput",description:null,fields:null,inputFields:[{name:"updateId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"selectedComponents",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateNginxHttpsCertInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdatePermissionsForRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"roleName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"grantNames",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateProjectInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletTitle",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletDescription",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletIntroduction",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoUpload",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"possibleSameStore",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rule",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleInput",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingSiteInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"corsAllowedOrigins",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateSelectedResourcesInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"resources",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateSessionInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"data",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateUserExtraInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateUserProfileInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"locale",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateUserTagsInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tags",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Uint32",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateWhoCanAccessInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"whoCanAccess",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUsersInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"query",description:null,type:{kind:"INPUT_OBJECT",name:"UserQueryInput",ofType:null},defaultValue:null},{name:"sort",description:null,type:{kind:"INPUT_OBJECT",name:"UserSortInput",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"dids",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestVersionedBlockletInput",description:null,fields:null,inputFields:[{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"file",description:null,type:{kind:"SCALAR",name:"Upload",ofType:null},defaultValue:null},{name:"diffVersion",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"deleteSet",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"startImmediately",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"downloadTokenList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"DownloadTokenInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoleUpdateInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"from",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleFromInput",ofType:null},defaultValue:null},{name:"to",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleToInput",ofType:null},defaultValue:null},{name:"isProtected",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleFromInput",description:null,fields:null,inputFields:[{name:"pathPrefix",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"header",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"RoutingRuleHeaderInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleHeaderInput",description:null,fields:null,inputFields:[{name:"key",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"value",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"ENUM",name:"HeaderMatchType",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleResponseInput",description:null,fields:null,inputFields:[{name:"status",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"contentType",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"body",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleToInput",description:null,fields:null,inputFields:[{name:"port",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"ENUM",name:"BackendServiceType",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"redirectCode",description:null,type:{kind:"SCALAR",name:"Int32",ofType:null},defaultValue:null},{name:"interfaceName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pageGroup",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"response",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleResponseInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"SessionConfigInput",description:null,fields:null,inputFields:[{name:"cacheTtl",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"ttl",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"protected",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"endpoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TagInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"color",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"createdAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"updatedAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TeamInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedFactoryInput",description:null,fields:null,inputFields:[{name:"holderDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"issuerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"factoryAddress",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passport",description:null,type:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingToInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportInput",description:null,fields:null,inputFields:[{name:"issuerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"mappings",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportMappingInput",description:null,fields:null,inputFields:[{name:"from",description:null,type:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingFromInput",ofType:null},defaultValue:null},{name:"to",description:null,type:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingToInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportMappingFromInput",description:null,fields:null,inputFields:[{name:"passport",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportMappingToInput",description:null,fields:null,inputFields:[{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ttl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ttlPolicy",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserInfoInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"avatar",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"fullName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"approved",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"createdAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"updatedAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"locale",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passports",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"PassportInput",ofType:null}}},defaultValue:null},{name:"firstLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"lastLoginIp",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sourceProvider",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sourceAppPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"connectedAccounts",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConnectedAccountInput",ofType:null}}},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null},{name:"tags",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TagInput",ofType:null}}},defaultValue:null},{name:"didSpace",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null},{name:"userSessions",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"UserSessionInput",ofType:null}}},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"phone",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserProfileInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"avatar",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"fullName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserQueryInput",description:null,fields:null,inputFields:[{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"approved",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"search",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"connectedDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tags",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Uint32",ofType:null}}},defaultValue:null},{name:"includeTags",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"includeUserSessions",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserSessionInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"visitorId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ua",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passportId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"status",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"lastLoginIp",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null},{name:"createdAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"updatedAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserSortInput",description:null,fields:null,inputFields:[{name:"updatedAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"createdAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"WebHookParamInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"required",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"defaultValue",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"value",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AccessKey",description:null,fields:[{name:"accessKeyId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"accessKeyPublic",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passport",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastUsedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdBy",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedBy",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLog",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"scope",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"category",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"action",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"content",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"actor",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogActor",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"env",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogEnv",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ip",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ua",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLogActor",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fullName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLogEnv",description:null,fields:[{name:"browser",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogEnvItem",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"os",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogEnvItem",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLogEnvItem",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AutoBackup",description:null,fields:[{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AutoCheckUpdate",description:null,fields:[{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Backup",description:null,fields:[{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"userDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"strategy",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sourceUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"target",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"targetName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"targetUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"message",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"progress",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletBackupState",description:null,fields:[{name:"appDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletCapabilities",description:null,fields:[{name:"clusterMode",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"component",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"navigation",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"didSpace",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resourceExportApi",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletController",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftOwner",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"chainHost",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expireDate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"consumedAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"launcherUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"launcherSessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ownerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"OBJECT",name:"BlockletControllerStatus",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletControllerStatus",description:null,fields:[{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"reason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletDiff",description:null,fields:[{name:"hasBlocklet",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addSet",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"changeSet",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"deleteSet",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletDist",description:null,fields:[{name:"tarball",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"integrity",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletEngine",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"displayName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"available",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"visible",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletHistoryItem",description:null,fields:[{name:"date",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpu",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMeta",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"interfaces",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaInterface",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"author",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMetaPerson",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"main",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stats",description:null,args:[],type:{kind:"OBJECT",name:"BlockletStats",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"homepage",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"path",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"community",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"documentation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"support",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"screenshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"keywords",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"group",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dist",description:null,args:[],type:{kind:"OBJECT",name:"BlockletDist",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"maintainers",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaPerson",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"contributors",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaPerson",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"repository",description:null,args:[],type:{kind:"OBJECT",name:"BlockletRepository",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"payment",description:null,args:[],type:{kind:"OBJECT",name:"BlockletPayment",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftFactory",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastPublishedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"capabilities",description:null,args:[],type:{kind:"OBJECT",name:"BlockletCapabilities",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"components",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ChildConfig",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Environment",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"requirements",description:null,args:[],type:{kind:"OBJECT",name:"Requirement",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"navigation",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Any",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"resources",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"resource",description:null,args:[],type:{kind:"OBJECT",name:"BlockletResource",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"engine",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"owner",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMetaOwner",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMetaInterface",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"path",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"prefix",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"protocol",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"services",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaService",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"cacheable",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"pageGroups",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMetaOwner",description:null,fields:[{name:"avatar",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"email",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fullName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMetaPerson",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"email",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMetaService",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"config",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMigrateRecord",description:null,fields:[{name:"appSk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"at",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPayment",description:null,fields:[{name:"price",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletPaymentPrice",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"share",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletPaymentShare",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPaymentPrice",description:null,fields:[{name:"address",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"symbol",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPaymentShare",description:null,fields:[{name:"address",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPreUpdateInfo",description:null,fields:[{name:"updateId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"UpdateList",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletRepository",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletResource",description:null,fields:[{name:"exportApi",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"types",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletResourceType",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"bundles",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletResourceBundle",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletResourceBundle",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"public",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletResourceType",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletSettings",description:null,fields:[{name:"initialized",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enablePassportIssuance",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedPassports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"whoCanAccess",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"owner",description:null,args:[],type:{kind:"OBJECT",name:"WalletInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"children",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"SimpleBlockletState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"publicToStore",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"storeList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletStore",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"navigations",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigNavigation",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"oauth",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedFactories",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedFactory",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"notification",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"session",description:null,args:[],type:{kind:"OBJECT",name:"SessionConfig",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"federated",description:null,args:[],type:{kind:"OBJECT",name:"FederatedConfig",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoCheckUpdate",description:null,args:[],type:{kind:"OBJECT",name:"AutoCheckUpdate",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoBackup",description:null,args:[],type:{kind:"OBJECT",name:"AutoBackup",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletState",description:null,fields:[{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"BlockletStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"installedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pausedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stoppedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"configs",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"diskInfo",description:null,args:[],type:{kind:"OBJECT",name:"DiskInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"runtimeInfo",description:null,args:[],type:{kind:"OBJECT",name:"RuntimeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appRuntimeInfo",description:null,args:[],type:{kind:"OBJECT",name:"RuntimeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"source",description:null,args:[],type:{kind:"ENUM",name:"BlockletSource",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deployedFrom",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleSource",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"engine",description:null,args:[],type:{kind:"OBJECT",name:"BlockletEngine",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mode",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ports",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"children",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"optionalComponents",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"OptionalComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"trustedPassports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"trustedFactories",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedFactory",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"enablePassportIssuance",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dynamic",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"settings",description:null,args:[],type:{kind:"OBJECT",name:"BlockletSettings",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"site",description:null,args:[],type:{kind:"OBJECT",name:"RoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"controller",description:null,args:[],type:{kind:"OBJECT",name:"BlockletController",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"migratedFrom",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMigrateRecord",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalSk",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalSkSource",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"structVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletStats",description:null,fields:[{name:"downloads",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"star",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"purchases",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletStore",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logoUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"maintainer",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cdnUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"protected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"scope",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BooleanResponse",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"result",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Certificate",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"CertificateMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"matchedSites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"MatchedSites",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"source",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"CertificateIssuer",description:null,fields:[{name:"countryName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"organizationName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"commonName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"CertificateMeta",description:null,fields:[{name:"issuer",description:null,args:[],type:{kind:"OBJECT",name:"CertificateIssuer",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sans",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"validFrom",description:null,args:[],type:{kind:"SCALAR",name:"Int64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validTo",description:null,args:[],type:{kind:"SCALAR",name:"Int64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fingerprintAlg",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fingerprint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validityPeriod",description:null,args:[],type:{kind:"SCALAR",name:"Int64",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ChildConfig",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ComponentState",description:null,fields:[{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"BlockletStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"installedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pausedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stoppedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"configs",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"diskInfo",description:null,args:[],type:{kind:"OBJECT",name:"DiskInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"runtimeInfo",description:null,args:[],type:{kind:"OBJECT",name:"RuntimeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"source",description:null,args:[],type:{kind:"ENUM",name:"BlockletSource",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deployedFrom",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleSource",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"engine",description:null,args:[],type:{kind:"OBJECT",name:"BlockletEngine",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mode",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ports",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"children",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"dynamic",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dependents",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Dependent",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConfigEntry",description:null,fields:[{name:"key",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"secure",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"custom",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"shared",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConfigNavigation",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"link",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"icon",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"section",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"component",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"parent",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"visible",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"from",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConnectedAccount",description:null,fields:[{name:"provider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"userInfo",description:null,args:[],type:{kind:"OBJECT",name:"ConnectedAccountInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"extra",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConnectedAccountInfo",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"picture",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"email",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"emailVerified",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sub",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"extraData",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConnectedStore",description:null,fields:[{name:"storeId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"storeName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"storeUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"accessToken",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"developerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"developerEmail",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"developerName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"scope",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"CreateAccessKey",description:null,fields:[{name:"accessKeyId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"accessKeySecret",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passport",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastUsedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"DelegationState",description:null,fields:[{name:"delegated",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Dependent",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"DiskInfo",description:null,fields:[{name:"app",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"data",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"log",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cache",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blocklets",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Environment",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"default",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"secure",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"shared",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"FederatedConfig",description:null,fields:[{name:"config",description:null,args:[],type:{kind:"OBJECT",name:"FederatedConfigDetail",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"FederatedConfigSite",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"FederatedConfigDetail",description:null,fields:[{name:"appId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"delegation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isMaster",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoLogin",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"FederatedConfigSite",description:null,fields:[{name:"appId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"aliasDid",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"appName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appDescription",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"aliasDomain",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"appLogo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appLogoRect",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"serverId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"serverVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appliedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isMaster",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Fuel",description:null,fields:[{name:"endpoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"address",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"reason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Gateway",description:null,fields:[{name:"requestLimit",description:null,args:[],type:{kind:"OBJECT",name:"RequestLimit",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cacheEnabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"GeneralResponse",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"IPInfo",description:null,fields:[{name:"internalV4",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalV4",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"internalV6",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalV6",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"InviteInfo",description:null,fields:[{name:"inviteId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expireDate",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inviter",description:null,args:[],type:{kind:"OBJECT",name:"UserInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"teamDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"interfaceName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Issuer",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"KeyValue",description:null,fields:[{name:"key",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"LauncherInfo",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"provider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tag",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"chainHost",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"MatchedSites",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeEnvInfo",description:null,fields:[{name:"ip",description:null,args:[],type:{kind:"OBJECT",name:"IPInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"os",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"location",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"docker",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"image",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletEngines",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletEngine",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"gitpod",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"disk",description:null,args:[],type:{kind:"OBJECT",name:"DiskInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeHistoryItem",description:null,fields:[{name:"date",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpu",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"daemonMem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"serviceMem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"hubMem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeRouting",description:null,fields:[{name:"provider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"snapshotHash",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"adminPath",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"requestLimit",description:null,args:[],type:{kind:"OBJECT",name:"RequestLimit",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cacheEnabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeRuntimeConfig",description:null,fields:[{name:"blockletMaxMemoryLimit",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"daemonMaxMemoryLimit",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"proxyMaxMemoryLimit",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeState",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"initialized",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nodeOwner",description:null,args:[],type:{kind:"OBJECT",name:"WalletInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"initializedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mode",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"routing",description:null,args:[],type:{kind:"OBJECT",name:"NodeRouting",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"uptime",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoUpgrade",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nextVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"upgradeSessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"registerUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enableWelcomePage",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"webWalletUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletRegistryList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletStore",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"ownerNft",description:null,args:[],type:{kind:"OBJECT",name:"OwnerNft",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"diskAlertThreshold",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedPassports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"launcher",description:null,args:[],type:{kind:"OBJECT",name:"LauncherInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enablePassportIssuance",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"didRegistry",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"didDomain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedFactories",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedFactory",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"enableBetaRelease",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"runtimeConfig",description:null,args:[],type:{kind:"OBJECT",name:"NodeRuntimeConfig",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftDomainUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enableFileSystemIsolation",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Notification",description:null,fields:[{name:"sender",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"receiver",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"action",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"entityType",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"entityId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"read",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"severity",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"OptionalComponentState",description:null,fields:[{name:"logoUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dependencies",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"OptionalDependencies",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"OptionalDependencies",description:null,fields:[{name:"parentDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"parentName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"parentTitle",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"OwnerNft",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"holder",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuer",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"launcherSessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Paging",description:null,fields:[{name:"total",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pageSize",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pageCount",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"page",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Passport",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuer",description:null,args:[],type:{kind:"OBJECT",name:"Issuer",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"issuanceDate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expirationDate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"PassportIssuanceInfo",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expireDate",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"teamDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ownerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Permission",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Project",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"ENUM",name:"PublishType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletTitle",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDescription",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletLogo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletIntroduction",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletScreenshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"componentDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastReleaseId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastReleaseFiles",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"connectedStores",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConnectedStore",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"tenantScope",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdBy",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoUpload",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"possibleSameStore",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Release",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"projectId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletTitle",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDescription",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletLogo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletIntroduction",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletScreenshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"note",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"files",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"ReleaseStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletComponents",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ReleaseComponent",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"publishedStoreIds",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"uploadedResource",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ReleaseComponent",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RequestLimit",description:null,fields:[{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"rate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ipHeader",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Requirement",description:null,fields:[{name:"server",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"os",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpu",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fuels",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Fuel",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseAccessKeys",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"AccessKey",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseAddLetsEncryptCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseAddNginxHttpsCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlocklet",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blocklet",description:null,args:[],type:{kind:"OBJECT",name:"BlockletState",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletDiff",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDiff",description:null,args:[],type:{kind:"OBJECT",name:"BlockletDiff",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletMeta",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletMetaFromUrl",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isFree",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inStore",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"registryUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletRuntimeHistory",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"history",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletHistoryItem",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletsFromBackup",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"backups",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletBackupState",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCheckComponentsForUpdates",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"preUpdateInfo",description:null,args:[],type:{kind:"OBJECT",name:"BlockletPreUpdateInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCheckDomains",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCheckNodeVersion",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseClearCache",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"removed",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseConnectByStudio",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseConnectToStore",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateAccessKey",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"data",description:null,args:[],type:{kind:"OBJECT",name:"CreateAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateInvitation",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inviteInfo",description:null,args:[],type:{kind:"OBJECT",name:"InviteInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreatePassportIssuance",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"info",description:null,args:[],type:{kind:"OBJECT",name:"PassportIssuanceInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateTransferNodeInvitation",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inviteInfo",description:null,args:[],type:{kind:"OBJECT",name:"InviteInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateWebHook",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"webhook",description:null,args:[],type:{kind:"OBJECT",name:"WebHookSender",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDelegationState",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"state",description:null,args:[],type:{kind:"OBJECT",name:"DelegationState",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDeleteAccessKey",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDeleteNginxHttpsCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDeleteWebHook",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDisconnectFromStore",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseFindCertificateByDomain",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cert",description:null,args:[],type:{kind:"OBJECT",name:"Certificate",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGateway",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"gateway",description:null,args:[],type:{kind:"OBJECT",name:"Gateway",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cacheEnabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetAuditLogs",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"AuditLog",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlockletBackups",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"backups",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Backup",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlockletNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Notification",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlockletSpaceGateways",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"spaceGateways",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"SpaceGateway",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlocklets",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blocklets",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletState",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetCertificates",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"certificates",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Certificate",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetDynamicComponents",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"components",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetInvitations",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"invitations",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"InviteInfo",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetLauncherSession",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"error",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"launcherSession",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetNodeEnv",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"info",description:null,args:[],type:{kind:"OBJECT",name:"NodeEnvInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetNodeInfo",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"info",description:null,args:[],type:{kind:"OBJECT",name:"NodeState",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Notification",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetPassportIssuances",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"PassportIssuanceInfo",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetProject",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"project",description:null,args:[],type:{kind:"OBJECT",name:"Project",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetProjects",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"projects",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Project",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRelease",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"release",description:null,args:[],type:{kind:"OBJECT",name:"Release",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetReleases",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"releases",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Release",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRoutingProviders",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"providers",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingProvider",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRoutingSites",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingSite",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRoutingSnapshots",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"snapshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingSnapshot",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetSelectedResources",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resources",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetSession",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"session",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetSnapshotSites",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingSite",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetTrafficInsights",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrafficInsight",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetUsersCount",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"count",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetUsersCountPerRole",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"counts",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"KeyValue",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseIsDidDomain",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseNodeRuntimeHistory",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"history",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"NodeHistoryItem",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponsePermission",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"permission",description:null,args:[],type:{kind:"OBJECT",name:"Permission",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponsePermissions",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"permissions",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Permission",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseProject",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"project",description:null,args:[],type:{kind:"OBJECT",name:"Project",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponsePublishToStore",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseReadBlockletNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"numAffected",description:null,args:[],type:{kind:"SCALAR",name:"Int32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseReadNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"numAffected",description:null,args:[],type:{kind:"SCALAR",name:"Int32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRelease",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"release",description:null,args:[],type:{kind:"OBJECT",name:"Release",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseResetNode",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRestartServer",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRole",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"OBJECT",name:"Role",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRoles",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"roles",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Role",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRoutingSite",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"site",description:null,args:[],type:{kind:"OBJECT",name:"RoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseSendMsg",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseSenderList",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"senders",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHookSender",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseTag",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tag",description:null,args:[],type:{kind:"OBJECT",name:"Tag",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseTags",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tags",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Tag",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseTakeRoutingSnapshot",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"hash",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUpdateAccessKey",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"data",description:null,args:[],type:{kind:"OBJECT",name:"AccessKey",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUpdateNginxHttpsCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUpgradeNodeVersion",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUser",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"user",description:null,args:[],type:{kind:"OBJECT",name:"UserInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUsers",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"users",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"UserInfo",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseWebHooks",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"webhooks",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHook",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Role",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"grants",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"extra",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingProvider",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"running",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"available",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"error",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRule",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"from",description:null,args:[],type:{kind:"OBJECT",name:"RoutingRuleFrom",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"to",description:null,args:[],type:{kind:"OBJECT",name:"RoutingRuleTo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRuleFrom",description:null,fields:[{name:"pathPrefix",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"header",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingRuleHeader",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRuleHeader",description:null,fields:[{name:"key",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"ENUM",name:"HeaderMatchType",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRuleResponse",description:null,fields:[{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"contentType",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"body",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRuleTo",description:null,fields:[{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"ENUM",name:"BackendServiceType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"redirectCode",description:null,args:[],type:{kind:"SCALAR",name:"Int32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"interfaceName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"componentId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pageGroup",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"response",description:null,args:[],type:{kind:"OBJECT",name:"RoutingRuleResponse",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingSite",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domainAliases",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Any",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"rules",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingRule",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"corsAllowedOrigins",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingSnapshot",description:null,fields:[{name:"hash",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tree",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"message",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"author",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RuntimeInfo",description:null,fields:[{name:"pid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uptime",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"memoryUsage",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpuUsage",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SessionConfig",description:null,fields:[{name:"cacheTtl",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ttl",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SimpleBlockletMeta",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SimpleBlockletState",description:null,fields:[{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"SimpleBlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"BlockletStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deployedFrom",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deletedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SpaceGateway",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"protected",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"endpoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Tag",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"color",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrafficInsight",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"date",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"totalRequests",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validRequests",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"failedRequests",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"generationTime",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueVisitors",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueFiles",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"excludedHits",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueReferrers",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueNotFound",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueStaticFiles",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logSize",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bandwidth",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedFactory",description:null,fields:[{name:"holderDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"factoryAddress",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passport",description:null,args:[],type:{kind:"OBJECT",name:"TrustedPassportMappingTo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassport",description:null,fields:[{name:"issuerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mappings",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassportMapping",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassportMapping",description:null,fields:[{name:"from",description:null,args:[],type:{kind:"OBJECT",name:"TrustedPassportMappingFrom",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"to",description:null,args:[],type:{kind:"OBJECT",name:"TrustedPassportMappingTo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassportMappingFrom",description:null,fields:[{name:"passport",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassportMappingTo",description:null,fields:[{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ttl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ttlPolicy",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"UpdateList",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"UserInfo",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"avatar",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fullName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"email",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"approved",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"locale",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Passport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"firstLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginIp",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sourceProvider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sourceAppPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"connectedAccounts",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConnectedAccount",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"extra",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tags",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Tag",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"didSpace",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"userSessions",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"UserSession",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"phone",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"UserSession",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"visitorId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"userDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ua",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passportId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginIp",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"extra",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WalletInfo",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WebHook",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"ENUM",name:"SenderType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"params",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHookParam",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WebHookParam",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"defaultValue",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WebHookSender",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"ENUM",name:"SenderType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"params",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHookParam",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"BackendServiceType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"daemon",description:null,isDeprecated:!1,deprecationReason:null},{name:"blocklet",description:null,isDeprecated:!1,deprecationReason:null},{name:"redirect",description:null,isDeprecated:!1,deprecationReason:null},{name:"none",description:null,isDeprecated:!1,deprecationReason:null},{name:"general_proxy",description:null,isDeprecated:!1,deprecationReason:null},{name:"direct_response",description:null,isDeprecated:!1,deprecationReason:null},{name:"rewrite",description:null,isDeprecated:!1,deprecationReason:null},{name:"component",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"BackupTo",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"spaces",description:null,isDeprecated:!1,deprecationReason:null},{name:"disk",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"BlockletSource",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"registry",description:null,isDeprecated:!1,deprecationReason:null},{name:"local",description:null,isDeprecated:!1,deprecationReason:null},{name:"upload",description:null,isDeprecated:!1,deprecationReason:null},{name:"url",description:null,isDeprecated:!1,deprecationReason:null},{name:"custom",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"BlockletStatus",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"added",description:null,isDeprecated:!1,deprecationReason:null},{name:"downloading",description:null,isDeprecated:!1,deprecationReason:null},{name:"downloaded",description:null,isDeprecated:!1,deprecationReason:null},{name:"installing",description:null,isDeprecated:!1,deprecationReason:null},{name:"installed",description:null,isDeprecated:!1,deprecationReason:null},{name:"starting",description:null,isDeprecated:!1,deprecationReason:null},{name:"running",description:null,isDeprecated:!1,deprecationReason:null},{name:"stopping",description:null,isDeprecated:!1,deprecationReason:null},{name:"stopped",description:null,isDeprecated:!1,deprecationReason:null},{name:"error",description:null,isDeprecated:!1,deprecationReason:null},{name:"upgrading",description:null,isDeprecated:!1,deprecationReason:null},{name:"restarting",description:null,isDeprecated:!1,deprecationReason:null},{name:"corrupted",description:null,isDeprecated:!1,deprecationReason:null},{name:"waiting",description:null,isDeprecated:!1,deprecationReason:null},{name:"deleted",description:null,isDeprecated:!1,deprecationReason:null},{name:"unknown",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"HeaderMatchType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"exact",description:null,isDeprecated:!1,deprecationReason:null},{name:"partial",description:null,isDeprecated:!1,deprecationReason:null},{name:"regexp",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"PublishType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"resource",description:null,isDeprecated:!1,deprecationReason:null},{name:"pack",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"ReleaseStatus",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"draft",description:null,isDeprecated:!1,deprecationReason:null},{name:"published",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"SenderType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"slack",description:null,isDeprecated:!1,deprecationReason:null},{name:"api",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"StatusCode",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"ok",description:null,isDeprecated:!1,deprecationReason:null},{name:"blocklet_not_found",description:null,isDeprecated:!1,deprecationReason:null},{name:"blocklet_not_purchased",description:null,isDeprecated:!1,deprecationReason:null},{name:"forbidden",description:null,isDeprecated:!1,deprecationReason:null},{name:"internal",description:null,isDeprecated:!1,deprecationReason:null},{name:"timeout",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"SCALAR",name:"Upload",description:"The `Upload` scalar type represents a file upload.",fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Mutation",description:null,fields:[{name:"installBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestVersionedBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"installComponent",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestInstallComponentInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stopBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"reloadBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"restartBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteComponent",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteComponentInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cancelDownloadBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"checkComponentsForUpdates",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCheckComponentsForUpdates",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"upgradeComponents",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configPublicToStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigPublicToStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configNavigations",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigNavigationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configOAuth",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigOAuthInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configNotification",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigNotificationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sendEmail",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestSendEmailInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sendPush",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestSendPushInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"joinFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestJoinFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"quitFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestQuitFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"disbandFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDisbandFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configFederated",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigFederatedInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"auditFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAuditFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateWhoCanAccess",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateWhoCanAccessInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAppSessionConfig",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAppSessionConfigInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateComponentTitle",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateComponentTitleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateComponentMountPoint",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateComponentMountPointInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"backupBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBackupBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"restoreBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRestoreBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"migrateApplicationToStructV2",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestMigrateApplicationToStructV2Input",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addBlockletSpaceGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddBlockletSpaceGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteBlockletSpaceGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletSpaceGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateBlockletSpaceGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateBlockletSpaceGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAutoBackup",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAutoBackupInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAutoCheckUpdate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAutoCheckUpdateInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateNodeInfo",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"NodeInfoInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateNodeRouting",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestNodeRoutingInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"upgradeNodeVersion",description:null,args:[],type:{kind:"OBJECT",name:"ResponseUpgradeNodeVersion",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"restartServer",description:null,args:[],type:{kind:"OBJECT",name:"ResponseRestartServer",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resetNode",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestResetNodeInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseResetNode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGateway",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"clearCache",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestClearCacheInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseClearCache",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createMemberInvitation",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateInvitationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateInvitation",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createTransferInvitation",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateTransferNodeInvitationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateTransferNodeInvitation",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteInvitation",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteInvitationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createPassportIssuance",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreatePassportIssuanceInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreatePassportIssuance",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deletePassportIssuance",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteTeamSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configTrustedPassports",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigTrustedPassportsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configTrustedFactories",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigTrustedFactoriesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configPassportIssuance",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigPassportIssuanceInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"removeUser",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateUserTags",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateUserTagsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateUserProfile",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateUserProfileInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateUserExtra",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateUserExtraInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateUserApproval",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuePassportToUser",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestIssuePassportToUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"revokeUserPassport",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enableUserPassport",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"removeUserPassport",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"switchProfile",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestSwitchProfileInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createPermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreatePermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermission",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatePermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamPermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermission",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deletePermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeletePermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"grantPermissionForRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGrantPermissionForRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"revokePermissionFromRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokePermissionFromRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatePermissionsForRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdatePermissionsForRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"hasPermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestHasPermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"BooleanResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addBlockletStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddBlockletStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteBlockletStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createTag",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTag",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateTag",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTag",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteTag",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTag",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"readNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"unreadNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"readBlockletNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadBlockletNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadBlockletNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"unreadBlockletNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadBlockletNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadBlockletNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addRoutingSite",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddRoutingSiteInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addDomainAlias",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddDomainAliasInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteDomainAlias",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteDomainAliasInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRoutingSite",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingSiteInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateRoutingSite",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingSiteInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addRoutingRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddRoutingRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateRoutingRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRoutingRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"takeRoutingSnapshot",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTakeRoutingSnapshotInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTakeRoutingSnapshot",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateCertificate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateNginxHttpsCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUpdateNginxHttpsCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addCertificate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddNginxHttpsCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseAddNginxHttpsCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteCertificate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteNginxHttpsCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseDeleteNginxHttpsCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issueLetsEncryptCert",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddLetsEncryptCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseAddLetsEncryptCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createAccessKey",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateAccessKeyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAccessKey",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAccessKeyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUpdateAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteAccessKey",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteAccessKeyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseDeleteAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createWebHook",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateWebHookInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateWebHook",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteWebHook",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteWebHookInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseDeleteWebHook",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestStartSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"endSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestEndSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseProject",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseProject",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createRelease",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateReleaseInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRelease",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRelease",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReleaseInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateSelectedResources",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateSelectedResourcesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"connectToStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConnectToStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseConnectToStore",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"disconnectFromStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDisconnectFromStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseDisconnectFromStore",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"publishToStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestPublishToStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePublishToStore",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"connectByStudio",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConnectByStudioInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseConnectByStudio",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Query",description:null,fields:[{name:"getBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletDetailInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletMetaFromUrl",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletMetaFromUrlInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletMetaFromUrl",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletDiff",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletDiffInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletDiff",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlocklets",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlocklets",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletRuntimeHistory",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletRuntimeHistoryInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletRuntimeHistory",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletsFromBackup",description:null,args:[],type:{kind:"OBJECT",name:"ResponseBlockletsFromBackup",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getDynamicComponents",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetDynamicComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetDynamicComponents",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNodeInfo",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resetNodeStatus",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNodeEnv",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetNodeEnv",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"checkNodeVersion",description:null,args:[],type:{kind:"OBJECT",name:"ResponseCheckNodeVersion",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getDelegationState",description:null,args:[],type:{kind:"OBJECT",name:"ResponseDelegationState",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNodeRuntimeHistory",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestNodeRuntimeHistoryInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseNodeRuntimeHistory",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletMeta",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletMetaInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlockletNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoutingSites",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetRoutingSitesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetRoutingSites",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoutingSnapshots",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetRoutingSnapshotsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetRoutingSnapshots",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getSnapshotSites",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetSnapshotSitesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSnapshotSites",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoutingProviders",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetRoutingProviders",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isDidDomain",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestIsDidDomainInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseIsDidDomain",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getCertificates",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetCertificates",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"checkDomains",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCheckDomainsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCheckDomains",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"findCertificateByDomain",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestFindCertificateByDomainInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseFindCertificateByDomain",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getAccessKeys",description:null,args:[],type:{kind:"OBJECT",name:"ResponseAccessKeys",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getWebHooks",description:null,args:[],type:{kind:"OBJECT",name:"ResponseWebHooks",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getWebhookSenders",description:null,args:[],type:{kind:"OBJECT",name:"ResponseSenderList",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sendTestMessage",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestSendMsgInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseSendMsg",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoles",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoles",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getPermissions",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermissions",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getInvitations",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetInvitations",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUsers",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUsersInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUsers",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUser",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUsersCount",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetUsersCount",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUsersCountPerRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetUsersCountPerRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getOwner",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getPermissionsByRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermissions",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getPassportIssuances",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetPassportIssuancesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetPassportIssuances",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logoutUser",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestLogoutUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getTags",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTags",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getAuditLogs",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetAuditLogsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetAuditLogs",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getLauncherSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetLauncherSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetLauncherSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletBackups",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletBackupsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlockletBackups",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletSpaceGateways",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlockletSpaceGateways",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getTrafficInsights",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetTrafficInsightsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetTrafficInsights",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getProjects",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetProjectsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetProjects",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetProject",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getReleases",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetReleasesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetReleases",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRelease",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReleaseInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetRelease",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getSelectedResources",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetSelectedResourcesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSelectedResources",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:[{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"types",description:"A list of all types supported by this server.",args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"queryType",description:"The type that query operations will be rooted at.",args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"mutationType",description:"If this server supports mutation, the type that mutation operations will be rooted at.",args:[],type:{kind:"OBJECT",name:"__Type",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"subscriptionType",description:"If this server support subscription, the type that subscription operations will be rooted at.",args:[],type:{kind:"OBJECT",name:"__Type",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"directives",description:"A list of all directives supported by this server.",args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Directive",ofType:null}}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:[{name:"kind",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"ENUM",name:"__TypeKind",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"specifiedByURL",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fields",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Field",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"interfaces",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"possibleTypes",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"enumValues",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__EnumValue",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"inputFields",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"ofType",description:null,args:[],type:{kind:"OBJECT",name:"__Type",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",fields:null,inputFields:null,interfaces:null,enumValues:[{name:"SCALAR",description:"Indicates this type is a scalar.",isDeprecated:!1,deprecationReason:null},{name:"OBJECT",description:"Indicates this type is an object. `fields` and `interfaces` are valid fields.",isDeprecated:!1,deprecationReason:null},{name:"INTERFACE",description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.",isDeprecated:!1,deprecationReason:null},{name:"UNION",description:"Indicates this type is a union. `possibleTypes` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"ENUM",description:"Indicates this type is an enum. `enumValues` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_OBJECT",description:"Indicates this type is an input object. `inputFields` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"LIST",description:"Indicates this type is a list. `ofType` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"NON_NULL",description:"Indicates this type is a non-null. `ofType` is a valid field.",isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"OBJECT",name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"args",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"isDeprecated",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"deprecationReason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"defaultValue",description:"A GraphQL-formatted string representing the default value for this input value.",args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isDeprecated",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"deprecationReason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isDeprecated",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"deprecationReason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
1292
1292
 
1293
- In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isRepeatable",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"locations",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"ENUM",name:"__DirectiveLocation",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"args",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",fields:null,inputFields:null,interfaces:null,enumValues:[{name:"QUERY",description:"Location adjacent to a query operation.",isDeprecated:!1,deprecationReason:null},{name:"MUTATION",description:"Location adjacent to a mutation operation.",isDeprecated:!1,deprecationReason:null},{name:"SUBSCRIPTION",description:"Location adjacent to a subscription operation.",isDeprecated:!1,deprecationReason:null},{name:"FIELD",description:"Location adjacent to a field.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_DEFINITION",description:"Location adjacent to a fragment definition.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_SPREAD",description:"Location adjacent to a fragment spread.",isDeprecated:!1,deprecationReason:null},{name:"INLINE_FRAGMENT",description:"Location adjacent to an inline fragment.",isDeprecated:!1,deprecationReason:null},{name:"VARIABLE_DEFINITION",description:"Location adjacent to a variable definition.",isDeprecated:!1,deprecationReason:null},{name:"SCHEMA",description:"Location adjacent to a schema definition.",isDeprecated:!1,deprecationReason:null},{name:"SCALAR",description:"Location adjacent to a scalar definition.",isDeprecated:!1,deprecationReason:null},{name:"OBJECT",description:"Location adjacent to an object type definition.",isDeprecated:!1,deprecationReason:null},{name:"FIELD_DEFINITION",description:"Location adjacent to a field definition.",isDeprecated:!1,deprecationReason:null},{name:"ARGUMENT_DEFINITION",description:"Location adjacent to an argument definition.",isDeprecated:!1,deprecationReason:null},{name:"INTERFACE",description:"Location adjacent to an interface definition.",isDeprecated:!1,deprecationReason:null},{name:"UNION",description:"Location adjacent to a union definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM",description:"Location adjacent to an enum definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM_VALUE",description:"Location adjacent to an enum value definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_OBJECT",description:"Location adjacent to an input object type definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_FIELD_DEFINITION",description:"Location adjacent to an input object field definition.",isDeprecated:!1,deprecationReason:null}],possibleTypes:null}],directives=[{name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Included when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Skipped when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:["FIELD_DEFINITION","ARGUMENT_DEFINITION","INPUT_FIELD_DEFINITION","ENUM_VALUE"],args:[{name:"reason",description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:'"No longer supported"'}]},{name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:["SCALAR"],args:[{name:"url",description:"The URL that specifies the behavior of this scalar.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},defaultValue:null}]}],require$$4={queryType,mutationType,subscriptionType,types,directives},BaseClient=dist,schema=require$$4;let ABTNodeClient$1=class extends BaseClient{constructor(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"http://localhost:4000/api",_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const et={dataSource:"forge",httpEndpoint:j,socketEndpoint:()=>this._getSocketEndpoint(j),enableQuery:!0,enableSubscription:!0,enableMutation:!0,maxQueryDepth:6};super(et),this._endpoint=j,this._authToken=null,this._userAgent=_e}setAuthToken(j){this._authToken=j}_getSocketEndpoint(j){let _e=j.replace(/https?:\/\//,"ws://");return j.indexOf("https://")===0&&(_e=_e.replace("ws://","wss://")),"".concat(_e,"/socket")}_getSchema(){return schema}_getIgnoreFields(j){return[]}_getAuthHeaders(){const j={},_e=this._authToken;if(_e){const et=typeof _e=="function"?_e():_e;j.Authorization="Bearer ".concat(encodeURIComponent(et))}if(typeof window<"u"&&typeof window.location<"u"){const{hostname:et,port:tt,protocol:nt}=window.location;j["x-real-hostname"]=et,j["x-real-port"]=tt,j["x-real-protocol"]=nt.endsWith(":")?nt.substring(0,nt.length-1):nt}return this._userAgent&&(j["User-Agent"]=this._userAgent),j}};var base=ABTNodeClient$1;const EventEmitter=eventemitter3Exports,ABTNodeClient=base;class BrowserABTNodeClient extends ABTNodeClient{_getSocketOptions(){return{}}_getEventImplementation(){return EventEmitter}}var browser=BrowserABTNodeClient;const NodeClient=getDefaultExportFromCjs$1(browser),prefix$1=(window.env?window.env.apiPrefix:"/")||"/",client$1=new NodeClient(()=>`${prefix$1}/api/gql?locale=${getLocale()}`.replace(/\/+/g,"/").trim());function useSubscription$1({wsClient:a,event:j,cb:_e=()=>{},deps:et=[]}){reactExports.useEffect(()=>{const tt=a&&(!et.length||et.every(Boolean));return tt&&a.on(j,_e),()=>{tt&&a.off(j,_e)}},et)}let client;function create(){const a=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),j=`//${window.location.host}${a}/admin`;return new browser$3.WsClient(j,{heartbeatIntervalMs:100*1e3,params:()=>({token:Cookie.get("login_token")})})}function getWsClient(){return client||(client=create()),client}const useSubscription=(a,j=()=>{},_e=[])=>{a=`${window.blocklet.did}/${a}`;const{session:et}=useSessionContext();!client&&et.user&&(client=getWsClient(),client.connect()),useSubscription$1({wsClient:client,event:a,cb:j,deps:_e})};let cache=null;const fetch$1=async()=>{try{return(await api.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},getIp=()=>(cache||(cache=fetch$1()),cache),{Provider:Provider$2,Consumer:Consumer$2}=BlockletContext,getPublicInstance=a=>a&&get$6(a,"settings.publicToStore")?a.settings.publicToStore:!1,parseEndpoint=(a,j)=>{const _e=/^{env\.(.+)}$/.exec(a);if(_e&&_e[1]){const et=((j==null?void 0:j.configs)||[]).find(tt=>tt.key===_e[1]);return!et&&!et.value?"":et.value}return a},getChainConfig=(()=>{const a={endpoint:"",data:{}};return async j=>{if(a.endpoint===j)return a.data;const et=await getChainClient(j).getConfig();return a.endpoint=j,a.data=et,et}})(),{did,appId}=window.env;function BlockletProvider({children:a,mode:j}){var Tt;const[_e,et]=reactExports.useState(null),[tt,nt]=reactExports.useState(!1),[rt,it]=reactExports.useState({}),[ot,ct]=reactExports.useState(),[ut,dt]=reactExports.useState(),[pt,mt]=reactExports.useState(),vt=j==="setup",{loading:Et,loadingDiskInfo:Rt,loadingRuntimeInfo:xt,error:Pt,blocklet:Dt,recommendedDomain:Ft,runtimeHistory:zt,actions:{refreshBlocklet:Nt,refreshDomainStatus:Vt,setBlocklet:nn}}=useBlocklet({did,client:client$1,useSubscription,getIP:getIp,useLocaleContext,getOptionalComponents:!0}),fn=reactExports.useRef(void 0);fn.current=(Tt=Dt==null?void 0:Dt.meta)==null?void 0:Tt.did;const hn=async()=>{try{nt(!0),et(null);const{data:At}=await api.get("/blocklet/meta");it(At),nt(!1)}catch(At){nt(!1),et(At),Toast$1.error(At.message)}},Qt=async({showError:At=!0}={})=>{var Zt,Gt;if(!((Gt=(Zt=rt==null?void 0:rt.requirements)==null?void 0:Zt.fuels)!=null&&Gt.length))return null;const{endpoint:kt,value:Ct,address:It}=rt.requirements.fuels[0],bt=parseEndpoint(kt,Dt),Lt=Ct;let sn=Ct;const Ut={endpoint:bt,symbol:"",need:Lt,current:0,owe:Number(Lt)>0};try{const Yt=getChainClient(bt),{config:cn}=await getChainConfig(bt),En=JSON.parse(cn).token;let Ht=It;Ht||(Ht=En.address),dt({address:En.address,symbol:En.symbol,decimal:En.decimal});const{getAccountState:{state:Ot},getTokenState:{state:Kt}}=await Yt.doBatchQuery({getAccountState:{address:appId},getTokenState:{address:Ht}});Kt&&(Ut.symbol=Kt.symbol);const Xt=((Ot==null?void 0:Ot.tokens)||[]).find(an=>an.address===Ht);if(Xt){const an=lib$4.fromTokenToUnit(Lt,Xt.decimal||18);Ut.current=lib$4.fromUnitToToken(Xt.value,Xt.decimal||18),Ut.owe=an.gt(new lib$4.BN(Xt.value)),sn=Math.max(0,lib$4.fromUnitToToken(an.sub(new lib$4.BN(Xt.value)),Xt.decimal||18))}}catch(Yt){At&&Toast$1.error(Yt.message)}return ct({...Ut,deficiency:sn}),Ut},Mt=async({configs:At,childDid:kt})=>(await client$1.configBlocklet({input:{did:[did].concat(kt).filter(Boolean),configs:At}}),Nt()),wt=async At=>{const{blocklet:kt}=await client$1.updateWhoCanAccess({input:{did:[did],whoCanAccess:At}});nn(kt)},ft=async At=>{const{blocklet:kt}=await client$1.configPublicToStore({input:{did,publicToStore:At}});nn(kt)},ht=async At=>{const{blocklet:kt}=await client$1.configNavigations({input:{did,navigations:At}});nn(kt)};reactExports.useEffect(()=>{vt&&hn(),Nt({showError:!1})},[]),reactExports.useEffect(()=>{var At;(At=Dt==null?void 0:Dt.controller)!=null&&At.launcherSessionId&&client$1.getLauncherSession({input:{launcherSessionId:Dt.controller.launcherSessionId,launcherUrl:Dt.controller.launcherUrl}}).then(kt=>{mt(kt.launcherSession)}).catch(kt=>{console.error("get launcher session error",kt)})},[Dt==null?void 0:Dt.appPid]);const $t={loading:tt||Et,loadingDiskInfo:Rt,loadingRuntimeInfo:xt,error:_e||Pt,blocklet:Dt,launcherSession:pt,did,recommendedDomain:Ft,runtimeHistory:zt,appIdList:Dt?util$2.getBlockletAppIdList(Dt):[],env:window.blocklet||{},meta:rt,gas:ot,tokenInfo:ut,getPublicInstance,client:client$1,mode:j,actions:{refreshBlocklet:Nt,refreshDomainStatus:Vt,setBlocklet:nn,refreshMeta:hn,refreshFuel:Qt,configBlocklet:Mt,configWhoCanAccess:wt,configPublicToStore:ft,configNavigations:ht}};return jsxRuntimeExports.jsx(Provider$2,{value:$t,children:a})}BlockletProvider.propTypes={children:PropTypes.any,mode:PropTypes.oneOf(["dashboard","setup"]).isRequired};BlockletProvider.defaultProps={children:null};function useBlockletContext(){return reactExports.useContext(BlockletContext)}const NodeContext=reactExports.createContext({});function useNodeContext$1(){const{node:a}=reactExports.useContext(NodeContext);return{...a,inService:a.type==="service",inDaemon:a.type==="daemon"}}const{Provider:Provider$1,Consumer:Consumer$1}=NodeContext,imgPrefix=`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function NodeProvider({children:a}){const{serverDid:j,serverVersion:_e,mode:et,nftDomainUrl:tt,ownerNft:nt,launcher:rt}=window.env,it={api:client$1,restApi:api,prefix:constant$3.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix,getSessionInHeader:()=>({}),ws:{getWsClient,create,useSubscription},type:"service",info:{did:j,version:_e,mode:et,nftDomainUrl:tt,ownerNft:nt,launcher:rt}};return jsxRuntimeExports.jsx(Provider$1,{value:{node:it},children:a})}function useNodeContext(){const{node:a}=reactExports.useContext(NodeContext);return a}const NotificationContext=reactExports.createContext({}),{Provider,Consumer}=NotificationContext;function NotificationProvider({children:a}){const{did:j}=window.env,[_e,et]=reactExports.useState([]),[tt,nt]=reactExports.useState({total:0,pageSize:10,pageCount:0,page:1}),[rt,it]=reactExports.useState(!1),ot=async({page:ut=1}={})=>{if(!rt){it(!0);try{const dt=await client$1.getBlockletNotifications({input:{paging:{page:ut},teamDid:j}});et(dt.list),nt(dt.paging),it(!1)}catch(dt){Toast$1.error(dt.message),it(!1)}}};reactExports.useEffect(()=>{ot()},[]),useSubscription(constant$3.EVENTS.NOTIFICATION_BLOCKLET_CREATE,ut=>{et(dt=>[ut,...dt||[]])});const ct={loading:rt,refresh:ot,data:_e||[],paging:tt,api:client$1};return jsxRuntimeExports.jsx(Provider,{value:{notifications:ct},children:a})}function useNotificationContext(){const{notifications:a}=reactExports.useContext(NotificationContext);return a}const UserLogin=reactExports.lazy(()=>__vitePreload(()=>import("./login-BbFOUgLg.js"),__vite__mapDeps([0,1,2]))),UserLoginOAuthCallback=reactExports.lazy(()=>__vitePreload(()=>import("./login-oauth-callback-BhxSgaZ6.js"),__vite__mapDeps([3,4,5,6]))),Connect=reactExports.lazy(()=>__vitePreload(()=>import("./connect-BkHKwHTP.js"),__vite__mapDeps([7,8,1,9,10]))),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./exchange-passport-BL_VVwVP.js"),__vite__mapDeps([11,9,10,12]))),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./issue-passport-DjiRUYZ3.js"),__vite__mapDeps([13,14,15,1,16,17,18,12]))),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./lost-passport-CPNJQz4_.js"),__vite__mapDeps([19,18,20,21,22,10,12,1,23,6,24]))),Start=reactExports.lazy(()=>__vitePreload(()=>import("./start-Cy4f4eHt.js"),__vite__mapDeps([25,26,27,22,10,28,29,30,31]))),Setup=reactExports.lazy(()=>__vitePreload(()=>import("./setup-Btcaa_sk.js"),__vite__mapDeps([32,33,34,8,35,36,37,38,29,30,31,28]))),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./invite-Bv4ckLQM.js"),__vite__mapDeps([39,14,15,1,16,17,18,12]))),Transfer=reactExports.lazy(()=>__vitePreload(()=>import("./transfer-DcDmAqsy.js"),__vite__mapDeps([40,18,29,30,31]))),Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./dashboard-CuP4aWas.js").then(a=>a.m),__vite__mapDeps([41,42,43,44,45,46,5,6,47,26,48,49,50,51,52,53,23,16,54,55,56,10,57,4,58,59,38,60,30]))),UserCenter=reactExports.lazy(()=>__vitePreload(()=>import("./user-center-Cbrq0Bv3.js"),__vite__mapDeps([61,62,4,58,59,38,60,44,30,63,23,6,64,65,66,67,10,42,68,69,70,51,52,8,71,72,73,74,75,5,76,77,78,79,80,53,48,81,82,83,84,47]))),StudioHome=reactExports.lazy(()=>__vitePreload(()=>import("./home-BWWr9Pub.js"),__vite__mapDeps([85,86,58,59,38,4]))),StudioPreferences=reactExports.lazy(()=>__vitePreload(()=>import("./preferences-DmeQhObF.js"),__vite__mapDeps([87,88,86,58,59,38,4]))),StudioLocalization=reactExports.lazy(()=>__vitePreload(()=>import("./localization-CyfMl-JK.js"),__vite__mapDeps([89,86,58,59,38,4]))),AddResource=reactExports.lazy(()=>__vitePreload(()=>import("./add-resource-DOZyX8VM.js"),__vite__mapDeps([90,91,92,33,34,8,35,36,37,38,93,94,95,69,96,97,98,99,21,100,73,72,52,74,71,101,102,51,103,104,16,22,10,24,46,5,6,105,106,44,107,108,109,110,45,23,49,111,80,48,112,113,114,66,115,63,116,117,43,4,68,84,70,75,118,119]))),Publish=reactExports.lazy(()=>__vitePreload(()=>import("./publish-resource-CBxkMxOl.js"),__vite__mapDeps([120,121,106,122,47,27,77,78,79,80,51,52,72,53,74,48,71,73,42,81,59,82,83,84,68,44,56,45,46,5,6,16,22,10,123,23,110,124,31,57,97,125,35,8,63,65,126,108,105,107,21,109,49,111,117,75,70,101,102,127,24,50]))),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-DIdke58B.js"),[])),Unsubscribe=reactExports.lazy(()=>__vitePreload(()=>import("./unsubscribe-DAT0pcu-.js"),[])),OpenWindow=reactExports.lazy(()=>__vitePreload(()=>import("./open-window-BSOd9nWZ.js"),[]));function App(){var et;const a=useLocation(),{t:j}=useLocaleContext();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${a.pathname}${a.search}`)},[a]);const _e=jsxRuntimeExports.jsx(Center,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelmetExport,{children:jsxRuntimeExports.jsx("title",{children:j("pageTitle.dashboard")})}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:_e,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window`,element:jsxRuntimeExports.jsx(OpenWindow,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(LostPassport,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(IssuePassport,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:jsxRuntimeExports.jsx(UserLogin,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/callback/:provider`,element:jsxRuntimeExports.jsx(UserLoginOAuthCallback,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:jsxRuntimeExports.jsx(Connect,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(ExchangePassport,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(Invite,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:jsxRuntimeExports.jsx(Transfer,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:jsxRuntimeExports.jsx(StudioHome,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:jsxRuntimeExports.jsx(StudioPreferences,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:jsxRuntimeExports.jsx(StudioLocalization,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:jsxRuntimeExports.jsx(AuthProvider,{children:jsxRuntimeExports.jsx(Start,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:jsxRuntimeExports.jsx(BlockletProvider,{mode:"setup",children:jsxRuntimeExports.jsx(Setup,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:jsxRuntimeExports.jsx(Unsubscribe,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:jsxRuntimeExports.jsx(AuthProvider,{roles:["*"],children:jsxRuntimeExports.jsx(UserCenter,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:jsxRuntimeExports.jsx(AuthProvider,{roles:["*"],children:jsxRuntimeExports.jsx(UserCenter,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:jsxRuntimeExports.jsx(NodeProvider,{children:jsxRuntimeExports.jsx(NotificationProvider,{children:jsxRuntimeExports.jsx(AuthProvider,{roles:["owner","admin","member"],children:jsxRuntimeExports.jsx(BlockletProvider,{mode:"dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})})})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:jsxRuntimeExports.jsx(Navigate,{to:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:jsxRuntimeExports.jsx(NodeProvider,{children:jsxRuntimeExports.jsx(AuthProvider,{roles:((et=window.blocklet)==null?void 0:et.tenantMode)===constant$2.BLOCKLET_TENANT_MODES.MULTIPLE?["owner","admin","guest"]:["owner","admin"],children:jsxRuntimeExports.jsx(BlockletProvider,{mode:"dashboard",children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"add",element:jsxRuntimeExports.jsx(AddResource,{})}),jsxRuntimeExports.jsx(Route,{path:"publish/*",element:jsxRuntimeExports.jsx(Publish,{})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})})})})]})})]})}function AppWrapper(){return jsxRuntimeExports.jsx(BrowserRouter,{basename:PREFIX,children:jsxRuntimeExports.jsx(Root$1,{children:jsxRuntimeExports.jsx(App,{})})})}const root=createRoot(document.getElementById("app"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=constant$3.WELLKNOWN_SERVICE_PATH_PREFIX;{async function a(){const{register:j}=await __vitePreload(async()=>{const{register:_e}=await import("./index-DTEEl-sV.js");return{register:_e}},[]);j(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(_e){console.error("Error during service worker registration:",_e)}})}a()}export{useMediaQuery as $,AvatarWithErrorBoundary as A,Box as B,Center as C,DID as D,useSearchParams as E,constant$3 as F,Container$1 as G,HelmetExport as H,PoweredBy as I,DidConnect as J,getWebWalletUrl$1 as K,Link as L,getDIDColor as M,colors$1 as N,useReactive as O,PropTypes as P,useRequest as Q,createPassportSvg as R,SessionContext as S,Typography as T,isNumber$2 as U,useLatest as V,defaultDayjs as W,requireCreateSvgIcon as X,interopRequireDefaultExports as Y,newStyled as Z,__read as _,Tooltip as a,_arrayMap as a$,LocaleContext as a0,ButtonComponent as a1,__vitePreload as a2,isFunction$8 as a3,api as a4,client$1 as a5,getManageSubscriptionURL as a6,util$2 as a7,Global as a8,constant$2 as a9,LocaleProvider as aA,useLocation as aB,IconButton as aC,SessionUser as aD,generateUtilityClasses as aE,generateUtilityClass as aF,styled$1 as aG,capitalize$3 as aH,useDefaultProps as aI,_objectWithoutPropertiesLoose$1 as aJ,_extends$2 as aK,useSlotProps as aL,clsx$1 as aM,composeClasses as aN,ListContext as aO,useNodeContext$1 as aP,isDownloading as aQ,Menu as aR,Divider as aS,MenuItem as aT,getServerUrl as aU,sleep as aV,getLogoHash as aW,isInstalling as aX,useBlockletContext$1 as aY,getWalletType as aZ,_SetCache as a_,isSuspended as aa,Img as ab,isSuspendedByExpired as ac,isSuspendedByTerminated as ad,formatToDatetime as ae,calculateRetentionDate as af,css as ag,Paper as ah,useTheme$1 as ai,useBlockletContext as aj,getFromQuery as ak,saveServerUrl as al,hasRequiredEnvironments as am,PREFIX as an,NodeProvider as ao,Routes as ap,Route as aq,Navigate as ar,createSvgIcon$1 as as,Dialog as at,formatDateTime as au,getExplorerLink as av,patchJsxToLocale as aw,ResultWrapper as ax,be as ay,en$1 as az,Button$1 as b,pWaitFor$1 as b$,_baseUnary as b0,_arrayIncludes as b1,_arrayIncludesWith as b2,_cacheHas as b3,_baseFlatten as b4,_baseUniq as b5,_baseRest as b6,getDefaultExportFromCjs$1 as b7,_arrayFilter as b8,last_1 as b9,AUTH_SERVICE_PREFIX$1 as bA,SessionContext$1 as bB,noop$7 as bC,Icon as bD,data$5 as bE,isEmpty$1 as bF,translate as bG,LOGIN_PROVIDER_NAME as bH,data$i as bI,RelativeTime as bJ,PASSPORT_STATUS as bK,data$9 as bL,data$q as bM,getWalletDid$1 as bN,useConfirm as bO,OAUTH_PROVIDER as bP,LOGIN_PROVIDER$1 as bQ,data$e as bR,data$d as bS,data$c as bT,pick$2 as bU,useAsyncEffect as bV,getConnectedAccounts$1 as bW,getSourceProvider$1 as bX,LinearProgress as bY,sleep$3 as bZ,getQuery as b_,isArrayLikeObject_1 as ba,hasOwn$8 as bb,Emotion$1 as bc,createEmotionProps as bd,getSubscriptionUrlV2 as be,Chip as bf,dayjs$1 as bg,formatPrettyMsLocale as bh,Popover as bi,formatToDate as bj,List as bk,BlockletAdminRoles as bl,Popper as bm,ClickAwayListener as bn,useNotificationContext as bo,useNodeContext as bp,ErrorBoundary as bq,isServerless as br,colors$2 as bs,styled as bt,mergeProps as bu,useSubscription as bv,getWsClient as bw,useParams as bx,isFunction$3 as by,__assign as bz,joinURL as c,useControlled as c$,cloneDeep$1 as c0,useUpdateEffect as c1,axios$4 as c2,useUnmount as c3,util$4 as c4,Card as c5,CardHeader as c6,CardContent as c7,CardActions as c8,o as c9,ThemeProvider$4 as cA,getThemeProps$1 as cB,useEnhancedEffect$1 as cC,keyframes as cD,getUnit as cE,toUnitless as cF,alpha$1 as cG,ButtonBase as cH,debounce$5 as cI,ownerWindow as cJ,useRtl as cK,useEventCallback$1 as cL,ownerDocument as cM,isMuiElement as cN,isHostComponent as cO,useTheme$2 as cP,DialogTitle as cQ,DialogContent as cR,DialogActions as cS,Dialog$1 as cT,getListItemIconUtilityClass as cU,listItemTextClasses as cV,getListItemTextUtilityClass as cW,ButtonGroupContext as cX,ButtonGroupButtonContext as cY,rootShouldForwardProp as cZ,createChainedFunction$1 as c_,red as ca,darken_1 as cb,lighten_1 as cc,resolveComponentProps as cd,mergeSlotProps as ce,useForkRef as cf,appendOwnerState as cg,getPath$1 as ch,alpha_1 as ci,useIsFocusVisible as cj,BlockletSDK as ck,SvgIcon as cl,MenuList as cm,getColor as cn,getBackground as co,propTypesExports as cp,lodashExports as cq,commonjsRequire as cr,getAugmentedNamespace as cs,commonjsGlobal as ct,get$6 as cu,default_1$5 as cv,create$3 as cw,isObject$p as cx,StyledEngineProvider as cy,ThemeProvider$1 as cz,useSessionContext as d,private_safeAlpha_1 as d$,useId as d0,createTheme$3 as d1,styled$2 as d2,handleBreakpoints as d3,resolveBreakpointValues as d4,createUnarySpacing as d5,deepmerge$1 as d6,mergeBreakpointsInOrder as d7,extendSxProp as d8,useThemeProps as d9,PopoverPaper as dA,PopoverRoot as dB,getOffsetLeft as dC,getOffsetTop as dD,getPopoverUtilityClass as dE,popoverClasses as dF,emotionSerialize_esm as dG,emotionUtils_browser_esm as dH,emotionCache_browser_esm as dI,emotionReact_browser_esm as dJ,reactDomExports as dK,Close as dL,_baseIteratee as dM,isArrayLike_1 as dN,keys_1 as dO,_baseFindIndex as dP,toInteger_1 as dQ,sortBy$1 as dR,formatMuiErrorMessage$1 as dS,GlobalStyles$2 as dT,ThemeProvider$2 as dU,createSpacing as dV,createBreakpoints as dW,createTheme$1 as dX,private_safeDarken_1 as dY,private_safeLighten_1 as dZ,private_safeEmphasize_1 as d_,getValue$4 as da,Modal as db,Slide as dc,throttle$4 as dd,__spreadArray as de,useSize as df,default_1$7 as dg,NavLink as dh,matchPath as di,Fade as dj,getTranslation as dk,SessionPermission as dl,NAVIGATION_URL as dm,tslib_es6$1 as dn,loadIcon as dp,createTheme as dq,ThemeProvider as dr,withErrorBoundary as ds,omit$1 as dt,lib$4 as du,lib$1 as dv,require$$0 as dw,upperFirst$2 as dx,RELAY_SOCKET_PREFIX$1 as dy,Grow as dz,useNavigate as e,useDebounceFn as e$,private_safeColorChannel_1 as e0,defaultSxConfig as e1,styleFunctionSx$1 as e2,getOverlayAlpha as e3,hslToRgb_1 as e4,THEME_ID as e5,createTypography as e6,createMuiTheme as e7,darken$1 as e8,decomposeColor$1 as e9,global$2 as eA,hoistStatics as eB,GlobalStyles as eC,slotShouldForwardProp as eD,defaultTheme$2 as eE,objectAssign$1 as eF,React$2 as eG,useTheme$3 as eH,__awaiter as eI,__generator as eJ,getTargetElement as eK,useEventListener as eL,Buffer$3 as eM,require$$0$3 as eN,process$1$1 as eO,lib$2 as eP,urlPathFriendly$1 as eQ,cloneDeep_1 as eR,get_1 as eS,getWebWalletUrl as eT,extractStatusUrlFromNextWorkflow as eU,hasRequiredSteps$1 as eV,getStoreList as eW,_baseOrderBy as eX,isArray_1 as eY,st as eZ,parseQuery as e_,duration$2 as ea,easing as eb,emphasize$1 as ec,getContrastRatio$1 as ed,getLuminance$1 as ee,hexToRgb$1 as ef,hslToRgb$1 as eg,lighten$1 as eh,createMixins as ei,recomposeColor$1 as ej,responsiveFontSizes as ek,rgbToHex$1 as el,getPaperUtilityClass as em,paperClasses$1 as en,getIconButtonUtilityClass as eo,iconButtonClasses as ep,getTypographyUtilityClass as eq,typographyClasses$1 as er,chipClasses as es,getChipUtilityClass as et,buttonClasses as eu,getButtonUtilityClass as ev,getMenuItemUtilityClass as ew,menuItemClasses as ex,getTooltipUtilityClass as ey,tooltipClasses as ez,useBrowser as f,safeBufferExports as f$,createRoot as f0,formatRegistryLogoPath as f1,semver$1 as f2,getBlockletLogoUrl as f3,formatMountPoint as f4,isNil$1 as f5,flatten$3 as f6,_default as f7,getBlockletMetaUrl as f8,isNewStoreUrl as f9,_baseToString as fA,_baseTrim as fB,_castSlice as fC,_charsEndIndex as fD,_stringToArray as fE,toString_1 as fF,shouldCheckDomainStatus as fG,validateDomain as fH,require$$6 as fI,axios_1 as fJ,CopyButton as fK,checkIsWildcardDomain as fL,sortDomains as fM,getSystemDomains as fN,resolveProps as fO,Cookie as fP,getAccessUrl as fQ,data$j as fR,useUpdate as fS,tmp as fT,util$8 as fU,shams$1 as fV,callBound$3 as fW,objectKeys$3 as fX,hasPropertyDescriptors_1 as fY,defineDataProperty as fZ,callBindExports as f_,Check$1 as fa,createPassportSvg$2 as fb,normalizePathPrefix_1 as fc,engine as fd,camelCase$1 as fe,Confirm as ff,getPathPrefix as fg,nested as fh,identity_1 as fi,_baseForOwn as fj,_baseMap as fk,isString_1 as fl,isPlainObject_1 as fm,requireObjectWithoutPropertiesLoose as fn,_inheritsLoose$2 as fo,_assertThisInitialized$1 as fp,ClickToCopy as fq,emphasize_1 as fr,Collapse as fs,axios$1 as ft,isExtracting as fu,APP_PREFIX as fv,useSecurity as fw,hasRequiredSteps as fx,urlEvaluation as fy,_baseIndexOf as fz,getVisitorId$2 as g,forceReflow as g$,requireBrowser$9 as g0,requireElliptic as g1,requireCryptoBrowserify as g2,ripemd160 as g3,getInviteLink as g4,getIssuePassportLink as g5,getTextColor_1 as g6,isProtectedRole as g7,getChainClient as g8,isRunning as g9,__values as gA,isString$3 as gB,_setPrototypeOf as gC,filesize as gD,Icon$1 as gE,circularProgressClasses$1 as gF,getCircularProgressUtilityClass as gG,collapseClasses$1 as gH,getCollapseUtilityClass as gI,boxClasses as gJ,getIconUtilityClass as gK,iconClasses$1 as gL,getLinearProgressUtilityClass as gM,linearProgressClasses$1 as gN,getMenuUtilityClass as gO,menuClasses$1 as gP,require$$1$4 as gQ,Check as gR,TransitionGroup as gS,FocusTrap as gT,dialogClasses as gU,assertThisInitialized as gV,reactIsExports as gW,ReactDOM as gX,isValidClusterSize as gY,trimEnd$1 as gZ,normalizePathPrefix$1 as g_,getTransferAppLink as ga,isEqual$1 as gb,getBlockletUrl as gc,getBlockletUrlParams as gd,_copyArray as ge,DidAddressWrapper as gf,copy$1 as gg,setRef as gh,clamp$1 as gi,extractEventHandlers as gj,debounce_1 as gk,noop_1 as gl,formatTime as gm,hoistNonReactStatics_cjs as gn,isEqual_1$1 as go,pick_1$1 as gp,isNil_1 as gq,omit_1 as gr,isAbsoluteUrl$1 as gs,withoutTrailingSlash as gt,isString$1 as gu,isAbsoluteUrl$2 as gv,nanoid as gw,omitBy$1 as gx,isEqual$3 as gy,useEffectWithTarget$1 as gz,useCreation as h,Transition$1 as h0,_isIndex as h1,localizedFormatPlugin as h2,formatLocale as h3,_baseEach as h4,_baseAssignValue as h5,EventEmitter$6 as h6,pTimeout$2 as h7,TimeoutError_1 as h8,debounce$3 as h9,merge$2 as ha,uniq$1 as hb,Backdrop as hc,isUndefined$2 as i,jsxRuntimeExports as j,useMemoizedFn as k,useMount as l,CircularProgress as m,API_DID_PREFIX as n,AUTH_SERVICE_PREFIX as o,getMaster as p,getFederatedEnabled as q,reactExports as r,Toast$1 as s,setSessionToken as t,useLocaleContext as u,setRefreshToken as v,withQuery as w,setVisitorId as x,updateConnectedInfo as y,default_1$3 as z};
1293
+ In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isRepeatable",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"locations",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"ENUM",name:"__DirectiveLocation",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"args",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",fields:null,inputFields:null,interfaces:null,enumValues:[{name:"QUERY",description:"Location adjacent to a query operation.",isDeprecated:!1,deprecationReason:null},{name:"MUTATION",description:"Location adjacent to a mutation operation.",isDeprecated:!1,deprecationReason:null},{name:"SUBSCRIPTION",description:"Location adjacent to a subscription operation.",isDeprecated:!1,deprecationReason:null},{name:"FIELD",description:"Location adjacent to a field.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_DEFINITION",description:"Location adjacent to a fragment definition.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_SPREAD",description:"Location adjacent to a fragment spread.",isDeprecated:!1,deprecationReason:null},{name:"INLINE_FRAGMENT",description:"Location adjacent to an inline fragment.",isDeprecated:!1,deprecationReason:null},{name:"VARIABLE_DEFINITION",description:"Location adjacent to a variable definition.",isDeprecated:!1,deprecationReason:null},{name:"SCHEMA",description:"Location adjacent to a schema definition.",isDeprecated:!1,deprecationReason:null},{name:"SCALAR",description:"Location adjacent to a scalar definition.",isDeprecated:!1,deprecationReason:null},{name:"OBJECT",description:"Location adjacent to an object type definition.",isDeprecated:!1,deprecationReason:null},{name:"FIELD_DEFINITION",description:"Location adjacent to a field definition.",isDeprecated:!1,deprecationReason:null},{name:"ARGUMENT_DEFINITION",description:"Location adjacent to an argument definition.",isDeprecated:!1,deprecationReason:null},{name:"INTERFACE",description:"Location adjacent to an interface definition.",isDeprecated:!1,deprecationReason:null},{name:"UNION",description:"Location adjacent to a union definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM",description:"Location adjacent to an enum definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM_VALUE",description:"Location adjacent to an enum value definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_OBJECT",description:"Location adjacent to an input object type definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_FIELD_DEFINITION",description:"Location adjacent to an input object field definition.",isDeprecated:!1,deprecationReason:null}],possibleTypes:null}],directives=[{name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Included when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Skipped when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:["FIELD_DEFINITION","ARGUMENT_DEFINITION","INPUT_FIELD_DEFINITION","ENUM_VALUE"],args:[{name:"reason",description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:'"No longer supported"'}]},{name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:["SCALAR"],args:[{name:"url",description:"The URL that specifies the behavior of this scalar.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},defaultValue:null}]}],require$$4={queryType,mutationType,subscriptionType,types,directives},BaseClient=dist,schema=require$$4;let ABTNodeClient$1=class extends BaseClient{constructor(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"http://localhost:4000/api",_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const et={dataSource:"forge",httpEndpoint:j,socketEndpoint:()=>this._getSocketEndpoint(j),enableQuery:!0,enableSubscription:!0,enableMutation:!0,maxQueryDepth:6};super(et),this._endpoint=j,this._authToken=null,this._userAgent=_e}setAuthToken(j){this._authToken=j}_getSocketEndpoint(j){let _e=j.replace(/https?:\/\//,"ws://");return j.indexOf("https://")===0&&(_e=_e.replace("ws://","wss://")),"".concat(_e,"/socket")}_getSchema(){return schema}_getIgnoreFields(j){return[]}_getAuthHeaders(){const j={},_e=this._authToken;if(_e){const et=typeof _e=="function"?_e():_e;j.Authorization="Bearer ".concat(encodeURIComponent(et))}if(typeof window<"u"&&typeof window.location<"u"){const{hostname:et,port:tt,protocol:nt}=window.location;j["x-real-hostname"]=et,j["x-real-port"]=tt,j["x-real-protocol"]=nt.endsWith(":")?nt.substring(0,nt.length-1):nt}return this._userAgent&&(j["User-Agent"]=this._userAgent),j}};var base=ABTNodeClient$1;const EventEmitter=eventemitter3Exports,ABTNodeClient=base;class BrowserABTNodeClient extends ABTNodeClient{_getSocketOptions(){return{}}_getEventImplementation(){return EventEmitter}}var browser=BrowserABTNodeClient;const NodeClient=getDefaultExportFromCjs$1(browser),prefix$1=(window.env?window.env.apiPrefix:"/")||"/",client$1=new NodeClient(()=>`${prefix$1}/api/gql?locale=${getLocale()}`.replace(/\/+/g,"/").trim());function useSubscription$1({wsClient:a,event:j,cb:_e=()=>{},deps:et=[]}){reactExports.useEffect(()=>{const tt=a&&(!et.length||et.every(Boolean));return tt&&a.on(j,_e),()=>{tt&&a.off(j,_e)}},et)}let client;function create(){const a=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),j=`//${window.location.host}${a}/admin`;return new browser$3.WsClient(j,{heartbeatIntervalMs:100*1e3,params:()=>({token:Cookie.get("login_token")})})}function getWsClient(){return client||(client=create()),client}const useSubscription=(a,j=()=>{},_e=[])=>{a=`${window.blocklet.did}/${a}`;const{session:et}=useSessionContext();!client&&et.user&&(client=getWsClient(),client.connect()),useSubscription$1({wsClient:client,event:a,cb:j,deps:_e})};let cache=null;const fetch$1=async()=>{try{return(await api.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},getIp=()=>(cache||(cache=fetch$1()),cache),{Provider:Provider$2,Consumer:Consumer$2}=BlockletContext,getPublicInstance=a=>a&&get$6(a,"settings.publicToStore")?a.settings.publicToStore:!1,parseEndpoint=(a,j)=>{const _e=/^{env\.(.+)}$/.exec(a);if(_e&&_e[1]){const et=((j==null?void 0:j.configs)||[]).find(tt=>tt.key===_e[1]);return!et&&!et.value?"":et.value}return a},getChainConfig=(()=>{const a={endpoint:"",data:{}};return async j=>{if(a.endpoint===j)return a.data;const et=await getChainClient(j).getConfig();return a.endpoint=j,a.data=et,et}})(),{did,appId}=window.env;function BlockletProvider({children:a,mode:j}){var Tt;const[_e,et]=reactExports.useState(null),[tt,nt]=reactExports.useState(!1),[rt,it]=reactExports.useState({}),[ot,ct]=reactExports.useState(),[ut,dt]=reactExports.useState(),[pt,mt]=reactExports.useState(),vt=j==="setup",{loading:Et,loadingDiskInfo:Rt,loadingRuntimeInfo:xt,error:Pt,blocklet:Dt,recommendedDomain:Ft,runtimeHistory:zt,actions:{refreshBlocklet:Nt,refreshDomainStatus:Vt,setBlocklet:nn}}=useBlocklet({did,client:client$1,useSubscription,getIP:getIp,useLocaleContext,getOptionalComponents:!0}),fn=reactExports.useRef(void 0);fn.current=(Tt=Dt==null?void 0:Dt.meta)==null?void 0:Tt.did;const hn=async()=>{try{nt(!0),et(null);const{data:At}=await api.get("/blocklet/meta");it(At),nt(!1)}catch(At){nt(!1),et(At),Toast$1.error(At.message)}},Qt=async({showError:At=!0}={})=>{var Zt,Gt;if(!((Gt=(Zt=rt==null?void 0:rt.requirements)==null?void 0:Zt.fuels)!=null&&Gt.length))return null;const{endpoint:kt,value:Ct,address:It}=rt.requirements.fuels[0],bt=parseEndpoint(kt,Dt),Lt=Ct;let sn=Ct;const Ut={endpoint:bt,symbol:"",need:Lt,current:0,owe:Number(Lt)>0};try{const Yt=getChainClient(bt),{config:cn}=await getChainConfig(bt),En=JSON.parse(cn).token;let Ht=It;Ht||(Ht=En.address),dt({address:En.address,symbol:En.symbol,decimal:En.decimal});const{getAccountState:{state:Ot},getTokenState:{state:Kt}}=await Yt.doBatchQuery({getAccountState:{address:appId},getTokenState:{address:Ht}});Kt&&(Ut.symbol=Kt.symbol);const Xt=((Ot==null?void 0:Ot.tokens)||[]).find(an=>an.address===Ht);if(Xt){const an=lib$4.fromTokenToUnit(Lt,Xt.decimal||18);Ut.current=lib$4.fromUnitToToken(Xt.value,Xt.decimal||18),Ut.owe=an.gt(new lib$4.BN(Xt.value)),sn=Math.max(0,lib$4.fromUnitToToken(an.sub(new lib$4.BN(Xt.value)),Xt.decimal||18))}}catch(Yt){At&&Toast$1.error(Yt.message)}return ct({...Ut,deficiency:sn}),Ut},Mt=async({configs:At,childDid:kt})=>(await client$1.configBlocklet({input:{did:[did].concat(kt).filter(Boolean),configs:At}}),Nt()),wt=async At=>{const{blocklet:kt}=await client$1.updateWhoCanAccess({input:{did:[did],whoCanAccess:At}});nn(kt)},ft=async At=>{const{blocklet:kt}=await client$1.configPublicToStore({input:{did,publicToStore:At}});nn(kt)},ht=async At=>{const{blocklet:kt}=await client$1.configNavigations({input:{did,navigations:At}});nn(kt)};reactExports.useEffect(()=>{vt&&hn(),Nt({showError:!1})},[]),reactExports.useEffect(()=>{var At;(At=Dt==null?void 0:Dt.controller)!=null&&At.launcherSessionId&&client$1.getLauncherSession({input:{launcherSessionId:Dt.controller.launcherSessionId,launcherUrl:Dt.controller.launcherUrl}}).then(kt=>{mt(kt.launcherSession)}).catch(kt=>{console.error("get launcher session error",kt)})},[Dt==null?void 0:Dt.appPid]);const $t={loading:tt||Et,loadingDiskInfo:Rt,loadingRuntimeInfo:xt,error:_e||Pt,blocklet:Dt,launcherSession:pt,did,recommendedDomain:Ft,runtimeHistory:zt,appIdList:Dt?util$2.getBlockletAppIdList(Dt):[],env:window.blocklet||{},meta:rt,gas:ot,tokenInfo:ut,getPublicInstance,client:client$1,mode:j,actions:{refreshBlocklet:Nt,refreshDomainStatus:Vt,setBlocklet:nn,refreshMeta:hn,refreshFuel:Qt,configBlocklet:Mt,configWhoCanAccess:wt,configPublicToStore:ft,configNavigations:ht}};return jsxRuntimeExports.jsx(Provider$2,{value:$t,children:a})}BlockletProvider.propTypes={children:PropTypes.any,mode:PropTypes.oneOf(["dashboard","setup"]).isRequired};BlockletProvider.defaultProps={children:null};function useBlockletContext(){return reactExports.useContext(BlockletContext)}const NodeContext=reactExports.createContext({});function useNodeContext$1(){const{node:a}=reactExports.useContext(NodeContext);return{...a,inService:a.type==="service",inDaemon:a.type==="daemon"}}const{Provider:Provider$1,Consumer:Consumer$1}=NodeContext,imgPrefix=`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function NodeProvider({children:a}){const{serverDid:j,serverVersion:_e,mode:et,nftDomainUrl:tt,ownerNft:nt,launcher:rt}=window.env,it={api:client$1,restApi:api,prefix:constant$3.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix,getSessionInHeader:()=>({}),ws:{getWsClient,create,useSubscription},type:"service",info:{did:j,version:_e,mode:et,nftDomainUrl:tt,ownerNft:nt,launcher:rt}};return jsxRuntimeExports.jsx(Provider$1,{value:{node:it},children:a})}function useNodeContext(){const{node:a}=reactExports.useContext(NodeContext);return a}const NotificationContext=reactExports.createContext({}),{Provider,Consumer}=NotificationContext;function NotificationProvider({children:a}){const{did:j}=window.env,[_e,et]=reactExports.useState([]),[tt,nt]=reactExports.useState({total:0,pageSize:10,pageCount:0,page:1}),[rt,it]=reactExports.useState(!1),ot=async({page:ut=1}={})=>{if(!rt){it(!0);try{const dt=await client$1.getBlockletNotifications({input:{paging:{page:ut},teamDid:j}});et(dt.list),nt(dt.paging),it(!1)}catch(dt){Toast$1.error(dt.message),it(!1)}}};reactExports.useEffect(()=>{ot()},[]),useSubscription(constant$3.EVENTS.NOTIFICATION_BLOCKLET_CREATE,ut=>{et(dt=>[ut,...dt||[]])});const ct={loading:rt,refresh:ot,data:_e||[],paging:tt,api:client$1};return jsxRuntimeExports.jsx(Provider,{value:{notifications:ct},children:a})}function useNotificationContext(){const{notifications:a}=reactExports.useContext(NotificationContext);return a}const UserLogin=reactExports.lazy(()=>__vitePreload(()=>import("./login-CN16WkWc.js"),__vite__mapDeps([0,1,2]))),UserLoginOAuthCallback=reactExports.lazy(()=>__vitePreload(()=>import("./login-oauth-callback-2ujdQmZH.js"),__vite__mapDeps([3,4,5,6]))),Connect=reactExports.lazy(()=>__vitePreload(()=>import("./connect-31ih5dtl.js"),__vite__mapDeps([7,8,1,9,10]))),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./exchange-passport-BVVa20rU.js"),__vite__mapDeps([11,9,10,12]))),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./issue-passport-C8WI5I2r.js"),__vite__mapDeps([13,14,15,1,16,17,18,12]))),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./lost-passport-CPnepwqM.js"),__vite__mapDeps([19,18,20,21,22,10,12,1,23,6,24]))),Start=reactExports.lazy(()=>__vitePreload(()=>import("./start-DfU9ilW5.js"),__vite__mapDeps([25,26,27,22,10,28,29,30,31]))),Setup=reactExports.lazy(()=>__vitePreload(()=>import("./setup-Cq2NZKc3.js"),__vite__mapDeps([32,33,34,8,35,36,37,38,29,30,31,28]))),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./invite-COB2td-Z.js"),__vite__mapDeps([39,14,15,1,16,17,18,12]))),Transfer=reactExports.lazy(()=>__vitePreload(()=>import("./transfer-BTtIrW0g.js"),__vite__mapDeps([40,18,29,30,31]))),Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./dashboard-WQeB59iZ.js").then(a=>a.m),__vite__mapDeps([41,42,43,44,45,46,5,6,47,26,48,49,50,51,52,53,23,16,54,55,56,10,57,4,58,59,38,60,30]))),UserCenter=reactExports.lazy(()=>__vitePreload(()=>import("./user-center-CKSVKtEg.js"),__vite__mapDeps([61,62,4,58,59,38,60,44,30,63,23,6,64,65,66,67,10,42,68,69,70,51,52,8,71,72,73,74,75,5,76,77,78,79,80,53,48,81,82,83,84,47]))),StudioHome=reactExports.lazy(()=>__vitePreload(()=>import("./home-DRLEBJrk.js"),__vite__mapDeps([85,86,58,59,38,4]))),StudioPreferences=reactExports.lazy(()=>__vitePreload(()=>import("./preferences-COQfVvgo.js"),__vite__mapDeps([87,88,86,58,59,38,4]))),StudioLocalization=reactExports.lazy(()=>__vitePreload(()=>import("./localization-DQx8Ct-X.js"),__vite__mapDeps([89,86,58,59,38,4]))),AddResource=reactExports.lazy(()=>__vitePreload(()=>import("./add-resource-C-yDv8nK.js"),__vite__mapDeps([90,91,92,33,34,8,35,36,37,38,93,94,95,69,96,97,98,99,21,100,73,72,52,74,71,101,102,51,103,104,16,22,10,24,46,5,6,105,106,44,107,108,109,110,45,23,49,111,80,48,112,113,114,66,115,63,116,117,43,4,68,84,70,75,118,119]))),Publish=reactExports.lazy(()=>__vitePreload(()=>import("./publish-resource-D7CEW6PO.js"),__vite__mapDeps([120,121,106,122,47,27,77,78,79,80,51,52,72,53,74,48,71,73,42,81,59,82,83,84,68,44,56,45,46,5,6,16,22,10,123,23,110,124,31,57,97,125,35,8,63,65,126,108,105,107,21,109,49,111,117,75,70,101,102,127,24,50]))),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-Dt07hFjg.js"),[])),Unsubscribe=reactExports.lazy(()=>__vitePreload(()=>import("./unsubscribe-Bl9PzG7o.js"),[])),OpenWindow=reactExports.lazy(()=>__vitePreload(()=>import("./open-window-BPoK7T-M.js"),[]));function App(){var et;const a=useLocation(),{t:j}=useLocaleContext();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${a.pathname}${a.search}`)},[a]);const _e=jsxRuntimeExports.jsx(Center,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelmetExport,{children:jsxRuntimeExports.jsx("title",{children:j("pageTitle.dashboard")})}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:_e,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window`,element:jsxRuntimeExports.jsx(OpenWindow,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(LostPassport,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(IssuePassport,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:jsxRuntimeExports.jsx(UserLogin,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/callback/:provider`,element:jsxRuntimeExports.jsx(UserLoginOAuthCallback,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:jsxRuntimeExports.jsx(Connect,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(ExchangePassport,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(Invite,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:jsxRuntimeExports.jsx(Transfer,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:jsxRuntimeExports.jsx(StudioHome,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:jsxRuntimeExports.jsx(StudioPreferences,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:jsxRuntimeExports.jsx(StudioLocalization,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:jsxRuntimeExports.jsx(AuthProvider,{children:jsxRuntimeExports.jsx(Start,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:jsxRuntimeExports.jsx(BlockletProvider,{mode:"setup",children:jsxRuntimeExports.jsx(Setup,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:jsxRuntimeExports.jsx(Unsubscribe,{})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:jsxRuntimeExports.jsx(AuthProvider,{roles:["*"],children:jsxRuntimeExports.jsx(UserCenter,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:jsxRuntimeExports.jsx(AuthProvider,{roles:["*"],children:jsxRuntimeExports.jsx(UserCenter,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:jsxRuntimeExports.jsx(NodeProvider,{children:jsxRuntimeExports.jsx(NotificationProvider,{children:jsxRuntimeExports.jsx(AuthProvider,{roles:["owner","admin","member"],children:jsxRuntimeExports.jsx(BlockletProvider,{mode:"dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})})})})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:jsxRuntimeExports.jsx(Navigate,{to:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),jsxRuntimeExports.jsx(Route,{path:`${constant$3.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:jsxRuntimeExports.jsx(NodeProvider,{children:jsxRuntimeExports.jsx(AuthProvider,{roles:((et=window.blocklet)==null?void 0:et.tenantMode)===constant$2.BLOCKLET_TENANT_MODES.MULTIPLE?["owner","admin","guest"]:["owner","admin"],children:jsxRuntimeExports.jsx(BlockletProvider,{mode:"dashboard",children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"add",element:jsxRuntimeExports.jsx(AddResource,{})}),jsxRuntimeExports.jsx(Route,{path:"publish/*",element:jsxRuntimeExports.jsx(Publish,{})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})})})})]})})]})}function AppWrapper(){return jsxRuntimeExports.jsx(BrowserRouter,{basename:PREFIX,children:jsxRuntimeExports.jsx(Root$1,{children:jsxRuntimeExports.jsx(App,{})})})}const root=createRoot(document.getElementById("app"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=constant$3.WELLKNOWN_SERVICE_PATH_PREFIX;{async function a(){const{register:j}=await __vitePreload(async()=>{const{register:_e}=await import("./index-DTEEl-sV.js");return{register:_e}},[]);j(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(_e){console.error("Error during service worker registration:",_e)}})}a()}export{useMediaQuery as $,AvatarWithErrorBoundary as A,Box as B,Center as C,DID as D,useSearchParams as E,constant$3 as F,Container$1 as G,HelmetExport as H,PoweredBy as I,DidConnect as J,getWebWalletUrl$1 as K,Link as L,getDIDColor as M,colors$1 as N,useReactive as O,PropTypes as P,useRequest as Q,createPassportSvg as R,SessionContext as S,Typography as T,isNumber$2 as U,useLatest as V,defaultDayjs as W,requireCreateSvgIcon as X,interopRequireDefaultExports as Y,newStyled as Z,__read as _,Tooltip as a,_arrayMap as a$,LocaleContext as a0,ButtonComponent as a1,__vitePreload as a2,isFunction$8 as a3,api as a4,client$1 as a5,getManageSubscriptionURL as a6,util$2 as a7,Global as a8,constant$2 as a9,LocaleProvider as aA,useLocation as aB,IconButton as aC,SessionUser as aD,generateUtilityClasses as aE,generateUtilityClass as aF,styled$1 as aG,capitalize$3 as aH,useDefaultProps as aI,_objectWithoutPropertiesLoose$1 as aJ,_extends$2 as aK,useSlotProps as aL,clsx$1 as aM,composeClasses as aN,ListContext as aO,useNodeContext$1 as aP,isDownloading as aQ,Menu as aR,Divider as aS,MenuItem as aT,getServerUrl as aU,sleep as aV,getLogoHash as aW,isInstalling as aX,useBlockletContext$1 as aY,getWalletType as aZ,_SetCache as a_,isSuspended as aa,Img as ab,isSuspendedByExpired as ac,isSuspendedByTerminated as ad,formatToDatetime as ae,calculateRetentionDate as af,css as ag,Paper as ah,useTheme$1 as ai,useBlockletContext as aj,getFromQuery as ak,saveServerUrl as al,hasRequiredEnvironments as am,PREFIX as an,NodeProvider as ao,Routes as ap,Route as aq,Navigate as ar,createSvgIcon$1 as as,Dialog as at,formatDateTime as au,getExplorerLink as av,patchJsxToLocale as aw,ResultWrapper as ax,be as ay,en$1 as az,Button$1 as b,getQuery as b$,_baseUnary as b0,_arrayIncludes as b1,_arrayIncludesWith as b2,_cacheHas as b3,_baseFlatten as b4,_baseUniq as b5,_baseRest as b6,getDefaultExportFromCjs$1 as b7,_arrayFilter as b8,last_1 as b9,lib as bA,AUTH_SERVICE_PREFIX$1 as bB,SessionContext$1 as bC,noop$7 as bD,Icon as bE,data$5 as bF,isEmpty$1 as bG,translate as bH,LOGIN_PROVIDER_NAME as bI,data$i as bJ,RelativeTime as bK,PASSPORT_STATUS as bL,data$9 as bM,data$q as bN,getWalletDid$1 as bO,useConfirm as bP,OAUTH_PROVIDER as bQ,LOGIN_PROVIDER$1 as bR,data$e as bS,data$d as bT,data$c as bU,pick$2 as bV,useAsyncEffect as bW,getConnectedAccounts$1 as bX,getSourceProvider$1 as bY,LinearProgress as bZ,sleep$3 as b_,isArrayLikeObject_1 as ba,hasOwn$8 as bb,Emotion$1 as bc,createEmotionProps as bd,getSubscriptionUrlV2 as be,Chip as bf,dayjs$1 as bg,formatPrettyMsLocale as bh,Popover as bi,formatToDate as bj,List as bk,BlockletAdminRoles as bl,Popper as bm,ClickAwayListener as bn,useNotificationContext as bo,useNodeContext as bp,ErrorBoundary as bq,isServerless as br,colors$2 as bs,styled as bt,mergeProps as bu,useSubscription as bv,getWsClient as bw,useParams as bx,isFunction$3 as by,__assign as bz,joinURL as c,createChainedFunction$1 as c$,pWaitFor$1 as c0,cloneDeep$1 as c1,useUpdateEffect as c2,axios$4 as c3,useUnmount as c4,util$4 as c5,Card as c6,CardHeader as c7,CardContent as c8,CardActions as c9,ThemeProvider$1 as cA,ThemeProvider$4 as cB,getThemeProps$1 as cC,useEnhancedEffect$1 as cD,keyframes as cE,getUnit as cF,toUnitless as cG,alpha$1 as cH,ButtonBase as cI,debounce$5 as cJ,ownerWindow as cK,useRtl as cL,useEventCallback$1 as cM,ownerDocument as cN,isMuiElement as cO,isHostComponent as cP,useTheme$2 as cQ,DialogTitle as cR,DialogContent as cS,DialogActions as cT,Dialog$1 as cU,getListItemIconUtilityClass as cV,listItemTextClasses as cW,getListItemTextUtilityClass as cX,ButtonGroupContext as cY,ButtonGroupButtonContext as cZ,rootShouldForwardProp as c_,o as ca,red as cb,darken_1 as cc,lighten_1 as cd,resolveComponentProps as ce,mergeSlotProps as cf,useForkRef as cg,appendOwnerState as ch,getPath$1 as ci,alpha_1 as cj,useIsFocusVisible as ck,BlockletSDK as cl,SvgIcon as cm,MenuList as cn,getColor as co,getBackground as cp,propTypesExports as cq,lodashExports as cr,commonjsRequire as cs,getAugmentedNamespace as ct,commonjsGlobal as cu,get$6 as cv,default_1$5 as cw,create$3 as cx,isObject$p as cy,StyledEngineProvider as cz,useSessionContext as d,defaultSxConfig as d$,useControlled as d0,useId as d1,createTheme$3 as d2,styled$2 as d3,handleBreakpoints as d4,resolveBreakpointValues as d5,createUnarySpacing as d6,deepmerge$1 as d7,mergeBreakpointsInOrder as d8,extendSxProp as d9,getOffsetLeft as dA,getOffsetTop as dB,getPopoverUtilityClass as dC,popoverClasses as dD,emotionSerialize_esm as dE,emotionUtils_browser_esm as dF,emotionCache_browser_esm as dG,emotionReact_browser_esm as dH,reactDomExports as dI,Close as dJ,_baseIteratee as dK,isArrayLike_1 as dL,keys_1 as dM,_baseFindIndex as dN,toInteger_1 as dO,sortBy$1 as dP,formatMuiErrorMessage$1 as dQ,GlobalStyles$2 as dR,ThemeProvider$2 as dS,createSpacing as dT,createBreakpoints as dU,createTheme$1 as dV,private_safeDarken_1 as dW,private_safeLighten_1 as dX,private_safeEmphasize_1 as dY,private_safeAlpha_1 as dZ,private_safeColorChannel_1 as d_,useThemeProps as da,getValue$4 as db,Modal as dc,Slide as dd,throttle$4 as de,__spreadArray as df,useSize as dg,default_1$7 as dh,NavLink as di,matchPath as dj,Fade as dk,getTranslation as dl,SessionPermission as dm,NAVIGATION_URL as dn,tslib_es6$1 as dp,loadIcon as dq,createTheme as dr,ThemeProvider as ds,withErrorBoundary as dt,omit$1 as du,upperFirst$2 as dv,RELAY_SOCKET_PREFIX$1 as dw,Grow as dx,PopoverPaper as dy,PopoverRoot as dz,useNavigate as e,useDebounceFn as e$,styleFunctionSx$1 as e0,getOverlayAlpha as e1,hslToRgb_1 as e2,THEME_ID as e3,createTypography as e4,createMuiTheme as e5,darken$1 as e6,decomposeColor$1 as e7,duration$2 as e8,easing as e9,GlobalStyles as eA,slotShouldForwardProp as eB,defaultTheme$2 as eC,objectAssign$1 as eD,React$2 as eE,useTheme$3 as eF,__awaiter as eG,__generator as eH,getTargetElement as eI,useEventListener as eJ,Buffer$3 as eK,require$$0$3 as eL,process$1$1 as eM,lib$1 as eN,lib$4 as eO,lib$2 as eP,urlPathFriendly$1 as eQ,cloneDeep_1 as eR,get_1 as eS,getWebWalletUrl as eT,extractStatusUrlFromNextWorkflow as eU,hasRequiredSteps$1 as eV,getStoreList as eW,_baseOrderBy as eX,isArray_1 as eY,st as eZ,parseQuery as e_,emphasize$1 as ea,getContrastRatio$1 as eb,getLuminance$1 as ec,hexToRgb$1 as ed,hslToRgb$1 as ee,lighten$1 as ef,createMixins as eg,recomposeColor$1 as eh,responsiveFontSizes as ei,rgbToHex$1 as ej,getPaperUtilityClass as ek,paperClasses$1 as el,getIconButtonUtilityClass as em,iconButtonClasses as en,getTypographyUtilityClass as eo,typographyClasses$1 as ep,chipClasses as eq,getChipUtilityClass as er,buttonClasses as es,getButtonUtilityClass as et,getMenuItemUtilityClass as eu,menuItemClasses as ev,getTooltipUtilityClass as ew,tooltipClasses as ex,global$2 as ey,hoistStatics as ez,useBrowser as f,safeBufferExports as f$,createRoot as f0,formatRegistryLogoPath as f1,semver$1 as f2,getBlockletLogoUrl as f3,formatMountPoint as f4,isNil$1 as f5,flatten$3 as f6,_default as f7,getBlockletMetaUrl as f8,isNewStoreUrl as f9,_baseToString as fA,_baseTrim as fB,_castSlice as fC,_charsEndIndex as fD,_stringToArray as fE,toString_1 as fF,shouldCheckDomainStatus as fG,validateDomain as fH,require$$6 as fI,axios_1 as fJ,CopyButton as fK,checkIsWildcardDomain as fL,sortDomains as fM,getSystemDomains as fN,resolveProps as fO,Cookie as fP,getAccessUrl as fQ,data$j as fR,useUpdate as fS,tmp as fT,util$8 as fU,shams$1 as fV,callBound$3 as fW,objectKeys$3 as fX,hasPropertyDescriptors_1 as fY,defineDataProperty as fZ,callBindExports as f_,Check$1 as fa,createPassportSvg$2 as fb,normalizePathPrefix_1 as fc,engine as fd,camelCase$1 as fe,Confirm as ff,getPathPrefix as fg,nested as fh,identity_1 as fi,_baseForOwn as fj,_baseMap as fk,isString_1 as fl,isPlainObject_1 as fm,requireObjectWithoutPropertiesLoose as fn,_inheritsLoose$2 as fo,_assertThisInitialized$1 as fp,ClickToCopy as fq,emphasize_1 as fr,Collapse as fs,axios$1 as ft,isExtracting as fu,APP_PREFIX as fv,useSecurity as fw,hasRequiredSteps as fx,urlEvaluation as fy,_baseIndexOf as fz,getVisitorId$2 as g,forceReflow as g$,requireBrowser$9 as g0,requireElliptic as g1,requireCryptoBrowserify as g2,ripemd160 as g3,getInviteLink as g4,getIssuePassportLink as g5,getTextColor_1 as g6,isProtectedRole as g7,getChainClient as g8,isRunning as g9,__values as gA,isString$3 as gB,_setPrototypeOf as gC,filesize as gD,Icon$1 as gE,circularProgressClasses$1 as gF,getCircularProgressUtilityClass as gG,collapseClasses$1 as gH,getCollapseUtilityClass as gI,boxClasses as gJ,getIconUtilityClass as gK,iconClasses$1 as gL,getLinearProgressUtilityClass as gM,linearProgressClasses$1 as gN,getMenuUtilityClass as gO,menuClasses$1 as gP,require$$1$4 as gQ,Check as gR,TransitionGroup as gS,FocusTrap as gT,dialogClasses as gU,assertThisInitialized as gV,reactIsExports as gW,ReactDOM as gX,isValidClusterSize as gY,trimEnd$1 as gZ,normalizePathPrefix$1 as g_,getTransferAppLink as ga,isEqual$1 as gb,getBlockletUrl as gc,getBlockletUrlParams as gd,_copyArray as ge,DidAddressWrapper as gf,copy$1 as gg,setRef as gh,clamp$1 as gi,extractEventHandlers as gj,debounce_1 as gk,noop_1 as gl,formatTime as gm,hoistNonReactStatics_cjs as gn,isEqual_1$1 as go,pick_1$1 as gp,isNil_1 as gq,omit_1 as gr,isAbsoluteUrl$1 as gs,withoutTrailingSlash as gt,isString$1 as gu,isAbsoluteUrl$2 as gv,nanoid as gw,omitBy$1 as gx,isEqual$3 as gy,useEffectWithTarget$1 as gz,useCreation as h,Transition$1 as h0,_isIndex as h1,localizedFormatPlugin as h2,formatLocale as h3,_baseEach as h4,_baseAssignValue as h5,EventEmitter$6 as h6,pTimeout$2 as h7,TimeoutError_1 as h8,debounce$3 as h9,merge$2 as ha,uniq$1 as hb,Backdrop as hc,isUndefined$2 as i,jsxRuntimeExports as j,useMemoizedFn as k,useMount as l,CircularProgress as m,API_DID_PREFIX as n,AUTH_SERVICE_PREFIX as o,getMaster as p,getFederatedEnabled as q,reactExports as r,Toast$1 as s,setSessionToken as t,useLocaleContext as u,setRefreshToken as v,withQuery as w,setVisitorId as x,updateConnectedInfo as y,default_1$3 as z};