@abtnode/webapp 1.17.8-beta-20260108-021819-e099f0ca → 1.17.8-beta-20260108-120904-21cb5fb6

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 (191) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-Chnfr9fe.js → AdapterDayjs-CtD5my-S.js} +1 -1
  4. package/dist/assets/{Add-b-MNk7UB.js → Add-CVe35B9U.js} +1 -1
  5. package/dist/assets/ArrowDropDown-59b471Ns.js +1 -0
  6. package/dist/assets/{Autocomplete-79tADtg2.js → Autocomplete-CZdtlRmS.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-Cqjt-kp8.js → Breadcrumbs-DOWk4s-Q.js} +1 -1
  8. package/dist/assets/{ButtonGroup-C_JbniJW.js → ButtonGroup-83J5hh2q.js} +1 -1
  9. package/dist/assets/{CSSTransition-DinXVMZy.js → CSSTransition-Dmpq-B51.js} +1 -1
  10. package/dist/assets/{CallMerge-CF5jo3Pw.js → CallMerge-CZNqia3S.js} +1 -1
  11. package/dist/assets/{CardContent-CYNmFsYJ.js → CardContent-DXDn75TD.js} +1 -1
  12. package/dist/assets/{ChevronLeft-Byy2_Dj8.js → ChevronLeft-B8v-crqw.js} +1 -1
  13. package/dist/assets/{ChevronRight-BKFXnJ7g.js → ChevronRight-DIxNh4jH.js} +1 -1
  14. package/dist/assets/{Clear-Chg9fOPG.js → Clear-kzRbvP4u.js} +1 -1
  15. package/dist/assets/{Delete-B306vkSB.js → Delete-Cw_Z_UMc.js} +1 -1
  16. package/dist/assets/{DeleteOutline-BjSm7PCr.js → DeleteOutline-D2i9YJBS.js} +1 -1
  17. package/dist/assets/{Done-Bh0vP7e6.js → Done-CmV6TZSG.js} +1 -1
  18. package/dist/assets/{Edit-DFmlgA7E.js → Edit-DDUKSYdb.js} +1 -1
  19. package/dist/assets/{EditOutlined-Qskj3-tY.js → EditOutlined-MUSbzQj_.js} +1 -1
  20. package/dist/assets/{ErrorOutline-CjKNiJFO.js → ErrorOutline-jxA-S5AH.js} +1 -1
  21. package/dist/assets/{FilterList-Dphn1UXx.js → FilterList-B8T7rkYs.js} +1 -1
  22. package/dist/assets/{Google-C0G3l0jL.js → Google-Bg8SlDZS.js} +1 -1
  23. package/dist/assets/{HelpOutline--A0maMxb.js → HelpOutline-BOrIHXkQ.js} +1 -1
  24. package/dist/assets/{KeyboardArrowDown-CD6n37Y9.js → KeyboardArrowDown-CE7zJDcv.js} +1 -1
  25. package/dist/assets/{Launch-Cor8d4pT.js → Launch-BHeCrhBj.js} +1 -1
  26. package/dist/assets/{Link-Mg5UlAaZ.js → Link-C39j8j-1.js} +1 -1
  27. package/dist/assets/{ListItemButton-C8XIzvy_.js → ListItemButton-DLzzgnWj.js} +1 -1
  28. package/dist/assets/{ListSubheader-CHT01bOG.js → ListSubheader-BgTycqrg.js} +1 -1
  29. package/dist/assets/{LoadingButton-DtnAWL1w.js → LoadingButton-OiBPqmL8.js} +1 -1
  30. package/dist/assets/{MoreVert-KNjOpSoE.js → MoreVert-DJQ3tC1s.js} +1 -1
  31. package/dist/assets/{OpenInNew-DGDd5qxt.js → OpenInNew-awII5Ys1.js} +1 -1
  32. package/dist/assets/{Refresh-B0_3c6OW.js → Refresh-BpllOjUS.js} +1 -1
  33. package/dist/assets/{Replay-BzP784vV.js → Replay-CMmg_T4k.js} +1 -1
  34. package/dist/assets/{Search-CUoYhy1v.js → Search-DobdZczv.js} +1 -1
  35. package/dist/assets/{Stepper-DfUO9buC.js → Stepper-DJ4LlLol.js} +1 -1
  36. package/dist/assets/{TableSearch-DxZYknBa.js → TableSearch-NL7mGzF6.js} +1 -1
  37. package/dist/assets/{ToggleButtonGroup-BwLu2zCu.js → ToggleButtonGroup-1ZqP29sD.js} +1 -1
  38. package/dist/assets/{UnfoldMore-DvSw9pGy.js → UnfoldMore-BNE7Q7I9.js} +1 -1
  39. package/dist/assets/{Verified-CfonAx-G.js → Verified-pVnWh8ct.js} +1 -1
  40. package/dist/assets/{VerifiedUser-wCwGdsz1.js → VerifiedUser-Bq5EjyL0.js} +1 -1
  41. package/dist/assets/{ViewList-DhdvL6AT.js → ViewList-DikGBOob.js} +1 -1
  42. package/dist/assets/{_createAggregator-BLxu5C4t.js → _createAggregator-xAuoCETp.js} +1 -1
  43. package/dist/assets/{actions-Wo9kGXdj.js → actions-BHqqnvHK.js} +1 -1
  44. package/dist/assets/{actions-D1YtdqKL.js → actions-QNxlOGpH.js} +1 -1
  45. package/dist/assets/{agreement-07HiBYSX.js → agreement-D-rCiZRR.js} +1 -1
  46. package/dist/assets/api-ZR56mSDv.js +1 -0
  47. package/dist/assets/{appearance-CKF7Bo6h.js → appearance-CL4dIHJL.js} +1 -1
  48. package/dist/assets/{audit-logs-CLt2l7-q.js → audit-logs-BHIFDkts.js} +1 -1
  49. package/dist/assets/{base-chart-_0APPWGp.js → base-chart-CbniXo_r.js} +1 -1
  50. package/dist/assets/{blocklet-ClPWX-SV.js → blocklet-e4asDkfP.js} +1 -1
  51. package/dist/assets/{chain-Bg9mny_E.js → chain-CADjEEjt.js} +1 -1
  52. package/dist/assets/{click-to-copy-BbJJzGI1.js → click-to-copy-D5SbepAS.js} +1 -1
  53. package/dist/assets/cloneDeep-ChH4oif_.js +1 -0
  54. package/dist/assets/{config-navigation-B-CtKO70.js → config-navigation-ySXIDWww.js} +3 -3
  55. package/dist/assets/{connect-2JDWTFDP.js → connect-CdvuGCCf.js} +1 -1
  56. package/dist/assets/{connect-to-CBEHT895.js → connect-to-98MGJ7Yl.js} +1 -1
  57. package/dist/assets/{cssMode-U7KzpQEJ.js → cssMode-C_dsdlzf.js} +1 -1
  58. package/dist/assets/{delete-confirm-Cx4JPY2I.js → delete-confirm-Dk2gUSc_.js} +1 -1
  59. package/dist/assets/depsEqual-D1oKMHHx.js +1 -0
  60. package/dist/assets/{detail-Cgws9Fjd.js → detail-BSLJegmW.js} +3 -3
  61. package/dist/assets/{domains-BJzrDugH.js → domains-DgPIevHh.js} +1 -1
  62. package/dist/assets/{download-Df1TrhTI.js → download-DjUrRSaE.js} +1 -1
  63. package/dist/assets/{edit.svg-833vjqGH.js → edit.svg-BGFHNdYl.js} +1 -1
  64. package/dist/assets/emotion-cache.browser.esm-CO4m2LjK.js +1 -0
  65. package/dist/assets/engine-AOyfq5pg.js +1 -0
  66. package/dist/assets/{freemarker2-J5nZkQuM.js → freemarker2-Ynl3hbRt.js} +1 -1
  67. package/dist/assets/{get-safe-url-QppwE77w.js → get-safe-url-D0pcxgUJ.js} +1 -1
  68. package/dist/assets/getValidReactChildren-BrnINUbd.js +1 -0
  69. package/dist/assets/{graphqlMode-5yY_akok.js → graphqlMode-D3ZzOvwh.js} +2 -2
  70. package/dist/assets/{handlebars-DfBT6Rl2.js → handlebars-BXtXOFnU.js} +1 -1
  71. package/dist/assets/{html-BBpT31Z8.js → html-68WkZj1H.js} +1 -1
  72. package/dist/assets/{html-title-BpNgi7iw.js → html-title-CT8s_pnR.js} +1 -1
  73. package/dist/assets/{htmlMode-CDF4YwlA.js → htmlMode-D6dQwFeL.js} +1 -1
  74. package/dist/assets/{iframe-CH8rbppJ.js → iframe-BzTEh7qO.js} +1 -1
  75. package/dist/assets/{index-jHF3D4cy.js → index-AoP-pJu3.js} +1 -1
  76. package/dist/assets/{index-B8qqbKQt.js → index-B-25u8Uu.js} +1 -1
  77. package/dist/assets/index-B1_4iuGC.js +782 -0
  78. package/dist/assets/{index-tNmk7CjJ.js → index-BAYzgNzt.js} +1 -1
  79. package/dist/assets/{index-BdVOugOI.js → index-BFzkIx2h.js} +1 -1
  80. package/dist/assets/index-BQ9Dluv4.js +1 -0
  81. package/dist/assets/{index-B3tcK3_z.js → index-BTw_aopw.js} +14 -14
  82. package/dist/assets/{index-Dr7VuVvC.js → index-BV0mjh6r.js} +1 -1
  83. package/dist/assets/{index-DSjaZAu3.js → index-BaJk36L1.js} +1 -1
  84. package/dist/assets/{index-BJVvRV0h.js → index-BazbEWXv.js} +1 -1
  85. package/dist/assets/{index-CsTd8Q4H.js → index-Bd2vWvMu.js} +1 -1
  86. package/dist/assets/{index-CbnvHmOA.js → index-Bmj3JRL8.js} +1 -1
  87. package/dist/assets/{index-DCHzmqFc.js → index-BspQeR3D.js} +1 -1
  88. package/dist/assets/{index-CKWS_NIP.js → index-Bwnzqjf1.js} +1 -1
  89. package/dist/assets/{index-B4fcaU-r.js → index-CB1i_uf2.js} +1 -1
  90. package/dist/assets/{index-DqkfLKvE.js → index-CIjzdo65.js} +1 -1
  91. package/dist/assets/{index-CDd3s2GI.js → index-CVfXb0nN.js} +1 -1
  92. package/dist/assets/{index-CaxsY_au.js → index-CmbSgUyL.js} +3 -3
  93. package/dist/assets/{index-BikUP_wv.js → index-Cmvy-qPR.js} +1 -1
  94. package/dist/assets/{index-BVJB29cJ.js → index-Cp8XtCdH.js} +1 -1
  95. package/dist/assets/{index-BSBkhGl0.js → index-Cq78KErH.js} +1 -1
  96. package/dist/assets/{index-WHQs_PkC.js → index-Cy488fNr.js} +1 -1
  97. package/dist/assets/{index-B6x6Mq9n.js → index-D2bmvDtL.js} +1 -1
  98. package/dist/assets/{index-Crqqt-AN.js → index-D33KlJUT.js} +1 -1
  99. package/dist/assets/{index-3MwDYHdN.js → index-DA7EVQ4v.js} +9 -9
  100. package/dist/assets/{index-DXfP6ckA.js → index-DDI8UY6T.js} +2 -2
  101. package/dist/assets/{index-BBe9oV9e.js → index-DLJTQrAL.js} +1 -1
  102. package/dist/assets/{index-Bek3Nxot.js → index-DQhyMeoV.js} +3 -3
  103. package/dist/assets/{index-D_L4A5jU.js → index-DVXDeiLF.js} +1 -1
  104. package/dist/assets/{index-m8sITmne.js → index-DXHVn7yq.js} +1 -1
  105. package/dist/assets/{index-BbND9whL.js → index-Da8PZ-lu.js} +1 -1
  106. package/dist/assets/{index-iqFfmV_z.js → index-DfDHgwS-.js} +1 -1
  107. package/dist/assets/{index-BqrWLXQw.js → index-Dpw7fQUd.js} +3 -3
  108. package/dist/assets/{index-DrsAyGr6.js → index-DuNah4NO.js} +1 -1
  109. package/dist/assets/{index-BHQcEGDq.js → index-DvMdH51T.js} +1 -1
  110. package/dist/assets/{index-CBHMH4Z7.js → index-DxFY8dMO.js} +1 -1
  111. package/dist/assets/{index-cZdqepfp.js → index-Dz1ZwZ8x.js} +1 -1
  112. package/dist/assets/{index-0NOALS_P.js → index-Fir5RRo8.js} +1 -1
  113. package/dist/assets/{index-FdUIQyuT.js → index-Fr0im6-l.js} +1 -1
  114. package/dist/assets/{index-DJfXtT-f.js → index-Jt9YjCeK.js} +1 -1
  115. package/dist/assets/{index-CHgpIuFF.js → index-Ltxc7YUP.js} +1 -1
  116. package/dist/assets/{index-BfTQCMKf.js → index-LvA6paIR.js} +1 -1
  117. package/dist/assets/{index-CbK68mel.js → index-ZuJcpT1T.js} +1 -1
  118. package/dist/assets/{index-BfnrUUfH.js → index-bAcW8HYF.js} +1 -1
  119. package/dist/assets/{index-BRSm_uSW.js → index-teas2Eib.js} +3 -3
  120. package/dist/assets/{index-CZX-K9Eg.js → index-yR3ovHMI.js} +1 -1
  121. package/dist/assets/{index.esm-WZ7Avw4n.js → index.esm-CL88L2RD.js} +1 -1
  122. package/dist/assets/{install-from-url-PuHPLadE.js → install-from-url-C9wGB_q1.js} +1 -1
  123. package/dist/assets/{invitation-Bi2QgUpB.js → invitation-DBHFAKTZ.js} +1 -1
  124. package/dist/assets/{is-path-prefix-equal-BAfeJQQq.js → is-path-prefix-equal-Df12gAPj.js} +1 -1
  125. package/dist/assets/{item-hbtsGcq0.js → item-D4OgvExU.js} +1 -1
  126. package/dist/assets/{javascript-CH6uPFyX.js → javascript-CY8tPfqG.js} +1 -1
  127. package/dist/assets/{jsonMode-B3mvgwT0.js → jsonMode-B1lllzUE.js} +1 -1
  128. package/dist/assets/{liquid-BoDus-ho.js → liquid-gpD4GU-k.js} +1 -1
  129. package/dist/assets/{list-header-C3SJDsfy.js → list-header-CjwjgfKp.js} +1 -1
  130. package/dist/assets/{lock.svg-CGmlgpmU.js → lock.svg-BmAm_LJl.js} +1 -1
  131. package/dist/assets/{log-D4BWVj7G.js → log-9z7r8Lwt.js} +1 -1
  132. package/dist/assets/{lottie-react.esm-ayFZjR4e.js → lottie-react.esm-C8kqAAU9.js} +1 -1
  133. package/dist/assets/{mdx-C33wkq6H.js → mdx-BwNO0Air.js} +1 -1
  134. package/dist/assets/{memory-lh5QZ4zg.js → memory-DO3ZqhrY.js} +1 -1
  135. package/dist/assets/{metric-chc-qmc8.js → metric-BcTiOrOk.js} +1 -1
  136. package/dist/assets/omit-jBEByUQC.js +1 -0
  137. package/dist/assets/{overview-DL-GP40o.js → overview-CikmJX9H.js} +1 -1
  138. package/dist/assets/{permission-D09K4EY6.js → permission-D1opDJhT.js} +1 -1
  139. package/dist/assets/{preference-iiwdIYk6.js → preference-Cs7lm-MF.js} +3 -3
  140. package/dist/assets/{provider-icon-Dm9XYo2I.js → provider-icon-CFKcu3V6.js} +1 -1
  141. package/dist/assets/{python-D_lYYAX1.js → python-CNXRlmYQ.js} +1 -1
  142. package/dist/assets/{raf-schd.esm-Bo9SYHL8.js → raf-schd.esm-D0EagQlv.js} +1 -1
  143. package/dist/assets/{razor-dpsmZHh4.js → razor-eMpDpC4X.js} +1 -1
  144. package/dist/assets/{rotate-session-key-Bfdv46s3.js → rotate-session-key-BiL0Bo_O.js} +1 -1
  145. package/dist/assets/{runtime-BUcScDcM.js → runtime-DUYT_SiT.js} +1 -1
  146. package/dist/assets/schema-iTOku2t8.js +1 -0
  147. package/dist/assets/sdk-B0lvz_Iz.js +1 -0
  148. package/dist/assets/{service-DCzLPjA3.js → service-BTdtH483.js} +1 -1
  149. package/dist/assets/{shorten-label-CN9pEyom.js → shorten-label-BNzeaF4J.js} +1 -1
  150. package/dist/assets/{simple-select-DxwJpURO.js → simple-select-BhAfKrhv.js} +1 -1
  151. package/dist/assets/{spaces-BrB8zqzV.js → spaces-OwZlXUZ4.js} +1 -1
  152. package/dist/assets/{status-BZx_J-ps.js → status-D6WlCP08.js} +1 -1
  153. package/dist/assets/{status-B-GGRrEB.js → status-cEVhL_8t.js} +1 -1
  154. package/dist/assets/{switch-control-X9WA2UjB.js → switch-control-DfH5Tjol.js} +1 -1
  155. package/dist/assets/{table-icons-Xs4hP9Pw.js → table-icons-CDTf0wL3.js} +1 -1
  156. package/dist/assets/{team-B9jB42uy.js → team-BGXKsY22.js} +1 -1
  157. package/dist/assets/{toLower-DwWNsNMJ.js → toLower-CSOmIMZJ.js} +1 -1
  158. package/dist/assets/toUpper-DnO1VFxi.js +1 -0
  159. package/dist/assets/{traffic-C_4zWOQM.js → traffic-DvCEQ5xd.js} +1 -1
  160. package/dist/assets/{tsMode-57DuREfP.js → tsMode-Let-Q8zu.js} +1 -1
  161. package/dist/assets/{typescript-BJp2b_J1.js → typescript-DyjM7FW9.js} +1 -1
  162. package/dist/assets/{url-evaluation-DetQFE_e.js → url-evaluation-Bukt7_Lj.js} +1 -1
  163. package/dist/assets/{url-join-rRKl4Ear.js → url-join-xsOaQKQ2.js} +1 -1
  164. package/dist/assets/{use-mobile-DOhPXmq7.js → use-mobile-BIQUR7Fz.js} +1 -1
  165. package/dist/assets/{use-mobile-BDRFDg8j.js → use-mobile-CFNU7YUg.js} +1 -1
  166. package/dist/assets/{useAsync-B59MJoKM.js → useAsync-tWL_hrVo.js} +1 -1
  167. package/dist/assets/{useAsyncRetry-CGp0YSlH.js → useAsyncRetry-CUFV5zTA.js} +1 -1
  168. package/dist/assets/{useLocalStorage-Dpl2DibN.js → useLocalStorage-MLO2O-Eu.js} +1 -1
  169. package/dist/assets/{useThemeProps-BS48y1B2.js → useThemeProps-C4X8Xuf-.js} +1 -1
  170. package/dist/assets/{util-DgOs7OwT.js → util-Byl4XHzq.js} +1 -1
  171. package/dist/assets/{wait-container-CxHAyAQN.js → wait-container-80uXorh3.js} +1 -1
  172. package/dist/assets/{without-wallet-qfmn1VhQ.js → without-wallet-U6nu7HMX.js} +1 -1
  173. package/dist/assets/wrap-locale-pkCcV7CX.js +1 -0
  174. package/dist/assets/{xml-BZRt8HAs.js → xml-CtKLgaY7.js} +1 -1
  175. package/dist/assets/{yaml-0X7rH3i7.js → yaml-CMyMNgnc.js} +1 -1
  176. package/dist/index.html +1 -1
  177. package/package.json +1 -1
  178. package/dist/assets/ArrowDropDown-lsZjWbH5.js +0 -1
  179. package/dist/assets/api-eF9wxSJp.js +0 -1
  180. package/dist/assets/cloneDeep-DNOsGRuG.js +0 -1
  181. package/dist/assets/depsEqual-Cvglsxh5.js +0 -1
  182. package/dist/assets/emotion-cache.browser.esm-Epiq9rij.js +0 -1
  183. package/dist/assets/engine-a9f8P0CB.js +0 -1
  184. package/dist/assets/getValidReactChildren-Cjo-LFyx.js +0 -1
  185. package/dist/assets/index-B31H3tAk.js +0 -1
  186. package/dist/assets/index-HqyXcG7M.js +0 -602
  187. package/dist/assets/omit-C11lcOpj.js +0 -1
  188. package/dist/assets/schema-DidDB4o0.js +0 -1
  189. package/dist/assets/sdk-l1r4MOQ_.js +0 -1
  190. package/dist/assets/toUpper-DXK6zXOf.js +0 -1
  191. package/dist/assets/wrap-locale-D8IL6u8L.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as U,bd as vr,j as u,J as Z,dn as At,bD as he,dp as Ze,dq as Nt,dj as ct,dr as wr,ds as Ft,F as ue,cx as yr,dt,du as $e,aP as We,dv as ke,cz as Ge,dw as Ke,dx as Pt,dy as br,dz as xr,dA as kr,dB as Cr,o as h,cM as Ht,dC as Kt,dD as xt,dE as Sr,dF as ht,bk as Ve,C as ut,dG as Oe,cO as ie,dH as It,dI as _r,dJ as Rt,c7 as Qt,bA as Ar,bg as Vt,dK as Yt,dL as Pr,dM as jt,t as Zt,dN as Ot,dO as kt,y as Ir,dP as jr,z as vt,dQ as Mr,dR as ot,dS as qr,T as Qe,H as Er,dT as Gt,dU as Lr,dV as Jt,dW as Xt,dX as Tr,dY as at,dZ as Rr,d_ as Dt,d$ as ze,e0 as er,h as st,e1 as Or,e2 as tr,e3 as et,e4 as tt,e5 as Dr,e6 as zr,e7 as zt,a3 as $r,dk as Br,dl as Wr,e8 as Ur,f as pt,e9 as Nr,aD as Ct,P as Mt,a$ as Fr,U as Hr,ea as Kr,eb as Qr,cv as Vr,ec as Yr,ed as Zr,ee as wt,c_ as $t,ef as it,eg as Gr,eh as Jr,ei as Xr,ej as en,ek as tn,el as rn,em as nn,en as on,eo as an,c$ as sn,ep as St}from"./index-Bek3Nxot.js";import{M as Je}from"./provider-icon-Dm9XYo2I.js";import{y as ln}from"./index-CDd3s2GI.js";function cn(S,g){const d=U.useRef();U.useEffect(()=>{d.current=S},[S]),U.useEffect(()=>{function C(){d.current()}if(g!==null){const P=setInterval(C,g);return()=>clearInterval(P)}},[g])}const un="wallet_url",qt=()=>window.localStorage.getItem(un)||window.env?.webWalletUrl||window.blocklet?.webWalletUrl||"https://web.abtwallet.io/",rr=S=>{const{protocol:g}=window.location;let d="";try{d=new URL(S).protocol}catch{d=""}return g===d};var lt={exports:{}},dn=lt.exports,Bt;function hn(){return Bt||(Bt=1,function(S,g){(function(d,C){S.exports=C()})(dn,function(){return(()=>{var d={192:(j,b)=>{var A,O,H=function(){var K=function(y,p){var x=y,f=Q[p],c=null,_=0,q=null,m=[],I={},de=function(o,e){c=function(t){for(var r=new Array(t),n=0;n<t;n+=1){r[n]=new Array(t);for(var a=0;a<t;a+=1)r[n][a]=null}return r}(_=4*x+17),X(0,0),X(_-7,0),X(0,_-7),$(),z(),ee(o,e),x>=7&&V(o),q==null&&(q=Se(x,f,m)),ge(q,e)},X=function(o,e){for(var t=-1;t<=7;t+=1)if(!(o+t<=-1||_<=o+t))for(var r=-1;r<=7;r+=1)e+r<=-1||_<=e+r||(c[o+t][e+r]=0<=t&&t<=6&&(r==0||r==6)||0<=r&&r<=6&&(t==0||t==6)||2<=t&&t<=4&&2<=r&&r<=4)},z=function(){for(var o=8;o<_-8;o+=1)c[o][6]==null&&(c[o][6]=o%2==0);for(var e=8;e<_-8;e+=1)c[6][e]==null&&(c[6][e]=e%2==0)},$=function(){for(var o=s.getPatternPosition(x),e=0;e<o.length;e+=1)for(var t=0;t<o.length;t+=1){var r=o[e],n=o[t];if(c[r][n]==null)for(var a=-2;a<=2;a+=1)for(var i=-2;i<=2;i+=1)c[r+a][n+i]=a==-2||a==2||i==-2||i==2||a==0&&i==0}},V=function(o){for(var e=s.getBCHTypeNumber(x),t=0;t<18;t+=1){var r=!o&&(e>>t&1)==1;c[Math.floor(t/3)][t%3+_-8-3]=r}for(t=0;t<18;t+=1)r=!o&&(e>>t&1)==1,c[t%3+_-8-3][Math.floor(t/3)]=r},ee=function(o,e){for(var t=f<<3|e,r=s.getBCHTypeInfo(t),n=0;n<15;n+=1){var a=!o&&(r>>n&1)==1;n<6?c[n][8]=a:n<8?c[n+1][8]=a:c[_-15+n][8]=a}for(n=0;n<15;n+=1)a=!o&&(r>>n&1)==1,n<8?c[8][_-n-1]=a:n<9?c[8][15-n-1+1]=a:c[8][15-n-1]=a;c[_-8][8]=!o},ge=function(o,e){for(var t=-1,r=_-1,n=7,a=0,i=s.getMaskFunction(e),w=_-1;w>0;w-=2)for(w==6&&(w-=1);;){for(var v=0;v<2;v+=1)if(c[r][w-v]==null){var k=!1;a<o.length&&(k=(o[a]>>>n&1)==1),i(r,w-v)&&(k=!k),c[r][w-v]=k,(n-=1)==-1&&(a+=1,n=7)}if((r+=t)<0||_<=r){r-=t,t=-t;break}}},Se=function(o,e,t){for(var r=L.getRSBlocks(o,e),n=J(),a=0;a<t.length;a+=1){var i=t[a];n.put(i.getMode(),4),n.put(i.getLength(),s.getLengthInBits(i.getMode(),o)),i.write(n)}var w=0;for(a=0;a<r.length;a+=1)w+=r[a].dataCount;if(n.getLengthInBits()>8*w)throw"code length overflow. ("+n.getLengthInBits()+">"+8*w+")";for(n.getLengthInBits()+4<=8*w&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=8*w||(n.put(236,8),n.getLengthInBits()>=8*w));)n.put(17,8);return function(v,k){for(var l=0,R=0,te=0,N=new Array(k.length),E=new Array(k.length),T=0;T<k.length;T+=1){var le=k[T].dataCount,ve=k[T].totalCount-le;R=Math.max(R,le),te=Math.max(te,ve),N[T]=new Array(le);for(var W=0;W<N[T].length;W+=1)N[T][W]=255&v.getBuffer()[W+l];l+=le;var ce=s.getErrorCorrectPolynomial(ve),B=pe(N[T],ce.getLength()-1).mod(ce);for(E[T]=new Array(ce.getLength()-1),W=0;W<E[T].length;W+=1){var F=W+B.getLength()-E[T].length;E[T][W]=F>=0?B.getAt(F):0}}var be=0;for(W=0;W<k.length;W+=1)be+=k[W].totalCount;var je=new Array(be),re=0;for(W=0;W<R;W+=1)for(T=0;T<k.length;T+=1)W<N[T].length&&(je[re]=N[T][W],re+=1);for(W=0;W<te;W+=1)for(T=0;T<k.length;T+=1)W<E[T].length&&(je[re]=E[T][W],re+=1);return je}(n,r)};I.addData=function(o,e){var t=null;switch(e=e||"Byte"){case"Numeric":t=me(o);break;case"Alphanumeric":t=oe(o);break;case"Byte":t=Ce(o);break;case"Kanji":t=ye(o);break;default:throw"mode:"+e}m.push(t),q=null},I.isDark=function(o,e){if(o<0||_<=o||e<0||_<=e)throw o+","+e;return c[o][e]},I.getModuleCount=function(){return _},I.make=function(){if(x<1){for(var o=1;o<40;o++){for(var e=L.getRSBlocks(o,f),t=J(),r=0;r<m.length;r++){var n=m[r];t.put(n.getMode(),4),t.put(n.getLength(),s.getLengthInBits(n.getMode(),o)),n.write(t)}var a=0;for(r=0;r<e.length;r++)a+=e[r].dataCount;if(t.getLengthInBits()<=8*a)break}x=o}de(!1,function(){for(var i=0,w=0,v=0;v<8;v+=1){de(!0,v);var k=s.getLostPoint(I);(v==0||i>k)&&(i=k,w=v)}return w}())},I.createTableTag=function(o,e){o=o||2;var t="";t+='<table style="',t+=" border-width: 0px; border-style: none;",t+=" border-collapse: collapse;",t+=" padding: 0px; margin: "+(e=e===void 0?4*o:e)+"px;",t+='">',t+="<tbody>";for(var r=0;r<I.getModuleCount();r+=1){t+="<tr>";for(var n=0;n<I.getModuleCount();n+=1)t+='<td style="',t+=" border-width: 0px; border-style: none;",t+=" border-collapse: collapse;",t+=" padding: 0px; margin: 0px;",t+=" width: "+o+"px;",t+=" height: "+o+"px;",t+=" background-color: ",t+=I.isDark(r,n)?"#000000":"#ffffff",t+=";",t+='"/>';t+="</tr>"}return(t+="</tbody>")+"</table>"},I.createSvgTag=function(o,e,t,r){var n={};typeof arguments[0]=="object"&&(o=(n=arguments[0]).cellSize,e=n.margin,t=n.alt,r=n.title),o=o||2,e=e===void 0?4*o:e,(t=typeof t=="string"?{text:t}:t||{}).text=t.text||null,t.id=t.text?t.id||"qrcode-description":null,(r=typeof r=="string"?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var a,i,w,v,k=I.getModuleCount()*o+2*e,l="";for(v="l"+o+",0 0,"+o+" -"+o+",0 0,-"+o+"z ",l+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',l+=n.scalable?"":' width="'+k+'px" height="'+k+'px"',l+=' viewBox="0 0 '+k+" "+k+'" ',l+=' preserveAspectRatio="xMinYMin meet"',l+=r.text||t.text?' role="img" aria-labelledby="'+Y([r.id,t.id].join(" ").trim())+'"':"",l+=">",l+=r.text?'<title id="'+Y(r.id)+'">'+Y(r.text)+"</title>":"",l+=t.text?'<description id="'+Y(t.id)+'">'+Y(t.text)+"</description>":"",l+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',l+='<path d="',i=0;i<I.getModuleCount();i+=1)for(w=i*o+e,a=0;a<I.getModuleCount();a+=1)I.isDark(i,a)&&(l+="M"+(a*o+e)+","+w+v);return(l+='" stroke="transparent" fill="black"/>')+"</svg>"},I.createDataURL=function(o,e){o=o||2,e=e===void 0?4*o:e;var t=I.getModuleCount()*o+2*e,r=e,n=t-e;return fe(t,t,function(a,i){if(r<=a&&a<n&&r<=i&&i<n){var w=Math.floor((a-r)/o),v=Math.floor((i-r)/o);return I.isDark(v,w)?0:1}return 1})},I.createImgTag=function(o,e,t){o=o||2,e=e===void 0?4*o:e;var r=I.getModuleCount()*o+2*e,n="";return n+="<img",n+=' src="',n+=I.createDataURL(o,e),n+='"',n+=' width="',n+=r,n+='"',n+=' height="',n+=r,n+='"',t&&(n+=' alt="',n+=Y(t),n+='"'),n+"/>"};var Y=function(o){for(var e="",t=0;t<o.length;t+=1){var r=o.charAt(t);switch(r){case"<":e+="&lt;";break;case">":e+="&gt;";break;case"&":e+="&amp;";break;case'"':e+="&quot;";break;default:e+=r}}return e};return I.createASCII=function(o,e){if((o=o||1)<2)return function(N){N=N===void 0?2:N;var E,T,le,ve,W,ce=1*I.getModuleCount()+2*N,B=N,F=ce-N,be={"██":"█","█ ":"▀"," █":"▄"," ":" "},je={"██":"▀","█ ":"▀"," █":" "," ":" "},re="";for(E=0;E<ce;E+=2){for(le=Math.floor((E-B)/1),ve=Math.floor((E+1-B)/1),T=0;T<ce;T+=1)W="█",B<=T&&T<F&&B<=E&&E<F&&I.isDark(le,Math.floor((T-B)/1))&&(W=" "),B<=T&&T<F&&B<=E+1&&E+1<F&&I.isDark(ve,Math.floor((T-B)/1))?W+=" ":W+="█",re+=N<1&&E+1>=F?je[W]:be[W];re+=`
1
+ import{r as U,bd as vr,j as u,J as Z,dn as At,bD as he,dp as Ze,dq as Nt,dj as ct,dr as wr,ds as Ft,F as ue,cx as yr,dt,du as $e,aP as We,dv as ke,cz as Ge,dw as Ke,dx as Pt,dy as br,dz as xr,dA as kr,dB as Cr,o as h,cM as Ht,dC as Kt,dD as xt,dE as Sr,dF as ht,bk as Ve,C as ut,dG as Oe,cO as ie,dH as It,dI as _r,dJ as Rt,c7 as Qt,bA as Ar,bg as Vt,dK as Yt,dL as Pr,dM as jt,t as Zt,dN as Ot,dO as kt,y as Ir,dP as jr,z as vt,dQ as Mr,dR as ot,dS as qr,T as Qe,H as Er,dT as Gt,dU as Lr,dV as Jt,dW as Xt,dX as Tr,dY as at,dZ as Rr,d_ as Dt,d$ as ze,e0 as er,h as st,e1 as Or,e2 as tr,e3 as et,e4 as tt,e5 as Dr,e6 as zr,e7 as zt,a3 as $r,dk as Br,dl as Wr,e8 as Ur,f as pt,e9 as Nr,aD as Ct,P as Mt,a$ as Fr,U as Hr,ea as Kr,eb as Qr,cv as Vr,ec as Yr,ed as Zr,ee as wt,c_ as $t,ef as it,eg as Gr,eh as Jr,ei as Xr,ej as en,ek as tn,el as rn,em as nn,en as on,eo as an,c$ as sn,ep as St}from"./index-DQhyMeoV.js";import{M as Je}from"./provider-icon-CFKcu3V6.js";import{y as ln}from"./index-CVfXb0nN.js";function cn(S,g){const d=U.useRef();U.useEffect(()=>{d.current=S},[S]),U.useEffect(()=>{function C(){d.current()}if(g!==null){const P=setInterval(C,g);return()=>clearInterval(P)}},[g])}const un="wallet_url",qt=()=>window.localStorage.getItem(un)||window.env?.webWalletUrl||window.blocklet?.webWalletUrl||"https://web.abtwallet.io/",rr=S=>{const{protocol:g}=window.location;let d="";try{d=new URL(S).protocol}catch{d=""}return g===d};var lt={exports:{}},dn=lt.exports,Bt;function hn(){return Bt||(Bt=1,function(S,g){(function(d,C){S.exports=C()})(dn,function(){return(()=>{var d={192:(j,b)=>{var A,O,H=function(){var K=function(y,p){var x=y,f=Q[p],c=null,_=0,q=null,m=[],I={},de=function(o,e){c=function(t){for(var r=new Array(t),n=0;n<t;n+=1){r[n]=new Array(t);for(var a=0;a<t;a+=1)r[n][a]=null}return r}(_=4*x+17),X(0,0),X(_-7,0),X(0,_-7),$(),z(),ee(o,e),x>=7&&V(o),q==null&&(q=Se(x,f,m)),ge(q,e)},X=function(o,e){for(var t=-1;t<=7;t+=1)if(!(o+t<=-1||_<=o+t))for(var r=-1;r<=7;r+=1)e+r<=-1||_<=e+r||(c[o+t][e+r]=0<=t&&t<=6&&(r==0||r==6)||0<=r&&r<=6&&(t==0||t==6)||2<=t&&t<=4&&2<=r&&r<=4)},z=function(){for(var o=8;o<_-8;o+=1)c[o][6]==null&&(c[o][6]=o%2==0);for(var e=8;e<_-8;e+=1)c[6][e]==null&&(c[6][e]=e%2==0)},$=function(){for(var o=s.getPatternPosition(x),e=0;e<o.length;e+=1)for(var t=0;t<o.length;t+=1){var r=o[e],n=o[t];if(c[r][n]==null)for(var a=-2;a<=2;a+=1)for(var i=-2;i<=2;i+=1)c[r+a][n+i]=a==-2||a==2||i==-2||i==2||a==0&&i==0}},V=function(o){for(var e=s.getBCHTypeNumber(x),t=0;t<18;t+=1){var r=!o&&(e>>t&1)==1;c[Math.floor(t/3)][t%3+_-8-3]=r}for(t=0;t<18;t+=1)r=!o&&(e>>t&1)==1,c[t%3+_-8-3][Math.floor(t/3)]=r},ee=function(o,e){for(var t=f<<3|e,r=s.getBCHTypeInfo(t),n=0;n<15;n+=1){var a=!o&&(r>>n&1)==1;n<6?c[n][8]=a:n<8?c[n+1][8]=a:c[_-15+n][8]=a}for(n=0;n<15;n+=1)a=!o&&(r>>n&1)==1,n<8?c[8][_-n-1]=a:n<9?c[8][15-n-1+1]=a:c[8][15-n-1]=a;c[_-8][8]=!o},ge=function(o,e){for(var t=-1,r=_-1,n=7,a=0,i=s.getMaskFunction(e),w=_-1;w>0;w-=2)for(w==6&&(w-=1);;){for(var v=0;v<2;v+=1)if(c[r][w-v]==null){var k=!1;a<o.length&&(k=(o[a]>>>n&1)==1),i(r,w-v)&&(k=!k),c[r][w-v]=k,(n-=1)==-1&&(a+=1,n=7)}if((r+=t)<0||_<=r){r-=t,t=-t;break}}},Se=function(o,e,t){for(var r=L.getRSBlocks(o,e),n=J(),a=0;a<t.length;a+=1){var i=t[a];n.put(i.getMode(),4),n.put(i.getLength(),s.getLengthInBits(i.getMode(),o)),i.write(n)}var w=0;for(a=0;a<r.length;a+=1)w+=r[a].dataCount;if(n.getLengthInBits()>8*w)throw"code length overflow. ("+n.getLengthInBits()+">"+8*w+")";for(n.getLengthInBits()+4<=8*w&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=8*w||(n.put(236,8),n.getLengthInBits()>=8*w));)n.put(17,8);return function(v,k){for(var l=0,R=0,te=0,N=new Array(k.length),E=new Array(k.length),T=0;T<k.length;T+=1){var le=k[T].dataCount,ve=k[T].totalCount-le;R=Math.max(R,le),te=Math.max(te,ve),N[T]=new Array(le);for(var W=0;W<N[T].length;W+=1)N[T][W]=255&v.getBuffer()[W+l];l+=le;var ce=s.getErrorCorrectPolynomial(ve),B=pe(N[T],ce.getLength()-1).mod(ce);for(E[T]=new Array(ce.getLength()-1),W=0;W<E[T].length;W+=1){var F=W+B.getLength()-E[T].length;E[T][W]=F>=0?B.getAt(F):0}}var be=0;for(W=0;W<k.length;W+=1)be+=k[W].totalCount;var je=new Array(be),re=0;for(W=0;W<R;W+=1)for(T=0;T<k.length;T+=1)W<N[T].length&&(je[re]=N[T][W],re+=1);for(W=0;W<te;W+=1)for(T=0;T<k.length;T+=1)W<E[T].length&&(je[re]=E[T][W],re+=1);return je}(n,r)};I.addData=function(o,e){var t=null;switch(e=e||"Byte"){case"Numeric":t=me(o);break;case"Alphanumeric":t=oe(o);break;case"Byte":t=Ce(o);break;case"Kanji":t=ye(o);break;default:throw"mode:"+e}m.push(t),q=null},I.isDark=function(o,e){if(o<0||_<=o||e<0||_<=e)throw o+","+e;return c[o][e]},I.getModuleCount=function(){return _},I.make=function(){if(x<1){for(var o=1;o<40;o++){for(var e=L.getRSBlocks(o,f),t=J(),r=0;r<m.length;r++){var n=m[r];t.put(n.getMode(),4),t.put(n.getLength(),s.getLengthInBits(n.getMode(),o)),n.write(t)}var a=0;for(r=0;r<e.length;r++)a+=e[r].dataCount;if(t.getLengthInBits()<=8*a)break}x=o}de(!1,function(){for(var i=0,w=0,v=0;v<8;v+=1){de(!0,v);var k=s.getLostPoint(I);(v==0||i>k)&&(i=k,w=v)}return w}())},I.createTableTag=function(o,e){o=o||2;var t="";t+='<table style="',t+=" border-width: 0px; border-style: none;",t+=" border-collapse: collapse;",t+=" padding: 0px; margin: "+(e=e===void 0?4*o:e)+"px;",t+='">',t+="<tbody>";for(var r=0;r<I.getModuleCount();r+=1){t+="<tr>";for(var n=0;n<I.getModuleCount();n+=1)t+='<td style="',t+=" border-width: 0px; border-style: none;",t+=" border-collapse: collapse;",t+=" padding: 0px; margin: 0px;",t+=" width: "+o+"px;",t+=" height: "+o+"px;",t+=" background-color: ",t+=I.isDark(r,n)?"#000000":"#ffffff",t+=";",t+='"/>';t+="</tr>"}return(t+="</tbody>")+"</table>"},I.createSvgTag=function(o,e,t,r){var n={};typeof arguments[0]=="object"&&(o=(n=arguments[0]).cellSize,e=n.margin,t=n.alt,r=n.title),o=o||2,e=e===void 0?4*o:e,(t=typeof t=="string"?{text:t}:t||{}).text=t.text||null,t.id=t.text?t.id||"qrcode-description":null,(r=typeof r=="string"?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var a,i,w,v,k=I.getModuleCount()*o+2*e,l="";for(v="l"+o+",0 0,"+o+" -"+o+",0 0,-"+o+"z ",l+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',l+=n.scalable?"":' width="'+k+'px" height="'+k+'px"',l+=' viewBox="0 0 '+k+" "+k+'" ',l+=' preserveAspectRatio="xMinYMin meet"',l+=r.text||t.text?' role="img" aria-labelledby="'+Y([r.id,t.id].join(" ").trim())+'"':"",l+=">",l+=r.text?'<title id="'+Y(r.id)+'">'+Y(r.text)+"</title>":"",l+=t.text?'<description id="'+Y(t.id)+'">'+Y(t.text)+"</description>":"",l+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',l+='<path d="',i=0;i<I.getModuleCount();i+=1)for(w=i*o+e,a=0;a<I.getModuleCount();a+=1)I.isDark(i,a)&&(l+="M"+(a*o+e)+","+w+v);return(l+='" stroke="transparent" fill="black"/>')+"</svg>"},I.createDataURL=function(o,e){o=o||2,e=e===void 0?4*o:e;var t=I.getModuleCount()*o+2*e,r=e,n=t-e;return fe(t,t,function(a,i){if(r<=a&&a<n&&r<=i&&i<n){var w=Math.floor((a-r)/o),v=Math.floor((i-r)/o);return I.isDark(v,w)?0:1}return 1})},I.createImgTag=function(o,e,t){o=o||2,e=e===void 0?4*o:e;var r=I.getModuleCount()*o+2*e,n="";return n+="<img",n+=' src="',n+=I.createDataURL(o,e),n+='"',n+=' width="',n+=r,n+='"',n+=' height="',n+=r,n+='"',t&&(n+=' alt="',n+=Y(t),n+='"'),n+"/>"};var Y=function(o){for(var e="",t=0;t<o.length;t+=1){var r=o.charAt(t);switch(r){case"<":e+="&lt;";break;case">":e+="&gt;";break;case"&":e+="&amp;";break;case'"':e+="&quot;";break;default:e+=r}}return e};return I.createASCII=function(o,e){if((o=o||1)<2)return function(N){N=N===void 0?2:N;var E,T,le,ve,W,ce=1*I.getModuleCount()+2*N,B=N,F=ce-N,be={"██":"█","█ ":"▀"," █":"▄"," ":" "},je={"██":"▀","█ ":"▀"," █":" "," ":" "},re="";for(E=0;E<ce;E+=2){for(le=Math.floor((E-B)/1),ve=Math.floor((E+1-B)/1),T=0;T<ce;T+=1)W="█",B<=T&&T<F&&B<=E&&E<F&&I.isDark(le,Math.floor((T-B)/1))&&(W=" "),B<=T&&T<F&&B<=E+1&&E+1<F&&I.isDark(ve,Math.floor((T-B)/1))?W+=" ":W+="█",re+=N<1&&E+1>=F?je[W]:be[W];re+=`
2
2
  `}return ce%2&&N>0?re.substring(0,re.length-ce-1)+Array(ce+1).join("▀"):re.substring(0,re.length-1)}(e);o-=1,e=e===void 0?2*o:e;var t,r,n,a,i=I.getModuleCount()*o+2*e,w=e,v=i-e,k=Array(o+1).join("██"),l=Array(o+1).join(" "),R="",te="";for(t=0;t<i;t+=1){for(n=Math.floor((t-w)/o),te="",r=0;r<i;r+=1)a=1,w<=r&&r<v&&w<=t&&t<v&&I.isDark(n,Math.floor((r-w)/o))&&(a=0),te+=a?k:l;for(n=0;n<o;n+=1)R+=te+`
3
3
  `}return R.substring(0,R.length-1)},I.renderTo2dContext=function(o,e){e=e||2;for(var t=I.getModuleCount(),r=0;r<t;r++)for(var n=0;n<t;n++)o.fillStyle=I.isDark(r,n)?"black":"white",o.fillRect(r*e,n*e,e,e)},I};K.stringToBytes=(K.stringToBytesFuncs={default:function(y){for(var p=[],x=0;x<y.length;x+=1){var f=y.charCodeAt(x);p.push(255&f)}return p}}).default,K.createStringToBytes=function(y,p){var x=function(){for(var c=Ae(y),_=function(){var z=c.read();if(z==-1)throw"eof";return z},q=0,m={};;){var I=c.read();if(I==-1)break;var de=_(),X=_()<<8|_();m[String.fromCharCode(I<<8|de)]=X,q+=1}if(q!=p)throw q+" != "+p;return m}(),f=63;return function(c){for(var _=[],q=0;q<c.length;q+=1){var m=c.charCodeAt(q);if(m<128)_.push(m);else{var I=x[c.charAt(q)];typeof I=="number"?(255&I)==I?_.push(I):(_.push(I>>>8),_.push(255&I)):_.push(f)}}return _}};var ne,M,G,D,ae,Q={L:1,M:0,Q:3,H:2},s=(ne=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],M=1335,G=7973,ae=function(y){for(var p=0;y!=0;)p+=1,y>>>=1;return p},(D={}).getBCHTypeInfo=function(y){for(var p=y<<10;ae(p)-ae(M)>=0;)p^=M<<ae(p)-ae(M);return 21522^(y<<10|p)},D.getBCHTypeNumber=function(y){for(var p=y<<12;ae(p)-ae(G)>=0;)p^=G<<ae(p)-ae(G);return y<<12|p},D.getPatternPosition=function(y){return ne[y-1]},D.getMaskFunction=function(y){switch(y){case 0:return function(p,x){return(p+x)%2==0};case 1:return function(p,x){return p%2==0};case 2:return function(p,x){return x%3==0};case 3:return function(p,x){return(p+x)%3==0};case 4:return function(p,x){return(Math.floor(p/2)+Math.floor(x/3))%2==0};case 5:return function(p,x){return p*x%2+p*x%3==0};case 6:return function(p,x){return(p*x%2+p*x%3)%2==0};case 7:return function(p,x){return(p*x%3+(p+x)%2)%2==0};default:throw"bad maskPattern:"+y}},D.getErrorCorrectPolynomial=function(y){for(var p=pe([1],0),x=0;x<y;x+=1)p=p.multiply(pe([1,se.gexp(x)],0));return p},D.getLengthInBits=function(y,p){if(1<=p&&p<10)switch(y){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+y}else if(p<27)switch(y){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+y}else{if(!(p<41))throw"type:"+p;switch(y){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+y}}},D.getLostPoint=function(y){for(var p=y.getModuleCount(),x=0,f=0;f<p;f+=1)for(var c=0;c<p;c+=1){for(var _=0,q=y.isDark(f,c),m=-1;m<=1;m+=1)if(!(f+m<0||p<=f+m))for(var I=-1;I<=1;I+=1)c+I<0||p<=c+I||m==0&&I==0||q==y.isDark(f+m,c+I)&&(_+=1);_>5&&(x+=3+_-5)}for(f=0;f<p-1;f+=1)for(c=0;c<p-1;c+=1){var de=0;y.isDark(f,c)&&(de+=1),y.isDark(f+1,c)&&(de+=1),y.isDark(f,c+1)&&(de+=1),y.isDark(f+1,c+1)&&(de+=1),de!=0&&de!=4||(x+=3)}for(f=0;f<p;f+=1)for(c=0;c<p-6;c+=1)y.isDark(f,c)&&!y.isDark(f,c+1)&&y.isDark(f,c+2)&&y.isDark(f,c+3)&&y.isDark(f,c+4)&&!y.isDark(f,c+5)&&y.isDark(f,c+6)&&(x+=40);for(c=0;c<p;c+=1)for(f=0;f<p-6;f+=1)y.isDark(f,c)&&!y.isDark(f+1,c)&&y.isDark(f+2,c)&&y.isDark(f+3,c)&&y.isDark(f+4,c)&&!y.isDark(f+5,c)&&y.isDark(f+6,c)&&(x+=40);var X=0;for(c=0;c<p;c+=1)for(f=0;f<p;f+=1)y.isDark(f,c)&&(X+=1);return x+Math.abs(100*X/p/p-50)/5*10},D),se=function(){for(var y=new Array(256),p=new Array(256),x=0;x<8;x+=1)y[x]=1<<x;for(x=8;x<256;x+=1)y[x]=y[x-4]^y[x-5]^y[x-6]^y[x-8];for(x=0;x<255;x+=1)p[y[x]]=x;return{glog:function(f){if(f<1)throw"glog("+f+")";return p[f]},gexp:function(f){for(;f<0;)f+=255;for(;f>=256;)f-=255;return y[f]}}}();function pe(y,p){if(y.length===void 0)throw y.length+"/"+p;var x=function(){for(var c=0;c<y.length&&y[c]==0;)c+=1;for(var _=new Array(y.length-c+p),q=0;q<y.length-c;q+=1)_[q]=y[q+c];return _}(),f={getAt:function(c){return x[c]},getLength:function(){return x.length},multiply:function(c){for(var _=new Array(f.getLength()+c.getLength()-1),q=0;q<f.getLength();q+=1)for(var m=0;m<c.getLength();m+=1)_[q+m]^=se.gexp(se.glog(f.getAt(q))+se.glog(c.getAt(m)));return pe(_,0)},mod:function(c){if(f.getLength()-c.getLength()<0)return f;for(var _=se.glog(f.getAt(0))-se.glog(c.getAt(0)),q=new Array(f.getLength()),m=0;m<f.getLength();m+=1)q[m]=f.getAt(m);for(m=0;m<c.getLength();m+=1)q[m]^=se.gexp(se.glog(c.getAt(m))+_);return pe(q,0).mod(c)}};return f}var L=function(){var y=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],p=function(f,c){var _={};return _.totalCount=f,_.dataCount=c,_},x={getRSBlocks:function(f,c){var _=function(V,ee){switch(ee){case Q.L:return y[4*(V-1)+0];case Q.M:return y[4*(V-1)+1];case Q.Q:return y[4*(V-1)+2];case Q.H:return y[4*(V-1)+3];default:return}}(f,c);if(_===void 0)throw"bad rs block @ typeNumber:"+f+"/errorCorrectionLevel:"+c;for(var q=_.length/3,m=[],I=0;I<q;I+=1)for(var de=_[3*I+0],X=_[3*I+1],z=_[3*I+2],$=0;$<de;$+=1)m.push(p(X,z));return m}};return x}(),J=function(){var y=[],p=0,x={getBuffer:function(){return y},getAt:function(f){var c=Math.floor(f/8);return(y[c]>>>7-f%8&1)==1},put:function(f,c){for(var _=0;_<c;_+=1)x.putBit((f>>>c-_-1&1)==1)},getLengthInBits:function(){return p},putBit:function(f){var c=Math.floor(p/8);y.length<=c&&y.push(0),f&&(y[c]|=128>>>p%8),p+=1}};return x},me=function(y){var p=y,x={getMode:function(){return 1},getLength:function(_){return p.length},write:function(_){for(var q=p,m=0;m+2<q.length;)_.put(f(q.substring(m,m+3)),10),m+=3;m<q.length&&(q.length-m==1?_.put(f(q.substring(m,m+1)),4):q.length-m==2&&_.put(f(q.substring(m,m+2)),7))}},f=function(_){for(var q=0,m=0;m<_.length;m+=1)q=10*q+c(_.charAt(m));return q},c=function(_){if("0"<=_&&_<="9")return _.charCodeAt(0)-48;throw"illegal char :"+_};return x},oe=function(y){var p=y,x={getMode:function(){return 2},getLength:function(c){return p.length},write:function(c){for(var _=p,q=0;q+1<_.length;)c.put(45*f(_.charAt(q))+f(_.charAt(q+1)),11),q+=2;q<_.length&&c.put(f(_.charAt(q)),6)}},f=function(c){if("0"<=c&&c<="9")return c.charCodeAt(0)-48;if("A"<=c&&c<="Z")return c.charCodeAt(0)-65+10;switch(c){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+c}};return x},Ce=function(y){var p=K.stringToBytes(y);return{getMode:function(){return 4},getLength:function(x){return p.length},write:function(x){for(var f=0;f<p.length;f+=1)x.put(p[f],8)}}},ye=function(y){var p=K.stringToBytesFuncs.SJIS;if(!p)throw"sjis not supported.";(function(c,_){var q=p("友");if(q.length!=2||(q[0]<<8|q[1])!=38726)throw"sjis not supported."})();var x=p(y),f={getMode:function(){return 8},getLength:function(c){return~~(x.length/2)},write:function(c){for(var _=x,q=0;q+1<_.length;){var m=(255&_[q])<<8|255&_[q+1];if(33088<=m&&m<=40956)m-=33088;else{if(!(57408<=m&&m<=60351))throw"illegal char at "+(q+1)+"/"+m;m-=49472}m=192*(m>>>8&255)+(255&m),c.put(m,13),q+=2}if(q<_.length)throw"illegal char at "+(q+1)}};return f},we=function(){var y=[],p={writeByte:function(x){y.push(255&x)},writeShort:function(x){p.writeByte(x),p.writeByte(x>>>8)},writeBytes:function(x,f,c){f=f||0,c=c||x.length;for(var _=0;_<c;_+=1)p.writeByte(x[_+f])},writeString:function(x){for(var f=0;f<x.length;f+=1)p.writeByte(x.charCodeAt(f))},toByteArray:function(){return y},toString:function(){var x="";x+="[";for(var f=0;f<y.length;f+=1)f>0&&(x+=","),x+=y[f];return x+"]"}};return p},Ae=function(y){var p=y,x=0,f=0,c=0,_={read:function(){for(;c<8;){if(x>=p.length){if(c==0)return-1;throw"unexpected end of file./"+c}var m=p.charAt(x);if(x+=1,m=="=")return c=0,-1;m.match(/^\s$/)||(f=f<<6|q(m.charCodeAt(0)),c+=6)}var I=f>>>c-8&255;return c-=8,I}},q=function(m){if(65<=m&&m<=90)return m-65;if(97<=m&&m<=122)return m-97+26;if(48<=m&&m<=57)return m-48+52;if(m==43)return 62;if(m==47)return 63;throw"c:"+m};return _},fe=function(y,p,x){for(var f=function(X,z){var $=X,V=z,ee=new Array(X*z),ge={setPixel:function(o,e,t){ee[e*$+o]=t},write:function(o){o.writeString("GIF87a"),o.writeShort($),o.writeShort(V),o.writeByte(128),o.writeByte(0),o.writeByte(0),o.writeByte(0),o.writeByte(0),o.writeByte(0),o.writeByte(255),o.writeByte(255),o.writeByte(255),o.writeString(","),o.writeShort(0),o.writeShort(0),o.writeShort($),o.writeShort(V),o.writeByte(0);var e=Se(2);o.writeByte(2);for(var t=0;e.length-t>255;)o.writeByte(255),o.writeBytes(e,t,255),t+=255;o.writeByte(e.length-t),o.writeBytes(e,t,e.length-t),o.writeByte(0),o.writeString(";")}},Se=function(o){for(var e=1<<o,t=1+(1<<o),r=o+1,n=Y(),a=0;a<e;a+=1)n.add(String.fromCharCode(a));n.add(String.fromCharCode(e)),n.add(String.fromCharCode(t));var i,w,v,k=we(),l=(i=k,w=0,v=0,{write:function(E,T){if(E>>>T)throw"length over";for(;w+T>=8;)i.writeByte(255&(E<<w|v)),T-=8-w,E>>>=8-w,v=0,w=0;v|=E<<w,w+=T},flush:function(){w>0&&i.writeByte(v)}});l.write(e,r);var R=0,te=String.fromCharCode(ee[R]);for(R+=1;R<ee.length;){var N=String.fromCharCode(ee[R]);R+=1,n.contains(te+N)?te+=N:(l.write(n.indexOf(te),r),n.size()<4095&&(n.size()==1<<r&&(r+=1),n.add(te+N)),te=N)}return l.write(n.indexOf(te),r),l.write(t,r),l.flush(),k.toByteArray()},Y=function(){var o={},e=0,t={add:function(r){if(t.contains(r))throw"dup key:"+r;o[r]=e,e+=1},size:function(){return e},indexOf:function(r){return o[r]},contains:function(r){return o[r]!==void 0}};return t};return ge}(y,p),c=0;c<p;c+=1)for(var _=0;_<y;_+=1)f.setPixel(_,c,x(_,c));var q=we();f.write(q);for(var m=function(){var X=0,z=0,$=0,V="",ee={},ge=function(Y){V+=String.fromCharCode(Se(63&Y))},Se=function(Y){if(!(Y<0)){if(Y<26)return 65+Y;if(Y<52)return Y-26+97;if(Y<62)return Y-52+48;if(Y==62)return 43;if(Y==63)return 47}throw"n:"+Y};return ee.writeByte=function(Y){for(X=X<<8|255&Y,z+=8,$+=1;z>=6;)ge(X>>>z-6),z-=6},ee.flush=function(){if(z>0&&(ge(X<<6-z),X=0,z=0),$%3!=0)for(var Y=3-$%3,o=0;o<Y;o+=1)V+="="},ee.toString=function(){return V},ee}(),I=q.toByteArray(),de=0;de<I.length;de+=1)m.writeByte(I[de]);return m.flush(),"data:image/gif;base64,"+m};return K}();H.stringToBytesFuncs["UTF-8"]=function(K){return function(ne){for(var M=[],G=0;G<ne.length;G++){var D=ne.charCodeAt(G);D<128?M.push(D):D<2048?M.push(192|D>>6,128|63&D):D<55296||D>=57344?M.push(224|D>>12,128|D>>6&63,128|63&D):(G++,D=65536+((1023&D)<<10|1023&ne.charCodeAt(G)),M.push(240|D>>18,128|D>>12&63,128|D>>6&63,128|63&D))}return M}(K)},(O=typeof(A=function(){return H})=="function"?A.apply(b,[]):A)===void 0||(j.exports=O)},676:(j,b,A)=>{A.d(b,{default:()=>Y});const O="Numeric",H="Alphanumeric",K="Byte";var ne=function(){return ne=Object.assign||function(o){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},ne.apply(this,arguments)},M=function(){for(var o=0,e=0,t=arguments.length;e<t;e++)o+=arguments[e].length;var r=Array(o),n=0;for(e=0;e<t;e++)for(var a=arguments[e],i=0,w=a.length;i<w;i++,n++)r[n]=a[i];return r},G=function(o){return!!o&&typeof o=="object"&&!Array.isArray(o)};function D(o){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(!e.length)return o;var r=e.shift();return r!==void 0&&G(o)&&G(r)?(o=ne({},o),Object.keys(r).forEach(function(n){var a=o[n],i=r[n];Array.isArray(a)&&Array.isArray(i)?o[n]=i:G(a)&&G(i)?o[n]=D(Object.assign({},a),i):o[n]=i}),D.apply(void 0,M([o],e))):o}function ae(o,e){var t=document.createElement("a");t.download=e,t.href=o,document.body.appendChild(t),t.click(),document.body.removeChild(t)}var Q=function(o,e,t,r){return new(t||(t=Promise))(function(n,a){function i(k){try{v(r.next(k))}catch(l){a(l)}}function w(k){try{v(r.throw(k))}catch(l){a(l)}}function v(k){var l;k.done?n(k.value):(l=k.value,l instanceof t?l:new t(function(R){R(l)})).then(i,w)}v((r=r.apply(o,[])).next())})},s=function(o,e){var t,r,n,a,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function w(v){return function(k){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(n=2&l[0]?r.return:l[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,l[1])).done)return n;switch(r=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((n=(n=i.trys).length>0&&n[n.length-1])||l[0]!==6&&l[0]!==2)){i=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){i.label=l[1];break}if(l[0]===6&&i.label<n[1]){i.label=n[1],n=l;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(l);break}n[2]&&i.ops.pop(),i.trys.pop();continue}l=e.call(o,i)}catch(R){l=[6,R],r=0}finally{t=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([v,k])}}};function se(o){return Q(this,void 0,void 0,function(){return s(this,function(e){return[2,new Promise(function(t){var r=new XMLHttpRequest;r.onload=function(){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(r.response)},r.open("GET",o),r.responseType="blob",r.send()})]})})}const pe={L:.07,M:.15,Q:.25,H:.3};var L=function(){return L=Object.assign||function(o){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},L.apply(this,arguments)},J=function(){function o(e){var t=e.svg,r=e.type;this._svg=t,this._type=r}return o.prototype.draw=function(e,t,r,n){var a;switch(this._type){case"dots":a=this._drawDot;break;case"classy":a=this._drawClassy;break;case"classy-rounded":a=this._drawClassyRounded;break;case"rounded":a=this._drawRounded;break;case"extra-rounded":a=this._drawExtraRounded;break;default:a=this._drawSquare}a.call(this,{x:e,y:t,size:r,getNeighbor:n})},o.prototype._rotateFigure=function(e){var t,r=e.x,n=e.y,a=e.size,i=e.rotation,w=i===void 0?0:i,v=r+a/2,k=n+a/2;(0,e.draw)(),(t=this._element)===null||t===void 0||t.setAttribute("transform","rotate("+180*w/Math.PI+","+v+","+k+")")},o.prototype._basicDot=function(e){var t=this,r=e.size,n=e.x,a=e.y;this._rotateFigure(L(L({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),t._element.setAttribute("cx",String(n+r/2)),t._element.setAttribute("cy",String(a+r/2)),t._element.setAttribute("r",String(r/2))}}))},o.prototype._basicSquare=function(e){var t=this,r=e.size,n=e.x,a=e.y;this._rotateFigure(L(L({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),t._element.setAttribute("x",String(n)),t._element.setAttribute("y",String(a)),t._element.setAttribute("width",String(r)),t._element.setAttribute("height",String(r))}}))},o.prototype._basicSideRounded=function(e){var t=this,r=e.size,n=e.x,a=e.y;this._rotateFigure(L(L({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+n+" "+a+"v "+r+"h "+r/2+"a "+r/2+" "+r/2+", 0, 0, 0, 0 "+-r)}}))},o.prototype._basicCornerRounded=function(e){var t=this,r=e.size,n=e.x,a=e.y;this._rotateFigure(L(L({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+n+" "+a+"v "+r+"h "+r+"v "+-r/2+"a "+r/2+" "+r/2+", 0, 0, 0, "+-r/2+" "+-r/2)}}))},o.prototype._basicCornerExtraRounded=function(e){var t=this,r=e.size,n=e.x,a=e.y;this._rotateFigure(L(L({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+n+" "+a+"v "+r+"h "+r+"a "+r+" "+r+", 0, 0, 0, "+-r+" "+-r)}}))},o.prototype._basicCornersRounded=function(e){var t=this,r=e.size,n=e.x,a=e.y;this._rotateFigure(L(L({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("d","M "+n+" "+a+"v "+r/2+"a "+r/2+" "+r/2+", 0, 0, 0, "+r/2+" "+r/2+"h "+r/2+"v "+-r/2+"a "+r/2+" "+r/2+", 0, 0, 0, "+-r/2+" "+-r/2)}}))},o.prototype._drawDot=function(e){var t=e.x,r=e.y,n=e.size;this._basicDot({x:t,y:r,size:n,rotation:0})},o.prototype._drawSquare=function(e){var t=e.x,r=e.y,n=e.size;this._basicSquare({x:t,y:r,size:n,rotation:0})},o.prototype._drawRounded=function(e){var t=e.x,r=e.y,n=e.size,a=e.getNeighbor,i=a?+a(-1,0):0,w=a?+a(1,0):0,v=a?+a(0,-1):0,k=a?+a(0,1):0,l=i+w+v+k;if(l!==0)if(l>2||i&&w||v&&k)this._basicSquare({x:t,y:r,size:n,rotation:0});else{if(l===2){var R=0;return i&&v?R=Math.PI/2:v&&w?R=Math.PI:w&&k&&(R=-Math.PI/2),void this._basicCornerRounded({x:t,y:r,size:n,rotation:R})}if(l===1)return R=0,v?R=Math.PI/2:w?R=Math.PI:k&&(R=-Math.PI/2),void this._basicSideRounded({x:t,y:r,size:n,rotation:R})}else this._basicDot({x:t,y:r,size:n,rotation:0})},o.prototype._drawExtraRounded=function(e){var t=e.x,r=e.y,n=e.size,a=e.getNeighbor,i=a?+a(-1,0):0,w=a?+a(1,0):0,v=a?+a(0,-1):0,k=a?+a(0,1):0,l=i+w+v+k;if(l!==0)if(l>2||i&&w||v&&k)this._basicSquare({x:t,y:r,size:n,rotation:0});else{if(l===2){var R=0;return i&&v?R=Math.PI/2:v&&w?R=Math.PI:w&&k&&(R=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:r,size:n,rotation:R})}if(l===1)return R=0,v?R=Math.PI/2:w?R=Math.PI:k&&(R=-Math.PI/2),void this._basicSideRounded({x:t,y:r,size:n,rotation:R})}else this._basicDot({x:t,y:r,size:n,rotation:0})},o.prototype._drawClassy=function(e){var t=e.x,r=e.y,n=e.size,a=e.getNeighbor,i=a?+a(-1,0):0,w=a?+a(1,0):0,v=a?+a(0,-1):0,k=a?+a(0,1):0;i+w+v+k!==0?i||v?w||k?this._basicSquare({x:t,y:r,size:n,rotation:0}):this._basicCornerRounded({x:t,y:r,size:n,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:r,size:n,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:r,size:n,rotation:Math.PI/2})},o.prototype._drawClassyRounded=function(e){var t=e.x,r=e.y,n=e.size,a=e.getNeighbor,i=a?+a(-1,0):0,w=a?+a(1,0):0,v=a?+a(0,-1):0,k=a?+a(0,1):0;i+w+v+k!==0?i||v?w||k?this._basicSquare({x:t,y:r,size:n,rotation:0}):this._basicCornerExtraRounded({x:t,y:r,size:n,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:r,size:n,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:r,size:n,rotation:Math.PI/2})},o}();const me=J;var oe=function(){return oe=Object.assign||function(o){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},oe.apply(this,arguments)},Ce=function(){function o(e){var t=e.svg,r=e.type;this._svg=t,this._type=r}return o.prototype.draw=function(e,t,r,n){var a;switch(this._type){case"square":a=this._drawSquare;break;case"extra-rounded":a=this._drawExtraRounded;break;default:a=this._drawDot}a.call(this,{x:e,y:t,size:r,rotation:n})},o.prototype._rotateFigure=function(e){var t,r=e.x,n=e.y,a=e.size,i=e.rotation,w=i===void 0?0:i,v=r+a/2,k=n+a/2;(0,e.draw)(),(t=this._element)===null||t===void 0||t.setAttribute("transform","rotate("+180*w/Math.PI+","+v+","+k+")")},o.prototype._basicDot=function(e){var t=this,r=e.size,n=e.x,a=e.y,i=r/7;this._rotateFigure(oe(oe({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("clip-rule","evenodd"),t._element.setAttribute("d","M "+(n+r/2)+" "+a+"a "+r/2+" "+r/2+" 0 1 0 0.1 0zm 0 "+i+"a "+(r/2-i)+" "+(r/2-i)+" 0 1 1 -0.1 0Z")}}))},o.prototype._basicSquare=function(e){var t=this,r=e.size,n=e.x,a=e.y,i=r/7;this._rotateFigure(oe(oe({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("clip-rule","evenodd"),t._element.setAttribute("d","M "+n+" "+a+"v "+r+"h "+r+"v "+-r+"zM "+(n+i)+" "+(a+i)+"h "+(r-2*i)+"v "+(r-2*i)+"h "+(2*i-r)+"z")}}))},o.prototype._basicExtraRounded=function(e){var t=this,r=e.size,n=e.x,a=e.y,i=r/7;this._rotateFigure(oe(oe({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","path"),t._element.setAttribute("clip-rule","evenodd"),t._element.setAttribute("d","M "+n+" "+(a+2.5*i)+"v "+2*i+"a "+2.5*i+" "+2.5*i+", 0, 0, 0, "+2.5*i+" "+2.5*i+"h "+2*i+"a "+2.5*i+" "+2.5*i+", 0, 0, 0, "+2.5*i+" "+2.5*-i+"v "+-2*i+"a "+2.5*i+" "+2.5*i+", 0, 0, 0, "+2.5*-i+" "+2.5*-i+"h "+-2*i+"a "+2.5*i+" "+2.5*i+", 0, 0, 0, "+2.5*-i+" "+2.5*i+"M "+(n+2.5*i)+" "+(a+i)+"h "+2*i+"a "+1.5*i+" "+1.5*i+", 0, 0, 1, "+1.5*i+" "+1.5*i+"v "+2*i+"a "+1.5*i+" "+1.5*i+", 0, 0, 1, "+1.5*-i+" "+1.5*i+"h "+-2*i+"a "+1.5*i+" "+1.5*i+", 0, 0, 1, "+1.5*-i+" "+1.5*-i+"v "+-2*i+"a "+1.5*i+" "+1.5*i+", 0, 0, 1, "+1.5*i+" "+1.5*-i)}}))},o.prototype._drawDot=function(e){var t=e.x,r=e.y,n=e.size,a=e.rotation;this._basicDot({x:t,y:r,size:n,rotation:a})},o.prototype._drawSquare=function(e){var t=e.x,r=e.y,n=e.size,a=e.rotation;this._basicSquare({x:t,y:r,size:n,rotation:a})},o.prototype._drawExtraRounded=function(e){var t=e.x,r=e.y,n=e.size,a=e.rotation;this._basicExtraRounded({x:t,y:r,size:n,rotation:a})},o}();const ye=Ce;var we=function(){return we=Object.assign||function(o){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},we.apply(this,arguments)},Ae=function(){function o(e){var t=e.svg,r=e.type;this._svg=t,this._type=r}return o.prototype.draw=function(e,t,r,n){(this._type==="square"?this._drawSquare:this._drawDot).call(this,{x:e,y:t,size:r,rotation:n})},o.prototype._rotateFigure=function(e){var t,r=e.x,n=e.y,a=e.size,i=e.rotation,w=i===void 0?0:i,v=r+a/2,k=n+a/2;(0,e.draw)(),(t=this._element)===null||t===void 0||t.setAttribute("transform","rotate("+180*w/Math.PI+","+v+","+k+")")},o.prototype._basicDot=function(e){var t=this,r=e.size,n=e.x,a=e.y;this._rotateFigure(we(we({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),t._element.setAttribute("cx",String(n+r/2)),t._element.setAttribute("cy",String(a+r/2)),t._element.setAttribute("r",String(r/2))}}))},o.prototype._basicSquare=function(e){var t=this,r=e.size,n=e.x,a=e.y;this._rotateFigure(we(we({},e),{draw:function(){t._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),t._element.setAttribute("x",String(n)),t._element.setAttribute("y",String(a)),t._element.setAttribute("width",String(r)),t._element.setAttribute("height",String(r))}}))},o.prototype._drawDot=function(e){var t=e.x,r=e.y,n=e.size,a=e.rotation;this._basicDot({x:t,y:r,size:n,rotation:a})},o.prototype._drawSquare=function(e){var t=e.x,r=e.y,n=e.size,a=e.rotation;this._basicSquare({x:t,y:r,size:n,rotation:a})},o}();const fe=Ae,y="circle";var p=function(o,e,t,r){return new(t||(t=Promise))(function(n,a){function i(k){try{v(r.next(k))}catch(l){a(l)}}function w(k){try{v(r.throw(k))}catch(l){a(l)}}function v(k){var l;k.done?n(k.value):(l=k.value,l instanceof t?l:new t(function(R){R(l)})).then(i,w)}v((r=r.apply(o,[])).next())})},x=function(o,e){var t,r,n,a,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function w(v){return function(k){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(n=2&l[0]?r.return:l[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,l[1])).done)return n;switch(r=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((n=(n=i.trys).length>0&&n[n.length-1])||l[0]!==6&&l[0]!==2)){i=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){i.label=l[1];break}if(l[0]===6&&i.label<n[1]){i.label=n[1],n=l;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(l);break}n[2]&&i.ops.pop(),i.trys.pop();continue}l=e.call(o,i)}catch(R){l=[6,R],r=0}finally{t=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([v,k])}}},f=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],c=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const _=function(){function o(e){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(e.width)),this._element.setAttribute("height",String(e.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._instanceId=o.instanceCount++,this._options=e}return Object.defineProperty(o.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),o.prototype.getElement=function(){return this._element},o.prototype.drawQR=function(e){return p(this,void 0,void 0,function(){var t,r,n,a,i,w,v,k,l,R,te=this;return x(this,function(N){switch(N.label){case 0:return t=e.getModuleCount(),r=Math.min(this._options.width,this._options.height)-2*this._options.margin,n=this._options.shape===y?r/Math.sqrt(2):r,a=n/t,i={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=e,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(N.sent(),!this._image)return[2];w=this._options,v=w.imageOptions,k=w.qrOptions,l=v.imageSize*pe[k.errorCorrectionLevel],R=Math.floor(l*t*t),i=function(E){var T=E.originalHeight,le=E.originalWidth,ve=E.maxHiddenDots,W=E.maxHiddenAxisDots,ce=E.dotSize,B={x:0,y:0},F={x:0,y:0};if(T<=0||le<=0||ve<=0||ce<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var be=T/le;return B.x=Math.floor(Math.sqrt(ve/be)),B.x<=0&&(B.x=1),W&&W<B.x&&(B.x=W),B.x%2==0&&B.x--,F.x=B.x*ce,B.y=1+2*Math.ceil((B.x*be-1)/2),F.y=Math.round(F.x*be),(B.y*B.x>ve||W&&W<B.y)&&(W&&W<B.y?(B.y=W,B.y%2==0&&B.x--):B.y-=2,F.y=B.y*ce,B.x=1+2*Math.ceil((B.y/be-1)/2),F.x=Math.round(F.y/be)),{height:F.y,width:F.x,hideYDots:B.y,hideXDots:B.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:R,maxHiddenAxisDots:t-14,dotSize:a}),N.label=2;case 2:return this.drawBackground(),this.drawDots(function(E,T){var le,ve,W,ce,B,F;return!(te._options.imageOptions.hideBackgroundDots&&E>=(t-i.hideXDots)/2&&E<(t+i.hideXDots)/2&&T>=(t-i.hideYDots)/2&&T<(t+i.hideYDots)/2||!((le=f[E])===null||le===void 0)&&le[T]||!((ve=f[E-t+7])===null||ve===void 0)&&ve[T]||!((W=f[E])===null||W===void 0)&&W[T-t+7]||!((ce=c[E])===null||ce===void 0)&&ce[T]||!((B=c[E-t+7])===null||B===void 0)&&B[T]||!((F=c[E])===null||F===void 0)&&F[T-t+7])}),this.drawCorners(),this._options.image?[4,this.drawImage({width:i.width,height:i.height,count:t,dotSize:a})]:[3,4];case 3:N.sent(),N.label=4;case 4:return[2]}})})},o.prototype.drawBackground=function(){var e,t,r,n=this._element,a=this._options;if(n){var i=(e=a.backgroundOptions)===null||e===void 0?void 0:e.gradient,w=(t=a.backgroundOptions)===null||t===void 0?void 0:t.color;if((i||w)&&this._createColor({options:i,color:w,additionalRotation:0,x:0,y:0,height:a.height,width:a.width,name:"background-color"}),(r=a.backgroundOptions)===null||r===void 0?void 0:r.round){var v=Math.min(a.width,a.height),k=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),k.setAttribute("x",String((a.width-v)/2)),k.setAttribute("y",String((a.height-v)/2)),k.setAttribute("width",String(v)),k.setAttribute("height",String(v)),k.setAttribute("rx",String(v/2*a.backgroundOptions.round)),this._backgroundClipPath.appendChild(k)}}},o.prototype.drawDots=function(e){var t,r,n=this;if(!this._qr)throw"QR code is not defined";var a=this._options,i=this._qr.getModuleCount();if(i>a.width||i>a.height)throw"The canvas is too small.";var w=Math.min(a.width,a.height)-2*a.margin,v=(a.shape===y?w/Math.sqrt(2):w)/i,k=(a.width-i*v)/2,l=(a.height-i*v)/2,R=new me({svg:this._element,type:a.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color-"+this._instanceId),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(t=a.dotsOptions)===null||t===void 0?void 0:t.gradient,color:a.dotsOptions.color,additionalRotation:0,x:0,y:0,height:a.height,width:a.width,name:"dot-color-"+this._instanceId});for(var te=function(re){for(var Le=function(xe){return e&&!e(re,xe)?"continue":!((r=N._qr)===null||r===void 0)&&r.isDark(re,xe)?(R.draw(k+re*v,l+xe*v,v,function(_e,Pe){return!(re+_e<0||xe+Pe<0||re+_e>=i||xe+Pe>=i)&&!(e&&!e(re+_e,xe+Pe))&&!!n._qr&&n._qr.isDark(re+_e,xe+Pe)}),void(R._element&&N._dotsClipPath&&N._dotsClipPath.appendChild(R._element))):"continue"},Me=0;Me<i;Me++)Le(Me)},N=this,E=0;E<i;E++)te(E);if(a.shape===y){var T=Math.floor((w/v-i)/2),le=i+2*T,ve=k-T*v,W=l-T*v,ce=[],B=Math.floor(le/2);for(E=0;E<le;E++){ce[E]=[];for(var F=0;F<le;F++)E>=T-1&&E<=le-T&&F>=T-1&&F<=le-T||Math.sqrt((E-B)*(E-B)+(F-B)*(F-B))>B?ce[E][F]=0:ce[E][F]=this._qr.isDark(F-2*T<0?F:F>=i?F-2*T:F-T,E-2*T<0?E:E>=i?E-2*T:E-T)?1:0}var be=function(re){for(var Le=function(xe){if(!ce[re][xe])return"continue";R.draw(ve+re*v,W+xe*v,v,function(_e,Pe){var Ie;return!!(!((Ie=ce[re+_e])===null||Ie===void 0)&&Ie[xe+Pe])}),R._element&&je._dotsClipPath&&je._dotsClipPath.appendChild(R._element)},Me=0;Me<le;Me++)Le(Me)},je=this;for(E=0;E<le;E++)be(E)}},o.prototype.drawCorners=function(){var e=this;if(!this._qr)throw"QR code is not defined";var t=this._element,r=this._options;if(!t)throw"Element code is not defined";var n=this._qr.getModuleCount(),a=Math.min(r.width,r.height)-2*r.margin,i=(r.shape===y?a/Math.sqrt(2):a)/n,w=7*i,v=3*i,k=(r.width-n*i)/2,l=(r.height-n*i)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(R){var te,N,E,T,le,ve,W,ce,B,F,be,je,re=R[0],Le=R[1],Me=R[2],xe=k+re*i*(n-7),_e=l+Le*i*(n-7),Pe=e._dotsClipPath,Ie=e._dotsClipPath;if((!((te=r.cornersSquareOptions)===null||te===void 0)&&te.gradient||!((N=r.cornersSquareOptions)===null||N===void 0)&&N.color)&&((Pe=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+re+"-"+Le),e._defs.appendChild(Pe),e._cornersSquareClipPath=e._cornersDotClipPath=Ie=Pe,e._createColor({options:(E=r.cornersSquareOptions)===null||E===void 0?void 0:E.gradient,color:(T=r.cornersSquareOptions)===null||T===void 0?void 0:T.color,additionalRotation:Me,x:xe,y:_e,height:w,width:w,name:"corners-square-color-"+re+"-"+Le})),(le=r.cornersSquareOptions)===null||le===void 0?void 0:le.type){var Ue=new ye({svg:e._element,type:r.cornersSquareOptions.type});Ue.draw(xe,_e,w,Me),Ue._element&&Pe&&Pe.appendChild(Ue._element)}else for(var Te=new me({svg:e._element,type:r.dotsOptions.type}),nt=function(De){for(var ft=function(Fe){if(!(!((ve=f[De])===null||ve===void 0)&&ve[Fe]))return"continue";Te.draw(xe+De*i,_e+Fe*i,i,function(gt,mt){var He;return!!(!((He=f[De+gt])===null||He===void 0)&&He[Fe+mt])}),Te._element&&Pe&&Pe.appendChild(Te._element)},Ne=0;Ne<f[De].length;Ne++)ft(Ne)},qe=0;qe<f.length;qe++)nt(qe);if((!((W=r.cornersDotOptions)===null||W===void 0)&&W.gradient||!((ce=r.cornersDotOptions)===null||ce===void 0)&&ce.color)&&((Ie=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+re+"-"+Le),e._defs.appendChild(Ie),e._cornersDotClipPath=Ie,e._createColor({options:(B=r.cornersDotOptions)===null||B===void 0?void 0:B.gradient,color:(F=r.cornersDotOptions)===null||F===void 0?void 0:F.color,additionalRotation:Me,x:xe+2*i,y:_e+2*i,height:v,width:v,name:"corners-dot-color-"+re+"-"+Le})),(be=r.cornersDotOptions)===null||be===void 0?void 0:be.type){var Re=new fe({svg:e._element,type:r.cornersDotOptions.type});Re.draw(xe+2*i,_e+2*i,v,Me),Re._element&&Ie&&Ie.appendChild(Re._element)}else{Te=new me({svg:e._element,type:r.dotsOptions.type});var Xe=function(De){for(var ft=function(Fe){if(!(!((je=c[De])===null||je===void 0)&&je[Fe]))return"continue";Te.draw(xe+De*i,_e+Fe*i,i,function(gt,mt){var He;return!!(!((He=c[De+gt])===null||He===void 0)&&He[Fe+mt])}),Te._element&&Ie&&Ie.appendChild(Te._element)},Ne=0;Ne<c[De].length;Ne++)ft(Ne)};for(qe=0;qe<c.length;qe++)Xe(qe)}})},o.prototype.loadImage=function(){var e=this;return new Promise(function(t,r){var n=e._options,a=new Image;if(!n.image)return r("Image is not defined");typeof n.imageOptions.crossOrigin=="string"&&(a.crossOrigin=n.imageOptions.crossOrigin),e._image=a,a.onload=function(){t()},a.src=n.image})},o.prototype.drawImage=function(e){var t=e.width,r=e.height,n=e.count,a=e.dotSize;return p(this,void 0,void 0,function(){var i,w,v,k,l,R,te,N,E;return x(this,function(T){switch(T.label){case 0:return i=this._options,w=(i.width-n*a)/2,v=(i.height-n*a)/2,k=w+i.imageOptions.margin+(n*a-t)/2,l=v+i.imageOptions.margin+(n*a-r)/2,R=t-2*i.imageOptions.margin,te=r-2*i.imageOptions.margin,(N=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(k)),N.setAttribute("y",String(l)),N.setAttribute("width",R+"px"),N.setAttribute("height",te+"px"),[4,se(i.image||"")];case 1:return E=T.sent(),N.setAttribute("href",E||""),this._element.appendChild(N),[2]}})})},o.prototype._createColor=function(e){var t=e.options,r=e.color,n=e.additionalRotation,a=e.x,i=e.y,w=e.height,v=e.width,k=e.name,l=v>w?v:w,R=document.createElementNS("http://www.w3.org/2000/svg","rect");if(R.setAttribute("x",String(a)),R.setAttribute("y",String(i)),R.setAttribute("height",String(w)),R.setAttribute("width",String(v)),R.setAttribute("clip-path","url('#clip-path-"+k+"')"),t){var te;if(t.type==="radial")(te=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",k),te.setAttribute("gradientUnits","userSpaceOnUse"),te.setAttribute("fx",String(a+v/2)),te.setAttribute("fy",String(i+w/2)),te.setAttribute("cx",String(a+v/2)),te.setAttribute("cy",String(i+w/2)),te.setAttribute("r",String(l/2));else{var N=((t.rotation||0)+n)%(2*Math.PI),E=(N+2*Math.PI)%(2*Math.PI),T=a+v/2,le=i+w/2,ve=a+v/2,W=i+w/2;E>=0&&E<=.25*Math.PI||E>1.75*Math.PI&&E<=2*Math.PI?(T-=v/2,le-=w/2*Math.tan(N),ve+=v/2,W+=w/2*Math.tan(N)):E>.25*Math.PI&&E<=.75*Math.PI?(le-=w/2,T-=v/2/Math.tan(N),W+=w/2,ve+=v/2/Math.tan(N)):E>.75*Math.PI&&E<=1.25*Math.PI?(T+=v/2,le+=w/2*Math.tan(N),ve-=v/2,W-=w/2*Math.tan(N)):E>1.25*Math.PI&&E<=1.75*Math.PI&&(le+=w/2,T+=v/2/Math.tan(N),W-=w/2,ve-=v/2/Math.tan(N)),(te=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",k),te.setAttribute("gradientUnits","userSpaceOnUse"),te.setAttribute("x1",String(Math.round(T))),te.setAttribute("y1",String(Math.round(le))),te.setAttribute("x2",String(Math.round(ve))),te.setAttribute("y2",String(Math.round(W)))}t.colorStops.forEach(function(ce){var B=ce.offset,F=ce.color,be=document.createElementNS("http://www.w3.org/2000/svg","stop");be.setAttribute("offset",100*B+"%"),be.setAttribute("stop-color",F),te.appendChild(be)}),R.setAttribute("fill","url('#"+k+"')"),this._defs.appendChild(te)}else r&&R.setAttribute("fill",r);this._element.appendChild(R)},o.instanceCount=0,o}(),q="canvas";for(var m={},I=0;I<=40;I++)m[I]=I;const de={type:q,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:m[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var X=function(){return X=Object.assign||function(o){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},X.apply(this,arguments)};function z(o){var e=X({},o);if(!e.colorStops||!e.colorStops.length)throw"Field 'colorStops' is required in gradient";return e.rotation?e.rotation=Number(e.rotation):e.rotation=0,e.colorStops=e.colorStops.map(function(t){return X(X({},t),{offset:Number(t.offset)})}),e}function $(o){var e=X({},o);return e.width=Number(e.width),e.height=Number(e.height),e.margin=Number(e.margin),e.imageOptions=X(X({},e.imageOptions),{hideBackgroundDots:!!e.imageOptions.hideBackgroundDots,imageSize:Number(e.imageOptions.imageSize),margin:Number(e.imageOptions.margin)}),e.margin>Math.min(e.width,e.height)&&(e.margin=Math.min(e.width,e.height)),e.dotsOptions=X({},e.dotsOptions),e.dotsOptions.gradient&&(e.dotsOptions.gradient=z(e.dotsOptions.gradient)),e.cornersSquareOptions&&(e.cornersSquareOptions=X({},e.cornersSquareOptions),e.cornersSquareOptions.gradient&&(e.cornersSquareOptions.gradient=z(e.cornersSquareOptions.gradient))),e.cornersDotOptions&&(e.cornersDotOptions=X({},e.cornersDotOptions),e.cornersDotOptions.gradient&&(e.cornersDotOptions.gradient=z(e.cornersDotOptions.gradient))),e.backgroundOptions&&(e.backgroundOptions=X({},e.backgroundOptions),e.backgroundOptions.gradient&&(e.backgroundOptions.gradient=z(e.backgroundOptions.gradient))),e}var V=A(192),ee=A.n(V),ge=function(o,e,t,r){return new(t||(t=Promise))(function(n,a){function i(k){try{v(r.next(k))}catch(l){a(l)}}function w(k){try{v(r.throw(k))}catch(l){a(l)}}function v(k){var l;k.done?n(k.value):(l=k.value,l instanceof t?l:new t(function(R){R(l)})).then(i,w)}v((r=r.apply(o,[])).next())})},Se=function(o,e){var t,r,n,a,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function w(v){return function(k){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(n=2&l[0]?r.return:l[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,l[1])).done)return n;switch(r=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((n=(n=i.trys).length>0&&n[n.length-1])||l[0]!==6&&l[0]!==2)){i=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){i.label=l[1];break}if(l[0]===6&&i.label<n[1]){i.label=n[1],n=l;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(l);break}n[2]&&i.ops.pop(),i.trys.pop();continue}l=e.call(o,i)}catch(R){l=[6,R],r=0}finally{t=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([v,k])}}};const Y=function(){function o(e){this._options=e?$(D(de,e)):de,this.update()}return o._clearContainer=function(e){e&&(e.innerHTML="")},o.prototype._setupSvg=function(){var e=this;if(this._qr){var t=new _(this._options);this._svg=t.getElement(),this._svgDrawingPromise=t.drawQR(this._qr).then(function(){var r;e._svg&&((r=e._extension)===null||r===void 0||r.call(e,t.getElement(),e._options))})}},o.prototype._setupCanvas=function(){var e,t=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=(e=this._svgDrawingPromise)===null||e===void 0?void 0:e.then(function(){if(t._svg){var r=t._svg,n=new XMLSerializer().serializeToString(r),a="data:image/svg+xml;base64,"+btoa(n),i=new Image;return new Promise(function(w){i.onload=function(){var v,k;(k=(v=t._canvas)===null||v===void 0?void 0:v.getContext("2d"))===null||k===void 0||k.drawImage(i,0,0),w()},i.src=a})}}))},o.prototype._getElement=function(e){return e===void 0&&(e="png"),ge(this,void 0,void 0,function(){return Se(this,function(t){switch(t.label){case 0:if(!this._qr)throw"QR code is empty";return e.toLowerCase()!=="svg"?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return t.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return t.sent(),[2,this._canvas]}})})},o.prototype.update=function(e){o._clearContainer(this._container),this._options=e?$(D(this._options,e)):this._options,this._options.data&&(this._qr=ee()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(t){switch(!0){case/^[0-9]*$/.test(t):return O;case/^[0-9A-Z $%*+\-./:]*$/.test(t):return H;default:return K}}(this._options.data)),this._qr.make(),this._options.type===q?this._setupCanvas():this._setupSvg(),this.append(this._container))},o.prototype.append=function(e){if(e){if(typeof e.appendChild!="function")throw"Container should be a single DOM node";this._options.type===q?this._canvas&&e.appendChild(this._canvas):this._svg&&e.appendChild(this._svg),this._container=e}},o.prototype.applyExtension=function(e){if(!e)throw"Extension function should be defined.";this._extension=e,this.update()},o.prototype.deleteExtension=function(){this._extension=void 0,this.update()},o.prototype.getRawData=function(e){return e===void 0&&(e="png"),ge(this,void 0,void 0,function(){var t,r,n;return Se(this,function(a){switch(a.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(e)];case 1:return(t=a.sent())?e.toLowerCase()==="svg"?(r=new XMLSerializer,n=r.serializeToString(t),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
4
4
  `+n],{type:"image/svg+xml"})]):[2,new Promise(function(i){return t.toBlob(i,"image/"+e,1)})]:[2,null]}})})},o.prototype.download=function(e){return ge(this,void 0,void 0,function(){var t,r,n,a,i;return Se(this,function(w){switch(w.label){case 0:if(!this._qr)throw"QR code is empty";return t="png",r="qr",typeof e=="string"?(t=e,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof e=="object"&&e!==null&&(e.name&&(r=e.name),e.extension&&(t=e.extension)),[4,this._getElement(t)];case 1:return(n=w.sent())?(t.toLowerCase()==="svg"?(a=new XMLSerializer,i=`<?xml version="1.0" standalone="no"?>\r
@@ -1,4 +1,4 @@
1
- import{aF as U1,j as r,r as t,bn as O1,aQ as l6,N as $,H as R,a2 as u6,b as H1,a0 as b1,g7 as e1,f as k1,E as p6,cv as R1,b9 as t1,jH as V1,V,F as M1,dt as j1,jI as C6,y as x,gb as d6,h1 as h6,a4 as T1,bD as G,ek as N1,J as S,L as J,jJ as J1,aV as m6,eI as g6,aO as k,br as f6,z as N,P as Z1,dp as E6,g5 as A6,hi as x6,eE as D6,T as b,$ as y6,D as w6,t as S6,v as l1,C as I6,jK as u1,w as B6,i7 as F6,bA as L6,jL as v6,a5 as U6,Z as n1,o as B,i as p1,x as O6,ax as H6,al as b6}from"./index-Bek3Nxot.js";import{O as C1}from"./index-B4fcaU-r.js";import{f as k6}from"./index-BojVbZw0.js";import{b as R6,c as V6,d as M6}from"./spaces-BrB8zqzV.js";import{u as a1}from"./blocklet-ClPWX-SV.js";import{D as j6}from"./DeleteOutline-BjSm7PCr.js";import{O as P1}from"./OpenInNew-DGDd5qxt.js";import{x as T6}from"./index-DRYJ0xIl.js";import{H as N6}from"./HelpOutline--A0maMxb.js";import"./api-eF9wxSJp.js";const J6=U1(r.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),He=U1(r.jsx("path",{d:"M6 6h12v12H6z"}));function Z6(){const[e,n]=t.useState(null),{blocklet:a}=a1();return t.useEffect(()=>{n(R6(a))},[a]),{storageEndpoint:e}}const Q1=t.createContext({}),{Provider:P6,Consumer:be}=Q1;function Q6({children:e}){const[n,a]=t.useState(!1),[s,o]=t.useState(null),{blocklet:i,actions:{refreshBlocklet:u}}=a1(),{storageEndpoint:c}=Z6(),{api:p}=O1();l6(async()=>{try{if(a(!0),$(c)){o(null);return}const d=await V6(c);o(d)}catch(d){console.error(d),R.error(d.message)}finally{a(!1)}},[c]);const l=()=>{o(null),u()},C=async d=>{o(d),await m(d.endpoint),u()},m=async d=>{await p.configBlocklet({input:{did:[i.meta.did],configs:[{key:H1.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT,value:d}]}}),u()};t.useEffect(()=>{async function d(){if(!s)return;const E=await M6(s.endpoint,s.name),w=u6(s,{name:E});o(w)}d()},[]);const g=!!(c&&s);return r.jsx(P6,{value:{loading:n,spaceGateway:s,deleteSpaceGateway:l,updateSpaceGateway:C,storageEndpoint:c,settingStorageEndpoint:m,hasStorageEndpoint:g},children:e})}Q6.propTypes={children:b1.node.isRequired};function G6(){return t.useContext(Q1)}const Z=e1({});function X6({key:e}={key:"md"}){const n=k1();return p6(n.breakpoints.down(e))}var A=(e=>(e[e.NETWORK_ERROR=1001]="NETWORK_ERROR",e[e.UNAUTHORIZED=1002]="UNAUTHORIZED",e[e.EXPIRED=1003]="EXPIRED",e[e.PAST_DUE=1004]="PAST_DUE",e[e.INVALID=1005]="INVALID",e[e.UNIT_LIMIT=1006]="UNIT_LIMIT",e[e.CORS_BLOCKED=1007]="CORS_BLOCKED",e[e.INCOMPATIBLE=1008]="INCOMPATIBLE",e))(A||{}),G1=(e=>(e.DEFAULT="default",e.SUCCEEDED="succeeded",e.FAILED="failed",e.PENDING="pending",e))(G1||{}),v=(e=>(e.APP_DISCONNECTED="app-disconnected",e.APP_RESTORE="app-restore",e.APP_BACKUP="app-backup",e.APP_CONNECTED="app-connected",e.APP_OBJECTS_SYNC="app-objects-sync",e))(v||{});function z6({endpoint:e,deps:n=[]}){return R1(async()=>{if(!t1(e))return;const{headers:a}=await Z.head(e,{timeout:1e3*30,params:{withExtras:!0}}),[s,o,i,u,c,p,l,C,m,g]=[a["x-space-name"],a["x-subscription-id"],a["x-listable"]==="true",a["x-readable"]==="true",a["x-writeable"]==="true",a["x-space-version"],a["x-space-owner-did"],a["x-space-is-available"],a["x-error-code"],a["x-is-site-admin"]],d=s?decodeURIComponent(s):"";if(C===void 0||m===void 0){const E=i&&u&&c;return{version:p,name:d,subscriptionId:o,ownerDid:l||"",isAvailable:E,errorCode:E?0:A.UNAUTHORIZED,isSiteAdmin:g==="true"}}return{version:p,name:d,subscriptionId:o,ownerDid:l,isAvailable:C==="true",errorCode:parseInt(m,10),isSiteAdmin:g==="true"}},{refreshDeps:[e].concat(n),onError(a){console.error(a)}})}const K6=V1.flatten({common:{cancel:"Cancel",confirm:"Confirm",delete:"Delete",error:"Error",open:"Open",unknown:"Unknown",invalidUrl:"Invalid url: {url}",upgrade:"Upgrade",viewMore:"View More"},storage:{spaces:{authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"},connect:{reconnect:"Reconnect Now",useSpaceGateway:"Connect using the DID Spaces gateway",useWallet:"Connect to DID Spaces",howToGetGatewayUrl:"How to get the url of did spaces",providerForStorage:"Please connect your DID Spaces"},connected:{title:"Connected DID Spaces",tag:"Connected"},disconnected:{tag:"Disconnected"},error:{tag:"Need Attention",blockedByCors:"Access blocked by CORS",unreachable:"DID Space is unreachable",expired:"DID Spaces has expired, click this link to re-subscribe",pastDue:"DID Spaces has unpaid bills, click this link to complete payment",invalid:"DID Spaces subscription anomaly, click this link to check",unitLimit:"DID Spaces free quota has been used up, click this link to pay for the upgrade",cors:`The connection request may fail due to CORS restrictions:
1
+ import{aF as U1,j as r,r as t,bn as O1,aQ as l6,N as $,H as R,a2 as u6,b as H1,a0 as b1,g7 as e1,f as k1,E as p6,cv as R1,b9 as t1,jH as V1,V,F as M1,dt as j1,jI as C6,y as x,gb as d6,h1 as h6,a4 as T1,bD as G,ek as N1,J as S,L as J,jJ as J1,aV as m6,eI as g6,aO as k,br as f6,z as N,P as Z1,dp as E6,g5 as A6,hi as x6,eE as D6,T as b,$ as y6,D as w6,t as S6,v as l1,C as I6,jK as u1,w as B6,i7 as F6,bA as L6,jL as v6,a5 as U6,Z as n1,o as B,i as p1,x as O6,ax as H6,al as b6}from"./index-DQhyMeoV.js";import{O as C1}from"./index-CB1i_uf2.js";import{f as k6}from"./index-BojVbZw0.js";import{b as R6,c as V6,d as M6}from"./spaces-OwZlXUZ4.js";import{u as a1}from"./blocklet-e4asDkfP.js";import{D as j6}from"./DeleteOutline-D2i9YJBS.js";import{O as P1}from"./OpenInNew-awII5Ys1.js";import{x as T6}from"./index-DRYJ0xIl.js";import{H as N6}from"./HelpOutline-BOrIHXkQ.js";import"./api-ZR56mSDv.js";const J6=U1(r.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),He=U1(r.jsx("path",{d:"M6 6h12v12H6z"}));function Z6(){const[e,n]=t.useState(null),{blocklet:a}=a1();return t.useEffect(()=>{n(R6(a))},[a]),{storageEndpoint:e}}const Q1=t.createContext({}),{Provider:P6,Consumer:be}=Q1;function Q6({children:e}){const[n,a]=t.useState(!1),[s,o]=t.useState(null),{blocklet:i,actions:{refreshBlocklet:u}}=a1(),{storageEndpoint:c}=Z6(),{api:p}=O1();l6(async()=>{try{if(a(!0),$(c)){o(null);return}const d=await V6(c);o(d)}catch(d){console.error(d),R.error(d.message)}finally{a(!1)}},[c]);const l=()=>{o(null),u()},C=async d=>{o(d),await m(d.endpoint),u()},m=async d=>{await p.configBlocklet({input:{did:[i.meta.did],configs:[{key:H1.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT,value:d}]}}),u()};t.useEffect(()=>{async function d(){if(!s)return;const E=await M6(s.endpoint,s.name),w=u6(s,{name:E});o(w)}d()},[]);const g=!!(c&&s);return r.jsx(P6,{value:{loading:n,spaceGateway:s,deleteSpaceGateway:l,updateSpaceGateway:C,storageEndpoint:c,settingStorageEndpoint:m,hasStorageEndpoint:g},children:e})}Q6.propTypes={children:b1.node.isRequired};function G6(){return t.useContext(Q1)}const Z=e1({});function X6({key:e}={key:"md"}){const n=k1();return p6(n.breakpoints.down(e))}var A=(e=>(e[e.NETWORK_ERROR=1001]="NETWORK_ERROR",e[e.UNAUTHORIZED=1002]="UNAUTHORIZED",e[e.EXPIRED=1003]="EXPIRED",e[e.PAST_DUE=1004]="PAST_DUE",e[e.INVALID=1005]="INVALID",e[e.UNIT_LIMIT=1006]="UNIT_LIMIT",e[e.CORS_BLOCKED=1007]="CORS_BLOCKED",e[e.INCOMPATIBLE=1008]="INCOMPATIBLE",e))(A||{}),G1=(e=>(e.DEFAULT="default",e.SUCCEEDED="succeeded",e.FAILED="failed",e.PENDING="pending",e))(G1||{}),v=(e=>(e.APP_DISCONNECTED="app-disconnected",e.APP_RESTORE="app-restore",e.APP_BACKUP="app-backup",e.APP_CONNECTED="app-connected",e.APP_OBJECTS_SYNC="app-objects-sync",e))(v||{});function z6({endpoint:e,deps:n=[]}){return R1(async()=>{if(!t1(e))return;const{headers:a}=await Z.head(e,{timeout:1e3*30,params:{withExtras:!0}}),[s,o,i,u,c,p,l,C,m,g]=[a["x-space-name"],a["x-subscription-id"],a["x-listable"]==="true",a["x-readable"]==="true",a["x-writeable"]==="true",a["x-space-version"],a["x-space-owner-did"],a["x-space-is-available"],a["x-error-code"],a["x-is-site-admin"]],d=s?decodeURIComponent(s):"";if(C===void 0||m===void 0){const E=i&&u&&c;return{version:p,name:d,subscriptionId:o,ownerDid:l||"",isAvailable:E,errorCode:E?0:A.UNAUTHORIZED,isSiteAdmin:g==="true"}}return{version:p,name:d,subscriptionId:o,ownerDid:l,isAvailable:C==="true",errorCode:parseInt(m,10),isSiteAdmin:g==="true"}},{refreshDeps:[e].concat(n),onError(a){console.error(a)}})}const K6=V1.flatten({common:{cancel:"Cancel",confirm:"Confirm",delete:"Delete",error:"Error",open:"Open",unknown:"Unknown",invalidUrl:"Invalid url: {url}",upgrade:"Upgrade",viewMore:"View More"},storage:{spaces:{authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"},connect:{reconnect:"Reconnect Now",useSpaceGateway:"Connect using the DID Spaces gateway",useWallet:"Connect to DID Spaces",howToGetGatewayUrl:"How to get the url of did spaces",providerForStorage:"Please connect your DID Spaces"},connected:{title:"Connected DID Spaces",tag:"Connected"},disconnected:{tag:"Disconnected"},error:{tag:"Need Attention",blockedByCors:"Access blocked by CORS",unreachable:"DID Space is unreachable",expired:"DID Spaces has expired, click this link to re-subscribe",pastDue:"DID Spaces has unpaid bills, click this link to complete payment",invalid:"DID Spaces subscription anomaly, click this link to check",unitLimit:"DID Spaces free quota has been used up, click this link to pay for the upgrade",cors:`The connection request may fail due to CORS restrictions:
2
2
  1. Please contact the DID Space administrator to verify the relevant configuration.
3
3
  2. If you are the administrator, click the link below to view the detailed setup guide and resolve the issue.`,networkError:"DID Space is currently unreachable due to potential server issues, network problems, or maintenance. Please click the link to visit the homepage and check its status.",incompatible:`The current connection of DID Spaces version ({spaceVersion}) is not compatible with the component version ({expectVersion}). Please contact the administrator for adjustments.
4
4
  If you are the administrator, you can click the link below to take action.`},gateway:{add:{invalidUrl:"Invalid DID Spaces gateway url",label:"Enter the url of the DID Spaces",title:"Add DID Spaces"}},provideNFT:{title:"Please show the DID Spaces NFT for {appName}",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} show DID Spaces NFT",success:"Connected successfully"},helperText:{fixCorsError:"Fixing CORS Errors When Connecting to DID Spaces"}}},auditLog:{backup:{description:"A backup operation was completed {relativeTime}"},restore:{description:"A restore operation was completed {relativeTime}"},connected:{description:"A connection was established {relativeTime}"},disconnected:{description:"The connection was disconnected {relativeTime}"},objectsSync:{description:"{totalCount} objects ({size}) were synchronized {relativeTime}"}}}),Y6=V1.flatten({common:{cancel:"取消",confirm:"确认",delete:"删除",error:"错误",open:"打开",unknown:"未知",invalidUrl:"无效的 url: {url}",upgrade:"升级",viewMore:"查看更多"},storage:{spaces:{authorize:{title:"连接 {appName} 至 DID Spaces",scan:"使用你的 DID Wallet 扫描下面的二维码以允许应用 {appName} 连接至 DID Spaces",success:"连接成功"},connect:{reconnect:"立即重连",useSpaceGateway:"使用 DID Spaces 网关连接",useWallet:"连接至 DID Spaces",howToGetGatewayUrl:"如何获取 DID Spaces 的网关地址",providerForStorage:"请连接您的 DID Spaces"},connected:{title:"已连接的 DID Spaces",tag:"已连接"},disconnected:{tag:"连接已断开"},error:{tag:"需要关注",blockedByCors:"因 CORS 限制,访问被阻止",unreachable:"DID Space 无法访问",expired:"DID Spaces 已过期,点击此链接重新订阅",pastDue:"DID Spaces 有未支付账单,点击此链接完成支付",invalid:"DID Spaces 订阅异常,点击此链接检查",unitLimit:"DID Spaces 免费额度已用完,点击此链接付费升级",cors:`连接请求可能因 CORS 限制而失败:
@@ -1,4 +1,4 @@
1
- import{m as et}from"./index-3MwDYHdN.js";import"./index-Bek3Nxot.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
1
+ import{m as et}from"./index-DA7EVQ4v.js";import"./index-DQhyMeoV.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1 +1 @@
1
- import{V as h,j as e,ad as j,J as o,Y as g,T as _,t as b,o as n}from"./index-Bek3Nxot.js";import{C as R}from"./click-to-copy-BbJJzGI1.js";function T({title:c,description:l,confirmPlaceholder:m,cancel:d="",confirm:u="Confirm",params:p={},onCancel:f=()=>{},onConfirm:C,keyName:t}){const{t:a}=h(),i={title:()=>e.jsx(o,{children:c}),description:(s,y)=>{const x=r=>{y({...r,__disableConfirm:r.__disableConfirm})};return e.jsxs(o,{children:[e.jsx(g,{severity:"warning",style:{width:"100%"},children:a("common.notice")}),e.jsx(o,{sx:{my:3,b:{wordBreak:"break-word"}},dangerouslySetInnerHTML:{__html:l}}),e.jsxs(o,{style:{marginBottom:24},children:[a("common.click"),":",e.jsx(R,{"data-cy":"click-copy",children:t})]}),e.jsx(_,{component:"div",children:e.jsx(b,{label:m,autoComplete:"off","data-cy":"delete-confirm-input",variant:"outlined",fullWidth:!0,autoFocus:!0,value:s.inputVal,onChange:r=>{x({...s,inputVal:r.target.value,__disableConfirm:t!==r.target.value})}})})]})},confirm:u,cancel:d,onConfirm:C,onCancel:f,params:{inputVal:"",__disableConfirm:!0,...p}};return e.jsx(j,{title:i.title,description:i.description,confirm:i.confirm,cancel:i.cancel,params:i.params,onConfirm:i.onConfirm,onCancel:i.onCancel})}T.propTypes={title:n.any.isRequired,keyName:n.any.isRequired,description:n.any.isRequired,confirmPlaceholder:n.any.isRequired,cancel:n.string,confirm:n.string,params:n.object,onCancel:n.func,onConfirm:n.func.isRequired};export{T as D};
1
+ import{V as h,j as e,ad as j,J as o,Y as g,T as _,t as b,o as n}from"./index-DQhyMeoV.js";import{C as R}from"./click-to-copy-D5SbepAS.js";function T({title:c,description:l,confirmPlaceholder:m,cancel:d="",confirm:u="Confirm",params:p={},onCancel:f=()=>{},onConfirm:C,keyName:t}){const{t:a}=h(),i={title:()=>e.jsx(o,{children:c}),description:(s,y)=>{const x=r=>{y({...r,__disableConfirm:r.__disableConfirm})};return e.jsxs(o,{children:[e.jsx(g,{severity:"warning",style:{width:"100%"},children:a("common.notice")}),e.jsx(o,{sx:{my:3,b:{wordBreak:"break-word"}},dangerouslySetInnerHTML:{__html:l}}),e.jsxs(o,{style:{marginBottom:24},children:[a("common.click"),":",e.jsx(R,{"data-cy":"click-copy",children:t})]}),e.jsx(_,{component:"div",children:e.jsx(b,{label:m,autoComplete:"off","data-cy":"delete-confirm-input",variant:"outlined",fullWidth:!0,autoFocus:!0,value:s.inputVal,onChange:r=>{x({...s,inputVal:r.target.value,__disableConfirm:t!==r.target.value})}})})]})},confirm:u,cancel:d,onConfirm:C,onCancel:f,params:{inputVal:"",__disableConfirm:!0,...p}};return e.jsx(j,{title:i.title,description:i.description,confirm:i.confirm,cancel:i.cancel,params:i.params,onConfirm:i.onConfirm,onCancel:i.onCancel})}T.propTypes={title:n.any.isRequired,keyName:n.any.isRequired,description:n.any.isRequired,confirmPlaceholder:n.any.isRequired,cancel:n.string,confirm:n.string,params:n.object,onCancel:n.func,onConfirm:n.func.isRequired};export{T as D};
@@ -0,0 +1 @@
1
+ import{fI as r}from"./index-DQhyMeoV.js";var d=function(i,o){return i===void 0&&(i=[]),o===void 0&&(o=[]),r(i,o)};export{d};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-DL-GP40o.js","./index-Bek3Nxot.js","./index-DUrTVFR9.css","./HelpOutline--A0maMxb.js","./index-BojVbZw0.js","./index-B8qqbKQt.js","./blocklet-ClPWX-SV.js","./team-B9jB42uy.js","./url-evaluation-DetQFE_e.js","./status-BZx_J-ps.js","./index-B31H3tAk.js","./ErrorOutline-CjKNiJFO.js","./omit-C11lcOpj.js","./index-D_L4A5jU.js","./metric-chc-qmc8.js","./CardContent-CYNmFsYJ.js","./spaces-BrB8zqzV.js","./api-eF9wxSJp.js","./domains-BJzrDugH.js","./index-CDd3s2GI.js","./useAsync-B59MJoKM.js","./permission-D09K4EY6.js","./Delete-B306vkSB.js","./actions-D1YtdqKL.js","./delete-confirm-Cx4JPY2I.js","./click-to-copy-BbJJzGI1.js","./status-B-GGRrEB.js","./VerifiedUser-wCwGdsz1.js","./Add-b-MNk7UB.js","./CallMerge-CF5jo3Pw.js","./toLower-DwWNsNMJ.js","./use-mobile-BDRFDg8j.js","./util-DgOs7OwT.js","./is-path-prefix-equal-BAfeJQQq.js","./engine-a9f8P0CB.js","./OpenInNew-DGDd5qxt.js","./LoadingButton-DtnAWL1w.js","./index-B3tcK3_z.js","./actions-Wo9kGXdj.js","./useLocalStorage-Dpl2DibN.js","./MoreVert-KNjOpSoE.js","./DeleteOutline-BjSm7PCr.js","./get-safe-url-QppwE77w.js","./ButtonGroup-C_JbniJW.js","./getValidReactChildren-Cjo-LFyx.js","./ChevronRight-BKFXnJ7g.js","./html-title-BpNgi7iw.js","./preference-iiwdIYk6.js","./index-BdVOugOI.js","./Done-Bh0vP7e6.js","./edit.svg-833vjqGH.js","./ArrowDropDown-lsZjWbH5.js","./index-cZdqepfp.js","./iframe-CH8rbppJ.js","./Autocomplete-79tADtg2.js","./ListSubheader-CHT01bOG.js","./rotate-session-key-Bfdv46s3.js","./visuallyHidden-Dan1xhjv.js","./chain-Bg9mny_E.js","./switch-control-X9WA2UjB.js","./index.esm-WZ7Avw4n.js","./index-CsTd8Q4H.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./provider-icon-Dm9XYo2I.js","./simple-select-DxwJpURO.js","./index-BHQcEGDq.js","./FilterList-Dphn1UXx.js","./CSSTransition-DinXVMZy.js","./emotion-cache.browser.esm-Epiq9rij.js","./depsEqual-Cvglsxh5.js","./TableSearch-DxZYknBa.js","./Search-CUoYhy1v.js","./Clear-Chg9fOPG.js","./use-mobile-DOhPXmq7.js","./EditOutlined-Qskj3-tY.js","./appearance-CKF7Bo6h.js","./config-navigation-B-CtKO70.js","./cloneDeep-DNOsGRuG.js","./_createAggregator-BLxu5C4t.js","./raf-schd.esm-Bo9SYHL8.js","./ListItemButton-C8XIzvy_.js","./index-CbnvHmOA.js","./KeyboardArrowDown-CD6n37Y9.js","./index-DSjaZAu3.js","./index-Dr7VuVvC.js","./shorten-label-CN9pEyom.js","./Replay-BzP784vV.js","./Refresh-B0_3c6OW.js","./traffic-C_4zWOQM.js","./ChevronLeft-Byy2_Dj8.js","./index-DBii9-f-.js","./base-chart-_0APPWGp.js","./index-BfTQCMKf.js","./AdapterDayjs-Chnfr9fe.js","./useThemeProps-BS48y1B2.js","./audit-logs-CLt2l7-q.js","./index-WHQs_PkC.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./UnfoldMore-DvSw9pGy.js","./index-CBHMH4Z7.js","./ua-parser-DP5omx3I.js","./index-B4fcaU-r.js","./Google-C0G3l0jL.js","./list-header-C3SJDsfy.js","./ToggleButtonGroup-BwLu2zCu.js","./lock.svg-CGmlgpmU.js","./index-CKWS_NIP.js","./ViewList-DhdvL6AT.js","./Verified-CfonAx-G.js","./index-BfnrUUfH.js","./sdk-l1r4MOQ_.js","./service-DCzLPjA3.js","./table-icons-Xs4hP9Pw.js","./Edit-DFmlgA7E.js","./index-HqyXcG7M.js","./Link-Mg5UlAaZ.js","./item-hbtsGcq0.js","./Launch-Cor8d4pT.js","./item-G0iZE90Q.css","./index-BSBkhGl0.js","./url-join-rRKl4Ear.js","./connect-to-CBEHT895.js","./index-DRYJ0xIl.js","./agreement-07HiBYSX.js","./install-from-url-PuHPLadE.js","./without-wallet-qfmn1VhQ.js","./Stepper-DfUO9buC.js","./toUpper-DXK6zXOf.js","./log-D4BWVj7G.js","./download-Df1TrhTI.js","./runtime-BUcScDcM.js","./memory-lh5QZ4zg.js","./index-DCHzmqFc.js"])))=>i.map(i=>d[i]);
2
- import{V as He,n as qe,bn as Ct,r as b,aH as F,j as d,Y as Qe,J as Z,v as Ge,w as Tt,i as j,bC as jt,H as J,Z as Ke,bm as We,A as Pt,u as At,d as Dt,bD as Ot,bE as Lt,bF as Ae,bG as Bt,bH as Mt,I as De,C as Oe,M as Rt,bI as Nt,T as ue,K as Ft,bJ as I,s as Vt}from"./index-Bek3Nxot.js";import{T as zt,u as $t}from"./html-title-BpNgi7iw.js";import{B as Ut}from"./status-B-GGRrEB.js";import{D as Ht,B as qt}from"./actions-Wo9kGXdj.js";import{u as Qt}from"./blocklet-ClPWX-SV.js";import{p as Gt}from"./index-BJVvRV0h.js";import{B as Kt,a as Wt,T as Jt}from"./team-B9jB42uy.js";import{P as Xt}from"./permission-D09K4EY6.js";import{B as Yt}from"./Breadcrumbs-Cqjt-kp8.js";import"./useLocalStorage-Dpl2DibN.js";import"./MoreVert-KNjOpSoE.js";import"./DeleteOutline-BjSm7PCr.js";import"./get-safe-url-QppwE77w.js";import"./ButtonGroup-C_JbniJW.js";import"./getValidReactChildren-Cjo-LFyx.js";import"./url-evaluation-DetQFE_e.js";/**
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-CikmJX9H.js","./index-DQhyMeoV.js","./index-DUrTVFR9.css","./HelpOutline-BOrIHXkQ.js","./index-BojVbZw0.js","./index-B-25u8Uu.js","./blocklet-e4asDkfP.js","./team-BGXKsY22.js","./url-evaluation-Bukt7_Lj.js","./status-D6WlCP08.js","./index-BQ9Dluv4.js","./ErrorOutline-jxA-S5AH.js","./omit-jBEByUQC.js","./index-DVXDeiLF.js","./metric-BcTiOrOk.js","./CardContent-DXDn75TD.js","./spaces-OwZlXUZ4.js","./api-ZR56mSDv.js","./domains-DgPIevHh.js","./index-CVfXb0nN.js","./useAsync-tWL_hrVo.js","./permission-D1opDJhT.js","./Delete-Cw_Z_UMc.js","./actions-QNxlOGpH.js","./delete-confirm-Dk2gUSc_.js","./click-to-copy-D5SbepAS.js","./status-cEVhL_8t.js","./VerifiedUser-Bq5EjyL0.js","./Add-CVe35B9U.js","./CallMerge-CZNqia3S.js","./toLower-CSOmIMZJ.js","./use-mobile-CFNU7YUg.js","./util-Byl4XHzq.js","./is-path-prefix-equal-Df12gAPj.js","./engine-AOyfq5pg.js","./OpenInNew-awII5Ys1.js","./LoadingButton-OiBPqmL8.js","./index-BTw_aopw.js","./actions-BHqqnvHK.js","./useLocalStorage-MLO2O-Eu.js","./MoreVert-DJQ3tC1s.js","./DeleteOutline-D2i9YJBS.js","./get-safe-url-D0pcxgUJ.js","./ButtonGroup-83J5hh2q.js","./getValidReactChildren-BrnINUbd.js","./ChevronRight-DIxNh4jH.js","./html-title-CT8s_pnR.js","./preference-Cs7lm-MF.js","./index-BFzkIx2h.js","./Done-CmV6TZSG.js","./edit.svg-BGFHNdYl.js","./ArrowDropDown-59b471Ns.js","./index-Dz1ZwZ8x.js","./iframe-BzTEh7qO.js","./Autocomplete-CZdtlRmS.js","./ListSubheader-BgTycqrg.js","./rotate-session-key-BiL0Bo_O.js","./visuallyHidden-Dan1xhjv.js","./chain-CADjEEjt.js","./switch-control-DfH5Tjol.js","./index.esm-CL88L2RD.js","./index-Bd2vWvMu.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./provider-icon-CFKcu3V6.js","./simple-select-BhAfKrhv.js","./index-DvMdH51T.js","./FilterList-B8T7rkYs.js","./CSSTransition-Dmpq-B51.js","./emotion-cache.browser.esm-CO4m2LjK.js","./depsEqual-D1oKMHHx.js","./TableSearch-NL7mGzF6.js","./Search-DobdZczv.js","./Clear-kzRbvP4u.js","./use-mobile-BIQUR7Fz.js","./EditOutlined-MUSbzQj_.js","./appearance-CL4dIHJL.js","./config-navigation-ySXIDWww.js","./cloneDeep-ChH4oif_.js","./_createAggregator-xAuoCETp.js","./raf-schd.esm-D0EagQlv.js","./ListItemButton-DLzzgnWj.js","./index-Bmj3JRL8.js","./KeyboardArrowDown-CE7zJDcv.js","./index-BaJk36L1.js","./index-BV0mjh6r.js","./shorten-label-BNzeaF4J.js","./Replay-CMmg_T4k.js","./Refresh-BpllOjUS.js","./traffic-DvCEQ5xd.js","./ChevronLeft-B8v-crqw.js","./index-DBii9-f-.js","./base-chart-CbniXo_r.js","./index-LvA6paIR.js","./AdapterDayjs-CtD5my-S.js","./useThemeProps-C4X8Xuf-.js","./audit-logs-BHIFDkts.js","./index-Cy488fNr.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./UnfoldMore-BNE7Q7I9.js","./index-DxFY8dMO.js","./ua-parser-DP5omx3I.js","./index-CB1i_uf2.js","./Google-Bg8SlDZS.js","./list-header-CjwjgfKp.js","./ToggleButtonGroup-1ZqP29sD.js","./lock.svg-BmAm_LJl.js","./index-Bwnzqjf1.js","./ViewList-DikGBOob.js","./Verified-pVnWh8ct.js","./index-bAcW8HYF.js","./sdk-B0lvz_Iz.js","./service-BTdtH483.js","./table-icons-CDTf0wL3.js","./Edit-DDUKSYdb.js","./index-B1_4iuGC.js","./Link-C39j8j-1.js","./item-D4OgvExU.js","./Launch-BHeCrhBj.js","./item-G0iZE90Q.css","./index-Cq78KErH.js","./url-join-xsOaQKQ2.js","./connect-to-98MGJ7Yl.js","./index-DRYJ0xIl.js","./agreement-D-rCiZRR.js","./install-from-url-C9wGB_q1.js","./without-wallet-U6nu7HMX.js","./Stepper-DJ4LlLol.js","./toUpper-DnO1VFxi.js","./log-9z7r8Lwt.js","./download-DjUrRSaE.js","./runtime-DUYT_SiT.js","./memory-DO3ZqhrY.js","./index-BspQeR3D.js"])))=>i.map(i=>d[i]);
2
+ import{V as He,n as qe,bn as Ct,r as b,aH as F,j as d,Y as Qe,J as Z,v as Ge,w as Tt,i as j,bC as jt,H as J,Z as Ke,bm as We,A as Pt,u as At,d as Dt,bD as Ot,bE as Lt,bF as Ae,bG as Bt,bH as Mt,I as De,C as Oe,M as Rt,bI as Nt,T as ue,K as Ft,bJ as I,s as Vt}from"./index-DQhyMeoV.js";import{T as zt,u as $t}from"./html-title-CT8s_pnR.js";import{B as Ut}from"./status-cEVhL_8t.js";import{D as Ht,B as qt}from"./actions-BHqqnvHK.js";import{u as Qt}from"./blocklet-e4asDkfP.js";import{p as Gt}from"./index-BazbEWXv.js";import{B as Kt,a as Wt,T as Jt}from"./team-BGXKsY22.js";import{P as Xt}from"./permission-D1opDJhT.js";import{B as Yt}from"./Breadcrumbs-DOWk4s-Q.js";import"./useLocalStorage-MLO2O-Eu.js";import"./MoreVert-DJQ3tC1s.js";import"./DeleteOutline-D2i9YJBS.js";import"./get-safe-url-D0pcxgUJ.js";import"./ButtonGroup-83J5hh2q.js";import"./getValidReactChildren-BrnINUbd.js";import"./url-evaluation-Bukt7_Lj.js";/**
3
3
  * (c) Iconify
4
4
  *
5
5
  * For the full copyright and license information, please view the license.txt or license.gpl.txt
@@ -9,7 +9,7 @@ import{V as He,n as qe,bn as Ct,r as b,aH as F,j as d,Y as Qe,J as Z,v as Ge,w a
9
9
  *
10
10
  * @license MIT
11
11
  * @version 3.1.1
12
- */const Je=Object.freeze({left:0,top:0,width:16,height:16}),ee=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...Je,...ee}),me=Object.freeze({...H,body:"",hidden:!1});function Zt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Le(e,t){const n=Zt(e,t);for(const r in me)r in ee?r in e&&!(r in n)&&(n[r]=ee[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function en(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function tn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=Le(r[c]||o[c],s)}return i(t),n.forEach(i),Le(e,s)}function nn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=en(e);for(const o in r){const s=r[o];s&&(t(o,tn(e,o,s)),n.push(o))}return n}const V=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!X(a)?null:a}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!X(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!X(c,n)?null:c}return null},X=(e,t)=>e?!!((e.provider===""||e.provider.match(V))&&(t&&e.prefix===""||e.prefix.match(V))&&e.name.match(V)):!1,on={provider:"",aliases:{},not_found:{},...Je};function fe(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function rn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!fe(e,on))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(V)||typeof s.body!="string"||!fe(s,me))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(V)||typeof i!="string"||!n[i]&&!r[i]||!fe(s,me))return null}return t}const te=Object.create(null);function sn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=te[e]||(te[e]=Object.create(null));return n[t]||(n[t]=sn(e,t))}function Ee(e,t){return rn(t)?nn(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function cn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function an(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(te)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(te[o]||{})).forEach(i=>{const c=C(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let _e=!1;function ln(e){return _e}function q(e){const t=typeof e=="string"?R(e,!0,_e):e;if(t){const n=C(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function un(e,t){const n=R(e,!0,_e);if(!n)return!1;const r=C(n.provider,n.prefix);return cn(r,n.name,t)}function Xe(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!X({provider:t,prefix:n,name:"a"}))return!1;const r=C(t,n);return!!Ee(r,e)}function fn(e){return!!q(e)}function dn(e){const t=q(e);return t?{...H,...t}:null}const Ye=Object.freeze({width:null,height:null}),Ze=Object.freeze({...Ye,...ee}),pn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,mn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function he(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(pn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=mn.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const hn=e=>e==="unset"||e==="undefined"||e==="none";function re(e,t){const n={...H,...e},r={...Ze,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(g=>{const y=[],E=g.hFlip,A=g.vFlip;let w=g.rotate;E?A?w+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):A&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.push("scale(1 -1)"),o.top=o.left=0);let S;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:S=o.height/2+o.top,y.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:S=o.width/2+o.left,y.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}w%2===1&&(o.left!==o.top&&(S=o.left,o.left=o.top,o.top=S),o.width!==o.height&&(S=o.width,o.width=o.height,o.height=S)),y.length&&(s='<g transform="'+y.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,a=o.height;let u,p;i===null?(p=c===null?"1em":c==="auto"?a:c,u=he(p,l/a)):(u=i==="auto"?l:i,p=c===null?he(u,a/l):c==="auto"?a:c);const f={},h=(g,y)=>{hn(y)||(f[g]=y.toString())};return h("width",u),h("height",p),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:f,body:s}}const gn=/\sid="(\S+)"/g,bn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yn=0;function et(e,t=bn){const n=[];let r;for(;r=gn.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const D={local:!0,session:!0},tt={local:new Set,session:new Set};let Ce=!1;function vn(e){Ce=e}const Be="iconify2",U="iconify",nt=U+"-count",Me=U+"-version",ot=36e5,xn=168;function ge(e,t){try{return e.getItem(t)}catch{}}function Te(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Re(e,t){try{e.removeItem(t)}catch{}}function be(e,t){return Te(e,nt,t.toString())}function ye(e){return parseInt(ge(e,nt))||0}let K=typeof window>"u"?{}:window;function rt(e){const t=e+"Storage";try{if(K&&K[t]&&typeof K[t].length=="number")return K[t]}catch{}D[e]=!1}function st(e,t){const n=rt(e);if(!n)return;const r=ge(n,Me);if(r!==Be){if(r){const c=ye(n);for(let l=0;l<c;l++)Re(n,U+l.toString())}Te(n,Me,Be),be(n,0);return}const o=Math.floor(Date.now()/ot)-xn,s=c=>{const l=U+c.toString(),a=ge(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Re(n,l)}};let i=ye(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,be(n,i)):tt[e].add(c))}function it(){if(!Ce){vn(!0);for(const e in D)st(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=C(r,o);if(!Ee(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function ct(e,t){switch(e){case"local":case"session":D[e]=t;break;case"all":for(const n in D)D[n]=t;break}}const ve=Object.create(null);function at(e,t){ve[e]=t}function xe(e){return ve[e]||ve[""]}function je(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const se=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],Y=[];for(;N.length>0;)N.length===1||Math.random()>.5?Y.push(N.shift()):Y.push(N.pop());se[""]=je({resources:["https://api.iconify.design"].concat(Y)});function lt(e,t){const n=je(t);return n===null?!1:(se[e]=n,!0)}function ie(e){return se[e]}function wn(){return Object.keys(se)}const Sn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ne=Sn();function In(e){ne=e}function kn(){return ne}function En(e,t){const n=ie(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function _n(e){return e===404}const Cn=(e,t,n)=>{const r=[],o=En(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function Tn(e){if(typeof e=="string"){const t=ie(e);if(t)return t.path}return"/"}const jn=(e,t,n)=>{if(!ne){n("abort",424);return}let r=Tn(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;ne(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(_n(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Pn={prepare:Cn,send:jn};function An(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=C(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const p={provider:s,prefix:i,name:c};u.push(p)}),t}function ut(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Dn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ut([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let On=0;function Ln(e,t,n){const r=On++,o=ut.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function Bn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?R(o,t,n):o;s&&r.push(s)}),r}var Mn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Rn(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const k=Math.floor(Math.random()*m.length);i.push(m[k]),m=m.slice(0,k).concat(m.slice(k+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,p=null,f=[],h=[];typeof r=="function"&&h.push(r);function g(){p&&(clearTimeout(p),p=null)}function y(){l==="pending"&&(l="aborted"),g(),f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function E(m,k){k&&(h=[]),typeof m=="function"&&h.push(m)}function A(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:f.length,subscribe:E,abort:y}}function w(){l="failed",h.forEach(m=>{m(void 0,u)})}function S(){f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function L(m,k,_){const B=k!=="success";switch(f=f.filter(T=>T!==m),l){case"pending":break;case"failed":if(B||!e.dataAfterTimeout)return;break;default:return}if(k==="abort"){u=_,w();return}if(B){u=_,f.length||(i.length?v():w());return}if(g(),S(),!e.random){const T=e.resources.indexOf(m.resource);T!==-1&&T!==e.index&&(e.index=T)}l="completed",h.forEach(T=>{T(_)})}function v(){if(l!=="pending")return;g();const m=i.shift();if(m===void 0){if(f.length){p=setTimeout(()=>{g(),l==="pending"&&(S(),w())},e.timeout);return}w();return}const k={status:"pending",resource:m,callback:(_,B)=>{L(k,_,B)}};f.push(k),a++,p=setTimeout(v,e.rotate),n(m,t,k.callback)}return setTimeout(v),A}function ft(e){const t={...Mn,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const u=Rn(t,c,l,(p,f)=>{r(),a&&a(p,f)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Ne(){}const de=Object.create(null);function Nn(e){if(!de[e]){const t=ie(e);if(!t)return;const n=ft(t),r={config:t,redundancy:n};de[e]=r}return de[e]}function dt(e,t,n){let r,o;if(typeof e=="string"){const s=xe(e);if(!s)return n(void 0,424),Ne;o=s.send;const i=Nn(e);i&&(r=i.redundancy)}else{const s=je(e);if(s){r=ft(s);const i=e.resources?e.resources[0]:"",c=xe(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),Ne):r.query(t,o,n)().abort}function Fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in D)st(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Vn(e,t){Ce||it();function n(r){let o;if(!D[r]||!(o=rt(r)))return;const s=tt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ye(o),!be(o,i+1))return;const c={cached:Math.floor(Date.now()/ot),provider:e.provider,data:t};return Te(o,U+i.toString(),JSON.stringify(c))}t.lastModified&&!Fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Fe(){}function zn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Dn(e)}))}function $n(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=xe(n)))return;s.prepare(n,r,o).forEach(c=>{dt(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=Ee(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(p=>{u.delete(p)}),Vn(e,l)}catch(a){console.error(a)}zn(e)})})}))}const Un=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Pe=(e,t)=>{const n=Bn(e,!0,ln()),r=An(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Fe)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(C(a,u));const p=o[a]||(o[a]=Object.create(null));p[u]||(p[u]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:u,name:p}=l,f=C(a,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(p)||(h.add(p),o[a][u].push(p))}),s.forEach(l=>{const{provider:a,prefix:u}=l;o[a][u].length&&$n(l,o[a][u])}),t?Ln(t,r,s):Fe},Hn=e=>new Promise((t,n)=>{const r=typeof e=="string"?R(e,!0):e;if(!r){n(e);return}Pe([r||e],o=>{if(o.length&&r){const s=q(r);if(s){t({...H,...s});return}}n(e)})});function pt(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Ye?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ce={...Ze,inline:!1},pe="iconify",we="iconify-inline",P="iconifyData"+Date.now();let O=[];function Q(e){for(let t=0;t<O.length;t++){const n=O[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function mt(e,t=!1){let n=Q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},O.push(n),n)}function qn(){if(document.documentElement)return mt(document.documentElement);O.push({node:()=>document.documentElement})}function Qn(e){O=O.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function G(){return O}function Gn(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let z=null;const Kn={childList:!0,subtree:!0,attributes:!0};function ht(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,z&&z(e)}))}function Wn(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[P]!==void 0){n.paused||ht(e);return}}}function gt(e,t){e.observer.instance.observe(t,Kn)}function oe(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(Wn.bind(null,e)),gt(e,n),t.paused||ht(e))}function Ve(){G().forEach(oe)}function bt(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function Jn(e){const t=z!==null;if(z!==e&&(z=e,t&&G().forEach(bt)),t){Ve();return}Gn(Ve)}function Se(e){(e?[e]:G()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function Xn(e){if(e){const t=Q(e);t&&Se(t)}else Se()}function Ie(e){(e?[e]:G()).forEach(t=>{if(!t.observer){oe(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?gt(t,r):oe(t);else return}})}function Yn(e){if(e){const t=Q(e);t&&Ie(t)}else Ie()}function yt(e,t=!1){const n=mt(e,t);return oe(n),n}function vt(e){const t=Q(e);t&&(bt(t),Qn(e))}function Zn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ce)if(n[o]!==r[o])return!0;return!1}function eo(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const to=/[\s,]+/;function no(e,t){t.split(to).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const oo=["width","height"],ro=["inline","hFlip","vFlip"];function so(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function io(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&R(t,!0);if(!n)return null;const r={...ce,inline:e.classList&&e.classList.contains(we)};oo.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=eo(o));const s=e.getAttribute("data-flip");typeof s=="string"&&no(r,s),ro.forEach(c=>{const l="data-"+c,a=so(e.getAttribute(l),l);typeof a=="boolean"&&(r[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const co="svg."+pe+", i."+pe+", span."+pe+", i."+we+", span."+we;function ao(e){const t=[];return e.querySelectorAll(co).forEach(n=>{const r=n[P]||n.tagName.toLowerCase()!=="svg"?io(n):null;r&&t.push({node:n,props:r})}),t}function xt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let $;function lo(){try{$=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{$=null}}function uo(e){return $===void 0&&lo(),$?$.createHTML(e):e}function wt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function St(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function It(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function kt(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=re(n,o),i=e[P],c=xt(et(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=uo(c);const l=r.childNodes[0],a=e.attributes;for(let g=0;g<a.length;g++){const y=a.item(g),E=y.name;E!=="class"&&!l.hasAttribute(E)&&l.setAttribute(E,y.value)}const u=wt(t.icon),p=St(l,u,new Set(i&&i.addedClasses),e),f=It(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:p,addedStyles:f};return l[P]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function fo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function po(e){return"data:image/svg+xml,"+fo(e)}function mo(e){return'url("'+po(e)+'")'}const ho={display:"inline-block"},ke={"background-color":"currentColor"},Et={"background-color":"transparent"},ze={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},$e={"-webkit-mask":ke,mask:ke,background:Et};for(const e in $e){const t=$e[e];for(const n in ze)t[e+"-"+n]=ze[n]}function Ue(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function go(e,t,n,r){const o=t.customisations,s=re(n,o),i=s.attributes,c=e[P],l=xt(s.body,{...i,width:n.width+"",height:n.height+""}),a=wt(t.icon),u=St(e,a,new Set(c&&c.addedClasses)),f={"--svg":mo(l),width:Ue(i.width),height:Ue(i.height),...ho,...r?ke:Et};o.inline&&(f["vertical-align"]="-0.125em");const h=It(e,f,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[P]=g,e}let W=!1;function bo(){W||(W=!0,setTimeout(()=>{W&&(W=!1,M())}))}function M(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,a=C(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!Un(o)){const p=n[i]||(n[i]=Object.create(null));(p[c]||(p[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:G()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,p){if(c||(c=!0,Se(o)),a.tagName.toUpperCase()!=="SVG"){const f=u.mode,h=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){go(a,u,{...H,...p},h);return}}kt(a,u,p)}ao(s).forEach(({node:a,props:u})=>{const p=a[P];if(!p){const{status:h,icon:g}=r(u.icon,!0);if(g){l(a,u,g);return}i=i||h==="loading",a[P]={...u,status:h};return}let f;if(Zn(p,u)){if(f=r(u.icon,p.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(p,{...u,status:f.status});return}}else{if(p.status!=="loading")return;if(f=r(u.icon,!1),!f.icon){p.status=f.status;return}}l(a,u,f.icon)}),o.temporary&&!i?vt(s):t&&i?yt(s,!0):c&&o.observer&&Ie(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];Pe(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),bo)}}}function yo(e){const t=Q(e);t?M(t):M({node:e,temporary:!0},!0)}function _t(e,t,n=!1){const r=q(e);if(!r)return null;const o=R(e),s=pt(ce,t||{}),i=kt(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function vo(){return"3.1.1"}function xo(e,t){return _t(e,t,!1)}function wo(e,t){return _t(e,t,!0)}function So(e,t){const n=q(e);if(!n)return null;const r=pt(ce,t||{});return re(n,r)}function Io(e){e?yo(e):M()}if(typeof document<"u"&&typeof window<"u"){qn();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Xe(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Jn(M),M()})}function ko(e,t){ct(e,t!==!1)}function Eo(e){ct(e,!0)}at("",Pn);if(typeof document<"u"&&typeof window<"u"){it();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;lt(n,o)||console.error(r)}catch{console.error(r)}}}}const _o={getAPIConfig:ie,setAPIModule:at,sendAPIQuery:dt,setFetch:In,getFetch:kn,listAPIProviders:wn},Co={_api:_o,addAPIProvider:lt,loadIcons:Pe,loadIcon:Hn,iconExists:fn,getIcon:dn,listIcons:an,addIcon:un,addCollection:Xe,replaceIDs:et,calculateSize:he,buildIcon:re,getVersion:vo,renderSVG:xo,renderHTML:wo,renderIcon:So,scan:Io,observe:yt,stopObserving:vt,pauseObserver:Xn,resumeObserver:Yn,enableCache:ko,disableCache:Eo};try{self.Iconify===void 0&&(self.Iconify=Co)}catch{}const To=e=>{const t={};let n=null;return j.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=j.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},jo=(e,t,n)=>{const{hostname:r,href:o}=e;if(!t)return o;if(n){const i=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!i)return o;const c=i[0],a=((t.site?.domainAliases||[]).map(u=>u.value).filter(Boolean).find(u=>u.endsWith(F.DEFAULT_DID_DOMAIN))||"").replace(`.${F.DEFAULT_DID_DOMAIN}`,"");return a?o.replace(r,`${a}-${c}.${F.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Po(){const{t:e}=He(),{api:t}=qe(),{blocklet:n}=Qt(),{inService:r}=Ct(),[o,s]=b.useState(!1),[i,c]=b.useState(5),l=n&&n.structVersion!==F.APP_STRUCT_VERSION,a=()=>{try{if(j.isBlockletRunning(n)){J.error(e("blocklet.migrate.tip.running"));return}const f=To(n);if(f){J.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}s(!0)}catch(f){J.error(Ke(f))}},u=()=>{const f=jo(window.location,n,r);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},p=()=>s(!1);return[l&&d.jsxs(Qe,{severity:"warning",style:{margin:"12px 0"},children:[d.jsxs(Z,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(Ge,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),d.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>d.jsx(Z,{sx:{display:"flex",alignItems:"center"},children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&d.jsx(Tt,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:jt(n,!0),title:j.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:p},"connect")]}const Ao=b.lazy(()=>I(()=>import("./overview-DL-GP40o.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url)),Do=b.lazy(()=>I(()=>import("./domains-BJzrDugH.js"),__vite__mapDeps([18,1,2,19,20,6,21,22,23,24,25,26,27,15,28,29,30,31,5,32,33,34,35,36,10]),import.meta.url)),Oo=b.lazy(()=>I(()=>import("./index-B3tcK3_z.js"),__vite__mapDeps([37,1,2,38,39,40,41,42,43,44,8,21,45,46,10,47,12,48,49,50,51,52,53,54,55,56,57,6,25,7,5,58,9,11,13,59,60,61,62,63,64,65,22,28,66,67,68,69,70,19,71,72,73,74,75,15]),import.meta.url)),Lo=b.lazy(()=>I(()=>import("./appearance-CKF7Bo6h.js"),__vite__mapDeps([76,1,2,6,74]),import.meta.url)),Bo=b.lazy(()=>I(()=>import("./config-navigation-B-CtKO70.js"),__vite__mapDeps([77,1,2,12,78,48,79,70,6,61,62,63,80,7,8,38,39,40,41,42,43,44,21,60,65,46,73,51,17,54,55,81,31,82,83,72,28,35,84,53,36]),import.meta.url)),Mo=b.lazy(()=>I(()=>import("./index-Dr7VuVvC.js"),__vite__mapDeps([85,1,2,66,67,68,69,61,62,63,70,19,71,72,73,40,86,5,46,87,88,89,53,90,45,91,92,93,94,95,57]),import.meta.url)),Ro=b.lazy(()=>I(()=>import("./audit-logs-CLt2l7-q.js"),__vite__mapDeps([96,19,1,2,71,72,73,39,97,98,99,100,86,7,6,8]),import.meta.url)),No=b.lazy(()=>I(()=>import("./index-CBHMH4Z7.js").then(e=>e.i),__vite__mapDeps([101,1,2,66,67,68,69,61,62,63,70,19,71,72,73,40,46,7,6,8,102,74,103,43,44,21,104,78,28,50,105,58,106,107]),import.meta.url)),Fo=b.lazy(()=>I(()=>import("./index-CKWS_NIP.js").then(e=>e.i),__vite__mapDeps([108,1,2,28,109,66,67,68,69,61,62,63,70,19,71,72,73,40,13,103,43,44,7,6,8,60,104,78,54,55,100,75,21,25,94,95,57,46,5,110,41,11,111,112,82,74,22,23,86,102]),import.meta.url)),Vo=b.lazy(()=>I(()=>import("./service-DCzLPjA3.js"),__vite__mapDeps([113,1,2,114,67,68,69,91,63,80,62,95,46,28,22,73,115,45,90,72,51]),import.meta.url)),zo=b.lazy(()=>I(()=>import("./index-HqyXcG7M.js"),__vite__mapDeps([116,1,2,19,38,39,40,41,42,43,44,8,21,59,6,115,114,67,68,69,91,63,80,62,95,46,28,22,73,45,90,72,51,47,12,48,49,50,52,53,25,103,117,118,82,83,54,55,110,27,119,24,120,121,122,34,123,4,16,17,35,124,3,125,97,98,99,104,78,126,26,127,5,81,128,32,33,74,11,107,87,23,129,7]),import.meta.url)),$o=b.lazy(()=>I(()=>import("./log-D4BWVj7G.js"),__vite__mapDeps([130,1,2,39,131,43,44,55]),import.meta.url)),Uo=b.lazy(()=>I(()=>import("./runtime-BUcScDcM.js"),__vite__mapDeps([132,1,2,66,67,68,69,61,62,63,70,19,71,72,73,40,6,124,133,92,93,26,106,44]),import.meta.url)),Ho=b.lazy(()=>I(()=>import("./traffic-C_4zWOQM.js").then(e=>e.t),__vite__mapDeps([89,1,2,53,90,45,91,63,92,93,94,95,68,57]),import.meta.url)),qo=b.lazy(()=>I(()=>import("./index-DCHzmqFc.js"),__vite__mapDeps([134,1,2,46,6,74,123,103,43,44,4,16,17,41,35,124,3,5,93,66,67,68,69,61,62,63,70,19,71,72,73,40,42,59,105]),import.meta.url)),Qo=({children:e})=>e;function Go(){const e=Pt(),{tab:t="overview"}=We(),{did:n,blocklet:r,error:o,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=Wt(),{refresh:l}=At(),{t:a}=He(),{session:u}=qe(),{data:p}=Dt(),f=Ot(()=>u.user?.role&&Lt.includes(u.user.role),[u]),h=b.useCallback(()=>d.jsx(Ro,{scope:n,blocklets:p}),[n,p]),g=b.useCallback(()=>f?d.jsx(Mo,{blocklet:r}):d.jsx(Gt,{status:403}),[r,f]),y=r?.environments.find(x=>x.key==="BLOCKLET_APP_URL")?.value||window.location.origin,E=x=>Mt(x,y),A=x=>{e(`/blocklets/${n}/${x}`)},w=x=>{x&&i(x),c()},S=!r||Ae(r.status)?[]:j.getAppMissingConfigs(r);let L=null;const v=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:d.jsx(Bt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!S.length,children:a("common.components")}),value:"components"}];if(o)L=d.jsxs(d.Fragment,{children:[d.jsx(Qe,{severity:"error",children:Ke(o)}),d.jsx(Ge,{onClick:()=>c(),children:d.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(r){const x={overview:d.jsx(Ao,{}),domains:d.jsx(Do,{}),configuration:Oo,appearance:Lo,navigation:Bo,services:Vo,members:d.jsx(Fo,{type:"blocklet",createPassportSvg:E}),passports:No,components:zo,"audit-logs":h,notifications:g,logs:$o,runtime:d.jsx(Uo,{}),traffic:d.jsx(Ho,{client:s,did:n}),didSpaces:d.jsx(qo,{})};t==="configuration"&&Ae(r.status)&&A("overview"),v.push({label:a("common.domains"),value:"domains"}),v.push({label:a("common.members"),value:"members"}),v.push({label:a("team.member.passports"),value:"passports"}),v.push({label:a("common.configuration"),value:"configuration"}),v.push({label:a("common.appearance"),value:"appearance"}),v.push({label:a("common.auditLogs"),value:"audit-logs"}),f&&v.push({label:a("common.notificationRecords"),value:"notifications"}),r&&r.children?.length&&r.structVersion===F.APP_STRUCT_VERSION&&v.push({label:a("common.logs"),value:"logs"}),v.push({label:a("common.configNavigation"),value:"navigation"}),v.push({label:a("common.runtime"),value:"runtime"}),v.push({label:a("common.traffic"),value:"traffic"}),v.push({label:a("storage.spaces.title"),value:"didSpaces"}),j.getBlockletServices(r).length&&v.splice(2,0,{label:a("blocklet.services"),value:"services"});const le=x[t]||x.overview;L=d.jsxs(Ht,{type:"components",children:[!j.isExternalBlocklet(r)&&d.jsx(zt,{tabs:v,current:t,onChange:A,scrollButtons:"auto"}),d.jsx("div",{className:"page-content",children:d.jsx(b.Suspense,{fallback:d.jsx(De,{relative:"parent",children:d.jsx(Oe,{})}),children:b.isValidElement(le)?le:d.jsx(le,{blocklet:r,onUpdate:w,createPassportSvg:E})})})]})}else L=d.jsx(De,{relative:"parent",children:d.jsx(Oe,{})});const m=()=>{},k=({action:x,error:ae})=>{if(ae){J.error(ae.message);return}x==="remove"?(l(),e("/blocklets")):c()},_=v.find(x=>x.value===t),B=r?Jt:Qo,T=$t(_,r?.meta?.title||a("common.blocklets"));return d.jsxs(B,{teamDid:n,children:[T,d.jsxs(Ko,{children:[d.jsxs(Yt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[d.jsx(Rt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),d.jsx(Nt,{to:`/blocklets/${n}/overview`,style:x=>x?{color:"inherit"}:{},children:a("common.detail")}),d.jsx(ue,{color:"textSecondary",children:_?_.breadcrumbsLabel||_.label:""})]}),d.jsxs(ue,{component:"div",className:"page-header",children:[d.jsxs(ue,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[r?d.jsx(Ft,{blocklet:r,style:{marginRight:16}}):null,r?d.jsxs(Z,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1},children:[d.jsx(Z,{children:j.getDisplayName(r)}),r?.status!=="unknown"&&d.jsx(Ut,{size:"12px",status:r.status,source:r.source,progress:r.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),d.jsx(Xt,{permission:"mutate_blocklets",children:!!r&&!j.isExternalBlocklet(r)&&d.jsx(qt,{className:"page-actions",blocklet:r,onStart:m,onComplete:k,variant:"group",source:"blocklet-detail"})})]}),d.jsx(Po,{}),L]})]})}function fr(){const{did:e}=We();return e?d.jsx(Kt,{did:e,children:d.jsx(Go,{})}):null}const Ko=Vt.main`
12
+ */const Je=Object.freeze({left:0,top:0,width:16,height:16}),ee=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...Je,...ee}),me=Object.freeze({...H,body:"",hidden:!1});function Zt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Le(e,t){const n=Zt(e,t);for(const r in me)r in ee?r in e&&!(r in n)&&(n[r]=ee[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function en(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function tn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=Le(r[c]||o[c],s)}return i(t),n.forEach(i),Le(e,s)}function nn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=en(e);for(const o in r){const s=r[o];s&&(t(o,tn(e,o,s)),n.push(o))}return n}const V=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!X(a)?null:a}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!X(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!X(c,n)?null:c}return null},X=(e,t)=>e?!!((e.provider===""||e.provider.match(V))&&(t&&e.prefix===""||e.prefix.match(V))&&e.name.match(V)):!1,on={provider:"",aliases:{},not_found:{},...Je};function fe(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function rn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!fe(e,on))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(V)||typeof s.body!="string"||!fe(s,me))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(V)||typeof i!="string"||!n[i]&&!r[i]||!fe(s,me))return null}return t}const te=Object.create(null);function sn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=te[e]||(te[e]=Object.create(null));return n[t]||(n[t]=sn(e,t))}function Ee(e,t){return rn(t)?nn(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function cn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function an(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(te)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(te[o]||{})).forEach(i=>{const c=C(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let _e=!1;function ln(e){return _e}function q(e){const t=typeof e=="string"?R(e,!0,_e):e;if(t){const n=C(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function un(e,t){const n=R(e,!0,_e);if(!n)return!1;const r=C(n.provider,n.prefix);return cn(r,n.name,t)}function Xe(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!X({provider:t,prefix:n,name:"a"}))return!1;const r=C(t,n);return!!Ee(r,e)}function fn(e){return!!q(e)}function dn(e){const t=q(e);return t?{...H,...t}:null}const Ye=Object.freeze({width:null,height:null}),Ze=Object.freeze({...Ye,...ee}),pn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,mn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function he(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(pn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=mn.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const hn=e=>e==="unset"||e==="undefined"||e==="none";function re(e,t){const n={...H,...e},r={...Ze,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(g=>{const y=[],E=g.hFlip,A=g.vFlip;let w=g.rotate;E?A?w+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):A&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.push("scale(1 -1)"),o.top=o.left=0);let S;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:S=o.height/2+o.top,y.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:S=o.width/2+o.left,y.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}w%2===1&&(o.left!==o.top&&(S=o.left,o.left=o.top,o.top=S),o.width!==o.height&&(S=o.width,o.width=o.height,o.height=S)),y.length&&(s='<g transform="'+y.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,a=o.height;let u,p;i===null?(p=c===null?"1em":c==="auto"?a:c,u=he(p,l/a)):(u=i==="auto"?l:i,p=c===null?he(u,a/l):c==="auto"?a:c);const f={},h=(g,y)=>{hn(y)||(f[g]=y.toString())};return h("width",u),h("height",p),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:f,body:s}}const gn=/\sid="(\S+)"/g,bn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yn=0;function et(e,t=bn){const n=[];let r;for(;r=gn.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const D={local:!0,session:!0},tt={local:new Set,session:new Set};let Ce=!1;function vn(e){Ce=e}const Be="iconify2",U="iconify",nt=U+"-count",Me=U+"-version",ot=36e5,xn=168;function ge(e,t){try{return e.getItem(t)}catch{}}function Te(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Re(e,t){try{e.removeItem(t)}catch{}}function be(e,t){return Te(e,nt,t.toString())}function ye(e){return parseInt(ge(e,nt))||0}let K=typeof window>"u"?{}:window;function rt(e){const t=e+"Storage";try{if(K&&K[t]&&typeof K[t].length=="number")return K[t]}catch{}D[e]=!1}function st(e,t){const n=rt(e);if(!n)return;const r=ge(n,Me);if(r!==Be){if(r){const c=ye(n);for(let l=0;l<c;l++)Re(n,U+l.toString())}Te(n,Me,Be),be(n,0);return}const o=Math.floor(Date.now()/ot)-xn,s=c=>{const l=U+c.toString(),a=ge(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Re(n,l)}};let i=ye(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,be(n,i)):tt[e].add(c))}function it(){if(!Ce){vn(!0);for(const e in D)st(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=C(r,o);if(!Ee(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function ct(e,t){switch(e){case"local":case"session":D[e]=t;break;case"all":for(const n in D)D[n]=t;break}}const ve=Object.create(null);function at(e,t){ve[e]=t}function xe(e){return ve[e]||ve[""]}function je(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const se=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],Y=[];for(;N.length>0;)N.length===1||Math.random()>.5?Y.push(N.shift()):Y.push(N.pop());se[""]=je({resources:["https://api.iconify.design"].concat(Y)});function lt(e,t){const n=je(t);return n===null?!1:(se[e]=n,!0)}function ie(e){return se[e]}function wn(){return Object.keys(se)}const Sn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ne=Sn();function In(e){ne=e}function kn(){return ne}function En(e,t){const n=ie(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function _n(e){return e===404}const Cn=(e,t,n)=>{const r=[],o=En(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function Tn(e){if(typeof e=="string"){const t=ie(e);if(t)return t.path}return"/"}const jn=(e,t,n)=>{if(!ne){n("abort",424);return}let r=Tn(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;ne(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(_n(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Pn={prepare:Cn,send:jn};function An(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=C(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const p={provider:s,prefix:i,name:c};u.push(p)}),t}function ut(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Dn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ut([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let On=0;function Ln(e,t,n){const r=On++,o=ut.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function Bn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?R(o,t,n):o;s&&r.push(s)}),r}var Mn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Rn(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const k=Math.floor(Math.random()*m.length);i.push(m[k]),m=m.slice(0,k).concat(m.slice(k+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,p=null,f=[],h=[];typeof r=="function"&&h.push(r);function g(){p&&(clearTimeout(p),p=null)}function y(){l==="pending"&&(l="aborted"),g(),f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function E(m,k){k&&(h=[]),typeof m=="function"&&h.push(m)}function A(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:f.length,subscribe:E,abort:y}}function w(){l="failed",h.forEach(m=>{m(void 0,u)})}function S(){f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function L(m,k,_){const B=k!=="success";switch(f=f.filter(T=>T!==m),l){case"pending":break;case"failed":if(B||!e.dataAfterTimeout)return;break;default:return}if(k==="abort"){u=_,w();return}if(B){u=_,f.length||(i.length?v():w());return}if(g(),S(),!e.random){const T=e.resources.indexOf(m.resource);T!==-1&&T!==e.index&&(e.index=T)}l="completed",h.forEach(T=>{T(_)})}function v(){if(l!=="pending")return;g();const m=i.shift();if(m===void 0){if(f.length){p=setTimeout(()=>{g(),l==="pending"&&(S(),w())},e.timeout);return}w();return}const k={status:"pending",resource:m,callback:(_,B)=>{L(k,_,B)}};f.push(k),a++,p=setTimeout(v,e.rotate),n(m,t,k.callback)}return setTimeout(v),A}function ft(e){const t={...Mn,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const u=Rn(t,c,l,(p,f)=>{r(),a&&a(p,f)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Ne(){}const de=Object.create(null);function Nn(e){if(!de[e]){const t=ie(e);if(!t)return;const n=ft(t),r={config:t,redundancy:n};de[e]=r}return de[e]}function dt(e,t,n){let r,o;if(typeof e=="string"){const s=xe(e);if(!s)return n(void 0,424),Ne;o=s.send;const i=Nn(e);i&&(r=i.redundancy)}else{const s=je(e);if(s){r=ft(s);const i=e.resources?e.resources[0]:"",c=xe(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),Ne):r.query(t,o,n)().abort}function Fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in D)st(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Vn(e,t){Ce||it();function n(r){let o;if(!D[r]||!(o=rt(r)))return;const s=tt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ye(o),!be(o,i+1))return;const c={cached:Math.floor(Date.now()/ot),provider:e.provider,data:t};return Te(o,U+i.toString(),JSON.stringify(c))}t.lastModified&&!Fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Fe(){}function zn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Dn(e)}))}function $n(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=xe(n)))return;s.prepare(n,r,o).forEach(c=>{dt(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=Ee(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(p=>{u.delete(p)}),Vn(e,l)}catch(a){console.error(a)}zn(e)})})}))}const Un=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Pe=(e,t)=>{const n=Bn(e,!0,ln()),r=An(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Fe)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(C(a,u));const p=o[a]||(o[a]=Object.create(null));p[u]||(p[u]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:u,name:p}=l,f=C(a,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(p)||(h.add(p),o[a][u].push(p))}),s.forEach(l=>{const{provider:a,prefix:u}=l;o[a][u].length&&$n(l,o[a][u])}),t?Ln(t,r,s):Fe},Hn=e=>new Promise((t,n)=>{const r=typeof e=="string"?R(e,!0):e;if(!r){n(e);return}Pe([r||e],o=>{if(o.length&&r){const s=q(r);if(s){t({...H,...s});return}}n(e)})});function pt(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Ye?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ce={...Ze,inline:!1},pe="iconify",we="iconify-inline",P="iconifyData"+Date.now();let O=[];function Q(e){for(let t=0;t<O.length;t++){const n=O[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function mt(e,t=!1){let n=Q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},O.push(n),n)}function qn(){if(document.documentElement)return mt(document.documentElement);O.push({node:()=>document.documentElement})}function Qn(e){O=O.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function G(){return O}function Gn(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let z=null;const Kn={childList:!0,subtree:!0,attributes:!0};function ht(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,z&&z(e)}))}function Wn(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[P]!==void 0){n.paused||ht(e);return}}}function gt(e,t){e.observer.instance.observe(t,Kn)}function oe(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(Wn.bind(null,e)),gt(e,n),t.paused||ht(e))}function Ve(){G().forEach(oe)}function bt(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function Jn(e){const t=z!==null;if(z!==e&&(z=e,t&&G().forEach(bt)),t){Ve();return}Gn(Ve)}function Se(e){(e?[e]:G()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function Xn(e){if(e){const t=Q(e);t&&Se(t)}else Se()}function Ie(e){(e?[e]:G()).forEach(t=>{if(!t.observer){oe(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?gt(t,r):oe(t);else return}})}function Yn(e){if(e){const t=Q(e);t&&Ie(t)}else Ie()}function yt(e,t=!1){const n=mt(e,t);return oe(n),n}function vt(e){const t=Q(e);t&&(bt(t),Qn(e))}function Zn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ce)if(n[o]!==r[o])return!0;return!1}function eo(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const to=/[\s,]+/;function no(e,t){t.split(to).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const oo=["width","height"],ro=["inline","hFlip","vFlip"];function so(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function io(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&R(t,!0);if(!n)return null;const r={...ce,inline:e.classList&&e.classList.contains(we)};oo.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=eo(o));const s=e.getAttribute("data-flip");typeof s=="string"&&no(r,s),ro.forEach(c=>{const l="data-"+c,a=so(e.getAttribute(l),l);typeof a=="boolean"&&(r[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const co="svg."+pe+", i."+pe+", span."+pe+", i."+we+", span."+we;function ao(e){const t=[];return e.querySelectorAll(co).forEach(n=>{const r=n[P]||n.tagName.toLowerCase()!=="svg"?io(n):null;r&&t.push({node:n,props:r})}),t}function xt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let $;function lo(){try{$=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{$=null}}function uo(e){return $===void 0&&lo(),$?$.createHTML(e):e}function wt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function St(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function It(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function kt(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=re(n,o),i=e[P],c=xt(et(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=uo(c);const l=r.childNodes[0],a=e.attributes;for(let g=0;g<a.length;g++){const y=a.item(g),E=y.name;E!=="class"&&!l.hasAttribute(E)&&l.setAttribute(E,y.value)}const u=wt(t.icon),p=St(l,u,new Set(i&&i.addedClasses),e),f=It(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:p,addedStyles:f};return l[P]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function fo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function po(e){return"data:image/svg+xml,"+fo(e)}function mo(e){return'url("'+po(e)+'")'}const ho={display:"inline-block"},ke={"background-color":"currentColor"},Et={"background-color":"transparent"},ze={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},$e={"-webkit-mask":ke,mask:ke,background:Et};for(const e in $e){const t=$e[e];for(const n in ze)t[e+"-"+n]=ze[n]}function Ue(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function go(e,t,n,r){const o=t.customisations,s=re(n,o),i=s.attributes,c=e[P],l=xt(s.body,{...i,width:n.width+"",height:n.height+""}),a=wt(t.icon),u=St(e,a,new Set(c&&c.addedClasses)),f={"--svg":mo(l),width:Ue(i.width),height:Ue(i.height),...ho,...r?ke:Et};o.inline&&(f["vertical-align"]="-0.125em");const h=It(e,f,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[P]=g,e}let W=!1;function bo(){W||(W=!0,setTimeout(()=>{W&&(W=!1,M())}))}function M(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,a=C(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!Un(o)){const p=n[i]||(n[i]=Object.create(null));(p[c]||(p[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:G()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,p){if(c||(c=!0,Se(o)),a.tagName.toUpperCase()!=="SVG"){const f=u.mode,h=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){go(a,u,{...H,...p},h);return}}kt(a,u,p)}ao(s).forEach(({node:a,props:u})=>{const p=a[P];if(!p){const{status:h,icon:g}=r(u.icon,!0);if(g){l(a,u,g);return}i=i||h==="loading",a[P]={...u,status:h};return}let f;if(Zn(p,u)){if(f=r(u.icon,p.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(p,{...u,status:f.status});return}}else{if(p.status!=="loading")return;if(f=r(u.icon,!1),!f.icon){p.status=f.status;return}}l(a,u,f.icon)}),o.temporary&&!i?vt(s):t&&i?yt(s,!0):c&&o.observer&&Ie(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];Pe(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),bo)}}}function yo(e){const t=Q(e);t?M(t):M({node:e,temporary:!0},!0)}function _t(e,t,n=!1){const r=q(e);if(!r)return null;const o=R(e),s=pt(ce,t||{}),i=kt(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function vo(){return"3.1.1"}function xo(e,t){return _t(e,t,!1)}function wo(e,t){return _t(e,t,!0)}function So(e,t){const n=q(e);if(!n)return null;const r=pt(ce,t||{});return re(n,r)}function Io(e){e?yo(e):M()}if(typeof document<"u"&&typeof window<"u"){qn();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Xe(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Jn(M),M()})}function ko(e,t){ct(e,t!==!1)}function Eo(e){ct(e,!0)}at("",Pn);if(typeof document<"u"&&typeof window<"u"){it();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;lt(n,o)||console.error(r)}catch{console.error(r)}}}}const _o={getAPIConfig:ie,setAPIModule:at,sendAPIQuery:dt,setFetch:In,getFetch:kn,listAPIProviders:wn},Co={_api:_o,addAPIProvider:lt,loadIcons:Pe,loadIcon:Hn,iconExists:fn,getIcon:dn,listIcons:an,addIcon:un,addCollection:Xe,replaceIDs:et,calculateSize:he,buildIcon:re,getVersion:vo,renderSVG:xo,renderHTML:wo,renderIcon:So,scan:Io,observe:yt,stopObserving:vt,pauseObserver:Xn,resumeObserver:Yn,enableCache:ko,disableCache:Eo};try{self.Iconify===void 0&&(self.Iconify=Co)}catch{}const To=e=>{const t={};let n=null;return j.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=j.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},jo=(e,t,n)=>{const{hostname:r,href:o}=e;if(!t)return o;if(n){const i=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!i)return o;const c=i[0],a=((t.site?.domainAliases||[]).map(u=>u.value).filter(Boolean).find(u=>u.endsWith(F.DEFAULT_DID_DOMAIN))||"").replace(`.${F.DEFAULT_DID_DOMAIN}`,"");return a?o.replace(r,`${a}-${c}.${F.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Po(){const{t:e}=He(),{api:t}=qe(),{blocklet:n}=Qt(),{inService:r}=Ct(),[o,s]=b.useState(!1),[i,c]=b.useState(5),l=n&&n.structVersion!==F.APP_STRUCT_VERSION,a=()=>{try{if(j.isBlockletRunning(n)){J.error(e("blocklet.migrate.tip.running"));return}const f=To(n);if(f){J.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}s(!0)}catch(f){J.error(Ke(f))}},u=()=>{const f=jo(window.location,n,r);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},p=()=>s(!1);return[l&&d.jsxs(Qe,{severity:"warning",style:{margin:"12px 0"},children:[d.jsxs(Z,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(Ge,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),d.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>d.jsx(Z,{sx:{display:"flex",alignItems:"center"},children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&d.jsx(Tt,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:jt(n,!0),title:j.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:p},"connect")]}const Ao=b.lazy(()=>I(()=>import("./overview-CikmJX9H.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url)),Do=b.lazy(()=>I(()=>import("./domains-DgPIevHh.js"),__vite__mapDeps([18,1,2,19,20,6,21,22,23,24,25,26,27,15,28,29,30,31,5,32,33,34,35,36,10]),import.meta.url)),Oo=b.lazy(()=>I(()=>import("./index-BTw_aopw.js"),__vite__mapDeps([37,1,2,38,39,40,41,42,43,44,8,21,45,46,10,47,12,48,49,50,51,52,53,54,55,56,57,6,25,7,5,58,9,11,13,59,60,61,62,63,64,65,22,28,66,67,68,69,70,19,71,72,73,74,75,15]),import.meta.url)),Lo=b.lazy(()=>I(()=>import("./appearance-CL4dIHJL.js"),__vite__mapDeps([76,1,2,6,74]),import.meta.url)),Bo=b.lazy(()=>I(()=>import("./config-navigation-ySXIDWww.js"),__vite__mapDeps([77,1,2,12,78,48,79,70,6,61,62,63,80,7,8,38,39,40,41,42,43,44,21,60,65,46,73,51,17,54,55,81,31,82,83,72,28,35,84,53,36]),import.meta.url)),Mo=b.lazy(()=>I(()=>import("./index-BV0mjh6r.js"),__vite__mapDeps([85,1,2,66,67,68,69,61,62,63,70,19,71,72,73,40,86,5,46,87,88,89,53,90,45,91,92,93,94,95,57]),import.meta.url)),Ro=b.lazy(()=>I(()=>import("./audit-logs-BHIFDkts.js"),__vite__mapDeps([96,19,1,2,71,72,73,39,97,98,99,100,86,7,6,8]),import.meta.url)),No=b.lazy(()=>I(()=>import("./index-DxFY8dMO.js").then(e=>e.i),__vite__mapDeps([101,1,2,66,67,68,69,61,62,63,70,19,71,72,73,40,46,7,6,8,102,74,103,43,44,21,104,78,28,50,105,58,106,107]),import.meta.url)),Fo=b.lazy(()=>I(()=>import("./index-Bwnzqjf1.js").then(e=>e.i),__vite__mapDeps([108,1,2,28,109,66,67,68,69,61,62,63,70,19,71,72,73,40,13,103,43,44,7,6,8,60,104,78,54,55,100,75,21,25,94,95,57,46,5,110,41,11,111,112,82,74,22,23,86,102]),import.meta.url)),Vo=b.lazy(()=>I(()=>import("./service-BTdtH483.js"),__vite__mapDeps([113,1,2,114,67,68,69,91,63,80,62,95,46,28,22,73,115,45,90,72,51]),import.meta.url)),zo=b.lazy(()=>I(()=>import("./index-B1_4iuGC.js"),__vite__mapDeps([116,1,2,19,38,39,40,41,42,43,44,8,21,59,6,115,114,67,68,69,91,63,80,62,95,46,28,22,73,45,90,72,51,47,12,48,49,50,52,53,25,103,117,118,82,83,54,55,110,27,119,24,120,121,122,34,123,4,16,17,35,124,3,125,97,98,99,104,78,126,26,127,5,81,128,32,33,74,11,107,87,23,129,7]),import.meta.url)),$o=b.lazy(()=>I(()=>import("./log-9z7r8Lwt.js"),__vite__mapDeps([130,1,2,39,131,43,44,55]),import.meta.url)),Uo=b.lazy(()=>I(()=>import("./runtime-DUYT_SiT.js"),__vite__mapDeps([132,1,2,66,67,68,69,61,62,63,70,19,71,72,73,40,6,124,133,92,93,26,106,44]),import.meta.url)),Ho=b.lazy(()=>I(()=>import("./traffic-DvCEQ5xd.js").then(e=>e.t),__vite__mapDeps([89,1,2,53,90,45,91,63,92,93,94,95,68,57]),import.meta.url)),qo=b.lazy(()=>I(()=>import("./index-BspQeR3D.js"),__vite__mapDeps([134,1,2,46,6,74,123,103,43,44,4,16,17,41,35,124,3,5,93,66,67,68,69,61,62,63,70,19,71,72,73,40,42,59,105]),import.meta.url)),Qo=({children:e})=>e;function Go(){const e=Pt(),{tab:t="overview"}=We(),{did:n,blocklet:r,error:o,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=Wt(),{refresh:l}=At(),{t:a}=He(),{session:u}=qe(),{data:p}=Dt(),f=Ot(()=>u.user?.role&&Lt.includes(u.user.role),[u]),h=b.useCallback(()=>d.jsx(Ro,{scope:n,blocklets:p}),[n,p]),g=b.useCallback(()=>f?d.jsx(Mo,{blocklet:r}):d.jsx(Gt,{status:403}),[r,f]),y=r?.environments.find(x=>x.key==="BLOCKLET_APP_URL")?.value||window.location.origin,E=x=>Mt(x,y),A=x=>{e(`/blocklets/${n}/${x}`)},w=x=>{x&&i(x),c()},S=!r||Ae(r.status)?[]:j.getAppMissingConfigs(r);let L=null;const v=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:d.jsx(Bt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!S.length,children:a("common.components")}),value:"components"}];if(o)L=d.jsxs(d.Fragment,{children:[d.jsx(Qe,{severity:"error",children:Ke(o)}),d.jsx(Ge,{onClick:()=>c(),children:d.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(r){const x={overview:d.jsx(Ao,{}),domains:d.jsx(Do,{}),configuration:Oo,appearance:Lo,navigation:Bo,services:Vo,members:d.jsx(Fo,{type:"blocklet",createPassportSvg:E}),passports:No,components:zo,"audit-logs":h,notifications:g,logs:$o,runtime:d.jsx(Uo,{}),traffic:d.jsx(Ho,{client:s,did:n}),didSpaces:d.jsx(qo,{})};t==="configuration"&&Ae(r.status)&&A("overview"),v.push({label:a("common.domains"),value:"domains"}),v.push({label:a("common.members"),value:"members"}),v.push({label:a("team.member.passports"),value:"passports"}),v.push({label:a("common.configuration"),value:"configuration"}),v.push({label:a("common.appearance"),value:"appearance"}),v.push({label:a("common.auditLogs"),value:"audit-logs"}),f&&v.push({label:a("common.notificationRecords"),value:"notifications"}),r&&r.children?.length&&r.structVersion===F.APP_STRUCT_VERSION&&v.push({label:a("common.logs"),value:"logs"}),v.push({label:a("common.configNavigation"),value:"navigation"}),v.push({label:a("common.runtime"),value:"runtime"}),v.push({label:a("common.traffic"),value:"traffic"}),v.push({label:a("storage.spaces.title"),value:"didSpaces"}),j.getBlockletServices(r).length&&v.splice(2,0,{label:a("blocklet.services"),value:"services"});const le=x[t]||x.overview;L=d.jsxs(Ht,{type:"components",children:[!j.isExternalBlocklet(r)&&d.jsx(zt,{tabs:v,current:t,onChange:A,scrollButtons:"auto"}),d.jsx("div",{className:"page-content",children:d.jsx(b.Suspense,{fallback:d.jsx(De,{relative:"parent",children:d.jsx(Oe,{})}),children:b.isValidElement(le)?le:d.jsx(le,{blocklet:r,onUpdate:w,createPassportSvg:E})})})]})}else L=d.jsx(De,{relative:"parent",children:d.jsx(Oe,{})});const m=()=>{},k=({action:x,error:ae})=>{if(ae){J.error(ae.message);return}x==="remove"?(l(),e("/blocklets")):c()},_=v.find(x=>x.value===t),B=r?Jt:Qo,T=$t(_,r?.meta?.title||a("common.blocklets"));return d.jsxs(B,{teamDid:n,children:[T,d.jsxs(Ko,{children:[d.jsxs(Yt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[d.jsx(Rt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),d.jsx(Nt,{to:`/blocklets/${n}/overview`,style:x=>x?{color:"inherit"}:{},children:a("common.detail")}),d.jsx(ue,{color:"textSecondary",children:_?_.breadcrumbsLabel||_.label:""})]}),d.jsxs(ue,{component:"div",className:"page-header",children:[d.jsxs(ue,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[r?d.jsx(Ft,{blocklet:r,style:{marginRight:16}}):null,r?d.jsxs(Z,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1},children:[d.jsx(Z,{children:j.getDisplayName(r)}),r?.status!=="unknown"&&d.jsx(Ut,{size:"12px",status:r.status,source:r.source,progress:r.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),d.jsx(Xt,{permission:"mutate_blocklets",children:!!r&&!j.isExternalBlocklet(r)&&d.jsx(qt,{className:"page-actions",blocklet:r,onStart:m,onComplete:k,variant:"group",source:"blocklet-detail"})})]}),d.jsx(Po,{}),L]})]})}function fr(){const{did:e}=We();return e?d.jsx(Kt,{did:e,children:d.jsx(Go,{})}):null}const Ko=Vt.main`
13
13
  .page-header {
14
14
  display: flex;
15
15
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{c0 as W,b$ as V,r as y,c1 as G,j as e,hX as Bt,b8 as Z,c3 as Y,c4 as X,bZ as Ke,hY as Te,av as ve,aF as Qe,g7 as et,y as ae,hZ as Nt,z as Ft,g9 as tt,d3 as $t,V as S,cv as zt,F as ne,h_ as Ht,$ as Ot,J as x,C as F,b7 as _t,T,Y as de,q as ue,f as J,E as me,P as M,b1 as nt,h$ as Wt,aY as ot,N as Vt,bn as L,e as Gt,b as Be,ad as pe,H as q,o,v as fe,aS as Zt,U as st,aE as Yt,a9 as Xt,b2 as Jt,h as Kt,b3 as Ne,b0 as Qt,bE as en,hU as it,b4 as rt,co as Ce,aV as O,eJ as at,i0 as tn,b5 as nn,gD as lt,dN as ke,s as on,i1 as ct,i2 as sn,i3 as rn,ez as dt,i4 as an,bd as ln,i5 as cn,L as dn,i6 as H,Z as $,i as le,i7 as un,aW as mn,dv as oe,I as Fe,t as pn,aR as fn,i8 as xn}from"./index-Bek3Nxot.js";import{y as hn}from"./index-CDd3s2GI.js";import{u as gn}from"./useAsync-B59MJoKM.js";import{u as K}from"./blocklet-ClPWX-SV.js";import{w as ut}from"./permission-D09K4EY6.js";import{D as mt}from"./Delete-B306vkSB.js";import{A as yn}from"./actions-D1YtdqKL.js";import{D as Dn}from"./delete-confirm-Cx4JPY2I.js";import{D as $e}from"./status-B-GGRrEB.js";import{S as bn,V as jn}from"./VerifiedUser-wCwGdsz1.js";import{C as vn}from"./CardContent-CYNmFsYJ.js";import{A as Cn}from"./Add-b-MNk7UB.js";import{A as wn}from"./CallMerge-CF5jo3Pw.js";import{a as Rn}from"./toLower-DwWNsNMJ.js";import{u as Sn}from"./use-mobile-BDRFDg8j.js";import{v as Tn}from"./index-B8qqbKQt.js";import{g as kn,p as ze}from"./util-DgOs7OwT.js";import{O as An}from"./OpenInNew-DGDd5qxt.js";import{C as In}from"./click-to-copy-BbJJzGI1.js";import{L as pt}from"./LoadingButton-DtnAWL1w.js";import{u as Pn}from"./index-B31H3tAk.js";import"./is-path-prefix-equal-BAfeJQQq.js";import"./engine-a9f8P0CB.js";function En(t){return W("MuiTable",t)}V("MuiTable",["root","stickyHeader"]);const qn=t=>{const{classes:n,stickyHeader:s}=t;return X({root:["root",s&&"stickyHeader"]},En,n)},Mn=Z("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.stickyHeader&&n.stickyHeader]}})(Ke(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:n})=>n.stickyHeader,style:{borderCollapse:"separate"}}]}))),He="table",Ln=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTable"}),{className:i,component:r=He,padding:c="normal",size:l="medium",stickyHeader:d=!1,...p}=a,f={...a,component:r,padding:c,size:l,stickyHeader:d},u=qn(f),g=y.useMemo(()=>({padding:c,size:l,stickyHeader:d}),[c,l,d]);return e.jsx(Bt.Provider,{value:g,children:e.jsx(Mn,{as:r,role:r===He?null:"table",ref:s,className:Y(u.root,i),ownerState:f,...p})})});function Un(t){return W("MuiTableBody",t)}V("MuiTableBody",["root"]);const Bn=t=>{const{classes:n}=t;return X({root:["root"]},Un,n)},Nn=Z("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Fn={variant:"body"},Oe="tbody",$n=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableBody"}),{className:i,component:r=Oe,...c}=a,l={...a,component:r},d=Bn(l);return e.jsx(Te.Provider,{value:Fn,children:e.jsx(Nn,{className:Y(d.root,i),as:r,ref:s,role:r===Oe?null:"rowgroup",ownerState:l,...c})})});function zn(t){return W("MuiTableContainer",t)}V("MuiTableContainer",["root"]);const Hn=t=>{const{classes:n}=t;return X({root:["root"]},zn,n)},On=Z("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),_n=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableContainer"}),{className:i,component:r="div",...c}=a,l={...a,component:r},d=Hn(l);return e.jsx(On,{ref:s,as:r,className:Y(d.root,i),ownerState:l,...c})});function Wn(t){return W("MuiTableHead",t)}V("MuiTableHead",["root"]);const Vn=t=>{const{classes:n}=t;return X({root:["root"]},Wn,n)},Gn=Z("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),Zn={variant:"head"},_e="thead",Yn=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableHead"}),{className:i,component:r=_e,...c}=a,l={...a,component:r},d=Vn(l);return e.jsx(Te.Provider,{value:Zn,children:e.jsx(Gn,{as:r,className:Y(d.root,i),ref:s,role:r===_e?null:"rowgroup",ownerState:l,...c})})});function Xn(t){return W("MuiTableRow",t)}const We=V("MuiTableRow",["root","selected","hover","head","footer"]),Jn=t=>{const{classes:n,selected:s,hover:a,head:i,footer:r}=t;return X({root:["root",s&&"selected",a&&"hover",i&&"head",r&&"footer"]},Xn,n)},Kn=Z("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.head&&n.head,s.footer&&n.footer]}})(Ke(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${We.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${We.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ve(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ve(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),Ve="tr",Ge=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableRow"}),{className:i,component:r=Ve,hover:c=!1,selected:l=!1,...d}=a,p=y.useContext(Te),f={...a,component:r,hover:c,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},u=Jn(f);return e.jsx(Kn,{as:r,ref:s,className:Y(u.root,i),role:r===Ve?null:"row",ownerState:f,...d})}),Qn=Qe(e.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),eo=Qe(e.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"})),to=et({});to.interceptors.request.use(t=>{const n=window.blocklet?window.blocklet.prefix:"/";return t.baseURL=n||"",t.url=ae("/api",String(t.url)),t.timeout=2e5,t.params=t.params||{},new URLSearchParams(t.url.split("?")[1]).has("locale")||(t.params.locale=Nt()),t},t=>Promise.reject(t));const ft=(...t)=>et(...t),no=(t,n)=>n?t?[t,...Array.isArray(n)?n:[n]]:n:t,oo=(t,{width:n=600,height:s=700,name:a="did-domain:popup"}={})=>{const i=window.screenX+(window.innerWidth-n)/2,r=window.screenY+(window.innerHeight-s)/2,c=[`left=${i}`,`top=${r}`,`width=${n}`,`height=${s}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],l=window.open("",a,c.join(","));if(l===null)throw new Error("Failed to open popup");return l.location.href=Ft(t,{opener:window.location.origin}),l},so="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",xt=async t=>{if(!t||!t?.trim())return null;const n=ft(),s=new URL(t);s.pathname="__blocklet__.js",s.searchParams.set("type","json");const{data:a}=await n.get(s.toString()),i=a?.componentMountPoints?.find(d=>d.did===so),r=new URL(t);r.pathname=i?.mountPoint;const c=r.toString(),l=ae(c,"/api");return{base:c,api:l}},io=tt({embed:{iconTip:"Click to view subscription details"},buy:{button:{title:"Buy DID Domain"},status:{inProgress:"Please wait while we are processing your request, the domain will be automatically resolved to the current app after the purchase...",success:"Purchase completed!"},error:{failedToCreateSession:"Failed to create session"}}}),ro=tt({embed:{iconTip:"点击查看订阅详情"},buy:{button:{title:"购买 DID 域名"},status:{inProgress:"请稍等,我们正在处理您的请求,购买域名后会自动解析到当前的应用...",success:"购买完成!"},error:{failedToCreateSession:"创建会话失败"}}}),ao={zh:ro,en:io},lo=async({didDomainURL:t,delegatee:n,delegateePk:s})=>{const a=await xt(t);if(!a)return null;const i=ft({baseURL:a.api}),{data:r}=await i.post("/payment/session",{delegatee:n,delegateePk:s});return{sessionId:r.sessionId,baseURL:a.base}};function co({delegatee:t,delegateePk:n,didDomainURL:s,locale:a,title:i="",onSuccess:r=()=>{},...c}){const{t:l}=S(),[d,p]=Pn({currentState:1}),f=y.useRef(null),u=zt(async()=>{const m=await lo({didDomainURL:s,delegatee:t,delegateePk:n});return m},{debounceWait:500,debounceLeading:!0,debounceTrailing:!1,debounceMaxWait:3e3,refreshDeps:[],onError(m){console.error(m)}}),g=ne(m=>{m.data.type==="didDomain.success"&&(r?.({nftDid:m.data?.nftDid,domain:m.data?.domain,chainHost:m.data?.chainHost}),f.current?.close(),f.current=null,p({currentState:4}),setTimeout(()=>{p({currentState:8})},2e3))});Ht(()=>{try{window.removeEventListener("message",g),f.current?.close(),f.current=null}catch(m){console.warn("Failed to close popup",m)}});const b=ne(()=>{p({currentState:1})}),h=ne(()=>{if(p({currentState:2}),!u.data){console.error("Failed to create session");return}j({sessionId:u.data.sessionId,baseURL:u.data.baseURL})}),j=ne(({sessionId:m,baseURL:w})=>{window.addEventListener("message",g);const C=new URL(w);C.searchParams.set("sessionId",m),C.searchParams.set("locale",a),C.searchParams.set("embed","1"),f.current=oo(C.toString());const E=setInterval(()=>{f.current?.closed&&(clearInterval(E),b())},1e3);return()=>clearInterval(E)});return e.jsxs(e.Fragment,{children:[e.jsx(pt,{loading:u.loading,onClick:h,variant:"contained",startIcon:e.jsx(bn,{}),...c,children:i||l("buy.button.title")}),e.jsxs(Ot,{fullWidth:!0,maxWidth:"xs",open:d.currentState>1&&d.currentState<8,onClose:b,children:[!u.error&&e.jsxs(x,{sx:{display:"flex",alignItems:"center",flexDirection:"column",gap:2},children:[d.currentState===2&&e.jsx(F,{size:50}),d.currentState===4&&e.jsx(_t,{sx:{color:"primary.main",fontSize:"5rem"}}),d.currentState===2&&e.jsx(T,{children:l("buy.status.inProgress")}),d.currentState===4&&e.jsx(T,{children:l("buy.status.success")})]}),u.error&&e.jsx(de,{severity:"error",children:l("buy.error.failedToCreateSession")})]})]})}function uo(t){return e.jsx($t,{locale:t.locale,translations:ao,children:e.jsx(co,{...t})})}function mo({nftDid:t,didDomainURL:n,locale:s,sx:a={}}){const{t:i}=S(),[r,c]=ue({safeIframeRef:null,popoverAnchorEl:null}),l=y.useRef(null),d=J(),p=me(d.breakpoints.down("md")),f=h=>{c({popoverAnchorEl:h.currentTarget})},u=()=>{c({popoverAnchorEl:null})},g=gn(async()=>{const h=await xt(n);return h?h.base:null});if(!g.value)return null;if(g.loading)return e.jsx(F,{});const b=ae(g.value,`/embed/domain?nft-did=${t}&locale=${s}`);return e.jsxs(e.Fragment,{children:[e.jsx(M,{title:i("embed.iconTip"),children:e.jsx(x,{component:"img",src:ae(n,"/.well-known/service/blocklet/logo"),alt:"logo",onClick:f,sx:[{width:16,height:16},no({cursor:"pointer"},a)]})}),e.jsx(nt,{id:"popover-info",open:!!r.popoverAnchorEl,anchorEl:r.popoverAnchorEl,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx("iframe",{ref:l,title:i("common.subscription"),width:p?"320px":"400px",height:"350px",style:{border:0,display:"block"},src:b})})]})}const po=t=>["waiting","creating","renewaling"].includes(t);function ht({siteId:t,domain:n,onAdd:s=()=>{},children:a=null,did:i,issuing:r=!1,setIssuing:c=()=>{}}){const{t:l}=S(),[d,p]=y.useState(!1),{inService:f}=L(),[u,g]=y.useState(null),{api:b,ws:{useSubscription:h}}=L(),{mode:j,actions:{refreshDomainStatus:m}}=K(),w=Gt(async()=>{const{cert:A}=await b.findCertificateByDomain({input:{domain:n,did:i}});return A}),C=(A,R)=>{A.domain===n&&(c(!1),p(!1),f&&j!=="setup"&&(R==="success"?q.success(l("setup.domain.genCertSuccess",{domain:A.domain})):R==="error"&&q.error(l("setup.domain.genCertFailed",{domain:A.domain,message:A.message}))))};if(y.useEffect(()=>{w.loading||c(po(w.value?.status))},[w.loading,w.value?.status,c]),h(Be.BlockletEvents.certError,A=>C(A,"error")),h(Be.BlockletEvents.certIssued,A=>{w.retry(),m(A.domain),C(A,"success")}),w.loading||w.value?.status==="normal")return"";const E=()=>{p(!1),g(null)},B=async()=>{p(!0);try{await b.issueLetsEncryptCert({input:{siteId:t,domain:n,did:i,inBlockletSetup:j==="setup"}}),s(),c(!0)}catch(A){console.error(A),c(!1)}finally{p(!1),g(null)}},U={title:l("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(de,{severity:"success",children:l("router.cert.genLetsEncryptCert.dnsTip")}),l("router.cert.genLetsEncryptCert.description")]}),confirm:l("common.confirm"),onConfirm:B,onCancel:E},N=A=>{A.stopPropagation(),g(U)};return e.jsxs(e.Fragment,{children:[r?e.jsx(M,{title:l("router.cert.issuing"),children:e.jsx(F,{size:13,style:{fontSize:"13px"}})}):a({loading:d,open:N}),u&&e.jsx(pe,{color:"primary",title:u.title,description:u.description,confirm:u.confirm,params:u.params,onConfirm:u.onConfirm,onCancel:u.onCancel})]})}ht.propTypes={domain:o.string.isRequired,did:o.string.isRequired,siteId:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function gt({domain:t,domainStatus:n,did:s,onAdd:a=()=>{},children:i=null,issuing:r=!1,setIssuing:c=()=>{},...l}){return Wt(t)||!ot(t)||Vt(n)||n?.isHttps?"":e.jsx(ht,{...l,domain:t,did:s,onAdd:a,issuing:r,setIssuing:c,children:i})}gt.propTypes={domain:o.string.isRequired,domainStatus:o.shape({isHttps:o.bool}).isRequired,did:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function yt({id:t,domain:n,children:s=null,teamDid:a="",onDelete:i=null}){const{t:r}=S(),[c,l]=y.useState(!1),[d,p]=y.useState(null),{api:f}=L(),u=()=>{l(!1),p(null)},g=async()=>{l(!0);try{await f.deleteDomainAlias({input:{id:t,domainAlias:n,teamDid:a}}),i?.(),await Zt(2e3)}catch(j){q.error(j.message)}finally{p(null),l(!1)}},b={keyName:n,title:r("router.domainAlias.delete.title"),description:r("router.domainAlias.delete.description",{domain:n}),confirmPlaceholder:r("router.domainAlias.delete.confirmPlaceholder",{domain:n}),confirm:r("common.delete"),onConfirm:g,onCancel:u},h=j=>{j.stopPropagation(),p(b)};return e.jsxs(e.Fragment,{children:[typeof s=="function"?s({loading:c,open:h}):e.jsxs(fe,{edge:"end",onClick:h,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[c?e.jsx(F,{size:16}):e.jsx(mt,{style:{fontSize:16}}),r("common.delete")]}),d&&e.jsx(Dn,{keyName:d.keyName,title:d.title,description:d.description,confirmPlaceholder:d.confirmPlaceholder,confirm:d.confirm,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]})}yt.propTypes={id:o.string.isRequired,domain:o.string.isRequired,children:o.any,teamDid:o.string,onDelete:o.func};function Dt({site:t,domain:n,blocklet:s,onDelete:a=()=>{}}){const{t:i}=S(),r=n.value===window.location.hostname;return e.jsx(yn,{"data-cy":"domain-actions",size:"large",actions:[({close:c})=>e.jsx(yt,{id:t.id,domain:n.value,teamDid:s?.meta?.did,onDelete:a,children:({open:l})=>e.jsx(M,{title:r?i("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(st,{disabled:n.isProtected||r,dense:!0,onClick:d=>{c(),l(d)},"data-cy":"action-toggle-block",children:[e.jsx(Yt,{style:{minWidth:24,marginRight:8},children:e.jsx(mt,{})}),e.jsx(Xt,{primary:i("common.delete")})]},"remove")})})})]})}Dt.propTypes={site:o.object.isRequired,domain:o.object.isRequired,blocklet:o.object.isRequired,onDelete:o.func};const xe=o.shape({href:o.string,accessibility:o.shape({loading:o.bool,accessible:o.bool}),domainStatus:o.shape({isHttps:o.bool,matchedCert:o.object}),dns:o.shape({resolved:o.bool,ip:o.string})});function bt({certificate:t={}}){const[n,s]=y.useState(null),a=L(),{t:i,locale:r}=S(),c=p=>{s(p.currentTarget)},l=()=>{s(null)},d=!!n;return e.jsxs(e.Fragment,{children:[e.jsx(jn,{"aria-owns":d?"mouse-over-popover":void 0,onMouseEnter:c,onMouseLeave:l,style:{color:"#44cdc6",fontSize:"1em",cursor:"pointer"}}),e.jsx(nt,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:d,anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:l,disableRestoreFocus:!0,children:e.jsx(Jt,{children:e.jsxs(vn,{style:{display:"flex"},children:[e.jsx("div",{children:e.jsx("img",{src:`${a.imgPrefix}/https-certificate-icon.png`,alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),e.jsxs(T,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(T,{component:"div",style:{fontWeight:"bold"},children:t.domain}),e.jsx(T,{component:"div",children:`${i("common.issuer")}: ${Kt(t,"issuer.commonName","")}`}),e.jsx(T,{component:"div",children:`${i("router.cert.issuedOn")}: ${Ne(t.validFrom,r)}`}),e.jsx(T,{component:"div",children:`${i("router.cert.expiryOn")}: ${Ne(t.validTo,r)}`})]})]})})})]})}bt.propTypes={certificate:o.object};function ce({domain:t,filters:n=["domain","http"]}){const{t:s}=S(),{value:a,domainStatus:i}=t;if(!ot(a))return null;let r=null,c=null;const{isHttps:l,matchedCert:d}=i,{dns:{ip:p,isDnsResolved:f,isCnameMatch:u}={}}=i,g=f&&u;Qt(a)||(g||p==="127.0.0.1"?r=e.jsx(M,{title:s("router.domain.verify.ok"),children:e.jsx($e,{color:"success"})}):r=e.jsx(M,{title:s("router.domain.verify.notResolved"),children:e.jsx($e,{color:"error"})})),g?l?c=e.jsx(bt,{certificate:d}):c=e.jsx(M,{title:s("router.domain.https.bad"),children:e.jsx(eo,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})}):c=e.jsx(M,{title:s("router.domain.verify.notResolved"),children:e.jsx(Qn,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})});const b=n.map(h=>h==="domain"?r:h==="http"?c:null);return y.createElement(y.Fragment,null,...b)}ce.propTypes={domain:xe.isRequired,filters:o.array};const fo=ut(Ae,"mutate_blocklets"),xo=ut(Ae,"",en);function ho(t){const{inService:n}=L(),{blocklet:s,loadingRuntimeInfo:a}=K();let i=fo;return n&&(i=xo),e.jsx(i,{...t,blocklet:s,inService:n,loadingRuntimeInfo:a})}const Ze="nft-domain";function Ae({hasPermission:t=!1,blocklet:n,loadingRuntimeInfo:s=!1,inService:a=!1,showAllDomains:i=!1,updateBlockletDomainAliases:r=()=>{},systemTips:c=null}){const{t:l}=S(),d=me(m=>m.breakpoints.down("md")),p=y.useMemo(()=>{let m=t;return it(n)&&(m=m&&a),m},[t,a,n]),{site:f}=n,u=y.useMemo(()=>rt(n.site?.domainAliases),[n.site?.domainAliases]),g=y.useMemo(()=>u.filter(m=>!Ce.isCustomDomain(m.value)),[u]),b=y.useMemo(()=>u.filter(m=>Ce.isCustomDomain(m.value)),[u]),h=y.useMemo(()=>b.filter(m=>m.type!==Ze),[b]),j=y.useMemo(()=>b.filter(m=>m.type===Ze),[b]);return e.jsxs(e.Fragment,{children:[e.jsxs(O,{sx:{gap:3},children:[!!j.length&&e.jsx(re,{title:l("common.didDomains"),description:l("common.didDomainsDescription"),domains:j,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!h.length&&e.jsx(re,{title:l("common.manualDomains"),description:l("common.manualDomainsDescription"),domains:h,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!g.length&&e.jsxs(x,{children:[c,e.jsx(re,{title:l("common.systemDomains"),description:l("common.systemDomainsDescription"),domains:g,hasMutatePermission:p,blocklet:n,site:f,mobile:d,updateBlockletDomainAliases:r})]})]}),!u.length&&(s?e.jsx(F,{size:16}):e.jsx(hn,{children:l("common.empty")}))]})}Ae.propTypes={hasPermission:o.bool,blocklet:o.object.isRequired,loadingRuntimeInfo:o.bool,inService:o.bool.isRequired,showAllDomains:o.bool,updateBlockletDomainAliases:o.func,systemTips:o.node};function se({children:t=null}){return e.jsx(x,{component:"span",sx:{verticalAlign:"bottom"},children:t})}se.propTypes={children:o.node};function we({domain:t,children:n,suffix:s=null,...a}){const{t:i,locale:r}=S(),c=J(),{href:l,accessibility:d,value:p}=t,f=y.useCallback(()=>e.jsx(lt,{content:ke(p),locale:r,style:{marginLeft:"4px",color:c.palette.text.secondary,fontSize:"0.8em"}}),[p,r,c]);return!d||d.loading?e.jsxs(De,{component:"span",...a,children:[e.jsx(M,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),f(),e.jsx(se,{children:s}),e.jsx(M,{title:i("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx(x,{component:"span",className:"status",children:e.jsx(F,{size:13,style:{fontSize:"13px"}})})})]}):d.accessible?e.jsxs(De,{component:"span",...a,children:[e.jsx(x,{component:"a",href:l,target:"_blank",rel:"noopener noreferrer",sx:{color:t.loading?"text.disabled":void 0},children:e.jsx(M,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})})}),f(),e.jsx(se,{children:s})]}):e.jsxs(De,{component:"span",...a,children:[e.jsx(M,{title:i("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),!t.loading&&f(),e.jsx(se,{children:s})]})}we.propTypes={domain:xe.isRequired,children:o.any.isRequired,suffix:o.node};const De=on(x)`
1
+ import{c0 as W,b$ as V,r as y,c1 as G,j as e,hX as Bt,b8 as Z,c3 as Y,c4 as X,bZ as Ke,hY as Te,av as ve,aF as Qe,g7 as et,y as ae,hZ as Nt,z as Ft,g9 as tt,d3 as $t,V as S,cv as zt,F as ne,h_ as Ht,$ as Ot,J as x,C as F,b7 as _t,T,Y as de,q as ue,f as J,E as me,P as M,b1 as nt,h$ as Wt,aY as ot,N as Vt,bn as L,e as Gt,b as Be,ad as pe,H as q,o,v as fe,aS as Zt,U as st,aE as Yt,a9 as Xt,b2 as Jt,h as Kt,b3 as Ne,b0 as Qt,bE as en,hU as it,b4 as rt,co as Ce,aV as O,eJ as at,i0 as tn,b5 as nn,gD as lt,dN as ke,s as on,i1 as ct,i2 as sn,i3 as rn,ez as dt,i4 as an,bd as ln,i5 as cn,L as dn,i6 as H,Z as $,i as le,i7 as un,aW as mn,dv as oe,I as Fe,t as pn,aR as fn,i8 as xn}from"./index-DQhyMeoV.js";import{y as hn}from"./index-CVfXb0nN.js";import{u as gn}from"./useAsync-tWL_hrVo.js";import{u as K}from"./blocklet-e4asDkfP.js";import{w as ut}from"./permission-D1opDJhT.js";import{D as mt}from"./Delete-Cw_Z_UMc.js";import{A as yn}from"./actions-QNxlOGpH.js";import{D as Dn}from"./delete-confirm-Dk2gUSc_.js";import{D as $e}from"./status-cEVhL_8t.js";import{S as bn,V as jn}from"./VerifiedUser-Bq5EjyL0.js";import{C as vn}from"./CardContent-DXDn75TD.js";import{A as Cn}from"./Add-CVe35B9U.js";import{A as wn}from"./CallMerge-CZNqia3S.js";import{a as Rn}from"./toLower-CSOmIMZJ.js";import{u as Sn}from"./use-mobile-CFNU7YUg.js";import{v as Tn}from"./index-B-25u8Uu.js";import{g as kn,p as ze}from"./util-Byl4XHzq.js";import{O as An}from"./OpenInNew-awII5Ys1.js";import{C as In}from"./click-to-copy-D5SbepAS.js";import{L as pt}from"./LoadingButton-OiBPqmL8.js";import{u as Pn}from"./index-BQ9Dluv4.js";import"./is-path-prefix-equal-Df12gAPj.js";import"./engine-AOyfq5pg.js";function En(t){return W("MuiTable",t)}V("MuiTable",["root","stickyHeader"]);const qn=t=>{const{classes:n,stickyHeader:s}=t;return X({root:["root",s&&"stickyHeader"]},En,n)},Mn=Z("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.stickyHeader&&n.stickyHeader]}})(Ke(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:n})=>n.stickyHeader,style:{borderCollapse:"separate"}}]}))),He="table",Ln=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTable"}),{className:i,component:r=He,padding:c="normal",size:l="medium",stickyHeader:d=!1,...p}=a,f={...a,component:r,padding:c,size:l,stickyHeader:d},u=qn(f),g=y.useMemo(()=>({padding:c,size:l,stickyHeader:d}),[c,l,d]);return e.jsx(Bt.Provider,{value:g,children:e.jsx(Mn,{as:r,role:r===He?null:"table",ref:s,className:Y(u.root,i),ownerState:f,...p})})});function Un(t){return W("MuiTableBody",t)}V("MuiTableBody",["root"]);const Bn=t=>{const{classes:n}=t;return X({root:["root"]},Un,n)},Nn=Z("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Fn={variant:"body"},Oe="tbody",$n=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableBody"}),{className:i,component:r=Oe,...c}=a,l={...a,component:r},d=Bn(l);return e.jsx(Te.Provider,{value:Fn,children:e.jsx(Nn,{className:Y(d.root,i),as:r,ref:s,role:r===Oe?null:"rowgroup",ownerState:l,...c})})});function zn(t){return W("MuiTableContainer",t)}V("MuiTableContainer",["root"]);const Hn=t=>{const{classes:n}=t;return X({root:["root"]},zn,n)},On=Z("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),_n=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableContainer"}),{className:i,component:r="div",...c}=a,l={...a,component:r},d=Hn(l);return e.jsx(On,{ref:s,as:r,className:Y(d.root,i),ownerState:l,...c})});function Wn(t){return W("MuiTableHead",t)}V("MuiTableHead",["root"]);const Vn=t=>{const{classes:n}=t;return X({root:["root"]},Wn,n)},Gn=Z("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),Zn={variant:"head"},_e="thead",Yn=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableHead"}),{className:i,component:r=_e,...c}=a,l={...a,component:r},d=Vn(l);return e.jsx(Te.Provider,{value:Zn,children:e.jsx(Gn,{as:r,className:Y(d.root,i),ref:s,role:r===_e?null:"rowgroup",ownerState:l,...c})})});function Xn(t){return W("MuiTableRow",t)}const We=V("MuiTableRow",["root","selected","hover","head","footer"]),Jn=t=>{const{classes:n,selected:s,hover:a,head:i,footer:r}=t;return X({root:["root",s&&"selected",a&&"hover",i&&"head",r&&"footer"]},Xn,n)},Kn=Z("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.head&&n.head,s.footer&&n.footer]}})(Ke(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${We.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${We.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ve(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ve(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),Ve="tr",Ge=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableRow"}),{className:i,component:r=Ve,hover:c=!1,selected:l=!1,...d}=a,p=y.useContext(Te),f={...a,component:r,hover:c,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},u=Jn(f);return e.jsx(Kn,{as:r,ref:s,className:Y(u.root,i),role:r===Ve?null:"row",ownerState:f,...d})}),Qn=Qe(e.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),eo=Qe(e.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"})),to=et({});to.interceptors.request.use(t=>{const n=window.blocklet?window.blocklet.prefix:"/";return t.baseURL=n||"",t.url=ae("/api",String(t.url)),t.timeout=2e5,t.params=t.params||{},new URLSearchParams(t.url.split("?")[1]).has("locale")||(t.params.locale=Nt()),t},t=>Promise.reject(t));const ft=(...t)=>et(...t),no=(t,n)=>n?t?[t,...Array.isArray(n)?n:[n]]:n:t,oo=(t,{width:n=600,height:s=700,name:a="did-domain:popup"}={})=>{const i=window.screenX+(window.innerWidth-n)/2,r=window.screenY+(window.innerHeight-s)/2,c=[`left=${i}`,`top=${r}`,`width=${n}`,`height=${s}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],l=window.open("",a,c.join(","));if(l===null)throw new Error("Failed to open popup");return l.location.href=Ft(t,{opener:window.location.origin}),l},so="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",xt=async t=>{if(!t||!t?.trim())return null;const n=ft(),s=new URL(t);s.pathname="__blocklet__.js",s.searchParams.set("type","json");const{data:a}=await n.get(s.toString()),i=a?.componentMountPoints?.find(d=>d.did===so),r=new URL(t);r.pathname=i?.mountPoint;const c=r.toString(),l=ae(c,"/api");return{base:c,api:l}},io=tt({embed:{iconTip:"Click to view subscription details"},buy:{button:{title:"Buy DID Domain"},status:{inProgress:"Please wait while we are processing your request, the domain will be automatically resolved to the current app after the purchase...",success:"Purchase completed!"},error:{failedToCreateSession:"Failed to create session"}}}),ro=tt({embed:{iconTip:"点击查看订阅详情"},buy:{button:{title:"购买 DID 域名"},status:{inProgress:"请稍等,我们正在处理您的请求,购买域名后会自动解析到当前的应用...",success:"购买完成!"},error:{failedToCreateSession:"创建会话失败"}}}),ao={zh:ro,en:io},lo=async({didDomainURL:t,delegatee:n,delegateePk:s})=>{const a=await xt(t);if(!a)return null;const i=ft({baseURL:a.api}),{data:r}=await i.post("/payment/session",{delegatee:n,delegateePk:s});return{sessionId:r.sessionId,baseURL:a.base}};function co({delegatee:t,delegateePk:n,didDomainURL:s,locale:a,title:i="",onSuccess:r=()=>{},...c}){const{t:l}=S(),[d,p]=Pn({currentState:1}),f=y.useRef(null),u=zt(async()=>{const m=await lo({didDomainURL:s,delegatee:t,delegateePk:n});return m},{debounceWait:500,debounceLeading:!0,debounceTrailing:!1,debounceMaxWait:3e3,refreshDeps:[],onError(m){console.error(m)}}),g=ne(m=>{m.data.type==="didDomain.success"&&(r?.({nftDid:m.data?.nftDid,domain:m.data?.domain,chainHost:m.data?.chainHost}),f.current?.close(),f.current=null,p({currentState:4}),setTimeout(()=>{p({currentState:8})},2e3))});Ht(()=>{try{window.removeEventListener("message",g),f.current?.close(),f.current=null}catch(m){console.warn("Failed to close popup",m)}});const b=ne(()=>{p({currentState:1})}),h=ne(()=>{if(p({currentState:2}),!u.data){console.error("Failed to create session");return}j({sessionId:u.data.sessionId,baseURL:u.data.baseURL})}),j=ne(({sessionId:m,baseURL:w})=>{window.addEventListener("message",g);const C=new URL(w);C.searchParams.set("sessionId",m),C.searchParams.set("locale",a),C.searchParams.set("embed","1"),f.current=oo(C.toString());const E=setInterval(()=>{f.current?.closed&&(clearInterval(E),b())},1e3);return()=>clearInterval(E)});return e.jsxs(e.Fragment,{children:[e.jsx(pt,{loading:u.loading,onClick:h,variant:"contained",startIcon:e.jsx(bn,{}),...c,children:i||l("buy.button.title")}),e.jsxs(Ot,{fullWidth:!0,maxWidth:"xs",open:d.currentState>1&&d.currentState<8,onClose:b,children:[!u.error&&e.jsxs(x,{sx:{display:"flex",alignItems:"center",flexDirection:"column",gap:2},children:[d.currentState===2&&e.jsx(F,{size:50}),d.currentState===4&&e.jsx(_t,{sx:{color:"primary.main",fontSize:"5rem"}}),d.currentState===2&&e.jsx(T,{children:l("buy.status.inProgress")}),d.currentState===4&&e.jsx(T,{children:l("buy.status.success")})]}),u.error&&e.jsx(de,{severity:"error",children:l("buy.error.failedToCreateSession")})]})]})}function uo(t){return e.jsx($t,{locale:t.locale,translations:ao,children:e.jsx(co,{...t})})}function mo({nftDid:t,didDomainURL:n,locale:s,sx:a={}}){const{t:i}=S(),[r,c]=ue({safeIframeRef:null,popoverAnchorEl:null}),l=y.useRef(null),d=J(),p=me(d.breakpoints.down("md")),f=h=>{c({popoverAnchorEl:h.currentTarget})},u=()=>{c({popoverAnchorEl:null})},g=gn(async()=>{const h=await xt(n);return h?h.base:null});if(!g.value)return null;if(g.loading)return e.jsx(F,{});const b=ae(g.value,`/embed/domain?nft-did=${t}&locale=${s}`);return e.jsxs(e.Fragment,{children:[e.jsx(M,{title:i("embed.iconTip"),children:e.jsx(x,{component:"img",src:ae(n,"/.well-known/service/blocklet/logo"),alt:"logo",onClick:f,sx:[{width:16,height:16},no({cursor:"pointer"},a)]})}),e.jsx(nt,{id:"popover-info",open:!!r.popoverAnchorEl,anchorEl:r.popoverAnchorEl,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx("iframe",{ref:l,title:i("common.subscription"),width:p?"320px":"400px",height:"350px",style:{border:0,display:"block"},src:b})})]})}const po=t=>["waiting","creating","renewaling"].includes(t);function ht({siteId:t,domain:n,onAdd:s=()=>{},children:a=null,did:i,issuing:r=!1,setIssuing:c=()=>{}}){const{t:l}=S(),[d,p]=y.useState(!1),{inService:f}=L(),[u,g]=y.useState(null),{api:b,ws:{useSubscription:h}}=L(),{mode:j,actions:{refreshDomainStatus:m}}=K(),w=Gt(async()=>{const{cert:A}=await b.findCertificateByDomain({input:{domain:n,did:i}});return A}),C=(A,R)=>{A.domain===n&&(c(!1),p(!1),f&&j!=="setup"&&(R==="success"?q.success(l("setup.domain.genCertSuccess",{domain:A.domain})):R==="error"&&q.error(l("setup.domain.genCertFailed",{domain:A.domain,message:A.message}))))};if(y.useEffect(()=>{w.loading||c(po(w.value?.status))},[w.loading,w.value?.status,c]),h(Be.BlockletEvents.certError,A=>C(A,"error")),h(Be.BlockletEvents.certIssued,A=>{w.retry(),m(A.domain),C(A,"success")}),w.loading||w.value?.status==="normal")return"";const E=()=>{p(!1),g(null)},B=async()=>{p(!0);try{await b.issueLetsEncryptCert({input:{siteId:t,domain:n,did:i,inBlockletSetup:j==="setup"}}),s(),c(!0)}catch(A){console.error(A),c(!1)}finally{p(!1),g(null)}},U={title:l("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(de,{severity:"success",children:l("router.cert.genLetsEncryptCert.dnsTip")}),l("router.cert.genLetsEncryptCert.description")]}),confirm:l("common.confirm"),onConfirm:B,onCancel:E},N=A=>{A.stopPropagation(),g(U)};return e.jsxs(e.Fragment,{children:[r?e.jsx(M,{title:l("router.cert.issuing"),children:e.jsx(F,{size:13,style:{fontSize:"13px"}})}):a({loading:d,open:N}),u&&e.jsx(pe,{color:"primary",title:u.title,description:u.description,confirm:u.confirm,params:u.params,onConfirm:u.onConfirm,onCancel:u.onCancel})]})}ht.propTypes={domain:o.string.isRequired,did:o.string.isRequired,siteId:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function gt({domain:t,domainStatus:n,did:s,onAdd:a=()=>{},children:i=null,issuing:r=!1,setIssuing:c=()=>{},...l}){return Wt(t)||!ot(t)||Vt(n)||n?.isHttps?"":e.jsx(ht,{...l,domain:t,did:s,onAdd:a,issuing:r,setIssuing:c,children:i})}gt.propTypes={domain:o.string.isRequired,domainStatus:o.shape({isHttps:o.bool}).isRequired,did:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function yt({id:t,domain:n,children:s=null,teamDid:a="",onDelete:i=null}){const{t:r}=S(),[c,l]=y.useState(!1),[d,p]=y.useState(null),{api:f}=L(),u=()=>{l(!1),p(null)},g=async()=>{l(!0);try{await f.deleteDomainAlias({input:{id:t,domainAlias:n,teamDid:a}}),i?.(),await Zt(2e3)}catch(j){q.error(j.message)}finally{p(null),l(!1)}},b={keyName:n,title:r("router.domainAlias.delete.title"),description:r("router.domainAlias.delete.description",{domain:n}),confirmPlaceholder:r("router.domainAlias.delete.confirmPlaceholder",{domain:n}),confirm:r("common.delete"),onConfirm:g,onCancel:u},h=j=>{j.stopPropagation(),p(b)};return e.jsxs(e.Fragment,{children:[typeof s=="function"?s({loading:c,open:h}):e.jsxs(fe,{edge:"end",onClick:h,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[c?e.jsx(F,{size:16}):e.jsx(mt,{style:{fontSize:16}}),r("common.delete")]}),d&&e.jsx(Dn,{keyName:d.keyName,title:d.title,description:d.description,confirmPlaceholder:d.confirmPlaceholder,confirm:d.confirm,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]})}yt.propTypes={id:o.string.isRequired,domain:o.string.isRequired,children:o.any,teamDid:o.string,onDelete:o.func};function Dt({site:t,domain:n,blocklet:s,onDelete:a=()=>{}}){const{t:i}=S(),r=n.value===window.location.hostname;return e.jsx(yn,{"data-cy":"domain-actions",size:"large",actions:[({close:c})=>e.jsx(yt,{id:t.id,domain:n.value,teamDid:s?.meta?.did,onDelete:a,children:({open:l})=>e.jsx(M,{title:r?i("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(st,{disabled:n.isProtected||r,dense:!0,onClick:d=>{c(),l(d)},"data-cy":"action-toggle-block",children:[e.jsx(Yt,{style:{minWidth:24,marginRight:8},children:e.jsx(mt,{})}),e.jsx(Xt,{primary:i("common.delete")})]},"remove")})})})]})}Dt.propTypes={site:o.object.isRequired,domain:o.object.isRequired,blocklet:o.object.isRequired,onDelete:o.func};const xe=o.shape({href:o.string,accessibility:o.shape({loading:o.bool,accessible:o.bool}),domainStatus:o.shape({isHttps:o.bool,matchedCert:o.object}),dns:o.shape({resolved:o.bool,ip:o.string})});function bt({certificate:t={}}){const[n,s]=y.useState(null),a=L(),{t:i,locale:r}=S(),c=p=>{s(p.currentTarget)},l=()=>{s(null)},d=!!n;return e.jsxs(e.Fragment,{children:[e.jsx(jn,{"aria-owns":d?"mouse-over-popover":void 0,onMouseEnter:c,onMouseLeave:l,style:{color:"#44cdc6",fontSize:"1em",cursor:"pointer"}}),e.jsx(nt,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:d,anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:l,disableRestoreFocus:!0,children:e.jsx(Jt,{children:e.jsxs(vn,{style:{display:"flex"},children:[e.jsx("div",{children:e.jsx("img",{src:`${a.imgPrefix}/https-certificate-icon.png`,alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),e.jsxs(T,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(T,{component:"div",style:{fontWeight:"bold"},children:t.domain}),e.jsx(T,{component:"div",children:`${i("common.issuer")}: ${Kt(t,"issuer.commonName","")}`}),e.jsx(T,{component:"div",children:`${i("router.cert.issuedOn")}: ${Ne(t.validFrom,r)}`}),e.jsx(T,{component:"div",children:`${i("router.cert.expiryOn")}: ${Ne(t.validTo,r)}`})]})]})})})]})}bt.propTypes={certificate:o.object};function ce({domain:t,filters:n=["domain","http"]}){const{t:s}=S(),{value:a,domainStatus:i}=t;if(!ot(a))return null;let r=null,c=null;const{isHttps:l,matchedCert:d}=i,{dns:{ip:p,isDnsResolved:f,isCnameMatch:u}={}}=i,g=f&&u;Qt(a)||(g||p==="127.0.0.1"?r=e.jsx(M,{title:s("router.domain.verify.ok"),children:e.jsx($e,{color:"success"})}):r=e.jsx(M,{title:s("router.domain.verify.notResolved"),children:e.jsx($e,{color:"error"})})),g?l?c=e.jsx(bt,{certificate:d}):c=e.jsx(M,{title:s("router.domain.https.bad"),children:e.jsx(eo,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})}):c=e.jsx(M,{title:s("router.domain.verify.notResolved"),children:e.jsx(Qn,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})});const b=n.map(h=>h==="domain"?r:h==="http"?c:null);return y.createElement(y.Fragment,null,...b)}ce.propTypes={domain:xe.isRequired,filters:o.array};const fo=ut(Ae,"mutate_blocklets"),xo=ut(Ae,"",en);function ho(t){const{inService:n}=L(),{blocklet:s,loadingRuntimeInfo:a}=K();let i=fo;return n&&(i=xo),e.jsx(i,{...t,blocklet:s,inService:n,loadingRuntimeInfo:a})}const Ze="nft-domain";function Ae({hasPermission:t=!1,blocklet:n,loadingRuntimeInfo:s=!1,inService:a=!1,showAllDomains:i=!1,updateBlockletDomainAliases:r=()=>{},systemTips:c=null}){const{t:l}=S(),d=me(m=>m.breakpoints.down("md")),p=y.useMemo(()=>{let m=t;return it(n)&&(m=m&&a),m},[t,a,n]),{site:f}=n,u=y.useMemo(()=>rt(n.site?.domainAliases),[n.site?.domainAliases]),g=y.useMemo(()=>u.filter(m=>!Ce.isCustomDomain(m.value)),[u]),b=y.useMemo(()=>u.filter(m=>Ce.isCustomDomain(m.value)),[u]),h=y.useMemo(()=>b.filter(m=>m.type!==Ze),[b]),j=y.useMemo(()=>b.filter(m=>m.type===Ze),[b]);return e.jsxs(e.Fragment,{children:[e.jsxs(O,{sx:{gap:3},children:[!!j.length&&e.jsx(re,{title:l("common.didDomains"),description:l("common.didDomainsDescription"),domains:j,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!h.length&&e.jsx(re,{title:l("common.manualDomains"),description:l("common.manualDomainsDescription"),domains:h,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!g.length&&e.jsxs(x,{children:[c,e.jsx(re,{title:l("common.systemDomains"),description:l("common.systemDomainsDescription"),domains:g,hasMutatePermission:p,blocklet:n,site:f,mobile:d,updateBlockletDomainAliases:r})]})]}),!u.length&&(s?e.jsx(F,{size:16}):e.jsx(hn,{children:l("common.empty")}))]})}Ae.propTypes={hasPermission:o.bool,blocklet:o.object.isRequired,loadingRuntimeInfo:o.bool,inService:o.bool.isRequired,showAllDomains:o.bool,updateBlockletDomainAliases:o.func,systemTips:o.node};function se({children:t=null}){return e.jsx(x,{component:"span",sx:{verticalAlign:"bottom"},children:t})}se.propTypes={children:o.node};function we({domain:t,children:n,suffix:s=null,...a}){const{t:i,locale:r}=S(),c=J(),{href:l,accessibility:d,value:p}=t,f=y.useCallback(()=>e.jsx(lt,{content:ke(p),locale:r,style:{marginLeft:"4px",color:c.palette.text.secondary,fontSize:"0.8em"}}),[p,r,c]);return!d||d.loading?e.jsxs(De,{component:"span",...a,children:[e.jsx(M,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),f(),e.jsx(se,{children:s}),e.jsx(M,{title:i("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx(x,{component:"span",className:"status",children:e.jsx(F,{size:13,style:{fontSize:"13px"}})})})]}):d.accessible?e.jsxs(De,{component:"span",...a,children:[e.jsx(x,{component:"a",href:l,target:"_blank",rel:"noopener noreferrer",sx:{color:t.loading?"text.disabled":void 0},children:e.jsx(M,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})})}),f(),e.jsx(se,{children:s})]}):e.jsxs(De,{component:"span",...a,children:[e.jsx(M,{title:i("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),!t.loading&&f(),e.jsx(se,{children:s})]})}we.propTypes={domain:xe.isRequired,children:o.any.isRequired,suffix:o.node};const De=on(x)`
2
2
  display: inline-block;
3
3
  vertical-align: middle;
4
4