@abtnode/webapp 1.17.3-beta-20251127-063055-94957209 → 1.17.3-beta-20251128-095123-a76cb6bc

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 (210) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-DU0D4sqH.js → AdapterDayjs-jQWZxlKZ.js} +1 -1
  4. package/dist/assets/{Add-BKe5i02H.js → Add-CM0i44L2.js} +1 -1
  5. package/dist/assets/ArrowDropDown-BrtzEFq8.js +1 -0
  6. package/dist/assets/{Autocomplete-DK0iCUAm.js → Autocomplete-BBHR-e2e.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-2mIcJJiP.js → Breadcrumbs-BaZ8MiUq.js} +1 -1
  8. package/dist/assets/{ButtonGroup-B86tCmd3.js → ButtonGroup-B_6MNBFc.js} +1 -1
  9. package/dist/assets/{CSSTransition-BZnv4uwU.js → CSSTransition-C6uS6QtZ.js} +1 -1
  10. package/dist/assets/{CallMerge-BdwpnGaL.js → CallMerge-CQP5GPxe.js} +1 -1
  11. package/dist/assets/{CardContent-B3Ns-1d7.js → CardContent-Ck7ja9MC.js} +1 -1
  12. package/dist/assets/{ChevronLeft-DKTuWlNz.js → ChevronLeft-C7cSHp9l.js} +1 -1
  13. package/dist/assets/{ChevronRight-U_VKk8yi.js → ChevronRight-BUUZmp3v.js} +1 -1
  14. package/dist/assets/{Clear-Bjaoevyy.js → Clear-CFi5u92e.js} +1 -1
  15. package/dist/assets/{DeleteOutline-1L0qVW5f.js → DeleteOutline-BHEKXTkO.js} +1 -1
  16. package/dist/assets/{Done-fcctYBnn.js → Done-DXPJGUWm.js} +1 -1
  17. package/dist/assets/{Edit-Df-gu5W0.js → Edit-JIlB-sRA.js} +1 -1
  18. package/dist/assets/{ErrorOutline-C2BuHaFO.js → ErrorOutline-DBqK27X8.js} +1 -1
  19. package/dist/assets/{FilterList-ip4QUiRE.js → FilterList-DqZHJbRG.js} +1 -1
  20. package/dist/assets/{Google-C4HUt8aJ.js → Google-KJc6rb0J.js} +1 -1
  21. package/dist/assets/{HelpOutline-Dn_yz-1h.js → HelpOutline-DswUhBxG.js} +1 -1
  22. package/dist/assets/{KeyboardArrowDown-C9ZFNMos.js → KeyboardArrowDown-BRIRZ0lk.js} +1 -1
  23. package/dist/assets/{Launch-CFi1NSiy.js → Launch-_uZBB3hy.js} +1 -1
  24. package/dist/assets/{Link-CQpp_kV1.js → Link-CvXyobEJ.js} +1 -1
  25. package/dist/assets/{ListItemButton-Dq8kjXAC.js → ListItemButton-BRQYff97.js} +1 -1
  26. package/dist/assets/{ListSubheader-BN5vdmXx.js → ListSubheader-BHGxSe1E.js} +1 -1
  27. package/dist/assets/{LoadingButton-YsBwLHRI.js → LoadingButton-BhZ8iOtK.js} +1 -1
  28. package/dist/assets/{MoreVert-BFhM4QD_.js → MoreVert-Ck4O28kx.js} +1 -1
  29. package/dist/assets/{OpenInNew-BQ_lyYyz.js → OpenInNew-BJk7hIVB.js} +1 -1
  30. package/dist/assets/{Refresh-BH-2JQxb.js → Refresh-kyiL1qX1.js} +1 -1
  31. package/dist/assets/{Search-XYz8f8XA.js → Search-BiQ8hlgr.js} +1 -1
  32. package/dist/assets/{Stepper-CgNQuoDq.js → Stepper-BJZfb2Le.js} +1 -1
  33. package/dist/assets/{Switch-D-GptXzp.js → Switch-UORzToTA.js} +1 -1
  34. package/dist/assets/{TableSearch-20ltCGV9.js → TableSearch-BQiqRB7D.js} +1 -1
  35. package/dist/assets/{ToggleButtonGroup-BeJ2H-vs.js → ToggleButtonGroup-CbzWaH4A.js} +1 -1
  36. package/dist/assets/{UnfoldMore-ogSRr9M8.js → UnfoldMore-DZ3laWH7.js} +1 -1
  37. package/dist/assets/{Verified-DoWJRqF2.js → Verified-M-1m4RTW.js} +1 -1
  38. package/dist/assets/{VerifiedUser-C8oAKXOY.js → VerifiedUser-C7mhQBkH.js} +1 -1
  39. package/dist/assets/{ViewList-B9yb0HBO.js → ViewList-DC04kVZ7.js} +1 -1
  40. package/dist/assets/{_createAggregator-Ctg83h-t.js → _createAggregator-BcN4GRYz.js} +1 -1
  41. package/dist/assets/actions-DSVBY-iK.js +1 -0
  42. package/dist/assets/{actions-CEVha9Lm.js → actions-e0cgLZ3F.js} +1 -1
  43. package/dist/assets/{agreement-Do9LS1H9.js → agreement-CMStdtDl.js} +1 -1
  44. package/dist/assets/api-DxqoYz8S.js +1 -0
  45. package/dist/assets/{appearance-BAXcLNQv.js → appearance-BbYVAqwM.js} +1 -1
  46. package/dist/assets/{ar-Dz5bxvSE.js → ar-BJZY7v5z.js} +2 -2
  47. package/dist/assets/{audit-logs-CNWSS6cO.js → audit-logs-B2Hvy3ws.js} +1 -1
  48. package/dist/assets/{base-chart-CtBedy-P.js → base-chart-Do9WtdQs.js} +1 -1
  49. package/dist/assets/{blocklet-Dcm-KWY0.js → blocklet-Cu8go6Cl.js} +1 -1
  50. package/dist/assets/{chain-B1M1oJUZ.js → chain-tpP2d9Lm.js} +1 -1
  51. package/dist/assets/{click-to-copy-UAGH53Qf.js → click-to-copy-BpBPaRWz.js} +1 -1
  52. package/dist/assets/cloneDeep-BAowUJcW.js +1 -0
  53. package/dist/assets/{collapse-SFvNptyB.js → collapse-DRRC0SCd.js} +1 -1
  54. package/dist/assets/{config-navigation-BXWbV-Cs.js → config-navigation-Ntc_O8HF.js} +46 -46
  55. package/dist/assets/connect-to-CTjQfAN3.js +29 -0
  56. package/dist/assets/{cssMode-a2Qinu_F.js → cssMode-MKOimR8r.js} +1 -1
  57. package/dist/assets/{de-Ztxy5vEB.js → de-BF0NHTXz.js} +2 -2
  58. package/dist/assets/{delete-confirm-CykvEZcZ.js → delete-confirm-DwwucGed.js} +1 -1
  59. package/dist/assets/{depsEqual-CNVuMuEd.js → depsEqual-DJ4V1mTU.js} +1 -1
  60. package/dist/assets/{detail-DgAURCp6.js → detail-BAwVCAFb.js} +3 -3
  61. package/dist/assets/{domains-DzUka-Py.js → domains-rlp68m61.js} +1 -1
  62. package/dist/assets/{download-DAgi3KG_.js → download-CizjGT3a.js} +1 -1
  63. package/dist/assets/{edit.svg-DYBjroym.js → edit.svg-CpLTrX1j.js} +1 -1
  64. package/dist/assets/emotion-cache.browser.esm-BLI6o2QB.js +1 -0
  65. package/dist/assets/engine-d9ZSaCl8.js +1 -0
  66. package/dist/assets/{es-Cd-spoK_.js → es-Dv2m4LXp.js} +2 -2
  67. package/dist/assets/{fr-k8jXteN1.js → fr-BGhg9oO3.js} +2 -2
  68. package/dist/assets/{freemarker2-C-5txAzw.js → freemarker2-dI1M-X6u.js} +1 -1
  69. package/dist/assets/{get-safe-url-slTYcduh.js → get-safe-url-CHuz2b-I.js} +1 -1
  70. package/dist/assets/getValidReactChildren-C8GIEouH.js +1 -0
  71. package/dist/assets/{graphqlMode-CqvY2dvn.js → graphqlMode-B_WmUdLw.js} +2 -2
  72. package/dist/assets/{handlebars-BYAvYDfA.js → handlebars-CRMti49n.js} +1 -1
  73. package/dist/assets/{hi-CvpI1-tn.js → hi-CPfDhW8g.js} +2 -2
  74. package/dist/assets/{html-BvL9XBVt.js → html-ermJICEG.js} +1 -1
  75. package/dist/assets/{html-title-C8DFoE3o.js → html-title-BQwqe1Ck.js} +1 -1
  76. package/dist/assets/{htmlMode-B2ou9eLB.js → htmlMode-B0bBi3DI.js} +1 -1
  77. package/dist/assets/{id-D8coHs1U.js → id-9TUzKF6k.js} +2 -2
  78. package/dist/assets/{iframe-B2nulerg.js → iframe-9SAgwJDT.js} +1 -1
  79. package/dist/assets/{index-t7M3AlIl.js → index-2c1VoOd9.js} +123 -126
  80. package/dist/assets/index-B0_NefDz.js +1 -0
  81. package/dist/assets/{index-C3LdZf6o.js → index-B6xNHlEj.js} +3 -3
  82. package/dist/assets/{index-o0W75sh0.js → index-BC4-BsXp.js} +1 -1
  83. package/dist/assets/index-BGQR0TyN.js +1 -0
  84. package/dist/assets/{index-DxHUxvwT.js → index-BNQ03H5g.js} +1 -1
  85. package/dist/assets/{index-Dxb5VoXb.js → index-BR8r-K4S.js} +1 -1
  86. package/dist/assets/{index-BQoDUo8G.js → index-BVtHC_qD.js} +3 -3
  87. package/dist/assets/{index-DE2n9InK.js → index-BkBk9uDM.js} +1 -1
  88. package/dist/assets/{index-BVPjbwFh.js → index-Bkx9VtR1.js} +3 -3
  89. package/dist/assets/{index-DcJaC3Zv.js → index-C34tPvay.js} +1 -1
  90. package/dist/assets/{index-BE_VxsDo.js → index-C3PPN1sd.js} +1 -1
  91. package/dist/assets/index-CBDLDE06.js +168 -0
  92. package/dist/assets/{index-D1v2ub6O.js → index-CCDLY5yo.js} +1 -1
  93. package/dist/assets/{index-CcoyIHc2.js → index-CNd2lEI7.js} +1 -1
  94. package/dist/assets/{index-DevzmDa7.js → index-CTialFzy.js} +1 -1
  95. package/dist/assets/{index-BeBFdIcq.js → index-CZVLqYhR.js} +1 -1
  96. package/dist/assets/{index-C4O6nFZK.js → index-CcHEbeR3.js} +1 -1
  97. package/dist/assets/{index-m59yehWt.js → index-CeI21XVA.js} +1 -1
  98. package/dist/assets/{index-DNQRuNMg.js → index-CeMW5u5M.js} +1 -1
  99. package/dist/assets/{index-B0ezkZD_.js → index-CmgnJ9Ac.js} +9 -9
  100. package/dist/assets/{index-C-ZSaiUf.js → index-CuNku1ac.js} +1 -1
  101. package/dist/assets/{index-MI1PE9cE.js → index-D-Q5yWhn.js} +1 -1
  102. package/dist/assets/{index-Cmq6DzBi.js → index-D1jZ55Sb.js} +1 -1
  103. package/dist/assets/{index-C4sXNe3X.js → index-D6WMVz-u.js} +1 -1
  104. package/dist/assets/{index-BYvHyq2X.js → index-D9QeG2FZ.js} +1 -1
  105. package/dist/assets/{index-Gy9GijRe.js → index-DCmGZYYq.js} +1 -1
  106. package/dist/assets/index-DF8exUsL.js +328 -0
  107. package/dist/assets/{index-DudW3VZ0.js → index-DGZbMOLi.js} +1 -1
  108. package/dist/assets/{index-CGPesPdM.js → index-DO977Avs.js} +1 -1
  109. package/dist/assets/{index-Dxe6NqUd.js → index-DOFLIkPm.js} +1 -1
  110. package/dist/assets/{index-BTZ0eV0N.js → index-DUpNrHpg.js} +1 -1
  111. package/dist/assets/{index-B7yK5r9r.js → index-DcBZKU5L.js} +1 -1
  112. package/dist/assets/{index-C-ikBis3.js → index-DtbxvdaD.js} +1 -1
  113. package/dist/assets/{index-DKNNRdfd.js → index-DtnSIrsF.js} +1 -1
  114. package/dist/assets/{index-B069rJrU.js → index-DuqULJQe.js} +1 -1
  115. package/dist/assets/{index-zEOfnqWp.js → index-Dz_Rmjb-.js} +1 -1
  116. package/dist/assets/{index-Dmm7CN3L.js → index-EhtXyCtH.js} +1 -1
  117. package/dist/assets/{index-B22sxjhK.js → index-IfVDnuZk.js} +1 -1
  118. package/dist/assets/{index-CzOe4kWN.js → index-OJESZDQE.js} +1 -1
  119. package/dist/assets/{index-BxE9QNGJ.js → index-gDj2o7RF.js} +1 -1
  120. package/dist/assets/{index-Cq0PEg3C.js → index-mI9L2BhQ.js} +1 -1
  121. package/dist/assets/{index-CQBXMXxB.js → index-n0Dm2HUt.js} +1 -1
  122. package/dist/assets/{index-DLW-FPc1.js → index-vpxPTR3F.js} +1 -1
  123. package/dist/assets/{index-DrzeWNxs.js → index-yXEFoIGg.js} +1 -1
  124. package/dist/assets/{index-Bk3Q7htA.js → index-zysAnh52.js} +2 -2
  125. package/dist/assets/{index.esm-y0ki7yla.js → index.esm-CgpVcU8p.js} +1 -1
  126. package/dist/assets/{install-from-url-bDGtH7bg.js → install-from-url-jU_rZbjX.js} +1 -1
  127. package/dist/assets/{invitation-BMQ8ii-U.js → invitation-DX_ynvNX.js} +1 -1
  128. package/dist/assets/{is-path-prefix-equal-6ZIHUdY4.js → is-path-prefix-equal-VKe4yShn.js} +1 -1
  129. package/dist/assets/{item-CcYR2iTB.js → item-D0BOEDZA.js} +9 -9
  130. package/dist/assets/{ja-Dkn5OA2r.js → ja-DT5bRsBF.js} +2 -2
  131. package/dist/assets/{javascript-Dv9tLB_N.js → javascript-DCfUrb2b.js} +1 -1
  132. package/dist/assets/{jsonMode-DUlsfgRc.js → jsonMode-DflwradV.js} +1 -1
  133. package/dist/assets/{ko-DXfRo0NY.js → ko-CJn9PyPz.js} +2 -2
  134. package/dist/assets/{liquid-C9JfvrHT.js → liquid-v5CyzMO1.js} +1 -1
  135. package/dist/assets/{list-header-DE2pVYNH.js → list-header-BsNw1q-X.js} +1 -1
  136. package/dist/assets/{lock.svg-DK6tzOS0.js → lock.svg-DcfL5WSZ.js} +1 -1
  137. package/dist/assets/{log-B0JHspX2.js → log-v9e9l2M0.js} +1 -1
  138. package/dist/assets/{lottie-react.esm-BQ1sE4G7.js → lottie-react.esm-CCtixTZh.js} +1 -1
  139. package/dist/assets/{mdx-D_F4JUXE.js → mdx-Ctxzc90y.js} +1 -1
  140. package/dist/assets/{memory-Ca0TT2wR.js → memory-BBW5cukR.js} +1 -1
  141. package/dist/assets/{metric-B_ux39Cy.js → metric-gyu0g4Df.js} +1 -1
  142. package/dist/assets/omit-B1xspwKB.js +1 -0
  143. package/dist/assets/{overview-DdKaJYs3.js → overview-CGezXNcq.js} +1 -1
  144. package/dist/assets/{permission-DL-rt2kz.js → permission-Dh9Y-pMK.js} +1 -1
  145. package/dist/assets/{preference-B32PPIXC.js → preference-CSylIZyx.js} +3 -3
  146. package/dist/assets/pt-K9FK6Ube.js +5 -0
  147. package/dist/assets/{python-DxxmtajH.js → python-OTBVRvfx.js} +1 -1
  148. package/dist/assets/{raf-schd.esm-C3uAJs0d.js → raf-schd.esm-CeLqNu5n.js} +1 -1
  149. package/dist/assets/{razor-C21hzdPt.js → razor-Dz96HacP.js} +1 -1
  150. package/dist/assets/{rotate-session-key-Cxb_738W.js → rotate-session-key-sNZ4agRi.js} +1 -1
  151. package/dist/assets/ru-C_RwukUu.js +5 -0
  152. package/dist/assets/{runtime-Bdx0ukMN.js → runtime-44wcxPEo.js} +1 -1
  153. package/dist/assets/schema-DTRR0KGi.js +1 -0
  154. package/dist/assets/sdk-DH9OjvLO.js +1 -0
  155. package/dist/assets/{service-BM2nSHO0.js → service-CrTKbt09.js} +1 -1
  156. package/dist/assets/{shorten-label-DnblKkIH.js → shorten-label-azqzn6Q0.js} +1 -1
  157. package/dist/assets/{simple-select-DPUPpFQ5.js → simple-select-Cjwynh2P.js} +1 -1
  158. package/dist/assets/{spaces-BKKKu_Dh.js → spaces-CImRuKfl.js} +1 -1
  159. package/dist/assets/{status-DtYf6aZS.js → status-BVLGfZ_U.js} +1 -1
  160. package/dist/assets/{status-COOoCu8i.js → status-DqZQuuxT.js} +1 -1
  161. package/dist/assets/{switch-control-CNmlIEr7.js → switch-control-uPmfeqt7.js} +1 -1
  162. package/dist/assets/{table-icons-C91WckX-.js → table-icons-j1shPhg0.js} +1 -1
  163. package/dist/assets/{team-DMp941g-.js → team-BOavcC7l.js} +1 -1
  164. package/dist/assets/th-Bhii_FfA.js +5 -0
  165. package/dist/assets/{toLower-BOZmijH1.js → toLower-DFhqc1Tx.js} +1 -1
  166. package/dist/assets/toUpper-BIz-OTsX.js +1 -0
  167. package/dist/assets/{traffic-CAtwfrwW.js → traffic-Dk3MPYPo.js} +1 -1
  168. package/dist/assets/{tsMode-BsmIUAx_.js → tsMode-DtrLBL88.js} +1 -1
  169. package/dist/assets/{typescript-CuXsCA8e.js → typescript-B_jxVxfT.js} +1 -1
  170. package/dist/assets/{url-evaluation-Dx99nTAj.js → url-evaluation-CKpb4hS-.js} +1 -1
  171. package/dist/assets/{url-join--uxDIQ5s.js → url-join-_MGxS-GP.js} +1 -1
  172. package/dist/assets/{use-mobile-gk4f0z32.js → use-mobile-CYJJmSLZ.js} +1 -1
  173. package/dist/assets/{use-mobile-B_qRraPN.js → use-mobile-DehCuxqg.js} +1 -1
  174. package/dist/assets/{useAsync-BkAVfcXM.js → useAsync-EJ0V06fl.js} +1 -1
  175. package/dist/assets/{useAsyncRetry-B53j1afR.js → useAsyncRetry-DTCkIRbI.js} +1 -1
  176. package/dist/assets/{useLocalStorage-BNDc6dCy.js → useLocalStorage-C5c8IOKv.js} +1 -1
  177. package/dist/assets/{useThemeProps-CWZCrmyJ.js → useThemeProps-Ddo6kYr5.js} +1 -1
  178. package/dist/assets/{util-Hbz7ULeM.js → util-CQYGkX3v.js} +1 -1
  179. package/dist/assets/vi-DVF2tjOG.js +5 -0
  180. package/dist/assets/{wait-container-BwhzxN9f.js → wait-container-Dt2QEBDD.js} +1 -1
  181. package/dist/assets/{without-wallet-Bms_Rs1m.js → without-wallet-DwaGUGcr.js} +1 -1
  182. package/dist/assets/wrap-locale-BSXSKo1t.js +1 -0
  183. package/dist/assets/{xml-jOEN8hj5.js → xml-TYsadqlU.js} +1 -1
  184. package/dist/assets/{yaml-DIuLKVgk.js → yaml-BeTZvw1b.js} +1 -1
  185. package/dist/assets/{zh-DB1zAstv.js → zh-98nxdLeR.js} +2 -2
  186. package/dist/assets/{zh-tw-DVMVT9am.js → zh-tw-BdDE7n5E.js} +2 -2
  187. package/dist/index.html +1 -1
  188. package/dist/service-worker.js +1 -1
  189. package/package.json +1 -1
  190. package/dist/assets/ArrowDropDown-DZ4LPniJ.js +0 -1
  191. package/dist/assets/actions-CcYVxFDV.js +0 -1
  192. package/dist/assets/api-BgkTVaD7.js +0 -1
  193. package/dist/assets/cloneDeep-a4PlXlaR.js +0 -1
  194. package/dist/assets/connect-to-C1HXhR31.js +0 -30
  195. package/dist/assets/emotion-cache.browser.esm-Dakakd0R.js +0 -1
  196. package/dist/assets/engine-4rlPqZXl.js +0 -1
  197. package/dist/assets/getValidReactChildren-D4p_s3zF.js +0 -1
  198. package/dist/assets/index-BIyZS31y.js +0 -168
  199. package/dist/assets/index-DDHwRT_8.js +0 -1
  200. package/dist/assets/index-Dd8DBQ06.js +0 -328
  201. package/dist/assets/index-PmpfUMid.js +0 -1
  202. package/dist/assets/omit-Cxe_6CRp.js +0 -1
  203. package/dist/assets/pt-CNQsUMCu.js +0 -5
  204. package/dist/assets/ru-CjyCft4V.js +0 -5
  205. package/dist/assets/schema-CSqqEtp_.js +0 -1
  206. package/dist/assets/sdk-C4od53R_.js +0 -1
  207. package/dist/assets/th-WQWRMKAv.js +0 -5
  208. package/dist/assets/toUpper-BVrGP8Kf.js +0 -1
  209. package/dist/assets/vi-Br98wbNi.js +0 -5
  210. package/dist/assets/wrap-locale-BYm00LUc.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as P,fK as ll,c5 as _o,fL as cl,fu as Mo,fM as ul,cW as Lo,aF as ur,j as i,fN as fl,fO as dl,cw as Tt,fP as or,ez as Je,fQ as Qs,fR as pl,fS as ml,fT as hl,fU as gl,fV as bl,fW as Js,fX as yl,fY as to,fZ as xl,f_ as vl,f$ as wl,g0 as Cl,eA as ro,g1 as ei,eB as Sl,cJ as qn,eC as jl,dF as El,g2 as Tl,g3 as Il,V as Ie,bn as Be,aP as ut,g4 as ti,H as Me,X as Ue,o as b,f as no,eO as ri,f5 as ni,n as xt,K as U,bY as kl,dL as Pl,by as Rl,au as ft,g5 as oi,S as jr,bk as Er,g6 as si,a_ as Dl,$ as et,t as lt,b1 as Ol,bA as qe,aU as Nt,E as oo,ff as Al,g7 as _l,g8 as Ml,g9 as Ll,D as Lr,T as Pe,bg as so,a3 as rr,ga as Nl,U as Et,b$ as Vt,c0 as zt,ck as ii,dO as rt,e_ as ce,c2 as Fl,b8 as _e,de as Tr,d8 as ai,c3 as dt,c4 as Rt,Q as kt,dK as li,db as Bl,gb as Nr,gc as ci,bD as it,bf as Ve,O as sr,bp as Ul,P as $n,as as ui,dH as ql,gd as Ir,bs as $l,at as ir,v as ze,C as bt,ge as Vl,h as Vn,aW as zl,w as Wl,x as Kl,s as He,p as fr,ac as dr,bE as Bt,gf as Hl,dG as Yl,dn as Gl,aH as gt,ay as yt,dy as Zl,gg as Xl,eD as Ql,gh as fi,gi as kr,gj as Jl,dI as ar,b as Se,W as io,dJ as ec,cv as di,z as tc,bu as ao,bv as pi,bw as lo,dq as hr,aD as rc,fJ as mi,N as lr,aS as nc,gk as hi,aE as oc,a8 as sc,gl as ic,c_ as gi,gm as ac,bz as No,y as lc,gn as cc,bG as uc,R as fc,M as dc}from"./index-t7M3AlIl.js";import{A as Ut}from"./Add-BKe5i02H.js";import{V as pc}from"./ViewList-B9yb0HBO.js";import{c as mc,H as co,g as hc}from"./index-BeBFdIcq.js";import{v as Fo}from"./index-DNQRuNMg.js";import{u as Ye}from"./team-DMp941g-.js";import{u as bi}from"./blocklet-Dcm-KWY0.js";import{S as yi}from"./Search-XYz8f8XA.js";import{y as Fr}from"./index-Dxe6NqUd.js";import{u as gc,C as Zt}from"./index.esm-y0ki7yla.js";import{S as bc}from"./Google-C4HUt8aJ.js";import{A as yc,a as gr}from"./Autocomplete-DK0iCUAm.js";import{U as xc}from"./UnfoldMore-ogSRr9M8.js";import{P as Pt}from"./permission-DL-rt2kz.js";import{C as Br}from"./click-to-copy-UAGH53Qf.js";import{s as vt,g as vc,S as wc,u as mt,a as xi,b as pr,c as vi,d as Ur,e as wi,f as uo,P as Ci,D as Si,h as Pr,M as tr,i as ji,j as Bo,k as nr,v as Cc,l as Sc,m as Uo,n as jc,o as Ec,p as Tc,q as Ic,C as kc,r as Pc,t as Rr,w as Lt,x as Dr,y as qo,z as $o,A as Rc,T as Dc,B as fo,E as Oc,F as Ac,G as _c,H as Mc,I as Lc,J as Nc,K as Fc,L as br,N as Ft,O as Ei,Q as Bc,V as zn,R as Ti,U as Uc,W as Vo,X as qc,Y as $c,Z as Vc,_ as zc,$ as Wc,a0 as Kc}from"./AdapterDayjs-DU0D4sqH.js";import{u as nt}from"./useThemeProps-CWZCrmyJ.js";import{a as zo,b as Hc,t as Yc,T as Gc}from"./html-title-C8DFoE3o.js";import{v as Ge}from"./index-DxHUxvwT.js";import{V as Zc}from"./Verified-DoWJRqF2.js";import{D as Xc}from"./DeleteOutline-1L0qVW5f.js";import{E as Wo}from"./ErrorOutline-C2BuHaFO.js";import{N as Qc}from"./index-CQBXMXxB.js";import{R as Ii,a as Sr,D as Jc}from"./url-evaluation-Dx99nTAj.js";import{b as Wn}from"./sdk-C4od53R_.js";import{u as eu}from"./index-DcJaC3Zv.js";import{u as ki}from"./use-mobile-B_qRraPN.js";import{A as tu}from"./actions-CcYVxFDV.js";import{S as ru}from"./shorten-label-DnblKkIH.js";import{U as Gr}from"./ua-parser-DP5omx3I.js";const nu=mc(P.useLayoutEffect);var Ko={},Ho;function ou(){return Ho||(Ho=1,function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(d){try{return d.defaultView&&d.defaultView.frameElement||null}catch{return null}}var t=function(d){for(var p=d,y=e(p);y;)p=y.ownerDocument,y=e(p);return p}(window.document),r=[],n=null,o=null;function c(d){this.time=d.time,this.target=d.target,this.rootBounds=S(d.rootBounds),this.boundingClientRect=S(d.boundingClientRect),this.intersectionRect=S(d.intersectionRect||w()),this.isIntersecting=!!d.intersectionRect;var p=this.boundingClientRect,y=p.width*p.height,E=this.intersectionRect,C=E.width*E.height;y?this.intersectionRatio=Number((C/y).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function s(d,p){var y=p||{};if(typeof d!="function")throw new Error("callback must be a function");if(y.root&&y.root.nodeType!=1&&y.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=a(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=d,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(y.rootMargin),this.thresholds=this._initThresholds(y.threshold),this.root=y.root||null,this.rootMargin=this._rootMarginValues.map(function(E){return E.value+E.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(d,p){!d||!p?o=w():o=j(d,p),r.forEach(function(y){y._checkForIntersections()})}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(d){var p=this._observationTargets.some(function(y){return y.element==d});if(!p){if(!(d&&d.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:d,entry:null}),this._monitorIntersections(d.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(d){this._observationTargets=this._observationTargets.filter(function(p){return p.element!=d}),this._unmonitorIntersections(d.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var d=this._queuedEntries.slice();return this._queuedEntries=[],d},s.prototype._initThresholds=function(d){var p=d||[0];return Array.isArray(p)||(p=[p]),p.sort().filter(function(y,E,C){if(typeof y!="number"||isNaN(y)||y<0||y>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return y!==C[E-1]})},s.prototype._parseRootMargin=function(d){var p=d||"0px",y=p.split(/\s+/).map(function(E){var C=/^(-?\d*\.?\d+)(px|%)$/.exec(E);if(!C)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(C[1]),unit:C[2]}});return y[1]=y[1]||y[0],y[2]=y[2]||y[0],y[3]=y[3]||y[1],y},s.prototype._monitorIntersections=function(d){var p=d.defaultView;if(p&&this._monitoringDocuments.indexOf(d)==-1){var y=this._checkForIntersections,E=null,C=null;this.POLL_INTERVAL?E=p.setInterval(y,this.POLL_INTERVAL):(u(p,"resize",y,!0),u(d,"scroll",y,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in p&&(C=new p.MutationObserver(y),C.observe(d,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(d),this._monitoringUnsubscribes.push(function(){var D=d.defaultView;D&&(E&&D.clearInterval(E),f(D,"resize",y,!0)),f(d,"scroll",y,!0),C&&C.disconnect()});var T=this.root&&(this.root.ownerDocument||this.root)||t;if(d!=T){var I=e(d);I&&this._monitorIntersections(I.ownerDocument)}}},s.prototype._unmonitorIntersections=function(d){var p=this._monitoringDocuments.indexOf(d);if(p!=-1){var y=this.root&&(this.root.ownerDocument||this.root)||t,E=this._observationTargets.some(function(I){var D=I.element.ownerDocument;if(D==d)return!0;for(;D&&D!=y;){var N=e(D);if(D=N&&N.ownerDocument,D==d)return!0}return!1});if(!E){var C=this._monitoringUnsubscribes[p];if(this._monitoringDocuments.splice(p,1),this._monitoringUnsubscribes.splice(p,1),C(),d!=y){var T=e(d);T&&this._unmonitorIntersections(T.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var d=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var p=0;p<d.length;p++)d[p]()},s.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!o)){var d=this._rootIsInDom(),p=d?this._getRootRect():w();this._observationTargets.forEach(function(y){var E=y.element,C=v(E),T=this._rootContainsTarget(E),I=y.entry,D=d&&T&&this._computeTargetAndRootIntersection(E,C,p),N=null;this._rootContainsTarget(E)?(!n||this.root)&&(N=p):N=w();var B=y.entry=new c({time:l(),target:E,boundingClientRect:C,rootBounds:N,intersectionRect:D});I?d&&T?this._hasCrossedThreshold(I,B)&&this._queuedEntries.push(B):I&&I.isIntersecting&&this._queuedEntries.push(B):this._queuedEntries.push(B)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(d,p,y){if(window.getComputedStyle(d).display!="none"){for(var E=p,C=m(d),T=!1;!T&&C;){var I=null,D=C.nodeType==1?window.getComputedStyle(C):{};if(D.display=="none")return null;if(C==this.root||C.nodeType==9)if(T=!0,C==this.root||C==t)n&&!this.root?!o||o.width==0&&o.height==0?(C=null,I=null,E=null):I=o:I=y;else{var N=m(C),B=N&&v(N),W=N&&this._computeTargetAndRootIntersection(N,B,y);B&&W?(C=N,I=j(B,W)):(C=null,E=null)}else{var ne=C.ownerDocument;C!=ne.body&&C!=ne.documentElement&&D.overflow!="visible"&&(I=v(C))}if(I&&(E=h(I,E)),!E)break;C=C&&m(C)}return E}},s.prototype._getRootRect=function(){var d;if(this.root&&!g(this.root))d=v(this.root);else{var p=g(this.root)?this.root:t,y=p.documentElement,E=p.body;d={top:0,left:0,right:y.clientWidth||E.clientWidth,width:y.clientWidth||E.clientWidth,bottom:y.clientHeight||E.clientHeight,height:y.clientHeight||E.clientHeight}}return this._expandRectByRootMargin(d)},s.prototype._expandRectByRootMargin=function(d){var p=this._rootMarginValues.map(function(E,C){return E.unit=="px"?E.value:E.value*(C%2?d.width:d.height)/100}),y={top:d.top-p[0],right:d.right+p[1],bottom:d.bottom+p[2],left:d.left-p[3]};return y.width=y.right-y.left,y.height=y.bottom-y.top,y},s.prototype._hasCrossedThreshold=function(d,p){var y=d&&d.isIntersecting?d.intersectionRatio||0:-1,E=p.isIntersecting?p.intersectionRatio||0:-1;if(y!==E)for(var C=0;C<this.thresholds.length;C++){var T=this.thresholds[C];if(T==y||T==E||T<y!=T<E)return!0}},s.prototype._rootIsInDom=function(){return!this.root||x(t,this.root)},s.prototype._rootContainsTarget=function(d){var p=this.root&&(this.root.ownerDocument||this.root)||t;return x(p,d)&&(!this.root||p==d.ownerDocument)},s.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},s.prototype._unregisterInstance=function(){var d=r.indexOf(this);d!=-1&&r.splice(d,1)};function l(){return window.performance&&performance.now&&performance.now()}function a(d,p){var y=null;return function(){y||(y=setTimeout(function(){d(),y=null},p))}}function u(d,p,y,E){typeof d.addEventListener=="function"?d.addEventListener(p,y,E):typeof d.attachEvent=="function"&&d.attachEvent("on"+p,y)}function f(d,p,y,E){typeof d.removeEventListener=="function"?d.removeEventListener(p,y,E):typeof d.detachEvent=="function"&&d.detachEvent("on"+p,y)}function h(d,p){var y=Math.max(d.top,p.top),E=Math.min(d.bottom,p.bottom),C=Math.max(d.left,p.left),T=Math.min(d.right,p.right),I=T-C,D=E-y;return I>=0&&D>=0&&{top:y,bottom:E,left:C,right:T,width:I,height:D}||null}function v(d){var p;try{p=d.getBoundingClientRect()}catch{}return p?(p.width&&p.height||(p={top:p.top,right:p.right,bottom:p.bottom,left:p.left,width:p.right-p.left,height:p.bottom-p.top}),p):w()}function w(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function S(d){return!d||"x"in d?d:{top:d.top,y:d.top,bottom:d.bottom,left:d.left,x:d.left,right:d.right,width:d.width,height:d.height}}function j(d,p){var y=p.top-d.top,E=p.left-d.left;return{top:y,left:E,height:p.height,width:p.width,bottom:y+p.height,right:E+p.width}}function x(d,p){for(var y=p;y;){if(y==d)return!0;y=m(y)}return!1}function m(d){var p=d.parentNode;return d.nodeType==9&&d!=t?e(d):(p&&p.assignedSlot&&(p=p.assignedSlot.parentNode),p&&p.nodeType==11&&p.host?p.host:p)}function g(d){return d&&d.nodeType===9}window.IntersectionObserver=s,window.IntersectionObserverEntry=c}()),Ko}ou();function su(e,t){var r={},n=r.callback,o=ll(r,["callback"]),c=_o(P.useState(),2),s=c[0],l=c[1],a=_o(P.useState(),2),u=a[0],f=a[1];return cl(function(){var h=Array.isArray(e)?e:[e],v=h.map(function(S){return Mo(S)}).filter(Boolean);if(v.length){var w=new IntersectionObserver(function(S){var j,x;try{for(var m=ul(S),g=m.next();!g.done;g=m.next()){var d=g.value;f(d.intersectionRatio),l(d.isIntersecting),n?.(d)}}catch(p){j={error:p}}finally{try{g&&!g.done&&(x=m.return)&&x.call(m)}finally{if(j)throw j.error}}},Lo(Lo({},o),{root:Mo(void 0)}));return v.forEach(function(S){return w.observe(S)}),function(){w.disconnect()}}},[void 0,void 0,n],e),[s,u]}const iu=ur(i.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),au=ur(i.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),qr=ur([i.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M13 20.01 4 11V4h7v-.01l9 9z"},"0"),i.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")]),lu=ur(i.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),cu=ur(i.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),Pi=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),P.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),P.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Ri=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})),Di=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),P.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),uu=e=>P.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("g",{clipPath:"url(#clip0)"},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})),P.createElement("defs",null,P.createElement("clipPath",{id:"clip0"},P.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),Oi=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10C3.25 6.27208 6.27208 3.25 10 3.25C13.7279 3.25 16.75 6.27208 16.75 10C16.75 13.7279 13.7279 16.75 10 16.75C6.27208 16.75 3.25 13.7279 3.25 10ZM10 1.75C5.44365 1.75 1.75 5.44365 1.75 10C1.75 14.5564 5.44365 18.25 10 18.25C14.5563 18.25 18.25 14.5564 18.25 10C18.25 5.44365 14.5563 1.75 10 1.75ZM8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L11.9697 13.0303C12.2626 13.3232 12.7374 13.3232 13.0303 13.0303C13.3232 12.7374 13.3232 12.2626 13.0303 11.9697L8.03033 6.96967Z"}));var Zr={},Xr,Yo;function fu(){return Yo||(Yo=1,Xr=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Xr}var Qr,Go;function du(){if(Go)return Qr;Go=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(s,l){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;l=l||1;var a=s.slice(0,l),u=s.slice(l);return Array.prototype.concat.call([],n(a),n(u))}function o(s){try{return decodeURIComponent(s)}catch{for(var l=s.match(t)||[],a=1;a<l.length;a++)s=n(l,a).join(""),l=s.match(t)||[];return s}}function c(s){for(var l={"%FE%FF":"��","%FF%FE":"��"},a=r.exec(s);a;){try{l[a[0]]=decodeURIComponent(a[0])}catch{var u=o(a[0]);u!==a[0]&&(l[a[0]]=u)}a=r.exec(s)}l["%C2"]="�";for(var f=Object.keys(l),h=0;h<f.length;h++){var v=f[h];s=s.replace(new RegExp(v,"g"),l[v])}return s}return Qr=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return c(s)}},Qr}var Jr,Zo;function pu(){return Zo||(Zo=1,Jr=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),Jr}var en,Xo;function mu(){return Xo||(Xo=1,en=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),c=0;c<n.length;c++){var s=n[c],l=e[s];(o?t.indexOf(s)!==-1:t(s,l,e))&&(r[s]=l)}return r}),en}var Qo;function hu(){return Qo||(Qo=1,function(e){const t=fu(),r=du(),n=pu(),o=mu(),c=m=>m==null;function s(m){switch(m.arrayFormat){case"index":return g=>(d,p)=>{const y=d.length;return p===void 0||m.skipNull&&p===null||m.skipEmptyString&&p===""?d:p===null?[...d,[u(g,m),"[",y,"]"].join("")]:[...d,[u(g,m),"[",u(y,m),"]=",u(p,m)].join("")]};case"bracket":return g=>(d,p)=>p===void 0||m.skipNull&&p===null||m.skipEmptyString&&p===""?d:p===null?[...d,[u(g,m),"[]"].join("")]:[...d,[u(g,m),"[]=",u(p,m)].join("")];case"comma":case"separator":return g=>(d,p)=>p==null||p.length===0?d:d.length===0?[[u(g,m),"=",u(p,m)].join("")]:[[d,u(p,m)].join(m.arrayFormatSeparator)];default:return g=>(d,p)=>p===void 0||m.skipNull&&p===null||m.skipEmptyString&&p===""?d:p===null?[...d,u(g,m)]:[...d,[u(g,m),"=",u(p,m)].join("")]}}function l(m){let g;switch(m.arrayFormat){case"index":return(d,p,y)=>{if(g=/\[(\d*)\]$/.exec(d),d=d.replace(/\[\d*\]$/,""),!g){y[d]=p;return}y[d]===void 0&&(y[d]={}),y[d][g[1]]=p};case"bracket":return(d,p,y)=>{if(g=/(\[\])$/.exec(d),d=d.replace(/\[\]$/,""),!g){y[d]=p;return}if(y[d]===void 0){y[d]=[p];return}y[d]=[].concat(y[d],p)};case"comma":case"separator":return(d,p,y)=>{const E=typeof p=="string"&&p.includes(m.arrayFormatSeparator),C=typeof p=="string"&&!E&&f(p,m).includes(m.arrayFormatSeparator);p=C?f(p,m):p;const T=E||C?p.split(m.arrayFormatSeparator).map(I=>f(I,m)):p===null?p:f(p,m);y[d]=T};default:return(d,p,y)=>{if(y[d]===void 0){y[d]=p;return}y[d]=[].concat(y[d],p)}}}function a(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(m,g){return g.encode?g.strict?t(m):encodeURIComponent(m):m}function f(m,g){return g.decode?r(m):m}function h(m){return Array.isArray(m)?m.sort():typeof m=="object"?h(Object.keys(m)).sort((g,d)=>Number(g)-Number(d)).map(g=>m[g]):m}function v(m){const g=m.indexOf("#");return g!==-1&&(m=m.slice(0,g)),m}function w(m){let g="";const d=m.indexOf("#");return d!==-1&&(g=m.slice(d)),g}function S(m){m=v(m);const g=m.indexOf("?");return g===-1?"":m.slice(g+1)}function j(m,g){return g.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):g.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function x(m,g){g=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},g),a(g.arrayFormatSeparator);const d=l(g),p=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return p;for(const y of m.split("&")){if(y==="")continue;let[E,C]=n(g.decode?y.replace(/\+/g," "):y,"=");C=C===void 0?null:["comma","separator"].includes(g.arrayFormat)?C:f(C,g),d(f(E,g),C,p)}for(const y of Object.keys(p)){const E=p[y];if(typeof E=="object"&&E!==null)for(const C of Object.keys(E))E[C]=j(E[C],g);else p[y]=j(E,g)}return g.sort===!1?p:(g.sort===!0?Object.keys(p).sort():Object.keys(p).sort(g.sort)).reduce((y,E)=>{const C=p[E];return C&&typeof C=="object"&&!Array.isArray(C)?y[E]=h(C):y[E]=C,y},Object.create(null))}e.extract=S,e.parse=x,e.stringify=(m,g)=>{if(!m)return"";g=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},g),a(g.arrayFormatSeparator);const d=C=>g.skipNull&&c(m[C])||g.skipEmptyString&&m[C]==="",p=s(g),y={};for(const C of Object.keys(m))d(C)||(y[C]=m[C]);const E=Object.keys(y);return g.sort!==!1&&E.sort(g.sort),E.map(C=>{const T=m[C];return T===void 0?"":T===null?u(C,g):Array.isArray(T)?T.reduce(p(C),[]).join("&"):u(C,g)+"="+u(T,g)}).filter(C=>C.length>0).join("&")},e.parseUrl=(m,g)=>{g=Object.assign({decode:!0},g);const[d,p]=n(m,"#");return Object.assign({url:d.split("?")[0]||"",query:x(S(m),g)},g&&g.parseFragmentIdentifier&&p?{fragmentIdentifier:f(p,g)}:{})},e.stringifyUrl=(m,g)=>{g=Object.assign({encode:!0,strict:!0},g);const d=v(m.url).split("?")[0]||"",p=e.extract(m.url),y=e.parse(p,{sort:!1}),E=Object.assign(y,m.query);let C=e.stringify(E,g);C&&(C=`?${C}`);let T=w(m.url);return m.fragmentIdentifier&&(T=`#${u(m.fragmentIdentifier,g)}`),`${d}${C}${T}`},e.pick=(m,g,d)=>{d=Object.assign({parseFragmentIdentifier:!0},d);const{url:p,query:y,fragmentIdentifier:E}=e.parseUrl(m,d);return e.stringifyUrl({url:p,query:o(y,g),fragmentIdentifier:E},d)},e.exclude=(m,g,d)=>{const p=Array.isArray(g)?y=>!g.includes(y):(y,E)=>!g(y,E);return e.pick(m,p,d)}}(Zr)),Zr}var tn=hu();const Xt=fl,gu={parseNumbers:!1,parseBooleans:!1},bu={skipNull:!1,skipEmptyString:!1},yu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:c,stringifyOptions:s}={},l=Object.assign(Object.assign({},gu),c),a=Object.assign(Object.assign({},bu),s),u=Xt.useLocation(),f=(r=Xt.useHistory)===null||r===void 0?void 0:r.call(Xt),h=(n=Xt.useNavigate)===null||n===void 0?void 0:n.call(Xt),v=dl(),w=P.useRef(typeof e=="function"?e():e||{}),S=P.useMemo(()=>tn.parse(u.search,l),[u.search]),j=P.useMemo(()=>Object.assign(Object.assign({},w.current),S),[S]);return[j,Tt(m=>{const g=typeof m=="function"?m(j):m;v(),f&&f[o]({hash:u.hash,search:tn.stringify(Object.assign(Object.assign({},S),g),a)||"?"},u.state),h&&h({hash:u.hash,search:tn.stringify(Object.assign(Object.assign({},S),g),a)||"?"},{replace:o==="replace",state:u.state})})]};var jt={},Qt={},rn={exports:{}},nn={},Jo;function Ai(){if(Jo)return nn;Jo=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(g)}function t(g,d,p){return Object.defineProperty(g,"prototype",{writable:!1}),g}function r(g,d){if(!(g instanceof d))throw new TypeError("Cannot call a class as a function")}function n(g,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(d&&d.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),d&&o(g,d)}function o(g,d){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,E){return y.__proto__=E,y},o(g,d)}function c(g){var d=a();return function(){var y=u(g),E;if(d){var C=u(this).constructor;E=Reflect.construct(y,arguments,C)}else E=y.apply(this,arguments);return s(this,E)}}function s(g,d){if(d&&(e(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(g)}function l(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function a(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(g){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},u(g)}var f={},h,v;function w(g,d,p){p||(p=Error);function y(C,T,I){return typeof d=="string"?d:d(C,T,I)}var E=function(C){n(I,C);var T=c(I);function I(D,N,B){var W;return r(this,I),W=T.call(this,y(D,N,B)),W.code=g,W}return t(I)}(p);f[g]=E}function S(g,d){if(Array.isArray(g)){var p=g.length;return g=g.map(function(y){return String(y)}),p>2?"one of ".concat(d," ").concat(g.slice(0,p-1).join(", "),", or ")+g[p-1]:p===2?"one of ".concat(d," ").concat(g[0]," or ").concat(g[1]):"of ".concat(d," ").concat(g[0])}else return"of ".concat(d," ").concat(String(g))}function j(g,d,p){return g.substr(0,d.length)===d}function x(g,d,p){return(p===void 0||p>g.length)&&(p=g.length),g.substring(p-d.length,p)===d}function m(g,d,p){return typeof p!="number"&&(p=0),p+d.length>g.length?!1:g.indexOf(d,p)!==-1}return w("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),w("ERR_INVALID_ARG_TYPE",function(g,d,p){h===void 0&&(h=Kn()),h(typeof g=="string","'name' must be a string");var y;typeof d=="string"&&j(d,"not ")?(y="must not be",d=d.replace(/^not /,"")):y="must be";var E;if(x(g," argument"))E="The ".concat(g," ").concat(y," ").concat(S(d,"type"));else{var C=m(g,".")?"property":"argument";E='The "'.concat(g,'" ').concat(C," ").concat(y," ").concat(S(d,"type"))}return E+=". Received type ".concat(e(p)),E},TypeError),w("ERR_INVALID_ARG_VALUE",function(g,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";v===void 0&&(v=or());var y=v.inspect(d);return y.length>128&&(y="".concat(y.slice(0,128),"...")),"The argument '".concat(g,"' ").concat(p,". Received ").concat(y)},TypeError),w("ERR_INVALID_RETURN_VALUE",function(g,d,p){var y;return p&&p.constructor&&p.constructor.name?y="instance of ".concat(p.constructor.name):y="type ".concat(e(p)),"Expected ".concat(g,' to be returned from the "').concat(d,'"')+" function but got ".concat(y,".")},TypeError),w("ERR_MISSING_ARGS",function(){for(var g=arguments.length,d=new Array(g),p=0;p<g;p++)d[p]=arguments[p];h===void 0&&(h=Kn()),h(d.length>0,"At least one arg needs to be specified");var y="The ",E=d.length;switch(d=d.map(function(C){return'"'.concat(C,'"')}),E){case 1:y+="".concat(d[0]," argument");break;case 2:y+="".concat(d[0]," and ").concat(d[1]," arguments");break;default:y+=d.slice(0,E-1).join(", "),y+=", and ".concat(d[E-1]," arguments");break}return"".concat(y," must be specified")},TypeError),nn.codes=f,nn}var on,es;function xu(){if(es)return on;es=1;function e(_,F){var G=Object.keys(_);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(_);F&&(H=H.filter(function(Q){return Object.getOwnPropertyDescriptor(_,Q).enumerable})),G.push.apply(G,H)}return G}function t(_){for(var F=1;F<arguments.length;F++){var G=arguments[F]!=null?arguments[F]:{};F%2?e(Object(G),!0).forEach(function(H){r(_,H,G[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(G)):e(Object(G)).forEach(function(H){Object.defineProperty(_,H,Object.getOwnPropertyDescriptor(G,H))})}return _}function r(_,F,G){return F=s(F),F in _?Object.defineProperty(_,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):_[F]=G,_}function n(_,F){if(!(_ instanceof F))throw new TypeError("Cannot call a class as a function")}function o(_,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(_,s(H.key),H)}}function c(_,F,G){return F&&o(_.prototype,F),Object.defineProperty(_,"prototype",{writable:!1}),_}function s(_){var F=l(_,"string");return g(F)==="symbol"?F:String(F)}function l(_,F){if(g(_)!=="object"||_===null)return _;var G=_[Symbol.toPrimitive];if(G!==void 0){var H=G.call(_,F);if(g(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(_)}function a(_,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(F&&F.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),F&&x(_,F)}function u(_){var F=S();return function(){var H=m(_),Q;if(F){var A=m(this).constructor;Q=Reflect.construct(H,arguments,A)}else Q=H.apply(this,arguments);return f(this,Q)}}function f(_,F){if(F&&(g(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(_)}function h(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function v(_){var F=typeof Map=="function"?new Map:void 0;return v=function(H){if(H===null||!j(H))return H;if(typeof H!="function")throw new TypeError("Super expression must either be null or a function");if(typeof F<"u"){if(F.has(H))return F.get(H);F.set(H,Q)}function Q(){return w(H,arguments,m(this).constructor)}return Q.prototype=Object.create(H.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),x(Q,H)},v(_)}function w(_,F,G){return S()?w=Reflect.construct.bind():w=function(Q,A,R){var M=[null];M.push.apply(M,A);var z=Function.bind.apply(Q,M),L=new z;return R&&x(L,R.prototype),L},w.apply(null,arguments)}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function j(_){return Function.toString.call(_).indexOf("[native code]")!==-1}function x(_,F){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,Q){return H.__proto__=Q,H},x(_,F)}function m(_){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},m(_)}function g(_){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},g(_)}var d=or(),p=d.inspect,y=Ai(),E=y.codes.ERR_INVALID_ARG_TYPE;function C(_,F,G){return(G===void 0||G>_.length)&&(G=_.length),_.substring(G-F.length,G)===F}function T(_,F){if(F=Math.floor(F),_.length==0||F==0)return"";var G=_.length*F;for(F=Math.floor(Math.log(F)/Math.log(2));F;)_+=_,F--;return _+=_.substring(0,G-_.length),_}var I="",D="",N="",B="",W={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ne=10;function te(_){var F=Object.keys(_),G=Object.create(Object.getPrototypeOf(_));return F.forEach(function(H){G[H]=_[H]}),Object.defineProperty(G,"message",{value:_.message}),G}function ge(_){return p(_,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Ce(_,F,G){var H="",Q="",A=0,R="",M=!1,z=ge(_),L=z.split(`
1
+ import{r as P,fK as ll,c5 as _o,fL as cl,ft as Mo,fM as ul,cW as Lo,aF as ur,j as i,fN as fl,fO as dl,cw as Tt,fP as or,ez as Je,fQ as Qs,fR as pl,fS as ml,fT as hl,fU as gl,fV as bl,fW as Js,fX as yl,fY as to,fZ as xl,f_ as vl,f$ as wl,g0 as Cl,eA as ro,g1 as ei,eB as Sl,cJ as qn,eC as jl,dF as El,g2 as Tl,g3 as Il,V as Ie,bn as Be,aP as ut,g4 as ti,H as Me,X as Ue,o as b,f as no,eO as ri,f5 as ni,n as xt,K as U,bY as kl,dL as Pl,by as Rl,au as ft,g5 as oi,S as jr,bk as Er,g6 as si,a_ as Dl,$ as et,t as lt,b1 as Ol,bA as qe,aU as Nt,E as oo,fe as Al,g7 as _l,g8 as Ml,g9 as Ll,D as Lr,T as Pe,bg as so,a3 as rr,ga as Nl,U as Et,b$ as Vt,c0 as zt,ck as ii,dO as rt,e_ as ce,c2 as Fl,b8 as _e,de as Tr,d8 as ai,c3 as dt,c4 as Rt,Q as kt,dK as li,db as Bl,gb as Nr,gc as ci,bD as it,bf as Ve,O as sr,bp as Ul,P as $n,as as ui,dH as ql,gd as Ir,bs as $l,at as ir,v as ze,C as bt,ge as Vl,h as Vn,aW as zl,w as Wl,x as Kl,s as He,p as fr,ac as dr,bE as Bt,gf as Hl,dG as Yl,dn as Gl,aH as gt,ay as yt,dy as Zl,gg as Xl,eD as Ql,gh as fi,gi as kr,gj as Jl,dI as ar,b as Se,W as io,dJ as ec,cv as di,z as tc,bu as ao,bv as pi,bw as lo,dq as hr,aD as rc,fJ as mi,N as lr,aS as nc,gk as hi,aE as oc,a8 as sc,gl as ic,c_ as gi,gm as ac,bz as No,y as lc,gn as cc,bG as uc,R as fc,M as dc}from"./index-2c1VoOd9.js";import{A as Ut}from"./Add-CM0i44L2.js";import{V as pc}from"./ViewList-DC04kVZ7.js";import{c as mc,H as co,g as hc}from"./index-CZVLqYhR.js";import{v as Fo}from"./index-CeMW5u5M.js";import{u as Ye}from"./team-BOavcC7l.js";import{u as bi}from"./blocklet-Cu8go6Cl.js";import{S as yi}from"./Search-BiQ8hlgr.js";import{y as Fr}from"./index-DOFLIkPm.js";import{u as gc,C as Zt}from"./index.esm-CgpVcU8p.js";import{S as bc}from"./Google-KJc6rb0J.js";import{A as yc,a as gr}from"./Autocomplete-BBHR-e2e.js";import{U as xc}from"./UnfoldMore-DZ3laWH7.js";import{P as Pt}from"./permission-Dh9Y-pMK.js";import{C as Br}from"./click-to-copy-BpBPaRWz.js";import{s as vt,g as vc,S as wc,u as mt,a as xi,b as pr,c as vi,d as Ur,e as wi,f as uo,P as Ci,D as Si,h as Pr,M as tr,i as ji,j as Bo,k as nr,v as Cc,l as Sc,m as Uo,n as jc,o as Ec,p as Tc,q as Ic,C as kc,r as Pc,t as Rr,w as Lt,x as Dr,y as qo,z as $o,A as Rc,T as Dc,B as fo,E as Oc,F as Ac,G as _c,H as Mc,I as Lc,J as Nc,K as Fc,L as br,N as Ft,O as Ei,Q as Bc,V as zn,R as Ti,U as Uc,W as Vo,X as qc,Y as $c,Z as Vc,_ as zc,$ as Wc,a0 as Kc}from"./AdapterDayjs-jQWZxlKZ.js";import{u as nt}from"./useThemeProps-Ddo6kYr5.js";import{a as zo,b as Hc,t as Yc,T as Gc}from"./html-title-BQwqe1Ck.js";import{v as Ge}from"./index-BNQ03H5g.js";import{V as Zc}from"./Verified-M-1m4RTW.js";import{D as Xc}from"./DeleteOutline-BHEKXTkO.js";import{E as Wo}from"./ErrorOutline-DBqK27X8.js";import{N as Qc}from"./index-n0Dm2HUt.js";import{R as Ii,a as Sr,D as Jc}from"./url-evaluation-CKpb4hS-.js";import{b as Wn}from"./sdk-DH9OjvLO.js";import{u as eu}from"./index-C34tPvay.js";import{u as ki}from"./use-mobile-DehCuxqg.js";import{A as tu}from"./actions-DSVBY-iK.js";import{S as ru}from"./shorten-label-azqzn6Q0.js";import{U as Gr}from"./ua-parser-DP5omx3I.js";const nu=mc(P.useLayoutEffect);var Ko={},Ho;function ou(){return Ho||(Ho=1,function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(d){try{return d.defaultView&&d.defaultView.frameElement||null}catch{return null}}var t=function(d){for(var p=d,y=e(p);y;)p=y.ownerDocument,y=e(p);return p}(window.document),r=[],n=null,o=null;function c(d){this.time=d.time,this.target=d.target,this.rootBounds=S(d.rootBounds),this.boundingClientRect=S(d.boundingClientRect),this.intersectionRect=S(d.intersectionRect||w()),this.isIntersecting=!!d.intersectionRect;var p=this.boundingClientRect,y=p.width*p.height,E=this.intersectionRect,C=E.width*E.height;y?this.intersectionRatio=Number((C/y).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function s(d,p){var y=p||{};if(typeof d!="function")throw new Error("callback must be a function");if(y.root&&y.root.nodeType!=1&&y.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=a(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=d,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(y.rootMargin),this.thresholds=this._initThresholds(y.threshold),this.root=y.root||null,this.rootMargin=this._rootMarginValues.map(function(E){return E.value+E.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(d,p){!d||!p?o=w():o=j(d,p),r.forEach(function(y){y._checkForIntersections()})}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(d){var p=this._observationTargets.some(function(y){return y.element==d});if(!p){if(!(d&&d.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:d,entry:null}),this._monitorIntersections(d.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(d){this._observationTargets=this._observationTargets.filter(function(p){return p.element!=d}),this._unmonitorIntersections(d.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var d=this._queuedEntries.slice();return this._queuedEntries=[],d},s.prototype._initThresholds=function(d){var p=d||[0];return Array.isArray(p)||(p=[p]),p.sort().filter(function(y,E,C){if(typeof y!="number"||isNaN(y)||y<0||y>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return y!==C[E-1]})},s.prototype._parseRootMargin=function(d){var p=d||"0px",y=p.split(/\s+/).map(function(E){var C=/^(-?\d*\.?\d+)(px|%)$/.exec(E);if(!C)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(C[1]),unit:C[2]}});return y[1]=y[1]||y[0],y[2]=y[2]||y[0],y[3]=y[3]||y[1],y},s.prototype._monitorIntersections=function(d){var p=d.defaultView;if(p&&this._monitoringDocuments.indexOf(d)==-1){var y=this._checkForIntersections,E=null,C=null;this.POLL_INTERVAL?E=p.setInterval(y,this.POLL_INTERVAL):(u(p,"resize",y,!0),u(d,"scroll",y,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in p&&(C=new p.MutationObserver(y),C.observe(d,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(d),this._monitoringUnsubscribes.push(function(){var D=d.defaultView;D&&(E&&D.clearInterval(E),f(D,"resize",y,!0)),f(d,"scroll",y,!0),C&&C.disconnect()});var T=this.root&&(this.root.ownerDocument||this.root)||t;if(d!=T){var I=e(d);I&&this._monitorIntersections(I.ownerDocument)}}},s.prototype._unmonitorIntersections=function(d){var p=this._monitoringDocuments.indexOf(d);if(p!=-1){var y=this.root&&(this.root.ownerDocument||this.root)||t,E=this._observationTargets.some(function(I){var D=I.element.ownerDocument;if(D==d)return!0;for(;D&&D!=y;){var N=e(D);if(D=N&&N.ownerDocument,D==d)return!0}return!1});if(!E){var C=this._monitoringUnsubscribes[p];if(this._monitoringDocuments.splice(p,1),this._monitoringUnsubscribes.splice(p,1),C(),d!=y){var T=e(d);T&&this._unmonitorIntersections(T.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var d=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var p=0;p<d.length;p++)d[p]()},s.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!o)){var d=this._rootIsInDom(),p=d?this._getRootRect():w();this._observationTargets.forEach(function(y){var E=y.element,C=v(E),T=this._rootContainsTarget(E),I=y.entry,D=d&&T&&this._computeTargetAndRootIntersection(E,C,p),N=null;this._rootContainsTarget(E)?(!n||this.root)&&(N=p):N=w();var B=y.entry=new c({time:l(),target:E,boundingClientRect:C,rootBounds:N,intersectionRect:D});I?d&&T?this._hasCrossedThreshold(I,B)&&this._queuedEntries.push(B):I&&I.isIntersecting&&this._queuedEntries.push(B):this._queuedEntries.push(B)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(d,p,y){if(window.getComputedStyle(d).display!="none"){for(var E=p,C=m(d),T=!1;!T&&C;){var I=null,D=C.nodeType==1?window.getComputedStyle(C):{};if(D.display=="none")return null;if(C==this.root||C.nodeType==9)if(T=!0,C==this.root||C==t)n&&!this.root?!o||o.width==0&&o.height==0?(C=null,I=null,E=null):I=o:I=y;else{var N=m(C),B=N&&v(N),W=N&&this._computeTargetAndRootIntersection(N,B,y);B&&W?(C=N,I=j(B,W)):(C=null,E=null)}else{var ne=C.ownerDocument;C!=ne.body&&C!=ne.documentElement&&D.overflow!="visible"&&(I=v(C))}if(I&&(E=h(I,E)),!E)break;C=C&&m(C)}return E}},s.prototype._getRootRect=function(){var d;if(this.root&&!g(this.root))d=v(this.root);else{var p=g(this.root)?this.root:t,y=p.documentElement,E=p.body;d={top:0,left:0,right:y.clientWidth||E.clientWidth,width:y.clientWidth||E.clientWidth,bottom:y.clientHeight||E.clientHeight,height:y.clientHeight||E.clientHeight}}return this._expandRectByRootMargin(d)},s.prototype._expandRectByRootMargin=function(d){var p=this._rootMarginValues.map(function(E,C){return E.unit=="px"?E.value:E.value*(C%2?d.width:d.height)/100}),y={top:d.top-p[0],right:d.right+p[1],bottom:d.bottom+p[2],left:d.left-p[3]};return y.width=y.right-y.left,y.height=y.bottom-y.top,y},s.prototype._hasCrossedThreshold=function(d,p){var y=d&&d.isIntersecting?d.intersectionRatio||0:-1,E=p.isIntersecting?p.intersectionRatio||0:-1;if(y!==E)for(var C=0;C<this.thresholds.length;C++){var T=this.thresholds[C];if(T==y||T==E||T<y!=T<E)return!0}},s.prototype._rootIsInDom=function(){return!this.root||x(t,this.root)},s.prototype._rootContainsTarget=function(d){var p=this.root&&(this.root.ownerDocument||this.root)||t;return x(p,d)&&(!this.root||p==d.ownerDocument)},s.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},s.prototype._unregisterInstance=function(){var d=r.indexOf(this);d!=-1&&r.splice(d,1)};function l(){return window.performance&&performance.now&&performance.now()}function a(d,p){var y=null;return function(){y||(y=setTimeout(function(){d(),y=null},p))}}function u(d,p,y,E){typeof d.addEventListener=="function"?d.addEventListener(p,y,E):typeof d.attachEvent=="function"&&d.attachEvent("on"+p,y)}function f(d,p,y,E){typeof d.removeEventListener=="function"?d.removeEventListener(p,y,E):typeof d.detachEvent=="function"&&d.detachEvent("on"+p,y)}function h(d,p){var y=Math.max(d.top,p.top),E=Math.min(d.bottom,p.bottom),C=Math.max(d.left,p.left),T=Math.min(d.right,p.right),I=T-C,D=E-y;return I>=0&&D>=0&&{top:y,bottom:E,left:C,right:T,width:I,height:D}||null}function v(d){var p;try{p=d.getBoundingClientRect()}catch{}return p?(p.width&&p.height||(p={top:p.top,right:p.right,bottom:p.bottom,left:p.left,width:p.right-p.left,height:p.bottom-p.top}),p):w()}function w(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function S(d){return!d||"x"in d?d:{top:d.top,y:d.top,bottom:d.bottom,left:d.left,x:d.left,right:d.right,width:d.width,height:d.height}}function j(d,p){var y=p.top-d.top,E=p.left-d.left;return{top:y,left:E,height:p.height,width:p.width,bottom:y+p.height,right:E+p.width}}function x(d,p){for(var y=p;y;){if(y==d)return!0;y=m(y)}return!1}function m(d){var p=d.parentNode;return d.nodeType==9&&d!=t?e(d):(p&&p.assignedSlot&&(p=p.assignedSlot.parentNode),p&&p.nodeType==11&&p.host?p.host:p)}function g(d){return d&&d.nodeType===9}window.IntersectionObserver=s,window.IntersectionObserverEntry=c}()),Ko}ou();function su(e,t){var r={},n=r.callback,o=ll(r,["callback"]),c=_o(P.useState(),2),s=c[0],l=c[1],a=_o(P.useState(),2),u=a[0],f=a[1];return cl(function(){var h=Array.isArray(e)?e:[e],v=h.map(function(S){return Mo(S)}).filter(Boolean);if(v.length){var w=new IntersectionObserver(function(S){var j,x;try{for(var m=ul(S),g=m.next();!g.done;g=m.next()){var d=g.value;f(d.intersectionRatio),l(d.isIntersecting),n?.(d)}}catch(p){j={error:p}}finally{try{g&&!g.done&&(x=m.return)&&x.call(m)}finally{if(j)throw j.error}}},Lo(Lo({},o),{root:Mo(void 0)}));return v.forEach(function(S){return w.observe(S)}),function(){w.disconnect()}}},[void 0,void 0,n],e),[s,u]}const iu=ur(i.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),au=ur(i.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),qr=ur([i.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M13 20.01 4 11V4h7v-.01l9 9z"},"0"),i.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")]),lu=ur(i.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),cu=ur(i.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),Pi=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),P.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),P.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Ri=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})),Di=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),P.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),uu=e=>P.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("g",{clipPath:"url(#clip0)"},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})),P.createElement("defs",null,P.createElement("clipPath",{id:"clip0"},P.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),Oi=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10C3.25 6.27208 6.27208 3.25 10 3.25C13.7279 3.25 16.75 6.27208 16.75 10C16.75 13.7279 13.7279 16.75 10 16.75C6.27208 16.75 3.25 13.7279 3.25 10ZM10 1.75C5.44365 1.75 1.75 5.44365 1.75 10C1.75 14.5564 5.44365 18.25 10 18.25C14.5563 18.25 18.25 14.5564 18.25 10C18.25 5.44365 14.5563 1.75 10 1.75ZM8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L11.9697 13.0303C12.2626 13.3232 12.7374 13.3232 13.0303 13.0303C13.3232 12.7374 13.3232 12.2626 13.0303 11.9697L8.03033 6.96967Z"}));var Zr={},Xr,Yo;function fu(){return Yo||(Yo=1,Xr=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Xr}var Qr,Go;function du(){if(Go)return Qr;Go=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(s,l){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;l=l||1;var a=s.slice(0,l),u=s.slice(l);return Array.prototype.concat.call([],n(a),n(u))}function o(s){try{return decodeURIComponent(s)}catch{for(var l=s.match(t)||[],a=1;a<l.length;a++)s=n(l,a).join(""),l=s.match(t)||[];return s}}function c(s){for(var l={"%FE%FF":"��","%FF%FE":"��"},a=r.exec(s);a;){try{l[a[0]]=decodeURIComponent(a[0])}catch{var u=o(a[0]);u!==a[0]&&(l[a[0]]=u)}a=r.exec(s)}l["%C2"]="�";for(var f=Object.keys(l),h=0;h<f.length;h++){var v=f[h];s=s.replace(new RegExp(v,"g"),l[v])}return s}return Qr=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return c(s)}},Qr}var Jr,Zo;function pu(){return Zo||(Zo=1,Jr=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),Jr}var en,Xo;function mu(){return Xo||(Xo=1,en=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),c=0;c<n.length;c++){var s=n[c],l=e[s];(o?t.indexOf(s)!==-1:t(s,l,e))&&(r[s]=l)}return r}),en}var Qo;function hu(){return Qo||(Qo=1,function(e){const t=fu(),r=du(),n=pu(),o=mu(),c=m=>m==null;function s(m){switch(m.arrayFormat){case"index":return g=>(d,p)=>{const y=d.length;return p===void 0||m.skipNull&&p===null||m.skipEmptyString&&p===""?d:p===null?[...d,[u(g,m),"[",y,"]"].join("")]:[...d,[u(g,m),"[",u(y,m),"]=",u(p,m)].join("")]};case"bracket":return g=>(d,p)=>p===void 0||m.skipNull&&p===null||m.skipEmptyString&&p===""?d:p===null?[...d,[u(g,m),"[]"].join("")]:[...d,[u(g,m),"[]=",u(p,m)].join("")];case"comma":case"separator":return g=>(d,p)=>p==null||p.length===0?d:d.length===0?[[u(g,m),"=",u(p,m)].join("")]:[[d,u(p,m)].join(m.arrayFormatSeparator)];default:return g=>(d,p)=>p===void 0||m.skipNull&&p===null||m.skipEmptyString&&p===""?d:p===null?[...d,u(g,m)]:[...d,[u(g,m),"=",u(p,m)].join("")]}}function l(m){let g;switch(m.arrayFormat){case"index":return(d,p,y)=>{if(g=/\[(\d*)\]$/.exec(d),d=d.replace(/\[\d*\]$/,""),!g){y[d]=p;return}y[d]===void 0&&(y[d]={}),y[d][g[1]]=p};case"bracket":return(d,p,y)=>{if(g=/(\[\])$/.exec(d),d=d.replace(/\[\]$/,""),!g){y[d]=p;return}if(y[d]===void 0){y[d]=[p];return}y[d]=[].concat(y[d],p)};case"comma":case"separator":return(d,p,y)=>{const E=typeof p=="string"&&p.includes(m.arrayFormatSeparator),C=typeof p=="string"&&!E&&f(p,m).includes(m.arrayFormatSeparator);p=C?f(p,m):p;const T=E||C?p.split(m.arrayFormatSeparator).map(I=>f(I,m)):p===null?p:f(p,m);y[d]=T};default:return(d,p,y)=>{if(y[d]===void 0){y[d]=p;return}y[d]=[].concat(y[d],p)}}}function a(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(m,g){return g.encode?g.strict?t(m):encodeURIComponent(m):m}function f(m,g){return g.decode?r(m):m}function h(m){return Array.isArray(m)?m.sort():typeof m=="object"?h(Object.keys(m)).sort((g,d)=>Number(g)-Number(d)).map(g=>m[g]):m}function v(m){const g=m.indexOf("#");return g!==-1&&(m=m.slice(0,g)),m}function w(m){let g="";const d=m.indexOf("#");return d!==-1&&(g=m.slice(d)),g}function S(m){m=v(m);const g=m.indexOf("?");return g===-1?"":m.slice(g+1)}function j(m,g){return g.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):g.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function x(m,g){g=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},g),a(g.arrayFormatSeparator);const d=l(g),p=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return p;for(const y of m.split("&")){if(y==="")continue;let[E,C]=n(g.decode?y.replace(/\+/g," "):y,"=");C=C===void 0?null:["comma","separator"].includes(g.arrayFormat)?C:f(C,g),d(f(E,g),C,p)}for(const y of Object.keys(p)){const E=p[y];if(typeof E=="object"&&E!==null)for(const C of Object.keys(E))E[C]=j(E[C],g);else p[y]=j(E,g)}return g.sort===!1?p:(g.sort===!0?Object.keys(p).sort():Object.keys(p).sort(g.sort)).reduce((y,E)=>{const C=p[E];return C&&typeof C=="object"&&!Array.isArray(C)?y[E]=h(C):y[E]=C,y},Object.create(null))}e.extract=S,e.parse=x,e.stringify=(m,g)=>{if(!m)return"";g=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},g),a(g.arrayFormatSeparator);const d=C=>g.skipNull&&c(m[C])||g.skipEmptyString&&m[C]==="",p=s(g),y={};for(const C of Object.keys(m))d(C)||(y[C]=m[C]);const E=Object.keys(y);return g.sort!==!1&&E.sort(g.sort),E.map(C=>{const T=m[C];return T===void 0?"":T===null?u(C,g):Array.isArray(T)?T.reduce(p(C),[]).join("&"):u(C,g)+"="+u(T,g)}).filter(C=>C.length>0).join("&")},e.parseUrl=(m,g)=>{g=Object.assign({decode:!0},g);const[d,p]=n(m,"#");return Object.assign({url:d.split("?")[0]||"",query:x(S(m),g)},g&&g.parseFragmentIdentifier&&p?{fragmentIdentifier:f(p,g)}:{})},e.stringifyUrl=(m,g)=>{g=Object.assign({encode:!0,strict:!0},g);const d=v(m.url).split("?")[0]||"",p=e.extract(m.url),y=e.parse(p,{sort:!1}),E=Object.assign(y,m.query);let C=e.stringify(E,g);C&&(C=`?${C}`);let T=w(m.url);return m.fragmentIdentifier&&(T=`#${u(m.fragmentIdentifier,g)}`),`${d}${C}${T}`},e.pick=(m,g,d)=>{d=Object.assign({parseFragmentIdentifier:!0},d);const{url:p,query:y,fragmentIdentifier:E}=e.parseUrl(m,d);return e.stringifyUrl({url:p,query:o(y,g),fragmentIdentifier:E},d)},e.exclude=(m,g,d)=>{const p=Array.isArray(g)?y=>!g.includes(y):(y,E)=>!g(y,E);return e.pick(m,p,d)}}(Zr)),Zr}var tn=hu();const Xt=fl,gu={parseNumbers:!1,parseBooleans:!1},bu={skipNull:!1,skipEmptyString:!1},yu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:c,stringifyOptions:s}={},l=Object.assign(Object.assign({},gu),c),a=Object.assign(Object.assign({},bu),s),u=Xt.useLocation(),f=(r=Xt.useHistory)===null||r===void 0?void 0:r.call(Xt),h=(n=Xt.useNavigate)===null||n===void 0?void 0:n.call(Xt),v=dl(),w=P.useRef(typeof e=="function"?e():e||{}),S=P.useMemo(()=>tn.parse(u.search,l),[u.search]),j=P.useMemo(()=>Object.assign(Object.assign({},w.current),S),[S]);return[j,Tt(m=>{const g=typeof m=="function"?m(j):m;v(),f&&f[o]({hash:u.hash,search:tn.stringify(Object.assign(Object.assign({},S),g),a)||"?"},u.state),h&&h({hash:u.hash,search:tn.stringify(Object.assign(Object.assign({},S),g),a)||"?"},{replace:o==="replace",state:u.state})})]};var jt={},Qt={},rn={exports:{}},nn={},Jo;function Ai(){if(Jo)return nn;Jo=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(g)}function t(g,d,p){return Object.defineProperty(g,"prototype",{writable:!1}),g}function r(g,d){if(!(g instanceof d))throw new TypeError("Cannot call a class as a function")}function n(g,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(d&&d.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),d&&o(g,d)}function o(g,d){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,E){return y.__proto__=E,y},o(g,d)}function c(g){var d=a();return function(){var y=u(g),E;if(d){var C=u(this).constructor;E=Reflect.construct(y,arguments,C)}else E=y.apply(this,arguments);return s(this,E)}}function s(g,d){if(d&&(e(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(g)}function l(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function a(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(g){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},u(g)}var f={},h,v;function w(g,d,p){p||(p=Error);function y(C,T,I){return typeof d=="string"?d:d(C,T,I)}var E=function(C){n(I,C);var T=c(I);function I(D,N,B){var W;return r(this,I),W=T.call(this,y(D,N,B)),W.code=g,W}return t(I)}(p);f[g]=E}function S(g,d){if(Array.isArray(g)){var p=g.length;return g=g.map(function(y){return String(y)}),p>2?"one of ".concat(d," ").concat(g.slice(0,p-1).join(", "),", or ")+g[p-1]:p===2?"one of ".concat(d," ").concat(g[0]," or ").concat(g[1]):"of ".concat(d," ").concat(g[0])}else return"of ".concat(d," ").concat(String(g))}function j(g,d,p){return g.substr(0,d.length)===d}function x(g,d,p){return(p===void 0||p>g.length)&&(p=g.length),g.substring(p-d.length,p)===d}function m(g,d,p){return typeof p!="number"&&(p=0),p+d.length>g.length?!1:g.indexOf(d,p)!==-1}return w("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),w("ERR_INVALID_ARG_TYPE",function(g,d,p){h===void 0&&(h=Kn()),h(typeof g=="string","'name' must be a string");var y;typeof d=="string"&&j(d,"not ")?(y="must not be",d=d.replace(/^not /,"")):y="must be";var E;if(x(g," argument"))E="The ".concat(g," ").concat(y," ").concat(S(d,"type"));else{var C=m(g,".")?"property":"argument";E='The "'.concat(g,'" ').concat(C," ").concat(y," ").concat(S(d,"type"))}return E+=". Received type ".concat(e(p)),E},TypeError),w("ERR_INVALID_ARG_VALUE",function(g,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";v===void 0&&(v=or());var y=v.inspect(d);return y.length>128&&(y="".concat(y.slice(0,128),"...")),"The argument '".concat(g,"' ").concat(p,". Received ").concat(y)},TypeError),w("ERR_INVALID_RETURN_VALUE",function(g,d,p){var y;return p&&p.constructor&&p.constructor.name?y="instance of ".concat(p.constructor.name):y="type ".concat(e(p)),"Expected ".concat(g,' to be returned from the "').concat(d,'"')+" function but got ".concat(y,".")},TypeError),w("ERR_MISSING_ARGS",function(){for(var g=arguments.length,d=new Array(g),p=0;p<g;p++)d[p]=arguments[p];h===void 0&&(h=Kn()),h(d.length>0,"At least one arg needs to be specified");var y="The ",E=d.length;switch(d=d.map(function(C){return'"'.concat(C,'"')}),E){case 1:y+="".concat(d[0]," argument");break;case 2:y+="".concat(d[0]," and ").concat(d[1]," arguments");break;default:y+=d.slice(0,E-1).join(", "),y+=", and ".concat(d[E-1]," arguments");break}return"".concat(y," must be specified")},TypeError),nn.codes=f,nn}var on,es;function xu(){if(es)return on;es=1;function e(_,F){var G=Object.keys(_);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(_);F&&(H=H.filter(function(Q){return Object.getOwnPropertyDescriptor(_,Q).enumerable})),G.push.apply(G,H)}return G}function t(_){for(var F=1;F<arguments.length;F++){var G=arguments[F]!=null?arguments[F]:{};F%2?e(Object(G),!0).forEach(function(H){r(_,H,G[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(G)):e(Object(G)).forEach(function(H){Object.defineProperty(_,H,Object.getOwnPropertyDescriptor(G,H))})}return _}function r(_,F,G){return F=s(F),F in _?Object.defineProperty(_,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):_[F]=G,_}function n(_,F){if(!(_ instanceof F))throw new TypeError("Cannot call a class as a function")}function o(_,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(_,s(H.key),H)}}function c(_,F,G){return F&&o(_.prototype,F),Object.defineProperty(_,"prototype",{writable:!1}),_}function s(_){var F=l(_,"string");return g(F)==="symbol"?F:String(F)}function l(_,F){if(g(_)!=="object"||_===null)return _;var G=_[Symbol.toPrimitive];if(G!==void 0){var H=G.call(_,F);if(g(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(_)}function a(_,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(F&&F.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),F&&x(_,F)}function u(_){var F=S();return function(){var H=m(_),Q;if(F){var A=m(this).constructor;Q=Reflect.construct(H,arguments,A)}else Q=H.apply(this,arguments);return f(this,Q)}}function f(_,F){if(F&&(g(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(_)}function h(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function v(_){var F=typeof Map=="function"?new Map:void 0;return v=function(H){if(H===null||!j(H))return H;if(typeof H!="function")throw new TypeError("Super expression must either be null or a function");if(typeof F<"u"){if(F.has(H))return F.get(H);F.set(H,Q)}function Q(){return w(H,arguments,m(this).constructor)}return Q.prototype=Object.create(H.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),x(Q,H)},v(_)}function w(_,F,G){return S()?w=Reflect.construct.bind():w=function(Q,A,R){var M=[null];M.push.apply(M,A);var z=Function.bind.apply(Q,M),L=new z;return R&&x(L,R.prototype),L},w.apply(null,arguments)}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function j(_){return Function.toString.call(_).indexOf("[native code]")!==-1}function x(_,F){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,Q){return H.__proto__=Q,H},x(_,F)}function m(_){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},m(_)}function g(_){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},g(_)}var d=or(),p=d.inspect,y=Ai(),E=y.codes.ERR_INVALID_ARG_TYPE;function C(_,F,G){return(G===void 0||G>_.length)&&(G=_.length),_.substring(G-F.length,G)===F}function T(_,F){if(F=Math.floor(F),_.length==0||F==0)return"";var G=_.length*F;for(F=Math.floor(Math.log(F)/Math.log(2));F;)_+=_,F--;return _+=_.substring(0,G-_.length),_}var I="",D="",N="",B="",W={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ne=10;function te(_){var F=Object.keys(_),G=Object.create(Object.getPrototypeOf(_));return F.forEach(function(H){G[H]=_[H]}),Object.defineProperty(G,"message",{value:_.message}),G}function ge(_){return p(_,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Ce(_,F,G){var H="",Q="",A=0,R="",M=!1,z=ge(_),L=z.split(`
2
2
  `),q=ge(F).split(`
3
3
  `),Z=0,oe="";if(G==="strictEqual"&&g(_)==="object"&&g(F)==="object"&&_!==null&&F!==null&&(G="strictEqualObject"),L.length===1&&q.length===1&&L[0]!==q[0]){var pe=L[0].length+q[0].length;if(pe<=ne){if((g(_)!=="object"||_===null)&&(g(F)!=="object"||F===null)&&(_!==0||F!==0))return"".concat(W[G],`
4
4
 
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-B0ezkZD_.js","./index-t7M3AlIl.js","./index-DGkT7afN.css","./decode-DPztD6kB.js","./index-CX3PrUL2.css"])))=>i.map(i=>d[i]);
2
- import{r as t,p as n,j as r,bJ as i,d4 as a}from"./index-t7M3AlIl.js";const s=t.lazy(()=>i(()=>import("./index-B0ezkZD_.js").then(o=>o.i),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),d=`{
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CmgnJ9Ac.js","./index-2c1VoOd9.js","./index-DGkT7afN.css","./decode-DPztD6kB.js","./index-CX3PrUL2.css"])))=>i.map(i=>d[i]);
2
+ import{r as t,p as n,j as r,bJ as i,d4 as a}from"./index-2c1VoOd9.js";const s=t.lazy(()=>i(()=>import("./index-CmgnJ9Ac.js").then(o=>o.i),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),d=`{
3
3
  getNodeInfo {
4
4
  code
5
5
  info {
@@ -1 +1 @@
1
- import{be as v,r as at}from"./index-t7M3AlIl.js";var he=e=>e.type==="checkbox",ue=e=>e instanceof Date,$=e=>e==null;const _t=e=>typeof e=="object";var P=e=>!$(e)&&!Array.isArray(e)&&_t(e)&&!ue(e),ht=e=>P(e)&&e.target?he(e.target)?e.target.checked:e.target.value:e,Nt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,mt=(e,r)=>e.has(Nt(r)),Bt=e=>{const r=e.constructor&&e.constructor.prototype;return P(r)&&r.hasOwnProperty("isPrototypeOf")},je=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function T(e){let r;const t=Array.isArray(e),i=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(e instanceof Set)r=new Set(e);else if(!(je&&(e instanceof Blob||i))&&(t||P(e)))if(r=t?[]:{},!t&&!Bt(e))r=e;else for(const n in e)e.hasOwnProperty(n)&&(r[n]=T(e[n]));else return e;return r}var Se=e=>/^\w*$/.test(e),U=e=>e===void 0,we=e=>Array.isArray(e)?e.filter(Boolean):[],Ke=e=>we(e.replace(/["|']|\]/g,"").split(/\.|\[/)),c=(e,r,t)=>{if(!r||!P(e))return t;const i=(Se(r)?[r]:Ke(r)).reduce((n,l)=>$(n)?n:n[l],e);return U(i)||i===e?U(e[r])?t:e[r]:i},Q=e=>typeof e=="boolean",E=(e,r,t)=>{let i=-1;const n=Se(r)?[r]:Ke(r),l=n.length,f=l-1;for(;++i<l;){const d=n[i];let b=t;if(i!==f){const x=e[d];b=P(x)||Array.isArray(x)?x:isNaN(+n[i+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=b,e=e[d]}};const Fe={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Z={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ie={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},vt=v.createContext(null);vt.displayName="HookFormContext";const ke=()=>v.useContext(vt);var bt=(e,r,t,i=!0)=>{const n={defaultValues:r._defaultValues};for(const l in e)Object.defineProperty(n,l,{get:()=>{const f=l;return r._proxyFormState[f]!==Z.all&&(r._proxyFormState[f]=!i||Z.all),t&&(t[f]=!0),e[f]}});return n};const De=typeof window<"u"?at.useLayoutEffect:at.useEffect;function Pt(e){const r=ke(),{control:t=r.control,disabled:i,name:n,exact:l}=e||{},[f,d]=v.useState(t._formState),b=v.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return De(()=>t._subscribe({name:n,formState:b.current,exact:l,callback:x=>{!i&&d({...t._formState,...x})}}),[n,i,l]),v.useEffect(()=>{b.current.isValid&&t._setValid(!0)},[t]),v.useMemo(()=>bt(f,t,b.current,!1),[f,t])}var se=e=>typeof e=="string",Ft=(e,r,t,i,n)=>se(e)?(i&&r.watch.add(e),c(t,e,n)):Array.isArray(e)?e.map(l=>(i&&r.watch.add(l),c(t,l))):(i&&(r.watchAll=!0),t);function Wt(e){const r=ke(),{control:t=r.control,name:i,defaultValue:n,disabled:l,exact:f}=e||{},d=v.useRef(n),[b,x]=v.useState(t._getWatch(i,d.current));return De(()=>t._subscribe({name:i,formState:{values:!0},exact:f,callback:D=>!l&&x(Ft(i,t._names,D.values||t._formValues,!1,d.current))}),[i,t,l,f]),v.useEffect(()=>t._removeUnmounted()),b}function qt(e){const r=ke(),{name:t,disabled:i,control:n=r.control,shouldUnregister:l}=e,f=mt(n._names.array,t),d=Wt({control:n,name:t,defaultValue:c(n._formValues,t,c(n._defaultValues,t,e.defaultValue)),exact:!0}),b=Pt({control:n,name:t,exact:!0}),x=v.useRef(e),D=v.useRef(n.register(t,{...e.rules,value:d,...Q(e.disabled)?{disabled:e.disabled}:{}})),C=v.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!c(b.errors,t)},isDirty:{enumerable:!0,get:()=>!!c(b.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!c(b.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!c(b.validatingFields,t)},error:{enumerable:!0,get:()=>c(b.errors,t)}}),[b,t]),F=v.useCallback(L=>D.current.onChange({target:{value:ht(L),name:t},type:Fe.CHANGE}),[t]),M=v.useCallback(()=>D.current.onBlur({target:{value:c(n._formValues,t),name:t},type:Fe.BLUR}),[t,n._formValues]),z=v.useCallback(L=>{const ee=c(n._fields,t);ee&&L&&(ee._f.ref={focus:()=>L.focus&&L.focus(),select:()=>L.select&&L.select(),setCustomValidity:V=>L.setCustomValidity(V),reportValidity:()=>L.reportValidity()})},[n._fields,t]),R=v.useMemo(()=>({name:t,value:d,...Q(i)||b.disabled?{disabled:b.disabled||i}:{},onChange:F,onBlur:M,ref:z}),[t,i,b.disabled,F,M,z,d]);return v.useEffect(()=>{const L=n._options.shouldUnregister||l;n.register(t,{...x.current.rules,...Q(x.current.disabled)?{disabled:x.current.disabled}:{}});const ee=(V,G)=>{const W=c(n._fields,V);W&&W._f&&(W._f.mount=G)};if(ee(t,!0),L){const V=T(c(n._options.defaultValues,t));E(n._defaultValues,t,V),U(c(n._formValues,t))&&E(n._formValues,t,V)}return!f&&n.register(t),()=>{(f?L&&!n._state.action:L)?n.unregister(t):ee(t,!1)}},[t,n,f,l]),v.useEffect(()=>{n._setDisabledField({disabled:i,name:t})},[i,t,n]),v.useMemo(()=>({field:R,formState:b,fieldState:C}),[R,b,C])}const ar=e=>e.render(qt(e));var Ht=(e,r,t,i,n)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[i]:n||!0}}:{},K=e=>Array.isArray(e)?e:[e],nt=()=>{let e=[];return{get observers(){return e},next:n=>{for(const l of e)l.next&&l.next(n)},subscribe:n=>(e.push(n),{unsubscribe:()=>{e=e.filter(l=>l!==n)}}),unsubscribe:()=>{e=[]}}},qe=e=>$(e)||!_t(e);function le(e,r,t=new WeakSet){if(qe(e)||qe(r))return e===r;if(ue(e)&&ue(r))return e.getTime()===r.getTime();const i=Object.keys(e),n=Object.keys(r);if(i.length!==n.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const l of i){const f=e[l];if(!n.includes(l))return!1;if(l!=="ref"){const d=r[l];if(ue(f)&&ue(d)||P(f)&&P(d)||Array.isArray(f)&&Array.isArray(d)?!le(f,d,t):f!==d)return!1}}return!0}var H=e=>P(e)&&!Object.keys(e).length,ze=e=>e.type==="file",te=e=>typeof e=="function",Ve=e=>{if(!je)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Vt=e=>e.type==="select-multiple",Ge=e=>e.type==="radio",$t=e=>Ge(e)||he(e),Me=e=>Ve(e)&&e.isConnected;function jt(e,r){const t=r.slice(0,-1).length;let i=0;for(;i<t;)e=U(e)?i++:e[r[i++]];return e}function Kt(e){for(const r in e)if(e.hasOwnProperty(r)&&!U(e[r]))return!1;return!0}function B(e,r){const t=Array.isArray(r)?r:Se(r)?[r]:Ke(r),i=t.length===1?e:jt(e,t),n=t.length-1,l=t[n];return i&&delete i[l],n!==0&&(P(i)&&H(i)||Array.isArray(i)&&Kt(i))&&B(e,t.slice(0,-1)),e}var At=e=>{for(const r in e)if(te(e[r]))return!0;return!1};function Ae(e,r={}){const t=Array.isArray(e);if(P(e)||t)for(const i in e)Array.isArray(e[i])||P(e[i])&&!At(e[i])?(r[i]=Array.isArray(e[i])?[]:{},Ae(e[i],r[i])):$(e[i])||(r[i]=!0);return r}function xt(e,r,t){const i=Array.isArray(e);if(P(e)||i)for(const n in e)Array.isArray(e[n])||P(e[n])&&!At(e[n])?U(r)||qe(t[n])?t[n]=Array.isArray(e[n])?Ae(e[n],[]):{...Ae(e[n])}:xt(e[n],$(r)?{}:r[n],t[n]):t[n]=!le(e[n],r[n]);return t}var ge=(e,r)=>xt(e,r,Ae(r));const lt={value:!1,isValid:!1},ut={value:!0,isValid:!0};var St=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!U(e[0].attributes.value)?U(e[0].value)||e[0].value===""?ut:{value:e[0].value,isValid:!0}:ut:lt}return lt},wt=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:i})=>U(e)?e:r?e===""?NaN:e&&+e:t&&se(e)?new Date(e):i?i(e):e;const ot={isValid:!1,value:null};var kt=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,ot):ot;function ct(e){const r=e.ref;return ze(r)?r.files:Ge(r)?kt(e.refs).value:Vt(r)?[...r.selectedOptions].map(({value:t})=>t):he(r)?St(e.refs).value:wt(U(r.value)?e.ref.value:r.value,e)}var zt=(e,r,t,i)=>{const n={};for(const l of e){const f=c(r,l);f&&E(n,l,f._f)}return{criteriaMode:t,names:[...e],fields:n,shouldUseNativeValidation:i}},xe=e=>e instanceof RegExp,_e=e=>U(e)?e:xe(e)?e.source:P(e)?xe(e.value)?e.value.source:e.value:e,de=e=>({isOnSubmit:!e||e===Z.onSubmit,isOnBlur:e===Z.onBlur,isOnChange:e===Z.onChange,isOnAll:e===Z.all,isOnTouch:e===Z.onTouched});const dt="AsyncFunction";var Gt=e=>!!e&&!!e.validate&&!!(te(e.validate)&&e.validate.constructor.name===dt||P(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===dt)),Yt=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),He=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const fe=(e,r,t,i)=>{for(const n of t||Object.keys(e)){const l=c(e,n);if(l){const{_f:f,...d}=l;if(f){if(f.refs&&f.refs[0]&&r(f.refs[0],n)&&!i)return!0;if(f.ref&&r(f.ref,f.name)&&!i)return!0;if(fe(d,r))break}else if(P(d)&&fe(d,r))break}}};function ft(e,r,t){const i=c(e,t);if(i||Se(t))return{error:i,name:t};const n=t.split(".");for(;n.length;){const l=n.join("."),f=c(r,l),d=c(e,l);if(f&&!Array.isArray(f)&&t!==l)return{name:t};if(d&&d.type)return{name:l,error:d};if(d&&d.root&&d.root.type)return{name:`${l}.root`,error:d.root};n.pop()}return{name:t}}var Jt=(e,r,t,i)=>{t(e);const{name:n,...l}=e;return H(l)||Object.keys(l).length>=Object.keys(r).length||Object.keys(l).find(f=>r[f]===(!i||Z.all))},Qt=(e,r,t)=>!e||!r||e===r||K(e).some(i=>i&&(t?i===r:i.startsWith(r)||r.startsWith(i))),Xt=(e,r,t,i,n)=>n.isOnAll?!1:!t&&n.isOnTouch?!(r||e):(t?i.isOnBlur:n.isOnBlur)?!e:(t?i.isOnChange:n.isOnChange)?e:!0,Zt=(e,r)=>!we(c(e,r)).length&&B(e,r),Dt=(e,r,t)=>{const i=K(c(e,t));return E(i,"root",r[t]),E(e,t,i),e},be=e=>se(e);function yt(e,r,t="validate"){if(be(e)||Array.isArray(e)&&e.every(be)||Q(e)&&!e)return{type:t,message:be(e)?e:"",ref:r}}var ce=e=>P(e)&&!xe(e)?e:{value:e,message:""},$e=async(e,r,t,i,n,l)=>{const{ref:f,refs:d,required:b,maxLength:x,minLength:D,min:C,max:F,pattern:M,validate:z,name:R,valueAsNumber:L,mount:ee}=e._f,V=c(t,R);if(!ee||r.has(R))return{};const G=d?d[0]:f,W=w=>{n&&G.reportValidity&&(G.setCustomValidity(Q(w)?"":w||""),G.reportValidity())},I={},m=Ge(f),h=he(f),A=m||h,S=(L||ze(f))&&U(f.value)&&U(V)||Ve(f)&&f.value===""||V===""||Array.isArray(V)&&!V.length,Y=Ht.bind(null,R,i,I),J=(w,p,N,q=ie.maxLength,j=ie.minLength)=>{const re=w?p:N;I[R]={type:w?q:j,message:re,ref:f,...Y(w?q:j,re)}};if(l?!Array.isArray(V)||!V.length:b&&(!A&&(S||$(V))||Q(V)&&!V||h&&!St(d).isValid||m&&!kt(d).isValid)){const{value:w,message:p}=be(b)?{value:!!b,message:b}:ce(b);if(w&&(I[R]={type:ie.required,message:p,ref:G,...Y(ie.required,p)},!i))return W(p),I}if(!S&&(!$(C)||!$(F))){let w,p;const N=ce(F),q=ce(C);if(!$(V)&&!isNaN(V)){const j=f.valueAsNumber||V&&+V;$(N.value)||(w=j>N.value),$(q.value)||(p=j<q.value)}else{const j=f.valueAsDate||new Date(V),re=me=>new Date(new Date().toDateString()+" "+me),ye=f.type=="time",oe=f.type=="week";se(N.value)&&V&&(w=ye?re(V)>re(N.value):oe?V>N.value:j>new Date(N.value)),se(q.value)&&V&&(p=ye?re(V)<re(q.value):oe?V<q.value:j<new Date(q.value))}if((w||p)&&(J(!!w,N.message,q.message,ie.max,ie.min),!i))return W(I[R].message),I}if((x||D)&&!S&&(se(V)||l&&Array.isArray(V))){const w=ce(x),p=ce(D),N=!$(w.value)&&V.length>+w.value,q=!$(p.value)&&V.length<+p.value;if((N||q)&&(J(N,w.message,p.message),!i))return W(I[R].message),I}if(M&&!S&&se(V)){const{value:w,message:p}=ce(M);if(xe(w)&&!V.match(w)&&(I[R]={type:ie.pattern,message:p,ref:f,...Y(ie.pattern,p)},!i))return W(p),I}if(z){if(te(z)){const w=await z(V,t),p=yt(w,G);if(p&&(I[R]={...p,...Y(ie.validate,p.message)},!i))return W(p.message),I}else if(P(z)){let w={};for(const p in z){if(!H(w)&&!i)break;const N=yt(await z[p](V,t),G,p);N&&(w={...N,...Y(p,N.message)},W(N.message),i&&(I[R]=w))}if(!H(w)&&(I[R]={ref:G,...w},!i))return I}}return W(!0),I};const er={mode:Z.onSubmit,reValidateMode:Z.onChange,shouldFocusError:!0};function tr(e={}){let r={...er,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:te(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1};const i={};let n=P(r.defaultValues)||P(r.values)?T(r.defaultValues||r.values)||{}:{},l=r.shouldUnregister?{}:T(n),f={action:!1,mount:!1,watch:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},b,x=0;const D={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let C={...D};const F={array:nt(),state:nt()},M=r.criteriaMode===Z.all,z=s=>a=>{clearTimeout(x),x=setTimeout(s,a)},R=async s=>{if(!r.disabled&&(D.isValid||C.isValid||s)){const a=r.resolver?H((await h()).errors):await S(i,!0);a!==t.isValid&&F.state.next({isValid:a})}},L=(s,a)=>{!r.disabled&&(D.isValidating||D.validatingFields||C.isValidating||C.validatingFields)&&((s||Array.from(d.mount)).forEach(u=>{u&&(a?E(t.validatingFields,u,a):B(t.validatingFields,u))}),F.state.next({validatingFields:t.validatingFields,isValidating:!H(t.validatingFields)}))},ee=(s,a=[],u,g,y=!0,o=!0)=>{if(g&&u&&!r.disabled){if(f.action=!0,o&&Array.isArray(c(i,s))){const _=u(c(i,s),g.argA,g.argB);y&&E(i,s,_)}if(o&&Array.isArray(c(t.errors,s))){const _=u(c(t.errors,s),g.argA,g.argB);y&&E(t.errors,s,_),Zt(t.errors,s)}if((D.touchedFields||C.touchedFields)&&o&&Array.isArray(c(t.touchedFields,s))){const _=u(c(t.touchedFields,s),g.argA,g.argB);y&&E(t.touchedFields,s,_)}(D.dirtyFields||C.dirtyFields)&&(t.dirtyFields=ge(n,l)),F.state.next({name:s,isDirty:J(s,a),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else E(l,s,a)},V=(s,a)=>{E(t.errors,s,a),F.state.next({errors:t.errors})},G=s=>{t.errors=s,F.state.next({errors:t.errors,isValid:!1})},W=(s,a,u,g)=>{const y=c(i,s);if(y){const o=c(l,s,U(u)?c(n,s):u);U(o)||g&&g.defaultChecked||a?E(l,s,a?o:ct(y._f)):N(s,o),f.mount&&R()}},I=(s,a,u,g,y)=>{let o=!1,_=!1;const k={name:s};if(!r.disabled){if(!u||g){(D.isDirty||C.isDirty)&&(_=t.isDirty,t.isDirty=k.isDirty=J(),o=_!==k.isDirty);const O=le(c(n,s),a);_=!!c(t.dirtyFields,s),O?B(t.dirtyFields,s):E(t.dirtyFields,s,!0),k.dirtyFields=t.dirtyFields,o=o||(D.dirtyFields||C.dirtyFields)&&_!==!O}if(u){const O=c(t.touchedFields,s);O||(E(t.touchedFields,s,u),k.touchedFields=t.touchedFields,o=o||(D.touchedFields||C.touchedFields)&&O!==u)}o&&y&&F.state.next(k)}return o?k:{}},m=(s,a,u,g)=>{const y=c(t.errors,s),o=(D.isValid||C.isValid)&&Q(a)&&t.isValid!==a;if(r.delayError&&u?(b=z(()=>V(s,u)),b(r.delayError)):(clearTimeout(x),b=null,u?E(t.errors,s,u):B(t.errors,s)),(u?!le(y,u):y)||!H(g)||o){const _={...g,...o&&Q(a)?{isValid:a}:{},errors:t.errors,name:s};t={...t,..._},F.state.next(_)}},h=async s=>{L(s,!0);const a=await r.resolver(l,r.context,zt(s||d.mount,i,r.criteriaMode,r.shouldUseNativeValidation));return L(s),a},A=async s=>{const{errors:a}=await h(s);if(s)for(const u of s){const g=c(a,u);g?E(t.errors,u,g):B(t.errors,u)}else t.errors=a;return a},S=async(s,a,u={valid:!0})=>{for(const g in s){const y=s[g];if(y){const{_f:o,..._}=y;if(o){const k=d.array.has(o.name),O=y._f&&Gt(y._f);O&&D.validatingFields&&L([g],!0);const X=await $e(y,d.disabled,l,M,r.shouldUseNativeValidation&&!a,k);if(O&&D.validatingFields&&L([g]),X[o.name]&&(u.valid=!1,a))break;!a&&(c(X,o.name)?k?Dt(t.errors,X,o.name):E(t.errors,o.name,X[o.name]):B(t.errors,o.name))}!H(_)&&await S(_,a,u)}}return u.valid},Y=()=>{for(const s of d.unMount){const a=c(i,s);a&&(a._f.refs?a._f.refs.every(u=>!Me(u)):!Me(a._f.ref))&&Ee(s)}d.unMount=new Set},J=(s,a)=>!r.disabled&&(s&&a&&E(l,s,a),!le(me(),n)),w=(s,a,u)=>Ft(s,d,{...f.mount?l:U(a)?n:se(s)?{[s]:a}:a},u,a),p=s=>we(c(f.mount?l:n,s,r.shouldUnregister?c(n,s,[]):[])),N=(s,a,u={})=>{const g=c(i,s);let y=a;if(g){const o=g._f;o&&(!o.disabled&&E(l,s,wt(a,o)),y=Ve(o.ref)&&$(a)?"":a,Vt(o.ref)?[...o.ref.options].forEach(_=>_.selected=y.includes(_.value)):o.refs?he(o.ref)?o.refs.forEach(_=>{(!_.defaultChecked||!_.disabled)&&(Array.isArray(y)?_.checked=!!y.find(k=>k===_.value):_.checked=y===_.value||!!y)}):o.refs.forEach(_=>_.checked=_.value===y):ze(o.ref)?o.ref.value="":(o.ref.value=y,o.ref.type||F.state.next({name:s,values:T(l)})))}(u.shouldDirty||u.shouldTouch)&&I(s,y,u.shouldTouch,u.shouldDirty,!0),u.shouldValidate&&oe(s)},q=(s,a,u)=>{for(const g in a){if(!a.hasOwnProperty(g))return;const y=a[g],o=s+"."+g,_=c(i,o);(d.array.has(s)||P(y)||_&&!_._f)&&!ue(y)?q(o,y,u):N(o,y,u)}},j=(s,a,u={})=>{const g=c(i,s),y=d.array.has(s),o=T(a);E(l,s,o),y?(F.array.next({name:s,values:T(l)}),(D.isDirty||D.dirtyFields||C.isDirty||C.dirtyFields)&&u.shouldDirty&&F.state.next({name:s,dirtyFields:ge(n,l),isDirty:J(s,o)})):g&&!g._f&&!$(o)?q(s,o,u):N(s,o,u),He(s,d)&&F.state.next({...t}),F.state.next({name:f.mount?s:void 0,values:T(l)})},re=async s=>{f.mount=!0;const a=s.target;let u=a.name,g=!0;const y=c(i,u),o=O=>{g=Number.isNaN(O)||ue(O)&&isNaN(O.getTime())||le(O,c(l,u,O))},_=de(r.mode),k=de(r.reValidateMode);if(y){let O,X;const ve=a.type?ct(y._f):ht(s),ae=s.type===Fe.BLUR||s.type===Fe.FOCUS_OUT,Lt=!Yt(y._f)&&!r.resolver&&!c(t.errors,u)&&!y._f.deps||Xt(ae,c(t.touchedFields,u),t.isSubmitted,k,_),Oe=He(u,d,ae);E(l,u,ve),ae?(y._f.onBlur&&y._f.onBlur(s),b&&b(0)):y._f.onChange&&y._f.onChange(s);const Ue=I(u,ve,ae),Tt=!H(Ue)||Oe;if(!ae&&F.state.next({name:u,type:s.type,values:T(l)}),Lt)return(D.isValid||C.isValid)&&(r.mode==="onBlur"?ae&&R():ae||R()),Tt&&F.state.next({name:u,...Oe?{}:Ue});if(!ae&&Oe&&F.state.next({...t}),r.resolver){const{errors:st}=await h([u]);if(o(ve),g){const It=ft(t.errors,i,u),it=ft(st,i,It.name||u);O=it.error,u=it.name,X=H(st)}}else L([u],!0),O=(await $e(y,d.disabled,l,M,r.shouldUseNativeValidation))[u],L([u]),o(ve),g&&(O?X=!1:(D.isValid||C.isValid)&&(X=await S(i,!0)));g&&(y._f.deps&&oe(y._f.deps),m(u,X,O,Ue))}},ye=(s,a)=>{if(c(t.errors,a)&&s.focus)return s.focus(),1},oe=async(s,a={})=>{let u,g;const y=K(s);if(r.resolver){const o=await A(U(s)?s:y);u=H(o),g=s?!y.some(_=>c(o,_)):u}else s?(g=(await Promise.all(y.map(async o=>{const _=c(i,o);return await S(_&&_._f?{[o]:_}:_)}))).every(Boolean),!(!g&&!t.isValid)&&R()):g=u=await S(i);return F.state.next({...!se(s)||(D.isValid||C.isValid)&&u!==t.isValid?{}:{name:s},...r.resolver||!s?{isValid:u}:{},errors:t.errors}),a.shouldFocus&&!g&&fe(i,ye,s?y:d.mount),g},me=s=>{const a={...f.mount?l:n};return U(s)?a:se(s)?c(a,s):s.map(u=>c(a,u))},Ye=(s,a)=>({invalid:!!c((a||t).errors,s),isDirty:!!c((a||t).dirtyFields,s),error:c((a||t).errors,s),isValidating:!!c(t.validatingFields,s),isTouched:!!c((a||t).touchedFields,s)}),Et=s=>{s&&K(s).forEach(a=>B(t.errors,a)),F.state.next({errors:s?t.errors:{}})},Je=(s,a,u)=>{const g=(c(i,s,{_f:{}})._f||{}).ref,y=c(t.errors,s)||{},{ref:o,message:_,type:k,...O}=y;E(t.errors,s,{...O,...a,ref:g}),F.state.next({name:s,errors:t.errors,isValid:!1}),u&&u.shouldFocus&&g&&g.focus&&g.focus()},pt=(s,a)=>te(s)?F.state.subscribe({next:u=>s(w(void 0,a),u)}):w(s,a,!0),Qe=s=>F.state.subscribe({next:a=>{Qt(s.name,a.name,s.exact)&&Jt(a,s.formState||D,Rt,s.reRenderRoot)&&s.callback({values:{...l},...t,...a})}}).unsubscribe,Ct=s=>(f.mount=!0,C={...C,...s.formState},Qe({...s,formState:C})),Ee=(s,a={})=>{for(const u of s?K(s):d.mount)d.mount.delete(u),d.array.delete(u),a.keepValue||(B(i,u),B(l,u)),!a.keepError&&B(t.errors,u),!a.keepDirty&&B(t.dirtyFields,u),!a.keepTouched&&B(t.touchedFields,u),!a.keepIsValidating&&B(t.validatingFields,u),!r.shouldUnregister&&!a.keepDefaultValue&&B(n,u);F.state.next({values:T(l)}),F.state.next({...t,...a.keepDirty?{isDirty:J()}:{}}),!a.keepIsValid&&R()},Xe=({disabled:s,name:a})=>{(Q(s)&&f.mount||s||d.disabled.has(a))&&(s?d.disabled.add(a):d.disabled.delete(a))},pe=(s,a={})=>{let u=c(i,s);const g=Q(a.disabled)||Q(r.disabled);return E(i,s,{...u||{},_f:{...u&&u._f?u._f:{ref:{name:s}},name:s,mount:!0,...a}}),d.mount.add(s),u?Xe({disabled:Q(a.disabled)?a.disabled:r.disabled,name:s}):W(s,!0,a.value),{...g?{disabled:a.disabled||r.disabled}:{},...r.progressive?{required:!!a.required,min:_e(a.min),max:_e(a.max),minLength:_e(a.minLength),maxLength:_e(a.maxLength),pattern:_e(a.pattern)}:{},name:s,onChange:re,onBlur:re,ref:y=>{if(y){pe(s,a),u=c(i,s);const o=U(y.value)&&y.querySelectorAll&&y.querySelectorAll("input,select,textarea")[0]||y,_=$t(o),k=u._f.refs||[];if(_?k.find(O=>O===o):o===u._f.ref)return;E(i,s,{_f:{...u._f,..._?{refs:[...k.filter(Me),o,...Array.isArray(c(n,s))?[{}]:[]],ref:{type:o.type,name:s}}:{ref:o}}}),W(s,!1,void 0,o)}else u=c(i,s,{}),u._f&&(u._f.mount=!1),(r.shouldUnregister||a.shouldUnregister)&&!(mt(d.array,s)&&f.action)&&d.unMount.add(s)}}},Ce=()=>r.shouldFocusError&&fe(i,ye,d.mount),Ot=s=>{Q(s)&&(F.state.next({disabled:s}),fe(i,(a,u)=>{const g=c(i,u);g&&(a.disabled=g._f.disabled||s,Array.isArray(g._f.refs)&&g._f.refs.forEach(y=>{y.disabled=g._f.disabled||s}))},0,!1))},Ze=(s,a)=>async u=>{let g;u&&(u.preventDefault&&u.preventDefault(),u.persist&&u.persist());let y=T(l);if(F.state.next({isSubmitting:!0}),r.resolver){const{errors:o,values:_}=await h();t.errors=o,y=T(_)}else await S(i);if(d.disabled.size)for(const o of d.disabled)B(y,o);if(B(t.errors,"root"),H(t.errors)){F.state.next({errors:{}});try{await s(y,u)}catch(o){g=o}}else a&&await a({...t.errors},u),Ce(),setTimeout(Ce);if(F.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:H(t.errors)&&!g,submitCount:t.submitCount+1,errors:t.errors}),g)throw g},Ut=(s,a={})=>{c(i,s)&&(U(a.defaultValue)?j(s,T(c(n,s))):(j(s,a.defaultValue),E(n,s,T(a.defaultValue))),a.keepTouched||B(t.touchedFields,s),a.keepDirty||(B(t.dirtyFields,s),t.isDirty=a.defaultValue?J(s,T(c(n,s))):J()),a.keepError||(B(t.errors,s),D.isValid&&R()),F.state.next({...t}))},et=(s,a={})=>{const u=s?T(s):n,g=T(u),y=H(s),o=y?n:g;if(a.keepDefaultValues||(n=u),!a.keepValues){if(a.keepDirtyValues){const _=new Set([...d.mount,...Object.keys(ge(n,l))]);for(const k of Array.from(_))c(t.dirtyFields,k)?E(o,k,c(l,k)):j(k,c(o,k))}else{if(je&&U(s))for(const _ of d.mount){const k=c(i,_);if(k&&k._f){const O=Array.isArray(k._f.refs)?k._f.refs[0]:k._f.ref;if(Ve(O)){const X=O.closest("form");if(X){X.reset();break}}}}for(const _ of d.mount){const k=c(o,_,c(n,_));U(k)||(E(o,_,k),j(_,c(o,_)))}}l=T(o),F.array.next({values:{...o}}),F.state.next({values:{...o}})}d={mount:a.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},f.mount=!D.isValid||!!a.keepIsValid||!!a.keepDirtyValues,f.watch=!!r.shouldUnregister,F.state.next({submitCount:a.keepSubmitCount?t.submitCount:0,isDirty:y?!1:a.keepDirty?t.isDirty:!!(a.keepDefaultValues&&!le(s,n)),isSubmitted:a.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:y?{}:a.keepDirtyValues?a.keepDefaultValues&&l?ge(n,l):t.dirtyFields:a.keepDefaultValues&&s?ge(n,s):a.keepDirty?t.dirtyFields:{},touchedFields:a.keepTouched?t.touchedFields:{},errors:a.keepErrors?t.errors:{},isSubmitSuccessful:a.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},tt=(s,a)=>et(te(s)?s(l):s,a),Mt=(s,a={})=>{const u=c(i,s),g=u&&u._f;if(g){const y=g.refs?g.refs[0]:g.ref;y.focus&&(y.focus(),a.shouldSelect&&te(y.select)&&y.select())}},Rt=s=>{t={...t,...s}},rt={control:{register:pe,unregister:Ee,getFieldState:Ye,handleSubmit:Ze,setError:Je,_subscribe:Qe,_runSchema:h,_focusError:Ce,_getWatch:w,_getDirty:J,_setValid:R,_setFieldArray:ee,_setDisabledField:Xe,_setErrors:G,_getFieldArray:p,_reset:et,_resetDefaultValues:()=>te(r.defaultValues)&&r.defaultValues().then(s=>{tt(s,r.resetOptions),F.state.next({isLoading:!1})}),_removeUnmounted:Y,_disableForm:Ot,_subjects:F,_proxyFormState:D,get _fields(){return i},get _formValues(){return l},get _state(){return f},set _state(s){f=s},get _defaultValues(){return n},get _names(){return d},set _names(s){d=s},get _formState(){return t},get _options(){return r},set _options(s){r={...r,...s}}},subscribe:Ct,trigger:oe,register:pe,handleSubmit:Ze,watch:pt,setValue:j,getValues:me,reset:tt,resetField:Ut,clearErrors:Et,unregister:Ee,setError:Je,setFocus:Mt,getFieldState:Ye};return{...rt,formControl:rt}}var ne=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const t=(Math.random()*16+e)%16|0;return(r=="x"?t:t&3|8).toString(16)})},Re=(e,r,t={})=>t.shouldFocus||U(t.shouldFocus)?t.focusName||`${e}.${U(t.focusIndex)?r:t.focusIndex}.`:"",Le=(e,r)=>[...e,...K(r)],Te=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Ie(e,r,t){return[...e.slice(0,r),...K(t),...e.slice(r)]}var Ne=(e,r,t)=>Array.isArray(e)?(U(e[t])&&(e[t]=void 0),e.splice(t,0,e.splice(r,1)[0]),e):[],Be=(e,r)=>[...K(r),...K(e)];function rr(e,r){let t=0;const i=[...e];for(const n of r)i.splice(n-t,1),t++;return we(i).length?i:[]}var Pe=(e,r)=>U(r)?[]:rr(e,K(r).sort((t,i)=>t-i)),We=(e,r,t)=>{[e[r],e[t]]=[e[t],e[r]]},gt=(e,r,t)=>(e[r]=t,e);function nr(e){const r=ke(),{control:t=r.control,name:i,keyName:n="id",shouldUnregister:l,rules:f}=e,[d,b]=v.useState(t._getFieldArray(i)),x=v.useRef(t._getFieldArray(i).map(ne)),D=v.useRef(d),C=v.useRef(i),F=v.useRef(!1);C.current=i,D.current=d,t._names.array.add(i),f&&t.register(i,f),De(()=>t._subjects.array.subscribe({next:({values:m,name:h})=>{if(h===C.current||!h){const A=c(m,C.current);Array.isArray(A)&&(b(A),x.current=A.map(ne))}}}).unsubscribe,[t]);const M=v.useCallback(m=>{F.current=!0,t._setFieldArray(i,m)},[t,i]),z=(m,h)=>{const A=K(T(m)),S=Le(t._getFieldArray(i),A);t._names.focus=Re(i,S.length-1,h),x.current=Le(x.current,A.map(ne)),M(S),b(S),t._setFieldArray(i,S,Le,{argA:Te(m)})},R=(m,h)=>{const A=K(T(m)),S=Be(t._getFieldArray(i),A);t._names.focus=Re(i,0,h),x.current=Be(x.current,A.map(ne)),M(S),b(S),t._setFieldArray(i,S,Be,{argA:Te(m)})},L=m=>{const h=Pe(t._getFieldArray(i),m);x.current=Pe(x.current,m),M(h),b(h),!Array.isArray(c(t._fields,i))&&E(t._fields,i,void 0),t._setFieldArray(i,h,Pe,{argA:m})},ee=(m,h,A)=>{const S=K(T(h)),Y=Ie(t._getFieldArray(i),m,S);t._names.focus=Re(i,m,A),x.current=Ie(x.current,m,S.map(ne)),M(Y),b(Y),t._setFieldArray(i,Y,Ie,{argA:m,argB:Te(h)})},V=(m,h)=>{const A=t._getFieldArray(i);We(A,m,h),We(x.current,m,h),M(A),b(A),t._setFieldArray(i,A,We,{argA:m,argB:h},!1)},G=(m,h)=>{const A=t._getFieldArray(i);Ne(A,m,h),Ne(x.current,m,h),M(A),b(A),t._setFieldArray(i,A,Ne,{argA:m,argB:h},!1)},W=(m,h)=>{const A=T(h),S=gt(t._getFieldArray(i),m,A);x.current=[...S].map((Y,J)=>!Y||J===m?ne():x.current[J]),M(S),b([...S]),t._setFieldArray(i,S,gt,{argA:m,argB:A},!0,!1)},I=m=>{const h=K(T(m));x.current=h.map(ne),M([...h]),b([...h]),t._setFieldArray(i,[...h],A=>A,{},!0,!1)};return v.useEffect(()=>{if(t._state.action=!1,He(i,t._names)&&t._subjects.state.next({...t._formState}),F.current&&(!de(t._options.mode).isOnSubmit||t._formState.isSubmitted)&&!de(t._options.reValidateMode).isOnSubmit)if(t._options.resolver)t._runSchema([i]).then(m=>{const h=c(m.errors,i),A=c(t._formState.errors,i);(A?!h&&A.type||h&&(A.type!==h.type||A.message!==h.message):h&&h.type)&&(h?E(t._formState.errors,i,h):B(t._formState.errors,i),t._subjects.state.next({errors:t._formState.errors}))});else{const m=c(t._fields,i);m&&m._f&&!(de(t._options.reValidateMode).isOnSubmit&&de(t._options.mode).isOnSubmit)&&$e(m,t._names.disabled,t._formValues,t._options.criteriaMode===Z.all,t._options.shouldUseNativeValidation,!0).then(h=>!H(h)&&t._subjects.state.next({errors:Dt(t._formState.errors,h,i)}))}t._subjects.state.next({name:i,values:T(t._formValues)}),t._names.focus&&fe(t._fields,(m,h)=>{if(t._names.focus&&h.startsWith(t._names.focus)&&m.focus)return m.focus(),1}),t._names.focus="",t._setValid(),F.current=!1},[d,i,t]),v.useEffect(()=>(!c(t._formValues,i)&&t._setFieldArray(i),()=>{const m=(h,A)=>{const S=c(t._fields,h);S&&S._f&&(S._f.mount=A)};t._options.shouldUnregister||l?t.unregister(i):m(i,!1)}),[i,t,n,l]),{swap:v.useCallback(V,[M,i,t]),move:v.useCallback(G,[M,i,t]),prepend:v.useCallback(R,[M,i,t]),append:v.useCallback(z,[M,i,t]),remove:v.useCallback(L,[M,i,t]),insert:v.useCallback(ee,[M,i,t]),update:v.useCallback(W,[M,i,t]),replace:v.useCallback(I,[M,i,t]),fields:v.useMemo(()=>d.map((m,h)=>({...m,[n]:x.current[h]||ne()})),[d,n])}}function lr(e={}){const r=v.useRef(void 0),t=v.useRef(void 0),[i,n]=v.useState({isDirty:!1,isValidating:!1,isLoading:te(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:te(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:i},e.defaultValues&&!te(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:f,...d}=tr(e);r.current={...d,formState:i}}const l=r.current.control;return l._options=e,De(()=>{const f=l._subscribe({formState:l._proxyFormState,callback:()=>n({...l._formState}),reRenderRoot:!0});return n(d=>({...d,isReady:!0})),l._formState.isReady=!0,f},[l]),v.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),v.useEffect(()=>{e.mode&&(l._options.mode=e.mode),e.reValidateMode&&(l._options.reValidateMode=e.reValidateMode)},[l,e.mode,e.reValidateMode]),v.useEffect(()=>{e.errors&&(l._setErrors(e.errors),l._focusError())},[l,e.errors]),v.useEffect(()=>{e.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})},[l,e.shouldUnregister]),v.useEffect(()=>{if(l._proxyFormState.isDirty){const f=l._getDirty();f!==i.isDirty&&l._subjects.state.next({isDirty:f})}},[l,i.isDirty]),v.useEffect(()=>{e.values&&!le(e.values,t.current)?(l._reset(e.values,l._options.resetOptions),t.current=e.values,n(f=>({...f}))):l._resetDefaultValues()},[l,e.values]),v.useEffect(()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),r.current.formState=bt(i,l),r.current}export{ar as C,Wt as a,nr as b,lr as u};
1
+ import{be as v,r as at}from"./index-2c1VoOd9.js";var he=e=>e.type==="checkbox",ue=e=>e instanceof Date,$=e=>e==null;const _t=e=>typeof e=="object";var P=e=>!$(e)&&!Array.isArray(e)&&_t(e)&&!ue(e),ht=e=>P(e)&&e.target?he(e.target)?e.target.checked:e.target.value:e,Nt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,mt=(e,r)=>e.has(Nt(r)),Bt=e=>{const r=e.constructor&&e.constructor.prototype;return P(r)&&r.hasOwnProperty("isPrototypeOf")},je=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function T(e){let r;const t=Array.isArray(e),i=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(e instanceof Set)r=new Set(e);else if(!(je&&(e instanceof Blob||i))&&(t||P(e)))if(r=t?[]:{},!t&&!Bt(e))r=e;else for(const n in e)e.hasOwnProperty(n)&&(r[n]=T(e[n]));else return e;return r}var Se=e=>/^\w*$/.test(e),U=e=>e===void 0,we=e=>Array.isArray(e)?e.filter(Boolean):[],Ke=e=>we(e.replace(/["|']|\]/g,"").split(/\.|\[/)),c=(e,r,t)=>{if(!r||!P(e))return t;const i=(Se(r)?[r]:Ke(r)).reduce((n,l)=>$(n)?n:n[l],e);return U(i)||i===e?U(e[r])?t:e[r]:i},Q=e=>typeof e=="boolean",E=(e,r,t)=>{let i=-1;const n=Se(r)?[r]:Ke(r),l=n.length,f=l-1;for(;++i<l;){const d=n[i];let b=t;if(i!==f){const x=e[d];b=P(x)||Array.isArray(x)?x:isNaN(+n[i+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=b,e=e[d]}};const Fe={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Z={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ie={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},vt=v.createContext(null);vt.displayName="HookFormContext";const ke=()=>v.useContext(vt);var bt=(e,r,t,i=!0)=>{const n={defaultValues:r._defaultValues};for(const l in e)Object.defineProperty(n,l,{get:()=>{const f=l;return r._proxyFormState[f]!==Z.all&&(r._proxyFormState[f]=!i||Z.all),t&&(t[f]=!0),e[f]}});return n};const De=typeof window<"u"?at.useLayoutEffect:at.useEffect;function Pt(e){const r=ke(),{control:t=r.control,disabled:i,name:n,exact:l}=e||{},[f,d]=v.useState(t._formState),b=v.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return De(()=>t._subscribe({name:n,formState:b.current,exact:l,callback:x=>{!i&&d({...t._formState,...x})}}),[n,i,l]),v.useEffect(()=>{b.current.isValid&&t._setValid(!0)},[t]),v.useMemo(()=>bt(f,t,b.current,!1),[f,t])}var se=e=>typeof e=="string",Ft=(e,r,t,i,n)=>se(e)?(i&&r.watch.add(e),c(t,e,n)):Array.isArray(e)?e.map(l=>(i&&r.watch.add(l),c(t,l))):(i&&(r.watchAll=!0),t);function Wt(e){const r=ke(),{control:t=r.control,name:i,defaultValue:n,disabled:l,exact:f}=e||{},d=v.useRef(n),[b,x]=v.useState(t._getWatch(i,d.current));return De(()=>t._subscribe({name:i,formState:{values:!0},exact:f,callback:D=>!l&&x(Ft(i,t._names,D.values||t._formValues,!1,d.current))}),[i,t,l,f]),v.useEffect(()=>t._removeUnmounted()),b}function qt(e){const r=ke(),{name:t,disabled:i,control:n=r.control,shouldUnregister:l}=e,f=mt(n._names.array,t),d=Wt({control:n,name:t,defaultValue:c(n._formValues,t,c(n._defaultValues,t,e.defaultValue)),exact:!0}),b=Pt({control:n,name:t,exact:!0}),x=v.useRef(e),D=v.useRef(n.register(t,{...e.rules,value:d,...Q(e.disabled)?{disabled:e.disabled}:{}})),C=v.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!c(b.errors,t)},isDirty:{enumerable:!0,get:()=>!!c(b.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!c(b.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!c(b.validatingFields,t)},error:{enumerable:!0,get:()=>c(b.errors,t)}}),[b,t]),F=v.useCallback(L=>D.current.onChange({target:{value:ht(L),name:t},type:Fe.CHANGE}),[t]),M=v.useCallback(()=>D.current.onBlur({target:{value:c(n._formValues,t),name:t},type:Fe.BLUR}),[t,n._formValues]),z=v.useCallback(L=>{const ee=c(n._fields,t);ee&&L&&(ee._f.ref={focus:()=>L.focus&&L.focus(),select:()=>L.select&&L.select(),setCustomValidity:V=>L.setCustomValidity(V),reportValidity:()=>L.reportValidity()})},[n._fields,t]),R=v.useMemo(()=>({name:t,value:d,...Q(i)||b.disabled?{disabled:b.disabled||i}:{},onChange:F,onBlur:M,ref:z}),[t,i,b.disabled,F,M,z,d]);return v.useEffect(()=>{const L=n._options.shouldUnregister||l;n.register(t,{...x.current.rules,...Q(x.current.disabled)?{disabled:x.current.disabled}:{}});const ee=(V,G)=>{const W=c(n._fields,V);W&&W._f&&(W._f.mount=G)};if(ee(t,!0),L){const V=T(c(n._options.defaultValues,t));E(n._defaultValues,t,V),U(c(n._formValues,t))&&E(n._formValues,t,V)}return!f&&n.register(t),()=>{(f?L&&!n._state.action:L)?n.unregister(t):ee(t,!1)}},[t,n,f,l]),v.useEffect(()=>{n._setDisabledField({disabled:i,name:t})},[i,t,n]),v.useMemo(()=>({field:R,formState:b,fieldState:C}),[R,b,C])}const ar=e=>e.render(qt(e));var Ht=(e,r,t,i,n)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[i]:n||!0}}:{},K=e=>Array.isArray(e)?e:[e],nt=()=>{let e=[];return{get observers(){return e},next:n=>{for(const l of e)l.next&&l.next(n)},subscribe:n=>(e.push(n),{unsubscribe:()=>{e=e.filter(l=>l!==n)}}),unsubscribe:()=>{e=[]}}},qe=e=>$(e)||!_t(e);function le(e,r,t=new WeakSet){if(qe(e)||qe(r))return e===r;if(ue(e)&&ue(r))return e.getTime()===r.getTime();const i=Object.keys(e),n=Object.keys(r);if(i.length!==n.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const l of i){const f=e[l];if(!n.includes(l))return!1;if(l!=="ref"){const d=r[l];if(ue(f)&&ue(d)||P(f)&&P(d)||Array.isArray(f)&&Array.isArray(d)?!le(f,d,t):f!==d)return!1}}return!0}var H=e=>P(e)&&!Object.keys(e).length,ze=e=>e.type==="file",te=e=>typeof e=="function",Ve=e=>{if(!je)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Vt=e=>e.type==="select-multiple",Ge=e=>e.type==="radio",$t=e=>Ge(e)||he(e),Me=e=>Ve(e)&&e.isConnected;function jt(e,r){const t=r.slice(0,-1).length;let i=0;for(;i<t;)e=U(e)?i++:e[r[i++]];return e}function Kt(e){for(const r in e)if(e.hasOwnProperty(r)&&!U(e[r]))return!1;return!0}function B(e,r){const t=Array.isArray(r)?r:Se(r)?[r]:Ke(r),i=t.length===1?e:jt(e,t),n=t.length-1,l=t[n];return i&&delete i[l],n!==0&&(P(i)&&H(i)||Array.isArray(i)&&Kt(i))&&B(e,t.slice(0,-1)),e}var At=e=>{for(const r in e)if(te(e[r]))return!0;return!1};function Ae(e,r={}){const t=Array.isArray(e);if(P(e)||t)for(const i in e)Array.isArray(e[i])||P(e[i])&&!At(e[i])?(r[i]=Array.isArray(e[i])?[]:{},Ae(e[i],r[i])):$(e[i])||(r[i]=!0);return r}function xt(e,r,t){const i=Array.isArray(e);if(P(e)||i)for(const n in e)Array.isArray(e[n])||P(e[n])&&!At(e[n])?U(r)||qe(t[n])?t[n]=Array.isArray(e[n])?Ae(e[n],[]):{...Ae(e[n])}:xt(e[n],$(r)?{}:r[n],t[n]):t[n]=!le(e[n],r[n]);return t}var ge=(e,r)=>xt(e,r,Ae(r));const lt={value:!1,isValid:!1},ut={value:!0,isValid:!0};var St=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!U(e[0].attributes.value)?U(e[0].value)||e[0].value===""?ut:{value:e[0].value,isValid:!0}:ut:lt}return lt},wt=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:i})=>U(e)?e:r?e===""?NaN:e&&+e:t&&se(e)?new Date(e):i?i(e):e;const ot={isValid:!1,value:null};var kt=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,ot):ot;function ct(e){const r=e.ref;return ze(r)?r.files:Ge(r)?kt(e.refs).value:Vt(r)?[...r.selectedOptions].map(({value:t})=>t):he(r)?St(e.refs).value:wt(U(r.value)?e.ref.value:r.value,e)}var zt=(e,r,t,i)=>{const n={};for(const l of e){const f=c(r,l);f&&E(n,l,f._f)}return{criteriaMode:t,names:[...e],fields:n,shouldUseNativeValidation:i}},xe=e=>e instanceof RegExp,_e=e=>U(e)?e:xe(e)?e.source:P(e)?xe(e.value)?e.value.source:e.value:e,de=e=>({isOnSubmit:!e||e===Z.onSubmit,isOnBlur:e===Z.onBlur,isOnChange:e===Z.onChange,isOnAll:e===Z.all,isOnTouch:e===Z.onTouched});const dt="AsyncFunction";var Gt=e=>!!e&&!!e.validate&&!!(te(e.validate)&&e.validate.constructor.name===dt||P(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===dt)),Yt=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),He=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const fe=(e,r,t,i)=>{for(const n of t||Object.keys(e)){const l=c(e,n);if(l){const{_f:f,...d}=l;if(f){if(f.refs&&f.refs[0]&&r(f.refs[0],n)&&!i)return!0;if(f.ref&&r(f.ref,f.name)&&!i)return!0;if(fe(d,r))break}else if(P(d)&&fe(d,r))break}}};function ft(e,r,t){const i=c(e,t);if(i||Se(t))return{error:i,name:t};const n=t.split(".");for(;n.length;){const l=n.join("."),f=c(r,l),d=c(e,l);if(f&&!Array.isArray(f)&&t!==l)return{name:t};if(d&&d.type)return{name:l,error:d};if(d&&d.root&&d.root.type)return{name:`${l}.root`,error:d.root};n.pop()}return{name:t}}var Jt=(e,r,t,i)=>{t(e);const{name:n,...l}=e;return H(l)||Object.keys(l).length>=Object.keys(r).length||Object.keys(l).find(f=>r[f]===(!i||Z.all))},Qt=(e,r,t)=>!e||!r||e===r||K(e).some(i=>i&&(t?i===r:i.startsWith(r)||r.startsWith(i))),Xt=(e,r,t,i,n)=>n.isOnAll?!1:!t&&n.isOnTouch?!(r||e):(t?i.isOnBlur:n.isOnBlur)?!e:(t?i.isOnChange:n.isOnChange)?e:!0,Zt=(e,r)=>!we(c(e,r)).length&&B(e,r),Dt=(e,r,t)=>{const i=K(c(e,t));return E(i,"root",r[t]),E(e,t,i),e},be=e=>se(e);function yt(e,r,t="validate"){if(be(e)||Array.isArray(e)&&e.every(be)||Q(e)&&!e)return{type:t,message:be(e)?e:"",ref:r}}var ce=e=>P(e)&&!xe(e)?e:{value:e,message:""},$e=async(e,r,t,i,n,l)=>{const{ref:f,refs:d,required:b,maxLength:x,minLength:D,min:C,max:F,pattern:M,validate:z,name:R,valueAsNumber:L,mount:ee}=e._f,V=c(t,R);if(!ee||r.has(R))return{};const G=d?d[0]:f,W=w=>{n&&G.reportValidity&&(G.setCustomValidity(Q(w)?"":w||""),G.reportValidity())},I={},m=Ge(f),h=he(f),A=m||h,S=(L||ze(f))&&U(f.value)&&U(V)||Ve(f)&&f.value===""||V===""||Array.isArray(V)&&!V.length,Y=Ht.bind(null,R,i,I),J=(w,p,N,q=ie.maxLength,j=ie.minLength)=>{const re=w?p:N;I[R]={type:w?q:j,message:re,ref:f,...Y(w?q:j,re)}};if(l?!Array.isArray(V)||!V.length:b&&(!A&&(S||$(V))||Q(V)&&!V||h&&!St(d).isValid||m&&!kt(d).isValid)){const{value:w,message:p}=be(b)?{value:!!b,message:b}:ce(b);if(w&&(I[R]={type:ie.required,message:p,ref:G,...Y(ie.required,p)},!i))return W(p),I}if(!S&&(!$(C)||!$(F))){let w,p;const N=ce(F),q=ce(C);if(!$(V)&&!isNaN(V)){const j=f.valueAsNumber||V&&+V;$(N.value)||(w=j>N.value),$(q.value)||(p=j<q.value)}else{const j=f.valueAsDate||new Date(V),re=me=>new Date(new Date().toDateString()+" "+me),ye=f.type=="time",oe=f.type=="week";se(N.value)&&V&&(w=ye?re(V)>re(N.value):oe?V>N.value:j>new Date(N.value)),se(q.value)&&V&&(p=ye?re(V)<re(q.value):oe?V<q.value:j<new Date(q.value))}if((w||p)&&(J(!!w,N.message,q.message,ie.max,ie.min),!i))return W(I[R].message),I}if((x||D)&&!S&&(se(V)||l&&Array.isArray(V))){const w=ce(x),p=ce(D),N=!$(w.value)&&V.length>+w.value,q=!$(p.value)&&V.length<+p.value;if((N||q)&&(J(N,w.message,p.message),!i))return W(I[R].message),I}if(M&&!S&&se(V)){const{value:w,message:p}=ce(M);if(xe(w)&&!V.match(w)&&(I[R]={type:ie.pattern,message:p,ref:f,...Y(ie.pattern,p)},!i))return W(p),I}if(z){if(te(z)){const w=await z(V,t),p=yt(w,G);if(p&&(I[R]={...p,...Y(ie.validate,p.message)},!i))return W(p.message),I}else if(P(z)){let w={};for(const p in z){if(!H(w)&&!i)break;const N=yt(await z[p](V,t),G,p);N&&(w={...N,...Y(p,N.message)},W(N.message),i&&(I[R]=w))}if(!H(w)&&(I[R]={ref:G,...w},!i))return I}}return W(!0),I};const er={mode:Z.onSubmit,reValidateMode:Z.onChange,shouldFocusError:!0};function tr(e={}){let r={...er,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:te(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1};const i={};let n=P(r.defaultValues)||P(r.values)?T(r.defaultValues||r.values)||{}:{},l=r.shouldUnregister?{}:T(n),f={action:!1,mount:!1,watch:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},b,x=0;const D={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let C={...D};const F={array:nt(),state:nt()},M=r.criteriaMode===Z.all,z=s=>a=>{clearTimeout(x),x=setTimeout(s,a)},R=async s=>{if(!r.disabled&&(D.isValid||C.isValid||s)){const a=r.resolver?H((await h()).errors):await S(i,!0);a!==t.isValid&&F.state.next({isValid:a})}},L=(s,a)=>{!r.disabled&&(D.isValidating||D.validatingFields||C.isValidating||C.validatingFields)&&((s||Array.from(d.mount)).forEach(u=>{u&&(a?E(t.validatingFields,u,a):B(t.validatingFields,u))}),F.state.next({validatingFields:t.validatingFields,isValidating:!H(t.validatingFields)}))},ee=(s,a=[],u,g,y=!0,o=!0)=>{if(g&&u&&!r.disabled){if(f.action=!0,o&&Array.isArray(c(i,s))){const _=u(c(i,s),g.argA,g.argB);y&&E(i,s,_)}if(o&&Array.isArray(c(t.errors,s))){const _=u(c(t.errors,s),g.argA,g.argB);y&&E(t.errors,s,_),Zt(t.errors,s)}if((D.touchedFields||C.touchedFields)&&o&&Array.isArray(c(t.touchedFields,s))){const _=u(c(t.touchedFields,s),g.argA,g.argB);y&&E(t.touchedFields,s,_)}(D.dirtyFields||C.dirtyFields)&&(t.dirtyFields=ge(n,l)),F.state.next({name:s,isDirty:J(s,a),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else E(l,s,a)},V=(s,a)=>{E(t.errors,s,a),F.state.next({errors:t.errors})},G=s=>{t.errors=s,F.state.next({errors:t.errors,isValid:!1})},W=(s,a,u,g)=>{const y=c(i,s);if(y){const o=c(l,s,U(u)?c(n,s):u);U(o)||g&&g.defaultChecked||a?E(l,s,a?o:ct(y._f)):N(s,o),f.mount&&R()}},I=(s,a,u,g,y)=>{let o=!1,_=!1;const k={name:s};if(!r.disabled){if(!u||g){(D.isDirty||C.isDirty)&&(_=t.isDirty,t.isDirty=k.isDirty=J(),o=_!==k.isDirty);const O=le(c(n,s),a);_=!!c(t.dirtyFields,s),O?B(t.dirtyFields,s):E(t.dirtyFields,s,!0),k.dirtyFields=t.dirtyFields,o=o||(D.dirtyFields||C.dirtyFields)&&_!==!O}if(u){const O=c(t.touchedFields,s);O||(E(t.touchedFields,s,u),k.touchedFields=t.touchedFields,o=o||(D.touchedFields||C.touchedFields)&&O!==u)}o&&y&&F.state.next(k)}return o?k:{}},m=(s,a,u,g)=>{const y=c(t.errors,s),o=(D.isValid||C.isValid)&&Q(a)&&t.isValid!==a;if(r.delayError&&u?(b=z(()=>V(s,u)),b(r.delayError)):(clearTimeout(x),b=null,u?E(t.errors,s,u):B(t.errors,s)),(u?!le(y,u):y)||!H(g)||o){const _={...g,...o&&Q(a)?{isValid:a}:{},errors:t.errors,name:s};t={...t,..._},F.state.next(_)}},h=async s=>{L(s,!0);const a=await r.resolver(l,r.context,zt(s||d.mount,i,r.criteriaMode,r.shouldUseNativeValidation));return L(s),a},A=async s=>{const{errors:a}=await h(s);if(s)for(const u of s){const g=c(a,u);g?E(t.errors,u,g):B(t.errors,u)}else t.errors=a;return a},S=async(s,a,u={valid:!0})=>{for(const g in s){const y=s[g];if(y){const{_f:o,..._}=y;if(o){const k=d.array.has(o.name),O=y._f&&Gt(y._f);O&&D.validatingFields&&L([g],!0);const X=await $e(y,d.disabled,l,M,r.shouldUseNativeValidation&&!a,k);if(O&&D.validatingFields&&L([g]),X[o.name]&&(u.valid=!1,a))break;!a&&(c(X,o.name)?k?Dt(t.errors,X,o.name):E(t.errors,o.name,X[o.name]):B(t.errors,o.name))}!H(_)&&await S(_,a,u)}}return u.valid},Y=()=>{for(const s of d.unMount){const a=c(i,s);a&&(a._f.refs?a._f.refs.every(u=>!Me(u)):!Me(a._f.ref))&&Ee(s)}d.unMount=new Set},J=(s,a)=>!r.disabled&&(s&&a&&E(l,s,a),!le(me(),n)),w=(s,a,u)=>Ft(s,d,{...f.mount?l:U(a)?n:se(s)?{[s]:a}:a},u,a),p=s=>we(c(f.mount?l:n,s,r.shouldUnregister?c(n,s,[]):[])),N=(s,a,u={})=>{const g=c(i,s);let y=a;if(g){const o=g._f;o&&(!o.disabled&&E(l,s,wt(a,o)),y=Ve(o.ref)&&$(a)?"":a,Vt(o.ref)?[...o.ref.options].forEach(_=>_.selected=y.includes(_.value)):o.refs?he(o.ref)?o.refs.forEach(_=>{(!_.defaultChecked||!_.disabled)&&(Array.isArray(y)?_.checked=!!y.find(k=>k===_.value):_.checked=y===_.value||!!y)}):o.refs.forEach(_=>_.checked=_.value===y):ze(o.ref)?o.ref.value="":(o.ref.value=y,o.ref.type||F.state.next({name:s,values:T(l)})))}(u.shouldDirty||u.shouldTouch)&&I(s,y,u.shouldTouch,u.shouldDirty,!0),u.shouldValidate&&oe(s)},q=(s,a,u)=>{for(const g in a){if(!a.hasOwnProperty(g))return;const y=a[g],o=s+"."+g,_=c(i,o);(d.array.has(s)||P(y)||_&&!_._f)&&!ue(y)?q(o,y,u):N(o,y,u)}},j=(s,a,u={})=>{const g=c(i,s),y=d.array.has(s),o=T(a);E(l,s,o),y?(F.array.next({name:s,values:T(l)}),(D.isDirty||D.dirtyFields||C.isDirty||C.dirtyFields)&&u.shouldDirty&&F.state.next({name:s,dirtyFields:ge(n,l),isDirty:J(s,o)})):g&&!g._f&&!$(o)?q(s,o,u):N(s,o,u),He(s,d)&&F.state.next({...t}),F.state.next({name:f.mount?s:void 0,values:T(l)})},re=async s=>{f.mount=!0;const a=s.target;let u=a.name,g=!0;const y=c(i,u),o=O=>{g=Number.isNaN(O)||ue(O)&&isNaN(O.getTime())||le(O,c(l,u,O))},_=de(r.mode),k=de(r.reValidateMode);if(y){let O,X;const ve=a.type?ct(y._f):ht(s),ae=s.type===Fe.BLUR||s.type===Fe.FOCUS_OUT,Lt=!Yt(y._f)&&!r.resolver&&!c(t.errors,u)&&!y._f.deps||Xt(ae,c(t.touchedFields,u),t.isSubmitted,k,_),Oe=He(u,d,ae);E(l,u,ve),ae?(y._f.onBlur&&y._f.onBlur(s),b&&b(0)):y._f.onChange&&y._f.onChange(s);const Ue=I(u,ve,ae),Tt=!H(Ue)||Oe;if(!ae&&F.state.next({name:u,type:s.type,values:T(l)}),Lt)return(D.isValid||C.isValid)&&(r.mode==="onBlur"?ae&&R():ae||R()),Tt&&F.state.next({name:u,...Oe?{}:Ue});if(!ae&&Oe&&F.state.next({...t}),r.resolver){const{errors:st}=await h([u]);if(o(ve),g){const It=ft(t.errors,i,u),it=ft(st,i,It.name||u);O=it.error,u=it.name,X=H(st)}}else L([u],!0),O=(await $e(y,d.disabled,l,M,r.shouldUseNativeValidation))[u],L([u]),o(ve),g&&(O?X=!1:(D.isValid||C.isValid)&&(X=await S(i,!0)));g&&(y._f.deps&&oe(y._f.deps),m(u,X,O,Ue))}},ye=(s,a)=>{if(c(t.errors,a)&&s.focus)return s.focus(),1},oe=async(s,a={})=>{let u,g;const y=K(s);if(r.resolver){const o=await A(U(s)?s:y);u=H(o),g=s?!y.some(_=>c(o,_)):u}else s?(g=(await Promise.all(y.map(async o=>{const _=c(i,o);return await S(_&&_._f?{[o]:_}:_)}))).every(Boolean),!(!g&&!t.isValid)&&R()):g=u=await S(i);return F.state.next({...!se(s)||(D.isValid||C.isValid)&&u!==t.isValid?{}:{name:s},...r.resolver||!s?{isValid:u}:{},errors:t.errors}),a.shouldFocus&&!g&&fe(i,ye,s?y:d.mount),g},me=s=>{const a={...f.mount?l:n};return U(s)?a:se(s)?c(a,s):s.map(u=>c(a,u))},Ye=(s,a)=>({invalid:!!c((a||t).errors,s),isDirty:!!c((a||t).dirtyFields,s),error:c((a||t).errors,s),isValidating:!!c(t.validatingFields,s),isTouched:!!c((a||t).touchedFields,s)}),Et=s=>{s&&K(s).forEach(a=>B(t.errors,a)),F.state.next({errors:s?t.errors:{}})},Je=(s,a,u)=>{const g=(c(i,s,{_f:{}})._f||{}).ref,y=c(t.errors,s)||{},{ref:o,message:_,type:k,...O}=y;E(t.errors,s,{...O,...a,ref:g}),F.state.next({name:s,errors:t.errors,isValid:!1}),u&&u.shouldFocus&&g&&g.focus&&g.focus()},pt=(s,a)=>te(s)?F.state.subscribe({next:u=>s(w(void 0,a),u)}):w(s,a,!0),Qe=s=>F.state.subscribe({next:a=>{Qt(s.name,a.name,s.exact)&&Jt(a,s.formState||D,Rt,s.reRenderRoot)&&s.callback({values:{...l},...t,...a})}}).unsubscribe,Ct=s=>(f.mount=!0,C={...C,...s.formState},Qe({...s,formState:C})),Ee=(s,a={})=>{for(const u of s?K(s):d.mount)d.mount.delete(u),d.array.delete(u),a.keepValue||(B(i,u),B(l,u)),!a.keepError&&B(t.errors,u),!a.keepDirty&&B(t.dirtyFields,u),!a.keepTouched&&B(t.touchedFields,u),!a.keepIsValidating&&B(t.validatingFields,u),!r.shouldUnregister&&!a.keepDefaultValue&&B(n,u);F.state.next({values:T(l)}),F.state.next({...t,...a.keepDirty?{isDirty:J()}:{}}),!a.keepIsValid&&R()},Xe=({disabled:s,name:a})=>{(Q(s)&&f.mount||s||d.disabled.has(a))&&(s?d.disabled.add(a):d.disabled.delete(a))},pe=(s,a={})=>{let u=c(i,s);const g=Q(a.disabled)||Q(r.disabled);return E(i,s,{...u||{},_f:{...u&&u._f?u._f:{ref:{name:s}},name:s,mount:!0,...a}}),d.mount.add(s),u?Xe({disabled:Q(a.disabled)?a.disabled:r.disabled,name:s}):W(s,!0,a.value),{...g?{disabled:a.disabled||r.disabled}:{},...r.progressive?{required:!!a.required,min:_e(a.min),max:_e(a.max),minLength:_e(a.minLength),maxLength:_e(a.maxLength),pattern:_e(a.pattern)}:{},name:s,onChange:re,onBlur:re,ref:y=>{if(y){pe(s,a),u=c(i,s);const o=U(y.value)&&y.querySelectorAll&&y.querySelectorAll("input,select,textarea")[0]||y,_=$t(o),k=u._f.refs||[];if(_?k.find(O=>O===o):o===u._f.ref)return;E(i,s,{_f:{...u._f,..._?{refs:[...k.filter(Me),o,...Array.isArray(c(n,s))?[{}]:[]],ref:{type:o.type,name:s}}:{ref:o}}}),W(s,!1,void 0,o)}else u=c(i,s,{}),u._f&&(u._f.mount=!1),(r.shouldUnregister||a.shouldUnregister)&&!(mt(d.array,s)&&f.action)&&d.unMount.add(s)}}},Ce=()=>r.shouldFocusError&&fe(i,ye,d.mount),Ot=s=>{Q(s)&&(F.state.next({disabled:s}),fe(i,(a,u)=>{const g=c(i,u);g&&(a.disabled=g._f.disabled||s,Array.isArray(g._f.refs)&&g._f.refs.forEach(y=>{y.disabled=g._f.disabled||s}))},0,!1))},Ze=(s,a)=>async u=>{let g;u&&(u.preventDefault&&u.preventDefault(),u.persist&&u.persist());let y=T(l);if(F.state.next({isSubmitting:!0}),r.resolver){const{errors:o,values:_}=await h();t.errors=o,y=T(_)}else await S(i);if(d.disabled.size)for(const o of d.disabled)B(y,o);if(B(t.errors,"root"),H(t.errors)){F.state.next({errors:{}});try{await s(y,u)}catch(o){g=o}}else a&&await a({...t.errors},u),Ce(),setTimeout(Ce);if(F.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:H(t.errors)&&!g,submitCount:t.submitCount+1,errors:t.errors}),g)throw g},Ut=(s,a={})=>{c(i,s)&&(U(a.defaultValue)?j(s,T(c(n,s))):(j(s,a.defaultValue),E(n,s,T(a.defaultValue))),a.keepTouched||B(t.touchedFields,s),a.keepDirty||(B(t.dirtyFields,s),t.isDirty=a.defaultValue?J(s,T(c(n,s))):J()),a.keepError||(B(t.errors,s),D.isValid&&R()),F.state.next({...t}))},et=(s,a={})=>{const u=s?T(s):n,g=T(u),y=H(s),o=y?n:g;if(a.keepDefaultValues||(n=u),!a.keepValues){if(a.keepDirtyValues){const _=new Set([...d.mount,...Object.keys(ge(n,l))]);for(const k of Array.from(_))c(t.dirtyFields,k)?E(o,k,c(l,k)):j(k,c(o,k))}else{if(je&&U(s))for(const _ of d.mount){const k=c(i,_);if(k&&k._f){const O=Array.isArray(k._f.refs)?k._f.refs[0]:k._f.ref;if(Ve(O)){const X=O.closest("form");if(X){X.reset();break}}}}for(const _ of d.mount){const k=c(o,_,c(n,_));U(k)||(E(o,_,k),j(_,c(o,_)))}}l=T(o),F.array.next({values:{...o}}),F.state.next({values:{...o}})}d={mount:a.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},f.mount=!D.isValid||!!a.keepIsValid||!!a.keepDirtyValues,f.watch=!!r.shouldUnregister,F.state.next({submitCount:a.keepSubmitCount?t.submitCount:0,isDirty:y?!1:a.keepDirty?t.isDirty:!!(a.keepDefaultValues&&!le(s,n)),isSubmitted:a.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:y?{}:a.keepDirtyValues?a.keepDefaultValues&&l?ge(n,l):t.dirtyFields:a.keepDefaultValues&&s?ge(n,s):a.keepDirty?t.dirtyFields:{},touchedFields:a.keepTouched?t.touchedFields:{},errors:a.keepErrors?t.errors:{},isSubmitSuccessful:a.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},tt=(s,a)=>et(te(s)?s(l):s,a),Mt=(s,a={})=>{const u=c(i,s),g=u&&u._f;if(g){const y=g.refs?g.refs[0]:g.ref;y.focus&&(y.focus(),a.shouldSelect&&te(y.select)&&y.select())}},Rt=s=>{t={...t,...s}},rt={control:{register:pe,unregister:Ee,getFieldState:Ye,handleSubmit:Ze,setError:Je,_subscribe:Qe,_runSchema:h,_focusError:Ce,_getWatch:w,_getDirty:J,_setValid:R,_setFieldArray:ee,_setDisabledField:Xe,_setErrors:G,_getFieldArray:p,_reset:et,_resetDefaultValues:()=>te(r.defaultValues)&&r.defaultValues().then(s=>{tt(s,r.resetOptions),F.state.next({isLoading:!1})}),_removeUnmounted:Y,_disableForm:Ot,_subjects:F,_proxyFormState:D,get _fields(){return i},get _formValues(){return l},get _state(){return f},set _state(s){f=s},get _defaultValues(){return n},get _names(){return d},set _names(s){d=s},get _formState(){return t},get _options(){return r},set _options(s){r={...r,...s}}},subscribe:Ct,trigger:oe,register:pe,handleSubmit:Ze,watch:pt,setValue:j,getValues:me,reset:tt,resetField:Ut,clearErrors:Et,unregister:Ee,setError:Je,setFocus:Mt,getFieldState:Ye};return{...rt,formControl:rt}}var ne=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const t=(Math.random()*16+e)%16|0;return(r=="x"?t:t&3|8).toString(16)})},Re=(e,r,t={})=>t.shouldFocus||U(t.shouldFocus)?t.focusName||`${e}.${U(t.focusIndex)?r:t.focusIndex}.`:"",Le=(e,r)=>[...e,...K(r)],Te=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Ie(e,r,t){return[...e.slice(0,r),...K(t),...e.slice(r)]}var Ne=(e,r,t)=>Array.isArray(e)?(U(e[t])&&(e[t]=void 0),e.splice(t,0,e.splice(r,1)[0]),e):[],Be=(e,r)=>[...K(r),...K(e)];function rr(e,r){let t=0;const i=[...e];for(const n of r)i.splice(n-t,1),t++;return we(i).length?i:[]}var Pe=(e,r)=>U(r)?[]:rr(e,K(r).sort((t,i)=>t-i)),We=(e,r,t)=>{[e[r],e[t]]=[e[t],e[r]]},gt=(e,r,t)=>(e[r]=t,e);function nr(e){const r=ke(),{control:t=r.control,name:i,keyName:n="id",shouldUnregister:l,rules:f}=e,[d,b]=v.useState(t._getFieldArray(i)),x=v.useRef(t._getFieldArray(i).map(ne)),D=v.useRef(d),C=v.useRef(i),F=v.useRef(!1);C.current=i,D.current=d,t._names.array.add(i),f&&t.register(i,f),De(()=>t._subjects.array.subscribe({next:({values:m,name:h})=>{if(h===C.current||!h){const A=c(m,C.current);Array.isArray(A)&&(b(A),x.current=A.map(ne))}}}).unsubscribe,[t]);const M=v.useCallback(m=>{F.current=!0,t._setFieldArray(i,m)},[t,i]),z=(m,h)=>{const A=K(T(m)),S=Le(t._getFieldArray(i),A);t._names.focus=Re(i,S.length-1,h),x.current=Le(x.current,A.map(ne)),M(S),b(S),t._setFieldArray(i,S,Le,{argA:Te(m)})},R=(m,h)=>{const A=K(T(m)),S=Be(t._getFieldArray(i),A);t._names.focus=Re(i,0,h),x.current=Be(x.current,A.map(ne)),M(S),b(S),t._setFieldArray(i,S,Be,{argA:Te(m)})},L=m=>{const h=Pe(t._getFieldArray(i),m);x.current=Pe(x.current,m),M(h),b(h),!Array.isArray(c(t._fields,i))&&E(t._fields,i,void 0),t._setFieldArray(i,h,Pe,{argA:m})},ee=(m,h,A)=>{const S=K(T(h)),Y=Ie(t._getFieldArray(i),m,S);t._names.focus=Re(i,m,A),x.current=Ie(x.current,m,S.map(ne)),M(Y),b(Y),t._setFieldArray(i,Y,Ie,{argA:m,argB:Te(h)})},V=(m,h)=>{const A=t._getFieldArray(i);We(A,m,h),We(x.current,m,h),M(A),b(A),t._setFieldArray(i,A,We,{argA:m,argB:h},!1)},G=(m,h)=>{const A=t._getFieldArray(i);Ne(A,m,h),Ne(x.current,m,h),M(A),b(A),t._setFieldArray(i,A,Ne,{argA:m,argB:h},!1)},W=(m,h)=>{const A=T(h),S=gt(t._getFieldArray(i),m,A);x.current=[...S].map((Y,J)=>!Y||J===m?ne():x.current[J]),M(S),b([...S]),t._setFieldArray(i,S,gt,{argA:m,argB:A},!0,!1)},I=m=>{const h=K(T(m));x.current=h.map(ne),M([...h]),b([...h]),t._setFieldArray(i,[...h],A=>A,{},!0,!1)};return v.useEffect(()=>{if(t._state.action=!1,He(i,t._names)&&t._subjects.state.next({...t._formState}),F.current&&(!de(t._options.mode).isOnSubmit||t._formState.isSubmitted)&&!de(t._options.reValidateMode).isOnSubmit)if(t._options.resolver)t._runSchema([i]).then(m=>{const h=c(m.errors,i),A=c(t._formState.errors,i);(A?!h&&A.type||h&&(A.type!==h.type||A.message!==h.message):h&&h.type)&&(h?E(t._formState.errors,i,h):B(t._formState.errors,i),t._subjects.state.next({errors:t._formState.errors}))});else{const m=c(t._fields,i);m&&m._f&&!(de(t._options.reValidateMode).isOnSubmit&&de(t._options.mode).isOnSubmit)&&$e(m,t._names.disabled,t._formValues,t._options.criteriaMode===Z.all,t._options.shouldUseNativeValidation,!0).then(h=>!H(h)&&t._subjects.state.next({errors:Dt(t._formState.errors,h,i)}))}t._subjects.state.next({name:i,values:T(t._formValues)}),t._names.focus&&fe(t._fields,(m,h)=>{if(t._names.focus&&h.startsWith(t._names.focus)&&m.focus)return m.focus(),1}),t._names.focus="",t._setValid(),F.current=!1},[d,i,t]),v.useEffect(()=>(!c(t._formValues,i)&&t._setFieldArray(i),()=>{const m=(h,A)=>{const S=c(t._fields,h);S&&S._f&&(S._f.mount=A)};t._options.shouldUnregister||l?t.unregister(i):m(i,!1)}),[i,t,n,l]),{swap:v.useCallback(V,[M,i,t]),move:v.useCallback(G,[M,i,t]),prepend:v.useCallback(R,[M,i,t]),append:v.useCallback(z,[M,i,t]),remove:v.useCallback(L,[M,i,t]),insert:v.useCallback(ee,[M,i,t]),update:v.useCallback(W,[M,i,t]),replace:v.useCallback(I,[M,i,t]),fields:v.useMemo(()=>d.map((m,h)=>({...m,[n]:x.current[h]||ne()})),[d,n])}}function lr(e={}){const r=v.useRef(void 0),t=v.useRef(void 0),[i,n]=v.useState({isDirty:!1,isValidating:!1,isLoading:te(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:te(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:i},e.defaultValues&&!te(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:f,...d}=tr(e);r.current={...d,formState:i}}const l=r.current.control;return l._options=e,De(()=>{const f=l._subscribe({formState:l._proxyFormState,callback:()=>n({...l._formState}),reRenderRoot:!0});return n(d=>({...d,isReady:!0})),l._formState.isReady=!0,f},[l]),v.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),v.useEffect(()=>{e.mode&&(l._options.mode=e.mode),e.reValidateMode&&(l._options.reValidateMode=e.reValidateMode)},[l,e.mode,e.reValidateMode]),v.useEffect(()=>{e.errors&&(l._setErrors(e.errors),l._focusError())},[l,e.errors]),v.useEffect(()=>{e.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})},[l,e.shouldUnregister]),v.useEffect(()=>{if(l._proxyFormState.isDirty){const f=l._getDirty();f!==i.isDirty&&l._subjects.state.next({isDirty:f})}},[l,i.isDirty]),v.useEffect(()=>{e.values&&!le(e.values,t.current)?(l._reset(e.values,l._options.resetOptions),t.current=e.values,n(f=>({...f}))):l._resetDefaultValues()},[l,e.values]),v.useEffect(()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),r.current.formState=bt(i,l),r.current}export{ar as C,Wt as a,nr as b,lr as u};
@@ -1 +1 @@
1
- import{j,o as L,dE as Ot,dF as Pt,dG as Lt,K as dt,dH as Tt,r as I,be as Dt,a7 as Nt,a3 as qt,a8 as Mt,bi as Wt,bn as $t,n as Bt,V as Ft,cN as Gt,b as Ht,bC as Kt,y as et,i as Vt,W as zt,cw as Yt,H as Jt,X as rt,T as Xt,t as Qt,$ as Zt,D as kt,U as te,v as it,C as nt,w as ee,z as re}from"./index-t7M3AlIl.js";import{W as ie}from"./status-DtYf6aZS.js";import{r as gt,a as ne,W as se}from"./without-wallet-Bms_Rs1m.js";import{r as oe}from"./cloneDeep-a4PlXlaR.js";import{u as vt}from"./useLocalStorage-BNDc6dCy.js";import{v as st}from"./index-DxHUxvwT.js";import{D as ae}from"./url-evaluation-Dx99nTAj.js";import{A as le}from"./Autocomplete-DK0iCUAm.js";import{L as ce}from"./ListItemButton-Dq8kjXAC.js";import{S as ue,a as he,b as fe}from"./Stepper-CgNQuoDq.js";function pe({mode:o,...p}){return o==="development"?j.jsx(ie,{type:"primary",...p,children:"DEV"}):null}pe.propTypes={mode:L.string.isRequired};var T={},F={exports:{}},V={exports:{}},ot;function yt(){if(ot)return V.exports;ot=1;var o=V.exports={github:{protocols:["git","http","git+ssh","git+https","ssh","https"],domain:"github.com",treepath:"tree",filetemplate:"https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}",bugstemplate:"https://{domain}/{user}/{project}/issues",gittemplate:"git://{auth@}{domain}/{user}/{project}.git{#committish}",tarballtemplate:"https://codeload.{domain}/{user}/{project}/tar.gz/{committish}"},bitbucket:{protocols:["git+ssh","git+https","ssh","https"],domain:"bitbucket.org",treepath:"src",tarballtemplate:"https://{domain}/{user}/{project}/get/{committish}.tar.gz"},gitlab:{protocols:["git+ssh","git+https","ssh","https"],domain:"gitlab.com",treepath:"tree",bugstemplate:"https://{domain}/{user}/{project}/issues",httpstemplate:"git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}",tarballtemplate:"https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}",pathmatch:/^\/([^/]+)\/((?!.*(\/-\/|\/repository(\/[^/]+)?\/archive\.tar\.gz)).*?)(?:\.git|\/)?$/},gist:{protocols:["git","git+ssh","git+https","ssh","https"],domain:"gist.github.com",pathmatch:/^[/](?:([^/]+)[/])?([a-z0-9]{7,})(?:[.]git)?$/,filetemplate:"https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}",bugstemplate:"https://{domain}/{project}",gittemplate:"git://{domain}/{project}.git{#committish}",sshtemplate:"git@{domain}:/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{project}.git{#committish}",browsetemplate:"https://{domain}/{project}{/committish}",browsefiletemplate:"https://{domain}/{project}{/committish}{#path}",docstemplate:"https://{domain}/{project}{/committish}",httpstemplate:"git+https://{domain}/{project}.git{#committish}",shortcuttemplate:"{type}:{project}{#committish}",pathtemplate:"{project}{#committish}",tarballtemplate:"https://codeload.github.com/gist/{project}/tar.gz/{committish}",hashformat:function(u){return"file-"+m(u)}}},p={sshtemplate:"git@{domain}:{user}/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{user}/{project}.git{#committish}",browsetemplate:"https://{domain}/{user}/{project}{/tree/committish}",browsefiletemplate:"https://{domain}/{user}/{project}/{treepath}/{committish}/{path}{#fragment}",docstemplate:"https://{domain}/{user}/{project}{/tree/committish}#readme",httpstemplate:"git+https://{auth@}{domain}/{user}/{project}.git{#committish}",filetemplate:"https://{domain}/{user}/{project}/raw/{committish}/{path}",shortcuttemplate:"{type}:{user}/{project}{#committish}",pathtemplate:"{user}/{project}{#committish}",pathmatch:/^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/,hashformat:m};Object.keys(o).forEach(function(u){Object.keys(p).forEach(function(h){o[u][h]||(o[u][h]=p[h])}),o[u].protocols_re=RegExp("^("+o[u].protocols.map(function(h){return h.replace(/([\\+*{}()[\]$^|])/g,"\\$1")}).join("|")+"):$")});function m(u){return u.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}return V.exports}var z,at;function me(){if(at)return z;at=1;var o=yt(),p=Object.assign||function(h,t){if(t===null||typeof t!="object")return h;const r=Object.keys(t);let i=r.length;for(;i--;)h[r[i]]=t[r[i]];return h};z=m;function m(u,h,t,r,i,n,a){var x=this;x.type=u,Object.keys(o[u]).forEach(function(C){x[C]=o[u][C]}),x.user=h,x.auth=t,x.project=r,x.committish=i,x.default=n,x.opts=a||{}}return m.prototype.hash=function(){return this.committish?"#"+this.committish:""},m.prototype._fill=function(u,h){if(u){var t=p({},h);t.path=t.path?t.path.replace(/^[/]+/g,""):"",h=p(p({},this.opts),h);var r=this;Object.keys(this).forEach(function(c){r[c]!=null&&t[c]==null&&(t[c]=r[c])});var i=t.auth,n=t.committish,a=t.fragment,x=t.path,C=t.project;Object.keys(t).forEach(function(c){var E=t[c];(c==="path"||c==="project")&&typeof E=="string"?t[c]=E.split("/").map(function(S){return encodeURIComponent(S)}).join("/"):c!=="domain"&&(t[c]=encodeURIComponent(E))}),t["auth@"]=i?i+"@":"",t["#fragment"]=a?"#"+this.hashformat(a):"",t.fragment=t.fragment?t.fragment:"",t["#path"]=x?"#"+this.hashformat(x):"",t["/path"]=t.path?"/"+t.path:"",t.projectPath=C.split("/").map(encodeURIComponent).join("/"),h.noCommittish?(t["#committish"]="",t["/tree/committish"]="",t["/committish"]="",t.committish=""):(t["#committish"]=n?"#"+n:"",t["/tree/committish"]=t.committish?"/"+t.treepath+"/"+t.committish:"",t["/committish"]=t.committish?"/"+t.committish:"",t.committish=t.committish||"master");var g=u;return Object.keys(t).forEach(function(c){g=g.replace(new RegExp("[{]"+c+"[}]","g"),t[c])}),h.noGitPlus?g.replace(/^git[+]/,""):g}},m.prototype.ssh=function(u){return this._fill(this.sshtemplate,u)},m.prototype.sshurl=function(u){return this._fill(this.sshurltemplate,u)},m.prototype.browse=function(u,h,t){return typeof u=="string"?(typeof h!="string"&&(t=h,h=null),this._fill(this.browsefiletemplate,p({fragment:h,path:u},t))):this._fill(this.browsetemplate,u)},m.prototype.docs=function(u){return this._fill(this.docstemplate,u)},m.prototype.bugs=function(u){return this._fill(this.bugstemplate,u)},m.prototype.https=function(u){return this._fill(this.httpstemplate,u)},m.prototype.git=function(u){return this._fill(this.gittemplate,u)},m.prototype.shortcut=function(u){return this._fill(this.shortcuttemplate,u)},m.prototype.path=function(u){return this._fill(this.pathtemplate,u)},m.prototype.tarball=function(u){var h=p({},u,{noCommittish:!1});return this._fill(this.tarballtemplate,h)},m.prototype.file=function(u,h){return this._fill(this.filetemplate,p({path:u},h))},m.prototype.getDefaultRepresentation=function(){return this.default},m.prototype.toString=function(u){return this.default&&typeof this[this.default]=="function"?this[this.default](u):this.sshurl(u)},z}var Y,lt;function de(){return lt||(lt=1,Y=function(o){o.prototype[Symbol.iterator]=function*(){for(let p=this.head;p;p=p.next)yield p.value}}),Y}var J,ct;function ge(){if(ct)return J;ct=1,J=o,o.Node=h,o.create=o;function o(t){var r=this;if(r instanceof o||(r=new o),r.tail=null,r.head=null,r.length=0,t&&typeof t.forEach=="function")t.forEach(function(a){r.push(a)});else if(arguments.length>0)for(var i=0,n=arguments.length;i<n;i++)r.push(arguments[i]);return r}o.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var r=t.next,i=t.prev;return r&&(r.prev=i),i&&(i.next=r),t===this.head&&(this.head=r),t===this.tail&&(this.tail=i),t.list.length--,t.next=null,t.prev=null,t.list=null,r},o.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var r=this.head;t.list=this,t.next=r,r&&(r.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},o.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var r=this.tail;t.list=this,t.prev=r,r&&(r.next=t),this.tail=t,this.head||(this.head=t),this.length++}},o.prototype.push=function(){for(var t=0,r=arguments.length;t<r;t++)m(this,arguments[t]);return this.length},o.prototype.unshift=function(){for(var t=0,r=arguments.length;t<r;t++)u(this,arguments[t]);return this.length},o.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},o.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},o.prototype.forEach=function(t,r){r=r||this;for(var i=this.head,n=0;i!==null;n++)t.call(r,i.value,n,this),i=i.next},o.prototype.forEachReverse=function(t,r){r=r||this;for(var i=this.tail,n=this.length-1;i!==null;n--)t.call(r,i.value,n,this),i=i.prev},o.prototype.get=function(t){for(var r=0,i=this.head;i!==null&&r<t;r++)i=i.next;if(r===t&&i!==null)return i.value},o.prototype.getReverse=function(t){for(var r=0,i=this.tail;i!==null&&r<t;r++)i=i.prev;if(r===t&&i!==null)return i.value},o.prototype.map=function(t,r){r=r||this;for(var i=new o,n=this.head;n!==null;)i.push(t.call(r,n.value,this)),n=n.next;return i},o.prototype.mapReverse=function(t,r){r=r||this;for(var i=new o,n=this.tail;n!==null;)i.push(t.call(r,n.value,this)),n=n.prev;return i},o.prototype.reduce=function(t,r){var i,n=this.head;if(arguments.length>1)i=r;else if(this.head)n=this.head.next,i=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;n!==null;a++)i=t(i,n.value,a),n=n.next;return i},o.prototype.reduceReverse=function(t,r){var i,n=this.tail;if(arguments.length>1)i=r;else if(this.tail)n=this.tail.prev,i=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;n!==null;a--)i=t(i,n.value,a),n=n.prev;return i},o.prototype.toArray=function(){for(var t=new Array(this.length),r=0,i=this.head;i!==null;r++)t[r]=i.value,i=i.next;return t},o.prototype.toArrayReverse=function(){for(var t=new Array(this.length),r=0,i=this.tail;i!==null;r++)t[r]=i.value,i=i.prev;return t},o.prototype.slice=function(t,r){r=r||this.length,r<0&&(r+=this.length),t=t||0,t<0&&(t+=this.length);var i=new o;if(r<t||r<0)return i;t<0&&(t=0),r>this.length&&(r=this.length);for(var n=0,a=this.head;a!==null&&n<t;n++)a=a.next;for(;a!==null&&n<r;n++,a=a.next)i.push(a.value);return i},o.prototype.sliceReverse=function(t,r){r=r||this.length,r<0&&(r+=this.length),t=t||0,t<0&&(t+=this.length);var i=new o;if(r<t||r<0)return i;t<0&&(t=0),r>this.length&&(r=this.length);for(var n=this.length,a=this.tail;a!==null&&n>r;n--)a=a.prev;for(;a!==null&&n>t;n--,a=a.prev)i.push(a.value);return i},o.prototype.splice=function(t,r,...i){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,a=this.head;a!==null&&n<t;n++)a=a.next;for(var x=[],n=0;a&&n<r;n++)x.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var n=0;n<i.length;n++)a=p(this,a,i[n]);return x},o.prototype.reverse=function(){for(var t=this.head,r=this.tail,i=t;i!==null;i=i.prev){var n=i.prev;i.prev=i.next,i.next=n}return this.head=r,this.tail=t,this};function p(t,r,i){var n=r===t.head?new h(i,null,r,t):new h(i,r,r.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function m(t,r){t.tail=new h(r,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function u(t,r){t.head=new h(r,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function h(t,r,i,n){if(!(this instanceof h))return new h(t,r,i,n);this.list=n,this.value=t,r?(r.next=this,this.prev=r):this.prev=null,i?(i.prev=this,this.next=i):this.next=null}try{de()(o)}catch{}return J}var X,ut;function ve(){if(ut)return X;ut=1;const o=ge(),p=Symbol("max"),m=Symbol("length"),u=Symbol("lengthCalculator"),h=Symbol("allowStale"),t=Symbol("maxAge"),r=Symbol("dispose"),i=Symbol("noDisposeOnSet"),n=Symbol("lruList"),a=Symbol("cache"),x=Symbol("updateAgeOnGet"),C=()=>1;class g{constructor(s){if(typeof s=="number"&&(s={max:s}),s||(s={}),s.max&&(typeof s.max!="number"||s.max<0))throw new TypeError("max must be a non-negative number");this[p]=s.max||1/0;const e=s.length||C;if(this[u]=typeof e!="function"?C:e,this[h]=s.stale||!1,s.maxAge&&typeof s.maxAge!="number")throw new TypeError("maxAge must be a number");this[t]=s.maxAge||0,this[r]=s.dispose,this[i]=s.noDisposeOnSet||!1,this[x]=s.updateAgeOnGet||!1,this.reset()}set max(s){if(typeof s!="number"||s<0)throw new TypeError("max must be a non-negative number");this[p]=s||1/0,S(this)}get max(){return this[p]}set allowStale(s){this[h]=!!s}get allowStale(){return this[h]}set maxAge(s){if(typeof s!="number")throw new TypeError("maxAge must be a non-negative number");this[t]=s,S(this)}get maxAge(){return this[t]}set lengthCalculator(s){typeof s!="function"&&(s=C),s!==this[u]&&(this[u]=s,this[m]=0,this[n].forEach(e=>{e.length=this[u](e.value,e.key),this[m]+=e.length})),S(this)}get lengthCalculator(){return this[u]}get length(){return this[m]}get itemCount(){return this[n].length}rforEach(s,e){e=e||this;for(let l=this[n].tail;l!==null;){const f=l.prev;U(this,s,l,e),l=f}}forEach(s,e){e=e||this;for(let l=this[n].head;l!==null;){const f=l.next;U(this,s,l,e),l=f}}keys(){return this[n].toArray().map(s=>s.key)}values(){return this[n].toArray().map(s=>s.value)}reset(){this[r]&&this[n]&&this[n].length&&this[n].forEach(s=>this[r](s.key,s.value)),this[a]=new Map,this[n]=new o,this[m]=0}dump(){return this[n].map(s=>E(this,s)?!1:{k:s.key,v:s.value,e:s.now+(s.maxAge||0)}).toArray().filter(s=>s)}dumpLru(){return this[n]}set(s,e,l){if(l=l||this[t],l&&typeof l!="number")throw new TypeError("maxAge must be a number");const f=l?Date.now():0,y=this[u](e,s);if(this[a].has(s)){if(y>this[p])return w(this,this[a].get(s)),!1;const A=this[a].get(s).value;return this[r]&&(this[i]||this[r](s,A.value)),A.now=f,A.maxAge=l,A.value=e,this[m]+=y-A.length,A.length=y,this.get(s),S(this),!0}const b=new R(s,e,y,f,l);return b.length>this[p]?(this[r]&&this[r](s,e),!1):(this[m]+=b.length,this[n].unshift(b),this[a].set(s,this[n].head),S(this),!0)}has(s){if(!this[a].has(s))return!1;const e=this[a].get(s).value;return!E(this,e)}get(s){return c(this,s,!0)}peek(s){return c(this,s,!1)}pop(){const s=this[n].tail;return s?(w(this,s),s.value):null}del(s){w(this,this[a].get(s))}load(s){this.reset();const e=Date.now();for(let l=s.length-1;l>=0;l--){const f=s[l],y=f.e||0;if(y===0)this.set(f.k,f.v);else{const b=y-e;b>0&&this.set(f.k,f.v,b)}}}prune(){this[a].forEach((s,e)=>c(this,e,!1))}}const c=(v,s,e)=>{const l=v[a].get(s);if(l){const f=l.value;if(E(v,f)){if(w(v,l),!v[h])return}else e&&(v[x]&&(l.value.now=Date.now()),v[n].unshiftNode(l));return f.value}},E=(v,s)=>{if(!s||!s.maxAge&&!v[t])return!1;const e=Date.now()-s.now;return s.maxAge?e>s.maxAge:v[t]&&e>v[t]},S=v=>{if(v[m]>v[p])for(let s=v[n].tail;v[m]>v[p]&&s!==null;){const e=s.prev;w(v,s),s=e}},w=(v,s)=>{if(s){const e=s.value;v[r]&&v[r](e.key,e.value),v[m]-=e.length,v[a].delete(e.key),v[n].removeNode(s)}};class R{constructor(s,e,l,f,y){this.key=s,this.value=e,this.length=l,this.now=f,this.maxAge=y||0}}const U=(v,s,e,l)=>{let f=e.value;E(v,f)&&(w(v,e),v[h]||(f=void 0)),f&&s.call(l,f.value,f.key,v)};return X=g,X}var ht;function ye(){if(ht)return F.exports;ht=1;var o=Ot,p=yt(),m=F.exports=me(),u=ve(),h=new u({max:1e3}),t={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function r(g){return t[g]||g.slice(0,-1)}var i={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0};F.exports.fromUrl=function(g,c){if(typeof g=="string"){var E=g+JSON.stringify(c||{});return h.has(E)||h.set(E,n(g,c)),h.get(E)}};function n(g,c){if(!(g==null||g==="")){var E=x(a(g)?"github:"+g:g),S=C(E),w=E.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\/)?([^#]+)/),R=Object.keys(p).map(function(U){try{var v=p[U],s=null;S.auth&&i[S.protocol]&&(s=S.auth);var e=S.hash?decodeURIComponent(S.hash.substr(1)):null,l=null,f=null,y=null;if(w&&w[1]===U)l=w[2]&&decodeURIComponent(w[2]),f=decodeURIComponent(w[3].replace(/\.git$/,"")),y="shortcut";else{if(S.host&&S.host!==v.domain&&S.host.replace(/^www[.]/,"")!==v.domain||!v.protocols_re.test(S.protocol)||!S.path)return;var b=v.pathmatch,_=S.path.match(b);if(!_)return;_[1]!==null&&_[1]!==void 0&&(l=decodeURIComponent(_[1].replace(/^:/,""))),f=decodeURIComponent(_[2]),y=r(S.protocol)}return new m(U,l,s,f,e,y,c)}catch(A){if(!(A instanceof URIError))throw A}}).filter(function(U){return U});if(R.length===1)return R[0]}}function a(g){return/^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(g)}function x(g){var c=o.parse(g);return c.protocol==="gist:"&&c.host&&!c.path?c.protocol+"/"+c.host:g}function C(g){var c=g.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/);if(!c){var E=o.parse(g);if(E.auth){const w=g.match(/[^@]+@[^:/]+/);if(w){var S=new o.URL(w[0]);E.auth=S.username||"",S.password&&(E.auth+=":"+S.password)}}return E}return{protocol:"git+ssh:",slashes:!0,auth:c[1],host:c[2],port:null,hostname:c[2],hash:c[4],search:null,query:null,pathname:"/"+c[3],path:"/"+c[3],href:"git+ssh://"+c[1]+"@"+c[2]+"/"+c[3]+(c[4]||"")}}return F.exports}var N={},P={},ft;function xe(){if(ft)return P;ft=1;var o=P&&P.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(P,"__esModule",{value:!0}),P.setService=P.findService=P.getDefaultServiceConfig=P.getServiceConfig=void 0;const p=o(oe),m=gt(),u={},h=a=>{u[a.name]={validate:a.schema.validate.bind(a.schema),defaultConfig:a.default}};P.setService=h,h({name:"auth",schema:m.authConfigSchema,default:{}});const t=a=>{if(!a)throw new Error("service name should not be empty");const x=u[a];if(!x)throw new Error(`service ${a} does not exist`);return x},r=(a,x,{validate:C}={})=>{const g=t(a),c=(0,p.default)(x||{}),{value:E,error:S}=g.validate(c);if(C&&S)throw new Error(`Invalid blocklet service config: ${S.details.map(w=>w.message).join(", ")}`);return E};P.getServiceConfig=r;const i=a=>{const{defaultConfig:x}=t(a);return x};P.getDefaultServiceConfig=i;const n=(a,x)=>{const C=[x];return(a||[]).find(g=>C.includes(g.name))};return P.findService=n,P.default={getServiceConfig:r,getDefaultServiceConfig:i,findService:n,setService:h},P}var pt;function be(){if(pt)return N;pt=1,Object.defineProperty(N,"__esModule",{value:!0}),N.fixAndValidateService=N.validateMeta=void 0;const o=gt(),p=xe(),m=h=>(!h.interfaces||!h.interfaces.length||h.interfaces.forEach(t=>{t.services&&t.services.length&&t.services.forEach(r=>{r.config=(0,p.getServiceConfig)(r.name,r.config,{validate:!0})})}),h);N.fixAndValidateService=m;const u=(h,{ensureFiles:t=!1,ensureDist:r=!1,ensureComponentStore:i=!0,ensureName:n=!1,skipValidateDidName:a=!1,schemaOptions:x={}}={})=>{const C=(0,o.createBlockletSchema)(null,{ensureFiles:t,ensureDist:r,ensureComponentStore:i,ensureName:n,skipValidateDidName:a,...x}),{value:g,error:c}=C.validate(h);if(c)throw new Error(`Invalid blocklet meta: ${c.details.map(E=>E.message).join(", ")}`);return g};return N.validateMeta=u,N.default=u,N}var mt;function je(){return mt||(mt=1,function(o){var p=T&&T.__createBinding||(Object.create?function(e,l,f,y){y===void 0&&(y=f);var b=Object.getOwnPropertyDescriptor(l,f);(!b||("get"in b?!l.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return l[f]}}),Object.defineProperty(e,y,b)}:function(e,l,f,y){y===void 0&&(y=f),e[y]=l[f]}),m=T&&T.__setModuleDefault||(Object.create?function(e,l){Object.defineProperty(e,"default",{enumerable:!0,value:l})}:function(e,l){e.default=l}),u=T&&T.__importStar||function(){var e=function(l){return e=Object.getOwnPropertyNames||function(f){var y=[];for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(y[y.length]=b);return y},e(l)};return function(l){if(l&&l.__esModule)return l;var f={};if(l!=null)for(var y=e(l),b=0;b<y.length;b++)y[b]!=="default"&&p(f,l,y[b]);return m(f,l),f}}(),h=T&&T.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(o,"__esModule",{value:!0}),o.fixService=o.fixInterfaces=o.parsePerson=o.formatPerson=o.fixName=o.fixTags=o.fixPerson=o.fixKeywords=o.fixFiles=o.fixRepository=o.fixRequired=void 0;const t=h(Pt),r=u(ye()),i=Lt(),n=be();Object.defineProperty(o,"fixService",{enumerable:!0,get:function(){return n.fixAndValidateService}});const a=ne(),x=(e,l)=>{e.description||(e.description=`Blocklet from ${l}`),e.version||(e.version=i.BLOCKLET_DEFAULT_VERSION)};o.fixRequired=x;const C=e=>{if(e.repository&&(typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository}),e.repository.url)){const l=r.fromUrl(e.repository.url);l&&(e.repository.url=l.getDefaultRepresentation()==="shortcut"?l.https():l.toString())}};o.fixRepository=C;const g=e=>{Array.isArray(e.files)?e.files&&(e.files=e.files.filter(l=>!(!l||typeof l!="string"))):delete e.files};o.fixFiles=g;const c=e=>{typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?delete e.keywords:e.keywords&&(e.keywords=e.keywords.filter(l=>!(typeof l!="string"||!l)))};o.fixKeywords=c;const E=e=>{typeof e.tags=="string"&&(e.tags=e.tags.split(/,\s+/)),e.tags&&!Array.isArray(e.tags)?delete e.tags:e.tags&&(e.tags=e.tags.filter(l=>!(typeof l!="string"||!l)))};o.fixTags=E;const S=(e,l)=>(e.author&&(e.author=l(e.author)),["maintainers","contributors"].forEach(f=>{Array.isArray(e[f])&&(e[f]=e[f].map(l))}),e),w=e=>{if(!e)return"";if(typeof e=="string")return e;const l=e.name||"",f=e.url||e.web,y=f?` (${f})`:"",b=e.email||e.mail,_=b?` <${b}>`:"";return l+_+y};o.formatPerson=w;const R=e=>{if(typeof e!="string")return e;const l=e.match(/^([^(<]+)/),f=e.match(/\(([^)]+)\)/),y=e.match(/<([^>]+)>/),b={};return l&&l[0].trim()&&(b.name=l[0].trim()),y&&([,b.email]=y),f&&([,b.url]=f),b};o.parsePerson=R;const U=e=>(S(e,w),S(e,R),e);o.fixPerson=U;const v=(e,l=!0)=>{if(Array.isArray(e.interfaces)||(e.interfaces=[]),e.interfaces.length)return e.interfaces.forEach(_=>{_.type===i.BLOCKLET_INTERFACE_TYPE_WEB&&(_.protocol="http")}),e;const y=(0,t.default)(e,"capabilities.dynamicPathPrefix",!0)?i.BLOCKLET_DYNAMIC_PATH_PREFIX:"/",b=({type:_="web",name:A,path:W="/",protocol:G="http",port:B=i.BLOCKLET_DEFAULT_PORT_NAME})=>{e.interfaces.push({type:_,name:A,path:W,prefix:y,port:B,protocol:G})};return[i.BLOCKLET_INTERFACE_PUBLIC].forEach(_=>{e[_]&&b({name:_,path:e[_]})}),Array.isArray(e.exposeServices)&&e.exposeServices.forEach(_=>{b({type:"service",name:_.protocol,protocol:_.protocol,port:{internal:`BLOCKLET_${_.protocol}_PORT`.toUpperCase(),external:_.port}})}),l&&(delete e.publicUrl,delete e.adminUrl,delete e.configUrl,delete e.docUrl,delete e.exposeServices,e.capabilities&&delete e.capabilities.dynamicPathPrefix),e};o.fixInterfaces=v;const s=e=>{const{did:l}=e;try{(0,a.validateNewDid)(l),e.name=l}catch{}return e};o.fixName=s,o.default={fixRequired:x,fixRepository:C,fixFiles:g,fixKeywords:c,fixPerson:U,fixTags:E,fixName:s,formatPerson:w,parsePerson:R,fixInterfaces:v,fixService:n.fixAndValidateService}}(T)),T}var Se=je();function xt({owner:o,locale:p}){return j.jsxs(dt,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.fullName,o.did?j.jsx(Tt,{sx:{lineHeight:"initial","&::before":{content:'"("'},"&::after":{content:'")"'}},did:o.did,compact:!0,size:14,locale:p}):null]})}xt.propTypes={owner:L.object.isRequired,locale:L.string.isRequired};const Ee="install-blocklet-from-URL",bt=()=>{const[o,p]=vt(Ee,"[]",{raw:!0}),m=h=>{const t=h.trim(),r=JSON.parse(o),i=r.findIndex(n=>n===t);i!==0&&(i>0&&r.splice(i,1),r.length>=10&&r.splice(9),r.unshift(t),p(JSON.stringify(r)))},u=h=>{if(!h)return;const t=JSON.parse(o),r=h.trim(),i=t.findIndex(n=>n===r);i>-1&&(t.splice(i,1),p(JSON.stringify(t)))};return{urls:o?JSON.parse(o):[],addUrlRecord:m,removeUrlRecord:u}};function jt({value:o="",onValueChange:p=()=>{},children:m=null,helperText:u=""}){const{urls:h,removeUrlRecord:t}=bt(),r=(i,n)=>{i.preventDefault(),i.stopPropagation(),t(n)};return j.jsxs(dt,{children:[j.jsx(le,{freeSolo:!0,options:h,inputValue:o,onInputChange:(i,n)=>{p(n)},disableClearable:!0,popupIcon:null,renderInput:i=>Dt.cloneElement(m,{...i}),renderOption:(i,n)=>I.createElement(Nt,{...i,key:n,secondaryAction:j.jsx(qt,{edge:"end","aria-label":"delete",onClick:a=>r(a,n),children:j.jsx(ae,{})})},j.jsx(ce,{role:void 0,dense:!0,sx:{paddingLeft:0,paddingRight:30,"&:hover":{backgroundColor:"transparent"}},children:j.jsx(Mt,{primary:n,sx:{"& span":{display:"block",width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}})})),slotProps:{listbox:{sx:{maxHeight:300,overflow:"auto"}}}}),j.jsx(Wt,{style:{margin:0},children:u})]})}jt.propTypes={onValueChange:L.func,children:L.node,value:L.string,helperText:L.string};function _e({defaultUrl:o="",onCancel:p,onSuccess:m,onError:u=()=>{},mode:h="install",handleText:t={}}){const{api:r}=$t(),{api:i,session:n}=Bt(),[a,x]=I.useState(!1),[C,g]=I.useState(""),{t:c,locale:E}=Ft(),S={dist:{}},{encryptKey:w}=Gt(),[R,U]=I.useState(o),[v,s]=I.useState(o?1:0),[e,l]=I.useState(S),[f,y]=I.useState(!1),[b,_]=I.useState(""),[A]=vt("instant-blocklet-install",!1),[W,G]=I.useState({}),B=h==="component",H=B?!0:!o,{addUrlRecord:St}=bt(),$=I.useMemo(()=>(n.user?.connectedAccounts||[]).some(D=>D.provider===Ht.LOGIN_PROVIDER.WALLET),[n.user]),Q=I.useMemo(()=>{let d=R.trim();return!d.startsWith("https://")&&!d.startsWith("http://")&&!d.startsWith("file://")&&(d=`file://${d}`),d},[R]),K=async()=>{l(S),g(null),x(!0);const d=Q;try{const O=decodeURIComponent(d);try{new URL(O)}catch{throw new Error("Invalid URL")}const{meta:D,inStore:It,registryUrl:Ut}=await r.getBlockletMetaFromUrl({input:{url:O}});l(D),G({inStore:It,registryUrl:Ut,inputUrl:d}),St(d)}catch(O){console.error(O);const D=`Blocklet Install failed: ${rt(O)}`;g(D),u(O)}finally{x(!1)}},Et=()=>{if(B){m({meta:e,...W}),p();return}if(A){x(!0),y(!0);return}const d=et(window?.env?.apiPrefix??"/","/launch-blocklet/install");window.location.href=re(d,{blocklet_meta_url:decodeURIComponent(Q.trim()),from:"url"})},Z=()=>{x(!1),y(!1),m({meta:e,...W}),p()},_t=()=>{x(!1),y(!1)};I.useEffect(()=>{o&&K()},[o]);const M=I.useMemo(()=>({title:e.title,wt:Kt(e),blockletMetaUrl:decodeURIComponent(R.trim())}),[e,R]),k=I.useCallback(async()=>{if($||A){_("");return}const d=new URL(window.location.href);d.pathname=et(window?.env?.apiPrefix??"/","/api/did/launch-free-blocklet-by-session/token"),d.searchParams.set("_ek_",w),Object.keys(M).forEach(D=>{d.searchParams.set(D,M[D])});const{data:O}=await i.get(d.href);O.url?_(O.url):_("")},[$,M,i,w,A]);I.useEffect(()=>{k()},[k]);const wt=I.useMemo(()=>$&&b?{...M,nw:b,skipMigrateAccount:!0}:M,[M,b,$]),Ct=[{name:c("common.name"),value:Vt.getDisplayName({meta:e},!0)},{name:c("common.version"),value:e.version},{name:c("common.did"),value:e.did?j.jsx(zt,{did:e.did}):null},{name:c("common.author"),value:e.owner?j.jsx(xt,{owner:e.owner,locale:E}):Se.formatPerson(e.author)},{name:c("blocklet.dist.downloadLink"),value:e.dist.tarball}],Rt=()=>a?j.jsx("div",{style:{height:200,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:j.jsx(nt,{})}):e.did?j.jsx("div",{style:{paddingLeft:"10%"},children:Ct.map(d=>d.name===c("common.did")?j.jsx(st,{valueComponent:"div",nameWidth:120,name:d.name,nameFormatter:()=>c("common.did"),children:d.value},d.name):j.jsx(st,{valueComponent:"div",nameWidth:120,name:d.name,children:d.value},d.name))}):null,At=Yt(async()=>{let d=e.title;n.user&&(d=`${n.user.fullName}'s ${e.title}`);try{Z(),await r.launchBlockletWithoutWallet({input:{title:d,blockletMetaUrl:decodeURIComponent(R.trim()),type:"store",storeUrl:W.registryUrl,onlyRequired:!0}})}catch(O){console.error("launchBlockletWithoutWallet error:",O),Jt.error(rt(O),{autoHideDuration:3e3})}}),tt=[{label:c("blocklet.fromUrl.step0"),body:j.jsx(Xt,{component:"div",children:j.jsx(jt,{style:{marginBottom:32},value:R,helperText:c("blocklet.fromUrl.description"),onValueChange:d=>{g(null),U(d)},children:j.jsx(Qt,{label:c("blocklet.fromUrl.label"),autoComplete:"off",variant:"outlined",name:"url","data-cy":"blocklet-url-input",fullWidth:!0,autoFocus:!0,margin:"dense",value:R,onChange:d=>{g(null),U(d.target.value)},disabled:a,onKeyPress:d=>{d.key==="Enter"&&(d.preventDefault(),K(),s(1))}})})}),cancel:c("common.cancel"),confirm:c("common.next"),onCancel:p,onConfirm:()=>{K(),s(1)}},{label:c("blocklet.fromUrl.step1"),body:Rt(),cancel:c(H?"common.pre":"common.cancel"),confirm:t?.confirm||c("blocklet.fromUrl.confirm"),onCancel:()=>{H?s(d=>d-1):p()},onConfirm:()=>{Et()}}],q=tt[v];return j.jsxs(j.Fragment,{children:[j.jsxs(Zt,{title:t?.title||c("blocklet.fromUrl.title"),fullWidth:!0,maxWidth:"md",onClose:()=>q.onCancel(),showCloseButton:v===0,disableEscapeKeyDown:!0,open:!0,actions:j.jsxs(j.Fragment,{children:[q.cancel&&j.jsx(it,{onClick:d=>{d.stopPropagation(),g(null),q.onCancel()},color:"inherit",children:q.cancel||c("common.cancel")}),j.jsxs(it,{onClick:d=>{d.stopPropagation(),q.onConfirm()},color:"primary","data-cy":"install-blocklet-next-step",disabled:a||!R||C,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[a&&v===0&&j.jsx(nt,{size:16}),q.confirm]})]}),children:[H&&j.jsx(ue,{alternativeLabel:!0,activeStep:v,children:tt.map(({label:d})=>j.jsx(he,{children:j.jsx(fe,{children:d})},d))}),j.jsx(kt,{component:"div",style:{marginTop:24},children:q.body}),!!C&&j.jsx(te,{severity:"error",style:{width:"100%",marginTop:8},children:C})]}),e&&f&&j.jsx(ee,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:!$&&!A?"bind-wallet":"launch-free-blocklet-by-session",checkFn:i.get,checkTimeout:5*60*1e3,onSuccess:Z,extraParams:wt,messages:{title:c("setup.keyPair.title"),scan:c("setup.keyPair.scan"),confirm:c("setup.keyPair.confirm"),success:c("setup.keyPair.success")},onClose:_t,customItems:A?[]:[j.jsx(se,{onClick:At})]})]})}_e.propTypes={defaultUrl:L.string,onCancel:L.func.isRequired,onSuccess:L.func.isRequired,onError:L.func,mode:L.oneOf(["install","component"]),handleText:L.object};export{pe as B,_e as I,xt as a,Se as f};
1
+ import{j,o as L,dE as Ot,dF as Pt,dG as Lt,K as dt,dH as Tt,r as I,be as Dt,a7 as Nt,a3 as qt,a8 as Mt,bi as Wt,bn as $t,n as Bt,V as Ft,cN as Gt,b as Ht,bC as Kt,y as et,i as Vt,W as zt,cw as Yt,H as Jt,X as rt,T as Xt,t as Qt,$ as Zt,D as kt,U as te,v as it,C as nt,w as ee,z as re}from"./index-2c1VoOd9.js";import{W as ie}from"./status-BVLGfZ_U.js";import{r as gt,a as ne,W as se}from"./without-wallet-DwaGUGcr.js";import{r as oe}from"./cloneDeep-BAowUJcW.js";import{u as vt}from"./useLocalStorage-C5c8IOKv.js";import{v as st}from"./index-BNQ03H5g.js";import{D as ae}from"./url-evaluation-CKpb4hS-.js";import{A as le}from"./Autocomplete-BBHR-e2e.js";import{L as ce}from"./ListItemButton-BRQYff97.js";import{S as ue,a as he,b as fe}from"./Stepper-BJZfb2Le.js";function pe({mode:o,...p}){return o==="development"?j.jsx(ie,{type:"primary",...p,children:"DEV"}):null}pe.propTypes={mode:L.string.isRequired};var T={},F={exports:{}},V={exports:{}},ot;function yt(){if(ot)return V.exports;ot=1;var o=V.exports={github:{protocols:["git","http","git+ssh","git+https","ssh","https"],domain:"github.com",treepath:"tree",filetemplate:"https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}",bugstemplate:"https://{domain}/{user}/{project}/issues",gittemplate:"git://{auth@}{domain}/{user}/{project}.git{#committish}",tarballtemplate:"https://codeload.{domain}/{user}/{project}/tar.gz/{committish}"},bitbucket:{protocols:["git+ssh","git+https","ssh","https"],domain:"bitbucket.org",treepath:"src",tarballtemplate:"https://{domain}/{user}/{project}/get/{committish}.tar.gz"},gitlab:{protocols:["git+ssh","git+https","ssh","https"],domain:"gitlab.com",treepath:"tree",bugstemplate:"https://{domain}/{user}/{project}/issues",httpstemplate:"git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}",tarballtemplate:"https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}",pathmatch:/^\/([^/]+)\/((?!.*(\/-\/|\/repository(\/[^/]+)?\/archive\.tar\.gz)).*?)(?:\.git|\/)?$/},gist:{protocols:["git","git+ssh","git+https","ssh","https"],domain:"gist.github.com",pathmatch:/^[/](?:([^/]+)[/])?([a-z0-9]{7,})(?:[.]git)?$/,filetemplate:"https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}",bugstemplate:"https://{domain}/{project}",gittemplate:"git://{domain}/{project}.git{#committish}",sshtemplate:"git@{domain}:/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{project}.git{#committish}",browsetemplate:"https://{domain}/{project}{/committish}",browsefiletemplate:"https://{domain}/{project}{/committish}{#path}",docstemplate:"https://{domain}/{project}{/committish}",httpstemplate:"git+https://{domain}/{project}.git{#committish}",shortcuttemplate:"{type}:{project}{#committish}",pathtemplate:"{project}{#committish}",tarballtemplate:"https://codeload.github.com/gist/{project}/tar.gz/{committish}",hashformat:function(u){return"file-"+m(u)}}},p={sshtemplate:"git@{domain}:{user}/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{user}/{project}.git{#committish}",browsetemplate:"https://{domain}/{user}/{project}{/tree/committish}",browsefiletemplate:"https://{domain}/{user}/{project}/{treepath}/{committish}/{path}{#fragment}",docstemplate:"https://{domain}/{user}/{project}{/tree/committish}#readme",httpstemplate:"git+https://{auth@}{domain}/{user}/{project}.git{#committish}",filetemplate:"https://{domain}/{user}/{project}/raw/{committish}/{path}",shortcuttemplate:"{type}:{user}/{project}{#committish}",pathtemplate:"{user}/{project}{#committish}",pathmatch:/^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/,hashformat:m};Object.keys(o).forEach(function(u){Object.keys(p).forEach(function(h){o[u][h]||(o[u][h]=p[h])}),o[u].protocols_re=RegExp("^("+o[u].protocols.map(function(h){return h.replace(/([\\+*{}()[\]$^|])/g,"\\$1")}).join("|")+"):$")});function m(u){return u.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}return V.exports}var z,at;function me(){if(at)return z;at=1;var o=yt(),p=Object.assign||function(h,t){if(t===null||typeof t!="object")return h;const r=Object.keys(t);let i=r.length;for(;i--;)h[r[i]]=t[r[i]];return h};z=m;function m(u,h,t,r,i,n,a){var x=this;x.type=u,Object.keys(o[u]).forEach(function(C){x[C]=o[u][C]}),x.user=h,x.auth=t,x.project=r,x.committish=i,x.default=n,x.opts=a||{}}return m.prototype.hash=function(){return this.committish?"#"+this.committish:""},m.prototype._fill=function(u,h){if(u){var t=p({},h);t.path=t.path?t.path.replace(/^[/]+/g,""):"",h=p(p({},this.opts),h);var r=this;Object.keys(this).forEach(function(c){r[c]!=null&&t[c]==null&&(t[c]=r[c])});var i=t.auth,n=t.committish,a=t.fragment,x=t.path,C=t.project;Object.keys(t).forEach(function(c){var E=t[c];(c==="path"||c==="project")&&typeof E=="string"?t[c]=E.split("/").map(function(S){return encodeURIComponent(S)}).join("/"):c!=="domain"&&(t[c]=encodeURIComponent(E))}),t["auth@"]=i?i+"@":"",t["#fragment"]=a?"#"+this.hashformat(a):"",t.fragment=t.fragment?t.fragment:"",t["#path"]=x?"#"+this.hashformat(x):"",t["/path"]=t.path?"/"+t.path:"",t.projectPath=C.split("/").map(encodeURIComponent).join("/"),h.noCommittish?(t["#committish"]="",t["/tree/committish"]="",t["/committish"]="",t.committish=""):(t["#committish"]=n?"#"+n:"",t["/tree/committish"]=t.committish?"/"+t.treepath+"/"+t.committish:"",t["/committish"]=t.committish?"/"+t.committish:"",t.committish=t.committish||"master");var g=u;return Object.keys(t).forEach(function(c){g=g.replace(new RegExp("[{]"+c+"[}]","g"),t[c])}),h.noGitPlus?g.replace(/^git[+]/,""):g}},m.prototype.ssh=function(u){return this._fill(this.sshtemplate,u)},m.prototype.sshurl=function(u){return this._fill(this.sshurltemplate,u)},m.prototype.browse=function(u,h,t){return typeof u=="string"?(typeof h!="string"&&(t=h,h=null),this._fill(this.browsefiletemplate,p({fragment:h,path:u},t))):this._fill(this.browsetemplate,u)},m.prototype.docs=function(u){return this._fill(this.docstemplate,u)},m.prototype.bugs=function(u){return this._fill(this.bugstemplate,u)},m.prototype.https=function(u){return this._fill(this.httpstemplate,u)},m.prototype.git=function(u){return this._fill(this.gittemplate,u)},m.prototype.shortcut=function(u){return this._fill(this.shortcuttemplate,u)},m.prototype.path=function(u){return this._fill(this.pathtemplate,u)},m.prototype.tarball=function(u){var h=p({},u,{noCommittish:!1});return this._fill(this.tarballtemplate,h)},m.prototype.file=function(u,h){return this._fill(this.filetemplate,p({path:u},h))},m.prototype.getDefaultRepresentation=function(){return this.default},m.prototype.toString=function(u){return this.default&&typeof this[this.default]=="function"?this[this.default](u):this.sshurl(u)},z}var Y,lt;function de(){return lt||(lt=1,Y=function(o){o.prototype[Symbol.iterator]=function*(){for(let p=this.head;p;p=p.next)yield p.value}}),Y}var J,ct;function ge(){if(ct)return J;ct=1,J=o,o.Node=h,o.create=o;function o(t){var r=this;if(r instanceof o||(r=new o),r.tail=null,r.head=null,r.length=0,t&&typeof t.forEach=="function")t.forEach(function(a){r.push(a)});else if(arguments.length>0)for(var i=0,n=arguments.length;i<n;i++)r.push(arguments[i]);return r}o.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var r=t.next,i=t.prev;return r&&(r.prev=i),i&&(i.next=r),t===this.head&&(this.head=r),t===this.tail&&(this.tail=i),t.list.length--,t.next=null,t.prev=null,t.list=null,r},o.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var r=this.head;t.list=this,t.next=r,r&&(r.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},o.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var r=this.tail;t.list=this,t.prev=r,r&&(r.next=t),this.tail=t,this.head||(this.head=t),this.length++}},o.prototype.push=function(){for(var t=0,r=arguments.length;t<r;t++)m(this,arguments[t]);return this.length},o.prototype.unshift=function(){for(var t=0,r=arguments.length;t<r;t++)u(this,arguments[t]);return this.length},o.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},o.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},o.prototype.forEach=function(t,r){r=r||this;for(var i=this.head,n=0;i!==null;n++)t.call(r,i.value,n,this),i=i.next},o.prototype.forEachReverse=function(t,r){r=r||this;for(var i=this.tail,n=this.length-1;i!==null;n--)t.call(r,i.value,n,this),i=i.prev},o.prototype.get=function(t){for(var r=0,i=this.head;i!==null&&r<t;r++)i=i.next;if(r===t&&i!==null)return i.value},o.prototype.getReverse=function(t){for(var r=0,i=this.tail;i!==null&&r<t;r++)i=i.prev;if(r===t&&i!==null)return i.value},o.prototype.map=function(t,r){r=r||this;for(var i=new o,n=this.head;n!==null;)i.push(t.call(r,n.value,this)),n=n.next;return i},o.prototype.mapReverse=function(t,r){r=r||this;for(var i=new o,n=this.tail;n!==null;)i.push(t.call(r,n.value,this)),n=n.prev;return i},o.prototype.reduce=function(t,r){var i,n=this.head;if(arguments.length>1)i=r;else if(this.head)n=this.head.next,i=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;n!==null;a++)i=t(i,n.value,a),n=n.next;return i},o.prototype.reduceReverse=function(t,r){var i,n=this.tail;if(arguments.length>1)i=r;else if(this.tail)n=this.tail.prev,i=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;n!==null;a--)i=t(i,n.value,a),n=n.prev;return i},o.prototype.toArray=function(){for(var t=new Array(this.length),r=0,i=this.head;i!==null;r++)t[r]=i.value,i=i.next;return t},o.prototype.toArrayReverse=function(){for(var t=new Array(this.length),r=0,i=this.tail;i!==null;r++)t[r]=i.value,i=i.prev;return t},o.prototype.slice=function(t,r){r=r||this.length,r<0&&(r+=this.length),t=t||0,t<0&&(t+=this.length);var i=new o;if(r<t||r<0)return i;t<0&&(t=0),r>this.length&&(r=this.length);for(var n=0,a=this.head;a!==null&&n<t;n++)a=a.next;for(;a!==null&&n<r;n++,a=a.next)i.push(a.value);return i},o.prototype.sliceReverse=function(t,r){r=r||this.length,r<0&&(r+=this.length),t=t||0,t<0&&(t+=this.length);var i=new o;if(r<t||r<0)return i;t<0&&(t=0),r>this.length&&(r=this.length);for(var n=this.length,a=this.tail;a!==null&&n>r;n--)a=a.prev;for(;a!==null&&n>t;n--,a=a.prev)i.push(a.value);return i},o.prototype.splice=function(t,r,...i){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,a=this.head;a!==null&&n<t;n++)a=a.next;for(var x=[],n=0;a&&n<r;n++)x.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var n=0;n<i.length;n++)a=p(this,a,i[n]);return x},o.prototype.reverse=function(){for(var t=this.head,r=this.tail,i=t;i!==null;i=i.prev){var n=i.prev;i.prev=i.next,i.next=n}return this.head=r,this.tail=t,this};function p(t,r,i){var n=r===t.head?new h(i,null,r,t):new h(i,r,r.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function m(t,r){t.tail=new h(r,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function u(t,r){t.head=new h(r,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function h(t,r,i,n){if(!(this instanceof h))return new h(t,r,i,n);this.list=n,this.value=t,r?(r.next=this,this.prev=r):this.prev=null,i?(i.prev=this,this.next=i):this.next=null}try{de()(o)}catch{}return J}var X,ut;function ve(){if(ut)return X;ut=1;const o=ge(),p=Symbol("max"),m=Symbol("length"),u=Symbol("lengthCalculator"),h=Symbol("allowStale"),t=Symbol("maxAge"),r=Symbol("dispose"),i=Symbol("noDisposeOnSet"),n=Symbol("lruList"),a=Symbol("cache"),x=Symbol("updateAgeOnGet"),C=()=>1;class g{constructor(s){if(typeof s=="number"&&(s={max:s}),s||(s={}),s.max&&(typeof s.max!="number"||s.max<0))throw new TypeError("max must be a non-negative number");this[p]=s.max||1/0;const e=s.length||C;if(this[u]=typeof e!="function"?C:e,this[h]=s.stale||!1,s.maxAge&&typeof s.maxAge!="number")throw new TypeError("maxAge must be a number");this[t]=s.maxAge||0,this[r]=s.dispose,this[i]=s.noDisposeOnSet||!1,this[x]=s.updateAgeOnGet||!1,this.reset()}set max(s){if(typeof s!="number"||s<0)throw new TypeError("max must be a non-negative number");this[p]=s||1/0,S(this)}get max(){return this[p]}set allowStale(s){this[h]=!!s}get allowStale(){return this[h]}set maxAge(s){if(typeof s!="number")throw new TypeError("maxAge must be a non-negative number");this[t]=s,S(this)}get maxAge(){return this[t]}set lengthCalculator(s){typeof s!="function"&&(s=C),s!==this[u]&&(this[u]=s,this[m]=0,this[n].forEach(e=>{e.length=this[u](e.value,e.key),this[m]+=e.length})),S(this)}get lengthCalculator(){return this[u]}get length(){return this[m]}get itemCount(){return this[n].length}rforEach(s,e){e=e||this;for(let l=this[n].tail;l!==null;){const f=l.prev;U(this,s,l,e),l=f}}forEach(s,e){e=e||this;for(let l=this[n].head;l!==null;){const f=l.next;U(this,s,l,e),l=f}}keys(){return this[n].toArray().map(s=>s.key)}values(){return this[n].toArray().map(s=>s.value)}reset(){this[r]&&this[n]&&this[n].length&&this[n].forEach(s=>this[r](s.key,s.value)),this[a]=new Map,this[n]=new o,this[m]=0}dump(){return this[n].map(s=>E(this,s)?!1:{k:s.key,v:s.value,e:s.now+(s.maxAge||0)}).toArray().filter(s=>s)}dumpLru(){return this[n]}set(s,e,l){if(l=l||this[t],l&&typeof l!="number")throw new TypeError("maxAge must be a number");const f=l?Date.now():0,y=this[u](e,s);if(this[a].has(s)){if(y>this[p])return w(this,this[a].get(s)),!1;const A=this[a].get(s).value;return this[r]&&(this[i]||this[r](s,A.value)),A.now=f,A.maxAge=l,A.value=e,this[m]+=y-A.length,A.length=y,this.get(s),S(this),!0}const b=new R(s,e,y,f,l);return b.length>this[p]?(this[r]&&this[r](s,e),!1):(this[m]+=b.length,this[n].unshift(b),this[a].set(s,this[n].head),S(this),!0)}has(s){if(!this[a].has(s))return!1;const e=this[a].get(s).value;return!E(this,e)}get(s){return c(this,s,!0)}peek(s){return c(this,s,!1)}pop(){const s=this[n].tail;return s?(w(this,s),s.value):null}del(s){w(this,this[a].get(s))}load(s){this.reset();const e=Date.now();for(let l=s.length-1;l>=0;l--){const f=s[l],y=f.e||0;if(y===0)this.set(f.k,f.v);else{const b=y-e;b>0&&this.set(f.k,f.v,b)}}}prune(){this[a].forEach((s,e)=>c(this,e,!1))}}const c=(v,s,e)=>{const l=v[a].get(s);if(l){const f=l.value;if(E(v,f)){if(w(v,l),!v[h])return}else e&&(v[x]&&(l.value.now=Date.now()),v[n].unshiftNode(l));return f.value}},E=(v,s)=>{if(!s||!s.maxAge&&!v[t])return!1;const e=Date.now()-s.now;return s.maxAge?e>s.maxAge:v[t]&&e>v[t]},S=v=>{if(v[m]>v[p])for(let s=v[n].tail;v[m]>v[p]&&s!==null;){const e=s.prev;w(v,s),s=e}},w=(v,s)=>{if(s){const e=s.value;v[r]&&v[r](e.key,e.value),v[m]-=e.length,v[a].delete(e.key),v[n].removeNode(s)}};class R{constructor(s,e,l,f,y){this.key=s,this.value=e,this.length=l,this.now=f,this.maxAge=y||0}}const U=(v,s,e,l)=>{let f=e.value;E(v,f)&&(w(v,e),v[h]||(f=void 0)),f&&s.call(l,f.value,f.key,v)};return X=g,X}var ht;function ye(){if(ht)return F.exports;ht=1;var o=Ot,p=yt(),m=F.exports=me(),u=ve(),h=new u({max:1e3}),t={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function r(g){return t[g]||g.slice(0,-1)}var i={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0};F.exports.fromUrl=function(g,c){if(typeof g=="string"){var E=g+JSON.stringify(c||{});return h.has(E)||h.set(E,n(g,c)),h.get(E)}};function n(g,c){if(!(g==null||g==="")){var E=x(a(g)?"github:"+g:g),S=C(E),w=E.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\/)?([^#]+)/),R=Object.keys(p).map(function(U){try{var v=p[U],s=null;S.auth&&i[S.protocol]&&(s=S.auth);var e=S.hash?decodeURIComponent(S.hash.substr(1)):null,l=null,f=null,y=null;if(w&&w[1]===U)l=w[2]&&decodeURIComponent(w[2]),f=decodeURIComponent(w[3].replace(/\.git$/,"")),y="shortcut";else{if(S.host&&S.host!==v.domain&&S.host.replace(/^www[.]/,"")!==v.domain||!v.protocols_re.test(S.protocol)||!S.path)return;var b=v.pathmatch,_=S.path.match(b);if(!_)return;_[1]!==null&&_[1]!==void 0&&(l=decodeURIComponent(_[1].replace(/^:/,""))),f=decodeURIComponent(_[2]),y=r(S.protocol)}return new m(U,l,s,f,e,y,c)}catch(A){if(!(A instanceof URIError))throw A}}).filter(function(U){return U});if(R.length===1)return R[0]}}function a(g){return/^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(g)}function x(g){var c=o.parse(g);return c.protocol==="gist:"&&c.host&&!c.path?c.protocol+"/"+c.host:g}function C(g){var c=g.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/);if(!c){var E=o.parse(g);if(E.auth){const w=g.match(/[^@]+@[^:/]+/);if(w){var S=new o.URL(w[0]);E.auth=S.username||"",S.password&&(E.auth+=":"+S.password)}}return E}return{protocol:"git+ssh:",slashes:!0,auth:c[1],host:c[2],port:null,hostname:c[2],hash:c[4],search:null,query:null,pathname:"/"+c[3],path:"/"+c[3],href:"git+ssh://"+c[1]+"@"+c[2]+"/"+c[3]+(c[4]||"")}}return F.exports}var N={},P={},ft;function xe(){if(ft)return P;ft=1;var o=P&&P.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(P,"__esModule",{value:!0}),P.setService=P.findService=P.getDefaultServiceConfig=P.getServiceConfig=void 0;const p=o(oe),m=gt(),u={},h=a=>{u[a.name]={validate:a.schema.validate.bind(a.schema),defaultConfig:a.default}};P.setService=h,h({name:"auth",schema:m.authConfigSchema,default:{}});const t=a=>{if(!a)throw new Error("service name should not be empty");const x=u[a];if(!x)throw new Error(`service ${a} does not exist`);return x},r=(a,x,{validate:C}={})=>{const g=t(a),c=(0,p.default)(x||{}),{value:E,error:S}=g.validate(c);if(C&&S)throw new Error(`Invalid blocklet service config: ${S.details.map(w=>w.message).join(", ")}`);return E};P.getServiceConfig=r;const i=a=>{const{defaultConfig:x}=t(a);return x};P.getDefaultServiceConfig=i;const n=(a,x)=>{const C=[x];return(a||[]).find(g=>C.includes(g.name))};return P.findService=n,P.default={getServiceConfig:r,getDefaultServiceConfig:i,findService:n,setService:h},P}var pt;function be(){if(pt)return N;pt=1,Object.defineProperty(N,"__esModule",{value:!0}),N.fixAndValidateService=N.validateMeta=void 0;const o=gt(),p=xe(),m=h=>(!h.interfaces||!h.interfaces.length||h.interfaces.forEach(t=>{t.services&&t.services.length&&t.services.forEach(r=>{r.config=(0,p.getServiceConfig)(r.name,r.config,{validate:!0})})}),h);N.fixAndValidateService=m;const u=(h,{ensureFiles:t=!1,ensureDist:r=!1,ensureComponentStore:i=!0,ensureName:n=!1,skipValidateDidName:a=!1,schemaOptions:x={}}={})=>{const C=(0,o.createBlockletSchema)(null,{ensureFiles:t,ensureDist:r,ensureComponentStore:i,ensureName:n,skipValidateDidName:a,...x}),{value:g,error:c}=C.validate(h);if(c)throw new Error(`Invalid blocklet meta: ${c.details.map(E=>E.message).join(", ")}`);return g};return N.validateMeta=u,N.default=u,N}var mt;function je(){return mt||(mt=1,function(o){var p=T&&T.__createBinding||(Object.create?function(e,l,f,y){y===void 0&&(y=f);var b=Object.getOwnPropertyDescriptor(l,f);(!b||("get"in b?!l.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return l[f]}}),Object.defineProperty(e,y,b)}:function(e,l,f,y){y===void 0&&(y=f),e[y]=l[f]}),m=T&&T.__setModuleDefault||(Object.create?function(e,l){Object.defineProperty(e,"default",{enumerable:!0,value:l})}:function(e,l){e.default=l}),u=T&&T.__importStar||function(){var e=function(l){return e=Object.getOwnPropertyNames||function(f){var y=[];for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(y[y.length]=b);return y},e(l)};return function(l){if(l&&l.__esModule)return l;var f={};if(l!=null)for(var y=e(l),b=0;b<y.length;b++)y[b]!=="default"&&p(f,l,y[b]);return m(f,l),f}}(),h=T&&T.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(o,"__esModule",{value:!0}),o.fixService=o.fixInterfaces=o.parsePerson=o.formatPerson=o.fixName=o.fixTags=o.fixPerson=o.fixKeywords=o.fixFiles=o.fixRepository=o.fixRequired=void 0;const t=h(Pt),r=u(ye()),i=Lt(),n=be();Object.defineProperty(o,"fixService",{enumerable:!0,get:function(){return n.fixAndValidateService}});const a=ne(),x=(e,l)=>{e.description||(e.description=`Blocklet from ${l}`),e.version||(e.version=i.BLOCKLET_DEFAULT_VERSION)};o.fixRequired=x;const C=e=>{if(e.repository&&(typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository}),e.repository.url)){const l=r.fromUrl(e.repository.url);l&&(e.repository.url=l.getDefaultRepresentation()==="shortcut"?l.https():l.toString())}};o.fixRepository=C;const g=e=>{Array.isArray(e.files)?e.files&&(e.files=e.files.filter(l=>!(!l||typeof l!="string"))):delete e.files};o.fixFiles=g;const c=e=>{typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?delete e.keywords:e.keywords&&(e.keywords=e.keywords.filter(l=>!(typeof l!="string"||!l)))};o.fixKeywords=c;const E=e=>{typeof e.tags=="string"&&(e.tags=e.tags.split(/,\s+/)),e.tags&&!Array.isArray(e.tags)?delete e.tags:e.tags&&(e.tags=e.tags.filter(l=>!(typeof l!="string"||!l)))};o.fixTags=E;const S=(e,l)=>(e.author&&(e.author=l(e.author)),["maintainers","contributors"].forEach(f=>{Array.isArray(e[f])&&(e[f]=e[f].map(l))}),e),w=e=>{if(!e)return"";if(typeof e=="string")return e;const l=e.name||"",f=e.url||e.web,y=f?` (${f})`:"",b=e.email||e.mail,_=b?` <${b}>`:"";return l+_+y};o.formatPerson=w;const R=e=>{if(typeof e!="string")return e;const l=e.match(/^([^(<]+)/),f=e.match(/\(([^)]+)\)/),y=e.match(/<([^>]+)>/),b={};return l&&l[0].trim()&&(b.name=l[0].trim()),y&&([,b.email]=y),f&&([,b.url]=f),b};o.parsePerson=R;const U=e=>(S(e,w),S(e,R),e);o.fixPerson=U;const v=(e,l=!0)=>{if(Array.isArray(e.interfaces)||(e.interfaces=[]),e.interfaces.length)return e.interfaces.forEach(_=>{_.type===i.BLOCKLET_INTERFACE_TYPE_WEB&&(_.protocol="http")}),e;const y=(0,t.default)(e,"capabilities.dynamicPathPrefix",!0)?i.BLOCKLET_DYNAMIC_PATH_PREFIX:"/",b=({type:_="web",name:A,path:W="/",protocol:G="http",port:B=i.BLOCKLET_DEFAULT_PORT_NAME})=>{e.interfaces.push({type:_,name:A,path:W,prefix:y,port:B,protocol:G})};return[i.BLOCKLET_INTERFACE_PUBLIC].forEach(_=>{e[_]&&b({name:_,path:e[_]})}),Array.isArray(e.exposeServices)&&e.exposeServices.forEach(_=>{b({type:"service",name:_.protocol,protocol:_.protocol,port:{internal:`BLOCKLET_${_.protocol}_PORT`.toUpperCase(),external:_.port}})}),l&&(delete e.publicUrl,delete e.adminUrl,delete e.configUrl,delete e.docUrl,delete e.exposeServices,e.capabilities&&delete e.capabilities.dynamicPathPrefix),e};o.fixInterfaces=v;const s=e=>{const{did:l}=e;try{(0,a.validateNewDid)(l),e.name=l}catch{}return e};o.fixName=s,o.default={fixRequired:x,fixRepository:C,fixFiles:g,fixKeywords:c,fixPerson:U,fixTags:E,fixName:s,formatPerson:w,parsePerson:R,fixInterfaces:v,fixService:n.fixAndValidateService}}(T)),T}var Se=je();function xt({owner:o,locale:p}){return j.jsxs(dt,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.fullName,o.did?j.jsx(Tt,{sx:{lineHeight:"initial","&::before":{content:'"("'},"&::after":{content:'")"'}},did:o.did,compact:!0,size:14,locale:p}):null]})}xt.propTypes={owner:L.object.isRequired,locale:L.string.isRequired};const Ee="install-blocklet-from-URL",bt=()=>{const[o,p]=vt(Ee,"[]",{raw:!0}),m=h=>{const t=h.trim(),r=JSON.parse(o),i=r.findIndex(n=>n===t);i!==0&&(i>0&&r.splice(i,1),r.length>=10&&r.splice(9),r.unshift(t),p(JSON.stringify(r)))},u=h=>{if(!h)return;const t=JSON.parse(o),r=h.trim(),i=t.findIndex(n=>n===r);i>-1&&(t.splice(i,1),p(JSON.stringify(t)))};return{urls:o?JSON.parse(o):[],addUrlRecord:m,removeUrlRecord:u}};function jt({value:o="",onValueChange:p=()=>{},children:m=null,helperText:u=""}){const{urls:h,removeUrlRecord:t}=bt(),r=(i,n)=>{i.preventDefault(),i.stopPropagation(),t(n)};return j.jsxs(dt,{children:[j.jsx(le,{freeSolo:!0,options:h,inputValue:o,onInputChange:(i,n)=>{p(n)},disableClearable:!0,popupIcon:null,renderInput:i=>Dt.cloneElement(m,{...i}),renderOption:(i,n)=>I.createElement(Nt,{...i,key:n,secondaryAction:j.jsx(qt,{edge:"end","aria-label":"delete",onClick:a=>r(a,n),children:j.jsx(ae,{})})},j.jsx(ce,{role:void 0,dense:!0,sx:{paddingLeft:0,paddingRight:30,"&:hover":{backgroundColor:"transparent"}},children:j.jsx(Mt,{primary:n,sx:{"& span":{display:"block",width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}})})),slotProps:{listbox:{sx:{maxHeight:300,overflow:"auto"}}}}),j.jsx(Wt,{style:{margin:0},children:u})]})}jt.propTypes={onValueChange:L.func,children:L.node,value:L.string,helperText:L.string};function _e({defaultUrl:o="",onCancel:p,onSuccess:m,onError:u=()=>{},mode:h="install",handleText:t={}}){const{api:r}=$t(),{api:i,session:n}=Bt(),[a,x]=I.useState(!1),[C,g]=I.useState(""),{t:c,locale:E}=Ft(),S={dist:{}},{encryptKey:w}=Gt(),[R,U]=I.useState(o),[v,s]=I.useState(o?1:0),[e,l]=I.useState(S),[f,y]=I.useState(!1),[b,_]=I.useState(""),[A]=vt("instant-blocklet-install",!1),[W,G]=I.useState({}),B=h==="component",H=B?!0:!o,{addUrlRecord:St}=bt(),$=I.useMemo(()=>(n.user?.connectedAccounts||[]).some(D=>D.provider===Ht.LOGIN_PROVIDER.WALLET),[n.user]),Q=I.useMemo(()=>{let d=R.trim();return!d.startsWith("https://")&&!d.startsWith("http://")&&!d.startsWith("file://")&&(d=`file://${d}`),d},[R]),K=async()=>{l(S),g(null),x(!0);const d=Q;try{const O=decodeURIComponent(d);try{new URL(O)}catch{throw new Error("Invalid URL")}const{meta:D,inStore:It,registryUrl:Ut}=await r.getBlockletMetaFromUrl({input:{url:O}});l(D),G({inStore:It,registryUrl:Ut,inputUrl:d}),St(d)}catch(O){console.error(O);const D=`Blocklet Install failed: ${rt(O)}`;g(D),u(O)}finally{x(!1)}},Et=()=>{if(B){m({meta:e,...W}),p();return}if(A){x(!0),y(!0);return}const d=et(window?.env?.apiPrefix??"/","/launch-blocklet/install");window.location.href=re(d,{blocklet_meta_url:decodeURIComponent(Q.trim()),from:"url"})},Z=()=>{x(!1),y(!1),m({meta:e,...W}),p()},_t=()=>{x(!1),y(!1)};I.useEffect(()=>{o&&K()},[o]);const M=I.useMemo(()=>({title:e.title,wt:Kt(e),blockletMetaUrl:decodeURIComponent(R.trim())}),[e,R]),k=I.useCallback(async()=>{if($||A){_("");return}const d=new URL(window.location.href);d.pathname=et(window?.env?.apiPrefix??"/","/api/did/launch-free-blocklet-by-session/token"),d.searchParams.set("_ek_",w),Object.keys(M).forEach(D=>{d.searchParams.set(D,M[D])});const{data:O}=await i.get(d.href);O.url?_(O.url):_("")},[$,M,i,w,A]);I.useEffect(()=>{k()},[k]);const wt=I.useMemo(()=>$&&b?{...M,nw:b,skipMigrateAccount:!0}:M,[M,b,$]),Ct=[{name:c("common.name"),value:Vt.getDisplayName({meta:e},!0)},{name:c("common.version"),value:e.version},{name:c("common.did"),value:e.did?j.jsx(zt,{did:e.did}):null},{name:c("common.author"),value:e.owner?j.jsx(xt,{owner:e.owner,locale:E}):Se.formatPerson(e.author)},{name:c("blocklet.dist.downloadLink"),value:e.dist.tarball}],Rt=()=>a?j.jsx("div",{style:{height:200,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:j.jsx(nt,{})}):e.did?j.jsx("div",{style:{paddingLeft:"10%"},children:Ct.map(d=>d.name===c("common.did")?j.jsx(st,{valueComponent:"div",nameWidth:120,name:d.name,nameFormatter:()=>c("common.did"),children:d.value},d.name):j.jsx(st,{valueComponent:"div",nameWidth:120,name:d.name,children:d.value},d.name))}):null,At=Yt(async()=>{let d=e.title;n.user&&(d=`${n.user.fullName}'s ${e.title}`);try{Z(),await r.launchBlockletWithoutWallet({input:{title:d,blockletMetaUrl:decodeURIComponent(R.trim()),type:"store",storeUrl:W.registryUrl,onlyRequired:!0}})}catch(O){console.error("launchBlockletWithoutWallet error:",O),Jt.error(rt(O),{autoHideDuration:3e3})}}),tt=[{label:c("blocklet.fromUrl.step0"),body:j.jsx(Xt,{component:"div",children:j.jsx(jt,{style:{marginBottom:32},value:R,helperText:c("blocklet.fromUrl.description"),onValueChange:d=>{g(null),U(d)},children:j.jsx(Qt,{label:c("blocklet.fromUrl.label"),autoComplete:"off",variant:"outlined",name:"url","data-cy":"blocklet-url-input",fullWidth:!0,autoFocus:!0,margin:"dense",value:R,onChange:d=>{g(null),U(d.target.value)},disabled:a,onKeyPress:d=>{d.key==="Enter"&&(d.preventDefault(),K(),s(1))}})})}),cancel:c("common.cancel"),confirm:c("common.next"),onCancel:p,onConfirm:()=>{K(),s(1)}},{label:c("blocklet.fromUrl.step1"),body:Rt(),cancel:c(H?"common.pre":"common.cancel"),confirm:t?.confirm||c("blocklet.fromUrl.confirm"),onCancel:()=>{H?s(d=>d-1):p()},onConfirm:()=>{Et()}}],q=tt[v];return j.jsxs(j.Fragment,{children:[j.jsxs(Zt,{title:t?.title||c("blocklet.fromUrl.title"),fullWidth:!0,maxWidth:"md",onClose:()=>q.onCancel(),showCloseButton:v===0,disableEscapeKeyDown:!0,open:!0,actions:j.jsxs(j.Fragment,{children:[q.cancel&&j.jsx(it,{onClick:d=>{d.stopPropagation(),g(null),q.onCancel()},color:"inherit",children:q.cancel||c("common.cancel")}),j.jsxs(it,{onClick:d=>{d.stopPropagation(),q.onConfirm()},color:"primary","data-cy":"install-blocklet-next-step",disabled:a||!R||C,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[a&&v===0&&j.jsx(nt,{size:16}),q.confirm]})]}),children:[H&&j.jsx(ue,{alternativeLabel:!0,activeStep:v,children:tt.map(({label:d})=>j.jsx(he,{children:j.jsx(fe,{children:d})},d))}),j.jsx(kt,{component:"div",style:{marginTop:24},children:q.body}),!!C&&j.jsx(te,{severity:"error",style:{width:"100%",marginTop:8},children:C})]}),e&&f&&j.jsx(ee,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:!$&&!A?"bind-wallet":"launch-free-blocklet-by-session",checkFn:i.get,checkTimeout:5*60*1e3,onSuccess:Z,extraParams:wt,messages:{title:c("setup.keyPair.title"),scan:c("setup.keyPair.scan"),confirm:c("setup.keyPair.confirm"),success:c("setup.keyPair.success")},onClose:_t,customItems:A?[]:[j.jsx(se,{onClick:At})]})]})}_e.propTypes={defaultUrl:L.string,onCancel:L.func.isRequired,onSuccess:L.func.isRequired,onError:L.func,mode:L.oneOf(["install","component"]),handleText:L.object};export{pe as B,_e as I,xt as a,Se as f};
@@ -1,4 +1,4 @@
1
- import{aF as L,j as i,r as u,p as H,bf as T,$ as M,s as v,o as s,v as D,K as y,cZ as E,V as w,n as A,aP as q,c_ as U,cD as F,cw as j,y as O,c$ as V,aH as W,d0 as Y,d1 as k,d2 as I,as as B,b7 as K,cv as J,C as X,b8 as Z}from"./index-t7M3AlIl.js";import{p as G}from"./index-BYvHyq2X.js";import{N as Q}from"./index-CQBXMXxB.js";import{b as ee}from"./sdk-C4od53R_.js";import{w as ie}from"./wrap-locale-BYm00LUc.js";const se=L(i.jsx("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}));function P({invitation:e,createPassportSvg:n,passportColor:c="auto"}){const[p,r]=u.useState(!1),{t:l}=u.useContext(H),t=u.useMemo(()=>(e.role.title||e.role.name).toUpperCase(),[e.role.title,e.role.name]),d=u.useMemo(()=>n({title:t,issuer:e.info.name,issuerDid:e.info.appDid,ownerName:"Your Name",ownerDid:e.info.appDid,preferredColor:e.info.passportColor||c,extra:e.passportExpireTime?{key:"Exp",value:T(e.passportExpireTime).format("YYYY-MM-DD HH:mm:ss")}:void 0}),[e,t]),m=u.useCallback(()=>{r(!0)},[]),o=u.useCallback(()=>{r(!1)},[]);return i.jsxs(i.Fragment,{children:[i.jsx(te,{children:i.jsxs("div",{className:"invite-passport__card",onClick:m,children:[!!e.display&&i.jsx(Q,{data:e.display,style:{width:"100%",height:"100%"}}),!e.display&&i.jsx("div",{className:"invite-passport__cover",dangerouslySetInnerHTML:{__html:d}})]})}),i.jsx(M,{open:p,title:l("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:o,children:e.role.permissions&&e.role.permissions.length>0?i.jsx("ul",{style:{listStyle:"circle",padding:"0 20px"},children:e.role.permissions.map(x=>i.jsx("li",{style:{listStyle:"circle"},children:x.description},x.name))}):i.jsxs("div",{style:{color:"#999",textAlign:"center"},children:[i.jsx(se,{style:{width:"30px",height:"30px"}}),i.jsx("div",{children:l("invite.emptyPermission")})]})})]})}P.propTypes={invitation:s.object.isRequired,createPassportSvg:s.func.isRequired,passportColor:s.string};const te=v.div`
1
+ import{aF as L,j as i,r as u,p as H,bf as T,$ as M,s as v,o as s,v as D,K as y,cZ as E,V as w,n as A,aP as q,c_ as U,cD as F,cw as j,y as O,c$ as V,aH as W,d0 as Y,d1 as k,d2 as I,as as B,b7 as K,cv as J,C as X,b8 as Z}from"./index-2c1VoOd9.js";import{p as G}from"./index-D9QeG2FZ.js";import{N as Q}from"./index-n0Dm2HUt.js";import{b as ee}from"./sdk-DH9OjvLO.js";import{w as ie}from"./wrap-locale-BSXSKo1t.js";const se=L(i.jsx("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}));function P({invitation:e,createPassportSvg:n,passportColor:c="auto"}){const[p,r]=u.useState(!1),{t:l}=u.useContext(H),t=u.useMemo(()=>(e.role.title||e.role.name).toUpperCase(),[e.role.title,e.role.name]),d=u.useMemo(()=>n({title:t,issuer:e.info.name,issuerDid:e.info.appDid,ownerName:"Your Name",ownerDid:e.info.appDid,preferredColor:e.info.passportColor||c,extra:e.passportExpireTime?{key:"Exp",value:T(e.passportExpireTime).format("YYYY-MM-DD HH:mm:ss")}:void 0}),[e,t]),m=u.useCallback(()=>{r(!0)},[]),o=u.useCallback(()=>{r(!1)},[]);return i.jsxs(i.Fragment,{children:[i.jsx(te,{children:i.jsxs("div",{className:"invite-passport__card",onClick:m,children:[!!e.display&&i.jsx(Q,{data:e.display,style:{width:"100%",height:"100%"}}),!e.display&&i.jsx("div",{className:"invite-passport__cover",dangerouslySetInnerHTML:{__html:d}})]})}),i.jsx(M,{open:p,title:l("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:o,children:e.role.permissions&&e.role.permissions.length>0?i.jsx("ul",{style:{listStyle:"circle",padding:"0 20px"},children:e.role.permissions.map(x=>i.jsx("li",{style:{listStyle:"circle"},children:x.description},x.name))}):i.jsxs("div",{style:{color:"#999",textAlign:"center"},children:[i.jsx(se,{style:{width:"30px",height:"30px"}}),i.jsx("div",{children:l("invite.emptyPermission")})]})})]})}P.propTypes={invitation:s.object.isRequired,createPassportSvg:s.func.isRequired,passportColor:s.string};const te=v.div`
2
2
  display: flex;
3
3
  max-width: 350px;
4
4
  margin: 30px auto;
@@ -1 +1 @@
1
- import{fC as P,bd as s}from"./index-t7M3AlIl.js";var r,e;function f(){if(e)return r;e=1;const a=P();return r=(i,t)=>a(i)===a(t),r}var u=f();const x=s(u);export{x as i};
1
+ import{fC as P,bd as s}from"./index-2c1VoOd9.js";var r,e;function f(){if(e)return r;e=1;const a=P();return r=(i,t)=>a(i)===a(t),r}var u=f();const x=s(u);export{x as i};