@televet/kibble-ui 4.0.0-beta.66 → 4.0.0-beta.67
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/chunks/{alert.types-DYf5xFEG.js → alert.types-B7BlPX2-.js} +10 -11
- package/dist/chunks/{alert.types-DYf5xFEG.js.map → alert.types-B7BlPX2-.js.map} +1 -1
- package/dist/chunks/alert.types-BsvcbTZD.js +2 -0
- package/dist/chunks/{alert.types-DbqCOYr5.js.map → alert.types-BsvcbTZD.js.map} +1 -1
- package/dist/chunks/{avatar.component-Bk8VVA0l.js → avatar.component-CB5m8zha.js} +22 -22
- package/dist/chunks/{avatar.component-Bk8VVA0l.js.map → avatar.component-CB5m8zha.js.map} +1 -1
- package/dist/chunks/avatar.component-RKtP3MZt.js +2 -0
- package/dist/chunks/{avatar.component-TAfT1LM1.js.map → avatar.component-RKtP3MZt.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-CZnhQOWy.js → avatarGroup.component-CKFjjo2R.js} +2 -2
- package/dist/chunks/{avatarGroup.component-CZnhQOWy.js.map → avatarGroup.component-CKFjjo2R.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-BGF4gl5d.js → avatarGroup.component-CjBeAxHZ.js} +2 -2
- package/dist/chunks/{avatarGroup.component-BGF4gl5d.js.map → avatarGroup.component-CjBeAxHZ.js.map} +1 -1
- package/dist/chunks/{button.component-Dd9AfGox.js → button.component-BQA_MGYQ.js} +2 -2
- package/dist/chunks/{button.component-Dd9AfGox.js.map → button.component-BQA_MGYQ.js.map} +1 -1
- package/dist/chunks/{button.component-BpF3MzbZ.js → button.component-DahLrK9h.js} +3 -3
- package/dist/chunks/{button.component-BpF3MzbZ.js.map → button.component-DahLrK9h.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-CGxtwaQg.js → buttonGroup.component-BI44nuxH.js} +2 -2
- package/dist/chunks/{buttonGroup.component-CGxtwaQg.js.map → buttonGroup.component-BI44nuxH.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-IGM-yn-V.js → buttonGroup.component-UKmJh2zn.js} +5 -5
- package/dist/chunks/{buttonGroup.component-IGM-yn-V.js.map → buttonGroup.component-UKmJh2zn.js.map} +1 -1
- package/dist/chunks/characterCounter.component-B8efVNy4.js +2 -0
- package/dist/chunks/{characterCounter.component-WOgGxKRq.js.map → characterCounter.component-B8efVNy4.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-CWDjnYNU.js → characterCounter.component-xgc8P1mp.js} +3 -3
- package/dist/chunks/{characterCounter.component-CWDjnYNU.js.map → characterCounter.component-xgc8P1mp.js.map} +1 -1
- package/dist/chunks/{checkbox.component-B6-MOy86.js → checkbox.component-5GtlYTnJ.js} +13 -13
- package/dist/chunks/{checkbox.component-B6-MOy86.js.map → checkbox.component-5GtlYTnJ.js.map} +1 -1
- package/dist/chunks/checkbox.component-DO9NDbmM.js +2 -0
- package/dist/chunks/{checkbox.component-nkydue0g.js.map → checkbox.component-DO9NDbmM.js.map} +1 -1
- package/dist/chunks/{checkbox.records-BtLBaHBy.js → checkbox.records-69wNHjsY.js} +16 -16
- package/dist/chunks/{checkbox.records-BtLBaHBy.js.map → checkbox.records-69wNHjsY.js.map} +1 -1
- package/dist/chunks/{checkbox.records-wbkLltak.js → checkbox.records-D7NUtCRR.js} +2 -2
- package/dist/chunks/{checkbox.records-wbkLltak.js.map → checkbox.records-D7NUtCRR.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-B1HL2vbn.js → checkboxGroup.component-C1sPgVro.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-B1HL2vbn.js.map → checkboxGroup.component-C1sPgVro.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-DCg4fRL0.js → checkboxGroup.component-Dq3jCGDU.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-DCg4fRL0.js.map → checkboxGroup.component-Dq3jCGDU.js.map} +1 -1
- package/dist/chunks/{config-B1FINd7s.js → config-DlTdf-Yt.js} +3 -3
- package/dist/chunks/{config-B1FINd7s.js.map → config-DlTdf-Yt.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-Uv0-JSnX.js → conversationCard.component-LpR5eSru.js} +13 -14
- package/dist/chunks/{conversationCard.component-Uv0-JSnX.js.map → conversationCard.component-LpR5eSru.js.map} +1 -1
- package/dist/chunks/conversationCard.component-qWYvoxVn.js +2 -0
- package/dist/chunks/{conversationCard.component-2jO70XtY.js.map → conversationCard.component-qWYvoxVn.js.map} +1 -1
- package/dist/chunks/datePicker.component-CLR0tErm.js +15 -0
- package/dist/chunks/{datePicker.component-CM8TIMiW.js.map → datePicker.component-CLR0tErm.js.map} +1 -1
- package/dist/chunks/{datePicker.component-DeOquWMk.js → datePicker.component-DVR8Ech4.js} +85 -87
- package/dist/chunks/{datePicker.component-DeOquWMk.js.map → datePicker.component-DVR8Ech4.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-D2uDgMJr.js → dialog-trigger-C6rpz6Do.js} +5 -5
- package/dist/chunks/{dialog-trigger-D2uDgMJr.js.map → dialog-trigger-C6rpz6Do.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-BCeZGpGO.js → dialog-trigger-JNnMRY13.js} +2 -2
- package/dist/chunks/{dialog-trigger-BCeZGpGO.js.map → dialog-trigger-JNnMRY13.js.map} +1 -1
- package/dist/chunks/{group-DPCVolOl.js → group-DKypflCt.js} +2 -2
- package/dist/chunks/{group-DPCVolOl.js.map → group-DKypflCt.js.map} +1 -1
- package/dist/chunks/group-Dv1hO5IW.js +2 -0
- package/dist/chunks/{group-Cv7AQw1b.js.map → group-Dv1hO5IW.js.map} +1 -1
- package/dist/chunks/heading.component-DkT5GYvU.js +2 -0
- package/dist/chunks/heading.component-DkT5GYvU.js.map +1 -0
- package/dist/chunks/heading.component-d5jKnwm5.js +976 -0
- package/dist/chunks/heading.component-d5jKnwm5.js.map +1 -0
- package/dist/chunks/icon-button-BTDZq0Tr.js +121 -0
- package/dist/chunks/icon-button-BTDZq0Tr.js.map +1 -0
- package/dist/chunks/icon-button-khcu437F.js +2 -0
- package/dist/chunks/icon-button-khcu437F.js.map +1 -0
- package/dist/chunks/{typography-Cqrokog3.js → icon.component-D84o075X.js} +43 -6
- package/dist/chunks/icon.component-D84o075X.js.map +1 -0
- package/dist/chunks/icon.component-DjiNNeqF.js +2 -0
- package/dist/chunks/icon.component-DjiNNeqF.js.map +1 -0
- package/dist/chunks/{index-CZPHIn6T.js → index-B9cDqm2a.js} +3 -3
- package/dist/chunks/{index-CZPHIn6T.js.map → index-B9cDqm2a.js.map} +1 -1
- package/dist/chunks/{index-BmcSWiFh.js → index-BDCLWoQU.js} +2 -2
- package/dist/chunks/{index-BmcSWiFh.js.map → index-BDCLWoQU.js.map} +1 -1
- package/dist/chunks/{index-WyVSig7F.js → index-BIjZoyJk.js} +4 -4
- package/dist/chunks/{index-WyVSig7F.js.map → index-BIjZoyJk.js.map} +1 -1
- package/dist/chunks/{index-D5Dscg8T.js → index-BL1VW2oK.js} +11 -11
- package/dist/chunks/{index-D5Dscg8T.js.map → index-BL1VW2oK.js.map} +1 -1
- package/dist/chunks/{index-CEYJbpt4.js → index-BiyIeWSg.js} +2 -2
- package/dist/chunks/{index-CEYJbpt4.js.map → index-BiyIeWSg.js.map} +1 -1
- package/dist/chunks/{index-Dx94WMw1.js → index-Bn03tQNC.js} +31 -31
- package/dist/chunks/{index-Dx94WMw1.js.map → index-Bn03tQNC.js.map} +1 -1
- package/dist/chunks/{index-hGlTuPbK.js → index-BpKhRg2I.js} +2 -2
- package/dist/chunks/{index-hGlTuPbK.js.map → index-BpKhRg2I.js.map} +1 -1
- package/dist/chunks/{index-C323eOJV.js → index-Cb49D-ky.js} +122 -122
- package/dist/chunks/{index-C323eOJV.js.map → index-Cb49D-ky.js.map} +1 -1
- package/dist/chunks/{index-DMSZTX7A.js → index-Ciu8P7c-.js} +11 -11
- package/dist/chunks/{index-DMSZTX7A.js.map → index-Ciu8P7c-.js.map} +1 -1
- package/dist/chunks/{index-5cRW642o.js → index-CmVbgcH8.js} +2 -2
- package/dist/chunks/{index-5cRW642o.js.map → index-CmVbgcH8.js.map} +1 -1
- package/dist/chunks/{index-Cuu1x05z.js → index-CxHMu1In.js} +14 -15
- package/dist/chunks/{index-Cuu1x05z.js.map → index-CxHMu1In.js.map} +1 -1
- package/dist/chunks/index-CzzrUbmu.js +2 -0
- package/dist/chunks/{index-CFnNmQf0.js.map → index-CzzrUbmu.js.map} +1 -1
- package/dist/chunks/{index-CedYIQt5.js → index-DFbSzgk8.js} +2 -2
- package/dist/chunks/{index-CedYIQt5.js.map → index-DFbSzgk8.js.map} +1 -1
- package/dist/chunks/{index-Cqwkg1hU.js → index-DRABh-Lp.js} +3 -3
- package/dist/chunks/{index-Cqwkg1hU.js.map → index-DRABh-Lp.js.map} +1 -1
- package/dist/chunks/{index-BfD9Ne2e.js → index-DeprNCOL.js} +2 -2
- package/dist/chunks/{index-BfD9Ne2e.js.map → index-DeprNCOL.js.map} +1 -1
- package/dist/chunks/{index-Dq91nN6-.js → index-YfA5zlSf.js} +5 -5
- package/dist/chunks/{index-Dq91nN6-.js.map → index-YfA5zlSf.js.map} +1 -1
- package/dist/chunks/{link.component-CCFg-LIe.js → link.component-BQJI6gPi.js} +2 -2
- package/dist/chunks/{link.component-CCFg-LIe.js.map → link.component-BQJI6gPi.js.map} +1 -1
- package/dist/chunks/{link.component-DprieyUG.js → link.component-Cs05IsXP.js} +2 -2
- package/dist/chunks/{link.component-DprieyUG.js.map → link.component-Cs05IsXP.js.map} +1 -1
- package/dist/chunks/{logo.types-CXQsathd.js → logo.types-By8TqyNf.js} +2 -2
- package/dist/chunks/{logo.types-CXQsathd.js.map → logo.types-By8TqyNf.js.map} +1 -1
- package/dist/chunks/menu.component-BgAx3SsR.js +2 -0
- package/dist/chunks/{menu.component-DllVICUa.js.map → menu.component-BgAx3SsR.js.map} +1 -1
- package/dist/chunks/{menu.component-BKY1dybr.js → menu.component-CAr2xdZY.js} +10 -10
- package/dist/chunks/{menu.component-BKY1dybr.js.map → menu.component-CAr2xdZY.js.map} +1 -1
- package/dist/chunks/{modal.types-CRH5aJ0U.js → modal.types-B7PDc2GJ.js} +5 -5
- package/dist/chunks/{modal.types-CRH5aJ0U.js.map → modal.types-B7PDc2GJ.js.map} +1 -1
- package/dist/chunks/{modal.types-Bsq-uLZ0.js → modal.types-CtHJAyfq.js} +2 -2
- package/dist/chunks/{modal.types-Bsq-uLZ0.js.map → modal.types-CtHJAyfq.js.map} +1 -1
- package/dist/chunks/{notificationCounter.component-DMr4Mlm9.js → notificationCounter.component-Bei8mHSZ.js} +2 -2
- package/dist/chunks/{notificationCounter.component-DMr4Mlm9.js.map → notificationCounter.component-Bei8mHSZ.js.map} +1 -1
- package/dist/chunks/{pinInput.types-B-BknmcG.js → pinInput.types-TfkrphC7.js} +15 -15
- package/dist/chunks/{pinInput.types-B-BknmcG.js.map → pinInput.types-TfkrphC7.js.map} +1 -1
- package/dist/chunks/{pinInput.types-tJTQQJxe.js → pinInput.types-a0_2OLBO.js} +2 -2
- package/dist/chunks/{pinInput.types-tJTQQJxe.js.map → pinInput.types-a0_2OLBO.js.map} +1 -1
- package/dist/chunks/portal-CtkZ5xTm.js +3087 -0
- package/dist/chunks/portal-CtkZ5xTm.js.map +1 -0
- package/dist/chunks/portal-kmAjRmaV.js +22 -0
- package/dist/chunks/portal-kmAjRmaV.js.map +1 -0
- package/dist/chunks/{radio.records-CzNYznSb.js → radio.records-DBS_lqNe.js} +15 -15
- package/dist/chunks/{radio.records-CzNYznSb.js.map → radio.records-DBS_lqNe.js.map} +1 -1
- package/dist/chunks/{radio.records-CEgwvLIL.js → radio.records-zKzNxtns.js} +2 -2
- package/dist/chunks/{radio.records-CEgwvLIL.js.map → radio.records-zKzNxtns.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-DEPDXEhQ.js → radioGroup.component-DBLLIgCZ.js} +13 -13
- package/dist/chunks/{radioGroup.component-DEPDXEhQ.js.map → radioGroup.component-DBLLIgCZ.js.map} +1 -1
- package/dist/chunks/radioGroup.component-fpo_KMOY.js +2 -0
- package/dist/chunks/{radioGroup.component-DAGmgDZ2.js.map → radioGroup.component-fpo_KMOY.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-C32gNAmO.js → ratingDots.component-DG2nCpxT.js} +6 -6
- package/dist/chunks/{ratingDots.component-C32gNAmO.js.map → ratingDots.component-DG2nCpxT.js.map} +1 -1
- package/dist/chunks/ratingDots.component-DJEDUD_9.js +2 -0
- package/dist/chunks/{ratingDots.component-BB7vPYdN.js.map → ratingDots.component-DJEDUD_9.js.map} +1 -1
- package/dist/chunks/{render-strategy-CdSSbgPU.js → render-strategy-C80bGq2n.js} +2 -2
- package/dist/chunks/{render-strategy-CdSSbgPU.js.map → render-strategy-C80bGq2n.js.map} +1 -1
- package/dist/chunks/{render-strategy-ql9Qx5Cz.js → render-strategy-DN75XQJB.js} +2 -2
- package/dist/chunks/{render-strategy-ql9Qx5Cz.js.map → render-strategy-DN75XQJB.js.map} +1 -1
- package/dist/chunks/select.component-Bmop2_tX.js +2 -0
- package/dist/chunks/{select.component-BtBJUTF2.js.map → select.component-Bmop2_tX.js.map} +1 -1
- package/dist/chunks/{select.component-DfkLDyYt.js → select.component-DyXwbDeO.js} +11 -11
- package/dist/chunks/{select.component-DfkLDyYt.js.map → select.component-DyXwbDeO.js.map} +1 -1
- package/dist/chunks/{sortableList.component-B88NRcwx.js → sortableList.component-CbZAQrKl.js} +4 -4
- package/dist/chunks/{sortableList.component-B88NRcwx.js.map → sortableList.component-CbZAQrKl.js.map} +1 -1
- package/dist/chunks/{sortableList.component-B0lnVMXW.js → sortableList.component-b2t_K7ho.js} +3 -3
- package/dist/chunks/{sortableList.component-B0lnVMXW.js.map → sortableList.component-b2t_K7ho.js.map} +1 -1
- package/dist/chunks/{spinner.component-DWh3YuBJ.js → spinner.component-B1vU-FCd.js} +5 -5
- package/dist/chunks/{spinner.component-DWh3YuBJ.js.map → spinner.component-B1vU-FCd.js.map} +1 -1
- package/dist/chunks/spinner.component-CjQb7JjK.js +2 -0
- package/dist/chunks/{spinner.component-DVjwuOVs.js.map → spinner.component-CjQb7JjK.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-ClVT0QDd.js → styledAvatar.types-D8VWyELN.js} +2 -2
- package/dist/chunks/{styledAvatar.types-ClVT0QDd.js.map → styledAvatar.types-D8VWyELN.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-DamSY23W.js → styledAvatar.types-DstfmllC.js} +2 -2
- package/dist/chunks/{styledAvatar.types-DamSY23W.js.map → styledAvatar.types-DstfmllC.js.map} +1 -1
- package/dist/chunks/{swatch.types-B8OSJZ-a.js → swatch.types-DbgA3RWc.js} +2 -2
- package/dist/chunks/{swatch.types-B8OSJZ-a.js.map → swatch.types-DbgA3RWc.js.map} +1 -1
- package/dist/chunks/switch.component-ARZzuYrq.js +2 -0
- package/dist/chunks/{switch.component-DjbXfvMa.js.map → switch.component-ARZzuYrq.js.map} +1 -1
- package/dist/chunks/{switch.component-BEkYEUKY.js → switch.component-DO9fxk_-.js} +17 -17
- package/dist/chunks/{switch.component-BEkYEUKY.js.map → switch.component-DO9fxk_-.js.map} +1 -1
- package/dist/chunks/{tabs.component-Bmg0kB-p.js → tabs.component-BWTDtLWN.js} +36 -36
- package/dist/chunks/{tabs.component-Bmg0kB-p.js.map → tabs.component-BWTDtLWN.js.map} +1 -1
- package/dist/chunks/{tabs.component-Bn_7bf0X.js → tabs.component-DRpNF8p-.js} +2 -2
- package/dist/chunks/{tabs.component-Bn_7bf0X.js.map → tabs.component-DRpNF8p-.js.map} +1 -1
- package/dist/chunks/tagBlock.component-Bahf1v33.js +2 -0
- package/dist/chunks/{tagBlock.component-x3oh7uht.js.map → tagBlock.component-Bahf1v33.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-3ypfB6tz.js → tagBlock.component-C3BrjwNJ.js} +16 -17
- package/dist/chunks/{tagBlock.component-3ypfB6tz.js.map → tagBlock.component-C3BrjwNJ.js.map} +1 -1
- package/dist/chunks/{textInput.component-B1--78Mp.js → textInput.component-DDo9eUvp.js} +2 -2
- package/dist/chunks/{textInput.component-B1--78Mp.js.map → textInput.component-DDo9eUvp.js.map} +1 -1
- package/dist/chunks/{textInput.component-D9Dl8cP3.js → textInput.component-LPGbDHwZ.js} +8 -8
- package/dist/chunks/{textInput.component-D9Dl8cP3.js.map → textInput.component-LPGbDHwZ.js.map} +1 -1
- package/dist/chunks/{textarea.component-BxC5lB4t.js → textarea.component-5Ou5g_MJ.js} +2 -2
- package/dist/chunks/{textarea.component-BxC5lB4t.js.map → textarea.component-5Ou5g_MJ.js.map} +1 -1
- package/dist/chunks/{textarea.component-DZXDIbZg.js → textarea.component-ClYqhTJX.js} +13 -13
- package/dist/chunks/{textarea.component-DZXDIbZg.js.map → textarea.component-ClYqhTJX.js.map} +1 -1
- package/dist/chunks/theme.provider-DWJTtjw5.js +26 -0
- package/dist/chunks/{theme.provider-CpxxMiXd.js.map → theme.provider-DWJTtjw5.js.map} +1 -1
- package/dist/chunks/{theme.provider-DmGvaymX.js → theme.provider-vZgSb-q5.js} +268 -271
- package/dist/chunks/{theme.provider-DmGvaymX.js.map → theme.provider-vZgSb-q5.js.map} +1 -1
- package/dist/chunks/{timePicker.component-DnFPWIcy.js → timePicker.component-AgnrqtFu.js} +5 -5
- package/dist/chunks/{timePicker.component-DnFPWIcy.js.map → timePicker.component-AgnrqtFu.js.map} +1 -1
- package/dist/chunks/{timePicker.component-F9o8MNWu.js → timePicker.component-Bx0fHgrN.js} +2 -2
- package/dist/chunks/{timePicker.component-F9o8MNWu.js.map → timePicker.component-Bx0fHgrN.js.map} +1 -1
- package/dist/chunks/{timeRange.component-Bj-9ynHS.js → timeRange.component-B3Nv-nLB.js} +2 -2
- package/dist/chunks/{timeRange.component-Bj-9ynHS.js.map → timeRange.component-B3Nv-nLB.js.map} +1 -1
- package/dist/chunks/{timeRange.component-Bh2FiRi8.js → timeRange.component-C14RiUcS.js} +2 -2
- package/dist/chunks/{timeRange.component-Bh2FiRi8.js.map → timeRange.component-C14RiUcS.js.map} +1 -1
- package/dist/chunks/timestamp.component-DEx0cUkA.js +2 -0
- package/dist/chunks/{timestamp.component-CfjeVkJs.js.map → timestamp.component-DEx0cUkA.js.map} +1 -1
- package/dist/chunks/{timestamp.component-BKr4dkxB.js → timestamp.component-Kxi_bKp1.js} +2 -2
- package/dist/chunks/{timestamp.component-BKr4dkxB.js.map → timestamp.component-Kxi_bKp1.js.map} +1 -1
- package/dist/chunks/{toaster.records-Cf8bpHo8.js → toaster.records-CKeu_PyD.js} +2 -2
- package/dist/chunks/{toaster.records-Cf8bpHo8.js.map → toaster.records-CKeu_PyD.js.map} +1 -1
- package/dist/chunks/{typography.records-Xg59taw9.js → typography.records-XkUlmiSk.js} +2 -2
- package/dist/chunks/{typography.records-Xg59taw9.js.map → typography.records-XkUlmiSk.js.map} +1 -1
- package/dist/chunks/{use-field-context-C4IwmN39.js → use-field-context-1gfMkjvo.js} +2 -2
- package/dist/chunks/{use-field-context-C4IwmN39.js.map → use-field-context-1gfMkjvo.js.map} +1 -1
- package/dist/chunks/{use-field-context-xBX4EpFz.js → use-field-context-DnTe9gdc.js} +2 -2
- package/dist/chunks/{use-field-context-xBX4EpFz.js.map → use-field-context-DnTe9gdc.js.map} +1 -1
- package/dist/chunks/{withFormControl-KA9fAHrR.js → withFormControl-DfqMqkSU.js} +42 -42
- package/dist/chunks/{withFormControl-KA9fAHrR.js.map → withFormControl-DfqMqkSU.js.map} +1 -1
- package/dist/chunks/withFormControl-kyGjRFza.js +2 -0
- package/dist/chunks/{withFormControl-BHjeRAfg.js.map → withFormControl-kyGjRFza.js.map} +1 -1
- package/dist/chunks/{wrap-CYgSj8wY.js → wrap-B8tBNeBY.js} +2 -2
- package/dist/chunks/{wrap-CYgSj8wY.js.map → wrap-B8tBNeBY.js.map} +1 -1
- package/dist/cjs/chakra/index.cjs +1 -1
- package/dist/cjs/chakra/index.cjs.map +1 -1
- package/dist/cjs/components/Alert/index.cjs +1 -1
- package/dist/cjs/components/Avatar/index.cjs +1 -1
- package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
- package/dist/cjs/components/Button/index.cjs +1 -1
- package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
- package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
- package/dist/cjs/components/Checkbox/index.cjs +1 -1
- package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
- package/dist/cjs/components/ConversationCard/index.cjs +1 -1
- package/dist/cjs/components/DatePicker/index.cjs +1 -1
- package/dist/cjs/components/Heading/index.cjs +1 -1
- package/dist/cjs/components/Icon/index.cjs +1 -1
- package/dist/cjs/components/Link/index.cjs +1 -1
- package/dist/cjs/components/Menu/index.cjs +1 -1
- package/dist/cjs/components/Modal/index.cjs +1 -1
- package/dist/cjs/components/PinInput/index.cjs +1 -1
- package/dist/cjs/components/Popover/index.cjs +1 -1
- package/dist/cjs/components/RadioGroup/index.cjs +1 -1
- package/dist/cjs/components/RatingDots/index.cjs +1 -1
- package/dist/cjs/components/Select/index.cjs +1 -1
- package/dist/cjs/components/SortableList/index.cjs +1 -1
- package/dist/cjs/components/Spinner/index.cjs +1 -1
- package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
- package/dist/cjs/components/Switch/index.cjs +1 -1
- package/dist/cjs/components/Tabs/index.cjs +1 -1
- package/dist/cjs/components/TagBlock/index.cjs +1 -1
- package/dist/cjs/components/Text/index.cjs +1 -1
- package/dist/cjs/components/TextInput/index.cjs +1 -1
- package/dist/cjs/components/Textarea/index.cjs +1 -1
- package/dist/cjs/components/TimePicker/index.cjs +1 -1
- package/dist/cjs/components/TimeRange/index.cjs +1 -1
- package/dist/cjs/components/Timestamp/index.cjs +1 -1
- package/dist/cjs/components/Tooltip/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +1 -1
- package/dist/esm/chakra/index.js +196 -197
- package/dist/esm/chakra/index.js.map +1 -1
- package/dist/esm/components/Alert/index.js +1 -1
- package/dist/esm/components/Avatar/index.js +1 -1
- package/dist/esm/components/AvatarGroup/index.js +1 -1
- package/dist/esm/components/Button/index.js +1 -1
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/CharacterCounter/index.js +1 -1
- package/dist/esm/components/Checkbox/index.js +1 -1
- package/dist/esm/components/CheckboxGroup/index.js +1 -1
- package/dist/esm/components/ConversationCard/index.js +1 -1
- package/dist/esm/components/DatePicker/index.js +1 -1
- package/dist/esm/components/Heading/index.js +1 -1
- package/dist/esm/components/Icon/index.js +1 -1
- package/dist/esm/components/Link/index.js +1 -1
- package/dist/esm/components/Logo/index.js +1 -1
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/NotificationCounter/index.js +1 -1
- package/dist/esm/components/PinInput/index.js +1 -1
- package/dist/esm/components/Popover/index.js +1 -1
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/RatingDots/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/SortableList/index.js +1 -1
- package/dist/esm/components/Spinner/index.js +1 -1
- package/dist/esm/components/StyledAvatar/index.js +1 -1
- package/dist/esm/components/Swatch/index.js +1 -1
- package/dist/esm/components/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/Text/index.js +2 -2
- package/dist/esm/components/TextInput/index.js +1 -1
- package/dist/esm/components/Textarea/index.js +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/Timestamp/index.js +1 -1
- package/dist/esm/components/Toast/index.js +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +89 -91
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/index.js +111 -113
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/index.js +1 -1
- package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
- package/dist/types/components/Tooltip/tooltip.component.d.ts +1 -1
- package/dist/types/theme/tokens/shadows/shadows.config.d.ts +6 -6
- package/dist/types/theme/tokens/sizes/sizes.config.d.ts +2 -2
- package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +6 -6
- package/package.json +1 -1
- package/dist/chunks/alert.types-DbqCOYr5.js +0 -2
- package/dist/chunks/attr-BMs6szZx.js +0 -2
- package/dist/chunks/attr-BMs6szZx.js.map +0 -1
- package/dist/chunks/attr-sm10PXOd.js +0 -5
- package/dist/chunks/attr-sm10PXOd.js.map +0 -1
- package/dist/chunks/avatar.component-TAfT1LM1.js +0 -2
- package/dist/chunks/characterCounter.component-WOgGxKRq.js +0 -2
- package/dist/chunks/checkbox.component-nkydue0g.js +0 -2
- package/dist/chunks/conversationCard.component-2jO70XtY.js +0 -2
- package/dist/chunks/datePicker.component-CM8TIMiW.js +0 -15
- package/dist/chunks/group-Cv7AQw1b.js +0 -2
- package/dist/chunks/heading.component-Bu1JbEVn.js +0 -12
- package/dist/chunks/heading.component-Bu1JbEVn.js.map +0 -1
- package/dist/chunks/heading.component-wD7BkQLG.js +0 -2
- package/dist/chunks/heading.component-wD7BkQLG.js.map +0 -1
- package/dist/chunks/icon-button-DTZOklQ9.js +0 -119
- package/dist/chunks/icon-button-DTZOklQ9.js.map +0 -1
- package/dist/chunks/icon-button-DtjZ-SdQ.js +0 -2
- package/dist/chunks/icon-button-DtjZ-SdQ.js.map +0 -1
- package/dist/chunks/icon.component-C0e0UGBw.js +0 -2
- package/dist/chunks/icon.component-C0e0UGBw.js.map +0 -1
- package/dist/chunks/icon.component-DGNCL1Yc.js +0 -42
- package/dist/chunks/icon.component-DGNCL1Yc.js.map +0 -1
- package/dist/chunks/index-B4fjIWcA.js +0 -2
- package/dist/chunks/index-B4fjIWcA.js.map +0 -1
- package/dist/chunks/index-CBh9RZVL.js +0 -375
- package/dist/chunks/index-CBh9RZVL.js.map +0 -1
- package/dist/chunks/index-CFnNmQf0.js +0 -2
- package/dist/chunks/index-DZGYG5M4.js +0 -2
- package/dist/chunks/index-DZGYG5M4.js.map +0 -1
- package/dist/chunks/index-f4Ba8Pq7.js +0 -389
- package/dist/chunks/index-f4Ba8Pq7.js.map +0 -1
- package/dist/chunks/menu.component-DllVICUa.js +0 -2
- package/dist/chunks/popover-D0QoPsrG.js +0 -110
- package/dist/chunks/popover-D0QoPsrG.js.map +0 -1
- package/dist/chunks/popover-DPEovmxh.js +0 -2
- package/dist/chunks/popover-DPEovmxh.js.map +0 -1
- package/dist/chunks/popover-root-provider-BYJE5I-P.js +0 -2
- package/dist/chunks/popover-root-provider-BYJE5I-P.js.map +0 -1
- package/dist/chunks/popover-root-provider-Dt02njg5.js +0 -43
- package/dist/chunks/popover-root-provider-Dt02njg5.js.map +0 -1
- package/dist/chunks/popover.component-CLMQkEDo.js +0 -2
- package/dist/chunks/popover.component-CLMQkEDo.js.map +0 -1
- package/dist/chunks/popover.component-MbM0Ajnr.js +0 -264
- package/dist/chunks/popover.component-MbM0Ajnr.js.map +0 -1
- package/dist/chunks/popover.recipe-BLsWPsAa.js +0 -124
- package/dist/chunks/popover.recipe-BLsWPsAa.js.map +0 -1
- package/dist/chunks/popover.recipe-av5Jdn1r.js +0 -2
- package/dist/chunks/popover.recipe-av5Jdn1r.js.map +0 -1
- package/dist/chunks/portal-D2KZrSzZ.js +0 -2301
- package/dist/chunks/portal-D2KZrSzZ.js.map +0 -1
- package/dist/chunks/portal-TWtD47zg.js +0 -22
- package/dist/chunks/portal-TWtD47zg.js.map +0 -1
- package/dist/chunks/radioGroup.component-DAGmgDZ2.js +0 -2
- package/dist/chunks/ratingDots.component-BB7vPYdN.js +0 -2
- package/dist/chunks/select.component-BtBJUTF2.js +0 -2
- package/dist/chunks/spinner-BWqSIW6m.js +0 -8
- package/dist/chunks/spinner-BWqSIW6m.js.map +0 -1
- package/dist/chunks/spinner-BnpL14kK.js +0 -2
- package/dist/chunks/spinner-BnpL14kK.js.map +0 -1
- package/dist/chunks/spinner.component-DVjwuOVs.js +0 -2
- package/dist/chunks/switch.component-DjbXfvMa.js +0 -2
- package/dist/chunks/tagBlock.component-x3oh7uht.js +0 -2
- package/dist/chunks/theme.provider-CpxxMiXd.js +0 -26
- package/dist/chunks/timestamp.component-CfjeVkJs.js +0 -2
- package/dist/chunks/typography-Cqrokog3.js.map +0 -1
- package/dist/chunks/typography-CtiaGoJG.js +0 -2
- package/dist/chunks/typography-CtiaGoJG.js.map +0 -1
- package/dist/chunks/withFormControl-BHjeRAfg.js +0 -2
- package/dist/chunks/withTruncation-CQUQzrTa.js +0 -561
- package/dist/chunks/withTruncation-CQUQzrTa.js.map +0 -1
- package/dist/chunks/withTruncation-DguVvIAI.js +0 -2
- package/dist/chunks/withTruncation-DguVvIAI.js.map +0 -1
|
@@ -0,0 +1,3087 @@
|
|
|
1
|
+
import { j as U } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import St, { useMemo as on, useRef as M, useLayoutEffect as sn, useEffect as be, useState as Ue, memo as an, forwardRef as Ze, createElement as cn, Children as Ct, isValidElement as ln, cloneElement as un, createContext as fn, useContext as dn, useCallback as pn, useId as gn, useSyncExternalStore as hn } from "react";
|
|
3
|
+
import { aV as mn, a5 as At, S as yn, aW as de, aX as $e, aY as vn, aZ as ye, aw as ct, a_ as bn, I as wn, a0 as Oe, c as Rt, ah as je, ac as xn, r as te, g as Dt, B as ve, a$ as On, j as En, b0 as Nn, a6 as Tn, D as Pn, E as Qe, b1 as Sn, ag as Cn, b2 as re, b3 as pe, V as oe, b4 as An, b5 as Be, b6 as Rn, b7 as Dn, b8 as Fn, b9 as _n, t as kn, b as Mn, f as Ln, C as In, M as lt, ba as $n } from "./index-Cb49D-ky.js";
|
|
4
|
+
var Ne = { exports: {} }, D = {};
|
|
5
|
+
/**
|
|
6
|
+
* @license React
|
|
7
|
+
* react-dom.production.js
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/
|
|
14
|
+
var ut;
|
|
15
|
+
function Bn() {
|
|
16
|
+
if (ut) return D;
|
|
17
|
+
ut = 1;
|
|
18
|
+
var e = St;
|
|
19
|
+
function t(u) {
|
|
20
|
+
var c = "https://react.dev/errors/" + u;
|
|
21
|
+
if (1 < arguments.length) {
|
|
22
|
+
c += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
23
|
+
for (var p = 2; p < arguments.length; p++)
|
|
24
|
+
c += "&args[]=" + encodeURIComponent(arguments[p]);
|
|
25
|
+
}
|
|
26
|
+
return "Minified React error #" + u + "; visit " + c + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
27
|
+
}
|
|
28
|
+
function r() {
|
|
29
|
+
}
|
|
30
|
+
var n = {
|
|
31
|
+
d: {
|
|
32
|
+
f: r,
|
|
33
|
+
r: function() {
|
|
34
|
+
throw Error(t(522));
|
|
35
|
+
},
|
|
36
|
+
D: r,
|
|
37
|
+
C: r,
|
|
38
|
+
L: r,
|
|
39
|
+
m: r,
|
|
40
|
+
X: r,
|
|
41
|
+
S: r,
|
|
42
|
+
M: r
|
|
43
|
+
},
|
|
44
|
+
p: 0,
|
|
45
|
+
findDOMNode: null
|
|
46
|
+
}, o = Symbol.for("react.portal");
|
|
47
|
+
function a(u, c, p) {
|
|
48
|
+
var l = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
49
|
+
return {
|
|
50
|
+
$$typeof: o,
|
|
51
|
+
key: l == null ? null : "" + l,
|
|
52
|
+
children: u,
|
|
53
|
+
containerInfo: c,
|
|
54
|
+
implementation: p
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
var s = e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
58
|
+
function f(u, c) {
|
|
59
|
+
if (u === "font") return "";
|
|
60
|
+
if (typeof c == "string")
|
|
61
|
+
return c === "use-credentials" ? c : "";
|
|
62
|
+
}
|
|
63
|
+
return D.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, D.createPortal = function(u, c) {
|
|
64
|
+
var p = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
65
|
+
if (!c || c.nodeType !== 1 && c.nodeType !== 9 && c.nodeType !== 11)
|
|
66
|
+
throw Error(t(299));
|
|
67
|
+
return a(u, c, null, p);
|
|
68
|
+
}, D.flushSync = function(u) {
|
|
69
|
+
var c = s.T, p = n.p;
|
|
70
|
+
try {
|
|
71
|
+
if (s.T = null, n.p = 2, u) return u();
|
|
72
|
+
} finally {
|
|
73
|
+
s.T = c, n.p = p, n.d.f();
|
|
74
|
+
}
|
|
75
|
+
}, D.preconnect = function(u, c) {
|
|
76
|
+
typeof u == "string" && (c ? (c = c.crossOrigin, c = typeof c == "string" ? c === "use-credentials" ? c : "" : void 0) : c = null, n.d.C(u, c));
|
|
77
|
+
}, D.prefetchDNS = function(u) {
|
|
78
|
+
typeof u == "string" && n.d.D(u);
|
|
79
|
+
}, D.preinit = function(u, c) {
|
|
80
|
+
if (typeof u == "string" && c && typeof c.as == "string") {
|
|
81
|
+
var p = c.as, l = f(p, c.crossOrigin), i = typeof c.integrity == "string" ? c.integrity : void 0, d = typeof c.fetchPriority == "string" ? c.fetchPriority : void 0;
|
|
82
|
+
p === "style" ? n.d.S(
|
|
83
|
+
u,
|
|
84
|
+
typeof c.precedence == "string" ? c.precedence : void 0,
|
|
85
|
+
{
|
|
86
|
+
crossOrigin: l,
|
|
87
|
+
integrity: i,
|
|
88
|
+
fetchPriority: d
|
|
89
|
+
}
|
|
90
|
+
) : p === "script" && n.d.X(u, {
|
|
91
|
+
crossOrigin: l,
|
|
92
|
+
integrity: i,
|
|
93
|
+
fetchPriority: d,
|
|
94
|
+
nonce: typeof c.nonce == "string" ? c.nonce : void 0
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}, D.preinitModule = function(u, c) {
|
|
98
|
+
if (typeof u == "string")
|
|
99
|
+
if (typeof c == "object" && c !== null) {
|
|
100
|
+
if (c.as == null || c.as === "script") {
|
|
101
|
+
var p = f(
|
|
102
|
+
c.as,
|
|
103
|
+
c.crossOrigin
|
|
104
|
+
);
|
|
105
|
+
n.d.M(u, {
|
|
106
|
+
crossOrigin: p,
|
|
107
|
+
integrity: typeof c.integrity == "string" ? c.integrity : void 0,
|
|
108
|
+
nonce: typeof c.nonce == "string" ? c.nonce : void 0
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
} else c == null && n.d.M(u);
|
|
112
|
+
}, D.preload = function(u, c) {
|
|
113
|
+
if (typeof u == "string" && typeof c == "object" && c !== null && typeof c.as == "string") {
|
|
114
|
+
var p = c.as, l = f(p, c.crossOrigin);
|
|
115
|
+
n.d.L(u, p, {
|
|
116
|
+
crossOrigin: l,
|
|
117
|
+
integrity: typeof c.integrity == "string" ? c.integrity : void 0,
|
|
118
|
+
nonce: typeof c.nonce == "string" ? c.nonce : void 0,
|
|
119
|
+
type: typeof c.type == "string" ? c.type : void 0,
|
|
120
|
+
fetchPriority: typeof c.fetchPriority == "string" ? c.fetchPriority : void 0,
|
|
121
|
+
referrerPolicy: typeof c.referrerPolicy == "string" ? c.referrerPolicy : void 0,
|
|
122
|
+
imageSrcSet: typeof c.imageSrcSet == "string" ? c.imageSrcSet : void 0,
|
|
123
|
+
imageSizes: typeof c.imageSizes == "string" ? c.imageSizes : void 0,
|
|
124
|
+
media: typeof c.media == "string" ? c.media : void 0
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}, D.preloadModule = function(u, c) {
|
|
128
|
+
if (typeof u == "string")
|
|
129
|
+
if (c) {
|
|
130
|
+
var p = f(c.as, c.crossOrigin);
|
|
131
|
+
n.d.m(u, {
|
|
132
|
+
as: typeof c.as == "string" && c.as !== "script" ? c.as : void 0,
|
|
133
|
+
crossOrigin: p,
|
|
134
|
+
integrity: typeof c.integrity == "string" ? c.integrity : void 0
|
|
135
|
+
});
|
|
136
|
+
} else n.d.m(u);
|
|
137
|
+
}, D.requestFormReset = function(u) {
|
|
138
|
+
n.d.r(u);
|
|
139
|
+
}, D.unstable_batchedUpdates = function(u, c) {
|
|
140
|
+
return u(c);
|
|
141
|
+
}, D.useFormState = function(u, c, p) {
|
|
142
|
+
return s.H.useFormState(u, c, p);
|
|
143
|
+
}, D.useFormStatus = function() {
|
|
144
|
+
return s.H.useHostTransitionStatus();
|
|
145
|
+
}, D.version = "19.1.0", D;
|
|
146
|
+
}
|
|
147
|
+
var F = {};
|
|
148
|
+
/**
|
|
149
|
+
* @license React
|
|
150
|
+
* react-dom.development.js
|
|
151
|
+
*
|
|
152
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the MIT license found in the
|
|
155
|
+
* LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/
|
|
157
|
+
var ft;
|
|
158
|
+
function Vn() {
|
|
159
|
+
return ft || (ft = 1, process.env.NODE_ENV !== "production" && function() {
|
|
160
|
+
function e() {
|
|
161
|
+
}
|
|
162
|
+
function t(l) {
|
|
163
|
+
return "" + l;
|
|
164
|
+
}
|
|
165
|
+
function r(l, i, d) {
|
|
166
|
+
var g = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
167
|
+
try {
|
|
168
|
+
t(g);
|
|
169
|
+
var h = !1;
|
|
170
|
+
} catch {
|
|
171
|
+
h = !0;
|
|
172
|
+
}
|
|
173
|
+
return h && (console.error(
|
|
174
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
175
|
+
typeof Symbol == "function" && Symbol.toStringTag && g[Symbol.toStringTag] || g.constructor.name || "Object"
|
|
176
|
+
), t(g)), {
|
|
177
|
+
$$typeof: c,
|
|
178
|
+
key: g == null ? null : "" + g,
|
|
179
|
+
children: l,
|
|
180
|
+
containerInfo: i,
|
|
181
|
+
implementation: d
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
function n(l, i) {
|
|
185
|
+
if (l === "font") return "";
|
|
186
|
+
if (typeof i == "string")
|
|
187
|
+
return i === "use-credentials" ? i : "";
|
|
188
|
+
}
|
|
189
|
+
function o(l) {
|
|
190
|
+
return l === null ? "`null`" : l === void 0 ? "`undefined`" : l === "" ? "an empty string" : 'something with type "' + typeof l + '"';
|
|
191
|
+
}
|
|
192
|
+
function a(l) {
|
|
193
|
+
return l === null ? "`null`" : l === void 0 ? "`undefined`" : l === "" ? "an empty string" : typeof l == "string" ? JSON.stringify(l) : typeof l == "number" ? "`" + l + "`" : 'something with type "' + typeof l + '"';
|
|
194
|
+
}
|
|
195
|
+
function s() {
|
|
196
|
+
var l = p.H;
|
|
197
|
+
return l === null && console.error(
|
|
198
|
+
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
199
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
200
|
+
2. You might be breaking the Rules of Hooks
|
|
201
|
+
3. You might have more than one copy of React in the same app
|
|
202
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
203
|
+
), l;
|
|
204
|
+
}
|
|
205
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
206
|
+
var f = St, u = {
|
|
207
|
+
d: {
|
|
208
|
+
f: e,
|
|
209
|
+
r: function() {
|
|
210
|
+
throw Error(
|
|
211
|
+
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
|
212
|
+
);
|
|
213
|
+
},
|
|
214
|
+
D: e,
|
|
215
|
+
C: e,
|
|
216
|
+
L: e,
|
|
217
|
+
m: e,
|
|
218
|
+
X: e,
|
|
219
|
+
S: e,
|
|
220
|
+
M: e
|
|
221
|
+
},
|
|
222
|
+
p: 0,
|
|
223
|
+
findDOMNode: null
|
|
224
|
+
}, c = Symbol.for("react.portal"), p = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
225
|
+
typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
|
|
226
|
+
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
227
|
+
), F.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = u, F.createPortal = function(l, i) {
|
|
228
|
+
var d = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
229
|
+
if (!i || i.nodeType !== 1 && i.nodeType !== 9 && i.nodeType !== 11)
|
|
230
|
+
throw Error("Target container is not a DOM element.");
|
|
231
|
+
return r(l, i, null, d);
|
|
232
|
+
}, F.flushSync = function(l) {
|
|
233
|
+
var i = p.T, d = u.p;
|
|
234
|
+
try {
|
|
235
|
+
if (p.T = null, u.p = 2, l)
|
|
236
|
+
return l();
|
|
237
|
+
} finally {
|
|
238
|
+
p.T = i, u.p = d, u.d.f() && console.error(
|
|
239
|
+
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
}, F.preconnect = function(l, i) {
|
|
243
|
+
typeof l == "string" && l ? i != null && typeof i != "object" ? console.error(
|
|
244
|
+
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
245
|
+
a(i)
|
|
246
|
+
) : i != null && typeof i.crossOrigin != "string" && console.error(
|
|
247
|
+
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
248
|
+
o(i.crossOrigin)
|
|
249
|
+
) : console.error(
|
|
250
|
+
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
251
|
+
o(l)
|
|
252
|
+
), typeof l == "string" && (i ? (i = i.crossOrigin, i = typeof i == "string" ? i === "use-credentials" ? i : "" : void 0) : i = null, u.d.C(l, i));
|
|
253
|
+
}, F.prefetchDNS = function(l) {
|
|
254
|
+
if (typeof l != "string" || !l)
|
|
255
|
+
console.error(
|
|
256
|
+
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
257
|
+
o(l)
|
|
258
|
+
);
|
|
259
|
+
else if (1 < arguments.length) {
|
|
260
|
+
var i = arguments[1];
|
|
261
|
+
typeof i == "object" && i.hasOwnProperty("crossOrigin") ? console.error(
|
|
262
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
263
|
+
a(i)
|
|
264
|
+
) : console.error(
|
|
265
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
266
|
+
a(i)
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
typeof l == "string" && u.d.D(l);
|
|
270
|
+
}, F.preinit = function(l, i) {
|
|
271
|
+
if (typeof l == "string" && l ? i == null || typeof i != "object" ? console.error(
|
|
272
|
+
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
273
|
+
a(i)
|
|
274
|
+
) : i.as !== "style" && i.as !== "script" && console.error(
|
|
275
|
+
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
276
|
+
a(i.as)
|
|
277
|
+
) : console.error(
|
|
278
|
+
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
279
|
+
o(l)
|
|
280
|
+
), typeof l == "string" && i && typeof i.as == "string") {
|
|
281
|
+
var d = i.as, g = n(d, i.crossOrigin), h = typeof i.integrity == "string" ? i.integrity : void 0, m = typeof i.fetchPriority == "string" ? i.fetchPriority : void 0;
|
|
282
|
+
d === "style" ? u.d.S(
|
|
283
|
+
l,
|
|
284
|
+
typeof i.precedence == "string" ? i.precedence : void 0,
|
|
285
|
+
{
|
|
286
|
+
crossOrigin: g,
|
|
287
|
+
integrity: h,
|
|
288
|
+
fetchPriority: m
|
|
289
|
+
}
|
|
290
|
+
) : d === "script" && u.d.X(l, {
|
|
291
|
+
crossOrigin: g,
|
|
292
|
+
integrity: h,
|
|
293
|
+
fetchPriority: m,
|
|
294
|
+
nonce: typeof i.nonce == "string" ? i.nonce : void 0
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
}, F.preinitModule = function(l, i) {
|
|
298
|
+
var d = "";
|
|
299
|
+
if (typeof l == "string" && l || (d += " The `href` argument encountered was " + o(l) + "."), i !== void 0 && typeof i != "object" ? d += " The `options` argument encountered was " + o(i) + "." : i && "as" in i && i.as !== "script" && (d += " The `as` option encountered was " + a(i.as) + "."), d)
|
|
300
|
+
console.error(
|
|
301
|
+
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
302
|
+
d
|
|
303
|
+
);
|
|
304
|
+
else
|
|
305
|
+
switch (d = i && typeof i.as == "string" ? i.as : "script", d) {
|
|
306
|
+
case "script":
|
|
307
|
+
break;
|
|
308
|
+
default:
|
|
309
|
+
d = a(d), console.error(
|
|
310
|
+
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
311
|
+
d,
|
|
312
|
+
l
|
|
313
|
+
);
|
|
314
|
+
}
|
|
315
|
+
typeof l == "string" && (typeof i == "object" && i !== null ? (i.as == null || i.as === "script") && (d = n(
|
|
316
|
+
i.as,
|
|
317
|
+
i.crossOrigin
|
|
318
|
+
), u.d.M(l, {
|
|
319
|
+
crossOrigin: d,
|
|
320
|
+
integrity: typeof i.integrity == "string" ? i.integrity : void 0,
|
|
321
|
+
nonce: typeof i.nonce == "string" ? i.nonce : void 0
|
|
322
|
+
})) : i == null && u.d.M(l));
|
|
323
|
+
}, F.preload = function(l, i) {
|
|
324
|
+
var d = "";
|
|
325
|
+
if (typeof l == "string" && l || (d += " The `href` argument encountered was " + o(l) + "."), i == null || typeof i != "object" ? d += " The `options` argument encountered was " + o(i) + "." : typeof i.as == "string" && i.as || (d += " The `as` option encountered was " + o(i.as) + "."), d && console.error(
|
|
326
|
+
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
327
|
+
d
|
|
328
|
+
), typeof l == "string" && typeof i == "object" && i !== null && typeof i.as == "string") {
|
|
329
|
+
d = i.as;
|
|
330
|
+
var g = n(
|
|
331
|
+
d,
|
|
332
|
+
i.crossOrigin
|
|
333
|
+
);
|
|
334
|
+
u.d.L(l, d, {
|
|
335
|
+
crossOrigin: g,
|
|
336
|
+
integrity: typeof i.integrity == "string" ? i.integrity : void 0,
|
|
337
|
+
nonce: typeof i.nonce == "string" ? i.nonce : void 0,
|
|
338
|
+
type: typeof i.type == "string" ? i.type : void 0,
|
|
339
|
+
fetchPriority: typeof i.fetchPriority == "string" ? i.fetchPriority : void 0,
|
|
340
|
+
referrerPolicy: typeof i.referrerPolicy == "string" ? i.referrerPolicy : void 0,
|
|
341
|
+
imageSrcSet: typeof i.imageSrcSet == "string" ? i.imageSrcSet : void 0,
|
|
342
|
+
imageSizes: typeof i.imageSizes == "string" ? i.imageSizes : void 0,
|
|
343
|
+
media: typeof i.media == "string" ? i.media : void 0
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
}, F.preloadModule = function(l, i) {
|
|
347
|
+
var d = "";
|
|
348
|
+
typeof l == "string" && l || (d += " The `href` argument encountered was " + o(l) + "."), i !== void 0 && typeof i != "object" ? d += " The `options` argument encountered was " + o(i) + "." : i && "as" in i && typeof i.as != "string" && (d += " The `as` option encountered was " + o(i.as) + "."), d && console.error(
|
|
349
|
+
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
350
|
+
d
|
|
351
|
+
), typeof l == "string" && (i ? (d = n(
|
|
352
|
+
i.as,
|
|
353
|
+
i.crossOrigin
|
|
354
|
+
), u.d.m(l, {
|
|
355
|
+
as: typeof i.as == "string" && i.as !== "script" ? i.as : void 0,
|
|
356
|
+
crossOrigin: d,
|
|
357
|
+
integrity: typeof i.integrity == "string" ? i.integrity : void 0
|
|
358
|
+
})) : u.d.m(l));
|
|
359
|
+
}, F.requestFormReset = function(l) {
|
|
360
|
+
u.d.r(l);
|
|
361
|
+
}, F.unstable_batchedUpdates = function(l, i) {
|
|
362
|
+
return l(i);
|
|
363
|
+
}, F.useFormState = function(l, i, d) {
|
|
364
|
+
return s().useFormState(l, i, d);
|
|
365
|
+
}, F.useFormStatus = function() {
|
|
366
|
+
return s().useHostTransitionStatus();
|
|
367
|
+
}, F.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
368
|
+
}()), F;
|
|
369
|
+
}
|
|
370
|
+
var dt;
|
|
371
|
+
function Gn() {
|
|
372
|
+
if (dt) return Ne.exports;
|
|
373
|
+
dt = 1;
|
|
374
|
+
function e() {
|
|
375
|
+
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
376
|
+
if (process.env.NODE_ENV !== "production")
|
|
377
|
+
throw new Error("^_^");
|
|
378
|
+
try {
|
|
379
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e);
|
|
380
|
+
} catch (t) {
|
|
381
|
+
console.error(t);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
return process.env.NODE_ENV === "production" ? (e(), Ne.exports = Bn()) : Ne.exports = Vn(), Ne.exports;
|
|
386
|
+
}
|
|
387
|
+
var _e = Gn();
|
|
388
|
+
function Hn(e) {
|
|
389
|
+
return new Proxy({}, {
|
|
390
|
+
get(t, r) {
|
|
391
|
+
return r === "style" ? (n) => e({ style: n }).style : e;
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
var Ft = () => (e) => Array.from(new Set(e)), _t = typeof globalThis.document < "u" ? sn : be;
|
|
396
|
+
function Ae(e) {
|
|
397
|
+
const t = e().value ?? e().defaultValue, r = e().isEqual ?? Object.is, [n] = Ue(t), [o, a] = Ue(n), s = e().value !== void 0, f = M(o);
|
|
398
|
+
f.current = s ? e().value : o;
|
|
399
|
+
const u = M(f.current);
|
|
400
|
+
_t(() => {
|
|
401
|
+
u.current = f.current;
|
|
402
|
+
}, [o, e().value]);
|
|
403
|
+
const c = (l) => {
|
|
404
|
+
const i = u.current, d = ye(l) ? l(i) : l;
|
|
405
|
+
e().debug && console.log(`[bindable > ${e().debug}] setValue`, { next: d, prev: i }), s || a(d), r(d, i) || e().onChange?.(d, i);
|
|
406
|
+
};
|
|
407
|
+
function p() {
|
|
408
|
+
return s ? e().value : o;
|
|
409
|
+
}
|
|
410
|
+
return {
|
|
411
|
+
initial: n,
|
|
412
|
+
ref: f,
|
|
413
|
+
get: p,
|
|
414
|
+
set(l) {
|
|
415
|
+
(e().sync ? _e.flushSync : vn)(() => c(l));
|
|
416
|
+
},
|
|
417
|
+
invoke(l, i) {
|
|
418
|
+
e().onChange?.(l, i);
|
|
419
|
+
},
|
|
420
|
+
hash(l) {
|
|
421
|
+
return e().hash?.(l) ?? String(l);
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
Ae.cleanup = (e) => {
|
|
426
|
+
be(() => e, []);
|
|
427
|
+
};
|
|
428
|
+
Ae.ref = (e) => {
|
|
429
|
+
const t = M(e);
|
|
430
|
+
return {
|
|
431
|
+
get: () => t.current,
|
|
432
|
+
set: (r) => {
|
|
433
|
+
t.current = r;
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
function Wn(e) {
|
|
438
|
+
const t = M(e);
|
|
439
|
+
return {
|
|
440
|
+
get(r) {
|
|
441
|
+
return t.current[r];
|
|
442
|
+
},
|
|
443
|
+
set(r, n) {
|
|
444
|
+
t.current[r] = n;
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
var Un = (e, t) => {
|
|
449
|
+
const r = M(!1), n = M(!1);
|
|
450
|
+
be(() => {
|
|
451
|
+
if (r.current && n.current) return t();
|
|
452
|
+
n.current = !0;
|
|
453
|
+
}, [...(e ?? []).map((o) => typeof o == "function" ? o() : o)]), be(() => (r.current = !0, () => {
|
|
454
|
+
r.current = !1;
|
|
455
|
+
}), []);
|
|
456
|
+
};
|
|
457
|
+
function kt(e, t = {}) {
|
|
458
|
+
const r = on(() => {
|
|
459
|
+
const { id: v, ids: b, getRootNode: T } = t;
|
|
460
|
+
return mn({ id: v, ids: b, getRootNode: T });
|
|
461
|
+
}, [t]), n = (...v) => {
|
|
462
|
+
e.debug && console.log(...v);
|
|
463
|
+
}, o = e.props?.({ props: At(t), scope: r }) ?? t, a = jn(o), s = e.context?.({
|
|
464
|
+
prop: a,
|
|
465
|
+
bindable: Ae,
|
|
466
|
+
scope: r,
|
|
467
|
+
flush: pt,
|
|
468
|
+
getContext() {
|
|
469
|
+
return u;
|
|
470
|
+
},
|
|
471
|
+
getComputed() {
|
|
472
|
+
return E;
|
|
473
|
+
},
|
|
474
|
+
getRefs() {
|
|
475
|
+
return h;
|
|
476
|
+
}
|
|
477
|
+
}), f = Mt(s), u = {
|
|
478
|
+
get(v) {
|
|
479
|
+
return f.current?.[v].ref.current;
|
|
480
|
+
},
|
|
481
|
+
set(v, b) {
|
|
482
|
+
f.current?.[v].set(b);
|
|
483
|
+
},
|
|
484
|
+
initial(v) {
|
|
485
|
+
return f.current?.[v].initial;
|
|
486
|
+
},
|
|
487
|
+
hash(v) {
|
|
488
|
+
const b = f.current?.[v].get();
|
|
489
|
+
return f.current?.[v].hash(b);
|
|
490
|
+
}
|
|
491
|
+
}, c = M(/* @__PURE__ */ new Map()), p = M(null), l = M(null), i = M({ type: "" }), d = () => ({
|
|
492
|
+
...i.current,
|
|
493
|
+
current() {
|
|
494
|
+
return i.current;
|
|
495
|
+
},
|
|
496
|
+
previous() {
|
|
497
|
+
return l.current;
|
|
498
|
+
}
|
|
499
|
+
}), g = () => ({
|
|
500
|
+
...P,
|
|
501
|
+
matches(...v) {
|
|
502
|
+
return v.includes(P.ref.current);
|
|
503
|
+
},
|
|
504
|
+
hasTag(v) {
|
|
505
|
+
return !!e.states[P.ref.current]?.tags?.includes(v);
|
|
506
|
+
}
|
|
507
|
+
}), h = Wn(e.refs?.({ prop: a, context: u }) ?? {}), m = () => ({
|
|
508
|
+
state: g(),
|
|
509
|
+
context: u,
|
|
510
|
+
event: d(),
|
|
511
|
+
prop: a,
|
|
512
|
+
send: k,
|
|
513
|
+
action: y,
|
|
514
|
+
guard: w,
|
|
515
|
+
track: Un,
|
|
516
|
+
refs: h,
|
|
517
|
+
computed: E,
|
|
518
|
+
flush: pt,
|
|
519
|
+
scope: r,
|
|
520
|
+
choose: N
|
|
521
|
+
}), y = (v) => {
|
|
522
|
+
const b = ye(v) ? v(m()) : v;
|
|
523
|
+
if (!b) return;
|
|
524
|
+
const T = b.map((O) => {
|
|
525
|
+
const C = e.implementations?.actions?.[O];
|
|
526
|
+
return C || ct(`[zag-js] No implementation found for action "${JSON.stringify(O)}"`), C;
|
|
527
|
+
});
|
|
528
|
+
for (const O of T)
|
|
529
|
+
O?.(m());
|
|
530
|
+
}, w = (v) => ye(v) ? v(m()) : e.implementations?.guards?.[v](m()), x = (v) => {
|
|
531
|
+
const b = ye(v) ? v(m()) : v;
|
|
532
|
+
if (!b) return;
|
|
533
|
+
const T = b.map((C) => {
|
|
534
|
+
const R = e.implementations?.effects?.[C];
|
|
535
|
+
return R || ct(`[zag-js] No implementation found for effect "${JSON.stringify(C)}"`), R;
|
|
536
|
+
}), O = [];
|
|
537
|
+
for (const C of T) {
|
|
538
|
+
const R = C?.(m());
|
|
539
|
+
R && O.push(R);
|
|
540
|
+
}
|
|
541
|
+
return () => O.forEach((C) => C?.());
|
|
542
|
+
}, N = (v) => bn(v).find((b) => {
|
|
543
|
+
let T = !b.guard;
|
|
544
|
+
return wn(b.guard) ? T = !!w(b.guard) : ye(b.guard) && (T = b.guard(m())), T;
|
|
545
|
+
}), E = (v) => {
|
|
546
|
+
yn(e.computed, () => "[zag-js] No computed object found on machine");
|
|
547
|
+
const b = e.computed[v];
|
|
548
|
+
return b({
|
|
549
|
+
context: u,
|
|
550
|
+
event: d(),
|
|
551
|
+
prop: a,
|
|
552
|
+
refs: h,
|
|
553
|
+
scope: r,
|
|
554
|
+
computed: E
|
|
555
|
+
});
|
|
556
|
+
}, P = Ae(() => ({
|
|
557
|
+
defaultValue: e.initialState({ prop: a }),
|
|
558
|
+
onChange(v, b) {
|
|
559
|
+
b && (c.current.get(b)?.(), c.current.delete(b)), b && y(e.states[b]?.exit), y(p.current?.actions);
|
|
560
|
+
const T = x(e.states[v]?.effects);
|
|
561
|
+
if (T && c.current.set(v, T), b === $e) {
|
|
562
|
+
y(e.entry);
|
|
563
|
+
const O = x(e.effects);
|
|
564
|
+
O && c.current.set($e, O);
|
|
565
|
+
}
|
|
566
|
+
y(e.states[v]?.entry);
|
|
567
|
+
}
|
|
568
|
+
})), A = M(void 0), _ = M(de.NotStarted);
|
|
569
|
+
_t(() => {
|
|
570
|
+
queueMicrotask(() => {
|
|
571
|
+
const T = _.current === de.Started;
|
|
572
|
+
_.current = de.Started, n(T ? "rehydrating..." : "initializing...");
|
|
573
|
+
const O = A.current ?? P.initial;
|
|
574
|
+
P.invoke(O, T ? P.get() : $e);
|
|
575
|
+
});
|
|
576
|
+
const v = c.current, b = P.ref.current;
|
|
577
|
+
return () => {
|
|
578
|
+
n("unmounting..."), A.current = b, _.current = de.Stopped, v.forEach((T) => T?.()), c.current = /* @__PURE__ */ new Map(), p.current = null, queueMicrotask(() => {
|
|
579
|
+
y(e.exit);
|
|
580
|
+
});
|
|
581
|
+
};
|
|
582
|
+
}, []);
|
|
583
|
+
const $ = () => "ref" in P ? P.ref.current : P.get(), k = (v) => {
|
|
584
|
+
queueMicrotask(() => {
|
|
585
|
+
if (_.current !== de.Started) return;
|
|
586
|
+
l.current = i.current, i.current = v, n("send", v);
|
|
587
|
+
let b = $();
|
|
588
|
+
const T = (
|
|
589
|
+
// @ts-ignore
|
|
590
|
+
e.states[b].on?.[v.type] ?? // @ts-ignore
|
|
591
|
+
e.on?.[v.type]
|
|
592
|
+
), O = N(T);
|
|
593
|
+
if (!O) return;
|
|
594
|
+
p.current = O;
|
|
595
|
+
const C = O.target ?? b;
|
|
596
|
+
n("transition", O);
|
|
597
|
+
const R = C !== b;
|
|
598
|
+
R ? _e.flushSync(() => P.set(C)) : O.reenter && !R ? P.invoke(b, b) : y(O.actions ?? []);
|
|
599
|
+
});
|
|
600
|
+
};
|
|
601
|
+
return e.watch?.(m()), {
|
|
602
|
+
state: g(),
|
|
603
|
+
send: k,
|
|
604
|
+
context: u,
|
|
605
|
+
prop: a,
|
|
606
|
+
scope: r,
|
|
607
|
+
refs: h,
|
|
608
|
+
computed: E,
|
|
609
|
+
event: d(),
|
|
610
|
+
getStatus: () => _.current
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
function Mt(e) {
|
|
614
|
+
const t = M(e);
|
|
615
|
+
return t.current = e, t;
|
|
616
|
+
}
|
|
617
|
+
function jn(e) {
|
|
618
|
+
const t = Mt(e);
|
|
619
|
+
return function(n) {
|
|
620
|
+
return t.current[n];
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
function pt(e) {
|
|
624
|
+
queueMicrotask(() => {
|
|
625
|
+
_e.flushSync(() => e());
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
var zn = Hn((e) => e);
|
|
629
|
+
function Lt(...e) {
|
|
630
|
+
return (t) => {
|
|
631
|
+
const r = [];
|
|
632
|
+
for (const n of e)
|
|
633
|
+
if (typeof n == "function") {
|
|
634
|
+
const o = n(t);
|
|
635
|
+
typeof o == "function" && r.push(o);
|
|
636
|
+
} else n && (n.current = t);
|
|
637
|
+
if (r.length)
|
|
638
|
+
return () => {
|
|
639
|
+
for (const n of r)
|
|
640
|
+
n();
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
function Kn(e) {
|
|
645
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
646
|
+
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
647
|
+
}
|
|
648
|
+
const Ve = (e) => {
|
|
649
|
+
const t = an(
|
|
650
|
+
Ze((r, n) => {
|
|
651
|
+
const { asChild: o, children: a, ...s } = r;
|
|
652
|
+
if (!o)
|
|
653
|
+
return cn(e, { ...s, ref: n }, a);
|
|
654
|
+
const f = Ct.only(a);
|
|
655
|
+
if (!ln(f))
|
|
656
|
+
return null;
|
|
657
|
+
const u = Kn(f);
|
|
658
|
+
return un(f, {
|
|
659
|
+
...Oe(s, f.props),
|
|
660
|
+
ref: n ? Lt(n, u) : u
|
|
661
|
+
});
|
|
662
|
+
})
|
|
663
|
+
);
|
|
664
|
+
return t.displayName = e.displayName || e.name, t;
|
|
665
|
+
}, qn = () => {
|
|
666
|
+
const e = /* @__PURE__ */ new Map();
|
|
667
|
+
return new Proxy(Ve, {
|
|
668
|
+
apply(t, r, n) {
|
|
669
|
+
return Ve(n[0]);
|
|
670
|
+
},
|
|
671
|
+
get(t, r) {
|
|
672
|
+
const n = r;
|
|
673
|
+
return e.has(n) || e.set(n, Ve(n)), e.get(n);
|
|
674
|
+
}
|
|
675
|
+
});
|
|
676
|
+
}, It = qn();
|
|
677
|
+
function Yn(e, t) {
|
|
678
|
+
return `${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`;
|
|
679
|
+
}
|
|
680
|
+
function ke(e = {}) {
|
|
681
|
+
const {
|
|
682
|
+
name: t,
|
|
683
|
+
strict: r = !0,
|
|
684
|
+
hookName: n = "useContext",
|
|
685
|
+
providerName: o = "Provider",
|
|
686
|
+
errorMessage: a,
|
|
687
|
+
defaultValue: s
|
|
688
|
+
} = e, f = fn(s);
|
|
689
|
+
f.displayName = t;
|
|
690
|
+
function u() {
|
|
691
|
+
const c = dn(f);
|
|
692
|
+
if (!c && r) {
|
|
693
|
+
const p = new Error(a ?? Yn(n, o));
|
|
694
|
+
throw p.name = "ContextError", Error.captureStackTrace?.(p, u), p;
|
|
695
|
+
}
|
|
696
|
+
return c;
|
|
697
|
+
}
|
|
698
|
+
return [f.Provider, u, f];
|
|
699
|
+
}
|
|
700
|
+
const [$t, et] = ke({
|
|
701
|
+
name: "PopoverContext",
|
|
702
|
+
hookName: "usePopoverContext",
|
|
703
|
+
providerName: "<PopoverProvider />"
|
|
704
|
+
}), Xn = Ze((e, t) => {
|
|
705
|
+
const r = et(), n = Oe(r.getCloseTriggerProps(), e);
|
|
706
|
+
return /* @__PURE__ */ U.jsx(It.button, { ...n, ref: t });
|
|
707
|
+
});
|
|
708
|
+
Xn.displayName = "PopoverCloseTrigger";
|
|
709
|
+
const [Bt, Jn] = ke({
|
|
710
|
+
name: "PresenceContext",
|
|
711
|
+
hookName: "usePresenceContext",
|
|
712
|
+
providerName: "<PresenceProvider />"
|
|
713
|
+
}), Zn = Ze((e, t) => {
|
|
714
|
+
const r = et(), n = Jn(), o = Oe(r.getContentProps(), n.getPresenceProps(), e);
|
|
715
|
+
return n.unmounted ? null : /* @__PURE__ */ U.jsx(It.div, { ...o, ref: Lt(n.ref, t) });
|
|
716
|
+
});
|
|
717
|
+
Zn.displayName = "PopoverContent";
|
|
718
|
+
const Ho = (e) => e.children(et()), Qn = () => (e, t) => t.reduce(
|
|
719
|
+
(r, n) => {
|
|
720
|
+
const [o, a] = r, s = n;
|
|
721
|
+
return a[s] !== void 0 && (o[s] = a[s]), delete a[s], [o, a];
|
|
722
|
+
},
|
|
723
|
+
[{}, { ...e }]
|
|
724
|
+
), Vt = (e) => Qn()(e, [
|
|
725
|
+
"immediate",
|
|
726
|
+
"lazyMount",
|
|
727
|
+
"onExitComplete",
|
|
728
|
+
"present",
|
|
729
|
+
"skipAnimationOnMount",
|
|
730
|
+
"unmountOnExit"
|
|
731
|
+
]);
|
|
732
|
+
function er(e, t) {
|
|
733
|
+
const { state: r, send: n, context: o } = e, a = r.matches("mounted", "unmountSuspended");
|
|
734
|
+
return {
|
|
735
|
+
skip: !o.get("initial"),
|
|
736
|
+
present: a,
|
|
737
|
+
setNode(s) {
|
|
738
|
+
s && n({ type: "NODE.SET", node: s });
|
|
739
|
+
},
|
|
740
|
+
unmount() {
|
|
741
|
+
n({ type: "UNMOUNT" });
|
|
742
|
+
}
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
var tr = Rt({
|
|
746
|
+
props({ props: e }) {
|
|
747
|
+
return { ...e, present: !!e.present };
|
|
748
|
+
},
|
|
749
|
+
initialState({ prop: e }) {
|
|
750
|
+
return e("present") ? "mounted" : "unmounted";
|
|
751
|
+
},
|
|
752
|
+
refs() {
|
|
753
|
+
return {
|
|
754
|
+
node: null,
|
|
755
|
+
styles: null
|
|
756
|
+
};
|
|
757
|
+
},
|
|
758
|
+
context({ bindable: e }) {
|
|
759
|
+
return {
|
|
760
|
+
unmountAnimationName: e(() => ({ defaultValue: null })),
|
|
761
|
+
prevAnimationName: e(() => ({ defaultValue: null })),
|
|
762
|
+
present: e(() => ({ defaultValue: !1 })),
|
|
763
|
+
initial: e(() => ({
|
|
764
|
+
sync: !0,
|
|
765
|
+
defaultValue: !1
|
|
766
|
+
}))
|
|
767
|
+
};
|
|
768
|
+
},
|
|
769
|
+
exit: ["clearInitial", "cleanupNode"],
|
|
770
|
+
watch({ track: e, action: t, prop: r }) {
|
|
771
|
+
e([() => r("present")], () => {
|
|
772
|
+
t(["setInitial", "syncPresence"]);
|
|
773
|
+
});
|
|
774
|
+
},
|
|
775
|
+
on: {
|
|
776
|
+
"NODE.SET": {
|
|
777
|
+
actions: ["setNode", "setStyles"]
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
states: {
|
|
781
|
+
mounted: {
|
|
782
|
+
on: {
|
|
783
|
+
UNMOUNT: {
|
|
784
|
+
target: "unmounted",
|
|
785
|
+
actions: ["clearPrevAnimationName", "invokeOnExitComplete"]
|
|
786
|
+
},
|
|
787
|
+
"UNMOUNT.SUSPEND": {
|
|
788
|
+
target: "unmountSuspended"
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
unmountSuspended: {
|
|
793
|
+
effects: ["trackAnimationEvents"],
|
|
794
|
+
on: {
|
|
795
|
+
MOUNT: {
|
|
796
|
+
target: "mounted",
|
|
797
|
+
actions: ["setPrevAnimationName"]
|
|
798
|
+
},
|
|
799
|
+
UNMOUNT: {
|
|
800
|
+
target: "unmounted",
|
|
801
|
+
actions: ["clearPrevAnimationName", "invokeOnExitComplete"]
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
unmounted: {
|
|
806
|
+
on: {
|
|
807
|
+
MOUNT: {
|
|
808
|
+
target: "mounted",
|
|
809
|
+
actions: ["setPrevAnimationName"]
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
implementations: {
|
|
815
|
+
actions: {
|
|
816
|
+
setInitial: ({ context: e }) => {
|
|
817
|
+
e.get("initial") || queueMicrotask(() => {
|
|
818
|
+
e.set("initial", !0);
|
|
819
|
+
});
|
|
820
|
+
},
|
|
821
|
+
clearInitial: ({ context: e }) => {
|
|
822
|
+
e.set("initial", !1);
|
|
823
|
+
},
|
|
824
|
+
cleanupNode: ({ refs: e }) => {
|
|
825
|
+
e.set("node", null), e.set("styles", null);
|
|
826
|
+
},
|
|
827
|
+
invokeOnExitComplete: ({ prop: e }) => {
|
|
828
|
+
e("onExitComplete")?.();
|
|
829
|
+
},
|
|
830
|
+
setNode: ({ refs: e, event: t }) => {
|
|
831
|
+
e.set("node", t.node);
|
|
832
|
+
},
|
|
833
|
+
setStyles: ({ refs: e, event: t }) => {
|
|
834
|
+
e.set("styles", Dt(t.node));
|
|
835
|
+
},
|
|
836
|
+
syncPresence: ({ context: e, refs: t, send: r, prop: n }) => {
|
|
837
|
+
const o = n("present");
|
|
838
|
+
if (o)
|
|
839
|
+
return r({ type: "MOUNT", src: "presence.changed" });
|
|
840
|
+
const a = t.get("node");
|
|
841
|
+
if (!o && a?.ownerDocument.visibilityState === "hidden")
|
|
842
|
+
return r({ type: "UNMOUNT", src: "visibilitychange" });
|
|
843
|
+
te(() => {
|
|
844
|
+
const s = Te(t.get("styles"));
|
|
845
|
+
e.set("unmountAnimationName", s), s === "none" || s === e.get("prevAnimationName") || t.get("styles")?.display === "none" || t.get("styles")?.animationDuration === "0s" ? r({ type: "UNMOUNT", src: "presence.changed" }) : r({ type: "UNMOUNT.SUSPEND" });
|
|
846
|
+
});
|
|
847
|
+
},
|
|
848
|
+
setPrevAnimationName: ({ context: e, refs: t }) => {
|
|
849
|
+
te(() => {
|
|
850
|
+
e.set("prevAnimationName", Te(t.get("styles")));
|
|
851
|
+
});
|
|
852
|
+
},
|
|
853
|
+
clearPrevAnimationName: ({ context: e }) => {
|
|
854
|
+
e.set("prevAnimationName", null);
|
|
855
|
+
}
|
|
856
|
+
},
|
|
857
|
+
effects: {
|
|
858
|
+
trackAnimationEvents: ({ context: e, refs: t, send: r }) => {
|
|
859
|
+
const n = t.get("node");
|
|
860
|
+
if (!n) return;
|
|
861
|
+
const o = (f) => {
|
|
862
|
+
(f.composedPath?.()?.[0] ?? f.target) === n && e.set("prevAnimationName", Te(t.get("styles")));
|
|
863
|
+
}, a = (f) => {
|
|
864
|
+
const u = Te(t.get("styles"));
|
|
865
|
+
ve(f) === n && u === e.get("unmountAnimationName") && r({ type: "UNMOUNT", src: "animationend" });
|
|
866
|
+
};
|
|
867
|
+
n.addEventListener("animationstart", o), n.addEventListener("animationcancel", a), n.addEventListener("animationend", a);
|
|
868
|
+
const s = je(n, { animationFillMode: "forwards" });
|
|
869
|
+
return () => {
|
|
870
|
+
n.removeEventListener("animationstart", o), n.removeEventListener("animationcancel", a), n.removeEventListener("animationend", a), xn(() => s());
|
|
871
|
+
};
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
});
|
|
876
|
+
function Te(e) {
|
|
877
|
+
return e?.animationName || "none";
|
|
878
|
+
}
|
|
879
|
+
Ft()(["onExitComplete", "present", "immediate"]);
|
|
880
|
+
function nr(e, t = {}) {
|
|
881
|
+
const { sync: r = !1 } = t, n = rr(e);
|
|
882
|
+
return pn(
|
|
883
|
+
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
884
|
+
(...o) => r ? queueMicrotask(() => n.current?.(...o)) : n.current?.(...o),
|
|
885
|
+
[r, n]
|
|
886
|
+
);
|
|
887
|
+
}
|
|
888
|
+
function rr(e) {
|
|
889
|
+
const t = M(e);
|
|
890
|
+
return t.current = e, t;
|
|
891
|
+
}
|
|
892
|
+
const Gt = (e = {}) => {
|
|
893
|
+
const { lazyMount: t, unmountOnExit: r, present: n, skipAnimationOnMount: o = !1, ...a } = e, s = M(!1), f = {
|
|
894
|
+
...a,
|
|
895
|
+
present: n,
|
|
896
|
+
onExitComplete: nr(e.onExitComplete)
|
|
897
|
+
}, u = kt(tr, f), c = er(u);
|
|
898
|
+
c.present && (s.current = !0);
|
|
899
|
+
const p = !c.present && !s.current && t || r && !c.present && s.current, l = () => ({
|
|
900
|
+
"data-state": c.skip && o ? void 0 : n ? "open" : "closed",
|
|
901
|
+
hidden: !c.present
|
|
902
|
+
});
|
|
903
|
+
return {
|
|
904
|
+
ref: c.setNode,
|
|
905
|
+
getPresenceProps: l,
|
|
906
|
+
present: c.present,
|
|
907
|
+
unmounted: p
|
|
908
|
+
};
|
|
909
|
+
}, or = ["top", "right", "bottom", "left"], Q = Math.min, L = Math.max, Re = Math.round, Pe = Math.floor, z = (e) => ({
|
|
910
|
+
x: e,
|
|
911
|
+
y: e
|
|
912
|
+
}), ir = {
|
|
913
|
+
left: "right",
|
|
914
|
+
right: "left",
|
|
915
|
+
bottom: "top",
|
|
916
|
+
top: "bottom"
|
|
917
|
+
}, sr = {
|
|
918
|
+
start: "end",
|
|
919
|
+
end: "start"
|
|
920
|
+
};
|
|
921
|
+
function ze(e, t, r) {
|
|
922
|
+
return L(e, Q(t, r));
|
|
923
|
+
}
|
|
924
|
+
function X(e, t) {
|
|
925
|
+
return typeof e == "function" ? e(t) : e;
|
|
926
|
+
}
|
|
927
|
+
function J(e) {
|
|
928
|
+
return e.split("-")[0];
|
|
929
|
+
}
|
|
930
|
+
function ue(e) {
|
|
931
|
+
return e.split("-")[1];
|
|
932
|
+
}
|
|
933
|
+
function tt(e) {
|
|
934
|
+
return e === "x" ? "y" : "x";
|
|
935
|
+
}
|
|
936
|
+
function nt(e) {
|
|
937
|
+
return e === "y" ? "height" : "width";
|
|
938
|
+
}
|
|
939
|
+
function j(e) {
|
|
940
|
+
return ["top", "bottom"].includes(J(e)) ? "y" : "x";
|
|
941
|
+
}
|
|
942
|
+
function rt(e) {
|
|
943
|
+
return tt(j(e));
|
|
944
|
+
}
|
|
945
|
+
function ar(e, t, r) {
|
|
946
|
+
r === void 0 && (r = !1);
|
|
947
|
+
const n = ue(e), o = rt(e), a = nt(o);
|
|
948
|
+
let s = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
949
|
+
return t.reference[a] > t.floating[a] && (s = De(s)), [s, De(s)];
|
|
950
|
+
}
|
|
951
|
+
function cr(e) {
|
|
952
|
+
const t = De(e);
|
|
953
|
+
return [Ke(e), t, Ke(t)];
|
|
954
|
+
}
|
|
955
|
+
function Ke(e) {
|
|
956
|
+
return e.replace(/start|end/g, (t) => sr[t]);
|
|
957
|
+
}
|
|
958
|
+
function lr(e, t, r) {
|
|
959
|
+
const n = ["left", "right"], o = ["right", "left"], a = ["top", "bottom"], s = ["bottom", "top"];
|
|
960
|
+
switch (e) {
|
|
961
|
+
case "top":
|
|
962
|
+
case "bottom":
|
|
963
|
+
return r ? t ? o : n : t ? n : o;
|
|
964
|
+
case "left":
|
|
965
|
+
case "right":
|
|
966
|
+
return t ? a : s;
|
|
967
|
+
default:
|
|
968
|
+
return [];
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
function ur(e, t, r, n) {
|
|
972
|
+
const o = ue(e);
|
|
973
|
+
let a = lr(J(e), r === "start", n);
|
|
974
|
+
return o && (a = a.map((s) => s + "-" + o), t && (a = a.concat(a.map(Ke)))), a;
|
|
975
|
+
}
|
|
976
|
+
function De(e) {
|
|
977
|
+
return e.replace(/left|right|bottom|top/g, (t) => ir[t]);
|
|
978
|
+
}
|
|
979
|
+
function fr(e) {
|
|
980
|
+
return {
|
|
981
|
+
top: 0,
|
|
982
|
+
right: 0,
|
|
983
|
+
bottom: 0,
|
|
984
|
+
left: 0,
|
|
985
|
+
...e
|
|
986
|
+
};
|
|
987
|
+
}
|
|
988
|
+
function Ht(e) {
|
|
989
|
+
return typeof e != "number" ? fr(e) : {
|
|
990
|
+
top: e,
|
|
991
|
+
right: e,
|
|
992
|
+
bottom: e,
|
|
993
|
+
left: e
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
function Fe(e) {
|
|
997
|
+
const {
|
|
998
|
+
x: t,
|
|
999
|
+
y: r,
|
|
1000
|
+
width: n,
|
|
1001
|
+
height: o
|
|
1002
|
+
} = e;
|
|
1003
|
+
return {
|
|
1004
|
+
width: n,
|
|
1005
|
+
height: o,
|
|
1006
|
+
top: r,
|
|
1007
|
+
left: t,
|
|
1008
|
+
right: t + n,
|
|
1009
|
+
bottom: r + o,
|
|
1010
|
+
x: t,
|
|
1011
|
+
y: r
|
|
1012
|
+
};
|
|
1013
|
+
}
|
|
1014
|
+
function gt(e, t, r) {
|
|
1015
|
+
let {
|
|
1016
|
+
reference: n,
|
|
1017
|
+
floating: o
|
|
1018
|
+
} = e;
|
|
1019
|
+
const a = j(t), s = rt(t), f = nt(s), u = J(t), c = a === "y", p = n.x + n.width / 2 - o.width / 2, l = n.y + n.height / 2 - o.height / 2, i = n[f] / 2 - o[f] / 2;
|
|
1020
|
+
let d;
|
|
1021
|
+
switch (u) {
|
|
1022
|
+
case "top":
|
|
1023
|
+
d = {
|
|
1024
|
+
x: p,
|
|
1025
|
+
y: n.y - o.height
|
|
1026
|
+
};
|
|
1027
|
+
break;
|
|
1028
|
+
case "bottom":
|
|
1029
|
+
d = {
|
|
1030
|
+
x: p,
|
|
1031
|
+
y: n.y + n.height
|
|
1032
|
+
};
|
|
1033
|
+
break;
|
|
1034
|
+
case "right":
|
|
1035
|
+
d = {
|
|
1036
|
+
x: n.x + n.width,
|
|
1037
|
+
y: l
|
|
1038
|
+
};
|
|
1039
|
+
break;
|
|
1040
|
+
case "left":
|
|
1041
|
+
d = {
|
|
1042
|
+
x: n.x - o.width,
|
|
1043
|
+
y: l
|
|
1044
|
+
};
|
|
1045
|
+
break;
|
|
1046
|
+
default:
|
|
1047
|
+
d = {
|
|
1048
|
+
x: n.x,
|
|
1049
|
+
y: n.y
|
|
1050
|
+
};
|
|
1051
|
+
}
|
|
1052
|
+
switch (ue(t)) {
|
|
1053
|
+
case "start":
|
|
1054
|
+
d[s] -= i * (r && c ? -1 : 1);
|
|
1055
|
+
break;
|
|
1056
|
+
case "end":
|
|
1057
|
+
d[s] += i * (r && c ? -1 : 1);
|
|
1058
|
+
break;
|
|
1059
|
+
}
|
|
1060
|
+
return d;
|
|
1061
|
+
}
|
|
1062
|
+
const dr = async (e, t, r) => {
|
|
1063
|
+
const {
|
|
1064
|
+
placement: n = "bottom",
|
|
1065
|
+
strategy: o = "absolute",
|
|
1066
|
+
middleware: a = [],
|
|
1067
|
+
platform: s
|
|
1068
|
+
} = r, f = a.filter(Boolean), u = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
1069
|
+
let c = await s.getElementRects({
|
|
1070
|
+
reference: e,
|
|
1071
|
+
floating: t,
|
|
1072
|
+
strategy: o
|
|
1073
|
+
}), {
|
|
1074
|
+
x: p,
|
|
1075
|
+
y: l
|
|
1076
|
+
} = gt(c, n, u), i = n, d = {}, g = 0;
|
|
1077
|
+
for (let h = 0; h < f.length; h++) {
|
|
1078
|
+
const {
|
|
1079
|
+
name: m,
|
|
1080
|
+
fn: y
|
|
1081
|
+
} = f[h], {
|
|
1082
|
+
x: w,
|
|
1083
|
+
y: x,
|
|
1084
|
+
data: N,
|
|
1085
|
+
reset: E
|
|
1086
|
+
} = await y({
|
|
1087
|
+
x: p,
|
|
1088
|
+
y: l,
|
|
1089
|
+
initialPlacement: n,
|
|
1090
|
+
placement: i,
|
|
1091
|
+
strategy: o,
|
|
1092
|
+
middlewareData: d,
|
|
1093
|
+
rects: c,
|
|
1094
|
+
platform: s,
|
|
1095
|
+
elements: {
|
|
1096
|
+
reference: e,
|
|
1097
|
+
floating: t
|
|
1098
|
+
}
|
|
1099
|
+
});
|
|
1100
|
+
p = w ?? p, l = x ?? l, d = {
|
|
1101
|
+
...d,
|
|
1102
|
+
[m]: {
|
|
1103
|
+
...d[m],
|
|
1104
|
+
...N
|
|
1105
|
+
}
|
|
1106
|
+
}, E && g <= 50 && (g++, typeof E == "object" && (E.placement && (i = E.placement), E.rects && (c = E.rects === !0 ? await s.getElementRects({
|
|
1107
|
+
reference: e,
|
|
1108
|
+
floating: t,
|
|
1109
|
+
strategy: o
|
|
1110
|
+
}) : E.rects), {
|
|
1111
|
+
x: p,
|
|
1112
|
+
y: l
|
|
1113
|
+
} = gt(c, i, u)), h = -1);
|
|
1114
|
+
}
|
|
1115
|
+
return {
|
|
1116
|
+
x: p,
|
|
1117
|
+
y: l,
|
|
1118
|
+
placement: i,
|
|
1119
|
+
strategy: o,
|
|
1120
|
+
middlewareData: d
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
async function we(e, t) {
|
|
1124
|
+
var r;
|
|
1125
|
+
t === void 0 && (t = {});
|
|
1126
|
+
const {
|
|
1127
|
+
x: n,
|
|
1128
|
+
y: o,
|
|
1129
|
+
platform: a,
|
|
1130
|
+
rects: s,
|
|
1131
|
+
elements: f,
|
|
1132
|
+
strategy: u
|
|
1133
|
+
} = e, {
|
|
1134
|
+
boundary: c = "clippingAncestors",
|
|
1135
|
+
rootBoundary: p = "viewport",
|
|
1136
|
+
elementContext: l = "floating",
|
|
1137
|
+
altBoundary: i = !1,
|
|
1138
|
+
padding: d = 0
|
|
1139
|
+
} = X(t, e), g = Ht(d), m = f[i ? l === "floating" ? "reference" : "floating" : l], y = Fe(await a.getClippingRect({
|
|
1140
|
+
element: (r = await (a.isElement == null ? void 0 : a.isElement(m))) == null || r ? m : m.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(f.floating)),
|
|
1141
|
+
boundary: c,
|
|
1142
|
+
rootBoundary: p,
|
|
1143
|
+
strategy: u
|
|
1144
|
+
})), w = l === "floating" ? {
|
|
1145
|
+
x: n,
|
|
1146
|
+
y: o,
|
|
1147
|
+
width: s.floating.width,
|
|
1148
|
+
height: s.floating.height
|
|
1149
|
+
} : s.reference, x = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(f.floating)), N = await (a.isElement == null ? void 0 : a.isElement(x)) ? await (a.getScale == null ? void 0 : a.getScale(x)) || {
|
|
1150
|
+
x: 1,
|
|
1151
|
+
y: 1
|
|
1152
|
+
} : {
|
|
1153
|
+
x: 1,
|
|
1154
|
+
y: 1
|
|
1155
|
+
}, E = Fe(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1156
|
+
elements: f,
|
|
1157
|
+
rect: w,
|
|
1158
|
+
offsetParent: x,
|
|
1159
|
+
strategy: u
|
|
1160
|
+
}) : w);
|
|
1161
|
+
return {
|
|
1162
|
+
top: (y.top - E.top + g.top) / N.y,
|
|
1163
|
+
bottom: (E.bottom - y.bottom + g.bottom) / N.y,
|
|
1164
|
+
left: (y.left - E.left + g.left) / N.x,
|
|
1165
|
+
right: (E.right - y.right + g.right) / N.x
|
|
1166
|
+
};
|
|
1167
|
+
}
|
|
1168
|
+
const pr = (e) => ({
|
|
1169
|
+
name: "arrow",
|
|
1170
|
+
options: e,
|
|
1171
|
+
async fn(t) {
|
|
1172
|
+
const {
|
|
1173
|
+
x: r,
|
|
1174
|
+
y: n,
|
|
1175
|
+
placement: o,
|
|
1176
|
+
rects: a,
|
|
1177
|
+
platform: s,
|
|
1178
|
+
elements: f,
|
|
1179
|
+
middlewareData: u
|
|
1180
|
+
} = t, {
|
|
1181
|
+
element: c,
|
|
1182
|
+
padding: p = 0
|
|
1183
|
+
} = X(e, t) || {};
|
|
1184
|
+
if (c == null)
|
|
1185
|
+
return {};
|
|
1186
|
+
const l = Ht(p), i = {
|
|
1187
|
+
x: r,
|
|
1188
|
+
y: n
|
|
1189
|
+
}, d = rt(o), g = nt(d), h = await s.getDimensions(c), m = d === "y", y = m ? "top" : "left", w = m ? "bottom" : "right", x = m ? "clientHeight" : "clientWidth", N = a.reference[g] + a.reference[d] - i[d] - a.floating[g], E = i[d] - a.reference[d], P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
1190
|
+
let A = P ? P[x] : 0;
|
|
1191
|
+
(!A || !await (s.isElement == null ? void 0 : s.isElement(P))) && (A = f.floating[x] || a.floating[g]);
|
|
1192
|
+
const _ = N / 2 - E / 2, $ = A / 2 - h[g] / 2 - 1, k = Q(l[y], $), v = Q(l[w], $), b = k, T = A - h[g] - v, O = A / 2 - h[g] / 2 + _, C = ze(b, O, T), R = !u.arrow && ue(o) != null && O !== C && a.reference[g] / 2 - (O < b ? k : v) - h[g] / 2 < 0, B = R ? O < b ? O - b : O - T : 0;
|
|
1193
|
+
return {
|
|
1194
|
+
[d]: i[d] + B,
|
|
1195
|
+
data: {
|
|
1196
|
+
[d]: C,
|
|
1197
|
+
centerOffset: O - C - B,
|
|
1198
|
+
...R && {
|
|
1199
|
+
alignmentOffset: B
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
reset: R
|
|
1203
|
+
};
|
|
1204
|
+
}
|
|
1205
|
+
}), gr = function(e) {
|
|
1206
|
+
return e === void 0 && (e = {}), {
|
|
1207
|
+
name: "flip",
|
|
1208
|
+
options: e,
|
|
1209
|
+
async fn(t) {
|
|
1210
|
+
var r, n;
|
|
1211
|
+
const {
|
|
1212
|
+
placement: o,
|
|
1213
|
+
middlewareData: a,
|
|
1214
|
+
rects: s,
|
|
1215
|
+
initialPlacement: f,
|
|
1216
|
+
platform: u,
|
|
1217
|
+
elements: c
|
|
1218
|
+
} = t, {
|
|
1219
|
+
mainAxis: p = !0,
|
|
1220
|
+
crossAxis: l = !0,
|
|
1221
|
+
fallbackPlacements: i,
|
|
1222
|
+
fallbackStrategy: d = "bestFit",
|
|
1223
|
+
fallbackAxisSideDirection: g = "none",
|
|
1224
|
+
flipAlignment: h = !0,
|
|
1225
|
+
...m
|
|
1226
|
+
} = X(e, t);
|
|
1227
|
+
if ((r = a.arrow) != null && r.alignmentOffset)
|
|
1228
|
+
return {};
|
|
1229
|
+
const y = J(o), w = j(f), x = J(f) === f, N = await (u.isRTL == null ? void 0 : u.isRTL(c.floating)), E = i || (x || !h ? [De(f)] : cr(f)), P = g !== "none";
|
|
1230
|
+
!i && P && E.push(...ur(f, h, g, N));
|
|
1231
|
+
const A = [f, ...E], _ = await we(t, m), $ = [];
|
|
1232
|
+
let k = ((n = a.flip) == null ? void 0 : n.overflows) || [];
|
|
1233
|
+
if (p && $.push(_[y]), l) {
|
|
1234
|
+
const O = ar(o, s, N);
|
|
1235
|
+
$.push(_[O[0]], _[O[1]]);
|
|
1236
|
+
}
|
|
1237
|
+
if (k = [...k, {
|
|
1238
|
+
placement: o,
|
|
1239
|
+
overflows: $
|
|
1240
|
+
}], !$.every((O) => O <= 0)) {
|
|
1241
|
+
var v, b;
|
|
1242
|
+
const O = (((v = a.flip) == null ? void 0 : v.index) || 0) + 1, C = A[O];
|
|
1243
|
+
if (C && (!(l === "alignment" ? w !== j(C) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1244
|
+
// overflows the main axis.
|
|
1245
|
+
k.every((V) => V.overflows[0] > 0 && j(V.placement) === w)))
|
|
1246
|
+
return {
|
|
1247
|
+
data: {
|
|
1248
|
+
index: O,
|
|
1249
|
+
overflows: k
|
|
1250
|
+
},
|
|
1251
|
+
reset: {
|
|
1252
|
+
placement: C
|
|
1253
|
+
}
|
|
1254
|
+
};
|
|
1255
|
+
let R = (b = k.filter((B) => B.overflows[0] <= 0).sort((B, V) => B.overflows[1] - V.overflows[1])[0]) == null ? void 0 : b.placement;
|
|
1256
|
+
if (!R)
|
|
1257
|
+
switch (d) {
|
|
1258
|
+
case "bestFit": {
|
|
1259
|
+
var T;
|
|
1260
|
+
const B = (T = k.filter((V) => {
|
|
1261
|
+
if (P) {
|
|
1262
|
+
const Z = j(V.placement);
|
|
1263
|
+
return Z === w || // Create a bias to the `y` side axis due to horizontal
|
|
1264
|
+
// reading directions favoring greater width.
|
|
1265
|
+
Z === "y";
|
|
1266
|
+
}
|
|
1267
|
+
return !0;
|
|
1268
|
+
}).map((V) => [V.placement, V.overflows.filter((Z) => Z > 0).reduce((Z, rn) => Z + rn, 0)]).sort((V, Z) => V[1] - Z[1])[0]) == null ? void 0 : T[0];
|
|
1269
|
+
B && (R = B);
|
|
1270
|
+
break;
|
|
1271
|
+
}
|
|
1272
|
+
case "initialPlacement":
|
|
1273
|
+
R = f;
|
|
1274
|
+
break;
|
|
1275
|
+
}
|
|
1276
|
+
if (o !== R)
|
|
1277
|
+
return {
|
|
1278
|
+
reset: {
|
|
1279
|
+
placement: R
|
|
1280
|
+
}
|
|
1281
|
+
};
|
|
1282
|
+
}
|
|
1283
|
+
return {};
|
|
1284
|
+
}
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1287
|
+
function ht(e, t) {
|
|
1288
|
+
return {
|
|
1289
|
+
top: e.top - t.height,
|
|
1290
|
+
right: e.right - t.width,
|
|
1291
|
+
bottom: e.bottom - t.height,
|
|
1292
|
+
left: e.left - t.width
|
|
1293
|
+
};
|
|
1294
|
+
}
|
|
1295
|
+
function mt(e) {
|
|
1296
|
+
return or.some((t) => e[t] >= 0);
|
|
1297
|
+
}
|
|
1298
|
+
const hr = function(e) {
|
|
1299
|
+
return e === void 0 && (e = {}), {
|
|
1300
|
+
name: "hide",
|
|
1301
|
+
options: e,
|
|
1302
|
+
async fn(t) {
|
|
1303
|
+
const {
|
|
1304
|
+
rects: r
|
|
1305
|
+
} = t, {
|
|
1306
|
+
strategy: n = "referenceHidden",
|
|
1307
|
+
...o
|
|
1308
|
+
} = X(e, t);
|
|
1309
|
+
switch (n) {
|
|
1310
|
+
case "referenceHidden": {
|
|
1311
|
+
const a = await we(t, {
|
|
1312
|
+
...o,
|
|
1313
|
+
elementContext: "reference"
|
|
1314
|
+
}), s = ht(a, r.reference);
|
|
1315
|
+
return {
|
|
1316
|
+
data: {
|
|
1317
|
+
referenceHiddenOffsets: s,
|
|
1318
|
+
referenceHidden: mt(s)
|
|
1319
|
+
}
|
|
1320
|
+
};
|
|
1321
|
+
}
|
|
1322
|
+
case "escaped": {
|
|
1323
|
+
const a = await we(t, {
|
|
1324
|
+
...o,
|
|
1325
|
+
altBoundary: !0
|
|
1326
|
+
}), s = ht(a, r.floating);
|
|
1327
|
+
return {
|
|
1328
|
+
data: {
|
|
1329
|
+
escapedOffsets: s,
|
|
1330
|
+
escaped: mt(s)
|
|
1331
|
+
}
|
|
1332
|
+
};
|
|
1333
|
+
}
|
|
1334
|
+
default:
|
|
1335
|
+
return {};
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
};
|
|
1339
|
+
};
|
|
1340
|
+
async function mr(e, t) {
|
|
1341
|
+
const {
|
|
1342
|
+
placement: r,
|
|
1343
|
+
platform: n,
|
|
1344
|
+
elements: o
|
|
1345
|
+
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = J(r), f = ue(r), u = j(r) === "y", c = ["left", "top"].includes(s) ? -1 : 1, p = a && u ? -1 : 1, l = X(t, e);
|
|
1346
|
+
let {
|
|
1347
|
+
mainAxis: i,
|
|
1348
|
+
crossAxis: d,
|
|
1349
|
+
alignmentAxis: g
|
|
1350
|
+
} = typeof l == "number" ? {
|
|
1351
|
+
mainAxis: l,
|
|
1352
|
+
crossAxis: 0,
|
|
1353
|
+
alignmentAxis: null
|
|
1354
|
+
} : {
|
|
1355
|
+
mainAxis: l.mainAxis || 0,
|
|
1356
|
+
crossAxis: l.crossAxis || 0,
|
|
1357
|
+
alignmentAxis: l.alignmentAxis
|
|
1358
|
+
};
|
|
1359
|
+
return f && typeof g == "number" && (d = f === "end" ? g * -1 : g), u ? {
|
|
1360
|
+
x: d * p,
|
|
1361
|
+
y: i * c
|
|
1362
|
+
} : {
|
|
1363
|
+
x: i * c,
|
|
1364
|
+
y: d * p
|
|
1365
|
+
};
|
|
1366
|
+
}
|
|
1367
|
+
const yr = function(e) {
|
|
1368
|
+
return e === void 0 && (e = 0), {
|
|
1369
|
+
name: "offset",
|
|
1370
|
+
options: e,
|
|
1371
|
+
async fn(t) {
|
|
1372
|
+
var r, n;
|
|
1373
|
+
const {
|
|
1374
|
+
x: o,
|
|
1375
|
+
y: a,
|
|
1376
|
+
placement: s,
|
|
1377
|
+
middlewareData: f
|
|
1378
|
+
} = t, u = await mr(t, e);
|
|
1379
|
+
return s === ((r = f.offset) == null ? void 0 : r.placement) && (n = f.arrow) != null && n.alignmentOffset ? {} : {
|
|
1380
|
+
x: o + u.x,
|
|
1381
|
+
y: a + u.y,
|
|
1382
|
+
data: {
|
|
1383
|
+
...u,
|
|
1384
|
+
placement: s
|
|
1385
|
+
}
|
|
1386
|
+
};
|
|
1387
|
+
}
|
|
1388
|
+
};
|
|
1389
|
+
}, vr = function(e) {
|
|
1390
|
+
return e === void 0 && (e = {}), {
|
|
1391
|
+
name: "shift",
|
|
1392
|
+
options: e,
|
|
1393
|
+
async fn(t) {
|
|
1394
|
+
const {
|
|
1395
|
+
x: r,
|
|
1396
|
+
y: n,
|
|
1397
|
+
placement: o
|
|
1398
|
+
} = t, {
|
|
1399
|
+
mainAxis: a = !0,
|
|
1400
|
+
crossAxis: s = !1,
|
|
1401
|
+
limiter: f = {
|
|
1402
|
+
fn: (m) => {
|
|
1403
|
+
let {
|
|
1404
|
+
x: y,
|
|
1405
|
+
y: w
|
|
1406
|
+
} = m;
|
|
1407
|
+
return {
|
|
1408
|
+
x: y,
|
|
1409
|
+
y: w
|
|
1410
|
+
};
|
|
1411
|
+
}
|
|
1412
|
+
},
|
|
1413
|
+
...u
|
|
1414
|
+
} = X(e, t), c = {
|
|
1415
|
+
x: r,
|
|
1416
|
+
y: n
|
|
1417
|
+
}, p = await we(t, u), l = j(J(o)), i = tt(l);
|
|
1418
|
+
let d = c[i], g = c[l];
|
|
1419
|
+
if (a) {
|
|
1420
|
+
const m = i === "y" ? "top" : "left", y = i === "y" ? "bottom" : "right", w = d + p[m], x = d - p[y];
|
|
1421
|
+
d = ze(w, d, x);
|
|
1422
|
+
}
|
|
1423
|
+
if (s) {
|
|
1424
|
+
const m = l === "y" ? "top" : "left", y = l === "y" ? "bottom" : "right", w = g + p[m], x = g - p[y];
|
|
1425
|
+
g = ze(w, g, x);
|
|
1426
|
+
}
|
|
1427
|
+
const h = f.fn({
|
|
1428
|
+
...t,
|
|
1429
|
+
[i]: d,
|
|
1430
|
+
[l]: g
|
|
1431
|
+
});
|
|
1432
|
+
return {
|
|
1433
|
+
...h,
|
|
1434
|
+
data: {
|
|
1435
|
+
x: h.x - r,
|
|
1436
|
+
y: h.y - n,
|
|
1437
|
+
enabled: {
|
|
1438
|
+
[i]: a,
|
|
1439
|
+
[l]: s
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
};
|
|
1443
|
+
}
|
|
1444
|
+
};
|
|
1445
|
+
}, br = function(e) {
|
|
1446
|
+
return e === void 0 && (e = {}), {
|
|
1447
|
+
options: e,
|
|
1448
|
+
fn(t) {
|
|
1449
|
+
const {
|
|
1450
|
+
x: r,
|
|
1451
|
+
y: n,
|
|
1452
|
+
placement: o,
|
|
1453
|
+
rects: a,
|
|
1454
|
+
middlewareData: s
|
|
1455
|
+
} = t, {
|
|
1456
|
+
offset: f = 0,
|
|
1457
|
+
mainAxis: u = !0,
|
|
1458
|
+
crossAxis: c = !0
|
|
1459
|
+
} = X(e, t), p = {
|
|
1460
|
+
x: r,
|
|
1461
|
+
y: n
|
|
1462
|
+
}, l = j(o), i = tt(l);
|
|
1463
|
+
let d = p[i], g = p[l];
|
|
1464
|
+
const h = X(f, t), m = typeof h == "number" ? {
|
|
1465
|
+
mainAxis: h,
|
|
1466
|
+
crossAxis: 0
|
|
1467
|
+
} : {
|
|
1468
|
+
mainAxis: 0,
|
|
1469
|
+
crossAxis: 0,
|
|
1470
|
+
...h
|
|
1471
|
+
};
|
|
1472
|
+
if (u) {
|
|
1473
|
+
const x = i === "y" ? "height" : "width", N = a.reference[i] - a.floating[x] + m.mainAxis, E = a.reference[i] + a.reference[x] - m.mainAxis;
|
|
1474
|
+
d < N ? d = N : d > E && (d = E);
|
|
1475
|
+
}
|
|
1476
|
+
if (c) {
|
|
1477
|
+
var y, w;
|
|
1478
|
+
const x = i === "y" ? "width" : "height", N = ["top", "left"].includes(J(o)), E = a.reference[l] - a.floating[x] + (N && ((y = s.offset) == null ? void 0 : y[l]) || 0) + (N ? 0 : m.crossAxis), P = a.reference[l] + a.reference[x] + (N ? 0 : ((w = s.offset) == null ? void 0 : w[l]) || 0) - (N ? m.crossAxis : 0);
|
|
1479
|
+
g < E ? g = E : g > P && (g = P);
|
|
1480
|
+
}
|
|
1481
|
+
return {
|
|
1482
|
+
[i]: d,
|
|
1483
|
+
[l]: g
|
|
1484
|
+
};
|
|
1485
|
+
}
|
|
1486
|
+
};
|
|
1487
|
+
}, wr = function(e) {
|
|
1488
|
+
return e === void 0 && (e = {}), {
|
|
1489
|
+
name: "size",
|
|
1490
|
+
options: e,
|
|
1491
|
+
async fn(t) {
|
|
1492
|
+
var r, n;
|
|
1493
|
+
const {
|
|
1494
|
+
placement: o,
|
|
1495
|
+
rects: a,
|
|
1496
|
+
platform: s,
|
|
1497
|
+
elements: f
|
|
1498
|
+
} = t, {
|
|
1499
|
+
apply: u = () => {
|
|
1500
|
+
},
|
|
1501
|
+
...c
|
|
1502
|
+
} = X(e, t), p = await we(t, c), l = J(o), i = ue(o), d = j(o) === "y", {
|
|
1503
|
+
width: g,
|
|
1504
|
+
height: h
|
|
1505
|
+
} = a.floating;
|
|
1506
|
+
let m, y;
|
|
1507
|
+
l === "top" || l === "bottom" ? (m = l, y = i === (await (s.isRTL == null ? void 0 : s.isRTL(f.floating)) ? "start" : "end") ? "left" : "right") : (y = l, m = i === "end" ? "top" : "bottom");
|
|
1508
|
+
const w = h - p.top - p.bottom, x = g - p.left - p.right, N = Q(h - p[m], w), E = Q(g - p[y], x), P = !t.middlewareData.shift;
|
|
1509
|
+
let A = N, _ = E;
|
|
1510
|
+
if ((r = t.middlewareData.shift) != null && r.enabled.x && (_ = x), (n = t.middlewareData.shift) != null && n.enabled.y && (A = w), P && !i) {
|
|
1511
|
+
const k = L(p.left, 0), v = L(p.right, 0), b = L(p.top, 0), T = L(p.bottom, 0);
|
|
1512
|
+
d ? _ = g - 2 * (k !== 0 || v !== 0 ? k + v : L(p.left, p.right)) : A = h - 2 * (b !== 0 || T !== 0 ? b + T : L(p.top, p.bottom));
|
|
1513
|
+
}
|
|
1514
|
+
await u({
|
|
1515
|
+
...t,
|
|
1516
|
+
availableWidth: _,
|
|
1517
|
+
availableHeight: A
|
|
1518
|
+
});
|
|
1519
|
+
const $ = await s.getDimensions(f.floating);
|
|
1520
|
+
return g !== $.width || h !== $.height ? {
|
|
1521
|
+
reset: {
|
|
1522
|
+
rects: !0
|
|
1523
|
+
}
|
|
1524
|
+
} : {};
|
|
1525
|
+
}
|
|
1526
|
+
};
|
|
1527
|
+
};
|
|
1528
|
+
function Me() {
|
|
1529
|
+
return typeof window < "u";
|
|
1530
|
+
}
|
|
1531
|
+
function fe(e) {
|
|
1532
|
+
return Wt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1533
|
+
}
|
|
1534
|
+
function I(e) {
|
|
1535
|
+
var t;
|
|
1536
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1537
|
+
}
|
|
1538
|
+
function q(e) {
|
|
1539
|
+
var t;
|
|
1540
|
+
return (t = (Wt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1541
|
+
}
|
|
1542
|
+
function Wt(e) {
|
|
1543
|
+
return Me() ? e instanceof Node || e instanceof I(e).Node : !1;
|
|
1544
|
+
}
|
|
1545
|
+
function G(e) {
|
|
1546
|
+
return Me() ? e instanceof Element || e instanceof I(e).Element : !1;
|
|
1547
|
+
}
|
|
1548
|
+
function K(e) {
|
|
1549
|
+
return Me() ? e instanceof HTMLElement || e instanceof I(e).HTMLElement : !1;
|
|
1550
|
+
}
|
|
1551
|
+
function yt(e) {
|
|
1552
|
+
return !Me() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof I(e).ShadowRoot;
|
|
1553
|
+
}
|
|
1554
|
+
function Ee(e) {
|
|
1555
|
+
const {
|
|
1556
|
+
overflow: t,
|
|
1557
|
+
overflowX: r,
|
|
1558
|
+
overflowY: n,
|
|
1559
|
+
display: o
|
|
1560
|
+
} = H(e);
|
|
1561
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !["inline", "contents"].includes(o);
|
|
1562
|
+
}
|
|
1563
|
+
function xr(e) {
|
|
1564
|
+
return ["table", "td", "th"].includes(fe(e));
|
|
1565
|
+
}
|
|
1566
|
+
function Le(e) {
|
|
1567
|
+
return [":popover-open", ":modal"].some((t) => {
|
|
1568
|
+
try {
|
|
1569
|
+
return e.matches(t);
|
|
1570
|
+
} catch {
|
|
1571
|
+
return !1;
|
|
1572
|
+
}
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
function ot(e) {
|
|
1576
|
+
const t = it(), r = G(e) ? H(e) : e;
|
|
1577
|
+
return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (r.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (r.contain || "").includes(n));
|
|
1578
|
+
}
|
|
1579
|
+
function Or(e) {
|
|
1580
|
+
let t = ee(e);
|
|
1581
|
+
for (; K(t) && !le(t); ) {
|
|
1582
|
+
if (ot(t))
|
|
1583
|
+
return t;
|
|
1584
|
+
if (Le(t))
|
|
1585
|
+
return null;
|
|
1586
|
+
t = ee(t);
|
|
1587
|
+
}
|
|
1588
|
+
return null;
|
|
1589
|
+
}
|
|
1590
|
+
function it() {
|
|
1591
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1592
|
+
}
|
|
1593
|
+
function le(e) {
|
|
1594
|
+
return ["html", "body", "#document"].includes(fe(e));
|
|
1595
|
+
}
|
|
1596
|
+
function H(e) {
|
|
1597
|
+
return I(e).getComputedStyle(e);
|
|
1598
|
+
}
|
|
1599
|
+
function Ie(e) {
|
|
1600
|
+
return G(e) ? {
|
|
1601
|
+
scrollLeft: e.scrollLeft,
|
|
1602
|
+
scrollTop: e.scrollTop
|
|
1603
|
+
} : {
|
|
1604
|
+
scrollLeft: e.scrollX,
|
|
1605
|
+
scrollTop: e.scrollY
|
|
1606
|
+
};
|
|
1607
|
+
}
|
|
1608
|
+
function ee(e) {
|
|
1609
|
+
if (fe(e) === "html")
|
|
1610
|
+
return e;
|
|
1611
|
+
const t = (
|
|
1612
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
1613
|
+
e.assignedSlot || // DOM Element detected.
|
|
1614
|
+
e.parentNode || // ShadowRoot detected.
|
|
1615
|
+
yt(e) && e.host || // Fallback.
|
|
1616
|
+
q(e)
|
|
1617
|
+
);
|
|
1618
|
+
return yt(t) ? t.host : t;
|
|
1619
|
+
}
|
|
1620
|
+
function Ut(e) {
|
|
1621
|
+
const t = ee(e);
|
|
1622
|
+
return le(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : K(t) && Ee(t) ? t : Ut(t);
|
|
1623
|
+
}
|
|
1624
|
+
function xe(e, t, r) {
|
|
1625
|
+
var n;
|
|
1626
|
+
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
1627
|
+
const o = Ut(e), a = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = I(o);
|
|
1628
|
+
if (a) {
|
|
1629
|
+
const f = qe(s);
|
|
1630
|
+
return t.concat(s, s.visualViewport || [], Ee(o) ? o : [], f && r ? xe(f) : []);
|
|
1631
|
+
}
|
|
1632
|
+
return t.concat(o, xe(o, [], r));
|
|
1633
|
+
}
|
|
1634
|
+
function qe(e) {
|
|
1635
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1636
|
+
}
|
|
1637
|
+
function jt(e) {
|
|
1638
|
+
const t = H(e);
|
|
1639
|
+
let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
|
|
1640
|
+
const o = K(e), a = o ? e.offsetWidth : r, s = o ? e.offsetHeight : n, f = Re(r) !== a || Re(n) !== s;
|
|
1641
|
+
return f && (r = a, n = s), {
|
|
1642
|
+
width: r,
|
|
1643
|
+
height: n,
|
|
1644
|
+
$: f
|
|
1645
|
+
};
|
|
1646
|
+
}
|
|
1647
|
+
function st(e) {
|
|
1648
|
+
return G(e) ? e : e.contextElement;
|
|
1649
|
+
}
|
|
1650
|
+
function ce(e) {
|
|
1651
|
+
const t = st(e);
|
|
1652
|
+
if (!K(t))
|
|
1653
|
+
return z(1);
|
|
1654
|
+
const r = t.getBoundingClientRect(), {
|
|
1655
|
+
width: n,
|
|
1656
|
+
height: o,
|
|
1657
|
+
$: a
|
|
1658
|
+
} = jt(t);
|
|
1659
|
+
let s = (a ? Re(r.width) : r.width) / n, f = (a ? Re(r.height) : r.height) / o;
|
|
1660
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!f || !Number.isFinite(f)) && (f = 1), {
|
|
1661
|
+
x: s,
|
|
1662
|
+
y: f
|
|
1663
|
+
};
|
|
1664
|
+
}
|
|
1665
|
+
const Er = /* @__PURE__ */ z(0);
|
|
1666
|
+
function zt(e) {
|
|
1667
|
+
const t = I(e);
|
|
1668
|
+
return !it() || !t.visualViewport ? Er : {
|
|
1669
|
+
x: t.visualViewport.offsetLeft,
|
|
1670
|
+
y: t.visualViewport.offsetTop
|
|
1671
|
+
};
|
|
1672
|
+
}
|
|
1673
|
+
function Nr(e, t, r) {
|
|
1674
|
+
return t === void 0 && (t = !1), !r || t && r !== I(e) ? !1 : t;
|
|
1675
|
+
}
|
|
1676
|
+
function ne(e, t, r, n) {
|
|
1677
|
+
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
1678
|
+
const o = e.getBoundingClientRect(), a = st(e);
|
|
1679
|
+
let s = z(1);
|
|
1680
|
+
t && (n ? G(n) && (s = ce(n)) : s = ce(e));
|
|
1681
|
+
const f = Nr(a, r, n) ? zt(a) : z(0);
|
|
1682
|
+
let u = (o.left + f.x) / s.x, c = (o.top + f.y) / s.y, p = o.width / s.x, l = o.height / s.y;
|
|
1683
|
+
if (a) {
|
|
1684
|
+
const i = I(a), d = n && G(n) ? I(n) : n;
|
|
1685
|
+
let g = i, h = qe(g);
|
|
1686
|
+
for (; h && n && d !== g; ) {
|
|
1687
|
+
const m = ce(h), y = h.getBoundingClientRect(), w = H(h), x = y.left + (h.clientLeft + parseFloat(w.paddingLeft)) * m.x, N = y.top + (h.clientTop + parseFloat(w.paddingTop)) * m.y;
|
|
1688
|
+
u *= m.x, c *= m.y, p *= m.x, l *= m.y, u += x, c += N, g = I(h), h = qe(g);
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
return Fe({
|
|
1692
|
+
width: p,
|
|
1693
|
+
height: l,
|
|
1694
|
+
x: u,
|
|
1695
|
+
y: c
|
|
1696
|
+
});
|
|
1697
|
+
}
|
|
1698
|
+
function at(e, t) {
|
|
1699
|
+
const r = Ie(e).scrollLeft;
|
|
1700
|
+
return t ? t.left + r : ne(q(e)).left + r;
|
|
1701
|
+
}
|
|
1702
|
+
function Kt(e, t, r) {
|
|
1703
|
+
r === void 0 && (r = !1);
|
|
1704
|
+
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - (r ? 0 : (
|
|
1705
|
+
// RTL <body> scrollbar.
|
|
1706
|
+
at(e, n)
|
|
1707
|
+
)), a = n.top + t.scrollTop;
|
|
1708
|
+
return {
|
|
1709
|
+
x: o,
|
|
1710
|
+
y: a
|
|
1711
|
+
};
|
|
1712
|
+
}
|
|
1713
|
+
function Tr(e) {
|
|
1714
|
+
let {
|
|
1715
|
+
elements: t,
|
|
1716
|
+
rect: r,
|
|
1717
|
+
offsetParent: n,
|
|
1718
|
+
strategy: o
|
|
1719
|
+
} = e;
|
|
1720
|
+
const a = o === "fixed", s = q(n), f = t ? Le(t.floating) : !1;
|
|
1721
|
+
if (n === s || f && a)
|
|
1722
|
+
return r;
|
|
1723
|
+
let u = {
|
|
1724
|
+
scrollLeft: 0,
|
|
1725
|
+
scrollTop: 0
|
|
1726
|
+
}, c = z(1);
|
|
1727
|
+
const p = z(0), l = K(n);
|
|
1728
|
+
if ((l || !l && !a) && ((fe(n) !== "body" || Ee(s)) && (u = Ie(n)), K(n))) {
|
|
1729
|
+
const d = ne(n);
|
|
1730
|
+
c = ce(n), p.x = d.x + n.clientLeft, p.y = d.y + n.clientTop;
|
|
1731
|
+
}
|
|
1732
|
+
const i = s && !l && !a ? Kt(s, u, !0) : z(0);
|
|
1733
|
+
return {
|
|
1734
|
+
width: r.width * c.x,
|
|
1735
|
+
height: r.height * c.y,
|
|
1736
|
+
x: r.x * c.x - u.scrollLeft * c.x + p.x + i.x,
|
|
1737
|
+
y: r.y * c.y - u.scrollTop * c.y + p.y + i.y
|
|
1738
|
+
};
|
|
1739
|
+
}
|
|
1740
|
+
function Pr(e) {
|
|
1741
|
+
return Array.from(e.getClientRects());
|
|
1742
|
+
}
|
|
1743
|
+
function Sr(e) {
|
|
1744
|
+
const t = q(e), r = Ie(e), n = e.ownerDocument.body, o = L(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), a = L(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
|
|
1745
|
+
let s = -r.scrollLeft + at(e);
|
|
1746
|
+
const f = -r.scrollTop;
|
|
1747
|
+
return H(n).direction === "rtl" && (s += L(t.clientWidth, n.clientWidth) - o), {
|
|
1748
|
+
width: o,
|
|
1749
|
+
height: a,
|
|
1750
|
+
x: s,
|
|
1751
|
+
y: f
|
|
1752
|
+
};
|
|
1753
|
+
}
|
|
1754
|
+
function Cr(e, t) {
|
|
1755
|
+
const r = I(e), n = q(e), o = r.visualViewport;
|
|
1756
|
+
let a = n.clientWidth, s = n.clientHeight, f = 0, u = 0;
|
|
1757
|
+
if (o) {
|
|
1758
|
+
a = o.width, s = o.height;
|
|
1759
|
+
const c = it();
|
|
1760
|
+
(!c || c && t === "fixed") && (f = o.offsetLeft, u = o.offsetTop);
|
|
1761
|
+
}
|
|
1762
|
+
return {
|
|
1763
|
+
width: a,
|
|
1764
|
+
height: s,
|
|
1765
|
+
x: f,
|
|
1766
|
+
y: u
|
|
1767
|
+
};
|
|
1768
|
+
}
|
|
1769
|
+
function Ar(e, t) {
|
|
1770
|
+
const r = ne(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, a = K(e) ? ce(e) : z(1), s = e.clientWidth * a.x, f = e.clientHeight * a.y, u = o * a.x, c = n * a.y;
|
|
1771
|
+
return {
|
|
1772
|
+
width: s,
|
|
1773
|
+
height: f,
|
|
1774
|
+
x: u,
|
|
1775
|
+
y: c
|
|
1776
|
+
};
|
|
1777
|
+
}
|
|
1778
|
+
function vt(e, t, r) {
|
|
1779
|
+
let n;
|
|
1780
|
+
if (t === "viewport")
|
|
1781
|
+
n = Cr(e, r);
|
|
1782
|
+
else if (t === "document")
|
|
1783
|
+
n = Sr(q(e));
|
|
1784
|
+
else if (G(t))
|
|
1785
|
+
n = Ar(t, r);
|
|
1786
|
+
else {
|
|
1787
|
+
const o = zt(e);
|
|
1788
|
+
n = {
|
|
1789
|
+
x: t.x - o.x,
|
|
1790
|
+
y: t.y - o.y,
|
|
1791
|
+
width: t.width,
|
|
1792
|
+
height: t.height
|
|
1793
|
+
};
|
|
1794
|
+
}
|
|
1795
|
+
return Fe(n);
|
|
1796
|
+
}
|
|
1797
|
+
function qt(e, t) {
|
|
1798
|
+
const r = ee(e);
|
|
1799
|
+
return r === t || !G(r) || le(r) ? !1 : H(r).position === "fixed" || qt(r, t);
|
|
1800
|
+
}
|
|
1801
|
+
function Rr(e, t) {
|
|
1802
|
+
const r = t.get(e);
|
|
1803
|
+
if (r)
|
|
1804
|
+
return r;
|
|
1805
|
+
let n = xe(e, [], !1).filter((f) => G(f) && fe(f) !== "body"), o = null;
|
|
1806
|
+
const a = H(e).position === "fixed";
|
|
1807
|
+
let s = a ? ee(e) : e;
|
|
1808
|
+
for (; G(s) && !le(s); ) {
|
|
1809
|
+
const f = H(s), u = ot(s);
|
|
1810
|
+
!u && f.position === "fixed" && (o = null), (a ? !u && !o : !u && f.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ee(s) && !u && qt(e, s)) ? n = n.filter((p) => p !== s) : o = f, s = ee(s);
|
|
1811
|
+
}
|
|
1812
|
+
return t.set(e, n), n;
|
|
1813
|
+
}
|
|
1814
|
+
function Dr(e) {
|
|
1815
|
+
let {
|
|
1816
|
+
element: t,
|
|
1817
|
+
boundary: r,
|
|
1818
|
+
rootBoundary: n,
|
|
1819
|
+
strategy: o
|
|
1820
|
+
} = e;
|
|
1821
|
+
const s = [...r === "clippingAncestors" ? Le(t) ? [] : Rr(t, this._c) : [].concat(r), n], f = s[0], u = s.reduce((c, p) => {
|
|
1822
|
+
const l = vt(t, p, o);
|
|
1823
|
+
return c.top = L(l.top, c.top), c.right = Q(l.right, c.right), c.bottom = Q(l.bottom, c.bottom), c.left = L(l.left, c.left), c;
|
|
1824
|
+
}, vt(t, f, o));
|
|
1825
|
+
return {
|
|
1826
|
+
width: u.right - u.left,
|
|
1827
|
+
height: u.bottom - u.top,
|
|
1828
|
+
x: u.left,
|
|
1829
|
+
y: u.top
|
|
1830
|
+
};
|
|
1831
|
+
}
|
|
1832
|
+
function Fr(e) {
|
|
1833
|
+
const {
|
|
1834
|
+
width: t,
|
|
1835
|
+
height: r
|
|
1836
|
+
} = jt(e);
|
|
1837
|
+
return {
|
|
1838
|
+
width: t,
|
|
1839
|
+
height: r
|
|
1840
|
+
};
|
|
1841
|
+
}
|
|
1842
|
+
function _r(e, t, r) {
|
|
1843
|
+
const n = K(t), o = q(t), a = r === "fixed", s = ne(e, !0, a, t);
|
|
1844
|
+
let f = {
|
|
1845
|
+
scrollLeft: 0,
|
|
1846
|
+
scrollTop: 0
|
|
1847
|
+
};
|
|
1848
|
+
const u = z(0);
|
|
1849
|
+
if (n || !n && !a)
|
|
1850
|
+
if ((fe(t) !== "body" || Ee(o)) && (f = Ie(t)), n) {
|
|
1851
|
+
const i = ne(t, !0, a, t);
|
|
1852
|
+
u.x = i.x + t.clientLeft, u.y = i.y + t.clientTop;
|
|
1853
|
+
} else o && (u.x = at(o));
|
|
1854
|
+
const c = o && !n && !a ? Kt(o, f) : z(0), p = s.left + f.scrollLeft - u.x - c.x, l = s.top + f.scrollTop - u.y - c.y;
|
|
1855
|
+
return {
|
|
1856
|
+
x: p,
|
|
1857
|
+
y: l,
|
|
1858
|
+
width: s.width,
|
|
1859
|
+
height: s.height
|
|
1860
|
+
};
|
|
1861
|
+
}
|
|
1862
|
+
function Ge(e) {
|
|
1863
|
+
return H(e).position === "static";
|
|
1864
|
+
}
|
|
1865
|
+
function bt(e, t) {
|
|
1866
|
+
if (!K(e) || H(e).position === "fixed")
|
|
1867
|
+
return null;
|
|
1868
|
+
if (t)
|
|
1869
|
+
return t(e);
|
|
1870
|
+
let r = e.offsetParent;
|
|
1871
|
+
return q(e) === r && (r = r.ownerDocument.body), r;
|
|
1872
|
+
}
|
|
1873
|
+
function Yt(e, t) {
|
|
1874
|
+
const r = I(e);
|
|
1875
|
+
if (Le(e))
|
|
1876
|
+
return r;
|
|
1877
|
+
if (!K(e)) {
|
|
1878
|
+
let o = ee(e);
|
|
1879
|
+
for (; o && !le(o); ) {
|
|
1880
|
+
if (G(o) && !Ge(o))
|
|
1881
|
+
return o;
|
|
1882
|
+
o = ee(o);
|
|
1883
|
+
}
|
|
1884
|
+
return r;
|
|
1885
|
+
}
|
|
1886
|
+
let n = bt(e, t);
|
|
1887
|
+
for (; n && xr(n) && Ge(n); )
|
|
1888
|
+
n = bt(n, t);
|
|
1889
|
+
return n && le(n) && Ge(n) && !ot(n) ? r : n || Or(e) || r;
|
|
1890
|
+
}
|
|
1891
|
+
const kr = async function(e) {
|
|
1892
|
+
const t = this.getOffsetParent || Yt, r = this.getDimensions, n = await r(e.floating);
|
|
1893
|
+
return {
|
|
1894
|
+
reference: _r(e.reference, await t(e.floating), e.strategy),
|
|
1895
|
+
floating: {
|
|
1896
|
+
x: 0,
|
|
1897
|
+
y: 0,
|
|
1898
|
+
width: n.width,
|
|
1899
|
+
height: n.height
|
|
1900
|
+
}
|
|
1901
|
+
};
|
|
1902
|
+
};
|
|
1903
|
+
function Mr(e) {
|
|
1904
|
+
return H(e).direction === "rtl";
|
|
1905
|
+
}
|
|
1906
|
+
const Lr = {
|
|
1907
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Tr,
|
|
1908
|
+
getDocumentElement: q,
|
|
1909
|
+
getClippingRect: Dr,
|
|
1910
|
+
getOffsetParent: Yt,
|
|
1911
|
+
getElementRects: kr,
|
|
1912
|
+
getClientRects: Pr,
|
|
1913
|
+
getDimensions: Fr,
|
|
1914
|
+
getScale: ce,
|
|
1915
|
+
isElement: G,
|
|
1916
|
+
isRTL: Mr
|
|
1917
|
+
};
|
|
1918
|
+
function Xt(e, t) {
|
|
1919
|
+
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1920
|
+
}
|
|
1921
|
+
function Ir(e, t) {
|
|
1922
|
+
let r = null, n;
|
|
1923
|
+
const o = q(e);
|
|
1924
|
+
function a() {
|
|
1925
|
+
var f;
|
|
1926
|
+
clearTimeout(n), (f = r) == null || f.disconnect(), r = null;
|
|
1927
|
+
}
|
|
1928
|
+
function s(f, u) {
|
|
1929
|
+
f === void 0 && (f = !1), u === void 0 && (u = 1), a();
|
|
1930
|
+
const c = e.getBoundingClientRect(), {
|
|
1931
|
+
left: p,
|
|
1932
|
+
top: l,
|
|
1933
|
+
width: i,
|
|
1934
|
+
height: d
|
|
1935
|
+
} = c;
|
|
1936
|
+
if (f || t(), !i || !d)
|
|
1937
|
+
return;
|
|
1938
|
+
const g = Pe(l), h = Pe(o.clientWidth - (p + i)), m = Pe(o.clientHeight - (l + d)), y = Pe(p), x = {
|
|
1939
|
+
rootMargin: -g + "px " + -h + "px " + -m + "px " + -y + "px",
|
|
1940
|
+
threshold: L(0, Q(1, u)) || 1
|
|
1941
|
+
};
|
|
1942
|
+
let N = !0;
|
|
1943
|
+
function E(P) {
|
|
1944
|
+
const A = P[0].intersectionRatio;
|
|
1945
|
+
if (A !== u) {
|
|
1946
|
+
if (!N)
|
|
1947
|
+
return s();
|
|
1948
|
+
A ? s(!1, A) : n = setTimeout(() => {
|
|
1949
|
+
s(!1, 1e-7);
|
|
1950
|
+
}, 1e3);
|
|
1951
|
+
}
|
|
1952
|
+
A === 1 && !Xt(c, e.getBoundingClientRect()) && s(), N = !1;
|
|
1953
|
+
}
|
|
1954
|
+
try {
|
|
1955
|
+
r = new IntersectionObserver(E, {
|
|
1956
|
+
...x,
|
|
1957
|
+
// Handle <iframe>s
|
|
1958
|
+
root: o.ownerDocument
|
|
1959
|
+
});
|
|
1960
|
+
} catch {
|
|
1961
|
+
r = new IntersectionObserver(E, x);
|
|
1962
|
+
}
|
|
1963
|
+
r.observe(e);
|
|
1964
|
+
}
|
|
1965
|
+
return s(!0), a;
|
|
1966
|
+
}
|
|
1967
|
+
function $r(e, t, r, n) {
|
|
1968
|
+
n === void 0 && (n = {});
|
|
1969
|
+
const {
|
|
1970
|
+
ancestorScroll: o = !0,
|
|
1971
|
+
ancestorResize: a = !0,
|
|
1972
|
+
elementResize: s = typeof ResizeObserver == "function",
|
|
1973
|
+
layoutShift: f = typeof IntersectionObserver == "function",
|
|
1974
|
+
animationFrame: u = !1
|
|
1975
|
+
} = n, c = st(e), p = o || a ? [...c ? xe(c) : [], ...xe(t)] : [];
|
|
1976
|
+
p.forEach((y) => {
|
|
1977
|
+
o && y.addEventListener("scroll", r, {
|
|
1978
|
+
passive: !0
|
|
1979
|
+
}), a && y.addEventListener("resize", r);
|
|
1980
|
+
});
|
|
1981
|
+
const l = c && f ? Ir(c, r) : null;
|
|
1982
|
+
let i = -1, d = null;
|
|
1983
|
+
s && (d = new ResizeObserver((y) => {
|
|
1984
|
+
let [w] = y;
|
|
1985
|
+
w && w.target === c && d && (d.unobserve(t), cancelAnimationFrame(i), i = requestAnimationFrame(() => {
|
|
1986
|
+
var x;
|
|
1987
|
+
(x = d) == null || x.observe(t);
|
|
1988
|
+
})), r();
|
|
1989
|
+
}), c && !u && d.observe(c), d.observe(t));
|
|
1990
|
+
let g, h = u ? ne(e) : null;
|
|
1991
|
+
u && m();
|
|
1992
|
+
function m() {
|
|
1993
|
+
const y = ne(e);
|
|
1994
|
+
h && !Xt(h, y) && r(), h = y, g = requestAnimationFrame(m);
|
|
1995
|
+
}
|
|
1996
|
+
return r(), () => {
|
|
1997
|
+
var y;
|
|
1998
|
+
p.forEach((w) => {
|
|
1999
|
+
o && w.removeEventListener("scroll", r), a && w.removeEventListener("resize", r);
|
|
2000
|
+
}), l?.(), (y = d) == null || y.disconnect(), d = null, u && cancelAnimationFrame(g);
|
|
2001
|
+
};
|
|
2002
|
+
}
|
|
2003
|
+
const Br = yr, Vr = vr, Gr = gr, Hr = wr, Wr = hr, Ur = pr, jr = br, zr = (e, t, r) => {
|
|
2004
|
+
const n = /* @__PURE__ */ new Map(), o = {
|
|
2005
|
+
platform: Lr,
|
|
2006
|
+
...r
|
|
2007
|
+
}, a = {
|
|
2008
|
+
...o.platform,
|
|
2009
|
+
_c: n
|
|
2010
|
+
};
|
|
2011
|
+
return dr(e, t, {
|
|
2012
|
+
...o,
|
|
2013
|
+
platform: a
|
|
2014
|
+
});
|
|
2015
|
+
};
|
|
2016
|
+
function wt(e = 0, t = 0, r = 0, n = 0) {
|
|
2017
|
+
if (typeof DOMRect == "function")
|
|
2018
|
+
return new DOMRect(e, t, r, n);
|
|
2019
|
+
const o = {
|
|
2020
|
+
x: e,
|
|
2021
|
+
y: t,
|
|
2022
|
+
width: r,
|
|
2023
|
+
height: n,
|
|
2024
|
+
top: t,
|
|
2025
|
+
right: e + r,
|
|
2026
|
+
bottom: t + n,
|
|
2027
|
+
left: e
|
|
2028
|
+
};
|
|
2029
|
+
return { ...o, toJSON: () => o };
|
|
2030
|
+
}
|
|
2031
|
+
function Kr(e) {
|
|
2032
|
+
if (!e) return wt();
|
|
2033
|
+
const { x: t, y: r, width: n, height: o } = e;
|
|
2034
|
+
return wt(t, r, n, o);
|
|
2035
|
+
}
|
|
2036
|
+
function qr(e, t) {
|
|
2037
|
+
return {
|
|
2038
|
+
contextElement: En(e) ? e : void 0,
|
|
2039
|
+
getBoundingClientRect: () => {
|
|
2040
|
+
const r = e, n = t?.(r);
|
|
2041
|
+
return n || !r ? Kr(n) : r.getBoundingClientRect();
|
|
2042
|
+
}
|
|
2043
|
+
};
|
|
2044
|
+
}
|
|
2045
|
+
var ge = (e) => ({ variable: e, reference: `var(${e})` }), Y = {
|
|
2046
|
+
arrowSize: ge("--arrow-size"),
|
|
2047
|
+
arrowSizeHalf: ge("--arrow-size-half"),
|
|
2048
|
+
arrowBg: ge("--arrow-background"),
|
|
2049
|
+
transformOrigin: ge("--transform-origin"),
|
|
2050
|
+
arrowOffset: ge("--arrow-offset")
|
|
2051
|
+
}, Yr = (e) => ({
|
|
2052
|
+
top: "bottom center",
|
|
2053
|
+
"top-start": e ? `${e.x}px bottom` : "left bottom",
|
|
2054
|
+
"top-end": e ? `${e.x}px bottom` : "right bottom",
|
|
2055
|
+
bottom: "top center",
|
|
2056
|
+
"bottom-start": e ? `${e.x}px top` : "top left",
|
|
2057
|
+
"bottom-end": e ? `${e.x}px top` : "top right",
|
|
2058
|
+
left: "right center",
|
|
2059
|
+
"left-start": e ? `right ${e.y}px` : "right top",
|
|
2060
|
+
"left-end": e ? `right ${e.y}px` : "right bottom",
|
|
2061
|
+
right: "left center",
|
|
2062
|
+
"right-start": e ? `left ${e.y}px` : "left top",
|
|
2063
|
+
"right-end": e ? `left ${e.y}px` : "left bottom"
|
|
2064
|
+
}), Xr = {
|
|
2065
|
+
name: "transformOrigin",
|
|
2066
|
+
fn({ placement: e, elements: t, middlewareData: r }) {
|
|
2067
|
+
const { arrow: n } = r, o = Yr(n)[e], { floating: a } = t;
|
|
2068
|
+
return a.style.setProperty(Y.transformOrigin.variable, o), {
|
|
2069
|
+
data: { transformOrigin: o }
|
|
2070
|
+
};
|
|
2071
|
+
}
|
|
2072
|
+
}, Jr = {
|
|
2073
|
+
name: "rects",
|
|
2074
|
+
fn({ rects: e }) {
|
|
2075
|
+
return {
|
|
2076
|
+
data: e
|
|
2077
|
+
};
|
|
2078
|
+
}
|
|
2079
|
+
}, Zr = (e) => {
|
|
2080
|
+
if (e)
|
|
2081
|
+
return {
|
|
2082
|
+
name: "shiftArrow",
|
|
2083
|
+
fn({ placement: t, middlewareData: r }) {
|
|
2084
|
+
if (!r.arrow) return {};
|
|
2085
|
+
const { x: n, y: o } = r.arrow, a = t.split("-")[0];
|
|
2086
|
+
return Object.assign(e.style, {
|
|
2087
|
+
left: n != null ? `${n}px` : "",
|
|
2088
|
+
top: o != null ? `${o}px` : "",
|
|
2089
|
+
[a]: `calc(100% + ${Y.arrowOffset.reference})`
|
|
2090
|
+
}), {};
|
|
2091
|
+
}
|
|
2092
|
+
};
|
|
2093
|
+
};
|
|
2094
|
+
function Qr(e) {
|
|
2095
|
+
const [t, r] = e.split("-");
|
|
2096
|
+
return { side: t, align: r, hasAlign: r != null };
|
|
2097
|
+
}
|
|
2098
|
+
function Wo(e) {
|
|
2099
|
+
return e.split("-")[0];
|
|
2100
|
+
}
|
|
2101
|
+
var eo = {
|
|
2102
|
+
strategy: "absolute",
|
|
2103
|
+
placement: "bottom",
|
|
2104
|
+
listeners: !0,
|
|
2105
|
+
gutter: 8,
|
|
2106
|
+
flip: !0,
|
|
2107
|
+
slide: !0,
|
|
2108
|
+
overlap: !1,
|
|
2109
|
+
sameWidth: !1,
|
|
2110
|
+
fitViewport: !1,
|
|
2111
|
+
overflowPadding: 8,
|
|
2112
|
+
arrowPadding: 4
|
|
2113
|
+
};
|
|
2114
|
+
function xt(e, t) {
|
|
2115
|
+
const r = e.devicePixelRatio || 1;
|
|
2116
|
+
return Math.round(t * r) / r;
|
|
2117
|
+
}
|
|
2118
|
+
function Jt(e) {
|
|
2119
|
+
return Tn(e.boundary);
|
|
2120
|
+
}
|
|
2121
|
+
function to(e, t) {
|
|
2122
|
+
if (e)
|
|
2123
|
+
return Ur({
|
|
2124
|
+
element: e,
|
|
2125
|
+
padding: t.arrowPadding
|
|
2126
|
+
});
|
|
2127
|
+
}
|
|
2128
|
+
function no(e, t) {
|
|
2129
|
+
if (!Nn(t.offset ?? t.gutter))
|
|
2130
|
+
return Br(({ placement: r }) => {
|
|
2131
|
+
const n = (e?.clientHeight || 0) / 2, o = t.offset?.mainAxis ?? t.gutter, a = typeof o == "number" ? o + n : o ?? n, { hasAlign: s } = Qr(r), f = s ? void 0 : t.shift, u = t.offset?.crossAxis ?? f;
|
|
2132
|
+
return At({
|
|
2133
|
+
crossAxis: u,
|
|
2134
|
+
mainAxis: a,
|
|
2135
|
+
alignmentAxis: t.shift
|
|
2136
|
+
});
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2139
|
+
function ro(e) {
|
|
2140
|
+
if (e.flip)
|
|
2141
|
+
return Gr({
|
|
2142
|
+
boundary: Jt(e),
|
|
2143
|
+
padding: e.overflowPadding,
|
|
2144
|
+
fallbackPlacements: e.flip === !0 ? void 0 : e.flip
|
|
2145
|
+
});
|
|
2146
|
+
}
|
|
2147
|
+
function oo(e) {
|
|
2148
|
+
if (!(!e.slide && !e.overlap))
|
|
2149
|
+
return Vr({
|
|
2150
|
+
boundary: Jt(e),
|
|
2151
|
+
mainAxis: e.slide,
|
|
2152
|
+
crossAxis: e.overlap,
|
|
2153
|
+
padding: e.overflowPadding,
|
|
2154
|
+
limiter: jr()
|
|
2155
|
+
});
|
|
2156
|
+
}
|
|
2157
|
+
function io(e) {
|
|
2158
|
+
return Hr({
|
|
2159
|
+
padding: e.overflowPadding,
|
|
2160
|
+
apply({ elements: t, rects: r, availableHeight: n, availableWidth: o }) {
|
|
2161
|
+
const a = t.floating, s = Math.round(r.reference.width);
|
|
2162
|
+
o = Math.floor(o), n = Math.floor(n), a.style.setProperty("--reference-width", `${s}px`), a.style.setProperty("--available-width", `${o}px`), a.style.setProperty("--available-height", `${n}px`);
|
|
2163
|
+
}
|
|
2164
|
+
});
|
|
2165
|
+
}
|
|
2166
|
+
function so(e) {
|
|
2167
|
+
if (e.hideWhenDetached)
|
|
2168
|
+
return Wr({ strategy: "referenceHidden", boundary: e.boundary?.() ?? "clippingAncestors" });
|
|
2169
|
+
}
|
|
2170
|
+
function ao(e) {
|
|
2171
|
+
return e ? e === !0 ? { ancestorResize: !0, ancestorScroll: !0, elementResize: !0, layoutShift: !0 } : e : {};
|
|
2172
|
+
}
|
|
2173
|
+
function co(e, t, r = {}) {
|
|
2174
|
+
const n = qr(e, r.getAnchorRect);
|
|
2175
|
+
if (!t || !n) return;
|
|
2176
|
+
const o = Object.assign({}, eo, r), a = t.querySelector("[data-part=arrow]"), s = [
|
|
2177
|
+
no(a, o),
|
|
2178
|
+
ro(o),
|
|
2179
|
+
oo(o),
|
|
2180
|
+
to(a, o),
|
|
2181
|
+
Zr(a),
|
|
2182
|
+
Xr,
|
|
2183
|
+
io(o),
|
|
2184
|
+
so(o),
|
|
2185
|
+
Jr
|
|
2186
|
+
], { placement: f, strategy: u, onComplete: c, onPositioned: p } = o, l = async () => {
|
|
2187
|
+
if (!n || !t) return;
|
|
2188
|
+
const h = await zr(n, t, {
|
|
2189
|
+
placement: f,
|
|
2190
|
+
middleware: s,
|
|
2191
|
+
strategy: u
|
|
2192
|
+
});
|
|
2193
|
+
c?.(h), p?.({ placed: !0 });
|
|
2194
|
+
const m = Pn(t), y = xt(m, h.x), w = xt(m, h.y);
|
|
2195
|
+
t.style.setProperty("--x", `${y}px`), t.style.setProperty("--y", `${w}px`), o.hideWhenDetached && (h.middlewareData.hide?.referenceHidden ? (t.style.setProperty("visibility", "hidden"), t.style.setProperty("pointer-events", "none")) : (t.style.removeProperty("visibility"), t.style.removeProperty("pointer-events")));
|
|
2196
|
+
const x = t.firstElementChild;
|
|
2197
|
+
if (x) {
|
|
2198
|
+
const N = Dt(x);
|
|
2199
|
+
t.style.setProperty("--z-index", N.zIndex);
|
|
2200
|
+
}
|
|
2201
|
+
}, i = async () => {
|
|
2202
|
+
r.updatePosition ? (await r.updatePosition({ updatePosition: l }), p?.({ placed: !0 })) : await l();
|
|
2203
|
+
}, d = ao(o.listeners), g = o.listeners ? $r(n, t, i, d) : On;
|
|
2204
|
+
return i(), () => {
|
|
2205
|
+
g?.(), p?.({ placed: !1 });
|
|
2206
|
+
};
|
|
2207
|
+
}
|
|
2208
|
+
function Ot(e, t, r = {}) {
|
|
2209
|
+
const { defer: n, ...o } = r, a = n ? te : (f) => f(), s = [];
|
|
2210
|
+
return s.push(
|
|
2211
|
+
a(() => {
|
|
2212
|
+
const f = typeof e == "function" ? e() : e, u = typeof t == "function" ? t() : t;
|
|
2213
|
+
s.push(co(f, u, o));
|
|
2214
|
+
})
|
|
2215
|
+
), () => {
|
|
2216
|
+
s.forEach((f) => f?.());
|
|
2217
|
+
};
|
|
2218
|
+
}
|
|
2219
|
+
var lo = {
|
|
2220
|
+
bottom: "rotate(45deg)",
|
|
2221
|
+
left: "rotate(135deg)",
|
|
2222
|
+
top: "rotate(225deg)",
|
|
2223
|
+
right: "rotate(315deg)"
|
|
2224
|
+
};
|
|
2225
|
+
function uo(e = {}) {
|
|
2226
|
+
const { placement: t, sameWidth: r, fitViewport: n, strategy: o = "absolute" } = e;
|
|
2227
|
+
return {
|
|
2228
|
+
arrow: {
|
|
2229
|
+
position: "absolute",
|
|
2230
|
+
width: Y.arrowSize.reference,
|
|
2231
|
+
height: Y.arrowSize.reference,
|
|
2232
|
+
[Y.arrowSizeHalf.variable]: `calc(${Y.arrowSize.reference} / 2)`,
|
|
2233
|
+
[Y.arrowOffset.variable]: `calc(${Y.arrowSizeHalf.reference} * -1)`
|
|
2234
|
+
},
|
|
2235
|
+
arrowTip: {
|
|
2236
|
+
// @ts-expect-error - Fix this
|
|
2237
|
+
transform: t ? lo[t.split("-")[0]] : void 0,
|
|
2238
|
+
background: Y.arrowBg.reference,
|
|
2239
|
+
top: "0",
|
|
2240
|
+
left: "0",
|
|
2241
|
+
width: "100%",
|
|
2242
|
+
height: "100%",
|
|
2243
|
+
position: "absolute",
|
|
2244
|
+
zIndex: "inherit"
|
|
2245
|
+
},
|
|
2246
|
+
floating: {
|
|
2247
|
+
position: o,
|
|
2248
|
+
isolation: "isolate",
|
|
2249
|
+
minWidth: r ? void 0 : "max-content",
|
|
2250
|
+
width: r ? "var(--reference-width)" : void 0,
|
|
2251
|
+
maxWidth: n ? "var(--available-width)" : void 0,
|
|
2252
|
+
maxHeight: n ? "var(--available-height)" : void 0,
|
|
2253
|
+
pointerEvents: t ? void 0 : "none",
|
|
2254
|
+
top: "0px",
|
|
2255
|
+
left: "0px",
|
|
2256
|
+
// move off-screen if placement is not defined
|
|
2257
|
+
transform: t ? "translate3d(var(--x), var(--y), 0)" : "translate3d(0, -100vh, 0)",
|
|
2258
|
+
zIndex: "var(--z-index)"
|
|
2259
|
+
}
|
|
2260
|
+
};
|
|
2261
|
+
}
|
|
2262
|
+
var ie = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Ce = {}, He = 0, Zt = (e) => e && (e.host || Zt(e.parentNode)), fo = (e, t) => t.map((r) => {
|
|
2263
|
+
if (e.contains(r)) return r;
|
|
2264
|
+
const n = Zt(r);
|
|
2265
|
+
return n && e.contains(n) ? n : (console.error("[zag-js > ariaHidden] target", r, "in not contained inside", e, ". Doing nothing"), null);
|
|
2266
|
+
}).filter((r) => !!r), po = (e) => e.localName === "next-route-announcer" || e.localName === "script" || e.hasAttribute("aria-live") ? !0 : e.matches("[data-live-announcer]"), go = (e, t) => {
|
|
2267
|
+
const { parentNode: r, markerName: n, controlAttribute: o } = t, a = fo(r, Array.isArray(e) ? e : [e]);
|
|
2268
|
+
Ce[n] || (Ce[n] = /* @__PURE__ */ new WeakMap());
|
|
2269
|
+
const s = Ce[n], f = [], u = /* @__PURE__ */ new Set(), c = new Set(a), p = (i) => {
|
|
2270
|
+
!i || u.has(i) || (u.add(i), p(i.parentNode));
|
|
2271
|
+
};
|
|
2272
|
+
a.forEach(p);
|
|
2273
|
+
const l = (i) => {
|
|
2274
|
+
!i || c.has(i) || Array.prototype.forEach.call(i.children, (d) => {
|
|
2275
|
+
if (u.has(d))
|
|
2276
|
+
l(d);
|
|
2277
|
+
else
|
|
2278
|
+
try {
|
|
2279
|
+
if (po(d)) return;
|
|
2280
|
+
const h = d.getAttribute(o) === "true", m = (ie.get(d) || 0) + 1, y = (s.get(d) || 0) + 1;
|
|
2281
|
+
ie.set(d, m), s.set(d, y), f.push(d), m === 1 && h && Se.set(d, !0), y === 1 && d.setAttribute(n, ""), h || d.setAttribute(o, "true");
|
|
2282
|
+
} catch (g) {
|
|
2283
|
+
console.error("[zag-js > ariaHidden] cannot operate on ", d, g);
|
|
2284
|
+
}
|
|
2285
|
+
});
|
|
2286
|
+
};
|
|
2287
|
+
return l(r), u.clear(), He++, () => {
|
|
2288
|
+
f.forEach((i) => {
|
|
2289
|
+
const d = ie.get(i) - 1, g = s.get(i) - 1;
|
|
2290
|
+
ie.set(i, d), s.set(i, g), d || (Se.has(i) || i.removeAttribute(o), Se.delete(i)), g || i.removeAttribute(n);
|
|
2291
|
+
}), He--, He || (ie = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Ce = {});
|
|
2292
|
+
};
|
|
2293
|
+
}, ho = (e) => (Array.isArray(e) ? e[0] : e).ownerDocument.body, mo = (e, t = ho(e), r = "data-aria-hidden") => {
|
|
2294
|
+
if (t)
|
|
2295
|
+
return go(e, {
|
|
2296
|
+
parentNode: t,
|
|
2297
|
+
markerName: r,
|
|
2298
|
+
controlAttribute: "aria-hidden"
|
|
2299
|
+
});
|
|
2300
|
+
}, yo = (e) => {
|
|
2301
|
+
const t = requestAnimationFrame(() => e());
|
|
2302
|
+
return () => cancelAnimationFrame(t);
|
|
2303
|
+
};
|
|
2304
|
+
function vo(e, t = {}) {
|
|
2305
|
+
const { defer: r = !0 } = t, n = r ? yo : (a) => a(), o = [];
|
|
2306
|
+
return o.push(
|
|
2307
|
+
n(() => {
|
|
2308
|
+
const s = (typeof e == "function" ? e() : e).filter(Boolean);
|
|
2309
|
+
s.length !== 0 && o.push(mo(s));
|
|
2310
|
+
})
|
|
2311
|
+
), () => {
|
|
2312
|
+
o.forEach((a) => a?.());
|
|
2313
|
+
};
|
|
2314
|
+
}
|
|
2315
|
+
var bo = Object.defineProperty, wo = (e, t, r) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, S = (e, t, r) => wo(e, typeof t != "symbol" ? t + "" : t, r), Et = {
|
|
2316
|
+
activateTrap(e, t) {
|
|
2317
|
+
if (e.length > 0) {
|
|
2318
|
+
const n = e[e.length - 1];
|
|
2319
|
+
n !== t && n.pause();
|
|
2320
|
+
}
|
|
2321
|
+
const r = e.indexOf(t);
|
|
2322
|
+
r === -1 || e.splice(r, 1), e.push(t);
|
|
2323
|
+
},
|
|
2324
|
+
deactivateTrap(e, t) {
|
|
2325
|
+
const r = e.indexOf(t);
|
|
2326
|
+
r !== -1 && e.splice(r, 1), e.length > 0 && e[e.length - 1].unpause();
|
|
2327
|
+
}
|
|
2328
|
+
}, xo = [], Oo = class {
|
|
2329
|
+
constructor(e, t) {
|
|
2330
|
+
S(this, "trapStack"), S(this, "config"), S(this, "doc"), S(this, "state", {
|
|
2331
|
+
containers: [],
|
|
2332
|
+
containerGroups: [],
|
|
2333
|
+
tabbableGroups: [],
|
|
2334
|
+
nodeFocusedBeforeActivation: null,
|
|
2335
|
+
mostRecentlyFocusedNode: null,
|
|
2336
|
+
active: !1,
|
|
2337
|
+
paused: !1,
|
|
2338
|
+
delayInitialFocusTimer: void 0,
|
|
2339
|
+
recentNavEvent: void 0
|
|
2340
|
+
}), S(this, "listenerCleanups", []), S(this, "handleFocus", (n) => {
|
|
2341
|
+
const o = ve(n), a = this.findContainerIndex(o, n) >= 0;
|
|
2342
|
+
if (a || An(o))
|
|
2343
|
+
a && (this.state.mostRecentlyFocusedNode = o);
|
|
2344
|
+
else {
|
|
2345
|
+
n.stopImmediatePropagation();
|
|
2346
|
+
let s, f = !0;
|
|
2347
|
+
if (this.state.mostRecentlyFocusedNode)
|
|
2348
|
+
if (pe(this.state.mostRecentlyFocusedNode) > 0) {
|
|
2349
|
+
const u = this.findContainerIndex(this.state.mostRecentlyFocusedNode), { tabbableNodes: c } = this.state.containerGroups[u];
|
|
2350
|
+
if (c.length > 0) {
|
|
2351
|
+
const p = c.findIndex((l) => l === this.state.mostRecentlyFocusedNode);
|
|
2352
|
+
p >= 0 && (this.config.isKeyForward(this.state.recentNavEvent) ? p + 1 < c.length && (s = c[p + 1], f = !1) : p - 1 >= 0 && (s = c[p - 1], f = !1));
|
|
2353
|
+
}
|
|
2354
|
+
} else
|
|
2355
|
+
this.state.containerGroups.some((u) => u.tabbableNodes.some((c) => pe(c) > 0)) || (f = !1);
|
|
2356
|
+
else
|
|
2357
|
+
f = !1;
|
|
2358
|
+
f && (s = this.findNextNavNode({
|
|
2359
|
+
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
2360
|
+
// outside the trap causing the focus escape we're trying to fix)
|
|
2361
|
+
target: this.state.mostRecentlyFocusedNode,
|
|
2362
|
+
isBackward: this.config.isKeyBackward(this.state.recentNavEvent)
|
|
2363
|
+
})), s ? this.tryFocus(s) : this.tryFocus(this.state.mostRecentlyFocusedNode || this.getInitialFocusNode());
|
|
2364
|
+
}
|
|
2365
|
+
this.state.recentNavEvent = void 0;
|
|
2366
|
+
}), S(this, "handlePointerDown", (n) => {
|
|
2367
|
+
const o = ve(n);
|
|
2368
|
+
if (!(this.findContainerIndex(o, n) >= 0)) {
|
|
2369
|
+
if (me(this.config.clickOutsideDeactivates, n)) {
|
|
2370
|
+
this.deactivate({ returnFocus: this.config.returnFocusOnDeactivate });
|
|
2371
|
+
return;
|
|
2372
|
+
}
|
|
2373
|
+
me(this.config.allowOutsideClick, n) || n.preventDefault();
|
|
2374
|
+
}
|
|
2375
|
+
}), S(this, "handleClick", (n) => {
|
|
2376
|
+
const o = ve(n);
|
|
2377
|
+
this.findContainerIndex(o, n) >= 0 || me(this.config.clickOutsideDeactivates, n) || me(this.config.allowOutsideClick, n) || (n.preventDefault(), n.stopImmediatePropagation());
|
|
2378
|
+
}), S(this, "handleTabKey", (n) => {
|
|
2379
|
+
if (this.config.isKeyForward(n) || this.config.isKeyBackward(n)) {
|
|
2380
|
+
this.state.recentNavEvent = n;
|
|
2381
|
+
const o = this.config.isKeyBackward(n), a = this.findNextNavNode({ event: n, isBackward: o });
|
|
2382
|
+
if (!a) return;
|
|
2383
|
+
he(n) && n.preventDefault(), this.tryFocus(a);
|
|
2384
|
+
}
|
|
2385
|
+
}), S(this, "handleEscapeKey", (n) => {
|
|
2386
|
+
Eo(n) && me(this.config.escapeDeactivates, n) !== !1 && (n.preventDefault(), this.deactivate());
|
|
2387
|
+
}), S(this, "_mutationObserver"), S(this, "setupMutationObserver", () => {
|
|
2388
|
+
const n = this.doc.defaultView || window;
|
|
2389
|
+
this._mutationObserver = new n.MutationObserver((o) => {
|
|
2390
|
+
o.some((s) => Array.from(s.removedNodes).some((u) => u === this.state.mostRecentlyFocusedNode)) && this.tryFocus(this.getInitialFocusNode());
|
|
2391
|
+
});
|
|
2392
|
+
}), S(this, "updateObservedNodes", () => {
|
|
2393
|
+
this._mutationObserver?.disconnect(), this.state.active && !this.state.paused && this.state.containers.map((n) => {
|
|
2394
|
+
this._mutationObserver?.observe(n, { subtree: !0, childList: !0 });
|
|
2395
|
+
});
|
|
2396
|
+
}), S(this, "getInitialFocusNode", () => {
|
|
2397
|
+
let n = this.getNodeForOption("initialFocus", { hasFallback: !0 });
|
|
2398
|
+
if (n === !1)
|
|
2399
|
+
return !1;
|
|
2400
|
+
if (n === void 0 || n && !Be(n))
|
|
2401
|
+
if (this.findContainerIndex(this.doc.activeElement) >= 0)
|
|
2402
|
+
n = this.doc.activeElement;
|
|
2403
|
+
else {
|
|
2404
|
+
const o = this.state.tabbableGroups[0];
|
|
2405
|
+
n = o && o.firstTabbableNode || this.getNodeForOption("fallbackFocus");
|
|
2406
|
+
}
|
|
2407
|
+
else n === null && (n = this.getNodeForOption("fallbackFocus"));
|
|
2408
|
+
if (!n)
|
|
2409
|
+
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
2410
|
+
return n.isConnected || (n = this.getNodeForOption("fallbackFocus")), n;
|
|
2411
|
+
}), S(this, "tryFocus", (n) => {
|
|
2412
|
+
if (n !== !1 && n !== Rn(this.doc)) {
|
|
2413
|
+
if (!n || !n.focus) {
|
|
2414
|
+
this.tryFocus(this.getInitialFocusNode());
|
|
2415
|
+
return;
|
|
2416
|
+
}
|
|
2417
|
+
n.focus({ preventScroll: !!this.config.preventScroll }), this.state.mostRecentlyFocusedNode = n, No(n) && n.select();
|
|
2418
|
+
}
|
|
2419
|
+
}), S(this, "deactivate", (n) => {
|
|
2420
|
+
if (!this.state.active) return this;
|
|
2421
|
+
const o = {
|
|
2422
|
+
onDeactivate: this.config.onDeactivate,
|
|
2423
|
+
onPostDeactivate: this.config.onPostDeactivate,
|
|
2424
|
+
checkCanReturnFocus: this.config.checkCanReturnFocus,
|
|
2425
|
+
...n
|
|
2426
|
+
};
|
|
2427
|
+
clearTimeout(this.state.delayInitialFocusTimer), this.state.delayInitialFocusTimer = void 0, this.removeListeners(), this.state.active = !1, this.state.paused = !1, this.updateObservedNodes(), Et.deactivateTrap(this.trapStack, this);
|
|
2428
|
+
const a = this.getOption(o, "onDeactivate"), s = this.getOption(o, "onPostDeactivate"), f = this.getOption(o, "checkCanReturnFocus"), u = this.getOption(o, "returnFocus", "returnFocusOnDeactivate");
|
|
2429
|
+
a?.();
|
|
2430
|
+
const c = () => {
|
|
2431
|
+
Nt(() => {
|
|
2432
|
+
if (u) {
|
|
2433
|
+
const p = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);
|
|
2434
|
+
this.tryFocus(p);
|
|
2435
|
+
}
|
|
2436
|
+
s?.();
|
|
2437
|
+
});
|
|
2438
|
+
};
|
|
2439
|
+
if (u && f) {
|
|
2440
|
+
const p = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);
|
|
2441
|
+
return f(p).then(c, c), this;
|
|
2442
|
+
}
|
|
2443
|
+
return c(), this;
|
|
2444
|
+
}), S(this, "pause", (n) => {
|
|
2445
|
+
if (this.state.paused || !this.state.active)
|
|
2446
|
+
return this;
|
|
2447
|
+
const o = this.getOption(n, "onPause"), a = this.getOption(n, "onPostPause");
|
|
2448
|
+
return this.state.paused = !0, o?.(), this.removeListeners(), this.updateObservedNodes(), a?.(), this;
|
|
2449
|
+
}), S(this, "unpause", (n) => {
|
|
2450
|
+
if (!this.state.paused || !this.state.active)
|
|
2451
|
+
return this;
|
|
2452
|
+
const o = this.getOption(n, "onUnpause"), a = this.getOption(n, "onPostUnpause");
|
|
2453
|
+
return this.state.paused = !1, o?.(), this.updateTabbableNodes(), this.addListeners(), this.updateObservedNodes(), a?.(), this;
|
|
2454
|
+
}), S(this, "updateContainerElements", (n) => (this.state.containers = Array.isArray(n) ? n.filter(Boolean) : [n].filter(Boolean), this.state.active && this.updateTabbableNodes(), this.updateObservedNodes(), this)), S(this, "getReturnFocusNode", (n) => {
|
|
2455
|
+
const o = this.getNodeForOption("setReturnFocus", {
|
|
2456
|
+
params: [n]
|
|
2457
|
+
});
|
|
2458
|
+
return o || (o === !1 ? !1 : n);
|
|
2459
|
+
}), S(this, "getOption", (n, o, a) => n && n[o] !== void 0 ? n[o] : (
|
|
2460
|
+
// @ts-expect-error
|
|
2461
|
+
this.config[a || o]
|
|
2462
|
+
)), S(this, "getNodeForOption", (n, { hasFallback: o = !1, params: a = [] } = {}) => {
|
|
2463
|
+
let s = this.config[n];
|
|
2464
|
+
if (typeof s == "function" && (s = s(...a)), s === !0 && (s = void 0), !s) {
|
|
2465
|
+
if (s === void 0 || s === !1)
|
|
2466
|
+
return s;
|
|
2467
|
+
throw new Error(`\`${n}\` was specified but was not a node, or did not return a node`);
|
|
2468
|
+
}
|
|
2469
|
+
let f = s;
|
|
2470
|
+
if (typeof s == "string") {
|
|
2471
|
+
try {
|
|
2472
|
+
f = this.doc.querySelector(s);
|
|
2473
|
+
} catch (u) {
|
|
2474
|
+
throw new Error(`\`${n}\` appears to be an invalid selector; error="${u.message}"`);
|
|
2475
|
+
}
|
|
2476
|
+
if (!f && !o)
|
|
2477
|
+
throw new Error(`\`${n}\` as selector refers to no known node`);
|
|
2478
|
+
}
|
|
2479
|
+
return f;
|
|
2480
|
+
}), S(this, "findNextNavNode", (n) => {
|
|
2481
|
+
const { event: o, isBackward: a = !1 } = n, s = n.target || ve(o);
|
|
2482
|
+
this.updateTabbableNodes();
|
|
2483
|
+
let f = null;
|
|
2484
|
+
if (this.state.tabbableGroups.length > 0) {
|
|
2485
|
+
const u = this.findContainerIndex(s, o), c = u >= 0 ? this.state.containerGroups[u] : void 0;
|
|
2486
|
+
if (u < 0)
|
|
2487
|
+
a ? f = this.state.tabbableGroups[this.state.tabbableGroups.length - 1].lastTabbableNode : f = this.state.tabbableGroups[0].firstTabbableNode;
|
|
2488
|
+
else if (a) {
|
|
2489
|
+
let p = this.state.tabbableGroups.findIndex(
|
|
2490
|
+
({ firstTabbableNode: l }) => s === l
|
|
2491
|
+
);
|
|
2492
|
+
if (p < 0 && (c?.container === s || Be(s) && !re(s) && !c?.nextTabbableNode(s, !1)) && (p = u), p >= 0) {
|
|
2493
|
+
const l = p === 0 ? this.state.tabbableGroups.length - 1 : p - 1, i = this.state.tabbableGroups[l];
|
|
2494
|
+
f = pe(s) >= 0 ? i.lastTabbableNode : i.lastDomTabbableNode;
|
|
2495
|
+
} else he(o) || (f = c?.nextTabbableNode(s, !1));
|
|
2496
|
+
} else {
|
|
2497
|
+
let p = this.state.tabbableGroups.findIndex(
|
|
2498
|
+
({ lastTabbableNode: l }) => s === l
|
|
2499
|
+
);
|
|
2500
|
+
if (p < 0 && (c?.container === s || Be(s) && !re(s) && !c?.nextTabbableNode(s)) && (p = u), p >= 0) {
|
|
2501
|
+
const l = p === this.state.tabbableGroups.length - 1 ? 0 : p + 1, i = this.state.tabbableGroups[l];
|
|
2502
|
+
f = pe(s) >= 0 ? i.firstTabbableNode : i.firstDomTabbableNode;
|
|
2503
|
+
} else he(o) || (f = c?.nextTabbableNode(s));
|
|
2504
|
+
}
|
|
2505
|
+
} else
|
|
2506
|
+
f = this.getNodeForOption("fallbackFocus");
|
|
2507
|
+
return f;
|
|
2508
|
+
}), this.trapStack = t.trapStack || xo;
|
|
2509
|
+
const r = {
|
|
2510
|
+
returnFocusOnDeactivate: !0,
|
|
2511
|
+
escapeDeactivates: !0,
|
|
2512
|
+
delayInitialFocus: !0,
|
|
2513
|
+
isKeyForward(n) {
|
|
2514
|
+
return he(n) && !n.shiftKey;
|
|
2515
|
+
},
|
|
2516
|
+
isKeyBackward(n) {
|
|
2517
|
+
return he(n) && n.shiftKey;
|
|
2518
|
+
},
|
|
2519
|
+
...t
|
|
2520
|
+
};
|
|
2521
|
+
this.doc = r.document || Qe(Array.isArray(e) ? e[0] : e), this.config = r, this.updateContainerElements(e), this.setupMutationObserver();
|
|
2522
|
+
}
|
|
2523
|
+
get active() {
|
|
2524
|
+
return this.state.active;
|
|
2525
|
+
}
|
|
2526
|
+
get paused() {
|
|
2527
|
+
return this.state.paused;
|
|
2528
|
+
}
|
|
2529
|
+
findContainerIndex(e, t) {
|
|
2530
|
+
const r = typeof t?.composedPath == "function" ? t.composedPath() : void 0;
|
|
2531
|
+
return this.state.containerGroups.findIndex(
|
|
2532
|
+
({ container: n, tabbableNodes: o }) => n.contains(e) || r?.includes(n) || o.find((a) => a === e)
|
|
2533
|
+
);
|
|
2534
|
+
}
|
|
2535
|
+
updateTabbableNodes() {
|
|
2536
|
+
if (this.state.containerGroups = this.state.containers.map((e) => {
|
|
2537
|
+
const t = Sn(e), r = Cn(e), n = t.length > 0 ? t[0] : void 0, o = t.length > 0 ? t[t.length - 1] : void 0, a = r.find((c) => re(c)), s = r.slice().reverse().find((c) => re(c)), f = !!t.find((c) => pe(c) > 0);
|
|
2538
|
+
function u(c, p = !0) {
|
|
2539
|
+
const l = t.indexOf(c);
|
|
2540
|
+
return l < 0 ? p ? r.slice(r.indexOf(c) + 1).find((i) => re(i)) : r.slice(0, r.indexOf(c)).reverse().find((i) => re(i)) : t[l + (p ? 1 : -1)];
|
|
2541
|
+
}
|
|
2542
|
+
return {
|
|
2543
|
+
container: e,
|
|
2544
|
+
tabbableNodes: t,
|
|
2545
|
+
focusableNodes: r,
|
|
2546
|
+
posTabIndexesFound: f,
|
|
2547
|
+
firstTabbableNode: n,
|
|
2548
|
+
lastTabbableNode: o,
|
|
2549
|
+
firstDomTabbableNode: a,
|
|
2550
|
+
lastDomTabbableNode: s,
|
|
2551
|
+
nextTabbableNode: u
|
|
2552
|
+
};
|
|
2553
|
+
}), this.state.tabbableGroups = this.state.containerGroups.filter((e) => e.tabbableNodes.length > 0), this.state.tabbableGroups.length <= 0 && !this.getNodeForOption("fallbackFocus"))
|
|
2554
|
+
throw new Error(
|
|
2555
|
+
"Your focus-trap must have at least one container with at least one tabbable node in it at all times"
|
|
2556
|
+
);
|
|
2557
|
+
if (this.state.containerGroups.find((e) => e.posTabIndexesFound) && this.state.containerGroups.length > 1)
|
|
2558
|
+
throw new Error(
|
|
2559
|
+
"At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps."
|
|
2560
|
+
);
|
|
2561
|
+
}
|
|
2562
|
+
addListeners() {
|
|
2563
|
+
if (this.state.active)
|
|
2564
|
+
return Et.activateTrap(this.trapStack, this), this.state.delayInitialFocusTimer = this.config.delayInitialFocus ? Nt(() => {
|
|
2565
|
+
this.tryFocus(this.getInitialFocusNode());
|
|
2566
|
+
}) : this.tryFocus(this.getInitialFocusNode()), this.listenerCleanups.push(
|
|
2567
|
+
oe(this.doc, "focusin", this.handleFocus, !0),
|
|
2568
|
+
oe(this.doc, "mousedown", this.handlePointerDown, { capture: !0, passive: !1 }),
|
|
2569
|
+
oe(this.doc, "touchstart", this.handlePointerDown, { capture: !0, passive: !1 }),
|
|
2570
|
+
oe(this.doc, "click", this.handleClick, { capture: !0, passive: !1 }),
|
|
2571
|
+
oe(this.doc, "keydown", this.handleTabKey, { capture: !0, passive: !1 }),
|
|
2572
|
+
oe(this.doc, "keydown", this.handleEscapeKey)
|
|
2573
|
+
), this;
|
|
2574
|
+
}
|
|
2575
|
+
removeListeners() {
|
|
2576
|
+
if (this.state.active)
|
|
2577
|
+
return this.listenerCleanups.forEach((e) => e()), this.listenerCleanups = [], this;
|
|
2578
|
+
}
|
|
2579
|
+
activate(e) {
|
|
2580
|
+
if (this.state.active)
|
|
2581
|
+
return this;
|
|
2582
|
+
const t = this.getOption(e, "onActivate"), r = this.getOption(e, "onPostActivate"), n = this.getOption(e, "checkCanFocusTrap");
|
|
2583
|
+
n || this.updateTabbableNodes(), this.state.active = !0, this.state.paused = !1, this.state.nodeFocusedBeforeActivation = this.doc.activeElement || null, t?.();
|
|
2584
|
+
const o = () => {
|
|
2585
|
+
n && this.updateTabbableNodes(), this.addListeners(), this.updateObservedNodes(), r?.();
|
|
2586
|
+
};
|
|
2587
|
+
return n ? (n(this.state.containers.concat()).then(o, o), this) : (o(), this);
|
|
2588
|
+
}
|
|
2589
|
+
}, he = (e) => e.key === "Tab", me = (e, ...t) => typeof e == "function" ? e(...t) : e, Eo = (e) => !e.isComposing && e.key === "Escape", Nt = (e) => setTimeout(e, 0), No = (e) => e.localName === "input" && "select" in e && typeof e.select == "function";
|
|
2590
|
+
function To(e, t = {}) {
|
|
2591
|
+
let r;
|
|
2592
|
+
const n = te(() => {
|
|
2593
|
+
const o = typeof e == "function" ? e() : e;
|
|
2594
|
+
if (o) {
|
|
2595
|
+
r = new Oo(o, {
|
|
2596
|
+
escapeDeactivates: !1,
|
|
2597
|
+
allowOutsideClick: !0,
|
|
2598
|
+
preventScroll: !0,
|
|
2599
|
+
returnFocusOnDeactivate: !0,
|
|
2600
|
+
delayInitialFocus: !1,
|
|
2601
|
+
fallbackFocus: o,
|
|
2602
|
+
...t,
|
|
2603
|
+
document: Qe(o)
|
|
2604
|
+
});
|
|
2605
|
+
try {
|
|
2606
|
+
r.activate();
|
|
2607
|
+
} catch {
|
|
2608
|
+
}
|
|
2609
|
+
}
|
|
2610
|
+
});
|
|
2611
|
+
return function() {
|
|
2612
|
+
r?.deactivate(), n();
|
|
2613
|
+
};
|
|
2614
|
+
}
|
|
2615
|
+
var We = "data-scroll-lock";
|
|
2616
|
+
function Po(e) {
|
|
2617
|
+
const t = e.getBoundingClientRect().left;
|
|
2618
|
+
return Math.round(t) + e.scrollLeft ? "paddingLeft" : "paddingRight";
|
|
2619
|
+
}
|
|
2620
|
+
function So(e) {
|
|
2621
|
+
const t = e ?? document, r = t.defaultView ?? window, { documentElement: n, body: o } = t;
|
|
2622
|
+
if (o.hasAttribute(We)) return;
|
|
2623
|
+
o.setAttribute(We, "");
|
|
2624
|
+
const s = r.innerWidth - n.clientWidth, f = () => Dn(n, "--scrollbar-width", `${s}px`), u = Po(n), c = () => je(o, {
|
|
2625
|
+
overflow: "hidden",
|
|
2626
|
+
[u]: `${s}px`
|
|
2627
|
+
}), p = () => {
|
|
2628
|
+
const { scrollX: i, scrollY: d, visualViewport: g } = r, h = g?.offsetLeft ?? 0, m = g?.offsetTop ?? 0, y = je(o, {
|
|
2629
|
+
position: "fixed",
|
|
2630
|
+
overflow: "hidden",
|
|
2631
|
+
top: `${-(d - Math.floor(m))}px`,
|
|
2632
|
+
left: `${-(i - Math.floor(h))}px`,
|
|
2633
|
+
right: "0",
|
|
2634
|
+
[u]: `${s}px`
|
|
2635
|
+
});
|
|
2636
|
+
return () => {
|
|
2637
|
+
y?.(), r.scrollTo({ left: i, top: d, behavior: "instant" });
|
|
2638
|
+
};
|
|
2639
|
+
}, l = [f(), Fn() ? p() : c()];
|
|
2640
|
+
return () => {
|
|
2641
|
+
l.forEach((i) => i?.()), o.removeAttribute(We);
|
|
2642
|
+
};
|
|
2643
|
+
}
|
|
2644
|
+
var Co = Mn("popover").parts(
|
|
2645
|
+
"arrow",
|
|
2646
|
+
"arrowTip",
|
|
2647
|
+
"anchor",
|
|
2648
|
+
"trigger",
|
|
2649
|
+
"indicator",
|
|
2650
|
+
"positioner",
|
|
2651
|
+
"content",
|
|
2652
|
+
"title",
|
|
2653
|
+
"description",
|
|
2654
|
+
"closeTrigger"
|
|
2655
|
+
), W = Co.build(), Qt = (e) => e.ids?.anchor ?? `popover:${e.id}:anchor`, en = (e) => e.ids?.trigger ?? `popover:${e.id}:trigger`, Ye = (e) => e.ids?.content ?? `popover:${e.id}:content`, tn = (e) => e.ids?.positioner ?? `popover:${e.id}:popper`, Ao = (e) => e.ids?.arrow ?? `popover:${e.id}:arrow`, Xe = (e) => e.ids?.title ?? `popover:${e.id}:title`, Je = (e) => e.ids?.description ?? `popover:${e.id}:desc`, Ro = (e) => e.ids?.closeTrigger ?? `popover:${e.id}:close`, Tt = (e) => e.getById(Qt(e)), se = (e) => e.getById(en(e)), ae = (e) => e.getById(Ye(e)), Pt = (e) => e.getById(tn(e)), Do = (e) => e.getById(Xe(e)), Fo = (e) => e.getById(Je(e));
|
|
2656
|
+
function _o(e, t) {
|
|
2657
|
+
const { state: r, context: n, send: o, computed: a, prop: s, scope: f } = e, u = r.matches("open"), c = n.get("currentPlacement"), p = a("currentPortalled"), l = n.get("renderedElements"), i = uo({
|
|
2658
|
+
...s("positioning"),
|
|
2659
|
+
placement: c
|
|
2660
|
+
});
|
|
2661
|
+
return {
|
|
2662
|
+
portalled: p,
|
|
2663
|
+
open: u,
|
|
2664
|
+
setOpen(d) {
|
|
2665
|
+
r.matches("open") !== d && o({ type: d ? "OPEN" : "CLOSE" });
|
|
2666
|
+
},
|
|
2667
|
+
reposition(d = {}) {
|
|
2668
|
+
o({ type: "POSITIONING.SET", options: d });
|
|
2669
|
+
},
|
|
2670
|
+
getArrowProps() {
|
|
2671
|
+
return t.element({
|
|
2672
|
+
id: Ao(f),
|
|
2673
|
+
...W.arrow.attrs,
|
|
2674
|
+
dir: s("dir"),
|
|
2675
|
+
style: i.arrow
|
|
2676
|
+
});
|
|
2677
|
+
},
|
|
2678
|
+
getArrowTipProps() {
|
|
2679
|
+
return t.element({
|
|
2680
|
+
...W.arrowTip.attrs,
|
|
2681
|
+
dir: s("dir"),
|
|
2682
|
+
style: i.arrowTip
|
|
2683
|
+
});
|
|
2684
|
+
},
|
|
2685
|
+
getAnchorProps() {
|
|
2686
|
+
return t.element({
|
|
2687
|
+
...W.anchor.attrs,
|
|
2688
|
+
dir: s("dir"),
|
|
2689
|
+
id: Qt(f)
|
|
2690
|
+
});
|
|
2691
|
+
},
|
|
2692
|
+
getTriggerProps() {
|
|
2693
|
+
return t.button({
|
|
2694
|
+
...W.trigger.attrs,
|
|
2695
|
+
dir: s("dir"),
|
|
2696
|
+
type: "button",
|
|
2697
|
+
"data-placement": c,
|
|
2698
|
+
id: en(f),
|
|
2699
|
+
"aria-haspopup": "dialog",
|
|
2700
|
+
"aria-expanded": u,
|
|
2701
|
+
"data-state": u ? "open" : "closed",
|
|
2702
|
+
"aria-controls": Ye(f),
|
|
2703
|
+
onPointerDown(d) {
|
|
2704
|
+
In() && d.currentTarget.focus();
|
|
2705
|
+
},
|
|
2706
|
+
onClick(d) {
|
|
2707
|
+
d.defaultPrevented || o({ type: "TOGGLE" });
|
|
2708
|
+
},
|
|
2709
|
+
onBlur(d) {
|
|
2710
|
+
o({ type: "TRIGGER_BLUR", target: d.relatedTarget });
|
|
2711
|
+
}
|
|
2712
|
+
});
|
|
2713
|
+
},
|
|
2714
|
+
getIndicatorProps() {
|
|
2715
|
+
return t.element({
|
|
2716
|
+
...W.indicator.attrs,
|
|
2717
|
+
dir: s("dir"),
|
|
2718
|
+
"data-state": u ? "open" : "closed"
|
|
2719
|
+
});
|
|
2720
|
+
},
|
|
2721
|
+
getPositionerProps() {
|
|
2722
|
+
return t.element({
|
|
2723
|
+
id: tn(f),
|
|
2724
|
+
...W.positioner.attrs,
|
|
2725
|
+
dir: s("dir"),
|
|
2726
|
+
style: i.floating
|
|
2727
|
+
});
|
|
2728
|
+
},
|
|
2729
|
+
getContentProps() {
|
|
2730
|
+
return t.element({
|
|
2731
|
+
...W.content.attrs,
|
|
2732
|
+
dir: s("dir"),
|
|
2733
|
+
id: Ye(f),
|
|
2734
|
+
tabIndex: -1,
|
|
2735
|
+
role: "dialog",
|
|
2736
|
+
hidden: !u,
|
|
2737
|
+
"data-state": u ? "open" : "closed",
|
|
2738
|
+
"data-expanded": Ln(u),
|
|
2739
|
+
"aria-labelledby": l.title ? Xe(f) : void 0,
|
|
2740
|
+
"aria-describedby": l.description ? Je(f) : void 0,
|
|
2741
|
+
"data-placement": c
|
|
2742
|
+
});
|
|
2743
|
+
},
|
|
2744
|
+
getTitleProps() {
|
|
2745
|
+
return t.element({
|
|
2746
|
+
...W.title.attrs,
|
|
2747
|
+
id: Xe(f),
|
|
2748
|
+
dir: s("dir")
|
|
2749
|
+
});
|
|
2750
|
+
},
|
|
2751
|
+
getDescriptionProps() {
|
|
2752
|
+
return t.element({
|
|
2753
|
+
...W.description.attrs,
|
|
2754
|
+
id: Je(f),
|
|
2755
|
+
dir: s("dir")
|
|
2756
|
+
});
|
|
2757
|
+
},
|
|
2758
|
+
getCloseTriggerProps() {
|
|
2759
|
+
return t.button({
|
|
2760
|
+
...W.closeTrigger.attrs,
|
|
2761
|
+
dir: s("dir"),
|
|
2762
|
+
id: Ro(f),
|
|
2763
|
+
type: "button",
|
|
2764
|
+
"aria-label": "close",
|
|
2765
|
+
onClick(d) {
|
|
2766
|
+
d.defaultPrevented || (d.stopPropagation(), o({ type: "CLOSE" }));
|
|
2767
|
+
}
|
|
2768
|
+
});
|
|
2769
|
+
}
|
|
2770
|
+
};
|
|
2771
|
+
}
|
|
2772
|
+
var ko = Rt({
|
|
2773
|
+
props({ props: e }) {
|
|
2774
|
+
return {
|
|
2775
|
+
closeOnInteractOutside: !0,
|
|
2776
|
+
closeOnEscape: !0,
|
|
2777
|
+
autoFocus: !0,
|
|
2778
|
+
modal: !1,
|
|
2779
|
+
portalled: !0,
|
|
2780
|
+
...e,
|
|
2781
|
+
positioning: {
|
|
2782
|
+
placement: "bottom",
|
|
2783
|
+
...e.positioning
|
|
2784
|
+
}
|
|
2785
|
+
};
|
|
2786
|
+
},
|
|
2787
|
+
initialState({ prop: e }) {
|
|
2788
|
+
return e("open") || e("defaultOpen") ? "open" : "closed";
|
|
2789
|
+
},
|
|
2790
|
+
context({ bindable: e }) {
|
|
2791
|
+
return {
|
|
2792
|
+
currentPlacement: e(() => ({
|
|
2793
|
+
defaultValue: void 0
|
|
2794
|
+
})),
|
|
2795
|
+
renderedElements: e(() => ({
|
|
2796
|
+
defaultValue: { title: !0, description: !0 }
|
|
2797
|
+
}))
|
|
2798
|
+
};
|
|
2799
|
+
},
|
|
2800
|
+
computed: {
|
|
2801
|
+
currentPortalled: ({ prop: e }) => !!e("modal") || !!e("portalled")
|
|
2802
|
+
},
|
|
2803
|
+
watch({ track: e, prop: t, action: r }) {
|
|
2804
|
+
e([() => t("open")], () => {
|
|
2805
|
+
r(["toggleVisibility"]);
|
|
2806
|
+
});
|
|
2807
|
+
},
|
|
2808
|
+
entry: ["checkRenderedElements"],
|
|
2809
|
+
states: {
|
|
2810
|
+
closed: {
|
|
2811
|
+
on: {
|
|
2812
|
+
"CONTROLLED.OPEN": {
|
|
2813
|
+
target: "open",
|
|
2814
|
+
actions: ["setInitialFocus"]
|
|
2815
|
+
},
|
|
2816
|
+
TOGGLE: [
|
|
2817
|
+
{
|
|
2818
|
+
guard: "isOpenControlled",
|
|
2819
|
+
actions: ["invokeOnOpen"]
|
|
2820
|
+
},
|
|
2821
|
+
{
|
|
2822
|
+
target: "open",
|
|
2823
|
+
actions: ["invokeOnOpen", "setInitialFocus"]
|
|
2824
|
+
}
|
|
2825
|
+
],
|
|
2826
|
+
OPEN: [
|
|
2827
|
+
{
|
|
2828
|
+
guard: "isOpenControlled",
|
|
2829
|
+
actions: ["invokeOnOpen"]
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
target: "open",
|
|
2833
|
+
actions: ["invokeOnOpen", "setInitialFocus"]
|
|
2834
|
+
}
|
|
2835
|
+
]
|
|
2836
|
+
}
|
|
2837
|
+
},
|
|
2838
|
+
open: {
|
|
2839
|
+
effects: [
|
|
2840
|
+
"trapFocus",
|
|
2841
|
+
"preventScroll",
|
|
2842
|
+
"hideContentBelow",
|
|
2843
|
+
"trackPositioning",
|
|
2844
|
+
"trackDismissableElement",
|
|
2845
|
+
"proxyTabFocus"
|
|
2846
|
+
],
|
|
2847
|
+
on: {
|
|
2848
|
+
"CONTROLLED.CLOSE": {
|
|
2849
|
+
target: "closed",
|
|
2850
|
+
actions: ["setFinalFocus"]
|
|
2851
|
+
},
|
|
2852
|
+
CLOSE: [
|
|
2853
|
+
{
|
|
2854
|
+
guard: "isOpenControlled",
|
|
2855
|
+
actions: ["invokeOnClose"]
|
|
2856
|
+
},
|
|
2857
|
+
{
|
|
2858
|
+
target: "closed",
|
|
2859
|
+
actions: ["invokeOnClose", "setFinalFocus"]
|
|
2860
|
+
}
|
|
2861
|
+
],
|
|
2862
|
+
TOGGLE: [
|
|
2863
|
+
{
|
|
2864
|
+
guard: "isOpenControlled",
|
|
2865
|
+
actions: ["invokeOnClose"]
|
|
2866
|
+
},
|
|
2867
|
+
{
|
|
2868
|
+
target: "closed",
|
|
2869
|
+
actions: ["invokeOnClose"]
|
|
2870
|
+
}
|
|
2871
|
+
],
|
|
2872
|
+
"POSITIONING.SET": {
|
|
2873
|
+
actions: ["reposition"]
|
|
2874
|
+
}
|
|
2875
|
+
}
|
|
2876
|
+
}
|
|
2877
|
+
},
|
|
2878
|
+
implementations: {
|
|
2879
|
+
guards: {
|
|
2880
|
+
isOpenControlled: ({ prop: e }) => e("open") != null
|
|
2881
|
+
},
|
|
2882
|
+
effects: {
|
|
2883
|
+
trackPositioning({ context: e, prop: t, scope: r }) {
|
|
2884
|
+
e.set("currentPlacement", t("positioning").placement);
|
|
2885
|
+
const n = Tt(r) ?? se(r);
|
|
2886
|
+
return Ot(n, () => Pt(r), {
|
|
2887
|
+
...t("positioning"),
|
|
2888
|
+
defer: !0,
|
|
2889
|
+
onComplete(a) {
|
|
2890
|
+
e.set("currentPlacement", a.placement);
|
|
2891
|
+
}
|
|
2892
|
+
});
|
|
2893
|
+
},
|
|
2894
|
+
trackDismissableElement({ send: e, prop: t, scope: r }) {
|
|
2895
|
+
const n = () => ae(r);
|
|
2896
|
+
let o = !0;
|
|
2897
|
+
return kn(n, {
|
|
2898
|
+
pointerBlocking: t("modal"),
|
|
2899
|
+
exclude: se(r),
|
|
2900
|
+
defer: !0,
|
|
2901
|
+
onEscapeKeyDown(a) {
|
|
2902
|
+
t("onEscapeKeyDown")?.(a), !t("closeOnEscape") && a.preventDefault();
|
|
2903
|
+
},
|
|
2904
|
+
onInteractOutside(a) {
|
|
2905
|
+
t("onInteractOutside")?.(a), !a.defaultPrevented && (o = !(a.detail.focusable || a.detail.contextmenu), t("closeOnInteractOutside") || a.preventDefault());
|
|
2906
|
+
},
|
|
2907
|
+
onPointerDownOutside: t("onPointerDownOutside"),
|
|
2908
|
+
onFocusOutside: t("onFocusOutside"),
|
|
2909
|
+
persistentElements: t("persistentElements"),
|
|
2910
|
+
onDismiss() {
|
|
2911
|
+
e({ type: "CLOSE", src: "interact-outside", restoreFocus: o });
|
|
2912
|
+
}
|
|
2913
|
+
});
|
|
2914
|
+
},
|
|
2915
|
+
proxyTabFocus({ prop: e, scope: t }) {
|
|
2916
|
+
return e("modal") || !e("portalled") ? void 0 : _n(() => ae(t), {
|
|
2917
|
+
triggerElement: se(t),
|
|
2918
|
+
defer: !0,
|
|
2919
|
+
onFocus(n) {
|
|
2920
|
+
n.focus({ preventScroll: !0 });
|
|
2921
|
+
}
|
|
2922
|
+
});
|
|
2923
|
+
},
|
|
2924
|
+
hideContentBelow({ prop: e, scope: t }) {
|
|
2925
|
+
return e("modal") ? vo(() => [ae(t), se(t)], { defer: !0 }) : void 0;
|
|
2926
|
+
},
|
|
2927
|
+
preventScroll({ prop: e, scope: t }) {
|
|
2928
|
+
if (e("modal"))
|
|
2929
|
+
return So(t.getDoc());
|
|
2930
|
+
},
|
|
2931
|
+
trapFocus({ prop: e, scope: t }) {
|
|
2932
|
+
return e("modal") ? To(() => ae(t), {
|
|
2933
|
+
initialFocus: () => lt({
|
|
2934
|
+
root: ae(t),
|
|
2935
|
+
getInitialEl: e("initialFocusEl"),
|
|
2936
|
+
enabled: e("autoFocus")
|
|
2937
|
+
})
|
|
2938
|
+
}) : void 0;
|
|
2939
|
+
}
|
|
2940
|
+
},
|
|
2941
|
+
actions: {
|
|
2942
|
+
reposition({ event: e, prop: t, scope: r, context: n }) {
|
|
2943
|
+
const o = Tt(r) ?? se(r);
|
|
2944
|
+
Ot(o, () => Pt(r), {
|
|
2945
|
+
...t("positioning"),
|
|
2946
|
+
...e.options,
|
|
2947
|
+
defer: !0,
|
|
2948
|
+
listeners: !1,
|
|
2949
|
+
onComplete(s) {
|
|
2950
|
+
n.set("currentPlacement", s.placement);
|
|
2951
|
+
}
|
|
2952
|
+
});
|
|
2953
|
+
},
|
|
2954
|
+
checkRenderedElements({ context: e, scope: t }) {
|
|
2955
|
+
te(() => {
|
|
2956
|
+
Object.assign(e.get("renderedElements"), {
|
|
2957
|
+
title: !!Do(t),
|
|
2958
|
+
description: !!Fo(t)
|
|
2959
|
+
});
|
|
2960
|
+
});
|
|
2961
|
+
},
|
|
2962
|
+
setInitialFocus({ prop: e, scope: t }) {
|
|
2963
|
+
e("modal") || te(() => {
|
|
2964
|
+
lt({
|
|
2965
|
+
root: ae(t),
|
|
2966
|
+
getInitialEl: e("initialFocusEl"),
|
|
2967
|
+
enabled: e("autoFocus")
|
|
2968
|
+
})?.focus({ preventScroll: !0 });
|
|
2969
|
+
});
|
|
2970
|
+
},
|
|
2971
|
+
setFinalFocus({ event: e, scope: t }) {
|
|
2972
|
+
const r = e.restoreFocus ?? e.previousEvent?.restoreFocus;
|
|
2973
|
+
r != null && !r || te(() => {
|
|
2974
|
+
se(t)?.focus({ preventScroll: !0 });
|
|
2975
|
+
});
|
|
2976
|
+
},
|
|
2977
|
+
invokeOnOpen({ prop: e }) {
|
|
2978
|
+
e("onOpenChange")?.({ open: !0 });
|
|
2979
|
+
},
|
|
2980
|
+
invokeOnClose({ prop: e }) {
|
|
2981
|
+
e("onOpenChange")?.({ open: !1 });
|
|
2982
|
+
},
|
|
2983
|
+
toggleVisibility({ event: e, send: t, prop: r }) {
|
|
2984
|
+
t({ type: r("open") ? "CONTROLLED.OPEN" : "CONTROLLED.CLOSE", previousEvent: e });
|
|
2985
|
+
}
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
});
|
|
2989
|
+
Ft()([
|
|
2990
|
+
"autoFocus",
|
|
2991
|
+
"closeOnEscape",
|
|
2992
|
+
"closeOnInteractOutside",
|
|
2993
|
+
"dir",
|
|
2994
|
+
"getRootNode",
|
|
2995
|
+
"id",
|
|
2996
|
+
"ids",
|
|
2997
|
+
"initialFocusEl",
|
|
2998
|
+
"modal",
|
|
2999
|
+
"onEscapeKeyDown",
|
|
3000
|
+
"onFocusOutside",
|
|
3001
|
+
"onInteractOutside",
|
|
3002
|
+
"onOpenChange",
|
|
3003
|
+
"onPointerDownOutside",
|
|
3004
|
+
"defaultOpen",
|
|
3005
|
+
"open",
|
|
3006
|
+
"persistentElements",
|
|
3007
|
+
"portalled",
|
|
3008
|
+
"positioning"
|
|
3009
|
+
]);
|
|
3010
|
+
const [Uo, nn] = ke({
|
|
3011
|
+
name: "EnvironmentContext",
|
|
3012
|
+
hookName: "useEnvironmentContext",
|
|
3013
|
+
providerName: "<EnvironmentProvider />",
|
|
3014
|
+
strict: !1,
|
|
3015
|
+
defaultValue: {
|
|
3016
|
+
getRootNode: () => document,
|
|
3017
|
+
getDocument: () => document,
|
|
3018
|
+
getWindow: () => window
|
|
3019
|
+
}
|
|
3020
|
+
}), [jo, Mo] = ke({
|
|
3021
|
+
name: "LocaleContext",
|
|
3022
|
+
hookName: "useLocaleContext",
|
|
3023
|
+
providerName: "<LocaleProvider />",
|
|
3024
|
+
strict: !1,
|
|
3025
|
+
defaultValue: { dir: "ltr", locale: "en-US" }
|
|
3026
|
+
}), Lo = (e) => {
|
|
3027
|
+
const t = gn(), { getRootNode: r } = nn(), { dir: n } = Mo(), o = {
|
|
3028
|
+
id: t,
|
|
3029
|
+
dir: n,
|
|
3030
|
+
getRootNode: r,
|
|
3031
|
+
...e
|
|
3032
|
+
}, a = kt(ko, o);
|
|
3033
|
+
return _o(a, zn);
|
|
3034
|
+
}, zo = (e) => {
|
|
3035
|
+
const [t, { children: r, ...n }] = Vt(e), o = Lo(n), a = Gt(Oe({ present: o.open }, t));
|
|
3036
|
+
return /* @__PURE__ */ U.jsx($t, { value: o, children: /* @__PURE__ */ U.jsx(Bt, { value: a, children: r }) });
|
|
3037
|
+
}, Ko = (e) => {
|
|
3038
|
+
const [t, { value: r, children: n }] = Vt(e), o = Gt(Oe({ present: r.open }, t));
|
|
3039
|
+
return /* @__PURE__ */ U.jsx($t, { value: r, children: /* @__PURE__ */ U.jsx(Bt, { value: o, children: n }) });
|
|
3040
|
+
}, qo = (e) => {
|
|
3041
|
+
const { children: t, disabled: r } = e, [n, o] = Ue(e.container?.current), a = hn(
|
|
3042
|
+
$o,
|
|
3043
|
+
() => !1,
|
|
3044
|
+
() => !0
|
|
3045
|
+
), { getRootNode: s } = nn();
|
|
3046
|
+
if (be(() => {
|
|
3047
|
+
o(() => e.container?.current);
|
|
3048
|
+
}, [e.container]), a || r) return /* @__PURE__ */ U.jsx(U.Fragment, { children: t });
|
|
3049
|
+
const f = n ?? Io(s);
|
|
3050
|
+
return /* @__PURE__ */ U.jsx(U.Fragment, { children: Ct.map(t, (u) => _e.createPortal(u, f)) });
|
|
3051
|
+
}, Io = (e) => {
|
|
3052
|
+
const t = e?.(), r = t.getRootNode();
|
|
3053
|
+
return $n(r) ? r : Qe(t).body;
|
|
3054
|
+
}, $o = () => () => {
|
|
3055
|
+
};
|
|
3056
|
+
export {
|
|
3057
|
+
Ko as A,
|
|
3058
|
+
Co as B,
|
|
3059
|
+
qo as P,
|
|
3060
|
+
Qn as a,
|
|
3061
|
+
Ft as b,
|
|
3062
|
+
ke as c,
|
|
3063
|
+
vo as d,
|
|
3064
|
+
uo as e,
|
|
3065
|
+
Wo as f,
|
|
3066
|
+
Ot as g,
|
|
3067
|
+
It as h,
|
|
3068
|
+
Lt as i,
|
|
3069
|
+
Mo as j,
|
|
3070
|
+
kt as k,
|
|
3071
|
+
Gt as l,
|
|
3072
|
+
Jn as m,
|
|
3073
|
+
zn as n,
|
|
3074
|
+
Bt as o,
|
|
3075
|
+
So as p,
|
|
3076
|
+
nr as q,
|
|
3077
|
+
_e as r,
|
|
3078
|
+
Vt as s,
|
|
3079
|
+
To as t,
|
|
3080
|
+
nn as u,
|
|
3081
|
+
et as v,
|
|
3082
|
+
Ho as w,
|
|
3083
|
+
Zn as x,
|
|
3084
|
+
Xn as y,
|
|
3085
|
+
zo as z
|
|
3086
|
+
};
|
|
3087
|
+
//# sourceMappingURL=portal-CtkZ5xTm.js.map
|