@abtnode/blocklet-services 1.16.27-beta-aa9c2977 → 1.16.27-beta-43a3bbb2

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 (169) hide show
  1. package/api/libs/connect/session.js +12 -3
  2. package/dist/assets/{Add-DWPkhR7c.js → Add-CkUvZ8ne.js} +1 -1
  3. package/dist/assets/{AddBox-BjX9Z2uj.js → AddBox-CYLniHTg.js} +1 -1
  4. package/dist/assets/{Alert-D5YfCoUW.js → Alert-DSAK-6uk.js} +1 -1
  5. package/dist/assets/{ArrowDropDown-BdjbdLb6.js → ArrowDropDown-eEIvnybw.js} +1 -1
  6. package/dist/assets/{Avatar-isxOT3tA.js → Avatar-6cyEgEIs.js} +1 -1
  7. package/dist/assets/{ButtonGroup-DPL_1wz3.js → ButtonGroup-CbL72-oE.js} +1 -1
  8. package/dist/assets/{CheckCircle-8mrK7i0B.js → CheckCircle-CCtR5Xg1.js} +1 -1
  9. package/dist/assets/{ChevronRight-DNv1gZKn.js → ChevronRight-D4XRflu9.js} +1 -1
  10. package/dist/assets/{CloseOutlined-DoNA2OX4.js → CloseOutlined-Cpeesg_y.js} +1 -1
  11. package/dist/assets/{Delete-0zNQNl-n.js → Delete-FnPlSebw.js} +1 -1
  12. package/dist/assets/{DeleteOutline-CR22pWuT.js → DeleteOutline-DeZPaQ1S.js} +1 -1
  13. package/dist/assets/{Done-hH5-N5v0.js → Done-DMoT8ohA.js} +1 -1
  14. package/dist/assets/{Download-kFyuuqiT.js → Download-MLK9k-QI.js} +1 -1
  15. package/dist/assets/{Edit-DGi8qwHM.js → Edit-DS1Mq3Qj.js} +1 -1
  16. package/dist/assets/{EditIcon-BTer7WGq.js → EditIcon-_ZF4_H7O.js} +1 -1
  17. package/dist/assets/{Error-Mcb_XNeI.js → Error-CNGdEO62.js} +1 -1
  18. package/dist/assets/{ExpandMore-BgFo69Uu.js → ExpandMore-BLVLjrZd.js} +1 -1
  19. package/dist/assets/{FilterList-D37rH1lX.js → FilterList-rsX_pJAI.js} +1 -1
  20. package/dist/assets/{FormControl-FOGVkAoE.js → FormControl-BGBxSpFa.js} +1 -1
  21. package/dist/assets/{FormControlLabel-C2ynx6-R.js → FormControlLabel-D8u6upQ1.js} +1 -1
  22. package/dist/assets/{FormGroup-C8bxvRCn.js → FormGroup-B459wuGu.js} +1 -1
  23. package/dist/assets/{Google-B0xyZx_J.js → Google-BTJavqUA.js} +1 -1
  24. package/dist/assets/{Grid-yCxJQYxc.js → Grid-D5J6kvn0.js} +1 -1
  25. package/dist/assets/{Hidden-BUue-5gv.js → Hidden-Bq2dXlPY.js} +1 -1
  26. package/dist/assets/{InfoOutlined-BFaZfobd.js → InfoOutlined-D1P8n7sX.js} +1 -1
  27. package/dist/assets/{InputAdornment-DUA05h7f.js → InputAdornment-jSW0lrBI.js} +1 -1
  28. package/dist/assets/{InputLabel-D30LulZb.js → InputLabel-D4si6vrM.js} +1 -1
  29. package/dist/assets/{LastPage-Bsc_HsDo.js → LastPage-B7zYSdUl.js} +1 -1
  30. package/dist/assets/{Launch-H3e02OgF.js → Launch-SkQPO1Cm.js} +1 -1
  31. package/dist/assets/{LaunchOutlined-DNUOXpqM.js → LaunchOutlined-eC9MCH8e.js} +1 -1
  32. package/dist/assets/{Link-BXzMp1xg.js → Link-DpjXpC6x.js} +1 -1
  33. package/dist/assets/{ListItemText-e5ekg1wb.js → ListItemText-CVS1G1s8.js} +1 -1
  34. package/dist/assets/{LockIcon-BRSKZc9o.js → LockIcon-BbYgfgXm.js} +1 -1
  35. package/dist/assets/{Loop-CWFhlQjS.js → Loop-BsAnzeYJ.js} +1 -1
  36. package/dist/assets/{MoreHoriz-BUMFUhwJ.js → MoreHoriz-DtO97ZT3.js} +1 -1
  37. package/dist/assets/{MoreVert-BlfI-m1v.js → MoreVert-BbEIKsYw.js} +1 -1
  38. package/dist/assets/{OpenInNew-DvfZ3_35.js → OpenInNew-B1iaT2eN.js} +1 -1
  39. package/dist/assets/{Pagination-Bfb8zZCL.js → Pagination-DwyeABpM.js} +1 -1
  40. package/dist/assets/{PlayArrow-Nl_H1UBL.js → PlayArrow-C7kIbjaf.js} +1 -1
  41. package/dist/assets/{RadioGroup-DeoyugEj.js → RadioGroup-DiqmtEFh.js} +1 -1
  42. package/dist/assets/{Search-BVORi6f0.js → Search-Cjqsb3on.js} +1 -1
  43. package/dist/assets/{Select-DeWWNQVN.js → Select-hmsiR_HX.js} +1 -1
  44. package/dist/assets/{ServerLogo-CV1h1XOP.js → ServerLogo-D5qdDd4G.js} +1 -1
  45. package/dist/assets/{Skeleton-VINmMOpD.js → Skeleton-BuWYKZPB.js} +1 -1
  46. package/dist/assets/{Slider-N26z0sGm.js → Slider-DetOb1T0.js} +1 -1
  47. package/dist/assets/{Stepper-ComI9dBA.js → Stepper-BXkIeY17.js} +1 -1
  48. package/dist/assets/{TableRow-M2pFTiJl.js → TableRow-DSPkF0eX.js} +1 -1
  49. package/dist/assets/{TextField-CLOKo8rr.js → TextField-CebHGT3J.js} +1 -1
  50. package/dist/assets/{Toolbar-CoiO3etm.js → Toolbar-Bjp831p7.js} +1 -1
  51. package/dist/assets/{ViewList-BrbecVug.js → ViewList-DOozyS6f.js} +1 -1
  52. package/dist/assets/{access-control-C2cqYXUQ.js → access-control-Dl0vyv1s.js} +1 -1
  53. package/dist/assets/{actions-DyCrUvyK.js → actions-CxX91LLq.js} +1 -1
  54. package/dist/assets/{add-component-core-DoRXeX-w.js → add-component-core-Bzv7N-Un.js} +1 -1
  55. package/dist/assets/add-resource-C6SMzogG.js +1 -0
  56. package/dist/assets/{addon-BBtelOiC.js → addon-HBcPW1Xp.js} +1 -1
  57. package/dist/assets/{analytics-D8MDZMbX.js → analytics-BtlQhyh7.js} +1 -1
  58. package/dist/assets/api-sAuPzOF6.js +1 -0
  59. package/dist/assets/{audit-logs-jozrzJUr.js → audit-logs-BAcaHWVK.js} +1 -1
  60. package/dist/assets/{button-CI-oFf7d.js → button-pUiVMawE.js} +1 -1
  61. package/dist/assets/{click-to-copy-9gHOXiDu.js → click-to-copy-BepxNu11.js} +1 -1
  62. package/dist/assets/{complete-aAfV5RH9.js → complete-smm50XPQ.js} +1 -1
  63. package/dist/assets/{component-Bs-IQqJC.js → component-bFEpkQ2Z.js} +1 -1
  64. package/dist/assets/{config-DMnGG-GJ.js → config-DW9gTUAf.js} +1 -1
  65. package/dist/assets/{config-ebXdghGN.js → config-jV7-yCc5.js} +1 -1
  66. package/dist/assets/{config-navigation-DS6DN5tQ.js → config-navigation-CtD1VQtq.js} +1 -1
  67. package/dist/assets/{config-space-D1Y6KkQv.js → config-space-B6jPcEh3.js} +1 -1
  68. package/dist/assets/{confirm-B3mdFD--.js → confirm-Cv8oxTtx.js} +1 -1
  69. package/dist/assets/{connect-DrV6NO8b.js → connect-BkABc5e9.js} +1 -1
  70. package/dist/assets/{connect-CmJVbU43.js → connect-DInxHa0g.js} +1 -1
  71. package/dist/assets/{connect-to-CQCEiCCI.js → connect-to-BFFR-hu4.js} +1 -1
  72. package/dist/assets/{content-layout-D8kIZCKQ.js → content-layout-D4_5Ol4a.js} +1 -1
  73. package/dist/assets/{dashboard-DQ4ngxOJ.js → dashboard-D_A_KYtx.js} +3 -3
  74. package/dist/assets/{did-address-D8Z_pYLU.js → did-address-BKaFzmkz.js} +1 -1
  75. package/dist/assets/{domain-NZNiqcv3.js → domain-EaFE1hEt.js} +1 -1
  76. package/dist/assets/{domain-list-B0zVqUne.js → domain-list-DbawBpg2.js} +1 -1
  77. package/dist/assets/{exchange-passport-C4mP-9HH.js → exchange-passport-Bb9jxKJg.js} +1 -1
  78. package/dist/assets/{fallback-BMS2ZyNw.js → fallback-BrnkKdFy.js} +1 -1
  79. package/dist/assets/{fuel-C6kRWSpP.js → fuel-XE5N0qRF.js} +1 -1
  80. package/dist/assets/{fullpage-BKnA5p29.js → fullpage-D8hlUpG8.js} +1 -1
  81. package/dist/assets/{home-D5bBAzrV.js → home-RpZEfl3g.js} +1 -1
  82. package/dist/assets/{iframe-COqXiy5h.js → iframe-CFCNJ5tP.js} +1 -1
  83. package/dist/assets/{index-Dmhy_Ear.js → index-3brZtWZ9.js} +1 -1
  84. package/dist/assets/{index-DhBpZKlv.js → index-B5c-C1vn.js} +1 -1
  85. package/dist/assets/{index-DLbZ_JZr.js → index-B_hqIPlg.js} +1 -1
  86. package/dist/assets/{index-BViVYSQ1.js → index-BfeaSLaW.js} +1 -1
  87. package/dist/assets/{index-Bggpk5vn.js → index-C5w04FB_.js} +1 -1
  88. package/dist/assets/{index-CGGlwLvN.js → index-CAl1tFNE.js} +1 -1
  89. package/dist/assets/{index-Ctp5CUSN.js → index-CHtMZbHk.js} +1 -1
  90. package/dist/assets/{index-CJsfi4dA.js → index-CPMqUyRS.js} +1 -1
  91. package/dist/assets/{index-pDpS4wtg.js → index-CdqltrPb.js} +1 -1
  92. package/dist/assets/{index-DCy8FR-g.js → index-ChfbTLYd.js} +1 -1
  93. package/dist/assets/{index-BTsP4qi4.js → index-CtDBvr1Q.js} +3 -3
  94. package/dist/assets/{index-nVrcEkAx.js → index-CwpOap00.js} +1 -1
  95. package/dist/assets/{index-DRKjEemf.js → index-D3pN0lCt.js} +1 -1
  96. package/dist/assets/{index-Cmhf1ahn.js → index-D5eD8XJz.js} +1 -1
  97. package/dist/assets/{index-BT5FnniW.js → index-D6RSvNSn.js} +1 -1
  98. package/dist/assets/{index-BRZA9I2v.js → index-D6iVBQb2.js} +1 -1
  99. package/dist/assets/{index-CPnYs_Ln.js → index-D8noUWUC.js} +1 -1
  100. package/dist/assets/{index-DN1AldP1.js → index-DBnR7IpU.js} +1 -1
  101. package/dist/assets/{index-Dnjq7L3Z.js → index-DMLGvPCM.js} +1 -1
  102. package/dist/assets/{index-CWJA5SaB.js → index-DNMd4Dac.js} +1 -1
  103. package/dist/assets/{index-AKJaR9ia.js → index-D_ysrxYq.js} +3 -3
  104. package/dist/assets/{index-_QTdMI-0.js → index-Dh7JA33-.js} +1 -1
  105. package/dist/assets/{index-BCCq9_Ig.js → index-DlqvRRPO.js} +1 -1
  106. package/dist/assets/{index-CuZN5rgD.js → index-DmzTP_a0.js} +1 -1
  107. package/dist/assets/{index-DfGed4IO.js → index-DrNjQoSO.js} +1 -1
  108. package/dist/assets/{index-Do5sTIF0.js → index-DwHEm9HC.js} +1 -1
  109. package/dist/assets/{index-BeplF-8F.js → index-ZsDQ0ZLD.js} +1 -1
  110. package/dist/assets/{index-CIQ9hzkz.js → index-bBRdRgYN.js} +1 -1
  111. package/dist/assets/{index-ByQRo8Xy.js → index-fG25goIy.js} +4 -4
  112. package/dist/assets/{index-RP6u2JcN.js → index-sr139pC0.js} +1 -1
  113. package/dist/assets/{index.es-D8GMZhbX.js → index.es-C3322V-z.js} +1 -1
  114. package/dist/assets/{index.esm-CPLyPsEX.js → index.esm-6YbQ5Xmm.js} +1 -1
  115. package/dist/assets/{info-outline-rounded-Co0YkUeY.js → info-outline-rounded-D7wKMY9w.js} +1 -1
  116. package/dist/assets/{invitation-D_-jPAXO.js → invitation-LN6puB5A.js} +1 -1
  117. package/dist/assets/{invite-iyotQadP.js → invite-DG9H2Iba.js} +1 -1
  118. package/dist/assets/{issue-passport-BvKYs7bh.js → issue-passport-Bdq9kbMM.js} +1 -1
  119. package/dist/assets/{item-glU9YOhe.js → item-bwoWUlt2.js} +1 -1
  120. package/dist/assets/{jss-plugin-props-sort.esm-Cck9yaTo.js → jss-plugin-props-sort.esm-w0rgdWJs.js} +1 -1
  121. package/dist/assets/{launch-result-message-BVtC_IiO.js → launch-result-message-D5ZsOjgY.js} +1 -1
  122. package/dist/assets/{layout-DKfygYsQ.js → layout-h5rjnmBP.js} +1 -1
  123. package/dist/assets/{list-header-DqXEZJxg.js → list-header-DVDeNCcp.js} +1 -1
  124. package/dist/assets/localization-BYhlULmq.js +1 -0
  125. package/dist/assets/{log-BxpRSoBS.js → log-WkhWt2QZ.js} +1 -1
  126. package/dist/assets/{login-CZkpmrO2.js → login-BSuT77Wh.js} +1 -1
  127. package/dist/assets/{login-oauth-callback-Cyh1oNk-.js → login-oauth-callback-CQlWtNf7.js} +1 -1
  128. package/dist/assets/{logo-uploader-Qe4fSMre.js → logo-uploader-DZbF5KOt.js} +3 -3
  129. package/dist/assets/{lost-passport-PftHNz1-.js → lost-passport-yVMXzR1w.js} +3 -3
  130. package/dist/assets/{lottie-AQzixJ8T.js → lottie-DRoeX_V2.js} +1 -1
  131. package/dist/assets/{notifications-CuLpCibe.js → notifications-Bs8gH_Rc.js} +1 -1
  132. package/dist/assets/{overview-D-s5mNXr.js → overview-BtkTCsvo.js} +1 -1
  133. package/dist/assets/{page-header-H2fMhHk4.js → page-header-B22lXwng.js} +1 -1
  134. package/dist/assets/{permission-CZsnNTVZ.js → permission-C9iOC8zT.js} +1 -1
  135. package/dist/assets/{preferences-BlS-FVDW.js → preferences-BfZm39fz.js} +1 -1
  136. package/dist/assets/publish-resource-D8qngMjX.js +1 -0
  137. package/dist/assets/{react-iADoo1z8.js → react-FdGZpLIJ.js} +3 -3
  138. package/dist/assets/{redux-ChkYhsNh.js → redux-DTC_Jkdb.js} +1 -1
  139. package/dist/assets/{selector-CqvONJVH.js → selector-DBqg7pjs.js} +1 -1
  140. package/dist/assets/session-BRLUzB_V.js +1 -0
  141. package/dist/assets/{setup-BvEzJzmk.js → setup-DSA4pIg-.js} +3 -3
  142. package/dist/assets/{slicedToArray-Bc7bSR7A.js → slicedToArray-DkIYLQKw.js} +1 -1
  143. package/dist/assets/{spaces-9alAi49r.js → spaces-XGQ-YXCR.js} +1 -1
  144. package/dist/assets/{start-D02qA9U-.js → start-QP4aPp-U.js} +1 -1
  145. package/dist/assets/{step-actions-Do8z_g9W.js → step-actions-CSDiPZmH.js} +1 -1
  146. package/dist/assets/{studio-z9437wlc.js → studio-CbYn5e_F.js} +1 -1
  147. package/dist/assets/{switch-control-C87yjmRR.js → switch-control-Djddi9nC.js} +1 -1
  148. package/dist/assets/{toUpper-B0fLjeHy.js → toUpper-BD8ypjwq.js} +1 -1
  149. package/dist/assets/{transfer-DdS4kBmB.js → transfer-DE81ajwE.js} +1 -1
  150. package/dist/assets/{uniqBy-B_wbSsCI.js → uniqBy-BnSlopG4.js} +1 -1
  151. package/dist/assets/{unsubscribe-B_fGdHJO.js → unsubscribe-DRfe4T8a.js} +1 -1
  152. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-BoWcj6lQ.js → use-blocklet-info-for-connect-did-spaces-6A-Z6p1J.js} +1 -1
  153. package/dist/assets/{useAsync-vQc8FFGm.js → useAsync-QgQb6KwU.js} +1 -1
  154. package/dist/assets/{useFormControl-BVamiUiv.js → useFormControl-C1fGK9Rc.js} +1 -1
  155. package/dist/assets/{useLocalStorage-BupvKFw0.js → useLocalStorage-Ba50FLbS.js} +1 -1
  156. package/dist/assets/{useSetState-B4GQTE_e.js → useSetState-GffjrhKI.js} +1 -1
  157. package/dist/assets/{useSlot-BO5miOj3.js → useSlot-fHevRUkf.js} +1 -1
  158. package/dist/assets/{user-center-C0G3ba3x.js → user-center-i4kFtCbT.js} +1 -1
  159. package/dist/assets/{user-sessions-CV5jkPWE.js → user-sessions-IlcyV7kJ.js} +1 -1
  160. package/dist/assets/{util-Cn17RU6M.js → util-DPyJsqCR.js} +1 -1
  161. package/dist/assets/{wrap-locale-CIiBTX7X.js → wrap-locale-uy_hreR6.js} +1 -1
  162. package/dist/index.html +1 -1
  163. package/dist/service-worker.js +1 -1
  164. package/package.json +24 -24
  165. package/dist/assets/add-resource-QkjPtdbT.js +0 -1
  166. package/dist/assets/api-Cf224rl9.js +0 -1
  167. package/dist/assets/localization-CY8nt2G9.js +0 -1
  168. package/dist/assets/publish-resource-C2QIe-xk.js +0 -1
  169. package/dist/assets/session-D1eiA1_r.js +0 -1
@@ -1,4 +1,4 @@
1
- import{P as e,j as o,c1 as i,c8 as a,a0 as l}from"./index-ByQRo8Xy.js";function n({title:r,desc:t,retryFunc:s}){return o.jsxs(p,{role:"alert",children:[o.jsx("h3",{children:r}),o.jsx("pre",{children:t}),s&&o.jsx(l,{variant:"contained",color:"error",size:"small",onClick:s,children:"Try again"})]})}n.propTypes={title:e.string,desc:e.string.isRequired,retryFunc:e.func};n.defaultProps={title:"Something went wrong...",retryFunc:null};function c({error:r}){return o.jsx(n,{desc:r.message})}c.propTypes={error:e.instanceOf(Error).isRequired};e.instanceOf(Error).isRequired,e.func.isRequired;const p=i("div")`
1
+ import{P as e,j as o,c1 as i,c8 as a,a0 as l}from"./index-fG25goIy.js";function n({title:r,desc:t,retryFunc:s}){return o.jsxs(p,{role:"alert",children:[o.jsx("h3",{children:r}),o.jsx("pre",{children:t}),s&&o.jsx(l,{variant:"contained",color:"error",size:"small",onClick:s,children:"Try again"})]})}n.propTypes={title:e.string,desc:e.string.isRequired,retryFunc:e.func};n.defaultProps={title:"Something went wrong...",retryFunc:null};function c({error:r}){return o.jsx(n,{desc:r.message})}c.propTypes={error:e.instanceOf(Error).isRequired};e.instanceOf(Error).isRequired,e.func.isRequired;const p=i("div")`
2
2
  padding: 16px;
3
3
  border: 2px solid ${r=>r.theme.palette.error.main};
4
4
  border-radius: 4px;
@@ -1,4 +1,4 @@
1
- import{r as l,$ as N,af as P,d as W,j as e,B as t,S as v,c as E,F as $,P as p,Y as I}from"./index-ByQRo8Xy.js";import{d as D}from"./Launch-H3e02OgF.js";import{W as F}from"./did-address-D8Z_pYLU.js";import{P as L}from"./page-header-H2fMhHk4.js";import{S as T}from"./layout-DKfygYsQ.js";import{S as z}from"./step-actions-Do8z_g9W.js";import{S as u}from"./button-CI-oFf7d.js";import{E as A}from"./Link-BXzMp1xg.js";import"./content-layout-D8kIZCKQ.js";function m({onNext:n,onPrevious:f}){const{locale:x,t:s}=l.useContext(N),{blocklet:a,gas:c,tokenInfo:h,actions:j}=P(),{api:y}=W(),[g,o]=l.useState(!1),{need:d="",current:S="",owe:r=99999,deficiency:k,symbol:b="",endpoint:i}=c||{},{origin:C="/"}=i?new URL(i):{};l.useEffect(()=>{const B=setInterval(()=>{j.refreshFuel()},2e3);return()=>{clearInterval(B)}},[]);const w=()=>{o(!1)};return c?e.jsxs(q,{children:[e.jsx("div",{className:"header",children:e.jsx(L,{title:s("setup.fuel.title"),onClickBack:f})}),e.jsxs(t,{className:"qr-body",children:[e.jsxs(t,{mb:6,className:"tip",children:[s("setup.fuel.tipStart").replace("slot",""),e.jsx("span",{className:"amount",children:`${d} ${b}`}),s("setup.fuel.tipEnd")]}),e.jsx(t,{fontSize:16,fontWeight:"fontWeightBold",mb:.5,children:s("setup.fuel.addressTitle")}),e.jsxs(t,{display:"flex",alignItems:"center",children:[e.jsx(F,{className:"address",did:a.appDid}),e.jsx(A,{style:{lineHeight:1},target:"_blank",href:E(C,"/explorer/accounts/",a.appDid),underline:"hover",children:e.jsx(D,{className:"icon-launch"})})]}),e.jsx(t,{my:2,children:e.jsx(u,{color:"primary",onClick:()=>o(!0),disabled:!r,children:s("setup.fuel.fuelApp")})}),e.jsx($,{popup:!0,open:g,action:"fuel",checkFn:y.get,checkTimeout:10*60*1e3,onSuccess:w,onClose:()=>o(!1),locale:x,messages:{title:s("setup.connect.title"),scan:s("setup.connect.scan"),confirm:s("setup.connect.confirm"),success:s("setup.connect.success")},extraParams:{amount:k,...h,endpoint:i}}),e.jsxs(t,{display:"flex",color:"text.secondary",children:[e.jsxs(t,{display:"flex",children:[e.jsxs(t,{children:[s("setup.fuel.need"),":"]}),e.jsx(t,{ml:.5,color:"primary.main",fontWeight:"fontWeightBold",children:d})]}),e.jsxs(t,{display:"flex",ml:3,children:[e.jsxs(t,{children:[s("setup.fuel.current"),":"]}),e.jsx(t,{ml:.5,color:r>0?"error.main":"primary.main",fontWeight:"fontWeightBold",children:S})]})]})]}),e.jsx(z,{mt:8,children:e.jsx(u,{disabled:r>0,onClick:()=>n(),children:s("setup.next")})})]}):e.jsx(t,{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",children:e.jsx(v,{})})}m.propTypes={onNext:p.func,onPrevious:p.func};m.defaultProps={onNext:()=>{},onPrevious:()=>{}};const q=I(T)`
1
+ import{r as l,$ as N,af as P,d as W,j as e,B as t,S as v,c as E,F as $,P as p,Y as I}from"./index-fG25goIy.js";import{d as D}from"./Launch-SkQPO1Cm.js";import{W as F}from"./did-address-BKaFzmkz.js";import{P as L}from"./page-header-B22lXwng.js";import{S as T}from"./layout-h5rjnmBP.js";import{S as z}from"./step-actions-CSDiPZmH.js";import{S as u}from"./button-pUiVMawE.js";import{E as A}from"./Link-DpjXpC6x.js";import"./content-layout-D4_5Ol4a.js";function m({onNext:n,onPrevious:f}){const{locale:x,t:s}=l.useContext(N),{blocklet:a,gas:c,tokenInfo:h,actions:j}=P(),{api:y}=W(),[g,o]=l.useState(!1),{need:d="",current:S="",owe:r=99999,deficiency:k,symbol:b="",endpoint:i}=c||{},{origin:C="/"}=i?new URL(i):{};l.useEffect(()=>{const B=setInterval(()=>{j.refreshFuel()},2e3);return()=>{clearInterval(B)}},[]);const w=()=>{o(!1)};return c?e.jsxs(q,{children:[e.jsx("div",{className:"header",children:e.jsx(L,{title:s("setup.fuel.title"),onClickBack:f})}),e.jsxs(t,{className:"qr-body",children:[e.jsxs(t,{mb:6,className:"tip",children:[s("setup.fuel.tipStart").replace("slot",""),e.jsx("span",{className:"amount",children:`${d} ${b}`}),s("setup.fuel.tipEnd")]}),e.jsx(t,{fontSize:16,fontWeight:"fontWeightBold",mb:.5,children:s("setup.fuel.addressTitle")}),e.jsxs(t,{display:"flex",alignItems:"center",children:[e.jsx(F,{className:"address",did:a.appDid}),e.jsx(A,{style:{lineHeight:1},target:"_blank",href:E(C,"/explorer/accounts/",a.appDid),underline:"hover",children:e.jsx(D,{className:"icon-launch"})})]}),e.jsx(t,{my:2,children:e.jsx(u,{color:"primary",onClick:()=>o(!0),disabled:!r,children:s("setup.fuel.fuelApp")})}),e.jsx($,{popup:!0,open:g,action:"fuel",checkFn:y.get,checkTimeout:10*60*1e3,onSuccess:w,onClose:()=>o(!1),locale:x,messages:{title:s("setup.connect.title"),scan:s("setup.connect.scan"),confirm:s("setup.connect.confirm"),success:s("setup.connect.success")},extraParams:{amount:k,...h,endpoint:i}}),e.jsxs(t,{display:"flex",color:"text.secondary",children:[e.jsxs(t,{display:"flex",children:[e.jsxs(t,{children:[s("setup.fuel.need"),":"]}),e.jsx(t,{ml:.5,color:"primary.main",fontWeight:"fontWeightBold",children:d})]}),e.jsxs(t,{display:"flex",ml:3,children:[e.jsxs(t,{children:[s("setup.fuel.current"),":"]}),e.jsx(t,{ml:.5,color:r>0?"error.main":"primary.main",fontWeight:"fontWeightBold",children:S})]})]})]}),e.jsx(z,{mt:8,children:e.jsx(u,{disabled:r>0,onClick:()=>n(),children:s("setup.next")})})]}):e.jsx(t,{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",children:e.jsx(v,{})})}m.propTypes={onNext:p.func,onPrevious:p.func};m.defaultProps={onNext:()=>{},onPrevious:()=>{}};const q=I(T)`
2
2
  .qr-body {
3
3
  width: 580px;
4
4
  ${n=>n.theme.breakpoints.down("md")} {
@@ -1 +1 @@
1
- import{j as e,T as x,P as t,J as v,B as r,A as w,K as a}from"./index-ByQRo8Xy.js";import{E as h}from"./Link-BXzMp1xg.js";function u({linkProps:o,...d}){return e.jsxs(x,{...d,children:["Powered by"," ",e.jsx(h,{href:"https://www.arcblock.io",target:"_blank",underline:"hover",...o,children:"ArcBlock"}),"'s"," ",e.jsx(h,{href:"https://www.blocklet.io",target:"_blank",underline:"hover",...o,children:"Blocklet Technology"}),", the decentralized web engine."]})}u.propTypes={linkProps:t.object};u.defaultProps={linkProps:{}};const k="/.well-known/service/static/assets/login-bg-Cbfh9Uc2.png";function j({did:o,children:d,title:l,description:c,logo:n,logoSize:g,appUrl:i}){var f,p,m,y;if(!o)return d;let s;try{s=v(o)}catch{console.warn("Invalid did:",o)}const b=(globalThis==null?void 0:globalThis.blocklet)||(globalThis==null?void 0:globalThis.env)||{};return l===void 0&&(l=b.appName),c===void 0&&(c=b.appDescription),n===void 0&&(n=((f=globalThis==null?void 0:globalThis.blocklet)==null?void 0:f.appLogoRect)||((p=globalThis==null?void 0:globalThis.blocklet)==null?void 0:p.appLogo)||""),typeof n=="string"&&(n?n=e.jsx(r,{sx:{height:g,maxHeight:g,maxWidth:"50%",objectFit:"contain"},component:"img",src:n}):n=e.jsx(w,{size:g,did:o,src:n,variant:"rounded"})),typeof i=="string"&&(i=((m=globalThis==null?void 0:globalThis.blocklet)==null?void 0:m.appUrl)||"",!i&&(globalThis!=null&&globalThis.env)&&(i=(y=globalThis==null?void 0:globalThis.env)==null?void 0:y.baseUrl)),e.jsxs(r,{sx:{width:"100vw",height:"100vh",display:"flex",backgroundColor:a.backgroundsBgSubtile},children:[e.jsxs(r,{sx:{position:"relative",fontSize:0,flex:30,display:{xs:"none",lg:"flex"},minWidth:"400px",backgroundColor:a.surfaceBgSubtitle},children:[e.jsx(r,{sx:{position:"absolute",top:0,bottom:0,left:0,right:0,background:s?`linear-gradient(0deg, ${s} 0%, ${s} 100%), url(${k}), lightgray 50% / cover no-repeat`:`url(${k}), lightgray 50% / cover no-repeat`,backgroundPosition:"center",backgroundSize:"cover",backgroundBlendMode:s?"soft-light, normal":"unset",mask:"linear-gradient(172deg, rgba(0, 0, 0, 0.0) 24.62%, rgba(0, 0, 0, 0.80) 44.47%, #000 100%)"}}),e.jsxs(r,{sx:{display:"flex",flexDirection:"column",position:"absolute",top:0,left:0,width:"100%",p:3},children:[i?e.jsx(r,{children:e.jsx(h,{href:i,underline:"none",color:"inherit",children:n})}):n,l&&e.jsx(x,{variant:"h5",sx:{mt:3,mb:1,p:0,mx:0,fontWeight:"bold"},children:i?e.jsx(h,{href:i,underline:"none",color:"inherit",children:l}):l}),c&&e.jsx(x,{variant:"body2",sx:{m:0,p:0,color:a.foregroundsFgSubtile,fontSize:"12px",lineHeight:"20px"},children:c})]}),e.jsx(u,{linkProps:{underline:"always",color:a.textSubtitle},sx:{zIndex:10,position:"absolute",bottom:40,left:20,right:20,textAlign:"center",fontSize:"12px",color:a.textSubtitle}})]}),e.jsx(r,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flex:70,maxWidth:{xs:"100%",md:"90%"},margin:"auto",height:"auto"},children:d})]})}j.propTypes={did:t.string.isRequired,children:t.any.isRequired,title:t.any,description:t.any,logo:t.any,logoSize:t.number,appUrl:t.string};j.defaultProps={title:void 0,description:void 0,logo:void 0,logoSize:40,appUrl:""};export{j as F};
1
+ import{j as e,T as x,P as t,J as v,B as r,A as w,K as a}from"./index-fG25goIy.js";import{E as h}from"./Link-DpjXpC6x.js";function u({linkProps:o,...d}){return e.jsxs(x,{...d,children:["Powered by"," ",e.jsx(h,{href:"https://www.arcblock.io",target:"_blank",underline:"hover",...o,children:"ArcBlock"}),"'s"," ",e.jsx(h,{href:"https://www.blocklet.io",target:"_blank",underline:"hover",...o,children:"Blocklet Technology"}),", the decentralized web engine."]})}u.propTypes={linkProps:t.object};u.defaultProps={linkProps:{}};const k="/.well-known/service/static/assets/login-bg-Cbfh9Uc2.png";function j({did:o,children:d,title:l,description:c,logo:n,logoSize:g,appUrl:i}){var f,p,m,y;if(!o)return d;let s;try{s=v(o)}catch{console.warn("Invalid did:",o)}const b=(globalThis==null?void 0:globalThis.blocklet)||(globalThis==null?void 0:globalThis.env)||{};return l===void 0&&(l=b.appName),c===void 0&&(c=b.appDescription),n===void 0&&(n=((f=globalThis==null?void 0:globalThis.blocklet)==null?void 0:f.appLogoRect)||((p=globalThis==null?void 0:globalThis.blocklet)==null?void 0:p.appLogo)||""),typeof n=="string"&&(n?n=e.jsx(r,{sx:{height:g,maxHeight:g,maxWidth:"50%",objectFit:"contain"},component:"img",src:n}):n=e.jsx(w,{size:g,did:o,src:n,variant:"rounded"})),typeof i=="string"&&(i=((m=globalThis==null?void 0:globalThis.blocklet)==null?void 0:m.appUrl)||"",!i&&(globalThis!=null&&globalThis.env)&&(i=(y=globalThis==null?void 0:globalThis.env)==null?void 0:y.baseUrl)),e.jsxs(r,{sx:{width:"100vw",height:"100vh",display:"flex",backgroundColor:a.backgroundsBgSubtile},children:[e.jsxs(r,{sx:{position:"relative",fontSize:0,flex:30,display:{xs:"none",lg:"flex"},minWidth:"400px",backgroundColor:a.surfaceBgSubtitle},children:[e.jsx(r,{sx:{position:"absolute",top:0,bottom:0,left:0,right:0,background:s?`linear-gradient(0deg, ${s} 0%, ${s} 100%), url(${k}), lightgray 50% / cover no-repeat`:`url(${k}), lightgray 50% / cover no-repeat`,backgroundPosition:"center",backgroundSize:"cover",backgroundBlendMode:s?"soft-light, normal":"unset",mask:"linear-gradient(172deg, rgba(0, 0, 0, 0.0) 24.62%, rgba(0, 0, 0, 0.80) 44.47%, #000 100%)"}}),e.jsxs(r,{sx:{display:"flex",flexDirection:"column",position:"absolute",top:0,left:0,width:"100%",p:3},children:[i?e.jsx(r,{children:e.jsx(h,{href:i,underline:"none",color:"inherit",children:n})}):n,l&&e.jsx(x,{variant:"h5",sx:{mt:3,mb:1,p:0,mx:0,fontWeight:"bold"},children:i?e.jsx(h,{href:i,underline:"none",color:"inherit",children:l}):l}),c&&e.jsx(x,{variant:"body2",sx:{m:0,p:0,color:a.foregroundsFgSubtile,fontSize:"12px",lineHeight:"20px"},children:c})]}),e.jsx(u,{linkProps:{underline:"always",color:a.textSubtitle},sx:{zIndex:10,position:"absolute",bottom:40,left:20,right:20,textAlign:"center",fontSize:"12px",color:a.textSubtitle}})]}),e.jsx(r,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flex:70,maxWidth:{xs:"100%",md:"90%"},margin:"auto",height:"auto"},children:d})]})}j.propTypes={did:t.string.isRequired,children:t.any.isRequired,title:t.any,description:t.any,logo:t.any,logoSize:t.number,appUrl:t.string};j.defaultProps={title:void 0,description:void 0,logo:void 0,logoSize:40,appUrl:""};export{j as F};
@@ -1 +1 @@
1
- import{j as o,B as e,a0 as t,L as r,x as i}from"./index-ByQRo8Xy.js";import{S as n}from"./studio-z9437wlc.js";import"./index-DN1AldP1.js";import"./Toolbar-CoiO3etm.js";import"./Hidden-BUue-5gv.js";import"./MoreHoriz-BUMFUhwJ.js";import"./ExpandMore-BgFo69Uu.js";import"./fallback-BMS2ZyNw.js";function x(){return o.jsx(n,{children:o.jsxs(e,{m:4,children:[o.jsx(t,{component:r,to:`${i.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,size:"large",color:"primary",variant:"outlined",children:"Preference Builder"}),o.jsx(t,{component:r,style:{marginLeft:16},to:`${i.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,size:"large",color:"primary",variant:"outlined",children:"Localization"})]})})}export{x as default};
1
+ import{j as o,B as e,a0 as t,L as r,x as i}from"./index-fG25goIy.js";import{S as n}from"./studio-CbYn5e_F.js";import"./index-DBnR7IpU.js";import"./Toolbar-Bjp831p7.js";import"./Hidden-Bq2dXlPY.js";import"./MoreHoriz-DtO97ZT3.js";import"./ExpandMore-BLVLjrZd.js";import"./fallback-BrnkKdFy.js";function x(){return o.jsx(n,{children:o.jsxs(e,{m:4,children:[o.jsx(t,{component:r,to:`${i.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,size:"large",color:"primary",variant:"outlined",children:"Preference Builder"}),o.jsx(t,{component:r,style:{marginLeft:16},to:`${i.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,size:"large",color:"primary",variant:"outlined",children:"Localization"})]})})}export{x as default};
@@ -1 +1 @@
1
- import{ex as q,ey as E}from"./index-ByQRo8Xy.js";const L=({url:r,allowFullScreen:o,position:a,display:u,height:i,width:y,overflow:c,styles:f,onLoad:p,onMouseOver:w,onMouseOut:b,scrolling:d,id:m,frameBorder:n,ariaHidden:O,sandbox:s,allow:j,className:g,title:h,ariaLabel:k,ariaLabelledby:I,name:P,target:v,loading:x,importance:A,referrerpolicy:F,allowpaymentrequest:M,src:S,key:$})=>{const t=q({src:S||r,target:v||null,style:{position:a||null,display:u||"initial",overflow:c||null},scrolling:d||null,allowpaymentrequest:M||null,importance:A||null,sandbox:s&&[...s].join(" ")||null,loading:x||null,styles:f||null,name:P||null,className:g||null,allowFullScreen:"allowFullScreen",referrerpolicy:F||null,title:h||null,allow:j||null,id:m||null,"aria-labelledby":I||null,"aria-hidden":O||null,"aria-label":k||null,width:y||null,height:i||null,onLoad:p||null,onMouseOver:w||null,onMouseOut:b||null,key:$||"iframe"});let l=Object.create(null);for(let e of Object.keys(t))t[e]!=null&&(l[e]=t[e]);for(let e of Object.keys(l.style))l.style[e]==null&&delete l.style[e];if(l.styles)for(let e of Object.keys(l.styles))l.styles.hasOwnProperty(e)&&(l.style[e]=l.styles[e]),Object.keys(l.styles).pop()==e&&delete l.styles;if(o)if("allow"in l){const e=l.allow.replace("fullscreen","");l.allow=`fullscreen ${e.trim()}`.trim()}else l.allow="fullscreen";return n>=0&&(l.style.hasOwnProperty("border")||(l.style.border=n)),E.createElement("iframe",Object.assign({},l))},R=L;export{R as I};
1
+ import{ex as q,ey as E}from"./index-fG25goIy.js";const L=({url:r,allowFullScreen:o,position:a,display:u,height:i,width:y,overflow:c,styles:f,onLoad:p,onMouseOver:w,onMouseOut:b,scrolling:d,id:m,frameBorder:n,ariaHidden:O,sandbox:s,allow:j,className:g,title:h,ariaLabel:k,ariaLabelledby:I,name:P,target:v,loading:x,importance:A,referrerpolicy:F,allowpaymentrequest:M,src:S,key:$})=>{const t=q({src:S||r,target:v||null,style:{position:a||null,display:u||"initial",overflow:c||null},scrolling:d||null,allowpaymentrequest:M||null,importance:A||null,sandbox:s&&[...s].join(" ")||null,loading:x||null,styles:f||null,name:P||null,className:g||null,allowFullScreen:"allowFullScreen",referrerpolicy:F||null,title:h||null,allow:j||null,id:m||null,"aria-labelledby":I||null,"aria-hidden":O||null,"aria-label":k||null,width:y||null,height:i||null,onLoad:p||null,onMouseOver:w||null,onMouseOut:b||null,key:$||"iframe"});let l=Object.create(null);for(let e of Object.keys(t))t[e]!=null&&(l[e]=t[e]);for(let e of Object.keys(l.style))l.style[e]==null&&delete l.style[e];if(l.styles)for(let e of Object.keys(l.styles))l.styles.hasOwnProperty(e)&&(l.style[e]=l.styles[e]),Object.keys(l.styles).pop()==e&&delete l.styles;if(o)if("allow"in l){const e=l.allow.replace("fullscreen","");l.allow=`fullscreen ${e.trim()}`.trim()}else l.allow="fullscreen";return n>=0&&(l.style.hasOwnProperty("border")||(l.style.border=n)),E.createElement("iframe",Object.assign({},l))},R=L;export{R as I};
@@ -1 +1 @@
1
- import{aA as vt,aB as mt,aC as D,cD as jt,aD as Ht,aF as p,r as d,aJ as St,aE as at,aH as N,j as u,aI as gt,ao as At,cy as ae,cE as Ot,cF as Dt,cG as Xt,aG as st,bm as ie,cH as ft,cI as ce,c1 as de,K as $,P as W}from"./index-ByQRo8Xy.js";let U;function _t(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ue(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(_t()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function be(t){return mt("MuiTab",t)}const pe=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),O=pe,fe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],he=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:b}=t,g={root:["root",a&&v&&"labelIcon",`textColor${Ht(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return gt(g,be,e)},ve=D(jt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${Ht(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>p({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${O.iconWrapper}`]:p({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${O.selected}`]:{opacity:1},[`&.${O.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${O.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${O.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${O.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${O.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),me=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:g="top",indicator:B,label:y,onChange:m,onClick:T,onFocus:L,selected:w,selectionFollowsFocus:x,textColor:X="inherit",value:R,wrapped:it=!1}=s,_=at(s,fe),V=p({},s,{disabled:a,disableFocusRipple:v,selected:w,icon:!!b,iconPosition:g,label:!!y,fullWidth:h,textColor:X,wrapped:it}),q=he(V),F=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:N(q.iconWrapper,b.props.className)}):b,tt=E=>{!w&&m&&m(E,R),T&&T(E)},K=E=>{x&&!w&&m&&m(E,R),L&&L(E)};return u.jsxs(ve,p({focusRipple:!v,className:N(q.root,n),ref:l,role:"tab","aria-selected":w,disabled:a,onClick:tt,onFocus:K,ownerState:V,tabIndex:w?0:-1},_,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[F,y]}):u.jsxs(d.Fragment,{children:[y,F]}),B]}))}),xt=me,Se=At(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ge=At(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function xe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ye(t,e,l,s={},n=()=>{}){const{ease:a=xe,duration:v=300}=s;let h=null;const b=e[t];let g=!1;const B=()=>{g=!0},y=m=>{if(g){n(new Error("Animation cancelled"));return}h===null&&(h=m);const T=Math.min(1,(m-h)/v);if(e[t]=a(T)*(l-b)+b,T>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(y)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const Ce=["onChange"],Be={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Te(t){const{onChange:e}=t,l=at(t,Ce),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return ae(()=>{const v=Ot(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),h=Dt(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",p({style:Be,ref:n},l))}function we(t){return mt("MuiTabScrollButton",t)}const Me=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ie=Me,Re=["className","slots","slotProps","direction","orientation","disabled"],Ee=t=>{const{classes:e,orientation:l,disabled:s}=t;return gt({root:["root",l,s&&"disabled"]},we,e)},ze=D(jt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>p({width:40,flexShrink:0,opacity:.8,[`&.${Ie.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),We=d.forwardRef(function(e,l){var s,n;const a=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:g}=a,B=at(a,Re),y=Xt(),m=p({isRtl:y},a),T=Ee(m),L=(s=h.StartScrollButtonIcon)!=null?s:Se,w=(n=h.EndScrollButtonIcon)!=null?n:ge,x=st({elementType:L,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),X=st({elementType:w,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(ze,p({component:"div",className:N(T.root,v),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(L,p({},x)):u.jsx(w,p({},X))}))}),Pe=We;function ke(t){return mt("MuiTabs",t)}const Ne=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ht=Ne,$e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Nt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,$t=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,nt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},Le=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=t;return gt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},ke,b)},Fe=D("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${ht.scrollButtons}`]:e.scrollButtons},{[`& .${ht.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ht.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),je=D("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),He=D("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>p({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Ae=D("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),Oe=D(Te)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},De=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTabs"}),n=ie(),a=Xt(),{"aria-label":v,"aria-labelledby":h,action:b,centered:g=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:T=!1,indicatorColor:L="primary",onChange:w,orientation:x="horizontal",ScrollButtonComponent:X=Pe,scrollButtons:R="auto",selectionFollowsFocus:it,slots:_={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:F={},textColor:tt="primary",value:K,variant:E="standard",visibleScrollbar:ct=!1}=s,Ut=at(s,$e),M=E==="scrollable",C=x==="vertical",G=C?"scrollTop":"scrollLeft",et=C?"top":"left",ot=C?"bottom":"right",dt=C?"clientHeight":"clientWidth",J=C?"height":"width",j=p({},s,{component:m,allowScrollButtonsMobile:T,indicatorColor:L,orientation:x,vertical:C,scrollButtons:R,textColor:tt,variant:E,visibleScrollbar:ct,fixed:!M,hideScrollbar:M&&!ct,scrollableX:M&&!C,scrollableY:M&&C,centered:g&&!M,scrollButtonsHideMobile:!T}),P=Le(j),Yt=st({elementType:_.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:j}),Vt=st({elementType:_.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:j}),[Ct,Gt]=d.useState(!1),[H,Bt]=d.useState(Lt),[Tt,Jt]=d.useState(!1),[wt,Qt]=d.useState(!1),[Mt,Zt]=d.useState(!1),[It,te]=d.useState({overflow:"hidden",scrollbarWidth:0}),Rt=new Map,z=d.useRef(null),A=d.useRef(null),Et=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ue(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&K!==!1){const i=A.current.children;if(i.length>0){const f=i[Rt.get(K)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},Q=ft(()=>{const{tabsMeta:o,tabMeta:r}=Et();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const f={[i]:c,[J]:r?r[J]:0};if(isNaN(H[i])||isNaN(H[J]))Bt(f);else{const S=Math.abs(H[i]-f[i]),I=Math.abs(H[J]-f[J]);(S>=1||I>=1)&&Bt(f)}}),ut=(o,{animation:r=!0}={})=>{r?ye(G,z.current,o,{duration:n.transitions.duration.standard}):z.current[G]=o},zt=o=>{let r=z.current[G];C?r+=o:(r+=o*(a?-1:1),r*=a&&_t()==="reverse"?-1:1),ut(r)},Wt=()=>{const o=z.current[dt];let r=0;const c=Array.from(A.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[dt]>o){i===0&&(r=o);break}r+=f[dt]}return r},ee=()=>{zt(-1*Wt())},oe=()=>{zt(Wt())},le=d.useCallback(o=>{te({overflow:null,scrollbarWidth:o})},[]),re=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(Oe,{onChange:le,className:N(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(R==="auto"&&(Tt||wt)||R===!0);return o.scrollButtonStart=c?u.jsx(X,p({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Yt},orientation:x,direction:a?"right":"left",onClick:ee,disabled:!Tt},F,{className:N(P.scrollButtons,F.className)})):null,o.scrollButtonEnd=c?u.jsx(X,p({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Vt},orientation:x,direction:a?"left":"right",onClick:oe,disabled:!wt},F,{className:N(P.scrollButtons,F.className)})):null,o},Pt=ft(o=>{const{tabsMeta:r,tabMeta:c}=Et();if(!(!c||!r)){if(c[et]<r[et]){const i=r[G]+(c[et]-r[et]);ut(i,{animation:o})}else if(c[ot]>r[ot]){const i=r[G]+(c[ot]-r[ot]);ut(i,{animation:o})}}}),lt=ft(()=>{M&&R!==!1&&Zt(!Mt)});d.useEffect(()=>{const o=Ot(()=>{z.current&&Q()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var k;(k=r)==null||k.unobserve(Z)}),I.addedNodes.forEach(Z=>{var k;(k=r)==null||k.observe(Z)})}),o(),lt()},i=Dt(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(A.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(A.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[Q,lt]),d.useEffect(()=>{const o=Array.from(A.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&R!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},S=pt=>{Jt(!pt[0].isIntersecting)},I=new IntersectionObserver(S,f);I.observe(c);const Z=pt=>{Qt(!pt[0].isIntersecting)},k=new IntersectionObserver(Z,f);return k.observe(i),()=>{I.disconnect(),k.disconnect()}}},[M,R,Mt,B==null?void 0:B.length]),d.useEffect(()=>{Gt(!0)},[]),d.useEffect(()=>{Q()}),d.useEffect(()=>{Pt(Lt!==H)},[Pt,H]),d.useImperativeHandle(b,()=>({updateIndicator:Q,updateScrollButtons:lt}),[Q,lt]);const kt=u.jsx(Ae,p({},q,{className:N(P.indicator,q.className),ownerState:j,style:p({},H,q.style)}));let rt=0;const ne=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?rt:o.props.value;Rt.set(r,rt);const c=r===K;return rt+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!Ct&&kt,selected:c,selectionFollowsFocus:it,onChange:w,textColor:tt,value:r},rt===1&&K===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),se=o=>{const r=A.current,c=ce(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",S=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),nt(r,c,$t);break;case S:o.preventDefault(),nt(r,c,Nt);break;case"Home":o.preventDefault(),nt(r,null,Nt);break;case"End":o.preventDefault(),nt(r,null,$t);break}},bt=re();return u.jsxs(Fe,p({className:N(P.root,y),ownerState:j,ref:l,as:m},Ut,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,u.jsxs(je,{className:P.scroller,ownerState:j,style:{overflow:It.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:ct?void 0:-It.scrollbarWidth},ref:z,children:[u.jsx(He,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:j,onKeyDown:se,ref:A,role:"tablist",children:ne}),Ct&&kt]}),bt.scrollButtonEnd]}))}),yt=De,Ft="index",Y={tabs:`${Ft}-tabs`,tab:`${Ft}-tab`},Xe=de(yt)(({theme:t})=>({[`& .${Y.tabs}`]:{},[`& .${Y.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function qt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:$.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:$.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:$.lineBorderBase,color:$.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}qt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Kt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:$.strokeBorderStrong,bottom:0}},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:$.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:$.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:$.foregroundsFgBase},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Kt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function _e({tabs:t,current:e,onChange:l,...s}){return s.variant==="card"?u.jsx(qt,{...s,tabs:t,current:e,onChange:l}):s.variant==="line"?u.jsx(Kt,{...s,tabs:t,current:e,onChange:l}):u.jsx(Xe,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[Y.tabs,s.className||""].join(" "),children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}_e.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};export{ge as K,_e as T,Se as a,yt as b,xt as c,ht as t};
1
+ import{aA as vt,aB as mt,aC as D,cD as jt,aD as Ht,aF as p,r as d,aJ as St,aE as at,aH as N,j as u,aI as gt,ao as At,cy as ae,cE as Ot,cF as Dt,cG as Xt,aG as st,bm as ie,cH as ft,cI as ce,c1 as de,K as $,P as W}from"./index-fG25goIy.js";let U;function _t(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ue(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(_t()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function be(t){return mt("MuiTab",t)}const pe=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),O=pe,fe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],he=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:b}=t,g={root:["root",a&&v&&"labelIcon",`textColor${Ht(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return gt(g,be,e)},ve=D(jt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${Ht(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>p({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${O.iconWrapper}`]:p({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${O.selected}`]:{opacity:1},[`&.${O.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${O.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${O.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${O.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${O.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),me=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:g="top",indicator:B,label:y,onChange:m,onClick:T,onFocus:L,selected:w,selectionFollowsFocus:x,textColor:X="inherit",value:R,wrapped:it=!1}=s,_=at(s,fe),V=p({},s,{disabled:a,disableFocusRipple:v,selected:w,icon:!!b,iconPosition:g,label:!!y,fullWidth:h,textColor:X,wrapped:it}),q=he(V),F=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:N(q.iconWrapper,b.props.className)}):b,tt=E=>{!w&&m&&m(E,R),T&&T(E)},K=E=>{x&&!w&&m&&m(E,R),L&&L(E)};return u.jsxs(ve,p({focusRipple:!v,className:N(q.root,n),ref:l,role:"tab","aria-selected":w,disabled:a,onClick:tt,onFocus:K,ownerState:V,tabIndex:w?0:-1},_,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[F,y]}):u.jsxs(d.Fragment,{children:[y,F]}),B]}))}),xt=me,Se=At(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ge=At(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function xe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ye(t,e,l,s={},n=()=>{}){const{ease:a=xe,duration:v=300}=s;let h=null;const b=e[t];let g=!1;const B=()=>{g=!0},y=m=>{if(g){n(new Error("Animation cancelled"));return}h===null&&(h=m);const T=Math.min(1,(m-h)/v);if(e[t]=a(T)*(l-b)+b,T>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(y)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const Ce=["onChange"],Be={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Te(t){const{onChange:e}=t,l=at(t,Ce),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return ae(()=>{const v=Ot(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),h=Dt(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",p({style:Be,ref:n},l))}function we(t){return mt("MuiTabScrollButton",t)}const Me=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ie=Me,Re=["className","slots","slotProps","direction","orientation","disabled"],Ee=t=>{const{classes:e,orientation:l,disabled:s}=t;return gt({root:["root",l,s&&"disabled"]},we,e)},ze=D(jt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>p({width:40,flexShrink:0,opacity:.8,[`&.${Ie.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),We=d.forwardRef(function(e,l){var s,n;const a=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:g}=a,B=at(a,Re),y=Xt(),m=p({isRtl:y},a),T=Ee(m),L=(s=h.StartScrollButtonIcon)!=null?s:Se,w=(n=h.EndScrollButtonIcon)!=null?n:ge,x=st({elementType:L,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),X=st({elementType:w,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(ze,p({component:"div",className:N(T.root,v),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(L,p({},x)):u.jsx(w,p({},X))}))}),Pe=We;function ke(t){return mt("MuiTabs",t)}const Ne=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ht=Ne,$e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Nt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,$t=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,nt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},Le=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=t;return gt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},ke,b)},Fe=D("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${ht.scrollButtons}`]:e.scrollButtons},{[`& .${ht.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ht.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),je=D("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),He=D("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>p({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Ae=D("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),Oe=D(Te)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},De=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTabs"}),n=ie(),a=Xt(),{"aria-label":v,"aria-labelledby":h,action:b,centered:g=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:T=!1,indicatorColor:L="primary",onChange:w,orientation:x="horizontal",ScrollButtonComponent:X=Pe,scrollButtons:R="auto",selectionFollowsFocus:it,slots:_={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:F={},textColor:tt="primary",value:K,variant:E="standard",visibleScrollbar:ct=!1}=s,Ut=at(s,$e),M=E==="scrollable",C=x==="vertical",G=C?"scrollTop":"scrollLeft",et=C?"top":"left",ot=C?"bottom":"right",dt=C?"clientHeight":"clientWidth",J=C?"height":"width",j=p({},s,{component:m,allowScrollButtonsMobile:T,indicatorColor:L,orientation:x,vertical:C,scrollButtons:R,textColor:tt,variant:E,visibleScrollbar:ct,fixed:!M,hideScrollbar:M&&!ct,scrollableX:M&&!C,scrollableY:M&&C,centered:g&&!M,scrollButtonsHideMobile:!T}),P=Le(j),Yt=st({elementType:_.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:j}),Vt=st({elementType:_.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:j}),[Ct,Gt]=d.useState(!1),[H,Bt]=d.useState(Lt),[Tt,Jt]=d.useState(!1),[wt,Qt]=d.useState(!1),[Mt,Zt]=d.useState(!1),[It,te]=d.useState({overflow:"hidden",scrollbarWidth:0}),Rt=new Map,z=d.useRef(null),A=d.useRef(null),Et=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ue(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&K!==!1){const i=A.current.children;if(i.length>0){const f=i[Rt.get(K)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},Q=ft(()=>{const{tabsMeta:o,tabMeta:r}=Et();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const f={[i]:c,[J]:r?r[J]:0};if(isNaN(H[i])||isNaN(H[J]))Bt(f);else{const S=Math.abs(H[i]-f[i]),I=Math.abs(H[J]-f[J]);(S>=1||I>=1)&&Bt(f)}}),ut=(o,{animation:r=!0}={})=>{r?ye(G,z.current,o,{duration:n.transitions.duration.standard}):z.current[G]=o},zt=o=>{let r=z.current[G];C?r+=o:(r+=o*(a?-1:1),r*=a&&_t()==="reverse"?-1:1),ut(r)},Wt=()=>{const o=z.current[dt];let r=0;const c=Array.from(A.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[dt]>o){i===0&&(r=o);break}r+=f[dt]}return r},ee=()=>{zt(-1*Wt())},oe=()=>{zt(Wt())},le=d.useCallback(o=>{te({overflow:null,scrollbarWidth:o})},[]),re=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(Oe,{onChange:le,className:N(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(R==="auto"&&(Tt||wt)||R===!0);return o.scrollButtonStart=c?u.jsx(X,p({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Yt},orientation:x,direction:a?"right":"left",onClick:ee,disabled:!Tt},F,{className:N(P.scrollButtons,F.className)})):null,o.scrollButtonEnd=c?u.jsx(X,p({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Vt},orientation:x,direction:a?"left":"right",onClick:oe,disabled:!wt},F,{className:N(P.scrollButtons,F.className)})):null,o},Pt=ft(o=>{const{tabsMeta:r,tabMeta:c}=Et();if(!(!c||!r)){if(c[et]<r[et]){const i=r[G]+(c[et]-r[et]);ut(i,{animation:o})}else if(c[ot]>r[ot]){const i=r[G]+(c[ot]-r[ot]);ut(i,{animation:o})}}}),lt=ft(()=>{M&&R!==!1&&Zt(!Mt)});d.useEffect(()=>{const o=Ot(()=>{z.current&&Q()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var k;(k=r)==null||k.unobserve(Z)}),I.addedNodes.forEach(Z=>{var k;(k=r)==null||k.observe(Z)})}),o(),lt()},i=Dt(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(A.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(A.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[Q,lt]),d.useEffect(()=>{const o=Array.from(A.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&R!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},S=pt=>{Jt(!pt[0].isIntersecting)},I=new IntersectionObserver(S,f);I.observe(c);const Z=pt=>{Qt(!pt[0].isIntersecting)},k=new IntersectionObserver(Z,f);return k.observe(i),()=>{I.disconnect(),k.disconnect()}}},[M,R,Mt,B==null?void 0:B.length]),d.useEffect(()=>{Gt(!0)},[]),d.useEffect(()=>{Q()}),d.useEffect(()=>{Pt(Lt!==H)},[Pt,H]),d.useImperativeHandle(b,()=>({updateIndicator:Q,updateScrollButtons:lt}),[Q,lt]);const kt=u.jsx(Ae,p({},q,{className:N(P.indicator,q.className),ownerState:j,style:p({},H,q.style)}));let rt=0;const ne=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?rt:o.props.value;Rt.set(r,rt);const c=r===K;return rt+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!Ct&&kt,selected:c,selectionFollowsFocus:it,onChange:w,textColor:tt,value:r},rt===1&&K===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),se=o=>{const r=A.current,c=ce(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",S=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),nt(r,c,$t);break;case S:o.preventDefault(),nt(r,c,Nt);break;case"Home":o.preventDefault(),nt(r,null,Nt);break;case"End":o.preventDefault(),nt(r,null,$t);break}},bt=re();return u.jsxs(Fe,p({className:N(P.root,y),ownerState:j,ref:l,as:m},Ut,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,u.jsxs(je,{className:P.scroller,ownerState:j,style:{overflow:It.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:ct?void 0:-It.scrollbarWidth},ref:z,children:[u.jsx(He,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:j,onKeyDown:se,ref:A,role:"tablist",children:ne}),Ct&&kt]}),bt.scrollButtonEnd]}))}),yt=De,Ft="index",Y={tabs:`${Ft}-tabs`,tab:`${Ft}-tab`},Xe=de(yt)(({theme:t})=>({[`& .${Y.tabs}`]:{},[`& .${Y.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function qt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:$.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:$.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:$.lineBorderBase,color:$.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}qt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Kt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:$.strokeBorderStrong,bottom:0}},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:$.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:$.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:$.foregroundsFgBase},...s.sx},children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Kt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function _e({tabs:t,current:e,onChange:l,...s}){return s.variant==="card"?u.jsx(qt,{...s,tabs:t,current:e,onChange:l}):s.variant==="line"?u.jsx(Kt,{...s,tabs:t,current:e,onChange:l}):u.jsx(Xe,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[Y.tabs,s.className||""].join(" "),children:t.map(n=>u.jsx(xt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}_e.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};export{ge as K,_e as T,Se as a,yt as b,xt as c,ht as t};
@@ -1 +1 @@
1
- import{b8 as y}from"./index-ByQRo8Xy.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
1
+ import{b8 as y}from"./index-fG25goIy.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
@@ -1 +1 @@
1
- import{P as o,r as x,j as e,B as u,bl as K,bH as B,e_ as W,a6 as v,ay as R,S as H,da as M,Y}from"./index-ByQRo8Xy.js";import{d as $}from"./EditIcon-BTer7WGq.js";import{d as A}from"./Done-hH5-N5v0.js";import{C as G}from"./Google-B0xyZx_J.js";import{T as U}from"./TextField-CLOKo8rr.js";import{R as J,F as Q,L as X}from"./logo-uploader-Qe4fSMre.js";const S={description:o.string,editing:o.bool,onChange:o.func,required:o.bool,value:o.any,componentProps:o.object,render:o.func,renderFormItem:o.func};function _({editing:n,value:r,onChange:s}){const[a,l]=x.useState(!1),c=x.useRef(),d=x.useRef(r);x.useEffect(()=>{let p=null;return n&&(p=setTimeout(()=>{l(!0)},50)),()=>{clearTimeout(p)}},[n]);const y=p=>{d.current=p,s(p)},g=()=>{l(!1),s(d.current)},b=e.jsx(u,{className:"form-item-input slot",px:1,children:e.jsxs(u,{display:"flex",alignItems:"center",children:[r,r!=="auto"&&e.jsx("div",{style:{marginLeft:4,backgroundColor:r,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),i=e.jsxs(u,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:g,children:[e.jsx(u,{display:"flex",alignItems:"center",onClick:()=>l(!0),children:e.jsx("div",{ref:c,style:{flexShrink:0,marginLeft:"8px",backgroundColor:r,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:r==="auto"?"default":"pointer"}})}),e.jsx(K,{open:a,anchorEl:c.current,onClose:()=>l(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(G,{color:r,onChange:p=>y(p.hex)})})]});return n?i:b}_.propTypes=S;function V({editing:n,description:r,value:s,onChange:a,componentProps:l,...c}){const{placeholder:d}=l,y=x.useRef(s),g=i=>{i.key==="Enter"&&a(y.current,"confirm")},b=i=>{y.current=i,a(i)};return n?e.jsx(U,{style:{flex:1},fullWidth:!0,value:s,onChange:i=>{i.persist(),b(i.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:r||d,onKeyDown:g,...c}):e.jsx(u,{px:1,className:"form-item-input slot",children:s})}V.propTypes=S;V.defaultProps={componentProps:{}};function F({editing:n,value:r,onChange:s,componentProps:a,...l}){const{blocklet:c}=a,d=r==="auto"?B.getPassportColorFromDid(c.appDid):r;return e.jsxs(u,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:W({title:"Owner",issuer:v(c),issuerDid:c.appDid,ownerName:"Your Name",ownerDid:c.appDid,preferredColor:r||"auto"})}}),e.jsx(_,{...l,editing:n,value:n?d:r,onChange:s,componentProps:a})]})}F.propTypes={...S,componentProps:o.shape({blocklet:o.object.isRequired}).isRequired};F.defaultProps={};const Z={input:V,color:_,passport:F,uploader:n=>e.jsx(X,{...n.componentProps})};function ee(n,{editing:r=!1}){const{componentType:s="input",render:a,renderFormItem:l}=n;return r&&l?l:!r&&a?a:Z[s==null?void 0:s.toLowerCase()]}function D({schema:n,loading:r,value:s,defaultValue:a,onChange:l,style:c,disabled:d}){const y=Object.prototype.toString.call(s)==="[object Object]",[g,b]=x.useState(null),[i,p]=x.useState(y?s:a),P=x.useRef();function I(t,m,h){const{key:f,secure:C}=t,k=i[f]!==m,j={...i,[f]:m};k&&p(j),l({[f]:m},{allValues:j,action:h,currentItem:t}),h==="confirm"&&C&&p({...i,[f]:"__encrypted__"}),["confirm","cancel"].includes(h)?N(null):N(t)}function N(t){if(t){P.current=i[t.key],b(t);return}P.current=null,b(null)}function E(t,{editing:m=!1}){const{key:h}=t,f=y?s[h]:i[h];return f==="__encrypted__"?m?"":"******":f}return e.jsx(re,{className:"form",style:c,children:n==null?void 0:n.map(t=>{const{key:m,description:h,required:f,solo:C=!1,hidden:T=!1,componentProps:k={}}=t;if(T)return null;const j=!!(g&&m===g.key),w=E(t,{editing:j}),z=ee(t,{editing:j}),q={inputProps:{"data-cy":"schema-form-item-component"},key:m,description:h,editing:j,value:w,onChange:(L,O="change")=>I(t,L,O),componentProps:k};return e.jsxs(u,{className:"form-item",children:[!C&&e.jsxs(u,{className:"form-item-label",style:{color:f&&!w?"#ff0000":"#333"},children:[h,f&&e.jsx(J,{})]}),e.jsxs(u,{className:"form-item-body",children:[e.jsx(u,{className:"form-item-input",sx:{textAlign:C?"center":"left"},children:e.jsx(z,{...q})}),!C&&e.jsx(u,{className:"form-item-action",children:j?e.jsxs(e.Fragment,{children:[e.jsx(R,{"data-cy":"schema-form-item-confirm",onClick:()=>{I(t,w,"confirm")},disabled:d||r,size:"large",children:r?e.jsx(H,{size:24}):e.jsx(A,{})}),e.jsx(R,{"data-cy":"schema-form-item-cancel",onClick:()=>{I(t,P.current,"cancel")},disabled:d||r,size:"large",children:e.jsx(M,{})})]}):e.jsx(R,{"data-cy":"schema-form-item-edit",onClick:()=>{I(t,i[m],"edit")},disabled:d||g,size:"large",children:e.jsx($,{})})})]})]},m)})})}D.propTypes={schema:o.array.isRequired,loading:o.bool,onChange:o.func.isRequired,value:o.object,defaultValue:o.object,style:o.object,disabled:o.bool};D.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const re=Y(Q)``;export{D as S};
1
+ import{P as o,r as x,j as e,B as u,bl as K,bH as B,e_ as W,a6 as v,ay as R,S as H,da as M,Y}from"./index-fG25goIy.js";import{d as $}from"./EditIcon-_ZF4_H7O.js";import{d as A}from"./Done-DMoT8ohA.js";import{C as G}from"./Google-BTJavqUA.js";import{T as U}from"./TextField-CebHGT3J.js";import{R as J,F as Q,L as X}from"./logo-uploader-DZbF5KOt.js";const S={description:o.string,editing:o.bool,onChange:o.func,required:o.bool,value:o.any,componentProps:o.object,render:o.func,renderFormItem:o.func};function _({editing:n,value:r,onChange:s}){const[a,l]=x.useState(!1),c=x.useRef(),d=x.useRef(r);x.useEffect(()=>{let p=null;return n&&(p=setTimeout(()=>{l(!0)},50)),()=>{clearTimeout(p)}},[n]);const y=p=>{d.current=p,s(p)},g=()=>{l(!1),s(d.current)},b=e.jsx(u,{className:"form-item-input slot",px:1,children:e.jsxs(u,{display:"flex",alignItems:"center",children:[r,r!=="auto"&&e.jsx("div",{style:{marginLeft:4,backgroundColor:r,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),i=e.jsxs(u,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:g,children:[e.jsx(u,{display:"flex",alignItems:"center",onClick:()=>l(!0),children:e.jsx("div",{ref:c,style:{flexShrink:0,marginLeft:"8px",backgroundColor:r,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:r==="auto"?"default":"pointer"}})}),e.jsx(K,{open:a,anchorEl:c.current,onClose:()=>l(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(G,{color:r,onChange:p=>y(p.hex)})})]});return n?i:b}_.propTypes=S;function V({editing:n,description:r,value:s,onChange:a,componentProps:l,...c}){const{placeholder:d}=l,y=x.useRef(s),g=i=>{i.key==="Enter"&&a(y.current,"confirm")},b=i=>{y.current=i,a(i)};return n?e.jsx(U,{style:{flex:1},fullWidth:!0,value:s,onChange:i=>{i.persist(),b(i.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:r||d,onKeyDown:g,...c}):e.jsx(u,{px:1,className:"form-item-input slot",children:s})}V.propTypes=S;V.defaultProps={componentProps:{}};function F({editing:n,value:r,onChange:s,componentProps:a,...l}){const{blocklet:c}=a,d=r==="auto"?B.getPassportColorFromDid(c.appDid):r;return e.jsxs(u,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:W({title:"Owner",issuer:v(c),issuerDid:c.appDid,ownerName:"Your Name",ownerDid:c.appDid,preferredColor:r||"auto"})}}),e.jsx(_,{...l,editing:n,value:n?d:r,onChange:s,componentProps:a})]})}F.propTypes={...S,componentProps:o.shape({blocklet:o.object.isRequired}).isRequired};F.defaultProps={};const Z={input:V,color:_,passport:F,uploader:n=>e.jsx(X,{...n.componentProps})};function ee(n,{editing:r=!1}){const{componentType:s="input",render:a,renderFormItem:l}=n;return r&&l?l:!r&&a?a:Z[s==null?void 0:s.toLowerCase()]}function D({schema:n,loading:r,value:s,defaultValue:a,onChange:l,style:c,disabled:d}){const y=Object.prototype.toString.call(s)==="[object Object]",[g,b]=x.useState(null),[i,p]=x.useState(y?s:a),P=x.useRef();function I(t,m,h){const{key:f,secure:C}=t,k=i[f]!==m,j={...i,[f]:m};k&&p(j),l({[f]:m},{allValues:j,action:h,currentItem:t}),h==="confirm"&&C&&p({...i,[f]:"__encrypted__"}),["confirm","cancel"].includes(h)?N(null):N(t)}function N(t){if(t){P.current=i[t.key],b(t);return}P.current=null,b(null)}function E(t,{editing:m=!1}){const{key:h}=t,f=y?s[h]:i[h];return f==="__encrypted__"?m?"":"******":f}return e.jsx(re,{className:"form",style:c,children:n==null?void 0:n.map(t=>{const{key:m,description:h,required:f,solo:C=!1,hidden:T=!1,componentProps:k={}}=t;if(T)return null;const j=!!(g&&m===g.key),w=E(t,{editing:j}),z=ee(t,{editing:j}),q={inputProps:{"data-cy":"schema-form-item-component"},key:m,description:h,editing:j,value:w,onChange:(L,O="change")=>I(t,L,O),componentProps:k};return e.jsxs(u,{className:"form-item",children:[!C&&e.jsxs(u,{className:"form-item-label",style:{color:f&&!w?"#ff0000":"#333"},children:[h,f&&e.jsx(J,{})]}),e.jsxs(u,{className:"form-item-body",children:[e.jsx(u,{className:"form-item-input",sx:{textAlign:C?"center":"left"},children:e.jsx(z,{...q})}),!C&&e.jsx(u,{className:"form-item-action",children:j?e.jsxs(e.Fragment,{children:[e.jsx(R,{"data-cy":"schema-form-item-confirm",onClick:()=>{I(t,w,"confirm")},disabled:d||r,size:"large",children:r?e.jsx(H,{size:24}):e.jsx(A,{})}),e.jsx(R,{"data-cy":"schema-form-item-cancel",onClick:()=>{I(t,P.current,"cancel")},disabled:d||r,size:"large",children:e.jsx(M,{})})]}):e.jsx(R,{"data-cy":"schema-form-item-edit",onClick:()=>{I(t,i[m],"edit")},disabled:d||g,size:"large",children:e.jsx($,{})})})]})]},m)})})}D.propTypes={schema:o.array.isRequired,loading:o.bool,onChange:o.func.isRequired,value:o.object,defaultValue:o.object,style:o.object,disabled:o.bool};D.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const re=Y(Q)``;export{D as S};
@@ -1,4 +1,4 @@
1
- import{r,aS as d,j as e,b as u,ae as M,bq as I,cj as z,P as o,bA as S,c1 as m,bp as A}from"./index-ByQRo8Xy.js";import{d as E}from"./ExpandMore-BgFo69Uu.js";import{B as O}from"./ButtonGroup-DPL_1wz3.js";function p(s){const{size:f,color:i,menu:a,children:l,variant:h,onClick:x,menuButtonProps:y,...j}=s,[g,c]=r.useState(!1),t=r.useRef(null),k=Array.isArray(a)?a.map((n,b)=>r.isValidElement(n)?n:r.createElement(d,{...n,key:b})):a,B=()=>{c(n=>!n)},C=n=>{t.current&&t.current.contains(n.target)||c(!1)},P=n=>{n.target.closest(".MuiMenuItem-root")&&c(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(v,{variant:h,size:f,color:i,ref:t,...j,children:[typeof l=="function"?l():e.jsx(u,{onClick:x,color:i,children:l}),e.jsx(u,{onClick:B,color:i,...y,"aria-label":"more functions",children:e.jsx(E,{})})]}),e.jsx(L,{open:g,anchorEl:t.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(M,{children:e.jsx(I,{onClickAway:C,children:e.jsx(z,{onClick:P,children:k})})})})]})}p.propTypes={size:o.oneOf(["small","medium","large"]),color:o.oneOf(["primary","secondary","inherit"]),menu:o.oneOfType([o.node,o.array]),children:o.node,variant:o.oneOf(["outlined","contained"]),onClick:o.func,menuButtonProps:o.object};p.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:S,menuButtonProps:{}};p.Item=d;const v=m(O)`
1
+ import{r,aS as d,j as e,b as u,ae as M,bq as I,cj as z,P as o,bA as S,c1 as m,bp as A}from"./index-fG25goIy.js";import{d as E}from"./ExpandMore-BLVLjrZd.js";import{B as O}from"./ButtonGroup-CbL72-oE.js";function p(s){const{size:f,color:i,menu:a,children:l,variant:h,onClick:x,menuButtonProps:y,...j}=s,[g,c]=r.useState(!1),t=r.useRef(null),k=Array.isArray(a)?a.map((n,b)=>r.isValidElement(n)?n:r.createElement(d,{...n,key:b})):a,B=()=>{c(n=>!n)},C=n=>{t.current&&t.current.contains(n.target)||c(!1)},P=n=>{n.target.closest(".MuiMenuItem-root")&&c(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(v,{variant:h,size:f,color:i,ref:t,...j,children:[typeof l=="function"?l():e.jsx(u,{onClick:x,color:i,children:l}),e.jsx(u,{onClick:B,color:i,...y,"aria-label":"more functions",children:e.jsx(E,{})})]}),e.jsx(L,{open:g,anchorEl:t.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(M,{children:e.jsx(I,{onClickAway:C,children:e.jsx(z,{onClick:P,children:k})})})})]})}p.propTypes={size:o.oneOf(["small","medium","large"]),color:o.oneOf(["primary","secondary","inherit"]),menu:o.oneOfType([o.node,o.array]),children:o.node,variant:o.oneOf(["outlined","contained"]),onClick:o.func,menuButtonProps:o.object};p.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:S,menuButtonProps:{}};p.Item=d;const v=m(O)`
2
2
  > .MuiButtonBase-root:last-of-type {
3
3
  min-width: 2em;
4
4
  padding-left: 0;
@@ -1,4 +1,4 @@
1
- import{j as r,T as i,P as e,dm as c,f1 as f,c1 as u}from"./index-ByQRo8Xy.js";function l({name:t,nameFormatter:o,layout:a,children:n,valueComponent:s,nameWidth:m,...p}){return r.jsxs(d,{layout:a,width:m,...p,children:[r.jsx(i,{color:"textSecondary",className:"info-row__name",children:o(t)}),n&&r.jsx(i,{color:"textPrimary",component:s,className:"info-row__value",children:n})]})}l.propTypes={name:e.any.isRequired,layout:e.oneOf(["horizontal","vertical"]),children:e.any,nameFormatter:e.func,valueComponent:e.string,nameWidth:e.number};l.defaultProps={children:null,nameWidth:90,nameFormatter:t=>{const o=t.split(" ").map(a=>c(f(a))).join(" ");return typeof t=="string"?o:t},valueComponent:"div",layout:"horizontal"};const d=u("div")`
1
+ import{j as r,T as i,P as e,dm as c,f1 as f,c1 as u}from"./index-fG25goIy.js";function l({name:t,nameFormatter:o,layout:a,children:n,valueComponent:s,nameWidth:m,...p}){return r.jsxs(d,{layout:a,width:m,...p,children:[r.jsx(i,{color:"textSecondary",className:"info-row__name",children:o(t)}),n&&r.jsx(i,{color:"textPrimary",component:s,className:"info-row__value",children:n})]})}l.propTypes={name:e.any.isRequired,layout:e.oneOf(["horizontal","vertical"]),children:e.any,nameFormatter:e.func,valueComponent:e.string,nameWidth:e.number};l.defaultProps={children:null,nameWidth:90,nameFormatter:t=>{const o=t.split(" ").map(a=>c(f(a))).join(" ");return typeof t=="string"?o:t},valueComponent:"div",layout:"horizontal"};const d=u("div")`
2
2
  display: flex;
3
3
  flex-direction: ${t=>t.layout==="vertical"?"column":"row"};
4
4
  justify-content: flex-start;
@@ -1,4 +1,4 @@
1
- import{c0 as e,P as o,r as u,j as p,c1 as h,c2 as x,bm as b,T as w}from"./index-ByQRo8Xy.js";const c={error:{color:e.common.white,backgroundColor:e.error.main},warning:{color:e.common.white,backgroundColor:e.warning.main},success:{color:e.common.white,backgroundColor:e.success.main},primary:{color:e.common.white,backgroundColor:e.primary.main},reverse:{color:"#fff",backgroundColor:"#222"}};function s(n){const t=x(n,s,["style"]),{type:r,content:l,children:m,style:y,className:g,forwardedRef:d,...f}=t,{palette:a}=b(),i=Object.assign({},c[r]||c.primary,y);return a[r]&&Object.assign(i,{color:a[r].contrastText||e.common.white,backgroundColor:a[r].main}),p.jsx(j,{ref:d,component:"span",className:g,style:i,...f,children:l||m})}s.propTypes={children:o.any.isRequired,type:o.oneOf(Object.keys(c)),content:o.string,className:o.string,style:o.oneOfType([o.object,o.string])};s.defaultProps={type:"primary",content:"",className:"",style:{}};const T=u.forwardRef((n,t)=>p.jsx(s,{...n,forwardedRef:t})),C=T,j=h(w)`
1
+ import{c0 as e,P as o,r as u,j as p,c1 as h,c2 as x,bm as b,T as w}from"./index-fG25goIy.js";const c={error:{color:e.common.white,backgroundColor:e.error.main},warning:{color:e.common.white,backgroundColor:e.warning.main},success:{color:e.common.white,backgroundColor:e.success.main},primary:{color:e.common.white,backgroundColor:e.primary.main},reverse:{color:"#fff",backgroundColor:"#222"}};function s(n){const t=x(n,s,["style"]),{type:r,content:l,children:m,style:y,className:g,forwardedRef:d,...f}=t,{palette:a}=b(),i=Object.assign({},c[r]||c.primary,y);return a[r]&&Object.assign(i,{color:a[r].contrastText||e.common.white,backgroundColor:a[r].main}),p.jsx(j,{ref:d,component:"span",className:g,style:i,...f,children:l||m})}s.propTypes={children:o.any.isRequired,type:o.oneOf(Object.keys(c)),content:o.string,className:o.string,style:o.oneOfType([o.object,o.string])};s.defaultProps={type:"primary",content:"",className:"",style:{}};const T=u.forwardRef((n,t)=>p.jsx(s,{...n,forwardedRef:t})),C=T,j=h(w)`
2
2
  && {
3
3
  display: inline-flex;
4
4
  justify-content: center;
@@ -1 +1 @@
1
- import{gm as J,r as x,ez as Q,U as P,eA as U,gn as S,go as V,Q as B,by as $,dx as j}from"./index-ByQRo8Xy.js";var X=function(i,e){return i===void 0&&(i=[]),e===void 0&&(e=[]),J(i,e)},Y=function(i,e,r){var n=x.useRef(),t=x.useRef(0);X(e,n.current)||(n.current=e,t.current+=1),Q(i,[t.current],r)},Z=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),D={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:Z?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},R={ctrl:function(i){return i.ctrlKey},shift:function(i){return i.shiftKey},alt:function(i){return i.altKey},meta:function(i){return i.type==="keyup"?D.meta.includes(i.keyCode):i.metaKey}};function G(i){return V(i)||B(i)}function p(i){var e=Object.keys(R).reduce(function(r,n){return R[n](i)?r+1:r},0);return[16,17,18,91,92].includes(i.keyCode)?e:e+1}function z(i,e,r){var n,t;if(!i.key)return!1;if(B(e))return i.keyCode===e?e:!1;var l=e.split("."),a=0;try{for(var f=S(l),o=f.next();!o.done;o=f.next()){var c=o.value,s=R[c],u=D[c.toLowerCase()];(s&&s(i)||u&&u===i.keyCode)&&a++}}catch(b){n={error:b}}finally{try{o&&!o.done&&(t=f.return)&&t.call(f)}finally{if(n)throw n.error}}return r?a===l.length&&p(i)===l.length?e:!1:a===l.length?e:!1}function N(i,e){return $(i)?i:G(i)?function(r){return z(r,i,e)}:Array.isArray(i)?function(r){return i.find(function(n){return z(r,n,e)})}:function(){return!!i}}var O=["keydown"];function _(i,e,r){var n=r||{},t=n.events,l=t===void 0?O:t,a=n.target,f=n.exactMatch,o=f===void 0?!1:f,c=n.useCapture,s=c===void 0?!1:c,u=P(e),b=P(i);Y(function(){var A,m,L,v=U(a,window);if(v){var T=function(g){var C,E=N(b.current,o),y=E(g),h=G(y)?y:g.key;if(y)return(C=u.current)===null||C===void 0?void 0:C.call(u,g,h)};try{for(var K=S(l),k=K.next();!k.done;k=K.next()){var H=k.value;(L=v==null?void 0:v.addEventListener)===null||L===void 0||L.call(v,H,T,s)}}catch(g){A={error:g}}finally{try{k&&!k.done&&(m=K.return)&&m.call(K)}finally{if(A)throw A.error}}return function(){var g,C,E;try{for(var y=S(l),h=y.next();!h.done;h=y.next()){var M=h.value;(E=v==null?void 0:v.removeEventListener)===null||E===void 0||E.call(v,M,T,s)}}catch(W){g={error:W}}finally{try{h&&!h.done&&(C=y.return)&&C.call(y)}finally{if(g)throw g.error}}}}},[l],a)}function d(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function q(i,e){for(var r="",n=0,t=-1,l=0,a,f=0;f<=i.length;++f){if(f<i.length)a=i.charCodeAt(f);else{if(a===47)break;a=47}if(a===47){if(!(t===f-1||l===1))if(t!==f-1&&l===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var o=r.lastIndexOf("/");if(o!==r.length-1){o===-1?(r="",n=0):(r=r.slice(0,o),n=r.length-1-r.lastIndexOf("/")),t=f,l=0;continue}}else if(r.length===2||r.length===1){r="",n=0,t=f,l=0;continue}}e&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+i.slice(t+1,f):r=i.slice(t+1,f),n=f-t-1;t=f,l=0}else a===46&&l!==-1?++l:l=-1}return r}function I(i,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+i+n:n}var w={resolve:function(){for(var e="",r=!1,n,t=arguments.length-1;t>=-1&&!r;t--){var l;t>=0?l=arguments[t]:(n===void 0&&(n=j.cwd()),l=n),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}return e=q(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";var r=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=q(e,!r),e.length===0&&!r&&(e="."),e.length>0&&n&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return d(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];d(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":w.normalize(e)},relative:function(e,r){if(d(e),d(r),e===r||(e=w.resolve(e),r=w.resolve(r),e===r))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var t=e.length,l=t-n,a=1;a<r.length&&r.charCodeAt(a)===47;++a);for(var f=r.length,o=f-a,c=l<o?l:o,s=-1,u=0;u<=c;++u){if(u===c){if(o>c){if(r.charCodeAt(a+u)===47)return r.slice(a+u+1);if(u===0)return r.slice(a+u)}else l>c&&(e.charCodeAt(n+u)===47?s=u:u===0&&(s=0));break}var b=e.charCodeAt(n+u),A=r.charCodeAt(a+u);if(b!==A)break;b===47&&(s=u)}var m="";for(u=n+s+1;u<=t;++u)(u===t||e.charCodeAt(u)===47)&&(m.length===0?m+="..":m+="/..");return m.length>0?m+r.slice(a+s):(a+=s,r.charCodeAt(a)===47&&++a,r.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(d(e),e.length===0)return".";for(var r=e.charCodeAt(0),n=r===47,t=-1,l=!0,a=e.length-1;a>=1;--a)if(r=e.charCodeAt(a),r===47){if(!l){t=a;break}}else l=!1;return t===-1?n?"/":".":n&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');d(e);var n=0,t=-1,l=!0,a;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var f=r.length-1,o=-1;for(a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(c===47){if(!l){n=a+1;break}}else o===-1&&(l=!1,o=a+1),f>=0&&(c===r.charCodeAt(f)?--f===-1&&(t=a):(f=-1,t=o))}return n===t?t=o:t===-1&&(t=e.length),e.slice(n,t)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!l){n=a+1;break}}else t===-1&&(l=!1,t=a+1);return t===-1?"":e.slice(n,t)}},extname:function(e){d(e);for(var r=-1,n=0,t=-1,l=!0,a=0,f=e.length-1;f>=0;--f){var o=e.charCodeAt(f);if(o===47){if(!l){n=f+1;break}continue}t===-1&&(l=!1,t=f+1),o===46?r===-1?r=f:a!==1&&(a=1):r!==-1&&(a=-1)}return r===-1||t===-1||a===0||a===1&&r===t-1&&r===n+1?"":e.slice(r,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return I("/",e)},parse:function(e){d(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var n=e.charCodeAt(0),t=n===47,l;t?(r.root="/",l=1):l=0;for(var a=-1,f=0,o=-1,c=!0,s=e.length-1,u=0;s>=l;--s){if(n=e.charCodeAt(s),n===47){if(!c){f=s+1;break}continue}o===-1&&(c=!1,o=s+1),n===46?a===-1?a=s:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||o===-1||u===0||u===1&&a===o-1&&a===f+1?o!==-1&&(f===0&&t?r.base=r.name=e.slice(1,o):r.base=r.name=e.slice(f,o)):(f===0&&t?(r.name=e.slice(1,a),r.base=e.slice(1,o)):(r.name=e.slice(f,a),r.base=e.slice(f,o)),r.ext=e.slice(a,o)),f>0?r.dir=e.slice(0,f-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};w.posix=w;var ee=w;export{ee as p,_ as u};
1
+ import{gm as J,r as x,ez as Q,U as P,eA as U,gn as S,go as V,Q as B,by as $,dx as j}from"./index-fG25goIy.js";var X=function(i,e){return i===void 0&&(i=[]),e===void 0&&(e=[]),J(i,e)},Y=function(i,e,r){var n=x.useRef(),t=x.useRef(0);X(e,n.current)||(n.current=e,t.current+=1),Q(i,[t.current],r)},Z=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),D={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:Z?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},R={ctrl:function(i){return i.ctrlKey},shift:function(i){return i.shiftKey},alt:function(i){return i.altKey},meta:function(i){return i.type==="keyup"?D.meta.includes(i.keyCode):i.metaKey}};function G(i){return V(i)||B(i)}function p(i){var e=Object.keys(R).reduce(function(r,n){return R[n](i)?r+1:r},0);return[16,17,18,91,92].includes(i.keyCode)?e:e+1}function z(i,e,r){var n,t;if(!i.key)return!1;if(B(e))return i.keyCode===e?e:!1;var l=e.split("."),a=0;try{for(var f=S(l),o=f.next();!o.done;o=f.next()){var c=o.value,s=R[c],u=D[c.toLowerCase()];(s&&s(i)||u&&u===i.keyCode)&&a++}}catch(b){n={error:b}}finally{try{o&&!o.done&&(t=f.return)&&t.call(f)}finally{if(n)throw n.error}}return r?a===l.length&&p(i)===l.length?e:!1:a===l.length?e:!1}function N(i,e){return $(i)?i:G(i)?function(r){return z(r,i,e)}:Array.isArray(i)?function(r){return i.find(function(n){return z(r,n,e)})}:function(){return!!i}}var O=["keydown"];function _(i,e,r){var n=r||{},t=n.events,l=t===void 0?O:t,a=n.target,f=n.exactMatch,o=f===void 0?!1:f,c=n.useCapture,s=c===void 0?!1:c,u=P(e),b=P(i);Y(function(){var A,m,L,v=U(a,window);if(v){var T=function(g){var C,E=N(b.current,o),y=E(g),h=G(y)?y:g.key;if(y)return(C=u.current)===null||C===void 0?void 0:C.call(u,g,h)};try{for(var K=S(l),k=K.next();!k.done;k=K.next()){var H=k.value;(L=v==null?void 0:v.addEventListener)===null||L===void 0||L.call(v,H,T,s)}}catch(g){A={error:g}}finally{try{k&&!k.done&&(m=K.return)&&m.call(K)}finally{if(A)throw A.error}}return function(){var g,C,E;try{for(var y=S(l),h=y.next();!h.done;h=y.next()){var M=h.value;(E=v==null?void 0:v.removeEventListener)===null||E===void 0||E.call(v,M,T,s)}}catch(W){g={error:W}}finally{try{h&&!h.done&&(C=y.return)&&C.call(y)}finally{if(g)throw g.error}}}}},[l],a)}function d(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function q(i,e){for(var r="",n=0,t=-1,l=0,a,f=0;f<=i.length;++f){if(f<i.length)a=i.charCodeAt(f);else{if(a===47)break;a=47}if(a===47){if(!(t===f-1||l===1))if(t!==f-1&&l===2){if(r.length<2||n!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var o=r.lastIndexOf("/");if(o!==r.length-1){o===-1?(r="",n=0):(r=r.slice(0,o),n=r.length-1-r.lastIndexOf("/")),t=f,l=0;continue}}else if(r.length===2||r.length===1){r="",n=0,t=f,l=0;continue}}e&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+i.slice(t+1,f):r=i.slice(t+1,f),n=f-t-1;t=f,l=0}else a===46&&l!==-1?++l:l=-1}return r}function I(i,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+i+n:n}var w={resolve:function(){for(var e="",r=!1,n,t=arguments.length-1;t>=-1&&!r;t--){var l;t>=0?l=arguments[t]:(n===void 0&&(n=j.cwd()),l=n),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}return e=q(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";var r=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=q(e,!r),e.length===0&&!r&&(e="."),e.length>0&&n&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return d(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];d(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":w.normalize(e)},relative:function(e,r){if(d(e),d(r),e===r||(e=w.resolve(e),r=w.resolve(r),e===r))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var t=e.length,l=t-n,a=1;a<r.length&&r.charCodeAt(a)===47;++a);for(var f=r.length,o=f-a,c=l<o?l:o,s=-1,u=0;u<=c;++u){if(u===c){if(o>c){if(r.charCodeAt(a+u)===47)return r.slice(a+u+1);if(u===0)return r.slice(a+u)}else l>c&&(e.charCodeAt(n+u)===47?s=u:u===0&&(s=0));break}var b=e.charCodeAt(n+u),A=r.charCodeAt(a+u);if(b!==A)break;b===47&&(s=u)}var m="";for(u=n+s+1;u<=t;++u)(u===t||e.charCodeAt(u)===47)&&(m.length===0?m+="..":m+="/..");return m.length>0?m+r.slice(a+s):(a+=s,r.charCodeAt(a)===47&&++a,r.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(d(e),e.length===0)return".";for(var r=e.charCodeAt(0),n=r===47,t=-1,l=!0,a=e.length-1;a>=1;--a)if(r=e.charCodeAt(a),r===47){if(!l){t=a;break}}else l=!1;return t===-1?n?"/":".":n&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');d(e);var n=0,t=-1,l=!0,a;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var f=r.length-1,o=-1;for(a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(c===47){if(!l){n=a+1;break}}else o===-1&&(l=!1,o=a+1),f>=0&&(c===r.charCodeAt(f)?--f===-1&&(t=a):(f=-1,t=o))}return n===t?t=o:t===-1&&(t=e.length),e.slice(n,t)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!l){n=a+1;break}}else t===-1&&(l=!1,t=a+1);return t===-1?"":e.slice(n,t)}},extname:function(e){d(e);for(var r=-1,n=0,t=-1,l=!0,a=0,f=e.length-1;f>=0;--f){var o=e.charCodeAt(f);if(o===47){if(!l){n=f+1;break}continue}t===-1&&(l=!1,t=f+1),o===46?r===-1?r=f:a!==1&&(a=1):r!==-1&&(a=-1)}return r===-1||t===-1||a===0||a===1&&r===t-1&&r===n+1?"":e.slice(r,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return I("/",e)},parse:function(e){d(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var n=e.charCodeAt(0),t=n===47,l;t?(r.root="/",l=1):l=0;for(var a=-1,f=0,o=-1,c=!0,s=e.length-1,u=0;s>=l;--s){if(n=e.charCodeAt(s),n===47){if(!c){f=s+1;break}continue}o===-1&&(c=!1,o=s+1),n===46?a===-1?a=s:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||o===-1||u===0||u===1&&a===o-1&&a===f+1?o!==-1&&(f===0&&t?r.base=r.name=e.slice(1,o):r.base=r.name=e.slice(f,o)):(f===0&&t?(r.name=e.slice(1,a),r.base=e.slice(1,o)):(r.name=e.slice(f,a),r.base=e.slice(f,o)),r.ext=e.slice(a,o)),f>0?r.dir=e.slice(0,f-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};w.posix=w;var ee=w;export{ee as p,_ as u};
@@ -1,2 +1,2 @@
1
- import{b8 as G}from"./index-ByQRo8Xy.js";class w{constructor(e,t,o){this.property=e,this.normal=t,o&&(this.space=o)}}w.prototype.property={};w.prototype.normal={};w.prototype.space=null;function B(l,e){const t={},o={};let c=-1;for(;++c<l.length;)Object.assign(t,l[c].property),Object.assign(o,l[c].normal);return new w(t,o,e)}function L(l){return l.toLowerCase()}class h{constructor(e,t){this.property=e,this.attribute=t}}h.prototype.space=null;h.prototype.boolean=!1;h.prototype.booleanish=!1;h.prototype.overloadedBoolean=!1;h.prototype.number=!1;h.prototype.commaSeparated=!1;h.prototype.spaceSeparated=!1;h.prototype.commaOrSpaceSeparated=!1;h.prototype.mustUseProperty=!1;h.prototype.defined=!1;let $=0;const r=k(),p=k(),H=k(),n=k(),u=k(),x=k(),g=k();function k(){return 2**++$}const P=Object.freeze(Object.defineProperty({__proto__:null,boolean:r,booleanish:p,commaOrSpaceSeparated:g,commaSeparated:x,number:n,overloadedBoolean:H,spaceSeparated:u},Symbol.toStringTag,{value:"Module"})),C=Object.keys(P);class E extends h{constructor(e,t,o,c){let s=-1;if(super(e,t),R(this,"space",c),typeof o=="number")for(;++s<C.length;){const d=C[s];R(this,C[s],(o&P[d])===P[d])}}}E.prototype.defined=!0;function R(l,e,t){t&&(l[e]=t)}const Z={}.hasOwnProperty;function S(l){const e={},t={};let o;for(o in l.properties)if(Z.call(l.properties,o)){const c=l.properties[o],s=new E(o,l.transform(l.attributes||{},o),c,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),e[o]=s,t[L(o)]=o,t[L(s.attribute)]=o}return new w(e,t,l.space)}const F=S({space:"xlink",transform(l,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),j=S({space:"xml",transform(l,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N(l,e){return e in l?l[e]:e}function X(l,e){return N(l,e.toLowerCase())}const _=S({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:X,properties:{xmlns:null,xmlnsXLink:null}}),V=S({transform(l,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:p,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:u,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:n,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:u,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:p,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}}),J=S({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:X,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:u,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:u,cols:n,colSpan:null,content:null,contentEditable:p,controls:r,controlsList:u,coords:n|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:H,draggable:p,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:u,height:n,hidden:r,high:n,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:u,itemRef:u,itemScope:r,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:n,pattern:null,ping:u,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:u,required:r,reversed:r,rows:n,rowSpan:n,sandbox:u,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:p,width:n,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:n,security:null,unselectable:null}}),Q=S({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:N,properties:{about:g,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nn=/^data[-\w.:]+$/i,T=/-[a-z]/g,ln=/[A-Z]/g;function kn(l,e){const t=L(e);let o=e,c=h;if(t in l.normal)return l.property[l.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&nn.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(T,on);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!T.test(s)){let d=s.replace(ln,en);d.charAt(0)!=="-"&&(d="-"+d),e="data"+d}}c=E}return new c(o,e)}function en(l){return"-"+l.toLowerCase()}function on(l){return l.charAt(1).toUpperCase()}const xn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sn=B([j,F,_,V,J],"html"),wn=B([j,F,_,V,Q],"svg");function bn(l){const e=String(l||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Cn(l){return l.join(" ").trim()}function Ln(l){const e=[],t=String(l||"");let o=t.indexOf(","),c=0,s=!1;for(;!s;){o===-1&&(o=t.length,s=!0);const d=t.slice(c,o).trim();(d||!s)&&e.push(d),c=o+1,o=t.indexOf(",",c)}return e}function Pn(l,e){const t=e||{};return(l[l.length-1]===""?[...l,""]:l).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var O={exports:{}},A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tn=/\n/g,rn=/^\s*/,an=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,un=/^:\s*/,sn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cn=/^[;\s]*/,pn=/^\s+|\s+$/g,dn=`
1
+ import{b8 as G}from"./index-fG25goIy.js";class w{constructor(e,t,o){this.property=e,this.normal=t,o&&(this.space=o)}}w.prototype.property={};w.prototype.normal={};w.prototype.space=null;function B(l,e){const t={},o={};let c=-1;for(;++c<l.length;)Object.assign(t,l[c].property),Object.assign(o,l[c].normal);return new w(t,o,e)}function L(l){return l.toLowerCase()}class h{constructor(e,t){this.property=e,this.attribute=t}}h.prototype.space=null;h.prototype.boolean=!1;h.prototype.booleanish=!1;h.prototype.overloadedBoolean=!1;h.prototype.number=!1;h.prototype.commaSeparated=!1;h.prototype.spaceSeparated=!1;h.prototype.commaOrSpaceSeparated=!1;h.prototype.mustUseProperty=!1;h.prototype.defined=!1;let $=0;const r=k(),p=k(),H=k(),n=k(),u=k(),x=k(),g=k();function k(){return 2**++$}const P=Object.freeze(Object.defineProperty({__proto__:null,boolean:r,booleanish:p,commaOrSpaceSeparated:g,commaSeparated:x,number:n,overloadedBoolean:H,spaceSeparated:u},Symbol.toStringTag,{value:"Module"})),C=Object.keys(P);class E extends h{constructor(e,t,o,c){let s=-1;if(super(e,t),R(this,"space",c),typeof o=="number")for(;++s<C.length;){const d=C[s];R(this,C[s],(o&P[d])===P[d])}}}E.prototype.defined=!0;function R(l,e,t){t&&(l[e]=t)}const Z={}.hasOwnProperty;function S(l){const e={},t={};let o;for(o in l.properties)if(Z.call(l.properties,o)){const c=l.properties[o],s=new E(o,l.transform(l.attributes||{},o),c,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),e[o]=s,t[L(o)]=o,t[L(s.attribute)]=o}return new w(e,t,l.space)}const F=S({space:"xlink",transform(l,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),j=S({space:"xml",transform(l,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N(l,e){return e in l?l[e]:e}function X(l,e){return N(l,e.toLowerCase())}const _=S({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:X,properties:{xmlns:null,xmlnsXLink:null}}),V=S({transform(l,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:p,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:u,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:n,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:u,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:p,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}}),J=S({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:X,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:u,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:u,cols:n,colSpan:null,content:null,contentEditable:p,controls:r,controlsList:u,coords:n|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:H,draggable:p,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:u,height:n,hidden:r,high:n,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:u,itemRef:u,itemScope:r,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:n,pattern:null,ping:u,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:u,required:r,reversed:r,rows:n,rowSpan:n,sandbox:u,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:p,width:n,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:n,security:null,unselectable:null}}),Q=S({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:N,properties:{about:g,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nn=/^data[-\w.:]+$/i,T=/-[a-z]/g,ln=/[A-Z]/g;function kn(l,e){const t=L(e);let o=e,c=h;if(t in l.normal)return l.property[l.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&nn.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(T,on);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!T.test(s)){let d=s.replace(ln,en);d.charAt(0)!=="-"&&(d="-"+d),e="data"+d}}c=E}return new c(o,e)}function en(l){return"-"+l.toLowerCase()}function on(l){return l.charAt(1).toUpperCase()}const xn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sn=B([j,F,_,V,J],"html"),wn=B([j,F,_,V,Q],"svg");function bn(l){const e=String(l||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Cn(l){return l.join(" ").trim()}function Ln(l){const e=[],t=String(l||"");let o=t.indexOf(","),c=0,s=!1;for(;!s;){o===-1&&(o=t.length,s=!0);const d=t.slice(c,o).trim();(d||!s)&&e.push(d),c=o+1,o=t.indexOf(",",c)}return e}function Pn(l,e){const t=e||{};return(l[l.length-1]===""?[...l,""]:l).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var O={exports:{}},A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tn=/\n/g,rn=/^\s*/,an=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,un=/^:\s*/,sn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cn=/^[;\s]*/,pn=/^\s+|\s+$/g,dn=`
2
2
  `,I="/",U="*",y="",gn="comment",hn="declaration",mn=function(l,e){if(typeof l!="string")throw new TypeError("First argument must be a string");if(!l)return[];e=e||{};var t=1,o=1;function c(i){var a=i.match(tn);a&&(t+=a.length);var m=i.lastIndexOf(dn);o=~m?i.length-m:o+i.length}function s(){var i={line:t,column:o};return function(a){return a.position=new d(i),b(),a}}function d(i){this.start=i,this.end={line:t,column:o},this.source=e.source}d.prototype.content=l;function v(i){var a=new Error(e.source+":"+t+":"+o+": "+i);if(a.reason=i,a.filename=e.source,a.line=t,a.column=o,a.source=l,!e.silent)throw a}function f(i){var a=i.exec(l);if(a){var m=a[0];return c(m),l=l.slice(m.length),a}}function b(){f(rn)}function M(i){var a;for(i=i||[];a=D();)a!==!1&&i.push(a);return i}function D(){var i=s();if(!(I!=l.charAt(0)||U!=l.charAt(1))){for(var a=2;y!=l.charAt(a)&&(U!=l.charAt(a)||I!=l.charAt(a+1));)++a;if(a+=2,y===l.charAt(a-1))return v("End of comment missing");var m=l.slice(2,a-2);return o+=2,c(m),l=l.slice(a),o+=2,i({type:gn,comment:m})}}function K(){var i=s(),a=f(an);if(a){if(D(),!f(un))return v("property missing ':'");var m=f(sn),q=i({type:hn,property:z(a[0].replace(A,y)),value:m?z(m[0].replace(A,y)):y});return f(cn),q}}function Y(){var i=[];M(i);for(var a;a=K();)a!==!1&&(i.push(a),M(i));return i}return b(),Y()};function z(l){return l?l.replace(pn,y):y}var fn=mn;function W(l,e){var t=null;if(!l||typeof l!="string")return t;for(var o,c=fn(l),s=typeof e=="function",d,v,f=0,b=c.length;f<b;f++)o=c[f],d=o.property,v=o.value,s?e(d,v,o):v&&(t||(t={}),t[d]=v);return t}O.exports=W;O.exports.default=W;var vn=O.exports;const En=G(vn),On={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mn(l){const e=l&&typeof l=="object"&&l.type==="text"?l.value||"":l;return typeof e=="string"&&e.replace(/[ \t\n\f\r]/g,"")===""}export{En as S,Pn as a,Cn as b,xn as c,Mn as d,Ln as e,kn as f,Sn as h,L as n,bn as p,wn as s,On as w};
@@ -1,4 +1,4 @@
1
- import{aB as v,aA as A,aC as E,T as y,cV as D,r as m,aJ as N,aE as P,j as i,aF as b,aH as w,aI as R,b8 as k,P as t,c0 as d,c1 as C,c2 as z}from"./index-ByQRo8Xy.js";const O={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},S=O;function M(e){return v("MuiDialogContentText",e)}A("MuiDialogContentText",["root"]);const F=["children","className"],I=e=>{const{classes:r}=e,o=R({root:["root"]},M,r);return b({},r,o)},U=E(y,{shouldForwardProp:e=>D(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,r)=>r.root})({}),_=m.forwardRef(function(r,s){const o=N({props:r,name:"MuiDialogContentText"}),{className:n}=o,c=P(o,F),a=I(c);return i.jsx(U,b({component:"p",variant:"body1",color:"text.secondary",ref:s,ownerState:c,className:w(a.root,n)},o,{classes:a}))}),W=_,q=e=>{const{details:r,errors:s,response:o}=e;return Array.isArray(s)?s.map(n=>n.message).join(`
1
+ import{aB as v,aA as A,aC as E,T as y,cV as D,r as m,aJ as N,aE as P,j as i,aF as b,aH as w,aI as R,b8 as k,P as t,c0 as d,c1 as C,c2 as z}from"./index-fG25goIy.js";const O={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},S=O;function M(e){return v("MuiDialogContentText",e)}A("MuiDialogContentText",["root"]);const F=["children","className"],I=e=>{const{classes:r}=e,o=R({root:["root"]},M,r);return b({},r,o)},U=E(y,{shouldForwardProp:e=>D(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,r)=>r.root})({}),_=m.forwardRef(function(r,s){const o=N({props:r,name:"MuiDialogContentText"}),{className:n}=o,c=P(o,F),a=I(c);return i.jsx(U,b({component:"p",variant:"body1",color:"text.secondary",ref:s,ownerState:c,className:w(a.root,n)},o,{classes:a}))}),W=_,q=e=>{const{details:r,errors:s,response:o}=e;return Array.isArray(s)?s.map(n=>n.message).join(`
2
2
  `):Array.isArray(r)?`Validate failed: ${r.map(c=>{const a=c.message.replace(/["]/g,"'");return`${c.path.join(".")}: ${a}`}).join(";")}`:o?`Request failed: ${o.status} ${o.statusText}: ${JSON.stringify(o.data)}`:e.message};var G=q;const K=k(G),h=(e,{name:r,alternative:s})=>function(n){return m.useEffect(()=>{},[]),i.jsx(e,{...n})},V={light:"fal",regular:"far",solid:"fas"};function x({name:e,color:r,size:s,variant:o,rounded:n,style:c,className:a,forwardedRef:l,...g}){const p=i.jsx("i",{ref:l,className:`${V[o]} fa-${e} ${n?"":a}`,style:Object.assign({color:r,fontSize:`${s}px`},c||{})});return n?i.jsx(J,{ref:l,size:s,color:r,className:a,...g,children:p}):p}x.propTypes={name:t.string.isRequired,className:t.string,color:t.string,rounded:t.bool,variant:t.string,size:t.number,style:t.object};x.defaultProps={rounded:!1,variant:"light",color:d.grey[900],className:"",size:24,style:{}};const J=C("span")`
3
3
  width: ${e=>e.size*2}px;
4
4
  height: ${e=>e.size*2}px;