@abtnode/webapp 1.16.52-beta-20251002-030549-0f91dab2 → 1.16.52-beta-20251003-083412-fdfc4e36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{AdapterDayjs-V0ywFO6Q.js → AdapterDayjs-ynIynV8Q.js} +1 -1
- package/dist/assets/{Add-CzkO3Pzz.js → Add-jM4hRnB8.js} +1 -1
- package/dist/assets/ArrowDropDown-DRP1t_Je.js +1 -0
- package/dist/assets/{Autocomplete-BW388eBP.js → Autocomplete-DDWyM-RF.js} +1 -1
- package/dist/assets/{Breadcrumbs-NrwCYnz0.js → Breadcrumbs-Cf7tjXMM.js} +1 -1
- package/dist/assets/{ButtonGroup-o6LmfxeX.js → ButtonGroup-CmmNlsZu.js} +1 -1
- package/dist/assets/{CSSTransition-DsMKw-p5.js → CSSTransition-BxoecrqG.js} +1 -1
- package/dist/assets/{CallMerge-D1XWrRjM.js → CallMerge-D5vw1D-8.js} +1 -1
- package/dist/assets/{CardContent-D4rz6FRp.js → CardContent-DcoNfxTj.js} +1 -1
- package/dist/assets/{ChevronLeft-D4CgzTJY.js → ChevronLeft-B91P9EIM.js} +1 -1
- package/dist/assets/{ChevronRight-DXz-F6L7.js → ChevronRight-CRdUgf3M.js} +1 -1
- package/dist/assets/{Clear-NASbJHS6.js → Clear-z1mronWh.js} +1 -1
- package/dist/assets/{DeleteOutline-DsnSViGb.js → DeleteOutline-D3OFK2IX.js} +1 -1
- package/dist/assets/{Done-D4PPkPui.js → Done-DdxHjl7Y.js} +1 -1
- package/dist/assets/{Edit-V0eiBsGU.js → Edit-DE-EVJBw.js} +1 -1
- package/dist/assets/{ErrorOutline-DA3_RUVz.js → ErrorOutline-8GJFRZb7.js} +1 -1
- package/dist/assets/{FilterList-Y719g2Zi.js → FilterList-D9zUGXf3.js} +1 -1
- package/dist/assets/{Google-B3YPvJDV.js → Google-BNdTixOG.js} +1 -1
- package/dist/assets/{HelpOutline-c-XuWHxw.js → HelpOutline-wBkMgJgc.js} +1 -1
- package/dist/assets/{Launch-COjBPQdg.js → Launch-h5Mm_fSk.js} +1 -1
- package/dist/assets/{Link-qCg-dCX5.js → Link-0gkXi8Uc.js} +1 -1
- package/dist/assets/{ListItemButton-BTbVPhQ8.js → ListItemButton-gdaIHWxW.js} +1 -1
- package/dist/assets/{ListSubheader-CA8Y4o8o.js → ListSubheader-DEo9Y0oE.js} +1 -1
- package/dist/assets/{LoadingButton-DN5HznZc.js → LoadingButton-CQaWNIUw.js} +1 -1
- package/dist/assets/{MoreVert-BQ022_rm.js → MoreVert-Pb124BOp.js} +1 -1
- package/dist/assets/{OpenInNew-BB6MBnzE.js → OpenInNew-Dw52Y_B1.js} +1 -1
- package/dist/assets/{Refresh-r7y4CgN5.js → Refresh-BnuukUzy.js} +1 -1
- package/dist/assets/{Search-CGTjTzzo.js → Search-Tb99rXM1.js} +1 -1
- package/dist/assets/{Stepper-CfXniFN2.js → Stepper-CbGLljx1.js} +1 -1
- package/dist/assets/{Switch-DYjTi7gg.js → Switch-CcE13x07.js} +1 -1
- package/dist/assets/{TableSearch-BwtXbQG-.js → TableSearch-DuFRIymX.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-DvCR9SNw.js → ToggleButtonGroup-DnQIM247.js} +1 -1
- package/dist/assets/{UnfoldMore-B3amhCTg.js → UnfoldMore-Cs9UJfod.js} +1 -1
- package/dist/assets/{Verified-DmBfm1uD.js → Verified-BXDCprZ6.js} +1 -1
- package/dist/assets/{VerifiedUser-mZGHgzQb.js → VerifiedUser-DSq46JpK.js} +1 -1
- package/dist/assets/{ViewList-DtqzxGZt.js → ViewList-Bwmsjb-W.js} +1 -1
- package/dist/assets/{_createAggregator-nGamgeOn.js → _createAggregator-BxcwvNpY.js} +1 -1
- package/dist/assets/{actions-DheKYBlc.js → actions-DLLKZONE.js} +1 -1
- package/dist/assets/{actions-6ll7jsa3.js → actions-rTa6xTCO.js} +1 -1
- package/dist/assets/{agreement-CHm-YwcP.js → agreement-B-C6k3dh.js} +1 -1
- package/dist/assets/api-DU97-L5w.js +1 -0
- package/dist/assets/{appearance-BISi6FkN.js → appearance-C_ZrIb6T.js} +1 -1
- package/dist/assets/{audit-logs-DylpExtV.js → audit-logs-a8TDzTpJ.js} +1 -1
- package/dist/assets/{base-chart-DWjEmmtF.js → base-chart-CsfVVVaW.js} +1 -1
- package/dist/assets/{blocklet-DwOY6PM2.js → blocklet-D2v2yrD1.js} +1 -1
- package/dist/assets/{chain-CrqO5ZBK.js → chain-BVuGoB9F.js} +1 -1
- package/dist/assets/{click-to-copy-QDhx8_BO.js → click-to-copy-YqLtfgdJ.js} +1 -1
- package/dist/assets/client-CygehW6E.js +1 -0
- package/dist/assets/cloneDeep-CtzOdLpG.js +1 -0
- package/dist/assets/{collapse-C5JgD0iT.js → collapse-VOXCvZgb.js} +1 -1
- package/dist/assets/{config-navigation-CBsV4a0j.js → config-navigation-DM0b2Cg-.js} +3 -3
- package/dist/assets/{connect-to-CKdf31e5.js → connect-to-COqS5MEC.js} +1 -1
- package/dist/assets/{cssMode-aqWJN-f_.js → cssMode-B2Davz55.js} +1 -1
- package/dist/assets/{delete-confirm-DFLlapHl.js → delete-confirm-D9u95VbB.js} +1 -1
- package/dist/assets/{depsEqual-CHA3TYmk.js → depsEqual-CWwWddzp.js} +1 -1
- package/dist/assets/{detail-CNTenkKV.js → detail-BFkqhGo0.js} +3 -3
- package/dist/assets/{domains-WhieF3AY.js → domains-BMwan0Xl.js} +1 -1
- package/dist/assets/{download-BH2P43wY.js → download-DR111TNZ.js} +1 -1
- package/dist/assets/{edit.svg-CkS6r8rY.js → edit.svg-BNeKaJEn.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-C8ljUt78.js +1 -0
- package/dist/assets/engine-bdQJ6xaO.js +1 -0
- package/dist/assets/{freemarker2-Cybw0O8m.js → freemarker2-DmpJxbr-.js} +1 -1
- package/dist/assets/{get-safe-url-CwiNWKY8.js → get-safe-url-rlvCCO-T.js} +1 -1
- package/dist/assets/getValidReactChildren-CcUpWB9N.js +1 -0
- package/dist/assets/{graphqlMode-gSVowOId.js → graphqlMode-ByGCv6UF.js} +2 -2
- package/dist/assets/{handlebars-63KuA5s0.js → handlebars-MEqJtqfP.js} +1 -1
- package/dist/assets/{html-DV0Fd3Kx.js → html-CCGCdbw9.js} +1 -1
- package/dist/assets/{html-title-8eEQvwSm.js → html-title-COubPnYH.js} +1 -1
- package/dist/assets/{htmlMode-DeseqIni.js → htmlMode-CjFv--lV.js} +1 -1
- package/dist/assets/{iframe-BS88FRwX.js → iframe-e7rmLwl_.js} +1 -1
- package/dist/assets/{index-Cka3nP81.js → index-4MzySaef.js} +1 -1
- package/dist/assets/{index-7KYdF6ej.js → index-4hZA714y.js} +1 -1
- package/dist/assets/{index-B93qsZTj.js → index-9P62KwUj.js} +9 -9
- package/dist/assets/{index-BOv_-aOp.js → index-B08J5Jou.js} +1 -1
- package/dist/assets/{index-CzA1rttv.js → index-B2L8DxHf.js} +1 -1
- package/dist/assets/{index-DGINP96S.js → index-B3IDuYIq.js} +1 -1
- package/dist/assets/{index-B3uFEeJa.js → index-BGr1EEHV.js} +1 -1
- package/dist/assets/{index-DHL_Vi4i.js → index-BJ_u2LJr.js} +3 -3
- package/dist/assets/{index-BjWva3kW.js → index-BP3CDZwK.js} +1 -1
- package/dist/assets/{index-_d7QPgTP.js → index-BRRa2CU0.js} +1 -1
- package/dist/assets/{index-BNPmFilX.js → index-BVHVc8MF.js} +1 -1
- package/dist/assets/{index-CI4dlXTe.js → index-Bikf4Jgw.js} +3 -3
- package/dist/assets/{index-CQ74V8K8.js → index-BoRTaxzn.js} +1 -1
- package/dist/assets/{index-BsAylPTP.js → index-BuDXXzgj.js} +1 -1
- package/dist/assets/{index-w_ABp53I.js → index-BxGJp4lK.js} +1 -1
- package/dist/assets/{index-nOMeb0Cp.js → index-CDxpCxHc.js} +1 -1
- package/dist/assets/{index-BwKc3rqr.js → index-CHtEyM-j.js} +2 -2
- package/dist/assets/{index-DgzKW9Ex.js → index-CSewbl1C.js} +3 -3
- package/dist/assets/{index-CT8o9Y85.js → index-CUBS2Stp.js} +3 -3
- package/dist/assets/{index-Uzc8DiTP.js → index-CY5zCs97.js} +1 -1
- package/dist/assets/{index-DFdk3ofB.js → index-CdtdLCAn.js} +1 -1
- package/dist/assets/{index-TwUe_Tvk.js → index-CevdVAv0.js} +1 -1
- package/dist/assets/{index-DZM3J5Wp.js → index-Co4oyryj.js} +1 -1
- package/dist/assets/{index-BMFG6xYn.js → index-Cq4PGV-y.js} +1 -1
- package/dist/assets/{index-B0bwsr2k.js → index-Cut2JJAu.js} +1 -1
- package/dist/assets/{index-9hx_-WS9.js → index-CvxYF7xI.js} +1 -1
- package/dist/assets/{index-DZ4p_r8e.js → index-D6p8W37K.js} +1 -1
- package/dist/assets/{index-BMbE3uR8.js → index-DBbBuJUS.js} +1 -1
- package/dist/assets/{index-DgZWZUlS.js → index-DDZY7Qyb.js} +1 -1
- package/dist/assets/{index-BkM0NufG.js → index-DEh5WwZP.js} +1 -1
- package/dist/assets/{index-QSBtrt6h.js → index-DYopKv7j.js} +1 -1
- package/dist/assets/{index-h_zu579g.js → index-D_ljjR6n.js} +1 -1
- package/dist/assets/{index-CEIY_r6h.js → index-Dk909d5m.js} +3 -3
- package/dist/assets/{index-C0ZKfJQm.js → index-Dxbv4luZ.js} +1 -1
- package/dist/assets/index-Dy5upDeP.js +1 -0
- package/dist/assets/{index-phRP0JhX.js → index-E6rXB0d3.js} +1 -1
- package/dist/assets/{index-CbEOHXQc.js → index-Gcmb5nmv.js} +1 -1
- package/dist/assets/{index-IlXLx7We.js → index-IXall6H-.js} +1 -1
- package/dist/assets/{index-DXLVGozs.js → index-WgoWvXv7.js} +1 -1
- package/dist/assets/{index-Bj3vXLSw.js → index-aL7xy5h_.js} +2 -2
- package/dist/assets/{index-CB1cOH1l.js → index-g2rGps1V.js} +1 -1
- package/dist/assets/{index-BlmPoc3t.js → index-jdVhK-k1.js} +1 -1
- package/dist/assets/{index-C5HHk93s.js → index-mwjKB0fy.js} +1 -1
- package/dist/assets/{index-BjhmwRPF.js → index-s2DiZ-3m.js} +1 -1
- package/dist/assets/{index-Cw4aE7m_.js → index-vtO4pJl8.js} +1 -1
- package/dist/assets/{index.esm-ItCPJOAO.js → index.esm-CqU9DX3V.js} +1 -1
- package/dist/assets/{install-from-url-DvUzVhpS.js → install-from-url-sgmF5wLe.js} +1 -1
- package/dist/assets/{invitation-DbyKhAZm.js → invitation-DK0ruxeD.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-BvAHrQj-.js → is-path-prefix-equal-CZJiFi6V.js} +1 -1
- package/dist/assets/{item-gJv-5KQT.js → item-C0jYlCp1.js} +1 -1
- package/dist/assets/{javascript-BIMIemmE.js → javascript-BnP9zVyR.js} +1 -1
- package/dist/assets/{jsonMode-3N-YuMar.js → jsonMode-CruNLq9W.js} +1 -1
- package/dist/assets/{liquid-CQYhn0Yk.js → liquid-DKrj-4IB.js} +1 -1
- package/dist/assets/{list-header-D5PvV4Ns.js → list-header-BHHhumVP.js} +1 -1
- package/dist/assets/{lock.svg-Dml_SUcw.js → lock.svg-D-lwd6lB.js} +1 -1
- package/dist/assets/{log-hCli4ygZ.js → log-B_cskpjf.js} +1 -1
- package/dist/assets/{lottie-react.esm-C1KoLgaH.js → lottie-react.esm-Cp8h5uwb.js} +1 -1
- package/dist/assets/{mdx-Fu7jp7wB.js → mdx-BO7bGrp9.js} +1 -1
- package/dist/assets/{memory-Da1Mktb-.js → memory-BZKspppZ.js} +1 -1
- package/dist/assets/{metric-DKt7Dv_o.js → metric-DbkD5azW.js} +1 -1
- package/dist/assets/omit-DrNnhRu8.js +1 -0
- package/dist/assets/{overview-CKMQGhx9.js → overview-BPESm6K2.js} +1 -1
- package/dist/assets/{permission-CY9xhitI.js → permission-C2JVndtl.js} +1 -1
- package/dist/assets/{preference-DV6_upOl.js → preference-C0didjRQ.js} +3 -3
- package/dist/assets/{python-Bi1toJg2.js → python-BX_FzZjV.js} +1 -1
- package/dist/assets/{raf-schd.esm-pJPdUflv.js → raf-schd.esm-BN6bIoLi.js} +1 -1
- package/dist/assets/{razor-DrpZeVMl.js → razor-4cOe7uw1.js} +1 -1
- package/dist/assets/{rotate-session-key-efxghCi1.js → rotate-session-key-M6G1sqqU.js} +1 -1
- package/dist/assets/{runtime-jGUL5QuT.js → runtime-bS4jHIMk.js} +1 -1
- package/dist/assets/schema-Cley8WjX.js +1 -0
- package/dist/assets/sdk-Hf9i-HPB.js +1 -0
- package/dist/assets/{service-MB0T2aB0.js → service-Bntba9IH.js} +1 -1
- package/dist/assets/{shorten-label-DTPTvpJ1.js → shorten-label-kkxGuhZA.js} +1 -1
- package/dist/assets/{simple-select-DAk8AY1P.js → simple-select-B90IPWAE.js} +1 -1
- package/dist/assets/{spaces-DH7TZUlN.js → spaces-dDTrbarI.js} +1 -1
- package/dist/assets/{status-DX1yJUTs.js → status-DCPe7gNc.js} +1 -1
- package/dist/assets/{status--V5SQYgM.js → status-DCyrqGHF.js} +1 -1
- package/dist/assets/{switch-control-D1F-cHNq.js → switch-control-C69ynf_5.js} +1 -1
- package/dist/assets/{table-icons-CcdGfjTh.js → table-icons-Bs8Y0nBG.js} +1 -1
- package/dist/assets/{team-BrSgmhmc.js → team-BxwSb9mM.js} +1 -1
- package/dist/assets/{toLower-ByD7rJFr.js → toLower-P06CgXse.js} +1 -1
- package/dist/assets/toUpper-Dy3QdQYT.js +1 -0
- package/dist/assets/{traffic-wbGiv6hW.js → traffic-BZ8lLw4J.js} +1 -1
- package/dist/assets/{tsMode-C7gy9xLC.js → tsMode-CgD-kexT.js} +1 -1
- package/dist/assets/{typescript-DJoWvhbC.js → typescript-DJbVGDUE.js} +1 -1
- package/dist/assets/{url-evaluation-Bsg9-ill.js → url-evaluation-MOJQy0H3.js} +1 -1
- package/dist/assets/{url-join-DpnUEv7-.js → url-join-K5H16-b7.js} +1 -1
- package/dist/assets/{use-mobile-CuAbTch1.js → use-mobile-BkYXnir8.js} +1 -1
- package/dist/assets/{use-mobile-CeVGXvtj.js → use-mobile-DqkbOKR3.js} +1 -1
- package/dist/assets/{useAsync-DxwaXQxu.js → useAsync-Di0F7xU-.js} +1 -1
- package/dist/assets/{useAsyncRetry-C_rRPNUy.js → useAsyncRetry-CbN3xpzM.js} +1 -1
- package/dist/assets/{useLocalStorage-CoABMXGW.js → useLocalStorage-h56BQKDt.js} +1 -1
- package/dist/assets/{useThemeProps-DJWWp5kh.js → useThemeProps-CYFIeocr.js} +1 -1
- package/dist/assets/{util-BdUmm2ZH.js → util-hZD8H1s2.js} +1 -1
- package/dist/assets/{wait-container-DJAGSnuK.js → wait-container-oi7GlZZ2.js} +1 -1
- package/dist/assets/{without-wallet-v9tjrlHV.js → without-wallet-CE92wsIs.js} +1 -1
- package/dist/assets/{wrap-locale-Ba4TE2iy.js → wrap-locale-GMObIRQ7.js} +1 -1
- package/dist/assets/{xml-avm6PJAG.js → xml-Dq1tM5aU.js} +1 -1
- package/dist/assets/{yaml-DO7DaC1O.js → yaml-BUwJ6zQB.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/ArrowDropDown-190S9d7I.js +0 -1
- package/dist/assets/api-D4aKRawp.js +0 -1
- package/dist/assets/client-Beap4FeV.js +0 -1
- package/dist/assets/cloneDeep-BGXXbqSz.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-BVx7paDx.js +0 -1
- package/dist/assets/engine-BcZHSV9-.js +0 -1
- package/dist/assets/getValidReactChildren-BiC2BfQo.js +0 -1
- package/dist/assets/index-BqWVYrv4.js +0 -1
- package/dist/assets/omit-VPuIA8hg.js +0 -1
- package/dist/assets/schema-D7YjS37r.js +0 -1
- package/dist/assets/sdk-BEqYN1lC.js +0 -1
- package/dist/assets/toUpper-jya-zxKt.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-IXall6H-.js","./index-BojVbZw0.js","./index-DEh5WwZP.js","./metric-DbkD5azW.js","./click-to-copy-YqLtfgdJ.js","./index-Gcmb5nmv.js","./useLocalStorage-h56BQKDt.js","./index-D_ljjR6n.js","./FilterList-D9zUGXf3.js","./CSSTransition-BxoecrqG.js","./emotion-cache.browser.esm-C8ljUt78.js","./index-BRRa2CU0.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./depsEqual-CWwWddzp.js","./index-BxGJp4lK.js","./TableSearch-DuFRIymX.js","./Search-Tb99rXM1.js","./Clear-z1mronWh.js","./MoreVert-Pb124BOp.js","./status-DCPe7gNc.js","./actions-DLLKZONE.js","./url-evaluation-MOJQy0H3.js","./get-safe-url-rlvCCO-T.js","./ButtonGroup-CmmNlsZu.js","./getValidReactChildren-CcUpWB9N.js","./permission-C2JVndtl.js","./install-from-url-sgmF5wLe.js","./without-wallet-CE92wsIs.js","./index-DDZY7Qyb.js","./cloneDeep-CtzOdLpG.js","./Autocomplete-DDWyM-RF.js","./ListSubheader-DEo9Y0oE.js","./ListItemButton-gdaIHWxW.js","./Stepper-CbGLljx1.js","./Launch-h5Mm_fSk.js","./Add-jM4hRnB8.js","./index-B3IDuYIq.js","./schema-Cley8WjX.js","./index-CevdVAv0.js","./toLower-P06CgXse.js","./index-CDxpCxHc.js","./url-join-K5H16-b7.js","./wait-container-oi7GlZZ2.js","./use-mobile-BkYXnir8.js","./DeleteOutline-D3OFK2IX.js","./spaces-dDTrbarI.js","./api-DU97-L5w.js","./index-BuDXXzgj.js","./item-C0jYlCp1.js","./Verified-BXDCprZ6.js","./ChevronLeft-B91P9EIM.js","./ChevronRight-CRdUgf3M.js","./blocklet-D2v2yrD1.js","./VerifiedUser-DSq46JpK.js","./Done-DdxHjl7Y.js","./delete-confirm-D9u95VbB.js","./item-G0iZE90Q.css","./engine-bdQJ6xaO.js","./ArrowDropDown-DRP1t_Je.js","./Breadcrumbs-Cf7tjXMM.js","./index-CdtdLCAn.js","./html-title-COubPnYH.js","./index.esm-CqU9DX3V.js","./switch-control-C69ynf_5.js","./Switch-CcE13x07.js","./Link-0gkXi8Uc.js","./logo-BKA11TRi.js","./Refresh-BnuukUzy.js","./LoadingButton-CQaWNIUw.js","./rotate-session-key-M6G1sqqU.js","./visuallyHidden-Dan1xhjv.js","./is-path-prefix-equal-CZJiFi6V.js","./Edit-DE-EVJBw.js","./CallMerge-D5vw1D-8.js","./CardContent-DcoNfxTj.js","./index-BP3CDZwK.js","./download-DR111TNZ.js","./index-Cq4PGV-y.js","./audit-logs-a8TDzTpJ.js","./index-BoRTaxzn.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./UnfoldMore-Cs9UJfod.js","./shorten-label-kkxGuhZA.js","./team-BxwSb9mM.js","./index-aL7xy5h_.js","./ViewList-Bwmsjb-W.js","./use-mobile-DqkbOKR3.js","./client-CygehW6E.js","./index-Dy5upDeP.js","./Google-BNdTixOG.js","./AdapterDayjs-ynIynV8Q.js","./useThemeProps-CYFIeocr.js","./ErrorOutline-8GJFRZb7.js","./index-E6rXB0d3.js","./sdk-Hf9i-HPB.js","./actions-rTa6xTCO.js","./index-DYopKv7j.js","./edit.svg-BNeKaJEn.js","./list-header-BHHhumVP.js","./chain-BVuGoB9F.js","./ToggleButtonGroup-DnQIM247.js","./lock.svg-D-lwd6lB.js","./index-BGr1EEHV.js","./index-ZgkIHsf0.css","./useAsyncRetry-CbN3xpzM.js","./useAsync-Di0F7xU-.js","./detail-BFkqhGo0.js","./index-mwjKB0fy.js","./index-Dxbv4luZ.js","./invitation-DK0ruxeD.js","./wrap-locale-GMObIRQ7.js","./index-BJ_u2LJr.js","./index-D6p8W37K.js","./index-CY5zCs97.js","./agreement-B-C6k3dh.js","./index-s2DiZ-3m.js","./index-DBbBuJUS.js","./index-B08J5Jou.js","./traffic-BZ8lLw4J.js","./iframe-e7rmLwl_.js","./index-DBii9-f-.js","./base-chart-CsfVVVaW.js","./index-jdVhK-k1.js","./index-DRYJ0xIl.js","./memory-BZKspppZ.js","./index-WgoWvXv7.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function _mergeNamespaces(Be,Me){for(var qe=0;qe<Me.length;qe++){const He=Me[qe];if(typeof He!="string"&&!Array.isArray(He)){for(const Ge in He)if(Ge!=="default"&&!(Ge in Be)){const Je=Object.getOwnPropertyDescriptor(He,Ge);Je&&Object.defineProperty(Be,Ge,Je.get?Je:{enumerable:!0,get:()=>He[Ge]})}}}return Object.freeze(Object.defineProperty(Be,Symbol.toStringTag,{value:"Module"}))}(function(){const Me=document.createElement("link").relList;if(Me&&Me.supports&&Me.supports("modulepreload"))return;for(const Ge of document.querySelectorAll('link[rel="modulepreload"]'))He(Ge);new MutationObserver(Ge=>{for(const Je of Ge)if(Je.type==="childList")for(const Ye of Je.addedNodes)Ye.tagName==="LINK"&&Ye.rel==="modulepreload"&&He(Ye)}).observe(document,{childList:!0,subtree:!0});function qe(Ge){const Je={};return Ge.integrity&&(Je.integrity=Ge.integrity),Ge.referrerPolicy&&(Je.referrerPolicy=Ge.referrerPolicy),Ge.crossOrigin==="use-credentials"?Je.credentials="include":Ge.crossOrigin==="anonymous"?Je.credentials="omit":Je.credentials="same-origin",Je}function He(Ge){if(Ge.ep)return;Ge.ep=!0;const Je=qe(Ge);fetch(Ge.href,Je)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(Be){return Be&&Be.__esModule&&Object.prototype.hasOwnProperty.call(Be,"default")?Be.default:Be}function getAugmentedNamespace(Be){if(Object.prototype.hasOwnProperty.call(Be,"__esModule"))return Be;var Me=Be.default;if(typeof Me=="function"){var qe=function He(){var Ge=!1;try{Ge=this instanceof He}catch{}return Ge?Reflect.construct(Me,arguments,this.constructor):Me.apply(this,arguments)};qe.prototype=Me.prototype}else qe={};return Object.defineProperty(qe,"__esModule",{value:!0}),Object.keys(Be).forEach(function(He){var Ge=Object.getOwnPropertyDescriptor(Be,He);Object.defineProperty(qe,He,Ge.get?Ge:{enumerable:!0,get:function(){return Be[He]}})}),qe}var jsxRuntime={exports:{}},reactJsxRuntime_production={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.js
|
|
@@ -313,7 +313,7 @@ export default theme;`}function createThemeNoVars(Be={},...Me){const{breakpoints
|
|
|
313
313
|
display: flex;
|
|
314
314
|
justify-content: center;
|
|
315
315
|
align-items: center;
|
|
316
|
-
`;function o$f(Be,Me,qe=0){const{length:He}=Be;return qe<0?qe=0:qe>He&&(qe=He),Me=`${Me}`,Be.slice(qe,qe+Me.length)==Me}function u$i(){return typeof window>"u"?null:window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null}function l$n(Be){return(Be||"").toLowerCase().replace(/-/,"_")}function w$7(Be){if(!Be)return u$i();const{languages:Me,fallback:qe}=Be;if(!Be.languages)return qe;const He=l$n(u$i());if(!He)return qe;const Ge=Me.filter(Je=>l$n(Je)===He);return Ge.length>0?Ge[0]||qe:Me.filter(Je=>o$f(He,Je))[0]||qe}const e$g=(Be,Me)=>typeof Be=="function"?Be(Me):Be.replace(/{(\w*)}/g,(qe,He)=>Me.hasOwnProperty(He)?Me[He]:""),p$d=(Be,Me,qe,He="en",Ge={})=>{const Je=Be[qe],Ye=get$1(Je,Me),Qe=get$1(Be[He],Me);return!Je||!Ye?(console.warn(`Warning: no ${Me} translation of ${qe}`),He&&Qe?e$g(Qe,Ge):Me):typeof Be[qe]=="function"||Be[qe].then?e$g(Qe,Ge):e$g(Ye,Ge)},l$m="nf_lang",F$7=(Be,Me=window.location.href)=>{const qe=new URL(Me).searchParams.get("locale");return Be.find(He=>He.code===qe)?qe:null},O$7=(Be,Me=window.location.href)=>{const qe=new URL(Me);qe.searchParams.has("locale")&&(qe.searchParams.set("locale",Be),window.history.replaceState({},"",qe.href))},d$f=(Be=[])=>{const Me={languages:Be.map(qe=>qe.code),fallback:Be?.[0]?.code||"en"};return F$7(Be)||Cookies.get(l$m)||w$7(Me)},z$6=Be=>{const Me=De();if(!Me.domain){const qe=ye$2();qe&&Cookies.remove(l$m,{path:Me.path||"/",domain:qe})}Cookies.set(l$m,Be,Me),O$7(Be)},N$5=Be=>{const Me=get$1(window,"blocklet.languages");return Array.isArray(Me)&&Me.length?Me:Array.isArray(Be)&&Be.length?Be:[{code:"en",name:"English"},{code:"zh",name:"简体中文"}]},g$f=reactExports.createContext(null),{Provider:_$5,Consumer:M$9}=g$f;function Q$3({children:Be,locale:Me=void 0,fallbackLocale:qe=void 0,translations:He,onLoadingTranslation:Ge=void 0,languages:Je=[],...Ye}){const Qe=N$5(Je);let[Ze,nt]=reactExports.useState(Me||d$f(Qe));const tt=reactExports.useRef(qe||""),[,rt]=reactExports.useState(0),ot=lt=>{nt(lt),z$6(lt)};if(reactExports.useEffect(()=>{const lt=Me||d$f(Qe);lt!==Ze&&ot(lt)},[Me]),Ze&&He[Ze]&&typeof He[Ze]=="function"){const lt=Ze;try{Promise.resolve(He[lt]()).then(ut=>{ut&&typeof ut=="object"&&(He[lt]=ut,rt(dt=>dt>999?0:dt+1))})}catch(ut){console.error(ut)}Ge?.(lt,Qe),Ze=tt.current}else tt.current=Ze;const at=reactExports.useCallback((lt,ut)=>p$d(He,lt,Ze,qe,ut),[He,Ze,qe]);return jsxRuntimeExports.jsx(_$5,{value:{locale:Ze,changeLocale:ot,t:at,languages:Qe,...Ye},children:Be})}function T$7(){return reactExports.use(g$f)}const require$$3$1=getAugmentedNamespace(get$2);var getAuthMethod,hasRequiredGetAuthMethod;function requireGetAuthMethod(){if(hasRequiredGetAuthMethod)return getAuthMethod;hasRequiredGetAuthMethod=1;const Be=require$$3$1,Me=He=>Be(He,"ownerNft.holder")&&Be(He,"ownerNft.issuer")&&Be(He,"launcher.tag")&&Be(He,"launcher.chainHost")&&Be(He,"launcher.did")===Be(He,"ownerNft.issuer");return getAuthMethod={getServerAuthMethod:(He,Ge,Je="",Ye=!1)=>Je?Me(He)&&!He.initialized&&Ge!=="serverless"?"nft":"launcher":Ge==="serverless"?"nft":Ye?"session":He.initialized?"vc":Me(He)?"nft":"vc"},getAuthMethod}var getAuthMethodExports=requireGetAuthMethod(),appleIphone=/iPhone/i,appleIpod=/iPod/i,appleTablet=/iPad/i,appleUniversal=/\biOS-universal(?:.+)Mac\b/i,androidPhone=/\bAndroid(?:.+)Mobile\b/i,androidTablet=/Android/i,amazonPhone=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,amazonTablet=/Silk/i,windowsPhone=/Windows Phone/i,windowsTablet=/\bWindows(?:.+)ARM\b/i,otherBlackBerry=/BlackBerry/i,otherBlackBerry10=/BB10/i,otherOpera=/Opera Mini/i,otherChrome=/\b(CriOS|Chrome)(?:.+)Mobile/i,otherFirefox=/Mobile(?:.+)Firefox\b/i,isAppleTabletOnIos13=function(Be){return typeof Be<"u"&&Be.platform==="MacIntel"&&typeof Be.maxTouchPoints=="number"&&Be.maxTouchPoints>1&&typeof MSStream>"u"};function createMatch(Be){return function(Me){return Me.test(Be)}}function isMobile(Be){var Me={userAgent:"",platform:"",maxTouchPoints:0};!Be&&typeof navigator<"u"?Me={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof Be=="string"?Me.userAgent=Be:Be&&Be.userAgent&&(Me={userAgent:Be.userAgent,platform:Be.platform,maxTouchPoints:Be.maxTouchPoints||0});var qe=Me.userAgent,He=qe.split("[FBAN");typeof He[1]<"u"&&(qe=He[0]),He=qe.split("Twitter"),typeof He[1]<"u"&&(qe=He[0]);var Ge=createMatch(qe),Je={apple:{phone:Ge(appleIphone)&&!Ge(windowsPhone),ipod:Ge(appleIpod),tablet:!Ge(appleIphone)&&(Ge(appleTablet)||isAppleTabletOnIos13(Me))&&!Ge(windowsPhone),universal:Ge(appleUniversal),device:(Ge(appleIphone)||Ge(appleIpod)||Ge(appleTablet)||Ge(appleUniversal)||isAppleTabletOnIos13(Me))&&!Ge(windowsPhone)},amazon:{phone:Ge(amazonPhone),tablet:!Ge(amazonPhone)&&Ge(amazonTablet),device:Ge(amazonPhone)||Ge(amazonTablet)},android:{phone:!Ge(windowsPhone)&&Ge(amazonPhone)||!Ge(windowsPhone)&&Ge(androidPhone),tablet:!Ge(windowsPhone)&&!Ge(amazonPhone)&&!Ge(androidPhone)&&(Ge(amazonTablet)||Ge(androidTablet)),device:!Ge(windowsPhone)&&(Ge(amazonPhone)||Ge(amazonTablet)||Ge(androidPhone)||Ge(androidTablet))||Ge(/\bokhttp\b/i)},windows:{phone:Ge(windowsPhone),tablet:Ge(windowsTablet),device:Ge(windowsPhone)||Ge(windowsTablet)},other:{blackberry:Ge(otherBlackBerry),blackberry10:Ge(otherBlackBerry10),opera:Ge(otherOpera),firefox:Ge(otherFirefox),chrome:Ge(otherChrome),device:Ge(otherBlackBerry)||Ge(otherBlackBerry10)||Ge(otherOpera)||Ge(otherFirefox)||Ge(otherChrome)},any:!1,phone:!1,tablet:!1};return Je.any=Je.apple.device||Je.android.device||Je.windows.device||Je.other.device,Je.phone=Je.apple.phone||Je.android.phone||Je.windows.phone,Je.tablet=Je.apple.tablet||Je.android.tablet||Je.windows.tablet,Je}const r$a="ABTWallet",a$b="ArcSphere";function o$e(Be,Me){return new RegExp(`${Me}/(?<version>[0-9.]+)`,"g").exec(Be)?.groups?.version}function d$e(){const Be=window?.navigator?.userAgent,[Me]=reactExports.useState({wallet:Be.indexOf(r$a)>-1||Be.indexOf(a$b)>-1,walletVersion:o$e(Be,r$a),arcSphere:Be.indexOf(a$b)>-1,arcSphereVersion:o$e(Be,a$b),wechat:/MicroMessenger/i.test(Be),mobile:{apple:{phone:!1,ipod:!1,tablet:!1,device:!1},amazon:{phone:!1,tablet:!1,device:!1},android:{phone:!1,tablet:!1,device:!1},windows:{phone:!1,tablet:!1,device:!1},other:{blackberry:!1,blackberry10:!1,opera:!1,firefox:!1,chrome:!1,device:!1},phone:!1,tablet:!1,any:!1,...isMobile(Be)}});return Me}var constant$3,hasRequiredConstant$2;function requireConstant$2(){if(hasRequiredConstant$2)return constant$3;hasRequiredConstant$2=1;const Be=Object.freeze({AUTH:"auth"}),Me=Object.freeze({OWNER:"owner",ADMIN:"admin",MEMBER:"member",GUEST:"guest"}),qe=Object.freeze({...Me,CI:"ci",CERTIFICATE:"certificate",BLOCKLET_OWNER:"blocklet-owner",BLOCKLET_ADMIN:"blocklet-admin",BLOCKLET_MEMBER:"blocklet-member",BLOCKLET_SDK:"blocklet-sdk",EXTERNAL_BLOCKLET_CONTROLLER:"external-blocklet-controller",EXTERNAL_BLOCKLETS_MANAGER:"external-blocklets-manager"}),He=Object.freeze({BLOCKLET_GUEST:"blocklet-guest"}),Ge=[qe.BLOCKLET_OWNER,qe.BLOCKLET_ADMIN,qe.BLOCKLET_MEMBER,qe.BLOCKLET_SDK],Je=It=>It&&Ge.includes(It),Ye=It=>It&&Me[(It||"").toUpperCase()],Qe=[qe.BLOCKLET_OWNER,qe.BLOCKLET_ADMIN,qe.BLOCKLET_MEMBER,qe.BLOCKLET_SDK,He.BLOCKLET_GUEST],Ze=It=>It&&Qe.includes(It),nt={USER:"user",OWNERSHIP_NFT:"ownership_nft",BLOCKLET_USER:"blocklet_user",BLOCKLET_CONTROLLER:"blocklet_controller"},tt={roles:Object.freeze([{name:qe.OWNER,title:"Owner",description:"Has full administrative access to the Blocklet Server",passport:!0},{name:qe.ADMIN,title:"Admin",description:"Has full permissions to manage blocklet and Blocklet Server such as install/remove/start/stop blocklet, manage blocklet URL mapping and certificates, manage blocklet team, manage node integrations and access keys, upgrade node to a new version",passport:!0},{name:qe.MEMBER,title:"Member",description:"Has permissions to manage blocklets, such as install/remove/start/stop blocklet, manage blocklet URL mapping and certificates",passport:!0},{name:qe.GUEST,title:"Guest",description:"Has all read permissions on Blocklet Server",passport:!0},{name:qe.CI,title:"CI",description:"Deploy blocklet to Blocklet Server",passport:!0,noHuman:!0},{name:qe.CERTIFICATE,title:"Certificate",description:"Manage https certificates for blocklets on the Blocklet Server",noHuman:!0},{name:qe.BLOCKLET_OWNER,title:"Blocklet Owner"},{name:qe.BLOCKLET_ADMIN,title:"Blocklet Admin"},{name:qe.BLOCKLET_MEMBER,title:"Blocklet Member"},{name:qe.BLOCKLET_SDK,title:"Blocklet SDK"},{name:qe.EXTERNAL_BLOCKLET_CONTROLLER,title:"External Blocklet Controller"},{name:qe.EXTERNAL_BLOCKLETS_MANAGER,title:"External Blocklets Manager",description:"Manage external blocklets in the Blocklet Server",noHuman:!0}]),permissions:Object.freeze([{name:"query_node",description:"View node data, include dashboard and node settings, log stream for both Blocklet Server and blocklets"},{name:"mutate_node",description:"Change node settings, upgrade node to a new version"},{name:"query_session",description:"Get data from a long running session"},{name:"mutate_session",description:"Start/update/end a long running session"},{name:"query_accessKey",description:"View access keys for Blocklet Server"},{name:"mutate_accessKey",description:"Manage access keys for server and blocklets, such as create/update/delete"},{name:"query_team",description:"View team data(members/roles/permissions) for Blocklet Server and blocklets"},{name:"mutate_team",description:"Manage team data(members/roles/permissions) for Blocklet Server and blocklets"},{name:"query_blocklets",description:"View store and installed blocklets, including blocklet runtime configuration, domains and urls"},{name:"mutate_blocklets",description:"Perform state changing actions on blocklets, such as install/upgrade/config/start/stop/remove"},{name:"query_router",description:"View sites, URL mapping and certificates in service gateway"},{name:"mutate_router",description:"Manage sites, URL mapping and certificates in service gateway"},{name:"query_certificate",description:"View certificates in service gateway"},{name:"mutate_certificate",description:"Manage certificates in service gateway"},{name:"query_notification",description:"View notifications"},{name:"mutate_notification",description:"Manage notifications, such as mark notifications as read"},{name:"query_webhook",description:"View integrations"},{name:"mutate_webhook",description:"Manage integrations"},{name:"query_blocklet",description:"View a blocklet, including blocklet runtime configuration, domains and urls"},{name:"mutate_blocklet",description:"Perform state changing actions on a blocklet, such as upgrade/config/start/stop"}]),grants:Object.freeze({[qe.GUEST]:["query_blocklets","query_router","query_webhook","query_notification","query_team","query_accessKey","query_node","query_session"],[qe.MEMBER]:[qe.GUEST,"mutate_blocklets","mutate_router","mutate_notification","mutate_session"],[qe.ADMIN]:[qe.MEMBER,"mutate_team","mutate_webhook","mutate_accessKey","mutate_node","mutate_certificate"],[qe.OWNER]:[Me.ADMIN],[qe.CI]:["query_blocklets","mutate_blocklets"],[qe.CERTIFICATE]:["query_certificate","mutate_certificate"],[qe.BLOCKLET_SDK]:["query_team","mutate_team","query_blocklet","query_accessKey","mutate_accessKey"],[qe.BLOCKLET_OWNER]:[qe.BLOCKLET_ADMIN],[qe.BLOCKLET_ADMIN]:[qe.BLOCKLET_MEMBER,"mutate_team","mutate_accessKey","mutate_blocklet","mutate_notification"],[qe.BLOCKLET_MEMBER]:["query_team","query_blocklet","query_notification","query_accessKey"],[qe.EXTERNAL_BLOCKLET_CONTROLLER]:["query_blocklets","mutate_blocklets"],[qe.EXTERNAL_BLOCKLETS_MANAGER]:["query_blocklets","mutate_blocklets","query_node"]})},rt=24*60*60*1e3,ot={NOTIFICATION_CREATE:"notification.create",NOTIFICATION_READ:"notification.read",NOTIFICATION_BLOCKLET_READ:"blocklet.notification.read",NOTIFICATION_BLOCKLET_CREATE:"notification.blockletCreate",NOTIFICATION_BLOCKLET_UPDATE:"notification.blockletUpdate",ROUTING_UPDATED:"routing.updated",NODE_UPDATED:"node.updated",NODE_MAINTAIN_PROGRESS:"node.upgrade.progress",NODE_STARTED:"node.started",NODE_STOPPED:"node.stopped",NODE_ADDED_OWNER:"node.addedOwner",NODE_RUNTIME_INFO:"node.runtimeInfo",BLOCKLETS_RUNTIME_INFO:"node.blockletsRuntimeInfo",DOMAIN_STATUS:"domain.status",CERT_ADDED:"cert.added",CERT_ISSUED:"cert.issued",CERT_UPDATED:"cert.updated",CERT_REMOVED:"cert.removed",CERT_ERROR:"cert.error",RELOAD_GATEWAY:"gateway.reload",NOTIFICATION_CREATE_QUEUED:"notification.create.queued",UPDATE_DOMAIN_ALIAS:"router.domain.alias.updated",WEBHOOK_ATTEMPT:"webhook.attempt"},at=Object.freeze({OWNER:"owner",ADMIN:"admin",INVITED:"invited",ALL:"all"}),lt="https://test.store.blocklet.dev",ut="https://store.blocklet.dev",dt="https://dev.store.blocklet.dev",ct="https://main.abtnetwork.io/api/",ft=Object.freeze({DERIVED:"derived",WALLET:"wallet"}),ht={STATUS:{PROGRESS:null,SUCCEEDED:0,FAILED:1},TIMEOUT_HOURS:6,STRATEGY:{AUTO:0,MANUAL:1},JOB:{INTERVAL:2*60*60}},yt={STATUS:{PROGRESS:null,SUCCEEDED:0,FAILED:1},TIMEOUT_HOURS:6,STRATEGY:{AUTO:0,MANUAL:1},JOB:{INTERVAL:2*60*60,DAY_INTERVAL:24*60*60}},gt=20,Ct=86400/gt,Tt={SYNC_LIMIT:3},_t=[{text:"Plain Text",value:"text/plain"},{text:"JSON",value:"application/json"},{text:"XML",value:"application/xml"},{text:"HTML Document",value:"text/html"},{text:"YAML",value:"application/x-yaml"},{text:"TOML",value:"application/toml"},{text:"CSS",value:"text/css"},{text:"JavaScript",value:"application/javascript"},{text:"CSV",value:"text/csv"},{text:"Markdown",value:"text/markdown"},{text:"SVG",value:"image/svg+xml"}],Bt=30,Dt=Object.freeze({created:0,selected:10,connected:20,timeout:25,paid:30,nftMinted:35,allocated:40,consuming:46,installed:50,overdue:60,canceled:65,terminated:70,transferred:90}),Ot="default",mt="public",bt="invited-only",Et="owner-only",Rt="admin-only",St="simple-cors",At="security-header",kt="simple-cors-and-security-header",wt="event-bus",vt=Object.freeze(["title","description","link"]);return constant$3=Object.freeze({NODE_MODES:Object.freeze({PRODUCTION:"production",DEBUG:"debug",MAINTENANCE:"maintenance",SERVERLESS:"serverless"}),DEFAULT_DESCRIPTION:"Web Interface to manage your Blocklet Server",NODE_MAINTAIN_PROGRESS:Object.freeze({SETUP:"setup",INSTALLING:"installing",VERIFYING:"verifying",RESTARTING:"restarting",CLEANUP:"cleanup",COMPLETE:"complete",ROLLBACK:"rollback"}),VC_TYPE_BLOCKLET_PURCHASE:"BlockletPurchaseCredential",VC_TYPE_NODE_PASSPORT:"ABTNodePassport",VC_TYPE_GENERAL_PASSPORT:"NFTPassport",NFT_TYPE_SERVER_OWNERSHIP:"BlockletServerOwnershipNFT",NFT_TYPE_SERVERLESS:"BlockletServerServerlessNFT",NODE_PACKAGE_NAME:"@abtnode/cli",NODE_COMMAND_NAME:"abtnode",NODE_DATA_DIR_NAME:"_abtnode",USER_AVATAR_DIR:"/.assets/avatar",USER_AVATAR_URL_PREFIX:"bn://avatar",USER_AVATAR_PATH_PREFIX:"/user/avatar",USER_MAX_INVITE_DEPTH:8,PROCESS_NAME_DAEMON:"abt-node-daemon",PROCESS_NAME_PROXY:"abt-node-db-hub",PROCESS_NAME_UPDATER:"abt-node-updater",PROCESS_NAME_SERVICE:"abt-node-service",PROCESS_NAME_ROUTER:"abt-node-router",PROCESS_NAME_LOG_ROTATE:"abt-node-log-rotate",PROCESS_NAME_EVENT_HUB:"abt-node-event-hub",PROCESS_NAME_PM2_EVENT_HUB:"abt-node-pm2-event-hub",BLOCKLET_LAUNCHER_URL:"https://launcher.arcblock.io/",WEB_WALLET_URL:"https://web.abtwallet.io",TEST_STORE_URL:lt,BLOCKLET_STORE_URL:ut,BLOCKLET_STORE_URL_DEV:dt,BLOCKLET_STORE_DID:"z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ",BLOCKLET_STORE_API_PREFIX:"/api",BLOCKLET_STORE_API_BLOCKLET_PREFIX:"/api/blocklets",BLOCKLET_STORE_META_PATH:"/api/store.json",BLOCKLET_STORE:{id:"zNKqX7D8ZAYa77HgzpoFfnV3BFbcmSRrE9aT",name:"Official Store",description:"ArcBlock official blocklet registry",url:ut,logoUrl:"/logo.png",maintainer:"arcblock"},BLOCKLET_STORE_DEV:{id:"zNKmfUatDhzfMVACfr3u97eqndj8f1yXXw3m",name:"Dev Store",description:"ArcBlock dev registry that contains demo and example blocklets",url:dt,maintainer:"arcblock",logoUrl:"/logo.png"},APP_STRUCT_VERSION:"2",DEFAULT_DID_REGISTRY:"https://registry.abtnet.io",DEFAULT_SLP_DOMAIN:"slp.abtnet.io",DEFAULT_DID_DOMAIN:"did.abtnet.io",DEFAULT_IP_DOMAIN:"*.ip.abtnet.io",DEFAULT_IP_DOMAIN_SUFFIX:"ip.abtnet.io",DEFAULT_WILDCARD_CERT_HOST:"https://releases.arcblock.io/",DEFAULT_NFT_DOMAIN_URL:"https://domain.didlabs.org/",DEFAULT_CERTIFICATE_EMAIL:"certs@arcblock.io",CONFIG_FILENAME:"config.yml",CONFIG_FILENAME_OLD:"abtnode.yml",CONFIG_FOLDER_NAME:".blocklet-server",CONFIG_FOLDER_NAME_OLD:".abtnode",EXPORTED_FOLDER_NAME:"exported_blocklet_server",StatusCode:Object.freeze({ok:0,blocklet_not_found:1,blocklet_not_purchased:2,forbidden:403,internal:500,timeout:504}),IP:new RegExp("-(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\-(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}"),DOMAIN_FOR_IP_SITE:"",DOMAIN_FOR_IP_SITE_REGEXP:"~^\\d+.\\d+.\\d+.\\d+$",DOMAIN_FOR_DEFAULT_SITE:"*",DOMAIN_FOR_INTERNAL_SITE:"127.0.0.1",NAME_FOR_WELLKNOWN_SITE:"wellknown",WELLKNOWN_PATH_PREFIX:"/.well-known",WELLKNOWN_ACME_CHALLENGE_PREFIX:"/.well-known/acme-challenge",WELLKNOWN_DID_RESOLVER_PREFIX:"/.well-known/did.json",WELLKNOWN_OAUTH_SERVER:"/.well-known/oauth-authorization-server",WELLKNOWN_OPENID_SERVER:"/.well-known/openid-configuration",WELLKNOWN_BLACKLIST_PREFIX:"/.well-known/blacklist",WELLKNOWN_PING_PREFIX:"/.well-known/ping",WELLKNOWN_ANALYTICS_PREFIX:"/.well-known/analytics",WELLKNOWN_SERVICE_PATH_PREFIX:"/.well-known/service",WELLKNOWN_BLOCKLET_ADMIN_PATH:"/.well-known/service/admin",WELLKNOWN_BLOCKLET_USER_PATH:"/.well-known/service/user",WELLKNOWN_BLOCKLET_HEALTH_PATH:"/.well-known/service/health",WELLKNOWN_BLOCKLET_LOGO_PATH:"/.well-known/service/blocklet/logo",SLOT_FOR_IP_DNS_SITE:"888-888-888-888",DEFAULT_ADMIN_PATH:"/admin",WELLKNOWN_SERVER_ADMIN_PATH:"/.well-known/server/admin",DEFAULT_SERVICE_PATH:"/.abtnode/service",DEFAULT_HTTP_PORT:80,DEFAULT_HTTPS_PORT:443,MAX_UPLOAD_FILE_SIZE:100,DEFAULT_DAEMON_PORT:8089,MAX_NGINX_WORKER_CONNECTIONS:10240,BLOCKLET_PROXY_PATH_PREFIX:"/.blocklet/proxy",BLOCKLET_SITE_GROUP_SUFFIX:".blocklet-domain-group",DAY_IN_MS:rt,DAEMON_MAX_MEM_LIMIT_IN_MB:800,BLOCKLET_MAX_MEM_LIMIT_IN_MB:800,CERTIFICATE_EXPIRES_OFFSET:10*rt,ROUTING_RESPONSE_TYPES:_t,ROUTING_RULE_TYPES:Object.freeze({NONE:"none",DAEMON:"daemon",SERVICE:"service",BLOCKLET:"blocklet",REDIRECT:"redirect",GENERAL_REWRITE:"rewrite",GENERAL_PROXY:"general_proxy",DIRECT_RESPONSE:"direct_response",COMPONENT:"component"}),ROLES:Me,SERVER_ROLES:qe,BLOCKLET_ROLES:Ge,isBlockletRole:Je,isSystemRole:Ye,isBlockletMultipleTenantRole:Ze,AUTH_CERT_TYPE:nt,RBAC_CONFIG:tt,genPermissionName:(It,nn="access")=>`${nn}_${It.replace("_","-")}`,PASSPORT_STATUS:{VALID:"valid",REVOKED:"revoked",EXPIRED:"expired"},NODE_SERVICES:Be,DISK_ALERT_THRESHOLD_PERCENT:80,EVENTS:ot,WHO_CAN_ACCESS:at,WHO_CAN_ACCESS_PREFIX_ROLES:"roles:",GATEWAY_RATE_LIMIT:{min:5,max:500},GATEWAY_RATE_LIMIT_BURST_FACTOR:{min:1,max:10},GATEWAY_RATE_LIMIT_GLOBAL:{min:100,max:5e3},GATEWAY_RATE_LIMIT_METHODS:["GET","POST","PUT","DELETE","OPTIONS","HEAD"],STORE_DETAIL_PAGE_PATH_PREFIX:"/blocklets",MAX_USER_PAGE_SIZE:100,MAX_PAGE_SIZE:100,SERVER_STATUS:{RUNNING:1,STOPPED:2,START_FROM_CRASH:3},LOG_RETAIN_IN_DAYS:60,BLOCKLET_INSTALL_TYPE:{STORE:"store",URL:"url",DEV:"dev",CREATE:"create",RESTORE:"restore"},ROUTER_CACHE_GROUPS:{blockletProxy:{minSize:"1m",maxSize:"2g",period:"30d"}},MAIN_CHAIN_ENDPOINT:ct,USER_TYPE:ft,SERVER_CACHE_TTL:300*1e3,RBAC_CACHE_TTL:300*1e3,BLOCKLET_CACHE_TTL:300*1e3,SESSION_CACHE_TTL:3600,SESSION_TTL:7*86400,BACKUPS:ht,CHECK_UPDATE:yt,MONITOR_HISTORY_LENGTH:Ct,MONITOR_RECORD_INTERVAL_SEC:gt,INSTALL_ACTIONS:{INSTALL:"install",INSTALL_COMPONENT:"installComponent",UPGRADE_COMPONENT:"upgradeComponent"},COPYRIGHT_OWNER:"ArcBlock",FEDERATED:Tt,SESSION_TOKEN_STORAGE_KEY:"login_token",REFRESH_TOKEN_STORAGE_KEY:"refresh_token",SERVERLESS_BLOCKLET_DATA_RETENTION_DAYS:Bt,LAUNCH_SESSION_STATUS:Dt,UNOWNED_DID:"z".repeat(35),STUDIO_CONNECTED_STORE:"studio_connected_store",STUDIO_CONNECTED_AND_DEVELOPED:"studio_connected_and_developed",VERIFY_CODE_LENGTH:6,VERIFY_CODE_TTL:30*60*1e3,VERIFY_SEND_TTL:1*60*1e3,SECURITY_RULE_DEFAULT_ID:Ot,ACCESS_POLICY_PUBLIC:mt,ACCESS_POLICY_INVITED_ONLY:bt,ACCESS_POLICY_OWNER_ONLY:Et,ACCESS_POLICY_ADMIN_ONLY:Rt,RESPONSE_HEADER_POLICY_SIMPLE_CORS:St,RESPONSE_HEADER_POLICY_SECURITY_HEADER:At,RESPONSE_HEADER_POLICY_SIMPLE_CORS_AND_SECURITY_HEADER:kt,MFA_PROTECTED_METHODS:["deleteBlocklet","deleteComponent","rotateSessionKey","upgradeNodeVersion","removeUser","updateUserApproval","deleteRoutingRule","deleteDomainAlias","deleteCertificate","deleteAccessKey","deleteWebHook","deleteBlockletSecurityRule","deleteBlockletResponseHeaderPolicy","deleteBlockletAccessPolicy","configVault"],STUDIO_ALLOWED_METHODS:{getBlocklet:!0,createProject:!0,getProjects:!0,getProject:!0,updateProject:!0,deleteProject:!0,getReleases:!0,getRelease:!0,createRelease:!0,deleteRelease:!0,addBlockletStore:!0,deleteBlockletStore:!0,publishToStore:!0,connectToStore:!0,connectByStudio:!0,disconnectFromStore:!0,getSelectedResources:!0,updateSelectedResources:!0,getBlockletRuntimeHistory:!0,checkDomains:!0,isDidDomain:!0},SKIP_ACCESS_VERIFY_METHODS:{makeAllNotificationsAsRead:!0,readNotifications:!0,unreadNotifications:!0,launchBlockletByLauncher:!0,launchBlockletWithoutWallet:!0,backupBlocklet:!0,destroySelf:!0,connectToAigne:!0,disconnectToAigne:!0,verifyAigneConnection:!0,connectToEndpoint:!0,disconnectFromEndpoint:!0},NOTIFICATION_SEND_STATUS:{PENDING:0,SENT:1,FAILED:2},NOTIFICATION_SEND_FAILED_REASON:{USER_DISABLED:"user_disabled",CHANNEL_UNAVAILABLE:"channel_unavailable",CHANNEL_DISABLED:"channel_disabled",NOT_ONLINE:"not_online"},NOTIFICATION_SEND_CHANNEL:{WALLET:"app",EMAIL:"email",PUSH:"push",WEBHOOK:"webhook"},BLACKLIST_SCOPE:{ROUTER:"router"},EVENT_BUS_EVENT:wt,NAVIGATION_I18N_FIELDS:vt,PASSPORT_SOURCE:{INVITE:"invite",ISSUE:"issue",RECOVER:"recover",TRUSTED:"trusted"},PASSPORT_LOG_ACTION:{ISSUE:"issue",REVOKE:"revoke",APPROVE:"approve",RECOVER:"recover",LOGIN:"login",EXPIRED:"expired",USED:"used"},PASSPORT_ISSUE_ACTION:{ISSUE_ON_INVITE:"issueOnInvite",ISSUE_ON_LAUNCH:"issueOnLaunch",ISSUE_ON_KYC:"issueOnKyc",ISSUE_ON_RECOVER:"issueOnRecover",ISSUE_ON_ROTATE_KEY_PAIR:"issueOnRotateKeyPair",ISSUE_ON_TRANSFER:"issueOnTransferPassportForBindWallet",ISSUE_ON_BLOCKLET_START:"issueOnBlockletStart",ISSUE_ON_RECEIVE_TRANSFER_APP_OWNER:"receiveTransferAppOwner",ISSUE_ON_AUTH0:"issueOnAuth0",ISSUE_ON_SETUP_APP_OWNER:"issueOnLaunchSetupAppOwner",ISSUE_ON_EXCHANGE_PASSPORT:"issueOnExchangePassport",ISSUE_ON_TRUST_PASSPORT:"issueOnTrustPassport"},OAUTH_ENDPOINTS:{AUTHORIZATION:"/authorize",TOKEN:"/token",REGISTRATION:"/register",REVOCATION:"/revoke",USERINFO:"/userinfo",JWKS:"/jwks",LOGOUT:"/logout"},OAUTH_CODE_TTL:10*60,OAUTH_ACCESS_TOKEN_TTL:24*60*60,OAUTH_REFRESH_TOKEN_TTL:30*24*60*60,OAUTH_CLIENT_SECRET_TTL:30*24*60*60,OAUTH_SCOPES:{"profile:read":"Read your profile (name, email, avatar)","blocklet:read":"Read blocklet information and database","blocklet:write":"Manage blocklet components and configuration"},AIGNE_CONFIG_ENCRYPT_SALT:"AIGNE_CONFIG_ENCRYPT_SALT",CSP_OFFICIAL_SOURCES:["https://*.arcblock.io","https://*.didnames.io","https://*.didwallet.io","https://*.abtnetwork.io","https://*.didspaces.com","https://*.blocklet.dev","https://domain.didlabs.org"],CSP_SYSTEM_SOURCES:["https://*.did.abtnet.io","https://*.ip.abtnet.io","https://*.slp.abtnet.io","https://*.did.life","https://*.did.rocks"],CSP_THIRD_PARTY_SOURCES:["https://cdnjs.cloudflare.com","https://js.stripe.com","https://ipapi.co","https://unpkg.com"],CSP_ICONIFY_SOURCES:["https://*.simplesvg.com","https://*.iconify.design","https://*.unisvg.com"]}),constant$3}var constantExports$1=requireConstant$2(),Action;(function(Be){Be.Pop="POP",Be.Push="PUSH",Be.Replace="REPLACE"})(Action||(Action={}));var readOnly=function(Be){return Be},BeforeUnloadEventType="beforeunload",PopStateEventType="popstate";function createBrowserHistory(Be){Be===void 0&&(Be={});var Me=Be,qe=Me.window,He=qe===void 0?document.defaultView:qe,Ge=He.history;function Je(){var Tt=He.location,_t=Tt.pathname,Bt=Tt.search,Dt=Tt.hash,Ot=Ge.state||{};return[Ot.idx,readOnly({pathname:_t,search:Bt,hash:Dt,state:Ot.usr||null,key:Ot.key||"default"})]}var Ye=null;function Qe(){if(Ye)at.call(Ye),Ye=null;else{var Tt=Action.Pop,_t=Je(),Bt=_t[0],Dt=_t[1];if(at.length){if(Bt!=null){var Ot=tt-Bt;Ot&&(Ye={action:Tt,location:Dt,retry:function(){gt(Ot*-1)}},gt(Ot))}}else ft(Tt)}}He.addEventListener(PopStateEventType,Qe);var Ze=Action.Pop,nt=Je(),tt=nt[0],rt=nt[1],ot=createEvents(),at=createEvents();tt==null&&(tt=0,Ge.replaceState(_extends$2({},Ge.state,{idx:tt}),""));function lt(Tt){return typeof Tt=="string"?Tt:createPath(Tt)}function ut(Tt,_t){return _t===void 0&&(_t=null),readOnly(_extends$2({pathname:rt.pathname,hash:"",search:""},typeof Tt=="string"?parsePath$1(Tt):Tt,{state:_t,key:createKey()}))}function dt(Tt,_t){return[{usr:Tt.state,key:Tt.key,idx:_t},lt(Tt)]}function ct(Tt,_t,Bt){return!at.length||(at.call({action:Tt,location:_t,retry:Bt}),!1)}function ft(Tt){Ze=Tt;var _t=Je();tt=_t[0],rt=_t[1],ot.call({action:Ze,location:rt})}function ht(Tt,_t){var Bt=Action.Push,Dt=ut(Tt,_t);function Ot(){ht(Tt,_t)}if(ct(Bt,Dt,Ot)){var mt=dt(Dt,tt+1),bt=mt[0],Et=mt[1];try{Ge.pushState(bt,"",Et)}catch{He.location.assign(Et)}ft(Bt)}}function yt(Tt,_t){var Bt=Action.Replace,Dt=ut(Tt,_t);function Ot(){yt(Tt,_t)}if(ct(Bt,Dt,Ot)){var mt=dt(Dt,tt),bt=mt[0],Et=mt[1];Ge.replaceState(bt,"",Et),ft(Bt)}}function gt(Tt){Ge.go(Tt)}var Ct={get action(){return Ze},get location(){return rt},createHref:lt,push:ht,replace:yt,go:gt,back:function(){gt(-1)},forward:function(){gt(1)},listen:function(_t){return ot.push(_t)},block:function(_t){var Bt=at.push(_t);return at.length===1&&He.addEventListener(BeforeUnloadEventType,promptBeforeUnload),function(){Bt(),at.length||He.removeEventListener(BeforeUnloadEventType,promptBeforeUnload)}}};return Ct}function promptBeforeUnload(Be){Be.preventDefault(),Be.returnValue=""}function createEvents(){var Be=[];return{get length(){return Be.length},push:function(qe){return Be.push(qe),function(){Be=Be.filter(function(He){return He!==qe})}},call:function(qe){Be.forEach(function(He){return He&&He(qe)})}}}function createKey(){return Math.random().toString(36).substr(2,8)}function createPath(Be){var Me=Be.pathname,qe=Me===void 0?"/":Me,He=Be.search,Ge=He===void 0?"":He,Je=Be.hash,Ye=Je===void 0?"":Je;return Ge&&Ge!=="?"&&(qe+=Ge.charAt(0)==="?"?Ge:"?"+Ge),Ye&&Ye!=="#"&&(qe+=Ye.charAt(0)==="#"?Ye:"#"+Ye),qe}function parsePath$1(Be){var Me={};if(Be){var qe=Be.indexOf("#");qe>=0&&(Me.hash=Be.substr(qe),Be=Be.substr(0,qe));var He=Be.indexOf("?");He>=0&&(Me.search=Be.substr(He),Be=Be.substr(0,He)),Be&&(Me.pathname=Be)}return Me}const history$1=createBrowserHistory();function noop$1(){}const defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations(Be,Me){const qe={};!Be.hFlip!=!Me.hFlip&&(qe.hFlip=!0),!Be.vFlip!=!Me.vFlip&&(qe.vFlip=!0);const He=((Be.rotate||0)+(Me.rotate||0))%4;return He&&(qe.rotate=He),qe}function mergeIconData(Be,Me){const qe=mergeIconTransformations(Be,Me);for(const He in defaultExtendedIconProps)He in defaultIconTransformations?He in Be&&!(He in qe)&&(qe[He]=defaultIconTransformations[He]):He in Me?qe[He]=Me[He]:He in Be&&(qe[He]=Be[He]);return qe}function getIconsTree(Be,Me){const qe=Be.icons,He=Be.aliases||Object.create(null),Ge=Object.create(null);function Je(Ye){if(qe[Ye])return Ge[Ye]=[];if(!(Ye in Ge)){Ge[Ye]=null;const Qe=He[Ye]&&He[Ye].parent,Ze=Qe&&Je(Qe);Ze&&(Ge[Ye]=[Qe].concat(Ze))}return Ge[Ye]}return Object.keys(qe).concat(Object.keys(He)).forEach(Je),Ge}function internalGetIconData(Be,Me,qe){const He=Be.icons,Ge=Be.aliases||Object.create(null);let Je={};function Ye(Qe){Je=mergeIconData(He[Qe]||Ge[Qe],Je)}return Ye(Me),qe.forEach(Ye),mergeIconData(Be,Je)}function parseIconSet(Be,Me){const qe=[];if(typeof Be!="object"||typeof Be.icons!="object")return qe;Be.not_found instanceof Array&&Be.not_found.forEach(Ge=>{Me(Ge,null),qe.push(Ge)});const He=getIconsTree(Be);for(const Ge in He){const Je=He[Ge];Je&&(Me(Ge,internalGetIconData(Be,Ge,Je)),qe.push(Ge))}return qe}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps(Be,Me){for(const qe in Me)if(qe in Be&&typeof Be[qe]!=typeof Me[qe])return!1;return!0}function quicklyValidateIconSet(Be){if(typeof Be!="object"||Be===null)return null;const Me=Be;if(typeof Me.prefix!="string"||!Be.icons||typeof Be.icons!="object"||!checkOptionalProps(Be,optionalPropertyDefaults))return null;const qe=Me.icons;for(const Ge in qe){const Je=qe[Ge];if(!Ge||typeof Je.body!="string"||!checkOptionalProps(Je,defaultExtendedIconProps))return null}const He=Me.aliases||Object.create(null);for(const Ge in He){const Je=He[Ge],Ye=Je.parent;if(!Ge||typeof Ye!="string"||!qe[Ye]&&!He[Ye]||!checkOptionalProps(Je,defaultExtendedIconProps))return null}return Me}const matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(Be,Me,qe,He="")=>{const Ge=Be.split(":");if(Be.slice(0,1)==="@"){if(Ge.length<2||Ge.length>3)return null;He=Ge.shift().slice(1)}if(Ge.length>3||!Ge.length)return null;if(Ge.length>1){const Qe=Ge.pop(),Ze=Ge.pop(),nt={provider:Ge.length>0?Ge[0]:He,prefix:Ze,name:Qe};return Me&&!validateIconName(nt)?null:nt}const Je=Ge[0],Ye=Je.split("-");if(Ye.length>1){const Qe={provider:He,prefix:Ye.shift(),name:Ye.join("-")};return Me&&!validateIconName(Qe)?null:Qe}if(qe&&He===""){const Qe={provider:He,prefix:"",name:Je};return Me&&!validateIconName(Qe,qe)?null:Qe}return null},validateIconName=(Be,Me)=>Be?!!((Me&&Be.prefix===""||Be.prefix)&&Be.name):!1,dataStorage=Object.create(null);function newStorage(Be,Me){return{provider:Be,prefix:Me,icons:Object.create(null),missing:new Set}}function getStorage(Be,Me){const qe=dataStorage[Be]||(dataStorage[Be]=Object.create(null));return qe[Me]||(qe[Me]=newStorage(Be,Me))}function addIconSet(Be,Me){return quicklyValidateIconSet(Me)?parseIconSet(Me,(qe,He)=>{He?Be.icons[qe]=He:Be.missing.add(qe)}):[]}function addIconToStorage(Be,Me,qe){try{if(typeof qe.body=="string")return Be.icons[Me]={...qe},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames(Be){return typeof Be=="boolean"&&(simpleNames=Be),simpleNames}function getIconData(Be){const Me=typeof Be=="string"?stringToIcon(Be,!0,simpleNames):Be;if(Me){const qe=getStorage(Me.provider,Me.prefix),He=Me.name;return qe.icons[He]||(qe.missing.has(He)?null:void 0)}}function addIcon(Be,Me){const qe=stringToIcon(Be,!0,simpleNames);if(!qe)return!1;const He=getStorage(qe.provider,qe.prefix);return Me?addIconToStorage(He,qe.name,Me):(He.missing.add(qe.name),!0)}function addCollection(Be,Me){if(typeof Be!="object")return!1;if(typeof Me!="string"&&(Me=Be.provider||""),simpleNames&&!Me&&!Be.prefix){let Ge=!1;return quicklyValidateIconSet(Be)&&(Be.prefix="",parseIconSet(Be,(Je,Ye)=>{addIcon(Je,Ye)&&(Ge=!0)})),Ge}const qe=Be.prefix;if(!validateIconName({prefix:qe,name:"a"}))return!1;const He=getStorage(Me,qe);return!!addIconSet(He,Be)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(Be,Me,qe){if(Me===1)return Be;if(qe=qe||100,typeof Be=="number")return Math.ceil(Be*Me*qe)/qe;if(typeof Be!="string")return Be;const He=Be.split(unitsSplit);if(He===null||!He.length)return Be;const Ge=[];let Je=He.shift(),Ye=unitsTest.test(Je);for(;;){if(Ye){const Qe=parseFloat(Je);isNaN(Qe)?Ge.push(Je):Ge.push(Math.ceil(Qe*Me*qe)/qe)}else Ge.push(Je);if(Je=He.shift(),Je===void 0)return Ge.join("");Ye=!Ye}}function splitSVGDefs(Be,Me="defs"){let qe="";const He=Be.indexOf("<"+Me);for(;He>=0;){const Ge=Be.indexOf(">",He),Je=Be.indexOf("</"+Me);if(Ge===-1||Je===-1)break;const Ye=Be.indexOf(">",Je);if(Ye===-1)break;qe+=Be.slice(Ge+1,Je).trim(),Be=Be.slice(0,He).trim()+Be.slice(Ye+1)}return{defs:qe,content:Be}}function mergeDefsAndContent(Be,Me){return Be?"<defs>"+Be+"</defs>"+Me:Me}function wrapSVGContent(Be,Me,qe){const He=splitSVGDefs(Be);return mergeDefsAndContent(He.defs,Me+He.content+qe)}const isUnsetKeyword=Be=>Be==="unset"||Be==="undefined"||Be==="none";function iconToSVG(Be,Me){const qe={...defaultIconProps,...Be},He={...defaultIconCustomisations,...Me},Ge={left:qe.left,top:qe.top,width:qe.width,height:qe.height};let Je=qe.body;[qe,He].forEach(ut=>{const dt=[],ct=ut.hFlip,ft=ut.vFlip;let ht=ut.rotate;ct?ft?ht+=2:(dt.push("translate("+(Ge.width+Ge.left).toString()+" "+(0-Ge.top).toString()+")"),dt.push("scale(-1 1)"),Ge.top=Ge.left=0):ft&&(dt.push("translate("+(0-Ge.left).toString()+" "+(Ge.height+Ge.top).toString()+")"),dt.push("scale(1 -1)"),Ge.top=Ge.left=0);let yt;switch(ht<0&&(ht-=Math.floor(ht/4)*4),ht=ht%4,ht){case 1:yt=Ge.height/2+Ge.top,dt.unshift("rotate(90 "+yt.toString()+" "+yt.toString()+")");break;case 2:dt.unshift("rotate(180 "+(Ge.width/2+Ge.left).toString()+" "+(Ge.height/2+Ge.top).toString()+")");break;case 3:yt=Ge.width/2+Ge.left,dt.unshift("rotate(-90 "+yt.toString()+" "+yt.toString()+")");break}ht%2===1&&(Ge.left!==Ge.top&&(yt=Ge.left,Ge.left=Ge.top,Ge.top=yt),Ge.width!==Ge.height&&(yt=Ge.width,Ge.width=Ge.height,Ge.height=yt)),dt.length&&(Je=wrapSVGContent(Je,'<g transform="'+dt.join(" ")+'">',"</g>"))});const Ye=He.width,Qe=He.height,Ze=Ge.width,nt=Ge.height;let tt,rt;Ye===null?(rt=Qe===null?"1em":Qe==="auto"?nt:Qe,tt=calculateSize(rt,Ze/nt)):(tt=Ye==="auto"?Ze:Ye,rt=Qe===null?calculateSize(tt,nt/Ze):Qe==="auto"?nt:Qe);const ot={},at=(ut,dt)=>{isUnsetKeyword(dt)||(ot[ut]=dt.toString())};at("width",tt),at("height",rt);const lt=[Ge.left,Ge.top,Ze,nt];return ot.viewBox=lt.join(" "),{attributes:ot,viewBox:lt,body:Je}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(Be,Me=randomPrefix){const qe=[];let He;for(;He=regex.exec(Be);)qe.push(He[1]);if(!qe.length)return Be;const Ge="suffix"+(Math.random()*16777216|Date.now()).toString(16);return qe.forEach(Je=>{const Ye=typeof Me=="function"?Me(Je):Me+(counter++).toString(),Qe=Je.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");Be=Be.replace(new RegExp('([#;"])('+Qe+')([")]|\\.[a-z])',"g"),"$1"+Ye+Ge+"$3")}),Be=Be.replace(new RegExp(Ge,"g"),""),Be}const storage=Object.create(null);function setAPIModule(Be,Me){storage[Be]=Me}function getAPIModule(Be){return storage[Be]||storage[""]}function createAPIConfig(Be){let Me;if(typeof Be.resources=="string")Me=[Be.resources];else if(Me=Be.resources,!(Me instanceof Array)||!Me.length)return null;return{resources:Me,path:Be.path||"/",maxURL:Be.maxURL||500,rotate:Be.rotate||750,timeout:Be.timeout||5e3,random:Be.random===!0,index:Be.index||0,dataAfterTimeout:Be.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(Be,Me){const qe=createAPIConfig(Me);return qe===null?!1:(configStorage[Be]=qe,!0)}function getAPIConfig(Be){return configStorage[Be]}const detectFetch=()=>{let Be;try{if(Be=fetch,typeof Be=="function")return Be}catch{}};let fetchModule=detectFetch();function calculateMaxLength(Be,Me){const qe=getAPIConfig(Be);if(!qe)return 0;let He;if(!qe.maxURL)He=0;else{let Ge=0;qe.resources.forEach(Ye=>{Ge=Math.max(Ge,Ye.length)});const Je=Me+".json?icons=";He=qe.maxURL-Ge-qe.path.length-Je.length}return He}function shouldAbort(Be){return Be===404}const prepare=(Be,Me,qe)=>{const He=[],Ge=calculateMaxLength(Be,Me),Je="icons";let Ye={type:Je,provider:Be,prefix:Me,icons:[]},Qe=0;return qe.forEach((Ze,nt)=>{Qe+=Ze.length+1,Qe>=Ge&&nt>0&&(He.push(Ye),Ye={type:Je,provider:Be,prefix:Me,icons:[]},Qe=Ze.length),Ye.icons.push(Ze)}),He.push(Ye),He};function getPath(Be){if(typeof Be=="string"){const Me=getAPIConfig(Be);if(Me)return Me.path}return"/"}const send=(Be,Me,qe)=>{if(!fetchModule){qe("abort",424);return}let He=getPath(Me.provider);switch(Me.type){case"icons":{const Je=Me.prefix,Qe=Me.icons.join(","),Ze=new URLSearchParams({icons:Qe});He+=Je+".json?"+Ze.toString();break}case"custom":{const Je=Me.uri;He+=Je.slice(0,1)==="/"?Je.slice(1):Je;break}default:qe("abort",400);return}let Ge=503;fetchModule(Be+He).then(Je=>{const Ye=Je.status;if(Ye!==200){setTimeout(()=>{qe(shouldAbort(Ye)?"abort":"next",Ye)});return}return Ge=501,Je.json()}).then(Je=>{if(typeof Je!="object"||Je===null){setTimeout(()=>{Je===404?qe("abort",Je):qe("next",Ge)});return}setTimeout(()=>{qe("success",Je)})}).catch(()=>{qe("next",Ge)})},fetchAPIModule={prepare,send};function sortIcons(Be){const Me={loaded:[],missing:[],pending:[]},qe=Object.create(null);Be.sort((Ge,Je)=>Ge.provider!==Je.provider?Ge.provider.localeCompare(Je.provider):Ge.prefix!==Je.prefix?Ge.prefix.localeCompare(Je.prefix):Ge.name.localeCompare(Je.name));let He={provider:"",prefix:"",name:""};return Be.forEach(Ge=>{if(He.name===Ge.name&&He.prefix===Ge.prefix&&He.provider===Ge.provider)return;He=Ge;const Je=Ge.provider,Ye=Ge.prefix,Qe=Ge.name,Ze=qe[Je]||(qe[Je]=Object.create(null)),nt=Ze[Ye]||(Ze[Ye]=getStorage(Je,Ye));let tt;Qe in nt.icons?tt=Me.loaded:Ye===""||nt.missing.has(Qe)?tt=Me.missing:tt=Me.pending;const rt={provider:Je,prefix:Ye,name:Qe};tt.push(rt)}),Me}function removeCallback(Be,Me){Be.forEach(qe=>{const He=qe.loaderCallbacks;He&&(qe.loaderCallbacks=He.filter(Ge=>Ge.id!==Me))})}function updateCallbacks(Be){Be.pendingCallbacksFlag||(Be.pendingCallbacksFlag=!0,setTimeout(()=>{Be.pendingCallbacksFlag=!1;const Me=Be.loaderCallbacks?Be.loaderCallbacks.slice(0):[];if(!Me.length)return;let qe=!1;const He=Be.provider,Ge=Be.prefix;Me.forEach(Je=>{const Ye=Je.icons,Qe=Ye.pending.length;Ye.pending=Ye.pending.filter(Ze=>{if(Ze.prefix!==Ge)return!0;const nt=Ze.name;if(Be.icons[nt])Ye.loaded.push({provider:He,prefix:Ge,name:nt});else if(Be.missing.has(nt))Ye.missing.push({provider:He,prefix:Ge,name:nt});else return qe=!0,!0;return!1}),Ye.pending.length!==Qe&&(qe||removeCallback([Be],Je.id),Je.callback(Ye.loaded.slice(0),Ye.missing.slice(0),Ye.pending.slice(0),Je.abort))})}))}let idCounter=0;function storeCallback(Be,Me,qe){const He=idCounter++,Ge=removeCallback.bind(null,qe,He);if(!Me.pending.length)return Ge;const Je={id:He,icons:Me,callback:Be,abort:Ge};return qe.forEach(Ye=>{(Ye.loaderCallbacks||(Ye.loaderCallbacks=[])).push(Je)}),Ge}function listToIcons(Be,Me=!0,qe=!1){const He=[];return Be.forEach(Ge=>{const Je=typeof Ge=="string"?stringToIcon(Ge,Me,qe):Ge;Je&&He.push(Je)}),He}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(Be,Me,qe,He){const Ge=Be.resources.length,Je=Be.random?Math.floor(Math.random()*Ge):Be.index;let Ye;if(Be.random){let Ct=Be.resources.slice(0);for(Ye=[];Ct.length>1;){const Tt=Math.floor(Math.random()*Ct.length);Ye.push(Ct[Tt]),Ct=Ct.slice(0,Tt).concat(Ct.slice(Tt+1))}Ye=Ye.concat(Ct)}else Ye=Be.resources.slice(Je).concat(Be.resources.slice(0,Je));const Qe=Date.now();let Ze="pending",nt=0,tt,rt=null,ot=[],at=[];typeof He=="function"&&at.push(He);function lt(){rt&&(clearTimeout(rt),rt=null)}function ut(){Ze==="pending"&&(Ze="aborted"),lt(),ot.forEach(Ct=>{Ct.status==="pending"&&(Ct.status="aborted")}),ot=[]}function dt(Ct,Tt){Tt&&(at=[]),typeof Ct=="function"&&at.push(Ct)}function ct(){return{startTime:Qe,payload:Me,status:Ze,queriesSent:nt,queriesPending:ot.length,subscribe:dt,abort:ut}}function ft(){Ze="failed",at.forEach(Ct=>{Ct(void 0,tt)})}function ht(){ot.forEach(Ct=>{Ct.status==="pending"&&(Ct.status="aborted")}),ot=[]}function yt(Ct,Tt,_t){const Bt=Tt!=="success";switch(ot=ot.filter(Dt=>Dt!==Ct),Ze){case"pending":break;case"failed":if(Bt||!Be.dataAfterTimeout)return;break;default:return}if(Tt==="abort"){tt=_t,ft();return}if(Bt){tt=_t,ot.length||(Ye.length?gt():ft());return}if(lt(),ht(),!Be.random){const Dt=Be.resources.indexOf(Ct.resource);Dt!==-1&&Dt!==Be.index&&(Be.index=Dt)}Ze="completed",at.forEach(Dt=>{Dt(_t)})}function gt(){if(Ze!=="pending")return;lt();const Ct=Ye.shift();if(Ct===void 0){if(ot.length){rt=setTimeout(()=>{lt(),Ze==="pending"&&(ht(),ft())},Be.timeout);return}ft();return}const Tt={status:"pending",resource:Ct,callback:(_t,Bt)=>{yt(Tt,_t,Bt)}};ot.push(Tt),nt++,rt=setTimeout(gt,Be.rotate),qe(Ct,Me,Tt.callback)}return setTimeout(gt),ct}function initRedundancy(Be){const Me={...defaultConfig,...Be};let qe=[];function He(){qe=qe.filter(Qe=>Qe().status==="pending")}function Ge(Qe,Ze,nt){const tt=sendQuery(Me,Qe,Ze,(rt,ot)=>{He(),nt&&nt(rt,ot)});return qe.push(tt),tt}function Je(Qe){return qe.find(Ze=>Qe(Ze))||null}return{query:Ge,find:Je,setIndex:Qe=>{Me.index=Qe},getIndex:()=>Me.index,cleanup:He}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(Be){if(!redundancyCache[Be]){const Me=getAPIConfig(Be);if(!Me)return;const qe=initRedundancy(Me),He={config:Me,redundancy:qe};redundancyCache[Be]=He}return redundancyCache[Be]}function sendAPIQuery(Be,Me,qe){let He,Ge;if(typeof Be=="string"){const Je=getAPIModule(Be);if(!Je)return qe(void 0,424),emptyCallback$1;Ge=Je.send;const Ye=getRedundancyCache(Be);Ye&&(He=Ye.redundancy)}else{const Je=createAPIConfig(Be);if(Je){He=initRedundancy(Je);const Ye=Be.resources?Be.resources[0]:"",Qe=getAPIModule(Ye);Qe&&(Ge=Qe.send)}}return!He||!Ge?(qe(void 0,424),emptyCallback$1):He.query(Me,Ge,qe)().abort}function emptyCallback(){}function loadedNewIcons(Be){Be.iconsLoaderFlag||(Be.iconsLoaderFlag=!0,setTimeout(()=>{Be.iconsLoaderFlag=!1,updateCallbacks(Be)}))}function checkIconNamesForAPI(Be){const Me=[],qe=[];return Be.forEach(He=>{(He.match(matchIconName)?Me:qe).push(He)}),{valid:Me,invalid:qe}}function parseLoaderResponse(Be,Me,qe){function He(){const Ge=Be.pendingIcons;Me.forEach(Je=>{Ge&&Ge.delete(Je),Be.icons[Je]||Be.missing.add(Je)})}if(qe&&typeof qe=="object")try{if(!addIconSet(Be,qe).length){He();return}}catch(Ge){console.error(Ge)}He(),loadedNewIcons(Be)}function parsePossiblyAsyncResponse(Be,Me){Be instanceof Promise?Be.then(qe=>{Me(qe)}).catch(()=>{Me(null)}):Me(Be)}function loadNewIcons(Be,Me){Be.iconsToLoad?Be.iconsToLoad=Be.iconsToLoad.concat(Me).sort():Be.iconsToLoad=Me,Be.iconsQueueFlag||(Be.iconsQueueFlag=!0,setTimeout(()=>{Be.iconsQueueFlag=!1;const{provider:qe,prefix:He}=Be,Ge=Be.iconsToLoad;if(delete Be.iconsToLoad,!Ge||!Ge.length)return;const Je=Be.loadIcon;if(Be.loadIcons&&(Ge.length>1||!Je)){parsePossiblyAsyncResponse(Be.loadIcons(Ge,He,qe),tt=>{parseLoaderResponse(Be,Ge,tt)});return}if(Je){Ge.forEach(tt=>{const rt=Je(tt,He,qe);parsePossiblyAsyncResponse(rt,ot=>{const at=ot?{prefix:He,icons:{[tt]:ot}}:null;parseLoaderResponse(Be,[tt],at)})});return}const{valid:Ye,invalid:Qe}=checkIconNamesForAPI(Ge);if(Qe.length&&parseLoaderResponse(Be,Qe,null),!Ye.length)return;const Ze=He.match(matchIconName)?getAPIModule(qe):null;if(!Ze){parseLoaderResponse(Be,Ye,null);return}Ze.prepare(qe,He,Ye).forEach(tt=>{sendAPIQuery(qe,tt,rt=>{parseLoaderResponse(Be,tt.icons,rt)})})}))}const loadIcons=(Be,Me)=>{const qe=listToIcons(Be,!0,allowSimpleNames()),He=sortIcons(qe);if(!He.pending.length){let Ze=!0;return Me&&setTimeout(()=>{Ze&&Me(He.loaded,He.missing,He.pending,emptyCallback)}),()=>{Ze=!1}}const Ge=Object.create(null),Je=[];let Ye,Qe;return He.pending.forEach(Ze=>{const{provider:nt,prefix:tt}=Ze;if(tt===Qe&&nt===Ye)return;Ye=nt,Qe=tt,Je.push(getStorage(nt,tt));const rt=Ge[nt]||(Ge[nt]=Object.create(null));rt[tt]||(rt[tt]=[])}),He.pending.forEach(Ze=>{const{provider:nt,prefix:tt,name:rt}=Ze,ot=getStorage(nt,tt),at=ot.pendingIcons||(ot.pendingIcons=new Set);at.has(rt)||(at.add(rt),Ge[nt][tt].push(rt))}),Je.forEach(Ze=>{const nt=Ge[Ze.provider][Ze.prefix];nt.length&&loadNewIcons(Ze,nt)}),Me?storeCallback(Me,He,Je):emptyCallback},loadIcon=Be=>new Promise((Me,qe)=>{const He=typeof Be=="string"?stringToIcon(Be,!0):Be;if(!He){qe(Be);return}loadIcons([He||Be],Ge=>{if(Ge.length&&He){const Je=getIconData(He);if(Je){Me({...defaultIconProps,...Je});return}}qe(Be)})});function mergeCustomisations(Be,Me){const qe={...Be};for(const He in Me){const Ge=Me[He],Je=typeof Ge;He in defaultIconSizeCustomisations?(Ge===null||Ge&&(Je==="string"||Je==="number"))&&(qe[He]=Ge):Je===typeof qe[He]&&(qe[He]=He==="rotate"?Ge%4:Ge)}return qe}const separator=/[\s,]+/;function flipFromString(Be,Me){Me.split(separator).forEach(qe=>{switch(qe.trim()){case"horizontal":Be.hFlip=!0;break;case"vertical":Be.vFlip=!0;break}})}function rotateFromString(Be,Me=0){const qe=Be.replace(/^-?[0-9.]*/,"");function He(Ge){for(;Ge<0;)Ge+=4;return Ge%4}if(qe===""){const Ge=parseInt(Be);return isNaN(Ge)?0:He(Ge)}else if(qe!==Be){let Ge=0;switch(qe){case"%":Ge=25;break;case"deg":Ge=90}if(Ge){let Je=parseFloat(Be.slice(0,Be.length-qe.length));return isNaN(Je)?0:(Je=Je/Ge,Je%1===0?He(Je):0)}}return Me}function iconToHTML(Be,Me){let qe=Be.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const He in Me)qe+=" "+He+'="'+Me[He]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+qe+">"+Be+"</svg>"}function encodeSVGforURL(Be){return Be.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData(Be){return"data:image/svg+xml,"+encodeSVGforURL(Be)}function svgToURL(Be){return'url("'+svgToData(Be)+'")'}let policy;function createPolicy(){try{policy=window.trustedTypes.createPolicy("iconify",{createHTML:Be=>Be})}catch{policy=null}}function cleanUpInnerHTML(Be){return policy===void 0&&createPolicy(),policy?policy.createHTML(Be):Be}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={WebkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const Be in propsToAddTo){const Me=propsToAddTo[Be];for(const qe in propsToAdd)Me[Be+qe]=propsToAdd[qe]}const inlineDefaults={...defaultExtendedIconCustomisations,inline:!0};function fixSize(Be){return Be+(Be.match(/^[-0-9.]+$/)?"px":"")}const render=(Be,Me,qe)=>{const He=Me.inline?inlineDefaults:defaultExtendedIconCustomisations,Ge=mergeCustomisations(He,Me),Je=Me.mode||"svg",Ye={},Qe=Me.style||{},Ze={...Je==="svg"?svgDefaults:{}};if(qe){const dt=stringToIcon(qe,!1,!0);if(dt){const ct=["iconify"],ft=["provider","prefix"];for(const ht of ft)dt[ht]&&ct.push("iconify--"+dt[ht]);Ze.className=ct.join(" ")}}for(let dt in Me){const ct=Me[dt];if(ct!==void 0)switch(dt){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":break;case"_ref":Ze.ref=ct;break;case"className":Ze[dt]=(Ze[dt]?Ze[dt]+" ":"")+ct;break;case"inline":case"hFlip":case"vFlip":Ge[dt]=ct===!0||ct==="true"||ct===1;break;case"flip":typeof ct=="string"&&flipFromString(Ge,ct);break;case"color":Ye.color=ct;break;case"rotate":typeof ct=="string"?Ge[dt]=rotateFromString(ct):typeof ct=="number"&&(Ge[dt]=ct);break;case"ariaHidden":case"aria-hidden":ct!==!0&&ct!=="true"&&delete Ze["aria-hidden"];break;default:He[dt]===void 0&&(Ze[dt]=ct)}}const nt=iconToSVG(Be,Ge),tt=nt.attributes;if(Ge.inline&&(Ye.verticalAlign="-0.125em"),Je==="svg"){Ze.style={...Ye,...Qe},Object.assign(Ze,tt);let dt=0,ct=Me.id;return typeof ct=="string"&&(ct=ct.replace(/-/g,"_")),Ze.dangerouslySetInnerHTML={__html:cleanUpInnerHTML(replaceIDs(nt.body,ct?()=>ct+"ID"+dt++:"iconifyReact"))},reactExports.createElement("svg",Ze)}const{body:rt,width:ot,height:at}=Be,lt=Je==="mask"||(Je==="bg"?!1:rt.indexOf("currentColor")!==-1),ut=iconToHTML(rt,{...tt,width:ot+"",height:at+""});return Ze.style={...Ye,"--svg":svgToURL(ut),width:fixSize(tt.width),height:fixSize(tt.height),...commonProps,...lt?monotoneProps:coloredProps,...Qe},reactExports.createElement("span",Ze)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){const Be=window;if(Be.IconifyPreload!==void 0){const Me=Be.IconifyPreload,qe="Invalid IconifyPreload syntax.";typeof Me=="object"&&Me!==null&&(Me instanceof Array?Me:[Me]).forEach(He=>{try{(typeof He!="object"||He===null||He instanceof Array||typeof He.icons!="object"||typeof He.prefix!="string"||!addCollection(He))&&console.error(qe)}catch{console.error(qe)}})}if(Be.IconifyProviders!==void 0){const Me=Be.IconifyProviders;if(typeof Me=="object"&&Me!==null)for(let qe in Me){const He="IconifyProviders["+qe+"] is invalid.";try{const Ge=Me[qe];if(typeof Ge!="object"||!Ge||Ge.resources===void 0)continue;addAPIProvider(qe,Ge)||console.error(He)}catch{console.error(He)}}}}function IconComponent(Be){const[Me,qe]=reactExports.useState(!!Be.ssr),[He,Ge]=reactExports.useState({});function Je(at){if(at){const lt=Be.icon;if(typeof lt=="object")return{name:"",data:lt};const ut=getIconData(lt);if(ut)return{name:lt,data:ut}}return{name:""}}const[Ye,Qe]=reactExports.useState(Je(!!Be.ssr));function Ze(){const at=He.callback;at&&(at(),Ge({}))}function nt(at){if(JSON.stringify(Ye)!==JSON.stringify(at))return Ze(),Qe(at),!0}function tt(){var at;const lt=Be.icon;if(typeof lt=="object"){nt({name:"",data:lt});return}const ut=getIconData(lt);if(nt({name:lt,data:ut}))if(ut===void 0){const dt=loadIcons([lt],tt);Ge({callback:dt})}else ut&&((at=Be.onLoad)===null||at===void 0||at.call(Be,lt))}reactExports.useEffect(()=>(qe(!0),Ze),[]),reactExports.useEffect(()=>{Me&&tt()},[Be.icon,Me]);const{name:rt,data:ot}=Ye;return ot?render({...defaultIconProps,...ot},Be,rt):Be.children?Be.children:Be.fallback?Be.fallback:reactExports.createElement("span",{})}const Icon=reactExports.forwardRef((Be,Me)=>IconComponent({...Be,_ref:Me}));reactExports.forwardRef((Be,Me)=>IconComponent({inline:!0,...Be,_ref:Me}));const data$I={width:24,height:24,body:'<path fill="currentColor" d="m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 13.4Z"/>'},o$d=(...Be)=>Be.reduce((Me,qe)=>qe?Array.isArray(qe)?Me.concat(qe):Me.concat([qe]):Me,[]);function x$a({onClose:Be=noop$1,sx:Me={},size:qe=20}){return jsxRuntimeExports.jsx(Box,{onClick:Be,sx:o$d({fontSize:0,cursor:"pointer",color:"text.secondary",transition:"transform 0.25s ease-in-out 0s",transformOrigin:"center","&:hover":{transform:"rotate(90deg)"}},Me),children:jsxRuntimeExports.jsx(Icon,{icon:data$I,fontSize:qe})})}var qrCodeStyling$1={exports:{}},qrCodeStyling=qrCodeStyling$1.exports,hasRequiredQrCodeStyling;function requireQrCodeStyling(){return hasRequiredQrCodeStyling||(hasRequiredQrCodeStyling=1,function(Be,Me){(function(qe,He){Be.exports=He()})(qrCodeStyling,function(){return(()=>{var qe={192:(Je,Ye)=>{var Qe,Ze,nt=function(){var tt=function(bt,Et){var Rt=bt,St=dt[Et],At=null,kt=0,wt=null,vt=[],It={},nn=function(Vt,$t){At=function(Jt){for(var Qt=new Array(Jt),un=0;un<Jt;un+=1){Qt[un]=new Array(Jt);for(var xn=0;xn<Jt;xn+=1)Qt[un][xn]=null}return Qt}(kt=4*Rt+17),Gt(0,0),Gt(kt-7,0),Gt(0,kt-7),Nt(),rn(),Ut(Vt,$t),Rt>=7&&Xt(Vt),wt==null&&(wt=mn(Rt,St,vt)),Yt(wt,$t)},Gt=function(Vt,$t){for(var Jt=-1;Jt<=7;Jt+=1)if(!(Vt+Jt<=-1||kt<=Vt+Jt))for(var Qt=-1;Qt<=7;Qt+=1)$t+Qt<=-1||kt<=$t+Qt||(At[Vt+Jt][$t+Qt]=0<=Jt&&Jt<=6&&(Qt==0||Qt==6)||0<=Qt&&Qt<=6&&(Jt==0||Jt==6)||2<=Jt&&Jt<=4&&2<=Qt&&Qt<=4)},rn=function(){for(var Vt=8;Vt<kt-8;Vt+=1)At[Vt][6]==null&&(At[Vt][6]=Vt%2==0);for(var $t=8;$t<kt-8;$t+=1)At[6][$t]==null&&(At[6][$t]=$t%2==0)},Nt=function(){for(var Vt=ct.getPatternPosition(Rt),$t=0;$t<Vt.length;$t+=1)for(var Jt=0;Jt<Vt.length;Jt+=1){var Qt=Vt[$t],un=Vt[Jt];if(At[Qt][un]==null)for(var xn=-2;xn<=2;xn+=1)for(var Rn=-2;Rn<=2;Rn+=1)At[Qt+xn][un+Rn]=xn==-2||xn==2||Rn==-2||Rn==2||xn==0&&Rn==0}},Xt=function(Vt){for(var $t=ct.getBCHTypeNumber(Rt),Jt=0;Jt<18;Jt+=1){var Qt=!Vt&&($t>>Jt&1)==1;At[Math.floor(Jt/3)][Jt%3+kt-8-3]=Qt}for(Jt=0;Jt<18;Jt+=1)Qt=!Vt&&($t>>Jt&1)==1,At[Jt%3+kt-8-3][Math.floor(Jt/3)]=Qt},Ut=function(Vt,$t){for(var Jt=St<<3|$t,Qt=ct.getBCHTypeInfo(Jt),un=0;un<15;un+=1){var xn=!Vt&&(Qt>>un&1)==1;un<6?At[un][8]=xn:un<8?At[un+1][8]=xn:At[kt-15+un][8]=xn}for(un=0;un<15;un+=1)xn=!Vt&&(Qt>>un&1)==1,un<8?At[8][kt-un-1]=xn:un<9?At[8][15-un-1+1]=xn:At[8][15-un-1]=xn;At[kt-8][8]=!Vt},Yt=function(Vt,$t){for(var Jt=-1,Qt=kt-1,un=7,xn=0,Rn=ct.getMaskFunction($t),pn=kt-1;pn>0;pn-=2)for(pn==6&&(pn-=1);;){for(var En=0;En<2;En+=1)if(At[Qt][pn-En]==null){var jn=!1;xn<Vt.length&&(jn=(Vt[xn]>>>un&1)==1),Rn(Qt,pn-En)&&(jn=!jn),At[Qt][pn-En]=jn,(un-=1)==-1&&(xn+=1,un=7)}if((Qt+=Jt)<0||kt<=Qt){Qt-=Jt,Jt=-Jt;break}}},mn=function(Vt,$t,Jt){for(var Qt=yt.getRSBlocks(Vt,$t),un=gt(),xn=0;xn<Jt.length;xn+=1){var Rn=Jt[xn];un.put(Rn.getMode(),4),un.put(Rn.getLength(),ct.getLengthInBits(Rn.getMode(),Vt)),Rn.write(un)}var pn=0;for(xn=0;xn<Qt.length;xn+=1)pn+=Qt[xn].dataCount;if(un.getLengthInBits()>8*pn)throw"code length overflow. ("+un.getLengthInBits()+">"+8*pn+")";for(un.getLengthInBits()+4<=8*pn&&un.put(0,4);un.getLengthInBits()%8!=0;)un.putBit(!1);for(;!(un.getLengthInBits()>=8*pn||(un.put(236,8),un.getLengthInBits()>=8*pn));)un.put(17,8);return function(En,jn){for(var Ln=0,Nn=0,lr=0,Jn=new Array(jn.length),ln=new Array(jn.length),_n=0;_n<jn.length;_n+=1){var Bn=jn[_n].dataCount,Un=jn[_n].totalCount-Bn;Nn=Math.max(Nn,Bn),lr=Math.max(lr,Un),Jn[_n]=new Array(Bn);for(var Hn=0;Hn<Jn[_n].length;Hn+=1)Jn[_n][Hn]=255&En.getBuffer()[Hn+Ln];Ln+=Bn;var cn=ct.getErrorCorrectPolynomial(Un),Kt=ht(Jn[_n],cn.getLength()-1).mod(cn);for(ln[_n]=new Array(cn.getLength()-1),Hn=0;Hn<ln[_n].length;Hn+=1){var Pt=Hn+Kt.getLength()-ln[_n].length;ln[_n][Hn]=Pt>=0?Kt.getAt(Pt):0}}var sn=0;for(Hn=0;Hn<jn.length;Hn+=1)sn+=jn[Hn].totalCount;var Tn=new Array(sn),Cn=0;for(Hn=0;Hn<Nn;Hn+=1)for(_n=0;_n<jn.length;_n+=1)Hn<Jn[_n].length&&(Tn[Cn]=Jn[_n][Hn],Cn+=1);for(Hn=0;Hn<lr;Hn+=1)for(_n=0;_n<jn.length;_n+=1)Hn<ln[_n].length&&(Tn[Cn]=ln[_n][Hn],Cn+=1);return Tn}(un,Qt)};It.addData=function(Vt,$t){var Jt=null;switch($t=$t||"Byte"){case"Numeric":Jt=Ct(Vt);break;case"Alphanumeric":Jt=Tt(Vt);break;case"Byte":Jt=_t(Vt);break;case"Kanji":Jt=Bt(Vt);break;default:throw"mode:"+$t}vt.push(Jt),wt=null},It.isDark=function(Vt,$t){if(Vt<0||kt<=Vt||$t<0||kt<=$t)throw Vt+","+$t;return At[Vt][$t]},It.getModuleCount=function(){return kt},It.make=function(){if(Rt<1){for(var Vt=1;Vt<40;Vt++){for(var $t=yt.getRSBlocks(Vt,St),Jt=gt(),Qt=0;Qt<vt.length;Qt++){var un=vt[Qt];Jt.put(un.getMode(),4),Jt.put(un.getLength(),ct.getLengthInBits(un.getMode(),Vt)),un.write(Jt)}var xn=0;for(Qt=0;Qt<$t.length;Qt++)xn+=$t[Qt].dataCount;if(Jt.getLengthInBits()<=8*xn)break}Rt=Vt}nn(!1,function(){for(var Rn=0,pn=0,En=0;En<8;En+=1){nn(!0,En);var jn=ct.getLostPoint(It);(En==0||Rn>jn)&&(Rn=jn,pn=En)}return pn}())},It.createTableTag=function(Vt,$t){Vt=Vt||2;var Jt="";Jt+='<table style="',Jt+=" border-width: 0px; border-style: none;",Jt+=" border-collapse: collapse;",Jt+=" padding: 0px; margin: "+($t=$t===void 0?4*Vt:$t)+"px;",Jt+='">',Jt+="<tbody>";for(var Qt=0;Qt<It.getModuleCount();Qt+=1){Jt+="<tr>";for(var un=0;un<It.getModuleCount();un+=1)Jt+='<td style="',Jt+=" border-width: 0px; border-style: none;",Jt+=" border-collapse: collapse;",Jt+=" padding: 0px; margin: 0px;",Jt+=" width: "+Vt+"px;",Jt+=" height: "+Vt+"px;",Jt+=" background-color: ",Jt+=It.isDark(Qt,un)?"#000000":"#ffffff",Jt+=";",Jt+='"/>';Jt+="</tr>"}return(Jt+="</tbody>")+"</table>"},It.createSvgTag=function(Vt,$t,Jt,Qt){var un={};typeof arguments[0]=="object"&&(Vt=(un=arguments[0]).cellSize,$t=un.margin,Jt=un.alt,Qt=un.title),Vt=Vt||2,$t=$t===void 0?4*Vt:$t,(Jt=typeof Jt=="string"?{text:Jt}:Jt||{}).text=Jt.text||null,Jt.id=Jt.text?Jt.id||"qrcode-description":null,(Qt=typeof Qt=="string"?{text:Qt}:Qt||{}).text=Qt.text||null,Qt.id=Qt.text?Qt.id||"qrcode-title":null;var xn,Rn,pn,En,jn=It.getModuleCount()*Vt+2*$t,Ln="";for(En="l"+Vt+",0 0,"+Vt+" -"+Vt+",0 0,-"+Vt+"z ",Ln+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',Ln+=un.scalable?"":' width="'+jn+'px" height="'+jn+'px"',Ln+=' viewBox="0 0 '+jn+" "+jn+'" ',Ln+=' preserveAspectRatio="xMinYMin meet"',Ln+=Qt.text||Jt.text?' role="img" aria-labelledby="'+hn([Qt.id,Jt.id].join(" ").trim())+'"':"",Ln+=">",Ln+=Qt.text?'<title id="'+hn(Qt.id)+'">'+hn(Qt.text)+"</title>":"",Ln+=Jt.text?'<description id="'+hn(Jt.id)+'">'+hn(Jt.text)+"</description>":"",Ln+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',Ln+='<path d="',Rn=0;Rn<It.getModuleCount();Rn+=1)for(pn=Rn*Vt+$t,xn=0;xn<It.getModuleCount();xn+=1)It.isDark(Rn,xn)&&(Ln+="M"+(xn*Vt+$t)+","+pn+En);return(Ln+='" stroke="transparent" fill="black"/>')+"</svg>"},It.createDataURL=function(Vt,$t){Vt=Vt||2,$t=$t===void 0?4*Vt:$t;var Jt=It.getModuleCount()*Vt+2*$t,Qt=$t,un=Jt-$t;return mt(Jt,Jt,function(xn,Rn){if(Qt<=xn&&xn<un&&Qt<=Rn&&Rn<un){var pn=Math.floor((xn-Qt)/Vt),En=Math.floor((Rn-Qt)/Vt);return It.isDark(En,pn)?0:1}return 1})},It.createImgTag=function(Vt,$t,Jt){Vt=Vt||2,$t=$t===void 0?4*Vt:$t;var Qt=It.getModuleCount()*Vt+2*$t,un="";return un+="<img",un+=' src="',un+=It.createDataURL(Vt,$t),un+='"',un+=' width="',un+=Qt,un+='"',un+=' height="',un+=Qt,un+='"',Jt&&(un+=' alt="',un+=hn(Jt),un+='"'),un+"/>"};var hn=function(Vt){for(var $t="",Jt=0;Jt<Vt.length;Jt+=1){var Qt=Vt.charAt(Jt);switch(Qt){case"<":$t+="<";break;case">":$t+=">";break;case"&":$t+="&";break;case'"':$t+=""";break;default:$t+=Qt}}return $t};return It.createASCII=function(Vt,$t){if((Vt=Vt||1)<2)return function(Jn){Jn=Jn===void 0?2:Jn;var ln,_n,Bn,Un,Hn,cn=1*It.getModuleCount()+2*Jn,Kt=Jn,Pt=cn-Jn,sn={"██":"█","█ ":"▀"," █":"▄"," ":" "},Tn={"██":"▀","█ ":"▀"," █":" "," ":" "},Cn="";for(ln=0;ln<cn;ln+=2){for(Bn=Math.floor((ln-Kt)/1),Un=Math.floor((ln+1-Kt)/1),_n=0;_n<cn;_n+=1)Hn="█",Kt<=_n&&_n<Pt&&Kt<=ln&&ln<Pt&&It.isDark(Bn,Math.floor((_n-Kt)/1))&&(Hn=" "),Kt<=_n&&_n<Pt&&Kt<=ln+1&&ln+1<Pt&&It.isDark(Un,Math.floor((_n-Kt)/1))?Hn+=" ":Hn+="█",Cn+=Jn<1&&ln+1>=Pt?Tn[Hn]:sn[Hn];Cn+=`
|
|
316
|
+
`;function o$f(Be,Me,qe=0){const{length:He}=Be;return qe<0?qe=0:qe>He&&(qe=He),Me=`${Me}`,Be.slice(qe,qe+Me.length)==Me}function u$i(){return typeof window>"u"?null:window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null}function l$n(Be){return(Be||"").toLowerCase().replace(/-/,"_")}function w$7(Be){if(!Be)return u$i();const{languages:Me,fallback:qe}=Be;if(!Be.languages)return qe;const He=l$n(u$i());if(!He)return qe;const Ge=Me.filter(Je=>l$n(Je)===He);return Ge.length>0?Ge[0]||qe:Me.filter(Je=>o$f(He,Je))[0]||qe}const e$g=(Be,Me)=>typeof Be=="function"?Be(Me):Be.replace(/{(\w*)}/g,(qe,He)=>Me.hasOwnProperty(He)?Me[He]:""),p$d=(Be,Me,qe,He="en",Ge={})=>{const Je=Be[qe],Ye=get$1(Je,Me),Qe=get$1(Be[He],Me);return!Je||!Ye?(console.warn(`Warning: no ${Me} translation of ${qe}`),He&&Qe?e$g(Qe,Ge):Me):typeof Be[qe]=="function"||Be[qe].then?e$g(Qe,Ge):e$g(Ye,Ge)},l$m="nf_lang",F$7=(Be,Me=window.location.href)=>{const qe=new URL(Me).searchParams.get("locale");return Be.find(He=>He.code===qe)?qe:null},O$7=(Be,Me=window.location.href)=>{const qe=new URL(Me);qe.searchParams.has("locale")&&(qe.searchParams.set("locale",Be),window.history.replaceState({},"",qe.href))},d$f=(Be=[])=>{const Me={languages:Be.map(qe=>qe.code),fallback:Be?.[0]?.code||"en"};return F$7(Be)||Cookies.get(l$m)||w$7(Me)},z$6=Be=>{const Me=De();if(!Me.domain){const qe=ye$2();qe&&Cookies.remove(l$m,{path:Me.path||"/",domain:qe})}Cookies.set(l$m,Be,Me),O$7(Be)},N$5=Be=>{const Me=get$1(window,"blocklet.languages");return Array.isArray(Me)&&Me.length?Me:Array.isArray(Be)&&Be.length?Be:[{code:"en",name:"English"},{code:"zh",name:"简体中文"}]},g$f=reactExports.createContext(null),{Provider:_$5,Consumer:M$9}=g$f;function Q$3({children:Be,locale:Me=void 0,fallbackLocale:qe=void 0,translations:He,onLoadingTranslation:Ge=void 0,languages:Je=[],...Ye}){const Qe=N$5(Je);let[Ze,nt]=reactExports.useState(Me||d$f(Qe));const tt=reactExports.useRef(qe||""),[,rt]=reactExports.useState(0),ot=lt=>{nt(lt),z$6(lt)};if(reactExports.useEffect(()=>{const lt=Me||d$f(Qe);lt!==Ze&&ot(lt)},[Me]),Ze&&He[Ze]&&typeof He[Ze]=="function"){const lt=Ze;try{Promise.resolve(He[lt]()).then(ut=>{ut&&typeof ut=="object"&&(He[lt]=ut,rt(dt=>dt>999?0:dt+1))})}catch(ut){console.error(ut)}Ge?.(lt,Qe),Ze=tt.current}else tt.current=Ze;const at=reactExports.useCallback((lt,ut)=>p$d(He,lt,Ze,qe,ut),[He,Ze,qe]);return jsxRuntimeExports.jsx(_$5,{value:{locale:Ze,changeLocale:ot,t:at,languages:Qe,...Ye},children:Be})}function T$7(){return reactExports.use(g$f)}const require$$3$1=getAugmentedNamespace(get$2);var getAuthMethod,hasRequiredGetAuthMethod;function requireGetAuthMethod(){if(hasRequiredGetAuthMethod)return getAuthMethod;hasRequiredGetAuthMethod=1;const Be=require$$3$1,Me=He=>Be(He,"ownerNft.holder")&&Be(He,"ownerNft.issuer")&&Be(He,"launcher.tag")&&Be(He,"launcher.chainHost")&&Be(He,"launcher.did")===Be(He,"ownerNft.issuer");return getAuthMethod={getServerAuthMethod:(He,Ge,Je="",Ye=!1)=>Je?Me(He)&&!He.initialized&&Ge!=="serverless"?"nft":"launcher":Ge==="serverless"?"nft":Ye?"session":He.initialized?"vc":Me(He)?"nft":"vc"},getAuthMethod}var getAuthMethodExports=requireGetAuthMethod(),appleIphone=/iPhone/i,appleIpod=/iPod/i,appleTablet=/iPad/i,appleUniversal=/\biOS-universal(?:.+)Mac\b/i,androidPhone=/\bAndroid(?:.+)Mobile\b/i,androidTablet=/Android/i,amazonPhone=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,amazonTablet=/Silk/i,windowsPhone=/Windows Phone/i,windowsTablet=/\bWindows(?:.+)ARM\b/i,otherBlackBerry=/BlackBerry/i,otherBlackBerry10=/BB10/i,otherOpera=/Opera Mini/i,otherChrome=/\b(CriOS|Chrome)(?:.+)Mobile/i,otherFirefox=/Mobile(?:.+)Firefox\b/i,isAppleTabletOnIos13=function(Be){return typeof Be<"u"&&Be.platform==="MacIntel"&&typeof Be.maxTouchPoints=="number"&&Be.maxTouchPoints>1&&typeof MSStream>"u"};function createMatch(Be){return function(Me){return Me.test(Be)}}function isMobile(Be){var Me={userAgent:"",platform:"",maxTouchPoints:0};!Be&&typeof navigator<"u"?Me={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof Be=="string"?Me.userAgent=Be:Be&&Be.userAgent&&(Me={userAgent:Be.userAgent,platform:Be.platform,maxTouchPoints:Be.maxTouchPoints||0});var qe=Me.userAgent,He=qe.split("[FBAN");typeof He[1]<"u"&&(qe=He[0]),He=qe.split("Twitter"),typeof He[1]<"u"&&(qe=He[0]);var Ge=createMatch(qe),Je={apple:{phone:Ge(appleIphone)&&!Ge(windowsPhone),ipod:Ge(appleIpod),tablet:!Ge(appleIphone)&&(Ge(appleTablet)||isAppleTabletOnIos13(Me))&&!Ge(windowsPhone),universal:Ge(appleUniversal),device:(Ge(appleIphone)||Ge(appleIpod)||Ge(appleTablet)||Ge(appleUniversal)||isAppleTabletOnIos13(Me))&&!Ge(windowsPhone)},amazon:{phone:Ge(amazonPhone),tablet:!Ge(amazonPhone)&&Ge(amazonTablet),device:Ge(amazonPhone)||Ge(amazonTablet)},android:{phone:!Ge(windowsPhone)&&Ge(amazonPhone)||!Ge(windowsPhone)&&Ge(androidPhone),tablet:!Ge(windowsPhone)&&!Ge(amazonPhone)&&!Ge(androidPhone)&&(Ge(amazonTablet)||Ge(androidTablet)),device:!Ge(windowsPhone)&&(Ge(amazonPhone)||Ge(amazonTablet)||Ge(androidPhone)||Ge(androidTablet))||Ge(/\bokhttp\b/i)},windows:{phone:Ge(windowsPhone),tablet:Ge(windowsTablet),device:Ge(windowsPhone)||Ge(windowsTablet)},other:{blackberry:Ge(otherBlackBerry),blackberry10:Ge(otherBlackBerry10),opera:Ge(otherOpera),firefox:Ge(otherFirefox),chrome:Ge(otherChrome),device:Ge(otherBlackBerry)||Ge(otherBlackBerry10)||Ge(otherOpera)||Ge(otherFirefox)||Ge(otherChrome)},any:!1,phone:!1,tablet:!1};return Je.any=Je.apple.device||Je.android.device||Je.windows.device||Je.other.device,Je.phone=Je.apple.phone||Je.android.phone||Je.windows.phone,Je.tablet=Je.apple.tablet||Je.android.tablet||Je.windows.tablet,Je}const r$a="ABTWallet",a$b="ArcSphere";function o$e(Be,Me){return new RegExp(`${Me}/(?<version>[0-9.]+)`,"g").exec(Be)?.groups?.version}function d$e(){const Be=window?.navigator?.userAgent,[Me]=reactExports.useState({wallet:Be.indexOf(r$a)>-1||Be.indexOf(a$b)>-1,walletVersion:o$e(Be,r$a),arcSphere:Be.indexOf(a$b)>-1,arcSphereVersion:o$e(Be,a$b),wechat:/MicroMessenger/i.test(Be),mobile:{apple:{phone:!1,ipod:!1,tablet:!1,device:!1},amazon:{phone:!1,tablet:!1,device:!1},android:{phone:!1,tablet:!1,device:!1},windows:{phone:!1,tablet:!1,device:!1},other:{blackberry:!1,blackberry10:!1,opera:!1,firefox:!1,chrome:!1,device:!1},phone:!1,tablet:!1,any:!1,...isMobile(Be)}});return Me}var constant$3,hasRequiredConstant$2;function requireConstant$2(){if(hasRequiredConstant$2)return constant$3;hasRequiredConstant$2=1;const Be=Object.freeze({AUTH:"auth"}),Me=Object.freeze({OWNER:"owner",ADMIN:"admin",MEMBER:"member",GUEST:"guest"}),qe=Object.freeze({...Me,CI:"ci",CERTIFICATE:"certificate",BLOCKLET_OWNER:"blocklet-owner",BLOCKLET_ADMIN:"blocklet-admin",BLOCKLET_MEMBER:"blocklet-member",BLOCKLET_SDK:"blocklet-sdk",EXTERNAL_BLOCKLET_CONTROLLER:"external-blocklet-controller",EXTERNAL_BLOCKLETS_MANAGER:"external-blocklets-manager"}),He=Object.freeze({BLOCKLET_GUEST:"blocklet-guest"}),Ge=[qe.BLOCKLET_OWNER,qe.BLOCKLET_ADMIN,qe.BLOCKLET_MEMBER,qe.BLOCKLET_SDK],Je=It=>It&&Ge.includes(It),Ye=It=>It&&Me[(It||"").toUpperCase()],Qe=[qe.BLOCKLET_OWNER,qe.BLOCKLET_ADMIN,qe.BLOCKLET_MEMBER,qe.BLOCKLET_SDK,He.BLOCKLET_GUEST],Ze=It=>It&&Qe.includes(It),nt={USER:"user",OWNERSHIP_NFT:"ownership_nft",BLOCKLET_USER:"blocklet_user",BLOCKLET_CONTROLLER:"blocklet_controller"},tt={roles:Object.freeze([{name:qe.OWNER,title:"Owner",description:"Has full administrative access to the Blocklet Server",passport:!0},{name:qe.ADMIN,title:"Admin",description:"Has full permissions to manage blocklet and Blocklet Server such as install/remove/start/stop blocklet, manage blocklet URL mapping and certificates, manage blocklet team, manage node integrations and access keys, upgrade node to a new version",passport:!0},{name:qe.MEMBER,title:"Member",description:"Has permissions to manage blocklets, such as install/remove/start/stop blocklet, manage blocklet URL mapping and certificates",passport:!0},{name:qe.GUEST,title:"Guest",description:"Has all read permissions on Blocklet Server",passport:!0},{name:qe.CI,title:"CI",description:"Deploy blocklet to Blocklet Server",passport:!0,noHuman:!0},{name:qe.CERTIFICATE,title:"Certificate",description:"Manage https certificates for blocklets on the Blocklet Server",noHuman:!0},{name:qe.BLOCKLET_OWNER,title:"Blocklet Owner"},{name:qe.BLOCKLET_ADMIN,title:"Blocklet Admin"},{name:qe.BLOCKLET_MEMBER,title:"Blocklet Member"},{name:qe.BLOCKLET_SDK,title:"Blocklet SDK"},{name:qe.EXTERNAL_BLOCKLET_CONTROLLER,title:"External Blocklet Controller"},{name:qe.EXTERNAL_BLOCKLETS_MANAGER,title:"External Blocklets Manager",description:"Manage external blocklets in the Blocklet Server",noHuman:!0}]),permissions:Object.freeze([{name:"query_node",description:"View node data, include dashboard and node settings, log stream for both Blocklet Server and blocklets"},{name:"mutate_node",description:"Change node settings, upgrade node to a new version"},{name:"query_session",description:"Get data from a long running session"},{name:"mutate_session",description:"Start/update/end a long running session"},{name:"query_accessKey",description:"View access keys for Blocklet Server"},{name:"mutate_accessKey",description:"Manage access keys for server and blocklets, such as create/update/delete"},{name:"query_team",description:"View team data(members/roles/permissions) for Blocklet Server and blocklets"},{name:"mutate_team",description:"Manage team data(members/roles/permissions) for Blocklet Server and blocklets"},{name:"query_blocklets",description:"View store and installed blocklets, including blocklet runtime configuration, domains and urls"},{name:"mutate_blocklets",description:"Perform state changing actions on blocklets, such as install/upgrade/config/start/stop/remove"},{name:"query_router",description:"View sites, URL mapping and certificates in service gateway"},{name:"mutate_router",description:"Manage sites, URL mapping and certificates in service gateway"},{name:"query_certificate",description:"View certificates in service gateway"},{name:"mutate_certificate",description:"Manage certificates in service gateway"},{name:"query_notification",description:"View notifications"},{name:"mutate_notification",description:"Manage notifications, such as mark notifications as read"},{name:"query_webhook",description:"View integrations"},{name:"mutate_webhook",description:"Manage integrations"},{name:"query_blocklet",description:"View a blocklet, including blocklet runtime configuration, domains and urls"},{name:"mutate_blocklet",description:"Perform state changing actions on a blocklet, such as upgrade/config/start/stop"}]),grants:Object.freeze({[qe.GUEST]:["query_blocklets","query_router","query_webhook","query_notification","query_team","query_accessKey","query_node","query_session"],[qe.MEMBER]:[qe.GUEST,"mutate_blocklets","mutate_router","mutate_notification","mutate_session"],[qe.ADMIN]:[qe.MEMBER,"mutate_team","mutate_webhook","mutate_accessKey","mutate_node","mutate_certificate"],[qe.OWNER]:[Me.ADMIN],[qe.CI]:["query_blocklets","mutate_blocklets"],[qe.CERTIFICATE]:["query_certificate","mutate_certificate"],[qe.BLOCKLET_SDK]:["query_team","mutate_team","query_blocklet","query_accessKey","mutate_accessKey"],[qe.BLOCKLET_OWNER]:[qe.BLOCKLET_ADMIN],[qe.BLOCKLET_ADMIN]:[qe.BLOCKLET_MEMBER,"mutate_team","mutate_accessKey","mutate_blocklet","mutate_notification"],[qe.BLOCKLET_MEMBER]:["query_team","query_blocklet","query_notification","query_accessKey"],[qe.EXTERNAL_BLOCKLET_CONTROLLER]:["query_blocklets","mutate_blocklets"],[qe.EXTERNAL_BLOCKLETS_MANAGER]:["query_blocklets","mutate_blocklets","query_node"]})},rt=24*60*60*1e3,ot={NOTIFICATION_CREATE:"notification.create",NOTIFICATION_READ:"notification.read",NOTIFICATION_BLOCKLET_READ:"blocklet.notification.read",NOTIFICATION_BLOCKLET_CREATE:"notification.blockletCreate",NOTIFICATION_BLOCKLET_UPDATE:"notification.blockletUpdate",ROUTING_UPDATED:"routing.updated",NODE_UPDATED:"node.updated",NODE_MAINTAIN_PROGRESS:"node.upgrade.progress",NODE_STARTED:"node.started",NODE_STOPPED:"node.stopped",NODE_ADDED_OWNER:"node.addedOwner",NODE_RUNTIME_INFO:"node.runtimeInfo",BLOCKLETS_RUNTIME_INFO:"node.blockletsRuntimeInfo",DOMAIN_STATUS:"domain.status",CERT_ADDED:"cert.added",CERT_ISSUED:"cert.issued",CERT_UPDATED:"cert.updated",CERT_REMOVED:"cert.removed",CERT_ERROR:"cert.error",RELOAD_GATEWAY:"gateway.reload",NOTIFICATION_CREATE_QUEUED:"notification.create.queued",UPDATE_DOMAIN_ALIAS:"router.domain.alias.updated",WEBHOOK_ATTEMPT:"webhook.attempt"},at=Object.freeze({OWNER:"owner",ADMIN:"admin",INVITED:"invited",ALL:"all"}),lt="https://test.store.blocklet.dev",ut="https://store.blocklet.dev",dt="https://dev.store.blocklet.dev",ct="https://main.abtnetwork.io/api/",ft=Object.freeze({DERIVED:"derived",WALLET:"wallet"}),ht={STATUS:{PROGRESS:null,SUCCEEDED:0,FAILED:1},TIMEOUT_HOURS:6,STRATEGY:{AUTO:0,MANUAL:1},JOB:{INTERVAL:2*60*60}},yt={STATUS:{PROGRESS:null,SUCCEEDED:0,FAILED:1},TIMEOUT_HOURS:6,STRATEGY:{AUTO:0,MANUAL:1},JOB:{INTERVAL:2*60*60,DAY_INTERVAL:24*60*60}},gt=20,Ct=86400/gt,Tt={SYNC_LIMIT:30},_t=[{text:"Plain Text",value:"text/plain"},{text:"JSON",value:"application/json"},{text:"XML",value:"application/xml"},{text:"HTML Document",value:"text/html"},{text:"YAML",value:"application/x-yaml"},{text:"TOML",value:"application/toml"},{text:"CSS",value:"text/css"},{text:"JavaScript",value:"application/javascript"},{text:"CSV",value:"text/csv"},{text:"Markdown",value:"text/markdown"},{text:"SVG",value:"image/svg+xml"}],Bt=30,Dt=Object.freeze({created:0,selected:10,connected:20,timeout:25,paid:30,nftMinted:35,allocated:40,consuming:46,installed:50,overdue:60,canceled:65,terminated:70,transferred:90}),Ot="default",mt="public",bt="invited-only",Et="owner-only",Rt="admin-only",St="simple-cors",At="security-header",kt="simple-cors-and-security-header",wt="event-bus",vt=Object.freeze(["title","description","link"]);return constant$3=Object.freeze({NODE_MODES:Object.freeze({PRODUCTION:"production",DEBUG:"debug",MAINTENANCE:"maintenance",SERVERLESS:"serverless"}),DEFAULT_DESCRIPTION:"Web Interface to manage your Blocklet Server",NODE_MAINTAIN_PROGRESS:Object.freeze({SETUP:"setup",INSTALLING:"installing",VERIFYING:"verifying",RESTARTING:"restarting",CLEANUP:"cleanup",COMPLETE:"complete",ROLLBACK:"rollback"}),VC_TYPE_BLOCKLET_PURCHASE:"BlockletPurchaseCredential",VC_TYPE_NODE_PASSPORT:"ABTNodePassport",VC_TYPE_GENERAL_PASSPORT:"NFTPassport",NFT_TYPE_SERVER_OWNERSHIP:"BlockletServerOwnershipNFT",NFT_TYPE_SERVERLESS:"BlockletServerServerlessNFT",NODE_PACKAGE_NAME:"@abtnode/cli",NODE_COMMAND_NAME:"abtnode",NODE_DATA_DIR_NAME:"_abtnode",USER_AVATAR_DIR:"/.assets/avatar",USER_AVATAR_URL_PREFIX:"bn://avatar",USER_AVATAR_PATH_PREFIX:"/user/avatar",USER_MAX_INVITE_DEPTH:8,PROCESS_NAME_DAEMON:"abt-node-daemon",PROCESS_NAME_PROXY:"abt-node-db-hub",PROCESS_NAME_UPDATER:"abt-node-updater",PROCESS_NAME_SERVICE:"abt-node-service",PROCESS_NAME_ROUTER:"abt-node-router",PROCESS_NAME_LOG_ROTATE:"abt-node-log-rotate",PROCESS_NAME_EVENT_HUB:"abt-node-event-hub",PROCESS_NAME_PM2_EVENT_HUB:"abt-node-pm2-event-hub",BLOCKLET_LAUNCHER_URL:"https://launcher.arcblock.io/",WEB_WALLET_URL:"https://web.abtwallet.io",TEST_STORE_URL:lt,BLOCKLET_STORE_URL:ut,BLOCKLET_STORE_URL_DEV:dt,BLOCKLET_STORE_DID:"z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ",BLOCKLET_STORE_API_PREFIX:"/api",BLOCKLET_STORE_API_BLOCKLET_PREFIX:"/api/blocklets",BLOCKLET_STORE_META_PATH:"/api/store.json",BLOCKLET_STORE:{id:"zNKqX7D8ZAYa77HgzpoFfnV3BFbcmSRrE9aT",name:"Official Store",description:"ArcBlock official blocklet registry",url:ut,logoUrl:"/logo.png",maintainer:"arcblock"},BLOCKLET_STORE_DEV:{id:"zNKmfUatDhzfMVACfr3u97eqndj8f1yXXw3m",name:"Dev Store",description:"ArcBlock dev registry that contains demo and example blocklets",url:dt,maintainer:"arcblock",logoUrl:"/logo.png"},APP_STRUCT_VERSION:"2",DEFAULT_DID_REGISTRY:"https://registry.abtnet.io",DEFAULT_SLP_DOMAIN:"slp.abtnet.io",DEFAULT_DID_DOMAIN:"did.abtnet.io",DEFAULT_IP_DOMAIN:"*.ip.abtnet.io",DEFAULT_IP_DOMAIN_SUFFIX:"ip.abtnet.io",DEFAULT_WILDCARD_CERT_HOST:"https://releases.arcblock.io/",DEFAULT_NFT_DOMAIN_URL:"https://domain.didlabs.org/",DEFAULT_CERTIFICATE_EMAIL:"certs@arcblock.io",CONFIG_FILENAME:"config.yml",CONFIG_FILENAME_OLD:"abtnode.yml",CONFIG_FOLDER_NAME:".blocklet-server",CONFIG_FOLDER_NAME_OLD:".abtnode",EXPORTED_FOLDER_NAME:"exported_blocklet_server",StatusCode:Object.freeze({ok:0,blocklet_not_found:1,blocklet_not_purchased:2,forbidden:403,internal:500,timeout:504}),IP:new RegExp("-(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\-(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}"),DOMAIN_FOR_IP_SITE:"",DOMAIN_FOR_IP_SITE_REGEXP:"~^\\d+.\\d+.\\d+.\\d+$",DOMAIN_FOR_DEFAULT_SITE:"*",DOMAIN_FOR_INTERNAL_SITE:"127.0.0.1",NAME_FOR_WELLKNOWN_SITE:"wellknown",WELLKNOWN_PATH_PREFIX:"/.well-known",WELLKNOWN_ACME_CHALLENGE_PREFIX:"/.well-known/acme-challenge",WELLKNOWN_DID_RESOLVER_PREFIX:"/.well-known/did.json",WELLKNOWN_OAUTH_SERVER:"/.well-known/oauth-authorization-server",WELLKNOWN_OPENID_SERVER:"/.well-known/openid-configuration",WELLKNOWN_BLACKLIST_PREFIX:"/.well-known/blacklist",WELLKNOWN_PING_PREFIX:"/.well-known/ping",WELLKNOWN_ANALYTICS_PREFIX:"/.well-known/analytics",WELLKNOWN_SERVICE_PATH_PREFIX:"/.well-known/service",WELLKNOWN_BLOCKLET_ADMIN_PATH:"/.well-known/service/admin",WELLKNOWN_BLOCKLET_USER_PATH:"/.well-known/service/user",WELLKNOWN_BLOCKLET_HEALTH_PATH:"/.well-known/service/health",WELLKNOWN_BLOCKLET_LOGO_PATH:"/.well-known/service/blocklet/logo",SLOT_FOR_IP_DNS_SITE:"888-888-888-888",DEFAULT_ADMIN_PATH:"/admin",WELLKNOWN_SERVER_ADMIN_PATH:"/.well-known/server/admin",DEFAULT_SERVICE_PATH:"/.abtnode/service",DEFAULT_HTTP_PORT:80,DEFAULT_HTTPS_PORT:443,MAX_UPLOAD_FILE_SIZE:100,DEFAULT_DAEMON_PORT:8089,MAX_NGINX_WORKER_CONNECTIONS:10240,BLOCKLET_PROXY_PATH_PREFIX:"/.blocklet/proxy",BLOCKLET_SITE_GROUP_SUFFIX:".blocklet-domain-group",DAY_IN_MS:rt,DAEMON_MAX_MEM_LIMIT_IN_MB:800,BLOCKLET_MAX_MEM_LIMIT_IN_MB:800,CERTIFICATE_EXPIRES_OFFSET:10*rt,ROUTING_RESPONSE_TYPES:_t,ROUTING_RULE_TYPES:Object.freeze({NONE:"none",DAEMON:"daemon",SERVICE:"service",BLOCKLET:"blocklet",REDIRECT:"redirect",GENERAL_REWRITE:"rewrite",GENERAL_PROXY:"general_proxy",DIRECT_RESPONSE:"direct_response",COMPONENT:"component"}),ROLES:Me,SERVER_ROLES:qe,BLOCKLET_ROLES:Ge,isBlockletRole:Je,isSystemRole:Ye,isBlockletMultipleTenantRole:Ze,AUTH_CERT_TYPE:nt,RBAC_CONFIG:tt,genPermissionName:(It,nn="access")=>`${nn}_${It.replace("_","-")}`,PASSPORT_STATUS:{VALID:"valid",REVOKED:"revoked",EXPIRED:"expired"},NODE_SERVICES:Be,DISK_ALERT_THRESHOLD_PERCENT:80,EVENTS:ot,WHO_CAN_ACCESS:at,WHO_CAN_ACCESS_PREFIX_ROLES:"roles:",GATEWAY_RATE_LIMIT:{min:5,max:500},GATEWAY_RATE_LIMIT_BURST_FACTOR:{min:1,max:10},GATEWAY_RATE_LIMIT_GLOBAL:{min:100,max:5e3},GATEWAY_RATE_LIMIT_METHODS:["GET","POST","PUT","DELETE","OPTIONS","HEAD"],STORE_DETAIL_PAGE_PATH_PREFIX:"/blocklets",MAX_USER_PAGE_SIZE:100,MAX_PAGE_SIZE:100,SERVER_STATUS:{RUNNING:1,STOPPED:2,START_FROM_CRASH:3},LOG_RETAIN_IN_DAYS:60,BLOCKLET_INSTALL_TYPE:{STORE:"store",URL:"url",DEV:"dev",CREATE:"create",RESTORE:"restore"},ROUTER_CACHE_GROUPS:{blockletProxy:{minSize:"1m",maxSize:"2g",period:"30d"}},MAIN_CHAIN_ENDPOINT:ct,USER_TYPE:ft,SERVER_CACHE_TTL:300*1e3,RBAC_CACHE_TTL:300*1e3,BLOCKLET_CACHE_TTL:300*1e3,SESSION_CACHE_TTL:3600,SESSION_TTL:7*86400,BACKUPS:ht,CHECK_UPDATE:yt,MONITOR_HISTORY_LENGTH:Ct,MONITOR_RECORD_INTERVAL_SEC:gt,INSTALL_ACTIONS:{INSTALL:"install",INSTALL_COMPONENT:"installComponent",UPGRADE_COMPONENT:"upgradeComponent"},COPYRIGHT_OWNER:"ArcBlock",FEDERATED:Tt,SESSION_TOKEN_STORAGE_KEY:"login_token",REFRESH_TOKEN_STORAGE_KEY:"refresh_token",SERVERLESS_BLOCKLET_DATA_RETENTION_DAYS:Bt,LAUNCH_SESSION_STATUS:Dt,UNOWNED_DID:"z".repeat(35),STUDIO_CONNECTED_STORE:"studio_connected_store",STUDIO_CONNECTED_AND_DEVELOPED:"studio_connected_and_developed",VERIFY_CODE_LENGTH:6,VERIFY_CODE_TTL:30*60*1e3,VERIFY_SEND_TTL:1*60*1e3,SECURITY_RULE_DEFAULT_ID:Ot,ACCESS_POLICY_PUBLIC:mt,ACCESS_POLICY_INVITED_ONLY:bt,ACCESS_POLICY_OWNER_ONLY:Et,ACCESS_POLICY_ADMIN_ONLY:Rt,RESPONSE_HEADER_POLICY_SIMPLE_CORS:St,RESPONSE_HEADER_POLICY_SECURITY_HEADER:At,RESPONSE_HEADER_POLICY_SIMPLE_CORS_AND_SECURITY_HEADER:kt,MFA_PROTECTED_METHODS:["deleteBlocklet","deleteComponent","rotateSessionKey","upgradeNodeVersion","removeUser","updateUserApproval","deleteRoutingRule","deleteDomainAlias","deleteCertificate","deleteAccessKey","deleteWebHook","deleteBlockletSecurityRule","deleteBlockletResponseHeaderPolicy","deleteBlockletAccessPolicy","configVault"],STUDIO_ALLOWED_METHODS:{getBlocklet:!0,createProject:!0,getProjects:!0,getProject:!0,updateProject:!0,deleteProject:!0,getReleases:!0,getRelease:!0,createRelease:!0,deleteRelease:!0,addBlockletStore:!0,deleteBlockletStore:!0,publishToStore:!0,connectToStore:!0,connectByStudio:!0,disconnectFromStore:!0,getSelectedResources:!0,updateSelectedResources:!0,getBlockletRuntimeHistory:!0,checkDomains:!0,isDidDomain:!0},SKIP_ACCESS_VERIFY_METHODS:{makeAllNotificationsAsRead:!0,readNotifications:!0,unreadNotifications:!0,launchBlockletByLauncher:!0,launchBlockletWithoutWallet:!0,backupBlocklet:!0,destroySelf:!0,connectToAigne:!0,disconnectToAigne:!0,verifyAigneConnection:!0,connectToEndpoint:!0,disconnectFromEndpoint:!0},NOTIFICATION_SEND_STATUS:{PENDING:0,SENT:1,FAILED:2},NOTIFICATION_SEND_FAILED_REASON:{USER_DISABLED:"user_disabled",CHANNEL_UNAVAILABLE:"channel_unavailable",CHANNEL_DISABLED:"channel_disabled",NOT_ONLINE:"not_online"},NOTIFICATION_SEND_CHANNEL:{WALLET:"app",EMAIL:"email",PUSH:"push",WEBHOOK:"webhook"},BLACKLIST_SCOPE:{ROUTER:"router"},EVENT_BUS_EVENT:wt,NAVIGATION_I18N_FIELDS:vt,PASSPORT_SOURCE:{INVITE:"invite",ISSUE:"issue",RECOVER:"recover",TRUSTED:"trusted"},PASSPORT_LOG_ACTION:{ISSUE:"issue",REVOKE:"revoke",APPROVE:"approve",RECOVER:"recover",LOGIN:"login",EXPIRED:"expired",USED:"used"},PASSPORT_ISSUE_ACTION:{ISSUE_ON_INVITE:"issueOnInvite",ISSUE_ON_LAUNCH:"issueOnLaunch",ISSUE_ON_KYC:"issueOnKyc",ISSUE_ON_RECOVER:"issueOnRecover",ISSUE_ON_ROTATE_KEY_PAIR:"issueOnRotateKeyPair",ISSUE_ON_TRANSFER:"issueOnTransferPassportForBindWallet",ISSUE_ON_BLOCKLET_START:"issueOnBlockletStart",ISSUE_ON_RECEIVE_TRANSFER_APP_OWNER:"receiveTransferAppOwner",ISSUE_ON_AUTH0:"issueOnAuth0",ISSUE_ON_SETUP_APP_OWNER:"issueOnLaunchSetupAppOwner",ISSUE_ON_EXCHANGE_PASSPORT:"issueOnExchangePassport",ISSUE_ON_TRUST_PASSPORT:"issueOnTrustPassport"},OAUTH_ENDPOINTS:{AUTHORIZATION:"/authorize",TOKEN:"/token",REGISTRATION:"/register",REVOCATION:"/revoke",USERINFO:"/userinfo",JWKS:"/jwks",LOGOUT:"/logout"},OAUTH_CODE_TTL:10*60,OAUTH_ACCESS_TOKEN_TTL:24*60*60,OAUTH_REFRESH_TOKEN_TTL:30*24*60*60,OAUTH_CLIENT_SECRET_TTL:30*24*60*60,OAUTH_SCOPES:{"profile:read":"Read your profile (name, email, avatar)","blocklet:read":"Read blocklet information and database","blocklet:write":"Manage blocklet components and configuration"},AIGNE_CONFIG_ENCRYPT_SALT:"AIGNE_CONFIG_ENCRYPT_SALT",CSP_OFFICIAL_SOURCES:["https://*.arcblock.io","https://*.didnames.io","https://*.didwallet.io","https://*.abtnetwork.io","https://*.didspaces.com","https://*.blocklet.dev","https://domain.didlabs.org"],CSP_SYSTEM_SOURCES:["https://*.did.abtnet.io","https://*.ip.abtnet.io","https://*.slp.abtnet.io","https://*.did.life","https://*.did.rocks"],CSP_THIRD_PARTY_SOURCES:["https://cdnjs.cloudflare.com","https://js.stripe.com","https://ipapi.co","https://unpkg.com"],CSP_ICONIFY_SOURCES:["https://*.simplesvg.com","https://*.iconify.design","https://*.unisvg.com"]}),constant$3}var constantExports$1=requireConstant$2(),Action;(function(Be){Be.Pop="POP",Be.Push="PUSH",Be.Replace="REPLACE"})(Action||(Action={}));var readOnly=function(Be){return Be},BeforeUnloadEventType="beforeunload",PopStateEventType="popstate";function createBrowserHistory(Be){Be===void 0&&(Be={});var Me=Be,qe=Me.window,He=qe===void 0?document.defaultView:qe,Ge=He.history;function Je(){var Tt=He.location,_t=Tt.pathname,Bt=Tt.search,Dt=Tt.hash,Ot=Ge.state||{};return[Ot.idx,readOnly({pathname:_t,search:Bt,hash:Dt,state:Ot.usr||null,key:Ot.key||"default"})]}var Ye=null;function Qe(){if(Ye)at.call(Ye),Ye=null;else{var Tt=Action.Pop,_t=Je(),Bt=_t[0],Dt=_t[1];if(at.length){if(Bt!=null){var Ot=tt-Bt;Ot&&(Ye={action:Tt,location:Dt,retry:function(){gt(Ot*-1)}},gt(Ot))}}else ft(Tt)}}He.addEventListener(PopStateEventType,Qe);var Ze=Action.Pop,nt=Je(),tt=nt[0],rt=nt[1],ot=createEvents(),at=createEvents();tt==null&&(tt=0,Ge.replaceState(_extends$2({},Ge.state,{idx:tt}),""));function lt(Tt){return typeof Tt=="string"?Tt:createPath(Tt)}function ut(Tt,_t){return _t===void 0&&(_t=null),readOnly(_extends$2({pathname:rt.pathname,hash:"",search:""},typeof Tt=="string"?parsePath$1(Tt):Tt,{state:_t,key:createKey()}))}function dt(Tt,_t){return[{usr:Tt.state,key:Tt.key,idx:_t},lt(Tt)]}function ct(Tt,_t,Bt){return!at.length||(at.call({action:Tt,location:_t,retry:Bt}),!1)}function ft(Tt){Ze=Tt;var _t=Je();tt=_t[0],rt=_t[1],ot.call({action:Ze,location:rt})}function ht(Tt,_t){var Bt=Action.Push,Dt=ut(Tt,_t);function Ot(){ht(Tt,_t)}if(ct(Bt,Dt,Ot)){var mt=dt(Dt,tt+1),bt=mt[0],Et=mt[1];try{Ge.pushState(bt,"",Et)}catch{He.location.assign(Et)}ft(Bt)}}function yt(Tt,_t){var Bt=Action.Replace,Dt=ut(Tt,_t);function Ot(){yt(Tt,_t)}if(ct(Bt,Dt,Ot)){var mt=dt(Dt,tt),bt=mt[0],Et=mt[1];Ge.replaceState(bt,"",Et),ft(Bt)}}function gt(Tt){Ge.go(Tt)}var Ct={get action(){return Ze},get location(){return rt},createHref:lt,push:ht,replace:yt,go:gt,back:function(){gt(-1)},forward:function(){gt(1)},listen:function(_t){return ot.push(_t)},block:function(_t){var Bt=at.push(_t);return at.length===1&&He.addEventListener(BeforeUnloadEventType,promptBeforeUnload),function(){Bt(),at.length||He.removeEventListener(BeforeUnloadEventType,promptBeforeUnload)}}};return Ct}function promptBeforeUnload(Be){Be.preventDefault(),Be.returnValue=""}function createEvents(){var Be=[];return{get length(){return Be.length},push:function(qe){return Be.push(qe),function(){Be=Be.filter(function(He){return He!==qe})}},call:function(qe){Be.forEach(function(He){return He&&He(qe)})}}}function createKey(){return Math.random().toString(36).substr(2,8)}function createPath(Be){var Me=Be.pathname,qe=Me===void 0?"/":Me,He=Be.search,Ge=He===void 0?"":He,Je=Be.hash,Ye=Je===void 0?"":Je;return Ge&&Ge!=="?"&&(qe+=Ge.charAt(0)==="?"?Ge:"?"+Ge),Ye&&Ye!=="#"&&(qe+=Ye.charAt(0)==="#"?Ye:"#"+Ye),qe}function parsePath$1(Be){var Me={};if(Be){var qe=Be.indexOf("#");qe>=0&&(Me.hash=Be.substr(qe),Be=Be.substr(0,qe));var He=Be.indexOf("?");He>=0&&(Me.search=Be.substr(He),Be=Be.substr(0,He)),Be&&(Me.pathname=Be)}return Me}const history$1=createBrowserHistory();function noop$1(){}const defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations(Be,Me){const qe={};!Be.hFlip!=!Me.hFlip&&(qe.hFlip=!0),!Be.vFlip!=!Me.vFlip&&(qe.vFlip=!0);const He=((Be.rotate||0)+(Me.rotate||0))%4;return He&&(qe.rotate=He),qe}function mergeIconData(Be,Me){const qe=mergeIconTransformations(Be,Me);for(const He in defaultExtendedIconProps)He in defaultIconTransformations?He in Be&&!(He in qe)&&(qe[He]=defaultIconTransformations[He]):He in Me?qe[He]=Me[He]:He in Be&&(qe[He]=Be[He]);return qe}function getIconsTree(Be,Me){const qe=Be.icons,He=Be.aliases||Object.create(null),Ge=Object.create(null);function Je(Ye){if(qe[Ye])return Ge[Ye]=[];if(!(Ye in Ge)){Ge[Ye]=null;const Qe=He[Ye]&&He[Ye].parent,Ze=Qe&&Je(Qe);Ze&&(Ge[Ye]=[Qe].concat(Ze))}return Ge[Ye]}return Object.keys(qe).concat(Object.keys(He)).forEach(Je),Ge}function internalGetIconData(Be,Me,qe){const He=Be.icons,Ge=Be.aliases||Object.create(null);let Je={};function Ye(Qe){Je=mergeIconData(He[Qe]||Ge[Qe],Je)}return Ye(Me),qe.forEach(Ye),mergeIconData(Be,Je)}function parseIconSet(Be,Me){const qe=[];if(typeof Be!="object"||typeof Be.icons!="object")return qe;Be.not_found instanceof Array&&Be.not_found.forEach(Ge=>{Me(Ge,null),qe.push(Ge)});const He=getIconsTree(Be);for(const Ge in He){const Je=He[Ge];Je&&(Me(Ge,internalGetIconData(Be,Ge,Je)),qe.push(Ge))}return qe}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps(Be,Me){for(const qe in Me)if(qe in Be&&typeof Be[qe]!=typeof Me[qe])return!1;return!0}function quicklyValidateIconSet(Be){if(typeof Be!="object"||Be===null)return null;const Me=Be;if(typeof Me.prefix!="string"||!Be.icons||typeof Be.icons!="object"||!checkOptionalProps(Be,optionalPropertyDefaults))return null;const qe=Me.icons;for(const Ge in qe){const Je=qe[Ge];if(!Ge||typeof Je.body!="string"||!checkOptionalProps(Je,defaultExtendedIconProps))return null}const He=Me.aliases||Object.create(null);for(const Ge in He){const Je=He[Ge],Ye=Je.parent;if(!Ge||typeof Ye!="string"||!qe[Ye]&&!He[Ye]||!checkOptionalProps(Je,defaultExtendedIconProps))return null}return Me}const matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(Be,Me,qe,He="")=>{const Ge=Be.split(":");if(Be.slice(0,1)==="@"){if(Ge.length<2||Ge.length>3)return null;He=Ge.shift().slice(1)}if(Ge.length>3||!Ge.length)return null;if(Ge.length>1){const Qe=Ge.pop(),Ze=Ge.pop(),nt={provider:Ge.length>0?Ge[0]:He,prefix:Ze,name:Qe};return Me&&!validateIconName(nt)?null:nt}const Je=Ge[0],Ye=Je.split("-");if(Ye.length>1){const Qe={provider:He,prefix:Ye.shift(),name:Ye.join("-")};return Me&&!validateIconName(Qe)?null:Qe}if(qe&&He===""){const Qe={provider:He,prefix:"",name:Je};return Me&&!validateIconName(Qe,qe)?null:Qe}return null},validateIconName=(Be,Me)=>Be?!!((Me&&Be.prefix===""||Be.prefix)&&Be.name):!1,dataStorage=Object.create(null);function newStorage(Be,Me){return{provider:Be,prefix:Me,icons:Object.create(null),missing:new Set}}function getStorage(Be,Me){const qe=dataStorage[Be]||(dataStorage[Be]=Object.create(null));return qe[Me]||(qe[Me]=newStorage(Be,Me))}function addIconSet(Be,Me){return quicklyValidateIconSet(Me)?parseIconSet(Me,(qe,He)=>{He?Be.icons[qe]=He:Be.missing.add(qe)}):[]}function addIconToStorage(Be,Me,qe){try{if(typeof qe.body=="string")return Be.icons[Me]={...qe},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames(Be){return typeof Be=="boolean"&&(simpleNames=Be),simpleNames}function getIconData(Be){const Me=typeof Be=="string"?stringToIcon(Be,!0,simpleNames):Be;if(Me){const qe=getStorage(Me.provider,Me.prefix),He=Me.name;return qe.icons[He]||(qe.missing.has(He)?null:void 0)}}function addIcon(Be,Me){const qe=stringToIcon(Be,!0,simpleNames);if(!qe)return!1;const He=getStorage(qe.provider,qe.prefix);return Me?addIconToStorage(He,qe.name,Me):(He.missing.add(qe.name),!0)}function addCollection(Be,Me){if(typeof Be!="object")return!1;if(typeof Me!="string"&&(Me=Be.provider||""),simpleNames&&!Me&&!Be.prefix){let Ge=!1;return quicklyValidateIconSet(Be)&&(Be.prefix="",parseIconSet(Be,(Je,Ye)=>{addIcon(Je,Ye)&&(Ge=!0)})),Ge}const qe=Be.prefix;if(!validateIconName({prefix:qe,name:"a"}))return!1;const He=getStorage(Me,qe);return!!addIconSet(He,Be)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(Be,Me,qe){if(Me===1)return Be;if(qe=qe||100,typeof Be=="number")return Math.ceil(Be*Me*qe)/qe;if(typeof Be!="string")return Be;const He=Be.split(unitsSplit);if(He===null||!He.length)return Be;const Ge=[];let Je=He.shift(),Ye=unitsTest.test(Je);for(;;){if(Ye){const Qe=parseFloat(Je);isNaN(Qe)?Ge.push(Je):Ge.push(Math.ceil(Qe*Me*qe)/qe)}else Ge.push(Je);if(Je=He.shift(),Je===void 0)return Ge.join("");Ye=!Ye}}function splitSVGDefs(Be,Me="defs"){let qe="";const He=Be.indexOf("<"+Me);for(;He>=0;){const Ge=Be.indexOf(">",He),Je=Be.indexOf("</"+Me);if(Ge===-1||Je===-1)break;const Ye=Be.indexOf(">",Je);if(Ye===-1)break;qe+=Be.slice(Ge+1,Je).trim(),Be=Be.slice(0,He).trim()+Be.slice(Ye+1)}return{defs:qe,content:Be}}function mergeDefsAndContent(Be,Me){return Be?"<defs>"+Be+"</defs>"+Me:Me}function wrapSVGContent(Be,Me,qe){const He=splitSVGDefs(Be);return mergeDefsAndContent(He.defs,Me+He.content+qe)}const isUnsetKeyword=Be=>Be==="unset"||Be==="undefined"||Be==="none";function iconToSVG(Be,Me){const qe={...defaultIconProps,...Be},He={...defaultIconCustomisations,...Me},Ge={left:qe.left,top:qe.top,width:qe.width,height:qe.height};let Je=qe.body;[qe,He].forEach(ut=>{const dt=[],ct=ut.hFlip,ft=ut.vFlip;let ht=ut.rotate;ct?ft?ht+=2:(dt.push("translate("+(Ge.width+Ge.left).toString()+" "+(0-Ge.top).toString()+")"),dt.push("scale(-1 1)"),Ge.top=Ge.left=0):ft&&(dt.push("translate("+(0-Ge.left).toString()+" "+(Ge.height+Ge.top).toString()+")"),dt.push("scale(1 -1)"),Ge.top=Ge.left=0);let yt;switch(ht<0&&(ht-=Math.floor(ht/4)*4),ht=ht%4,ht){case 1:yt=Ge.height/2+Ge.top,dt.unshift("rotate(90 "+yt.toString()+" "+yt.toString()+")");break;case 2:dt.unshift("rotate(180 "+(Ge.width/2+Ge.left).toString()+" "+(Ge.height/2+Ge.top).toString()+")");break;case 3:yt=Ge.width/2+Ge.left,dt.unshift("rotate(-90 "+yt.toString()+" "+yt.toString()+")");break}ht%2===1&&(Ge.left!==Ge.top&&(yt=Ge.left,Ge.left=Ge.top,Ge.top=yt),Ge.width!==Ge.height&&(yt=Ge.width,Ge.width=Ge.height,Ge.height=yt)),dt.length&&(Je=wrapSVGContent(Je,'<g transform="'+dt.join(" ")+'">',"</g>"))});const Ye=He.width,Qe=He.height,Ze=Ge.width,nt=Ge.height;let tt,rt;Ye===null?(rt=Qe===null?"1em":Qe==="auto"?nt:Qe,tt=calculateSize(rt,Ze/nt)):(tt=Ye==="auto"?Ze:Ye,rt=Qe===null?calculateSize(tt,nt/Ze):Qe==="auto"?nt:Qe);const ot={},at=(ut,dt)=>{isUnsetKeyword(dt)||(ot[ut]=dt.toString())};at("width",tt),at("height",rt);const lt=[Ge.left,Ge.top,Ze,nt];return ot.viewBox=lt.join(" "),{attributes:ot,viewBox:lt,body:Je}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(Be,Me=randomPrefix){const qe=[];let He;for(;He=regex.exec(Be);)qe.push(He[1]);if(!qe.length)return Be;const Ge="suffix"+(Math.random()*16777216|Date.now()).toString(16);return qe.forEach(Je=>{const Ye=typeof Me=="function"?Me(Je):Me+(counter++).toString(),Qe=Je.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");Be=Be.replace(new RegExp('([#;"])('+Qe+')([")]|\\.[a-z])',"g"),"$1"+Ye+Ge+"$3")}),Be=Be.replace(new RegExp(Ge,"g"),""),Be}const storage=Object.create(null);function setAPIModule(Be,Me){storage[Be]=Me}function getAPIModule(Be){return storage[Be]||storage[""]}function createAPIConfig(Be){let Me;if(typeof Be.resources=="string")Me=[Be.resources];else if(Me=Be.resources,!(Me instanceof Array)||!Me.length)return null;return{resources:Me,path:Be.path||"/",maxURL:Be.maxURL||500,rotate:Be.rotate||750,timeout:Be.timeout||5e3,random:Be.random===!0,index:Be.index||0,dataAfterTimeout:Be.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(Be,Me){const qe=createAPIConfig(Me);return qe===null?!1:(configStorage[Be]=qe,!0)}function getAPIConfig(Be){return configStorage[Be]}const detectFetch=()=>{let Be;try{if(Be=fetch,typeof Be=="function")return Be}catch{}};let fetchModule=detectFetch();function calculateMaxLength(Be,Me){const qe=getAPIConfig(Be);if(!qe)return 0;let He;if(!qe.maxURL)He=0;else{let Ge=0;qe.resources.forEach(Ye=>{Ge=Math.max(Ge,Ye.length)});const Je=Me+".json?icons=";He=qe.maxURL-Ge-qe.path.length-Je.length}return He}function shouldAbort(Be){return Be===404}const prepare=(Be,Me,qe)=>{const He=[],Ge=calculateMaxLength(Be,Me),Je="icons";let Ye={type:Je,provider:Be,prefix:Me,icons:[]},Qe=0;return qe.forEach((Ze,nt)=>{Qe+=Ze.length+1,Qe>=Ge&&nt>0&&(He.push(Ye),Ye={type:Je,provider:Be,prefix:Me,icons:[]},Qe=Ze.length),Ye.icons.push(Ze)}),He.push(Ye),He};function getPath(Be){if(typeof Be=="string"){const Me=getAPIConfig(Be);if(Me)return Me.path}return"/"}const send=(Be,Me,qe)=>{if(!fetchModule){qe("abort",424);return}let He=getPath(Me.provider);switch(Me.type){case"icons":{const Je=Me.prefix,Qe=Me.icons.join(","),Ze=new URLSearchParams({icons:Qe});He+=Je+".json?"+Ze.toString();break}case"custom":{const Je=Me.uri;He+=Je.slice(0,1)==="/"?Je.slice(1):Je;break}default:qe("abort",400);return}let Ge=503;fetchModule(Be+He).then(Je=>{const Ye=Je.status;if(Ye!==200){setTimeout(()=>{qe(shouldAbort(Ye)?"abort":"next",Ye)});return}return Ge=501,Je.json()}).then(Je=>{if(typeof Je!="object"||Je===null){setTimeout(()=>{Je===404?qe("abort",Je):qe("next",Ge)});return}setTimeout(()=>{qe("success",Je)})}).catch(()=>{qe("next",Ge)})},fetchAPIModule={prepare,send};function sortIcons(Be){const Me={loaded:[],missing:[],pending:[]},qe=Object.create(null);Be.sort((Ge,Je)=>Ge.provider!==Je.provider?Ge.provider.localeCompare(Je.provider):Ge.prefix!==Je.prefix?Ge.prefix.localeCompare(Je.prefix):Ge.name.localeCompare(Je.name));let He={provider:"",prefix:"",name:""};return Be.forEach(Ge=>{if(He.name===Ge.name&&He.prefix===Ge.prefix&&He.provider===Ge.provider)return;He=Ge;const Je=Ge.provider,Ye=Ge.prefix,Qe=Ge.name,Ze=qe[Je]||(qe[Je]=Object.create(null)),nt=Ze[Ye]||(Ze[Ye]=getStorage(Je,Ye));let tt;Qe in nt.icons?tt=Me.loaded:Ye===""||nt.missing.has(Qe)?tt=Me.missing:tt=Me.pending;const rt={provider:Je,prefix:Ye,name:Qe};tt.push(rt)}),Me}function removeCallback(Be,Me){Be.forEach(qe=>{const He=qe.loaderCallbacks;He&&(qe.loaderCallbacks=He.filter(Ge=>Ge.id!==Me))})}function updateCallbacks(Be){Be.pendingCallbacksFlag||(Be.pendingCallbacksFlag=!0,setTimeout(()=>{Be.pendingCallbacksFlag=!1;const Me=Be.loaderCallbacks?Be.loaderCallbacks.slice(0):[];if(!Me.length)return;let qe=!1;const He=Be.provider,Ge=Be.prefix;Me.forEach(Je=>{const Ye=Je.icons,Qe=Ye.pending.length;Ye.pending=Ye.pending.filter(Ze=>{if(Ze.prefix!==Ge)return!0;const nt=Ze.name;if(Be.icons[nt])Ye.loaded.push({provider:He,prefix:Ge,name:nt});else if(Be.missing.has(nt))Ye.missing.push({provider:He,prefix:Ge,name:nt});else return qe=!0,!0;return!1}),Ye.pending.length!==Qe&&(qe||removeCallback([Be],Je.id),Je.callback(Ye.loaded.slice(0),Ye.missing.slice(0),Ye.pending.slice(0),Je.abort))})}))}let idCounter=0;function storeCallback(Be,Me,qe){const He=idCounter++,Ge=removeCallback.bind(null,qe,He);if(!Me.pending.length)return Ge;const Je={id:He,icons:Me,callback:Be,abort:Ge};return qe.forEach(Ye=>{(Ye.loaderCallbacks||(Ye.loaderCallbacks=[])).push(Je)}),Ge}function listToIcons(Be,Me=!0,qe=!1){const He=[];return Be.forEach(Ge=>{const Je=typeof Ge=="string"?stringToIcon(Ge,Me,qe):Ge;Je&&He.push(Je)}),He}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(Be,Me,qe,He){const Ge=Be.resources.length,Je=Be.random?Math.floor(Math.random()*Ge):Be.index;let Ye;if(Be.random){let Ct=Be.resources.slice(0);for(Ye=[];Ct.length>1;){const Tt=Math.floor(Math.random()*Ct.length);Ye.push(Ct[Tt]),Ct=Ct.slice(0,Tt).concat(Ct.slice(Tt+1))}Ye=Ye.concat(Ct)}else Ye=Be.resources.slice(Je).concat(Be.resources.slice(0,Je));const Qe=Date.now();let Ze="pending",nt=0,tt,rt=null,ot=[],at=[];typeof He=="function"&&at.push(He);function lt(){rt&&(clearTimeout(rt),rt=null)}function ut(){Ze==="pending"&&(Ze="aborted"),lt(),ot.forEach(Ct=>{Ct.status==="pending"&&(Ct.status="aborted")}),ot=[]}function dt(Ct,Tt){Tt&&(at=[]),typeof Ct=="function"&&at.push(Ct)}function ct(){return{startTime:Qe,payload:Me,status:Ze,queriesSent:nt,queriesPending:ot.length,subscribe:dt,abort:ut}}function ft(){Ze="failed",at.forEach(Ct=>{Ct(void 0,tt)})}function ht(){ot.forEach(Ct=>{Ct.status==="pending"&&(Ct.status="aborted")}),ot=[]}function yt(Ct,Tt,_t){const Bt=Tt!=="success";switch(ot=ot.filter(Dt=>Dt!==Ct),Ze){case"pending":break;case"failed":if(Bt||!Be.dataAfterTimeout)return;break;default:return}if(Tt==="abort"){tt=_t,ft();return}if(Bt){tt=_t,ot.length||(Ye.length?gt():ft());return}if(lt(),ht(),!Be.random){const Dt=Be.resources.indexOf(Ct.resource);Dt!==-1&&Dt!==Be.index&&(Be.index=Dt)}Ze="completed",at.forEach(Dt=>{Dt(_t)})}function gt(){if(Ze!=="pending")return;lt();const Ct=Ye.shift();if(Ct===void 0){if(ot.length){rt=setTimeout(()=>{lt(),Ze==="pending"&&(ht(),ft())},Be.timeout);return}ft();return}const Tt={status:"pending",resource:Ct,callback:(_t,Bt)=>{yt(Tt,_t,Bt)}};ot.push(Tt),nt++,rt=setTimeout(gt,Be.rotate),qe(Ct,Me,Tt.callback)}return setTimeout(gt),ct}function initRedundancy(Be){const Me={...defaultConfig,...Be};let qe=[];function He(){qe=qe.filter(Qe=>Qe().status==="pending")}function Ge(Qe,Ze,nt){const tt=sendQuery(Me,Qe,Ze,(rt,ot)=>{He(),nt&&nt(rt,ot)});return qe.push(tt),tt}function Je(Qe){return qe.find(Ze=>Qe(Ze))||null}return{query:Ge,find:Je,setIndex:Qe=>{Me.index=Qe},getIndex:()=>Me.index,cleanup:He}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(Be){if(!redundancyCache[Be]){const Me=getAPIConfig(Be);if(!Me)return;const qe=initRedundancy(Me),He={config:Me,redundancy:qe};redundancyCache[Be]=He}return redundancyCache[Be]}function sendAPIQuery(Be,Me,qe){let He,Ge;if(typeof Be=="string"){const Je=getAPIModule(Be);if(!Je)return qe(void 0,424),emptyCallback$1;Ge=Je.send;const Ye=getRedundancyCache(Be);Ye&&(He=Ye.redundancy)}else{const Je=createAPIConfig(Be);if(Je){He=initRedundancy(Je);const Ye=Be.resources?Be.resources[0]:"",Qe=getAPIModule(Ye);Qe&&(Ge=Qe.send)}}return!He||!Ge?(qe(void 0,424),emptyCallback$1):He.query(Me,Ge,qe)().abort}function emptyCallback(){}function loadedNewIcons(Be){Be.iconsLoaderFlag||(Be.iconsLoaderFlag=!0,setTimeout(()=>{Be.iconsLoaderFlag=!1,updateCallbacks(Be)}))}function checkIconNamesForAPI(Be){const Me=[],qe=[];return Be.forEach(He=>{(He.match(matchIconName)?Me:qe).push(He)}),{valid:Me,invalid:qe}}function parseLoaderResponse(Be,Me,qe){function He(){const Ge=Be.pendingIcons;Me.forEach(Je=>{Ge&&Ge.delete(Je),Be.icons[Je]||Be.missing.add(Je)})}if(qe&&typeof qe=="object")try{if(!addIconSet(Be,qe).length){He();return}}catch(Ge){console.error(Ge)}He(),loadedNewIcons(Be)}function parsePossiblyAsyncResponse(Be,Me){Be instanceof Promise?Be.then(qe=>{Me(qe)}).catch(()=>{Me(null)}):Me(Be)}function loadNewIcons(Be,Me){Be.iconsToLoad?Be.iconsToLoad=Be.iconsToLoad.concat(Me).sort():Be.iconsToLoad=Me,Be.iconsQueueFlag||(Be.iconsQueueFlag=!0,setTimeout(()=>{Be.iconsQueueFlag=!1;const{provider:qe,prefix:He}=Be,Ge=Be.iconsToLoad;if(delete Be.iconsToLoad,!Ge||!Ge.length)return;const Je=Be.loadIcon;if(Be.loadIcons&&(Ge.length>1||!Je)){parsePossiblyAsyncResponse(Be.loadIcons(Ge,He,qe),tt=>{parseLoaderResponse(Be,Ge,tt)});return}if(Je){Ge.forEach(tt=>{const rt=Je(tt,He,qe);parsePossiblyAsyncResponse(rt,ot=>{const at=ot?{prefix:He,icons:{[tt]:ot}}:null;parseLoaderResponse(Be,[tt],at)})});return}const{valid:Ye,invalid:Qe}=checkIconNamesForAPI(Ge);if(Qe.length&&parseLoaderResponse(Be,Qe,null),!Ye.length)return;const Ze=He.match(matchIconName)?getAPIModule(qe):null;if(!Ze){parseLoaderResponse(Be,Ye,null);return}Ze.prepare(qe,He,Ye).forEach(tt=>{sendAPIQuery(qe,tt,rt=>{parseLoaderResponse(Be,tt.icons,rt)})})}))}const loadIcons=(Be,Me)=>{const qe=listToIcons(Be,!0,allowSimpleNames()),He=sortIcons(qe);if(!He.pending.length){let Ze=!0;return Me&&setTimeout(()=>{Ze&&Me(He.loaded,He.missing,He.pending,emptyCallback)}),()=>{Ze=!1}}const Ge=Object.create(null),Je=[];let Ye,Qe;return He.pending.forEach(Ze=>{const{provider:nt,prefix:tt}=Ze;if(tt===Qe&&nt===Ye)return;Ye=nt,Qe=tt,Je.push(getStorage(nt,tt));const rt=Ge[nt]||(Ge[nt]=Object.create(null));rt[tt]||(rt[tt]=[])}),He.pending.forEach(Ze=>{const{provider:nt,prefix:tt,name:rt}=Ze,ot=getStorage(nt,tt),at=ot.pendingIcons||(ot.pendingIcons=new Set);at.has(rt)||(at.add(rt),Ge[nt][tt].push(rt))}),Je.forEach(Ze=>{const nt=Ge[Ze.provider][Ze.prefix];nt.length&&loadNewIcons(Ze,nt)}),Me?storeCallback(Me,He,Je):emptyCallback},loadIcon=Be=>new Promise((Me,qe)=>{const He=typeof Be=="string"?stringToIcon(Be,!0):Be;if(!He){qe(Be);return}loadIcons([He||Be],Ge=>{if(Ge.length&&He){const Je=getIconData(He);if(Je){Me({...defaultIconProps,...Je});return}}qe(Be)})});function mergeCustomisations(Be,Me){const qe={...Be};for(const He in Me){const Ge=Me[He],Je=typeof Ge;He in defaultIconSizeCustomisations?(Ge===null||Ge&&(Je==="string"||Je==="number"))&&(qe[He]=Ge):Je===typeof qe[He]&&(qe[He]=He==="rotate"?Ge%4:Ge)}return qe}const separator=/[\s,]+/;function flipFromString(Be,Me){Me.split(separator).forEach(qe=>{switch(qe.trim()){case"horizontal":Be.hFlip=!0;break;case"vertical":Be.vFlip=!0;break}})}function rotateFromString(Be,Me=0){const qe=Be.replace(/^-?[0-9.]*/,"");function He(Ge){for(;Ge<0;)Ge+=4;return Ge%4}if(qe===""){const Ge=parseInt(Be);return isNaN(Ge)?0:He(Ge)}else if(qe!==Be){let Ge=0;switch(qe){case"%":Ge=25;break;case"deg":Ge=90}if(Ge){let Je=parseFloat(Be.slice(0,Be.length-qe.length));return isNaN(Je)?0:(Je=Je/Ge,Je%1===0?He(Je):0)}}return Me}function iconToHTML(Be,Me){let qe=Be.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const He in Me)qe+=" "+He+'="'+Me[He]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+qe+">"+Be+"</svg>"}function encodeSVGforURL(Be){return Be.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData(Be){return"data:image/svg+xml,"+encodeSVGforURL(Be)}function svgToURL(Be){return'url("'+svgToData(Be)+'")'}let policy;function createPolicy(){try{policy=window.trustedTypes.createPolicy("iconify",{createHTML:Be=>Be})}catch{policy=null}}function cleanUpInnerHTML(Be){return policy===void 0&&createPolicy(),policy?policy.createHTML(Be):Be}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={WebkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const Be in propsToAddTo){const Me=propsToAddTo[Be];for(const qe in propsToAdd)Me[Be+qe]=propsToAdd[qe]}const inlineDefaults={...defaultExtendedIconCustomisations,inline:!0};function fixSize(Be){return Be+(Be.match(/^[-0-9.]+$/)?"px":"")}const render=(Be,Me,qe)=>{const He=Me.inline?inlineDefaults:defaultExtendedIconCustomisations,Ge=mergeCustomisations(He,Me),Je=Me.mode||"svg",Ye={},Qe=Me.style||{},Ze={...Je==="svg"?svgDefaults:{}};if(qe){const dt=stringToIcon(qe,!1,!0);if(dt){const ct=["iconify"],ft=["provider","prefix"];for(const ht of ft)dt[ht]&&ct.push("iconify--"+dt[ht]);Ze.className=ct.join(" ")}}for(let dt in Me){const ct=Me[dt];if(ct!==void 0)switch(dt){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":break;case"_ref":Ze.ref=ct;break;case"className":Ze[dt]=(Ze[dt]?Ze[dt]+" ":"")+ct;break;case"inline":case"hFlip":case"vFlip":Ge[dt]=ct===!0||ct==="true"||ct===1;break;case"flip":typeof ct=="string"&&flipFromString(Ge,ct);break;case"color":Ye.color=ct;break;case"rotate":typeof ct=="string"?Ge[dt]=rotateFromString(ct):typeof ct=="number"&&(Ge[dt]=ct);break;case"ariaHidden":case"aria-hidden":ct!==!0&&ct!=="true"&&delete Ze["aria-hidden"];break;default:He[dt]===void 0&&(Ze[dt]=ct)}}const nt=iconToSVG(Be,Ge),tt=nt.attributes;if(Ge.inline&&(Ye.verticalAlign="-0.125em"),Je==="svg"){Ze.style={...Ye,...Qe},Object.assign(Ze,tt);let dt=0,ct=Me.id;return typeof ct=="string"&&(ct=ct.replace(/-/g,"_")),Ze.dangerouslySetInnerHTML={__html:cleanUpInnerHTML(replaceIDs(nt.body,ct?()=>ct+"ID"+dt++:"iconifyReact"))},reactExports.createElement("svg",Ze)}const{body:rt,width:ot,height:at}=Be,lt=Je==="mask"||(Je==="bg"?!1:rt.indexOf("currentColor")!==-1),ut=iconToHTML(rt,{...tt,width:ot+"",height:at+""});return Ze.style={...Ye,"--svg":svgToURL(ut),width:fixSize(tt.width),height:fixSize(tt.height),...commonProps,...lt?monotoneProps:coloredProps,...Qe},reactExports.createElement("span",Ze)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){const Be=window;if(Be.IconifyPreload!==void 0){const Me=Be.IconifyPreload,qe="Invalid IconifyPreload syntax.";typeof Me=="object"&&Me!==null&&(Me instanceof Array?Me:[Me]).forEach(He=>{try{(typeof He!="object"||He===null||He instanceof Array||typeof He.icons!="object"||typeof He.prefix!="string"||!addCollection(He))&&console.error(qe)}catch{console.error(qe)}})}if(Be.IconifyProviders!==void 0){const Me=Be.IconifyProviders;if(typeof Me=="object"&&Me!==null)for(let qe in Me){const He="IconifyProviders["+qe+"] is invalid.";try{const Ge=Me[qe];if(typeof Ge!="object"||!Ge||Ge.resources===void 0)continue;addAPIProvider(qe,Ge)||console.error(He)}catch{console.error(He)}}}}function IconComponent(Be){const[Me,qe]=reactExports.useState(!!Be.ssr),[He,Ge]=reactExports.useState({});function Je(at){if(at){const lt=Be.icon;if(typeof lt=="object")return{name:"",data:lt};const ut=getIconData(lt);if(ut)return{name:lt,data:ut}}return{name:""}}const[Ye,Qe]=reactExports.useState(Je(!!Be.ssr));function Ze(){const at=He.callback;at&&(at(),Ge({}))}function nt(at){if(JSON.stringify(Ye)!==JSON.stringify(at))return Ze(),Qe(at),!0}function tt(){var at;const lt=Be.icon;if(typeof lt=="object"){nt({name:"",data:lt});return}const ut=getIconData(lt);if(nt({name:lt,data:ut}))if(ut===void 0){const dt=loadIcons([lt],tt);Ge({callback:dt})}else ut&&((at=Be.onLoad)===null||at===void 0||at.call(Be,lt))}reactExports.useEffect(()=>(qe(!0),Ze),[]),reactExports.useEffect(()=>{Me&&tt()},[Be.icon,Me]);const{name:rt,data:ot}=Ye;return ot?render({...defaultIconProps,...ot},Be,rt):Be.children?Be.children:Be.fallback?Be.fallback:reactExports.createElement("span",{})}const Icon=reactExports.forwardRef((Be,Me)=>IconComponent({...Be,_ref:Me}));reactExports.forwardRef((Be,Me)=>IconComponent({inline:!0,...Be,_ref:Me}));const data$I={width:24,height:24,body:'<path fill="currentColor" d="m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7q.275-.275.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275q.275.275.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 13.4Z"/>'},o$d=(...Be)=>Be.reduce((Me,qe)=>qe?Array.isArray(qe)?Me.concat(qe):Me.concat([qe]):Me,[]);function x$a({onClose:Be=noop$1,sx:Me={},size:qe=20}){return jsxRuntimeExports.jsx(Box,{onClick:Be,sx:o$d({fontSize:0,cursor:"pointer",color:"text.secondary",transition:"transform 0.25s ease-in-out 0s",transformOrigin:"center","&:hover":{transform:"rotate(90deg)"}},Me),children:jsxRuntimeExports.jsx(Icon,{icon:data$I,fontSize:qe})})}var qrCodeStyling$1={exports:{}},qrCodeStyling=qrCodeStyling$1.exports,hasRequiredQrCodeStyling;function requireQrCodeStyling(){return hasRequiredQrCodeStyling||(hasRequiredQrCodeStyling=1,function(Be,Me){(function(qe,He){Be.exports=He()})(qrCodeStyling,function(){return(()=>{var qe={192:(Je,Ye)=>{var Qe,Ze,nt=function(){var tt=function(bt,Et){var Rt=bt,St=dt[Et],At=null,kt=0,wt=null,vt=[],It={},nn=function(Vt,$t){At=function(Jt){for(var Qt=new Array(Jt),un=0;un<Jt;un+=1){Qt[un]=new Array(Jt);for(var xn=0;xn<Jt;xn+=1)Qt[un][xn]=null}return Qt}(kt=4*Rt+17),Gt(0,0),Gt(kt-7,0),Gt(0,kt-7),Nt(),rn(),Ut(Vt,$t),Rt>=7&&Xt(Vt),wt==null&&(wt=mn(Rt,St,vt)),Yt(wt,$t)},Gt=function(Vt,$t){for(var Jt=-1;Jt<=7;Jt+=1)if(!(Vt+Jt<=-1||kt<=Vt+Jt))for(var Qt=-1;Qt<=7;Qt+=1)$t+Qt<=-1||kt<=$t+Qt||(At[Vt+Jt][$t+Qt]=0<=Jt&&Jt<=6&&(Qt==0||Qt==6)||0<=Qt&&Qt<=6&&(Jt==0||Jt==6)||2<=Jt&&Jt<=4&&2<=Qt&&Qt<=4)},rn=function(){for(var Vt=8;Vt<kt-8;Vt+=1)At[Vt][6]==null&&(At[Vt][6]=Vt%2==0);for(var $t=8;$t<kt-8;$t+=1)At[6][$t]==null&&(At[6][$t]=$t%2==0)},Nt=function(){for(var Vt=ct.getPatternPosition(Rt),$t=0;$t<Vt.length;$t+=1)for(var Jt=0;Jt<Vt.length;Jt+=1){var Qt=Vt[$t],un=Vt[Jt];if(At[Qt][un]==null)for(var xn=-2;xn<=2;xn+=1)for(var Rn=-2;Rn<=2;Rn+=1)At[Qt+xn][un+Rn]=xn==-2||xn==2||Rn==-2||Rn==2||xn==0&&Rn==0}},Xt=function(Vt){for(var $t=ct.getBCHTypeNumber(Rt),Jt=0;Jt<18;Jt+=1){var Qt=!Vt&&($t>>Jt&1)==1;At[Math.floor(Jt/3)][Jt%3+kt-8-3]=Qt}for(Jt=0;Jt<18;Jt+=1)Qt=!Vt&&($t>>Jt&1)==1,At[Jt%3+kt-8-3][Math.floor(Jt/3)]=Qt},Ut=function(Vt,$t){for(var Jt=St<<3|$t,Qt=ct.getBCHTypeInfo(Jt),un=0;un<15;un+=1){var xn=!Vt&&(Qt>>un&1)==1;un<6?At[un][8]=xn:un<8?At[un+1][8]=xn:At[kt-15+un][8]=xn}for(un=0;un<15;un+=1)xn=!Vt&&(Qt>>un&1)==1,un<8?At[8][kt-un-1]=xn:un<9?At[8][15-un-1+1]=xn:At[8][15-un-1]=xn;At[kt-8][8]=!Vt},Yt=function(Vt,$t){for(var Jt=-1,Qt=kt-1,un=7,xn=0,Rn=ct.getMaskFunction($t),pn=kt-1;pn>0;pn-=2)for(pn==6&&(pn-=1);;){for(var En=0;En<2;En+=1)if(At[Qt][pn-En]==null){var jn=!1;xn<Vt.length&&(jn=(Vt[xn]>>>un&1)==1),Rn(Qt,pn-En)&&(jn=!jn),At[Qt][pn-En]=jn,(un-=1)==-1&&(xn+=1,un=7)}if((Qt+=Jt)<0||kt<=Qt){Qt-=Jt,Jt=-Jt;break}}},mn=function(Vt,$t,Jt){for(var Qt=yt.getRSBlocks(Vt,$t),un=gt(),xn=0;xn<Jt.length;xn+=1){var Rn=Jt[xn];un.put(Rn.getMode(),4),un.put(Rn.getLength(),ct.getLengthInBits(Rn.getMode(),Vt)),Rn.write(un)}var pn=0;for(xn=0;xn<Qt.length;xn+=1)pn+=Qt[xn].dataCount;if(un.getLengthInBits()>8*pn)throw"code length overflow. ("+un.getLengthInBits()+">"+8*pn+")";for(un.getLengthInBits()+4<=8*pn&&un.put(0,4);un.getLengthInBits()%8!=0;)un.putBit(!1);for(;!(un.getLengthInBits()>=8*pn||(un.put(236,8),un.getLengthInBits()>=8*pn));)un.put(17,8);return function(En,jn){for(var Ln=0,Nn=0,lr=0,Jn=new Array(jn.length),ln=new Array(jn.length),_n=0;_n<jn.length;_n+=1){var Bn=jn[_n].dataCount,Un=jn[_n].totalCount-Bn;Nn=Math.max(Nn,Bn),lr=Math.max(lr,Un),Jn[_n]=new Array(Bn);for(var Hn=0;Hn<Jn[_n].length;Hn+=1)Jn[_n][Hn]=255&En.getBuffer()[Hn+Ln];Ln+=Bn;var cn=ct.getErrorCorrectPolynomial(Un),Kt=ht(Jn[_n],cn.getLength()-1).mod(cn);for(ln[_n]=new Array(cn.getLength()-1),Hn=0;Hn<ln[_n].length;Hn+=1){var Pt=Hn+Kt.getLength()-ln[_n].length;ln[_n][Hn]=Pt>=0?Kt.getAt(Pt):0}}var sn=0;for(Hn=0;Hn<jn.length;Hn+=1)sn+=jn[Hn].totalCount;var Tn=new Array(sn),Cn=0;for(Hn=0;Hn<Nn;Hn+=1)for(_n=0;_n<jn.length;_n+=1)Hn<Jn[_n].length&&(Tn[Cn]=Jn[_n][Hn],Cn+=1);for(Hn=0;Hn<lr;Hn+=1)for(_n=0;_n<jn.length;_n+=1)Hn<ln[_n].length&&(Tn[Cn]=ln[_n][Hn],Cn+=1);return Tn}(un,Qt)};It.addData=function(Vt,$t){var Jt=null;switch($t=$t||"Byte"){case"Numeric":Jt=Ct(Vt);break;case"Alphanumeric":Jt=Tt(Vt);break;case"Byte":Jt=_t(Vt);break;case"Kanji":Jt=Bt(Vt);break;default:throw"mode:"+$t}vt.push(Jt),wt=null},It.isDark=function(Vt,$t){if(Vt<0||kt<=Vt||$t<0||kt<=$t)throw Vt+","+$t;return At[Vt][$t]},It.getModuleCount=function(){return kt},It.make=function(){if(Rt<1){for(var Vt=1;Vt<40;Vt++){for(var $t=yt.getRSBlocks(Vt,St),Jt=gt(),Qt=0;Qt<vt.length;Qt++){var un=vt[Qt];Jt.put(un.getMode(),4),Jt.put(un.getLength(),ct.getLengthInBits(un.getMode(),Vt)),un.write(Jt)}var xn=0;for(Qt=0;Qt<$t.length;Qt++)xn+=$t[Qt].dataCount;if(Jt.getLengthInBits()<=8*xn)break}Rt=Vt}nn(!1,function(){for(var Rn=0,pn=0,En=0;En<8;En+=1){nn(!0,En);var jn=ct.getLostPoint(It);(En==0||Rn>jn)&&(Rn=jn,pn=En)}return pn}())},It.createTableTag=function(Vt,$t){Vt=Vt||2;var Jt="";Jt+='<table style="',Jt+=" border-width: 0px; border-style: none;",Jt+=" border-collapse: collapse;",Jt+=" padding: 0px; margin: "+($t=$t===void 0?4*Vt:$t)+"px;",Jt+='">',Jt+="<tbody>";for(var Qt=0;Qt<It.getModuleCount();Qt+=1){Jt+="<tr>";for(var un=0;un<It.getModuleCount();un+=1)Jt+='<td style="',Jt+=" border-width: 0px; border-style: none;",Jt+=" border-collapse: collapse;",Jt+=" padding: 0px; margin: 0px;",Jt+=" width: "+Vt+"px;",Jt+=" height: "+Vt+"px;",Jt+=" background-color: ",Jt+=It.isDark(Qt,un)?"#000000":"#ffffff",Jt+=";",Jt+='"/>';Jt+="</tr>"}return(Jt+="</tbody>")+"</table>"},It.createSvgTag=function(Vt,$t,Jt,Qt){var un={};typeof arguments[0]=="object"&&(Vt=(un=arguments[0]).cellSize,$t=un.margin,Jt=un.alt,Qt=un.title),Vt=Vt||2,$t=$t===void 0?4*Vt:$t,(Jt=typeof Jt=="string"?{text:Jt}:Jt||{}).text=Jt.text||null,Jt.id=Jt.text?Jt.id||"qrcode-description":null,(Qt=typeof Qt=="string"?{text:Qt}:Qt||{}).text=Qt.text||null,Qt.id=Qt.text?Qt.id||"qrcode-title":null;var xn,Rn,pn,En,jn=It.getModuleCount()*Vt+2*$t,Ln="";for(En="l"+Vt+",0 0,"+Vt+" -"+Vt+",0 0,-"+Vt+"z ",Ln+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',Ln+=un.scalable?"":' width="'+jn+'px" height="'+jn+'px"',Ln+=' viewBox="0 0 '+jn+" "+jn+'" ',Ln+=' preserveAspectRatio="xMinYMin meet"',Ln+=Qt.text||Jt.text?' role="img" aria-labelledby="'+hn([Qt.id,Jt.id].join(" ").trim())+'"':"",Ln+=">",Ln+=Qt.text?'<title id="'+hn(Qt.id)+'">'+hn(Qt.text)+"</title>":"",Ln+=Jt.text?'<description id="'+hn(Jt.id)+'">'+hn(Jt.text)+"</description>":"",Ln+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',Ln+='<path d="',Rn=0;Rn<It.getModuleCount();Rn+=1)for(pn=Rn*Vt+$t,xn=0;xn<It.getModuleCount();xn+=1)It.isDark(Rn,xn)&&(Ln+="M"+(xn*Vt+$t)+","+pn+En);return(Ln+='" stroke="transparent" fill="black"/>')+"</svg>"},It.createDataURL=function(Vt,$t){Vt=Vt||2,$t=$t===void 0?4*Vt:$t;var Jt=It.getModuleCount()*Vt+2*$t,Qt=$t,un=Jt-$t;return mt(Jt,Jt,function(xn,Rn){if(Qt<=xn&&xn<un&&Qt<=Rn&&Rn<un){var pn=Math.floor((xn-Qt)/Vt),En=Math.floor((Rn-Qt)/Vt);return It.isDark(En,pn)?0:1}return 1})},It.createImgTag=function(Vt,$t,Jt){Vt=Vt||2,$t=$t===void 0?4*Vt:$t;var Qt=It.getModuleCount()*Vt+2*$t,un="";return un+="<img",un+=' src="',un+=It.createDataURL(Vt,$t),un+='"',un+=' width="',un+=Qt,un+='"',un+=' height="',un+=Qt,un+='"',Jt&&(un+=' alt="',un+=hn(Jt),un+='"'),un+"/>"};var hn=function(Vt){for(var $t="",Jt=0;Jt<Vt.length;Jt+=1){var Qt=Vt.charAt(Jt);switch(Qt){case"<":$t+="<";break;case">":$t+=">";break;case"&":$t+="&";break;case'"':$t+=""";break;default:$t+=Qt}}return $t};return It.createASCII=function(Vt,$t){if((Vt=Vt||1)<2)return function(Jn){Jn=Jn===void 0?2:Jn;var ln,_n,Bn,Un,Hn,cn=1*It.getModuleCount()+2*Jn,Kt=Jn,Pt=cn-Jn,sn={"██":"█","█ ":"▀"," █":"▄"," ":" "},Tn={"██":"▀","█ ":"▀"," █":" "," ":" "},Cn="";for(ln=0;ln<cn;ln+=2){for(Bn=Math.floor((ln-Kt)/1),Un=Math.floor((ln+1-Kt)/1),_n=0;_n<cn;_n+=1)Hn="█",Kt<=_n&&_n<Pt&&Kt<=ln&&ln<Pt&&It.isDark(Bn,Math.floor((_n-Kt)/1))&&(Hn=" "),Kt<=_n&&_n<Pt&&Kt<=ln+1&&ln+1<Pt&&It.isDark(Un,Math.floor((_n-Kt)/1))?Hn+=" ":Hn+="█",Cn+=Jn<1&&ln+1>=Pt?Tn[Hn]:sn[Hn];Cn+=`
|
|
317
317
|
`}return cn%2&&Jn>0?Cn.substring(0,Cn.length-cn-1)+Array(cn+1).join("▀"):Cn.substring(0,Cn.length-1)}($t);Vt-=1,$t=$t===void 0?2*Vt:$t;var Jt,Qt,un,xn,Rn=It.getModuleCount()*Vt+2*$t,pn=$t,En=Rn-$t,jn=Array(Vt+1).join("██"),Ln=Array(Vt+1).join(" "),Nn="",lr="";for(Jt=0;Jt<Rn;Jt+=1){for(un=Math.floor((Jt-pn)/Vt),lr="",Qt=0;Qt<Rn;Qt+=1)xn=1,pn<=Qt&&Qt<En&&pn<=Jt&&Jt<En&&It.isDark(un,Math.floor((Qt-pn)/Vt))&&(xn=0),lr+=xn?jn:Ln;for(un=0;un<Vt;un+=1)Nn+=lr+`
|
|
318
318
|
`}return Nn.substring(0,Nn.length-1)},It.renderTo2dContext=function(Vt,$t){$t=$t||2;for(var Jt=It.getModuleCount(),Qt=0;Qt<Jt;Qt++)for(var un=0;un<Jt;un++)Vt.fillStyle=It.isDark(Qt,un)?"black":"white",Vt.fillRect(Qt*$t,un*$t,$t,$t)},It};tt.stringToBytes=(tt.stringToBytesFuncs={default:function(bt){for(var Et=[],Rt=0;Rt<bt.length;Rt+=1){var St=bt.charCodeAt(Rt);Et.push(255&St)}return Et}}).default,tt.createStringToBytes=function(bt,Et){var Rt=function(){for(var At=Ot(bt),kt=function(){var rn=At.read();if(rn==-1)throw"eof";return rn},wt=0,vt={};;){var It=At.read();if(It==-1)break;var nn=kt(),Gt=kt()<<8|kt();vt[String.fromCharCode(It<<8|nn)]=Gt,wt+=1}if(wt!=Et)throw wt+" != "+Et;return vt}(),St=63;return function(At){for(var kt=[],wt=0;wt<At.length;wt+=1){var vt=At.charCodeAt(wt);if(vt<128)kt.push(vt);else{var It=Rt[At.charAt(wt)];typeof It=="number"?(255&It)==It?kt.push(It):(kt.push(It>>>8),kt.push(255&It)):kt.push(St)}}return kt}};var rt,ot,at,lt,ut,dt={L:1,M:0,Q:3,H:2},ct=(rt=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],ot=1335,at=7973,ut=function(bt){for(var Et=0;bt!=0;)Et+=1,bt>>>=1;return Et},(lt={}).getBCHTypeInfo=function(bt){for(var Et=bt<<10;ut(Et)-ut(ot)>=0;)Et^=ot<<ut(Et)-ut(ot);return 21522^(bt<<10|Et)},lt.getBCHTypeNumber=function(bt){for(var Et=bt<<12;ut(Et)-ut(at)>=0;)Et^=at<<ut(Et)-ut(at);return bt<<12|Et},lt.getPatternPosition=function(bt){return rt[bt-1]},lt.getMaskFunction=function(bt){switch(bt){case 0:return function(Et,Rt){return(Et+Rt)%2==0};case 1:return function(Et,Rt){return Et%2==0};case 2:return function(Et,Rt){return Rt%3==0};case 3:return function(Et,Rt){return(Et+Rt)%3==0};case 4:return function(Et,Rt){return(Math.floor(Et/2)+Math.floor(Rt/3))%2==0};case 5:return function(Et,Rt){return Et*Rt%2+Et*Rt%3==0};case 6:return function(Et,Rt){return(Et*Rt%2+Et*Rt%3)%2==0};case 7:return function(Et,Rt){return(Et*Rt%3+(Et+Rt)%2)%2==0};default:throw"bad maskPattern:"+bt}},lt.getErrorCorrectPolynomial=function(bt){for(var Et=ht([1],0),Rt=0;Rt<bt;Rt+=1)Et=Et.multiply(ht([1,ft.gexp(Rt)],0));return Et},lt.getLengthInBits=function(bt,Et){if(1<=Et&&Et<10)switch(bt){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+bt}else if(Et<27)switch(bt){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+bt}else{if(!(Et<41))throw"type:"+Et;switch(bt){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+bt}}},lt.getLostPoint=function(bt){for(var Et=bt.getModuleCount(),Rt=0,St=0;St<Et;St+=1)for(var At=0;At<Et;At+=1){for(var kt=0,wt=bt.isDark(St,At),vt=-1;vt<=1;vt+=1)if(!(St+vt<0||Et<=St+vt))for(var It=-1;It<=1;It+=1)At+It<0||Et<=At+It||vt==0&&It==0||wt==bt.isDark(St+vt,At+It)&&(kt+=1);kt>5&&(Rt+=3+kt-5)}for(St=0;St<Et-1;St+=1)for(At=0;At<Et-1;At+=1){var nn=0;bt.isDark(St,At)&&(nn+=1),bt.isDark(St+1,At)&&(nn+=1),bt.isDark(St,At+1)&&(nn+=1),bt.isDark(St+1,At+1)&&(nn+=1),nn!=0&&nn!=4||(Rt+=3)}for(St=0;St<Et;St+=1)for(At=0;At<Et-6;At+=1)bt.isDark(St,At)&&!bt.isDark(St,At+1)&&bt.isDark(St,At+2)&&bt.isDark(St,At+3)&&bt.isDark(St,At+4)&&!bt.isDark(St,At+5)&&bt.isDark(St,At+6)&&(Rt+=40);for(At=0;At<Et;At+=1)for(St=0;St<Et-6;St+=1)bt.isDark(St,At)&&!bt.isDark(St+1,At)&&bt.isDark(St+2,At)&&bt.isDark(St+3,At)&&bt.isDark(St+4,At)&&!bt.isDark(St+5,At)&&bt.isDark(St+6,At)&&(Rt+=40);var Gt=0;for(At=0;At<Et;At+=1)for(St=0;St<Et;St+=1)bt.isDark(St,At)&&(Gt+=1);return Rt+Math.abs(100*Gt/Et/Et-50)/5*10},lt),ft=function(){for(var bt=new Array(256),Et=new Array(256),Rt=0;Rt<8;Rt+=1)bt[Rt]=1<<Rt;for(Rt=8;Rt<256;Rt+=1)bt[Rt]=bt[Rt-4]^bt[Rt-5]^bt[Rt-6]^bt[Rt-8];for(Rt=0;Rt<255;Rt+=1)Et[bt[Rt]]=Rt;return{glog:function(St){if(St<1)throw"glog("+St+")";return Et[St]},gexp:function(St){for(;St<0;)St+=255;for(;St>=256;)St-=255;return bt[St]}}}();function ht(bt,Et){if(bt.length===void 0)throw bt.length+"/"+Et;var Rt=function(){for(var At=0;At<bt.length&&bt[At]==0;)At+=1;for(var kt=new Array(bt.length-At+Et),wt=0;wt<bt.length-At;wt+=1)kt[wt]=bt[wt+At];return kt}(),St={getAt:function(At){return Rt[At]},getLength:function(){return Rt.length},multiply:function(At){for(var kt=new Array(St.getLength()+At.getLength()-1),wt=0;wt<St.getLength();wt+=1)for(var vt=0;vt<At.getLength();vt+=1)kt[wt+vt]^=ft.gexp(ft.glog(St.getAt(wt))+ft.glog(At.getAt(vt)));return ht(kt,0)},mod:function(At){if(St.getLength()-At.getLength()<0)return St;for(var kt=ft.glog(St.getAt(0))-ft.glog(At.getAt(0)),wt=new Array(St.getLength()),vt=0;vt<St.getLength();vt+=1)wt[vt]=St.getAt(vt);for(vt=0;vt<At.getLength();vt+=1)wt[vt]^=ft.gexp(ft.glog(At.getAt(vt))+kt);return ht(wt,0).mod(At)}};return St}var yt=function(){var bt=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],Et=function(St,At){var kt={};return kt.totalCount=St,kt.dataCount=At,kt},Rt={getRSBlocks:function(St,At){var kt=function(Xt,Ut){switch(Ut){case dt.L:return bt[4*(Xt-1)+0];case dt.M:return bt[4*(Xt-1)+1];case dt.Q:return bt[4*(Xt-1)+2];case dt.H:return bt[4*(Xt-1)+3];default:return}}(St,At);if(kt===void 0)throw"bad rs block @ typeNumber:"+St+"/errorCorrectionLevel:"+At;for(var wt=kt.length/3,vt=[],It=0;It<wt;It+=1)for(var nn=kt[3*It+0],Gt=kt[3*It+1],rn=kt[3*It+2],Nt=0;Nt<nn;Nt+=1)vt.push(Et(Gt,rn));return vt}};return Rt}(),gt=function(){var bt=[],Et=0,Rt={getBuffer:function(){return bt},getAt:function(St){var At=Math.floor(St/8);return(bt[At]>>>7-St%8&1)==1},put:function(St,At){for(var kt=0;kt<At;kt+=1)Rt.putBit((St>>>At-kt-1&1)==1)},getLengthInBits:function(){return Et},putBit:function(St){var At=Math.floor(Et/8);bt.length<=At&&bt.push(0),St&&(bt[At]|=128>>>Et%8),Et+=1}};return Rt},Ct=function(bt){var Et=bt,Rt={getMode:function(){return 1},getLength:function(kt){return Et.length},write:function(kt){for(var wt=Et,vt=0;vt+2<wt.length;)kt.put(St(wt.substring(vt,vt+3)),10),vt+=3;vt<wt.length&&(wt.length-vt==1?kt.put(St(wt.substring(vt,vt+1)),4):wt.length-vt==2&&kt.put(St(wt.substring(vt,vt+2)),7))}},St=function(kt){for(var wt=0,vt=0;vt<kt.length;vt+=1)wt=10*wt+At(kt.charAt(vt));return wt},At=function(kt){if("0"<=kt&&kt<="9")return kt.charCodeAt(0)-48;throw"illegal char :"+kt};return Rt},Tt=function(bt){var Et=bt,Rt={getMode:function(){return 2},getLength:function(At){return Et.length},write:function(At){for(var kt=Et,wt=0;wt+1<kt.length;)At.put(45*St(kt.charAt(wt))+St(kt.charAt(wt+1)),11),wt+=2;wt<kt.length&&At.put(St(kt.charAt(wt)),6)}},St=function(At){if("0"<=At&&At<="9")return At.charCodeAt(0)-48;if("A"<=At&&At<="Z")return At.charCodeAt(0)-65+10;switch(At){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+At}};return Rt},_t=function(bt){var Et=tt.stringToBytes(bt);return{getMode:function(){return 4},getLength:function(Rt){return Et.length},write:function(Rt){for(var St=0;St<Et.length;St+=1)Rt.put(Et[St],8)}}},Bt=function(bt){var Et=tt.stringToBytesFuncs.SJIS;if(!Et)throw"sjis not supported.";(function(At,kt){var wt=Et("友");if(wt.length!=2||(wt[0]<<8|wt[1])!=38726)throw"sjis not supported."})();var Rt=Et(bt),St={getMode:function(){return 8},getLength:function(At){return~~(Rt.length/2)},write:function(At){for(var kt=Rt,wt=0;wt+1<kt.length;){var vt=(255&kt[wt])<<8|255&kt[wt+1];if(33088<=vt&&vt<=40956)vt-=33088;else{if(!(57408<=vt&&vt<=60351))throw"illegal char at "+(wt+1)+"/"+vt;vt-=49472}vt=192*(vt>>>8&255)+(255&vt),At.put(vt,13),wt+=2}if(wt<kt.length)throw"illegal char at "+(wt+1)}};return St},Dt=function(){var bt=[],Et={writeByte:function(Rt){bt.push(255&Rt)},writeShort:function(Rt){Et.writeByte(Rt),Et.writeByte(Rt>>>8)},writeBytes:function(Rt,St,At){St=St||0,At=At||Rt.length;for(var kt=0;kt<At;kt+=1)Et.writeByte(Rt[kt+St])},writeString:function(Rt){for(var St=0;St<Rt.length;St+=1)Et.writeByte(Rt.charCodeAt(St))},toByteArray:function(){return bt},toString:function(){var Rt="";Rt+="[";for(var St=0;St<bt.length;St+=1)St>0&&(Rt+=","),Rt+=bt[St];return Rt+"]"}};return Et},Ot=function(bt){var Et=bt,Rt=0,St=0,At=0,kt={read:function(){for(;At<8;){if(Rt>=Et.length){if(At==0)return-1;throw"unexpected end of file./"+At}var vt=Et.charAt(Rt);if(Rt+=1,vt=="=")return At=0,-1;vt.match(/^\s$/)||(St=St<<6|wt(vt.charCodeAt(0)),At+=6)}var It=St>>>At-8&255;return At-=8,It}},wt=function(vt){if(65<=vt&&vt<=90)return vt-65;if(97<=vt&&vt<=122)return vt-97+26;if(48<=vt&&vt<=57)return vt-48+52;if(vt==43)return 62;if(vt==47)return 63;throw"c:"+vt};return kt},mt=function(bt,Et,Rt){for(var St=function(Gt,rn){var Nt=Gt,Xt=rn,Ut=new Array(Gt*rn),Yt={setPixel:function(Vt,$t,Jt){Ut[$t*Nt+Vt]=Jt},write:function(Vt){Vt.writeString("GIF87a"),Vt.writeShort(Nt),Vt.writeShort(Xt),Vt.writeByte(128),Vt.writeByte(0),Vt.writeByte(0),Vt.writeByte(0),Vt.writeByte(0),Vt.writeByte(0),Vt.writeByte(255),Vt.writeByte(255),Vt.writeByte(255),Vt.writeString(","),Vt.writeShort(0),Vt.writeShort(0),Vt.writeShort(Nt),Vt.writeShort(Xt),Vt.writeByte(0);var $t=mn(2);Vt.writeByte(2);for(var Jt=0;$t.length-Jt>255;)Vt.writeByte(255),Vt.writeBytes($t,Jt,255),Jt+=255;Vt.writeByte($t.length-Jt),Vt.writeBytes($t,Jt,$t.length-Jt),Vt.writeByte(0),Vt.writeString(";")}},mn=function(Vt){for(var $t=1<<Vt,Jt=1+(1<<Vt),Qt=Vt+1,un=hn(),xn=0;xn<$t;xn+=1)un.add(String.fromCharCode(xn));un.add(String.fromCharCode($t)),un.add(String.fromCharCode(Jt));var Rn,pn,En,jn=Dt(),Ln=(Rn=jn,pn=0,En=0,{write:function(ln,_n){if(ln>>>_n)throw"length over";for(;pn+_n>=8;)Rn.writeByte(255&(ln<<pn|En)),_n-=8-pn,ln>>>=8-pn,En=0,pn=0;En|=ln<<pn,pn+=_n},flush:function(){pn>0&&Rn.writeByte(En)}});Ln.write($t,Qt);var Nn=0,lr=String.fromCharCode(Ut[Nn]);for(Nn+=1;Nn<Ut.length;){var Jn=String.fromCharCode(Ut[Nn]);Nn+=1,un.contains(lr+Jn)?lr+=Jn:(Ln.write(un.indexOf(lr),Qt),un.size()<4095&&(un.size()==1<<Qt&&(Qt+=1),un.add(lr+Jn)),lr=Jn)}return Ln.write(un.indexOf(lr),Qt),Ln.write(Jt,Qt),Ln.flush(),jn.toByteArray()},hn=function(){var Vt={},$t=0,Jt={add:function(Qt){if(Jt.contains(Qt))throw"dup key:"+Qt;Vt[Qt]=$t,$t+=1},size:function(){return $t},indexOf:function(Qt){return Vt[Qt]},contains:function(Qt){return Vt[Qt]!==void 0}};return Jt};return Yt}(bt,Et),At=0;At<Et;At+=1)for(var kt=0;kt<bt;kt+=1)St.setPixel(kt,At,Rt(kt,At));var wt=Dt();St.write(wt);for(var vt=function(){var Gt=0,rn=0,Nt=0,Xt="",Ut={},Yt=function(hn){Xt+=String.fromCharCode(mn(63&hn))},mn=function(hn){if(!(hn<0)){if(hn<26)return 65+hn;if(hn<52)return hn-26+97;if(hn<62)return hn-52+48;if(hn==62)return 43;if(hn==63)return 47}throw"n:"+hn};return Ut.writeByte=function(hn){for(Gt=Gt<<8|255&hn,rn+=8,Nt+=1;rn>=6;)Yt(Gt>>>rn-6),rn-=6},Ut.flush=function(){if(rn>0&&(Yt(Gt<<6-rn),Gt=0,rn=0),Nt%3!=0)for(var hn=3-Nt%3,Vt=0;Vt<hn;Vt+=1)Xt+="="},Ut.toString=function(){return Xt},Ut}(),It=wt.toByteArray(),nn=0;nn<It.length;nn+=1)vt.writeByte(It[nn]);return vt.flush(),"data:image/gif;base64,"+vt};return tt}();nt.stringToBytesFuncs["UTF-8"]=function(tt){return function(rt){for(var ot=[],at=0;at<rt.length;at++){var lt=rt.charCodeAt(at);lt<128?ot.push(lt):lt<2048?ot.push(192|lt>>6,128|63<):lt<55296||lt>=57344?ot.push(224|lt>>12,128|lt>>6&63,128|63<):(at++,lt=65536+((1023<)<<10|1023&rt.charCodeAt(at)),ot.push(240|lt>>18,128|lt>>12&63,128|lt>>6&63,128|63<))}return ot}(tt)},(Ze=typeof(Qe=function(){return nt})=="function"?Qe.apply(Ye,[]):Qe)===void 0||(Je.exports=Ze)},676:(Je,Ye,Qe)=>{Qe.d(Ye,{default:()=>hn});const Ze="Numeric",nt="Alphanumeric",tt="Byte";var rt=function(){return rt=Object.assign||function(Vt){for(var $t,Jt=1,Qt=arguments.length;Jt<Qt;Jt++)for(var un in $t=arguments[Jt])Object.prototype.hasOwnProperty.call($t,un)&&(Vt[un]=$t[un]);return Vt},rt.apply(this,arguments)},ot=function(){for(var Vt=0,$t=0,Jt=arguments.length;$t<Jt;$t++)Vt+=arguments[$t].length;var Qt=Array(Vt),un=0;for($t=0;$t<Jt;$t++)for(var xn=arguments[$t],Rn=0,pn=xn.length;Rn<pn;Rn++,un++)Qt[un]=xn[Rn];return Qt},at=function(Vt){return!!Vt&&typeof Vt=="object"&&!Array.isArray(Vt)};function lt(Vt){for(var $t=[],Jt=1;Jt<arguments.length;Jt++)$t[Jt-1]=arguments[Jt];if(!$t.length)return Vt;var Qt=$t.shift();return Qt!==void 0&&at(Vt)&&at(Qt)?(Vt=rt({},Vt),Object.keys(Qt).forEach(function(un){var xn=Vt[un],Rn=Qt[un];Array.isArray(xn)&&Array.isArray(Rn)?Vt[un]=Rn:at(xn)&&at(Rn)?Vt[un]=lt(Object.assign({},xn),Rn):Vt[un]=Rn}),lt.apply(void 0,ot([Vt],$t))):Vt}function ut(Vt,$t){var Jt=document.createElement("a");Jt.download=$t,Jt.href=Vt,document.body.appendChild(Jt),Jt.click(),document.body.removeChild(Jt)}var dt=function(Vt,$t,Jt,Qt){return new(Jt||(Jt=Promise))(function(un,xn){function Rn(jn){try{En(Qt.next(jn))}catch(Ln){xn(Ln)}}function pn(jn){try{En(Qt.throw(jn))}catch(Ln){xn(Ln)}}function En(jn){var Ln;jn.done?un(jn.value):(Ln=jn.value,Ln instanceof Jt?Ln:new Jt(function(Nn){Nn(Ln)})).then(Rn,pn)}En((Qt=Qt.apply(Vt,[])).next())})},ct=function(Vt,$t){var Jt,Qt,un,xn,Rn={label:0,sent:function(){if(1&un[0])throw un[1];return un[1]},trys:[],ops:[]};return xn={next:pn(0),throw:pn(1),return:pn(2)},typeof Symbol=="function"&&(xn[Symbol.iterator]=function(){return this}),xn;function pn(En){return function(jn){return function(Ln){if(Jt)throw new TypeError("Generator is already executing.");for(;Rn;)try{if(Jt=1,Qt&&(un=2&Ln[0]?Qt.return:Ln[0]?Qt.throw||((un=Qt.return)&&un.call(Qt),0):Qt.next)&&!(un=un.call(Qt,Ln[1])).done)return un;switch(Qt=0,un&&(Ln=[2&Ln[0],un.value]),Ln[0]){case 0:case 1:un=Ln;break;case 4:return Rn.label++,{value:Ln[1],done:!1};case 5:Rn.label++,Qt=Ln[1],Ln=[0];continue;case 7:Ln=Rn.ops.pop(),Rn.trys.pop();continue;default:if(!((un=(un=Rn.trys).length>0&&un[un.length-1])||Ln[0]!==6&&Ln[0]!==2)){Rn=0;continue}if(Ln[0]===3&&(!un||Ln[1]>un[0]&&Ln[1]<un[3])){Rn.label=Ln[1];break}if(Ln[0]===6&&Rn.label<un[1]){Rn.label=un[1],un=Ln;break}if(un&&Rn.label<un[2]){Rn.label=un[2],Rn.ops.push(Ln);break}un[2]&&Rn.ops.pop(),Rn.trys.pop();continue}Ln=$t.call(Vt,Rn)}catch(Nn){Ln=[6,Nn],Qt=0}finally{Jt=un=0}if(5&Ln[0])throw Ln[1];return{value:Ln[0]?Ln[1]:void 0,done:!0}}([En,jn])}}};function ft(Vt){return dt(this,void 0,void 0,function(){return ct(this,function($t){return[2,new Promise(function(Jt){var Qt=new XMLHttpRequest;Qt.onload=function(){var un=new FileReader;un.onloadend=function(){Jt(un.result)},un.readAsDataURL(Qt.response)},Qt.open("GET",Vt),Qt.responseType="blob",Qt.send()})]})})}const ht={L:.07,M:.15,Q:.25,H:.3};var yt=function(){return yt=Object.assign||function(Vt){for(var $t,Jt=1,Qt=arguments.length;Jt<Qt;Jt++)for(var un in $t=arguments[Jt])Object.prototype.hasOwnProperty.call($t,un)&&(Vt[un]=$t[un]);return Vt},yt.apply(this,arguments)},gt=function(){function Vt($t){var Jt=$t.svg,Qt=$t.type;this._svg=Jt,this._type=Qt}return Vt.prototype.draw=function($t,Jt,Qt,un){var xn;switch(this._type){case"dots":xn=this._drawDot;break;case"classy":xn=this._drawClassy;break;case"classy-rounded":xn=this._drawClassyRounded;break;case"rounded":xn=this._drawRounded;break;case"extra-rounded":xn=this._drawExtraRounded;break;default:xn=this._drawSquare}xn.call(this,{x:$t,y:Jt,size:Qt,getNeighbor:un})},Vt.prototype._rotateFigure=function($t){var Jt,Qt=$t.x,un=$t.y,xn=$t.size,Rn=$t.rotation,pn=Rn===void 0?0:Rn,En=Qt+xn/2,jn=un+xn/2;(0,$t.draw)(),(Jt=this._element)===null||Jt===void 0||Jt.setAttribute("transform","rotate("+180*pn/Math.PI+","+En+","+jn+")")},Vt.prototype._basicDot=function($t){var Jt=this,Qt=$t.size,un=$t.x,xn=$t.y;this._rotateFigure(yt(yt({},$t),{draw:function(){Jt._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Jt._element.setAttribute("cx",String(un+Qt/2)),Jt._element.setAttribute("cy",String(xn+Qt/2)),Jt._element.setAttribute("r",String(Qt/2))}}))},Vt.prototype._basicSquare=function($t){var Jt=this,Qt=$t.size,un=$t.x,xn=$t.y;this._rotateFigure(yt(yt({},$t),{draw:function(){Jt._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Jt._element.setAttribute("x",String(un)),Jt._element.setAttribute("y",String(xn)),Jt._element.setAttribute("width",String(Qt)),Jt._element.setAttribute("height",String(Qt))}}))},Vt.prototype._basicSideRounded=function($t){var Jt=this,Qt=$t.size,un=$t.x,xn=$t.y;this._rotateFigure(yt(yt({},$t),{draw:function(){Jt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Jt._element.setAttribute("d","M "+un+" "+xn+"v "+Qt+"h "+Qt/2+"a "+Qt/2+" "+Qt/2+", 0, 0, 0, 0 "+-Qt)}}))},Vt.prototype._basicCornerRounded=function($t){var Jt=this,Qt=$t.size,un=$t.x,xn=$t.y;this._rotateFigure(yt(yt({},$t),{draw:function(){Jt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Jt._element.setAttribute("d","M "+un+" "+xn+"v "+Qt+"h "+Qt+"v "+-Qt/2+"a "+Qt/2+" "+Qt/2+", 0, 0, 0, "+-Qt/2+" "+-Qt/2)}}))},Vt.prototype._basicCornerExtraRounded=function($t){var Jt=this,Qt=$t.size,un=$t.x,xn=$t.y;this._rotateFigure(yt(yt({},$t),{draw:function(){Jt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Jt._element.setAttribute("d","M "+un+" "+xn+"v "+Qt+"h "+Qt+"a "+Qt+" "+Qt+", 0, 0, 0, "+-Qt+" "+-Qt)}}))},Vt.prototype._basicCornersRounded=function($t){var Jt=this,Qt=$t.size,un=$t.x,xn=$t.y;this._rotateFigure(yt(yt({},$t),{draw:function(){Jt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Jt._element.setAttribute("d","M "+un+" "+xn+"v "+Qt/2+"a "+Qt/2+" "+Qt/2+", 0, 0, 0, "+Qt/2+" "+Qt/2+"h "+Qt/2+"v "+-Qt/2+"a "+Qt/2+" "+Qt/2+", 0, 0, 0, "+-Qt/2+" "+-Qt/2)}}))},Vt.prototype._drawDot=function($t){var Jt=$t.x,Qt=$t.y,un=$t.size;this._basicDot({x:Jt,y:Qt,size:un,rotation:0})},Vt.prototype._drawSquare=function($t){var Jt=$t.x,Qt=$t.y,un=$t.size;this._basicSquare({x:Jt,y:Qt,size:un,rotation:0})},Vt.prototype._drawRounded=function($t){var Jt=$t.x,Qt=$t.y,un=$t.size,xn=$t.getNeighbor,Rn=xn?+xn(-1,0):0,pn=xn?+xn(1,0):0,En=xn?+xn(0,-1):0,jn=xn?+xn(0,1):0,Ln=Rn+pn+En+jn;if(Ln!==0)if(Ln>2||Rn&&pn||En&&jn)this._basicSquare({x:Jt,y:Qt,size:un,rotation:0});else{if(Ln===2){var Nn=0;return Rn&&En?Nn=Math.PI/2:En&&pn?Nn=Math.PI:pn&&jn&&(Nn=-Math.PI/2),void this._basicCornerRounded({x:Jt,y:Qt,size:un,rotation:Nn})}if(Ln===1)return Nn=0,En?Nn=Math.PI/2:pn?Nn=Math.PI:jn&&(Nn=-Math.PI/2),void this._basicSideRounded({x:Jt,y:Qt,size:un,rotation:Nn})}else this._basicDot({x:Jt,y:Qt,size:un,rotation:0})},Vt.prototype._drawExtraRounded=function($t){var Jt=$t.x,Qt=$t.y,un=$t.size,xn=$t.getNeighbor,Rn=xn?+xn(-1,0):0,pn=xn?+xn(1,0):0,En=xn?+xn(0,-1):0,jn=xn?+xn(0,1):0,Ln=Rn+pn+En+jn;if(Ln!==0)if(Ln>2||Rn&&pn||En&&jn)this._basicSquare({x:Jt,y:Qt,size:un,rotation:0});else{if(Ln===2){var Nn=0;return Rn&&En?Nn=Math.PI/2:En&&pn?Nn=Math.PI:pn&&jn&&(Nn=-Math.PI/2),void this._basicCornerExtraRounded({x:Jt,y:Qt,size:un,rotation:Nn})}if(Ln===1)return Nn=0,En?Nn=Math.PI/2:pn?Nn=Math.PI:jn&&(Nn=-Math.PI/2),void this._basicSideRounded({x:Jt,y:Qt,size:un,rotation:Nn})}else this._basicDot({x:Jt,y:Qt,size:un,rotation:0})},Vt.prototype._drawClassy=function($t){var Jt=$t.x,Qt=$t.y,un=$t.size,xn=$t.getNeighbor,Rn=xn?+xn(-1,0):0,pn=xn?+xn(1,0):0,En=xn?+xn(0,-1):0,jn=xn?+xn(0,1):0;Rn+pn+En+jn!==0?Rn||En?pn||jn?this._basicSquare({x:Jt,y:Qt,size:un,rotation:0}):this._basicCornerRounded({x:Jt,y:Qt,size:un,rotation:Math.PI/2}):this._basicCornerRounded({x:Jt,y:Qt,size:un,rotation:-Math.PI/2}):this._basicCornersRounded({x:Jt,y:Qt,size:un,rotation:Math.PI/2})},Vt.prototype._drawClassyRounded=function($t){var Jt=$t.x,Qt=$t.y,un=$t.size,xn=$t.getNeighbor,Rn=xn?+xn(-1,0):0,pn=xn?+xn(1,0):0,En=xn?+xn(0,-1):0,jn=xn?+xn(0,1):0;Rn+pn+En+jn!==0?Rn||En?pn||jn?this._basicSquare({x:Jt,y:Qt,size:un,rotation:0}):this._basicCornerExtraRounded({x:Jt,y:Qt,size:un,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:Jt,y:Qt,size:un,rotation:-Math.PI/2}):this._basicCornersRounded({x:Jt,y:Qt,size:un,rotation:Math.PI/2})},Vt}();const Ct=gt;var Tt=function(){return Tt=Object.assign||function(Vt){for(var $t,Jt=1,Qt=arguments.length;Jt<Qt;Jt++)for(var un in $t=arguments[Jt])Object.prototype.hasOwnProperty.call($t,un)&&(Vt[un]=$t[un]);return Vt},Tt.apply(this,arguments)},_t=function(){function Vt($t){var Jt=$t.svg,Qt=$t.type;this._svg=Jt,this._type=Qt}return Vt.prototype.draw=function($t,Jt,Qt,un){var xn;switch(this._type){case"square":xn=this._drawSquare;break;case"extra-rounded":xn=this._drawExtraRounded;break;default:xn=this._drawDot}xn.call(this,{x:$t,y:Jt,size:Qt,rotation:un})},Vt.prototype._rotateFigure=function($t){var Jt,Qt=$t.x,un=$t.y,xn=$t.size,Rn=$t.rotation,pn=Rn===void 0?0:Rn,En=Qt+xn/2,jn=un+xn/2;(0,$t.draw)(),(Jt=this._element)===null||Jt===void 0||Jt.setAttribute("transform","rotate("+180*pn/Math.PI+","+En+","+jn+")")},Vt.prototype._basicDot=function($t){var Jt=this,Qt=$t.size,un=$t.x,xn=$t.y,Rn=Qt/7;this._rotateFigure(Tt(Tt({},$t),{draw:function(){Jt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Jt._element.setAttribute("clip-rule","evenodd"),Jt._element.setAttribute("d","M "+(un+Qt/2)+" "+xn+"a "+Qt/2+" "+Qt/2+" 0 1 0 0.1 0zm 0 "+Rn+"a "+(Qt/2-Rn)+" "+(Qt/2-Rn)+" 0 1 1 -0.1 0Z")}}))},Vt.prototype._basicSquare=function($t){var Jt=this,Qt=$t.size,un=$t.x,xn=$t.y,Rn=Qt/7;this._rotateFigure(Tt(Tt({},$t),{draw:function(){Jt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Jt._element.setAttribute("clip-rule","evenodd"),Jt._element.setAttribute("d","M "+un+" "+xn+"v "+Qt+"h "+Qt+"v "+-Qt+"zM "+(un+Rn)+" "+(xn+Rn)+"h "+(Qt-2*Rn)+"v "+(Qt-2*Rn)+"h "+(2*Rn-Qt)+"z")}}))},Vt.prototype._basicExtraRounded=function($t){var Jt=this,Qt=$t.size,un=$t.x,xn=$t.y,Rn=Qt/7;this._rotateFigure(Tt(Tt({},$t),{draw:function(){Jt._element=document.createElementNS("http://www.w3.org/2000/svg","path"),Jt._element.setAttribute("clip-rule","evenodd"),Jt._element.setAttribute("d","M "+un+" "+(xn+2.5*Rn)+"v "+2*Rn+"a "+2.5*Rn+" "+2.5*Rn+", 0, 0, 0, "+2.5*Rn+" "+2.5*Rn+"h "+2*Rn+"a "+2.5*Rn+" "+2.5*Rn+", 0, 0, 0, "+2.5*Rn+" "+2.5*-Rn+"v "+-2*Rn+"a "+2.5*Rn+" "+2.5*Rn+", 0, 0, 0, "+2.5*-Rn+" "+2.5*-Rn+"h "+-2*Rn+"a "+2.5*Rn+" "+2.5*Rn+", 0, 0, 0, "+2.5*-Rn+" "+2.5*Rn+"M "+(un+2.5*Rn)+" "+(xn+Rn)+"h "+2*Rn+"a "+1.5*Rn+" "+1.5*Rn+", 0, 0, 1, "+1.5*Rn+" "+1.5*Rn+"v "+2*Rn+"a "+1.5*Rn+" "+1.5*Rn+", 0, 0, 1, "+1.5*-Rn+" "+1.5*Rn+"h "+-2*Rn+"a "+1.5*Rn+" "+1.5*Rn+", 0, 0, 1, "+1.5*-Rn+" "+1.5*-Rn+"v "+-2*Rn+"a "+1.5*Rn+" "+1.5*Rn+", 0, 0, 1, "+1.5*Rn+" "+1.5*-Rn)}}))},Vt.prototype._drawDot=function($t){var Jt=$t.x,Qt=$t.y,un=$t.size,xn=$t.rotation;this._basicDot({x:Jt,y:Qt,size:un,rotation:xn})},Vt.prototype._drawSquare=function($t){var Jt=$t.x,Qt=$t.y,un=$t.size,xn=$t.rotation;this._basicSquare({x:Jt,y:Qt,size:un,rotation:xn})},Vt.prototype._drawExtraRounded=function($t){var Jt=$t.x,Qt=$t.y,un=$t.size,xn=$t.rotation;this._basicExtraRounded({x:Jt,y:Qt,size:un,rotation:xn})},Vt}();const Bt=_t;var Dt=function(){return Dt=Object.assign||function(Vt){for(var $t,Jt=1,Qt=arguments.length;Jt<Qt;Jt++)for(var un in $t=arguments[Jt])Object.prototype.hasOwnProperty.call($t,un)&&(Vt[un]=$t[un]);return Vt},Dt.apply(this,arguments)},Ot=function(){function Vt($t){var Jt=$t.svg,Qt=$t.type;this._svg=Jt,this._type=Qt}return Vt.prototype.draw=function($t,Jt,Qt,un){(this._type==="square"?this._drawSquare:this._drawDot).call(this,{x:$t,y:Jt,size:Qt,rotation:un})},Vt.prototype._rotateFigure=function($t){var Jt,Qt=$t.x,un=$t.y,xn=$t.size,Rn=$t.rotation,pn=Rn===void 0?0:Rn,En=Qt+xn/2,jn=un+xn/2;(0,$t.draw)(),(Jt=this._element)===null||Jt===void 0||Jt.setAttribute("transform","rotate("+180*pn/Math.PI+","+En+","+jn+")")},Vt.prototype._basicDot=function($t){var Jt=this,Qt=$t.size,un=$t.x,xn=$t.y;this._rotateFigure(Dt(Dt({},$t),{draw:function(){Jt._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),Jt._element.setAttribute("cx",String(un+Qt/2)),Jt._element.setAttribute("cy",String(xn+Qt/2)),Jt._element.setAttribute("r",String(Qt/2))}}))},Vt.prototype._basicSquare=function($t){var Jt=this,Qt=$t.size,un=$t.x,xn=$t.y;this._rotateFigure(Dt(Dt({},$t),{draw:function(){Jt._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),Jt._element.setAttribute("x",String(un)),Jt._element.setAttribute("y",String(xn)),Jt._element.setAttribute("width",String(Qt)),Jt._element.setAttribute("height",String(Qt))}}))},Vt.prototype._drawDot=function($t){var Jt=$t.x,Qt=$t.y,un=$t.size,xn=$t.rotation;this._basicDot({x:Jt,y:Qt,size:un,rotation:xn})},Vt.prototype._drawSquare=function($t){var Jt=$t.x,Qt=$t.y,un=$t.size,xn=$t.rotation;this._basicSquare({x:Jt,y:Qt,size:un,rotation:xn})},Vt}();const mt=Ot,bt="circle";var Et=function(Vt,$t,Jt,Qt){return new(Jt||(Jt=Promise))(function(un,xn){function Rn(jn){try{En(Qt.next(jn))}catch(Ln){xn(Ln)}}function pn(jn){try{En(Qt.throw(jn))}catch(Ln){xn(Ln)}}function En(jn){var Ln;jn.done?un(jn.value):(Ln=jn.value,Ln instanceof Jt?Ln:new Jt(function(Nn){Nn(Ln)})).then(Rn,pn)}En((Qt=Qt.apply(Vt,[])).next())})},Rt=function(Vt,$t){var Jt,Qt,un,xn,Rn={label:0,sent:function(){if(1&un[0])throw un[1];return un[1]},trys:[],ops:[]};return xn={next:pn(0),throw:pn(1),return:pn(2)},typeof Symbol=="function"&&(xn[Symbol.iterator]=function(){return this}),xn;function pn(En){return function(jn){return function(Ln){if(Jt)throw new TypeError("Generator is already executing.");for(;Rn;)try{if(Jt=1,Qt&&(un=2&Ln[0]?Qt.return:Ln[0]?Qt.throw||((un=Qt.return)&&un.call(Qt),0):Qt.next)&&!(un=un.call(Qt,Ln[1])).done)return un;switch(Qt=0,un&&(Ln=[2&Ln[0],un.value]),Ln[0]){case 0:case 1:un=Ln;break;case 4:return Rn.label++,{value:Ln[1],done:!1};case 5:Rn.label++,Qt=Ln[1],Ln=[0];continue;case 7:Ln=Rn.ops.pop(),Rn.trys.pop();continue;default:if(!((un=(un=Rn.trys).length>0&&un[un.length-1])||Ln[0]!==6&&Ln[0]!==2)){Rn=0;continue}if(Ln[0]===3&&(!un||Ln[1]>un[0]&&Ln[1]<un[3])){Rn.label=Ln[1];break}if(Ln[0]===6&&Rn.label<un[1]){Rn.label=un[1],un=Ln;break}if(un&&Rn.label<un[2]){Rn.label=un[2],Rn.ops.push(Ln);break}un[2]&&Rn.ops.pop(),Rn.trys.pop();continue}Ln=$t.call(Vt,Rn)}catch(Nn){Ln=[6,Nn],Qt=0}finally{Jt=un=0}if(5&Ln[0])throw Ln[1];return{value:Ln[0]?Ln[1]:void 0,done:!0}}([En,jn])}}},St=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],At=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const kt=function(){function Vt($t){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String($t.width)),this._element.setAttribute("height",String($t.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._instanceId=Vt.instanceCount++,this._options=$t}return Object.defineProperty(Vt.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(Vt.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),Vt.prototype.getElement=function(){return this._element},Vt.prototype.drawQR=function($t){return Et(this,void 0,void 0,function(){var Jt,Qt,un,xn,Rn,pn,En,jn,Ln,Nn,lr=this;return Rt(this,function(Jn){switch(Jn.label){case 0:return Jt=$t.getModuleCount(),Qt=Math.min(this._options.width,this._options.height)-2*this._options.margin,un=this._options.shape===bt?Qt/Math.sqrt(2):Qt,xn=un/Jt,Rn={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=$t,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Jn.sent(),!this._image)return[2];pn=this._options,En=pn.imageOptions,jn=pn.qrOptions,Ln=En.imageSize*ht[jn.errorCorrectionLevel],Nn=Math.floor(Ln*Jt*Jt),Rn=function(ln){var _n=ln.originalHeight,Bn=ln.originalWidth,Un=ln.maxHiddenDots,Hn=ln.maxHiddenAxisDots,cn=ln.dotSize,Kt={x:0,y:0},Pt={x:0,y:0};if(_n<=0||Bn<=0||Un<=0||cn<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var sn=_n/Bn;return Kt.x=Math.floor(Math.sqrt(Un/sn)),Kt.x<=0&&(Kt.x=1),Hn&&Hn<Kt.x&&(Kt.x=Hn),Kt.x%2==0&&Kt.x--,Pt.x=Kt.x*cn,Kt.y=1+2*Math.ceil((Kt.x*sn-1)/2),Pt.y=Math.round(Pt.x*sn),(Kt.y*Kt.x>Un||Hn&&Hn<Kt.y)&&(Hn&&Hn<Kt.y?(Kt.y=Hn,Kt.y%2==0&&Kt.x--):Kt.y-=2,Pt.y=Kt.y*cn,Kt.x=1+2*Math.ceil((Kt.y/sn-1)/2),Pt.x=Math.round(Pt.y/sn)),{height:Pt.y,width:Pt.x,hideYDots:Kt.y,hideXDots:Kt.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Nn,maxHiddenAxisDots:Jt-14,dotSize:xn}),Jn.label=2;case 2:return this.drawBackground(),this.drawDots(function(ln,_n){var Bn,Un,Hn,cn,Kt,Pt;return!(lr._options.imageOptions.hideBackgroundDots&&ln>=(Jt-Rn.hideXDots)/2&&ln<(Jt+Rn.hideXDots)/2&&_n>=(Jt-Rn.hideYDots)/2&&_n<(Jt+Rn.hideYDots)/2||!((Bn=St[ln])===null||Bn===void 0)&&Bn[_n]||!((Un=St[ln-Jt+7])===null||Un===void 0)&&Un[_n]||!((Hn=St[ln])===null||Hn===void 0)&&Hn[_n-Jt+7]||!((cn=At[ln])===null||cn===void 0)&&cn[_n]||!((Kt=At[ln-Jt+7])===null||Kt===void 0)&&Kt[_n]||!((Pt=At[ln])===null||Pt===void 0)&&Pt[_n-Jt+7])}),this.drawCorners(),this._options.image?[4,this.drawImage({width:Rn.width,height:Rn.height,count:Jt,dotSize:xn})]:[3,4];case 3:Jn.sent(),Jn.label=4;case 4:return[2]}})})},Vt.prototype.drawBackground=function(){var $t,Jt,Qt,un=this._element,xn=this._options;if(un){var Rn=($t=xn.backgroundOptions)===null||$t===void 0?void 0:$t.gradient,pn=(Jt=xn.backgroundOptions)===null||Jt===void 0?void 0:Jt.color;if((Rn||pn)&&this._createColor({options:Rn,color:pn,additionalRotation:0,x:0,y:0,height:xn.height,width:xn.width,name:"background-color"}),(Qt=xn.backgroundOptions)===null||Qt===void 0?void 0:Qt.round){var En=Math.min(xn.width,xn.height),jn=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),jn.setAttribute("x",String((xn.width-En)/2)),jn.setAttribute("y",String((xn.height-En)/2)),jn.setAttribute("width",String(En)),jn.setAttribute("height",String(En)),jn.setAttribute("rx",String(En/2*xn.backgroundOptions.round)),this._backgroundClipPath.appendChild(jn)}}},Vt.prototype.drawDots=function($t){var Jt,Qt,un=this;if(!this._qr)throw"QR code is not defined";var xn=this._options,Rn=this._qr.getModuleCount();if(Rn>xn.width||Rn>xn.height)throw"The canvas is too small.";var pn=Math.min(xn.width,xn.height)-2*xn.margin,En=(xn.shape===bt?pn/Math.sqrt(2):pn)/Rn,jn=(xn.width-Rn*En)/2,Ln=(xn.height-Rn*En)/2,Nn=new Ct({svg:this._element,type:xn.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color-"+this._instanceId),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(Jt=xn.dotsOptions)===null||Jt===void 0?void 0:Jt.gradient,color:xn.dotsOptions.color,additionalRotation:0,x:0,y:0,height:xn.height,width:xn.width,name:"dot-color-"+this._instanceId});for(var lr=function(Cn){for(var gn=function(Wn){return $t&&!$t(Cn,Wn)?"continue":!((Qt=Jn._qr)===null||Qt===void 0)&&Qt.isDark(Cn,Wn)?(Nn.draw(jn+Cn*En,Ln+Wn*En,En,function(er,In){return!(Cn+er<0||Wn+In<0||Cn+er>=Rn||Wn+In>=Rn)&&!($t&&!$t(Cn+er,Wn+In))&&!!un._qr&&un._qr.isDark(Cn+er,Wn+In)}),void(Nn._element&&Jn._dotsClipPath&&Jn._dotsClipPath.appendChild(Nn._element))):"continue"},Pn=0;Pn<Rn;Pn++)gn(Pn)},Jn=this,ln=0;ln<Rn;ln++)lr(ln);if(xn.shape===bt){var _n=Math.floor((pn/En-Rn)/2),Bn=Rn+2*_n,Un=jn-_n*En,Hn=Ln-_n*En,cn=[],Kt=Math.floor(Bn/2);for(ln=0;ln<Bn;ln++){cn[ln]=[];for(var Pt=0;Pt<Bn;Pt++)ln>=_n-1&&ln<=Bn-_n&&Pt>=_n-1&&Pt<=Bn-_n||Math.sqrt((ln-Kt)*(ln-Kt)+(Pt-Kt)*(Pt-Kt))>Kt?cn[ln][Pt]=0:cn[ln][Pt]=this._qr.isDark(Pt-2*_n<0?Pt:Pt>=Rn?Pt-2*_n:Pt-_n,ln-2*_n<0?ln:ln>=Rn?ln-2*_n:ln-_n)?1:0}var sn=function(Cn){for(var gn=function(Wn){if(!cn[Cn][Wn])return"continue";Nn.draw(Un+Cn*En,Hn+Wn*En,En,function(er,In){var zn;return!!(!((zn=cn[Cn+er])===null||zn===void 0)&&zn[Wn+In])}),Nn._element&&Tn._dotsClipPath&&Tn._dotsClipPath.appendChild(Nn._element)},Pn=0;Pn<Bn;Pn++)gn(Pn)},Tn=this;for(ln=0;ln<Bn;ln++)sn(ln)}},Vt.prototype.drawCorners=function(){var $t=this;if(!this._qr)throw"QR code is not defined";var Jt=this._element,Qt=this._options;if(!Jt)throw"Element code is not defined";var un=this._qr.getModuleCount(),xn=Math.min(Qt.width,Qt.height)-2*Qt.margin,Rn=(Qt.shape===bt?xn/Math.sqrt(2):xn)/un,pn=7*Rn,En=3*Rn,jn=(Qt.width-un*Rn)/2,Ln=(Qt.height-un*Rn)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(Nn){var lr,Jn,ln,_n,Bn,Un,Hn,cn,Kt,Pt,sn,Tn,Cn=Nn[0],gn=Nn[1],Pn=Nn[2],Wn=jn+Cn*Rn*(un-7),er=Ln+gn*Rn*(un-7),In=$t._dotsClipPath,zn=$t._dotsClipPath;if((!((lr=Qt.cornersSquareOptions)===null||lr===void 0)&&lr.gradient||!((Jn=Qt.cornersSquareOptions)===null||Jn===void 0)&&Jn.color)&&((In=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Cn+"-"+gn),$t._defs.appendChild(In),$t._cornersSquareClipPath=$t._cornersDotClipPath=zn=In,$t._createColor({options:(ln=Qt.cornersSquareOptions)===null||ln===void 0?void 0:ln.gradient,color:(_n=Qt.cornersSquareOptions)===null||_n===void 0?void 0:_n.color,additionalRotation:Pn,x:Wn,y:er,height:pn,width:pn,name:"corners-square-color-"+Cn+"-"+gn})),(Bn=Qt.cornersSquareOptions)===null||Bn===void 0?void 0:Bn.type){var rr=new Bt({svg:$t._element,type:Qt.cornersSquareOptions.type});rr.draw(Wn,er,pn,Pn),rr._element&&In&&In.appendChild(rr._element)}else for(var xr=new Ct({svg:$t._element,type:Qt.dotsOptions.type}),Ur=function(on){for(var Ht=function(tn){if(!(!((Un=St[on])===null||Un===void 0)&&Un[tn]))return"continue";xr.draw(Wn+on*Rn,er+tn*Rn,Rn,function(fn,jt){var zt;return!!(!((zt=St[on+fn])===null||zt===void 0)&&zt[tn+jt])}),xr._element&&In&&In.appendChild(xr._element)},Zt=0;Zt<St[on].length;Zt++)Ht(Zt)},_r=0;_r<St.length;_r++)Ur(_r);if((!((Hn=Qt.cornersDotOptions)===null||Hn===void 0)&&Hn.gradient||!((cn=Qt.cornersDotOptions)===null||cn===void 0)&&cn.color)&&((zn=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Cn+"-"+gn),$t._defs.appendChild(zn),$t._cornersDotClipPath=zn,$t._createColor({options:(Kt=Qt.cornersDotOptions)===null||Kt===void 0?void 0:Kt.gradient,color:(Pt=Qt.cornersDotOptions)===null||Pt===void 0?void 0:Pt.color,additionalRotation:Pn,x:Wn+2*Rn,y:er+2*Rn,height:En,width:En,name:"corners-dot-color-"+Cn+"-"+gn})),(sn=Qt.cornersDotOptions)===null||sn===void 0?void 0:sn.type){var Mr=new mt({svg:$t._element,type:Qt.cornersDotOptions.type});Mr.draw(Wn+2*Rn,er+2*Rn,En,Pn),Mr._element&&zn&&zn.appendChild(Mr._element)}else{xr=new Ct({svg:$t._element,type:Qt.dotsOptions.type});var Nr=function(on){for(var Ht=function(tn){if(!(!((Tn=At[on])===null||Tn===void 0)&&Tn[tn]))return"continue";xr.draw(Wn+on*Rn,er+tn*Rn,Rn,function(fn,jt){var zt;return!!(!((zt=At[on+fn])===null||zt===void 0)&&zt[tn+jt])}),xr._element&&zn&&zn.appendChild(xr._element)},Zt=0;Zt<At[on].length;Zt++)Ht(Zt)};for(_r=0;_r<At.length;_r++)Nr(_r)}})},Vt.prototype.loadImage=function(){var $t=this;return new Promise(function(Jt,Qt){var un=$t._options,xn=new Image;if(!un.image)return Qt("Image is not defined");typeof un.imageOptions.crossOrigin=="string"&&(xn.crossOrigin=un.imageOptions.crossOrigin),$t._image=xn,xn.onload=function(){Jt()},xn.src=un.image})},Vt.prototype.drawImage=function($t){var Jt=$t.width,Qt=$t.height,un=$t.count,xn=$t.dotSize;return Et(this,void 0,void 0,function(){var Rn,pn,En,jn,Ln,Nn,lr,Jn,ln;return Rt(this,function(_n){switch(_n.label){case 0:return Rn=this._options,pn=(Rn.width-un*xn)/2,En=(Rn.height-un*xn)/2,jn=pn+Rn.imageOptions.margin+(un*xn-Jt)/2,Ln=En+Rn.imageOptions.margin+(un*xn-Qt)/2,Nn=Jt-2*Rn.imageOptions.margin,lr=Qt-2*Rn.imageOptions.margin,(Jn=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(jn)),Jn.setAttribute("y",String(Ln)),Jn.setAttribute("width",Nn+"px"),Jn.setAttribute("height",lr+"px"),[4,ft(Rn.image||"")];case 1:return ln=_n.sent(),Jn.setAttribute("href",ln||""),this._element.appendChild(Jn),[2]}})})},Vt.prototype._createColor=function($t){var Jt=$t.options,Qt=$t.color,un=$t.additionalRotation,xn=$t.x,Rn=$t.y,pn=$t.height,En=$t.width,jn=$t.name,Ln=En>pn?En:pn,Nn=document.createElementNS("http://www.w3.org/2000/svg","rect");if(Nn.setAttribute("x",String(xn)),Nn.setAttribute("y",String(Rn)),Nn.setAttribute("height",String(pn)),Nn.setAttribute("width",String(En)),Nn.setAttribute("clip-path","url('#clip-path-"+jn+"')"),Jt){var lr;if(Jt.type==="radial")(lr=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",jn),lr.setAttribute("gradientUnits","userSpaceOnUse"),lr.setAttribute("fx",String(xn+En/2)),lr.setAttribute("fy",String(Rn+pn/2)),lr.setAttribute("cx",String(xn+En/2)),lr.setAttribute("cy",String(Rn+pn/2)),lr.setAttribute("r",String(Ln/2));else{var Jn=((Jt.rotation||0)+un)%(2*Math.PI),ln=(Jn+2*Math.PI)%(2*Math.PI),_n=xn+En/2,Bn=Rn+pn/2,Un=xn+En/2,Hn=Rn+pn/2;ln>=0&&ln<=.25*Math.PI||ln>1.75*Math.PI&&ln<=2*Math.PI?(_n-=En/2,Bn-=pn/2*Math.tan(Jn),Un+=En/2,Hn+=pn/2*Math.tan(Jn)):ln>.25*Math.PI&&ln<=.75*Math.PI?(Bn-=pn/2,_n-=En/2/Math.tan(Jn),Hn+=pn/2,Un+=En/2/Math.tan(Jn)):ln>.75*Math.PI&&ln<=1.25*Math.PI?(_n+=En/2,Bn+=pn/2*Math.tan(Jn),Un-=En/2,Hn-=pn/2*Math.tan(Jn)):ln>1.25*Math.PI&&ln<=1.75*Math.PI&&(Bn+=pn/2,_n+=En/2/Math.tan(Jn),Hn-=pn/2,Un-=En/2/Math.tan(Jn)),(lr=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",jn),lr.setAttribute("gradientUnits","userSpaceOnUse"),lr.setAttribute("x1",String(Math.round(_n))),lr.setAttribute("y1",String(Math.round(Bn))),lr.setAttribute("x2",String(Math.round(Un))),lr.setAttribute("y2",String(Math.round(Hn)))}Jt.colorStops.forEach(function(cn){var Kt=cn.offset,Pt=cn.color,sn=document.createElementNS("http://www.w3.org/2000/svg","stop");sn.setAttribute("offset",100*Kt+"%"),sn.setAttribute("stop-color",Pt),lr.appendChild(sn)}),Nn.setAttribute("fill","url('#"+jn+"')"),this._defs.appendChild(lr)}else Qt&&Nn.setAttribute("fill",Qt);this._element.appendChild(Nn)},Vt.instanceCount=0,Vt}(),wt="canvas";for(var vt={},It=0;It<=40;It++)vt[It]=It;const nn={type:wt,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:vt[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var Gt=function(){return Gt=Object.assign||function(Vt){for(var $t,Jt=1,Qt=arguments.length;Jt<Qt;Jt++)for(var un in $t=arguments[Jt])Object.prototype.hasOwnProperty.call($t,un)&&(Vt[un]=$t[un]);return Vt},Gt.apply(this,arguments)};function rn(Vt){var $t=Gt({},Vt);if(!$t.colorStops||!$t.colorStops.length)throw"Field 'colorStops' is required in gradient";return $t.rotation?$t.rotation=Number($t.rotation):$t.rotation=0,$t.colorStops=$t.colorStops.map(function(Jt){return Gt(Gt({},Jt),{offset:Number(Jt.offset)})}),$t}function Nt(Vt){var $t=Gt({},Vt);return $t.width=Number($t.width),$t.height=Number($t.height),$t.margin=Number($t.margin),$t.imageOptions=Gt(Gt({},$t.imageOptions),{hideBackgroundDots:!!$t.imageOptions.hideBackgroundDots,imageSize:Number($t.imageOptions.imageSize),margin:Number($t.imageOptions.margin)}),$t.margin>Math.min($t.width,$t.height)&&($t.margin=Math.min($t.width,$t.height)),$t.dotsOptions=Gt({},$t.dotsOptions),$t.dotsOptions.gradient&&($t.dotsOptions.gradient=rn($t.dotsOptions.gradient)),$t.cornersSquareOptions&&($t.cornersSquareOptions=Gt({},$t.cornersSquareOptions),$t.cornersSquareOptions.gradient&&($t.cornersSquareOptions.gradient=rn($t.cornersSquareOptions.gradient))),$t.cornersDotOptions&&($t.cornersDotOptions=Gt({},$t.cornersDotOptions),$t.cornersDotOptions.gradient&&($t.cornersDotOptions.gradient=rn($t.cornersDotOptions.gradient))),$t.backgroundOptions&&($t.backgroundOptions=Gt({},$t.backgroundOptions),$t.backgroundOptions.gradient&&($t.backgroundOptions.gradient=rn($t.backgroundOptions.gradient))),$t}var Xt=Qe(192),Ut=Qe.n(Xt),Yt=function(Vt,$t,Jt,Qt){return new(Jt||(Jt=Promise))(function(un,xn){function Rn(jn){try{En(Qt.next(jn))}catch(Ln){xn(Ln)}}function pn(jn){try{En(Qt.throw(jn))}catch(Ln){xn(Ln)}}function En(jn){var Ln;jn.done?un(jn.value):(Ln=jn.value,Ln instanceof Jt?Ln:new Jt(function(Nn){Nn(Ln)})).then(Rn,pn)}En((Qt=Qt.apply(Vt,[])).next())})},mn=function(Vt,$t){var Jt,Qt,un,xn,Rn={label:0,sent:function(){if(1&un[0])throw un[1];return un[1]},trys:[],ops:[]};return xn={next:pn(0),throw:pn(1),return:pn(2)},typeof Symbol=="function"&&(xn[Symbol.iterator]=function(){return this}),xn;function pn(En){return function(jn){return function(Ln){if(Jt)throw new TypeError("Generator is already executing.");for(;Rn;)try{if(Jt=1,Qt&&(un=2&Ln[0]?Qt.return:Ln[0]?Qt.throw||((un=Qt.return)&&un.call(Qt),0):Qt.next)&&!(un=un.call(Qt,Ln[1])).done)return un;switch(Qt=0,un&&(Ln=[2&Ln[0],un.value]),Ln[0]){case 0:case 1:un=Ln;break;case 4:return Rn.label++,{value:Ln[1],done:!1};case 5:Rn.label++,Qt=Ln[1],Ln=[0];continue;case 7:Ln=Rn.ops.pop(),Rn.trys.pop();continue;default:if(!((un=(un=Rn.trys).length>0&&un[un.length-1])||Ln[0]!==6&&Ln[0]!==2)){Rn=0;continue}if(Ln[0]===3&&(!un||Ln[1]>un[0]&&Ln[1]<un[3])){Rn.label=Ln[1];break}if(Ln[0]===6&&Rn.label<un[1]){Rn.label=un[1],un=Ln;break}if(un&&Rn.label<un[2]){Rn.label=un[2],Rn.ops.push(Ln);break}un[2]&&Rn.ops.pop(),Rn.trys.pop();continue}Ln=$t.call(Vt,Rn)}catch(Nn){Ln=[6,Nn],Qt=0}finally{Jt=un=0}if(5&Ln[0])throw Ln[1];return{value:Ln[0]?Ln[1]:void 0,done:!0}}([En,jn])}}};const hn=function(){function Vt($t){this._options=$t?Nt(lt(nn,$t)):nn,this.update()}return Vt._clearContainer=function($t){$t&&($t.innerHTML="")},Vt.prototype._setupSvg=function(){var $t=this;if(this._qr){var Jt=new kt(this._options);this._svg=Jt.getElement(),this._svgDrawingPromise=Jt.drawQR(this._qr).then(function(){var Qt;$t._svg&&((Qt=$t._extension)===null||Qt===void 0||Qt.call($t,Jt.getElement(),$t._options))})}},Vt.prototype._setupCanvas=function(){var $t,Jt=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=($t=this._svgDrawingPromise)===null||$t===void 0?void 0:$t.then(function(){if(Jt._svg){var Qt=Jt._svg,un=new XMLSerializer().serializeToString(Qt),xn="data:image/svg+xml;base64,"+btoa(un),Rn=new Image;return new Promise(function(pn){Rn.onload=function(){var En,jn;(jn=(En=Jt._canvas)===null||En===void 0?void 0:En.getContext("2d"))===null||jn===void 0||jn.drawImage(Rn,0,0),pn()},Rn.src=xn})}}))},Vt.prototype._getElement=function($t){return $t===void 0&&($t="png"),Yt(this,void 0,void 0,function(){return mn(this,function(Jt){switch(Jt.label){case 0:if(!this._qr)throw"QR code is empty";return $t.toLowerCase()!=="svg"?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return Jt.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return Jt.sent(),[2,this._canvas]}})})},Vt.prototype.update=function($t){Vt._clearContainer(this._container),this._options=$t?Nt(lt(this._options,$t)):this._options,this._options.data&&(this._qr=Ut()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(Jt){switch(!0){case/^[0-9]*$/.test(Jt):return Ze;case/^[0-9A-Z $%*+\-./:]*$/.test(Jt):return nt;default:return tt}}(this._options.data)),this._qr.make(),this._options.type===wt?this._setupCanvas():this._setupSvg(),this.append(this._container))},Vt.prototype.append=function($t){if($t){if(typeof $t.appendChild!="function")throw"Container should be a single DOM node";this._options.type===wt?this._canvas&&$t.appendChild(this._canvas):this._svg&&$t.appendChild(this._svg),this._container=$t}},Vt.prototype.applyExtension=function($t){if(!$t)throw"Extension function should be defined.";this._extension=$t,this.update()},Vt.prototype.deleteExtension=function(){this._extension=void 0,this.update()},Vt.prototype.getRawData=function($t){return $t===void 0&&($t="png"),Yt(this,void 0,void 0,function(){var Jt,Qt,un;return mn(this,function(xn){switch(xn.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement($t)];case 1:return(Jt=xn.sent())?$t.toLowerCase()==="svg"?(Qt=new XMLSerializer,un=Qt.serializeToString(Jt),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
|
|
319
319
|
`+un],{type:"image/svg+xml"})]):[2,new Promise(function(Rn){return Jt.toBlob(Rn,"image/"+$t,1)})]:[2,null]}})})},Vt.prototype.download=function($t){return Yt(this,void 0,void 0,function(){var Jt,Qt,un,xn,Rn;return mn(this,function(pn){switch(pn.label){case 0:if(!this._qr)throw"QR code is empty";return Jt="png",Qt="qr",typeof $t=="string"?(Jt=$t,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof $t=="object"&&$t!==null&&($t.name&&(Qt=$t.name),$t.extension&&(Jt=$t.extension)),[4,this._getElement(Jt)];case 1:return(un=pn.sent())?(Jt.toLowerCase()==="svg"?(xn=new XMLSerializer,Rn=`<?xml version="1.0" standalone="no"?>\r
|
|
@@ -2900,4 +2900,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2900
2900
|
padding-top: 16px;
|
|
2901
2901
|
${Be=>Be.scrollable?"":"overflow: hidden"};
|
|
2902
2902
|
}
|
|
2903
|
-
`;function GlobalSubscriber(){const{t:Be}=T$7(),{session:Me}=useSessionContext$1(),{info:qe,refresh:He}=useNodeContext();return useSubscription(constantExports.TeamEvents.userUpdated,({teamDid:Ge,user:Je})=>{Ge===qe.did&&Je&&!Je.approved&&Me&&Me.user&&Me.user.did===Je.did&&(H$7.warning(Be("session.blockAccess"),{autoHideDuration:10*1e3}),Me.logout())}),useSubscription(constantExports$1.EVENTS.NOTIFICATION_CREATE,Ge=>{Ge.entityType==="node"&&He({silent:!0})}),useSubscription(constantExports$1.EVENTS.NODE_UPDATED,()=>{He({silent:!0})}),null}const authorize=({user:Be,launchType:Me,nftId:qe})=>{if(!Be)return!1;if(Me==="serverless"){if(!qe)throw new Error("nftId is required");return Be?.controller?.nftId===qe}return(Be.permissions||[]).includes("mutate_blocklets")},isServerlessBlockletInstalled=Be=>Be.isGetBlocklet&&Be.runtimeBlocklet?.controller?.consumedAt,getRestoredAccessUrl=async Be=>{const Me=getBlockletUrls({blocklet:Be});let qe="";return qe=Me.find(He=>{try{const{hostname:Ge}=new URL(He);return urlEvaluationExports.isSlpDomain(Ge)}catch(Ge){return console.error(Ge),!1}}),qe||(qe=await getAccessibleUrl(Me)),qe},LaunchBlockletContext=reactExports.createContext({}),{Provider:Provider$1,Consumer:Consumer$1}=LaunchBlockletContext;function LaunchBlockletProvider({children:Be}){const{session:Me}=useSessionContext$1(),{t:qe}=T$7(),{api:He,info:Ge}=useNodeContext(),[Je]=useSearchParams(),Ye=Je.get("launchType"),Qe=Je.get("fromLauncher"),Ze=Je.get("blocklet_meta_url")||"",nt=Je.get("nftId")||"",tt=Je.get("from")||"",rt=Je.get("launcherSessionId")||"",ot=Je.get("launcherUrl")||"",at=tt==="url",lt=tt==="empty",ut=at||lt?"":new URL(Ze).origin,[dt,ct]=reactExports.useState({meta:null,appDid:Je.get("appDid")||null,sessionId:Je.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null,registryUrl:""}),ft=(mt,bt)=>ct(Et=>({...Et,appDid:mt,sessionId:bt})),ht=authorize({user:Me.user,launchType:Ye,nftId:nt}),[yt,gt]=reactExports.useState(null),[Ct,Tt]=reactExports.useState(!0),_t=reactExports.useMemo(()=>Ge?getServerUrl(Ge):"",[Ge]),Bt=async mt=>{if(!mt)throw new Error("appDid should not be empty");const{blocklet:bt}=await He.getBlocklet({input:{did:mt,attachConfig:!1}});if(!bt)return null;const Et=constantExports.BlockletStatus[bt.status],Rt=!!nt,St=Et<constantExports.BlockletStatus.installed,At=Et===constantExports.BlockletStatus.installed,kt=Et===constantExports.BlockletStatus.running;return ct(wt=>({...wt,isInstalled:At,isRunning:kt,isExternal:Rt,isInstalling:St})),{isInstalled:At,isRunning:kt,isExternal:Rt,isInstalling:St}},Dt=async()=>{if(Tt(!0),lt){ct(mt=>({...mt,meta:{title:Je.get("title")||"",description:Je.get("description")||""}})),Tt(!1);return}try{if(!Ze&&!lt)throw new Error(qe("common.invalidParam"));const[{meta:mt,isFree:bt,registryUrl:Et},{launcherSession:Rt,error:St}]=await Promise.all([He.getBlockletMetaFromUrl({input:{url:Ze,checkPrice:!0}}),rt?He.getLauncherSession({input:{launcherSessionId:rt,launcherUrl:ot}}):Promise.resolve({})]);if(rt&&!Rt)throw new Error(`Launch session invalid: ${St}`);if(!mt)throw new Error(qe("LaunchBlockletBlocklet.error.loadMetaFailed"));let At={};ht&&dt.appDid&&(At=await Bt(dt.appDid)),ct(kt=>({...kt,...At,meta:mt,isFree:bt,registryUrl:Et,launcherSession:Rt}))}catch(mt){console.error(mt),gt(mt.message)}finally{Tt(!1)}};reactExports.useEffect(()=>{Me?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Me?.user?.controller?.nftId!==nt&&Me.logout(),Dt()},[]),reactExports.useEffect(()=>{Ct||!dt.meta||(ht?dt.appDid&&Bt(dt.appDid).catch(mt=>{H$7.error(mt.message)}):(ct(mt=>({...mt,isInstalled:!1,isRunning:!1,isExternal:!1})),gt(null)))},[ht]);const Ot={meta:dt.meta,isFree:dt.isFree,appDid:dt.appDid,sessionId:dt.sessionId,isInstalling:dt.isInstalling,isInstalled:dt.isInstalled,isExternal:dt.isExternal,isRunning:dt.isRunning,serverUrl:_t,storeUrl:dt.registryUrl||ut,blockletMetaUrl:Ze,fromLauncher:Qe,loading:Ct,error:yt,api:He,getBlocklet:Bt,setAppDid:ft,launcherUrl:ot,launcherSession:dt.launcherSession,launcherSessionId:rt,launchType:Ye};return jsxRuntimeExports.jsx(Provider$1,{value:Ot,children:Be})}function useLaunchBlockletContext(){return reactExports.useContext(LaunchBlockletContext)}var useAsyncExports=requireUseAsync();const useAsync=getDefaultExportFromCjs$1(useAsyncExports);function useQuery(){return new URLSearchParams(useLocation().search)}const BlockletAppContext=reactExports.createContext(),{Provider,Consumer}=BlockletAppContext;function BlockletAppProvider({children:Be}){const qe=useQuery().get("blocklet_meta_url"),He=useAsync(async()=>{const{data:Je}=await axios.get(qe);return Je});if(He.loading)return jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})});const Ge={meta:He.value,error:He.error};return jsxRuntimeExports.jsx(Provider,{value:Ge,children:Be})}BlockletAppProvider.propTypes={children:o$i.any.isRequired};function useBlockletAppContext(){return reactExports.useContext(BlockletAppContext)}const Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./index-IlXLx7We.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),BlockletList=reactExports.lazy(()=>__vitePreload(()=>import("./index-CbEOHXQc.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,2,31,32,33,34,35,36,37,38]),import.meta.url)),BlockletRestore=reactExports.lazy(()=>__vitePreload(()=>import("./index-TwUe_Tvk.js"),__vite__mapDeps([39,40,41,42,43,44,23,6,35,45,46,47,19,15]),import.meta.url)),BlockletStore=reactExports.lazy(()=>__vitePreload(()=>import("./index-BsAylPTP.js"),__vite__mapDeps([48,6,49,50,51,52,17,15,53,31,32,54,36,35,55,45,56,4,19,23,24,25,57,58,26,59,60]),import.meta.url)),Settings=reactExports.lazy(()=>__vitePreload(()=>import("./index-DFdk3ofB.js"),__vite__mapDeps([61,62,59,63,64,65,26,7,8,9,10,11,12,13,14,15,16,17,18,19,66,22,56,4,2,67,6,68,69,70,71,36,20,72,52,73,74,75]),import.meta.url)),LogPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-BjWva3kW.js"),__vite__mapDeps([76,77,24,25,6]),import.meta.url)),TeamPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-BMFG6xYn.js"),__vite__mapDeps([78,62,79,15,16,17,18,6,80,81,82,83,84,85,53,22,86,36,87,7,8,9,10,11,12,13,14,19,88,89,37,24,25,90,91,30,31,32,26,4,92,93,71,2,50,45,94,95,96,44,97,98,99,100,101,102,103,73,104,105,1,56,106,107]),import.meta.url)),BlockletDetail=reactExports.lazy(()=>__vitePreload(()=>import("./detail-CNTenkKV.js"),__vite__mapDeps([108,62,20,21,6,19,22,23,24,25,26,53,109,85,60]),import.meta.url)),EULAPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-Cka3nP81.js"),[],import.meta.url)),Notifications=reactExports.lazy(()=>__vitePreload(()=>import("./index-9hx_-WS9.js"),[],import.meta.url)),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-C0ZKfJQm.js"),__vite__mapDeps([110,111,109,95,10,96,112,23]),import.meta.url)),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-DHL_Vi4i.js"),__vite__mapDeps([113,87,55,95,10,112,23,34]),import.meta.url)),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-DZ4p_r8e.js"),__vite__mapDeps([114,112,23]),import.meta.url)),BlockletLauncher=reactExports.lazy(()=>__vitePreload(()=>import("./index-Uzc8DiTP.js"),__vite__mapDeps([115,41,42,43,44,106,107,116,80,81,82,23,28,29,47,38,6,67,58]),import.meta.url)),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-BjhmwRPF.js"),__vite__mapDeps([117,109]),import.meta.url)),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./index-BMbE3uR8.js"),__vite__mapDeps([118,111,109,95,10,96,112]),import.meta.url)),Console=reactExports.lazy(()=>__vitePreload(()=>import("./index-BwKc3rqr.js"),[],import.meta.url)),AnalyticsPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-BOv_-aOp.js"),__vite__mapDeps([119,62,120,121,51,52,122,13,123,124,92,93,9,71,7,8,10,11,12,14,15,16,17,18,19,125,126,75,6,102,25]),import.meta.url)),GenKeyPair=reactExports.lazy(()=>__vitePreload(()=>import("./index-DXLVGozs.js"),__vite__mapDeps([127,109]),import.meta.url));function useSharedContext(){const Be=useNodeContext(),{session:Me}=useSessionContext$1(),{wallet:qe}=d$e(),He=Me.user&&Me.user.did;return reactExports.useEffect(()=>{const Ge=getWsClient();return He?Ge.connect():Ge.isConnected()&&Ge.disconnect(),()=>{Ge.isConnected()&&Ge.disconnect()}},[He]),reactExports.useEffect(()=>{if(qe)return()=>{};const Ge=()=>{document.visibilityState==="visible"&&Me.refresh()};return document.addEventListener("visibilitychange",Ge),()=>{document.removeEventListener("visibilitychange",Ge)}},[]),{node:Be,session:Me}}function ProtectedApp(){const{t:Be}=T$7(),{node:Me,session:qe}=useSharedContext(),He=useLocation();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${He.pathname}${He.search}`)},[He]),reactExports.useEffect(()=>{qe?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&qe.logout()},[qe?.user?.role]);const Ge=jsxRuntimeExports.jsx(CircularProgress,{});if(Me.loading||qe.loading)return jsxRuntimeExports.jsx(o$g,{children:Ge});if(!Me.info.initialized)return getAuthMethodExports.getServerAuthMethod(Me.info)==="nft"?jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"verify-owner"}):jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(NodeConnectOwner,{})});if(Me.info.upgradeSessionId)return jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(MaintainProgress,{})});if(!qe.user)return jsxRuntimeExports.jsx(NodeLogin,{loadingEle:Ge});const Je=jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(BlockletsProvider,{children:jsxRuntimeExports.jsxs(NotificationProvider,{children:[jsxRuntimeExports.jsx(Health,{}),jsxRuntimeExports.jsx(CheckNodeStatus,{}),jsxRuntimeExports.jsx(GlobalSubscriber,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Je,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/dashboard",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.blocklets"),children:jsxRuntimeExports.jsx(BlockletList,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/:did/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Blocklets",children:jsxRuntimeExports.jsx(BlockletDetail,{})})}),jsxRuntimeExports.jsx(Route,{path:"/settings/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.setting"),children:jsxRuntimeExports.jsx(Settings,{})})}),jsxRuntimeExports.jsx(Route,{path:"/eula",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("setup.steps.eula"),children:jsxRuntimeExports.jsx(EULAPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/store",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.store"),children:jsxRuntimeExports.jsx(BlockletStore,{})})}),jsxRuntimeExports.jsx(Route,{path:"/console",element:jsxRuntimeExports.jsx(DashboardRoute,{title:`GraphQL ${Be("common.console")}`,scrollable:!1,fullWidth:!0,children:jsxRuntimeExports.jsx(Console,{})})}),jsxRuntimeExports.jsx(Route,{path:"/notifications",element:jsxRuntimeExports.jsx(DashboardRoute,{title:Be("common.notifications"),children:jsxRuntimeExports.jsx(Notifications,{})})}),jsxRuntimeExports.jsx(Route,{path:"/team/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.team"),children:jsxRuntimeExports.jsx(TeamPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/logs/:name?",element:jsxRuntimeExports.jsx(DashboardRoute,{scrollable:!1,fullWidth:!0,title:Be("common.logs"),children:jsxRuntimeExports.jsx(LogPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/analytics/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.analytics"),children:jsxRuntimeExports.jsx(AnalyticsPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/dashboard",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/team",element:jsxRuntimeExports.jsx(Navigate,{to:"/team/members",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/analytics",element:jsxRuntimeExports.jsx(Navigate,{to:"/analytics/traffic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/router",element:jsxRuntimeExports.jsx(Navigate,{to:"/router/rules",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/settings",element:jsxRuntimeExports.jsx(Navigate,{to:"/settings/basic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace",element:jsxRuntimeExports.jsx(Navigate,{to:"/store",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace/:did",element:jsxRuntimeExports.jsx(Navigate,{to:"/store/:did",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})]})})}function UnprotectedWrapper({children:Be}){const{node:Me,session:qe}=useSharedContext();return Me.loading||!qe.initialized&&qe.loading?jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):Me.info.upgradeSessionId?jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(MaintainProgress,{})}):Be}function App(){const{changeLocale:Be}=T$7(),Me=useQuery();reactExports.useEffect(()=>{const He=Me.get("locale");He&&["zh","en"].includes(He)&&Be(He)},[]);const qe=jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:qe,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(IssuePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LostPassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(ExchangePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:"/accept-server",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"accept-server"})})}),jsxRuntimeExports.jsx(Route,{path:"/gen-key-pair/",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(GenKeyPair,{})})}),jsxRuntimeExports.jsx(Route,{path:"/launch-blocklet/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LaunchBlockletProvider,{children:jsxRuntimeExports.jsx(BlockletLauncher,{})})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/restore/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(BlockletAppProvider,{children:jsxRuntimeExports.jsx(BlockletRestore,{})})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(Invite,{})})}),jsxRuntimeExports.jsx(Route,{path:"/*",element:jsxRuntimeExports.jsx(ProtectedApp,{})})]})})}function AppWrapper(){const Be=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return jsxRuntimeExports.jsx(BrowserRouter,{history:history$1,basename:Be,children:jsxRuntimeExports.jsx(Root,{children:jsxRuntimeExports.jsx(App,{})})})}const root=clientExports.createRoot(document.getElementById("root"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";register(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:prefix},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(Be){console.error("Error during service worker registration:",Be)}});export{$$4 as $,useNavigate as A,useSearchParams as B,CircularProgress as C,DialogContentText as D,useMediaQuery as E,libExports$3 as F,Grid$1 as G,H$7 as H,utilExports as I,Link$1 as J,BlockletAppAvatar as K,Link as L,Box as M,isEmpty as N,et as O,FormControl as P,InputLabel as Q,MenuItem as R,Select as S,Typography as T,Checkbox as U,Alert as V,WrappedDidAddress as W,formatError as X,o$g as Y,CheckIcon$2 as Z,propTypesExports as _,useSubscription as a,Menu as a$,api as a0,merge as a1,cloneDeep as a2,IconButton as a3,R$3 as a4,ListItemSecondaryAction as a5,List as a6,ListItem as a7,ListItemText as a8,getServerUrl as a9,ErrorBoundary as aA,k$1 as aB,formatRegistryLogoPath as aC,Icon as aD,ListItemIcon as aE,createSvgIcon as aF,ensureDomainAliases as aG,constantExports$1 as aH,getIp as aI,normalizePathPrefix as aJ,sortBy as aK,stringSortHandlerAsc as aL,getAccessUrl as aM,history$1 as aN,semver as aO,useReactive as aP,useAsyncEffect as aQ,InfoOutlinedIcon as aR,sleep as aS,checkInputByType as aT,FormControlLabel as aU,Stack$1 as aV,useAsync as aW,axios as aX,shouldCheckDomainStatus as aY,formatMountPoint as aZ,urlPathFriendly as a_,useBlockletAppContext as aa,getAuthMethodExports as ab,ConfirmDialog as ac,getRestoredAccessUrl as ad,setSessionToken as ae,isEqual as af,isServerlessBlockletInstalled as ag,Debug as ah,getWsClient as ai,useQuery as aj,getPathPrefix as ak,Global as al,Routes as am,Route as an,Navigate as ao,HeaderAddon as ap,SessionContext as aq,css as ar,$$5 as as,formatToDatetime as at,alpha$1 as au,getLaunchAgreementUrl as av,axios$2 as aw,useSessionContext$1 as ax,Tooltip as ay,getBlockletMetaUrl as az,constantExports as b,clsx$1 as b$,checkIsWildcardDomain as b0,Popover as b1,Card as b2,formatToDate as b3,sortDomains as b4,C$a as b5,Collapse as b6,CheckCircle as b7,styled as b8,isUrl as b9,BlockletAdminRoles as bA,isInstalling as bB,Badge as bC,createAppPassportSvg as bD,NavLink as bE,__vitePreload as bF,SetCache as bG,arrayIncludes$1 as bH,arrayIncludesWith as bI,cacheHas as bJ,baseUniq as bK,baseFlatten as bL,baseRest as bM,last as bN,arrayFilter as bO,isArrayLikeObject as bP,t$9 as bQ,isDownloading as bR,getBlockletUrl as bS,getBlockletUrlParams as bT,ButtonBase as bU,memoTheme as bV,emphasize as bW,generateUtilityClasses$1 as bX,generateUtilityClass$1 as bY,useDefaultProps as bZ,useSlotProps as b_,__awaiter as ba,__generator as bb,__spread as bc,getDefaultExportFromCjs$1 as bd,U$3 as be,dayjs$1 as bf,Divider as bg,isCertificateMatch as bh,FormHelperText as bi,FormGroup as bj,o$d as bk,NodeContext as bl,useParams as bm,useNodeContext$1 as bn,uniqBy as bo,l as bp,libExports$1 as bq,B$5 as br,o$a as bs,l$h as bt,BlockletAvatar as bu,ClickAwayListener as bv,f$8 as bw,createPassportSvg as bx,getWalletType as by,useCreation as bz,createCompounder as c,flat as c$,composeClasses as c0,__read as c1,toSlotDomain as c2,omit as c3,fixBlocklet as c4,isProtectedRole as c5,baseOrderBy as c6,isArray$1 as c7,rootShouldForwardProp as c8,useFormControl as c9,isFunction$2 as cA,Container$3 as cB,K$3 as cC,getLauncherBaseURL as cD,SvgIcon as cE,Buffer$1 as cF,parseURL as cG,withHttps as cH,useLaunchBlockletContext as cI,z$3 as cJ,authorize as cK,ArrowForwardIcon as cL,isNewStoreUrl as cM,getAccessibleUrl as cN,getBlockletLogoUrl as cO,t as cP,M$7 as cQ,__spreadArrays as cR,__assign as cS,h$6 as cT,useLocation as cU,l$8 as cV,useMount as cW,s$8 as cX,formatDateTime as cY,getExplorerLink as cZ,patchJsxToLocale as c_,createChainedFunction$1 as ca,useSlot as cb,capitalize$1 as cc,SwitchBase as cd,createSimplePaletteValueFilter as ce,useControlled as cf,useForkRef as cg,useId as ch,getBlockletUrls as ci,defaultCheckAccessible as cj,urlEvaluationExports as ck,memoize as cl,ButtonGroupContext as cm,ButtonGroupButtonContext as cn,useNotificationContext as co,utilExports$1 as cp,NotificationList as cq,useRequest as cr,useMemoizedFn as cs,isNumber$3 as ct,useLatest as cu,dayjs as cv,d$e as cw,Avatar as cx,isFromWallet as cy,usePassportId as cz,useBlockletsContext as d,afterMain as d$,en$2 as d0,Q$3 as d1,getSessionToken as d2,LinearProgress as d3,SvgLogo as d4,isNumber$1 as d5,useEnhancedEffect$1 as d6,debounce$2 as d7,ownerWindow as d8,useRtl as d9,requirePropTypes as dA,requireReactDom as dB,isObject$3 as dC,require$$0$2 as dD,require$$3$1 as dE,requireConstant$1 as dF,$e$1 as dG,noop$1 as dH,Button as dI,Paper as dJ,MenuList as dK,Popper as dL,_inheritsLoose$1 as dM,ReactDOM as dN,_objectWithoutPropertiesLoose$1 as dO,TransitionGroup as dP,ENTERED as dQ,ENTERING as dR,EXITING as dS,TransitionGroupContext as dT,Transition as dU,config$1 as dV,popperGenerator as dW,eventListeners as dX,popperOffsets$1 as dY,computeStyles$1 as dZ,applyStyles$1 as d_,KeyboardArrowLeft as da,KeyboardArrowRight as db,useEventCallback$1 as dc,ownerDocument as dd,l$p as de,getCommonHtmlTitle as df,HelmetExport as dg,requireReact as dh,i$e as di,oe$2 as dj,ne$2 as dk,InfoIcon$2 as dl,upperFirst as dm,camelCase as dn,Skeleton as dp,R$5 as dq,isArrayLike as dr,baseIteratee as ds,keys as dt,toInteger as du,baseFindIndex as dv,commonjsGlobal as dw,getAugmentedNamespace as dx,emotionUtils_browser_esm as dy,requireJsxRuntime as dz,useAsyncRetry as e,toString$2 as e$,afterRead as e0,afterWrite as e1,arrow$1 as e2,auto as e3,basePlacements as e4,beforeMain as e5,beforeRead as e6,beforeWrite as e7,bottom as e8,clippingParents as e9,requireLib$3 as eA,requireLib$4 as eB,requireLib$2 as eC,requireConstant$2 as eD,requireUrlPathFriendly as eE,b$8 as eF,data$s as eG,global$2 as eH,hoistStatics as eI,isEqual$3 as eJ,usePreviousProps as eK,setRef as eL,ClearIcon as eM,ArrowDropDownIcon as eN,Chip as eO,filledInputClasses as eP,inputBaseClasses as eQ,outlinedInputClasses as eR,inputClasses as eS,ListContext as eT,getListItemButtonUtilityClass as eU,listItemButtonClasses as eV,emotionReact_browser_esm as eW,emotionCache_browser_esm as eX,cloneDeep$1 as eY,forceReflow as eZ,_extends$2 as e_,createPopper as ea,createPopper$1 as eb,detectOverflow as ec,end as ed,flip$1 as ee,hide$1 as ef,left as eg,main as eh,modifierPhases as ei,offset$1 as ej,placements as ek,popper as el,preventOverflow$1 as em,read as en,reference as eo,right as ep,start as eq,top as er,variationPlacements as es,viewport as et,write as eu,requireReactIs as ev,emotionStyled_browser_esm as ew,emotionSerialize_esm as ex,emotionSheet_esm as ey,process$1 as ez,useTheme as f,requireSafeBuffer$1 as f$,mergeThemeOptions as f0,StyledEngineProvider as f1,ThemeProvider as f2,ThemeProvider$3 as f3,s$3 as f4,CloseIcon as f5,isString$1 as f6,createTheme as f7,createAxios as f8,pick as f9,slotShouldForwardProp as fA,requireNormalizePathPrefix as fB,debounce as fC,useInterval as fD,formatTime as fE,CloseFullscreenIcon as fF,S$8 as fG,TablePagination as fH,parseAvatar as fI,__rest as fJ,useEffectWithTarget$1 as fK,__values as fL,tmp as fM,useUpdate as fN,Y$3 as fO,I$3 as fP,p$d as fQ,ee as fR,requireUtil$6 as fS,requireObjectKeys$1 as fT,requireShams$1 as fU,requireCallBound as fV,requireEsObjectAtoms as fW,requireDefineDataProperty as fX,requireHasPropertyDescriptors as fY,requireCallBind as fZ,requireCallBound$1 as f_,omitBy as fa,MenuIcon as fb,useDebounceFn as fc,Dialog as fd,OutlinedInput as fe,data as ff,Drawer as fg,parseQuery as fh,parseFilename as fi,stringifyParsedURL as fj,Grow as fk,Wt as fl,InputAdornment as fm,tooltipClasses as fn,e$b as fo,requireEngine as fp,__spreadArray as fq,useEventListener as fr,le$7 as fs,getTargetElement as ft,clamp as fu,extractEventHandlers as fv,isFocusVisible as fw,isHostComponent as fx,lighten as fy,darken as fz,g$f as g,defaultTheme$1 as g$,requireBrowser$f as g0,requireElliptic as g1,requireCryptoBrowserify as g2,requireRipemd160 as g3,requireLib$1 as g4,requireUtil as g5,uniq as g6,useLocalStorageState as g7,InputBase as g8,useSize as g9,baseEach as gA,arrayMap as gB,baseMap as gC,baseForOwn as gD,isPlainObject$2 as gE,require$$11 as gF,throttle$2 as gG,isUndefined$1 as gH,useTimeout as gI,Fade as gJ,FocusTrap as gK,dialogClasses as gL,localizedFormatPlugin as gM,n$8 as gN,purify as gO,Buffer$1$1 as gP,Q$2 as gQ,requireJsonStableStringify as gR,requireSemver as gS,requireBrowser$5 as gT,require$$0$1 as gU,requireIsAbsoluteUrl as gV,requireDist$2 as gW,requireBrowser$3 as gX,require$$3 as gY,resolveProps as gZ,useThemeProps as g_,DialogTitle as ga,DialogContent as gb,DialogActions as gc,pickBy as gd,shouldForwardProp as ge,resolveComponentProps as gf,getInviteLink as gg,copy as gh,e$d as gi,getIssuePassportLink as gj,uniqBy$1 as gk,isNodeOwner as gl,isSelf as gm,Q$1 as gn,getBlockletAccessibleUrl as go,A$1 as gp,createPassportSvg$1 as gq,requireMs as gr,E$3 as gs,trim as gt,BlockletSDK as gu,getBlockletSDK as gv,MoreHorizIcon as gw,isFunction$1 as gx,identity$1 as gy,arrayEach as gz,get$1 as h,green as h$,THEME_ID as h0,isIndex as h1,useTheme$4 as h2,objectAssign as h3,__extends as h4,isServerless as h5,omit$1 as h6,TableContext as h7,Tablelvl2Context as h8,d$f as h9,requireAssertString as hA,isEmail as hB,isURL as hC,createUseStorageState as hD,isBrowser$1 as hE,root$1 as hF,isNil$1 as hG,require$$10 as hH,requireHoistNonReactStatics_cjs as hI,_assertThisInitialized$1 as hJ,reactDomExports as hK,loadIcon as hL,withoutLeadingSlash as hM,fetchSvgAsPng as hN,blobToFile as hO,withoutTrailingSlash as hP,u$2 as hQ,Ce as hR,t$g as hS,i as hT,R$8 as hU,browserExports$1 as hV,highlightExports as hW,funcExports as hX,data$y as hY,useSnackbar as hZ,common$3 as h_,useUnmount as ha,isDidDomainOrIpEchoDomain as hb,ExpandLess as hc,validateDomain as hd,requireDist as he,requireAxios as hf,trim$1 as hg,requirePRetry as hh,TableCell as hi,xe$1 as hj,getSystemDomains as hk,copyArray as hl,baseIndexOf as hm,ke as hn,useAppLogo as ho,getTransferAppLink as hp,requireBn$1 as hq,require$$2 as hr,updateWindowEnv as hs,M$3 as ht,isNil as hu,requireBase32 as hv,Pe as hw,withTrailingSlash as hx,data$B as hy,keyframes as hz,filesize as i,Modal as i$,amber as i0,SnackbarContent as i1,d$h as i2,t$1 as i3,Y as i4,g$3 as i5,b as i6,g$a as i7,withErrorBoundary as i8,z$2 as i9,hasRequiredSteps as iA,getStoreList as iB,commonjsRequire as iC,require_interface as iD,requireHasown as iE,requireBrowser as iF,require$$4 as iG,flatten as iH,trimEnd as iI,base32Exports as iJ,flatExports as iK,qt as iL,AxiosError as iM,I$6 as iN,isNull as iO,orange as iP,purple as iQ,useStore as iR,createStore as iS,create$1 as iT,t$h as iU,clientExports as iV,Ve$2 as iW,retry as iX,isNetworkError as iY,requirePTimeout as iZ,n$5 as i_,M$4 as ia,Fe as ib,G as ic,xe as id,useBlockletLogo as ie,isPlainObject$1 as ig,Toolbar as ih,_setPrototypeOf as ii,isString$3 as ij,FormLabel as ik,RelativeTime as il,isIncludeActivity as im,isUserActor as io,ActorAvatar as ip,SendComponentAvatar as iq,Activity as ir,NotificationContent$1 as is,AvatarGroup as it,requireCjs as iu,useTheme$2 as iv,baseAssignValue as iw,isValidClusterSize as ix,extractStatusUrlFromNextWorkflow as iy,pWaitFor as iz,jsxRuntimeExports as j,GlobalStyles$2 as j0,prettyMs as k,formatLocale as l,T$7 as m,useSessionContext as n,o$i as o,p$3 as p,useSetState as q,reactExports as r,styled$3 as s,TextField as t,useNodeContext as u,n$4 as v,lo as w,getWebWalletUrl as x,joinURL as y,withQuery as z};
|
|
2903
|
+
`;function GlobalSubscriber(){const{t:Be}=T$7(),{session:Me}=useSessionContext$1(),{info:qe,refresh:He}=useNodeContext();return useSubscription(constantExports.TeamEvents.userUpdated,({teamDid:Ge,user:Je})=>{Ge===qe.did&&Je&&!Je.approved&&Me&&Me.user&&Me.user.did===Je.did&&(H$7.warning(Be("session.blockAccess"),{autoHideDuration:10*1e3}),Me.logout())}),useSubscription(constantExports$1.EVENTS.NOTIFICATION_CREATE,Ge=>{Ge.entityType==="node"&&He({silent:!0})}),useSubscription(constantExports$1.EVENTS.NODE_UPDATED,()=>{He({silent:!0})}),null}const authorize=({user:Be,launchType:Me,nftId:qe})=>{if(!Be)return!1;if(Me==="serverless"){if(!qe)throw new Error("nftId is required");return Be?.controller?.nftId===qe}return(Be.permissions||[]).includes("mutate_blocklets")},isServerlessBlockletInstalled=Be=>Be.isGetBlocklet&&Be.runtimeBlocklet?.controller?.consumedAt,getRestoredAccessUrl=async Be=>{const Me=getBlockletUrls({blocklet:Be});let qe="";return qe=Me.find(He=>{try{const{hostname:Ge}=new URL(He);return urlEvaluationExports.isSlpDomain(Ge)}catch(Ge){return console.error(Ge),!1}}),qe||(qe=await getAccessibleUrl(Me)),qe},LaunchBlockletContext=reactExports.createContext({}),{Provider:Provider$1,Consumer:Consumer$1}=LaunchBlockletContext;function LaunchBlockletProvider({children:Be}){const{session:Me}=useSessionContext$1(),{t:qe}=T$7(),{api:He,info:Ge}=useNodeContext(),[Je]=useSearchParams(),Ye=Je.get("launchType"),Qe=Je.get("fromLauncher"),Ze=Je.get("blocklet_meta_url")||"",nt=Je.get("nftId")||"",tt=Je.get("from")||"",rt=Je.get("launcherSessionId")||"",ot=Je.get("launcherUrl")||"",at=tt==="url",lt=tt==="empty",ut=at||lt?"":new URL(Ze).origin,[dt,ct]=reactExports.useState({meta:null,appDid:Je.get("appDid")||null,sessionId:Je.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null,registryUrl:""}),ft=(mt,bt)=>ct(Et=>({...Et,appDid:mt,sessionId:bt})),ht=authorize({user:Me.user,launchType:Ye,nftId:nt}),[yt,gt]=reactExports.useState(null),[Ct,Tt]=reactExports.useState(!0),_t=reactExports.useMemo(()=>Ge?getServerUrl(Ge):"",[Ge]),Bt=async mt=>{if(!mt)throw new Error("appDid should not be empty");const{blocklet:bt}=await He.getBlocklet({input:{did:mt,attachConfig:!1}});if(!bt)return null;const Et=constantExports.BlockletStatus[bt.status],Rt=!!nt,St=Et<constantExports.BlockletStatus.installed,At=Et===constantExports.BlockletStatus.installed,kt=Et===constantExports.BlockletStatus.running;return ct(wt=>({...wt,isInstalled:At,isRunning:kt,isExternal:Rt,isInstalling:St})),{isInstalled:At,isRunning:kt,isExternal:Rt,isInstalling:St}},Dt=async()=>{if(Tt(!0),lt){ct(mt=>({...mt,meta:{title:Je.get("title")||"",description:Je.get("description")||""}})),Tt(!1);return}try{if(!Ze&&!lt)throw new Error(qe("common.invalidParam"));const[{meta:mt,isFree:bt,registryUrl:Et},{launcherSession:Rt,error:St}]=await Promise.all([He.getBlockletMetaFromUrl({input:{url:Ze,checkPrice:!0}}),rt?He.getLauncherSession({input:{launcherSessionId:rt,launcherUrl:ot}}):Promise.resolve({})]);if(rt&&!Rt)throw new Error(`Launch session invalid: ${St}`);if(!mt)throw new Error(qe("LaunchBlockletBlocklet.error.loadMetaFailed"));let At={};ht&&dt.appDid&&(At=await Bt(dt.appDid)),ct(kt=>({...kt,...At,meta:mt,isFree:bt,registryUrl:Et,launcherSession:Rt}))}catch(mt){console.error(mt),gt(mt.message)}finally{Tt(!1)}};reactExports.useEffect(()=>{Me?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Me?.user?.controller?.nftId!==nt&&Me.logout(),Dt()},[]),reactExports.useEffect(()=>{Ct||!dt.meta||(ht?dt.appDid&&Bt(dt.appDid).catch(mt=>{H$7.error(mt.message)}):(ct(mt=>({...mt,isInstalled:!1,isRunning:!1,isExternal:!1})),gt(null)))},[ht]);const Ot={meta:dt.meta,isFree:dt.isFree,appDid:dt.appDid,sessionId:dt.sessionId,isInstalling:dt.isInstalling,isInstalled:dt.isInstalled,isExternal:dt.isExternal,isRunning:dt.isRunning,serverUrl:_t,storeUrl:dt.registryUrl||ut,blockletMetaUrl:Ze,fromLauncher:Qe,loading:Ct,error:yt,api:He,getBlocklet:Bt,setAppDid:ft,launcherUrl:ot,launcherSession:dt.launcherSession,launcherSessionId:rt,launchType:Ye};return jsxRuntimeExports.jsx(Provider$1,{value:Ot,children:Be})}function useLaunchBlockletContext(){return reactExports.useContext(LaunchBlockletContext)}var useAsyncExports=requireUseAsync();const useAsync=getDefaultExportFromCjs$1(useAsyncExports);function useQuery(){return new URLSearchParams(useLocation().search)}const BlockletAppContext=reactExports.createContext(),{Provider,Consumer}=BlockletAppContext;function BlockletAppProvider({children:Be}){const qe=useQuery().get("blocklet_meta_url"),He=useAsync(async()=>{const{data:Je}=await axios.get(qe);return Je});if(He.loading)return jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})});const Ge={meta:He.value,error:He.error};return jsxRuntimeExports.jsx(Provider,{value:Ge,children:Be})}BlockletAppProvider.propTypes={children:o$i.any.isRequired};function useBlockletAppContext(){return reactExports.useContext(BlockletAppContext)}const Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./index-IXall6H-.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),BlockletList=reactExports.lazy(()=>__vitePreload(()=>import("./index-Gcmb5nmv.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,2,31,32,33,34,35,36,37,38]),import.meta.url)),BlockletRestore=reactExports.lazy(()=>__vitePreload(()=>import("./index-CevdVAv0.js"),__vite__mapDeps([39,40,41,42,43,44,23,6,35,45,46,47,19,15]),import.meta.url)),BlockletStore=reactExports.lazy(()=>__vitePreload(()=>import("./index-BuDXXzgj.js"),__vite__mapDeps([48,6,49,50,51,52,17,15,53,31,32,54,36,35,55,45,56,4,19,23,24,25,57,58,26,59,60]),import.meta.url)),Settings=reactExports.lazy(()=>__vitePreload(()=>import("./index-CdtdLCAn.js"),__vite__mapDeps([61,62,59,63,64,65,26,7,8,9,10,11,12,13,14,15,16,17,18,19,66,22,56,4,2,67,6,68,69,70,71,36,20,72,52,73,74,75]),import.meta.url)),LogPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-BP3CDZwK.js"),__vite__mapDeps([76,77,24,25,6]),import.meta.url)),TeamPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-Cq4PGV-y.js"),__vite__mapDeps([78,62,79,15,16,17,18,6,80,81,82,83,84,85,53,22,86,36,87,7,8,9,10,11,12,13,14,19,88,89,37,24,25,90,91,30,31,32,26,4,92,93,71,2,50,45,94,95,96,44,97,98,99,100,101,102,103,73,104,105,1,56,106,107]),import.meta.url)),BlockletDetail=reactExports.lazy(()=>__vitePreload(()=>import("./detail-BFkqhGo0.js"),__vite__mapDeps([108,62,20,21,6,19,22,23,24,25,26,53,109,85,60]),import.meta.url)),EULAPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-4MzySaef.js"),[],import.meta.url)),Notifications=reactExports.lazy(()=>__vitePreload(()=>import("./index-CvxYF7xI.js"),[],import.meta.url)),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-Dxbv4luZ.js"),__vite__mapDeps([110,111,109,95,10,96,112,23]),import.meta.url)),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-BJ_u2LJr.js"),__vite__mapDeps([113,87,55,95,10,112,23,34]),import.meta.url)),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-D6p8W37K.js"),__vite__mapDeps([114,112,23]),import.meta.url)),BlockletLauncher=reactExports.lazy(()=>__vitePreload(()=>import("./index-CY5zCs97.js"),__vite__mapDeps([115,41,42,43,44,106,107,116,80,81,82,23,28,29,47,38,6,67,58]),import.meta.url)),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-s2DiZ-3m.js"),__vite__mapDeps([117,109]),import.meta.url)),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./index-DBbBuJUS.js"),__vite__mapDeps([118,111,109,95,10,96,112]),import.meta.url)),Console=reactExports.lazy(()=>__vitePreload(()=>import("./index-CHtEyM-j.js"),[],import.meta.url)),AnalyticsPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-B08J5Jou.js"),__vite__mapDeps([119,62,120,121,51,52,122,13,123,124,92,93,9,71,7,8,10,11,12,14,15,16,17,18,19,125,126,75,6,102,25]),import.meta.url)),GenKeyPair=reactExports.lazy(()=>__vitePreload(()=>import("./index-WgoWvXv7.js"),__vite__mapDeps([127,109]),import.meta.url));function useSharedContext(){const Be=useNodeContext(),{session:Me}=useSessionContext$1(),{wallet:qe}=d$e(),He=Me.user&&Me.user.did;return reactExports.useEffect(()=>{const Ge=getWsClient();return He?Ge.connect():Ge.isConnected()&&Ge.disconnect(),()=>{Ge.isConnected()&&Ge.disconnect()}},[He]),reactExports.useEffect(()=>{if(qe)return()=>{};const Ge=()=>{document.visibilityState==="visible"&&Me.refresh()};return document.addEventListener("visibilitychange",Ge),()=>{document.removeEventListener("visibilitychange",Ge)}},[]),{node:Be,session:Me}}function ProtectedApp(){const{t:Be}=T$7(),{node:Me,session:qe}=useSharedContext(),He=useLocation();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${He.pathname}${He.search}`)},[He]),reactExports.useEffect(()=>{qe?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&qe.logout()},[qe?.user?.role]);const Ge=jsxRuntimeExports.jsx(CircularProgress,{});if(Me.loading||qe.loading)return jsxRuntimeExports.jsx(o$g,{children:Ge});if(!Me.info.initialized)return getAuthMethodExports.getServerAuthMethod(Me.info)==="nft"?jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"verify-owner"}):jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(NodeConnectOwner,{})});if(Me.info.upgradeSessionId)return jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(MaintainProgress,{})});if(!qe.user)return jsxRuntimeExports.jsx(NodeLogin,{loadingEle:Ge});const Je=jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(BlockletsProvider,{children:jsxRuntimeExports.jsxs(NotificationProvider,{children:[jsxRuntimeExports.jsx(Health,{}),jsxRuntimeExports.jsx(CheckNodeStatus,{}),jsxRuntimeExports.jsx(GlobalSubscriber,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Je,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/dashboard",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.blocklets"),children:jsxRuntimeExports.jsx(BlockletList,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/:did/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Blocklets",children:jsxRuntimeExports.jsx(BlockletDetail,{})})}),jsxRuntimeExports.jsx(Route,{path:"/settings/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.setting"),children:jsxRuntimeExports.jsx(Settings,{})})}),jsxRuntimeExports.jsx(Route,{path:"/eula",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("setup.steps.eula"),children:jsxRuntimeExports.jsx(EULAPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/store",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.store"),children:jsxRuntimeExports.jsx(BlockletStore,{})})}),jsxRuntimeExports.jsx(Route,{path:"/console",element:jsxRuntimeExports.jsx(DashboardRoute,{title:`GraphQL ${Be("common.console")}`,scrollable:!1,fullWidth:!0,children:jsxRuntimeExports.jsx(Console,{})})}),jsxRuntimeExports.jsx(Route,{path:"/notifications",element:jsxRuntimeExports.jsx(DashboardRoute,{title:Be("common.notifications"),children:jsxRuntimeExports.jsx(Notifications,{})})}),jsxRuntimeExports.jsx(Route,{path:"/team/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.team"),children:jsxRuntimeExports.jsx(TeamPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/logs/:name?",element:jsxRuntimeExports.jsx(DashboardRoute,{scrollable:!1,fullWidth:!0,title:Be("common.logs"),children:jsxRuntimeExports.jsx(LogPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/analytics/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.analytics"),children:jsxRuntimeExports.jsx(AnalyticsPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/dashboard",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/team",element:jsxRuntimeExports.jsx(Navigate,{to:"/team/members",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/analytics",element:jsxRuntimeExports.jsx(Navigate,{to:"/analytics/traffic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/router",element:jsxRuntimeExports.jsx(Navigate,{to:"/router/rules",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/settings",element:jsxRuntimeExports.jsx(Navigate,{to:"/settings/basic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace",element:jsxRuntimeExports.jsx(Navigate,{to:"/store",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace/:did",element:jsxRuntimeExports.jsx(Navigate,{to:"/store/:did",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})]})})}function UnprotectedWrapper({children:Be}){const{node:Me,session:qe}=useSharedContext();return Me.loading||!qe.initialized&&qe.loading?jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):Me.info.upgradeSessionId?jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(MaintainProgress,{})}):Be}function App(){const{changeLocale:Be}=T$7(),Me=useQuery();reactExports.useEffect(()=>{const He=Me.get("locale");He&&["zh","en"].includes(He)&&Be(He)},[]);const qe=jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:qe,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(IssuePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LostPassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(ExchangePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:"/accept-server",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"accept-server"})})}),jsxRuntimeExports.jsx(Route,{path:"/gen-key-pair/",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(GenKeyPair,{})})}),jsxRuntimeExports.jsx(Route,{path:"/launch-blocklet/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LaunchBlockletProvider,{children:jsxRuntimeExports.jsx(BlockletLauncher,{})})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/restore/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(BlockletAppProvider,{children:jsxRuntimeExports.jsx(BlockletRestore,{})})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(Invite,{})})}),jsxRuntimeExports.jsx(Route,{path:"/*",element:jsxRuntimeExports.jsx(ProtectedApp,{})})]})})}function AppWrapper(){const Be=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return jsxRuntimeExports.jsx(BrowserRouter,{history:history$1,basename:Be,children:jsxRuntimeExports.jsx(Root,{children:jsxRuntimeExports.jsx(App,{})})})}const root=clientExports.createRoot(document.getElementById("root"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";register(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:prefix},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(Be){console.error("Error during service worker registration:",Be)}});export{$$4 as $,useNavigate as A,useSearchParams as B,CircularProgress as C,DialogContentText as D,useMediaQuery as E,libExports$3 as F,Grid$1 as G,H$7 as H,utilExports as I,Link$1 as J,BlockletAppAvatar as K,Link as L,Box as M,isEmpty as N,et as O,FormControl as P,InputLabel as Q,MenuItem as R,Select as S,Typography as T,Checkbox as U,Alert as V,WrappedDidAddress as W,formatError as X,o$g as Y,CheckIcon$2 as Z,propTypesExports as _,useSubscription as a,Menu as a$,api as a0,merge as a1,cloneDeep as a2,IconButton as a3,R$3 as a4,ListItemSecondaryAction as a5,List as a6,ListItem as a7,ListItemText as a8,getServerUrl as a9,ErrorBoundary as aA,k$1 as aB,formatRegistryLogoPath as aC,Icon as aD,ListItemIcon as aE,createSvgIcon as aF,ensureDomainAliases as aG,constantExports$1 as aH,getIp as aI,normalizePathPrefix as aJ,sortBy as aK,stringSortHandlerAsc as aL,getAccessUrl as aM,history$1 as aN,semver as aO,useReactive as aP,useAsyncEffect as aQ,InfoOutlinedIcon as aR,sleep as aS,checkInputByType as aT,FormControlLabel as aU,Stack$1 as aV,useAsync as aW,axios as aX,shouldCheckDomainStatus as aY,formatMountPoint as aZ,urlPathFriendly as a_,useBlockletAppContext as aa,getAuthMethodExports as ab,ConfirmDialog as ac,getRestoredAccessUrl as ad,setSessionToken as ae,isEqual as af,isServerlessBlockletInstalled as ag,Debug as ah,getWsClient as ai,useQuery as aj,getPathPrefix as ak,Global as al,Routes as am,Route as an,Navigate as ao,HeaderAddon as ap,SessionContext as aq,css as ar,$$5 as as,formatToDatetime as at,alpha$1 as au,getLaunchAgreementUrl as av,axios$2 as aw,useSessionContext$1 as ax,Tooltip as ay,getBlockletMetaUrl as az,constantExports as b,clsx$1 as b$,checkIsWildcardDomain as b0,Popover as b1,Card as b2,formatToDate as b3,sortDomains as b4,C$a as b5,Collapse as b6,CheckCircle as b7,styled as b8,isUrl as b9,BlockletAdminRoles as bA,isInstalling as bB,Badge as bC,createAppPassportSvg as bD,NavLink as bE,__vitePreload as bF,SetCache as bG,arrayIncludes$1 as bH,arrayIncludesWith as bI,cacheHas as bJ,baseUniq as bK,baseFlatten as bL,baseRest as bM,last as bN,arrayFilter as bO,isArrayLikeObject as bP,t$9 as bQ,isDownloading as bR,getBlockletUrl as bS,getBlockletUrlParams as bT,ButtonBase as bU,memoTheme as bV,emphasize as bW,generateUtilityClasses$1 as bX,generateUtilityClass$1 as bY,useDefaultProps as bZ,useSlotProps as b_,__awaiter as ba,__generator as bb,__spread as bc,getDefaultExportFromCjs$1 as bd,U$3 as be,dayjs$1 as bf,Divider as bg,isCertificateMatch as bh,FormHelperText as bi,FormGroup as bj,o$d as bk,NodeContext as bl,useParams as bm,useNodeContext$1 as bn,uniqBy as bo,l as bp,libExports$1 as bq,B$5 as br,o$a as bs,l$h as bt,BlockletAvatar as bu,ClickAwayListener as bv,f$8 as bw,createPassportSvg as bx,getWalletType as by,useCreation as bz,createCompounder as c,flat as c$,composeClasses as c0,__read as c1,toSlotDomain as c2,omit as c3,fixBlocklet as c4,isProtectedRole as c5,baseOrderBy as c6,isArray$1 as c7,rootShouldForwardProp as c8,useFormControl as c9,isFunction$2 as cA,Container$3 as cB,K$3 as cC,getLauncherBaseURL as cD,SvgIcon as cE,Buffer$1 as cF,parseURL as cG,withHttps as cH,useLaunchBlockletContext as cI,z$3 as cJ,authorize as cK,ArrowForwardIcon as cL,isNewStoreUrl as cM,getAccessibleUrl as cN,getBlockletLogoUrl as cO,t as cP,M$7 as cQ,__spreadArrays as cR,__assign as cS,h$6 as cT,useLocation as cU,l$8 as cV,useMount as cW,s$8 as cX,formatDateTime as cY,getExplorerLink as cZ,patchJsxToLocale as c_,createChainedFunction$1 as ca,useSlot as cb,capitalize$1 as cc,SwitchBase as cd,createSimplePaletteValueFilter as ce,useControlled as cf,useForkRef as cg,useId as ch,getBlockletUrls as ci,defaultCheckAccessible as cj,urlEvaluationExports as ck,memoize as cl,ButtonGroupContext as cm,ButtonGroupButtonContext as cn,useNotificationContext as co,utilExports$1 as cp,NotificationList as cq,useRequest as cr,useMemoizedFn as cs,isNumber$3 as ct,useLatest as cu,dayjs as cv,d$e as cw,Avatar as cx,isFromWallet as cy,usePassportId as cz,useBlockletsContext as d,afterMain as d$,en$2 as d0,Q$3 as d1,getSessionToken as d2,LinearProgress as d3,SvgLogo as d4,isNumber$1 as d5,useEnhancedEffect$1 as d6,debounce$2 as d7,ownerWindow as d8,useRtl as d9,requirePropTypes as dA,requireReactDom as dB,isObject$3 as dC,require$$0$2 as dD,require$$3$1 as dE,requireConstant$1 as dF,$e$1 as dG,noop$1 as dH,Button as dI,Paper as dJ,MenuList as dK,Popper as dL,_inheritsLoose$1 as dM,ReactDOM as dN,_objectWithoutPropertiesLoose$1 as dO,TransitionGroup as dP,ENTERED as dQ,ENTERING as dR,EXITING as dS,TransitionGroupContext as dT,Transition as dU,config$1 as dV,popperGenerator as dW,eventListeners as dX,popperOffsets$1 as dY,computeStyles$1 as dZ,applyStyles$1 as d_,KeyboardArrowLeft as da,KeyboardArrowRight as db,useEventCallback$1 as dc,ownerDocument as dd,l$p as de,getCommonHtmlTitle as df,HelmetExport as dg,requireReact as dh,i$e as di,oe$2 as dj,ne$2 as dk,InfoIcon$2 as dl,upperFirst as dm,camelCase as dn,Skeleton as dp,R$5 as dq,isArrayLike as dr,baseIteratee as ds,keys as dt,toInteger as du,baseFindIndex as dv,commonjsGlobal as dw,getAugmentedNamespace as dx,emotionUtils_browser_esm as dy,requireJsxRuntime as dz,useAsyncRetry as e,toString$2 as e$,afterRead as e0,afterWrite as e1,arrow$1 as e2,auto as e3,basePlacements as e4,beforeMain as e5,beforeRead as e6,beforeWrite as e7,bottom as e8,clippingParents as e9,requireLib$3 as eA,requireLib$4 as eB,requireLib$2 as eC,requireConstant$2 as eD,requireUrlPathFriendly as eE,b$8 as eF,data$s as eG,global$2 as eH,hoistStatics as eI,isEqual$3 as eJ,usePreviousProps as eK,setRef as eL,ClearIcon as eM,ArrowDropDownIcon as eN,Chip as eO,filledInputClasses as eP,inputBaseClasses as eQ,outlinedInputClasses as eR,inputClasses as eS,ListContext as eT,getListItemButtonUtilityClass as eU,listItemButtonClasses as eV,emotionReact_browser_esm as eW,emotionCache_browser_esm as eX,cloneDeep$1 as eY,forceReflow as eZ,_extends$2 as e_,createPopper as ea,createPopper$1 as eb,detectOverflow as ec,end as ed,flip$1 as ee,hide$1 as ef,left as eg,main as eh,modifierPhases as ei,offset$1 as ej,placements as ek,popper as el,preventOverflow$1 as em,read as en,reference as eo,right as ep,start as eq,top as er,variationPlacements as es,viewport as et,write as eu,requireReactIs as ev,emotionStyled_browser_esm as ew,emotionSerialize_esm as ex,emotionSheet_esm as ey,process$1 as ez,useTheme as f,requireSafeBuffer$1 as f$,mergeThemeOptions as f0,StyledEngineProvider as f1,ThemeProvider as f2,ThemeProvider$3 as f3,s$3 as f4,CloseIcon as f5,isString$1 as f6,createTheme as f7,createAxios as f8,pick as f9,slotShouldForwardProp as fA,requireNormalizePathPrefix as fB,debounce as fC,useInterval as fD,formatTime as fE,CloseFullscreenIcon as fF,S$8 as fG,TablePagination as fH,parseAvatar as fI,__rest as fJ,useEffectWithTarget$1 as fK,__values as fL,tmp as fM,useUpdate as fN,Y$3 as fO,I$3 as fP,p$d as fQ,ee as fR,requireUtil$6 as fS,requireObjectKeys$1 as fT,requireShams$1 as fU,requireCallBound as fV,requireEsObjectAtoms as fW,requireDefineDataProperty as fX,requireHasPropertyDescriptors as fY,requireCallBind as fZ,requireCallBound$1 as f_,omitBy as fa,MenuIcon as fb,useDebounceFn as fc,Dialog as fd,OutlinedInput as fe,data as ff,Drawer as fg,parseQuery as fh,parseFilename as fi,stringifyParsedURL as fj,Grow as fk,Wt as fl,InputAdornment as fm,tooltipClasses as fn,e$b as fo,requireEngine as fp,__spreadArray as fq,useEventListener as fr,le$7 as fs,getTargetElement as ft,clamp as fu,extractEventHandlers as fv,isFocusVisible as fw,isHostComponent as fx,lighten as fy,darken as fz,g$f as g,defaultTheme$1 as g$,requireBrowser$f as g0,requireElliptic as g1,requireCryptoBrowserify as g2,requireRipemd160 as g3,requireLib$1 as g4,requireUtil as g5,uniq as g6,useLocalStorageState as g7,InputBase as g8,useSize as g9,baseEach as gA,arrayMap as gB,baseMap as gC,baseForOwn as gD,isPlainObject$2 as gE,require$$11 as gF,throttle$2 as gG,isUndefined$1 as gH,useTimeout as gI,Fade as gJ,FocusTrap as gK,dialogClasses as gL,localizedFormatPlugin as gM,n$8 as gN,purify as gO,Buffer$1$1 as gP,Q$2 as gQ,requireJsonStableStringify as gR,requireSemver as gS,requireBrowser$5 as gT,require$$0$1 as gU,requireIsAbsoluteUrl as gV,requireDist$2 as gW,requireBrowser$3 as gX,require$$3 as gY,resolveProps as gZ,useThemeProps as g_,DialogTitle as ga,DialogContent as gb,DialogActions as gc,pickBy as gd,shouldForwardProp as ge,resolveComponentProps as gf,getInviteLink as gg,copy as gh,e$d as gi,getIssuePassportLink as gj,uniqBy$1 as gk,isNodeOwner as gl,isSelf as gm,Q$1 as gn,getBlockletAccessibleUrl as go,A$1 as gp,createPassportSvg$1 as gq,requireMs as gr,E$3 as gs,trim as gt,BlockletSDK as gu,getBlockletSDK as gv,MoreHorizIcon as gw,isFunction$1 as gx,identity$1 as gy,arrayEach as gz,get$1 as h,green as h$,THEME_ID as h0,isIndex as h1,useTheme$4 as h2,objectAssign as h3,__extends as h4,isServerless as h5,omit$1 as h6,TableContext as h7,Tablelvl2Context as h8,d$f as h9,requireAssertString as hA,isEmail as hB,isURL as hC,createUseStorageState as hD,isBrowser$1 as hE,root$1 as hF,isNil$1 as hG,require$$10 as hH,requireHoistNonReactStatics_cjs as hI,_assertThisInitialized$1 as hJ,reactDomExports as hK,loadIcon as hL,withoutLeadingSlash as hM,fetchSvgAsPng as hN,blobToFile as hO,withoutTrailingSlash as hP,u$2 as hQ,Ce as hR,t$g as hS,i as hT,R$8 as hU,browserExports$1 as hV,highlightExports as hW,funcExports as hX,data$y as hY,useSnackbar as hZ,common$3 as h_,useUnmount as ha,isDidDomainOrIpEchoDomain as hb,ExpandLess as hc,validateDomain as hd,requireDist as he,requireAxios as hf,trim$1 as hg,requirePRetry as hh,TableCell as hi,xe$1 as hj,getSystemDomains as hk,copyArray as hl,baseIndexOf as hm,ke as hn,useAppLogo as ho,getTransferAppLink as hp,requireBn$1 as hq,require$$2 as hr,updateWindowEnv as hs,M$3 as ht,isNil as hu,requireBase32 as hv,Pe as hw,withTrailingSlash as hx,data$B as hy,keyframes as hz,filesize as i,Modal as i$,amber as i0,SnackbarContent as i1,d$h as i2,t$1 as i3,Y as i4,g$3 as i5,b as i6,g$a as i7,withErrorBoundary as i8,z$2 as i9,hasRequiredSteps as iA,getStoreList as iB,commonjsRequire as iC,require_interface as iD,requireHasown as iE,requireBrowser as iF,require$$4 as iG,flatten as iH,trimEnd as iI,base32Exports as iJ,flatExports as iK,qt as iL,AxiosError as iM,I$6 as iN,isNull as iO,orange as iP,purple as iQ,useStore as iR,createStore as iS,create$1 as iT,t$h as iU,clientExports as iV,Ve$2 as iW,retry as iX,isNetworkError as iY,requirePTimeout as iZ,n$5 as i_,M$4 as ia,Fe as ib,G as ic,xe as id,useBlockletLogo as ie,isPlainObject$1 as ig,Toolbar as ih,_setPrototypeOf as ii,isString$3 as ij,FormLabel as ik,RelativeTime as il,isIncludeActivity as im,isUserActor as io,ActorAvatar as ip,SendComponentAvatar as iq,Activity as ir,NotificationContent$1 as is,AvatarGroup as it,requireCjs as iu,useTheme$2 as iv,baseAssignValue as iw,isValidClusterSize as ix,extractStatusUrlFromNextWorkflow as iy,pWaitFor as iz,jsxRuntimeExports as j,GlobalStyles$2 as j0,prettyMs as k,formatLocale as l,T$7 as m,useSessionContext as n,o$i as o,p$3 as p,useSetState as q,reactExports as r,styled$3 as s,TextField as t,useNodeContext as u,n$4 as v,lo as w,getWebWalletUrl as x,joinURL as y,withQuery as z};
|