@abtnode/blocklet-services 1.16.41-beta-20250325-154552-2bf78c26 → 1.16.41-beta-20250329-232306-53c45e3b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/emails/_components/actions.js +9 -0
- package/api/emails/{components → _components}/article.js +1 -1
- package/api/emails/{components → _components}/asset.js +2 -2
- package/api/emails/{components → _components}/attachments.js +15 -13
- package/api/emails/{components → _components}/compose.js +2 -2
- package/api/emails/_components/content.js +15 -0
- package/api/emails/{components → _components}/footer.js +1 -1
- package/api/emails/{components → _components}/powered-by.js +1 -1
- package/api/emails/{components → _components}/token.js +2 -2
- package/api/emails/{components → _components}/transaction.js +1 -1
- package/api/emails/{pages → _templates}/notification.js +10 -10
- package/api/emails/_templates/verify-code-body.js +49 -0
- package/api/emails/_templates/verify-code.js +37 -0
- package/api/index.js +59 -71
- package/api/libs/auth/utils.js +20 -1
- package/api/libs/connect/session.js +55 -3
- package/api/libs/email.js +48 -16
- package/api/middlewares/body-parser.js +10 -0
- package/api/routes/blocklet.js +17 -4
- package/api/routes/federated.js +36 -13
- package/api/routes/mcp.js +87 -0
- package/api/routes/user-session.js +16 -1
- package/api/routes/user.js +442 -40
- package/api/services/auth/connect/issue-passport.js +4 -3
- package/api/services/auth/connect/receive-transfer-app-owner.js +17 -1
- package/api/services/auth/connect/verify-destroy.js +20 -0
- package/api/services/auth/connect/verify-elevated.js +20 -0
- package/api/services/auth/index.js +0 -2
- package/api/services/auth/session.js +1 -1
- package/api/services/kyc/index.js +1 -1
- package/api/services/mcp/server.js +37 -0
- package/api/services/notification/queue.js +5 -4
- package/api/services/studio/index.js +4 -0
- package/api/util/federated.js +16 -0
- package/dist/assets/{ArrowDropDown-DH8_DBvh.js → ArrowDropDown-odHjNJIs.js} +1 -1
- package/dist/assets/{CheckCircle-W4GlzCdu.js → CheckCircle-BqOSvJMp.js} +1 -1
- package/dist/assets/{ChevronLeft-B2SRhM5v.js → ChevronLeft-Dv7rlUf5.js} +1 -1
- package/dist/assets/{ChevronRight-ZvmzY6T1.js → ChevronRight-CWeJn1iz.js} +1 -1
- package/dist/assets/{Community-DxXfm8O3.js → Community-CMFBTMi_.js} +1 -1
- package/dist/assets/{DeleteOutline-ClZd2kP1.js → DeleteOutline-Cr-TyrUV.js} +1 -1
- package/dist/assets/{Done-DAdEZjfp.js → Done-C1TA1wbA.js} +1 -1
- package/dist/assets/{Download-fAYCJ3Zn.js → Download-DxhnUTM_.js} +1 -1
- package/dist/assets/{EditIcon-jPGouFji.js → EditIcon-Bgmg6UE0.js} +1 -1
- package/dist/assets/{Email-Cj6caJ_8.js → Email-BphlAPta.js} +1 -1
- package/dist/assets/{Error-DzDuzV0d.js → Error-pXXvJFxN.js} +1 -1
- package/dist/assets/{ExpandLess-CSwVcrV9.js → ExpandLess-Dc_dI20M.js} +1 -1
- package/dist/assets/{Google-DaNgbmbg.js → Google-DNUuYFIA.js} +1 -1
- package/dist/assets/{Holiday-1uY1QmAp.js → Holiday-DKefG3Bb.js} +1 -1
- package/dist/assets/{InfoOutlined-o8YCo8qy.js → InfoOutlined-CEUhR4DY.js} +1 -1
- package/dist/assets/{Launch-B5cUT_sx.js → Launch-BUTOr3cR.js} +1 -1
- package/dist/assets/{LaunchOutlined-CqJ3-tbE.js → LaunchOutlined-QHq-RUJt.js} +1 -1
- package/dist/assets/{Location-C1pAq6lI.js → Location-BuaxMxu4.js} +1 -1
- package/dist/assets/{LockIcon-CydBoNUN.js → LockIcon-CQ1tExIY.js} +1 -1
- package/dist/assets/{Meeting-tZebh2B1.js → Meeting-Cs60QtvP.js} +1 -1
- package/dist/assets/{MoreHoriz-C_oNEMFs.js → MoreHoriz-D1SOL47a.js} +1 -1
- package/dist/assets/{OffSick-BYC1oqk1.js → OffSick-DinPaelp.js} +1 -1
- package/dist/assets/{Phone-DIzOgVDd.js → Phone-BmouKMyi.js} +1 -1
- package/dist/assets/{PlayArrow-BVARrWHX.js → PlayArrow-D7cGSxeN.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-B5JWLChh.js → QuestionMarkCircle-Dt9XJWEe.js} +1 -1
- package/dist/assets/{ServerLogo-DIfW0NaH.js → ServerLogo-B33ZRE5q.js} +1 -1
- package/dist/assets/{Timezone-D7zhOyHu.js → Timezone-CyMhRxlx.js} +1 -1
- package/dist/assets/{ViewList-93ffk7kT.js → ViewList-vu1qOJ6P.js} +1 -1
- package/dist/assets/{WorkingRemotely-0VF9S3Zo.js → WorkingRemotely-BP_VIHeM.js} +1 -1
- package/dist/assets/access-control-CpxcJItK.js +14 -0
- package/dist/assets/{actions-D-igEkC_.js → actions-4oGfCMlR.js} +1 -1
- package/dist/assets/add-component-core-CE0nArG4.js +761 -0
- package/dist/assets/add-resource-BYM4JwzE.js +1 -0
- package/dist/assets/{addon-DKPnFM-d.js → addon-B9bb2bvM.js} +1 -1
- package/dist/assets/analytics-BXLe73MI.js +11 -0
- package/dist/assets/api-D9Yi7Zdr.js +1 -0
- package/dist/assets/appearance-DX7SoW1u.js +1 -0
- package/dist/assets/ar-2k9jaPIk.js +3 -0
- package/dist/assets/{audit-logs-BQlJ8qXs.js → audit-logs-D8H5E0fC.js} +3 -3
- package/dist/assets/{base32-CUcA0Dp2.js → base32-BNpDT-6Q.js} +1 -1
- package/dist/assets/{branding-DxSd76KG.js → branding-BW1rhy8d.js} +2 -2
- package/dist/assets/bundle-avatar-DHwmIozH.js +1 -0
- package/dist/assets/button-CNnuiac8.js +1 -0
- package/dist/assets/{click-to-copy-DiELz5Xb.js → click-to-copy-B0HMuCN_.js} +1 -1
- package/dist/assets/complete-BNf0-iqY.js +45 -0
- package/dist/assets/{component-DXUL6eiU.js → component-1r0VSsqq.js} +2 -2
- package/dist/assets/{config-CCTS8ZgJ.js → config-BeD5_8kr.js} +2 -2
- package/dist/assets/config-CqHmZdZv.js +1 -0
- package/dist/assets/{config-navigation-DH0a1AcG.js → config-navigation-DtN0_qFZ.js} +3 -3
- package/dist/assets/{config-space-CDBT30Fy.js → config-space-DlwZewcm.js} +1 -1
- package/dist/assets/{confirm-H5SukzMZ.js → confirm-DmMN-34s.js} +2 -2
- package/dist/assets/connect-BfSOEYV-.js +1 -0
- package/dist/assets/{connect-BQBuxZq7.js → connect-CC9dcVMV.js} +1 -1
- package/dist/assets/{connect-to-DqrgfOZi.js → connect-to-CzffwD9G.js} +1 -1
- package/dist/assets/{content-layout-CIzNOca5.js → content-layout-7vu3yv_f.js} +1 -1
- package/dist/assets/dashboard-C_Q4TjPa.js +216 -0
- package/dist/assets/de-B9cLhykn.js +3 -0
- package/dist/assets/{delete-confirm-CdzeQQ8r.js → delete-confirm-BTaU_6Kx.js} +1 -1
- package/dist/assets/did-address-BC-0j4Pt.js +1 -0
- package/dist/assets/{domain-B79dyXvl.js → domain-CLMRXecU.js} +1 -1
- package/dist/assets/{domain-action-card-DB2tCUnz.js → domain-action-card-DwQ7Q8wY.js} +2 -2
- package/dist/assets/domains-DF7TtN5q.js +1 -0
- package/dist/assets/{email-DArp9y3R.js → email-mj0bVFDS.js} +2 -2
- package/dist/assets/es-BoQohonz.js +3 -0
- package/dist/assets/{exchange-passport-CcBW-4OT.js → exchange-passport--DeUPzbW.js} +1 -1
- package/dist/assets/form-text-input-BYF6lVnE.js +11 -0
- package/dist/assets/fr-doSYAOrt.js +3 -0
- package/dist/assets/{fuel-BXqPbUK0.js → fuel-D-kOZuF6.js} +1 -1
- package/dist/assets/{fullpage-BAGs-W5J.js → fullpage-DO8Hcbkl.js} +1 -1
- package/dist/assets/{get-safe-url-Bs400iLS.js → get-safe-url-BKl2A9x2.js} +1 -1
- package/dist/assets/{get-safe-url-DtTGgWbn.js → get-safe-url-QFq5JNoE.js} +1 -1
- package/dist/assets/hi-B_BwhpD8.js +1 -0
- package/dist/assets/{home-C9GJ4K7b.js → home-CpnMpXiw.js} +1 -1
- package/dist/assets/id-BgYIZCvk.js +3 -0
- package/dist/assets/{iframe-_xmo1lin.js → iframe-B9mCpo4I.js} +1 -1
- package/dist/assets/{index-BHs362aB.js → index-79U1RPaq.js} +1 -1
- package/dist/assets/{index-CfSdyisA.js → index-B4Q2DAdn.js} +11 -11
- package/dist/assets/index-BJ2lJo7L.js +346 -0
- package/dist/assets/{index-Ca7t5vsG.js → index-BMSA5TdD.js} +1 -1
- package/dist/assets/{index-B8YUhcxT.js → index-BVOYP6aR.js} +2 -2
- package/dist/assets/{index-Dz061vzT.js → index-BZvVDfZ4.js} +1 -1
- package/dist/assets/index-BsUr7wGb.js +104 -0
- package/dist/assets/index-C44fECmB.js +138 -0
- package/dist/assets/{index-CHdEjF6N.js → index-CGK3FEjY.js} +2 -2
- package/dist/assets/{index-Cr3r3Dk2.js → index-CJCg9yIK.js} +1 -1
- package/dist/assets/index-CmKAznDh.js +109 -0
- package/dist/assets/{index-G1H3TvXv.js → index-Ct7s2LPI.js} +3 -3
- package/dist/assets/{index-cfNltkU-.js → index-DQ_RzIwU.js} +2 -2
- package/dist/assets/{index-Dq2tckVf.js → index-D_wVtHmh.js} +1 -1
- package/dist/assets/{index-CyBY00Un.js → index-DqC2o5PB.js} +1 -1
- package/dist/assets/index-DyTFEgKr.js +1 -0
- package/dist/assets/index-eCY24sH9.js +137 -0
- package/dist/assets/{index-CHtbhPPM.js → index-fWGZM-oP.js} +1 -1
- package/dist/assets/index-gTQQ3SoE.js +290 -0
- package/dist/assets/index-gcSQTx25.js +1 -0
- package/dist/assets/{index-rEtARSUO.js → index-m8CaSxXx.js} +1 -1
- package/dist/assets/{index-BI7HW_KL.js → index-u-lA6P_E.js} +1 -1
- package/dist/assets/invitation-B8Qx_pFq.js +176 -0
- package/dist/assets/invite-BBaF_vyc.js +1 -0
- package/dist/assets/{issue-passport-D2H1iXFG.js → issue-passport-DC-ly7xg.js} +1 -1
- package/dist/assets/{item-BZnflB1r.js → item-BSGXym2I.js} +1 -1
- package/dist/assets/ja-FMMLI8YD.js +3 -0
- package/dist/assets/ko-C0kmRXYE.js +3 -0
- package/dist/assets/{launch-result-message-JdCxLBHF.js → launch-result-message-ByEG8r_7.js} +1 -1
- package/dist/assets/{layout-BKTXvgtN.js → layout-BqhTD729.js} +1 -1
- package/dist/assets/list-BHs8uNT5.js +200 -0
- package/dist/assets/{list-header-C3JMIP96.js → list-header-BmTDmRY0.js} +1 -1
- package/dist/assets/localization-daPAWMzR.js +1 -0
- package/dist/assets/{log-DSC3nDef.js → log-o_Cadt8j.js} +7 -7
- package/dist/assets/{login-B_V3KWS7.js → login-BQozrLDm.js} +1 -1
- package/dist/assets/{login-oauth-callback-GH6m7W6J.js → login-oauth-callback-D7lIww1c.js} +1 -1
- package/dist/assets/{logo-uploader-B-xodQLr.js → logo-uploader-CUQ3aWZJ.js} +3 -3
- package/dist/assets/{lost-passport-BY5kSBj4.js → lost-passport-DkETH2Lu.js} +3 -3
- package/dist/assets/{omit-Ci0YZl3b.js → omit-DZNQhOf-.js} +1 -1
- package/dist/assets/{open-window-BZb1m3jN.js → open-window-BOl-kTC2.js} +1 -1
- package/dist/assets/{overview-5mVt0_gG.js → overview-Bxm05EH6.js} +1 -1
- package/dist/assets/{page-header-Mpx7DhlL.js → page-header-Dm1v9v5q.js} +1 -1
- package/dist/assets/{permission-EnWLSYpS.js → permission-B5jnw9r2.js} +1 -1
- package/dist/assets/{preferences-BzIch5vg.js → preferences-uri2RXdB.js} +1 -1
- package/dist/assets/profile-embed-DnIQcD-H.js +1 -0
- package/dist/assets/pt-C2UJZK-O.js +1 -0
- package/dist/assets/publish-resource-V53U1NNv.js +1 -0
- package/dist/assets/{react-beautiful-dnd.esm-DMqCPytx.js → react-beautiful-dnd.esm-B9MfX9Xl.js} +1 -1
- package/dist/assets/{relative-time-DmrCbKZi.js → relative-time-RQnsWZQc.js} +1 -1
- package/dist/assets/ru-DDA5s4-r.js +1 -0
- package/dist/assets/sdk-BKSsfgrc.js +1 -0
- package/dist/assets/{session-hH9Eluc3.js → session-6ZeN-aF2.js} +1 -1
- package/dist/assets/{setup-BQ9DJQAR.js → setup-7Gq9K_8k.js} +3 -3
- package/dist/assets/{shorten-label-Blq5nIR4.js → shorten-label-DkFTGSoy.js} +1 -1
- package/dist/assets/simple-select-CqakAZFe.js +1 -0
- package/dist/assets/{slicedToArray-0JAP92RR.js → slicedToArray-BuQur6Mi.js} +2 -2
- package/dist/assets/{start-Cqxem84z.js → start-BSUY3DBl.js} +1 -1
- package/dist/assets/{status-BEcCvVw5.js → status-C52-BFuY.js} +1 -1
- package/dist/assets/{step-actions-D1R71ufh.js → step-actions-CA74dwgt.js} +1 -1
- package/dist/assets/{studio-CWSkuYqL.js → studio-CAnZfyBM.js} +1 -1
- package/dist/assets/{switch-control-j36Oahia.js → switch-control-BBlLGjaH.js} +1 -1
- package/dist/assets/th-DmqOUn4C.js +1 -0
- package/dist/assets/{traffic-G34OrdMK.js → traffic-CJDIGmp5.js} +3 -3
- package/dist/assets/{transfer-CN7lhztm.js → transfer-cG2e24sz.js} +1 -1
- package/dist/assets/{unsubscribe-DO25Mrza.js → unsubscribe-afXXIHEf.js} +1 -1
- package/dist/assets/{use-mobile-Cz1u01jc.js → use-mobile-CUT5hy9q.js} +1 -1
- package/dist/assets/{useAsync-C8pcYSnj.js → useAsync-DM8qaMe4.js} +1 -1
- package/dist/assets/{useAsyncRetry-Hh30zerD.js → useAsyncRetry-B7SbzXVI.js} +1 -1
- package/dist/assets/{useLocalStorage-CBIpQ2Ch.js → useLocalStorage-Dd4pybDP.js} +1 -1
- package/dist/assets/user-center-T8Xw464s.js +67 -0
- package/dist/assets/{util-0vNCtiZj.js → util-C_BCTHfw.js} +1 -1
- package/dist/assets/{util-BfC763vn.js → util-YyWTpLT7.js} +1 -1
- package/dist/assets/vendor-arcblock-DvaaLvvM.js +2361 -0
- package/dist/assets/{vendor-hooks-CBQlROWx.js → vendor-hooks-sw5wvnca.js} +2 -2
- package/dist/assets/vendor-mui-core-DxqV1NVn.js +266 -0
- package/dist/assets/{vendor-mui-x-Bv7Ku5uo.js → vendor-mui-x-BjL1xCkk.js} +1 -1
- package/dist/assets/{vendor-utils-C7-Bj8sT.js → vendor-utils-DR57WNxP.js} +7 -7
- package/dist/assets/{vendor-ux-did-connect-BH_4FkUq.js → vendor-ux-did-connect-Bciw9Ypu.js} +56 -56
- package/dist/assets/vi-Cf__CtPD.js +1 -0
- package/dist/assets/wrap-locale-CX50Vz0w.js +1 -0
- package/dist/assets/zh-NXspK2yu.js +4 -0
- package/dist/assets/zh-tw-DYYDVX5I.js +3 -0
- package/dist/index.html +6 -6
- package/dist/service-worker.js +2 -2
- package/package.json +41 -36
- package/api/emails/components/actions.js +0 -9
- package/api/emails/components/content.js +0 -15
- package/dist/assets/ExternalIssuerIcon-D0E4reWK.js +0 -1
- package/dist/assets/access-control-DjkJ52P9.js +0 -13
- package/dist/assets/add-component-core-CcInVCBe.js +0 -765
- package/dist/assets/add-resource-Bcw4sA7r.js +0 -1
- package/dist/assets/analytics-Co9lkVsN.js +0 -11
- package/dist/assets/api-tckMpb-p.js +0 -1
- package/dist/assets/ar-2G9aaruy.js +0 -3
- package/dist/assets/bundle-avatar-BwOOmJKx.js +0 -1
- package/dist/assets/button-DmhvlTQK.js +0 -1
- package/dist/assets/complete-ClE81Ny0.js +0 -45
- package/dist/assets/config-Bn72hRZH.js +0 -1
- package/dist/assets/connect-CWgAo1rD.js +0 -1
- package/dist/assets/dashboard-Bqm_hK4M.js +0 -218
- package/dist/assets/de-DuOaMdcm.js +0 -3
- package/dist/assets/did-address-xFa47-Qp.js +0 -1
- package/dist/assets/domains-A7coEqfv.js +0 -1
- package/dist/assets/es-B_z4kZV7.js +0 -3
- package/dist/assets/form-text-input-CFoWUNjT.js +0 -11
- package/dist/assets/fr-U4jlLji5.js +0 -3
- package/dist/assets/hi-CgWMOeSW.js +0 -1
- package/dist/assets/id-DcVdw_iD.js +0 -3
- package/dist/assets/index-BAJ44Gvx.js +0 -104
- package/dist/assets/index-BGBHkKrL.js +0 -109
- package/dist/assets/index-BPRjg-Ha.js +0 -346
- package/dist/assets/index-CJi_sgz3.js +0 -137
- package/dist/assets/index-CscSMswD.js +0 -1
- package/dist/assets/index-CvTkROvr.js +0 -1
- package/dist/assets/index-Dkv68xvd.js +0 -138
- package/dist/assets/index-DuWgtqAp.js +0 -134
- package/dist/assets/invitation-D8ocHjTZ.js +0 -176
- package/dist/assets/invite-CtafhjzX.js +0 -1
- package/dist/assets/ja-CqyNiw8I.js +0 -3
- package/dist/assets/ko-CwboHZNL.js +0 -3
- package/dist/assets/list-BiMW09TE.js +0 -195
- package/dist/assets/localization-B4PX_18r.js +0 -1
- package/dist/assets/login-bg-CBktcoss.jpg +0 -0
- package/dist/assets/profile-embed-BAeyCzz5.js +0 -1
- package/dist/assets/pt-UQ_ShTDa.js +0 -1
- package/dist/assets/publish-resource-OFt0IRNl.js +0 -1
- package/dist/assets/ru-BJ0AXHkS.js +0 -1
- package/dist/assets/sdk-B1fQwlHL.js +0 -1
- package/dist/assets/simple-select-DZdEq8ET.js +0 -1
- package/dist/assets/th-CxA-Ohjf.js +0 -1
- package/dist/assets/user-center-He8jbYsT.js +0 -79
- package/dist/assets/vendor-arcblock-CxRF9kO4.js +0 -2361
- package/dist/assets/vendor-mui-core-ClwXKILA.js +0 -266
- package/dist/assets/vi-Dp8eof12.js +0 -1
- package/dist/assets/wrap-locale-BI93VtNG.js +0 -1
- package/dist/assets/zh-D2dwMdph.js +0 -4
- package/dist/assets/zh-tw-9pjBCUZn.js +0 -3
- /package/api/emails/{components → _components}/copyright.js +0 -0
- /package/api/emails/{components → _components}/dapp.js +0 -0
- /package/api/emails/{components → _components}/header.js +0 -0
- /package/api/emails/{components → _components}/layout.js +0 -0
- /package/api/emails/{libs → _libs}/chain.js +0 -0
- /package/api/emails/{libs → _libs}/config.js +0 -0
- /package/api/emails/{libs → _libs}/constant.js +0 -0
- /package/api/emails/{libs → _libs}/explorer-url.js +0 -0
- /package/api/emails/{libs → _libs}/func.js +0 -0
- /package/api/emails/{libs → _libs}/highlight.js +0 -0
- /package/api/emails/{libs → _libs}/style.js +0 -0
- /package/api/emails/{libs → _libs}/util.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{g as ge,r as v,a as _t}from"./vendor-react-DoD83n6N.js";import{d as De,t as Le,a as Et,i as St,g as fe}from"./vendor-utils-
|
|
1
|
+
import{g as ge,r as v,a as _t}from"./vendor-react-DoD83n6N.js";import{d as De,t as Le,a as Et,i as St,g as fe}from"./vendor-utils-DR57WNxP.js";var Ot=typeof Element<"u",Rt=typeof Map=="function",Ct=typeof Set=="function",Tt=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function X(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!X(e[n],t[n]))return!1;return!0}var o;if(Rt&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!X(n.value[1],t.get(n.value[0])))return!1;return!0}if(Ct&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Tt&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;if(Ot&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((i[n]==="_owner"||i[n]==="__v"||i[n]==="__o")&&e.$$typeof)&&!X(e[i[n]],t[i[n]]))return!1;return!0}return e!==e&&t!==t}var Pt=function(t,r){try{return X(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const At=ge(Pt);var ze={exports:{}};/*!
|
|
2
2
|
* JavaScript Cookie v2.2.1
|
|
3
3
|
* https://github.com/js-cookie/js-cookie
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
6
6
|
* Released under the MIT license
|
|
7
|
-
*/(function(e,t){(function(r){var n;if(e.exports=r(),n=!0,!n){var i=window.Cookies,o=window.Cookies=r();o.noConflict=function(){return window.Cookies=i,o}}})(function(){function r(){for(var o=0,a={};o<arguments.length;o++){var u=arguments[o];for(var f in u)a[f]=u[f]}return a}function n(o){return o.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function i(o){function a(){}function u(c,l,s){if(!(typeof document>"u")){s=r({path:"/"},a.defaults,s),typeof s.expires=="number"&&(s.expires=new Date(new Date*1+s.expires*864e5)),s.expires=s.expires?s.expires.toUTCString():"";try{var p=JSON.stringify(l);/^[\{\[]/.test(p)&&(l=p)}catch{}l=o.write?o.write(l,c):encodeURIComponent(String(l)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var d="";for(var h in s)s[h]&&(d+="; "+h,s[h]!==!0&&(d+="="+s[h].split(";")[0]));return document.cookie=c+"="+l+d}}function f(c,l){if(!(typeof document>"u")){for(var s={},p=document.cookie?document.cookie.split("; "):[],d=0;d<p.length;d++){var h=p[d].split("="),m=h.slice(1).join("=");!l&&m.charAt(0)==='"'&&(m=m.slice(1,-1));try{var y=n(h[0]);if(m=(o.read||o)(m,y)||n(m),l)try{m=JSON.parse(m)}catch{}if(s[y]=m,c===y)break}catch{}}return c?s[c]:s}}return a.set=u,a.get=function(c){return f(c,!1)},a.getJSON=function(c){return f(c,!0)},a.remove=function(c,l){u(c,"",r(l,{expires:-1}))},a.defaults={},a.withConverter=i,a}return i(function(){})})})(ze);var Mt=ze.exports;const Jr=ge(Mt);var xt=function(e){return function(t,r){var n=v.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},de=function(e,t){return de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},de(e,t)};function Fe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");de(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var E=function(){return E=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},E.apply(this,arguments)};function re(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Be(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function He(e,t){return function(r,n){t(r,n,e)}}function Ie(e,t,r,n,i,o){function a(_){if(_!==void 0&&typeof _!="function")throw new TypeError("Function expected");return _}for(var u=n.kind,f=u==="getter"?"get":u==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,l=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),s,p=!1,d=r.length-1;d>=0;d--){var h={};for(var m in n)h[m]=m==="access"?{}:n[m];for(var m in n.access)h.access[m]=n.access[m];h.addInitializer=function(_){if(p)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(_||null))};var y=(0,r[d])(u==="accessor"?{get:l.get,set:l.set}:l[f],h);if(u==="accessor"){if(y===void 0)continue;if(y===null||typeof y!="object")throw new TypeError("Object expected");(s=a(y.get))&&(l.get=s),(s=a(y.set))&&(l.set=s),(s=a(y.init))&&i.unshift(s)}else(s=a(y))&&(u==="field"?i.unshift(s):l[f]=s)}c&&Object.defineProperty(c,n.name,l),p=!0}function We(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function Ne(e){return typeof e=="symbol"?e:"".concat(e)}function Ge(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function qe(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function k(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(l){try{c(n.next(l))}catch(s){a(s)}}function f(l){try{c(n.throw(l))}catch(s){a(s)}}function c(l){l.done?o(l.value):i(l.value).then(u,f)}c((n=n.apply(e,t||[])).next())})}function J(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(c){return function(l){return f([c,l])}}function f(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var ne=Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function Ue(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ne(t,e,r)}function B(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){a={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function $e(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function Ke(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)n[i]=o[a];return n}function w(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function G(e){return this instanceof G?(this.v=e,this):new G(e)}function Ve(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(d){return function(h){return Promise.resolve(h).then(d,s)}}function u(d,h){n[d]&&(i[d]=function(m){return new Promise(function(y,_){o.push([d,m,y,_])>1||f(d,m)})},h&&(i[d]=h(i[d])))}function f(d,h){try{c(n[d](h))}catch(m){p(o[0][3],m)}}function c(d){d.value instanceof G?Promise.resolve(d.value.v).then(l,s):p(o[0][2],d)}function l(d){f("next",d)}function s(d){f("throw",d)}function p(d,h){d(h),o.shift(),o.length&&f(o[0][0],o[0][1])}}function ke(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,o){t[i]=e[i]?function(a){return(r=!r)?{value:G(e[i](a)),done:!1}:o?o(a):a}:o}}function Je(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof B=="function"?B(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(a){return new Promise(function(u,f){a=e[o](a),i(u,f,a.done,a.value)})}}function i(o,a,u,f){Promise.resolve(f).then(function(c){o({value:c,done:u})},a)}}function Ye(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var jt=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},ve=function(e){return ve=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},ve(e)};function Xe(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ve(e),n=0;n<r.length;n++)r[n]!=="default"&&ne(t,e,r[n]);return jt(t,e),t}function Ze(e){return e&&e.__esModule?e:{default:e}}function Qe(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function et(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function tt(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function rt(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var Dt=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function nt(e){function t(o){e.error=e.hasError?new Dt(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(a){return t(a),i()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function it(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,o,a){return n?t?".jsx":".js":i&&(!o||!a)?r:i+o+"."+a.toLowerCase()+"js"}):e}const Lt={__extends:Fe,__assign:E,__rest:re,__decorate:Be,__param:He,__esDecorate:Ie,__runInitializers:We,__propKey:Ne,__setFunctionName:Ge,__metadata:qe,__awaiter:k,__generator:J,__createBinding:ne,__exportStar:Ue,__values:B,__read:g,__spread:$e,__spreadArrays:Ke,__spreadArray:w,__await:G,__asyncGenerator:Ve,__asyncDelegator:ke,__asyncValues:Je,__makeTemplateObject:Ye,__importStar:Xe,__importDefault:Ze,__classPrivateFieldGet:Qe,__classPrivateFieldSet:et,__classPrivateFieldIn:tt,__addDisposableResource:rt,__disposeResources:nt,__rewriteRelativeImportExtension:it},zt=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:rt,get __assign(){return E},__asyncDelegator:ke,__asyncGenerator:Ve,__asyncValues:Je,__await:G,__awaiter:k,__classPrivateFieldGet:Qe,__classPrivateFieldIn:tt,__classPrivateFieldSet:et,__createBinding:ne,__decorate:Be,__disposeResources:nt,__esDecorate:Ie,__exportStar:Ue,__extends:Fe,__generator:J,__importDefault:Ze,__importStar:Xe,__makeTemplateObject:Ye,__metadata:qe,__param:He,__propKey:Ne,__read:g,__rest:re,__rewriteRelativeImportExtension:it,__runInitializers:We,__setFunctionName:Ge,__spread:$e,__spreadArray:w,__spreadArrays:Ke,__values:B,default:Lt},Symbol.toStringTag,{value:"Module"}));var H=function(e){return typeof e=="function"},Ft=function(e){return typeof e=="string"},ie=function(e){return typeof e=="number"},Bt=function(e){return typeof e>"u"};function j(e){var t=v.useRef(e);t.current=v.useMemo(function(){return e},[e]);var r=v.useRef();return r.current||(r.current=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return t.current.apply(this,n)}),r.current}const V=xt(v.useEffect);var ot=function(e,t){var r=t.manual,n=t.ready,i=n===void 0?!0:n,o=t.defaultParams,a=o===void 0?[]:o,u=t.refreshDeps,f=u===void 0?[]:u,c=t.refreshDepsAction,l=v.useRef(!1);return l.current=!1,V(function(){!r&&i&&(l.current=!0,e.run.apply(e,w([],g(a),!1)))},[i]),V(function(){l.current||r||(l.current=!0,c?c():e.refresh())},w([],g(f),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};ot.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function he(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function be(e,t){var r=v.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!he(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function L(e){var t=v.useRef(e);return t.current=e,t}var W=function(e){var t=L(e);v.useEffect(function(){return function(){t.current()}},[])},Z=new Map,Ht=function(e,t,r){var n=Z.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var i=void 0;t>-1&&(i=setTimeout(function(){Z.delete(e)},t)),Z.set(e,E(E({},r),{timer:i}))},It=function(e){return Z.get(e)},Q=new Map,Wt=function(e){return Q.get(e)},Nt=function(e,t){Q.set(e,t),t.then(function(r){return Q.delete(e),r}).catch(function(){Q.delete(e)})},F={},Gt=function(e,t){F[e]&&F[e].forEach(function(r){return r(t)})},se=function(e,t){return F[e]||(F[e]=[]),F[e].push(t),function(){var n=F[e].indexOf(t);F[e].splice(n,1)}},qt=function(e,t){var r=t.cacheKey,n=t.cacheTime,i=n===void 0?5*60*1e3:n,o=t.staleTime,a=o===void 0?0:o,u=t.setCache,f=t.getCache,c=v.useRef(),l=v.useRef(),s=function(d,h){u?u(h):Ht(d,i,h),Gt(d,h.data)},p=function(d,h){return h===void 0&&(h=[]),f?f(h):It(d)};return be(function(){if(r){var d=p(r);d&&Object.hasOwnProperty.call(d,"data")&&(e.state.data=d.data,e.state.params=d.params,(a===-1||new Date().getTime()-d.time<=a)&&(e.state.loading=!1)),c.current=se(r,function(h){e.setState({data:h})})}},[]),W(function(){var d;(d=c.current)===null||d===void 0||d.call(c)}),r?{onBefore:function(d){var h=p(r,d);return!h||!Object.hasOwnProperty.call(h,"data")?{}:a===-1||new Date().getTime()-h.time<=a?{loading:!1,data:h==null?void 0:h.data,error:void 0,returnNow:!0}:{data:h==null?void 0:h.data,error:void 0}},onRequest:function(d,h){var m=Wt(r);return m&&m!==l.current?{servicePromise:m}:(m=d.apply(void 0,w([],g(h),!1)),l.current=m,Nt(r,m),{servicePromise:m})},onSuccess:function(d,h){var m;r&&((m=c.current)===null||m===void 0||m.call(c),s(r,{data:d,params:h,time:new Date().getTime()}),c.current=se(r,function(y){e.setState({data:y})}))},onMutate:function(d){var h;r&&((h=c.current)===null||h===void 0||h.call(c),s(r,{data:d,params:e.state.params,time:new Date().getTime()}),c.current=se(r,function(m){e.setState({data:m})}))}}:{}},Ut=function(e,t){var r=t.debounceWait,n=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,a=v.useRef(),u=v.useMemo(function(){var f={};return n!==void 0&&(f.leading=n),i!==void 0&&(f.trailing=i),o!==void 0&&(f.maxWait=o),f},[n,i,o]);return v.useEffect(function(){if(r){var f=e.runAsync.bind(e);return a.current=De(function(c){c()},r,u),e.runAsync=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new Promise(function(s,p){var d;(d=a.current)===null||d===void 0||d.call(a,function(){f.apply(void 0,w([],g(c),!1)).then(s).catch(p)})})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=f}}},[r,u]),r?{onCancel:function(){var f;(f=a.current)===null||f===void 0||f.cancel()}}:{}},$t=function(e,t){var r=t.loadingDelay,n=t.ready,i=v.useRef();if(!r)return{};var o=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return o(),n!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},z=!!(typeof window<"u"&&window.document&&window.document.createElement);function we(){return z?document.visibilityState!=="hidden":!0}var $=[];function Kt(e){return $.push(e),function(){var r=$.indexOf(e);$.splice(r,1)}}if(z){var Vt=function(){if(we())for(var e=0;e<$.length;e++){var t=$[e];t()}};window.addEventListener("visibilitychange",Vt,!1)}var kt=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,i=n===void 0?!0:n,o=t.pollingErrorRetryCount,a=o===void 0?-1:o,u=v.useRef(),f=v.useRef(),c=v.useRef(0),l=function(){var s;u.current&&clearTimeout(u.current),(s=f.current)===null||s===void 0||s.call(f)};return V(function(){r||l()},[r]),r?{onBefore:function(){l()},onError:function(){c.current+=1},onSuccess:function(){c.current=0},onFinally:function(){a===-1||a!==-1&&c.current<=a?u.current=setTimeout(function(){!i&&!we()?f.current=Kt(function(){e.refresh()}):e.refresh()},r):c.current=0},onCancel:function(){l()}}:{}};function Jt(e,t){var r=!1;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r||(r=!0,e.apply(void 0,w([],g(n),!1)),setTimeout(function(){r=!1},t))}}function Yt(){return z&&typeof navigator.onLine<"u"?navigator.onLine:!0}var K=[];function Xt(e){return K.push(e),function(){var r=K.indexOf(e);r>-1&&K.splice(r,1)}}if(z){var Re=function(){if(!(!we()||!Yt()))for(var e=0;e<K.length;e++){var t=K[e];t()}};window.addEventListener("visibilitychange",Re,!1),window.addEventListener("focus",Re,!1)}var Zt=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,i=n===void 0?5e3:n,o=v.useRef(),a=function(){var u;(u=o.current)===null||u===void 0||u.call(o)};return v.useEffect(function(){if(r){var u=Jt(e.refresh.bind(e),i);o.current=Xt(function(){u()})}return function(){a()}},[r,i]),W(function(){a()}),{}},Qt=function(e,t){var r=t.retryInterval,n=t.retryCount,i=v.useRef(),o=v.useRef(0),a=v.useRef(!1);return n?{onBefore:function(){a.current||(o.current=0),a.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,n===-1||o.current<=n){var u=r??Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){a.current=!0,e.refresh()},u)}else o.current=0},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current)}}:{}},er=function(e,t){var r=t.throttleWait,n=t.throttleLeading,i=t.throttleTrailing,o=v.useRef(),a={};return n!==void 0&&(a.leading=n),i!==void 0&&(a.trailing=i),v.useEffect(function(){if(r){var u=e.runAsync.bind(e);return o.current=Le(function(f){f()},r,a),e.runAsync=function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];return new Promise(function(l,s){var p;(p=o.current)===null||p===void 0||p.call(o,function(){u.apply(void 0,w([],g(f),!1)).then(l).catch(s)})})},function(){var f;e.runAsync=u,(f=o.current)===null||f===void 0||f.cancel()}}},[r,n,i]),r?{onCancel:function(){var u;(u=o.current)===null||u===void 0||u.cancel()}}:{}},tr=function(e){v.useEffect(function(){e==null||e()},[])},at=function(){var e=g(v.useState({}),2),t=e[1];return v.useCallback(function(){return t({})},[])},rr=function(){function e(t,r,n,i){i===void 0&&(i={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=E(E(E({},this.state),{loading:!r.manual}),i)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=E(E({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.pluginImpls.map(function(o){var a;return(a=o[t])===null||a===void 0?void 0:a.call.apply(a,w([o],g(r),!1))}).filter(Boolean);return Object.assign.apply(Object,w([{}],g(i),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return k(this,void 0,void 0,function(){var n,i,o,a,u,f,c,l,s,p,d,h,m,y,_,b,O,T,R,P,D;return J(this,function(C){switch(C.label){case 0:if(this.count+=1,n=this.count,i=this.runPluginHandler("onBefore",t),o=i.stopNow,a=o===void 0?!1:o,u=i.returnNow,f=u===void 0?!1:u,c=re(i,["stopNow","returnNow"]),a)return[2,new Promise(function(){})];if(this.setState(E({loading:!0,params:t},c)),f)return[2,Promise.resolve(c.data)];(m=(h=this.options).onBefore)===null||m===void 0||m.call(h,t),C.label=1;case 1:return C.trys.push([1,3,,4]),l=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,l||(l=(d=this.serviceRef).current.apply(d,w([],g(t),!1))),[4,l];case 2:return s=C.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:s,error:void 0,loading:!1}),(_=(y=this.options).onSuccess)===null||_===void 0||_.call(y,s,t),this.runPluginHandler("onSuccess",s,t),(O=(b=this.options).onFinally)===null||O===void 0||O.call(b,t,s,void 0),n===this.count&&this.runPluginHandler("onFinally",t,s,void 0),[2,s]);case 3:if(p=C.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:p,loading:!1}),(R=(T=this.options).onError)===null||R===void 0||R.call(T,p,t),this.runPluginHandler("onError",p,t),(D=(P=this.options).onFinally)===null||D===void 0||D.call(P,t,void 0,p),n===this.count&&this.runPluginHandler("onFinally",t,void 0,p),p;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,w([],g(r),!1)).catch(function(i){t.options.onError||console.error(i)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,w([],g(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,w([],g(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=H(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function nr(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,i=n===void 0?!1:n,o=t.ready,a=o===void 0?!0:o,u=re(t,["manual","ready"]),f=E({manual:i,ready:a},u),c=L(e),l=at(),s=be(function(){var p=r.map(function(d){var h;return(h=d==null?void 0:d.onInit)===null||h===void 0?void 0:h.call(d,f)}).filter(Boolean);return new rr(c,f,l,Object.assign.apply(Object,w([{}],g(p),!1)))},[]);return s.options=f,s.pluginImpls=r.map(function(p){return p(s,f)}),tr(function(){if(!i&&a){var p=s.state.params||t.defaultParams||[];s.run.apply(s,w([],g(p),!1))}}),W(function(){s.cancel()}),{loading:s.state.loading,data:s.state.data,error:s.state.error,params:s.state.params||[],cancel:j(s.cancel.bind(s)),refresh:j(s.refresh.bind(s)),refreshAsync:j(s.refreshAsync.bind(s)),run:j(s.run.bind(s)),runAsync:j(s.runAsync.bind(s)),mutate:j(s.mutate.bind(s))}}function ir(e,t,r){return nr(e,t,w(w([],g([]),!1),[Ut,$t,kt,Zt,er,ot,qt,Qt],!1))}function or(e){return H(e[Symbol.asyncIterator])}function Yr(e,t){v.useEffect(function(){var r=e(),n=!1;function i(){return k(this,void 0,void 0,function(){var o;return J(this,function(a){switch(a.label){case 0:if(!or(r))return[3,4];a.label=1;case 1:return[4,r.next()];case 2:return o=a.sent(),o.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:a.sent(),a.label=6;case 6:return[2]}})})}return i(),function(){n=!0}},t)}function ar(e,t){var r=g(v.useState(e),2),n=r[0],i=r[1],o=v.useMemo(function(){var a=!e,u=function(){return i(function(s){return s===e?a:e})},f=function(s){return i(s)},c=function(){return i(e)},l=function(){return i(a)};return{toggle:u,set:f,setLeft:c,setRight:l}},[]);return[n,o]}function Xr(e){var t=g(ar(!!e),2),r=t[0],n=t[1],i=n.toggle,o=n.set,a=v.useMemo(function(){var u=function(){return o(!0)},f=function(){return o(!1)};return{toggle:i,set:function(c){return o(!!c)},setTrue:u,setFalse:f}},[]);return[r,a]}function I(e,t){if(z){if(!e)return t;var r;return H(e)?r=e():"current"in e?r=e.current:r=e,r}}var ut=function(e){var t=function(r,n,i){var o=v.useRef(!1),a=v.useRef([]),u=v.useRef([]),f=v.useRef();e(function(){var c,l=Array.isArray(i)?i:[i],s=l.map(function(p){return I(p)});if(!o.current){o.current=!0,a.current=s,u.current=n,f.current=r();return}(s.length!==a.current.length||!he(a.current,s)||!he(u.current,n))&&((c=f.current)===null||c===void 0||c.call(f),a.current=s,u.current=n,f.current=r())}),W(function(){var c;(c=f.current)===null||c===void 0||c.call(f),o.current=!1})};return t},_e=ut(v.useEffect),le=function(e){if(!e)return 0;var t=Et(e).valueOf()-Date.now();return t<0?0:t},ur=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},Zr=function(e){e===void 0&&(e={});var t=e||{},r=t.leftTime,n=t.targetDate,i=t.interval,o=i===void 0?1e3:i,a=t.onEnd,u=v.useMemo(function(){return ie(r)&&r>0?Date.now()+r:void 0},[r]),f="leftTime"in e?u:n,c=g(v.useState(function(){return le(f)}),2),l=c[0],s=c[1],p=L(a);v.useEffect(function(){if(!f){s(0);return}s(le(f));var h=setInterval(function(){var m,y=le(f);s(y),y===0&&(clearInterval(h),(m=p.current)===null||m===void 0||m.call(p))},o);return function(){return clearInterval(h)}},[f,o]);var d=v.useMemo(function(){return ur(l)},[l]);return[l,d]};function cr(e,t){var r,n=L(e),i=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,o=v.useMemo(function(){return De(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,w([],g(a),!1))},i,t)},[]);return W(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}function Qr(e,t){var r=g(v.useState(e),2),n=r[0],i=r[1],o=cr(function(){i(e)},t).run;return v.useEffect(function(){o()},[e]),n}var fr=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),At(e,t)};function pe(e,t,r){r===void 0&&(r={});var n=r.enable,i=n===void 0?!0:n,o=L(t);_e(function(){if(i){var a=I(r.target,window);if(a!=null&&a.addEventListener){var u=function(c){return o.current(c)},f=Array.isArray(e)?e:[e];return f.forEach(function(c){a.addEventListener(c,u,{capture:r.capture,once:r.once,passive:r.passive})}),function(){f.forEach(function(c){a.removeEventListener(c,u,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,i],r.target)}function en(e){var t=g(v.useState(e),2),r=t[0],n=t[1],i=L(r),o=v.useCallback(function(){return i.current},[]);return[r,n,o]}var sr=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Ce=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},lr=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},tn=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,o=i===void 0?100:i,a=t.direction,u=a===void 0?"bottom":a,f=t.reloadDeps,c=f===void 0?[]:f,l=t.manual,s=t.onBefore,p=t.onSuccess,d=t.onError,h=t.onFinally,m=g(v.useState(),2),y=m[0],_=m[1],b=g(v.useState(!1),2),O=b[0],T=b[1],R=u==="top",P=v.useRef(),D=v.useRef(0),C=v.useMemo(function(){return n?n(y):!1},[y]),A=ir(function(M){return k(void 0,void 0,void 0,function(){var S,x,N,U;return J(this,function(Oe){switch(Oe.label){case 0:return[4,e(M)];case 1:return S=Oe.sent(),_(M?E(E({},S),{list:R?w(w([],g(S.list),!1),g((N=M.list)!==null&&N!==void 0?N:[]),!1):w(w([],g((U=M.list)!==null&&U!==void 0?U:[]),!1),g(S.list),!1)}):E(E({},S),{list:w([],g((x=S.list)!==null&&x!==void 0?x:[]),!1)})),[2,S]}})})},{manual:l,onFinally:function(M,S,x){T(!1),h==null||h(S,x)},onBefore:function(){return s==null?void 0:s()},onSuccess:function(M){setTimeout(function(){if(R){var S=I(r);if(S=S===document?document.documentElement:S,S){var x=Ce(S);S.scrollTo(0,x-D.current)}}else Se()}),p==null||p(M)},onError:function(M){return d==null?void 0:d(M)}}),Y=A.loading,ae=A.error,ue=A.run,Ee=A.runAsync,yt=A.cancel,ce=j(function(){C||(T(!0),ue(y))}),gt=j(function(){return C?Promise.reject():(T(!0),Ee(y))}),bt=function(){return T(!1),ue()},wt=function(){return T(!1),Ee()},Se=function(){var M=I(r);if(M){var S=M===document?document.documentElement:M,x=sr(S),N=Ce(S),U=lr(S);R?(P.current!==void 0&&P.current>x&&x<=o&&ce(),P.current=x,D.current=N-x):N-x<=U+o&&ce()}};return pe("scroll",function(){Y||O||Se()},{target:r}),V(function(){ue()},w([],g(c),!1)),{data:y,loading:!O&&Y,error:ae,loadingMore:O,noMore:C,loadMore:ce,loadMoreAsync:gt,reload:j(bt),reloadAsync:j(wt),mutate:_,cancel:yt}},rn=function(e,t,r){r===void 0&&(r={});var n=j(e),i=v.useRef(null),o=v.useCallback(function(){i.current&&clearInterval(i.current)},[]);return v.useEffect(function(){if(!(!ie(t)||t<0))return r.immediate&&n(),i.current=setInterval(n,t),o},[t,r.immediate]),o},dr=function(e,t,r){var n=v.useRef(),i=v.useRef(0);fr(t,n.current)||(i.current+=1),n.current=t,_e(e,[i.current],r)},vr=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),ct={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:vr?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},me={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?ct.meta.includes(e.keyCode):e.metaKey}};function ft(e){return Ft(e)||ie(e)}function hr(e){var t=Object.keys(me).reduce(function(r,n){return me[n](e)?r+1:r},0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}function Te(e,t,r){var n,i;if(!e.key)return!1;if(ie(t))return e.keyCode===t?t:!1;var o=t.split("."),a=0;try{for(var u=B(o),f=u.next();!f.done;f=u.next()){var c=f.value,l=me[c],s=ct[c.toLowerCase()];(l&&l(e)||s&&s===e.keyCode)&&a++}}catch(p){n={error:p}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return r?a===o.length&&hr(e)===o.length?t:!1:a===o.length?t:!1}function pr(e,t){return H(e)?e:ft(e)?function(r){return Te(r,e,t)}:Array.isArray(e)?function(r){return e.find(function(n){return Te(r,n,t)})}:function(){return!!e}}var mr=["keydown"];function nn(e,t,r){var n=r||{},i=n.events,o=i===void 0?mr:i,a=n.target,u=n.exactMatch,f=u===void 0?!1:u,c=n.useCapture,l=c===void 0?!1:c,s=L(t),p=L(e);dr(function(){var d,h,m,y=I(a,window);if(y){var _=function(R){var P,D=pr(p.current,f),C=D(R),A=ft(C)?C:R.key;if(C)return(P=s.current)===null||P===void 0?void 0:P.call(s,R,A)};try{for(var b=B(o),O=b.next();!O.done;O=b.next()){var T=O.value;(m=y==null?void 0:y.addEventListener)===null||m===void 0||m.call(y,T,_,l)}}catch(R){d={error:R}}finally{try{O&&!O.done&&(h=b.return)&&h.call(b)}finally{if(d)throw d.error}}return function(){var R,P,D;try{for(var C=B(o),A=C.next();!A.done;A=C.next()){var Y=A.value;(D=y==null?void 0:y.removeEventListener)===null||D===void 0||D.call(y,Y,_,l)}}catch(ae){R={error:ae}}finally{try{A&&!A.done&&(P=C.return)&&P.call(C)}finally{if(R)throw R.error}}}}},[o],a)}var Pe="AHOOKS_SYNC_STORAGE_EVENT_NAME";function st(e){function t(r,n){n===void 0&&(n={});var i,o=n.listenStorageChange,a=o===void 0?!1:o,u=n.onError,f=u===void 0?function(b){console.error(b)}:u;try{i=e()}catch(b){f(b)}var c=function(b){return n.serializer?n.serializer(b):JSON.stringify(b)},l=function(b){return n.deserializer?n.deserializer(b):JSON.parse(b)};function s(){try{var b=i==null?void 0:i.getItem(r);if(b)return l(b)}catch(O){f(O)}return H(n.defaultValue)?n.defaultValue():n.defaultValue}var p=g(v.useState(s),2),d=p[0],h=p[1];V(function(){h(s())},[r]);var m=function(b){var O=H(b)?b(d):b;a||h(O);try{var T=void 0,R=i==null?void 0:i.getItem(r);Bt(O)?(T=null,i==null||i.removeItem(r)):(T=c(O),i==null||i.setItem(r,T)),dispatchEvent(new CustomEvent(Pe,{detail:{key:r,newValue:T,oldValue:R,storageArea:i}}))}catch(P){f(P)}},y=function(b){b.key!==r||b.storageArea!==i||h(s())},_=function(b){y(b.detail)};return pe("storage",y,{enable:a}),pe(Pe,_,{enable:a}),[d,j(m)]}return t}var on=st(function(){return z?localStorage:void 0});function yr(e){var t=v.useRef(0),r=g(v.useState(e),2),n=r[0],i=r[1],o=v.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(a)})},[]);return W(function(){cancelAnimationFrame(t.current)}),[n,o]}var gr=function(e,t){return!Object.is(e,t)};function an(e,t){t===void 0&&(t=gr);var r=v.useRef(),n=v.useRef();return t(n.current,e)&&(r.current=n.current,n.current=e),r.current}var Ae=new WeakMap,Me=new WeakMap;function lt(e,t){var r=Ae.get(e);if(r)return r;if(Me.has(e))return e;var n=new Proxy(e,{get:function(i,o,a){var u=Reflect.get(i,o,a),f=Reflect.getOwnPropertyDescriptor(i,o);return!(f!=null&&f.configurable)&&!(f!=null&&f.writable)?u:St(u)||Array.isArray(u)?lt(u,t):u},set:function(i,o,a){var u=Reflect.set(i,o,a);return t(),u},deleteProperty:function(i,o){var a=Reflect.deleteProperty(i,o);return t(),a}});return Ae.set(e,n),Me.set(n,e),n}function un(e){var t=at(),r=v.useRef(e),n=be(function(){return lt(r.current,function(){t()})},[]);return n}var cn=st(function(){return z?sessionStorage:void 0}),fn=function(e){var t=g(v.useState(e),2),r=t[0],n=t[1],i=j(function(o){n(function(a){var u=H(o)?o(a):o;return u?E(E({},a),u):a})});return[r,i]},dt=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];r.call(n,a[1],a[0])}},t}()}(),ye=typeof window<"u"&&typeof document<"u"&&window.document===document,ee=function(){return typeof fe<"u"&&fe.Math===Math?fe:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),br=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ee):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),wr=2;function _r(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&u()}function a(){br(o)}function u(){var f=Date.now();if(r){if(f-i<wr)return;n=!0}else r=!0,n=!1,setTimeout(a,t);i=f}return u}var Er=20,Sr=["top","right","bottom","left","width","height","size","weight"],Or=typeof MutationObserver<"u",Rr=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=_r(this.refresh.bind(this),Er)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!ye||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Or?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ye||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=Sr.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),vt=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},q=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ee},ht=oe(0,0,0,0);function te(e){return parseFloat(e)||0}function xe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+te(o)},0)}function Cr(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],a=e["padding-"+o];r[o]=te(a)}return r}function Tr(e){var t=e.getBBox();return oe(0,0,t.width,t.height)}function Pr(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return ht;var n=q(e).getComputedStyle(e),i=Cr(n),o=i.left+i.right,a=i.top+i.bottom,u=te(n.width),f=te(n.height);if(n.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=xe(n,"left","right")+o),Math.round(f+a)!==r&&(f-=xe(n,"top","bottom")+a)),!Mr(e)){var c=Math.round(u+o)-t,l=Math.round(f+a)-r;Math.abs(c)!==1&&(u-=c),Math.abs(l)!==1&&(f-=l)}return oe(i.left,i.top,u,f)}var Ar=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof q(e).SVGGraphicsElement}:function(e){return e instanceof q(e).SVGElement&&typeof e.getBBox=="function"}}();function Mr(e){return e===q(e).document.documentElement}function xr(e){return ye?Ar(e)?Tr(e):Pr(e):ht}function jr(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return vt(a,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),a}function oe(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Dr=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=oe(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=xr(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Lr=function(){function e(t,r){var n=jr(r);vt(this,{target:t,contentRect:n})}return e}(),zr=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new dt,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof q(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Dr(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof q(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Lr(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),pt=typeof WeakMap<"u"?new WeakMap:new dt,mt=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Rr.getInstance(),n=new zr(t,r,this);pt.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){mt.prototype[e]=function(){var t;return(t=pt.get(this))[e].apply(t,arguments)}});var Fr=function(){return typeof ee.ResizeObserver<"u"?ee.ResizeObserver:mt}(),Br=ut(v.useLayoutEffect),Hr=z?Br:_e;function sn(e){var t=g(yr(function(){var i=I(e);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),r=t[0],n=t[1];return Hr(function(){var i=I(e);if(i){var o=new Fr(function(a){a.forEach(function(u){var f=u.target,c=f.clientWidth,l=f.clientHeight;n({width:c,height:l})})});return o.observe(i),function(){o.disconnect()}}},[],e),r}function ln(e,t){var r,n=L(e),i=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,o=v.useMemo(function(){return Le(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,w([],g(a),!1))},i,t)},[]);return W(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}var Ir=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}},Wr=Ir,je={"text/plain":"Text","text/html":"Url",default:"Text"},Nr="Copy to clipboard: #{key}, Enter";function Gr(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function qr(e,t){var r,n,i,o,a,u,f=!1;t||(t={}),r=t.debug||!1;try{i=Wr(),o=document.createRange(),a=document.getSelection(),u=document.createElement("span"),u.textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(l){if(l.stopPropagation(),t.format)if(l.preventDefault(),typeof l.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=je[t.format]||je.default;window.clipboardData.setData(s,e)}else l.clipboardData.clearData(),l.clipboardData.setData(t.format,e);t.onCopy&&(l.preventDefault(),t.onCopy(l.clipboardData))}),document.body.appendChild(u),o.selectNodeContents(u),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");f=!0}catch(l){r&&console.error("unable to copy using execCommand: ",l),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(s){r&&console.error("unable to copy using clipboardData: ",s),r&&console.error("falling back to prompt"),n=Gr("message"in t?t.message:Nr),window.prompt(n,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),u&&document.body.removeChild(u),i()}return f}var Ur=qr;const dn=ge(Ur),vn=_t(zt);function $r(){var e=v.useRef(!1),t=v.useCallback(function(){return e.current},[]);return v.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}function Kr(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=v.useRef(0),i=$r(),o=v.useState(r),a=o[0],u=o[1],f=v.useCallback(function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];var s=++n.current;return a.loading||u(function(p){return E(E({},p),{loading:!0})}),e.apply(void 0,c).then(function(p){return i()&&s===n.current&&u({value:p,loading:!1}),p},function(p){return i()&&s===n.current&&u({error:p,loading:!1}),p})},t);return[a,f]}function hn(e,t){t===void 0&&(t=[]);var r=Kr(e,t,{loading:!0}),n=r[0],i=r[1];return v.useEffect(function(){i()},[i]),n}export{Xr as A,Fe as B,Jr as C,k as D,E,J as F,en as G,Be as _,un as a,sn as b,dn as c,L as d,cr as e,be as f,rn as g,Qr as h,Yr as i,on as j,tr as k,ir as l,at as m,an as n,V as o,At as p,ln as q,cn as r,W as s,Zr as t,j as u,fn as v,vn as w,tn as x,hn as y,nn as z};
|
|
7
|
+
*/(function(e,t){(function(r){var n;if(e.exports=r(),n=!0,!n){var i=window.Cookies,o=window.Cookies=r();o.noConflict=function(){return window.Cookies=i,o}}})(function(){function r(){for(var o=0,a={};o<arguments.length;o++){var u=arguments[o];for(var f in u)a[f]=u[f]}return a}function n(o){return o.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function i(o){function a(){}function u(c,l,s){if(!(typeof document>"u")){s=r({path:"/"},a.defaults,s),typeof s.expires=="number"&&(s.expires=new Date(new Date*1+s.expires*864e5)),s.expires=s.expires?s.expires.toUTCString():"";try{var p=JSON.stringify(l);/^[\{\[]/.test(p)&&(l=p)}catch{}l=o.write?o.write(l,c):encodeURIComponent(String(l)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var d="";for(var h in s)s[h]&&(d+="; "+h,s[h]!==!0&&(d+="="+s[h].split(";")[0]));return document.cookie=c+"="+l+d}}function f(c,l){if(!(typeof document>"u")){for(var s={},p=document.cookie?document.cookie.split("; "):[],d=0;d<p.length;d++){var h=p[d].split("="),m=h.slice(1).join("=");!l&&m.charAt(0)==='"'&&(m=m.slice(1,-1));try{var y=n(h[0]);if(m=(o.read||o)(m,y)||n(m),l)try{m=JSON.parse(m)}catch{}if(s[y]=m,c===y)break}catch{}}return c?s[c]:s}}return a.set=u,a.get=function(c){return f(c,!1)},a.getJSON=function(c){return f(c,!0)},a.remove=function(c,l){u(c,"",r(l,{expires:-1}))},a.defaults={},a.withConverter=i,a}return i(function(){})})})(ze);var Mt=ze.exports;const Jr=ge(Mt);var xt=function(e){return function(t,r){var n=v.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},de=function(e,t){return de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},de(e,t)};function Fe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");de(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var E=function(){return E=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},E.apply(this,arguments)};function re(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Be(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function He(e,t){return function(r,n){t(r,n,e)}}function Ie(e,t,r,n,i,o){function a(_){if(_!==void 0&&typeof _!="function")throw new TypeError("Function expected");return _}for(var u=n.kind,f=u==="getter"?"get":u==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,l=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),s,p=!1,d=r.length-1;d>=0;d--){var h={};for(var m in n)h[m]=m==="access"?{}:n[m];for(var m in n.access)h.access[m]=n.access[m];h.addInitializer=function(_){if(p)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(_||null))};var y=(0,r[d])(u==="accessor"?{get:l.get,set:l.set}:l[f],h);if(u==="accessor"){if(y===void 0)continue;if(y===null||typeof y!="object")throw new TypeError("Object expected");(s=a(y.get))&&(l.get=s),(s=a(y.set))&&(l.set=s),(s=a(y.init))&&i.unshift(s)}else(s=a(y))&&(u==="field"?i.unshift(s):l[f]=s)}c&&Object.defineProperty(c,n.name,l),p=!0}function We(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function Ne(e){return typeof e=="symbol"?e:"".concat(e)}function Ge(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function qe(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function k(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(l){try{c(n.next(l))}catch(s){a(s)}}function f(l){try{c(n.throw(l))}catch(s){a(s)}}function c(l){l.done?o(l.value):i(l.value).then(u,f)}c((n=n.apply(e,t||[])).next())})}function J(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(c){return function(l){return f([c,l])}}function f(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var ne=Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function Ue(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ne(t,e,r)}function B(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){a={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function $e(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function Ke(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)n[i]=o[a];return n}function w(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function G(e){return this instanceof G?(this.v=e,this):new G(e)}function Ve(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(d){return function(h){return Promise.resolve(h).then(d,s)}}function u(d,h){n[d]&&(i[d]=function(m){return new Promise(function(y,_){o.push([d,m,y,_])>1||f(d,m)})},h&&(i[d]=h(i[d])))}function f(d,h){try{c(n[d](h))}catch(m){p(o[0][3],m)}}function c(d){d.value instanceof G?Promise.resolve(d.value.v).then(l,s):p(o[0][2],d)}function l(d){f("next",d)}function s(d){f("throw",d)}function p(d,h){d(h),o.shift(),o.length&&f(o[0][0],o[0][1])}}function ke(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,o){t[i]=e[i]?function(a){return(r=!r)?{value:G(e[i](a)),done:!1}:o?o(a):a}:o}}function Je(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof B=="function"?B(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(a){return new Promise(function(u,f){a=e[o](a),i(u,f,a.done,a.value)})}}function i(o,a,u,f){Promise.resolve(f).then(function(c){o({value:c,done:u})},a)}}function Ye(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var jt=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},ve=function(e){return ve=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},ve(e)};function Xe(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ve(e),n=0;n<r.length;n++)r[n]!=="default"&&ne(t,e,r[n]);return jt(t,e),t}function Ze(e){return e&&e.__esModule?e:{default:e}}function Qe(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function et(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function tt(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function rt(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var Dt=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function nt(e){function t(o){e.error=e.hasError?new Dt(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(a){return t(a),i()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function it(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,o,a){return n?t?".jsx":".js":i&&(!o||!a)?r:i+o+"."+a.toLowerCase()+"js"}):e}const Lt={__extends:Fe,__assign:E,__rest:re,__decorate:Be,__param:He,__esDecorate:Ie,__runInitializers:We,__propKey:Ne,__setFunctionName:Ge,__metadata:qe,__awaiter:k,__generator:J,__createBinding:ne,__exportStar:Ue,__values:B,__read:g,__spread:$e,__spreadArrays:Ke,__spreadArray:w,__await:G,__asyncGenerator:Ve,__asyncDelegator:ke,__asyncValues:Je,__makeTemplateObject:Ye,__importStar:Xe,__importDefault:Ze,__classPrivateFieldGet:Qe,__classPrivateFieldSet:et,__classPrivateFieldIn:tt,__addDisposableResource:rt,__disposeResources:nt,__rewriteRelativeImportExtension:it},zt=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:rt,get __assign(){return E},__asyncDelegator:ke,__asyncGenerator:Ve,__asyncValues:Je,__await:G,__awaiter:k,__classPrivateFieldGet:Qe,__classPrivateFieldIn:tt,__classPrivateFieldSet:et,__createBinding:ne,__decorate:Be,__disposeResources:nt,__esDecorate:Ie,__exportStar:Ue,__extends:Fe,__generator:J,__importDefault:Ze,__importStar:Xe,__makeTemplateObject:Ye,__metadata:qe,__param:He,__propKey:Ne,__read:g,__rest:re,__rewriteRelativeImportExtension:it,__runInitializers:We,__setFunctionName:Ge,__spread:$e,__spreadArray:w,__spreadArrays:Ke,__values:B,default:Lt},Symbol.toStringTag,{value:"Module"}));var H=function(e){return typeof e=="function"},Ft=function(e){return typeof e=="string"},ie=function(e){return typeof e=="number"},Bt=function(e){return typeof e>"u"};function j(e){var t=v.useRef(e);t.current=v.useMemo(function(){return e},[e]);var r=v.useRef();return r.current||(r.current=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return t.current.apply(this,n)}),r.current}const V=xt(v.useEffect);var ot=function(e,t){var r=t.manual,n=t.ready,i=n===void 0?!0:n,o=t.defaultParams,a=o===void 0?[]:o,u=t.refreshDeps,f=u===void 0?[]:u,c=t.refreshDepsAction,l=v.useRef(!1);return l.current=!1,V(function(){!r&&i&&(l.current=!0,e.run.apply(e,w([],g(a),!1)))},[i]),V(function(){l.current||r||(l.current=!0,c?c():e.refresh())},w([],g(f),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};ot.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function he(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function be(e,t){var r=v.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!he(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function L(e){var t=v.useRef(e);return t.current=e,t}var W=function(e){var t=L(e);v.useEffect(function(){return function(){t.current()}},[])},Z=new Map,Ht=function(e,t,r){var n=Z.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var i=void 0;t>-1&&(i=setTimeout(function(){Z.delete(e)},t)),Z.set(e,E(E({},r),{timer:i}))},It=function(e){return Z.get(e)},Q=new Map,Wt=function(e){return Q.get(e)},Nt=function(e,t){Q.set(e,t),t.then(function(r){return Q.delete(e),r}).catch(function(){Q.delete(e)})},F={},Gt=function(e,t){F[e]&&F[e].forEach(function(r){return r(t)})},se=function(e,t){return F[e]||(F[e]=[]),F[e].push(t),function(){var n=F[e].indexOf(t);F[e].splice(n,1)}},qt=function(e,t){var r=t.cacheKey,n=t.cacheTime,i=n===void 0?5*60*1e3:n,o=t.staleTime,a=o===void 0?0:o,u=t.setCache,f=t.getCache,c=v.useRef(),l=v.useRef(),s=function(d,h){u?u(h):Ht(d,i,h),Gt(d,h.data)},p=function(d,h){return h===void 0&&(h=[]),f?f(h):It(d)};return be(function(){if(r){var d=p(r);d&&Object.hasOwnProperty.call(d,"data")&&(e.state.data=d.data,e.state.params=d.params,(a===-1||new Date().getTime()-d.time<=a)&&(e.state.loading=!1)),c.current=se(r,function(h){e.setState({data:h})})}},[]),W(function(){var d;(d=c.current)===null||d===void 0||d.call(c)}),r?{onBefore:function(d){var h=p(r,d);return!h||!Object.hasOwnProperty.call(h,"data")?{}:a===-1||new Date().getTime()-h.time<=a?{loading:!1,data:h==null?void 0:h.data,error:void 0,returnNow:!0}:{data:h==null?void 0:h.data,error:void 0}},onRequest:function(d,h){var m=Wt(r);return m&&m!==l.current?{servicePromise:m}:(m=d.apply(void 0,w([],g(h),!1)),l.current=m,Nt(r,m),{servicePromise:m})},onSuccess:function(d,h){var m;r&&((m=c.current)===null||m===void 0||m.call(c),s(r,{data:d,params:h,time:new Date().getTime()}),c.current=se(r,function(y){e.setState({data:y})}))},onMutate:function(d){var h;r&&((h=c.current)===null||h===void 0||h.call(c),s(r,{data:d,params:e.state.params,time:new Date().getTime()}),c.current=se(r,function(m){e.setState({data:m})}))}}:{}},Ut=function(e,t){var r=t.debounceWait,n=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,a=v.useRef(),u=v.useMemo(function(){var f={};return n!==void 0&&(f.leading=n),i!==void 0&&(f.trailing=i),o!==void 0&&(f.maxWait=o),f},[n,i,o]);return v.useEffect(function(){if(r){var f=e.runAsync.bind(e);return a.current=De(function(c){c()},r,u),e.runAsync=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new Promise(function(s,p){var d;(d=a.current)===null||d===void 0||d.call(a,function(){f.apply(void 0,w([],g(c),!1)).then(s).catch(p)})})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=f}}},[r,u]),r?{onCancel:function(){var f;(f=a.current)===null||f===void 0||f.cancel()}}:{}},$t=function(e,t){var r=t.loadingDelay,n=t.ready,i=v.useRef();if(!r)return{};var o=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return o(),n!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},z=!!(typeof window<"u"&&window.document&&window.document.createElement);function we(){return z?document.visibilityState!=="hidden":!0}var $=[];function Kt(e){return $.push(e),function(){var r=$.indexOf(e);$.splice(r,1)}}if(z){var Vt=function(){if(we())for(var e=0;e<$.length;e++){var t=$[e];t()}};window.addEventListener("visibilitychange",Vt,!1)}var kt=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,i=n===void 0?!0:n,o=t.pollingErrorRetryCount,a=o===void 0?-1:o,u=v.useRef(),f=v.useRef(),c=v.useRef(0),l=function(){var s;u.current&&clearTimeout(u.current),(s=f.current)===null||s===void 0||s.call(f)};return V(function(){r||l()},[r]),r?{onBefore:function(){l()},onError:function(){c.current+=1},onSuccess:function(){c.current=0},onFinally:function(){a===-1||a!==-1&&c.current<=a?u.current=setTimeout(function(){!i&&!we()?f.current=Kt(function(){e.refresh()}):e.refresh()},r):c.current=0},onCancel:function(){l()}}:{}};function Jt(e,t){var r=!1;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r||(r=!0,e.apply(void 0,w([],g(n),!1)),setTimeout(function(){r=!1},t))}}function Yt(){return z&&typeof navigator.onLine<"u"?navigator.onLine:!0}var K=[];function Xt(e){return K.push(e),function(){var r=K.indexOf(e);r>-1&&K.splice(r,1)}}if(z){var Re=function(){if(!(!we()||!Yt()))for(var e=0;e<K.length;e++){var t=K[e];t()}};window.addEventListener("visibilitychange",Re,!1),window.addEventListener("focus",Re,!1)}var Zt=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,i=n===void 0?5e3:n,o=v.useRef(),a=function(){var u;(u=o.current)===null||u===void 0||u.call(o)};return v.useEffect(function(){if(r){var u=Jt(e.refresh.bind(e),i);o.current=Xt(function(){u()})}return function(){a()}},[r,i]),W(function(){a()}),{}},Qt=function(e,t){var r=t.retryInterval,n=t.retryCount,i=v.useRef(),o=v.useRef(0),a=v.useRef(!1);return n?{onBefore:function(){a.current||(o.current=0),a.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,n===-1||o.current<=n){var u=r??Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){a.current=!0,e.refresh()},u)}else o.current=0},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current)}}:{}},er=function(e,t){var r=t.throttleWait,n=t.throttleLeading,i=t.throttleTrailing,o=v.useRef(),a={};return n!==void 0&&(a.leading=n),i!==void 0&&(a.trailing=i),v.useEffect(function(){if(r){var u=e.runAsync.bind(e);return o.current=Le(function(f){f()},r,a),e.runAsync=function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];return new Promise(function(l,s){var p;(p=o.current)===null||p===void 0||p.call(o,function(){u.apply(void 0,w([],g(f),!1)).then(l).catch(s)})})},function(){var f;e.runAsync=u,(f=o.current)===null||f===void 0||f.cancel()}}},[r,n,i]),r?{onCancel:function(){var u;(u=o.current)===null||u===void 0||u.cancel()}}:{}},tr=function(e){v.useEffect(function(){e==null||e()},[])},at=function(){var e=g(v.useState({}),2),t=e[1];return v.useCallback(function(){return t({})},[])},rr=function(){function e(t,r,n,i){i===void 0&&(i={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=E(E(E({},this.state),{loading:!r.manual}),i)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=E(E({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.pluginImpls.map(function(o){var a;return(a=o[t])===null||a===void 0?void 0:a.call.apply(a,w([o],g(r),!1))}).filter(Boolean);return Object.assign.apply(Object,w([{}],g(i),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return k(this,void 0,void 0,function(){var n,i,o,a,u,f,c,l,s,p,d,h,m,y,_,b,O,T,R,P,D;return J(this,function(C){switch(C.label){case 0:if(this.count+=1,n=this.count,i=this.runPluginHandler("onBefore",t),o=i.stopNow,a=o===void 0?!1:o,u=i.returnNow,f=u===void 0?!1:u,c=re(i,["stopNow","returnNow"]),a)return[2,new Promise(function(){})];if(this.setState(E({loading:!0,params:t},c)),f)return[2,Promise.resolve(c.data)];(m=(h=this.options).onBefore)===null||m===void 0||m.call(h,t),C.label=1;case 1:return C.trys.push([1,3,,4]),l=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,l||(l=(d=this.serviceRef).current.apply(d,w([],g(t),!1))),[4,l];case 2:return s=C.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:s,error:void 0,loading:!1}),(_=(y=this.options).onSuccess)===null||_===void 0||_.call(y,s,t),this.runPluginHandler("onSuccess",s,t),(O=(b=this.options).onFinally)===null||O===void 0||O.call(b,t,s,void 0),n===this.count&&this.runPluginHandler("onFinally",t,s,void 0),[2,s]);case 3:if(p=C.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:p,loading:!1}),(R=(T=this.options).onError)===null||R===void 0||R.call(T,p,t),this.runPluginHandler("onError",p,t),(D=(P=this.options).onFinally)===null||D===void 0||D.call(P,t,void 0,p),n===this.count&&this.runPluginHandler("onFinally",t,void 0,p),p;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,w([],g(r),!1)).catch(function(i){t.options.onError||console.error(i)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,w([],g(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,w([],g(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=H(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function nr(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,i=n===void 0?!1:n,o=t.ready,a=o===void 0?!0:o,u=re(t,["manual","ready"]),f=E({manual:i,ready:a},u),c=L(e),l=at(),s=be(function(){var p=r.map(function(d){var h;return(h=d==null?void 0:d.onInit)===null||h===void 0?void 0:h.call(d,f)}).filter(Boolean);return new rr(c,f,l,Object.assign.apply(Object,w([{}],g(p),!1)))},[]);return s.options=f,s.pluginImpls=r.map(function(p){return p(s,f)}),tr(function(){if(!i&&a){var p=s.state.params||t.defaultParams||[];s.run.apply(s,w([],g(p),!1))}}),W(function(){s.cancel()}),{loading:s.state.loading,data:s.state.data,error:s.state.error,params:s.state.params||[],cancel:j(s.cancel.bind(s)),refresh:j(s.refresh.bind(s)),refreshAsync:j(s.refreshAsync.bind(s)),run:j(s.run.bind(s)),runAsync:j(s.runAsync.bind(s)),mutate:j(s.mutate.bind(s))}}function ir(e,t,r){return nr(e,t,w(w([],g([]),!1),[Ut,$t,kt,Zt,er,ot,qt,Qt],!1))}function or(e){return H(e[Symbol.asyncIterator])}function Yr(e,t){v.useEffect(function(){var r=e(),n=!1;function i(){return k(this,void 0,void 0,function(){var o;return J(this,function(a){switch(a.label){case 0:if(!or(r))return[3,4];a.label=1;case 1:return[4,r.next()];case 2:return o=a.sent(),o.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:a.sent(),a.label=6;case 6:return[2]}})})}return i(),function(){n=!0}},t)}function ar(e,t){var r=g(v.useState(e),2),n=r[0],i=r[1],o=v.useMemo(function(){var a=!e,u=function(){return i(function(s){return s===e?a:e})},f=function(s){return i(s)},c=function(){return i(e)},l=function(){return i(a)};return{toggle:u,set:f,setLeft:c,setRight:l}},[]);return[n,o]}function Xr(e){var t=g(ar(!!e),2),r=t[0],n=t[1],i=n.toggle,o=n.set,a=v.useMemo(function(){var u=function(){return o(!0)},f=function(){return o(!1)};return{toggle:i,set:function(c){return o(!!c)},setTrue:u,setFalse:f}},[]);return[r,a]}function I(e,t){if(z){if(!e)return t;var r;return H(e)?r=e():"current"in e?r=e.current:r=e,r}}var ut=function(e){var t=function(r,n,i){var o=v.useRef(!1),a=v.useRef([]),u=v.useRef([]),f=v.useRef();e(function(){var c,l=Array.isArray(i)?i:[i],s=l.map(function(p){return I(p)});if(!o.current){o.current=!0,a.current=s,u.current=n,f.current=r();return}(s.length!==a.current.length||!he(a.current,s)||!he(u.current,n))&&((c=f.current)===null||c===void 0||c.call(f),a.current=s,u.current=n,f.current=r())}),W(function(){var c;(c=f.current)===null||c===void 0||c.call(f),o.current=!1})};return t},_e=ut(v.useEffect),le=function(e){if(!e)return 0;var t=Et(e).valueOf()-Date.now();return t<0?0:t},ur=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},Zr=function(e){e===void 0&&(e={});var t=e||{},r=t.leftTime,n=t.targetDate,i=t.interval,o=i===void 0?1e3:i,a=t.onEnd,u=v.useMemo(function(){return ie(r)&&r>0?Date.now()+r:void 0},[r]),f="leftTime"in e?u:n,c=g(v.useState(function(){return le(f)}),2),l=c[0],s=c[1],p=L(a);v.useEffect(function(){if(!f){s(0);return}s(le(f));var h=setInterval(function(){var m,y=le(f);s(y),y===0&&(clearInterval(h),(m=p.current)===null||m===void 0||m.call(p))},o);return function(){return clearInterval(h)}},[f,o]);var d=v.useMemo(function(){return ur(l)},[l]);return[l,d]};function cr(e,t){var r,n=L(e),i=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,o=v.useMemo(function(){return De(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,w([],g(a),!1))},i,t)},[]);return W(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}function Qr(e,t){var r=g(v.useState(e),2),n=r[0],i=r[1],o=cr(function(){i(e)},t).run;return v.useEffect(function(){o()},[e]),n}var fr=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),At(e,t)};function pe(e,t,r){r===void 0&&(r={});var n=r.enable,i=n===void 0?!0:n,o=L(t);_e(function(){if(i){var a=I(r.target,window);if(a!=null&&a.addEventListener){var u=function(c){return o.current(c)},f=Array.isArray(e)?e:[e];return f.forEach(function(c){a.addEventListener(c,u,{capture:r.capture,once:r.once,passive:r.passive})}),function(){f.forEach(function(c){a.removeEventListener(c,u,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,i],r.target)}function en(e){var t=g(v.useState(e),2),r=t[0],n=t[1],i=L(r),o=v.useCallback(function(){return i.current},[]);return[r,n,o]}var sr=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Ce=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},lr=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},tn=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,o=i===void 0?100:i,a=t.direction,u=a===void 0?"bottom":a,f=t.reloadDeps,c=f===void 0?[]:f,l=t.manual,s=t.onBefore,p=t.onSuccess,d=t.onError,h=t.onFinally,m=g(v.useState(),2),y=m[0],_=m[1],b=g(v.useState(!1),2),O=b[0],T=b[1],R=u==="top",P=v.useRef(),D=v.useRef(0),C=v.useMemo(function(){return n?n(y):!1},[y]),A=ir(function(M){return k(void 0,void 0,void 0,function(){var S,x,N,U;return J(this,function(Oe){switch(Oe.label){case 0:return[4,e(M)];case 1:return S=Oe.sent(),_(M?E(E({},S),{list:R?w(w([],g(S.list),!1),g((N=M.list)!==null&&N!==void 0?N:[]),!1):w(w([],g((U=M.list)!==null&&U!==void 0?U:[]),!1),g(S.list),!1)}):E(E({},S),{list:w([],g((x=S.list)!==null&&x!==void 0?x:[]),!1)})),[2,S]}})})},{manual:l,onFinally:function(M,S,x){T(!1),h==null||h(S,x)},onBefore:function(){return s==null?void 0:s()},onSuccess:function(M){setTimeout(function(){if(R){var S=I(r);if(S=S===document?document.documentElement:S,S){var x=Ce(S);S.scrollTo(0,x-D.current)}}else Se()}),p==null||p(M)},onError:function(M){return d==null?void 0:d(M)}}),Y=A.loading,ae=A.error,ue=A.run,Ee=A.runAsync,yt=A.cancel,ce=j(function(){C||(T(!0),ue(y))}),gt=j(function(){return C?Promise.reject():(T(!0),Ee(y))}),bt=function(){return T(!1),ue()},wt=function(){return T(!1),Ee()},Se=function(){var M=I(r);if(M){var S=M===document?document.documentElement:M,x=sr(S),N=Ce(S),U=lr(S);R?(P.current!==void 0&&P.current>x&&x<=o&&ce(),P.current=x,D.current=N-x):N-x<=U+o&&ce()}};return pe("scroll",function(){Y||O||Se()},{target:r}),V(function(){ue()},w([],g(c),!1)),{data:y,loading:!O&&Y,error:ae,loadingMore:O,noMore:C,loadMore:ce,loadMoreAsync:gt,reload:j(bt),reloadAsync:j(wt),mutate:_,cancel:yt}},rn=function(e,t,r){r===void 0&&(r={});var n=j(e),i=v.useRef(null),o=v.useCallback(function(){i.current&&clearInterval(i.current)},[]);return v.useEffect(function(){if(!(!ie(t)||t<0))return r.immediate&&n(),i.current=setInterval(n,t),o},[t,r.immediate]),o},dr=function(e,t,r){var n=v.useRef(),i=v.useRef(0);fr(t,n.current)||(i.current+=1),n.current=t,_e(e,[i.current],r)},vr=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),ct={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:vr?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},me={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?ct.meta.includes(e.keyCode):e.metaKey}};function ft(e){return Ft(e)||ie(e)}function hr(e){var t=Object.keys(me).reduce(function(r,n){return me[n](e)?r+1:r},0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}function Te(e,t,r){var n,i;if(!e.key)return!1;if(ie(t))return e.keyCode===t?t:!1;var o=t.split("."),a=0;try{for(var u=B(o),f=u.next();!f.done;f=u.next()){var c=f.value,l=me[c],s=ct[c.toLowerCase()];(l&&l(e)||s&&s===e.keyCode)&&a++}}catch(p){n={error:p}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return r?a===o.length&&hr(e)===o.length?t:!1:a===o.length?t:!1}function pr(e,t){return H(e)?e:ft(e)?function(r){return Te(r,e,t)}:Array.isArray(e)?function(r){return e.find(function(n){return Te(r,n,t)})}:function(){return!!e}}var mr=["keydown"];function nn(e,t,r){var n=r||{},i=n.events,o=i===void 0?mr:i,a=n.target,u=n.exactMatch,f=u===void 0?!1:u,c=n.useCapture,l=c===void 0?!1:c,s=L(t),p=L(e);dr(function(){var d,h,m,y=I(a,window);if(y){var _=function(R){var P,D=pr(p.current,f),C=D(R),A=ft(C)?C:R.key;if(C)return(P=s.current)===null||P===void 0?void 0:P.call(s,R,A)};try{for(var b=B(o),O=b.next();!O.done;O=b.next()){var T=O.value;(m=y==null?void 0:y.addEventListener)===null||m===void 0||m.call(y,T,_,l)}}catch(R){d={error:R}}finally{try{O&&!O.done&&(h=b.return)&&h.call(b)}finally{if(d)throw d.error}}return function(){var R,P,D;try{for(var C=B(o),A=C.next();!A.done;A=C.next()){var Y=A.value;(D=y==null?void 0:y.removeEventListener)===null||D===void 0||D.call(y,Y,_,l)}}catch(ae){R={error:ae}}finally{try{A&&!A.done&&(P=C.return)&&P.call(C)}finally{if(R)throw R.error}}}}},[o],a)}var Pe="AHOOKS_SYNC_STORAGE_EVENT_NAME";function st(e){function t(r,n){n===void 0&&(n={});var i,o=n.listenStorageChange,a=o===void 0?!1:o,u=n.onError,f=u===void 0?function(b){console.error(b)}:u;try{i=e()}catch(b){f(b)}var c=function(b){return n.serializer?n.serializer(b):JSON.stringify(b)},l=function(b){return n.deserializer?n.deserializer(b):JSON.parse(b)};function s(){try{var b=i==null?void 0:i.getItem(r);if(b)return l(b)}catch(O){f(O)}return H(n.defaultValue)?n.defaultValue():n.defaultValue}var p=g(v.useState(s),2),d=p[0],h=p[1];V(function(){h(s())},[r]);var m=function(b){var O=H(b)?b(d):b;a||h(O);try{var T=void 0,R=i==null?void 0:i.getItem(r);Bt(O)?(T=null,i==null||i.removeItem(r)):(T=c(O),i==null||i.setItem(r,T)),dispatchEvent(new CustomEvent(Pe,{detail:{key:r,newValue:T,oldValue:R,storageArea:i}}))}catch(P){f(P)}},y=function(b){b.key!==r||b.storageArea!==i||h(s())},_=function(b){y(b.detail)};return pe("storage",y,{enable:a}),pe(Pe,_,{enable:a}),[d,j(m)]}return t}var on=st(function(){return z?localStorage:void 0});function yr(e){var t=v.useRef(0),r=g(v.useState(e),2),n=r[0],i=r[1],o=v.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(a)})},[]);return W(function(){cancelAnimationFrame(t.current)}),[n,o]}var gr=function(e,t){return!Object.is(e,t)};function an(e,t){t===void 0&&(t=gr);var r=v.useRef(),n=v.useRef();return t(n.current,e)&&(r.current=n.current,n.current=e),r.current}var Ae=new WeakMap,Me=new WeakMap;function lt(e,t){var r=Ae.get(e);if(r)return r;if(Me.has(e))return e;var n=new Proxy(e,{get:function(i,o,a){var u=Reflect.get(i,o,a),f=Reflect.getOwnPropertyDescriptor(i,o);return!(f!=null&&f.configurable)&&!(f!=null&&f.writable)?u:St(u)||Array.isArray(u)?lt(u,t):u},set:function(i,o,a){var u=Reflect.set(i,o,a);return t(),u},deleteProperty:function(i,o){var a=Reflect.deleteProperty(i,o);return t(),a}});return Ae.set(e,n),Me.set(n,e),n}function un(e){var t=at(),r=v.useRef(e),n=be(function(){return lt(r.current,function(){t()})},[]);return n}var cn=st(function(){return z?sessionStorage:void 0}),fn=function(e){var t=g(v.useState(e),2),r=t[0],n=t[1],i=j(function(o){n(function(a){var u=H(o)?o(a):o;return u?E(E({},a),u):a})});return[r,i]},dt=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];r.call(n,a[1],a[0])}},t}()}(),ye=typeof window<"u"&&typeof document<"u"&&window.document===document,ee=function(){return typeof fe<"u"&&fe.Math===Math?fe:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),br=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ee):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),wr=2;function _r(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&u()}function a(){br(o)}function u(){var f=Date.now();if(r){if(f-i<wr)return;n=!0}else r=!0,n=!1,setTimeout(a,t);i=f}return u}var Er=20,Sr=["top","right","bottom","left","width","height","size","weight"],Or=typeof MutationObserver<"u",Rr=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=_r(this.refresh.bind(this),Er)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!ye||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Or?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ye||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=Sr.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),vt=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},q=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ee},ht=oe(0,0,0,0);function te(e){return parseFloat(e)||0}function xe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+te(o)},0)}function Cr(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],a=e["padding-"+o];r[o]=te(a)}return r}function Tr(e){var t=e.getBBox();return oe(0,0,t.width,t.height)}function Pr(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return ht;var n=q(e).getComputedStyle(e),i=Cr(n),o=i.left+i.right,a=i.top+i.bottom,u=te(n.width),f=te(n.height);if(n.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=xe(n,"left","right")+o),Math.round(f+a)!==r&&(f-=xe(n,"top","bottom")+a)),!Mr(e)){var c=Math.round(u+o)-t,l=Math.round(f+a)-r;Math.abs(c)!==1&&(u-=c),Math.abs(l)!==1&&(f-=l)}return oe(i.left,i.top,u,f)}var Ar=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof q(e).SVGGraphicsElement}:function(e){return e instanceof q(e).SVGElement&&typeof e.getBBox=="function"}}();function Mr(e){return e===q(e).document.documentElement}function xr(e){return ye?Ar(e)?Tr(e):Pr(e):ht}function jr(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return vt(a,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),a}function oe(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Dr=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=oe(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=xr(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Lr=function(){function e(t,r){var n=jr(r);vt(this,{target:t,contentRect:n})}return e}(),zr=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new dt,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof q(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Dr(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof q(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Lr(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),pt=typeof WeakMap<"u"?new WeakMap:new dt,mt=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Rr.getInstance(),n=new zr(t,r,this);pt.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){mt.prototype[e]=function(){var t;return(t=pt.get(this))[e].apply(t,arguments)}});var Fr=function(){return typeof ee.ResizeObserver<"u"?ee.ResizeObserver:mt}(),Br=ut(v.useLayoutEffect),Hr=z?Br:_e;function sn(e){var t=g(yr(function(){var i=I(e);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),r=t[0],n=t[1];return Hr(function(){var i=I(e);if(i){var o=new Fr(function(a){a.forEach(function(u){var f=u.target,c=f.clientWidth,l=f.clientHeight;n({width:c,height:l})})});return o.observe(i),function(){o.disconnect()}}},[],e),r}function ln(e,t){var r,n=L(e),i=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,o=v.useMemo(function(){return Le(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,w([],g(a),!1))},i,t)},[]);return W(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}var Ir=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}},Wr=Ir,je={"text/plain":"Text","text/html":"Url",default:"Text"},Nr="Copy to clipboard: #{key}, Enter";function Gr(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function qr(e,t){var r,n,i,o,a,u,f=!1;t||(t={}),r=t.debug||!1;try{i=Wr(),o=document.createRange(),a=document.getSelection(),u=document.createElement("span"),u.textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(l){if(l.stopPropagation(),t.format)if(l.preventDefault(),typeof l.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=je[t.format]||je.default;window.clipboardData.setData(s,e)}else l.clipboardData.clearData(),l.clipboardData.setData(t.format,e);t.onCopy&&(l.preventDefault(),t.onCopy(l.clipboardData))}),document.body.appendChild(u),o.selectNodeContents(u),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");f=!0}catch(l){r&&console.error("unable to copy using execCommand: ",l),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(s){r&&console.error("unable to copy using clipboardData: ",s),r&&console.error("falling back to prompt"),n=Gr("message"in t?t.message:Nr),window.prompt(n,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),u&&document.body.removeChild(u),i()}return f}var Ur=qr;const dn=ge(Ur),vn=_t(zt);function $r(){var e=v.useRef(!1),t=v.useCallback(function(){return e.current},[]);return v.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}function Kr(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=v.useRef(0),i=$r(),o=v.useState(r),a=o[0],u=o[1],f=v.useCallback(function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];var s=++n.current;return a.loading||u(function(p){return E(E({},p),{loading:!0})}),e.apply(void 0,c).then(function(p){return i()&&s===n.current&&u({value:p,loading:!1}),p},function(p){return i()&&s===n.current&&u({error:p,loading:!1}),p})},t);return[a,f]}function hn(e,t){t===void 0&&(t=[]);var r=Kr(e,t,{loading:!0}),n=r[0],i=r[1];return v.useEffect(function(){i()},[i]),n}export{Xr as A,Fe as B,Jr as C,k as D,E,J as F,en as G,Be as _,un as a,sn as b,dn as c,L as d,cr as e,be as f,rn as g,Qr as h,Yr as i,on as j,at as k,tr as l,ir as m,an as n,V as o,At as p,ln as q,cn as r,W as s,Zr as t,j as u,fn as v,vn as w,tn as x,hn as y,nn as z};
|