@blockend/widget 1.0.30 → 1.0.32
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/dist/AllRoutes-CPwuTwqd.js +2209 -0
- package/dist/Box-CIChapvH.js +55 -0
- package/dist/EstGas-CEFILtyf.js +12867 -0
- package/dist/Grow-DJZj9zjv.js +1656 -0
- package/dist/InputComp-DqF1JGIu.js +106 -0
- package/dist/LoadRoute-r3sHTYXM.js +126 -0
- package/dist/QuotesProgress-BXVLxZ8U.js +28 -0
- package/dist/SwapAsset-07WvVwl-.js +64 -0
- package/dist/Tooltip-CNAsCF8n.js +572 -0
- package/dist/TxnButton-D2TTkFYA.js +207 -0
- package/dist/WidgetForm.module-QHJ0-m5f.js +9 -0
- package/dist/{add-BDjkKnDN.js → add-t2GqC9VA.js} +3 -4
- package/dist/{all-wallets-CrBep7Gl.js → all-wallets-DFyf0q31.js} +3 -4
- package/dist/{app-store-CwaPvoXY.js → app-store-aAahwmBP.js} +3 -4
- package/dist/{apple-BA8mnYrP.js → apple-DeRgpwlc.js} +3 -4
- package/dist/{arrow-bottom-BXdMFUAl.js → arrow-bottom-DdEOkaAj.js} +3 -4
- package/dist/{arrow-bottom-circle-DFT4mXIU.js → arrow-bottom-circle-BWwREWcv.js} +3 -4
- package/dist/{arrow-left-BzkeYnqg.js → arrow-left-CulyLmoH.js} +3 -4
- package/dist/{arrow-right-DiUAWQjY.js → arrow-right-Dwr7TISn.js} +3 -4
- package/dist/{arrow-top-86AMrjF7.js → arrow-top-pL4rM_y8.js} +3 -4
- package/dist/{bank-DN5JAJkK.js → bank-CPuyK_08.js} +3 -4
- package/dist/basic-CVc9xEvb.js +5783 -0
- package/dist/{browser-CIEc-DNj.js → browser-Cbq2Zbp4.js} +3 -4
- package/dist/{card-D0J873mK.js → card-B_hUtPWK.js} +3 -4
- package/dist/ccip-BLVGcR4A.js +228 -0
- package/dist/{checkmark-mvlF9aX8.js → checkmark-WEqTsFAc.js} +3 -4
- package/dist/{checkmark-bold-Cvmc9tJb.js → checkmark-bold-Du_ZvhqM.js} +3 -4
- package/dist/{chevron-bottom-CWsU0Wj4.js → chevron-bottom-C-s-lv4L.js} +3 -4
- package/dist/{chevron-left-DZoyyvkH.js → chevron-left-C7NcRElx.js} +3 -4
- package/dist/{chevron-right-Db1S8IpK.js → chevron-right-CSzmAmdn.js} +3 -4
- package/dist/{chevron-top-BG2-jrhN.js → chevron-top-Dd99Wfel.js} +3 -4
- package/dist/{chrome-store-bZ30Z8RD.js → chrome-store-C4p77Of0.js} +3 -4
- package/dist/{clock-BQCJkpsN.js → clock-Cib24qjH.js} +3 -4
- package/dist/clockIcon-C2W5xvyt.js +76 -0
- package/dist/{close-0442yxHv.js → close-BXjEkTvS.js} +3 -4
- package/dist/{coinPlaceholder-npHsRGpi.js → coinPlaceholder-BFNC7cQN.js} +3 -4
- package/dist/{compass-CA-2HVOX.js → compass-CXPX5Ycp.js} +3 -4
- package/dist/{copy-DZVC8Hxi.js → copy-BEawMbmF.js} +3 -4
- package/dist/core-Bez9Ow7F.js +14967 -0
- package/dist/cursor-Cxq4Q9jk.js +7 -0
- package/dist/{cursor-transparent-wVQvgZAK.js → cursor-transparent-ZjJ0P2vr.js} +3 -4
- package/dist/{desktop-DTAJIXTO.js → desktop-BhZVovAp.js} +3 -4
- package/dist/{disconnect-D8Si5N8S.js → disconnect-AC-bffZO.js} +3 -4
- package/dist/{discord-tQYw47cV.js → discord-dT97h-CC.js} +3 -4
- package/dist/down-DP56YSKp.js +606 -0
- package/dist/{etherscan-CjqNGBR7.js → etherscan-rYFRhRTM.js} +3 -4
- package/dist/ethertousd-CC_ezooz.js +6 -0
- package/dist/{exclamation-triangle-BhHXY1hF.js → exclamation-triangle-C-pCuC08.js} +3 -4
- package/dist/{extension-y15WoviO.js → extension-BnqauLSn.js} +3 -4
- package/dist/{external-link--gR7z0qt.js → external-link-M9D6e_F3.js} +3 -4
- package/dist/{facebook-DlX8IWwq.js → facebook-DHezcoD-.js} +3 -4
- package/dist/{farcaster-CFzTYTRj.js → farcaster-D0Ky-Imv.js} +3 -4
- package/dist/{filters-BO_y5jSy.js → filters-B02NYLWq.js} +3 -4
- package/dist/getChainIds-CJd2TZYT.js +1888 -0
- package/dist/getCosmosAddress-DTZfw04G.js +9565 -0
- package/dist/{github-B9QjqzQj.js → github-BzQkIMuE.js} +3 -4
- package/dist/{google-D9CK21nC.js → google-BpwCJ4Fs.js} +3 -4
- package/dist/hamburger-BzqwkUjE.js +3915 -0
- package/dist/{help-circle-Qf3YDcg6.js → help-circle-C0nOySHC.js} +3 -4
- package/dist/{id-VtdZj5EJ.js → id-DFP_kFd4.js} +3 -4
- package/dist/{image-Bb6NRqAG.js → image-QiYOAGjM.js} +3 -4
- package/dist/index-CDq3vNnP.js +22 -0
- package/dist/index-CLzkn733.js +28223 -0
- package/dist/index-CjtwASJt.js +252 -0
- package/dist/index-CrC4B7xn.js +331 -0
- package/dist/index-D5hLIe-N.js +9 -0
- package/dist/index-DDk00SOL.js +159 -0
- package/dist/index-DTish3yr.js +1014 -0
- package/dist/index-DW3W7zaF.js +473 -0
- package/dist/index-DXdD3L9f.js +1460 -0
- package/dist/index-DaJ1272l.js +18613 -0
- package/dist/index-DxPp2gBS.js +992 -0
- package/dist/index-Dy_n2MPD.js +3010 -0
- package/dist/index-oc8HPfOF.js +13583 -0
- package/dist/index.es-Bsr7zP98.js +366 -0
- package/dist/index.es-C-j-Ghef.js +11678 -0
- package/dist/index.es.js +4 -5
- package/dist/{info-C-7imdlv.js → info-BTLQJ-wd.js} +3 -4
- package/dist/{info-circle-CojbxQCA.js → info-circle-Dla9169_.js} +3 -4
- package/dist/{lightbulb-DrfSirtI.js → lightbulb-PN8DA_Wh.js} +3 -4
- package/dist/{mail-yuNzffmW.js → mail-BGYZut_4.js} +3 -4
- package/dist/{mobile-B68qFJIJ.js → mobile-BM760ZzX.js} +3 -4
- package/dist/{more-B5F7-jLe.js → more-rHGnl2ck.js} +3 -4
- package/dist/{network-placeholder-C0IP4D1c.js → network-placeholder-CyQl-3_2.js} +3 -4
- package/dist/{nftPlaceholder-DUEpu8vC.js → nftPlaceholder-nuUJ8nKY.js} +3 -4
- package/dist/{off-kgcptPTJ.js → off-GYlwYDrT.js} +3 -4
- package/dist/{play-store-CpkQM7Tf.js → play-store-Ck01Ez1F.js} +3 -4
- package/dist/{plus-WJX5o6br.js → plus-CQfXWgLw.js} +3 -4
- package/dist/{qr-code-DYSpZOBK.js → qr-code-CyLVwLY7.js} +3 -4
- package/dist/{recycle-horizontal-nN1xwykO.js → recycle-horizontal-DvnWPcEQ.js} +3 -4
- package/dist/{refresh-BDlbkeKx.js → refresh-BOxj8b2n.js} +3 -4
- package/dist/{reown-logo--P11S5yl.js → reown-logo-D1iprOTg.js} +3 -4
- package/dist/{search-DBF3vwq7.js → search-DrPaZPnc.js} +3 -4
- package/dist/secp256k1-DgmH1qVg.js +1251 -0
- package/dist/{send-pvA8KHBc.js → send-ybBREe4b.js} +3 -4
- package/dist/shareicon-D3Qj5j1T.js +262 -0
- package/dist/{sortDown-cDA6MpOw.js → sortDown-CjBaDQTU.js} +13 -14
- package/dist/{swapHorizontal-BI2PzZwN.js → swapHorizontal-BddjZdXK.js} +3 -4
- package/dist/{swapHorizontalBold-CWlwK-F6.js → swapHorizontalBold-B6AWjPZ9.js} +3 -4
- package/dist/{swapHorizontalMedium-BmLVJu35.js → swapHorizontalMedium-CNacWoBn.js} +3 -4
- package/dist/{swapHorizontalRoundedBold-Bu7b_4Tq.js → swapHorizontalRoundedBold-B8VcPnqt.js} +3 -4
- package/dist/{swapVertical-9yVsysvS.js → swapVertical-zY2BbSyQ.js} +3 -4
- package/dist/{telegram-0bWPCnom.js → telegram-DS4l-8Oc.js} +3 -4
- package/dist/{three-dots-V6GJeVIa.js → three-dots-RctNqamK.js} +3 -4
- package/dist/truncate-D9t92mVX.js +7 -0
- package/dist/{twitch-BnXJxO5H.js → twitch-CJ0llIIH.js} +3 -4
- package/dist/{twitterIcon-DKgyPicl.js → twitterIcon-pgvN9-bP.js} +3 -4
- package/dist/unsupportedProp-BJVuEW_b.js +10 -0
- package/dist/useRegisterError-C_YLA1dw.js +9857 -0
- package/dist/validError-CDlJpg_f.js +6 -0
- package/dist/{verify-6SHEYxKY.js → verify-BeZLo1Fq.js} +3 -4
- package/dist/{verify-filled-V7PkY7fi.js → verify-filled-meyb7E16.js} +3 -4
- package/dist/w3m-modal-C-Jp9NVv.js +1471 -0
- package/dist/{wallet-CyIBiiAv.js → wallet-CFcOgSsz.js} +3 -4
- package/dist/{wallet-placeholder-Dy4jQvK8.js → wallet-placeholder-CeUMILZq.js} +3 -4
- package/dist/{walletconnect-CL5PuqLp.js → walletconnect-D6LB1PyC.js} +7 -10
- package/dist/{warning-circle-BbG3KGtg.js → warning-circle-BRtzofvT.js} +3 -4
- package/dist/{x-BKSfqvJ-.js → x-DKQAOOh3.js} +3 -4
- package/package.json +1 -1
- package/dist/AllRoutes-N9u-0kyk.js +0 -2605
- package/dist/AllRoutes-N9u-0kyk.js.map +0 -1
- package/dist/Box-DPSoUHKG.js +0 -61
- package/dist/Box-DPSoUHKG.js.map +0 -1
- package/dist/EstGas-9QzcUupH.js +0 -17109
- package/dist/EstGas-9QzcUupH.js.map +0 -1
- package/dist/Grow-sm7uQW-H.js +0 -2213
- package/dist/Grow-sm7uQW-H.js.map +0 -1
- package/dist/InputComp-BNsmXy6D.js +0 -115
- package/dist/InputComp-BNsmXy6D.js.map +0 -1
- package/dist/LoadRoute-DFIoO0Wm.js +0 -143
- package/dist/LoadRoute-DFIoO0Wm.js.map +0 -1
- package/dist/QuotesProgress-C4vn322J.js +0 -30
- package/dist/QuotesProgress-C4vn322J.js.map +0 -1
- package/dist/SwapAsset-kKtvzzJ_.js +0 -66
- package/dist/SwapAsset-kKtvzzJ_.js.map +0 -1
- package/dist/Tooltip-c1DRaAxV.js +0 -719
- package/dist/Tooltip-c1DRaAxV.js.map +0 -1
- package/dist/TxnButton-BmcX_BPz.js +0 -303
- package/dist/TxnButton-BmcX_BPz.js.map +0 -1
- package/dist/WidgetForm.module-DhUUlwZP.js +0 -14
- package/dist/WidgetForm.module-DhUUlwZP.js.map +0 -1
- package/dist/add-BDjkKnDN.js.map +0 -1
- package/dist/all-wallets-CrBep7Gl.js.map +0 -1
- package/dist/app-store-CwaPvoXY.js.map +0 -1
- package/dist/apple-BA8mnYrP.js.map +0 -1
- package/dist/arrow-bottom-BXdMFUAl.js.map +0 -1
- package/dist/arrow-bottom-circle-DFT4mXIU.js.map +0 -1
- package/dist/arrow-left-BzkeYnqg.js.map +0 -1
- package/dist/arrow-right-DiUAWQjY.js.map +0 -1
- package/dist/arrow-top-86AMrjF7.js.map +0 -1
- package/dist/bank-DN5JAJkK.js.map +0 -1
- package/dist/basic-Bn5vs8SQ.js +0 -7110
- package/dist/basic-Bn5vs8SQ.js.map +0 -1
- package/dist/browser-CIEc-DNj.js.map +0 -1
- package/dist/card-D0J873mK.js.map +0 -1
- package/dist/ccip-DOQk8pZb.js +0 -251
- package/dist/ccip-DOQk8pZb.js.map +0 -1
- package/dist/checkmark-bold-Cvmc9tJb.js.map +0 -1
- package/dist/checkmark-mvlF9aX8.js.map +0 -1
- package/dist/chevron-bottom-CWsU0Wj4.js.map +0 -1
- package/dist/chevron-left-DZoyyvkH.js.map +0 -1
- package/dist/chevron-right-Db1S8IpK.js.map +0 -1
- package/dist/chevron-top-BG2-jrhN.js.map +0 -1
- package/dist/chrome-store-bZ30Z8RD.js.map +0 -1
- package/dist/clock-BQCJkpsN.js.map +0 -1
- package/dist/clockIcon-jSNFFrLy.js +0 -77
- package/dist/clockIcon-jSNFFrLy.js.map +0 -1
- package/dist/close-0442yxHv.js.map +0 -1
- package/dist/coinPlaceholder-npHsRGpi.js.map +0 -1
- package/dist/compass-CA-2HVOX.js.map +0 -1
- package/dist/copy-DZVC8Hxi.js.map +0 -1
- package/dist/core-h4B-syrK.js +0 -17218
- package/dist/core-h4B-syrK.js.map +0 -1
- package/dist/cursor-BmgVIdd4.js +0 -8
- package/dist/cursor-BmgVIdd4.js.map +0 -1
- package/dist/cursor-transparent-wVQvgZAK.js.map +0 -1
- package/dist/desktop-DTAJIXTO.js.map +0 -1
- package/dist/disconnect-D8Si5N8S.js.map +0 -1
- package/dist/discord-tQYw47cV.js.map +0 -1
- package/dist/down-BgR5p6bw.js +0 -810
- package/dist/down-BgR5p6bw.js.map +0 -1
- package/dist/etherscan-CjqNGBR7.js.map +0 -1
- package/dist/ethertousd-BOknTgU4.js +0 -8
- package/dist/ethertousd-BOknTgU4.js.map +0 -1
- package/dist/exclamation-triangle-BhHXY1hF.js.map +0 -1
- package/dist/extension-y15WoviO.js.map +0 -1
- package/dist/external-link--gR7z0qt.js.map +0 -1
- package/dist/facebook-DlX8IWwq.js.map +0 -1
- package/dist/farcaster-CFzTYTRj.js.map +0 -1
- package/dist/filters-BO_y5jSy.js.map +0 -1
- package/dist/getChainIds-BW6u6K7g.js +0 -2432
- package/dist/getChainIds-BW6u6K7g.js.map +0 -1
- package/dist/getCosmosAddress-Q91DQZPn.js +0 -13999
- package/dist/getCosmosAddress-Q91DQZPn.js.map +0 -1
- package/dist/github-B9QjqzQj.js.map +0 -1
- package/dist/google-D9CK21nC.js.map +0 -1
- package/dist/hamburger-DdXejR_U.js +0 -4563
- package/dist/hamburger-DdXejR_U.js.map +0 -1
- package/dist/help-circle-Qf3YDcg6.js.map +0 -1
- package/dist/id-VtdZj5EJ.js.map +0 -1
- package/dist/image-Bb6NRqAG.js.map +0 -1
- package/dist/index-A4USEaqO.js +0 -4218
- package/dist/index-A4USEaqO.js.map +0 -1
- package/dist/index-BnNGphMQ.js +0 -544
- package/dist/index-BnNGphMQ.js.map +0 -1
- package/dist/index-CLkRz935.js +0 -24385
- package/dist/index-CLkRz935.js.map +0 -1
- package/dist/index-CMYftxmy.js +0 -1884
- package/dist/index-CMYftxmy.js.map +0 -1
- package/dist/index-D0RbVaC6.js +0 -12
- package/dist/index-D0RbVaC6.js.map +0 -1
- package/dist/index-D44jBo43.js +0 -35859
- package/dist/index-D44jBo43.js.map +0 -1
- package/dist/index-DArR1lwi.js +0 -1760
- package/dist/index-DArR1lwi.js.map +0 -1
- package/dist/index-DQPPcv1z.js +0 -309
- package/dist/index-DQPPcv1z.js.map +0 -1
- package/dist/index-DYHhV8Ah.js +0 -16079
- package/dist/index-DYHhV8Ah.js.map +0 -1
- package/dist/index-Di4O_5cO.js +0 -1088
- package/dist/index-Di4O_5cO.js.map +0 -1
- package/dist/index-HAMZ-tBE.js +0 -189
- package/dist/index-HAMZ-tBE.js.map +0 -1
- package/dist/index-h0B0Ds4O.js +0 -413
- package/dist/index-h0B0Ds4O.js.map +0 -1
- package/dist/index-sLx4Edw4.js +0 -23
- package/dist/index-sLx4Edw4.js.map +0 -1
- package/dist/index.es-CoUIS9Di.js +0 -12917
- package/dist/index.es-CoUIS9Di.js.map +0 -1
- package/dist/index.es-DvgvELOO.js +0 -476
- package/dist/index.es-DvgvELOO.js.map +0 -1
- package/dist/index.es.js.map +0 -1
- package/dist/info-C-7imdlv.js.map +0 -1
- package/dist/info-circle-CojbxQCA.js.map +0 -1
- package/dist/lightbulb-DrfSirtI.js.map +0 -1
- package/dist/mail-yuNzffmW.js.map +0 -1
- package/dist/mobile-B68qFJIJ.js.map +0 -1
- package/dist/more-B5F7-jLe.js.map +0 -1
- package/dist/network-placeholder-C0IP4D1c.js.map +0 -1
- package/dist/nftPlaceholder-DUEpu8vC.js.map +0 -1
- package/dist/off-kgcptPTJ.js.map +0 -1
- package/dist/play-store-CpkQM7Tf.js.map +0 -1
- package/dist/plus-WJX5o6br.js.map +0 -1
- package/dist/qr-code-DYSpZOBK.js.map +0 -1
- package/dist/recycle-horizontal-nN1xwykO.js.map +0 -1
- package/dist/refresh-BDlbkeKx.js.map +0 -1
- package/dist/reown-logo--P11S5yl.js.map +0 -1
- package/dist/search-DBF3vwq7.js.map +0 -1
- package/dist/secp256k1-CBD0agkt.js +0 -1682
- package/dist/secp256k1-CBD0agkt.js.map +0 -1
- package/dist/send-pvA8KHBc.js.map +0 -1
- package/dist/shareicon-BdQizUDb.js +0 -315
- package/dist/shareicon-BdQizUDb.js.map +0 -1
- package/dist/sortDown-cDA6MpOw.js.map +0 -1
- package/dist/swapHorizontal-BI2PzZwN.js.map +0 -1
- package/dist/swapHorizontalBold-CWlwK-F6.js.map +0 -1
- package/dist/swapHorizontalMedium-BmLVJu35.js.map +0 -1
- package/dist/swapHorizontalRoundedBold-Bu7b_4Tq.js.map +0 -1
- package/dist/swapVertical-9yVsysvS.js.map +0 -1
- package/dist/telegram-0bWPCnom.js.map +0 -1
- package/dist/three-dots-V6GJeVIa.js.map +0 -1
- package/dist/truncate-DSxFWEga.js +0 -8
- package/dist/truncate-DSxFWEga.js.map +0 -1
- package/dist/twitch-BnXJxO5H.js.map +0 -1
- package/dist/twitterIcon-DKgyPicl.js.map +0 -1
- package/dist/unsupportedProp-DvjrBqjA.js +0 -15
- package/dist/unsupportedProp-DvjrBqjA.js.map +0 -1
- package/dist/useRegisterError-DTDRNbyK.js +0 -19289
- package/dist/useRegisterError-DTDRNbyK.js.map +0 -1
- package/dist/validError-rariWQ7G.js +0 -15
- package/dist/validError-rariWQ7G.js.map +0 -1
- package/dist/verify-6SHEYxKY.js.map +0 -1
- package/dist/verify-filled-V7PkY7fi.js.map +0 -1
- package/dist/w3m-modal-DeL22Ji8.js +0 -1722
- package/dist/w3m-modal-DeL22Ji8.js.map +0 -1
- package/dist/wallet-CyIBiiAv.js.map +0 -1
- package/dist/wallet-placeholder-Dy4jQvK8.js.map +0 -1
- package/dist/walletconnect-CL5PuqLp.js.map +0 -1
- package/dist/warning-circle-BbG3KGtg.js.map +0 -1
- package/dist/x-BKSfqvJ-.js.map +0 -1
@@ -0,0 +1,1656 @@
|
|
1
|
+
import * as D from "react";
|
2
|
+
import kt from "react";
|
3
|
+
import { p as J, P as i, h as St, g as Bt, _ as Te, b as z } from "./index-CLzkn733.js";
|
4
|
+
import { jsx as de } from "react/jsx-runtime";
|
5
|
+
import { X as Wt, g as Lt, t as et, P as Nt, h as Se, e as tt, v as Ht, a as Vt, b as mt, n as It, H as Ee, d as Ut, s as qt, T as Ft, z as _t, o as Xt, x as zt, E as rt, I as Yt, J as Gt } from "./useRegisterError-C_YLA1dw.js";
|
6
|
+
let nt = 0;
|
7
|
+
function Jt(e) {
|
8
|
+
const [t, r] = D.useState(e), n = e || t;
|
9
|
+
return D.useEffect(() => {
|
10
|
+
t == null && (nt += 1, r(`mui-${nt}`));
|
11
|
+
}, [t]), n;
|
12
|
+
}
|
13
|
+
const ot = D.useId;
|
14
|
+
function Rn(e) {
|
15
|
+
if (ot !== void 0) {
|
16
|
+
const t = ot();
|
17
|
+
return e ?? t;
|
18
|
+
}
|
19
|
+
return Jt(e);
|
20
|
+
}
|
21
|
+
function Tn({
|
22
|
+
controlled: e,
|
23
|
+
default: t,
|
24
|
+
name: r,
|
25
|
+
state: n = "value"
|
26
|
+
}) {
|
27
|
+
const {
|
28
|
+
current: o
|
29
|
+
} = D.useRef(e !== void 0), [f, p] = D.useState(t), s = o ? e : f;
|
30
|
+
if (J.env.NODE_ENV !== "production") {
|
31
|
+
D.useEffect(() => {
|
32
|
+
}, [n, r, e]);
|
33
|
+
const {
|
34
|
+
current: c
|
35
|
+
} = D.useRef(t);
|
36
|
+
D.useEffect(() => {
|
37
|
+
!o && Object.is(c, t);
|
38
|
+
}, [JSON.stringify(t)]);
|
39
|
+
}
|
40
|
+
const a = D.useCallback((c) => {
|
41
|
+
o || p(c);
|
42
|
+
}, []);
|
43
|
+
return [s, a];
|
44
|
+
}
|
45
|
+
const Kt = /* @__PURE__ */ D.createContext();
|
46
|
+
J.env.NODE_ENV !== "production" && (i.node, i.bool);
|
47
|
+
const jn = () => {
|
48
|
+
const e = D.useContext(Kt);
|
49
|
+
return e ?? !1;
|
50
|
+
};
|
51
|
+
var pe = {}, it;
|
52
|
+
function Qt() {
|
53
|
+
if (it) return pe;
|
54
|
+
it = 1, Object.defineProperty(pe, "__esModule", {
|
55
|
+
value: !0
|
56
|
+
}), pe.default = void 0;
|
57
|
+
var e = n(kt), t = Wt;
|
58
|
+
function r(p) {
|
59
|
+
if (typeof WeakMap != "function") return null;
|
60
|
+
var s = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap();
|
61
|
+
return (r = function(c) {
|
62
|
+
return c ? a : s;
|
63
|
+
})(p);
|
64
|
+
}
|
65
|
+
function n(p, s) {
|
66
|
+
if (p && p.__esModule) return p;
|
67
|
+
if (p === null || typeof p != "object" && typeof p != "function") return { default: p };
|
68
|
+
var a = r(s);
|
69
|
+
if (a && a.has(p)) return a.get(p);
|
70
|
+
var c = { __proto__: null }, l = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
71
|
+
for (var d in p) if (d !== "default" && Object.prototype.hasOwnProperty.call(p, d)) {
|
72
|
+
var g = l ? Object.getOwnPropertyDescriptor(p, d) : null;
|
73
|
+
g && (g.get || g.set) ? Object.defineProperty(c, d, g) : c[d] = p[d];
|
74
|
+
}
|
75
|
+
return c.default = p, a && a.set(p, c), c;
|
76
|
+
}
|
77
|
+
function o(p) {
|
78
|
+
return Object.keys(p).length === 0;
|
79
|
+
}
|
80
|
+
function f(p = null) {
|
81
|
+
const s = e.useContext(t.ThemeContext);
|
82
|
+
return !s || o(s) ? p : s;
|
83
|
+
}
|
84
|
+
return pe.default = f, pe;
|
85
|
+
}
|
86
|
+
var Zt = /* @__PURE__ */ Qt();
|
87
|
+
const er = /* @__PURE__ */ St(Zt);
|
88
|
+
var L = "top", I = "bottom", U = "right", N = "left", Ne = "auto", he = [L, I, U, N], ne = "start", ve = "end", tr = "clippingParents", ht = "viewport", le = "popper", rr = "reference", at = /* @__PURE__ */ he.reduce(function(e, t) {
|
89
|
+
return e.concat([t + "-" + ne, t + "-" + ve]);
|
90
|
+
}, []), gt = /* @__PURE__ */ [].concat(he, [Ne]).reduce(function(e, t) {
|
91
|
+
return e.concat([t, t + "-" + ne, t + "-" + ve]);
|
92
|
+
}, []), nr = "beforeRead", or = "read", ir = "afterRead", ar = "beforeMain", sr = "main", fr = "afterMain", pr = "beforeWrite", lr = "write", cr = "afterWrite", ur = [nr, or, ir, ar, sr, fr, pr, lr, cr];
|
93
|
+
function X(e) {
|
94
|
+
return e ? (e.nodeName || "").toLowerCase() : null;
|
95
|
+
}
|
96
|
+
function H(e) {
|
97
|
+
if (e == null)
|
98
|
+
return window;
|
99
|
+
if (e.toString() !== "[object Window]") {
|
100
|
+
var t = e.ownerDocument;
|
101
|
+
return t && t.defaultView || window;
|
102
|
+
}
|
103
|
+
return e;
|
104
|
+
}
|
105
|
+
function te(e) {
|
106
|
+
var t = H(e).Element;
|
107
|
+
return e instanceof t || e instanceof Element;
|
108
|
+
}
|
109
|
+
function V(e) {
|
110
|
+
var t = H(e).HTMLElement;
|
111
|
+
return e instanceof t || e instanceof HTMLElement;
|
112
|
+
}
|
113
|
+
function He(e) {
|
114
|
+
if (typeof ShadowRoot > "u")
|
115
|
+
return !1;
|
116
|
+
var t = H(e).ShadowRoot;
|
117
|
+
return e instanceof t || e instanceof ShadowRoot;
|
118
|
+
}
|
119
|
+
function dr(e) {
|
120
|
+
var t = e.state;
|
121
|
+
Object.keys(t.elements).forEach(function(r) {
|
122
|
+
var n = t.styles[r] || {}, o = t.attributes[r] || {}, f = t.elements[r];
|
123
|
+
!V(f) || !X(f) || (Object.assign(f.style, n), Object.keys(o).forEach(function(p) {
|
124
|
+
var s = o[p];
|
125
|
+
s === !1 ? f.removeAttribute(p) : f.setAttribute(p, s === !0 ? "" : s);
|
126
|
+
}));
|
127
|
+
});
|
128
|
+
}
|
129
|
+
function vr(e) {
|
130
|
+
var t = e.state, r = {
|
131
|
+
popper: {
|
132
|
+
position: t.options.strategy,
|
133
|
+
left: "0",
|
134
|
+
top: "0",
|
135
|
+
margin: "0"
|
136
|
+
},
|
137
|
+
arrow: {
|
138
|
+
position: "absolute"
|
139
|
+
},
|
140
|
+
reference: {}
|
141
|
+
};
|
142
|
+
return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
|
143
|
+
Object.keys(t.elements).forEach(function(n) {
|
144
|
+
var o = t.elements[n], f = t.attributes[n] || {}, p = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), s = p.reduce(function(a, c) {
|
145
|
+
return a[c] = "", a;
|
146
|
+
}, {});
|
147
|
+
!V(o) || !X(o) || (Object.assign(o.style, s), Object.keys(f).forEach(function(a) {
|
148
|
+
o.removeAttribute(a);
|
149
|
+
}));
|
150
|
+
});
|
151
|
+
};
|
152
|
+
}
|
153
|
+
const mr = {
|
154
|
+
name: "applyStyles",
|
155
|
+
enabled: !0,
|
156
|
+
phase: "write",
|
157
|
+
fn: dr,
|
158
|
+
effect: vr,
|
159
|
+
requires: ["computeStyles"]
|
160
|
+
};
|
161
|
+
function _(e) {
|
162
|
+
return e.split("-")[0];
|
163
|
+
}
|
164
|
+
var ee = Math.max, Pe = Math.min, oe = Math.round;
|
165
|
+
function Be() {
|
166
|
+
var e = navigator.userAgentData;
|
167
|
+
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
168
|
+
return t.brand + "/" + t.version;
|
169
|
+
}).join(" ") : navigator.userAgent;
|
170
|
+
}
|
171
|
+
function yt() {
|
172
|
+
return !/^((?!chrome|android).)*safari/i.test(Be());
|
173
|
+
}
|
174
|
+
function ie(e, t, r) {
|
175
|
+
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
176
|
+
var n = e.getBoundingClientRect(), o = 1, f = 1;
|
177
|
+
t && V(e) && (o = e.offsetWidth > 0 && oe(n.width) / e.offsetWidth || 1, f = e.offsetHeight > 0 && oe(n.height) / e.offsetHeight || 1);
|
178
|
+
var p = te(e) ? H(e) : window, s = p.visualViewport, a = !yt() && r, c = (n.left + (a && s ? s.offsetLeft : 0)) / o, l = (n.top + (a && s ? s.offsetTop : 0)) / f, d = n.width / o, g = n.height / f;
|
179
|
+
return {
|
180
|
+
width: d,
|
181
|
+
height: g,
|
182
|
+
top: l,
|
183
|
+
right: c + d,
|
184
|
+
bottom: l + g,
|
185
|
+
left: c,
|
186
|
+
x: c,
|
187
|
+
y: l
|
188
|
+
};
|
189
|
+
}
|
190
|
+
function Ve(e) {
|
191
|
+
var t = ie(e), r = e.offsetWidth, n = e.offsetHeight;
|
192
|
+
return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
|
193
|
+
x: e.offsetLeft,
|
194
|
+
y: e.offsetTop,
|
195
|
+
width: r,
|
196
|
+
height: n
|
197
|
+
};
|
198
|
+
}
|
199
|
+
function bt(e, t) {
|
200
|
+
var r = t.getRootNode && t.getRootNode();
|
201
|
+
if (e.contains(t))
|
202
|
+
return !0;
|
203
|
+
if (r && He(r)) {
|
204
|
+
var n = t;
|
205
|
+
do {
|
206
|
+
if (n && e.isSameNode(n))
|
207
|
+
return !0;
|
208
|
+
n = n.parentNode || n.host;
|
209
|
+
} while (n);
|
210
|
+
}
|
211
|
+
return !1;
|
212
|
+
}
|
213
|
+
function Y(e) {
|
214
|
+
return H(e).getComputedStyle(e);
|
215
|
+
}
|
216
|
+
function hr(e) {
|
217
|
+
return ["table", "td", "th"].indexOf(X(e)) >= 0;
|
218
|
+
}
|
219
|
+
function K(e) {
|
220
|
+
return ((te(e) ? e.ownerDocument : (
|
221
|
+
// $FlowFixMe[prop-missing]
|
222
|
+
e.document
|
223
|
+
)) || window.document).documentElement;
|
224
|
+
}
|
225
|
+
function je(e) {
|
226
|
+
return X(e) === "html" ? e : (
|
227
|
+
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
228
|
+
// $FlowFixMe[incompatible-return]
|
229
|
+
// $FlowFixMe[prop-missing]
|
230
|
+
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
231
|
+
e.parentNode || // DOM Element detected
|
232
|
+
(He(e) ? e.host : null) || // ShadowRoot detected
|
233
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
234
|
+
K(e)
|
235
|
+
);
|
236
|
+
}
|
237
|
+
function st(e) {
|
238
|
+
return !V(e) || // https://github.com/popperjs/popper-core/issues/837
|
239
|
+
Y(e).position === "fixed" ? null : e.offsetParent;
|
240
|
+
}
|
241
|
+
function gr(e) {
|
242
|
+
var t = /firefox/i.test(Be()), r = /Trident/i.test(Be());
|
243
|
+
if (r && V(e)) {
|
244
|
+
var n = Y(e);
|
245
|
+
if (n.position === "fixed")
|
246
|
+
return null;
|
247
|
+
}
|
248
|
+
var o = je(e);
|
249
|
+
for (He(o) && (o = o.host); V(o) && ["html", "body"].indexOf(X(o)) < 0; ) {
|
250
|
+
var f = Y(o);
|
251
|
+
if (f.transform !== "none" || f.perspective !== "none" || f.contain === "paint" || ["transform", "perspective"].indexOf(f.willChange) !== -1 || t && f.willChange === "filter" || t && f.filter && f.filter !== "none")
|
252
|
+
return o;
|
253
|
+
o = o.parentNode;
|
254
|
+
}
|
255
|
+
return null;
|
256
|
+
}
|
257
|
+
function ge(e) {
|
258
|
+
for (var t = H(e), r = st(e); r && hr(r) && Y(r).position === "static"; )
|
259
|
+
r = st(r);
|
260
|
+
return r && (X(r) === "html" || X(r) === "body" && Y(r).position === "static") ? t : r || gr(e) || t;
|
261
|
+
}
|
262
|
+
function Ie(e) {
|
263
|
+
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
264
|
+
}
|
265
|
+
function ce(e, t, r) {
|
266
|
+
return ee(e, Pe(t, r));
|
267
|
+
}
|
268
|
+
function yr(e, t, r) {
|
269
|
+
var n = ce(e, t, r);
|
270
|
+
return n > r ? r : n;
|
271
|
+
}
|
272
|
+
function xt() {
|
273
|
+
return {
|
274
|
+
top: 0,
|
275
|
+
right: 0,
|
276
|
+
bottom: 0,
|
277
|
+
left: 0
|
278
|
+
};
|
279
|
+
}
|
280
|
+
function wt(e) {
|
281
|
+
return Object.assign({}, xt(), e);
|
282
|
+
}
|
283
|
+
function Ot(e, t) {
|
284
|
+
return t.reduce(function(r, n) {
|
285
|
+
return r[n] = e, r;
|
286
|
+
}, {});
|
287
|
+
}
|
288
|
+
var br = function(t, r) {
|
289
|
+
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
290
|
+
placement: r.placement
|
291
|
+
})) : t, wt(typeof t != "number" ? t : Ot(t, he));
|
292
|
+
};
|
293
|
+
function xr(e) {
|
294
|
+
var t, r = e.state, n = e.name, o = e.options, f = r.elements.arrow, p = r.modifiersData.popperOffsets, s = _(r.placement), a = Ie(s), c = [N, U].indexOf(s) >= 0, l = c ? "height" : "width";
|
295
|
+
if (!(!f || !p)) {
|
296
|
+
var d = br(o.padding, r), g = Ve(f), m = a === "y" ? L : N, O = a === "y" ? I : U, v = r.rects.reference[l] + r.rects.reference[a] - p[a] - r.rects.popper[l], y = p[a] - r.rects.reference[a], E = ge(f), T = E ? a === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0, x = v / 2 - y / 2, u = d[m], h = T - g[l] - d[O], b = T / 2 - g[l] / 2 + x, w = ce(u, b, h), C = a;
|
297
|
+
r.modifiersData[n] = (t = {}, t[C] = w, t.centerOffset = w - b, t);
|
298
|
+
}
|
299
|
+
}
|
300
|
+
function wr(e) {
|
301
|
+
var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
|
302
|
+
o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || bt(t.elements.popper, o) && (t.elements.arrow = o));
|
303
|
+
}
|
304
|
+
const Or = {
|
305
|
+
name: "arrow",
|
306
|
+
enabled: !0,
|
307
|
+
phase: "main",
|
308
|
+
fn: xr,
|
309
|
+
effect: wr,
|
310
|
+
requires: ["popperOffsets"],
|
311
|
+
requiresIfExists: ["preventOverflow"]
|
312
|
+
};
|
313
|
+
function ae(e) {
|
314
|
+
return e.split("-")[1];
|
315
|
+
}
|
316
|
+
var Er = {
|
317
|
+
top: "auto",
|
318
|
+
right: "auto",
|
319
|
+
bottom: "auto",
|
320
|
+
left: "auto"
|
321
|
+
};
|
322
|
+
function Pr(e, t) {
|
323
|
+
var r = e.x, n = e.y, o = t.devicePixelRatio || 1;
|
324
|
+
return {
|
325
|
+
x: oe(r * o) / o || 0,
|
326
|
+
y: oe(n * o) / o || 0
|
327
|
+
};
|
328
|
+
}
|
329
|
+
function ft(e) {
|
330
|
+
var t, r = e.popper, n = e.popperRect, o = e.placement, f = e.variation, p = e.offsets, s = e.position, a = e.gpuAcceleration, c = e.adaptive, l = e.roundOffsets, d = e.isFixed, g = p.x, m = g === void 0 ? 0 : g, O = p.y, v = O === void 0 ? 0 : O, y = typeof l == "function" ? l({
|
331
|
+
x: m,
|
332
|
+
y: v
|
333
|
+
}) : {
|
334
|
+
x: m,
|
335
|
+
y: v
|
336
|
+
};
|
337
|
+
m = y.x, v = y.y;
|
338
|
+
var E = p.hasOwnProperty("x"), T = p.hasOwnProperty("y"), x = N, u = L, h = window;
|
339
|
+
if (c) {
|
340
|
+
var b = ge(r), w = "clientHeight", C = "clientWidth";
|
341
|
+
if (b === H(r) && (b = K(r), Y(b).position !== "static" && s === "absolute" && (w = "scrollHeight", C = "scrollWidth")), b = b, o === L || (o === N || o === U) && f === ve) {
|
342
|
+
u = I;
|
343
|
+
var P = d && b === h && h.visualViewport ? h.visualViewport.height : (
|
344
|
+
// $FlowFixMe[prop-missing]
|
345
|
+
b[w]
|
346
|
+
);
|
347
|
+
v -= P - n.height, v *= a ? 1 : -1;
|
348
|
+
}
|
349
|
+
if (o === N || (o === L || o === I) && f === ve) {
|
350
|
+
x = U;
|
351
|
+
var A = d && b === h && h.visualViewport ? h.visualViewport.width : (
|
352
|
+
// $FlowFixMe[prop-missing]
|
353
|
+
b[C]
|
354
|
+
);
|
355
|
+
m -= A - n.width, m *= a ? 1 : -1;
|
356
|
+
}
|
357
|
+
}
|
358
|
+
var M = Object.assign({
|
359
|
+
position: s
|
360
|
+
}, c && Er), W = l === !0 ? Pr({
|
361
|
+
x: m,
|
362
|
+
y: v
|
363
|
+
}, H(r)) : {
|
364
|
+
x: m,
|
365
|
+
y: v
|
366
|
+
};
|
367
|
+
if (m = W.x, v = W.y, a) {
|
368
|
+
var k;
|
369
|
+
return Object.assign({}, M, (k = {}, k[u] = T ? "0" : "", k[x] = E ? "0" : "", k.transform = (h.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + v + "px)" : "translate3d(" + m + "px, " + v + "px, 0)", k));
|
370
|
+
}
|
371
|
+
return Object.assign({}, M, (t = {}, t[u] = T ? v + "px" : "", t[x] = E ? m + "px" : "", t.transform = "", t));
|
372
|
+
}
|
373
|
+
function Rr(e) {
|
374
|
+
var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, f = r.adaptive, p = f === void 0 ? !0 : f, s = r.roundOffsets, a = s === void 0 ? !0 : s, c = {
|
375
|
+
placement: _(t.placement),
|
376
|
+
variation: ae(t.placement),
|
377
|
+
popper: t.elements.popper,
|
378
|
+
popperRect: t.rects.popper,
|
379
|
+
gpuAcceleration: o,
|
380
|
+
isFixed: t.options.strategy === "fixed"
|
381
|
+
};
|
382
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, ft(Object.assign({}, c, {
|
383
|
+
offsets: t.modifiersData.popperOffsets,
|
384
|
+
position: t.options.strategy,
|
385
|
+
adaptive: p,
|
386
|
+
roundOffsets: a
|
387
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, ft(Object.assign({}, c, {
|
388
|
+
offsets: t.modifiersData.arrow,
|
389
|
+
position: "absolute",
|
390
|
+
adaptive: !1,
|
391
|
+
roundOffsets: a
|
392
|
+
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
393
|
+
"data-popper-placement": t.placement
|
394
|
+
});
|
395
|
+
}
|
396
|
+
const Tr = {
|
397
|
+
name: "computeStyles",
|
398
|
+
enabled: !0,
|
399
|
+
phase: "beforeWrite",
|
400
|
+
fn: Rr,
|
401
|
+
data: {}
|
402
|
+
};
|
403
|
+
var we = {
|
404
|
+
passive: !0
|
405
|
+
};
|
406
|
+
function jr(e) {
|
407
|
+
var t = e.state, r = e.instance, n = e.options, o = n.scroll, f = o === void 0 ? !0 : o, p = n.resize, s = p === void 0 ? !0 : p, a = H(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
408
|
+
return f && c.forEach(function(l) {
|
409
|
+
l.addEventListener("scroll", r.update, we);
|
410
|
+
}), s && a.addEventListener("resize", r.update, we), function() {
|
411
|
+
f && c.forEach(function(l) {
|
412
|
+
l.removeEventListener("scroll", r.update, we);
|
413
|
+
}), s && a.removeEventListener("resize", r.update, we);
|
414
|
+
};
|
415
|
+
}
|
416
|
+
const Ar = {
|
417
|
+
name: "eventListeners",
|
418
|
+
enabled: !0,
|
419
|
+
phase: "write",
|
420
|
+
fn: function() {
|
421
|
+
},
|
422
|
+
effect: jr,
|
423
|
+
data: {}
|
424
|
+
};
|
425
|
+
var Dr = {
|
426
|
+
left: "right",
|
427
|
+
right: "left",
|
428
|
+
bottom: "top",
|
429
|
+
top: "bottom"
|
430
|
+
};
|
431
|
+
function Oe(e) {
|
432
|
+
return e.replace(/left|right|bottom|top/g, function(t) {
|
433
|
+
return Dr[t];
|
434
|
+
});
|
435
|
+
}
|
436
|
+
var Cr = {
|
437
|
+
start: "end",
|
438
|
+
end: "start"
|
439
|
+
};
|
440
|
+
function pt(e) {
|
441
|
+
return e.replace(/start|end/g, function(t) {
|
442
|
+
return Cr[t];
|
443
|
+
});
|
444
|
+
}
|
445
|
+
function Ue(e) {
|
446
|
+
var t = H(e), r = t.pageXOffset, n = t.pageYOffset;
|
447
|
+
return {
|
448
|
+
scrollLeft: r,
|
449
|
+
scrollTop: n
|
450
|
+
};
|
451
|
+
}
|
452
|
+
function qe(e) {
|
453
|
+
return ie(K(e)).left + Ue(e).scrollLeft;
|
454
|
+
}
|
455
|
+
function $r(e, t) {
|
456
|
+
var r = H(e), n = K(e), o = r.visualViewport, f = n.clientWidth, p = n.clientHeight, s = 0, a = 0;
|
457
|
+
if (o) {
|
458
|
+
f = o.width, p = o.height;
|
459
|
+
var c = yt();
|
460
|
+
(c || !c && t === "fixed") && (s = o.offsetLeft, a = o.offsetTop);
|
461
|
+
}
|
462
|
+
return {
|
463
|
+
width: f,
|
464
|
+
height: p,
|
465
|
+
x: s + qe(e),
|
466
|
+
y: a
|
467
|
+
};
|
468
|
+
}
|
469
|
+
function Mr(e) {
|
470
|
+
var t, r = K(e), n = Ue(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, f = ee(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), p = ee(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), s = -n.scrollLeft + qe(e), a = -n.scrollTop;
|
471
|
+
return Y(o || r).direction === "rtl" && (s += ee(r.clientWidth, o ? o.clientWidth : 0) - f), {
|
472
|
+
width: f,
|
473
|
+
height: p,
|
474
|
+
x: s,
|
475
|
+
y: a
|
476
|
+
};
|
477
|
+
}
|
478
|
+
function Fe(e) {
|
479
|
+
var t = Y(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
|
480
|
+
return /auto|scroll|overlay|hidden/.test(r + o + n);
|
481
|
+
}
|
482
|
+
function Et(e) {
|
483
|
+
return ["html", "body", "#document"].indexOf(X(e)) >= 0 ? e.ownerDocument.body : V(e) && Fe(e) ? e : Et(je(e));
|
484
|
+
}
|
485
|
+
function ue(e, t) {
|
486
|
+
var r;
|
487
|
+
t === void 0 && (t = []);
|
488
|
+
var n = Et(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), f = H(n), p = o ? [f].concat(f.visualViewport || [], Fe(n) ? n : []) : n, s = t.concat(p);
|
489
|
+
return o ? s : (
|
490
|
+
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
491
|
+
s.concat(ue(je(p)))
|
492
|
+
);
|
493
|
+
}
|
494
|
+
function We(e) {
|
495
|
+
return Object.assign({}, e, {
|
496
|
+
left: e.x,
|
497
|
+
top: e.y,
|
498
|
+
right: e.x + e.width,
|
499
|
+
bottom: e.y + e.height
|
500
|
+
});
|
501
|
+
}
|
502
|
+
function kr(e, t) {
|
503
|
+
var r = ie(e, !1, t === "fixed");
|
504
|
+
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
505
|
+
}
|
506
|
+
function lt(e, t, r) {
|
507
|
+
return t === ht ? We($r(e, r)) : te(t) ? kr(t, r) : We(Mr(K(e)));
|
508
|
+
}
|
509
|
+
function Sr(e) {
|
510
|
+
var t = ue(je(e)), r = ["absolute", "fixed"].indexOf(Y(e).position) >= 0, n = r && V(e) ? ge(e) : e;
|
511
|
+
return te(n) ? t.filter(function(o) {
|
512
|
+
return te(o) && bt(o, n) && X(o) !== "body";
|
513
|
+
}) : [];
|
514
|
+
}
|
515
|
+
function Br(e, t, r, n) {
|
516
|
+
var o = t === "clippingParents" ? Sr(e) : [].concat(t), f = [].concat(o, [r]), p = f[0], s = f.reduce(function(a, c) {
|
517
|
+
var l = lt(e, c, n);
|
518
|
+
return a.top = ee(l.top, a.top), a.right = Pe(l.right, a.right), a.bottom = Pe(l.bottom, a.bottom), a.left = ee(l.left, a.left), a;
|
519
|
+
}, lt(e, p, n));
|
520
|
+
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
521
|
+
}
|
522
|
+
function Pt(e) {
|
523
|
+
var t = e.reference, r = e.element, n = e.placement, o = n ? _(n) : null, f = n ? ae(n) : null, p = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, a;
|
524
|
+
switch (o) {
|
525
|
+
case L:
|
526
|
+
a = {
|
527
|
+
x: p,
|
528
|
+
y: t.y - r.height
|
529
|
+
};
|
530
|
+
break;
|
531
|
+
case I:
|
532
|
+
a = {
|
533
|
+
x: p,
|
534
|
+
y: t.y + t.height
|
535
|
+
};
|
536
|
+
break;
|
537
|
+
case U:
|
538
|
+
a = {
|
539
|
+
x: t.x + t.width,
|
540
|
+
y: s
|
541
|
+
};
|
542
|
+
break;
|
543
|
+
case N:
|
544
|
+
a = {
|
545
|
+
x: t.x - r.width,
|
546
|
+
y: s
|
547
|
+
};
|
548
|
+
break;
|
549
|
+
default:
|
550
|
+
a = {
|
551
|
+
x: t.x,
|
552
|
+
y: t.y
|
553
|
+
};
|
554
|
+
}
|
555
|
+
var c = o ? Ie(o) : null;
|
556
|
+
if (c != null) {
|
557
|
+
var l = c === "y" ? "height" : "width";
|
558
|
+
switch (f) {
|
559
|
+
case ne:
|
560
|
+
a[c] = a[c] - (t[l] / 2 - r[l] / 2);
|
561
|
+
break;
|
562
|
+
case ve:
|
563
|
+
a[c] = a[c] + (t[l] / 2 - r[l] / 2);
|
564
|
+
break;
|
565
|
+
}
|
566
|
+
}
|
567
|
+
return a;
|
568
|
+
}
|
569
|
+
function me(e, t) {
|
570
|
+
t === void 0 && (t = {});
|
571
|
+
var r = t, n = r.placement, o = n === void 0 ? e.placement : n, f = r.strategy, p = f === void 0 ? e.strategy : f, s = r.boundary, a = s === void 0 ? tr : s, c = r.rootBoundary, l = c === void 0 ? ht : c, d = r.elementContext, g = d === void 0 ? le : d, m = r.altBoundary, O = m === void 0 ? !1 : m, v = r.padding, y = v === void 0 ? 0 : v, E = wt(typeof y != "number" ? y : Ot(y, he)), T = g === le ? rr : le, x = e.rects.popper, u = e.elements[O ? T : g], h = Br(te(u) ? u : u.contextElement || K(e.elements.popper), a, l, p), b = ie(e.elements.reference), w = Pt({
|
572
|
+
reference: b,
|
573
|
+
element: x,
|
574
|
+
placement: o
|
575
|
+
}), C = We(Object.assign({}, x, w)), P = g === le ? C : b, A = {
|
576
|
+
top: h.top - P.top + E.top,
|
577
|
+
bottom: P.bottom - h.bottom + E.bottom,
|
578
|
+
left: h.left - P.left + E.left,
|
579
|
+
right: P.right - h.right + E.right
|
580
|
+
}, M = e.modifiersData.offset;
|
581
|
+
if (g === le && M) {
|
582
|
+
var W = M[o];
|
583
|
+
Object.keys(A).forEach(function(k) {
|
584
|
+
var F = [U, I].indexOf(k) >= 0 ? 1 : -1, R = [L, I].indexOf(k) >= 0 ? "y" : "x";
|
585
|
+
A[k] += W[R] * F;
|
586
|
+
});
|
587
|
+
}
|
588
|
+
return A;
|
589
|
+
}
|
590
|
+
function Wr(e, t) {
|
591
|
+
t === void 0 && (t = {});
|
592
|
+
var r = t, n = r.placement, o = r.boundary, f = r.rootBoundary, p = r.padding, s = r.flipVariations, a = r.allowedAutoPlacements, c = a === void 0 ? gt : a, l = ae(n), d = l ? s ? at : at.filter(function(O) {
|
593
|
+
return ae(O) === l;
|
594
|
+
}) : he, g = d.filter(function(O) {
|
595
|
+
return c.indexOf(O) >= 0;
|
596
|
+
});
|
597
|
+
g.length === 0 && (g = d);
|
598
|
+
var m = g.reduce(function(O, v) {
|
599
|
+
return O[v] = me(e, {
|
600
|
+
placement: v,
|
601
|
+
boundary: o,
|
602
|
+
rootBoundary: f,
|
603
|
+
padding: p
|
604
|
+
})[_(v)], O;
|
605
|
+
}, {});
|
606
|
+
return Object.keys(m).sort(function(O, v) {
|
607
|
+
return m[O] - m[v];
|
608
|
+
});
|
609
|
+
}
|
610
|
+
function Lr(e) {
|
611
|
+
if (_(e) === Ne)
|
612
|
+
return [];
|
613
|
+
var t = Oe(e);
|
614
|
+
return [pt(e), t, pt(t)];
|
615
|
+
}
|
616
|
+
function Nr(e) {
|
617
|
+
var t = e.state, r = e.options, n = e.name;
|
618
|
+
if (!t.modifiersData[n]._skip) {
|
619
|
+
for (var o = r.mainAxis, f = o === void 0 ? !0 : o, p = r.altAxis, s = p === void 0 ? !0 : p, a = r.fallbackPlacements, c = r.padding, l = r.boundary, d = r.rootBoundary, g = r.altBoundary, m = r.flipVariations, O = m === void 0 ? !0 : m, v = r.allowedAutoPlacements, y = t.options.placement, E = _(y), T = E === y, x = a || (T || !O ? [Oe(y)] : Lr(y)), u = [y].concat(x).reduce(function(re, G) {
|
620
|
+
return re.concat(_(G) === Ne ? Wr(t, {
|
621
|
+
placement: G,
|
622
|
+
boundary: l,
|
623
|
+
rootBoundary: d,
|
624
|
+
padding: c,
|
625
|
+
flipVariations: O,
|
626
|
+
allowedAutoPlacements: v
|
627
|
+
}) : G);
|
628
|
+
}, []), h = t.rects.reference, b = t.rects.popper, w = /* @__PURE__ */ new Map(), C = !0, P = u[0], A = 0; A < u.length; A++) {
|
629
|
+
var M = u[A], W = _(M), k = ae(M) === ne, F = [L, I].indexOf(W) >= 0, R = F ? "width" : "height", j = me(t, {
|
630
|
+
placement: M,
|
631
|
+
boundary: l,
|
632
|
+
rootBoundary: d,
|
633
|
+
altBoundary: g,
|
634
|
+
padding: c
|
635
|
+
}), $ = F ? k ? U : N : k ? I : L;
|
636
|
+
h[R] > b[R] && ($ = Oe($));
|
637
|
+
var S = Oe($), B = [];
|
638
|
+
if (f && B.push(j[W] <= 0), s && B.push(j[$] <= 0, j[S] <= 0), B.every(function(re) {
|
639
|
+
return re;
|
640
|
+
})) {
|
641
|
+
P = M, C = !1;
|
642
|
+
break;
|
643
|
+
}
|
644
|
+
w.set(M, B);
|
645
|
+
}
|
646
|
+
if (C)
|
647
|
+
for (var q = O ? 3 : 1, De = function(G) {
|
648
|
+
var fe = u.find(function(be) {
|
649
|
+
var Q = w.get(be);
|
650
|
+
if (Q)
|
651
|
+
return Q.slice(0, G).every(function(Ce) {
|
652
|
+
return Ce;
|
653
|
+
});
|
654
|
+
});
|
655
|
+
if (fe)
|
656
|
+
return P = fe, "break";
|
657
|
+
}, se = q; se > 0; se--) {
|
658
|
+
var ye = De(se);
|
659
|
+
if (ye === "break") break;
|
660
|
+
}
|
661
|
+
t.placement !== P && (t.modifiersData[n]._skip = !0, t.placement = P, t.reset = !0);
|
662
|
+
}
|
663
|
+
}
|
664
|
+
const Hr = {
|
665
|
+
name: "flip",
|
666
|
+
enabled: !0,
|
667
|
+
phase: "main",
|
668
|
+
fn: Nr,
|
669
|
+
requiresIfExists: ["offset"],
|
670
|
+
data: {
|
671
|
+
_skip: !1
|
672
|
+
}
|
673
|
+
};
|
674
|
+
function ct(e, t, r) {
|
675
|
+
return r === void 0 && (r = {
|
676
|
+
x: 0,
|
677
|
+
y: 0
|
678
|
+
}), {
|
679
|
+
top: e.top - t.height - r.y,
|
680
|
+
right: e.right - t.width + r.x,
|
681
|
+
bottom: e.bottom - t.height + r.y,
|
682
|
+
left: e.left - t.width - r.x
|
683
|
+
};
|
684
|
+
}
|
685
|
+
function ut(e) {
|
686
|
+
return [L, U, I, N].some(function(t) {
|
687
|
+
return e[t] >= 0;
|
688
|
+
});
|
689
|
+
}
|
690
|
+
function Vr(e) {
|
691
|
+
var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, f = t.modifiersData.preventOverflow, p = me(t, {
|
692
|
+
elementContext: "reference"
|
693
|
+
}), s = me(t, {
|
694
|
+
altBoundary: !0
|
695
|
+
}), a = ct(p, n), c = ct(s, o, f), l = ut(a), d = ut(c);
|
696
|
+
t.modifiersData[r] = {
|
697
|
+
referenceClippingOffsets: a,
|
698
|
+
popperEscapeOffsets: c,
|
699
|
+
isReferenceHidden: l,
|
700
|
+
hasPopperEscaped: d
|
701
|
+
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
702
|
+
"data-popper-reference-hidden": l,
|
703
|
+
"data-popper-escaped": d
|
704
|
+
});
|
705
|
+
}
|
706
|
+
const Ir = {
|
707
|
+
name: "hide",
|
708
|
+
enabled: !0,
|
709
|
+
phase: "main",
|
710
|
+
requiresIfExists: ["preventOverflow"],
|
711
|
+
fn: Vr
|
712
|
+
};
|
713
|
+
function Ur(e, t, r) {
|
714
|
+
var n = _(e), o = [N, L].indexOf(n) >= 0 ? -1 : 1, f = typeof r == "function" ? r(Object.assign({}, t, {
|
715
|
+
placement: e
|
716
|
+
})) : r, p = f[0], s = f[1];
|
717
|
+
return p = p || 0, s = (s || 0) * o, [N, U].indexOf(n) >= 0 ? {
|
718
|
+
x: s,
|
719
|
+
y: p
|
720
|
+
} : {
|
721
|
+
x: p,
|
722
|
+
y: s
|
723
|
+
};
|
724
|
+
}
|
725
|
+
function qr(e) {
|
726
|
+
var t = e.state, r = e.options, n = e.name, o = r.offset, f = o === void 0 ? [0, 0] : o, p = gt.reduce(function(l, d) {
|
727
|
+
return l[d] = Ur(d, t.rects, f), l;
|
728
|
+
}, {}), s = p[t.placement], a = s.x, c = s.y;
|
729
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += a, t.modifiersData.popperOffsets.y += c), t.modifiersData[n] = p;
|
730
|
+
}
|
731
|
+
const Fr = {
|
732
|
+
name: "offset",
|
733
|
+
enabled: !0,
|
734
|
+
phase: "main",
|
735
|
+
requires: ["popperOffsets"],
|
736
|
+
fn: qr
|
737
|
+
};
|
738
|
+
function _r(e) {
|
739
|
+
var t = e.state, r = e.name;
|
740
|
+
t.modifiersData[r] = Pt({
|
741
|
+
reference: t.rects.reference,
|
742
|
+
element: t.rects.popper,
|
743
|
+
placement: t.placement
|
744
|
+
});
|
745
|
+
}
|
746
|
+
const Xr = {
|
747
|
+
name: "popperOffsets",
|
748
|
+
enabled: !0,
|
749
|
+
phase: "read",
|
750
|
+
fn: _r,
|
751
|
+
data: {}
|
752
|
+
};
|
753
|
+
function zr(e) {
|
754
|
+
return e === "x" ? "y" : "x";
|
755
|
+
}
|
756
|
+
function Yr(e) {
|
757
|
+
var t = e.state, r = e.options, n = e.name, o = r.mainAxis, f = o === void 0 ? !0 : o, p = r.altAxis, s = p === void 0 ? !1 : p, a = r.boundary, c = r.rootBoundary, l = r.altBoundary, d = r.padding, g = r.tether, m = g === void 0 ? !0 : g, O = r.tetherOffset, v = O === void 0 ? 0 : O, y = me(t, {
|
758
|
+
boundary: a,
|
759
|
+
rootBoundary: c,
|
760
|
+
padding: d,
|
761
|
+
altBoundary: l
|
762
|
+
}), E = _(t.placement), T = ae(t.placement), x = !T, u = Ie(E), h = zr(u), b = t.modifiersData.popperOffsets, w = t.rects.reference, C = t.rects.popper, P = typeof v == "function" ? v(Object.assign({}, t.rects, {
|
763
|
+
placement: t.placement
|
764
|
+
})) : v, A = typeof P == "number" ? {
|
765
|
+
mainAxis: P,
|
766
|
+
altAxis: P
|
767
|
+
} : Object.assign({
|
768
|
+
mainAxis: 0,
|
769
|
+
altAxis: 0
|
770
|
+
}, P), M = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, W = {
|
771
|
+
x: 0,
|
772
|
+
y: 0
|
773
|
+
};
|
774
|
+
if (b) {
|
775
|
+
if (f) {
|
776
|
+
var k, F = u === "y" ? L : N, R = u === "y" ? I : U, j = u === "y" ? "height" : "width", $ = b[u], S = $ + y[F], B = $ - y[R], q = m ? -C[j] / 2 : 0, De = T === ne ? w[j] : C[j], se = T === ne ? -C[j] : -w[j], ye = t.elements.arrow, re = m && ye ? Ve(ye) : {
|
777
|
+
width: 0,
|
778
|
+
height: 0
|
779
|
+
}, G = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : xt(), fe = G[F], be = G[R], Q = ce(0, w[j], re[j]), Ce = x ? w[j] / 2 - q - Q - fe - A.mainAxis : De - Q - fe - A.mainAxis, jt = x ? -w[j] / 2 + q + Q + be + A.mainAxis : se + Q + be + A.mainAxis, $e = t.elements.arrow && ge(t.elements.arrow), At = $e ? u === "y" ? $e.clientTop || 0 : $e.clientLeft || 0 : 0, _e = (k = M == null ? void 0 : M[u]) != null ? k : 0, Dt = $ + Ce - _e - At, Ct = $ + jt - _e, Xe = ce(m ? Pe(S, Dt) : S, $, m ? ee(B, Ct) : B);
|
780
|
+
b[u] = Xe, W[u] = Xe - $;
|
781
|
+
}
|
782
|
+
if (s) {
|
783
|
+
var ze, $t = u === "x" ? L : N, Mt = u === "x" ? I : U, Z = b[h], xe = h === "y" ? "height" : "width", Ye = Z + y[$t], Ge = Z - y[Mt], Me = [L, N].indexOf(E) !== -1, Je = (ze = M == null ? void 0 : M[h]) != null ? ze : 0, Ke = Me ? Ye : Z - w[xe] - C[xe] - Je + A.altAxis, Qe = Me ? Z + w[xe] + C[xe] - Je - A.altAxis : Ge, Ze = m && Me ? yr(Ke, Z, Qe) : ce(m ? Ke : Ye, Z, m ? Qe : Ge);
|
784
|
+
b[h] = Ze, W[h] = Ze - Z;
|
785
|
+
}
|
786
|
+
t.modifiersData[n] = W;
|
787
|
+
}
|
788
|
+
}
|
789
|
+
const Gr = {
|
790
|
+
name: "preventOverflow",
|
791
|
+
enabled: !0,
|
792
|
+
phase: "main",
|
793
|
+
fn: Yr,
|
794
|
+
requiresIfExists: ["offset"]
|
795
|
+
};
|
796
|
+
function Jr(e) {
|
797
|
+
return {
|
798
|
+
scrollLeft: e.scrollLeft,
|
799
|
+
scrollTop: e.scrollTop
|
800
|
+
};
|
801
|
+
}
|
802
|
+
function Kr(e) {
|
803
|
+
return e === H(e) || !V(e) ? Ue(e) : Jr(e);
|
804
|
+
}
|
805
|
+
function Qr(e) {
|
806
|
+
var t = e.getBoundingClientRect(), r = oe(t.width) / e.offsetWidth || 1, n = oe(t.height) / e.offsetHeight || 1;
|
807
|
+
return r !== 1 || n !== 1;
|
808
|
+
}
|
809
|
+
function Zr(e, t, r) {
|
810
|
+
r === void 0 && (r = !1);
|
811
|
+
var n = V(t), o = V(t) && Qr(t), f = K(t), p = ie(e, o, r), s = {
|
812
|
+
scrollLeft: 0,
|
813
|
+
scrollTop: 0
|
814
|
+
}, a = {
|
815
|
+
x: 0,
|
816
|
+
y: 0
|
817
|
+
};
|
818
|
+
return (n || !n && !r) && ((X(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
819
|
+
Fe(f)) && (s = Kr(t)), V(t) ? (a = ie(t, !0), a.x += t.clientLeft, a.y += t.clientTop) : f && (a.x = qe(f))), {
|
820
|
+
x: p.left + s.scrollLeft - a.x,
|
821
|
+
y: p.top + s.scrollTop - a.y,
|
822
|
+
width: p.width,
|
823
|
+
height: p.height
|
824
|
+
};
|
825
|
+
}
|
826
|
+
function en(e) {
|
827
|
+
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
828
|
+
e.forEach(function(f) {
|
829
|
+
t.set(f.name, f);
|
830
|
+
});
|
831
|
+
function o(f) {
|
832
|
+
r.add(f.name);
|
833
|
+
var p = [].concat(f.requires || [], f.requiresIfExists || []);
|
834
|
+
p.forEach(function(s) {
|
835
|
+
if (!r.has(s)) {
|
836
|
+
var a = t.get(s);
|
837
|
+
a && o(a);
|
838
|
+
}
|
839
|
+
}), n.push(f);
|
840
|
+
}
|
841
|
+
return e.forEach(function(f) {
|
842
|
+
r.has(f.name) || o(f);
|
843
|
+
}), n;
|
844
|
+
}
|
845
|
+
function tn(e) {
|
846
|
+
var t = en(e);
|
847
|
+
return ur.reduce(function(r, n) {
|
848
|
+
return r.concat(t.filter(function(o) {
|
849
|
+
return o.phase === n;
|
850
|
+
}));
|
851
|
+
}, []);
|
852
|
+
}
|
853
|
+
function rn(e) {
|
854
|
+
var t;
|
855
|
+
return function() {
|
856
|
+
return t || (t = new Promise(function(r) {
|
857
|
+
Promise.resolve().then(function() {
|
858
|
+
t = void 0, r(e());
|
859
|
+
});
|
860
|
+
})), t;
|
861
|
+
};
|
862
|
+
}
|
863
|
+
function nn(e) {
|
864
|
+
var t = e.reduce(function(r, n) {
|
865
|
+
var o = r[n.name];
|
866
|
+
return r[n.name] = o ? Object.assign({}, o, n, {
|
867
|
+
options: Object.assign({}, o.options, n.options),
|
868
|
+
data: Object.assign({}, o.data, n.data)
|
869
|
+
}) : n, r;
|
870
|
+
}, {});
|
871
|
+
return Object.keys(t).map(function(r) {
|
872
|
+
return t[r];
|
873
|
+
});
|
874
|
+
}
|
875
|
+
var dt = {
|
876
|
+
placement: "bottom",
|
877
|
+
modifiers: [],
|
878
|
+
strategy: "absolute"
|
879
|
+
};
|
880
|
+
function vt() {
|
881
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
882
|
+
t[r] = arguments[r];
|
883
|
+
return !t.some(function(n) {
|
884
|
+
return !(n && typeof n.getBoundingClientRect == "function");
|
885
|
+
});
|
886
|
+
}
|
887
|
+
function on(e) {
|
888
|
+
e === void 0 && (e = {});
|
889
|
+
var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, f = o === void 0 ? dt : o;
|
890
|
+
return function(s, a, c) {
|
891
|
+
c === void 0 && (c = f);
|
892
|
+
var l = {
|
893
|
+
placement: "bottom",
|
894
|
+
orderedModifiers: [],
|
895
|
+
options: Object.assign({}, dt, f),
|
896
|
+
modifiersData: {},
|
897
|
+
elements: {
|
898
|
+
reference: s,
|
899
|
+
popper: a
|
900
|
+
},
|
901
|
+
attributes: {},
|
902
|
+
styles: {}
|
903
|
+
}, d = [], g = !1, m = {
|
904
|
+
state: l,
|
905
|
+
setOptions: function(E) {
|
906
|
+
var T = typeof E == "function" ? E(l.options) : E;
|
907
|
+
v(), l.options = Object.assign({}, f, l.options, T), l.scrollParents = {
|
908
|
+
reference: te(s) ? ue(s) : s.contextElement ? ue(s.contextElement) : [],
|
909
|
+
popper: ue(a)
|
910
|
+
};
|
911
|
+
var x = tn(nn([].concat(n, l.options.modifiers)));
|
912
|
+
return l.orderedModifiers = x.filter(function(u) {
|
913
|
+
return u.enabled;
|
914
|
+
}), O(), m.update();
|
915
|
+
},
|
916
|
+
// Sync update – it will always be executed, even if not necessary. This
|
917
|
+
// is useful for low frequency updates where sync behavior simplifies the
|
918
|
+
// logic.
|
919
|
+
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
920
|
+
// prefer the async Popper#update method
|
921
|
+
forceUpdate: function() {
|
922
|
+
if (!g) {
|
923
|
+
var E = l.elements, T = E.reference, x = E.popper;
|
924
|
+
if (vt(T, x)) {
|
925
|
+
l.rects = {
|
926
|
+
reference: Zr(T, ge(x), l.options.strategy === "fixed"),
|
927
|
+
popper: Ve(x)
|
928
|
+
}, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(A) {
|
929
|
+
return l.modifiersData[A.name] = Object.assign({}, A.data);
|
930
|
+
});
|
931
|
+
for (var u = 0; u < l.orderedModifiers.length; u++) {
|
932
|
+
if (l.reset === !0) {
|
933
|
+
l.reset = !1, u = -1;
|
934
|
+
continue;
|
935
|
+
}
|
936
|
+
var h = l.orderedModifiers[u], b = h.fn, w = h.options, C = w === void 0 ? {} : w, P = h.name;
|
937
|
+
typeof b == "function" && (l = b({
|
938
|
+
state: l,
|
939
|
+
options: C,
|
940
|
+
name: P,
|
941
|
+
instance: m
|
942
|
+
}) || l);
|
943
|
+
}
|
944
|
+
}
|
945
|
+
}
|
946
|
+
},
|
947
|
+
// Async and optimistically optimized update – it will not be executed if
|
948
|
+
// not necessary (debounced to run at most once-per-tick)
|
949
|
+
update: rn(function() {
|
950
|
+
return new Promise(function(y) {
|
951
|
+
m.forceUpdate(), y(l);
|
952
|
+
});
|
953
|
+
}),
|
954
|
+
destroy: function() {
|
955
|
+
v(), g = !0;
|
956
|
+
}
|
957
|
+
};
|
958
|
+
if (!vt(s, a))
|
959
|
+
return m;
|
960
|
+
m.setOptions(c).then(function(y) {
|
961
|
+
!g && c.onFirstUpdate && c.onFirstUpdate(y);
|
962
|
+
});
|
963
|
+
function O() {
|
964
|
+
l.orderedModifiers.forEach(function(y) {
|
965
|
+
var E = y.name, T = y.options, x = T === void 0 ? {} : T, u = y.effect;
|
966
|
+
if (typeof u == "function") {
|
967
|
+
var h = u({
|
968
|
+
state: l,
|
969
|
+
name: E,
|
970
|
+
instance: m,
|
971
|
+
options: x
|
972
|
+
}), b = function() {
|
973
|
+
};
|
974
|
+
d.push(h || b);
|
975
|
+
}
|
976
|
+
});
|
977
|
+
}
|
978
|
+
function v() {
|
979
|
+
d.forEach(function(y) {
|
980
|
+
return y();
|
981
|
+
}), d = [];
|
982
|
+
}
|
983
|
+
return m;
|
984
|
+
};
|
985
|
+
}
|
986
|
+
var an = [Ar, Xr, Tr, mr, Fr, Hr, Gr, Or, Ir], sn = /* @__PURE__ */ on({
|
987
|
+
defaultModifiers: an
|
988
|
+
});
|
989
|
+
function fn(e) {
|
990
|
+
return Bt("MuiPopper", e);
|
991
|
+
}
|
992
|
+
Lt("MuiPopper", ["root"]);
|
993
|
+
const pn = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], ln = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
|
994
|
+
function cn(e, t) {
|
995
|
+
if (t === "ltr")
|
996
|
+
return e;
|
997
|
+
switch (e) {
|
998
|
+
case "bottom-end":
|
999
|
+
return "bottom-start";
|
1000
|
+
case "bottom-start":
|
1001
|
+
return "bottom-end";
|
1002
|
+
case "top-end":
|
1003
|
+
return "top-start";
|
1004
|
+
case "top-start":
|
1005
|
+
return "top-end";
|
1006
|
+
default:
|
1007
|
+
return e;
|
1008
|
+
}
|
1009
|
+
}
|
1010
|
+
function Re(e) {
|
1011
|
+
return typeof e == "function" ? e() : e;
|
1012
|
+
}
|
1013
|
+
function Ae(e) {
|
1014
|
+
return e.nodeType !== void 0;
|
1015
|
+
}
|
1016
|
+
function un(e) {
|
1017
|
+
return !Ae(e);
|
1018
|
+
}
|
1019
|
+
const dn = (e) => {
|
1020
|
+
const {
|
1021
|
+
classes: t
|
1022
|
+
} = e;
|
1023
|
+
return Vt({
|
1024
|
+
root: ["root"]
|
1025
|
+
}, fn, t);
|
1026
|
+
}, vn = {}, mn = /* @__PURE__ */ D.forwardRef(function(t, r) {
|
1027
|
+
var n;
|
1028
|
+
const {
|
1029
|
+
anchorEl: o,
|
1030
|
+
children: f,
|
1031
|
+
direction: p,
|
1032
|
+
disablePortal: s,
|
1033
|
+
modifiers: a,
|
1034
|
+
open: c,
|
1035
|
+
placement: l,
|
1036
|
+
popperOptions: d,
|
1037
|
+
popperRef: g,
|
1038
|
+
slotProps: m = {},
|
1039
|
+
slots: O = {},
|
1040
|
+
TransitionProps: v
|
1041
|
+
// @ts-ignore internal logic
|
1042
|
+
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
1043
|
+
} = t, y = Te(t, pn), E = D.useRef(null), T = Se(E, r), x = D.useRef(null), u = Se(x, g), h = D.useRef(u);
|
1044
|
+
tt(() => {
|
1045
|
+
h.current = u;
|
1046
|
+
}, [u]), D.useImperativeHandle(g, () => x.current, []);
|
1047
|
+
const b = cn(l, p), [w, C] = D.useState(b), [P, A] = D.useState(Re(o));
|
1048
|
+
D.useEffect(() => {
|
1049
|
+
x.current && x.current.forceUpdate();
|
1050
|
+
}), D.useEffect(() => {
|
1051
|
+
o && A(Re(o));
|
1052
|
+
}, [o]), tt(() => {
|
1053
|
+
if (!P || !c)
|
1054
|
+
return;
|
1055
|
+
const R = (S) => {
|
1056
|
+
C(S.placement);
|
1057
|
+
};
|
1058
|
+
if (J.env.NODE_ENV !== "production" && P && Ae(P) && P.nodeType === 1) {
|
1059
|
+
const S = P.getBoundingClientRect();
|
1060
|
+
J.env.NODE_ENV !== "test" && S.top === 0 && S.left === 0 && S.right === 0 && S.bottom;
|
1061
|
+
}
|
1062
|
+
let j = [{
|
1063
|
+
name: "preventOverflow",
|
1064
|
+
options: {
|
1065
|
+
altBoundary: s
|
1066
|
+
}
|
1067
|
+
}, {
|
1068
|
+
name: "flip",
|
1069
|
+
options: {
|
1070
|
+
altBoundary: s
|
1071
|
+
}
|
1072
|
+
}, {
|
1073
|
+
name: "onUpdate",
|
1074
|
+
enabled: !0,
|
1075
|
+
phase: "afterWrite",
|
1076
|
+
fn: ({
|
1077
|
+
state: S
|
1078
|
+
}) => {
|
1079
|
+
R(S);
|
1080
|
+
}
|
1081
|
+
}];
|
1082
|
+
a != null && (j = j.concat(a)), d && d.modifiers != null && (j = j.concat(d.modifiers));
|
1083
|
+
const $ = sn(P, E.current, z({
|
1084
|
+
placement: b
|
1085
|
+
}, d, {
|
1086
|
+
modifiers: j
|
1087
|
+
}));
|
1088
|
+
return h.current($), () => {
|
1089
|
+
$.destroy(), h.current(null);
|
1090
|
+
};
|
1091
|
+
}, [P, s, a, c, d, b]);
|
1092
|
+
const M = {
|
1093
|
+
placement: w
|
1094
|
+
};
|
1095
|
+
v !== null && (M.TransitionProps = v);
|
1096
|
+
const W = dn(t), k = (n = O.root) != null ? n : "div", F = Ht({
|
1097
|
+
elementType: k,
|
1098
|
+
externalSlotProps: m.root,
|
1099
|
+
externalForwardedProps: y,
|
1100
|
+
additionalProps: {
|
1101
|
+
role: "tooltip",
|
1102
|
+
ref: T
|
1103
|
+
},
|
1104
|
+
ownerState: t,
|
1105
|
+
className: W.root
|
1106
|
+
});
|
1107
|
+
return /* @__PURE__ */ de(k, z({}, F, {
|
1108
|
+
children: typeof f == "function" ? f(M) : f
|
1109
|
+
}));
|
1110
|
+
}), Rt = /* @__PURE__ */ D.forwardRef(function(t, r) {
|
1111
|
+
const {
|
1112
|
+
anchorEl: n,
|
1113
|
+
children: o,
|
1114
|
+
container: f,
|
1115
|
+
direction: p = "ltr",
|
1116
|
+
disablePortal: s = !1,
|
1117
|
+
keepMounted: a = !1,
|
1118
|
+
modifiers: c,
|
1119
|
+
open: l,
|
1120
|
+
placement: d = "bottom",
|
1121
|
+
popperOptions: g = vn,
|
1122
|
+
popperRef: m,
|
1123
|
+
style: O,
|
1124
|
+
transition: v = !1,
|
1125
|
+
slotProps: y = {},
|
1126
|
+
slots: E = {}
|
1127
|
+
} = t, T = Te(t, ln), [x, u] = D.useState(!0), h = () => {
|
1128
|
+
u(!1);
|
1129
|
+
}, b = () => {
|
1130
|
+
u(!0);
|
1131
|
+
};
|
1132
|
+
if (!a && !l && (!v || x))
|
1133
|
+
return null;
|
1134
|
+
let w;
|
1135
|
+
if (f)
|
1136
|
+
w = f;
|
1137
|
+
else if (n) {
|
1138
|
+
const A = Re(n);
|
1139
|
+
w = A && Ae(A) ? et(A).body : et(null).body;
|
1140
|
+
}
|
1141
|
+
const C = !l && a && (!v || x) ? "none" : void 0, P = v ? {
|
1142
|
+
in: l,
|
1143
|
+
onEnter: h,
|
1144
|
+
onExited: b
|
1145
|
+
} : void 0;
|
1146
|
+
return /* @__PURE__ */ de(Nt, {
|
1147
|
+
disablePortal: s,
|
1148
|
+
container: w,
|
1149
|
+
children: /* @__PURE__ */ de(mn, z({
|
1150
|
+
anchorEl: n,
|
1151
|
+
direction: p,
|
1152
|
+
disablePortal: s,
|
1153
|
+
modifiers: c,
|
1154
|
+
ref: r,
|
1155
|
+
open: v ? !x : l,
|
1156
|
+
placement: d,
|
1157
|
+
popperOptions: g,
|
1158
|
+
popperRef: m,
|
1159
|
+
slotProps: y,
|
1160
|
+
slots: E
|
1161
|
+
}, T, {
|
1162
|
+
style: z({
|
1163
|
+
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
1164
|
+
position: "fixed",
|
1165
|
+
// Fix Popper.js display issue
|
1166
|
+
top: 0,
|
1167
|
+
left: 0,
|
1168
|
+
display: C
|
1169
|
+
}, O),
|
1170
|
+
TransitionProps: P,
|
1171
|
+
children: o
|
1172
|
+
}))
|
1173
|
+
});
|
1174
|
+
});
|
1175
|
+
J.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
1176
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
1177
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
1178
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
1179
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
1180
|
+
/**
|
1181
|
+
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
1182
|
+
* or a function that returns either.
|
1183
|
+
* It's used to set the position of the popper.
|
1184
|
+
* The return value will passed as the reference object of the Popper instance.
|
1185
|
+
*/
|
1186
|
+
anchorEl: It(i.oneOfType([Ee, i.object, i.func]), (e) => {
|
1187
|
+
if (e.open) {
|
1188
|
+
const t = Re(e.anchorEl);
|
1189
|
+
if (t && Ae(t) && t.nodeType === 1) {
|
1190
|
+
const r = t.getBoundingClientRect();
|
1191
|
+
if (J.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
|
1192
|
+
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
1193
|
+
`));
|
1194
|
+
} else if (!t || typeof t.getBoundingClientRect != "function" || un(t) && t.contextElement != null && t.contextElement.nodeType !== 1)
|
1195
|
+
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "It should be an HTML element instance or a virtualElement ", "(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
1196
|
+
`));
|
1197
|
+
}
|
1198
|
+
return null;
|
1199
|
+
}),
|
1200
|
+
/**
|
1201
|
+
* Popper render function or node.
|
1202
|
+
*/
|
1203
|
+
children: i.oneOfType([i.node, i.func]),
|
1204
|
+
/**
|
1205
|
+
* An HTML element or function that returns one.
|
1206
|
+
* The `container` will have the portal children appended to it.
|
1207
|
+
*
|
1208
|
+
* You can also provide a callback, which is called in a React layout effect.
|
1209
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
1210
|
+
*
|
1211
|
+
* By default, it uses the body of the top-level document object,
|
1212
|
+
* so it's simply `document.body` most of the time.
|
1213
|
+
*/
|
1214
|
+
container: i.oneOfType([Ee, i.func]),
|
1215
|
+
/**
|
1216
|
+
* Direction of the text.
|
1217
|
+
* @default 'ltr'
|
1218
|
+
*/
|
1219
|
+
direction: i.oneOf(["ltr", "rtl"]),
|
1220
|
+
/**
|
1221
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
1222
|
+
* @default false
|
1223
|
+
*/
|
1224
|
+
disablePortal: i.bool,
|
1225
|
+
/**
|
1226
|
+
* Always keep the children in the DOM.
|
1227
|
+
* This prop can be useful in SEO situation or
|
1228
|
+
* when you want to maximize the responsiveness of the Popper.
|
1229
|
+
* @default false
|
1230
|
+
*/
|
1231
|
+
keepMounted: i.bool,
|
1232
|
+
/**
|
1233
|
+
* Popper.js is based on a "plugin-like" architecture,
|
1234
|
+
* most of its features are fully encapsulated "modifiers".
|
1235
|
+
*
|
1236
|
+
* A modifier is a function that is called each time Popper.js needs to
|
1237
|
+
* compute the position of the popper.
|
1238
|
+
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
1239
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
1240
|
+
*/
|
1241
|
+
modifiers: i.arrayOf(i.shape({
|
1242
|
+
data: i.object,
|
1243
|
+
effect: i.func,
|
1244
|
+
enabled: i.bool,
|
1245
|
+
fn: i.func,
|
1246
|
+
name: i.any,
|
1247
|
+
options: i.object,
|
1248
|
+
phase: i.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
|
1249
|
+
requires: i.arrayOf(i.string),
|
1250
|
+
requiresIfExists: i.arrayOf(i.string)
|
1251
|
+
})),
|
1252
|
+
/**
|
1253
|
+
* If `true`, the component is shown.
|
1254
|
+
*/
|
1255
|
+
open: i.bool.isRequired,
|
1256
|
+
/**
|
1257
|
+
* Popper placement.
|
1258
|
+
* @default 'bottom'
|
1259
|
+
*/
|
1260
|
+
placement: i.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
1261
|
+
/**
|
1262
|
+
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
1263
|
+
* @default {}
|
1264
|
+
*/
|
1265
|
+
popperOptions: i.shape({
|
1266
|
+
modifiers: i.array,
|
1267
|
+
onFirstUpdate: i.func,
|
1268
|
+
placement: i.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
1269
|
+
strategy: i.oneOf(["absolute", "fixed"])
|
1270
|
+
}),
|
1271
|
+
/**
|
1272
|
+
* A ref that points to the used popper instance.
|
1273
|
+
*/
|
1274
|
+
popperRef: mt,
|
1275
|
+
/**
|
1276
|
+
* The props used for each slot inside the Popper.
|
1277
|
+
* @default {}
|
1278
|
+
*/
|
1279
|
+
slotProps: i.shape({
|
1280
|
+
root: i.oneOfType([i.func, i.object])
|
1281
|
+
}),
|
1282
|
+
/**
|
1283
|
+
* The components used for each slot inside the Popper.
|
1284
|
+
* Either a string to use a HTML element or a component.
|
1285
|
+
* @default {}
|
1286
|
+
*/
|
1287
|
+
slots: i.shape({
|
1288
|
+
root: i.elementType
|
1289
|
+
}),
|
1290
|
+
/**
|
1291
|
+
* Help supporting a react-transition-group/Transition component.
|
1292
|
+
* @default false
|
1293
|
+
*/
|
1294
|
+
transition: i.bool
|
1295
|
+
});
|
1296
|
+
const hn = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"], gn = qt(Rt, {
|
1297
|
+
name: "MuiPopper",
|
1298
|
+
slot: "Root",
|
1299
|
+
overridesResolver: (e, t) => t.root
|
1300
|
+
})({}), yn = /* @__PURE__ */ D.forwardRef(function(t, r) {
|
1301
|
+
var n;
|
1302
|
+
const o = er(), f = Ut({
|
1303
|
+
props: t,
|
1304
|
+
name: "MuiPopper"
|
1305
|
+
}), {
|
1306
|
+
anchorEl: p,
|
1307
|
+
component: s,
|
1308
|
+
components: a,
|
1309
|
+
componentsProps: c,
|
1310
|
+
container: l,
|
1311
|
+
disablePortal: d,
|
1312
|
+
keepMounted: g,
|
1313
|
+
modifiers: m,
|
1314
|
+
open: O,
|
1315
|
+
placement: v,
|
1316
|
+
popperOptions: y,
|
1317
|
+
popperRef: E,
|
1318
|
+
transition: T,
|
1319
|
+
slots: x,
|
1320
|
+
slotProps: u
|
1321
|
+
} = f, h = Te(f, hn), b = (n = x == null ? void 0 : x.root) != null ? n : a == null ? void 0 : a.Root, w = z({
|
1322
|
+
anchorEl: p,
|
1323
|
+
container: l,
|
1324
|
+
disablePortal: d,
|
1325
|
+
keepMounted: g,
|
1326
|
+
modifiers: m,
|
1327
|
+
open: O,
|
1328
|
+
placement: v,
|
1329
|
+
popperOptions: y,
|
1330
|
+
popperRef: E,
|
1331
|
+
transition: T
|
1332
|
+
}, h);
|
1333
|
+
return /* @__PURE__ */ de(gn, z({
|
1334
|
+
as: s,
|
1335
|
+
direction: o == null ? void 0 : o.direction,
|
1336
|
+
slots: {
|
1337
|
+
root: b
|
1338
|
+
},
|
1339
|
+
slotProps: u ?? c
|
1340
|
+
}, w, {
|
1341
|
+
ref: r
|
1342
|
+
}));
|
1343
|
+
});
|
1344
|
+
J.env.NODE_ENV !== "production" && (yn.propTypes = {
|
1345
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
1346
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
1347
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
1348
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
1349
|
+
/**
|
1350
|
+
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
1351
|
+
* or a function that returns either.
|
1352
|
+
* It's used to set the position of the popper.
|
1353
|
+
* The return value will passed as the reference object of the Popper instance.
|
1354
|
+
*/
|
1355
|
+
anchorEl: i.oneOfType([Ee, i.object, i.func]),
|
1356
|
+
/**
|
1357
|
+
* Popper render function or node.
|
1358
|
+
*/
|
1359
|
+
children: i.oneOfType([i.node, i.func]),
|
1360
|
+
/**
|
1361
|
+
* The component used for the root node.
|
1362
|
+
* Either a string to use a HTML element or a component.
|
1363
|
+
*/
|
1364
|
+
component: i.elementType,
|
1365
|
+
/**
|
1366
|
+
* The components used for each slot inside the Popper.
|
1367
|
+
* Either a string to use a HTML element or a component.
|
1368
|
+
* @default {}
|
1369
|
+
*/
|
1370
|
+
components: i.shape({
|
1371
|
+
Root: i.elementType
|
1372
|
+
}),
|
1373
|
+
/**
|
1374
|
+
* The props used for each slot inside the Popper.
|
1375
|
+
* @default {}
|
1376
|
+
*/
|
1377
|
+
componentsProps: i.shape({
|
1378
|
+
root: i.oneOfType([i.func, i.object])
|
1379
|
+
}),
|
1380
|
+
/**
|
1381
|
+
* An HTML element or function that returns one.
|
1382
|
+
* The `container` will have the portal children appended to it.
|
1383
|
+
*
|
1384
|
+
* You can also provide a callback, which is called in a React layout effect.
|
1385
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
1386
|
+
*
|
1387
|
+
* By default, it uses the body of the top-level document object,
|
1388
|
+
* so it's simply `document.body` most of the time.
|
1389
|
+
*/
|
1390
|
+
container: i.oneOfType([Ee, i.func]),
|
1391
|
+
/**
|
1392
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
1393
|
+
* @default false
|
1394
|
+
*/
|
1395
|
+
disablePortal: i.bool,
|
1396
|
+
/**
|
1397
|
+
* Always keep the children in the DOM.
|
1398
|
+
* This prop can be useful in SEO situation or
|
1399
|
+
* when you want to maximize the responsiveness of the Popper.
|
1400
|
+
* @default false
|
1401
|
+
*/
|
1402
|
+
keepMounted: i.bool,
|
1403
|
+
/**
|
1404
|
+
* Popper.js is based on a "plugin-like" architecture,
|
1405
|
+
* most of its features are fully encapsulated "modifiers".
|
1406
|
+
*
|
1407
|
+
* A modifier is a function that is called each time Popper.js needs to
|
1408
|
+
* compute the position of the popper.
|
1409
|
+
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
1410
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
1411
|
+
*/
|
1412
|
+
modifiers: i.arrayOf(i.shape({
|
1413
|
+
data: i.object,
|
1414
|
+
effect: i.func,
|
1415
|
+
enabled: i.bool,
|
1416
|
+
fn: i.func,
|
1417
|
+
name: i.any,
|
1418
|
+
options: i.object,
|
1419
|
+
phase: i.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
|
1420
|
+
requires: i.arrayOf(i.string),
|
1421
|
+
requiresIfExists: i.arrayOf(i.string)
|
1422
|
+
})),
|
1423
|
+
/**
|
1424
|
+
* If `true`, the component is shown.
|
1425
|
+
*/
|
1426
|
+
open: i.bool.isRequired,
|
1427
|
+
/**
|
1428
|
+
* Popper placement.
|
1429
|
+
* @default 'bottom'
|
1430
|
+
*/
|
1431
|
+
placement: i.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
1432
|
+
/**
|
1433
|
+
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
1434
|
+
* @default {}
|
1435
|
+
*/
|
1436
|
+
popperOptions: i.shape({
|
1437
|
+
modifiers: i.array,
|
1438
|
+
onFirstUpdate: i.func,
|
1439
|
+
placement: i.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
1440
|
+
strategy: i.oneOf(["absolute", "fixed"])
|
1441
|
+
}),
|
1442
|
+
/**
|
1443
|
+
* A ref that points to the used popper instance.
|
1444
|
+
*/
|
1445
|
+
popperRef: mt,
|
1446
|
+
/**
|
1447
|
+
* The props used for each slot inside the Popper.
|
1448
|
+
* @default {}
|
1449
|
+
*/
|
1450
|
+
slotProps: i.shape({
|
1451
|
+
root: i.oneOfType([i.func, i.object])
|
1452
|
+
}),
|
1453
|
+
/**
|
1454
|
+
* The components used for each slot inside the Popper.
|
1455
|
+
* Either a string to use a HTML element or a component.
|
1456
|
+
* @default {}
|
1457
|
+
*/
|
1458
|
+
slots: i.shape({
|
1459
|
+
root: i.elementType
|
1460
|
+
}),
|
1461
|
+
/**
|
1462
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
1463
|
+
*/
|
1464
|
+
sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
|
1465
|
+
/**
|
1466
|
+
* Help supporting a react-transition-group/Transition component.
|
1467
|
+
* @default false
|
1468
|
+
*/
|
1469
|
+
transition: i.bool
|
1470
|
+
});
|
1471
|
+
const bn = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
1472
|
+
function Le(e) {
|
1473
|
+
return `scale(${e}, ${e ** 2})`;
|
1474
|
+
}
|
1475
|
+
const xn = {
|
1476
|
+
entering: {
|
1477
|
+
opacity: 1,
|
1478
|
+
transform: Le(1)
|
1479
|
+
},
|
1480
|
+
entered: {
|
1481
|
+
opacity: 1,
|
1482
|
+
transform: "none"
|
1483
|
+
}
|
1484
|
+
}, ke = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), Tt = /* @__PURE__ */ D.forwardRef(function(t, r) {
|
1485
|
+
const {
|
1486
|
+
addEndListener: n,
|
1487
|
+
appear: o = !0,
|
1488
|
+
children: f,
|
1489
|
+
easing: p,
|
1490
|
+
in: s,
|
1491
|
+
onEnter: a,
|
1492
|
+
onEntered: c,
|
1493
|
+
onEntering: l,
|
1494
|
+
onExit: d,
|
1495
|
+
onExited: g,
|
1496
|
+
onExiting: m,
|
1497
|
+
style: O,
|
1498
|
+
timeout: v = "auto",
|
1499
|
+
// eslint-disable-next-line react/prop-types
|
1500
|
+
TransitionComponent: y = Ft
|
1501
|
+
} = t, E = Te(t, bn), T = _t(), x = D.useRef(), u = Xt(), h = D.useRef(null), b = Se(h, zt(f), r), w = (R) => (j) => {
|
1502
|
+
if (R) {
|
1503
|
+
const $ = h.current;
|
1504
|
+
j === void 0 ? R($) : R($, j);
|
1505
|
+
}
|
1506
|
+
}, C = w(l), P = w((R, j) => {
|
1507
|
+
Yt(R);
|
1508
|
+
const {
|
1509
|
+
duration: $,
|
1510
|
+
delay: S,
|
1511
|
+
easing: B
|
1512
|
+
} = rt({
|
1513
|
+
style: O,
|
1514
|
+
timeout: v,
|
1515
|
+
easing: p
|
1516
|
+
}, {
|
1517
|
+
mode: "enter"
|
1518
|
+
});
|
1519
|
+
let q;
|
1520
|
+
v === "auto" ? (q = u.transitions.getAutoHeightDuration(R.clientHeight), x.current = q) : q = $, R.style.transition = [u.transitions.create("opacity", {
|
1521
|
+
duration: q,
|
1522
|
+
delay: S
|
1523
|
+
}), u.transitions.create("transform", {
|
1524
|
+
duration: ke ? q : q * 0.666,
|
1525
|
+
delay: S,
|
1526
|
+
easing: B
|
1527
|
+
})].join(","), a && a(R, j);
|
1528
|
+
}), A = w(c), M = w(m), W = w((R) => {
|
1529
|
+
const {
|
1530
|
+
duration: j,
|
1531
|
+
delay: $,
|
1532
|
+
easing: S
|
1533
|
+
} = rt({
|
1534
|
+
style: O,
|
1535
|
+
timeout: v,
|
1536
|
+
easing: p
|
1537
|
+
}, {
|
1538
|
+
mode: "exit"
|
1539
|
+
});
|
1540
|
+
let B;
|
1541
|
+
v === "auto" ? (B = u.transitions.getAutoHeightDuration(R.clientHeight), x.current = B) : B = j, R.style.transition = [u.transitions.create("opacity", {
|
1542
|
+
duration: B,
|
1543
|
+
delay: $
|
1544
|
+
}), u.transitions.create("transform", {
|
1545
|
+
duration: ke ? B : B * 0.666,
|
1546
|
+
delay: ke ? $ : $ || B * 0.333,
|
1547
|
+
easing: S
|
1548
|
+
})].join(","), R.style.opacity = 0, R.style.transform = Le(0.75), d && d(R);
|
1549
|
+
}), k = w(g);
|
1550
|
+
return /* @__PURE__ */ de(y, z({
|
1551
|
+
appear: o,
|
1552
|
+
in: s,
|
1553
|
+
nodeRef: h,
|
1554
|
+
onEnter: P,
|
1555
|
+
onEntered: A,
|
1556
|
+
onEntering: C,
|
1557
|
+
onExit: W,
|
1558
|
+
onExited: k,
|
1559
|
+
onExiting: M,
|
1560
|
+
addEndListener: (R) => {
|
1561
|
+
v === "auto" && T.start(x.current || 0, R), n && n(h.current, R);
|
1562
|
+
},
|
1563
|
+
timeout: v === "auto" ? null : v
|
1564
|
+
}, E, {
|
1565
|
+
children: (R, j) => /* @__PURE__ */ D.cloneElement(f, z({
|
1566
|
+
style: z({
|
1567
|
+
opacity: 0,
|
1568
|
+
transform: Le(0.75),
|
1569
|
+
visibility: R === "exited" && !s ? "hidden" : void 0
|
1570
|
+
}, xn[R], O, f.props.style),
|
1571
|
+
ref: b
|
1572
|
+
}, j))
|
1573
|
+
}));
|
1574
|
+
});
|
1575
|
+
J.env.NODE_ENV !== "production" && (Tt.propTypes = {
|
1576
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
1577
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
1578
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
1579
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
1580
|
+
/**
|
1581
|
+
* Add a custom transition end trigger. Called with the transitioning DOM
|
1582
|
+
* node and a done callback. Allows for more fine grained transition end
|
1583
|
+
* logic. Note: Timeouts are still used as a fallback if provided.
|
1584
|
+
*/
|
1585
|
+
addEndListener: i.func,
|
1586
|
+
/**
|
1587
|
+
* Perform the enter transition when it first mounts if `in` is also `true`.
|
1588
|
+
* Set this to `false` to disable this behavior.
|
1589
|
+
* @default true
|
1590
|
+
*/
|
1591
|
+
appear: i.bool,
|
1592
|
+
/**
|
1593
|
+
* A single child content element.
|
1594
|
+
*/
|
1595
|
+
children: Gt.isRequired,
|
1596
|
+
/**
|
1597
|
+
* The transition timing function.
|
1598
|
+
* You may specify a single easing or a object containing enter and exit values.
|
1599
|
+
*/
|
1600
|
+
easing: i.oneOfType([i.shape({
|
1601
|
+
enter: i.string,
|
1602
|
+
exit: i.string
|
1603
|
+
}), i.string]),
|
1604
|
+
/**
|
1605
|
+
* If `true`, the component will transition in.
|
1606
|
+
*/
|
1607
|
+
in: i.bool,
|
1608
|
+
/**
|
1609
|
+
* @ignore
|
1610
|
+
*/
|
1611
|
+
onEnter: i.func,
|
1612
|
+
/**
|
1613
|
+
* @ignore
|
1614
|
+
*/
|
1615
|
+
onEntered: i.func,
|
1616
|
+
/**
|
1617
|
+
* @ignore
|
1618
|
+
*/
|
1619
|
+
onEntering: i.func,
|
1620
|
+
/**
|
1621
|
+
* @ignore
|
1622
|
+
*/
|
1623
|
+
onExit: i.func,
|
1624
|
+
/**
|
1625
|
+
* @ignore
|
1626
|
+
*/
|
1627
|
+
onExited: i.func,
|
1628
|
+
/**
|
1629
|
+
* @ignore
|
1630
|
+
*/
|
1631
|
+
onExiting: i.func,
|
1632
|
+
/**
|
1633
|
+
* @ignore
|
1634
|
+
*/
|
1635
|
+
style: i.object,
|
1636
|
+
/**
|
1637
|
+
* The duration for the transition, in milliseconds.
|
1638
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
1639
|
+
*
|
1640
|
+
* Set to 'auto' to automatically calculate transition time based on height.
|
1641
|
+
* @default 'auto'
|
1642
|
+
*/
|
1643
|
+
timeout: i.oneOfType([i.oneOf(["auto"]), i.number, i.shape({
|
1644
|
+
appear: i.number,
|
1645
|
+
enter: i.number,
|
1646
|
+
exit: i.number
|
1647
|
+
})])
|
1648
|
+
});
|
1649
|
+
Tt.muiSupportAuto = !0;
|
1650
|
+
export {
|
1651
|
+
Tt as G,
|
1652
|
+
yn as P,
|
1653
|
+
Rn as a,
|
1654
|
+
jn as b,
|
1655
|
+
Tn as u
|
1656
|
+
};
|