@abtnode/blocklet-services 1.16.24-beta-6975c2c0 → 1.16.24-beta-30f58f8d
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.
- package/api/libs/email.js +1 -0
- package/api/socket/channel/did.js +22 -18
- package/dist/assets/{Add-LZzKWXXy.js → Add-aR533i12.js} +1 -1
- package/dist/assets/{Avatar-Baciq3Gb.js → Avatar-rCJCajEU.js} +1 -1
- package/dist/assets/Box-UZKPIg5l.js +1 -0
- package/dist/assets/Box-wC1DaiGM.js +1 -0
- package/dist/assets/{Button-ksk2xAo5.js → Button-icne1Ua1.js} +1 -1
- package/dist/assets/{ButtonBase-eCeq6que.js → ButtonBase-tD513M7V.js} +1 -1
- package/dist/assets/{ButtonBase-3WX-0uPh.js → ButtonBase-y-I9S5ql.js} +1 -1
- package/dist/assets/{CardContent-zbNE3idr.js → CardContent-6A-HL2kL.js} +1 -1
- package/dist/assets/{CheckCircle-9GjxYqfj.js → CheckCircle-60AM0ITf.js} +1 -1
- package/dist/assets/{ChevronLeft-gU1yt1Nn.js → ChevronLeft-jYv99aor.js} +1 -1
- package/dist/assets/{ChevronRight-Yg0zM5nt.js → ChevronRight-gVrMbICn.js} +1 -1
- package/dist/assets/{Chip-6PPjABEd.js → Chip-ay1aqrwj.js} +1 -1
- package/dist/assets/{CircularProgress-pXmKMTH_.js → CircularProgress-2E7FsVpy.js} +1 -1
- package/dist/assets/{Close-wymOh8kk.js → Close-acdEKFOx.js} +1 -1
- package/dist/assets/{Collapse-W3NIbLgW.js → Collapse-7L2PLAwX.js} +1 -1
- package/dist/assets/{DeleteOutline-zFvS1LGy.js → DeleteOutline-mJxIIf_E.js} +1 -1
- package/dist/assets/{Done-K8_gQlru.js → Done-IUW8sxba.js} +1 -1
- package/dist/assets/{Download-py3GqphB.js → Download-pM5Y1uk4.js} +1 -1
- package/dist/assets/{Edit-kxRFennS.js → Edit-0l6wvu4t.js} +1 -1
- package/dist/assets/{EditIcon-Gr2bDkBf.js → EditIcon-ole9UoIn.js} +1 -1
- package/dist/assets/{ExpandMore-VMoMsmx1.js → ExpandMore-73ZaztzD.js} +1 -1
- package/dist/assets/{ExpandMore-pFpXkiFR.js → ExpandMore-QGwDyScz.js} +1 -1
- package/dist/assets/{FilterList-e69RUJ5n.js → FilterList-SI94bUfz.js} +1 -1
- package/dist/assets/{FormControlLabel-pf-ht9cT.js → FormControlLabel-k9sTwU-b.js} +1 -1
- package/dist/assets/{Google-9ciNW83T.js → Google-WU1ZvKo9.js} +1 -1
- package/dist/assets/{Grid-JBhKrAyG.js → Grid-C0yrXHv6.js} +1 -1
- package/dist/assets/{Grid-UReKTwF7.js → Grid-E30_4BeQ.js} +1 -1
- package/dist/assets/{Hidden--Wmecvjh.js → Hidden--yepz0pM.js} +1 -1
- package/dist/assets/{IconButton--4ebnuOv.js → IconButton-8UYGgxfo.js} +1 -1
- package/dist/assets/{IconButton-Hymrjowh.js → IconButton-opaehSAi.js} +1 -1
- package/dist/assets/{InfoOutlined-J39GTyuO.js → InfoOutlined-H6zGOdnr.js} +1 -1
- package/dist/assets/{InputAdornment-0_yl6sI6.js → InputAdornment-01BB-IUi.js} +1 -1
- package/dist/assets/{InputAdornment-9NWrCzP7.js → InputAdornment-b8lVK7li.js} +1 -1
- package/dist/assets/{InputLabel-UuNChdMG.js → InputLabel-S5ITR0B1.js} +1 -1
- package/dist/assets/{Launch-qQoThtkn.js → Launch-St5GEv7j.js} +1 -1
- package/dist/assets/{Link-7oZWP_va.js → Link-4d7RYuFQ.js} +1 -1
- package/dist/assets/{Link-nn9uQu2x.js → Link-P3Cgz37T.js} +1 -1
- package/dist/assets/{ListItem-b-zhB4qt.js → ListItem-hAjlDna0.js} +1 -1
- package/dist/assets/{ListItemText-6EpzrGrb.js → ListItemText-pzMz-_8U.js} +1 -1
- package/dist/assets/{LockIcon-SHr10qIF.js → LockIcon-WynYWbOW.js} +1 -1
- package/dist/assets/{Loop-m9AuMRVm.js → Loop-q74Adjst.js} +1 -1
- package/dist/assets/{Menu--qKA-oiM.js → Menu-anPorR00.js} +1 -1
- package/dist/assets/{OpenInNew-qIHDFu6m.js → OpenInNew-vpsAPHUY.js} +1 -1
- package/dist/assets/{Pagination-GGaAT7Jg.js → Pagination-Dp0FMjhQ.js} +1 -1
- package/dist/assets/{Paper-9-yE_Fq6.js → Paper-xlcAcZNb.js} +1 -1
- package/dist/assets/{RevokeIcon-7XrjjVSK.js → RevokeIcon-EG-Tgs1P.js} +1 -1
- package/dist/assets/{Search-I57MA0Fi.js → Search-g3D9ZMg2.js} +1 -1
- package/dist/assets/{Search-GOPXDEZu.js → Search-yih_sVbz.js} +1 -1
- package/dist/assets/{Select-Ln30z3qd.js → Select-1kfqC4Cs.js} +1 -1
- package/dist/assets/{ServerLogo-POzsrdUg.js → ServerLogo-UsfyzMmv.js} +1 -1
- package/dist/assets/{Skeleton-2DXho7pp.js → Skeleton-Sko1dhMc.js} +1 -1
- package/dist/assets/{Stepper-j6t0JGTF.js → Stepper-MKCGeshB.js} +1 -1
- package/dist/assets/{TextField-N3NhCmTv.js → TextField-BYLq4y6q.js} +1 -1
- package/dist/assets/{TextField-_f9Ib2t7.js → TextField-egkc1TLq.js} +1 -1
- package/dist/assets/{Toolbar-xnBXinKK.js → Toolbar-TavQhk9k.js} +1 -1
- package/dist/assets/{Tooltip-TWKOxaq7.js → Tooltip-IqBOP7yE.js} +1 -1
- package/dist/assets/{Typography-TOd_XEr_.js → Typography-7BaU4rMH.js} +1 -1
- package/dist/assets/{access-control-VMmmRIQn.js → access-control-s8ZaVYk6.js} +1 -1
- package/dist/assets/{actions-zyudYoXY.js → actions-WJB7Zfz1.js} +1 -1
- package/dist/assets/{add-component-core-GG7onb-_.js → add-component-core-_1fUrUnH.js} +1 -1
- package/dist/assets/add-resource-8SDMQ09o.js +1 -0
- package/dist/assets/{addon-2m04sAeO.js → addon-QeLrGOdX.js} +1 -1
- package/dist/assets/{analytics-6sk6ntLy.js → analytics-aWYg0Hso.js} +1 -1
- package/dist/assets/api-wjvMMbke.js +1 -0
- package/dist/assets/{audit-logs-XnK8gOWW.js → audit-logs-UFUAfPnh.js} +1 -1
- package/dist/assets/{button-87w_Ukx4.js → button-EgYm5107.js} +1 -1
- package/dist/assets/{click-to-copy-gbegHTVT.js → click-to-copy-vmaq823F.js} +1 -1
- package/dist/assets/{complete-hKHPi0ol.js → complete-veGf8Jl6.js} +1 -1
- package/dist/assets/{component-CKYpWN4a.js → component-5ds5_alG.js} +1 -1
- package/dist/assets/{config-wYXMJIoJ.js → config-2fQ7fnBW.js} +1 -1
- package/dist/assets/{config-OeQZdSSi.js → config-kGiHk0RX.js} +1 -1
- package/dist/assets/{config-navigation-i-EE6_kv.js → config-navigation-NkXbd3di.js} +1 -1
- package/dist/assets/{config-space-289vg8HP.js → config-space-lWhx9oKc.js} +1 -1
- package/dist/assets/{confirm-eEb_5W3C.js → confirm-6Jdys1hj.js} +1 -1
- package/dist/assets/{connect-IHJhS1ef.js → connect-fBDShwJm.js} +1 -1
- package/dist/assets/connect-sU3gSssk.js +1 -0
- package/dist/assets/{connect-to-rEv_VtJG.js → connect-to-43P2EzeD.js} +1 -1
- package/dist/assets/{content-layout-hErMCLwN.js → content-layout-uMjojnsj.js} +1 -1
- package/dist/assets/{createStack-CHluQGvB.js → createStack-Ql4z3puD.js} +1 -1
- package/dist/assets/{createSvgIcon-OvER3e1n.js → createSvgIcon-j58drKza.js} +1 -1
- package/dist/assets/{createSvgIcon-SJR__BRH.js → createSvgIcon-kg0p2IW6.js} +1 -1
- package/dist/assets/{dashboard-mz_3k3VV.js → dashboard-UpN-Xcgd.js} +3 -3
- package/dist/assets/{did-address-ZCUuM3p7.js → did-address-KX8MZujh.js} +1 -1
- package/dist/assets/{domain-Q3LSUI-8.js → domain-KPXpTvNs.js} +1 -1
- package/dist/assets/{domain-list-yV996gjl.js → domain-list-t9wSnlq6.js} +1 -1
- package/dist/assets/{exchange-passport-wc7qEw91.js → exchange-passport-DCatUSSt.js} +1 -1
- package/dist/assets/{fallback-Xv-L7Mks.js → fallback-U1OX2XSx.js} +1 -1
- package/dist/assets/{fuel-RGXWDQtq.js → fuel-dLXbx5xS.js} +1 -1
- package/dist/assets/{fullpage-71A-yQFH.js → fullpage-C15C9Cxy.js} +1 -1
- package/dist/assets/home-5ePzabyN.js +1 -0
- package/dist/assets/{iframe-4nyWXcTE.js → iframe-pCAFtFXo.js} +1 -1
- package/dist/assets/{index-hVryq7Sp.js → index-2LB4uByH.js} +1 -1
- package/dist/assets/{index-utNtlSrF.js → index-4krLq-ni.js} +1 -1
- package/dist/assets/{index-Yk_Xni0x.js → index-4zjZjcBC.js} +1 -1
- package/dist/assets/{index-APK4pG1u.js → index-65ROwV_z.js} +1 -1
- package/dist/assets/{index--v_SJzgf.js → index-6_bFjF9P.js} +1 -1
- package/dist/assets/{index-AfOBr6AB.js → index-6djx-5R6.js} +1 -1
- package/dist/assets/{index-_FFFPAUw.js → index-8MsQJXFD.js} +1 -1
- package/dist/assets/{index-AtawSjHz.js → index-9lo56i1W.js} +1 -1
- package/dist/assets/{index-aYnPjJkB.js → index-9udvO7eN.js} +1 -1
- package/dist/assets/{index-Lb1ehBCY.js → index-A3qaKAQZ.js} +6 -6
- package/dist/assets/{index-L_N419JN.js → index-CFCBI32Y.js} +1 -1
- package/dist/assets/{index-kDsXFd69.js → index-F_tmMgba.js} +1 -1
- package/dist/assets/{index-Kxa_ePD2.js → index-H7NK0Hav.js} +1 -1
- package/dist/assets/{index-DxfEAFvP.js → index-HH-12DL3.js} +1 -1
- package/dist/assets/{index-Qj5J1wHh.js → index-IZZ7I0WA.js} +1 -1
- package/dist/assets/{index-Qm2-r4K_.js → index-PZQWptd6.js} +1 -1
- package/dist/assets/{index-067nd4Au.js → index-U0-vaLNC.js} +1 -1
- package/dist/assets/{index-kwL0I4Wk.js → index-WMg_ZmyK.js} +3 -3
- package/dist/assets/{index-l0N5TN7m.js → index-WdzhUrFb.js} +1 -1
- package/dist/assets/{index-1CtoAYuN.js → index-XZuSftjk.js} +1 -1
- package/dist/assets/{index-N2Ezp28q.js → index-XsRmOT5P.js} +1 -1
- package/dist/assets/{index-sq_uK9Ea.js → index-Z09DYyo5.js} +3 -3
- package/dist/assets/{index-h0sgaNFg.js → index-_bZjDFhP.js} +3 -3
- package/dist/assets/{index-M6Qe-jI_.js → index-av1Ii_pg.js} +1 -1
- package/dist/assets/{index-SJgBi99q.js → index-cFZ_La2w.js} +1 -1
- package/dist/assets/{index-xEfydoyO.js → index-fefNq3JS.js} +1 -1
- package/dist/assets/{index-DVdEsdn8.js → index-iY6yR8LR.js} +1 -1
- package/dist/assets/{index-CAJT68WX.js → index-m4TSpDqh.js} +1 -1
- package/dist/assets/{index-7TBJ1kJc.js → index-wZoARVEY.js} +1 -1
- package/dist/assets/{index-CzCGz7a7.js → index-yufFTVXz.js} +1 -1
- package/dist/assets/{index.es-Gd_7EjLV.js → index.es-vBzWz3O4.js} +1 -1
- package/dist/assets/{index.esm-13cF7kZn.js → index.esm-AY_MiBcV.js} +1 -1
- package/dist/assets/{invitation-ATSj-mdg.js → invitation-3WWriyVt.js} +1 -1
- package/dist/assets/{invite-8fJRRJDU.js → invite-N6dQR5ZR.js} +1 -1
- package/dist/assets/{issue-passport-ALJ4LERP.js → issue-passport-jAawdTqX.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-4Jo3IMMB.js → jss-plugin-props-sort.esm-xdjEY1uR.js} +1 -1
- package/dist/assets/{launch-result-message-2Tk7smd-.js → launch-result-message-cX2DdrLk.js} +1 -1
- package/dist/assets/{layout-t8AuT3eZ.js → layout-68HwrJKQ.js} +1 -1
- package/dist/assets/{list-header-wXDG5LBO.js → list-header-hSrwFM5U.js} +1 -1
- package/dist/assets/{listItemButtonClasses-Ae_e1-No.js → listItemButtonClasses-zLzjLEQ1.js} +1 -1
- package/dist/assets/localization-CAKlYD8P.js +1 -0
- package/dist/assets/{log-Cb2YJGrF.js → log-JtMhj2o8.js} +1 -1
- package/dist/assets/{login-q2pL4dsp.js → login-rfrF2Cur.js} +1 -1
- package/dist/assets/{logo-uploader-6K4_X7Po.js → logo-uploader-ExzbUiFI.js} +3 -3
- package/dist/assets/{lost-passport-gSdi28un.js → lost-passport-LEWrhtsE.js} +3 -3
- package/dist/assets/{lottie-kQ2xv--6.js → lottie-G1otoBC8.js} +1 -1
- package/dist/assets/{notifications-ZISqOX0a.js → notifications-WG7t1uHO.js} +1 -1
- package/dist/assets/{overview-sZ5BzRTI.js → overview-yBfiQBkQ.js} +1 -1
- package/dist/assets/{page-header-6P2EpXF4.js → page-header-4ASw0dHi.js} +1 -1
- package/dist/assets/{permission-OS0PzIT6.js → permission-DRuKjUv8.js} +1 -1
- package/dist/assets/{preferences-Z_IC4nhp.js → preferences-NjSKRtT2.js} +1 -1
- package/dist/assets/publish-resource-NlVYECa8.js +1 -0
- package/dist/assets/{react-c0JPgnZb.js → react-9zU2PV91.js} +3 -3
- package/dist/assets/{selector--YzbGRVD.js → selector-Dk6vMXQs.js} +1 -1
- package/dist/assets/session--6YbzF22.js +1 -0
- package/dist/assets/{setup-SgrcP2x-.js → setup-uCg5vw2w.js} +3 -3
- package/dist/assets/{slicedToArray-oSUzPFdO.js → slicedToArray-DPB3oHnW.js} +1 -1
- package/dist/assets/{spaces-QaY2264X.js → spaces-ckJ3F4TJ.js} +1 -1
- package/dist/assets/{start-bZtRlTDD.js → start-H2I7Lm2C.js} +1 -1
- package/dist/assets/{step-actions-HFGR5bXP.js → step-actions-VeAtvDtT.js} +1 -1
- package/dist/assets/{studio-ieBsoOA2.js → studio-ouCJArpF.js} +1 -1
- package/dist/assets/{styled-T50_bxwD.js → styled-0kjic46e.js} +1 -1
- package/dist/assets/{switch-control-Jc2zn8vk.js → switch-control-dx-J5AXO.js} +1 -1
- package/dist/assets/{toUpper-JRDZSLI-.js → toUpper-cifwXOtQ.js} +1 -1
- package/dist/assets/{transfer-aKSH1Uy1.js → transfer-E04XdHU6.js} +1 -1
- package/dist/assets/{uniqBy-pTynGO58.js → uniqBy-2Vt9UR0B.js} +1 -1
- package/dist/assets/{unsubscribe-C8dEs1Ba.js → unsubscribe-iO8zsaz8.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-VkRWACiT.js → use-blocklet-info-for-connect-did-spaces-mNvG04f3.js} +1 -1
- package/dist/assets/{useAsync-WK9qvtNg.js → useAsync-zNEgPETV.js} +1 -1
- package/dist/assets/{useLocalStorage-bpwznFaJ.js → useLocalStorage-XI5ozNRv.js} +1 -1
- package/dist/assets/{useMediaQuery-wdcDHB2A.js → useMediaQuery-mRt2C6pY.js} +1 -1
- package/dist/assets/{useSetState-DuNs4WQl.js → useSetState-Uk84-eN2.js} +1 -1
- package/dist/assets/{useSlotProps-bCjso8dX.js → useSlotProps-ov-tJvVD.js} +1 -1
- package/dist/assets/useTheme-2SjM2dAw.js +1 -0
- package/dist/assets/{user-center-KRbkkANH.js → user-center-hP5WNwoA.js} +1 -1
- package/dist/assets/{util-peZ-5-3t.js → util-v8NIXura.js} +1 -1
- package/dist/assets/{wrap-locale-twPH_GVN.js → wrap-locale-DICshMp9.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +22 -22
- package/dist/assets/Box-pk1M-Oil.js +0 -1
- package/dist/assets/Box-u-ODEgip.js +0 -1
- package/dist/assets/add-resource-IzJ7fbHT.js +0 -1
- package/dist/assets/api-OlKdBFAs.js +0 -1
- package/dist/assets/connect-FedFWzi2.js +0 -1
- package/dist/assets/home-eLiYj1ha.js +0 -1
- package/dist/assets/localization-8RqW246V.js +0 -1
- package/dist/assets/publish-resource-wxmmgOuK.js +0 -1
- package/dist/assets/session-b-ow1RpF.js +0 -1
- package/dist/assets/useTheme-3PhpBKHL.js +0 -1
|
@@ -347,7 +347,7 @@ Error generating stack: `+a.message+`
|
|
|
347
347
|
cursor: pointer;
|
|
348
348
|
`,XPe=us("span")`
|
|
349
349
|
cursor: pointer;
|
|
350
|
-
`,QPe=us(({className:e,...t})=>G.jsx(Bu,{...t,classes:{popper:e}}))({[`& .${Tl.tooltip}`]:{maxWidth:360,wordBreak:"break-all"}});function NK({children:e,...t}){return z.Children.map(e,r=>typeof r=="string"?G.jsx(SE,{...t,children:r}):r.props&&r.props.children?G.jsx(r.type,{...r.props,children:G.jsx(NK,{...t,children:r.props.children})}):r)}function SE({startChars:e,endChars:t,children:n,showCopyButtonInTooltip:r}){if(typeof n!="string")return G.jsx(NK,{startChars:e,endChars:t,showCopyButtonInTooltip:r,children:n});const i=G.jsxs(yt,{display:"flex",alignItems:"center",lineHeight:1,onClick:a=>a.stopPropagation(),children:[G.jsx(yt,{children:n}),r&&G.jsx(EC,{content:n,showTooltip:!1,style:{fontSize:16,marginLeft:4}})]});return G.jsx(QPe,{title:i,placement:"top",children:G.jsxs("span",{children:[n.slice(0,e),"...",n.slice(n.length-t)]})})}SE.propTypes={startChars:ge.number,endChars:ge.number,children:ge.node.isRequired,showCopyButtonInTooltip:ge.bool};SE.defaultProps={startChars:6,endChars:6,showCopyButtonInTooltip:!1};const Ty={en:{copy:"Click To Copy",copied:"Copied!"},zh:{copy:"点击复制",copied:"已复制!"}},_E=z.forwardRef(({component:e,size:t,copyable:n,content:r,children:i,prepend:a,append:o,compact:s,startChars:l,endChars:f,locale:c,showCopyButtonInTooltip:d,...p},g)=>{Ty[c]||(c="en");const[y,b]=z.useState(!1),R=z.useRef(),A=D=>{D.stopPropagation(),D.preventDefault(),LK(r||R.current.textContent),b(!0),setTimeout(()=>{b(!1)},1500)};let $=null;return n&&($=G.jsx("span",{className:"did-address-copy-wrapper",title:y?"":Ty[c].copy,children:y?G.jsx(Bu,{title:Ty[c].copied,placement:"bottom",arrow:!0,open:y,children:G.jsx(JPe,{className:"did-address-copy",style:{color:hu[500]}})}):G.jsx(VPe,{className:"did-address-copy",onClick:A})})),G.jsxs(eMe,{as:e,size:t,...p,ref:g,children:[a,G.jsx(yt,{sx:{display:"none"},ref:R,children:i}),G.jsx(Bu,{title:n?"":Ty[c].copied,placement:"bottom",arrow:!0,open:y,children:s?G.jsx(yt,{component:"span",className:"did-address-text",sx:{cursor:n?"text":"pointer"},onDoubleClick:n?Bn:A,children:G.jsx(SE,{startChars:l,endChars:f,showCopyButtonInTooltip:d,children:i})}):G.jsx(yt,{component:"span",className:"did-address-text did-address-truncate",sx:{display:s?"none":"inline",cursor:n?"
|
|
350
|
+
`,QPe=us(({className:e,...t})=>G.jsx(Bu,{...t,classes:{popper:e}}))({[`& .${Tl.tooltip}`]:{maxWidth:360,wordBreak:"break-all"}});function NK({children:e,...t}){return z.Children.map(e,r=>typeof r=="string"?G.jsx(SE,{...t,children:r}):r.props&&r.props.children?G.jsx(r.type,{...r.props,children:G.jsx(NK,{...t,children:r.props.children})}):r)}function SE({startChars:e,endChars:t,children:n,showCopyButtonInTooltip:r}){if(typeof n!="string")return G.jsx(NK,{startChars:e,endChars:t,showCopyButtonInTooltip:r,children:n});const i=G.jsxs(yt,{display:"flex",alignItems:"center",lineHeight:1,onClick:a=>a.stopPropagation(),children:[G.jsx(yt,{children:n}),r&&G.jsx(EC,{content:n,showTooltip:!1,style:{fontSize:16,marginLeft:4}})]});return G.jsx(QPe,{title:i,placement:"top",children:G.jsxs("span",{children:[n.slice(0,e),"...",n.slice(n.length-t)]})})}SE.propTypes={startChars:ge.number,endChars:ge.number,children:ge.node.isRequired,showCopyButtonInTooltip:ge.bool};SE.defaultProps={startChars:6,endChars:6,showCopyButtonInTooltip:!1};const Ty={en:{copy:"Click To Copy",copied:"Copied!"},zh:{copy:"点击复制",copied:"已复制!"}},_E=z.forwardRef(({component:e,size:t,copyable:n,content:r,children:i,prepend:a,append:o,compact:s,startChars:l,endChars:f,locale:c,showCopyButtonInTooltip:d,...p},g)=>{Ty[c]||(c="en");const[y,b]=z.useState(!1),R=z.useRef(),A=D=>{D.stopPropagation(),D.preventDefault(),LK(r||R.current.textContent),b(!0),setTimeout(()=>{b(!1)},1500)};let $=null;return n&&($=G.jsx("span",{className:"did-address-copy-wrapper",title:y?"":Ty[c].copy,children:y?G.jsx(Bu,{title:Ty[c].copied,placement:"bottom",arrow:!0,open:y,children:G.jsx(JPe,{className:"did-address-copy",style:{color:hu[500]}})}):G.jsx(VPe,{className:"did-address-copy",onClick:A})})),G.jsxs(eMe,{as:e,size:t,...p,ref:g,children:[a,G.jsx(yt,{sx:{display:"none"},ref:R,children:i}),G.jsx(Bu,{title:n?"":Ty[c].copied,placement:"bottom",arrow:!0,open:y,children:s?G.jsx(yt,{component:"span",className:"did-address-text",sx:{cursor:n?"text":"pointer"},onDoubleClick:n?Bn:A,children:G.jsx(SE,{startChars:l,endChars:f,showCopyButtonInTooltip:d,children:i})}):G.jsx(yt,{component:"span",className:"did-address-text did-address-truncate",sx:{display:s?"none":"inline",cursor:n?"unset":"pointer"},onDoubleClick:n?Bn:A,children:i})}),$,o]})});_E.propTypes={component:ge.string,size:ge.number,copyable:ge.bool,showCopyButtonInTooltip:ge.bool,children:ge.any,content:ge.string,inline:ge.bool,prepend:ge.any,append:ge.any,compact:ge.bool,startChars:ge.number,endChars:ge.number,locale:ge.oneOf(["en","zh"])};_E.defaultProps={component:"span",size:0,copyable:!0,showCopyButtonInTooltip:!1,children:null,content:"",inline:!1,prepend:null,append:null,compact:!1,startChars:6,endChars:6,locale:"en"};const eMe=us(yt,{shouldForwardProp:e=>e!=="inline"})`
|
|
351
351
|
font-family: 'Ubuntu Mono', monospace;
|
|
352
352
|
&& {
|
|
353
353
|
display: ${({inline:e})=>e?"inline-flex":"flex"};
|
|
@@ -434,7 +434,7 @@ use chrome, FireFox or Internet Explorer 11`)}var t=Sn,n=Gl,r=t.Buffer,i=t.kMaxL
|
|
|
434
434
|
`))},Tn.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},Tn}(function(e){(function(t){var n=function(ee){var oe,fe=new Float64Array(16);if(ee)for(oe=0;oe<ee.length;oe++)fe[oe]=ee[oe];return fe},r=function(){throw new Error("no PRNG")},i=new Uint8Array(16),a=new Uint8Array(32);a[0]=9;var o=n(),s=n([1]),l=n([56129,1]),f=n([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),c=n([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),d=n([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),p=n([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),g=n([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function y(ee,oe,fe,J){ee[oe]=fe>>24&255,ee[oe+1]=fe>>16&255,ee[oe+2]=fe>>8&255,ee[oe+3]=fe&255,ee[oe+4]=J>>24&255,ee[oe+5]=J>>16&255,ee[oe+6]=J>>8&255,ee[oe+7]=J&255}function b(ee,oe,fe,J,de){var De,Re=0;for(De=0;De<de;De++)Re|=ee[oe+De]^fe[J+De];return(1&Re-1>>>8)-1}function R(ee,oe,fe,J){return b(ee,oe,fe,J,16)}function A(ee,oe,fe,J){return b(ee,oe,fe,J,32)}function $(ee,oe,fe,J){for(var de=J[0]&255|(J[1]&255)<<8|(J[2]&255)<<16|(J[3]&255)<<24,De=fe[0]&255|(fe[1]&255)<<8|(fe[2]&255)<<16|(fe[3]&255)<<24,Re=fe[4]&255|(fe[5]&255)<<8|(fe[6]&255)<<16|(fe[7]&255)<<24,Le=fe[8]&255|(fe[9]&255)<<8|(fe[10]&255)<<16|(fe[11]&255)<<24,Xe=fe[12]&255|(fe[13]&255)<<8|(fe[14]&255)<<16|(fe[15]&255)<<24,Ye=J[4]&255|(J[5]&255)<<8|(J[6]&255)<<16|(J[7]&255)<<24,ze=oe[0]&255|(oe[1]&255)<<8|(oe[2]&255)<<16|(oe[3]&255)<<24,qt=oe[4]&255|(oe[5]&255)<<8|(oe[6]&255)<<16|(oe[7]&255)<<24,bt=oe[8]&255|(oe[9]&255)<<8|(oe[10]&255)<<16|(oe[11]&255)<<24,Ot=oe[12]&255|(oe[13]&255)<<8|(oe[14]&255)<<16|(oe[15]&255)<<24,Lt=J[8]&255|(J[9]&255)<<8|(J[10]&255)<<16|(J[11]&255)<<24,ht=fe[16]&255|(fe[17]&255)<<8|(fe[18]&255)<<16|(fe[19]&255)<<24,It=fe[20]&255|(fe[21]&255)<<8|(fe[22]&255)<<16|(fe[23]&255)<<24,Ht=fe[24]&255|(fe[25]&255)<<8|(fe[26]&255)<<16|(fe[27]&255)<<24,Bt=fe[28]&255|(fe[29]&255)<<8|(fe[30]&255)<<16|(fe[31]&255)<<24,jt=J[12]&255|(J[13]&255)<<8|(J[14]&255)<<16|(J[15]&255)<<24,xt=de,kt=De,Tt=Re,Ct=Le,$t=Xe,Et=Ye,qe=ze,Ge=qt,at=bt,Qe=Ot,lt=Lt,gt=ht,Wt=It,fn=Ht,dn=Bt,ln=jt,Ie,bn=0;bn<20;bn+=2)Ie=xt+Wt|0,$t^=Ie<<7|Ie>>>25,Ie=$t+xt|0,at^=Ie<<9|Ie>>>23,Ie=at+$t|0,Wt^=Ie<<13|Ie>>>19,Ie=Wt+at|0,xt^=Ie<<18|Ie>>>14,Ie=Et+kt|0,Qe^=Ie<<7|Ie>>>25,Ie=Qe+Et|0,fn^=Ie<<9|Ie>>>23,Ie=fn+Qe|0,kt^=Ie<<13|Ie>>>19,Ie=kt+fn|0,Et^=Ie<<18|Ie>>>14,Ie=lt+qe|0,dn^=Ie<<7|Ie>>>25,Ie=dn+lt|0,Tt^=Ie<<9|Ie>>>23,Ie=Tt+dn|0,qe^=Ie<<13|Ie>>>19,Ie=qe+Tt|0,lt^=Ie<<18|Ie>>>14,Ie=ln+gt|0,Ct^=Ie<<7|Ie>>>25,Ie=Ct+ln|0,Ge^=Ie<<9|Ie>>>23,Ie=Ge+Ct|0,gt^=Ie<<13|Ie>>>19,Ie=gt+Ge|0,ln^=Ie<<18|Ie>>>14,Ie=xt+Ct|0,kt^=Ie<<7|Ie>>>25,Ie=kt+xt|0,Tt^=Ie<<9|Ie>>>23,Ie=Tt+kt|0,Ct^=Ie<<13|Ie>>>19,Ie=Ct+Tt|0,xt^=Ie<<18|Ie>>>14,Ie=Et+$t|0,qe^=Ie<<7|Ie>>>25,Ie=qe+Et|0,Ge^=Ie<<9|Ie>>>23,Ie=Ge+qe|0,$t^=Ie<<13|Ie>>>19,Ie=$t+Ge|0,Et^=Ie<<18|Ie>>>14,Ie=lt+Qe|0,gt^=Ie<<7|Ie>>>25,Ie=gt+lt|0,at^=Ie<<9|Ie>>>23,Ie=at+gt|0,Qe^=Ie<<13|Ie>>>19,Ie=Qe+at|0,lt^=Ie<<18|Ie>>>14,Ie=ln+dn|0,Wt^=Ie<<7|Ie>>>25,Ie=Wt+ln|0,fn^=Ie<<9|Ie>>>23,Ie=fn+Wt|0,dn^=Ie<<13|Ie>>>19,Ie=dn+fn|0,ln^=Ie<<18|Ie>>>14;xt=xt+de|0,kt=kt+De|0,Tt=Tt+Re|0,Ct=Ct+Le|0,$t=$t+Xe|0,Et=Et+Ye|0,qe=qe+ze|0,Ge=Ge+qt|0,at=at+bt|0,Qe=Qe+Ot|0,lt=lt+Lt|0,gt=gt+ht|0,Wt=Wt+It|0,fn=fn+Ht|0,dn=dn+Bt|0,ln=ln+jt|0,ee[0]=xt>>>0&255,ee[1]=xt>>>8&255,ee[2]=xt>>>16&255,ee[3]=xt>>>24&255,ee[4]=kt>>>0&255,ee[5]=kt>>>8&255,ee[6]=kt>>>16&255,ee[7]=kt>>>24&255,ee[8]=Tt>>>0&255,ee[9]=Tt>>>8&255,ee[10]=Tt>>>16&255,ee[11]=Tt>>>24&255,ee[12]=Ct>>>0&255,ee[13]=Ct>>>8&255,ee[14]=Ct>>>16&255,ee[15]=Ct>>>24&255,ee[16]=$t>>>0&255,ee[17]=$t>>>8&255,ee[18]=$t>>>16&255,ee[19]=$t>>>24&255,ee[20]=Et>>>0&255,ee[21]=Et>>>8&255,ee[22]=Et>>>16&255,ee[23]=Et>>>24&255,ee[24]=qe>>>0&255,ee[25]=qe>>>8&255,ee[26]=qe>>>16&255,ee[27]=qe>>>24&255,ee[28]=Ge>>>0&255,ee[29]=Ge>>>8&255,ee[30]=Ge>>>16&255,ee[31]=Ge>>>24&255,ee[32]=at>>>0&255,ee[33]=at>>>8&255,ee[34]=at>>>16&255,ee[35]=at>>>24&255,ee[36]=Qe>>>0&255,ee[37]=Qe>>>8&255,ee[38]=Qe>>>16&255,ee[39]=Qe>>>24&255,ee[40]=lt>>>0&255,ee[41]=lt>>>8&255,ee[42]=lt>>>16&255,ee[43]=lt>>>24&255,ee[44]=gt>>>0&255,ee[45]=gt>>>8&255,ee[46]=gt>>>16&255,ee[47]=gt>>>24&255,ee[48]=Wt>>>0&255,ee[49]=Wt>>>8&255,ee[50]=Wt>>>16&255,ee[51]=Wt>>>24&255,ee[52]=fn>>>0&255,ee[53]=fn>>>8&255,ee[54]=fn>>>16&255,ee[55]=fn>>>24&255,ee[56]=dn>>>0&255,ee[57]=dn>>>8&255,ee[58]=dn>>>16&255,ee[59]=dn>>>24&255,ee[60]=ln>>>0&255,ee[61]=ln>>>8&255,ee[62]=ln>>>16&255,ee[63]=ln>>>24&255}function D(ee,oe,fe,J){for(var de=J[0]&255|(J[1]&255)<<8|(J[2]&255)<<16|(J[3]&255)<<24,De=fe[0]&255|(fe[1]&255)<<8|(fe[2]&255)<<16|(fe[3]&255)<<24,Re=fe[4]&255|(fe[5]&255)<<8|(fe[6]&255)<<16|(fe[7]&255)<<24,Le=fe[8]&255|(fe[9]&255)<<8|(fe[10]&255)<<16|(fe[11]&255)<<24,Xe=fe[12]&255|(fe[13]&255)<<8|(fe[14]&255)<<16|(fe[15]&255)<<24,Ye=J[4]&255|(J[5]&255)<<8|(J[6]&255)<<16|(J[7]&255)<<24,ze=oe[0]&255|(oe[1]&255)<<8|(oe[2]&255)<<16|(oe[3]&255)<<24,qt=oe[4]&255|(oe[5]&255)<<8|(oe[6]&255)<<16|(oe[7]&255)<<24,bt=oe[8]&255|(oe[9]&255)<<8|(oe[10]&255)<<16|(oe[11]&255)<<24,Ot=oe[12]&255|(oe[13]&255)<<8|(oe[14]&255)<<16|(oe[15]&255)<<24,Lt=J[8]&255|(J[9]&255)<<8|(J[10]&255)<<16|(J[11]&255)<<24,ht=fe[16]&255|(fe[17]&255)<<8|(fe[18]&255)<<16|(fe[19]&255)<<24,It=fe[20]&255|(fe[21]&255)<<8|(fe[22]&255)<<16|(fe[23]&255)<<24,Ht=fe[24]&255|(fe[25]&255)<<8|(fe[26]&255)<<16|(fe[27]&255)<<24,Bt=fe[28]&255|(fe[29]&255)<<8|(fe[30]&255)<<16|(fe[31]&255)<<24,jt=J[12]&255|(J[13]&255)<<8|(J[14]&255)<<16|(J[15]&255)<<24,xt=de,kt=De,Tt=Re,Ct=Le,$t=Xe,Et=Ye,qe=ze,Ge=qt,at=bt,Qe=Ot,lt=Lt,gt=ht,Wt=It,fn=Ht,dn=Bt,ln=jt,Ie,bn=0;bn<20;bn+=2)Ie=xt+Wt|0,$t^=Ie<<7|Ie>>>25,Ie=$t+xt|0,at^=Ie<<9|Ie>>>23,Ie=at+$t|0,Wt^=Ie<<13|Ie>>>19,Ie=Wt+at|0,xt^=Ie<<18|Ie>>>14,Ie=Et+kt|0,Qe^=Ie<<7|Ie>>>25,Ie=Qe+Et|0,fn^=Ie<<9|Ie>>>23,Ie=fn+Qe|0,kt^=Ie<<13|Ie>>>19,Ie=kt+fn|0,Et^=Ie<<18|Ie>>>14,Ie=lt+qe|0,dn^=Ie<<7|Ie>>>25,Ie=dn+lt|0,Tt^=Ie<<9|Ie>>>23,Ie=Tt+dn|0,qe^=Ie<<13|Ie>>>19,Ie=qe+Tt|0,lt^=Ie<<18|Ie>>>14,Ie=ln+gt|0,Ct^=Ie<<7|Ie>>>25,Ie=Ct+ln|0,Ge^=Ie<<9|Ie>>>23,Ie=Ge+Ct|0,gt^=Ie<<13|Ie>>>19,Ie=gt+Ge|0,ln^=Ie<<18|Ie>>>14,Ie=xt+Ct|0,kt^=Ie<<7|Ie>>>25,Ie=kt+xt|0,Tt^=Ie<<9|Ie>>>23,Ie=Tt+kt|0,Ct^=Ie<<13|Ie>>>19,Ie=Ct+Tt|0,xt^=Ie<<18|Ie>>>14,Ie=Et+$t|0,qe^=Ie<<7|Ie>>>25,Ie=qe+Et|0,Ge^=Ie<<9|Ie>>>23,Ie=Ge+qe|0,$t^=Ie<<13|Ie>>>19,Ie=$t+Ge|0,Et^=Ie<<18|Ie>>>14,Ie=lt+Qe|0,gt^=Ie<<7|Ie>>>25,Ie=gt+lt|0,at^=Ie<<9|Ie>>>23,Ie=at+gt|0,Qe^=Ie<<13|Ie>>>19,Ie=Qe+at|0,lt^=Ie<<18|Ie>>>14,Ie=ln+dn|0,Wt^=Ie<<7|Ie>>>25,Ie=Wt+ln|0,fn^=Ie<<9|Ie>>>23,Ie=fn+Wt|0,dn^=Ie<<13|Ie>>>19,Ie=dn+fn|0,ln^=Ie<<18|Ie>>>14;ee[0]=xt>>>0&255,ee[1]=xt>>>8&255,ee[2]=xt>>>16&255,ee[3]=xt>>>24&255,ee[4]=Et>>>0&255,ee[5]=Et>>>8&255,ee[6]=Et>>>16&255,ee[7]=Et>>>24&255,ee[8]=lt>>>0&255,ee[9]=lt>>>8&255,ee[10]=lt>>>16&255,ee[11]=lt>>>24&255,ee[12]=ln>>>0&255,ee[13]=ln>>>8&255,ee[14]=ln>>>16&255,ee[15]=ln>>>24&255,ee[16]=qe>>>0&255,ee[17]=qe>>>8&255,ee[18]=qe>>>16&255,ee[19]=qe>>>24&255,ee[20]=Ge>>>0&255,ee[21]=Ge>>>8&255,ee[22]=Ge>>>16&255,ee[23]=Ge>>>24&255,ee[24]=at>>>0&255,ee[25]=at>>>8&255,ee[26]=at>>>16&255,ee[27]=at>>>24&255,ee[28]=Qe>>>0&255,ee[29]=Qe>>>8&255,ee[30]=Qe>>>16&255,ee[31]=Qe>>>24&255}function M(ee,oe,fe,J){$(ee,oe,fe,J)}function j(ee,oe,fe,J){D(ee,oe,fe,J)}var U=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function V(ee,oe,fe,J,de,De,Re){var Le=new Uint8Array(16),Xe=new Uint8Array(64),Ye,ze;for(ze=0;ze<16;ze++)Le[ze]=0;for(ze=0;ze<8;ze++)Le[ze]=De[ze];for(;de>=64;){for(M(Xe,Le,Re,U),ze=0;ze<64;ze++)ee[oe+ze]=fe[J+ze]^Xe[ze];for(Ye=1,ze=8;ze<16;ze++)Ye=Ye+(Le[ze]&255)|0,Le[ze]=Ye&255,Ye>>>=8;de-=64,oe+=64,J+=64}if(de>0)for(M(Xe,Le,Re,U),ze=0;ze<de;ze++)ee[oe+ze]=fe[J+ze]^Xe[ze];return 0}function X(ee,oe,fe,J,de){var De=new Uint8Array(16),Re=new Uint8Array(64),Le,Xe;for(Xe=0;Xe<16;Xe++)De[Xe]=0;for(Xe=0;Xe<8;Xe++)De[Xe]=J[Xe];for(;fe>=64;){for(M(Re,De,de,U),Xe=0;Xe<64;Xe++)ee[oe+Xe]=Re[Xe];for(Le=1,Xe=8;Xe<16;Xe++)Le=Le+(De[Xe]&255)|0,De[Xe]=Le&255,Le>>>=8;fe-=64,oe+=64}if(fe>0)for(M(Re,De,de,U),Xe=0;Xe<fe;Xe++)ee[oe+Xe]=Re[Xe];return 0}function ie(ee,oe,fe,J,de){var De=new Uint8Array(32);j(De,J,de,U);for(var Re=new Uint8Array(8),Le=0;Le<8;Le++)Re[Le]=J[Le+16];return X(ee,oe,fe,Re,De)}function le(ee,oe,fe,J,de,De,Re){var Le=new Uint8Array(32);j(Le,De,Re,U);for(var Xe=new Uint8Array(8),Ye=0;Ye<8;Ye++)Xe[Ye]=De[Ye+16];return V(ee,oe,fe,J,de,Xe,Le)}var Q=function(ee){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var oe,fe,J,de,De,Re,Le,Xe;oe=ee[0]&255|(ee[1]&255)<<8,this.r[0]=oe&8191,fe=ee[2]&255|(ee[3]&255)<<8,this.r[1]=(oe>>>13|fe<<3)&8191,J=ee[4]&255|(ee[5]&255)<<8,this.r[2]=(fe>>>10|J<<6)&7939,de=ee[6]&255|(ee[7]&255)<<8,this.r[3]=(J>>>7|de<<9)&8191,De=ee[8]&255|(ee[9]&255)<<8,this.r[4]=(de>>>4|De<<12)&255,this.r[5]=De>>>1&8190,Re=ee[10]&255|(ee[11]&255)<<8,this.r[6]=(De>>>14|Re<<2)&8191,Le=ee[12]&255|(ee[13]&255)<<8,this.r[7]=(Re>>>11|Le<<5)&8065,Xe=ee[14]&255|(ee[15]&255)<<8,this.r[8]=(Le>>>8|Xe<<8)&8191,this.r[9]=Xe>>>5&127,this.pad[0]=ee[16]&255|(ee[17]&255)<<8,this.pad[1]=ee[18]&255|(ee[19]&255)<<8,this.pad[2]=ee[20]&255|(ee[21]&255)<<8,this.pad[3]=ee[22]&255|(ee[23]&255)<<8,this.pad[4]=ee[24]&255|(ee[25]&255)<<8,this.pad[5]=ee[26]&255|(ee[27]&255)<<8,this.pad[6]=ee[28]&255|(ee[29]&255)<<8,this.pad[7]=ee[30]&255|(ee[31]&255)<<8};Q.prototype.blocks=function(ee,oe,fe){for(var J=this.fin?0:2048,de,De,Re,Le,Xe,Ye,ze,qt,bt,Ot,Lt,ht,It,Ht,Bt,jt,xt,kt,Tt,Ct=this.h[0],$t=this.h[1],Et=this.h[2],qe=this.h[3],Ge=this.h[4],at=this.h[5],Qe=this.h[6],lt=this.h[7],gt=this.h[8],Wt=this.h[9],fn=this.r[0],dn=this.r[1],ln=this.r[2],Ie=this.r[3],bn=this.r[4],Cn=this.r[5],Rn=this.r[6],pn=this.r[7],$n=this.r[8],_n=this.r[9];fe>=16;)de=ee[oe+0]&255|(ee[oe+1]&255)<<8,Ct+=de&8191,De=ee[oe+2]&255|(ee[oe+3]&255)<<8,$t+=(de>>>13|De<<3)&8191,Re=ee[oe+4]&255|(ee[oe+5]&255)<<8,Et+=(De>>>10|Re<<6)&8191,Le=ee[oe+6]&255|(ee[oe+7]&255)<<8,qe+=(Re>>>7|Le<<9)&8191,Xe=ee[oe+8]&255|(ee[oe+9]&255)<<8,Ge+=(Le>>>4|Xe<<12)&8191,at+=Xe>>>1&8191,Ye=ee[oe+10]&255|(ee[oe+11]&255)<<8,Qe+=(Xe>>>14|Ye<<2)&8191,ze=ee[oe+12]&255|(ee[oe+13]&255)<<8,lt+=(Ye>>>11|ze<<5)&8191,qt=ee[oe+14]&255|(ee[oe+15]&255)<<8,gt+=(ze>>>8|qt<<8)&8191,Wt+=qt>>>5|J,bt=0,Ot=bt,Ot+=Ct*fn,Ot+=$t*(5*_n),Ot+=Et*(5*$n),Ot+=qe*(5*pn),Ot+=Ge*(5*Rn),bt=Ot>>>13,Ot&=8191,Ot+=at*(5*Cn),Ot+=Qe*(5*bn),Ot+=lt*(5*Ie),Ot+=gt*(5*ln),Ot+=Wt*(5*dn),bt+=Ot>>>13,Ot&=8191,Lt=bt,Lt+=Ct*dn,Lt+=$t*fn,Lt+=Et*(5*_n),Lt+=qe*(5*$n),Lt+=Ge*(5*pn),bt=Lt>>>13,Lt&=8191,Lt+=at*(5*Rn),Lt+=Qe*(5*Cn),Lt+=lt*(5*bn),Lt+=gt*(5*Ie),Lt+=Wt*(5*ln),bt+=Lt>>>13,Lt&=8191,ht=bt,ht+=Ct*ln,ht+=$t*dn,ht+=Et*fn,ht+=qe*(5*_n),ht+=Ge*(5*$n),bt=ht>>>13,ht&=8191,ht+=at*(5*pn),ht+=Qe*(5*Rn),ht+=lt*(5*Cn),ht+=gt*(5*bn),ht+=Wt*(5*Ie),bt+=ht>>>13,ht&=8191,It=bt,It+=Ct*Ie,It+=$t*ln,It+=Et*dn,It+=qe*fn,It+=Ge*(5*_n),bt=It>>>13,It&=8191,It+=at*(5*$n),It+=Qe*(5*pn),It+=lt*(5*Rn),It+=gt*(5*Cn),It+=Wt*(5*bn),bt+=It>>>13,It&=8191,Ht=bt,Ht+=Ct*bn,Ht+=$t*Ie,Ht+=Et*ln,Ht+=qe*dn,Ht+=Ge*fn,bt=Ht>>>13,Ht&=8191,Ht+=at*(5*_n),Ht+=Qe*(5*$n),Ht+=lt*(5*pn),Ht+=gt*(5*Rn),Ht+=Wt*(5*Cn),bt+=Ht>>>13,Ht&=8191,Bt=bt,Bt+=Ct*Cn,Bt+=$t*bn,Bt+=Et*Ie,Bt+=qe*ln,Bt+=Ge*dn,bt=Bt>>>13,Bt&=8191,Bt+=at*fn,Bt+=Qe*(5*_n),Bt+=lt*(5*$n),Bt+=gt*(5*pn),Bt+=Wt*(5*Rn),bt+=Bt>>>13,Bt&=8191,jt=bt,jt+=Ct*Rn,jt+=$t*Cn,jt+=Et*bn,jt+=qe*Ie,jt+=Ge*ln,bt=jt>>>13,jt&=8191,jt+=at*dn,jt+=Qe*fn,jt+=lt*(5*_n),jt+=gt*(5*$n),jt+=Wt*(5*pn),bt+=jt>>>13,jt&=8191,xt=bt,xt+=Ct*pn,xt+=$t*Rn,xt+=Et*Cn,xt+=qe*bn,xt+=Ge*Ie,bt=xt>>>13,xt&=8191,xt+=at*ln,xt+=Qe*dn,xt+=lt*fn,xt+=gt*(5*_n),xt+=Wt*(5*$n),bt+=xt>>>13,xt&=8191,kt=bt,kt+=Ct*$n,kt+=$t*pn,kt+=Et*Rn,kt+=qe*Cn,kt+=Ge*bn,bt=kt>>>13,kt&=8191,kt+=at*Ie,kt+=Qe*ln,kt+=lt*dn,kt+=gt*fn,kt+=Wt*(5*_n),bt+=kt>>>13,kt&=8191,Tt=bt,Tt+=Ct*_n,Tt+=$t*$n,Tt+=Et*pn,Tt+=qe*Rn,Tt+=Ge*Cn,bt=Tt>>>13,Tt&=8191,Tt+=at*bn,Tt+=Qe*Ie,Tt+=lt*ln,Tt+=gt*dn,Tt+=Wt*fn,bt+=Tt>>>13,Tt&=8191,bt=(bt<<2)+bt|0,bt=bt+Ot|0,Ot=bt&8191,bt=bt>>>13,Lt+=bt,Ct=Ot,$t=Lt,Et=ht,qe=It,Ge=Ht,at=Bt,Qe=jt,lt=xt,gt=kt,Wt=Tt,oe+=16,fe-=16;this.h[0]=Ct,this.h[1]=$t,this.h[2]=Et,this.h[3]=qe,this.h[4]=Ge,this.h[5]=at,this.h[6]=Qe,this.h[7]=lt,this.h[8]=gt,this.h[9]=Wt},Q.prototype.finish=function(ee,oe){var fe=new Uint16Array(10),J,de,De,Re;if(this.leftover){for(Re=this.leftover,this.buffer[Re++]=1;Re<16;Re++)this.buffer[Re]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(J=this.h[1]>>>13,this.h[1]&=8191,Re=2;Re<10;Re++)this.h[Re]+=J,J=this.h[Re]>>>13,this.h[Re]&=8191;for(this.h[0]+=J*5,J=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=J,J=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=J,fe[0]=this.h[0]+5,J=fe[0]>>>13,fe[0]&=8191,Re=1;Re<10;Re++)fe[Re]=this.h[Re]+J,J=fe[Re]>>>13,fe[Re]&=8191;for(fe[9]-=8192,de=(J^1)-1,Re=0;Re<10;Re++)fe[Re]&=de;for(de=~de,Re=0;Re<10;Re++)this.h[Re]=this.h[Re]&de|fe[Re];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,De=this.h[0]+this.pad[0],this.h[0]=De&65535,Re=1;Re<8;Re++)De=(this.h[Re]+this.pad[Re]|0)+(De>>>16)|0,this.h[Re]=De&65535;ee[oe+0]=this.h[0]>>>0&255,ee[oe+1]=this.h[0]>>>8&255,ee[oe+2]=this.h[1]>>>0&255,ee[oe+3]=this.h[1]>>>8&255,ee[oe+4]=this.h[2]>>>0&255,ee[oe+5]=this.h[2]>>>8&255,ee[oe+6]=this.h[3]>>>0&255,ee[oe+7]=this.h[3]>>>8&255,ee[oe+8]=this.h[4]>>>0&255,ee[oe+9]=this.h[4]>>>8&255,ee[oe+10]=this.h[5]>>>0&255,ee[oe+11]=this.h[5]>>>8&255,ee[oe+12]=this.h[6]>>>0&255,ee[oe+13]=this.h[6]>>>8&255,ee[oe+14]=this.h[7]>>>0&255,ee[oe+15]=this.h[7]>>>8&255},Q.prototype.update=function(ee,oe,fe){var J,de;if(this.leftover){for(de=16-this.leftover,de>fe&&(de=fe),J=0;J<de;J++)this.buffer[this.leftover+J]=ee[oe+J];if(fe-=de,oe+=de,this.leftover+=de,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(fe>=16&&(de=fe-fe%16,this.blocks(ee,oe,de),oe+=de,fe-=de),fe){for(J=0;J<fe;J++)this.buffer[this.leftover+J]=ee[oe+J];this.leftover+=fe}};function P(ee,oe,fe,J,de,De){var Re=new Q(De);return Re.update(fe,J,de),Re.finish(ee,oe),0}function T(ee,oe,fe,J,de,De){var Re=new Uint8Array(16);return P(Re,0,fe,J,de,De),R(ee,oe,Re,0)}function u(ee,oe,fe,J,de){var De;if(fe<32)return-1;for(le(ee,0,oe,0,fe,J,de),P(ee,16,ee,32,fe-32,ee),De=0;De<16;De++)ee[De]=0;return 0}function h(ee,oe,fe,J,de){var De,Re=new Uint8Array(32);if(fe<32||(ie(Re,0,32,J,de),T(oe,16,oe,32,fe-32,Re)!==0))return-1;for(le(ee,0,oe,0,fe,J,de),De=0;De<32;De++)ee[De]=0;return 0}function E(ee,oe){var fe;for(fe=0;fe<16;fe++)ee[fe]=oe[fe]|0}function S(ee){var oe,fe,J=1;for(oe=0;oe<16;oe++)fe=ee[oe]+J+65535,J=Math.floor(fe/65536),ee[oe]=fe-J*65536;ee[0]+=J-1+37*(J-1)}function C(ee,oe,fe){for(var J,de=~(fe-1),De=0;De<16;De++)J=de&(ee[De]^oe[De]),ee[De]^=J,oe[De]^=J}function I(ee,oe){var fe,J,de,De=n(),Re=n();for(fe=0;fe<16;fe++)Re[fe]=oe[fe];for(S(Re),S(Re),S(Re),J=0;J<2;J++){for(De[0]=Re[0]-65517,fe=1;fe<15;fe++)De[fe]=Re[fe]-65535-(De[fe-1]>>16&1),De[fe-1]&=65535;De[15]=Re[15]-32767-(De[14]>>16&1),de=De[15]>>16&1,De[14]&=65535,C(Re,De,1-de)}for(fe=0;fe<16;fe++)ee[2*fe]=Re[fe]&255,ee[2*fe+1]=Re[fe]>>8}function x(ee,oe){var fe=new Uint8Array(32),J=new Uint8Array(32);return I(fe,ee),I(J,oe),A(fe,0,J,0)}function _(ee){var oe=new Uint8Array(32);return I(oe,ee),oe[0]&1}function v(ee,oe){var fe;for(fe=0;fe<16;fe++)ee[fe]=oe[2*fe]+(oe[2*fe+1]<<8);ee[15]&=32767}function k(ee,oe,fe){for(var J=0;J<16;J++)ee[J]=oe[J]+fe[J]}function ne(ee,oe,fe){for(var J=0;J<16;J++)ee[J]=oe[J]-fe[J]}function N(ee,oe,fe){var J,de,De=0,Re=0,Le=0,Xe=0,Ye=0,ze=0,qt=0,bt=0,Ot=0,Lt=0,ht=0,It=0,Ht=0,Bt=0,jt=0,xt=0,kt=0,Tt=0,Ct=0,$t=0,Et=0,qe=0,Ge=0,at=0,Qe=0,lt=0,gt=0,Wt=0,fn=0,dn=0,ln=0,Ie=fe[0],bn=fe[1],Cn=fe[2],Rn=fe[3],pn=fe[4],$n=fe[5],_n=fe[6],dr=fe[7],Fn=fe[8],Xn=fe[9],pr=fe[10],hr=fe[11],Fr=fe[12],Kr=fe[13],Yr=fe[14],Zr=fe[15];J=oe[0],De+=J*Ie,Re+=J*bn,Le+=J*Cn,Xe+=J*Rn,Ye+=J*pn,ze+=J*$n,qt+=J*_n,bt+=J*dr,Ot+=J*Fn,Lt+=J*Xn,ht+=J*pr,It+=J*hr,Ht+=J*Fr,Bt+=J*Kr,jt+=J*Yr,xt+=J*Zr,J=oe[1],Re+=J*Ie,Le+=J*bn,Xe+=J*Cn,Ye+=J*Rn,ze+=J*pn,qt+=J*$n,bt+=J*_n,Ot+=J*dr,Lt+=J*Fn,ht+=J*Xn,It+=J*pr,Ht+=J*hr,Bt+=J*Fr,jt+=J*Kr,xt+=J*Yr,kt+=J*Zr,J=oe[2],Le+=J*Ie,Xe+=J*bn,Ye+=J*Cn,ze+=J*Rn,qt+=J*pn,bt+=J*$n,Ot+=J*_n,Lt+=J*dr,ht+=J*Fn,It+=J*Xn,Ht+=J*pr,Bt+=J*hr,jt+=J*Fr,xt+=J*Kr,kt+=J*Yr,Tt+=J*Zr,J=oe[3],Xe+=J*Ie,Ye+=J*bn,ze+=J*Cn,qt+=J*Rn,bt+=J*pn,Ot+=J*$n,Lt+=J*_n,ht+=J*dr,It+=J*Fn,Ht+=J*Xn,Bt+=J*pr,jt+=J*hr,xt+=J*Fr,kt+=J*Kr,Tt+=J*Yr,Ct+=J*Zr,J=oe[4],Ye+=J*Ie,ze+=J*bn,qt+=J*Cn,bt+=J*Rn,Ot+=J*pn,Lt+=J*$n,ht+=J*_n,It+=J*dr,Ht+=J*Fn,Bt+=J*Xn,jt+=J*pr,xt+=J*hr,kt+=J*Fr,Tt+=J*Kr,Ct+=J*Yr,$t+=J*Zr,J=oe[5],ze+=J*Ie,qt+=J*bn,bt+=J*Cn,Ot+=J*Rn,Lt+=J*pn,ht+=J*$n,It+=J*_n,Ht+=J*dr,Bt+=J*Fn,jt+=J*Xn,xt+=J*pr,kt+=J*hr,Tt+=J*Fr,Ct+=J*Kr,$t+=J*Yr,Et+=J*Zr,J=oe[6],qt+=J*Ie,bt+=J*bn,Ot+=J*Cn,Lt+=J*Rn,ht+=J*pn,It+=J*$n,Ht+=J*_n,Bt+=J*dr,jt+=J*Fn,xt+=J*Xn,kt+=J*pr,Tt+=J*hr,Ct+=J*Fr,$t+=J*Kr,Et+=J*Yr,qe+=J*Zr,J=oe[7],bt+=J*Ie,Ot+=J*bn,Lt+=J*Cn,ht+=J*Rn,It+=J*pn,Ht+=J*$n,Bt+=J*_n,jt+=J*dr,xt+=J*Fn,kt+=J*Xn,Tt+=J*pr,Ct+=J*hr,$t+=J*Fr,Et+=J*Kr,qe+=J*Yr,Ge+=J*Zr,J=oe[8],Ot+=J*Ie,Lt+=J*bn,ht+=J*Cn,It+=J*Rn,Ht+=J*pn,Bt+=J*$n,jt+=J*_n,xt+=J*dr,kt+=J*Fn,Tt+=J*Xn,Ct+=J*pr,$t+=J*hr,Et+=J*Fr,qe+=J*Kr,Ge+=J*Yr,at+=J*Zr,J=oe[9],Lt+=J*Ie,ht+=J*bn,It+=J*Cn,Ht+=J*Rn,Bt+=J*pn,jt+=J*$n,xt+=J*_n,kt+=J*dr,Tt+=J*Fn,Ct+=J*Xn,$t+=J*pr,Et+=J*hr,qe+=J*Fr,Ge+=J*Kr,at+=J*Yr,Qe+=J*Zr,J=oe[10],ht+=J*Ie,It+=J*bn,Ht+=J*Cn,Bt+=J*Rn,jt+=J*pn,xt+=J*$n,kt+=J*_n,Tt+=J*dr,Ct+=J*Fn,$t+=J*Xn,Et+=J*pr,qe+=J*hr,Ge+=J*Fr,at+=J*Kr,Qe+=J*Yr,lt+=J*Zr,J=oe[11],It+=J*Ie,Ht+=J*bn,Bt+=J*Cn,jt+=J*Rn,xt+=J*pn,kt+=J*$n,Tt+=J*_n,Ct+=J*dr,$t+=J*Fn,Et+=J*Xn,qe+=J*pr,Ge+=J*hr,at+=J*Fr,Qe+=J*Kr,lt+=J*Yr,gt+=J*Zr,J=oe[12],Ht+=J*Ie,Bt+=J*bn,jt+=J*Cn,xt+=J*Rn,kt+=J*pn,Tt+=J*$n,Ct+=J*_n,$t+=J*dr,Et+=J*Fn,qe+=J*Xn,Ge+=J*pr,at+=J*hr,Qe+=J*Fr,lt+=J*Kr,gt+=J*Yr,Wt+=J*Zr,J=oe[13],Bt+=J*Ie,jt+=J*bn,xt+=J*Cn,kt+=J*Rn,Tt+=J*pn,Ct+=J*$n,$t+=J*_n,Et+=J*dr,qe+=J*Fn,Ge+=J*Xn,at+=J*pr,Qe+=J*hr,lt+=J*Fr,gt+=J*Kr,Wt+=J*Yr,fn+=J*Zr,J=oe[14],jt+=J*Ie,xt+=J*bn,kt+=J*Cn,Tt+=J*Rn,Ct+=J*pn,$t+=J*$n,Et+=J*_n,qe+=J*dr,Ge+=J*Fn,at+=J*Xn,Qe+=J*pr,lt+=J*hr,gt+=J*Fr,Wt+=J*Kr,fn+=J*Yr,dn+=J*Zr,J=oe[15],xt+=J*Ie,kt+=J*bn,Tt+=J*Cn,Ct+=J*Rn,$t+=J*pn,Et+=J*$n,qe+=J*_n,Ge+=J*dr,at+=J*Fn,Qe+=J*Xn,lt+=J*pr,gt+=J*hr,Wt+=J*Fr,fn+=J*Kr,dn+=J*Yr,ln+=J*Zr,De+=38*kt,Re+=38*Tt,Le+=38*Ct,Xe+=38*$t,Ye+=38*Et,ze+=38*qe,qt+=38*Ge,bt+=38*at,Ot+=38*Qe,Lt+=38*lt,ht+=38*gt,It+=38*Wt,Ht+=38*fn,Bt+=38*dn,jt+=38*ln,de=1,J=De+de+65535,de=Math.floor(J/65536),De=J-de*65536,J=Re+de+65535,de=Math.floor(J/65536),Re=J-de*65536,J=Le+de+65535,de=Math.floor(J/65536),Le=J-de*65536,J=Xe+de+65535,de=Math.floor(J/65536),Xe=J-de*65536,J=Ye+de+65535,de=Math.floor(J/65536),Ye=J-de*65536,J=ze+de+65535,de=Math.floor(J/65536),ze=J-de*65536,J=qt+de+65535,de=Math.floor(J/65536),qt=J-de*65536,J=bt+de+65535,de=Math.floor(J/65536),bt=J-de*65536,J=Ot+de+65535,de=Math.floor(J/65536),Ot=J-de*65536,J=Lt+de+65535,de=Math.floor(J/65536),Lt=J-de*65536,J=ht+de+65535,de=Math.floor(J/65536),ht=J-de*65536,J=It+de+65535,de=Math.floor(J/65536),It=J-de*65536,J=Ht+de+65535,de=Math.floor(J/65536),Ht=J-de*65536,J=Bt+de+65535,de=Math.floor(J/65536),Bt=J-de*65536,J=jt+de+65535,de=Math.floor(J/65536),jt=J-de*65536,J=xt+de+65535,de=Math.floor(J/65536),xt=J-de*65536,De+=de-1+37*(de-1),de=1,J=De+de+65535,de=Math.floor(J/65536),De=J-de*65536,J=Re+de+65535,de=Math.floor(J/65536),Re=J-de*65536,J=Le+de+65535,de=Math.floor(J/65536),Le=J-de*65536,J=Xe+de+65535,de=Math.floor(J/65536),Xe=J-de*65536,J=Ye+de+65535,de=Math.floor(J/65536),Ye=J-de*65536,J=ze+de+65535,de=Math.floor(J/65536),ze=J-de*65536,J=qt+de+65535,de=Math.floor(J/65536),qt=J-de*65536,J=bt+de+65535,de=Math.floor(J/65536),bt=J-de*65536,J=Ot+de+65535,de=Math.floor(J/65536),Ot=J-de*65536,J=Lt+de+65535,de=Math.floor(J/65536),Lt=J-de*65536,J=ht+de+65535,de=Math.floor(J/65536),ht=J-de*65536,J=It+de+65535,de=Math.floor(J/65536),It=J-de*65536,J=Ht+de+65535,de=Math.floor(J/65536),Ht=J-de*65536,J=Bt+de+65535,de=Math.floor(J/65536),Bt=J-de*65536,J=jt+de+65535,de=Math.floor(J/65536),jt=J-de*65536,J=xt+de+65535,de=Math.floor(J/65536),xt=J-de*65536,De+=de-1+37*(de-1),ee[0]=De,ee[1]=Re,ee[2]=Le,ee[3]=Xe,ee[4]=Ye,ee[5]=ze,ee[6]=qt,ee[7]=bt,ee[8]=Ot,ee[9]=Lt,ee[10]=ht,ee[11]=It,ee[12]=Ht,ee[13]=Bt,ee[14]=jt,ee[15]=xt}function q(ee,oe){N(ee,oe,oe)}function re(ee,oe){var fe=n(),J;for(J=0;J<16;J++)fe[J]=oe[J];for(J=253;J>=0;J--)q(fe,fe),J!==2&&J!==4&&N(fe,fe,oe);for(J=0;J<16;J++)ee[J]=fe[J]}function ce(ee,oe){var fe=n(),J;for(J=0;J<16;J++)fe[J]=oe[J];for(J=250;J>=0;J--)q(fe,fe),J!==1&&N(fe,fe,oe);for(J=0;J<16;J++)ee[J]=fe[J]}function he(ee,oe,fe){var J=new Uint8Array(32),de=new Float64Array(80),De,Re,Le=n(),Xe=n(),Ye=n(),ze=n(),qt=n(),bt=n();for(Re=0;Re<31;Re++)J[Re]=oe[Re];for(J[31]=oe[31]&127|64,J[0]&=248,v(de,fe),Re=0;Re<16;Re++)Xe[Re]=de[Re],ze[Re]=Le[Re]=Ye[Re]=0;for(Le[0]=ze[0]=1,Re=254;Re>=0;--Re)De=J[Re>>>3]>>>(Re&7)&1,C(Le,Xe,De),C(Ye,ze,De),k(qt,Le,Ye),ne(Le,Le,Ye),k(Ye,Xe,ze),ne(Xe,Xe,ze),q(ze,qt),q(bt,Le),N(Le,Ye,Le),N(Ye,Xe,qt),k(qt,Le,Ye),ne(Le,Le,Ye),q(Xe,Le),ne(Ye,ze,bt),N(Le,Ye,l),k(Le,Le,ze),N(Ye,Ye,Le),N(Le,ze,bt),N(ze,Xe,de),q(Xe,qt),C(Le,Xe,De),C(Ye,ze,De);for(Re=0;Re<16;Re++)de[Re+16]=Le[Re],de[Re+32]=Ye[Re],de[Re+48]=Xe[Re],de[Re+64]=ze[Re];var Ot=de.subarray(32),Lt=de.subarray(16);return re(Ot,Ot),N(Lt,Lt,Ot),I(ee,Lt),0}function _e(ee,oe){return he(ee,oe,a)}function H(ee,oe){return r(oe,32),_e(ee,oe)}function L(ee,oe,fe){var J=new Uint8Array(32);return he(J,fe,oe),j(ee,i,J,U)}var Y=u,K=h;function te(ee,oe,fe,J,de,De){var Re=new Uint8Array(32);return L(Re,de,De),Y(ee,oe,fe,J,Re)}function ye(ee,oe,fe,J,de,De){var Re=new Uint8Array(32);return L(Re,de,De),K(ee,oe,fe,J,Re)}var pe=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function ae(ee,oe,fe,J){for(var de=new Int32Array(16),De=new Int32Array(16),Re,Le,Xe,Ye,ze,qt,bt,Ot,Lt,ht,It,Ht,Bt,jt,xt,kt,Tt,Ct,$t,Et,qe,Ge,at,Qe,lt,gt,Wt=ee[0],fn=ee[1],dn=ee[2],ln=ee[3],Ie=ee[4],bn=ee[5],Cn=ee[6],Rn=ee[7],pn=oe[0],$n=oe[1],_n=oe[2],dr=oe[3],Fn=oe[4],Xn=oe[5],pr=oe[6],hr=oe[7],Fr=0;J>=128;){for($t=0;$t<16;$t++)Et=8*$t+Fr,de[$t]=fe[Et+0]<<24|fe[Et+1]<<16|fe[Et+2]<<8|fe[Et+3],De[$t]=fe[Et+4]<<24|fe[Et+5]<<16|fe[Et+6]<<8|fe[Et+7];for($t=0;$t<80;$t++)if(Re=Wt,Le=fn,Xe=dn,Ye=ln,ze=Ie,qt=bn,bt=Cn,Ot=Rn,Lt=pn,ht=$n,It=_n,Ht=dr,Bt=Fn,jt=Xn,xt=pr,kt=hr,qe=Rn,Ge=hr,at=Ge&65535,Qe=Ge>>>16,lt=qe&65535,gt=qe>>>16,qe=(Ie>>>14|Fn<<18)^(Ie>>>18|Fn<<14)^(Fn>>>9|Ie<<23),Ge=(Fn>>>14|Ie<<18)^(Fn>>>18|Ie<<14)^(Ie>>>9|Fn<<23),at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,qe=Ie&bn^~Ie&Cn,Ge=Fn&Xn^~Fn&pr,at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,qe=pe[$t*2],Ge=pe[$t*2+1],at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,qe=de[$t%16],Ge=De[$t%16],at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,Tt=lt&65535|gt<<16,Ct=at&65535|Qe<<16,qe=Tt,Ge=Ct,at=Ge&65535,Qe=Ge>>>16,lt=qe&65535,gt=qe>>>16,qe=(Wt>>>28|pn<<4)^(pn>>>2|Wt<<30)^(pn>>>7|Wt<<25),Ge=(pn>>>28|Wt<<4)^(Wt>>>2|pn<<30)^(Wt>>>7|pn<<25),at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,qe=Wt&fn^Wt&dn^fn&dn,Ge=pn&$n^pn&_n^$n&_n,at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,Ot=lt&65535|gt<<16,kt=at&65535|Qe<<16,qe=Ye,Ge=Ht,at=Ge&65535,Qe=Ge>>>16,lt=qe&65535,gt=qe>>>16,qe=Tt,Ge=Ct,at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,Ye=lt&65535|gt<<16,Ht=at&65535|Qe<<16,fn=Re,dn=Le,ln=Xe,Ie=Ye,bn=ze,Cn=qt,Rn=bt,Wt=Ot,$n=Lt,_n=ht,dr=It,Fn=Ht,Xn=Bt,pr=jt,hr=xt,pn=kt,$t%16===15)for(Et=0;Et<16;Et++)qe=de[Et],Ge=De[Et],at=Ge&65535,Qe=Ge>>>16,lt=qe&65535,gt=qe>>>16,qe=de[(Et+9)%16],Ge=De[(Et+9)%16],at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,Tt=de[(Et+1)%16],Ct=De[(Et+1)%16],qe=(Tt>>>1|Ct<<31)^(Tt>>>8|Ct<<24)^Tt>>>7,Ge=(Ct>>>1|Tt<<31)^(Ct>>>8|Tt<<24)^(Ct>>>7|Tt<<25),at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,Tt=de[(Et+14)%16],Ct=De[(Et+14)%16],qe=(Tt>>>19|Ct<<13)^(Ct>>>29|Tt<<3)^Tt>>>6,Ge=(Ct>>>19|Tt<<13)^(Tt>>>29|Ct<<3)^(Ct>>>6|Tt<<26),at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,de[Et]=lt&65535|gt<<16,De[Et]=at&65535|Qe<<16;qe=Wt,Ge=pn,at=Ge&65535,Qe=Ge>>>16,lt=qe&65535,gt=qe>>>16,qe=ee[0],Ge=oe[0],at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[0]=Wt=lt&65535|gt<<16,oe[0]=pn=at&65535|Qe<<16,qe=fn,Ge=$n,at=Ge&65535,Qe=Ge>>>16,lt=qe&65535,gt=qe>>>16,qe=ee[1],Ge=oe[1],at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[1]=fn=lt&65535|gt<<16,oe[1]=$n=at&65535|Qe<<16,qe=dn,Ge=_n,at=Ge&65535,Qe=Ge>>>16,lt=qe&65535,gt=qe>>>16,qe=ee[2],Ge=oe[2],at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[2]=dn=lt&65535|gt<<16,oe[2]=_n=at&65535|Qe<<16,qe=ln,Ge=dr,at=Ge&65535,Qe=Ge>>>16,lt=qe&65535,gt=qe>>>16,qe=ee[3],Ge=oe[3],at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[3]=ln=lt&65535|gt<<16,oe[3]=dr=at&65535|Qe<<16,qe=Ie,Ge=Fn,at=Ge&65535,Qe=Ge>>>16,lt=qe&65535,gt=qe>>>16,qe=ee[4],Ge=oe[4],at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[4]=Ie=lt&65535|gt<<16,oe[4]=Fn=at&65535|Qe<<16,qe=bn,Ge=Xn,at=Ge&65535,Qe=Ge>>>16,lt=qe&65535,gt=qe>>>16,qe=ee[5],Ge=oe[5],at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[5]=bn=lt&65535|gt<<16,oe[5]=Xn=at&65535|Qe<<16,qe=Cn,Ge=pr,at=Ge&65535,Qe=Ge>>>16,lt=qe&65535,gt=qe>>>16,qe=ee[6],Ge=oe[6],at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[6]=Cn=lt&65535|gt<<16,oe[6]=pr=at&65535|Qe<<16,qe=Rn,Ge=hr,at=Ge&65535,Qe=Ge>>>16,lt=qe&65535,gt=qe>>>16,qe=ee[7],Ge=oe[7],at+=Ge&65535,Qe+=Ge>>>16,lt+=qe&65535,gt+=qe>>>16,Qe+=at>>>16,lt+=Qe>>>16,gt+=lt>>>16,ee[7]=Rn=lt&65535|gt<<16,oe[7]=hr=at&65535|Qe<<16,Fr+=128,J-=128}return J}function me(ee,oe,fe){var J=new Int32Array(8),de=new Int32Array(8),De=new Uint8Array(256),Re,Le=fe;for(J[0]=1779033703,J[1]=3144134277,J[2]=1013904242,J[3]=2773480762,J[4]=1359893119,J[5]=2600822924,J[6]=528734635,J[7]=1541459225,de[0]=4089235720,de[1]=2227873595,de[2]=4271175723,de[3]=1595750129,de[4]=2917565137,de[5]=725511199,de[6]=4215389547,de[7]=327033209,ae(J,de,oe,fe),fe%=128,Re=0;Re<fe;Re++)De[Re]=oe[Le-fe+Re];for(De[fe]=128,fe=256-128*(fe<112?1:0),De[fe-9]=0,y(De,fe-8,Le/536870912|0,Le<<3),ae(J,de,De,fe),Re=0;Re<8;Re++)y(ee,8*Re,J[Re],de[Re]);return 0}function we(ee,oe){var fe=n(),J=n(),de=n(),De=n(),Re=n(),Le=n(),Xe=n(),Ye=n(),ze=n();ne(fe,ee[1],ee[0]),ne(ze,oe[1],oe[0]),N(fe,fe,ze),k(J,ee[0],ee[1]),k(ze,oe[0],oe[1]),N(J,J,ze),N(de,ee[3],oe[3]),N(de,de,c),N(De,ee[2],oe[2]),k(De,De,De),ne(Re,J,fe),ne(Le,De,de),k(Xe,De,de),k(Ye,J,fe),N(ee[0],Re,Le),N(ee[1],Ye,Xe),N(ee[2],Xe,Le),N(ee[3],Re,Ye)}function be(ee,oe,fe){var J;for(J=0;J<4;J++)C(ee[J],oe[J],fe)}function Ne(ee,oe){var fe=n(),J=n(),de=n();re(de,oe[2]),N(fe,oe[0],de),N(J,oe[1],de),I(ee,J),ee[31]^=_(fe)<<7}function Ve(ee,oe,fe){var J,de;for(E(ee[0],o),E(ee[1],s),E(ee[2],s),E(ee[3],o),de=255;de>=0;--de)J=fe[de/8|0]>>(de&7)&1,be(ee,oe,J),we(oe,ee),we(ee,ee),be(ee,oe,J)}function Me(ee,oe){var fe=[n(),n(),n(),n()];E(fe[0],d),E(fe[1],p),E(fe[2],s),N(fe[3],d,p),Ve(ee,fe,oe)}function He(ee,oe,fe){var J=new Uint8Array(64),de=[n(),n(),n(),n()],De;for(fe||r(oe,32),me(J,oe,32),J[0]&=248,J[31]&=127,J[31]|=64,Me(de,J),Ne(ee,de),De=0;De<32;De++)oe[De+32]=ee[De];return 0}var xe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ke(ee,oe){var fe,J,de,De;for(J=63;J>=32;--J){for(fe=0,de=J-32,De=J-12;de<De;++de)oe[de]+=fe-16*oe[J]*xe[de-(J-32)],fe=Math.floor((oe[de]+128)/256),oe[de]-=fe*256;oe[de]+=fe,oe[J]=0}for(fe=0,de=0;de<32;de++)oe[de]+=fe-(oe[31]>>4)*xe[de],fe=oe[de]>>8,oe[de]&=255;for(de=0;de<32;de++)oe[de]-=fe*xe[de];for(J=0;J<32;J++)oe[J+1]+=oe[J]>>8,ee[J]=oe[J]&255}function Je(ee){var oe=new Float64Array(64),fe;for(fe=0;fe<64;fe++)oe[fe]=ee[fe];for(fe=0;fe<64;fe++)ee[fe]=0;ke(ee,oe)}function Oe(ee,oe,fe,J){var de=new Uint8Array(64),De=new Uint8Array(64),Re=new Uint8Array(64),Le,Xe,Ye=new Float64Array(64),ze=[n(),n(),n(),n()];me(de,J,32),de[0]&=248,de[31]&=127,de[31]|=64;var qt=fe+64;for(Le=0;Le<fe;Le++)ee[64+Le]=oe[Le];for(Le=0;Le<32;Le++)ee[32+Le]=de[32+Le];for(me(Re,ee.subarray(32),fe+32),Je(Re),Me(ze,Re),Ne(ee,ze),Le=32;Le<64;Le++)ee[Le]=J[Le];for(me(De,ee,fe+64),Je(De),Le=0;Le<64;Le++)Ye[Le]=0;for(Le=0;Le<32;Le++)Ye[Le]=Re[Le];for(Le=0;Le<32;Le++)for(Xe=0;Xe<32;Xe++)Ye[Le+Xe]+=De[Le]*de[Xe];return ke(ee.subarray(32),Ye),qt}function W(ee,oe){var fe=n(),J=n(),de=n(),De=n(),Re=n(),Le=n(),Xe=n();return E(ee[2],s),v(ee[1],oe),q(de,ee[1]),N(De,de,f),ne(de,de,ee[2]),k(De,ee[2],De),q(Re,De),q(Le,Re),N(Xe,Le,Re),N(fe,Xe,de),N(fe,fe,De),ce(fe,fe),N(fe,fe,de),N(fe,fe,De),N(fe,fe,De),N(ee[0],fe,De),q(J,ee[0]),N(J,J,De),x(J,de)&&N(ee[0],ee[0],g),q(J,ee[0]),N(J,J,De),x(J,de)?-1:(_(ee[0])===oe[31]>>7&&ne(ee[0],o,ee[0]),N(ee[3],ee[0],ee[1]),0)}function B(ee,oe,fe,J){var de,De=new Uint8Array(32),Re=new Uint8Array(64),Le=[n(),n(),n(),n()],Xe=[n(),n(),n(),n()];if(fe<64||W(Xe,J))return-1;for(de=0;de<fe;de++)ee[de]=oe[de];for(de=0;de<32;de++)ee[de+32]=J[de];if(me(Re,ee,fe),Je(Re),Ve(Le,Xe,Re),Me(Xe,oe.subarray(32)),we(Le,Xe),Ne(De,Le),fe-=64,A(oe,0,De,0)){for(de=0;de<fe;de++)ee[de]=0;return-1}for(de=0;de<fe;de++)ee[de]=oe[de+64];return fe}var F=32,se=24,Te=32,Ae=16,Se=32,We=32,Be=32,je=32,ft=32,Ze=se,rt=Te,Pt=Ae,mt=64,ot=32,Kt=64,St=32,st=64;t.lowlevel={crypto_core_hsalsa20:j,crypto_stream_xor:le,crypto_stream:ie,crypto_stream_salsa20_xor:V,crypto_stream_salsa20:X,crypto_onetimeauth:P,crypto_onetimeauth_verify:T,crypto_verify_16:R,crypto_verify_32:A,crypto_secretbox:u,crypto_secretbox_open:h,crypto_scalarmult:he,crypto_scalarmult_base:_e,crypto_box_beforenm:L,crypto_box_afternm:Y,crypto_box:te,crypto_box_open:ye,crypto_box_keypair:H,crypto_hash:me,crypto_sign:Oe,crypto_sign_keypair:He,crypto_sign_open:B,crypto_secretbox_KEYBYTES:F,crypto_secretbox_NONCEBYTES:se,crypto_secretbox_ZEROBYTES:Te,crypto_secretbox_BOXZEROBYTES:Ae,crypto_scalarmult_BYTES:Se,crypto_scalarmult_SCALARBYTES:We,crypto_box_PUBLICKEYBYTES:Be,crypto_box_SECRETKEYBYTES:je,crypto_box_BEFORENMBYTES:ft,crypto_box_NONCEBYTES:Ze,crypto_box_ZEROBYTES:rt,crypto_box_BOXZEROBYTES:Pt,crypto_sign_BYTES:mt,crypto_sign_PUBLICKEYBYTES:ot,crypto_sign_SECRETKEYBYTES:Kt,crypto_sign_SEEDBYTES:St,crypto_hash_BYTES:st,gf:n,D:f,L:xe,pack25519:I,unpack25519:v,M:N,A:k,S:q,Z:ne,pow2523:ce,add:we,set25519:E,modL:ke,scalarmult:Ve,scalarbase:Me};function tn(ee,oe){if(ee.length!==F)throw new Error("bad key size");if(oe.length!==se)throw new Error("bad nonce size")}function At(ee,oe){if(ee.length!==Be)throw new Error("bad public key size");if(oe.length!==je)throw new Error("bad secret key size")}function nt(){for(var ee=0;ee<arguments.length;ee++)if(!(arguments[ee]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function an(ee){for(var oe=0;oe<ee.length;oe++)ee[oe]=0}t.randomBytes=function(ee){var oe=new Uint8Array(ee);return r(oe,ee),oe},t.secretbox=function(ee,oe,fe){nt(ee,oe,fe),tn(fe,oe);for(var J=new Uint8Array(Te+ee.length),de=new Uint8Array(J.length),De=0;De<ee.length;De++)J[De+Te]=ee[De];return u(de,J,J.length,oe,fe),de.subarray(Ae)},t.secretbox.open=function(ee,oe,fe){nt(ee,oe,fe),tn(fe,oe);for(var J=new Uint8Array(Ae+ee.length),de=new Uint8Array(J.length),De=0;De<ee.length;De++)J[De+Ae]=ee[De];return J.length<32||h(de,J,J.length,oe,fe)!==0?null:de.subarray(Te)},t.secretbox.keyLength=F,t.secretbox.nonceLength=se,t.secretbox.overheadLength=Ae,t.scalarMult=function(ee,oe){if(nt(ee,oe),ee.length!==We)throw new Error("bad n size");if(oe.length!==Se)throw new Error("bad p size");var fe=new Uint8Array(Se);return he(fe,ee,oe),fe},t.scalarMult.base=function(ee){if(nt(ee),ee.length!==We)throw new Error("bad n size");var oe=new Uint8Array(Se);return _e(oe,ee),oe},t.scalarMult.scalarLength=We,t.scalarMult.groupElementLength=Se,t.box=function(ee,oe,fe,J){var de=t.box.before(fe,J);return t.secretbox(ee,oe,de)},t.box.before=function(ee,oe){nt(ee,oe),At(ee,oe);var fe=new Uint8Array(ft);return L(fe,ee,oe),fe},t.box.after=t.secretbox,t.box.open=function(ee,oe,fe,J){var de=t.box.before(fe,J);return t.secretbox.open(ee,oe,de)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var ee=new Uint8Array(Be),oe=new Uint8Array(je);return H(ee,oe),{publicKey:ee,secretKey:oe}},t.box.keyPair.fromSecretKey=function(ee){if(nt(ee),ee.length!==je)throw new Error("bad secret key size");var oe=new Uint8Array(Be);return _e(oe,ee),{publicKey:oe,secretKey:new Uint8Array(ee)}},t.box.publicKeyLength=Be,t.box.secretKeyLength=je,t.box.sharedKeyLength=ft,t.box.nonceLength=Ze,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(ee,oe){if(nt(ee,oe),oe.length!==Kt)throw new Error("bad secret key size");var fe=new Uint8Array(mt+ee.length);return Oe(fe,ee,ee.length,oe),fe},t.sign.open=function(ee,oe){if(nt(ee,oe),oe.length!==ot)throw new Error("bad public key size");var fe=new Uint8Array(ee.length),J=B(fe,ee,ee.length,oe);if(J<0)return null;for(var de=new Uint8Array(J),De=0;De<de.length;De++)de[De]=fe[De];return de},t.sign.detached=function(ee,oe){for(var fe=t.sign(ee,oe),J=new Uint8Array(mt),de=0;de<J.length;de++)J[de]=fe[de];return J},t.sign.detached.verify=function(ee,oe,fe){if(nt(ee,oe,fe),oe.length!==mt)throw new Error("bad signature size");if(fe.length!==ot)throw new Error("bad public key size");var J=new Uint8Array(mt+ee.length),de=new Uint8Array(mt+ee.length),De;for(De=0;De<mt;De++)J[De]=oe[De];for(De=0;De<ee.length;De++)J[De+mt]=ee[De];return B(de,J,J.length,fe)>=0},t.sign.keyPair=function(){var ee=new Uint8Array(ot),oe=new Uint8Array(Kt);return He(ee,oe),{publicKey:ee,secretKey:oe}},t.sign.keyPair.fromSecretKey=function(ee){if(nt(ee),ee.length!==Kt)throw new Error("bad secret key size");for(var oe=new Uint8Array(ot),fe=0;fe<oe.length;fe++)oe[fe]=ee[32+fe];return{publicKey:oe,secretKey:new Uint8Array(ee)}},t.sign.keyPair.fromSeed=function(ee){if(nt(ee),ee.length!==St)throw new Error("bad seed size");for(var oe=new Uint8Array(ot),fe=new Uint8Array(Kt),J=0;J<32;J++)fe[J]=ee[J];return He(oe,fe,!0),{publicKey:oe,secretKey:fe}},t.sign.publicKeyLength=ot,t.sign.secretKeyLength=Kt,t.sign.seedLength=St,t.sign.signatureLength=mt,t.hash=function(ee){nt(ee);var oe=new Uint8Array(st);return me(oe,ee,ee.length),oe},t.hash.hashLength=st,t.verify=function(ee,oe){return nt(ee,oe),ee.length===0||oe.length===0||ee.length!==oe.length?!1:b(ee,0,oe,0,ee.length)===0},t.setPRNG=function(ee){r=ee},function(){var ee=typeof self<"u"?self.crypto||self.msCrypto:null;if(ee&&ee.getRandomValues){var oe=65536;t.setPRNG(function(fe,J){var de,De=new Uint8Array(J);for(de=0;de<J;de+=oe)ee.getRandomValues(De.subarray(de,de+Math.min(J-de,oe)));for(de=0;de<J;de++)fe[de]=De[de];an(De)})}else typeof U6<"u"&&(ee=_Z(),ee&&ee.randomBytes&&t.setPRNG(function(fe,J){var de,De=ee.randomBytes(J);for(de=0;de<J;de++)fe[de]=De[de];an(De)}))}()})(e.exports?e.exports:self.nacl=self.nacl||{})})(VK);var xZ=VK.exports;const Cl=Ut(xZ),Aje=Cl.box.publicKeyLength+Cl.box.overheadLength,wje="Input must be an string, Buffer or Uint8Array";function Sje(e){let t;if(e instanceof Uint8Array)t=e;else if(typeof e=="string")t=new TextEncoder().encode(e);else throw new Error(wje);return t}function _je(e){return Array.prototype.map.call(e,function(t){return(t<16?"0":"")+t.toString(16)}).join("")}function ky(e){return(4294967296+e).toString(16).substring(1)}function xje(e,t,n){let r=`
|
|
435
435
|
`+e+" = ";for(let i=0;i<t.length;i+=2){if(n===32)r+=ky(t[i]).toUpperCase(),r+=" ",r+=ky(t[i+1]).toUpperCase();else if(n===64)r+=ky(t[i+1]).toUpperCase(),r+=ky(t[i]).toUpperCase();else throw new Error("Invalid size "+n);i%6===4?r+=`
|
|
436
436
|
`+new Array(e.length+4).join(" "):i<t.length-2&&(r+=" ")}console.log(r)}function Cje(e,t,n){let r=new Date().getTime();const i=new Uint8Array(t);for(let o=0;o<t;o++)i[o]=o%256;const a=new Date().getTime();console.log("Generated random input in "+(a-r)+"ms"),r=a;for(let o=0;o<n;o++){const s=e(i),l=new Date().getTime(),f=l-r;r=l,console.log("Hashed in "+f+"ms: "+s.substring(0,20)+"..."),console.log(Math.round(t/(1<<20)/(f/1e3)*100)/100+" MB PER SECOND")}}var Rje={normalizeInput:Sje,toHex:_je,debugPrint:xje,testSpeed:Cje};const Vv=Rje;function Dy(e,t,n){const r=e[t]+e[n];let i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function XN(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let a=e[t+1]+r;i>=4294967296&&a++,e[t]=i,e[t+1]=a}function CZ(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function uu(e,t,n,r,i,a){const o=E0[i],s=E0[i+1],l=E0[a],f=E0[a+1];Dy(yn,e,t),XN(yn,e,o,s);let c=yn[r]^yn[e],d=yn[r+1]^yn[e+1];yn[r]=d,yn[r+1]=c,Dy(yn,n,r),c=yn[t]^yn[n],d=yn[t+1]^yn[n+1],yn[t]=c>>>24^d<<8,yn[t+1]=d>>>24^c<<8,Dy(yn,e,t),XN(yn,e,l,f),c=yn[r]^yn[e],d=yn[r+1]^yn[e+1],yn[r]=c>>>16^d<<16,yn[r+1]=d>>>16^c<<16,Dy(yn,n,r),c=yn[t]^yn[n],d=yn[t+1]^yn[n+1],yn[t]=d>>>31^c<<1,yn[t+1]=c>>>31^d<<1}const RZ=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),$je=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],Fi=new Uint8Array($je.map(function(e){return e*2})),yn=new Uint32Array(32),E0=new Uint32Array(32);function $Z(e,t){let n=0;for(n=0;n<16;n++)yn[n]=e.h[n],yn[n+16]=RZ[n];for(yn[24]=yn[24]^e.t,yn[25]=yn[25]^e.t/4294967296,t&&(yn[28]=~yn[28],yn[29]=~yn[29]),n=0;n<32;n++)E0[n]=CZ(e.b,4*n);for(n=0;n<12;n++)uu(0,8,16,24,Fi[n*16+0],Fi[n*16+1]),uu(2,10,18,26,Fi[n*16+2],Fi[n*16+3]),uu(4,12,20,28,Fi[n*16+4],Fi[n*16+5]),uu(6,14,22,30,Fi[n*16+6],Fi[n*16+7]),uu(0,10,20,30,Fi[n*16+8],Fi[n*16+9]),uu(2,12,22,24,Fi[n*16+10],Fi[n*16+11]),uu(4,14,16,26,Fi[n*16+12],Fi[n*16+13]),uu(6,8,18,28,Fi[n*16+14],Fi[n*16+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^yn[n]^yn[n+16]}const cu=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function IZ(e,t,n,r){if(e===0||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&n.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(r&&r.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};cu.fill(0),cu[0]=e,t&&(cu[1]=t.length),cu[2]=1,cu[3]=1,n&&cu.set(n,32),r&&cu.set(r,48);for(let a=0;a<16;a++)i.h[a]=RZ[a]^CZ(cu,a*4);return t&&(nR(i,t),i.c=128),i}function nR(e,t){for(let n=0;n<t.length;n++)e.c===128&&(e.t+=e.c,$Z(e,!1),e.c=0),e.b[e.c++]=t[n]}function kZ(e){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;$Z(e,!0);const t=new Uint8Array(e.outlen);for(let n=0;n<e.outlen;n++)t[n]=e.h[n>>2]>>8*(n&3);return t}function DZ(e,t,n,r,i){n=n||64,e=Vv.normalizeInput(e),r&&(r=Vv.normalizeInput(r)),i&&(i=Vv.normalizeInput(i));const a=IZ(n,t,r,i);return nR(a,e),kZ(a)}function Ije(e,t,n,r,i){const a=DZ(e,t,n,r,i);return Vv.toHex(a)}var kje={blake2b:DZ,blake2bHex:Ije,blake2bInit:IZ,blake2bUpdate:nR,blake2bFinal:kZ};const Oy=Ut(kje);function OZ(e,t){var n=Oy.blake2bInit(Cl.box.nonceLength,null);return Oy.blake2bUpdate(n,e),Oy.blake2bUpdate(n,t),Oy.blake2bFinal(n)}function Dje(e){for(var t=0;t<e.length;t++)e[t]=0}function Oje(e,t){var n=new Uint8Array(Aje+e.length),r=Cl.box.keyPair();n.set(r.publicKey);var i=OZ(r.publicKey,t),a=Cl.box(e,i,t,r.secretKey);return n.set(a,r.publicKey.length),Dje(r.secretKey),n}function Lje(e,t,n){var r=e.subarray(0,Cl.box.publicKeyLength),i=OZ(r,t),a=e.subarray(Cl.box.publicKeyLength);return Cl.box.open(a,i,r,n)}const Pje={seal:Oje,open:Lje};var rR={exports:{}},LZ=function(t,n){return function(){for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];return t.apply(n,i)}},Mje=LZ,iR=Object.prototype.toString,aR=function(e){return function(t){var n=iR.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function wf(e){return e=e.toLowerCase(),function(n){return aR(n)===e}}function oR(e){return Array.isArray(e)}function s2(e){return typeof e>"u"}function Bje(e){return e!==null&&!s2(e)&&e.constructor!==null&&!s2(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var PZ=wf("ArrayBuffer");function Nje(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&PZ(e.buffer),t}function Fje(e){return typeof e=="string"}function Uje(e){return typeof e=="number"}function MZ(e){return e!==null&&typeof e=="object"}function qv(e){if(aR(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var Hje=wf("Date"),jje=wf("File"),Jje=wf("Blob"),Vje=wf("FileList");function sR(e){return iR.call(e)==="[object Function]"}function qje(e){return MZ(e)&&sR(e.pipe)}function Gje(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||iR.call(e)===t||sR(e.toString)&&e.toString()===t)}var Wje=wf("URLSearchParams");function zje(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Kje(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function lR(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),oR(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function ax(){var e={};function t(i,a){qv(e[a])&&qv(i)?e[a]=ax(e[a],i):qv(i)?e[a]=ax({},i):oR(i)?e[a]=i.slice():e[a]=i}for(var n=0,r=arguments.length;n<r;n++)lR(arguments[n],t);return e}function Yje(e,t,n){return lR(t,function(i,a){n&&typeof i=="function"?e[a]=Mje(i,n):e[a]=i}),e}function Zje(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function Xje(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)}function Qje(e,t,n){var r,i,a,o={};t=t||{};do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)a=r[i],o[a]||(t[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function eJe(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function tJe(e){if(!e)return null;var t=e.length;if(s2(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var nJe=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),Li={isArray:oR,isArrayBuffer:PZ,isBuffer:Bje,isFormData:Gje,isArrayBufferView:Nje,isString:Fje,isNumber:Uje,isObject:MZ,isPlainObject:qv,isUndefined:s2,isDate:Hje,isFile:jje,isBlob:Jje,isFunction:sR,isStream:qje,isURLSearchParams:Wje,isStandardBrowserEnv:Kje,forEach:lR,merge:ax,extend:Yje,trim:zje,stripBOM:Zje,inherits:Xje,toFlatObject:Qje,kindOf:aR,kindOfTest:wf,endsWith:eJe,toArray:tJe,isTypedArray:nJe,isFileList:Vje},id=Li;function QN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var BZ=function(t,n,r){if(!n)return t;var i;if(r)i=r(n);else if(id.isURLSearchParams(n))i=n.toString();else{var a=[];id.forEach(n,function(l,f){l===null||typeof l>"u"||(id.isArray(l)?f=f+"[]":l=[l],id.forEach(l,function(d){id.isDate(d)?d=d.toISOString():id.isObject(d)&&(d=JSON.stringify(d)),a.push(QN(f)+"="+QN(d))}))}),i=a.join("&")}if(i){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},rJe=Li;function qE(){this.handlers=[]}qE.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};qE.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};qE.prototype.forEach=function(t){rJe.forEach(this.handlers,function(r){r!==null&&t(r)})};var iJe=qE,aJe=Li,oJe=function(t,n){aJe.forEach(t,function(i,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(t[n]=i,delete t[a])})},NZ=Li;function Rp(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}NZ.inherits(Rp,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var FZ=Rp.prototype,UZ={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){UZ[e]={value:e}});Object.defineProperties(Rp,UZ);Object.defineProperty(FZ,"isAxiosError",{value:!0});Rp.from=function(e,t,n,r,i,a){var o=Object.create(FZ);return NZ.toFlatObject(e,o,function(l){return l!==Error.prototype}),Rp.call(o,e.message,t,n,r,i),o.name=e.name,a&&Object.assign(o,a),o};var fh=Rp,HZ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jo=Li;function sJe(e,t){t=t||new FormData;var n=[];function r(a){return a===null?"":Jo.isDate(a)?a.toISOString():Jo.isArrayBuffer(a)||Jo.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Ft.from(a):a}function i(a,o){if(Jo.isPlainObject(a)||Jo.isArray(a)){if(n.indexOf(a)!==-1)throw Error("Circular reference detected in "+o);n.push(a),Jo.forEach(a,function(l,f){if(!Jo.isUndefined(l)){var c=o?o+"."+f:f,d;if(l&&!o&&typeof l=="object"){if(Jo.endsWith(f,"{}"))l=JSON.stringify(l);else if(Jo.endsWith(f,"[]")&&(d=Jo.toArray(l))){d.forEach(function(p){!Jo.isUndefined(p)&&t.append(c,r(p))});return}}i(l,c)}}),n.pop()}else t.append(o,r(a))}return i(e),t}var jZ=sJe,$S,eF;function lJe(){if(eF)return $S;eF=1;var e=fh;return $S=function(n,r,i){var a=i.config.validateStatus;!i.status||!a||a(i.status)?n(i):r(new e("Request failed with status code "+i.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},$S}var IS,tF;function uJe(){if(tF)return IS;tF=1;var e=Li;return IS=e.isStandardBrowserEnv()?function(){return{write:function(r,i,a,o,s,l){var f=[];f.push(r+"="+encodeURIComponent(i)),e.isNumber(a)&&f.push("expires="+new Date(a).toGMTString()),e.isString(o)&&f.push("path="+o),e.isString(s)&&f.push("domain="+s),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(r){var i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),IS}var cJe=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},fJe=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},dJe=cJe,pJe=fJe,JZ=function(t,n){return t&&!dJe(n)?pJe(t,n):n},kS,nF;function hJe(){if(nF)return kS;nF=1;var e=Li,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return kS=function(r){var i={},a,o,s;return r&&e.forEach(r.split(`
|
|
437
|
-
`),function(f){if(s=f.indexOf(":"),a=e.trim(f.substr(0,s)).toLowerCase(),o=e.trim(f.substr(s+1)),a){if(i[a]&&t.indexOf(a)>=0)return;a==="set-cookie"?i[a]=(i[a]?i[a]:[]).concat([o]):i[a]=i[a]?i[a]+", "+o:o}}),i},kS}var DS,rF;function mJe(){if(rF)return DS;rF=1;var e=Li;return DS=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function a(o){var s=o;return n&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=a(window.location.href),function(s){var l=e.isString(s)?a(s):s;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}(),DS}var OS,iF;function GE(){if(iF)return OS;iF=1;var e=fh,t=Li;function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),OS=n,OS}var LS,aF;function gJe(){return aF||(aF=1,LS=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),LS}var PS,oF;function sF(){if(oF)return PS;oF=1;var e=Li,t=lJe(),n=uJe(),r=BZ,i=JZ,a=hJe(),o=mJe(),s=HZ,l=fh,f=GE(),c=gJe();return PS=function(p){return new Promise(function(y,b){var R=p.data,A=p.headers,$=p.responseType,D;function M(){p.cancelToken&&p.cancelToken.unsubscribe(D),p.signal&&p.signal.removeEventListener("abort",D)}e.isFormData(R)&&e.isStandardBrowserEnv()&&delete A["Content-Type"];var j=new XMLHttpRequest;if(p.auth){var U=p.auth.username||"",V=p.auth.password?unescape(encodeURIComponent(p.auth.password)):"";A.Authorization="Basic "+btoa(U+":"+V)}var X=i(p.baseURL,p.url);j.open(p.method.toUpperCase(),r(X,p.params,p.paramsSerializer),!0),j.timeout=p.timeout;function ie(){if(j){var P="getAllResponseHeaders"in j?a(j.getAllResponseHeaders()):null,T=!$||$==="text"||$==="json"?j.responseText:j.response,u={data:T,status:j.status,statusText:j.statusText,headers:P,config:p,request:j};t(function(E){y(E),M()},function(E){b(E),M()},u),j=null}}if("onloadend"in j?j.onloadend=ie:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(ie)},j.onabort=function(){j&&(b(new l("Request aborted",l.ECONNABORTED,p,j)),j=null)},j.onerror=function(){b(new l("Network Error",l.ERR_NETWORK,p,j,j)),j=null},j.ontimeout=function(){var T=p.timeout?"timeout of "+p.timeout+"ms exceeded":"timeout exceeded",u=p.transitional||s;p.timeoutErrorMessage&&(T=p.timeoutErrorMessage),b(new l(T,u.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,p,j)),j=null},e.isStandardBrowserEnv()){var le=(p.withCredentials||o(X))&&p.xsrfCookieName?n.read(p.xsrfCookieName):void 0;le&&(A[p.xsrfHeaderName]=le)}"setRequestHeader"in j&&e.forEach(A,function(T,u){typeof R>"u"&&u.toLowerCase()==="content-type"?delete A[u]:j.setRequestHeader(u,T)}),e.isUndefined(p.withCredentials)||(j.withCredentials=!!p.withCredentials),$&&$!=="json"&&(j.responseType=p.responseType),typeof p.onDownloadProgress=="function"&&j.addEventListener("progress",p.onDownloadProgress),typeof p.onUploadProgress=="function"&&j.upload&&j.upload.addEventListener("progress",p.onUploadProgress),(p.cancelToken||p.signal)&&(D=function(P){j&&(b(!P||P&&P.type?new f:P),j.abort(),j=null)},p.cancelToken&&p.cancelToken.subscribe(D),p.signal&&(p.signal.aborted?D():p.signal.addEventListener("abort",D))),R||(R=null);var Q=c(X);if(Q&&["http","https","file"].indexOf(Q)===-1){b(new l("Unsupported protocol "+Q+":",l.ERR_BAD_REQUEST,p));return}j.send(R)})},PS}var MS,lF;function yJe(){return lF||(lF=1,MS=null),MS}var di=Li,uF=oJe,cF=fh,vJe=HZ,bJe=jZ,EJe={"Content-Type":"application/x-www-form-urlencoded"};function fF(e,t){!di.isUndefined(e)&&di.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function TJe(){var e;return(typeof XMLHttpRequest<"u"||typeof Xt<"u"&&Object.prototype.toString.call(Xt)==="[object process]")&&(e=sF()),e}function AJe(e,t,n){if(di.isString(e))try{return(t||JSON.parse)(e),di.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var WE={transitional:vJe,adapter:TJe(),transformRequest:[function(t,n){if(uF(n,"Accept"),uF(n,"Content-Type"),di.isFormData(t)||di.isArrayBuffer(t)||di.isBuffer(t)||di.isStream(t)||di.isFile(t)||di.isBlob(t))return t;if(di.isArrayBufferView(t))return t.buffer;if(di.isURLSearchParams(t))return fF(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=di.isObject(t),i=n&&n["Content-Type"],a;if((a=di.isFileList(t))||r&&i==="multipart/form-data"){var o=this.env&&this.env.FormData;return bJe(a?{"files[]":t}:t,o&&new o)}else if(r||i==="application/json")return fF(n,"application/json"),AJe(t);return t}],transformResponse:[function(t){var n=this.transitional||WE.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,a=!r&&this.responseType==="json";if(a||i&&di.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?cF.from(o,cF.ERR_BAD_RESPONSE,this,null,this.response):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yJe()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};di.forEach(["delete","get","head"],function(t){WE.headers[t]={}});di.forEach(["post","put","patch"],function(t){WE.headers[t]=di.merge(EJe)});var uR=WE,wJe=Li,SJe=uR,_Je=function(t,n,r){var i=this||SJe;return wJe.forEach(r,function(o){t=o.call(i,t,n)}),t},BS,dF;function VZ(){return dF||(dF=1,BS=function(t){return!!(t&&t.__CANCEL__)}),BS}var pF=Li,NS=_Je,xJe=VZ(),CJe=uR,RJe=GE();function FS(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new RJe}var $Je=function(t){FS(t),t.headers=t.headers||{},t.data=NS.call(t,t.data,t.headers,t.transformRequest),t.headers=pF.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),pF.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||CJe.adapter;return n(t).then(function(i){return FS(t),i.data=NS.call(t,i.data,i.headers,t.transformResponse),i},function(i){return xJe(i)||(FS(t),i&&i.response&&(i.response.data=NS.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},ka=Li,qZ=function(t,n){n=n||{};var r={};function i(c,d){return ka.isPlainObject(c)&&ka.isPlainObject(d)?ka.merge(c,d):ka.isPlainObject(d)?ka.merge({},d):ka.isArray(d)?d.slice():d}function a(c){if(ka.isUndefined(n[c])){if(!ka.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],n[c])}function o(c){if(!ka.isUndefined(n[c]))return i(void 0,n[c])}function s(c){if(ka.isUndefined(n[c])){if(!ka.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,n[c])}function l(c){if(c in n)return i(t[c],n[c]);if(c in t)return i(void 0,t[c])}var f={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return ka.forEach(Object.keys(t).concat(Object.keys(n)),function(d){var p=f[d]||a,g=p(d);ka.isUndefined(g)&&p!==l||(r[d]=g)}),r},US,hF;function GZ(){return hF||(hF=1,US={version:"0.27.2"}),US}var IJe=GZ().version,mu=fh,cR={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){cR[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var mF={};cR.transitional=function(t,n,r){function i(a,o){return"[Axios v"+IJe+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return function(a,o,s){if(t===!1)throw new mu(i(o," has been removed"+(n?" in "+n:"")),mu.ERR_DEPRECATED);return n&&!mF[o]&&(mF[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};function kJe(e,t,n){if(typeof e!="object")throw new mu("options must be an object",mu.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],o=t[a];if(o){var s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new mu("option "+a+" must be "+l,mu.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new mu("Unknown option "+a,mu.ERR_BAD_OPTION)}}var DJe={assertOptions:kJe,validators:cR},WZ=Li,OJe=BZ,gF=iJe,yF=$Je,zE=qZ,LJe=JZ,zZ=DJe,ad=zZ.validators;function $p(e){this.defaults=e,this.interceptors={request:new gF,response:new gF}}$p.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zE(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&zZ.assertOptions(r,{silentJSONParsing:ad.transitional(ad.boolean),forcedJSONParsing:ad.transitional(ad.boolean),clarifyTimeoutError:ad.transitional(ad.boolean)},!1);var i=[],a=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(a=a&&g.synchronous,i.unshift(g.fulfilled,g.rejected))});var o=[];this.interceptors.response.forEach(function(g){o.push(g.fulfilled,g.rejected)});var s;if(!a){var l=[yF,void 0];for(Array.prototype.unshift.apply(l,i),l=l.concat(o),s=Promise.resolve(n);l.length;)s=s.then(l.shift(),l.shift());return s}for(var f=n;i.length;){var c=i.shift(),d=i.shift();try{f=c(f)}catch(p){d(p);break}}try{s=yF(f)}catch(p){return Promise.reject(p)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};$p.prototype.getUri=function(t){t=zE(this.defaults,t);var n=LJe(t.baseURL,t.url);return OJe(n,t.params,t.paramsSerializer)};WZ.forEach(["delete","get","head","options"],function(t){$p.prototype[t]=function(n,r){return this.request(zE(r||{},{method:t,url:n,data:(r||{}).data}))}});WZ.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,s){return this.request(zE(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}$p.prototype[t]=n(),$p.prototype[t+"Form"]=n(!0)});var PJe=$p,HS,vF;function MJe(){if(vF)return HS;vF=1;var e=GE();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(o){r=o});var i=this;this.promise.then(function(a){if(i._listeners){var o,s=i._listeners.length;for(o=0;o<s;o++)i._listeners[o](a);i._listeners=null}}),this.promise.then=function(a){var o,s=new Promise(function(l){i.subscribe(l),o=l}).then(a);return s.cancel=function(){i.unsubscribe(o)},s},n(function(o){i.reason||(i.reason=new e(o),r(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},t.prototype.unsubscribe=function(r){if(this._listeners){var i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}},t.source=function(){var r,i=new t(function(o){r=o});return{token:i,cancel:r}},HS=t,HS}var jS,bF;function BJe(){return bF||(bF=1,jS=function(t){return function(r){return t.apply(null,r)}}),jS}var JS,EF;function NJe(){if(EF)return JS;EF=1;var e=Li;return JS=function(n){return e.isObject(n)&&n.isAxiosError===!0},JS}var TF=Li,FJe=LZ,Gv=PJe,UJe=qZ,HJe=uR;function KZ(e){var t=new Gv(e),n=FJe(Gv.prototype.request,t);return TF.extend(n,Gv.prototype,t),TF.extend(n,t),n.create=function(i){return KZ(UJe(e,i))},n}var Ta=KZ(HJe);Ta.Axios=Gv;Ta.CanceledError=GE();Ta.CancelToken=MJe();Ta.isCancel=VZ();Ta.VERSION=GZ().version;Ta.toFormData=jZ;Ta.AxiosError=fh;Ta.Cancel=Ta.CanceledError;Ta.all=function(t){return Promise.all(t)};Ta.spread=BJe();Ta.isAxiosError=NJe();rR.exports=Ta;rR.exports.default=Ta;var jJe=rR.exports,YZ=jJe;const ZZ=Ut(YZ),JJe="@arcblock/did-connect",VJe="2.9.36",qJe="Client side library to work with DID Connect by ArcBlock.",GJe=["react","arcblock","component"],WJe="wangshijun<wangshijun2010@gmail.com>",zJe="https://github.com/ArcBlock/ux#readme",KJe="Apache-2.0",YJe="lib/index.js",ZJe="es/index.js",XJe={type:"git",url:"git+https://github.com/ArcBlock/ux.git"},QJe={lint:"eslint src tests --ext js --ext jsx","lint:fix":"npm run lint -- --fix",build:"npm run build:lib && npm run build:es && npm run autoexports","build:lib":"babel src --out-dir lib --copy-files --no-copy-ignored","build:es":"babel --config-file ./babel.config.es.js src --out-dir es --copy-files --no-copy-ignored",autoexports:"node tools/auto-exports.js",watch:"babel src --out-dir lib -w --copy-files --no-copy-ignored",precommit:"CI=1 npm run lint",prepush:"CI=1 npm run lint",prepublish:"npm run build",test:"node tools/jest.js",coverage:"npm run test -- --coverage"},eVe={url:"https://github.com/ArcBlock/ux/issues"},tVe={".":{import:"./es/index.js",require:"./lib/index.js"},"./lib/*":{import:"./es/*.js",require:"./lib/*.js"},"./lib/Address":{import:"./es/Address/index.js",require:"./lib/Address/index.js"},"./lib/Avatar":{import:"./es/Avatar/index.js",require:"./lib/Avatar/index.js"},"./lib/Button":{import:"./es/Button/index.js",require:"./lib/Button/index.js"},"./lib/Connect":{import:"./es/Connect/index.js",require:"./lib/Connect/index.js"},"./lib/Logo":{import:"./es/Logo/index.js",require:"./lib/Logo/index.js"},"./lib/OAuth":{import:"./es/OAuth/index.js",require:"./lib/OAuth/index.js"},"./lib/Service":{import:"./es/Service/index.js",require:"./lib/Service/index.js"},"./lib/Session":{import:"./es/Session/index.js",require:"./lib/Session/index.js"},"./lib/SessionManager":{import:"./es/SessionManager/index.js",require:"./lib/SessionManager/index.js"},"./lib/Storage":{import:"./es/Storage/index.js",require:"./lib/Storage/index.js"},"./lib/User":{import:"./es/User/index.js",require:"./lib/User/index.js"},"./lib/WebWalletSWKeeper":{import:"./es/WebWalletSWKeeper/index.js",require:"./lib/WebWalletSWKeeper/index.js"}},nVe={"@arcblock/icons":"^2.9.36","@arcblock/react-hooks":"^2.9.36","@arcblock/ux":"^2.9.36","@arcblock/ws":"^1.18.90","@auth0/auth0-react":"^2.0.1","@emotion/react":"^11.10.4","@emotion/styled":"^11.10.4","@fontsource/inter":"^5.0.16","@iconify-icons/logos":"^1.2.36","@iconify-icons/material-symbols":"^1.2.58","@iconify/react":"^4.1.1","@mui/icons-material":"^5.14.8","@mui/material":"^5.14.8",ahooks:"^3.7.8",axios:"^0.27.2",buffer:"^6.0.3","core-js":"^3.25.5",dsbridge:"3.1.4",eventemitter3:"^5.0.1","js-cookie":"^2.2.1","jwt-decode":"^3.1.2",lodash:"^4.17.21","mdi-material-ui":"^7.5.0","p-wait-for":"^5.0.2","path-to-regexp":"^1.8.0",semver:"^7.5.4",tweetnacl:"^1.0.3","tweetnacl-sealedbox-js":"^1.2.0","url-join":"^4.0.1"},rVe={react:">=18.1.0"},iVe={access:"public"},aVe={"@babel/cli":"^7.19.3","@babel/core":"^7.19.3","@babel/preset-env":"^7.19.3","@babel/preset-react":"^7.18.6","eslint-plugin-react-hooks":"^4.6.0",glob:"^10.3.3",jest:"^28.1.3"},oVe="6074556a8d968c427c3a4e47d8e26deaa4639251",sVe={name:JJe,version:VJe,description:qJe,keywords:GJe,author:WJe,homepage:zJe,license:KJe,main:YJe,module:ZJe,repository:XJe,scripts:QJe,bugs:eVe,exports:tVe,dependencies:nVe,peerDependencies:rVe,publishConfig:iVe,devDependencies:aVe,gitHead:oVe},XZ=5*60,lVe=30*60,Vi="/.well-known/service",uVe="login_token",cVe="refresh_token",QZ="/.well-known/service",fR="/api/did",fVe="DID Connect",AF="__did-connect__",dVe="wallet_url",eX=()=>{var e,t;return window.localStorage.getItem(dVe)||((e=window.env)==null?void 0:e.webWalletUrl)||((t=window.blocklet)==null?void 0:t.webWalletUrl)||"https://web.abtwallet.io/"},tX=e=>{const{protocol:t}=window.location;let n="";try{n=new URL(e).protocol}catch{n=""}return t===n},{version:pVe}=sVe;function nX(e){return(e+"===".slice((e.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function hVe(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const mVe=e=>window.atob(nX(e)),gVe=e=>{const t=new URL(e),n=decodeURIComponent(t.searchParams.get("url"));return new URL(n).searchParams.get("_t_")},F1=(e,t)=>{var r,i,a;let n=t==null?void 0:t.publisher;if(!n){if(e!=null&&e.agentDid)return e.agentDid;n=e==null?void 0:e.publisher}return n?n.replace("did:abt:",""):((r=globalThis.blocklet)==null?void 0:r.appPid)||((i=globalThis.blocklet)==null?void 0:i.appId)||((a=globalThis.env)==null?void 0:a.appId)||""},rX=e=>{var n;const t={connected_did:e.did||"",connected_pk:e.pk||"",connected_app:F1(e.appInfo,e.memberAppInfo)};return(n=e==null?void 0:e.connectedWallet)!=null&&n.os&&(t.connected_wallet_os=e.connectedWallet.os),t},l2=(e,t=!1)=>{if(!e)return;t||(e=rX(e));const n=nf({expireInDays:7,returnDomain:!1});ua(e.connected_did)||Br.set("connected_did",e.connected_did,n),ua(e.connected_pk)||Br.set("connected_pk",e.connected_pk,n),ua(e.connected_app)||Br.set("connected_app",e.connected_app,n),e.connected_wallet_os&&Br.set("connected_wallet_os",e.connected_wallet_os,n)},Ly=e=>hVe(Ap.from(e).toString("base64")),wF=e=>Uint8Array.from(Ap.from(nX(e),"base64")),iX=(e,t,n)=>{const r=Pje.open(Uint8Array.from(Ap.from(e,"base64")),wF(t),wF(n));return JSON.parse(Ap.from(r).toString("utf8"))},yVe=(e,t="_t_")=>{const n=new URL(e),r={baseUrl:n.origin,prefix:n.pathname.replace(/\/auth$/,""),token:n.searchParams.get(t)||""};if(!r.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!r.token)throw new Error("Invalid next workflow: token not found");return r},aX=(e,t)=>{var r;let n=e.message;return e.response&&(n=((r=e.response)==null?void 0:r.data)||t),n},Wl=(e={},{lazy:t=!1,lazyTime:n=300}={})=>{const r=ZZ.create({...e,headers:{...e.headers,"x-did-connect-version":pVe}});if(t){async function i(a){a.metaData.endTime=new Date;const{startTime:o,endTime:s}=a.metaData,l=s-o;l<n&&await Um(n-l),delete a.metaData}r.interceptors.request.use(a=>(a.metaData={startTime:new Date},a),a=>Promise.reject(a)),r.interceptors.response.use(async a=>(await i(a.config),a),async a=>(await i(a.response.config),Promise.reject(a)))}return r},Um=(e=0)=>new Promise(t=>{setTimeout(()=>{t()},e)});function oX(){if(typeof window>"u")return null;const e=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[e]||"en"}function SF(){const e=window.location.href;try{const t=new URL(e),n=t.searchParams.get(AF);if(n)return t.searchParams.delete(AF),{params:JSON.parse(Ap.from(n,"base64").toString("utf-8")),url:t.href}}catch{console.warn("Failed to decode did-connect url params")}return{params:null,url:e}}function sX({callback:e}){return z.useEffect(()=>(window.addEventListener("focus",e),()=>{window.removeEventListener("focus",e)}),[]),null}sX.propTypes={callback:ge.func.isRequired};var dR={};Object.defineProperty(dR,"__esModule",{value:!0});var lX=dR.default=void 0;vVe(z);var _F=G;function vVe(e){return e&&e.__esModule?e:{default:e}}function xF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function CF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xF(Object(n),!0).forEach(function(r){bVe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bVe(e,t,n){return t=EVe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EVe(e){var t=TVe(e,"string");return typeof t=="symbol"?t:String(t)}function TVe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pR=function(t){return(0,_F.jsx)("svg",CF(CF({},t),{},{children:(0,_F.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.361 2.4a.8.8 0 0 0-.728.469L.873 15.54a.8.8 0 0 0-.072.33V27.393a.8.8 0 0 0 .8.8h28.8a.8.8 0 0 0 .8-.8v-11.52a.8.8 0 0 0-.072-.331L25.37 2.869a.8.8 0 0 0-.728-.47H7.361zm-4.96 14.4v9.792h27.2v-9.799a.814.814 0 0 1-.104.007h-7.098l-2.066 3.1a.8.8 0 0 1-.666.356h-8.064a.8.8 0 0 1-.665-.356L8.87 16.8h-6.47zm26.816-1.6H21.97a.8.8 0 0 0-.665.356l-2.067 3.1h-7.208l-2.066-3.1a.8.8 0 0 0-.666-.356H2.785L7.876 4h16.25l5.09 11.2z",fill:"currentColor"})}))};pR.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};pR.displayName="empty";lX=dR.default=pR;const AVe=us(yt)`
|
|
437
|
+
`),function(f){if(s=f.indexOf(":"),a=e.trim(f.substr(0,s)).toLowerCase(),o=e.trim(f.substr(s+1)),a){if(i[a]&&t.indexOf(a)>=0)return;a==="set-cookie"?i[a]=(i[a]?i[a]:[]).concat([o]):i[a]=i[a]?i[a]+", "+o:o}}),i},kS}var DS,rF;function mJe(){if(rF)return DS;rF=1;var e=Li;return DS=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function a(o){var s=o;return n&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=a(window.location.href),function(s){var l=e.isString(s)?a(s):s;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}(),DS}var OS,iF;function GE(){if(iF)return OS;iF=1;var e=fh,t=Li;function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),OS=n,OS}var LS,aF;function gJe(){return aF||(aF=1,LS=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),LS}var PS,oF;function sF(){if(oF)return PS;oF=1;var e=Li,t=lJe(),n=uJe(),r=BZ,i=JZ,a=hJe(),o=mJe(),s=HZ,l=fh,f=GE(),c=gJe();return PS=function(p){return new Promise(function(y,b){var R=p.data,A=p.headers,$=p.responseType,D;function M(){p.cancelToken&&p.cancelToken.unsubscribe(D),p.signal&&p.signal.removeEventListener("abort",D)}e.isFormData(R)&&e.isStandardBrowserEnv()&&delete A["Content-Type"];var j=new XMLHttpRequest;if(p.auth){var U=p.auth.username||"",V=p.auth.password?unescape(encodeURIComponent(p.auth.password)):"";A.Authorization="Basic "+btoa(U+":"+V)}var X=i(p.baseURL,p.url);j.open(p.method.toUpperCase(),r(X,p.params,p.paramsSerializer),!0),j.timeout=p.timeout;function ie(){if(j){var P="getAllResponseHeaders"in j?a(j.getAllResponseHeaders()):null,T=!$||$==="text"||$==="json"?j.responseText:j.response,u={data:T,status:j.status,statusText:j.statusText,headers:P,config:p,request:j};t(function(E){y(E),M()},function(E){b(E),M()},u),j=null}}if("onloadend"in j?j.onloadend=ie:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(ie)},j.onabort=function(){j&&(b(new l("Request aborted",l.ECONNABORTED,p,j)),j=null)},j.onerror=function(){b(new l("Network Error",l.ERR_NETWORK,p,j,j)),j=null},j.ontimeout=function(){var T=p.timeout?"timeout of "+p.timeout+"ms exceeded":"timeout exceeded",u=p.transitional||s;p.timeoutErrorMessage&&(T=p.timeoutErrorMessage),b(new l(T,u.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,p,j)),j=null},e.isStandardBrowserEnv()){var le=(p.withCredentials||o(X))&&p.xsrfCookieName?n.read(p.xsrfCookieName):void 0;le&&(A[p.xsrfHeaderName]=le)}"setRequestHeader"in j&&e.forEach(A,function(T,u){typeof R>"u"&&u.toLowerCase()==="content-type"?delete A[u]:j.setRequestHeader(u,T)}),e.isUndefined(p.withCredentials)||(j.withCredentials=!!p.withCredentials),$&&$!=="json"&&(j.responseType=p.responseType),typeof p.onDownloadProgress=="function"&&j.addEventListener("progress",p.onDownloadProgress),typeof p.onUploadProgress=="function"&&j.upload&&j.upload.addEventListener("progress",p.onUploadProgress),(p.cancelToken||p.signal)&&(D=function(P){j&&(b(!P||P&&P.type?new f:P),j.abort(),j=null)},p.cancelToken&&p.cancelToken.subscribe(D),p.signal&&(p.signal.aborted?D():p.signal.addEventListener("abort",D))),R||(R=null);var Q=c(X);if(Q&&["http","https","file"].indexOf(Q)===-1){b(new l("Unsupported protocol "+Q+":",l.ERR_BAD_REQUEST,p));return}j.send(R)})},PS}var MS,lF;function yJe(){return lF||(lF=1,MS=null),MS}var di=Li,uF=oJe,cF=fh,vJe=HZ,bJe=jZ,EJe={"Content-Type":"application/x-www-form-urlencoded"};function fF(e,t){!di.isUndefined(e)&&di.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function TJe(){var e;return(typeof XMLHttpRequest<"u"||typeof Xt<"u"&&Object.prototype.toString.call(Xt)==="[object process]")&&(e=sF()),e}function AJe(e,t,n){if(di.isString(e))try{return(t||JSON.parse)(e),di.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var WE={transitional:vJe,adapter:TJe(),transformRequest:[function(t,n){if(uF(n,"Accept"),uF(n,"Content-Type"),di.isFormData(t)||di.isArrayBuffer(t)||di.isBuffer(t)||di.isStream(t)||di.isFile(t)||di.isBlob(t))return t;if(di.isArrayBufferView(t))return t.buffer;if(di.isURLSearchParams(t))return fF(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=di.isObject(t),i=n&&n["Content-Type"],a;if((a=di.isFileList(t))||r&&i==="multipart/form-data"){var o=this.env&&this.env.FormData;return bJe(a?{"files[]":t}:t,o&&new o)}else if(r||i==="application/json")return fF(n,"application/json"),AJe(t);return t}],transformResponse:[function(t){var n=this.transitional||WE.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,a=!r&&this.responseType==="json";if(a||i&&di.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?cF.from(o,cF.ERR_BAD_RESPONSE,this,null,this.response):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yJe()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};di.forEach(["delete","get","head"],function(t){WE.headers[t]={}});di.forEach(["post","put","patch"],function(t){WE.headers[t]=di.merge(EJe)});var uR=WE,wJe=Li,SJe=uR,_Je=function(t,n,r){var i=this||SJe;return wJe.forEach(r,function(o){t=o.call(i,t,n)}),t},BS,dF;function VZ(){return dF||(dF=1,BS=function(t){return!!(t&&t.__CANCEL__)}),BS}var pF=Li,NS=_Je,xJe=VZ(),CJe=uR,RJe=GE();function FS(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new RJe}var $Je=function(t){FS(t),t.headers=t.headers||{},t.data=NS.call(t,t.data,t.headers,t.transformRequest),t.headers=pF.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),pF.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||CJe.adapter;return n(t).then(function(i){return FS(t),i.data=NS.call(t,i.data,i.headers,t.transformResponse),i},function(i){return xJe(i)||(FS(t),i&&i.response&&(i.response.data=NS.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},ka=Li,qZ=function(t,n){n=n||{};var r={};function i(c,d){return ka.isPlainObject(c)&&ka.isPlainObject(d)?ka.merge(c,d):ka.isPlainObject(d)?ka.merge({},d):ka.isArray(d)?d.slice():d}function a(c){if(ka.isUndefined(n[c])){if(!ka.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],n[c])}function o(c){if(!ka.isUndefined(n[c]))return i(void 0,n[c])}function s(c){if(ka.isUndefined(n[c])){if(!ka.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,n[c])}function l(c){if(c in n)return i(t[c],n[c]);if(c in t)return i(void 0,t[c])}var f={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return ka.forEach(Object.keys(t).concat(Object.keys(n)),function(d){var p=f[d]||a,g=p(d);ka.isUndefined(g)&&p!==l||(r[d]=g)}),r},US,hF;function GZ(){return hF||(hF=1,US={version:"0.27.2"}),US}var IJe=GZ().version,mu=fh,cR={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){cR[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var mF={};cR.transitional=function(t,n,r){function i(a,o){return"[Axios v"+IJe+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return function(a,o,s){if(t===!1)throw new mu(i(o," has been removed"+(n?" in "+n:"")),mu.ERR_DEPRECATED);return n&&!mF[o]&&(mF[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};function kJe(e,t,n){if(typeof e!="object")throw new mu("options must be an object",mu.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],o=t[a];if(o){var s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new mu("option "+a+" must be "+l,mu.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new mu("Unknown option "+a,mu.ERR_BAD_OPTION)}}var DJe={assertOptions:kJe,validators:cR},WZ=Li,OJe=BZ,gF=iJe,yF=$Je,zE=qZ,LJe=JZ,zZ=DJe,ad=zZ.validators;function $p(e){this.defaults=e,this.interceptors={request:new gF,response:new gF}}$p.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zE(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&zZ.assertOptions(r,{silentJSONParsing:ad.transitional(ad.boolean),forcedJSONParsing:ad.transitional(ad.boolean),clarifyTimeoutError:ad.transitional(ad.boolean)},!1);var i=[],a=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(a=a&&g.synchronous,i.unshift(g.fulfilled,g.rejected))});var o=[];this.interceptors.response.forEach(function(g){o.push(g.fulfilled,g.rejected)});var s;if(!a){var l=[yF,void 0];for(Array.prototype.unshift.apply(l,i),l=l.concat(o),s=Promise.resolve(n);l.length;)s=s.then(l.shift(),l.shift());return s}for(var f=n;i.length;){var c=i.shift(),d=i.shift();try{f=c(f)}catch(p){d(p);break}}try{s=yF(f)}catch(p){return Promise.reject(p)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};$p.prototype.getUri=function(t){t=zE(this.defaults,t);var n=LJe(t.baseURL,t.url);return OJe(n,t.params,t.paramsSerializer)};WZ.forEach(["delete","get","head","options"],function(t){$p.prototype[t]=function(n,r){return this.request(zE(r||{},{method:t,url:n,data:(r||{}).data}))}});WZ.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,s){return this.request(zE(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}$p.prototype[t]=n(),$p.prototype[t+"Form"]=n(!0)});var PJe=$p,HS,vF;function MJe(){if(vF)return HS;vF=1;var e=GE();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(o){r=o});var i=this;this.promise.then(function(a){if(i._listeners){var o,s=i._listeners.length;for(o=0;o<s;o++)i._listeners[o](a);i._listeners=null}}),this.promise.then=function(a){var o,s=new Promise(function(l){i.subscribe(l),o=l}).then(a);return s.cancel=function(){i.unsubscribe(o)},s},n(function(o){i.reason||(i.reason=new e(o),r(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},t.prototype.unsubscribe=function(r){if(this._listeners){var i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}},t.source=function(){var r,i=new t(function(o){r=o});return{token:i,cancel:r}},HS=t,HS}var jS,bF;function BJe(){return bF||(bF=1,jS=function(t){return function(r){return t.apply(null,r)}}),jS}var JS,EF;function NJe(){if(EF)return JS;EF=1;var e=Li;return JS=function(n){return e.isObject(n)&&n.isAxiosError===!0},JS}var TF=Li,FJe=LZ,Gv=PJe,UJe=qZ,HJe=uR;function KZ(e){var t=new Gv(e),n=FJe(Gv.prototype.request,t);return TF.extend(n,Gv.prototype,t),TF.extend(n,t),n.create=function(i){return KZ(UJe(e,i))},n}var Ta=KZ(HJe);Ta.Axios=Gv;Ta.CanceledError=GE();Ta.CancelToken=MJe();Ta.isCancel=VZ();Ta.VERSION=GZ().version;Ta.toFormData=jZ;Ta.AxiosError=fh;Ta.Cancel=Ta.CanceledError;Ta.all=function(t){return Promise.all(t)};Ta.spread=BJe();Ta.isAxiosError=NJe();rR.exports=Ta;rR.exports.default=Ta;var jJe=rR.exports,YZ=jJe;const ZZ=Ut(YZ),JJe="@arcblock/did-connect",VJe="2.9.38",qJe="Client side library to work with DID Connect by ArcBlock.",GJe=["react","arcblock","component"],WJe="wangshijun<wangshijun2010@gmail.com>",zJe="https://github.com/ArcBlock/ux#readme",KJe="Apache-2.0",YJe="lib/index.js",ZJe="es/index.js",XJe={type:"git",url:"git+https://github.com/ArcBlock/ux.git"},QJe={lint:"eslint src tests --ext js --ext jsx","lint:fix":"npm run lint -- --fix",build:"npm run build:lib && npm run build:es && npm run autoexports","build:lib":"babel src --out-dir lib --copy-files --no-copy-ignored","build:es":"babel --config-file ./babel.config.es.js src --out-dir es --copy-files --no-copy-ignored",autoexports:"node tools/auto-exports.js",watch:"babel src --out-dir lib -w --copy-files --no-copy-ignored",precommit:"CI=1 npm run lint",prepush:"CI=1 npm run lint",prepublish:"npm run build",test:"node tools/jest.js",coverage:"npm run test -- --coverage"},eVe={url:"https://github.com/ArcBlock/ux/issues"},tVe={".":{import:"./es/index.js",require:"./lib/index.js"},"./lib/*":{import:"./es/*.js",require:"./lib/*.js"},"./lib/Address":{import:"./es/Address/index.js",require:"./lib/Address/index.js"},"./lib/Avatar":{import:"./es/Avatar/index.js",require:"./lib/Avatar/index.js"},"./lib/Button":{import:"./es/Button/index.js",require:"./lib/Button/index.js"},"./lib/Connect":{import:"./es/Connect/index.js",require:"./lib/Connect/index.js"},"./lib/Logo":{import:"./es/Logo/index.js",require:"./lib/Logo/index.js"},"./lib/OAuth":{import:"./es/OAuth/index.js",require:"./lib/OAuth/index.js"},"./lib/Service":{import:"./es/Service/index.js",require:"./lib/Service/index.js"},"./lib/Session":{import:"./es/Session/index.js",require:"./lib/Session/index.js"},"./lib/SessionManager":{import:"./es/SessionManager/index.js",require:"./lib/SessionManager/index.js"},"./lib/Storage":{import:"./es/Storage/index.js",require:"./lib/Storage/index.js"},"./lib/User":{import:"./es/User/index.js",require:"./lib/User/index.js"},"./lib/WebWalletSWKeeper":{import:"./es/WebWalletSWKeeper/index.js",require:"./lib/WebWalletSWKeeper/index.js"}},nVe={"@arcblock/icons":"^2.9.38","@arcblock/react-hooks":"^2.9.38","@arcblock/ux":"^2.9.38","@arcblock/ws":"^1.18.90","@auth0/auth0-react":"^2.0.1","@emotion/react":"^11.10.4","@emotion/styled":"^11.10.4","@fontsource/inter":"^5.0.16","@iconify-icons/logos":"^1.2.36","@iconify-icons/material-symbols":"^1.2.58","@iconify/react":"^4.1.1","@mui/icons-material":"^5.14.8","@mui/material":"^5.14.8",ahooks:"^3.7.8",axios:"^0.27.2",buffer:"^6.0.3","core-js":"^3.25.5",dsbridge:"3.1.4",eventemitter3:"^5.0.1","js-cookie":"^2.2.1","jwt-decode":"^3.1.2",lodash:"^4.17.21","mdi-material-ui":"^7.5.0","p-wait-for":"^5.0.2","path-to-regexp":"^1.8.0",semver:"^7.5.4",tweetnacl:"^1.0.3","tweetnacl-sealedbox-js":"^1.2.0","url-join":"^4.0.1"},rVe={react:">=18.1.0"},iVe={access:"public"},aVe={"@babel/cli":"^7.19.3","@babel/core":"^7.19.3","@babel/preset-env":"^7.19.3","@babel/preset-react":"^7.18.6","eslint-plugin-react-hooks":"^4.6.0",glob:"^10.3.3",jest:"^28.1.3"},oVe="c237952e44055ba095d463f295c8bc9b28635cf9",sVe={name:JJe,version:VJe,description:qJe,keywords:GJe,author:WJe,homepage:zJe,license:KJe,main:YJe,module:ZJe,repository:XJe,scripts:QJe,bugs:eVe,exports:tVe,dependencies:nVe,peerDependencies:rVe,publishConfig:iVe,devDependencies:aVe,gitHead:oVe},XZ=5*60,lVe=30*60,Vi="/.well-known/service",uVe="login_token",cVe="refresh_token",QZ="/.well-known/service",fR="/api/did",fVe="DID Connect",AF="__did-connect__",dVe="wallet_url",eX=()=>{var e,t;return window.localStorage.getItem(dVe)||((e=window.env)==null?void 0:e.webWalletUrl)||((t=window.blocklet)==null?void 0:t.webWalletUrl)||"https://web.abtwallet.io/"},tX=e=>{const{protocol:t}=window.location;let n="";try{n=new URL(e).protocol}catch{n=""}return t===n},{version:pVe}=sVe;function nX(e){return(e+"===".slice((e.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function hVe(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const mVe=e=>window.atob(nX(e)),gVe=e=>{const t=new URL(e),n=decodeURIComponent(t.searchParams.get("url"));return new URL(n).searchParams.get("_t_")},F1=(e,t)=>{var r,i,a;let n=t==null?void 0:t.publisher;if(!n){if(e!=null&&e.agentDid)return e.agentDid;n=e==null?void 0:e.publisher}return n?n.replace("did:abt:",""):((r=globalThis.blocklet)==null?void 0:r.appPid)||((i=globalThis.blocklet)==null?void 0:i.appId)||((a=globalThis.env)==null?void 0:a.appId)||""},rX=e=>{var n;const t={connected_did:e.did||"",connected_pk:e.pk||"",connected_app:F1(e.appInfo,e.memberAppInfo)};return(n=e==null?void 0:e.connectedWallet)!=null&&n.os&&(t.connected_wallet_os=e.connectedWallet.os),t},l2=(e,t=!1)=>{if(!e)return;t||(e=rX(e));const n=nf({expireInDays:7,returnDomain:!1});ua(e.connected_did)||Br.set("connected_did",e.connected_did,n),ua(e.connected_pk)||Br.set("connected_pk",e.connected_pk,n),ua(e.connected_app)||Br.set("connected_app",e.connected_app,n),e.connected_wallet_os&&Br.set("connected_wallet_os",e.connected_wallet_os,n)},Ly=e=>hVe(Ap.from(e).toString("base64")),wF=e=>Uint8Array.from(Ap.from(nX(e),"base64")),iX=(e,t,n)=>{const r=Pje.open(Uint8Array.from(Ap.from(e,"base64")),wF(t),wF(n));return JSON.parse(Ap.from(r).toString("utf8"))},yVe=(e,t="_t_")=>{const n=new URL(e),r={baseUrl:n.origin,prefix:n.pathname.replace(/\/auth$/,""),token:n.searchParams.get(t)||""};if(!r.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!r.token)throw new Error("Invalid next workflow: token not found");return r},aX=(e,t)=>{var r;let n=e.message;return e.response&&(n=((r=e.response)==null?void 0:r.data)||t),n},Wl=(e={},{lazy:t=!1,lazyTime:n=300}={})=>{const r=ZZ.create({...e,headers:{...e.headers,"x-did-connect-version":pVe}});if(t){async function i(a){a.metaData.endTime=new Date;const{startTime:o,endTime:s}=a.metaData,l=s-o;l<n&&await Um(n-l),delete a.metaData}r.interceptors.request.use(a=>(a.metaData={startTime:new Date},a),a=>Promise.reject(a)),r.interceptors.response.use(async a=>(await i(a.config),a),async a=>(await i(a.response.config),Promise.reject(a)))}return r},Um=(e=0)=>new Promise(t=>{setTimeout(()=>{t()},e)});function oX(){if(typeof window>"u")return null;const e=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[e]||"en"}function SF(){const e=window.location.href;try{const t=new URL(e),n=t.searchParams.get(AF);if(n)return t.searchParams.delete(AF),{params:JSON.parse(Ap.from(n,"base64").toString("utf-8")),url:t.href}}catch{console.warn("Failed to decode did-connect url params")}return{params:null,url:e}}function sX({callback:e}){return z.useEffect(()=>(window.addEventListener("focus",e),()=>{window.removeEventListener("focus",e)}),[]),null}sX.propTypes={callback:ge.func.isRequired};var dR={};Object.defineProperty(dR,"__esModule",{value:!0});var lX=dR.default=void 0;vVe(z);var _F=G;function vVe(e){return e&&e.__esModule?e:{default:e}}function xF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function CF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xF(Object(n),!0).forEach(function(r){bVe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bVe(e,t,n){return t=EVe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EVe(e){var t=TVe(e,"string");return typeof t=="symbol"?t:String(t)}function TVe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pR=function(t){return(0,_F.jsx)("svg",CF(CF({},t),{},{children:(0,_F.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.361 2.4a.8.8 0 0 0-.728.469L.873 15.54a.8.8 0 0 0-.072.33V27.393a.8.8 0 0 0 .8.8h28.8a.8.8 0 0 0 .8-.8v-11.52a.8.8 0 0 0-.072-.331L25.37 2.869a.8.8 0 0 0-.728-.47H7.361zm-4.96 14.4v9.792h27.2v-9.799a.814.814 0 0 1-.104.007h-7.098l-2.066 3.1a.8.8 0 0 1-.666.356h-8.064a.8.8 0 0 1-.665-.356L8.87 16.8h-6.47zm26.816-1.6H21.97a.8.8 0 0 0-.665.356l-2.067 3.1h-7.208l-2.066-3.1a.8.8 0 0 0-.666-.356H2.785L7.876 4h16.25l5.09 11.2z",fill:"currentColor"})}))};pR.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};pR.displayName="empty";lX=dR.default=pR;const AVe=us(yt)`
|
|
438
438
|
display: flex;
|
|
439
439
|
justify-content: center;
|
|
440
440
|
align-items: center;
|
|
@@ -482,7 +482,7 @@ use chrome, FireFox or Internet Explorer 11`)}var t=Sn,n=Gl,r=t.Buffer,i=t.kMaxL
|
|
|
482
482
|
`;mR.propTypes={list:ge.array,width:ge.number,height:ge.number,cardSpace:ge.number,onSelect:ge.func,defaultIndex:ge.number};mR.defaultProps={list:"",width:300,height:400,cardSpace:40,onSelect:Bn,defaultIndex:0};var ox=function(e,t){return ox=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},ox(e,t)};function SVe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ox(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var pi=function(){return pi=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},pi.apply(this,arguments)};function _Ve(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function od(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(c){try{f(r.next(c))}catch(d){o(d)}}function l(c){try{f(r.throw(c))}catch(d){o(d)}}function f(c){c.done?a(c.value):i(c.value).then(s,l)}f((r=r.apply(e,t||[])).next())})}function sd(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(f){return function(c){return l([f,c])}}function l(f){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(n=0)),n;)try{if(r=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,i=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){n.label=f[1];break}if(f[0]===6&&n.label<a[1]){n.label=a[1],a=f;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(f);break}a[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(c){f=[6,c],i=0}finally{r=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function _s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}var Bd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Qo<"u"?Qo:typeof self<"u"?self:{};function gR(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yR(e,t){return e(t={exports:{}},t.exports),t.exports}var Ac=yR(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function r(){var i=this;this.locked=new Map,this.addToLocked=function(a,o){var s=i.locked.get(a);s===void 0?o===void 0?i.locked.set(a,[]):i.locked.set(a,[o]):o!==void 0&&(s.unshift(o),i.locked.set(a,s))},this.isLocked=function(a){return i.locked.has(a)},this.lock=function(a){return new Promise(function(o,s){i.isLocked(a)?i.addToLocked(a,o):(i.addToLocked(a),o())})},this.unlock=function(a){var o=i.locked.get(a);if(o!==void 0&&o.length!==0){var s=o.pop();i.locked.set(a,o),s!==void 0&&setTimeout(s,0)}else i.locked.delete(a)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r}();t.default=function(){return n.getInstance()}});gR(Ac);var xVe=gR(yR(function(e,t){var n=Bd&&Bd.__awaiter||function(l,f,c,d){return new(c||(c=Promise))(function(p,g){function y(A){try{R(d.next(A))}catch($){g($)}}function b(A){try{R(d.throw(A))}catch($){g($)}}function R(A){A.done?p(A.value):new c(function($){$(A.value)}).then(y,b)}R((d=d.apply(l,f||[])).next())})},r=Bd&&Bd.__generator||function(l,f){var c,d,p,g,y={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return g={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function b(R){return function(A){return function($){if(c)throw new TypeError("Generator is already executing.");for(;y;)try{if(c=1,d&&(p=2&$[0]?d.return:$[0]?d.throw||((p=d.return)&&p.call(d),0):d.next)&&!(p=p.call(d,$[1])).done)return p;switch(d=0,p&&($=[2&$[0],p.value]),$[0]){case 0:case 1:p=$;break;case 4:return y.label++,{value:$[1],done:!1};case 5:y.label++,d=$[1],$=[0];continue;case 7:$=y.ops.pop(),y.trys.pop();continue;default:if(p=y.trys,!((p=p.length>0&&p[p.length-1])||$[0]!==6&&$[0]!==2)){y=0;continue}if($[0]===3&&(!p||$[1]>p[0]&&$[1]<p[3])){y.label=$[1];break}if($[0]===6&&y.label<p[1]){y.label=p[1],p=$;break}if(p&&y.label<p[2]){y.label=p[2],y.ops.push($);break}p[2]&&y.ops.pop(),y.trys.pop();continue}$=f.call(l,y)}catch(D){$=[6,D],d=0}finally{c=p=0}if(5&$[0])throw $[1];return{value:$[0]?$[1]:void 0,done:!0}}([R,A])}}};Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key";function a(l){return new Promise(function(f){return setTimeout(f,l)})}function o(l){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",c="",d=0;d<l;d++)c+=f[Math.floor(Math.random()*f.length)];return c}var s=function(){function l(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+o(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),l.waiters===void 0&&(l.waiters=[])}return l.prototype.acquireLock=function(f,c){return c===void 0&&(c=5e3),n(this,void 0,void 0,function(){var d,p,g,y,b,R;return r(this,function(A){switch(A.label){case 0:d=Date.now()+o(4),p=Date.now()+c,g=i+"-"+f,y=window.localStorage,A.label=1;case 1:return Date.now()<p?[4,a(30)]:[3,8];case 2:return A.sent(),y.getItem(g)!==null?[3,5]:(b=this.id+"-"+f+"-"+d,[4,a(Math.floor(25*Math.random()))]);case 3:return A.sent(),y.setItem(g,JSON.stringify({id:this.id,iat:d,timeoutKey:b,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return A.sent(),(R=y.getItem(g))!==null&&(R=JSON.parse(R)).id===this.id&&R.iat===d?(this.acquiredIatSet.add(d),this.refreshLockWhileAcquired(g,d),[2,!0]):[3,7];case 5:return l.lockCorrector(),[4,this.waitForSomethingToChange(p)];case 6:A.sent(),A.label=7;case 7:return d=Date.now()+o(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(f,c){return n(this,void 0,void 0,function(){var d=this;return r(this,function(p){return setTimeout(function(){return n(d,void 0,void 0,function(){var g,y;return r(this,function(b){switch(b.label){case 0:return[4,Ac.default().lock(c)];case 1:return b.sent(),this.acquiredIatSet.has(c)?(g=window.localStorage,(y=g.getItem(f))===null?(Ac.default().unlock(c),[2]):((y=JSON.parse(y)).timeRefreshed=Date.now(),g.setItem(f,JSON.stringify(y)),Ac.default().unlock(c),this.refreshLockWhileAcquired(f,c),[2])):(Ac.default().unlock(c),[2])}})})},1e3),[2]})})},l.prototype.waitForSomethingToChange=function(f){return n(this,void 0,void 0,function(){return r(this,function(c){switch(c.label){case 0:return[4,new Promise(function(d){var p=!1,g=Date.now(),y=!1;function b(){if(y||(window.removeEventListener("storage",b),l.removeFromWaiting(b),clearTimeout(R),y=!0),!p){p=!0;var A=50-(Date.now()-g);A>0?setTimeout(d,A):d()}}window.addEventListener("storage",b),l.addToWaiting(b);var R=setTimeout(b,Math.max(0,f-Date.now()))})];case 1:return c.sent(),[2]}})})},l.addToWaiting=function(f){this.removeFromWaiting(f),l.waiters!==void 0&&l.waiters.push(f)},l.removeFromWaiting=function(f){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(c){return c!==f}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(f){return f()})},l.prototype.releaseLock=function(f){return n(this,void 0,void 0,function(){return r(this,function(c){switch(c.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,c.sent()]}})})},l.prototype.releaseLock__private__=function(f){return n(this,void 0,void 0,function(){var c,d,p;return r(this,function(g){switch(g.label){case 0:return c=window.localStorage,d=i+"-"+f,(p=c.getItem(d))===null?[2]:(p=JSON.parse(p)).id!==this.id?[3,2]:[4,Ac.default().lock(p.iat)];case 1:g.sent(),this.acquiredIatSet.delete(p.iat),c.removeItem(d),Ac.default().unlock(p.iat),l.notifyWaiters(),g.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var f=Date.now()-5e3,c=window.localStorage,d=Object.keys(c),p=!1,g=0;g<d.length;g++){var y=d[g];if(y.includes(i)){var b=c.getItem(y);b!==null&&((b=JSON.parse(b)).timeRefreshed===void 0&&b.timeAcquired<f||b.timeRefreshed!==void 0&&b.timeRefreshed<f)&&(c.removeItem(y),p=!0)}}p&&l.notifyWaiters()},l.waiters=void 0,l}();t.default=s}));const CVe={timeoutInSeconds:60},uX={name:"auth0-spa-js",version:"2.0.4"},cX=()=>Date.now();class wo extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,wo.prototype)}static fromPayload({error:t,error_description:n}){return new wo(t,n)}}class vR extends wo{constructor(t,n,r,i=null){super(t,n),this.state=r,this.appState=i,Object.setPrototypeOf(this,vR.prototype)}}class U1 extends wo{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,U1.prototype)}}class bR extends U1{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,bR.prototype)}}class ER extends wo{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,ER.prototype)}}class TR extends wo{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,TR.prototype)}}let fX=class dX extends wo{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${RF(t,["default"])}', scope: '${RF(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,dX.prototype)}};function RF(e,t=[]){return e&&!t.includes(e)?e:""}const Wv=()=>window.crypto,VS=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(Wv().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},$F=e=>btoa(e),sx=e=>{var{clientId:t}=e,n=_s(e,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(i=>r[i]!==void 0).reduce((i,a)=>Object.assign(Object.assign({},i),{[a]:r[a]}),{}))(Object.assign({client_id:t},n))).toString()},IF=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),RVe=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},$Ve=async(e,t,n)=>{const r=new AbortController;let i;return t.signal=r.signal,Promise.race([RVe(e,t),new Promise((a,o)=>{i=setTimeout(()=>{r.abort(),o(new Error("Timeout when executing 'fetch'"))},n)})]).finally(()=>{clearTimeout(i)})},IVe=async(e,t,n,r,i,a,o)=>{return s={auth:{audience:t,scope:n},timeout:i,fetchUrl:e,fetchOptions:r,useFormData:o},l=a,new Promise(function(f,c){const d=new MessageChannel;d.port1.onmessage=function(p){p.data.error?c(new Error(p.data.error)):f(p.data),d.port1.close()},l.postMessage(s,[d.port2])});var s,l},kVe=async(e,t,n,r,i,a,o=1e4)=>i?IVe(e,t,n,r,o,i,a):$Ve(e,r,o);async function DVe(e,t){var{baseUrl:n,timeout:r,audience:i,scope:a,auth0Client:o,useFormData:s}=e,l=_s(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const f=s?sx(l):JSON.stringify(l);return await async function(c,d,p,g,y,b,R){let A,$=null;for(let X=0;X<3;X++)try{A=await kVe(c,p,g,y,b,R,d),$=null;break}catch(ie){$=ie}if($)throw $;const D=A.json,{error:M,error_description:j}=D,U=_s(D,["error","error_description"]),{ok:V}=A;if(!V){const X=j||`HTTP error. Unable to fetch ${c}`;throw M==="mfa_required"?new TR(M,X,U.mfa_token):M==="missing_refresh_token"?new fX(p,g):new wo(M||"request_error",X)}return U}(`${n}/oauth/token`,r,i||"default",a,{method:"POST",body:f,headers:{"Content-Type":s?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(o||uX))}},t,s)}const Py=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class ks{constructor(t,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,r,i,a]=t.split("::");return new ks({clientId:r,scope:a,audience:i},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:i}=t;return new ks({scope:n,audience:r,clientId:i})}}class OVe{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith("@@auth0spajs@@"))}}class pX{constructor(){this.enclosedCache=function(){let t={};return{set(n,r){t[n]=r},get(n){const r=t[n];if(r)return r},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class LVe{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||cX}async setIdToken(t,n,r){var i;const a=this.getIdTokenCacheKey(t);await this.cache.set(a,{id_token:n,decodedToken:r}),await((i=this.keyManifest)===null||i===void 0?void 0:i.add(a))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const r=await this.get(t);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var r;let i=await this.cache.get(t.toKey());if(!i){const s=await this.getCacheKeys();if(!s)return;const l=this.matchExistingCacheKey(t,s);l&&(i=await this.cache.get(l))}if(!i)return;const a=await this.nowProvider(),o=Math.floor(a/1e3);return i.expiresAt-n<o?i.body.refresh_token?(i.body={refresh_token:i.body.refresh_token},await this.cache.set(t.toKey(),i),i.body):(await this.cache.remove(t.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(t.toKey()))):i.body}async set(t){var n;const r=new ks({clientId:t.client_id,scope:t.scope,audience:t.audience}),i=await this.wrapCacheEntry(t);await this.cache.set(r.toKey(),i),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async clear(t){var n;const r=await this.getCacheKeys();r&&(await r.filter(i=>!t||i.includes(t)).reduce(async(i,a)=>{await i,await this.cache.remove(a)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new ks({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var i;const a=ks.fromKey(r),o=new Set(a.scope&&a.scope.split(" ")),s=((i=t.scope)===null||i===void 0?void 0:i.split(" "))||[],l=a.scope&&s.reduce((f,c)=>f&&o.has(c),!0);return a.prefix==="@@auth0spajs@@"&&a.clientId===t.clientId&&a.audience===t.audience&&l})[0]}}class PVe{constructor(t,n){this.storage=t,this.clientId=n,this.storageKey=`a0.spajs.txs.${this.clientId}`,this.transaction=this.storage.get(this.storageKey)}create(t){this.transaction=t,this.storage.save(this.storageKey,t,{daysUntilExpire:1})}get(){return this.transaction}remove(){delete this.transaction,this.storage.remove(this.storageKey)}}const l0=e=>typeof e=="number",MVe=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],BVe=e=>{if(!e.id_token)throw new Error("ID token is required but missing");const t=(a=>{const o=a.split("."),[s,l,f]=o;if(o.length!==3||!s||!l||!f)throw new Error("ID token could not be decoded");const c=JSON.parse(IF(l)),d={__raw:a},p={};return Object.keys(c).forEach(g=>{d[g]=c[g],MVe.includes(g)||(p[g]=c[g])}),{encoded:{header:s,payload:l,signature:f},header:JSON.parse(IF(s)),claims:d,user:p}})(e.id_token);if(!t.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${e.iss}", found "${t.claims.iss}"`);if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(t.header.alg!=="RS256")throw new Error(`Signature algorithm of "${t.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!t.claims.aud||typeof t.claims.aud!="string"&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but was not one of "${t.claims.aud.join(", ")}"`);if(t.claims.aud.length>1){if(!t.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${e.aud}", found "${t.claims.azp}"`)}}else if(t.claims.aud!==e.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but found "${t.claims.aud}"`);if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${e.nonce}", found "${t.claims.nonce}"`)}if(e.max_age&&!l0(t.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(t.claims.exp==null||!l0(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!l0(t.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const n=e.leeway||60,r=new Date(e.now||Date.now()),i=new Date(0);if(i.setUTCSeconds(t.claims.exp+n),r>i)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${r}) is after expiration time (${i})`);if(t.claims.nbf!=null&&l0(t.claims.nbf)){const a=new Date(0);if(a.setUTCSeconds(t.claims.nbf-n),r<a)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${r}) is before ${a}`)}if(t.claims.auth_time!=null&&l0(t.claims.auth_time)){const a=new Date(0);if(a.setUTCSeconds(parseInt(t.claims.auth_time)+e.max_age+n),r>a)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${r}) is after last auth at ${a}`)}if(e.organizationId){if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(e.organizationId!==t.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${e.organizationId}", found "${t.claims.org_id}"`)}return t};var Bc=yR(function(e,t){var n=Bd&&Bd.__assign||function(){return n=Object.assign||function(l){for(var f,c=1,d=arguments.length;c<d;c++)for(var p in f=arguments[c])Object.prototype.hasOwnProperty.call(f,p)&&(l[p]=f[p]);return l},n.apply(this,arguments)};function r(l,f){if(!f)return"";var c="; "+l;return f===!0?c:c+"="+f}function i(l,f,c){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(f).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(d){if(typeof d.expires=="number"){var p=new Date;p.setMilliseconds(p.getMilliseconds()+864e5*d.expires),d.expires=p}return r("Expires",d.expires?d.expires.toUTCString():"")+r("Domain",d.domain)+r("Path",d.path)+r("Secure",d.secure)+r("SameSite",d.sameSite)}(c)}function a(l){for(var f={},c=l?l.split("; "):[],d=/(%[\dA-F]{2})+/gi,p=0;p<c.length;p++){var g=c[p].split("="),y=g.slice(1).join("=");y.charAt(0)==='"'&&(y=y.slice(1,-1));try{f[g[0].replace(d,decodeURIComponent)]=y.replace(d,decodeURIComponent)}catch{}}return f}function o(){return a(document.cookie)}function s(l,f,c){document.cookie=i(l,f,n({path:"/"},c))}t.__esModule=!0,t.encode=i,t.parse=a,t.getAll=o,t.get=function(l){return o()[l]},t.set=s,t.remove=function(l,f){s(l,"",n(n({},f),{expires:-1}))}});gR(Bc),Bc.encode,Bc.parse,Bc.getAll;var NVe=Bc.get,hX=Bc.set,mX=Bc.remove;const vd={get(e){const t=NVe(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n!=null&&n.daysUntilExpire&&(r.expires=n.daysUntilExpire),n!=null&&n.cookieDomain&&(r.domain=n.cookieDomain),hX(e,JSON.stringify(t),r)},remove(e,t){let n={};t!=null&&t.cookieDomain&&(n.domain=t.cookieDomain),mX(e,n)}},FVe={get(e){return vd.get(e)||vd.get(`_legacy_${e}`)},save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n!=null&&n.daysUntilExpire&&(r.expires=n.daysUntilExpire),n!=null&&n.cookieDomain&&(r.domain=n.cookieDomain),hX(`_legacy_${e}`,JSON.stringify(t),r),vd.save(e,t,n)},remove(e,t){let n={};t!=null&&t.cookieDomain&&(n.domain=t.cookieDomain),mX(e,n),vd.remove(e,t),vd.remove(`_legacy_${e}`,t)}},UVe={get(e){if(typeof sessionStorage>"u")return;const t=sessionStorage.getItem(e);return t!=null?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};function HVe(e,t,n){var r=t===void 0?null:t,i=function(l,f){var c=atob(l);if(f){for(var d=new Uint8Array(c.length),p=0,g=c.length;p<g;++p)d[p]=c.charCodeAt(p);return String.fromCharCode.apply(null,new Uint16Array(d.buffer))}return c}(e,n!==void 0&&n),a=i.indexOf(`
|
|
483
483
|
`,10)+1,o=i.substring(a)+(r?"//# sourceMappingURL="+r:""),s=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(s)}var kF,DF,OF,qS,jVe=(kF="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",DF=null,OF=!1,function(e){return qS=qS||HVe(kF,DF,OF),new Worker(qS,e)});const GS={};class JVe{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const r=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);r.add(t),await this.cache.set(this.manifestKey,{keys:[...r]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const r=new Set(n.keys);return r.delete(t),r.size>0?await this.cache.set(this.manifestKey,{keys:[...r]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(t){return`@@auth0spajs@@::${t}`}}const VVe={memory:()=>new pX().enclosedCache,localstorage:()=>new OVe},LF=e=>VVe[e],PF=e=>{const{openUrl:t,onRedirect:n}=e,r=_s(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},WS=new xVe;class qVe{constructor(t){let n,r;if(this.userCache=new pX().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await WS.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),t),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),t.authorizationParams)}),typeof window<"u"&&(()=>{if(!Wv())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(Wv().subtle===void 0)throw new Error(`
|
|
484
484
|
auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
|
|
485
|
-
`)})(),t.cache&&t.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),t.cache)r=t.cache;else{if(n=t.cacheLocation||"memory",!LF(n))throw new Error(`Invalid cache location "${n}"`);r=LF(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?vd:FVe,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(o=>`auth0.${o}.is.authenticated`)(this.options.clientId),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const i=t.useCookiesForTransactions?this.cookieStorage:UVe;var a;this.scope=Py("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new PVe(i,this.options.clientId),this.nowProvider=this.options.nowProvider||cX,this.cacheManager=new LVe(r,r.allKeys?void 0:new JVe(r,this.options.clientId),this.nowProvider),this.domainUrl=(a=this.options.domain,/^https?:\/\//.test(a)?a:`https://${a}`),this.tokenIssuer=((o,s)=>o?o.startsWith("https://")?o:`https://${o}/`:`${s}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.worker=new jVe)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||uX)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${sx(t)}`)}async _verifyIdToken(t,n,r){const i=await this.nowProvider();return BVe({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organizationId:r,leeway:this.options.leeway,max_age:(a=this.options.authorizationParams.max_age,typeof a!="string"?a:parseInt(a,10)||void 0),now:i});var a}_processOrgIdHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,r){const i=$F(VS()),a=$F(VS()),o=VS(),s=(c=>{const d=new Uint8Array(c);return(p=>{const g={"+":"-","/":"_","=":""};return p.replace(/[+/=]/g,y=>g[y])})(window.btoa(String.fromCharCode(...Array.from(d))))})(await(async c=>await Wv().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,d,p,g,y,b,R,A)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),p),{scope:Py(d,p.scope),response_type:"code",response_mode:A||"query",state:g,nonce:y,redirect_uri:R||c.authorizationParams.redirect_uri,code_challenge:b,code_challenge_method:"S256"}))(this.options,this.scope,t,i,a,s,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n==null?void 0:n.response_mode),f=this._authorizeUrl(l);return{nonce:a,code_verifier:o,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:i,url:f}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(s=>{const l=window.screenX+(window.innerWidth-400)/2,f=window.screenY+(window.innerHeight-600)/2;return window.open(s,"auth0:authorize:popup",`left=${l},top=${f},width=400,height=600,resizable,scrollbars=yes,status=1`)})(""),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const i=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=i.url;const a=await(s=>new Promise((l,f)=>{let c;const d=setInterval(()=>{s.popup&&s.popup.closed&&(clearInterval(d),clearTimeout(p),window.removeEventListener("message",c,!1),f(new ER(s.popup)))},1e3),p=setTimeout(()=>{clearInterval(d),f(new bR(s.popup)),window.removeEventListener("message",c,!1)},1e3*(s.timeoutInSeconds||60));c=function(g){if(g.data&&g.data.type==="authorization_response"){if(clearTimeout(p),clearInterval(d),window.removeEventListener("message",c,!1),s.popup.close(),g.data.response.error)return f(wo.fromPayload(g.data.response));l(g.data.response)}},window.addEventListener("message",c)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(i.state!==a.state)throw new Error("Invalid state");const o=((r=t.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:i.audience,scope:i.scope,code_verifier:i.code_verifier,grant_type:"authorization_code",code:a.code,redirect_uri:i.redirect_uri},{nonceIn:i.nonce,organizationId:o})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n==null?void 0:n.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n==null?void 0:n.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const r=PF(t),{openUrl:i,fragment:a,appState:o}=r,s=_s(r,["openUrl","fragment","appState"]),l=((n=s.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,f=await this._prepareAuthorizeUrl(s.authorizationParams||{}),{url:c}=f,d=_s(f,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},d),{appState:o}),l&&{organizationId:l}));const p=a?`${c}#${a}`:c;i?await i(p):window.location.assign(p)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:r,code:i,error:a,error_description:o}=(d=>{d.indexOf("#")>-1&&(d=d.substring(0,d.indexOf("#")));const p=new URLSearchParams(d);return{state:p.get("state"),code:p.get("code")||void 0,error:p.get("error")||void 0,error_description:p.get("error_description")||void 0}})(n.join("")),s=this.transactionManager.get();if(!s)throw new Error("Invalid state");if(this.transactionManager.remove(),a)throw new vR(a,o||a,r,s.appState);if(!s.code_verifier||s.state&&s.state!==r)throw new Error("Invalid state");const l=s.organizationId,f=s.nonce,c=s.redirect_uri;return await this._requestToken(Object.assign({audience:s.audience,scope:s.scope,code_verifier:s.code_verifier,grant_type:"authorization_code",code:i},c?{redirect_uri:c}:{}),{nonceIn:f,organizationId:l}),{appState:s.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const r=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Py(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((a,o)=>{let s=GS[o];return s||(s=a().finally(()=>{delete GS[o],s=null}),GS[o]=s),s})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return t.detailedResponse?i:i==null?void 0:i.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=_s(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(i)return i}if(n!=="cache-only"){if(!await(async(i,a=3)=>{for(let o=0;o<a;o++)if(await i())return!0;return!1})(()=>WS.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new U1;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const f=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(f)return f}const i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:a,access_token:o,oauthTokenScope:s,expires_in:l}=i;return Object.assign(Object.assign({id_token:a,access_token:o},s?{scope:s}:null),{expires_in:l})}finally{await WS.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var r;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Py(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},CVe),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new ks({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:r}=n,i=_s(n,["federated"]),a=r?"&federated":"";return this._url(`/v2/logout?${sx(Object.assign({clientId:t.clientId},i))}`)+a}async logout(t={}){const n=PF(t),{openUrl:r}=n,i=_s(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const a=this._buildLogoutUrl(i);r?await r(a):r!==!1&&window.location.assign(a)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:i,state:a,nonce:o,code_verifier:s,redirect_uri:l,scope:f,audience:c}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new wo("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const d=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,p=await((y,b,R=60)=>new Promise((A,$)=>{const D=window.document.createElement("iframe");D.setAttribute("width","0"),D.setAttribute("height","0"),D.style.display="none";const M=()=>{window.document.body.contains(D)&&(window.document.body.removeChild(D),window.removeEventListener("message",j,!1))};let j;const U=setTimeout(()=>{$(new U1),M()},1e3*R);j=function(V){if(V.origin!=b||!V.data||V.data.type!=="authorization_response")return;const X=V.source;X&&X.close(),V.data.response.error?$(wo.fromPayload(V.data.response)):A(V.data.response),clearTimeout(U),window.removeEventListener("message",j,!1),setTimeout(M,2e3)},window.addEventListener("message",j,!1),window.document.body.appendChild(D),D.setAttribute("src",y)}))(i,this.domainUrl,d);if(a!==p.state)throw new Error("Invalid state");const g=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:s,code:p.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o});return Object.assign(Object.assign({},g),{scope:f,oauthTokenScope:g.scope,audience:c})}catch(d){throw d.error==="login_required"&&this.logout({openUrl:!1}),d}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new ks({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new fX(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const r=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,i=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const a=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),i&&{timeout:i}));return Object.assign(Object.assign({},a),{scope:t.authorizationParams.scope,oauthTokenScope:a.scope,audience:t.authorizationParams.audience||"default"})}catch(a){if((a.message.indexOf("Missing Refresh Token")>-1||a.message&&a.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw a}}async _saveEntryInCache(t){const{id_token:n,decodedToken:r}=t,i=_s(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(i)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new ks({clientId:this.options.clientId,audience:t,scope:this.scope})),r=this.userCache.get("@@user@@");return n&&n.id_token===(r==null?void 0:r.id_token)?r:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:r}){const i=await this.cacheManager.get(new ks({scope:t,audience:n,clientId:r}),60);if(i&&i.access_token){const{access_token:a,oauthTokenScope:o,expires_in:s}=i,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:a},o?{scope:o}:null),{expires_in:s})}}async _requestToken(t,n){const{nonceIn:r,organizationId:i}=n||{},a=await DVe(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),o=await this._verifyIdToken(a.id_token,r,i);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},a),{decodedToken:o,scope:t.scope,audience:t.audience||"default"}),a.scope?{oauthTokenScope:a.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(o.claims.org_id),Object.assign(Object.assign({},a),{decodedToken:o})}}var gX={isAuthenticated:!1,isLoading:!0},cl=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},GVe=pi(pi({},gX),{buildAuthorizeUrl:cl,buildLogoutUrl:cl,getAccessTokenSilently:cl,getAccessTokenWithPopup:cl,getIdTokenClaims:cl,loginWithRedirect:cl,loginWithPopup:cl,logout:cl,handleRedirectCallback:cl}),yX=z.createContext(GVe),MF=function(e){SVe(t,e);function t(n,r){var i=e.call(this,r||n)||this;return i.error=n,i.error_description=r,Object.setPrototypeOf(i,t.prototype),i}return t}(Error),WVe=/[?&]code=[^&]+/,zVe=/[?&]state=[^&]+/,KVe=/[?&]error=[^&]+/,YVe=function(e){return e===void 0&&(e=window.location.search),(WVe.test(e)||KVe.test(e))&&zVe.test(e)},vX=function(e){return function(t){return t instanceof Error?t:t!==null&&typeof t=="object"&&"error"in t&&typeof t.error=="string"?"error_description"in t&&typeof t.error_description=="string"?new MF(t.error,t.error_description):new MF(t.error):new Error(e)}},BF=vX("Login failed"),zS=vX("Get access token failed"),bX=function(e){var t;e!=null&&e.redirectUri&&(console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),e.authorizationParams=e.authorizationParams||{},e.authorizationParams.redirect_uri=e.redirectUri,delete e.redirectUri),!((t=e==null?void 0:e.authorizationParams)===null||t===void 0)&&t.redirectUri&&(console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),e.authorizationParams.redirect_uri=e.authorizationParams.redirectUri,delete e.authorizationParams.redirectUri)},ZVe=function(e,t){switch(t.type){case"LOGIN_POPUP_STARTED":return pi(pi({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return pi(pi({},e),{isAuthenticated:!!t.user,user:t.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return e.user===t.user?e:pi(pi({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return pi(pi({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return pi(pi({},e),{isLoading:!1,error:t.error})}},XVe=function(e){return bX(e),pi(pi({},e),{auth0Client:{name:"auth0-react",version:"2.1.0"}})},QVe=function(e){window.history.replaceState({},document.title,(e==null?void 0:e.returnTo)||window.location.pathname)},eqe=function(e){var t=e.children,n=e.skipRedirectCallback,r=e.onRedirectCallback,i=r===void 0?QVe:r,a=e.context,o=a===void 0?yX:a,s=_Ve(e,["children","skipRedirectCallback","onRedirectCallback","context"]),l=z.useState(function(){return new qVe(XVe(s))})[0],f=z.useReducer(ZVe,gX),c=f[0],d=f[1],p=z.useRef(!1);z.useEffect(function(){p.current||(p.current=!0,function(){return od(void 0,void 0,void 0,function(){var j,U,V;return sd(this,function(X){switch(X.label){case 0:return X.trys.push([0,7,,8]),j=void 0,YVe()&&!n?[4,l.handleRedirectCallback()]:[3,3];case 1:return U=X.sent().appState,[4,l.getUser()];case 2:return j=X.sent(),i(U,j),[3,6];case 3:return[4,l.checkSession()];case 4:return X.sent(),[4,l.getUser()];case 5:j=X.sent(),X.label=6;case 6:return d({type:"INITIALISED",user:j}),[3,8];case 7:return V=X.sent(),d({type:"ERROR",error:BF(V)}),[3,8];case 8:return[2]}})})}())},[l,i,n]);var g=z.useCallback(function(j){return bX(j),l.loginWithRedirect(j)},[l]),y=z.useCallback(function(j,U){return od(void 0,void 0,void 0,function(){var V,X;return sd(this,function(ie){switch(ie.label){case 0:d({type:"LOGIN_POPUP_STARTED"}),ie.label=1;case 1:return ie.trys.push([1,3,,4]),[4,l.loginWithPopup(j,U)];case 2:return ie.sent(),[3,4];case 3:return V=ie.sent(),d({type:"ERROR",error:BF(V)}),[2];case 4:return[4,l.getUser()];case 5:return X=ie.sent(),d({type:"LOGIN_POPUP_COMPLETE",user:X}),[2]}})})},[l]),b=z.useCallback(function(j){return j===void 0&&(j={}),od(void 0,void 0,void 0,function(){return sd(this,function(U){switch(U.label){case 0:return[4,l.logout(j)];case 1:return U.sent(),(j.openUrl||j.openUrl===!1)&&d({type:"LOGOUT"}),[2]}})})},[l]),R=z.useCallback(function(j){return od(void 0,void 0,void 0,function(){var U,V,X,ie;return sd(this,function(le){switch(le.label){case 0:return le.trys.push([0,2,3,5]),[4,l.getTokenSilently(j)];case 1:return U=le.sent(),[3,5];case 2:throw V=le.sent(),zS(V);case 3:return X=d,ie={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return X.apply(void 0,[(ie.user=le.sent(),ie)]),[7];case 5:return[2,U]}})})},[l]),A=z.useCallback(function(j,U){return od(void 0,void 0,void 0,function(){var V,X,ie,le;return sd(this,function(Q){switch(Q.label){case 0:return Q.trys.push([0,2,3,5]),[4,l.getTokenWithPopup(j,U)];case 1:return V=Q.sent(),[3,5];case 2:throw X=Q.sent(),zS(X);case 3:return ie=d,le={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return ie.apply(void 0,[(le.user=Q.sent(),le)]),[7];case 5:return[2,V]}})})},[l]),$=z.useCallback(function(){return l.getIdTokenClaims()},[l]),D=z.useCallback(function(j){return od(void 0,void 0,void 0,function(){var U,V,X;return sd(this,function(ie){switch(ie.label){case 0:return ie.trys.push([0,2,3,5]),[4,l.handleRedirectCallback(j)];case 1:return[2,ie.sent()];case 2:throw U=ie.sent(),zS(U);case 3:return V=d,X={type:"HANDLE_REDIRECT_COMPLETE"},[4,l.getUser()];case 4:return V.apply(void 0,[(X.user=ie.sent(),X)]),[7];case 5:return[2]}})})},[l]),M=z.useMemo(function(){return pi(pi({},c),{getAccessTokenSilently:R,getAccessTokenWithPopup:A,getIdTokenClaims:$,loginWithRedirect:g,loginWithPopup:y,logout:b,handleRedirectCallback:D})},[c,R,A,$,g,y,b,D]);return mn.createElement(o.Provider,{value:M},t)},tqe=function(e){return e===void 0&&(e=yX),z.useContext(e)};const nqe={zh:"zh-CN"};function EX({config:e,locale:t="en"}={}){const{loginWithPopup:n,getAccessTokenSilently:r,logout:i,user:a}=tqe(),o=_t(async()=>(await n({authorizationParams:{ui_locales:nqe[t]||t}}),await r())),s=_t(async(c,d)=>{try{await r();const p=new URL(d);p.searchParams.set("returnTo",window.location.origin);const y=window.open(p.href,"auth0-logout","scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=10,height=10,left=0,top=0");try{await uz(()=>{try{return!!y.document.body.innerHTML}catch{return!1}},{timeout:3e3}),y.close(),c()}catch{y==null||y.close(),window.location.replace(p.href)}}catch{c()}}),l=_t(({hack:c=!1}={})=>new Promise(d=>{i({clientId:e==null?void 0:e.clientId,openUrl(p){const g=document.createElement("iframe");g.src=p,g.width=0,g.height=0,g.style.display="none",g.onload=()=>{document.body.removeChild(g),c?s(d,p):d()},document.body.appendChild(g)}})})),f=_t(c=>e?G.jsx(eqe,{domain:e.domain,clientId:e.clientId,authorizeTimeoutInSeconds:5*60,useCookiesForTransactions:!1,useRefreshTokens:!1,sessionCheckExpiryDays:1/24/3600,children:c}):c);return{user:a,WithAuth0:f,login:o,logout:l,config:e}}function rqe(e){return e==null?void 0:e.did}function KE(e){var t;return(e==null?void 0:e.connectedAccounts)||((t=e==null?void 0:e.extraConfigs)==null?void 0:t.connectedAccounts)||[]}function AR(e){var t;return(e==null?void 0:e.sourceProvider)||((t=e==null?void 0:e.extraConfigs)==null?void 0:t.sourceProvider)||"wallet"}function TX(e){return KE(e).map(n=>n.provider)}function iqe(e){return KE(e).map(r=>r.did)}function AX(e){return KE(e).find(r=>r.provider==="wallet")}function aqe(e){const t=AX(e);return t==null?void 0:t.did}function wX({session:e}){const[t,n]=z.useState({did:"",wallet:"",walletDid:"",permanentDid:"",connectedDids:[],connectedAccounts:[],sourceProvider:"",sourceProviders:[]});return z.useEffect(()=>{if(e!=null&&e.user){const r=rqe(e.user),i=aqe(e.user),a=KE(e.user),o=iqe(e.user),s=AX(e.user),l=AR(e.user),f=TX(e.user);n({did:r,wallet:s,walletDid:i,permanentDid:r,connectedDids:o,connectedAccounts:a,sourceProvider:l,sourceProviders:f})}},[e==null?void 0:e.user]),t}var SX=function(t){return G.jsxs("svg",{...t,children:[G.jsx("rect",{x:"1",y:"1",width:"418",height:"473",rx:"19",fill:"#FBFBFB"}),G.jsx("g",{clipPath:"url(#a)",children:G.jsx("path",{opacity:".7",fill:"#DDD",d:"M0 100h420v168H0z"})}),G.jsx("circle",{cx:"210",cy:"248",r:"60",fill:"#C4C5CA"}),G.jsx("path",{d:"M181 284l7.2-7.2 7.2 7.2 7.2-10.8 7.2 10.8 7.2-10.8 7.2 10.8 7.2-7.2 7.2 7.2v-43.2c0-15.907-12.893-28.8-28.8-28.8S181 224.893 181 240.8V284z",fill:"#C4C5CA",stroke:"#fff",strokeWidth:"5",strokeLinejoin:"round"}),G.jsx("path",{d:"M200.797 240.812h3.6-3.6zm21.6 0h3.6-3.6z",fill:"#C4C5CA"}),G.jsx("path",{d:"M200.797 240.812h3.6m18 0h3.6",stroke:"#fff",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),G.jsx("path",{opacity:".7",d:"M24 29h189v40H24V29z",fill:"#C4C5CA"}),G.jsx("path",{opacity:".42",fill:"#C4C5CA",d:"M313 24h83v14h-83z"}),G.jsx("path",{opacity:".7",fill:"#C4C5CA",d:"M291 50h105v26H291z"}),G.jsx("path",{d:"M177.388 388.4c-1.733 0-3.32-.213-4.76-.64a12.355 12.355 0 0 1-3.8-1.88 15.072 15.072 0 0 1-2.96-3l3.76-4.28c1.307 1.813 2.6 3.053 3.88 3.72 1.307.64 2.72.96 4.24.96.827 0 1.56-.107 2.2-.32.667-.24 1.187-.573 1.56-1 .373-.427.56-.933.56-1.52 0-.427-.093-.813-.28-1.16a2.764 2.764 0 0 0-.8-.96 5.139 5.139 0 0 0-1.24-.76 8.666 8.666 0 0 0-1.6-.6 12.728 12.728 0 0 0-1.92-.44c-1.493-.347-2.8-.76-3.92-1.24-1.12-.507-2.053-1.12-2.8-1.84a7.456 7.456 0 0 1-1.68-2.52c-.347-.933-.52-1.987-.52-3.16 0-1.2.267-2.307.8-3.32a8.187 8.187 0 0 1 2.2-2.68 10.68 10.68 0 0 1 3.28-1.72c1.253-.4 2.573-.6 3.96-.6 1.707 0 3.2.2 4.48.6 1.28.373 2.387.92 3.32 1.64.96.72 1.76 1.6 2.4 2.64l-3.8 3.68a9.48 9.48 0 0 0-1.84-1.88 6.482 6.482 0 0 0-2.12-1.12 6.84 6.84 0 0 0-2.32-.4c-.88 0-1.64.12-2.28.36-.64.213-1.147.533-1.52.96-.347.427-.52.947-.52 1.56 0 .48.12.907.36 1.28s.587.707 1.04 1c.453.267 1 .507 1.64.72.64.213 1.347.4 2.12.56 1.467.293 2.787.68 3.96 1.16 1.173.48 2.173 1.067 3 1.76a6.784 6.784 0 0 1 1.96 2.4c.453.907.68 1.933.68 3.08 0 1.893-.453 3.507-1.36 4.84-.907 1.333-2.16 2.36-3.76 3.08-1.6.693-3.467 1.04-5.6 1.04zm17.394-.4v-26.52h5.68V388h-5.68zm-3.96-16.08v-5.08h13.96v5.08h-13.96zm25.387 16.48c-1.76 0-3.346-.48-4.76-1.44-1.413-.96-2.533-2.267-3.36-3.92-.826-1.653-1.24-3.547-1.24-5.68 0-2.133.414-4.013 1.24-5.64.854-1.653 2-2.947 3.44-3.88 1.44-.96 3.08-1.44 4.92-1.44 1.04 0 1.987.16 2.84.48.88.293 1.64.707 2.28 1.24a7.831 7.831 0 0 1 1.68 1.84c.454.693.774 1.44.96 2.24l-1.2-.2v-5.16h5.64V388h-5.72v-5.08l1.28-.12a6.81 6.81 0 0 1-1.04 2.12 8.213 8.213 0 0 1-1.8 1.8c-.693.507-1.48.92-2.36 1.24-.88.293-1.813.44-2.8.44zm1.56-4.92c1.067 0 2-.253 2.8-.76.8-.507 1.414-1.213 1.84-2.12.454-.933.68-2.013.68-3.24 0-1.2-.226-2.253-.68-3.16-.426-.907-1.04-1.613-1.84-2.12-.8-.533-1.733-.8-2.8-.8-1.04 0-1.96.267-2.76.8-.773.507-1.386 1.213-1.84 2.12-.453.907-.68 1.96-.68 3.16 0 1.227.227 2.307.68 3.24.454.907 1.067 1.613 1.84 2.12.8.507 1.72.76 2.76.76zm19.066 13.72l4.64-10.88.08 3.28-10.32-22.76h6.44l5.16 12.2c.213.453.413.987.6 1.6.213.587.387 1.16.52 1.72l-.96.4c.16-.453.347-.973.56-1.56.213-.587.427-1.213.64-1.88l4.44-12.48h6.48l-8.88 21.16-3.64 9.2h-5.76zM92.8 438l10.96-28h5.36l10.92 28h-6.16l-5.64-15.08c-.16-.427-.36-.973-.6-1.64l-.68-2.12-.68-2.12a27.95 27.95 0 0 1-.48-1.72l1.08-.04c-.16.613-.346 1.253-.56 1.92-.186.64-.386 1.307-.6 2-.213.667-.44 1.32-.68 1.96-.24.64-.466 1.267-.68 1.88L98.72 438H92.8zm5.08-5.88l1.96-4.84h12.84l2 4.84h-16.8zm25.292 5.88v-21.16h5.44l.16 4.32-1.12.48c.293-.96.813-1.827 1.56-2.6a8.83 8.83 0 0 1 2.76-1.92 8.1 8.1 0 0 1 3.36-.72c1.6 0 2.933.32 4 .96 1.093.64 1.907 1.613 2.44 2.92.56 1.28.84 2.867.84 4.76V438h-5.68v-12.52c0-.96-.133-1.76-.4-2.4-.267-.64-.68-1.107-1.24-1.4-.533-.32-1.2-.453-2-.4-.64 0-1.24.107-1.8.32a3.94 3.94 0 0 0-1.4.84c-.373.373-.68.8-.92 1.28-.213.48-.32 1-.32 1.56V438h-5.68zm34.723.4c-2.16 0-4.093-.467-5.8-1.4a10.853 10.853 0 0 1-4-3.92c-.96-1.653-1.44-3.547-1.44-5.68 0-2.133.48-4.013 1.44-5.64a10.853 10.853 0 0 1 4-3.92c1.707-.96 3.64-1.44 5.8-1.44 2.133 0 4.04.48 5.72 1.44 1.707.96 3.04 2.267 4 3.92.96 1.627 1.44 3.507 1.44 5.64 0 2.133-.48 4.027-1.44 5.68-.96 1.653-2.293 2.96-4 3.92-1.68.933-3.587 1.4-5.72 1.4zm0-4.96c1.04 0 1.973-.253 2.8-.76a5.371 5.371 0 0 0 1.92-2.16c.48-.933.72-1.973.72-3.12 0-1.173-.24-2.213-.72-3.12-.453-.933-1.093-1.653-1.92-2.16-.827-.533-1.76-.8-2.8-.8-1.067 0-2.013.267-2.84.8a5.673 5.673 0 0 0-1.96 2.16c-.48.907-.707 1.947-.68 3.12-.027 1.147.2 2.187.68 3.12a5.673 5.673 0 0 0 1.96 2.16c.827.507 1.773.76 2.84.76zm15.433 4.56v-21.16h5.44l.16 4.32-1.12.48c.294-.96.814-1.827 1.56-2.6a8.853 8.853 0 0 1 2.76-1.92 8.1 8.1 0 0 1 3.36-.72c1.6 0 2.934.32 4 .96 1.094.64 1.907 1.613 2.44 2.92.56 1.28.84 2.867.84 4.76V438h-5.68v-12.52c0-.96-.133-1.76-.4-2.4-.266-.64-.68-1.107-1.24-1.4-.533-.32-1.2-.453-2-.4-.64 0-1.24.107-1.8.32a3.94 3.94 0 0 0-1.4.84c-.373.373-.68.8-.92 1.28-.213.48-.32 1-.32 1.56V438h-5.68zm27.648 9.2l4.64-10.88.08 3.28-10.32-22.76h6.44l5.16 12.2c.213.453.413.987.6 1.6.213.587.386 1.16.52 1.72l-.96.4c.16-.453.346-.973.56-1.56.213-.587.426-1.213.64-1.88l4.44-12.48h6.48l-8.88 21.16-3.64 9.2h-5.76zm21.297-9.2v-21.16h5.48l.12 4.04-.84.16c.293-.693.68-1.32 1.16-1.88.48-.56 1.04-1.04 1.68-1.44.666-.4 1.36-.707 2.08-.92.72-.24 1.44-.36 2.16-.36 1.093 0 2.08.173 2.96.52.88.347 1.626.893 2.24 1.64.613.72 1.093 1.68 1.44 2.88l-.88-.08.28-.64a6.852 6.852 0 0 1 1.32-1.72 8.178 8.178 0 0 1 1.8-1.36c.666-.4 1.36-.707 2.08-.92a7.448 7.448 0 0 1 2.12-.32c1.653 0 3.026.333 4.12 1 1.093.64 1.906 1.613 2.44 2.92.56 1.307.84 2.907.84 4.8V438h-5.68v-12.44c0-.96-.134-1.747-.4-2.36-.267-.613-.654-1.067-1.16-1.36-.507-.32-1.16-.48-1.96-.48a4.59 4.59 0 0 0-1.72.32c-.507.187-.96.467-1.36.84a3.74 3.74 0 0 0-.88 1.24 3.885 3.885 0 0 0-.32 1.6V438h-5.68v-12.48c0-.88-.147-1.627-.44-2.24-.267-.64-.654-1.12-1.16-1.44-.507-.32-1.134-.48-1.88-.48a4.59 4.59 0 0 0-1.72.32 3.608 3.608 0 0 0-1.32.84c-.374.347-.68.76-.92 1.24-.214.48-.32 1-.32 1.56V438h-5.68zm47.848.4c-2.16 0-4.093-.467-5.8-1.4a10.853 10.853 0 0 1-4-3.92c-.96-1.653-1.44-3.547-1.44-5.68 0-2.133.48-4.013 1.44-5.64a10.853 10.853 0 0 1 4-3.92c1.707-.96 3.64-1.44 5.8-1.44 2.134 0 4.04.48 5.72 1.44 1.707.96 3.04 2.267 4 3.92.96 1.627 1.44 3.507 1.44 5.64 0 2.133-.48 4.027-1.44 5.68-.96 1.653-2.293 2.96-4 3.92-1.68.933-3.586 1.4-5.72 1.4zm0-4.96c1.04 0 1.974-.253 2.8-.76a5.371 5.371 0 0 0 1.92-2.16c.48-.933.72-1.973.72-3.12 0-1.173-.24-2.213-.72-3.12-.453-.933-1.093-1.653-1.92-2.16-.826-.533-1.76-.8-2.8-.8-1.066 0-2.013.267-2.84.8a5.681 5.681 0 0 0-1.96 2.16c-.48.907-.706 1.947-.68 3.12-.026 1.147.2 2.187.68 3.12a5.681 5.681 0 0 0 1.96 2.16c.827.507 1.774.76 2.84.76zm22.714 4.96c-1.547 0-2.88-.333-4-1-1.093-.693-1.947-1.667-2.56-2.92-.587-1.28-.88-2.813-.88-4.6v-13.04h5.68v12.12c0 .96.16 1.8.48 2.52.32.693.773 1.227 1.36 1.6.587.373 1.307.56 2.16.56.613 0 1.187-.093 1.72-.28a3.993 3.993 0 0 0 1.36-.88c.373-.373.667-.813.88-1.32.213-.507.32-1.053.32-1.64v-12.68h5.68V438h-5.4l-.2-4.36 1.04-.48a7.107 7.107 0 0 1-1.6 2.68 7.981 7.981 0 0 1-2.68 1.88c-1.04.453-2.16.68-3.36.68zm25.035 0c-1.973 0-3.733-.32-5.28-.96-1.52-.667-2.747-1.573-3.68-2.72l3.52-3.04c.827.88 1.747 1.52 2.76 1.92a8.75 8.75 0 0 0 3.04.56c.4 0 .76-.04 1.08-.12.347-.107.64-.24.88-.4.24-.187.413-.4.52-.64.133-.267.2-.547.2-.84 0-.587-.24-1.053-.72-1.4-.267-.133-.68-.293-1.24-.48-.56-.213-1.28-.44-2.16-.68-1.36-.347-2.52-.747-3.48-1.2-.933-.48-1.68-1.013-2.24-1.6a6.755 6.755 0 0 1-1.12-1.8c-.24-.667-.36-1.4-.36-2.2 0-.96.213-1.827.64-2.6a6.138 6.138 0 0 1 1.76-2.04 8.66 8.66 0 0 1 2.64-1.28c.987-.32 2.027-.48 3.12-.48s2.16.133 3.2.4 2 .653 2.88 1.16a9.77 9.77 0 0 1 2.36 1.72l-3.04 3.36a9.806 9.806 0 0 0-1.64-1.24 8.324 8.324 0 0 0-1.84-.88c-.64-.213-1.213-.32-1.72-.32-.453 0-.867.04-1.24.12-.347.08-.64.2-.88.36-.24.16-.427.373-.56.64-.107.24-.16.507-.16.8 0 .293.067.573.2.84.16.267.373.493.64.68.293.16.72.347 1.28.56a30.74 30.74 0 0 0 2.36.72c1.28.347 2.36.733 3.24 1.16.907.427 1.627.92 2.16 1.48.453.48.787 1.027 1 1.64.213.613.32 1.293.32 2.04 0 1.307-.373 2.48-1.12 3.52-.72 1.013-1.72 1.813-3 2.4-1.28.56-2.72.84-4.32.84z",fill:"#25292F"}),G.jsx("rect",{x:"1",y:"1",width:"418",height:"558",rx:"19",stroke:"#DDD",strokeWidth:"2"}),G.jsx("defs",{children:G.jsx("clipPath",{id:"a",children:G.jsx("path",{fill:"#fff",transform:"translate(0 100)",d:"M0 0h420v168H0z"})})})]})};SX.defaultProps={width:"420",height:"475",viewBox:"0 0 420 475",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const wR=z.createContext(),{Provider:oqe,Consumer:sqe}=wR,u2=`${Vi}/oauth`,NF=async()=>{},_X=e=>e?typeof e=="string"?{sessionToken:e}:uE(e,["sessionToken","refreshToken","visitorId"]):{},c2={zh:{bindOAuth:"绑定第三方登录",bind:"绑定",noneOAuth:"未配置第三方登录方式",bindOAuthSucceed:"绑定第三方登录成功",bindOAuthFailed:"绑定第三方登录失败",switchPassport:"切换通行证",switchPassportFailed:"切换通行证失败",switchPassportSucceed:"切换通行证成功",choosePassport:"请选择一个通行证",switch:"切换",cancel:"取消",currentRole:"当前角色:",passport:"通行证",noPassports:"没有可更换的通行证",getPassportFailed:"获取通行证失败",loginRequired:"授权请求被拒绝"},en:{bindOAuth:"Bind third party login",bind:"Bind ",noneOAuth:"Third party login is not configured",bindOAuthSucceed:"Bind third party login succeed",bindOAuthFailed:"Bind third party login failed",switchPassport:"Switch passport",switchPassportFailed:"Switch passport failed",switchPassportSucceed:"Switch passport succeed",choosePassport:"Select a passport to switch",switch:"Switch",cancel:"Cancel",currentRole:"Current role: ",passport:"Passport",noPassports:"No passport to switch",getPassportFailed:"Get passports failed",loginRequired:"You have declined the authentication request"}};function f2({children:e,locale:t,onBindOAuth:n,onSwitchPassport:r}){var T,u,h;const i=Di({bindFnSession:void 0,baseUrl:"/"}),a=en(()=>Wl({baseURL:On(i.baseUrl,u2)}),[i.baseUrl,u2]),o=c2[t]||c2.en,s={open:!1,currentUser:null,passports:[],choosePassport:void 0},[l,f]=z.useState(!1),[c,d]=z.useState(()=>NF),[p,g]=z.useState(()=>NF),[y,b]=z.useState(Bn),[R,A]=z.useState(!1),[$,D]=z.useState(xl(s)),M=((u=(T=window==null?void 0:window.blocklet)==null?void 0:T.settings)==null?void 0:u.oauth)||{},j=Object.entries(M).map(([E,S])=>({...S,provider:E})).filter(E=>E.enabled),{WithAuth0:U}=EX({config:M==null?void 0:M.auth0,locale:t}),V=async({session:E}={})=>{i.bindFnSession=E,j.length===1?await le(j[0]):j.length>1&&A(!0)},X=async(E={})=>{try{const{data:S}=await a.get("/passports");S.length?D({open:!0,passports:S||[],currentUser:E}):Ci.error(o.noPassports)}catch(S){Ci.error(S.message||o.getPassportFailed)}},ie=async()=>{try{const{data:E}=await a.post("/switch",{passportId:$.choosePassport}),{sessionToken:S,refreshToken:C}=_X(E);r({sessionToken:S,refreshToken:C}),Ci.success(o.switchPassportSucceed),D(xl(s))}catch(E){Ci.error(E.message||o.switchPassportFailed)}},le=async E=>{var S,C;f(!0);try{const I=await y(E),x=(C=(S=i.bindFnSession)==null?void 0:S.user)==null?void 0:C.sourceAppPid;await a.post("/bind",{locale:t,provider:E.provider,token:I,sourceAppPid:x,config:{clientId:E.clientId,domain:E.domain}}),A(!1),Ci.success(o.bindOAuthSucceed),n(E)}catch(I){p({provider:E.provider}).catch(console.error),Ci.error(aX(I,o.bindOAuthFailed))}finally{A(!1)}},Q=E=>{i.baseUrl=E||"/"},P=Di({user:null,checking:!1,loading:!1,error:"",status:"",reset(){this.loading=!1,this.checking=!1,this.error="",this.status=""}});return G.jsxs(oqe,{value:{oauthConfigList:j,configs:M,locale:t,bindOAuth:V,loginOAuth:c,logoutOAuth:p,setLoginOAuth:d,setLogoutOAuth:g,getToken:y,setGetToken:b,switchOAuthPassport:X,baseUrl:i.baseUrl,setBaseUrl:Q,translation:o,oauthState:P},children:[U(e),G.jsx(AE,{title:o.bindOAuth,open:R,onClose:()=>A(!1),PaperProps:{style:{minHeight:"auto"}},children:G.jsxs(yt,{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",gap:2,children:[j.map(E=>G.jsxs(B6,{variant:"contained",onClick:()=>le(E),loading:l,children:[o.bind,E.provider]},E.provider)),j.length===0&&G.jsx(hR,{children:o.noneOAuth})]})}),G.jsxs(wE,{open:$.open,title:o.switchPassport,onConfirm:ie,onCancel:()=>D(xl(s)),confirmButton:{text:o.switch,props:{variant:"contained",color:"primary"}},cancelButton:{text:o.cancel,props:{color:"inherit"}},PaperProps:{style:{width:600}},children:[G.jsxs(yt,{mb:2,children:[o.currentRole,(h=$.currentUser)==null?void 0:h.role]}),G.jsx(mR,{width:160,height:240,cardSpace:24,list:[()=>G.jsx(SX,{}),...$.passports.map(E=>({src:E.display,name:E.title}))],onSelect:E=>{D(S=>({...S,choosePassport:E>0?$.passports[E-1].id:void 0}))},defaultIndex:0})]})]})}function SR(){var A;const{locale:e,setLoginOAuth:t,setLogoutOAuth:n,getToken:r,setGetToken:i,baseUrl:a,oauthState:o,...s}=z.useContext(wR),l=c2[e]||c2.en,f=rf(),c=en(()=>Wl({baseURL:On(a,u2)}),[a,u2]),{login:d,logout:p,user:g,config:y}=EX({config:(A=s==null?void 0:s.configs)==null?void 0:A.auth0,locale:e});z.useEffect(()=>{g&&(o.user=g)},[g]);const[,b,R]=GLe();return z.useEffect(()=>{i(()=>async({provider:$,enabled:D=!1}={})=>{if(!D)return;let M;return $==="auth0"&&(M=await d()),M})},[d,i]),z.useEffect(()=>{t(()=>async($,{action:D="login",...M}={})=>{b($.provider);let j;try{j=await r($)}catch(U){throw U.message==="Login required"?new Error(l.loginRequired):U}if(j){const{data:U}=await c.post("/login",{...M,action:D,locale:e,provider:$.provider,token:j,visitorId:f});return _X(U)}return{}})},[c,r,e,t,b,l.loginRequired,f]),z.useEffect(()=>{n(()=>async({session:$,provider:D,force:M=!1,hack:j=!1}={})=>{let U=R(),V=[];if($){const{user:X}=$;U=AR(X),V=TX(X)}if(U&&V.push(U),D&&V.push(D),(M||V.includes("auth0"))&&y!=null&&y.clientId)return p({hack:j})})},[R,p,y,n]),{...s,getProvider:R,oauthState:o}}f2.propTypes={children:ge.node.isRequired,locale:ge.string,onBindOAuth:ge.func,onSwitchPassport:ge.func};f2.defaultProps={locale:"en",onBindOAuth:Bn,onSwitchPassport:Bn};function xX({session:e,children:t}){const n=wX({session:e});return t instanceof Function?t(n):null}xX.propTypes={session:ge.object.isRequired,children:ge.func.isRequired};var lqe=HW,uqe=Cm,cqe=Tm,fqe=Aa,dqe=bf,pqe=Am,hqe=iE,mqe=aE,gqe="[object Map]",yqe="[object Set]",vqe=Object.prototype,bqe=vqe.hasOwnProperty;function Eqe(e){if(e==null)return!0;if(dqe(e)&&(fqe(e)||typeof e=="string"||typeof e.splice=="function"||pqe(e)||mqe(e)||cqe(e)))return!e.length;var t=uqe(e);if(t==gqe||t==yqe)return!e.size;if(hqe(e))return!lqe(e).length;for(var n in e)if(bqe.call(e,n))return!1;return!0}var Tqe=Eqe;const CX=Ut(Tqe);function dh(e=window.blocklet){var n;return(((n=e==null?void 0:e.settings)==null?void 0:n.federated)||{}).master}function RX(e=window.blocklet){var n;return(((n=e==null?void 0:e.settings)==null?void 0:n.federated)||{}).config}function Hm(e=window.blocklet){const t=RX(e);return(t==null?void 0:t.status)==="approved"}function Aqe(e=window.blocklet){const t=dh(e);return!CX(t)?{appId:t.appId,appName:t.appName,appDescription:t.appDescription,appLogo:t.appLogo,appPid:t.appPid,appUrl:t.appUrl,version:t.version,sourceAppPid:t.appPid,provider:"wallet"}:null}function wqe(e=window.blocklet){return e?{appId:e.appId,appName:e.appName,appDescription:e.appDescription,appLogo:e.appLogo,appPid:e.appPid,appUrl:e.appUrl,version:e.version,sourceAppPid:null,provider:"wallet"}:window.env?(e=window.env,{appId:e.appId,appName:e.appName,appDescription:e.appDescription,appUrl:e.baseUrl,sourceAppPid:null,provider:"wallet",type:"server"}):null}function $X(e){const t=[],n=Aqe(e),r=wqe(e),i=Hm(e);return r&&t.push(r),n&&(n==null?void 0:n.appId)!==(r==null?void 0:r.appId)&&i&&t.push(n),t.reverse()}const IX=Wl();async function Sqe(){const e=On(Vi,"/api/federated/loginMaster"),{data:t}=await IX.post(e);return t}async function KS(e={},{fetchToken:t=!0,blocklet:n}={}){if(!Hm())return console.warn("Federated not enabled"),null;let i,a;t&&({sessionToken:i,refreshToken:a}=await Sqe());const o=dh(n),s=On(o.appUrl,Vi,"/api/federated/login"),l={withCredentials:!0};i&&(l.headers={Authorization:`Bearer ${i}`});const{data:f}=await IX.post(s,e,l);return a&&await kX({mode:"login",refreshToken:a,blocklet:n}),f}async function kX({mode:e,refreshToken:t="",blocklet:n}){const r=dh(n);return new Promise(i=>{if(!["login","logout"].includes(e)){i();return}const a=document.createElement("iframe");a.style.display="none",a.onload=async()=>{await Um(500),document.body.removeChild(a),i()},a.src=On(r.appUrl,Vi,`functional/federated?mode=${e}&refreshToken=${t}`),document.body.appendChild(a)})}const FF=Wl(),YS={zh:{notFoundFederatedInfo:"未发现统一登录的信息",autoLoginFederatedFailed:"自动登录统一登录账号失败",manualLoginFederatedFailed:"手动登录统一登录账号失败"},en:{notFoundFederatedInfo:"No federated login info detected",autoLoginFederatedFailed:"Auto login federated account failed",manualLoginFederatedFailed:"Manual login federated account failed"}};function _qe({locale:e,handleLoginResult:t,login:n,logout:r,handleRefreshUser:i}){const a=Di({federatedMaster:null}),o=Hm(),s=dh(),l=RX(),f=_t(async(b=Bn,R={},A={})=>{var M,j;typeof A=="string"&&(A={origin:A});let{mode:$="auto",...D}=R;if(A.mode&&($=A.mode),$==="auto"){if(!o)throw new Error(YS[e].notFoundFederatedInfo);try{const U=await KS({appId:globalThis.blocklet.appId},{fetchToken:!1});t({...U,encrypted:!1}),await i(!0,!0),b()}catch(U){const V=U!=null&&U.response?(M=U.response)==null?void 0:M.data:U==null?void 0:U.message;b(V||YS[e].autoLoginFederatedFailed)}}else if($==="manual")try{n(async()=>{await KS({appId:globalThis.blocklet.appId,onlyWriteCookie:!0}),b()},{...D},A)}catch(U){const V=U!=null&&U.response?(j=U.response)==null?void 0:j.data:U==null?void 0:U.message;b(V||YS[e].autoLoginFederatedFailed)}}),c=_t(async()=>{const b=On(s.appUrl||"",Vi,"/api/federated/prelogin"),{data:R}=await FF.post(b,{appId:globalThis.blocklet.appId},{withCredentials:!0});return R}),d=_t(async()=>{if(o){const b=await c();if(a.federatedMaster=b,!(b!=null&&b.user))return r(),!0}return!1}),p=_t(async()=>{if(!o){console.warn("No federated login info detected");return}try{const b=await c();new Promise(R=>{b!=null&&b.user&&o?f(A=>{A&&Ci.error(A),setTimeout(()=>{R()},500)}):R()}).then(()=>{a.federatedMaster=b})}catch{console.warn("Federated login failed")}}),g=_t(async({user:b,cleanConnectedState:R})=>{var A,$;if(b!=null&&b.sourceAppPid&&!await d()&&b.did!==(($=(A=a.federatedMaster)==null?void 0:A.user)==null?void 0:$.did))return new Promise(M=>{f(j=>{j?Ci.error(j):R(),M()})})}),y=_t(async()=>{if(o){a.federatedMaster=null;const b=On(s.appUrl||"",Vi,"/api/federated/logout");await FF.post(b,{},{withCredentials:!0});try{await kX({mode:"logout"})}catch{console.warn("mount federated logout failed")}const R=await c();a.federatedMaster=R}});return{master:s,config:l,federatedMaster:a.federatedMaster,federatedEnabled:o,tryAutoLoginFederated:p,tryAutoLogoutFederated:d,syncFederatedState:g,logoutFederated:y,loginFederated:f,loginFederatedMaster:KS}}async function xqe(e,{authServicePrefix:t,serviceHost:n}){if(!e)throw new Error("Refresh token not found");const r=Wl({baseURL:n,timeout:10*1e3,headers:{authorization:`Bearer ${encodeURIComponent(e)}`}}),{data:i}=await r.post(On(t,"/refreshSession"));return i}function Cqe({refreshTokenStorage:e,sessionTokenStorage:t,serviceHost:n,authServicePrefix:r,onRefreshTokenError:i,onRefreshTokenSuccess:a},o={}){let s=null;const l=Wl({baseURL:n,timeout:30*1e3,...o}),{getToken:f,setToken:c,removeToken:d}=t,{getToken:p,setToken:g,removeToken:y}=e;return l.interceptors.request.use(async b=>{if(t.engine==="ls"){const R=f();R&&(b.headers.authorization=`Bearer ${encodeURIComponent(R)}`)}return s&&await s,b},b=>Promise.reject(b)),l.interceptors.response.use(b=>b,async b=>{var A;const R=b.config;if(R.headers={...R==null?void 0:R.headers},((A=b==null?void 0:b.response)==null?void 0:A.status)===401&&!R._retry){R._retry=!0,s||(s=xqe(p(),{serviceHost:n,authServicePrefix:r}));try{const $=await s;return c($.nextToken),g($.nextRefreshToken),typeof a=="function"&&a($),l(R)}catch($){return d(),y(),typeof i=="function"&&i(),Promise.reject($)}finally{s=null}}return Promise.reject(b)}),l}class My extends Error{}const Rqe="nf_lang",By=e=>iX(e,localStorage.getItem("__encKey"),localStorage.getItem("__decKey"));function $qe({state:e,pageState:t,serviceHost:n,sessionTokenStorage:r,refreshTokenStorage:i,lazyRefreshToken:a,apiOptions:o={}}){const[s,l]=z.useState(1e3),f=en(()=>Cqe({sessionTokenStorage:r,refreshTokenStorage:i,serviceHost:n,authServicePrefix:t.prefix,onRefreshTokenError(){R(),e.user&&(e.user=null)}},o),[n,t.prefix]),{getToken:c,setToken:d,removeToken:p}=r,{getToken:g,setToken:y,removeToken:b}=i,R=()=>{p(),b()},A=()=>{const ie=nf({returnDomain:!1});Br.remove("connected_did",ie),Br.remove("connected_pk",ie),Br.remove("connected_app",ie),Br.remove("connected_wallet_os",ie),R()},$=_t(()=>{const ie=Br.get(Rqe)||oX();ie!==t.currentLocale&&(t.currentLocale=ie)}),D=_t((ie=!1)=>{if(a)return;const le=c();let Q=ie;const P=new Date().getTime();if(le){const{exp:T,iat:u}=jK(le);T*1e3-P<P-u*1e3&&(Q=!0)}else Q=!0;Q&&(g()?j(!1,!0):(A(),e.user&&(e.user=null)))}),M=_t(async(ie=!1)=>{const le=rf(),Q=()=>f.get(On(t.prefix,`/session?visitorId=${le}`));try{await U({showProgress:ie,requestFn:Q})}catch(P){P instanceof My&&(console.warn("try to refresh token"),await j())}}),j=_t(async(ie=!1,le=!1)=>{const Q=rf(),P=Wl({baseURL:n,timeout:10*1e3,headers:{authorization:`Bearer ${encodeURIComponent(g())}`}}),T=()=>P.post(On(t.prefix,`/refreshSession?visitorId=${Q}`));l(void 0);try{await U({showProgress:ie,requestFn:T,onlyRefreshToken:le})}catch(u){u instanceof My&&(console.warn("refresh token failed, remove all tokens"),R())}finally{l(1e3)}}),U=_t(async({showProgress:ie=!1,requestFn:le=null,onlyRefreshToken:Q=!1})=>{var P;try{if(e.loading)return console.warn("SessionProvider.refresh is currently in progress, call it will be noop"),{loading:!0};ie&&(e.loading=!0);const{data:T,status:u}=await le();if(u===400&&(R(),e.user=null,e.error=""),T.error)throw e.error=T.error,e.open=!1,new Error(T.error);if(T.user)T.nextToken&&(d(T.nextToken),T.nextRefreshToken&&y(T.nextRefreshToken)),Q||(e.open=!1,e.user=T.user,e.provider=T.provider,e.walletOS=T.walletOS);else throw ie&&(e.loading=t.autoConnect),e.open=t.autoConnect,e.user=null,e.provider="",e.walletOS="",new My("Invalid token");return{data:T,status:u}}catch(T){throw console.error("SessionProvider.refresh error",T),e.open=!1,e.error=T.message,((P=T==null?void 0:T.response)==null?void 0:P.status)===400?new My("Invalid token"):T}finally{ie&&(e.loading=!1)}}),V=_t(()=>{if(e.initialized&&e.user)try{D()}catch{}}),X=_t(ie=>{const le=Array.isArray(ie)?ie[0]:ie,{loginToken:Q,sessionToken:P,refreshToken:T,visitorId:u,encrypted:h=!0}=le,E=Q||P;E&&(d(h?By(E):E),T&&y(h?By(T):T)),u&&aW(h?By(u):u)});return WLe(()=>{$(),D()},s),{renewToken:V,handleRefreshUser:M,handleRefreshToken:j,handleLoginResult:X,decrypt:By,removeToken:R,clearSession:A,getSessionToken:c,getRefreshToken:g,setRefreshToken:y,setSessionToken:d,service:f}}var ph={exports:{}},Iqe=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},d2=Iqe;ph.exports=LX;ph.exports.parse=_R;ph.exports.compile=Dqe;ph.exports.tokensToFunction=DX;ph.exports.tokensToRegExp=OX;var kqe=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function _R(e,t){for(var n=[],r=0,i=0,a="",o=t&&t.delimiter||"/",s;(s=kqe.exec(e))!=null;){var l=s[0],f=s[1],c=s.index;if(a+=e.slice(i,c),i=c+l.length,f){a+=f[1];continue}var d=e[i],p=s[2],g=s[3],y=s[4],b=s[5],R=s[6],A=s[7];a&&(n.push(a),a="");var $=p!=null&&d!=null&&d!==p,D=R==="+"||R==="*",M=R==="?"||R==="*",j=s[2]||o,U=y||b;n.push({name:g||r++,prefix:p||"",delimiter:j,optional:M,repeat:D,partial:$,asterisk:!!A,pattern:U?Pqe(U):A?".*":"[^"+zv(j)+"]+?"})}return i<e.length&&(a+=e.substr(i)),a&&n.push(a),n}function Dqe(e,t){return DX(_R(e,t),t)}function Oqe(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Lqe(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function DX(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)typeof e[r]=="object"&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",CR(t)));return function(i,a){for(var o="",s=i||{},l=a||{},f=l.pretty?Oqe:encodeURIComponent,c=0;c<e.length;c++){var d=e[c];if(typeof d=="string"){o+=d;continue}var p=s[d.name],g;if(p==null)if(d.optional){d.partial&&(o+=d.prefix);continue}else throw new TypeError('Expected "'+d.name+'" to be defined');if(d2(p)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(p.length===0){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var y=0;y<p.length;y++){if(g=f(p[y]),!n[c].test(g))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(g)+"`");o+=(y===0?d.prefix:d.delimiter)+g}continue}if(g=d.asterisk?Lqe(p):f(p),!n[c].test(g))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+g+'"');o+=d.prefix+g}return o}}function zv(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Pqe(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function xR(e,t){return e.keys=t,e}function CR(e){return e&&e.sensitive?"":"i"}function Mqe(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return xR(e,t)}function Bqe(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(LX(e[i],t,n).source);var a=new RegExp("(?:"+r.join("|")+")",CR(n));return xR(a,t)}function Nqe(e,t,n){return OX(_R(e,n),t,n)}function OX(e,t,n){d2(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,i=n.end!==!1,a="",o=0;o<e.length;o++){var s=e[o];if(typeof s=="string")a+=zv(s);else{var l=zv(s.prefix),f="(?:"+s.pattern+")";t.push(s),s.repeat&&(f+="(?:"+l+f+")*"),s.optional?s.partial?f=l+"("+f+")?":f="(?:"+l+"("+f+"))?":f=l+"("+f+")",a+=f}}var c=zv(n.delimiter||"/"),d=a.slice(-c.length)===c;return r||(a=(d?a.slice(0,-c.length):a)+"(?:"+c+"(?=$))?"),i?a+="$":a+=r&&d?"":"(?="+c+"|$)",xR(new RegExp("^"+a,CR(n)),t)}function LX(e,t,n){return d2(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?Mqe(e,t):d2(e)?Bqe(e,t,n):Nqe(e,t,n)}var Fqe=ph.exports;const Uqe=Ut(Fqe);function Hqe({protectedRoutes:e=[]}){const t=en(()=>e.map(r=>Uqe(r,[])),[e]);return{checkMatch:_t((r=window.location.pathname)=>t.some(i=>i.exec(r)))}}const hh=z.createContext(),jqe=(e,{width:t=560,height:n=560}={})=>{const r=window.screenX+(window.innerWidth-t)/2,i=window.screenY+(window.innerHeight-n)/2,a=[`left=${r}`,`top=${i}`,`width=${t}`,`height=${n}`,"scrollbars=yes","resizable=no","status=1","popup"];return window.open(e,"did-connect:popup",a.join(","))},Jqe=e=>new Promise((t,n)=>{const r=({data:o})=>{if(o&&o.type==="authorization_response"){if(o!=null&&o.error){console.error(o.error);return}setTimeout(()=>{var s;(s=e.popup)==null||s.close(),clearTimeout(a),clearInterval(i),window.removeEventListener("message",r,!1),l2({connected_app:F1(),...o==null?void 0:o.options},!0),t(o==null?void 0:o.response)},e.closeTimeout||0)}},i=setInterval(()=>{var o;(o=e.popup)!=null&&o.closed&&(clearInterval(i),clearTimeout(a),window.removeEventListener("message",r,!1),n(new Error("Popup closed")))},1e3),a=setTimeout(()=>{clearInterval(i),n(new Error("Timeout")),window.removeEventListener("message",r,!1)},(e.timeoutInSeconds||lVe)*1e3);window.addEventListener("message",r)}),Vqe={width:24,height:24,body:'<path fill="currentColor" d="M10 22L0 12L10 2l1.775 1.775L3.55 12l8.225 8.225L10 22Z"/>'},PX={width:24,height:24,body:'<path fill="currentColor" d="m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 13.4Z"/>'},qqe=z.forwardRef(function(t,n){return G.jsx(uW,{direction:"up",ref:n,...t})});function Gqe(e){function t({popup:n,open:r,dialogStyle:i,responsive:a,...o}){const s=xz("(max-width:640px)");if(!n&&!a)return G.jsx(e,{...o});const l=(c,d)=>{},f=a?!0:r;return G.jsx(Tz,{open:f,fullScreen:s,maxWidth:"lg",onClose:l,...s?{TransitionComponent:qqe,PaperProps:{sx:{borderRadius:3,borderBottomLeftRadius:0,borderBottomRightRadius:0}}}:{PaperProps:{sx:{borderRadius:3}}},children:G.jsx(Az,{sx:{maxWidth:"100%",maxHeight:"100%",p:0},children:G.jsx(yt,{sx:{maxWidth:"100%",width:s?"100%":500,height:s?"100%":"auto"},children:G.jsx(e,{hideCloseButton:!1,...o,isFullScreen:s,mode:"dialog"})})})})}return t.propTypes={responsive:ge.bool,popup:ge.bool,open:ge.bool,dialogStyle:ge.object},t.defaultProps={responsive:!1,popup:!1,open:!1,dialogStyle:{}},t}var MX={},YE={};Object.defineProperty(YE,"__esModule",{value:!0});function lx(e,t,n,r){var i,a=!1,o=0;function s(){i&&clearTimeout(i)}function l(){s(),a=!0}typeof t!="boolean"&&(r=n,n=t,t=void 0);function f(){for(var c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p];var g=this,y=Date.now()-o;if(a)return;function b(){o=Date.now(),n.apply(g,d)}function R(){i=void 0}r&&!i&&b(),s(),r===void 0&&y>e?b():t!==!0&&(i=setTimeout(r?R:b,r===void 0?e-y:e))}return f.cancel=l,f}function Wqe(e,t,n){return n===void 0?lx(e,t,!1):lx(e,n,t!==!1)}YE.debounce=Wqe;YE.throttle=lx;var vo={};Object.defineProperty(vo,"__esModule",{value:!0});vo.isNavigator=vo.isBrowser=vo.off=vo.on=vo.noop=void 0;var zqe=function(){};vo.noop=zqe;function Kqe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}vo.on=Kqe;function Yqe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}vo.off=Yqe;vo.isBrowser=typeof window<"u";vo.isNavigator=typeof navigator<"u";Object.defineProperty(MX,"__esModule",{value:!0});var UF=z,Zqe=YE,Ny=vo,Xqe=["mousemove","mousedown","resize","keydown","touchstart","wheel"],Qqe=6e4,eGe=function(e,t,n){e===void 0&&(e=Qqe),t===void 0&&(t=!1),n===void 0&&(n=Xqe);var r=UF.useState(t),i=r[0],a=r[1];return UF.useEffect(function(){for(var o=!0,s,l=i,f=function(g){o&&(l=g,a(g))},c=Zqe.throttle(50,function(){l&&f(!1),clearTimeout(s),s=setTimeout(function(){return f(!0)},e)}),d=function(){document.hidden||c()},p=0;p<n.length;p++)Ny.on(window,n[p],c);return Ny.on(document,"visibilitychange",d),s=setTimeout(function(){return f(!0)},e),function(){o=!1;for(var g=0;g<n.length;g++)Ny.off(window,n[g],c);Ny.off(document,"visibilitychange",d)}},[e,n]),i},tGe=MX.default=eGe;const nGe=1e3*60*30,rGe="wallet_sw_keeper_disabled";let Ip;const iGe=e=>{const t=document.createElement("iframe");t.title="abt wallet",t.id=Ip,t.style.width=0,t.style.height=0,t.style.border=0,t.style.display="block",t.style.position="absolute",t.style.top=0,t.src=`${e}?action=iframe`,document.body.appendChild(t)},aGe=()=>{const e=document.getElementById(Ip);e&&document.body.removeChild(e)},oGe=()=>{aGe(),Ip=null},sGe=e=>{Ip||(Ip=`web_wallet_sw_keeper_${Date.now()}`,iGe(e))};function RR({webWalletUrl:e,maxIdleTime:t}){const n=z.useRef(!!Ip),r=tGe(t),i=()=>{n.current||oGe()};return z.useEffect(()=>{r?i():sGe(e)},[r]),z.useEffect(()=>()=>i(),[]),null}RR.propTypes={webWalletUrl:ge.string.isRequired,maxIdleTime:ge.number};RR.defaultProps={maxIdleTime:nGe};const lGe=e=>function({webWalletUrl:n,maxIdleTime:r,...i}){const a=km();n=n||eX();const[o]=R6(rGe,{defaultValue:1}),s=Xb(),l=tX(n),f=a.wallet;return G.jsxs(G.Fragment,{children:[!o&&!s&&l&&!f&&G.jsx(RR,{webWalletUrl:n,maxIdleTime:r}),G.jsx(e,{webWalletUrl:n,...i})]})},BX=z.createContext(),{Provider:uGe,Consumer:ggt}=BX;function $R({children:e,baseUrl:t,loading:n}){const[r,i]=z.useState(null),a=_t(async()=>{if(!t||window.location.href.startsWith(t))throw new Error("no blocklet data");const o=new URL("__blocklet__.js",t);return o.searchParams.set("type","json"),await(await fetch(o.href)).json()});return FOe(async()=>{try{const o=await a();i(o)}catch{const o=globalThis.blocklet||globalThis.env;i(o)}},[t]),G.jsx(uGe,{value:r,children:r?e:n||null})}function cGe(){return{blocklet:z.useContext(BX)}}$R.propTypes={baseUrl:ge.string,children:ge.any.isRequired,loading:ge.any};$R.defaultProps={baseUrl:"",loading:null};function IR(){return G.jsx(yt,{sx:{height:"100%",minWidth:"200px",minHeight:"200px",display:"flex",justifyContent:"center",alignItems:"center"},children:G.jsx(rC,{sx:{color:Rt.foregroundsFgInteractive}})})}function fGe(e){function t({...r}){const{blocklet:i}=cGe();return G.jsx(e,{...r,blocklet:i})}function n({baseUrl:r,...i}){return G.jsx($R,{baseUrl:r,loading:G.jsx(IR,{}),children:G.jsx(t,{baseUrl:r,...i})})}return n}const Fy=Cl.box.keyPair();function dGe(){const[e,t]=R6("__encKey",{defaultValue:Ly(Fy.publicKey),deserializer:a=>a,serializer:a=>a}),[n,r]=R6("__decKey",{defaultValue:Ly(Fy.secretKey),deserializer:a=>a,serializer:a=>a});return z.useEffect(()=>{localStorage.getItem("__encKey")||t(Ly(Fy.publicKey)),localStorage.getItem("__decKey")||r(Ly(Fy.secretKey))},[]),{encryptKey:e,decryptKey:n,decrypt:a=>iX(a,e,n)}}var p2={exports:{}};/**
|
|
485
|
+
`)})(),t.cache&&t.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),t.cache)r=t.cache;else{if(n=t.cacheLocation||"memory",!LF(n))throw new Error(`Invalid cache location "${n}"`);r=LF(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?vd:FVe,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(o=>`auth0.${o}.is.authenticated`)(this.options.clientId),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const i=t.useCookiesForTransactions?this.cookieStorage:UVe;var a;this.scope=Py("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new PVe(i,this.options.clientId),this.nowProvider=this.options.nowProvider||cX,this.cacheManager=new LVe(r,r.allKeys?void 0:new JVe(r,this.options.clientId),this.nowProvider),this.domainUrl=(a=this.options.domain,/^https?:\/\//.test(a)?a:`https://${a}`),this.tokenIssuer=((o,s)=>o?o.startsWith("https://")?o:`https://${o}/`:`${s}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.worker=new jVe)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||uX)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${sx(t)}`)}async _verifyIdToken(t,n,r){const i=await this.nowProvider();return BVe({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organizationId:r,leeway:this.options.leeway,max_age:(a=this.options.authorizationParams.max_age,typeof a!="string"?a:parseInt(a,10)||void 0),now:i});var a}_processOrgIdHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,r){const i=$F(VS()),a=$F(VS()),o=VS(),s=(c=>{const d=new Uint8Array(c);return(p=>{const g={"+":"-","/":"_","=":""};return p.replace(/[+/=]/g,y=>g[y])})(window.btoa(String.fromCharCode(...Array.from(d))))})(await(async c=>await Wv().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,d,p,g,y,b,R,A)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),p),{scope:Py(d,p.scope),response_type:"code",response_mode:A||"query",state:g,nonce:y,redirect_uri:R||c.authorizationParams.redirect_uri,code_challenge:b,code_challenge_method:"S256"}))(this.options,this.scope,t,i,a,s,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n==null?void 0:n.response_mode),f=this._authorizeUrl(l);return{nonce:a,code_verifier:o,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:i,url:f}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(s=>{const l=window.screenX+(window.innerWidth-400)/2,f=window.screenY+(window.innerHeight-600)/2;return window.open(s,"auth0:authorize:popup",`left=${l},top=${f},width=400,height=600,resizable,scrollbars=yes,status=1`)})(""),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const i=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=i.url;const a=await(s=>new Promise((l,f)=>{let c;const d=setInterval(()=>{s.popup&&s.popup.closed&&(clearInterval(d),clearTimeout(p),window.removeEventListener("message",c,!1),f(new ER(s.popup)))},1e3),p=setTimeout(()=>{clearInterval(d),f(new bR(s.popup)),window.removeEventListener("message",c,!1)},1e3*(s.timeoutInSeconds||60));c=function(g){if(g.data&&g.data.type==="authorization_response"){if(clearTimeout(p),clearInterval(d),window.removeEventListener("message",c,!1),s.popup.close(),g.data.response.error)return f(wo.fromPayload(g.data.response));l(g.data.response)}},window.addEventListener("message",c)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(i.state!==a.state)throw new Error("Invalid state");const o=((r=t.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:i.audience,scope:i.scope,code_verifier:i.code_verifier,grant_type:"authorization_code",code:a.code,redirect_uri:i.redirect_uri},{nonceIn:i.nonce,organizationId:o})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n==null?void 0:n.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n==null?void 0:n.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const r=PF(t),{openUrl:i,fragment:a,appState:o}=r,s=_s(r,["openUrl","fragment","appState"]),l=((n=s.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,f=await this._prepareAuthorizeUrl(s.authorizationParams||{}),{url:c}=f,d=_s(f,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},d),{appState:o}),l&&{organizationId:l}));const p=a?`${c}#${a}`:c;i?await i(p):window.location.assign(p)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:r,code:i,error:a,error_description:o}=(d=>{d.indexOf("#")>-1&&(d=d.substring(0,d.indexOf("#")));const p=new URLSearchParams(d);return{state:p.get("state"),code:p.get("code")||void 0,error:p.get("error")||void 0,error_description:p.get("error_description")||void 0}})(n.join("")),s=this.transactionManager.get();if(!s)throw new Error("Invalid state");if(this.transactionManager.remove(),a)throw new vR(a,o||a,r,s.appState);if(!s.code_verifier||s.state&&s.state!==r)throw new Error("Invalid state");const l=s.organizationId,f=s.nonce,c=s.redirect_uri;return await this._requestToken(Object.assign({audience:s.audience,scope:s.scope,code_verifier:s.code_verifier,grant_type:"authorization_code",code:i},c?{redirect_uri:c}:{}),{nonceIn:f,organizationId:l}),{appState:s.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const r=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Py(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((a,o)=>{let s=GS[o];return s||(s=a().finally(()=>{delete GS[o],s=null}),GS[o]=s),s})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return t.detailedResponse?i:i==null?void 0:i.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=_s(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(i)return i}if(n!=="cache-only"){if(!await(async(i,a=3)=>{for(let o=0;o<a;o++)if(await i())return!0;return!1})(()=>WS.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new U1;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const f=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(f)return f}const i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:a,access_token:o,oauthTokenScope:s,expires_in:l}=i;return Object.assign(Object.assign({id_token:a,access_token:o},s?{scope:s}:null),{expires_in:l})}finally{await WS.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var r;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Py(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},CVe),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new ks({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:r}=n,i=_s(n,["federated"]),a=r?"&federated":"";return this._url(`/v2/logout?${sx(Object.assign({clientId:t.clientId},i))}`)+a}async logout(t={}){const n=PF(t),{openUrl:r}=n,i=_s(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const a=this._buildLogoutUrl(i);r?await r(a):r!==!1&&window.location.assign(a)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:i,state:a,nonce:o,code_verifier:s,redirect_uri:l,scope:f,audience:c}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new wo("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const d=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,p=await((y,b,R=60)=>new Promise((A,$)=>{const D=window.document.createElement("iframe");D.setAttribute("width","0"),D.setAttribute("height","0"),D.style.display="none";const M=()=>{window.document.body.contains(D)&&(window.document.body.removeChild(D),window.removeEventListener("message",j,!1))};let j;const U=setTimeout(()=>{$(new U1),M()},1e3*R);j=function(V){if(V.origin!=b||!V.data||V.data.type!=="authorization_response")return;const X=V.source;X&&X.close(),V.data.response.error?$(wo.fromPayload(V.data.response)):A(V.data.response),clearTimeout(U),window.removeEventListener("message",j,!1),setTimeout(M,2e3)},window.addEventListener("message",j,!1),window.document.body.appendChild(D),D.setAttribute("src",y)}))(i,this.domainUrl,d);if(a!==p.state)throw new Error("Invalid state");const g=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:s,code:p.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o});return Object.assign(Object.assign({},g),{scope:f,oauthTokenScope:g.scope,audience:c})}catch(d){throw d.error==="login_required"&&this.logout({openUrl:!1}),d}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new ks({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new fX(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const r=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,i=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const a=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),i&&{timeout:i}));return Object.assign(Object.assign({},a),{scope:t.authorizationParams.scope,oauthTokenScope:a.scope,audience:t.authorizationParams.audience||"default"})}catch(a){if((a.message.indexOf("Missing Refresh Token")>-1||a.message&&a.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw a}}async _saveEntryInCache(t){const{id_token:n,decodedToken:r}=t,i=_s(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(i)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new ks({clientId:this.options.clientId,audience:t,scope:this.scope})),r=this.userCache.get("@@user@@");return n&&n.id_token===(r==null?void 0:r.id_token)?r:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:r}){const i=await this.cacheManager.get(new ks({scope:t,audience:n,clientId:r}),60);if(i&&i.access_token){const{access_token:a,oauthTokenScope:o,expires_in:s}=i,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:a},o?{scope:o}:null),{expires_in:s})}}async _requestToken(t,n){const{nonceIn:r,organizationId:i}=n||{},a=await DVe(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),o=await this._verifyIdToken(a.id_token,r,i);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},a),{decodedToken:o,scope:t.scope,audience:t.audience||"default"}),a.scope?{oauthTokenScope:a.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(o.claims.org_id),Object.assign(Object.assign({},a),{decodedToken:o})}}var gX={isAuthenticated:!1,isLoading:!0},cl=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},GVe=pi(pi({},gX),{buildAuthorizeUrl:cl,buildLogoutUrl:cl,getAccessTokenSilently:cl,getAccessTokenWithPopup:cl,getIdTokenClaims:cl,loginWithRedirect:cl,loginWithPopup:cl,logout:cl,handleRedirectCallback:cl}),yX=z.createContext(GVe),MF=function(e){SVe(t,e);function t(n,r){var i=e.call(this,r||n)||this;return i.error=n,i.error_description=r,Object.setPrototypeOf(i,t.prototype),i}return t}(Error),WVe=/[?&]code=[^&]+/,zVe=/[?&]state=[^&]+/,KVe=/[?&]error=[^&]+/,YVe=function(e){return e===void 0&&(e=window.location.search),(WVe.test(e)||KVe.test(e))&&zVe.test(e)},vX=function(e){return function(t){return t instanceof Error?t:t!==null&&typeof t=="object"&&"error"in t&&typeof t.error=="string"?"error_description"in t&&typeof t.error_description=="string"?new MF(t.error,t.error_description):new MF(t.error):new Error(e)}},BF=vX("Login failed"),zS=vX("Get access token failed"),bX=function(e){var t;e!=null&&e.redirectUri&&(console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),e.authorizationParams=e.authorizationParams||{},e.authorizationParams.redirect_uri=e.redirectUri,delete e.redirectUri),!((t=e==null?void 0:e.authorizationParams)===null||t===void 0)&&t.redirectUri&&(console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),e.authorizationParams.redirect_uri=e.authorizationParams.redirectUri,delete e.authorizationParams.redirectUri)},ZVe=function(e,t){switch(t.type){case"LOGIN_POPUP_STARTED":return pi(pi({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return pi(pi({},e),{isAuthenticated:!!t.user,user:t.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return e.user===t.user?e:pi(pi({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return pi(pi({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return pi(pi({},e),{isLoading:!1,error:t.error})}},XVe=function(e){return bX(e),pi(pi({},e),{auth0Client:{name:"auth0-react",version:"2.1.0"}})},QVe=function(e){window.history.replaceState({},document.title,(e==null?void 0:e.returnTo)||window.location.pathname)},eqe=function(e){var t=e.children,n=e.skipRedirectCallback,r=e.onRedirectCallback,i=r===void 0?QVe:r,a=e.context,o=a===void 0?yX:a,s=_Ve(e,["children","skipRedirectCallback","onRedirectCallback","context"]),l=z.useState(function(){return new qVe(XVe(s))})[0],f=z.useReducer(ZVe,gX),c=f[0],d=f[1],p=z.useRef(!1);z.useEffect(function(){p.current||(p.current=!0,function(){return od(void 0,void 0,void 0,function(){var j,U,V;return sd(this,function(X){switch(X.label){case 0:return X.trys.push([0,7,,8]),j=void 0,YVe()&&!n?[4,l.handleRedirectCallback()]:[3,3];case 1:return U=X.sent().appState,[4,l.getUser()];case 2:return j=X.sent(),i(U,j),[3,6];case 3:return[4,l.checkSession()];case 4:return X.sent(),[4,l.getUser()];case 5:j=X.sent(),X.label=6;case 6:return d({type:"INITIALISED",user:j}),[3,8];case 7:return V=X.sent(),d({type:"ERROR",error:BF(V)}),[3,8];case 8:return[2]}})})}())},[l,i,n]);var g=z.useCallback(function(j){return bX(j),l.loginWithRedirect(j)},[l]),y=z.useCallback(function(j,U){return od(void 0,void 0,void 0,function(){var V,X;return sd(this,function(ie){switch(ie.label){case 0:d({type:"LOGIN_POPUP_STARTED"}),ie.label=1;case 1:return ie.trys.push([1,3,,4]),[4,l.loginWithPopup(j,U)];case 2:return ie.sent(),[3,4];case 3:return V=ie.sent(),d({type:"ERROR",error:BF(V)}),[2];case 4:return[4,l.getUser()];case 5:return X=ie.sent(),d({type:"LOGIN_POPUP_COMPLETE",user:X}),[2]}})})},[l]),b=z.useCallback(function(j){return j===void 0&&(j={}),od(void 0,void 0,void 0,function(){return sd(this,function(U){switch(U.label){case 0:return[4,l.logout(j)];case 1:return U.sent(),(j.openUrl||j.openUrl===!1)&&d({type:"LOGOUT"}),[2]}})})},[l]),R=z.useCallback(function(j){return od(void 0,void 0,void 0,function(){var U,V,X,ie;return sd(this,function(le){switch(le.label){case 0:return le.trys.push([0,2,3,5]),[4,l.getTokenSilently(j)];case 1:return U=le.sent(),[3,5];case 2:throw V=le.sent(),zS(V);case 3:return X=d,ie={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return X.apply(void 0,[(ie.user=le.sent(),ie)]),[7];case 5:return[2,U]}})})},[l]),A=z.useCallback(function(j,U){return od(void 0,void 0,void 0,function(){var V,X,ie,le;return sd(this,function(Q){switch(Q.label){case 0:return Q.trys.push([0,2,3,5]),[4,l.getTokenWithPopup(j,U)];case 1:return V=Q.sent(),[3,5];case 2:throw X=Q.sent(),zS(X);case 3:return ie=d,le={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return ie.apply(void 0,[(le.user=Q.sent(),le)]),[7];case 5:return[2,V]}})})},[l]),$=z.useCallback(function(){return l.getIdTokenClaims()},[l]),D=z.useCallback(function(j){return od(void 0,void 0,void 0,function(){var U,V,X;return sd(this,function(ie){switch(ie.label){case 0:return ie.trys.push([0,2,3,5]),[4,l.handleRedirectCallback(j)];case 1:return[2,ie.sent()];case 2:throw U=ie.sent(),zS(U);case 3:return V=d,X={type:"HANDLE_REDIRECT_COMPLETE"},[4,l.getUser()];case 4:return V.apply(void 0,[(X.user=ie.sent(),X)]),[7];case 5:return[2]}})})},[l]),M=z.useMemo(function(){return pi(pi({},c),{getAccessTokenSilently:R,getAccessTokenWithPopup:A,getIdTokenClaims:$,loginWithRedirect:g,loginWithPopup:y,logout:b,handleRedirectCallback:D})},[c,R,A,$,g,y,b,D]);return mn.createElement(o.Provider,{value:M},t)},tqe=function(e){return e===void 0&&(e=yX),z.useContext(e)};const nqe={zh:"zh-CN"};function EX({config:e,locale:t="en"}={}){const{loginWithPopup:n,getAccessTokenSilently:r,logout:i,user:a}=tqe(),o=_t(async()=>(await n({authorizationParams:{ui_locales:nqe[t]||t}}),await r())),s=_t(async(c,d)=>{try{await r();const p=new URL(d);p.searchParams.set("returnTo",window.location.origin);const y=window.open(p.href,"auth0-logout","scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=10,height=10,left=0,top=0");try{await uz(()=>{try{return!!y.document.body.innerHTML}catch{return!1}},{timeout:3e3}),y.close(),c()}catch{y==null||y.close(),window.location.replace(p.href)}}catch{c()}}),l=_t(({hack:c=!1}={})=>new Promise(d=>{i({clientId:e==null?void 0:e.clientId,openUrl(p){const g=document.createElement("iframe");g.src=p,g.width=0,g.height=0,g.style.display="none",g.onload=()=>{document.body.removeChild(g),c?s(d,p):d()},document.body.appendChild(g)}})})),f=_t(c=>e?G.jsx(eqe,{domain:e.domain,clientId:e.clientId,authorizeTimeoutInSeconds:5*60,useCookiesForTransactions:!1,useRefreshTokens:!1,sessionCheckExpiryDays:1/24/3600,children:c}):c);return{user:a,WithAuth0:f,login:o,logout:l,config:e}}function rqe(e){return e==null?void 0:e.did}function KE(e){var t;return(e==null?void 0:e.connectedAccounts)||((t=e==null?void 0:e.extraConfigs)==null?void 0:t.connectedAccounts)||[]}function AR(e){var t;return(e==null?void 0:e.sourceProvider)||((t=e==null?void 0:e.extraConfigs)==null?void 0:t.sourceProvider)||"wallet"}function TX(e){return KE(e).map(n=>n.provider)}function iqe(e){return KE(e).map(r=>r.did)}function AX(e){return KE(e).find(r=>r.provider==="wallet")}function aqe(e){const t=AX(e);return t==null?void 0:t.did}function wX({session:e}){const[t,n]=z.useState({did:"",wallet:"",walletDid:"",permanentDid:"",connectedDids:[],connectedAccounts:[],sourceProvider:"",sourceProviders:[]});return z.useEffect(()=>{if(e!=null&&e.user){const r=rqe(e.user),i=aqe(e.user),a=KE(e.user),o=iqe(e.user),s=AX(e.user),l=AR(e.user),f=TX(e.user);n({did:r,wallet:s,walletDid:i,permanentDid:r,connectedDids:o,connectedAccounts:a,sourceProvider:l,sourceProviders:f})}},[e==null?void 0:e.user]),t}var SX=function(t){return G.jsxs("svg",{...t,children:[G.jsx("rect",{x:"1",y:"1",width:"418",height:"473",rx:"19",fill:"#FBFBFB"}),G.jsx("g",{clipPath:"url(#a)",children:G.jsx("path",{opacity:".7",fill:"#DDD",d:"M0 100h420v168H0z"})}),G.jsx("circle",{cx:"210",cy:"248",r:"60",fill:"#C4C5CA"}),G.jsx("path",{d:"M181 284l7.2-7.2 7.2 7.2 7.2-10.8 7.2 10.8 7.2-10.8 7.2 10.8 7.2-7.2 7.2 7.2v-43.2c0-15.907-12.893-28.8-28.8-28.8S181 224.893 181 240.8V284z",fill:"#C4C5CA",stroke:"#fff",strokeWidth:"5",strokeLinejoin:"round"}),G.jsx("path",{d:"M200.797 240.812h3.6-3.6zm21.6 0h3.6-3.6z",fill:"#C4C5CA"}),G.jsx("path",{d:"M200.797 240.812h3.6m18 0h3.6",stroke:"#fff",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),G.jsx("path",{opacity:".7",d:"M24 29h189v40H24V29z",fill:"#C4C5CA"}),G.jsx("path",{opacity:".42",fill:"#C4C5CA",d:"M313 24h83v14h-83z"}),G.jsx("path",{opacity:".7",fill:"#C4C5CA",d:"M291 50h105v26H291z"}),G.jsx("path",{d:"M177.388 388.4c-1.733 0-3.32-.213-4.76-.64a12.355 12.355 0 0 1-3.8-1.88 15.072 15.072 0 0 1-2.96-3l3.76-4.28c1.307 1.813 2.6 3.053 3.88 3.72 1.307.64 2.72.96 4.24.96.827 0 1.56-.107 2.2-.32.667-.24 1.187-.573 1.56-1 .373-.427.56-.933.56-1.52 0-.427-.093-.813-.28-1.16a2.764 2.764 0 0 0-.8-.96 5.139 5.139 0 0 0-1.24-.76 8.666 8.666 0 0 0-1.6-.6 12.728 12.728 0 0 0-1.92-.44c-1.493-.347-2.8-.76-3.92-1.24-1.12-.507-2.053-1.12-2.8-1.84a7.456 7.456 0 0 1-1.68-2.52c-.347-.933-.52-1.987-.52-3.16 0-1.2.267-2.307.8-3.32a8.187 8.187 0 0 1 2.2-2.68 10.68 10.68 0 0 1 3.28-1.72c1.253-.4 2.573-.6 3.96-.6 1.707 0 3.2.2 4.48.6 1.28.373 2.387.92 3.32 1.64.96.72 1.76 1.6 2.4 2.64l-3.8 3.68a9.48 9.48 0 0 0-1.84-1.88 6.482 6.482 0 0 0-2.12-1.12 6.84 6.84 0 0 0-2.32-.4c-.88 0-1.64.12-2.28.36-.64.213-1.147.533-1.52.96-.347.427-.52.947-.52 1.56 0 .48.12.907.36 1.28s.587.707 1.04 1c.453.267 1 .507 1.64.72.64.213 1.347.4 2.12.56 1.467.293 2.787.68 3.96 1.16 1.173.48 2.173 1.067 3 1.76a6.784 6.784 0 0 1 1.96 2.4c.453.907.68 1.933.68 3.08 0 1.893-.453 3.507-1.36 4.84-.907 1.333-2.16 2.36-3.76 3.08-1.6.693-3.467 1.04-5.6 1.04zm17.394-.4v-26.52h5.68V388h-5.68zm-3.96-16.08v-5.08h13.96v5.08h-13.96zm25.387 16.48c-1.76 0-3.346-.48-4.76-1.44-1.413-.96-2.533-2.267-3.36-3.92-.826-1.653-1.24-3.547-1.24-5.68 0-2.133.414-4.013 1.24-5.64.854-1.653 2-2.947 3.44-3.88 1.44-.96 3.08-1.44 4.92-1.44 1.04 0 1.987.16 2.84.48.88.293 1.64.707 2.28 1.24a7.831 7.831 0 0 1 1.68 1.84c.454.693.774 1.44.96 2.24l-1.2-.2v-5.16h5.64V388h-5.72v-5.08l1.28-.12a6.81 6.81 0 0 1-1.04 2.12 8.213 8.213 0 0 1-1.8 1.8c-.693.507-1.48.92-2.36 1.24-.88.293-1.813.44-2.8.44zm1.56-4.92c1.067 0 2-.253 2.8-.76.8-.507 1.414-1.213 1.84-2.12.454-.933.68-2.013.68-3.24 0-1.2-.226-2.253-.68-3.16-.426-.907-1.04-1.613-1.84-2.12-.8-.533-1.733-.8-2.8-.8-1.04 0-1.96.267-2.76.8-.773.507-1.386 1.213-1.84 2.12-.453.907-.68 1.96-.68 3.16 0 1.227.227 2.307.68 3.24.454.907 1.067 1.613 1.84 2.12.8.507 1.72.76 2.76.76zm19.066 13.72l4.64-10.88.08 3.28-10.32-22.76h6.44l5.16 12.2c.213.453.413.987.6 1.6.213.587.387 1.16.52 1.72l-.96.4c.16-.453.347-.973.56-1.56.213-.587.427-1.213.64-1.88l4.44-12.48h6.48l-8.88 21.16-3.64 9.2h-5.76zM92.8 438l10.96-28h5.36l10.92 28h-6.16l-5.64-15.08c-.16-.427-.36-.973-.6-1.64l-.68-2.12-.68-2.12a27.95 27.95 0 0 1-.48-1.72l1.08-.04c-.16.613-.346 1.253-.56 1.92-.186.64-.386 1.307-.6 2-.213.667-.44 1.32-.68 1.96-.24.64-.466 1.267-.68 1.88L98.72 438H92.8zm5.08-5.88l1.96-4.84h12.84l2 4.84h-16.8zm25.292 5.88v-21.16h5.44l.16 4.32-1.12.48c.293-.96.813-1.827 1.56-2.6a8.83 8.83 0 0 1 2.76-1.92 8.1 8.1 0 0 1 3.36-.72c1.6 0 2.933.32 4 .96 1.093.64 1.907 1.613 2.44 2.92.56 1.28.84 2.867.84 4.76V438h-5.68v-12.52c0-.96-.133-1.76-.4-2.4-.267-.64-.68-1.107-1.24-1.4-.533-.32-1.2-.453-2-.4-.64 0-1.24.107-1.8.32a3.94 3.94 0 0 0-1.4.84c-.373.373-.68.8-.92 1.28-.213.48-.32 1-.32 1.56V438h-5.68zm34.723.4c-2.16 0-4.093-.467-5.8-1.4a10.853 10.853 0 0 1-4-3.92c-.96-1.653-1.44-3.547-1.44-5.68 0-2.133.48-4.013 1.44-5.64a10.853 10.853 0 0 1 4-3.92c1.707-.96 3.64-1.44 5.8-1.44 2.133 0 4.04.48 5.72 1.44 1.707.96 3.04 2.267 4 3.92.96 1.627 1.44 3.507 1.44 5.64 0 2.133-.48 4.027-1.44 5.68-.96 1.653-2.293 2.96-4 3.92-1.68.933-3.587 1.4-5.72 1.4zm0-4.96c1.04 0 1.973-.253 2.8-.76a5.371 5.371 0 0 0 1.92-2.16c.48-.933.72-1.973.72-3.12 0-1.173-.24-2.213-.72-3.12-.453-.933-1.093-1.653-1.92-2.16-.827-.533-1.76-.8-2.8-.8-1.067 0-2.013.267-2.84.8a5.673 5.673 0 0 0-1.96 2.16c-.48.907-.707 1.947-.68 3.12-.027 1.147.2 2.187.68 3.12a5.673 5.673 0 0 0 1.96 2.16c.827.507 1.773.76 2.84.76zm15.433 4.56v-21.16h5.44l.16 4.32-1.12.48c.294-.96.814-1.827 1.56-2.6a8.853 8.853 0 0 1 2.76-1.92 8.1 8.1 0 0 1 3.36-.72c1.6 0 2.934.32 4 .96 1.094.64 1.907 1.613 2.44 2.92.56 1.28.84 2.867.84 4.76V438h-5.68v-12.52c0-.96-.133-1.76-.4-2.4-.266-.64-.68-1.107-1.24-1.4-.533-.32-1.2-.453-2-.4-.64 0-1.24.107-1.8.32a3.94 3.94 0 0 0-1.4.84c-.373.373-.68.8-.92 1.28-.213.48-.32 1-.32 1.56V438h-5.68zm27.648 9.2l4.64-10.88.08 3.28-10.32-22.76h6.44l5.16 12.2c.213.453.413.987.6 1.6.213.587.386 1.16.52 1.72l-.96.4c.16-.453.346-.973.56-1.56.213-.587.426-1.213.64-1.88l4.44-12.48h6.48l-8.88 21.16-3.64 9.2h-5.76zm21.297-9.2v-21.16h5.48l.12 4.04-.84.16c.293-.693.68-1.32 1.16-1.88.48-.56 1.04-1.04 1.68-1.44.666-.4 1.36-.707 2.08-.92.72-.24 1.44-.36 2.16-.36 1.093 0 2.08.173 2.96.52.88.347 1.626.893 2.24 1.64.613.72 1.093 1.68 1.44 2.88l-.88-.08.28-.64a6.852 6.852 0 0 1 1.32-1.72 8.178 8.178 0 0 1 1.8-1.36c.666-.4 1.36-.707 2.08-.92a7.448 7.448 0 0 1 2.12-.32c1.653 0 3.026.333 4.12 1 1.093.64 1.906 1.613 2.44 2.92.56 1.307.84 2.907.84 4.8V438h-5.68v-12.44c0-.96-.134-1.747-.4-2.36-.267-.613-.654-1.067-1.16-1.36-.507-.32-1.16-.48-1.96-.48a4.59 4.59 0 0 0-1.72.32c-.507.187-.96.467-1.36.84a3.74 3.74 0 0 0-.88 1.24 3.885 3.885 0 0 0-.32 1.6V438h-5.68v-12.48c0-.88-.147-1.627-.44-2.24-.267-.64-.654-1.12-1.16-1.44-.507-.32-1.134-.48-1.88-.48a4.59 4.59 0 0 0-1.72.32 3.608 3.608 0 0 0-1.32.84c-.374.347-.68.76-.92 1.24-.214.48-.32 1-.32 1.56V438h-5.68zm47.848.4c-2.16 0-4.093-.467-5.8-1.4a10.853 10.853 0 0 1-4-3.92c-.96-1.653-1.44-3.547-1.44-5.68 0-2.133.48-4.013 1.44-5.64a10.853 10.853 0 0 1 4-3.92c1.707-.96 3.64-1.44 5.8-1.44 2.134 0 4.04.48 5.72 1.44 1.707.96 3.04 2.267 4 3.92.96 1.627 1.44 3.507 1.44 5.64 0 2.133-.48 4.027-1.44 5.68-.96 1.653-2.293 2.96-4 3.92-1.68.933-3.586 1.4-5.72 1.4zm0-4.96c1.04 0 1.974-.253 2.8-.76a5.371 5.371 0 0 0 1.92-2.16c.48-.933.72-1.973.72-3.12 0-1.173-.24-2.213-.72-3.12-.453-.933-1.093-1.653-1.92-2.16-.826-.533-1.76-.8-2.8-.8-1.066 0-2.013.267-2.84.8a5.681 5.681 0 0 0-1.96 2.16c-.48.907-.706 1.947-.68 3.12-.026 1.147.2 2.187.68 3.12a5.681 5.681 0 0 0 1.96 2.16c.827.507 1.774.76 2.84.76zm22.714 4.96c-1.547 0-2.88-.333-4-1-1.093-.693-1.947-1.667-2.56-2.92-.587-1.28-.88-2.813-.88-4.6v-13.04h5.68v12.12c0 .96.16 1.8.48 2.52.32.693.773 1.227 1.36 1.6.587.373 1.307.56 2.16.56.613 0 1.187-.093 1.72-.28a3.993 3.993 0 0 0 1.36-.88c.373-.373.667-.813.88-1.32.213-.507.32-1.053.32-1.64v-12.68h5.68V438h-5.4l-.2-4.36 1.04-.48a7.107 7.107 0 0 1-1.6 2.68 7.981 7.981 0 0 1-2.68 1.88c-1.04.453-2.16.68-3.36.68zm25.035 0c-1.973 0-3.733-.32-5.28-.96-1.52-.667-2.747-1.573-3.68-2.72l3.52-3.04c.827.88 1.747 1.52 2.76 1.92a8.75 8.75 0 0 0 3.04.56c.4 0 .76-.04 1.08-.12.347-.107.64-.24.88-.4.24-.187.413-.4.52-.64.133-.267.2-.547.2-.84 0-.587-.24-1.053-.72-1.4-.267-.133-.68-.293-1.24-.48-.56-.213-1.28-.44-2.16-.68-1.36-.347-2.52-.747-3.48-1.2-.933-.48-1.68-1.013-2.24-1.6a6.755 6.755 0 0 1-1.12-1.8c-.24-.667-.36-1.4-.36-2.2 0-.96.213-1.827.64-2.6a6.138 6.138 0 0 1 1.76-2.04 8.66 8.66 0 0 1 2.64-1.28c.987-.32 2.027-.48 3.12-.48s2.16.133 3.2.4 2 .653 2.88 1.16a9.77 9.77 0 0 1 2.36 1.72l-3.04 3.36a9.806 9.806 0 0 0-1.64-1.24 8.324 8.324 0 0 0-1.84-.88c-.64-.213-1.213-.32-1.72-.32-.453 0-.867.04-1.24.12-.347.08-.64.2-.88.36-.24.16-.427.373-.56.64-.107.24-.16.507-.16.8 0 .293.067.573.2.84.16.267.373.493.64.68.293.16.72.347 1.28.56a30.74 30.74 0 0 0 2.36.72c1.28.347 2.36.733 3.24 1.16.907.427 1.627.92 2.16 1.48.453.48.787 1.027 1 1.64.213.613.32 1.293.32 2.04 0 1.307-.373 2.48-1.12 3.52-.72 1.013-1.72 1.813-3 2.4-1.28.56-2.72.84-4.32.84z",fill:"#25292F"}),G.jsx("rect",{x:"1",y:"1",width:"418",height:"558",rx:"19",stroke:"#DDD",strokeWidth:"2"}),G.jsx("defs",{children:G.jsx("clipPath",{id:"a",children:G.jsx("path",{fill:"#fff",transform:"translate(0 100)",d:"M0 0h420v168H0z"})})})]})};SX.defaultProps={width:"420",height:"475",viewBox:"0 0 420 475",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const wR=z.createContext(),{Provider:oqe,Consumer:sqe}=wR,u2=`${Vi}/oauth`,NF=async()=>{},_X=e=>e?typeof e=="string"?{sessionToken:e}:uE(e,["sessionToken","refreshToken","visitorId"]):{},c2={zh:{bindOAuth:"绑定第三方登录",bind:"绑定",noneOAuth:"未配置第三方登录方式",bindOAuthSucceed:"绑定第三方登录成功",bindOAuthFailed:"绑定第三方登录失败",switchPassport:"切换通行证",switchPassportFailed:"切换通行证失败",switchPassportSucceed:"切换通行证成功",choosePassport:"请选择一个通行证",switch:"切换",cancel:"取消",currentRole:"当前角色:",passport:"通行证",noPassports:"没有可更换的通行证",getPassportFailed:"获取通行证失败",loginRequired:"授权请求被拒绝"},en:{bindOAuth:"Bind third party login",bind:"Bind ",noneOAuth:"Third party login is not configured",bindOAuthSucceed:"Bind third party login succeed",bindOAuthFailed:"Bind third party login failed",switchPassport:"Switch passport",switchPassportFailed:"Switch passport failed",switchPassportSucceed:"Switch passport succeed",choosePassport:"Select a passport to switch",switch:"Switch",cancel:"Cancel",currentRole:"Current role: ",passport:"Passport",noPassports:"No passport to switch",getPassportFailed:"Get passports failed",loginRequired:"You have declined the authentication request"}};function f2({children:e,locale:t,onBindOAuth:n,onSwitchPassport:r}){var T,u,h;const i=Di({bindFnSession:void 0,baseUrl:"/"}),a=en(()=>Wl({baseURL:On(i.baseUrl,u2)}),[i.baseUrl,u2]),o=c2[t]||c2.en,s={open:!1,currentUser:null,passports:[],choosePassport:void 0},[l,f]=z.useState(!1),[c,d]=z.useState(()=>NF),[p,g]=z.useState(()=>NF),[y,b]=z.useState(Bn),[R,A]=z.useState(!1),[$,D]=z.useState(xl(s)),M=((u=(T=window==null?void 0:window.blocklet)==null?void 0:T.settings)==null?void 0:u.oauth)||{},j=Object.entries(M).map(([E,S])=>({...S,provider:E})).filter(E=>E.enabled),{WithAuth0:U}=EX({config:M==null?void 0:M.auth0,locale:t}),V=async({session:E}={})=>{i.bindFnSession=E,j.length===1?await le(j[0]):j.length>1&&A(!0)},X=async(E={})=>{try{const{data:S}=await a.get("/passports");S.length?D({open:!0,passports:S||[],currentUser:E}):Ci.error(o.noPassports)}catch(S){Ci.error(S.message||o.getPassportFailed)}},ie=async()=>{try{const{data:E}=await a.post("/switch",{passportId:$.choosePassport}),{sessionToken:S,refreshToken:C}=_X(E);r({sessionToken:S,refreshToken:C}),Ci.success(o.switchPassportSucceed),D(xl(s))}catch(E){Ci.error(E.message||o.switchPassportFailed)}},le=async E=>{var S,C;f(!0);try{const I=await y(E),x=(C=(S=i.bindFnSession)==null?void 0:S.user)==null?void 0:C.sourceAppPid;await a.post("/bind",{locale:t,provider:E.provider,token:I,sourceAppPid:x,config:{clientId:E.clientId,domain:E.domain}}),A(!1),Ci.success(o.bindOAuthSucceed),n(E)}catch(I){p({provider:E.provider}).catch(console.error),Ci.error(aX(I,o.bindOAuthFailed))}finally{A(!1)}},Q=E=>{i.baseUrl=E||"/"},P=Di({user:null,checking:!1,loading:!1,error:"",status:"",reset(){this.loading=!1,this.checking=!1,this.error="",this.status=""}});return G.jsxs(oqe,{value:{oauthConfigList:j,configs:M,locale:t,bindOAuth:V,loginOAuth:c,logoutOAuth:p,setLoginOAuth:d,setLogoutOAuth:g,getToken:y,setGetToken:b,switchOAuthPassport:X,baseUrl:i.baseUrl,setBaseUrl:Q,translation:o,oauthState:P},children:[U(e),G.jsx(AE,{title:o.bindOAuth,open:R,onClose:()=>A(!1),PaperProps:{style:{minHeight:"auto"}},children:G.jsxs(yt,{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",gap:2,children:[j.map(E=>G.jsxs(B6,{variant:"contained",onClick:()=>le(E),loading:l,children:[o.bind,E.provider]},E.provider)),j.length===0&&G.jsx(hR,{children:o.noneOAuth})]})}),G.jsxs(wE,{open:$.open,title:o.switchPassport,onConfirm:ie,onCancel:()=>D(xl(s)),confirmButton:{text:o.switch,props:{variant:"contained",color:"primary"}},cancelButton:{text:o.cancel,props:{color:"inherit"}},PaperProps:{style:{width:600}},children:[G.jsxs(yt,{mb:2,children:[o.currentRole,(h=$.currentUser)==null?void 0:h.role]}),G.jsx(mR,{width:160,height:240,cardSpace:24,list:[()=>G.jsx(SX,{}),...$.passports.map(E=>({src:E.display,name:E.title}))],onSelect:E=>{D(S=>({...S,choosePassport:E>0?$.passports[E-1].id:void 0}))},defaultIndex:0})]})]})}function SR(){var A;const{locale:e,setLoginOAuth:t,setLogoutOAuth:n,getToken:r,setGetToken:i,baseUrl:a,oauthState:o,...s}=z.useContext(wR),l=c2[e]||c2.en,f=rf(),c=en(()=>Wl({baseURL:On(a,u2)}),[a,u2]),{login:d,logout:p,user:g,config:y}=EX({config:(A=s==null?void 0:s.configs)==null?void 0:A.auth0,locale:e});z.useEffect(()=>{g&&(o.user=g)},[g]);const[,b,R]=GLe();return z.useEffect(()=>{i(()=>async({provider:$,enabled:D=!1}={})=>{if(!D)return;let M;return $==="auth0"&&(M=await d()),M})},[d,i]),z.useEffect(()=>{t(()=>async($,{action:D="login",...M}={})=>{b($.provider);let j;try{j=await r($)}catch(U){throw U.message==="Login required"?new Error(l.loginRequired):U}if(j){const{data:U}=await c.post("/login",{...M,action:D,locale:e,provider:$.provider,token:j,visitorId:f});return _X(U)}return{}})},[c,r,e,t,b,l.loginRequired,f]),z.useEffect(()=>{n(()=>async({session:$,provider:D,force:M=!1,hack:j=!1}={})=>{let U=R(),V=[];if($){const{user:X}=$;U=AR(X),V=TX(X)}if(U&&V.push(U),D&&V.push(D),(M||V.includes("auth0"))&&y!=null&&y.clientId)return p({hack:j})})},[R,p,y,n]),{...s,getProvider:R,oauthState:o}}f2.propTypes={children:ge.node.isRequired,locale:ge.string,onBindOAuth:ge.func,onSwitchPassport:ge.func};f2.defaultProps={locale:"en",onBindOAuth:Bn,onSwitchPassport:Bn};function xX({session:e,children:t}){const n=wX({session:e});return t instanceof Function?t(n):null}xX.propTypes={session:ge.object.isRequired,children:ge.func.isRequired};var lqe=HW,uqe=Cm,cqe=Tm,fqe=Aa,dqe=bf,pqe=Am,hqe=iE,mqe=aE,gqe="[object Map]",yqe="[object Set]",vqe=Object.prototype,bqe=vqe.hasOwnProperty;function Eqe(e){if(e==null)return!0;if(dqe(e)&&(fqe(e)||typeof e=="string"||typeof e.splice=="function"||pqe(e)||mqe(e)||cqe(e)))return!e.length;var t=uqe(e);if(t==gqe||t==yqe)return!e.size;if(hqe(e))return!lqe(e).length;for(var n in e)if(bqe.call(e,n))return!1;return!0}var Tqe=Eqe;const CX=Ut(Tqe);function dh(e=window.blocklet){var n;return(((n=e==null?void 0:e.settings)==null?void 0:n.federated)||{}).master}function RX(e=window.blocklet){var n;return(((n=e==null?void 0:e.settings)==null?void 0:n.federated)||{}).config}function Hm(e=window.blocklet){const t=RX(e);return(t==null?void 0:t.status)==="approved"}function Aqe(e=window.blocklet){const t=dh(e);return!CX(t)?{appId:t.appId,appName:t.appName,appDescription:t.appDescription,appLogo:t.appLogo,appPid:t.appPid,appUrl:t.appUrl,version:t.version,sourceAppPid:t.appPid,provider:"wallet"}:null}function wqe(e=window.blocklet){return e?{appId:e.appId,appName:e.appName,appDescription:e.appDescription,appLogo:e.appLogo,appPid:e.appPid,appUrl:e.appUrl,version:e.version,sourceAppPid:null,provider:"wallet"}:window.env?(e=window.env,{appId:e.appId,appName:e.appName,appDescription:e.appDescription,appUrl:e.baseUrl,sourceAppPid:null,provider:"wallet",type:"server"}):null}function $X(e){const t=[],n=Aqe(e),r=wqe(e),i=Hm(e);return r&&t.push(r),n&&(n==null?void 0:n.appId)!==(r==null?void 0:r.appId)&&i&&t.push(n),t.reverse()}const IX=Wl();async function Sqe(){const e=On(Vi,"/api/federated/loginMaster"),{data:t}=await IX.post(e);return t}async function KS(e={},{fetchToken:t=!0,blocklet:n}={}){if(!Hm())return console.warn("Federated not enabled"),null;let i,a;t&&({sessionToken:i,refreshToken:a}=await Sqe());const o=dh(n),s=On(o.appUrl,Vi,"/api/federated/login"),l={withCredentials:!0};i&&(l.headers={Authorization:`Bearer ${i}`});const{data:f}=await IX.post(s,e,l);return a&&await kX({mode:"login",refreshToken:a,blocklet:n}),f}async function kX({mode:e,refreshToken:t="",blocklet:n}){const r=dh(n);return new Promise(i=>{if(!["login","logout"].includes(e)){i();return}const a=document.createElement("iframe");a.style.display="none",a.onload=async()=>{await Um(500),document.body.removeChild(a),i()},a.src=On(r.appUrl,Vi,`functional/federated?mode=${e}&refreshToken=${t}`),document.body.appendChild(a)})}const FF=Wl(),YS={zh:{notFoundFederatedInfo:"未发现统一登录的信息",autoLoginFederatedFailed:"自动登录统一登录账号失败",manualLoginFederatedFailed:"手动登录统一登录账号失败"},en:{notFoundFederatedInfo:"No federated login info detected",autoLoginFederatedFailed:"Auto login federated account failed",manualLoginFederatedFailed:"Manual login federated account failed"}};function _qe({locale:e,handleLoginResult:t,login:n,logout:r,handleRefreshUser:i}){const a=Di({federatedMaster:null}),o=Hm(),s=dh(),l=RX(),f=_t(async(b=Bn,R={},A={})=>{var M,j;typeof A=="string"&&(A={origin:A});let{mode:$="auto",...D}=R;if(A.mode&&($=A.mode),$==="auto"){if(!o)throw new Error(YS[e].notFoundFederatedInfo);try{const U=await KS({appId:globalThis.blocklet.appId},{fetchToken:!1});t({...U,encrypted:!1}),await i(!0,!0),b()}catch(U){const V=U!=null&&U.response?(M=U.response)==null?void 0:M.data:U==null?void 0:U.message;b(V||YS[e].autoLoginFederatedFailed)}}else if($==="manual")try{n(async()=>{await KS({appId:globalThis.blocklet.appId,onlyWriteCookie:!0}),b()},{...D},A)}catch(U){const V=U!=null&&U.response?(j=U.response)==null?void 0:j.data:U==null?void 0:U.message;b(V||YS[e].autoLoginFederatedFailed)}}),c=_t(async()=>{const b=On(s.appUrl||"",Vi,"/api/federated/prelogin"),{data:R}=await FF.post(b,{appId:globalThis.blocklet.appId},{withCredentials:!0});return R}),d=_t(async()=>{if(o){const b=await c();if(a.federatedMaster=b,!(b!=null&&b.user))return r(),!0}return!1}),p=_t(async()=>{if(!o){console.warn("No federated login info detected");return}try{const b=await c();new Promise(R=>{b!=null&&b.user&&o?f(A=>{A&&Ci.error(A),setTimeout(()=>{R()},500)}):R()}).then(()=>{a.federatedMaster=b})}catch{console.warn("Federated login failed")}}),g=_t(async({user:b,cleanConnectedState:R})=>{var A,$;if(b!=null&&b.sourceAppPid&&!await d()&&b.did!==(($=(A=a.federatedMaster)==null?void 0:A.user)==null?void 0:$.did))return new Promise(M=>{f(j=>{j?Ci.error(j):R(),M()})})}),y=_t(async()=>{if(o){a.federatedMaster=null;const b=On(s.appUrl||"",Vi,"/api/federated/logout");await FF.post(b,{},{withCredentials:!0});try{await kX({mode:"logout"})}catch{console.warn("mount federated logout failed")}const R=await c();a.federatedMaster=R}});return{master:s,config:l,federatedMaster:a.federatedMaster,federatedEnabled:o,tryAutoLoginFederated:p,tryAutoLogoutFederated:d,syncFederatedState:g,logoutFederated:y,loginFederated:f,loginFederatedMaster:KS}}async function xqe(e,{authServicePrefix:t,serviceHost:n}){if(!e)throw new Error("Refresh token not found");const r=Wl({baseURL:n,timeout:10*1e3,headers:{authorization:`Bearer ${encodeURIComponent(e)}`}}),{data:i}=await r.post(On(t,"/refreshSession"));return i}function Cqe({refreshTokenStorage:e,sessionTokenStorage:t,serviceHost:n,authServicePrefix:r,onRefreshTokenError:i,onRefreshTokenSuccess:a},o={}){let s=null;const l=Wl({baseURL:n,timeout:30*1e3,...o}),{getToken:f,setToken:c,removeToken:d}=t,{getToken:p,setToken:g,removeToken:y}=e;return l.interceptors.request.use(async b=>{if(t.engine==="ls"){const R=f();R&&(b.headers.authorization=`Bearer ${encodeURIComponent(R)}`)}return s&&await s,b},b=>Promise.reject(b)),l.interceptors.response.use(b=>b,async b=>{var A;const R=b.config;if(R.headers={...R==null?void 0:R.headers},((A=b==null?void 0:b.response)==null?void 0:A.status)===401&&!R._retry){R._retry=!0,s||(s=xqe(p(),{serviceHost:n,authServicePrefix:r}));try{const $=await s;return c($.nextToken),g($.nextRefreshToken),typeof a=="function"&&a($),l(R)}catch($){return d(),y(),typeof i=="function"&&i(),Promise.reject($)}finally{s=null}}return Promise.reject(b)}),l}class My extends Error{}const Rqe="nf_lang",By=e=>iX(e,localStorage.getItem("__encKey"),localStorage.getItem("__decKey"));function $qe({state:e,pageState:t,serviceHost:n,sessionTokenStorage:r,refreshTokenStorage:i,lazyRefreshToken:a,apiOptions:o={}}){const[s,l]=z.useState(1e3),f=en(()=>Cqe({sessionTokenStorage:r,refreshTokenStorage:i,serviceHost:n,authServicePrefix:t.prefix,onRefreshTokenError(){R(),e.user&&(e.user=null)}},o),[n,t.prefix]),{getToken:c,setToken:d,removeToken:p}=r,{getToken:g,setToken:y,removeToken:b}=i,R=()=>{p(),b()},A=()=>{const ie=nf({returnDomain:!1});Br.remove("connected_did",ie),Br.remove("connected_pk",ie),Br.remove("connected_app",ie),Br.remove("connected_wallet_os",ie),R()},$=_t(()=>{const ie=Br.get(Rqe)||oX();ie!==t.currentLocale&&(t.currentLocale=ie)}),D=_t((ie=!1)=>{if(a)return;const le=c();let Q=ie;const P=new Date().getTime();if(le){const{exp:T,iat:u}=jK(le);T*1e3-P<P-u*1e3&&(Q=!0)}else Q=!0;Q&&(g()?j(!1,!0):(A(),e.user&&(e.user=null)))}),M=_t(async(ie=!1)=>{const le=rf()||"",Q=()=>f.get(On(t.prefix,`/session?visitorId=${le}`));try{await U({showProgress:ie,requestFn:Q})}catch(P){P instanceof My&&(console.warn("try to refresh token"),await j())}}),j=_t(async(ie=!1,le=!1)=>{const Q=rf()||"",P=Wl({baseURL:n,timeout:10*1e3,headers:{authorization:`Bearer ${encodeURIComponent(g())}`}}),T=()=>P.post(On(t.prefix,`/refreshSession?visitorId=${Q}`));l(void 0);try{await U({showProgress:ie,requestFn:T,onlyRefreshToken:le})}catch(u){u instanceof My&&(console.warn("refresh token failed, remove all tokens"),R())}finally{l(1e3)}}),U=_t(async({showProgress:ie=!1,requestFn:le=null,onlyRefreshToken:Q=!1})=>{var P;try{if(e.loading)return console.warn("SessionProvider.refresh is currently in progress, call it will be noop"),{loading:!0};ie&&(e.loading=!0);const{data:T,status:u}=await le();if(u===400&&(R(),e.user=null,e.error=""),T.error)throw e.error=T.error,e.open=!1,new Error(T.error);if(T.user)T.nextToken&&(d(T.nextToken),T.nextRefreshToken&&y(T.nextRefreshToken)),Q||(e.open=!1,e.user=T.user,e.provider=T.provider,e.walletOS=T.walletOS);else throw ie&&(e.loading=t.autoConnect),e.open=t.autoConnect,e.user=null,e.provider="",e.walletOS="",new My("Invalid token");return{data:T,status:u}}catch(T){throw console.error("SessionProvider.refresh error",T),e.open=!1,e.error=T.message,((P=T==null?void 0:T.response)==null?void 0:P.status)===400?new My("Invalid token"):T}finally{ie&&(e.loading=!1)}}),V=_t(()=>{if(e.initialized&&e.user)try{D()}catch{}}),X=_t(ie=>{const le=Array.isArray(ie)?ie[0]:ie,{loginToken:Q,sessionToken:P,refreshToken:T,visitorId:u,encrypted:h=!0}=le,E=Q||P;E&&(d(h?By(E):E),T&&y(h?By(T):T)),u&&aW(h?By(u):u)});return WLe(()=>{$(),D()},s),{renewToken:V,handleRefreshUser:M,handleRefreshToken:j,handleLoginResult:X,decrypt:By,removeToken:R,clearSession:A,getSessionToken:c,getRefreshToken:g,setRefreshToken:y,setSessionToken:d,service:f}}var ph={exports:{}},Iqe=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},d2=Iqe;ph.exports=LX;ph.exports.parse=_R;ph.exports.compile=Dqe;ph.exports.tokensToFunction=DX;ph.exports.tokensToRegExp=OX;var kqe=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function _R(e,t){for(var n=[],r=0,i=0,a="",o=t&&t.delimiter||"/",s;(s=kqe.exec(e))!=null;){var l=s[0],f=s[1],c=s.index;if(a+=e.slice(i,c),i=c+l.length,f){a+=f[1];continue}var d=e[i],p=s[2],g=s[3],y=s[4],b=s[5],R=s[6],A=s[7];a&&(n.push(a),a="");var $=p!=null&&d!=null&&d!==p,D=R==="+"||R==="*",M=R==="?"||R==="*",j=s[2]||o,U=y||b;n.push({name:g||r++,prefix:p||"",delimiter:j,optional:M,repeat:D,partial:$,asterisk:!!A,pattern:U?Pqe(U):A?".*":"[^"+zv(j)+"]+?"})}return i<e.length&&(a+=e.substr(i)),a&&n.push(a),n}function Dqe(e,t){return DX(_R(e,t),t)}function Oqe(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Lqe(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function DX(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)typeof e[r]=="object"&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",CR(t)));return function(i,a){for(var o="",s=i||{},l=a||{},f=l.pretty?Oqe:encodeURIComponent,c=0;c<e.length;c++){var d=e[c];if(typeof d=="string"){o+=d;continue}var p=s[d.name],g;if(p==null)if(d.optional){d.partial&&(o+=d.prefix);continue}else throw new TypeError('Expected "'+d.name+'" to be defined');if(d2(p)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(p.length===0){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var y=0;y<p.length;y++){if(g=f(p[y]),!n[c].test(g))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(g)+"`");o+=(y===0?d.prefix:d.delimiter)+g}continue}if(g=d.asterisk?Lqe(p):f(p),!n[c].test(g))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+g+'"');o+=d.prefix+g}return o}}function zv(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Pqe(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function xR(e,t){return e.keys=t,e}function CR(e){return e&&e.sensitive?"":"i"}function Mqe(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return xR(e,t)}function Bqe(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(LX(e[i],t,n).source);var a=new RegExp("(?:"+r.join("|")+")",CR(n));return xR(a,t)}function Nqe(e,t,n){return OX(_R(e,n),t,n)}function OX(e,t,n){d2(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,i=n.end!==!1,a="",o=0;o<e.length;o++){var s=e[o];if(typeof s=="string")a+=zv(s);else{var l=zv(s.prefix),f="(?:"+s.pattern+")";t.push(s),s.repeat&&(f+="(?:"+l+f+")*"),s.optional?s.partial?f=l+"("+f+")?":f="(?:"+l+"("+f+"))?":f=l+"("+f+")",a+=f}}var c=zv(n.delimiter||"/"),d=a.slice(-c.length)===c;return r||(a=(d?a.slice(0,-c.length):a)+"(?:"+c+"(?=$))?"),i?a+="$":a+=r&&d?"":"(?="+c+"|$)",xR(new RegExp("^"+a,CR(n)),t)}function LX(e,t,n){return d2(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?Mqe(e,t):d2(e)?Bqe(e,t,n):Nqe(e,t,n)}var Fqe=ph.exports;const Uqe=Ut(Fqe);function Hqe({protectedRoutes:e=[]}){const t=en(()=>e.map(r=>Uqe(r,[])),[e]);return{checkMatch:_t((r=window.location.pathname)=>t.some(i=>i.exec(r)))}}const hh=z.createContext(),jqe=(e,{width:t=560,height:n=560}={})=>{const r=window.screenX+(window.innerWidth-t)/2,i=window.screenY+(window.innerHeight-n)/2,a=[`left=${r}`,`top=${i}`,`width=${t}`,`height=${n}`,"scrollbars=yes","resizable=no","status=1","popup"];return window.open(e,"did-connect:popup",a.join(","))},Jqe=e=>new Promise((t,n)=>{const r=({data:o})=>{if(o&&o.type==="authorization_response"){if(o!=null&&o.error){console.error(o.error);return}setTimeout(()=>{var s;(s=e.popup)==null||s.close(),clearTimeout(a),clearInterval(i),window.removeEventListener("message",r,!1),l2({connected_app:F1(),...o==null?void 0:o.options},!0),t(o==null?void 0:o.response)},e.closeTimeout||0)}},i=setInterval(()=>{var o;(o=e.popup)!=null&&o.closed&&(clearInterval(i),clearTimeout(a),window.removeEventListener("message",r,!1),n(new Error("Popup closed")))},1e3),a=setTimeout(()=>{clearInterval(i),n(new Error("Timeout")),window.removeEventListener("message",r,!1)},(e.timeoutInSeconds||lVe)*1e3);window.addEventListener("message",r)}),Vqe={width:24,height:24,body:'<path fill="currentColor" d="M10 22L0 12L10 2l1.775 1.775L3.55 12l8.225 8.225L10 22Z"/>'},PX={width:24,height:24,body:'<path fill="currentColor" d="m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 13.4Z"/>'},qqe=z.forwardRef(function(t,n){return G.jsx(uW,{direction:"up",ref:n,...t})});function Gqe(e){function t({popup:n,open:r,dialogStyle:i,responsive:a,...o}){const s=xz("(max-width:640px)");if(!n&&!a)return G.jsx(e,{...o});const l=(c,d)=>{},f=a?!0:r;return G.jsx(Tz,{open:f,fullScreen:s,maxWidth:"lg",onClose:l,...s?{TransitionComponent:qqe,PaperProps:{sx:{borderRadius:3,borderBottomLeftRadius:0,borderBottomRightRadius:0}}}:{PaperProps:{sx:{borderRadius:3}}},children:G.jsx(Az,{sx:{maxWidth:"100%",maxHeight:"100%",p:0},children:G.jsx(yt,{sx:{maxWidth:"100%",width:s?"100%":500,height:s?"100%":"auto"},children:G.jsx(e,{hideCloseButton:!1,...o,isFullScreen:s,mode:"dialog"})})})})}return t.propTypes={responsive:ge.bool,popup:ge.bool,open:ge.bool,dialogStyle:ge.object},t.defaultProps={responsive:!1,popup:!1,open:!1,dialogStyle:{}},t}var MX={},YE={};Object.defineProperty(YE,"__esModule",{value:!0});function lx(e,t,n,r){var i,a=!1,o=0;function s(){i&&clearTimeout(i)}function l(){s(),a=!0}typeof t!="boolean"&&(r=n,n=t,t=void 0);function f(){for(var c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p];var g=this,y=Date.now()-o;if(a)return;function b(){o=Date.now(),n.apply(g,d)}function R(){i=void 0}r&&!i&&b(),s(),r===void 0&&y>e?b():t!==!0&&(i=setTimeout(r?R:b,r===void 0?e-y:e))}return f.cancel=l,f}function Wqe(e,t,n){return n===void 0?lx(e,t,!1):lx(e,n,t!==!1)}YE.debounce=Wqe;YE.throttle=lx;var vo={};Object.defineProperty(vo,"__esModule",{value:!0});vo.isNavigator=vo.isBrowser=vo.off=vo.on=vo.noop=void 0;var zqe=function(){};vo.noop=zqe;function Kqe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}vo.on=Kqe;function Yqe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}vo.off=Yqe;vo.isBrowser=typeof window<"u";vo.isNavigator=typeof navigator<"u";Object.defineProperty(MX,"__esModule",{value:!0});var UF=z,Zqe=YE,Ny=vo,Xqe=["mousemove","mousedown","resize","keydown","touchstart","wheel"],Qqe=6e4,eGe=function(e,t,n){e===void 0&&(e=Qqe),t===void 0&&(t=!1),n===void 0&&(n=Xqe);var r=UF.useState(t),i=r[0],a=r[1];return UF.useEffect(function(){for(var o=!0,s,l=i,f=function(g){o&&(l=g,a(g))},c=Zqe.throttle(50,function(){l&&f(!1),clearTimeout(s),s=setTimeout(function(){return f(!0)},e)}),d=function(){document.hidden||c()},p=0;p<n.length;p++)Ny.on(window,n[p],c);return Ny.on(document,"visibilitychange",d),s=setTimeout(function(){return f(!0)},e),function(){o=!1;for(var g=0;g<n.length;g++)Ny.off(window,n[g],c);Ny.off(document,"visibilitychange",d)}},[e,n]),i},tGe=MX.default=eGe;const nGe=1e3*60*30,rGe="wallet_sw_keeper_disabled";let Ip;const iGe=e=>{const t=document.createElement("iframe");t.title="abt wallet",t.id=Ip,t.style.width=0,t.style.height=0,t.style.border=0,t.style.display="block",t.style.position="absolute",t.style.top=0,t.src=`${e}?action=iframe`,document.body.appendChild(t)},aGe=()=>{const e=document.getElementById(Ip);e&&document.body.removeChild(e)},oGe=()=>{aGe(),Ip=null},sGe=e=>{Ip||(Ip=`web_wallet_sw_keeper_${Date.now()}`,iGe(e))};function RR({webWalletUrl:e,maxIdleTime:t}){const n=z.useRef(!!Ip),r=tGe(t),i=()=>{n.current||oGe()};return z.useEffect(()=>{r?i():sGe(e)},[r]),z.useEffect(()=>()=>i(),[]),null}RR.propTypes={webWalletUrl:ge.string.isRequired,maxIdleTime:ge.number};RR.defaultProps={maxIdleTime:nGe};const lGe=e=>function({webWalletUrl:n,maxIdleTime:r,...i}){const a=km();n=n||eX();const[o]=R6(rGe,{defaultValue:1}),s=Xb(),l=tX(n),f=a.wallet;return G.jsxs(G.Fragment,{children:[!o&&!s&&l&&!f&&G.jsx(RR,{webWalletUrl:n,maxIdleTime:r}),G.jsx(e,{webWalletUrl:n,...i})]})},BX=z.createContext(),{Provider:uGe,Consumer:ggt}=BX;function $R({children:e,baseUrl:t,loading:n}){const[r,i]=z.useState(null),a=_t(async()=>{if(!t||window.location.href.startsWith(t))throw new Error("no blocklet data");const o=new URL("__blocklet__.js",t);return o.searchParams.set("type","json"),await(await fetch(o.href)).json()});return FOe(async()=>{try{const o=await a();i(o)}catch{const o=globalThis.blocklet||globalThis.env;i(o)}},[t]),G.jsx(uGe,{value:r,children:r?e:n||null})}function cGe(){return{blocklet:z.useContext(BX)}}$R.propTypes={baseUrl:ge.string,children:ge.any.isRequired,loading:ge.any};$R.defaultProps={baseUrl:"",loading:null};function IR(){return G.jsx(yt,{sx:{height:"100%",minWidth:"200px",minHeight:"200px",display:"flex",justifyContent:"center",alignItems:"center"},children:G.jsx(rC,{sx:{color:Rt.foregroundsFgInteractive}})})}function fGe(e){function t({...r}){const{blocklet:i}=cGe();return G.jsx(e,{...r,blocklet:i})}function n({baseUrl:r,...i}){return G.jsx($R,{baseUrl:r,loading:G.jsx(IR,{}),children:G.jsx(t,{baseUrl:r,...i})})}return n}const Fy=Cl.box.keyPair();function dGe(){const[e,t]=R6("__encKey",{defaultValue:Ly(Fy.publicKey),deserializer:a=>a,serializer:a=>a}),[n,r]=R6("__decKey",{defaultValue:Ly(Fy.secretKey),deserializer:a=>a,serializer:a=>a});return z.useEffect(()=>{localStorage.getItem("__encKey")||t(Ly(Fy.publicKey)),localStorage.getItem("__decKey")||r(Ly(Fy.secretKey))},[]),{encryptKey:e,decryptKey:n,decrypt:a=>iX(a,e,n)}}var p2={exports:{}};/**
|
|
486
486
|
* @license
|
|
487
487
|
* Lodash <https://lodash.com/>
|
|
488
488
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -513,7 +513,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
513
513
|
`}return Ne.substring(0,Ne.length-1)},_.renderTo2dContext=function(H,L){L=L||2;for(var Y=_.getModuleCount(),K=0;K<Y;K++)for(var te=0;te<Y;te++)H.fillStyle=_.isDark(K,te)?"black":"white",H.fillRect(K*L,te*L,L,L)},_};c.stringToBytes=(c.stringToBytesFuncs={default:function(T){for(var u=[],h=0;h<T.length;h+=1){var E=T.charCodeAt(h);u.push(255&E)}return u}}).default,c.createStringToBytes=function(T,u){var h=function(){for(var S=Q(T),C=function(){var ne=S.read();if(ne==-1)throw"eof";return ne},I=0,x={};;){var _=S.read();if(_==-1)break;var v=C(),k=C()<<8|C();x[String.fromCharCode(_<<8|v)]=k,I+=1}if(I!=u)throw I+" != "+u;return x}(),E=63;return function(S){for(var C=[],I=0;I<S.length;I+=1){var x=S.charCodeAt(I);if(x<128)C.push(x);else{var _=h[S.charAt(I)];typeof _=="number"?(255&_)==_?C.push(_):(C.push(_>>>8),C.push(255&_)):C.push(E)}}return C}};var d,p,g,y,b,R={L:1,M:0,Q:3,H:2},A=(d=[[],[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]],p=1335,g=7973,b=function(T){for(var u=0;T!=0;)u+=1,T>>>=1;return u},(y={}).getBCHTypeInfo=function(T){for(var u=T<<10;b(u)-b(p)>=0;)u^=p<<b(u)-b(p);return 21522^(T<<10|u)},y.getBCHTypeNumber=function(T){for(var u=T<<12;b(u)-b(g)>=0;)u^=g<<b(u)-b(g);return T<<12|u},y.getPatternPosition=function(T){return d[T-1]},y.getMaskFunction=function(T){switch(T){case 0:return function(u,h){return(u+h)%2==0};case 1:return function(u,h){return u%2==0};case 2:return function(u,h){return h%3==0};case 3:return function(u,h){return(u+h)%3==0};case 4:return function(u,h){return(Math.floor(u/2)+Math.floor(h/3))%2==0};case 5:return function(u,h){return u*h%2+u*h%3==0};case 6:return function(u,h){return(u*h%2+u*h%3)%2==0};case 7:return function(u,h){return(u*h%3+(u+h)%2)%2==0};default:throw"bad maskPattern:"+T}},y.getErrorCorrectPolynomial=function(T){for(var u=D([1],0),h=0;h<T;h+=1)u=u.multiply(D([1,$.gexp(h)],0));return u},y.getLengthInBits=function(T,u){if(1<=u&&u<10)switch(T){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+T}else if(u<27)switch(T){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+T}else{if(!(u<41))throw"type:"+u;switch(T){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+T}}},y.getLostPoint=function(T){for(var u=T.getModuleCount(),h=0,E=0;E<u;E+=1)for(var S=0;S<u;S+=1){for(var C=0,I=T.isDark(E,S),x=-1;x<=1;x+=1)if(!(E+x<0||u<=E+x))for(var _=-1;_<=1;_+=1)S+_<0||u<=S+_||x==0&&_==0||I==T.isDark(E+x,S+_)&&(C+=1);C>5&&(h+=3+C-5)}for(E=0;E<u-1;E+=1)for(S=0;S<u-1;S+=1){var v=0;T.isDark(E,S)&&(v+=1),T.isDark(E+1,S)&&(v+=1),T.isDark(E,S+1)&&(v+=1),T.isDark(E+1,S+1)&&(v+=1),v!=0&&v!=4||(h+=3)}for(E=0;E<u;E+=1)for(S=0;S<u-6;S+=1)T.isDark(E,S)&&!T.isDark(E,S+1)&&T.isDark(E,S+2)&&T.isDark(E,S+3)&&T.isDark(E,S+4)&&!T.isDark(E,S+5)&&T.isDark(E,S+6)&&(h+=40);for(S=0;S<u;S+=1)for(E=0;E<u-6;E+=1)T.isDark(E,S)&&!T.isDark(E+1,S)&&T.isDark(E+2,S)&&T.isDark(E+3,S)&&T.isDark(E+4,S)&&!T.isDark(E+5,S)&&T.isDark(E+6,S)&&(h+=40);var k=0;for(S=0;S<u;S+=1)for(E=0;E<u;E+=1)T.isDark(E,S)&&(k+=1);return h+Math.abs(100*k/u/u-50)/5*10},y),$=function(){for(var T=new Array(256),u=new Array(256),h=0;h<8;h+=1)T[h]=1<<h;for(h=8;h<256;h+=1)T[h]=T[h-4]^T[h-5]^T[h-6]^T[h-8];for(h=0;h<255;h+=1)u[T[h]]=h;return{glog:function(E){if(E<1)throw"glog("+E+")";return u[E]},gexp:function(E){for(;E<0;)E+=255;for(;E>=256;)E-=255;return T[E]}}}();function D(T,u){if(T.length===void 0)throw T.length+"/"+u;var h=function(){for(var S=0;S<T.length&&T[S]==0;)S+=1;for(var C=new Array(T.length-S+u),I=0;I<T.length-S;I+=1)C[I]=T[I+S];return C}(),E={getAt:function(S){return h[S]},getLength:function(){return h.length},multiply:function(S){for(var C=new Array(E.getLength()+S.getLength()-1),I=0;I<E.getLength();I+=1)for(var x=0;x<S.getLength();x+=1)C[I+x]^=$.gexp($.glog(E.getAt(I))+$.glog(S.getAt(x)));return D(C,0)},mod:function(S){if(E.getLength()-S.getLength()<0)return E;for(var C=$.glog(E.getAt(0))-$.glog(S.getAt(0)),I=new Array(E.getLength()),x=0;x<E.getLength();x+=1)I[x]=E.getAt(x);for(x=0;x<S.getLength();x+=1)I[x]^=$.gexp($.glog(S.getAt(x))+C);return D(I,0).mod(S)}};return E}var M=function(){var T=[[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]],u=function(E,S){var C={};return C.totalCount=E,C.dataCount=S,C},h={getRSBlocks:function(E,S){var C=function(q,re){switch(re){case R.L:return T[4*(q-1)+0];case R.M:return T[4*(q-1)+1];case R.Q:return T[4*(q-1)+2];case R.H:return T[4*(q-1)+3];default:return}}(E,S);if(C===void 0)throw"bad rs block @ typeNumber:"+E+"/errorCorrectionLevel:"+S;for(var I=C.length/3,x=[],_=0;_<I;_+=1)for(var v=C[3*_+0],k=C[3*_+1],ne=C[3*_+2],N=0;N<v;N+=1)x.push(u(k,ne));return x}};return h}(),j=function(){var T=[],u=0,h={getBuffer:function(){return T},getAt:function(E){var S=Math.floor(E/8);return(T[S]>>>7-E%8&1)==1},put:function(E,S){for(var C=0;C<S;C+=1)h.putBit((E>>>S-C-1&1)==1)},getLengthInBits:function(){return u},putBit:function(E){var S=Math.floor(u/8);T.length<=S&&T.push(0),E&&(T[S]|=128>>>u%8),u+=1}};return h},U=function(T){var u=T,h={getMode:function(){return 1},getLength:function(C){return u.length},write:function(C){for(var I=u,x=0;x+2<I.length;)C.put(E(I.substring(x,x+3)),10),x+=3;x<I.length&&(I.length-x==1?C.put(E(I.substring(x,x+1)),4):I.length-x==2&&C.put(E(I.substring(x,x+2)),7))}},E=function(C){for(var I=0,x=0;x<C.length;x+=1)I=10*I+S(C.charAt(x));return I},S=function(C){if("0"<=C&&C<="9")return C.charCodeAt(0)-48;throw"illegal char :"+C};return h},V=function(T){var u=T,h={getMode:function(){return 2},getLength:function(S){return u.length},write:function(S){for(var C=u,I=0;I+1<C.length;)S.put(45*E(C.charAt(I))+E(C.charAt(I+1)),11),I+=2;I<C.length&&S.put(E(C.charAt(I)),6)}},E=function(S){if("0"<=S&&S<="9")return S.charCodeAt(0)-48;if("A"<=S&&S<="Z")return S.charCodeAt(0)-65+10;switch(S){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 :"+S}};return h},X=function(T){var u=c.stringToBytes(T);return{getMode:function(){return 4},getLength:function(h){return u.length},write:function(h){for(var E=0;E<u.length;E+=1)h.put(u[E],8)}}},ie=function(T){var u=c.stringToBytesFuncs.SJIS;if(!u)throw"sjis not supported.";(function(S,C){var I=u("友");if(I.length!=2||(I[0]<<8|I[1])!=38726)throw"sjis not supported."})();var h=u(T),E={getMode:function(){return 8},getLength:function(S){return~~(h.length/2)},write:function(S){for(var C=h,I=0;I+1<C.length;){var x=(255&C[I])<<8|255&C[I+1];if(33088<=x&&x<=40956)x-=33088;else{if(!(57408<=x&&x<=60351))throw"illegal char at "+(I+1)+"/"+x;x-=49472}x=192*(x>>>8&255)+(255&x),S.put(x,13),I+=2}if(I<C.length)throw"illegal char at "+(I+1)}};return E},le=function(){var T=[],u={writeByte:function(h){T.push(255&h)},writeShort:function(h){u.writeByte(h),u.writeByte(h>>>8)},writeBytes:function(h,E,S){E=E||0,S=S||h.length;for(var C=0;C<S;C+=1)u.writeByte(h[C+E])},writeString:function(h){for(var E=0;E<h.length;E+=1)u.writeByte(h.charCodeAt(E))},toByteArray:function(){return T},toString:function(){var h="";h+="[";for(var E=0;E<T.length;E+=1)E>0&&(h+=","),h+=T[E];return h+"]"}};return u},Q=function(T){var u=T,h=0,E=0,S=0,C={read:function(){for(;S<8;){if(h>=u.length){if(S==0)return-1;throw"unexpected end of file./"+S}var x=u.charAt(h);if(h+=1,x=="=")return S=0,-1;x.match(/^\s$/)||(E=E<<6|I(x.charCodeAt(0)),S+=6)}var _=E>>>S-8&255;return S-=8,_}},I=function(x){if(65<=x&&x<=90)return x-65;if(97<=x&&x<=122)return x-97+26;if(48<=x&&x<=57)return x-48+52;if(x==43)return 62;if(x==47)return 63;throw"c:"+x};return C},P=function(T,u,h){for(var E=function(k,ne){var N=k,q=ne,re=new Array(k*ne),ce={setPixel:function(H,L,Y){re[L*N+H]=Y},write:function(H){H.writeString("GIF87a"),H.writeShort(N),H.writeShort(q),H.writeByte(128),H.writeByte(0),H.writeByte(0),H.writeByte(0),H.writeByte(0),H.writeByte(0),H.writeByte(255),H.writeByte(255),H.writeByte(255),H.writeString(","),H.writeShort(0),H.writeShort(0),H.writeShort(N),H.writeShort(q),H.writeByte(0);var L=he(2);H.writeByte(2);for(var Y=0;L.length-Y>255;)H.writeByte(255),H.writeBytes(L,Y,255),Y+=255;H.writeByte(L.length-Y),H.writeBytes(L,Y,L.length-Y),H.writeByte(0),H.writeString(";")}},he=function(H){for(var L=1<<H,Y=1+(1<<H),K=H+1,te=_e(),ye=0;ye<L;ye+=1)te.add(String.fromCharCode(ye));te.add(String.fromCharCode(L)),te.add(String.fromCharCode(Y));var pe,ae,me,we=le(),be=(pe=we,ae=0,me=0,{write:function(He,xe){if(He>>>xe)throw"length over";for(;ae+xe>=8;)pe.writeByte(255&(He<<ae|me)),xe-=8-ae,He>>>=8-ae,me=0,ae=0;me|=He<<ae,ae+=xe},flush:function(){ae>0&&pe.writeByte(me)}});be.write(L,K);var Ne=0,Ve=String.fromCharCode(re[Ne]);for(Ne+=1;Ne<re.length;){var Me=String.fromCharCode(re[Ne]);Ne+=1,te.contains(Ve+Me)?Ve+=Me:(be.write(te.indexOf(Ve),K),te.size()<4095&&(te.size()==1<<K&&(K+=1),te.add(Ve+Me)),Ve=Me)}return be.write(te.indexOf(Ve),K),be.write(Y,K),be.flush(),we.toByteArray()},_e=function(){var H={},L=0,Y={add:function(K){if(Y.contains(K))throw"dup key:"+K;H[K]=L,L+=1},size:function(){return L},indexOf:function(K){return H[K]},contains:function(K){return H[K]!==void 0}};return Y};return ce}(T,u),S=0;S<u;S+=1)for(var C=0;C<T;C+=1)E.setPixel(C,S,h(C,S));var I=le();E.write(I);for(var x=function(){var k=0,ne=0,N=0,q="",re={},ce=function(_e){q+=String.fromCharCode(he(63&_e))},he=function(_e){if(!(_e<0)){if(_e<26)return 65+_e;if(_e<52)return _e-26+97;if(_e<62)return _e-52+48;if(_e==62)return 43;if(_e==63)return 47}throw"n:"+_e};return re.writeByte=function(_e){for(k=k<<8|255&_e,ne+=8,N+=1;ne>=6;)ce(k>>>ne-6),ne-=6},re.flush=function(){if(ne>0&&(ce(k<<6-ne),k=0,ne=0),N%3!=0)for(var _e=3-N%3,H=0;H<_e;H+=1)q+="="},re.toString=function(){return q},re}(),_=I.toByteArray(),v=0;v<_.length;v+=1)x.writeByte(_[v]);return x.flush(),"data:image/gif;base64,"+x};return c}();f.stringToBytesFuncs["UTF-8"]=function(c){return function(d){for(var p=[],g=0;g<d.length;g++){var y=d.charCodeAt(g);y<128?p.push(y):y<2048?p.push(192|y>>6,128|63&y):y<55296||y>=57344?p.push(224|y>>12,128|y>>6&63,128|63&y):(g++,y=65536+((1023&y)<<10|1023&d.charCodeAt(g)),p.push(240|y>>18,128|y>>12&63,128|y>>6&63,128|63&y))}return p}(c)},(l=typeof(s=function(){return f})=="function"?s.apply(o,[]):s)===void 0||(a.exports=l)},676:(a,o,s)=>{s.d(o,{default:()=>_e});const l="Numeric",f="Alphanumeric",c="Byte";var d=function(){return d=Object.assign||function(H){for(var L,Y=1,K=arguments.length;Y<K;Y++)for(var te in L=arguments[Y])Object.prototype.hasOwnProperty.call(L,te)&&(H[te]=L[te]);return H},d.apply(this,arguments)},p=function(){for(var H=0,L=0,Y=arguments.length;L<Y;L++)H+=arguments[L].length;var K=Array(H),te=0;for(L=0;L<Y;L++)for(var ye=arguments[L],pe=0,ae=ye.length;pe<ae;pe++,te++)K[te]=ye[pe];return K},g=function(H){return!!H&&typeof H=="object"&&!Array.isArray(H)};function y(H){for(var L=[],Y=1;Y<arguments.length;Y++)L[Y-1]=arguments[Y];if(!L.length)return H;var K=L.shift();return K!==void 0&&g(H)&&g(K)?(H=d({},H),Object.keys(K).forEach(function(te){var ye=H[te],pe=K[te];Array.isArray(ye)&&Array.isArray(pe)?H[te]=pe:g(ye)&&g(pe)?H[te]=y(Object.assign({},ye),pe):H[te]=pe}),y.apply(void 0,p([H],L))):H}function b(H,L){var Y=document.createElement("a");Y.download=L,Y.href=H,document.body.appendChild(Y),Y.click(),document.body.removeChild(Y)}var R=function(H,L,Y,K){return new(Y||(Y=Promise))(function(te,ye){function pe(we){try{me(K.next(we))}catch(be){ye(be)}}function ae(we){try{me(K.throw(we))}catch(be){ye(be)}}function me(we){var be;we.done?te(we.value):(be=we.value,be instanceof Y?be:new Y(function(Ne){Ne(be)})).then(pe,ae)}me((K=K.apply(H,L||[])).next())})},A=function(H,L){var Y,K,te,ye,pe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ye={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(ye[Symbol.iterator]=function(){return this}),ye;function ae(me){return function(we){return function(be){if(Y)throw new TypeError("Generator is already executing.");for(;pe;)try{if(Y=1,K&&(te=2&be[0]?K.return:be[0]?K.throw||((te=K.return)&&te.call(K),0):K.next)&&!(te=te.call(K,be[1])).done)return te;switch(K=0,te&&(be=[2&be[0],te.value]),be[0]){case 0:case 1:te=be;break;case 4:return pe.label++,{value:be[1],done:!1};case 5:pe.label++,K=be[1],be=[0];continue;case 7:be=pe.ops.pop(),pe.trys.pop();continue;default:if(!((te=(te=pe.trys).length>0&&te[te.length-1])||be[0]!==6&&be[0]!==2)){pe=0;continue}if(be[0]===3&&(!te||be[1]>te[0]&&be[1]<te[3])){pe.label=be[1];break}if(be[0]===6&&pe.label<te[1]){pe.label=te[1],te=be;break}if(te&&pe.label<te[2]){pe.label=te[2],pe.ops.push(be);break}te[2]&&pe.ops.pop(),pe.trys.pop();continue}be=L.call(H,pe)}catch(Ne){be=[6,Ne],K=0}finally{Y=te=0}if(5&be[0])throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}([me,we])}}};function $(H){return R(this,void 0,void 0,function(){return A(this,function(L){return[2,new Promise(function(Y){var K=new XMLHttpRequest;K.onload=function(){var te=new FileReader;te.onloadend=function(){Y(te.result)},te.readAsDataURL(K.response)},K.open("GET",H),K.responseType="blob",K.send()})]})})}const D={L:.07,M:.15,Q:.25,H:.3};var M=function(){return M=Object.assign||function(H){for(var L,Y=1,K=arguments.length;Y<K;Y++)for(var te in L=arguments[Y])Object.prototype.hasOwnProperty.call(L,te)&&(H[te]=L[te]);return H},M.apply(this,arguments)},j=function(){function H(L){var Y=L.svg,K=L.type;this._svg=Y,this._type=K}return H.prototype.draw=function(L,Y,K,te){var ye;switch(this._type){case"dots":ye=this._drawDot;break;case"classy":ye=this._drawClassy;break;case"classy-rounded":ye=this._drawClassyRounded;break;case"rounded":ye=this._drawRounded;break;case"extra-rounded":ye=this._drawExtraRounded;break;default:ye=this._drawSquare}ye.call(this,{x:L,y:Y,size:K,getNeighbor:te})},H.prototype._rotateFigure=function(L){var Y,K=L.x,te=L.y,ye=L.size,pe=L.rotation,ae=pe===void 0?0:pe,me=K+ye/2,we=te+ye/2;(0,L.draw)(),(Y=this._element)===null||Y===void 0||Y.setAttribute("transform","rotate("+180*ae/Math.PI+","+me+","+we+")")},H.prototype._basicDot=function(L){var Y=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(M(M({},L),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Y._element.setAttribute("cx",String(te+K/2)),Y._element.setAttribute("cy",String(ye+K/2)),Y._element.setAttribute("r",String(K/2))}}))},H.prototype._basicSquare=function(L){var Y=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(M(M({},L),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Y._element.setAttribute("x",String(te)),Y._element.setAttribute("y",String(ye)),Y._element.setAttribute("width",String(K)),Y._element.setAttribute("height",String(K))}}))},H.prototype._basicSideRounded=function(L){var Y=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(M(M({},L),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Y._element.setAttribute("d","M "+te+" "+ye+"v "+K+"h "+K/2+"a "+K/2+" "+K/2+", 0, 0, 0, 0 "+-K)}}))},H.prototype._basicCornerRounded=function(L){var Y=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(M(M({},L),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Y._element.setAttribute("d","M "+te+" "+ye+"v "+K+"h "+K+"v "+-K/2+"a "+K/2+" "+K/2+", 0, 0, 0, "+-K/2+" "+-K/2)}}))},H.prototype._basicCornerExtraRounded=function(L){var Y=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(M(M({},L),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Y._element.setAttribute("d","M "+te+" "+ye+"v "+K+"h "+K+"a "+K+" "+K+", 0, 0, 0, "+-K+" "+-K)}}))},H.prototype._basicCornersRounded=function(L){var Y=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(M(M({},L),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Y._element.setAttribute("d","M "+te+" "+ye+"v "+K/2+"a "+K/2+" "+K/2+", 0, 0, 0, "+K/2+" "+K/2+"h "+K/2+"v "+-K/2+"a "+K/2+" "+K/2+", 0, 0, 0, "+-K/2+" "+-K/2)}}))},H.prototype._drawDot=function(L){var Y=L.x,K=L.y,te=L.size;this._basicDot({x:Y,y:K,size:te,rotation:0})},H.prototype._drawSquare=function(L){var Y=L.x,K=L.y,te=L.size;this._basicSquare({x:Y,y:K,size:te,rotation:0})},H.prototype._drawRounded=function(L){var Y=L.x,K=L.y,te=L.size,ye=L.getNeighbor,pe=ye?+ye(-1,0):0,ae=ye?+ye(1,0):0,me=ye?+ye(0,-1):0,we=ye?+ye(0,1):0,be=pe+ae+me+we;if(be!==0)if(be>2||pe&&ae||me&&we)this._basicSquare({x:Y,y:K,size:te,rotation:0});else{if(be===2){var Ne=0;return pe&&me?Ne=Math.PI/2:me&&ae?Ne=Math.PI:ae&&we&&(Ne=-Math.PI/2),void this._basicCornerRounded({x:Y,y:K,size:te,rotation:Ne})}if(be===1)return Ne=0,me?Ne=Math.PI/2:ae?Ne=Math.PI:we&&(Ne=-Math.PI/2),void this._basicSideRounded({x:Y,y:K,size:te,rotation:Ne})}else this._basicDot({x:Y,y:K,size:te,rotation:0})},H.prototype._drawExtraRounded=function(L){var Y=L.x,K=L.y,te=L.size,ye=L.getNeighbor,pe=ye?+ye(-1,0):0,ae=ye?+ye(1,0):0,me=ye?+ye(0,-1):0,we=ye?+ye(0,1):0,be=pe+ae+me+we;if(be!==0)if(be>2||pe&&ae||me&&we)this._basicSquare({x:Y,y:K,size:te,rotation:0});else{if(be===2){var Ne=0;return pe&&me?Ne=Math.PI/2:me&&ae?Ne=Math.PI:ae&&we&&(Ne=-Math.PI/2),void this._basicCornerExtraRounded({x:Y,y:K,size:te,rotation:Ne})}if(be===1)return Ne=0,me?Ne=Math.PI/2:ae?Ne=Math.PI:we&&(Ne=-Math.PI/2),void this._basicSideRounded({x:Y,y:K,size:te,rotation:Ne})}else this._basicDot({x:Y,y:K,size:te,rotation:0})},H.prototype._drawClassy=function(L){var Y=L.x,K=L.y,te=L.size,ye=L.getNeighbor,pe=ye?+ye(-1,0):0,ae=ye?+ye(1,0):0,me=ye?+ye(0,-1):0,we=ye?+ye(0,1):0;pe+ae+me+we!==0?pe||me?ae||we?this._basicSquare({x:Y,y:K,size:te,rotation:0}):this._basicCornerRounded({x:Y,y:K,size:te,rotation:Math.PI/2}):this._basicCornerRounded({x:Y,y:K,size:te,rotation:-Math.PI/2}):this._basicCornersRounded({x:Y,y:K,size:te,rotation:Math.PI/2})},H.prototype._drawClassyRounded=function(L){var Y=L.x,K=L.y,te=L.size,ye=L.getNeighbor,pe=ye?+ye(-1,0):0,ae=ye?+ye(1,0):0,me=ye?+ye(0,-1):0,we=ye?+ye(0,1):0;pe+ae+me+we!==0?pe||me?ae||we?this._basicSquare({x:Y,y:K,size:te,rotation:0}):this._basicCornerExtraRounded({x:Y,y:K,size:te,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:Y,y:K,size:te,rotation:-Math.PI/2}):this._basicCornersRounded({x:Y,y:K,size:te,rotation:Math.PI/2})},H}();const U=j;var V=function(){return V=Object.assign||function(H){for(var L,Y=1,K=arguments.length;Y<K;Y++)for(var te in L=arguments[Y])Object.prototype.hasOwnProperty.call(L,te)&&(H[te]=L[te]);return H},V.apply(this,arguments)},X=function(){function H(L){var Y=L.svg,K=L.type;this._svg=Y,this._type=K}return H.prototype.draw=function(L,Y,K,te){var ye;switch(this._type){case"square":ye=this._drawSquare;break;case"extra-rounded":ye=this._drawExtraRounded;break;default:ye=this._drawDot}ye.call(this,{x:L,y:Y,size:K,rotation:te})},H.prototype._rotateFigure=function(L){var Y,K=L.x,te=L.y,ye=L.size,pe=L.rotation,ae=pe===void 0?0:pe,me=K+ye/2,we=te+ye/2;(0,L.draw)(),(Y=this._element)===null||Y===void 0||Y.setAttribute("transform","rotate("+180*ae/Math.PI+","+me+","+we+")")},H.prototype._basicDot=function(L){var Y=this,K=L.size,te=L.x,ye=L.y,pe=K/7;this._rotateFigure(V(V({},L),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Y._element.setAttribute("clip-rule","evenodd"),Y._element.setAttribute("d","M "+(te+K/2)+" "+ye+"a "+K/2+" "+K/2+" 0 1 0 0.1 0zm 0 "+pe+"a "+(K/2-pe)+" "+(K/2-pe)+" 0 1 1 -0.1 0Z")}}))},H.prototype._basicSquare=function(L){var Y=this,K=L.size,te=L.x,ye=L.y,pe=K/7;this._rotateFigure(V(V({},L),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Y._element.setAttribute("clip-rule","evenodd"),Y._element.setAttribute("d","M "+te+" "+ye+"v "+K+"h "+K+"v "+-K+"zM "+(te+pe)+" "+(ye+pe)+"h "+(K-2*pe)+"v "+(K-2*pe)+"h "+(2*pe-K)+"z")}}))},H.prototype._basicExtraRounded=function(L){var Y=this,K=L.size,te=L.x,ye=L.y,pe=K/7;this._rotateFigure(V(V({},L),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Y._element.setAttribute("clip-rule","evenodd"),Y._element.setAttribute("d","M "+te+" "+(ye+2.5*pe)+"v "+2*pe+"a "+2.5*pe+" "+2.5*pe+", 0, 0, 0, "+2.5*pe+" "+2.5*pe+"h "+2*pe+"a "+2.5*pe+" "+2.5*pe+", 0, 0, 0, "+2.5*pe+" "+2.5*-pe+"v "+-2*pe+"a "+2.5*pe+" "+2.5*pe+", 0, 0, 0, "+2.5*-pe+" "+2.5*-pe+"h "+-2*pe+"a "+2.5*pe+" "+2.5*pe+", 0, 0, 0, "+2.5*-pe+" "+2.5*pe+"M "+(te+2.5*pe)+" "+(ye+pe)+"h "+2*pe+"a "+1.5*pe+" "+1.5*pe+", 0, 0, 1, "+1.5*pe+" "+1.5*pe+"v "+2*pe+"a "+1.5*pe+" "+1.5*pe+", 0, 0, 1, "+1.5*-pe+" "+1.5*pe+"h "+-2*pe+"a "+1.5*pe+" "+1.5*pe+", 0, 0, 1, "+1.5*-pe+" "+1.5*-pe+"v "+-2*pe+"a "+1.5*pe+" "+1.5*pe+", 0, 0, 1, "+1.5*pe+" "+1.5*-pe)}}))},H.prototype._drawDot=function(L){var Y=L.x,K=L.y,te=L.size,ye=L.rotation;this._basicDot({x:Y,y:K,size:te,rotation:ye})},H.prototype._drawSquare=function(L){var Y=L.x,K=L.y,te=L.size,ye=L.rotation;this._basicSquare({x:Y,y:K,size:te,rotation:ye})},H.prototype._drawExtraRounded=function(L){var Y=L.x,K=L.y,te=L.size,ye=L.rotation;this._basicExtraRounded({x:Y,y:K,size:te,rotation:ye})},H}();const ie=X;var le=function(){return le=Object.assign||function(H){for(var L,Y=1,K=arguments.length;Y<K;Y++)for(var te in L=arguments[Y])Object.prototype.hasOwnProperty.call(L,te)&&(H[te]=L[te]);return H},le.apply(this,arguments)},Q=function(){function H(L){var Y=L.svg,K=L.type;this._svg=Y,this._type=K}return H.prototype.draw=function(L,Y,K,te){(this._type==="square"?this._drawSquare:this._drawDot).call(this,{x:L,y:Y,size:K,rotation:te})},H.prototype._rotateFigure=function(L){var Y,K=L.x,te=L.y,ye=L.size,pe=L.rotation,ae=pe===void 0?0:pe,me=K+ye/2,we=te+ye/2;(0,L.draw)(),(Y=this._element)===null||Y===void 0||Y.setAttribute("transform","rotate("+180*ae/Math.PI+","+me+","+we+")")},H.prototype._basicDot=function(L){var Y=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(le(le({},L),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Y._element.setAttribute("cx",String(te+K/2)),Y._element.setAttribute("cy",String(ye+K/2)),Y._element.setAttribute("r",String(K/2))}}))},H.prototype._basicSquare=function(L){var Y=this,K=L.size,te=L.x,ye=L.y;this._rotateFigure(le(le({},L),{draw:function(){Y._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Y._element.setAttribute("x",String(te)),Y._element.setAttribute("y",String(ye)),Y._element.setAttribute("width",String(K)),Y._element.setAttribute("height",String(K))}}))},H.prototype._drawDot=function(L){var Y=L.x,K=L.y,te=L.size,ye=L.rotation;this._basicDot({x:Y,y:K,size:te,rotation:ye})},H.prototype._drawSquare=function(L){var Y=L.x,K=L.y,te=L.size,ye=L.rotation;this._basicSquare({x:Y,y:K,size:te,rotation:ye})},H}();const P=Q,T="circle";var u=function(H,L,Y,K){return new(Y||(Y=Promise))(function(te,ye){function pe(we){try{me(K.next(we))}catch(be){ye(be)}}function ae(we){try{me(K.throw(we))}catch(be){ye(be)}}function me(we){var be;we.done?te(we.value):(be=we.value,be instanceof Y?be:new Y(function(Ne){Ne(be)})).then(pe,ae)}me((K=K.apply(H,L||[])).next())})},h=function(H,L){var Y,K,te,ye,pe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ye={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(ye[Symbol.iterator]=function(){return this}),ye;function ae(me){return function(we){return function(be){if(Y)throw new TypeError("Generator is already executing.");for(;pe;)try{if(Y=1,K&&(te=2&be[0]?K.return:be[0]?K.throw||((te=K.return)&&te.call(K),0):K.next)&&!(te=te.call(K,be[1])).done)return te;switch(K=0,te&&(be=[2&be[0],te.value]),be[0]){case 0:case 1:te=be;break;case 4:return pe.label++,{value:be[1],done:!1};case 5:pe.label++,K=be[1],be=[0];continue;case 7:be=pe.ops.pop(),pe.trys.pop();continue;default:if(!((te=(te=pe.trys).length>0&&te[te.length-1])||be[0]!==6&&be[0]!==2)){pe=0;continue}if(be[0]===3&&(!te||be[1]>te[0]&&be[1]<te[3])){pe.label=be[1];break}if(be[0]===6&&pe.label<te[1]){pe.label=te[1],te=be;break}if(te&&pe.label<te[2]){pe.label=te[2],pe.ops.push(be);break}te[2]&&pe.ops.pop(),pe.trys.pop();continue}be=L.call(H,pe)}catch(Ne){be=[6,Ne],K=0}finally{Y=te=0}if(5&be[0])throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}([me,we])}}},E=[[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]],S=[[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 C=function(){function H(L){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(L.width)),this._element.setAttribute("height",String(L.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._instanceId=H.instanceCount++,this._options=L}return Object.defineProperty(H.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(H.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),H.prototype.getElement=function(){return this._element},H.prototype.drawQR=function(L){return u(this,void 0,void 0,function(){var Y,K,te,ye,pe,ae,me,we,be,Ne,Ve=this;return h(this,function(Me){switch(Me.label){case 0:return Y=L.getModuleCount(),K=Math.min(this._options.width,this._options.height)-2*this._options.margin,te=this._options.shape===T?K/Math.sqrt(2):K,ye=te/Y,pe={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=L,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Me.sent(),!this._image)return[2];ae=this._options,me=ae.imageOptions,we=ae.qrOptions,be=me.imageSize*D[we.errorCorrectionLevel],Ne=Math.floor(be*Y*Y),pe=function(He){var xe=He.originalHeight,ke=He.originalWidth,Je=He.maxHiddenDots,Oe=He.maxHiddenAxisDots,W=He.dotSize,B={x:0,y:0},F={x:0,y:0};if(xe<=0||ke<=0||Je<=0||W<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var se=xe/ke;return B.x=Math.floor(Math.sqrt(Je/se)),B.x<=0&&(B.x=1),Oe&&Oe<B.x&&(B.x=Oe),B.x%2==0&&B.x--,F.x=B.x*W,B.y=1+2*Math.ceil((B.x*se-1)/2),F.y=Math.round(F.x*se),(B.y*B.x>Je||Oe&&Oe<B.y)&&(Oe&&Oe<B.y?(B.y=Oe,B.y%2==0&&B.x--):B.y-=2,F.y=B.y*W,B.x=1+2*Math.ceil((B.y/se-1)/2),F.x=Math.round(F.y/se)),{height:F.y,width:F.x,hideYDots:B.y,hideXDots:B.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Ne,maxHiddenAxisDots:Y-14,dotSize:ye}),Me.label=2;case 2:return this.drawBackground(),this.drawDots(function(He,xe){var ke,Je,Oe,W,B,F;return!(Ve._options.imageOptions.hideBackgroundDots&&He>=(Y-pe.hideXDots)/2&&He<(Y+pe.hideXDots)/2&&xe>=(Y-pe.hideYDots)/2&&xe<(Y+pe.hideYDots)/2||!((ke=E[He])===null||ke===void 0)&&ke[xe]||!((Je=E[He-Y+7])===null||Je===void 0)&&Je[xe]||!((Oe=E[He])===null||Oe===void 0)&&Oe[xe-Y+7]||!((W=S[He])===null||W===void 0)&&W[xe]||!((B=S[He-Y+7])===null||B===void 0)&&B[xe]||!((F=S[He])===null||F===void 0)&&F[xe-Y+7])}),this.drawCorners(),this._options.image?[4,this.drawImage({width:pe.width,height:pe.height,count:Y,dotSize:ye})]:[3,4];case 3:Me.sent(),Me.label=4;case 4:return[2]}})})},H.prototype.drawBackground=function(){var L,Y,K,te=this._element,ye=this._options;if(te){var pe=(L=ye.backgroundOptions)===null||L===void 0?void 0:L.gradient,ae=(Y=ye.backgroundOptions)===null||Y===void 0?void 0:Y.color;if((pe||ae)&&this._createColor({options:pe,color:ae,additionalRotation:0,x:0,y:0,height:ye.height,width:ye.width,name:"background-color"}),(K=ye.backgroundOptions)===null||K===void 0?void 0:K.round){var me=Math.min(ye.width,ye.height),we=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),we.setAttribute("x",String((ye.width-me)/2)),we.setAttribute("y",String((ye.height-me)/2)),we.setAttribute("width",String(me)),we.setAttribute("height",String(me)),we.setAttribute("rx",String(me/2*ye.backgroundOptions.round)),this._backgroundClipPath.appendChild(we)}}},H.prototype.drawDots=function(L){var Y,K,te=this;if(!this._qr)throw"QR code is not defined";var ye=this._options,pe=this._qr.getModuleCount();if(pe>ye.width||pe>ye.height)throw"The canvas is too small.";var ae=Math.min(ye.width,ye.height)-2*ye.margin,me=(ye.shape===T?ae/Math.sqrt(2):ae)/pe,we=(ye.width-pe*me)/2,be=(ye.height-pe*me)/2,Ne=new U({svg:this._element,type:ye.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:(Y=ye.dotsOptions)===null||Y===void 0?void 0:Y.gradient,color:ye.dotsOptions.color,additionalRotation:0,x:0,y:0,height:ye.height,width:ye.width,name:"dot-color-"+this._instanceId});for(var Ve=function(Ae){for(var Se=function(Be){return L&&!L(Ae,Be)?"continue":!((K=Me._qr)===null||K===void 0)&&K.isDark(Ae,Be)?(Ne.draw(we+Ae*me,be+Be*me,me,function(je,ft){return!(Ae+je<0||Be+ft<0||Ae+je>=pe||Be+ft>=pe)&&!(L&&!L(Ae+je,Be+ft))&&!!te._qr&&te._qr.isDark(Ae+je,Be+ft)}),void(Ne._element&&Me._dotsClipPath&&Me._dotsClipPath.appendChild(Ne._element))):"continue"},We=0;We<pe;We++)Se(We)},Me=this,He=0;He<pe;He++)Ve(He);if(ye.shape===T){var xe=Math.floor((ae/me-pe)/2),ke=pe+2*xe,Je=we-xe*me,Oe=be-xe*me,W=[],B=Math.floor(ke/2);for(He=0;He<ke;He++){W[He]=[];for(var F=0;F<ke;F++)He>=xe-1&&He<=ke-xe&&F>=xe-1&&F<=ke-xe||Math.sqrt((He-B)*(He-B)+(F-B)*(F-B))>B?W[He][F]=0:W[He][F]=this._qr.isDark(F-2*xe<0?F:F>=pe?F-2*xe:F-xe,He-2*xe<0?He:He>=pe?He-2*xe:He-xe)?1:0}var se=function(Ae){for(var Se=function(Be){if(!W[Ae][Be])return"continue";Ne.draw(Je+Ae*me,Oe+Be*me,me,function(je,ft){var Ze;return!!(!((Ze=W[Ae+je])===null||Ze===void 0)&&Ze[Be+ft])}),Ne._element&&Te._dotsClipPath&&Te._dotsClipPath.appendChild(Ne._element)},We=0;We<ke;We++)Se(We)},Te=this;for(He=0;He<ke;He++)se(He)}},H.prototype.drawCorners=function(){var L=this;if(!this._qr)throw"QR code is not defined";var Y=this._element,K=this._options;if(!Y)throw"Element code is not defined";var te=this._qr.getModuleCount(),ye=Math.min(K.width,K.height)-2*K.margin,pe=(K.shape===T?ye/Math.sqrt(2):ye)/te,ae=7*pe,me=3*pe,we=(K.width-te*pe)/2,be=(K.height-te*pe)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(Ne){var Ve,Me,He,xe,ke,Je,Oe,W,B,F,se,Te,Ae=Ne[0],Se=Ne[1],We=Ne[2],Be=we+Ae*pe*(te-7),je=be+Se*pe*(te-7),ft=L._dotsClipPath,Ze=L._dotsClipPath;if((!((Ve=K.cornersSquareOptions)===null||Ve===void 0)&&Ve.gradient||!((Me=K.cornersSquareOptions)===null||Me===void 0)&&Me.color)&&((ft=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Ae+"-"+Se),L._defs.appendChild(ft),L._cornersSquareClipPath=L._cornersDotClipPath=Ze=ft,L._createColor({options:(He=K.cornersSquareOptions)===null||He===void 0?void 0:He.gradient,color:(xe=K.cornersSquareOptions)===null||xe===void 0?void 0:xe.color,additionalRotation:We,x:Be,y:je,height:ae,width:ae,name:"corners-square-color-"+Ae+"-"+Se})),(ke=K.cornersSquareOptions)===null||ke===void 0?void 0:ke.type){var rt=new ie({svg:L._element,type:K.cornersSquareOptions.type});rt.draw(Be,je,ae,We),rt._element&&ft&&ft.appendChild(rt._element)}else for(var Pt=new U({svg:L._element,type:K.dotsOptions.type}),mt=function(st){for(var tn=function(nt){if(!(!((Je=E[st])===null||Je===void 0)&&Je[nt]))return"continue";Pt.draw(Be+st*pe,je+nt*pe,pe,function(an,ee){var oe;return!!(!((oe=E[st+an])===null||oe===void 0)&&oe[nt+ee])}),Pt._element&&ft&&ft.appendChild(Pt._element)},At=0;At<E[st].length;At++)tn(At)},ot=0;ot<E.length;ot++)mt(ot);if((!((Oe=K.cornersDotOptions)===null||Oe===void 0)&&Oe.gradient||!((W=K.cornersDotOptions)===null||W===void 0)&&W.color)&&((Ze=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Ae+"-"+Se),L._defs.appendChild(Ze),L._cornersDotClipPath=Ze,L._createColor({options:(B=K.cornersDotOptions)===null||B===void 0?void 0:B.gradient,color:(F=K.cornersDotOptions)===null||F===void 0?void 0:F.color,additionalRotation:We,x:Be+2*pe,y:je+2*pe,height:me,width:me,name:"corners-dot-color-"+Ae+"-"+Se})),(se=K.cornersDotOptions)===null||se===void 0?void 0:se.type){var Kt=new P({svg:L._element,type:K.cornersDotOptions.type});Kt.draw(Be+2*pe,je+2*pe,me,We),Kt._element&&Ze&&Ze.appendChild(Kt._element)}else{Pt=new U({svg:L._element,type:K.dotsOptions.type});var St=function(st){for(var tn=function(nt){if(!(!((Te=S[st])===null||Te===void 0)&&Te[nt]))return"continue";Pt.draw(Be+st*pe,je+nt*pe,pe,function(an,ee){var oe;return!!(!((oe=S[st+an])===null||oe===void 0)&&oe[nt+ee])}),Pt._element&&Ze&&Ze.appendChild(Pt._element)},At=0;At<S[st].length;At++)tn(At)};for(ot=0;ot<S.length;ot++)St(ot)}})},H.prototype.loadImage=function(){var L=this;return new Promise(function(Y,K){var te=L._options,ye=new Image;if(!te.image)return K("Image is not defined");typeof te.imageOptions.crossOrigin=="string"&&(ye.crossOrigin=te.imageOptions.crossOrigin),L._image=ye,ye.onload=function(){Y()},ye.src=te.image})},H.prototype.drawImage=function(L){var Y=L.width,K=L.height,te=L.count,ye=L.dotSize;return u(this,void 0,void 0,function(){var pe,ae,me,we,be,Ne,Ve,Me,He;return h(this,function(xe){switch(xe.label){case 0:return pe=this._options,ae=(pe.width-te*ye)/2,me=(pe.height-te*ye)/2,we=ae+pe.imageOptions.margin+(te*ye-Y)/2,be=me+pe.imageOptions.margin+(te*ye-K)/2,Ne=Y-2*pe.imageOptions.margin,Ve=K-2*pe.imageOptions.margin,(Me=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(we)),Me.setAttribute("y",String(be)),Me.setAttribute("width",Ne+"px"),Me.setAttribute("height",Ve+"px"),[4,$(pe.image||"")];case 1:return He=xe.sent(),Me.setAttribute("href",He||""),this._element.appendChild(Me),[2]}})})},H.prototype._createColor=function(L){var Y=L.options,K=L.color,te=L.additionalRotation,ye=L.x,pe=L.y,ae=L.height,me=L.width,we=L.name,be=me>ae?me:ae,Ne=document.createElementNS("http://www.w3.org/2000/svg","rect");if(Ne.setAttribute("x",String(ye)),Ne.setAttribute("y",String(pe)),Ne.setAttribute("height",String(ae)),Ne.setAttribute("width",String(me)),Ne.setAttribute("clip-path","url('#clip-path-"+we+"')"),Y){var Ve;if(Y.type==="radial")(Ve=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",we),Ve.setAttribute("gradientUnits","userSpaceOnUse"),Ve.setAttribute("fx",String(ye+me/2)),Ve.setAttribute("fy",String(pe+ae/2)),Ve.setAttribute("cx",String(ye+me/2)),Ve.setAttribute("cy",String(pe+ae/2)),Ve.setAttribute("r",String(be/2));else{var Me=((Y.rotation||0)+te)%(2*Math.PI),He=(Me+2*Math.PI)%(2*Math.PI),xe=ye+me/2,ke=pe+ae/2,Je=ye+me/2,Oe=pe+ae/2;He>=0&&He<=.25*Math.PI||He>1.75*Math.PI&&He<=2*Math.PI?(xe-=me/2,ke-=ae/2*Math.tan(Me),Je+=me/2,Oe+=ae/2*Math.tan(Me)):He>.25*Math.PI&&He<=.75*Math.PI?(ke-=ae/2,xe-=me/2/Math.tan(Me),Oe+=ae/2,Je+=me/2/Math.tan(Me)):He>.75*Math.PI&&He<=1.25*Math.PI?(xe+=me/2,ke+=ae/2*Math.tan(Me),Je-=me/2,Oe-=ae/2*Math.tan(Me)):He>1.25*Math.PI&&He<=1.75*Math.PI&&(ke+=ae/2,xe+=me/2/Math.tan(Me),Oe-=ae/2,Je-=me/2/Math.tan(Me)),(Ve=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",we),Ve.setAttribute("gradientUnits","userSpaceOnUse"),Ve.setAttribute("x1",String(Math.round(xe))),Ve.setAttribute("y1",String(Math.round(ke))),Ve.setAttribute("x2",String(Math.round(Je))),Ve.setAttribute("y2",String(Math.round(Oe)))}Y.colorStops.forEach(function(W){var B=W.offset,F=W.color,se=document.createElementNS("http://www.w3.org/2000/svg","stop");se.setAttribute("offset",100*B+"%"),se.setAttribute("stop-color",F),Ve.appendChild(se)}),Ne.setAttribute("fill","url('#"+we+"')"),this._defs.appendChild(Ve)}else K&&Ne.setAttribute("fill",K);this._element.appendChild(Ne)},H.instanceCount=0,H}(),I="canvas";for(var x={},_=0;_<=40;_++)x[_]=_;const v={type:I,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:x[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 k=function(){return k=Object.assign||function(H){for(var L,Y=1,K=arguments.length;Y<K;Y++)for(var te in L=arguments[Y])Object.prototype.hasOwnProperty.call(L,te)&&(H[te]=L[te]);return H},k.apply(this,arguments)};function ne(H){var L=k({},H);if(!L.colorStops||!L.colorStops.length)throw"Field 'colorStops' is required in gradient";return L.rotation?L.rotation=Number(L.rotation):L.rotation=0,L.colorStops=L.colorStops.map(function(Y){return k(k({},Y),{offset:Number(Y.offset)})}),L}function N(H){var L=k({},H);return L.width=Number(L.width),L.height=Number(L.height),L.margin=Number(L.margin),L.imageOptions=k(k({},L.imageOptions),{hideBackgroundDots:!!L.imageOptions.hideBackgroundDots,imageSize:Number(L.imageOptions.imageSize),margin:Number(L.imageOptions.margin)}),L.margin>Math.min(L.width,L.height)&&(L.margin=Math.min(L.width,L.height)),L.dotsOptions=k({},L.dotsOptions),L.dotsOptions.gradient&&(L.dotsOptions.gradient=ne(L.dotsOptions.gradient)),L.cornersSquareOptions&&(L.cornersSquareOptions=k({},L.cornersSquareOptions),L.cornersSquareOptions.gradient&&(L.cornersSquareOptions.gradient=ne(L.cornersSquareOptions.gradient))),L.cornersDotOptions&&(L.cornersDotOptions=k({},L.cornersDotOptions),L.cornersDotOptions.gradient&&(L.cornersDotOptions.gradient=ne(L.cornersDotOptions.gradient))),L.backgroundOptions&&(L.backgroundOptions=k({},L.backgroundOptions),L.backgroundOptions.gradient&&(L.backgroundOptions.gradient=ne(L.backgroundOptions.gradient))),L}var q=s(192),re=s.n(q),ce=function(H,L,Y,K){return new(Y||(Y=Promise))(function(te,ye){function pe(we){try{me(K.next(we))}catch(be){ye(be)}}function ae(we){try{me(K.throw(we))}catch(be){ye(be)}}function me(we){var be;we.done?te(we.value):(be=we.value,be instanceof Y?be:new Y(function(Ne){Ne(be)})).then(pe,ae)}me((K=K.apply(H,L||[])).next())})},he=function(H,L){var Y,K,te,ye,pe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ye={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(ye[Symbol.iterator]=function(){return this}),ye;function ae(me){return function(we){return function(be){if(Y)throw new TypeError("Generator is already executing.");for(;pe;)try{if(Y=1,K&&(te=2&be[0]?K.return:be[0]?K.throw||((te=K.return)&&te.call(K),0):K.next)&&!(te=te.call(K,be[1])).done)return te;switch(K=0,te&&(be=[2&be[0],te.value]),be[0]){case 0:case 1:te=be;break;case 4:return pe.label++,{value:be[1],done:!1};case 5:pe.label++,K=be[1],be=[0];continue;case 7:be=pe.ops.pop(),pe.trys.pop();continue;default:if(!((te=(te=pe.trys).length>0&&te[te.length-1])||be[0]!==6&&be[0]!==2)){pe=0;continue}if(be[0]===3&&(!te||be[1]>te[0]&&be[1]<te[3])){pe.label=be[1];break}if(be[0]===6&&pe.label<te[1]){pe.label=te[1],te=be;break}if(te&&pe.label<te[2]){pe.label=te[2],pe.ops.push(be);break}te[2]&&pe.ops.pop(),pe.trys.pop();continue}be=L.call(H,pe)}catch(Ne){be=[6,Ne],K=0}finally{Y=te=0}if(5&be[0])throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}([me,we])}}};const _e=function(){function H(L){this._options=L?N(y(v,L)):v,this.update()}return H._clearContainer=function(L){L&&(L.innerHTML="")},H.prototype._setupSvg=function(){var L=this;if(this._qr){var Y=new C(this._options);this._svg=Y.getElement(),this._svgDrawingPromise=Y.drawQR(this._qr).then(function(){var K;L._svg&&((K=L._extension)===null||K===void 0||K.call(L,Y.getElement(),L._options))})}},H.prototype._setupCanvas=function(){var L,Y=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=(L=this._svgDrawingPromise)===null||L===void 0?void 0:L.then(function(){if(Y._svg){var K=Y._svg,te=new XMLSerializer().serializeToString(K),ye="data:image/svg+xml;base64,"+btoa(te),pe=new Image;return new Promise(function(ae){pe.onload=function(){var me,we;(we=(me=Y._canvas)===null||me===void 0?void 0:me.getContext("2d"))===null||we===void 0||we.drawImage(pe,0,0),ae()},pe.src=ye})}}))},H.prototype._getElement=function(L){return L===void 0&&(L="png"),ce(this,void 0,void 0,function(){return he(this,function(Y){switch(Y.label){case 0:if(!this._qr)throw"QR code is empty";return L.toLowerCase()!=="svg"?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return Y.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return Y.sent(),[2,this._canvas]}})})},H.prototype.update=function(L){H._clearContainer(this._container),this._options=L?N(y(this._options,L)):this._options,this._options.data&&(this._qr=re()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(Y){switch(!0){case/^[0-9]*$/.test(Y):return l;case/^[0-9A-Z $%*+\-./:]*$/.test(Y):return f;default:return c}}(this._options.data)),this._qr.make(),this._options.type===I?this._setupCanvas():this._setupSvg(),this.append(this._container))},H.prototype.append=function(L){if(L){if(typeof L.appendChild!="function")throw"Container should be a single DOM node";this._options.type===I?this._canvas&&L.appendChild(this._canvas):this._svg&&L.appendChild(this._svg),this._container=L}},H.prototype.applyExtension=function(L){if(!L)throw"Extension function should be defined.";this._extension=L,this.update()},H.prototype.deleteExtension=function(){this._extension=void 0,this.update()},H.prototype.getRawData=function(L){return L===void 0&&(L="png"),ce(this,void 0,void 0,function(){var Y,K,te;return he(this,function(ye){switch(ye.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(L)];case 1:return(Y=ye.sent())?L.toLowerCase()==="svg"?(K=new XMLSerializer,te=K.serializeToString(Y),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
|
|
514
514
|
`+te],{type:"image/svg+xml"})]):[2,new Promise(function(pe){return Y.toBlob(pe,"image/"+L,1)})]:[2,null]}})})},H.prototype.download=function(L){return ce(this,void 0,void 0,function(){var Y,K,te,ye,pe;return he(this,function(ae){switch(ae.label){case 0:if(!this._qr)throw"QR code is empty";return Y="png",K="qr",typeof L=="string"?(Y=L,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof L=="object"&&L!==null&&(L.name&&(K=L.name),L.extension&&(Y=L.extension)),[4,this._getElement(Y)];case 1:return(te=ae.sent())?(Y.toLowerCase()==="svg"?(ye=new XMLSerializer,pe=`<?xml version="1.0" standalone="no"?>\r
|
|
515
515
|
`+(pe=ye.serializeToString(te)),b("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(pe),K+".svg")):b(te.toDataURL("image/"+Y),K+"."+Y),[2]):[2]}})})},H}()}},r={};function i(a){if(r[a])return r[a].exports;var o=r[a]={exports:{}};return n[a](o,o.exports,i),o.exports}return i.n=a=>{var o=a&&a.__esModule?()=>a.default:()=>a;return i.d(o,{a:o}),o},i.d=(a,o)=>{for(var s in o)i.o(o,s)&&!i.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:o[s]})},i.o=(a,o)=>Object.prototype.hasOwnProperty.call(a,o),i(676)})().default})})(JX);var aWe=JX.exports;const oWe=Ut(aWe),sWe={margin:0,dotsOptions:{type:"dots"},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}};function UR({data:e,size:t,image:n,config:r,...i}){const a=z.useRef(null),o=z.useMemo(()=>({...sWe,data:e,width:t,height:t,...n&&{image:n,imageOptions:{crossOrigin:"anonymous",margin:0}},...r}),[e,t,n,r]),[s]=z.useState(new oWe(o));return z.useEffect(()=>{a.current&&s.append(a.current)},[s,a]),z.useEffect(()=>{s&&s.update(o)},[e,t,n,r]),G.jsx(yt,{ref:a,...i})}UR.propTypes={data:ge.string.isRequired,size:ge.number.isRequired,image:ge.string,config:ge.object};UR.defaultProps={image:null,config:{}};function HR({tokenState:e,locale:t,messages:n}){const{t:r,matchSmallScreen:i}=zl(),a="DID Wallet",o=(n==null?void 0:n.scan)||r("scanWithWallet"),s=r("download"),l=r("downloadTips"),f=160,c=en(()=>["zh","en"].includes?`https://www.didwallet.io/${t}`:"https://www.didwallet.io/en",[t]),d=en(()=>G.jsxs(G.Fragment,{children:[l," ",G.jsx(yt,{component:"a",href:c,target:"_blank",rel:"noreferrer",sx:{color:Rt.foregroundsFgInteractive,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:s})]}),[c,s,l]);return G.jsxs(Zu,{sx:{display:"flex",gap:1,justifyContent:"space-between",alignItems:i?"center":"stretch",flexDirection:i?"column":"row"},children:[G.jsx(yt,{sx:{display:i?"none":"block"},children:G.jsx(kp,{width:"24px",height:"24px"})}),G.jsxs(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",flex:1,wordBreak:"break-word",width:i?186:"auto"},children:[G.jsxs(Ir,{sx:{fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:1},children:[i?G.jsx(kp,{width:"24px",height:"24px"}):null,a]}),G.jsx(Ir,{sx:{flex:1,color:Rt.foregroundsFgMuted,fontSize:"12px"},children:o}),G.jsx(yt,{sx:{color:Rt.foregroundsFgMuted,fontSize:"12px",display:i?"none":"block"},children:d})]}),G.jsx(UR,{data:e.url,size:f,sx:{p:1.5,borderRadius:2,border:`1px solid ${Rt.strokeBorderBase}`,backgroundColor:"white",fontSize:0}}),G.jsx(yt,{sx:{color:Rt.textMuted,fontSize:"12px",display:i?"block":"none"},children:d})]})}HR.propTypes={tokenState:ge.object.isRequired,locale:ge.string,messages:ge.object};HR.defaultProps={locale:"en",messages:{}};const VX={width:24,height:24,body:'<path fill="currentColor" d="M12 22q-2.05 0-3.875-.788t-3.188-2.15q-1.362-1.362-2.15-3.187T2 12q0-2.075.788-3.888t2.15-3.174Q6.3 3.575 8.124 2.788T12 2q2.075 0 3.888.788t3.174 2.15q1.363 1.362 2.15 3.175T22 12q0 2.05-.788 3.875t-2.15 3.188q-1.362 1.362-3.175 2.15T12 22Zm0-2.05q.65-.9 1.125-1.875T13.9 16h-3.8q.3 1.1.775 2.075T12 19.95Zm-2.6-.4q-.45-.825-.788-1.713T8.05 16H5.1q.725 1.25 1.813 2.175T9.4 19.55Zm5.2 0q1.4-.45 2.488-1.375T18.9 16h-2.95q-.225.95-.562 1.838T14.6 19.55ZM4.25 14h3.4q-.075-.5-.113-.988T7.5 12q0-.525.038-1.012T7.65 10h-3.4q-.125.5-.188.988T4 12q0 .525.063 1.012T4.25 14Zm5.4 0h4.7q.075-.5.113-.988T14.5 12q0-.525-.038-1.012T14.35 10h-4.7q-.075.5-.113.988T9.5 12q0 .525.038 1.012T9.65 14Zm6.7 0h3.4q.125-.5.188-.988T20 12q0-.525-.063-1.012T19.75 10h-3.4q.075.5.113.988T16.5 12q0 .525-.038 1.012T16.35 14Zm-.4-6h2.95q-.725-1.25-1.812-2.175T14.6 4.45q.45.825.788 1.713T15.95 8ZM10.1 8h3.8q-.3-1.1-.775-2.075T12 4.05q-.65.9-1.125 1.875T10.1 8Zm-5 0h2.95q.225-.95.563-1.838T9.4 4.45Q8 4.9 6.912 5.825T5.1 8Z"/>'},qX={width:256,height:315,body:'<path d="M213.803 167.03c.442 47.58 41.74 63.413 42.197 63.615c-.35 1.116-6.599 22.563-21.757 44.716c-13.104 19.153-26.705 38.235-48.13 38.63c-21.05.388-27.82-12.483-51.888-12.483c-24.061 0-31.582 12.088-51.51 12.871c-20.68.783-36.428-20.71-49.64-39.793c-27-39.033-47.633-110.3-19.928-158.406c13.763-23.89 38.36-39.017 65.056-39.405c20.307-.387 39.475 13.662 51.889 13.662c12.406 0 35.699-16.895 60.186-14.414c10.25.427 39.026 4.14 57.503 31.186c-1.49.923-34.335 20.044-33.978 59.822M174.24 50.199c10.98-13.29 18.369-31.79 16.353-50.199c-15.826.636-34.962 10.546-46.314 23.828c-10.173 11.763-19.082 30.589-16.678 48.633c17.64 1.365 35.66-8.964 46.64-22.262"/>'},GX={width:256,height:250,body:'<path fill="#161614" d="M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0Zm-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931Zm6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66Zm4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08Zm7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27Zm9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622Zm10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868Zm10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403Z"/>'},WX={width:256,height:262,body:'<path fill="#4285F4" d="M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622l38.755 30.023l2.685.268c24.659-22.774 38.875-56.282 38.875-96.027"/><path fill="#34A853" d="M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055c-34.523 0-63.824-22.773-74.269-54.25l-1.531.13l-40.298 31.187l-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1"/><path fill="#FBBC05" d="M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82c0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782"/><path fill="#EB4335" d="M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0C79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251"/>'},jR={width:256,height:285,body:'<path d="M220.412 0h-92.415l28.562 89.006h92.416l-74.77 53.077l28.57 89.511c48.128-35.06 63.854-88.12 46.208-142.588L220.413 0ZM7.018 89.006h92.416L127.997 0H35.589L7.019 89.006c-17.655 54.468-1.92 107.529 46.207 142.588l28.563-89.51l-74.77-53.078Zm46.208 142.588l74.77 52.97l74.77-52.97l-74.77-53.847l-74.77 53.847Z"/>'};function zX({icon:e,...t}){return G.jsx(zu,{...t,sx:{backgroundColor:"white",border:`1px solid ${Rt.borderBase}`,...t==null?void 0:t.sx},children:G.jsx(Zn,{icon:e})})}zX.propTypes={icon:ge.any.isRequired};function KX({providerList:e,onLogin:t}){return G.jsxs(Zu,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[G.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[G.jsx(Zn,{icon:VX,fontSize:"1.3rem"}),G.jsx(Ir,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Others"})]}),G.jsx(yt,{sx:{display:"flex",gap:2},children:e.map(r=>{const i={auth0:jR,apple:qX,github:GX,google:WX};return G.jsx(zX,{icon:i[r.provider],onClick:()=>t(r)},r.provider)})})]})}KX.propTypes={onLogin:ge.func.isRequired,providerList:ge.array.isRequired};function YX({title:e,icon:t,...n}){return G.jsxs(Zu,{...n,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:Rt.surfacePrimarySubtitle,"& .other-item-icon":{display:"inline-block",transform:"translateX(0)",opacity:"1"}},"& .other-item-icon":{opacity:"0",transform:"translateX(-100%)",transition:"transform 0.2s ease"},...n==null?void 0:n.sx},children:[G.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[G.jsx(Zn,{icon:t,fontSize:"1.5rem",style:{transform:"scale(0.95)"}}),G.jsx(Ir,{sx:{fontSize:"16px",fontWeight:"bold"},children:e})]}),G.jsx(Zn,{className:"other-item-icon",icon:ZE,fontSize:"1.3rem",color:Rt.primaryBase})]})}YX.propTypes={title:ge.string.isRequired,icon:ge.string.isRequired};function ZX({providerList:e,onLogin:t}){return G.jsx(yt,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:e.map(n=>{const r={auth0:jR,apple:qX,github:GX,google:WX},i={auth0:"Auth0",apple:"Apple",github:"Github",google:"Google"};return G.jsx(YX,{title:i[n.provider],icon:r[n.provider],onClick:()=>{t(n)}},n.provider)})})}ZX.propTypes={onLogin:ge.func.isRequired,providerList:ge.array.isRequired};function m2({providerList:e,type:t,onSuccess:n,onError:r,tokenState:i}){const{extraParams:a,changeStatus:o}=zl(),{loginOAuth:s,logoutOAuth:l,translation:f,oauthState:c}=SR(),d=_t(async p=>{try{c.loading=!0,c.status="scanned";const g=await s(p,{action:i.action,...a}),y=nf({returnDomain:!1});Br.remove("connected_did",y),Br.remove("connected_pk",y),Br.remove("connected_wallet_os",y),Br.set("connected_app",F1(i.appInfo,i.memberAppInfo),y),g!=null&&g.sessionToken&&(c.loading=!1,c.status="succeed",await l({provider:p.provider}),n({...g,encrypted:!1},b=>b,{sourceAppPid:a==null?void 0:a.sourceAppPid}))}catch(g){const y=aX(g,f.loginOAuthFailed);c.loading=!1,c.error=y,c.status="error",await l({provider:p.provider}),r(new Error(y))}});return z.useEffect(()=>{o(c.status)},[o,c.status]),t==="stack"?G.jsx(KX,{providerList:e,onLogin:d}):G.jsx(ZX,{providerList:e,onLogin:d})}m2.propTypes={providerList:ge.array.isRequired,type:ge.oneOf(["list","stack"]),onSuccess:ge.func.isRequired,onError:ge.func.isRequired,tokenState:ge.object.isRequired};m2.defaultProps={type:"stack"};var lWe=rE,uWe=fC,cWe=1,fWe=2;function dWe(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var l=s[0],f=e[l],c=s[1];if(o&&s[2]){if(f===void 0&&!(l in e))return!1}else{var d=new lWe;if(r)var p=r(f,c,l,e,t,d);if(!(p===void 0?uWe(c,f,cWe|fWe,r,d):p))return!1}}return!0}var pWe=dWe,hWe=zi;function mWe(e){return e===e&&!hWe(e)}var XX=mWe,gWe=XX,yWe=xm;function vWe(e){for(var t=yWe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,gWe(i)]}return t}var bWe=vWe;function EWe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var QX=EWe,TWe=pWe,AWe=bWe,wWe=QX;function SWe(e){var t=AWe(e);return t.length==1&&t[0][2]?wWe(t[0][0],t[0][1]):function(n){return n===e||TWe(n,e,t)}}var _We=SWe,xWe=fC,CWe=vm,RWe=nz,$We=x8,IWe=XX,kWe=QX,DWe=Kp,OWe=1,LWe=2;function PWe(e,t){return $We(e)&&IWe(t)?kWe(DWe(e),t):function(n){var r=CWe(n,e);return r===void 0&&r===t?RWe(n,e):xWe(t,r,OWe|LWe)}}var MWe=PWe,BWe=ym;function NWe(e){return function(t){return BWe(t,e)}}var FWe=NWe,UWe=xG,HWe=FWe,jWe=x8,JWe=Kp;function VWe(e){return jWe(e)?UWe(JWe(e)):HWe(e)}var qWe=VWe,GWe=_We,WWe=MWe,zWe=sE,KWe=Aa,YWe=qWe;function ZWe(e){return typeof e=="function"?e:e==null?zWe:typeof e=="object"?KWe(e)?WWe(e[0],e[1]):GWe(e):YWe(e)}var QE=ZWe,XWe="Expected a function";function QWe(e){if(typeof e!="function")throw new TypeError(XWe);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var eze=QWe,tze=Wp,nze=QE,rze=tz,ize=Q8;function aze(e,t){if(e==null)return{};var n=tze(ize(e),function(r){return[r]});return t=nze(t),rze(e,n,function(r,i){return t(r,i[0])})}var oze=aze,sze=QE,lze=eze,uze=oze;function cze(e,t){return uze(e,lze(sze(t)))}var fze=cze;const VF=Ut(fze);function dze(e){return e==null}var pze=dze;const qF=Ut(pze);var eQ={};Object.defineProperty(eQ,"__esModule",{value:!0});var hze=eQ.default=mze,ZS=z;function mze(e,t){const n=(0,ZS.useRef)();(0,ZS.useEffect)(()=>{n.current=e},[e]),(0,ZS.useEffect)(()=>{function r(){n.current()}if(t!==null){const i=setInterval(r,t);return()=>clearInterval(i)}},[t])}var tQ={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,f,c){this.fn=l,this.context=f,this.once=c||!1}function a(l,f,c,d,p){if(typeof c!="function")throw new TypeError("The listener must be a function");var g=new i(c,d||l,p),y=n?n+f:f;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],g]:l._events[y].push(g):(l._events[y]=g,l._eventsCount++),l}function o(l,f){--l._eventsCount===0?l._events=new r:delete l._events[f]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var f=[],c,d;if(this._eventsCount===0)return f;for(d in c=this._events)t.call(c,d)&&f.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(c)):f},s.prototype.listeners=function(f){var c=n?n+f:f,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,g=d.length,y=new Array(g);p<g;p++)y[p]=d[p].fn;return y},s.prototype.listenerCount=function(f){var c=n?n+f:f,d=this._events[c];return d?d.fn?1:d.length:0},s.prototype.emit=function(f,c,d,p,g,y){var b=n?n+f:f;if(!this._events[b])return!1;var R=this._events[b],A=arguments.length,$,D;if(R.fn){switch(R.once&&this.removeListener(f,R.fn,void 0,!0),A){case 1:return R.fn.call(R.context),!0;case 2:return R.fn.call(R.context,c),!0;case 3:return R.fn.call(R.context,c,d),!0;case 4:return R.fn.call(R.context,c,d,p),!0;case 5:return R.fn.call(R.context,c,d,p,g),!0;case 6:return R.fn.call(R.context,c,d,p,g,y),!0}for(D=1,$=new Array(A-1);D<A;D++)$[D-1]=arguments[D];R.fn.apply(R.context,$)}else{var M=R.length,j;for(D=0;D<M;D++)switch(R[D].once&&this.removeListener(f,R[D].fn,void 0,!0),A){case 1:R[D].fn.call(R[D].context);break;case 2:R[D].fn.call(R[D].context,c);break;case 3:R[D].fn.call(R[D].context,c,d);break;case 4:R[D].fn.call(R[D].context,c,d,p);break;default:if(!$)for(j=1,$=new Array(A-1);j<A;j++)$[j-1]=arguments[j];R[D].fn.apply(R[D].context,$)}}return!0},s.prototype.on=function(f,c,d){return a(this,f,c,d,!1)},s.prototype.once=function(f,c,d){return a(this,f,c,d,!0)},s.prototype.removeListener=function(f,c,d,p){var g=n?n+f:f;if(!this._events[g])return this;if(!c)return o(this,g),this;var y=this._events[g];if(y.fn)y.fn===c&&(!p||y.once)&&(!d||y.context===d)&&o(this,g);else{for(var b=0,R=[],A=y.length;b<A;b++)(y[b].fn!==c||p&&!y[b].once||d&&y[b].context!==d)&&R.push(y[b]);R.length?this._events[g]=R.length===1?R[0]:R:o(this,g)}return this},s.prototype.removeAllListeners=function(f){var c;return f?(c=n?n+f:f,this._events[c]&&o(this,c)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(tQ);var nQ=tQ.exports,JR=Object.defineProperty,gze=Object.getOwnPropertyDescriptor,yze=Object.getOwnPropertyNames,vze=Object.prototype.hasOwnProperty,bze=(e,t)=>{for(var n in t)JR(e,n,{get:t[n],enumerable:!0})},Eze=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of yze(t))!vze.call(e,i)&&i!==n&&JR(e,i,{get:()=>t[i],enumerable:!(r=gze(t,i))||r.enumerable});return e},Tze=e=>Eze(JR({},"__esModule",{value:!0}),e),rQ={};bze(rQ,{Channel:()=>aQ,LongPoll:()=>Kv,Presence:()=>A0,Serializer:()=>w0,Socket:()=>Rze});var Aze=Tze(rQ),W0=e=>typeof e=="function"?e:function(){return e},wze=typeof self<"u"?self:null,T0=typeof window<"u"?window:null,z0=wze||T0||z0,Sze="2.0.0",xs={connecting:0,open:1,closing:2,closed:3},_ze=1e4,xze=1e3,Da={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},pl={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},ux={longpoll:"longpoll",websocket:"websocket"},Cze={complete:4},Uy=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},iQ=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},aQ=class{constructor(e,t,n){this.state=Da.closed,this.topic=e,this.params=W0(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Uy(this,pl.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new iQ(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Da.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=Da.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=Da.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=Da.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new Uy(this,pl.leave,W0({}),this.timeout).send(),this.state=Da.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(pl.reply,(r,i)=>{this.trigger(this.replyEventName(i),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(e){this.on(pl.close,e)}onError(e){return this.on(pl.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Uy(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Da.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(pl.close,"leave")},n=new Uy(this,pl.leave,W0({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Da.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let i=this.onMessage(e,t,n,r);if(t&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let a=this.bindings.filter(o=>o.event===e);for(let o=0;o<a.length;o++)a[o].callback(i,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===Da.closed}isErrored(){return this.state===Da.errored}isJoined(){return this.state===Da.joined}isJoining(){return this.state===Da.joining}isLeaving(){return this.state===Da.leaving}},g2=class{static request(e,t,n,r,i,a,o){if(z0.XDomainRequest){let s=new z0.XDomainRequest;return this.xdomainRequest(s,e,t,r,i,a,o)}else{let s=new z0.XMLHttpRequest;return this.xhrRequest(s,e,t,n,r,i,a,o)}}static xdomainRequest(e,t,n,r,i,a,o){return e.timeout=i,e.open(t,n),e.onload=()=>{let s=this.parseJSON(e.responseText);o&&o(s)},a&&(e.ontimeout=a),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,i,a,o,s){return e.open(t,n,!0),e.timeout=a,e.setRequestHeader("Content-Type",r),e.onerror=()=>s&&s(null),e.onreadystatechange=()=>{if(e.readyState===Cze.complete&&s){let l=this.parseJSON(e.responseText);s(l)}},o&&(e.ontimeout=o),e.send(i),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=t?`${t}[${r}]`:r,a=e[r];typeof a=="object"?n.push(this.serialize(a,i)):n.push(encodeURIComponent(i)+"="+encodeURIComponent(a))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},Kv=class{constructor(e){this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=xs.connecting,this.poll()}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+ux.websocket),"$1/"+ux.longpoll)}endpointURL(){return g2.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=xs.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===xs.open||this.readyState===xs.connecting}poll(){this.ajax("GET","application/json",null,()=>this.ontimeout(),e=>{if(e){var{status:t,token:n,messages:r}=e;this.token=n}else t=0;switch(t){case 200:r.forEach(i=>{setTimeout(()=>this.onmessage({data:i}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=xs.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${t}`)}})}send(e){this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST","application/x-ndjson",e.join(`
|
|
516
|
-
`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let i of this.reqs)i.abort();this.readyState=xs.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,i){let a,o=()=>{this.reqs.delete(a),r()};a=g2.request(e,this.endpointURL(),t,n,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},A0=class{constructor(e,t={}){let n=t.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(n.state,r=>{let{onJoin:i,onLeave:a,onSync:o}=this.caller;this.joinRef=this.channel.joinRef(),this.state=A0.syncState(this.state,r,i,a),this.pendingDiffs.forEach(s=>{this.state=A0.syncDiff(this.state,s,i,a)}),this.pendingDiffs=[],o()}),this.channel.on(n.diff,r=>{let{onJoin:i,onLeave:a,onSync:o}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(r):(this.state=A0.syncDiff(this.state,r,i,a),o())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return A0.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,t,n,r){let i=this.clone(e),a={},o={};return this.map(i,(s,l)=>{t[s]||(o[s]=l)}),this.map(t,(s,l)=>{let f=i[s];if(f){let c=l.metas.map(y=>y.phx_ref),d=f.metas.map(y=>y.phx_ref),p=l.metas.filter(y=>d.indexOf(y.phx_ref)<0),g=f.metas.filter(y=>c.indexOf(y.phx_ref)<0);p.length>0&&(a[s]=l,a[s].metas=p),g.length>0&&(o[s]=this.clone(f),o[s].metas=g)}else a[s]=l}),this.syncDiff(i,{joins:a,leaves:o},n,r)}static syncDiff(e,t,n,r){let{joins:i,leaves:a}=this.clone(t);return n||(n=function(){}),r||(r=function(){}),this.map(i,(o,s)=>{let l=e[o];if(e[o]=this.clone(s),l){let f=e[o].metas.map(d=>d.phx_ref),c=l.metas.filter(d=>f.indexOf(d.phx_ref)<0);e[o].metas.unshift(...c)}n(o,l,s)}),this.map(a,(o,s)=>{let l=e[o];if(!l)return;let f=s.metas.map(c=>c.phx_ref);l.metas=l.metas.filter(c=>f.indexOf(c.phx_ref)<0),r(o,l,s),l.metas.length===0&&delete e[o]}),e}static list(e,t){return t||(t=function(n,r){return r}),this.map(e,(n,r)=>t(n,r))}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static clone(e){return JSON.parse(JSON.stringify(e))}},w0={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,a,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:a,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:a}=e,o=this.META_LENGTH+t.length+n.length+i.length+r.length,s=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(s),f=0;l.setUint8(f++,this.KINDS.push),l.setUint8(f++,t.length),l.setUint8(f++,n.length),l.setUint8(f++,i.length),l.setUint8(f++,r.length),Array.from(t,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(i,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(f++,d.charCodeAt(0)));var c=new Uint8Array(s.byteLength+a.byteLength);return c.set(new Uint8Array(s),0),c.set(new Uint8Array(a),s.byteLength),c.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(e.slice(o,o+r));o=o+r;let l=n.decode(e.slice(o,o+i));o=o+i;let f=n.decode(e.slice(o,o+a));o=o+a;let c=e.slice(o,e.byteLength);return{join_ref:s,ref:null,topic:l,event:f,payload:c}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(s,s+r));s=s+r;let f=n.decode(e.slice(s,s+i));s=s+i;let c=n.decode(e.slice(s,s+a));s=s+a;let d=n.decode(e.slice(s,s+o));s=s+o;let p=e.slice(s,e.byteLength),g={status:d,response:p};return{join_ref:l,ref:f,topic:c,event:pl.reply,payload:g}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=this.HEADER_LENGTH+2,o=n.decode(e.slice(a,a+r));a=a+r;let s=n.decode(e.slice(a,a+i));a=a+i;let l=e.slice(a,e.byteLength);return{join_ref:null,ref:null,topic:o,event:s,payload:l}}},Rze=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||_ze,this.transport=n.transport||z0.WebSocket||Kv,this.establishedConnections=0,this.defaultEncoder=w0.encode.bind(w0),this.defaultDecoder=w0.decode.bind(w0),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Kv?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;T0&&T0.addEventListener&&(T0.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),T0.addEventListener("pageshow",i=>{r===this.connectClock&&(r=null,this.connect())})),this.heartbeatIntervalMs=n.heartbeatIntervalMs||3e4,this.rejoinAfterMs=i=>n.rejoinAfterMs?n.rejoinAfterMs(i):[1e3,2e3,5e3][i-1]||1e4,this.reconnectAfterMs=i=>n.reconnectAfterMs?n.reconnectAfterMs(i):[10,50,100,150,200,250,500,1e3,2e3][i-1]||5e3,this.logger=n.logger||null,this.longpollerTimeout=n.longpollerTimeout||2e4,this.params=W0(n.params||{}),this.endPoint=`${t}/${ux.websocket}`,this.vsn=n.vsn||Sze,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new iQ(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Kv}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=g2.appendParams(g2.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,n,r){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,n,r)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=W0(t)),!this.conn&&(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=n=>this.onConnError(n),this.conn.onmessage=n=>this.onConnMessage(n),this.conn.onclose=n=>this.onConnClose(n))}log(t,n,r){this.logger(t,n,r)}hasLogger(){return this.logger!==null}onOpen(t){let n=this.makeRef();return this.stateChangeCallbacks.open.push([n,t]),n}onClose(t){let n=this.makeRef();return this.stateChangeCallbacks.close.push([n,t]),n}onError(t){let n=this.makeRef();return this.stateChangeCallbacks.error.push([n,t]),n}onMessage(t){let n=this.makeRef();return this.stateChangeCallbacks.message.push([n,t]),n}ping(t){if(!this.isConnected())return!1;let n=this.makeRef(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:n});let i=this.onMessage(a=>{a.ref===n&&(this.off([i]),t(Date.now()-r))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,t])=>t())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),xze,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,n,r){if(!this.conn)return t&&t();this.waitForBufferDone(()=>{this.conn&&(n?this.conn.close(n,r||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,n=1){if(n===5||!this.conn||!this.conn.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(t,n+1)},150*n)}waitForSocketClosed(t,n=1){if(n===5||!this.conn||this.conn.readyState===xs.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(t,n+1)},150*n)}onConnClose(t){let n=t&&t.code;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&n!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,r])=>r(t))}onConnError(t){this.hasLogger()&&this.log("transport",t);let n=this.transport,r=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,i])=>{i(t,n,r)}),(n===this.transport||r>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(pl.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case xs.connecting:return"connecting";case xs.open:return"open";case xs.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(n=>n.joinRef()!==t.joinRef())}off(t){for(let n in this.stateChangeCallbacks)this.stateChangeCallbacks[n]=this.stateChangeCallbacks[n].filter(([r])=>t.indexOf(r)===-1)}channel(t,n={}){let r=new aQ(t,n,this);return this.channels.push(r),r}push(t){if(this.hasLogger()){let{topic:n,event:r,payload:i,ref:a,join_ref:o}=t;this.log("push",`${n} ${r} (${o}, ${a})`,i)}this.isConnected()?this.encode(t,n=>this.conn.send(n)):this.sendBuffer.push(()=>this.encode(t,n=>this.conn.send(n)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:i,payload:a,ref:o,join_ref:s}=n;o&&o===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${a.status||""} ${r} ${i} ${o&&"("+o+")"||""}`,a);for(let l=0;l<this.channels.length;l++){const f=this.channels[l];f.isMember(r,i,a,s)&&f.trigger(i,a,o,s)}for(let l=0;l<this.stateChangeCallbacks.message.length;l++){let[,f]=this.stateChangeCallbacks.message[l];f(n)}})}leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r.isJoined()||r.isJoining()));n&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),n.leave())}},cx={exports:{}},XS,GF;function $ze(){if(GF)return XS;GF=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;XS=function(c,d){d=d||{};var p=typeof c;if(p==="string"&&c.length>0)return o(c);if(p==="number"&&isFinite(c))return d.long?l(c):s(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function o(c){if(c=String(c),!(c.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(d){var p=parseFloat(d[1]),g=(d[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return p*a;case"weeks":case"week":case"w":return p*i;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function s(c){var d=Math.abs(c);return d>=r?Math.round(c/r)+"d":d>=n?Math.round(c/n)+"h":d>=t?Math.round(c/t)+"m":d>=e?Math.round(c/e)+"s":c+"ms"}function l(c){var d=Math.abs(c);return d>=r?f(c,d,r,"day"):d>=n?f(c,d,n,"hour"):d>=t?f(c,d,t,"minute"):d>=e?f(c,d,e,"second"):c+" ms"}function f(c,d,p,g){var y=d>=p*1.5;return Math.round(c/p)+" "+g+(y?"s":"")}return XS}function Ize(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=o,n.humanize=$ze(),n.destroy=f,Object.keys(e).forEach(c=>{n[c]=e[c]}),n.names=[],n.skips=[],n.formatters={};function t(c){let d=0;for(let p=0;p<c.length;p++)d=(d<<5)-d+c.charCodeAt(p),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(c){let d,p=null,g,y;function b(...R){if(!b.enabled)return;const A=b,$=Number(new Date),D=$-(d||$);A.diff=D,A.prev=d,A.curr=$,d=$,R[0]=n.coerce(R[0]),typeof R[0]!="string"&&R.unshift("%O");let M=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(U,V)=>{if(U==="%%")return"%";M++;const X=n.formatters[V];if(typeof X=="function"){const ie=R[M];U=X.call(A,ie),R.splice(M,1),M--}return U}),n.formatArgs.call(A,R),(A.log||n.log).apply(A,R)}return b.namespace=c,b.useColors=n.useColors(),b.color=n.selectColor(c),b.extend=r,b.destroy=n.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(g!==n.namespaces&&(g=n.namespaces,y=n.enabled(c)),y),set:R=>{p=R}}),typeof n.init=="function"&&n.init(b),b}function r(c,d){const p=n(this.namespace+(typeof d>"u"?":":d)+c);return p.log=this.log,p}function i(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];let d;const p=(typeof c=="string"?c:"").split(/[\s,]+/),g=p.length;for(d=0;d<g;d++)p[d]&&(c=p[d].replace(/\*/g,".*?"),c[0]==="-"?n.skips.push(new RegExp("^"+c.slice(1)+"$")):n.names.push(new RegExp("^"+c+"$")))}function a(){const c=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let d,p;for(d=0,p=n.skips.length;d<p;d++)if(n.skips[d].test(c))return!1;for(d=0,p=n.names.length;d<p;d++)if(n.names[d].test(c))return!0;return!1}function s(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function l(c){return c instanceof Error?c.stack||c.message:c}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var kze=Ize;(function(e,t){var n={};t.formatArgs=i,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.destroy=(()=>{let f=!1;return()=>{f||(f=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(f){if(f[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+f[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;f.splice(1,0,c,"color: inherit");let d=0,p=0;f[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(d++,g==="%c"&&(p=d))}),f.splice(p,0,c)}t.log=console.debug||console.log||(()=>{});function a(f){try{f?t.storage.setItem("debug",f):t.storage.removeItem("debug")}catch{}}function o(){let f;try{f=t.storage.getItem("debug")}catch{}return!f&&typeof Xt<"u"&&"env"in Xt&&(f=n.DEBUG),f}function s(){try{return localStorage}catch{}}e.exports=kze(t);const{formatters:l}=e.exports;l.j=function(f){try{return JSON.stringify(f)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(cx,cx.exports);var VR=cx.exports;const Dze=VR;var Oze=(e,t=!1)=>{const n=Dze(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const Lze=Oze;var Pze=(e,t,n)=>class extends e{constructor(i,a={}){super(i,{transport:n,...a}),this._logger=Lze("client",a.silent),this.emitter=new t,this.onOpen(()=>{this._logger.debug("socket open",i)}),this.onClose(()=>{this._logger.debug("socket close",i)}),this.onError(o=>{this._logger.error("socket error",o.error)}),this.onMessage(o=>{this._logger.debug("socket message",o)})}on(i,a,o={}){this.ensureJoinChannel(i,o),this.emitter.on(i,a)}off(i,a){a?this.emitter.off(i,a):this.emitter.removeAllListeners(i),this.ensureLeaveChannel(i)}disconnect(i,a,o){this.emitter.eventNames().forEach(s=>{this.emitter.removeAllListeners(s)}),super.disconnect(i,a,o)}ensureJoinChannel(i,a={}){if(this.emitter.listenerCount(i)>0)return;const s=this.channel(i,a);s.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),s.on(i,({status:l,response:f})=>{l==="ok"?this.emitter.emit(i,f):this._logger.debug("response error",{topic:i,status:l,data:f})})}ensureLeaveChannel(i){if(this.emitter.listenerCount(i)>0)return;const o=this.channels.find(s=>s.topic===i);o&&(this.remove(o),o.leave().receive("ok",s=>{this._logger.debug("leave success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("leave error",{topic:i,err:s})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:i})}),o.off(i))}subscribe(i,a={}){let o=this.channels.find(s=>s.topic===i);return o||(o=this.channel(i,a),o.join().receive("ok",s=>{this._logger.debug("join success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("join error",{topic:i,error:s})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),o)}unsubscribe(i){this.ensureLeaveChannel(i)}};const Mze=nQ,{Socket:Bze}=Aze,Nze=Pze;var Fze=Nze(Bze,Mze);const Uze=Fze;var qR={WsClient:Uze};function Hze(e){const t=z.useRef(e);z.useEffect(()=>{t.current=e},[e]),z.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function jze(e){const t=e||window.location.href;return new URL(t).host}function S0(e){const t={},n=e||window.location.href;if(n){const{hostname:r,protocol:i,port:a}=new URL(n);t["x-real-hostname"]=r,t["x-real-port"]=a,t["x-real-protocol"]=i.endsWith(":")?i.substring(0,i.length-1):i}return t}const QS={};function Jze({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const a=`${t}/token?${v0(r)}`;return QS[a]||(QS[a]=async function(){var d,p;const s=+new Date,l=await n(a,{headers:S0(i)}),f=+new Date;if(f-s<500&&await Um(500-(f-s)),(d=l==null?void 0:l.data)!=null&&d.token)return l.data;if((p=l==null?void 0:l.data)!=null&&p.error)throw new Error(l.data.error);const c=Qb(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${c}`)}),QS[a]}const Vze=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=mVe(t);return{token:gVe(n),url:n}}catch(e){return{error:e}}},oQ=()=>Bs(globalThis,"blocklet.appPid")||Bs(globalThis,"blocklet.appId")||Bs(globalThis,"env.appId")||"",qze=()=>(Bs(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(QZ,""),e5=e=>`relay:${oQ()}:${e}`,Gze=()=>window.location.protocol==="https:"?"wss:":"ws:",WF=e=>!e||new URL(e).origin===window.location.origin,zF=e=>["succeed","error","timeout","busy"].includes(e);function Wze({action:e,checkFn:t,checkInterval:n,checkTimeout:r,extraParams:i,locale:a,prefix:o,tokenKey:s,encKey:l,onError:f,onSuccess:c,baseUrl:d,autoConnect:p=!0,forceConnected:g=!0,saveConnect:y=!0,useSocket:b=!0,provider:R="wallet"}){const A=Di({checking:!1,loading:!1,token:"",url:"",store:null,status:"created",error:"",checkCount:0,mfaCode:0,appInfo:null,memberAppInfo:null,connectedDid:"",saveConnect:!1,inExistingSession:!1,nextWorkflow:"",baseUrl:d,prefix:`${o}/${e}`,extraParams:VF(i,qF),checkFn:t,results:{},action:e,provider:R}),$=H1[a]||H1.en,D=en(()=>Vze(),[]),M=Math.ceil(r/n),j=Di({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:U,decrypt:V}=dGe(),X=km(),ie=rf(),le=_t((..._)=>{const v={[l]:U,...A.extraParams,locale:a,forceConnected:g,autoConnect:p&&!X.wallet&&!j.cancelWhenScannedCounter&&["ios","android"].includes(Br.get("connected_wallet_os")),provider:A.provider};return ie&&(v.visitorId=ie),Jze({action:e,prefix:A.prefix,baseUrl:A.baseUrl,checkFn:A.checkFn,extraParams:v})(..._)}),Q=()=>{j.cancelWhenScannedCounter++};z.useEffect(()=>{j.cancelWhenScannedCounter>0&&(i.nw?f(new Error($.retryForbidden)):S())},[j.cancelWhenScannedCounter]);const P=z.useRef(null),T=z.useRef(null);z.useEffect(()=>(b&&WF(A.baseUrl)&&oQ()?(!P.current||P.current.isConnected()===!1||P.current.baseUrl!==A.baseUrl)&&(P.current=new qR.WsClient(`${Gze()}//${jze(A.baseUrl)}${qze()}${QZ}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),P.current.baseUrl=A.baseUrl,P.current.onOpen(()=>{j.isSocketAvailable=!0}),P.current.connect()):j.isSocketAvailable&&(j.isSocketAvailable=!1),()=>{P.current&&(P.current.disconnect(),P.current=null)}),[A.baseUrl]);const u={...A.extraParams,locale:a,[s]:A.token||(D==null?void 0:D.token),provider:A.provider},h=()=>!A.token||A.loading||zF(A.status)?null:n,E=async()=>{try{u[s]&&A.status==="created"&&await A.checkFn(`${A.prefix}/timeout?${v0(u)}`,{headers:S0(A.baseUrl)})}catch{}try{A.token&&T.current&&(await P.current.unsubscribe(e5(A.token)),T.current=null)}catch{}},S=_t(async(_=!0)=>{_&&E();try{A.loading=!0,A.token="",A.url="",A.store=null,A.extraParams=VF(i,qF),await Um();const v=await le(),k=v.extra||{};A.loading=!1,A.token=v.token,A.url=v.url,A.status="created",A.error="",A.checkCount=0,A.appInfo=v.appInfo,A.memberAppInfo=v.memberAppInfo,A.connectedDid=k.connectedDid,A.saveConnect=k.saveConnect}catch(v){A.loading=!1,A.status="error",A.error=`${$.generateError}: ${v.message}`}}),C=z.useRef(null);z.useEffect(()=>{C.current={state:A,params:u}}),z.useEffect(()=>()=>{const{state:_,params:v}=C.current;_.status==="created"&&v[s]&&_.checkFn(`${_.prefix}/timeout?${v0(v)}`,{headers:S0(_.baseUrl)})},[]);const I=async()=>{try{if(D.error)throw D.error;A.loading=!0,A.token=D.token,A.url=D.url,A.inExistingSession=!0;const _=await x();if(_!=null&&_.status&&(_==null?void 0:_.status)!=="created")throw new Error(`${$.invalidSessionStatus} [${_.status}]`)}catch(_){A.status="error",A.error=_.message,f(_,A==null?void 0:A.store,V)}finally{A.loading=!1}};z.useEffect(()=>{if(!A.token&&!A.store&&!A.loading&&!A.error)if(D)I();else{S(!1);return}if(A.status!=="timeout"&&A.checkCount>M){A.status="timeout",E();return}if(A.status==="succeed"&&!j.onSuccessCalled){const _=rX({...A.store,appInfo:A.appInfo,memberAppInfo:A.memberAppInfo});if(WF(A.baseUrl)&&y&&A.saveConnect&&A.store.did&&l2(_,!0),A.store){const{nextWorkflow:v}=A.store;if(v)try{const k=yVe(v,s);A.nextWorkflow=(k==null?void 0:k.nextWorkflow)||v,Object.assign(A,k),A.store=null,A.error="",A.url="",A.appInfo=null,A.memberAppInfo=null,A.checkCount=0,A.status="scanned",A.results={...A.results,[A.token]:A.store},A.checkFn=Wl({baseURL:k.baseUrl,timeout:8e3}).get,x()}catch(k){console.error(`Invalid nextWorkflow: ${v}`,k),A.status="error",A.error=`Invalid nextWorkflow: ${v}: ${k.message}`}else if(A.nextWorkflow&&(A.nextWorkflow="",A.url=""),typeof c=="function"){const k=Object.values({...A.results,[A.token]:A.store});j.onSuccessCalled=!0;const ne=k.length>1?k:k[0],N=xl(ne);c(N,V,{sourceAppPid:i==null?void 0:i.sourceAppPid,..._})}}}}),z.useEffect(()=>{if(A.token&&j.isSocketAvailable&&P.current){let _=!1;T.current?T.current.token!==A.token&&(P.current.unsubscribe(e5(T.current.token)),_=!0):_=!0,_&&(T.current=P.current.subscribe(e5(A.token)),T.current.token=A.token,T.current.on("updated",({response:v})=>{let{status:k,error:ne}=v;k==="forbidden"&&(ne=$.forbidden,k="error"),A.status=k,A.mfaCode=v.mfaCode||0,A.store=v,A.error=ne}))}},[A.token,j.isSocketAvailable,P.current]);const x=async(_=!1)=>{var v;if(A.checking||(A.status==="created"&&A.checkCount++,j.isSocketAvailable&&!_))return null;try{A.checking=!0;const k=await A.checkFn(`${A.prefix}/status?${v0(u)}`,{headers:S0(A.baseUrl)}),{status:ne,error:N,mfaCode:q=0}=k.data;if(A.store=k.data,A.mfaCode=q,A.checking=!1,A.status=ne,ne==="error"&&N){const re=new Error(N);throw re.response=k,re}return k.data}catch(k){const{response:ne}=k;if(ne!=null&&ne.status){u[s]&&A.checkFn(`${A.prefix}/timeout?${v0(u)}`,{headers:S0(A.baseUrl)});const N=(v=ne==null?void 0:ne.data)!=null&&v.error?ne.data.error:k.message,q=new Error(N);q.code=ne.status,A.status="error",A.checking=!1,A.error=N,f(q,A==null?void 0:A.store,V)}else A.status="error",A.checking=!1,A.error=$.generateError}return null};return hze(x,h()),Hze(()=>{j.isSocketAvailable&&A.token&&zF(A.status)===!1&&x(!0)}),{state:A,generate:S,cancelWhenScanned:Q}}function GR({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i}=zl(),a=r("openInWallet"),o=en(()=>{if(!e.url)return"";const f=new URL(window.location.href);f.searchParams.set("tokenKey",e.token);const c=new URL(e.url);return c.searchParams.set("callback",encodeURIComponent(f)),c.searchParams.set("callback_delay",1500),c.searchParams.set("locale",t),c.href.replace(/^https?:\/\//,"abt://")},[n,e.token]),s=_t(()=>{sn(()=>import("./index-APK4pG1u.js").then(f=>f.i),__vite__mapDeps([])).then(f=>{f.call||(f=f.default),f.call("authAction",{action:"auth",deepLink:o})}).catch(f=>{console.error("load dsbridge error",f)})}),l={};return i||(l.component="a",l.href=o),Rm(()=>{o&&s()}),G.jsxs(Zu,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:Rt.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...l,onClick:i?s:Bn,children:[G.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[G.jsx(kp,{width:"24px",height:"24px"}),G.jsx(Ir,{sx:{fontSize:"14px",fontWeight:500},children:a})]}),G.jsx(Zn,{icon:ZE,fontSize:"1.3rem",color:Rt.primaryBase})]})}GR.propTypes={tokenState:ge.object.isRequired,locale:ge.string,tokenKey:ge.string};GR.defaultProps={locale:"en",tokenKey:"_t_"};const zze={width:24,height:24,body:'<path fill="currentColor" d="M12 20q-3.35 0-5.675-2.325T4 12q0-3.35 2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.713T19 4q.425 0 .713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.713-.288T13 10q0-.425.288-.713T14 9h3.2q-.8-1.4-2.188-2.2T12 6Q9.5 6 7.75 7.75T6 12q0 2.5 1.75 4.25T12 18q1.7 0 3.113-.863t2.187-2.312q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20Z"/>'};function sQ({onRefresh:e,...t}){const n=r=>{r.stopPropagation(),e()};return G.jsx(yt,{...t,onClick:n,sx:{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(0, 0, 0, 0.1)",cursor:"pointer",...t.sx},children:G.jsx(yt,{sx:{backgroundColor:Rt.foregroundsFgInteractive,borderRadius:"100%",fontSize:0},children:G.jsx(Zn,{icon:zze,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})})})}sQ.propTypes={onRefresh:ge.func.isRequired};const Hy=["scanned","succeed","error","busy"];function WR({onSuccess:e,onError:t,action:n,prefix:r,checkFn:i,checkInterval:a,checkTimeout:o,locale:s,tokenKey:l,encKey:f,baseUrl:c,autoConnect:d,forceConnected:p,saveConnect:g,useSocket:y,allowWallet:b,provider:R,webWalletUrl:A,onRecreateSession:$,onClose:D,messages:M,enabledConnectTypes:j}){var te,ye,pe;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const U=z.useContext(hh),{connectState:V,extraParams:X,staticState:ie,changeStatus:le,isWalletWebview:Q,matchSmallScreen:P,t:T}=zl(),u=km(),h=en(()=>{var ae;return R||(X==null?void 0:X.provider)||((ae=U==null?void 0:U.session)==null?void 0:ae.provider)||"wallet"},[X==null?void 0:X.provider,(te=U==null?void 0:U.session)==null?void 0:te.provider]);z.useEffect(()=>{I(c)},[c]);const{state:E,generate:S,cancelWhenScanned:C}=Wze({action:n,baseUrl:c,checkFn:i,checkInterval:a,checkTimeout:o,extraParams:X,prefix:r,onError:t,onSuccess:e,locale:s,tokenKey:l,encKey:f,autoConnect:d,forceConnected:p,saveConnect:g,useSocket:y,allowWallet:b,provider:h}),{setBaseUrl:I,oauthConfigList:x,oauthState:_}=SR({defaultStatus:E.status}),v=iK(V==null?void 0:V.sourceAppPid);sf(()=>{ua(v)||S()},[V==null?void 0:V.sourceAppPid]);const k=en(()=>Hy.includes(_.status)||Hy.includes(E.status),[E.status,_.status]);z.useEffect(()=>{Hy.includes(_.status)?le(_.status):Hy.includes(E.status)?le(E.status):le("created")},[le,E.status,_.status]);const ne=_t(()=>{$(),_.reset(),E.inExistingSession||S(!1)}),N=_t(()=>{$(),E.inExistingSession||(ie.current.cancelCount++,C())}),q=en(()=>({confirm:M.confirm,success:M.success,error:E.error||_.error||""}),[M.confirm,M.success,E.error,_.error]),re=en(()=>b&&j.includes("mobile")&&!Q,[b,j,Q]),ce=tX(A),he=en(()=>b&&j.includes("web")&&(ce||Xb())&&!u.mobile.any,[b,j,(ye=u==null?void 0:u.mobile)==null?void 0:ye.any]),_e=en(()=>b&&j.includes("mobile")&&u.mobile.any,[b,j,(pe=u==null?void 0:u.mobile)==null?void 0:pe.any]),H=en(()=>{const ae=tWe(["auth0","apple","github","google"],j);return x.filter(me=>ae.includes(me.provider))},[x,j]),L=en(()=>H.length>0&&["login","invite"].includes(E.action),[H]),Y=en(()=>{const ae=re||he||_e;let me=null;return L&&(me=ae?G.jsxs(G.Fragment,{children:[G.jsx(iC,{light:!0,sx:{color:Rt.textMuted,width:P?"200px":"368px",maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:Rt.lineStep}},children:"OR"}),G.jsx(m2,{providerList:H,onSuccess:e,onError:t,tokenState:E,locale:s})]}):G.jsxs(G.Fragment,{children:[G.jsx(Ir,{variant:"body2",sx:{mt:1,textAlign:"center",color:Rt.foregroundsFgSubtile},children:T("loginWithBelow")}),G.jsx(m2,{providerList:H,onSuccess:e,onError:t,tokenState:E,type:"list",locale:s})]})),G.jsxs(G.Fragment,{children:[E.status==="timeout"?G.jsx(sQ,{onRefresh:ne,sx:{zIndex:1,animation:"fadeIn 1s","@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}}}):null,G.jsx(yt,{"data-did-auth-url":E.url,sx:{display:"none"}}),_e&&G.jsx(GR,{tokenState:E,locale:s,tokenKey:l}),re&&G.jsx(HR,{tokenState:E,messages:M,locale:s}),he&&G.jsx(FR,{tokenState:E,webWalletUrl:A,locale:s}),me]})},[E.url,E.status,re,he,_e]);return en(()=>E.loading||_.loading||!E.token,[E.loading,_.loading])?G.jsx(IR,{}):k?G.jsxs(G.Fragment,{children:[G.jsx(yt,{"data-did-auth-url":E.url,sx:{display:"none"}}),G.jsx(XE,{status:_.status||E.status,nextWorkflow:E.nextWorkflow,mfaCode:E.mfaCode,onCancel:N,onRetry:ne,onClose:D,messages:q,locale:s,className:"auth-status"})]}):Y}WR.propTypes={onError:ge.func,onSuccess:ge.func.isRequired,action:ge.string.isRequired,checkFn:ge.func.isRequired,prefix:ge.string,checkInterval:ge.number,checkTimeout:ge.number,locale:ge.oneOf(["en","zh",""]),tokenKey:ge.string,encKey:ge.string,baseUrl:ge.string,autoConnect:ge.bool,forceConnected:ge.oneOfType([ge.bool,ge.string]),saveConnect:ge.bool,useSocket:ge.bool,allowWallet:ge.bool,provider:ge.oneOf(["wallet","auth0",""]),webWalletUrl:ge.string,onRecreateSession:ge.func,onClose:ge.func,messages:ge.object,enabledConnectTypes:ge.arrayOf(ge.oneOf(["web","mobile","github","apple","google","auth0"]))};WR.defaultProps={prefix:fR,onError:Bn,checkInterval:2*1e3,checkTimeout:XZ*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:eX(),onRecreateSession:Bn,onClose:Bn,messages:{},enabledConnectTypes:["web","mobile","github","apple","google","auth0"]};var t5=GW,Kze=hW,Yze=cC,Zze=1/0,Xze=t5&&1/Yze(new t5([,-0]))[1]==Zze?function(e){return new t5(e)}:Kze,Qze=Xze,eKe=lC,tKe=HX,nKe=jX,rKe=uC,iKe=Qze,aKe=cC,oKe=200;function sKe(e,t,n){var r=-1,i=tKe,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=nKe;else if(a>=oKe){var f=t?null:iKe(e);if(f)return aKe(f);o=!1,i=rKe,l=new eKe}else l=t?[]:s;e:for(;++r<a;){var c=e[r],d=t?t(c):c;if(c=n||c!==0?c:0,o&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}var lQ=sKe,lKe=eC,uKe=QE,cKe=_m,fKe=lQ,KF=G8,dKe=lE,pKe=cKe(function(e){var t=dKe(e);return KF(t)&&(t=void 0),fKe(lKe(e,1,KF,!0),uKe(t))}),hKe=pKe;const mKe=Ut(hKe);var gKe=SW,yKe=xm;function vKe(e,t){return e&&gKe(e,t,yKe)}var bKe=vKe,EKe=bf;function TKe(e,t){return function(n,r){if(n==null)return n;if(!EKe(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var AKe=TKe,wKe=bKe,SKe=AKe,_Ke=SKe(wKe),xKe=_Ke,CKe=xKe,RKe=bf;function $Ke(e,t){var n=-1,r=RKe(e)?Array(e.length):[];return CKe(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var IKe=$Ke;function kKe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var DKe=kKe,YF=mm;function OKe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=YF(e),o=t!==void 0,s=t===null,l=t===t,f=YF(t);if(!s&&!f&&!a&&e>t||a&&o&&l&&!s&&!f||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!f&&e<t||f&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var LKe=OKe,PKe=LKe;function MKe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=PKe(i[r],a[r]);if(l){if(r>=s)return l;var f=n[r];return l*(f=="desc"?-1:1)}}return e.index-t.index}var BKe=MKe,n5=Wp,NKe=ym,FKe=QE,UKe=IKe,HKe=DKe,jKe=wm,JKe=BKe,VKe=sE,qKe=Aa;function GKe(e,t,n){t.length?t=n5(t,function(a){return qKe(a)?function(o){return NKe(o,a.length===1?a[0]:a)}:a}):t=[VKe];var r=-1;t=n5(t,jKe(FKe));var i=UKe(e,function(a,o,s){var l=n5(t,function(f){return f(a)});return{criteria:l,index:++r,value:a}});return HKe(i,function(a,o){return JKe(a,o,n)})}var WKe=GKe,zKe=eC,KKe=WKe,YKe=_m,ZF=FW,ZKe=YKe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&ZF(e,t[0],t[1])?t=[]:n>2&&ZF(t[0],t[1],t[2])&&(t=[t[0]]),KKe(e,zKe(t,1),[])}),XKe=ZKe;const uQ=Ut(XKe),QKe=On(Vi,"/api/user-session");function cQ({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/"}={}){const a=rf(),o=en(()=>Wl({baseURL:On(i,QKe)},{lazy:!0,lazyTime:500}),[i]),s=_t(async()=>{const{data:g}=await o.get("",{params:{visitorId:a,appPid:e}});return g}),l=Di({loaded:!1,loadingId:null}),f=BOe(s,{manual:!r,onFinally(){l.loaded=!0},refreshDeps:[e,i]}),c=async g=>{var b,R,A;const y=uE(g,["userDid","visitorId","passportId"]);try{l.loadingId=g.id;const{data:$}=await o.post("login",{...y,appPid:n});return $}catch($){const D=$.response?((R=(b=$.response)==null?void 0:b.data)==null?void 0:R.error)||((A=$.response)==null?void 0:A.data):$.message;throw Ci.error(D),console.error("Quick login error",$),$}finally{l.loadingId=null}},d=en(()=>{if(!f.data)return[];const g=new Date().getTime(),y=uQ(f.data,b=>g-new Date(b.updatedAt).getTime());return mKe(y,b=>[b.userDid].join("_"))},[f.data,t,e]),p=en(()=>!!(d&&d.length>0),[d]);return{loadingId:l.loadingId,userSessions:d,quickLoginEnabled:p,loginUserSession:c,loading:f.loading,loaded:f.loaded,refresh:f.refreshAsync}}const eYe={width:24,height:24,body:'<path fill="currentColor" d="M11.95 18q.525 0 .888-.363t.362-.887q0-.525-.362-.888t-.888-.362q-.525 0-.887.363t-.363.887q0 .525.363.888t.887.362Zm.05 4q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20Zm0-8Zm.1-4.3q.625 0 1.088.4t.462 1q0 .55-.337.975t-.763.8q-.575.5-1.012 1.1t-.438 1.35q0 .35.263.588t.612.237q.375 0 .638-.25t.337-.625q.1-.525.45-.938t.75-.787q.575-.55.988-1.2t.412-1.45q0-1.275-1.038-2.087T12.1 6q-.95 0-1.812.4T8.975 7.625q-.175.3-.113.638t.338.512q.35.2.725.125t.625-.425q.275-.375.688-.575t.862-.2Z"/>'},tYe={width:24,height:24,body:'<path fill="currentColor" d="m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4L9.55 18Z"/>'};function zR({appInfo:e,...t}){const[n,r]=z.useState(!1);if(n||!(e.appUrl||e.appLogo))return G.jsx(Nl,{did:e.appPid,size:32});let i=e.appLogo||"";return Qb(i)||(i=On(e.appUrl||"",i)),G.jsx(Zd,{src:i,alt:e.appName||"Blocklet Icon",width:32,height:32,...t,onError:()=>r(!0)})}zR.propTypes={appInfo:ge.object.isRequired};const nYe=e=>e?e.split(":").pop():"";function eT({appInfo:e,active:t,appLogo:n}){return G.jsxs(yt,{sx:{display:"flex",alignItems:"center",fontWeight:600,color:Rt.textBase,"& .app-info-content":{paddingLeft:"8px",overflow:"hidden"},"& .app-info-name":{maxWidth:"100%",paddingRight:"32px",lineHeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"},"& .app-info-did":{fontSize:0},"& .app-info-did .did-address-text":{color:Rt.textMuted,fontSize:"12px"}},children:[n||G.jsx(yt,{sx:{borderRadius:"8px",overflow:"hidden",fontSize:0},children:G.jsx(zR,{appInfo:e})}),G.jsxs(yt,{className:"app-info-content",children:[G.jsx(yt,{className:"app-info-name",children:e.appName}),e.appPid&&G.jsx(xE,{size:12,className:"app-info-did",copyable:!1,color:Rt.textMuted,compact:!1,responsive:!1,children:nYe(e.appPid)})]}),t?G.jsx(zu,{size:"small",color:"success",children:G.jsx(Pke,{icon:tYe,color:"success"})}):null]})}eT.propTypes={appInfo:ge.object.isRequired,active:ge.bool,appLogo:ge.node};eT.defaultProps={active:!1,appLogo:null};function fx({appInfo:e}){const t=z.useRef(null),n=Di({hoverOnButton:!1,hoverOnPopover:!1}),r=en(()=>n.hoverOnButton||n.hoverOnPopover,[n.hoverOnButton,n.hoverOnPopover]);return G.jsxs(G.Fragment,{children:[G.jsx(yt,{component:"span",ref:t,sx:{color:Rt.foregroundsFgInteractive,cursor:"help"},onClick:()=>{n.hoverOnButton=!0},onMouseEnter:()=>{n.hoverOnButton=!0},onMouseLeave:()=>{setTimeout(()=>{n.hoverOnButton=!1},200)},children:e.appName}),G.jsx(kz,{open:r,sx:{pointerEvents:"none"},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${Rt.gray6}, 0px 0px 0px 1px ${Rt.gray6}`,py:1,px:1.5,borderRadius:2,transform:"translateY(-6px) !important"}}},anchorEl:t.current,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{n.open=!1},disableRestoreFocus:!0,children:G.jsx(yt,{component:"span",sx:{pointerEvents:"auto"},onMouseEnter:()=>{n.hoverOnPopover=!0},onMouseLeave:()=>{n.hoverOnPopover=!1},children:G.jsx(eT,{appInfo:e,appLogo:G.jsx(zR,{appInfo:e})})})})]})}fx.propTypes={appInfo:ge.object.isRequired};function XF(){const{appInfoList:e,t,extraParams:n,connectState:r}=zl(),i=z.useRef(null),a=Di({open:!1});return G.jsxs(G.Fragment,{children:[G.jsx(yt,{component:"span",ref:i,sx:{textTransform:"lowercase",color:Rt.foregroundsFgInteractive,cursor:"pointer"},onClick:()=>{a.open=!0},children:t("switch")}),G.jsx(wDe,{anchorEl:i.current,open:a.open,onClose:()=>{a.open=!1},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${Rt.gray6}, 0px 0px 0px 1px ${Rt.gray6}`,borderRadius:2}}},children:e.map(o=>G.jsx(G3,{onClick:()=>{a.open=!1,r.sourceAppPid=o.sourceAppPid},children:G.jsx(eT,{appInfo:o,active:o.sourceAppPid===(n==null?void 0:n.sourceAppPid)})},o.appPid))})]})}function KR({locale:e,disableSwitchApp:t}){const{appInfoList:n,extraParams:r,connectState:i,blocklet:a}=zl(),o=en(()=>n.find(f=>tp.isUndefined(r==null?void 0:r.sourceAppPid)?!0:tp.isNull(f.sourceAppPid)?f.appPid===(a==null?void 0:a.appPid):f.sourceAppPid===(r==null?void 0:r.sourceAppPid)),[r==null?void 0:r.sourceAppPid,n]),s=!t&&n.length>1;Rm(()=>{(a==null?void 0:a.appPid)===(o==null?void 0:o.appPid)?i.sourceAppPid=null:i.sourceAppPid=o==null?void 0:o.appPid});const l=en(()=>e==="zh"?G.jsxs(G.Fragment,{children:["您正在使用 ",G.jsx(fx,{appInfo:o,appInfoList:n})," 账户来连接站点",s?G.jsxs(G.Fragment,{children:[",点击",G.jsx(XF,{appInfoList:n})]}):null]}):G.jsxs(G.Fragment,{children:["You're using ",G.jsx(fx,{appInfo:o})," account for site access",s?G.jsxs(G.Fragment,{children:[". Click to ",G.jsx(XF,{appInfoList:n})]}):null]}),[e,o,n,s]);return tp.isEmpty(n)?null:G.jsxs(yt,{sx:{fontSize:"13px",color:Rt.foregroundsFgSubtile,lineHeight:1.5},children:[l,s&&G.jsx(yt,{component:"span",sx:{display:"inline-block",ml:.5,fontSize:"13px",height:"16px",lineHeight:1,verticalAlign:"middle"},children:G.jsx(yt,{component:Zn,icon:eYe,sx:{verticalAlign:"middle"}})})]})}KR.propTypes={locale:ge.string,disableSwitchApp:ge.bool};KR.defaultProps={locale:"en",disableSwitchApp:!1};var YR={};Object.defineProperty(YR,"__esModule",{value:!0});var fQ=YR.default=void 0;rYe(z);var r5=G;function rYe(e){return e&&e.__esModule?e:{default:e}}function QF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QF(Object(n),!0).forEach(function(r){iYe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iYe(e,t,n){return t=aYe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aYe(e){var t=oYe(e,"string");return typeof t=="symbol"?t:String(t)}function oYe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZR=function(t){return(0,r5.jsxs)("svg",eU(eU({},t),{},{children:[(0,r5.jsx)("path",{d:"M7.366.646L8.46 0h3.981v11.96H8.564a.381.381 0 0 1-.194-.053L4.18 9.431V2.53l.508-.3.893.528-.508.3v5.845L8.7 11.046h2.85V.914h-2.85l-.44.26-.893-.528z",fill:"color(display-p3 .4196 .7412 .9961)"}),(0,r5.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.868 8.903V3.057L4.242.915H1.393v10.132h2.85l.44-.26.893.527-1.095.647H.5V0h3.981l4.28 2.53v6.9l-.506.3-.893-.528.506-.299z",fill:"color(display-p3 .2706 .5961 .9804)"})]}))};ZR.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};ZR.displayName="did-logo-colorful";fQ=YR.default=ZR;function sYe({...e}){return G.jsxs(yt,{...e,sx:{display:"flex",alignItems:"center",color:Rt.foregroundsFgMuted,gap:.5,...e.sx},children:[G.jsx(fQ,{}),"Power By DID Connect"]})}function XR({children:e,initHeight:t,slotProps:n}){var s;const[r,i]=z.useState(t),a=z.useRef(null),o=$m(a);return z.useEffect(()=>{o!=null&&o.height&&i(o.height)},[o==null?void 0:o.height,r]),G.jsx(yt,{...n==null?void 0:n.root,sx:{height:r,overflow:"hidden",transition:"height 0.2s ease-in-out",...(s=n==null?void 0:n.root)==null?void 0:s.sx},children:G.jsx(yt,{...n==null?void 0:n.container,ref:a,children:e})})}XR.propTypes={initHeight:ge.number,children:ge.node.isRequired,slotProps:ge.object};XR.defaultProps={initHeight:0,slotProps:{}};const jy="did-connect",tU="quick-connect";function QR({mode:e,isFullScreen:t,hideCloseButton:n,...r}){var Q;const i=Di({showTab:jy}),{connectState:a,blocklet:o}=zl(),{extraContent:s,onSuccess:l,action:f,onClose:c,options:d}=r,p=en(()=>(a==null?void 0:a.sourceAppPid)||UK(),[a==null?void 0:a.sourceAppPid]),{quickLoginEnabled:g,loading:y,userSessions:b,loginUserSession:R,refresh:A}=cQ({appPid:p,loginAppPid:o==null?void 0:o.appPid,sourceAppPid:a==null?void 0:a.sourceAppPid,autoFetch:["login"].includes(f)}),$=en(()=>{var P;return((P=r==null?void 0:r.messages)==null?void 0:P.title)||fVe},[(Q=r==null?void 0:r.messages)==null?void 0:Q.title]),D=_t(async(...P)=>{var E,S,C;const T=await R(...P),[u]=P,h={};u&&((E=u==null?void 0:u.user)!=null&&E.did&&(h.connected_did=u.user.did),(S=u==null?void 0:u.user)!=null&&S.pk&&(h.connected_pk=u.user.pk),(C=u==null?void 0:u.extra)!=null&&C.walletOS&&(h.connected_wallet_os=u.extra.walletOS)),await l({...T,encrypted:!1},I=>I,h)});z.useEffect(()=>{(d==null?void 0:d.showQuickConnect)!==!1&&!y&&g&&(i.showTab=tU)},[y,g,d==null?void 0:d.showQuickConnect]);const M=VOe(y,{wait:100}),j=_t(()=>{i.showTab=jy}),U=_t(()=>{i.showTab=tU}),V=en(()=>i.showTab===jy||!g,[i.showTab,g]),X=en(()=>{let P=!0;return(y||M)&&(P=!1),g||(P=!1),d.showQuickConnect===!1&&(P=!1),i.showTab!==jy&&(P=!1),P},[g,i.showTab,y,M]),ie=en(()=>G.jsx(yt,{onClick:c,sx:{fontSize:"1.5rem",width:"1.5rem",height:"1.5rem",cursor:"pointer",color:Rt.foregroundsFgSubtile,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:G.jsx(Zn,{icon:PX})}),[c]);let le=null;return y||M?le=G.jsx(IR,{}):V?le=G.jsx(WR,{...r,onClose:c}):le=G.jsx(NR,{userSessions:b,onLogin:D,onRetry:A,onClose:c,messages:r.messages,onLoginAnother:j}),G.jsxs(fIe,{variant:"outlined",sx:{color:Rt.foregroundsFgBase,backgroundColor:"white",borderRadius:2,borderColor:Rt.strokeBorderBase,height:"100%",display:"flex",flexDirection:"column"},children:[G.jsx(OIe,{title:G.jsxs(G.Fragment,{children:[X&&G.jsx(zu,{size:"small",disabled:a.status!=="created",onClick:U,disableRipple:!0,sx:{fontSize:"0.75em"},children:G.jsx(Zn,{icon:Vqe,color:Rt.textMuted})}),$]}),titleTypographyProps:{display:"flex",alignItems:"center",variant:"h6",lineHeight:"28px",fontWeight:600},action:n?null:ie,sx:{px:2.5,".MuiCardHeader-action":{margin:0,alignSelf:"center"}}}),G.jsx(wIe,{sx:{borderTop:`1px solid ${Rt.strokeBorderBase}`,borderBottom:`1px solid ${Rt.strokeBorderBase}`,flex:1,verticalAlign:"middle",overflow:"auto",p:2.5,position:"relative","&::after":{content:'""',height:"100%",verticalAlign:"middle",display:"inline-block",width:0}},children:G.jsxs(XR,{slotProps:{root:{sx:{display:"inline-block",width:"100%",verticalAlign:"middle"}},container:{sx:{display:"flex",flexDirection:"column",gap:1}}},children:[G.jsx(KR,{locale:r.locale,disableSwitchApp:r.disableSwitchApp}),le,s?G.jsx(yt,{children:s}):null]})}),G.jsx(yIe,{sx:{py:2,px:2.5,justifyContent:"center"},children:G.jsx(sYe,{sx:{fontSize:"12px"}})})]})}QR.propTypes={action:ge.string.isRequired,onSuccess:ge.func,onClose:ge.func,messages:ge.object,extraContent:ge.any,disableSwitchApp:ge.bool,mode:ge.oneOf(["fullScreen","dialog","normal"]),isFullScreen:ge.bool,options:ge.object,hideCloseButton:ge.bool,locale:ge.string};QR.defaultProps={onSuccess:Bn,onClose:Bn,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!0,locale:"en"};function e$(e){const{checkFn:t,extraParams:n,blocklet:r,action:i,locale:a}=e;if(typeof t!="function")throw new Error("Cannot initialize did connect component without a fetchFn");return G.jsx(kR,{blocklet:r,action:i,locale:a,extraParams:n,sx:{position:"relative",width:"100%",height:"100%",lineHeight:1.2,fontFamily:"Inter",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:G.jsx(QR,{...e})})}e$.propTypes={checkFn:ge.func.isRequired,extraParams:ge.object,blocklet:ge.object.isRequired,action:ge.string.isRequired,locale:ge.string};e$.defaultProps={extraParams:{},locale:"en"};const lYe=lGe(Gqe(fGe(e$))),uYe=z.forwardRef((e,t)=>{const{api:n}=z.useContext(hh),r={containerEl:null,popup:!0,checkFn:(n==null?void 0:n.get)||Bn,onSuccess:()=>{setTimeout(()=>{f()},2e3)},messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},i=Di({show:!1,...xl(r)}),[a,o]=z.useState({}),s=_t(d=>{const{containerEl:p,checkFn:g,popup:y,onSuccess:b,messages:R,...A}=xl(d);typeof g=="function"&&(i.checkFn=g),typeof b=="function"&&(i.onSuccess=(...$)=>{b(...$),setTimeout(()=>{f()},2e3)}),y!==void 0&&(i.popup=y),R!==void 0&&(i.messages=R),p!==void 0&&(i.containerEl=p),o(A),i.show=!0}),l=_t(()=>{const d=xl(r);Object.keys(d).forEach(p=>{i[p]=d[p]})}),f=_t(()=>{i.show=!1,l()});z.useImperativeHandle(t,()=>({open:s,close:f}),[s,f]);const c=G.jsx(lYe,{open:!0,popup:i.popup,messages:i.messages,onClose:f,onSuccess:i.onSuccess,checkFn:i.checkFn,...a});return i.containerEl?Z1.createPortal(c,i.containerEl):i.show&&c});function cYe(){const e=z.useRef(null),t=_t((...o)=>{var s;(s=e.current)==null||s.open(...o)}),n=_t(async(o={},{baseUrl:s,locale:l="en",blocklet:f=globalThis==null?void 0:globalThis.blocklet}={})=>{var R;if(ua(s)){const A=Hm(),$=dh();s=A?$.appUrl:window.location.origin}const{onSuccess:c,onClose:d,onError:p,...g}=o;if(!((R=g==null?void 0:g.extraParams)!=null&&R.provider))throw Lc(p)&&p("Must have extraParams.provider"),new Error("Must have extraParams.provider");g!=null&&g.prefix||(g.prefix=window.location.origin+On(f==null?void 0:f.prefix,fR));const y=new URLSearchParams;y.set("params",btoa(encodeURIComponent(JSON.stringify(g)))),y.set("appPid",f==null?void 0:f.appPid),y.set("locale",l);const b=jqe(On(s||"/",Vi,`/connect?${y.toString()}`));try{const A=await Jqe({popup:b,closeTimeout:2e3});return Lc(c)&&c({...A,encrypted:!1}),{...A,encrypted:!1}}catch(A){throw A.message==="Popup closed"?Lc(d)&&d():Lc(p)&&p(A),A}}),r=_t((...o)=>{var s;(s=e.current)==null||s.close(...o)}),i=en(()=>G.jsx(uYe,{ref:e})),a=en(()=>({open:t,close:r,openPopup:n}));return{connectHolder:i,connectApi:a}}const ei={LOGIN:Symbol("login"),CANCEL_LOGIN:Symbol("cancelLogin"),LOGOUT:Symbol("logout"),SWITCH_PROFILE:Symbol("switchProfile"),CANCEL_SWITCH_PROFILE:Symbol("cancelSwitchProfile"),SWITCH_PASSPORT:Symbol("switchPassport"),CANCEL_SWITCH_PASSPORT:Symbol("cancelSwitchPassport"),BIND_WALLET:Symbol("bindWallet"),CANCEL_BIND_WALLET:Symbol("cancelBindWallet")},pc={login:{en:{title:"Connect DID Wallet",scan:"Scan following qrcode to connect your DID Wallet",confirm:"Confirm connection in your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包",scan:"请使用 DID 钱包扫码下面的二维码完成连接",confirm:"在 DID 钱包中确认连接",success:"连接成功"}},"switch-specified-did":{en:{title:"Switch DID",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"你需要切换账号至 {did} 才能完成后续的操作",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-did":{en:{title:"Switch DID",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"请使用 DID 钱包扫码下面的二维码完成切换",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-profile":{en:{title:"Switch Profile",scan:"Scan following qrcode with DID Wallet to switch profile",confirm:"Select profile in your DID Wallet",success:"Profile updated"},zh:{title:"切换个人档案",scan:"请使用 DID 钱包扫码下面的二维码来切换个人档案",confirm:"在 DID 钱包中选择个人档案",success:"个人档案已经更新"}},"switch-passport":{en:{title:"Switch Passport",scan:"Scan following qrcode with DID Wallet to switch passport",confirm:"Select passport in your DID Wallet",success:"Passport and session updated"},zh:{title:"切换通行证",scan:"请使用 DID 钱包扫码二维码来切换通行证",confirm:"在 DID 钱包中选择通行证",success:"通行证和会话已经更新"}},"bind-wallet":{en:{title:"Connect DID Wallet for enhanced security",scan:"Scan following qrcode with DID Wallet to connect your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包获得更高的安全性",scan:"请使用 DID 钱包扫码二维码来连接您的 DID 钱包",success:"连接成功"}},exchangePassport:{en:{action:"Exchange Passport with NFT",tooltip:"Exchange passport if you owns any required NFT"},zh:{action:"兑换通行证",tooltip:"通过出示你持有的特定 NFT 来获取通行证"}},lostPassport:{en:{action:"Lost Passport"},zh:{action:"找回通行证"}},switchAccountDialog:{en:{confirm:"Switch",title:"Switch Account",description:"Please switch accounts to complete next action",currentAccount:"Current account",nextAccount:"Account to be switched"},zh:{confirm:"切换",title:"切换账号",description:"请切换账号来完成后续的操作",currentAccount:"当前登录的账户",nextAccount:"即将切换的账户"}}};var dx={exports:{}};const fYe="2.0.0",dQ=256,dYe=Number.MAX_SAFE_INTEGER||9007199254740991,pYe=16,hYe=dQ-6,mYe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var tT={MAX_LENGTH:dQ,MAX_SAFE_COMPONENT_LENGTH:pYe,MAX_SAFE_BUILD_LENGTH:hYe,MAX_SAFE_INTEGER:dYe,RELEASE_TYPES:mYe,SEMVER_SPEC_VERSION:fYe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},i5={};const gYe=typeof Xt=="object"&&i5&&i5.NODE_DEBUG&&/\bsemver\b/i.test(i5.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var nT=gYe;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=tT,a=nT;t=e.exports={};const o=t.re=[],s=t.safeRe=[],l=t.src=[],f=t.t={};let c=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[d,r]],g=b=>{for(const[R,A]of p)b=b.split(`${R}*`).join(`${R}{0,${A}}`).split(`${R}+`).join(`${R}{1,${A}}`);return b},y=(b,R,A)=>{const $=g(R),D=c++;a(b,D,R),f[b]=D,l[D]=R,o[D]=new RegExp(R,A?"g":void 0),s[D]=new RegExp($,A?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),y("MAINVERSION",`(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${l[f.NUMERICIDENTIFIER]}|${l[f.NONNUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${l[f.NUMERICIDENTIFIERLOOSE]}|${l[f.NONNUMERICIDENTIFIER]})`),y("PRERELEASE",`(?:-(${l[f.PRERELEASEIDENTIFIER]}(?:\\.${l[f.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${l[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[f.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${d}+`),y("BUILD",`(?:\\+(${l[f.BUILDIDENTIFIER]}(?:\\.${l[f.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${l[f.MAINVERSION]}${l[f.PRERELEASE]}?${l[f.BUILD]}?`),y("FULL",`^${l[f.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${l[f.MAINVERSIONLOOSE]}${l[f.PRERELEASELOOSE]}?${l[f.BUILD]}?`),y("LOOSE",`^${l[f.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${l[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${l[f.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:${l[f.PRERELEASE]})?${l[f.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:${l[f.PRERELEASELOOSE]})?${l[f.BUILD]}?)?)?`),y("XRANGE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAINLOOSE]}$`),y("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),y("COERCERTL",l[f.COERCE],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${l[f.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",y("TILDE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${l[f.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",y("CARET",`^${l[f.LONECARET]}${l[f.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${l[f.LONECARET]}${l[f.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${l[f.GTLT]}\\s*(${l[f.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]}|${l[f.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${l[f.XRANGEPLAIN]})\\s+-\\s+(${l[f.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${l[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[f.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(dx,dx.exports);var jm=dx.exports;const yYe=Object.freeze({loose:!0}),vYe=Object.freeze({}),bYe=e=>e?typeof e!="object"?yYe:e:vYe;var t$=bYe;const nU=/^[0-9]+$/,pQ=(e,t)=>{const n=nU.test(e),r=nU.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},EYe=(e,t)=>pQ(t,e);var hQ={compareIdentifiers:pQ,rcompareIdentifiers:EYe};const Jy=nT,{MAX_LENGTH:rU,MAX_SAFE_INTEGER:Vy}=tT,{safeRe:iU,t:aU}=jm,TYe=t$,{compareIdentifiers:ud}=hQ;let AYe=class bs{constructor(t,n){if(n=TYe(n),t instanceof bs){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>rU)throw new TypeError(`version is longer than ${rU} characters`);Jy("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?iU[aU.LOOSE]:iU[aU.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Vy||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Vy||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Vy||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const a=+i;if(a>=0&&a<Vy)return a}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Jy("SemVer.compare",this.version,this.options,t),!(t instanceof bs)){if(typeof t=="string"&&t===this.version)return 0;t=new bs(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof bs||(t=new bs(t,this.options)),ud(this.major,t.major)||ud(this.minor,t.minor)||ud(this.patch,t.patch)}comparePre(t){if(t instanceof bs||(t=new bs(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],i=t.prerelease[n];if(Jy("prerelease compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return ud(r,i)}while(++n)}compareBuild(t){t instanceof bs||(t=new bs(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(Jy("prerelease compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return ud(r,i)}while(++n)}inc(t,n,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const i=Number(r)?1:0;if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(n){let a=[n,i];r===!1&&(a=[n]),ud(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var ia=AYe;const oU=ia,wYe=(e,t,n=!1)=>{if(e instanceof oU)return e;try{return new oU(e,t)}catch(r){if(!n)return null;throw r}};var mh=wYe;const SYe=mh,_Ye=(e,t)=>{const n=SYe(e,t);return n?n.version:null};var xYe=_Ye;const CYe=mh,RYe=(e,t)=>{const n=CYe(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var $Ye=RYe;const sU=ia,IYe=(e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new sU(e instanceof sU?e.version:e,n).inc(t,r,i).version}catch{return null}};var kYe=IYe;const lU=mh,DYe=(e,t)=>{const n=lU(e,null,!0),r=lU(t,null,!0),i=n.compare(r);if(i===0)return null;const a=i>0,o=a?n:r,s=a?r:n,l=!!o.prerelease.length;if(!!s.prerelease.length&&!l)return!s.patch&&!s.minor?"major":o.patch?"patch":o.minor?"minor":"major";const c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};var OYe=DYe;const LYe=ia,PYe=(e,t)=>new LYe(e,t).major;var MYe=PYe;const BYe=ia,NYe=(e,t)=>new BYe(e,t).minor;var FYe=NYe;const UYe=ia,HYe=(e,t)=>new UYe(e,t).patch;var jYe=HYe;const JYe=mh,VYe=(e,t)=>{const n=JYe(e,t);return n&&n.prerelease.length?n.prerelease:null};var qYe=VYe;const uU=ia,GYe=(e,t,n)=>new uU(e,n).compare(new uU(t,n));var fs=GYe;const WYe=fs,zYe=(e,t,n)=>WYe(t,e,n);var KYe=zYe;const YYe=fs,ZYe=(e,t)=>YYe(e,t,!0);var XYe=ZYe;const cU=ia,QYe=(e,t,n)=>{const r=new cU(e,n),i=new cU(t,n);return r.compare(i)||r.compareBuild(i)};var n$=QYe;const eZe=n$,tZe=(e,t)=>e.sort((n,r)=>eZe(n,r,t));var nZe=tZe;const rZe=n$,iZe=(e,t)=>e.sort((n,r)=>rZe(r,n,t));var aZe=iZe;const oZe=fs,sZe=(e,t,n)=>oZe(e,t,n)>0;var rT=sZe;const lZe=fs,uZe=(e,t,n)=>lZe(e,t,n)<0;var r$=uZe;const cZe=fs,fZe=(e,t,n)=>cZe(e,t,n)===0;var mQ=fZe;const dZe=fs,pZe=(e,t,n)=>dZe(e,t,n)!==0;var gQ=pZe;const hZe=fs,mZe=(e,t,n)=>hZe(e,t,n)>=0;var i$=mZe;const gZe=fs,yZe=(e,t,n)=>gZe(e,t,n)<=0;var a$=yZe;const vZe=mQ,bZe=gQ,EZe=rT,TZe=i$,AZe=r$,wZe=a$,SZe=(e,t,n,r)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return vZe(e,n,r);case"!=":return bZe(e,n,r);case">":return EZe(e,n,r);case">=":return TZe(e,n,r);case"<":return AZe(e,n,r);case"<=":return wZe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var yQ=SZe;const _Ze=ia,xZe=mh,{safeRe:qy,t:Gy}=jm,CZe=(e,t)=>{if(e instanceof _Ze)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(qy[Gy.COERCE]);else{let r;for(;(r=qy[Gy.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),qy[Gy.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;qy[Gy.COERCERTL].lastIndex=-1}return n===null?null:xZe(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var RZe=CZe,a5,fU;function $Ze(){return fU||(fU=1,a5=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),a5}var IZe=Vn;Vn.Node=ff;Vn.create=Vn;function Vn(e){var t=this;if(t instanceof Vn||(t=new Vn),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}Vn.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t};Vn.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};Vn.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};Vn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)DZe(this,arguments[e]);return this.length};Vn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)OZe(this,arguments[e]);return this.length};Vn.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};Vn.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};Vn.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;n!==null;r++)e.call(t,n.value,r,this),n=n.next};Vn.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;n!==null;r--)e.call(t,n.value,r,this),n=n.prev};Vn.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value};Vn.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value};Vn.prototype.map=function(e,t){t=t||this;for(var n=new Vn,r=this.head;r!==null;)n.push(e.call(t,r.value,this)),r=r.next;return n};Vn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new Vn,r=this.tail;r!==null;)n.push(e.call(t,r.value,this)),r=r.prev;return n};Vn.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;r!==null;i++)n=e(n,r.value,i),r=r.next;return n};Vn.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;r!==null;i--)n=e(n,r.value,i),r=r.prev;return n};Vn.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e};Vn.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e};Vn.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new Vn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,i=this.head;i!==null&&r<e;r++)i=i.next;for(;i!==null&&r<t;r++,i=i.next)n.push(i.value);return n};Vn.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new Vn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,i=this.tail;i!==null&&r>t;r--)i=i.prev;for(;i!==null&&r>e;r--,i=i.prev)n.push(i.value);return n};Vn.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,i=this.head;i!==null&&r<e;r++)i=i.next;for(var a=[],r=0;i&&r<t;r++)a.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var r=0;r<n.length;r++)i=kZe(this,i,n[r]);return a};Vn.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};function kZe(e,t,n){var r=t===e.head?new ff(n,null,t,e):new ff(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function DZe(e,t){e.tail=new ff(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function OZe(e,t){e.head=new ff(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function ff(e,t,n,r){if(!(this instanceof ff))return new ff(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{$Ze()(Vn)}catch{}const LZe=IZe,_c=Symbol("max"),gl=Symbol("length"),cd=Symbol("lengthCalculator"),K0=Symbol("allowStale"),Nc=Symbol("maxAge"),hl=Symbol("dispose"),dU=Symbol("noDisposeOnSet"),ci=Symbol("lruList"),Go=Symbol("cache"),vQ=Symbol("updateAgeOnGet"),o5=()=>1;class PZe{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[_c]=t.max||1/0;const n=t.length||o5;if(this[cd]=typeof n!="function"?o5:n,this[K0]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Nc]=t.maxAge||0,this[hl]=t.dispose,this[dU]=t.noDisposeOnSet||!1,this[vQ]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[_c]=t||1/0,u0(this)}get max(){return this[_c]}set allowStale(t){this[K0]=!!t}get allowStale(){return this[K0]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Nc]=t,u0(this)}get maxAge(){return this[Nc]}set lengthCalculator(t){typeof t!="function"&&(t=o5),t!==this[cd]&&(this[cd]=t,this[gl]=0,this[ci].forEach(n=>{n.length=this[cd](n.value,n.key),this[gl]+=n.length})),u0(this)}get lengthCalculator(){return this[cd]}get length(){return this[gl]}get itemCount(){return this[ci].length}rforEach(t,n){n=n||this;for(let r=this[ci].tail;r!==null;){const i=r.prev;pU(this,t,r,n),r=i}}forEach(t,n){n=n||this;for(let r=this[ci].head;r!==null;){const i=r.next;pU(this,t,r,n),r=i}}keys(){return this[ci].toArray().map(t=>t.key)}values(){return this[ci].toArray().map(t=>t.value)}reset(){this[hl]&&this[ci]&&this[ci].length&&this[ci].forEach(t=>this[hl](t.key,t.value)),this[Go]=new Map,this[ci]=new LZe,this[gl]=0}dump(){return this[ci].map(t=>y2(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[ci]}set(t,n,r){if(r=r||this[Nc],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const i=r?Date.now():0,a=this[cd](n,t);if(this[Go].has(t)){if(a>this[_c])return np(this,this[Go].get(t)),!1;const l=this[Go].get(t).value;return this[hl]&&(this[dU]||this[hl](t,l.value)),l.now=i,l.maxAge=r,l.value=n,this[gl]+=a-l.length,l.length=a,this.get(t),u0(this),!0}const o=new MZe(t,n,a,i,r);return o.length>this[_c]?(this[hl]&&this[hl](t,n),!1):(this[gl]+=o.length,this[ci].unshift(o),this[Go].set(t,this[ci].head),u0(this),!0)}has(t){if(!this[Go].has(t))return!1;const n=this[Go].get(t).value;return!y2(this,n)}get(t){return s5(this,t,!0)}peek(t){return s5(this,t,!1)}pop(){const t=this[ci].tail;return t?(np(this,t),t.value):null}del(t){np(this,this[Go].get(t))}load(t){this.reset();const n=Date.now();for(let r=t.length-1;r>=0;r--){const i=t[r],a=i.e||0;if(a===0)this.set(i.k,i.v);else{const o=a-n;o>0&&this.set(i.k,i.v,o)}}}prune(){this[Go].forEach((t,n)=>s5(this,n,!1))}}const s5=(e,t,n)=>{const r=e[Go].get(t);if(r){const i=r.value;if(y2(e,i)){if(np(e,r),!e[K0])return}else n&&(e[vQ]&&(r.value.now=Date.now()),e[ci].unshiftNode(r));return i.value}},y2=(e,t)=>{if(!t||!t.maxAge&&!e[Nc])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Nc]&&n>e[Nc]},u0=e=>{if(e[gl]>e[_c])for(let t=e[ci].tail;e[gl]>e[_c]&&t!==null;){const n=t.prev;np(e,t),t=n}},np=(e,t)=>{if(t){const n=t.value;e[hl]&&e[hl](n.key,n.value),e[gl]-=n.length,e[Go].delete(n.key),e[ci].removeNode(t)}};class MZe{constructor(t,n,r,i,a){this.key=t,this.value=n,this.length=r,this.now=i,this.maxAge=a||0}}const pU=(e,t,n,r)=>{let i=n.value;y2(e,i)&&(np(e,n),e[K0]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var BZe=PZe,l5,hU;function ds(){if(hU)return l5;hU=1;class e{constructor(u,h){if(h=r(h),u instanceof e)return u.loose===!!h.loose&&u.includePrerelease===!!h.includePrerelease?u:new e(u.raw,h);if(u instanceof i)return this.raw=u.value,this.set=[[u]],this.format(),this;if(this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease,this.raw=u.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(E=>this.parseRange(E.trim())).filter(E=>E.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const E=this.set[0];if(this.set=this.set.filter(S=>!y(S[0])),this.set.length===0)this.set=[E];else if(this.set.length>1){for(const S of this.set)if(S.length===1&&b(S[0])){this.set=[S];break}}}this.format()}format(){return this.range=this.set.map(u=>u.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(u){const E=((this.options.includePrerelease&&p)|(this.options.loose&&g))+":"+u,S=n.get(E);if(S)return S;const C=this.options.loose,I=C?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];u=u.replace(I,Q(this.options.includePrerelease)),a("hyphen replace",u),u=u.replace(s[l.COMPARATORTRIM],f),a("comparator trim",u),u=u.replace(s[l.TILDETRIM],c),a("tilde trim",u),u=u.replace(s[l.CARETTRIM],d),a("caret trim",u);let x=u.split(" ").map(ne=>A(ne,this.options)).join(" ").split(/\s+/).map(ne=>le(ne,this.options));C&&(x=x.filter(ne=>(a("loose invalid filter",ne,this.options),!!ne.match(s[l.COMPARATORLOOSE])))),a("range list",x);const _=new Map,v=x.map(ne=>new i(ne,this.options));for(const ne of v){if(y(ne))return[ne];_.set(ne.value,ne)}_.size>1&&_.has("")&&_.delete("");const k=[..._.values()];return n.set(E,k),k}intersects(u,h){if(!(u instanceof e))throw new TypeError("a Range is required");return this.set.some(E=>R(E,h)&&u.set.some(S=>R(S,h)&&E.every(C=>S.every(I=>C.intersects(I,h)))))}test(u){if(!u)return!1;if(typeof u=="string")try{u=new o(u,this.options)}catch{return!1}for(let h=0;h<this.set.length;h++)if(P(this.set[h],u,this.options))return!0;return!1}}l5=e;const t=BZe,n=new t({max:1e3}),r=t$,i=iT(),a=nT,o=ia,{safeRe:s,t:l,comparatorTrimReplace:f,tildeTrimReplace:c,caretTrimReplace:d}=jm,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:g}=tT,y=T=>T.value==="<0.0.0-0",b=T=>T.value==="",R=(T,u)=>{let h=!0;const E=T.slice();let S=E.pop();for(;h&&E.length;)h=E.every(C=>S.intersects(C,u)),S=E.pop();return h},A=(T,u)=>(a("comp",T,u),T=j(T,u),a("caret",T),T=D(T,u),a("tildes",T),T=V(T,u),a("xrange",T),T=ie(T,u),a("stars",T),T),$=T=>!T||T.toLowerCase()==="x"||T==="*",D=(T,u)=>T.trim().split(/\s+/).map(h=>M(h,u)).join(" "),M=(T,u)=>{const h=u.loose?s[l.TILDELOOSE]:s[l.TILDE];return T.replace(h,(E,S,C,I,x)=>{a("tilde",T,E,S,C,I,x);let _;return $(S)?_="":$(C)?_=`>=${S}.0.0 <${+S+1}.0.0-0`:$(I)?_=`>=${S}.${C}.0 <${S}.${+C+1}.0-0`:x?(a("replaceTilde pr",x),_=`>=${S}.${C}.${I}-${x} <${S}.${+C+1}.0-0`):_=`>=${S}.${C}.${I} <${S}.${+C+1}.0-0`,a("tilde return",_),_})},j=(T,u)=>T.trim().split(/\s+/).map(h=>U(h,u)).join(" "),U=(T,u)=>{a("caret",T,u);const h=u.loose?s[l.CARETLOOSE]:s[l.CARET],E=u.includePrerelease?"-0":"";return T.replace(h,(S,C,I,x,_)=>{a("caret",T,S,C,I,x,_);let v;return $(C)?v="":$(I)?v=`>=${C}.0.0${E} <${+C+1}.0.0-0`:$(x)?C==="0"?v=`>=${C}.${I}.0${E} <${C}.${+I+1}.0-0`:v=`>=${C}.${I}.0${E} <${+C+1}.0.0-0`:_?(a("replaceCaret pr",_),C==="0"?I==="0"?v=`>=${C}.${I}.${x}-${_} <${C}.${I}.${+x+1}-0`:v=`>=${C}.${I}.${x}-${_} <${C}.${+I+1}.0-0`:v=`>=${C}.${I}.${x}-${_} <${+C+1}.0.0-0`):(a("no pr"),C==="0"?I==="0"?v=`>=${C}.${I}.${x}${E} <${C}.${I}.${+x+1}-0`:v=`>=${C}.${I}.${x}${E} <${C}.${+I+1}.0-0`:v=`>=${C}.${I}.${x} <${+C+1}.0.0-0`),a("caret return",v),v})},V=(T,u)=>(a("replaceXRanges",T,u),T.split(/\s+/).map(h=>X(h,u)).join(" ")),X=(T,u)=>{T=T.trim();const h=u.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return T.replace(h,(E,S,C,I,x,_)=>{a("xRange",T,E,S,C,I,x,_);const v=$(C),k=v||$(I),ne=k||$(x),N=ne;return S==="="&&N&&(S=""),_=u.includePrerelease?"-0":"",v?S===">"||S==="<"?E="<0.0.0-0":E="*":S&&N?(k&&(I=0),x=0,S===">"?(S=">=",k?(C=+C+1,I=0,x=0):(I=+I+1,x=0)):S==="<="&&(S="<",k?C=+C+1:I=+I+1),S==="<"&&(_="-0"),E=`${S+C}.${I}.${x}${_}`):k?E=`>=${C}.0.0${_} <${+C+1}.0.0-0`:ne&&(E=`>=${C}.${I}.0${_} <${C}.${+I+1}.0-0`),a("xRange return",E),E})},ie=(T,u)=>(a("replaceStars",T,u),T.trim().replace(s[l.STAR],"")),le=(T,u)=>(a("replaceGTE0",T,u),T.trim().replace(s[u.includePrerelease?l.GTE0PRE:l.GTE0],"")),Q=T=>(u,h,E,S,C,I,x,_,v,k,ne,N,q)=>($(E)?h="":$(S)?h=`>=${E}.0.0${T?"-0":""}`:$(C)?h=`>=${E}.${S}.0${T?"-0":""}`:I?h=`>=${h}`:h=`>=${h}${T?"-0":""}`,$(v)?_="":$(k)?_=`<${+v+1}.0.0-0`:$(ne)?_=`<${v}.${+k+1}.0-0`:N?_=`<=${v}.${k}.${ne}-${N}`:T?_=`<${v}.${k}.${+ne+1}-0`:_=`<=${_}`,`${h} ${_}`.trim()),P=(T,u,h)=>{for(let E=0;E<T.length;E++)if(!T[E].test(u))return!1;if(u.prerelease.length&&!h.includePrerelease){for(let E=0;E<T.length;E++)if(a(T[E].semver),T[E].semver!==i.ANY&&T[E].semver.prerelease.length>0){const S=T[E].semver;if(S.major===u.major&&S.minor===u.minor&&S.patch===u.patch)return!0}return!1}return!0};return l5}var u5,mU;function iT(){if(mU)return u5;mU=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=n(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),o("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(c){const d=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],p=c.match(d);if(!p)throw new TypeError(`Invalid comparator: ${c}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new s(p[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(o("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new s(c,this.options)}catch{return!1}return a(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new l(this.value,d).test(c.semver):(d=n(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||a(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||a(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}u5=t;const n=t$,{safeRe:r,t:i}=jm,a=yQ,o=nT,s=ia,l=ds();return u5}const NZe=ds(),FZe=(e,t,n)=>{try{t=new NZe(t,n)}catch{return!1}return t.test(e)};var aT=FZe;const UZe=ds(),HZe=(e,t)=>new UZe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var jZe=HZe;const JZe=ia,VZe=ds(),qZe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new VZe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===-1)&&(r=o,i=new JZe(r,n))}),r};var GZe=qZe;const WZe=ia,zZe=ds(),KZe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new zZe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===1)&&(r=o,i=new WZe(r,n))}),r};var YZe=KZe;const c5=ia,ZZe=ds(),gU=rT,XZe=(e,t)=>{e=new ZZe(e,t);let n=new c5("0.0.0");if(e.test(n)||(n=new c5("0.0.0-0"),e.test(n)))return n;n=null;for(let r=0;r<e.set.length;++r){const i=e.set[r];let a=null;i.forEach(o=>{const s=new c5(o.semver.version);switch(o.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!a||gU(s,a))&&(a=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),a&&(!n||gU(n,a))&&(n=a)}return n&&e.test(n)?n:null};var QZe=XZe;const eXe=ds(),tXe=(e,t)=>{try{return new eXe(e,t).range||"*"}catch{return null}};var nXe=tXe;const rXe=ia,bQ=iT(),{ANY:iXe}=bQ,aXe=ds(),oXe=aT,yU=rT,vU=r$,sXe=a$,lXe=i$,uXe=(e,t,n,r)=>{e=new rXe(e,r),t=new aXe(t,r);let i,a,o,s,l;switch(n){case">":i=yU,a=sXe,o=vU,s=">",l=">=";break;case"<":i=vU,a=lXe,o=yU,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(oXe(e,t,r))return!1;for(let f=0;f<t.set.length;++f){const c=t.set[f];let d=null,p=null;if(c.forEach(g=>{g.semver===iXe&&(g=new bQ(">=0.0.0")),d=d||g,p=p||g,i(g.semver,d.semver,r)?d=g:o(g.semver,p.semver,r)&&(p=g)}),d.operator===s||d.operator===l||(!p.operator||p.operator===s)&&a(e,p.semver))return!1;if(p.operator===l&&o(e,p.semver))return!1}return!0};var o$=uXe;const cXe=o$,fXe=(e,t,n)=>cXe(e,t,">",n);var dXe=fXe;const pXe=o$,hXe=(e,t,n)=>pXe(e,t,"<",n);var mXe=hXe;const bU=ds(),gXe=(e,t,n)=>(e=new bU(e,n),t=new bU(t,n),e.intersects(t,n));var yXe=gXe;const vXe=aT,bXe=fs;var EXe=(e,t,n)=>{const r=[];let i=null,a=null;const o=e.sort((c,d)=>bXe(c,d,n));for(const c of o)vXe(c,t,n)?(a=c,i||(i=c)):(a&&r.push([i,a]),a=null,i=null);i&&r.push([i,null]);const s=[];for(const[c,d]of r)c===d?s.push(c):!d&&c===o[0]?s.push("*"):d?c===o[0]?s.push(`<=${d}`):s.push(`${c} - ${d}`):s.push(`>=${c}`);const l=s.join(" || "),f=typeof t.raw=="string"?t.raw:String(t);return l.length<f.length?l:t};const EU=ds(),s$=iT(),{ANY:f5}=s$,c0=aT,l$=fs,TXe=(e,t,n={})=>{if(e===t)return!0;e=new EU(e,n),t=new EU(t,n);let r=!1;e:for(const i of e.set){for(const a of t.set){const o=wXe(i,a,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},AXe=[new s$(">=0.0.0-0")],TU=[new s$(">=0.0.0")],wXe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===f5){if(t.length===1&&t[0].semver===f5)return!0;n.includePrerelease?e=AXe:e=TU}if(t.length===1&&t[0].semver===f5){if(n.includePrerelease)return!0;t=TU}const r=new Set;let i,a;for(const g of e)g.operator===">"||g.operator===">="?i=AU(i,g,n):g.operator==="<"||g.operator==="<="?a=wU(a,g,n):r.add(g.semver);if(r.size>1)return null;let o;if(i&&a){if(o=l$(i.semver,a.semver,n),o>0)return null;if(o===0&&(i.operator!==">="||a.operator!=="<="))return null}for(const g of r){if(i&&!c0(g,String(i),n)||a&&!c0(g,String(a),n))return null;for(const y of t)if(!c0(g,String(y),n))return!1;return!0}let s,l,f,c,d=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1,p=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1;d&&d.prerelease.length===1&&a.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const g of t){if(c=c||g.operator===">"||g.operator===">=",f=f||g.operator==="<"||g.operator==="<=",i){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator===">"||g.operator===">="){if(s=AU(i,g,n),s===g&&s!==i)return!1}else if(i.operator===">="&&!c0(i.semver,String(g),n))return!1}if(a){if(d&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===d.major&&g.semver.minor===d.minor&&g.semver.patch===d.patch&&(d=!1),g.operator==="<"||g.operator==="<="){if(l=wU(a,g,n),l===g&&l!==a)return!1}else if(a.operator==="<="&&!c0(a.semver,String(g),n))return!1}if(!g.operator&&(a||i)&&o!==0)return!1}return!(i&&f&&!a&&o!==0||a&&c&&!i&&o!==0||p||d)},AU=(e,t,n)=>{if(!e)return t;const r=l$(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},wU=(e,t,n)=>{if(!e)return t;const r=l$(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var SXe=TXe;const d5=jm,SU=tT,_Xe=ia,_U=hQ,xXe=mh,CXe=xYe,RXe=$Ye,$Xe=kYe,IXe=OYe,kXe=MYe,DXe=FYe,OXe=jYe,LXe=qYe,PXe=fs,MXe=KYe,BXe=XYe,NXe=n$,FXe=nZe,UXe=aZe,HXe=rT,jXe=r$,JXe=mQ,VXe=gQ,qXe=i$,GXe=a$,WXe=yQ,zXe=RZe,KXe=iT(),YXe=ds(),ZXe=aT,XXe=jZe,QXe=GZe,eQe=YZe,tQe=QZe,nQe=nXe,rQe=o$,iQe=dXe,aQe=mXe,oQe=yXe,sQe=EXe,lQe=SXe;var EQ={parse:xXe,valid:CXe,clean:RXe,inc:$Xe,diff:IXe,major:kXe,minor:DXe,patch:OXe,prerelease:LXe,compare:PXe,rcompare:MXe,compareLoose:BXe,compareBuild:NXe,sort:FXe,rsort:UXe,gt:HXe,lt:jXe,eq:JXe,neq:VXe,gte:qXe,lte:GXe,cmp:WXe,coerce:zXe,Comparator:KXe,Range:YXe,satisfies:ZXe,toComparators:XXe,maxSatisfying:QXe,minSatisfying:eQe,minVersion:tQe,validRange:nQe,outside:rQe,gtr:iQe,ltr:aQe,intersects:oQe,simplifyRange:sQe,subset:lQe,SemVer:_Xe,re:d5.re,src:d5.src,tokens:d5.t,SEMVER_SPEC_VERSION:SU.SEMVER_SPEC_VERSION,RELEASE_TYPES:SU.RELEASE_TYPES,compareIdentifiers:_U.compareIdentifiers,rcompareIdentifiers:_U.rcompareIdentifiers};const xU=Ut(EQ);async function TQ(...e){return new Promise((t,n)=>{sn(()=>import("./index-APK4pG1u.js").then(r=>r.i),__vite__mapDeps([])).then(r=>{r.call||(r=r.default),r.call(...e,i=>{try{const a=JSON.parse(i);if(a.code===0){const o=JSON.parse(a.data);t(o)}else n(new Error(a.error))}catch{t(i)}})}).catch(r=>{console.error("load dsbridge error",r)})})}const uQe=[`${Vi}/connect`,`${Vi}/login`,`${Vi}/invite`,`${Vi}/issue-passport`];async function cQe(){const e=(window==null?void 0:window.blocklet)||{},t=window.location.pathname,{componentId:n,CHAIN_TYPE:r="arcblock",appPid:i}=e;if(uQe.includes(t))return null;const a=$X();try{const o=`${window.location.origin}${Vi}/api/user/loginByWallet`;return await TQ("arcLogin",{target:o,chainType:r,appPid:i,componentId:n,apps:a.map(l=>{let f=l==null?void 0:l.appLogo;return Qb(f)||(f=On(l.appUrl,f)),{appName:l.appName,appPid:l.appPid,appUrl:l.appUrl,appLogo:f,sourceAppPid:l.sourceAppPid}})})}catch(o){return console.error(o),null}}async function fQe(){return await TQ("arcGetVisitorId")}function dQe({platform:e,version:t}={}){return!!(e==="ios"&&t&&xU.gte(t,"4.15.6")||e==="android"&&t&&xU.gte(t,"4.15.1"))}const{Provider:pQe,Consumer:CU}=hh,RU={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"};function hQe(e=uVe,t="ls",n={},r={}){var f;let i="/";(f=globalThis==null?void 0:globalThis.blocklet)!=null&&f.prefix&&(i=globalThis.blocklet.prefix),typeof r=="boolean"&&(r={appendAuthServicePrefix:r,extraParams:{}}),_Re(r,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:cVe});const a=kM(e,t,n),o=kM(r.refreshTokenStorageKey,"ls");function s(c){var Me,He;const{connectApi:d,connectHolder:p}=cYe(),g=km(),y=Di({extraParams:{},options:{},currentLocale:c.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof c.autoConnect=="boolean"?c.autoConnect:!!c.autoLogin},get prefix(){return r.appendAuthServicePrefix||c.appendAuthServicePrefix?On(Vi,c.prefix):c.prefix}}),b=Di({action:c.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:"",get locale(){return c.locale||y.currentLocale||oX()}}),{confirmApi:R,confirmHolder:A}=MPe(),$=en(()=>new CRe,[]),D=_t((xe,ke,Je)=>{const Oe={login:[ei.LOGIN,ei.CANCEL_LOGIN],"bind-wallet":[ei.BIND_WALLET,ei.CANCEL_BIND_WALLET],"switch-passport":[ei.SWITCH_PASSPORT,ei.CANCEL_SWITCH_PASSPORT],"switch-profile":[ei.SWITCH_PROFILE,ei.CANCEL_SWITCH_PROFILE],"switch-did":[ei.LOGIN,ei.CANCEL_LOGIN]};if(!Object.keys(Oe).includes(xe))return;const W=async(...B)=>{Lc(ke)&&await ke(...B),$.emit(xe,...B)};$.once(Oe[xe][0],W),$.once(Oe[xe][1],async(...B)=>{Lc(W)&&$.off(Oe[xe][0],W),Lc(Je)&&await Je(...B),$.emit(`cancel-${xe}`,...B)})}),M=iK(b.initialized,(xe,ke)=>xe!==ke||xe===!0&&ke===!0),{handleRefreshUser:j,handleRefreshToken:U,renewToken:V,clearSession:X,handleLoginResult:ie,decrypt:le,service:Q,getSessionToken:P,getRefreshToken:T,setRefreshToken:u,setSessionToken:h}=$qe({state:b,pageState:y,sessionTokenStorage:a,refreshTokenStorage:o,serviceHost:c.serviceHost,apiOptions:c.apiOptions,lazyRefreshToken:c.lazyRefreshToken}),E=_t((xe,ke={},Je={})=>{const Oe=xe;typeof Oe=="object"&&(xe=Oe.onSuccess,ke=Oe.extraParams||{},Je=Oe.options||{},Je.origin=Oe.origin||""),(!b.user||Je.origin==="switch-did")&&(Je.origin==="switch-did"?D("switch-did",xe,Oe==null?void 0:Oe.onCancel):D("login",xe,Oe==null?void 0:Oe.onCancel),y.extraParams=ke,y.options=Je,b.action="login",we())}),S=_t(async(xe,ke={},Je={})=>{var Te;const Oe=xe;typeof Oe=="object"&&(xe=Oe.onSuccess,ke=Oe.extraParams||{},Je=Oe.options||{});const{params:W}=SF();if(ua(ke==null?void 0:ke.forceConnected)&&(W!=null&&W.forceConnected)&&(ke.forceConnected=W.forceConnected,ua(Je.showQuickConnect)&&(Je.showQuickConnect=!1)),ua(ke==null?void 0:ke.sourceAppPid)&&(W!=null&&W.sourceAppPid)&&(ke.sourceAppPid=W.sourceAppPid),(ke==null?void 0:ke.openMode)==="redirect"){const Ae=(ke==null?void 0:ke.redirect)||"/",Se=new URL(`${Vi}/login`,window.location.origin);Se.searchParams.set("redirect",Ae),ke!=null&&ke.forceConnected&&Se.searchParams.set("forceConnected",ke==null?void 0:ke.forceConnected),Je!=null&&Je.origin&&Se.searchParams.set("origin",Je.origin),window.location.href=Se.href;return}let B=ke==null?void 0:ke.sourceAppPid;ua(B)&&K&&(B=te.appPid),await uz(()=>b.initialized),typeof Je=="string"&&(Je={origin:Je});const F=xl(ke);y.allowWallet=void 0;const se=(F==null?void 0:F.openMode)||((Te=c==null?void 0:c.extraParams)==null?void 0:Te.openMode);ua(se)?y.openMode="window":y.openMode=se,B?(b.baseUrl=globalThis.blocklet.appUrl,E(xe,F,Je)):(b.baseUrl="",E(xe,F,Je))}),C=rf(),I=_t(async xe=>{const ke=On(Vi,"/api/user/logout");await fetch(ke,{method:"POST",body:JSON.stringify({visitorId:C}),headers:{"Content-Type":"application/json"}}),X(),me(),b.user=null,b.provider="",b.walletOS="",b.error="",b.loading=!1,$.emit("logout"),typeof xe=="function"&&xe()}),{userSessions:x,refresh:_,loaded:v,loginUserSession:k}=cQ({appPid:UK(b.user),loginAppPid:(Me=globalThis==null?void 0:globalThis.blocklet)==null?void 0:Me.appPid,sourceAppPid:(He=b==null?void 0:b.user)==null?void 0:He.sourceAppPid,autoFetch:!1}),ne=_t((xe,ke={},Je={})=>{const Oe=xe;typeof Oe=="object"&&(xe=Oe.onSuccess,ke=Oe.extraParams||{},Je=Oe.options||{}),typeof Je=="string"&&(Je={origin:Je}),Je!=null&&Je.userSession?k(Je.userSession).then(W=>{l2({connected_did:Je.userSession.user.did,connected_pk:Je.userSession.user.pk,connected_wallet_os:Je.userSession.extra.walletOS,connected_app:F1()},!0),D("switch-did",xe),ie({...W,encrypted:!1}),j(!0).then(()=>{$.emit(ei.LOGIN,W,le)})}):(ua(ke==null?void 0:ke.forceConnected)&&(ke.forceConnected=!1),S(xe,ke,{...Je,origin:"switch-did"}))}),N=_t((xe,ke={})=>{const Je=xe;typeof Je=="object"&&(xe=Je.onSuccess,ke=Je.extraParams||{}),b.user&&(D("switch-profile",xe,Je==null?void 0:Je.onCancel),y.extraParams=ke,y.options={},b.action="switch-profile",we())}),q=_t((xe,ke={})=>{const Je=xe;typeof Je=="object"&&(xe=Je.onSuccess,ke=Je.extraParams||{}),b.user&&(D("switch-passport",xe,Je==null?void 0:Je.onCancel),y.extraParams=ke,y.options={},b.action="switch-passport",we())}),re=_t((xe,ke={})=>{const Je=xe;typeof Je=="object"&&(xe=Je.onSuccess),b.user&&(D("bind-wallet",xe,Je==null?void 0:Je.onCancel),y.extraParams=ke,y.options={},b.action="bind-wallet",we())}),ce=_t(xe=>{y.extraParams={},y.options={},ie(xe),b.loading=!1,j(!0).then(()=>{b.action==="login"?$.emit(ei.LOGIN,xe,le):b.action==="switch-passport"&&$.emit(ei.SWITCH_PASSPORT,xe,le)})}),he=_t(xe=>{y.extraParams={},y.options={},ie(xe),b.loading=!1,j(!0).then(()=>{$.emit(ei.BIND_WALLET,xe,le)})}),_e=_t(xe=>{y.extraParams={},y.options={},b.loading=!1,j(!0).then(()=>{$.emit(ei.SWITCH_PROFILE,xe,le)})}),H=_t(xe=>{y.extraParams={},y.options={},me();const ke={login:ei.CANCEL_LOGIN,"switch-profile":ei.CANCEL_SWITCH_PROFILE,"switch-passport":ei.CANCEL_SWITCH_PASSPORT,"bind-wallet":ei.CANCEL_BIND_WALLET};$.emit(ke[xe])}),L=_t((xe,...ke)=>{try{Ve[xe](...ke)}catch(Je){console.error("Catch error in onSuccess",{action:xe,args:ke,err:Je})}}),{federatedMaster:Y,federatedEnabled:K,master:te}=_qe({locale:b.locale,decrypt:le,login:E,logout:I,handleLoginResult:ie,handleRefreshUser:j,setRefreshToken:u,setSessionToken:h}),{checkMatch:ye}=Hqe({protectedRoutes:c.protectedRoutes||[]}),pe=vE(x),ae=_t(async()=>(v||(await _(),await Um()),pe.current)),me=_t(()=>{b.open=!1,d.close()}),we=async()=>{var B,F,se,Te,Ae,Se,We;let xe=b.action;((B=y==null?void 0:y.options)==null?void 0:B.origin)==="switch-did"&&(xe=(F=y==null?void 0:y.options)==null?void 0:F.origin);const ke=pc[xe],Je=ke[b.locale]||ke.en,Oe={...r.extraParams,...c.extraParams,...y.extraParams,previousUserDid:(se=b==null?void 0:b.user)==null?void 0:se.did,email:(Te=b==null?void 0:b.user)==null?void 0:Te.email};if(xe==="switch-did"&&(Oe!=null&&Oe.forceConnected)){const Be=(je,ft={})=>Yp(pc["switch-specified-did"],je,b.locale,"en",ft);Je.title=Be("title"),Je.scan=Be("scan",{did:Oe.forceConnected}),Je.confirm=Be("confirm"),Je.success=Be("success")}Oe==null||delete Oe.openMode;const W={action:b.action,locale:b.locale,extraParams:Oe,options:{...c.options||{},...y.options},checkTimeout:c.timeout,webWalletUrl:c.webWalletUrl,messages:Je,useSocket:c.useSocket,...b6(c,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...uE(y.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:y.prefix,allowWallet:ua(y.allowWallet)?b.action!=="login"||(((Ae=globalThis.blocklet)==null?void 0:Ae.DID_CONNECT_ALLOW_WALLET)||"1")==="1":y.allowWallet,onSuccess(...Be){L(b.action,...Be),setTimeout(()=>{b.open=!1},2e3)},onClose(...Be){H(b.action,...Be)},onError(Be){console.error(Be)}};if(b.open=!0,["login"].includes(b.action)&&y.openMode==="window"&&!g.wallet)try{const Be={...W,baseUrl:window.location.origin};Qb(y.prefix)||(Be.prefix=On(window.location.origin,c.serviceHost==="/"?"":c.serviceHost,y.prefix)),(Se=Be.extraParams)!=null&&Se.provider||(Be.extraParams.provider=((We=b==null?void 0:b.user)==null?void 0:We.provider)||"wallet"),await d.openPopup(Be,{locale:b.locale})}catch(Be){Be.message==="Timeout"?Ci.error(RU[b.locale]||RU.en):console.error(Be)}else d.open(W)},be=()=>{const{params:xe,url:ke}=SF();if(xe){const{switchBehavior:Je,forceConnected:Oe,sourceAppPid:W,showClose:B}=xe;Oe===b.user.did?window.history.replaceState(null,"trim",ke):Je==="required"?ne(()=>{},{openMode:"redirect",redirect:ke,sourceAppPid:W,forceConnected:Oe}):Je==="disabled"?window.history.replaceState(null,"trim",ke):setTimeout(()=>{R.open({title:pc.switchAccountDialog[b.locale].title,content:G.jsxs(G.Fragment,{children:[G.jsx(Ir,{variant:"body1",sx:{textAlign:"center",mb:2},children:pc.switchAccountDialog[b.locale].description}),G.jsxs(yt,{sx:{display:"flex",alignItems:"center",color:Rt.foregroundsFgBase},children:[G.jsxs(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1},children:[G.jsx(Nl,{did:b.user.did,shape:"circle",variant:"circle",size:80}),G.jsx(Tp,{did:b.user.did,showAvatar:!1,compact:!0,responsive:!1}),pc.switchAccountDialog[b.locale].currentAccount]}),G.jsx(yt,{sx:{display:"flex",justifyContent:"center",px:2},children:G.jsx(yt,{component:Zn,icon:vPe,fontSize:24,color:Rt.foregroundsFgMuted,sx:{animation:"right 2.5s linear infinite","@keyframes right":{"0%":{transform:"translateX(-3px)",opacity:0},"60%":{transform:"translateX(3px)",opacity:1},"100%":{transform:"translateX(0px)",opacity:0}}}})}),G.jsxs(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1,fontWeight:500},children:[G.jsx(Nl,{did:Oe,shape:"circle",variant:"circle",size:80}),G.jsx(Tp,{did:Oe,showAvatar:!1,compact:!0,responsive:!1}),pc.switchAccountDialog[b.locale].nextAccount]})]})]}),showCloseButton:B,showCancelButton:!1,confirmButtonText:pc.switchAccountDialog[b.locale].confirm,onConfirm(F){F(),ne(()=>{window.location.replace(ke)},{sourceAppPid:W,forceConnected:Oe},{showQuickConnect:!1})}})},1e3)}},Ne={api:Q,events:$,storage:a,connectApi:d,session:{...b,loading:y.autoConnect&&!b.user||b.loading,login:S,logout:I,switchDid:ne,autoSwitchDid:be,switchProfile:N,switchPassport:q,bindWallet:re,refresh:j,updateConnectedInfo:l2,federatedMaster:Y,useOAuth:SR,OAuthProvider:f2,OAuthConsumer:sqe,OAuthContext:wR,useDid:wX,WrapDid:xX,getUserSessions:ae}},Ve={login:ce,"switch-profile":_e,"switch-passport":ce,"bind-wallet":he};return sf(()=>{if(b.initialized){const xe=!M;$.emit("change",{user:xl(b.user),isFirst:xe})}},[b.user,b.initialized,$]),sf(()=>{b.initialized&&b.user&&be()},[b.initialized]),Rm(async()=>{const xe=Br.get("connected_app"),ke=F1();if(c.autoDisconnect&&xe&&ke&&xe!==ke){X(),b.initialized=!0,y.autoConnect?we():me();return}const Je=P();let Oe="web";if(g.mobile.apple.device?Oe="ios":g.mobile.android.device&&(Oe="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&g.wallet&&dQe({version:g.walletVersion,platform:Oe})){if(!C){const B=await fQe();aW(B)}if(!Je)try{b.loading=!0;const B=await cQe();if(B){b.initialized=!0,ce({sessionToken:B.sessionToken,refreshToken:B.refreshToken,encrypted:!1});return}}finally{b.loading=!1}}if(Je){await j(!0),b.initialized=!0;return}if(typeof window<"u"){const B=new URL(window.location.href),F=B.searchParams.get("loginToken");if(F){ie({loginToken:F,encrypted:!1}),B.searchParams.delete("loginToken"),window.history.replaceState({},window.title,B.href);return}}if(T()){await U(!0),b.initialized=!0;return}try{}catch(B){console.error("Federated: tryAutoLogin failed",B)}finally{b.initialized=!0}y.autoConnect?we():me()}),ye()&&!b.initialized?G.jsx(hp,{children:G.jsx(rC,{})}):G.jsx(pQe,{value:Ne,children:G.jsxs(f2,{locale:b.locale,onSwitchPassport:({sessionToken:xe,refreshToken:ke})=>{ce({sessionToken:xe,refreshToken:ke,encrypted:!1})},onBindOAuth:()=>{j()},children:[!b.open&&typeof c.children=="function"?c.children(b):c.children,p,A,r.rolling&&G.jsx(sX,{callback:()=>V()})]})})}s.propTypes={children:ge.any.isRequired,serviceHost:ge.string,action:ge.string,prefix:ge.string,appendAuthServicePrefix:ge.bool,locale:ge.string,timeout:ge.number,autoConnect:ge.bool,autoDisconnect:ge.bool,useSocket:ge.bool,extraParams:ge.object,options:ge.object,webWalletUrl:ge.string,protectedRoutes:ge.arrayOf(ge.string),apiOptions:ge.object,lazyRefreshToken:ge.bool},s.defaultProps={serviceHost:i,locale:"",action:"login",prefix:fR,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:XZ*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function l(c){return function(p){return G.jsx(j3,{children:G.jsx(CU,{children:g=>G.jsx(c,{...p,...g})})})}}return{SessionProvider:c=>G.jsx(j3,{children:G.jsx(s,{...c})}),SessionConsumer:CU,SessionContext:hh,withSession:l}}let AQ="/";window.env&&(AQ=window.env.groupPathPrefix||window.env.pathPrefix||"/");function wQ(e,t){return[void 0,null,""].includes(e)?t:e/86400}var dj,pj,hj;const mQe=wQ((hj=(pj=(dj=window.blocklet)==null?void 0:dj.settings)==null?void 0:pj.session)==null?void 0:hj.cacheTtl,1/144);var mj,gj,yj;const gQe=wQ((yj=(gj=(mj=window.blocklet)==null?void 0:mj.settings)==null?void 0:gj.session)==null?void 0:yj.ttl,7),{SessionProvider:yQe,SessionContext:vQe,SessionConsumer:Egt,withSession:Tgt}=hQe("login_token","cookie",{returnDomain:!1,path:AQ,expireInDays:mQe},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays:gQe});function SQ(){return z.useContext(vQe)}function bQe({children:e}){const t=Yq({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return G.jsx(Oq,{injectFirst:!0,children:G.jsx(Eve,{theme:t,children:G.jsx(Dq,{theme:t,children:G.jsx(B8,{translations:S6e,fallbackLocale:"en",children:G.jsx(j3,{children:G.jsx(c$,{theme:t,children:e})})})})})})}const u$=new URL(window.location.href),_Q=u$.searchParams.get("mode")||"",EQe=u$.pathname.includes("embed")&&_Q==="dialog",TQe=u$.pathname.includes("embed")&&_Q!=="dialog";function c$({children:e,theme:t}){var i,a,o;const{locale:n}=eE(),r=Ws`
|
|
516
|
+
`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let i of this.reqs)i.abort();this.readyState=xs.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,i){let a,o=()=>{this.reqs.delete(a),r()};a=g2.request(e,this.endpointURL(),t,n,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},A0=class{constructor(e,t={}){let n=t.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(n.state,r=>{let{onJoin:i,onLeave:a,onSync:o}=this.caller;this.joinRef=this.channel.joinRef(),this.state=A0.syncState(this.state,r,i,a),this.pendingDiffs.forEach(s=>{this.state=A0.syncDiff(this.state,s,i,a)}),this.pendingDiffs=[],o()}),this.channel.on(n.diff,r=>{let{onJoin:i,onLeave:a,onSync:o}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(r):(this.state=A0.syncDiff(this.state,r,i,a),o())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return A0.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,t,n,r){let i=this.clone(e),a={},o={};return this.map(i,(s,l)=>{t[s]||(o[s]=l)}),this.map(t,(s,l)=>{let f=i[s];if(f){let c=l.metas.map(y=>y.phx_ref),d=f.metas.map(y=>y.phx_ref),p=l.metas.filter(y=>d.indexOf(y.phx_ref)<0),g=f.metas.filter(y=>c.indexOf(y.phx_ref)<0);p.length>0&&(a[s]=l,a[s].metas=p),g.length>0&&(o[s]=this.clone(f),o[s].metas=g)}else a[s]=l}),this.syncDiff(i,{joins:a,leaves:o},n,r)}static syncDiff(e,t,n,r){let{joins:i,leaves:a}=this.clone(t);return n||(n=function(){}),r||(r=function(){}),this.map(i,(o,s)=>{let l=e[o];if(e[o]=this.clone(s),l){let f=e[o].metas.map(d=>d.phx_ref),c=l.metas.filter(d=>f.indexOf(d.phx_ref)<0);e[o].metas.unshift(...c)}n(o,l,s)}),this.map(a,(o,s)=>{let l=e[o];if(!l)return;let f=s.metas.map(c=>c.phx_ref);l.metas=l.metas.filter(c=>f.indexOf(c.phx_ref)<0),r(o,l,s),l.metas.length===0&&delete e[o]}),e}static list(e,t){return t||(t=function(n,r){return r}),this.map(e,(n,r)=>t(n,r))}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static clone(e){return JSON.parse(JSON.stringify(e))}},w0={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,a,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:a,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:a}=e,o=this.META_LENGTH+t.length+n.length+i.length+r.length,s=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(s),f=0;l.setUint8(f++,this.KINDS.push),l.setUint8(f++,t.length),l.setUint8(f++,n.length),l.setUint8(f++,i.length),l.setUint8(f++,r.length),Array.from(t,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(i,d=>l.setUint8(f++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(f++,d.charCodeAt(0)));var c=new Uint8Array(s.byteLength+a.byteLength);return c.set(new Uint8Array(s),0),c.set(new Uint8Array(a),s.byteLength),c.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(e.slice(o,o+r));o=o+r;let l=n.decode(e.slice(o,o+i));o=o+i;let f=n.decode(e.slice(o,o+a));o=o+a;let c=e.slice(o,e.byteLength);return{join_ref:s,ref:null,topic:l,event:f,payload:c}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(s,s+r));s=s+r;let f=n.decode(e.slice(s,s+i));s=s+i;let c=n.decode(e.slice(s,s+a));s=s+a;let d=n.decode(e.slice(s,s+o));s=s+o;let p=e.slice(s,e.byteLength),g={status:d,response:p};return{join_ref:l,ref:f,topic:c,event:pl.reply,payload:g}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=this.HEADER_LENGTH+2,o=n.decode(e.slice(a,a+r));a=a+r;let s=n.decode(e.slice(a,a+i));a=a+i;let l=e.slice(a,e.byteLength);return{join_ref:null,ref:null,topic:o,event:s,payload:l}}},Rze=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||_ze,this.transport=n.transport||z0.WebSocket||Kv,this.establishedConnections=0,this.defaultEncoder=w0.encode.bind(w0),this.defaultDecoder=w0.decode.bind(w0),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Kv?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;T0&&T0.addEventListener&&(T0.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),T0.addEventListener("pageshow",i=>{r===this.connectClock&&(r=null,this.connect())})),this.heartbeatIntervalMs=n.heartbeatIntervalMs||3e4,this.rejoinAfterMs=i=>n.rejoinAfterMs?n.rejoinAfterMs(i):[1e3,2e3,5e3][i-1]||1e4,this.reconnectAfterMs=i=>n.reconnectAfterMs?n.reconnectAfterMs(i):[10,50,100,150,200,250,500,1e3,2e3][i-1]||5e3,this.logger=n.logger||null,this.longpollerTimeout=n.longpollerTimeout||2e4,this.params=W0(n.params||{}),this.endPoint=`${t}/${ux.websocket}`,this.vsn=n.vsn||Sze,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new iQ(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Kv}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=g2.appendParams(g2.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,n,r){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,n,r)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=W0(t)),!this.conn&&(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=n=>this.onConnError(n),this.conn.onmessage=n=>this.onConnMessage(n),this.conn.onclose=n=>this.onConnClose(n))}log(t,n,r){this.logger(t,n,r)}hasLogger(){return this.logger!==null}onOpen(t){let n=this.makeRef();return this.stateChangeCallbacks.open.push([n,t]),n}onClose(t){let n=this.makeRef();return this.stateChangeCallbacks.close.push([n,t]),n}onError(t){let n=this.makeRef();return this.stateChangeCallbacks.error.push([n,t]),n}onMessage(t){let n=this.makeRef();return this.stateChangeCallbacks.message.push([n,t]),n}ping(t){if(!this.isConnected())return!1;let n=this.makeRef(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:n});let i=this.onMessage(a=>{a.ref===n&&(this.off([i]),t(Date.now()-r))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,t])=>t())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),xze,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,n,r){if(!this.conn)return t&&t();this.waitForBufferDone(()=>{this.conn&&(n?this.conn.close(n,r||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,n=1){if(n===5||!this.conn||!this.conn.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(t,n+1)},150*n)}waitForSocketClosed(t,n=1){if(n===5||!this.conn||this.conn.readyState===xs.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(t,n+1)},150*n)}onConnClose(t){let n=t&&t.code;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&n!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,r])=>r(t))}onConnError(t){this.hasLogger()&&this.log("transport",t);let n=this.transport,r=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,i])=>{i(t,n,r)}),(n===this.transport||r>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(pl.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case xs.connecting:return"connecting";case xs.open:return"open";case xs.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(n=>n.joinRef()!==t.joinRef())}off(t){for(let n in this.stateChangeCallbacks)this.stateChangeCallbacks[n]=this.stateChangeCallbacks[n].filter(([r])=>t.indexOf(r)===-1)}channel(t,n={}){let r=new aQ(t,n,this);return this.channels.push(r),r}push(t){if(this.hasLogger()){let{topic:n,event:r,payload:i,ref:a,join_ref:o}=t;this.log("push",`${n} ${r} (${o}, ${a})`,i)}this.isConnected()?this.encode(t,n=>this.conn.send(n)):this.sendBuffer.push(()=>this.encode(t,n=>this.conn.send(n)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:i,payload:a,ref:o,join_ref:s}=n;o&&o===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${a.status||""} ${r} ${i} ${o&&"("+o+")"||""}`,a);for(let l=0;l<this.channels.length;l++){const f=this.channels[l];f.isMember(r,i,a,s)&&f.trigger(i,a,o,s)}for(let l=0;l<this.stateChangeCallbacks.message.length;l++){let[,f]=this.stateChangeCallbacks.message[l];f(n)}})}leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r.isJoined()||r.isJoining()));n&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),n.leave())}},cx={exports:{}},XS,GF;function $ze(){if(GF)return XS;GF=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;XS=function(c,d){d=d||{};var p=typeof c;if(p==="string"&&c.length>0)return o(c);if(p==="number"&&isFinite(c))return d.long?l(c):s(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function o(c){if(c=String(c),!(c.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(d){var p=parseFloat(d[1]),g=(d[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return p*a;case"weeks":case"week":case"w":return p*i;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function s(c){var d=Math.abs(c);return d>=r?Math.round(c/r)+"d":d>=n?Math.round(c/n)+"h":d>=t?Math.round(c/t)+"m":d>=e?Math.round(c/e)+"s":c+"ms"}function l(c){var d=Math.abs(c);return d>=r?f(c,d,r,"day"):d>=n?f(c,d,n,"hour"):d>=t?f(c,d,t,"minute"):d>=e?f(c,d,e,"second"):c+" ms"}function f(c,d,p,g){var y=d>=p*1.5;return Math.round(c/p)+" "+g+(y?"s":"")}return XS}function Ize(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=o,n.humanize=$ze(),n.destroy=f,Object.keys(e).forEach(c=>{n[c]=e[c]}),n.names=[],n.skips=[],n.formatters={};function t(c){let d=0;for(let p=0;p<c.length;p++)d=(d<<5)-d+c.charCodeAt(p),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(c){let d,p=null,g,y;function b(...R){if(!b.enabled)return;const A=b,$=Number(new Date),D=$-(d||$);A.diff=D,A.prev=d,A.curr=$,d=$,R[0]=n.coerce(R[0]),typeof R[0]!="string"&&R.unshift("%O");let M=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(U,V)=>{if(U==="%%")return"%";M++;const X=n.formatters[V];if(typeof X=="function"){const ie=R[M];U=X.call(A,ie),R.splice(M,1),M--}return U}),n.formatArgs.call(A,R),(A.log||n.log).apply(A,R)}return b.namespace=c,b.useColors=n.useColors(),b.color=n.selectColor(c),b.extend=r,b.destroy=n.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(g!==n.namespaces&&(g=n.namespaces,y=n.enabled(c)),y),set:R=>{p=R}}),typeof n.init=="function"&&n.init(b),b}function r(c,d){const p=n(this.namespace+(typeof d>"u"?":":d)+c);return p.log=this.log,p}function i(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];let d;const p=(typeof c=="string"?c:"").split(/[\s,]+/),g=p.length;for(d=0;d<g;d++)p[d]&&(c=p[d].replace(/\*/g,".*?"),c[0]==="-"?n.skips.push(new RegExp("^"+c.slice(1)+"$")):n.names.push(new RegExp("^"+c+"$")))}function a(){const c=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let d,p;for(d=0,p=n.skips.length;d<p;d++)if(n.skips[d].test(c))return!1;for(d=0,p=n.names.length;d<p;d++)if(n.names[d].test(c))return!0;return!1}function s(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function l(c){return c instanceof Error?c.stack||c.message:c}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var kze=Ize;(function(e,t){var n={};t.formatArgs=i,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.destroy=(()=>{let f=!1;return()=>{f||(f=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(f){if(f[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+f[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;f.splice(1,0,c,"color: inherit");let d=0,p=0;f[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(d++,g==="%c"&&(p=d))}),f.splice(p,0,c)}t.log=console.debug||console.log||(()=>{});function a(f){try{f?t.storage.setItem("debug",f):t.storage.removeItem("debug")}catch{}}function o(){let f;try{f=t.storage.getItem("debug")}catch{}return!f&&typeof Xt<"u"&&"env"in Xt&&(f=n.DEBUG),f}function s(){try{return localStorage}catch{}}e.exports=kze(t);const{formatters:l}=e.exports;l.j=function(f){try{return JSON.stringify(f)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(cx,cx.exports);var VR=cx.exports;const Dze=VR;var Oze=(e,t=!1)=>{const n=Dze(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const Lze=Oze;var Pze=(e,t,n)=>class extends e{constructor(i,a={}){super(i,{transport:n,...a}),this._logger=Lze("client",a.silent),this.emitter=new t,this.onOpen(()=>{this._logger.debug("socket open",i)}),this.onClose(()=>{this._logger.debug("socket close",i)}),this.onError(o=>{this._logger.error("socket error",o.error)}),this.onMessage(o=>{this._logger.debug("socket message",o)})}on(i,a,o={}){this.ensureJoinChannel(i,o),this.emitter.on(i,a)}off(i,a){a?this.emitter.off(i,a):this.emitter.removeAllListeners(i),this.ensureLeaveChannel(i)}disconnect(i,a,o){this.emitter.eventNames().forEach(s=>{this.emitter.removeAllListeners(s)}),super.disconnect(i,a,o)}ensureJoinChannel(i,a={}){if(this.emitter.listenerCount(i)>0)return;const s=this.channel(i,a);s.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),s.on(i,({status:l,response:f})=>{l==="ok"?this.emitter.emit(i,f):this._logger.debug("response error",{topic:i,status:l,data:f})})}ensureLeaveChannel(i){if(this.emitter.listenerCount(i)>0)return;const o=this.channels.find(s=>s.topic===i);o&&(this.remove(o),o.leave().receive("ok",s=>{this._logger.debug("leave success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("leave error",{topic:i,err:s})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:i})}),o.off(i))}subscribe(i,a={}){let o=this.channels.find(s=>s.topic===i);return o||(o=this.channel(i,a),o.join().receive("ok",s=>{this._logger.debug("join success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("join error",{topic:i,error:s})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),o)}unsubscribe(i){this.ensureLeaveChannel(i)}};const Mze=nQ,{Socket:Bze}=Aze,Nze=Pze;var Fze=Nze(Bze,Mze);const Uze=Fze;var qR={WsClient:Uze};function Hze(e){const t=z.useRef(e);z.useEffect(()=>{t.current=e},[e]),z.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function jze(e){const t=e||window.location.href;return new URL(t).host}function S0(e){const t={},n=e||window.location.href;if(n){const{hostname:r,protocol:i,port:a}=new URL(n);t["x-real-hostname"]=r,t["x-real-port"]=a,t["x-real-protocol"]=i.endsWith(":")?i.substring(0,i.length-1):i}return t}const QS={};function Jze({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const a=`${t}/token?${v0(r)}`;return QS[a]||(QS[a]=async function(){var d,p;const s=+new Date,l=await n(a,{headers:S0(i)}),f=+new Date;if(f-s<500&&await Um(500-(f-s)),(d=l==null?void 0:l.data)!=null&&d.token)return l.data;if((p=l==null?void 0:l.data)!=null&&p.error)throw new Error(l.data.error);const c=Qb(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${c}`)}),QS[a]}const Vze=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=mVe(t);return{token:gVe(n),url:n}}catch(e){return{error:e}}},oQ=()=>Bs(globalThis,"blocklet.appPid")||Bs(globalThis,"blocklet.appId")||Bs(globalThis,"env.appId")||"",qze=()=>(Bs(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(QZ,""),e5=e=>`relay:${oQ()}:${e}`,Gze=()=>window.location.protocol==="https:"?"wss:":"ws:",WF=e=>!e||new URL(e).origin===window.location.origin,zF=e=>["succeed","error","timeout","busy"].includes(e);function Wze({action:e,checkFn:t,checkInterval:n,checkTimeout:r,extraParams:i,locale:a,prefix:o,tokenKey:s,encKey:l,onError:f,onSuccess:c,baseUrl:d,autoConnect:p=!0,forceConnected:g=!0,saveConnect:y=!0,useSocket:b=!0,provider:R="wallet"}){const A=Di({checking:!1,loading:!1,token:"",url:"",store:null,status:"created",error:"",checkCount:0,mfaCode:0,appInfo:null,memberAppInfo:null,connectedDid:"",saveConnect:!1,inExistingSession:!1,nextWorkflow:"",baseUrl:d,prefix:`${o}/${e}`,extraParams:VF(i,qF),checkFn:t,results:{},action:e,provider:R}),$=H1[a]||H1.en,D=en(()=>Vze(),[]),M=Math.ceil(r/n),j=Di({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:U,decrypt:V}=dGe(),X=km(),ie=rf(),le=_t((..._)=>{const v={[l]:U,...A.extraParams,locale:a,forceConnected:g,autoConnect:p&&!X.wallet&&!j.cancelWhenScannedCounter&&["ios","android"].includes(Br.get("connected_wallet_os")),provider:A.provider};return ie&&(v.visitorId=ie),Jze({action:e,prefix:A.prefix,baseUrl:A.baseUrl,checkFn:A.checkFn,extraParams:v})(..._)}),Q=()=>{j.cancelWhenScannedCounter++};z.useEffect(()=>{j.cancelWhenScannedCounter>0&&(i.nw?f(new Error($.retryForbidden)):S())},[j.cancelWhenScannedCounter]);const P=z.useRef(null),T=z.useRef(null);z.useEffect(()=>(b&&WF(A.baseUrl)&&oQ()?(!P.current||P.current.isConnected()===!1||P.current.baseUrl!==A.baseUrl)&&(P.current=new qR.WsClient(`${Gze()}//${jze(A.baseUrl)}${qze()}${QZ}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),P.current.baseUrl=A.baseUrl,P.current.onOpen(()=>{j.isSocketAvailable=!0}),P.current.connect()):j.isSocketAvailable&&(j.isSocketAvailable=!1),()=>{P.current&&(P.current.disconnect(),P.current=null)}),[A.baseUrl]);const u={...A.extraParams,locale:a,[s]:A.token||(D==null?void 0:D.token),provider:A.provider},h=()=>!A.token||A.loading||zF(A.status)?null:n,E=async()=>{try{u[s]&&A.status==="created"&&await A.checkFn(`${A.prefix}/timeout?${v0(u)}`,{headers:S0(A.baseUrl)})}catch{}try{A.token&&T.current&&(await P.current.unsubscribe(e5(A.token)),T.current=null)}catch{}},S=_t(async(_=!0)=>{_&&E();try{A.loading=!0,A.token="",A.url="",A.store=null,A.extraParams=VF(i,qF),await Um();const v=await le(),k=v.extra||{};A.loading=!1,A.token=v.token,A.url=v.url,A.status="created",A.error="",A.checkCount=0,A.appInfo=v.appInfo,A.memberAppInfo=v.memberAppInfo,A.connectedDid=k.connectedDid,A.saveConnect=k.saveConnect}catch(v){A.loading=!1,A.status="error",A.error=`${$.generateError}: ${v.message}`}}),C=z.useRef(null);z.useEffect(()=>{C.current={state:A,params:u}}),z.useEffect(()=>()=>{const{state:_,params:v}=C.current;_.status==="created"&&v[s]&&_.checkFn(`${_.prefix}/timeout?${v0(v)}`,{headers:S0(_.baseUrl)})},[]);const I=async()=>{try{if(D.error)throw D.error;A.loading=!0,A.token=D.token,A.url=D.url,A.inExistingSession=!0;const _=await x();if(_!=null&&_.status&&(_==null?void 0:_.status)!=="created")throw new Error(`${$.invalidSessionStatus} [${_.status}]`)}catch(_){A.status="error",A.error=_.message,f(_,A==null?void 0:A.store,V)}finally{A.loading=!1}};z.useEffect(()=>{if(!A.token&&!A.store&&!A.loading&&!A.error)if(D)I();else{S(!1);return}if(A.status!=="timeout"&&A.checkCount>M){A.status="timeout",E();return}if(A.status==="succeed"&&!j.onSuccessCalled){const _=rX({...A.store,appInfo:A.appInfo,memberAppInfo:A.memberAppInfo});if(WF(A.baseUrl)&&y&&A.saveConnect&&A.store.did&&l2(_,!0),A.store){const{nextWorkflow:v}=A.store;if(v)try{const k=yVe(v,s);A.nextWorkflow=(k==null?void 0:k.nextWorkflow)||v,Object.assign(A,k),A.store=null,A.error="",A.url="",A.appInfo=null,A.memberAppInfo=null,A.checkCount=0,A.status="scanned",A.results={...A.results,[A.token]:A.store},A.checkFn=Wl({baseURL:k.baseUrl,timeout:8e3}).get,x()}catch(k){console.error(`Invalid nextWorkflow: ${v}`,k),A.status="error",A.error=`Invalid nextWorkflow: ${v}: ${k.message}`}else if(A.nextWorkflow&&(A.nextWorkflow="",A.url=""),typeof c=="function"){const k=Object.values({...A.results,[A.token]:A.store});j.onSuccessCalled=!0;const ne=k.length>1?k:k[0],N=xl(ne);c(N,V,{sourceAppPid:i==null?void 0:i.sourceAppPid,..._})}}}}),z.useEffect(()=>{if(A.token&&j.isSocketAvailable&&P.current){let _=!1;T.current?T.current.token!==A.token&&(P.current.unsubscribe(e5(T.current.token)),_=!0):_=!0,_&&(T.current=P.current.subscribe(e5(A.token)),T.current.token=A.token,T.current.on("updated",({response:v})=>{let{status:k,error:ne}=v;k==="forbidden"&&(ne=$.forbidden,k="error"),A.status=k,A.mfaCode=v.mfaCode||0,A.store=v,A.error=ne}))}},[A.token,j.isSocketAvailable,P.current]);const x=async(_=!1)=>{var v;if(A.checking||(A.status==="created"&&A.checkCount++,j.isSocketAvailable&&!_))return null;try{A.checking=!0;const k=await A.checkFn(`${A.prefix}/status?${v0(u)}`,{headers:S0(A.baseUrl)}),{status:ne,error:N,mfaCode:q=0}=k.data;if(A.store=k.data,A.mfaCode=q,A.checking=!1,A.status=ne,ne==="error"&&N){const re=new Error(N);throw re.response=k,re}return k.data}catch(k){const{response:ne}=k;if(ne!=null&&ne.status){u[s]&&A.checkFn(`${A.prefix}/timeout?${v0(u)}`,{headers:S0(A.baseUrl)});const N=(v=ne==null?void 0:ne.data)!=null&&v.error?ne.data.error:k.message,q=new Error(N);q.code=ne.status,A.status="error",A.checking=!1,A.error=N,f(q,A==null?void 0:A.store,V)}else A.status="error",A.checking=!1,A.error=$.generateError}return null};return hze(x,h()),Hze(()=>{j.isSocketAvailable&&A.token&&zF(A.status)===!1&&x(!0)}),{state:A,generate:S,cancelWhenScanned:Q}}function GR({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i}=zl(),a=r("openInWallet"),o=en(()=>{if(!e.url)return"";const f=new URL(window.location.href);f.searchParams.set("tokenKey",e.token);const c=new URL(e.url);return c.searchParams.set("callback",encodeURIComponent(f)),c.searchParams.set("callback_delay",1500),c.searchParams.set("locale",t),c.href.replace(/^https?:\/\//,"abt://")},[n,e.token]),s=_t(()=>{sn(()=>import("./index-65ROwV_z.js").then(f=>f.i),__vite__mapDeps([])).then(f=>{f.call||(f=f.default),f.call("authAction",{action:"auth",deepLink:o})}).catch(f=>{console.error("load dsbridge error",f)})}),l={};return i||(l.component="a",l.href=o),Rm(()=>{o&&s()}),G.jsxs(Zu,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:Rt.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...l,onClick:i?s:Bn,children:[G.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[G.jsx(kp,{width:"24px",height:"24px"}),G.jsx(Ir,{sx:{fontSize:"14px",fontWeight:500},children:a})]}),G.jsx(Zn,{icon:ZE,fontSize:"1.3rem",color:Rt.primaryBase})]})}GR.propTypes={tokenState:ge.object.isRequired,locale:ge.string,tokenKey:ge.string};GR.defaultProps={locale:"en",tokenKey:"_t_"};const zze={width:24,height:24,body:'<path fill="currentColor" d="M12 20q-3.35 0-5.675-2.325T4 12q0-3.35 2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.713T19 4q.425 0 .713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.713-.288T13 10q0-.425.288-.713T14 9h3.2q-.8-1.4-2.188-2.2T12 6Q9.5 6 7.75 7.75T6 12q0 2.5 1.75 4.25T12 18q1.7 0 3.113-.863t2.187-2.312q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20Z"/>'};function sQ({onRefresh:e,...t}){const n=r=>{r.stopPropagation(),e()};return G.jsx(yt,{...t,onClick:n,sx:{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(0, 0, 0, 0.1)",cursor:"pointer",...t.sx},children:G.jsx(yt,{sx:{backgroundColor:Rt.foregroundsFgInteractive,borderRadius:"100%",fontSize:0},children:G.jsx(Zn,{icon:zze,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})})})}sQ.propTypes={onRefresh:ge.func.isRequired};const Hy=["scanned","succeed","error","busy"];function WR({onSuccess:e,onError:t,action:n,prefix:r,checkFn:i,checkInterval:a,checkTimeout:o,locale:s,tokenKey:l,encKey:f,baseUrl:c,autoConnect:d,forceConnected:p,saveConnect:g,useSocket:y,allowWallet:b,provider:R,webWalletUrl:A,onRecreateSession:$,onClose:D,messages:M,enabledConnectTypes:j}){var te,ye,pe;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const U=z.useContext(hh),{connectState:V,extraParams:X,staticState:ie,changeStatus:le,isWalletWebview:Q,matchSmallScreen:P,t:T}=zl(),u=km(),h=en(()=>{var ae;return R||(X==null?void 0:X.provider)||((ae=U==null?void 0:U.session)==null?void 0:ae.provider)||"wallet"},[X==null?void 0:X.provider,(te=U==null?void 0:U.session)==null?void 0:te.provider]);z.useEffect(()=>{I(c)},[c]);const{state:E,generate:S,cancelWhenScanned:C}=Wze({action:n,baseUrl:c,checkFn:i,checkInterval:a,checkTimeout:o,extraParams:X,prefix:r,onError:t,onSuccess:e,locale:s,tokenKey:l,encKey:f,autoConnect:d,forceConnected:p,saveConnect:g,useSocket:y,allowWallet:b,provider:h}),{setBaseUrl:I,oauthConfigList:x,oauthState:_}=SR({defaultStatus:E.status}),v=iK(V==null?void 0:V.sourceAppPid);sf(()=>{ua(v)||S()},[V==null?void 0:V.sourceAppPid]);const k=en(()=>Hy.includes(_.status)||Hy.includes(E.status),[E.status,_.status]);z.useEffect(()=>{Hy.includes(_.status)?le(_.status):Hy.includes(E.status)?le(E.status):le("created")},[le,E.status,_.status]);const ne=_t(()=>{$(),_.reset(),E.inExistingSession||S(!1)}),N=_t(()=>{$(),E.inExistingSession||(ie.current.cancelCount++,C())}),q=en(()=>({confirm:M.confirm,success:M.success,error:E.error||_.error||""}),[M.confirm,M.success,E.error,_.error]),re=en(()=>b&&j.includes("mobile")&&!Q,[b,j,Q]),ce=tX(A),he=en(()=>b&&j.includes("web")&&(ce||Xb())&&!u.mobile.any,[b,j,(ye=u==null?void 0:u.mobile)==null?void 0:ye.any]),_e=en(()=>b&&j.includes("mobile")&&u.mobile.any,[b,j,(pe=u==null?void 0:u.mobile)==null?void 0:pe.any]),H=en(()=>{const ae=tWe(["auth0","apple","github","google"],j);return x.filter(me=>ae.includes(me.provider))},[x,j]),L=en(()=>H.length>0&&["login","invite"].includes(E.action),[H]),Y=en(()=>{const ae=re||he||_e;let me=null;return L&&(me=ae?G.jsxs(G.Fragment,{children:[G.jsx(iC,{light:!0,sx:{color:Rt.textMuted,width:P?"200px":"368px",maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:Rt.lineStep}},children:"OR"}),G.jsx(m2,{providerList:H,onSuccess:e,onError:t,tokenState:E,locale:s})]}):G.jsxs(G.Fragment,{children:[G.jsx(Ir,{variant:"body2",sx:{mt:1,textAlign:"center",color:Rt.foregroundsFgSubtile},children:T("loginWithBelow")}),G.jsx(m2,{providerList:H,onSuccess:e,onError:t,tokenState:E,type:"list",locale:s})]})),G.jsxs(G.Fragment,{children:[E.status==="timeout"?G.jsx(sQ,{onRefresh:ne,sx:{zIndex:1,animation:"fadeIn 1s","@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}}}):null,G.jsx(yt,{"data-did-auth-url":E.url,sx:{display:"none"}}),_e&&G.jsx(GR,{tokenState:E,locale:s,tokenKey:l}),re&&G.jsx(HR,{tokenState:E,messages:M,locale:s}),he&&G.jsx(FR,{tokenState:E,webWalletUrl:A,locale:s}),me]})},[E.url,E.status,re,he,_e]);return en(()=>E.loading||_.loading||!E.token,[E.loading,_.loading])?G.jsx(IR,{}):k?G.jsxs(G.Fragment,{children:[G.jsx(yt,{"data-did-auth-url":E.url,sx:{display:"none"}}),G.jsx(XE,{status:_.status||E.status,nextWorkflow:E.nextWorkflow,mfaCode:E.mfaCode,onCancel:N,onRetry:ne,onClose:D,messages:q,locale:s,className:"auth-status"})]}):Y}WR.propTypes={onError:ge.func,onSuccess:ge.func.isRequired,action:ge.string.isRequired,checkFn:ge.func.isRequired,prefix:ge.string,checkInterval:ge.number,checkTimeout:ge.number,locale:ge.oneOf(["en","zh",""]),tokenKey:ge.string,encKey:ge.string,baseUrl:ge.string,autoConnect:ge.bool,forceConnected:ge.oneOfType([ge.bool,ge.string]),saveConnect:ge.bool,useSocket:ge.bool,allowWallet:ge.bool,provider:ge.oneOf(["wallet","auth0",""]),webWalletUrl:ge.string,onRecreateSession:ge.func,onClose:ge.func,messages:ge.object,enabledConnectTypes:ge.arrayOf(ge.oneOf(["web","mobile","github","apple","google","auth0"]))};WR.defaultProps={prefix:fR,onError:Bn,checkInterval:2*1e3,checkTimeout:XZ*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:eX(),onRecreateSession:Bn,onClose:Bn,messages:{},enabledConnectTypes:["web","mobile","github","apple","google","auth0"]};var t5=GW,Kze=hW,Yze=cC,Zze=1/0,Xze=t5&&1/Yze(new t5([,-0]))[1]==Zze?function(e){return new t5(e)}:Kze,Qze=Xze,eKe=lC,tKe=HX,nKe=jX,rKe=uC,iKe=Qze,aKe=cC,oKe=200;function sKe(e,t,n){var r=-1,i=tKe,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=nKe;else if(a>=oKe){var f=t?null:iKe(e);if(f)return aKe(f);o=!1,i=rKe,l=new eKe}else l=t?[]:s;e:for(;++r<a;){var c=e[r],d=t?t(c):c;if(c=n||c!==0?c:0,o&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}var lQ=sKe,lKe=eC,uKe=QE,cKe=_m,fKe=lQ,KF=G8,dKe=lE,pKe=cKe(function(e){var t=dKe(e);return KF(t)&&(t=void 0),fKe(lKe(e,1,KF,!0),uKe(t))}),hKe=pKe;const mKe=Ut(hKe);var gKe=SW,yKe=xm;function vKe(e,t){return e&&gKe(e,t,yKe)}var bKe=vKe,EKe=bf;function TKe(e,t){return function(n,r){if(n==null)return n;if(!EKe(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var AKe=TKe,wKe=bKe,SKe=AKe,_Ke=SKe(wKe),xKe=_Ke,CKe=xKe,RKe=bf;function $Ke(e,t){var n=-1,r=RKe(e)?Array(e.length):[];return CKe(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var IKe=$Ke;function kKe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var DKe=kKe,YF=mm;function OKe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=YF(e),o=t!==void 0,s=t===null,l=t===t,f=YF(t);if(!s&&!f&&!a&&e>t||a&&o&&l&&!s&&!f||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!f&&e<t||f&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var LKe=OKe,PKe=LKe;function MKe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=PKe(i[r],a[r]);if(l){if(r>=s)return l;var f=n[r];return l*(f=="desc"?-1:1)}}return e.index-t.index}var BKe=MKe,n5=Wp,NKe=ym,FKe=QE,UKe=IKe,HKe=DKe,jKe=wm,JKe=BKe,VKe=sE,qKe=Aa;function GKe(e,t,n){t.length?t=n5(t,function(a){return qKe(a)?function(o){return NKe(o,a.length===1?a[0]:a)}:a}):t=[VKe];var r=-1;t=n5(t,jKe(FKe));var i=UKe(e,function(a,o,s){var l=n5(t,function(f){return f(a)});return{criteria:l,index:++r,value:a}});return HKe(i,function(a,o){return JKe(a,o,n)})}var WKe=GKe,zKe=eC,KKe=WKe,YKe=_m,ZF=FW,ZKe=YKe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&ZF(e,t[0],t[1])?t=[]:n>2&&ZF(t[0],t[1],t[2])&&(t=[t[0]]),KKe(e,zKe(t,1),[])}),XKe=ZKe;const uQ=Ut(XKe),QKe=On(Vi,"/api/user-session");function cQ({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/"}={}){const a=rf(),o=en(()=>Wl({baseURL:On(i,QKe)},{lazy:!0,lazyTime:500}),[i]),s=_t(async()=>{const{data:g}=await o.get("",{params:{visitorId:a,appPid:e}});return g}),l=Di({loaded:!1,loadingId:null}),f=BOe(s,{manual:!r,onFinally(){l.loaded=!0},refreshDeps:[e,i]}),c=async g=>{var b,R,A;const y=uE(g,["userDid","visitorId","passportId"]);try{l.loadingId=g.id;const{data:$}=await o.post("login",{...y,appPid:n});return $}catch($){const D=$.response?((R=(b=$.response)==null?void 0:b.data)==null?void 0:R.error)||((A=$.response)==null?void 0:A.data):$.message;throw Ci.error(D),console.error("Quick login error",$),$}finally{l.loadingId=null}},d=en(()=>{if(!f.data)return[];const g=new Date().getTime(),y=uQ(f.data,b=>g-new Date(b.updatedAt).getTime());return mKe(y,b=>[b.userDid].join("_"))},[f.data,t,e]),p=en(()=>!!(d&&d.length>0),[d]);return{loadingId:l.loadingId,userSessions:d,quickLoginEnabled:p,loginUserSession:c,loading:f.loading,loaded:f.loaded,refresh:f.refreshAsync}}const eYe={width:24,height:24,body:'<path fill="currentColor" d="M11.95 18q.525 0 .888-.363t.362-.887q0-.525-.362-.888t-.888-.362q-.525 0-.887.363t-.363.887q0 .525.363.888t.887.362Zm.05 4q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20Zm0-8Zm.1-4.3q.625 0 1.088.4t.462 1q0 .55-.337.975t-.763.8q-.575.5-1.012 1.1t-.438 1.35q0 .35.263.588t.612.237q.375 0 .638-.25t.337-.625q.1-.525.45-.938t.75-.787q.575-.55.988-1.2t.412-1.45q0-1.275-1.038-2.087T12.1 6q-.95 0-1.812.4T8.975 7.625q-.175.3-.113.638t.338.512q.35.2.725.125t.625-.425q.275-.375.688-.575t.862-.2Z"/>'},tYe={width:24,height:24,body:'<path fill="currentColor" d="m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4L9.55 18Z"/>'};function zR({appInfo:e,...t}){const[n,r]=z.useState(!1);if(n||!(e.appUrl||e.appLogo))return G.jsx(Nl,{did:e.appPid,size:32});let i=e.appLogo||"";return Qb(i)||(i=On(e.appUrl||"",i)),G.jsx(Zd,{src:i,alt:e.appName||"Blocklet Icon",width:32,height:32,...t,onError:()=>r(!0)})}zR.propTypes={appInfo:ge.object.isRequired};const nYe=e=>e?e.split(":").pop():"";function eT({appInfo:e,active:t,appLogo:n}){return G.jsxs(yt,{sx:{display:"flex",alignItems:"center",fontWeight:600,color:Rt.textBase,"& .app-info-content":{paddingLeft:"8px",overflow:"hidden"},"& .app-info-name":{maxWidth:"100%",paddingRight:"32px",lineHeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"},"& .app-info-did":{fontSize:0},"& .app-info-did .did-address-text":{color:Rt.textMuted,fontSize:"12px"}},children:[n||G.jsx(yt,{sx:{borderRadius:"8px",overflow:"hidden",fontSize:0},children:G.jsx(zR,{appInfo:e})}),G.jsxs(yt,{className:"app-info-content",children:[G.jsx(yt,{className:"app-info-name",children:e.appName}),e.appPid&&G.jsx(xE,{size:12,className:"app-info-did",copyable:!1,color:Rt.textMuted,compact:!1,responsive:!1,children:nYe(e.appPid)})]}),t?G.jsx(zu,{size:"small",color:"success",children:G.jsx(Pke,{icon:tYe,color:"success"})}):null]})}eT.propTypes={appInfo:ge.object.isRequired,active:ge.bool,appLogo:ge.node};eT.defaultProps={active:!1,appLogo:null};function fx({appInfo:e}){const t=z.useRef(null),n=Di({hoverOnButton:!1,hoverOnPopover:!1}),r=en(()=>n.hoverOnButton||n.hoverOnPopover,[n.hoverOnButton,n.hoverOnPopover]);return G.jsxs(G.Fragment,{children:[G.jsx(yt,{component:"span",ref:t,sx:{color:Rt.foregroundsFgInteractive,cursor:"help"},onClick:()=>{n.hoverOnButton=!0},onMouseEnter:()=>{n.hoverOnButton=!0},onMouseLeave:()=>{setTimeout(()=>{n.hoverOnButton=!1},200)},children:e.appName}),G.jsx(kz,{open:r,sx:{pointerEvents:"none"},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${Rt.gray6}, 0px 0px 0px 1px ${Rt.gray6}`,py:1,px:1.5,borderRadius:2,transform:"translateY(-6px) !important"}}},anchorEl:t.current,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{n.open=!1},disableRestoreFocus:!0,children:G.jsx(yt,{component:"span",sx:{pointerEvents:"auto"},onMouseEnter:()=>{n.hoverOnPopover=!0},onMouseLeave:()=>{n.hoverOnPopover=!1},children:G.jsx(eT,{appInfo:e,appLogo:G.jsx(zR,{appInfo:e})})})})]})}fx.propTypes={appInfo:ge.object.isRequired};function XF(){const{appInfoList:e,t,extraParams:n,connectState:r}=zl(),i=z.useRef(null),a=Di({open:!1});return G.jsxs(G.Fragment,{children:[G.jsx(yt,{component:"span",ref:i,sx:{textTransform:"lowercase",color:Rt.foregroundsFgInteractive,cursor:"pointer"},onClick:()=>{a.open=!0},children:t("switch")}),G.jsx(wDe,{anchorEl:i.current,open:a.open,onClose:()=>{a.open=!1},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${Rt.gray6}, 0px 0px 0px 1px ${Rt.gray6}`,borderRadius:2}}},children:e.map(o=>G.jsx(G3,{onClick:()=>{a.open=!1,r.sourceAppPid=o.sourceAppPid},children:G.jsx(eT,{appInfo:o,active:o.sourceAppPid===(n==null?void 0:n.sourceAppPid)})},o.appPid))})]})}function KR({locale:e,disableSwitchApp:t}){const{appInfoList:n,extraParams:r,connectState:i,blocklet:a}=zl(),o=en(()=>n.find(f=>tp.isUndefined(r==null?void 0:r.sourceAppPid)?!0:tp.isNull(f.sourceAppPid)?f.appPid===(a==null?void 0:a.appPid):f.sourceAppPid===(r==null?void 0:r.sourceAppPid)),[r==null?void 0:r.sourceAppPid,n]),s=!t&&n.length>1;Rm(()=>{(a==null?void 0:a.appPid)===(o==null?void 0:o.appPid)?i.sourceAppPid=null:i.sourceAppPid=o==null?void 0:o.appPid});const l=en(()=>e==="zh"?G.jsxs(G.Fragment,{children:["您正在使用 ",G.jsx(fx,{appInfo:o,appInfoList:n})," 账户来连接站点",s?G.jsxs(G.Fragment,{children:[",点击",G.jsx(XF,{appInfoList:n})]}):null]}):G.jsxs(G.Fragment,{children:["You're using ",G.jsx(fx,{appInfo:o})," account for site access",s?G.jsxs(G.Fragment,{children:[". Click to ",G.jsx(XF,{appInfoList:n})]}):null]}),[e,o,n,s]);return tp.isEmpty(n)?null:G.jsxs(yt,{sx:{fontSize:"13px",color:Rt.foregroundsFgSubtile,lineHeight:1.5},children:[l,s&&G.jsx(yt,{component:"span",sx:{display:"inline-block",ml:.5,fontSize:"13px",height:"16px",lineHeight:1,verticalAlign:"middle"},children:G.jsx(yt,{component:Zn,icon:eYe,sx:{verticalAlign:"middle"}})})]})}KR.propTypes={locale:ge.string,disableSwitchApp:ge.bool};KR.defaultProps={locale:"en",disableSwitchApp:!1};var YR={};Object.defineProperty(YR,"__esModule",{value:!0});var fQ=YR.default=void 0;rYe(z);var r5=G;function rYe(e){return e&&e.__esModule?e:{default:e}}function QF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QF(Object(n),!0).forEach(function(r){iYe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iYe(e,t,n){return t=aYe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aYe(e){var t=oYe(e,"string");return typeof t=="symbol"?t:String(t)}function oYe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZR=function(t){return(0,r5.jsxs)("svg",eU(eU({},t),{},{children:[(0,r5.jsx)("path",{d:"M7.366.646L8.46 0h3.981v11.96H8.564a.381.381 0 0 1-.194-.053L4.18 9.431V2.53l.508-.3.893.528-.508.3v5.845L8.7 11.046h2.85V.914h-2.85l-.44.26-.893-.528z",fill:"color(display-p3 .4196 .7412 .9961)"}),(0,r5.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.868 8.903V3.057L4.242.915H1.393v10.132h2.85l.44-.26.893.527-1.095.647H.5V0h3.981l4.28 2.53v6.9l-.506.3-.893-.528.506-.299z",fill:"color(display-p3 .2706 .5961 .9804)"})]}))};ZR.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};ZR.displayName="did-logo-colorful";fQ=YR.default=ZR;function sYe({...e}){return G.jsxs(yt,{...e,sx:{display:"flex",alignItems:"center",color:Rt.foregroundsFgMuted,gap:.5,...e.sx},children:[G.jsx(fQ,{}),"Power By DID Connect"]})}function XR({children:e,initHeight:t,slotProps:n}){var s;const[r,i]=z.useState(t),a=z.useRef(null),o=$m(a);return z.useEffect(()=>{o!=null&&o.height&&i(o.height)},[o==null?void 0:o.height,r]),G.jsx(yt,{...n==null?void 0:n.root,sx:{height:r,overflow:"hidden",transition:"height 0.2s ease-in-out",...(s=n==null?void 0:n.root)==null?void 0:s.sx},children:G.jsx(yt,{...n==null?void 0:n.container,ref:a,children:e})})}XR.propTypes={initHeight:ge.number,children:ge.node.isRequired,slotProps:ge.object};XR.defaultProps={initHeight:0,slotProps:{}};const jy="did-connect",tU="quick-connect";function QR({mode:e,isFullScreen:t,hideCloseButton:n,...r}){var Q;const i=Di({showTab:jy}),{connectState:a,blocklet:o}=zl(),{extraContent:s,onSuccess:l,action:f,onClose:c,options:d}=r,p=en(()=>(a==null?void 0:a.sourceAppPid)||UK(),[a==null?void 0:a.sourceAppPid]),{quickLoginEnabled:g,loading:y,userSessions:b,loginUserSession:R,refresh:A}=cQ({appPid:p,loginAppPid:o==null?void 0:o.appPid,sourceAppPid:a==null?void 0:a.sourceAppPid,autoFetch:["login"].includes(f)}),$=en(()=>{var P;return((P=r==null?void 0:r.messages)==null?void 0:P.title)||fVe},[(Q=r==null?void 0:r.messages)==null?void 0:Q.title]),D=_t(async(...P)=>{var E,S,C;const T=await R(...P),[u]=P,h={};u&&((E=u==null?void 0:u.user)!=null&&E.did&&(h.connected_did=u.user.did),(S=u==null?void 0:u.user)!=null&&S.pk&&(h.connected_pk=u.user.pk),(C=u==null?void 0:u.extra)!=null&&C.walletOS&&(h.connected_wallet_os=u.extra.walletOS)),await l({...T,encrypted:!1},I=>I,h)});z.useEffect(()=>{(d==null?void 0:d.showQuickConnect)!==!1&&!y&&g&&(i.showTab=tU)},[y,g,d==null?void 0:d.showQuickConnect]);const M=VOe(y,{wait:100}),j=_t(()=>{i.showTab=jy}),U=_t(()=>{i.showTab=tU}),V=en(()=>i.showTab===jy||!g,[i.showTab,g]),X=en(()=>{let P=!0;return(y||M)&&(P=!1),g||(P=!1),d.showQuickConnect===!1&&(P=!1),i.showTab!==jy&&(P=!1),P},[g,i.showTab,y,M]),ie=en(()=>G.jsx(yt,{onClick:c,sx:{fontSize:"1.5rem",width:"1.5rem",height:"1.5rem",cursor:"pointer",color:Rt.foregroundsFgSubtile,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:G.jsx(Zn,{icon:PX})}),[c]);let le=null;return y||M?le=G.jsx(IR,{}):V?le=G.jsx(WR,{...r,onClose:c}):le=G.jsx(NR,{userSessions:b,onLogin:D,onRetry:A,onClose:c,messages:r.messages,onLoginAnother:j}),G.jsxs(fIe,{variant:"outlined",sx:{color:Rt.foregroundsFgBase,backgroundColor:"white",borderRadius:2,borderColor:Rt.strokeBorderBase,height:"100%",display:"flex",flexDirection:"column"},children:[G.jsx(OIe,{title:G.jsxs(G.Fragment,{children:[X&&G.jsx(zu,{size:"small",disabled:a.status!=="created",onClick:U,disableRipple:!0,sx:{fontSize:"0.75em"},children:G.jsx(Zn,{icon:Vqe,color:Rt.textMuted})}),$]}),titleTypographyProps:{display:"flex",alignItems:"center",variant:"h6",lineHeight:"28px",fontWeight:600},action:n?null:ie,sx:{px:2.5,".MuiCardHeader-action":{margin:0,alignSelf:"center"}}}),G.jsx(wIe,{sx:{borderTop:`1px solid ${Rt.strokeBorderBase}`,borderBottom:`1px solid ${Rt.strokeBorderBase}`,flex:1,verticalAlign:"middle",overflow:"auto",p:2.5,position:"relative","&::after":{content:'""',height:"100%",verticalAlign:"middle",display:"inline-block",width:0}},children:G.jsxs(XR,{slotProps:{root:{sx:{display:"inline-block",width:"100%",verticalAlign:"middle"}},container:{sx:{display:"flex",flexDirection:"column",gap:1}}},children:[G.jsx(KR,{locale:r.locale,disableSwitchApp:r.disableSwitchApp}),le,s?G.jsx(yt,{children:s}):null]})}),G.jsx(yIe,{sx:{py:2,px:2.5,justifyContent:"center"},children:G.jsx(sYe,{sx:{fontSize:"12px"}})})]})}QR.propTypes={action:ge.string.isRequired,onSuccess:ge.func,onClose:ge.func,messages:ge.object,extraContent:ge.any,disableSwitchApp:ge.bool,mode:ge.oneOf(["fullScreen","dialog","normal"]),isFullScreen:ge.bool,options:ge.object,hideCloseButton:ge.bool,locale:ge.string};QR.defaultProps={onSuccess:Bn,onClose:Bn,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!0,locale:"en"};function e$(e){const{checkFn:t,extraParams:n,blocklet:r,action:i,locale:a}=e;if(typeof t!="function")throw new Error("Cannot initialize did connect component without a fetchFn");return G.jsx(kR,{blocklet:r,action:i,locale:a,extraParams:n,sx:{position:"relative",width:"100%",height:"100%",lineHeight:1.2,fontFamily:"Inter",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:G.jsx(QR,{...e})})}e$.propTypes={checkFn:ge.func.isRequired,extraParams:ge.object,blocklet:ge.object.isRequired,action:ge.string.isRequired,locale:ge.string};e$.defaultProps={extraParams:{},locale:"en"};const lYe=lGe(Gqe(fGe(e$))),uYe=z.forwardRef((e,t)=>{const{api:n}=z.useContext(hh),r={containerEl:null,popup:!0,checkFn:(n==null?void 0:n.get)||Bn,onSuccess:()=>{setTimeout(()=>{f()},2e3)},messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},i=Di({show:!1,...xl(r)}),[a,o]=z.useState({}),s=_t(d=>{const{containerEl:p,checkFn:g,popup:y,onSuccess:b,messages:R,...A}=xl(d);typeof g=="function"&&(i.checkFn=g),typeof b=="function"&&(i.onSuccess=(...$)=>{b(...$),setTimeout(()=>{f()},2e3)}),y!==void 0&&(i.popup=y),R!==void 0&&(i.messages=R),p!==void 0&&(i.containerEl=p),o(A),i.show=!0}),l=_t(()=>{const d=xl(r);Object.keys(d).forEach(p=>{i[p]=d[p]})}),f=_t(()=>{i.show=!1,l()});z.useImperativeHandle(t,()=>({open:s,close:f}),[s,f]);const c=G.jsx(lYe,{open:!0,popup:i.popup,messages:i.messages,onClose:f,onSuccess:i.onSuccess,checkFn:i.checkFn,...a});return i.containerEl?Z1.createPortal(c,i.containerEl):i.show&&c});function cYe(){const e=z.useRef(null),t=_t((...o)=>{var s;(s=e.current)==null||s.open(...o)}),n=_t(async(o={},{baseUrl:s,locale:l="en",blocklet:f=globalThis==null?void 0:globalThis.blocklet}={})=>{var R;if(ua(s)){const A=Hm(),$=dh();s=A?$.appUrl:window.location.origin}const{onSuccess:c,onClose:d,onError:p,...g}=o;if(!((R=g==null?void 0:g.extraParams)!=null&&R.provider))throw Lc(p)&&p("Must have extraParams.provider"),new Error("Must have extraParams.provider");g!=null&&g.prefix||(g.prefix=window.location.origin+On(f==null?void 0:f.prefix,fR));const y=new URLSearchParams;y.set("params",btoa(encodeURIComponent(JSON.stringify(g)))),y.set("appPid",f==null?void 0:f.appPid),y.set("locale",l);const b=jqe(On(s||"/",Vi,`/connect?${y.toString()}`));try{const A=await Jqe({popup:b,closeTimeout:2e3});return Lc(c)&&c({...A,encrypted:!1}),{...A,encrypted:!1}}catch(A){throw A.message==="Popup closed"?Lc(d)&&d():Lc(p)&&p(A),A}}),r=_t((...o)=>{var s;(s=e.current)==null||s.close(...o)}),i=en(()=>G.jsx(uYe,{ref:e})),a=en(()=>({open:t,close:r,openPopup:n}));return{connectHolder:i,connectApi:a}}const ei={LOGIN:Symbol("login"),CANCEL_LOGIN:Symbol("cancelLogin"),LOGOUT:Symbol("logout"),SWITCH_PROFILE:Symbol("switchProfile"),CANCEL_SWITCH_PROFILE:Symbol("cancelSwitchProfile"),SWITCH_PASSPORT:Symbol("switchPassport"),CANCEL_SWITCH_PASSPORT:Symbol("cancelSwitchPassport"),BIND_WALLET:Symbol("bindWallet"),CANCEL_BIND_WALLET:Symbol("cancelBindWallet")},pc={login:{en:{title:"Connect DID Wallet",scan:"Scan following qrcode to connect your DID Wallet",confirm:"Confirm connection in your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包",scan:"请使用 DID 钱包扫码下面的二维码完成连接",confirm:"在 DID 钱包中确认连接",success:"连接成功"}},"switch-specified-did":{en:{title:"Switch DID",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"你需要切换账号至 {did} 才能完成后续的操作",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-did":{en:{title:"Switch DID",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"请使用 DID 钱包扫码下面的二维码完成切换",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-profile":{en:{title:"Switch Profile",scan:"Scan following qrcode with DID Wallet to switch profile",confirm:"Select profile in your DID Wallet",success:"Profile updated"},zh:{title:"切换个人档案",scan:"请使用 DID 钱包扫码下面的二维码来切换个人档案",confirm:"在 DID 钱包中选择个人档案",success:"个人档案已经更新"}},"switch-passport":{en:{title:"Switch Passport",scan:"Scan following qrcode with DID Wallet to switch passport",confirm:"Select passport in your DID Wallet",success:"Passport and session updated"},zh:{title:"切换通行证",scan:"请使用 DID 钱包扫码二维码来切换通行证",confirm:"在 DID 钱包中选择通行证",success:"通行证和会话已经更新"}},"bind-wallet":{en:{title:"Connect DID Wallet for enhanced security",scan:"Scan following qrcode with DID Wallet to connect your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包获得更高的安全性",scan:"请使用 DID 钱包扫码二维码来连接您的 DID 钱包",success:"连接成功"}},exchangePassport:{en:{action:"Exchange Passport with NFT",tooltip:"Exchange passport if you owns any required NFT"},zh:{action:"兑换通行证",tooltip:"通过出示你持有的特定 NFT 来获取通行证"}},lostPassport:{en:{action:"Lost Passport"},zh:{action:"找回通行证"}},switchAccountDialog:{en:{confirm:"Switch",title:"Switch Account",description:"Please switch accounts to complete next action",currentAccount:"Current account",nextAccount:"Account to be switched"},zh:{confirm:"切换",title:"切换账号",description:"请切换账号来完成后续的操作",currentAccount:"当前登录的账户",nextAccount:"即将切换的账户"}}};var dx={exports:{}};const fYe="2.0.0",dQ=256,dYe=Number.MAX_SAFE_INTEGER||9007199254740991,pYe=16,hYe=dQ-6,mYe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var tT={MAX_LENGTH:dQ,MAX_SAFE_COMPONENT_LENGTH:pYe,MAX_SAFE_BUILD_LENGTH:hYe,MAX_SAFE_INTEGER:dYe,RELEASE_TYPES:mYe,SEMVER_SPEC_VERSION:fYe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},i5={};const gYe=typeof Xt=="object"&&i5&&i5.NODE_DEBUG&&/\bsemver\b/i.test(i5.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var nT=gYe;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=tT,a=nT;t=e.exports={};const o=t.re=[],s=t.safeRe=[],l=t.src=[],f=t.t={};let c=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[d,r]],g=b=>{for(const[R,A]of p)b=b.split(`${R}*`).join(`${R}{0,${A}}`).split(`${R}+`).join(`${R}{1,${A}}`);return b},y=(b,R,A)=>{const $=g(R),D=c++;a(b,D,R),f[b]=D,l[D]=R,o[D]=new RegExp(R,A?"g":void 0),s[D]=new RegExp($,A?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),y("MAINVERSION",`(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${l[f.NUMERICIDENTIFIER]}|${l[f.NONNUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${l[f.NUMERICIDENTIFIERLOOSE]}|${l[f.NONNUMERICIDENTIFIER]})`),y("PRERELEASE",`(?:-(${l[f.PRERELEASEIDENTIFIER]}(?:\\.${l[f.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${l[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[f.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${d}+`),y("BUILD",`(?:\\+(${l[f.BUILDIDENTIFIER]}(?:\\.${l[f.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${l[f.MAINVERSION]}${l[f.PRERELEASE]}?${l[f.BUILD]}?`),y("FULL",`^${l[f.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${l[f.MAINVERSIONLOOSE]}${l[f.PRERELEASELOOSE]}?${l[f.BUILD]}?`),y("LOOSE",`^${l[f.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${l[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${l[f.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:${l[f.PRERELEASE]})?${l[f.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:${l[f.PRERELEASELOOSE]})?${l[f.BUILD]}?)?)?`),y("XRANGE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAINLOOSE]}$`),y("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),y("COERCERTL",l[f.COERCE],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${l[f.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",y("TILDE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${l[f.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",y("CARET",`^${l[f.LONECARET]}${l[f.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${l[f.LONECARET]}${l[f.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${l[f.GTLT]}\\s*(${l[f.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]}|${l[f.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${l[f.XRANGEPLAIN]})\\s+-\\s+(${l[f.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${l[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[f.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(dx,dx.exports);var jm=dx.exports;const yYe=Object.freeze({loose:!0}),vYe=Object.freeze({}),bYe=e=>e?typeof e!="object"?yYe:e:vYe;var t$=bYe;const nU=/^[0-9]+$/,pQ=(e,t)=>{const n=nU.test(e),r=nU.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},EYe=(e,t)=>pQ(t,e);var hQ={compareIdentifiers:pQ,rcompareIdentifiers:EYe};const Jy=nT,{MAX_LENGTH:rU,MAX_SAFE_INTEGER:Vy}=tT,{safeRe:iU,t:aU}=jm,TYe=t$,{compareIdentifiers:ud}=hQ;let AYe=class bs{constructor(t,n){if(n=TYe(n),t instanceof bs){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>rU)throw new TypeError(`version is longer than ${rU} characters`);Jy("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?iU[aU.LOOSE]:iU[aU.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Vy||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Vy||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Vy||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const a=+i;if(a>=0&&a<Vy)return a}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Jy("SemVer.compare",this.version,this.options,t),!(t instanceof bs)){if(typeof t=="string"&&t===this.version)return 0;t=new bs(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof bs||(t=new bs(t,this.options)),ud(this.major,t.major)||ud(this.minor,t.minor)||ud(this.patch,t.patch)}comparePre(t){if(t instanceof bs||(t=new bs(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],i=t.prerelease[n];if(Jy("prerelease compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return ud(r,i)}while(++n)}compareBuild(t){t instanceof bs||(t=new bs(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(Jy("prerelease compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return ud(r,i)}while(++n)}inc(t,n,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const i=Number(r)?1:0;if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(n){let a=[n,i];r===!1&&(a=[n]),ud(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var ia=AYe;const oU=ia,wYe=(e,t,n=!1)=>{if(e instanceof oU)return e;try{return new oU(e,t)}catch(r){if(!n)return null;throw r}};var mh=wYe;const SYe=mh,_Ye=(e,t)=>{const n=SYe(e,t);return n?n.version:null};var xYe=_Ye;const CYe=mh,RYe=(e,t)=>{const n=CYe(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var $Ye=RYe;const sU=ia,IYe=(e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new sU(e instanceof sU?e.version:e,n).inc(t,r,i).version}catch{return null}};var kYe=IYe;const lU=mh,DYe=(e,t)=>{const n=lU(e,null,!0),r=lU(t,null,!0),i=n.compare(r);if(i===0)return null;const a=i>0,o=a?n:r,s=a?r:n,l=!!o.prerelease.length;if(!!s.prerelease.length&&!l)return!s.patch&&!s.minor?"major":o.patch?"patch":o.minor?"minor":"major";const c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};var OYe=DYe;const LYe=ia,PYe=(e,t)=>new LYe(e,t).major;var MYe=PYe;const BYe=ia,NYe=(e,t)=>new BYe(e,t).minor;var FYe=NYe;const UYe=ia,HYe=(e,t)=>new UYe(e,t).patch;var jYe=HYe;const JYe=mh,VYe=(e,t)=>{const n=JYe(e,t);return n&&n.prerelease.length?n.prerelease:null};var qYe=VYe;const uU=ia,GYe=(e,t,n)=>new uU(e,n).compare(new uU(t,n));var fs=GYe;const WYe=fs,zYe=(e,t,n)=>WYe(t,e,n);var KYe=zYe;const YYe=fs,ZYe=(e,t)=>YYe(e,t,!0);var XYe=ZYe;const cU=ia,QYe=(e,t,n)=>{const r=new cU(e,n),i=new cU(t,n);return r.compare(i)||r.compareBuild(i)};var n$=QYe;const eZe=n$,tZe=(e,t)=>e.sort((n,r)=>eZe(n,r,t));var nZe=tZe;const rZe=n$,iZe=(e,t)=>e.sort((n,r)=>rZe(r,n,t));var aZe=iZe;const oZe=fs,sZe=(e,t,n)=>oZe(e,t,n)>0;var rT=sZe;const lZe=fs,uZe=(e,t,n)=>lZe(e,t,n)<0;var r$=uZe;const cZe=fs,fZe=(e,t,n)=>cZe(e,t,n)===0;var mQ=fZe;const dZe=fs,pZe=(e,t,n)=>dZe(e,t,n)!==0;var gQ=pZe;const hZe=fs,mZe=(e,t,n)=>hZe(e,t,n)>=0;var i$=mZe;const gZe=fs,yZe=(e,t,n)=>gZe(e,t,n)<=0;var a$=yZe;const vZe=mQ,bZe=gQ,EZe=rT,TZe=i$,AZe=r$,wZe=a$,SZe=(e,t,n,r)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return vZe(e,n,r);case"!=":return bZe(e,n,r);case">":return EZe(e,n,r);case">=":return TZe(e,n,r);case"<":return AZe(e,n,r);case"<=":return wZe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var yQ=SZe;const _Ze=ia,xZe=mh,{safeRe:qy,t:Gy}=jm,CZe=(e,t)=>{if(e instanceof _Ze)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(qy[Gy.COERCE]);else{let r;for(;(r=qy[Gy.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),qy[Gy.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;qy[Gy.COERCERTL].lastIndex=-1}return n===null?null:xZe(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var RZe=CZe,a5,fU;function $Ze(){return fU||(fU=1,a5=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),a5}var IZe=Vn;Vn.Node=ff;Vn.create=Vn;function Vn(e){var t=this;if(t instanceof Vn||(t=new Vn),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}Vn.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t};Vn.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};Vn.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};Vn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)DZe(this,arguments[e]);return this.length};Vn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)OZe(this,arguments[e]);return this.length};Vn.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};Vn.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};Vn.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;n!==null;r++)e.call(t,n.value,r,this),n=n.next};Vn.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;n!==null;r--)e.call(t,n.value,r,this),n=n.prev};Vn.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value};Vn.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value};Vn.prototype.map=function(e,t){t=t||this;for(var n=new Vn,r=this.head;r!==null;)n.push(e.call(t,r.value,this)),r=r.next;return n};Vn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new Vn,r=this.tail;r!==null;)n.push(e.call(t,r.value,this)),r=r.prev;return n};Vn.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;r!==null;i++)n=e(n,r.value,i),r=r.next;return n};Vn.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;r!==null;i--)n=e(n,r.value,i),r=r.prev;return n};Vn.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e};Vn.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e};Vn.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new Vn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,i=this.head;i!==null&&r<e;r++)i=i.next;for(;i!==null&&r<t;r++,i=i.next)n.push(i.value);return n};Vn.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new Vn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,i=this.tail;i!==null&&r>t;r--)i=i.prev;for(;i!==null&&r>e;r--,i=i.prev)n.push(i.value);return n};Vn.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,i=this.head;i!==null&&r<e;r++)i=i.next;for(var a=[],r=0;i&&r<t;r++)a.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var r=0;r<n.length;r++)i=kZe(this,i,n[r]);return a};Vn.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};function kZe(e,t,n){var r=t===e.head?new ff(n,null,t,e):new ff(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function DZe(e,t){e.tail=new ff(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function OZe(e,t){e.head=new ff(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function ff(e,t,n,r){if(!(this instanceof ff))return new ff(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{$Ze()(Vn)}catch{}const LZe=IZe,_c=Symbol("max"),gl=Symbol("length"),cd=Symbol("lengthCalculator"),K0=Symbol("allowStale"),Nc=Symbol("maxAge"),hl=Symbol("dispose"),dU=Symbol("noDisposeOnSet"),ci=Symbol("lruList"),Go=Symbol("cache"),vQ=Symbol("updateAgeOnGet"),o5=()=>1;class PZe{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[_c]=t.max||1/0;const n=t.length||o5;if(this[cd]=typeof n!="function"?o5:n,this[K0]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Nc]=t.maxAge||0,this[hl]=t.dispose,this[dU]=t.noDisposeOnSet||!1,this[vQ]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[_c]=t||1/0,u0(this)}get max(){return this[_c]}set allowStale(t){this[K0]=!!t}get allowStale(){return this[K0]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Nc]=t,u0(this)}get maxAge(){return this[Nc]}set lengthCalculator(t){typeof t!="function"&&(t=o5),t!==this[cd]&&(this[cd]=t,this[gl]=0,this[ci].forEach(n=>{n.length=this[cd](n.value,n.key),this[gl]+=n.length})),u0(this)}get lengthCalculator(){return this[cd]}get length(){return this[gl]}get itemCount(){return this[ci].length}rforEach(t,n){n=n||this;for(let r=this[ci].tail;r!==null;){const i=r.prev;pU(this,t,r,n),r=i}}forEach(t,n){n=n||this;for(let r=this[ci].head;r!==null;){const i=r.next;pU(this,t,r,n),r=i}}keys(){return this[ci].toArray().map(t=>t.key)}values(){return this[ci].toArray().map(t=>t.value)}reset(){this[hl]&&this[ci]&&this[ci].length&&this[ci].forEach(t=>this[hl](t.key,t.value)),this[Go]=new Map,this[ci]=new LZe,this[gl]=0}dump(){return this[ci].map(t=>y2(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[ci]}set(t,n,r){if(r=r||this[Nc],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const i=r?Date.now():0,a=this[cd](n,t);if(this[Go].has(t)){if(a>this[_c])return np(this,this[Go].get(t)),!1;const l=this[Go].get(t).value;return this[hl]&&(this[dU]||this[hl](t,l.value)),l.now=i,l.maxAge=r,l.value=n,this[gl]+=a-l.length,l.length=a,this.get(t),u0(this),!0}const o=new MZe(t,n,a,i,r);return o.length>this[_c]?(this[hl]&&this[hl](t,n),!1):(this[gl]+=o.length,this[ci].unshift(o),this[Go].set(t,this[ci].head),u0(this),!0)}has(t){if(!this[Go].has(t))return!1;const n=this[Go].get(t).value;return!y2(this,n)}get(t){return s5(this,t,!0)}peek(t){return s5(this,t,!1)}pop(){const t=this[ci].tail;return t?(np(this,t),t.value):null}del(t){np(this,this[Go].get(t))}load(t){this.reset();const n=Date.now();for(let r=t.length-1;r>=0;r--){const i=t[r],a=i.e||0;if(a===0)this.set(i.k,i.v);else{const o=a-n;o>0&&this.set(i.k,i.v,o)}}}prune(){this[Go].forEach((t,n)=>s5(this,n,!1))}}const s5=(e,t,n)=>{const r=e[Go].get(t);if(r){const i=r.value;if(y2(e,i)){if(np(e,r),!e[K0])return}else n&&(e[vQ]&&(r.value.now=Date.now()),e[ci].unshiftNode(r));return i.value}},y2=(e,t)=>{if(!t||!t.maxAge&&!e[Nc])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Nc]&&n>e[Nc]},u0=e=>{if(e[gl]>e[_c])for(let t=e[ci].tail;e[gl]>e[_c]&&t!==null;){const n=t.prev;np(e,t),t=n}},np=(e,t)=>{if(t){const n=t.value;e[hl]&&e[hl](n.key,n.value),e[gl]-=n.length,e[Go].delete(n.key),e[ci].removeNode(t)}};class MZe{constructor(t,n,r,i,a){this.key=t,this.value=n,this.length=r,this.now=i,this.maxAge=a||0}}const pU=(e,t,n,r)=>{let i=n.value;y2(e,i)&&(np(e,n),e[K0]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var BZe=PZe,l5,hU;function ds(){if(hU)return l5;hU=1;class e{constructor(u,h){if(h=r(h),u instanceof e)return u.loose===!!h.loose&&u.includePrerelease===!!h.includePrerelease?u:new e(u.raw,h);if(u instanceof i)return this.raw=u.value,this.set=[[u]],this.format(),this;if(this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease,this.raw=u.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(E=>this.parseRange(E.trim())).filter(E=>E.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const E=this.set[0];if(this.set=this.set.filter(S=>!y(S[0])),this.set.length===0)this.set=[E];else if(this.set.length>1){for(const S of this.set)if(S.length===1&&b(S[0])){this.set=[S];break}}}this.format()}format(){return this.range=this.set.map(u=>u.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(u){const E=((this.options.includePrerelease&&p)|(this.options.loose&&g))+":"+u,S=n.get(E);if(S)return S;const C=this.options.loose,I=C?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];u=u.replace(I,Q(this.options.includePrerelease)),a("hyphen replace",u),u=u.replace(s[l.COMPARATORTRIM],f),a("comparator trim",u),u=u.replace(s[l.TILDETRIM],c),a("tilde trim",u),u=u.replace(s[l.CARETTRIM],d),a("caret trim",u);let x=u.split(" ").map(ne=>A(ne,this.options)).join(" ").split(/\s+/).map(ne=>le(ne,this.options));C&&(x=x.filter(ne=>(a("loose invalid filter",ne,this.options),!!ne.match(s[l.COMPARATORLOOSE])))),a("range list",x);const _=new Map,v=x.map(ne=>new i(ne,this.options));for(const ne of v){if(y(ne))return[ne];_.set(ne.value,ne)}_.size>1&&_.has("")&&_.delete("");const k=[..._.values()];return n.set(E,k),k}intersects(u,h){if(!(u instanceof e))throw new TypeError("a Range is required");return this.set.some(E=>R(E,h)&&u.set.some(S=>R(S,h)&&E.every(C=>S.every(I=>C.intersects(I,h)))))}test(u){if(!u)return!1;if(typeof u=="string")try{u=new o(u,this.options)}catch{return!1}for(let h=0;h<this.set.length;h++)if(P(this.set[h],u,this.options))return!0;return!1}}l5=e;const t=BZe,n=new t({max:1e3}),r=t$,i=iT(),a=nT,o=ia,{safeRe:s,t:l,comparatorTrimReplace:f,tildeTrimReplace:c,caretTrimReplace:d}=jm,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:g}=tT,y=T=>T.value==="<0.0.0-0",b=T=>T.value==="",R=(T,u)=>{let h=!0;const E=T.slice();let S=E.pop();for(;h&&E.length;)h=E.every(C=>S.intersects(C,u)),S=E.pop();return h},A=(T,u)=>(a("comp",T,u),T=j(T,u),a("caret",T),T=D(T,u),a("tildes",T),T=V(T,u),a("xrange",T),T=ie(T,u),a("stars",T),T),$=T=>!T||T.toLowerCase()==="x"||T==="*",D=(T,u)=>T.trim().split(/\s+/).map(h=>M(h,u)).join(" "),M=(T,u)=>{const h=u.loose?s[l.TILDELOOSE]:s[l.TILDE];return T.replace(h,(E,S,C,I,x)=>{a("tilde",T,E,S,C,I,x);let _;return $(S)?_="":$(C)?_=`>=${S}.0.0 <${+S+1}.0.0-0`:$(I)?_=`>=${S}.${C}.0 <${S}.${+C+1}.0-0`:x?(a("replaceTilde pr",x),_=`>=${S}.${C}.${I}-${x} <${S}.${+C+1}.0-0`):_=`>=${S}.${C}.${I} <${S}.${+C+1}.0-0`,a("tilde return",_),_})},j=(T,u)=>T.trim().split(/\s+/).map(h=>U(h,u)).join(" "),U=(T,u)=>{a("caret",T,u);const h=u.loose?s[l.CARETLOOSE]:s[l.CARET],E=u.includePrerelease?"-0":"";return T.replace(h,(S,C,I,x,_)=>{a("caret",T,S,C,I,x,_);let v;return $(C)?v="":$(I)?v=`>=${C}.0.0${E} <${+C+1}.0.0-0`:$(x)?C==="0"?v=`>=${C}.${I}.0${E} <${C}.${+I+1}.0-0`:v=`>=${C}.${I}.0${E} <${+C+1}.0.0-0`:_?(a("replaceCaret pr",_),C==="0"?I==="0"?v=`>=${C}.${I}.${x}-${_} <${C}.${I}.${+x+1}-0`:v=`>=${C}.${I}.${x}-${_} <${C}.${+I+1}.0-0`:v=`>=${C}.${I}.${x}-${_} <${+C+1}.0.0-0`):(a("no pr"),C==="0"?I==="0"?v=`>=${C}.${I}.${x}${E} <${C}.${I}.${+x+1}-0`:v=`>=${C}.${I}.${x}${E} <${C}.${+I+1}.0-0`:v=`>=${C}.${I}.${x} <${+C+1}.0.0-0`),a("caret return",v),v})},V=(T,u)=>(a("replaceXRanges",T,u),T.split(/\s+/).map(h=>X(h,u)).join(" ")),X=(T,u)=>{T=T.trim();const h=u.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return T.replace(h,(E,S,C,I,x,_)=>{a("xRange",T,E,S,C,I,x,_);const v=$(C),k=v||$(I),ne=k||$(x),N=ne;return S==="="&&N&&(S=""),_=u.includePrerelease?"-0":"",v?S===">"||S==="<"?E="<0.0.0-0":E="*":S&&N?(k&&(I=0),x=0,S===">"?(S=">=",k?(C=+C+1,I=0,x=0):(I=+I+1,x=0)):S==="<="&&(S="<",k?C=+C+1:I=+I+1),S==="<"&&(_="-0"),E=`${S+C}.${I}.${x}${_}`):k?E=`>=${C}.0.0${_} <${+C+1}.0.0-0`:ne&&(E=`>=${C}.${I}.0${_} <${C}.${+I+1}.0-0`),a("xRange return",E),E})},ie=(T,u)=>(a("replaceStars",T,u),T.trim().replace(s[l.STAR],"")),le=(T,u)=>(a("replaceGTE0",T,u),T.trim().replace(s[u.includePrerelease?l.GTE0PRE:l.GTE0],"")),Q=T=>(u,h,E,S,C,I,x,_,v,k,ne,N,q)=>($(E)?h="":$(S)?h=`>=${E}.0.0${T?"-0":""}`:$(C)?h=`>=${E}.${S}.0${T?"-0":""}`:I?h=`>=${h}`:h=`>=${h}${T?"-0":""}`,$(v)?_="":$(k)?_=`<${+v+1}.0.0-0`:$(ne)?_=`<${v}.${+k+1}.0-0`:N?_=`<=${v}.${k}.${ne}-${N}`:T?_=`<${v}.${k}.${+ne+1}-0`:_=`<=${_}`,`${h} ${_}`.trim()),P=(T,u,h)=>{for(let E=0;E<T.length;E++)if(!T[E].test(u))return!1;if(u.prerelease.length&&!h.includePrerelease){for(let E=0;E<T.length;E++)if(a(T[E].semver),T[E].semver!==i.ANY&&T[E].semver.prerelease.length>0){const S=T[E].semver;if(S.major===u.major&&S.minor===u.minor&&S.patch===u.patch)return!0}return!1}return!0};return l5}var u5,mU;function iT(){if(mU)return u5;mU=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=n(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),o("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(c){const d=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],p=c.match(d);if(!p)throw new TypeError(`Invalid comparator: ${c}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new s(p[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(o("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new s(c,this.options)}catch{return!1}return a(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new l(this.value,d).test(c.semver):(d=n(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||a(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||a(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}u5=t;const n=t$,{safeRe:r,t:i}=jm,a=yQ,o=nT,s=ia,l=ds();return u5}const NZe=ds(),FZe=(e,t,n)=>{try{t=new NZe(t,n)}catch{return!1}return t.test(e)};var aT=FZe;const UZe=ds(),HZe=(e,t)=>new UZe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var jZe=HZe;const JZe=ia,VZe=ds(),qZe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new VZe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===-1)&&(r=o,i=new JZe(r,n))}),r};var GZe=qZe;const WZe=ia,zZe=ds(),KZe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new zZe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===1)&&(r=o,i=new WZe(r,n))}),r};var YZe=KZe;const c5=ia,ZZe=ds(),gU=rT,XZe=(e,t)=>{e=new ZZe(e,t);let n=new c5("0.0.0");if(e.test(n)||(n=new c5("0.0.0-0"),e.test(n)))return n;n=null;for(let r=0;r<e.set.length;++r){const i=e.set[r];let a=null;i.forEach(o=>{const s=new c5(o.semver.version);switch(o.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!a||gU(s,a))&&(a=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),a&&(!n||gU(n,a))&&(n=a)}return n&&e.test(n)?n:null};var QZe=XZe;const eXe=ds(),tXe=(e,t)=>{try{return new eXe(e,t).range||"*"}catch{return null}};var nXe=tXe;const rXe=ia,bQ=iT(),{ANY:iXe}=bQ,aXe=ds(),oXe=aT,yU=rT,vU=r$,sXe=a$,lXe=i$,uXe=(e,t,n,r)=>{e=new rXe(e,r),t=new aXe(t,r);let i,a,o,s,l;switch(n){case">":i=yU,a=sXe,o=vU,s=">",l=">=";break;case"<":i=vU,a=lXe,o=yU,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(oXe(e,t,r))return!1;for(let f=0;f<t.set.length;++f){const c=t.set[f];let d=null,p=null;if(c.forEach(g=>{g.semver===iXe&&(g=new bQ(">=0.0.0")),d=d||g,p=p||g,i(g.semver,d.semver,r)?d=g:o(g.semver,p.semver,r)&&(p=g)}),d.operator===s||d.operator===l||(!p.operator||p.operator===s)&&a(e,p.semver))return!1;if(p.operator===l&&o(e,p.semver))return!1}return!0};var o$=uXe;const cXe=o$,fXe=(e,t,n)=>cXe(e,t,">",n);var dXe=fXe;const pXe=o$,hXe=(e,t,n)=>pXe(e,t,"<",n);var mXe=hXe;const bU=ds(),gXe=(e,t,n)=>(e=new bU(e,n),t=new bU(t,n),e.intersects(t,n));var yXe=gXe;const vXe=aT,bXe=fs;var EXe=(e,t,n)=>{const r=[];let i=null,a=null;const o=e.sort((c,d)=>bXe(c,d,n));for(const c of o)vXe(c,t,n)?(a=c,i||(i=c)):(a&&r.push([i,a]),a=null,i=null);i&&r.push([i,null]);const s=[];for(const[c,d]of r)c===d?s.push(c):!d&&c===o[0]?s.push("*"):d?c===o[0]?s.push(`<=${d}`):s.push(`${c} - ${d}`):s.push(`>=${c}`);const l=s.join(" || "),f=typeof t.raw=="string"?t.raw:String(t);return l.length<f.length?l:t};const EU=ds(),s$=iT(),{ANY:f5}=s$,c0=aT,l$=fs,TXe=(e,t,n={})=>{if(e===t)return!0;e=new EU(e,n),t=new EU(t,n);let r=!1;e:for(const i of e.set){for(const a of t.set){const o=wXe(i,a,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},AXe=[new s$(">=0.0.0-0")],TU=[new s$(">=0.0.0")],wXe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===f5){if(t.length===1&&t[0].semver===f5)return!0;n.includePrerelease?e=AXe:e=TU}if(t.length===1&&t[0].semver===f5){if(n.includePrerelease)return!0;t=TU}const r=new Set;let i,a;for(const g of e)g.operator===">"||g.operator===">="?i=AU(i,g,n):g.operator==="<"||g.operator==="<="?a=wU(a,g,n):r.add(g.semver);if(r.size>1)return null;let o;if(i&&a){if(o=l$(i.semver,a.semver,n),o>0)return null;if(o===0&&(i.operator!==">="||a.operator!=="<="))return null}for(const g of r){if(i&&!c0(g,String(i),n)||a&&!c0(g,String(a),n))return null;for(const y of t)if(!c0(g,String(y),n))return!1;return!0}let s,l,f,c,d=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1,p=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1;d&&d.prerelease.length===1&&a.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const g of t){if(c=c||g.operator===">"||g.operator===">=",f=f||g.operator==="<"||g.operator==="<=",i){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator===">"||g.operator===">="){if(s=AU(i,g,n),s===g&&s!==i)return!1}else if(i.operator===">="&&!c0(i.semver,String(g),n))return!1}if(a){if(d&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===d.major&&g.semver.minor===d.minor&&g.semver.patch===d.patch&&(d=!1),g.operator==="<"||g.operator==="<="){if(l=wU(a,g,n),l===g&&l!==a)return!1}else if(a.operator==="<="&&!c0(a.semver,String(g),n))return!1}if(!g.operator&&(a||i)&&o!==0)return!1}return!(i&&f&&!a&&o!==0||a&&c&&!i&&o!==0||p||d)},AU=(e,t,n)=>{if(!e)return t;const r=l$(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},wU=(e,t,n)=>{if(!e)return t;const r=l$(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var SXe=TXe;const d5=jm,SU=tT,_Xe=ia,_U=hQ,xXe=mh,CXe=xYe,RXe=$Ye,$Xe=kYe,IXe=OYe,kXe=MYe,DXe=FYe,OXe=jYe,LXe=qYe,PXe=fs,MXe=KYe,BXe=XYe,NXe=n$,FXe=nZe,UXe=aZe,HXe=rT,jXe=r$,JXe=mQ,VXe=gQ,qXe=i$,GXe=a$,WXe=yQ,zXe=RZe,KXe=iT(),YXe=ds(),ZXe=aT,XXe=jZe,QXe=GZe,eQe=YZe,tQe=QZe,nQe=nXe,rQe=o$,iQe=dXe,aQe=mXe,oQe=yXe,sQe=EXe,lQe=SXe;var EQ={parse:xXe,valid:CXe,clean:RXe,inc:$Xe,diff:IXe,major:kXe,minor:DXe,patch:OXe,prerelease:LXe,compare:PXe,rcompare:MXe,compareLoose:BXe,compareBuild:NXe,sort:FXe,rsort:UXe,gt:HXe,lt:jXe,eq:JXe,neq:VXe,gte:qXe,lte:GXe,cmp:WXe,coerce:zXe,Comparator:KXe,Range:YXe,satisfies:ZXe,toComparators:XXe,maxSatisfying:QXe,minSatisfying:eQe,minVersion:tQe,validRange:nQe,outside:rQe,gtr:iQe,ltr:aQe,intersects:oQe,simplifyRange:sQe,subset:lQe,SemVer:_Xe,re:d5.re,src:d5.src,tokens:d5.t,SEMVER_SPEC_VERSION:SU.SEMVER_SPEC_VERSION,RELEASE_TYPES:SU.RELEASE_TYPES,compareIdentifiers:_U.compareIdentifiers,rcompareIdentifiers:_U.rcompareIdentifiers};const xU=Ut(EQ);async function TQ(...e){return new Promise((t,n)=>{sn(()=>import("./index-65ROwV_z.js").then(r=>r.i),__vite__mapDeps([])).then(r=>{r.call||(r=r.default),r.call(...e,i=>{try{const a=JSON.parse(i);if(a.code===0){const o=JSON.parse(a.data);t(o)}else n(new Error(a.error))}catch{t(i)}})}).catch(r=>{console.error("load dsbridge error",r)})})}const uQe=[`${Vi}/connect`,`${Vi}/login`,`${Vi}/invite`,`${Vi}/issue-passport`];async function cQe(){const e=(window==null?void 0:window.blocklet)||{},t=window.location.pathname,{componentId:n,CHAIN_TYPE:r="arcblock",appPid:i}=e;if(uQe.includes(t))return null;const a=$X();try{const o=`${window.location.origin}${Vi}/api/user/loginByWallet`;return await TQ("arcLogin",{target:o,chainType:r,appPid:i,componentId:n,apps:a.map(l=>{let f=l==null?void 0:l.appLogo;return Qb(f)||(f=On(l.appUrl,f)),{appName:l.appName,appPid:l.appPid,appUrl:l.appUrl,appLogo:f,sourceAppPid:l.sourceAppPid}})})}catch(o){return console.error(o),null}}async function fQe(){return await TQ("arcGetVisitorId")}function dQe({platform:e,version:t}={}){return!!(e==="ios"&&t&&xU.gte(t,"4.15.6")||e==="android"&&t&&xU.gte(t,"4.15.1"))}const{Provider:pQe,Consumer:CU}=hh,RU={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"};function hQe(e=uVe,t="ls",n={},r={}){var f;let i="/";(f=globalThis==null?void 0:globalThis.blocklet)!=null&&f.prefix&&(i=globalThis.blocklet.prefix),typeof r=="boolean"&&(r={appendAuthServicePrefix:r,extraParams:{}}),_Re(r,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:cVe});const a=kM(e,t,n),o=kM(r.refreshTokenStorageKey,"ls");function s(c){var Me,He;const{connectApi:d,connectHolder:p}=cYe(),g=km(),y=Di({extraParams:{},options:{},currentLocale:c.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof c.autoConnect=="boolean"?c.autoConnect:!!c.autoLogin},get prefix(){return r.appendAuthServicePrefix||c.appendAuthServicePrefix?On(Vi,c.prefix):c.prefix}}),b=Di({action:c.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:"",get locale(){return c.locale||y.currentLocale||oX()}}),{confirmApi:R,confirmHolder:A}=MPe(),$=en(()=>new CRe,[]),D=_t((xe,ke,Je)=>{const Oe={login:[ei.LOGIN,ei.CANCEL_LOGIN],"bind-wallet":[ei.BIND_WALLET,ei.CANCEL_BIND_WALLET],"switch-passport":[ei.SWITCH_PASSPORT,ei.CANCEL_SWITCH_PASSPORT],"switch-profile":[ei.SWITCH_PROFILE,ei.CANCEL_SWITCH_PROFILE],"switch-did":[ei.LOGIN,ei.CANCEL_LOGIN]};if(!Object.keys(Oe).includes(xe))return;const W=async(...B)=>{Lc(ke)&&await ke(...B),$.emit(xe,...B)};$.once(Oe[xe][0],W),$.once(Oe[xe][1],async(...B)=>{Lc(W)&&$.off(Oe[xe][0],W),Lc(Je)&&await Je(...B),$.emit(`cancel-${xe}`,...B)})}),M=iK(b.initialized,(xe,ke)=>xe!==ke||xe===!0&&ke===!0),{handleRefreshUser:j,handleRefreshToken:U,renewToken:V,clearSession:X,handleLoginResult:ie,decrypt:le,service:Q,getSessionToken:P,getRefreshToken:T,setRefreshToken:u,setSessionToken:h}=$qe({state:b,pageState:y,sessionTokenStorage:a,refreshTokenStorage:o,serviceHost:c.serviceHost,apiOptions:c.apiOptions,lazyRefreshToken:c.lazyRefreshToken}),E=_t((xe,ke={},Je={})=>{const Oe=xe;typeof Oe=="object"&&(xe=Oe.onSuccess,ke=Oe.extraParams||{},Je=Oe.options||{},Je.origin=Oe.origin||""),(!b.user||Je.origin==="switch-did")&&(Je.origin==="switch-did"?D("switch-did",xe,Oe==null?void 0:Oe.onCancel):D("login",xe,Oe==null?void 0:Oe.onCancel),y.extraParams=ke,y.options=Je,b.action="login",we())}),S=_t(async(xe,ke={},Je={})=>{var Te;const Oe=xe;typeof Oe=="object"&&(xe=Oe.onSuccess,ke=Oe.extraParams||{},Je=Oe.options||{});const{params:W}=SF();if(ua(ke==null?void 0:ke.forceConnected)&&(W!=null&&W.forceConnected)&&(ke.forceConnected=W.forceConnected,ua(Je.showQuickConnect)&&(Je.showQuickConnect=!1)),ua(ke==null?void 0:ke.sourceAppPid)&&(W!=null&&W.sourceAppPid)&&(ke.sourceAppPid=W.sourceAppPid),(ke==null?void 0:ke.openMode)==="redirect"){const Ae=(ke==null?void 0:ke.redirect)||"/",Se=new URL(`${Vi}/login`,window.location.origin);Se.searchParams.set("redirect",Ae),ke!=null&&ke.forceConnected&&Se.searchParams.set("forceConnected",ke==null?void 0:ke.forceConnected),Je!=null&&Je.origin&&Se.searchParams.set("origin",Je.origin),window.location.href=Se.href;return}let B=ke==null?void 0:ke.sourceAppPid;ua(B)&&K&&(B=te.appPid),await uz(()=>b.initialized),typeof Je=="string"&&(Je={origin:Je});const F=xl(ke);y.allowWallet=void 0;const se=(F==null?void 0:F.openMode)||((Te=c==null?void 0:c.extraParams)==null?void 0:Te.openMode);ua(se)?y.openMode="window":y.openMode=se,B?(b.baseUrl=globalThis.blocklet.appUrl,E(xe,F,Je)):(b.baseUrl="",E(xe,F,Je))}),C=rf(),I=_t(async xe=>{const ke=On(Vi,"/api/user/logout");await fetch(ke,{method:"POST",body:JSON.stringify({visitorId:C}),headers:{"Content-Type":"application/json"}}),X(),me(),b.user=null,b.provider="",b.walletOS="",b.error="",b.loading=!1,$.emit("logout"),typeof xe=="function"&&xe()}),{userSessions:x,refresh:_,loaded:v,loginUserSession:k}=cQ({appPid:UK(b.user),loginAppPid:(Me=globalThis==null?void 0:globalThis.blocklet)==null?void 0:Me.appPid,sourceAppPid:(He=b==null?void 0:b.user)==null?void 0:He.sourceAppPid,autoFetch:!1}),ne=_t((xe,ke={},Je={})=>{const Oe=xe;typeof Oe=="object"&&(xe=Oe.onSuccess,ke=Oe.extraParams||{},Je=Oe.options||{}),typeof Je=="string"&&(Je={origin:Je}),Je!=null&&Je.userSession?k(Je.userSession).then(W=>{l2({connected_did:Je.userSession.user.did,connected_pk:Je.userSession.user.pk,connected_wallet_os:Je.userSession.extra.walletOS,connected_app:F1()},!0),D("switch-did",xe),ie({...W,encrypted:!1}),j(!0).then(()=>{$.emit(ei.LOGIN,W,le)})}):(ua(ke==null?void 0:ke.forceConnected)&&(ke.forceConnected=!1),S(xe,ke,{...Je,origin:"switch-did"}))}),N=_t((xe,ke={})=>{const Je=xe;typeof Je=="object"&&(xe=Je.onSuccess,ke=Je.extraParams||{}),b.user&&(D("switch-profile",xe,Je==null?void 0:Je.onCancel),y.extraParams=ke,y.options={},b.action="switch-profile",we())}),q=_t((xe,ke={})=>{const Je=xe;typeof Je=="object"&&(xe=Je.onSuccess,ke=Je.extraParams||{}),b.user&&(D("switch-passport",xe,Je==null?void 0:Je.onCancel),y.extraParams=ke,y.options={},b.action="switch-passport",we())}),re=_t((xe,ke={})=>{const Je=xe;typeof Je=="object"&&(xe=Je.onSuccess),b.user&&(D("bind-wallet",xe,Je==null?void 0:Je.onCancel),y.extraParams=ke,y.options={},b.action="bind-wallet",we())}),ce=_t(xe=>{y.extraParams={},y.options={},ie(xe),b.loading=!1,j(!0).then(()=>{b.action==="login"?$.emit(ei.LOGIN,xe,le):b.action==="switch-passport"&&$.emit(ei.SWITCH_PASSPORT,xe,le)})}),he=_t(xe=>{y.extraParams={},y.options={},ie(xe),b.loading=!1,j(!0).then(()=>{$.emit(ei.BIND_WALLET,xe,le)})}),_e=_t(xe=>{y.extraParams={},y.options={},b.loading=!1,j(!0).then(()=>{$.emit(ei.SWITCH_PROFILE,xe,le)})}),H=_t(xe=>{y.extraParams={},y.options={},me();const ke={login:ei.CANCEL_LOGIN,"switch-profile":ei.CANCEL_SWITCH_PROFILE,"switch-passport":ei.CANCEL_SWITCH_PASSPORT,"bind-wallet":ei.CANCEL_BIND_WALLET};$.emit(ke[xe])}),L=_t((xe,...ke)=>{try{Ve[xe](...ke)}catch(Je){console.error("Catch error in onSuccess",{action:xe,args:ke,err:Je})}}),{federatedMaster:Y,federatedEnabled:K,master:te}=_qe({locale:b.locale,decrypt:le,login:E,logout:I,handleLoginResult:ie,handleRefreshUser:j,setRefreshToken:u,setSessionToken:h}),{checkMatch:ye}=Hqe({protectedRoutes:c.protectedRoutes||[]}),pe=vE(x),ae=_t(async()=>(v||(await _(),await Um()),pe.current)),me=_t(()=>{b.open=!1,d.close()}),we=async()=>{var B,F,se,Te,Ae,Se,We;let xe=b.action;((B=y==null?void 0:y.options)==null?void 0:B.origin)==="switch-did"&&(xe=(F=y==null?void 0:y.options)==null?void 0:F.origin);const ke=pc[xe],Je=ke[b.locale]||ke.en,Oe={...r.extraParams,...c.extraParams,...y.extraParams,previousUserDid:(se=b==null?void 0:b.user)==null?void 0:se.did,email:(Te=b==null?void 0:b.user)==null?void 0:Te.email};if(xe==="switch-did"&&(Oe!=null&&Oe.forceConnected)){const Be=(je,ft={})=>Yp(pc["switch-specified-did"],je,b.locale,"en",ft);Je.title=Be("title"),Je.scan=Be("scan",{did:Oe.forceConnected}),Je.confirm=Be("confirm"),Je.success=Be("success")}Oe==null||delete Oe.openMode;const W={action:b.action,locale:b.locale,extraParams:Oe,options:{...c.options||{},...y.options},checkTimeout:c.timeout,webWalletUrl:c.webWalletUrl,messages:Je,useSocket:c.useSocket,...b6(c,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...uE(y.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:y.prefix,allowWallet:ua(y.allowWallet)?b.action!=="login"||(((Ae=globalThis.blocklet)==null?void 0:Ae.DID_CONNECT_ALLOW_WALLET)||"1")==="1":y.allowWallet,onSuccess(...Be){L(b.action,...Be),setTimeout(()=>{b.open=!1},2e3)},onClose(...Be){H(b.action,...Be)},onError(Be){console.error(Be)}};if(b.open=!0,["login"].includes(b.action)&&y.openMode==="window"&&!g.wallet)try{const Be={...W,baseUrl:window.location.origin};Qb(y.prefix)||(Be.prefix=On(window.location.origin,c.serviceHost==="/"?"":c.serviceHost,y.prefix)),(Se=Be.extraParams)!=null&&Se.provider||(Be.extraParams.provider=((We=b==null?void 0:b.user)==null?void 0:We.provider)||"wallet"),await d.openPopup(Be,{locale:b.locale})}catch(Be){Be.message==="Timeout"?Ci.error(RU[b.locale]||RU.en):console.error(Be)}else d.open(W)},be=()=>{const{params:xe,url:ke}=SF();if(xe){const{switchBehavior:Je,forceConnected:Oe,sourceAppPid:W,showClose:B}=xe;Oe===b.user.did?window.history.replaceState(null,"trim",ke):Je==="required"?ne(()=>{},{openMode:"redirect",redirect:ke,sourceAppPid:W,forceConnected:Oe}):Je==="disabled"?window.history.replaceState(null,"trim",ke):setTimeout(()=>{R.open({title:pc.switchAccountDialog[b.locale].title,content:G.jsxs(G.Fragment,{children:[G.jsx(Ir,{variant:"body1",sx:{textAlign:"center",mb:2},children:pc.switchAccountDialog[b.locale].description}),G.jsxs(yt,{sx:{display:"flex",alignItems:"center",color:Rt.foregroundsFgBase},children:[G.jsxs(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1},children:[G.jsx(Nl,{did:b.user.did,shape:"circle",variant:"circle",size:80}),G.jsx(Tp,{did:b.user.did,showAvatar:!1,compact:!0,responsive:!1}),pc.switchAccountDialog[b.locale].currentAccount]}),G.jsx(yt,{sx:{display:"flex",justifyContent:"center",px:2},children:G.jsx(yt,{component:Zn,icon:vPe,fontSize:24,color:Rt.foregroundsFgMuted,sx:{animation:"right 2.5s linear infinite","@keyframes right":{"0%":{transform:"translateX(-3px)",opacity:0},"60%":{transform:"translateX(3px)",opacity:1},"100%":{transform:"translateX(0px)",opacity:0}}}})}),G.jsxs(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1,fontWeight:500},children:[G.jsx(Nl,{did:Oe,shape:"circle",variant:"circle",size:80}),G.jsx(Tp,{did:Oe,showAvatar:!1,compact:!0,responsive:!1}),pc.switchAccountDialog[b.locale].nextAccount]})]})]}),showCloseButton:B,showCancelButton:!1,confirmButtonText:pc.switchAccountDialog[b.locale].confirm,onConfirm(F){F(),ne(()=>{window.location.replace(ke)},{sourceAppPid:W,forceConnected:Oe},{showQuickConnect:!1})}})},1e3)}},Ne={api:Q,events:$,storage:a,connectApi:d,session:{...b,loading:y.autoConnect&&!b.user||b.loading,login:S,logout:I,switchDid:ne,autoSwitchDid:be,switchProfile:N,switchPassport:q,bindWallet:re,refresh:j,updateConnectedInfo:l2,federatedMaster:Y,useOAuth:SR,OAuthProvider:f2,OAuthConsumer:sqe,OAuthContext:wR,useDid:wX,WrapDid:xX,getUserSessions:ae}},Ve={login:ce,"switch-profile":_e,"switch-passport":ce,"bind-wallet":he};return sf(()=>{if(b.initialized){const xe=!M;$.emit("change",{user:xl(b.user),isFirst:xe})}},[b.user,b.initialized,$]),sf(()=>{b.initialized&&b.user&&be()},[b.initialized]),Rm(async()=>{const xe=Br.get("connected_app"),ke=F1();if(c.autoDisconnect&&xe&&ke&&xe!==ke){X(),b.initialized=!0,y.autoConnect?we():me();return}const Je=P();let Oe="web";if(g.mobile.apple.device?Oe="ios":g.mobile.android.device&&(Oe="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&g.wallet&&dQe({version:g.walletVersion,platform:Oe})){if(!C){const B=await fQe();aW(B)}if(!Je)try{b.loading=!0;const B=await cQe();if(B){b.initialized=!0,ce({sessionToken:B.sessionToken,refreshToken:B.refreshToken,encrypted:!1});return}}finally{b.loading=!1}}if(Je){await j(!0),b.initialized=!0;return}if(typeof window<"u"){const B=new URL(window.location.href),F=B.searchParams.get("loginToken");if(F){ie({loginToken:F,encrypted:!1}),B.searchParams.delete("loginToken"),window.history.replaceState({},window.title,B.href);return}}if(T()){await U(!0),b.initialized=!0;return}try{}catch(B){console.error("Federated: tryAutoLogin failed",B)}finally{b.initialized=!0}y.autoConnect?we():me()}),ye()&&!b.initialized?G.jsx(hp,{children:G.jsx(rC,{})}):G.jsx(pQe,{value:Ne,children:G.jsxs(f2,{locale:b.locale,onSwitchPassport:({sessionToken:xe,refreshToken:ke})=>{ce({sessionToken:xe,refreshToken:ke,encrypted:!1})},onBindOAuth:()=>{j()},children:[!b.open&&typeof c.children=="function"?c.children(b):c.children,p,A,r.rolling&&G.jsx(sX,{callback:()=>V()})]})})}s.propTypes={children:ge.any.isRequired,serviceHost:ge.string,action:ge.string,prefix:ge.string,appendAuthServicePrefix:ge.bool,locale:ge.string,timeout:ge.number,autoConnect:ge.bool,autoDisconnect:ge.bool,useSocket:ge.bool,extraParams:ge.object,options:ge.object,webWalletUrl:ge.string,protectedRoutes:ge.arrayOf(ge.string),apiOptions:ge.object,lazyRefreshToken:ge.bool},s.defaultProps={serviceHost:i,locale:"",action:"login",prefix:fR,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:XZ*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function l(c){return function(p){return G.jsx(j3,{children:G.jsx(CU,{children:g=>G.jsx(c,{...p,...g})})})}}return{SessionProvider:c=>G.jsx(j3,{children:G.jsx(s,{...c})}),SessionConsumer:CU,SessionContext:hh,withSession:l}}let AQ="/";window.env&&(AQ=window.env.groupPathPrefix||window.env.pathPrefix||"/");function wQ(e,t){return[void 0,null,""].includes(e)?t:e/86400}var dj,pj,hj;const mQe=wQ((hj=(pj=(dj=window.blocklet)==null?void 0:dj.settings)==null?void 0:pj.session)==null?void 0:hj.cacheTtl,1/144);var mj,gj,yj;const gQe=wQ((yj=(gj=(mj=window.blocklet)==null?void 0:mj.settings)==null?void 0:gj.session)==null?void 0:yj.ttl,7),{SessionProvider:yQe,SessionContext:vQe,SessionConsumer:Egt,withSession:Tgt}=hQe("login_token","cookie",{returnDomain:!1,path:AQ,expireInDays:mQe},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays:gQe});function SQ(){return z.useContext(vQe)}function bQe({children:e}){const t=Yq({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return G.jsx(Oq,{injectFirst:!0,children:G.jsx(Eve,{theme:t,children:G.jsx(Dq,{theme:t,children:G.jsx(B8,{translations:S6e,fallbackLocale:"en",children:G.jsx(j3,{children:G.jsx(c$,{theme:t,children:e})})})})})})}const u$=new URL(window.location.href),_Q=u$.searchParams.get("mode")||"",EQe=u$.pathname.includes("embed")&&_Q==="dialog",TQe=u$.pathname.includes("embed")&&_Q!=="dialog";function c$({children:e,theme:t}){var i,a,o;const{locale:n}=eE(),r=Ws`
|
|
517
517
|
${EQe?"body { background-color: transparent }":""}
|
|
518
518
|
${TQe?".MuiModal-backdrop { background-color: transparent !important }":""}
|
|
519
519
|
a {
|
|
@@ -1319,10 +1319,10 @@ ${r.length}`,o=Ft.from(a),s=Ft.concat([o,i]);return Ost.default.keccak256s(s)}et
|
|
|
1319
1319
|
`)&&e.flags==="s")}),t0t=Ya,n0t=Ka,r0t=n0t.RegExp,i0t=t0t(function(){var e=r0t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Ud=wh,OT=wa,a0t=DT,o0t=Cht,s0t=kht,l0t=mI,u0t=Yht,c0t=bre.get,f0t=e0t,d0t=i0t,p0t=l0t("native-string-replace",String.prototype.replace),O2=RegExp.prototype.exec,Mx=O2,h0t=OT("".charAt),m0t=OT("".indexOf),g0t=OT("".replace),q5=OT("".slice),Bx=function(){var e=/a/,t=/b*/g;return Ud(O2,e,"a"),Ud(O2,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),Ire=s0t.BROKEN_CARET,Nx=/()??/.exec("")[1]!==void 0,y0t=Bx||Nx||Ire||f0t||d0t;y0t&&(Mx=function(t){var n=this,r=c0t(n),i=a0t(t),a=r.raw,o,s,l,f,c,d,p;if(a)return a.lastIndex=n.lastIndex,o=Ud(Mx,a,i),n.lastIndex=a.lastIndex,o;var g=r.groups,y=Ire&&n.sticky,b=Ud(o0t,n),R=n.source,A=0,$=i;if(y&&(b=g0t(b,"y",""),m0t(b,"g")===-1&&(b+="g"),$=q5(i,n.lastIndex),n.lastIndex>0&&(!n.multiline||n.multiline&&h0t(i,n.lastIndex-1)!==`
|
|
1320
1320
|
`)&&(R="(?: "+R+")",$=" "+$,A++),s=new RegExp("^(?:"+R+")",b)),Nx&&(s=new RegExp("^"+R+"$(?!\\s)",b)),Bx&&(l=n.lastIndex),f=Ud(O2,y?s:n,$),y?f?(f.input=q5(f.input,A),f[0]=q5(f[0],A),f.index=n.lastIndex,n.lastIndex+=f[0].length):n.lastIndex=0:Bx&&f&&(n.lastIndex=n.global?f.index+f[0].length:l),Nx&&f&&f.length>1&&Ud(p0t,f[0],s,function(){for(c=1;c<arguments.length-2;c++)arguments[c]===void 0&&(f[c]=void 0)}),f&&g)for(f.groups=d=u0t(null),c=0;c<g.length;c++)p=g[c],d[p[0]]=f[p[1]];return f});var _I=Mx,v0t=_re,zH=_I;v0t({target:"RegExp",proto:!0,forced:/./.exec!==zH},{exec:zH});var b0t=cI,kre=Function.prototype,KH=kre.apply,YH=kre.call,E0t=typeof Reflect=="object"&&Reflect.apply||(b0t?YH.bind(KH):function(){return YH.apply(KH,arguments)}),T0t=tg,A0t=wa,Dre=function(e){if(T0t(e)==="Function")return A0t(e)},ZH=Dre,XH=Tre,w0t=_I,QH=Ya,Ore=Cf,S0t=gI,_0t=Ore("species"),G5=RegExp.prototype,x0t=function(e,t,n,r){var i=Ore(e),a=!QH(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!QH(function(){var f=!1,c=/a/;return e==="split"&&(c={},c.constructor={},c.constructor[_0t]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return f=!0,null},c[i](""),!f});if(!a||!o||n){var s=ZH(/./[i]),l=t(i,""[e],function(f,c,d,p,g){var y=ZH(f),b=c.exec;return b===w0t||b===G5.exec?a&&!g?{done:!0,value:s(c,d,p)}:{done:!0,value:y(d,c,p)}:{done:!1}});XH(String.prototype,e,l[0]),XH(G5,i,l[1])}r&&S0t(G5[i],"sham",!0)},xI=wa,C0t=kT,R0t=DT,$0t=ng,I0t=xI("".charAt),ej=xI("".charCodeAt),k0t=xI("".slice),tj=function(e){return function(t,n){var r=R0t($0t(t)),i=C0t(n),a=r.length,o,s;return i<0||i>=a?e?"":void 0:(o=ej(r,i),o<55296||o>56319||i+1===a||(s=ej(r,i+1))<56320||s>57343?e?I0t(r,i):o:e?k0t(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},D0t={codeAt:tj(!1),charAt:tj(!0)},O0t=D0t.charAt,L0t=function(e,t,n){return t+(n?O0t(e,t).length:1)},CI=wa,P0t=ure,M0t=Math.floor,W5=CI("".charAt),B0t=CI("".replace),z5=CI("".slice),N0t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,F0t=/\$([$&'`]|\d{1,2})/g,U0t=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,l=F0t;return i!==void 0&&(i=P0t(i),l=N0t),B0t(a,l,function(f,c){var d;switch(W5(c,0)){case"$":return"$";case"&":return e;case"`":return z5(t,0,n);case"'":return z5(t,o);case"<":d=i[z5(c,1,-1)];break;default:var p=+c;if(p===0)return f;if(p>s){var g=M0t(p/10);return g===0?f:g<=s?r[g-1]===void 0?W5(c,1):r[g-1]+W5(c,1):f}d=r[p-1]}return d===void 0?"":d})},nj=wh,H0t=Rf,j0t=Za,J0t=tg,V0t=_I,q0t=TypeError,G0t=function(e,t){var n=e.exec;if(j0t(n)){var r=nj(n,e,t);return r!==null&&H0t(r),r}if(J0t(e)==="RegExp")return nj(V0t,e,t);throw q0t("RegExp#exec called on incompatible receiver")},W0t=E0t,rj=wh,LT=wa,z0t=x0t,K0t=Ya,Y0t=Rf,Z0t=Za,X0t=fI,Q0t=kT,e1t=EI,hd=DT,t1t=ng,n1t=L0t,r1t=sre,i1t=U0t,a1t=G0t,o1t=Cf,Fx=o1t("replace"),s1t=Math.max,l1t=Math.min,u1t=LT([].concat),K5=LT([].push),ij=LT("".indexOf),aj=LT("".slice),c1t=function(e){return e===void 0?e:String(e)},f1t=function(){return"a".replace(/./,"$0")==="$0"}(),oj=function(){return/./[Fx]?/./[Fx]("a","$0")==="":!1}(),d1t=!K0t(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"});z0t("replace",function(e,t,n){var r=oj?"$":"$0";return[function(a,o){var s=t1t(this),l=X0t(a)?void 0:r1t(a,Fx);return l?rj(l,a,s,o):rj(t,hd(s),a,o)},function(i,a){var o=Y0t(this),s=hd(i);if(typeof a=="string"&&ij(a,r)===-1&&ij(a,"$<")===-1){var l=n(t,o,s,a);if(l.done)return l.value}var f=Z0t(a);f||(a=hd(a));var c=o.global;if(c){var d=o.unicode;o.lastIndex=0}for(var p=[];;){var g=a1t(o,s);if(g===null||(K5(p,g),!c))break;var y=hd(g[0]);y===""&&(o.lastIndex=n1t(s,e1t(o.lastIndex),d))}for(var b="",R=0,A=0;A<p.length;A++){g=p[A];for(var $=hd(g[0]),D=s1t(l1t(Q0t(g.index),s.length),0),M=[],j=1;j<g.length;j++)K5(M,c1t(g[j]));var U=g.groups;if(f){var V=u1t([$],M,D,s);U!==void 0&&K5(V,U);var X=hd(W0t(a,void 0,V))}else X=i1t($,s,D,M,U,a);D>=R&&(b+=aj(s,R,D)+X,R=D+$.length)}return b+aj(s,R)}]},!d1t||!f1t||oj);var p1t=Sh,h1t=tg,m1t=Cf,g1t=m1t("match"),y1t=function(e){var t;return p1t(e)&&((t=e[g1t])!==void 0?!!t:h1t(e)=="RegExp")},v1t=y1t,b1t=TypeError,E1t=function(e){if(v1t(e))throw b1t("The method doesn't accept regular expressions");return e},T1t=Cf,A1t=T1t("match"),w1t=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[A1t]=!1,"/./"[e](t)}catch{}}return!1},S1t=_re,Lre=Dre,_1t=$T.f,x1t=EI,sj=DT,C1t=E1t,R1t=ng,$1t=w1t,lj=Lre("".endsWith),I1t=Lre("".slice),k1t=Math.min,Pre=$1t("endsWith"),D1t=!Pre&&!!function(){var e=_1t(String.prototype,"endsWith");return e&&!e.writable}();S1t({target:"String",proto:!0,forced:!D1t&&!Pre},{endsWith:function(t){var n=sj(R1t(this));C1t(t);var r=arguments.length>1?arguments[1]:void 0,i=n.length,a=r===void 0?i:k1t(x1t(r),i),o=sj(t);return lj?lj(n,o,a):I1t(n,a-o.length,a)===o}});const O1t={name:"Query"},L1t={name:"Mutation"},P1t=null,M1t=[{kind:"SCALAR",name:"Any",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Bytes",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Float32",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Int32",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Int64",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Uint32",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Uint64",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"AutoBackupInput",description:null,fields:null,inputFields:[{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"AutoCheckUpdateInput",description:null,fields:null,inputFields:[{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"BlockletStoreInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"logoUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"maintainer",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"cdnUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"protected",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"ConfigEntryInput",description:null,fields:null,inputFields:[{name:"key",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"value",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"required",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"validation",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"secure",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"custom",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"shared",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"ConfigNavigationInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"link",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"icon",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"section",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"component",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"parent",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"visible",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"from",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"ConnectedAccountInput",description:null,fields:null,inputFields:[{name:"provider",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"DownloadTokenInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"token",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"HashFileInput",description:null,fields:null,inputFields:[{name:"file",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"hash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"IssuerInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"NodeInfoInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoUpgrade",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"enableWelcomePage",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"registerUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"webWalletUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletRegistryList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"BlockletStoreInput",ofType:null}}},defaultValue:null},{name:"diskAlertThreshold",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"enableBetaRelease",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"nftDomainUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"PagingInput",description:null,fields:null,inputFields:[{name:"total",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"pageSize",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"pageCount",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"page",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"PassportInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"issuer",description:null,type:{kind:"INPUT_OBJECT",name:"IssuerInput",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"issuanceDate",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"expirationDate",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"status",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"PermissionInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"isProtected",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddBlockletSpaceGatewayInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"spaceGateway",description:null,type:{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddDomainAliasInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"domainAlias",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"force",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"nftDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"chainHost",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"inBlockletSetup",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddLetsEncryptCertInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"siteId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"inBlockletSetup",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddNginxHttpsCertInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"privateKey",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"certificate",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddRoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rule",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleInput",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddRoutingSiteInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rules",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"RoutingRuleInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAuditFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"memberPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"status",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBackupBlockletInput",description:null,fields:null,inputFields:[{name:"appDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"to",description:null,type:{kind:"ENUM",name:"BackupTo",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletDetailInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"attachRuntimeInfo",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletDiffInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"hashFiles",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"HashFileInput",ofType:null}}},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletMetaInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletMetaFromUrlInput",description:null,fields:null,inputFields:[{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"checkPrice",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletRuntimeHistoryInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"hours",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestChangeBlockletStoreInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCheckDomainsInput",description:null,fields:null,inputFields:[{name:"domains",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestClearCacheInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pattern",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestComponentsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDids",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigBlockletInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"configs",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConfigEntryInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigFederatedInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoLogin",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigNavigationsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"navigations",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConfigNavigationInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigNotificationInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"notification",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigOAuthInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"oauth",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigPassportIssuanceInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"enable",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigPublicToStoreInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"publicToStore",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigTrustedFactoriesInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"trustedFactories",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TrustedFactoryInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigTrustedPassportsInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"trustedPassports",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TrustedPassportInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateAccessKeyInput",description:null,fields:null,inputFields:[{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passport",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateInvitationInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreatePassportIssuanceInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ownerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreatePermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateProjectInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"ENUM",name:"PublishType",ofType:null},defaultValue:null},{name:"blockletDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletTitle",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateReleaseInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletVersion",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletTitle",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletDescription",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletLogo",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletIntroduction",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletScreenshots",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"note",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"status",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletComponents",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"childName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"permissions",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateTransferNodeInvitationInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateWebHookInput",description:null,fields:null,inputFields:[{name:"type",description:null,type:{kind:"ENUM",name:"SenderType",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"params",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"WebHookParamInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteAccessKeyInput",description:null,fields:null,inputFields:[{name:"accessKeyId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"keepData",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletSpaceGatewayInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"spaceGatewayDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteComponentInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"keepData",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteDomainAliasInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"domainAlias",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteInvitationInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"inviteId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteNginxHttpsCertInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeletePermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ruleId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingSiteInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteTeamSessionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sessionId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteWebHookInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDisbandFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestEndSessionInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestFindCertificateByDomainInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGatewayInput",description:null,fields:null,inputFields:[{name:"requestLimit",description:null,type:{kind:"INPUT_OBJECT",name:"RequestLimitInput",ofType:null},defaultValue:null},{name:"cacheEnabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetAuditLogsInput",description:null,fields:null,inputFields:[{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"scope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"category",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetAutoBackupInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetAutoCheckUpdateInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletBackupsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletNotificationsInput",description:null,fields:null,inputFields:[{name:"receiver",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sender",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"read",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletsInput",description:null,fields:null,inputFields:[{name:"useCache",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetDynamicComponentsInput",description:null,fields:null,inputFields:[{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetLauncherSessionInput",description:null,fields:null,inputFields:[{name:"launcherSessionId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"launcherUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetNotificationsInput",description:null,fields:null,inputFields:[{name:"receiver",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sender",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"read",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetPassportIssuancesInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ownerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetProjectsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetReleasesInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetRoutingSitesInput",description:null,fields:null,inputFields:[{name:"snapshotHash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetRoutingSnapshotsInput",description:null,fields:null,inputFields:[{name:"limit",description:null,type:{kind:"SCALAR",name:"Int32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetSelectedResourcesInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetSessionInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetSnapshotSitesInput",description:null,fields:null,inputFields:[{name:"hash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetTrafficInsightsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"startDate",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"endDate",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGrantPermissionForRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"roleName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"grantName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestHasPermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"permission",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestInstallComponentInput",description:null,fields:null,inputFields:[{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"mountPoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"file",description:null,type:{kind:"SCALAR",name:"Upload",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"diffVersion",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"deleteSet",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"configs",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConfigEntryInput",ofType:null}}},defaultValue:null},{name:"downloadTokenList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"DownloadTokenInput",ofType:null}}},defaultValue:null},{name:"skipNavigation",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"onlyRequired",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestIsDidDomainInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestIssuePassportToUserInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestJoinFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestLimitInput",description:null,fields:null,inputFields:[{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"rate",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"ipHeader",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestMigrateApplicationToStructV2Input",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appSk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestNodeRoutingInput",description:null,fields:null,inputFields:[{name:"provider",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"snapshotHash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"forceRepopulate",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestNodeRuntimeHistoryInput",description:null,fields:null,inputFields:[{name:"hours",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestProjectInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestQuitFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestReadBlockletNotificationsInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestReadNotificationsInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestReleaseInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestResetNodeInput",description:null,fields:null,inputFields:[{name:"owner",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"blocklets",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"webhooks",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"certificates",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"accessKeys",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"blockletExtras",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"routingRules",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"users",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"invitations",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestRestoreBlockletInput",description:null,fields:null,inputFields:[{name:"endpoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"delegation",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"password",description:null,type:{kind:"SCALAR",name:"Bytes",ofType:null},defaultValue:null},{name:"wallet",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null},{name:"from",description:null,type:{kind:"ENUM",name:"BackupTo",ofType:null},defaultValue:null},{name:"appPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestRevokePermissionFromRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"roleName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"grantName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passportId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestSendEmailInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"receiver",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestSendMsgInput",description:null,fields:null,inputFields:[{name:"webhookId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"message",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestStartSessionInput",description:null,fields:null,inputFields:[{name:"data",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestSwitchProfileInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"profile",description:null,type:{kind:"INPUT_OBJECT",name:"UserProfileInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTagInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tag",description:null,type:{kind:"INPUT_OBJECT",name:"TagInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTagsInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTakeRoutingSnapshotInput",description:null,fields:null,inputFields:[{name:"dryRun",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"message",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamPermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"permission",description:null,type:{kind:"INPUT_OBJECT",name:"PermissionInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"INPUT_OBJECT",name:"RoleUpdateInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"user",description:null,type:{kind:"INPUT_OBJECT",name:"UserInfoInput",ofType:null},defaultValue:null},{name:"options",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserOptionsInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamUserOptionsInput",description:null,fields:null,inputFields:[{name:"enableConnectedAccount",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"includeTags",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAccessKeyInput",description:null,fields:null,inputFields:[{name:"accessKeyId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passport",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAppSessionConfigInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"config",description:null,type:{kind:"INPUT_OBJECT",name:"SessionConfigInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAutoBackupInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoBackup",description:null,type:{kind:"INPUT_OBJECT",name:"AutoBackupInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAutoCheckUpdateInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoCheckUpdate",description:null,type:{kind:"INPUT_OBJECT",name:"AutoCheckUpdateInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateBlockletSpaceGatewayInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"where",description:null,type:{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",ofType:null},defaultValue:null},{name:"spaceGateway",description:null,type:{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateComponentMountPointInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"mountPoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateComponentTitleInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateComponentsInput",description:null,fields:null,inputFields:[{name:"updateId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"selectedComponents",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateNginxHttpsCertInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdatePermissionsForRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"roleName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"grantNames",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateProjectInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletTitle",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletDescription",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletIntroduction",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rule",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleInput",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingSiteInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"corsAllowedOrigins",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateSelectedResourcesInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"resources",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateSessionInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"data",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateUserExtraInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateUserTagsInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tags",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Uint32",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateWhoCanAccessInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"whoCanAccess",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUsersInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"query",description:null,type:{kind:"INPUT_OBJECT",name:"UserQueryInput",ofType:null},defaultValue:null},{name:"sort",description:null,type:{kind:"INPUT_OBJECT",name:"UserSortInput",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"dids",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestVersionedBlockletInput",description:null,fields:null,inputFields:[{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"file",description:null,type:{kind:"SCALAR",name:"Upload",ofType:null},defaultValue:null},{name:"diffVersion",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"deleteSet",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"startImmediately",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"downloadTokenList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"DownloadTokenInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoleUpdateInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"from",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleFromInput",ofType:null},defaultValue:null},{name:"to",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleToInput",ofType:null},defaultValue:null},{name:"isProtected",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleFromInput",description:null,fields:null,inputFields:[{name:"pathPrefix",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"header",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"RoutingRuleHeaderInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleHeaderInput",description:null,fields:null,inputFields:[{name:"key",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"value",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"ENUM",name:"HeaderMatchType",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleToInput",description:null,fields:null,inputFields:[{name:"port",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"ENUM",name:"BackendServiceType",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"redirectCode",description:null,type:{kind:"SCALAR",name:"Int32",ofType:null},defaultValue:null},{name:"interfaceName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pageGroup",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"SessionConfigInput",description:null,fields:null,inputFields:[{name:"cacheTtl",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"ttl",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"protected",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"endpoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TagInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"color",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"createdAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"updatedAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TeamInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedFactoryInput",description:null,fields:null,inputFields:[{name:"holderDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"issuerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"factoryAddress",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passport",description:null,type:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingToInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportInput",description:null,fields:null,inputFields:[{name:"issuerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"mappings",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportMappingInput",description:null,fields:null,inputFields:[{name:"from",description:null,type:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingFromInput",ofType:null},defaultValue:null},{name:"to",description:null,type:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingToInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportMappingFromInput",description:null,fields:null,inputFields:[{name:"passport",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportMappingToInput",description:null,fields:null,inputFields:[{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ttl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ttlPolicy",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserInfoInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"avatar",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"fullName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"approved",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"createdAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"updatedAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"locale",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passports",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"PassportInput",ofType:null}}},defaultValue:null},{name:"firstLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"lastLoginIp",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sourceProvider",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sourceAppPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"connectedAccounts",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConnectedAccountInput",ofType:null}}},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null},{name:"tags",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TagInput",ofType:null}}},defaultValue:null},{name:"didSpace",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserProfileInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"avatar",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"fullName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserQueryInput",description:null,fields:null,inputFields:[{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"approved",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"search",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"connectedDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tags",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Uint32",ofType:null}}},defaultValue:null},{name:"includeTags",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserSortInput",description:null,fields:null,inputFields:[{name:"updatedAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"createdAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"WebHookParamInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"required",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"defaultValue",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"value",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AccessKey",description:null,fields:[{name:"accessKeyId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"accessKeyPublic",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passport",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastUsedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdBy",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedBy",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLog",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"scope",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"category",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"action",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"content",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"actor",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogActor",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"env",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogEnv",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ip",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ua",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLogActor",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fullName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLogEnv",description:null,fields:[{name:"browser",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogEnvItem",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"os",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogEnvItem",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLogEnvItem",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AutoBackup",description:null,fields:[{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AutoCheckUpdate",description:null,fields:[{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Backup",description:null,fields:[{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"userDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"strategy",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sourceUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"target",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"targetName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"targetUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"message",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"progress",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletBackupState",description:null,fields:[{name:"appDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletCapabilities",description:null,fields:[{name:"clusterMode",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"component",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"navigation",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"didSpace",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resourceExportApi",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletController",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftOwner",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"chainHost",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expireDate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"consumedAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"launcherUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"launcherSessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ownerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"OBJECT",name:"BlockletControllerStatus",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletControllerStatus",description:null,fields:[{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"reason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletDiff",description:null,fields:[{name:"hasBlocklet",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addSet",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"changeSet",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"deleteSet",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletDist",description:null,fields:[{name:"tarball",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"integrity",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletEngine",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"displayName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"available",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"visible",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletHistoryItem",description:null,fields:[{name:"date",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpu",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMeta",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"interfaces",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaInterface",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"author",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMetaPerson",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"main",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stats",description:null,args:[],type:{kind:"OBJECT",name:"BlockletStats",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"homepage",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"path",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"community",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"documentation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"support",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"screenshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"keywords",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"group",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dist",description:null,args:[],type:{kind:"OBJECT",name:"BlockletDist",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"maintainers",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaPerson",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"contributors",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaPerson",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"repository",description:null,args:[],type:{kind:"OBJECT",name:"BlockletRepository",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"payment",description:null,args:[],type:{kind:"OBJECT",name:"BlockletPayment",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftFactory",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastPublishedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"capabilities",description:null,args:[],type:{kind:"OBJECT",name:"BlockletCapabilities",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"components",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ChildConfig",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Environment",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"requirements",description:null,args:[],type:{kind:"OBJECT",name:"Requirement",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"navigation",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Any",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"resources",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"resource",description:null,args:[],type:{kind:"OBJECT",name:"BlockletResource",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMetaInterface",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"path",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"prefix",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"protocol",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"services",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaService",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"cacheable",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"pageGroups",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMetaPerson",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"email",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMetaService",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"config",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMigrateRecord",description:null,fields:[{name:"appSk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"at",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPayment",description:null,fields:[{name:"price",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletPaymentPrice",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"share",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletPaymentShare",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPaymentPrice",description:null,fields:[{name:"address",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"symbol",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPaymentShare",description:null,fields:[{name:"address",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPreUpdateInfo",description:null,fields:[{name:"updateId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"UpdateList",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletRepository",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletResource",description:null,fields:[{name:"exportApi",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"types",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletResourceType",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"bundles",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletResourceBundle",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletResourceBundle",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"public",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletResourceType",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletSettings",description:null,fields:[{name:"initialized",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enablePassportIssuance",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedPassports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"whoCanAccess",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"owner",description:null,args:[],type:{kind:"OBJECT",name:"WalletInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"children",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"SimpleBlockletState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"publicToStore",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"storeList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletStore",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"navigations",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigNavigation",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"oauth",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedFactories",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedFactory",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"notification",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"session",description:null,args:[],type:{kind:"OBJECT",name:"SessionConfig",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"federated",description:null,args:[],type:{kind:"OBJECT",name:"FederatedConfig",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletState",description:null,fields:[{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"BlockletStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"installedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pausedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stoppedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"configs",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"diskInfo",description:null,args:[],type:{kind:"OBJECT",name:"DiskInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"runtimeInfo",description:null,args:[],type:{kind:"OBJECT",name:"RuntimeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appRuntimeInfo",description:null,args:[],type:{kind:"OBJECT",name:"RuntimeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"source",description:null,args:[],type:{kind:"ENUM",name:"BlockletSource",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deployedFrom",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleSource",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"engine",description:null,args:[],type:{kind:"OBJECT",name:"BlockletEngine",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mode",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ports",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"children",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"optionalComponents",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"OptionalComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"trustedPassports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"trustedFactories",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedFactory",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"enablePassportIssuance",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dynamic",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"settings",description:null,args:[],type:{kind:"OBJECT",name:"BlockletSettings",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"site",description:null,args:[],type:{kind:"OBJECT",name:"RoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"controller",description:null,args:[],type:{kind:"OBJECT",name:"BlockletController",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"migratedFrom",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMigrateRecord",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalSk",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalSkSource",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"structVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletStats",description:null,fields:[{name:"downloads",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"star",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"purchases",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletStore",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logoUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"maintainer",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cdnUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"protected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BooleanResponse",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"result",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Certificate",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"CertificateMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"matchedSites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"MatchedSites",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"source",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"CertificateIssuer",description:null,fields:[{name:"countryName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"organizationName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"commonName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"CertificateMeta",description:null,fields:[{name:"issuer",description:null,args:[],type:{kind:"OBJECT",name:"CertificateIssuer",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sans",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"validFrom",description:null,args:[],type:{kind:"SCALAR",name:"Int64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validTo",description:null,args:[],type:{kind:"SCALAR",name:"Int64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fingerprintAlg",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fingerprint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validityPeriod",description:null,args:[],type:{kind:"SCALAR",name:"Int64",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ChildConfig",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ComponentState",description:null,fields:[{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"BlockletStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"installedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pausedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stoppedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"configs",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"diskInfo",description:null,args:[],type:{kind:"OBJECT",name:"DiskInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"runtimeInfo",description:null,args:[],type:{kind:"OBJECT",name:"RuntimeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"source",description:null,args:[],type:{kind:"ENUM",name:"BlockletSource",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deployedFrom",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleSource",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"engine",description:null,args:[],type:{kind:"OBJECT",name:"BlockletEngine",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mode",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ports",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"children",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"dynamic",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dependents",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Dependent",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConfigEntry",description:null,fields:[{name:"key",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"secure",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"custom",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"shared",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConfigNavigation",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"link",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"icon",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"section",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"component",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"parent",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"visible",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"from",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConnectedAccount",description:null,fields:[{name:"provider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"CreateAccessKey",description:null,fields:[{name:"accessKeyId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"accessKeySecret",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passport",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastUsedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"DelegationState",description:null,fields:[{name:"delegated",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Dependent",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"DiskInfo",description:null,fields:[{name:"app",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"data",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"log",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cache",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blocklets",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Environment",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"default",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"secure",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"shared",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"FederatedConfig",description:null,fields:[{name:"config",description:null,args:[],type:{kind:"OBJECT",name:"FederatedConfigDetail",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"FederatedConfigSite",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"FederatedConfigDetail",description:null,fields:[{name:"appId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"delegation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isMaster",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoLogin",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"FederatedConfigSite",description:null,fields:[{name:"appId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"aliasDid",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"appName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appDescription",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"aliasDomain",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"appLogo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appLogoRect",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"serverId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"serverVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appliedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isMaster",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Fuel",description:null,fields:[{name:"endpoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"address",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"reason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Gateway",description:null,fields:[{name:"requestLimit",description:null,args:[],type:{kind:"OBJECT",name:"RequestLimit",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cacheEnabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"GeneralResponse",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"IPInfo",description:null,fields:[{name:"internalV4",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalV4",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"internalV6",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalV6",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"InviteInfo",description:null,fields:[{name:"inviteId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expireDate",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inviter",description:null,args:[],type:{kind:"OBJECT",name:"UserInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"teamDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"interfaceName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Issuer",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"KeyValue",description:null,fields:[{name:"key",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"LauncherInfo",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"provider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tag",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"chainHost",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"MatchedSites",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeEnvInfo",description:null,fields:[{name:"ip",description:null,args:[],type:{kind:"OBJECT",name:"IPInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"os",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"location",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"docker",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"image",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletEngines",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletEngine",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"gitpod",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"disk",description:null,args:[],type:{kind:"OBJECT",name:"DiskInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeHistoryItem",description:null,fields:[{name:"date",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpu",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"daemonMem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"serviceMem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"hubMem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeRouting",description:null,fields:[{name:"provider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"snapshotHash",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"adminPath",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"requestLimit",description:null,args:[],type:{kind:"OBJECT",name:"RequestLimit",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cacheEnabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeRuntimeConfig",description:null,fields:[{name:"blockletMaxMemoryLimit",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"daemonMaxMemoryLimit",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"proxyMaxMemoryLimit",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeState",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"initialized",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nodeOwner",description:null,args:[],type:{kind:"OBJECT",name:"WalletInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"initializedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mode",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"routing",description:null,args:[],type:{kind:"OBJECT",name:"NodeRouting",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"uptime",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoUpgrade",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nextVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"upgradeSessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"registerUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enableWelcomePage",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"webWalletUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletRegistryList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletStore",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"ownerNft",description:null,args:[],type:{kind:"OBJECT",name:"OwnerNft",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"diskAlertThreshold",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedPassports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"launcher",description:null,args:[],type:{kind:"OBJECT",name:"LauncherInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enablePassportIssuance",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"didRegistry",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"didDomain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedFactories",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedFactory",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"enableBetaRelease",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"runtimeConfig",description:null,args:[],type:{kind:"OBJECT",name:"NodeRuntimeConfig",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftDomainUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Notification",description:null,fields:[{name:"sender",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"receiver",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"action",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"entityType",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"entityId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"read",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"severity",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"OptionalComponentState",description:null,fields:[{name:"logoUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dependencies",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"OptionalDependencies",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"OptionalDependencies",description:null,fields:[{name:"parentDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"parentName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"parentTitle",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"OwnerNft",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"holder",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuer",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Paging",description:null,fields:[{name:"total",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pageSize",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pageCount",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"page",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Passport",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuer",description:null,args:[],type:{kind:"OBJECT",name:"Issuer",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"issuanceDate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expirationDate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"PassportIssuanceInfo",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expireDate",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"teamDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ownerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Permission",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Project",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"ENUM",name:"PublishType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletTitle",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDescription",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletLogo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletIntroduction",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletScreenshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"componentDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Release",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"projectId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletTitle",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDescription",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletLogo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletIntroduction",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletScreenshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"note",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"files",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"ReleaseStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletComponents",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ReleaseComponent",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ReleaseComponent",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RequestLimit",description:null,fields:[{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"rate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ipHeader",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Requirement",description:null,fields:[{name:"server",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"os",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpu",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fuels",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Fuel",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseAccessKeys",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"AccessKey",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseAddLetsEncryptCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseAddNginxHttpsCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlocklet",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blocklet",description:null,args:[],type:{kind:"OBJECT",name:"BlockletState",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletDiff",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDiff",description:null,args:[],type:{kind:"OBJECT",name:"BlockletDiff",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletMeta",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletMetaFromUrl",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isFree",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inStore",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"registryUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletRuntimeHistory",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"history",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletHistoryItem",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletsFromBackup",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"backups",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletBackupState",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCheckComponentsForUpdates",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"preUpdateInfo",description:null,args:[],type:{kind:"OBJECT",name:"BlockletPreUpdateInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCheckDomains",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCheckNodeVersion",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseClearCache",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"removed",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateAccessKey",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"data",description:null,args:[],type:{kind:"OBJECT",name:"CreateAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateInvitation",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inviteInfo",description:null,args:[],type:{kind:"OBJECT",name:"InviteInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreatePassportIssuance",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"info",description:null,args:[],type:{kind:"OBJECT",name:"PassportIssuanceInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateTransferNodeInvitation",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inviteInfo",description:null,args:[],type:{kind:"OBJECT",name:"InviteInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateWebHook",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"webhook",description:null,args:[],type:{kind:"OBJECT",name:"WebHookSender",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDelegationState",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"state",description:null,args:[],type:{kind:"OBJECT",name:"DelegationState",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDeleteAccessKey",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDeleteNginxHttpsCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDeleteWebHook",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseFindCertificateByDomain",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cert",description:null,args:[],type:{kind:"OBJECT",name:"Certificate",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGateway",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"gateway",description:null,args:[],type:{kind:"OBJECT",name:"Gateway",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cacheEnabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetAuditLogs",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"AuditLog",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetAutoBackup",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoBackup",description:null,args:[],type:{kind:"OBJECT",name:"AutoBackup",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetAutoCheckUpdate",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoCheckUpdate",description:null,args:[],type:{kind:"OBJECT",name:"AutoCheckUpdate",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlockletBackups",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"backups",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Backup",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlockletNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Notification",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlockletSpaceGateways",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"spaceGateways",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"SpaceGateway",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlocklets",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blocklets",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletState",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetCertificates",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"certificates",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Certificate",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetDynamicComponents",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"components",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetInvitations",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"invitations",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"InviteInfo",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetLauncherSession",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"error",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"launcherSession",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetNodeEnv",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"info",description:null,args:[],type:{kind:"OBJECT",name:"NodeEnvInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetNodeInfo",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"info",description:null,args:[],type:{kind:"OBJECT",name:"NodeState",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Notification",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetPassportIssuances",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"PassportIssuanceInfo",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetProject",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"project",description:null,args:[],type:{kind:"OBJECT",name:"Project",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetProjects",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"projects",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Project",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRelease",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"release",description:null,args:[],type:{kind:"OBJECT",name:"Release",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetReleases",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"releases",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Release",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRoutingProviders",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"providers",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingProvider",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRoutingSites",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingSite",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRoutingSnapshots",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"snapshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingSnapshot",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetSelectedResources",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resources",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetSession",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"session",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetSnapshotSites",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingSite",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetTrafficInsights",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrafficInsight",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetUsersCount",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"count",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetUsersCountPerRole",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"counts",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"KeyValue",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseIsDidDomain",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseNodeRuntimeHistory",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"history",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"NodeHistoryItem",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponsePermission",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"permission",description:null,args:[],type:{kind:"OBJECT",name:"Permission",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponsePermissions",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"permissions",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Permission",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseProject",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"project",description:null,args:[],type:{kind:"OBJECT",name:"Project",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseReadBlockletNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"numAffected",description:null,args:[],type:{kind:"SCALAR",name:"Int32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseReadNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"numAffected",description:null,args:[],type:{kind:"SCALAR",name:"Int32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRelease",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"release",description:null,args:[],type:{kind:"OBJECT",name:"Release",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseResetNode",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRestartServer",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRole",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"OBJECT",name:"Role",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRoles",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"roles",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Role",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRoutingSite",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"site",description:null,args:[],type:{kind:"OBJECT",name:"RoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseSendMsg",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseSenderList",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"senders",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHookSender",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseTag",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tag",description:null,args:[],type:{kind:"OBJECT",name:"Tag",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseTags",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tags",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Tag",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseTakeRoutingSnapshot",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"hash",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUpdateAccessKey",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"data",description:null,args:[],type:{kind:"OBJECT",name:"AccessKey",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUpdateNginxHttpsCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUpgradeNodeVersion",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUser",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"user",description:null,args:[],type:{kind:"OBJECT",name:"UserInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUsers",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"users",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"UserInfo",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseWebHooks",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"webhooks",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHook",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Role",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"grants",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"extra",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingProvider",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"running",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"available",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"error",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRule",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"from",description:null,args:[],type:{kind:"OBJECT",name:"RoutingRuleFrom",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"to",description:null,args:[],type:{kind:"OBJECT",name:"RoutingRuleTo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRuleFrom",description:null,fields:[{name:"pathPrefix",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"header",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingRuleHeader",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRuleHeader",description:null,fields:[{name:"key",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"ENUM",name:"HeaderMatchType",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRuleTo",description:null,fields:[{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"ENUM",name:"BackendServiceType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"redirectCode",description:null,args:[],type:{kind:"SCALAR",name:"Int32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"interfaceName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"componentId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pageGroup",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingSite",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domainAliases",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Any",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"rules",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingRule",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"corsAllowedOrigins",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingSnapshot",description:null,fields:[{name:"hash",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tree",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"message",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"author",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RuntimeInfo",description:null,fields:[{name:"pid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uptime",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"memoryUsage",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpuUsage",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SessionConfig",description:null,fields:[{name:"cacheTtl",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ttl",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SimpleBlockletMeta",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SimpleBlockletState",description:null,fields:[{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"SimpleBlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"BlockletStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deployedFrom",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deletedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SpaceGateway",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"protected",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"endpoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Tag",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"color",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrafficInsight",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"date",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"totalRequests",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validRequests",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"failedRequests",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"generationTime",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueVisitors",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueFiles",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"excludedHits",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueReferrers",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueNotFound",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueStaticFiles",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logSize",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bandwidth",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedFactory",description:null,fields:[{name:"holderDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"factoryAddress",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passport",description:null,args:[],type:{kind:"OBJECT",name:"TrustedPassportMappingTo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassport",description:null,fields:[{name:"issuerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mappings",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassportMapping",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassportMapping",description:null,fields:[{name:"from",description:null,args:[],type:{kind:"OBJECT",name:"TrustedPassportMappingFrom",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"to",description:null,args:[],type:{kind:"OBJECT",name:"TrustedPassportMappingTo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassportMappingFrom",description:null,fields:[{name:"passport",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassportMappingTo",description:null,fields:[{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ttl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ttlPolicy",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"UpdateList",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"UserInfo",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"avatar",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fullName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"email",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"approved",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"locale",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Passport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"firstLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginIp",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sourceProvider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sourceAppPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"connectedAccounts",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConnectedAccount",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"extra",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tags",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Tag",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"didSpace",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WalletInfo",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WebHook",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"ENUM",name:"SenderType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"params",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHookParam",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WebHookParam",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"defaultValue",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WebHookSender",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"ENUM",name:"SenderType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"params",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHookParam",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"BackendServiceType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"daemon",description:null,isDeprecated:!1,deprecationReason:null},{name:"blocklet",description:null,isDeprecated:!1,deprecationReason:null},{name:"redirect",description:null,isDeprecated:!1,deprecationReason:null},{name:"none",description:null,isDeprecated:!1,deprecationReason:null},{name:"general_proxy",description:null,isDeprecated:!1,deprecationReason:null},{name:"direct_response",description:null,isDeprecated:!1,deprecationReason:null},{name:"rewrite",description:null,isDeprecated:!1,deprecationReason:null},{name:"component",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"BackupTo",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"spaces",description:null,isDeprecated:!1,deprecationReason:null},{name:"disk",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"BlockletSource",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"registry",description:null,isDeprecated:!1,deprecationReason:null},{name:"local",description:null,isDeprecated:!1,deprecationReason:null},{name:"upload",description:null,isDeprecated:!1,deprecationReason:null},{name:"url",description:null,isDeprecated:!1,deprecationReason:null},{name:"custom",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"BlockletStatus",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"added",description:null,isDeprecated:!1,deprecationReason:null},{name:"downloading",description:null,isDeprecated:!1,deprecationReason:null},{name:"downloaded",description:null,isDeprecated:!1,deprecationReason:null},{name:"installing",description:null,isDeprecated:!1,deprecationReason:null},{name:"installed",description:null,isDeprecated:!1,deprecationReason:null},{name:"starting",description:null,isDeprecated:!1,deprecationReason:null},{name:"running",description:null,isDeprecated:!1,deprecationReason:null},{name:"stopping",description:null,isDeprecated:!1,deprecationReason:null},{name:"stopped",description:null,isDeprecated:!1,deprecationReason:null},{name:"error",description:null,isDeprecated:!1,deprecationReason:null},{name:"upgrading",description:null,isDeprecated:!1,deprecationReason:null},{name:"restarting",description:null,isDeprecated:!1,deprecationReason:null},{name:"corrupted",description:null,isDeprecated:!1,deprecationReason:null},{name:"waiting",description:null,isDeprecated:!1,deprecationReason:null},{name:"deleted",description:null,isDeprecated:!1,deprecationReason:null},{name:"unknown",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"HeaderMatchType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"exact",description:null,isDeprecated:!1,deprecationReason:null},{name:"partial",description:null,isDeprecated:!1,deprecationReason:null},{name:"regexp",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"PublishType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"resource",description:null,isDeprecated:!1,deprecationReason:null},{name:"pack",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"ReleaseStatus",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"draft",description:null,isDeprecated:!1,deprecationReason:null},{name:"published",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"SenderType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"slack",description:null,isDeprecated:!1,deprecationReason:null},{name:"api",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"StatusCode",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"ok",description:null,isDeprecated:!1,deprecationReason:null},{name:"blocklet_not_found",description:null,isDeprecated:!1,deprecationReason:null},{name:"blocklet_not_purchased",description:null,isDeprecated:!1,deprecationReason:null},{name:"forbidden",description:null,isDeprecated:!1,deprecationReason:null},{name:"internal",description:null,isDeprecated:!1,deprecationReason:null},{name:"timeout",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"SCALAR",name:"Upload",description:"The `Upload` scalar type represents a file upload.",fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Mutation",description:null,fields:[{name:"installBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestVersionedBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"installComponent",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestInstallComponentInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stopBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"reloadBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"restartBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteComponent",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteComponentInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cancelDownloadBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"checkComponentsForUpdates",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCheckComponentsForUpdates",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"upgradeComponents",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configPublicToStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigPublicToStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configNavigations",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigNavigationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configOAuth",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigOAuthInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configNotification",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigNotificationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sendEmail",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestSendEmailInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"joinFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestJoinFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"quitFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestQuitFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"disbandFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDisbandFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configFederated",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigFederatedInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"auditFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAuditFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateWhoCanAccess",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateWhoCanAccessInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAppSessionConfig",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAppSessionConfigInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateComponentTitle",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateComponentTitleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateComponentMountPoint",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateComponentMountPointInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"backupBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBackupBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"restoreBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRestoreBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"migrateApplicationToStructV2",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestMigrateApplicationToStructV2Input",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addBlockletSpaceGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddBlockletSpaceGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteBlockletSpaceGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletSpaceGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateBlockletSpaceGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateBlockletSpaceGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAutoBackup",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAutoBackupInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAutoCheckUpdate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAutoCheckUpdateInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateNodeInfo",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"NodeInfoInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateNodeRouting",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestNodeRoutingInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"upgradeNodeVersion",description:null,args:[],type:{kind:"OBJECT",name:"ResponseUpgradeNodeVersion",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"restartServer",description:null,args:[],type:{kind:"OBJECT",name:"ResponseRestartServer",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resetNode",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestResetNodeInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseResetNode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGateway",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"clearCache",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestClearCacheInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseClearCache",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createMemberInvitation",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateInvitationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateInvitation",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createTransferInvitation",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateTransferNodeInvitationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateTransferNodeInvitation",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteInvitation",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteInvitationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createPassportIssuance",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreatePassportIssuanceInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreatePassportIssuance",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deletePassportIssuance",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteTeamSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configTrustedPassports",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigTrustedPassportsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configTrustedFactories",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigTrustedFactoriesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configPassportIssuance",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigPassportIssuanceInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"removeUser",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateUserTags",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateUserTagsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateUserExtra",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateUserExtraInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateUserApproval",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuePassportToUser",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestIssuePassportToUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"revokeUserPassport",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enableUserPassport",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"removeUserPassport",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"switchProfile",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestSwitchProfileInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createPermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreatePermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermission",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatePermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamPermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermission",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deletePermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeletePermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"grantPermissionForRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGrantPermissionForRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"revokePermissionFromRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokePermissionFromRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatePermissionsForRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdatePermissionsForRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"hasPermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestHasPermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"BooleanResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addBlockletStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestChangeBlockletStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteBlockletStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestChangeBlockletStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createTag",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTag",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateTag",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTag",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteTag",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTag",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"readNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"unreadNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"readBlockletNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadBlockletNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadBlockletNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"unreadBlockletNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadBlockletNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadBlockletNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addRoutingSite",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddRoutingSiteInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addDomainAlias",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddDomainAliasInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteDomainAlias",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteDomainAliasInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRoutingSite",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingSiteInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateRoutingSite",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingSiteInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addRoutingRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddRoutingRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateRoutingRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRoutingRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"takeRoutingSnapshot",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTakeRoutingSnapshotInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTakeRoutingSnapshot",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateCertificate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateNginxHttpsCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUpdateNginxHttpsCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addCertificate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddNginxHttpsCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseAddNginxHttpsCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteCertificate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteNginxHttpsCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseDeleteNginxHttpsCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issueLetsEncryptCert",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddLetsEncryptCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseAddLetsEncryptCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createAccessKey",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateAccessKeyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAccessKey",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAccessKeyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUpdateAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteAccessKey",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteAccessKeyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseDeleteAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createWebHook",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateWebHookInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateWebHook",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteWebHook",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteWebHookInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseDeleteWebHook",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestStartSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"endSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestEndSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseProject",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseProject",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createRelease",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateReleaseInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRelease",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRelease",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReleaseInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateSelectedResources",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateSelectedResourcesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Query",description:null,fields:[{name:"getBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletDetailInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletMetaFromUrl",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletMetaFromUrlInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletMetaFromUrl",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletDiff",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletDiffInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletDiff",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlocklets",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlocklets",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletRuntimeHistory",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletRuntimeHistoryInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletRuntimeHistory",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletsFromBackup",description:null,args:[],type:{kind:"OBJECT",name:"ResponseBlockletsFromBackup",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getDynamicComponents",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetDynamicComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetDynamicComponents",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNodeInfo",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resetNodeStatus",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNodeEnv",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetNodeEnv",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"checkNodeVersion",description:null,args:[],type:{kind:"OBJECT",name:"ResponseCheckNodeVersion",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getDelegationState",description:null,args:[],type:{kind:"OBJECT",name:"ResponseDelegationState",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNodeRuntimeHistory",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestNodeRuntimeHistoryInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseNodeRuntimeHistory",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletMeta",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletMetaInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlockletNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoutingSites",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetRoutingSitesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetRoutingSites",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoutingSnapshots",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetRoutingSnapshotsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetRoutingSnapshots",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getSnapshotSites",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetSnapshotSitesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSnapshotSites",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoutingProviders",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetRoutingProviders",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isDidDomain",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestIsDidDomainInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseIsDidDomain",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getCertificates",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetCertificates",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"checkDomains",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCheckDomainsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCheckDomains",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"findCertificateByDomain",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestFindCertificateByDomainInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseFindCertificateByDomain",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getAccessKeys",description:null,args:[],type:{kind:"OBJECT",name:"ResponseAccessKeys",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getWebHooks",description:null,args:[],type:{kind:"OBJECT",name:"ResponseWebHooks",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getWebhookSenders",description:null,args:[],type:{kind:"OBJECT",name:"ResponseSenderList",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sendTestMessage",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestSendMsgInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseSendMsg",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoles",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoles",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getPermissions",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermissions",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getInvitations",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetInvitations",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUsers",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUsersInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUsers",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUser",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUsersCount",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetUsersCount",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUsersCountPerRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetUsersCountPerRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getOwner",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getPermissionsByRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermissions",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getPassportIssuances",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetPassportIssuancesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetPassportIssuances",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getTags",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTags",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getAuditLogs",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetAuditLogsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetAuditLogs",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getLauncherSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetLauncherSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetLauncherSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletBackups",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletBackupsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlockletBackups",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletSpaceGateways",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlockletSpaceGateways",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getAutoBackup",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetAutoBackupInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetAutoBackup",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getAutoCheckUpdate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetAutoCheckUpdateInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetAutoCheckUpdate",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getTrafficInsights",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetTrafficInsightsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetTrafficInsights",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getProjects",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetProjectsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetProjects",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetProject",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getReleases",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetReleasesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetReleases",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRelease",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReleaseInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetRelease",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getSelectedResources",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetSelectedResourcesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSelectedResources",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:[{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"types",description:"A list of all types supported by this server.",args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"queryType",description:"The type that query operations will be rooted at.",args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"mutationType",description:"If this server supports mutation, the type that mutation operations will be rooted at.",args:[],type:{kind:"OBJECT",name:"__Type",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"subscriptionType",description:"If this server support subscription, the type that subscription operations will be rooted at.",args:[],type:{kind:"OBJECT",name:"__Type",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"directives",description:"A list of all directives supported by this server.",args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Directive",ofType:null}}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:[{name:"kind",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"ENUM",name:"__TypeKind",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"specifiedByURL",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fields",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Field",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"interfaces",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"possibleTypes",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"enumValues",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__EnumValue",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"inputFields",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"ofType",description:null,args:[],type:{kind:"OBJECT",name:"__Type",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",fields:null,inputFields:null,interfaces:null,enumValues:[{name:"SCALAR",description:"Indicates this type is a scalar.",isDeprecated:!1,deprecationReason:null},{name:"OBJECT",description:"Indicates this type is an object. `fields` and `interfaces` are valid fields.",isDeprecated:!1,deprecationReason:null},{name:"INTERFACE",description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.",isDeprecated:!1,deprecationReason:null},{name:"UNION",description:"Indicates this type is a union. `possibleTypes` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"ENUM",description:"Indicates this type is an enum. `enumValues` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_OBJECT",description:"Indicates this type is an input object. `inputFields` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"LIST",description:"Indicates this type is a list. `ofType` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"NON_NULL",description:"Indicates this type is a non-null. `ofType` is a valid field.",isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"OBJECT",name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"args",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"isDeprecated",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"deprecationReason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"defaultValue",description:"A GraphQL-formatted string representing the default value for this input value.",args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isDeprecated",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"deprecationReason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isDeprecated",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"deprecationReason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
1321
1321
|
|
|
1322
|
-
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isRepeatable",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"locations",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"ENUM",name:"__DirectiveLocation",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"args",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",fields:null,inputFields:null,interfaces:null,enumValues:[{name:"QUERY",description:"Location adjacent to a query operation.",isDeprecated:!1,deprecationReason:null},{name:"MUTATION",description:"Location adjacent to a mutation operation.",isDeprecated:!1,deprecationReason:null},{name:"SUBSCRIPTION",description:"Location adjacent to a subscription operation.",isDeprecated:!1,deprecationReason:null},{name:"FIELD",description:"Location adjacent to a field.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_DEFINITION",description:"Location adjacent to a fragment definition.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_SPREAD",description:"Location adjacent to a fragment spread.",isDeprecated:!1,deprecationReason:null},{name:"INLINE_FRAGMENT",description:"Location adjacent to an inline fragment.",isDeprecated:!1,deprecationReason:null},{name:"VARIABLE_DEFINITION",description:"Location adjacent to a variable definition.",isDeprecated:!1,deprecationReason:null},{name:"SCHEMA",description:"Location adjacent to a schema definition.",isDeprecated:!1,deprecationReason:null},{name:"SCALAR",description:"Location adjacent to a scalar definition.",isDeprecated:!1,deprecationReason:null},{name:"OBJECT",description:"Location adjacent to an object type definition.",isDeprecated:!1,deprecationReason:null},{name:"FIELD_DEFINITION",description:"Location adjacent to a field definition.",isDeprecated:!1,deprecationReason:null},{name:"ARGUMENT_DEFINITION",description:"Location adjacent to an argument definition.",isDeprecated:!1,deprecationReason:null},{name:"INTERFACE",description:"Location adjacent to an interface definition.",isDeprecated:!1,deprecationReason:null},{name:"UNION",description:"Location adjacent to a union definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM",description:"Location adjacent to an enum definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM_VALUE",description:"Location adjacent to an enum value definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_OBJECT",description:"Location adjacent to an input object type definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_FIELD_DEFINITION",description:"Location adjacent to an input object field definition.",isDeprecated:!1,deprecationReason:null}],possibleTypes:null}],B1t=[{name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Included when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Skipped when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:["FIELD_DEFINITION","ARGUMENT_DEFINITION","INPUT_FIELD_DEFINITION","ENUM_VALUE"],args:[{name:"reason",description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:'"No longer supported"'}]},{name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:["SCALAR"],args:[{name:"url",description:"The URL that specifies the behavior of this scalar.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},defaultValue:null}]}],N1t={queryType:O1t,mutationType:L1t,subscriptionType:P1t,types:M1t,directives:B1t},F1t=Hne,U1t=N1t;let H1t=class extends F1t{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"http://localhost:4000/api",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r={dataSource:"forge",httpEndpoint:t,socketEndpoint:()=>this._getSocketEndpoint(t),enableQuery:!0,enableSubscription:!0,enableMutation:!0,maxQueryDepth:6};super(r),this._endpoint=t,this._authToken=null,this._userAgent=n}setAuthToken(t){this._authToken=t}_getSocketEndpoint(t){let n=t.replace(/https?:\/\//,"ws://");return t.indexOf("https://")===0&&(n=n.replace("ws://","wss://")),"".concat(n,"/socket")}_getSchema(){return U1t}_getIgnoreFields(t){return[]}_getAuthHeaders(){const t={},n=this._authToken;if(n){const r=typeof n=="function"?n():n;t.Authorization="Bearer ".concat(encodeURIComponent(r))}if(typeof window<"u"&&typeof window.location<"u"){const{hostname:r,port:i,protocol:a}=window.location;t["x-real-hostname"]=r,t["x-real-port"]=i,t["x-real-protocol"]=a.endsWith(":")?a.substring(0,a.length-1):a}return this._userAgent&&(t["User-Agent"]=this._userAgent),t}};var j1t=H1t;const J1t=nQ,V1t=j1t;class q1t extends V1t{_getSocketOptions(){return{}}_getEventImplementation(){return J1t}}var G1t=q1t;const W1t=Ut(G1t),z1t=(window.env?window.env.apiPrefix:"/")||"/",yl=new W1t(()=>`${z1t}/api/gql?locale=${d6()}`.replace(/\/+/g,"/").trim());function K1t({wsClient:e,event:t,cb:n=()=>{},deps:r=[]}){z.useEffect(()=>{const i=e&&(!r.length||r.every(Boolean));return i&&e.on(t,n),()=>{i&&e.off(t,n)}},r)}let jc;function Mre(){const e=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),t=`//${window.location.host}${e}/admin`;return new qR.WsClient(t,{heartbeatIntervalMs:100*1e3,params:()=>({token:Br.get("login_token")})})}function Bre(){return jc||(jc=Mre()),jc}const RI=(e,t=()=>{},n=[])=>{e=`${window.blocklet.did}/${e}`;const{session:r}=SQ();!jc&&r.user&&(jc=Bre(),jc.connect()),K1t({wsClient:jc,event:e,cb:t,deps:n})};let Y5=null;const Y1t=async()=>{try{return(await eg.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},Z1t=()=>(Y5||(Y5=Y1t()),Y5),{Provider:X1t,Consumer:Dyt}=S$,Q1t=e=>e&&Bs(e,"settings.publicToStore")?e.settings.publicToStore:!1,emt=(e,t)=>{const n=/^{env\.(.+)}$/.exec(e);if(n&&n[1]){const r=((t==null?void 0:t.configs)||[]).find(i=>i.key===n[1]);return!r&&!r.value?"":r.value}return e},tmt=(()=>{const e={endpoint:"",data:{}};return async t=>{if(e.endpoint===t)return e.data;const r=await Jne(t).getConfig();return e.endpoint=t,e.data=r,r}})(),{did:md,appId:nmt}=window.env;function e1({children:e,mode:t}){const[n,r]=z.useState(null),[i,a]=z.useState(!1),[o,s]=z.useState(),[l,f]=z.useState({}),[c,d]=z.useState(),[p,g]=z.useState(),y=t==="setup",{loading:b,loadingRuntimeInfo:R,error:A,blocklet:$,recommendedDomain:D,runtimeHistory:M,actions:{refreshBlocklet:j,refreshDomainStatus:U,setBlocklet:V}}=Pat({did:md,client:yl,useSubscription:RI,getIP:Z1t,useLocaleContext:eE}),X=async()=>{try{a(!0),r(null);const{data:h}=await eg.get("/blocklet/meta");f(h),a(!1)}catch(h){a(!1),r(h),Ci.error(h.message)}},ie=async({showError:h=!0}={})=>{var k,ne;if(!((ne=(k=l==null?void 0:l.requirements)==null?void 0:k.fuels)!=null&&ne.length))return null;const{endpoint:E,value:S,address:C}=l.requirements.fuels[0],I=emt(E,$),x=S;let _=S;const v={endpoint:I,symbol:"",need:x,current:0,owe:Number(x)>0};try{const N=Jne(I),{config:q}=await tmt(I),re=JSON.parse(q).token;let ce=C;ce||(ce=re.address),g({address:re.address,symbol:re.symbol,decimal:re.decimal});const{getAccountState:{state:he},getTokenState:{state:_e}}=await N.doBatchQuery({getAccountState:{address:nmt},getTokenState:{address:ce}});_e&&(v.symbol=_e.symbol);const H=((he==null?void 0:he.tokens)||[]).find(L=>L.address===ce);if(H){const L=ai.fromTokenToUnit(x,H.decimal||18);v.current=ai.fromUnitToToken(H.value,H.decimal||18),v.owe=L.gt(new ai.BN(H.value)),_=Math.max(0,ai.fromUnitToToken(L.sub(new ai.BN(H.value)),H.decimal||18))}}catch(N){h&&Ci.error(N.message)}return d({...v,deficiency:_}),v},le=async({configs:h,childDid:E})=>(await yl.configBlocklet({input:{did:[md].concat(E).filter(Boolean),configs:h}}),j()),Q=async h=>{const{blocklet:E}=await yl.updateWhoCanAccess({input:{did:[md],whoCanAccess:h}});V(E)},P=async h=>{const{blocklet:E}=await yl.configPublicToStore({input:{did:md,publicToStore:h}});V(E)},T=async h=>{const{blocklet:E}=await yl.configNavigations({input:{did:md,navigations:h}});V(E)};z.useEffect(()=>{y&&X(),j({showError:!1})},[]),z.useEffect(()=>{if(!$||!($!=null&&$.controller))return;const{controller:h}=$;qit(h.chainHost,h.nftId).then(E=>{E.expirationDate=px.getNftExpirationDate(E),E.expired=px.isNFTExpired(E),s(E)}).catch(E=>console.error(E))},[$==null?void 0:$.appPid]);const u={loading:i||b,loadingRuntimeInfo:R,error:n||A,blocklet:$,did:md,recommendedDomain:D,runtimeHistory:M,appIdList:$?vte($):[],env:window.blocklet||{},meta:l,gas:c,tokenInfo:p,getPublicInstance:Q1t,nftState:o,client:yl,mode:t,actions:{refreshBlocklet:j,refreshDomainStatus:U,setBlocklet:V,refreshMeta:X,refreshFuel:ie,configBlocklet:le,configWhoCanAccess:Q,configPublicToStore:P,configNavigations:T}};return G.jsx(X1t,{value:u,children:e})}e1.propTypes={children:ge.any,mode:ge.oneOf(["dashboard","setup"]).isRequired};e1.defaultProps={children:null};function Oyt(){return z.useContext(S$)}const $I=z.createContext({});function Lyt(){const{node:e}=z.useContext($I);return{...e,inService:e.type==="service",inDaemon:e.type==="daemon"}}const{Provider:rmt,Consumer:Pyt}=$I,imt=`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function uj({children:e}){const{serverDid:t,serverVersion:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}=window.env,s={api:yl,restApi:eg,prefix:Zt.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix:imt,getSessionInHeader:()=>({}),ws:{getWsClient:Bre,create:Mre,useSubscription:RI},type:"service",info:{did:t,version:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}};return G.jsx(rmt,{value:{node:s},children:e})}function Myt(){const{node:e}=z.useContext($I);return e}const Nre=z.createContext({}),{Provider:amt,Consumer:Byt}=Nre;function omt({children:e}){const{did:t}=window.env,[n,r]=z.useState([]),[i,a]=z.useState({total:0,pageSize:10,pageCount:0,page:1}),[o,s]=z.useState(!1),l=async({page:c=1}={})=>{if(!o){s(!0);try{const d=await yl.getBlockletNotifications({input:{paging:{page:c},teamDid:t}});r(d.list),a(d.paging),s(!1)}catch(d){Ci.error(d.message),s(!1)}}};z.useEffect(()=>{l()},[]),RI(Zt.EVENTS.NOTIFICATION_BLOCKLET_CREATE,c=>{r(d=>[c,...d||[]])});const f={loading:o,refresh:l,data:n||[],paging:i,api:yl};return G.jsx(amt,{value:{notifications:f},children:e})}function Nyt(){const{notifications:e}=z.useContext(Nre);return e}const smt=z.lazy(()=>sn(()=>import("./login-q2pL4dsp.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),lmt=z.lazy(()=>sn(()=>import("./connect-FedFWzi2.js"),__vite__mapDeps([9,10,1,11,3,5,6,7]))),umt=z.lazy(()=>sn(()=>import("./exchange-passport-wc7qEw91.js"),__vite__mapDeps([12,11,13,14,15,16]))),cmt=z.lazy(()=>sn(()=>import("./issue-passport-ALJ4LERP.js"),__vite__mapDeps([17,18,19,15,20,1,21,22,16,13,14,3]))),fmt=z.lazy(()=>sn(()=>import("./lost-passport-gSdi28un.js"),__vite__mapDeps([23,22,19,15,24,25,26,13,1,16,27,28]))),dmt=z.lazy(()=>sn(()=>import("./start-bZtRlTDD.js"),__vite__mapDeps([29,2,25,26,15,30,31,32,33,34,3,35,4,36]))),pmt=z.lazy(()=>sn(()=>import("./setup-SgrcP2x-.js"),__vite__mapDeps([37,38,39,40,41,10,42,43,31,32,33,15,30,34,3]))),hmt=z.lazy(()=>sn(()=>import("./invite-8fJRRJDU.js"),__vite__mapDeps([44,18,19,15,20,1,21,22,16,13,14]))),mmt=z.lazy(()=>sn(()=>import("./transfer-aKSH1Uy1.js"),__vite__mapDeps([45,2,31,32,33,15,3,4]))),gmt=z.lazy(()=>sn(()=>import("./dashboard-mz_3k3VV.js").then(e=>e.v),__vite__mapDeps([46,47,48,15,49,50,21,51,14,52,33,19,26,53,54,55,56,57,58,27,16,41,10,42,43,2,59,60,61,62,40,63,32,64,34,3,65,8,7,4]))),cj=z.lazy(()=>sn(()=>import("./user-center-KRbkkANH.js"),__vite__mapDeps([66,67,59,61,62,40,63,60,32,68,69,42,70,47,71,72,73,53,10,74,75]))),ymt=z.lazy(()=>sn(()=>import("./home-eLiYj1ha.js"),__vite__mapDeps([76,77,61,62,40,63,59,2,3]))),vmt=z.lazy(()=>sn(()=>import("./preferences-Z_IC4nhp.js"),__vite__mapDeps([78,79,61,62,40,63,77,59,2]))),bmt=z.lazy(()=>sn(()=>import("./localization-8RqW246V.js"),__vite__mapDeps([80,77,61,62,40,63,59,2]))),Emt=z.lazy(()=>sn(()=>import("./add-resource-IzJ7fbHT.js"),__vite__mapDeps([81,82,71,83,19,15,84,70,55,49,26,33,38,39,40,41,10,42,43,85,86,87,88,89,24,90,16,91,92,93,94,95,14,96,97,54,98,64,57,99,100,101,52,53,102,21,25,28,103,104,105,106,59,107,108,58,109,63,110,111,34]))),fj=z.lazy(()=>sn(()=>import("./publish-resource-wxmmgOuK.js"),__vite__mapDeps([112,113,56,19,15,114,115,101,73,53,74,116,47,62,117,118,97,51,16,14,25,26,54,49,33,55,119,27,52,21,91,92,93,120,121,105,106,95,10,122,123,124,43,34,3]))),Tmt=z.lazy(()=>sn(()=>import("./index-Kxa_ePD2.js"),__vite__mapDeps([]))),Amt=z.lazy(()=>sn(()=>import("./unsubscribe-C8dEs1Ba.js"),__vite__mapDeps([125,3,36,4])));function wmt(){const e=Gs();z.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${e.pathname}${e.search}`)},[e]);const t=G.jsx(hp,{children:G.jsx(zq,{})});return G.jsx(z.Suspense,{fallback:t,children:G.jsxs(G_,{children:[G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:G.jsx(fmt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:G.jsx(cmt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:G.jsx(smt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:G.jsx(lmt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:G.jsx(umt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:G.jsx(hmt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:G.jsx(mmt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:G.jsx(ymt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:G.jsx(vmt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:G.jsx(bmt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:G.jsx(xc,{children:G.jsx(dmt,{})})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:G.jsx(e1,{mode:"setup",children:G.jsx(pmt,{})})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:G.jsx(Amt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:G.jsx(xc,{roles:["*"],children:G.jsx(cj,{})})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:G.jsx(xc,{roles:["*"],children:G.jsx(cj,{})})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:G.jsx(uj,{children:G.jsx(omt,{children:G.jsx(xc,{roles:["owner","admin","member"],children:G.jsx(e1,{mode:"dashboard",children:G.jsx(gmt,{})})})})})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:G.jsx(iq,{to:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:G.jsx(uj,{children:G.jsx(xc,{roles:["owner","admin"],children:G.jsx(e1,{mode:"dashboard",children:G.jsxs(G_,{children:[G.jsx(_r,{path:"publish",element:G.jsx(fj,{})}),G.jsx(_r,{path:"publish/*",element:G.jsx(fj,{})}),G.jsx(_r,{path:"add",element:G.jsx(Emt,{})}),G.jsx(_r,{path:"*",element:G.jsx(Tmt,{})})]})})})})})]})})}function Smt(){return G.jsx(zhe,{basename:Gne,children:G.jsx(bQe,{children:G.jsx(wmt,{})})})}const _mt=OV(document.getElementById("app"));_mt.render(G.jsx(Smt,{}));const xmt=Zt.WELLKNOWN_SERVICE_PATH_PREFIX;{async function e(){const{register:t}=await sn(()=>import("./index-7SG8bi1h.js"),__vite__mapDeps([]));t(`${xmt}/service-worker.js`.replace(/\/+/g,"/"),{registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(n){console.error("Error during service worker registration:",n)}})}e()}export{Di as $,Nl as A,wyt as B,hp as C,Tp as D,Syt as E,aW as F,l2 as G,$mt as H,ua as I,Zt as J,lYe as K,Zhe as L,eX as M,vQe as N,Rb as O,ge as P,zt as Q,Ir as R,zq as S,Ci as T,ir as U,q7 as V,si as W,uwe as X,yt as Y,Rt as Z,Ce as _,Kn as a,fat as a$,BOe as a0,Iyt as a1,bge as a2,S1 as a3,sW as a4,km as a5,B6 as a6,sn as a7,eg as a8,qit as a9,A6e as aA,B8 as aB,Gs as aC,A$ as aD,Is as aE,yi as aF,Ol as aG,z_ as aH,hq as aI,V7 as aJ,lC as aK,Wp as aL,wm as aM,HX as aN,jX as aO,uC as aP,eC as aQ,lQ as aR,_m as aS,Ut as aT,z6e as aU,lE as aV,G8 as aW,Sat as aX,Lyt as aY,Cgt as aZ,hat as a_,yl as aa,yat as ab,o8 as ac,La as ad,Ryt as ae,$yt as af,px as ag,syt as ah,Zd as ai,lat as aj,Ws as ak,Oyt as al,Cyt as am,xyt as an,Jct as ao,Gne as ap,uj as aq,G_ as ar,_r as as,iq as at,AE as au,Mgt as av,Dgt as aw,Ogt as ax,h$ as ay,Xi as az,tye as b,om as b$,Fgt as b0,mat as b1,gyt as b2,Igt as b3,fyt as b4,Ngt as b5,yyt as b6,Z0 as b7,tp as b8,FOe as b9,gz as bA,PQ as bB,Vne as bC,hR as bD,rC as bE,G3 as bF,tYe as bG,PX as bH,hgt as bI,iC as bJ,hh as bK,uz as bL,MPe as bM,xl as bN,ZZ as bO,ti as bP,us as bQ,P8 as bR,vo as bS,Lb as bT,Jq as bU,ss as bV,Cve as bW,Ii as bX,Vq as bY,Hs as bZ,lm as b_,RI as ba,i8 as bb,D1e as bc,$1e as bd,lyt as be,eyt as bf,dm as bg,Bgt as bh,Hit as bi,ryt as bj,Nyt as bk,Myt as bl,FK as bm,vyt as bn,Bre as bo,ghe as bp,tE as bq,eh as br,um as bs,cm as bt,zu as bu,Zn as bv,DR as bw,Yp as bx,ls as by,Bn as bz,wt as c,Rmt as c$,sm as c0,d8 as c1,Yd as c2,f8 as c3,jK as c4,Qge as c5,qme as c6,x1 as c7,W7 as c8,Hq as c9,Gmt as cA,Oq as cB,Yye as cC,Dq as cD,r0e as cE,jye as cF,lc as cG,D1 as cH,of as cI,Gq as cJ,mq as cK,Kf as cL,Ub as cM,S6 as cN,cz as cO,dE as cP,eDe as cQ,v$ as cR,b$ as cS,Agt as cT,Ez as cU,uW as cV,Qo as cW,mn as cX,Em as cY,$m as cZ,H8 as c_,gq as ca,D3 as cb,Z1 as cc,O3e as cd,jb as ce,J7 as cf,s0e as cg,l0e as ch,Pu as ci,u0e as cj,f0e as ck,mf as cl,Pb as cm,h8 as cn,F8 as co,oC as cp,bz as cq,Wmt as cr,zmt as cs,fE as ct,U6 as cu,et as cv,Eyt as cw,xz as cx,BK as cy,Yq as cz,ur as d,sE as d$,M7 as d0,nge as d1,Ll as d2,Bmt as d3,Bq as d4,Mmt as d5,am as d6,ugt as d7,Xye as d8,Zq as d9,tyt as dA,iyt as dB,Uq as dC,WKe as dD,Aa as dE,byt as dF,JOe as dG,OV as dH,jit as dI,pat as dJ,dyt as dK,aat as dL,oyt as dM,Ygt as dN,qF as dO,Zmt as dP,cat as dQ,Fit as dR,Qgt as dS,gat as dT,vat as dU,jct as dV,$it as dW,myt as dX,xgt as dY,wE as dZ,Zgt as d_,pgt as da,b6 as db,_gt as dc,CX as dd,Tz as de,Az as df,QE as dg,Qye as dh,Vmt as di,wDe as dj,vE as dk,HOe as dl,C6 as dm,Er as dn,mE as dp,gE as dq,sf as dr,ii as ds,Ba as dt,fge as du,Ft as dv,Wgt as dw,Xgt as dx,Bs as dy,Hgt as dz,G7 as e,jRe as e$,bKe as e0,IKe as e1,MQ as e2,W8 as e3,cRe as e4,Z$e as e5,Q$e as e6,g8 as e7,lG as e8,TC as e9,Wq as eA,rme as eB,W1e as eC,fm as eD,Hmt as eE,jmt as eF,lge as eG,Umt as eH,Nmt as eI,QL as eJ,oge as eK,ef as eL,Iye as eM,Jmt as eN,Pl as eO,Kq as eP,Mye as eQ,e6 as eR,rge as eS,fye as eT,Mb as eU,Wye as eV,Fmt as eW,E4e as eX,T4e as eY,IRe as eZ,egt as e_,sge as ea,uE as eb,xU as ec,A6 as ed,agt as ee,Iz as ef,cDe as eg,kz as eh,PP as ei,LP as ej,aDe as ek,sgt as el,Xt as em,Lmt as en,Omt as eo,Dmt as ep,Pmt as eq,U8 as er,bf as es,xm as et,xGe as eu,jG as ev,Bu as ew,Rz as ex,nyt as ey,J1e as ez,Gt as f,rK as f$,tgt as f0,Jn as f1,$$e as f2,my as f3,z$e as f4,DP as f5,ogt as f6,SDe as f7,n0 as f8,kDe as f9,Br as fA,Uee as fB,Qz as fC,Cmt as fD,Vgt as fE,Ggt as fF,Ayt as fG,Kgt as fH,jte as fI,Jne as fJ,S0e as fK,Ugt as fL,qgt as fM,fgt as fN,zgt as fO,Eat as fP,Aat as fQ,Uit as fR,Jit as fS,RW as fT,xE as fU,LK as fV,kmt as fW,Zz as fX,hW as fY,Pgt as fZ,h1e as f_,Tl as fa,m1e as fb,dGe as fc,sat as fd,_yt as fe,hte as ff,jU as fg,ai as fh,jgt as fi,UX as fj,I8 as fk,yAe as fl,k8 as fm,eit as fn,O8 as fo,Wu as fp,kgt as fq,dK as fr,Cit as fs,EC as ft,Lgt as fu,Jgt as fv,ayt as fw,cyt as fx,_at as fy,Tat as fz,qn as g,tC as g0,pze as g1,$Ce as g2,B$ as g3,N$ as g4,Dp as g5,Sgt as g6,$gt as g7,dgt as g8,uyt as g9,o0e as gA,sy as gB,dat as gC,uat as gD,bat as gE,Pee as gF,Tve as gG,oE as gH,Ml as gI,uve as gJ,cT as gK,xKe as gL,j8 as gM,kOe as gN,Qmt as gO,Xmt as gP,Xz as gQ,Hi as gR,_Z as gS,pyt as gT,yz as gU,fz as gV,GLe as gW,VF as ga,W3 as gb,cgt as gc,WDe as gd,L1 as ge,t6 as gf,Rgt as gg,Ymt as gh,Dwe as gi,_we as gj,q$e as gk,ngt as gl,LIe as gm,Pke as gn,Ike as go,rgt as gp,Mke as gq,igt as gr,dDe as gs,lgt as gt,Imt as gu,bC as gv,dke as gw,a$e as gx,xw as gy,qmt as gz,Yt as h,nr as i,G as j,bm as k,eE as l,On as m,SQ as n,Q2 as o,rf as p,en as q,z as r,Bb as s,_t as t,m8 as u,Rm as v,Vi as w,fR as x,dh as y,Hm as z};
|
|
1322
|
+
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isRepeatable",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"locations",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"ENUM",name:"__DirectiveLocation",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"args",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",fields:null,inputFields:null,interfaces:null,enumValues:[{name:"QUERY",description:"Location adjacent to a query operation.",isDeprecated:!1,deprecationReason:null},{name:"MUTATION",description:"Location adjacent to a mutation operation.",isDeprecated:!1,deprecationReason:null},{name:"SUBSCRIPTION",description:"Location adjacent to a subscription operation.",isDeprecated:!1,deprecationReason:null},{name:"FIELD",description:"Location adjacent to a field.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_DEFINITION",description:"Location adjacent to a fragment definition.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_SPREAD",description:"Location adjacent to a fragment spread.",isDeprecated:!1,deprecationReason:null},{name:"INLINE_FRAGMENT",description:"Location adjacent to an inline fragment.",isDeprecated:!1,deprecationReason:null},{name:"VARIABLE_DEFINITION",description:"Location adjacent to a variable definition.",isDeprecated:!1,deprecationReason:null},{name:"SCHEMA",description:"Location adjacent to a schema definition.",isDeprecated:!1,deprecationReason:null},{name:"SCALAR",description:"Location adjacent to a scalar definition.",isDeprecated:!1,deprecationReason:null},{name:"OBJECT",description:"Location adjacent to an object type definition.",isDeprecated:!1,deprecationReason:null},{name:"FIELD_DEFINITION",description:"Location adjacent to a field definition.",isDeprecated:!1,deprecationReason:null},{name:"ARGUMENT_DEFINITION",description:"Location adjacent to an argument definition.",isDeprecated:!1,deprecationReason:null},{name:"INTERFACE",description:"Location adjacent to an interface definition.",isDeprecated:!1,deprecationReason:null},{name:"UNION",description:"Location adjacent to a union definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM",description:"Location adjacent to an enum definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM_VALUE",description:"Location adjacent to an enum value definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_OBJECT",description:"Location adjacent to an input object type definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_FIELD_DEFINITION",description:"Location adjacent to an input object field definition.",isDeprecated:!1,deprecationReason:null}],possibleTypes:null}],B1t=[{name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Included when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Skipped when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:["FIELD_DEFINITION","ARGUMENT_DEFINITION","INPUT_FIELD_DEFINITION","ENUM_VALUE"],args:[{name:"reason",description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:'"No longer supported"'}]},{name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:["SCALAR"],args:[{name:"url",description:"The URL that specifies the behavior of this scalar.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},defaultValue:null}]}],N1t={queryType:O1t,mutationType:L1t,subscriptionType:P1t,types:M1t,directives:B1t},F1t=Hne,U1t=N1t;let H1t=class extends F1t{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"http://localhost:4000/api",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r={dataSource:"forge",httpEndpoint:t,socketEndpoint:()=>this._getSocketEndpoint(t),enableQuery:!0,enableSubscription:!0,enableMutation:!0,maxQueryDepth:6};super(r),this._endpoint=t,this._authToken=null,this._userAgent=n}setAuthToken(t){this._authToken=t}_getSocketEndpoint(t){let n=t.replace(/https?:\/\//,"ws://");return t.indexOf("https://")===0&&(n=n.replace("ws://","wss://")),"".concat(n,"/socket")}_getSchema(){return U1t}_getIgnoreFields(t){return[]}_getAuthHeaders(){const t={},n=this._authToken;if(n){const r=typeof n=="function"?n():n;t.Authorization="Bearer ".concat(encodeURIComponent(r))}if(typeof window<"u"&&typeof window.location<"u"){const{hostname:r,port:i,protocol:a}=window.location;t["x-real-hostname"]=r,t["x-real-port"]=i,t["x-real-protocol"]=a.endsWith(":")?a.substring(0,a.length-1):a}return this._userAgent&&(t["User-Agent"]=this._userAgent),t}};var j1t=H1t;const J1t=nQ,V1t=j1t;class q1t extends V1t{_getSocketOptions(){return{}}_getEventImplementation(){return J1t}}var G1t=q1t;const W1t=Ut(G1t),z1t=(window.env?window.env.apiPrefix:"/")||"/",yl=new W1t(()=>`${z1t}/api/gql?locale=${d6()}`.replace(/\/+/g,"/").trim());function K1t({wsClient:e,event:t,cb:n=()=>{},deps:r=[]}){z.useEffect(()=>{const i=e&&(!r.length||r.every(Boolean));return i&&e.on(t,n),()=>{i&&e.off(t,n)}},r)}let jc;function Mre(){const e=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),t=`//${window.location.host}${e}/admin`;return new qR.WsClient(t,{heartbeatIntervalMs:100*1e3,params:()=>({token:Br.get("login_token")})})}function Bre(){return jc||(jc=Mre()),jc}const RI=(e,t=()=>{},n=[])=>{e=`${window.blocklet.did}/${e}`;const{session:r}=SQ();!jc&&r.user&&(jc=Bre(),jc.connect()),K1t({wsClient:jc,event:e,cb:t,deps:n})};let Y5=null;const Y1t=async()=>{try{return(await eg.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},Z1t=()=>(Y5||(Y5=Y1t()),Y5),{Provider:X1t,Consumer:Dyt}=S$,Q1t=e=>e&&Bs(e,"settings.publicToStore")?e.settings.publicToStore:!1,emt=(e,t)=>{const n=/^{env\.(.+)}$/.exec(e);if(n&&n[1]){const r=((t==null?void 0:t.configs)||[]).find(i=>i.key===n[1]);return!r&&!r.value?"":r.value}return e},tmt=(()=>{const e={endpoint:"",data:{}};return async t=>{if(e.endpoint===t)return e.data;const r=await Jne(t).getConfig();return e.endpoint=t,e.data=r,r}})(),{did:md,appId:nmt}=window.env;function e1({children:e,mode:t}){const[n,r]=z.useState(null),[i,a]=z.useState(!1),[o,s]=z.useState(),[l,f]=z.useState({}),[c,d]=z.useState(),[p,g]=z.useState(),y=t==="setup",{loading:b,loadingRuntimeInfo:R,error:A,blocklet:$,recommendedDomain:D,runtimeHistory:M,actions:{refreshBlocklet:j,refreshDomainStatus:U,setBlocklet:V}}=Pat({did:md,client:yl,useSubscription:RI,getIP:Z1t,useLocaleContext:eE}),X=async()=>{try{a(!0),r(null);const{data:h}=await eg.get("/blocklet/meta");f(h),a(!1)}catch(h){a(!1),r(h),Ci.error(h.message)}},ie=async({showError:h=!0}={})=>{var k,ne;if(!((ne=(k=l==null?void 0:l.requirements)==null?void 0:k.fuels)!=null&&ne.length))return null;const{endpoint:E,value:S,address:C}=l.requirements.fuels[0],I=emt(E,$),x=S;let _=S;const v={endpoint:I,symbol:"",need:x,current:0,owe:Number(x)>0};try{const N=Jne(I),{config:q}=await tmt(I),re=JSON.parse(q).token;let ce=C;ce||(ce=re.address),g({address:re.address,symbol:re.symbol,decimal:re.decimal});const{getAccountState:{state:he},getTokenState:{state:_e}}=await N.doBatchQuery({getAccountState:{address:nmt},getTokenState:{address:ce}});_e&&(v.symbol=_e.symbol);const H=((he==null?void 0:he.tokens)||[]).find(L=>L.address===ce);if(H){const L=ai.fromTokenToUnit(x,H.decimal||18);v.current=ai.fromUnitToToken(H.value,H.decimal||18),v.owe=L.gt(new ai.BN(H.value)),_=Math.max(0,ai.fromUnitToToken(L.sub(new ai.BN(H.value)),H.decimal||18))}}catch(N){h&&Ci.error(N.message)}return d({...v,deficiency:_}),v},le=async({configs:h,childDid:E})=>(await yl.configBlocklet({input:{did:[md].concat(E).filter(Boolean),configs:h}}),j()),Q=async h=>{const{blocklet:E}=await yl.updateWhoCanAccess({input:{did:[md],whoCanAccess:h}});V(E)},P=async h=>{const{blocklet:E}=await yl.configPublicToStore({input:{did:md,publicToStore:h}});V(E)},T=async h=>{const{blocklet:E}=await yl.configNavigations({input:{did:md,navigations:h}});V(E)};z.useEffect(()=>{y&&X(),j({showError:!1})},[]),z.useEffect(()=>{if(!$||!($!=null&&$.controller))return;const{controller:h}=$;qit(h.chainHost,h.nftId).then(E=>{E.expirationDate=px.getNftExpirationDate(E),E.expired=px.isNFTExpired(E),s(E)}).catch(E=>console.error(E))},[$==null?void 0:$.appPid]);const u={loading:i||b,loadingRuntimeInfo:R,error:n||A,blocklet:$,did:md,recommendedDomain:D,runtimeHistory:M,appIdList:$?vte($):[],env:window.blocklet||{},meta:l,gas:c,tokenInfo:p,getPublicInstance:Q1t,nftState:o,client:yl,mode:t,actions:{refreshBlocklet:j,refreshDomainStatus:U,setBlocklet:V,refreshMeta:X,refreshFuel:ie,configBlocklet:le,configWhoCanAccess:Q,configPublicToStore:P,configNavigations:T}};return G.jsx(X1t,{value:u,children:e})}e1.propTypes={children:ge.any,mode:ge.oneOf(["dashboard","setup"]).isRequired};e1.defaultProps={children:null};function Oyt(){return z.useContext(S$)}const $I=z.createContext({});function Lyt(){const{node:e}=z.useContext($I);return{...e,inService:e.type==="service",inDaemon:e.type==="daemon"}}const{Provider:rmt,Consumer:Pyt}=$I,imt=`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function uj({children:e}){const{serverDid:t,serverVersion:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}=window.env,s={api:yl,restApi:eg,prefix:Zt.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix:imt,getSessionInHeader:()=>({}),ws:{getWsClient:Bre,create:Mre,useSubscription:RI},type:"service",info:{did:t,version:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}};return G.jsx(rmt,{value:{node:s},children:e})}function Myt(){const{node:e}=z.useContext($I);return e}const Nre=z.createContext({}),{Provider:amt,Consumer:Byt}=Nre;function omt({children:e}){const{did:t}=window.env,[n,r]=z.useState([]),[i,a]=z.useState({total:0,pageSize:10,pageCount:0,page:1}),[o,s]=z.useState(!1),l=async({page:c=1}={})=>{if(!o){s(!0);try{const d=await yl.getBlockletNotifications({input:{paging:{page:c},teamDid:t}});r(d.list),a(d.paging),s(!1)}catch(d){Ci.error(d.message),s(!1)}}};z.useEffect(()=>{l()},[]),RI(Zt.EVENTS.NOTIFICATION_BLOCKLET_CREATE,c=>{r(d=>[c,...d||[]])});const f={loading:o,refresh:l,data:n||[],paging:i,api:yl};return G.jsx(amt,{value:{notifications:f},children:e})}function Nyt(){const{notifications:e}=z.useContext(Nre);return e}const smt=z.lazy(()=>sn(()=>import("./login-rfrF2Cur.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),lmt=z.lazy(()=>sn(()=>import("./connect-sU3gSssk.js"),__vite__mapDeps([9,10,1,11,3,5,6,7]))),umt=z.lazy(()=>sn(()=>import("./exchange-passport-DCatUSSt.js"),__vite__mapDeps([12,11,13,14,15,16]))),cmt=z.lazy(()=>sn(()=>import("./issue-passport-jAawdTqX.js"),__vite__mapDeps([17,18,19,15,20,1,21,22,16,13,14,3]))),fmt=z.lazy(()=>sn(()=>import("./lost-passport-LEWrhtsE.js"),__vite__mapDeps([23,22,19,15,24,25,26,13,1,16,27,28]))),dmt=z.lazy(()=>sn(()=>import("./start-H2I7Lm2C.js"),__vite__mapDeps([29,2,25,26,15,30,31,32,33,34,3,35,4,36]))),pmt=z.lazy(()=>sn(()=>import("./setup-uCg5vw2w.js"),__vite__mapDeps([37,38,39,40,41,10,42,43,31,32,33,15,30,34,3]))),hmt=z.lazy(()=>sn(()=>import("./invite-N6dQR5ZR.js"),__vite__mapDeps([44,18,19,15,20,1,21,22,16,13,14]))),mmt=z.lazy(()=>sn(()=>import("./transfer-E04XdHU6.js"),__vite__mapDeps([45,2,31,32,33,15,3,4]))),gmt=z.lazy(()=>sn(()=>import("./dashboard-UpN-Xcgd.js").then(e=>e.v),__vite__mapDeps([46,47,48,15,49,50,21,51,14,52,33,19,26,53,54,55,56,57,58,27,16,41,10,42,43,2,59,60,61,62,40,63,32,64,34,3,65,8,7,4]))),cj=z.lazy(()=>sn(()=>import("./user-center-hP5WNwoA.js"),__vite__mapDeps([66,67,59,61,62,40,63,60,32,68,69,42,70,47,71,72,73,53,10,74,75]))),ymt=z.lazy(()=>sn(()=>import("./home-5ePzabyN.js"),__vite__mapDeps([76,77,61,62,40,63,59,2,3]))),vmt=z.lazy(()=>sn(()=>import("./preferences-NjSKRtT2.js"),__vite__mapDeps([78,79,61,62,40,63,77,59,2]))),bmt=z.lazy(()=>sn(()=>import("./localization-CAKlYD8P.js"),__vite__mapDeps([80,77,61,62,40,63,59,2]))),Emt=z.lazy(()=>sn(()=>import("./add-resource-8SDMQ09o.js"),__vite__mapDeps([81,82,71,83,19,15,84,70,55,49,26,33,38,39,40,41,10,42,43,85,86,87,88,89,24,90,16,91,92,93,94,95,14,96,97,54,98,64,57,99,100,101,52,53,102,21,25,28,103,104,105,106,59,107,108,58,109,63,110,111,34]))),fj=z.lazy(()=>sn(()=>import("./publish-resource-NlVYECa8.js"),__vite__mapDeps([112,113,56,19,15,114,115,101,73,53,74,116,47,62,117,118,97,51,16,14,25,26,54,49,33,55,119,27,52,21,91,92,93,120,121,105,106,95,10,122,123,124,43,34,3]))),Tmt=z.lazy(()=>sn(()=>import("./index-H7NK0Hav.js"),__vite__mapDeps([]))),Amt=z.lazy(()=>sn(()=>import("./unsubscribe-iO8zsaz8.js"),__vite__mapDeps([125,3,36,4])));function wmt(){const e=Gs();z.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${e.pathname}${e.search}`)},[e]);const t=G.jsx(hp,{children:G.jsx(zq,{})});return G.jsx(z.Suspense,{fallback:t,children:G.jsxs(G_,{children:[G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:G.jsx(fmt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:G.jsx(cmt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:G.jsx(smt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:G.jsx(lmt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:G.jsx(umt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:G.jsx(hmt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:G.jsx(mmt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:G.jsx(ymt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:G.jsx(vmt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:G.jsx(bmt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:G.jsx(xc,{children:G.jsx(dmt,{})})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:G.jsx(e1,{mode:"setup",children:G.jsx(pmt,{})})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:G.jsx(Amt,{})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:G.jsx(xc,{roles:["*"],children:G.jsx(cj,{})})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:G.jsx(xc,{roles:["*"],children:G.jsx(cj,{})})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:G.jsx(uj,{children:G.jsx(omt,{children:G.jsx(xc,{roles:["owner","admin","member"],children:G.jsx(e1,{mode:"dashboard",children:G.jsx(gmt,{})})})})})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:G.jsx(iq,{to:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),G.jsx(_r,{path:`${Zt.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:G.jsx(uj,{children:G.jsx(xc,{roles:["owner","admin"],children:G.jsx(e1,{mode:"dashboard",children:G.jsxs(G_,{children:[G.jsx(_r,{path:"publish",element:G.jsx(fj,{})}),G.jsx(_r,{path:"publish/*",element:G.jsx(fj,{})}),G.jsx(_r,{path:"add",element:G.jsx(Emt,{})}),G.jsx(_r,{path:"*",element:G.jsx(Tmt,{})})]})})})})})]})})}function Smt(){return G.jsx(zhe,{basename:Gne,children:G.jsx(bQe,{children:G.jsx(wmt,{})})})}const _mt=OV(document.getElementById("app"));_mt.render(G.jsx(Smt,{}));const xmt=Zt.WELLKNOWN_SERVICE_PATH_PREFIX;{async function e(){const{register:t}=await sn(()=>import("./index-7SG8bi1h.js"),__vite__mapDeps([]));t(`${xmt}/service-worker.js`.replace(/\/+/g,"/"),{registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(n){console.error("Error during service worker registration:",n)}})}e()}export{Di as $,Nl as A,wyt as B,hp as C,Tp as D,Syt as E,aW as F,l2 as G,$mt as H,ua as I,Zt as J,lYe as K,Zhe as L,eX as M,vQe as N,Rb as O,ge as P,zt as Q,Ir as R,zq as S,Ci as T,ir as U,q7 as V,si as W,uwe as X,yt as Y,Rt as Z,Ce as _,Kn as a,fat as a$,BOe as a0,Iyt as a1,bge as a2,S1 as a3,sW as a4,km as a5,B6 as a6,sn as a7,eg as a8,qit as a9,A6e as aA,B8 as aB,Gs as aC,A$ as aD,Is as aE,yi as aF,Ol as aG,z_ as aH,hq as aI,V7 as aJ,lC as aK,Wp as aL,wm as aM,HX as aN,jX as aO,uC as aP,eC as aQ,lQ as aR,_m as aS,Ut as aT,z6e as aU,lE as aV,G8 as aW,Sat as aX,Lyt as aY,Cgt as aZ,hat as a_,yl as aa,yat as ab,o8 as ac,La as ad,Ryt as ae,$yt as af,px as ag,syt as ah,Zd as ai,lat as aj,Ws as ak,Oyt as al,Cyt as am,xyt as an,Jct as ao,Gne as ap,uj as aq,G_ as ar,_r as as,iq as at,AE as au,Mgt as av,Dgt as aw,Ogt as ax,h$ as ay,Xi as az,tye as b,om as b$,Fgt as b0,mat as b1,gyt as b2,Igt as b3,fyt as b4,Ngt as b5,yyt as b6,Z0 as b7,tp as b8,FOe as b9,gz as bA,PQ as bB,Vne as bC,hR as bD,rC as bE,G3 as bF,tYe as bG,PX as bH,hgt as bI,iC as bJ,hh as bK,uz as bL,MPe as bM,xl as bN,ZZ as bO,ti as bP,us as bQ,P8 as bR,vo as bS,Lb as bT,Jq as bU,ss as bV,Cve as bW,Ii as bX,Vq as bY,Hs as bZ,lm as b_,RI as ba,i8 as bb,D1e as bc,$1e as bd,lyt as be,eyt as bf,dm as bg,Bgt as bh,Hit as bi,ryt as bj,Nyt as bk,Myt as bl,FK as bm,vyt as bn,Bre as bo,ghe as bp,tE as bq,eh as br,um as bs,cm as bt,zu as bu,Zn as bv,DR as bw,Yp as bx,ls as by,Bn as bz,wt as c,Rmt as c$,sm as c0,d8 as c1,Yd as c2,f8 as c3,jK as c4,Qge as c5,qme as c6,x1 as c7,W7 as c8,Hq as c9,Gmt as cA,Oq as cB,Yye as cC,Dq as cD,r0e as cE,jye as cF,lc as cG,D1 as cH,of as cI,Gq as cJ,mq as cK,Kf as cL,Ub as cM,S6 as cN,cz as cO,dE as cP,eDe as cQ,v$ as cR,b$ as cS,Agt as cT,Ez as cU,uW as cV,Qo as cW,mn as cX,Em as cY,$m as cZ,H8 as c_,gq as ca,D3 as cb,Z1 as cc,O3e as cd,jb as ce,J7 as cf,s0e as cg,l0e as ch,Pu as ci,u0e as cj,f0e as ck,mf as cl,Pb as cm,h8 as cn,F8 as co,oC as cp,bz as cq,Wmt as cr,zmt as cs,fE as ct,U6 as cu,et as cv,Eyt as cw,xz as cx,BK as cy,Yq as cz,ur as d,sE as d$,M7 as d0,nge as d1,Ll as d2,Bmt as d3,Bq as d4,Mmt as d5,am as d6,ugt as d7,Xye as d8,Zq as d9,tyt as dA,iyt as dB,Uq as dC,WKe as dD,Aa as dE,byt as dF,JOe as dG,OV as dH,jit as dI,pat as dJ,dyt as dK,aat as dL,oyt as dM,Ygt as dN,qF as dO,Zmt as dP,cat as dQ,Fit as dR,Qgt as dS,gat as dT,vat as dU,jct as dV,$it as dW,myt as dX,xgt as dY,wE as dZ,Zgt as d_,pgt as da,b6 as db,_gt as dc,CX as dd,Tz as de,Az as df,QE as dg,Qye as dh,Vmt as di,wDe as dj,vE as dk,HOe as dl,C6 as dm,Er as dn,mE as dp,gE as dq,sf as dr,ii as ds,Ba as dt,fge as du,Ft as dv,Wgt as dw,Xgt as dx,Bs as dy,Hgt as dz,G7 as e,jRe as e$,bKe as e0,IKe as e1,MQ as e2,W8 as e3,cRe as e4,Z$e as e5,Q$e as e6,g8 as e7,lG as e8,TC as e9,Wq as eA,rme as eB,W1e as eC,fm as eD,Hmt as eE,jmt as eF,lge as eG,Umt as eH,Nmt as eI,QL as eJ,oge as eK,ef as eL,Iye as eM,Jmt as eN,Pl as eO,Kq as eP,Mye as eQ,e6 as eR,rge as eS,fye as eT,Mb as eU,Wye as eV,Fmt as eW,E4e as eX,T4e as eY,IRe as eZ,egt as e_,sge as ea,uE as eb,xU as ec,A6 as ed,agt as ee,Iz as ef,cDe as eg,kz as eh,PP as ei,LP as ej,aDe as ek,sgt as el,Xt as em,Lmt as en,Omt as eo,Dmt as ep,Pmt as eq,U8 as er,bf as es,xm as et,xGe as eu,jG as ev,Bu as ew,Rz as ex,nyt as ey,J1e as ez,Gt as f,rK as f$,tgt as f0,Jn as f1,$$e as f2,my as f3,z$e as f4,DP as f5,ogt as f6,SDe as f7,n0 as f8,kDe as f9,Br as fA,Uee as fB,Qz as fC,Cmt as fD,Vgt as fE,Ggt as fF,Ayt as fG,Kgt as fH,jte as fI,Jne as fJ,S0e as fK,Ugt as fL,qgt as fM,fgt as fN,zgt as fO,Eat as fP,Aat as fQ,Uit as fR,Jit as fS,RW as fT,xE as fU,LK as fV,kmt as fW,Zz as fX,hW as fY,Pgt as fZ,h1e as f_,Tl as fa,m1e as fb,dGe as fc,sat as fd,_yt as fe,hte as ff,jU as fg,ai as fh,jgt as fi,UX as fj,I8 as fk,yAe as fl,k8 as fm,eit as fn,O8 as fo,Wu as fp,kgt as fq,dK as fr,Cit as fs,EC as ft,Lgt as fu,Jgt as fv,ayt as fw,cyt as fx,_at as fy,Tat as fz,qn as g,tC as g0,pze as g1,$Ce as g2,B$ as g3,N$ as g4,Dp as g5,Sgt as g6,$gt as g7,dgt as g8,uyt as g9,o0e as gA,sy as gB,dat as gC,uat as gD,bat as gE,Pee as gF,Tve as gG,oE as gH,Ml as gI,uve as gJ,cT as gK,xKe as gL,j8 as gM,kOe as gN,Qmt as gO,Xmt as gP,Xz as gQ,Hi as gR,_Z as gS,pyt as gT,yz as gU,fz as gV,GLe as gW,VF as ga,W3 as gb,cgt as gc,WDe as gd,L1 as ge,t6 as gf,Rgt as gg,Ymt as gh,Dwe as gi,_we as gj,q$e as gk,ngt as gl,LIe as gm,Pke as gn,Ike as go,rgt as gp,Mke as gq,igt as gr,dDe as gs,lgt as gt,Imt as gu,bC as gv,dke as gw,a$e as gx,xw as gy,qmt as gz,Yt as h,nr as i,G as j,bm as k,eE as l,On as m,SQ as n,Q2 as o,rf as p,en as q,z as r,Bb as s,_t as t,m8 as u,Rm as v,Vi as w,fR as x,dh as y,Hm as z};
|
|
1323
1323
|
function __vite__mapDeps(indexes) {
|
|
1324
1324
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
1325
|
-
__vite__mapDeps.viteFileDeps = ["assets/login-
|
|
1325
|
+
__vite__mapDeps.viteFileDeps = ["assets/login-rfrF2Cur.js","assets/use-passport-id-pXgWCnyq.js","assets/createSvgIcon-j58drKza.js","assets/Box-wC1DaiGM.js","assets/Typography-7BaU4rMH.js","assets/Tooltip-IqBOP7yE.js","assets/useTheme-2SjM2dAw.js","assets/useSlotProps-ov-tJvVD.js","assets/ButtonBase-y-I9S5ql.js","assets/connect-sU3gSssk.js","assets/index-XZuSftjk.js","assets/fullpage-C15C9Cxy.js","assets/exchange-passport-DCatUSSt.js","assets/wrap-locale-DICshMp9.js","assets/CircularProgress-2E7FsVpy.js","assets/styled-0kjic46e.js","assets/Box-UZKPIg5l.js","assets/issue-passport-jAawdTqX.js","assets/invitation-3WWriyVt.js","assets/createSvgIcon-kg0p2IW6.js","assets/index-PZQWptd6.js","assets/session--6YbzF22.js","assets/CheckCircle-60AM0ITf.js","assets/lost-passport-LEWrhtsE.js","assets/Done-IUW8sxba.js","assets/did-address-KX8MZujh.js","assets/Link-4d7RYuFQ.js","assets/Avatar-rCJCajEU.js","assets/Stepper-MKCGeshB.js","assets/start-H2I7Lm2C.js","assets/ServerLogo-UsfyzMmv.js","assets/addon-QeLrGOdX.js","assets/selector-Dk6vMXQs.js","assets/IconButton-opaehSAi.js","assets/useMediaQuery-mRt2C6pY.js","assets/Link-P3Cgz37T.js","assets/Paper-xlcAcZNb.js","assets/setup-uCg5vw2w.js","assets/config-space-lWhx9oKc.js","assets/Skeleton-Sko1dhMc.js","assets/Hidden--yepz0pM.js","assets/spaces-ckJ3F4TJ.js","assets/index-fjKBcmH5.js","assets/api-wjvMMbke.js","assets/invite-N6dQR5ZR.js","assets/transfer-E04XdHU6.js","assets/dashboard-UpN-Xcgd.js","assets/index-yufFTVXz.js","assets/permission-DRuKjUv8.js","assets/Menu-anPorR00.js","assets/useAsync-zNEgPETV.js","assets/index-4krLq-ni.js","assets/useLocalStorage-XI5ozNRv.js","assets/createStack-Ql4z3puD.js","assets/confirm-6Jdys1hj.js","assets/index-wZoARVEY.js","assets/useSetState-Uk84-eN2.js","assets/ListItemText-pzMz-_8U.js","assets/Chip-ay1aqrwj.js","assets/fallback-U1OX2XSx.js","assets/index-Z09DYyo5.js","assets/index-av1Ii_pg.js","assets/Toolbar-TavQhk9k.js","assets/ExpandMore-73ZaztzD.js","assets/listItemButtonClasses-zLzjLEQ1.js","assets/IconButton-8UYGgxfo.js","assets/user-center-hP5WNwoA.js","assets/index-IZZ7I0WA.js","assets/index-9lo56i1W.js","assets/RevokeIcon-EG-Tgs1P.js","assets/index-9udvO7eN.js","assets/uniqBy-2Vt9UR0B.js","assets/index-8MsQJXFD.js","assets/FormControlLabel-k9sTwU-b.js","assets/TextField-egkc1TLq.js","assets/InputAdornment-01BB-IUi.js","assets/home-5ePzabyN.js","assets/studio-ouCJArpF.js","assets/preferences-NjSKRtT2.js","assets/iframe-pCAFtFXo.js","assets/localization-CAKlYD8P.js","assets/add-resource-8SDMQ09o.js","assets/add-component-core-_1fUrUnH.js","assets/page-header-4ASw0dHi.js","assets/use-blocklet-info-for-connect-did-spaces-mNvG04f3.js","assets/lottie-G1otoBC8.js","assets/launch-result-message-cX2DdrLk.js","assets/index-HH-12DL3.js","assets/EditIcon-ole9UoIn.js","assets/Close-acdEKFOx.js","assets/Google-WU1ZvKo9.js","assets/TextField-BYLq4y6q.js","assets/Select-1kfqC4Cs.js","assets/InputLabel-S5ITR0B1.js","assets/logo-uploader-ExzbUiFI.js","assets/index-m4TSpDqh.js","assets/jss-plugin-props-sort.esm-xdjEY1uR.js","assets/toPropertyKey-NzAT2yhV.js","assets/ListItem-hAjlDna0.js","assets/util-v8NIXura.js","assets/index-iY6yR8LR.js","assets/Search-g3D9ZMg2.js","assets/index-F_tmMgba.js","assets/Launch-St5GEv7j.js","assets/Add-aR533i12.js","assets/DeleteOutline-mJxIIf_E.js","assets/click-to-copy-vmaq823F.js","assets/preact.module-yJdvQMHZ.js","assets/connect-to-43P2EzeD.js","assets/index-CFCBI32Y.js","assets/content-layout-uMjojnsj.js","assets/add-component-core-wegghUnI.css","assets/publish-resource-NlVYECa8.js","assets/index-_bZjDFhP.js","assets/index-cFZ_La2w.js","assets/FilterList-SI94bUfz.js","assets/Grid-C0yrXHv6.js","assets/index-WdzhUrFb.js","assets/redux-XOuz_cVf.js","assets/ChevronRight-gVrMbICn.js","assets/InputAdornment-b8lVK7li.js","assets/Download-pM5Y1uk4.js","assets/ExpandMore-QGwDyScz.js","assets/OpenInNew-vpsAPHUY.js","assets/Collapse-7L2PLAwX.js","assets/unsubscribe-iO8zsaz8.js"]
|
|
1326
1326
|
}
|
|
1327
1327
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
1328
1328
|
}
|