@abtnode/blocklet-services 1.16.22-beta-5bf86cd3 → 1.16.22-beta-87e027a7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/dist/assets/{Add-HY80r9Xl.js → Add-fjbSIcnc.js} +1 -1
  2. package/dist/assets/{Alert-cCkZfPX9.js → Alert-nav821gk.js} +1 -1
  3. package/dist/assets/{ArrowDropDown-Oh-T-P-J.js → ArrowDropDown-HzxvBXz1.js} +1 -1
  4. package/dist/assets/{Autocomplete-kezcFnoc.js → Autocomplete-FZ1Hog9u.js} +1 -1
  5. package/dist/assets/{Avatar-jwVmwAdK.js → Avatar-4W2iSGC-.js} +1 -1
  6. package/dist/assets/{ButtonGroup-VMcij_v9.js → ButtonGroup-qjjm6C6u.js} +1 -1
  7. package/dist/assets/{CardContent-56wHk5L-.js → CardContent-hsa9cKyn.js} +1 -1
  8. package/dist/assets/{CheckCircle-_9dSYOvH.js → CheckCircle-htlybHjr.js} +1 -1
  9. package/dist/assets/{Checkbox-1a8RFsS4.js → Checkbox-iS0aPWS5.js} +1 -1
  10. package/dist/assets/{ChevronRight-DuewvW-I.js → ChevronRight-7cKIhy5z.js} +1 -1
  11. package/dist/assets/{DeleteOutline-8lAl_yeQ.js → DeleteOutline-QxqDOFWu.js} +1 -1
  12. package/dist/assets/{DialogContentText-4V6Sm4oF.js → DialogContentText-2StByoPg.js} +1 -1
  13. package/dist/assets/{Done-FhqUT9hq.js → Done-ApQZxhfW.js} +1 -1
  14. package/dist/assets/{Download-tyWSwX6I.js → Download-eudDXSjG.js} +1 -1
  15. package/dist/assets/{Edit-5S1lkpDv.js → Edit-4h5n3zVg.js} +1 -1
  16. package/dist/assets/{EditIcon-np_ORzEB.js → EditIcon-CEHYlrp-.js} +1 -1
  17. package/dist/assets/{ExpandMore-dUKN4QRy.js → ExpandMore-JmnmUnd8.js} +1 -1
  18. package/dist/assets/{FilterList--9H9DyuC.js → FilterList-rU96K2al.js} +1 -1
  19. package/dist/assets/{FormControl-21-o3Ons.js → FormControl-U_6qW76h.js} +1 -1
  20. package/dist/assets/{FormControlLabel-1hNnMean.js → FormControlLabel-Yzi0VkLB.js} +1 -1
  21. package/dist/assets/{FormGroup-7d3FZFIj.js → FormGroup-6byJTUh5.js} +1 -1
  22. package/dist/assets/{Google-VkSesQr-.js → Google-0MAQRWrd.js} +1 -1
  23. package/dist/assets/{Grid-EWzEHkzI.js → Grid-G2b-U3nu.js} +1 -1
  24. package/dist/assets/{Hidden-V9GBUhSY.js → Hidden-SKwxA9k1.js} +1 -1
  25. package/dist/assets/{Icon-4r9LeAsN.js → Icon-9CFlKIHS.js} +1 -1
  26. package/dist/assets/{InfoOutlined-pdQhXF08.js → InfoOutlined-0GqWWO-f.js} +1 -1
  27. package/dist/assets/{InputAdornment--qKRyOTU.js → InputAdornment-iwL7P_Vm.js} +1 -1
  28. package/dist/assets/{InputLabel-5mwp9YPR.js → InputLabel-qtx_TKpe.js} +1 -1
  29. package/dist/assets/{LastPage-pSqTT0C0.js → LastPage-pHa4HGK_.js} +1 -1
  30. package/dist/assets/{Launch-NG3M5y72.js → Launch-gJCQmpyL.js} +1 -1
  31. package/dist/assets/{LaunchOutlined-XOhr4FLd.js → LaunchOutlined-WAN0Led7.js} +1 -1
  32. package/dist/assets/{ListItem-wpvL3uzC.js → ListItem-kYIyq9wN.js} +1 -1
  33. package/dist/assets/{LockIcon-agQ4kFqe.js → LockIcon-e6UtCqfh.js} +1 -1
  34. package/dist/assets/{Loop-IzHJ-Vey.js → Loop-PXldOGkJ.js} +1 -1
  35. package/dist/assets/{MoreHoriz-KVrwkgt7.js → MoreHoriz-1QS3N81v.js} +1 -1
  36. package/dist/assets/{MoreVert-glDwWv1Q.js → MoreVert-b_wUncc4.js} +1 -1
  37. package/dist/assets/{OpenInNew-gFVniujG.js → OpenInNew-cyQNIeON.js} +1 -1
  38. package/dist/assets/{Pagination-R_vvTBsr.js → Pagination-yeBOKJgc.js} +1 -1
  39. package/dist/assets/{PlayArrow-ZBpW76Bk.js → PlayArrow-DsCR1WAD.js} +1 -1
  40. package/dist/assets/{RadioGroup-auvSkCcq.js → RadioGroup-MeoNWf5B.js} +1 -1
  41. package/dist/assets/{Search-b15PzLFw.js → Search-pq50dDMP.js} +1 -1
  42. package/dist/assets/{Select-wrtQaiA7.js → Select-1vnu6Wod.js} +1 -1
  43. package/dist/assets/{ServerLogo-vGEnqfsW.js → ServerLogo-RRmp6mc-.js} +1 -1
  44. package/dist/assets/{Skeleton-JafD3Ykz.js → Skeleton-bmmJmS0u.js} +1 -1
  45. package/dist/assets/{Slider-7ZGPyLpu.js → Slider-24UR9uuQ.js} +1 -1
  46. package/dist/assets/{Stepper-5Hb9COkE.js → Stepper-V9gE9w3-.js} +1 -1
  47. package/dist/assets/{TableRow-iLylb6bH.js → TableRow-7b-DLFKT.js} +1 -1
  48. package/dist/assets/{TextField-F6GRkv0f.js → TextField-HfFRez76.js} +1 -1
  49. package/dist/assets/{Toolbar-PzPFhxha.js → Toolbar-z-FYIGbv.js} +1 -1
  50. package/dist/assets/{access-control-ivdVi3Zl.js → access-control-140xtlbD.js} +1 -1
  51. package/dist/assets/{actions-RmsyI4AF.js → actions-c_BF9d9e.js} +1 -1
  52. package/dist/assets/{add-component-core-pThuc3SC.js → add-component-core-cwUA8ONY.js} +1 -1
  53. package/dist/assets/add-resource-iCbxZ67X.js +1 -0
  54. package/dist/assets/{addon-1k5Qtdur.js → addon-7yjXaIX_.js} +1 -1
  55. package/dist/assets/{analytics-uuu9J4YR.js → analytics-b1UCJ6Cn.js} +6 -6
  56. package/dist/assets/api-Rgr2QdHb.js +1 -0
  57. package/dist/assets/{audit-logs-lr4aoBwP.js → audit-logs-poKE0OY8.js} +1 -1
  58. package/dist/assets/{button-49q1l_Jk.js → button-lOeSUgmq.js} +1 -1
  59. package/dist/assets/{click-to-copy-7zmc8KM7.js → click-to-copy-H2O9ZAs8.js} +1 -1
  60. package/dist/assets/{complete-ksaTDs1d.js → complete--aJHmuMX.js} +1 -1
  61. package/dist/assets/{component-cmCcdsTc.js → component-O_4jZEKT.js} +1 -1
  62. package/dist/assets/{config-zfsyTfJt.js → config-Fxb0qTJ0.js} +1 -1
  63. package/dist/assets/{config-LAgF_LFO.js → config-_s2-tqfS.js} +1 -1
  64. package/dist/assets/{config-navigation-kgGhXvRG.js → config-navigation-YoH5FRo8.js} +1 -1
  65. package/dist/assets/{confirm-IbJOM7N5.js → confirm-Q5y49s7X.js} +1 -1
  66. package/dist/assets/{confirm-K5PhyaSE.js → confirm-yusCbmM9.js} +1 -1
  67. package/dist/assets/{connect-BZeJn_ku.js → connect-91kkXTrG.js} +1 -1
  68. package/dist/assets/{connect-iXFYp-0V.js → connect-tamQdAs3.js} +1 -1
  69. package/dist/assets/{content-layout-tLfWld_B.js → content-layout-P9P08qyU.js} +1 -1
  70. package/dist/assets/{dashboard-5KQ5Ur-Q.js → dashboard-wLNTNF45.js} +3 -3
  71. package/dist/assets/{did-address-5kO4ybvH.js → did-address-fR8IBME6.js} +1 -1
  72. package/dist/assets/{did-utils-N2ScOA2Z.js → did-utils-LIvwQDYN.js} +1 -1
  73. package/dist/assets/domain-list-lVne43El.js +12 -0
  74. package/dist/assets/{domain-1ugSZkUL.js → domain-zuaklUGn.js} +1 -1
  75. package/dist/assets/{exchange-passport-1R-azVMk.js → exchange-passport-T-h-OnRN.js} +1 -1
  76. package/dist/assets/{fallback-ZY6DEOHk.js → fallback-wCdaTD2t.js} +1 -1
  77. package/dist/assets/{format-error-fstt_Fgi.js → format-error-iCYgDtF5.js} +1 -1
  78. package/dist/assets/{fuel-tuPlyXKK.js → fuel-KNzdaW-g.js} +1 -1
  79. package/dist/assets/{fullpage-NJyn5uuM.js → fullpage-JCH-m3GS.js} +1 -1
  80. package/dist/assets/{home-0It-dY_Q.js → home-Po2ga9wZ.js} +1 -1
  81. package/dist/assets/{iframe-s-BtzLfM.js → iframe-5bCtjLAp.js} +1 -1
  82. package/dist/assets/{index-YqUiAZGc.js → index-2HiYYWCO.js} +1 -1
  83. package/dist/assets/{index-w1QUchsj.js → index-3S1MajfA.js} +1 -1
  84. package/dist/assets/{index-oY9Vc1OW.js → index-3kUoZ2Ef.js} +1 -1
  85. package/dist/assets/{index-d8x_hsVZ.js → index-4MBFFo4b.js} +1 -1
  86. package/dist/assets/{index-jlbXeg5y.js → index-7N0uMPlx.js} +1 -1
  87. package/dist/assets/{index-ibSCib5c.js → index-8qpwDSzw.js} +3 -3
  88. package/dist/assets/{index-FjIp0UlP.js → index-C7hr4YV8.js} +1 -1
  89. package/dist/assets/{index-akHKEyYq.js → index-FMCeh-OO.js} +1 -1
  90. package/dist/assets/{index-bZ3vw6Xd.js → index-FT9kP6qN.js} +1 -1
  91. package/dist/assets/{index-6Ubs0JHb.js → index-GG6_BZrf.js} +1 -1
  92. package/dist/assets/{index-BptLF0Yu.js → index-GsSFMKbP.js} +1 -1
  93. package/dist/assets/{index-FKI4Ry1a.js → index-KswRO1Cx.js} +1 -1
  94. package/dist/assets/{index-qpETE7Qh.js → index-NURviigq.js} +1 -1
  95. package/dist/assets/{index-CVik65v1.js → index-R3dXtQXo.js} +1 -1
  96. package/dist/assets/{index-Y2RH7k2W.js → index-SVSv1xqW.js} +1 -1
  97. package/dist/assets/{index-lDqI9_-C.js → index-_typwRVC.js} +1 -1
  98. package/dist/assets/{index-Q3a71wh1.js → index-auhYXn_h.js} +1 -1
  99. package/dist/assets/{index-0Rghu4i-.js → index-ax5KBcO9.js} +3 -3
  100. package/dist/assets/{index-7WXVYQMt.js → index-dQP0j7rR.js} +1 -1
  101. package/dist/assets/{index-gKtAtARS.js → index-hnUD7mNC.js} +1 -1
  102. package/dist/assets/{index-DUU1rMX-.js → index-lnLE9M77.js} +1 -1
  103. package/dist/assets/{index-MReLu9-n.js → index-nBzqT-lu.js} +1 -1
  104. package/dist/assets/{index-vU8oFfNB.js → index-nNJj_XhL.js} +1 -1
  105. package/dist/assets/{index-5ZG2oxzS.js → index-nXJuMgJq.js} +1 -1
  106. package/dist/assets/{index-YQvahN6T.js → index-p4r1RVIJ.js} +1 -1
  107. package/dist/assets/{index-QDdzoXvu.js → index-q4YuEk6Y.js} +1 -1
  108. package/dist/assets/{index-feKj5cCa.js → index-uIKkPDx2.js} +3 -3
  109. package/dist/assets/{index.es-KNfd6PLa.js → index.es-vxViMQsn.js} +1 -1
  110. package/dist/assets/{index.esm-MvqHB13x.js → index.esm-xVa55Zup.js} +1 -1
  111. package/dist/assets/{invite-U7HV2bOf.js → invite-EUhwRkSk.js} +1 -1
  112. package/dist/assets/{issue-passport--ANeRPcP.js → issue-passport-Z7ofkA6K.js} +1 -1
  113. package/dist/assets/{jss-plugin-props-sort.esm-HmYxbLE7.js → jss-plugin-props-sort.esm-NWykbogG.js} +1 -1
  114. package/dist/assets/{launch-result-message-TcQH4jpT.js → launch-result-message-E79l1MGN.js} +1 -1
  115. package/dist/assets/{layout-zmTL5DYX.js → layout-ZhSAbpLd.js} +1 -1
  116. package/dist/assets/{list-header--Vhbpfw2.js → list-header-OJgTzNF1.js} +1 -1
  117. package/dist/assets/localization-cO5MmVsH.js +1 -0
  118. package/dist/assets/{log-kNDVvJse.js → log-4VclxlhZ.js} +1 -1
  119. package/dist/assets/{login-05AF3rUX.js → login-7XksV0rI.js} +1 -1
  120. package/dist/assets/{logo-uploader-e3Of5exH.js → logo-uploader-enkwnhCD.js} +3 -3
  121. package/dist/assets/{lost-passport-0uO9Guj6.js → lost-passport-cJF6p-67.js} +3 -3
  122. package/dist/assets/{lottie-GIsmz4wu.js → lottie-2uuZhpDU.js} +1 -1
  123. package/dist/assets/{memoize-one.esm-pefuu-zN.js → memoize-one.esm-Y0hnttfr.js} +1 -1
  124. package/dist/assets/{nav-menu-_j09OYoV.js → nav-menu-2LU_iiMs.js} +1 -1
  125. package/dist/assets/{notifications-Ldr7opjk.js → notifications-Y8Uw-nJi.js} +1 -1
  126. package/dist/assets/{overview-1XL_Qiy2.js → overview-9xOIDQ82.js} +1 -1
  127. package/dist/assets/{page-header-LWFGDoxM.js → page-header-CBzxlYad.js} +1 -1
  128. package/dist/assets/{permission-sTjN-J07.js → permission-K-J3su8S.js} +1 -1
  129. package/dist/assets/preferences-d-eWeFvi.js +1 -0
  130. package/dist/assets/publish-resource-4G2Mwb1d.js +1 -0
  131. package/dist/assets/{react-Z9fqICoT.js → react-QMgqj51s.js} +3 -3
  132. package/dist/assets/{selector-r-EEnzvL.js → selector-ykYLL3HG.js} +1 -1
  133. package/dist/assets/session-4pK31v9z.js +1 -0
  134. package/dist/assets/{setup-yyKjCHgl.js → setup-vcogg-M1.js} +3 -3
  135. package/dist/assets/{slicedToArray-VCxJChO9.js → slicedToArray-ttVd16Np.js} +2 -2
  136. package/dist/assets/{spaces-3IB4aUW-.js → spaces-ciJpOZGt.js} +1 -1
  137. package/dist/assets/{start-_dD57MgC.js → start-uztJSUel.js} +1 -1
  138. package/dist/assets/{step-actions-u5wVgCmC.js → step-actions-DJIhDuRf.js} +1 -1
  139. package/dist/assets/{studio-HE-dnqpB.js → studio--sQ-x80O.js} +1 -1
  140. package/dist/assets/{switch-control-QtA6jhKG.js → switch-control-HdRcPAzs.js} +1 -1
  141. package/dist/assets/{transfer-jfS_LJKL.js → transfer-3Gc3ycMl.js} +1 -1
  142. package/dist/assets/{uniqBy-VUHiGwLF.js → uniqBy-k-IuKA35.js} +1 -1
  143. package/dist/assets/{unsubscribe-dTRW-kgU.js → unsubscribe-XLKaVY1Y.js} +1 -1
  144. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-0kF4SQU7.js → use-blocklet-info-for-connect-did-spaces-3Ylh35kg.js} +1 -1
  145. package/dist/assets/{useAsync-Dmz5YLn0.js → useAsync-eueWQMQv.js} +1 -1
  146. package/dist/assets/{useFormControl-mI0MPYsh.js → useFormControl-egCRc-oY.js} +1 -1
  147. package/dist/assets/{useLocalStorage-aRRflkTR.js → useLocalStorage--e-ZnzAS.js} +1 -1
  148. package/dist/assets/{useSetState-a6nBCmZL.js → useSetState-FhUMbwgE.js} +1 -1
  149. package/dist/assets/{user-7RZ8cZci.js → user-waJ6JIkq.js} +1 -1
  150. package/dist/assets/{util-rU2tRtqs.js → util-ScgYi65n.js} +1 -1
  151. package/dist/assets/{wallet-hidden-topbar-fLm2f0hp.js → wallet-hidden-topbar-4xE3Zmur.js} +3 -3
  152. package/dist/assets/{wrap-locale-A7IdT91x.js → wrap-locale-eKtYETDv.js} +1 -1
  153. package/dist/index.html +1 -1
  154. package/package.json +18 -18
  155. package/dist/assets/add-resource-6vlgGZkJ.js +0 -1
  156. package/dist/assets/api-JcbF2ZX8.js +0 -1
  157. package/dist/assets/domain-list-UlkqWCsm.js +0 -12
  158. package/dist/assets/localization-vCyo8i6n.js +0 -1
  159. package/dist/assets/preferences-VK9P9jKD.js +0 -1
  160. package/dist/assets/publish-resource-sQE_SSQq.js +0 -1
  161. package/dist/assets/session-otHGC7d2.js +0 -1
@@ -627,7 +627,7 @@ function print() { __p += __j.call(arguments, '') }
627
627
  `}return Ne.substring(0,Ne.length-1)},_.renderTo2dContext=function(U,O){O=O||2;for(var Z=_.getModuleCount(),z=0;z<Z;z++)for(var te=0;te<Z;te++)U.fillStyle=_.isDark(z,te)?"black":"white",U.fillRect(z*O,te*O,O,O)},_};c.stringToBytes=(c.stringToBytesFuncs={default:function(E){for(var u=[],h=0;h<E.length;h+=1){var b=E.charCodeAt(h);u.push(255&b)}return u}}).default,c.createStringToBytes=function(E,u){var h=function(){for(var S=ee(E),R=function(){var ne=S.read();if(ne==-1)throw"eof";return ne},$=0,x={};;){var _=S.read();if(_==-1)break;var v=R(),k=R()<<8|R();x[String.fromCharCode(_<<8|v)]=k,$+=1}if($!=u)throw $+" != "+u;return x}(),b=63;return function(S){for(var R=[],$=0;$<S.length;$+=1){var x=S.charCodeAt($);if(x<128)R.push(x);else{var _=h[S.charAt($)];typeof _=="number"?(255&_)==_?R.push(_):(R.push(_>>>8),R.push(255&_)):R.push(b)}}return R}};var d,p,y,g,T,C={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,y=7973,T=function(E){for(var u=0;E!=0;)u+=1,E>>>=1;return u},(g={}).getBCHTypeInfo=function(E){for(var u=E<<10;T(u)-T(p)>=0;)u^=p<<T(u)-T(p);return 21522^(E<<10|u)},g.getBCHTypeNumber=function(E){for(var u=E<<12;T(u)-T(y)>=0;)u^=y<<T(u)-T(y);return E<<12|u},g.getPatternPosition=function(E){return d[E-1]},g.getMaskFunction=function(E){switch(E){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:"+E}},g.getErrorCorrectPolynomial=function(E){for(var u=D([1],0),h=0;h<E;h+=1)u=u.multiply(D([1,I.gexp(h)],0));return u},g.getLengthInBits=function(E,u){if(1<=u&&u<10)switch(E){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+E}else if(u<27)switch(E){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+E}else{if(!(u<41))throw"type:"+u;switch(E){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+E}}},g.getLostPoint=function(E){for(var u=E.getModuleCount(),h=0,b=0;b<u;b+=1)for(var S=0;S<u;S+=1){for(var R=0,$=E.isDark(b,S),x=-1;x<=1;x+=1)if(!(b+x<0||u<=b+x))for(var _=-1;_<=1;_+=1)S+_<0||u<=S+_||x==0&&_==0||$==E.isDark(b+x,S+_)&&(R+=1);R>5&&(h+=3+R-5)}for(b=0;b<u-1;b+=1)for(S=0;S<u-1;S+=1){var v=0;E.isDark(b,S)&&(v+=1),E.isDark(b+1,S)&&(v+=1),E.isDark(b,S+1)&&(v+=1),E.isDark(b+1,S+1)&&(v+=1),v!=0&&v!=4||(h+=3)}for(b=0;b<u;b+=1)for(S=0;S<u-6;S+=1)E.isDark(b,S)&&!E.isDark(b,S+1)&&E.isDark(b,S+2)&&E.isDark(b,S+3)&&E.isDark(b,S+4)&&!E.isDark(b,S+5)&&E.isDark(b,S+6)&&(h+=40);for(S=0;S<u;S+=1)for(b=0;b<u-6;b+=1)E.isDark(b,S)&&!E.isDark(b+1,S)&&E.isDark(b+2,S)&&E.isDark(b+3,S)&&E.isDark(b+4,S)&&!E.isDark(b+5,S)&&E.isDark(b+6,S)&&(h+=40);var k=0;for(S=0;S<u;S+=1)for(b=0;b<u;b+=1)E.isDark(b,S)&&(k+=1);return h+Math.abs(100*k/u/u-50)/5*10},g),I=function(){for(var E=new Array(256),u=new Array(256),h=0;h<8;h+=1)E[h]=1<<h;for(h=8;h<256;h+=1)E[h]=E[h-4]^E[h-5]^E[h-6]^E[h-8];for(h=0;h<255;h+=1)u[E[h]]=h;return{glog:function(b){if(b<1)throw"glog("+b+")";return u[b]},gexp:function(b){for(;b<0;)b+=255;for(;b>=256;)b-=255;return E[b]}}}();function D(E,u){if(E.length===void 0)throw E.length+"/"+u;var h=function(){for(var S=0;S<E.length&&E[S]==0;)S+=1;for(var R=new Array(E.length-S+u),$=0;$<E.length-S;$+=1)R[$]=E[$+S];return R}(),b={getAt:function(S){return h[S]},getLength:function(){return h.length},multiply:function(S){for(var R=new Array(b.getLength()+S.getLength()-1),$=0;$<b.getLength();$+=1)for(var x=0;x<S.getLength();x+=1)R[$+x]^=I.gexp(I.glog(b.getAt($))+I.glog(S.getAt(x)));return D(R,0)},mod:function(S){if(b.getLength()-S.getLength()<0)return b;for(var R=I.glog(b.getAt(0))-I.glog(S.getAt(0)),$=new Array(b.getLength()),x=0;x<b.getLength();x+=1)$[x]=b.getAt(x);for(x=0;x<S.getLength();x+=1)$[x]^=I.gexp(I.glog(S.getAt(x))+R);return D($,0).mod(S)}};return b}var M=function(){var E=[[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(b,S){var R={};return R.totalCount=b,R.dataCount=S,R},h={getRSBlocks:function(b,S){var R=function(q,ie){switch(ie){case C.L:return E[4*(q-1)+0];case C.M:return E[4*(q-1)+1];case C.Q:return E[4*(q-1)+2];case C.H:return E[4*(q-1)+3];default:return}}(b,S);if(R===void 0)throw"bad rs block @ typeNumber:"+b+"/errorCorrectionLevel:"+S;for(var $=R.length/3,x=[],_=0;_<$;_+=1)for(var v=R[3*_+0],k=R[3*_+1],ne=R[3*_+2],B=0;B<v;B+=1)x.push(u(k,ne));return x}};return h}(),J=function(){var E=[],u=0,h={getBuffer:function(){return E},getAt:function(b){var S=Math.floor(b/8);return(E[S]>>>7-b%8&1)==1},put:function(b,S){for(var R=0;R<S;R+=1)h.putBit((b>>>S-R-1&1)==1)},getLengthInBits:function(){return u},putBit:function(b){var S=Math.floor(u/8);E.length<=S&&E.push(0),b&&(E[S]|=128>>>u%8),u+=1}};return h},j=function(E){var u=E,h={getMode:function(){return 1},getLength:function(R){return u.length},write:function(R){for(var $=u,x=0;x+2<$.length;)R.put(b($.substring(x,x+3)),10),x+=3;x<$.length&&($.length-x==1?R.put(b($.substring(x,x+1)),4):$.length-x==2&&R.put(b($.substring(x,x+2)),7))}},b=function(R){for(var $=0,x=0;x<R.length;x+=1)$=10*$+S(R.charAt(x));return $},S=function(R){if("0"<=R&&R<="9")return R.charCodeAt(0)-48;throw"illegal char :"+R};return h},V=function(E){var u=E,h={getMode:function(){return 2},getLength:function(S){return u.length},write:function(S){for(var R=u,$=0;$+1<R.length;)S.put(45*b(R.charAt($))+b(R.charAt($+1)),11),$+=2;$<R.length&&S.put(b(R.charAt($)),6)}},b=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(E){var u=c.stringToBytes(E);return{getMode:function(){return 4},getLength:function(h){return u.length},write:function(h){for(var b=0;b<u.length;b+=1)h.put(u[b],8)}}},re=function(E){var u=c.stringToBytesFuncs.SJIS;if(!u)throw"sjis not supported.";(function(S,R){var $=u("友");if($.length!=2||($[0]<<8|$[1])!=38726)throw"sjis not supported."})();var h=u(E),b={getMode:function(){return 8},getLength:function(S){return~~(h.length/2)},write:function(S){for(var R=h,$=0;$+1<R.length;){var x=(255&R[$])<<8|255&R[$+1];if(33088<=x&&x<=40956)x-=33088;else{if(!(57408<=x&&x<=60351))throw"illegal char at "+($+1)+"/"+x;x-=49472}x=192*(x>>>8&255)+(255&x),S.put(x,13),$+=2}if($<R.length)throw"illegal char at "+($+1)}};return b},le=function(){var E=[],u={writeByte:function(h){E.push(255&h)},writeShort:function(h){u.writeByte(h),u.writeByte(h>>>8)},writeBytes:function(h,b,S){b=b||0,S=S||h.length;for(var R=0;R<S;R+=1)u.writeByte(h[R+b])},writeString:function(h){for(var b=0;b<h.length;b+=1)u.writeByte(h.charCodeAt(b))},toByteArray:function(){return E},toString:function(){var h="";h+="[";for(var b=0;b<E.length;b+=1)b>0&&(h+=","),h+=E[b];return h+"]"}};return u},ee=function(E){var u=E,h=0,b=0,S=0,R={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$/)||(b=b<<6|$(x.charCodeAt(0)),S+=6)}var _=b>>>S-8&255;return S-=8,_}},$=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 R},P=function(E,u,h){for(var b=function(k,ne){var B=k,q=ne,ie=new Array(k*ne),ce={setPixel:function(U,O,Z){ie[O*B+U]=Z},write:function(U){U.writeString("GIF87a"),U.writeShort(B),U.writeShort(q),U.writeByte(128),U.writeByte(0),U.writeByte(0),U.writeByte(0),U.writeByte(0),U.writeByte(0),U.writeByte(255),U.writeByte(255),U.writeByte(255),U.writeString(","),U.writeShort(0),U.writeShort(0),U.writeShort(B),U.writeShort(q),U.writeByte(0);var O=he(2);U.writeByte(2);for(var Z=0;O.length-Z>255;)U.writeByte(255),U.writeBytes(O,Z,255),Z+=255;U.writeByte(O.length-Z),U.writeBytes(O,Z,O.length-Z),U.writeByte(0),U.writeString(";")}},he=function(U){for(var O=1<<U,Z=1+(1<<U),z=U+1,te=Se(),ge=0;ge<O;ge+=1)te.add(String.fromCharCode(ge));te.add(String.fromCharCode(O)),te.add(String.fromCharCode(Z));var pe,ae,me,we=le(),be=(pe=we,ae=0,me=0,{write:function(Le,Ie){if(Le>>>Ie)throw"length over";for(;ae+Ie>=8;)pe.writeByte(255&(Le<<ae|me)),Ie-=8-ae,Le>>>=8-ae,me=0,ae=0;me|=Le<<ae,ae+=Ie},flush:function(){ae>0&&pe.writeByte(me)}});be.write(O,z);var Ne=0,Oe=String.fromCharCode(ie[Ne]);for(Ne+=1;Ne<ie.length;){var xe=String.fromCharCode(ie[Ne]);Ne+=1,te.contains(Oe+xe)?Oe+=xe:(be.write(te.indexOf(Oe),z),te.size()<4095&&(te.size()==1<<z&&(z+=1),te.add(Oe+xe)),Oe=xe)}return be.write(te.indexOf(Oe),z),be.write(Z,z),be.flush(),we.toByteArray()},Se=function(){var U={},O=0,Z={add:function(z){if(Z.contains(z))throw"dup key:"+z;U[z]=O,O+=1},size:function(){return O},indexOf:function(z){return U[z]},contains:function(z){return U[z]!==void 0}};return Z};return ce}(E,u),S=0;S<u;S+=1)for(var R=0;R<E;R+=1)b.setPixel(R,S,h(R,S));var $=le();b.write($);for(var x=function(){var k=0,ne=0,B=0,q="",ie={},ce=function(Se){q+=String.fromCharCode(he(63&Se))},he=function(Se){if(!(Se<0)){if(Se<26)return 65+Se;if(Se<52)return Se-26+97;if(Se<62)return Se-52+48;if(Se==62)return 43;if(Se==63)return 47}throw"n:"+Se};return ie.writeByte=function(Se){for(k=k<<8|255&Se,ne+=8,B+=1;ne>=6;)ce(k>>>ne-6),ne-=6},ie.flush=function(){if(ne>0&&(ce(k<<6-ne),k=0,ne=0),B%3!=0)for(var Se=3-B%3,U=0;U<Se;U+=1)q+="="},ie.toString=function(){return q},ie}(),_=$.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=[],y=0;y<d.length;y++){var g=d.charCodeAt(y);g<128?p.push(g):g<2048?p.push(192|g>>6,128|63&g):g<55296||g>=57344?p.push(224|g>>12,128|g>>6&63,128|63&g):(y++,g=65536+((1023&g)<<10|1023&d.charCodeAt(y)),p.push(240|g>>18,128|g>>12&63,128|g>>6&63,128|63&g))}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:()=>Se});const l="Numeric",f="Alphanumeric",c="Byte";var d=function(){return d=Object.assign||function(U){for(var O,Z=1,z=arguments.length;Z<z;Z++)for(var te in O=arguments[Z])Object.prototype.hasOwnProperty.call(O,te)&&(U[te]=O[te]);return U},d.apply(this,arguments)},p=function(){for(var U=0,O=0,Z=arguments.length;O<Z;O++)U+=arguments[O].length;var z=Array(U),te=0;for(O=0;O<Z;O++)for(var ge=arguments[O],pe=0,ae=ge.length;pe<ae;pe++,te++)z[te]=ge[pe];return z},y=function(U){return!!U&&typeof U=="object"&&!Array.isArray(U)};function g(U){for(var O=[],Z=1;Z<arguments.length;Z++)O[Z-1]=arguments[Z];if(!O.length)return U;var z=O.shift();return z!==void 0&&y(U)&&y(z)?(U=d({},U),Object.keys(z).forEach(function(te){var ge=U[te],pe=z[te];Array.isArray(ge)&&Array.isArray(pe)?U[te]=pe:y(ge)&&y(pe)?U[te]=g(Object.assign({},ge),pe):U[te]=pe}),g.apply(void 0,p([U],O))):U}function T(U,O){var Z=document.createElement("a");Z.download=O,Z.href=U,document.body.appendChild(Z),Z.click(),document.body.removeChild(Z)}var C=function(U,O,Z,z){return new(Z||(Z=Promise))(function(te,ge){function pe(we){try{me(z.next(we))}catch(be){ge(be)}}function ae(we){try{me(z.throw(we))}catch(be){ge(be)}}function me(we){var be;we.done?te(we.value):(be=we.value,be instanceof Z?be:new Z(function(Ne){Ne(be)})).then(pe,ae)}me((z=z.apply(U,O||[])).next())})},A=function(U,O){var Z,z,te,ge,pe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ge={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function ae(me){return function(we){return function(be){if(Z)throw new TypeError("Generator is already executing.");for(;pe;)try{if(Z=1,z&&(te=2&be[0]?z.return:be[0]?z.throw||((te=z.return)&&te.call(z),0):z.next)&&!(te=te.call(z,be[1])).done)return te;switch(z=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++,z=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=O.call(U,pe)}catch(Ne){be=[6,Ne],z=0}finally{Z=te=0}if(5&be[0])throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}([me,we])}}};function I(U){return C(this,void 0,void 0,function(){return A(this,function(O){return[2,new Promise(function(Z){var z=new XMLHttpRequest;z.onload=function(){var te=new FileReader;te.onloadend=function(){Z(te.result)},te.readAsDataURL(z.response)},z.open("GET",U),z.responseType="blob",z.send()})]})})}const D={L:.07,M:.15,Q:.25,H:.3};var M=function(){return M=Object.assign||function(U){for(var O,Z=1,z=arguments.length;Z<z;Z++)for(var te in O=arguments[Z])Object.prototype.hasOwnProperty.call(O,te)&&(U[te]=O[te]);return U},M.apply(this,arguments)},J=function(){function U(O){var Z=O.svg,z=O.type;this._svg=Z,this._type=z}return U.prototype.draw=function(O,Z,z,te){var ge;switch(this._type){case"dots":ge=this._drawDot;break;case"classy":ge=this._drawClassy;break;case"classy-rounded":ge=this._drawClassyRounded;break;case"rounded":ge=this._drawRounded;break;case"extra-rounded":ge=this._drawExtraRounded;break;default:ge=this._drawSquare}ge.call(this,{x:O,y:Z,size:z,getNeighbor:te})},U.prototype._rotateFigure=function(O){var Z,z=O.x,te=O.y,ge=O.size,pe=O.rotation,ae=pe===void 0?0:pe,me=z+ge/2,we=te+ge/2;(0,O.draw)(),(Z=this._element)===null||Z===void 0||Z.setAttribute("transform","rotate("+180*ae/Math.PI+","+me+","+we+")")},U.prototype._basicDot=function(O){var Z=this,z=O.size,te=O.x,ge=O.y;this._rotateFigure(M(M({},O),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Z._element.setAttribute("cx",String(te+z/2)),Z._element.setAttribute("cy",String(ge+z/2)),Z._element.setAttribute("r",String(z/2))}}))},U.prototype._basicSquare=function(O){var Z=this,z=O.size,te=O.x,ge=O.y;this._rotateFigure(M(M({},O),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Z._element.setAttribute("x",String(te)),Z._element.setAttribute("y",String(ge)),Z._element.setAttribute("width",String(z)),Z._element.setAttribute("height",String(z))}}))},U.prototype._basicSideRounded=function(O){var Z=this,z=O.size,te=O.x,ge=O.y;this._rotateFigure(M(M({},O),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ge+"v "+z+"h "+z/2+"a "+z/2+" "+z/2+", 0, 0, 0, 0 "+-z)}}))},U.prototype._basicCornerRounded=function(O){var Z=this,z=O.size,te=O.x,ge=O.y;this._rotateFigure(M(M({},O),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ge+"v "+z+"h "+z+"v "+-z/2+"a "+z/2+" "+z/2+", 0, 0, 0, "+-z/2+" "+-z/2)}}))},U.prototype._basicCornerExtraRounded=function(O){var Z=this,z=O.size,te=O.x,ge=O.y;this._rotateFigure(M(M({},O),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ge+"v "+z+"h "+z+"a "+z+" "+z+", 0, 0, 0, "+-z+" "+-z)}}))},U.prototype._basicCornersRounded=function(O){var Z=this,z=O.size,te=O.x,ge=O.y;this._rotateFigure(M(M({},O),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("d","M "+te+" "+ge+"v "+z/2+"a "+z/2+" "+z/2+", 0, 0, 0, "+z/2+" "+z/2+"h "+z/2+"v "+-z/2+"a "+z/2+" "+z/2+", 0, 0, 0, "+-z/2+" "+-z/2)}}))},U.prototype._drawDot=function(O){var Z=O.x,z=O.y,te=O.size;this._basicDot({x:Z,y:z,size:te,rotation:0})},U.prototype._drawSquare=function(O){var Z=O.x,z=O.y,te=O.size;this._basicSquare({x:Z,y:z,size:te,rotation:0})},U.prototype._drawRounded=function(O){var Z=O.x,z=O.y,te=O.size,ge=O.getNeighbor,pe=ge?+ge(-1,0):0,ae=ge?+ge(1,0):0,me=ge?+ge(0,-1):0,we=ge?+ge(0,1):0,be=pe+ae+me+we;if(be!==0)if(be>2||pe&&ae||me&&we)this._basicSquare({x:Z,y:z,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:Z,y:z,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:Z,y:z,size:te,rotation:Ne})}else this._basicDot({x:Z,y:z,size:te,rotation:0})},U.prototype._drawExtraRounded=function(O){var Z=O.x,z=O.y,te=O.size,ge=O.getNeighbor,pe=ge?+ge(-1,0):0,ae=ge?+ge(1,0):0,me=ge?+ge(0,-1):0,we=ge?+ge(0,1):0,be=pe+ae+me+we;if(be!==0)if(be>2||pe&&ae||me&&we)this._basicSquare({x:Z,y:z,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:Z,y:z,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:Z,y:z,size:te,rotation:Ne})}else this._basicDot({x:Z,y:z,size:te,rotation:0})},U.prototype._drawClassy=function(O){var Z=O.x,z=O.y,te=O.size,ge=O.getNeighbor,pe=ge?+ge(-1,0):0,ae=ge?+ge(1,0):0,me=ge?+ge(0,-1):0,we=ge?+ge(0,1):0;pe+ae+me+we!==0?pe||me?ae||we?this._basicSquare({x:Z,y:z,size:te,rotation:0}):this._basicCornerRounded({x:Z,y:z,size:te,rotation:Math.PI/2}):this._basicCornerRounded({x:Z,y:z,size:te,rotation:-Math.PI/2}):this._basicCornersRounded({x:Z,y:z,size:te,rotation:Math.PI/2})},U.prototype._drawClassyRounded=function(O){var Z=O.x,z=O.y,te=O.size,ge=O.getNeighbor,pe=ge?+ge(-1,0):0,ae=ge?+ge(1,0):0,me=ge?+ge(0,-1):0,we=ge?+ge(0,1):0;pe+ae+me+we!==0?pe||me?ae||we?this._basicSquare({x:Z,y:z,size:te,rotation:0}):this._basicCornerExtraRounded({x:Z,y:z,size:te,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:Z,y:z,size:te,rotation:-Math.PI/2}):this._basicCornersRounded({x:Z,y:z,size:te,rotation:Math.PI/2})},U}();const j=J;var V=function(){return V=Object.assign||function(U){for(var O,Z=1,z=arguments.length;Z<z;Z++)for(var te in O=arguments[Z])Object.prototype.hasOwnProperty.call(O,te)&&(U[te]=O[te]);return U},V.apply(this,arguments)},X=function(){function U(O){var Z=O.svg,z=O.type;this._svg=Z,this._type=z}return U.prototype.draw=function(O,Z,z,te){var ge;switch(this._type){case"square":ge=this._drawSquare;break;case"extra-rounded":ge=this._drawExtraRounded;break;default:ge=this._drawDot}ge.call(this,{x:O,y:Z,size:z,rotation:te})},U.prototype._rotateFigure=function(O){var Z,z=O.x,te=O.y,ge=O.size,pe=O.rotation,ae=pe===void 0?0:pe,me=z+ge/2,we=te+ge/2;(0,O.draw)(),(Z=this._element)===null||Z===void 0||Z.setAttribute("transform","rotate("+180*ae/Math.PI+","+me+","+we+")")},U.prototype._basicDot=function(O){var Z=this,z=O.size,te=O.x,ge=O.y,pe=z/7;this._rotateFigure(V(V({},O),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("clip-rule","evenodd"),Z._element.setAttribute("d","M "+(te+z/2)+" "+ge+"a "+z/2+" "+z/2+" 0 1 0 0.1 0zm 0 "+pe+"a "+(z/2-pe)+" "+(z/2-pe)+" 0 1 1 -0.1 0Z")}}))},U.prototype._basicSquare=function(O){var Z=this,z=O.size,te=O.x,ge=O.y,pe=z/7;this._rotateFigure(V(V({},O),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("clip-rule","evenodd"),Z._element.setAttribute("d","M "+te+" "+ge+"v "+z+"h "+z+"v "+-z+"zM "+(te+pe)+" "+(ge+pe)+"h "+(z-2*pe)+"v "+(z-2*pe)+"h "+(2*pe-z)+"z")}}))},U.prototype._basicExtraRounded=function(O){var Z=this,z=O.size,te=O.x,ge=O.y,pe=z/7;this._rotateFigure(V(V({},O),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Z._element.setAttribute("clip-rule","evenodd"),Z._element.setAttribute("d","M "+te+" "+(ge+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)+" "+(ge+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)}}))},U.prototype._drawDot=function(O){var Z=O.x,z=O.y,te=O.size,ge=O.rotation;this._basicDot({x:Z,y:z,size:te,rotation:ge})},U.prototype._drawSquare=function(O){var Z=O.x,z=O.y,te=O.size,ge=O.rotation;this._basicSquare({x:Z,y:z,size:te,rotation:ge})},U.prototype._drawExtraRounded=function(O){var Z=O.x,z=O.y,te=O.size,ge=O.rotation;this._basicExtraRounded({x:Z,y:z,size:te,rotation:ge})},U}();const re=X;var le=function(){return le=Object.assign||function(U){for(var O,Z=1,z=arguments.length;Z<z;Z++)for(var te in O=arguments[Z])Object.prototype.hasOwnProperty.call(O,te)&&(U[te]=O[te]);return U},le.apply(this,arguments)},ee=function(){function U(O){var Z=O.svg,z=O.type;this._svg=Z,this._type=z}return U.prototype.draw=function(O,Z,z,te){(this._type==="square"?this._drawSquare:this._drawDot).call(this,{x:O,y:Z,size:z,rotation:te})},U.prototype._rotateFigure=function(O){var Z,z=O.x,te=O.y,ge=O.size,pe=O.rotation,ae=pe===void 0?0:pe,me=z+ge/2,we=te+ge/2;(0,O.draw)(),(Z=this._element)===null||Z===void 0||Z.setAttribute("transform","rotate("+180*ae/Math.PI+","+me+","+we+")")},U.prototype._basicDot=function(O){var Z=this,z=O.size,te=O.x,ge=O.y;this._rotateFigure(le(le({},O),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Z._element.setAttribute("cx",String(te+z/2)),Z._element.setAttribute("cy",String(ge+z/2)),Z._element.setAttribute("r",String(z/2))}}))},U.prototype._basicSquare=function(O){var Z=this,z=O.size,te=O.x,ge=O.y;this._rotateFigure(le(le({},O),{draw:function(){Z._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Z._element.setAttribute("x",String(te)),Z._element.setAttribute("y",String(ge)),Z._element.setAttribute("width",String(z)),Z._element.setAttribute("height",String(z))}}))},U.prototype._drawDot=function(O){var Z=O.x,z=O.y,te=O.size,ge=O.rotation;this._basicDot({x:Z,y:z,size:te,rotation:ge})},U.prototype._drawSquare=function(O){var Z=O.x,z=O.y,te=O.size,ge=O.rotation;this._basicSquare({x:Z,y:z,size:te,rotation:ge})},U}();const P=ee,E="circle";var u=function(U,O,Z,z){return new(Z||(Z=Promise))(function(te,ge){function pe(we){try{me(z.next(we))}catch(be){ge(be)}}function ae(we){try{me(z.throw(we))}catch(be){ge(be)}}function me(we){var be;we.done?te(we.value):(be=we.value,be instanceof Z?be:new Z(function(Ne){Ne(be)})).then(pe,ae)}me((z=z.apply(U,O||[])).next())})},h=function(U,O){var Z,z,te,ge,pe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ge={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function ae(me){return function(we){return function(be){if(Z)throw new TypeError("Generator is already executing.");for(;pe;)try{if(Z=1,z&&(te=2&be[0]?z.return:be[0]?z.throw||((te=z.return)&&te.call(z),0):z.next)&&!(te=te.call(z,be[1])).done)return te;switch(z=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++,z=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=O.call(U,pe)}catch(Ne){be=[6,Ne],z=0}finally{Z=te=0}if(5&be[0])throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}([me,we])}}},b=[[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 R=function(){function U(O){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(O.width)),this._element.setAttribute("height",String(O.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._instanceId=U.instanceCount++,this._options=O}return Object.defineProperty(U.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),U.prototype.getElement=function(){return this._element},U.prototype.drawQR=function(O){return u(this,void 0,void 0,function(){var Z,z,te,ge,pe,ae,me,we,be,Ne,Oe=this;return h(this,function(xe){switch(xe.label){case 0:return Z=O.getModuleCount(),z=Math.min(this._options.width,this._options.height)-2*this._options.margin,te=this._options.shape===E?z/Math.sqrt(2):z,ge=te/Z,pe={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=O,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(xe.sent(),!this._image)return[2];ae=this._options,me=ae.imageOptions,we=ae.qrOptions,be=me.imageSize*D[we.errorCorrectionLevel],Ne=Math.floor(be*Z*Z),pe=function(Le){var Ie=Le.originalHeight,Ue=Le.originalWidth,Xe=Le.maxHiddenDots,Be=Le.maxHiddenAxisDots,G=Le.dotSize,N={x:0,y:0},F={x:0,y:0};if(Ie<=0||Ue<=0||Xe<=0||G<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var se=Ie/Ue;return N.x=Math.floor(Math.sqrt(Xe/se)),N.x<=0&&(N.x=1),Be&&Be<N.x&&(N.x=Be),N.x%2==0&&N.x--,F.x=N.x*G,N.y=1+2*Math.ceil((N.x*se-1)/2),F.y=Math.round(F.x*se),(N.y*N.x>Xe||Be&&Be<N.y)&&(Be&&Be<N.y?(N.y=Be,N.y%2==0&&N.x--):N.y-=2,F.y=N.y*G,N.x=1+2*Math.ceil((N.y/se-1)/2),F.x=Math.round(F.y/se)),{height:F.y,width:F.x,hideYDots:N.y,hideXDots:N.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Ne,maxHiddenAxisDots:Z-14,dotSize:ge}),xe.label=2;case 2:return this.drawBackground(),this.drawDots(function(Le,Ie){var Ue,Xe,Be,G,N,F;return!(Oe._options.imageOptions.hideBackgroundDots&&Le>=(Z-pe.hideXDots)/2&&Le<(Z+pe.hideXDots)/2&&Ie>=(Z-pe.hideYDots)/2&&Ie<(Z+pe.hideYDots)/2||!((Ue=b[Le])===null||Ue===void 0)&&Ue[Ie]||!((Xe=b[Le-Z+7])===null||Xe===void 0)&&Xe[Ie]||!((Be=b[Le])===null||Be===void 0)&&Be[Ie-Z+7]||!((G=S[Le])===null||G===void 0)&&G[Ie]||!((N=S[Le-Z+7])===null||N===void 0)&&N[Ie]||!((F=S[Le])===null||F===void 0)&&F[Ie-Z+7])}),this.drawCorners(),this._options.image?[4,this.drawImage({width:pe.width,height:pe.height,count:Z,dotSize:ge})]:[3,4];case 3:xe.sent(),xe.label=4;case 4:return[2]}})})},U.prototype.drawBackground=function(){var O,Z,z,te=this._element,ge=this._options;if(te){var pe=(O=ge.backgroundOptions)===null||O===void 0?void 0:O.gradient,ae=(Z=ge.backgroundOptions)===null||Z===void 0?void 0:Z.color;if((pe||ae)&&this._createColor({options:pe,color:ae,additionalRotation:0,x:0,y:0,height:ge.height,width:ge.width,name:"background-color"}),(z=ge.backgroundOptions)===null||z===void 0?void 0:z.round){var me=Math.min(ge.width,ge.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((ge.width-me)/2)),we.setAttribute("y",String((ge.height-me)/2)),we.setAttribute("width",String(me)),we.setAttribute("height",String(me)),we.setAttribute("rx",String(me/2*ge.backgroundOptions.round)),this._backgroundClipPath.appendChild(we)}}},U.prototype.drawDots=function(O){var Z,z,te=this;if(!this._qr)throw"QR code is not defined";var ge=this._options,pe=this._qr.getModuleCount();if(pe>ge.width||pe>ge.height)throw"The canvas is too small.";var ae=Math.min(ge.width,ge.height)-2*ge.margin,me=(ge.shape===E?ae/Math.sqrt(2):ae)/pe,we=(ge.width-pe*me)/2,be=(ge.height-pe*me)/2,Ne=new j({svg:this._element,type:ge.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:(Z=ge.dotsOptions)===null||Z===void 0?void 0:Z.gradient,color:ge.dotsOptions.color,additionalRotation:0,x:0,y:0,height:ge.height,width:ge.width,name:"dot-color-"+this._instanceId});for(var Oe=function(Ae){for(var _e=function(He){return O&&!O(Ae,He)?"continue":!((z=xe._qr)===null||z===void 0)&&z.isDark(Ae,He)?(Ne.draw(we+Ae*me,be+He*me,me,function(Je,ft){return!(Ae+Je<0||He+ft<0||Ae+Je>=pe||He+ft>=pe)&&!(O&&!O(Ae+Je,He+ft))&&!!te._qr&&te._qr.isDark(Ae+Je,He+ft)}),void(Ne._element&&xe._dotsClipPath&&xe._dotsClipPath.appendChild(Ne._element))):"continue"},We=0;We<pe;We++)_e(We)},xe=this,Le=0;Le<pe;Le++)Oe(Le);if(ge.shape===E){var Ie=Math.floor((ae/me-pe)/2),Ue=pe+2*Ie,Xe=we-Ie*me,Be=be-Ie*me,G=[],N=Math.floor(Ue/2);for(Le=0;Le<Ue;Le++){G[Le]=[];for(var F=0;F<Ue;F++)Le>=Ie-1&&Le<=Ue-Ie&&F>=Ie-1&&F<=Ue-Ie||Math.sqrt((Le-N)*(Le-N)+(F-N)*(F-N))>N?G[Le][F]=0:G[Le][F]=this._qr.isDark(F-2*Ie<0?F:F>=pe?F-2*Ie:F-Ie,Le-2*Ie<0?Le:Le>=pe?Le-2*Ie:Le-Ie)?1:0}var se=function(Ae){for(var _e=function(He){if(!G[Ae][He])return"continue";Ne.draw(Xe+Ae*me,Be+He*me,me,function(Je,ft){var Ye;return!!(!((Ye=G[Ae+Je])===null||Ye===void 0)&&Ye[He+ft])}),Ne._element&&Te._dotsClipPath&&Te._dotsClipPath.appendChild(Ne._element)},We=0;We<Ue;We++)_e(We)},Te=this;for(Le=0;Le<Ue;Le++)se(Le)}},U.prototype.drawCorners=function(){var O=this;if(!this._qr)throw"QR code is not defined";var Z=this._element,z=this._options;if(!Z)throw"Element code is not defined";var te=this._qr.getModuleCount(),ge=Math.min(z.width,z.height)-2*z.margin,pe=(z.shape===E?ge/Math.sqrt(2):ge)/te,ae=7*pe,me=3*pe,we=(z.width-te*pe)/2,be=(z.height-te*pe)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(Ne){var Oe,xe,Le,Ie,Ue,Xe,Be,G,N,F,se,Te,Ae=Ne[0],_e=Ne[1],We=Ne[2],He=we+Ae*pe*(te-7),Je=be+_e*pe*(te-7),ft=O._dotsClipPath,Ye=O._dotsClipPath;if((!((Oe=z.cornersSquareOptions)===null||Oe===void 0)&&Oe.gradient||!((xe=z.cornersSquareOptions)===null||xe===void 0)&&xe.color)&&((ft=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Ae+"-"+_e),O._defs.appendChild(ft),O._cornersSquareClipPath=O._cornersDotClipPath=Ye=ft,O._createColor({options:(Le=z.cornersSquareOptions)===null||Le===void 0?void 0:Le.gradient,color:(Ie=z.cornersSquareOptions)===null||Ie===void 0?void 0:Ie.color,additionalRotation:We,x:He,y:Je,height:ae,width:ae,name:"corners-square-color-"+Ae+"-"+_e})),(Ue=z.cornersSquareOptions)===null||Ue===void 0?void 0:Ue.type){var rt=new re({svg:O._element,type:z.cornersSquareOptions.type});rt.draw(He,Je,ae,We),rt._element&&ft&&ft.appendChild(rt._element)}else for(var Ot=new j({svg:O._element,type:z.dotsOptions.type}),mt=function(st){for(var Zt=function(nt){if(!(!((Xe=b[st])===null||Xe===void 0)&&Xe[nt]))return"continue";Ot.draw(He+st*pe,Je+nt*pe,pe,function(tn,Q){var oe;return!!(!((oe=b[st+tn])===null||oe===void 0)&&oe[nt+Q])}),Ot._element&&ft&&ft.appendChild(Ot._element)},At=0;At<b[st].length;At++)Zt(At)},ot=0;ot<b.length;ot++)mt(ot);if((!((Be=z.cornersDotOptions)===null||Be===void 0)&&Be.gradient||!((G=z.cornersDotOptions)===null||G===void 0)&&G.color)&&((Ye=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Ae+"-"+_e),O._defs.appendChild(Ye),O._cornersDotClipPath=Ye,O._createColor({options:(N=z.cornersDotOptions)===null||N===void 0?void 0:N.gradient,color:(F=z.cornersDotOptions)===null||F===void 0?void 0:F.color,additionalRotation:We,x:He+2*pe,y:Je+2*pe,height:me,width:me,name:"corners-dot-color-"+Ae+"-"+_e})),(se=z.cornersDotOptions)===null||se===void 0?void 0:se.type){var Wt=new P({svg:O._element,type:z.cornersDotOptions.type});Wt.draw(He+2*pe,Je+2*pe,me,We),Wt._element&&Ye&&Ye.appendChild(Wt._element)}else{Ot=new j({svg:O._element,type:z.dotsOptions.type});var wt=function(st){for(var Zt=function(nt){if(!(!((Te=S[st])===null||Te===void 0)&&Te[nt]))return"continue";Ot.draw(He+st*pe,Je+nt*pe,pe,function(tn,Q){var oe;return!!(!((oe=S[st+tn])===null||oe===void 0)&&oe[nt+Q])}),Ot._element&&Ye&&Ye.appendChild(Ot._element)},At=0;At<S[st].length;At++)Zt(At)};for(ot=0;ot<S.length;ot++)wt(ot)}})},U.prototype.loadImage=function(){var O=this;return new Promise(function(Z,z){var te=O._options,ge=new Image;if(!te.image)return z("Image is not defined");typeof te.imageOptions.crossOrigin=="string"&&(ge.crossOrigin=te.imageOptions.crossOrigin),O._image=ge,ge.onload=function(){Z()},ge.src=te.image})},U.prototype.drawImage=function(O){var Z=O.width,z=O.height,te=O.count,ge=O.dotSize;return u(this,void 0,void 0,function(){var pe,ae,me,we,be,Ne,Oe,xe,Le;return h(this,function(Ie){switch(Ie.label){case 0:return pe=this._options,ae=(pe.width-te*ge)/2,me=(pe.height-te*ge)/2,we=ae+pe.imageOptions.margin+(te*ge-Z)/2,be=me+pe.imageOptions.margin+(te*ge-z)/2,Ne=Z-2*pe.imageOptions.margin,Oe=z-2*pe.imageOptions.margin,(xe=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(we)),xe.setAttribute("y",String(be)),xe.setAttribute("width",Ne+"px"),xe.setAttribute("height",Oe+"px"),[4,I(pe.image||"")];case 1:return Le=Ie.sent(),xe.setAttribute("href",Le||""),this._element.appendChild(xe),[2]}})})},U.prototype._createColor=function(O){var Z=O.options,z=O.color,te=O.additionalRotation,ge=O.x,pe=O.y,ae=O.height,me=O.width,we=O.name,be=me>ae?me:ae,Ne=document.createElementNS("http://www.w3.org/2000/svg","rect");if(Ne.setAttribute("x",String(ge)),Ne.setAttribute("y",String(pe)),Ne.setAttribute("height",String(ae)),Ne.setAttribute("width",String(me)),Ne.setAttribute("clip-path","url('#clip-path-"+we+"')"),Z){var Oe;if(Z.type==="radial")(Oe=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",we),Oe.setAttribute("gradientUnits","userSpaceOnUse"),Oe.setAttribute("fx",String(ge+me/2)),Oe.setAttribute("fy",String(pe+ae/2)),Oe.setAttribute("cx",String(ge+me/2)),Oe.setAttribute("cy",String(pe+ae/2)),Oe.setAttribute("r",String(be/2));else{var xe=((Z.rotation||0)+te)%(2*Math.PI),Le=(xe+2*Math.PI)%(2*Math.PI),Ie=ge+me/2,Ue=pe+ae/2,Xe=ge+me/2,Be=pe+ae/2;Le>=0&&Le<=.25*Math.PI||Le>1.75*Math.PI&&Le<=2*Math.PI?(Ie-=me/2,Ue-=ae/2*Math.tan(xe),Xe+=me/2,Be+=ae/2*Math.tan(xe)):Le>.25*Math.PI&&Le<=.75*Math.PI?(Ue-=ae/2,Ie-=me/2/Math.tan(xe),Be+=ae/2,Xe+=me/2/Math.tan(xe)):Le>.75*Math.PI&&Le<=1.25*Math.PI?(Ie+=me/2,Ue+=ae/2*Math.tan(xe),Xe-=me/2,Be-=ae/2*Math.tan(xe)):Le>1.25*Math.PI&&Le<=1.75*Math.PI&&(Ue+=ae/2,Ie+=me/2/Math.tan(xe),Be-=ae/2,Xe-=me/2/Math.tan(xe)),(Oe=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",we),Oe.setAttribute("gradientUnits","userSpaceOnUse"),Oe.setAttribute("x1",String(Math.round(Ie))),Oe.setAttribute("y1",String(Math.round(Ue))),Oe.setAttribute("x2",String(Math.round(Xe))),Oe.setAttribute("y2",String(Math.round(Be)))}Z.colorStops.forEach(function(G){var N=G.offset,F=G.color,se=document.createElementNS("http://www.w3.org/2000/svg","stop");se.setAttribute("offset",100*N+"%"),se.setAttribute("stop-color",F),Oe.appendChild(se)}),Ne.setAttribute("fill","url('#"+we+"')"),this._defs.appendChild(Oe)}else z&&Ne.setAttribute("fill",z);this._element.appendChild(Ne)},U.instanceCount=0,U}(),$="canvas";for(var x={},_=0;_<=40;_++)x[_]=_;const v={type:$,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(U){for(var O,Z=1,z=arguments.length;Z<z;Z++)for(var te in O=arguments[Z])Object.prototype.hasOwnProperty.call(O,te)&&(U[te]=O[te]);return U},k.apply(this,arguments)};function ne(U){var O=k({},U);if(!O.colorStops||!O.colorStops.length)throw"Field 'colorStops' is required in gradient";return O.rotation?O.rotation=Number(O.rotation):O.rotation=0,O.colorStops=O.colorStops.map(function(Z){return k(k({},Z),{offset:Number(Z.offset)})}),O}function B(U){var O=k({},U);return O.width=Number(O.width),O.height=Number(O.height),O.margin=Number(O.margin),O.imageOptions=k(k({},O.imageOptions),{hideBackgroundDots:!!O.imageOptions.hideBackgroundDots,imageSize:Number(O.imageOptions.imageSize),margin:Number(O.imageOptions.margin)}),O.margin>Math.min(O.width,O.height)&&(O.margin=Math.min(O.width,O.height)),O.dotsOptions=k({},O.dotsOptions),O.dotsOptions.gradient&&(O.dotsOptions.gradient=ne(O.dotsOptions.gradient)),O.cornersSquareOptions&&(O.cornersSquareOptions=k({},O.cornersSquareOptions),O.cornersSquareOptions.gradient&&(O.cornersSquareOptions.gradient=ne(O.cornersSquareOptions.gradient))),O.cornersDotOptions&&(O.cornersDotOptions=k({},O.cornersDotOptions),O.cornersDotOptions.gradient&&(O.cornersDotOptions.gradient=ne(O.cornersDotOptions.gradient))),O.backgroundOptions&&(O.backgroundOptions=k({},O.backgroundOptions),O.backgroundOptions.gradient&&(O.backgroundOptions.gradient=ne(O.backgroundOptions.gradient))),O}var q=s(192),ie=s.n(q),ce=function(U,O,Z,z){return new(Z||(Z=Promise))(function(te,ge){function pe(we){try{me(z.next(we))}catch(be){ge(be)}}function ae(we){try{me(z.throw(we))}catch(be){ge(be)}}function me(we){var be;we.done?te(we.value):(be=we.value,be instanceof Z?be:new Z(function(Ne){Ne(be)})).then(pe,ae)}me((z=z.apply(U,O||[])).next())})},he=function(U,O){var Z,z,te,ge,pe={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return ge={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function ae(me){return function(we){return function(be){if(Z)throw new TypeError("Generator is already executing.");for(;pe;)try{if(Z=1,z&&(te=2&be[0]?z.return:be[0]?z.throw||((te=z.return)&&te.call(z),0):z.next)&&!(te=te.call(z,be[1])).done)return te;switch(z=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++,z=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=O.call(U,pe)}catch(Ne){be=[6,Ne],z=0}finally{Z=te=0}if(5&be[0])throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}([me,we])}}};const Se=function(){function U(O){this._options=O?B(g(v,O)):v,this.update()}return U._clearContainer=function(O){O&&(O.innerHTML="")},U.prototype._setupSvg=function(){var O=this;if(this._qr){var Z=new R(this._options);this._svg=Z.getElement(),this._svgDrawingPromise=Z.drawQR(this._qr).then(function(){var z;O._svg&&((z=O._extension)===null||z===void 0||z.call(O,Z.getElement(),O._options))})}},U.prototype._setupCanvas=function(){var O,Z=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=(O=this._svgDrawingPromise)===null||O===void 0?void 0:O.then(function(){if(Z._svg){var z=Z._svg,te=new XMLSerializer().serializeToString(z),ge="data:image/svg+xml;base64,"+btoa(te),pe=new Image;return new Promise(function(ae){pe.onload=function(){var me,we;(we=(me=Z._canvas)===null||me===void 0?void 0:me.getContext("2d"))===null||we===void 0||we.drawImage(pe,0,0),ae()},pe.src=ge})}}))},U.prototype._getElement=function(O){return O===void 0&&(O="png"),ce(this,void 0,void 0,function(){return he(this,function(Z){switch(Z.label){case 0:if(!this._qr)throw"QR code is empty";return O.toLowerCase()!=="svg"?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return Z.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return Z.sent(),[2,this._canvas]}})})},U.prototype.update=function(O){U._clearContainer(this._container),this._options=O?B(g(this._options,O)):this._options,this._options.data&&(this._qr=ie()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(Z){switch(!0){case/^[0-9]*$/.test(Z):return l;case/^[0-9A-Z $%*+\-./:]*$/.test(Z):return f;default:return c}}(this._options.data)),this._qr.make(),this._options.type===$?this._setupCanvas():this._setupSvg(),this.append(this._container))},U.prototype.append=function(O){if(O){if(typeof O.appendChild!="function")throw"Container should be a single DOM node";this._options.type===$?this._canvas&&O.appendChild(this._canvas):this._svg&&O.appendChild(this._svg),this._container=O}},U.prototype.applyExtension=function(O){if(!O)throw"Extension function should be defined.";this._extension=O,this.update()},U.prototype.deleteExtension=function(){this._extension=void 0,this.update()},U.prototype.getRawData=function(O){return O===void 0&&(O="png"),ce(this,void 0,void 0,function(){var Z,z,te;return he(this,function(ge){switch(ge.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(O)];case 1:return(Z=ge.sent())?O.toLowerCase()==="svg"?(z=new XMLSerializer,te=z.serializeToString(Z),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
628
628
  `+te],{type:"image/svg+xml"})]):[2,new Promise(function(pe){return Z.toBlob(pe,"image/"+O,1)})]:[2,null]}})})},U.prototype.download=function(O){return ce(this,void 0,void 0,function(){var Z,z,te,ge,pe;return he(this,function(ae){switch(ae.label){case 0:if(!this._qr)throw"QR code is empty";return Z="png",z="qr",typeof O=="string"?(Z=O,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof O=="object"&&O!==null&&(O.name&&(z=O.name),O.extension&&(Z=O.extension)),[4,this._getElement(Z)];case 1:return(te=ae.sent())?(Z.toLowerCase()==="svg"?(ge=new XMLSerializer,pe=`<?xml version="1.0" standalone="no"?>\r
629
629
  `+(pe=ge.serializeToString(te)),T("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(pe),z+".svg")):T(te.toDataURL("image/"+Z),z+"."+Z),[2]):[2]}})})},U}()}},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})})(QZ);var XVe=QZ.exports;const QVe=Mt(XVe),eqe={margin:0,dotsOptions:{type:"dots"},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}};function mR({data:e,size:t,image:n,config:r,...i}){const a=W.useRef(null),o=W.useMemo(()=>({...eqe,data:e,width:t,height:t,...n&&{image:n,imageOptions:{crossOrigin:"anonymous",margin:0}},...r}),[e,t,n,r]),[s]=W.useState(new QVe(o));return W.useEffect(()=>{a.current&&s.append(a.current)},[s,a]),W.useEffect(()=>{s&&s.update(o)},[e,t,n,r]),K.jsx(yt,{ref:a,...i})}mR.propTypes={data:ve.string.isRequired,size:ve.number.isRequired,image:ve.string,config:ve.object};mR.defaultProps={image:null,config:{}};function gR({tokenState:e,locale:t,messages:n}){const{t:r,matchSmallScreen:i}=qu(),a="DID Wallet",o=(n==null?void 0:n.scan)||r("scanWithWallet"),s=r("download"),l=r("downloadTips"),f=180,c=un(()=>["zh","en"].includes?`https://www.didwallet.io/${t}`:"https://www.didwallet.io/en",[t]),d=un(()=>K.jsxs(K.Fragment,{children:[l," ",K.jsx(yt,{component:"a",href:c,target:"_blank",rel:"noreferrer",sx:{color:qt.primary100,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:s})]}),[c,s,l]);return K.jsxs(Gu,{sx:{display:"flex",gap:1,justifyContent:"space-between",alignItems:i?"center":"stretch",flexDirection:i?"column":"row"},children:[K.jsx(yt,{sx:{display:i?"none":"block"},children:K.jsx(Yn,{icon:ZVe,fontSize:"1.3rem"})}),K.jsxs(yt,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",flex:1},children:[K.jsx($i,{sx:{fontSize:"16px",fontWeight:"bold"},children:a}),K.jsx($i,{sx:{flex:1,color:qt.textMuted,fontSize:"14px",display:i?"none":"block"},children:o}),K.jsx(yt,{sx:{color:qt.textMuted,fontSize:"12px",display:i?"none":"block"},children:d})]}),K.jsx(mR,{data:e.url,size:f,sx:{p:1.5,borderRadius:2,backgroundColor:"white",fontSize:0}}),K.jsx(yt,{sx:{color:qt.textMuted,fontSize:"12px",display:i?"block":"none"},children:d})]})}gR.propTypes={tokenState:ve.object.isRequired,locale:ve.string,messages:ve.object};gR.defaultProps={locale:"en",messages:{}};const eX={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"/>'},tX={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"/>'},nX={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"/>'},rX={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"/>'},yR={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 iX({icon:e,...t}){return K.jsx(Ps,{...t,sx:{backgroundColor:"white",border:`1px solid ${qt.borderBase}`,...t==null?void 0:t.sx},children:K.jsx(Yn,{icon:e})})}iX.propTypes={icon:ve.any.isRequired};function aX({providerList:e,onLogin:t}){return K.jsxs(Gu,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[K.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[K.jsx(Yn,{icon:eX,fontSize:"1.3rem"}),K.jsx($i,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Others"})]}),K.jsx(yt,{sx:{display:"flex",gap:2},children:e.map(r=>{const i={auth0:yR,apple:tX,github:nX,google:rX};return K.jsx(iX,{icon:i[r.provider],onClick:()=>t(r)},r.provider)})})]})}aX.propTypes={onLogin:ve.func.isRequired,providerList:ve.array.isRequired};function oX({title:e,icon:t,...n}){return K.jsxs(Gu,{...n,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:qt.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:[K.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[K.jsx(Yn,{icon:t,fontSize:"1.5rem",style:{transform:"scale(0.95)"}}),K.jsx($i,{sx:{fontSize:"16px",fontWeight:"bold"},children:e})]}),K.jsx(Yn,{className:"other-item-icon",icon:IE,fontSize:"1.3rem",color:qt.primaryBase})]})}oX.propTypes={title:ve.string.isRequired,icon:ve.string.isRequired};function sX({providerList:e,onLogin:t}){return K.jsx(yt,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:e.map(n=>{const r={auth0:yR,apple:tX,github:nX,google:rX},i={auth0:"Auth0",apple:"Apple",github:"Github",google:"Google"};return K.jsx(oX,{title:i[n.provider],icon:r[n.provider],onClick:()=>{t(n)}},n.provider)})})}sX.propTypes={onLogin:ve.func.isRequired,providerList:ve.array.isRequired};function W3({providerList:e,type:t,onSuccess:n,onError:r,tokenState:i}){const{extraParams:a,changeStatus:o}=qu(),{loginOAuth:s,logoutOAuth:l,translation:f,oauthState:c}=PC(),d=$t(async p=>{try{c.loading=!0,c.status="scanned";const y=await s(p,{action:i.action,...a}),g=Zc({returnDomain:!1});Pr.remove("connected_did",g),Pr.remove("connected_pk",g),Pr.remove("connected_wallet_os",g),Pr.set("connected_app",EC(i.appInfo,i.memberAppInfo),g),y!=null&&y.sessionToken&&(c.loading=!1,c.status="succeed",await l({provider:p.provider}),n({...y,encrypted:!1},T=>T,{sourceAppPid:a==null?void 0:a.sourceAppPid}))}catch(y){const g=NY(y,f.loginOAuthFailed);c.loading=!1,c.error=g,c.status="error",await l({provider:p.provider}),r(new Error(g))}});return W.useEffect(()=>{o(c.status)},[o,c.status]),t==="stack"?K.jsx(aX,{providerList:e,onLogin:d}):K.jsx(sX,{providerList:e,onLogin:d})}W3.propTypes={providerList:ve.array.isRequired,type:ve.oneOf(["list","stack"]),onSuccess:ve.func.isRequired,onError:ve.func.isRequired,tokenState:ve.object.isRequired};W3.defaultProps={type:"stack"};var tqe=Fb,nqe=O8,rqe=1,iqe=2;function aqe(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 tqe;if(r)var p=r(f,c,l,e,t,d);if(!(p===void 0?nqe(c,f,rqe|iqe,r,d):p))return!1}}return!0}var oqe=aqe,sqe=Gi;function lqe(e){return e===e&&!sqe(e)}var lX=lqe,uqe=lX,cqe=im;function fqe(e){for(var t=cqe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,uqe(i)]}return t}var dqe=fqe;function pqe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var uX=pqe,hqe=oqe,mqe=dqe,gqe=uX;function yqe(e){var t=mqe(e);return t.length==1&&t[0][2]?gqe(t[0][0],t[0][1]):function(n){return n===e||hqe(n,e,t)}}var vqe=yqe,bqe=O8,Eqe=Y1,Tqe=RW,Aqe=t8,wqe=lX,Sqe=uX,_qe=Lp,xqe=1,Cqe=2;function Rqe(e,t){return Aqe(e)&&wqe(t)?Sqe(_qe(e),t):function(n){var r=Eqe(n,e);return r===void 0&&r===t?Tqe(n,e):bqe(t,r,xqe|Cqe)}}var $qe=Rqe,Iqe=K1;function kqe(e){return function(t){return Iqe(t,e)}}var Dqe=kqe,Lqe=Qq,Oqe=Dqe,Pqe=t8,Mqe=Lp;function Nqe(e){return Pqe(e)?Lqe(Mqe(e)):Oqe(e)}var Bqe=Nqe,Fqe=vqe,Uqe=$qe,Hqe=Jb,jqe=Ea,Jqe=Bqe;function Vqe(e){return typeof e=="function"?e:e==null?Hqe:typeof e=="object"?jqe(e)?Uqe(e[0],e[1]):Fqe(e):Jqe(e)}var LE=Vqe,qqe="Expected a function";function Gqe(e){if(typeof e!="function")throw new TypeError(qqe);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 Wqe=Gqe,zqe=kp,Kqe=LE,Yqe=CW,Zqe=x8;function Xqe(e,t){if(e==null)return{};var n=zqe(Zqe(e),function(r){return[r]});return t=Kqe(t),Yqe(e,n,function(r,i){return t(r,i[0])})}var Qqe=Xqe,eGe=LE,tGe=Wqe,nGe=Qqe;function rGe(e,t){return nGe(e,tGe(eGe(t)))}var iGe=rGe;const aF=Mt(iGe);function aGe(e){return e==null}var oGe=aGe;const oF=Mt(oGe);var cX={};Object.defineProperty(cX,"__esModule",{value:!0});var sGe=cX.default=lGe,DS=W;function lGe(e,t){const n=(0,DS.useRef)();(0,DS.useEffect)(()=>{n.current=e},[e]),(0,DS.useEffect)(()=>{function r(){n.current()}if(t!==null){const i=setInterval(r,t);return()=>clearInterval(i)}},[t])}var fX={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 y=new i(c,d||l,p),g=n?n+f:f;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],y]:l._events[g].push(y):(l._events[g]=y,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,y=d.length,g=new Array(y);p<y;p++)g[p]=d[p].fn;return g},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,y,g){var T=n?n+f:f;if(!this._events[T])return!1;var C=this._events[T],A=arguments.length,I,D;if(C.fn){switch(C.once&&this.removeListener(f,C.fn,void 0,!0),A){case 1:return C.fn.call(C.context),!0;case 2:return C.fn.call(C.context,c),!0;case 3:return C.fn.call(C.context,c,d),!0;case 4:return C.fn.call(C.context,c,d,p),!0;case 5:return C.fn.call(C.context,c,d,p,y),!0;case 6:return C.fn.call(C.context,c,d,p,y,g),!0}for(D=1,I=new Array(A-1);D<A;D++)I[D-1]=arguments[D];C.fn.apply(C.context,I)}else{var M=C.length,J;for(D=0;D<M;D++)switch(C[D].once&&this.removeListener(f,C[D].fn,void 0,!0),A){case 1:C[D].fn.call(C[D].context);break;case 2:C[D].fn.call(C[D].context,c);break;case 3:C[D].fn.call(C[D].context,c,d);break;case 4:C[D].fn.call(C[D].context,c,d,p);break;default:if(!I)for(J=1,I=new Array(A-1);J<A;J++)I[J-1]=arguments[J];C[D].fn.apply(C[D].context,I)}}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 y=n?n+f:f;if(!this._events[y])return this;if(!c)return o(this,y),this;var g=this._events[y];if(g.fn)g.fn===c&&(!p||g.once)&&(!d||g.context===d)&&o(this,y);else{for(var T=0,C=[],A=g.length;T<A;T++)(g[T].fn!==c||p&&!g[T].once||d&&g[T].context!==d)&&C.push(g[T]);C.length?this._events[y]=C.length===1?C[0]:C:o(this,y)}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})(fX);var dX=fX.exports,vR=Object.defineProperty,uGe=Object.getOwnPropertyDescriptor,cGe=Object.getOwnPropertyNames,fGe=Object.prototype.hasOwnProperty,dGe=(e,t)=>{for(var n in t)vR(e,n,{get:t[n],enumerable:!0})},pGe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cGe(t))!fGe.call(e,i)&&i!==n&&vR(e,i,{get:()=>t[i],enumerable:!(r=uGe(t,i))||r.enumerable});return e},hGe=e=>pGe(vR({},"__esModule",{value:!0}),e),pX={};dGe(pX,{Channel:()=>mX,LongPoll:()=>Rv,Presence:()=>r0,Serializer:()=>i0,Socket:()=>TGe});var mGe=hGe(pX),I0=e=>typeof e=="function"?e:function(){return e},gGe=typeof self<"u"?self:null,n0=typeof window<"u"?window:null,k0=gGe||n0||k0,yGe="2.0.0",As={connecting:0,open:1,closing:2,closed:3},vGe=1e4,bGe=1e3,Ia={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},ol={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},F5={longpoll:"longpoll",websocket:"websocket"},EGe={complete:4},by=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})}},hX=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))}},mX=class{constructor(e,t,n){this.state=Ia.closed,this.topic=e,this.params=I0(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new by(this,ol.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new hX(()=>{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=Ia.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=Ia.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=Ia.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=Ia.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 by(this,ol.leave,I0({}),this.timeout).send(),this.state=Ia.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(ol.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(ol.close,e)}onError(e){return this.on(ol.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 by(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=Ia.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(ol.close,"leave")},n=new by(this,ol.leave,I0({}),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=Ia.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===Ia.closed}isErrored(){return this.state===Ia.errored}isJoined(){return this.state===Ia.joined}isJoining(){return this.state===Ia.joining}isLeaving(){return this.state===Ia.leaving}},z3=class{static request(e,t,n,r,i,a,o){if(k0.XDomainRequest){let s=new k0.XDomainRequest;return this.xdomainRequest(s,e,t,r,i,a,o)}else{let s=new k0.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===EGe.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)}`}},Rv=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=As.connecting,this.poll()}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+F5.websocket),"$1/"+F5.longpoll)}endpointURL(){return z3.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=As.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===As.open||this.readyState===As.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=As.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(`
630
- `),()=>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=As.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=z3.request(e,this.endpointURL(),t,n,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},r0=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=r0.syncState(this.state,r,i,a),this.pendingDiffs.forEach(s=>{this.state=r0.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=r0.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 r0.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(g=>g.phx_ref),d=f.metas.map(g=>g.phx_ref),p=l.metas.filter(g=>d.indexOf(g.phx_ref)<0),y=f.metas.filter(g=>c.indexOf(g.phx_ref)<0);p.length>0&&(a[s]=l,a[s].metas=p),y.length>0&&(o[s]=this.clone(f),o[s].metas=y)}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))}},i0={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),y={status:d,response:p};return{join_ref:l,ref:f,topic:c,event:ol.reply,payload:y}},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}}},TGe=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||vGe,this.transport=n.transport||k0.WebSocket||Rv,this.establishedConnections=0,this.defaultEncoder=i0.encode.bind(i0),this.defaultDecoder=i0.decode.bind(i0),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Rv?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;n0&&n0.addEventListener&&(n0.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),n0.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=I0(n.params||{}),this.endPoint=`${t}/${F5.websocket}`,this.vsn=n.vsn||yGe,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new hX(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Rv}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=z3.appendParams(z3.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=I0(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(),bGe,"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===As.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(ol.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case As.connecting:return"connecting";case As.open:return"open";case As.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 mX(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())}},U5={exports:{}},LS,sF;function AGe(){if(sF)return LS;sF=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;LS=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]),y=(d[2]||"ms").toLowerCase();switch(y){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,y){var g=d>=p*1.5;return Math.round(c/p)+" "+y+(g?"s":"")}return LS}function wGe(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=o,n.humanize=AGe(),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,y,g;function T(...C){if(!T.enabled)return;const A=T,I=Number(new Date),D=I-(d||I);A.diff=D,A.prev=d,A.curr=I,d=I,C[0]=n.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let M=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(j,V)=>{if(j==="%%")return"%";M++;const X=n.formatters[V];if(typeof X=="function"){const re=C[M];j=X.call(A,re),C.splice(M,1),M--}return j}),n.formatArgs.call(A,C),(A.log||n.log).apply(A,C)}return T.namespace=c,T.useColors=n.useColors(),T.color=n.selectColor(c),T.extend=r,T.destroy=n.destroy,Object.defineProperty(T,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(y!==n.namespaces&&(y=n.namespaces,g=n.enabled(c)),g),set:C=>{p=C}}),typeof n.init=="function"&&n.init(T),T}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,]+/),y=p.length;for(d=0;d<y;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 SGe=wGe;(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,y=>{y!=="%%"&&(d++,y==="%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 Kt<"u"&&"env"in Kt&&(f=n.DEBUG),f}function s(){try{return localStorage}catch{}}e.exports=SGe(t);const{formatters:l}=e.exports;l.j=function(f){try{return JSON.stringify(f)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(U5,U5.exports);var bR=U5.exports;const _Ge=bR;var xGe=(e,t=!1)=>{const n=_Ge(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const CGe=xGe;var RGe=(e,t,n)=>class extends e{constructor(i,a={}){super(i,{transport:n,...a}),this._logger=CGe("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 $Ge=dX,{Socket:IGe}=mGe,kGe=RGe;var DGe=kGe(IGe,$Ge);const LGe=DGe;var ER={WsClient:LGe};function OGe(e){const t=W.useRef(e);W.useEffect(()=>{t.current=e},[e]),W.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function PGe(e){const t=e||window.location.href;return new URL(t).host}function a0(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 OS={};function MGe({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const a=`${t}/token?${e0(r)}`;return OS[a]||(OS[a]=async function(){var f,c;const s=await n(a,{headers:a0(i)});if((f=s==null?void 0:s.data)!=null&&f.token)return s.data;if((c=s==null?void 0:s.data)!=null&&c.error)throw new Error(s.data.error);const l=Nb(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${l}`)}),OS[a]}const NGe=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=YFe(t);return{token:ZFe(n),url:n}}catch(e){return{error:e}}},gX=()=>Au(globalThis,"blocklet.appPid")||Au(globalThis,"blocklet.appId")||Au(globalThis,"env.appId")||"",BGe=()=>(Au(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(rZ,""),PS=e=>`relay:${gX()}:${e}`,FGe=()=>window.location.protocol==="https:"?"wss:":"ws:",lF=e=>!e||new URL(e).origin===window.location.origin,uF=e=>["succeed","error","timeout","busy"].includes(e);function UGe({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:y=!0,saveConnect:g=!0,useSocket:T=!0,provider:C="wallet"}){const A=ea({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:aF(i,oF),checkFn:t,results:{},action:e,provider:C}),I=A1[a]||A1.en,D=un(()=>NGe(),[]),M=Math.ceil(r/n),J=ea({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:j,decrypt:V}=eJe(),X=lm(),re=X1(),le=$t((..._)=>{const v={[l]:j,...A.extraParams,locale:a,forceConnected:y,autoConnect:p&&!X.wallet&&!J.cancelWhenScannedCounter&&["ios","android"].includes(Pr.get("connected_wallet_os")),provider:A.provider};return re&&(v.visitorId=re),MGe({action:e,prefix:A.prefix,baseUrl:A.baseUrl,checkFn:A.checkFn,extraParams:v})(..._)}),ee=()=>{J.cancelWhenScannedCounter++};W.useEffect(()=>{J.cancelWhenScannedCounter>0&&(i.nw?f(new Error(I.retryForbidden)):S())},[J.cancelWhenScannedCounter]);const P=W.useRef(null),E=W.useRef(null);W.useEffect(()=>(T&&lF(A.baseUrl)&&gX()?(!P.current||P.current.isConnected()===!1||P.current.baseUrl!==A.baseUrl)&&(P.current=new ER.WsClient(`${FGe()}//${PGe(A.baseUrl)}${BGe()}${rZ}/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||uF(A.status)?null:n,b=async()=>{try{u[s]&&A.status==="created"&&await A.checkFn(`${A.prefix}/timeout?${e0(u)}`,{headers:a0(A.baseUrl)})}catch{}try{A.token&&E.current&&(await P.current.unsubscribe(PS(A.token)),E.current=null)}catch{}},S=$t(async(_=!0)=>{_&&b();try{A.loading=!0,A.token="",A.url="",A.store=null,A.extraParams=aF(i,oF),await TE();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=`${I.generateError}: ${v.message}`}}),R=W.useRef(null);W.useEffect(()=>{R.current={state:A,params:u}}),W.useEffect(()=>()=>{const{state:_,params:v}=R.current;_.status==="created"&&v[s]&&_.checkFn(`${_.prefix}/timeout?${e0(v)}`,{headers:a0(_.baseUrl)})},[]);const $=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(`${I.invalidSessionStatus} [${_.status}]`)}catch(_){A.status="error",A.error=_.message,f(_,A==null?void 0:A.store,V)}finally{A.loading=!1}};W.useEffect(()=>{if(!A.token&&!A.store&&!A.loading&&!A.error)if(D)$();else{S(!1);return}if(A.status!=="timeout"&&A.checkCount>M){A.status="timeout",b();return}if(A.status==="succeed"&&!J.onSuccessCalled&&(lF(A.baseUrl)&&g&&A.saveConnect&&A.store.did&&PY({...A.store,appInfo:A.appInfo,memberAppInfo:A.memberAppInfo}),A.store)){const{nextWorkflow:_}=A.store;if(_)try{const v=XFe(_,s);A.nextWorkflow=(v==null?void 0:v.nextWorkflow)||_,Object.assign(A,v),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=Hl({baseURL:v.baseUrl,timeout:8e3}).get,x()}catch(v){console.error(`Invalid nextWorkflow: ${_}`,v),A.status="error",A.error=`Invalid nextWorkflow: ${_}: ${v.message}`}else if(A.nextWorkflow&&(A.nextWorkflow="",A.url=""),typeof c=="function"){const v=Object.values({...A.results,[A.token]:A.store});J.onSuccessCalled=!0;const k=v.length>1?v:v[0],ne=Tl(k);c(ne,V,{sourceAppPid:i==null?void 0:i.sourceAppPid})}}}),W.useEffect(()=>{if(A.token&&J.isSocketAvailable&&P.current){let _=!1;E.current?E.current.token!==A.token&&(P.current.unsubscribe(PS(E.current.token)),_=!0):_=!0,_&&(E.current=P.current.subscribe(PS(A.token)),E.current.token=A.token,E.current.on("updated",({response:v})=>{let{status:k,error:ne}=v;k==="forbidden"&&(ne=I.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?${e0(u)}`,{headers:a0(A.baseUrl)}),{status:ne,error:B,mfaCode:q=0}=k.data;if(A.store=k.data,A.mfaCode=q,A.checking=!1,A.status=ne,ne==="error"&&B){const ie=new Error(B);throw ie.response=k,ie}return k.data}catch(k){const{response:ne}=k;if(ne!=null&&ne.status){u[s]&&A.checkFn(`${A.prefix}/timeout?${e0(u)}`,{headers:a0(A.baseUrl)});const B=(v=ne==null?void 0:ne.data)!=null&&v.error?ne.data.error:k.message,q=new Error(B);q.code=ne.status,A.status="error",A.checking=!1,A.error=B,f(q,A==null?void 0:A.store,V)}else A.status="error",A.checking=!1,A.error=I.generateError}return null};return sGe(x,h()),OGe(()=>{J.isSocketAvailable&&A.token&&uF(A.status)===!1&&x(!0)}),{state:A,generate:S,cancelWhenScanned:ee}}var TR={};Object.defineProperty(TR,"__esModule",{value:!0});var yX=TR.default=void 0;HGe(W);var ln=K;function HGe(e){return e&&e.__esModule?e:{default:e}}function cF(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 fF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cF(Object(n),!0).forEach(function(r){jGe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jGe(e,t,n){return t=JGe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JGe(e){var t=VGe(e,"string");return typeof t=="symbol"?t:String(t)}function VGe(e,t){if(typeof e!="object"||e===null)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 AR=function(t){return(0,ln.jsxs)("svg",fF(fF({},t),{},{children:[(0,ln.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,ln.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"url(#paint0_linear)"}),(0,ln.jsx)("path",{d:"M3.52 7.36A2.56 2.56 0 0 1 6.08 4.8h19.84a2.56 2.56 0 0 1 2.56 2.56v12.16a2.56 2.56 0 0 1-2.56 2.56H6.08a2.56 2.56 0 0 1-2.56-2.56V7.36z",fill:"#9FCBFF",filter:"url(#filter0_i)"}),(0,ln.jsx)("path",{d:"M2.56 9.28a2.56 2.56 0 0 1 2.56-2.56h21.76a2.56 2.56 0 0 1 2.56 2.56v13.6a2.56 2.56 0 0 1-2.56 2.56H5.12a2.56 2.56 0 0 1-2.56-2.56V9.28z",fill:"url(#paint1_linear)",filter:"url(#filter1_d)"}),(0,ln.jsx)("path",{d:"M0 22.32l32-6.16V32H0v-9.68z",fill:"url(#paint2_linear)",filter:"url(#filter2_d)"}),(0,ln.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.536 9.248h8.288c.408 0 .74.3.74.672v4.64c0 .371-.332.672-.74.672H5.536c-.408 0-.74-.3-.74-.672v-.04a.158.158 0 1 0-.316 0v.04c0 .53.473.96 1.056.96h8.288c.583 0 1.056-.43 1.056-.96V9.92c0-.53-.473-.96-1.056-.96H5.536c-.583 0-1.056.43-1.056.96v.04a.158.158 0 0 0 .317 0v-.04c0-.371.33-.672.739-.672zm-1.023 4.638a.127.127 0 0 0 .087.034h1.267c.472 0 .83-.107 1.076-.322.25-.217.381-.548.397-.993a11.281 11.281 0 0 0 0-.734c-.012-.426-.148-.751-.406-.975-.258-.224-.622-.336-1.09-.336H4.6a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.794-.806c-.099.1-.253.149-.464.149h-.502V11.25h.478c.21 0 .369.051.474.154.108.102.166.26.172.475.006.09.01.208.01.355s-.004.267-.01.36c-.006.221-.059.383-.158.485zm1.63.806a.127.127 0 0 0 .087.034h.64a.116.116 0 0 0 .087-.034.11.11 0 0 0 .038-.086v-3.12a.11.11 0 0 0-.038-.086.116.116 0 0 0-.086-.034h-.641a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.637.034a.127.127 0 0 1-.086-.034.128.128 0 0 1-.033-.086v-3.12c0-.035.01-.064.033-.086a.127.127 0 0 1 .086-.034h1.244c.469 0 .832.112 1.09.336.259.224.394.549.407.974a11.244 11.244 0 0 1 0 .735c-.016.445-.148.776-.397.993-.245.215-.604.322-1.076.322H9.574zm1.244-.691c.21 0 .365-.05.464-.149.099-.102.152-.264.158-.485a5.52 5.52 0 0 0 .01-.36c0-.147-.004-.265-.01-.355-.006-.214-.064-.373-.172-.475-.106-.103-.263-.154-.474-.154h-.478v1.978h.502zm2.468-1.382a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.286-.288.286zm0 1.495a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.287-.288.287z",fill:"#4598FA"})]}),(0,ln.jsxs)("defs",{children:[(0,ln.jsxs)("filter",{id:"filter0_i",x:"3.52",y:"1.8",width:"24.96",height:"20.28",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,ln.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,ln.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,ln.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,ln.jsx)("feOffset",{dy:"-3"}),(0,ln.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,ln.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,ln.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.2 0"}),(0,ln.jsx)("feBlend",{in2:"shape",result:"effect1_innerShadow"})]}),(0,ln.jsxs)("filter",{id:"filter1_d",x:"-1.44",y:"1.72",width:"34.88",height:"26.72",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,ln.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,ln.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,ln.jsx)("feOffset",{dy:"-1"}),(0,ln.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,ln.jsx)("feColorMatrix",{values:"0 0 0 0 0.220767 0 0 0 0 0.470803 0 0 0 0 0.701605 0 0 0 0.18 0"}),(0,ln.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,ln.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,ln.jsxs)("filter",{id:"filter2_d",x:"-5",y:"11.16",width:"42",height:"25.84",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,ln.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,ln.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,ln.jsx)("feOffset",{}),(0,ln.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,ln.jsx)("feColorMatrix",{values:"0 0 0 0 0.14382 0 0 0 0 0.205065 0 0 0 0 0.522634 0 0 0 0.25 0"}),(0,ln.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,ln.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,ln.jsxs)("linearGradient",{id:"paint0_linear",x1:"16",x2:"16",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,ln.jsx)("stop",{stopColor:"#4F9DF6"}),(0,ln.jsx)("stop",{offset:"1",stopColor:"#0A79F8"})]}),(0,ln.jsxs)("linearGradient",{id:"paint1_linear",x1:"16",y1:"6.72",x2:"16",y2:"25.44",gradientUnits:"userSpaceOnUse",children:[(0,ln.jsx)("stop",{stopColor:"#fff"}),(0,ln.jsx)("stop",{offset:"1",stopColor:"#ECEFFF"})]}),(0,ln.jsxs)("linearGradient",{id:"paint2_linear",x1:"16",y1:"19.2",x2:"18.48",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,ln.jsx)("stop",{offset:".007",stopColor:"#77B2F6"}),(0,ln.jsx)("stop",{offset:".055",stopColor:"#4F9DF6"}),(0,ln.jsx)("stop",{offset:"1",stopColor:"#4598FA"})]}),(0,ln.jsx)("clipPath",{id:"clip0",children:(0,ln.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"#fff"})})]})]}))};AR.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};AR.displayName="did-wallet";var qGe=AR;yX=TR.default=qGe;function wR({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i}=qu(),a=r("openInWallet"),o=un(()=>{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(()=>{rn(()=>import("./index-7WXVYQMt.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),om(()=>{o&&s()}),K.jsxs(Gu,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:qt.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...l,onClick:i?s:lr,children:[K.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[K.jsx(yX,{}),K.jsx($i,{sx:{fontSize:"16px",fontWeight:"bold"},children:a})]}),K.jsx(Yn,{icon:IE,fontSize:"1.3rem",color:qt.primaryBase})]})}wR.propTypes={tokenState:ve.object.isRequired,locale:ve.string,tokenKey:ve.string};wR.defaultProps={locale:"en",tokenKey:"_t_"};const Ey=["scanned","succeed","error","busy"];function SR({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:y,useSocket:g,allowWallet:T,provider:C,webWalletUrl:A,onRecreateSession:I,messages:D,enabledConnectTypes:M}){var te,ge,pe;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const J=W.useContext(Kp),{lostPassportUrl:j,connectState:V,extraParams:X,staticState:re,changeStatus:le,t:ee,isWalletWebview:P,matchSmallScreen:E}=qu(),u=lm(),h=un(()=>{var ae;return C||(X==null?void 0:X.provider)||((ae=J==null?void 0:J.session)==null?void 0:ae.provider)||"wallet"},[X==null?void 0:X.provider,(te=J==null?void 0:J.session)==null?void 0:te.provider]);W.useEffect(()=>{$(c)},[c]);const{state:b,generate:S,cancelWhenScanned:R}=UGe({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:y,useSocket:g,allowWallet:T,provider:h}),{setBaseUrl:$,oauthConfigList:x,oauthState:_}=PC({defaultStatus:b.status}),v=lz(V==null?void 0:V.sourceAppPid);ap(()=>{gl(v)||S()},[V==null?void 0:V.sourceAppPid]);const k=un(()=>Ey.includes(_.status)||Ey.includes(b.status),[b.status,_.status]);W.useEffect(()=>{Ey.includes(_.status)?le(_.status):Ey.includes(b.status)?le(b.status):le("created")},[le,b.status,_.status]);const ne=$t(()=>{I(),_.reset(),b.inExistingSession||S()}),B=$t(()=>{I(),b.inExistingSession||(re.current.cancelCount++,R())}),q=un(()=>({confirm:D.confirm,success:D.success,error:b.error||_.error||""}),[D.confirm,D.success,b.error,_.error]),ie=un(()=>T&&M.includes("mobile")&&!P,[T,M,P]),ce=LY(A),he=un(()=>T&&M.includes("web")&&(ce||Mb())&&!u.mobile.any,[T,M,(ge=u==null?void 0:u.mobile)==null?void 0:ge.any]),Se=un(()=>T&&M.includes("mobile")&&u.mobile.any,[T,M,(pe=u==null?void 0:u.mobile)==null?void 0:pe.any]),U=un(()=>{const ae=KVe(["auth0","apple","github","google"],M);return x.filter(me=>ae.includes(me.provider))},[x,M]),O=un(()=>U.length>0&&["login","invite"].includes(b.action),[U]),Z=un(()=>{const ae=ie||he||Se;let me=null;return O&&(me=ae?K.jsxs(K.Fragment,{children:[K.jsx(Xx,{light:!0,sx:{color:qt.textMuted,width:E?"200px":"368px",maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:qt.lineStep}},children:"OR"}),K.jsx(W3,{providerList:U,onSuccess:e,onError:t,tokenState:b,locale:s})]}):K.jsx(W3,{providerList:U,onSuccess:e,onError:t,tokenState:b,type:"list",locale:s})),K.jsxs(K.Fragment,{children:[K.jsx(yt,{"data-did-auth-url":b.url,sx:{display:"none"}}),Se&&K.jsx(wR,{tokenState:b,locale:s,tokenKey:l}),ie&&K.jsx(gR,{tokenState:b,messages:D,locale:s}),he&&K.jsx(hR,{tokenState:b,webWalletUrl:A,locale:s}),ae&&j&&K.jsx(jq,{href:j,underline:"none",sx:{fontSize:"12px",width:"auto",margin:"auto",display:E?"inline-block":"none"},children:ee("lostPassport")}),me]})},[b.url,j,ie,he,Se]);return un(()=>b.loading||_.loading,[b.loading,_.loading])?K.jsx(zC,{}):k?K.jsxs(K.Fragment,{children:[K.jsx(yt,{"data-did-auth-url":b.url,sx:{display:"none"}}),K.jsx(DE,{status:_.status||b.status,nextWorkflow:b.nextWorkflow,mfaCode:b.mfaCode,onCancel:B,onRetry:ne,messages:q,locale:s,className:"auth-status"})]}):Z}SR.propTypes={onError:ve.func,onSuccess:ve.func.isRequired,action:ve.string.isRequired,checkFn:ve.func.isRequired,prefix:ve.string,checkInterval:ve.number,checkTimeout:ve.number,locale:ve.oneOf(["en","zh",""]),tokenKey:ve.string,encKey:ve.string,baseUrl:ve.string,autoConnect:ve.bool,forceConnected:ve.oneOfType([ve.bool,ve.string]),saveConnect:ve.bool,useSocket:ve.bool,allowWallet:ve.bool,provider:ve.oneOf(["wallet","auth0",""]),webWalletUrl:ve.string,onRecreateSession:ve.func,messages:ve.object,enabledConnectTypes:ve.arrayOf(ve.oneOf(["web","mobile","github","apple","google","auth0"]))};SR.defaultProps={prefix:LC,onError:lr,checkInterval:2*1e3,checkTimeout:nZ*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:DY(),onRecreateSession:lr,messages:{},enabledConnectTypes:["web","mobile","github","apple","google","auth0"]};var MS=vW,GGe=UG,WGe=L8,zGe=1/0,KGe=MS&&1/WGe(new MS([,-0]))[1]==zGe?function(e){return new MS(e)}:GGe,YGe=KGe,ZGe=k8,XGe=ZZ,QGe=XZ,eWe=D8,tWe=YGe,nWe=L8,rWe=200;function iWe(e,t,n){var r=-1,i=XGe,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=QGe;else if(a>=rWe){var f=t?null:tWe(e);if(f)return nWe(f);o=!1,i=eWe,l=new ZGe}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 vX=iWe,aWe=C8,oWe=LE,sWe=rm,lWe=vX,dF=b8,uWe=Vb,cWe=sWe(function(e){var t=uWe(e);return dF(t)&&(t=void 0),lWe(aWe(e,1,dF,!0),oWe(t))}),fWe=cWe;const dWe=Mt(fWe);var pWe=YG,hWe=im;function mWe(e,t){return e&&pWe(e,t,hWe)}var gWe=mWe,yWe=df;function vWe(e,t){return function(n,r){if(n==null)return n;if(!yWe(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 bWe=vWe,EWe=gWe,TWe=bWe,AWe=TWe(EWe),wWe=AWe,SWe=wWe,_We=df;function xWe(e,t){var n=-1,r=_We(e)?Array(e.length):[];return SWe(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var CWe=xWe;function RWe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var $We=RWe,pF=W1;function IWe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=pF(e),o=t!==void 0,s=t===null,l=t===t,f=pF(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 kWe=IWe,DWe=kWe;function LWe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=DWe(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 OWe=LWe,NS=kp,PWe=K1,MWe=LE,NWe=CWe,BWe=$We,FWe=tm,UWe=OWe,HWe=Jb,jWe=Ea;function JWe(e,t,n){t.length?t=NS(t,function(a){return jWe(a)?function(o){return PWe(o,a.length===1?a[0]:a)}:a}):t=[HWe];var r=-1;t=NS(t,FWe(MWe));var i=NWe(e,function(a,o,s){var l=NS(t,function(f){return f(a)});return{criteria:l,index:++r,value:a}});return BWe(i,function(a,o){return UWe(a,o,n)})}var VWe=JWe,qWe=C8,GWe=VWe,WWe=rm,hF=fW,zWe=WWe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&hF(e,t[0],t[1])?t=[]:n>2&&hF(t[0],t[1],t[2])&&(t=[t[0]]),GWe(e,qWe(t,1),[])}),KWe=zWe;const bX=Mt(KWe),YWe=Ln(ji,"/api/user-session");function EX({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/"}={}){const a=X1(),o=un(()=>Hl({baseURL:Ln(i,YWe)},{lazy:!0,lazyTime:500}),[i]),s=$t(async()=>{const{data:y}=await o.get("",{params:{visitorId:a,appPid:e}});return y}),l=ea({loaded:!1,loadingId:null}),f=pke(s,{manual:!r,onFinally(){l.loaded=!0},refreshDeps:[e,i]}),c=async y=>{var T,C,A;const g=qb(y,["userDid","visitorId","passportId"]);try{l.loadingId=y.id;const{data:I}=await o.post("login",{...g,appPid:n});return I}catch(I){const D=I.response?((C=(T=I.response)==null?void 0:T.data)==null?void 0:C.error)||((A=I.response)==null?void 0:A.data):I.message;throw _i.error(D),console.error("Quick login error",I),I}finally{l.loadingId=null}},d=un(()=>{if(!f.data)return[];const y=new Date().getTime(),g=f.data.filter(C=>t!==null?!0:C.appPid===e),T=bX(g,C=>y-new Date(C.updatedAt).getTime());return dWe(T,C=>[C.userDid].join("_"))},[f.data,t,e]),p=un(()=>d.data&&d.data.length>0,[d==null?void 0:d.data]);return{loadingId:l.loadingId,userSessions:d,quickLoginEnabled:p,loginUserSession:c,loading:f.loading,loaded:f.loaded,refresh:f.refreshAsync}}const Ty="did-connect",mF="quick-connect";function _R({mode:e,isFullScreen:t,hideCloseButton:n,...r}){var P;const i=ea({showTab:Ty}),{connectState:a,blocklet:o,matchSmallScreen:s}=qu(),{extraContent:l,onSuccess:f,action:c,onClose:d,options:p}=r,y=un(()=>(a==null?void 0:a.sourceAppPid)||bz(),[a==null?void 0:a.sourceAppPid]),{quickLoginEnabled:g,loading:T,userSessions:C,loginUserSession:A,refresh:I}=EX({appPid:y,loginAppPid:o==null?void 0:o.appPid,sourceAppPid:a==null?void 0:a.sourceAppPid,autoFetch:["login"].includes(c)}),D=un(()=>{var E;return((E=r==null?void 0:r.messages)==null?void 0:E.title)||zUe},[(P=r==null?void 0:r.messages)==null?void 0:P.title]),M=$t(async(...E)=>{const u=await A(...E);await f({...u,encrypted:!1},h=>h)});W.useEffect(()=>{(p==null?void 0:p.showQuickConnect)!==!1&&!T&&g&&(i.showTab=mF)},[T,g,p==null?void 0:p.showQuickConnect]);const J=bke(T,{wait:100}),j=$t(()=>{i.showTab=Ty}),V=$t(()=>{i.showTab=mF}),X=un(()=>i.showTab===Ty||!g,[i.showTab,g]),re=un(()=>{let E=!0;return(T||J)&&(E=!1),g||(E=!1),p.showQuickConnect===!1&&(E=!1),i.showTab!==Ty&&(E=!1),E},[g,i.showTab,T,J]),le=un(()=>K.jsx(yt,{onClick:d,sx:{fontSize:"1.5rem",cursor:"pointer",width:"1.5rem",height:"1.5rem",textAlign:"center",color:qt.textMuted,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:K.jsx(yt,{component:"span",sx:{display:"block",fontWeight:"lighter",lineHeight:1,transform:"scale(1.3)"},children:"×"})}),[d]);let ee=null;return T||J?ee=K.jsx(zC,{}):X?ee=K.jsx(SR,{...r}):ee=K.jsx(pR,{userSessions:C,onLogin:M,onRetry:I,messages:r.messages,onLoginAnother:j}),K.jsxs(yt,{sx:{display:"flex",flexDirection:"column",gap:1.5,color:qt.textBase,width:"100%"},children:[e==="dialog"?K.jsxs(yt,{sx:{pb:2,display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:t?"none":`1px solid ${qt.lineStep}`},children:[K.jsxs($i,{component:"h3",variant:"h6",sx:{display:"flex",alignItems:"center"},children:[re&&K.jsx(Ps,{size:"small",disabled:a.status!=="created",onClick:V,disableRipple:!0,sx:{fontSize:"0.75em"},children:K.jsx(Yn,{icon:zB,color:qt.textMuted})}),D]}),!n&&K.jsx(yt,{sx:{display:t?"none":"block"},children:le})]}):K.jsxs($i,{component:"h3",variant:"h4",sx:{pt:s?1.5:3,pb:s?0:1.5,fontWeight:"bold",display:"flex",alignItems:"center"},children:[re&&K.jsx(Ps,{size:"small",onClick:V,disabled:a.status!=="created",disableRipple:!0,sx:{fontSize:"0.75em"},children:K.jsx(Yn,{icon:zB,color:qt.textMuted})}),D]}),ee,K.jsxs(yt,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",pt:1.5,pb:t||s?1.5:0,px:t||s?3:0,position:t||s?"fixed":"static",top:0,left:0,right:0,backgroundColor:"white",borderBottom:t||s?`1px solid ${qt.lineStep}`:"none"},children:[K.jsx(iR,{isFullScreen:t||s,disableSwitchApp:r.disableSwitchApp}),e==="dialog"&&!n&&K.jsx(yt,{sx:{display:t||s?"block":"none"},children:le})]}),l?K.jsx(yt,{children:l}):null]})}_R.propTypes={onSuccess:ve.func,onClose:ve.func,action:ve.string.isRequired,messages:ve.object,extraContent:ve.any,disableSwitchApp:ve.bool,mode:ve.oneOf(["fullScreen","dialog","normal"]),isFullScreen:ve.bool,options:ve.object,hideCloseButton:ve.bool};_R.defaultProps={onSuccess:lr,onClose:lr,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!1};function xR(e){const{checkFn:t,extraParams:n,blocklet:r,action:i,locale:a,lostPassportUrl:o}=e;if(typeof t!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const[s,l]=W.useState(300),f=W.useRef(null),c=sm(f);return W.useEffect(()=>{c!=null&&c.height&&c.height>s&&l(c.height)},[c==null?void 0:c.height,s]),K.jsx(yt,{sx:{position:"relative",width:"100%",height:"100%",display:"flex",alignItems:"center",lineHeight:1.2,fontFamily:"Lato",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:K.jsx(nR,{blocklet:r,action:i,locale:a,extraParams:n,lostPassportUrl:o,children:K.jsx(yt,{sx:{height:s,overflow:"hidden",transition:"height 0.2s ease"},children:K.jsx(yt,{ref:f,children:K.jsx(_R,{...e})})})})})}xR.propTypes={checkFn:ve.func.isRequired,extraParams:ve.object,blocklet:ve.object.isRequired,action:ve.string.isRequired,locale:ve.string,lostPassportUrl:ve.string};xR.defaultProps={extraParams:{},locale:"en",lostPassportUrl:void 0};const ZWe=Yje(Oje(Qje(xR))),XWe=W.forwardRef((e,t)=>{const{api:n}=W.useContext(Kp),r={containerEl:null,popup:!0,checkFn:(n==null?void 0:n.get)||lr,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=ea({show:!1,...Tl(r)}),[a,o]=W.useState({}),s=$t(d=>{const{containerEl:p,checkFn:y,popup:g,onSuccess:T,messages:C,...A}=Tl(d);typeof y=="function"&&(i.checkFn=y),typeof T=="function"&&(i.onSuccess=(...I)=>{T(...I),setTimeout(()=>{f()},2e3)}),g!==void 0&&(i.popup=g),C!==void 0&&(i.messages=C),p!==void 0&&(i.containerEl=p),o(A),i.show=!0}),l=$t(()=>{const d=Tl(r);Object.keys(d).forEach(p=>{i[p]=d[p]})}),f=$t(()=>{i.show=!1,l()});W.useImperativeHandle(t,()=>({open:s,close:f}),[s,f]);const c=K.jsx(ZWe,{open:!0,popup:i.popup,messages:i.messages,onClose:f,onSuccess:i.onSuccess,checkFn:i.checkFn,...a});return i.containerEl?D1.createPortal(c,i.containerEl):i.show&&c});function QWe(){const e=W.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 C;if(gl(s)){const A=gm(),I=Wp();s=A?I.appUrl:window.location.origin}const{onSuccess:c,onClose:d,onError:p,...y}=o;if(!((C=y==null?void 0:y.extraParams)!=null&&C.provider))throw xc(p)&&p("Must have extraParams.provider"),new Error("Must have extraParams.provider");y!=null&&y.prefix||(y.prefix=window.location.origin+Ln(f==null?void 0:f.prefix,LC));const g=new URLSearchParams;g.set("params",btoa(encodeURIComponent(JSON.stringify(y)))),g.set("appPid",f==null?void 0:f.appPid),g.set("locale",l);const T=kHe(Ln(s||"/",ji,`/connect?${g.toString()}`));try{const A=await DHe({popup:T});return xc(c)&&c({...A,encrypted:!1}),{...A,encrypted:!1}}catch(A){throw A.message==="Popup closed"?xc(d)&&d():xc(p)&&p(A),A}}),r=$t((...o)=>{var s;(s=e.current)==null||s.close(...o)}),i=un(()=>K.jsx(XWe,{ref:e})),a=un(()=>({open:t,close:r,openPopup:n}));return{connectHolder:i,connectApi:a}}const Qr={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")},eze={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-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:"Bind DID Wallet",scan:"Scan following qrcode with DID Wallet to bind wallet",confirm:"Select passport in your DID Wallet",success:"Passport and session updated"},zh:{title:"绑定 DID 钱包",scan:"请使用 DID 钱包扫码下面的二维码以绑定 DID 钱包",confirm:"在 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:"找回通行证"}}};var H5={exports:{}};const tze="2.0.0",TX=256,nze=Number.MAX_SAFE_INTEGER||9007199254740991,rze=16,ize=TX-6,aze=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var OE={MAX_LENGTH:TX,MAX_SAFE_COMPONENT_LENGTH:rze,MAX_SAFE_BUILD_LENGTH:ize,MAX_SAFE_INTEGER:nze,RELEASE_TYPES:aze,SEMVER_SPEC_VERSION:tze,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},BS={};const oze=typeof Kt=="object"&&BS&&BS.NODE_DEBUG&&/\bsemver\b/i.test(BS.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var PE=oze;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=OE,a=PE;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]],y=T=>{for(const[C,A]of p)T=T.split(`${C}*`).join(`${C}{0,${A}}`).split(`${C}+`).join(`${C}{1,${A}}`);return T},g=(T,C,A)=>{const I=y(C),D=c++;a(T,D,C),f[T]=D,l[D]=C,o[D]=new RegExp(C,A?"g":void 0),s[D]=new RegExp(I,A?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),g("MAINVERSION",`(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${l[f.NUMERICIDENTIFIER]}|${l[f.NONNUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${l[f.NUMERICIDENTIFIERLOOSE]}|${l[f.NONNUMERICIDENTIFIER]})`),g("PRERELEASE",`(?:-(${l[f.PRERELEASEIDENTIFIER]}(?:\\.${l[f.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${l[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[f.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${d}+`),g("BUILD",`(?:\\+(${l[f.BUILDIDENTIFIER]}(?:\\.${l[f.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${l[f.MAINVERSION]}${l[f.PRERELEASE]}?${l[f.BUILD]}?`),g("FULL",`^${l[f.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${l[f.MAINVERSIONLOOSE]}${l[f.PRERELEASELOOSE]}?${l[f.BUILD]}?`),g("LOOSE",`^${l[f.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${l[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${l[f.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:${l[f.PRERELEASE]})?${l[f.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:${l[f.PRERELEASELOOSE]})?${l[f.BUILD]}?)?)?`),g("XRANGE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAINLOOSE]}$`),g("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),g("COERCERTL",l[f.COERCE],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${l[f.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${l[f.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${l[f.LONECARET]}${l[f.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${l[f.LONECARET]}${l[f.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${l[f.GTLT]}\\s*(${l[f.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]}|${l[f.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${l[f.XRANGEPLAIN]})\\s+-\\s+(${l[f.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${l[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[f.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(H5,H5.exports);var bm=H5.exports;const sze=Object.freeze({loose:!0}),lze=Object.freeze({}),uze=e=>e?typeof e!="object"?sze:e:lze;var CR=uze;const gF=/^[0-9]+$/,AX=(e,t)=>{const n=gF.test(e),r=gF.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},cze=(e,t)=>AX(t,e);var wX={compareIdentifiers:AX,rcompareIdentifiers:cze};const Ay=PE,{MAX_LENGTH:yF,MAX_SAFE_INTEGER:wy}=OE,{safeRe:vF,t:bF}=bm,fze=CR,{compareIdentifiers:Zf}=wX;let dze=class ms{constructor(t,n){if(n=fze(n),t instanceof ms){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>yF)throw new TypeError(`version is longer than ${yF} characters`);Ay("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?vF[bF.LOOSE]:vF[bF.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>wy||this.major<0)throw new TypeError("Invalid major version");if(this.minor>wy||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>wy||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<wy)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(Ay("SemVer.compare",this.version,this.options,t),!(t instanceof ms)){if(typeof t=="string"&&t===this.version)return 0;t=new ms(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof ms||(t=new ms(t,this.options)),Zf(this.major,t.major)||Zf(this.minor,t.minor)||Zf(this.patch,t.patch)}comparePre(t){if(t instanceof ms||(t=new ms(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(Ay("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 Zf(r,i)}while(++n)}compareBuild(t){t instanceof ms||(t=new ms(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(Ay("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 Zf(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]),Zf(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 ra=dze;const EF=ra,pze=(e,t,n=!1)=>{if(e instanceof EF)return e;try{return new EF(e,t)}catch(r){if(!n)return null;throw r}};var Yp=pze;const hze=Yp,mze=(e,t)=>{const n=hze(e,t);return n?n.version:null};var gze=mze;const yze=Yp,vze=(e,t)=>{const n=yze(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var bze=vze;const TF=ra,Eze=(e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new TF(e instanceof TF?e.version:e,n).inc(t,r,i).version}catch{return null}};var Tze=Eze;const AF=Yp,Aze=(e,t)=>{const n=AF(e,null,!0),r=AF(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 wze=Aze;const Sze=ra,_ze=(e,t)=>new Sze(e,t).major;var xze=_ze;const Cze=ra,Rze=(e,t)=>new Cze(e,t).minor;var $ze=Rze;const Ize=ra,kze=(e,t)=>new Ize(e,t).patch;var Dze=kze;const Lze=Yp,Oze=(e,t)=>{const n=Lze(e,t);return n&&n.prerelease.length?n.prerelease:null};var Pze=Oze;const wF=ra,Mze=(e,t,n)=>new wF(e,n).compare(new wF(t,n));var ss=Mze;const Nze=ss,Bze=(e,t,n)=>Nze(t,e,n);var Fze=Bze;const Uze=ss,Hze=(e,t)=>Uze(e,t,!0);var jze=Hze;const SF=ra,Jze=(e,t,n)=>{const r=new SF(e,n),i=new SF(t,n);return r.compare(i)||r.compareBuild(i)};var RR=Jze;const Vze=RR,qze=(e,t)=>e.sort((n,r)=>Vze(n,r,t));var Gze=qze;const Wze=RR,zze=(e,t)=>e.sort((n,r)=>Wze(r,n,t));var Kze=zze;const Yze=ss,Zze=(e,t,n)=>Yze(e,t,n)>0;var ME=Zze;const Xze=ss,Qze=(e,t,n)=>Xze(e,t,n)<0;var $R=Qze;const eKe=ss,tKe=(e,t,n)=>eKe(e,t,n)===0;var SX=tKe;const nKe=ss,rKe=(e,t,n)=>nKe(e,t,n)!==0;var _X=rKe;const iKe=ss,aKe=(e,t,n)=>iKe(e,t,n)>=0;var IR=aKe;const oKe=ss,sKe=(e,t,n)=>oKe(e,t,n)<=0;var kR=sKe;const lKe=SX,uKe=_X,cKe=ME,fKe=IR,dKe=$R,pKe=kR,hKe=(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 lKe(e,n,r);case"!=":return uKe(e,n,r);case">":return cKe(e,n,r);case">=":return fKe(e,n,r);case"<":return dKe(e,n,r);case"<=":return pKe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var xX=hKe;const mKe=ra,gKe=Yp,{safeRe:Sy,t:_y}=bm,yKe=(e,t)=>{if(e instanceof mKe)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(Sy[_y.COERCE]);else{let r;for(;(r=Sy[_y.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),Sy[_y.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;Sy[_y.COERCERTL].lastIndex=-1}return n===null?null:gKe(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var vKe=yKe,FS,_F;function bKe(){return _F||(_F=1,FS=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),FS}var EKe=Jn;Jn.Node=tf;Jn.create=Jn;function Jn(e){var t=this;if(t instanceof Jn||(t=new Jn),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}Jn.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};Jn.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++}};Jn.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++}};Jn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)AKe(this,arguments[e]);return this.length};Jn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)wKe(this,arguments[e]);return this.length};Jn.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}};Jn.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}};Jn.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};Jn.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};Jn.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};Jn.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};Jn.prototype.map=function(e,t){t=t||this;for(var n=new Jn,r=this.head;r!==null;)n.push(e.call(t,r.value,this)),r=r.next;return n};Jn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new Jn,r=this.tail;r!==null;)n.push(e.call(t,r.value,this)),r=r.prev;return n};Jn.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};Jn.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};Jn.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};Jn.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};Jn.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 Jn;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};Jn.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 Jn;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};Jn.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=TKe(this,i,n[r]);return a};Jn.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 TKe(e,t,n){var r=t===e.head?new tf(n,null,t,e):new tf(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function AKe(e,t){e.tail=new tf(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function wKe(e,t){e.head=new tf(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function tf(e,t,n,r){if(!(this instanceof tf))return new tf(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{bKe()(Jn)}catch{}const SKe=EKe,vc=Symbol("max"),ul=Symbol("length"),Xf=Symbol("lengthCalculator"),D0=Symbol("allowStale"),Ic=Symbol("maxAge"),sl=Symbol("dispose"),xF=Symbol("noDisposeOnSet"),li=Symbol("lruList"),qo=Symbol("cache"),CX=Symbol("updateAgeOnGet"),US=()=>1;class _Ke{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[vc]=t.max||1/0;const n=t.length||US;if(this[Xf]=typeof n!="function"?US:n,this[D0]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Ic]=t.maxAge||0,this[sl]=t.dispose,this[xF]=t.noDisposeOnSet||!1,this[CX]=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[vc]=t||1/0,Vh(this)}get max(){return this[vc]}set allowStale(t){this[D0]=!!t}get allowStale(){return this[D0]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Ic]=t,Vh(this)}get maxAge(){return this[Ic]}set lengthCalculator(t){typeof t!="function"&&(t=US),t!==this[Xf]&&(this[Xf]=t,this[ul]=0,this[li].forEach(n=>{n.length=this[Xf](n.value,n.key),this[ul]+=n.length})),Vh(this)}get lengthCalculator(){return this[Xf]}get length(){return this[ul]}get itemCount(){return this[li].length}rforEach(t,n){n=n||this;for(let r=this[li].tail;r!==null;){const i=r.prev;CF(this,t,r,n),r=i}}forEach(t,n){n=n||this;for(let r=this[li].head;r!==null;){const i=r.next;CF(this,t,r,n),r=i}}keys(){return this[li].toArray().map(t=>t.key)}values(){return this[li].toArray().map(t=>t.value)}reset(){this[sl]&&this[li]&&this[li].length&&this[li].forEach(t=>this[sl](t.key,t.value)),this[qo]=new Map,this[li]=new SKe,this[ul]=0}dump(){return this[li].map(t=>K3(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[li]}set(t,n,r){if(r=r||this[Ic],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const i=r?Date.now():0,a=this[Xf](n,t);if(this[qo].has(t)){if(a>this[vc])return Ud(this,this[qo].get(t)),!1;const l=this[qo].get(t).value;return this[sl]&&(this[xF]||this[sl](t,l.value)),l.now=i,l.maxAge=r,l.value=n,this[ul]+=a-l.length,l.length=a,this.get(t),Vh(this),!0}const o=new xKe(t,n,a,i,r);return o.length>this[vc]?(this[sl]&&this[sl](t,n),!1):(this[ul]+=o.length,this[li].unshift(o),this[qo].set(t,this[li].head),Vh(this),!0)}has(t){if(!this[qo].has(t))return!1;const n=this[qo].get(t).value;return!K3(this,n)}get(t){return HS(this,t,!0)}peek(t){return HS(this,t,!1)}pop(){const t=this[li].tail;return t?(Ud(this,t),t.value):null}del(t){Ud(this,this[qo].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[qo].forEach((t,n)=>HS(this,n,!1))}}const HS=(e,t,n)=>{const r=e[qo].get(t);if(r){const i=r.value;if(K3(e,i)){if(Ud(e,r),!e[D0])return}else n&&(e[CX]&&(r.value.now=Date.now()),e[li].unshiftNode(r));return i.value}},K3=(e,t)=>{if(!t||!t.maxAge&&!e[Ic])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Ic]&&n>e[Ic]},Vh=e=>{if(e[ul]>e[vc])for(let t=e[li].tail;e[ul]>e[vc]&&t!==null;){const n=t.prev;Ud(e,t),t=n}},Ud=(e,t)=>{if(t){const n=t.value;e[sl]&&e[sl](n.key,n.value),e[ul]-=n.length,e[qo].delete(n.key),e[li].removeNode(t)}};class xKe{constructor(t,n,r,i,a){this.key=t,this.value=n,this.length=r,this.now=i,this.maxAge=a||0}}const CF=(e,t,n,r)=>{let i=n.value;K3(e,i)&&(Ud(e,n),e[D0]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var CKe=_Ke,jS,RF;function ls(){if(RF)return jS;RF=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(b=>this.parseRange(b.trim())).filter(b=>b.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const b=this.set[0];if(this.set=this.set.filter(S=>!g(S[0])),this.set.length===0)this.set=[b];else if(this.set.length>1){for(const S of this.set)if(S.length===1&&T(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 b=((this.options.includePrerelease&&p)|(this.options.loose&&y))+":"+u,S=n.get(b);if(S)return S;const R=this.options.loose,$=R?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];u=u.replace($,ee(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));R&&(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(g(ne))return[ne];_.set(ne.value,ne)}_.size>1&&_.has("")&&_.delete("");const k=[..._.values()];return n.set(b,k),k}intersects(u,h){if(!(u instanceof e))throw new TypeError("a Range is required");return this.set.some(b=>C(b,h)&&u.set.some(S=>C(S,h)&&b.every(R=>S.every($=>R.intersects($,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}}jS=e;const t=CKe,n=new t({max:1e3}),r=CR,i=NE(),a=PE,o=ra,{safeRe:s,t:l,comparatorTrimReplace:f,tildeTrimReplace:c,caretTrimReplace:d}=bm,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:y}=OE,g=E=>E.value==="<0.0.0-0",T=E=>E.value==="",C=(E,u)=>{let h=!0;const b=E.slice();let S=b.pop();for(;h&&b.length;)h=b.every(R=>S.intersects(R,u)),S=b.pop();return h},A=(E,u)=>(a("comp",E,u),E=J(E,u),a("caret",E),E=D(E,u),a("tildes",E),E=V(E,u),a("xrange",E),E=re(E,u),a("stars",E),E),I=E=>!E||E.toLowerCase()==="x"||E==="*",D=(E,u)=>E.trim().split(/\s+/).map(h=>M(h,u)).join(" "),M=(E,u)=>{const h=u.loose?s[l.TILDELOOSE]:s[l.TILDE];return E.replace(h,(b,S,R,$,x)=>{a("tilde",E,b,S,R,$,x);let _;return I(S)?_="":I(R)?_=`>=${S}.0.0 <${+S+1}.0.0-0`:I($)?_=`>=${S}.${R}.0 <${S}.${+R+1}.0-0`:x?(a("replaceTilde pr",x),_=`>=${S}.${R}.${$}-${x} <${S}.${+R+1}.0-0`):_=`>=${S}.${R}.${$} <${S}.${+R+1}.0-0`,a("tilde return",_),_})},J=(E,u)=>E.trim().split(/\s+/).map(h=>j(h,u)).join(" "),j=(E,u)=>{a("caret",E,u);const h=u.loose?s[l.CARETLOOSE]:s[l.CARET],b=u.includePrerelease?"-0":"";return E.replace(h,(S,R,$,x,_)=>{a("caret",E,S,R,$,x,_);let v;return I(R)?v="":I($)?v=`>=${R}.0.0${b} <${+R+1}.0.0-0`:I(x)?R==="0"?v=`>=${R}.${$}.0${b} <${R}.${+$+1}.0-0`:v=`>=${R}.${$}.0${b} <${+R+1}.0.0-0`:_?(a("replaceCaret pr",_),R==="0"?$==="0"?v=`>=${R}.${$}.${x}-${_} <${R}.${$}.${+x+1}-0`:v=`>=${R}.${$}.${x}-${_} <${R}.${+$+1}.0-0`:v=`>=${R}.${$}.${x}-${_} <${+R+1}.0.0-0`):(a("no pr"),R==="0"?$==="0"?v=`>=${R}.${$}.${x}${b} <${R}.${$}.${+x+1}-0`:v=`>=${R}.${$}.${x}${b} <${R}.${+$+1}.0-0`:v=`>=${R}.${$}.${x} <${+R+1}.0.0-0`),a("caret return",v),v})},V=(E,u)=>(a("replaceXRanges",E,u),E.split(/\s+/).map(h=>X(h,u)).join(" ")),X=(E,u)=>{E=E.trim();const h=u.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return E.replace(h,(b,S,R,$,x,_)=>{a("xRange",E,b,S,R,$,x,_);const v=I(R),k=v||I($),ne=k||I(x),B=ne;return S==="="&&B&&(S=""),_=u.includePrerelease?"-0":"",v?S===">"||S==="<"?b="<0.0.0-0":b="*":S&&B?(k&&($=0),x=0,S===">"?(S=">=",k?(R=+R+1,$=0,x=0):($=+$+1,x=0)):S==="<="&&(S="<",k?R=+R+1:$=+$+1),S==="<"&&(_="-0"),b=`${S+R}.${$}.${x}${_}`):k?b=`>=${R}.0.0${_} <${+R+1}.0.0-0`:ne&&(b=`>=${R}.${$}.0${_} <${R}.${+$+1}.0-0`),a("xRange return",b),b})},re=(E,u)=>(a("replaceStars",E,u),E.trim().replace(s[l.STAR],"")),le=(E,u)=>(a("replaceGTE0",E,u),E.trim().replace(s[u.includePrerelease?l.GTE0PRE:l.GTE0],"")),ee=E=>(u,h,b,S,R,$,x,_,v,k,ne,B,q)=>(I(b)?h="":I(S)?h=`>=${b}.0.0${E?"-0":""}`:I(R)?h=`>=${b}.${S}.0${E?"-0":""}`:$?h=`>=${h}`:h=`>=${h}${E?"-0":""}`,I(v)?_="":I(k)?_=`<${+v+1}.0.0-0`:I(ne)?_=`<${v}.${+k+1}.0-0`:B?_=`<=${v}.${k}.${ne}-${B}`:E?_=`<${v}.${k}.${+ne+1}-0`:_=`<=${_}`,`${h} ${_}`.trim()),P=(E,u,h)=>{for(let b=0;b<E.length;b++)if(!E[b].test(u))return!1;if(u.prerelease.length&&!h.includePrerelease){for(let b=0;b<E.length;b++)if(a(E[b].semver),E[b].semver!==i.ANY&&E[b].semver.prerelease.length>0){const S=E[b].semver;if(S.major===u.major&&S.minor===u.minor&&S.patch===u.patch)return!0}return!1}return!0};return jS}var JS,$F;function NE(){if($F)return JS;$F=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(">")))}}JS=t;const n=CR,{safeRe:r,t:i}=bm,a=xX,o=PE,s=ra,l=ls();return JS}const RKe=ls(),$Ke=(e,t,n)=>{try{t=new RKe(t,n)}catch{return!1}return t.test(e)};var BE=$Ke;const IKe=ls(),kKe=(e,t)=>new IKe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var DKe=kKe;const LKe=ra,OKe=ls(),PKe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new OKe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===-1)&&(r=o,i=new LKe(r,n))}),r};var MKe=PKe;const NKe=ra,BKe=ls(),FKe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new BKe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===1)&&(r=o,i=new NKe(r,n))}),r};var UKe=FKe;const VS=ra,HKe=ls(),IF=ME,jKe=(e,t)=>{e=new HKe(e,t);let n=new VS("0.0.0");if(e.test(n)||(n=new VS("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 VS(o.semver.version);switch(o.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!a||IF(s,a))&&(a=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),a&&(!n||IF(n,a))&&(n=a)}return n&&e.test(n)?n:null};var JKe=jKe;const VKe=ls(),qKe=(e,t)=>{try{return new VKe(e,t).range||"*"}catch{return null}};var GKe=qKe;const WKe=ra,RX=NE(),{ANY:zKe}=RX,KKe=ls(),YKe=BE,kF=ME,DF=$R,ZKe=kR,XKe=IR,QKe=(e,t,n,r)=>{e=new WKe(e,r),t=new KKe(t,r);let i,a,o,s,l;switch(n){case">":i=kF,a=ZKe,o=DF,s=">",l=">=";break;case"<":i=DF,a=XKe,o=kF,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(YKe(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(y=>{y.semver===zKe&&(y=new RX(">=0.0.0")),d=d||y,p=p||y,i(y.semver,d.semver,r)?d=y:o(y.semver,p.semver,r)&&(p=y)}),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 DR=QKe;const eYe=DR,tYe=(e,t,n)=>eYe(e,t,">",n);var nYe=tYe;const rYe=DR,iYe=(e,t,n)=>rYe(e,t,"<",n);var aYe=iYe;const LF=ls(),oYe=(e,t,n)=>(e=new LF(e,n),t=new LF(t,n),e.intersects(t,n));var sYe=oYe;const lYe=BE,uYe=ss;var cYe=(e,t,n)=>{const r=[];let i=null,a=null;const o=e.sort((c,d)=>uYe(c,d,n));for(const c of o)lYe(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 OF=ls(),LR=NE(),{ANY:qS}=LR,qh=BE,OR=ss,fYe=(e,t,n={})=>{if(e===t)return!0;e=new OF(e,n),t=new OF(t,n);let r=!1;e:for(const i of e.set){for(const a of t.set){const o=pYe(i,a,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},dYe=[new LR(">=0.0.0-0")],PF=[new LR(">=0.0.0")],pYe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===qS){if(t.length===1&&t[0].semver===qS)return!0;n.includePrerelease?e=dYe:e=PF}if(t.length===1&&t[0].semver===qS){if(n.includePrerelease)return!0;t=PF}const r=new Set;let i,a;for(const y of e)y.operator===">"||y.operator===">="?i=MF(i,y,n):y.operator==="<"||y.operator==="<="?a=NF(a,y,n):r.add(y.semver);if(r.size>1)return null;let o;if(i&&a){if(o=OR(i.semver,a.semver,n),o>0)return null;if(o===0&&(i.operator!==">="||a.operator!=="<="))return null}for(const y of r){if(i&&!qh(y,String(i),n)||a&&!qh(y,String(a),n))return null;for(const g of t)if(!qh(y,String(g),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 y of t){if(c=c||y.operator===">"||y.operator===">=",f=f||y.operator==="<"||y.operator==="<=",i){if(p&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===p.major&&y.semver.minor===p.minor&&y.semver.patch===p.patch&&(p=!1),y.operator===">"||y.operator===">="){if(s=MF(i,y,n),s===y&&s!==i)return!1}else if(i.operator===">="&&!qh(i.semver,String(y),n))return!1}if(a){if(d&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===d.major&&y.semver.minor===d.minor&&y.semver.patch===d.patch&&(d=!1),y.operator==="<"||y.operator==="<="){if(l=NF(a,y,n),l===y&&l!==a)return!1}else if(a.operator==="<="&&!qh(a.semver,String(y),n))return!1}if(!y.operator&&(a||i)&&o!==0)return!1}return!(i&&f&&!a&&o!==0||a&&c&&!i&&o!==0||p||d)},MF=(e,t,n)=>{if(!e)return t;const r=OR(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},NF=(e,t,n)=>{if(!e)return t;const r=OR(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var hYe=fYe;const GS=bm,BF=OE,mYe=ra,FF=wX,gYe=Yp,yYe=gze,vYe=bze,bYe=Tze,EYe=wze,TYe=xze,AYe=$ze,wYe=Dze,SYe=Pze,_Ye=ss,xYe=Fze,CYe=jze,RYe=RR,$Ye=Gze,IYe=Kze,kYe=ME,DYe=$R,LYe=SX,OYe=_X,PYe=IR,MYe=kR,NYe=xX,BYe=vKe,FYe=NE(),UYe=ls(),HYe=BE,jYe=DKe,JYe=MKe,VYe=UKe,qYe=JKe,GYe=GKe,WYe=DR,zYe=nYe,KYe=aYe,YYe=sYe,ZYe=cYe,XYe=hYe;var $X={parse:gYe,valid:yYe,clean:vYe,inc:bYe,diff:EYe,major:TYe,minor:AYe,patch:wYe,prerelease:SYe,compare:_Ye,rcompare:xYe,compareLoose:CYe,compareBuild:RYe,sort:$Ye,rsort:IYe,gt:kYe,lt:DYe,eq:LYe,neq:OYe,gte:PYe,lte:MYe,cmp:NYe,coerce:BYe,Comparator:FYe,Range:UYe,satisfies:HYe,toComparators:jYe,maxSatisfying:JYe,minSatisfying:VYe,minVersion:qYe,validRange:GYe,outside:WYe,gtr:zYe,ltr:KYe,intersects:YYe,simplifyRange:ZYe,subset:XYe,SemVer:mYe,re:GS.re,src:GS.src,tokens:GS.t,SEMVER_SPEC_VERSION:BF.SEMVER_SPEC_VERSION,RELEASE_TYPES:BF.RELEASE_TYPES,compareIdentifiers:FF.compareIdentifiers,rcompareIdentifiers:FF.rcompareIdentifiers};const UF=Mt($X);async function IX(...e){return new Promise((t,n)=>{rn(()=>import("./index-7WXVYQMt.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 QYe=[`${ji}/connect`,`${ji}/login`,`${ji}/invite`,`${ji}/issue-passport`];async function eZe(){const e=(window==null?void 0:window.blocklet)||{},t=window.location.pathname,{componentId:n,CHAIN_TYPE:r="arcblock",appPid:i}=e;if(QYe.includes(t))return null;const a=lZ();try{const o=`${window.location.origin}${ji}/api/user/loginByWallet`;return await IX("arcLogin",{target:o,chainType:r,appPid:i,componentId:n,apps:a.map(l=>{let f=l==null?void 0:l.appLogo;return Nb(f)||(f=Ln(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 tZe(){return await IX("arcGetVisitorId")}function nZe({platform:e,version:t}={}){return!!(e==="ios"&&t&&UF.gte(t,"4.15.6")||e==="android"&&t&&UF.gte(t,"4.15.1"))}const{Provider:rZe,Consumer:HF}=Kp,jF={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"};function iZe(e=GUe,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:{}}),cIe(r,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:WUe});const a=RP(e,t,n),o=RP(r.refreshTokenStorageKey,"ls");function s(c){var be,Ne;const{connectApi:d,connectHolder:p}=QWe(),y=lm(),g=ea({action:c.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:"",get locale(){return c.locale||T.currentLocale||BY()}}),T=ea({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?Ln(ji,c.prefix):c.prefix}}),C=un(()=>new dIe,[]),A=$t((Oe,xe,Le)=>{const Ie={login:[Qr.LOGIN,Qr.CANCEL_LOGIN],"bind-wallet":[Qr.BIND_WALLET,Qr.CANCEL_BIND_WALLET],"switch-passport":[Qr.SWITCH_PASSPORT,Qr.CANCEL_SWITCH_PASSPORT],"switch-profile":[Qr.SWITCH_PROFILE,Qr.CANCEL_SWITCH_PROFILE],"switch-did":[Qr.LOGIN,Qr.CANCEL_LOGIN]};if(!Object.keys(Ie).includes(Oe))return;const Ue=async(...Xe)=>{xc(xe)&&await xe(...Xe),C.emit(Oe,...Xe)};C.once(Ie[Oe][0],Ue),C.once(Ie[Oe][1],async(...Xe)=>{xc(Ue)&&C.off(Ie[Oe][0],Ue),xc(Le)&&await Le(...Xe),C.emit(`cancel-${Oe}`,...Xe)})}),I=lz(g.initialized,(Oe,xe)=>Oe!==xe||Oe===!0&&xe===!0);ap(()=>{if(g.initialized){const Oe=!I;C.emit("change",{user:Tl(g.user),isFirst:Oe})}},[g.user,g.initialized,C]);const{handleRefreshUser:D,handleRefreshToken:M,renewToken:J,clearSession:j,handleLoginResult:V,decrypt:X,service:re,getSessionToken:le,getRefreshToken:ee,setRefreshToken:P,setSessionToken:E}=vHe({state:g,pageState:T,sessionTokenStorage:a,refreshTokenStorage:o,serviceHost:c.serviceHost,apiOptions:c.apiOptions,lazyRefreshToken:c.lazyRefreshToken}),u=$t((Oe,xe={},Le={})=>{const Ie=Oe;typeof Ie=="object"&&(Oe=Ie.onSuccess,xe=Ie.extraParams||{},Le=Ie.options||{},Le.origin=Ie.origin||""),(!g.user||Le.origin==="switch-did")&&(Le.origin==="switch-did"?A("switch-did",Oe,Ie==null?void 0:Ie.onCancel):A("login",Oe,Ie==null?void 0:Ie.onCancel),T.extraParams=xe,T.options=Le,g.action="login",we())}),h=$t(async(Oe,xe={},Le={})=>{var G;if((xe==null?void 0:xe.openMode)==="redirect"){const N=(xe==null?void 0:xe.redirect)||"/",F=new URL(`${ji}/login`,window.location.origin);F.searchParams.set("redirect",N),window.location.href=F.href;return}let Ie=xe==null?void 0:xe.sourceAppPid;gl(Ie)&&O&&(Ie=Z.appPid),await PW(()=>g.initialized);const Ue=Oe;typeof Ue=="object"&&(Oe=Ue.onSuccess,xe=Ue.extraParams||{},Le=Ue.options||{}),typeof Le=="string"&&(Le={origin:Le});const Xe=Tl(xe);T.allowWallet=void 0;const Be=(Xe==null?void 0:Xe.openMode)||((G=c==null?void 0:c.extraParams)==null?void 0:G.openMode);gl(Be)?T.openMode="window":T.openMode=Be,Ie?(g.baseUrl=globalThis.blocklet.appUrl,u(Oe,Xe,Le)):(g.baseUrl="",u(Oe,Xe,Le))}),b=X1(),S=$t(async Oe=>{const xe=Ln(ji,"/api/user/logout");await fetch(xe,{method:"POST",body:JSON.stringify({visitorId:b}),headers:{"Content-Type":"application/json"}}),j(),me(),g.user=null,g.provider="",g.walletOS="",g.error="",g.loading=!1,C.emit("logout"),typeof Oe=="function"&&Oe()}),{userSessions:R,refresh:$,loaded:x,loginUserSession:_}=EX({appPid:bz(g.user),loginAppPid:(be=globalThis==null?void 0:globalThis.blocklet)==null?void 0:be.appPid,sourceAppPid:(Ne=g==null?void 0:g.user)==null?void 0:Ne.sourceAppPid,autoFetch:!1}),v=$t((Oe,xe={},Le={})=>{const Ie=Oe;typeof Ie=="object"&&(Oe=Ie.onSuccess,xe=Ie.extraParams||{},Le=Ie.options||{}),typeof Le=="string"&&(Le={origin:Le}),Le!=null&&Le.userSession?_(Le.userSession).then(Ue=>{A("switch-did",Oe),V({...Ue,encrypted:!1}),D(!0).then(()=>{C.emit(Qr.LOGIN,Ue,X)})}):(gl(xe==null?void 0:xe.forceConnected)&&(xe.forceConnected=!1),h(Oe,xe,{...Le,origin:"switch-did"}))}),k=$t((Oe,xe={})=>{const Le=Oe;typeof Le=="object"&&(Oe=Le.onSuccess,xe=Le.extraParams||{}),g.user&&(A("switch-profile",Oe,Le==null?void 0:Le.onCancel),T.extraParams=xe,T.options={},g.action="switch-profile",we())}),ne=$t((Oe,xe={})=>{const Le=Oe;typeof Le=="object"&&(Oe=Le.onSuccess,xe=Le.extraParams||{}),g.user&&(A("switch-passport",Oe,Le==null?void 0:Le.onCancel),T.extraParams=xe,T.options={},g.action="switch-passport",we())}),B=$t((Oe,xe={})=>{const Le=Oe;typeof Le=="object"&&(Oe=Le.onSuccess),g.user&&(A("bind-wallet",Oe,Le==null?void 0:Le.onCancel),T.extraParams=xe,T.options={},g.action="bind-wallet",we())}),q=$t(Oe=>{T.extraParams={},T.options={},V(Oe),g.loading=!1,D(!0).then(()=>{g.action==="login"?C.emit(Qr.LOGIN,Oe,X):g.action==="switch-passport"&&C.emit(Qr.SWITCH_PASSPORT,Oe,X)})}),ie=$t(Oe=>{T.extraParams={},T.options={},V(Oe),g.loading=!1,D(!0).then(()=>{C.emit(Qr.BIND_WALLET,Oe,X)})}),ce=$t(Oe=>{T.extraParams={},T.options={},g.loading=!1,D(!0).then(()=>{C.emit(Qr.SWITCH_PROFILE,Oe,X)})}),he=$t(Oe=>{T.extraParams={},T.options={},me();const xe={login:Qr.CANCEL_LOGIN,"switch-profile":Qr.CANCEL_SWITCH_PROFILE,"switch-passport":Qr.CANCEL_SWITCH_PASSPORT,"bind-wallet":Qr.CANCEL_BIND_WALLET};C.emit(xe[Oe])}),Se=$t((Oe,...xe)=>{try{ae[Oe](...xe)}catch(Le){console.error("Catch error in onSuccess",{action:Oe,args:xe,err:Le})}}),{federatedMaster:U,federatedEnabled:O,master:Z}=hHe({locale:g.locale,decrypt:X,login:u,logout:S,handleLoginResult:V,handleRefreshUser:D,setRefreshToken:P,setSessionToken:E}),{checkMatch:z}=IHe({protectedRoutes:c.protectedRoutes||[]});om(async()=>{const Oe=Pr.get("connected_app"),xe=EC();if(c.autoDisconnect&&Oe&&xe&&Oe!==xe){j(),g.initialized=!0,T.autoConnect?we():me();return}const Le=le();let Ie="web";if(y.mobile.apple.device?Ie="ios":y.mobile.android.device&&(Ie="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&y.wallet&&nZe({version:y.walletVersion,platform:Ie})){if(!b){const Xe=await tZe();DG(Xe)}if(!Le)try{g.loading=!0;const Xe=await eZe();if(Xe){g.initialized=!0,q({sessionToken:Xe.sessionToken,refreshToken:Xe.refreshToken,encrypted:!1});return}}finally{g.loading=!1}}if(Le){await D(!0),g.initialized=!0;return}if(typeof window<"u"){const Xe=new URL(window.location.href),Be=Xe.searchParams.get("loginToken");if(Be){V({loginToken:Be,encrypted:!1}),Xe.searchParams.delete("loginToken"),window.history.replaceState({},window.title,Xe.href);return}}if(ee()){await M(!0),g.initialized=!0;return}try{}catch(Xe){console.error("Federated: tryAutoLogin failed",Xe)}finally{g.initialized=!0}T.autoConnect?we():me()});const te=Zb(R),ge=$t(async()=>(x||(await $(),await TE()),te.current)),pe={api:re,events:C,storage:a,connectApi:d,session:{...g,loading:T.autoConnect&&!g.user||g.loading,login:h,logout:S,switchDid:v,switchProfile:k,switchPassport:ne,bindWallet:B,refresh:D,updateConnectedInfo:PY,federatedMaster:U,useOAuth:PC,OAuthProvider:j3,OAuthConsumer:YUe,OAuthContext:OC,useDid:tZ,WrapDid:oZ,getUserSessions:ge}},ae={login:q,"switch-profile":ce,"switch-passport":q,"bind-wallet":ie},me=$t(()=>{g.open=!1,d.close()}),we=async()=>{var Ue,Xe,Be,G,N;const Oe=eze[g.action],xe=Oe[g.locale]||Oe.en,Le={...r.extraParams,...c.extraParams,...T.extraParams,previousUserDid:(Ue=g==null?void 0:g.user)==null?void 0:Ue.did,email:(Xe=g==null?void 0:g.user)==null?void 0:Xe.email};Le==null||delete Le.openMode;const Ie={action:g.action,locale:g.locale,extraParams:Le,options:{...c.options||{},...T.options},checkTimeout:c.timeout,webWalletUrl:c.webWalletUrl,messages:xe,useSocket:c.useSocket,...t5(c,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...qb(T.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:T.prefix,allowWallet:gl(T.allowWallet)?g.action!=="login"||(((Be=globalThis.blocklet)==null?void 0:Be.DID_CONNECT_ALLOW_WALLET)||"1")==="1":T.allowWallet,onSuccess(...F){Se(g.action,...F),setTimeout(()=>{g.open=!1},2e3)},onClose(...F){he(g.action,...F)},onError(F){console.error(F)}};if(g.open=!0,["login"].includes(g.action)&&T.openMode==="window"&&!y.wallet)try{const F={...Ie,baseUrl:window.location.origin};Nb(T.prefix)||(F.prefix=Ln(window.location.origin,c.serviceHost==="/"?"":c.serviceHost,T.prefix)),(G=F.extraParams)!=null&&G.provider||(F.extraParams.provider=((N=g==null?void 0:g.user)==null?void 0:N.provider)||"wallet"),await d.openPopup(F,{locale:g.locale})}catch(F){F.message==="Timeout"?_i.error(jF[g.locale]||jF.en):console.error(F)}else d.open(Ie)};return z()&&!g.initialized?K.jsx(Qd,{children:K.jsx(j1,{})}):K.jsx(rZe,{value:pe,children:K.jsxs(j3,{locale:g.locale,onSwitchPassport:({sessionToken:Oe,refreshToken:xe})=>{q({sessionToken:Oe,refreshToken:xe,encrypted:!1})},onBindOAuth:()=>{D()},children:[!g.open&&typeof c.children=="function"?c.children(g):c.children,p,r.rolling&&K.jsx(FY,{callback:()=>J()})]})})}s.propTypes={children:ve.any.isRequired,serviceHost:ve.string,action:ve.string,prefix:ve.string,appendAuthServicePrefix:ve.bool,locale:ve.string,timeout:ve.number,autoConnect:ve.bool,autoDisconnect:ve.bool,useSocket:ve.bool,extraParams:ve.object,options:ve.object,webWalletUrl:ve.string,protectedRoutes:ve.arrayOf(ve.string),apiOptions:ve.object,lazyRefreshToken:ve.bool},s.defaultProps={serviceHost:i,locale:"",action:"login",prefix:LC,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:nZ*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function l(c){return function(p){return K.jsx(T3,{children:K.jsx(HF,{children:y=>K.jsx(c,{...p,...y})})})}}return{SessionProvider:c=>K.jsx(T3,{children:K.jsx(s,{...c})}),SessionConsumer:HF,SessionContext:Kp,withSession:l}}let kX="/";window.env&&(kX=window.env.groupPathPrefix||window.env.pathPrefix||"/");function DX(e,t){return[void 0,null,""].includes(e)?t:e/86400}var EH,TH,AH;const aZe=DX((AH=(TH=(EH=window.blocklet)==null?void 0:EH.settings)==null?void 0:TH.session)==null?void 0:AH.cacheTtl,1/144);var wH,SH,_H;const oZe=DX((_H=(SH=(wH=window.blocklet)==null?void 0:wH.settings)==null?void 0:SH.session)==null?void 0:_H.ttl,7),{SessionProvider:sZe,SessionContext:lZe,SessionConsumer:q0t,withSession:G0t}=iZe("login_token","cookie",{returnDomain:!1,path:kX,expireInDays:aZe},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays:oZe});function LX(){return W.useContext(lZe)}function uZe({children:e}){const t=tq({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return K.jsx(UV,{injectFirst:!0,children:K.jsx(eq,{theme:t,children:K.jsx(FV,{theme:t,children:K.jsx(d8,{translations:uxe,fallbackLocale:"en",children:K.jsx(T3,{children:K.jsx(MR,{theme:t,children:e})})})})})})}const PR=new URL(window.location.href),OX=PR.searchParams.get("mode")||"",cZe=PR.pathname.includes("embed")&&OX==="dialog",fZe=PR.pathname.includes("embed")&&OX!=="dialog";function MR({children:e,theme:t}){var i,a,o;const{locale:n}=Bb(),r=Fu`
630
+ `),()=>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=As.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=z3.request(e,this.endpointURL(),t,n,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},r0=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=r0.syncState(this.state,r,i,a),this.pendingDiffs.forEach(s=>{this.state=r0.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=r0.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 r0.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(g=>g.phx_ref),d=f.metas.map(g=>g.phx_ref),p=l.metas.filter(g=>d.indexOf(g.phx_ref)<0),y=f.metas.filter(g=>c.indexOf(g.phx_ref)<0);p.length>0&&(a[s]=l,a[s].metas=p),y.length>0&&(o[s]=this.clone(f),o[s].metas=y)}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))}},i0={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),y={status:d,response:p};return{join_ref:l,ref:f,topic:c,event:ol.reply,payload:y}},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}}},TGe=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||vGe,this.transport=n.transport||k0.WebSocket||Rv,this.establishedConnections=0,this.defaultEncoder=i0.encode.bind(i0),this.defaultDecoder=i0.decode.bind(i0),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Rv?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;n0&&n0.addEventListener&&(n0.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),n0.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=I0(n.params||{}),this.endPoint=`${t}/${F5.websocket}`,this.vsn=n.vsn||yGe,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new hX(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Rv}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=z3.appendParams(z3.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=I0(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(),bGe,"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===As.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(ol.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case As.connecting:return"connecting";case As.open:return"open";case As.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 mX(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())}},U5={exports:{}},LS,sF;function AGe(){if(sF)return LS;sF=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;LS=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]),y=(d[2]||"ms").toLowerCase();switch(y){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,y){var g=d>=p*1.5;return Math.round(c/p)+" "+y+(g?"s":"")}return LS}function wGe(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=o,n.humanize=AGe(),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,y,g;function T(...C){if(!T.enabled)return;const A=T,I=Number(new Date),D=I-(d||I);A.diff=D,A.prev=d,A.curr=I,d=I,C[0]=n.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let M=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(j,V)=>{if(j==="%%")return"%";M++;const X=n.formatters[V];if(typeof X=="function"){const re=C[M];j=X.call(A,re),C.splice(M,1),M--}return j}),n.formatArgs.call(A,C),(A.log||n.log).apply(A,C)}return T.namespace=c,T.useColors=n.useColors(),T.color=n.selectColor(c),T.extend=r,T.destroy=n.destroy,Object.defineProperty(T,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(y!==n.namespaces&&(y=n.namespaces,g=n.enabled(c)),g),set:C=>{p=C}}),typeof n.init=="function"&&n.init(T),T}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,]+/),y=p.length;for(d=0;d<y;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 SGe=wGe;(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,y=>{y!=="%%"&&(d++,y==="%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 Kt<"u"&&"env"in Kt&&(f=n.DEBUG),f}function s(){try{return localStorage}catch{}}e.exports=SGe(t);const{formatters:l}=e.exports;l.j=function(f){try{return JSON.stringify(f)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(U5,U5.exports);var bR=U5.exports;const _Ge=bR;var xGe=(e,t=!1)=>{const n=_Ge(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const CGe=xGe;var RGe=(e,t,n)=>class extends e{constructor(i,a={}){super(i,{transport:n,...a}),this._logger=CGe("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 $Ge=dX,{Socket:IGe}=mGe,kGe=RGe;var DGe=kGe(IGe,$Ge);const LGe=DGe;var ER={WsClient:LGe};function OGe(e){const t=W.useRef(e);W.useEffect(()=>{t.current=e},[e]),W.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function PGe(e){const t=e||window.location.href;return new URL(t).host}function a0(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 OS={};function MGe({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const a=`${t}/token?${e0(r)}`;return OS[a]||(OS[a]=async function(){var f,c;const s=await n(a,{headers:a0(i)});if((f=s==null?void 0:s.data)!=null&&f.token)return s.data;if((c=s==null?void 0:s.data)!=null&&c.error)throw new Error(s.data.error);const l=Nb(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${l}`)}),OS[a]}const NGe=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=YFe(t);return{token:ZFe(n),url:n}}catch(e){return{error:e}}},gX=()=>Au(globalThis,"blocklet.appPid")||Au(globalThis,"blocklet.appId")||Au(globalThis,"env.appId")||"",BGe=()=>(Au(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(rZ,""),PS=e=>`relay:${gX()}:${e}`,FGe=()=>window.location.protocol==="https:"?"wss:":"ws:",lF=e=>!e||new URL(e).origin===window.location.origin,uF=e=>["succeed","error","timeout","busy"].includes(e);function UGe({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:y=!0,saveConnect:g=!0,useSocket:T=!0,provider:C="wallet"}){const A=ea({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:aF(i,oF),checkFn:t,results:{},action:e,provider:C}),I=A1[a]||A1.en,D=un(()=>NGe(),[]),M=Math.ceil(r/n),J=ea({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:j,decrypt:V}=eJe(),X=lm(),re=X1(),le=$t((..._)=>{const v={[l]:j,...A.extraParams,locale:a,forceConnected:y,autoConnect:p&&!X.wallet&&!J.cancelWhenScannedCounter&&["ios","android"].includes(Pr.get("connected_wallet_os")),provider:A.provider};return re&&(v.visitorId=re),MGe({action:e,prefix:A.prefix,baseUrl:A.baseUrl,checkFn:A.checkFn,extraParams:v})(..._)}),ee=()=>{J.cancelWhenScannedCounter++};W.useEffect(()=>{J.cancelWhenScannedCounter>0&&(i.nw?f(new Error(I.retryForbidden)):S())},[J.cancelWhenScannedCounter]);const P=W.useRef(null),E=W.useRef(null);W.useEffect(()=>(T&&lF(A.baseUrl)&&gX()?(!P.current||P.current.isConnected()===!1||P.current.baseUrl!==A.baseUrl)&&(P.current=new ER.WsClient(`${FGe()}//${PGe(A.baseUrl)}${BGe()}${rZ}/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||uF(A.status)?null:n,b=async()=>{try{u[s]&&A.status==="created"&&await A.checkFn(`${A.prefix}/timeout?${e0(u)}`,{headers:a0(A.baseUrl)})}catch{}try{A.token&&E.current&&(await P.current.unsubscribe(PS(A.token)),E.current=null)}catch{}},S=$t(async(_=!0)=>{_&&b();try{A.loading=!0,A.token="",A.url="",A.store=null,A.extraParams=aF(i,oF),await TE();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=`${I.generateError}: ${v.message}`}}),R=W.useRef(null);W.useEffect(()=>{R.current={state:A,params:u}}),W.useEffect(()=>()=>{const{state:_,params:v}=R.current;_.status==="created"&&v[s]&&_.checkFn(`${_.prefix}/timeout?${e0(v)}`,{headers:a0(_.baseUrl)})},[]);const $=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(`${I.invalidSessionStatus} [${_.status}]`)}catch(_){A.status="error",A.error=_.message,f(_,A==null?void 0:A.store,V)}finally{A.loading=!1}};W.useEffect(()=>{if(!A.token&&!A.store&&!A.loading&&!A.error)if(D)$();else{S(!1);return}if(A.status!=="timeout"&&A.checkCount>M){A.status="timeout",b();return}if(A.status==="succeed"&&!J.onSuccessCalled&&(lF(A.baseUrl)&&g&&A.saveConnect&&A.store.did&&PY({...A.store,appInfo:A.appInfo,memberAppInfo:A.memberAppInfo}),A.store)){const{nextWorkflow:_}=A.store;if(_)try{const v=XFe(_,s);A.nextWorkflow=(v==null?void 0:v.nextWorkflow)||_,Object.assign(A,v),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=Hl({baseURL:v.baseUrl,timeout:8e3}).get,x()}catch(v){console.error(`Invalid nextWorkflow: ${_}`,v),A.status="error",A.error=`Invalid nextWorkflow: ${_}: ${v.message}`}else if(A.nextWorkflow&&(A.nextWorkflow="",A.url=""),typeof c=="function"){const v=Object.values({...A.results,[A.token]:A.store});J.onSuccessCalled=!0;const k=v.length>1?v:v[0],ne=Tl(k);c(ne,V,{sourceAppPid:i==null?void 0:i.sourceAppPid})}}}),W.useEffect(()=>{if(A.token&&J.isSocketAvailable&&P.current){let _=!1;E.current?E.current.token!==A.token&&(P.current.unsubscribe(PS(E.current.token)),_=!0):_=!0,_&&(E.current=P.current.subscribe(PS(A.token)),E.current.token=A.token,E.current.on("updated",({response:v})=>{let{status:k,error:ne}=v;k==="forbidden"&&(ne=I.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?${e0(u)}`,{headers:a0(A.baseUrl)}),{status:ne,error:B,mfaCode:q=0}=k.data;if(A.store=k.data,A.mfaCode=q,A.checking=!1,A.status=ne,ne==="error"&&B){const ie=new Error(B);throw ie.response=k,ie}return k.data}catch(k){const{response:ne}=k;if(ne!=null&&ne.status){u[s]&&A.checkFn(`${A.prefix}/timeout?${e0(u)}`,{headers:a0(A.baseUrl)});const B=(v=ne==null?void 0:ne.data)!=null&&v.error?ne.data.error:k.message,q=new Error(B);q.code=ne.status,A.status="error",A.checking=!1,A.error=B,f(q,A==null?void 0:A.store,V)}else A.status="error",A.checking=!1,A.error=I.generateError}return null};return sGe(x,h()),OGe(()=>{J.isSocketAvailable&&A.token&&uF(A.status)===!1&&x(!0)}),{state:A,generate:S,cancelWhenScanned:ee}}var TR={};Object.defineProperty(TR,"__esModule",{value:!0});var yX=TR.default=void 0;HGe(W);var ln=K;function HGe(e){return e&&e.__esModule?e:{default:e}}function cF(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 fF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cF(Object(n),!0).forEach(function(r){jGe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jGe(e,t,n){return t=JGe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JGe(e){var t=VGe(e,"string");return typeof t=="symbol"?t:String(t)}function VGe(e,t){if(typeof e!="object"||e===null)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 AR=function(t){return(0,ln.jsxs)("svg",fF(fF({},t),{},{children:[(0,ln.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,ln.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"url(#paint0_linear)"}),(0,ln.jsx)("path",{d:"M3.52 7.36A2.56 2.56 0 0 1 6.08 4.8h19.84a2.56 2.56 0 0 1 2.56 2.56v12.16a2.56 2.56 0 0 1-2.56 2.56H6.08a2.56 2.56 0 0 1-2.56-2.56V7.36z",fill:"#9FCBFF",filter:"url(#filter0_i)"}),(0,ln.jsx)("path",{d:"M2.56 9.28a2.56 2.56 0 0 1 2.56-2.56h21.76a2.56 2.56 0 0 1 2.56 2.56v13.6a2.56 2.56 0 0 1-2.56 2.56H5.12a2.56 2.56 0 0 1-2.56-2.56V9.28z",fill:"url(#paint1_linear)",filter:"url(#filter1_d)"}),(0,ln.jsx)("path",{d:"M0 22.32l32-6.16V32H0v-9.68z",fill:"url(#paint2_linear)",filter:"url(#filter2_d)"}),(0,ln.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.536 9.248h8.288c.408 0 .74.3.74.672v4.64c0 .371-.332.672-.74.672H5.536c-.408 0-.74-.3-.74-.672v-.04a.158.158 0 1 0-.316 0v.04c0 .53.473.96 1.056.96h8.288c.583 0 1.056-.43 1.056-.96V9.92c0-.53-.473-.96-1.056-.96H5.536c-.583 0-1.056.43-1.056.96v.04a.158.158 0 0 0 .317 0v-.04c0-.371.33-.672.739-.672zm-1.023 4.638a.127.127 0 0 0 .087.034h1.267c.472 0 .83-.107 1.076-.322.25-.217.381-.548.397-.993a11.281 11.281 0 0 0 0-.734c-.012-.426-.148-.751-.406-.975-.258-.224-.622-.336-1.09-.336H4.6a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.794-.806c-.099.1-.253.149-.464.149h-.502V11.25h.478c.21 0 .369.051.474.154.108.102.166.26.172.475.006.09.01.208.01.355s-.004.267-.01.36c-.006.221-.059.383-.158.485zm1.63.806a.127.127 0 0 0 .087.034h.64a.116.116 0 0 0 .087-.034.11.11 0 0 0 .038-.086v-3.12a.11.11 0 0 0-.038-.086.116.116 0 0 0-.086-.034h-.641a.127.127 0 0 0-.087.034.117.117 0 0 0-.033.086v3.12c0 .032.011.06.033.086zm1.637.034a.127.127 0 0 1-.086-.034.128.128 0 0 1-.033-.086v-3.12c0-.035.01-.064.033-.086a.127.127 0 0 1 .086-.034h1.244c.469 0 .832.112 1.09.336.259.224.394.549.407.974a11.244 11.244 0 0 1 0 .735c-.016.445-.148.776-.397.993-.245.215-.604.322-1.076.322H9.574zm1.244-.691c.21 0 .365-.05.464-.149.099-.102.152-.264.158-.485a5.52 5.52 0 0 0 .01-.36c0-.147-.004-.265-.01-.355-.006-.214-.064-.373-.172-.475-.106-.103-.263-.154-.474-.154h-.478v1.978h.502zm2.468-1.382a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.286-.288.286zm0 1.495a.288.288 0 0 1-.288-.286.288.288 0 0 1 .576 0c0 .158-.13.287-.288.287z",fill:"#4598FA"})]}),(0,ln.jsxs)("defs",{children:[(0,ln.jsxs)("filter",{id:"filter0_i",x:"3.52",y:"1.8",width:"24.96",height:"20.28",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,ln.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,ln.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,ln.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,ln.jsx)("feOffset",{dy:"-3"}),(0,ln.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,ln.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,ln.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.2 0"}),(0,ln.jsx)("feBlend",{in2:"shape",result:"effect1_innerShadow"})]}),(0,ln.jsxs)("filter",{id:"filter1_d",x:"-1.44",y:"1.72",width:"34.88",height:"26.72",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,ln.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,ln.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,ln.jsx)("feOffset",{dy:"-1"}),(0,ln.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,ln.jsx)("feColorMatrix",{values:"0 0 0 0 0.220767 0 0 0 0 0.470803 0 0 0 0 0.701605 0 0 0 0.18 0"}),(0,ln.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,ln.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,ln.jsxs)("filter",{id:"filter2_d",x:"-5",y:"11.16",width:"42",height:"25.84",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,ln.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,ln.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,ln.jsx)("feOffset",{}),(0,ln.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,ln.jsx)("feColorMatrix",{values:"0 0 0 0 0.14382 0 0 0 0 0.205065 0 0 0 0 0.522634 0 0 0 0.25 0"}),(0,ln.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,ln.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,ln.jsxs)("linearGradient",{id:"paint0_linear",x1:"16",x2:"16",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,ln.jsx)("stop",{stopColor:"#4F9DF6"}),(0,ln.jsx)("stop",{offset:"1",stopColor:"#0A79F8"})]}),(0,ln.jsxs)("linearGradient",{id:"paint1_linear",x1:"16",y1:"6.72",x2:"16",y2:"25.44",gradientUnits:"userSpaceOnUse",children:[(0,ln.jsx)("stop",{stopColor:"#fff"}),(0,ln.jsx)("stop",{offset:"1",stopColor:"#ECEFFF"})]}),(0,ln.jsxs)("linearGradient",{id:"paint2_linear",x1:"16",y1:"19.2",x2:"18.48",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,ln.jsx)("stop",{offset:".007",stopColor:"#77B2F6"}),(0,ln.jsx)("stop",{offset:".055",stopColor:"#4F9DF6"}),(0,ln.jsx)("stop",{offset:"1",stopColor:"#4598FA"})]}),(0,ln.jsx)("clipPath",{id:"clip0",children:(0,ln.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"#fff"})})]})]}))};AR.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};AR.displayName="did-wallet";var qGe=AR;yX=TR.default=qGe;function wR({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i}=qu(),a=r("openInWallet"),o=un(()=>{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(()=>{rn(()=>import("./index-dQP0j7rR.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),om(()=>{o&&s()}),K.jsxs(Gu,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:qt.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...l,onClick:i?s:lr,children:[K.jsxs(yt,{sx:{display:"flex",alignItems:"center",gap:1},children:[K.jsx(yX,{}),K.jsx($i,{sx:{fontSize:"16px",fontWeight:"bold"},children:a})]}),K.jsx(Yn,{icon:IE,fontSize:"1.3rem",color:qt.primaryBase})]})}wR.propTypes={tokenState:ve.object.isRequired,locale:ve.string,tokenKey:ve.string};wR.defaultProps={locale:"en",tokenKey:"_t_"};const Ey=["scanned","succeed","error","busy"];function SR({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:y,useSocket:g,allowWallet:T,provider:C,webWalletUrl:A,onRecreateSession:I,messages:D,enabledConnectTypes:M}){var te,ge,pe;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const J=W.useContext(Kp),{lostPassportUrl:j,connectState:V,extraParams:X,staticState:re,changeStatus:le,t:ee,isWalletWebview:P,matchSmallScreen:E}=qu(),u=lm(),h=un(()=>{var ae;return C||(X==null?void 0:X.provider)||((ae=J==null?void 0:J.session)==null?void 0:ae.provider)||"wallet"},[X==null?void 0:X.provider,(te=J==null?void 0:J.session)==null?void 0:te.provider]);W.useEffect(()=>{$(c)},[c]);const{state:b,generate:S,cancelWhenScanned:R}=UGe({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:y,useSocket:g,allowWallet:T,provider:h}),{setBaseUrl:$,oauthConfigList:x,oauthState:_}=PC({defaultStatus:b.status}),v=lz(V==null?void 0:V.sourceAppPid);ap(()=>{gl(v)||S()},[V==null?void 0:V.sourceAppPid]);const k=un(()=>Ey.includes(_.status)||Ey.includes(b.status),[b.status,_.status]);W.useEffect(()=>{Ey.includes(_.status)?le(_.status):Ey.includes(b.status)?le(b.status):le("created")},[le,b.status,_.status]);const ne=$t(()=>{I(),_.reset(),b.inExistingSession||S()}),B=$t(()=>{I(),b.inExistingSession||(re.current.cancelCount++,R())}),q=un(()=>({confirm:D.confirm,success:D.success,error:b.error||_.error||""}),[D.confirm,D.success,b.error,_.error]),ie=un(()=>T&&M.includes("mobile")&&!P,[T,M,P]),ce=LY(A),he=un(()=>T&&M.includes("web")&&(ce||Mb())&&!u.mobile.any,[T,M,(ge=u==null?void 0:u.mobile)==null?void 0:ge.any]),Se=un(()=>T&&M.includes("mobile")&&u.mobile.any,[T,M,(pe=u==null?void 0:u.mobile)==null?void 0:pe.any]),U=un(()=>{const ae=KVe(["auth0","apple","github","google"],M);return x.filter(me=>ae.includes(me.provider))},[x,M]),O=un(()=>U.length>0&&["login","invite"].includes(b.action),[U]),Z=un(()=>{const ae=ie||he||Se;let me=null;return O&&(me=ae?K.jsxs(K.Fragment,{children:[K.jsx(Xx,{light:!0,sx:{color:qt.textMuted,width:E?"200px":"368px",maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:qt.lineStep}},children:"OR"}),K.jsx(W3,{providerList:U,onSuccess:e,onError:t,tokenState:b,locale:s})]}):K.jsx(W3,{providerList:U,onSuccess:e,onError:t,tokenState:b,type:"list",locale:s})),K.jsxs(K.Fragment,{children:[K.jsx(yt,{"data-did-auth-url":b.url,sx:{display:"none"}}),Se&&K.jsx(wR,{tokenState:b,locale:s,tokenKey:l}),ie&&K.jsx(gR,{tokenState:b,messages:D,locale:s}),he&&K.jsx(hR,{tokenState:b,webWalletUrl:A,locale:s}),ae&&j&&K.jsx(jq,{href:j,underline:"none",sx:{fontSize:"12px",width:"auto",margin:"auto",display:E?"inline-block":"none"},children:ee("lostPassport")}),me]})},[b.url,j,ie,he,Se]);return un(()=>b.loading||_.loading,[b.loading,_.loading])?K.jsx(zC,{}):k?K.jsxs(K.Fragment,{children:[K.jsx(yt,{"data-did-auth-url":b.url,sx:{display:"none"}}),K.jsx(DE,{status:_.status||b.status,nextWorkflow:b.nextWorkflow,mfaCode:b.mfaCode,onCancel:B,onRetry:ne,messages:q,locale:s,className:"auth-status"})]}):Z}SR.propTypes={onError:ve.func,onSuccess:ve.func.isRequired,action:ve.string.isRequired,checkFn:ve.func.isRequired,prefix:ve.string,checkInterval:ve.number,checkTimeout:ve.number,locale:ve.oneOf(["en","zh",""]),tokenKey:ve.string,encKey:ve.string,baseUrl:ve.string,autoConnect:ve.bool,forceConnected:ve.oneOfType([ve.bool,ve.string]),saveConnect:ve.bool,useSocket:ve.bool,allowWallet:ve.bool,provider:ve.oneOf(["wallet","auth0",""]),webWalletUrl:ve.string,onRecreateSession:ve.func,messages:ve.object,enabledConnectTypes:ve.arrayOf(ve.oneOf(["web","mobile","github","apple","google","auth0"]))};SR.defaultProps={prefix:LC,onError:lr,checkInterval:2*1e3,checkTimeout:nZ*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:DY(),onRecreateSession:lr,messages:{},enabledConnectTypes:["web","mobile","github","apple","google","auth0"]};var MS=vW,GGe=UG,WGe=L8,zGe=1/0,KGe=MS&&1/WGe(new MS([,-0]))[1]==zGe?function(e){return new MS(e)}:GGe,YGe=KGe,ZGe=k8,XGe=ZZ,QGe=XZ,eWe=D8,tWe=YGe,nWe=L8,rWe=200;function iWe(e,t,n){var r=-1,i=XGe,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=QGe;else if(a>=rWe){var f=t?null:tWe(e);if(f)return nWe(f);o=!1,i=eWe,l=new ZGe}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 vX=iWe,aWe=C8,oWe=LE,sWe=rm,lWe=vX,dF=b8,uWe=Vb,cWe=sWe(function(e){var t=uWe(e);return dF(t)&&(t=void 0),lWe(aWe(e,1,dF,!0),oWe(t))}),fWe=cWe;const dWe=Mt(fWe);var pWe=YG,hWe=im;function mWe(e,t){return e&&pWe(e,t,hWe)}var gWe=mWe,yWe=df;function vWe(e,t){return function(n,r){if(n==null)return n;if(!yWe(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 bWe=vWe,EWe=gWe,TWe=bWe,AWe=TWe(EWe),wWe=AWe,SWe=wWe,_We=df;function xWe(e,t){var n=-1,r=_We(e)?Array(e.length):[];return SWe(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var CWe=xWe;function RWe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var $We=RWe,pF=W1;function IWe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=pF(e),o=t!==void 0,s=t===null,l=t===t,f=pF(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 kWe=IWe,DWe=kWe;function LWe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=DWe(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 OWe=LWe,NS=kp,PWe=K1,MWe=LE,NWe=CWe,BWe=$We,FWe=tm,UWe=OWe,HWe=Jb,jWe=Ea;function JWe(e,t,n){t.length?t=NS(t,function(a){return jWe(a)?function(o){return PWe(o,a.length===1?a[0]:a)}:a}):t=[HWe];var r=-1;t=NS(t,FWe(MWe));var i=NWe(e,function(a,o,s){var l=NS(t,function(f){return f(a)});return{criteria:l,index:++r,value:a}});return BWe(i,function(a,o){return UWe(a,o,n)})}var VWe=JWe,qWe=C8,GWe=VWe,WWe=rm,hF=fW,zWe=WWe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&hF(e,t[0],t[1])?t=[]:n>2&&hF(t[0],t[1],t[2])&&(t=[t[0]]),GWe(e,qWe(t,1),[])}),KWe=zWe;const bX=Mt(KWe),YWe=Ln(ji,"/api/user-session");function EX({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/"}={}){const a=X1(),o=un(()=>Hl({baseURL:Ln(i,YWe)},{lazy:!0,lazyTime:500}),[i]),s=$t(async()=>{const{data:y}=await o.get("",{params:{visitorId:a,appPid:e}});return y}),l=ea({loaded:!1,loadingId:null}),f=pke(s,{manual:!r,onFinally(){l.loaded=!0},refreshDeps:[e,i]}),c=async y=>{var T,C,A;const g=qb(y,["userDid","visitorId","passportId"]);try{l.loadingId=y.id;const{data:I}=await o.post("login",{...g,appPid:n});return I}catch(I){const D=I.response?((C=(T=I.response)==null?void 0:T.data)==null?void 0:C.error)||((A=I.response)==null?void 0:A.data):I.message;throw _i.error(D),console.error("Quick login error",I),I}finally{l.loadingId=null}},d=un(()=>{if(!f.data)return[];const y=new Date().getTime(),g=f.data.filter(C=>t!==null?!0:C.appPid===e),T=bX(g,C=>y-new Date(C.updatedAt).getTime());return dWe(T,C=>[C.userDid].join("_"))},[f.data,t,e]),p=un(()=>d.data&&d.data.length>0,[d==null?void 0:d.data]);return{loadingId:l.loadingId,userSessions:d,quickLoginEnabled:p,loginUserSession:c,loading:f.loading,loaded:f.loaded,refresh:f.refreshAsync}}const Ty="did-connect",mF="quick-connect";function _R({mode:e,isFullScreen:t,hideCloseButton:n,...r}){var P;const i=ea({showTab:Ty}),{connectState:a,blocklet:o,matchSmallScreen:s}=qu(),{extraContent:l,onSuccess:f,action:c,onClose:d,options:p}=r,y=un(()=>(a==null?void 0:a.sourceAppPid)||bz(),[a==null?void 0:a.sourceAppPid]),{quickLoginEnabled:g,loading:T,userSessions:C,loginUserSession:A,refresh:I}=EX({appPid:y,loginAppPid:o==null?void 0:o.appPid,sourceAppPid:a==null?void 0:a.sourceAppPid,autoFetch:["login"].includes(c)}),D=un(()=>{var E;return((E=r==null?void 0:r.messages)==null?void 0:E.title)||zUe},[(P=r==null?void 0:r.messages)==null?void 0:P.title]),M=$t(async(...E)=>{const u=await A(...E);await f({...u,encrypted:!1},h=>h)});W.useEffect(()=>{(p==null?void 0:p.showQuickConnect)!==!1&&!T&&g&&(i.showTab=mF)},[T,g,p==null?void 0:p.showQuickConnect]);const J=bke(T,{wait:100}),j=$t(()=>{i.showTab=Ty}),V=$t(()=>{i.showTab=mF}),X=un(()=>i.showTab===Ty||!g,[i.showTab,g]),re=un(()=>{let E=!0;return(T||J)&&(E=!1),g||(E=!1),p.showQuickConnect===!1&&(E=!1),i.showTab!==Ty&&(E=!1),E},[g,i.showTab,T,J]),le=un(()=>K.jsx(yt,{onClick:d,sx:{fontSize:"1.5rem",cursor:"pointer",width:"1.5rem",height:"1.5rem",textAlign:"center",color:qt.textMuted,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:K.jsx(yt,{component:"span",sx:{display:"block",fontWeight:"lighter",lineHeight:1,transform:"scale(1.3)"},children:"×"})}),[d]);let ee=null;return T||J?ee=K.jsx(zC,{}):X?ee=K.jsx(SR,{...r}):ee=K.jsx(pR,{userSessions:C,onLogin:M,onRetry:I,messages:r.messages,onLoginAnother:j}),K.jsxs(yt,{sx:{display:"flex",flexDirection:"column",gap:1.5,color:qt.textBase,width:"100%"},children:[e==="dialog"?K.jsxs(yt,{sx:{pb:2,display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:t?"none":`1px solid ${qt.lineStep}`},children:[K.jsxs($i,{component:"h3",variant:"h6",sx:{display:"flex",alignItems:"center"},children:[re&&K.jsx(Ps,{size:"small",disabled:a.status!=="created",onClick:V,disableRipple:!0,sx:{fontSize:"0.75em"},children:K.jsx(Yn,{icon:zB,color:qt.textMuted})}),D]}),!n&&K.jsx(yt,{sx:{display:t?"none":"block"},children:le})]}):K.jsxs($i,{component:"h3",variant:"h4",sx:{pt:s?1.5:3,pb:s?0:1.5,fontWeight:"bold",display:"flex",alignItems:"center"},children:[re&&K.jsx(Ps,{size:"small",onClick:V,disabled:a.status!=="created",disableRipple:!0,sx:{fontSize:"0.75em"},children:K.jsx(Yn,{icon:zB,color:qt.textMuted})}),D]}),ee,K.jsxs(yt,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",pt:1.5,pb:t||s?1.5:0,px:t||s?3:0,position:t||s?"fixed":"static",top:0,left:0,right:0,backgroundColor:"white",borderBottom:t||s?`1px solid ${qt.lineStep}`:"none"},children:[K.jsx(iR,{isFullScreen:t||s,disableSwitchApp:r.disableSwitchApp}),e==="dialog"&&!n&&K.jsx(yt,{sx:{display:t||s?"block":"none"},children:le})]}),l?K.jsx(yt,{children:l}):null]})}_R.propTypes={onSuccess:ve.func,onClose:ve.func,action:ve.string.isRequired,messages:ve.object,extraContent:ve.any,disableSwitchApp:ve.bool,mode:ve.oneOf(["fullScreen","dialog","normal"]),isFullScreen:ve.bool,options:ve.object,hideCloseButton:ve.bool};_R.defaultProps={onSuccess:lr,onClose:lr,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!1};function xR(e){const{checkFn:t,extraParams:n,blocklet:r,action:i,locale:a,lostPassportUrl:o}=e;if(typeof t!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const[s,l]=W.useState(300),f=W.useRef(null),c=sm(f);return W.useEffect(()=>{c!=null&&c.height&&c.height>s&&l(c.height)},[c==null?void 0:c.height,s]),K.jsx(yt,{sx:{position:"relative",width:"100%",height:"100%",display:"flex",alignItems:"center",lineHeight:1.2,fontFamily:"Lato",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:K.jsx(nR,{blocklet:r,action:i,locale:a,extraParams:n,lostPassportUrl:o,children:K.jsx(yt,{sx:{height:s,overflow:"hidden",transition:"height 0.2s ease"},children:K.jsx(yt,{ref:f,children:K.jsx(_R,{...e})})})})})}xR.propTypes={checkFn:ve.func.isRequired,extraParams:ve.object,blocklet:ve.object.isRequired,action:ve.string.isRequired,locale:ve.string,lostPassportUrl:ve.string};xR.defaultProps={extraParams:{},locale:"en",lostPassportUrl:void 0};const ZWe=Yje(Oje(Qje(xR))),XWe=W.forwardRef((e,t)=>{const{api:n}=W.useContext(Kp),r={containerEl:null,popup:!0,checkFn:(n==null?void 0:n.get)||lr,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=ea({show:!1,...Tl(r)}),[a,o]=W.useState({}),s=$t(d=>{const{containerEl:p,checkFn:y,popup:g,onSuccess:T,messages:C,...A}=Tl(d);typeof y=="function"&&(i.checkFn=y),typeof T=="function"&&(i.onSuccess=(...I)=>{T(...I),setTimeout(()=>{f()},2e3)}),g!==void 0&&(i.popup=g),C!==void 0&&(i.messages=C),p!==void 0&&(i.containerEl=p),o(A),i.show=!0}),l=$t(()=>{const d=Tl(r);Object.keys(d).forEach(p=>{i[p]=d[p]})}),f=$t(()=>{i.show=!1,l()});W.useImperativeHandle(t,()=>({open:s,close:f}),[s,f]);const c=K.jsx(ZWe,{open:!0,popup:i.popup,messages:i.messages,onClose:f,onSuccess:i.onSuccess,checkFn:i.checkFn,...a});return i.containerEl?D1.createPortal(c,i.containerEl):i.show&&c});function QWe(){const e=W.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 C;if(gl(s)){const A=gm(),I=Wp();s=A?I.appUrl:window.location.origin}const{onSuccess:c,onClose:d,onError:p,...y}=o;if(!((C=y==null?void 0:y.extraParams)!=null&&C.provider))throw xc(p)&&p("Must have extraParams.provider"),new Error("Must have extraParams.provider");y!=null&&y.prefix||(y.prefix=window.location.origin+Ln(f==null?void 0:f.prefix,LC));const g=new URLSearchParams;g.set("params",btoa(encodeURIComponent(JSON.stringify(y)))),g.set("appPid",f==null?void 0:f.appPid),g.set("locale",l);const T=kHe(Ln(s||"/",ji,`/connect?${g.toString()}`));try{const A=await DHe({popup:T});return xc(c)&&c({...A,encrypted:!1}),{...A,encrypted:!1}}catch(A){throw A.message==="Popup closed"?xc(d)&&d():xc(p)&&p(A),A}}),r=$t((...o)=>{var s;(s=e.current)==null||s.close(...o)}),i=un(()=>K.jsx(XWe,{ref:e})),a=un(()=>({open:t,close:r,openPopup:n}));return{connectHolder:i,connectApi:a}}const Qr={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")},eze={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-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:"Bind DID Wallet",scan:"Scan following qrcode with DID Wallet to bind wallet",confirm:"Select passport in your DID Wallet",success:"Passport and session updated"},zh:{title:"绑定 DID 钱包",scan:"请使用 DID 钱包扫码下面的二维码以绑定 DID 钱包",confirm:"在 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:"找回通行证"}}};var H5={exports:{}};const tze="2.0.0",TX=256,nze=Number.MAX_SAFE_INTEGER||9007199254740991,rze=16,ize=TX-6,aze=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var OE={MAX_LENGTH:TX,MAX_SAFE_COMPONENT_LENGTH:rze,MAX_SAFE_BUILD_LENGTH:ize,MAX_SAFE_INTEGER:nze,RELEASE_TYPES:aze,SEMVER_SPEC_VERSION:tze,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},BS={};const oze=typeof Kt=="object"&&BS&&BS.NODE_DEBUG&&/\bsemver\b/i.test(BS.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var PE=oze;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=OE,a=PE;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]],y=T=>{for(const[C,A]of p)T=T.split(`${C}*`).join(`${C}{0,${A}}`).split(`${C}+`).join(`${C}{1,${A}}`);return T},g=(T,C,A)=>{const I=y(C),D=c++;a(T,D,C),f[T]=D,l[D]=C,o[D]=new RegExp(C,A?"g":void 0),s[D]=new RegExp(I,A?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),g("MAINVERSION",`(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${l[f.NUMERICIDENTIFIER]}|${l[f.NONNUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${l[f.NUMERICIDENTIFIERLOOSE]}|${l[f.NONNUMERICIDENTIFIER]})`),g("PRERELEASE",`(?:-(${l[f.PRERELEASEIDENTIFIER]}(?:\\.${l[f.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${l[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[f.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${d}+`),g("BUILD",`(?:\\+(${l[f.BUILDIDENTIFIER]}(?:\\.${l[f.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${l[f.MAINVERSION]}${l[f.PRERELEASE]}?${l[f.BUILD]}?`),g("FULL",`^${l[f.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${l[f.MAINVERSIONLOOSE]}${l[f.PRERELEASELOOSE]}?${l[f.BUILD]}?`),g("LOOSE",`^${l[f.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${l[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${l[f.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:${l[f.PRERELEASE]})?${l[f.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:${l[f.PRERELEASELOOSE]})?${l[f.BUILD]}?)?)?`),g("XRANGE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAINLOOSE]}$`),g("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),g("COERCERTL",l[f.COERCE],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${l[f.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${l[f.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${l[f.LONECARET]}${l[f.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${l[f.LONECARET]}${l[f.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${l[f.GTLT]}\\s*(${l[f.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]}|${l[f.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${l[f.XRANGEPLAIN]})\\s+-\\s+(${l[f.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${l[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[f.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(H5,H5.exports);var bm=H5.exports;const sze=Object.freeze({loose:!0}),lze=Object.freeze({}),uze=e=>e?typeof e!="object"?sze:e:lze;var CR=uze;const gF=/^[0-9]+$/,AX=(e,t)=>{const n=gF.test(e),r=gF.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},cze=(e,t)=>AX(t,e);var wX={compareIdentifiers:AX,rcompareIdentifiers:cze};const Ay=PE,{MAX_LENGTH:yF,MAX_SAFE_INTEGER:wy}=OE,{safeRe:vF,t:bF}=bm,fze=CR,{compareIdentifiers:Zf}=wX;let dze=class ms{constructor(t,n){if(n=fze(n),t instanceof ms){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>yF)throw new TypeError(`version is longer than ${yF} characters`);Ay("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?vF[bF.LOOSE]:vF[bF.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>wy||this.major<0)throw new TypeError("Invalid major version");if(this.minor>wy||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>wy||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<wy)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(Ay("SemVer.compare",this.version,this.options,t),!(t instanceof ms)){if(typeof t=="string"&&t===this.version)return 0;t=new ms(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof ms||(t=new ms(t,this.options)),Zf(this.major,t.major)||Zf(this.minor,t.minor)||Zf(this.patch,t.patch)}comparePre(t){if(t instanceof ms||(t=new ms(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(Ay("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 Zf(r,i)}while(++n)}compareBuild(t){t instanceof ms||(t=new ms(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(Ay("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 Zf(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]),Zf(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 ra=dze;const EF=ra,pze=(e,t,n=!1)=>{if(e instanceof EF)return e;try{return new EF(e,t)}catch(r){if(!n)return null;throw r}};var Yp=pze;const hze=Yp,mze=(e,t)=>{const n=hze(e,t);return n?n.version:null};var gze=mze;const yze=Yp,vze=(e,t)=>{const n=yze(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var bze=vze;const TF=ra,Eze=(e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new TF(e instanceof TF?e.version:e,n).inc(t,r,i).version}catch{return null}};var Tze=Eze;const AF=Yp,Aze=(e,t)=>{const n=AF(e,null,!0),r=AF(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 wze=Aze;const Sze=ra,_ze=(e,t)=>new Sze(e,t).major;var xze=_ze;const Cze=ra,Rze=(e,t)=>new Cze(e,t).minor;var $ze=Rze;const Ize=ra,kze=(e,t)=>new Ize(e,t).patch;var Dze=kze;const Lze=Yp,Oze=(e,t)=>{const n=Lze(e,t);return n&&n.prerelease.length?n.prerelease:null};var Pze=Oze;const wF=ra,Mze=(e,t,n)=>new wF(e,n).compare(new wF(t,n));var ss=Mze;const Nze=ss,Bze=(e,t,n)=>Nze(t,e,n);var Fze=Bze;const Uze=ss,Hze=(e,t)=>Uze(e,t,!0);var jze=Hze;const SF=ra,Jze=(e,t,n)=>{const r=new SF(e,n),i=new SF(t,n);return r.compare(i)||r.compareBuild(i)};var RR=Jze;const Vze=RR,qze=(e,t)=>e.sort((n,r)=>Vze(n,r,t));var Gze=qze;const Wze=RR,zze=(e,t)=>e.sort((n,r)=>Wze(r,n,t));var Kze=zze;const Yze=ss,Zze=(e,t,n)=>Yze(e,t,n)>0;var ME=Zze;const Xze=ss,Qze=(e,t,n)=>Xze(e,t,n)<0;var $R=Qze;const eKe=ss,tKe=(e,t,n)=>eKe(e,t,n)===0;var SX=tKe;const nKe=ss,rKe=(e,t,n)=>nKe(e,t,n)!==0;var _X=rKe;const iKe=ss,aKe=(e,t,n)=>iKe(e,t,n)>=0;var IR=aKe;const oKe=ss,sKe=(e,t,n)=>oKe(e,t,n)<=0;var kR=sKe;const lKe=SX,uKe=_X,cKe=ME,fKe=IR,dKe=$R,pKe=kR,hKe=(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 lKe(e,n,r);case"!=":return uKe(e,n,r);case">":return cKe(e,n,r);case">=":return fKe(e,n,r);case"<":return dKe(e,n,r);case"<=":return pKe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var xX=hKe;const mKe=ra,gKe=Yp,{safeRe:Sy,t:_y}=bm,yKe=(e,t)=>{if(e instanceof mKe)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(Sy[_y.COERCE]);else{let r;for(;(r=Sy[_y.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),Sy[_y.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;Sy[_y.COERCERTL].lastIndex=-1}return n===null?null:gKe(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var vKe=yKe,FS,_F;function bKe(){return _F||(_F=1,FS=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),FS}var EKe=Jn;Jn.Node=tf;Jn.create=Jn;function Jn(e){var t=this;if(t instanceof Jn||(t=new Jn),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}Jn.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};Jn.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++}};Jn.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++}};Jn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)AKe(this,arguments[e]);return this.length};Jn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)wKe(this,arguments[e]);return this.length};Jn.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}};Jn.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}};Jn.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};Jn.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};Jn.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};Jn.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};Jn.prototype.map=function(e,t){t=t||this;for(var n=new Jn,r=this.head;r!==null;)n.push(e.call(t,r.value,this)),r=r.next;return n};Jn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new Jn,r=this.tail;r!==null;)n.push(e.call(t,r.value,this)),r=r.prev;return n};Jn.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};Jn.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};Jn.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};Jn.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};Jn.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 Jn;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};Jn.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 Jn;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};Jn.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=TKe(this,i,n[r]);return a};Jn.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 TKe(e,t,n){var r=t===e.head?new tf(n,null,t,e):new tf(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function AKe(e,t){e.tail=new tf(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function wKe(e,t){e.head=new tf(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function tf(e,t,n,r){if(!(this instanceof tf))return new tf(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{bKe()(Jn)}catch{}const SKe=EKe,vc=Symbol("max"),ul=Symbol("length"),Xf=Symbol("lengthCalculator"),D0=Symbol("allowStale"),Ic=Symbol("maxAge"),sl=Symbol("dispose"),xF=Symbol("noDisposeOnSet"),li=Symbol("lruList"),qo=Symbol("cache"),CX=Symbol("updateAgeOnGet"),US=()=>1;class _Ke{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[vc]=t.max||1/0;const n=t.length||US;if(this[Xf]=typeof n!="function"?US:n,this[D0]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Ic]=t.maxAge||0,this[sl]=t.dispose,this[xF]=t.noDisposeOnSet||!1,this[CX]=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[vc]=t||1/0,Vh(this)}get max(){return this[vc]}set allowStale(t){this[D0]=!!t}get allowStale(){return this[D0]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Ic]=t,Vh(this)}get maxAge(){return this[Ic]}set lengthCalculator(t){typeof t!="function"&&(t=US),t!==this[Xf]&&(this[Xf]=t,this[ul]=0,this[li].forEach(n=>{n.length=this[Xf](n.value,n.key),this[ul]+=n.length})),Vh(this)}get lengthCalculator(){return this[Xf]}get length(){return this[ul]}get itemCount(){return this[li].length}rforEach(t,n){n=n||this;for(let r=this[li].tail;r!==null;){const i=r.prev;CF(this,t,r,n),r=i}}forEach(t,n){n=n||this;for(let r=this[li].head;r!==null;){const i=r.next;CF(this,t,r,n),r=i}}keys(){return this[li].toArray().map(t=>t.key)}values(){return this[li].toArray().map(t=>t.value)}reset(){this[sl]&&this[li]&&this[li].length&&this[li].forEach(t=>this[sl](t.key,t.value)),this[qo]=new Map,this[li]=new SKe,this[ul]=0}dump(){return this[li].map(t=>K3(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[li]}set(t,n,r){if(r=r||this[Ic],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const i=r?Date.now():0,a=this[Xf](n,t);if(this[qo].has(t)){if(a>this[vc])return Ud(this,this[qo].get(t)),!1;const l=this[qo].get(t).value;return this[sl]&&(this[xF]||this[sl](t,l.value)),l.now=i,l.maxAge=r,l.value=n,this[ul]+=a-l.length,l.length=a,this.get(t),Vh(this),!0}const o=new xKe(t,n,a,i,r);return o.length>this[vc]?(this[sl]&&this[sl](t,n),!1):(this[ul]+=o.length,this[li].unshift(o),this[qo].set(t,this[li].head),Vh(this),!0)}has(t){if(!this[qo].has(t))return!1;const n=this[qo].get(t).value;return!K3(this,n)}get(t){return HS(this,t,!0)}peek(t){return HS(this,t,!1)}pop(){const t=this[li].tail;return t?(Ud(this,t),t.value):null}del(t){Ud(this,this[qo].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[qo].forEach((t,n)=>HS(this,n,!1))}}const HS=(e,t,n)=>{const r=e[qo].get(t);if(r){const i=r.value;if(K3(e,i)){if(Ud(e,r),!e[D0])return}else n&&(e[CX]&&(r.value.now=Date.now()),e[li].unshiftNode(r));return i.value}},K3=(e,t)=>{if(!t||!t.maxAge&&!e[Ic])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Ic]&&n>e[Ic]},Vh=e=>{if(e[ul]>e[vc])for(let t=e[li].tail;e[ul]>e[vc]&&t!==null;){const n=t.prev;Ud(e,t),t=n}},Ud=(e,t)=>{if(t){const n=t.value;e[sl]&&e[sl](n.key,n.value),e[ul]-=n.length,e[qo].delete(n.key),e[li].removeNode(t)}};class xKe{constructor(t,n,r,i,a){this.key=t,this.value=n,this.length=r,this.now=i,this.maxAge=a||0}}const CF=(e,t,n,r)=>{let i=n.value;K3(e,i)&&(Ud(e,n),e[D0]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var CKe=_Ke,jS,RF;function ls(){if(RF)return jS;RF=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(b=>this.parseRange(b.trim())).filter(b=>b.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const b=this.set[0];if(this.set=this.set.filter(S=>!g(S[0])),this.set.length===0)this.set=[b];else if(this.set.length>1){for(const S of this.set)if(S.length===1&&T(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 b=((this.options.includePrerelease&&p)|(this.options.loose&&y))+":"+u,S=n.get(b);if(S)return S;const R=this.options.loose,$=R?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];u=u.replace($,ee(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));R&&(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(g(ne))return[ne];_.set(ne.value,ne)}_.size>1&&_.has("")&&_.delete("");const k=[..._.values()];return n.set(b,k),k}intersects(u,h){if(!(u instanceof e))throw new TypeError("a Range is required");return this.set.some(b=>C(b,h)&&u.set.some(S=>C(S,h)&&b.every(R=>S.every($=>R.intersects($,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}}jS=e;const t=CKe,n=new t({max:1e3}),r=CR,i=NE(),a=PE,o=ra,{safeRe:s,t:l,comparatorTrimReplace:f,tildeTrimReplace:c,caretTrimReplace:d}=bm,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:y}=OE,g=E=>E.value==="<0.0.0-0",T=E=>E.value==="",C=(E,u)=>{let h=!0;const b=E.slice();let S=b.pop();for(;h&&b.length;)h=b.every(R=>S.intersects(R,u)),S=b.pop();return h},A=(E,u)=>(a("comp",E,u),E=J(E,u),a("caret",E),E=D(E,u),a("tildes",E),E=V(E,u),a("xrange",E),E=re(E,u),a("stars",E),E),I=E=>!E||E.toLowerCase()==="x"||E==="*",D=(E,u)=>E.trim().split(/\s+/).map(h=>M(h,u)).join(" "),M=(E,u)=>{const h=u.loose?s[l.TILDELOOSE]:s[l.TILDE];return E.replace(h,(b,S,R,$,x)=>{a("tilde",E,b,S,R,$,x);let _;return I(S)?_="":I(R)?_=`>=${S}.0.0 <${+S+1}.0.0-0`:I($)?_=`>=${S}.${R}.0 <${S}.${+R+1}.0-0`:x?(a("replaceTilde pr",x),_=`>=${S}.${R}.${$}-${x} <${S}.${+R+1}.0-0`):_=`>=${S}.${R}.${$} <${S}.${+R+1}.0-0`,a("tilde return",_),_})},J=(E,u)=>E.trim().split(/\s+/).map(h=>j(h,u)).join(" "),j=(E,u)=>{a("caret",E,u);const h=u.loose?s[l.CARETLOOSE]:s[l.CARET],b=u.includePrerelease?"-0":"";return E.replace(h,(S,R,$,x,_)=>{a("caret",E,S,R,$,x,_);let v;return I(R)?v="":I($)?v=`>=${R}.0.0${b} <${+R+1}.0.0-0`:I(x)?R==="0"?v=`>=${R}.${$}.0${b} <${R}.${+$+1}.0-0`:v=`>=${R}.${$}.0${b} <${+R+1}.0.0-0`:_?(a("replaceCaret pr",_),R==="0"?$==="0"?v=`>=${R}.${$}.${x}-${_} <${R}.${$}.${+x+1}-0`:v=`>=${R}.${$}.${x}-${_} <${R}.${+$+1}.0-0`:v=`>=${R}.${$}.${x}-${_} <${+R+1}.0.0-0`):(a("no pr"),R==="0"?$==="0"?v=`>=${R}.${$}.${x}${b} <${R}.${$}.${+x+1}-0`:v=`>=${R}.${$}.${x}${b} <${R}.${+$+1}.0-0`:v=`>=${R}.${$}.${x} <${+R+1}.0.0-0`),a("caret return",v),v})},V=(E,u)=>(a("replaceXRanges",E,u),E.split(/\s+/).map(h=>X(h,u)).join(" ")),X=(E,u)=>{E=E.trim();const h=u.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return E.replace(h,(b,S,R,$,x,_)=>{a("xRange",E,b,S,R,$,x,_);const v=I(R),k=v||I($),ne=k||I(x),B=ne;return S==="="&&B&&(S=""),_=u.includePrerelease?"-0":"",v?S===">"||S==="<"?b="<0.0.0-0":b="*":S&&B?(k&&($=0),x=0,S===">"?(S=">=",k?(R=+R+1,$=0,x=0):($=+$+1,x=0)):S==="<="&&(S="<",k?R=+R+1:$=+$+1),S==="<"&&(_="-0"),b=`${S+R}.${$}.${x}${_}`):k?b=`>=${R}.0.0${_} <${+R+1}.0.0-0`:ne&&(b=`>=${R}.${$}.0${_} <${R}.${+$+1}.0-0`),a("xRange return",b),b})},re=(E,u)=>(a("replaceStars",E,u),E.trim().replace(s[l.STAR],"")),le=(E,u)=>(a("replaceGTE0",E,u),E.trim().replace(s[u.includePrerelease?l.GTE0PRE:l.GTE0],"")),ee=E=>(u,h,b,S,R,$,x,_,v,k,ne,B,q)=>(I(b)?h="":I(S)?h=`>=${b}.0.0${E?"-0":""}`:I(R)?h=`>=${b}.${S}.0${E?"-0":""}`:$?h=`>=${h}`:h=`>=${h}${E?"-0":""}`,I(v)?_="":I(k)?_=`<${+v+1}.0.0-0`:I(ne)?_=`<${v}.${+k+1}.0-0`:B?_=`<=${v}.${k}.${ne}-${B}`:E?_=`<${v}.${k}.${+ne+1}-0`:_=`<=${_}`,`${h} ${_}`.trim()),P=(E,u,h)=>{for(let b=0;b<E.length;b++)if(!E[b].test(u))return!1;if(u.prerelease.length&&!h.includePrerelease){for(let b=0;b<E.length;b++)if(a(E[b].semver),E[b].semver!==i.ANY&&E[b].semver.prerelease.length>0){const S=E[b].semver;if(S.major===u.major&&S.minor===u.minor&&S.patch===u.patch)return!0}return!1}return!0};return jS}var JS,$F;function NE(){if($F)return JS;$F=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(">")))}}JS=t;const n=CR,{safeRe:r,t:i}=bm,a=xX,o=PE,s=ra,l=ls();return JS}const RKe=ls(),$Ke=(e,t,n)=>{try{t=new RKe(t,n)}catch{return!1}return t.test(e)};var BE=$Ke;const IKe=ls(),kKe=(e,t)=>new IKe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var DKe=kKe;const LKe=ra,OKe=ls(),PKe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new OKe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===-1)&&(r=o,i=new LKe(r,n))}),r};var MKe=PKe;const NKe=ra,BKe=ls(),FKe=(e,t,n)=>{let r=null,i=null,a=null;try{a=new BKe(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===1)&&(r=o,i=new NKe(r,n))}),r};var UKe=FKe;const VS=ra,HKe=ls(),IF=ME,jKe=(e,t)=>{e=new HKe(e,t);let n=new VS("0.0.0");if(e.test(n)||(n=new VS("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 VS(o.semver.version);switch(o.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!a||IF(s,a))&&(a=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),a&&(!n||IF(n,a))&&(n=a)}return n&&e.test(n)?n:null};var JKe=jKe;const VKe=ls(),qKe=(e,t)=>{try{return new VKe(e,t).range||"*"}catch{return null}};var GKe=qKe;const WKe=ra,RX=NE(),{ANY:zKe}=RX,KKe=ls(),YKe=BE,kF=ME,DF=$R,ZKe=kR,XKe=IR,QKe=(e,t,n,r)=>{e=new WKe(e,r),t=new KKe(t,r);let i,a,o,s,l;switch(n){case">":i=kF,a=ZKe,o=DF,s=">",l=">=";break;case"<":i=DF,a=XKe,o=kF,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(YKe(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(y=>{y.semver===zKe&&(y=new RX(">=0.0.0")),d=d||y,p=p||y,i(y.semver,d.semver,r)?d=y:o(y.semver,p.semver,r)&&(p=y)}),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 DR=QKe;const eYe=DR,tYe=(e,t,n)=>eYe(e,t,">",n);var nYe=tYe;const rYe=DR,iYe=(e,t,n)=>rYe(e,t,"<",n);var aYe=iYe;const LF=ls(),oYe=(e,t,n)=>(e=new LF(e,n),t=new LF(t,n),e.intersects(t,n));var sYe=oYe;const lYe=BE,uYe=ss;var cYe=(e,t,n)=>{const r=[];let i=null,a=null;const o=e.sort((c,d)=>uYe(c,d,n));for(const c of o)lYe(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 OF=ls(),LR=NE(),{ANY:qS}=LR,qh=BE,OR=ss,fYe=(e,t,n={})=>{if(e===t)return!0;e=new OF(e,n),t=new OF(t,n);let r=!1;e:for(const i of e.set){for(const a of t.set){const o=pYe(i,a,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},dYe=[new LR(">=0.0.0-0")],PF=[new LR(">=0.0.0")],pYe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===qS){if(t.length===1&&t[0].semver===qS)return!0;n.includePrerelease?e=dYe:e=PF}if(t.length===1&&t[0].semver===qS){if(n.includePrerelease)return!0;t=PF}const r=new Set;let i,a;for(const y of e)y.operator===">"||y.operator===">="?i=MF(i,y,n):y.operator==="<"||y.operator==="<="?a=NF(a,y,n):r.add(y.semver);if(r.size>1)return null;let o;if(i&&a){if(o=OR(i.semver,a.semver,n),o>0)return null;if(o===0&&(i.operator!==">="||a.operator!=="<="))return null}for(const y of r){if(i&&!qh(y,String(i),n)||a&&!qh(y,String(a),n))return null;for(const g of t)if(!qh(y,String(g),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 y of t){if(c=c||y.operator===">"||y.operator===">=",f=f||y.operator==="<"||y.operator==="<=",i){if(p&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===p.major&&y.semver.minor===p.minor&&y.semver.patch===p.patch&&(p=!1),y.operator===">"||y.operator===">="){if(s=MF(i,y,n),s===y&&s!==i)return!1}else if(i.operator===">="&&!qh(i.semver,String(y),n))return!1}if(a){if(d&&y.semver.prerelease&&y.semver.prerelease.length&&y.semver.major===d.major&&y.semver.minor===d.minor&&y.semver.patch===d.patch&&(d=!1),y.operator==="<"||y.operator==="<="){if(l=NF(a,y,n),l===y&&l!==a)return!1}else if(a.operator==="<="&&!qh(a.semver,String(y),n))return!1}if(!y.operator&&(a||i)&&o!==0)return!1}return!(i&&f&&!a&&o!==0||a&&c&&!i&&o!==0||p||d)},MF=(e,t,n)=>{if(!e)return t;const r=OR(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},NF=(e,t,n)=>{if(!e)return t;const r=OR(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var hYe=fYe;const GS=bm,BF=OE,mYe=ra,FF=wX,gYe=Yp,yYe=gze,vYe=bze,bYe=Tze,EYe=wze,TYe=xze,AYe=$ze,wYe=Dze,SYe=Pze,_Ye=ss,xYe=Fze,CYe=jze,RYe=RR,$Ye=Gze,IYe=Kze,kYe=ME,DYe=$R,LYe=SX,OYe=_X,PYe=IR,MYe=kR,NYe=xX,BYe=vKe,FYe=NE(),UYe=ls(),HYe=BE,jYe=DKe,JYe=MKe,VYe=UKe,qYe=JKe,GYe=GKe,WYe=DR,zYe=nYe,KYe=aYe,YYe=sYe,ZYe=cYe,XYe=hYe;var $X={parse:gYe,valid:yYe,clean:vYe,inc:bYe,diff:EYe,major:TYe,minor:AYe,patch:wYe,prerelease:SYe,compare:_Ye,rcompare:xYe,compareLoose:CYe,compareBuild:RYe,sort:$Ye,rsort:IYe,gt:kYe,lt:DYe,eq:LYe,neq:OYe,gte:PYe,lte:MYe,cmp:NYe,coerce:BYe,Comparator:FYe,Range:UYe,satisfies:HYe,toComparators:jYe,maxSatisfying:JYe,minSatisfying:VYe,minVersion:qYe,validRange:GYe,outside:WYe,gtr:zYe,ltr:KYe,intersects:YYe,simplifyRange:ZYe,subset:XYe,SemVer:mYe,re:GS.re,src:GS.src,tokens:GS.t,SEMVER_SPEC_VERSION:BF.SEMVER_SPEC_VERSION,RELEASE_TYPES:BF.RELEASE_TYPES,compareIdentifiers:FF.compareIdentifiers,rcompareIdentifiers:FF.rcompareIdentifiers};const UF=Mt($X);async function IX(...e){return new Promise((t,n)=>{rn(()=>import("./index-dQP0j7rR.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 QYe=[`${ji}/connect`,`${ji}/login`,`${ji}/invite`,`${ji}/issue-passport`];async function eZe(){const e=(window==null?void 0:window.blocklet)||{},t=window.location.pathname,{componentId:n,CHAIN_TYPE:r="arcblock",appPid:i}=e;if(QYe.includes(t))return null;const a=lZ();try{const o=`${window.location.origin}${ji}/api/user/loginByWallet`;return await IX("arcLogin",{target:o,chainType:r,appPid:i,componentId:n,apps:a.map(l=>{let f=l==null?void 0:l.appLogo;return Nb(f)||(f=Ln(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 tZe(){return await IX("arcGetVisitorId")}function nZe({platform:e,version:t}={}){return!!(e==="ios"&&t&&UF.gte(t,"4.15.6")||e==="android"&&t&&UF.gte(t,"4.15.1"))}const{Provider:rZe,Consumer:HF}=Kp,jF={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"};function iZe(e=GUe,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:{}}),cIe(r,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:WUe});const a=RP(e,t,n),o=RP(r.refreshTokenStorageKey,"ls");function s(c){var be,Ne;const{connectApi:d,connectHolder:p}=QWe(),y=lm(),g=ea({action:c.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:"",get locale(){return c.locale||T.currentLocale||BY()}}),T=ea({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?Ln(ji,c.prefix):c.prefix}}),C=un(()=>new dIe,[]),A=$t((Oe,xe,Le)=>{const Ie={login:[Qr.LOGIN,Qr.CANCEL_LOGIN],"bind-wallet":[Qr.BIND_WALLET,Qr.CANCEL_BIND_WALLET],"switch-passport":[Qr.SWITCH_PASSPORT,Qr.CANCEL_SWITCH_PASSPORT],"switch-profile":[Qr.SWITCH_PROFILE,Qr.CANCEL_SWITCH_PROFILE],"switch-did":[Qr.LOGIN,Qr.CANCEL_LOGIN]};if(!Object.keys(Ie).includes(Oe))return;const Ue=async(...Xe)=>{xc(xe)&&await xe(...Xe),C.emit(Oe,...Xe)};C.once(Ie[Oe][0],Ue),C.once(Ie[Oe][1],async(...Xe)=>{xc(Ue)&&C.off(Ie[Oe][0],Ue),xc(Le)&&await Le(...Xe),C.emit(`cancel-${Oe}`,...Xe)})}),I=lz(g.initialized,(Oe,xe)=>Oe!==xe||Oe===!0&&xe===!0);ap(()=>{if(g.initialized){const Oe=!I;C.emit("change",{user:Tl(g.user),isFirst:Oe})}},[g.user,g.initialized,C]);const{handleRefreshUser:D,handleRefreshToken:M,renewToken:J,clearSession:j,handleLoginResult:V,decrypt:X,service:re,getSessionToken:le,getRefreshToken:ee,setRefreshToken:P,setSessionToken:E}=vHe({state:g,pageState:T,sessionTokenStorage:a,refreshTokenStorage:o,serviceHost:c.serviceHost,apiOptions:c.apiOptions,lazyRefreshToken:c.lazyRefreshToken}),u=$t((Oe,xe={},Le={})=>{const Ie=Oe;typeof Ie=="object"&&(Oe=Ie.onSuccess,xe=Ie.extraParams||{},Le=Ie.options||{},Le.origin=Ie.origin||""),(!g.user||Le.origin==="switch-did")&&(Le.origin==="switch-did"?A("switch-did",Oe,Ie==null?void 0:Ie.onCancel):A("login",Oe,Ie==null?void 0:Ie.onCancel),T.extraParams=xe,T.options=Le,g.action="login",we())}),h=$t(async(Oe,xe={},Le={})=>{var G;if((xe==null?void 0:xe.openMode)==="redirect"){const N=(xe==null?void 0:xe.redirect)||"/",F=new URL(`${ji}/login`,window.location.origin);F.searchParams.set("redirect",N),window.location.href=F.href;return}let Ie=xe==null?void 0:xe.sourceAppPid;gl(Ie)&&O&&(Ie=Z.appPid),await PW(()=>g.initialized);const Ue=Oe;typeof Ue=="object"&&(Oe=Ue.onSuccess,xe=Ue.extraParams||{},Le=Ue.options||{}),typeof Le=="string"&&(Le={origin:Le});const Xe=Tl(xe);T.allowWallet=void 0;const Be=(Xe==null?void 0:Xe.openMode)||((G=c==null?void 0:c.extraParams)==null?void 0:G.openMode);gl(Be)?T.openMode="window":T.openMode=Be,Ie?(g.baseUrl=globalThis.blocklet.appUrl,u(Oe,Xe,Le)):(g.baseUrl="",u(Oe,Xe,Le))}),b=X1(),S=$t(async Oe=>{const xe=Ln(ji,"/api/user/logout");await fetch(xe,{method:"POST",body:JSON.stringify({visitorId:b}),headers:{"Content-Type":"application/json"}}),j(),me(),g.user=null,g.provider="",g.walletOS="",g.error="",g.loading=!1,C.emit("logout"),typeof Oe=="function"&&Oe()}),{userSessions:R,refresh:$,loaded:x,loginUserSession:_}=EX({appPid:bz(g.user),loginAppPid:(be=globalThis==null?void 0:globalThis.blocklet)==null?void 0:be.appPid,sourceAppPid:(Ne=g==null?void 0:g.user)==null?void 0:Ne.sourceAppPid,autoFetch:!1}),v=$t((Oe,xe={},Le={})=>{const Ie=Oe;typeof Ie=="object"&&(Oe=Ie.onSuccess,xe=Ie.extraParams||{},Le=Ie.options||{}),typeof Le=="string"&&(Le={origin:Le}),Le!=null&&Le.userSession?_(Le.userSession).then(Ue=>{A("switch-did",Oe),V({...Ue,encrypted:!1}),D(!0).then(()=>{C.emit(Qr.LOGIN,Ue,X)})}):(gl(xe==null?void 0:xe.forceConnected)&&(xe.forceConnected=!1),h(Oe,xe,{...Le,origin:"switch-did"}))}),k=$t((Oe,xe={})=>{const Le=Oe;typeof Le=="object"&&(Oe=Le.onSuccess,xe=Le.extraParams||{}),g.user&&(A("switch-profile",Oe,Le==null?void 0:Le.onCancel),T.extraParams=xe,T.options={},g.action="switch-profile",we())}),ne=$t((Oe,xe={})=>{const Le=Oe;typeof Le=="object"&&(Oe=Le.onSuccess,xe=Le.extraParams||{}),g.user&&(A("switch-passport",Oe,Le==null?void 0:Le.onCancel),T.extraParams=xe,T.options={},g.action="switch-passport",we())}),B=$t((Oe,xe={})=>{const Le=Oe;typeof Le=="object"&&(Oe=Le.onSuccess),g.user&&(A("bind-wallet",Oe,Le==null?void 0:Le.onCancel),T.extraParams=xe,T.options={},g.action="bind-wallet",we())}),q=$t(Oe=>{T.extraParams={},T.options={},V(Oe),g.loading=!1,D(!0).then(()=>{g.action==="login"?C.emit(Qr.LOGIN,Oe,X):g.action==="switch-passport"&&C.emit(Qr.SWITCH_PASSPORT,Oe,X)})}),ie=$t(Oe=>{T.extraParams={},T.options={},V(Oe),g.loading=!1,D(!0).then(()=>{C.emit(Qr.BIND_WALLET,Oe,X)})}),ce=$t(Oe=>{T.extraParams={},T.options={},g.loading=!1,D(!0).then(()=>{C.emit(Qr.SWITCH_PROFILE,Oe,X)})}),he=$t(Oe=>{T.extraParams={},T.options={},me();const xe={login:Qr.CANCEL_LOGIN,"switch-profile":Qr.CANCEL_SWITCH_PROFILE,"switch-passport":Qr.CANCEL_SWITCH_PASSPORT,"bind-wallet":Qr.CANCEL_BIND_WALLET};C.emit(xe[Oe])}),Se=$t((Oe,...xe)=>{try{ae[Oe](...xe)}catch(Le){console.error("Catch error in onSuccess",{action:Oe,args:xe,err:Le})}}),{federatedMaster:U,federatedEnabled:O,master:Z}=hHe({locale:g.locale,decrypt:X,login:u,logout:S,handleLoginResult:V,handleRefreshUser:D,setRefreshToken:P,setSessionToken:E}),{checkMatch:z}=IHe({protectedRoutes:c.protectedRoutes||[]});om(async()=>{const Oe=Pr.get("connected_app"),xe=EC();if(c.autoDisconnect&&Oe&&xe&&Oe!==xe){j(),g.initialized=!0,T.autoConnect?we():me();return}const Le=le();let Ie="web";if(y.mobile.apple.device?Ie="ios":y.mobile.android.device&&(Ie="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&y.wallet&&nZe({version:y.walletVersion,platform:Ie})){if(!b){const Xe=await tZe();DG(Xe)}if(!Le)try{g.loading=!0;const Xe=await eZe();if(Xe){g.initialized=!0,q({sessionToken:Xe.sessionToken,refreshToken:Xe.refreshToken,encrypted:!1});return}}finally{g.loading=!1}}if(Le){await D(!0),g.initialized=!0;return}if(typeof window<"u"){const Xe=new URL(window.location.href),Be=Xe.searchParams.get("loginToken");if(Be){V({loginToken:Be,encrypted:!1}),Xe.searchParams.delete("loginToken"),window.history.replaceState({},window.title,Xe.href);return}}if(ee()){await M(!0),g.initialized=!0;return}try{}catch(Xe){console.error("Federated: tryAutoLogin failed",Xe)}finally{g.initialized=!0}T.autoConnect?we():me()});const te=Zb(R),ge=$t(async()=>(x||(await $(),await TE()),te.current)),pe={api:re,events:C,storage:a,connectApi:d,session:{...g,loading:T.autoConnect&&!g.user||g.loading,login:h,logout:S,switchDid:v,switchProfile:k,switchPassport:ne,bindWallet:B,refresh:D,updateConnectedInfo:PY,federatedMaster:U,useOAuth:PC,OAuthProvider:j3,OAuthConsumer:YUe,OAuthContext:OC,useDid:tZ,WrapDid:oZ,getUserSessions:ge}},ae={login:q,"switch-profile":ce,"switch-passport":q,"bind-wallet":ie},me=$t(()=>{g.open=!1,d.close()}),we=async()=>{var Ue,Xe,Be,G,N;const Oe=eze[g.action],xe=Oe[g.locale]||Oe.en,Le={...r.extraParams,...c.extraParams,...T.extraParams,previousUserDid:(Ue=g==null?void 0:g.user)==null?void 0:Ue.did,email:(Xe=g==null?void 0:g.user)==null?void 0:Xe.email};Le==null||delete Le.openMode;const Ie={action:g.action,locale:g.locale,extraParams:Le,options:{...c.options||{},...T.options},checkTimeout:c.timeout,webWalletUrl:c.webWalletUrl,messages:xe,useSocket:c.useSocket,...t5(c,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...qb(T.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:T.prefix,allowWallet:gl(T.allowWallet)?g.action!=="login"||(((Be=globalThis.blocklet)==null?void 0:Be.DID_CONNECT_ALLOW_WALLET)||"1")==="1":T.allowWallet,onSuccess(...F){Se(g.action,...F),setTimeout(()=>{g.open=!1},2e3)},onClose(...F){he(g.action,...F)},onError(F){console.error(F)}};if(g.open=!0,["login"].includes(g.action)&&T.openMode==="window"&&!y.wallet)try{const F={...Ie,baseUrl:window.location.origin};Nb(T.prefix)||(F.prefix=Ln(window.location.origin,c.serviceHost==="/"?"":c.serviceHost,T.prefix)),(G=F.extraParams)!=null&&G.provider||(F.extraParams.provider=((N=g==null?void 0:g.user)==null?void 0:N.provider)||"wallet"),await d.openPopup(F,{locale:g.locale})}catch(F){F.message==="Timeout"?_i.error(jF[g.locale]||jF.en):console.error(F)}else d.open(Ie)};return z()&&!g.initialized?K.jsx(Qd,{children:K.jsx(j1,{})}):K.jsx(rZe,{value:pe,children:K.jsxs(j3,{locale:g.locale,onSwitchPassport:({sessionToken:Oe,refreshToken:xe})=>{q({sessionToken:Oe,refreshToken:xe,encrypted:!1})},onBindOAuth:()=>{D()},children:[!g.open&&typeof c.children=="function"?c.children(g):c.children,p,r.rolling&&K.jsx(FY,{callback:()=>J()})]})})}s.propTypes={children:ve.any.isRequired,serviceHost:ve.string,action:ve.string,prefix:ve.string,appendAuthServicePrefix:ve.bool,locale:ve.string,timeout:ve.number,autoConnect:ve.bool,autoDisconnect:ve.bool,useSocket:ve.bool,extraParams:ve.object,options:ve.object,webWalletUrl:ve.string,protectedRoutes:ve.arrayOf(ve.string),apiOptions:ve.object,lazyRefreshToken:ve.bool},s.defaultProps={serviceHost:i,locale:"",action:"login",prefix:LC,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:nZ*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function l(c){return function(p){return K.jsx(T3,{children:K.jsx(HF,{children:y=>K.jsx(c,{...p,...y})})})}}return{SessionProvider:c=>K.jsx(T3,{children:K.jsx(s,{...c})}),SessionConsumer:HF,SessionContext:Kp,withSession:l}}let kX="/";window.env&&(kX=window.env.groupPathPrefix||window.env.pathPrefix||"/");function DX(e,t){return[void 0,null,""].includes(e)?t:e/86400}var EH,TH,AH;const aZe=DX((AH=(TH=(EH=window.blocklet)==null?void 0:EH.settings)==null?void 0:TH.session)==null?void 0:AH.cacheTtl,1/144);var wH,SH,_H;const oZe=DX((_H=(SH=(wH=window.blocklet)==null?void 0:wH.settings)==null?void 0:SH.session)==null?void 0:_H.ttl,7),{SessionProvider:sZe,SessionContext:lZe,SessionConsumer:q0t,withSession:G0t}=iZe("login_token","cookie",{returnDomain:!1,path:kX,expireInDays:aZe},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays:oZe});function LX(){return W.useContext(lZe)}function uZe({children:e}){const t=tq({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return K.jsx(UV,{injectFirst:!0,children:K.jsx(eq,{theme:t,children:K.jsx(FV,{theme:t,children:K.jsx(d8,{translations:uxe,fallbackLocale:"en",children:K.jsx(T3,{children:K.jsx(MR,{theme:t,children:e})})})})})})}const PR=new URL(window.location.href),OX=PR.searchParams.get("mode")||"",cZe=PR.pathname.includes("embed")&&OX==="dialog",fZe=PR.pathname.includes("embed")&&OX!=="dialog";function MR({children:e,theme:t}){var i,a,o;const{locale:n}=Bb(),r=Fu`
631
631
  ${cZe?"body { background-color: transparent }":""}
632
632
  ${fZe?".MuiModal-backdrop { background-color: transparent !important }":""}
633
633
  a {
@@ -1433,10 +1433,10 @@ ${r.length}`,o=Ft.from(a),s=Ft.concat([o,i]);return aat.default.keccak256s(s)}et
1433
1433
  `)&&e.flags==="s")}),Cdt=Wa,Rdt=Ga,$dt=Rdt.RegExp,Idt=Cdt(function(){var e=$dt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Cd=ih,dT=Ta,kdt=fT,Ddt=Qft,Ldt=rdt,Odt=H$,Pdt=Adt,Mdt=Sne.get,Ndt=xdt,Bdt=Idt,Fdt=Odt("native-string-replace",String.prototype.replace),c2=RegExp.prototype.exec,f7=c2,Udt=dT("".charAt),Hdt=dT("".indexOf),jdt=dT("".replace),A6=dT("".slice),d7=function(){var e=/a/,t=/b*/g;return Cd(c2,e,"a"),Cd(c2,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),Pne=Ldt.BROKEN_CARET,p7=/()??/.exec("")[1]!==void 0,Jdt=d7||p7||Pne||Ndt||Bdt;Jdt&&(f7=function(t){var n=this,r=Mdt(n),i=kdt(t),a=r.raw,o,s,l,f,c,d,p;if(a)return a.lastIndex=n.lastIndex,o=Cd(f7,a,i),n.lastIndex=a.lastIndex,o;var y=r.groups,g=Pne&&n.sticky,T=Cd(Ddt,n),C=n.source,A=0,I=i;if(g&&(T=jdt(T,"y",""),Hdt(T,"g")===-1&&(T+="g"),I=A6(i,n.lastIndex),n.lastIndex>0&&(!n.multiline||n.multiline&&Udt(i,n.lastIndex-1)!==`
1434
1434
  `)&&(C="(?: "+C+")",I=" "+I,A++),s=new RegExp("^(?:"+C+")",T)),p7&&(s=new RegExp("^"+C+"$(?!\\s)",T)),d7&&(l=n.lastIndex),f=Cd(c2,g?s:n,I),g?f?(f.input=A6(f.input,A),f[0]=A6(f[0],A),f.index=n.lastIndex,n.lastIndex+=f[0].length):n.lastIndex=0:d7&&f&&(n.lastIndex=n.global?f.index+f[0].length:l),p7&&f&&f.length>1&&Cd(Fdt,f[0],s,function(){for(c=1;c<arguments.length-2;c++)arguments[c]===void 0&&(f[c]=void 0)}),f&&y)for(f.groups=d=Pdt(null),c=0;c<y.length;c++)p=y[c],d[p[0]]=f[p[1]];return f});var Z$=f7,Vdt=Ine,nH=Z$;Vdt({target:"RegExp",proto:!0,forced:/./.exec!==nH},{exec:nH});var qdt=M$,Mne=Function.prototype,rH=Mne.apply,iH=Mne.call,Gdt=typeof Reflect=="object"&&Reflect.apply||(qdt?iH.bind(rH):function(){return iH.apply(rH,arguments)}),Wdt=Dm,zdt=Ta,Nne=function(e){if(Wdt(e)==="Function")return zdt(e)},aH=Nne,oH=xne,Kdt=Z$,sH=Wa,Bne=Tf,Ydt=j$,Zdt=Bne("species"),w6=RegExp.prototype,Xdt=function(e,t,n,r){var i=Bne(e),a=!sH(function(){var f={};return f[i]=function(){return 7},""[e](f)!=7}),o=a&&!sH(function(){var f=!1,c=/a/;return e==="split"&&(c={},c.constructor={},c.constructor[Zdt]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return f=!0,null},c[i](""),!f});if(!a||!o||n){var s=aH(/./[i]),l=t(i,""[e],function(f,c,d,p,y){var g=aH(f),T=c.exec;return T===Kdt||T===w6.exec?a&&!y?{done:!0,value:s(c,d,p)}:{done:!0,value:g(d,c,p)}:{done:!1}});oH(String.prototype,e,l[0]),oH(w6,i,l[1])}r&&Ydt(w6[i],"sham",!0)},X$=Ta,Qdt=cT,ept=fT,tpt=Lm,npt=X$("".charAt),lH=X$("".charCodeAt),rpt=X$("".slice),uH=function(e){return function(t,n){var r=ept(tpt(t)),i=Qdt(n),a=r.length,o,s;return i<0||i>=a?e?"":void 0:(o=lH(r,i),o<55296||o>56319||i+1===a||(s=lH(r,i+1))<56320||s>57343?e?npt(r,i):o:e?rpt(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},ipt={codeAt:uH(!1),charAt:uH(!0)},apt=ipt.charAt,opt=function(e,t,n){return t+(n?apt(e,t).length:1)},Q$=Ta,spt=hne,lpt=Math.floor,S6=Q$("".charAt),upt=Q$("".replace),_6=Q$("".slice),cpt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,fpt=/\$([$&'`]|\d{1,2})/g,dpt=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,l=fpt;return i!==void 0&&(i=spt(i),l=cpt),upt(a,l,function(f,c){var d;switch(S6(c,0)){case"$":return"$";case"&":return e;case"`":return _6(t,0,n);case"'":return _6(t,o);case"<":d=i[_6(c,1,-1)];break;default:var p=+c;if(p===0)return f;if(p>s){var y=lpt(p/10);return y===0?f:y<=s?r[y-1]===void 0?S6(c,1):r[y-1]+S6(c,1):f}d=r[p-1]}return d===void 0?"":d})},cH=ih,ppt=Af,hpt=za,mpt=Dm,gpt=Z$,ypt=TypeError,vpt=function(e,t){var n=e.exec;if(hpt(n)){var r=cH(n,e,t);return r!==null&&ppt(r),r}if(mpt(e)==="RegExp")return cH(gpt,e,t);throw ypt("RegExp#exec called on incompatible receiver")},bpt=Gdt,fH=ih,pT=Ta,Ept=Xdt,Tpt=Wa,Apt=Af,wpt=za,Spt=N$,_pt=cT,xpt=G$,nd=fT,Cpt=Lm,Rpt=opt,$pt=dne,Ipt=dpt,kpt=vpt,Dpt=Tf,h7=Dpt("replace"),Lpt=Math.max,Opt=Math.min,Ppt=pT([].concat),x6=pT([].push),dH=pT("".indexOf),pH=pT("".slice),Mpt=function(e){return e===void 0?e:String(e)},Npt=function(){return"a".replace(/./,"$0")==="$0"}(),hH=function(){return/./[h7]?/./[h7]("a","$0")==="":!1}(),Bpt=!Tpt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"});Ept("replace",function(e,t,n){var r=hH?"$":"$0";return[function(a,o){var s=Cpt(this),l=Spt(a)?void 0:$pt(a,h7);return l?fH(l,a,s,o):fH(t,nd(s),a,o)},function(i,a){var o=Apt(this),s=nd(i);if(typeof a=="string"&&dH(a,r)===-1&&dH(a,"$<")===-1){var l=n(t,o,s,a);if(l.done)return l.value}var f=wpt(a);f||(a=nd(a));var c=o.global;if(c){var d=o.unicode;o.lastIndex=0}for(var p=[];;){var y=kpt(o,s);if(y===null||(x6(p,y),!c))break;var g=nd(y[0]);g===""&&(o.lastIndex=Rpt(s,xpt(o.lastIndex),d))}for(var T="",C=0,A=0;A<p.length;A++){y=p[A];for(var I=nd(y[0]),D=Lpt(Opt(_pt(y.index),s.length),0),M=[],J=1;J<y.length;J++)x6(M,Mpt(y[J]));var j=y.groups;if(f){var V=Ppt([I],M,D,s);j!==void 0&&x6(V,j);var X=nd(bpt(a,void 0,V))}else X=Ipt(I,s,D,M,j,a);D>=C&&(T+=pH(s,C,D)+X,C=D+I.length)}return T+pH(s,C)}]},!Bpt||!Npt||hH);var Fpt=ah,Upt=Dm,Hpt=Tf,jpt=Hpt("match"),Jpt=function(e){var t;return Fpt(e)&&((t=e[jpt])!==void 0?!!t:Upt(e)=="RegExp")},Vpt=Jpt,qpt=TypeError,Gpt=function(e){if(Vpt(e))throw qpt("The method doesn't accept regular expressions");return e},Wpt=Tf,zpt=Wpt("match"),Kpt=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[zpt]=!1,"/./"[e](t)}catch{}}return!1},Ypt=Ine,Fne=Nne,Zpt=lT.f,Xpt=G$,mH=fT,Qpt=Gpt,eht=Lm,tht=Kpt,gH=Fne("".endsWith),nht=Fne("".slice),rht=Math.min,Une=tht("endsWith"),iht=!Une&&!!function(){var e=Zpt(String.prototype,"endsWith");return e&&!e.writable}();Ypt({target:"String",proto:!0,forced:!iht&&!Une},{endsWith:function(t){var n=mH(eht(this));Qpt(t);var r=arguments.length>1?arguments[1]:void 0,i=n.length,a=r===void 0?i:rht(Xpt(r),i),o=mH(t);return gH?gH(n,o,a):nht(n,a-o.length,a)===o}});const aht={name:"Query"},oht={name:"Mutation"},sht=null,lht=[{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}],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:"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}],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}],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:"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}],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:"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}],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:"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}],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:"updateUserRole",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:"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.
1435
1435
 
1436
- 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}],uht=[{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}]}],cht={queryType:aht,mutationType:oht,subscriptionType:sht,types:lht,directives:uht},fht=Gte,dht=cht;let pht=class extends fht{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 dht}_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 hht=pht;const mht=dX,ght=hht;class yht extends ght{_getSocketOptions(){return{}}_getEventImplementation(){return mht}}var vht=yht;const bht=Mt(vht),Eht=(window.env?window.env.apiPrefix:"/")||"/",cl=new bht(()=>`${Eht}/api/gql?locale=${K_()}`.replace(/\/+/g,"/").trim());function Tht({wsClient:e,event:t,cb:n=()=>{},deps:r=[]}){W.useEffect(()=>{const i=e&&(!r.length||r.every(Boolean));return i&&e.on(t,n),()=>{i&&e.off(t,n)}},r)}let Oc;function Hne(){const e=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),t=`//${window.location.host}${e}/admin`;return new ER.WsClient(t,{heartbeatIntervalMs:100*1e3,params:()=>({token:Pr.get("login_token")})})}function jne(){return Oc||(Oc=Hne()),Oc}const eI=(e,t=()=>{},n=[])=>{e=`${window.blocklet.did}/${e}`;const{session:r}=LX();!Oc&&r.user&&(Oc=jne(),Oc.connect()),Tht({wsClient:Oc,event:e,cb:t,deps:n})};let C6=null;const Aht=async()=>{try{return(await km.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},wht=()=>(C6||(C6=Aht()),C6),{Provider:Sht,Consumer:nmt}=YR,_ht=e=>e&&Au(e,"settings.publicToStore")?e.settings.publicToStore:!1,xht=(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},Cht=(()=>{const e={endpoint:"",data:{}};return async t=>{if(e.endpoint===t)return e.data;const r=await zte(t).getConfig();return e.endpoint=t,e.data=r,r}})(),{did:rd,appId:Rht}=window.env;function N0({children:e,mode:t}){const[n,r]=W.useState(null),[i,a]=W.useState(!1),[o,s]=W.useState(),[l,f]=W.useState({}),[c,d]=W.useState(),[p,y]=W.useState(),g=t==="setup",{loading:T,loadingRuntimeInfo:C,error:A,blocklet:I,recommendedDomain:D,runtimeHistory:M,actions:{refreshBlocklet:J,refreshDomainStatus:j,setBlocklet:V}}=mrt({did:rd,client:cl,useSubscription:eI,getIP:wht,useLocaleContext:Bb}),X=async()=>{try{a(!0),r(null);const{data:h}=await km.get("/blocklet/meta");f(h),a(!1)}catch(h){a(!1),r(h),_i.error(h.message)}},re=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:b,value:S,address:R}=l.requirements.fuels[0],$=xht(b,I),x=S;let _=S;const v={endpoint:$,symbol:"",need:x,current:0,owe:Number(x)>0};try{const B=zte($),{config:q}=await Cht($),ie=JSON.parse(q).token;let ce=R;ce||(ce=ie.address),y({address:ie.address,symbol:ie.symbol,decimal:ie.decimal});const{getAccountState:{state:he},getTokenState:{state:Se}}=await B.doBatchQuery({getAccountState:{address:Rht},getTokenState:{address:ce}});Se&&(v.symbol=Se.symbol);const U=((he==null?void 0:he.tokens)||[]).find(O=>O.address===ce);if(U){const O=ii.fromTokenToUnit(x,U.decimal||18);v.current=ii.fromUnitToToken(U.value,U.decimal||18),v.owe=O.gt(new ii.BN(U.value)),_=Math.max(0,ii.fromUnitToToken(O.sub(new ii.BN(U.value)),U.decimal||18))}}catch(B){h&&_i.error(B.message)}return d({...v,deficiency:_}),v},le=async({configs:h,childDid:b})=>(await cl.configBlocklet({input:{did:[rd].concat(b).filter(Boolean),configs:h}}),J()),ee=async h=>{const{blocklet:b}=await cl.updateWhoCanAccess({input:{did:[rd],whoCanAccess:h}});V(b)},P=async h=>{const{blocklet:b}=await cl.configPublicToStore({input:{did:rd,publicToStore:h}});V(b)},E=async h=>{const{blocklet:b}=await cl.configNavigations({input:{did:rd,navigations:h}});V(b)};W.useEffect(()=>{g&&X(),J({showError:!1})},[]),W.useEffect(()=>{if(!I||!(I!=null&&I.controller))return;const{controller:h}=I;Rnt(h.chainHost,h.nftId).then(b=>{b.expirationDate=j5.getNftExpirationDate(b),b.expired=j5.isNFTExpired(b),s(b)}).catch(b=>console.error(b))},[I==null?void 0:I.appPid]);const u={loading:i||T,loadingRuntimeInfo:C,error:n||A,blocklet:I,did:rd,recommendedDomain:D,runtimeHistory:M,appIdList:I?Cee(I):[],env:window.blocklet||{},meta:l,gas:c,tokenInfo:p,getPublicInstance:_ht,nftState:o,client:cl,mode:t,actions:{refreshBlocklet:J,refreshDomainStatus:j,setBlocklet:V,refreshMeta:X,refreshFuel:re,configBlocklet:le,configWhoCanAccess:ee,configPublicToStore:P,configNavigations:E}};return K.jsx(Sht,{value:u,children:e})}N0.propTypes={children:ve.any,mode:ve.oneOf(["dashboard","setup"]).isRequired};N0.defaultProps={children:null};function rmt(){return W.useContext(YR)}const tI=W.createContext({});function imt(){const{node:e}=W.useContext(tI);return{...e,inService:e.type==="service",inDaemon:e.type==="daemon"}}const{Provider:$ht,Consumer:amt}=tI,Iht=`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function yH({children:e}){const{serverDid:t,serverVersion:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}=window.env,s={api:cl,restApi:km,prefix:zt.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix:Iht,getSessionInHeader:()=>({}),ws:{getWsClient:jne,create:Hne,useSubscription:eI},type:"service",info:{did:t,version:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}};return K.jsx($ht,{value:{node:s},children:e})}function omt(){const{node:e}=W.useContext(tI);return e}const Jne=W.createContext({}),{Provider:kht,Consumer:smt}=Jne;function Dht({children:e}){const{did:t}=window.env,[n,r]=W.useState([]),[i,a]=W.useState({total:0,pageSize:10,pageCount:0,page:1}),[o,s]=W.useState(!1),l=async({page:c=1}={})=>{if(!o){s(!0);try{const d=await cl.getBlockletNotifications({input:{paging:{page:c},teamDid:t}});r(d.list),a(d.paging),s(!1)}catch(d){_i.error(d.message),s(!1)}}};W.useEffect(()=>{l()},[]),eI(zt.EVENTS.NOTIFICATION_BLOCKLET_CREATE,c=>{r(d=>[c,...d||[]])});const f={loading:o,refresh:l,data:n||[],paging:i,api:cl};return K.jsx(kht,{value:{notifications:f},children:e})}function lmt(){const{notifications:e}=W.useContext(Jne);return e}const Lht=W.lazy(()=>rn(()=>import("./login-05AF3rUX.js"),__vite__mapDeps([0,1,2]))),Oht=W.lazy(()=>rn(()=>import("./connect-iXFYp-0V.js"),__vite__mapDeps([3,4,1,5]))),Pht=W.lazy(()=>rn(()=>import("./exchange-passport-1R-azVMk.js"),__vite__mapDeps([6,5,7]))),Mht=W.lazy(()=>rn(()=>import("./issue-passport--ANeRPcP.js"),__vite__mapDeps([8,9,5,7,1]))),Nht=W.lazy(()=>rn(()=>import("./lost-passport-0uO9Guj6.js"),__vite__mapDeps([10,9,11,12,7,1,13,14]))),Bht=W.lazy(()=>rn(()=>import("./start-_dD57MgC.js"),__vite__mapDeps([15,16,12,17,18,19]))),Fht=W.lazy(()=>rn(()=>import("./setup-yyKjCHgl.js").then(e=>e.s),__vite__mapDeps([20,21,22,23,18,19,17,24,4,25]))),Uht=W.lazy(()=>rn(()=>import("./invite-U7HV2bOf.js"),__vite__mapDeps([26,27,1,28,9,7]))),Hht=W.lazy(()=>rn(()=>import("./transfer-jfS_LJKL.js"),__vite__mapDeps([29,9,18,19]))),jht=W.lazy(()=>rn(()=>import("./dashboard-5KQ5Ur-Q.js").then(e=>e.o),__vite__mapDeps([30,31,32,33,28,34,35,36,37,38,39,40,16,41,42,43,44,45,13,46,24,4,25,47,48,49,19,50,51,52,53,54,23,55]))),vH=W.lazy(()=>rn(()=>import("./user-7RZ8cZci.js"),__vite__mapDeps([56,57,47,51,52,53,48,49,19,13,58,31,12,59,4,60,61,38,43,44,55,62,63,64,65,66,39]))),Jht=W.lazy(()=>rn(()=>import("./home-0It-dY_Q.js"),__vite__mapDeps([67,68,50,51,52,53,54,23,47]))),Vht=W.lazy(()=>rn(()=>import("./preferences-VK9P9jKD.js"),__vite__mapDeps([69,70,50,51,52,53,54,23,68,47]))),qht=W.lazy(()=>rn(()=>import("./localization-vCyo8i6n.js"),__vite__mapDeps([71,68,50,51,52,53,54,23,47]))),Ght=W.lazy(()=>rn(()=>import("./add-resource-6vlgGZkJ.js"),__vite__mapDeps([72,73,74,75,21,22,23,46,76,77,78,79,11,80,64,63,44,65,62,81,82,25,83,84,36,37,38,39,49,85,86,87,58,28,12,14,88,35,89,90,91,92,47,93,94,66,95,96,97,24,4,98,53,41,99]))),bH=W.lazy(()=>rn(()=>import("./publish-resource-sQE_SSQq.js"),__vite__mapDeps([100,101,40,102,103,87,55,43,44,63,45,65,36,37,38,39,62,64,31,104,54,105,106,84,94,93,34,12,107,13,35,28,66,108,91,82,4,53,109,25]))),Wht=W.lazy(()=>rn(()=>import("./index-d8x_hsVZ.js"),__vite__mapDeps([]))),zht=W.lazy(()=>rn(()=>import("./unsubscribe-dTRW-kgU.js"),__vite__mapDeps([110,111])));function Kht(){const e=Us();W.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${e.pathname}${e.search}`)},[e]);const t=K.jsx(Qd,{children:K.jsx(j1,{})});return K.jsx(W.Suspense,{fallback:t,children:K.jsxs(w_,{children:[K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:K.jsx(Nht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:K.jsx(Mht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:K.jsx(Lht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:K.jsx(Oht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:K.jsx(Pht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:K.jsx(Uht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:K.jsx(Hht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:K.jsx(Jht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:K.jsx(Vht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:K.jsx(qht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:K.jsx(bc,{children:K.jsx(Bht,{})})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:K.jsx(N0,{mode:"setup",children:K.jsx(Fht,{})})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:K.jsx(zht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:K.jsx(bc,{roles:["*"],children:K.jsx(vH,{})})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:K.jsx(bc,{roles:["*"],children:K.jsx(vH,{})})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:K.jsx(yH,{children:K.jsx(Dht,{children:K.jsx(bc,{roles:["owner","admin","member"],children:K.jsx(N0,{mode:"dashboard",children:K.jsx(jht,{})})})})})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:K.jsx(dV,{to:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:K.jsx(yH,{children:K.jsx(bc,{roles:["owner","admin"],children:K.jsx(N0,{mode:"dashboard",children:K.jsxs(w_,{children:[K.jsx(wr,{path:"publish",element:K.jsx(bH,{})}),K.jsx(wr,{path:"publish/*",element:K.jsx(bH,{})}),K.jsx(wr,{path:"add",element:K.jsx(Ght,{})}),K.jsx(wr,{path:"*",element:K.jsx(Wht,{})})]})})})})})]})})}function Yht(){return K.jsx(ehe,{basename:Zte,children:K.jsx(uZe,{children:K.jsx(Kht,{})})})}const Zht=HJ(document.getElementById("app"));Zht.render(K.jsx(Yht,{}));const Xht=zt.WELLKNOWN_SERVICE_PATH_PREFIX;{async function e(){const{register:t}=await rn(()=>import("./index-7SG8bi1h.js"),__vite__mapDeps([]));t(`${Xht}/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{co as $,yf as A,yt as B,Qd as C,kE as D,OG as E,F3 as F,s1 as G,jq as H,MSe as I,qt as J,ff as K,rhe as L,cf as M,ea as N,c2e as O,ve as P,rn as Q,emt as R,j1 as S,$i as T,Fq as U,km as V,Rnt as W,cl as X,ert as Y,Ox as Z,lm as _,Iu as a,Xbe as a$,X1t as a0,Q1t as a1,j5 as a2,k1t as a3,mp as a4,qnt as a5,Fu as a6,V1 as a7,rmt as a8,imt as a9,en as aA,xt as aB,cr as aC,on as aD,De as aE,Kc as aF,an as aG,xr as aH,H_ as aI,k8 as aJ,kp as aK,tm as aL,ZZ as aM,XZ as aN,D8 as aO,C8 as aP,vX as aQ,rm as aR,Mt as aS,Lxe as aT,Vb as aU,b8 as aV,srt as aW,X0t as aX,Znt as aY,znt as aZ,c1t as a_,mke as aa,uhe as ab,IS as ac,Z1t as ad,Y1t as ae,mlt as af,Zte as ag,yH as ah,w_ as ai,wr as aj,dV as ak,Ab as al,AE as am,s1t as an,r1t as ao,i1t as ap,pke as aq,UR as ar,Yi as as,sxe as at,d8 as au,Us as av,Ps as aw,zR as ax,nr as ay,tr as az,kq as b,h8 as b$,Xx as b0,y3 as b1,Xnt as b2,U1t as b3,t1t as b4,P1t as b5,u1t as b6,H1t as b7,O0 as b8,eI as b9,Au as bA,SC as bB,lr as bC,u1 as bD,bb as bE,ir as bF,Rl as bG,Wr as bH,Yn as bI,Cb as bJ,VR as bK,qR as bL,W0t as bM,eX as bN,e8 as bO,hJe as bP,Ii as bQ,$0t as bR,I0t as bS,y0 as bT,mn as bU,c8 as bV,sm as bW,e0t as bX,fx as bY,Dq as bZ,Mq as b_,Dx as ba,L0e as bb,I0e as bc,Kp as bd,D1t as be,Rq as bf,S1t as bg,J1 as bh,l1t as bi,Ube as bj,Snt as bk,as as bl,Rbe as bm,C1t as bn,xb as bo,Vx as bp,lmt as bq,omt as br,HZ as bs,j1t as bt,jne as bu,Ape as bv,br as bw,m1 as bx,Oa as by,Fi as bz,Ln as c,Zb as c$,kY as c0,hhe as c1,gq as c2,KV as c3,Bf as c4,ei as c5,vx as c6,Ru as c7,hl as c8,mi as c9,yb as cA,e2e as cB,n2e as cC,__ as cD,AV as cE,bx as cF,db as cG,rme as cH,$l as cI,u0t as cJ,VV as cK,Eo as cL,l0t as cM,GV as cN,YV as cO,F1 as cP,P0t as cQ,Ege as cR,rq as cS,H0t as cT,Y0t as cU,Z0t as cV,TC as cW,D1 as cX,Tge as cY,Gc as cZ,g0t as c_,go as ca,Ez as cb,zc as cc,l5 as cd,of as ce,et as cf,V1t as cg,ZC as ch,tq as ci,R0t as cj,UV as ck,eq as cl,FV as cm,Ml as cn,fge as co,rc as cp,E2e as cq,A0t as cr,S0t as cs,YL as ct,_0t as cu,XV as cv,Oq as cw,L2e as cx,Lq as cy,gb as cz,LX as d,i0t as d$,yke as d0,i5 as d1,zb as d2,Kb as d3,ap as d4,ri as d5,pme as d6,Ft as d7,v1t as d8,A1t as d9,dnt as dA,F1t as dB,Jb as dC,gWe as dD,CWe as dE,GX as dF,E8 as dG,K$e as dH,Qnt as dI,trt as dJ,Ux as dK,hq as dL,QC as dM,ume as dN,aR as dO,oye as dP,UF as dQ,qb as dR,Vq as dS,Bbe as dT,QL as dU,XL as dV,Lbe as dW,x0t as dX,Kt as dY,o0t as dZ,a0t as d_,PW as da,d1t as db,_1t as dc,R1t as dd,VWe as de,Ea as df,J1t as dg,MC as dh,F_ as di,vke as dj,HJ as dk,_nt as dl,Ynt as dm,M1t as dn,Unt as dp,I1t as dq,T1t as dr,oF as ds,D0t as dt,Wnt as du,Ant as dv,w1t as dw,LE as dx,Kte as dy,hlt as dz,I2 as e,o8 as e$,s0t as e0,p8 as e1,oR as e2,df as e3,im as e4,EVe as e5,mG as e6,VZ as e7,Uq as e8,Tl as e9,gge as eA,f0t as eB,sye as eC,E0t as eD,$ye as eE,Iye as eF,Pye as eG,T0t as eH,jn as eI,D3e as eJ,Hg as eK,Z3e as eL,Qbe as eM,Ph as eN,oEe as eO,ml as eP,g0e as eQ,eJe as eR,Vnt as eS,K1t as eT,wee as eU,nU as eV,ii as eW,p1t as eX,YZ as eY,a8 as eZ,Vwe as e_,x1t as ea,V0e as eb,gme as ec,i1e as ed,z0e as ee,H1 as ef,p0t as eg,h0t as eh,cme as ei,d0t as ej,c0t as ek,fb as el,U1 as em,EL as en,sme as eo,Wc as ep,jme as eq,m0t as er,Il as es,QV as et,zme as eu,lme as ev,k_ as ew,ime as ex,wme as ey,mb as ez,$t as f,Qge as f$,Ntt as f0,l8 as f1,ju as f2,n1t as f3,XC as f4,a1t as f5,h1t as f6,$1t as f7,O1t as f8,lrt as f9,r0t as fA,tz as fB,UG as fC,o1t as fD,m0e as fE,sz as fF,R8 as fG,oGe as fH,h$e as fI,gz as fJ,u$ as fK,c$ as fL,gp as fM,K0t as fN,t5 as fO,e1t as fP,F0t as fQ,L1t as fR,aF as fS,_3 as fT,M0t as fU,wIe as fV,D_ as fW,Q0t as fX,y0t as fY,tge as fZ,b0t as f_,irt as fa,Pr as fb,YQ as fc,rz as fd,Qht as fe,m1t as ff,y1t as fg,G1t as fh,Ex as fi,E1t as fj,Wee as fk,zte as fl,f1t as fm,g1t as fn,N0t as fo,b1t as fp,rrt as fq,art as fr,wnt as fs,xnt as ft,eW as fu,$E as fv,NZ as fw,c3 as fx,q2 as fy,yq as fz,X1 as g,z3e as g0,tbe as g1,w0t as g2,Hbe as g3,C0t as g4,n0t as g5,YC as g6,hb as g7,Xge as g8,nve as g9,XA as ga,v0t as gb,dhe as gc,Bg as gd,Knt as ge,Gnt as gf,nrt as gg,qQ as gh,Gge as gi,wb as gj,jb as gk,Uu as gl,Ige as gm,JE as gn,wWe as go,m8 as gp,ske as gq,O0t as gr,L0t as gs,nz as gt,LW as gu,dX as gv,aY as gw,N1t as gx,$q as gy,TDe as gz,om as h,ji as i,K as j,LC as k,Wp as l,gm as m,_i as n,z1t as o,DG as p,t0t as q,W as r,W1t as s,gl as t,Bb as u,un as v,zt as w,ZWe as x,DY as y,lZe as z};
1436
+ 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}],uht=[{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}]}],cht={queryType:aht,mutationType:oht,subscriptionType:sht,types:lht,directives:uht},fht=Gte,dht=cht;let pht=class extends fht{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 dht}_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 hht=pht;const mht=dX,ght=hht;class yht extends ght{_getSocketOptions(){return{}}_getEventImplementation(){return mht}}var vht=yht;const bht=Mt(vht),Eht=(window.env?window.env.apiPrefix:"/")||"/",cl=new bht(()=>`${Eht}/api/gql?locale=${K_()}`.replace(/\/+/g,"/").trim());function Tht({wsClient:e,event:t,cb:n=()=>{},deps:r=[]}){W.useEffect(()=>{const i=e&&(!r.length||r.every(Boolean));return i&&e.on(t,n),()=>{i&&e.off(t,n)}},r)}let Oc;function Hne(){const e=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),t=`//${window.location.host}${e}/admin`;return new ER.WsClient(t,{heartbeatIntervalMs:100*1e3,params:()=>({token:Pr.get("login_token")})})}function jne(){return Oc||(Oc=Hne()),Oc}const eI=(e,t=()=>{},n=[])=>{e=`${window.blocklet.did}/${e}`;const{session:r}=LX();!Oc&&r.user&&(Oc=jne(),Oc.connect()),Tht({wsClient:Oc,event:e,cb:t,deps:n})};let C6=null;const Aht=async()=>{try{return(await km.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},wht=()=>(C6||(C6=Aht()),C6),{Provider:Sht,Consumer:nmt}=YR,_ht=e=>e&&Au(e,"settings.publicToStore")?e.settings.publicToStore:!1,xht=(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},Cht=(()=>{const e={endpoint:"",data:{}};return async t=>{if(e.endpoint===t)return e.data;const r=await zte(t).getConfig();return e.endpoint=t,e.data=r,r}})(),{did:rd,appId:Rht}=window.env;function N0({children:e,mode:t}){const[n,r]=W.useState(null),[i,a]=W.useState(!1),[o,s]=W.useState(),[l,f]=W.useState({}),[c,d]=W.useState(),[p,y]=W.useState(),g=t==="setup",{loading:T,loadingRuntimeInfo:C,error:A,blocklet:I,recommendedDomain:D,runtimeHistory:M,actions:{refreshBlocklet:J,refreshDomainStatus:j,setBlocklet:V}}=mrt({did:rd,client:cl,useSubscription:eI,getIP:wht,useLocaleContext:Bb}),X=async()=>{try{a(!0),r(null);const{data:h}=await km.get("/blocklet/meta");f(h),a(!1)}catch(h){a(!1),r(h),_i.error(h.message)}},re=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:b,value:S,address:R}=l.requirements.fuels[0],$=xht(b,I),x=S;let _=S;const v={endpoint:$,symbol:"",need:x,current:0,owe:Number(x)>0};try{const B=zte($),{config:q}=await Cht($),ie=JSON.parse(q).token;let ce=R;ce||(ce=ie.address),y({address:ie.address,symbol:ie.symbol,decimal:ie.decimal});const{getAccountState:{state:he},getTokenState:{state:Se}}=await B.doBatchQuery({getAccountState:{address:Rht},getTokenState:{address:ce}});Se&&(v.symbol=Se.symbol);const U=((he==null?void 0:he.tokens)||[]).find(O=>O.address===ce);if(U){const O=ii.fromTokenToUnit(x,U.decimal||18);v.current=ii.fromUnitToToken(U.value,U.decimal||18),v.owe=O.gt(new ii.BN(U.value)),_=Math.max(0,ii.fromUnitToToken(O.sub(new ii.BN(U.value)),U.decimal||18))}}catch(B){h&&_i.error(B.message)}return d({...v,deficiency:_}),v},le=async({configs:h,childDid:b})=>(await cl.configBlocklet({input:{did:[rd].concat(b).filter(Boolean),configs:h}}),J()),ee=async h=>{const{blocklet:b}=await cl.updateWhoCanAccess({input:{did:[rd],whoCanAccess:h}});V(b)},P=async h=>{const{blocklet:b}=await cl.configPublicToStore({input:{did:rd,publicToStore:h}});V(b)},E=async h=>{const{blocklet:b}=await cl.configNavigations({input:{did:rd,navigations:h}});V(b)};W.useEffect(()=>{g&&X(),J({showError:!1})},[]),W.useEffect(()=>{if(!I||!(I!=null&&I.controller))return;const{controller:h}=I;Rnt(h.chainHost,h.nftId).then(b=>{b.expirationDate=j5.getNftExpirationDate(b),b.expired=j5.isNFTExpired(b),s(b)}).catch(b=>console.error(b))},[I==null?void 0:I.appPid]);const u={loading:i||T,loadingRuntimeInfo:C,error:n||A,blocklet:I,did:rd,recommendedDomain:D,runtimeHistory:M,appIdList:I?Cee(I):[],env:window.blocklet||{},meta:l,gas:c,tokenInfo:p,getPublicInstance:_ht,nftState:o,client:cl,mode:t,actions:{refreshBlocklet:J,refreshDomainStatus:j,setBlocklet:V,refreshMeta:X,refreshFuel:re,configBlocklet:le,configWhoCanAccess:ee,configPublicToStore:P,configNavigations:E}};return K.jsx(Sht,{value:u,children:e})}N0.propTypes={children:ve.any,mode:ve.oneOf(["dashboard","setup"]).isRequired};N0.defaultProps={children:null};function rmt(){return W.useContext(YR)}const tI=W.createContext({});function imt(){const{node:e}=W.useContext(tI);return{...e,inService:e.type==="service",inDaemon:e.type==="daemon"}}const{Provider:$ht,Consumer:amt}=tI,Iht=`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function yH({children:e}){const{serverDid:t,serverVersion:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}=window.env,s={api:cl,restApi:km,prefix:zt.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix:Iht,getSessionInHeader:()=>({}),ws:{getWsClient:jne,create:Hne,useSubscription:eI},type:"service",info:{did:t,version:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}};return K.jsx($ht,{value:{node:s},children:e})}function omt(){const{node:e}=W.useContext(tI);return e}const Jne=W.createContext({}),{Provider:kht,Consumer:smt}=Jne;function Dht({children:e}){const{did:t}=window.env,[n,r]=W.useState([]),[i,a]=W.useState({total:0,pageSize:10,pageCount:0,page:1}),[o,s]=W.useState(!1),l=async({page:c=1}={})=>{if(!o){s(!0);try{const d=await cl.getBlockletNotifications({input:{paging:{page:c},teamDid:t}});r(d.list),a(d.paging),s(!1)}catch(d){_i.error(d.message),s(!1)}}};W.useEffect(()=>{l()},[]),eI(zt.EVENTS.NOTIFICATION_BLOCKLET_CREATE,c=>{r(d=>[c,...d||[]])});const f={loading:o,refresh:l,data:n||[],paging:i,api:cl};return K.jsx(kht,{value:{notifications:f},children:e})}function lmt(){const{notifications:e}=W.useContext(Jne);return e}const Lht=W.lazy(()=>rn(()=>import("./login-7XksV0rI.js"),__vite__mapDeps([0,1,2]))),Oht=W.lazy(()=>rn(()=>import("./connect-tamQdAs3.js"),__vite__mapDeps([3,4,1,5]))),Pht=W.lazy(()=>rn(()=>import("./exchange-passport-T-h-OnRN.js"),__vite__mapDeps([6,5,7]))),Mht=W.lazy(()=>rn(()=>import("./issue-passport-Z7ofkA6K.js"),__vite__mapDeps([8,9,5,7,1]))),Nht=W.lazy(()=>rn(()=>import("./lost-passport-cJF6p-67.js"),__vite__mapDeps([10,9,11,12,7,1,13,14]))),Bht=W.lazy(()=>rn(()=>import("./start-uztJSUel.js"),__vite__mapDeps([15,16,12,17,18,19]))),Fht=W.lazy(()=>rn(()=>import("./setup-vcogg-M1.js").then(e=>e.s),__vite__mapDeps([20,21,22,23,18,19,17,24,4,25]))),Uht=W.lazy(()=>rn(()=>import("./invite-EUhwRkSk.js"),__vite__mapDeps([26,27,1,28,9,7]))),Hht=W.lazy(()=>rn(()=>import("./transfer-3Gc3ycMl.js"),__vite__mapDeps([29,9,18,19]))),jht=W.lazy(()=>rn(()=>import("./dashboard-wLNTNF45.js").then(e=>e.o),__vite__mapDeps([30,31,32,33,28,34,35,36,37,38,39,40,16,41,42,43,44,45,13,46,24,4,25,47,48,49,19,50,51,52,53,54,23,55]))),vH=W.lazy(()=>rn(()=>import("./user-waJ6JIkq.js"),__vite__mapDeps([56,57,47,51,52,53,48,49,19,13,58,31,12,59,4,60,61,38,43,44,55,62,63,64,65,66,39]))),Jht=W.lazy(()=>rn(()=>import("./home-Po2ga9wZ.js"),__vite__mapDeps([67,68,50,51,52,53,54,23,47]))),Vht=W.lazy(()=>rn(()=>import("./preferences-d-eWeFvi.js"),__vite__mapDeps([69,70,50,51,52,53,54,23,68,47]))),qht=W.lazy(()=>rn(()=>import("./localization-cO5MmVsH.js"),__vite__mapDeps([71,68,50,51,52,53,54,23,47]))),Ght=W.lazy(()=>rn(()=>import("./add-resource-iCbxZ67X.js"),__vite__mapDeps([72,73,74,75,21,22,23,46,76,77,78,79,11,80,64,63,44,65,62,81,82,25,83,84,36,37,38,39,49,85,86,87,58,28,12,14,88,35,89,90,91,92,47,93,94,66,95,96,97,24,4,98,53,41,99]))),bH=W.lazy(()=>rn(()=>import("./publish-resource-4G2Mwb1d.js"),__vite__mapDeps([100,101,40,102,103,87,55,43,44,63,45,65,36,37,38,39,62,64,31,104,54,105,106,84,94,93,34,12,107,13,35,28,66,108,91,82,4,53,109,25]))),Wht=W.lazy(()=>rn(()=>import("./index-4MBFFo4b.js"),__vite__mapDeps([]))),zht=W.lazy(()=>rn(()=>import("./unsubscribe-XLKaVY1Y.js"),__vite__mapDeps([110,111])));function Kht(){const e=Us();W.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${e.pathname}${e.search}`)},[e]);const t=K.jsx(Qd,{children:K.jsx(j1,{})});return K.jsx(W.Suspense,{fallback:t,children:K.jsxs(w_,{children:[K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:K.jsx(Nht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:K.jsx(Mht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:K.jsx(Lht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:K.jsx(Oht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:K.jsx(Pht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:K.jsx(Uht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:K.jsx(Hht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:K.jsx(Jht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:K.jsx(Vht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:K.jsx(qht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:K.jsx(bc,{children:K.jsx(Bht,{})})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:K.jsx(N0,{mode:"setup",children:K.jsx(Fht,{})})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:K.jsx(zht,{})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:K.jsx(bc,{roles:["*"],children:K.jsx(vH,{})})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:K.jsx(bc,{roles:["*"],children:K.jsx(vH,{})})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:K.jsx(yH,{children:K.jsx(Dht,{children:K.jsx(bc,{roles:["owner","admin","member"],children:K.jsx(N0,{mode:"dashboard",children:K.jsx(jht,{})})})})})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:K.jsx(dV,{to:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),K.jsx(wr,{path:`${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:K.jsx(yH,{children:K.jsx(bc,{roles:["owner","admin"],children:K.jsx(N0,{mode:"dashboard",children:K.jsxs(w_,{children:[K.jsx(wr,{path:"publish",element:K.jsx(bH,{})}),K.jsx(wr,{path:"publish/*",element:K.jsx(bH,{})}),K.jsx(wr,{path:"add",element:K.jsx(Ght,{})}),K.jsx(wr,{path:"*",element:K.jsx(Wht,{})})]})})})})})]})})}function Yht(){return K.jsx(ehe,{basename:Zte,children:K.jsx(uZe,{children:K.jsx(Kht,{})})})}const Zht=HJ(document.getElementById("app"));Zht.render(K.jsx(Yht,{}));const Xht=zt.WELLKNOWN_SERVICE_PATH_PREFIX;{async function e(){const{register:t}=await rn(()=>import("./index-7SG8bi1h.js"),__vite__mapDeps([]));t(`${Xht}/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{co as $,yf as A,yt as B,Qd as C,kE as D,OG as E,F3 as F,s1 as G,jq as H,MSe as I,qt as J,ff as K,rhe as L,cf as M,ea as N,c2e as O,ve as P,rn as Q,emt as R,j1 as S,$i as T,Fq as U,km as V,Rnt as W,cl as X,ert as Y,Ox as Z,lm as _,Iu as a,Xbe as a$,X1t as a0,Q1t as a1,j5 as a2,k1t as a3,mp as a4,qnt as a5,Fu as a6,V1 as a7,rmt as a8,imt as a9,en as aA,xt as aB,cr as aC,on as aD,De as aE,Kc as aF,an as aG,xr as aH,H_ as aI,k8 as aJ,kp as aK,tm as aL,ZZ as aM,XZ as aN,D8 as aO,C8 as aP,vX as aQ,rm as aR,Mt as aS,Lxe as aT,Vb as aU,b8 as aV,srt as aW,X0t as aX,Znt as aY,znt as aZ,c1t as a_,mke as aa,uhe as ab,IS as ac,Z1t as ad,Y1t as ae,mlt as af,Zte as ag,yH as ah,w_ as ai,wr as aj,dV as ak,Ab as al,AE as am,s1t as an,r1t as ao,i1t as ap,pke as aq,UR as ar,Yi as as,sxe as at,d8 as au,Us as av,Ps as aw,zR as ax,nr as ay,tr as az,kq as b,h8 as b$,Xx as b0,y3 as b1,Xnt as b2,U1t as b3,t1t as b4,P1t as b5,u1t as b6,H1t as b7,O0 as b8,eI as b9,Au as bA,SC as bB,lr as bC,u1 as bD,bb as bE,ir as bF,Rl as bG,Wr as bH,Yn as bI,Cb as bJ,VR as bK,qR as bL,W0t as bM,eX as bN,e8 as bO,hJe as bP,Ii as bQ,$0t as bR,I0t as bS,y0 as bT,mn as bU,c8 as bV,sm as bW,e0t as bX,fx as bY,Dq as bZ,Mq as b_,Dx as ba,L0e as bb,I0e as bc,Kp as bd,D1t as be,Rq as bf,S1t as bg,J1 as bh,l1t as bi,Ube as bj,Snt as bk,as as bl,Rbe as bm,C1t as bn,xb as bo,Vx as bp,lmt as bq,omt as br,HZ as bs,j1t as bt,jne as bu,Ape as bv,br as bw,m1 as bx,Oa as by,Fi as bz,Ln as c,Zb as c$,kY as c0,hhe as c1,gq as c2,KV as c3,Bf as c4,ei as c5,vx as c6,Ru as c7,hl as c8,mi as c9,yb as cA,e2e as cB,n2e as cC,__ as cD,AV as cE,bx as cF,db as cG,rme as cH,$l as cI,u0t as cJ,VV as cK,Eo as cL,l0t as cM,GV as cN,YV as cO,F1 as cP,P0t as cQ,Ege as cR,rq as cS,H0t as cT,Y0t as cU,Z0t as cV,TC as cW,D1 as cX,Tge as cY,Gc as cZ,g0t as c_,go as ca,Ez as cb,zc as cc,l5 as cd,of as ce,et as cf,V1t as cg,ZC as ch,tq as ci,R0t as cj,UV as ck,eq as cl,FV as cm,Ml as cn,fge as co,rc as cp,E2e as cq,A0t as cr,S0t as cs,YL as ct,_0t as cu,XV as cv,Oq as cw,L2e as cx,Lq as cy,gb as cz,LX as d,i0t as d$,yke as d0,i5 as d1,zb as d2,Kb as d3,ap as d4,ri as d5,pme as d6,Ft as d7,v1t as d8,A1t as d9,dnt as dA,F1t as dB,Jb as dC,gWe as dD,CWe as dE,GX as dF,E8 as dG,K$e as dH,Qnt as dI,trt as dJ,Ux as dK,hq as dL,QC as dM,ume as dN,aR as dO,oye as dP,UF as dQ,qb as dR,Vq as dS,Bbe as dT,QL as dU,XL as dV,Lbe as dW,x0t as dX,Kt as dY,o0t as dZ,a0t as d_,PW as da,d1t as db,_1t as dc,R1t as dd,VWe as de,Ea as df,J1t as dg,MC as dh,F_ as di,vke as dj,HJ as dk,_nt as dl,Ynt as dm,M1t as dn,Unt as dp,I1t as dq,T1t as dr,oF as ds,D0t as dt,Wnt as du,Ant as dv,w1t as dw,LE as dx,Kte as dy,hlt as dz,I2 as e,o8 as e$,s0t as e0,p8 as e1,oR as e2,df as e3,im as e4,EVe as e5,mG as e6,VZ as e7,Uq as e8,Tl as e9,gge as eA,f0t as eB,sye as eC,E0t as eD,$ye as eE,Iye as eF,Pye as eG,T0t as eH,jn as eI,D3e as eJ,Hg as eK,Z3e as eL,Qbe as eM,Ph as eN,oEe as eO,ml as eP,g0e as eQ,eJe as eR,Vnt as eS,K1t as eT,wee as eU,nU as eV,ii as eW,p1t as eX,YZ as eY,a8 as eZ,Vwe as e_,x1t as ea,V0e as eb,gme as ec,i1e as ed,z0e as ee,H1 as ef,p0t as eg,h0t as eh,cme as ei,d0t as ej,c0t as ek,fb as el,U1 as em,EL as en,sme as eo,Wc as ep,jme as eq,m0t as er,Il as es,QV as et,zme as eu,lme as ev,k_ as ew,ime as ex,wme as ey,mb as ez,$t as f,b0t as f$,Ntt as f0,l8 as f1,ju as f2,n1t as f3,gz as f4,cnt as f5,XC as f6,a1t as f7,h1t as f8,$1t as f9,q2 as fA,yq as fB,r0t as fC,tz as fD,UG as fE,o1t as fF,m0e as fG,sz as fH,R8 as fI,oGe as fJ,h$e as fK,u$ as fL,c$ as fM,gp as fN,K0t as fO,t5 as fP,e1t as fQ,F0t as fR,L1t as fS,aF as fT,_3 as fU,M0t as fV,wIe as fW,D_ as fX,Q0t as fY,y0t as fZ,tge as f_,O1t as fa,lrt as fb,irt as fc,Pr as fd,YQ as fe,rz as ff,Qht as fg,m1t as fh,y1t as fi,G1t as fj,Ex as fk,E1t as fl,Wee as fm,zte as fn,f1t as fo,g1t as fp,N0t as fq,b1t as fr,rrt as fs,art as ft,wnt as fu,xnt as fv,eW as fw,$E as fx,NZ as fy,c3 as fz,X1 as g,Qge as g0,z3e as g1,tbe as g2,w0t as g3,Hbe as g4,C0t as g5,n0t as g6,YC as g7,hb as g8,Xge as g9,TDe as gA,nve as ga,XA as gb,v0t as gc,dhe as gd,Bg as ge,Knt as gf,Gnt as gg,nrt as gh,qQ as gi,Gge as gj,wb as gk,jb as gl,Uu as gm,Ige as gn,JE as go,wWe as gp,m8 as gq,ske as gr,O0t as gs,L0t as gt,nz as gu,LW as gv,dX as gw,aY as gx,N1t as gy,$q as gz,om as h,ji as i,K as j,LC as k,Wp as l,gm as m,_i as n,z1t as o,DG as p,t0t as q,W as r,W1t as s,gl as t,Bb as u,un as v,zt as w,ZWe as x,DY as y,lZe as z};
1437
1437
  function __vite__mapDeps(indexes) {
1438
1438
  if (!__vite__mapDeps.viteFileDeps) {
1439
- __vite__mapDeps.viteFileDeps = ["assets/login-05AF3rUX.js","assets/use-passport-id-pXgWCnyq.js","assets/LaunchOutlined-XOhr4FLd.js","assets/connect-iXFYp-0V.js","assets/index-FKI4Ry1a.js","assets/fullpage-NJyn5uuM.js","assets/exchange-passport-1R-azVMk.js","assets/wrap-locale-A7IdT91x.js","assets/issue-passport--ANeRPcP.js","assets/CheckCircle-_9dSYOvH.js","assets/lost-passport-0uO9Guj6.js","assets/Done-FhqUT9hq.js","assets/did-address-5kO4ybvH.js","assets/Avatar-jwVmwAdK.js","assets/Stepper-5Hb9COkE.js","assets/start-_dD57MgC.js","assets/PlayArrow-ZBpW76Bk.js","assets/ServerLogo-vGEnqfsW.js","assets/addon-1k5Qtdur.js","assets/selector-r-EEnzvL.js","assets/setup-yyKjCHgl.js","assets/index-vU8oFfNB.js","assets/Skeleton-JafD3Ykz.js","assets/Hidden-V9GBUhSY.js","assets/spaces-3IB4aUW-.js","assets/api-JcbF2ZX8.js","assets/invite-U7HV2bOf.js","assets/index-6Ubs0JHb.js","assets/session-otHGC7d2.js","assets/transfer-jfS_LJKL.js","assets/dashboard-5KQ5Ur-Q.js","assets/index-bZ3vw6Xd.js","assets/permission-sTjN-J07.js","assets/useAsync-Dmz5YLn0.js","assets/MoreVert-glDwWv1Q.js","assets/useLocalStorage-aRRflkTR.js","assets/confirm-IbJOM7N5.js","assets/DialogContentText-4V6Sm4oF.js","assets/Alert-cCkZfPX9.js","assets/format-error-fstt_Fgi.js","assets/useSetState-a6nBCmZL.js","assets/ButtonGroup-VMcij_v9.js","assets/RadioGroup-auvSkCcq.js","assets/FormControlLabel-1hNnMean.js","assets/useFormControl-mI0MPYsh.js","assets/FormGroup-7d3FZFIj.js","assets/index-lDqI9_-C.js","assets/fallback-ZY6DEOHk.js","assets/wallet-hidden-topbar-fLm2f0hp.js","assets/ListItem-wpvL3uzC.js","assets/index-5ZG2oxzS.js","assets/nav-menu-_j09OYoV.js","assets/MoreHoriz-KVrwkgt7.js","assets/ExpandMore-dUKN4QRy.js","assets/Toolbar-PzPFhxha.js","assets/Checkbox-1a8RFsS4.js","assets/user-7RZ8cZci.js","assets/index-FjIp0UlP.js","assets/index-BptLF0Yu.js","assets/did-utils-N2ScOA2Z.js","assets/index.esm-MvqHB13x.js","assets/confirm-K5PhyaSE.js","assets/Select-wrtQaiA7.js","assets/FormControl-21-o3Ons.js","assets/TextField-F6GRkv0f.js","assets/InputLabel-5mwp9YPR.js","assets/InputAdornment--qKRyOTU.js","assets/home-0It-dY_Q.js","assets/studio-HE-dnqpB.js","assets/preferences-VK9P9jKD.js","assets/iframe-s-BtzLfM.js","assets/localization-vCyo8i6n.js","assets/add-resource-6vlgGZkJ.js","assets/add-component-core-pThuc3SC.js","assets/uniqBy-VUHiGwLF.js","assets/page-header-LWFGDoxM.js","assets/lottie-GIsmz4wu.js","assets/launch-result-message-TcQH4jpT.js","assets/index-MReLu9-n.js","assets/EditIcon-np_ORzEB.js","assets/Google-VkSesQr-.js","assets/logo-uploader-e3Of5exH.js","assets/index-qpETE7Qh.js","assets/jss-plugin-props-sort.esm-HmYxbLE7.js","assets/toPropertyKey-NzAT2yhV.js","assets/util-rU2tRtqs.js","assets/index-CVik65v1.js","assets/TableRow-iLylb6bH.js","assets/ArrowDropDown-Oh-T-P-J.js","assets/Add-HY80r9Xl.js","assets/Launch-NG3M5y72.js","assets/DeleteOutline-8lAl_yeQ.js","assets/click-to-copy-7zmc8KM7.js","assets/Search-b15PzLFw.js","assets/Grid-EWzEHkzI.js","assets/preact.module-yJdvQMHZ.js","assets/content-layout-tLfWld_B.js","assets/use-blocklet-info-for-connect-did-spaces-0kF4SQU7.js","assets/index-QDdzoXvu.js","assets/add-component-core-wegghUnI.css","assets/publish-resource-sQE_SSQq.js","assets/index-ibSCib5c.js","assets/index-gKtAtARS.js","assets/FilterList--9H9DyuC.js","assets/LastPage-pSqTT0C0.js","assets/index-oY9Vc1OW.js","assets/redux-XOuz_cVf.js","assets/ChevronRight-DuewvW-I.js","assets/Download-tyWSwX6I.js","assets/OpenInNew-gFVniujG.js","assets/unsubscribe-dTRW-kgU.js","assets/CardContent-56wHk5L-.js"]
1439
+ __vite__mapDeps.viteFileDeps = ["assets/login-7XksV0rI.js","assets/use-passport-id-pXgWCnyq.js","assets/LaunchOutlined-WAN0Led7.js","assets/connect-tamQdAs3.js","assets/index-KswRO1Cx.js","assets/fullpage-JCH-m3GS.js","assets/exchange-passport-T-h-OnRN.js","assets/wrap-locale-eKtYETDv.js","assets/issue-passport-Z7ofkA6K.js","assets/CheckCircle-htlybHjr.js","assets/lost-passport-cJF6p-67.js","assets/Done-ApQZxhfW.js","assets/did-address-fR8IBME6.js","assets/Avatar-4W2iSGC-.js","assets/Stepper-V9gE9w3-.js","assets/start-uztJSUel.js","assets/PlayArrow-DsCR1WAD.js","assets/ServerLogo-RRmp6mc-.js","assets/addon-7yjXaIX_.js","assets/selector-ykYLL3HG.js","assets/setup-vcogg-M1.js","assets/index-nNJj_XhL.js","assets/Skeleton-bmmJmS0u.js","assets/Hidden-SKwxA9k1.js","assets/spaces-ciJpOZGt.js","assets/api-Rgr2QdHb.js","assets/invite-EUhwRkSk.js","assets/index-GG6_BZrf.js","assets/session-4pK31v9z.js","assets/transfer-3Gc3ycMl.js","assets/dashboard-wLNTNF45.js","assets/index-FT9kP6qN.js","assets/permission-K-J3su8S.js","assets/useAsync-eueWQMQv.js","assets/MoreVert-b_wUncc4.js","assets/useLocalStorage--e-ZnzAS.js","assets/confirm-Q5y49s7X.js","assets/DialogContentText-2StByoPg.js","assets/Alert-nav821gk.js","assets/format-error-iCYgDtF5.js","assets/useSetState-FhUMbwgE.js","assets/ButtonGroup-qjjm6C6u.js","assets/RadioGroup-MeoNWf5B.js","assets/FormControlLabel-Yzi0VkLB.js","assets/useFormControl-egCRc-oY.js","assets/FormGroup-6byJTUh5.js","assets/index-_typwRVC.js","assets/fallback-wCdaTD2t.js","assets/wallet-hidden-topbar-4xE3Zmur.js","assets/ListItem-kYIyq9wN.js","assets/index-nXJuMgJq.js","assets/nav-menu-2LU_iiMs.js","assets/MoreHoriz-1QS3N81v.js","assets/ExpandMore-JmnmUnd8.js","assets/Toolbar-z-FYIGbv.js","assets/Checkbox-iS0aPWS5.js","assets/user-waJ6JIkq.js","assets/index-C7hr4YV8.js","assets/index-GsSFMKbP.js","assets/did-utils-LIvwQDYN.js","assets/index.esm-xVa55Zup.js","assets/confirm-yusCbmM9.js","assets/Select-1vnu6Wod.js","assets/FormControl-U_6qW76h.js","assets/TextField-HfFRez76.js","assets/InputLabel-qtx_TKpe.js","assets/InputAdornment-iwL7P_Vm.js","assets/home-Po2ga9wZ.js","assets/studio--sQ-x80O.js","assets/preferences-d-eWeFvi.js","assets/iframe-5bCtjLAp.js","assets/localization-cO5MmVsH.js","assets/add-resource-iCbxZ67X.js","assets/add-component-core-cwUA8ONY.js","assets/uniqBy-k-IuKA35.js","assets/page-header-CBzxlYad.js","assets/lottie-2uuZhpDU.js","assets/launch-result-message-E79l1MGN.js","assets/index-nBzqT-lu.js","assets/EditIcon-CEHYlrp-.js","assets/Google-0MAQRWrd.js","assets/logo-uploader-enkwnhCD.js","assets/index-NURviigq.js","assets/jss-plugin-props-sort.esm-NWykbogG.js","assets/toPropertyKey-NzAT2yhV.js","assets/util-ScgYi65n.js","assets/index-R3dXtQXo.js","assets/TableRow-7b-DLFKT.js","assets/ArrowDropDown-HzxvBXz1.js","assets/Add-fjbSIcnc.js","assets/Launch-gJCQmpyL.js","assets/DeleteOutline-QxqDOFWu.js","assets/click-to-copy-H2O9ZAs8.js","assets/Search-pq50dDMP.js","assets/Grid-G2b-U3nu.js","assets/preact.module-yJdvQMHZ.js","assets/content-layout-P9P08qyU.js","assets/use-blocklet-info-for-connect-did-spaces-3Ylh35kg.js","assets/index-q4YuEk6Y.js","assets/add-component-core-wegghUnI.css","assets/publish-resource-4G2Mwb1d.js","assets/index-8qpwDSzw.js","assets/index-hnUD7mNC.js","assets/FilterList-rU96K2al.js","assets/LastPage-pHa4HGK_.js","assets/index-3kUoZ2Ef.js","assets/redux-XOuz_cVf.js","assets/ChevronRight-7cKIhy5z.js","assets/Download-eudDXSjG.js","assets/OpenInNew-cyQNIeON.js","assets/unsubscribe-XLKaVY1Y.js","assets/CardContent-hsa9cKyn.js"]
1440
1440
  }
1441
1441
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
1442
1442
  }