@abtnode/blocklet-services 1.16.25-beta-85e265d1 → 1.16.25-beta-bc165d9b

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 (199) hide show
  1. package/api/routes/blocklet.js +3 -1
  2. package/dist/assets/{Add-6Epcd3ga.js → Add-Lnt-pXSV.js} +1 -1
  3. package/dist/assets/{Alert-l-TBUZOJ.js → Alert-XtZ4AbSm.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-qomhDOQM.js → ArrowDropDown-ceUhJF81.js} +1 -1
  5. package/dist/assets/{Avatar-cxKY3Rtk.js → Avatar-GOdToP4j.js} +1 -1
  6. package/dist/assets/{ButtonGroup-d9hIu1lo.js → ButtonGroup-aIe1r9So.js} +1 -1
  7. package/dist/assets/{CheckCircle-SesF25PD.js → CheckCircle-F4e_lCOq.js} +1 -1
  8. package/dist/assets/{ChevronRight-LwhbSu8i.js → ChevronRight-auU_8n8N.js} +1 -1
  9. package/dist/assets/{CloseOutlined-Fbty67Zs.js → CloseOutlined-PLOW9UrW.js} +1 -1
  10. package/dist/assets/{Delete-qtfdnw9L.js → Delete-jR0U5oQM.js} +1 -1
  11. package/dist/assets/{DeleteOutline-7A8DKOTU.js → DeleteOutline-KZfxJMoF.js} +1 -1
  12. package/dist/assets/{Done-tVllrZpa.js → Done-D1uUSVNM.js} +1 -1
  13. package/dist/assets/{Download-9QjfUJIg.js → Download-abeFRb1V.js} +1 -1
  14. package/dist/assets/{Edit-QVLPptvL.js → Edit-p41JYmGC.js} +1 -1
  15. package/dist/assets/{EditIcon-uFacruuw.js → EditIcon-cvgd_m44.js} +1 -1
  16. package/dist/assets/{ExpandMore-OfaPyHFu.js → ExpandMore-svMob0Kw.js} +1 -1
  17. package/dist/assets/{FilterList-sfUjmYG8.js → FilterList-65npUnCP.js} +4 -4
  18. package/dist/assets/{FormControl-h5DYMIOP.js → FormControl-0hlUZfjP.js} +1 -1
  19. package/dist/assets/{FormControlLabel-qsKowZCH.js → FormControlLabel-AR3EqP1P.js} +1 -1
  20. package/dist/assets/{FormGroup-T1QpJsQV.js → FormGroup-ea0l38T_.js} +1 -1
  21. package/dist/assets/{Google-8LJLh9Kk.js → Google-_WbKPTXv.js} +4 -4
  22. package/dist/assets/{Grid-JpQPjX6n.js → Grid-q5nKgpEH.js} +1 -1
  23. package/dist/assets/{Hidden-TBO3Yr4z.js → Hidden-z8Sjsln3.js} +1 -1
  24. package/dist/assets/{InfoOutlined-66Ex39Rb.js → InfoOutlined-dJO57Gi1.js} +1 -1
  25. package/dist/assets/{InputAdornment-GgFKxUBs.js → InputAdornment-4szKt1KV.js} +1 -1
  26. package/dist/assets/{InputLabel-17wQImkZ.js → InputLabel-7f_i2Q81.js} +1 -1
  27. package/dist/assets/{LastPage-0D9_k_9q.js → LastPage-bWgI6VtB.js} +1 -1
  28. package/dist/assets/{Launch-nxkyUWue.js → Launch-A5BXs4Bs.js} +1 -1
  29. package/dist/assets/{LaunchOutlined-PUWiYDAf.js → LaunchOutlined-aMo9tT0b.js} +1 -1
  30. package/dist/assets/{Link-41pb7UbS.js → Link-fP3C6sYJ.js} +1 -1
  31. package/dist/assets/{ListItem-Ny9BoTNl.js → ListItem-VO4irUhp.js} +1 -1
  32. package/dist/assets/{ListItemText--ZuBk1kp.js → ListItemText-mWv8kaZK.js} +1 -1
  33. package/dist/assets/{LockIcon-RapfU2xd.js → LockIcon-2zHVOoE1.js} +1 -1
  34. package/dist/assets/{Loop-piYHwDQL.js → Loop-QQmyWzoD.js} +1 -1
  35. package/dist/assets/{MoreHoriz-TWznoE3n.js → MoreHoriz-o30dgPK5.js} +1 -1
  36. package/dist/assets/{MoreVert-jKyVzYn5.js → MoreVert-DV2yTYFA.js} +1 -1
  37. package/dist/assets/{OpenInNew-dwmHvRym.js → OpenInNew-N7yhQSZw.js} +1 -1
  38. package/dist/assets/{Pagination-d_hO67qo.js → Pagination-XHzj8YB-.js} +1 -1
  39. package/dist/assets/{PlayArrow-fGfeCJ-G.js → PlayArrow-41TArfDK.js} +1 -1
  40. package/dist/assets/{RadioGroup-lfBNZfIY.js → RadioGroup-y8SDAxbB.js} +1 -1
  41. package/dist/assets/{Search-UmwZ55Km.js → Search--I4-eR9y.js} +1 -1
  42. package/dist/assets/{Select-M3S6C0yl.js → Select-fntejhyc.js} +2 -2
  43. package/dist/assets/{ServerLogo-E9M3451Y.js → ServerLogo-1rzkYGg3.js} +1 -1
  44. package/dist/assets/{Skeleton-8HgKwEWM.js → Skeleton-jyTG7EyB.js} +2 -2
  45. package/dist/assets/{Slider-9hB7agEl.js → Slider-HS11dzG6.js} +1 -1
  46. package/dist/assets/{Stepper-kRtP3_O9.js → Stepper-aEKsYaBA.js} +1 -1
  47. package/dist/assets/{TableRow-rbvkGhj_.js → TableRow-htCmnqVf.js} +2 -2
  48. package/dist/assets/{TextField-zBuNVnb8.js → TextField-SWRSa9bn.js} +1 -1
  49. package/dist/assets/{Toolbar-AykKd5Yb.js → Toolbar-t4f5PZ_M.js} +1 -1
  50. package/dist/assets/{ViewList-bn33hiJy.js → ViewList-p0b2jzTg.js} +1 -1
  51. package/dist/assets/{access-control-xwupf7Kt.js → access-control-jBA5LWse.js} +1 -1
  52. package/dist/assets/{actions-zELNtNca.js → actions-J3NNd0JN.js} +1 -1
  53. package/dist/assets/{add-component-core-oMshV-b1.js → add-component-core-aneiKgri.js} +1 -1
  54. package/dist/assets/add-resource-lypSzIIG.js +1 -0
  55. package/dist/assets/{addon-rWclJCML.js → addon-5AcSwMvH.js} +1 -1
  56. package/dist/assets/{analytics-QUpy8BB1.js → analytics-Y-g_mCRB.js} +6 -6
  57. package/dist/assets/api-S4_PC961.js +1 -0
  58. package/dist/assets/ar-GhaeoIRX.js +1 -0
  59. package/dist/assets/{audit-logs-1bRwLNp0.js → audit-logs-pW758Auj.js} +1 -1
  60. package/dist/assets/{button-A2-bJKoY.js → button-h7-LJK4-.js} +1 -1
  61. package/dist/assets/{click-to-copy-H10anlG-.js → click-to-copy-BP1e3OBH.js} +1 -1
  62. package/dist/assets/{complete-MQw2U2If.js → complete-fDuBXtWP.js} +4 -4
  63. package/dist/assets/{component-8AomvIia.js → component-lyeZOifp.js} +14 -14
  64. package/dist/assets/{config-lWI0gCVD.js → config--QkVHHLE.js} +2 -2
  65. package/dist/assets/{config-navigation-TmFeW4aT.js → config-navigation-SUDWI5Ci.js} +5 -5
  66. package/dist/assets/{config-space-_0nxn5mY.js → config-space-e4H84HSf.js} +1 -1
  67. package/dist/assets/{config-U6r4LfqY.js → config-wvNu1mmB.js} +1 -1
  68. package/dist/assets/{confirm-BdVzKoyv.js → confirm-1dWhCOej.js} +1 -1
  69. package/dist/assets/{connect-TjvqWo8w.js → connect-keZKysMf.js} +1 -1
  70. package/dist/assets/{connect-AWams3AW.js → connect-q0Xl8DWc.js} +1 -1
  71. package/dist/assets/{connect-to-gNBYvYUc.js → connect-to-RBHsm1CM.js} +2 -2
  72. package/dist/assets/{content-layout-wPpWHwtn.js → content-layout-s6SRZn2K.js} +1 -1
  73. package/dist/assets/dashboard-x0ZekfKq.js +134 -0
  74. package/dist/assets/de-xwlaLxE5.js +1 -0
  75. package/dist/assets/{did-address-E0zTjER8.js → did-address-k04yv_z0.js} +1 -1
  76. package/dist/assets/{domain-ru01i1Lx.js → domain-1WFSBZ36.js} +1 -1
  77. package/dist/assets/{domain-list-5K-gNYNS.js → domain-list-GzxXA7Br.js} +2 -2
  78. package/dist/assets/es-WU0JxH3v.js +1 -0
  79. package/dist/assets/{exchange-passport-m2nPYhfg.js → exchange-passport-BxY4LxFX.js} +1 -1
  80. package/dist/assets/{fallback-WLwa7Jex.js → fallback-Eayu19Kp.js} +1 -1
  81. package/dist/assets/fr-s2654-DL.js +1 -0
  82. package/dist/assets/{fuel-m2nrI0EI.js → fuel-XCfjJFpr.js} +1 -1
  83. package/dist/assets/{fullpage-LTuFh3eo.js → fullpage-6EOl6h0m.js} +1 -1
  84. package/dist/assets/hi-lcoNZDY5.js +1 -0
  85. package/dist/assets/{home-7fmmS4Al.js → home-mGNIqLsC.js} +1 -1
  86. package/dist/assets/id-uVaD_Ehi.js +1 -0
  87. package/dist/assets/iframe-CAzgCrnE.js +1 -0
  88. package/dist/assets/{index-VvItb3OK.js → index-0AeKDhu7.js} +1 -1
  89. package/dist/assets/{index-b9iwzv-G.js → index-1izMQO3u.js} +1 -1
  90. package/dist/assets/{index-54larodz.js → index-2onGe1gp.js} +9 -9
  91. package/dist/assets/{index-Y_4tl5Qc.js → index-CRnDTWnW.js} +1 -1
  92. package/dist/assets/index-Fb5zZwNt.js +1 -0
  93. package/dist/assets/{index-5_MVsYdQ.js → index-GdV8yGpX.js} +1 -1
  94. package/dist/assets/{index-BVdXvtK3.js → index-N45RLJJa.js} +1 -1
  95. package/dist/assets/{index-KS6_MsHI.js → index-NSCjO0de.js} +1 -1
  96. package/dist/assets/{index-rLnjvpIb.js → index-PvuzB0XW.js} +1 -1
  97. package/dist/assets/{index-E2paL42k.js → index-UTc44NvS.js} +7 -7
  98. package/dist/assets/{index-ECLv9_aC.js → index-W9lZ56nO.js} +1 -1
  99. package/dist/assets/{index-ZDzdcJZT.js → index-Xf2A8Us1.js} +1 -1
  100. package/dist/assets/{index-mbnSg7Jx.js → index-_HL7nNqY.js} +5 -5
  101. package/dist/assets/{index-Scf2aR55.js → index-_a5LvPR1.js} +18 -18
  102. package/dist/assets/{index-RrK_ISxc.js → index-c9Kb2LrT.js} +1 -1
  103. package/dist/assets/{index-enA3_J3s.js → index-dg5PeY5B.js} +3 -3
  104. package/dist/assets/{index-8r-VQqt2.js → index-hv-D03lE.js} +2 -2
  105. package/dist/assets/{index-m_6kdee8.js → index-o6cjzjkW.js} +1 -1
  106. package/dist/assets/{index-gz1sTrh1.js → index-oBwF2Hxy.js} +4 -4
  107. package/dist/assets/{index-jbkwSTiK.js → index-oWwT-DlR.js} +1 -1
  108. package/dist/assets/{index-YeqD-xBR.js → index-q330fpH4.js} +1 -1
  109. package/dist/assets/index-sXUa8K_p.js +4 -0
  110. package/dist/assets/{index-TyIzZRs-.js → index-tnO0LUhq.js} +1 -1
  111. package/dist/assets/{index-EZ31v4dT.js → index-u5huyIp5.js} +1 -1
  112. package/dist/assets/index-uX1Y3cB6.js +1301 -0
  113. package/dist/assets/{index-dUktCDkw.js → index-uh3JVYYs.js} +2 -2
  114. package/dist/assets/{index-fhGcwyej.js → index-uyclj_A0.js} +3 -3
  115. package/dist/assets/{index-Y8YgLCJZ.js → index-ygsry8B4.js} +9 -9
  116. package/dist/assets/{index.es-bN4f5-K-.js → index.es-kCNiQ9Lo.js} +1 -1
  117. package/dist/assets/{index.esm-1FnD031i.js → index.esm-Ymr_9beW.js} +1 -1
  118. package/dist/assets/{invitation-ZOQm2qju.js → invitation-WM0eVKYA.js} +1 -1
  119. package/dist/assets/{invite-2Rm-lvWH.js → invite-JZtgd7w3.js} +1 -1
  120. package/dist/assets/{issue-passport-D2uxHu_i.js → issue-passport-tpoR3FJI.js} +1 -1
  121. package/dist/assets/ja-9UaRFNdy.js +1 -0
  122. package/dist/assets/{jss-plugin-props-sort.esm-fUHko8qV.js → jss-plugin-props-sort.esm-X4utxJBX.js} +1 -1
  123. package/dist/assets/ko-yTikii17.js +1 -0
  124. package/dist/assets/{launch-result-message-IUgl8S_D.js → launch-result-message-MP4kG6RJ.js} +1 -1
  125. package/dist/assets/{layout-9s7NK74W.js → layout-W-Y_JO3B.js} +1 -1
  126. package/dist/assets/{list-header-2fZA__Ld.js → list-header-GnEXUyH5.js} +1 -1
  127. package/dist/assets/localization-2GI0gy8p.js +1 -0
  128. package/dist/assets/{log-lp2msxv9.js → log-SbhJ0-D-.js} +1 -1
  129. package/dist/assets/{login-QYMng9me.js → login-RQFo7s-t.js} +1 -1
  130. package/dist/assets/{logo-uploader-BYrURljp.js → logo-uploader-uk95tRX_.js} +3 -3
  131. package/dist/assets/{lost-passport-x2Bu6WM3.js → lost-passport-joGjjJkN.js} +3 -3
  132. package/dist/assets/{lottie-PyWCBPW0.js → lottie-yG8osFs5.js} +1 -1
  133. package/dist/assets/{notifications-bhNBAwYZ.js → notifications-DOxubwia.js} +2 -2
  134. package/dist/assets/overview-ryDSple6.js +12 -0
  135. package/dist/assets/{page-header-CHw-WQA2.js → page-header-zk_vGpbh.js} +1 -1
  136. package/dist/assets/{permission-9nzt-q4b.js → permission-SllzgDua.js} +1 -1
  137. package/dist/assets/{preferences-4tXaXGnj.js → preferences-F-PM1lpN.js} +1 -1
  138. package/dist/assets/pt-zAir0hVe.js +1 -0
  139. package/dist/assets/publish-resource-RsJO2Hq1.js +1 -0
  140. package/dist/assets/{react-S17hN1iH.js → react-VuQOP3L6.js} +3 -3
  141. package/dist/assets/{redux-gRDWHG8c.js → redux-kc3-kmsu.js} +1 -1
  142. package/dist/assets/ru-Gi96O-Vb.js +1 -0
  143. package/dist/assets/selector-DTL7zNX_.js +46 -0
  144. package/dist/assets/session-BYfUMbJk.js +1 -0
  145. package/dist/assets/{setup-dY6aNRX3.js → setup-DPfp5CGT.js} +3 -3
  146. package/dist/assets/{slicedToArray-mck4X0q5.js → slicedToArray-iFruSMqg.js} +2 -2
  147. package/dist/assets/{spaces-PUl6VuEw.js → spaces-J1r769JG.js} +1 -1
  148. package/dist/assets/start-lY990yZO.js +186 -0
  149. package/dist/assets/{step-actions-hJO9vJJ2.js → step-actions-pbMKlmy7.js} +1 -1
  150. package/dist/assets/{studio-caITeK-r.js → studio-7-raEmM6.js} +1 -1
  151. package/dist/assets/{switch-control-5DKcjr7K.js → switch-control-mlgW5FPR.js} +1 -1
  152. package/dist/assets/{th-sbvh70hx.js → th-TxDimAv4.js} +1 -1
  153. package/dist/assets/{toUpper-NbngLfu_.js → toUpper-r8rRJQKe.js} +1 -1
  154. package/dist/assets/{transfer-JZzkTf8v.js → transfer-yrY7D8nI.js} +1 -1
  155. package/dist/assets/{ua-parser-i2ofVHAy.js → ua-parser-gHDQaKhq.js} +3 -3
  156. package/dist/assets/{uniqBy-tAxpWE-O.js → uniqBy-qDRpbVgw.js} +1 -1
  157. package/dist/assets/{unsubscribe--9hIbo49.js → unsubscribe-wC5B9E40.js} +1 -1
  158. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-Bcu8RYGE.js → use-blocklet-info-for-connect-did-spaces-2L97PzJq.js} +1 -1
  159. package/dist/assets/{useAsync-WzK7ZSwT.js → useAsync-5uJxDS-U.js} +1 -1
  160. package/dist/assets/{useFormControl-jdgDLs6W.js → useFormControl-_t-2NjZI.js} +1 -1
  161. package/dist/assets/{useLocalStorage-4f-61B8p.js → useLocalStorage-GnZ8ygVs.js} +1 -1
  162. package/dist/assets/{useSetState-Zqz3mRV-.js → useSetState-PcL2uKmD.js} +1 -1
  163. package/dist/assets/{useSlot-BhQ4Lfcp.js → useSlot-FhKMtbcE.js} +1 -1
  164. package/dist/assets/{user-center-cNn0sVzK.js → user-center-7xAjmGFG.js} +1 -1
  165. package/dist/assets/{user-sessions-jwHGe5G-.js → user-sessions-Qi3aDWm2.js} +1 -1
  166. package/dist/assets/{util-34S6iA5N.js → util-0BXgqFVS.js} +1 -1
  167. package/dist/assets/vi-hic6htLz.js +1 -0
  168. package/dist/assets/{wrap-locale-dUnM3tZX.js → wrap-locale-j87K3AQt.js} +1 -1
  169. package/dist/assets/zh-VrMBUqtA.js +1 -0
  170. package/dist/assets/zh-tw-wjxZMUrx.js +1 -0
  171. package/dist/index.html +1 -1
  172. package/dist/service-worker.js +1 -1
  173. package/package.json +18 -18
  174. package/dist/assets/add-resource-jbzGvP0x.js +0 -1
  175. package/dist/assets/api-JSGQgEYG.js +0 -1
  176. package/dist/assets/ar-u_bJ5PrA.js +0 -1
  177. package/dist/assets/dashboard-m0_f98IA.js +0 -134
  178. package/dist/assets/de-oOiOcG-A.js +0 -1
  179. package/dist/assets/es-LbdnOHug.js +0 -1
  180. package/dist/assets/fr-bGflKMpT.js +0 -1
  181. package/dist/assets/hi-VjNJEiVA.js +0 -1
  182. package/dist/assets/id-Hep-nnEn.js +0 -1
  183. package/dist/assets/iframe-RY3IszT5.js +0 -1
  184. package/dist/assets/index-9nGLjeMJ.js +0 -1
  185. package/dist/assets/index-Q73bL4kQ.js +0 -1314
  186. package/dist/assets/index-hvq3gD1K.js +0 -4
  187. package/dist/assets/ja-R_MWRpmY.js +0 -1
  188. package/dist/assets/ko-HYtqmoCZ.js +0 -1
  189. package/dist/assets/localization-jw88dK_C.js +0 -1
  190. package/dist/assets/overview-IG3m8550.js +0 -12
  191. package/dist/assets/pt-WcnHMD2V.js +0 -1
  192. package/dist/assets/publish-resource-sYQ5Ad-I.js +0 -1
  193. package/dist/assets/ru-C9FX25DR.js +0 -1
  194. package/dist/assets/selector-MKIYf6Up.js +0 -46
  195. package/dist/assets/session-qul76cK0.js +0 -1
  196. package/dist/assets/start-wpEK4hsR.js +0 -186
  197. package/dist/assets/vi-0MuYwLtl.js +0 -1
  198. package/dist/assets/zh-o3NAnHCw.js +0 -1
  199. package/dist/assets/zh-tw-_4y2N8Jn.js +0 -1
@@ -0,0 +1 @@
1
+ import{fM as J,r as P,eo as V,N as x,ep as $,gd as S,ge as j,M,a0 as p,dl as N}from"./index-uX1Y3cB6.js";var Q=function(i,e){return i===void 0&&(i=[]),e===void 0&&(e=[]),J(i,e)},U=function(i,e,r){var n=P.useRef(),t=P.useRef(0);Q(e,n.current)||(n.current=e,t.current+=1),V(i,[t.current],r)},X=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),B={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:X?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},R={ctrl:function(i){return i.ctrlKey},shift:function(i){return i.shiftKey},alt:function(i){return i.altKey},meta:function(i){return i.type==="keyup"?B.meta.includes(i.keyCode):i.metaKey}};function D(i){return j(i)||M(i)}function Y(i){var e=Object.keys(R).reduce(function(r,n){return R[n](i)?r+1:r},0);return[16,17,18,91,92].includes(i.keyCode)?e:e+1}function q(i,e,r){var n,t;if(!i.key)return!1;if(M(e))return i.keyCode===e?e:!1;var l=e.split("."),a=0;try{for(var f=S(l),o=f.next();!o.done;o=f.next()){var c=o.value,s=R[c],u=B[c.toLowerCase()];(s&&s(i)||u&&u===i.keyCode)&&a++}}catch(b){n={error:b}}finally{try{o&&!o.done&&(t=f.return)&&t.call(f)}finally{if(n)throw n.error}}return r?a===l.length&&Y(i)===l.length?e:!1:a===l.length?e:!1}function Z(i,e){return p(i)?i:D(i)?function(r){return q(r,i,e)}:Array.isArray(i)?function(r){return i.find(function(n){return q(r,n,e)})}:function(){return!!i}}var O=["keydown"];function _(i,e,r){var n=r||{},t=n.events,l=t===void 0?O:t,a=n.target,f=n.exactMatch,o=f===void 0?!1:f,c=n.useCapture,s=c===void 0?!1:c,u=x(e),b=x(i);U(function(){var A,m,L,v=$(a,window);if(v){var T=function(g){var C,E=Z(b.current,o),h=E(g),y=D(h)?h:g.key;if(h)return(C=u.current)===null||C===void 0?void 0:C.call(u,g,y)};try{for(var K=S(l),k=K.next();!k.done;k=K.next()){var G=k.value;(L=v==null?void 0:v.addEventListener)===null||L===void 0||L.call(v,G,T,s)}}catch(g){A={error:g}}finally{try{k&&!k.done&&(m=K.return)&&m.call(K)}finally{if(A)throw A.error}}return function(){var g,C,E;try{for(var h=S(l),y=h.next();!y.done;y=h.next()){var H=y.value;(E=v==null?void 0:v.removeEventListener)===null||E===void 0||E.call(v,H,T,s)}}catch(W){g={error:W}}finally{try{y&&!y.done&&(C=h.return)&&C.call(h)}finally{if(g)throw g.error}}}}},[l],a)}function d(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function z(i,e){for(var r="",n=0,t=-1,l=0,a,f=0;f<=i.length;++f){if(f<i.length)a=i.charCodeAt(f);else{if(a===47)break;a=47}if(a===47){if(!(t===f-1||l===1))if(t!==f-1&&l===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var o=r.lastIndexOf("/");if(o!==r.length-1){o===-1?(r="",n=0):(r=r.slice(0,o),n=r.length-1-r.lastIndexOf("/")),t=f,l=0;continue}}else if(r.length===2||r.length===1){r="",n=0,t=f,l=0;continue}}e&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+i.slice(t+1,f):r=i.slice(t+1,f),n=f-t-1;t=f,l=0}else a===46&&l!==-1?++l:l=-1}return r}function I(i,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+i+n:n}var w={resolve:function(){for(var e="",r=!1,n,t=arguments.length-1;t>=-1&&!r;t--){var l;t>=0?l=arguments[t]:(n===void 0&&(n=N.cwd()),l=n),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}return e=z(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";var r=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=z(e,!r),e.length===0&&!r&&(e="."),e.length>0&&n&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return d(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];d(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":w.normalize(e)},relative:function(e,r){if(d(e),d(r),e===r||(e=w.resolve(e),r=w.resolve(r),e===r))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var t=e.length,l=t-n,a=1;a<r.length&&r.charCodeAt(a)===47;++a);for(var f=r.length,o=f-a,c=l<o?l:o,s=-1,u=0;u<=c;++u){if(u===c){if(o>c){if(r.charCodeAt(a+u)===47)return r.slice(a+u+1);if(u===0)return r.slice(a+u)}else l>c&&(e.charCodeAt(n+u)===47?s=u:u===0&&(s=0));break}var b=e.charCodeAt(n+u),A=r.charCodeAt(a+u);if(b!==A)break;b===47&&(s=u)}var m="";for(u=n+s+1;u<=t;++u)(u===t||e.charCodeAt(u)===47)&&(m.length===0?m+="..":m+="/..");return m.length>0?m+r.slice(a+s):(a+=s,r.charCodeAt(a)===47&&++a,r.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(d(e),e.length===0)return".";for(var r=e.charCodeAt(0),n=r===47,t=-1,l=!0,a=e.length-1;a>=1;--a)if(r=e.charCodeAt(a),r===47){if(!l){t=a;break}}else l=!1;return t===-1?n?"/":".":n&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');d(e);var n=0,t=-1,l=!0,a;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var f=r.length-1,o=-1;for(a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(c===47){if(!l){n=a+1;break}}else o===-1&&(l=!1,o=a+1),f>=0&&(c===r.charCodeAt(f)?--f===-1&&(t=a):(f=-1,t=o))}return n===t?t=o:t===-1&&(t=e.length),e.slice(n,t)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!l){n=a+1;break}}else t===-1&&(l=!1,t=a+1);return t===-1?"":e.slice(n,t)}},extname:function(e){d(e);for(var r=-1,n=0,t=-1,l=!0,a=0,f=e.length-1;f>=0;--f){var o=e.charCodeAt(f);if(o===47){if(!l){n=f+1;break}continue}t===-1&&(l=!1,t=f+1),o===46?r===-1?r=f:a!==1&&(a=1):r!==-1&&(a=-1)}return r===-1||t===-1||a===0||a===1&&r===t-1&&r===n+1?"":e.slice(r,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return I("/",e)},parse:function(e){d(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var n=e.charCodeAt(0),t=n===47,l;t?(r.root="/",l=1):l=0;for(var a=-1,f=0,o=-1,c=!0,s=e.length-1,u=0;s>=l;--s){if(n=e.charCodeAt(s),n===47){if(!c){f=s+1;break}continue}o===-1&&(c=!1,o=s+1),n===46?a===-1?a=s:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||o===-1||u===0||u===1&&a===o-1&&a===f+1?o!==-1&&(f===0&&t?r.base=r.name=e.slice(1,o):r.base=r.name=e.slice(f,o)):(f===0&&t?(r.name=e.slice(1,a),r.base=e.slice(1,o)):(r.name=e.slice(f,a),r.base=e.slice(f,o)),r.ext=e.slice(a,o)),f>0?r.dir=e.slice(0,f-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};w.posix=w;var ee=w;export{ee as p,_ as u};
@@ -1 +1 @@
1
- import{P as o,r as x,j as e,B as u,bn as K,bG as B,eU as U,a4 as W,ay as R,S as v,d3 as G,U as M}from"./index-Q73bL4kQ.js";import{d as $}from"./EditIcon-uFacruuw.js";import{d as A}from"./Done-tVllrZpa.js";import{C as H}from"./Google-8LJLh9Kk.js";import{T as Y}from"./TextField-zBuNVnb8.js";import{R as J,F as Q,L as X}from"./logo-uploader-BYrURljp.js";const S={description:o.string,editing:o.bool,onChange:o.func,required:o.bool,value:o.any,componentProps:o.object,render:o.func,renderFormItem:o.func};function V({editing:n,value:r,onChange:s}){const[a,l]=x.useState(!1),c=x.useRef(),d=x.useRef(r);x.useEffect(()=>{let p=null;return n&&(p=setTimeout(()=>{l(!0)},50)),()=>{clearTimeout(p)}},[n]);const y=p=>{d.current=p,s(p)},g=()=>{l(!1),s(d.current)},b=e.jsx(u,{className:"form-item-input slot",px:1,children:e.jsxs(u,{display:"flex",alignItems:"center",children:[r,r!=="auto"&&e.jsx("div",{style:{marginLeft:4,backgroundColor:r,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),i=e.jsxs(u,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:g,children:[e.jsx(u,{display:"flex",alignItems:"center",onClick:()=>l(!0),children:e.jsx("div",{ref:c,style:{flexShrink:0,marginLeft:"8px",backgroundColor:r,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:r==="auto"?"default":"pointer"}})}),e.jsx(K,{open:a,anchorEl:c.current,onClose:()=>l(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(H,{color:r,onChange:p=>y(p.hex)})})]});return n?i:b}V.propTypes=S;function _({editing:n,description:r,value:s,onChange:a,componentProps:l,...c}){const{placeholder:d}=l,y=x.useRef(s),g=i=>{i.key==="Enter"&&a(y.current,"confirm")},b=i=>{y.current=i,a(i)};return n?e.jsx(Y,{style:{flex:1},fullWidth:!0,value:s,onChange:i=>{i.persist(),b(i.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:r||d,onKeyDown:g,...c}):e.jsx(u,{px:1,className:"form-item-input slot",children:s})}_.propTypes=S;_.defaultProps={componentProps:{}};function F({editing:n,value:r,onChange:s,componentProps:a,...l}){const{blocklet:c}=a,d=r==="auto"?B.getPassportColorFromDid(c.appDid):r;return e.jsxs(u,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:U({title:"Owner",issuer:W(c),issuerDid:c.appDid,ownerName:"Your Name",ownerDid:c.appDid,preferredColor:r||"auto"})}}),e.jsx(V,{...l,editing:n,value:n?d:r,onChange:s,componentProps:a})]})}F.propTypes={...S,componentProps:o.shape({blocklet:o.object.isRequired}).isRequired};F.defaultProps={};const Z={input:_,color:V,passport:F,uploader:n=>e.jsx(X,{...n.componentProps})};function ee(n,{editing:r=!1}){const{componentType:s="input",render:a,renderFormItem:l}=n;return r&&l?l:!r&&a?a:Z[s==null?void 0:s.toLowerCase()]}function D({schema:n,loading:r,value:s,defaultValue:a,onChange:l,style:c,disabled:d}){const y=Object.prototype.toString.call(s)==="[object Object]",[g,b]=x.useState(null),[i,p]=x.useState(y?s:a),P=x.useRef();function I(t,m,h){const{key:f,secure:C}=t,k=i[f]!==m,j={...i,[f]:m};k&&p(j),l({[f]:m},{allValues:j,action:h,currentItem:t}),h==="confirm"&&C&&p({...i,[f]:"__encrypted__"}),["confirm","cancel"].includes(h)?N(null):N(t)}function N(t){if(t){P.current=i[t.key],b(t);return}P.current=null,b(null)}function E(t,{editing:m=!1}){const{key:h}=t,f=y?s[h]:i[h];return f==="__encrypted__"?m?"":"******":f}return e.jsx(re,{className:"form",style:c,children:n==null?void 0:n.map(t=>{const{key:m,description:h,required:f,solo:C=!1,hidden:T=!1,componentProps:k={}}=t;if(T)return null;const j=!!(g&&m===g.key),w=E(t,{editing:j}),z=ee(t,{editing:j}),q={inputProps:{"data-cy":"schema-form-item-component"},key:m,description:h,editing:j,value:w,onChange:(L,O="change")=>I(t,L,O),componentProps:k};return e.jsxs(u,{className:"form-item",children:[!C&&e.jsxs(u,{className:"form-item-label",style:{color:f&&!w?"#ff0000":"#333"},children:[h,f&&e.jsx(J,{})]}),e.jsxs(u,{className:"form-item-body",children:[e.jsx(u,{className:"form-item-input",sx:{textAlign:C?"center":"left"},children:e.jsx(z,{...q})}),!C&&e.jsx(u,{className:"form-item-action",children:j?e.jsxs(e.Fragment,{children:[e.jsx(R,{"data-cy":"schema-form-item-confirm",onClick:()=>{I(t,w,"confirm")},disabled:d||r,size:"large",children:r?e.jsx(v,{size:24}):e.jsx(A,{})}),e.jsx(R,{"data-cy":"schema-form-item-cancel",onClick:()=>{I(t,P.current,"cancel")},disabled:d||r,size:"large",children:e.jsx(G,{})})]}):e.jsx(R,{"data-cy":"schema-form-item-edit",onClick:()=>{I(t,i[m],"edit")},disabled:d||g,size:"large",children:e.jsx($,{})})})]})]},m)})})}D.propTypes={schema:o.array.isRequired,loading:o.bool,onChange:o.func.isRequired,value:o.object,defaultValue:o.object,style:o.object,disabled:o.bool};D.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const re=M(Q)``;export{D as S};
1
+ import{P as o,r as x,j as e,B as u,bm as K,bE as B,eR as W,a6 as v,ay as R,S as M,cZ as U,U as $}from"./index-uX1Y3cB6.js";import{d as A}from"./EditIcon-cvgd_m44.js";import{d as G}from"./Done-D1uUSVNM.js";import{C as H}from"./Google-_WbKPTXv.js";import{T as Y}from"./TextField-SWRSa9bn.js";import{R as Z,F as J,L as Q}from"./logo-uploader-uk95tRX_.js";const S={description:o.string,editing:o.bool,onChange:o.func,required:o.bool,value:o.any,componentProps:o.object,render:o.func,renderFormItem:o.func};function V({editing:n,value:r,onChange:s}){const[a,l]=x.useState(!1),c=x.useRef(),d=x.useRef(r);x.useEffect(()=>{let p=null;return n&&(p=setTimeout(()=>{l(!0)},50)),()=>{clearTimeout(p)}},[n]);const y=p=>{d.current=p,s(p)},g=()=>{l(!1),s(d.current)},b=e.jsx(u,{className:"form-item-input slot",px:1,children:e.jsxs(u,{display:"flex",alignItems:"center",children:[r,r!=="auto"&&e.jsx("div",{style:{marginLeft:4,backgroundColor:r,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),i=e.jsxs(u,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:g,children:[e.jsx(u,{display:"flex",alignItems:"center",onClick:()=>l(!0),children:e.jsx("div",{ref:c,style:{flexShrink:0,marginLeft:"8px",backgroundColor:r,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:r==="auto"?"default":"pointer"}})}),e.jsx(K,{open:a,anchorEl:c.current,onClose:()=>l(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(H,{color:r,onChange:p=>y(p.hex)})})]});return n?i:b}V.propTypes=S;function _({editing:n,description:r,value:s,onChange:a,componentProps:l,...c}){const{placeholder:d}=l,y=x.useRef(s),g=i=>{i.key==="Enter"&&a(y.current,"confirm")},b=i=>{y.current=i,a(i)};return n?e.jsx(Y,{style:{flex:1},fullWidth:!0,value:s,onChange:i=>{i.persist(),b(i.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:r||d,onKeyDown:g,...c}):e.jsx(u,{px:1,className:"form-item-input slot",children:s})}_.propTypes=S;_.defaultProps={componentProps:{}};function F({editing:n,value:r,onChange:s,componentProps:a,...l}){const{blocklet:c}=a,d=r==="auto"?B.getPassportColorFromDid(c.appDid):r;return e.jsxs(u,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:W({title:"Owner",issuer:v(c),issuerDid:c.appDid,ownerName:"Your Name",ownerDid:c.appDid,preferredColor:r||"auto"})}}),e.jsx(V,{...l,editing:n,value:n?d:r,onChange:s,componentProps:a})]})}F.propTypes={...S,componentProps:o.shape({blocklet:o.object.isRequired}).isRequired};F.defaultProps={};const X={input:_,color:V,passport:F,uploader:n=>e.jsx(Q,{...n.componentProps})};function ee(n,{editing:r=!1}){const{componentType:s="input",render:a,renderFormItem:l}=n;return r&&l?l:!r&&a?a:X[s==null?void 0:s.toLowerCase()]}function T({schema:n,loading:r,value:s,defaultValue:a,onChange:l,style:c,disabled:d}){const y=Object.prototype.toString.call(s)==="[object Object]",[g,b]=x.useState(null),[i,p]=x.useState(y?s:a),P=x.useRef();function I(t,m,h){const{key:f,secure:C}=t,k=i[f]!==m,j={...i,[f]:m};k&&p(j),l({[f]:m},{allValues:j,action:h,currentItem:t}),h==="confirm"&&C&&p({...i,[f]:"__encrypted__"}),["confirm","cancel"].includes(h)?E(null):E(t)}function E(t){if(t){P.current=i[t.key],b(t);return}P.current=null,b(null)}function D(t,{editing:m=!1}){const{key:h}=t,f=y?s[h]:i[h];return f==="__encrypted__"?m?"":"******":f}return e.jsx(re,{className:"form",style:c,children:n==null?void 0:n.map(t=>{const{key:m,description:h,required:f,solo:C=!1,hidden:N=!1,componentProps:k={}}=t;if(N)return null;const j=!!(g&&m===g.key),w=D(t,{editing:j}),z=ee(t,{editing:j}),q={inputProps:{"data-cy":"schema-form-item-component"},key:m,description:h,editing:j,value:w,onChange:(L,O="change")=>I(t,L,O),componentProps:k};return e.jsxs(u,{className:"form-item",children:[!C&&e.jsxs(u,{className:"form-item-label",style:{color:f&&!w?"#ff0000":"#333"},children:[h,f&&e.jsx(Z,{})]}),e.jsxs(u,{className:"form-item-body",children:[e.jsx(u,{className:"form-item-input",sx:{textAlign:C?"center":"left"},children:e.jsx(z,{...q})}),!C&&e.jsx(u,{className:"form-item-action",children:j?e.jsxs(e.Fragment,{children:[e.jsx(R,{"data-cy":"schema-form-item-confirm",onClick:()=>{I(t,w,"confirm")},disabled:d||r,size:"large",children:r?e.jsx(M,{size:24}):e.jsx(G,{})}),e.jsx(R,{"data-cy":"schema-form-item-cancel",onClick:()=>{I(t,P.current,"cancel")},disabled:d||r,size:"large",children:e.jsx(U,{})})]}):e.jsx(R,{"data-cy":"schema-form-item-edit",onClick:()=>{I(t,i[m],"edit")},disabled:d||g,size:"large",children:e.jsx(A,{})})})]})]},m)})})}T.propTypes={schema:o.array.isRequired,loading:o.bool,onChange:o.func.isRequired,value:o.object,defaultValue:o.object,style:o.object,disabled:o.bool};T.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const re=$(J)``;export{T as S};
@@ -1 +1 @@
1
- import{r as v,j as c,P as f,X as d}from"./index-Q73bL4kQ.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});var s=o.default=void 0;m(v);var n=c;function m(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(h){return Object.getOwnPropertyDescriptor(e,h).enumerable})),r.push.apply(r,a)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(a){y(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function y(e,t,r){return t=g(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=j(e,"string");return typeof t=="symbol"?t:String(t)}function j(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=function(t){return(0,n.jsxs)("svg",u(u({},t),{},{children:[(0,n.jsx)("path",{d:"M24.604 2.263L28.524 0H42.79v41.862H28.79a1 1 0 0 1-.5-.134l-15.103-8.72V8.854l1.817-1.05 3.2 1.848-1.817 1.05V31.16l12.993 7.502H39.59V3.2H29.38l-1.576.91-3.2-1.847z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.402 31.16V10.701L13.409 3.2H3.2v35.462h10.21l1.58-.913 3.2 1.847-3.923 2.266H0V0h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z"}),(0,n.jsx)("path",{d:"M138.44 27.684c.192 0 .357.075.496.224l1.344 1.472a9.584 9.584 0 0 1-3.44 2.576c-1.344.608-2.965.912-4.864.912-1.664 0-3.173-.288-4.528-.864a10.056 10.056 0 0 1-3.456-2.416c-.949-1.035-1.685-2.272-2.208-3.712-.523-1.44-.784-3.024-.784-4.752 0-1.728.272-3.312.816-4.752.555-1.44 1.328-2.677 2.32-3.712a10.444 10.444 0 0 1 3.552-2.416c1.387-.576 2.917-.864 4.592-.864 1.632 0 3.083.267 4.352.8a10.973 10.973 0 0 1 3.312 2.128l-1.12 1.584a.936.936 0 0 1-.288.288.742.742 0 0 1-.432.112c-.203 0-.443-.101-.72-.304a8.802 8.802 0 0 0-1.072-.672c-.437-.256-.981-.485-1.632-.688-.651-.203-1.461-.304-2.432-.304-1.141 0-2.187.203-3.136.608a6.885 6.885 0 0 0-2.464 1.728c-.683.747-1.216 1.67-1.6 2.768-.373 1.088-.56 2.32-.56 3.696 0 1.397.197 2.64.592 3.728.395 1.088.939 2.01 1.632 2.768a6.914 6.914 0 0 0 2.448 1.728 7.764 7.764 0 0 0 3.04.592c.661 0 1.253-.037 1.776-.112a7.843 7.843 0 0 0 1.456-.368c.448-.16.869-.363 1.264-.608a8.89 8.89 0 0 0 1.168-.912c.085-.075.176-.133.272-.176a.616.616 0 0 1 .304-.08zM149.68 16.1c1.195 0 2.272.197 3.232.592a6.54 6.54 0 0 1 2.464 1.68c.683.725 1.205 1.605 1.568 2.64.363 1.024.544 2.176.544 3.456 0 1.28-.181 2.437-.544 3.472-.363 1.035-.885 1.915-1.568 2.64a6.795 6.795 0 0 1-2.464 1.68c-.96.384-2.037.576-3.232.576-1.205 0-2.293-.192-3.264-.576a6.987 6.987 0 0 1-2.464-1.68c-.683-.725-1.211-1.605-1.584-2.64-.363-1.035-.544-2.192-.544-3.472 0-1.28.181-2.432.544-3.456.373-1.035.901-1.915 1.584-2.64a6.717 6.717 0 0 1 2.464-1.68c.971-.395 2.059-.592 3.264-.592zm0 14.304c1.536 0 2.683-.517 3.44-1.552.757-1.035 1.136-2.49 1.136-4.368 0-1.877-.379-3.333-1.136-4.368-.757-1.045-1.904-1.568-3.44-1.568-1.557 0-2.72.523-3.488 1.568-.757 1.035-1.136 2.49-1.136 4.368 0 1.877.379 3.333 1.136 4.368.768 1.035 1.931 1.552 3.488 1.552zM163.899 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.442 6.442 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448.682.299 1.253.72 1.712 1.264.458.533.805 1.179 1.04 1.936.234.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.534-.65-1.35-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.38 7.38 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM181.805 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.448 6.448 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448a4.63 4.63 0 0 1 1.712 1.264c.459.533.805 1.179 1.04 1.936.235.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.533-.65-1.349-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.396 7.396 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM207.551 22.676c0-.619-.09-1.19-.272-1.712a3.77 3.77 0 0 0-.768-1.36 3.521 3.521 0 0 0-1.248-.896c-.49-.213-1.056-.32-1.696-.32-1.312 0-2.346.379-3.104 1.136-.746.757-1.221 1.808-1.424 3.152h8.512zm2.576 7.616a6.311 6.311 0 0 1-1.328 1.168 7.926 7.926 0 0 1-1.6.784 9.664 9.664 0 0 1-1.76.448c-.597.096-1.189.144-1.776.144-1.12 0-2.16-.187-3.12-.56a7.159 7.159 0 0 1-2.48-1.664c-.693-.736-1.237-1.643-1.632-2.72-.384-1.088-.576-2.336-.576-3.744 0-1.13.176-2.181.528-3.152a7.67 7.67 0 0 1 1.504-2.56 7.064 7.064 0 0 1 2.416-1.712c.95-.416 2.016-.624 3.2-.624.992 0 1.904.165 2.736.496.843.32 1.568.79 2.176 1.408.608.619 1.083 1.381 1.424 2.288.352.907.528 1.941.528 3.104 0 .48-.053.805-.16.976-.106.16-.304.24-.592.24h-10.656c.032.97.171 1.819.416 2.544.246.715.582 1.312 1.008 1.792.438.48.955.837 1.552 1.072.598.235 1.264.352 2 .352.694 0 1.291-.08 1.792-.24.512-.16.95-.33 1.312-.512.374-.192.683-.368.928-.528.256-.16.48-.24.672-.24.256 0 .454.096.592.288l.896 1.152zM225.113 19.396a1.836 1.836 0 0 1-.288.288c-.086.064-.214.096-.384.096-.171 0-.352-.064-.544-.192a4.872 4.872 0 0 0-.704-.432 5.21 5.21 0 0 0-1.024-.432c-.395-.139-.886-.208-1.472-.208-.768 0-1.446.139-2.032.416a3.972 3.972 0 0 0-1.472 1.184c-.384.512-.678 1.136-.88 1.872-.203.736-.304 1.563-.304 2.48 0 .95.106 1.797.32 2.544.213.736.517 1.36.912 1.872.394.501.874.885 1.44 1.152a4.522 4.522 0 0 0 1.888.384c.672 0 1.226-.08 1.664-.24.437-.17.8-.352 1.088-.544.288-.192.528-.368.72-.528.192-.17.389-.256.592-.256.256 0 .453.096.592.288l.896 1.152a5.966 5.966 0 0 1-1.264 1.168c-.459.32-.95.581-1.472.784a8.34 8.34 0 0 1-1.648.448c-.566.096-1.142.144-1.728.144a7.25 7.25 0 0 1-2.848-.56 6.52 6.52 0 0 1-2.288-1.632c-.64-.715-1.147-1.59-1.52-2.624-.374-1.045-.56-2.23-.56-3.552 0-1.205.165-2.32.496-3.344.341-1.024.837-1.904 1.488-2.64a6.821 6.821 0 0 1 2.432-1.744c.96-.427 2.058-.64 3.296-.64 1.162 0 2.186.187 3.072.56a7.514 7.514 0 0 1 2.368 1.584l-.832 1.152zM234.121 32.868c-1.312 0-2.325-.368-3.04-1.104-.704-.736-1.056-1.787-1.056-3.152v-9.728h-1.888a.701.701 0 0 1-.464-.16c-.117-.117-.176-.288-.176-.512v-1.264l2.64-.368.704-4.848a.738.738 0 0 1 .24-.416.724.724 0 0 1 .48-.16h1.584v5.456h4.608v2.272h-4.608v9.52c0 .64.155 1.12.464 1.44.32.31.726.464 1.216.464.288 0 .534-.037.736-.112a3.27 3.27 0 0 0 .544-.24c.15-.096.278-.181.384-.256a.521.521 0 0 1 .288-.112c.107 0 .187.027.24.08a.694.694 0 0 1 .192.224l.928 1.504c-.512.47-1.12.832-1.824 1.088a6.362 6.362 0 0 1-2.192.384z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.815 33.284V9H70.66a6.259 6.259 0 0 1 5.823 6.243v11.783a6.258 6.258 0 0 1-6.258 6.258h-12.41zM84.56 9h-3.335v24.321h3.335V9zM61.15 29.95V12.32h9.075a2.923 2.923 0 0 1 2.923 2.923v11.783a2.923 2.923 0 0 1-2.923 2.923H61.15zM89.243 9v24.284h12.409a6.258 6.258 0 0 0 6.259-6.258V15.243A6.259 6.259 0 0 0 102.087 9H89.243zm22.912 5.636h3.728v3.728h-3.728v-3.729zm3.728 9.321h-3.728v3.729h3.728v-3.729zM92.578 12.32v17.63h9.074a2.924 2.924 0 0 0 2.924-2.924V15.243a2.924 2.924 0 0 0-2.924-2.923h-9.074z"})]}))};i.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};i.displayName="connect-logo";s=o.default=i;function p({children:e,...t}){return c.jsxs(d,{color:"did",variant:"contained",...t,children:[c.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),c.jsx(s,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}p.propTypes={children:f.any};p.defaultProps={children:""};export{p as C};
1
+ import{r as v,j as c,P as f,X as d}from"./index-uX1Y3cB6.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});var s=o.default=void 0;m(v);var n=c;function m(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(h){return Object.getOwnPropertyDescriptor(e,h).enumerable})),r.push.apply(r,a)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(a){y(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function y(e,t,r){return t=g(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=j(e,"string");return typeof t=="symbol"?t:String(t)}function j(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=function(t){return(0,n.jsxs)("svg",u(u({},t),{},{children:[(0,n.jsx)("path",{d:"M24.604 2.263L28.524 0H42.79v41.862H28.79a1 1 0 0 1-.5-.134l-15.103-8.72V8.854l1.817-1.05 3.2 1.848-1.817 1.05V31.16l12.993 7.502H39.59V3.2H29.38l-1.576.91-3.2-1.847z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.402 31.16V10.701L13.409 3.2H3.2v35.462h10.21l1.58-.913 3.2 1.847-3.923 2.266H0V0h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z"}),(0,n.jsx)("path",{d:"M138.44 27.684c.192 0 .357.075.496.224l1.344 1.472a9.584 9.584 0 0 1-3.44 2.576c-1.344.608-2.965.912-4.864.912-1.664 0-3.173-.288-4.528-.864a10.056 10.056 0 0 1-3.456-2.416c-.949-1.035-1.685-2.272-2.208-3.712-.523-1.44-.784-3.024-.784-4.752 0-1.728.272-3.312.816-4.752.555-1.44 1.328-2.677 2.32-3.712a10.444 10.444 0 0 1 3.552-2.416c1.387-.576 2.917-.864 4.592-.864 1.632 0 3.083.267 4.352.8a10.973 10.973 0 0 1 3.312 2.128l-1.12 1.584a.936.936 0 0 1-.288.288.742.742 0 0 1-.432.112c-.203 0-.443-.101-.72-.304a8.802 8.802 0 0 0-1.072-.672c-.437-.256-.981-.485-1.632-.688-.651-.203-1.461-.304-2.432-.304-1.141 0-2.187.203-3.136.608a6.885 6.885 0 0 0-2.464 1.728c-.683.747-1.216 1.67-1.6 2.768-.373 1.088-.56 2.32-.56 3.696 0 1.397.197 2.64.592 3.728.395 1.088.939 2.01 1.632 2.768a6.914 6.914 0 0 0 2.448 1.728 7.764 7.764 0 0 0 3.04.592c.661 0 1.253-.037 1.776-.112a7.843 7.843 0 0 0 1.456-.368c.448-.16.869-.363 1.264-.608a8.89 8.89 0 0 0 1.168-.912c.085-.075.176-.133.272-.176a.616.616 0 0 1 .304-.08zM149.68 16.1c1.195 0 2.272.197 3.232.592a6.54 6.54 0 0 1 2.464 1.68c.683.725 1.205 1.605 1.568 2.64.363 1.024.544 2.176.544 3.456 0 1.28-.181 2.437-.544 3.472-.363 1.035-.885 1.915-1.568 2.64a6.795 6.795 0 0 1-2.464 1.68c-.96.384-2.037.576-3.232.576-1.205 0-2.293-.192-3.264-.576a6.987 6.987 0 0 1-2.464-1.68c-.683-.725-1.211-1.605-1.584-2.64-.363-1.035-.544-2.192-.544-3.472 0-1.28.181-2.432.544-3.456.373-1.035.901-1.915 1.584-2.64a6.717 6.717 0 0 1 2.464-1.68c.971-.395 2.059-.592 3.264-.592zm0 14.304c1.536 0 2.683-.517 3.44-1.552.757-1.035 1.136-2.49 1.136-4.368 0-1.877-.379-3.333-1.136-4.368-.757-1.045-1.904-1.568-3.44-1.568-1.557 0-2.72.523-3.488 1.568-.757 1.035-1.136 2.49-1.136 4.368 0 1.877.379 3.333 1.136 4.368.768 1.035 1.931 1.552 3.488 1.552zM163.899 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.442 6.442 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448.682.299 1.253.72 1.712 1.264.458.533.805 1.179 1.04 1.936.234.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.534-.65-1.35-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.38 7.38 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM181.805 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.448 6.448 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448a4.63 4.63 0 0 1 1.712 1.264c.459.533.805 1.179 1.04 1.936.235.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.533-.65-1.349-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.396 7.396 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM207.551 22.676c0-.619-.09-1.19-.272-1.712a3.77 3.77 0 0 0-.768-1.36 3.521 3.521 0 0 0-1.248-.896c-.49-.213-1.056-.32-1.696-.32-1.312 0-2.346.379-3.104 1.136-.746.757-1.221 1.808-1.424 3.152h8.512zm2.576 7.616a6.311 6.311 0 0 1-1.328 1.168 7.926 7.926 0 0 1-1.6.784 9.664 9.664 0 0 1-1.76.448c-.597.096-1.189.144-1.776.144-1.12 0-2.16-.187-3.12-.56a7.159 7.159 0 0 1-2.48-1.664c-.693-.736-1.237-1.643-1.632-2.72-.384-1.088-.576-2.336-.576-3.744 0-1.13.176-2.181.528-3.152a7.67 7.67 0 0 1 1.504-2.56 7.064 7.064 0 0 1 2.416-1.712c.95-.416 2.016-.624 3.2-.624.992 0 1.904.165 2.736.496.843.32 1.568.79 2.176 1.408.608.619 1.083 1.381 1.424 2.288.352.907.528 1.941.528 3.104 0 .48-.053.805-.16.976-.106.16-.304.24-.592.24h-10.656c.032.97.171 1.819.416 2.544.246.715.582 1.312 1.008 1.792.438.48.955.837 1.552 1.072.598.235 1.264.352 2 .352.694 0 1.291-.08 1.792-.24.512-.16.95-.33 1.312-.512.374-.192.683-.368.928-.528.256-.16.48-.24.672-.24.256 0 .454.096.592.288l.896 1.152zM225.113 19.396a1.836 1.836 0 0 1-.288.288c-.086.064-.214.096-.384.096-.171 0-.352-.064-.544-.192a4.872 4.872 0 0 0-.704-.432 5.21 5.21 0 0 0-1.024-.432c-.395-.139-.886-.208-1.472-.208-.768 0-1.446.139-2.032.416a3.972 3.972 0 0 0-1.472 1.184c-.384.512-.678 1.136-.88 1.872-.203.736-.304 1.563-.304 2.48 0 .95.106 1.797.32 2.544.213.736.517 1.36.912 1.872.394.501.874.885 1.44 1.152a4.522 4.522 0 0 0 1.888.384c.672 0 1.226-.08 1.664-.24.437-.17.8-.352 1.088-.544.288-.192.528-.368.72-.528.192-.17.389-.256.592-.256.256 0 .453.096.592.288l.896 1.152a5.966 5.966 0 0 1-1.264 1.168c-.459.32-.95.581-1.472.784a8.34 8.34 0 0 1-1.648.448c-.566.096-1.142.144-1.728.144a7.25 7.25 0 0 1-2.848-.56 6.52 6.52 0 0 1-2.288-1.632c-.64-.715-1.147-1.59-1.52-2.624-.374-1.045-.56-2.23-.56-3.552 0-1.205.165-2.32.496-3.344.341-1.024.837-1.904 1.488-2.64a6.821 6.821 0 0 1 2.432-1.744c.96-.427 2.058-.64 3.296-.64 1.162 0 2.186.187 3.072.56a7.514 7.514 0 0 1 2.368 1.584l-.832 1.152zM234.121 32.868c-1.312 0-2.325-.368-3.04-1.104-.704-.736-1.056-1.787-1.056-3.152v-9.728h-1.888a.701.701 0 0 1-.464-.16c-.117-.117-.176-.288-.176-.512v-1.264l2.64-.368.704-4.848a.738.738 0 0 1 .24-.416.724.724 0 0 1 .48-.16h1.584v5.456h4.608v2.272h-4.608v9.52c0 .64.155 1.12.464 1.44.32.31.726.464 1.216.464.288 0 .534-.037.736-.112a3.27 3.27 0 0 0 .544-.24c.15-.096.278-.181.384-.256a.521.521 0 0 1 .288-.112c.107 0 .187.027.24.08a.694.694 0 0 1 .192.224l.928 1.504c-.512.47-1.12.832-1.824 1.088a6.362 6.362 0 0 1-2.192.384z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.815 33.284V9H70.66a6.259 6.259 0 0 1 5.823 6.243v11.783a6.258 6.258 0 0 1-6.258 6.258h-12.41zM84.56 9h-3.335v24.321h3.335V9zM61.15 29.95V12.32h9.075a2.923 2.923 0 0 1 2.923 2.923v11.783a2.923 2.923 0 0 1-2.923 2.923H61.15zM89.243 9v24.284h12.409a6.258 6.258 0 0 0 6.259-6.258V15.243A6.259 6.259 0 0 0 102.087 9H89.243zm22.912 5.636h3.728v3.728h-3.728v-3.729zm3.728 9.321h-3.728v3.729h3.728v-3.729zM92.578 12.32v17.63h9.074a2.924 2.924 0 0 0 2.924-2.924V15.243a2.924 2.924 0 0 0-2.924-2.923h-9.074z"})]}))};i.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};i.displayName="connect-logo";s=o.default=i;function p({children:e,...t}){return c.jsxs(d,{color:"did",variant:"contained",...t,children:[c.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),c.jsx(s,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}p.propTypes={children:f.any};p.defaultProps={children:""};export{p as C};
@@ -1,4 +1,4 @@
1
- import{bT as e,P as o,r as u,j as p,bU as b,bV as h,bp as x,T as w}from"./index-Q73bL4kQ.js";const c={error:{color:e.common.white,backgroundColor:e.error.main},warning:{color:e.common.white,backgroundColor:e.warning.main},success:{color:e.common.white,backgroundColor:e.success.main},primary:{color:e.common.white,backgroundColor:e.primary.main},reverse:{color:"#fff",backgroundColor:"#222"}};function s(n){const t=h(n,s,["style"]),{type:r,content:l,children:m,style:y,className:g,forwardedRef:d,...f}=t,{palette:a}=x(),i=Object.assign({},c[r]||c.primary,y);return a[r]&&Object.assign(i,{color:a[r].contrastText||e.common.white,backgroundColor:a[r].main}),p.jsx(j,{ref:d,component:"span",className:g,style:i,...f,children:l||m})}s.propTypes={children:o.any.isRequired,type:o.oneOf(Object.keys(c)),content:o.string,className:o.string,style:o.oneOfType([o.object,o.string])};s.defaultProps={type:"primary",content:"",className:"",style:{}};const T=u.forwardRef((n,t)=>p.jsx(s,{...n,forwardedRef:t})),C=T,j=b(w)`
1
+ import{bR as e,P as o,r as u,j as p,bS as b,bT as h,bn as x,T as w}from"./index-uX1Y3cB6.js";const c={error:{color:e.common.white,backgroundColor:e.error.main},warning:{color:e.common.white,backgroundColor:e.warning.main},success:{color:e.common.white,backgroundColor:e.success.main},primary:{color:e.common.white,backgroundColor:e.primary.main},reverse:{color:"#fff",backgroundColor:"#222"}};function s(n){const t=h(n,s,["style"]),{type:r,content:l,children:m,style:y,className:g,forwardedRef:d,...f}=t,{palette:a}=x(),i=Object.assign({},c[r]||c.primary,y);return a[r]&&Object.assign(i,{color:a[r].contrastText||e.common.white,backgroundColor:a[r].main}),p.jsx(j,{ref:d,component:"span",className:g,style:i,...f,children:l||m})}s.propTypes={children:o.any.isRequired,type:o.oneOf(Object.keys(c)),content:o.string,className:o.string,style:o.oneOfType([o.object,o.string])};s.defaultProps={type:"primary",content:"",className:"",style:{}};const T=u.forwardRef((n,t)=>p.jsx(s,{...n,forwardedRef:t})),C=T,j=b(w)`
2
2
  && {
3
3
  display: inline-flex;
4
4
  justify-content: center;
@@ -1 +1 @@
1
- import{aU as y}from"./index-Q73bL4kQ.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var a=this._errors[r],o=a.message,n=(e[o]||0)+1;e[o]=n,n>=t&&(i=a,t=n)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var a in t)r[a]=t[a];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],n=0;n<r.retries;n++)o.push(this.createTimeout(n,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(n,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var a=r.randomize?Math.random()+1:1,o=Math.round(a*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,a){if(r instanceof Array&&(a=r,r=null),!a){a=[];for(var o in t)typeof t[o]=="function"&&a.push(o)}for(var n=0;n<a.length;n++){var s=a[n],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
1
+ import{aU as y}from"./index-uX1Y3cB6.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var a=this._errors[r],o=a.message,n=(e[o]||0)+1;e[o]=n,n>=t&&(i=a,t=n)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var a in t)r[a]=t[a];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],n=0;n<r.retries;n++)o.push(this.createTimeout(n,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(n,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var a=r.randomize?Math.random()+1:1,o=Math.round(a*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,a){if(r instanceof Array&&(a=r,r=null),!a){a=[];for(var o in t)typeof t[o]=="function"&&a.push(o)}for(var n=0;n<a.length;n++){var s=a[n],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
@@ -1,9 +1,9 @@
1
- import{aA as _e,aB as Ae,r as b,aC as Oe,cr as rt,aD as ie,aF as M,cq as oe,aE as xe,fJ as ot,aJ as Me,j as e,aH as We,aI as Ee,aU as Ge,aZ as N,u as q,T as K,ap as H,X as k,S as W,P as S,U,br as J,bQ as Q,fK as qe,ay as O,o as z,a_ as nt,bG as at,B as T,eU as it,a4 as lt,a6 as ct,Q as dt,R as ut,x as He,b4 as Ue,bJ as ve,b7 as se,fL as pt,fM as ft,a as he,V as mt,a0 as ht}from"./index-Q73bL4kQ.js";import{d as je}from"./Add-6Epcd3ga.js";import{S as ne}from"./index-8r-VQqt2.js";import{d as le}from"./EditIcon-uFacruuw.js";import{d as gt}from"./LockIcon-RapfU2xd.js";import{L as Ce,S as be,d as xt}from"./list-header-2fZA__Ld.js";import{u as ee}from"./dashboard-m0_f98IA.js";import{w as E,P as $e}from"./permission-9nzt-q4b.js";import{C as Te}from"./confirm-BdVzKoyv.js";import{D as yt,A as vt,f as te}from"./index-gz1sTrh1.js";import{T as _,F as jt}from"./TextField-zBuNVnb8.js";import{F as Ct,C as bt}from"./FormControlLabel-qsKowZCH.js";import{C as Tt}from"./Google-8LJLh9Kk.js";import{W as Ve}from"./did-address-E0zTjER8.js";import{T as Bt}from"./index-KS6_MsHI.js";import{_ as St}from"./useSetState-Zqz3mRV-.js";import{M as wt}from"./InputAdornment-GgFKxUBs.js";import{I as Pt}from"./InputLabel-17wQImkZ.js";import{g as Ft}from"./ButtonGroup-d9hIu1lo.js";import{O as It}from"./Select-M3S6C0yl.js";import"./ExpandMore-OfaPyHFu.js";import"./Search-UmwZ55Km.js";import"./MoreVert-jKyVzYn5.js";import"./useLocalStorage-4f-61B8p.js";import"./Delete-qtfdnw9L.js";import"./PlayArrow-fGfeCJ-G.js";import"./Alert-l-TBUZOJ.js";import"./useSlot-BhQ4Lfcp.js";import"./ListItemText--ZuBk1kp.js";import"./RadioGroup-lfBNZfIY.js";import"./FormGroup-T1QpJsQV.js";import"./useFormControl-jdgDLs6W.js";import"./Avatar-cxKY3Rtk.js";import"./session-qul76cK0.js";import"./spaces-PUl6VuEw.js";import"./index-jbkwSTiK.js";import"./index-d-Rw6UM2.js";import"./api-JSGQgEYG.js";import"./Link-41pb7UbS.js";import"./fallback-WLwa7Jex.js";import"./index-fhGcwyej.js";import"./index-Scf2aR55.js";import"./Toolbar-AykKd5Yb.js";import"./Hidden-TBO3Yr4z.js";import"./MoreHoriz-TWznoE3n.js";import"./ListItem-Ny9BoTNl.js";import"./selector-MKIYf6Up.js";import"./useAsync-WzK7ZSwT.js";import"./FormControl-h5DYMIOP.js";function Rt(t){return Ae("MuiToggleButton",t)}const $t=_e("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),V=$t,Dt=b.createContext({}),Ke=Dt,kt=b.createContext(void 0),Je=kt;function zt(t,r){return r===void 0||t===void 0?!1:Array.isArray(r)?r.indexOf(t)>=0:t===r}const Lt=["value"],Nt=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],_t=t=>{const{classes:r,fullWidth:l,selected:d,disabled:f,size:u,color:h}=t,s={root:["root",d&&"selected",f&&"disabled",l&&"fullWidth",`size${ie(u)}`,h]};return Ee(s,Rt,r)},At=Oe(rt,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[r.root,r[`size${ie(l.size)}`]]}})(({theme:t,ownerState:r})=>{let l=r.color==="standard"?t.palette.text.primary:t.palette[r.color].main,d;return t.vars&&(l=r.color==="standard"?t.vars.palette.text.primary:t.vars.palette[r.color].main,d=r.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[r.color].mainChannel),M({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},r.fullWidth&&{width:"100%"},{[`&.${V.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:oe(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V.selected}`]:{color:l,backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${d} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:oe(l,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity)}}}},r.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},r.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),Ot=b.forwardRef(function(r,l){const d=b.useContext(Ke),{value:f}=d,u=xe(d,Lt),h=b.useContext(Je),s=ot(M({},u,{selected:zt(r.value,f)}),r),p=Me({props:s,name:"MuiToggleButton"}),{children:o,className:a,color:i="standard",disabled:n=!1,disableFocusRipple:c=!1,fullWidth:v=!1,onChange:x,onClick:m,selected:j,size:g="medium",value:C}=p,y=xe(p,Nt),B=M({},p,{color:i,disabled:n,disableFocusRipple:c,fullWidth:v,size:g}),P=_t(B),R=$=>{m&&(m($,C),$.defaultPrevented)||x&&x($,C)},F=h||"";return e.jsx(At,M({className:We(u.className,P.root,a,F),disabled:n,focusRipple:!c,ref:l,onClick:R,onChange:x,value:C,ownerState:B,"aria-pressed":j},y,{children:o}))}),ge=Ot;function Mt(t){return Ae("MuiToggleButtonGroup",t)}const Wt=_e("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),w=Wt,Et=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Gt=t=>{const{classes:r,orientation:l,fullWidth:d,disabled:f}=t,u={root:["root",l==="vertical"&&"vertical",d&&"fullWidth"],grouped:["grouped",`grouped${ie(l)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ee(u,Mt,r)},qt=Oe("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[{[`& .${w.grouped}`]:r.grouped},{[`& .${w.grouped}`]:r[`grouped${ie(l.orientation)}`]},{[`& .${w.firstButton}`]:r.firstButton},{[`& .${w.lastButton}`]:r.lastButton},{[`& .${w.middleButton}`]:r.middleButton},r.root,l.orientation==="vertical"&&r.vertical,l.fullWidth&&r.fullWidth]}})(({ownerState:t,theme:r})=>M({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${w.grouped}`]:M({},t.orientation==="horizontal"?{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${w.firstButton},& .${w.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${w.firstButton},& .${w.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderTop:"1px solid transparent"}})),Ht=b.forwardRef(function(r,l){const d=Me({props:r,name:"MuiToggleButtonGroup"}),{children:f,className:u,color:h="standard",disabled:s=!1,exclusive:p=!1,fullWidth:o=!1,onChange:a,orientation:i="horizontal",size:n="medium",value:c}=d,v=xe(d,Et),x=M({},d,{disabled:s,fullWidth:o,orientation:i,size:n}),m=Gt(x),j=b.useCallback((R,F)=>{if(!a)return;const $=c&&c.indexOf(F);let A;c&&$>=0?(A=c.slice(),A.splice($,1)):A=c?c.concat(F):[F],a(R,A)},[a,c]),g=b.useCallback((R,F)=>{a&&a(R,c===F?null:F)},[a,c]),C=b.useMemo(()=>({className:m.grouped,onChange:p?g:j,value:c,size:n,fullWidth:o,color:h,disabled:s}),[m.grouped,p,g,j,c,n,o,h,s]),y=Ft(f),B=y.length,P=R=>{const F=R===0,$=R===B-1;return F&&$?"":F?m.firstButton:$?m.lastButton:m.middleButton};return e.jsx(qt,M({role:"group",className:We(m.root,u),ref:l,ownerState:x},v,{children:e.jsx(Ke.Provider,{value:C,children:y.map((R,F)=>e.jsx(Je.Provider,{value:P(F),children:R},F))})}))}),Ut=Ht;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});var re=Be.default=void 0;Vt(b);var De=e;function Vt(t){return t&&t.__esModule?t:{default:t}}function ke(t,r){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);r&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),l.push.apply(l,d)}return l}function ze(t){for(var r=1;r<arguments.length;r++){var l=arguments[r]!=null?arguments[r]:{};r%2?ke(Object(l),!0).forEach(function(d){Kt(t,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):ke(Object(l)).forEach(function(d){Object.defineProperty(t,d,Object.getOwnPropertyDescriptor(l,d))})}return t}function Kt(t,r,l){return r=Jt(r),r in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t}function Jt(t){var r=Qt(t,"string");return typeof r=="symbol"?r:String(r)}function Qt(t,r){if(typeof t!="object"||!t)return t;var l=t[Symbol.toPrimitive];if(l!==void 0){var d=l.call(t,r||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Se=function(r){return(0,De.jsx)("svg",ze(ze({},r),{},{children:(0,De.jsx)("path",{d:"M8.438 4.313H8.25a.188.188 0 0 0 .188-.188v.188h7.124v-.188c0 .103.085.188.188.188h-.188V6h1.688V4.125c0-.827-.673-1.5-1.5-1.5h-7.5c-.827 0-1.5.673-1.5 1.5V6h1.688V4.312zM20.25 6H3.75a.75.75 0 0 0-.75.75v.75c0 .103.084.188.188.188h1.415l.579 12.257c.038.8.698 1.43 1.498 1.43h10.64c.802 0 1.46-.628 1.498-1.43l.579-12.258h1.416A.188.188 0 0 0 21 7.5v-.75a.75.75 0 0 0-.75-.75zm-3.11 13.688H6.86l-.567-12h11.414l-.567 12z"})}))};Se.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};Se.displayName="delete";re=Be.default=Se;var Qe={exports:{}},Ye={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(l,d){return l<<d|l>>>32-d},rotr:function(l,d){return l<<32-d|l>>>d},endian:function(l){if(l.constructor==Number)return r.rotl(l,8)&16711935|r.rotl(l,24)&4278255360;for(var d=0;d<l.length;d++)l[d]=r.endian(l[d]);return l},randomBytes:function(l){for(var d=[];l>0;l--)d.push(Math.floor(Math.random()*256));return d},bytesToWords:function(l){for(var d=[],f=0,u=0;f<l.length;f++,u+=8)d[u>>>5]|=l[f]<<24-u%32;return d},wordsToBytes:function(l){for(var d=[],f=0;f<l.length*32;f+=8)d.push(l[f>>>5]>>>24-f%32&255);return d},bytesToHex:function(l){for(var d=[],f=0;f<l.length;f++)d.push((l[f]>>>4).toString(16)),d.push((l[f]&15).toString(16));return d.join("")},hexToBytes:function(l){for(var d=[],f=0;f<l.length;f+=2)d.push(parseInt(l.substr(f,2),16));return d},bytesToBase64:function(l){for(var d=[],f=0;f<l.length;f+=3)for(var u=l[f]<<16|l[f+1]<<8|l[f+2],h=0;h<4;h++)f*8+h*6<=l.length*8?d.push(t.charAt(u>>>6*(3-h)&63)):d.push("=");return d.join("")},base64ToBytes:function(l){l=l.replace(/[^A-Z0-9+\/]/ig,"");for(var d=[],f=0,u=0;f<l.length;u=++f%4)u!=0&&d.push((t.indexOf(l.charAt(f-1))&Math.pow(2,-2*u+8)-1)<<u*2|t.indexOf(l.charAt(f))>>>6-u*2);return d}};Ye.exports=r})();var Yt=Ye.exports,ye={utf8:{stringToBytes:function(t){return ye.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(ye.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],l=0;l<t.length;l++)r.push(t.charCodeAt(l)&255);return r},bytesToString:function(t){for(var r=[],l=0;l<t.length;l++)r.push(String.fromCharCode(t[l]));return r.join("")}}},Le=ye;/*!
1
+ import{aA as _e,aB as Ae,r as b,aC as Oe,cp as rt,aD as ie,aF as M,co as oe,aE as xe,fG as ot,aJ as Me,j as e,aH as We,aI as Ee,aU as Ge,aZ as L,u as H,T as K,ap as q,X as k,S as W,P as S,U,bp as J,bO as Y,fH as He,ay as O,o as z,b9 as nt,bE as at,B as T,eR as it,a6 as lt,a8 as ct,Q as dt,R as ut,x as qe,b3 as Ue,bH as ve,b6 as se,fI as pt,fJ as ft,a as he,V as mt,a2 as ht}from"./index-uX1Y3cB6.js";import{d as je}from"./Add-Lnt-pXSV.js";import{S as ne}from"./index-hv-D03lE.js";import{d as le}from"./EditIcon-cvgd_m44.js";import{d as gt}from"./LockIcon-2zHVOoE1.js";import{L as Ce,S as be,d as xt}from"./list-header-GnEXUyH5.js";import{u as ee}from"./dashboard-x0ZekfKq.js";import{w as E,P as $e}from"./permission-SllzgDua.js";import{C as Te}from"./confirm-1dWhCOej.js";import{D as yt,A as vt,f as te}from"./index-oBwF2Hxy.js";import{T as _,F as jt}from"./TextField-SWRSa9bn.js";import{F as Ct,C as bt}from"./FormControlLabel-AR3EqP1P.js";import{C as Tt}from"./Google-_WbKPTXv.js";import{W as Ve}from"./did-address-k04yv_z0.js";import{T as Bt}from"./index-NSCjO0de.js";import{_ as St}from"./useSetState-PcL2uKmD.js";import{M as wt}from"./InputAdornment-4szKt1KV.js";import{I as Pt}from"./InputLabel-7f_i2Q81.js";import{g as Ft}from"./ButtonGroup-aIe1r9So.js";import{O as It}from"./Select-fntejhyc.js";import"./ExpandMore-svMob0Kw.js";import"./Search--I4-eR9y.js";import"./MoreVert-DV2yTYFA.js";import"./useLocalStorage-GnZ8ygVs.js";import"./Delete-jR0U5oQM.js";import"./PlayArrow-41TArfDK.js";import"./Alert-XtZ4AbSm.js";import"./useSlot-FhKMtbcE.js";import"./ListItemText-mWv8kaZK.js";import"./RadioGroup-y8SDAxbB.js";import"./FormGroup-ea0l38T_.js";import"./useFormControl-_t-2NjZI.js";import"./Avatar-GOdToP4j.js";import"./session-BYfUMbJk.js";import"./spaces-J1r769JG.js";import"./index-oWwT-DlR.js";import"./index-d-Rw6UM2.js";import"./api-S4_PC961.js";import"./Link-fP3C6sYJ.js";import"./fallback-Eayu19Kp.js";import"./index-_a5LvPR1.js";import"./Toolbar-t4f5PZ_M.js";import"./Hidden-z8Sjsln3.js";import"./MoreHoriz-o30dgPK5.js";import"./index-uyclj_A0.js";import"./ListItem-VO4irUhp.js";import"./selector-DTL7zNX_.js";import"./useAsync-5uJxDS-U.js";import"./FormControl-0hlUZfjP.js";function Rt(t){return Ae("MuiToggleButton",t)}const $t=_e("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),V=$t,Dt=b.createContext({}),Ke=Dt,kt=b.createContext(void 0),Je=kt;function zt(t,r){return r===void 0||t===void 0?!1:Array.isArray(r)?r.indexOf(t)>=0:t===r}const Nt=["value"],Lt=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],_t=t=>{const{classes:r,fullWidth:l,selected:d,disabled:f,size:u,color:h}=t,s={root:["root",d&&"selected",f&&"disabled",l&&"fullWidth",`size${ie(u)}`,h]};return Ee(s,Rt,r)},At=Oe(rt,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[r.root,r[`size${ie(l.size)}`]]}})(({theme:t,ownerState:r})=>{let l=r.color==="standard"?t.palette.text.primary:t.palette[r.color].main,d;return t.vars&&(l=r.color==="standard"?t.vars.palette.text.primary:t.vars.palette[r.color].main,d=r.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[r.color].mainChannel),M({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},r.fullWidth&&{width:"100%"},{[`&.${V.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:oe(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V.selected}`]:{color:l,backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${d} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:oe(l,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity)}}}},r.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},r.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),Ot=b.forwardRef(function(r,l){const d=b.useContext(Ke),{value:f}=d,u=xe(d,Nt),h=b.useContext(Je),s=ot(M({},u,{selected:zt(r.value,f)}),r),p=Me({props:s,name:"MuiToggleButton"}),{children:o,className:a,color:i="standard",disabled:n=!1,disableFocusRipple:c=!1,fullWidth:v=!1,onChange:x,onClick:m,selected:j,size:g="medium",value:C}=p,y=xe(p,Lt),B=M({},p,{color:i,disabled:n,disableFocusRipple:c,fullWidth:v,size:g}),P=_t(B),R=$=>{m&&(m($,C),$.defaultPrevented)||x&&x($,C)},F=h||"";return e.jsx(At,M({className:We(u.className,P.root,a,F),disabled:n,focusRipple:!c,ref:l,onClick:R,onChange:x,value:C,ownerState:B,"aria-pressed":j},y,{children:o}))}),ge=Ot;function Mt(t){return Ae("MuiToggleButtonGroup",t)}const Wt=_e("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),w=Wt,Et=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Gt=t=>{const{classes:r,orientation:l,fullWidth:d,disabled:f}=t,u={root:["root",l==="vertical"&&"vertical",d&&"fullWidth"],grouped:["grouped",`grouped${ie(l)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ee(u,Mt,r)},Ht=Oe("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[{[`& .${w.grouped}`]:r.grouped},{[`& .${w.grouped}`]:r[`grouped${ie(l.orientation)}`]},{[`& .${w.firstButton}`]:r.firstButton},{[`& .${w.lastButton}`]:r.lastButton},{[`& .${w.middleButton}`]:r.middleButton},r.root,l.orientation==="vertical"&&r.vertical,l.fullWidth&&r.fullWidth]}})(({ownerState:t,theme:r})=>M({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${w.grouped}`]:M({},t.orientation==="horizontal"?{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${w.firstButton},& .${w.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${w.firstButton},& .${w.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderTop:"1px solid transparent"}})),qt=b.forwardRef(function(r,l){const d=Me({props:r,name:"MuiToggleButtonGroup"}),{children:f,className:u,color:h="standard",disabled:s=!1,exclusive:p=!1,fullWidth:o=!1,onChange:a,orientation:i="horizontal",size:n="medium",value:c}=d,v=xe(d,Et),x=M({},d,{disabled:s,fullWidth:o,orientation:i,size:n}),m=Gt(x),j=b.useCallback((R,F)=>{if(!a)return;const $=c&&c.indexOf(F);let A;c&&$>=0?(A=c.slice(),A.splice($,1)):A=c?c.concat(F):[F],a(R,A)},[a,c]),g=b.useCallback((R,F)=>{a&&a(R,c===F?null:F)},[a,c]),C=b.useMemo(()=>({className:m.grouped,onChange:p?g:j,value:c,size:n,fullWidth:o,color:h,disabled:s}),[m.grouped,p,g,j,c,n,o,h,s]),y=Ft(f),B=y.length,P=R=>{const F=R===0,$=R===B-1;return F&&$?"":F?m.firstButton:$?m.lastButton:m.middleButton};return e.jsx(Ht,M({role:"group",className:We(m.root,u),ref:l,ownerState:x},v,{children:e.jsx(Ke.Provider,{value:C,children:y.map((R,F)=>e.jsx(Je.Provider,{value:P(F),children:R},F))})}))}),Ut=qt;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});var re=Be.default=void 0;Vt(b);var De=e;function Vt(t){return t&&t.__esModule?t:{default:t}}function ke(t,r){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);r&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),l.push.apply(l,d)}return l}function ze(t){for(var r=1;r<arguments.length;r++){var l=arguments[r]!=null?arguments[r]:{};r%2?ke(Object(l),!0).forEach(function(d){Kt(t,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):ke(Object(l)).forEach(function(d){Object.defineProperty(t,d,Object.getOwnPropertyDescriptor(l,d))})}return t}function Kt(t,r,l){return r=Jt(r),r in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t}function Jt(t){var r=Yt(t,"string");return typeof r=="symbol"?r:String(r)}function Yt(t,r){if(typeof t!="object"||!t)return t;var l=t[Symbol.toPrimitive];if(l!==void 0){var d=l.call(t,r||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Se=function(r){return(0,De.jsx)("svg",ze(ze({},r),{},{children:(0,De.jsx)("path",{d:"M8.438 4.313H8.25a.188.188 0 0 0 .188-.188v.188h7.124v-.188c0 .103.085.188.188.188h-.188V6h1.688V4.125c0-.827-.673-1.5-1.5-1.5h-7.5c-.827 0-1.5.673-1.5 1.5V6h1.688V4.312zM20.25 6H3.75a.75.75 0 0 0-.75.75v.75c0 .103.084.188.188.188h1.415l.579 12.257c.038.8.698 1.43 1.498 1.43h10.64c.802 0 1.46-.628 1.498-1.43l.579-12.258h1.416A.188.188 0 0 0 21 7.5v-.75a.75.75 0 0 0-.75-.75zm-3.11 13.688H6.86l-.567-12h11.414l-.567 12z"})}))};Se.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};Se.displayName="delete";re=Be.default=Se;var Ye={exports:{}},Qe={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(l,d){return l<<d|l>>>32-d},rotr:function(l,d){return l<<32-d|l>>>d},endian:function(l){if(l.constructor==Number)return r.rotl(l,8)&16711935|r.rotl(l,24)&4278255360;for(var d=0;d<l.length;d++)l[d]=r.endian(l[d]);return l},randomBytes:function(l){for(var d=[];l>0;l--)d.push(Math.floor(Math.random()*256));return d},bytesToWords:function(l){for(var d=[],f=0,u=0;f<l.length;f++,u+=8)d[u>>>5]|=l[f]<<24-u%32;return d},wordsToBytes:function(l){for(var d=[],f=0;f<l.length*32;f+=8)d.push(l[f>>>5]>>>24-f%32&255);return d},bytesToHex:function(l){for(var d=[],f=0;f<l.length;f++)d.push((l[f]>>>4).toString(16)),d.push((l[f]&15).toString(16));return d.join("")},hexToBytes:function(l){for(var d=[],f=0;f<l.length;f+=2)d.push(parseInt(l.substr(f,2),16));return d},bytesToBase64:function(l){for(var d=[],f=0;f<l.length;f+=3)for(var u=l[f]<<16|l[f+1]<<8|l[f+2],h=0;h<4;h++)f*8+h*6<=l.length*8?d.push(t.charAt(u>>>6*(3-h)&63)):d.push("=");return d.join("")},base64ToBytes:function(l){l=l.replace(/[^A-Z0-9+\/]/ig,"");for(var d=[],f=0,u=0;f<l.length;u=++f%4)u!=0&&d.push((t.indexOf(l.charAt(f-1))&Math.pow(2,-2*u+8)-1)<<u*2|t.indexOf(l.charAt(f))>>>6-u*2);return d}};Qe.exports=r})();var Qt=Qe.exports,ye={utf8:{stringToBytes:function(t){return ye.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(ye.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],l=0;l<t.length;l++)r.push(t.charCodeAt(l)&255);return r},bytesToString:function(t){for(var r=[],l=0;l<t.length;l++)r.push(String.fromCharCode(t[l]));return r.join("")}}},Ne=ye;/*!
2
2
  * Determine if an object is a Buffer
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
5
5
  * @license MIT
6
- */var Zt=function(t){return t!=null&&(Ze(t)||Xt(t)||!!t._isBuffer)};function Ze(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Xt(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&Ze(t.slice(0,0))}(function(){var t=Yt,r=Le.utf8,l=Zt,d=Le.bin,f=function(u,h){u.constructor==String?h&&h.encoding==="binary"?u=d.stringToBytes(u):u=r.stringToBytes(u):l(u)?u=Array.prototype.slice.call(u,0):!Array.isArray(u)&&u.constructor!==Uint8Array&&(u=u.toString());for(var s=t.bytesToWords(u),p=u.length*8,o=1732584193,a=-271733879,i=-1732584194,n=271733878,c=0;c<s.length;c++)s[c]=(s[c]<<8|s[c]>>>24)&16711935|(s[c]<<24|s[c]>>>8)&4278255360;s[p>>>5]|=128<<p%32,s[(p+64>>>9<<4)+14]=p;for(var v=f._ff,x=f._gg,m=f._hh,j=f._ii,c=0;c<s.length;c+=16){var g=o,C=a,y=i,B=n;o=v(o,a,i,n,s[c+0],7,-680876936),n=v(n,o,a,i,s[c+1],12,-389564586),i=v(i,n,o,a,s[c+2],17,606105819),a=v(a,i,n,o,s[c+3],22,-1044525330),o=v(o,a,i,n,s[c+4],7,-176418897),n=v(n,o,a,i,s[c+5],12,1200080426),i=v(i,n,o,a,s[c+6],17,-1473231341),a=v(a,i,n,o,s[c+7],22,-45705983),o=v(o,a,i,n,s[c+8],7,1770035416),n=v(n,o,a,i,s[c+9],12,-1958414417),i=v(i,n,o,a,s[c+10],17,-42063),a=v(a,i,n,o,s[c+11],22,-1990404162),o=v(o,a,i,n,s[c+12],7,1804603682),n=v(n,o,a,i,s[c+13],12,-40341101),i=v(i,n,o,a,s[c+14],17,-1502002290),a=v(a,i,n,o,s[c+15],22,1236535329),o=x(o,a,i,n,s[c+1],5,-165796510),n=x(n,o,a,i,s[c+6],9,-1069501632),i=x(i,n,o,a,s[c+11],14,643717713),a=x(a,i,n,o,s[c+0],20,-373897302),o=x(o,a,i,n,s[c+5],5,-701558691),n=x(n,o,a,i,s[c+10],9,38016083),i=x(i,n,o,a,s[c+15],14,-660478335),a=x(a,i,n,o,s[c+4],20,-405537848),o=x(o,a,i,n,s[c+9],5,568446438),n=x(n,o,a,i,s[c+14],9,-1019803690),i=x(i,n,o,a,s[c+3],14,-187363961),a=x(a,i,n,o,s[c+8],20,1163531501),o=x(o,a,i,n,s[c+13],5,-1444681467),n=x(n,o,a,i,s[c+2],9,-51403784),i=x(i,n,o,a,s[c+7],14,1735328473),a=x(a,i,n,o,s[c+12],20,-1926607734),o=m(o,a,i,n,s[c+5],4,-378558),n=m(n,o,a,i,s[c+8],11,-2022574463),i=m(i,n,o,a,s[c+11],16,1839030562),a=m(a,i,n,o,s[c+14],23,-35309556),o=m(o,a,i,n,s[c+1],4,-1530992060),n=m(n,o,a,i,s[c+4],11,1272893353),i=m(i,n,o,a,s[c+7],16,-155497632),a=m(a,i,n,o,s[c+10],23,-1094730640),o=m(o,a,i,n,s[c+13],4,681279174),n=m(n,o,a,i,s[c+0],11,-358537222),i=m(i,n,o,a,s[c+3],16,-722521979),a=m(a,i,n,o,s[c+6],23,76029189),o=m(o,a,i,n,s[c+9],4,-640364487),n=m(n,o,a,i,s[c+12],11,-421815835),i=m(i,n,o,a,s[c+15],16,530742520),a=m(a,i,n,o,s[c+2],23,-995338651),o=j(o,a,i,n,s[c+0],6,-198630844),n=j(n,o,a,i,s[c+7],10,1126891415),i=j(i,n,o,a,s[c+14],15,-1416354905),a=j(a,i,n,o,s[c+5],21,-57434055),o=j(o,a,i,n,s[c+12],6,1700485571),n=j(n,o,a,i,s[c+3],10,-1894986606),i=j(i,n,o,a,s[c+10],15,-1051523),a=j(a,i,n,o,s[c+1],21,-2054922799),o=j(o,a,i,n,s[c+8],6,1873313359),n=j(n,o,a,i,s[c+15],10,-30611744),i=j(i,n,o,a,s[c+6],15,-1560198380),a=j(a,i,n,o,s[c+13],21,1309151649),o=j(o,a,i,n,s[c+4],6,-145523070),n=j(n,o,a,i,s[c+11],10,-1120210379),i=j(i,n,o,a,s[c+2],15,718787259),a=j(a,i,n,o,s[c+9],21,-343485551),o=o+g>>>0,a=a+C>>>0,i=i+y>>>0,n=n+B>>>0}return t.endian([o,a,i,n])};f._ff=function(u,h,s,p,o,a,i){var n=u+(h&s|~h&p)+(o>>>0)+i;return(n<<a|n>>>32-a)+h},f._gg=function(u,h,s,p,o,a,i){var n=u+(h&p|s&~p)+(o>>>0)+i;return(n<<a|n>>>32-a)+h},f._hh=function(u,h,s,p,o,a,i){var n=u+(h^s^p)+(o>>>0)+i;return(n<<a|n>>>32-a)+h},f._ii=function(u,h,s,p,o,a,i){var n=u+(s^(h|~p))+(o>>>0)+i;return(n<<a|n>>>32-a)+h},f._blocksize=16,f._digestsize=16,Qe.exports=function(u,h){if(u==null)throw new Error("Illegal argument "+u);var s=t.wordsToBytes(f(u,h));return h&&h.asBytes?s:h&&h.asString?d.bytesToString(s):t.bytesToHex(s)}})();var es=Qe.exports;const ts=Ge(es);function ce({teamDid:t,onCancel:r,onSuccess:l,onError:d,mode:f,item:u}){const{api:h}=N(),[s,p]=b.useState(!1),[o,a]=b.useState(""),{t:i}=q(),[n,c]=b.useState(u.title||""),[v,x]=b.useState(u.description||""),m=async()=>{const g=n.trim();if(!g){a(i("team.passport.error.titleEmpty"));return}if(g.length>64){a(i("team.passport.error.titleTooLong",{length:64}));return}const C=v.replace(/\n/g," ");if(!C){a(i("team.passport.error.descriptionEmpty"));return}const y=f==="create"?ts(g):u.name;a(null),p(!0);try{f==="create"?await h.createRole({input:{teamDid:t,name:y,title:g,description:C}}):await h.updateRole({input:{teamDid:t,role:{name:y,title:g,description:C}}}),l()}catch(B){const P=te(B);a(P),d(B)}finally{p(!1)}},j=e.jsxs("div",{children:[f==="update"&&e.jsx(K,{component:"div",style:{paddingTop:24},children:e.jsx(_,{label:"ID",autoComplete:"off",variant:"outlined",name:"url","data-cy":"mutate-role-input-name",fullWidth:!0,autoFocus:!0,value:u.name,disabled:!0})}),e.jsx(K,{component:"div",style:{marginTop:24},children:e.jsx(_,{label:i("common.title"),autoComplete:"off",variant:"outlined",name:"title","data-cy":"mutate-role-input-title",fullWidth:!0,autoFocus:!0,value:n,onChange:g=>{a(null),c(g.target.value)},disabled:f==="update"||s,helperText:i("team.passport.create.titleTip")})}),e.jsx(K,{component:"div",style:{marginTop:24,marginBottom:24},children:e.jsx(_,{label:i("common.description"),autoComplete:"off",variant:"outlined",name:"description","data-cy":"mutate-role-input-description",fullWidth:!0,autoFocus:!0,value:v,onChange:g=>{a(null),x(g.target.value)},disabled:s,multiline:!0,rows:3})})]});return e.jsxs(H,{title:f==="create"?i("team.passport.create.title"):"",fullWidth:!0,open:!0,onClose:r,showCloseButton:!1,actions:e.jsxs(e.Fragment,{children:[e.jsx(k,{onClick:r,color:"inherit",children:i("common.cancel")}),e.jsxs(k,{"data-cy":"mutate-role-confirm",onClick:m,color:"primary",disabled:s,variant:"contained",autoFocus:!0,children:[s&&e.jsx(W,{size:16}),i(f==="create"?"common.create":"common.update")]})]}),children:[e.jsx(yt,{component:"div",children:j}),!!o&&e.jsx(vt,{type:"error",variant:"icon",style:{width:"100%",margin:0},children:o})]})}ce.propTypes={teamDid:S.string.isRequired,onCancel:S.func.isRequired,onSuccess:S.func.isRequired,onError:S.func,mode:S.oneOf(["create","update"]),item:S.object};ce.defaultProps={onError:()=>{},mode:"create",item:{}};function de({onCancel:t,onSuccess:r,onDelete:l,roleName:d,hasPermission:f}){const{api:u}=N(),{roles:h,permissions:s,teamDid:p,refresh:o,isNodeTeam:a}=ee(),{t:i}=q(),[n,c]=b.useState([]),[v,x]=b.useState(!1),[m,j]=b.useState(null),[g,C]=b.useState(!1),y=Q(h.find(D=>D.name===d)),B=qe(d),P=async D=>{if(!g)try{C(!0),await u.deleteRole({input:{teamDid:p,name:D}}),l()}catch(L){z.error(L.message)}finally{C(!1),j(null)}},R=async(D,L)=>{const me=(await u.getPermissionsByRole({input:{teamDid:D,role:{name:L}}})).permissions||[],tt=s.map(Re=>({...Re,bind:me.some(st=>st.name===Re.name)}));c(tt)},F=async()=>{C(!0);const D=n.filter(L=>L.bind).map(L=>L.name);try{await u.updatePermissionsForRole({input:{teamDid:p,roleName:y.name,grantNames:D}}),z.success(i("common.saveSuccess")),r()}catch(L){z.error(te(L))}finally{C(!1)}};b.useEffect(()=>{p&&d&&R(p,d)},[p,d]);const $=a||!f;let A=null;return a&&(A=e.jsxs("div",{className:"bind",children:[e.jsx("div",{className:"title",children:i("common.permission")}),e.jsx("div",{className:"list",children:n.filter(D=>$?D.bind:!0).map(D=>e.jsx("div",{className:"item",children:e.jsx(Ct,{control:e.jsx(bt,{disabled:$,checked:D.bind,onChange:()=>{c(L=>L.map(I=>(I.name===D.name&&(I.bind=!I.bind),I)))},name:D.name}),label:D.description})}))})]})),e.jsxs(H,{title:i("common.passport"),onClose:t,open:!0,fullWidth:!0,toolbar:f&&!B&&e.jsxs(e.Fragment,{children:[e.jsx(O,{onClick:()=>x(y),"data-cy":`edit-passport-${y.name}`,size:"large",children:e.jsx(le,{fill:"#bfbfbf"})}),e.jsx(O,{onClick:()=>j({title:i("team.passport.delete.title"),description:i("team.passport.delete.description",{name:y.title}),confirm:i("common.delConfirm"),cancel:i("common.cancel"),onConfirm:()=>{P(y.name)},onCancel:()=>{C(!1),j(null)}}),"data-cy":`delete-passport-${y.name}`,size:"large",children:e.jsx(re,{"data-cy":"close-passport-dialog",fill:"#bfbfbf"})})]}),actions:a&&!$&&e.jsxs(e.Fragment,{children:[e.jsx(k,{onClick:t,color:"inherit",children:i("common.cancel")}),e.jsxs(k,{onClick:F,color:"primary",disabled:g||!y,variant:"contained",autoFocus:!0,"data-cy":"bind-permission-btn-confirm",children:[g&&e.jsx(W,{size:16}),i("common.save")]})]}),children:[e.jsxs(ns,{children:[!y&&e.jsx(as,{children:e.jsx(W,{})}),y&&e.jsxs("div",{className:"dialog-content",children:[e.jsxs("div",{className:"header",children:[e.jsx("div",{className:"title",children:y.title}),e.jsx("div",{className:"description",style:{marginTop:a?16:48},children:y.description})]}),A]})]}),v&&e.jsx(ce,{teamDid:p,onCancel:()=>x(null),onSuccess:()=>{x(null),o()},mode:"update",roleName:v.name,item:v}),m&&e.jsx(Te,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]})}const ss=E(de,"mutate_team"),rs=E(de,"",J);function os(t){const{inService:r}=N();return r?e.jsx(rs,{...t}):e.jsx(ss,{...t})}de.propTypes={roleName:S.string.isRequired,onCancel:S.func.isRequired,onSuccess:S.func.isRequired,onDelete:S.func.isRequired,hasPermission:S.bool};de.defaultProps={hasPermission:!1};const ns=U.div`
6
+ */var Zt=function(t){return t!=null&&(Ze(t)||Xt(t)||!!t._isBuffer)};function Ze(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Xt(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&Ze(t.slice(0,0))}(function(){var t=Qt,r=Ne.utf8,l=Zt,d=Ne.bin,f=function(u,h){u.constructor==String?h&&h.encoding==="binary"?u=d.stringToBytes(u):u=r.stringToBytes(u):l(u)?u=Array.prototype.slice.call(u,0):!Array.isArray(u)&&u.constructor!==Uint8Array&&(u=u.toString());for(var s=t.bytesToWords(u),p=u.length*8,o=1732584193,a=-271733879,i=-1732584194,n=271733878,c=0;c<s.length;c++)s[c]=(s[c]<<8|s[c]>>>24)&16711935|(s[c]<<24|s[c]>>>8)&4278255360;s[p>>>5]|=128<<p%32,s[(p+64>>>9<<4)+14]=p;for(var v=f._ff,x=f._gg,m=f._hh,j=f._ii,c=0;c<s.length;c+=16){var g=o,C=a,y=i,B=n;o=v(o,a,i,n,s[c+0],7,-680876936),n=v(n,o,a,i,s[c+1],12,-389564586),i=v(i,n,o,a,s[c+2],17,606105819),a=v(a,i,n,o,s[c+3],22,-1044525330),o=v(o,a,i,n,s[c+4],7,-176418897),n=v(n,o,a,i,s[c+5],12,1200080426),i=v(i,n,o,a,s[c+6],17,-1473231341),a=v(a,i,n,o,s[c+7],22,-45705983),o=v(o,a,i,n,s[c+8],7,1770035416),n=v(n,o,a,i,s[c+9],12,-1958414417),i=v(i,n,o,a,s[c+10],17,-42063),a=v(a,i,n,o,s[c+11],22,-1990404162),o=v(o,a,i,n,s[c+12],7,1804603682),n=v(n,o,a,i,s[c+13],12,-40341101),i=v(i,n,o,a,s[c+14],17,-1502002290),a=v(a,i,n,o,s[c+15],22,1236535329),o=x(o,a,i,n,s[c+1],5,-165796510),n=x(n,o,a,i,s[c+6],9,-1069501632),i=x(i,n,o,a,s[c+11],14,643717713),a=x(a,i,n,o,s[c+0],20,-373897302),o=x(o,a,i,n,s[c+5],5,-701558691),n=x(n,o,a,i,s[c+10],9,38016083),i=x(i,n,o,a,s[c+15],14,-660478335),a=x(a,i,n,o,s[c+4],20,-405537848),o=x(o,a,i,n,s[c+9],5,568446438),n=x(n,o,a,i,s[c+14],9,-1019803690),i=x(i,n,o,a,s[c+3],14,-187363961),a=x(a,i,n,o,s[c+8],20,1163531501),o=x(o,a,i,n,s[c+13],5,-1444681467),n=x(n,o,a,i,s[c+2],9,-51403784),i=x(i,n,o,a,s[c+7],14,1735328473),a=x(a,i,n,o,s[c+12],20,-1926607734),o=m(o,a,i,n,s[c+5],4,-378558),n=m(n,o,a,i,s[c+8],11,-2022574463),i=m(i,n,o,a,s[c+11],16,1839030562),a=m(a,i,n,o,s[c+14],23,-35309556),o=m(o,a,i,n,s[c+1],4,-1530992060),n=m(n,o,a,i,s[c+4],11,1272893353),i=m(i,n,o,a,s[c+7],16,-155497632),a=m(a,i,n,o,s[c+10],23,-1094730640),o=m(o,a,i,n,s[c+13],4,681279174),n=m(n,o,a,i,s[c+0],11,-358537222),i=m(i,n,o,a,s[c+3],16,-722521979),a=m(a,i,n,o,s[c+6],23,76029189),o=m(o,a,i,n,s[c+9],4,-640364487),n=m(n,o,a,i,s[c+12],11,-421815835),i=m(i,n,o,a,s[c+15],16,530742520),a=m(a,i,n,o,s[c+2],23,-995338651),o=j(o,a,i,n,s[c+0],6,-198630844),n=j(n,o,a,i,s[c+7],10,1126891415),i=j(i,n,o,a,s[c+14],15,-1416354905),a=j(a,i,n,o,s[c+5],21,-57434055),o=j(o,a,i,n,s[c+12],6,1700485571),n=j(n,o,a,i,s[c+3],10,-1894986606),i=j(i,n,o,a,s[c+10],15,-1051523),a=j(a,i,n,o,s[c+1],21,-2054922799),o=j(o,a,i,n,s[c+8],6,1873313359),n=j(n,o,a,i,s[c+15],10,-30611744),i=j(i,n,o,a,s[c+6],15,-1560198380),a=j(a,i,n,o,s[c+13],21,1309151649),o=j(o,a,i,n,s[c+4],6,-145523070),n=j(n,o,a,i,s[c+11],10,-1120210379),i=j(i,n,o,a,s[c+2],15,718787259),a=j(a,i,n,o,s[c+9],21,-343485551),o=o+g>>>0,a=a+C>>>0,i=i+y>>>0,n=n+B>>>0}return t.endian([o,a,i,n])};f._ff=function(u,h,s,p,o,a,i){var n=u+(h&s|~h&p)+(o>>>0)+i;return(n<<a|n>>>32-a)+h},f._gg=function(u,h,s,p,o,a,i){var n=u+(h&p|s&~p)+(o>>>0)+i;return(n<<a|n>>>32-a)+h},f._hh=function(u,h,s,p,o,a,i){var n=u+(h^s^p)+(o>>>0)+i;return(n<<a|n>>>32-a)+h},f._ii=function(u,h,s,p,o,a,i){var n=u+(s^(h|~p))+(o>>>0)+i;return(n<<a|n>>>32-a)+h},f._blocksize=16,f._digestsize=16,Ye.exports=function(u,h){if(u==null)throw new Error("Illegal argument "+u);var s=t.wordsToBytes(f(u,h));return h&&h.asBytes?s:h&&h.asString?d.bytesToString(s):t.bytesToHex(s)}})();var es=Ye.exports;const ts=Ge(es);function ce({teamDid:t,onCancel:r,onSuccess:l,onError:d,mode:f,item:u}){const{api:h}=L(),[s,p]=b.useState(!1),[o,a]=b.useState(""),{t:i}=H(),[n,c]=b.useState(u.title||""),[v,x]=b.useState(u.description||""),m=async()=>{const g=n.trim();if(!g){a(i("team.passport.error.titleEmpty"));return}if(g.length>64){a(i("team.passport.error.titleTooLong",{length:64}));return}const C=v.replace(/\n/g," ");if(!C){a(i("team.passport.error.descriptionEmpty"));return}const y=f==="create"?ts(g):u.name;a(null),p(!0);try{f==="create"?await h.createRole({input:{teamDid:t,name:y,title:g,description:C}}):await h.updateRole({input:{teamDid:t,role:{name:y,title:g,description:C}}}),l()}catch(B){const P=te(B);a(P),d(B)}finally{p(!1)}},j=e.jsxs("div",{children:[f==="update"&&e.jsx(K,{component:"div",style:{paddingTop:24},children:e.jsx(_,{label:"ID",autoComplete:"off",variant:"outlined",name:"url","data-cy":"mutate-role-input-name",fullWidth:!0,autoFocus:!0,value:u.name,disabled:!0})}),e.jsx(K,{component:"div",style:{marginTop:24},children:e.jsx(_,{label:i("common.title"),autoComplete:"off",variant:"outlined",name:"title","data-cy":"mutate-role-input-title",fullWidth:!0,autoFocus:!0,value:n,onChange:g=>{a(null),c(g.target.value)},disabled:f==="update"||s,helperText:i("team.passport.create.titleTip")})}),e.jsx(K,{component:"div",style:{marginTop:24,marginBottom:24},children:e.jsx(_,{label:i("common.description"),autoComplete:"off",variant:"outlined",name:"description","data-cy":"mutate-role-input-description",fullWidth:!0,autoFocus:!0,value:v,onChange:g=>{a(null),x(g.target.value)},disabled:s,multiline:!0,rows:3})})]});return e.jsxs(q,{title:f==="create"?i("team.passport.create.title"):"",fullWidth:!0,open:!0,onClose:r,showCloseButton:!1,actions:e.jsxs(e.Fragment,{children:[e.jsx(k,{onClick:r,color:"inherit",children:i("common.cancel")}),e.jsxs(k,{"data-cy":"mutate-role-confirm",onClick:m,color:"primary",disabled:s,variant:"contained",autoFocus:!0,children:[s&&e.jsx(W,{size:16}),i(f==="create"?"common.create":"common.update")]})]}),children:[e.jsx(yt,{component:"div",children:j}),!!o&&e.jsx(vt,{type:"error",variant:"icon",style:{width:"100%",margin:0},children:o})]})}ce.propTypes={teamDid:S.string.isRequired,onCancel:S.func.isRequired,onSuccess:S.func.isRequired,onError:S.func,mode:S.oneOf(["create","update"]),item:S.object};ce.defaultProps={onError:()=>{},mode:"create",item:{}};function de({onCancel:t,onSuccess:r,onDelete:l,roleName:d,hasPermission:f}){const{api:u}=L(),{roles:h,permissions:s,teamDid:p,refresh:o,isNodeTeam:a}=ee(),{t:i}=H(),[n,c]=b.useState([]),[v,x]=b.useState(!1),[m,j]=b.useState(null),[g,C]=b.useState(!1),y=Y(h.find(D=>D.name===d)),B=He(d),P=async D=>{if(!g)try{C(!0),await u.deleteRole({input:{teamDid:p,name:D}}),l()}catch(N){z.error(N.message)}finally{C(!1),j(null)}},R=async(D,N)=>{const me=(await u.getPermissionsByRole({input:{teamDid:D,role:{name:N}}})).permissions||[],tt=s.map(Re=>({...Re,bind:me.some(st=>st.name===Re.name)}));c(tt)},F=async()=>{C(!0);const D=n.filter(N=>N.bind).map(N=>N.name);try{await u.updatePermissionsForRole({input:{teamDid:p,roleName:y.name,grantNames:D}}),z.success(i("common.saveSuccess")),r()}catch(N){z.error(te(N))}finally{C(!1)}};b.useEffect(()=>{p&&d&&R(p,d)},[p,d]);const $=a||!f;let A=null;return a&&(A=e.jsxs("div",{className:"bind",children:[e.jsx("div",{className:"title",children:i("common.permission")}),e.jsx("div",{className:"list",children:n.filter(D=>$?D.bind:!0).map(D=>e.jsx("div",{className:"item",children:e.jsx(Ct,{control:e.jsx(bt,{disabled:$,checked:D.bind,onChange:()=>{c(N=>N.map(I=>(I.name===D.name&&(I.bind=!I.bind),I)))},name:D.name}),label:D.description})}))})]})),e.jsxs(q,{title:i("common.passport"),onClose:t,open:!0,fullWidth:!0,toolbar:f&&!B&&e.jsxs(e.Fragment,{children:[e.jsx(O,{onClick:()=>x(y),"data-cy":`edit-passport-${y.name}`,size:"large",children:e.jsx(le,{fill:"#bfbfbf"})}),e.jsx(O,{onClick:()=>j({title:i("team.passport.delete.title"),description:i("team.passport.delete.description",{name:y.title}),confirm:i("common.delConfirm"),cancel:i("common.cancel"),onConfirm:()=>{P(y.name)},onCancel:()=>{C(!1),j(null)}}),"data-cy":`delete-passport-${y.name}`,size:"large",children:e.jsx(re,{"data-cy":"close-passport-dialog",fill:"#bfbfbf"})})]}),actions:a&&!$&&e.jsxs(e.Fragment,{children:[e.jsx(k,{onClick:t,color:"inherit",children:i("common.cancel")}),e.jsxs(k,{onClick:F,color:"primary",disabled:g||!y,variant:"contained",autoFocus:!0,"data-cy":"bind-permission-btn-confirm",children:[g&&e.jsx(W,{size:16}),i("common.save")]})]}),children:[e.jsxs(ns,{children:[!y&&e.jsx(as,{children:e.jsx(W,{})}),y&&e.jsxs("div",{className:"dialog-content",children:[e.jsxs("div",{className:"header",children:[e.jsx("div",{className:"title",children:y.title}),e.jsx("div",{className:"description",style:{marginTop:a?16:48},children:y.description})]}),A]})]}),v&&e.jsx(ce,{teamDid:p,onCancel:()=>x(null),onSuccess:()=>{x(null),o()},mode:"update",roleName:v.name,item:v}),m&&e.jsx(Te,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]})}const ss=E(de,"mutate_team"),rs=E(de,"",J);function os(t){const{inService:r}=L();return r?e.jsx(rs,{...t}):e.jsx(ss,{...t})}de.propTypes={roleName:S.string.isRequired,onCancel:S.func.isRequired,onSuccess:S.func.isRequired,onDelete:S.func.isRequired,hasPermission:S.bool};de.defaultProps={hasPermission:!1};const ns=U.div`
7
7
  .header {
8
8
  .title {
9
9
  font-weight: 400;
@@ -52,7 +52,7 @@ import{aA as _e,aB as Ae,r as b,aC as Oe,cr as rt,aD as ie,aF as M,cq as oe,aE a
52
52
  justify-content: center;
53
53
  align-items: center;
54
54
  height: 200px;
55
- `;function ue({onCancel:t,onSuccess:r}){const{api:l}=N(),{blocklet:d}=nt(),{t:f}=q(),[u,h]=b.useState(!1),s=(d.environments.find(n=>n.key==="BLOCKLET_PASSPORT_COLOR")||{}).value||"auto",p=s==="auto"?at.getPassportColorFromDid(d.appDid):s,[o,a]=b.useState(p),i=async()=>{const n=[{key:ct.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR,value:o}];try{h(!0),await l.configBlocklet({input:{did:d.meta.did,configs:n}}),r()}catch(c){z.error(c.message)}finally{h(!1)}};return e.jsx(H,{title:f("team.passport.color"),onClose:t,open:!0,fullWidth:!0,actions:e.jsxs(e.Fragment,{children:[e.jsx(k,{onClick:t,color:"inherit",children:f("common.cancel")}),e.jsxs(k,{onClick:i,color:"primary",disabled:u,variant:"contained",autoFocus:!0,"data-cy":"color-btn-confirm",children:[u&&e.jsx(W,{size:16}),f("common.save")]})]}),children:e.jsxs(T,{display:"flex",justifyContent:"center",alignItems:"center",className:"dialog-content",children:[e.jsx(Tt,{color:o,onChange:n=>a(n.hex)}),e.jsx("div",{style:{width:220,marginLeft:24},dangerouslySetInnerHTML:{__html:it({title:"Owner",issuer:lt(d),issuerDid:d.appDid,ownerName:"Your Name",ownerDid:d.appDid,preferredColor:o})}})]})})}const is=E(ue,"mutate_team"),ls=E(ue,"",J);function cs(t){const{inService:r}=N();return r?e.jsx(ls,{...t}):e.jsx(is,{...t})}ue.propTypes={onCancel:S.func.isRequired,onSuccess:S.func.isRequired};ue.defaultProps={};var we={},ds=ut;Object.defineProperty(we,"__esModule",{value:!0});var Pe=we.default=void 0,us=ds(dt()),ps=e;Pe=we.default=(0,us.default)((0,ps.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");var Xe=function(r){return e.jsx("svg",{...r,children:e.jsx("path",{d:"M64.707 8.707a1 1 0 0 0 0-1.414L58.343.929a1 1 0 1 0-1.414 1.414L62.586 8l-5.657 5.657a1 1 0 0 0 1.414 1.414l6.364-6.364zM0 9h64V7H0v2z",fill:"#666"})})};Xe.defaultProps={width:"65",height:"16",viewBox:"0 0 65 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const fs=(t,r)=>t?!r.some(l=>!l.from.passport||!l.to.role):!1;function Fe({onCancel:t,onSuccess:r,data:l,trustedPassports:d}){const{api:f}=N(),{roles:u,teamDid:h}=ee(),{t:s}=q(),[p,o]=b.useState(!1),[a,i]=b.useState(l.issuerDid||""),[n,c]=b.useState(l.remark||""),[v,x]=b.useState(Q(l.mappings)||[]),m=d.findIndex(g=>g.issuerDid===l.issuerDid),j=async()=>{if(p)return;const g={issuerDid:a,remark:n,mappings:v},C=[...d];m===-1?C.unshift(g):C[m]=g;try{o(!0),await f.configTrustedPassports({input:{teamDid:h,trustedPassports:C}}),await se(800),o(!1),z.success(s("common.saveSuccess")),r()}catch(y){o(!1),z.error(te(y))}};return e.jsx(H,{title:s("team.passport.trustedIssuers"),open:!0,showCloseButton:!1,PaperProps:{style:{minHeight:"80vh"}},fullWidth:!0,prepend:e.jsx(O,{onClick:t,"data-cy":"trusted-issuer-close",size:"large",children:e.jsx(Pe,{})}),actions:e.jsxs(e.Fragment,{children:[e.jsx(k,{onClick:t,color:"inherit",children:s("common.cancel")}),e.jsxs(k,{onClick:()=>j(),color:"primary",disabled:!fs(a,v)||!n||p,variant:"contained",autoFocus:!0,"data-cy":"save-mapping",children:[p&&e.jsx(W,{size:16}),s("common.save")]})]}),children:e.jsx(ms,{children:e.jsxs("div",{className:"dialog-content",children:[e.jsx(_,{fullWidth:!0,"data-cy":"input-issuer-did",placeholder:s("team.passport.issuerDid"),value:a,onChange:g=>{i(g.target.value)}}),e.jsx(_,{style:{marginTop:16},fullWidth:!0,"data-cy":"input-issuer-remark",placeholder:s("common.remark"),value:n,onChange:g=>{c(g.target.value)}}),e.jsxs(T,{mt:"30px",display:"flex",justifyContent:"space-between",alignItems:"center",children:[e.jsx(T,{className:"dialog-h1",children:s("team.passport.mappingRule")}),e.jsx(T,{children:e.jsx(k,{variant:"outlined",color:"primary","data-cy":"add-mapping",onClick:()=>{x(g=>{const C=[...g];return C.unshift({from:{passport:""},to:{role:He.ROLES.GUEST}}),C})},children:s("team.add")})})]}),e.jsxs(T,{className:"list",mt:-.5,children:[v.map((g,C)=>e.jsxs(T,{display:"flex",alignItems:"center",justifyContent:"space-between",my:3,children:[e.jsxs(T,{display:"flex",alignItems:"center",flexGrow:1,children:[e.jsx(T,{flexGrow:1,flexBasis:1,children:e.jsx(_,{fullWidth:!0,size:"small","data-cy":`input-${C}-from`,placeholder:"Issuer’s Passport Name/ID",value:g.from.passport,onChange:y=>{const{value:B}=y.target;x(P=>{const R=[...P];return R[C].from.passport=B,R})}})}),e.jsx(T,{flexShrink:0,mx:4,children:e.jsx(Xe,{})}),e.jsx(T,{flexGrow:1,flexBasis:1,children:e.jsx(_,{fullWidth:!0,size:"small",select:!0,value:g.to.role,onChange:y=>{x(B=>{const P=[...B];return P[C].to.role=y.target.value,P})},variant:"outlined",children:u.filter(y=>y.name!=="owner").map(y=>e.jsx(Ue,{value:y.name,"data-cy":`passport-mapping-select-option-${y.name}`,children:e.jsx("span",{children:y.title||y.name})},y.name))})})]}),e.jsx(T,{flexShrink:0,ml:4,children:e.jsx(O,{onClick:()=>{x(y=>{const B=[...y];return B.splice(C,1),B})},size:"large",children:e.jsx(re,{})})})]},`mapping-${C}`)),!v.length&&e.jsx(T,{my:2,color:"text.secondary",fontSize:"16px",children:e.jsx(ve,{children:s("common.empty")})})]})]})})})}Fe.propTypes={onCancel:S.func.isRequired,onSuccess:S.func.isRequired,trustedPassports:S.array,data:S.object};Fe.defaultProps={data:{},trustedPassports:[]};const ms=U.div`
55
+ `;function ue({onCancel:t,onSuccess:r}){const{api:l}=L(),{blocklet:d}=nt(),{t:f}=H(),[u,h]=b.useState(!1),s=(d.environments.find(n=>n.key==="BLOCKLET_PASSPORT_COLOR")||{}).value||"auto",p=s==="auto"?at.getPassportColorFromDid(d.appDid):s,[o,a]=b.useState(p),i=async()=>{const n=[{key:ct.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR,value:o}];try{h(!0),await l.configBlocklet({input:{did:d.meta.did,configs:n}}),r()}catch(c){z.error(c.message)}finally{h(!1)}};return e.jsx(q,{title:f("team.passport.color"),onClose:t,open:!0,fullWidth:!0,actions:e.jsxs(e.Fragment,{children:[e.jsx(k,{onClick:t,color:"inherit",children:f("common.cancel")}),e.jsxs(k,{onClick:i,color:"primary",disabled:u,variant:"contained",autoFocus:!0,"data-cy":"color-btn-confirm",children:[u&&e.jsx(W,{size:16}),f("common.save")]})]}),children:e.jsxs(T,{display:"flex",justifyContent:"center",alignItems:"center",className:"dialog-content",children:[e.jsx(Tt,{color:o,onChange:n=>a(n.hex)}),e.jsx("div",{style:{width:220,marginLeft:24},dangerouslySetInnerHTML:{__html:it({title:"Owner",issuer:lt(d),issuerDid:d.appDid,ownerName:"Your Name",ownerDid:d.appDid,preferredColor:o})}})]})})}const is=E(ue,"mutate_team"),ls=E(ue,"",J);function cs(t){const{inService:r}=L();return r?e.jsx(ls,{...t}):e.jsx(is,{...t})}ue.propTypes={onCancel:S.func.isRequired,onSuccess:S.func.isRequired};ue.defaultProps={};var we={},ds=ut;Object.defineProperty(we,"__esModule",{value:!0});var Pe=we.default=void 0,us=ds(dt()),ps=e;Pe=we.default=(0,us.default)((0,ps.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");var Xe=function(r){return e.jsx("svg",{...r,children:e.jsx("path",{d:"M64.707 8.707a1 1 0 0 0 0-1.414L58.343.929a1 1 0 1 0-1.414 1.414L62.586 8l-5.657 5.657a1 1 0 0 0 1.414 1.414l6.364-6.364zM0 9h64V7H0v2z",fill:"#666"})})};Xe.defaultProps={width:"65",height:"16",viewBox:"0 0 65 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const fs=(t,r)=>t?!r.some(l=>!l.from.passport||!l.to.role):!1;function Fe({onCancel:t,onSuccess:r,data:l,trustedPassports:d}){const{api:f}=L(),{roles:u,teamDid:h}=ee(),{t:s}=H(),[p,o]=b.useState(!1),[a,i]=b.useState(l.issuerDid||""),[n,c]=b.useState(l.remark||""),[v,x]=b.useState(Y(l.mappings)||[]),m=d.findIndex(g=>g.issuerDid===l.issuerDid),j=async()=>{if(p)return;const g={issuerDid:a,remark:n,mappings:v},C=[...d];m===-1?C.unshift(g):C[m]=g;try{o(!0),await f.configTrustedPassports({input:{teamDid:h,trustedPassports:C}}),await se(800),o(!1),z.success(s("common.saveSuccess")),r()}catch(y){o(!1),z.error(te(y))}};return e.jsx(q,{title:s("team.passport.trustedIssuers"),open:!0,showCloseButton:!1,PaperProps:{style:{minHeight:"80vh"}},fullWidth:!0,prepend:e.jsx(O,{onClick:t,"data-cy":"trusted-issuer-close",size:"large",children:e.jsx(Pe,{})}),actions:e.jsxs(e.Fragment,{children:[e.jsx(k,{onClick:t,color:"inherit",children:s("common.cancel")}),e.jsxs(k,{onClick:()=>j(),color:"primary",disabled:!fs(a,v)||!n||p,variant:"contained",autoFocus:!0,"data-cy":"save-mapping",children:[p&&e.jsx(W,{size:16}),s("common.save")]})]}),children:e.jsx(ms,{children:e.jsxs("div",{className:"dialog-content",children:[e.jsx(_,{fullWidth:!0,"data-cy":"input-issuer-did",placeholder:s("team.passport.issuerDid"),value:a,onChange:g=>{i(g.target.value)}}),e.jsx(_,{style:{marginTop:16},fullWidth:!0,"data-cy":"input-issuer-remark",placeholder:s("common.remark"),value:n,onChange:g=>{c(g.target.value)}}),e.jsxs(T,{mt:"30px",display:"flex",justifyContent:"space-between",alignItems:"center",children:[e.jsx(T,{className:"dialog-h1",children:s("team.passport.mappingRule")}),e.jsx(T,{children:e.jsx(k,{variant:"outlined",color:"primary","data-cy":"add-mapping",onClick:()=>{x(g=>{const C=[...g];return C.unshift({from:{passport:""},to:{role:qe.ROLES.GUEST}}),C})},children:s("team.add")})})]}),e.jsxs(T,{className:"list",mt:-.5,children:[v.map((g,C)=>e.jsxs(T,{display:"flex",alignItems:"center",justifyContent:"space-between",my:3,children:[e.jsxs(T,{display:"flex",alignItems:"center",flexGrow:1,children:[e.jsx(T,{flexGrow:1,flexBasis:1,children:e.jsx(_,{fullWidth:!0,size:"small","data-cy":`input-${C}-from`,placeholder:"Issuer’s Passport Name/ID",value:g.from.passport,onChange:y=>{const{value:B}=y.target;x(P=>{const R=[...P];return R[C].from.passport=B,R})}})}),e.jsx(T,{flexShrink:0,mx:4,children:e.jsx(Xe,{})}),e.jsx(T,{flexGrow:1,flexBasis:1,children:e.jsx(_,{fullWidth:!0,size:"small",select:!0,value:g.to.role,onChange:y=>{x(B=>{const P=[...B];return P[C].to.role=y.target.value,P})},variant:"outlined",children:u.filter(y=>y.name!=="owner").map(y=>e.jsx(Ue,{value:y.name,"data-cy":`passport-mapping-select-option-${y.name}`,children:e.jsx("span",{children:y.title||y.name})},y.name))})})]}),e.jsx(T,{flexShrink:0,ml:4,children:e.jsx(O,{onClick:()=>{x(y=>{const B=[...y];return B.splice(C,1),B})},size:"large",children:e.jsx(re,{})})})]},`mapping-${C}`)),!v.length&&e.jsx(T,{my:2,color:"text.secondary",fontSize:"16px",children:e.jsx(ve,{children:s("common.empty")})})]})]})})})}Fe.propTypes={onCancel:S.func.isRequired,onSuccess:S.func.isRequired,trustedPassports:S.array,data:S.object};Fe.defaultProps={data:{},trustedPassports:[]};const ms=U.div`
56
56
  .dialog-h1 {
57
57
  font-size: 18px;
58
58
  }
@@ -64,7 +64,7 @@ import{aA as _e,aB as Ae,r as b,aC as Oe,cr as rt,aD as ie,aF as M,cq as oe,aE a
64
64
  }
65
65
  }
66
66
  }
67
- `;function pe({onCancel:t,hasPermission:r}){const{api:l}=N(),{teamDid:d,trustedPassports:f}=ee(),{t:u}=q(),[h,s]=b.useState(null),[p,o]=b.useState(!1),[a,i]=b.useState(!1),[n,c]=b.useState(""),v=async m=>{if(p)return;const j=f.findIndex(C=>C.issuerDid===m);j===-1&&z.error("Cannot find passports");const g=[...f];g.splice(j,1);try{o(!0),await l.configTrustedPassports({input:{teamDid:d,trustedPassports:g}}),await se(800),o(!1),z.success(u("common.saveSuccess")),s(!1)}catch(C){o(!1),z.error(C.message)}},x=f.filter(m=>!n||m.issuerDid.toLowerCase().includes(n.toLowerCase()));return e.jsxs(H,{title:u("team.passport.trustedIssuers"),open:!0,onClose:t,fullWidth:!0,PaperProps:{style:{minHeight:"80vh"}},children:[e.jsx(ys,{children:e.jsxs("div",{className:"dialog-content",children:[e.jsx("div",{className:"dialog-h1",children:u("team.passport.trustedPassportIssuers")}),e.jsxs(T,{component:Ce,mt:3,children:[e.jsx("div",{className:"left",children:e.jsx(be,{placeholder:u("team.passport.searchIssuerDid"),value:n,onChange:m=>c(m.target.value)})}),e.jsx("div",{className:"right",children:r&&e.jsxs(k,{variant:"contained",color:"primary","data-cy":"add-trusted-issuer",onClick:()=>i({mode:"add"}),children:[e.jsx(je,{style:{fontSize:16,marginRight:4}}),u("team.add")]})})]}),e.jsxs("div",{className:"list",children:[x.map(m=>e.jsxs(T,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:"20px",children:[e.jsxs(T,{flexShrink:0,children:[e.jsx(Ve,{copyable:!1,size:16,did:m.issuerDid,showDidLogo:!1}),!!m.remark&&e.jsx(T,{pl:3.5,fontSize:12,maxWidth:"300px",children:m.remark})]}),e.jsx(T,{color:"gray",ml:"28px",flexGrow:1,children:m.mappings&&m.mappings.length?`${m.mappings.length} ${u("team.passport.mappingRule")}`:u("team.passport.defaultRule")}),e.jsxs(T,{flexShrink:0,display:"flex",alignItems:"center",children:[e.jsx(O,{onClick:()=>i({mode:"update",data:Q(m)}),"data-cy":"edit-mapping-rule",size:"large",children:e.jsx(le,{})}),e.jsx(O,{"data-cy":"delete-mapping-rule",onClick:()=>s({title:u("common.delete"),description:u("common.delConfirmDescription",{data:m.issuerDid}),confirm:u("common.delConfirm"),cancel:u("common.cancel"),onConfirm:()=>v(m.issuerDid),onCancel:()=>{o(!1),s(null)}}),size:"large",children:e.jsx(re,{})})]})]},m.issuerDid)),!f.length&&e.jsx(ve,{children:u("common.empty")})]})]})}),a&&e.jsx(Fe,{mode:a.mode,data:a.data,trustedPassports:Q(f),onCancel:()=>i(null),onSuccess:()=>{i(null)}}),h&&e.jsx(Te,{title:h.title,description:h.description,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]})}pe.propTypes={onCancel:S.func.isRequired,hasPermission:S.bool};pe.defaultProps={hasPermission:!1};const hs=E(pe,"mutate_team"),gs=E(pe,"",J);function xs(t){const{inService:r}=N();return r?e.jsx(gs,{...t}):e.jsx(hs,{...t})}const ys=U.div`
67
+ `;function pe({onCancel:t,hasPermission:r}){const{api:l}=L(),{teamDid:d,trustedPassports:f}=ee(),{t:u}=H(),[h,s]=b.useState(null),[p,o]=b.useState(!1),[a,i]=b.useState(!1),[n,c]=b.useState(""),v=async m=>{if(p)return;const j=f.findIndex(C=>C.issuerDid===m);j===-1&&z.error("Cannot find passports");const g=[...f];g.splice(j,1);try{o(!0),await l.configTrustedPassports({input:{teamDid:d,trustedPassports:g}}),await se(800),o(!1),z.success(u("common.saveSuccess")),s(!1)}catch(C){o(!1),z.error(C.message)}},x=f.filter(m=>!n||m.issuerDid.toLowerCase().includes(n.toLowerCase()));return e.jsxs(q,{title:u("team.passport.trustedIssuers"),open:!0,onClose:t,fullWidth:!0,PaperProps:{style:{minHeight:"80vh"}},children:[e.jsx(ys,{children:e.jsxs("div",{className:"dialog-content",children:[e.jsx("div",{className:"dialog-h1",children:u("team.passport.trustedPassportIssuers")}),e.jsxs(T,{component:Ce,mt:3,children:[e.jsx("div",{className:"left",children:e.jsx(be,{placeholder:u("team.passport.searchIssuerDid"),value:n,onChange:m=>c(m.target.value)})}),e.jsx("div",{className:"right",children:r&&e.jsxs(k,{variant:"contained",color:"primary","data-cy":"add-trusted-issuer",onClick:()=>i({mode:"add"}),children:[e.jsx(je,{style:{fontSize:16,marginRight:4}}),u("team.add")]})})]}),e.jsxs("div",{className:"list",children:[x.map(m=>e.jsxs(T,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:"20px",children:[e.jsxs(T,{flexShrink:0,children:[e.jsx(Ve,{copyable:!1,size:16,did:m.issuerDid,showDidLogo:!1}),!!m.remark&&e.jsx(T,{pl:3.5,fontSize:12,maxWidth:"300px",children:m.remark})]}),e.jsx(T,{color:"gray",ml:"28px",flexGrow:1,children:m.mappings&&m.mappings.length?`${m.mappings.length} ${u("team.passport.mappingRule")}`:u("team.passport.defaultRule")}),e.jsxs(T,{flexShrink:0,display:"flex",alignItems:"center",children:[e.jsx(O,{onClick:()=>i({mode:"update",data:Y(m)}),"data-cy":"edit-mapping-rule",size:"large",children:e.jsx(le,{})}),e.jsx(O,{"data-cy":"delete-mapping-rule",onClick:()=>s({title:u("common.delete"),description:u("common.delConfirmDescription",{data:m.issuerDid}),confirm:u("common.delConfirm"),cancel:u("common.cancel"),onConfirm:()=>v(m.issuerDid),onCancel:()=>{o(!1),s(null)}}),size:"large",children:e.jsx(re,{})})]})]},m.issuerDid)),!f.length&&e.jsx(ve,{children:u("common.empty")})]})]})}),a&&e.jsx(Fe,{mode:a.mode,data:a.data,trustedPassports:Y(f),onCancel:()=>i(null),onSuccess:()=>{i(null)}}),h&&e.jsx(Te,{title:h.title,description:h.description,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]})}pe.propTypes={onCancel:S.func.isRequired,hasPermission:S.bool};pe.defaultProps={hasPermission:!1};const hs=E(pe,"mutate_team"),gs=E(pe,"",J);function xs(t){const{inService:r}=L();return r?e.jsx(gs,{...t}):e.jsx(hs,{...t})}const ys=U.div`
68
68
  .list {
69
69
  .MuiIconButton-root {
70
70
  svg {
@@ -72,7 +72,7 @@ import{aA as _e,aB as Ae,r as b,aC as Oe,cr as rt,aD as ie,aF as M,cq as oe,aE a
72
72
  }
73
73
  }
74
74
  }
75
- `;var Y=1e3,Z=Y*60,X=Z*60,G=X*24,vs=G*7,js=G*365.25,Cs=function(t,r){r=r||{};var l=typeof t;if(l==="string"&&t.length>0)return bs(t);if(l==="number"&&isFinite(t))return r.long?Bs(t):Ts(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function bs(t){if(t=String(t),!(t.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(r){var l=parseFloat(r[1]),d=(r[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return l*js;case"weeks":case"week":case"w":return l*vs;case"days":case"day":case"d":return l*G;case"hours":case"hour":case"hrs":case"hr":case"h":return l*X;case"minutes":case"minute":case"mins":case"min":case"m":return l*Z;case"seconds":case"second":case"secs":case"sec":case"s":return l*Y;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function Ts(t){var r=Math.abs(t);return r>=G?Math.round(t/G)+"d":r>=X?Math.round(t/X)+"h":r>=Z?Math.round(t/Z)+"m":r>=Y?Math.round(t/Y)+"s":t+"ms"}function Bs(t){var r=Math.abs(t);return r>=G?ae(t,r,G,"day"):r>=X?ae(t,r,X,"hour"):r>=Z?ae(t,r,Z,"minute"):r>=Y?ae(t,r,Y,"second"):t+" ms"}function ae(t,r,l,d){var f=r>=l*1.5;return Math.round(t/l)+" "+d+(f?"s":"")}const Ne=Ge(Cs);function Ie({onCancel:t,onSuccess:r,data:l,trustedFactories:d}){var x,m,j;const{api:f}=N(),{roles:u,teamDid:h}=ee(),{t:s}=q(),[p,o]=St({loading:!1,fetching:!1,fetched:[],errored:[],factoryAddress:l.factoryAddress||"",remark:l.remark||"",role:((x=l.passport)==null?void 0:x.role)||"member",ttlPolicy:((m=l.passport)==null?void 0:m.ttlPolicy)||"never",ttl:Ne(+((j=l.passport)==null?void 0:j.ttl)||365*24*60*60*1e3),error:""}),a=d.findIndex(g=>g.factoryAddress===l.factoryAddress),i=async()=>{if(p.loading)return;const{factoryAddress:g,remark:C,role:y,ttlPolicy:B,ttl:P}=p,R={factoryAddress:g,remark:C,passport:{role:y,ttlPolicy:B,ttl:B==="never"?0:Ne(P)}},F=[...d];a===-1?F.unshift(R):F[a]=R;try{o({loading:!0}),await f.configTrustedFactories({input:{teamDid:h,trustedFactories:F}}),await se(800),z.success(s("common.saveSuccess")),r()}catch($){console.error($),z.error(te($))}finally{o({loading:!1})}};b.useEffect(()=>{const g=p.fetched.find(y=>y.address===p.factoryAddress),C=p.errored.find(y=>y.address===p.factoryAddress);pt.isValid(p.factoryAddress)&&!p.fetching&&!g&&!C&&(o({fetching:!0}),ft(He.MAIN_CHAIN_ENDPOINT).getFactoryState({address:p.factoryAddress}).then(B=>{B.state?o({fetching:!1,fetched:[...p.fetched.filter(P=>P.address!==p.factoryAddress),B.state],remark:B.state.name}):o({fetching:!1,errored:[...p.errored.filter(P=>P.address!==p.factoryAddress),{address:p.factoryAddress}],error:s("team.passport.factory404",p)})}).catch(B=>{console.error(B),o({fetching:!1,error:te(B)})}))},[p.factoryAddress,p.fetching]);let n=p.error;const c=p.factoryAddress?p.errored.find(g=>g.address===p.factoryAddress):null;!n&&c&&(n=s("team.passport.factory404",p));const v=p.factoryAddress?p.fetched.find(g=>g.address===p.factoryAddress):null;return!n&&v&&(n=v.description),n||(n=s("team.passport.factoryAddressTip")),e.jsx(H,{title:s("team.passport.trustedFactories"),open:!0,showCloseButton:!1,PaperProps:{style:{minHeight:"80vh"}},fullWidth:!0,prepend:e.jsx(O,{onClick:t,"data-cy":"close-trusted-factory",size:"large",children:e.jsx(Pe,{})}),actions:e.jsxs(e.Fragment,{children:[e.jsx(k,{onClick:t,color:"inherit",children:s("common.cancel")}),e.jsxs(k,{onClick:()=>i(),color:"primary",disabled:!p.factoryAddress||!p.remark||!p.role||p.loading||p.error||c,variant:"contained",autoFocus:!0,"data-cy":"save-trusted-factory",children:[p.loading&&e.jsx(W,{size:16}),s("common.save")]})]}),children:e.jsx(Ss,{children:e.jsxs("div",{className:"dialog-content",children:[e.jsx(_,{fullWidth:!0,error:!!p.error||!!c,"data-cy":"input-factory-address",label:s("team.passport.factoryAddress"),helperText:n,value:p.factoryAddress,InputProps:{endAdornment:p.fetching?e.jsx(wt,{position:"end",children:e.jsx(W,{size:16})}):null},onChange:g=>{o({factoryAddress:g.target.value,error:""})}}),e.jsx(_,{style:{marginTop:32},fullWidth:!0,"data-cy":"input-factory-remark",label:s("common.remark"),value:p.remark,onChange:g=>{o({remark:g.target.value})}}),e.jsx(_,{style:{marginTop:32},fullWidth:!0,"data-cy":"input-passport-role",label:s("team.passport.role"),select:!0,value:p.role,onChange:g=>{o({role:g.target.value})},variant:"outlined",children:u.filter(g=>g.name!=="owner").map(g=>e.jsx(Ue,{value:g.name,"data-cy":`passport-role-select-option-${g.name}`,children:e.jsx("span",{children:g.title||g.name})},g.name))}),e.jsxs("div",{style:{marginTop:32},children:[e.jsx(Pt,{children:s("team.passport.ttl")}),e.jsxs(Ut,{color:"primary",size:"small",value:p.ttlPolicy,exclusive:!0,style:{marginTop:16},onChange:(g,C)=>o({ttlPolicy:C}),"data-cy":"input-passport-ttl-since","aria-label":"Expire Policy",children:[e.jsx(ge,{value:"never","data-cy":"input-passport-ttl-never",children:e.jsx(he,{title:s("team.passport.ttlNeverTip"),children:e.jsx(K,{children:s("team.passport.ttlNever")})})}),e.jsx(ge,{value:"mint","data-cy":"input-passport-ttl-mint",children:e.jsx(he,{title:s("team.passport.ttlMintTip"),children:e.jsx(K,{children:s("team.passport.ttlMint")})})}),e.jsx(ge,{value:"exchange","data-cy":"input-passport-ttl-exchange",children:e.jsx(he,{title:s("team.passport.ttlExchangeTip"),children:e.jsx(K,{children:s("team.passport.ttlExchange")})})})]}),p.ttlPolicy!=="never"&&e.jsxs(e.Fragment,{children:[e.jsx(It,{fullWidth:!0,type:"text",style:{marginTop:16},"data-cy":"input-passport-ttl",value:p.ttl,onChange:g=>{o({ttl:g.target.value})}}),e.jsx(jt,{children:s("team.passport.ttlTip")})]})]})]})})})}Ie.propTypes={onCancel:S.func.isRequired,onSuccess:S.func.isRequired,trustedFactories:S.array,data:S.object};Ie.defaultProps={data:{},trustedFactories:[]};const Ss=U.div`
75
+ `;var Q=1e3,Z=Q*60,X=Z*60,G=X*24,vs=G*7,js=G*365.25,Cs=function(t,r){r=r||{};var l=typeof t;if(l==="string"&&t.length>0)return bs(t);if(l==="number"&&isFinite(t))return r.long?Bs(t):Ts(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function bs(t){if(t=String(t),!(t.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(r){var l=parseFloat(r[1]),d=(r[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return l*js;case"weeks":case"week":case"w":return l*vs;case"days":case"day":case"d":return l*G;case"hours":case"hour":case"hrs":case"hr":case"h":return l*X;case"minutes":case"minute":case"mins":case"min":case"m":return l*Z;case"seconds":case"second":case"secs":case"sec":case"s":return l*Q;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function Ts(t){var r=Math.abs(t);return r>=G?Math.round(t/G)+"d":r>=X?Math.round(t/X)+"h":r>=Z?Math.round(t/Z)+"m":r>=Q?Math.round(t/Q)+"s":t+"ms"}function Bs(t){var r=Math.abs(t);return r>=G?ae(t,r,G,"day"):r>=X?ae(t,r,X,"hour"):r>=Z?ae(t,r,Z,"minute"):r>=Q?ae(t,r,Q,"second"):t+" ms"}function ae(t,r,l,d){var f=r>=l*1.5;return Math.round(t/l)+" "+d+(f?"s":"")}const Le=Ge(Cs);function Ie({onCancel:t,onSuccess:r,data:l,trustedFactories:d}){var x,m,j;const{api:f}=L(),{roles:u,teamDid:h}=ee(),{t:s}=H(),[p,o]=St({loading:!1,fetching:!1,fetched:[],errored:[],factoryAddress:l.factoryAddress||"",remark:l.remark||"",role:((x=l.passport)==null?void 0:x.role)||"member",ttlPolicy:((m=l.passport)==null?void 0:m.ttlPolicy)||"never",ttl:Le(+((j=l.passport)==null?void 0:j.ttl)||365*24*60*60*1e3),error:""}),a=d.findIndex(g=>g.factoryAddress===l.factoryAddress),i=async()=>{if(p.loading)return;const{factoryAddress:g,remark:C,role:y,ttlPolicy:B,ttl:P}=p,R={factoryAddress:g,remark:C,passport:{role:y,ttlPolicy:B,ttl:B==="never"?0:Le(P)}},F=[...d];a===-1?F.unshift(R):F[a]=R;try{o({loading:!0}),await f.configTrustedFactories({input:{teamDid:h,trustedFactories:F}}),await se(800),z.success(s("common.saveSuccess")),r()}catch($){console.error($),z.error(te($))}finally{o({loading:!1})}};b.useEffect(()=>{const g=p.fetched.find(y=>y.address===p.factoryAddress),C=p.errored.find(y=>y.address===p.factoryAddress);pt.isValid(p.factoryAddress)&&!p.fetching&&!g&&!C&&(o({fetching:!0}),ft(qe.MAIN_CHAIN_ENDPOINT).getFactoryState({address:p.factoryAddress}).then(B=>{B.state?o({fetching:!1,fetched:[...p.fetched.filter(P=>P.address!==p.factoryAddress),B.state],remark:B.state.name}):o({fetching:!1,errored:[...p.errored.filter(P=>P.address!==p.factoryAddress),{address:p.factoryAddress}],error:s("team.passport.factory404",p)})}).catch(B=>{console.error(B),o({fetching:!1,error:te(B)})}))},[p.factoryAddress,p.fetching]);let n=p.error;const c=p.factoryAddress?p.errored.find(g=>g.address===p.factoryAddress):null;!n&&c&&(n=s("team.passport.factory404",p));const v=p.factoryAddress?p.fetched.find(g=>g.address===p.factoryAddress):null;return!n&&v&&(n=v.description),n||(n=s("team.passport.factoryAddressTip")),e.jsx(q,{title:s("team.passport.trustedFactories"),open:!0,showCloseButton:!1,PaperProps:{style:{minHeight:"80vh"}},fullWidth:!0,prepend:e.jsx(O,{onClick:t,"data-cy":"close-trusted-factory",size:"large",children:e.jsx(Pe,{})}),actions:e.jsxs(e.Fragment,{children:[e.jsx(k,{onClick:t,color:"inherit",children:s("common.cancel")}),e.jsxs(k,{onClick:()=>i(),color:"primary",disabled:!p.factoryAddress||!p.remark||!p.role||p.loading||p.error||c,variant:"contained",autoFocus:!0,"data-cy":"save-trusted-factory",children:[p.loading&&e.jsx(W,{size:16}),s("common.save")]})]}),children:e.jsx(Ss,{children:e.jsxs("div",{className:"dialog-content",children:[e.jsx(_,{fullWidth:!0,error:!!p.error||!!c,"data-cy":"input-factory-address",label:s("team.passport.factoryAddress"),helperText:n,value:p.factoryAddress,InputProps:{endAdornment:p.fetching?e.jsx(wt,{position:"end",children:e.jsx(W,{size:16})}):null},onChange:g=>{o({factoryAddress:g.target.value,error:""})}}),e.jsx(_,{style:{marginTop:32},fullWidth:!0,"data-cy":"input-factory-remark",label:s("common.remark"),value:p.remark,onChange:g=>{o({remark:g.target.value})}}),e.jsx(_,{style:{marginTop:32},fullWidth:!0,"data-cy":"input-passport-role",label:s("team.passport.role"),select:!0,value:p.role,onChange:g=>{o({role:g.target.value})},variant:"outlined",children:u.filter(g=>g.name!=="owner").map(g=>e.jsx(Ue,{value:g.name,"data-cy":`passport-role-select-option-${g.name}`,children:e.jsx("span",{children:g.title||g.name})},g.name))}),e.jsxs("div",{style:{marginTop:32},children:[e.jsx(Pt,{children:s("team.passport.ttl")}),e.jsxs(Ut,{color:"primary",size:"small",value:p.ttlPolicy,exclusive:!0,style:{marginTop:16},onChange:(g,C)=>o({ttlPolicy:C}),"data-cy":"input-passport-ttl-since","aria-label":"Expire Policy",children:[e.jsx(ge,{value:"never","data-cy":"input-passport-ttl-never",children:e.jsx(he,{title:s("team.passport.ttlNeverTip"),children:e.jsx(K,{children:s("team.passport.ttlNever")})})}),e.jsx(ge,{value:"mint","data-cy":"input-passport-ttl-mint",children:e.jsx(he,{title:s("team.passport.ttlMintTip"),children:e.jsx(K,{children:s("team.passport.ttlMint")})})}),e.jsx(ge,{value:"exchange","data-cy":"input-passport-ttl-exchange",children:e.jsx(he,{title:s("team.passport.ttlExchangeTip"),children:e.jsx(K,{children:s("team.passport.ttlExchange")})})})]}),p.ttlPolicy!=="never"&&e.jsxs(e.Fragment,{children:[e.jsx(It,{fullWidth:!0,type:"text",style:{marginTop:16},"data-cy":"input-passport-ttl",value:p.ttl,onChange:g=>{o({ttl:g.target.value})}}),e.jsx(jt,{children:s("team.passport.ttlTip")})]})]})]})})})}Ie.propTypes={onCancel:S.func.isRequired,onSuccess:S.func.isRequired,trustedFactories:S.array,data:S.object};Ie.defaultProps={data:{},trustedFactories:[]};const Ss=U.div`
76
76
  .dialog-h1 {
77
77
  font-size: 18px;
78
78
  }
@@ -84,7 +84,7 @@ import{aA as _e,aB as Ae,r as b,aC as Oe,cr as rt,aD as ie,aF as M,cq as oe,aE a
84
84
  }
85
85
  }
86
86
  }
87
- `;function fe({onCancel:t,hasPermission:r}){const{api:l}=N(),{teamDid:d,trustedFactories:f}=ee(),{t:u}=q(),[h,s]=b.useState(null),[p,o]=b.useState(!1),[a,i]=b.useState(null),[n,c]=b.useState(""),v=async m=>{if(!p)try{o(!0),await l.configTrustedFactories({input:{teamDid:d,trustedFactories:f.filter(j=>j.factoryAddress!==m)}}),await se(800),o(!1),z.success(u("common.saveSuccess")),s(null)}catch(j){o(!1),z.error(j.message)}},x=f.filter(m=>!n||m.factoryAddress.toLowerCase().includes(n.toLowerCase()));return e.jsxs(H,{title:u("team.passport.trustedFactories"),open:!0,onClose:t,fullWidth:!0,PaperProps:{style:{minHeight:"80vh"}},children:[e.jsx(Is,{children:e.jsxs("div",{className:"dialog-content",children:[e.jsx("div",{className:"dialog-h1",children:u("team.passport.trustedFactoriesTip")}),e.jsxs(T,{component:Ce,mt:3,children:[e.jsx("div",{className:"left",children:e.jsx(be,{placeholder:u("team.passport.searchFactoryAddress"),value:n,onChange:m=>c(m.target.value)})}),e.jsx("div",{className:"right",children:r&&e.jsxs(k,{variant:"contained",color:"primary",size:"small","data-cy":"add-trusted-factory",onClick:()=>i({mode:"add"}),children:[e.jsx(je,{style:{fontSize:16,marginRight:4}}),u("team.add")]})})]}),e.jsxs("div",{className:"list",children:[x.map(m=>e.jsxs(T,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:"20px",children:[e.jsxs(T,{flexGrow:1,children:[e.jsx(Ve,{copyable:!1,did:m.factoryAddress,size:16,showDidLogo:!1}),!!m.remark&&e.jsx(T,{fontSize:12,maxWidth:"300px",children:m.remark})]}),e.jsx(T,{color:"gray",mr:"24px",children:e.jsx(Bt,{type:"success",children:m.passport.role})}),e.jsxs(T,{flexShrink:0,display:"flex",alignItems:"center",children:[e.jsx(O,{onClick:()=>i({mode:"update",data:Q(m)}),"data-cy":"edit-trusted-factory",size:"large",children:e.jsx(le,{})}),e.jsx(O,{"data-cy":"delete-trusted-factory",onClick:()=>s({title:u("common.delete"),description:u("common.delConfirmDescription",{data:m.factoryAddress}),confirm:u("common.delConfirm"),cancel:u("common.cancel"),onConfirm:()=>v(m.factoryAddress),onCancel:()=>{o(!1),s(null)}}),size:"large",children:e.jsx(re,{})})]})]},m.factoryAddress)),!f.length&&e.jsx(ve,{children:u("common.empty")})]})]})}),a&&e.jsx(Ie,{data:a.data,trustedFactories:Q(f),onCancel:()=>i(null),onSuccess:()=>{i(null)}}),h&&e.jsx(Te,{title:h.title,description:h.description,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]})}fe.propTypes={onCancel:S.func.isRequired,hasPermission:S.bool};fe.defaultProps={hasPermission:!1};const ws=E(fe,"mutate_team"),Ps=E(fe,"",J);function Fs(t){const{inService:r}=N();return r?e.jsx(Ps,{...t}):e.jsx(ws,{...t})}const Is=U.div`
87
+ `;function fe({onCancel:t,hasPermission:r}){const{api:l}=L(),{teamDid:d,trustedFactories:f}=ee(),{t:u}=H(),[h,s]=b.useState(null),[p,o]=b.useState(!1),[a,i]=b.useState(null),[n,c]=b.useState(""),v=async m=>{if(!p)try{o(!0),await l.configTrustedFactories({input:{teamDid:d,trustedFactories:f.filter(j=>j.factoryAddress!==m)}}),await se(800),o(!1),z.success(u("common.saveSuccess")),s(null)}catch(j){o(!1),z.error(j.message)}},x=f.filter(m=>!n||m.factoryAddress.toLowerCase().includes(n.toLowerCase()));return e.jsxs(q,{title:u("team.passport.trustedFactories"),open:!0,onClose:t,fullWidth:!0,PaperProps:{style:{minHeight:"80vh"}},children:[e.jsx(Is,{children:e.jsxs("div",{className:"dialog-content",children:[e.jsx("div",{className:"dialog-h1",children:u("team.passport.trustedFactoriesTip")}),e.jsxs(T,{component:Ce,mt:3,children:[e.jsx("div",{className:"left",children:e.jsx(be,{placeholder:u("team.passport.searchFactoryAddress"),value:n,onChange:m=>c(m.target.value)})}),e.jsx("div",{className:"right",children:r&&e.jsxs(k,{variant:"contained",color:"primary",size:"small","data-cy":"add-trusted-factory",onClick:()=>i({mode:"add"}),children:[e.jsx(je,{style:{fontSize:16,marginRight:4}}),u("team.add")]})})]}),e.jsxs("div",{className:"list",children:[x.map(m=>e.jsxs(T,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:"20px",children:[e.jsxs(T,{flexGrow:1,children:[e.jsx(Ve,{copyable:!1,did:m.factoryAddress,size:16,showDidLogo:!1}),!!m.remark&&e.jsx(T,{fontSize:12,maxWidth:"300px",children:m.remark})]}),e.jsx(T,{color:"gray",mr:"24px",children:e.jsx(Bt,{type:"success",children:m.passport.role})}),e.jsxs(T,{flexShrink:0,display:"flex",alignItems:"center",children:[e.jsx(O,{onClick:()=>i({mode:"update",data:Y(m)}),"data-cy":"edit-trusted-factory",size:"large",children:e.jsx(le,{})}),e.jsx(O,{"data-cy":"delete-trusted-factory",onClick:()=>s({title:u("common.delete"),description:u("common.delConfirmDescription",{data:m.factoryAddress}),confirm:u("common.delConfirm"),cancel:u("common.cancel"),onConfirm:()=>v(m.factoryAddress),onCancel:()=>{o(!1),s(null)}}),size:"large",children:e.jsx(re,{})})]})]},m.factoryAddress)),!f.length&&e.jsx(ve,{children:u("common.empty")})]})]})}),a&&e.jsx(Ie,{data:a.data,trustedFactories:Y(f),onCancel:()=>i(null),onSuccess:()=>{i(null)}}),h&&e.jsx(Te,{title:h.title,description:h.description,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]})}fe.propTypes={onCancel:S.func.isRequired,hasPermission:S.bool};fe.defaultProps={hasPermission:!1};const ws=E(fe,"mutate_team"),Ps=E(fe,"",J);function Fs(t){const{inService:r}=L();return r?e.jsx(Ps,{...t}):e.jsx(ws,{...t})}const Is=U.div`
88
88
  .list {
89
89
  .MuiIconButton-root {
90
90
  svg {
@@ -92,7 +92,7 @@ import{aA as _e,aB as Ae,r as b,aC as Oe,cr as rt,aD as ie,aF as M,cq as oe,aE a
92
92
  }
93
93
  }
94
94
  }
95
- `;function et({createPassportSvg:t}){const{t:r}=b.useContext(mt),{api:l,inService:d}=N(),{roles:f,teamDid:u,teamIssuerDid:h,teamName:s,refresh:p,enablePassportIssuance:o,passportColor:a,isNodeTeam:i}=ee(),[n,c]=b.useState(!1),[v,x]=b.useState(!1),[m,j]=b.useState(!1),[g,C]=b.useState(!1),[y,B]=b.useState(!1),[P,R]=b.useState(""),[F,$]=b.useState(!1),A=ht(I=>I.breakpoints.down("md")),D=async I=>{if(I.stopPropagation(),!F){$(!0);try{await l.configPassportIssuance({input:{teamDid:u,enable:!o}}),p(),await se(800),z.success(r("common.configSuccess")),$(!1)}catch(me){z.error(me.message),$(!1)}}},L=f.filter(I=>!P||I.title.includes(P)||I.name.includes(P));return e.jsxs(Rs,{sx:{mt:d?6:0},children:[e.jsxs(Ce,{children:[e.jsx("div",{className:"left",children:e.jsx(be,{placeholder:r("team.passport.search"),value:P,onChange:I=>R(I.target.value)})}),e.jsx("div",{className:"right",children:e.jsxs($e,{permission:d?"":"mutate_team",role:d?J:[],children:[e.jsx(ne,{variant:"outlined",menuButtonProps:{"data-cy":"trusted-issuers-more"},menu:e.jsxs(e.Fragment,{children:[e.jsx(ne.Item,{onClick:()=>B(!0),"data-cy":"config-show-trusted-factories",children:e.jsxs(T,{children:[r("team.passport.configFactories"),e.jsx(T,{fontSize:12,color:"#888",children:r("team.passport.configFactoriesTip")})]})}),e.jsx(ne.Item,{"data-cy":"config-show-issue-passport",onClick:D,children:e.jsxs(T,{display:"flex",alignItems:"center",children:[F&&e.jsx(W,{size:16,style:{marginRight:8}}),e.jsxs(T,{children:[r(o?"team.passport.disableIssuance":"team.passport.enableIssuance"),e.jsx(T,{fontSize:12,color:"#888",children:r(o?"team.passport.disableIssuanceTip":"team.passport.enableIssuanceTip")})]})]})}),!i&&e.jsx(ne.Item,{onClick:()=>j(!0),"data-cy":"config-passport-color",children:e.jsxs(T,{children:[r("team.passport.configColor"),e.jsx(T,{fontSize:12,color:"#888",children:r("team.passport.configColorTip")})]})})]}),children:()=>e.jsxs(k,{variant:"outlined","data-cy":"config-trusted-issuers",onClick:()=>{C(!0)},children:[e.jsx(xt,{style:{fontSize:16,marginRight:4}}),r("team.passport.trustedPassportIssuers")]})}),!i&&e.jsxs(k,{style:{marginLeft:16},variant:"contained",edge:"end",color:"primary","data-cy":"create-role",onClick:()=>c(!0),children:[e.jsx(je,{style:{fontSize:16,marginRight:4}}),r("team.add")]})]})})]}),e.jsx(T,{mt:3}),e.jsx(T,{className:"list",children:L.map(I=>e.jsxs(T,{"data-cy":`passport-${I.name}`,sx:{display:"flex",justifyContent:"space-between"},className:"item",display:"flex",alignItems:"center",onClick:()=>x(I),children:[e.jsxs(T,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:150},dangerouslySetInnerHTML:{__html:t({title:I.title,issuer:s,issuerDid:h,ownerName:"Your Name",ownerDid:h,preferredColor:a,width:"150px"})}}),e.jsx(T,{ml:3,className:"title",children:I.title})]}),!A&&e.jsx(T,{className:"description",children:I.description}),e.jsx($e,{permission:d?"":"mutate_team",role:d?J:[],children:e.jsx("div",{className:"action",children:qe(I.name)?e.jsx(gt,{}):e.jsx(le,{})})})]},I.name))}),n&&e.jsx(ce,{teamDid:u,onCancel:()=>c(!1),onSuccess:()=>{c(!1),p()}}),v&&e.jsx(os,{onCancel:()=>x(!1),onSuccess:()=>{x(!1),p()},onDelete:()=>{x(!1),p()},mode:"update",roleName:v.name,item:v}),g&&e.jsx(xs,{onCancel:()=>C(!1)}),y&&e.jsx(Fs,{onCancel:()=>B(!1)}),m&&e.jsx(cs,{onCancel:()=>j(!1),onSuccess:()=>j(!1)})]})}const Rs=U(T)`
95
+ `;function et({createPassportSvg:t}){const{t:r}=b.useContext(mt),{api:l,inService:d}=L(),{roles:f,teamDid:u,teamIssuerDid:h,teamName:s,refresh:p,enablePassportIssuance:o,passportColor:a,isNodeTeam:i}=ee(),[n,c]=b.useState(!1),[v,x]=b.useState(!1),[m,j]=b.useState(!1),[g,C]=b.useState(!1),[y,B]=b.useState(!1),[P,R]=b.useState(""),[F,$]=b.useState(!1),A=ht(I=>I.breakpoints.down("md")),D=async I=>{if(I.stopPropagation(),!F){$(!0);try{await l.configPassportIssuance({input:{teamDid:u,enable:!o}}),p(),await se(800),z.success(r("common.configSuccess")),$(!1)}catch(me){z.error(me.message),$(!1)}}},N=f.filter(I=>!P||I.title.includes(P)||I.name.includes(P));return e.jsxs(Rs,{sx:{mt:d?6:0},children:[e.jsxs(Ce,{children:[e.jsx("div",{className:"left",children:e.jsx(be,{placeholder:r("team.passport.search"),value:P,onChange:I=>R(I.target.value)})}),e.jsx("div",{className:"right",children:e.jsxs($e,{permission:d?"":"mutate_team",role:d?J:[],children:[e.jsx(ne,{variant:"outlined",menuButtonProps:{"data-cy":"trusted-issuers-more"},menu:e.jsxs(e.Fragment,{children:[e.jsx(ne.Item,{onClick:()=>B(!0),"data-cy":"config-show-trusted-factories",children:e.jsxs(T,{children:[r("team.passport.configFactories"),e.jsx(T,{fontSize:12,color:"#888",children:r("team.passport.configFactoriesTip")})]})}),e.jsx(ne.Item,{"data-cy":"config-show-issue-passport",onClick:D,children:e.jsxs(T,{display:"flex",alignItems:"center",children:[F&&e.jsx(W,{size:16,style:{marginRight:8}}),e.jsxs(T,{children:[r(o?"team.passport.disableIssuance":"team.passport.enableIssuance"),e.jsx(T,{fontSize:12,color:"#888",children:r(o?"team.passport.disableIssuanceTip":"team.passport.enableIssuanceTip")})]})]})}),!i&&e.jsx(ne.Item,{onClick:()=>j(!0),"data-cy":"config-passport-color",children:e.jsxs(T,{children:[r("team.passport.configColor"),e.jsx(T,{fontSize:12,color:"#888",children:r("team.passport.configColorTip")})]})})]}),children:()=>e.jsxs(k,{variant:"outlined","data-cy":"config-trusted-issuers",onClick:()=>{C(!0)},children:[e.jsx(xt,{style:{fontSize:16,marginRight:4}}),r("team.passport.trustedPassportIssuers")]})}),!i&&e.jsxs(k,{style:{marginLeft:16},variant:"contained",edge:"end",color:"primary","data-cy":"create-role",onClick:()=>c(!0),children:[e.jsx(je,{style:{fontSize:16,marginRight:4}}),r("team.add")]})]})})]}),e.jsx(T,{mt:3}),e.jsx(T,{className:"list",children:N.map(I=>e.jsxs(T,{"data-cy":`passport-${I.name}`,sx:{display:"flex",justifyContent:"space-between"},className:"item",display:"flex",alignItems:"center",onClick:()=>x(I),children:[e.jsxs(T,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:150},dangerouslySetInnerHTML:{__html:t({title:I.title,issuer:s,issuerDid:h,ownerName:"Your Name",ownerDid:h,preferredColor:a,width:"150px"})}}),e.jsx(T,{ml:3,className:"title",children:I.title})]}),!A&&e.jsx(T,{className:"description",children:I.description}),e.jsx($e,{permission:d?"":"mutate_team",role:d?J:[],children:e.jsx("div",{className:"action",children:He(I.name)?e.jsx(gt,{}):e.jsx(le,{})})})]},I.name))}),n&&e.jsx(ce,{teamDid:u,onCancel:()=>c(!1),onSuccess:()=>{c(!1),p()}}),v&&e.jsx(os,{onCancel:()=>x(!1),onSuccess:()=>{x(!1),p()},onDelete:()=>{x(!1),p()},mode:"update",roleName:v.name,item:v}),g&&e.jsx(xs,{onCancel:()=>C(!1)}),y&&e.jsx(Fs,{onCancel:()=>B(!1)}),m&&e.jsx(cs,{onCancel:()=>j(!1),onSuccess:()=>j(!1)})]})}const Rs=U(T)`
96
96
  .list {
97
97
  .item {
98
98
  padding: 12px;
@@ -1,4 +1,4 @@
1
- import{aU as l}from"./index-Q73bL4kQ.js";var c={exports:{}};/*!
1
+ import{aU as l}from"./index-uX1Y3cB6.js";var c={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
@@ -1,2 +1,2 @@
1
- import{aU as G}from"./index-Q73bL4kQ.js";class w{constructor(e,t,o){this.property=e,this.normal=t,o&&(this.space=o)}}w.prototype.property={};w.prototype.normal={};w.prototype.space=null;function B(l,e){const t={},o={};let c=-1;for(;++c<l.length;)Object.assign(t,l[c].property),Object.assign(o,l[c].normal);return new w(t,o,e)}function L(l){return l.toLowerCase()}class h{constructor(e,t){this.property=e,this.attribute=t}}h.prototype.space=null;h.prototype.boolean=!1;h.prototype.booleanish=!1;h.prototype.overloadedBoolean=!1;h.prototype.number=!1;h.prototype.commaSeparated=!1;h.prototype.spaceSeparated=!1;h.prototype.commaOrSpaceSeparated=!1;h.prototype.mustUseProperty=!1;h.prototype.defined=!1;let $=0;const r=k(),p=k(),H=k(),n=k(),u=k(),x=k(),g=k();function k(){return 2**++$}const P=Object.freeze(Object.defineProperty({__proto__:null,boolean:r,booleanish:p,commaOrSpaceSeparated:g,commaSeparated:x,number:n,overloadedBoolean:H,spaceSeparated:u},Symbol.toStringTag,{value:"Module"})),C=Object.keys(P);class E extends h{constructor(e,t,o,c){let s=-1;if(super(e,t),R(this,"space",c),typeof o=="number")for(;++s<C.length;){const d=C[s];R(this,C[s],(o&P[d])===P[d])}}}E.prototype.defined=!0;function R(l,e,t){t&&(l[e]=t)}const Z={}.hasOwnProperty;function S(l){const e={},t={};let o;for(o in l.properties)if(Z.call(l.properties,o)){const c=l.properties[o],s=new E(o,l.transform(l.attributes||{},o),c,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),e[o]=s,t[L(o)]=o,t[L(s.attribute)]=o}return new w(e,t,l.space)}const F=S({space:"xlink",transform(l,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),j=S({space:"xml",transform(l,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N(l,e){return e in l?l[e]:e}function X(l,e){return N(l,e.toLowerCase())}const _=S({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:X,properties:{xmlns:null,xmlnsXLink:null}}),V=S({transform(l,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:p,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:u,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:n,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:u,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:p,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}}),J=S({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:X,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:u,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:u,cols:n,colSpan:null,content:null,contentEditable:p,controls:r,controlsList:u,coords:n|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:H,draggable:p,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:u,height:n,hidden:r,high:n,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:u,itemRef:u,itemScope:r,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:n,pattern:null,ping:u,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:u,required:r,reversed:r,rows:n,rowSpan:n,sandbox:u,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:p,width:n,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:n,security:null,unselectable:null}}),Q=S({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:N,properties:{about:g,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nn=/^data[-\w.:]+$/i,T=/-[a-z]/g,ln=/[A-Z]/g;function kn(l,e){const t=L(e);let o=e,c=h;if(t in l.normal)return l.property[l.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&nn.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(T,on);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!T.test(s)){let d=s.replace(ln,en);d.charAt(0)!=="-"&&(d="-"+d),e="data"+d}}c=E}return new c(o,e)}function en(l){return"-"+l.toLowerCase()}function on(l){return l.charAt(1).toUpperCase()}const xn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sn=B([j,F,_,V,J],"html"),wn=B([j,F,_,V,Q],"svg");function bn(l){const e=String(l||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Cn(l){return l.join(" ").trim()}function Ln(l){const e=[],t=String(l||"");let o=t.indexOf(","),c=0,s=!1;for(;!s;){o===-1&&(o=t.length,s=!0);const d=t.slice(c,o).trim();(d||!s)&&e.push(d),c=o+1,o=t.indexOf(",",c)}return e}function Pn(l,e){const t=e||{};return(l[l.length-1]===""?[...l,""]:l).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var O={exports:{}},A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tn=/\n/g,rn=/^\s*/,an=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,un=/^:\s*/,sn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cn=/^[;\s]*/,pn=/^\s+|\s+$/g,dn=`
1
+ import{aU as G}from"./index-uX1Y3cB6.js";class w{constructor(e,t,o){this.property=e,this.normal=t,o&&(this.space=o)}}w.prototype.property={};w.prototype.normal={};w.prototype.space=null;function B(l,e){const t={},o={};let c=-1;for(;++c<l.length;)Object.assign(t,l[c].property),Object.assign(o,l[c].normal);return new w(t,o,e)}function L(l){return l.toLowerCase()}class h{constructor(e,t){this.property=e,this.attribute=t}}h.prototype.space=null;h.prototype.boolean=!1;h.prototype.booleanish=!1;h.prototype.overloadedBoolean=!1;h.prototype.number=!1;h.prototype.commaSeparated=!1;h.prototype.spaceSeparated=!1;h.prototype.commaOrSpaceSeparated=!1;h.prototype.mustUseProperty=!1;h.prototype.defined=!1;let $=0;const r=k(),p=k(),H=k(),n=k(),u=k(),x=k(),g=k();function k(){return 2**++$}const P=Object.freeze(Object.defineProperty({__proto__:null,boolean:r,booleanish:p,commaOrSpaceSeparated:g,commaSeparated:x,number:n,overloadedBoolean:H,spaceSeparated:u},Symbol.toStringTag,{value:"Module"})),C=Object.keys(P);class E extends h{constructor(e,t,o,c){let s=-1;if(super(e,t),R(this,"space",c),typeof o=="number")for(;++s<C.length;){const d=C[s];R(this,C[s],(o&P[d])===P[d])}}}E.prototype.defined=!0;function R(l,e,t){t&&(l[e]=t)}const Z={}.hasOwnProperty;function S(l){const e={},t={};let o;for(o in l.properties)if(Z.call(l.properties,o)){const c=l.properties[o],s=new E(o,l.transform(l.attributes||{},o),c,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),e[o]=s,t[L(o)]=o,t[L(s.attribute)]=o}return new w(e,t,l.space)}const F=S({space:"xlink",transform(l,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),j=S({space:"xml",transform(l,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N(l,e){return e in l?l[e]:e}function X(l,e){return N(l,e.toLowerCase())}const _=S({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:X,properties:{xmlns:null,xmlnsXLink:null}}),V=S({transform(l,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:p,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:u,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:n,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:u,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:p,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}}),J=S({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:X,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:u,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:u,cols:n,colSpan:null,content:null,contentEditable:p,controls:r,controlsList:u,coords:n|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:H,draggable:p,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:u,height:n,hidden:r,high:n,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:u,itemRef:u,itemScope:r,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:n,pattern:null,ping:u,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:u,required:r,reversed:r,rows:n,rowSpan:n,sandbox:u,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:p,width:n,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:n,security:null,unselectable:null}}),Q=S({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:N,properties:{about:g,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nn=/^data[-\w.:]+$/i,T=/-[a-z]/g,ln=/[A-Z]/g;function kn(l,e){const t=L(e);let o=e,c=h;if(t in l.normal)return l.property[l.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&nn.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(T,on);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!T.test(s)){let d=s.replace(ln,en);d.charAt(0)!=="-"&&(d="-"+d),e="data"+d}}c=E}return new c(o,e)}function en(l){return"-"+l.toLowerCase()}function on(l){return l.charAt(1).toUpperCase()}const xn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sn=B([j,F,_,V,J],"html"),wn=B([j,F,_,V,Q],"svg");function bn(l){const e=String(l||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Cn(l){return l.join(" ").trim()}function Ln(l){const e=[],t=String(l||"");let o=t.indexOf(","),c=0,s=!1;for(;!s;){o===-1&&(o=t.length,s=!0);const d=t.slice(c,o).trim();(d||!s)&&e.push(d),c=o+1,o=t.indexOf(",",c)}return e}function Pn(l,e){const t=e||{};return(l[l.length-1]===""?[...l,""]:l).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var O={exports:{}},A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tn=/\n/g,rn=/^\s*/,an=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,un=/^:\s*/,sn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cn=/^[;\s]*/,pn=/^\s+|\s+$/g,dn=`
2
2
  `,I="/",U="*",y="",gn="comment",hn="declaration",mn=function(l,e){if(typeof l!="string")throw new TypeError("First argument must be a string");if(!l)return[];e=e||{};var t=1,o=1;function c(i){var a=i.match(tn);a&&(t+=a.length);var m=i.lastIndexOf(dn);o=~m?i.length-m:o+i.length}function s(){var i={line:t,column:o};return function(a){return a.position=new d(i),b(),a}}function d(i){this.start=i,this.end={line:t,column:o},this.source=e.source}d.prototype.content=l;function v(i){var a=new Error(e.source+":"+t+":"+o+": "+i);if(a.reason=i,a.filename=e.source,a.line=t,a.column=o,a.source=l,!e.silent)throw a}function f(i){var a=i.exec(l);if(a){var m=a[0];return c(m),l=l.slice(m.length),a}}function b(){f(rn)}function M(i){var a;for(i=i||[];a=D();)a!==!1&&i.push(a);return i}function D(){var i=s();if(!(I!=l.charAt(0)||U!=l.charAt(1))){for(var a=2;y!=l.charAt(a)&&(U!=l.charAt(a)||I!=l.charAt(a+1));)++a;if(a+=2,y===l.charAt(a-1))return v("End of comment missing");var m=l.slice(2,a-2);return o+=2,c(m),l=l.slice(a),o+=2,i({type:gn,comment:m})}}function K(){var i=s(),a=f(an);if(a){if(D(),!f(un))return v("property missing ':'");var m=f(sn),q=i({type:hn,property:z(a[0].replace(A,y)),value:m?z(m[0].replace(A,y)):y});return f(cn),q}}function Y(){var i=[];M(i);for(var a;a=K();)a!==!1&&(i.push(a),M(i));return i}return b(),Y()};function z(l){return l?l.replace(pn,y):y}var fn=mn;function W(l,e){var t=null;if(!l||typeof l!="string")return t;for(var o,c=fn(l),s=typeof e=="function",d,v,f=0,b=c.length;f<b;f++)o=c[f],d=o.property,v=o.value,s?e(d,v,o):v&&(t||(t={}),t[d]=v);return t}O.exports=W;O.exports.default=W;var vn=O.exports;const En=G(vn),On={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mn(l){const e=l&&typeof l=="object"&&l.type==="text"?l.value||"":l;return typeof e=="string"&&e.replace(/[ \t\n\f\r]/g,"")===""}export{En as S,Pn as a,Cn as b,xn as c,Mn as d,Ln as e,kn as f,Sn as h,L as n,bn as p,wn as s,On as w};