@abtnode/blocklet-services 1.16.33-beta-20241031-073543-49b1ff9b → 1.16.33-beta-20241031-230002-b46137ba

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 (225) hide show
  1. package/api/libs/connect/session.js +3 -3
  2. package/api/libs/kyc.js +5 -5
  3. package/api/routes/user.js +9 -1
  4. package/api/services/auth/connect/invite.js +1 -1
  5. package/api/services/auth/connect/login.js +2 -1
  6. package/api/services/auth/connect/update-kyc.js +1 -1
  7. package/api/services/auth/index.js +21 -0
  8. package/dist/assets/{Add-BbT7BiIn.js → Add-C5-W3UKp.js} +1 -1
  9. package/dist/assets/{Alert-GYW4yXwi.js → Alert-MPiiZl43.js} +1 -1
  10. package/dist/assets/{ArrowDropDown-DxOMxGRV.js → ArrowDropDown-Vxgjfzsb.js} +1 -1
  11. package/dist/assets/{Autocomplete-BGjstuR-.js → Autocomplete-o-9NS9YA.js} +1 -1
  12. package/dist/assets/{Avatar-DPvi1dd4.js → Avatar-DDKBALaJ.js} +1 -1
  13. package/dist/assets/{ButtonGroup-CV6xLD7o.js → ButtonGroup-D8BlpFOF.js} +1 -1
  14. package/dist/assets/{CSSTransition-CPq1SkB8.js → CSSTransition-Cl3dqSUp.js} +1 -1
  15. package/dist/assets/{CheckCircle-DttNFZFt.js → CheckCircle-BZ-KPWDf.js} +1 -1
  16. package/dist/assets/{ChevronLeft-B6pg2NmZ.js → ChevronLeft-w0oWzfYi.js} +1 -1
  17. package/dist/assets/{ChevronRight-CCLOBhXi.js → ChevronRight-B8-OTl-V.js} +1 -1
  18. package/dist/assets/{Close-D6G5_99n.js → Close-DOy1k6an.js} +1 -1
  19. package/dist/assets/{CloseOutlined-DnJ7iFbY.js → CloseOutlined-DTHgjq8r.js} +1 -1
  20. package/dist/assets/{Delete-BDd8Y-f-.js → Delete-xmuDalv8.js} +1 -1
  21. package/dist/assets/{DeleteOutline-BMYl1P54.js → DeleteOutline-DbdWy8tC.js} +1 -1
  22. package/dist/assets/{DialogContentText-CGVxonSs.js → DialogContentText-CS5MSQtu.js} +1 -1
  23. package/dist/assets/{Done-CQYMvSV2.js → Done-BIgK0-yu.js} +1 -1
  24. package/dist/assets/{Download-BoHGh_oI.js → Download-DPw3av5o.js} +1 -1
  25. package/dist/assets/{EditIcon-gJSIyUhs.js → EditIcon-PsnV85kC.js} +1 -1
  26. package/dist/assets/{Error-Dl5QWhzt.js → Error-BuytJmXm.js} +1 -1
  27. package/dist/assets/{ExpandMore-hHdanP4V.js → ExpandMore-DzHAg89w.js} +1 -1
  28. package/dist/assets/{FormControl-BcK5E1OT.js → FormControl-DFgqjaDx.js} +1 -1
  29. package/dist/assets/{FormControlLabel-DIFTdkch.js → FormControlLabel-CCT1Hxna.js} +1 -1
  30. package/dist/assets/{FormGroup-hQa_O_gn.js → FormGroup-CoWGV2kU.js} +1 -1
  31. package/dist/assets/{Google-JhA3tPdq.js → Google-CHmcXUcd.js} +3 -3
  32. package/dist/assets/{Grid-B_SHGR2L.js → Grid-CO5mLAA8.js} +1 -1
  33. package/dist/assets/{HelpOutline-BxsuH4I6.js → HelpOutline-CkhSX3fy.js} +1 -1
  34. package/dist/assets/{Hidden-CcJWl8RU.js → Hidden-Bcfg4-bH.js} +1 -1
  35. package/dist/assets/{InfoOutlined-CCy1pD2i.js → InfoOutlined-BPE4vAMd.js} +1 -1
  36. package/dist/assets/{InputAdornment-CyNJt_fa.js → InputAdornment-B-joVStm.js} +1 -1
  37. package/dist/assets/{LastPage-CV4Keuen.js → LastPage-XMNFRrKd.js} +1 -1
  38. package/dist/assets/{Launch-CBwpqgeT.js → Launch-ZPrDFcJQ.js} +1 -1
  39. package/dist/assets/{LaunchOutlined-DsiOdG73.js → LaunchOutlined-BFvRVMx4.js} +1 -1
  40. package/dist/assets/{Link-D_CsWAfW.js → Link-COz46AhA.js} +1 -1
  41. package/dist/assets/{ListItemButton-KYk39rpD.js → ListItemButton-DOQg4G8c.js} +1 -1
  42. package/dist/assets/{ListSubheader-BrKHJoML.js → ListSubheader-BphpOySX.js} +1 -1
  43. package/dist/assets/{LoadingButton-CVrS0YBY.js → LoadingButton-Ct_JtrmU.js} +1 -1
  44. package/dist/assets/{LockIcon-DXUNi3b0.js → LockIcon-DIkwsUpQ.js} +1 -1
  45. package/dist/assets/{Loop-DySlvS0a.js → Loop-B3Y8cnuy.js} +1 -1
  46. package/dist/assets/{MarkEmailRead-CM3Qk1e1.js → MarkEmailRead-C192JefB.js} +1 -1
  47. package/dist/assets/{Menu-DLtWW250.js → Menu-BCLNF0wV.js} +1 -1
  48. package/dist/assets/{MoreHoriz-B0hsGNsm.js → MoreHoriz-0nWF2mqR.js} +1 -1
  49. package/dist/assets/{MoreVert-vMGpcUpi.js → MoreVert-BKZLkhdi.js} +1 -1
  50. package/dist/assets/{OpenInNew-CcFMpufV.js → OpenInNew-DUexeISZ.js} +1 -1
  51. package/dist/assets/Pagination-DIGqgx3i.js +2 -0
  52. package/dist/assets/{PlayArrow-Bz9x7amJ.js → PlayArrow-BnuD-ix6.js} +1 -1
  53. package/dist/assets/{QuestionMarkCircle-B36736Ej.js → QuestionMarkCircle-CUjZXC07.js} +1 -1
  54. package/dist/assets/{RadioGroup-DgJsEJxt.js → RadioGroup-DAJgst3D.js} +1 -1
  55. package/dist/assets/{Search-CE2vOBwg.js → Search-HNhjKRtr.js} +1 -1
  56. package/dist/assets/{Select-C2HlOyoW.js → Select-BfCw7EsS.js} +2 -2
  57. package/dist/assets/{ServerLogo-AznflSy7.js → ServerLogo-gW8Umckw.js} +1 -1
  58. package/dist/assets/{Skeleton-5qdbkUsc.js → Skeleton-DJHsrXrk.js} +3 -3
  59. package/dist/assets/{Slider-QUS33Kq4.js → Slider-DSn38U5h.js} +1 -1
  60. package/dist/assets/{Stack-BhQ_80q-.js → Stack-DZqB4nST.js} +1 -1
  61. package/dist/assets/{Stepper-Clj24sC3.js → Stepper-CYPrVpUA.js} +1 -1
  62. package/dist/assets/{TextField-DqidhRm4.js → TextField-QsTZLSPK.js} +1 -1
  63. package/dist/assets/{Toolbar-C2KukkIX.js → Toolbar-ovqJjtaU.js} +1 -1
  64. package/dist/assets/{ViewColumn-92NUbhDx.js → ViewColumn-CMTirt5e.js} +1 -1
  65. package/dist/assets/{ViewList-35wYIlh1.js → ViewList-Cu4_NFgQ.js} +1 -1
  66. package/dist/assets/{access-control-C1YDYzKf.js → access-control-B8mzoGc9.js} +1 -1
  67. package/dist/assets/{actions-CBVAti_q.js → actions-BnONH73_.js} +1 -1
  68. package/dist/assets/add-component-core-AN4IHhr2.js +804 -0
  69. package/dist/assets/add-resource-DZqyElGv.js +1 -0
  70. package/dist/assets/{addon-BaUd5Xtv.js → addon-BWJyDf-k.js} +1 -1
  71. package/dist/assets/{analytics-D9Uz8eMW.js → analytics-kMGru_5Y.js} +1 -1
  72. package/dist/assets/api-B-FzaAOJ.js +1 -0
  73. package/dist/assets/{audit-logs-DI3GXdoU.js → audit-logs-Bl-T8iay.js} +1 -1
  74. package/dist/assets/{base32-e163NkMc.js → base32-DUQ3cZE8.js} +1 -1
  75. package/dist/assets/branding-DHKpXd_g.js +37 -0
  76. package/dist/assets/{bundle-avatar-CfarA09G.js → bundle-avatar-CKD9kBFp.js} +1 -1
  77. package/dist/assets/{button-DkUXQFkd.js → button-DSdSJo9K.js} +1 -1
  78. package/dist/assets/{click-to-copy-BQ6-W2tV.js → click-to-copy-D1KutRoB.js} +1 -1
  79. package/dist/assets/{complete-Dkb4CamN.js → complete-27mf0yTo.js} +3 -3
  80. package/dist/assets/{component-4U8BC0y9.js → component-CnJIww79.js} +1 -1
  81. package/dist/assets/{config-BqKiPUza.js → config-C9PWul3j.js} +1 -1
  82. package/dist/assets/{config-BW9Pp8cu.js → config-DZRAPN8T.js} +2 -2
  83. package/dist/assets/{config-navigation-SRfx8eFT.js → config-navigation-DH3P7ruJ.js} +5 -5
  84. package/dist/assets/{confirm-Bj44433A.js → confirm-mU2XAWpU.js} +1 -1
  85. package/dist/assets/{connect-D6RSbfne.js → connect-MZcaFOBa.js} +1 -1
  86. package/dist/assets/{connect-DQIzXv2j.js → connect-jQHKzr5H.js} +1 -1
  87. package/dist/assets/{connect-to-NtgT2est.js → connect-to-Y02CZZdD.js} +1 -1
  88. package/dist/assets/{content-layout-Cm5xO87D.js → content-layout-Tg4aLOhb.js} +1 -1
  89. package/dist/assets/{dashboard-iCAQ-xSg.js → dashboard-DoRd9UiU.js} +3 -3
  90. package/dist/assets/{deprecate-6FbZIe1b.js → deprecate-Cgglj9ZQ.js} +1 -1
  91. package/dist/assets/{did-address-2wXzwKqQ.js → did-address-BsU-n4pW.js} +1 -1
  92. package/dist/assets/domain-Bq4K9D6v.js +9 -0
  93. package/dist/assets/domain-list-Lv7EI03D.js +15 -0
  94. package/dist/assets/{email-C97T6-na.js → email-xfatBnjM.js} +3 -3
  95. package/dist/assets/emotion-cache.browser.esm-gefWLr3C.js +1 -0
  96. package/dist/assets/{exchange-passport-UpHKVi0x.js → exchange-passport-CO1jvKm4.js} +1 -1
  97. package/dist/assets/{fallback-Cy0VS__a.js → fallback-CXclKVjQ.js} +1 -1
  98. package/dist/assets/{form-text-input-DXwOfyUa.js → form-text-input-BsdUC9Df.js} +2 -2
  99. package/dist/assets/format-error-w94y5K97.js +2 -0
  100. package/dist/assets/{fuel-l61bf6lr.js → fuel-BxaJYD5y.js} +1 -1
  101. package/dist/assets/{fullpage-3Em5ua3-.js → fullpage-CU5nzdh1.js} +1 -1
  102. package/dist/assets/{home-BULxG73x.js → home-BNWIh8sX.js} +1 -1
  103. package/dist/assets/{iframe-J8hWQoQE.js → iframe-Dof-7CTL.js} +1 -1
  104. package/dist/assets/{index-D-JgU0vv.js → index-AHJS-pEb.js} +1 -1
  105. package/dist/assets/{index-CxDdR_4c.js → index-ApL3GvC5.js} +1 -1
  106. package/dist/assets/{index-DEkyID3O.js → index-BERtaTie.js} +1 -1
  107. package/dist/assets/{index-CkwdNb4P.js → index-BEnVwImy.js} +1 -1
  108. package/dist/assets/{index-ChfVfT98.js → index-BIhzb3Td.js} +1 -1
  109. package/dist/assets/{index-BnExyzXn.js → index-BM-DggtM.js} +42 -42
  110. package/dist/assets/{index-D5tzqp0t.js → index-BTabQKF2.js} +1 -1
  111. package/dist/assets/{index-oXC6I0XL.js → index-BVekWfOr.js} +10 -10
  112. package/dist/assets/{index-koUUzwN0.js → index-BjKbegSH.js} +1 -1
  113. package/dist/assets/{index-hVdmtTGH.js → index-Bzrg-0nr.js} +2 -2
  114. package/dist/assets/{index-B9oud-xA.js → index-C5vjMsZy.js} +5 -5
  115. package/dist/assets/{index-BdB83jqq.js → index-C6E8zlEZ.js} +1 -1
  116. package/dist/assets/{index-BI7ulVyE.js → index-CCoIR1Y8.js} +1 -1
  117. package/dist/assets/{index-B3o75RqE.js → index-CGLfdW1r.js} +1 -1
  118. package/dist/assets/{index-ehQxu-R2.js → index-CJDdHyzC.js} +13 -13
  119. package/dist/assets/{index-B4NN-ljh.js → index-CLs9hwzO.js} +1 -1
  120. package/dist/assets/{index-BHPuXpNt.js → index-CX5XyTLv.js} +1 -1
  121. package/dist/assets/{index-BIM1QwaY.js → index-Cak4Ow2M.js} +1 -1
  122. package/dist/assets/{index-CnGK7WUY.js → index-CcK8Dad4.js} +1 -1
  123. package/dist/assets/{index-DWVd8w83.js → index-CwUTvEH2.js} +1 -1
  124. package/dist/assets/index-Cz4s7XTP.js +1 -0
  125. package/dist/assets/{index-DE2W-BW-.js → index-D3O3p-OT.js} +1 -1
  126. package/dist/assets/{index-C_CQlCa-.js → index-DJFwMRI_.js} +194 -220
  127. package/dist/assets/{index-DeqxO-5S.js → index-DYLHWOJP.js} +5 -5
  128. package/dist/assets/{index-DLGp76se.js → index-DdN5Gz-u.js} +1 -1
  129. package/dist/assets/{index-Chkylq7r.js → index-DoFFHzG_.js} +1 -1
  130. package/dist/assets/{index-oBzophq1.js → index-DuwjjPMM.js} +1 -1
  131. package/dist/assets/{index-eYk8EHY6.js → index-EwB98VlP.js} +1 -1
  132. package/dist/assets/{index-B92ztTjs.js → index-Gp6yqhPr.js} +3 -3
  133. package/dist/assets/{index-2UUbbUJ8.js → index-R_t5Wd6C.js} +1 -1
  134. package/dist/assets/index-Wu0L_EBo.js +4 -0
  135. package/dist/assets/{index-DsWpf3_a.js → index-Z5L8aZy0.js} +1 -1
  136. package/dist/assets/{index-CR3-uy3A.js → index-cknpIisJ.js} +3 -3
  137. package/dist/assets/index-x-DvDzf-.js +192 -0
  138. package/dist/assets/{index-DRtAqdrV.js → index-zY4NGjp1.js} +18 -18
  139. package/dist/assets/{invitation-hncnOokv.js → invitation-6uqENcHT.js} +1 -1
  140. package/dist/assets/{invite-CKFbWmou.js → invite-Bjxb62pa.js} +1 -1
  141. package/dist/assets/{isEmail-DxV-j-Id.js → isEmail-DUBiI8sd.js} +1 -1
  142. package/dist/assets/{issue-passport-CGl0wDiI.js → issue-passport-DmbXLVQf.js} +1 -1
  143. package/dist/assets/{item-OJ3hnlo0.js → item-CFeixDDn.js} +1 -1
  144. package/dist/assets/{jss-plugin-props-sort.esm-COgSgYwL.js → jss-plugin-props-sort.esm-BkCakvUL.js} +6 -6
  145. package/dist/assets/{launch-result-message-MXP30DhV.js → launch-result-message-B_HogaQD.js} +1 -1
  146. package/dist/assets/{layout-l6IsVWPQ.js → layout-DhK2V31d.js} +1 -1
  147. package/dist/assets/{list-header-BBaNSpsp.js → list-header-BYGhikWN.js} +1 -1
  148. package/dist/assets/localization-BIdgFoTP.js +1 -0
  149. package/dist/assets/lodash-Dn8_ZeAF.js +27 -0
  150. package/dist/assets/{log-DrwXmRxJ.js → log-BBoGUrfj.js} +1 -1
  151. package/dist/assets/{login-CaGFS8nW.js → login-A7PX2tFz.js} +1 -1
  152. package/dist/assets/{login-oauth-callback-D2-IWdVo.js → login-oauth-callback-tSgR97Kc.js} +1 -1
  153. package/dist/assets/logo-uploader-Chwfv_Zv.js +133 -0
  154. package/dist/assets/{lost-passport-CWRg5ZXa.js → lost-passport-BXRSnuel.js} +3 -3
  155. package/dist/assets/lottie-react.esm-qfLXwmv9.js +269 -0
  156. package/dist/assets/{notifications-DT5bM8-Z.js → notifications-xGViZTGr.js} +1 -1
  157. package/dist/assets/{open-window-Dbj6y-Wd.js → open-window-DC9u9zAW.js} +1 -1
  158. package/dist/assets/overview-mM-QPqFa.js +12 -0
  159. package/dist/assets/{page-header-BJwXbb6p.js → page-header-BXSuoXyd.js} +1 -1
  160. package/dist/assets/{permission-DJ4hvMdC.js → permission-DUjKon-o.js} +1 -1
  161. package/dist/assets/{preferences-BiBLVKyo.js → preferences-BDOT10Le.js} +1 -1
  162. package/dist/assets/publish-resource-mkxzOwvG.js +1 -0
  163. package/dist/assets/{raf-schd.esm-B1kdhV0g.js → raf-schd.esm-Bpjsnce3.js} +1 -1
  164. package/dist/assets/{react-beautiful-dnd.esm-BEwbgI-x.js → react-beautiful-dnd.esm-5Mm-Hqoa.js} +1 -1
  165. package/dist/assets/refType-CRh0h8D9.js +1 -0
  166. package/dist/assets/{resource-dialog-GEBYj7yn.js → resource-dialog-BqU4WMct.js} +1 -1
  167. package/dist/assets/sdk-B9KxIRfu.js +1 -0
  168. package/dist/assets/{selector-14AWGRUp.js → selector-BQfkr_CY.js} +1 -1
  169. package/dist/assets/session-DmKeILdZ.js +1 -0
  170. package/dist/assets/setup-RGwVXIHk.js +19 -0
  171. package/dist/assets/{shorten-label-Dbs8vIsp.js → shorten-label-BhcDm1Xa.js} +1 -1
  172. package/dist/assets/{simple-select-DLQt7Cfs.js → simple-select-CPpSgug4.js} +1 -1
  173. package/dist/assets/{slicedToArray-BKoR2wYJ.js → slicedToArray-92iHpNxT.js} +2 -2
  174. package/dist/assets/spaces-WTnQE9HX.js +1 -0
  175. package/dist/assets/{start-DSWYoahH.js → start-DjIHXcxs.js} +1 -1
  176. package/dist/assets/{step-actions-If6iVs-K.js → step-actions-CEVnyzA4.js} +1 -1
  177. package/dist/assets/{studio-D6IxfNlE.js → studio-BxsvSt8u.js} +1 -1
  178. package/dist/assets/{switch-control-BxeBzprT.js → switch-control-BrojiBVz.js} +1 -1
  179. package/dist/assets/{toUpper-CBkOZw1F.js → toUpper-Cb-GeE69.js} +1 -1
  180. package/dist/assets/{transfer-CKJqtAQ_.js → transfer-CTWNv1F7.js} +1 -1
  181. package/dist/assets/trim-FV_vvgIq.js +1 -0
  182. package/dist/assets/{uniqBy-Bx9vh0v2.js → uniqBy-jaKlPiVv.js} +1 -1
  183. package/dist/assets/{unsubscribe-CLEzRDDh.js → unsubscribe-Bubftfpy.js} +1 -1
  184. package/dist/assets/{url-join-B7VUk1Nt.js → url-join-CoUJvgw9.js} +1 -1
  185. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-CGl-SVl3.js → use-blocklet-info-for-connect-did-spaces-CG7o9oE6.js} +1 -1
  186. package/dist/assets/{use-mobile-4_hTnRVi.js → use-mobile-DfAAA5Qw.js} +1 -1
  187. package/dist/assets/{useAsync-CtQ8AEdA.js → useAsync-R9bGzscW.js} +1 -1
  188. package/dist/assets/{useFormControl-BhdUd6k-.js → useFormControl-wVGGoaRj.js} +1 -1
  189. package/dist/assets/{useLocalStorage-7JXelBjb.js → useLocalStorage-DmCQRskn.js} +1 -1
  190. package/dist/assets/{useSetState-Dc35Ve6D.js → useSetState-DMM9-qIL.js} +1 -1
  191. package/dist/assets/{useSlot-CNpijWIm.js → useSlot-BIPyjNii.js} +1 -1
  192. package/dist/assets/{useSlotProps-BfNnka02.js → useSlotProps-DJTrybpd.js} +1 -1
  193. package/dist/assets/useThemeProps-DD6E2MMK.js +1 -0
  194. package/dist/assets/{user-center-ZL5G-GHd.js → user-center-BA9gCxef.js} +1 -1
  195. package/dist/assets/{user-sessions-6KBbvmel.js → user-sessions-DLAJ9aMH.js} +1 -1
  196. package/dist/assets/{util-CsETj3tT.js → util-D3p9_aCc.js} +1 -1
  197. package/dist/assets/{wrap-locale-Dun6mFZ0.js → wrap-locale-D638dqwh.js} +1 -1
  198. package/dist/index.html +1 -1
  199. package/dist/service-worker.js +1 -1
  200. package/package.json +26 -26
  201. package/dist/assets/Pagination-BZ_0_22E.js +0 -2
  202. package/dist/assets/add-component-core-BwkMf_I-.js +0 -796
  203. package/dist/assets/add-resource-Ce35wyOm.js +0 -1
  204. package/dist/assets/api-DW3GuRPe.js +0 -1
  205. package/dist/assets/branding-BVp13tWo.js +0 -37
  206. package/dist/assets/domain-BftMAChL.js +0 -9
  207. package/dist/assets/domain-list-LMmGssej.js +0 -15
  208. package/dist/assets/emotion-cache.browser.esm-Cb9YgVt4.js +0 -1
  209. package/dist/assets/format-error-BBbxuciS.js +0 -2
  210. package/dist/assets/index-BUog8A--.js +0 -1
  211. package/dist/assets/index-C_TKdpLp.js +0 -192
  212. package/dist/assets/index-sW3pXORW.js +0 -4
  213. package/dist/assets/index.es-mBp-Wl3D.js +0 -3
  214. package/dist/assets/localization-DY392ZUJ.js +0 -1
  215. package/dist/assets/logo-uploader-bNnGsMWx.js +0 -133
  216. package/dist/assets/lottie-78xwHgZN.js +0 -9
  217. package/dist/assets/overview-BPLARBLd.js +0 -12
  218. package/dist/assets/publish-resource-CGz9xdOC.js +0 -1
  219. package/dist/assets/refType-BbAp0aUR.js +0 -1
  220. package/dist/assets/sdk-BrMczAlL.js +0 -1
  221. package/dist/assets/session-CR_tYSIR.js +0 -1
  222. package/dist/assets/setup-BKQUe4wU.js +0 -19
  223. package/dist/assets/spaces-CAq6QeyI.js +0 -1
  224. package/dist/assets/trim-C9rddK5k.js +0 -1
  225. package/dist/assets/useThemeProps-DEARzcBK.js +0 -1
@@ -1,4 +1,4 @@
1
- import{at as T,j as s,P as r,Z as f,r as m,a0 as D,au as $,u as j,N as H,m as U,l as P,c as q,o as F,p as M,av as E,aw as S,ax as N,A as O,B as L,O as B,n as V,R as W}from"./index-C_CQlCa-.js";import{N as X}from"./index-ChfVfT98.js";import{C as z}from"./index-BdB83jqq.js";import{u as J}from"./use-passport-id-B-b-_oYF.js";import{u as Y}from"./session-CR_tYSIR.js";import{b as Z}from"./sdk-BrMczAlL.js";import{d as G}from"./CheckCircle-DttNFZFt.js";import{w as K}from"./wrap-locale-Dun6mFZ0.js";const Q=T(s.jsx("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}),"Inbox");function b({invitation:e,createPassportSvg:a,passportColor:c}){const[p,o]=m.useState(!1),{t}=m.useContext(D),l=m.useMemo(()=>(e.role.title||e.role.name).toUpperCase(),[e.role.title,e.role.name]),u=m.useMemo(()=>a({title:l,issuer:e.info.name,issuerDid:e.info.appDid,ownerName:"Your Name",ownerDid:e.info.appDid,preferredColor:e.info.passportColor||c}),[e,l]),x=m.useCallback(()=>{o(!0)},[]),i=m.useCallback(()=>{o(!1)},[]);return s.jsxs(s.Fragment,{children:[s.jsx(ee,{children:s.jsxs("div",{className:"invite-passport__card",onClick:x,children:[!!e.display&&s.jsx(X,{data:e.display,style:{width:"100%",height:"100%"}}),!e.display&&s.jsx("div",{className:"invite-passport__cover",dangerouslySetInnerHTML:{__html:u}})]})}),s.jsx($,{open:p,title:t("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:i,children:e.role.permissions&&e.role.permissions.length>0?s.jsx("ul",{style:{listStyle:"circle",padding:"0 20px"},children:e.role.permissions.map(n=>s.jsx("li",{style:{listStyle:"circle"},children:n.description},n.name))}):s.jsxs("div",{style:{color:"#999",textAlign:"center"},children:[s.jsx(Q,{style:{width:"30px",height:"30px"}}),s.jsx("div",{children:t("invite.emptyPermission")})]})})]})}b.propTypes={invitation:r.object.isRequired,createPassportSvg:r.func.isRequired,passportColor:r.string};b.defaultProps={passportColor:"auto"};const ee=f.div`
1
+ import{at as T,j as s,P as r,Z as f,r as m,a0 as D,au as $,u as j,N as H,m as U,l as P,c as q,o as F,p as M,av as E,aw as S,ax as N,A as O,B as L,O as B,n as V,R as W}from"./index-DJFwMRI_.js";import{N as X}from"./index-BIhzb3Td.js";import{C as z}from"./index-C6E8zlEZ.js";import{u as J}from"./use-passport-id-B-b-_oYF.js";import{u as Y}from"./session-DmKeILdZ.js";import{b as Z}from"./sdk-B9KxIRfu.js";import{d as G}from"./CheckCircle-BZ-KPWDf.js";import{w as K}from"./wrap-locale-D638dqwh.js";const Q=T(s.jsx("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}),"Inbox");function b({invitation:e,createPassportSvg:a,passportColor:c}){const[p,o]=m.useState(!1),{t}=m.useContext(D),l=m.useMemo(()=>(e.role.title||e.role.name).toUpperCase(),[e.role.title,e.role.name]),u=m.useMemo(()=>a({title:l,issuer:e.info.name,issuerDid:e.info.appDid,ownerName:"Your Name",ownerDid:e.info.appDid,preferredColor:e.info.passportColor||c}),[e,l]),x=m.useCallback(()=>{o(!0)},[]),i=m.useCallback(()=>{o(!1)},[]);return s.jsxs(s.Fragment,{children:[s.jsx(ee,{children:s.jsxs("div",{className:"invite-passport__card",onClick:x,children:[!!e.display&&s.jsx(X,{data:e.display,style:{width:"100%",height:"100%"}}),!e.display&&s.jsx("div",{className:"invite-passport__cover",dangerouslySetInnerHTML:{__html:u}})]})}),s.jsx($,{open:p,title:t("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:i,children:e.role.permissions&&e.role.permissions.length>0?s.jsx("ul",{style:{listStyle:"circle",padding:"0 20px"},children:e.role.permissions.map(n=>s.jsx("li",{style:{listStyle:"circle"},children:n.description},n.name))}):s.jsxs("div",{style:{color:"#999",textAlign:"center"},children:[s.jsx(Q,{style:{width:"30px",height:"30px"}}),s.jsx("div",{children:t("invite.emptyPermission")})]})})]})}b.propTypes={invitation:r.object.isRequired,createPassportSvg:r.func.isRequired,passportColor:r.string};b.defaultProps={passportColor:"auto"};const ee=f.div`
2
2
  display: flex;
3
3
  max-width: 350px;
4
4
  margin: 30px auto;
@@ -1,4 +1,4 @@
1
- import{e as w,d as x,u as f,r as g,a5 as u,l as I,j as i,H as S,Q as j,Z as k,v as E,x as P,y as R,G as T}from"./index-C_CQlCa-.js";import{I as F}from"./invitation-hncnOokv.js";import{F as C}from"./fullpage-3Em5ua3-.js";import"./index-ChfVfT98.js";import"./emotion-cache.browser.esm-Cb9YgVt4.js";import"./index-BdB83jqq.js";import"./use-passport-id-B-b-_oYF.js";import"./session-CR_tYSIR.js";import"./sdk-BrMczAlL.js";import"./CheckCircle-DttNFZFt.js";import"./wrap-locale-Dun6mFZ0.js";import"./Link-D_CsWAfW.js";function K(c){var r;const d=w(),{searchParams:o}=new URL(window.location.href),{api:p,session:m}=x(),{t:l}=f(),n=o.get("inviteId"),a=o.get("redirect"),h=g.useCallback(async()=>{const{data:t}=await u.get("invitation",{params:{inviteId:n}});return t},[n]),v=I(async(t,s=e=>e)=>{t&&(E(s(t.sessionToken)),P(s(t.refreshToken)),t.visitorId&&R(s(t.visitorId))),await m.refresh(),setTimeout(()=>{if(a){const e=decodeURIComponent(a);e.startsWith(T.WELLKNOWN_SERVICE_PATH_PREFIX)?d(e,{replace:!0}):window.location=e}else window.location=window.env.pathPrefix||"/"},50)});return i.jsxs(C,{did:(r=window.blocklet)==null?void 0:r.appPid,children:[i.jsx(S,{children:i.jsx("title",{children:l("pageTitle.invite")})}),i.jsx(L,{className:"page-invite",children:i.jsx(F,{...c,getDataFn:h,checkFn:p.get,createPassportSvg:j,onLoginSuccess:v,inService:!0})})]})}const L=k.div`
1
+ import{e as w,d as x,u as f,r as g,a5 as u,l as I,j as i,H as S,Q as j,Z as k,v as E,x as P,y as R,G as T}from"./index-DJFwMRI_.js";import{I as F}from"./invitation-6uqENcHT.js";import{F as C}from"./fullpage-CU5nzdh1.js";import"./index-BIhzb3Td.js";import"./emotion-cache.browser.esm-gefWLr3C.js";import"./index-C6E8zlEZ.js";import"./use-passport-id-B-b-_oYF.js";import"./session-DmKeILdZ.js";import"./sdk-B9KxIRfu.js";import"./CheckCircle-BZ-KPWDf.js";import"./wrap-locale-D638dqwh.js";import"./Link-COz46AhA.js";function K(c){var r;const d=w(),{searchParams:o}=new URL(window.location.href),{api:p,session:m}=x(),{t:l}=f(),n=o.get("inviteId"),a=o.get("redirect"),h=g.useCallback(async()=>{const{data:t}=await u.get("invitation",{params:{inviteId:n}});return t},[n]),v=I(async(t,s=e=>e)=>{t&&(E(s(t.sessionToken)),P(s(t.refreshToken)),t.visitorId&&R(s(t.visitorId))),await m.refresh(),setTimeout(()=>{if(a){const e=decodeURIComponent(a);e.startsWith(T.WELLKNOWN_SERVICE_PATH_PREFIX)?d(e,{replace:!0}):window.location=e}else window.location=window.env.pathPrefix||"/"},50)});return i.jsxs(C,{did:(r=window.blocklet)==null?void 0:r.appPid,children:[i.jsx(S,{children:i.jsx("title",{children:l("pageTitle.invite")})}),i.jsx(L,{className:"page-invite",children:i.jsx(F,{...c,getDataFn:h,checkFn:p.get,createPassportSvg:j,onLoginSuccess:v,inService:!0})})]})}const L=k.div`
2
2
  width: 560px;
3
3
  max-width: 100%;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{b7 as B}from"./index-C_CQlCa-.js";var w={exports:{}},b={exports:{}};(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;function d(l){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},d(l)}function s(l){var r=typeof l=="string"||l instanceof String;if(!r){var n=d(l);throw l===null?n="null":n==="object"&&(n=l.constructor.name),new TypeError("Expected a string but received a ".concat(n))}}f.exports=t.default,f.exports.default=t.default})(b,b.exports);var h=b.exports,E={exports:{}};(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var d=s(h);function s(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(n)}function r(n,e){(0,d.default)(n);var i,c;l(e)==="object"?(i=e.min||0,c=e.max):(i=arguments[1],c=arguments[2]);var u=encodeURI(n).split(/%..|./).length-1;return u>=i&&(typeof c>"u"||u<=c)}f.exports=t.default,f.exports.default=t.default})(E,E.exports);var W=E.exports,D={exports:{}},S={exports:{}};(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;function d(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;for(var r in l)typeof s[r]>"u"&&(s[r]=l[r]);return s}f.exports=t.default,f.exports.default=t.default})(S,S.exports);var R=S.exports;(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var d=l(h),s=l(R);function l(e){return e&&e.__esModule?e:{default:e}}var r={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function n(e,i){(0,d.default)(e),i=(0,s.default)(i,r),i.allow_trailing_dot&&e[e.length-1]==="."&&(e=e.substring(0,e.length-1)),i.allow_wildcard===!0&&e.indexOf("*.")===0&&(e=e.substring(2));var c=e.split("."),u=c[c.length-1];return i.require_tld&&(c.length<2||!i.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(u)||/\s/.test(u))||!i.allow_numeric_tld&&/^\d+$/.test(u)?!1:c.every(function(_){return!(_.length>63&&!i.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(_)||/[\uff01-\uff5e]/.test(_)||/^-|-$/.test(_)||!i.allow_underscores&&/_/.test(_))})}f.exports=t.default,f.exports.default=t.default})(D,D.exports);var k=D.exports,P={exports:{}};(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var d=s(h);function s(u){return u&&u.__esModule?u:{default:u}}var l="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",r="(".concat(l,"[.]){3}").concat(l),n=new RegExp("^".concat(r,"$")),e="(?:[0-9a-fA-F]{1,4})",i=new RegExp("^("+"(?:".concat(e,":){7}(?:").concat(e,"|:)|")+"(?:".concat(e,":){6}(?:").concat(r,"|:").concat(e,"|:)|")+"(?:".concat(e,":){5}(?::").concat(r,"|(:").concat(e,"){1,2}|:)|")+"(?:".concat(e,":){4}(?:(:").concat(e,"){0,1}:").concat(r,"|(:").concat(e,"){1,3}|:)|")+"(?:".concat(e,":){3}(?:(:").concat(e,"){0,2}:").concat(r,"|(:").concat(e,"){1,4}|:)|")+"(?:".concat(e,":){2}(?:(:").concat(e,"){0,3}:").concat(r,"|(:").concat(e,"){1,5}|:)|")+"(?:".concat(e,":){1}(?:(:").concat(e,"){0,4}:").concat(r,"|(:").concat(e,"){1,6}|:)|")+"(?::((?::".concat(e,"){0,5}:").concat(r,"|(?::").concat(e,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function c(u){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,d.default)(u),_=String(_),_?_==="4"?n.test(u):_==="6"?i.test(u):!1:c(u,4)||c(u,6)}f.exports=t.default,f.exports.default=t.default})(P,P.exports);var X=P.exports;(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=N;var d=e(h),s=e(W),l=e(k),r=e(X),n=e(R);function e(o){return o&&o.__esModule?o:{default:o}}var i={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},c=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,u=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,_=/^[a-z\d]+$/,U=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,z=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,C=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,L=254;function O(o){var a=o.replace(/^"(.+)"$/,"$1");if(!a.trim())return!1;var m=/[\.";<>]/.test(a);if(m){if(a===o)return!1;var x=a.split('"').length===a.split('\\"').length;if(!x)return!1}return!0}function N(o,a){if((0,d.default)(o),a=(0,n.default)(a,i),a.require_display_name||a.allow_display_name){var m=o.match(c);if(m){var x=m[1];if(o=o.replace(x,"").replace(/(^<|>$)/g,""),x.endsWith(" ")&&(x=x.slice(0,-1)),!O(x))return!1}else if(a.require_display_name)return!1}if(!a.ignore_max_length&&o.length>L)return!1;var $=o.split("@"),v=$.pop(),F=v.toLowerCase();if(a.host_blacklist.includes(F)||a.host_whitelist.length>0&&!a.host_whitelist.includes(F))return!1;var g=$.join("@");if(a.domain_specific_validation&&(F==="gmail.com"||F==="googlemail.com")){g=g.toLowerCase();var q=g.split("+")[0];if(!(0,s.default)(q.replace(/\./g,""),{min:6,max:30}))return!1;for(var A=q.split("."),p=0;p<A.length;p++)if(!_.test(A[p]))return!1}if(a.ignore_max_length===!1&&(!(0,s.default)(g,{max:64})||!(0,s.default)(v,{max:254})))return!1;if(!(0,l.default)(v,{require_tld:a.require_tld,ignore_max_length:a.ignore_max_length,allow_underscores:a.allow_underscores})){if(!a.allow_ip_domain)return!1;if(!(0,r.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var M=v.slice(1,-1);if(M.length===0||!(0,r.default)(M))return!1}}if(g[0]==='"')return g=g.slice(1,g.length-1),a.allow_utf8_local_part?C.test(g):U.test(g);for(var Q=a.allow_utf8_local_part?z:u,I=g.split("."),y=0;y<I.length;y++)if(!Q.test(I[y]))return!1;return!(a.blacklisted_chars&&g.search(new RegExp("[".concat(a.blacklisted_chars,"]+"),"g"))!==-1)}f.exports=t.default,f.exports.default=t.default})(w,w.exports);var Z=w.exports;const H=B(Z);export{h as a,k as b,X as c,H as i,R as m};
1
+ import{b7 as B}from"./index-DJFwMRI_.js";var w={exports:{}},b={exports:{}};(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;function d(l){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},d(l)}function s(l){var r=typeof l=="string"||l instanceof String;if(!r){var n=d(l);throw l===null?n="null":n==="object"&&(n=l.constructor.name),new TypeError("Expected a string but received a ".concat(n))}}f.exports=t.default,f.exports.default=t.default})(b,b.exports);var h=b.exports,E={exports:{}};(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var d=s(h);function s(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(n)}function r(n,e){(0,d.default)(n);var i,c;l(e)==="object"?(i=e.min||0,c=e.max):(i=arguments[1],c=arguments[2]);var u=encodeURI(n).split(/%..|./).length-1;return u>=i&&(typeof c>"u"||u<=c)}f.exports=t.default,f.exports.default=t.default})(E,E.exports);var W=E.exports,D={exports:{}},S={exports:{}};(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;function d(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;for(var r in l)typeof s[r]>"u"&&(s[r]=l[r]);return s}f.exports=t.default,f.exports.default=t.default})(S,S.exports);var R=S.exports;(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var d=l(h),s=l(R);function l(e){return e&&e.__esModule?e:{default:e}}var r={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function n(e,i){(0,d.default)(e),i=(0,s.default)(i,r),i.allow_trailing_dot&&e[e.length-1]==="."&&(e=e.substring(0,e.length-1)),i.allow_wildcard===!0&&e.indexOf("*.")===0&&(e=e.substring(2));var c=e.split("."),u=c[c.length-1];return i.require_tld&&(c.length<2||!i.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(u)||/\s/.test(u))||!i.allow_numeric_tld&&/^\d+$/.test(u)?!1:c.every(function(_){return!(_.length>63&&!i.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(_)||/[\uff01-\uff5e]/.test(_)||/^-|-$/.test(_)||!i.allow_underscores&&/_/.test(_))})}f.exports=t.default,f.exports.default=t.default})(D,D.exports);var k=D.exports,P={exports:{}};(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var d=s(h);function s(u){return u&&u.__esModule?u:{default:u}}var l="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",r="(".concat(l,"[.]){3}").concat(l),n=new RegExp("^".concat(r,"$")),e="(?:[0-9a-fA-F]{1,4})",i=new RegExp("^("+"(?:".concat(e,":){7}(?:").concat(e,"|:)|")+"(?:".concat(e,":){6}(?:").concat(r,"|:").concat(e,"|:)|")+"(?:".concat(e,":){5}(?::").concat(r,"|(:").concat(e,"){1,2}|:)|")+"(?:".concat(e,":){4}(?:(:").concat(e,"){0,1}:").concat(r,"|(:").concat(e,"){1,3}|:)|")+"(?:".concat(e,":){3}(?:(:").concat(e,"){0,2}:").concat(r,"|(:").concat(e,"){1,4}|:)|")+"(?:".concat(e,":){2}(?:(:").concat(e,"){0,3}:").concat(r,"|(:").concat(e,"){1,5}|:)|")+"(?:".concat(e,":){1}(?:(:").concat(e,"){0,4}:").concat(r,"|(:").concat(e,"){1,6}|:)|")+"(?::((?::".concat(e,"){0,5}:").concat(r,"|(?::").concat(e,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function c(u){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,d.default)(u),_=String(_),_?_==="4"?n.test(u):_==="6"?i.test(u):!1:c(u,4)||c(u,6)}f.exports=t.default,f.exports.default=t.default})(P,P.exports);var X=P.exports;(function(f,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=N;var d=e(h),s=e(W),l=e(k),r=e(X),n=e(R);function e(o){return o&&o.__esModule?o:{default:o}}var i={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},c=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,u=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,_=/^[a-z\d]+$/,U=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,z=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,C=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,L=254;function O(o){var a=o.replace(/^"(.+)"$/,"$1");if(!a.trim())return!1;var m=/[\.";<>]/.test(a);if(m){if(a===o)return!1;var x=a.split('"').length===a.split('\\"').length;if(!x)return!1}return!0}function N(o,a){if((0,d.default)(o),a=(0,n.default)(a,i),a.require_display_name||a.allow_display_name){var m=o.match(c);if(m){var x=m[1];if(o=o.replace(x,"").replace(/(^<|>$)/g,""),x.endsWith(" ")&&(x=x.slice(0,-1)),!O(x))return!1}else if(a.require_display_name)return!1}if(!a.ignore_max_length&&o.length>L)return!1;var $=o.split("@"),v=$.pop(),F=v.toLowerCase();if(a.host_blacklist.includes(F)||a.host_whitelist.length>0&&!a.host_whitelist.includes(F))return!1;var g=$.join("@");if(a.domain_specific_validation&&(F==="gmail.com"||F==="googlemail.com")){g=g.toLowerCase();var q=g.split("+")[0];if(!(0,s.default)(q.replace(/\./g,""),{min:6,max:30}))return!1;for(var A=q.split("."),p=0;p<A.length;p++)if(!_.test(A[p]))return!1}if(a.ignore_max_length===!1&&(!(0,s.default)(g,{max:64})||!(0,s.default)(v,{max:254})))return!1;if(!(0,l.default)(v,{require_tld:a.require_tld,ignore_max_length:a.ignore_max_length,allow_underscores:a.allow_underscores})){if(!a.allow_ip_domain)return!1;if(!(0,r.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var M=v.slice(1,-1);if(M.length===0||!(0,r.default)(M))return!1}}if(g[0]==='"')return g=g.slice(1,g.length-1),a.allow_utf8_local_part?C.test(g):U.test(g);for(var Q=a.allow_utf8_local_part?z:u,I=g.split("."),y=0;y<I.length;y++)if(!Q.test(I[y]))return!1;return!(a.blacklisted_chars&&g.search(new RegExp("[".concat(a.blacklisted_chars,"]+"),"g"))!==-1)}f.exports=t.default,f.exports.default=t.default})(w,w.exports);var Z=w.exports;const H=B(Z);export{h as a,k as b,X as c,H as i,R as m};
@@ -1 +1 @@
1
- import{d as w,e as v,u as I,N as P,O as T,l as d,j as t,n as j,H as k,B as R,Q as S,v as E,x as F,y as C,G as L}from"./index-C_CQlCa-.js";import{I as N}from"./invitation-hncnOokv.js";import{F as W}from"./fullpage-3Em5ua3-.js";import"./index-ChfVfT98.js";import"./emotion-cache.browser.esm-Cb9YgVt4.js";import"./index-BdB83jqq.js";import"./use-passport-id-B-b-_oYF.js";import"./session-CR_tYSIR.js";import"./sdk-BrMczAlL.js";import"./CheckCircle-DttNFZFt.js";import"./wrap-locale-Dun6mFZ0.js";import"./Link-D_CsWAfW.js";function G(m){var p;const{searchParams:a}=new URL(window.location.href),{api:n,session:u}=w(),f=v(),{t:l}=I(),r=a.get("id"),c=a.get("redirect"),h=P({state:""}),e=T(async()=>{if(!r)return null;const{data:s}=await n.get("/api/invitation",{params:{inviteId:r,mode:"issue-passport"}});return s}),x=d(()=>{if(e.error)throw e.error;return e==null?void 0:e.data}),g=d(async(s,o=i=>i)=>{s&&(s.sessionToken&&E(o(s.sessionToken)),s.refreshToken&&F(o(s.refreshToken)),s.visitorId&&C(o(s.visitorId)),await u.refresh()),setTimeout(()=>{if(c){const i=decodeURIComponent(c);i.startsWith(L.WELLKNOWN_SERVICE_PATH_PREFIX)?f(i,{replace:!0}):window.location=i}else window.location=window.env.pathPrefix||"/"},50)});return e.loading?t.jsx(j,{}):t.jsxs(W,{did:(p=window.blocklet)==null?void 0:p.appPid,children:[t.jsx(k,{children:t.jsx("title",{children:l("pageTitle.issuePassport")})}),t.jsx(R,{className:"page-invite",sx:{width:"560px",maxWidth:"100%",height:"100%"},children:t.jsx(N,{...m,action:"issue-passport",getDataFn:x,checkFn:n.get,createPassportSvg:S,onLoginSuccess:g,inService:!0,status:h.state})})]})}export{G as default};
1
+ import{d as w,e as v,u as I,N as P,O as T,l as d,j as t,n as j,H as k,B as R,Q as S,v as E,x as F,y as C,G as L}from"./index-DJFwMRI_.js";import{I as N}from"./invitation-6uqENcHT.js";import{F as W}from"./fullpage-CU5nzdh1.js";import"./index-BIhzb3Td.js";import"./emotion-cache.browser.esm-gefWLr3C.js";import"./index-C6E8zlEZ.js";import"./use-passport-id-B-b-_oYF.js";import"./session-DmKeILdZ.js";import"./sdk-B9KxIRfu.js";import"./CheckCircle-BZ-KPWDf.js";import"./wrap-locale-D638dqwh.js";import"./Link-COz46AhA.js";function G(m){var p;const{searchParams:a}=new URL(window.location.href),{api:n,session:u}=w(),f=v(),{t:l}=I(),r=a.get("id"),c=a.get("redirect"),h=P({state:""}),e=T(async()=>{if(!r)return null;const{data:s}=await n.get("/api/invitation",{params:{inviteId:r,mode:"issue-passport"}});return s}),x=d(()=>{if(e.error)throw e.error;return e==null?void 0:e.data}),g=d(async(s,o=i=>i)=>{s&&(s.sessionToken&&E(o(s.sessionToken)),s.refreshToken&&F(o(s.refreshToken)),s.visitorId&&C(o(s.visitorId)),await u.refresh()),setTimeout(()=>{if(c){const i=decodeURIComponent(c);i.startsWith(L.WELLKNOWN_SERVICE_PATH_PREFIX)?f(i,{replace:!0}):window.location=i}else window.location=window.env.pathPrefix||"/"},50)});return e.loading?t.jsx(j,{}):t.jsxs(W,{did:(p=window.blocklet)==null?void 0:p.appPid,children:[t.jsx(k,{children:t.jsx("title",{children:l("pageTitle.issuePassport")})}),t.jsx(R,{className:"page-invite",sx:{width:"560px",maxWidth:"100%",height:"100%"},children:t.jsx(N,{...m,action:"issue-passport",getDataFn:x,checkFn:n.get,createPassportSvg:S,onLoginSuccess:g,inService:!0,status:h.state})})]})}export{G as default};
@@ -1 +1 @@
1
- import{fq as _e,aK as R,r as g,aJ as B,aH as F,dr as Z,eF as Ee,aM as ee,j as s,G as ae,aP as W,u as z,T as E,au as $e,a1 as te,n as q,fp as De,P as i,X as H,Y as V,aY as Ne,aj as Pe,b as D,t as $,aa as Ie,aR as Me,aT as ne,B as N,eT as ce,c as L,l as Le,eu as ze,a as qe}from"./index-C_CQlCa-.js";import{d as Oe}from"./Add-BbT7BiIn.js";import{L as Be,d as Ue}from"./MoreVert-vMGpcUpi.js";import{D as Ae}from"./DialogContentText-CGVxonSs.js";import{T as le}from"./TextField-DqidhRm4.js";import{A as de}from"./Alert-GYW4yXwi.js";import{f as O}from"./format-error-BBbxuciS.js";import{d as ue}from"./Launch-CBwpqgeT.js";import{d as Fe}from"./Done-CQYMvSV2.js";import{d as fe}from"./DeleteOutline-BMYl1P54.js";import{C as We}from"./click-to-copy-BQ6-W2tV.js";import{S as He}from"./shorten-label-Dbs8vIsp.js";import{u as Ve,C as pe}from"./confirm-Bj44433A.js";import{u as Ge}from"./session-CR_tYSIR.js";import{W as Je}from"./did-address-2wXzwKqQ.js";import{A as Ke}from"./Avatar-DPvi1dd4.js";import{B as se}from"./ButtonGroup-CV6xLD7o.js";import{f as Ye,j as Xe,a as Qe,c as Ze,d as et,b as tt,e as nt,g as st,h as rt}from"./jss-plugin-props-sort.esm-COgSgYwL.js";const ot=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function it(e={}){const{disableGlobal:r=!1,productionPrefix:n="jss",seed:t=""}=e,o=t===""?"":`${t}-`;let u=0;const d=()=>(u+=1,u);return(c,l)=>{const a=l.options.name;if(a&&a.indexOf("Mui")===0&&!l.options.link&&!r){if(ot.indexOf(c.key)!==-1)return`Mui-${c.key}`;const f=`${o}${a}-${c.key}`;return!l.options.theme[_e]||t!==""?f:`${f}-${d()}`}return`${o}${n}${d()}`}}function at(){return{plugins:[Ye(),Xe(),Qe(),Ze(),et(),typeof window>"u"?null:tt(),nt()]}}function me(e={}){const{baseClasses:r,newClasses:n,Component:t}=e;if(!n)return r;const o=R({},r);return Object.keys(n).forEach(u=>{n[u]&&(o[u]=`${r[u]} ${n[u]}`)}),o}const M={set:(e,r,n,t)=>{let o=e.get(r);o||(o=new Map,e.set(r,o)),o.set(n,t)},get:(e,r,n)=>{const t=e.get(r);return t?t.get(n):void 0},delete:(e,r,n)=>{e.get(r).delete(n)}},ct=st(at()),lt=it(),dt=new Map,ut={disableGeneration:!1,generateClassName:lt,jss:ct,sheetsCache:null,sheetsManager:dt,sheetsRegistry:null},ft=g.createContext(ut);let re=-1e9;function pt(){return re+=1,re}const mt=["variant"];function oe(e){return e.length===0}function ht(e){const{variant:r}=e,n=B(e,mt);let t=r||"";return Object.keys(n).sort().forEach(o=>{o==="color"?t+=oe(t)?e[o]:F(e[o]):t+=`${oe(t)?o:F(o)}${F(e[o].toString())}`}),t}const gt={};function xt(e){const r=typeof e=="function";return{create:(n,t)=>{let o;try{o=r?e(n):e}catch(l){throw l}if(!t||!n.components||!n.components[t]||!n.components[t].styleOverrides&&!n.components[t].variants)return o;const u=n.components[t].styleOverrides||{},d=n.components[t].variants||[],c=R({},o);return Object.keys(u).forEach(l=>{c[l]=Z(c[l]||{},u[l])}),d.forEach(l=>{const a=ht(l.props);c[a]=Z(c[a]||{},l.style)}),c},options:{}}}const vt=["name","classNamePrefix","Component","defaultTheme"];function yt({state:e,stylesOptions:r},n,t){if(r.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let o=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,o=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,o=!0),o&&(e.cacheClasses.value=me({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:t})),e.cacheClasses.value}function jt({state:e,theme:r,stylesOptions:n,stylesCreator:t,name:o},u){if(n.disableGeneration)return;let d=M.get(n.sheetsManager,t,r);d||(d={refs:0,staticSheet:null,dynamicStyles:null},M.set(n.sheetsManager,t,r,d));const c=R({},t.options,n,{theme:r,flip:typeof n.flip=="boolean"?n.flip:r.direction==="rtl"});c.generateId=c.serverGenerateClassName||c.generateClassName;const l=n.sheetsRegistry;if(d.refs===0){let a;n.sheetsCache&&(a=M.get(n.sheetsCache,t,r));const f=t.create(r,o);a||(a=n.jss.createStyleSheet(f,R({link:!1},c)),a.attach(),n.sheetsCache&&M.set(n.sheetsCache,t,r,a)),l&&l.add(a),d.staticSheet=a,d.dynamicStyles=rt(f)}if(d.dynamicStyles){const a=n.jss.createStyleSheet(d.dynamicStyles,R({link:!0},c));a.update(u),a.attach(),e.dynamicSheet=a,e.classes=me({baseClasses:d.staticSheet.classes,newClasses:a.classes}),l&&l.add(a)}else e.classes=d.staticSheet.classes;d.refs+=1}function St({state:e},r){e.dynamicSheet&&e.dynamicSheet.update(r)}function Ct({state:e,theme:r,stylesOptions:n,stylesCreator:t}){if(n.disableGeneration)return;const o=M.get(n.sheetsManager,t,r);o.refs-=1;const u=n.sheetsRegistry;o.refs===0&&(M.delete(n.sheetsManager,t,r),n.jss.removeStyleSheet(o.staticSheet),u&&u.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),u&&u.remove(e.dynamicSheet))}function bt(e,r){const n=g.useRef([]);let t;const o=g.useMemo(()=>({}),r);n.current!==o&&(n.current=o,t=e()),g.useEffect(()=>()=>{t&&t()},[o])}function G(e,r={}){const{name:n,classNamePrefix:t,Component:o,defaultTheme:u=gt}=r,d=B(r,vt),c=xt(e),l=n||t||"makeStyles";return c.options={index:pt(),name:n,meta:l,classNamePrefix:l},(f={})=>{const h=Ve()||u,v=R({},g.useContext(ft),d),S=g.useRef(),p=g.useRef();return bt(()=>{const C={name:n,state:{},stylesCreator:c,stylesOptions:v,theme:h};return jt(C,f),p.current=!1,S.current=C,()=>{Ct(C)}},[h,c]),g.useEffect(()=>{p.current&&St(S.current,f),p.current=!0}),yt(S.current,f.classes,o)}}const wt=["name"],Rt=["children","className","clone","component"];function kt(e,r){const n={};return Object.keys(e).forEach(t=>{r.indexOf(t)===-1&&(n[t]=e[t])}),n}function Tt(e){return(n,t={})=>{const{name:o}=t,u=B(t,wt);let d=o;const l=G(typeof n=="function"?h=>({root:v=>n(R({theme:h},v))}):{root:n},R({Component:e,name:o||e.displayName,classNamePrefix:d},u));let a;n.filterProps&&(a=n.filterProps,delete n.filterProps),n.propTypes&&(n.propTypes,delete n.propTypes);const f=g.forwardRef(function(v,S){const{children:p,className:y,clone:C,component:w}=v,j=B(v,Rt),m=l(v),b=ee(m.root,y);let k=j;if(a&&(k=kt(k,a)),C)return g.cloneElement(p,R({className:ee(p.props.className,b)},k));if(typeof p=="function")return p(R({className:b},k));const T=w||e;return s.jsx(T,R({ref:S,className:b},k,{children:p}))});return Ee(f,e),f}}const{NODE_MODES:ie}=ae,_t=({mode:e,previousMode:r}={})=>e===ie.SERVERLESS||r===ie.SERVERLESS;var Et={isInServerlessMode:_t};const $t=G(e=>({addMenuItemRoot:{marginTop:"8px",justifyContent:"center",color:e.palette.primary.main,lineHeight:"3.2"}}));function he({disabled:e,storeList:r,teamDid:n,onAdd:t,scope:o,hiddenChildren:u,open:d,onClose:c}){const{api:l}=W(),[a,f]=g.useState(!1),[h,v]=g.useState(!0),[S,p]=g.useState(!1),[y,C]=g.useState(""),[w,j]=g.useState(""),{t:m}=z(),b=$t(),k=async()=>{f(!0);try{const{decoded:x}=De(y,r);await l.addBlockletStore({input:{teamDid:n,url:x,scope:o}}),t(x),p(!1),c()}catch(x){const P=`${m("store.blockletRegistry.addFailed")} ${O(x)}`;j(P)}finally{f(!1)}},T=()=>{p(!1),c()};return s.jsxs(s.Fragment,{children:[!u&&s.jsxs(Be,{button:!0,disabled:e,className:b.addMenuItemRoot,onClick:()=>{p(!0)},children:[s.jsx(Oe,{font:!0}),s.jsx(E,{variant:"inherit",children:m("store.blockletRegistry.addRegistry")})]}),s.jsxs($e,{title:m("store.blockletRegistry.addRegistry"),fullWidth:!0,maxWidth:"md",open:d||S,onClose:T,PaperProps:{style:{minHeight:"auto"}},actions:s.jsxs(s.Fragment,{children:[s.jsx(te,{onClick:x=>{x.stopPropagation(),T()},color:"inherit",children:m("common.cancel")}),s.jsxs(te,{onClick:x=>{x.stopPropagation(),k()},color:"primary","data-cy":"install-blocklet-next-step",disabled:a||!y||h,variant:"contained",autoFocus:!0,children:[a&&s.jsx(q,{size:16}),m("common.confirm")]})]}),children:[s.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:s.jsx(Ae,{component:"div",children:s.jsx(E,{component:"div",children:s.jsx(le,{label:m("store.blockletRegistry.registryUrl"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:y,onChange:x=>{j(null);let P=!1;x.target.value.trim()||(P=!0),x.target.value.trim()||j(m("store.blockletRegistry.registryUrlEmpty")),C(x.target.value),v(P)},disabled:a,onKeyPress:x=>{x.key==="Enter"&&(x.preventDefault(),x.target.value.trim()?k():j(m("store.blockletRegistry.registryUrlEmpty")))}})})})}),!!w&&s.jsx(de,{severity:"error",style:{width:"100%"},children:w})]})]})}he.propTypes={teamDid:i.string.isRequired,disabled:i.bool,storeList:i.array,onAdd:i.func,scope:i.string,hiddenChildren:i.bool,open:i.bool,onClose:i.func};he.defaultProps={disabled:!1,storeList:[],onAdd:()=>{},scope:"",hiddenChildren:!1,open:!1,onClose:()=>{}};var J={},Dt=V;Object.defineProperty(J,"__esModule",{value:!0});var ge=J.default=void 0,Nt=Dt(H()),Pt=s;ge=J.default=(0,Nt.default)((0,Pt.jsx)("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"}),"LinkOutlined");var K={},It=V;Object.defineProperty(K,"__esModule",{value:!0});var xe=K.default=void 0,Mt=It(H()),Lt=s;xe=K.default=(0,Mt.default)((0,Lt.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"}),"BackupOutlined");function Y({title:e,description:r,confirmPlaceholder:n,cancel:t,confirm:o,params:u,onCancel:d,onConfirm:c,keyName:l}){const{t:a}=z(),f={title:()=>s.jsxs("div",{children:[e,s.jsx(He,{sx:{fontSize:"14px"},maxLength:64,children:` (${l})`})]}),description:(h,v)=>{const S=p=>{v({...p,__disableConfirm:p.__disableConfirm})};return s.jsxs("div",{children:[s.jsx(de,{severity:"warning",style:{width:"100%"},children:a("common.notice")}),s.jsx("div",{style:{marginTop:24,marginBottom:24},dangerouslySetInnerHTML:{__html:r}}),s.jsxs("div",{style:{marginBottom:24},children:[a("common.click"),":",s.jsx(We,{"data-cy":"click-copy",children:l})]}),s.jsx(E,{component:"div",children:s.jsx(le,{label:n,autoComplete:"off","data-cy":"delete-confirm-input",variant:"outlined",fullWidth:!0,autoFocus:!0,value:h.inputVal,onChange:p=>{S({...h,inputVal:p.target.value,__disableConfirm:l!==p.target.value})}})})]})},confirm:o,cancel:t,onConfirm:c,onCancel:d,params:{inputVal:"",__disableConfirm:!0,...u}};return s.jsx(pe,{title:f.title,description:f.description,confirm:f.confirm,cancel:f.cancel,params:f.params,onConfirm:f.onConfirm,onCancel:f.onCancel})}Y.propTypes={title:i.any.isRequired,keyName:i.any.isRequired,description:i.any.isRequired,confirmPlaceholder:i.any.isRequired,cancel:i.string,confirm:i.string,params:i.object,onCancel:i.func,onConfirm:i.func.isRequired};Y.defaultProps={onCancel:()=>{},cancel:"",confirm:"Confirm",params:{}};function A({store:e,teamDid:r,onDelete:n,children:t,projectId:o="",scope:u=""}){const{api:d}=W(),{t:c}=z(),l=Ne(),[a,f]=g.useState(!1),[h,v]=g.useState(null),S=Pe(),p=()=>{f(!1),v(null)},y=async()=>{try{f(!0),await d.deleteBlockletStore({input:{teamDid:r,url:e.url,projectId:o,scope:u}}),await(l==null?void 0:l.actions.refreshBlocklet()),n&&typeof n=="function"&&n()}catch(j){$.error(`Remove Blocklet Store Error: ${O(j)}`)}finally{f(!1),v(null)}},C={keyName:e.url,title:c("store.blockletRegistry.deleteRegistry"),description:c("store.blockletRegistry.deleteDesc",{name:`<b>${e.url}</b>`,color:S.palette.error.main}),confirmPlaceholder:c("store.blockletRegistry.confirmDesc",{name:e.url}),confirm:c("common.delConfirm"),cancel:c("common.cancel"),onConfirm:y,onCancel:p},w=j=>{e.protected||(j.stopPropagation(),v(C))};return s.jsxs(s.Fragment,{children:[t?s.jsx("span",{onClick:w,children:t}):s.jsx(D,{color:"primary",disabled:a,onClick:w,size:"small",children:s.jsx(fe,{sx:{zoom:.95}})}),h&&s.jsx(Y,{keyName:h.keyName,title:h.title,description:h.description,confirmPlaceholder:h.confirmPlaceholder,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]})}A.propTypes={children:i.node,teamDid:i.string.isRequired,store:i.object.isRequired,onDelete:i.func,projectId:i.string,scope:i.string};A.defaultProps={children:null,projectId:"",scope:"",onDelete:()=>{}};var X={},zt=V;Object.defineProperty(X,"__esModule",{value:!0});var ve=X.default=void 0,qt=zt(H()),Ot=s;ve=X.default=(0,qt.default)((0,Ot.jsx)("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"}),"LinkOff");const Bt=({store:e,userDid:r})=>{var t;const n=((t=window.blocklet)==null?void 0:t.tenantMode)!==Ie.BLOCKLET_TENANT_MODES.MULTIPLE;return e.protected?!1:e.scope&&e.scope===r?!0:n?e.scope==="studio":!1};function Q({connectedStore:e,onDisconnect:r,onDelete:n,store:t,teamDid:o,projectId:u}){var j;const[d,c]=g.useState(null),l=!!d,{t:a}=z(),{session:f}=Ge(),[h,v]=g.useState(!1),S=m=>{if(m.stopPropagation(),e!=null&&e.developerDid){const b=ce.from(JSON.stringify({forceConnected:e==null?void 0:e.developerDid}),"utf8").toString("base64");window.open(`${L(t.url,"developer/blocklets")}?__did-connect__=${b}`)}else window.open(`${L(t.url,"developer/blocklets")}`)},p=m=>{c(m.currentTarget)},y=()=>{c(null)},C=()=>{v(!1),r()},w=[{label:a("common.visitStore"),action:S,icon:ue},{label:a("common.disconnect"),action:()=>{y(),v(!0)},icon:ve,hidden:!e}];return s.jsxs(s.Fragment,{children:[s.jsx(D,{ref:d,color:"primary",onClick:p,size:"small",children:s.jsx(Ue,{sx:{zoom:.95}})}),s.jsxs(Me,{anchorEl:d,open:l,onClose:y,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:[w.map(m=>m.hidden?null:s.jsxs(ne,{dense:!0,onClick:m.action,disabled:m.disabled,children:[m.icon&&s.jsx(m.icon,{color:"action",sx:{marginRight:1}}),s.jsx(N,{color:"action",children:m.label})]},m.label)),Bt({store:t,userDid:(j=f==null?void 0:f.user)==null?void 0:j.did})&&s.jsx(A,{store:t,onDelete:n,teamDid:o,projectId:u,scope:t.scope||"studio",children:s.jsxs(ne,{dense:!0,disabled:t.protected,children:[s.jsx(fe,{sx:{color:t.protected?"action":"error.main",marginRight:1}}),s.jsx(N,{color:t.protected?"action":"error.main",children:a("common.delete")})]})})]}),h&&s.jsx(pe,{displayError:!0,title:`${a("common.disconnect")} ${t.name}`,description:a("blocklet.publish.disconnectStoreTip"),confirm:a("common.confirm"),onConfirm:C,onCancel:()=>v(!1)})]})}Q.propTypes={connectedStore:i.object.isRequired,onDisconnect:i.func,onDelete:i.func,store:i.object.isRequired,teamDid:i.string.isRequired,projectId:i.string};Q.defaultProps={projectId:"",onDelete:()=>{},onDisconnect:()=>{}};function Ut({messageType:e,onOpen:r,onClose:n}){const t=g.useRef(null),o=g.useRef(null),u=async c=>{setTimeout(()=>{try{n==null||n()}catch{}},10*1e3),t.current&&(clearInterval(o.current),t.current.close());const l=Math.random().toString(36).slice(2);t.current=window.open(`${ae.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window?key=${l}`,"_blank"),r==null||r(t.current),o.current=setInterval(()=>{(!t.current||t.current.closed)&&(t.current=null,clearInterval(o.current),setTimeout(()=>{n==null||n()},1100))},200),await Promise.resolve(c(t.current,a=>{if(!t.current){localStorage.setItem(`open-window-url-${l}`,JSON.stringify({url:a,time:Date.now()}));return}t.current.location.href=a}))},d=Le(c=>{const{type:l,error:a}=c.data;t.current&&l===e&&a&&($.error(a),n==null||n())});return g.useEffect(()=>(window.addEventListener("message",d),()=>{window.removeEventListener("message",d)}),[d]),u}function U({connectedStore:e,sx:r,...n}){return s.jsx(Ke,{sx:{width:24,height:24,...r},src:L(e.storeUrl,`/.well-known/service/user/avatar/${e.developerDid}?imageFilter=resize&w=120&h=120`),...n})}U.propTypes={connectedStore:i.object.isRequired,sx:i.object};U.defaultProps={sx:{}};function ye({storeUrl:e,storeName:r,developerDid:n,published:t}){const{t:o}=z(),u=()=>{if(n){const d=ce.from(JSON.stringify({forceConnected:n}),"utf8").toString("base64");window.open(`${L(e,"developer/blocklets")}?__did-connect__=${d}`)}else window.open(`${L(e,"developer/blocklets")}`)};return s.jsxs(N,{children:[s.jsx(E,{variant:"subtitle2",children:o(t?"blocklet.publish.publishToStoreSuccess":"blocklet.publish.uploadToStoreSuccess",{name:r})}),s.jsx(D,{size:"small",sx:{mt:1},onClick:u,variant:"contained",color:"success",children:o("common.visitTarget",{name:r})})]})}ye.propTypes={storeName:i.string.isRequired,storeUrl:i.string.isRequired,developerDid:i.string.isRequired,published:i.bool.isRequired};const je={CONNECT:"connect",SELECT:"select"},At=G(()=>({buttonText:{textTransform:"none !important"},iconRoot:{minWidth:24},box:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",overflow:"hidden",width:"100%"},menuName:{flexShrink:1,display:"flex",flexDirection:"column",overflow:"hidden",flex:1},actions:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},title:{fontSize:16,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},url:{fontSize:14,opacity:.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},buttonLine:{height:"100%",width:"1px",backgroundColor:"#e0e0e0"}})),Ft=Tt(({className:e,...r})=>s.jsx(qe,{...r,classes:{popper:e}}))(({theme:e})=>({[`& .${ze.tooltip}`]:{backgroundColor:"#fff",color:"rgba(0, 0, 0, 0.87)",borderRadius:8,padding:e.spacing(2),fontSize:e.typography.pxToRem(12),border:"1px solid rgba(0,0,0,0.08)",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.05)"}}));function Se({teamDid:e,projectId:r,releaseId:n,store:t,onDelete:o,kind:u,published:d,connectedStore:c,releaseType:l,onPublish:a,onOpenConnectStore:f,onSelectConnectStore:h,behavior:v,scope:S=""}){const p=At(),{t:y}=z(),{api:C,info:w,inService:j}=W(),[m,b]=g.useState(!1),k=Ut({messageType:"connect-store-message",onOpen:()=>b(!0),onClose:()=>b(!1)}),T=u==="publish",x=!!c,P=_=>{if(_.stopPropagation(),T){window.open(L(t.url,"developer/blocklets"));return}window.open(t.url)},Ce=()=>{if(v===je.SELECT){h(t);return}k(async(_,ke)=>{try{const I=await C.connectToStore({input:{did:e,storeUrl:t.url,storeId:t.id,storeName:t.name,projectId:r}});if(!(I!=null&&I.url)){$.error("failed to connect to store");return}ke(I.url),await f({did:e,projectId:r,storeId:t.id}),b(!1)}catch(I){const Te=O(I);$.error(Te),b(!1)}})},be=async()=>{try{await C.disconnectFromStore({input:{did:e,storeId:t.id,projectId:r,storeScope:S}}),o()}catch(_){$.error(O(_))}},we=()=>{b(!0),C.publishToStore({input:{did:e,storeId:t.id,storeName:t.name,projectId:r,releaseId:n,type:l}}).then(_=>{$.success(s.jsx(ye,{storeName:c.storeName,storeUrl:c.storeUrl,developerDid:c.developerDid,published:_.url==="published"}),{duration:1e4}),a==null||a(null)}).catch(_=>{$.error(O(_)),a==null||a(_)}).finally(()=>{b(!1)})};g.useEffect(()=>{x&&b(!1)},[x]);const Re=g.useMemo(()=>!(j&&Et.isInServerlessMode(w)),[j,w]);return s.jsxs("div",{className:p.box,children:[!T&&m&&s.jsx(q,{sx:{marginRight:2},size:16}),s.jsxs("div",{className:p.menuName,children:[s.jsx(N,{sx:{display:"flex",flexDirection:"row"},children:s.jsx(E,{component:"span",className:p.title,variant:"subtitle1",children:t.name})}),s.jsx(E,{className:p.url,component:"span",variant:"inherit",children:`${t.url}`})]}),s.jsxs("div",{className:p.actions,children:[c&&s.jsx(Ft,{placement:"top",title:s.jsxs(N,{children:[s.jsx(E,{component:"span",variant:"caption",sx:{opacity:.7},children:y("blocklet.publish.developerInfo")}),s.jsxs(N,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:1,mt:1},children:[s.jsx(U,{connectedStore:c,sx:{width:42,height:42}}),s.jsxs(N,{sx:{flex:1},children:[s.jsx(E,{component:"span",variant:"subtitle1",children:c.developerName}),s.jsx(Je,{size:14,copyable:!0,compact:!0,responsive:!1,did:c.developerDid})]})]})]}),children:s.jsx("div",{children:s.jsx(U,{connectedStore:c,sx:{marginRight:1,cursor:"help"}})})}),T&&s.jsxs(se,{disabled:m,variant:"outlined",sx:{height:38},size:"small",children:[!x&&s.jsxs(D,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},onClick:Ce,children:[m?s.jsx(q,{sx:{marginRight:1},size:16}):s.jsx(ge,{sx:{marginRight:1}}),y("common.connect")]}),x&&d&&s.jsxs(D,{disabled:!0,sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},children:[m?s.jsx(q,{sx:{marginRight:1},size:16}):s.jsx(Fe,{sx:{marginRight:1}}),y("common.uploaded")]}),x&&!d&&s.jsxs(D,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},onClick:we,children:[m?s.jsx(q,{sx:{marginRight:1},size:16}):s.jsx(xe,{sx:{marginRight:1,fontSize:20}}),y("common.upload")]}),s.jsx(Q,{projectId:r,connectedStore:c,store:t,onDelete:o,teamDid:e,onDisconnect:be})]}),!T&&s.jsxs(se,{disabled:m,variant:"outlined",sx:{height:36},size:"small",children:[s.jsx(D,{onClick:P,children:s.jsx(ue,{sx:{zoom:.9}})}),!t.protected&&Re&&s.jsx(A,{store:t,onDelete:o,teamDid:e,scope:""})]})]})]})}Se.propTypes={kind:i.string,teamDid:i.string.isRequired,published:i.bool,connectedStore:i.shape({storeName:i.string,storeId:i.string,storeUrl:i.string,developerDid:i.string,developerName:i.string}),projectId:i.string,releaseId:i.string,releaseType:i.string,store:i.shape({id:i.string.isRequired,name:i.string.isRequired,url:i.string.isRequired,protected:i.bool,connected:i.bool}).isRequired,scope:i.string,onDelete:i.func,onPublish:i.func,onOpenConnectStore:i.func,behavior:i.string,onSelectConnectStore:i.func};Se.defaultProps={kind:"store",published:!1,connectedStore:null,releaseId:"",projectId:"",releaseType:"",scope:"",behavior:je.CONNECT,onPublish:()=>{},onDelete:()=>{},onOpenConnectStore:()=>{},onSelectConnectStore:()=>{}};export{he as A,Y as C,Se as S,ye as U,Bt as c,G as m,Et as s,Ut as u};
1
+ import{fp as _e,aK as R,r as g,aJ as B,aH as W,dq as Z,eE as Ee,aM as ee,j as s,G as ae,aP as F,u as z,T as E,au as $e,a1 as te,n as q,fo as De,P as i,X as H,Y as V,aY as Ne,aj as Pe,b as D,t as $,aa as Ie,aR as Me,aT as ne,B as N,eS as ce,c as L,l as Le,et as ze,a as qe}from"./index-DJFwMRI_.js";import{d as Oe}from"./Add-C5-W3UKp.js";import{L as Be,d as Ue}from"./MoreVert-BKZLkhdi.js";import{D as Ae}from"./DialogContentText-CS5MSQtu.js";import{T as le}from"./TextField-QsTZLSPK.js";import{A as de}from"./Alert-MPiiZl43.js";import{f as O}from"./format-error-w94y5K97.js";import{d as ue}from"./Launch-ZPrDFcJQ.js";import{d as We}from"./Done-BIgK0-yu.js";import{d as fe}from"./DeleteOutline-DbdWy8tC.js";import{C as Fe}from"./click-to-copy-D1KutRoB.js";import{S as He}from"./shorten-label-BhcDm1Xa.js";import{u as Ve,C as pe}from"./confirm-mU2XAWpU.js";import{u as Ge}from"./session-DmKeILdZ.js";import{W as Je}from"./did-address-BsU-n4pW.js";import{A as Ke}from"./Avatar-DDKBALaJ.js";import{B as se}from"./ButtonGroup-D8BlpFOF.js";import{f as Ye,j as Xe,a as Qe,c as Ze,d as et,b as tt,e as nt,g as st,h as rt}from"./jss-plugin-props-sort.esm-BkCakvUL.js";const ot=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function it(e={}){const{disableGlobal:r=!1,productionPrefix:n="jss",seed:t=""}=e,o=t===""?"":`${t}-`;let u=0;const d=()=>(u+=1,u);return(c,l)=>{const a=l.options.name;if(a&&a.indexOf("Mui")===0&&!l.options.link&&!r){if(ot.indexOf(c.key)!==-1)return`Mui-${c.key}`;const f=`${o}${a}-${c.key}`;return!l.options.theme[_e]||t!==""?f:`${f}-${d()}`}return`${o}${n}${d()}`}}function at(){return{plugins:[Ye(),Xe(),Qe(),Ze(),et(),typeof window>"u"?null:tt(),nt()]}}function me(e={}){const{baseClasses:r,newClasses:n,Component:t}=e;if(!n)return r;const o=R({},r);return Object.keys(n).forEach(u=>{n[u]&&(o[u]=`${r[u]} ${n[u]}`)}),o}const M={set:(e,r,n,t)=>{let o=e.get(r);o||(o=new Map,e.set(r,o)),o.set(n,t)},get:(e,r,n)=>{const t=e.get(r);return t?t.get(n):void 0},delete:(e,r,n)=>{e.get(r).delete(n)}},ct=st(at()),lt=it(),dt=new Map,ut={disableGeneration:!1,generateClassName:lt,jss:ct,sheetsCache:null,sheetsManager:dt,sheetsRegistry:null},ft=g.createContext(ut);let re=-1e9;function pt(){return re+=1,re}const mt=["variant"];function oe(e){return e.length===0}function ht(e){const{variant:r}=e,n=B(e,mt);let t=r||"";return Object.keys(n).sort().forEach(o=>{o==="color"?t+=oe(t)?e[o]:W(e[o]):t+=`${oe(t)?o:W(o)}${W(e[o].toString())}`}),t}const gt={};function xt(e){const r=typeof e=="function";return{create:(n,t)=>{let o;try{o=r?e(n):e}catch(l){throw l}if(!t||!n.components||!n.components[t]||!n.components[t].styleOverrides&&!n.components[t].variants)return o;const u=n.components[t].styleOverrides||{},d=n.components[t].variants||[],c=R({},o);return Object.keys(u).forEach(l=>{c[l]=Z(c[l]||{},u[l])}),d.forEach(l=>{const a=ht(l.props);c[a]=Z(c[a]||{},l.style)}),c},options:{}}}const vt=["name","classNamePrefix","Component","defaultTheme"];function yt({state:e,stylesOptions:r},n,t){if(r.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let o=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,o=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,o=!0),o&&(e.cacheClasses.value=me({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:t})),e.cacheClasses.value}function jt({state:e,theme:r,stylesOptions:n,stylesCreator:t,name:o},u){if(n.disableGeneration)return;let d=M.get(n.sheetsManager,t,r);d||(d={refs:0,staticSheet:null,dynamicStyles:null},M.set(n.sheetsManager,t,r,d));const c=R({},t.options,n,{theme:r,flip:typeof n.flip=="boolean"?n.flip:r.direction==="rtl"});c.generateId=c.serverGenerateClassName||c.generateClassName;const l=n.sheetsRegistry;if(d.refs===0){let a;n.sheetsCache&&(a=M.get(n.sheetsCache,t,r));const f=t.create(r,o);a||(a=n.jss.createStyleSheet(f,R({link:!1},c)),a.attach(),n.sheetsCache&&M.set(n.sheetsCache,t,r,a)),l&&l.add(a),d.staticSheet=a,d.dynamicStyles=rt(f)}if(d.dynamicStyles){const a=n.jss.createStyleSheet(d.dynamicStyles,R({link:!0},c));a.update(u),a.attach(),e.dynamicSheet=a,e.classes=me({baseClasses:d.staticSheet.classes,newClasses:a.classes}),l&&l.add(a)}else e.classes=d.staticSheet.classes;d.refs+=1}function St({state:e},r){e.dynamicSheet&&e.dynamicSheet.update(r)}function Ct({state:e,theme:r,stylesOptions:n,stylesCreator:t}){if(n.disableGeneration)return;const o=M.get(n.sheetsManager,t,r);o.refs-=1;const u=n.sheetsRegistry;o.refs===0&&(M.delete(n.sheetsManager,t,r),n.jss.removeStyleSheet(o.staticSheet),u&&u.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),u&&u.remove(e.dynamicSheet))}function bt(e,r){const n=g.useRef([]);let t;const o=g.useMemo(()=>({}),r);n.current!==o&&(n.current=o,t=e()),g.useEffect(()=>()=>{t&&t()},[o])}function G(e,r={}){const{name:n,classNamePrefix:t,Component:o,defaultTheme:u=gt}=r,d=B(r,vt),c=xt(e),l=n||t||"makeStyles";return c.options={index:pt(),name:n,meta:l,classNamePrefix:l},(f={})=>{const h=Ve()||u,v=R({},g.useContext(ft),d),S=g.useRef(),p=g.useRef();return bt(()=>{const C={name:n,state:{},stylesCreator:c,stylesOptions:v,theme:h};return jt(C,f),p.current=!1,S.current=C,()=>{Ct(C)}},[h,c]),g.useEffect(()=>{p.current&&St(S.current,f),p.current=!0}),yt(S.current,f.classes,o)}}const wt=["name"],Rt=["children","className","clone","component"];function kt(e,r){const n={};return Object.keys(e).forEach(t=>{r.indexOf(t)===-1&&(n[t]=e[t])}),n}function Tt(e){return(n,t={})=>{const{name:o}=t,u=B(t,wt);let d=o;const l=G(typeof n=="function"?h=>({root:v=>n(R({theme:h},v))}):{root:n},R({Component:e,name:o||e.displayName,classNamePrefix:d},u));let a;n.filterProps&&(a=n.filterProps,delete n.filterProps),n.propTypes&&(n.propTypes,delete n.propTypes);const f=g.forwardRef(function(v,S){const{children:p,className:y,clone:C,component:w}=v,j=B(v,Rt),m=l(v),b=ee(m.root,y);let k=j;if(a&&(k=kt(k,a)),C)return g.cloneElement(p,R({className:ee(p.props.className,b)},k));if(typeof p=="function")return p(R({className:b},k));const T=w||e;return s.jsx(T,R({ref:S,className:b},k,{children:p}))});return Ee(f,e),f}}const{NODE_MODES:ie}=ae,_t=({mode:e,previousMode:r}={})=>e===ie.SERVERLESS||r===ie.SERVERLESS;var Et={isInServerlessMode:_t};const $t=G(e=>({addMenuItemRoot:{marginTop:"8px",justifyContent:"center",color:e.palette.primary.main,lineHeight:"3.2"}}));function he({disabled:e,storeList:r,teamDid:n,onAdd:t,scope:o,hiddenChildren:u,open:d,onClose:c}){const{api:l}=F(),[a,f]=g.useState(!1),[h,v]=g.useState(!0),[S,p]=g.useState(!1),[y,C]=g.useState(""),[w,j]=g.useState(""),{t:m}=z(),b=$t(),k=async()=>{f(!0);try{const{decoded:x}=De(y,r);await l.addBlockletStore({input:{teamDid:n,url:x,scope:o}}),t(x),p(!1),c()}catch(x){const P=`${m("store.blockletRegistry.addFailed")} ${O(x)}`;j(P)}finally{f(!1)}},T=()=>{p(!1),c()};return s.jsxs(s.Fragment,{children:[!u&&s.jsxs(Be,{button:!0,disabled:e,className:b.addMenuItemRoot,onClick:()=>{p(!0)},children:[s.jsx(Oe,{font:!0}),s.jsx(E,{variant:"inherit",children:m("store.blockletRegistry.addRegistry")})]}),s.jsxs($e,{title:m("store.blockletRegistry.addRegistry"),fullWidth:!0,maxWidth:"md",open:d||S,onClose:T,PaperProps:{style:{minHeight:"auto"}},actions:s.jsxs(s.Fragment,{children:[s.jsx(te,{onClick:x=>{x.stopPropagation(),T()},color:"inherit",children:m("common.cancel")}),s.jsxs(te,{onClick:x=>{x.stopPropagation(),k()},color:"primary","data-cy":"install-blocklet-next-step",disabled:a||!y||h,variant:"contained",autoFocus:!0,children:[a&&s.jsx(q,{size:16}),m("common.confirm")]})]}),children:[s.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:s.jsx(Ae,{component:"div",children:s.jsx(E,{component:"div",children:s.jsx(le,{label:m("store.blockletRegistry.registryUrl"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:y,onChange:x=>{j(null);let P=!1;x.target.value.trim()||(P=!0),x.target.value.trim()||j(m("store.blockletRegistry.registryUrlEmpty")),C(x.target.value),v(P)},disabled:a,onKeyPress:x=>{x.key==="Enter"&&(x.preventDefault(),x.target.value.trim()?k():j(m("store.blockletRegistry.registryUrlEmpty")))}})})})}),!!w&&s.jsx(de,{severity:"error",style:{width:"100%"},children:w})]})]})}he.propTypes={teamDid:i.string.isRequired,disabled:i.bool,storeList:i.array,onAdd:i.func,scope:i.string,hiddenChildren:i.bool,open:i.bool,onClose:i.func};he.defaultProps={disabled:!1,storeList:[],onAdd:()=>{},scope:"",hiddenChildren:!1,open:!1,onClose:()=>{}};var J={},Dt=V;Object.defineProperty(J,"__esModule",{value:!0});var ge=J.default=void 0,Nt=Dt(H()),Pt=s;ge=J.default=(0,Nt.default)((0,Pt.jsx)("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"}),"LinkOutlined");var K={},It=V;Object.defineProperty(K,"__esModule",{value:!0});var xe=K.default=void 0,Mt=It(H()),Lt=s;xe=K.default=(0,Mt.default)((0,Lt.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"}),"BackupOutlined");function Y({title:e,description:r,confirmPlaceholder:n,cancel:t,confirm:o,params:u,onCancel:d,onConfirm:c,keyName:l}){const{t:a}=z(),f={title:()=>s.jsxs("div",{children:[e,s.jsx(He,{sx:{fontSize:"14px"},maxLength:64,children:` (${l})`})]}),description:(h,v)=>{const S=p=>{v({...p,__disableConfirm:p.__disableConfirm})};return s.jsxs("div",{children:[s.jsx(de,{severity:"warning",style:{width:"100%"},children:a("common.notice")}),s.jsx("div",{style:{marginTop:24,marginBottom:24},dangerouslySetInnerHTML:{__html:r}}),s.jsxs("div",{style:{marginBottom:24},children:[a("common.click"),":",s.jsx(Fe,{"data-cy":"click-copy",children:l})]}),s.jsx(E,{component:"div",children:s.jsx(le,{label:n,autoComplete:"off","data-cy":"delete-confirm-input",variant:"outlined",fullWidth:!0,autoFocus:!0,value:h.inputVal,onChange:p=>{S({...h,inputVal:p.target.value,__disableConfirm:l!==p.target.value})}})})]})},confirm:o,cancel:t,onConfirm:c,onCancel:d,params:{inputVal:"",__disableConfirm:!0,...u}};return s.jsx(pe,{title:f.title,description:f.description,confirm:f.confirm,cancel:f.cancel,params:f.params,onConfirm:f.onConfirm,onCancel:f.onCancel})}Y.propTypes={title:i.any.isRequired,keyName:i.any.isRequired,description:i.any.isRequired,confirmPlaceholder:i.any.isRequired,cancel:i.string,confirm:i.string,params:i.object,onCancel:i.func,onConfirm:i.func.isRequired};Y.defaultProps={onCancel:()=>{},cancel:"",confirm:"Confirm",params:{}};function A({store:e,teamDid:r,onDelete:n,children:t,projectId:o="",scope:u=""}){const{api:d}=F(),{t:c}=z(),l=Ne(),[a,f]=g.useState(!1),[h,v]=g.useState(null),S=Pe(),p=()=>{f(!1),v(null)},y=async()=>{try{f(!0),await d.deleteBlockletStore({input:{teamDid:r,url:e.url,projectId:o,scope:u}}),await(l==null?void 0:l.actions.refreshBlocklet()),n&&typeof n=="function"&&n()}catch(j){$.error(`Remove Blocklet Store Error: ${O(j)}`)}finally{f(!1),v(null)}},C={keyName:e.url,title:c("store.blockletRegistry.deleteRegistry"),description:c("store.blockletRegistry.deleteDesc",{name:`<b>${e.url}</b>`,color:S.palette.error.main}),confirmPlaceholder:c("store.blockletRegistry.confirmDesc",{name:e.url}),confirm:c("common.delConfirm"),cancel:c("common.cancel"),onConfirm:y,onCancel:p},w=j=>{e.protected||(j.stopPropagation(),v(C))};return s.jsxs(s.Fragment,{children:[t?s.jsx("span",{onClick:w,children:t}):s.jsx(D,{color:"primary",disabled:a,onClick:w,size:"small",children:s.jsx(fe,{sx:{zoom:.95}})}),h&&s.jsx(Y,{keyName:h.keyName,title:h.title,description:h.description,confirmPlaceholder:h.confirmPlaceholder,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]})}A.propTypes={children:i.node,teamDid:i.string.isRequired,store:i.object.isRequired,onDelete:i.func,projectId:i.string,scope:i.string};A.defaultProps={children:null,projectId:"",scope:"",onDelete:()=>{}};var X={},zt=V;Object.defineProperty(X,"__esModule",{value:!0});var ve=X.default=void 0,qt=zt(H()),Ot=s;ve=X.default=(0,qt.default)((0,Ot.jsx)("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"}),"LinkOff");const Bt=({store:e,userDid:r})=>{var t;const n=((t=window.blocklet)==null?void 0:t.tenantMode)!==Ie.BLOCKLET_TENANT_MODES.MULTIPLE;return e.protected?!1:e.scope&&e.scope===r?!0:n?e.scope==="studio":!1};function Q({connectedStore:e,onDisconnect:r,onDelete:n,store:t,teamDid:o,projectId:u}){var j;const[d,c]=g.useState(null),l=!!d,{t:a}=z(),{session:f}=Ge(),[h,v]=g.useState(!1),S=m=>{if(m.stopPropagation(),e!=null&&e.developerDid){const b=ce.from(JSON.stringify({forceConnected:e==null?void 0:e.developerDid}),"utf8").toString("base64");window.open(`${L(t.url,"developer/blocklets")}?__did-connect__=${b}`)}else window.open(`${L(t.url,"developer/blocklets")}`)},p=m=>{c(m.currentTarget)},y=()=>{c(null)},C=()=>{v(!1),r()},w=[{label:a("common.visitStore"),action:S,icon:ue},{label:a("common.disconnect"),action:()=>{y(),v(!0)},icon:ve,hidden:!e}];return s.jsxs(s.Fragment,{children:[s.jsx(D,{ref:d,color:"primary",onClick:p,size:"small",children:s.jsx(Ue,{sx:{zoom:.95}})}),s.jsxs(Me,{anchorEl:d,open:l,onClose:y,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:[w.map(m=>m.hidden?null:s.jsxs(ne,{dense:!0,onClick:m.action,disabled:m.disabled,children:[m.icon&&s.jsx(m.icon,{color:"action",sx:{marginRight:1}}),s.jsx(N,{color:"action",children:m.label})]},m.label)),Bt({store:t,userDid:(j=f==null?void 0:f.user)==null?void 0:j.did})&&s.jsx(A,{store:t,onDelete:n,teamDid:o,projectId:u,scope:t.scope||"studio",children:s.jsxs(ne,{dense:!0,disabled:t.protected,children:[s.jsx(fe,{sx:{color:t.protected?"action":"error.main",marginRight:1}}),s.jsx(N,{color:t.protected?"action":"error.main",children:a("common.delete")})]})})]}),h&&s.jsx(pe,{displayError:!0,title:`${a("common.disconnect")} ${t.name}`,description:a("blocklet.publish.disconnectStoreTip"),confirm:a("common.confirm"),onConfirm:C,onCancel:()=>v(!1)})]})}Q.propTypes={connectedStore:i.object.isRequired,onDisconnect:i.func,onDelete:i.func,store:i.object.isRequired,teamDid:i.string.isRequired,projectId:i.string};Q.defaultProps={projectId:"",onDelete:()=>{},onDisconnect:()=>{}};function Ut({messageType:e,onOpen:r,onClose:n}){const t=g.useRef(null),o=g.useRef(null),u=async c=>{setTimeout(()=>{try{n==null||n()}catch{}},10*1e3),t.current&&(clearInterval(o.current),t.current.close());const l=Math.random().toString(36).slice(2);t.current=window.open(`${ae.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window?key=${l}`,"_blank"),r==null||r(t.current),o.current=setInterval(()=>{(!t.current||t.current.closed)&&(t.current=null,clearInterval(o.current),setTimeout(()=>{n==null||n()},1100))},200),await Promise.resolve(c(t.current,a=>{if(!t.current){localStorage.setItem(`open-window-url-${l}`,JSON.stringify({url:a,time:Date.now()}));return}t.current.location.href=a}))},d=Le(c=>{const{type:l,error:a}=c.data;t.current&&l===e&&a&&($.error(a),n==null||n())});return g.useEffect(()=>(window.addEventListener("message",d),()=>{window.removeEventListener("message",d)}),[d]),u}function U({connectedStore:e,sx:r,...n}){return s.jsx(Ke,{sx:{width:24,height:24,...r},src:L(e.storeUrl,`/.well-known/service/user/avatar/${e.developerDid}?imageFilter=resize&w=120&h=120`),...n})}U.propTypes={connectedStore:i.object.isRequired,sx:i.object};U.defaultProps={sx:{}};function ye({storeUrl:e,storeName:r,developerDid:n,published:t}){const{t:o}=z(),u=()=>{if(n){const d=ce.from(JSON.stringify({forceConnected:n}),"utf8").toString("base64");window.open(`${L(e,"developer/blocklets")}?__did-connect__=${d}`)}else window.open(`${L(e,"developer/blocklets")}`)};return s.jsxs(N,{children:[s.jsx(E,{variant:"subtitle2",children:o(t?"blocklet.publish.publishToStoreSuccess":"blocklet.publish.uploadToStoreSuccess",{name:r})}),s.jsx(D,{size:"small",sx:{mt:1},onClick:u,variant:"contained",color:"success",children:o("common.visitTarget",{name:r})})]})}ye.propTypes={storeName:i.string.isRequired,storeUrl:i.string.isRequired,developerDid:i.string.isRequired,published:i.bool.isRequired};const je={CONNECT:"connect",SELECT:"select"},At=G(()=>({buttonText:{textTransform:"none !important"},iconRoot:{minWidth:24},box:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",overflow:"hidden",width:"100%"},menuName:{flexShrink:1,display:"flex",flexDirection:"column",overflow:"hidden",flex:1},actions:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},title:{fontSize:16,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},url:{fontSize:14,opacity:.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},buttonLine:{height:"100%",width:"1px",backgroundColor:"#e0e0e0"}})),Wt=Tt(({className:e,...r})=>s.jsx(qe,{...r,classes:{popper:e}}))(({theme:e})=>({[`& .${ze.tooltip}`]:{backgroundColor:"#fff",color:"rgba(0, 0, 0, 0.87)",borderRadius:8,padding:e.spacing(2),fontSize:e.typography.pxToRem(12),border:"1px solid rgba(0,0,0,0.08)",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.05)"}}));function Se({teamDid:e,projectId:r,releaseId:n,store:t,onDelete:o,kind:u,published:d,connectedStore:c,releaseType:l,onPublish:a,onOpenConnectStore:f,onSelectConnectStore:h,behavior:v,scope:S=""}){const p=At(),{t:y}=z(),{api:C,info:w,inService:j}=F(),[m,b]=g.useState(!1),k=Ut({messageType:"connect-store-message",onOpen:()=>b(!0),onClose:()=>b(!1)}),T=u==="publish",x=!!c,P=_=>{if(_.stopPropagation(),T){window.open(L(t.url,"developer/blocklets"));return}window.open(t.url)},Ce=()=>{if(v===je.SELECT){h(t);return}k(async(_,ke)=>{try{const I=await C.connectToStore({input:{did:e,storeUrl:t.url,storeId:t.id,storeName:t.name,projectId:r}});if(!(I!=null&&I.url)){$.error("failed to connect to store");return}ke(I.url),await f({did:e,projectId:r,storeId:t.id}),b(!1)}catch(I){const Te=O(I);$.error(Te),b(!1)}})},be=async()=>{try{await C.disconnectFromStore({input:{did:e,storeId:t.id,projectId:r,storeScope:S}}),o()}catch(_){$.error(O(_))}},we=()=>{b(!0),C.publishToStore({input:{did:e,storeId:t.id,storeName:t.name,projectId:r,releaseId:n,type:l}}).then(_=>{$.success(s.jsx(ye,{storeName:c.storeName,storeUrl:c.storeUrl,developerDid:c.developerDid,published:_.url==="published"}),{duration:1e4}),a==null||a(null)}).catch(_=>{$.error(O(_)),a==null||a(_)}).finally(()=>{b(!1)})};g.useEffect(()=>{x&&b(!1)},[x]);const Re=g.useMemo(()=>!(j&&Et.isInServerlessMode(w)),[j,w]);return s.jsxs("div",{className:p.box,children:[!T&&m&&s.jsx(q,{sx:{marginRight:2},size:16}),s.jsxs("div",{className:p.menuName,children:[s.jsx(N,{sx:{display:"flex",flexDirection:"row"},children:s.jsx(E,{component:"span",className:p.title,variant:"subtitle1",children:t.name})}),s.jsx(E,{className:p.url,component:"span",variant:"inherit",children:`${t.url}`})]}),s.jsxs("div",{className:p.actions,children:[c&&s.jsx(Wt,{placement:"top",title:s.jsxs(N,{children:[s.jsx(E,{component:"span",variant:"caption",sx:{opacity:.7},children:y("blocklet.publish.developerInfo")}),s.jsxs(N,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:1,mt:1},children:[s.jsx(U,{connectedStore:c,sx:{width:42,height:42}}),s.jsxs(N,{sx:{flex:1},children:[s.jsx(E,{component:"span",variant:"subtitle1",children:c.developerName}),s.jsx(Je,{size:14,copyable:!0,compact:!0,responsive:!1,did:c.developerDid})]})]})]}),children:s.jsx("div",{children:s.jsx(U,{connectedStore:c,sx:{marginRight:1,cursor:"help"}})})}),T&&s.jsxs(se,{disabled:m,variant:"outlined",sx:{height:38},size:"small",children:[!x&&s.jsxs(D,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},onClick:Ce,children:[m?s.jsx(q,{sx:{marginRight:1},size:16}):s.jsx(ge,{sx:{marginRight:1}}),y("common.connect")]}),x&&d&&s.jsxs(D,{disabled:!0,sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},children:[m?s.jsx(q,{sx:{marginRight:1},size:16}):s.jsx(We,{sx:{marginRight:1}}),y("common.uploaded")]}),x&&!d&&s.jsxs(D,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},onClick:we,children:[m?s.jsx(q,{sx:{marginRight:1},size:16}):s.jsx(xe,{sx:{marginRight:1,fontSize:20}}),y("common.upload")]}),s.jsx(Q,{projectId:r,connectedStore:c,store:t,onDelete:o,teamDid:e,onDisconnect:be})]}),!T&&s.jsxs(se,{disabled:m,variant:"outlined",sx:{height:36},size:"small",children:[s.jsx(D,{onClick:P,children:s.jsx(ue,{sx:{zoom:.9}})}),!t.protected&&Re&&s.jsx(A,{store:t,onDelete:o,teamDid:e,scope:""})]})]})]})}Se.propTypes={kind:i.string,teamDid:i.string.isRequired,published:i.bool,connectedStore:i.shape({storeName:i.string,storeId:i.string,storeUrl:i.string,developerDid:i.string,developerName:i.string}),projectId:i.string,releaseId:i.string,releaseType:i.string,store:i.shape({id:i.string.isRequired,name:i.string.isRequired,url:i.string.isRequired,protected:i.bool,connected:i.bool}).isRequired,scope:i.string,onDelete:i.func,onPublish:i.func,onOpenConnectStore:i.func,behavior:i.string,onSelectConnectStore:i.func};Se.defaultProps={kind:"store",published:!1,connectedStore:null,releaseId:"",projectId:"",releaseType:"",scope:"",behavior:je.CONNECT,onPublish:()=>{},onDelete:()=>{},onOpenConnectStore:()=>{},onSelectConnectStore:()=>{}};export{he as A,Y as C,Se as S,ye as U,Bt as c,G as m,Et as s,Ut as u};
@@ -1,14 +1,14 @@
1
- import{aK as v,eN as Ce,fF as de,aJ as Ue}from"./index-C_CQlCa-.js";import{t as qe}from"./toPropertyKey-PLuKRk1e.js";var ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},E=(typeof window>"u"?"undefined":ce(window))==="object"&&(typeof document>"u"?"undefined":ce(document))==="object"&&document.nodeType===9;function he(i,r){for(var t=0;t<r.length;t++){var e=r[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,qe(e.key),e)}}function se(i,r,t){return r&&he(i.prototype,r),t&&he(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i}const St=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"}));var Ge={}.constructor;function B(i){if(i==null||typeof i!="object")return i;if(Array.isArray(i))return i.map(B);if(i.constructor!==Ge)return i;var r={};for(var t in i)r[t]=B(i[t]);return r}function ae(i,r,t){i===void 0&&(i="unnamed");var e=t.jss,n=B(r),s=e.plugins.onCreateRule(i,n,t);return s||(i[0],null)}var ve=function(r,t){for(var e="",n=0;n<r.length&&r[n]!=="!important";n++)e&&(e+=t),e+=r[n];return e},P=function(r){if(!Array.isArray(r))return r;var t="";if(Array.isArray(r[0]))for(var e=0;e<r.length&&r[e]!=="!important";e++)t&&(t+=", "),t+=ve(r[e]," ");else t=ve(r,", ");return r[r.length-1]==="!important"&&(t+=" !important"),t};function C(i){return i&&i.format===!1?{linebreak:"",space:""}:{linebreak:`
2
- `,space:" "}}function j(i,r){for(var t="",e=0;e<r;e++)t+=" ";return t+i}function T(i,r,t){t===void 0&&(t={});var e="";if(!r)return e;var n=t,s=n.indent,a=s===void 0?0:s,o=r.fallbacks;t.format===!1&&(a=-1/0);var l=C(t),f=l.linebreak,c=l.space;if(i&&a++,o)if(Array.isArray(o))for(var h=0;h<o.length;h++){var y=o[h];for(var g in y){var p=y[g];p!=null&&(e&&(e+=f),e+=j(g+":"+c+P(p)+";",a))}}else for(var m in o){var V=o[m];V!=null&&(e&&(e+=f),e+=j(m+":"+c+P(V)+";",a))}for(var W in r){var fe=r[W];fe!=null&&W!=="fallbacks"&&(e&&(e+=f),e+=j(W+":"+c+P(fe)+";",a))}return!e&&!t.allowEmpty||!i?e:(a--,e&&(e=""+f+e+f),j(""+i+c+"{"+e,a)+j("}",a))}var Ke=/([[\].#*$><+~=|^:(),"'`\s])/g,pe=typeof CSS<"u"&&CSS.escape,oe=function(i){return pe?pe(i):i.replace(Ke,"\\$1")},je=function(){function i(t,e,n){this.type="style",this.isProcessed=!1;var s=n.sheet,a=n.Renderer;this.key=t,this.options=n,this.style=e,s?this.renderer=s.renderer:a&&(this.renderer=new a)}var r=i.prototype;return r.prop=function(e,n,s){if(n===void 0)return this.style[e];var a=s?s.force:!1;if(!a&&this.style[e]===n)return this;var o=n;(!s||s.process!==!1)&&(o=this.options.jss.plugins.onChangeValue(n,e,this));var l=o==null||o===!1,f=e in this.style;if(l&&!f&&!a)return this;var c=l&&f;if(c?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var h=this.options.sheet;return h&&h.attached,this},i}(),Z=function(i){Ce(r,i);function r(e,n,s){var a;a=i.call(this,e,n,s)||this;var o=s.selector,l=s.scoped,f=s.sheet,c=s.generateId;return o?a.selectorText=o:l!==!1&&(a.id=c(de(de(a)),f),a.selectorText="."+oe(a.id)),a}var t=r.prototype;return t.applyTo=function(n){var s=this.renderer;if(s){var a=this.toJSON();for(var o in a)s.setProperty(n,o,a[o])}return this},t.toJSON=function(){var n={};for(var s in this.style){var a=this.style[s];typeof a!="object"?n[s]=a:Array.isArray(a)&&(n[s]=P(a))}return n},t.toString=function(n){var s=this.options.sheet,a=s?s.options.link:!1,o=a?v({},n,{allowEmpty:!0}):n;return T(this.selectorText,this.style,o)},se(r,[{key:"selector",set:function(n){if(n!==this.selectorText){this.selectorText=n;var s=this.renderer,a=this.renderable;if(!(!a||!s)){var o=s.setSelector(a,n);o||s.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),r}(je),Le={onCreateRule:function(r,t,e){return r[0]==="@"||e.parent&&e.parent.type==="keyframes"?null:new Z(r,t,e)}},$={indent:1,children:!0},Je=/@([\w-]+)/,De=function(){function i(t,e,n){this.type="conditional",this.isProcessed=!1,this.key=t;var s=t.match(Je);this.at=s?s[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new z(v({},n,{parent:this}));for(var a in e)this.rules.add(a,e[a]);this.rules.process()}var r=i.prototype;return r.getRule=function(e){return this.rules.get(e)},r.indexOf=function(e){return this.rules.indexOf(e)},r.addRule=function(e,n,s){var a=this.rules.add(e,n,s);return a?(this.options.jss.plugins.onProcessRule(a),a):null},r.replaceRule=function(e,n,s){var a=this.rules.replace(e,n,s);return a&&this.options.jss.plugins.onProcessRule(a),a},r.toString=function(e){e===void 0&&(e=$);var n=C(e),s=n.linebreak;if(e.indent==null&&(e.indent=$.indent),e.children==null&&(e.children=$.children),e.children===!1)return this.query+" {}";var a=this.rules.toString(e);return a?this.query+" {"+s+a+s+"}":""},i}(),Fe=/@container|@media|@supports\s+/,He={onCreateRule:function(r,t,e){return Fe.test(r)?new De(r,t,e):null}},U={indent:1,children:!0},Be=/@keyframes\s+([\w-]+)/,Q=function(){function i(t,e,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var s=t.match(Be);s&&s[1]?this.name=s[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var a=n.scoped,o=n.sheet,l=n.generateId;this.id=a===!1?this.name:oe(l(this,o)),this.rules=new z(v({},n,{parent:this}));for(var f in e)this.rules.add(f,e[f],v({},n,{parent:this}));this.rules.process()}var r=i.prototype;return r.toString=function(e){e===void 0&&(e=U);var n=C(e),s=n.linebreak;if(e.indent==null&&(e.indent=U.indent),e.children==null&&(e.children=U.children),e.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(e);return a&&(a=""+s+a+s),this.at+" "+this.id+" {"+a+"}"},i}(),Ze=/@keyframes\s+/,Qe=/\$([\w-]+)/g,X=function(r,t){return typeof r=="string"?r.replace(Qe,function(e,n){return n in t?t[n]:e}):r},ge=function(r,t,e){var n=r[t],s=X(n,e);s!==n&&(r[t]=s)},Xe={onCreateRule:function(r,t,e){return typeof r=="string"&&Ze.test(r)?new Q(r,t,e):null},onProcessStyle:function(r,t,e){return t.type!=="style"||!e||("animation-name"in r&&ge(r,"animation-name",e.keyframes),"animation"in r&&ge(r,"animation",e.keyframes)),r},onChangeValue:function(r,t,e){var n=e.options.sheet;if(!n)return r;switch(t){case"animation":return X(r,n.keyframes);case"animation-name":return X(r,n.keyframes);default:return r}}},Ye=function(i){Ce(r,i);function r(){return i.apply(this,arguments)||this}var t=r.prototype;return t.toString=function(n){var s=this.options.sheet,a=s?s.options.link:!1,o=a?v({},n,{allowEmpty:!0}):n;return T(this.key,this.style,o)},r}(je),er={onCreateRule:function(r,t,e){return e.parent&&e.parent.type==="keyframes"?new Ye(r,t,e):null}},rr=function(){function i(t,e,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=t,this.style=e,this.options=n}var r=i.prototype;return r.toString=function(e){var n=C(e),s=n.linebreak;if(Array.isArray(this.style)){for(var a="",o=0;o<this.style.length;o++)a+=T(this.at,this.style[o]),this.style[o+1]&&(a+=s);return a}return T(this.at,this.style,e)},i}(),tr=/@font-face/,nr={onCreateRule:function(r,t,e){return tr.test(r)?new rr(r,t,e):null}},ir=function(){function i(t,e,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=t,this.style=e,this.options=n}var r=i.prototype;return r.toString=function(e){return T(this.key,this.style,e)},i}(),sr={onCreateRule:function(r,t,e){return r==="@viewport"||r==="@-ms-viewport"?new ir(r,t,e):null}},ar=function(){function i(t,e,n){this.type="simple",this.isProcessed=!1,this.key=t,this.value=e,this.options=n}var r=i.prototype;return r.toString=function(e){if(Array.isArray(this.value)){for(var n="",s=0;s<this.value.length;s++)n+=this.key+" "+this.value[s]+";",this.value[s+1]&&(n+=`
3
- `);return n}return this.key+" "+this.value+";"},i}(),or={"@charset":!0,"@import":!0,"@namespace":!0},ur={onCreateRule:function(r,t,e){return r in or?new ar(r,t,e):null}},ye=[Le,He,Xe,er,nr,sr,ur],lr={process:!0},me={force:!0,process:!0},z=function(){function i(t){this.map={},this.raw={},this.index=[],this.counter=0,this.options=t,this.classes=t.classes,this.keyframes=t.keyframes}var r=i.prototype;return r.add=function(e,n,s){var a=this.options,o=a.parent,l=a.sheet,f=a.jss,c=a.Renderer,h=a.generateId,y=a.scoped,g=v({classes:this.classes,parent:o,sheet:l,jss:f,Renderer:c,generateId:h,scoped:y,name:e,keyframes:this.keyframes,selector:void 0},s),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=n,p in this.classes&&(g.selector="."+oe(this.classes[p]));var m=ae(p,n,g);if(!m)return null;this.register(m);var V=g.index===void 0?this.index.length:g.index;return this.index.splice(V,0,m),m},r.replace=function(e,n,s){var a=this.get(e),o=this.index.indexOf(a);a&&this.remove(a);var l=s;return o!==-1&&(l=v({},s,{index:o})),this.add(e,n,l)},r.get=function(e){return this.map[e]},r.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},r.indexOf=function(e){return this.index.indexOf(e)},r.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},r.register=function(e){this.map[e.key]=e,e instanceof Z?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Q&&this.keyframes&&(this.keyframes[e.name]=e.id)},r.unregister=function(e){delete this.map[e.key],e instanceof Z?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Q&&delete this.keyframes[e.name]},r.update=function(){var e,n,s;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(e=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],s=arguments.length<=2?void 0:arguments[2]):(n=arguments.length<=0?void 0:arguments[0],s=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),n,s);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],n,s)},r.updateOne=function(e,n,s){s===void 0&&(s=lr);var a=this.options,o=a.jss.plugins,l=a.sheet;if(e.rules instanceof i){e.rules.update(n,s);return}var f=e.style;if(o.onUpdate(n,e,l,s),s.process&&f&&f!==e.style){o.onProcessStyle(e.style,e,l);for(var c in e.style){var h=e.style[c],y=f[c];h!==y&&e.prop(c,h,me)}for(var g in f){var p=e.style[g],m=f[g];p==null&&p!==m&&e.prop(g,null,me)}}},r.toString=function(e){for(var n="",s=this.options.sheet,a=s?s.options.link:!1,o=C(e),l=o.linebreak,f=0;f<this.index.length;f++){var c=this.index[f],h=c.toString(e);!h&&!a||(n&&(n+=l),n+=h)}return n},i}(),Oe=function(){function i(t,e){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=v({},e,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),e.Renderer&&(this.renderer=new e.Renderer(this)),this.rules=new z(this.options);for(var n in t)this.rules.add(n,t[n]);this.rules.process()}var r=i.prototype;return r.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},r.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},r.addRule=function(e,n,s){var a=this.queue;this.attached&&!a&&(this.queue=[]);var o=this.rules.add(e,n,s);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?(this.deployed&&(a?a.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),o):(this.deployed=!1,o)):null},r.replaceRule=function(e,n,s){var a=this.rules.get(e);if(!a)return this.addRule(e,n,s);var o=this.rules.replace(e,n,s);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?(this.deployed&&this.renderer&&(o?a.renderable&&this.renderer.replaceRule(a.renderable,o):this.renderer.deleteRule(a)),o):(this.deployed=!1,o)},r.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},r.addRules=function(e,n){var s=[];for(var a in e){var o=this.addRule(a,e[a],n);o&&s.push(o)}return s},r.getRule=function(e){return this.rules.get(e)},r.deleteRule=function(e){var n=typeof e=="object"?e:this.rules.get(e);return!n||this.attached&&!n.renderable?!1:(this.rules.remove(n),this.attached&&n.renderable&&this.renderer?this.renderer.deleteRule(n.renderable):!0)},r.indexOf=function(e){return this.rules.indexOf(e)},r.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},r.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},r.updateOne=function(e,n,s){return this.rules.updateOne(e,n,s),this},r.toString=function(e){return this.rules.toString(e)},i}(),fr=function(){function i(){this.plugins={internal:[],external:[]},this.registry={}}var r=i.prototype;return r.onCreateRule=function(e,n,s){for(var a=0;a<this.registry.onCreateRule.length;a++){var o=this.registry.onCreateRule[a](e,n,s);if(o)return o}return null},r.onProcessRule=function(e){if(!e.isProcessed){for(var n=e.options.sheet,s=0;s<this.registry.onProcessRule.length;s++)this.registry.onProcessRule[s](e,n);e.style&&this.onProcessStyle(e.style,e,n),e.isProcessed=!0}},r.onProcessStyle=function(e,n,s){for(var a=0;a<this.registry.onProcessStyle.length;a++)n.style=this.registry.onProcessStyle[a](n.style,n,s)},r.onProcessSheet=function(e){for(var n=0;n<this.registry.onProcessSheet.length;n++)this.registry.onProcessSheet[n](e)},r.onUpdate=function(e,n,s,a){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,n,s,a)},r.onChangeValue=function(e,n,s){for(var a=e,o=0;o<this.registry.onChangeValue.length;o++)a=this.registry.onChangeValue[o](a,n,s);return a},r.use=function(e,n){n===void 0&&(n={queue:"external"});var s=this.plugins[n.queue];s.indexOf(e)===-1&&(s.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,o){for(var l in o)l in a&&a[l].push(o[l]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},i}(),dr=function(){function i(){this.registry=[]}var r=i.prototype;return r.add=function(e){var n=this.registry,s=e.options.index;if(n.indexOf(e)===-1){if(n.length===0||s>=this.index){n.push(e);return}for(var a=0;a<n.length;a++)if(n[a].options.index>s){n.splice(a,0,e);return}}},r.reset=function(){this.registry=[]},r.remove=function(e){var n=this.registry.indexOf(e);this.registry.splice(n,1)},r.toString=function(e){for(var n=e===void 0?{}:e,s=n.attached,a=Ue(n,["attached"]),o=C(a),l=o.linebreak,f="",c=0;c<this.registry.length;c++){var h=this.registry[c];s!=null&&h.attached!==s||(f&&(f+=l),f+=h.toString(a))}return f},se(i,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),i}(),I=new dr,Y=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),ee="2f1acc6c3a606b082e5eef5e54414ffb";Y[ee]==null&&(Y[ee]=0);var be=Y[ee]++,Re=function(r){r===void 0&&(r={});var t=0,e=function(s,a){t+=1;var o="",l="";return a&&(a.options.classNamePrefix&&(l=a.options.classNamePrefix),a.options.jss.id!=null&&(o=String(a.options.jss.id))),r.minify?""+(l||"c")+be+o+t:l+s.key+"-"+be+(o?"-"+o:"")+"-"+t};return e},Ae=function(r){var t;return function(){return t||(t=r()),t}},cr=function(r,t){try{return r.attributeStyleMap?r.attributeStyleMap.get(t):r.style.getPropertyValue(t)}catch{return""}},hr=function(r,t,e){try{var n=e;if(Array.isArray(e)&&(n=P(e)),r.attributeStyleMap)r.attributeStyleMap.set(t,n);else{var s=n?n.indexOf("!important"):-1,a=s>-1?n.substr(0,s-1):n;r.style.setProperty(t,a,s>-1?"important":"")}}catch{return!1}return!0},vr=function(r,t){try{r.attributeStyleMap?r.attributeStyleMap.delete(t):r.style.removeProperty(t)}catch{}},pr=function(r,t){return r.selectorText=t,r.selectorText===t},Ie=Ae(function(){return document.querySelector("head")});function gr(i,r){for(var t=0;t<i.length;t++){var e=i[t];if(e.attached&&e.options.index>r.index&&e.options.insertionPoint===r.insertionPoint)return e}return null}function yr(i,r){for(var t=i.length-1;t>=0;t--){var e=i[t];if(e.attached&&e.options.insertionPoint===r.insertionPoint)return e}return null}function mr(i){for(var r=Ie(),t=0;t<r.childNodes.length;t++){var e=r.childNodes[t];if(e.nodeType===8&&e.nodeValue.trim()===i)return e}return null}function br(i){var r=I.registry;if(r.length>0){var t=gr(r,i);if(t&&t.renderer)return{parent:t.renderer.element.parentNode,node:t.renderer.element};if(t=yr(r,i),t&&t.renderer)return{parent:t.renderer.element.parentNode,node:t.renderer.element.nextSibling}}var e=i.insertionPoint;if(e&&typeof e=="string"){var n=mr(e);if(n)return{parent:n.parentNode,node:n.nextSibling}}return!1}function Rr(i,r){var t=r.insertionPoint,e=br(r);if(e!==!1&&e.parent){e.parent.insertBefore(i,e.node);return}if(t&&typeof t.nodeType=="number"){var n=t,s=n.parentNode;s&&s.insertBefore(i,n.nextSibling);return}Ie().appendChild(i)}var Sr=Ae(function(){var i=document.querySelector('meta[property="csp-nonce"]');return i?i.getAttribute("content"):null}),Se=function(r,t,e){try{"insertRule"in r?r.insertRule(t,e):"appendRule"in r&&r.appendRule(t)}catch{return!1}return r.cssRules[e]},xe=function(r,t){var e=r.cssRules.length;return t===void 0||t>e?e:t},xr=function(){var r=document.createElement("style");return r.textContent=`
1
+ import{aK as v,eM as Ce,fE as de,aJ as Ue}from"./index-DJFwMRI_.js";import{t as qe}from"./toPropertyKey-PLuKRk1e.js";var ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},T=(typeof window>"u"?"undefined":ce(window))==="object"&&(typeof document>"u"?"undefined":ce(document))==="object"&&document.nodeType===9;function he(i,r){for(var t=0;t<r.length;t++){var e=r[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,qe(e.key),e)}}function se(i,r,t){return r&&he(i.prototype,r),t&&he(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i}const St=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"}));var Ge={}.constructor;function F(i){if(i==null||typeof i!="object")return i;if(Array.isArray(i))return i.map(F);if(i.constructor!==Ge)return i;var r={};for(var t in i)r[t]=F(i[t]);return r}function ae(i,r,t){i===void 0&&(i="unnamed");var e=t.jss,n=F(r),s=e.plugins.onCreateRule(i,n,t);return s||(i[0],null)}var ve=function(r,t){for(var e="",n=0;n<r.length&&r[n]!=="!important";n++)e&&(e+=t),e+=r[n];return e},P=function(r){if(!Array.isArray(r))return r;var t="";if(Array.isArray(r[0]))for(var e=0;e<r.length&&r[e]!=="!important";e++)t&&(t+=", "),t+=ve(r[e]," ");else t=ve(r,", ");return r[r.length-1]==="!important"&&(t+=" !important"),t};function C(i){return i&&i.format===!1?{linebreak:"",space:""}:{linebreak:`
2
+ `,space:" "}}function j(i,r){for(var t="",e=0;e<r;e++)t+=" ";return t+i}function E(i,r,t){t===void 0&&(t={});var e="";if(!r)return e;var n=t,s=n.indent,a=s===void 0?0:s,o=r.fallbacks;t.format===!1&&(a=-1/0);var l=C(t),f=l.linebreak,c=l.space;if(i&&a++,o)if(Array.isArray(o))for(var h=0;h<o.length;h++){var y=o[h];for(var g in y){var p=y[g];p!=null&&(e&&(e+=f),e+=j(g+":"+c+P(p)+";",a))}}else for(var m in o){var V=o[m];V!=null&&(e&&(e+=f),e+=j(m+":"+c+P(V)+";",a))}for(var W in r){var fe=r[W];fe!=null&&W!=="fallbacks"&&(e&&(e+=f),e+=j(W+":"+c+P(fe)+";",a))}return!e&&!t.allowEmpty||!i?e:(a--,e&&(e=""+f+e+f),j(""+i+c+"{"+e,a)+j("}",a))}var Ke=/([[\].#*$><+~=|^:(),"'`\s])/g,pe=typeof CSS<"u"&&CSS.escape,oe=function(i){return pe?pe(i):i.replace(Ke,"\\$1")},je=function(){function i(t,e,n){this.type="style",this.isProcessed=!1;var s=n.sheet,a=n.Renderer;this.key=t,this.options=n,this.style=e,s?this.renderer=s.renderer:a&&(this.renderer=new a)}var r=i.prototype;return r.prop=function(e,n,s){if(n===void 0)return this.style[e];var a=s?s.force:!1;if(!a&&this.style[e]===n)return this;var o=n;(!s||s.process!==!1)&&(o=this.options.jss.plugins.onChangeValue(n,e,this));var l=o==null||o===!1,f=e in this.style;if(l&&!f&&!a)return this;var c=l&&f;if(c?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var h=this.options.sheet;return h&&h.attached,this},i}(),Z=function(i){Ce(r,i);function r(e,n,s){var a;a=i.call(this,e,n,s)||this;var o=s.selector,l=s.scoped,f=s.sheet,c=s.generateId;return o?a.selectorText=o:l!==!1&&(a.id=c(de(de(a)),f),a.selectorText="."+oe(a.id)),a}var t=r.prototype;return t.applyTo=function(n){var s=this.renderer;if(s){var a=this.toJSON();for(var o in a)s.setProperty(n,o,a[o])}return this},t.toJSON=function(){var n={};for(var s in this.style){var a=this.style[s];typeof a!="object"?n[s]=a:Array.isArray(a)&&(n[s]=P(a))}return n},t.toString=function(n){var s=this.options.sheet,a=s?s.options.link:!1,o=a?v({},n,{allowEmpty:!0}):n;return E(this.selectorText,this.style,o)},se(r,[{key:"selector",set:function(n){if(n!==this.selectorText){this.selectorText=n;var s=this.renderer,a=this.renderable;if(!(!a||!s)){var o=s.setSelector(a,n);o||s.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),r}(je),Le={onCreateRule:function(r,t,e){return r[0]==="@"||e.parent&&e.parent.type==="keyframes"?null:new Z(r,t,e)}},$={indent:1,children:!0},Je=/@([\w-]+)/,De=function(){function i(t,e,n){this.type="conditional",this.isProcessed=!1,this.key=t;var s=t.match(Je);this.at=s?s[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new z(v({},n,{parent:this}));for(var a in e)this.rules.add(a,e[a]);this.rules.process()}var r=i.prototype;return r.getRule=function(e){return this.rules.get(e)},r.indexOf=function(e){return this.rules.indexOf(e)},r.addRule=function(e,n,s){var a=this.rules.add(e,n,s);return a?(this.options.jss.plugins.onProcessRule(a),a):null},r.replaceRule=function(e,n,s){var a=this.rules.replace(e,n,s);return a&&this.options.jss.plugins.onProcessRule(a),a},r.toString=function(e){e===void 0&&(e=$);var n=C(e),s=n.linebreak;if(e.indent==null&&(e.indent=$.indent),e.children==null&&(e.children=$.children),e.children===!1)return this.query+" {}";var a=this.rules.toString(e);return a?this.query+" {"+s+a+s+"}":""},i}(),He=/@container|@media|@supports\s+/,Be={onCreateRule:function(r,t,e){return He.test(r)?new De(r,t,e):null}},U={indent:1,children:!0},Fe=/@keyframes\s+([\w-]+)/,Q=function(){function i(t,e,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var s=t.match(Fe);s&&s[1]?this.name=s[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var a=n.scoped,o=n.sheet,l=n.generateId;this.id=a===!1?this.name:oe(l(this,o)),this.rules=new z(v({},n,{parent:this}));for(var f in e)this.rules.add(f,e[f],v({},n,{parent:this}));this.rules.process()}var r=i.prototype;return r.toString=function(e){e===void 0&&(e=U);var n=C(e),s=n.linebreak;if(e.indent==null&&(e.indent=U.indent),e.children==null&&(e.children=U.children),e.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(e);return a&&(a=""+s+a+s),this.at+" "+this.id+" {"+a+"}"},i}(),Ze=/@keyframes\s+/,Qe=/\$([\w-]+)/g,X=function(r,t){return typeof r=="string"?r.replace(Qe,function(e,n){return n in t?t[n]:e}):r},ge=function(r,t,e){var n=r[t],s=X(n,e);s!==n&&(r[t]=s)},Xe={onCreateRule:function(r,t,e){return typeof r=="string"&&Ze.test(r)?new Q(r,t,e):null},onProcessStyle:function(r,t,e){return t.type!=="style"||!e||("animation-name"in r&&ge(r,"animation-name",e.keyframes),"animation"in r&&ge(r,"animation",e.keyframes)),r},onChangeValue:function(r,t,e){var n=e.options.sheet;if(!n)return r;switch(t){case"animation":return X(r,n.keyframes);case"animation-name":return X(r,n.keyframes);default:return r}}},Ye=function(i){Ce(r,i);function r(){return i.apply(this,arguments)||this}var t=r.prototype;return t.toString=function(n){var s=this.options.sheet,a=s?s.options.link:!1,o=a?v({},n,{allowEmpty:!0}):n;return E(this.key,this.style,o)},r}(je),er={onCreateRule:function(r,t,e){return e.parent&&e.parent.type==="keyframes"?new Ye(r,t,e):null}},rr=function(){function i(t,e,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=t,this.style=e,this.options=n}var r=i.prototype;return r.toString=function(e){var n=C(e),s=n.linebreak;if(Array.isArray(this.style)){for(var a="",o=0;o<this.style.length;o++)a+=E(this.at,this.style[o]),this.style[o+1]&&(a+=s);return a}return E(this.at,this.style,e)},i}(),tr=/@font-face/,nr={onCreateRule:function(r,t,e){return tr.test(r)?new rr(r,t,e):null}},ir=function(){function i(t,e,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=t,this.style=e,this.options=n}var r=i.prototype;return r.toString=function(e){return E(this.key,this.style,e)},i}(),sr={onCreateRule:function(r,t,e){return r==="@viewport"||r==="@-ms-viewport"?new ir(r,t,e):null}},ar=function(){function i(t,e,n){this.type="simple",this.isProcessed=!1,this.key=t,this.value=e,this.options=n}var r=i.prototype;return r.toString=function(e){if(Array.isArray(this.value)){for(var n="",s=0;s<this.value.length;s++)n+=this.key+" "+this.value[s]+";",this.value[s+1]&&(n+=`
3
+ `);return n}return this.key+" "+this.value+";"},i}(),or={"@charset":!0,"@import":!0,"@namespace":!0},ur={onCreateRule:function(r,t,e){return r in or?new ar(r,t,e):null}},ye=[Le,Be,Xe,er,nr,sr,ur],lr={process:!0},me={force:!0,process:!0},z=function(){function i(t){this.map={},this.raw={},this.index=[],this.counter=0,this.options=t,this.classes=t.classes,this.keyframes=t.keyframes}var r=i.prototype;return r.add=function(e,n,s){var a=this.options,o=a.parent,l=a.sheet,f=a.jss,c=a.Renderer,h=a.generateId,y=a.scoped,g=v({classes:this.classes,parent:o,sheet:l,jss:f,Renderer:c,generateId:h,scoped:y,name:e,keyframes:this.keyframes,selector:void 0},s),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=n,p in this.classes&&(g.selector="."+oe(this.classes[p]));var m=ae(p,n,g);if(!m)return null;this.register(m);var V=g.index===void 0?this.index.length:g.index;return this.index.splice(V,0,m),m},r.replace=function(e,n,s){var a=this.get(e),o=this.index.indexOf(a);a&&this.remove(a);var l=s;return o!==-1&&(l=v({},s,{index:o})),this.add(e,n,l)},r.get=function(e){return this.map[e]},r.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},r.indexOf=function(e){return this.index.indexOf(e)},r.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},r.register=function(e){this.map[e.key]=e,e instanceof Z?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Q&&this.keyframes&&(this.keyframes[e.name]=e.id)},r.unregister=function(e){delete this.map[e.key],e instanceof Z?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Q&&delete this.keyframes[e.name]},r.update=function(){var e,n,s;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(e=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],s=arguments.length<=2?void 0:arguments[2]):(n=arguments.length<=0?void 0:arguments[0],s=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),n,s);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],n,s)},r.updateOne=function(e,n,s){s===void 0&&(s=lr);var a=this.options,o=a.jss.plugins,l=a.sheet;if(e.rules instanceof i){e.rules.update(n,s);return}var f=e.style;if(o.onUpdate(n,e,l,s),s.process&&f&&f!==e.style){o.onProcessStyle(e.style,e,l);for(var c in e.style){var h=e.style[c],y=f[c];h!==y&&e.prop(c,h,me)}for(var g in f){var p=e.style[g],m=f[g];p==null&&p!==m&&e.prop(g,null,me)}}},r.toString=function(e){for(var n="",s=this.options.sheet,a=s?s.options.link:!1,o=C(e),l=o.linebreak,f=0;f<this.index.length;f++){var c=this.index[f],h=c.toString(e);!h&&!a||(n&&(n+=l),n+=h)}return n},i}(),Oe=function(){function i(t,e){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=v({},e,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),e.Renderer&&(this.renderer=new e.Renderer(this)),this.rules=new z(this.options);for(var n in t)this.rules.add(n,t[n]);this.rules.process()}var r=i.prototype;return r.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},r.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},r.addRule=function(e,n,s){var a=this.queue;this.attached&&!a&&(this.queue=[]);var o=this.rules.add(e,n,s);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?(this.deployed&&(a?a.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),o):(this.deployed=!1,o)):null},r.replaceRule=function(e,n,s){var a=this.rules.get(e);if(!a)return this.addRule(e,n,s);var o=this.rules.replace(e,n,s);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?(this.deployed&&this.renderer&&(o?a.renderable&&this.renderer.replaceRule(a.renderable,o):this.renderer.deleteRule(a)),o):(this.deployed=!1,o)},r.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},r.addRules=function(e,n){var s=[];for(var a in e){var o=this.addRule(a,e[a],n);o&&s.push(o)}return s},r.getRule=function(e){return this.rules.get(e)},r.deleteRule=function(e){var n=typeof e=="object"?e:this.rules.get(e);return!n||this.attached&&!n.renderable?!1:(this.rules.remove(n),this.attached&&n.renderable&&this.renderer?this.renderer.deleteRule(n.renderable):!0)},r.indexOf=function(e){return this.rules.indexOf(e)},r.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},r.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},r.updateOne=function(e,n,s){return this.rules.updateOne(e,n,s),this},r.toString=function(e){return this.rules.toString(e)},i}(),fr=function(){function i(){this.plugins={internal:[],external:[]},this.registry={}}var r=i.prototype;return r.onCreateRule=function(e,n,s){for(var a=0;a<this.registry.onCreateRule.length;a++){var o=this.registry.onCreateRule[a](e,n,s);if(o)return o}return null},r.onProcessRule=function(e){if(!e.isProcessed){for(var n=e.options.sheet,s=0;s<this.registry.onProcessRule.length;s++)this.registry.onProcessRule[s](e,n);e.style&&this.onProcessStyle(e.style,e,n),e.isProcessed=!0}},r.onProcessStyle=function(e,n,s){for(var a=0;a<this.registry.onProcessStyle.length;a++)n.style=this.registry.onProcessStyle[a](n.style,n,s)},r.onProcessSheet=function(e){for(var n=0;n<this.registry.onProcessSheet.length;n++)this.registry.onProcessSheet[n](e)},r.onUpdate=function(e,n,s,a){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,n,s,a)},r.onChangeValue=function(e,n,s){for(var a=e,o=0;o<this.registry.onChangeValue.length;o++)a=this.registry.onChangeValue[o](a,n,s);return a},r.use=function(e,n){n===void 0&&(n={queue:"external"});var s=this.plugins[n.queue];s.indexOf(e)===-1&&(s.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,o){for(var l in o)l in a&&a[l].push(o[l]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},i}(),dr=function(){function i(){this.registry=[]}var r=i.prototype;return r.add=function(e){var n=this.registry,s=e.options.index;if(n.indexOf(e)===-1){if(n.length===0||s>=this.index){n.push(e);return}for(var a=0;a<n.length;a++)if(n[a].options.index>s){n.splice(a,0,e);return}}},r.reset=function(){this.registry=[]},r.remove=function(e){var n=this.registry.indexOf(e);this.registry.splice(n,1)},r.toString=function(e){for(var n=e===void 0?{}:e,s=n.attached,a=Ue(n,["attached"]),o=C(a),l=o.linebreak,f="",c=0;c<this.registry.length;c++){var h=this.registry[c];s!=null&&h.attached!==s||(f&&(f+=l),f+=h.toString(a))}return f},se(i,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),i}(),I=new dr,Y=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),ee="2f1acc6c3a606b082e5eef5e54414ffb";Y[ee]==null&&(Y[ee]=0);var be=Y[ee]++,Re=function(r){r===void 0&&(r={});var t=0,e=function(s,a){t+=1;var o="",l="";return a&&(a.options.classNamePrefix&&(l=a.options.classNamePrefix),a.options.jss.id!=null&&(o=String(a.options.jss.id))),r.minify?""+(l||"c")+be+o+t:l+s.key+"-"+be+(o?"-"+o:"")+"-"+t};return e},Ae=function(r){var t;return function(){return t||(t=r()),t}},cr=function(r,t){try{return r.attributeStyleMap?r.attributeStyleMap.get(t):r.style.getPropertyValue(t)}catch{return""}},hr=function(r,t,e){try{var n=e;if(Array.isArray(e)&&(n=P(e)),r.attributeStyleMap)r.attributeStyleMap.set(t,n);else{var s=n?n.indexOf("!important"):-1,a=s>-1?n.substr(0,s-1):n;r.style.setProperty(t,a,s>-1?"important":"")}}catch{return!1}return!0},vr=function(r,t){try{r.attributeStyleMap?r.attributeStyleMap.delete(t):r.style.removeProperty(t)}catch{}},pr=function(r,t){return r.selectorText=t,r.selectorText===t},Ie=Ae(function(){return document.querySelector("head")});function gr(i,r){for(var t=0;t<i.length;t++){var e=i[t];if(e.attached&&e.options.index>r.index&&e.options.insertionPoint===r.insertionPoint)return e}return null}function yr(i,r){for(var t=i.length-1;t>=0;t--){var e=i[t];if(e.attached&&e.options.insertionPoint===r.insertionPoint)return e}return null}function mr(i){for(var r=Ie(),t=0;t<r.childNodes.length;t++){var e=r.childNodes[t];if(e.nodeType===8&&e.nodeValue.trim()===i)return e}return null}function br(i){var r=I.registry;if(r.length>0){var t=gr(r,i);if(t&&t.renderer)return{parent:t.renderer.element.parentNode,node:t.renderer.element};if(t=yr(r,i),t&&t.renderer)return{parent:t.renderer.element.parentNode,node:t.renderer.element.nextSibling}}var e=i.insertionPoint;if(e&&typeof e=="string"){var n=mr(e);if(n)return{parent:n.parentNode,node:n.nextSibling}}return!1}function Rr(i,r){var t=r.insertionPoint,e=br(r);if(e!==!1&&e.parent){e.parent.insertBefore(i,e.node);return}if(t&&typeof t.nodeType=="number"){var n=t,s=n.parentNode;s&&s.insertBefore(i,n.nextSibling);return}Ie().appendChild(i)}var Sr=Ae(function(){var i=document.querySelector('meta[property="csp-nonce"]');return i?i.getAttribute("content"):null}),Se=function(r,t,e){try{"insertRule"in r?r.insertRule(t,e):"appendRule"in r&&r.appendRule(t)}catch{return!1}return r.cssRules[e]},xe=function(r,t){var e=r.cssRules.length;return t===void 0||t>e?e:t},xr=function(){var r=document.createElement("style");return r.textContent=`
4
4
  `,r},Pr=function(){function i(t){this.getPropertyValue=cr,this.setProperty=hr,this.removeProperty=vr,this.setSelector=pr,this.hasInsertedRules=!1,this.cssRules=[],t&&I.add(t),this.sheet=t;var e=this.sheet?this.sheet.options:{},n=e.media,s=e.meta,a=e.element;this.element=a||xr(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),s&&this.element.setAttribute("data-meta",s);var o=Sr();o&&this.element.setAttribute("nonce",o)}var r=i.prototype;return r.attach=function(){if(!(this.element.parentNode||!this.sheet)){Rr(this.element,this.sheet.options);var e=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},r.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
5
5
  `)}},r.deploy=function(){var e=this.sheet;if(e){if(e.options.link){this.insertRules(e.rules);return}this.element.textContent=`
6
6
  `+e.toString()+`
7
- `}},r.insertRules=function(e,n){for(var s=0;s<e.index.length;s++)this.insertRule(e.index[s],s,n)},r.insertRule=function(e,n,s){if(s===void 0&&(s=this.element.sheet),e.rules){var a=e,o=s;if(e.type==="conditional"||e.type==="keyframes"){var l=xe(s,n);if(o=Se(s,a.toString({children:!1}),l),o===!1)return!1;this.refCssRule(e,l,o)}return this.insertRules(a.rules,o),o}var f=e.toString();if(!f)return!1;var c=xe(s,n),h=Se(s,f,c);return h===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(e,c,h),h)},r.refCssRule=function(e,n,s){e.renderable=s,e.options.parent instanceof Oe&&this.cssRules.splice(n,0,s)},r.deleteRule=function(e){var n=this.element.sheet,s=this.indexOf(e);return s===-1?!1:(n.deleteRule(s),this.cssRules.splice(s,1),!0)},r.indexOf=function(e){return this.cssRules.indexOf(e)},r.replaceRule=function(e,n){var s=this.indexOf(e);return s===-1?!1:(this.element.sheet.deleteRule(s),this.cssRules.splice(s,1),this.insertRule(n,s))},r.getRules=function(){return this.element.sheet.cssRules},i}(),kr=0,wr=function(){function i(t){this.id=kr++,this.version="10.10.0",this.plugins=new fr,this.options={id:{minify:!1},createGenerateId:Re,Renderer:E?Pr:null,plugins:[]},this.generateId=Re({minify:!1});for(var e=0;e<ye.length;e++)this.plugins.use(ye[e],{queue:"internal"});this.setup(t)}var r=i.prototype;return r.setup=function(e){return e===void 0&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=v({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),e.insertionPoint!=null&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},r.createStyleSheet=function(e,n){n===void 0&&(n={});var s=n,a=s.index;typeof a!="number"&&(a=I.index===0?0:I.index+1);var o=new Oe(e,v({},n,{jss:this,generateId:n.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(o),o},r.removeStyleSheet=function(e){return e.detach(),I.remove(e),this},r.createRule=function(e,n,s){if(n===void 0&&(n={}),s===void 0&&(s={}),typeof e=="object")return this.createRule(void 0,e,n);var a=v({},s,{name:e,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var o=ae(e,n,a);return o&&this.plugins.onProcessRule(o),o},r.use=function(){for(var e=this,n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return s.forEach(function(o){e.plugins.use(o)}),this},i}(),Cr=function(r){return new wr(r)},ue=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function jr(i){var r=null;for(var t in i){var e=i[t],n=typeof e;if(n==="function")r||(r={}),r[t]=e;else if(n==="object"&&e!==null&&!Array.isArray(e)){var s=jr(e);s&&(r||(r={}),r[t]=s)}}return r}/**
7
+ `}},r.insertRules=function(e,n){for(var s=0;s<e.index.length;s++)this.insertRule(e.index[s],s,n)},r.insertRule=function(e,n,s){if(s===void 0&&(s=this.element.sheet),e.rules){var a=e,o=s;if(e.type==="conditional"||e.type==="keyframes"){var l=xe(s,n);if(o=Se(s,a.toString({children:!1}),l),o===!1)return!1;this.refCssRule(e,l,o)}return this.insertRules(a.rules,o),o}var f=e.toString();if(!f)return!1;var c=xe(s,n),h=Se(s,f,c);return h===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(e,c,h),h)},r.refCssRule=function(e,n,s){e.renderable=s,e.options.parent instanceof Oe&&this.cssRules.splice(n,0,s)},r.deleteRule=function(e){var n=this.element.sheet,s=this.indexOf(e);return s===-1?!1:(n.deleteRule(s),this.cssRules.splice(s,1),!0)},r.indexOf=function(e){return this.cssRules.indexOf(e)},r.replaceRule=function(e,n){var s=this.indexOf(e);return s===-1?!1:(this.element.sheet.deleteRule(s),this.cssRules.splice(s,1),this.insertRule(n,s))},r.getRules=function(){return this.element.sheet.cssRules},i}(),kr=0,wr=function(){function i(t){this.id=kr++,this.version="10.10.0",this.plugins=new fr,this.options={id:{minify:!1},createGenerateId:Re,Renderer:T?Pr:null,plugins:[]},this.generateId=Re({minify:!1});for(var e=0;e<ye.length;e++)this.plugins.use(ye[e],{queue:"internal"});this.setup(t)}var r=i.prototype;return r.setup=function(e){return e===void 0&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=v({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),e.insertionPoint!=null&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},r.createStyleSheet=function(e,n){n===void 0&&(n={});var s=n,a=s.index;typeof a!="number"&&(a=I.index===0?0:I.index+1);var o=new Oe(e,v({},n,{jss:this,generateId:n.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(o),o},r.removeStyleSheet=function(e){return e.detach(),I.remove(e),this},r.createRule=function(e,n,s){if(n===void 0&&(n={}),s===void 0&&(s={}),typeof e=="object")return this.createRule(void 0,e,n);var a=v({},s,{name:e,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var o=ae(e,n,a);return o&&this.plugins.onProcessRule(o),o},r.use=function(){for(var e=this,n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return s.forEach(function(o){e.plugins.use(o)}),this},i}(),Cr=function(r){return new wr(r)},ue=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function jr(i){var r=null;for(var t in i){var e=i[t],n=typeof e;if(n==="function")r||(r={}),r[t]=e;else if(n==="object"&&e!==null&&!Array.isArray(e)){var s=jr(e);s&&(r||(r={}),r[t]=s)}}return r}/**
8
8
  * A better abstraction over CSS.
9
9
  *
10
10
  * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
11
11
  * @website https://github.com/cssinjs/jss
12
12
  * @license MIT
13
- */Cr();var _e=Date.now(),q="fnValues"+_e,G="fnStyle"+ ++_e,xt=function(){return{onCreateRule:function(t,e,n){if(typeof e!="function")return null;var s=ae(t,{},n);return s[G]=e,s},onProcessStyle:function(t,e){if(q in e||G in e)return t;var n={};for(var s in t){var a=t[s];typeof a=="function"&&(delete t[s],n[s]=a)}return e[q]=n,t},onUpdate:function(t,e,n,s){var a=e,o=a[G];o&&(a.style=o(t)||{});var l=a[q];if(l)for(var f in l)a.prop(f,l[f](t),s)}}},R="@global",re="@global ",Or=function(){function i(t,e,n){this.type="global",this.at=R,this.isProcessed=!1,this.key=t,this.options=n,this.rules=new z(v({},n,{parent:this}));for(var s in e)this.rules.add(s,e[s]);this.rules.process()}var r=i.prototype;return r.getRule=function(e){return this.rules.get(e)},r.addRule=function(e,n,s){var a=this.rules.add(e,n,s);return a&&this.options.jss.plugins.onProcessRule(a),a},r.replaceRule=function(e,n,s){var a=this.rules.replace(e,n,s);return a&&this.options.jss.plugins.onProcessRule(a),a},r.indexOf=function(e){return this.rules.indexOf(e)},r.toString=function(e){return this.rules.toString(e)},i}(),Ar=function(){function i(t,e,n){this.type="global",this.at=R,this.isProcessed=!1,this.key=t,this.options=n;var s=t.substr(re.length);this.rule=n.jss.createRule(s,e,v({},n,{parent:this}))}var r=i.prototype;return r.toString=function(e){return this.rule?this.rule.toString(e):""},i}(),Ir=/\s*,\s*/g;function Te(i,r){for(var t=i.split(Ir),e="",n=0;n<t.length;n++)e+=r+" "+t[n].trim(),t[n+1]&&(e+=", ");return e}function _r(i,r){var t=i.options,e=i.style,n=e?e[R]:null;if(n){for(var s in n)r.addRule(s,n[s],v({},t,{selector:Te(s,i.selector)}));delete e[R]}}function Tr(i,r){var t=i.options,e=i.style;for(var n in e)if(!(n[0]!=="@"||n.substr(0,R.length)!==R)){var s=Te(n.substr(R.length),i.selector);r.addRule(s,e[n],v({},t,{selector:s})),delete e[n]}}function Pt(){function i(t,e,n){if(!t)return null;if(t===R)return new Or(t,e,n);if(t[0]==="@"&&t.substr(0,re.length)===re)return new Ar(t,e,n);var s=n.parent;return s&&(s.type==="global"||s.options.parent&&s.options.parent.type==="global")&&(n.scoped=!1),!n.selector&&n.scoped===!1&&(n.selector=t),null}function r(t,e){t.type!=="style"||!e||(_r(t,e),Tr(t,e))}return{onCreateRule:i,onProcessRule:r}}var Pe=/\s*,\s*/g,Er=/&/g,Vr=/\$([\w-]+)/g;function kt(){function i(n,s){return function(a,o){var l=n.getRule(o)||s&&s.getRule(o);return l?l.selector:o}}function r(n,s){for(var a=s.split(Pe),o=n.split(Pe),l="",f=0;f<a.length;f++)for(var c=a[f],h=0;h<o.length;h++){var y=o[h];l&&(l+=", "),l+=y.indexOf("&")!==-1?y.replace(Er,c):c+" "+y}return l}function t(n,s,a){if(a)return v({},a,{index:a.index+1});var o=n.options.nestingLevel;o=o===void 0?1:o+1;var l=v({},n.options,{nestingLevel:o,index:s.indexOf(n)+1});return delete l.name,l}function e(n,s,a){if(s.type!=="style")return n;var o=s,l=o.options.parent,f,c;for(var h in n){var y=h.indexOf("&")!==-1,g=h[0]==="@";if(!(!y&&!g)){if(f=t(o,l,f),y){var p=r(h,o.selector);c||(c=i(l,a)),p=p.replace(Vr,c);var m=o.key+"-"+h;"replaceRule"in l?l.replaceRule(m,n[h],v({},f,{selector:p})):l.addRule(m,n[h],v({},f,{selector:p}))}else g&&l.addRule(h,{},f).addRule(o.key,n[h],{selector:o.selector});delete n[h]}}return n}return{onProcessStyle:e}}var Nr=/[A-Z]/g,Mr=/^ms-/,K={};function zr(i){return"-"+i.toLowerCase()}function Ee(i){if(K.hasOwnProperty(i))return K[i];var r=i.replace(Nr,zr);return K[i]=Mr.test(r)?"-"+r:r}function M(i){var r={};for(var t in i){var e=t.indexOf("--")===0?t:Ee(t);r[e]=i[t]}return i.fallbacks&&(Array.isArray(i.fallbacks)?r.fallbacks=i.fallbacks.map(M):r.fallbacks=M(i.fallbacks)),r}function wt(){function i(t){if(Array.isArray(t)){for(var e=0;e<t.length;e++)t[e]=M(t[e]);return t}return M(t)}function r(t,e,n){if(e.indexOf("--")===0)return t;var s=Ee(e);return e===s?t:(n.prop(s,t),null)}return{onProcessStyle:i,onChangeValue:r}}var u=ue&&CSS?CSS.px:"px",N=ue&&CSS?CSS.ms:"ms",k=ue&&CSS?CSS.percent:"%",Wr={"animation-delay":N,"animation-duration":N,"background-position":u,"background-position-x":u,"background-position-y":u,"background-size":u,border:u,"border-bottom":u,"border-bottom-left-radius":u,"border-bottom-right-radius":u,"border-bottom-width":u,"border-left":u,"border-left-width":u,"border-radius":u,"border-right":u,"border-right-width":u,"border-top":u,"border-top-left-radius":u,"border-top-right-radius":u,"border-top-width":u,"border-width":u,"border-block":u,"border-block-end":u,"border-block-end-width":u,"border-block-start":u,"border-block-start-width":u,"border-block-width":u,"border-inline":u,"border-inline-end":u,"border-inline-end-width":u,"border-inline-start":u,"border-inline-start-width":u,"border-inline-width":u,"border-start-start-radius":u,"border-start-end-radius":u,"border-end-start-radius":u,"border-end-end-radius":u,margin:u,"margin-bottom":u,"margin-left":u,"margin-right":u,"margin-top":u,"margin-block":u,"margin-block-end":u,"margin-block-start":u,"margin-inline":u,"margin-inline-end":u,"margin-inline-start":u,padding:u,"padding-bottom":u,"padding-left":u,"padding-right":u,"padding-top":u,"padding-block":u,"padding-block-end":u,"padding-block-start":u,"padding-inline":u,"padding-inline-end":u,"padding-inline-start":u,"mask-position-x":u,"mask-position-y":u,"mask-size":u,height:u,width:u,"min-height":u,"max-height":u,"min-width":u,"max-width":u,bottom:u,left:u,top:u,right:u,inset:u,"inset-block":u,"inset-block-end":u,"inset-block-start":u,"inset-inline":u,"inset-inline-end":u,"inset-inline-start":u,"box-shadow":u,"text-shadow":u,"column-gap":u,"column-rule":u,"column-rule-width":u,"column-width":u,"font-size":u,"font-size-delta":u,"letter-spacing":u,"text-decoration-thickness":u,"text-indent":u,"text-stroke":u,"text-stroke-width":u,"word-spacing":u,motion:u,"motion-offset":u,outline:u,"outline-offset":u,"outline-width":u,perspective:u,"perspective-origin-x":k,"perspective-origin-y":k,"transform-origin":k,"transform-origin-x":k,"transform-origin-y":k,"transform-origin-z":k,"transition-delay":N,"transition-duration":N,"vertical-align":u,"flex-basis":u,"shape-margin":u,size:u,gap:u,grid:u,"grid-gap":u,"row-gap":u,"grid-row-gap":u,"grid-column-gap":u,"grid-template-rows":u,"grid-template-columns":u,"grid-auto-rows":u,"grid-auto-columns":u,"box-shadow-x":u,"box-shadow-y":u,"box-shadow-blur":u,"box-shadow-spread":u,"font-line-height":u,"text-shadow-x":u,"text-shadow-y":u,"text-shadow-blur":u};function Ve(i){var r=/(-[a-z])/g,t=function(a){return a[1].toUpperCase()},e={};for(var n in i)e[n]=i[n],e[n.replace(r,t)]=i[n];return e}var $r=Ve(Wr);function _(i,r,t){if(r==null)return r;if(Array.isArray(r))for(var e=0;e<r.length;e++)r[e]=_(i,r[e],t);else if(typeof r=="object")if(i==="fallbacks")for(var n in r)r[n]=_(n,r[n],t);else for(var s in r)r[s]=_(i+"-"+s,r[s],t);else if(typeof r=="number"&&isNaN(r)===!1){var a=t[i]||$r[i];return a&&!(r===0&&a===u)?typeof a=="function"?a(r).toString():""+r+a:r.toString()}return r}function Ct(i){i===void 0&&(i={});var r=Ve(i);function t(n,s){if(s.type!=="style")return n;for(var a in n)n[a]=_(a,n[a],r);return n}function e(n,s){return _(s,n,r)}return{onProcessStyle:t,onChangeValue:e}}function te(i,r){(r==null||r>i.length)&&(r=i.length);for(var t=0,e=Array(r);t<r;t++)e[t]=i[t];return e}function Ur(i){if(Array.isArray(i))return te(i)}function qr(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function Gr(i,r){if(i){if(typeof i=="string")return te(i,r);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?te(i,r):void 0}}function Kr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ne(i){return Ur(i)||qr(i)||Gr(i)||Kr()}const jt=Object.freeze(Object.defineProperty({__proto__:null,default:Ne},Symbol.toStringTag,{value:"Module"}));var O="",ne="",Me="",ze="",Lr=E&&"ontouchstart"in document.documentElement;if(E){var L={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Jr=document.createElement("p"),J=Jr.style,Dr="Transform";for(var D in L)if(D+Dr in J){O=D,ne=L[D];break}O==="Webkit"&&"msHyphens"in J&&(O="ms",ne=L.ms,ze="edge"),O==="Webkit"&&"-apple-trailing-word"in J&&(Me="apple")}var d={js:O,css:ne,vendor:Me,browser:ze,isTouch:Lr};function Fr(i){return i[1]==="-"||d.js==="ms"?i:"@"+d.css+"keyframes"+i.substr(10)}var Hr={noPrefill:["appearance"],supportedProperty:function(r){return r!=="appearance"?!1:d.js==="ms"?"-webkit-"+r:d.css+r}},Br={noPrefill:["color-adjust"],supportedProperty:function(r){return r!=="color-adjust"?!1:d.js==="Webkit"?d.css+"print-"+r:r}},Zr=/[-\s]+(.)?/g;function Qr(i,r){return r?r.toUpperCase():""}function le(i){return i.replace(Zr,Qr)}function S(i){return le("-"+i)}var Xr={noPrefill:["mask"],supportedProperty:function(r,t){if(!/^mask/.test(r))return!1;if(d.js==="Webkit"){var e="mask-image";if(le(e)in t)return r;if(d.js+S(e)in t)return d.css+r}return r}},Yr={noPrefill:["text-orientation"],supportedProperty:function(r){return r!=="text-orientation"?!1:d.vendor==="apple"&&!d.isTouch?d.css+r:r}},et={noPrefill:["transform"],supportedProperty:function(r,t,e){return r!=="transform"?!1:e.transform?r:d.css+r}},rt={noPrefill:["transition"],supportedProperty:function(r,t,e){return r!=="transition"?!1:e.transition?r:d.css+r}},tt={noPrefill:["writing-mode"],supportedProperty:function(r){return r!=="writing-mode"?!1:d.js==="Webkit"||d.js==="ms"&&d.browser!=="edge"?d.css+r:r}},nt={noPrefill:["user-select"],supportedProperty:function(r){return r!=="user-select"?!1:d.js==="Moz"||d.js==="ms"||d.vendor==="apple"?d.css+r:r}},it={supportedProperty:function(r,t){if(!/^break-/.test(r))return!1;if(d.js==="Webkit"){var e="WebkitColumn"+S(r);return e in t?d.css+"column-"+r:!1}if(d.js==="Moz"){var n="page"+S(r);return n in t?"page-"+r:!1}return!1}},st={supportedProperty:function(r,t){if(!/^(border|margin|padding)-inline/.test(r))return!1;if(d.js==="Moz")return r;var e=r.replace("-inline","");return d.js+S(e)in t?d.css+e:!1}},at={supportedProperty:function(r,t){return le(r)in t?r:!1}},ot={supportedProperty:function(r,t){var e=S(r);return r[0]==="-"||r[0]==="-"&&r[1]==="-"?r:d.js+e in t?d.css+r:d.js!=="Webkit"&&"Webkit"+e in t?"-webkit-"+r:!1}},ut={supportedProperty:function(r){return r.substring(0,11)!=="scroll-snap"?!1:d.js==="ms"?""+d.css+r:r}},lt={supportedProperty:function(r){return r!=="overscroll-behavior"?!1:d.js==="ms"?d.css+"scroll-chaining":r}},ft={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},dt={supportedProperty:function(r,t){var e=ft[r];return e&&d.js+S(e)in t?d.css+e:!1}},We={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ct=Object.keys(We),ht=function(r){return d.css+r},vt={supportedProperty:function(r,t,e){var n=e.multiple;if(ct.indexOf(r)>-1){var s=We[r];if(!Array.isArray(s))return d.js+S(s)in t?d.css+s:!1;if(!n)return!1;for(var a=0;a<s.length;a++)if(!(d.js+S(s[0])in t))return!1;return s.map(ht)}return!1}},$e=[Hr,Br,Xr,Yr,et,rt,tt,nt,it,st,at,ot,ut,lt,dt,vt],ke=$e.filter(function(i){return i.supportedProperty}).map(function(i){return i.supportedProperty}),pt=$e.filter(function(i){return i.noPrefill}).reduce(function(i,r){return i.push.apply(i,Ne(r.noPrefill)),i},[]),A,x={};if(E){A=document.createElement("p");var F=window.getComputedStyle(document.documentElement,"");for(var H in F)isNaN(H)||(x[F[H]]=F[H]);pt.forEach(function(i){return delete x[i]})}function ie(i,r){if(r===void 0&&(r={}),!A)return i;if(x[i]!=null)return x[i];(i==="transition"||i==="transform")&&(r[i]=i in A.style);for(var t=0;t<ke.length&&(x[i]=ke[t](i,A.style,r),!x[i]);t++);try{A.style[i]=""}catch{return!1}return x[i]}var w={},gt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},yt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,b;function mt(i,r,t){if(r==="var")return"var";if(r==="all")return"all";if(t==="all")return", all";var e=r?ie(r):", "+ie(t);return e||r||t}E&&(b=document.createElement("p"));function we(i,r){var t=r;if(!b||i==="content")return r;if(typeof t!="string"||!isNaN(parseInt(t,10)))return t;var e=i+t;if(w[e]!=null)return w[e];try{b.style[i]=t}catch{return w[e]=!1,!1}if(gt[i])t=t.replace(yt,mt);else if(b.style[i]===""&&(t=d.css+t,t==="-ms-flex"&&(b.style[i]="-ms-flexbox"),b.style[i]=t,b.style[i]===""))return w[e]=!1,!1;return b.style[i]="",w[e]=t,w[e]}function Ot(){function i(n){if(n.type==="keyframes"){var s=n;s.at=Fr(s.at)}}function r(n){for(var s in n){var a=n[s];if(s==="fallbacks"&&Array.isArray(a)){n[s]=a.map(r);continue}var o=!1,l=ie(s);l&&l!==s&&(o=!0);var f=!1,c=we(l,P(a));c&&c!==a&&(f=!0),(o||f)&&(o&&delete n[s],n[l||s]=c||a)}return n}function t(n,s){return s.type!=="style"?n:r(n)}function e(n,s){return we(s,P(n))||n}return{onProcessRule:i,onProcessStyle:t,onChangeValue:e}}function At(){var i=function(t,e){return t.length===e.length?t>e?1:-1:t.length-e.length};return{onProcessStyle:function(t,e){if(e.type!=="style")return t;for(var n={},s=Object.keys(t).sort(i),a=0;a<s.length;a++)n[s[a]]=t[s[a]];return n}}}export{se as _,kt as a,Ot as b,wt as c,Ct as d,At as e,xt as f,Cr as g,jr as h,Ne as i,Pt as j,St as k,Gr as l,jt as t};
13
+ */Cr();var _e=Date.now(),q="fnValues"+_e,G="fnStyle"+ ++_e,xt=function(){return{onCreateRule:function(t,e,n){if(typeof e!="function")return null;var s=ae(t,{},n);return s[G]=e,s},onProcessStyle:function(t,e){if(q in e||G in e)return t;var n={};for(var s in t){var a=t[s];typeof a=="function"&&(delete t[s],n[s]=a)}return e[q]=n,t},onUpdate:function(t,e,n,s){var a=e,o=a[G];o&&(a.style=o(t)||{});var l=a[q];if(l)for(var f in l)a.prop(f,l[f](t),s)}}},R="@global",re="@global ",Or=function(){function i(t,e,n){this.type="global",this.at=R,this.isProcessed=!1,this.key=t,this.options=n,this.rules=new z(v({},n,{parent:this}));for(var s in e)this.rules.add(s,e[s]);this.rules.process()}var r=i.prototype;return r.getRule=function(e){return this.rules.get(e)},r.addRule=function(e,n,s){var a=this.rules.add(e,n,s);return a&&this.options.jss.plugins.onProcessRule(a),a},r.replaceRule=function(e,n,s){var a=this.rules.replace(e,n,s);return a&&this.options.jss.plugins.onProcessRule(a),a},r.indexOf=function(e){return this.rules.indexOf(e)},r.toString=function(e){return this.rules.toString(e)},i}(),Ar=function(){function i(t,e,n){this.type="global",this.at=R,this.isProcessed=!1,this.key=t,this.options=n;var s=t.substr(re.length);this.rule=n.jss.createRule(s,e,v({},n,{parent:this}))}var r=i.prototype;return r.toString=function(e){return this.rule?this.rule.toString(e):""},i}(),Ir=/\s*,\s*/g;function Ee(i,r){for(var t=i.split(Ir),e="",n=0;n<t.length;n++)e+=r+" "+t[n].trim(),t[n+1]&&(e+=", ");return e}function _r(i,r){var t=i.options,e=i.style,n=e?e[R]:null;if(n){for(var s in n)r.addRule(s,n[s],v({},t,{selector:Ee(s,i.selector)}));delete e[R]}}function Er(i,r){var t=i.options,e=i.style;for(var n in e)if(!(n[0]!=="@"||n.substr(0,R.length)!==R)){var s=Ee(n.substr(R.length),i.selector);r.addRule(s,e[n],v({},t,{selector:s})),delete e[n]}}function Pt(){function i(t,e,n){if(!t)return null;if(t===R)return new Or(t,e,n);if(t[0]==="@"&&t.substr(0,re.length)===re)return new Ar(t,e,n);var s=n.parent;return s&&(s.type==="global"||s.options.parent&&s.options.parent.type==="global")&&(n.scoped=!1),!n.selector&&n.scoped===!1&&(n.selector=t),null}function r(t,e){t.type!=="style"||!e||(_r(t,e),Er(t,e))}return{onCreateRule:i,onProcessRule:r}}var Pe=/\s*,\s*/g,Tr=/&/g,Vr=/\$([\w-]+)/g;function kt(){function i(n,s){return function(a,o){var l=n.getRule(o)||s&&s.getRule(o);return l?l.selector:o}}function r(n,s){for(var a=s.split(Pe),o=n.split(Pe),l="",f=0;f<a.length;f++)for(var c=a[f],h=0;h<o.length;h++){var y=o[h];l&&(l+=", "),l+=y.indexOf("&")!==-1?y.replace(Tr,c):c+" "+y}return l}function t(n,s,a){if(a)return v({},a,{index:a.index+1});var o=n.options.nestingLevel;o=o===void 0?1:o+1;var l=v({},n.options,{nestingLevel:o,index:s.indexOf(n)+1});return delete l.name,l}function e(n,s,a){if(s.type!=="style")return n;var o=s,l=o.options.parent,f,c;for(var h in n){var y=h.indexOf("&")!==-1,g=h[0]==="@";if(!(!y&&!g)){if(f=t(o,l,f),y){var p=r(h,o.selector);c||(c=i(l,a)),p=p.replace(Vr,c);var m=o.key+"-"+h;"replaceRule"in l?l.replaceRule(m,n[h],v({},f,{selector:p})):l.addRule(m,n[h],v({},f,{selector:p}))}else g&&l.addRule(h,{},f).addRule(o.key,n[h],{selector:o.selector});delete n[h]}}return n}return{onProcessStyle:e}}var Mr=/[A-Z]/g,Nr=/^ms-/,K={};function zr(i){return"-"+i.toLowerCase()}function Te(i){if(K.hasOwnProperty(i))return K[i];var r=i.replace(Mr,zr);return K[i]=Nr.test(r)?"-"+r:r}function N(i){var r={};for(var t in i){var e=t.indexOf("--")===0?t:Te(t);r[e]=i[t]}return i.fallbacks&&(Array.isArray(i.fallbacks)?r.fallbacks=i.fallbacks.map(N):r.fallbacks=N(i.fallbacks)),r}function wt(){function i(t){if(Array.isArray(t)){for(var e=0;e<t.length;e++)t[e]=N(t[e]);return t}return N(t)}function r(t,e,n){if(e.indexOf("--")===0)return t;var s=Te(e);return e===s?t:(n.prop(s,t),null)}return{onProcessStyle:i,onChangeValue:r}}var u=ue&&CSS?CSS.px:"px",M=ue&&CSS?CSS.ms:"ms",k=ue&&CSS?CSS.percent:"%",Wr={"animation-delay":M,"animation-duration":M,"background-position":u,"background-position-x":u,"background-position-y":u,"background-size":u,border:u,"border-bottom":u,"border-bottom-left-radius":u,"border-bottom-right-radius":u,"border-bottom-width":u,"border-left":u,"border-left-width":u,"border-radius":u,"border-right":u,"border-right-width":u,"border-top":u,"border-top-left-radius":u,"border-top-right-radius":u,"border-top-width":u,"border-width":u,"border-block":u,"border-block-end":u,"border-block-end-width":u,"border-block-start":u,"border-block-start-width":u,"border-block-width":u,"border-inline":u,"border-inline-end":u,"border-inline-end-width":u,"border-inline-start":u,"border-inline-start-width":u,"border-inline-width":u,"border-start-start-radius":u,"border-start-end-radius":u,"border-end-start-radius":u,"border-end-end-radius":u,margin:u,"margin-bottom":u,"margin-left":u,"margin-right":u,"margin-top":u,"margin-block":u,"margin-block-end":u,"margin-block-start":u,"margin-inline":u,"margin-inline-end":u,"margin-inline-start":u,padding:u,"padding-bottom":u,"padding-left":u,"padding-right":u,"padding-top":u,"padding-block":u,"padding-block-end":u,"padding-block-start":u,"padding-inline":u,"padding-inline-end":u,"padding-inline-start":u,"mask-position-x":u,"mask-position-y":u,"mask-size":u,height:u,width:u,"min-height":u,"max-height":u,"min-width":u,"max-width":u,bottom:u,left:u,top:u,right:u,inset:u,"inset-block":u,"inset-block-end":u,"inset-block-start":u,"inset-inline":u,"inset-inline-end":u,"inset-inline-start":u,"box-shadow":u,"text-shadow":u,"column-gap":u,"column-rule":u,"column-rule-width":u,"column-width":u,"font-size":u,"font-size-delta":u,"letter-spacing":u,"text-decoration-thickness":u,"text-indent":u,"text-stroke":u,"text-stroke-width":u,"word-spacing":u,motion:u,"motion-offset":u,outline:u,"outline-offset":u,"outline-width":u,perspective:u,"perspective-origin-x":k,"perspective-origin-y":k,"transform-origin":k,"transform-origin-x":k,"transform-origin-y":k,"transform-origin-z":k,"transition-delay":M,"transition-duration":M,"vertical-align":u,"flex-basis":u,"shape-margin":u,size:u,gap:u,grid:u,"grid-gap":u,"row-gap":u,"grid-row-gap":u,"grid-column-gap":u,"grid-template-rows":u,"grid-template-columns":u,"grid-auto-rows":u,"grid-auto-columns":u,"box-shadow-x":u,"box-shadow-y":u,"box-shadow-blur":u,"box-shadow-spread":u,"font-line-height":u,"text-shadow-x":u,"text-shadow-y":u,"text-shadow-blur":u};function Ve(i){var r=/(-[a-z])/g,t=function(a){return a[1].toUpperCase()},e={};for(var n in i)e[n]=i[n],e[n.replace(r,t)]=i[n];return e}var $r=Ve(Wr);function _(i,r,t){if(r==null)return r;if(Array.isArray(r))for(var e=0;e<r.length;e++)r[e]=_(i,r[e],t);else if(typeof r=="object")if(i==="fallbacks")for(var n in r)r[n]=_(n,r[n],t);else for(var s in r)r[s]=_(i+"-"+s,r[s],t);else if(typeof r=="number"&&isNaN(r)===!1){var a=t[i]||$r[i];return a&&!(r===0&&a===u)?typeof a=="function"?a(r).toString():""+r+a:r.toString()}return r}function Ct(i){i===void 0&&(i={});var r=Ve(i);function t(n,s){if(s.type!=="style")return n;for(var a in n)n[a]=_(a,n[a],r);return n}function e(n,s){return _(s,n,r)}return{onProcessStyle:t,onChangeValue:e}}function te(i,r){(r==null||r>i.length)&&(r=i.length);for(var t=0,e=Array(r);t<r;t++)e[t]=i[t];return e}function Ur(i){if(Array.isArray(i))return te(i)}function qr(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function Gr(i,r){if(i){if(typeof i=="string")return te(i,r);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?te(i,r):void 0}}function Kr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Me(i){return Ur(i)||qr(i)||Gr(i)||Kr()}const jt=Object.freeze(Object.defineProperty({__proto__:null,default:Me},Symbol.toStringTag,{value:"Module"}));var O="",ne="",Ne="",ze="",Lr=T&&"ontouchstart"in document.documentElement;if(T){var L={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Jr=document.createElement("p"),J=Jr.style,Dr="Transform";for(var D in L)if(D+Dr in J){O=D,ne=L[D];break}O==="Webkit"&&"msHyphens"in J&&(O="ms",ne=L.ms,ze="edge"),O==="Webkit"&&"-apple-trailing-word"in J&&(Ne="apple")}var d={js:O,css:ne,vendor:Ne,browser:ze,isTouch:Lr};function Hr(i){return i[1]==="-"||d.js==="ms"?i:"@"+d.css+"keyframes"+i.substr(10)}var Br={noPrefill:["appearance"],supportedProperty:function(r){return r!=="appearance"?!1:d.js==="ms"?"-webkit-"+r:d.css+r}},Fr={noPrefill:["color-adjust"],supportedProperty:function(r){return r!=="color-adjust"?!1:d.js==="Webkit"?d.css+"print-"+r:r}},Zr=/[-\s]+(.)?/g;function Qr(i,r){return r?r.toUpperCase():""}function le(i){return i.replace(Zr,Qr)}function S(i){return le("-"+i)}var Xr={noPrefill:["mask"],supportedProperty:function(r,t){if(!/^mask/.test(r))return!1;if(d.js==="Webkit"){var e="mask-image";if(le(e)in t)return r;if(d.js+S(e)in t)return d.css+r}return r}},Yr={noPrefill:["text-orientation"],supportedProperty:function(r){return r!=="text-orientation"?!1:d.vendor==="apple"&&!d.isTouch?d.css+r:r}},et={noPrefill:["transform"],supportedProperty:function(r,t,e){return r!=="transform"?!1:e.transform?r:d.css+r}},rt={noPrefill:["transition"],supportedProperty:function(r,t,e){return r!=="transition"?!1:e.transition?r:d.css+r}},tt={noPrefill:["writing-mode"],supportedProperty:function(r){return r!=="writing-mode"?!1:d.js==="Webkit"||d.js==="ms"&&d.browser!=="edge"?d.css+r:r}},nt={noPrefill:["user-select"],supportedProperty:function(r){return r!=="user-select"?!1:d.js==="Moz"||d.js==="ms"||d.vendor==="apple"?d.css+r:r}},it={supportedProperty:function(r,t){if(!/^break-/.test(r))return!1;if(d.js==="Webkit"){var e="WebkitColumn"+S(r);return e in t?d.css+"column-"+r:!1}if(d.js==="Moz"){var n="page"+S(r);return n in t?"page-"+r:!1}return!1}},st={supportedProperty:function(r,t){if(!/^(border|margin|padding)-inline/.test(r))return!1;if(d.js==="Moz")return r;var e=r.replace("-inline","");return d.js+S(e)in t?d.css+e:!1}},at={supportedProperty:function(r,t){return le(r)in t?r:!1}},ot={supportedProperty:function(r,t){var e=S(r);return r[0]==="-"||r[0]==="-"&&r[1]==="-"?r:d.js+e in t?d.css+r:d.js!=="Webkit"&&"Webkit"+e in t?"-webkit-"+r:!1}},ut={supportedProperty:function(r){return r.substring(0,11)!=="scroll-snap"?!1:d.js==="ms"?""+d.css+r:r}},lt={supportedProperty:function(r){return r!=="overscroll-behavior"?!1:d.js==="ms"?d.css+"scroll-chaining":r}},ft={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},dt={supportedProperty:function(r,t){var e=ft[r];return e&&d.js+S(e)in t?d.css+e:!1}},We={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ct=Object.keys(We),ht=function(r){return d.css+r},vt={supportedProperty:function(r,t,e){var n=e.multiple;if(ct.indexOf(r)>-1){var s=We[r];if(!Array.isArray(s))return d.js+S(s)in t?d.css+s:!1;if(!n)return!1;for(var a=0;a<s.length;a++)if(!(d.js+S(s[0])in t))return!1;return s.map(ht)}return!1}},$e=[Br,Fr,Xr,Yr,et,rt,tt,nt,it,st,at,ot,ut,lt,dt,vt],ke=$e.filter(function(i){return i.supportedProperty}).map(function(i){return i.supportedProperty}),pt=$e.filter(function(i){return i.noPrefill}).reduce(function(i,r){return i.push.apply(i,Me(r.noPrefill)),i},[]),A,x={};if(T){A=document.createElement("p");var H=window.getComputedStyle(document.documentElement,"");for(var B in H)isNaN(B)||(x[H[B]]=H[B]);pt.forEach(function(i){return delete x[i]})}function ie(i,r){if(r===void 0&&(r={}),!A)return i;if(x[i]!=null)return x[i];(i==="transition"||i==="transform")&&(r[i]=i in A.style);for(var t=0;t<ke.length&&(x[i]=ke[t](i,A.style,r),!x[i]);t++);try{A.style[i]=""}catch{return!1}return x[i]}var w={},gt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},yt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,b;function mt(i,r,t){if(r==="var")return"var";if(r==="all")return"all";if(t==="all")return", all";var e=r?ie(r):", "+ie(t);return e||r||t}T&&(b=document.createElement("p"));function we(i,r){var t=r;if(!b||i==="content")return r;if(typeof t!="string"||!isNaN(parseInt(t,10)))return t;var e=i+t;if(w[e]!=null)return w[e];try{b.style[i]=t}catch{return w[e]=!1,!1}if(gt[i])t=t.replace(yt,mt);else if(b.style[i]===""&&(t=d.css+t,t==="-ms-flex"&&(b.style[i]="-ms-flexbox"),b.style[i]=t,b.style[i]===""))return w[e]=!1,!1;return b.style[i]="",w[e]=t,w[e]}function Ot(){function i(n){if(n.type==="keyframes"){var s=n;s.at=Hr(s.at)}}function r(n){for(var s in n){var a=n[s];if(s==="fallbacks"&&Array.isArray(a)){n[s]=a.map(r);continue}var o=!1,l=ie(s);l&&l!==s&&(o=!0);var f=!1,c=we(l,P(a));c&&c!==a&&(f=!0),(o||f)&&(o&&delete n[s],n[l||s]=c||a)}return n}function t(n,s){return s.type!=="style"?n:r(n)}function e(n,s){return we(s,P(n))||n}return{onProcessRule:i,onProcessStyle:t,onChangeValue:e}}function At(){var i=function(t,e){return t.length===e.length?t>e?1:-1:t.length-e.length};return{onProcessStyle:function(t,e){if(e.type!=="style")return t;for(var n={},s=Object.keys(t).sort(i),a=0;a<s.length;a++)n[s[a]]=t[s[a]];return n}}}export{se as _,kt as a,Ot as b,wt as c,Ct as d,At as e,xt as f,Cr as g,jr as h,Me as i,Pt as j,St as k,Gr as l,jt as t};
@@ -1,4 +1,4 @@
1
- import{at as c,j as t,P as i,Z as h,fr as d,n as m}from"./index-C_CQlCa-.js";import{C as p}from"./Close-D6G5_99n.js";const u=c([t.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),t.jsx("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");function l({variant:e,title:o,subTitle:s,footer:a,...n}){let r;switch(e){case"error":r=p;break;case"info":r=u;break;case"loading":r=m;break;default:r=d}return t.jsx(g,{variant:e,...n,children:t.jsxs("div",{className:"result-body",children:[t.jsx("span",{className:`result-icon color-${e}`,children:t.jsx(r,{})}),t.jsx("div",{className:`result-title color-${e} ${o?"":"ele-hide"}`,children:o}),t.jsx("div",{className:`result-sub-title ${s?"":"ele-hide"}`,children:s}),a&&t.jsx("div",{className:"result-footer",children:a})]})})}l.propTypes={variant:i.oneOf(["success","error","info","loading"]),title:i.string,subTitle:i.any,footer:i.any};l.defaultProps={variant:"success",title:"",subTitle:"",footer:null};const g=h.div`
1
+ import{at as c,j as t,P as i,Z as h,fq as d,n as m}from"./index-DJFwMRI_.js";import{C as p}from"./Close-DOy1k6an.js";const u=c([t.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),t.jsx("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");function l({variant:e,title:o,subTitle:s,footer:a,...n}){let r;switch(e){case"error":r=p;break;case"info":r=u;break;case"loading":r=m;break;default:r=d}return t.jsx(g,{variant:e,...n,children:t.jsxs("div",{className:"result-body",children:[t.jsx("span",{className:`result-icon color-${e}`,children:t.jsx(r,{})}),t.jsx("div",{className:`result-title color-${e} ${o?"":"ele-hide"}`,children:o}),t.jsx("div",{className:`result-sub-title ${s?"":"ele-hide"}`,children:s}),a&&t.jsx("div",{className:"result-footer",children:a})]})})}l.propTypes={variant:i.oneOf(["success","error","info","loading"]),title:i.string,subTitle:i.any,footer:i.any};l.defaultProps={variant:"success",title:"",subTitle:"",footer:null};const g=h.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{u as r,bp as m,aa as s,t as a,j as u,Z as c}from"./index-C_CQlCa-.js";import{C as d}from"./content-layout-Cm5xO87D.js";const l=c(d)`
1
+ import{u as r,bp as m,aa as s,t as a,j as u,Z as c}from"./index-DJFwMRI_.js";import{C as d}from"./content-layout-Tg4aLOhb.js";const l=c(d)`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{r as s,j as i,Z as c}from"./index-C_CQlCa-.js";import{d as f}from"./Search-CE2vOBwg.js";import{T as b}from"./TextField-DqidhRm4.js";var a={};Object.defineProperty(a,"__esModule",{value:!0});var m=a.default=void 0;v(s);var n=i;function v(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(d){return Object.getOwnPropertyDescriptor(e,d).enumerable})),r.push.apply(r,o)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(o){g(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function g(e,t,r){return(t=y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){var t=h(e,"string");return typeof t=="symbol"?t:t+""}function h(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var u=function(t){return(0,n.jsxs)("svg",p(p({},t),{},{children:[(0,n.jsx)("path",{d:"M1.25 2.709c0-.46.373-.834.834-.834h12.255c.46 0 .834.373.834.834v6.607a.834.834 0 1 1-1.668 0V3.542H2.917v13.214h6.407a.834.834 0 1 1 0 1.668h-7.24a.834.834 0 0 1-.834-.834V2.71z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.211 7.92a.917.917 0 1 0 0 1.833.917.917 0 0 0 0-1.834zm-2.584.916a2.584 2.584 0 1 1 5.169 0 2.584 2.584 0 0 1-5.17 0zM5.627 13.213c0-.46.373-.833.834-.833h3.501a.834.834 0 0 1 0 1.667H6.461a.834.834 0 0 1-.834-.834zM15.64 11.313c.215 0 .41.121.505.313l1.033 2.092 2.31.338a.563.563 0 0 1 .31.96l-1.67 1.627.394 2.3a.563.563 0 0 1-.816.592l-2.065-1.086-2.066 1.086a.562.562 0 0 1-.816-.593l.394-2.299-1.67-1.627a.563.563 0 0 1 .31-.96l2.31-.338 1.033-2.092a.562.562 0 0 1 .505-.313zm0 1.833l-.659 1.335a.563.563 0 0 1-.423.308l-1.474.215 1.066 1.04c.133.129.194.315.162.498l-.251 1.467 1.318-.694a.563.563 0 0 1 .524 0l1.318.694-.252-1.467a.563.563 0 0 1 .162-.498l1.067-1.04-1.475-.215a.563.563 0 0 1-.423-.308l-.66-1.335z"})]}))};u.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};u.displayName="external-issuer";m=a.default=u;const x=c(({children:e,...t})=>i.jsx(b,{...t,id:"outlined-basic",variant:"outlined",InputProps:{startAdornment:i.jsx(f,{})},size:"small",children:e}))`
1
+ import{r as s,j as i,Z as c}from"./index-DJFwMRI_.js";import{d as f}from"./Search-HNhjKRtr.js";import{T as b}from"./TextField-QsTZLSPK.js";var a={};Object.defineProperty(a,"__esModule",{value:!0});var m=a.default=void 0;v(s);var n=i;function v(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(d){return Object.getOwnPropertyDescriptor(e,d).enumerable})),r.push.apply(r,o)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(o){g(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function g(e,t,r){return(t=y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){var t=h(e,"string");return typeof t=="symbol"?t:t+""}function h(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var u=function(t){return(0,n.jsxs)("svg",p(p({},t),{},{children:[(0,n.jsx)("path",{d:"M1.25 2.709c0-.46.373-.834.834-.834h12.255c.46 0 .834.373.834.834v6.607a.834.834 0 1 1-1.668 0V3.542H2.917v13.214h6.407a.834.834 0 1 1 0 1.668h-7.24a.834.834 0 0 1-.834-.834V2.71z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.211 7.92a.917.917 0 1 0 0 1.833.917.917 0 0 0 0-1.834zm-2.584.916a2.584 2.584 0 1 1 5.169 0 2.584 2.584 0 0 1-5.17 0zM5.627 13.213c0-.46.373-.833.834-.833h3.501a.834.834 0 0 1 0 1.667H6.461a.834.834 0 0 1-.834-.834zM15.64 11.313c.215 0 .41.121.505.313l1.033 2.092 2.31.338a.563.563 0 0 1 .31.96l-1.67 1.627.394 2.3a.563.563 0 0 1-.816.592l-2.065-1.086-2.066 1.086a.562.562 0 0 1-.816-.593l.394-2.299-1.67-1.627a.563.563 0 0 1 .31-.96l2.31-.338 1.033-2.092a.562.562 0 0 1 .505-.313zm0 1.833l-.659 1.335a.563.563 0 0 1-.423.308l-1.474.215 1.066 1.04c.133.129.194.315.162.498l-.251 1.467 1.318-.694a.563.563 0 0 1 .524 0l1.318.694-.252-1.467a.563.563 0 0 1 .162-.498l1.067-1.04-1.475-.215a.563.563 0 0 1-.423-.308l-.66-1.335z"})]}))};u.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};u.displayName="external-issuer";m=a.default=u;const x=c(({children:e,...t})=>i.jsx(b,{...t,id:"outlined-basic",variant:"outlined",InputProps:{startAdornment:i.jsx(f,{})},size:"small",children:e}))`
2
2
  .MuiOutlinedInput-root {
3
3
  color: #999;
4
4
  &.MuiInputBase-adornedStart .MuiSvgIcon-root {
@@ -0,0 +1 @@
1
+ import{j as o}from"./index-DJFwMRI_.js";import{S as t}from"./studio-BxsvSt8u.js";import"./index-R_t5Wd6C.js";import"./Menu-BCLNF0wV.js";import"./Toolbar-ovqJjtaU.js";import"./Hidden-Bcfg4-bH.js";import"./fallback-CXclKVjQ.js";function a(){return o.jsx(t,{children:"Coming soon..."})}export{a as default};