ryugi-artifacts 1.68.3 → 1.70.0
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/cli.cjs +3 -3
- package/dist/server.cjs +204 -161
- package/dist/viewer/{AgentStatusPill-CxFpJS9T.js → AgentStatusPill-exn8kG-H.js} +1 -1
- package/dist/viewer/ArtboardLayout-Dz0spzAj.js +12 -0
- package/dist/viewer/ArtifactList-DKmeVnKi.js +2 -0
- package/dist/viewer/{AutoPublishPrompt-DkGEIW9t.js → AutoPublishPrompt-BYAg2V0y.js} +1 -1
- package/dist/viewer/{Avatar-VUQPY4DD.js → Avatar-Cr9OW8YH.js} +1 -1
- package/dist/viewer/{Avatar-BhOg2BXZ.js → Avatar-NMdjRnIS.js} +1 -1
- package/dist/viewer/{BottomSheet-AqG81d_M.js → BottomSheet-BQnGJL4p.js} +1 -1
- package/dist/viewer/{Canvas-4Utk2C18.js → Canvas-DxaQjjSK.js} +1 -1
- package/dist/viewer/{CompositeItem-ClMglprA.js → CompositeItem-tvyaiM7D.js} +1 -1
- package/dist/viewer/DocumentLayout-_U2M-QV_.js +2 -0
- package/dist/viewer/DocumentPage-ox4EQvxU.js +4 -0
- package/dist/viewer/DropdownMenu-DQRhgqL-.js +1 -0
- package/dist/viewer/{HtmlLayout-89ZuJNxJ.js → HtmlLayout-DzcNJHBz.js} +1 -1
- package/dist/viewer/{MenuSubmenuTrigger-B9c8QfBG.js → MenuSubmenuTrigger-CFAM5XEZ.js} +1 -1
- package/dist/viewer/{MenuTrigger-yVEYn1Ao.js → MenuTrigger-COssWqPW.js} +1 -1
- package/dist/viewer/{PhoneArtboardBar-Bzffd2nB.js → PhoneArtboardBar-B6JoWeSs.js} +1 -1
- package/dist/viewer/{PhoneSheet-CN4Ewszx.js → PhoneSheet-F7YTU--u.js} +1 -1
- package/dist/viewer/{Popover-J_7ZaGFR.js → Popover-4xoki5-K.js} +1 -1
- package/dist/viewer/PreviewLayout-CTH3onR8.js +2 -0
- package/dist/viewer/{Segmented-DhJdw1_a.js → Segmented-CFwxjVOk.js} +1 -1
- package/dist/viewer/{Select-Cqb37-IZ.js → Select-CwMZ_V48.js} +1 -1
- package/dist/viewer/{SelectScrollUpArrow-DYO27Q2D.js → SelectScrollUpArrow-D1wI2boK.js} +1 -1
- package/dist/viewer/{SettingsDialog-BpwMMImH.js → SettingsDialog-ytisgF60.js} +1 -1
- package/dist/viewer/{SnapshotDocument-Cca8g4SA.js → SnapshotDocument-IbfxlwGq.js} +1 -1
- package/dist/viewer/{SplitShell-lfa8K-76.js → SplitShell-BT_RNQiE.js} +1 -1
- package/dist/viewer/{ThreadView-CNiDFkdG.js → ThreadView-CxcjZsZO.js} +1 -1
- package/dist/viewer/{TooltipPopup-DsKnBNAK.js → TooltipPopup-D7gvHCZl.js} +1 -1
- package/dist/viewer/{VirtualizedEditor-uWe43zaI-lgt127eM.js → VirtualizedEditor-uWe43zaI-BMW7pyKh.js} +1 -1
- package/dist/viewer/{VirtualizedRenderer-C_d95FXi-GNEopmGk.js → VirtualizedRenderer-C_d95FXi-D1_QNgkv.js} +1 -1
- package/dist/viewer/{WarningsBadge-DT8IiYtX.js → WarningsBadge-yykGlxIS.js} +1 -1
- package/dist/viewer/WhiteboardLayout-DdKyBMil.js +3 -0
- package/dist/viewer/{WritingCursor-DQcBMO0U.js → WritingCursor-BmvJsfI4.js} +1 -1
- package/dist/viewer/{abnfDiagram-VCTEODGH-CTyAnl0Z.js → abnfDiagram-VCTEODGH-BcWo9FwK.js} +1 -1
- package/dist/viewer/{agentLook-C2_12glW.js → agentLook-t-qk7xG-.js} +1 -1
- package/dist/viewer/{anchor-B2Eea6vf.js → anchor-CMDdppxq.js} +1 -1
- package/dist/viewer/{ar-SA-G6X2FPQ2-Co8NUjyx.js → ar-SA-G6X2FPQ2-Cm_ExiPk.js} +1 -1
- package/dist/viewer/{architecture-7GRP2DOG-B0zVjmxn.js → architecture-7GRP2DOG-B0ELn-r9.js} +1 -1
- package/dist/viewer/{architectureDiagram-5GKGNRK7-CGcFQF9y.js → architectureDiagram-5GKGNRK7-pjk1bmyn.js} +1 -1
- package/dist/viewer/{az-AZ-76LH7QW2-De3Qkr8D.js → az-AZ-76LH7QW2-C3xDoCfK.js} +1 -1
- package/dist/viewer/{bg-BG-XCXSNQG7-BzK_v3Xv.js → bg-BG-XCXSNQG7-BuqoExRt.js} +1 -1
- package/dist/viewer/{blockDiagram-I7D4REHJ-mTBluH4Q.js → blockDiagram-I7D4REHJ-Bt5Fgmbw.js} +1 -1
- package/dist/viewer/{bn-BD-2XOGV67Q-BDqCkFBJ.js → bn-BD-2XOGV67Q-Cb6R-JhO.js} +1 -1
- package/dist/viewer/{c4Diagram-7LVT6UL2-D-nVvYcu.js → c4Diagram-7LVT6UL2-DVoqgVNh.js} +1 -1
- package/dist/viewer/{ca-ES-6MX7JW3Y-Di897XK8.js → ca-ES-6MX7JW3Y-C9x3VZP6.js} +1 -1
- package/dist/viewer/{channel-D9zHsUWH.js → channel-DH0VKMTa.js} +8 -8
- package/dist/viewer/channel-fe5QTu-s.js +1 -0
- package/dist/viewer/{chunk-4HAMMTFA-QTbQqNtn.js → chunk-4HAMMTFA-CTdlWrtX.js} +1 -1
- package/dist/viewer/{chunk-75Z2AOVW-BbYnGlO9.js → chunk-75Z2AOVW-C_A1Se9D.js} +1 -1
- package/dist/viewer/{chunk-DU6HZSFF-D25kbUvc.js → chunk-DU6HZSFF-Dr7PaN7b.js} +1 -1
- package/dist/viewer/{chunk-EIO257PC-BqMFp5wN.js → chunk-EIO257PC-oHJkbpFs.js} +1 -1
- package/dist/viewer/{chunk-F27PBJKO-C7JmXEA_.js → chunk-F27PBJKO-BBCDjN53.js} +1 -1
- package/dist/viewer/{chunk-GMAD6QVW-C27INOB_.js → chunk-GMAD6QVW-BFHBOVJq.js} +1 -1
- package/dist/viewer/{chunk-GVQU2GXP-CEY5vytX.js → chunk-GVQU2GXP-BIpEZyzS.js} +1 -1
- package/dist/viewer/{chunk-IMKFNOWR-BQSAfnnl.js → chunk-IMKFNOWR-KEawvx8K.js} +1 -1
- package/dist/viewer/{chunk-L3NEJ4N5-DlFoBxMY.js → chunk-L3NEJ4N5-IwBcwkuk.js} +1 -1
- package/dist/viewer/{chunk-OSK3NFVY-F3_Phybw.js → chunk-OSK3NFVY-C3k_p7-w.js} +1 -1
- package/dist/viewer/{chunk-P2QGCYS3-09egvNok.js → chunk-P2QGCYS3-Dtm_7Lz7.js} +1 -1
- package/dist/viewer/{chunk-POPQ4Y6H-CV8YIoqC.js → chunk-POPQ4Y6H-CytCoNkh.js} +1 -1
- package/dist/viewer/{chunk-PWAF6VOD-Bz8UB2mc.js → chunk-PWAF6VOD-CyHOdyql.js} +1 -1
- package/dist/viewer/{chunk-SHT3W25Y-DDp6zMvV.js → chunk-SHT3W25Y-DD7pl4JI.js} +1 -1
- package/dist/viewer/{chunk-SVP7TREG-C8P_HXcE.js → chunk-SVP7TREG-Bu4mLQNH.js} +1 -1
- package/dist/viewer/{chunk-TICWLB2K-CqNIbLdD.js → chunk-TICWLB2K-sZ8FCdF0.js} +1 -1
- package/dist/viewer/classDiagram-ZZMXUADV-B-zT7lnC.js +1 -0
- package/dist/viewer/classDiagram-v2-VYDZK3BY-B-zT7lnC.js +1 -0
- package/dist/viewer/{cs-CZ-2BRQDIVT-BqCK2YiO.js → cs-CZ-2BRQDIVT-BYzmp2zB.js} +1 -1
- package/dist/viewer/{cynefin-OW5HDTMX-Cj8F5cxd.js → cynefin-OW5HDTMX-BRRxGfUD.js} +1 -1
- package/dist/viewer/{cynefinDiagram-5FMLGOSQ-ao8tcFtS.js → cynefinDiagram-5FMLGOSQ-BJJG-W2c.js} +1 -1
- package/dist/viewer/{da-DK-5WZEPLOC-D8GWiO3u.js → da-DK-5WZEPLOC-BQMUVHri.js} +1 -1
- package/dist/viewer/{dagre-GXQ25YYZ-DsGmxha_.js → dagre-GXQ25YYZ-18YALgQ_.js} +1 -1
- package/dist/viewer/{de-DE-XR44H4JA-OJKx5xur.js → de-DE-XR44H4JA-CXVFrfP-.js} +1 -1
- package/dist/viewer/{diagram-S7CK7UJ4-BPqNSGqm.js → diagram-S7CK7UJ4-BxB2LRSe.js} +1 -1
- package/dist/viewer/{diagram-UQ7AKVKN-Hyylpo16.js → diagram-UQ7AKVKN-BcJ9Tkbs.js} +1 -1
- package/dist/viewer/{diagram-VSXAHHWV-CqqVLGLK.js → diagram-VSXAHHWV-_UeBcZmY.js} +1 -1
- package/dist/viewer/{diagram-VX7I27RA-QDUSbpnl.js → diagram-VX7I27RA-Bc9iy24S.js} +1 -1
- package/dist/viewer/{diagram-Z3DM3KII-BlSnfIUw.js → diagram-Z3DM3KII-gU89rmSx.js} +1 -1
- package/dist/viewer/{dist-PC_089aX.js → dist-0mKY9eI7.js} +1 -1
- package/dist/viewer/{dist-BFQmsjpz.js → dist-B01tJOMA.js} +1 -1
- package/dist/viewer/{dist-8PA9S6LL.js → dist-B2jUGLcW.js} +1 -1
- package/dist/viewer/{dist-y47EP8TD.js → dist-BhkEYAHc.js} +1 -1
- package/dist/viewer/{dist-dHcM14_b.js → dist-Bo6d3UKT.js} +1 -1
- package/dist/viewer/{dist-BLAIDSVI.js → dist-BqnvFgk0.js} +1 -1
- package/dist/viewer/{dist-Cwm7m3VK.js → dist-C0qQs54I.js} +1 -1
- package/dist/viewer/{dist-BjVw2B6k.js → dist-C3CTurMw.js} +1 -1
- package/dist/viewer/{dist-BKcrjsO1.js → dist-C3WYDtp3.js} +1 -1
- package/dist/viewer/{dist-CY5pHbTR.js → dist-COTHq9_Y.js} +1 -1
- package/dist/viewer/{dist-DS3MMXtI.js → dist-CRyNsNEn.js} +1 -1
- package/dist/viewer/{dist-DlY6E9WS.js → dist-CTW5Mm7j.js} +1 -1
- package/dist/viewer/{dist-C6PBT5lE.js → dist-D3D--6Bp.js} +1 -1
- package/dist/viewer/{dist-Bo8QJSW2.js → dist-DJY0rxct.js} +1 -1
- package/dist/viewer/{dist-D8bHZTnA.js → dist-DJY6L8B9.js} +1 -1
- package/dist/viewer/{dist-Cc-_5Hcx.js → dist-DVq4uFIZ.js} +1 -1
- package/dist/viewer/{dist-DpV8-atf.js → dist-DZdqkKNN.js} +1 -1
- package/dist/viewer/{dist-Bot6IVVV.js → dist-DcqWCvRw.js} +1 -1
- package/dist/viewer/{dist-CwxBiwOj.js → dist-DhcQ70Kn.js} +1 -1
- package/dist/viewer/{dist-BB7KGjDd.js → dist-GsD7M9aH.js} +1 -1
- package/dist/viewer/{dist-CnQsaM53.js → dist-Hb3V0HyK.js} +1 -1
- package/dist/viewer/{dist-XKj_gvVl.js → dist-QjnQrlMe.js} +4 -4
- package/dist/viewer/{dist-BIiCOFkh.js → dist-_PSM37a1.js} +1 -1
- package/dist/viewer/{dist-CdS13Sm9.js → dist-hFUF3Lsa.js} +1 -1
- package/dist/viewer/{ebnfDiagram-PWID7BFC-Cv8jFIx3.js → ebnfDiagram-PWID7BFC-C8HSoSRy.js} +1 -1
- package/dist/viewer/{el-GR-BZB4AONW-Bgcc_mhT.js → el-GR-BZB4AONW-ow3fFVLT.js} +1 -1
- package/dist/viewer/{en-B4ZKOASM-xfJgNr4J.js → en-B4ZKOASM-CaY3r9HU.js} +1 -1
- package/dist/viewer/{erDiagram-RLTQ6QDP-DlKwxifM.js → erDiagram-RLTQ6QDP-BxJx7rlQ.js} +1 -1
- package/dist/viewer/{es-ES-U4NZUMDT-DjVCDf-d.js → es-ES-U4NZUMDT-BMjMaVCY.js} +1 -1
- package/dist/viewer/{eu-ES-A7QVB2H4-B9DLpn4i.js → eu-ES-A7QVB2H4-CM4bkpMu.js} +1 -1
- package/dist/viewer/{eventmodeling-NTZA5JFV-DBsen_iq.js → eventmodeling-NTZA5JFV-DnbDCfB2.js} +1 -1
- package/dist/viewer/{fa-IR-HGAKTJCU-mcJehgzb.js → fa-IR-HGAKTJCU-BLD2tQpT.js} +1 -1
- package/dist/viewer/{fi-FI-Z5N7JZ37-DNSkiCdk.js → fi-FI-Z5N7JZ37-Bgn7EPoz.js} +1 -1
- package/dist/viewer/flowDiagram-HODETNUW-CXlFZEEj.js +1 -0
- package/dist/viewer/{fr-FR-RHASNOE6-Bpxco8-f.js → fr-FR-RHASNOE6-Bkw82-6W.js} +1 -1
- package/dist/viewer/{ganttDiagram-EL5Y4UJY-B9_jTP-f.js → ganttDiagram-EL5Y4UJY-DOR_e0je.js} +1 -1
- package/dist/viewer/{gitGraph-4MIJSDKK-DQ5l_Czp.js → gitGraph-4MIJSDKK-SVRQ5W4D.js} +1 -1
- package/dist/viewer/{gitGraphDiagram-WWUBYQGX-CNheUmFp.js → gitGraphDiagram-WWUBYQGX-CDiQ0mCt.js} +1 -1
- package/dist/viewer/{gl-ES-HMX3MZ6V-BDlXQ8Mo.js → gl-ES-HMX3MZ6V-BLzHqZN8.js} +1 -1
- package/dist/viewer/{he-IL-6SHJWFNN-D_oWBOT_.js → he-IL-6SHJWFNN-D8wU25du.js} +1 -1
- package/dist/viewer/{hi-IN-IWLTKZ5I-B00j5Akq.js → hi-IN-IWLTKZ5I-BL-e61Xu.js} +1 -1
- package/dist/viewer/{hu-HU-A5ZG7DT2-Dir0Uxpm.js → hu-HU-A5ZG7DT2-DbYToYgQ.js} +1 -1
- package/dist/viewer/{id-ID-SAP4L64H-CIWlaa2K.js → id-ID-SAP4L64H-CCT_QszX.js} +1 -1
- package/dist/viewer/{image-GAAHSSAO-eNNIIQuo.js → image-GAAHSSAO-DKoD4XKV.js} +1 -1
- package/dist/viewer/index.html +5 -5
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index2.css +1 -1
- package/dist/viewer/index3.css +88 -0
- package/dist/viewer/{info-A6RAGUB7-Cg2ZMBgH.js → info-A6RAGUB7-CX2C9N30.js} +1 -1
- package/dist/viewer/{infoDiagram-27XIBGKW-D4PQhgAE.js → infoDiagram-27XIBGKW-CN86my9R.js} +1 -1
- package/dist/viewer/{ishikawaDiagram-5VMMS53U-ST2q8zVR.js → ishikawaDiagram-5VMMS53U-5BluWj2f.js} +1 -1
- package/dist/viewer/{it-IT-JPQ66NNP-pmEG31XC.js → it-IT-JPQ66NNP-afXtP8Ww.js} +1 -1
- package/dist/viewer/{ja-JP-DBVTYXUO-B4zqTUsM.js → ja-JP-DBVTYXUO-DekQisaL.js} +1 -1
- package/dist/viewer/{journeyDiagram-3NMN7TZE-jw9cozQW.js → journeyDiagram-3NMN7TZE-CJC3KFyX.js} +1 -1
- package/dist/viewer/{kaa-6HZHGXH3-BbZXuqjx.js → kaa-6HZHGXH3-tRph-_T2.js} +1 -1
- package/dist/viewer/{kab-KAB-ZGHBKWFO-B6Dpy25G.js → kab-KAB-ZGHBKWFO-BE4QoOsA.js} +1 -1
- package/dist/viewer/{kanban-definition-UXKFOSKX-kKtBGERG.js → kanban-definition-UXKFOSKX-B18ysZ84.js} +1 -1
- package/dist/viewer/{kk-KZ-P5N5QNE5-BlT2i9fi.js → kk-KZ-P5N5QNE5-CVRotJxc.js} +1 -1
- package/dist/viewer/{km-KH-HSX4SM5Z-It93cDWb.js → km-KH-HSX4SM5Z-hAYTx672.js} +1 -1
- package/dist/viewer/{ko-KR-MTYHY66A-BE5d6K1R.js → ko-KR-MTYHY66A-QEVtuRm5.js} +1 -1
- package/dist/viewer/{ku-TR-6OUDTVRD-CyJeB7Dj.js → ku-TR-6OUDTVRD-CRm854Ze.js} +1 -1
- package/dist/viewer/{local-split-host-DwGe1ki5.js → local-split-host-B8nXcoph.js} +1 -1
- package/dist/viewer/{lt-LT-XHIRWOB4-B90xeOxU.js → lt-LT-XHIRWOB4-CKPgIz76.js} +1 -1
- package/dist/viewer/{lv-LV-5QDEKY6T-CItjDmqr.js → lv-LV-5QDEKY6T-ChfyCJQM.js} +1 -1
- package/dist/viewer/{mermaid-parser.core-0b8QyWBB.js → mermaid-parser.core-BVnYCq41.js} +3 -3
- package/dist/viewer/{mindmap-definition-YA3MSWOX-aI29Qvpk.js → mindmap-definition-YA3MSWOX-DHv3E1P_.js} +1 -1
- package/dist/viewer/{mr-IN-CRQNXWMA-Tce1KbsQ.js → mr-IN-CRQNXWMA-BJLGlD17.js} +1 -1
- package/dist/viewer/{my-MM-5M5IBNSE-CpUB2CXI.js → my-MM-5M5IBNSE-9rLlVOlt.js} +1 -1
- package/dist/viewer/{nb-NO-T6EIAALU-DsRuGO1k.js → nb-NO-T6EIAALU-B8VMz4zh.js} +1 -1
- package/dist/viewer/{nl-NL-IS3SIHDZ-BjF2156S.js → nl-NL-IS3SIHDZ-DqLxBYZV.js} +1 -1
- package/dist/viewer/{nn-NO-6E72VCQL-CGeF_3vr.js → nn-NO-6E72VCQL-Bo0PPFBQ.js} +1 -1
- package/dist/viewer/{oc-FR-POXYY2M6-DLnQnEGu.js → oc-FR-POXYY2M6-CWWRWFHX.js} +1 -1
- package/dist/viewer/{pa-IN-N4M65BXN-BAx2ywdg.js → pa-IN-N4M65BXN-DT0tg3Sk.js} +1 -1
- package/dist/viewer/{packet-AYTQ26CC-DK170Gd5.js → packet-AYTQ26CC-KGzO-wcr.js} +1 -1
- package/dist/viewer/{parseTrigger-YW1R9ofU.js → parseTrigger-Bu-PV9CL.js} +1 -1
- package/dist/viewer/{pegDiagram-XKGWAZYB-DHp6Wg_9.js → pegDiagram-XKGWAZYB-Dic4eBsi.js} +1 -1
- package/dist/viewer/percentages-BXMCSKIN-BS0t4tWg.js +1 -0
- package/dist/viewer/{pie-WAS4IAKB-BSUWPbAv.js → pie-WAS4IAKB-BYfJrbuD.js} +1 -1
- package/dist/viewer/{pieDiagram-E7YTZNPT-wfRRTiyk.js → pieDiagram-E7YTZNPT-CjUaUWV2.js} +1 -1
- package/dist/viewer/{pl-PL-T2D74RX3-BiWBdXLi.js → pl-PL-T2D74RX3-Ch27cnOo.js} +1 -1
- package/dist/viewer/preview.html +4 -4
- package/dist/viewer/preview.js +1 -1
- package/dist/viewer/{prod-CLoF9GCs.js → prod-TT-J6Nam.js} +8 -8
- package/dist/viewer/{pt-BR-5N22H2LF-CQSzKbCy.js → pt-BR-5N22H2LF-8J6Vfb7V.js} +1 -1
- package/dist/viewer/{pt-PT-UZXXM6DQ-CIlCAlTv.js → pt-PT-UZXXM6DQ-BX7qQNlR.js} +1 -1
- package/dist/viewer/{quadrantDiagram-AXDQQJYC-BtPMYaDQ.js → quadrantDiagram-AXDQQJYC-r9uBJJoA.js} +1 -1
- package/dist/viewer/{radar-RG4KPBEZ-BcVxV4zy.js → radar-RG4KPBEZ-DDBCvrzl.js} +1 -1
- package/dist/viewer/{railroad-74A4TZTK-CTa8S3gO.js → railroad-74A4TZTK-DHdJAn7o.js} +1 -1
- package/dist/viewer/{railroad-abnf-HS5TGJTU-OAwQkYAd.js → railroad-abnf-HS5TGJTU-D9wWd5uO.js} +1 -1
- package/dist/viewer/{railroad-ebnf-LZEXJU2U-C5cc5X65.js → railroad-ebnf-LZEXJU2U-D-NZ6dqJ.js} +1 -1
- package/dist/viewer/{railroad-peg-WCYAUIDC-BDnKRxE1.js → railroad-peg-WCYAUIDC-CyPMQZm7.js} +1 -1
- package/dist/viewer/{railroadDiagram-O6MQD6OU-jnRSJdUv.js → railroadDiagram-O6MQD6OU-CWrubsQf.js} +1 -1
- package/dist/viewer/{ref-cwone_vf.js → ref-BF7Dk-nb.js} +1 -1
- package/dist/viewer/{requirementDiagram-BXWQKSXE-BNTKDL1i.js → requirementDiagram-BXWQKSXE-YIdQ9sc_.js} +1 -1
- package/dist/viewer/{ro-RO-JPDTUUEW-QX3jx-nb.js → ro-RO-JPDTUUEW-2Pp-dKmW.js} +1 -1
- package/dist/viewer/route-CDT5H7Dv.js +64 -0
- package/dist/viewer/{route-messages-DNqJY8RF.js → route-messages-Bgmu6wjw.js} +1 -1
- package/dist/viewer/{ru-RU-B4JR7IUQ-C9FGD7Cs.js → ru-RU-B4JR7IUQ-DPkLOvY0.js} +1 -1
- package/dist/viewer/{sankeyDiagram-P5KCCOFB-Sqlj0O4h.js → sankeyDiagram-P5KCCOFB-BQftNXO2.js} +1 -1
- package/dist/viewer/{selection--wknfKoX.js → selection-BTJrtSto.js} +1 -1
- package/dist/viewer/{sequenceDiagram-WJ2MYXX4-CPdR8yLJ.js → sequenceDiagram-WJ2MYXX4-C90CSvsu.js} +1 -1
- package/dist/viewer/{si-LK-N5RQ5JYF-f_2YLEad.js → si-LK-N5RQ5JYF-DjQ-ynCO.js} +1 -1
- package/dist/viewer/{sk-SK-C5VTKIMK-DkKosukU.js → sk-SK-C5VTKIMK-Do9H8uzR.js} +1 -1
- package/dist/viewer/{sl-SI-NN7IZMDC-DMIQDLDl.js → sl-SI-NN7IZMDC-bJ5rRome.js} +1 -1
- package/dist/viewer/{split-url-EQlIwqCq.js → split-url-D0Eu87y4.js} +3 -3
- package/dist/viewer/{stateDiagram-D77RDMKH-Dk8vgDDZ.js → stateDiagram-D77RDMKH-pBFTeHBj.js} +1 -1
- package/dist/viewer/stateDiagram-v2-MP3YSRHH-aanK4VsX.js +1 -0
- package/dist/viewer/subset-shared.chunk-BiJjRqIa.js +1 -0
- package/dist/viewer/{subset-worker.chunk-B_8bLook.js → subset-worker.chunk-3zYap8Q-.js} +1 -1
- package/dist/viewer/{sv-SE-XGPEYMSR-B7-5iBmq.js → sv-SE-XGPEYMSR-C0oEs72p.js} +1 -1
- package/dist/viewer/{swimlanes-42K2YHIH-C8ikgnYd.js → swimlanes-42K2YHIH-CTsMizz_.js} +1 -1
- package/dist/viewer/swimlanesDiagram-VR7AAH4N-Bgny_WIB.js +8 -0
- package/dist/viewer/{ta-IN-2NMHFXQM-CCuxmYHa.js → ta-IN-2NMHFXQM-B3AATr70.js} +1 -1
- package/dist/viewer/{th-TH-HPSO5L25-555yyoqZ.js → th-TH-HPSO5L25-DQBS-yab.js} +1 -1
- package/dist/viewer/{timeline-definition-24CTP7MA-C2dpylBO.js → timeline-definition-24CTP7MA-C-XiBPgr.js} +1 -1
- package/dist/viewer/{tr-TR-DEFEU3FU-BzupxUte.js → tr-TR-DEFEU3FU-ag7nD5kA.js} +1 -1
- package/dist/viewer/{treeView-Q6P3EWNA-Bo2ovp6d.js → treeView-Q6P3EWNA-SVlfuIv-.js} +1 -1
- package/dist/viewer/{treemap-WGGIJYW6-B_JgUt2a.js → treemap-WGGIJYW6-_ZShzHPs.js} +1 -1
- package/dist/viewer/{uk-UA-QMV73CPH-DRep9RrQ.js → uk-UA-QMV73CPH-BSQfUSoA.js} +1 -1
- package/dist/viewer/{useAriaLabelledBy-qrGtdh85.js → useAriaLabelledBy-BuWax2Z2.js} +1 -1
- package/dist/viewer/{useArtifactFeed-C3070Mi8.js → useArtifactFeed-BDiYn0gP.js} +1 -1
- package/dist/viewer/useCloudStatus-JY8n58HL.js +1 -0
- package/dist/viewer/{useOpenInteractionType-B0XlD3Xc.js → useOpenInteractionType-DH5mUVhj.js} +1 -1
- package/dist/viewer/{useTranslation-D3df1rHG.js → useTranslation-BNqJXci1.js} +1 -1
- package/dist/viewer/{useTypeFavicon-COeOH_8h.js → useTypeFavicon-B3gDp1sZ.js} +1 -1
- package/dist/viewer/{vennDiagram-4TSXK5OY-BmwVNbSU.js → vennDiagram-4TSXK5OY-BV0PYWnH.js} +1 -1
- package/dist/viewer/{vi-VN-M7AON7JQ-HxuRLuM7.js → vi-VN-M7AON7JQ-Dl7QA_Y_.js} +1 -1
- package/dist/viewer/{view-Q3sf2djn.js → view--v3LsuO9.js} +1 -1
- package/dist/viewer/{viewport-CFJHn_Y6-CLCrXOsP.js → viewport-CFJHn_Y6-D8gntZjd.js} +1 -1
- package/dist/viewer/{wardley-WFR3VGLG-D6GPmsYf.js → wardley-WFR3VGLG-BNvAuofQ.js} +1 -1
- package/dist/viewer/{wardleyDiagram-VM6X3IG4-BL1YKfSh.js → wardleyDiagram-VM6X3IG4-B12XuiXU.js} +1 -1
- package/dist/viewer/{xychartDiagram-S5SC5T6Z-9WjSzaRU.js → xychartDiagram-S5SC5T6Z-CNASGt-y.js} +1 -1
- package/dist/viewer/{zh-CN-LNUGB5OW-C_gHexkj.js → zh-CN-LNUGB5OW-BN9rjxsZ.js} +1 -1
- package/dist/viewer/{zh-HK-E62DVLB3-Dhwq5Laa.js → zh-HK-E62DVLB3-DVH9Q1Iz.js} +1 -1
- package/dist/viewer/{zh-TW-RAJ6MFWO-CfId5kew.js → zh-TW-RAJ6MFWO-CZYgWnVr.js} +1 -1
- package/dist/viewer-lib/{Canvas-BpIyaqFN.js → Canvas-Cz4jc5_1.js} +3 -3
- package/dist/viewer-lib/PageLoader-M5KGHqfg.js +32 -0
- package/dist/viewer-lib/{PhoneArtboardBar-DYEcy0Qa.js → PhoneArtboardBar-MV_lMiiq.js} +2 -2
- package/dist/viewer-lib/{PreviewView-DX6HLiL0.js → PreviewView-C0pRJ1cs.js} +117 -110
- package/dist/viewer-lib/{ReadOnlyWhiteboard-C9v2Zbtp.js → ReadOnlyWhiteboard-B5wXA3u9.js} +90 -89
- package/dist/viewer-lib/{i18n-QksLzzWi.js → RyugiLoader-_MZxEs2s.js} +145 -20
- package/dist/viewer-lib/{SnapshotDocument-CMVvuBUw.css → SnapshotDocument-BV29XJk4.css} +1 -1
- package/dist/viewer-lib/{SnapshotDocument-BbgwNfWB.js → SnapshotDocument-DiIRfl5L.js} +75 -75
- package/dist/viewer-lib/{VirtualizedEditor-uWe43zaI-CmgTXS-p.js → VirtualizedEditor-uWe43zaI-DktBg0M1.js} +2 -2
- package/dist/viewer-lib/{VirtualizedRenderer-C_d95FXi-BuckUTnS.js → VirtualizedRenderer-C_d95FXi-B39OU9Je.js} +3 -3
- package/dist/viewer-lib/{WarningsBadge-1xR7QoZB.js → WarningsBadge-p7-QKPVW.js} +1 -1
- package/dist/viewer-lib/{agentLook-xSyYY25N.js → agentLook-Pf_kpgWG.js} +1 -1
- package/dist/viewer-lib/{ar-SA-G6X2FPQ2-CEJUrUcf.js → ar-SA-G6X2FPQ2-qbH69ISs.js} +1 -1
- package/dist/viewer-lib/{az-AZ-76LH7QW2-D3FZr56u.js → az-AZ-76LH7QW2-CfO7QPHE.js} +1 -1
- package/dist/viewer-lib/{bg-BG-XCXSNQG7-DV2gd8SJ.js → bg-BG-XCXSNQG7-JgeW4H2C.js} +1 -1
- package/dist/viewer-lib/{bn-BD-2XOGV67Q-fNhYcJwe.js → bn-BD-2XOGV67Q-AoN4Z5CP.js} +1 -1
- package/dist/viewer-lib/{ca-ES-6MX7JW3Y-p45OBk_B.js → ca-ES-6MX7JW3Y-BaoeIvfa.js} +1 -1
- package/dist/viewer-lib/{chunk-EIO257PC-CXXH8Md3.js → chunk-EIO257PC-Ac80GdCI.js} +1 -1
- package/dist/viewer-lib/core.js +5 -4
- package/dist/viewer-lib/{cs-CZ-2BRQDIVT-CY75gnzI.js → cs-CZ-2BRQDIVT-DhxT4nbh.js} +1 -1
- package/dist/viewer-lib/{da-DK-5WZEPLOC-DmMaYPrm.js → da-DK-5WZEPLOC-E4_32hvX.js} +1 -1
- package/dist/viewer-lib/{de-DE-XR44H4JA-DYfV8p9-.js → de-DE-XR44H4JA-CH1m2Hyu.js} +1 -1
- package/dist/viewer-lib/{dist-CByhej7K.js → dist-4N9VL_Qo.js} +3 -3
- package/dist/viewer-lib/{dist-DXfPN4Ec.js → dist-BGqKudtK.js} +3 -3
- package/dist/viewer-lib/{dist-BC4KdWXx.js → dist-BUWnxmmt.js} +2 -2
- package/dist/viewer-lib/{dist-Bj7f3YVM.js → dist-Bf3vx8tA.js} +3 -3
- package/dist/viewer-lib/{dist-B2Nu28kR.js → dist-C2-8CMJG.js} +3 -3
- package/dist/viewer-lib/{dist-BTsSLXre.js → dist-COGc35cY.js} +1 -1
- package/dist/viewer-lib/{dist-C1rZNGDI.js → dist-CxLJJRFh.js} +3 -3
- package/dist/viewer-lib/{dist-Dk0VPjYJ.js → dist-D-eZ6Mt_.js} +4 -4
- package/dist/viewer-lib/{dist-CLtlsvg1.js → dist-D4hVC50-.js} +2 -2
- package/dist/viewer-lib/{dist-B4fnnsge.js → dist-DCoCMlKT.js} +2 -2
- package/dist/viewer-lib/{dist-DBjTRRIP.js → dist-DNSST2rW.js} +3 -3
- package/dist/viewer-lib/{dist-BIGmzfNO.js → dist-DjyhCAJp.js} +3 -3
- package/dist/viewer-lib/{dist-ot8vVTH3.js → dist-DpLE-ZgU.js} +2 -2
- package/dist/viewer-lib/{dist-DXMlNYXL.js → dist-DpdpsTAT.js} +2 -2
- package/dist/viewer-lib/{dist-C4KWXAoU.js → dist-DrhJ9opW.js} +2 -2
- package/dist/viewer-lib/{dist-BCKU1e8H.js → dist-Dt0ohtTi.js} +4 -4
- package/dist/viewer-lib/{dist-lmMdFW_t.js → dist-GyL4PJ8b.js} +3 -3
- package/dist/viewer-lib/{dist-CcDaSD_g.js → dist-JKcrLRtX.js} +2 -2
- package/dist/viewer-lib/{dist-3pnICcdO.js → dist-K_XrbIQp.js} +2 -2
- package/dist/viewer-lib/{dist-BHOz-HOQ.js → dist-YCAwO-Nd.js} +3 -3
- package/dist/viewer-lib/{dist-BqK2glT6.js → dist-e2LB4sJU.js} +4 -4
- package/dist/viewer-lib/{dist-DJ5tvY8x.js → dist-elxdtjg5.js} +1 -1
- package/dist/viewer-lib/{dist-kESmUvgx.js → dist-xhmSGfbo.js} +3 -3
- package/dist/viewer-lib/document.js +676 -674
- package/dist/viewer-lib/{el-GR-BZB4AONW-C0-Rg3rY.js → el-GR-BZB4AONW-CxMbipHk.js} +1 -1
- package/dist/viewer-lib/{en-B4ZKOASM-CWwARfdU.js → en-B4ZKOASM-Ch0kGhap.js} +1 -1
- package/dist/viewer-lib/{es-ES-U4NZUMDT-Di1ZUIVa.js → es-ES-U4NZUMDT-B9x-x6lF.js} +1 -1
- package/dist/viewer-lib/{eu-ES-A7QVB2H4-DfxpIbwQ.js → eu-ES-A7QVB2H4-C3VIhLkt.js} +1 -1
- package/dist/viewer-lib/{fa-IR-HGAKTJCU-BzJgn5bY.js → fa-IR-HGAKTJCU-Ch3qRpCM.js} +1 -1
- package/dist/viewer-lib/{fi-FI-Z5N7JZ37-Dgh9WYA8.js → fi-FI-Z5N7JZ37-DUj1GHLS.js} +1 -1
- package/dist/viewer-lib/{fr-FR-RHASNOE6-FxbVo7Yh.js → fr-FR-RHASNOE6-DHTtAWgo.js} +1 -1
- package/dist/viewer-lib/{gl-ES-HMX3MZ6V-BwezJSl-.js → gl-ES-HMX3MZ6V-Cze-1U2w.js} +1 -1
- package/dist/viewer-lib/{he-IL-6SHJWFNN-CMKZRRs9.js → he-IL-6SHJWFNN-CNXnKism.js} +1 -1
- package/dist/viewer-lib/{hi-IN-IWLTKZ5I-4-ZNp-DM.js → hi-IN-IWLTKZ5I-flVZhrNs.js} +1 -1
- package/dist/viewer-lib/{hu-HU-A5ZG7DT2-Cao8cecF.js → hu-HU-A5ZG7DT2-C37EVmEa.js} +1 -1
- package/dist/viewer-lib/{id-ID-SAP4L64H-CWnVrU2u.js → id-ID-SAP4L64H-ClyjpOWe.js} +1 -1
- package/dist/viewer-lib/{image-GAAHSSAO-5jYfRo5K.js → image-GAAHSSAO-uUIN58iQ.js} +1 -1
- package/dist/viewer-lib/index.js +1776 -1778
- package/dist/viewer-lib/{it-IT-JPQ66NNP-DiPCKoa_.js → it-IT-JPQ66NNP-Blbj9-RE.js} +1 -1
- package/dist/viewer-lib/{ja-JP-DBVTYXUO-CXbGOVTd.js → ja-JP-DBVTYXUO-d4IkMycP.js} +1 -1
- package/dist/viewer-lib/{kaa-6HZHGXH3-BkMVWloD.js → kaa-6HZHGXH3-BLfJ-cuB.js} +1 -1
- package/dist/viewer-lib/{kab-KAB-ZGHBKWFO-FA3Rofsx.js → kab-KAB-ZGHBKWFO-CE_PEjYa.js} +1 -1
- package/dist/viewer-lib/{kk-KZ-P5N5QNE5-CsDnxzrG.js → kk-KZ-P5N5QNE5-MSQ0edn8.js} +1 -1
- package/dist/viewer-lib/{km-KH-HSX4SM5Z-BxCiwgzA.js → km-KH-HSX4SM5Z-BYOvIsAB.js} +1 -1
- package/dist/viewer-lib/{ko-KR-MTYHY66A-C-7uFPlL.js → ko-KR-MTYHY66A-DBp6P6uI.js} +1 -1
- package/dist/viewer-lib/{ku-TR-6OUDTVRD-BILRBU5_.js → ku-TR-6OUDTVRD-DXb7ijNZ.js} +1 -1
- package/dist/viewer-lib/{lib-DwpunbxQ.js → lib-0D5Lgp7R.js} +1 -1
- package/dist/viewer-lib/{lt-LT-XHIRWOB4-B6TKZcXY.js → lt-LT-XHIRWOB4-tWY6xBEJ.js} +1 -1
- package/dist/viewer-lib/{lv-LV-5QDEKY6T-C-K90vIy.js → lv-LV-5QDEKY6T-B8Ew_8za.js} +1 -1
- package/dist/viewer-lib/{mr-IN-CRQNXWMA-K0hO9NLW.js → mr-IN-CRQNXWMA-C6A0bvr8.js} +1 -1
- package/dist/viewer-lib/{my-MM-5M5IBNSE-Da5X6e7B.js → my-MM-5M5IBNSE-B4eEg06F.js} +1 -1
- package/dist/viewer-lib/{nb-NO-T6EIAALU-D9WwGGq8.js → nb-NO-T6EIAALU-BST0y_U9.js} +1 -1
- package/dist/viewer-lib/{nl-NL-IS3SIHDZ-BOYOn6bl.js → nl-NL-IS3SIHDZ-R2rJHctU.js} +1 -1
- package/dist/viewer-lib/{nn-NO-6E72VCQL-Bwi6kGD3.js → nn-NO-6E72VCQL-DFgpBRTv.js} +1 -1
- package/dist/viewer-lib/{oc-FR-POXYY2M6-h8Hb5RCQ.js → oc-FR-POXYY2M6-Dfgf8Rar.js} +1 -1
- package/dist/viewer-lib/{pa-IN-N4M65BXN-DHJ5ZqCB.js → pa-IN-N4M65BXN-pRdhmMMX.js} +1 -1
- package/dist/viewer-lib/percentages-BXMCSKIN-tIRAqLi6.js +1 -0
- package/dist/viewer-lib/{pl-PL-T2D74RX3-DSrRpGY_.js → pl-PL-T2D74RX3-CWXo_n8w.js} +1 -1
- package/dist/viewer-lib/{plugin-_bGVeqI0-CUWLVkLE.js → plugin-_bGVeqI0-CEaMOsSS.js} +1 -1
- package/dist/viewer-lib/{prod-IPTdmVn7.js → prod-C-Yl3reA.js} +59 -59
- package/dist/viewer-lib/{pt-BR-5N22H2LF-Cnku-mHw.js → pt-BR-5N22H2LF-QYaR1bwz.js} +1 -1
- package/dist/viewer-lib/{pt-PT-UZXXM6DQ-CI4Lw12R.js → pt-PT-UZXXM6DQ-B3Xmhk77.js} +1 -1
- package/dist/viewer-lib/{ro-RO-JPDTUUEW-Z0rMTCBA.js → ro-RO-JPDTUUEW-c4iCK_Pl.js} +1 -1
- package/dist/viewer-lib/{route-messages-BHovJ4nB.js → route-messages-BOdX3qq4.js} +20 -20
- package/dist/viewer-lib/{ru-RU-B4JR7IUQ-DH7fwhiu.js → ru-RU-B4JR7IUQ-D6bje_j4.js} +1 -1
- package/dist/viewer-lib/{si-LK-N5RQ5JYF-BFG1Q032.js → si-LK-N5RQ5JYF-CSCCQJ8w.js} +1 -1
- package/dist/viewer-lib/{sk-SK-C5VTKIMK-nKDfxLLq.js → sk-SK-C5VTKIMK-Y0-0nXpW.js} +1 -1
- package/dist/viewer-lib/{sl-SI-NN7IZMDC-zdGtFnJ4.js → sl-SI-NN7IZMDC-LLRODh8d.js} +1 -1
- package/dist/viewer-lib/{stylex-H52XSOyN.css → stylex-CCivaCRo.css} +88 -0
- package/dist/viewer-lib/subset-shared.chunk-Bkt4jbTb.js +2 -0
- package/dist/viewer-lib/{subset-worker.chunk-DHe1FqQ-.js → subset-worker.chunk-CFZCkpb_.js} +2 -2
- package/dist/viewer-lib/{sv-SE-XGPEYMSR-MVhH_h3w.js → sv-SE-XGPEYMSR-r-pwNhnE.js} +1 -1
- package/dist/viewer-lib/{ta-IN-2NMHFXQM-C_I2r20T.js → ta-IN-2NMHFXQM-BpeAXDlG.js} +1 -1
- package/dist/viewer-lib/{th-TH-HPSO5L25-DQ6MPZ1r.js → th-TH-HPSO5L25-DVXFh9KL.js} +1 -1
- package/dist/viewer-lib/thumbnail.js +3 -1
- package/dist/viewer-lib/{tr-TR-DEFEU3FU-BNz_PazH.js → tr-TR-DEFEU3FU-CywClmkn.js} +1 -1
- package/dist/viewer-lib/types/src/shared/brand.d.ts +2 -1
- package/dist/viewer-lib/types/src/viewer/components/PageLoader.d.ts +3 -0
- package/dist/viewer-lib/types/src/viewer/components/RyugiLoader.d.ts +5 -0
- package/dist/viewer-lib/types/src/viewer/lib/pageSettle.d.ts +2 -0
- package/dist/viewer-lib/types/src/viewer/library/core.d.ts +3 -0
- package/dist/viewer-lib/{uk-UA-QMV73CPH-Dn_Qrdeq.js → uk-UA-QMV73CPH-CBuRoxji.js} +1 -1
- package/dist/viewer-lib/{vi-VN-M7AON7JQ-C777_3GC.js → vi-VN-M7AON7JQ-CUq13H3z.js} +1 -1
- package/dist/viewer-lib/{viewport-CFJHn_Y6-BrrKKQGr.js → viewport-CFJHn_Y6-NgIgENqw.js} +1 -1
- package/dist/viewer-lib/{zh-CN-LNUGB5OW-yPc5aNBV.js → zh-CN-LNUGB5OW-BRivCR5s.js} +1 -1
- package/dist/viewer-lib/{zh-HK-E62DVLB3-DL9Y2kPe.js → zh-HK-E62DVLB3-DaZXYMh5.js} +1 -1
- package/dist/viewer-lib/{zh-TW-RAJ6MFWO-3VDE8SB2.js → zh-TW-RAJ6MFWO-B7IvI564.js} +1 -1
- package/package.json +1 -1
- package/dist/viewer/ArtboardLayout-9iOfvOR4.js +0 -12
- package/dist/viewer/ArtifactList-Binw79VZ.js +0 -2
- package/dist/viewer/DocumentLayout-D7hzy6qw.js +0 -2
- package/dist/viewer/DocumentPage-whdrobXS.js +0 -4
- package/dist/viewer/DropdownMenu-CZUIT5ss.js +0 -1
- package/dist/viewer/PreviewLayout-Dvv4xVya.js +0 -2
- package/dist/viewer/WhiteboardLayout-fX2Dx4Ro.js +0 -3
- package/dist/viewer/channel-OqtHMQX0.js +0 -1
- package/dist/viewer/classDiagram-ZZMXUADV-CVstJoyx.js +0 -1
- package/dist/viewer/classDiagram-v2-VYDZK3BY-CVstJoyx.js +0 -1
- package/dist/viewer/flowDiagram-HODETNUW-CzgiVLhq.js +0 -1
- package/dist/viewer/percentages-BXMCSKIN-DvCjqEYt.js +0 -1
- package/dist/viewer/route-BWL5AGYx.js +0 -64
- package/dist/viewer/stateDiagram-v2-MP3YSRHH-Ds741M59.js +0 -1
- package/dist/viewer/subset-shared.chunk-BwlAfs_X.js +0 -1
- package/dist/viewer/swimlanesDiagram-VR7AAH4N-CIbxLGch.js +0 -8
- package/dist/viewer/useCloudStatus-BJMLC8Dr.js +0 -1
- package/dist/viewer-lib/percentages-BXMCSKIN-CN_vO7hH.js +0 -1
- package/dist/viewer-lib/subset-shared.chunk-BI1a3Hz4.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,t}from"./rolldown-runtime-COiEfhsA.js";import{
|
|
1
|
+
import{i as e,t}from"./rolldown-runtime-COiEfhsA.js";import{b as n,g as r,r as i,y as a}from"./route-CDT5H7Dv.js";import{t as o}from"./react-B8SKf8RM.js";import{t as s}from"./jsx-runtime-DePvh3-m.js";import{B as c,D as l,E as u,F as d,G as f,H as p,I as m,J as h,K as g,L as _,P as v,R as y,U as b,V as x,W as S,X as C,Y as w,a as T,d as E,f as D,g as ee,h as O,i as k,l as A,n as j,o as M,q as te,r as N,s as ne,t as P,u as re,v as ie,y as ae,z as oe}from"./MotionConfigContext-DBHtopYR.js";var F=e(o(),1),se=e=>{let t=document.createElement(`link`);return t.rel=`stylesheet`,t.href=e,t},ce=(0,F.memo)(({url:e})=>{let t=(0,F.useRef)(null);return(0,F.useEffect)(()=>{let n=se(e);document.head.append(n),t.current=n;let r=()=>console.error(`Failed to load font from ${e}`);return n.addEventListener(`error`,r),()=>{n.removeEventListener(`error`,r),n.remove(),t.current=null}},[e]),null});ce.displayName=`FontLoader`;var le=`
|
|
2
2
|
[data-lobe-global-focus-ring] {
|
|
3
3
|
all: initial;
|
|
4
4
|
position: fixed;
|
|
@@ -26,7 +26,7 @@ import{i as e,t}from"./rolldown-runtime-COiEfhsA.js";import{_ as n,g as r,p as i
|
|
|
26
26
|
@media (forced-colors: active) {
|
|
27
27
|
[data-lobe-global-focus-ring] { outline-color: CanvasText; animation: none; }
|
|
28
28
|
}
|
|
29
|
-
`,I=new WeakMap,ue=(e=document)=>{let t=I.get(e);if(t){t.users+=1;let e=!1;return()=>{e||(e=!0,--t.users===0&&t.dispose())}}let n=e.defaultView;if(!n||!e.body||!n.CSS?.supports(`top`,`anchor(top)`)||!n.CSS.supports(`position-visibility`,`anchors-visible`)||!(`showPopover`in e.createElement(`div`)))return()=>{};let r=e.createElement(`style`);r.textContent=le;let i=e.createElement(`div`);i.setAttribute(`data-lobe-global-focus-ring`,``),i.setAttribute(`aria-hidden`,`true`),i.setAttribute(`popover`,`manual`),e.head.append(r),e.body.append(i);let a,o,s=0,c=!1,l=()=>{i.matches(`:popover-open`)&&i.hidePopover(),o?.(),o=void 0,a=void 0},u=()=>{if(c)return;let t=e.activeElement;if(t===a&&t?.matches(`:focus-visible`)&&t.isConnected&&i.matches(`:popover-open`)||(l(),!t||t===e.body||t.namespaceURI!==`http://www.w3.org/1999/xhtml`||t.shadowRoot||t.closest(`[data-lobe-focus-ring="off"]`)||t.matches(`textarea`)||t.isContentEditable||t.matches(`input`)&&![`button`,`submit`,`reset`,`image`,`checkbox`,`radio`,`range`,`color`,`file`].includes(t.type)||!t.matches(`:focus-visible`)))return;let r=t,s=r.parentElement;for(;s&&n.getComputedStyle(s).contain===`none`;)s=s.parentElement;let u=s||e.body,f=i.parentElement!==u;f&&u.append(i);let p=n.getComputedStyle(r),m=p.borderRadius,h=p.getPropertyValue(`--lobe-focus-ring-color`).trim()||p.getPropertyValue(`--lobe-color-info`).trim()||`#1677ff`,g=i.style.borderRadius!==m||i.style.getPropertyValue(`--lobe-focus-ring-color`)!==h;if(g&&(i.style.borderRadius=m,i.style.setProperty(`--lobe-focus-ring-color`,h)),f||g){d();return}let _=[`anchor-name`,`outline`].map(e=>({priority:r.style.getPropertyPriority(e),property:e,value:r.style.getPropertyValue(e)})),v=r.getAttribute(`data-lobe-focus-ring`),y=p.getPropertyValue(`anchor-name`).trim(),b=y&&y!==`none`?`${y}, --lobe-global-focus`:`--lobe-global-focus`;r.style.setProperty(`anchor-name`,b,`important`),o=()=>{for(let{property:e,value:t,priority:n}of _){let i=e===`anchor-name`?b:`none`;r.style.getPropertyValue(e)===i&&(t?r.style.setProperty(e,t,n):r.style.removeProperty(e))}r.getAttribute(`data-lobe-focus-ring`)===`managed`&&(v===null?r.removeAttribute(`data-lobe-focus-ring`):r.setAttribute(`data-lobe-focus-ring`,v))};let x=r.getBoundingClientRect();if(r.getClientRects().length!==1||!x.width||!x.height||p.visibility!==`visible`)l();else try{i.showPopover();let e=i.getBoundingClientRect();if(Math.max(...[`top`,`right`,`bottom`,`left`].map(t=>Math.abs(e[t]-x[t])))>1){l();return}r.style.setProperty(`outline`,`none`,`important`),r.setAttribute(`data-lobe-focus-ring`,`managed`),a=r}catch{l()}},d=()=>{s||=n.requestAnimationFrame(()=>{s=0,u()})},f=()=>n.queueMicrotask(u),p=()=>{n.cancelAnimationFrame(s),s=0,i.matches(`:popover-open`)&&i.hidePopover()},m=new MutationObserver(()=>{a&&!a.isConnected&&l()});return m.observe(e.body,{childList:!0,subtree:!0}),e.addEventListener(`focusin`,f,!0),e.addEventListener(`focusout`,d,!0),e.addEventListener(`keydown`,d,!0),e.addEventListener(`pointerdown`,d,!0),n.addEventListener(`blur`,p),n.addEventListener(`focus`,d),I.set(e,{dispose:()=>{c=!0,n.cancelAnimationFrame(s),m.disconnect(),e.removeEventListener(`focusin`,f,!0),e.removeEventListener(`focusout`,d,!0),e.removeEventListener(`keydown`,d,!0),e.removeEventListener(`pointerdown`,d,!0),n.removeEventListener(`blur`,p),n.removeEventListener(`focus`,d),l(),i.remove(),r.remove(),I.delete(e)},users:0}),u(),ue(e)},L=s(),de=(0,F.createContext)(null);(0,F.memo)(({children:e,motion:t})=>(0,L.jsx)(de,{value:t,children:e}));var fe=()=>{let e=(0,F.use)(de);if(!e)throw Error(`Please wrap your app with <ConfigProvider> (or <MotionProvider>) and pass the motion component`);return e},pe=`https://unpkg.com`,me=`https://registry.npmmirror.com`,he=(e,...t)=>{let n=[e.replace(/\/+$/,``),...t.map(e=>e.replaceAll(/^\/+|\/+$/g,``))].filter(Boolean).join(`/`);return t.at(-1)?.endsWith(`/`)?`${n}/`:n},ge=({pkg:e,version:t=`latest`,path:n,proxy:r})=>{switch(r){case`unpkg`:return he(pe,`${e}@${t}`,n);default:return he(me,e,t,`files`,n)}},_e=(0,F.createContext)(null),ve=()=>(0,F.use)(_e),ye=[{path:`css/index-full.css`,pkg:`@lobehub/webfont-geist`,version:`1.0.0`},{path:`css/index-full.css`,pkg:`@lobehub/webfont-geist-mono`,version:`1.0.0`},{path:`css/index-full.css`,pkg:`@lobehub/webfont-harmony-sans`,version:`1.0.0`},{path:`css/index.css`,pkg:`@lobehub/webfont-harmony-sans-sc`,version:`1.0.0`},{path:`dist/katex.min.css`,pkg:`katex`,version:`0.19.0`}],be=`lobe-ui-theme-app`,xe=(0,F.createContext)(null),Se=(0,F.createContext)(`ltr`),Ce=(0,F.createContext)({locale:`en`,t:e=>e}),we=e=>typeof e?.then==`function`,Te=(0,F.memo)(({children:e,config:t,customFonts:n,direction:r=`ltr`,enableCustomFonts:i=!0,locale:a,resources:o,motion:s})=>{let[c,l]=(0,F.useState)(null);(0,F.useEffect)(()=>{if(t?.globalFocusRing!==!1)return ue()},[t?.globalFocusRing]);let u=a??`en`,[d,f]=(0,F.useState)(()=>o&&!we(o)?o:void 0),[p,m]=(0,F.useState)(u),h=(0,F.useRef)(0);(0,F.useEffect)(()=>{let e=++h.current;if(!o)f(void 0),m(u);else if(we(o)){let t=u;o.then(n=>{h.current===e&&(f(n),m(t))}).catch(()=>{h.current})}else f(o),m(u)},[u,o]);let g=we(o)?d:o,_=we(o)?p:u,v=(0,F.useMemo)(()=>{let e=Array.isArray(g)?g:g?Object.values(g):[],t=Object.assign({},...e);return{locale:_,t:e=>t[e]||e}},[_,g]);return(0,L.jsx)(Ce,{value:v,children:(0,L.jsx)(xe,{value:t??null,children:(0,L.jsx)(Se,{value:r,children:(0,L.jsx)(de,{value:s,children:(0,L.jsxs)(_e,{value:c,children:[i&&(0,L.jsx)(De,{customFonts:n}),e,(0,L.jsx)(`div`,{"data-lobe-portal-host":``,id:be,ref:l,style:Ee})]})})})})})}),Ee={height:0,left:0,position:`fixed`,right:0,top:0,zIndex:1100},De=({customFonts:e})=>{let t=ke();return(0,F.useMemo)(()=>e||ye.map(e=>t(e)),[e,t]).map(e=>(0,L.jsx)(ce,{url:e},e))},Oe=({pkg:e,version:t,path:n})=>ge({path:n,pkg:e,proxy:`aliyun`,version:t}),ke=()=>{let e=(0,F.use)(xe);return e?e?.proxy===`custom`?e?.customCdnFn||Oe:({pkg:t,version:n,path:r})=>ge({path:r,pkg:t,proxy:e.proxy,version:n}):Oe},Ae=()=>(0,F.use)(Ce),je=(e,t,r)=>{let i=n(e);return{className:h(i.className,t),style:i.style||r?{...i.style,...r}:void 0}},Me={info:{"--lobe-focus-ring-color":`lb155ckj2`,k44tkh:`lbe1ka5p lb11mn51e lb147fc9v`,kKVMdj:`lb1c1sa8k lbck0e01 lbp55ekp`,kyAemX:`lbgqpy2 lb171d7gl lb1bbl1vv`,kjBf7l:`lb1rxiahi lb1y5du2d`,kInvED:`lb1bf9hc9`,k3XXqK:`lb2xeow7`,kMeerF:`lbjls3y1`,$$css:!0}};function Ne({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=F.useRef(e!==void 0),[a,o]=F.useState(()=>t);return[i&&e!==void 0?e:a,F.useCallback(e=>{i||o(e)},[])]}var Pe={...F},Fe={};function R(e,t){let n=F.useRef(Fe);return n.current===Fe&&(n.current=e(t)),n}var Ie=Pe.useInsertionEffect,Le=Ie&&Ie!==Pe.useLayoutEffect?Ie:e=>e();function z(e){let t=R(Re).current;return t.next=e,Le(t.effect),t.trampoline}function Re(){let e={next:void 0,callback:ze,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function ze(){}function B(){}var Be=Object.freeze([]),V=Object.freeze({}),H=typeof document<`u`?F.useLayoutEffect:()=>{},Ve=F.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function He(){return F.useContext(Ve)}function Ue(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=z(i),[,o]=F.useState(0),s=R(Ge).current,c=R(We).current,l=F.useRef(0),u=F.useRef(!0),d=F.useRef(null),f=F.useRef(null),p=z(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=z((e,t)=>{c.set(e,t),p()}),h=z(e=>{c.delete(e),p()}),g=z(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!Je(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&Ye(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=qe(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=z(()=>{let[e,t]=Ke(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});H(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),H(()=>{u.current&&v()}),H(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=z(e=>(s.add(e),()=>{s.delete(e)})),b=F.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,L.jsx)(Ve.Provider,{value:b,children:t})}function We(){return new Map}function Ge(){return new Set}function Ke(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>Ye(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function qe(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function Je(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function Ye(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function Xe(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Ze=Xe(`https://base-ui.com/production-error`,`Base UI`);function Qe(e,t,n,r){let i=R(et).current;return tt(i,e,t,n,r)&&rt(i,[e,t,n,r]),i.callback}function $e(e){let t=R(et).current;return nt(t,e)&&rt(t,e),t.callback}function et(){return{callback:null,cleanup:null,refs:[]}}function tt(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function nt(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function rt(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var it=19;function at(e){return it>=e}function ot(e){if(!F.isValidElement(e))return null;let t=e,n=t.props;return(at(19)?n?.ref:t.ref)??null}function st(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function ct(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function lt(e,t){return typeof e==`function`?e(t):e}function ut(e,t){return typeof e==`function`?e(t):e}var dt={};function ft(e,t,n,r,i){if(!n&&!r&&!i&&!e)return mt(t);let a=mt(e);return t&&(a=ht(a,t)),n&&(a=ht(a,n)),r&&(a=ht(a,r)),i&&(a=ht(a,i)),a}function pt(e){if(e.length===0)return dt;if(e.length===1)return mt(e[0]);let t=mt(e[0]);for(let n=1;n<e.length;n+=1)t=ht(t,e[n]);return t}function mt(e){return yt(e)?{...e(dt)}:gt(e)}function ht(e,t){return yt(t)?t(e):_t(e,t)}function gt(e){let t={...e};for(let e in t){let n=t[e];vt(e,n)&&(t[e]=xt(n))}return t}function _t(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=st(e.style,r);break;case`className`:e[n]=Ct(e.className,r);break;default:e[n]=vt(n,r)?bt(e[n],r):r}}return e}function vt(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function yt(e){return typeof e==`function`}function bt(e,t){return t?e?(...n)=>{let r=n[0];if(wt(r)){let i=r;St(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:xt(t):e}function xt(e){return e&&((...t)=>{let n=t[0];return wt(n)&&St(n),e(...t)})}function St(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Ct(e,t){return t?e?t+` `+e:t:e}function wt(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Tt(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=kt(r));let i=Et(t,n,r);if(n.enabled===!1)return null;let a=n.state??V;return At(e,r,i,a)}function Et(e,t,n){let{className:r,style:i}=e,{state:a=V,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?lt(r,a):void 0,d=l?ut(i,a):void 0,f=l?ct(a,c):V,p=l&&s?Dt(s):void 0,m=l?st(f,p)??{}:V;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?$e([m.ref,ot(n),...o]):Qe(m.ref,ot(n),o):Qe(null,null)),l?(u!==void 0&&(m.className=Ct(m.className,u)),d!==void 0&&(m.style=st(m.style,d)),m):V}function Dt(e){return Array.isArray(e)?pt(e):ft(void 0,e)}var Ot=Symbol.for(`react.lazy`);function kt(e){if(e?.$$typeof!==Ot)return e;let t=F.Children.toArray(e)[0];return F.isValidElement(t)?t:e}function At(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=ft(n,t.props);return e.ref=n.ref,F.cloneElement(t,e)}return jt(e,n)}function jt(e,t){return e===`button`?(0,F.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,F.createElement)(`img`,{alt:``,...t,key:t.key}):F.createElement(e,t)}function Mt(){let[,e]=F.useState({});return F.useCallback(()=>{e({})},[])}var Nt=0;function Pt(e,t=`mui`){let n=F.useRef(void 0),r=Mt(),i=e??n.current;return F.useEffect(()=>{n.current??(Nt+=1,n.current=`${t}-${Nt}`,e??r())},[e,t,r]),i}var Ft=Pe.useId;function It(e,t){if(Ft!==void 0){let n=Ft();return e??(t?`${t}-${n}`:n)}return Pt(e,t)}function Lt(e){return It(e,`base-ui`)}function Rt(e,t,n,r){let i=!1,a=!1,o=r??V;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function zt(e,t,n){let r=n??V;return{reason:e,event:t??new Event(`base-ui`),...r}}var Bt=`none`,Vt=`trigger-press`,Ht=`trigger-hover`,Ut=`trigger-focus`,Wt=`outside-press`,Gt=`item-press`,Kt=`close-press`,qt=`track-press`,Jt=`increment-press`,Yt=`decrement-press`,Xt=`input-change`,Zt=`input-clear`,Qt=`input-blur`,$t=`input-paste`,en=`input-press`,tn=`focus-out`,nn=`escape-key`,rn=`list-navigation`,an=`keyboard`,on=`pointer`,sn=`drag`,cn=`wheel`,ln=`cancel-open`,un=`sibling-open`,dn=`disabled`,fn=`missing`,pn=`initial`,mn=`imperative-action`,hn=`window-resize`;function gn(e){F.useEffect(e,Be)}var _n=null;globalThis.requestAnimationFrame;var vn=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},yn=class e{static create(){return new e}static request(e){return vn.request(e)}static cancel(e){return vn.cancel(e)}currentId=_n;request(e){this.cancel(),this.currentId=vn.request(()=>{this.currentId=_n,e()})}cancel=()=>{this.currentId!==_n&&(vn.cancel(this.currentId),this.currentId=_n)};disposeEffect=()=>this.cancel};function bn(){let e=R(yn.create).current;return gn(e.disposeEffect),e}function xn(e,t=!1,n=!1,r=!1){let[i,a]=F.useState(e&&t?`idle`:void 0),[o,s]=F.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),H(()=>{if(!e&&o&&i!==`ending`&&n){let e=yn.request(()=>{a(`ending`)});return()=>{yn.cancel(e)}}},[e,o,i,n]),H(()=>{if(!e||t||i===void 0)return;let n=yn.request(()=>{a(void 0)});return()=>{yn.cancel(n)}},[t,e,i]),H(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=yn.request(()=>{a(`idle`)});return()=>{yn.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function Sn(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=He(),u=F.useRef(-1),[d,f]=F.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=F.useRef(null),h=F.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return H(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var Cn=`data-starting-style`,wn=`data-ending-style`,Tn={[Cn]:``},En={[wn]:``},Dn={transitionStatus(e){return e===`starting`?Tn:e===`ending`?En:null}};function On(){return typeof window<`u`}function U(e){return An(e)?(e.nodeName||``).toLowerCase():`#document`}function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){return((An(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function An(e){return On()?e instanceof Node||e instanceof W(e).Node:!1}function G(e){return On()?e instanceof Element||e instanceof W(e).Element:!1}function K(e){return On()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}function jn(e){return!On()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}function Mn(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Nn(e){return/^(table|td|th)$/.test(U(e))}function Pn(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Fn=/transform|translate|scale|rotate|perspective|filter/,In=/paint|layout|strict|content/,Ln=e=>!!e&&e!==`none`,Rn;function zn(e){let t=G(e)?q(e):e;return Ln(t.transform)||Ln(t.translate)||Ln(t.scale)||Ln(t.rotate)||Ln(t.perspective)||!Vn()&&(Ln(t.backdropFilter)||Ln(t.filter))||Fn.test(t.willChange||``)||In.test(t.contain||``)}function Bn(e){let t=Wn(e);for(;K(t)&&!Hn(t);){if(zn(t))return t;if(Pn(t))return null;t=Wn(t)}return null}function Vn(){return Rn??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Rn}function Hn(e){return/^(html|body|#document)$/.test(U(e))}function q(e){return W(e).getComputedStyle(e)}function Un(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wn(e){if(U(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||jn(e)&&e.host||kn(e);return jn(t)?t.host:t}function Gn(e){let t=Wn(e);return Hn(t)?(e.ownerDocument||e).body:K(t)&&Mn(t)?t:Gn(t)}function Kn(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Gn(e),i=r===e.ownerDocument?.body,a=W(r);if(i){let e=qn(a);return t.concat(a,a.visualViewport||[],Mn(r)?r:[],e&&n?Kn(e):[])}return t.concat(r,Kn(r,[],n))}function qn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Jn=F.createContext(void 0);function Yn(e=!1){let t=F.useContext(Jn);if(t===void 0&&!e)throw Error(Ze(16));return t}function Xn(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:F.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function J(e){return e?.ownerDocument||document}function Zn(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(W(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Qn(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=F.useRef(null),s=Yn(!0),c=a??s!==void 0,{props:l}=Xn({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=F.useCallback(()=>{let e=o.current;$n(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return H(u,[u]),{getButtonProps:F.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return ft({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(St(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=$n(r),s=!i&&er(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),Zn(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),Zn(r,e)))},onKeyUp(e){t||(St(e),a?.(e),e.target===e.currentTarget&&i&&c&&$n(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),Zn(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:z(e=>{o.current=e,u()})}}function $n(e){return K(e)&&e.tagName===`BUTTON`}function er(e){return K(e)&&e.tagName===`A`&&!!e.href}function Y(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}var tr=0,nr=class e{static create(){return new e}currentId=tr;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=tr,t()},e)}isStarted(){return this.currentId!==tr}clear=()=>{this.currentId!==tr&&(clearTimeout(this.currentId),this.currentId=tr)};disposeEffect=()=>this.clear};function rr(){let e=R(nr.create).current;return gn(e.disposeEffect),e}function ir(e){let t=R(ar,e).current;return t.next=e,H(t.effect),t}function ar(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var or=e(r(),1);function sr(e){return e==null?e:`current`in e?e.current:e}function cr(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var lr=null;function ur(e){if(!lr){let e=[];lr=e,queueMicrotask(()=>{lr=null,or.flushSync(()=>{for(let t of e)t()})})}lr.push(e)}function dr(e,t=!1,n=!1){let r=bn();return z((i,a=null)=>{r.cancel();let o=sr(e);if(o==null)return;let s=o,c=()=>{n?ur(()=>{a?.aborted||i()}):or.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(cr(s).map(e=>e.finished.then(B))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(cr(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=Cn;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function fr(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=z(a),s=dr(r,n,i);F.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}var pr={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};pr.node;var mr=te(pr),hr={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};hr.node;var gr=te(hr),_r={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};_r.node;var vr=te(_r),yr=(0,F.createContext)({}),br=(0,F.memo)(({children:e,config:t={}})=>(0,L.jsx)(yr,{value:t,children:e})),xr=()=>(0,F.use)(yr);function Sr(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}function Cr(e){return typeof e==`object`&&!!e}function wr(e){return typeof e==`number`||Cr(e)&&Sr(e)===`[object Number]`}var Tr=e=>{if(wr(e))return{size:e};let t,n;switch(e){case`large`:t=24,n=2;break;case`middle`:t=20,n=2;break;case`small`:t=14,n=2;break;default:e?(t=e?.size||24,n=e?.strokeWidth||2):(t=`1em`,n=2)}return{size:t,strokeWidth:n}},Er=w({block:`icon`,dataAttributes:[`spin`],elements:[]}),Dr={root:{kGNEyG:`lb6s0dn4`,k1xSpc:`lb3nfvp2`,kLWn49:`lb14ju556`,kXLuUW:`lb1x7wgjd`,$$css:!0},spin:{k44tkh:`lb1q3qbx4`,ko0y90:`lba4qsjk`,kKVMdj:`lb1fhqo85`,kyAemX:`lb1esw782`,$$css:!0}},Or=(0,F.memo)(({icon:e,size:t,color:n,fill:r=`transparent`,className:i,focusable:a,spin:o,fillRule:s,fillOpacity:c,ref:l,...u})=>{let{color:d,fill:f,fillOpacity:p,fillRule:m,focusable:g,className:_,size:v,...y}=xr(),{size:b,strokeWidth:x}=(0,F.useMemo)(()=>Tr(t||v),[t,v]),S=e;return(0,L.jsx)(`span`,{role:`img`,...C({spin:o}),className:je([Dr.root,o&&Dr.spin],h(Er(),`anticon`,_,i)).className,...y,...u,children:e&&((0,F.isValidElement)(e)?e:(0,L.jsx)(S,{color:n||d,fill:r||f,fillOpacity:c||p,fillRule:s||m,focusable:a||g,height:b,ref:l,size:b,strokeWidth:x,width:b}))})});Or.displayName=`Icon`;var X={base:{kVAM5u:`lbqnr5ac`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,kOIVth:`lb17d4w8g`,kybGjl:`lb1hl2dhg`,kmkexE:`lb15xd0no`,kGNEyG:`lb6s0dn4`,kB7OPa:`lb9f619`,kkrTdU:`lb1ypdohk lb126qsmr`,k1xSpc:`lb3nfvp2`,k63SB2:`lbk50ysn`,kjj79g:`lbl56j7k`,kLWn49:`lbo5v014`,kSiTet:`lby3kg0r`,kfzvcC:`lb1cp6yjb`,kVAEAm:`lb1n2onr6`,khDVqt:`lbuxw1ft`,$$css:!0},sizeSmall:{"--button-padding-inline":`lb1xvjv2a`,kaIpWk:`lb1vihcfj`,kg3NbH:`lb1v42klx`,kGuDYH:`lbfifm61`,kZKoxP:`lbxk0z11`,$$css:!0},sizeMiddle:{"--button-padding-inline":`lb1l3x1nm`,kaIpWk:`lb1vihcfj`,kg3NbH:`lb1v42klx`,kGuDYH:`lb4z9k3i`,kZKoxP:`lb10w6t97`,$$css:!0},sizeLarge:{"--button-padding-inline":`lb1r8q1i9`,kaIpWk:`lb1sbi92r`,kg3NbH:`lb1v42klx`,kGuDYH:`lbif65rj`,kZKoxP:`lb1vqgdyp`,$$css:!0},outdentStart:{keTefX:`lbugkenv`,$$css:!0},outdentEnd:{k71WvV:`lb8o6c4q`,$$css:!0},shapeCircle:{kaIpWk:`lb16rqkct`,kg3NbH:`lbnjsko4`,$$css:!0},shapeRound:{kaIpWk:`lb1e6avla`,$$css:!0},block:{kzqmXN:`lbh8yej3`,$$css:!0},iconEnd:{kXwgrk:`lb15zctf7`,$$css:!0},iconOnlySmall:{"--button-padding-inline":`lb1wdnxgk`,kg3NbH:`lbnjsko4`,kzqmXN:`lbvy4d1p`,$$css:!0},iconOnlyMiddle:{"--button-padding-inline":`lb1wdnxgk`,kg3NbH:`lbnjsko4`,kzqmXN:`lb1td3qas`,$$css:!0},iconOnlyLarge:{"--button-padding-inline":`lb1wdnxgk`,kg3NbH:`lbnjsko4`,kzqmXN:`lb100vrsf`,$$css:!0},iconBox:{kGNEyG:`lb6s0dn4`,k1xSpc:`lb3nfvp2`,kjj79g:`lbl56j7k`,$$css:!0},spinnerSlot:{kVQacm:`lb1rea2x4`,kmkexE:`lbp7890b`,kmuXW:`lb2lah0s`,k71WvV:`lb1ws5yxj`,kVAEAm:`lb1n2onr6`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbnalus7`,$$css:!0},spinnerSlotEnd:{k71WvV:`lb14z9mp`,keTefX:`lbw01apr`,$$css:!0},spinnerSlotShow:{k71WvV:`lb14z9mp`,keTefX:`lb1lziwak`,kzqmXN:`lbsmyaan`,$$css:!0},spinnerVisual:{kmkexE:`lb1ja9v0h`,k87sOh:`lb13vifvy`,kLqNvP:`lb1o0tod`,kSiTet:`lbg01cxk`,kVAEAm:`lb10l6tqk`,k3aq6I:`lb1a33avv`,k3nNDw:`lb1g0ag68`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbsmyaan`,$$css:!0},spinnerVisualShow:{kSiTet:`lb1hc1fzr`,k3aq6I:`lb3oybdh`,$$css:!0},variantDefault:{kVAM5u:`lbqnr5ac lbv4eugq`,kWkggS:`lb6yijhg`,kKwaWg:`lb1hdlj1n lbx7ggy6`,kMwMTN:`lb66ogz0`,$$css:!0},variantPrimary:{kVAM5u:`lb13w8tc6 lb1jy2tmp lbiuvf2s lbba5owj`,kWkggS:`lb65u3hq lb1hsafae lb1n16ko lbep1hoi`,kMwMTN:`lb15g0kca`,$$css:!0},variantDashed:{kVAM5u:`lbqnr5ac lbv4eugq`,ksu8eU:`lbbsl7fq`,kWkggS:`lb6yijhg`,kKwaWg:`lb1hdlj1n lbx7ggy6`,kMwMTN:`lb66ogz0`,$$css:!0},variantFill:{kVAM5u:`lb9r1u3d`,kWkggS:`lb1qlulce lbaljia1 lb5d67gy`,kMwMTN:`lb66ogz0`,$$css:!0},variantText:{kVAM5u:`lb9r1u3d`,kWkggS:`lbjbqb8w lb1f5ares`,kMwMTN:`lb66ogz0`,$$css:!0},variantLink:{kVAM5u:`lb9r1u3d`,kg3NbH:`lbnjsko4`,kWkggS:`lbjbqb8w`,kMwMTN:`lb16owwnm lbvdzly1`,$$css:!0},dangerOutlined:{kVAM5u:`lb1mpi7gh lbs8cwth`,kWkggS:`lb1saschm lb6yijhg lbzxaxr6`,kKwaWg:null,kMwMTN:`lb12ap7uz`,$$css:!0},dangerSolid:{kVAM5u:`lb1dvy257 lb11fhi00 lb2949mz lb1e5ynfq`,kWkggS:`lb15l4kc2 lbixdnzb lb1mog8ep lb1gj3nph`,kMwMTN:`lb15g0kca`,$$css:!0},dangerFill:{kVAM5u:`lb9r1u3d`,kWkggS:`lbrq8w1b lb1f2tfg0 lb1lf6bdk`,kMwMTN:`lb12ap7uz`,$$css:!0},dangerText:{kWkggS:`lb14kxky9 lbjbqb8w lb3lzv3l`,kMwMTN:`lb12ap7uz`,$$css:!0},dangerInline:{kMwMTN:`lb12ap7uz lbcu7z5f`,$$css:!0},ghostDefault:{kVAM5u:`lb9r1u3d`,kWkggS:`lb1qlulce lbjbqb8w lb5d67gy`,kMwMTN:`lb66ogz0`,$$css:!0},ghostPrimary:{kVAM5u:`lb9r1u3d`,kWkggS:`lb1qlulce lbjbqb8w lb5d67gy`,kMwMTN:`lbjwxqu3 lb16owwnm lbpro1qx`,$$css:!0},ghostDanger:{kVAM5u:`lb9r1u3d`,kWkggS:`lb14kxky9 lbjbqb8w lb3lzv3l`,kMwMTN:`lb12ap7uz`,$$css:!0},spinner:{kVAM5u:`lb181nr7w`,kaIpWk:`lb16rqkct`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbvndefy`,k44tkh:`lbdz8niu`,ko0y90:`lba4qsjk`,kKVMdj:`lb1v0ides`,kyAemX:`lb1esw782`,kLZC3w:`lb1v8p93f`,kB7OPa:`lb9f619`,k1xSpc:`lb1rg5ohu`,kmuXW:`lb2lah0s`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbsmyaan`,$$css:!0}};Object.fromEntries(Object.entries(X).map(([e,t])=>[e,n(t).className??``]));var kr=w({block:`button`,dataAttributes:[`type`,`size`,`shape`,`danger`,`ghost`,`loading`,`block`],elements:[`icon`,`spinner`]});w({block:`split-button`,dataAttributes:[`type`,`size`,`danger`,`loading`],elements:[`main`,`menu`]});var Ar=e=>e==null?null:(0,F.isValidElement)(e)||typeof e==`string`||typeof e==`number`?e:(0,L.jsx)(Or,{icon:e,size:`small`}),jr=e=>e===`small`?X.sizeSmall:e===`large`?X.sizeLarge:X.sizeMiddle,Mr=e=>e===`small`?X.iconOnlySmall:e===`large`?X.iconOnlyLarge:X.iconOnlyMiddle,Nr=({danger:e,ghost:t,type:n})=>{if(t&&n!==`text`&&n!==`link`)return e?X.ghostDanger:n===`primary`?X.ghostPrimary:X.ghostDefault;switch(n){case`primary`:return e?X.dangerSolid:X.variantPrimary;case`dashed`:return e?[X.variantDashed,X.dangerOutlined]:X.variantDashed;case`fill`:return e?X.dangerFill:X.variantFill;case`text`:return e?[X.variantText,X.dangerText]:X.variantText;case`link`:return e?[X.variantLink,X.dangerInline]:X.variantLink;default:return e?[X.variantDefault,X.dangerOutlined]:X.variantDefault}},Pr={scale:.98},Fr={damping:26,mass:.6,stiffness:600,type:`spring`},Ir=({block:e,children:t,className:r,classNames:i,danger:a=!1,disabled:o,outdent:s,ghost:c=!1,href:l,htmlType:u=`button`,icon:d,iconPosition:f=`start`,loading:p,onClick:m,ref:g,shape:_=`default`,size:v=`middle`,stableData:y,styles:b,target:x,type:S=`default`,xstyle:w,...T})=>{let E=fe(),D=(0,F.useRef)(null),ee=(0,F.useRef)(null),[O,k]=(0,F.useState)(!!p);p&&!O&&k(!0),(0,F.useLayoutEffect)(()=>{if(p||!O)return;let e=[...D.current?.getAnimations?.()??[],...ee.current?.getAnimations?.()??[]].filter(e=>`transitionProperty`in e),t=!1;return Promise.allSettled(e.map(e=>e.finished)).then(()=>{t||k(!1)}),()=>{t=!0}},[p,O]);let A=o||p,j=jr(v),M=Nr({danger:a,ghost:c,type:S}),te=_===`circle`?X.shapeCircle:_===`round`?X.shapeRound:void 0,N=(t==null||t===!1||t===``)&&(p||d)?Mr(v):void 0,ne=S===`text`&&s?s===`end`?X.outdentEnd:X.outdentStart:void 0,P=je([X.base,Me.info,j,M,te,e&&X.block,f===`end`&&X.iconEnd,N,ne,w],h(kr(),r)).className,re=y??C({block:e,danger:a,ghost:c,loading:p,shape:_,size:v,type:S}),ie=(0,L.jsx)(`span`,{"aria-hidden":!p,ref:D,...je([X.iconBox,X.spinnerSlot,f===`end`&&X.spinnerSlotEnd,p&&X.spinnerSlotShow],h(kr(`spinner`),i?.icon),b?.icon),children:(0,L.jsx)(`span`,{ref:ee,...n(X.spinnerVisual,p&&X.spinnerVisualShow),children:(p||O)&&(0,L.jsx)(`span`,{...n(X.spinner)})})}),ae=d&&!p?(0,L.jsx)(`span`,{...je(X.iconBox,h(kr(`icon`),i?.icon),b?.icon),children:Ar(d)}):null,oe=(0,L.jsxs)(L.Fragment,{children:[ie,ae,t]}),se=A?{}:{transition:Fr,whileTap:Pr};if(l!==void 0){let e=e=>{A?e.preventDefault():m?.(e)};return(0,L.jsx)(E.a,{"aria-busy":p||void 0,"aria-disabled":A||void 0,href:o?void 0:l,target:x,...re,...T,className:P,ref:g,onClick:e,...se,children:oe})}let ce=e=>{A?e.preventDefault():m?.(e)};return(0,L.jsx)(E.button,{type:u,...re,...T,"aria-busy":p||void 0,"aria-disabled":A||void 0,className:P,disabled:o,ref:g,onClick:ce,...se,children:oe})};Ir.displayName=`BaseButton`;var Lr=Ir,Rr=(e,t)=>{if(typeof e==`function`)return e(t);e&&(e.current=t)},zr=e=>t=>{let n=e.map(e=>{let n=Rr(e,t);return typeof n==`function`?n:()=>Rr(e,null)});return()=>{for(let e of n)e()}},Br=e=>(0,F.useMemo)(()=>zr(e),e),Vr=[],Hr=void 0;function Ur(){return Hr}function Wr(e){Vr.push(e)}function Gr(e){let t=(t,n)=>{let r=R(qr).current,i;try{Hr=r;for(let e of Vr)e.before(r);i=e(t,n);for(let e of Vr)e.after(r);r.didInitialize=!0}finally{Hr=void 0}return i};return t.displayName=e.displayName||e.name,t}function Kr(e){return F.forwardRef(Gr(e))}function qr(){return{didInitialize:!1}}function Jr(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Yr,platform:Xr,maxTouchPoints:Zr}=Jr(),Qr=Yr.toLowerCase(),$r=Xr.toLowerCase(),ei=/^i(os$|p)/.test($r)||$r===`macintel`&&Zr>1,ti=`android`,ni=$r===ti||Qr.includes(ti),ri=!ei&&$r.startsWith(`mac`);$r.startsWith(`win`),!ni&&/^(linux|chrome os)/.test($r);var ii=ri||ei,ai=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`),oi=!ai&&Qr.includes(`firefox`);!ai&&Qr.includes(`chrom`);var si=ii,ci=/jsdom|happydom/.test(Qr);function li(e){e.preventDefault(),e.stopPropagation()}function ui(e){return`nativeEvent`in e}function di(e){return e.pointerType===``&&e.isTrusted?!0:ni&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function fi(e){return ci?!1:!ni&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(ni||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function pi(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function mi(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function hi(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Z(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&jn(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function gi(e,t){let n=e;for(;n;){if(G(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(jn(n)?n.host:null)}return null}function _i(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var vi=`data-base-ui-focusable`,yi=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,bi=`ArrowLeft`,xi=`ArrowRight`,Si=`ArrowUp`,Ci=`ArrowDown`,wi=`data-open`,Ti=`data-closed`,Ei=`data-anchor-hidden`,Di=`data-popup-open`,Oi=`data-pressed`,ki={[Di]:``},Ai={[Di]:``,[Oi]:``},ji={[wi]:``},Mi={[Ti]:``},Ni={[Ei]:``},Pi={open(e){return e?ki:null}},Fi={open(e){return e?Ai:null}},Ii={open(e){return e?ji:Mi},anchorHidden(e){return e?Ni:null}},Li={...Ii,...Dn},Ri=`data-trigger-disabled`;function zi(e,t){if(!G(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(Ri);for(let[,e]of t.entries())if(Z(e,n))return!e.hasAttribute(Ri);return!1}function Bi(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Vi(e){return e.matches(`html,body`)}function Hi(e){return K(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Ui(e){return gi(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${yi}`)!=null}function Wi(e){return e?e.getAttribute(`role`)===`combobox`&&Hi(e):!1}function Gi(e){if(!e||ci)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Ki(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function qi(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var Ji={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Yi={...Ji,position:`fixed`,margin:0,top:0,left:0},Xi={...Ji,position:`absolute`},Zi=F.forwardRef(function(e,t){let[n,r]=F.useState();H(()=>{si&&ai&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,L.jsx)(`span`,{...e,ref:t,style:Yi,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})}),Qi=[`top`,`right`,`bottom`,`left`],$i=Math.min,ea=Math.max,ta=Math.round,na=Math.floor,ra=e=>({x:e,y:e}),ia={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function aa(e,t,n){return ea(e,$i(t,n))}function oa(e,t){return typeof e==`function`?e(t):e}function sa(e){return e.split(`-`)[0]}function ca(e){return e.split(`-`)[1]}function la(e){return e===`x`?`y`:`x`}function ua(e){return e===`y`?`height`:`width`}function da(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function fa(e){return la(da(e))}function pa(e,t,n){n===void 0&&(n=!1);let r=ca(e),i=fa(e),a=ua(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Sa(o)),[o,Sa(o)]}function ma(e){let t=Sa(e);return[ha(e),t,ha(t)]}function ha(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ga=[`left`,`right`],_a=[`right`,`left`],va=[`top`,`bottom`],ya=[`bottom`,`top`];function ba(e,t,n){switch(e){case`top`:case`bottom`:return n?t?_a:ga:t?ga:_a;case`left`:case`right`:return t?va:ya;default:return[]}}function xa(e,t,n,r){let i=ca(e),a=ba(sa(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ha)))),a}function Sa(e){let t=sa(e);return ia[t]+e.slice(t.length)}function Ca(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function wa(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ca(e)}function Ta(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ea(e,t,n){return Math.floor(e/t)!==n}function Da(e,t){return t<0||t>=e.length}function Oa(e,t){return ja(e.current,{disabledIndices:t})}function ka(e,t){return ja(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Aa(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>ja(e,{startingIndex:t,decrement:r,disabledIndices:o}),u,d=!1;if(!i)u=r?Math.max(s,l()):Math.min(c,l());else if(r?t<=s:t>=c){let n=r?-1:e.length;a&&t!==n?u=-1:(u=r?c:s,d=!0)}else u=l();return{index:Da(e,u)?-1:u,wrapped:d}}function ja(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Na(e,a,r));return a}function Ma(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=gi(e,`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1),r=i(t,u,n[o][e]??n[o][0]);o=a[r]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Na(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=na(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Na(e,r,s))return r}};d&&li(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=ja(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=ja(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}Da(e,f)&&(f=u)}if(n===`both`){let n=na(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&li(t),u%o===o-1?r&&(f=ja(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=ja(e,{startingIndex:u,disabledIndices:s}),r&&Ea(f,o,n)&&(f=ja(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),Ea(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&li(t),u%o===0?r&&(f=ja(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=ja(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&Ea(f,o,n)&&(f=ja(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),Ea(f,o,n)&&(f=u));let c=na(l/o)===n;Da(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:ja(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function Na(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!Fa(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function Pa(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Fa(e,t=e?q(e):null){return!e||!e.isConnected||!t||Pa(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Ia=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function La(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return jn(n)?n.host:null}function Ra(e){for(let t of Array.from(e.children))if(U(t)===`summary`)return t;return null}function za(e,t){let n=Ra(t);return!!n&&(e===n||Z(n,e))}function Ba(e){let t=e?U(e):``;return e!=null&&e.matches(Ia)&&(t!==`summary`||e.parentElement!=null&&U(e.parentElement)===`details`&&Ra(e.parentElement)===e)&&(t!==`details`||Ra(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Va(e){if(!Ba(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=La(t)){let n=t!==e,r=U(t)===`slot`;if(t.hasAttribute(`inert`)||n&&U(t)===`details`&&!t.open&&!za(e,t)||t.hasAttribute(`hidden`)||!r&&!Ha(t,n))return!1}return!0}function Ha(e,t){let n=q(e);return t?n.display!==`none`:Fa(e,n)}function Ua(e){let t=e.tabIndex;if(t<0){let t=U(e);if(t===`details`||t===`audio`||t===`video`||K(e)&&e.isContentEditable)return 0}return t}function Wa(e){if(U(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Ga(e,t){let n=Wa(e);if(!n)return!0;let r=t.find(e=>{let t=Wa(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Wa(e);return t?.name===n.name&&t.form===n.form})===n}function Ka(e){if(K(e)&&U(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return K(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function qa(e,t){Ka(e).forEach(e=>{Ba(e)&&t.push(e),qa(e,t)})}function Ja(e,t,n){Ka(e).forEach(e=>{K(e)&&e.matches(t)&&n.push(e),Ja(e,t,n)})}function Ya(e){return Va(e)&&Ua(e)>=0}function Xa(e){let t=[];return qa(e,t),t.filter(Va)}function Za(e){let t=Xa(e);return t.filter(e=>Ua(e)>=0&&Ga(e,t))}function Qa(e,t){let n=Za(e),r=n.length;if(r===0)return;let i=hi(J(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function $a(e){return Qa(J(e).body,1)||e}function eo(e){return Qa(J(e).body,-1)||e}function to(e,t,n){if(!e)return null;let r=[];qa(J(e).body,r);let i=r.indexOf(e);if(i===-1)return null;let a=r.filter(Va);for(let e=1;e<r.length;e+=1){let o=r[(i+t*e+r.length)%r.length];if(!Z(n,o)&&Ya(o)&&Ga(o,a))return o}return r[i]}function no(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Z(n,r)}function ro(e){Za(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function io(e){let t=[];Ja(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function ao(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...ao(e,t.id,n)])}function oo(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function so(e){return`data-base-ui-${e}`}var co=0;function lo(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(co);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),B;let o=requestAnimationFrame(a);return co=o,()=>{co===o&&(cancelAnimationFrame(o),co=0)}}var uo=`data-base-ui-inert`,fo=new WeakMap,po=new WeakSet,mo=new WeakMap,ho=0;function go(e){return e?jn(e)?e.host:go(e.parentNode):null}var _o=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=go(t);return e.contains(n)?n:null}).filter(e=>e!=null),vo=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},yo=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{U(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function bo(e,t,n,{mark:r=!0}){let i=_o(t,e),a=r?yo(t,vo(i),new Set(i)):[],o=[],s=[];if(n){let e=_o(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);yo(t,vo(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(fo.get(e)||0)+1;fo.set(e,r),o.push(e),r===1&&n&&po.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(mo.get(e)||0)+1;mo.set(e,t),s.push(e),t===1&&e.setAttribute(uo,``)}),ho+=1,()=>{o.forEach(e=>{let t=(fo.get(e)||0)-1;fo.set(e,t),t||(po.has(e)||e.removeAttribute(`aria-hidden`),po.delete(e))}),r&&s.forEach(e=>{let t=(mo.get(e)||0)-1;mo.set(e,t),t||e.removeAttribute(uo)}),--ho,ho||(fo=new WeakMap,po=new WeakSet,mo=new WeakMap)}}function xo(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=J(e[0]).body;return bo(e,i,n,{mark:r})}var So={style:{transition:`none`}},Co=`data-base-ui-click-trigger`,wo=`data-base-ui-swipe-ignore`,To=`data-swipe-ignore`,Eo=`[${wo}]`,Do=`[${To}]`,Oo={fallbackAxisSide:`none`},ko={fallbackAxisSide:`end`},Ao={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},jo=F.createContext(null),Mo=()=>F.useContext(jo),No=so(`portal`);function Po(e={}){let{ref:t,container:n,componentProps:r=V,elementProps:i}=e,a=It(),o=Mo()?.portalNode,[s,c]=F.useState(null),[l,u]=F.useState(null),d=z(e=>{e!==null&&u(e)}),f=F.useRef(null);H(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(An(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=Tt(`div`,r,{ref:[t,d],props:[{id:a,[No]:``},i]}),m=s&&p?or.createPortal(p,s):null;return{node:l,nodeId:F.isValidElement(p)?p.props.id:void 0,subtree:m}}var Fo=F.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=Po({container:o,ref:t,componentProps:e,elementProps:c}),f=F.useRef(null),p=F.useRef(null),m=F.useRef(null),h=F.useRef(null),[g,_]=F.useState(null),v=F.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;F.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&no(e)&&(e.type===`focusin`?v.current&&=(io(l),!1):(ro(l),v.current=!0))}return qi(Y(l,`focusin`,e,!0),Y(l,`focusout`,e,!0))},[l,y]),H(()=>{l&&b===!0&&v.current&&(io(l),v.current=!1)},[b,l]);let S=F.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,L.jsxs)(F.Fragment,{children:[d,(0,L.jsxs)(jo.Provider,{value:S,children:[x&&l&&(0,L.jsx)(Zi,{"data-type":`outside`,ref:f,onFocus:e=>{no(e,l)?m.current?.focus():eo(g?g.domReference:null)?.focus()}}),x&&l&&(0,L.jsx)(`span`,{role:s,"aria-owns":u,style:Ao}),l&&or.createPortal(a,l),x&&l&&(0,L.jsx)(Zi,{"data-type":`outside`,ref:p,onFocus:e=>{no(e,l)?h.current?.focus():($a(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,Rt(`focus-out`,e.nativeEvent)))}})]})]})});function Io(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Lo=class{nodesRef={current:[]};events=Io();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},Ro=F.createContext(null),zo=F.createContext(null),Bo=()=>F.useContext(Ro)?.id||null,Vo=e=>{let t=F.useContext(zo);return e??t};function Ho(e){let t=It(),n=Vo(e),r=Bo();return H(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function Uo(e){let{children:t,id:n}=e,r=Bo();return(0,L.jsx)(Ro.Provider,{value:F.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function Wo(e){let{children:t,externalTree:n}=e,r=R(()=>n??new Lo).current;return(0,L.jsx)(zo.Provider,{value:r,children:t})}function Go(e,t){let n=W(_i(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(di(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var Ko=20,qo=[];function Jo(){qo=qo.filter(e=>e.deref()?.isConnected)}function Yo(e){Jo(),e&&U(e)!==`body`&&(qo.push(new WeakRef(e)),qo.length>Ko&&(qo=qo.slice(-20)))}function Xo(){return Jo(),qo[qo.length-1]?.deref()}function Zo(e){return e?Ya(e)?e:Za(e)[0]||e:null}function Qo(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=Xa(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Ya(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function $o(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,explicitReturnFocus:o,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=t.useState(`open`),_=t.useState(`domReferenceElement`),v=t.useState(`floatingElement`),{events:y,dataRef:b}=t.context,x=z(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Wi(_)&&S,w=ir(i),T=ir(a),E=ir(o),D=ir(u),ee=ir(g),O=Vo(m),k=Mo(),A=F.useRef(!1),j=F.useRef(!1),M=F.useRef(!1),te=F.useRef(null),N=F.useRef(``),ne=F.useRef(``),P=F.useRef(null),re=F.useRef(null),ie=Qe(P,p,k?.beforeInsideRef),ae=Qe(re,k?.afterInsideRef),oe=rr(),se=rr(),ce=bn(),le=k!=null,I=Ki(v),ue=z((e=I)=>e?Za(e):[]),de=z(()=>h?.().filter(e=>e!=null)??[]);F.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&Z(I,hi(J(I)))&&ue().length===0&&!C&&li(e)}return Y(J(I),`keydown`,e)},[r,I,c,C,ue]),F.useEffect(()=>{if(r||!g)return;let e=J(I);function t(){M.current=!1}function n(e){let t=_i(e),n=de(),r=Z(v,t)||Z(_,t)||Z(k?.portalNode,t)||n.some(e=>e===t||Z(e,t));M.current=!r,ne.current=e.pointerType||`keyboard`,gi(t,`[data-base-ui-click-trigger]`)&&(j.current=!0,se.start(0,()=>{j.current=!1}))}function i(){ne.current=`keyboard`}return qi(Y(e,`pointerdown`,n,!0),Y(e,`pointerup`,t,!0),Y(e,`pointercancel`,t,!0),Y(e,`keydown`,i,!0),t)},[r,v,_,I,g,k,se,de]),F.useEffect(()=>{if(r||!l)return;let e=J(I);function n(){j.current=!0,se.start(0,()=>{j.current=!1})}function i(e){let t=_i(e);Ya(t)&&(te.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=_i(n);c&&r==null&&a!=null&&Z(v,a)&&Yo(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=de(),p=r?.hasAttribute(so(`focus-guard`))&&[P.current,re.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,sr(f),sr(d)].includes(r),m=!(Z(_,r)||Z(v,r)||Z(r,v)||Z(k?.portalNode,r)||u.some(e=>e===r||Z(e,r))||l.hasMatchingElement(e=>Z(e,r))||p||O&&(ao(O.nodesRef.current,o).find(e=>Z(e.context?.elements.floating,r)||Z(e.context?.elements.domReference,r))||oo(O.nodesRef.current,o).find(e=>[e.context?.elements.floating,Ki(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&I&&Qo(I),s&&i!==_&&!Fa(a)&&hi(e)===e.body){if(K(I)&&(I.focus(),s===`popup`)){ce.request(()=>{I.focus()});return}let e=ue(),t=te.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||I;K(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(C||!c)&&r&&m&&!j.current&&(C||r!==Xo())&&(A.current=!0,t.setOpen(!1,Rt(tn,n)))})}function o(){M.current||(b.current.insideReactTree=!0,oe.start(0,()=>{b.current.insideReactTree=!1}))}let u=K(_)?_:null;if(v||u)return qi(u&&Y(u,`focusout`,a),u&&Y(u,`pointerdown`,n),v&&Y(v,`focusin`,i),v&&Y(v,`focusout`,a),v&&k&&Y(v,`focusout`,o,!0))},[r,_,v,I,c,O,k,t,l,s,ue,C,x,b,oe,se,ce,d,f,de]),F.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(k?.portalNode?.querySelectorAll(`[${so(`portal`)}]`)||[]),t=(O?oo(O.nodesRef.current,x()):[]).find(e=>Wi(e.context?.elements.domReference||null))?.context?.elements.domReference,n=xo([v,...e,P.current,re.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,...de(),t,sr(f),sr(d),C?_:null].filter(e=>e!=null),{ariaHidden:c||C,mark:!1}),i=xo([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,k,C,O,x,d,f,de]),H(()=>{if(!g||r||!K(I))return;N.current=``,ne.current=``;let e=J(I),t=hi(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||Z(I,t))return;let i=null,a=()=>(i??=ue(I),i[0]||I),o;o=r===!0||r===null?a():sr(r),o||=a();let s=Z(I,hi(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&di(c);lo(o,{sync:l,preventScroll:o===I,shouldFocus(){if(!ee.current)return!1;if(s)return!0;let t=hi(e);return!(t!==o&&Z(I,t))}})})},[r,g,I,ue,w,D,ee,b]);let fe=F.useRef(null);H(()=>{if(r||!I){fe.current=null;return}fe.current&&=(fe.current.cancelled=!0,null);let e=J(I),t=hi(e),n=D.current==null;Yo(t);function i(e){if(e.open||(N.current=Go(e.nativeEvent,ne.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(so(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(A.current=!0),e.reason===`outside-press`){if(e.nested)A.current=!1;else if(di(e.nativeEvent)||fi(e.nativeEvent))A.current=!1;else{let e=!1;J(I).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?A.current=!1:A.current=!0}}}y.on(`openchange`,i);function a(e){let r=T.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=_?.isConnected?_:null,o=t?.isConnected&&U(t)!==`body`?t:null,s=n?o||a:a||o;return s||=Xo()||null,typeof i==`boolean`?s:sr(i)||s||null}return()=>{y.off(`openchange`,i);let t=hi(e),n=de(),r=Z(v,t)||n.some(e=>e===t||Z(e,t))||O&&ao(O.nodesRef.current,x(),!1).some(e=>Z(e.context?.elements.floating,t)),o=T.current,s=N.current,c=a(s),l={cancelled:!1};fe.current=l,queueMicrotask(()=>{fe.current===l&&(fe.current=null);let n=Zo(c),i=E.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!A.current&&K(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}A.current=!1})}},[r,v,I,T,E,D,y,O,_,x,de]),H(()=>{if(!ai||g||!v)return;let e=hi(J(v));K(e)&&Hi(e)&&Z(v,e)&&e.blur()},[g,v]),H(()=>{if(!r&&k)return k.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{k.setFocusManagerState(null)}},[r,k,c,g,t,l,_]),H(()=>{if(!r&&I)return Qo(I),()=>{queueMicrotask(Jo)}},[r,I]);let pe=!r&&(!c||!C)&&(le||c);return(0,L.jsxs)(F.Fragment,{children:[pe&&(0,L.jsx)(Zi,{"data-type":`inside`,ref:ie,onFocus:e=>{if(c){let e=ue();lo(e[e.length-1])}else k?.portalNode&&(A.current=!1,no(e,k.portalNode)?$a(_)?.focus():sr(f??k.beforeOutsideRef)?.focus())}}),n,pe&&(0,L.jsx)(Zi,{"data-type":`inside`,ref:ae,onFocus:e=>{c?lo(ue()[0]):k?.portalNode&&(l&&(A.current=!0),no(e,k.portalNode)?eo(_)?.focus():sr(d??k.afterOutsideRef)?.focus())}})]})}function es(){return!1}function ts(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function ns(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=es,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=Vo(c),m=z(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=z(()=>a),{escapeKey:v,outsidePress:y}=ts(s),b=F.useRef(!1),x=F.useRef(!1),S=F.useRef(!1),C=F.useRef(!1),w=F.useRef(!1),T=F.useRef(``),E=F.useRef(null),D=rr(),ee=rr(),O=rr(),k=z(()=>{ee.clear(),d.current.insideReactTree=!1}),A=z(e=>{let t=d.current.floatingContext?.nodeId;return(p?ao(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),j=z(t=>Bi(t,e.select(`floatingElement`))||Bi(t,e.select(`domReferenceElement`))),M=z(t=>{o()&&e.setOpen(!1,Rt(Vt,t.nativeEvent))}),te=z(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=ui(t)?t.nativeEvent:t;if(w.current||i.isComposing||!v&&A(`__escapeKeyBubbles`))return;let a=Rt(nn,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!v&&!a.isPropagationAllowed&&t.stopPropagation()}),N=z(()=>{d.current.insideReactTree=!0,ee.start(0,k)}),ne=z(t=>{if(!l||!n||t.button!==0)return;let r=_i(t.nativeEvent);Z(e.select(`floatingElement`),r)&&(b.current||(b.current=!0,x.current=!1))}),P=z(e=>{l&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});F.useEffect(()=>{function e(e){e.open||(C.current=!1)}return f.on(`openchange`,e),()=>{f.off(`openchange`,e)}},[f]),F.useEffect(()=>k,[k]),F.useEffect(()=>{if(!l||!n)return l||(C.current=!1,w.current=!1,T.current=``,E.current=null),k;d.current.__escapeKeyBubbles=v,d.current.__outsidePressBubbles=y;let t=new nr,i=J(u);function a(){O.clear(),w.current=!0}function o(){w.current=!0,O.start(ai?5:0,()=>{w.current=!1})}function s(){S.current=!0,t.start(0,()=>{S.current=!1})}function c(){b.current=!1,x.current=!1}function f(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function ee(e){let t=d.current.floatingContext?.nodeId,n=p&&ao(p.nodesRef.current,t).some(t=>Bi(e,t.context?.elements.floating));return j(e)||n}function M(n){if(m(n)){n.type!==`click`&&!j(n)&&(t.clear(),S.current=!1),k();return}if(d.current.insideReactTree){k();return}let r=_i(n),i=`[${so(`inert`)}]`,a=G(r)?r.getRootNode():null,o=Array.from((jn(a)?a:J(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>Z(e,r))))return;let c=G(r)?r:null;for(;c&&!Hn(c);){let e=Wn(c);if(Hn(e)||!G(e))break;c=e}if(!(o.length&&G(r)&&!Vi(r)&&!Z(r,e.select(`floatingElement`))&&o.every(e=>!Z(c,e)))){if(K(r)&&!(`touches`in n)){let e=Hn(r),t=q(r),i=/auto|scroll/,a=e||i.test(t.overflowX),o=e||i.test(t.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=t.direction===`rtl`,u=c&&(l?n.offsetX<=r.offsetWidth-r.clientWidth:n.offsetX>r.clientWidth),d=s&&n.offsetY>r.clientHeight;if(u||d)return}if(!ee(n)){if(f()===`intentional`){if(n.detail!==0&&!di(n)&&!C.current)return;if(S.current){t.clear(),S.current=!1;return}}typeof h==`function`&&!h(n)||A(`__outsidePressBubbles`)||(e.setOpen(!1,Rt(Wt,n)),k())}}}function N(t){f()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!j(t)&&M(t)}function ne(t){if(f()!==`sloppy`||!e.select(`open`)||!n||j(t))return;let r=t.touches[0];r&&(E.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function P(e,t){let n=_i(e);if(!n)return;let r=Y(n,e.type,()=>{t(e),r()})}function re(e){T.current=`touch`,P(e,ne)}function ie(e){D.clear(),e.type===`pointerdown`&&(e.button===0&&(C.current=!0),T.current=e.pointerType),(e.type!==`mousedown`||!E.current||E.current.dismissOnMouseDown)&&P(e,e=>{e.type===`pointerdown`?N(e):M(e)})}function ae(e){if(e.type===`pointercancel`&&(C.current=!1),!b.current)return;let n=x.current;c(),f()===`intentional`&&(e.type===`pointercancel`?n&&s():ee(e)||(n?s():(typeof h!=`function`||h(e))&&(t.clear(),S.current=!0,k())))}function oe(e){if(f()!==`sloppy`||!E.current||j(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(M(e),D.clear(),E.current=null)}function F(e){P(e,oe)}function se(e){f()===`sloppy`&&E.current&&!j(e)&&(E.current.dismissOnTouchEnd&&M(e),D.clear(),E.current=null)}function ce(e){P(e,se)}let le=qi(r&&qi(Y(i,`keydown`,te),Y(i,`compositionstart`,a),Y(i,`compositionend`,o)),g&&qi(Y(i,`click`,ie,!0),Y(i,`pointerdown`,ie,!0),Y(i,`pointerup`,ae,!0),Y(i,`pointercancel`,ae,!0),Y(i,`mousedown`,ie,!0),Y(i,`mouseup`,ae,!0),Y(i,`touchstart`,re,{capture:!0,passive:!0}),Y(i,`touchmove`,F,{capture:!0,passive:!0}),Y(i,`touchend`,ce,{capture:!0,passive:!0})));return()=>{le(),t.clear(),c(),S.current=!1}},[d,u,r,g,h,l,n,v,y,te,k,_,A,j,p,e,D,O]);let re=F.useMemo(()=>({onKeyDown:te,onPointerDown:M,onClick:M}),[te,M]),ie=F.useMemo(()=>({onKeyDown:te,onPointerDown:P,onMouseDown:P,onClickCapture:N,onMouseDownCapture(e){N(),ne(e)},onPointerDownCapture(e){N(),ne(e)},onMouseUpCapture:N,onTouchEndCapture:N,onTouchMoveCapture:N}),[te,N,ne,P]);return F.useMemo(()=>n?{reference:re,floating:ie,trigger:re}:{},[n,re,ie])}function rs(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=o;return t.useSyncedValue(`floatingId`,i),H(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};G(c)&&(e.domReferenceElement=c),r.state.positionReference===r.state.referenceElement&&(e.positionReference=c),r.update(e)},[s,i,c,l,r]),r.context.onOpenChange=u,r.context.nested=a,r}function is(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=z(i),{mounted:c,setMounted:l,transitionStatus:u}=xn(t,!1,!1,o),d=!t&&r;H(()=>{t&&s(!1)},[t,s]);let f=F.useRef(c),p=F.useRef(!1),m=Mt(),h=()=>{f.current=!1,l(!1),a()};H(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=z(()=>{f.current&&(t?(p.current=!0,m()):h())});return fr({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var as={tabIndex:-1,[vi]:``};function os(e){return t=>t!==`touch`||e.current}function ss(e,t=!1){let n=It(),r=Bo()!=null,i=R(()=>e(n,r)).current;return rs({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function cs({handle:e,store:t}){return H(()=>e.attachStore(t),[e,t]),null}function ls(e){let t=e.context.triggerElements.size;e.select(`open`)&&e.state.triggerCount!==t&&e.set(`triggerCount`,t)}function us(e,t){let n=F.useRef(null);return z(r=>{let i=n.current;if(i!==null){if(i.element===r&&i.store===t&&i.id===e)return;n.current=null;let a=i.store;a.context.triggerElements.getById(i.id)===i.element&&(a.context.triggerElements.delete(i.id),ls(a))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),ls(t))})}function ds(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s,openedWithoutTrigger:t?n==null:e.openedWithoutTrigger}}function fs(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function ps(e,t,n,r={}){let i=n.reason,a=i===Ht,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=fs(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i=ds(e.state,t,n.trigger,c()),l={...r.extraState,...i};o?l.instantType=`focus`:s?l.instantType=`dismiss`:a&&(l.instantType=void 0),e.update(l)};a?or.flushSync(l):l()}function ms(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=us(e,n),o=z(t=>{let i=n.select(`open`),a=n.select(`activeTriggerId`);if(a===e){let e={activeTriggerElement:t,...i?r:null};n.update(e)}else if(a==null&&i&&!n.state.openedWithoutTrigger){let i={activeTriggerId:e??null,activeTriggerElement:t,...r};n.update(i)}}),s=z(e=>{a(e),e&&o(e)});return H(()=>(s(t.current),()=>s(null)),[s,t,n,e]),H(()=>{if(i){let e={activeTriggerElement:t.current,...r};n.update(e)}},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function hs(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=F.useRef(null),i=e.useState(`open`);H(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0),e.state.openedWithoutTrigger&&e.set(`openedWithoutTrigger`,!1);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&!e.state.openedWithoutTrigger&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=Rt(Bt);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,e.useState(`triggerCount`),e.useState(`activeTriggerId`),e.useState(`activeTriggerElement`),n])}function gs(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=is({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState(`preventUnmountingOnClose`),setPreventUnmountOnClose:e=>t.set(`preventUnmountingOnClose`,e),animateInitialOpen:r,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}});return R(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function _s(e,t){e.useSyncedValues(t),H(()=>()=>{e.update({activeTriggerProps:V,inactiveTriggerProps:V,popupProps:V})},[e])}function vs(e,t){H(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),H(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var ys=class{idMap=new Map;add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}},bs=t((e=>{var t=o(),n=i();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:r,s=n.useSyncExternalStore,c=t.useRef,l=t.useEffect,u=t.useMemo,d=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=c(null);if(o.current===null){var f={hasValue:!1,value:null};o.current=f}else f=o.current;o=u(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=s(e,o[0],o[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),d(p),p}})),xs=t(((e,t)=>{t.exports=bs()})),Ss=i(),Cs=e(xs(),1),ws=at(19)?Ds:Os;function Ts(e,t,n,r,i){return ws(e,t,n,r,i)}function Es(e,t,n,r,i){let a=F.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Ss.useSyncExternalStore)(e.subscribe,a,a)}Wr({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Ss.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Ds(e,t,n,r,i){let a=Ur();if(!a)return Es(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],s.store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,i)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function Os(e,t,n,r,i){return(0,Cs.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var ks=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Ts(this,e,t,n,r)}},As=class extends ks{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){F.useDebugValue(e);let n=this;H(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;H(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;H(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){F.useDebugValue(e);let n=this,r=t!==void 0;H(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return F.useDebugValue(e),Ts(this,this.selectors[e],t,n,r)}useContextCallback(e,t){F.useDebugValue(e);let n=z(t??B);this.context[e]=n}useStateSetter(e){let t=F.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},js={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},Ms=class extends As{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Io(),nested:n,triggerElements:i},js),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&mi(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Ns(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Ms({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:V,inactiveTriggerProps:V,popupProps:V}}var Ps=e=>e.triggerIdProp??e.activeTriggerId,Fs=e=>e.openProp??e.open,Is=e=>(e.popupElement?.id??e.floatingId)||void 0;function Ls(e,t){return t!==void 0&&Fs(e)&&Ps(e)===t}function Rs(e,t){return Ls(e,t)?!0:t!==void 0&&Fs(e)&&Ps(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var zs={open:Fs,mounted:e=>e.mounted,transitionStatus:e=>Fs(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Ps,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Is,isTriggerActive:(e,t)=>t!==void 0&&Ps(e)===t,isOpenedByTrigger:(e,t)=>Ls(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Ps(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>Rs(e,t)?Is(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function Bs(e,t,n){let{reference:r,floating:i}=e,a=da(t),o=fa(t),s=ua(o),c=sa(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=ca(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Vs(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=oa(t,e),p=wa(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ta(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ta(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Hs=50,Us=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Vs},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Bs(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Hs&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Bs(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Ws=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=oa(e,t)||{};if(l==null)return{};let d=wa(u),f={x:n,y:r},p=fa(i),m=ua(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=$i(d[_],T),D=$i(d[v],T),ee=C-h[m]-D,O=C/2-h[m]/2+w,k=aa(E,O,ee),A=!c.arrow&&ca(i)!=null&&O!==k&&a.reference[m]/2-(O<E?E:D)-h[m]/2<0,j=A?O<E?O-E:O-ee:0;return{[p]:f[p]+j,data:{[p]:k,centerOffset:O-k-j,...A&&{alignmentOffset:j}},reset:A}}}),Gs=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=oa(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=sa(r),_=da(o),v=sa(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Sa(o)]:ma(o)),x=p!==`none`;!d&&x&&b.push(...xa(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=pa(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===da(t)||T.every(e=>da(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=da(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Ks(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qs(e){return Qi.some(t=>e[t]>=0)}var Js=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=oa(e,t);switch(i){case`referenceHidden`:{let e=Ks(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:qs(e)}}}case`escaped`:{let e=Ks(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:qs(e)}}}default:return{}}}}},Ys=new Set([`left`,`top`]);async function Xs(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=sa(n),s=ca(n),c=da(n)===`y`,l=Ys.has(o)?-1:1,u=a&&c?-1:1,d=oa(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Zs=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Xs(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Qs=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=oa(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=da(i),p=la(f),m=u[p],h=u[f],g=(e,t)=>aa(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},$s=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=oa(e,t),u={x:n,y:r},d=da(i),f=la(d),p=u[f],m=u[d],h=oa(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Ys.has(sa(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ec=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=oa(e,t),c=await i.detectOverflow(t,s),l=sa(n),u=ca(n),d=da(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=$i(p-c[m],g),y=$i(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*ea(c.left,c.right):S=p-2*ea(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function tc(e){let t=q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=K(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ta(n)!==a||ta(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function nc(e){return G(e)?e:e.contextElement}function rc(e){let t=nc(e);if(!K(t))return ra(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=tc(t),o=(a?ta(n.width):n.width)/r,s=(a?ta(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var ic=ra(0);function ac(e){let t=W(e);return!Vn()||!t.visualViewport?ic:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oc(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===W(e)}function sc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=nc(e),o=ra(1);t&&(r?G(r)&&(o=rc(r)):o=rc(e));let s=oc(a,n,r)?ac(a):ra(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=W(a),t=G(r)?W(r):r,n=e,i=qn(n);for(;i&&t!==n;){let e=rc(i),t=i.getBoundingClientRect(),r=q(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=W(i),i=qn(n)}}return Ta({width:u,height:d,x:c,y:l})}function cc(e,t){let n=Un(e).scrollLeft;return t?t.left+n:sc(kn(e)).left+n}function lc(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-cc(e,n),y:n.top+t.scrollTop}}function uc(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=kn(r),s=t?Pn(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ra(1),u=ra(0),d=K(r);if((d||!a)&&((U(r)!==`body`||Mn(o))&&(c=Un(r)),d)){let e=sc(r);l=rc(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?lc(o,c):ra(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function dc(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function fc(e){let t=Un(e),n=e.ownerDocument.body,r=ea(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=ea(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+cc(e),o=-t.scrollTop;return q(n).direction===`rtl`&&(a+=ea(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var pc=25;function mc(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=W(e),a=kn(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Vn()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(cc(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=pc&&(s-=o)}return{width:s,height:c,x:l,y:u}}function hc(e,t){let n=sc(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=rc(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function gc(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=mc(e,n,t);else if(t===`document`)r=fc(kn(e));else if(G(t))r=hc(t,n);else{let n=ac(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ta(r)}function _c(e,t){let n=t.get(e);if(n)return n;let r=Kn(e,[],!1).filter(e=>G(e)&&U(e)!==`body`),i=null,a=q(e).position===`fixed`,o=a?Wn(e):e;for(;G(o)&&!Hn(o);){let e=q(o),t=zn(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Wn(o)}return t.set(e,r),r}function vc(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Pn(t)?[]:_c(t,this._c):[].concat(n),r],o=gc(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=gc(t,a[e],i);s=ea(n.top,s),c=$i(n.right,c),l=$i(n.bottom,l),u=ea(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function yc(e){let{width:t,height:n}=tc(e);return{width:t,height:n}}function bc(e,t,n){let r=K(t),i=kn(t),a=n===`fixed`,o=sc(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ra(0);if((r||!a)&&((U(t)!==`body`||Mn(i))&&(s=Un(t)),r)){let e=sc(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=cc(i));let l=i&&!r&&!a?lc(i,s):ra(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function xc(e){return q(e).position===`static`}function Sc(e,t){if(!K(e)||q(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return kn(e)===n&&(n=n.ownerDocument.body),n}function Cc(e,t){let n=W(e);if(Pn(e))return n;if(!K(e)){let t=Wn(e);for(;t&&!Hn(t);){if(G(t)&&!xc(t))return t;t=Wn(t)}return n}let r=Sc(e,t);for(;r&&Nn(r)&&xc(r);)r=Sc(r,t);return r&&Hn(r)&&xc(r)&&!zn(r)?n:r||Bn(e)||n}var wc=async function(e){let t=this.getOffsetParent||Cc,n=this.getDimensions,r=await n(e.floating);return{reference:bc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Tc(e){return q(e).direction===`rtl`}var Ec={convertOffsetParentRelativeRectToViewportRelativeRect:uc,getDocumentElement:kn,getClippingRect:vc,getOffsetParent:Cc,getElementRects:wc,getClientRects:dc,getDimensions:yc,getScale:rc,isElement:G,isRTL:Tc};function Dc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Oc(e,t,n){let r=null,i,a=kn(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=na(d),h=na(a.clientWidth-(u+f)),g=na(a.clientHeight-(d+p)),_=na(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:ea(0,$i(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Dc(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=W(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function kc(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=nc(e),u=i||a?[...l?Kn(l):[],...t?Kn(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Oc(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?sc(e):null;c&&g();function g(){let t=sc(e);h&&!Dc(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Ac=Zs,jc=Qs,Mc=Gs,Nc=ec,Pc=Js,Fc=Ws,Ic=$s,Lc=(e,t,n)=>{let r=new Map,i=n??{},a={...Ec,...i.platform,_c:r};return Us(e,t,{...i,platform:a})},Rc=typeof document<`u`?F.useLayoutEffect:function(){};function zc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!zc(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!zc(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Bc(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vc(e,t){let n=Bc(e);return Math.round(t*n)/n}function Hc(e){let t=F.useRef(e);return Rc(()=>{t.current=e}),t}function Uc(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=F.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=F.useState(r);zc(f,r)||p(r);let[m,h]=F.useState(null),[g,_]=F.useState(null),v=F.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=F.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=F.useRef(null),C=F.useRef(null),w=F.useRef(u),T=c!=null,E=Hc(c),D=Hc(i),ee=Hc(l),O=F.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Lc(S.current,C.current,e).then(e=>{let t={...e,isPositioned:ee.current!==!1};k.current&&!zc(w.current,t)&&(w.current=t,or.flushSync(()=>{d(t)}))})},[f,t,n,D,ee]);Rc(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let k=F.useRef(!1);Rc(()=>(k.current=!0,()=>{k.current=!1}),[]),Rc(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,O);O()}},[b,x,O,E,T]);let A=F.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),j=F.useMemo(()=>({reference:b,floating:x}),[b,x]),M=F.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=Vc(j.floating,u.x),r=Vc(j.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Bc(j.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,j.floating,u.x,u.y]);return F.useMemo(()=>({...u,update:O,refs:A,elements:j,floatingStyles:M}),[u,O,A,j,M])}var Wc=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Fc({element:r.current,padding:i}).fn(n):r?Fc({element:r,padding:i}).fn(n):{}}}},Gc=(e,t)=>{let n=Ac(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kc=(e,t)=>{let n=jc(e);return{name:n.name,fn:n.fn,options:[e,t]}},qc=(e,t)=>({fn:Ic(e).fn,options:[e,t]}),Jc=(e,t)=>{let n=Mc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yc=(e,t)=>{let n=Nc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xc=(e,t)=>{let n=Pc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Zc=(e,t)=>{let n=Wc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Qc=F.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=Po({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,L.jsxs)(F.Fragment,{children:[l,c&&or.createPortal(n,c)]})}),$c=F.createContext(void 0);function el(){return F.useContext($c)?.direction??`ltr`}function tl(e){return at(19)?e:e?`true`:void 0}var nl=()=>{let[e,t]=(0,F.useState)(typeof document<`u`);return(0,F.useEffect)(()=>{e||t(!0)},[]),e},rl=`data-valid`,il=`data-invalid`,al={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},ol={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},sl={disabled:!1,...ol},cl={valid(e){return e===null?null:e?{[rl]:``}:{[il]:``}}},ll={invalid:void 0,name:void 0,validityData:{state:al,errors:[],error:``,value:``,initialValue:null},setValidityData:B,disabled:void 0,setTouched:B,setDirty:B,setFilled:B,setFocused:B,focusOwnerRef:{current:void 0},validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:sl,registerFieldControl:B,validation:{getValidationProps:(e,t=V)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:B,getInputControl:()=>null,commit:async()=>{},change:B}},ul=F.createContext(ll);function dl(e=!0){let t=F.useContext(ul);if(t.setValidityData===B&&!e)throw Error(Ze(28));return t}function fl(e,t,n){let{setFocused:r,focusOwnerRef:i}=dl(),a=z(t=>{(t?!e:i.current===a)&&(i.current=t&&a,n?.(t),r(t))});return H(()=>{let e=t.current;return e?.getRootNode()?.activeElement===e&&a(!0),()=>a(!1)},[e,t,a]),a}function pl(e,t,n,r,i=!0,a){let{registerFieldControl:o}=dl(),s=R(()=>Symbol());H(()=>{let c=s.current;i?o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}):o(c,void 0)},[e,i,r,t,a,o,s,n]),H(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var ml=F.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:B,validationMode:`onSubmit`,submitCountRef:{current:0}});function hl(){return F.useContext(ml)}var gl=F.createContext({controlId:void 0,registerControlId:B,resetControlId:B,labelId:void 0,setLabelId:B,messageIds:[],setMessageIds:B,getDescriptionProps:e=>e});function _l(){return F.useContext(gl)}function vl(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=_l(),o=Lt(),s=R(()=>Symbol()),c=F.useRef(!1),l=F.useRef(!1),u=z(()=>{c.current&&i!==B&&(c.current=!1,i(s.current,void 0))});return H(()=>{if(!n||i===B){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}e===void 0?u():(c.current=!0,i(s.current,e))},[t,n,i,a,o,s,u]),H(()=>u,[u]),(n?r:void 0)??t??o}function yl(e,t){let n=F.useRef(e),r=z(t);H(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}var bl=e=>typeof e==`object`&&!!e,xl=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Sl=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Cl=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function wl(e,t,n,r){return e===t&&n===r?p:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Cl(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Cl(s+1e-7,e,n)-i-r)}return Cl(s,t,r)}}var Tl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,El=e=>t=>1-e(1-t),Dl=wl(.33,1.53,.69,.99),Ol=El(Dl),kl=Tl(Ol),Al=e=>e>=1?1:(e*=2)<1?.5*Ol(e):.5*(2-2**(-10*(e-1))),jl=e=>1-Math.sin(Math.acos(e)),Ml=El(jl),Nl=Tl(jl),Pl=wl(.42,0,1,1),Fl=wl(0,0,.58,1),Il=wl(.42,0,.58,1),Ll=e=>Array.isArray(e)&&typeof e[0]!=`number`,Rl={linear:p,easeIn:Pl,easeInOut:Il,easeOut:Fl,circIn:jl,circInOut:Nl,circOut:Ml,backIn:Ol,backInOut:kl,backOut:Dl,anticipate:Al},zl=e=>typeof e==`string`,Bl=e=>{if(y(e)){S(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return wl(t,n,r,i)}return zl(e)?(S(Rl[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),Rl[e]):e};function Vl(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Hl({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Vl(s,r,e+1/3),a=Vl(s,r,e),o=Vl(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Ul(e,t){return n=>n>0?t:e}var Wl=(e,t,n)=>e+(t-e)*n,Gl=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Kl=[u,l,ae],ql=e=>Kl.find(t=>t.test(e));function Jl(e){let t=ql(e);if(!t)return f(!1,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!1;let n=t.parse(e);return t===ae&&(n=Hl(n)),n}var Yl=(e,t)=>{let n=Jl(e),r=Jl(t);if(!n||!r)return Ul(e,t);let i={...n};return e=>(i.red=Gl(n.red,r.red,e),i.green=Gl(n.green,r.green,e),i.blue=Gl(n.blue,r.blue,e),i.alpha=Wl(n.alpha,r.alpha,e),l.transform(i))},Xl=new Set([`none`,`hidden`]);function Zl(e,t){return Xl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ql(e,t){return n=>Wl(e,t,n)}function $l(e){return typeof e==`number`?Ql:typeof e==`string`?v(e)?Ul:ie.test(e)?Yl:ru:Array.isArray(e)?eu:typeof e==`object`?ie.test(e)?Yl:tu:Ul}function eu(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>$l(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function tu(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=$l(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function nu(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var ru=(e,t)=>{let n=ee.createTransformer(t),r=O(e),i=O(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Xl.has(e)&&!i.values.length||Xl.has(t)&&!r.values.length?Zl(e,t):xl(eu(nu(r,i),i.values),n):(f(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,`complex-values-different`),Ul(e,t))},iu=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function au(e,t){let n=iu.exec(e);if(!n)return;let r=iu.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>d(Wl(a,o,e))+i}function ou(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return Wl(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=au(e,t);if(n)return n}return $l(e)(e,t)}var su=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>D.update(t,e),stop:()=>E(t),now:()=>_.isProcessing?_.timestamp:m.now()}},cu=2e4;function lu(e,t=50,n=cu,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function uu(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(lu(o),cu);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:c(s)}}var Q={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},du=e=>e<0?1/Math.max(1+e,Q.minDamping):Math.max(1-e,Q.minDamping);function fu(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return hu(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function pu(e,t){return e*Math.sqrt(1-t*t)}var mu=12;function hu(e,t,n){let r=n;for(let n=1;n<mu;n++)r-=e(r)/t(r);return r}var gu=.001;function _u({duration:e=Q.duration,bounce:t=Q.bounce}){let n,r;f(e<=x(Q.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let i=du(t);e=g(Q.minDuration,Q.maxDuration,c(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=pu(t,i),o=Math.exp(-r);return gu-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=pu(t*t,i);return(-n(t)+gu>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=hu(n,r,a),s=o*fu(i,o*e),l=s*s;return{stiffness:l,damping:i*2*Math.sqrt(l),duration:x(e)}}var vu=(e,t)=>(t?e>=0:e>0)&&e<1/0;function yu(e,t){if(vu(e,t))return e}function bu(e){let t=yu(e.stiffness),n=yu(e.damping,!0),r=yu(e.mass),i={...e,stiffness:t??Q.stiffness,damping:n??Q.damping,mass:r??Q.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=du(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*fu(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,_u(i)),i.isResolvedFromDuration=!0;vu(i.stiffness)&&vu(i.damping,!0)||(i.stiffness=Q.stiffness,i.damping=Q.damping)}return i}function xu(e=Q.visualDuration,t=Q.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:l,duration:u,isResolvedFromDuration:d,isTimeDefined:f}=bu({...n}),p=e=>f?0:-c(e),m=s/(2*Math.sqrt(o*l)),h=c(Math.sqrt(o/l)),g=m*h,_={target:i,delta:i-r,velocity:p(n.velocity||0)||0,restSpeed:0,restDelta:0},v=()=>{let e=Math.abs(_.delta)<5;_.restSpeed=n.restSpeed||(e?Q.restSpeed.granular:Q.restSpeed.default),_.restDelta=n.restDelta||(e?Q.restDelta.granular:Q.restDelta.default)};v();let y,b,S;if(m<1){let e=pu(h,m),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};S=()=>{t.A=(_.velocity+g*_.delta)/e,t.sinC=g*t.A+_.delta*e,t.cosC=g*_.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-g*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};y=e=>(n(e),_.target-t.env*(t.A*t.sin+_.delta*t.cos)),b=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(m===1){y=e=>_.target-Math.exp(-h*e)*(_.delta+(_.velocity+h*_.delta)*e);let e={C:0};S=()=>{e.C=_.velocity+h*_.delta},b=t=>Math.exp(-h*t)*(h*e.C*t-_.velocity)}else{let e=h*Math.sqrt(m*m-1),t=g-e,n=g+e,r=f?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-g*(t-r):-e*t),a={S:0,F:0};S=()=>{let t=(_.velocity+g*_.delta)/e;a.S=(_.delta+t)/2,a.F=(_.delta-t)/2},y=e=>_.target-a.S*i(t,e)-a.F*i(n,e),b=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}S();let C=d&&u||null,w={calculatedDuration:C,retarget:(e,t)=>{_.target=e[e.length-1],_.delta=_.target-e[0],_.velocity=p(t),n.restSpeed&&n.restDelta||v(),w.calculatedDuration=C,a.done=!1,S()},velocity:e=>x(b(e)),next:e=>{let t=y(e);if(d)a.done=e>=u;else{let n=x(b(e));a.done=Math.abs(n)<=_.restSpeed&&Math.abs(_.target-t)<=_.restDelta}return a.value=a.done?_.target:t,a},toString:()=>{let e=Math.min(lu(w),cu),t=re(t=>w.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return w}xu.applyToOptions=e=>{let t=uu(e,100,xu);return e.ease=t.ease,e.duration=x(t.duration),e.type=`keyframes`,e};function Su({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=xu({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function Cu(e,t,n){let r=[],i=n||b.mix||ou,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=xl(Array.isArray(t)?t[n]||p:t,a)),r.push(a)}return r}function wu(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(S(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Cu(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Sl(e[r],e[r+1],n);return s[r](i)};return n?t=>l(g(e[0],e[a-1],t)):l}function Tu(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Sl(0,t,r);e.push(Wl(n,1,i))}}function Eu(e){let t=[0];return Tu(t,e.length-1),t}function Du(e,t){return e.map(e=>e*t)}function Ou(e,t){return e.map(()=>t||Il).splice(0,e.length-1)}function ku({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Ll(r)?r.map(Bl):Bl(r)||Il,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(b.mix||ou)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?g(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=wu(Du(n&&n.length===t.length?n:Eu(t),e),t,{ease:Array.isArray(i)?i:Ou(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Au=5;function ju(e,t,n){let r=Math.max(t-Au,0);return oe(n-e(r),t-r)}function Mu(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):ju(t=>e.next(t).value,t,e.next(t).value)}var Nu={decay:Su,inertia:Su,tween:ku,keyframes:ku,spring:xu};function Pu(e){typeof e.type==`string`&&(e.type=Nu[e.type])}var Fu=40,Iu=(e,t)=>t-e>Fu&&!b.useManualTiming?t:e,Lu=e=>e/100,Ru=e=>Math.round(e*1e4)/1e4,zu=class extends M{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==m.now()&&this.tick(m.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),ne(this,this.options)}initAnimation(){let{options:e}=this;Pu(e);let{type:t=ku,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||ku;s!==ku&&typeof o[0]!=`number`&&(this.mixKeyframes=xl(Lu,ou(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=lu(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=Iu(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;!d&&i!==null&&(p=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==Su&&(f.value=A(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??Ru((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==Su?A(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=g(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}then(e,t){return this.finished.then(e,t)}get duration(){return c(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+c(e)}get time(){return c(this.currentTime)}set time(e){e=x(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return Mu(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(m.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=c(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=su,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(m.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Bu(e){return new zu(e)}function Vu(e){return bl(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var Hu={floating:1100,modal:1200,toast:1e5,step:10},Uu=0,Wu=0;function Gu(e){return e===`toast`?(Wu=Math.max(Wu,Hu.toast)+Hu.step,Wu):(Uu=Math.max(Uu,Hu[e])+Hu.step,Uu)}function Ku(e,t){let[n,r]=(0,F.useState)(void 0),i=(0,F.useRef)({tier:e,explicit:t,node:null,observer:null,prevOpen:!1}),a=(0,F.useRef)(t);if(i.current.tier=e,i.current.explicit=t,a.current!==void 0&&t===void 0&&i.current.node){let t=i.current.node;if(t.hasAttribute(`data-open`)&&(r(Gu(e)),i.current.prevOpen=!0),!i.current.observer){let e=new MutationObserver(()=>{let e=t.hasAttribute(`data-open`);e&&!i.current.prevOpen&&r(Gu(i.current.tier)),i.current.prevOpen=e});e.observe(t,{attributes:!0,attributeFilter:[`data-open`,`data-closed`]}),i.current.observer=e}}a.current=t;let o=(0,F.useCallback)(e=>{if(e===i.current.node||(i.current.observer?.disconnect(),i.current.observer=null,i.current.node=e,i.current.prevOpen=!1,!e)||i.current.explicit!==void 0)return;let t=()=>{let t=e.hasAttribute(`data-open`);t&&!i.current.prevOpen&&r(Gu(i.current.tier)),i.current.prevOpen=t};t();let n=new MutationObserver(t);n.observe(e,{attributes:!0,attributeFilter:[`data-open`,`data-closed`]}),i.current.observer=n},[]);return(0,F.useEffect)(()=>()=>{i.current.observer?.disconnect()},[]),{zIndex:i.current.explicit??n,ref:o}}var qu=F.createContext(void 0);function Ju(e){let t=F.useContext(qu);if(t===void 0&&!e)throw Error(Ze(69));return t}var Yu=`ArrowUp`,Xu=`ArrowDown`,Zu=`ArrowLeft`,Qu=`ArrowRight`,$u=`Home`,ed=`PageUp`,td=`PageDown`,nd=new Set([Yu,Xu,Zu,Qu,$u,`End`]),rd=[`Shift`,`Control`,`Alt`,`Meta`];function id(e){return K(e)&&e.tagName===`INPUT`}function ad(e){return!!(id(e)&&e.selectionStart!=null||K(e)&&e.tagName===`TEXTAREA`)}function od(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=sd(e,t,`left`),a=cd(e),o=cd(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=sd(e,t,`top`),r=cd(e),i=cd(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function sd(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function cd(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var ld=F.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,L.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),ud={},dd={},fd=``;function pd(e,t){return Mn(e)?e:t}function md(e,t,n){return/hidden|clip/.test(e.getComputedStyle(pd(t,n)).overflowY)}function hd(e){if(typeof document>`u`)return!1;let t=J(e);return W(t).innerWidth-t.documentElement.clientWidth>0}function gd(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=J(e),n=t.documentElement,r=t.body,i=pd(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function _d(e){let t=J(e),n=t.documentElement,r=t.body,i=pd(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function vd(e){let t=J(e),n=t.documentElement,r=t.body,i=W(n),a=0,o=0,s=!1,c=yn.create();if(ai&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,ud={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},fd=n.style.scrollBehavior,dd={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=pd(n,r);s=gd(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,ud),Object.assign(r.style,dd),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=fd)}function d(){u(),c.request(l)}l();let f=Y(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var yd=new class{lockCount=0;restore=null;timeoutLock=nr.create();timeoutUnlock=nr.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=J(e),n=t.documentElement,r=t.body,i=W(n);if(md(i,n,r)){let t=new i.MutationObserver(()=>{md(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=ei||!hd(e);this.restore=a?_d(e):vd(e)}};function bd(e=!0,t=null){H(()=>{if(e)return yd.acquire(t)},[e,t])}var xd=e=>{let{t,locale:n}=Ae();return{locale:n,t:(0,F.useMemo)(()=>e?n=>{let r=t(n),i=e[n];return r===n&&i?i:r}:t,[t,e])}},Sd={"common.clear":`Clear`,"common.cancel":`Cancel`,"common.confirm":`Confirm`,"common.delete":`Delete`,"common.edit":`Edit`,"common.empty":`(empty)`},Cd=F.createContext(void 0);function wd(e){let t=F.useContext(Cd);if(!e&&t===void 0)throw Error(Ze(27));return t}var Td=F.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=wd(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return Tt(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Li,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Ed=F.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=wd(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=Qn({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Rt(Kt,e.nativeEvent))}return Tt(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Dd=F.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=wd(),c=Lt(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),Tt(`p`,e,{ref:t,props:[{id:c},o]})}),Od=F.createContext(void 0);function kd(){let e=F.useContext(Od);if(e===void 0)throw Error(Ze(26));return e}var Ad=`--nested-dialogs`,jd=`data-nested-dialog-open`,Md={...Ii,...Dn,nestedDialogOpen(e){return e?{[jd]:``}:null}},Nd=F.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=wd(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`);kd(),fr({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?os(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=Tt(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...as,hidden:!m,onKeyDown(e){nd.has(e.key)&&e.stopPropagation()},style:{[Ad]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:Md});return(0,L.jsx)($o,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})}),Pd=F.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=wd(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,L.jsx)(Od.Provider,{value:n,children:(0,L.jsxs)(Fo,{ref:t,...r,children:[a&&o===!0&&(0,L.jsx)(ld,{ref:i.context.internalBackdropRef,inert:tl(!s)}),e.children]})}):null});function Fd({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=F.useState(0),[d,f]=F.useState(0),p=l===0,m=ns(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=_i(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||Z(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return bd(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),H(()=>{!r&&!i&&(u(0),f(0))},[r,i]),H(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),_s(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var Id={...zs,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},Ld=class extends As{constructor(e,t,n){let r=new ys,i=Rd(e,r,t,n);super(i,zd(r),Id)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),!t.isCanceled&&(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(ds(this.state,e,t.trigger)))}};function Rd(e,t,n,r=!1){return{...Ns(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function zd(e){return{popupRef:F.createRef(),backdropRef:F.createRef(),internalBackdropRef:F.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Bd(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=wd(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=ss((e,t)=>new Ld({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y},e,t),!0);b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);vs(b,x),hs(b);let{forceUnmount:w}=gs(x,b);F.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,Rt(mn))}),[w,b]);let T=x||S||u!=null;return(0,L.jsxs)(Cd.Provider,{value:b,children:[u&&(0,L.jsx)(cs,{handle:u,store:b}),T&&(0,L.jsx)(Fd,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var Vd=Gr(function(e){return Bd(`dialog`,e)}),Hd=F.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=wd(),c=Lt(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Tt(`h2`,e,{ref:t,props:[{id:c},o]})});function Ud(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Wd(...e){return t=>{let n=!1,r=e.map(e=>{let r=Ud(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Ud(e[t],null)}}}}function Gd(...e){return F.useCallback(Wd(...e),e)}var Kd=class extends F.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Vu(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Vu(e)&&e.offsetWidth||0,r=Vu(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function qd({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,F.useId)(),s=(0,F.useRef)(null),c=(0,F.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,F.useContext)(P),u=Gd(s,a===!1?void 0:e.props?.ref??e?.ref);return(0,F.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`,y=s.current;y.dataset.motionPopId=o;let b=y.ownerDocument,x=b.createElement(`style`);l&&(x.nonce=l);let S=i??b.head;return S.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
29
|
+
`,I=new WeakMap,ue=(e=document)=>{let t=I.get(e);if(t){t.users+=1;let e=!1;return()=>{e||(e=!0,--t.users===0&&t.dispose())}}let n=e.defaultView;if(!n||!e.body||!n.CSS?.supports(`top`,`anchor(top)`)||!n.CSS.supports(`position-visibility`,`anchors-visible`)||!(`showPopover`in e.createElement(`div`)))return()=>{};let r=e.createElement(`style`);r.textContent=le;let i=e.createElement(`div`);i.setAttribute(`data-lobe-global-focus-ring`,``),i.setAttribute(`aria-hidden`,`true`),i.setAttribute(`popover`,`manual`),e.head.append(r),e.body.append(i);let a,o,s=0,c=!1,l=()=>{i.matches(`:popover-open`)&&i.hidePopover(),o?.(),o=void 0,a=void 0},u=()=>{if(c)return;let t=e.activeElement;if(t===a&&t?.matches(`:focus-visible`)&&t.isConnected&&i.matches(`:popover-open`)||(l(),!t||t===e.body||t.namespaceURI!==`http://www.w3.org/1999/xhtml`||t.shadowRoot||t.closest(`[data-lobe-focus-ring="off"]`)||t.matches(`textarea`)||t.isContentEditable||t.matches(`input`)&&![`button`,`submit`,`reset`,`image`,`checkbox`,`radio`,`range`,`color`,`file`].includes(t.type)||!t.matches(`:focus-visible`)))return;let r=t,s=r.parentElement;for(;s&&n.getComputedStyle(s).contain===`none`;)s=s.parentElement;let u=s||e.body,f=i.parentElement!==u;f&&u.append(i);let p=n.getComputedStyle(r),m=p.borderRadius,h=p.getPropertyValue(`--lobe-focus-ring-color`).trim()||p.getPropertyValue(`--lobe-color-info`).trim()||`#1677ff`,g=i.style.borderRadius!==m||i.style.getPropertyValue(`--lobe-focus-ring-color`)!==h;if(g&&(i.style.borderRadius=m,i.style.setProperty(`--lobe-focus-ring-color`,h)),f||g){d();return}let _=[`anchor-name`,`outline`].map(e=>({priority:r.style.getPropertyPriority(e),property:e,value:r.style.getPropertyValue(e)})),v=r.getAttribute(`data-lobe-focus-ring`),y=p.getPropertyValue(`anchor-name`).trim(),b=y&&y!==`none`?`${y}, --lobe-global-focus`:`--lobe-global-focus`;r.style.setProperty(`anchor-name`,b,`important`),o=()=>{for(let{property:e,value:t,priority:n}of _){let i=e===`anchor-name`?b:`none`;r.style.getPropertyValue(e)===i&&(t?r.style.setProperty(e,t,n):r.style.removeProperty(e))}r.getAttribute(`data-lobe-focus-ring`)===`managed`&&(v===null?r.removeAttribute(`data-lobe-focus-ring`):r.setAttribute(`data-lobe-focus-ring`,v))};let x=r.getBoundingClientRect();if(r.getClientRects().length!==1||!x.width||!x.height||p.visibility!==`visible`)l();else try{i.showPopover();let e=i.getBoundingClientRect();if(Math.max(...[`top`,`right`,`bottom`,`left`].map(t=>Math.abs(e[t]-x[t])))>1){l();return}r.style.setProperty(`outline`,`none`,`important`),r.setAttribute(`data-lobe-focus-ring`,`managed`),a=r}catch{l()}},d=()=>{s||=n.requestAnimationFrame(()=>{s=0,u()})},f=()=>n.queueMicrotask(u),p=()=>{n.cancelAnimationFrame(s),s=0,i.matches(`:popover-open`)&&i.hidePopover()},m=new MutationObserver(()=>{a&&!a.isConnected&&l()});return m.observe(e.body,{childList:!0,subtree:!0}),e.addEventListener(`focusin`,f,!0),e.addEventListener(`focusout`,d,!0),e.addEventListener(`keydown`,d,!0),e.addEventListener(`pointerdown`,d,!0),n.addEventListener(`blur`,p),n.addEventListener(`focus`,d),I.set(e,{dispose:()=>{c=!0,n.cancelAnimationFrame(s),m.disconnect(),e.removeEventListener(`focusin`,f,!0),e.removeEventListener(`focusout`,d,!0),e.removeEventListener(`keydown`,d,!0),e.removeEventListener(`pointerdown`,d,!0),n.removeEventListener(`blur`,p),n.removeEventListener(`focus`,d),l(),i.remove(),r.remove(),I.delete(e)},users:0}),u(),ue(e)},L=s(),de=(0,F.createContext)(null);(0,F.memo)(({children:e,motion:t})=>(0,L.jsx)(de,{value:t,children:e}));var fe=()=>{let e=(0,F.use)(de);if(!e)throw Error(`Please wrap your app with <ConfigProvider> (or <MotionProvider>) and pass the motion component`);return e},pe=`https://unpkg.com`,me=`https://registry.npmmirror.com`,he=(e,...t)=>{let n=[e.replace(/\/+$/,``),...t.map(e=>e.replaceAll(/^\/+|\/+$/g,``))].filter(Boolean).join(`/`);return t.at(-1)?.endsWith(`/`)?`${n}/`:n},ge=({pkg:e,version:t=`latest`,path:n,proxy:r})=>{switch(r){case`unpkg`:return he(pe,`${e}@${t}`,n);default:return he(me,e,t,`files`,n)}},_e=(0,F.createContext)(null),ve=()=>(0,F.use)(_e),ye=[{path:`css/index-full.css`,pkg:`@lobehub/webfont-geist`,version:`1.0.0`},{path:`css/index-full.css`,pkg:`@lobehub/webfont-geist-mono`,version:`1.0.0`},{path:`css/index-full.css`,pkg:`@lobehub/webfont-harmony-sans`,version:`1.0.0`},{path:`css/index.css`,pkg:`@lobehub/webfont-harmony-sans-sc`,version:`1.0.0`},{path:`dist/katex.min.css`,pkg:`katex`,version:`0.19.0`}],be=`lobe-ui-theme-app`,xe=(0,F.createContext)(null),Se=(0,F.createContext)(`ltr`),Ce=(0,F.createContext)({locale:`en`,t:e=>e}),we=e=>typeof e?.then==`function`,Te=(0,F.memo)(({children:e,config:t,customFonts:n,direction:r=`ltr`,enableCustomFonts:i=!0,locale:a,resources:o,motion:s})=>{let[c,l]=(0,F.useState)(null);(0,F.useEffect)(()=>{if(t?.globalFocusRing!==!1)return ue()},[t?.globalFocusRing]);let u=a??`en`,[d,f]=(0,F.useState)(()=>o&&!we(o)?o:void 0),[p,m]=(0,F.useState)(u),h=(0,F.useRef)(0);(0,F.useEffect)(()=>{let e=++h.current;if(!o)f(void 0),m(u);else if(we(o)){let t=u;o.then(n=>{h.current===e&&(f(n),m(t))}).catch(()=>{h.current})}else f(o),m(u)},[u,o]);let g=we(o)?d:o,_=we(o)?p:u,v=(0,F.useMemo)(()=>{let e=Array.isArray(g)?g:g?Object.values(g):[],t=Object.assign({},...e);return{locale:_,t:e=>t[e]||e}},[_,g]);return(0,L.jsx)(Ce,{value:v,children:(0,L.jsx)(xe,{value:t??null,children:(0,L.jsx)(Se,{value:r,children:(0,L.jsx)(de,{value:s,children:(0,L.jsxs)(_e,{value:c,children:[i&&(0,L.jsx)(De,{customFonts:n}),e,(0,L.jsx)(`div`,{"data-lobe-portal-host":``,id:be,ref:l,style:Ee})]})})})})})}),Ee={height:0,left:0,position:`fixed`,right:0,top:0,zIndex:1100},De=({customFonts:e})=>{let t=ke();return(0,F.useMemo)(()=>e||ye.map(e=>t(e)),[e,t]).map(e=>(0,L.jsx)(ce,{url:e},e))},Oe=({pkg:e,version:t,path:n})=>ge({path:n,pkg:e,proxy:`aliyun`,version:t}),ke=()=>{let e=(0,F.use)(xe);return e?e?.proxy===`custom`?e?.customCdnFn||Oe:({pkg:t,version:n,path:r})=>ge({path:r,pkg:t,proxy:e.proxy,version:n}):Oe},Ae=()=>(0,F.use)(Ce),je=(e,t,r)=>{let i=n(e);return{className:h(i.className,t),style:i.style||r?{...i.style,...r}:void 0}},Me={info:{"--lobe-focus-ring-color":`lb155ckj2`,k44tkh:`lbe1ka5p lb11mn51e lb147fc9v`,kKVMdj:`lb1c1sa8k lbck0e01 lbp55ekp`,kyAemX:`lbgqpy2 lb171d7gl lb1bbl1vv`,kjBf7l:`lb1rxiahi lb1y5du2d`,kInvED:`lb1bf9hc9`,k3XXqK:`lb2xeow7`,kMeerF:`lbjls3y1`,$$css:!0}};function Ne({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=F.useRef(e!==void 0),[a,o]=F.useState(()=>t);return[i&&e!==void 0?e:a,F.useCallback(e=>{i||o(e)},[])]}var Pe={...F},Fe={};function R(e,t){let n=F.useRef(Fe);return n.current===Fe&&(n.current=e(t)),n}var Ie=Pe.useInsertionEffect,Le=Ie&&Ie!==Pe.useLayoutEffect?Ie:e=>e();function z(e){let t=R(Re).current;return t.next=e,Le(t.effect),t.trampoline}function Re(){let e={next:void 0,callback:ze,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function ze(){}function B(){}var Be=Object.freeze([]),V=Object.freeze({}),H=typeof document<`u`?F.useLayoutEffect:()=>{},Ve=F.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function He(){return F.useContext(Ve)}function Ue(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=z(i),[,o]=F.useState(0),s=R(Ge).current,c=R(We).current,l=F.useRef(0),u=F.useRef(!0),d=F.useRef(null),f=F.useRef(null),p=z(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=z((e,t)=>{c.set(e,t),p()}),h=z(e=>{c.delete(e),p()}),g=z(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!Je(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&Ye(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=qe(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=z(()=>{let[e,t]=Ke(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});H(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),H(()=>{u.current&&v()}),H(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=z(e=>(s.add(e),()=>{s.delete(e)})),b=F.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,L.jsx)(Ve.Provider,{value:b,children:t})}function We(){return new Map}function Ge(){return new Set}function Ke(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>Ye(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function qe(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function Je(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function Ye(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function Xe(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Ze=Xe(`https://base-ui.com/production-error`,`Base UI`);function Qe(e,t,n,r){let i=R(et).current;return tt(i,e,t,n,r)&&rt(i,[e,t,n,r]),i.callback}function $e(e){let t=R(et).current;return nt(t,e)&&rt(t,e),t.callback}function et(){return{callback:null,cleanup:null,refs:[]}}function tt(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function nt(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function rt(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var it=19;function at(e){return it>=e}function ot(e){if(!F.isValidElement(e))return null;let t=e,n=t.props;return(at(19)?n?.ref:t.ref)??null}function st(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function ct(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function lt(e,t){return typeof e==`function`?e(t):e}function ut(e,t){return typeof e==`function`?e(t):e}var dt={};function ft(e,t,n,r,i){if(!n&&!r&&!i&&!e)return mt(t);let a=mt(e);return t&&(a=ht(a,t)),n&&(a=ht(a,n)),r&&(a=ht(a,r)),i&&(a=ht(a,i)),a}function pt(e){if(e.length===0)return dt;if(e.length===1)return mt(e[0]);let t=mt(e[0]);for(let n=1;n<e.length;n+=1)t=ht(t,e[n]);return t}function mt(e){return yt(e)?{...e(dt)}:gt(e)}function ht(e,t){return yt(t)?t(e):_t(e,t)}function gt(e){let t={...e};for(let e in t){let n=t[e];vt(e,n)&&(t[e]=xt(n))}return t}function _t(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=st(e.style,r);break;case`className`:e[n]=Ct(e.className,r);break;default:e[n]=vt(n,r)?bt(e[n],r):r}}return e}function vt(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function yt(e){return typeof e==`function`}function bt(e,t){return t?e?(...n)=>{let r=n[0];if(wt(r)){let i=r;St(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:xt(t):e}function xt(e){return e&&((...t)=>{let n=t[0];return wt(n)&&St(n),e(...t)})}function St(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Ct(e,t){return t?e?t+` `+e:t:e}function wt(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Tt(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=kt(r));let i=Et(t,n,r);if(n.enabled===!1)return null;let a=n.state??V;return At(e,r,i,a)}function Et(e,t,n){let{className:r,style:i}=e,{state:a=V,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?lt(r,a):void 0,d=l?ut(i,a):void 0,f=l?ct(a,c):V,p=l&&s?Dt(s):void 0,m=l?st(f,p)??{}:V;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?$e([m.ref,ot(n),...o]):Qe(m.ref,ot(n),o):Qe(null,null)),l?(u!==void 0&&(m.className=Ct(m.className,u)),d!==void 0&&(m.style=st(m.style,d)),m):V}function Dt(e){return Array.isArray(e)?pt(e):ft(void 0,e)}var Ot=Symbol.for(`react.lazy`);function kt(e){if(e?.$$typeof!==Ot)return e;let t=F.Children.toArray(e)[0];return F.isValidElement(t)?t:e}function At(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=ft(n,t.props);return e.ref=n.ref,F.cloneElement(t,e)}return jt(e,n)}function jt(e,t){return e===`button`?(0,F.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,F.createElement)(`img`,{alt:``,...t,key:t.key}):F.createElement(e,t)}function Mt(){let[,e]=F.useState({});return F.useCallback(()=>{e({})},[])}var Nt=0;function Pt(e,t=`mui`){let n=F.useRef(void 0),r=Mt(),i=e??n.current;return F.useEffect(()=>{n.current??(Nt+=1,n.current=`${t}-${Nt}`,e??r())},[e,t,r]),i}var Ft=Pe.useId;function It(e,t){if(Ft!==void 0){let n=Ft();return e??(t?`${t}-${n}`:n)}return Pt(e,t)}function Lt(e){return It(e,`base-ui`)}function Rt(e,t,n,r){let i=!1,a=!1,o=r??V;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function zt(e,t,n){let r=n??V;return{reason:e,event:t??new Event(`base-ui`),...r}}var Bt=`none`,Vt=`trigger-press`,Ht=`trigger-hover`,Ut=`trigger-focus`,Wt=`outside-press`,Gt=`item-press`,Kt=`close-press`,qt=`track-press`,Jt=`increment-press`,Yt=`decrement-press`,Xt=`input-change`,Zt=`input-clear`,Qt=`input-blur`,$t=`input-paste`,en=`input-press`,tn=`focus-out`,nn=`escape-key`,rn=`list-navigation`,an=`keyboard`,on=`pointer`,sn=`drag`,cn=`wheel`,ln=`cancel-open`,un=`sibling-open`,dn=`disabled`,fn=`missing`,pn=`initial`,mn=`imperative-action`,hn=`window-resize`;function gn(e){F.useEffect(e,Be)}var _n=null;globalThis.requestAnimationFrame;var vn=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},yn=class e{static create(){return new e}static request(e){return vn.request(e)}static cancel(e){return vn.cancel(e)}currentId=_n;request(e){this.cancel(),this.currentId=vn.request(()=>{this.currentId=_n,e()})}cancel=()=>{this.currentId!==_n&&(vn.cancel(this.currentId),this.currentId=_n)};disposeEffect=()=>this.cancel};function bn(){let e=R(yn.create).current;return gn(e.disposeEffect),e}function xn(e,t=!1,n=!1,r=!1){let[i,a]=F.useState(e&&t?`idle`:void 0),[o,s]=F.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),H(()=>{if(!e&&o&&i!==`ending`&&n){let e=yn.request(()=>{a(`ending`)});return()=>{yn.cancel(e)}}},[e,o,i,n]),H(()=>{if(!e||t||i===void 0)return;let n=yn.request(()=>{a(void 0)});return()=>{yn.cancel(n)}},[t,e,i]),H(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=yn.request(()=>{a(`idle`)});return()=>{yn.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function Sn(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=He(),u=F.useRef(-1),[d,f]=F.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=F.useRef(null),h=F.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return H(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var Cn=`data-starting-style`,wn=`data-ending-style`,Tn={[Cn]:``},En={[wn]:``},Dn={transitionStatus(e){return e===`starting`?Tn:e===`ending`?En:null}};function On(){return typeof window<`u`}function U(e){return An(e)?(e.nodeName||``).toLowerCase():`#document`}function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){return((An(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function An(e){return On()?e instanceof Node||e instanceof W(e).Node:!1}function G(e){return On()?e instanceof Element||e instanceof W(e).Element:!1}function K(e){return On()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}function jn(e){return!On()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}function Mn(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Nn(e){return/^(table|td|th)$/.test(U(e))}function Pn(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Fn=/transform|translate|scale|rotate|perspective|filter/,In=/paint|layout|strict|content/,Ln=e=>!!e&&e!==`none`,Rn;function zn(e){let t=G(e)?q(e):e;return Ln(t.transform)||Ln(t.translate)||Ln(t.scale)||Ln(t.rotate)||Ln(t.perspective)||!Vn()&&(Ln(t.backdropFilter)||Ln(t.filter))||Fn.test(t.willChange||``)||In.test(t.contain||``)}function Bn(e){let t=Wn(e);for(;K(t)&&!Hn(t);){if(zn(t))return t;if(Pn(t))return null;t=Wn(t)}return null}function Vn(){return Rn??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Rn}function Hn(e){return/^(html|body|#document)$/.test(U(e))}function q(e){return W(e).getComputedStyle(e)}function Un(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wn(e){if(U(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||jn(e)&&e.host||kn(e);return jn(t)?t.host:t}function Gn(e){let t=Wn(e);return Hn(t)?(e.ownerDocument||e).body:K(t)&&Mn(t)?t:Gn(t)}function Kn(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Gn(e),i=r===e.ownerDocument?.body,a=W(r);if(i){let e=qn(a);return t.concat(a,a.visualViewport||[],Mn(r)?r:[],e&&n?Kn(e):[])}return t.concat(r,Kn(r,[],n))}function qn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Jn=F.createContext(void 0);function Yn(e=!1){let t=F.useContext(Jn);if(t===void 0&&!e)throw Error(Ze(16));return t}function Xn(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:F.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function J(e){return e?.ownerDocument||document}function Zn(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(W(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Qn(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=F.useRef(null),s=Yn(!0),c=a??s!==void 0,{props:l}=Xn({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=F.useCallback(()=>{let e=o.current;$n(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return H(u,[u]),{getButtonProps:F.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return ft({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(St(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=$n(r),s=!i&&er(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),Zn(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),Zn(r,e)))},onKeyUp(e){t||(St(e),a?.(e),e.target===e.currentTarget&&i&&c&&$n(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),Zn(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:z(e=>{o.current=e,u()})}}function $n(e){return K(e)&&e.tagName===`BUTTON`}function er(e){return K(e)&&e.tagName===`A`&&!!e.href}function Y(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}var tr=0,nr=class e{static create(){return new e}currentId=tr;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=tr,t()},e)}isStarted(){return this.currentId!==tr}clear=()=>{this.currentId!==tr&&(clearTimeout(this.currentId),this.currentId=tr)};disposeEffect=()=>this.clear};function rr(){let e=R(nr.create).current;return gn(e.disposeEffect),e}function ir(e){let t=R(ar,e).current;return t.next=e,H(t.effect),t}function ar(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var or=e(a(),1);function sr(e){return e==null?e:`current`in e?e.current:e}function cr(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var lr=null;function ur(e){if(!lr){let e=[];lr=e,queueMicrotask(()=>{lr=null,or.flushSync(()=>{for(let t of e)t()})})}lr.push(e)}function dr(e,t=!1,n=!1){let r=bn();return z((i,a=null)=>{r.cancel();let o=sr(e);if(o==null)return;let s=o,c=()=>{n?ur(()=>{a?.aborted||i()}):or.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(cr(s).map(e=>e.finished.then(B))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(cr(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=Cn;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function fr(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=z(a),s=dr(r,n,i);F.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}var pr={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};pr.node;var mr=te(pr),hr={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};hr.node;var gr=te(hr),_r={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};_r.node;var vr=te(_r),yr=(0,F.createContext)({}),br=(0,F.memo)(({children:e,config:t={}})=>(0,L.jsx)(yr,{value:t,children:e})),xr=()=>(0,F.use)(yr);function Sr(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}function Cr(e){return typeof e==`object`&&!!e}function wr(e){return typeof e==`number`||Cr(e)&&Sr(e)===`[object Number]`}var Tr=e=>{if(wr(e))return{size:e};let t,n;switch(e){case`large`:t=24,n=2;break;case`middle`:t=20,n=2;break;case`small`:t=14,n=2;break;default:e?(t=e?.size||24,n=e?.strokeWidth||2):(t=`1em`,n=2)}return{size:t,strokeWidth:n}},Er=w({block:`icon`,dataAttributes:[`spin`],elements:[]}),Dr={root:{kGNEyG:`lb6s0dn4`,k1xSpc:`lb3nfvp2`,kLWn49:`lb14ju556`,kXLuUW:`lb1x7wgjd`,$$css:!0},spin:{k44tkh:`lb1q3qbx4`,ko0y90:`lba4qsjk`,kKVMdj:`lb1fhqo85`,kyAemX:`lb1esw782`,$$css:!0}},Or=(0,F.memo)(({icon:e,size:t,color:n,fill:r=`transparent`,className:i,focusable:a,spin:o,fillRule:s,fillOpacity:c,ref:l,...u})=>{let{color:d,fill:f,fillOpacity:p,fillRule:m,focusable:g,className:_,size:v,...y}=xr(),{size:b,strokeWidth:x}=(0,F.useMemo)(()=>Tr(t||v),[t,v]),S=e;return(0,L.jsx)(`span`,{role:`img`,...C({spin:o}),className:je([Dr.root,o&&Dr.spin],h(Er(),`anticon`,_,i)).className,...y,...u,children:e&&((0,F.isValidElement)(e)?e:(0,L.jsx)(S,{color:n||d,fill:r||f,fillOpacity:c||p,fillRule:s||m,focusable:a||g,height:b,ref:l,size:b,strokeWidth:x,width:b}))})});Or.displayName=`Icon`;var X={base:{kVAM5u:`lbqnr5ac`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,kOIVth:`lb17d4w8g`,kybGjl:`lb1hl2dhg`,kmkexE:`lb15xd0no`,kGNEyG:`lb6s0dn4`,kB7OPa:`lb9f619`,kkrTdU:`lb1ypdohk lb126qsmr`,k1xSpc:`lb3nfvp2`,k63SB2:`lbk50ysn`,kjj79g:`lbl56j7k`,kLWn49:`lbo5v014`,kSiTet:`lby3kg0r`,kfzvcC:`lb1cp6yjb`,kVAEAm:`lb1n2onr6`,khDVqt:`lbuxw1ft`,$$css:!0},sizeSmall:{"--button-padding-inline":`lb1xvjv2a`,kaIpWk:`lb1vihcfj`,kg3NbH:`lb1v42klx`,kGuDYH:`lbfifm61`,kZKoxP:`lbxk0z11`,$$css:!0},sizeMiddle:{"--button-padding-inline":`lb1l3x1nm`,kaIpWk:`lb1vihcfj`,kg3NbH:`lb1v42klx`,kGuDYH:`lb4z9k3i`,kZKoxP:`lb10w6t97`,$$css:!0},sizeLarge:{"--button-padding-inline":`lb1r8q1i9`,kaIpWk:`lb1sbi92r`,kg3NbH:`lb1v42klx`,kGuDYH:`lbif65rj`,kZKoxP:`lb1vqgdyp`,$$css:!0},outdentStart:{keTefX:`lbugkenv`,$$css:!0},outdentEnd:{k71WvV:`lb8o6c4q`,$$css:!0},shapeCircle:{kaIpWk:`lb16rqkct`,kg3NbH:`lbnjsko4`,$$css:!0},shapeRound:{kaIpWk:`lb1e6avla`,$$css:!0},block:{kzqmXN:`lbh8yej3`,$$css:!0},iconEnd:{kXwgrk:`lb15zctf7`,$$css:!0},iconOnlySmall:{"--button-padding-inline":`lb1wdnxgk`,kg3NbH:`lbnjsko4`,kzqmXN:`lbvy4d1p`,$$css:!0},iconOnlyMiddle:{"--button-padding-inline":`lb1wdnxgk`,kg3NbH:`lbnjsko4`,kzqmXN:`lb1td3qas`,$$css:!0},iconOnlyLarge:{"--button-padding-inline":`lb1wdnxgk`,kg3NbH:`lbnjsko4`,kzqmXN:`lb100vrsf`,$$css:!0},iconBox:{kGNEyG:`lb6s0dn4`,k1xSpc:`lb3nfvp2`,kjj79g:`lbl56j7k`,$$css:!0},spinnerSlot:{kVQacm:`lb1rea2x4`,kmkexE:`lbp7890b`,kmuXW:`lb2lah0s`,k71WvV:`lb1ws5yxj`,kVAEAm:`lb1n2onr6`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbnalus7`,$$css:!0},spinnerSlotEnd:{k71WvV:`lb14z9mp`,keTefX:`lbw01apr`,$$css:!0},spinnerSlotShow:{k71WvV:`lb14z9mp`,keTefX:`lb1lziwak`,kzqmXN:`lbsmyaan`,$$css:!0},spinnerVisual:{kmkexE:`lb1ja9v0h`,k87sOh:`lb13vifvy`,kLqNvP:`lb1o0tod`,kSiTet:`lbg01cxk`,kVAEAm:`lb10l6tqk`,k3aq6I:`lb1a33avv`,k3nNDw:`lb1g0ag68`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbsmyaan`,$$css:!0},spinnerVisualShow:{kSiTet:`lb1hc1fzr`,k3aq6I:`lb3oybdh`,$$css:!0},variantDefault:{kVAM5u:`lbqnr5ac lbv4eugq`,kWkggS:`lb6yijhg`,kKwaWg:`lb1hdlj1n lbx7ggy6`,kMwMTN:`lb66ogz0`,$$css:!0},variantPrimary:{kVAM5u:`lb13w8tc6 lb1jy2tmp lbiuvf2s lbba5owj`,kWkggS:`lb65u3hq lb1hsafae lb1n16ko lbep1hoi`,kMwMTN:`lb15g0kca`,$$css:!0},variantDashed:{kVAM5u:`lbqnr5ac lbv4eugq`,ksu8eU:`lbbsl7fq`,kWkggS:`lb6yijhg`,kKwaWg:`lb1hdlj1n lbx7ggy6`,kMwMTN:`lb66ogz0`,$$css:!0},variantFill:{kVAM5u:`lb9r1u3d`,kWkggS:`lb1qlulce lbaljia1 lb5d67gy`,kMwMTN:`lb66ogz0`,$$css:!0},variantText:{kVAM5u:`lb9r1u3d`,kWkggS:`lbjbqb8w lb1f5ares`,kMwMTN:`lb66ogz0`,$$css:!0},variantLink:{kVAM5u:`lb9r1u3d`,kg3NbH:`lbnjsko4`,kWkggS:`lbjbqb8w`,kMwMTN:`lb16owwnm lbvdzly1`,$$css:!0},dangerOutlined:{kVAM5u:`lb1mpi7gh lbs8cwth`,kWkggS:`lb1saschm lb6yijhg lbzxaxr6`,kKwaWg:null,kMwMTN:`lb12ap7uz`,$$css:!0},dangerSolid:{kVAM5u:`lb1dvy257 lb11fhi00 lb2949mz lb1e5ynfq`,kWkggS:`lb15l4kc2 lbixdnzb lb1mog8ep lb1gj3nph`,kMwMTN:`lb15g0kca`,$$css:!0},dangerFill:{kVAM5u:`lb9r1u3d`,kWkggS:`lbrq8w1b lb1f2tfg0 lb1lf6bdk`,kMwMTN:`lb12ap7uz`,$$css:!0},dangerText:{kWkggS:`lb14kxky9 lbjbqb8w lb3lzv3l`,kMwMTN:`lb12ap7uz`,$$css:!0},dangerInline:{kMwMTN:`lb12ap7uz lbcu7z5f`,$$css:!0},ghostDefault:{kVAM5u:`lb9r1u3d`,kWkggS:`lb1qlulce lbjbqb8w lb5d67gy`,kMwMTN:`lb66ogz0`,$$css:!0},ghostPrimary:{kVAM5u:`lb9r1u3d`,kWkggS:`lb1qlulce lbjbqb8w lb5d67gy`,kMwMTN:`lbjwxqu3 lb16owwnm lbpro1qx`,$$css:!0},ghostDanger:{kVAM5u:`lb9r1u3d`,kWkggS:`lb14kxky9 lbjbqb8w lb3lzv3l`,kMwMTN:`lb12ap7uz`,$$css:!0},spinner:{kVAM5u:`lb181nr7w`,kaIpWk:`lb16rqkct`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbvndefy`,k44tkh:`lbdz8niu`,ko0y90:`lba4qsjk`,kKVMdj:`lb1v0ides`,kyAemX:`lb1esw782`,kLZC3w:`lb1v8p93f`,kB7OPa:`lb9f619`,k1xSpc:`lb1rg5ohu`,kmuXW:`lb2lah0s`,kZKoxP:`lb1kpxq89`,kzqmXN:`lbsmyaan`,$$css:!0}};Object.fromEntries(Object.entries(X).map(([e,t])=>[e,n(t).className??``]));var kr=w({block:`button`,dataAttributes:[`type`,`size`,`shape`,`danger`,`ghost`,`loading`,`block`],elements:[`icon`,`spinner`]});w({block:`split-button`,dataAttributes:[`type`,`size`,`danger`,`loading`],elements:[`main`,`menu`]});var Ar=e=>e==null?null:(0,F.isValidElement)(e)||typeof e==`string`||typeof e==`number`?e:(0,L.jsx)(Or,{icon:e,size:`small`}),jr=e=>e===`small`?X.sizeSmall:e===`large`?X.sizeLarge:X.sizeMiddle,Mr=e=>e===`small`?X.iconOnlySmall:e===`large`?X.iconOnlyLarge:X.iconOnlyMiddle,Nr=({danger:e,ghost:t,type:n})=>{if(t&&n!==`text`&&n!==`link`)return e?X.ghostDanger:n===`primary`?X.ghostPrimary:X.ghostDefault;switch(n){case`primary`:return e?X.dangerSolid:X.variantPrimary;case`dashed`:return e?[X.variantDashed,X.dangerOutlined]:X.variantDashed;case`fill`:return e?X.dangerFill:X.variantFill;case`text`:return e?[X.variantText,X.dangerText]:X.variantText;case`link`:return e?[X.variantLink,X.dangerInline]:X.variantLink;default:return e?[X.variantDefault,X.dangerOutlined]:X.variantDefault}},Pr={scale:.98},Fr={damping:26,mass:.6,stiffness:600,type:`spring`},Ir=({block:e,children:t,className:r,classNames:i,danger:a=!1,disabled:o,outdent:s,ghost:c=!1,href:l,htmlType:u=`button`,icon:d,iconPosition:f=`start`,loading:p,onClick:m,ref:g,shape:_=`default`,size:v=`middle`,stableData:y,styles:b,target:x,type:S=`default`,xstyle:w,...T})=>{let E=fe(),D=(0,F.useRef)(null),ee=(0,F.useRef)(null),[O,k]=(0,F.useState)(!!p);p&&!O&&k(!0),(0,F.useLayoutEffect)(()=>{if(p||!O)return;let e=[...D.current?.getAnimations?.()??[],...ee.current?.getAnimations?.()??[]].filter(e=>`transitionProperty`in e),t=!1;return Promise.allSettled(e.map(e=>e.finished)).then(()=>{t||k(!1)}),()=>{t=!0}},[p,O]);let A=o||p,j=jr(v),M=Nr({danger:a,ghost:c,type:S}),te=_===`circle`?X.shapeCircle:_===`round`?X.shapeRound:void 0,N=(t==null||t===!1||t===``)&&(p||d)?Mr(v):void 0,ne=S===`text`&&s?s===`end`?X.outdentEnd:X.outdentStart:void 0,P=je([X.base,Me.info,j,M,te,e&&X.block,f===`end`&&X.iconEnd,N,ne,w],h(kr(),r)).className,re=y??C({block:e,danger:a,ghost:c,loading:p,shape:_,size:v,type:S}),ie=(0,L.jsx)(`span`,{"aria-hidden":!p,ref:D,...je([X.iconBox,X.spinnerSlot,f===`end`&&X.spinnerSlotEnd,p&&X.spinnerSlotShow],h(kr(`spinner`),i?.icon),b?.icon),children:(0,L.jsx)(`span`,{ref:ee,...n(X.spinnerVisual,p&&X.spinnerVisualShow),children:(p||O)&&(0,L.jsx)(`span`,{...n(X.spinner)})})}),ae=d&&!p?(0,L.jsx)(`span`,{...je(X.iconBox,h(kr(`icon`),i?.icon),b?.icon),children:Ar(d)}):null,oe=(0,L.jsxs)(L.Fragment,{children:[ie,ae,t]}),se=A?{}:{transition:Fr,whileTap:Pr};if(l!==void 0){let e=e=>{A?e.preventDefault():m?.(e)};return(0,L.jsx)(E.a,{"aria-busy":p||void 0,"aria-disabled":A||void 0,href:o?void 0:l,target:x,...re,...T,className:P,ref:g,onClick:e,...se,children:oe})}let ce=e=>{A?e.preventDefault():m?.(e)};return(0,L.jsx)(E.button,{type:u,...re,...T,"aria-busy":p||void 0,"aria-disabled":A||void 0,className:P,disabled:o,ref:g,onClick:ce,...se,children:oe})};Ir.displayName=`BaseButton`;var Lr=Ir,Rr=(e,t)=>{if(typeof e==`function`)return e(t);e&&(e.current=t)},zr=e=>t=>{let n=e.map(e=>{let n=Rr(e,t);return typeof n==`function`?n:()=>Rr(e,null)});return()=>{for(let e of n)e()}},Br=e=>(0,F.useMemo)(()=>zr(e),e),Vr=[],Hr=void 0;function Ur(){return Hr}function Wr(e){Vr.push(e)}function Gr(e){let t=(t,n)=>{let r=R(qr).current,i;try{Hr=r;for(let e of Vr)e.before(r);i=e(t,n);for(let e of Vr)e.after(r);r.didInitialize=!0}finally{Hr=void 0}return i};return t.displayName=e.displayName||e.name,t}function Kr(e){return F.forwardRef(Gr(e))}function qr(){return{didInitialize:!1}}function Jr(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Yr,platform:Xr,maxTouchPoints:Zr}=Jr(),Qr=Yr.toLowerCase(),$r=Xr.toLowerCase(),ei=/^i(os$|p)/.test($r)||$r===`macintel`&&Zr>1,ti=`android`,ni=$r===ti||Qr.includes(ti),ri=!ei&&$r.startsWith(`mac`);$r.startsWith(`win`),!ni&&/^(linux|chrome os)/.test($r);var ii=ri||ei,ai=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`),oi=!ai&&Qr.includes(`firefox`);!ai&&Qr.includes(`chrom`);var si=ii,ci=/jsdom|happydom/.test(Qr);function li(e){e.preventDefault(),e.stopPropagation()}function ui(e){return`nativeEvent`in e}function di(e){return e.pointerType===``&&e.isTrusted?!0:ni&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function fi(e){return ci?!1:!ni&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(ni||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function pi(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function mi(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function hi(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Z(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&jn(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function gi(e,t){let n=e;for(;n;){if(G(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(jn(n)?n.host:null)}return null}function _i(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var vi=`data-base-ui-focusable`,yi=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,bi=`ArrowLeft`,xi=`ArrowRight`,Si=`ArrowUp`,Ci=`ArrowDown`,wi=`data-open`,Ti=`data-closed`,Ei=`data-anchor-hidden`,Di=`data-popup-open`,Oi=`data-pressed`,ki={[Di]:``},Ai={[Di]:``,[Oi]:``},ji={[wi]:``},Mi={[Ti]:``},Ni={[Ei]:``},Pi={open(e){return e?ki:null}},Fi={open(e){return e?Ai:null}},Ii={open(e){return e?ji:Mi},anchorHidden(e){return e?Ni:null}},Li={...Ii,...Dn},Ri=`data-trigger-disabled`;function zi(e,t){if(!G(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(Ri);for(let[,e]of t.entries())if(Z(e,n))return!e.hasAttribute(Ri);return!1}function Bi(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Vi(e){return e.matches(`html,body`)}function Hi(e){return K(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Ui(e){return gi(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${yi}`)!=null}function Wi(e){return e?e.getAttribute(`role`)===`combobox`&&Hi(e):!1}function Gi(e){if(!e||ci)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Ki(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function qi(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var Ji={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Yi={...Ji,position:`fixed`,margin:0,top:0,left:0},Xi={...Ji,position:`absolute`},Zi=F.forwardRef(function(e,t){let[n,r]=F.useState();H(()=>{si&&ai&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,L.jsx)(`span`,{...e,ref:t,style:Yi,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})}),Qi=[`top`,`right`,`bottom`,`left`],$i=Math.min,ea=Math.max,ta=Math.round,na=Math.floor,ra=e=>({x:e,y:e}),ia={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function aa(e,t,n){return ea(e,$i(t,n))}function oa(e,t){return typeof e==`function`?e(t):e}function sa(e){return e.split(`-`)[0]}function ca(e){return e.split(`-`)[1]}function la(e){return e===`x`?`y`:`x`}function ua(e){return e===`y`?`height`:`width`}function da(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function fa(e){return la(da(e))}function pa(e,t,n){n===void 0&&(n=!1);let r=ca(e),i=fa(e),a=ua(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Sa(o)),[o,Sa(o)]}function ma(e){let t=Sa(e);return[ha(e),t,ha(t)]}function ha(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ga=[`left`,`right`],_a=[`right`,`left`],va=[`top`,`bottom`],ya=[`bottom`,`top`];function ba(e,t,n){switch(e){case`top`:case`bottom`:return n?t?_a:ga:t?ga:_a;case`left`:case`right`:return t?va:ya;default:return[]}}function xa(e,t,n,r){let i=ca(e),a=ba(sa(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ha)))),a}function Sa(e){let t=sa(e);return ia[t]+e.slice(t.length)}function Ca(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function wa(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ca(e)}function Ta(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ea(e,t,n){return Math.floor(e/t)!==n}function Da(e,t){return t<0||t>=e.length}function Oa(e,t){return ja(e.current,{disabledIndices:t})}function ka(e,t){return ja(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Aa(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>ja(e,{startingIndex:t,decrement:r,disabledIndices:o}),u,d=!1;if(!i)u=r?Math.max(s,l()):Math.min(c,l());else if(r?t<=s:t>=c){let n=r?-1:e.length;a&&t!==n?u=-1:(u=r?c:s,d=!0)}else u=l();return{index:Da(e,u)?-1:u,wrapped:d}}function ja(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Na(e,a,r));return a}function Ma(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=gi(e,`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1),r=i(t,u,n[o][e]??n[o][0]);o=a[r]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Na(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=na(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Na(e,r,s))return r}};d&&li(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=ja(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=ja(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}Da(e,f)&&(f=u)}if(n===`both`){let n=na(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&li(t),u%o===o-1?r&&(f=ja(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=ja(e,{startingIndex:u,disabledIndices:s}),r&&Ea(f,o,n)&&(f=ja(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),Ea(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&li(t),u%o===0?r&&(f=ja(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=ja(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&Ea(f,o,n)&&(f=ja(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),Ea(f,o,n)&&(f=u));let c=na(l/o)===n;Da(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:ja(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function Na(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!Fa(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function Pa(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Fa(e,t=e?q(e):null){return!e||!e.isConnected||!t||Pa(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Ia=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function La(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return jn(n)?n.host:null}function Ra(e){for(let t of Array.from(e.children))if(U(t)===`summary`)return t;return null}function za(e,t){let n=Ra(t);return!!n&&(e===n||Z(n,e))}function Ba(e){let t=e?U(e):``;return e!=null&&e.matches(Ia)&&(t!==`summary`||e.parentElement!=null&&U(e.parentElement)===`details`&&Ra(e.parentElement)===e)&&(t!==`details`||Ra(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Va(e){if(!Ba(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=La(t)){let n=t!==e,r=U(t)===`slot`;if(t.hasAttribute(`inert`)||n&&U(t)===`details`&&!t.open&&!za(e,t)||t.hasAttribute(`hidden`)||!r&&!Ha(t,n))return!1}return!0}function Ha(e,t){let n=q(e);return t?n.display!==`none`:Fa(e,n)}function Ua(e){let t=e.tabIndex;if(t<0){let t=U(e);if(t===`details`||t===`audio`||t===`video`||K(e)&&e.isContentEditable)return 0}return t}function Wa(e){if(U(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Ga(e,t){let n=Wa(e);if(!n)return!0;let r=t.find(e=>{let t=Wa(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Wa(e);return t?.name===n.name&&t.form===n.form})===n}function Ka(e){if(K(e)&&U(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return K(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function qa(e,t){Ka(e).forEach(e=>{Ba(e)&&t.push(e),qa(e,t)})}function Ja(e,t,n){Ka(e).forEach(e=>{K(e)&&e.matches(t)&&n.push(e),Ja(e,t,n)})}function Ya(e){return Va(e)&&Ua(e)>=0}function Xa(e){let t=[];return qa(e,t),t.filter(Va)}function Za(e){let t=Xa(e);return t.filter(e=>Ua(e)>=0&&Ga(e,t))}function Qa(e,t){let n=Za(e),r=n.length;if(r===0)return;let i=hi(J(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function $a(e){return Qa(J(e).body,1)||e}function eo(e){return Qa(J(e).body,-1)||e}function to(e,t,n){if(!e)return null;let r=[];qa(J(e).body,r);let i=r.indexOf(e);if(i===-1)return null;let a=r.filter(Va);for(let e=1;e<r.length;e+=1){let o=r[(i+t*e+r.length)%r.length];if(!Z(n,o)&&Ya(o)&&Ga(o,a))return o}return r[i]}function no(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Z(n,r)}function ro(e){Za(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function io(e){let t=[];Ja(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function ao(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...ao(e,t.id,n)])}function oo(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function so(e){return`data-base-ui-${e}`}var co=0;function lo(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(co);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),B;let o=requestAnimationFrame(a);return co=o,()=>{co===o&&(cancelAnimationFrame(o),co=0)}}var uo=`data-base-ui-inert`,fo=new WeakMap,po=new WeakSet,mo=new WeakMap,ho=0;function go(e){return e?jn(e)?e.host:go(e.parentNode):null}var _o=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=go(t);return e.contains(n)?n:null}).filter(e=>e!=null),vo=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},yo=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{U(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function bo(e,t,n,{mark:r=!0}){let i=_o(t,e),a=r?yo(t,vo(i),new Set(i)):[],o=[],s=[];if(n){let e=_o(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);yo(t,vo(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(fo.get(e)||0)+1;fo.set(e,r),o.push(e),r===1&&n&&po.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(mo.get(e)||0)+1;mo.set(e,t),s.push(e),t===1&&e.setAttribute(uo,``)}),ho+=1,()=>{o.forEach(e=>{let t=(fo.get(e)||0)-1;fo.set(e,t),t||(po.has(e)||e.removeAttribute(`aria-hidden`),po.delete(e))}),r&&s.forEach(e=>{let t=(mo.get(e)||0)-1;mo.set(e,t),t||e.removeAttribute(uo)}),--ho,ho||(fo=new WeakMap,po=new WeakSet,mo=new WeakMap)}}function xo(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=J(e[0]).body;return bo(e,i,n,{mark:r})}var So={style:{transition:`none`}},Co=`data-base-ui-click-trigger`,wo=`data-base-ui-swipe-ignore`,To=`data-swipe-ignore`,Eo=`[${wo}]`,Do=`[${To}]`,Oo={fallbackAxisSide:`none`},ko={fallbackAxisSide:`end`},Ao={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},jo=F.createContext(null),Mo=()=>F.useContext(jo),No=so(`portal`);function Po(e={}){let{ref:t,container:n,componentProps:r=V,elementProps:i}=e,a=It(),o=Mo()?.portalNode,[s,c]=F.useState(null),[l,u]=F.useState(null),d=z(e=>{e!==null&&u(e)}),f=F.useRef(null);H(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(An(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=Tt(`div`,r,{ref:[t,d],props:[{id:a,[No]:``},i]}),m=s&&p?or.createPortal(p,s):null;return{node:l,nodeId:F.isValidElement(p)?p.props.id:void 0,subtree:m}}var Fo=F.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=Po({container:o,ref:t,componentProps:e,elementProps:c}),f=F.useRef(null),p=F.useRef(null),m=F.useRef(null),h=F.useRef(null),[g,_]=F.useState(null),v=F.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;F.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&no(e)&&(e.type===`focusin`?v.current&&=(io(l),!1):(ro(l),v.current=!0))}return qi(Y(l,`focusin`,e,!0),Y(l,`focusout`,e,!0))},[l,y]),H(()=>{l&&b===!0&&v.current&&(io(l),v.current=!1)},[b,l]);let S=F.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,L.jsxs)(F.Fragment,{children:[d,(0,L.jsxs)(jo.Provider,{value:S,children:[x&&l&&(0,L.jsx)(Zi,{"data-type":`outside`,ref:f,onFocus:e=>{no(e,l)?m.current?.focus():eo(g?g.domReference:null)?.focus()}}),x&&l&&(0,L.jsx)(`span`,{role:s,"aria-owns":u,style:Ao}),l&&or.createPortal(a,l),x&&l&&(0,L.jsx)(Zi,{"data-type":`outside`,ref:p,onFocus:e=>{no(e,l)?h.current?.focus():($a(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,Rt(`focus-out`,e.nativeEvent)))}})]})]})});function Io(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Lo=class{nodesRef={current:[]};events=Io();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},Ro=F.createContext(null),zo=F.createContext(null),Bo=()=>F.useContext(Ro)?.id||null,Vo=e=>{let t=F.useContext(zo);return e??t};function Ho(e){let t=It(),n=Vo(e),r=Bo();return H(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function Uo(e){let{children:t,id:n}=e,r=Bo();return(0,L.jsx)(Ro.Provider,{value:F.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function Wo(e){let{children:t,externalTree:n}=e,r=R(()=>n??new Lo).current;return(0,L.jsx)(zo.Provider,{value:r,children:t})}function Go(e,t){let n=W(_i(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(di(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var Ko=20,qo=[];function Jo(){qo=qo.filter(e=>e.deref()?.isConnected)}function Yo(e){Jo(),e&&U(e)!==`body`&&(qo.push(new WeakRef(e)),qo.length>Ko&&(qo=qo.slice(-20)))}function Xo(){return Jo(),qo[qo.length-1]?.deref()}function Zo(e){return e?Ya(e)?e:Za(e)[0]||e:null}function Qo(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=Xa(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Ya(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function $o(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,explicitReturnFocus:o,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=t.useState(`open`),_=t.useState(`domReferenceElement`),v=t.useState(`floatingElement`),{events:y,dataRef:b}=t.context,x=z(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Wi(_)&&S,w=ir(i),T=ir(a),E=ir(o),D=ir(u),ee=ir(g),O=Vo(m),k=Mo(),A=F.useRef(!1),j=F.useRef(!1),M=F.useRef(!1),te=F.useRef(null),N=F.useRef(``),ne=F.useRef(``),P=F.useRef(null),re=F.useRef(null),ie=Qe(P,p,k?.beforeInsideRef),ae=Qe(re,k?.afterInsideRef),oe=rr(),se=rr(),ce=bn(),le=k!=null,I=Ki(v),ue=z((e=I)=>e?Za(e):[]),de=z(()=>h?.().filter(e=>e!=null)??[]);F.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&Z(I,hi(J(I)))&&ue().length===0&&!C&&li(e)}return Y(J(I),`keydown`,e)},[r,I,c,C,ue]),F.useEffect(()=>{if(r||!g)return;let e=J(I);function t(){M.current=!1}function n(e){let t=_i(e),n=de(),r=Z(v,t)||Z(_,t)||Z(k?.portalNode,t)||n.some(e=>e===t||Z(e,t));M.current=!r,ne.current=e.pointerType||`keyboard`,gi(t,`[data-base-ui-click-trigger]`)&&(j.current=!0,se.start(0,()=>{j.current=!1}))}function i(){ne.current=`keyboard`}return qi(Y(e,`pointerdown`,n,!0),Y(e,`pointerup`,t,!0),Y(e,`pointercancel`,t,!0),Y(e,`keydown`,i,!0),t)},[r,v,_,I,g,k,se,de]),F.useEffect(()=>{if(r||!l)return;let e=J(I);function n(){j.current=!0,se.start(0,()=>{j.current=!1})}function i(e){let t=_i(e);Ya(t)&&(te.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=_i(n);c&&r==null&&a!=null&&Z(v,a)&&Yo(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=de(),p=r?.hasAttribute(so(`focus-guard`))&&[P.current,re.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,sr(f),sr(d)].includes(r),m=!(Z(_,r)||Z(v,r)||Z(r,v)||Z(k?.portalNode,r)||u.some(e=>e===r||Z(e,r))||l.hasMatchingElement(e=>Z(e,r))||p||O&&(ao(O.nodesRef.current,o).find(e=>Z(e.context?.elements.floating,r)||Z(e.context?.elements.domReference,r))||oo(O.nodesRef.current,o).find(e=>[e.context?.elements.floating,Ki(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&I&&Qo(I),s&&i!==_&&!Fa(a)&&hi(e)===e.body){if(K(I)&&(I.focus(),s===`popup`)){ce.request(()=>{I.focus()});return}let e=ue(),t=te.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||I;K(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(C||!c)&&r&&m&&!j.current&&(C||r!==Xo())&&(A.current=!0,t.setOpen(!1,Rt(tn,n)))})}function o(){M.current||(b.current.insideReactTree=!0,oe.start(0,()=>{b.current.insideReactTree=!1}))}let u=K(_)?_:null;if(v||u)return qi(u&&Y(u,`focusout`,a),u&&Y(u,`pointerdown`,n),v&&Y(v,`focusin`,i),v&&Y(v,`focusout`,a),v&&k&&Y(v,`focusout`,o,!0))},[r,_,v,I,c,O,k,t,l,s,ue,C,x,b,oe,se,ce,d,f,de]),F.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(k?.portalNode?.querySelectorAll(`[${so(`portal`)}]`)||[]),t=(O?oo(O.nodesRef.current,x()):[]).find(e=>Wi(e.context?.elements.domReference||null))?.context?.elements.domReference,n=xo([v,...e,P.current,re.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,...de(),t,sr(f),sr(d),C?_:null].filter(e=>e!=null),{ariaHidden:c||C,mark:!1}),i=xo([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,k,C,O,x,d,f,de]),H(()=>{if(!g||r||!K(I))return;N.current=``,ne.current=``;let e=J(I),t=hi(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||Z(I,t))return;let i=null,a=()=>(i??=ue(I),i[0]||I),o;o=r===!0||r===null?a():sr(r),o||=a();let s=Z(I,hi(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&di(c);lo(o,{sync:l,preventScroll:o===I,shouldFocus(){if(!ee.current)return!1;if(s)return!0;let t=hi(e);return!(t!==o&&Z(I,t))}})})},[r,g,I,ue,w,D,ee,b]);let fe=F.useRef(null);H(()=>{if(r||!I){fe.current=null;return}fe.current&&=(fe.current.cancelled=!0,null);let e=J(I),t=hi(e),n=D.current==null;Yo(t);function i(e){if(e.open||(N.current=Go(e.nativeEvent,ne.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(so(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(A.current=!0),e.reason===`outside-press`){if(e.nested)A.current=!1;else if(di(e.nativeEvent)||fi(e.nativeEvent))A.current=!1;else{let e=!1;J(I).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?A.current=!1:A.current=!0}}}y.on(`openchange`,i);function a(e){let r=T.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=_?.isConnected?_:null,o=t?.isConnected&&U(t)!==`body`?t:null,s=n?o||a:a||o;return s||=Xo()||null,typeof i==`boolean`?s:sr(i)||s||null}return()=>{y.off(`openchange`,i);let t=hi(e),n=de(),r=Z(v,t)||n.some(e=>e===t||Z(e,t))||O&&ao(O.nodesRef.current,x(),!1).some(e=>Z(e.context?.elements.floating,t)),o=T.current,s=N.current,c=a(s),l={cancelled:!1};fe.current=l,queueMicrotask(()=>{fe.current===l&&(fe.current=null);let n=Zo(c),i=E.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!A.current&&K(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}A.current=!1})}},[r,v,I,T,E,D,y,O,_,x,de]),H(()=>{if(!ai||g||!v)return;let e=hi(J(v));K(e)&&Hi(e)&&Z(v,e)&&e.blur()},[g,v]),H(()=>{if(!r&&k)return k.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{k.setFocusManagerState(null)}},[r,k,c,g,t,l,_]),H(()=>{if(!r&&I)return Qo(I),()=>{queueMicrotask(Jo)}},[r,I]);let pe=!r&&(!c||!C)&&(le||c);return(0,L.jsxs)(F.Fragment,{children:[pe&&(0,L.jsx)(Zi,{"data-type":`inside`,ref:ie,onFocus:e=>{if(c){let e=ue();lo(e[e.length-1])}else k?.portalNode&&(A.current=!1,no(e,k.portalNode)?$a(_)?.focus():sr(f??k.beforeOutsideRef)?.focus())}}),n,pe&&(0,L.jsx)(Zi,{"data-type":`inside`,ref:ae,onFocus:e=>{c?lo(ue()[0]):k?.portalNode&&(l&&(A.current=!0),no(e,k.portalNode)?eo(_)?.focus():sr(d??k.afterOutsideRef)?.focus())}})]})}function es(){return!1}function ts(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function ns(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=es,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=Vo(c),m=z(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=z(()=>a),{escapeKey:v,outsidePress:y}=ts(s),b=F.useRef(!1),x=F.useRef(!1),S=F.useRef(!1),C=F.useRef(!1),w=F.useRef(!1),T=F.useRef(``),E=F.useRef(null),D=rr(),ee=rr(),O=rr(),k=z(()=>{ee.clear(),d.current.insideReactTree=!1}),A=z(e=>{let t=d.current.floatingContext?.nodeId;return(p?ao(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),j=z(t=>Bi(t,e.select(`floatingElement`))||Bi(t,e.select(`domReferenceElement`))),M=z(t=>{o()&&e.setOpen(!1,Rt(Vt,t.nativeEvent))}),te=z(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=ui(t)?t.nativeEvent:t;if(w.current||i.isComposing||!v&&A(`__escapeKeyBubbles`))return;let a=Rt(nn,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!v&&!a.isPropagationAllowed&&t.stopPropagation()}),N=z(()=>{d.current.insideReactTree=!0,ee.start(0,k)}),ne=z(t=>{if(!l||!n||t.button!==0)return;let r=_i(t.nativeEvent);Z(e.select(`floatingElement`),r)&&(b.current||(b.current=!0,x.current=!1))}),P=z(e=>{l&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});F.useEffect(()=>{function e(e){e.open||(C.current=!1)}return f.on(`openchange`,e),()=>{f.off(`openchange`,e)}},[f]),F.useEffect(()=>k,[k]),F.useEffect(()=>{if(!l||!n)return l||(C.current=!1,w.current=!1,T.current=``,E.current=null),k;d.current.__escapeKeyBubbles=v,d.current.__outsidePressBubbles=y;let t=new nr,i=J(u);function a(){O.clear(),w.current=!0}function o(){w.current=!0,O.start(ai?5:0,()=>{w.current=!1})}function s(){S.current=!0,t.start(0,()=>{S.current=!1})}function c(){b.current=!1,x.current=!1}function f(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function ee(e){let t=d.current.floatingContext?.nodeId,n=p&&ao(p.nodesRef.current,t).some(t=>Bi(e,t.context?.elements.floating));return j(e)||n}function M(n){if(m(n)){n.type!==`click`&&!j(n)&&(t.clear(),S.current=!1),k();return}if(d.current.insideReactTree){k();return}let r=_i(n),i=`[${so(`inert`)}]`,a=G(r)?r.getRootNode():null,o=Array.from((jn(a)?a:J(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>Z(e,r))))return;let c=G(r)?r:null;for(;c&&!Hn(c);){let e=Wn(c);if(Hn(e)||!G(e))break;c=e}if(!(o.length&&G(r)&&!Vi(r)&&!Z(r,e.select(`floatingElement`))&&o.every(e=>!Z(c,e)))){if(K(r)&&!(`touches`in n)){let e=Hn(r),t=q(r),i=/auto|scroll/,a=e||i.test(t.overflowX),o=e||i.test(t.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=t.direction===`rtl`,u=c&&(l?n.offsetX<=r.offsetWidth-r.clientWidth:n.offsetX>r.clientWidth),d=s&&n.offsetY>r.clientHeight;if(u||d)return}if(!ee(n)){if(f()===`intentional`){if(n.detail!==0&&!di(n)&&!C.current)return;if(S.current){t.clear(),S.current=!1;return}}typeof h==`function`&&!h(n)||A(`__outsidePressBubbles`)||(e.setOpen(!1,Rt(Wt,n)),k())}}}function N(t){f()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!j(t)&&M(t)}function ne(t){if(f()!==`sloppy`||!e.select(`open`)||!n||j(t))return;let r=t.touches[0];r&&(E.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function P(e,t){let n=_i(e);if(!n)return;let r=Y(n,e.type,()=>{t(e),r()})}function re(e){T.current=`touch`,P(e,ne)}function ie(e){D.clear(),e.type===`pointerdown`&&(e.button===0&&(C.current=!0),T.current=e.pointerType),(e.type!==`mousedown`||!E.current||E.current.dismissOnMouseDown)&&P(e,e=>{e.type===`pointerdown`?N(e):M(e)})}function ae(e){if(e.type===`pointercancel`&&(C.current=!1),!b.current)return;let n=x.current;c(),f()===`intentional`&&(e.type===`pointercancel`?n&&s():ee(e)||(n?s():(typeof h!=`function`||h(e))&&(t.clear(),S.current=!0,k())))}function oe(e){if(f()!==`sloppy`||!E.current||j(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(M(e),D.clear(),E.current=null)}function F(e){P(e,oe)}function se(e){f()===`sloppy`&&E.current&&!j(e)&&(E.current.dismissOnTouchEnd&&M(e),D.clear(),E.current=null)}function ce(e){P(e,se)}let le=qi(r&&qi(Y(i,`keydown`,te),Y(i,`compositionstart`,a),Y(i,`compositionend`,o)),g&&qi(Y(i,`click`,ie,!0),Y(i,`pointerdown`,ie,!0),Y(i,`pointerup`,ae,!0),Y(i,`pointercancel`,ae,!0),Y(i,`mousedown`,ie,!0),Y(i,`mouseup`,ae,!0),Y(i,`touchstart`,re,{capture:!0,passive:!0}),Y(i,`touchmove`,F,{capture:!0,passive:!0}),Y(i,`touchend`,ce,{capture:!0,passive:!0})));return()=>{le(),t.clear(),c(),S.current=!1}},[d,u,r,g,h,l,n,v,y,te,k,_,A,j,p,e,D,O]);let re=F.useMemo(()=>({onKeyDown:te,onPointerDown:M,onClick:M}),[te,M]),ie=F.useMemo(()=>({onKeyDown:te,onPointerDown:P,onMouseDown:P,onClickCapture:N,onMouseDownCapture(e){N(),ne(e)},onPointerDownCapture(e){N(),ne(e)},onMouseUpCapture:N,onTouchEndCapture:N,onTouchMoveCapture:N}),[te,N,ne,P]);return F.useMemo(()=>n?{reference:re,floating:ie,trigger:re}:{},[n,re,ie])}function rs(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=o;return t.useSyncedValue(`floatingId`,i),H(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};G(c)&&(e.domReferenceElement=c),r.state.positionReference===r.state.referenceElement&&(e.positionReference=c),r.update(e)},[s,i,c,l,r]),r.context.onOpenChange=u,r.context.nested=a,r}function is(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=z(i),{mounted:c,setMounted:l,transitionStatus:u}=xn(t,!1,!1,o),d=!t&&r;H(()=>{t&&s(!1)},[t,s]);let f=F.useRef(c),p=F.useRef(!1),m=Mt(),h=()=>{f.current=!1,l(!1),a()};H(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=z(()=>{f.current&&(t?(p.current=!0,m()):h())});return fr({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var as={tabIndex:-1,[vi]:``};function os(e){return t=>t!==`touch`||e.current}function ss(e,t=!1){let n=It(),r=Bo()!=null,i=R(()=>e(n,r)).current;return rs({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function cs({handle:e,store:t}){return H(()=>e.attachStore(t),[e,t]),null}function ls(e){let t=e.context.triggerElements.size;e.select(`open`)&&e.state.triggerCount!==t&&e.set(`triggerCount`,t)}function us(e,t){let n=F.useRef(null);return z(r=>{let i=n.current;if(i!==null){if(i.element===r&&i.store===t&&i.id===e)return;n.current=null;let a=i.store;a.context.triggerElements.getById(i.id)===i.element&&(a.context.triggerElements.delete(i.id),ls(a))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),ls(t))})}function ds(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s,openedWithoutTrigger:t?n==null:e.openedWithoutTrigger}}function fs(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function ps(e,t,n,r={}){let i=n.reason,a=i===Ht,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=fs(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i=ds(e.state,t,n.trigger,c()),l={...r.extraState,...i};o?l.instantType=`focus`:s?l.instantType=`dismiss`:a&&(l.instantType=void 0),e.update(l)};a?or.flushSync(l):l()}function ms(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=us(e,n),o=z(t=>{let i=n.select(`open`),a=n.select(`activeTriggerId`);if(a===e){let e={activeTriggerElement:t,...i?r:null};n.update(e)}else if(a==null&&i&&!n.state.openedWithoutTrigger){let i={activeTriggerId:e??null,activeTriggerElement:t,...r};n.update(i)}}),s=z(e=>{a(e),e&&o(e)});return H(()=>(s(t.current),()=>s(null)),[s,t,n,e]),H(()=>{if(i){let e={activeTriggerElement:t.current,...r};n.update(e)}},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function hs(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=F.useRef(null),i=e.useState(`open`);H(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0),e.state.openedWithoutTrigger&&e.set(`openedWithoutTrigger`,!1);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&!e.state.openedWithoutTrigger&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=Rt(Bt);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,e.useState(`triggerCount`),e.useState(`activeTriggerId`),e.useState(`activeTriggerElement`),n])}function gs(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=is({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState(`preventUnmountingOnClose`),setPreventUnmountOnClose:e=>t.set(`preventUnmountingOnClose`,e),animateInitialOpen:r,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}});return R(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function _s(e,t){e.useSyncedValues(t),H(()=>()=>{e.update({activeTriggerProps:V,inactiveTriggerProps:V,popupProps:V})},[e])}function vs(e,t){H(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),H(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var ys=class{idMap=new Map;add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}},bs=t((e=>{var t=o(),n=r();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,s=n.useSyncExternalStore,c=t.useRef,l=t.useEffect,u=t.useMemo,d=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=c(null);if(o.current===null){var f={hasValue:!1,value:null};o.current=f}else f=o.current;o=u(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=s(e,o[0],o[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),d(p),p}})),xs=t(((e,t)=>{t.exports=bs()})),Ss=r(),Cs=e(xs(),1),ws=at(19)?Ds:Os;function Ts(e,t,n,r,i){return ws(e,t,n,r,i)}function Es(e,t,n,r,i){let a=F.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Ss.useSyncExternalStore)(e.subscribe,a,a)}Wr({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Ss.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Ds(e,t,n,r,i){let a=Ur();if(!a)return Es(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],s.store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,i)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function Os(e,t,n,r,i){return(0,Cs.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var ks=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Ts(this,e,t,n,r)}},As=class extends ks{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){F.useDebugValue(e);let n=this;H(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;H(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;H(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){F.useDebugValue(e);let n=this,r=t!==void 0;H(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return F.useDebugValue(e),Ts(this,this.selectors[e],t,n,r)}useContextCallback(e,t){F.useDebugValue(e);let n=z(t??B);this.context[e]=n}useStateSetter(e){let t=F.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},js={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},Ms=class extends As{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Io(),nested:n,triggerElements:i},js),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&mi(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Ns(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Ms({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:V,inactiveTriggerProps:V,popupProps:V}}var Ps=e=>e.triggerIdProp??e.activeTriggerId,Fs=e=>e.openProp??e.open,Is=e=>(e.popupElement?.id??e.floatingId)||void 0;function Ls(e,t){return t!==void 0&&Fs(e)&&Ps(e)===t}function Rs(e,t){return Ls(e,t)?!0:t!==void 0&&Fs(e)&&Ps(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var zs={open:Fs,mounted:e=>e.mounted,transitionStatus:e=>Fs(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Ps,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Is,isTriggerActive:(e,t)=>t!==void 0&&Ps(e)===t,isOpenedByTrigger:(e,t)=>Ls(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Ps(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>Rs(e,t)?Is(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function Bs(e,t,n){let{reference:r,floating:i}=e,a=da(t),o=fa(t),s=ua(o),c=sa(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=ca(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Vs(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=oa(t,e),p=wa(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ta(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ta(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Hs=50,Us=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Vs},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Bs(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Hs&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Bs(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Ws=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=oa(e,t)||{};if(l==null)return{};let d=wa(u),f={x:n,y:r},p=fa(i),m=ua(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=$i(d[_],T),D=$i(d[v],T),ee=C-h[m]-D,O=C/2-h[m]/2+w,k=aa(E,O,ee),A=!c.arrow&&ca(i)!=null&&O!==k&&a.reference[m]/2-(O<E?E:D)-h[m]/2<0,j=A?O<E?O-E:O-ee:0;return{[p]:f[p]+j,data:{[p]:k,centerOffset:O-k-j,...A&&{alignmentOffset:j}},reset:A}}}),Gs=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=oa(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=sa(r),_=da(o),v=sa(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Sa(o)]:ma(o)),x=p!==`none`;!d&&x&&b.push(...xa(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=pa(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===da(t)||T.every(e=>da(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=da(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Ks(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qs(e){return Qi.some(t=>e[t]>=0)}var Js=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=oa(e,t);switch(i){case`referenceHidden`:{let e=Ks(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:qs(e)}}}case`escaped`:{let e=Ks(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:qs(e)}}}default:return{}}}}},Ys=new Set([`left`,`top`]);async function Xs(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=sa(n),s=ca(n),c=da(n)===`y`,l=Ys.has(o)?-1:1,u=a&&c?-1:1,d=oa(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Zs=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Xs(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Qs=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=oa(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=da(i),p=la(f),m=u[p],h=u[f],g=(e,t)=>aa(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},$s=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=oa(e,t),u={x:n,y:r},d=da(i),f=la(d),p=u[f],m=u[d],h=oa(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Ys.has(sa(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ec=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=oa(e,t),c=await i.detectOverflow(t,s),l=sa(n),u=ca(n),d=da(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=$i(p-c[m],g),y=$i(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*ea(c.left,c.right):S=p-2*ea(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function tc(e){let t=q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=K(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ta(n)!==a||ta(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function nc(e){return G(e)?e:e.contextElement}function rc(e){let t=nc(e);if(!K(t))return ra(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=tc(t),o=(a?ta(n.width):n.width)/r,s=(a?ta(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var ic=ra(0);function ac(e){let t=W(e);return!Vn()||!t.visualViewport?ic:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oc(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===W(e)}function sc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=nc(e),o=ra(1);t&&(r?G(r)&&(o=rc(r)):o=rc(e));let s=oc(a,n,r)?ac(a):ra(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=W(a),t=G(r)?W(r):r,n=e,i=qn(n);for(;i&&t!==n;){let e=rc(i),t=i.getBoundingClientRect(),r=q(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=W(i),i=qn(n)}}return Ta({width:u,height:d,x:c,y:l})}function cc(e,t){let n=Un(e).scrollLeft;return t?t.left+n:sc(kn(e)).left+n}function lc(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-cc(e,n),y:n.top+t.scrollTop}}function uc(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=kn(r),s=t?Pn(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ra(1),u=ra(0),d=K(r);if((d||!a)&&((U(r)!==`body`||Mn(o))&&(c=Un(r)),d)){let e=sc(r);l=rc(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?lc(o,c):ra(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function dc(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function fc(e){let t=Un(e),n=e.ownerDocument.body,r=ea(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=ea(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+cc(e),o=-t.scrollTop;return q(n).direction===`rtl`&&(a+=ea(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var pc=25;function mc(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=W(e),a=kn(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Vn()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(cc(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=pc&&(s-=o)}return{width:s,height:c,x:l,y:u}}function hc(e,t){let n=sc(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=rc(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function gc(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=mc(e,n,t);else if(t===`document`)r=fc(kn(e));else if(G(t))r=hc(t,n);else{let n=ac(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ta(r)}function _c(e,t){let n=t.get(e);if(n)return n;let r=Kn(e,[],!1).filter(e=>G(e)&&U(e)!==`body`),i=null,a=q(e).position===`fixed`,o=a?Wn(e):e;for(;G(o)&&!Hn(o);){let e=q(o),t=zn(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Wn(o)}return t.set(e,r),r}function vc(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Pn(t)?[]:_c(t,this._c):[].concat(n),r],o=gc(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=gc(t,a[e],i);s=ea(n.top,s),c=$i(n.right,c),l=$i(n.bottom,l),u=ea(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function yc(e){let{width:t,height:n}=tc(e);return{width:t,height:n}}function bc(e,t,n){let r=K(t),i=kn(t),a=n===`fixed`,o=sc(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ra(0);if((r||!a)&&((U(t)!==`body`||Mn(i))&&(s=Un(t)),r)){let e=sc(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=cc(i));let l=i&&!r&&!a?lc(i,s):ra(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function xc(e){return q(e).position===`static`}function Sc(e,t){if(!K(e)||q(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return kn(e)===n&&(n=n.ownerDocument.body),n}function Cc(e,t){let n=W(e);if(Pn(e))return n;if(!K(e)){let t=Wn(e);for(;t&&!Hn(t);){if(G(t)&&!xc(t))return t;t=Wn(t)}return n}let r=Sc(e,t);for(;r&&Nn(r)&&xc(r);)r=Sc(r,t);return r&&Hn(r)&&xc(r)&&!zn(r)?n:r||Bn(e)||n}var wc=async function(e){let t=this.getOffsetParent||Cc,n=this.getDimensions,r=await n(e.floating);return{reference:bc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Tc(e){return q(e).direction===`rtl`}var Ec={convertOffsetParentRelativeRectToViewportRelativeRect:uc,getDocumentElement:kn,getClippingRect:vc,getOffsetParent:Cc,getElementRects:wc,getClientRects:dc,getDimensions:yc,getScale:rc,isElement:G,isRTL:Tc};function Dc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Oc(e,t,n){let r=null,i,a=kn(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=na(d),h=na(a.clientWidth-(u+f)),g=na(a.clientHeight-(d+p)),_=na(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:ea(0,$i(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Dc(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=W(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function kc(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=nc(e),u=i||a?[...l?Kn(l):[],...t?Kn(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Oc(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?sc(e):null;c&&g();function g(){let t=sc(e);h&&!Dc(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Ac=Zs,jc=Qs,Mc=Gs,Nc=ec,Pc=Js,Fc=Ws,Ic=$s,Lc=(e,t,n)=>{let r=new Map,i=n??{},a={...Ec,...i.platform,_c:r};return Us(e,t,{...i,platform:a})},Rc=typeof document<`u`?F.useLayoutEffect:function(){};function zc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!zc(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!zc(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Bc(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vc(e,t){let n=Bc(e);return Math.round(t*n)/n}function Hc(e){let t=F.useRef(e);return Rc(()=>{t.current=e}),t}function Uc(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=F.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=F.useState(r);zc(f,r)||p(r);let[m,h]=F.useState(null),[g,_]=F.useState(null),v=F.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=F.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=F.useRef(null),C=F.useRef(null),w=F.useRef(u),T=c!=null,E=Hc(c),D=Hc(i),ee=Hc(l),O=F.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Lc(S.current,C.current,e).then(e=>{let t={...e,isPositioned:ee.current!==!1};k.current&&!zc(w.current,t)&&(w.current=t,or.flushSync(()=>{d(t)}))})},[f,t,n,D,ee]);Rc(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let k=F.useRef(!1);Rc(()=>(k.current=!0,()=>{k.current=!1}),[]),Rc(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,O);O()}},[b,x,O,E,T]);let A=F.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),j=F.useMemo(()=>({reference:b,floating:x}),[b,x]),M=F.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=Vc(j.floating,u.x),r=Vc(j.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Bc(j.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,j.floating,u.x,u.y]);return F.useMemo(()=>({...u,update:O,refs:A,elements:j,floatingStyles:M}),[u,O,A,j,M])}var Wc=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Fc({element:r.current,padding:i}).fn(n):r?Fc({element:r,padding:i}).fn(n):{}}}},Gc=(e,t)=>{let n=Ac(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kc=(e,t)=>{let n=jc(e);return{name:n.name,fn:n.fn,options:[e,t]}},qc=(e,t)=>({fn:Ic(e).fn,options:[e,t]}),Jc=(e,t)=>{let n=Mc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yc=(e,t)=>{let n=Nc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xc=(e,t)=>{let n=Pc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Zc=(e,t)=>{let n=Wc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Qc=F.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=Po({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,L.jsxs)(F.Fragment,{children:[l,c&&or.createPortal(n,c)]})}),$c=F.createContext(void 0);function el(){return F.useContext($c)?.direction??`ltr`}function tl(e){return at(19)?e:e?`true`:void 0}var nl=()=>{let[e,t]=(0,F.useState)(typeof document<`u`);return(0,F.useEffect)(()=>{e||t(!0)},[]),e},rl=`data-valid`,il=`data-invalid`,al={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},ol={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},sl={disabled:!1,...ol},cl={valid(e){return e===null?null:e?{[rl]:``}:{[il]:``}}},ll={invalid:void 0,name:void 0,validityData:{state:al,errors:[],error:``,value:``,initialValue:null},setValidityData:B,disabled:void 0,setTouched:B,setDirty:B,setFilled:B,setFocused:B,focusOwnerRef:{current:void 0},validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:sl,registerFieldControl:B,validation:{getValidationProps:(e,t=V)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:B,getInputControl:()=>null,commit:async()=>{},change:B}},ul=F.createContext(ll);function dl(e=!0){let t=F.useContext(ul);if(t.setValidityData===B&&!e)throw Error(Ze(28));return t}function fl(e,t,n){let{setFocused:r,focusOwnerRef:i}=dl(),a=z(t=>{(t?!e:i.current===a)&&(i.current=t&&a,n?.(t),r(t))});return H(()=>{let e=t.current;return e?.getRootNode()?.activeElement===e&&a(!0),()=>a(!1)},[e,t,a]),a}function pl(e,t,n,r,i=!0,a){let{registerFieldControl:o}=dl(),s=R(()=>Symbol());H(()=>{let c=s.current;i?o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}):o(c,void 0)},[e,i,r,t,a,o,s,n]),H(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var ml=F.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:B,validationMode:`onSubmit`,submitCountRef:{current:0}});function hl(){return F.useContext(ml)}var gl=F.createContext({controlId:void 0,registerControlId:B,resetControlId:B,labelId:void 0,setLabelId:B,messageIds:[],setMessageIds:B,getDescriptionProps:e=>e});function _l(){return F.useContext(gl)}function vl(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=_l(),o=Lt(),s=R(()=>Symbol()),c=F.useRef(!1),l=F.useRef(!1),u=z(()=>{c.current&&i!==B&&(c.current=!1,i(s.current,void 0))});return H(()=>{if(!n||i===B){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}e===void 0?u():(c.current=!0,i(s.current,e))},[t,n,i,a,o,s,u]),H(()=>u,[u]),(n?r:void 0)??t??o}function yl(e,t){let n=F.useRef(e),r=z(t);H(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}var bl=e=>typeof e==`object`&&!!e,xl=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Sl=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Cl=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function wl(e,t,n,r){return e===t&&n===r?p:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Cl(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Cl(s+1e-7,e,n)-i-r)}return Cl(s,t,r)}}var Tl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,El=e=>t=>1-e(1-t),Dl=wl(.33,1.53,.69,.99),Ol=El(Dl),kl=Tl(Ol),Al=e=>e>=1?1:(e*=2)<1?.5*Ol(e):.5*(2-2**(-10*(e-1))),jl=e=>1-Math.sin(Math.acos(e)),Ml=El(jl),Nl=Tl(jl),Pl=wl(.42,0,1,1),Fl=wl(0,0,.58,1),Il=wl(.42,0,.58,1),Ll=e=>Array.isArray(e)&&typeof e[0]!=`number`,Rl={linear:p,easeIn:Pl,easeInOut:Il,easeOut:Fl,circIn:jl,circInOut:Nl,circOut:Ml,backIn:Ol,backInOut:kl,backOut:Dl,anticipate:Al},zl=e=>typeof e==`string`,Bl=e=>{if(y(e)){S(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return wl(t,n,r,i)}return zl(e)?(S(Rl[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),Rl[e]):e};function Vl(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Hl({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Vl(s,r,e+1/3),a=Vl(s,r,e),o=Vl(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Ul(e,t){return n=>n>0?t:e}var Wl=(e,t,n)=>e+(t-e)*n,Gl=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Kl=[u,l,ae],ql=e=>Kl.find(t=>t.test(e));function Jl(e){let t=ql(e);if(!t)return f(!1,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!1;let n=t.parse(e);return t===ae&&(n=Hl(n)),n}var Yl=(e,t)=>{let n=Jl(e),r=Jl(t);if(!n||!r)return Ul(e,t);let i={...n};return e=>(i.red=Gl(n.red,r.red,e),i.green=Gl(n.green,r.green,e),i.blue=Gl(n.blue,r.blue,e),i.alpha=Wl(n.alpha,r.alpha,e),l.transform(i))},Xl=new Set([`none`,`hidden`]);function Zl(e,t){return Xl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ql(e,t){return n=>Wl(e,t,n)}function $l(e){return typeof e==`number`?Ql:typeof e==`string`?v(e)?Ul:ie.test(e)?Yl:ru:Array.isArray(e)?eu:typeof e==`object`?ie.test(e)?Yl:tu:Ul}function eu(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>$l(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function tu(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=$l(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function nu(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var ru=(e,t)=>{let n=ee.createTransformer(t),r=O(e),i=O(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Xl.has(e)&&!i.values.length||Xl.has(t)&&!r.values.length?Zl(e,t):xl(eu(nu(r,i),i.values),n):(f(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,`complex-values-different`),Ul(e,t))},iu=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function au(e,t){let n=iu.exec(e);if(!n)return;let r=iu.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>d(Wl(a,o,e))+i}function ou(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return Wl(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=au(e,t);if(n)return n}return $l(e)(e,t)}var su=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>D.update(t,e),stop:()=>E(t),now:()=>_.isProcessing?_.timestamp:m.now()}},cu=2e4;function lu(e,t=50,n=cu,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function uu(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(lu(o),cu);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:c(s)}}var Q={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},du=e=>e<0?1/Math.max(1+e,Q.minDamping):Math.max(1-e,Q.minDamping);function fu(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return hu(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function pu(e,t){return e*Math.sqrt(1-t*t)}var mu=12;function hu(e,t,n){let r=n;for(let n=1;n<mu;n++)r-=e(r)/t(r);return r}var gu=.001;function _u({duration:e=Q.duration,bounce:t=Q.bounce}){let n,r;f(e<=x(Q.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let i=du(t);e=g(Q.minDuration,Q.maxDuration,c(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=pu(t,i),o=Math.exp(-r);return gu-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=pu(t*t,i);return(-n(t)+gu>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=hu(n,r,a),s=o*fu(i,o*e),l=s*s;return{stiffness:l,damping:i*2*Math.sqrt(l),duration:x(e)}}var vu=(e,t)=>(t?e>=0:e>0)&&e<1/0;function yu(e,t){if(vu(e,t))return e}function bu(e){let t=yu(e.stiffness),n=yu(e.damping,!0),r=yu(e.mass),i={...e,stiffness:t??Q.stiffness,damping:n??Q.damping,mass:r??Q.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=du(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*fu(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,_u(i)),i.isResolvedFromDuration=!0;vu(i.stiffness)&&vu(i.damping,!0)||(i.stiffness=Q.stiffness,i.damping=Q.damping)}return i}function xu(e=Q.visualDuration,t=Q.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:l,duration:u,isResolvedFromDuration:d,isTimeDefined:f}=bu({...n}),p=e=>f?0:-c(e),m=s/(2*Math.sqrt(o*l)),h=c(Math.sqrt(o/l)),g=m*h,_={target:i,delta:i-r,velocity:p(n.velocity||0)||0,restSpeed:0,restDelta:0},v=()=>{let e=Math.abs(_.delta)<5;_.restSpeed=n.restSpeed||(e?Q.restSpeed.granular:Q.restSpeed.default),_.restDelta=n.restDelta||(e?Q.restDelta.granular:Q.restDelta.default)};v();let y,b,S;if(m<1){let e=pu(h,m),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};S=()=>{t.A=(_.velocity+g*_.delta)/e,t.sinC=g*t.A+_.delta*e,t.cosC=g*_.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-g*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};y=e=>(n(e),_.target-t.env*(t.A*t.sin+_.delta*t.cos)),b=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(m===1){y=e=>_.target-Math.exp(-h*e)*(_.delta+(_.velocity+h*_.delta)*e);let e={C:0};S=()=>{e.C=_.velocity+h*_.delta},b=t=>Math.exp(-h*t)*(h*e.C*t-_.velocity)}else{let e=h*Math.sqrt(m*m-1),t=g-e,n=g+e,r=f?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-g*(t-r):-e*t),a={S:0,F:0};S=()=>{let t=(_.velocity+g*_.delta)/e;a.S=(_.delta+t)/2,a.F=(_.delta-t)/2},y=e=>_.target-a.S*i(t,e)-a.F*i(n,e),b=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}S();let C=d&&u||null,w={calculatedDuration:C,retarget:(e,t)=>{_.target=e[e.length-1],_.delta=_.target-e[0],_.velocity=p(t),n.restSpeed&&n.restDelta||v(),w.calculatedDuration=C,a.done=!1,S()},velocity:e=>x(b(e)),next:e=>{let t=y(e);if(d)a.done=e>=u;else{let n=x(b(e));a.done=Math.abs(n)<=_.restSpeed&&Math.abs(_.target-t)<=_.restDelta}return a.value=a.done?_.target:t,a},toString:()=>{let e=Math.min(lu(w),cu),t=re(t=>w.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return w}xu.applyToOptions=e=>{let t=uu(e,100,xu);return e.ease=t.ease,e.duration=x(t.duration),e.type=`keyframes`,e};function Su({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=xu({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function Cu(e,t,n){let r=[],i=n||b.mix||ou,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=xl(Array.isArray(t)?t[n]||p:t,a)),r.push(a)}return r}function wu(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(S(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Cu(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Sl(e[r],e[r+1],n);return s[r](i)};return n?t=>l(g(e[0],e[a-1],t)):l}function Tu(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Sl(0,t,r);e.push(Wl(n,1,i))}}function Eu(e){let t=[0];return Tu(t,e.length-1),t}function Du(e,t){return e.map(e=>e*t)}function Ou(e,t){return e.map(()=>t||Il).splice(0,e.length-1)}function ku({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Ll(r)?r.map(Bl):Bl(r)||Il,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(b.mix||ou)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?g(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=wu(Du(n&&n.length===t.length?n:Eu(t),e),t,{ease:Array.isArray(i)?i:Ou(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Au=5;function ju(e,t,n){let r=Math.max(t-Au,0);return oe(n-e(r),t-r)}function Mu(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):ju(t=>e.next(t).value,t,e.next(t).value)}var Nu={decay:Su,inertia:Su,tween:ku,keyframes:ku,spring:xu};function Pu(e){typeof e.type==`string`&&(e.type=Nu[e.type])}var Fu=40,Iu=(e,t)=>t-e>Fu&&!b.useManualTiming?t:e,Lu=e=>e/100,Ru=e=>Math.round(e*1e4)/1e4,zu=class extends M{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==m.now()&&this.tick(m.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),ne(this,this.options)}initAnimation(){let{options:e}=this;Pu(e);let{type:t=ku,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||ku;s!==ku&&typeof o[0]!=`number`&&(this.mixKeyframes=xl(Lu,ou(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=lu(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=Iu(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;!d&&i!==null&&(p=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==Su&&(f.value=A(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??Ru((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==Su?A(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=g(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}then(e,t){return this.finished.then(e,t)}get duration(){return c(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+c(e)}get time(){return c(this.currentTime)}set time(e){e=x(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return Mu(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(m.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=c(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=su,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(m.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Bu(e){return new zu(e)}function Vu(e){return bl(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var Hu={floating:1100,modal:1200,toast:1e5,step:10},Uu=0,Wu=0;function Gu(e){return e===`toast`?(Wu=Math.max(Wu,Hu.toast)+Hu.step,Wu):(Uu=Math.max(Uu,Hu[e])+Hu.step,Uu)}function Ku(e,t){let[n,r]=(0,F.useState)(void 0),i=(0,F.useRef)({tier:e,explicit:t,node:null,observer:null,prevOpen:!1}),a=(0,F.useRef)(t);if(i.current.tier=e,i.current.explicit=t,a.current!==void 0&&t===void 0&&i.current.node){let t=i.current.node;if(t.hasAttribute(`data-open`)&&(r(Gu(e)),i.current.prevOpen=!0),!i.current.observer){let e=new MutationObserver(()=>{let e=t.hasAttribute(`data-open`);e&&!i.current.prevOpen&&r(Gu(i.current.tier)),i.current.prevOpen=e});e.observe(t,{attributes:!0,attributeFilter:[`data-open`,`data-closed`]}),i.current.observer=e}}a.current=t;let o=(0,F.useCallback)(e=>{if(e===i.current.node||(i.current.observer?.disconnect(),i.current.observer=null,i.current.node=e,i.current.prevOpen=!1,!e)||i.current.explicit!==void 0)return;let t=()=>{let t=e.hasAttribute(`data-open`);t&&!i.current.prevOpen&&r(Gu(i.current.tier)),i.current.prevOpen=t};t();let n=new MutationObserver(t);n.observe(e,{attributes:!0,attributeFilter:[`data-open`,`data-closed`]}),i.current.observer=n},[]);return(0,F.useEffect)(()=>()=>{i.current.observer?.disconnect()},[]),{zIndex:i.current.explicit??n,ref:o}}var qu=F.createContext(void 0);function Ju(e){let t=F.useContext(qu);if(t===void 0&&!e)throw Error(Ze(69));return t}var Yu=`ArrowUp`,Xu=`ArrowDown`,Zu=`ArrowLeft`,Qu=`ArrowRight`,$u=`Home`,ed=`PageUp`,td=`PageDown`,nd=new Set([Yu,Xu,Zu,Qu,$u,`End`]),rd=[`Shift`,`Control`,`Alt`,`Meta`];function id(e){return K(e)&&e.tagName===`INPUT`}function ad(e){return!!(id(e)&&e.selectionStart!=null||K(e)&&e.tagName===`TEXTAREA`)}function od(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=sd(e,t,`left`),a=cd(e),o=cd(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=sd(e,t,`top`),r=cd(e),i=cd(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function sd(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function cd(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var ld=F.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,L.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),ud={},dd={},fd=``;function pd(e,t){return Mn(e)?e:t}function md(e,t,n){return/hidden|clip/.test(e.getComputedStyle(pd(t,n)).overflowY)}function hd(e){if(typeof document>`u`)return!1;let t=J(e);return W(t).innerWidth-t.documentElement.clientWidth>0}function gd(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=J(e),n=t.documentElement,r=t.body,i=pd(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function _d(e){let t=J(e),n=t.documentElement,r=t.body,i=pd(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function vd(e){let t=J(e),n=t.documentElement,r=t.body,i=W(n),a=0,o=0,s=!1,c=yn.create();if(ai&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,ud={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},fd=n.style.scrollBehavior,dd={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=pd(n,r);s=gd(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,ud),Object.assign(r.style,dd),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=fd)}function d(){u(),c.request(l)}l();let f=Y(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var yd=new class{lockCount=0;restore=null;timeoutLock=nr.create();timeoutUnlock=nr.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=J(e),n=t.documentElement,r=t.body,i=W(n);if(md(i,n,r)){let t=new i.MutationObserver(()=>{md(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=ei||!hd(e);this.restore=a?_d(e):vd(e)}};function bd(e=!0,t=null){H(()=>{if(e)return yd.acquire(t)},[e,t])}var xd=e=>{let{t,locale:n}=Ae();return{locale:n,t:(0,F.useMemo)(()=>e?n=>{let r=t(n),i=e[n];return r===n&&i?i:r}:t,[t,e])}},Sd={"common.clear":`Clear`,"common.cancel":`Cancel`,"common.confirm":`Confirm`,"common.delete":`Delete`,"common.edit":`Edit`,"common.empty":`(empty)`},Cd=F.createContext(void 0);function wd(e){let t=F.useContext(Cd);if(!e&&t===void 0)throw Error(Ze(27));return t}var Td=F.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=wd(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return Tt(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Li,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Ed=F.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=wd(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=Qn({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Rt(Kt,e.nativeEvent))}return Tt(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Dd=F.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=wd(),c=Lt(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),Tt(`p`,e,{ref:t,props:[{id:c},o]})}),Od=F.createContext(void 0);function kd(){let e=F.useContext(Od);if(e===void 0)throw Error(Ze(26));return e}var Ad=`--nested-dialogs`,jd=`data-nested-dialog-open`,Md={...Ii,...Dn,nestedDialogOpen(e){return e?{[jd]:``}:null}},Nd=F.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=wd(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`);kd(),fr({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?os(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=Tt(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...as,hidden:!m,onKeyDown(e){nd.has(e.key)&&e.stopPropagation()},style:{[Ad]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:Md});return(0,L.jsx)($o,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})}),Pd=F.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=wd(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,L.jsx)(Od.Provider,{value:n,children:(0,L.jsxs)(Fo,{ref:t,...r,children:[a&&o===!0&&(0,L.jsx)(ld,{ref:i.context.internalBackdropRef,inert:tl(!s)}),e.children]})}):null});function Fd({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=F.useState(0),[d,f]=F.useState(0),p=l===0,m=ns(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=_i(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||Z(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return bd(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),H(()=>{!r&&!i&&(u(0),f(0))},[r,i]),H(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),_s(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var Id={...zs,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},Ld=class extends As{constructor(e,t,n){let r=new ys,i=Rd(e,r,t,n);super(i,zd(r),Id)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),!t.isCanceled&&(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(ds(this.state,e,t.trigger)))}};function Rd(e,t,n,r=!1){return{...Ns(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function zd(e){return{popupRef:F.createRef(),backdropRef:F.createRef(),internalBackdropRef:F.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Bd(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=wd(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=ss((e,t)=>new Ld({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y},e,t),!0);b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);vs(b,x),hs(b);let{forceUnmount:w}=gs(x,b);F.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,Rt(mn))}),[w,b]);let T=x||S||u!=null;return(0,L.jsxs)(Cd.Provider,{value:b,children:[u&&(0,L.jsx)(cs,{handle:u,store:b}),T&&(0,L.jsx)(Fd,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var Vd=Gr(function(e){return Bd(`dialog`,e)}),Hd=F.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=wd(),c=Lt(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Tt(`h2`,e,{ref:t,props:[{id:c},o]})});function Ud(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Wd(...e){return t=>{let n=!1,r=e.map(e=>{let r=Ud(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Ud(e[t],null)}}}}function Gd(...e){return F.useCallback(Wd(...e),e)}var Kd=class extends F.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Vu(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Vu(e)&&e.offsetWidth||0,r=Vu(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function qd({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,F.useId)(),s=(0,F.useRef)(null),c=(0,F.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,F.useContext)(P),u=Gd(s,a===!1?void 0:e.props?.ref??e?.ref);return(0,F.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`,y=s.current;y.dataset.motionPopId=o;let b=y.ownerDocument,x=b.createElement(`style`);l&&(x.nonce=l);let S=i??b.head;return S.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
30
30
|
[data-motion-pop-id="${o}"] {
|
|
31
31
|
position: absolute !important;
|
|
32
32
|
width: ${e}px !important;
|
|
@@ -34,4 +34,4 @@ import{i as e,t}from"./rolldown-runtime-COiEfhsA.js";import{_ as n,g as r,p as i
|
|
|
34
34
|
${_}px !important;
|
|
35
35
|
${v}px !important;
|
|
36
36
|
}
|
|
37
|
-
`),()=>{s.current?.removeAttribute(`data-motion-pop-id`),S.contains(x)&&S.removeChild(x)}},[t]),(0,L.jsx)(Kd,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:F.cloneElement(e,{ref:u})})}var Jd=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=k(Yd),d=(0,F.useId)(),f=(0,F.useRef)(n),p=(0,F.useRef)(r);N(()=>{f.current=n,p.current=r});let m=!0,h=(0,F.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,F.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),F.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,L.jsx)(qd,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,L.jsx)(j.Provider,{value:h,children:e})};function Yd(){return new Map}function Xd(e=!0){let t=(0,F.useContext)(j);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,F.useId)();(0,F.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,F.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Zd=e=>e.key||``;function Qd(e){let t=[];return F.Children.forEach(e,e=>{(0,F.isValidElement)(e)&&t.push(e)}),t}var $d=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=Xd(o),f=(0,F.useMemo)(()=>Qd(e),[e]),p=o&&!u?[]:f.map(Zd),m=(0,F.useRef)(!0),h=k(()=>new Map),g=(0,F.useRef)(new Set),[_,v]=(0,F.useState)(f),[y,b]=(0,F.useState)(f);N(()=>{o&&!u&&!y.length&&d?.()},[u,o,y.length,d]),N(()=>{m.current=!1;for(let e=0;e<y.length;e++){let t=Zd(y[e]);p.includes(t)?(h.delete(t),g.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[y,p.length,p.join(`-`)]);let x=[];if(f!==_){let e=[...f],t=0;for(let n of y){let r=p.indexOf(Zd(n));r===-1?(e.splice(t++,0,n),x.push(n)):t=r+x.length+1}return x.every(e=>h.get(Zd(e)))?e=f:a===`wait`&&(e=x),b(Qd(e)),v(f),null}let{forceRender:S}=(0,F.useContext)(T);return(0,L.jsx)(L.Fragment,{children:y.map(e=>{let _=Zd(e),b=o&&!u?!1:f===y||p.includes(_);return(0,L.jsx)(Jd,{isPresent:b,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:b?void 0:()=>{if(g.current.has(_))return;if(h.has(_))g.current.add(_),h.set(_,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(S?.(),v([]),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},_)})})},ef=(e,t)=>()=>{},tf=[.32,.72,0,1],nf={animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98,transition:{duration:.12,ease:[.4,0,1,1]}},initial:{opacity:0,scale:.97},transition:{duration:.22,ease:tf}},rf={duration:.18,ease:tf},af=(0,F.createContext)(null),of=()=>(0,F.use)(af),sf=af.Provider,cf=w({block:`modal`,dataAttributes:[`draggable`,`fullscreen`],elements:[`trigger`,`backdrop`,`viewport`,`wrapper`,`header`,`title`,`description`,`header-actions`,`fullscreen-toggle`,`close`,`content`,`loading`,`footer`]}),$={backdrop:{kpwlN0:`lb10a8y8t`,kmkexE:`lb11o4mfb`,kWkggS:`lb2643`,kSiTet:`lb1i2unn7`,kVAEAm:`lbixxii4`,kY2c9j:`lb1i7x82i`,$$css:!0},close:{k87sOh:`lbfr5jun`,kt4wiu:`lb9q68il`,kVAEAm:`lb10l6tqk`,$$css:!0},closeInline:{kVAM5u:`lb181nr7w`,kaIpWk:`lb4pepcl`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lb1ri6zej`,kMwMTN:`lb53gy9q lb1bxu9lh`,kmkexE:`lbxgdrqz`,kkrTdU:`lb1ypdohk`,k3aq6I:`lbcum6zn`,k1xSpc:`lb78zum5`,kGNEyG:`lb6s0dn4`,kjj79g:`lbl56j7k`,kZKoxP:`lb10w6t97`,kmVPX3:`lb1717udv`,kzqmXN:`lb1td3qas`,$$css:!0},content:{kg3NbH:`lb1hr3lfm`,kGO01o:`lb1l90r2v`,kLKAdn:`lbexx8yu`,kXHlph:`lb6ikm8r`,kORKVm:`lb1odjw0f`,$$css:!0},contentNoHeader:{kLKAdn:`lbyamay9`,$$css:!0},denyAnimation:{k44tkh:`lbb8lv0f`,kKVMdj:`lbe2vv0f`,kyAemX:`lb1bx5ho5`,$$css:!0},footer:{kOIVth:`lb167g77z`,k8WAf4:`lb10dr8xq`,kg3NbH:`lb1hr3lfm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb13a6bvl`,$$css:!0},fullscreenPopupInner:{kZKoxP:`lb1mkwkuc`,kskxy:`lb1bsd8ea`,ks0D6T:`lbc408io`,kzqmXN:`lb1ng3b2o`,$$css:!0},fullscreenToggle:{kVAM5u:`lb181nr7w`,kaIpWk:`lb4pepcl`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lb1ri6zej`,kMwMTN:`lb53gy9q lb1bxu9lh`,kmkexE:`lbxgdrqz`,kkrTdU:`lb1ypdohk`,k3aq6I:`lbcum6zn`,k1xSpc:`lb78zum5`,kGNEyG:`lb6s0dn4`,kjj79g:`lbl56j7k`,kZKoxP:`lb1fgtraw`,kmVPX3:`lb1717udv`,kzqmXN:`lbgd8bvy`,$$css:!0},header:{k8WAf4:`lb1vvogim`,kg3NbH:`lb1hr3lfm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb1qughib`,kAzted:`lb1wxaq2x`,$$css:!0},headerActions:{kOIVth:`lb1jnr06f`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,k71WvV:`lb1lxpwgx`,$$css:!0},headerDraggable:{kkrTdU:`lbt0e3qv`,kfSwDN:`lb87ps6o`,$$css:!0},loading:{k8WAf4:`lbd11lqx`,kg3NbH:`lbnjsko4`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,$$css:!0},loadingSpinner:{kVAM5u:`lb181nr7w`,kaIpWk:`lb16rqkct`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbdh2fpr`,k44tkh:`lbdz8niu`,ko0y90:`lba4qsjk`,kKVMdj:`lb1v0ides`,kyAemX:`lb1esw782`,kLZC3w:`lb1v8p93f`,k1xSpc:`lb1rg5ohu`,kZKoxP:`lb1v9usgg`,kzqmXN:`lb6jxa94`,$$css:!0},loadingSpinnerLarge:{kZKoxP:`lbxk0z11`,kzqmXN:`lbvy4d1p`,$$css:!0},popup:{kpwlN0:`lb10a8y8t`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,kfzvcC:`lb47corl`,kVAEAm:`lbixxii4`,kY2c9j:`lb1mblwae`,$$css:!0},popupInner:{kaIpWk:`lb4pepcl`,kVQacm:`lbb3r6kr`,kWkggS:`lb1w937bt`,kGVxlE:`lb4hq661`,kB7OPa:`lb9f619`,k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,kSiTet:`lb1i2unn7`,kfzvcC:`lb67bb7w`,kVAEAm:`lb1n2onr6`,k3aq6I:`lbg71pz7 lb1htj8e4`,kIyJzY:`lb1ofcnca lb16bar5h`,k1ekBW:`lbwcsmn1`,kAMwcw:`lbmea1ks lb1gcu4m7`,kskxy:`lbw2jzks`,ks0D6T:`lb1lwm3bp`,kzqmXN:`lbkxa9zd`,$$css:!0},title:{kogj98:`lb1ghz6dp`,kMwMTN:`lb66ogz0`,kGuDYH:`lbif65rj`,k63SB2:`lb1s688f`,kLWn49:`lb37zpob`,$$css:!0},viewport:{kpwlN0:`lb10a8y8t`,kVQacm:`lbysyzu8`,kVAEAm:`lbixxii4`,kY2c9j:`lb1i7x82i`,$$css:!0}},lf=(e,t,r)=>{let i=h(n(e).className,r);return typeof t==`function`?e=>h(i,t(e)):h(i,t)},uf=(0,F.createContext)(null),df=(0,F.createContext)(null),ff=()=>(0,F.use)(uf),pf=()=>(0,F.use)(df),mf=({open:e,children:t,onExitComplete:n,zIndex:r,...i})=>{let[a,o]=(0,F.useState)(!!e);(0,F.useEffect)(()=>{e&&o(!0)},[e]);let s=(0,F.useCallback)(()=>{o(!1),n?.()},[n]),c=(0,F.useMemo)(()=>({onExitComplete:s}),[s]),{zIndex:l,ref:u}=Ku(`modal`,r),d=(0,F.useMemo)(()=>({popupRef:u,zIndex:l}),[l,u]);return a?(0,L.jsx)(uf,{value:e,children:(0,L.jsx)(df,{value:c,children:(0,L.jsx)(sf,{value:d,children:(0,L.jsx)(Vd,{modal:!0,open:!0,...i,children:t})})})}):null},hf=({zIndex:e,children:t,...n})=>{let{zIndex:r,ref:i}=Ku(`modal`,e),a=(0,F.useMemo)(()=>({popupRef:i,zIndex:r}),[r,i]);return(0,L.jsx)(sf,{value:a,children:(0,L.jsx)(Vd,{modal:!0,...n,children:t})})},gf=({open:e,onExitComplete:t,...n})=>e===void 0?(0,L.jsx)(hf,{...n}):(0,L.jsx)(mf,{open:e,onExitComplete:t,...n}),_f=({container:e,...t})=>{let n=ve();return(0,L.jsx)(Pd,{container:e??n??void 0,...t})},vf=({className:e,style:t,...r})=>{let i=ff(),a=of(),o=fe(),s=a?.zIndex===void 0?void 0:{zIndex:a.zIndex};return i===null?(0,L.jsx)(Td,{...r,style:{...s,...t},className:lf($.backdrop,e,cf(`backdrop`))}):(0,L.jsx)(Td,{...r,style:{...s,...t,transition:`none`},className:h(n($.backdrop).className,cf(`backdrop`),e),render:(0,L.jsx)(o.div,{animate:{opacity:+!!i},initial:{opacity:0},transition:rf})})},yf=({className:e,children:t,width:r,style:i,motionProps:a,panelClassName:o,panelData:s,panelXstyle:c,popupStyle:l,ref:u,xstyle:d,...f})=>{let p=ff(),m=pf(),g=of(),_=fe(),v=g?.zIndex===void 0?void 0:{zIndex:g.zIndex+1},y=Br([u,g?.popupRef]);return p!==null&&m?(0,L.jsx)(Nd,{...f,ref:y,style:{...v,...l},className:h(n($.popup,d).className,cf(`wrapper`),e),children:(0,L.jsx)($d,{onExitComplete:m.onExitComplete,children:p?(0,L.jsx)(_.div,{...nf,...a,...s,style:{maxWidth:r??void 0,transition:`none`,...i},className:h(n($.popupInner,c).className,cf(),o),children:t},`modal-popup-panel`):null})}):(0,L.jsx)(Nd,{...f,ref:y,style:{...v,...l},className:lf([$.popup,d],e,cf(`wrapper`)),children:(0,L.jsx)(`div`,{...s,...je([$.popupInner,c],h(cf(),o),{maxWidth:r??void 0,...i}),children:t})})},bf=yf,xf=({className:e,style:t,xstyle:n,...r})=>(0,L.jsx)(`div`,{...r,...je([$.header,n],h(cf(`header`),e),t)}),Sf=xf,Cf=({className:e,xstyle:t,...n})=>(0,L.jsx)(Hd,{...n,className:lf([$.title,t],e,cf(`title`))}),wf=({className:e,...t})=>(0,L.jsx)(Dd,{...t,className:lf(void 0,e,cf(`description`))}),Tf=({className:e,style:t,xstyle:n,...r})=>(0,L.jsx)(`div`,{...r,...je([$.content,n],h(cf(`content`),e),t)}),Ef=({className:e,style:t,xstyle:n,...r})=>(0,L.jsx)(`div`,{...r,...je([$.footer,n],h(cf(`footer`),e),t)}),Df=({className:e,children:t,xstyle:n,...r})=>(0,L.jsx)(Ed,{...r,className:lf([$.closeInline,$.close,Me.info,n],e,cf(`close`)),children:t??(0,L.jsx)(vr,{size:16})}),Of=(0,F.createContext)({close:()=>void 0,setCanDismissByClickOutside:()=>void 0}),kf=()=>(0,F.use)(Of),Af=({children:e,root:t})=>{let n=ve(),r=t??n??document.body;return(0,or.createPortal)(e,r)},jf=({config:e})=>{let{close:t}=kf(),[n,r]=(0,F.useState)(!1),{cancelText:i=`Cancel`,content:a,okButtonProps:o,okText:s=`OK`,onCancel:c,onOk:l}=e,u=(0,F.useCallback)(()=>{t(),c?.()},[t,c]),d=(0,F.useCallback)(async()=>{if(l)try{let e=l();e&&typeof e.then==`function`&&(r(!0),await e,r(!1))}catch{r(!1);return}t()},[t,l]);return(0,L.jsxs)(L.Fragment,{children:[a&&(0,L.jsx)(`div`,{style:{padding:`12px 16px`},children:a}),(0,L.jsxs)(Ef,{children:[(0,L.jsx)(Lr,{onClick:u,children:i}),(0,L.jsx)(Lr,{loading:n,type:`primary`,...o,onClick:d,children:s})]})]})};jf.displayName=`ConfirmBody`;var Mf=0;function Nf(){let e=Mf++,t=e===0?`BaseModalHost`:`BaseModalHost-${e}`,n=[],r=0,i=new Set,a=()=>i.forEach(e=>e()),o=e=>(i.add(e),()=>i.delete(e)),s=[],c=()=>n,l=()=>s,u=(e,t)=>{let r=!1;n=n.map(n=>n.id===e?(r=!0,{...n,props:{...n.props,...t}}):n),r&&a()},d=e=>{u(e,{open:!1})},f=e=>{let t=n.filter(t=>t.id!==e);t.length!==n.length&&(n=t,a())},p=(0,F.memo)(({entry:e})=>{let{id:t,props:n}=e,{children:r,classNames:i,content:a,footer:o,maskClosable:s,onOpenChange:c,onOpenChangeComplete:l,open:p,styles:m,title:h,width:g}=n,_=p??!0,v=(0,F.useCallback)((e,n)=>{(e||s!==!1||n?.reason!==`outside-press`)&&(e||d(t),c?.(e))},[t,s,c]),y=(0,F.useCallback)(()=>{l?.(!1),f(t)},[t,l]),b=(0,F.useCallback)(()=>d(t),[t]),x=(0,F.useCallback)(e=>u(t,{maskClosable:e}),[t]),S=h!==void 0&&h!==!1&&h!==null;return(0,L.jsx)(Of,{value:{close:b,setCanDismissByClickOutside:x},children:(0,L.jsx)(gf,{open:_,onExitComplete:y,onOpenChange:v,children:(0,L.jsxs)(_f,{children:[(0,L.jsx)(vf,{className:i?.backdrop,style:m?.backdrop}),(0,L.jsxs)(bf,{className:i?.popup,popupStyle:m?.popup,width:g,children:[S&&(0,L.jsxs)(Sf,{className:i?.header,style:m?.header,children:[(0,L.jsx)(Cf,{className:i?.title,style:m?.title,children:h}),(0,L.jsx)(Df,{className:i?.close,style:m?.close})]}),(0,L.jsx)(Tf,{className:i?.content,style:m?.content,xstyle:!S&&$.contentNoHeader,children:a??r}),o]})]})})})});p.displayName=`ModalStackItem`;let m=(0,F.memo)(({stack:e})=>nl()?e.map(e=>(0,L.jsx)(p,{entry:e},e.id)):null);m.displayName=`ModalStackRenderer`;let h=({root:e})=>{let n=(0,F.useSyncExternalStore)(o,c,l),r=nl();return(0,F.useEffect)(()=>{if(!r)return;let n=e??document.body;return ef(t,n)},[r,e]),!r||n.length===0?null:(0,L.jsx)(Af,{root:e,children:(0,L.jsx)(m,{stack:n})})},g=e=>{let t=`base-modal-${Date.now()}-${r++}`;return n=[...n,{id:t,props:{...e,open:e.open??!0}}],a(),{close:()=>d(t),destroy:()=>f(t),setCanDismissByClickOutside:e=>u(t,{maskClosable:e}),update:e=>u(t,e)}};return{ModalHost:h,confirmModal:e=>{let t=g({content:(0,L.jsx)(jf,{config:e}),styles:{content:{padding:0}},title:e.title,width:e.width??420});return{close:t.close,destroy:t.destroy}},createModal:g}}var Pf=Nf(),Ff=Pf.ModalHost,If=Pf.createModal;Pf.confirmModal;var Lf=globalThis;function Rf(e){return Lf.__ryugiEmbedAnchor=e,()=>{Lf.__ryugiEmbedAnchor===e&&(Lf.__ryugiEmbedAnchor=null)}}var zf=e=>Lf.__ryugiEmbedAnchor?.apply(e)??!1;function Bf(e=Date.now()){let t=Lf.__ryugiPendingAnchor;return t&&e<t.until?t.anchor:null}function Vf(){Lf.__ryugiPendingAnchor=null}var Hf=`ryugi:split`;function Uf(e){if(e.parent===e)return!1;try{return e.parent.location.origin===e.location.origin}catch{return!1}}function Wf(e=window){return e.document.documentElement.dataset.ryugiEmbedParent||(Uf(e)?e.location.origin:null)}var Gf=(e=window)=>Wf(e)!==null,Kf=(e=window)=>Uf(e),qf=(e,t=window)=>{let n=Wf(t);n&&t.parent.postMessage({type:Hf,...e},n)},Jf=(e,t)=>e?.postMessage({type:Hf,...t},location.origin);function Yf(e){let t=t=>{let n=document.documentElement.dataset.ryugiEmbedParent,r=!!n&&t.origin===n&&t.source===window.parent;if(t.origin!==location.origin&&!r)return;let i=t.data;i&&i.type===Hf&&e(i,t.source)};return window.addEventListener(`message`,t),()=>window.removeEventListener(`message`,t)}var Xf=640,Zf=(e,t=window)=>e&&(!Uf(t)||t.parent.innerWidth<=Xf),Qf=[{type:`document`,refAttribute:`document`,subTargets:[],splitPane:!0},{type:`artboard`,refAttribute:`artboard`,subTargets:[`group`,`board`],splitPane:!0},{type:`whiteboard`,refAttribute:`whiteboard`,subTargets:[`page`,`frame`],splitPane:!0},{type:`html`,refAttribute:`html`,subTargets:[],splitPane:!0}],$f=Qf.map(e=>e.refAttribute),ep=[...new Set(Qf.flatMap(e=>e.subTargets))],tp=e=>e===`artboard`||e===`whiteboard`,np=Qf.filter(e=>e.splitPane).map(e=>e.type),rp=e=>np.includes(e),ip=[`with`,`kind`,`board`,`group`,`frame`,`wbpage`];function ap(e){let t=new URLSearchParams(e),n=t.get(`with`);if(!n||!a(n))return null;let r=t.get(`kind`);if(r===`document`||r===`html`)return{with:n,kind:r};if(r===`whiteboard`){let e=t.get(`frame`),r=t.get(`wbpage`);return{with:n,kind:`whiteboard`,...e?{frame:e}:r?{page:r}:{}}}let i=t.get(`group`),o=t.get(`board`);return{with:n,...i?{group:i}:o?{board:o}:{}}}function op(e,t){let n=new URLSearchParams(e);for(let e of ip)n.delete(e);t&&(n.set(`with`,t.with),t.kind&&n.set(`kind`,t.kind),t.frame?n.set(`frame`,t.frame):t.page?n.set(`wbpage`,t.page):t.group?n.set(`group`,t.group):t.board&&n.set(`board`,t.board));let r=n.toString();return r?`?${r}`:``}function sp(e,t){if(e.kind!==`artifact`||!rp(e.type))return null;let n=ap(t);return n?{type:e.type,split:n}:null}export{Bu as $,It as $i,Xi as $n,Y as $r,cs as $t,$ as A,pn as Ai,ao as An,ni as Ar,al as At,Yu as B,Bt as Bi,Na as Bn,wr as Br,Gc as Bt,Ef as C,Yt as Ci,Co as Cn,di as Cr,hl as Ct,_f as D,tn as Di,ko as Dn,si as Dr,ul as Dt,yf as E,nn as Ei,Do as En,ci as Er,ll as Et,bd as F,en as Fi,ka as Fn,zr as Fr,Qc as Ft,ed as G,Ut as Gi,ua as Gn,gr as Gr,Ec as Gt,$u as H,on as Hi,oa as Hn,Sr as Hr,Yc as Ht,ld as I,Gt as Ii,Oa as In,Br as Ir,Zc as It,Ju as J,cn as Ji,da as Jn,dr as Jr,Ms as Jt,ad as K,Ht as Ki,wa as Kn,mr as Kr,Ns as Kt,Xu as L,an as Li,Aa as Ln,Lr,Jc as Lt,Xd as M,Xt as Mi,no as Mn,ri as Mr,nl as Mt,Sd as N,Zt as Ni,ja as Nn,Gr as Nr,tl as Nt,gf as O,mn as Oi,lo as On,oi as Or,dl as Ot,xd as P,$t as Pi,Ma as Pn,Kr as Pr,el as Pt,zu as Q,Lt as Qi,Yi as Qn,rr as Qr,as as Qt,Zu as R,rn as Ri,Fa as Rn,Ir as Rr,Xc as Rt,wf as S,Kt as Si,Eo as Sn,pi as Sr,_l as St,bf as T,sn as Ti,Oo as Tn,li as Tr,fl as Tt,rd as U,un as Ui,ca as Un,br as Ur,Uc as Ut,nd as V,Wt as Vi,aa as Vn,Cr as Vr,Kc as Vt,td as W,qt as Wi,fa as Wn,vr as Wr,kc as Wt,Gu as X,Rt as Xi,ta as Xn,ir as Xr,xs as Xt,Ku as Y,hn as Yi,Ta as Yn,cr as Yr,As as Yt,Vu as Z,zt as Zi,Zi as Zn,nr as Zr,ys as Zt,Ff as _,je as _a,xn as _i,Ho as _n,Si as _r,xl as _t,$f as a,at as aa,q as ai,gs as an,Hi as ar,Tu as at,vf as b,ke as ba,gn as bi,Lo as bn,Z as br,vl as bt,Zf as c,Ue as ca,W as ci,vs as cn,Ii as cr,su as ct,Jf as d,V as da,Hn as di,is as dn,Pi as dr,Nl as dt,Mt as ea,Qn as ei,ps as en,qi as er,Ru as et,qf as f,B as fa,jn as fi,rs as fn,Di as fr,Ml as ft,Bf as g,Me as ga,Sn as gi,Wo as gn,xi as gr,Sl as gt,Rf as h,Ne as ha,Cn as hi,Uo as hn,bi as hr,El as ht,op as i,ut as ia,Yn as ii,hs as in,Wi as ir,Eu as it,cf as j,Qt as ji,to as jn,ei as jr,cl as jt,Cf as k,Jt as ki,so as kn,ai as kr,ol as kt,Gf as l,H as la,G as li,ms as ln,Li as lr,Wl as lt,Vf as m,R as ma,wn as mi,$o as mn,Ci as mr,kl as mt,ap as n,Tt as na,J as ni,os as nn,Ui as nr,Pu as nt,ep as o,Qe as oa,Kn as oi,_s as on,Gi as or,xu as ot,zf as p,z as pa,Dn as pi,ns as pn,Oi as pr,Al as pt,od as q,Vt as qi,sa as qn,fr as qr,zs as qt,sp as r,ft as ra,Jn as ri,ds as rn,zi as rr,ku as rt,Kf as s,Ze as sa,Wn as si,ss as sn,Ri as sr,uu as st,tp as t,kt as ta,Zn as ti,fs as tn,Ki as tr,Iu as tt,Yf as u,Be as ua,K as ui,us as un,Fi as ur,Ll as ut,If as v,xe as va,yn as vi,Bo as vn,hi as vr,bl as vt,xf as w,dn as wi,So as wn,fi as wr,pl as wt,Tf as x,ve as xa,ln as xi,Fo as xn,_i as xr,gl as xt,kf as y,Te as ya,bn as yi,Vo as yn,gi as yr,yl as yt,Qu as z,fn as zi,Da as zn,Or as zr,qc as zt};
|
|
37
|
+
`),()=>{s.current?.removeAttribute(`data-motion-pop-id`),S.contains(x)&&S.removeChild(x)}},[t]),(0,L.jsx)(Kd,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:F.cloneElement(e,{ref:u})})}var Jd=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=k(Yd),d=(0,F.useId)(),f=(0,F.useRef)(n),p=(0,F.useRef)(r);N(()=>{f.current=n,p.current=r});let m=!0,h=(0,F.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,F.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),F.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,L.jsx)(qd,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,L.jsx)(j.Provider,{value:h,children:e})};function Yd(){return new Map}function Xd(e=!0){let t=(0,F.useContext)(j);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,F.useId)();(0,F.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,F.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Zd=e=>e.key||``;function Qd(e){let t=[];return F.Children.forEach(e,e=>{(0,F.isValidElement)(e)&&t.push(e)}),t}var $d=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=Xd(o),f=(0,F.useMemo)(()=>Qd(e),[e]),p=o&&!u?[]:f.map(Zd),m=(0,F.useRef)(!0),h=k(()=>new Map),g=(0,F.useRef)(new Set),[_,v]=(0,F.useState)(f),[y,b]=(0,F.useState)(f);N(()=>{o&&!u&&!y.length&&d?.()},[u,o,y.length,d]),N(()=>{m.current=!1;for(let e=0;e<y.length;e++){let t=Zd(y[e]);p.includes(t)?(h.delete(t),g.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[y,p.length,p.join(`-`)]);let x=[];if(f!==_){let e=[...f],t=0;for(let n of y){let r=p.indexOf(Zd(n));r===-1?(e.splice(t++,0,n),x.push(n)):t=r+x.length+1}return x.every(e=>h.get(Zd(e)))?e=f:a===`wait`&&(e=x),b(Qd(e)),v(f),null}let{forceRender:S}=(0,F.useContext)(T);return(0,L.jsx)(L.Fragment,{children:y.map(e=>{let _=Zd(e),b=o&&!u?!1:f===y||p.includes(_);return(0,L.jsx)(Jd,{isPresent:b,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:b?void 0:()=>{if(g.current.has(_))return;if(h.has(_))g.current.add(_),h.set(_,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(S?.(),v([]),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},_)})})},ef=(e,t)=>()=>{},tf=[.32,.72,0,1],nf={animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98,transition:{duration:.12,ease:[.4,0,1,1]}},initial:{opacity:0,scale:.97},transition:{duration:.22,ease:tf}},rf={duration:.18,ease:tf},af=(0,F.createContext)(null),of=()=>(0,F.use)(af),sf=af.Provider,cf=w({block:`modal`,dataAttributes:[`draggable`,`fullscreen`],elements:[`trigger`,`backdrop`,`viewport`,`wrapper`,`header`,`title`,`description`,`header-actions`,`fullscreen-toggle`,`close`,`content`,`loading`,`footer`]}),$={backdrop:{kpwlN0:`lb10a8y8t`,kmkexE:`lb11o4mfb`,kWkggS:`lb2643`,kSiTet:`lb1i2unn7`,kVAEAm:`lbixxii4`,kY2c9j:`lb1i7x82i`,$$css:!0},close:{k87sOh:`lbfr5jun`,kt4wiu:`lb9q68il`,kVAEAm:`lb10l6tqk`,$$css:!0},closeInline:{kVAM5u:`lb181nr7w`,kaIpWk:`lb4pepcl`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lb1ri6zej`,kMwMTN:`lb53gy9q lb1bxu9lh`,kmkexE:`lbxgdrqz`,kkrTdU:`lb1ypdohk`,k3aq6I:`lbcum6zn`,k1xSpc:`lb78zum5`,kGNEyG:`lb6s0dn4`,kjj79g:`lbl56j7k`,kZKoxP:`lb10w6t97`,kmVPX3:`lb1717udv`,kzqmXN:`lb1td3qas`,$$css:!0},content:{kg3NbH:`lb1hr3lfm`,kGO01o:`lb1l90r2v`,kLKAdn:`lbexx8yu`,kXHlph:`lb6ikm8r`,kORKVm:`lb1odjw0f`,$$css:!0},contentNoHeader:{kLKAdn:`lbyamay9`,$$css:!0},denyAnimation:{k44tkh:`lbb8lv0f`,kKVMdj:`lbe2vv0f`,kyAemX:`lb1bx5ho5`,$$css:!0},footer:{kOIVth:`lb167g77z`,k8WAf4:`lb10dr8xq`,kg3NbH:`lb1hr3lfm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb13a6bvl`,$$css:!0},fullscreenPopupInner:{kZKoxP:`lb1mkwkuc`,kskxy:`lb1bsd8ea`,ks0D6T:`lbc408io`,kzqmXN:`lb1ng3b2o`,$$css:!0},fullscreenToggle:{kVAM5u:`lb181nr7w`,kaIpWk:`lb4pepcl`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lb1ri6zej`,kMwMTN:`lb53gy9q lb1bxu9lh`,kmkexE:`lbxgdrqz`,kkrTdU:`lb1ypdohk`,k3aq6I:`lbcum6zn`,k1xSpc:`lb78zum5`,kGNEyG:`lb6s0dn4`,kjj79g:`lbl56j7k`,kZKoxP:`lb1fgtraw`,kmVPX3:`lb1717udv`,kzqmXN:`lbgd8bvy`,$$css:!0},header:{k8WAf4:`lb1vvogim`,kg3NbH:`lb1hr3lfm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lb1qughib`,kAzted:`lb1wxaq2x`,$$css:!0},headerActions:{kOIVth:`lb1jnr06f`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,k71WvV:`lb1lxpwgx`,$$css:!0},headerDraggable:{kkrTdU:`lbt0e3qv`,kfSwDN:`lb87ps6o`,$$css:!0},loading:{k8WAf4:`lbd11lqx`,kg3NbH:`lbnjsko4`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,$$css:!0},loadingSpinner:{kVAM5u:`lb181nr7w`,kaIpWk:`lb16rqkct`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbdh2fpr`,k44tkh:`lbdz8niu`,ko0y90:`lba4qsjk`,kKVMdj:`lb1v0ides`,kyAemX:`lb1esw782`,kLZC3w:`lb1v8p93f`,k1xSpc:`lb1rg5ohu`,kZKoxP:`lb1v9usgg`,kzqmXN:`lb6jxa94`,$$css:!0},loadingSpinnerLarge:{kZKoxP:`lbxk0z11`,kzqmXN:`lbvy4d1p`,$$css:!0},popup:{kpwlN0:`lb10a8y8t`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,kfzvcC:`lb47corl`,kVAEAm:`lbixxii4`,kY2c9j:`lb1mblwae`,$$css:!0},popupInner:{kaIpWk:`lb4pepcl`,kVQacm:`lbb3r6kr`,kWkggS:`lb1w937bt`,kGVxlE:`lb4hq661`,kB7OPa:`lb9f619`,k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,kSiTet:`lb1i2unn7`,kfzvcC:`lb67bb7w`,kVAEAm:`lb1n2onr6`,k3aq6I:`lbg71pz7 lb1htj8e4`,kIyJzY:`lb1ofcnca lb16bar5h`,k1ekBW:`lbwcsmn1`,kAMwcw:`lbmea1ks lb1gcu4m7`,kskxy:`lbw2jzks`,ks0D6T:`lb1lwm3bp`,kzqmXN:`lbkxa9zd`,$$css:!0},title:{kogj98:`lb1ghz6dp`,kMwMTN:`lb66ogz0`,kGuDYH:`lbif65rj`,k63SB2:`lb1s688f`,kLWn49:`lb37zpob`,$$css:!0},viewport:{kpwlN0:`lb10a8y8t`,kVQacm:`lbysyzu8`,kVAEAm:`lbixxii4`,kY2c9j:`lb1i7x82i`,$$css:!0}},lf=(e,t,r)=>{let i=h(n(e).className,r);return typeof t==`function`?e=>h(i,t(e)):h(i,t)},uf=(0,F.createContext)(null),df=(0,F.createContext)(null),ff=()=>(0,F.use)(uf),pf=()=>(0,F.use)(df),mf=({open:e,children:t,onExitComplete:n,zIndex:r,...i})=>{let[a,o]=(0,F.useState)(!!e);(0,F.useEffect)(()=>{e&&o(!0)},[e]);let s=(0,F.useCallback)(()=>{o(!1),n?.()},[n]),c=(0,F.useMemo)(()=>({onExitComplete:s}),[s]),{zIndex:l,ref:u}=Ku(`modal`,r),d=(0,F.useMemo)(()=>({popupRef:u,zIndex:l}),[l,u]);return a?(0,L.jsx)(uf,{value:e,children:(0,L.jsx)(df,{value:c,children:(0,L.jsx)(sf,{value:d,children:(0,L.jsx)(Vd,{modal:!0,open:!0,...i,children:t})})})}):null},hf=({zIndex:e,children:t,...n})=>{let{zIndex:r,ref:i}=Ku(`modal`,e),a=(0,F.useMemo)(()=>({popupRef:i,zIndex:r}),[r,i]);return(0,L.jsx)(sf,{value:a,children:(0,L.jsx)(Vd,{modal:!0,...n,children:t})})},gf=({open:e,onExitComplete:t,...n})=>e===void 0?(0,L.jsx)(hf,{...n}):(0,L.jsx)(mf,{open:e,onExitComplete:t,...n}),_f=({container:e,...t})=>{let n=ve();return(0,L.jsx)(Pd,{container:e??n??void 0,...t})},vf=({className:e,style:t,...r})=>{let i=ff(),a=of(),o=fe(),s=a?.zIndex===void 0?void 0:{zIndex:a.zIndex};return i===null?(0,L.jsx)(Td,{...r,style:{...s,...t},className:lf($.backdrop,e,cf(`backdrop`))}):(0,L.jsx)(Td,{...r,style:{...s,...t,transition:`none`},className:h(n($.backdrop).className,cf(`backdrop`),e),render:(0,L.jsx)(o.div,{animate:{opacity:+!!i},initial:{opacity:0},transition:rf})})},yf=({className:e,children:t,width:r,style:i,motionProps:a,panelClassName:o,panelData:s,panelXstyle:c,popupStyle:l,ref:u,xstyle:d,...f})=>{let p=ff(),m=pf(),g=of(),_=fe(),v=g?.zIndex===void 0?void 0:{zIndex:g.zIndex+1},y=Br([u,g?.popupRef]);return p!==null&&m?(0,L.jsx)(Nd,{...f,ref:y,style:{...v,...l},className:h(n($.popup,d).className,cf(`wrapper`),e),children:(0,L.jsx)($d,{onExitComplete:m.onExitComplete,children:p?(0,L.jsx)(_.div,{...nf,...a,...s,style:{maxWidth:r??void 0,transition:`none`,...i},className:h(n($.popupInner,c).className,cf(),o),children:t},`modal-popup-panel`):null})}):(0,L.jsx)(Nd,{...f,ref:y,style:{...v,...l},className:lf([$.popup,d],e,cf(`wrapper`)),children:(0,L.jsx)(`div`,{...s,...je([$.popupInner,c],h(cf(),o),{maxWidth:r??void 0,...i}),children:t})})},bf=yf,xf=({className:e,style:t,xstyle:n,...r})=>(0,L.jsx)(`div`,{...r,...je([$.header,n],h(cf(`header`),e),t)}),Sf=xf,Cf=({className:e,xstyle:t,...n})=>(0,L.jsx)(Hd,{...n,className:lf([$.title,t],e,cf(`title`))}),wf=({className:e,...t})=>(0,L.jsx)(Dd,{...t,className:lf(void 0,e,cf(`description`))}),Tf=({className:e,style:t,xstyle:n,...r})=>(0,L.jsx)(`div`,{...r,...je([$.content,n],h(cf(`content`),e),t)}),Ef=({className:e,style:t,xstyle:n,...r})=>(0,L.jsx)(`div`,{...r,...je([$.footer,n],h(cf(`footer`),e),t)}),Df=({className:e,children:t,xstyle:n,...r})=>(0,L.jsx)(Ed,{...r,className:lf([$.closeInline,$.close,Me.info,n],e,cf(`close`)),children:t??(0,L.jsx)(vr,{size:16})}),Of=(0,F.createContext)({close:()=>void 0,setCanDismissByClickOutside:()=>void 0}),kf=()=>(0,F.use)(Of),Af=({children:e,root:t})=>{let n=ve(),r=t??n??document.body;return(0,or.createPortal)(e,r)},jf=({config:e})=>{let{close:t}=kf(),[n,r]=(0,F.useState)(!1),{cancelText:i=`Cancel`,content:a,okButtonProps:o,okText:s=`OK`,onCancel:c,onOk:l}=e,u=(0,F.useCallback)(()=>{t(),c?.()},[t,c]),d=(0,F.useCallback)(async()=>{if(l)try{let e=l();e&&typeof e.then==`function`&&(r(!0),await e,r(!1))}catch{r(!1);return}t()},[t,l]);return(0,L.jsxs)(L.Fragment,{children:[a&&(0,L.jsx)(`div`,{style:{padding:`12px 16px`},children:a}),(0,L.jsxs)(Ef,{children:[(0,L.jsx)(Lr,{onClick:u,children:i}),(0,L.jsx)(Lr,{loading:n,type:`primary`,...o,onClick:d,children:s})]})]})};jf.displayName=`ConfirmBody`;var Mf=0;function Nf(){let e=Mf++,t=e===0?`BaseModalHost`:`BaseModalHost-${e}`,n=[],r=0,i=new Set,a=()=>i.forEach(e=>e()),o=e=>(i.add(e),()=>i.delete(e)),s=[],c=()=>n,l=()=>s,u=(e,t)=>{let r=!1;n=n.map(n=>n.id===e?(r=!0,{...n,props:{...n.props,...t}}):n),r&&a()},d=e=>{u(e,{open:!1})},f=e=>{let t=n.filter(t=>t.id!==e);t.length!==n.length&&(n=t,a())},p=(0,F.memo)(({entry:e})=>{let{id:t,props:n}=e,{children:r,classNames:i,content:a,footer:o,maskClosable:s,onOpenChange:c,onOpenChangeComplete:l,open:p,styles:m,title:h,width:g}=n,_=p??!0,v=(0,F.useCallback)((e,n)=>{(e||s!==!1||n?.reason!==`outside-press`)&&(e||d(t),c?.(e))},[t,s,c]),y=(0,F.useCallback)(()=>{l?.(!1),f(t)},[t,l]),b=(0,F.useCallback)(()=>d(t),[t]),x=(0,F.useCallback)(e=>u(t,{maskClosable:e}),[t]),S=h!==void 0&&h!==!1&&h!==null;return(0,L.jsx)(Of,{value:{close:b,setCanDismissByClickOutside:x},children:(0,L.jsx)(gf,{open:_,onExitComplete:y,onOpenChange:v,children:(0,L.jsxs)(_f,{children:[(0,L.jsx)(vf,{className:i?.backdrop,style:m?.backdrop}),(0,L.jsxs)(bf,{className:i?.popup,popupStyle:m?.popup,width:g,children:[S&&(0,L.jsxs)(Sf,{className:i?.header,style:m?.header,children:[(0,L.jsx)(Cf,{className:i?.title,style:m?.title,children:h}),(0,L.jsx)(Df,{className:i?.close,style:m?.close})]}),(0,L.jsx)(Tf,{className:i?.content,style:m?.content,xstyle:!S&&$.contentNoHeader,children:a??r}),o]})]})})})});p.displayName=`ModalStackItem`;let m=(0,F.memo)(({stack:e})=>nl()?e.map(e=>(0,L.jsx)(p,{entry:e},e.id)):null);m.displayName=`ModalStackRenderer`;let h=({root:e})=>{let n=(0,F.useSyncExternalStore)(o,c,l),r=nl();return(0,F.useEffect)(()=>{if(!r)return;let n=e??document.body;return ef(t,n)},[r,e]),!r||n.length===0?null:(0,L.jsx)(Af,{root:e,children:(0,L.jsx)(m,{stack:n})})},g=e=>{let t=`base-modal-${Date.now()}-${r++}`;return n=[...n,{id:t,props:{...e,open:e.open??!0}}],a(),{close:()=>d(t),destroy:()=>f(t),setCanDismissByClickOutside:e=>u(t,{maskClosable:e}),update:e=>u(t,e)}};return{ModalHost:h,confirmModal:e=>{let t=g({content:(0,L.jsx)(jf,{config:e}),styles:{content:{padding:0}},title:e.title,width:e.width??420});return{close:t.close,destroy:t.destroy}},createModal:g}}var Pf=Nf(),Ff=Pf.ModalHost,If=Pf.createModal;Pf.confirmModal;var Lf=globalThis;function Rf(e){return Lf.__ryugiEmbedAnchor=e,()=>{Lf.__ryugiEmbedAnchor===e&&(Lf.__ryugiEmbedAnchor=null)}}var zf=e=>Lf.__ryugiEmbedAnchor?.apply(e)??!1;function Bf(e=Date.now()){let t=Lf.__ryugiPendingAnchor;return t&&e<t.until?t.anchor:null}function Vf(){Lf.__ryugiPendingAnchor=null}var Hf=`ryugi:split`;function Uf(e){if(e.parent===e)return!1;try{return e.parent.location.origin===e.location.origin}catch{return!1}}function Wf(e=window){return e.document.documentElement.dataset.ryugiEmbedParent||(Uf(e)?e.location.origin:null)}var Gf=(e=window)=>Wf(e)!==null,Kf=(e=window)=>Uf(e),qf=(e,t=window)=>{let n=Wf(t);n&&t.parent.postMessage({type:Hf,...e},n)},Jf=(e,t)=>e?.postMessage({type:Hf,...t},location.origin);function Yf(e){let t=t=>{let n=document.documentElement.dataset.ryugiEmbedParent,r=!!n&&t.origin===n&&t.source===window.parent;if(t.origin!==location.origin&&!r)return;let i=t.data;i&&i.type===Hf&&e(i,t.source)};return window.addEventListener(`message`,t),()=>window.removeEventListener(`message`,t)}var Xf=640,Zf=(e,t=window)=>e&&(!Uf(t)||t.parent.innerWidth<=Xf),Qf=[{type:`document`,refAttribute:`document`,subTargets:[],splitPane:!0},{type:`artboard`,refAttribute:`artboard`,subTargets:[`group`,`board`],splitPane:!0},{type:`whiteboard`,refAttribute:`whiteboard`,subTargets:[`page`,`frame`],splitPane:!0},{type:`html`,refAttribute:`html`,subTargets:[],splitPane:!0}],$f=Qf.map(e=>e.refAttribute),ep=[...new Set(Qf.flatMap(e=>e.subTargets))],tp=e=>e===`artboard`||e===`whiteboard`,np=Qf.filter(e=>e.splitPane).map(e=>e.type),rp=e=>np.includes(e),ip=[`with`,`kind`,`board`,`group`,`frame`,`wbpage`];function ap(e){let t=new URLSearchParams(e),n=t.get(`with`);if(!n||!i(n))return null;let r=t.get(`kind`);if(r===`document`||r===`html`)return{with:n,kind:r};if(r===`whiteboard`){let e=t.get(`frame`),r=t.get(`wbpage`);return{with:n,kind:`whiteboard`,...e?{frame:e}:r?{page:r}:{}}}let a=t.get(`group`),o=t.get(`board`);return{with:n,...a?{group:a}:o?{board:o}:{}}}function op(e,t){let n=new URLSearchParams(e);for(let e of ip)n.delete(e);t&&(n.set(`with`,t.with),t.kind&&n.set(`kind`,t.kind),t.frame?n.set(`frame`,t.frame):t.page?n.set(`wbpage`,t.page):t.group?n.set(`group`,t.group):t.board&&n.set(`board`,t.board));let r=n.toString();return r?`?${r}`:``}function sp(e,t){if(e.kind!==`artifact`||!rp(e.type))return null;let n=ap(t);return n?{type:e.type,split:n}:null}export{Bu as $,It as $i,Xi as $n,Y as $r,cs as $t,$ as A,pn as Ai,ao as An,ni as Ar,al as At,Yu as B,Bt as Bi,Na as Bn,wr as Br,Gc as Bt,Ef as C,Yt as Ci,Co as Cn,di as Cr,hl as Ct,_f as D,tn as Di,ko as Dn,si as Dr,ul as Dt,yf as E,nn as Ei,Do as En,ci as Er,ll as Et,bd as F,en as Fi,ka as Fn,zr as Fr,Qc as Ft,ed as G,Ut as Gi,ua as Gn,gr as Gr,Ec as Gt,$u as H,on as Hi,oa as Hn,Sr as Hr,Yc as Ht,ld as I,Gt as Ii,Oa as In,Br as Ir,Zc as It,Ju as J,cn as Ji,da as Jn,dr as Jr,Ms as Jt,ad as K,Ht as Ki,wa as Kn,mr as Kr,Ns as Kt,Xu as L,an as Li,Aa as Ln,Lr,Jc as Lt,Xd as M,Xt as Mi,no as Mn,ri as Mr,nl as Mt,Sd as N,Zt as Ni,ja as Nn,Gr as Nr,tl as Nt,gf as O,mn as Oi,lo as On,oi as Or,dl as Ot,xd as P,$t as Pi,Ma as Pn,Kr as Pr,el as Pt,zu as Q,Lt as Qi,Yi as Qn,rr as Qr,as as Qt,Zu as R,rn as Ri,Fa as Rn,Ir as Rr,Xc as Rt,wf as S,Kt as Si,Eo as Sn,pi as Sr,_l as St,bf as T,sn as Ti,Oo as Tn,li as Tr,fl as Tt,rd as U,un as Ui,ca as Un,br as Ur,Uc as Ut,nd as V,Wt as Vi,aa as Vn,Cr as Vr,Kc as Vt,td as W,qt as Wi,fa as Wn,vr as Wr,kc as Wt,Gu as X,Rt as Xi,ta as Xn,ir as Xr,xs as Xt,Ku as Y,hn as Yi,Ta as Yn,cr as Yr,As as Yt,Vu as Z,zt as Zi,Zi as Zn,nr as Zr,ys as Zt,Ff as _,je as _a,xn as _i,Ho as _n,Si as _r,xl as _t,$f as a,at as aa,q as ai,gs as an,Hi as ar,Tu as at,vf as b,ke as ba,gn as bi,Lo as bn,Z as br,vl as bt,Zf as c,Ue as ca,W as ci,vs as cn,Ii as cr,su as ct,Jf as d,V as da,Hn as di,is as dn,Pi as dr,Nl as dt,Mt as ea,Qn as ei,ps as en,qi as er,Ru as et,qf as f,B as fa,jn as fi,rs as fn,Di as fr,Ml as ft,Bf as g,Me as ga,Sn as gi,Wo as gn,xi as gr,Sl as gt,Rf as h,Ne as ha,Cn as hi,Uo as hn,bi as hr,El as ht,op as i,ut as ia,Yn as ii,hs as in,Wi as ir,Eu as it,cf as j,Qt as ji,to as jn,ei as jr,cl as jt,Cf as k,Jt as ki,so as kn,ai as kr,ol as kt,Gf as l,H as la,G as li,ms as ln,Li as lr,Wl as lt,Vf as m,R as ma,wn as mi,$o as mn,Ci as mr,kl as mt,ap as n,Tt as na,J as ni,os as nn,Ui as nr,Pu as nt,ep as o,Qe as oa,Kn as oi,_s as on,Gi as or,xu as ot,zf as p,z as pa,Dn as pi,ns as pn,Oi as pr,Al as pt,od as q,Vt as qi,sa as qn,fr as qr,zs as qt,sp as r,ft as ra,Jn as ri,ds as rn,zi as rr,ku as rt,Kf as s,Ze as sa,Wn as si,ss as sn,Ri as sr,uu as st,tp as t,kt as ta,Zn as ti,fs as tn,Ki as tr,Iu as tt,Yf as u,Be as ua,K as ui,us as un,Fi as ur,Ll as ut,If as v,xe as va,yn as vi,Bo as vn,hi as vr,bl as vt,xf as w,dn as wi,So as wn,fi as wr,pl as wt,Tf as x,ve as xa,ln as xi,Fo as xn,_i as xr,gl as xt,kf as y,Te as ya,bn as yi,Vo as yn,gi as yr,yl as yt,Qu as z,fn as zi,Da as zn,Or as zr,qc as zt};
|