@blockend/widget 1.0.61 → 1.0.63-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/dist/{AllRoutes-BqW5S4_J.js → AllRoutes-8vhlfGf-.js} +9 -9
  2. package/dist/{Box-Dw7IJo3D.js → Box-BTaHIEfq.js} +1 -1
  3. package/dist/{EstGas-C_ldluj6.js → EstGas-CR6YmgrV.js} +7 -7
  4. package/dist/{Grow-DjneaPQY.js → Grow-BmLMXGpF.js} +2 -2
  5. package/dist/{InputComp-CWH4SAk7.js → InputComp-BcRHFujR.js} +3 -3
  6. package/dist/{LoadRoute-Cafzlcfy.js → LoadRoute-D-6AXSyf.js} +4 -4
  7. package/dist/{QuotesProgress-Covy7wmW.js → QuotesProgress-dZK5t6Af.js} +1 -1
  8. package/dist/{SwapAsset-BqXVX_DR.js → SwapAsset-Cb1HU2IW.js} +1 -1
  9. package/dist/{Tooltip-D2kKNQ0U.js → Tooltip-CCJQNWKV.js} +3 -3
  10. package/dist/{TxnButton-CPMFPFA_.js → TxnButton-Ddhzivbr.js} +3 -3
  11. package/dist/{add-CRY8asYF.js → add-CXxCm9LT.js} +1 -1
  12. package/dist/{all-wallets-DOnIRIv0.js → all-wallets-B2k777Go.js} +1 -1
  13. package/dist/{app-store-C0M9hC1B.js → app-store-BefvqWIr.js} +1 -1
  14. package/dist/{apple-Bv7oA5AQ.js → apple-xv2wilZw.js} +1 -1
  15. package/dist/{arrow-bottom-circle-BUny4yP8.js → arrow-bottom-circle-DiCGVTmN.js} +1 -1
  16. package/dist/{arrow-bottom-D4arnome.js → arrow-bottom-eJR2wz4Q.js} +1 -1
  17. package/dist/{arrow-left-DImJbKZs.js → arrow-left-eW5rkpGR.js} +1 -1
  18. package/dist/{arrow-right-BvRPNX9F.js → arrow-right-D_PahEvj.js} +1 -1
  19. package/dist/{arrow-top-1RWPJImu.js → arrow-top-Cd45U-OK.js} +1 -1
  20. package/dist/{bank-C0t9JpLj.js → bank-Du_PBJEL.js} +1 -1
  21. package/dist/{basic-VfgwBHn1.js → basic-Og2t8wfR.js} +3 -3
  22. package/dist/{browser-0d0uw45D.js → browser-HO6X74Jh.js} +1 -1
  23. package/dist/{card-BBByykfy.js → card-CjWBCXYA.js} +1 -1
  24. package/dist/{ccip-8__szz9Q.js → ccip-DHqvWSgS.js} +1 -1
  25. package/dist/{checkmark-B_osdsm_.js → checkmark-CMLNKLjH.js} +1 -1
  26. package/dist/{checkmark-bold-BEzepFY4.js → checkmark-bold-CM9EIYV0.js} +1 -1
  27. package/dist/{chevron-bottom-Bdaxlaxc.js → chevron-bottom-BDaOxnxp.js} +1 -1
  28. package/dist/{chevron-left-2aCeqxdm.js → chevron-left-BuK5WmH2.js} +1 -1
  29. package/dist/{chevron-right-BPgQeMPz.js → chevron-right-BMRPUQ7d.js} +1 -1
  30. package/dist/{chevron-top-BskFpgMP.js → chevron-top-DndcjTpF.js} +1 -1
  31. package/dist/{chrome-store-CxhEG2Jk.js → chrome-store-BMaWFKtJ.js} +1 -1
  32. package/dist/{clock-BDgHn083.js → clock-B5OmOXN6.js} +1 -1
  33. package/dist/{close-CQTa1LZg.js → close-Bkt0qqtO.js} +1 -1
  34. package/dist/{coinPlaceholder-B-NSV729.js → coinPlaceholder-B9E-pdBA.js} +1 -1
  35. package/dist/{compass-BdJmk2w2.js → compass-70YC7hlj.js} +1 -1
  36. package/dist/{copy-Cg4vgr82.js → copy-6xIbuiPA.js} +1 -1
  37. package/dist/{core-BSwMFU2B.js → core-CIqAJqfO.js} +3 -3
  38. package/dist/{cursor-BoD_rq0f.js → cursor-XVsA3bFU.js} +1 -1
  39. package/dist/{cursor-transparent-Dqs1kXcb.js → cursor-transparent-umSbGkB7.js} +1 -1
  40. package/dist/{desktop-BOxkTik1.js → desktop-CXv5OVB9.js} +1 -1
  41. package/dist/{disconnect-CTxFyZWa.js → disconnect-Dvhyoj4V.js} +1 -1
  42. package/dist/{discord-BJRxIhBt.js → discord-BVK5s4WI.js} +1 -1
  43. package/dist/{down-372J_rRV.js → down-FxTTd1zc.js} +2 -2
  44. package/dist/{etherscan-CyQf5MH5.js → etherscan-DxlyP6n6.js} +1 -1
  45. package/dist/{exclamation-triangle-DFOXjtuI.js → exclamation-triangle-iHVFOZzs.js} +1 -1
  46. package/dist/{extension-XiWSr1Ku.js → extension-DiDqWBcW.js} +1 -1
  47. package/dist/{external-link-CYjbHRDY.js → external-link-BHW_akeT.js} +1 -1
  48. package/dist/{facebook-DhP37m2R.js → facebook-BdfpC6Ls.js} +1 -1
  49. package/dist/{farcaster-C1J2oGt2.js → farcaster-CsPD4_Ee.js} +1 -1
  50. package/dist/{filters-C5jLy9GP.js → filters-CqRduOsu.js} +1 -1
  51. package/dist/{getChainIds-AaKb_MmO.js → getChainIds-CJguHdTG.js} +2 -2
  52. package/dist/{getCosmosAddress-D-F7jz-d.js → getCosmosAddress-Jm1ni4XU.js} +2 -2
  53. package/dist/{github-CJ8g1by7.js → github-BOePu0Wa.js} +1 -1
  54. package/dist/{google-DpIVCnNm.js → google-BbTzqlxg.js} +1 -1
  55. package/dist/{hamburger-BylLGawu.js → hamburger-Co59plQs.js} +5 -5
  56. package/dist/{help-circle-BESCFGIa.js → help-circle-f8w-O5uS.js} +1 -1
  57. package/dist/{id-CPX0IEMo.js → id-FJz-6DWQ.js} +1 -1
  58. package/dist/{image-DrFHyQOS.js → image-BGcjHz_W.js} +1 -1
  59. package/dist/{index-D0J1OD73.js → index-B1aDjOsb.js} +1973 -1973
  60. package/dist/{index-DjHDqI7m.js → index-B7BjZ7QD.js} +4 -4
  61. package/dist/{index-BDezoD7C.js → index-BGtpuYz8.js} +1 -1
  62. package/dist/{index-H7ThVJwV.js → index-BmpkN5Ku.js} +4 -4
  63. package/dist/{index-eatshJSd.js → index-By0HLmvg.js} +1005 -1005
  64. package/dist/{index-DoNokw4Q.js → index-C9NKLe0T.js} +1 -1
  65. package/dist/{index-D_8iklL2.js → index-CsUXwhXc.js} +434 -432
  66. package/dist/{index-BOd8pd8c.js → index-DN3VaeWb.js} +11 -11
  67. package/dist/{index-BheqnLKf.js → index-Qlxj5hfD.js} +78 -78
  68. package/dist/{index-DO14DPs3.js → index-Yg5537Ua.js} +5 -5
  69. package/dist/{index-DhZwdjPQ.js → index-uGXbvlKh.js} +2 -2
  70. package/dist/{index.es-B95K0DgG.js → index.es-DI1TVLSl.js} +1 -1
  71. package/dist/{index.es-gTtSa0r5.js → index.es-DksqakUY.js} +2 -2
  72. package/dist/index.es.js +1 -1
  73. package/dist/{info-DB9XS3BU.js → info-D7az05BN.js} +1 -1
  74. package/dist/{info-circle-BVB8s9W_.js → info-circle-BJVzgICV.js} +1 -1
  75. package/dist/{lightbulb-C0eiLvuS.js → lightbulb-BwTw8953.js} +1 -1
  76. package/dist/{mail-CYcc9yZZ.js → mail-yo0Q-pKc.js} +1 -1
  77. package/dist/{mobile-Cvm9Skqq.js → mobile-Cq9QgJo1.js} +1 -1
  78. package/dist/{more-B-UvO1Yo.js → more-CA9mN5hg.js} +1 -1
  79. package/dist/{network-placeholder-C8QNcwPf.js → network-placeholder-DJgEL8xU.js} +1 -1
  80. package/dist/{nftPlaceholder-C_LU9tT5.js → nftPlaceholder-BtmwsJfE.js} +1 -1
  81. package/dist/{off-BEQbMYBZ.js → off-DOBUEPIz.js} +1 -1
  82. package/dist/{play-store-CEopCauM.js → play-store-CTeI1TUT.js} +1 -1
  83. package/dist/{plus-CtEYHV2t.js → plus-BIMbqFAs.js} +1 -1
  84. package/dist/{qr-code-BhmZxeo_.js → qr-code-BNLm2nbm.js} +1 -1
  85. package/dist/{recycle-horizontal-CF9eqICi.js → recycle-horizontal-CD20fzzc.js} +1 -1
  86. package/dist/{refresh-Bm3plkBE.js → refresh-vAF43DQ5.js} +1 -1
  87. package/dist/{reown-logo-8S9ZN_-T.js → reown-logo-QC8cVkw7.js} +1 -1
  88. package/dist/{search-DNcA47oY.js → search-BEV7hWzk.js} +1 -1
  89. package/dist/{send-B0S9gHH6.js → send-DQuKJTh-.js} +1 -1
  90. package/dist/{swapHorizontal-BuTPPB8N.js → swapHorizontal-QlUI5TkM.js} +1 -1
  91. package/dist/{swapHorizontalBold-BnB-fpce.js → swapHorizontalBold-CxRB7lBz.js} +1 -1
  92. package/dist/{swapHorizontalMedium-9QnwwjJD.js → swapHorizontalMedium-DR23H9E6.js} +1 -1
  93. package/dist/{swapHorizontalRoundedBold-C83mxp3u.js → swapHorizontalRoundedBold-CvCYhrA3.js} +1 -1
  94. package/dist/{swapVertical-BAz7hmKO.js → swapVertical-NpfviMzk.js} +1 -1
  95. package/dist/{telegram-BMT9bLfw.js → telegram-B2E4bkq4.js} +1 -1
  96. package/dist/{three-dots-DuhUrXKI.js → three-dots-zOUHoCrw.js} +1 -1
  97. package/dist/{twitch-ClsoABSi.js → twitch-DvXB4cDF.js} +1 -1
  98. package/dist/{twitterIcon-B9n98fnH.js → twitterIcon-CkAU-gkN.js} +1 -1
  99. package/dist/{unsupportedProp-BXmR-9gT.js → unsupportedProp-CR0Bm2eS.js} +1 -1
  100. package/dist/{useRegisterError-DVG0sgLq.js → useRegisterError-B1UKihdk.js} +1 -1
  101. package/dist/{verify-BHTa1Niv.js → verify-DcGLVQiP.js} +1 -1
  102. package/dist/{verify-filled-CqobBYuI.js → verify-filled-DQ3ygXuA.js} +1 -1
  103. package/dist/{w3m-modal-B7akV0Kp.js → w3m-modal-BJNv805u.js} +2 -2
  104. package/dist/{wallet-ObJy7yZR.js → wallet-Dyl015cJ.js} +1 -1
  105. package/dist/{wallet-placeholder-BxVrKpEz.js → wallet-placeholder-DwdGMd_q.js} +1 -1
  106. package/dist/{walletconnect-CYJbrPQQ.js → walletconnect-Cm10vkxV.js} +1 -1
  107. package/dist/{warning-circle-DOwgDOgL.js → warning-circle-B_JpskvF.js} +1 -1
  108. package/dist/{x-B03u0kWD.js → x-BBTlR8TT.js} +1 -1
  109. package/package.json +1 -1
  110. package/dist/AllRoutes-CIe7ZLbW.js +0 -2209
  111. package/dist/Box-QpYIDD-V.js +0 -54
  112. package/dist/EstGas-Dpwt2-50.js +0 -1574
  113. package/dist/Grow-L7kyPhbh.js +0 -1656
  114. package/dist/InputComp-Dl4M7E5v.js +0 -105
  115. package/dist/LoadRoute-cBSl34Bs.js +0 -125
  116. package/dist/QuotesProgress-CxJUoCPy.js +0 -28
  117. package/dist/SwapAsset-CkRat7Ok.js +0 -51
  118. package/dist/Tooltip-3YpYU_vO.js +0 -572
  119. package/dist/TxnButton-mfwy-EoQ.js +0 -222
  120. package/dist/add-Dfrw-dUV.js +0 -19
  121. package/dist/all-wallets-Dw10lWJZ.js +0 -10
  122. package/dist/app-store-DJiZFSCr.js +0 -21
  123. package/dist/apple-kMZGS4AC.js +0 -22
  124. package/dist/arrow-bottom-DgmWrLqf.js +0 -12
  125. package/dist/arrow-bottom-circle-C7iPKwzW.js +0 -15
  126. package/dist/arrow-left-Dol642VI.js +0 -12
  127. package/dist/arrow-right-CMwyPVT7.js +0 -12
  128. package/dist/arrow-top-kn9xtx92.js +0 -12
  129. package/dist/bank-DK-FvDfd.js +0 -18
  130. package/dist/basic-Sejv2JvX.js +0 -5783
  131. package/dist/browser-BzT1ACe9.js +0 -18
  132. package/dist/card-DqDM55a-.js +0 -18
  133. package/dist/ccip-BPZSey8I.js +0 -228
  134. package/dist/checkmark-DEKH6rOS.js +0 -15
  135. package/dist/checkmark-bold-Dzv2hN2Q.js +0 -12
  136. package/dist/chevron-bottom-CXdHWe0F.js +0 -12
  137. package/dist/chevron-left-CeuFz3M9.js +0 -12
  138. package/dist/chevron-right-DikqbHjp.js +0 -12
  139. package/dist/chevron-top-CjCScawp.js +0 -12
  140. package/dist/chrome-store-DaP5Y4w2.js +0 -65
  141. package/dist/clock-BzjZWK68.js +0 -12
  142. package/dist/close-Dqncm2nY.js +0 -12
  143. package/dist/coinPlaceholder-BExfa33b.js +0 -12
  144. package/dist/compass-C1H_fht-.js +0 -12
  145. package/dist/copy-DPMVX3yZ.js +0 -19
  146. package/dist/core-BYOwnw_B.js +0 -16521
  147. package/dist/cursor-transparent-IQlZspwQ.js +0 -16
  148. package/dist/cursor-ybJpiPr6.js +0 -7
  149. package/dist/desktop-WMYv3b4Q.js +0 -13
  150. package/dist/disconnect-eMeec26w.js +0 -12
  151. package/dist/discord-CpTo4KnZ.js +0 -21
  152. package/dist/down-hvB7J3FG.js +0 -622
  153. package/dist/etherscan-DQ1h54d3.js +0 -10
  154. package/dist/exclamation-triangle-DzKs0-30.js +0 -8
  155. package/dist/extension-ep1TEUSD.js +0 -12
  156. package/dist/external-link-DRzzevt_.js +0 -12
  157. package/dist/facebook-eXS31CP5.js +0 -30
  158. package/dist/farcaster-f0EPKy4w.js +0 -16
  159. package/dist/filters-RqawLZYy.js +0 -12
  160. package/dist/getChainIds-DXEtLb1g.js +0 -1888
  161. package/dist/getCosmosAddress-X_cfoAnv.js +0 -9517
  162. package/dist/github-d1vUfc1B.js +0 -22
  163. package/dist/google-Dtcfyt4F.js +0 -22
  164. package/dist/hamburger-DezZOKRv.js +0 -3915
  165. package/dist/help-circle-BTpSg7wr.js +0 -16
  166. package/dist/id-CV-pIIiZ.js +0 -16
  167. package/dist/image-n7ODnWNp.js +0 -8
  168. package/dist/index-BYmiFoJh.js +0 -29495
  169. package/dist/index-C7McnY5R.js +0 -18509
  170. package/dist/index-CI-V1HdQ.js +0 -3267
  171. package/dist/index-CSgWo9Cg.js +0 -6713
  172. package/dist/index-CViW2kjE.js +0 -13547
  173. package/dist/index-CoV9zQx1.js +0 -992
  174. package/dist/index-GlSAE8hE.js +0 -472
  175. package/dist/index-Pni0gIii.js +0 -206
  176. package/dist/index-TEYMoNwP.js +0 -9
  177. package/dist/index-VS3sEqmI.js +0 -330
  178. package/dist/index-ePnYqYhf.js +0 -1483
  179. package/dist/index.es-BzyBckd_.js +0 -366
  180. package/dist/index.es-CMvE7ghR.js +0 -14904
  181. package/dist/info-DWZmKXfC.js +0 -7
  182. package/dist/info-circle-Bk9rpQzz.js +0 -16
  183. package/dist/lightbulb-CUDopurR.js +0 -7
  184. package/dist/mail-Df9wlUBz.js +0 -12
  185. package/dist/mobile-DcoUJktC.js +0 -13
  186. package/dist/more-DbsAB7Xx.js +0 -15
  187. package/dist/network-placeholder-CnHZLxGT.js +0 -18
  188. package/dist/nftPlaceholder-D7igGAAq.js +0 -12
  189. package/dist/off-Brms9nN7.js +0 -12
  190. package/dist/play-store-z4z-boXn.js +0 -36
  191. package/dist/plus-LkrIZJEQ.js +0 -17
  192. package/dist/qr-code-CZnYaNoE.js +0 -10
  193. package/dist/recycle-horizontal-CeGotUdv.js +0 -13
  194. package/dist/refresh-CKhWU1dQ.js +0 -12
  195. package/dist/reown-logo-CF2Qkyw1.js +0 -16
  196. package/dist/search-DyuAYb_-.js +0 -12
  197. package/dist/send-BbBOjlsM.js +0 -19
  198. package/dist/swapHorizontal-DA7yhPfV.js +0 -12
  199. package/dist/swapHorizontalBold-BujZxwgY.js +0 -12
  200. package/dist/swapHorizontalMedium-hEBn_MJv.js +0 -20
  201. package/dist/swapHorizontalRoundedBold-Cqg1Na-5.js +0 -12
  202. package/dist/swapVertical-D1CdGHJt.js +0 -12
  203. package/dist/telegram-dDQ2sOw5.js +0 -20
  204. package/dist/three-dots-ltDeu1Xu.js +0 -9
  205. package/dist/twitch-sBusnrAt.js +0 -22
  206. package/dist/twitterIcon-BKMgaEZ4.js +0 -10
  207. package/dist/unsupportedProp-P9y3_0om.js +0 -10
  208. package/dist/useRegisterError-DGMdKFc9.js +0 -8918
  209. package/dist/verify-DXzijLDZ.js +0 -12
  210. package/dist/verify-filled-DnKqj8X5.js +0 -12
  211. package/dist/w3m-modal-Cc1j8j_E.js +0 -1471
  212. package/dist/wallet-placeholder-DEsjd5Nv.js +0 -18
  213. package/dist/wallet-zL6TDKIa.js +0 -12
  214. package/dist/walletconnect-CZz6e0wy.js +0 -36
  215. package/dist/warning-circle-DsGlg2MF.js +0 -16
  216. package/dist/x-MwPhq03Y.js +0 -16
@@ -1,1656 +0,0 @@
1
- import * as D from "react";
2
- import kt from "react";
3
- import { p as K, P as i, aK as St, n as Bt, g as Wt, b as Lt, _ as Te, d as z, h as Nt, i as Ht, s as Vt } from "./index-BYmiFoJh.js";
4
- import { jsx as de } from "react/jsx-runtime";
5
- import { o as et, P as It, b as Se, a as tt, m as Ut, r as mt, h as qt, H as Ee, T as Ft, q as _t, j as Xt, n as zt, t as rt, v as Yt, w as Gt } from "./useRegisterError-DGMdKFc9.js";
6
- let nt = 0;
7
- function Kt(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 Kt(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 (K.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 Jt = /* @__PURE__ */ D.createContext();
46
- K.env.NODE_ENV !== "production" && (i.node, i.bool);
47
- const jn = () => {
48
- const e = D.useContext(Jt);
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 = St;
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__ */ Bt(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 J(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
- J(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 wt() {
273
- return {
274
- top: 0,
275
- right: 0,
276
- bottom: 0,
277
- left: 0
278
- };
279
- }
280
- function xt(e) {
281
- return Object.assign({}, wt(), 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, xt(typeof t != "number" ? t : Ot(t, he));
292
- };
293
- function wr(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, w = v / 2 - y / 2, u = d[m], h = T - g[l] - d[O], b = T / 2 - g[l] / 2 + w, x = ce(u, b, h), C = a;
297
- r.modifiersData[n] = (t = {}, t[C] = x, t.centerOffset = x - b, t);
298
- }
299
- }
300
- function xr(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: wr,
309
- effect: xr,
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"), w = N, u = L, h = window;
339
- if (c) {
340
- var b = ge(r), x = "clientHeight", C = "clientWidth";
341
- if (b === H(r) && (b = J(r), Y(b).position !== "static" && s === "absolute" && (x = "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[x]
346
- );
347
- v -= P - n.height, v *= a ? 1 : -1;
348
- }
349
- if (o === N || (o === L || o === I) && f === ve) {
350
- w = 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[w] = 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[w] = 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 xe = {
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, xe);
410
- }), s && a.addEventListener("resize", r.update, xe), function() {
411
- f && c.forEach(function(l) {
412
- l.removeEventListener("scroll", r.update, xe);
413
- }), s && a.removeEventListener("resize", r.update, xe);
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(J(e)).left + Ue(e).scrollLeft;
454
- }
455
- function $r(e, t) {
456
- var r = H(e), n = J(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 = J(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(J(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 = xt(typeof y != "number" ? y : Ot(y, he)), T = g === le ? rr : le, w = e.rects.popper, u = e.elements[O ? T : g], h = Br(te(u) ? u : u.contextElement || J(e.elements.popper), a, l, p), b = ie(e.elements.reference), x = Pt({
572
- reference: b,
573
- element: w,
574
- placement: o
575
- }), C = We(Object.assign({}, w, x)), 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, w = a || (T || !O ? [Oe(y)] : Lr(y)), u = [y].concat(w).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, x = /* @__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
- x.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 = x.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), w = !T, u = Ie(E), h = zr(u), b = t.modifiersData.popperOffsets, x = 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 ? x[j] : C[j], se = T === ne ? -C[j] : -x[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 : wt(), fe = G[F], be = G[R], Q = ce(0, x[j], re[j]), Ce = w ? x[j] / 2 - q - Q - fe - A.mainAxis : De - Q - fe - A.mainAxis, jt = w ? -x[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], we = h === "y" ? "height" : "width", Ye = Z + y[$t], Ge = Z - y[Mt], Me = [L, N].indexOf(E) !== -1, Ke = (ze = M == null ? void 0 : M[h]) != null ? ze : 0, Je = Me ? Ye : Z - x[we] - C[we] - Ke + A.altAxis, Qe = Me ? Z + x[we] + C[we] - Ke - A.altAxis : Ge, Ze = m && Me ? yr(Je, Z, Qe) : ce(m ? Je : 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 Kr(e) {
797
- return {
798
- scrollLeft: e.scrollLeft,
799
- scrollTop: e.scrollTop
800
- };
801
- }
802
- function Jr(e) {
803
- return e === H(e) || !V(e) ? Ue(e) : Kr(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 = J(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 = Jr(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 w = tn(nn([].concat(n, l.options.modifiers)));
912
- return l.orderedModifiers = w.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, w = E.popper;
924
- if (vt(T, w)) {
925
- l.rects = {
926
- reference: Zr(T, ge(w), l.options.strategy === "fixed"),
927
- popper: Ve(w)
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, x = h.options, C = x === void 0 ? {} : x, 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, w = 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: w
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 Wt("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 Nt({
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), w = D.useRef(null), u = Se(w, g), h = D.useRef(u);
1044
- tt(() => {
1045
- h.current = u;
1046
- }, [u]), D.useImperativeHandle(g, () => w.current, []);
1047
- const b = cn(l, p), [x, C] = D.useState(b), [P, A] = D.useState(Re(o));
1048
- D.useEffect(() => {
1049
- w.current && w.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 (K.env.NODE_ENV !== "production" && P && Ae(P) && P.nodeType === 1) {
1059
- const S = P.getBoundingClientRect();
1060
- K.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: x
1094
- };
1095
- v !== null && (M.TransitionProps = v);
1096
- const W = dn(t), k = (n = O.root) != null ? n : "div", F = Ut({
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), [w, u] = D.useState(!0), h = () => {
1128
- u(!1);
1129
- }, b = () => {
1130
- u(!0);
1131
- };
1132
- if (!a && !l && (!v || w))
1133
- return null;
1134
- let x;
1135
- if (f)
1136
- x = f;
1137
- else if (n) {
1138
- const A = Re(n);
1139
- x = A && Ae(A) ? et(A).body : et(null).body;
1140
- }
1141
- const C = !l && a && (!v || w) ? "none" : void 0, P = v ? {
1142
- in: l,
1143
- onEnter: h,
1144
- onExited: b
1145
- } : void 0;
1146
- return /* @__PURE__ */ de(It, {
1147
- disablePortal: s,
1148
- container: x,
1149
- children: /* @__PURE__ */ de(mn, z({
1150
- anchorEl: n,
1151
- direction: p,
1152
- disablePortal: s,
1153
- modifiers: c,
1154
- ref: r,
1155
- open: v ? !w : 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
- K.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: qt(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 (K.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 = Vt(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 = Ht({
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: w,
1320
- slotProps: u
1321
- } = f, h = Te(f, hn), b = (n = w == null ? void 0 : w.root) != null ? n : a == null ? void 0 : a.Root, x = 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
- }, x, {
1341
- ref: r
1342
- }));
1343
- });
1344
- K.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 wn = {
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(), w = D.useRef(), u = Xt(), h = D.useRef(null), b = Se(h, zt(f), r), x = (R) => (j) => {
1502
- if (R) {
1503
- const $ = h.current;
1504
- j === void 0 ? R($) : R($, j);
1505
- }
1506
- }, C = x(l), P = x((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), w.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 = x(c), M = x(m), W = x((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), w.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 = x(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(w.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
- }, wn[R], O, f.props.style),
1571
- ref: b
1572
- }, j))
1573
- }));
1574
- });
1575
- K.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
- };