@malloy-publisher/server 0.0.106 → 0.0.108
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/app/api-doc.yaml +133 -0
- package/dist/app/assets/Chip-DGhbYY0q.js +1 -0
- package/dist/app/assets/Container-B0KHzXKt.js +1 -0
- package/dist/app/assets/DialogTitle-DR48y6tE.js +1 -0
- package/dist/app/assets/Edit-DALFdGEc.js +1 -0
- package/dist/app/assets/FormControlContext-BRoFhJft.js +1 -0
- package/dist/app/assets/HomePage-D_nRraEL.js +3 -0
- package/dist/app/assets/MainPage-B4hVmqCL.js +1 -0
- package/dist/app/assets/MenuItem-_baoLhUG.js +1 -0
- package/dist/app/assets/Modal-BXBDnsg2.js +1 -0
- package/dist/app/assets/ModelPage-BKTJdSxS.js +2 -0
- package/dist/app/assets/MoreVert-CShGo3pe.js +1 -0
- package/dist/app/assets/PackagePage-z3SwXvJf.js +2 -0
- package/dist/app/assets/ProjectPage-jU6PqHcz.js +1 -0
- package/dist/app/assets/RouteError-xhztAFCv.js +1 -0
- package/dist/app/assets/WorkbookPage-BFAQAKC6.js +6 -0
- package/dist/app/assets/index-Bzmq4WOt.js +676 -0
- package/dist/app/assets/index-DIS-Myin.js +420 -0
- package/dist/app/assets/{index-CvbMKVwx.js → index-DoB7q17I.js} +7 -7
- package/dist/app/assets/index.es20-BPDKJ1mC.js +1 -0
- package/dist/app/assets/index.es23-CGcuw-pl.js +2 -0
- package/dist/app/assets/{index.es231-02O061a5.js → index.es297-CXXkvqrk.js} +1 -1
- package/dist/app/assets/{index.es232-DOZR37hD.js → index.es298-Clb9Gx4p.js} +1 -1
- package/dist/app/assets/{index.es235-CwaFVls_.js → index.es301-CvjmNg6I.js} +1 -1
- package/dist/app/assets/{index.es240-BXsCiix7.js → index.es306-BTbwrAfY.js} +1 -1
- package/dist/app/assets/{index.es248-BBXwDGlH.js → index.es314-i9HKymPG.js} +1 -1
- package/dist/app/assets/{index.es249-it6O0zLZ.js → index.es315-ffN5HvPT.js} +1 -1
- package/dist/app/assets/{index.es252-BU8jndoZ.js → index.es318-Dt5n7rl7.js} +1 -1
- package/dist/app/assets/{index.es256-BvZRwMxf.js → index.es322-DarpkShG.js} +1 -1
- package/dist/app/assets/{index.es259-6-xstYpb.js → index.es325-DGXcHkJW.js} +1 -1
- package/dist/app/assets/{index.es262-BDUOVoIz.js → index.es328-OrbxFN0T.js} +1 -1
- package/dist/app/assets/{index.es263-CHueaYAb.js → index.es329-DOg4tLZf.js} +1 -1
- package/dist/app/assets/{index.es277-CbrHqWmX.js → index.es343-B3c-LWee.js} +1 -1
- package/dist/app/assets/{index.es278-CI5gPs5v.js → index.es344-BzlM_qzj.js} +1 -1
- package/dist/app/assets/{index.es279-DH9b__8l.js → index.es345-Bx5jaaik.js} +1 -1
- package/dist/app/assets/{index.es281-CGN0Pl1D.js → index.es347-D4l698Ba.js} +1 -1
- package/dist/app/assets/{index.es286-XRt1U2aU.js → index.es352-CpzIN4Ck.js} +1 -1
- package/dist/app/assets/{index.es288-DSszyNly.js → index.es354-BzQZ7qJD.js} +1 -1
- package/dist/app/assets/{index.es289-xrNpklpB.js → index.es355-DX--h2FO.js} +1 -1
- package/dist/app/assets/{index.es294-B75OnIUq.js → index.es360-Brs4IhQL.js} +1 -1
- package/dist/app/assets/{index.es295-wxT8LaCU.js → index.es361-C_jQQEMZ.js} +1 -1
- package/dist/app/assets/{index.es297-DCQpwhAH.js → index.es363-BZd8QWNz.js} +1 -1
- package/dist/app/assets/{index.es298-Dtm6S7Te.js → index.es364-5Y8szdnr.js} +1 -1
- package/dist/app/assets/{index.es299-CO3NhjF0.js → index.es365-iXnPxtgs.js} +1 -1
- package/dist/app/assets/{index.es302-BNx4kwZQ.js → index.es368-BBVgx6aX.js} +1 -1
- package/dist/app/assets/{index.es304-Cslijulp.js → index.es370-ClbIH95T.js} +1 -1
- package/dist/app/assets/{index.es305-Bj5y75UJ.js → index.es371-DmqxEYIc.js} +1 -1
- package/dist/app/assets/{index.es306-BY9A-bfA.js → index.es372-Bot_-48c.js} +1 -1
- package/dist/app/assets/{index.es312-BOpCGR-W.js → index.es378-B9aRQ00Z.js} +1 -1
- package/dist/app/assets/{index.es313-j4e0V-ax.js → index.es379-DQAEtWxw.js} +1 -1
- package/dist/app/assets/{index.es314-QPXF8A7X.js → index.es380-BBp8E5gV.js} +1 -1
- package/dist/app/assets/{index.es315-BBht-U5W.js → index.es381-Cl0nVZsB.js} +1 -1
- package/dist/app/assets/{index.es317-Ba6bfhqW.js → index.es383-BMW5Mbfn.js} +1 -1
- package/dist/app/assets/{index.es321-BzMKJGft.js → index.es387-Cqwn90T2.js} +1 -1
- package/dist/app/assets/{index.es322-Dsh6cVFT.js → index.es388-BGLiezvQ.js} +1 -1
- package/dist/app/assets/{index.es330-CwhtB6Ga.js → index.es396-Dnto5_1_.js} +1 -1
- package/dist/app/assets/{index.es333-BkIXdkt8.js → index.es399-oYyQuMIn.js} +1 -1
- package/dist/app/assets/{index.es336-CDPSHwok.js → index.es402-C7bOCmc3.js} +1 -1
- package/dist/app/assets/{index.es339-CpmgqEMA.js → index.es405-CgiLlAXi.js} +1 -1
- package/dist/app/assets/{index.es343-DpQJ0N3s.js → index.es409-CTqIYL8X.js} +1 -1
- package/dist/app/assets/{index.es345-Cu1t0B48.js → index.es411-DCscG5n_.js} +1 -1
- package/dist/app/assets/{index.es353-Boayqq8b.js → index.es419-D8w4xXW-.js} +1 -1
- package/dist/app/assets/{index.es354-B25Rulno.js → index.es420-CoY4mPyG.js} +1 -1
- package/dist/app/assets/{index.es361-BbYa_qYT.js → index.es427-DPgNELR1.js} +1 -1
- package/dist/app/assets/{index.es362-BnUI1TJX.js → index.es428-CKGg3G7e.js} +1 -1
- package/dist/app/assets/{index.es372-Din3gmuj.js → index.es438-DLZwD0On.js} +1 -1
- package/dist/app/assets/{index.es376-CAM-NFdA.js → index.es442-CeFC_3kB.js} +1 -1
- package/dist/app/assets/{index.es382-r9NT2hns.js → index.es448-Bkdic4-K.js} +1 -1
- package/dist/app/assets/{index.es387-DWtDDVHa.js → index.es453-BTUy9umd.js} +1 -1
- package/dist/app/assets/{index.es388-Cddokof0.js → index.es454-B-wtdVwd.js} +1 -1
- package/dist/app/assets/{index.es390-BgcDic1S.js → index.es456-DMl0frQV.js} +1 -1
- package/dist/app/assets/{index.es394-Cuad4cFu.js → index.es460-BCFWaHpj.js} +1 -1
- package/dist/app/assets/{index.es396-CQcbzzI_.js → index.es462-CMWboMtJ.js} +1 -1
- package/dist/app/assets/{index.es398-DBUoETTk.js → index.es464-3Yi-DUIC.js} +1 -1
- package/dist/app/assets/{index.es401-D7FZbPq9.js → index.es467-Bhyygz2G.js} +1 -1
- package/dist/app/assets/{index.es402-C5ht0e8l.js → index.es468-HCYOhbfy.js} +1 -1
- package/dist/app/assets/{index.es406-pes6PLHN.js → index.es472-BGdt37JU.js} +1 -1
- package/dist/app/assets/{index.es408-DV2ChDJw.js → index.es474-Cvsrw_ol.js} +1 -1
- package/dist/app/assets/{index.es415-BI_J_S9x.js → index.es481-CQK61FBO.js} +1 -1
- package/dist/app/assets/{index.es417-BNH1K0F3.js → index.es483-_fCFzllD.js} +1 -1
- package/dist/app/assets/{index.es419-DaaHuOeT.js → index.es485-onmvNF-0.js} +1 -1
- package/dist/app/assets/{index.es423-BFNF97RC.js → index.es489-7PLT4DLq.js} +1 -1
- package/dist/app/assets/{index.es433-TWQYaV1h.js → index.es499-C0JWr_xK.js} +1 -1
- package/dist/app/assets/{index.es434-Dhj89L3U.js → index.es500-D41F9-Tw.js} +1 -1
- package/dist/app/assets/{index.es441-9pPCdH1i.js → index.es507-DKp0nulG.js} +1 -1
- package/dist/app/assets/{index.es442-B_JzqX5N.js → index.es508-ilzXBvKZ.js} +1 -1
- package/dist/app/assets/index.es7-C8O8lseo.js +1 -0
- package/dist/app/assets/index.modern-Da9HWSay.js +17 -0
- package/dist/app/assets/{index.umd-DknWdzGi.js → index.umd-BJAbIV_-.js} +61 -61
- package/dist/app/assets/listItemTextClasses-DhilXbg6.js +1 -0
- package/dist/app/index.html +1 -3
- package/dist/server.js +1838 -6280
- package/eslint.config.mjs +16 -3
- package/package.json +10 -10
- package/publisher.config.json +32 -25
- package/src/config.ts +61 -1
- package/src/constants.ts +0 -1
- package/src/controller/connection.controller.ts +2 -2
- package/src/server.ts +73 -13
- package/src/service/connection.ts +25 -15
- package/src/service/package.spec.ts +67 -22
- package/src/service/package.ts +8 -1
- package/src/service/project.ts +13 -31
- package/src/service/project_store.spec.ts +30 -53
- package/src/service/project_store.ts +100 -68
- package/dist/app/assets/index-Bh1cWMgT.js +0 -240
- package/dist/app/assets/index-SM0qJxoC.js +0 -676
- package/dist/app/assets/index.es24-CDJ3b9GD.js +0 -2
- package/dist/app/assets/mui-BL9dYvR2.js +0 -159
- package/dist/app/assets/vendor-c5ypKtDW.js +0 -17
- /package/dist/app/assets/{index.es220-CG6Dc4jp.js → index.es286-CG6Dc4jp.js} +0 -0
- /package/dist/app/assets/{index.es228-DsBKuouk.js → index.es294-DsBKuouk.js} +0 -0
- /package/dist/app/assets/{index.es229-D_z4Izcz.js → index.es295-D_z4Izcz.js} +0 -0
- /package/dist/app/assets/{index.es230-727ZlQH0.js → index.es296-727ZlQH0.js} +0 -0
- /package/dist/app/assets/{index.es233-Dn00JSTd.js → index.es299-Dn00JSTd.js} +0 -0
- /package/dist/app/assets/{index.es234-COJ4H7py.js → index.es300-COJ4H7py.js} +0 -0
- /package/dist/app/assets/{index.es236-Bu5BbsvL.js → index.es302-Bu5BbsvL.js} +0 -0
- /package/dist/app/assets/{index.es237-7O62HKoU.js → index.es303-7O62HKoU.js} +0 -0
- /package/dist/app/assets/{index.es238-BPT9niGB.js → index.es304-BPT9niGB.js} +0 -0
- /package/dist/app/assets/{index.es239-Dhn9LcZ4.js → index.es305-Dhn9LcZ4.js} +0 -0
- /package/dist/app/assets/{index.es241-eg146-Ew.js → index.es307-eg146-Ew.js} +0 -0
- /package/dist/app/assets/{index.es242-Du268qiB.js → index.es308-Du268qiB.js} +0 -0
- /package/dist/app/assets/{index.es243-fje9CFhw.js → index.es309-fje9CFhw.js} +0 -0
- /package/dist/app/assets/{index.es244-BwXTMy5W.js → index.es310-BwXTMy5W.js} +0 -0
- /package/dist/app/assets/{index.es245-3xVqZejG.js → index.es311-3xVqZejG.js} +0 -0
- /package/dist/app/assets/{index.es246-xW4inM5L.js → index.es312-xW4inM5L.js} +0 -0
- /package/dist/app/assets/{index.es247-DHo0CJ0O.js → index.es313-DHo0CJ0O.js} +0 -0
- /package/dist/app/assets/{index.es250-C3t2pwGQ.js → index.es316-C3t2pwGQ.js} +0 -0
- /package/dist/app/assets/{index.es251-DNquZEk8.js → index.es317-DNquZEk8.js} +0 -0
- /package/dist/app/assets/{index.es253-BHOwM8T6.js → index.es319-BHOwM8T6.js} +0 -0
- /package/dist/app/assets/{index.es254-DxSadP1t.js → index.es320-DxSadP1t.js} +0 -0
- /package/dist/app/assets/{index.es255-DbXoA79R.js → index.es321-DbXoA79R.js} +0 -0
- /package/dist/app/assets/{index.es257-Bp6g37R7.js → index.es323-Bp6g37R7.js} +0 -0
- /package/dist/app/assets/{index.es258-sacFqUAJ.js → index.es324-sacFqUAJ.js} +0 -0
- /package/dist/app/assets/{index.es260-C7gG9l05.js → index.es326-C7gG9l05.js} +0 -0
- /package/dist/app/assets/{index.es261-Dsg_Bt_b.js → index.es327-Dsg_Bt_b.js} +0 -0
- /package/dist/app/assets/{index.es264-D9R-vmeu.js → index.es330-D9R-vmeu.js} +0 -0
- /package/dist/app/assets/{index.es265-BPhBrDlE.js → index.es331-BPhBrDlE.js} +0 -0
- /package/dist/app/assets/{index.es266-C-TU5hQ_.js → index.es332-C-TU5hQ_.js} +0 -0
- /package/dist/app/assets/{index.es267-DtFQj3wx.js → index.es333-DtFQj3wx.js} +0 -0
- /package/dist/app/assets/{index.es268-m2LEI-9-.js → index.es334-m2LEI-9-.js} +0 -0
- /package/dist/app/assets/{index.es269-BoXegm-a.js → index.es335-BoXegm-a.js} +0 -0
- /package/dist/app/assets/{index.es270-B9wLZaAG.js → index.es336-B9wLZaAG.js} +0 -0
- /package/dist/app/assets/{index.es271-ClGRhx96.js → index.es337-ClGRhx96.js} +0 -0
- /package/dist/app/assets/{index.es272-DEIpsLCJ.js → index.es338-DEIpsLCJ.js} +0 -0
- /package/dist/app/assets/{index.es273-BgYniUM_.js → index.es339-BgYniUM_.js} +0 -0
- /package/dist/app/assets/{index.es274-COcR7UxN.js → index.es340-COcR7UxN.js} +0 -0
- /package/dist/app/assets/{index.es275-BjQB5zDj.js → index.es341-BjQB5zDj.js} +0 -0
- /package/dist/app/assets/{index.es276-C-nORZOA.js → index.es342-C-nORZOA.js} +0 -0
- /package/dist/app/assets/{index.es280-BX77sIaO.js → index.es346-BX77sIaO.js} +0 -0
- /package/dist/app/assets/{index.es282-B-DoSBHF.js → index.es348-B-DoSBHF.js} +0 -0
- /package/dist/app/assets/{index.es283-bCA53EVm.js → index.es349-bCA53EVm.js} +0 -0
- /package/dist/app/assets/{index.es284-w-ucz2PV.js → index.es350-w-ucz2PV.js} +0 -0
- /package/dist/app/assets/{index.es285-Dayu4EKP.js → index.es351-Dayu4EKP.js} +0 -0
- /package/dist/app/assets/{index.es287-DKXYxT9g.js → index.es353-DKXYxT9g.js} +0 -0
- /package/dist/app/assets/{index.es290-DfxzS6Rs.js → index.es356-DfxzS6Rs.js} +0 -0
- /package/dist/app/assets/{index.es291-SKMF96pI.js → index.es357-SKMF96pI.js} +0 -0
- /package/dist/app/assets/{index.es292-ajMbGru0.js → index.es358-ajMbGru0.js} +0 -0
- /package/dist/app/assets/{index.es293--30QC5Em.js → index.es359--30QC5Em.js} +0 -0
- /package/dist/app/assets/{index.es296-B430Bg39.js → index.es362-B430Bg39.js} +0 -0
- /package/dist/app/assets/{index.es300-CM8KxXT1.js → index.es366-CM8KxXT1.js} +0 -0
- /package/dist/app/assets/{index.es301-B1SYOhNW.js → index.es367-B1SYOhNW.js} +0 -0
- /package/dist/app/assets/{index.es303-DkBy-JyN.js → index.es369-DkBy-JyN.js} +0 -0
- /package/dist/app/assets/{index.es307-BILxekzW.js → index.es373-BILxekzW.js} +0 -0
- /package/dist/app/assets/{index.es308-C5wWYbrZ.js → index.es374-C5wWYbrZ.js} +0 -0
- /package/dist/app/assets/{index.es309-HzYwdGDm.js → index.es375-HzYwdGDm.js} +0 -0
- /package/dist/app/assets/{index.es310-T-Tgc4AT.js → index.es376-T-Tgc4AT.js} +0 -0
- /package/dist/app/assets/{index.es311-ifBTmRxC.js → index.es377-ifBTmRxC.js} +0 -0
- /package/dist/app/assets/{index.es316-BMj5Y0dO.js → index.es382-BMj5Y0dO.js} +0 -0
- /package/dist/app/assets/{index.es318-BjABl1g7.js → index.es384-BjABl1g7.js} +0 -0
- /package/dist/app/assets/{index.es319-xI-RfyKK.js → index.es385-xI-RfyKK.js} +0 -0
- /package/dist/app/assets/{index.es320-ySlJ1b_l.js → index.es386-ySlJ1b_l.js} +0 -0
- /package/dist/app/assets/{index.es323-BQoSv7ci.js → index.es389-BQoSv7ci.js} +0 -0
- /package/dist/app/assets/{index.es324-w8dY5SsB.js → index.es390-w8dY5SsB.js} +0 -0
- /package/dist/app/assets/{index.es325-TU54ms6u.js → index.es391-TU54ms6u.js} +0 -0
- /package/dist/app/assets/{index.es326-DREVFZK8.js → index.es392-DREVFZK8.js} +0 -0
- /package/dist/app/assets/{index.es327-BfivnA6A.js → index.es393-BfivnA6A.js} +0 -0
- /package/dist/app/assets/{index.es328-P4WzXJd0.js → index.es394-P4WzXJd0.js} +0 -0
- /package/dist/app/assets/{index.es329-BAng5TT0.js → index.es395-BAng5TT0.js} +0 -0
- /package/dist/app/assets/{index.es331-B5lbUyaz.js → index.es397-B5lbUyaz.js} +0 -0
- /package/dist/app/assets/{index.es332-mebxcVVE.js → index.es398-mebxcVVE.js} +0 -0
- /package/dist/app/assets/{index.es334-XBlWyCtg.js → index.es400-XBlWyCtg.js} +0 -0
- /package/dist/app/assets/{index.es335-BfCpw3nA.js → index.es401-BfCpw3nA.js} +0 -0
- /package/dist/app/assets/{index.es337-Cc5clBb7.js → index.es403-Cc5clBb7.js} +0 -0
- /package/dist/app/assets/{index.es338-IuBKFhSY.js → index.es404-IuBKFhSY.js} +0 -0
- /package/dist/app/assets/{index.es340-Du5NY7AG.js → index.es406-Du5NY7AG.js} +0 -0
- /package/dist/app/assets/{index.es341-Bvotw-X0.js → index.es407-Bvotw-X0.js} +0 -0
- /package/dist/app/assets/{index.es342-UIAJJxZW.js → index.es408-UIAJJxZW.js} +0 -0
- /package/dist/app/assets/{index.es344-D9-PGadD.js → index.es410-D9-PGadD.js} +0 -0
- /package/dist/app/assets/{index.es346-sdHcTMYB.js → index.es412-sdHcTMYB.js} +0 -0
- /package/dist/app/assets/{index.es347-Ci6OQyBP.js → index.es413-Ci6OQyBP.js} +0 -0
- /package/dist/app/assets/{index.es348-BC5c_5Pe.js → index.es414-BC5c_5Pe.js} +0 -0
- /package/dist/app/assets/{index.es349-Tz6hzZYG.js → index.es415-Tz6hzZYG.js} +0 -0
- /package/dist/app/assets/{index.es350-DB_GagMm.js → index.es416-DB_GagMm.js} +0 -0
- /package/dist/app/assets/{index.es351-DLbgOhZU.js → index.es417-DLbgOhZU.js} +0 -0
- /package/dist/app/assets/{index.es352-B0XVJmRM.js → index.es418-B0XVJmRM.js} +0 -0
- /package/dist/app/assets/{index.es355-shcSOmrb.js → index.es421-shcSOmrb.js} +0 -0
- /package/dist/app/assets/{index.es356-D4Tzg5kh.js → index.es422-D4Tzg5kh.js} +0 -0
- /package/dist/app/assets/{index.es357-Deuh7S70.js → index.es423-Deuh7S70.js} +0 -0
- /package/dist/app/assets/{index.es358-BUEGK8hf.js → index.es424-BUEGK8hf.js} +0 -0
- /package/dist/app/assets/{index.es359-BNioltXt.js → index.es425-BNioltXt.js} +0 -0
- /package/dist/app/assets/{index.es360-JqZropPD.js → index.es426-JqZropPD.js} +0 -0
- /package/dist/app/assets/{index.es363-LKU2TuZ1.js → index.es429-LKU2TuZ1.js} +0 -0
- /package/dist/app/assets/{index.es364-BFLt1xDp.js → index.es430-BFLt1xDp.js} +0 -0
- /package/dist/app/assets/{index.es365-DKykz6zU.js → index.es431-DKykz6zU.js} +0 -0
- /package/dist/app/assets/{index.es366-B3ZDOciz.js → index.es432-B3ZDOciz.js} +0 -0
- /package/dist/app/assets/{index.es367-CSHBycmS.js → index.es433-CSHBycmS.js} +0 -0
- /package/dist/app/assets/{index.es368-BIEUsx6d.js → index.es434-BIEUsx6d.js} +0 -0
- /package/dist/app/assets/{index.es369-B48N-Iqd.js → index.es435-B48N-Iqd.js} +0 -0
- /package/dist/app/assets/{index.es370-BY-TUvya.js → index.es436-BY-TUvya.js} +0 -0
- /package/dist/app/assets/{index.es371-zocC4JxJ.js → index.es437-zocC4JxJ.js} +0 -0
- /package/dist/app/assets/{index.es373-Cza_XSSt.js → index.es439-Cza_XSSt.js} +0 -0
- /package/dist/app/assets/{index.es374-Bg-kzb6g.js → index.es440-Bg-kzb6g.js} +0 -0
- /package/dist/app/assets/{index.es375-DhUJRlN_.js → index.es441-DhUJRlN_.js} +0 -0
- /package/dist/app/assets/{index.es377-C8lEn-DE.js → index.es443-C8lEn-DE.js} +0 -0
- /package/dist/app/assets/{index.es378-DhMKtDLN.js → index.es444-DhMKtDLN.js} +0 -0
- /package/dist/app/assets/{index.es379-CwjWoCRV.js → index.es445-CwjWoCRV.js} +0 -0
- /package/dist/app/assets/{index.es380-CzouJOBO.js → index.es446-CzouJOBO.js} +0 -0
- /package/dist/app/assets/{index.es381-B1bQXN8T.js → index.es447-B1bQXN8T.js} +0 -0
- /package/dist/app/assets/{index.es383-5LuOXUq_.js → index.es449-5LuOXUq_.js} +0 -0
- /package/dist/app/assets/{index.es384-DWJ3fJO_.js → index.es450-DWJ3fJO_.js} +0 -0
- /package/dist/app/assets/{index.es385-DJlmqQ1C.js → index.es451-DJlmqQ1C.js} +0 -0
- /package/dist/app/assets/{index.es386-QhoSD0DR.js → index.es452-QhoSD0DR.js} +0 -0
- /package/dist/app/assets/{index.es389-Be6lgOlo.js → index.es455-Be6lgOlo.js} +0 -0
- /package/dist/app/assets/{index.es391-BJ4Li9vH.js → index.es457-BJ4Li9vH.js} +0 -0
- /package/dist/app/assets/{index.es392-DQVVAn-B.js → index.es458-DQVVAn-B.js} +0 -0
- /package/dist/app/assets/{index.es393-BJGe-b2p.js → index.es459-BJGe-b2p.js} +0 -0
- /package/dist/app/assets/{index.es395-BLhTXw86.js → index.es461-BLhTXw86.js} +0 -0
- /package/dist/app/assets/{index.es397-atvbtKCR.js → index.es463-atvbtKCR.js} +0 -0
- /package/dist/app/assets/{index.es399-DkLiglaE.js → index.es465-DkLiglaE.js} +0 -0
- /package/dist/app/assets/{index.es400-C1w2a3ep.js → index.es466-C1w2a3ep.js} +0 -0
- /package/dist/app/assets/{index.es403-Cf8iN4DR.js → index.es469-Cf8iN4DR.js} +0 -0
- /package/dist/app/assets/{index.es404-COK4E0Yg.js → index.es470-COK4E0Yg.js} +0 -0
- /package/dist/app/assets/{index.es405-BknIz3MU.js → index.es471-BknIz3MU.js} +0 -0
- /package/dist/app/assets/{index.es407-BeQkCIfX.js → index.es473-BeQkCIfX.js} +0 -0
- /package/dist/app/assets/{index.es409-BSxZ-RaX.js → index.es475-BSxZ-RaX.js} +0 -0
- /package/dist/app/assets/{index.es410-C7L56vO4.js → index.es476-C7L56vO4.js} +0 -0
- /package/dist/app/assets/{index.es411-CUnW07Te.js → index.es477-CUnW07Te.js} +0 -0
- /package/dist/app/assets/{index.es412-C1XDQQGZ.js → index.es478-C1XDQQGZ.js} +0 -0
- /package/dist/app/assets/{index.es413-CQjiPCtT.js → index.es479-CQjiPCtT.js} +0 -0
- /package/dist/app/assets/{index.es414-DQ1-QYvQ.js → index.es480-DQ1-QYvQ.js} +0 -0
- /package/dist/app/assets/{index.es416-BbSNqyBO.js → index.es482-BbSNqyBO.js} +0 -0
- /package/dist/app/assets/{index.es418-CB2ApiWb.js → index.es484-CB2ApiWb.js} +0 -0
- /package/dist/app/assets/{index.es420-B_m7g4N7.js → index.es486-B_m7g4N7.js} +0 -0
- /package/dist/app/assets/{index.es421-B6W0miNI.js → index.es487-B6W0miNI.js} +0 -0
- /package/dist/app/assets/{index.es422-BMR_PYu6.js → index.es488-BMR_PYu6.js} +0 -0
- /package/dist/app/assets/{index.es424-Dj6nwHGl.js → index.es490-Dj6nwHGl.js} +0 -0
- /package/dist/app/assets/{index.es425-BpWG_bgh.js → index.es491-BpWG_bgh.js} +0 -0
- /package/dist/app/assets/{index.es426-BVUVsWT6.js → index.es492-BVUVsWT6.js} +0 -0
- /package/dist/app/assets/{index.es427-CAQ2eGtk.js → index.es493-CAQ2eGtk.js} +0 -0
- /package/dist/app/assets/{index.es428-BFOHcciG.js → index.es494-BFOHcciG.js} +0 -0
- /package/dist/app/assets/{index.es429-CdO5JTpU.js → index.es495-CdO5JTpU.js} +0 -0
- /package/dist/app/assets/{index.es430-CJaU5se_.js → index.es496-CJaU5se_.js} +0 -0
- /package/dist/app/assets/{index.es431-DYoNaHQp.js → index.es497-DYoNaHQp.js} +0 -0
- /package/dist/app/assets/{index.es432-m4uW47V2.js → index.es498-m4uW47V2.js} +0 -0
- /package/dist/app/assets/{index.es435-nyqBNV6O.js → index.es501-nyqBNV6O.js} +0 -0
- /package/dist/app/assets/{index.es436-C6j12Q_x.js → index.es502-C6j12Q_x.js} +0 -0
- /package/dist/app/assets/{index.es437-7A4Fjokl.js → index.es503-7A4Fjokl.js} +0 -0
- /package/dist/app/assets/{index.es438-CB0Krxn9.js → index.es504-CB0Krxn9.js} +0 -0
- /package/dist/app/assets/{index.es439-DCE3LsBG.js → index.es505-DCE3LsBG.js} +0 -0
- /package/dist/app/assets/{index.es440-C3FkfJm5.js → index.es506-C3FkfJm5.js} +0 -0
- /package/dist/app/assets/{index.es443-CVw76BM1.js → index.es509-CVw76BM1.js} +0 -0
- /package/dist/app/assets/{index.es444-HnGAYVZD.js → index.es510-HnGAYVZD.js} +0 -0
- /package/dist/app/assets/{index.es445-BVz_zdnA.js → index.es511-BVz_zdnA.js} +0 -0
- /package/dist/app/assets/{index.es446-C3khCPGq.js → index.es512-C3khCPGq.js} +0 -0
- /package/dist/app/assets/{index.es447-D-2ljcwZ.js → index.es513-D-2ljcwZ.js} +0 -0
- /package/dist/app/assets/{index.es448-Cv9koXgw.js → index.es514-Cv9koXgw.js} +0 -0
- /package/dist/app/assets/{index.es449-CD_QflpE.js → index.es515-CD_QflpE.js} +0 -0
- /package/dist/app/assets/{index.es450-DRW-0cLl.js → index.es516-DRW-0cLl.js} +0 -0
- /package/dist/app/assets/{index.es451-C-_shW-Y.js → index.es517-C-_shW-Y.js} +0 -0
- /package/dist/app/assets/{index.es452-LGGdnPYs.js → index.es518-LGGdnPYs.js} +0 -0
- /package/dist/app/assets/{index.es453-C3mMm8J8.js → index.es519-C3mMm8J8.js} +0 -0
- /package/dist/app/assets/{index.es454-BzJJZx-M.js → index.es520-BzJJZx-M.js} +0 -0
- /package/dist/app/assets/{index.es455-BXkSAIEj.js → index.es521-BXkSAIEj.js} +0 -0
- /package/dist/app/assets/{index.es456-BgDCqdQA.js → index.es522-BgDCqdQA.js} +0 -0
- /package/dist/app/assets/{index.es457-C8M2exoo.js → index.es523-C8M2exoo.js} +0 -0
- /package/dist/app/assets/{index.es458-DHJKELXO.js → index.es524-DHJKELXO.js} +0 -0
- /package/dist/app/assets/{index.es459-Cuk6v7N8.js → index.es525-Cuk6v7N8.js} +0 -0
- /package/dist/app/assets/{index.es460-DH5Ifo-i.js → index.es526-DH5Ifo-i.js} +0 -0
- /package/dist/app/assets/{index.es461-E3gJ1_iC.js → index.es527-E3gJ1_iC.js} +0 -0
- /package/dist/app/assets/{index.es462-DAi9KRSo.js → index.es528-DAi9KRSo.js} +0 -0
- /package/dist/app/assets/{index.es463-D7oLnXFd.js → index.es529-D7oLnXFd.js} +0 -0
- /package/dist/app/assets/{index.es464-BfjtVDDH.js → index.es530-BfjtVDDH.js} +0 -0
- /package/dist/app/assets/{index.es465-DnULxvSX.js → index.es531-DnULxvSX.js} +0 -0
- /package/dist/app/assets/{index.es466-CkXjmgJE.js → index.es532-CkXjmgJE.js} +0 -0
- /package/dist/app/assets/{index.es467-CfQXZHmo.js → index.es533-CfQXZHmo.js} +0 -0
- /package/dist/app/assets/{index.es468-DWedfzmr.js → index.es534-DWedfzmr.js} +0 -0
- /package/dist/app/assets/{index.es469-DUszq2jm.js → index.es535-DUszq2jm.js} +0 -0
- /package/dist/app/assets/{index.es470-B7mTdjB0.js → index.es536-B7mTdjB0.js} +0 -0
- /package/dist/app/assets/{index.es471-D5KoaKCx.js → index.es537-D5KoaKCx.js} +0 -0
- /package/dist/app/assets/{index.es472-BfHTSMKl.js → index.es538-BfHTSMKl.js} +0 -0
- /package/dist/app/assets/{index.es473-B0m2ddpp.js → index.es539-B0m2ddpp.js} +0 -0
- /package/dist/app/assets/{index.es474-CyktbL80.js → index.es540-CyktbL80.js} +0 -0
- /package/dist/app/assets/{index.es475-Csfq5Kiy.js → index.es541-Csfq5Kiy.js} +0 -0
- /package/dist/app/assets/{index.es476-CafNBF8u.js → index.es542-CafNBF8u.js} +0 -0
- /package/dist/app/assets/{index.es477-CTRr51gU.js → index.es543-CTRr51gU.js} +0 -0
- /package/dist/app/assets/{index.es478-D4h5O-jR.js → index.es544-D4h5O-jR.js} +0 -0
- /package/dist/app/assets/{index.es479-C39BiMTA.js → index.es545-C39BiMTA.js} +0 -0
- /package/dist/app/assets/{index.es480-Ddv68eIx.js → index.es546-Ddv68eIx.js} +0 -0
- /package/dist/app/assets/{index.es481-GBQ2dnAY.js → index.es547-GBQ2dnAY.js} +0 -0
- /package/dist/app/assets/{index.es482-PoHY5YXO.js → index.es548-PoHY5YXO.js} +0 -0
- /package/dist/app/assets/{index.es483-3e1v2bzS.js → index.es549-3e1v2bzS.js} +0 -0
- /package/dist/app/assets/{index.es484-CS3Unz2-.js → index.es550-CS3Unz2-.js} +0 -0
- /package/dist/app/assets/{index.es485-bN70gL4F.js → index.es551-bN70gL4F.js} +0 -0
- /package/dist/app/assets/{index.es486-CmCqftbK.js → index.es552-CmCqftbK.js} +0 -0
- /package/dist/app/assets/{index.es487-Ds-gbosJ.js → index.es553-Ds-gbosJ.js} +0 -0
- /package/dist/app/assets/{index.es488-CjDtw9vr.js → index.es554-CjDtw9vr.js} +0 -0
- /package/dist/app/assets/{index.es489-BthQWCQV.js → index.es555-BthQWCQV.js} +0 -0
- /package/dist/app/assets/{index.es490-DqwNpetd.js → index.es556-DqwNpetd.js} +0 -0
- /package/dist/app/assets/{index.es491-Bw305WKR.js → index.es557-Bw305WKR.js} +0 -0
- /package/dist/app/assets/{index.es492-DXbdFlpD.js → index.es558-DXbdFlpD.js} +0 -0
- /package/dist/app/assets/{index.es493-L9t79GZl.js → index.es559-L9t79GZl.js} +0 -0
- /package/dist/app/assets/{index.es494-CbfX1IO0.js → index.es560-CbfX1IO0.js} +0 -0
- /package/dist/app/assets/{index.es495-DBQeEorK.js → index.es561-DBQeEorK.js} +0 -0
- /package/dist/app/assets/{index.es496-BEBZ7ncR.js → index.es562-BEBZ7ncR.js} +0 -0
- /package/dist/app/assets/{index.es497-Bkuqu6BP.js → index.es563-Bkuqu6BP.js} +0 -0
- /package/dist/app/assets/{index.es498-D0r3Knsf.js → index.es564-D0r3Knsf.js} +0 -0
- /package/dist/app/assets/{index.es499-CVO1_9PV.js → index.es565-CVO1_9PV.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as d,r as f,
|
|
1
|
+
import{j as d,r as f,a$ as M2,b0 as I2,R as Ie,b1 as Rn}from"./index-DIS-Myin.js";import{r as Op,a as O2,b as P2,c as Pp,d as Fp,e as F2,f as B2,g as $2,h as z2,j as q2,k as W2,l as G2,m as U2,n as Y2,o as H2,p as bc,q as wc,s as J}from"./index-Bzmq4WOt.js";import{a as _u}from"./index.umd-BJAbIV_-.js";var It={},Qo={},Ot={},y0;function V2(){if(y0)return Ot;y0=1;var e=Ot&&Ot.__createBinding||(Object.create?(function(c,p,m,g){g===void 0&&(g=m);var h=Object.getOwnPropertyDescriptor(p,m);(!h||("get"in h?!p.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return p[m]}}),Object.defineProperty(c,g,h)}):(function(c,p,m,g){g===void 0&&(g=m),c[g]=p[m]})),t=Ot&&Ot.__setModuleDefault||(Object.create?(function(c,p){Object.defineProperty(c,"default",{enumerable:!0,value:p})}):function(c,p){c.default=p}),r=Ot&&Ot.__importStar||(function(){var c=function(p){return c=Object.getOwnPropertyNames||function(m){var g=[];for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&(g[g.length]=h);return g},c(p)};return function(p){if(p&&p.__esModule)return p;var m={};if(p!=null)for(var g=c(p),h=0;h<g.length;h++)g[h]!=="default"&&e(m,p,g[h]);return t(m,p),m}})();Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.MalloyTagLexer=void 0;const o=Op(),s=O2(),i=P2(),l=Pp(),a=r(Fp());let u=class zt extends s.Lexer{get vocabulary(){return zt.VOCABULARY}constructor(p){super(p),this._interp=new i.LexerATNSimulator(zt._ATN,this)}get grammarFileName(){return"MalloyTag.g4"}get ruleNames(){return zt.ruleNames}get serializedATN(){return zt._serializedATN}get channelNames(){return zt.channelNames}get modeNames(){return zt.modeNames}static get _ATN(){return zt.__ATN||(zt.__ATN=new o.ATNDeserializer().deserialize(a.toCharArray(zt._serializedATN))),zt.__ATN}};return Ot.MalloyTagLexer=u,u.MINUS_DOTTY=1,u.DOTTY=2,u.DOT=3,u.MINUS=4,u.EQ=5,u.RF_BEG=6,u.RF_END=7,u.PR_BEG=8,u.PR_END=9,u.AR_BEG=10,u.COMMA=11,u.AR_END=12,u.SQ_STRING=13,u.DQ_STRING=14,u.BQ_STRING=15,u.NUMERIC_LITERAL=16,u.BARE_STRING=17,u.COMMENT=18,u.WHITE_SPACE=19,u.UNEXPECTED_CHAR=20,u.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],u.modeNames=["DEFAULT_MODE"],u.ruleNames=["MINUS_DOTTY","DOTTY","DOT","MINUS","EQ","RF_BEG","RF_END","PR_BEG","PR_END","AR_BEG","COMMA","AR_END","ID_CHAR","DIGIT","HEX","UNICODE","SAFE_NON_QUOTE","ESCAPED","SQ_STRING","DQ_STRING","BQ_STRING","INTEGER_LITERAL","EXPONENT","NUMERIC_LITERAL","BARE_STRING","COMMENT","WHITE_SPACE","UNEXPECTED_CHAR"],u._LITERAL_NAMES=[void 0,"'-...'","'...'","'.'","'-'","'='","'$('","')'","'{'","'}'","'['","','","']'"],u._SYMBOLIC_NAMES=[void 0,"MINUS_DOTTY","DOTTY","DOT","MINUS","EQ","RF_BEG","RF_END","PR_BEG","PR_END","AR_BEG","COMMA","AR_END","SQ_STRING","DQ_STRING","BQ_STRING","NUMERIC_LITERAL","BARE_STRING","COMMENT","WHITE_SPACE","UNEXPECTED_CHAR"],u.VOCABULARY=new l.VocabularyImpl(u._LITERAL_NAMES,u._SYMBOLIC_NAMES,[]),u._serializedATN=`줝쪺֍꾺体؇쉁Í\b \x07 \x07\b \b
|
|
2
2
|
|
|
3
3
|
\v \v\f \f\r \r \x1B \x1B \x07\x07\x07\b\b
|
|
4
4
|
|
|
@@ -21,7 +21,7 @@ import{j as d,r as f,a9 as M2,E as I2,R as Ie,a as Rn}from"./mui-BL9dYvR2.js";im
|
|
|
21
21
|
\v\f\r\x1B!#%')+-/13579\v2;2;CHch\x07!$$))^^bb$$bb))bb$$))GGgg--//\v\r""ʇC\\aac|¬¬··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰͇͇ͲͶͼͿΈΈΊΌΎΎΐΣΥϷϹ҃ҌԱԳ՛՛գ։ֲֿׁׁ׃ׄ׆ׇגײ״ؒآٙٛ١ٰەۗ۞ۣ۪ۯ۱ۼ۾܁܁ܒ݁ݏߌ߬߶߷ࠂ࠙ࠜࡂ࡚ࢢࢶࢸࢿࣲࣖ࣡ࣥ࣫ऽिॎॐ॒ॗ॥ॳঅইকপবলসি্ৎয়ৡ৲৳ਃਅਇਕਪਬਲਵਸੀ੍ਜ਼ਫ਼ੲઃઅઇએઑઓકપબલવષિેૉો્ૢૻૻଃଅଇକପବଲଵଷି୍ୟୡ୳୳அஇஐஒஔஜஞஞபரீைொௌంఅఇఎఐఒఔపబిెైొౌౘౚౢಂಅಇಎಐಒಔಪಬವಷಿೆೈೊೌೠೠೢೳഃഅഇഎഐഒഔ഼ിെൈൊൌൎൖ൙ൡർඁඅඇගඳඵලෂෑූෘෘේ෴ฃโ่๏๏ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯົຽໂໆ່່ໞ༂༂གཉཋཱིྃྊྙྛ྾ဂး််ွ၁ၒၤၧၪၰႈ႐႐႞႟ႢჇგჼჾቊቌቒቘቚቚቜቢኊኌኒኲኴኺዀዂዂዄዊዘዚጒጔጚ፡፡ᎂ᎑Ꭲᏺᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰᜂᜎᜐ᜕ᜢ᜵ᝂᝢᝮᝰᝲគ឵ី៊៙៙ᠢᢂᢲᤂᤠᤢᤲ᤺ᥒᥲᦂᦲᨂᨢ᩠ᩣ᩶᪩᪩ᬂᬵᬷᭅᭇᮂ᮫ᮮ᮱ᮼᯧᯩ᯳ᰂ᰷ᱏ᱑ᱜ᱿ᲂᳫᳮᳰᳵ᳷᳸ᴂ᷁ᷩ᷶ḂἚἢὊὒὙὛὛὝὝὟὟὡᾂᾶᾸι῀῀ῄῆῈ῎ῒῘ῝ῢ΅ῴῶῸ῾₁₁ₒ℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊Ⓒ⓫ⰂⰰⰲⱠⱢ⳦Ⳮ⳰ⴂⴧⴲⶂⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠⷢ⸁⸱⸱〇〉〣〫〳〷〺〾ぃゟァィーヾㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂꓒ꓿ꔂ꘎ꘒ꘡Ꙃ꙰ꙶ꙽ꚁ꛱ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹꠃꠅꠇꠉꠌꠎ꠩ꡂ꡵ꢂꣅꣴ꣹ꣽꣽꣿꣿꤌ꤬ꤲꥢꦂꦴꦶ꧁꧑꧑ꧢꧦꧨ꧱ꧼꨀꨂꩂꩢ꩸ꩼꩼꪀꫀꫂꫂꫝ꫟ꫢ꫱ꫴꬃꬋꬓꬢꬨꬪꬰꬲꭜꭞꭧꭲ꯬갂ힲퟍ車全flﬕײַשׁשּׁטּךּמּנּנּףּצּרּ﮳ﯕ﴿ﵒﶔﷲ﷽ﹲﹶﹸC\c|ィᅣᅩᅯᅵ\r(*<>?AOR_üłŶʂʞʢ˒̡̲̂͌͒ͼΟυϊϑϓϗЂҟҲӕӚӽԂԩԲեܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠࣶࣴࣷंगढऻংহীুਂਅਇਈਕਗਙਛਵંઞૂૉો૦ଂଷୂୗୢ୴ஂஓంొಂೂဂ၇ႄႺგცᄂᄴᅒᅴᅸᅸᆂᇁᇃᇆᇜᇜᇞᇞሂሓሕሶሹሹቀቀኂኈኊኊኌኑኟኡኪኲዪጂጅጇጎጒጕጪጬጲጴጵጷጻጿፆፉፊፍፎፒፒፙፙ፟፥ᐂᑃᑅᑇᑉᑌᒂᓃᓆᓇᓉᓉᖂᖷᖺᗀᗚᗟᘂᙀᙂᙂᙆᙆᚂᚷᜂᜟᜬᢢᣡᤁᤁ᫂ᰂᰊᰌ᱀᱂᱂ᱴᲑᲔᲩᲫᲸ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠櫒櫯欂欸歂歅步歹歿殑漂潆潒澀澕澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛베베퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌ퟄퟆퟍꛘ꜂뜶띂렟렢캣﨟Ý\x07 \v\r')+13579;@\x07D F\vH\rJMOQSUW\x1BY[]!_#g%i'l)x+-/1±3µ5¹7Å9Ë;<\x07/<=\x070=>\x070>?\x070?@A\x070AB\x070BC\x070CDE\x070E\bFG\x07/G
|
|
22
22
|
HI\x07?I\fJK\x07&KL\x07*LMN\x07+NOP\x07}PQR\x07RST\x07]TUV\x07.VWX\x07_XYZ \vZ[\\ \\]^ ^ _\`\x07^\`a\x07wabbccddeeff"gh
|
|
23
23
|
h$ij\x07^jk\vk&ls\x07)mr!nr%or#pr qmqnqoqprusqsttvusvw\x07)w(x\x07$y~!z~%{~#|~ }y}z}{}|~}\x07$*\x07b
!%# \x07
\x07b, . \b 0¡£-¢¡¢££¤¤¦\x07¥§¦¥§¨¨¦¨©©«ª¬/«ª«¬¬²¯-®°/¯®¯°°²±¢±²2³¶´¶\x1Bµ³µ´¶··µ·¸¸4¹½\x07%º¼\v»º¼¿½¾½»¾À¿½ÀÁ\x07ÁÂÂÃ\b\x1BÃ6ÄÆ
|
|
24
|
-
ÅÄÆÇÇÅÇÈÈÉÉÊ\bÊ8ËÌ\vÌ:qs}¢¨«¯±µ·½Ç\b`,Ot}var oe={},v0;function X2(){if(v0)return oe;v0=1;var e=oe&&oe.__createBinding||(Object.create?function($,S,T,M){M===void 0&&(M=T);var H=Object.getOwnPropertyDescriptor(S,T);(!H||("get"in H?!S.__esModule:H.writable||H.configurable))&&(H={enumerable:!0,get:function(){return S[T]}}),Object.defineProperty($,M,H)}:function($,S,T,M){M===void 0&&(M=T),$[M]=S[T]}),t=oe&&oe.__setModuleDefault||(Object.create?function($,S){Object.defineProperty($,"default",{enumerable:!0,value:S})}:function($,S){$.default=S}),r=oe&&oe.__importStar||function(){var $=function(S){return $=Object.getOwnPropertyNames||function(T){var M=[];for(var H in T)Object.prototype.hasOwnProperty.call(T,H)&&(M[M.length]=H);return M},$(S)};return function(S){if(S&&S.__esModule)return S;var T={};if(S!=null)for(var M=$(S),H=0;H<M.length;H++)M[H]!=="default"&&e(T,S,M[H]);return t(T,S),T}}();Object.defineProperty(oe,"__esModule",{value:!0}),oe.PropertiesContext=oe.ArrayValueContext=oe.ReferenceContext=oe.ArrayElementContext=oe.EqValueContext=oe.PropNameContext=oe.IdentifierContext=oe.StringContext=oe.TagEmptyContext=oe.TagDefContext=oe.TagUpdatePropertiesContext=oe.TagReplacePropertiesContext=oe.TagEqContext=oe.TagSpecContext=oe.TagLineContext=oe.MalloyTagParser=void 0;const o=F2(),s=Op(),i=B2(),l=$2(),a=z2(),u=q2(),c=W2(),p=G2(),m=U2(),g=Pp(),h=r(Fp());let x=class W extends a.Parser{get vocabulary(){return W.VOCABULARY}get grammarFileName(){return"MalloyTag.g4"}get ruleNames(){return W.ruleNames}get serializedATN(){return W._serializedATN}createFailedPredicateException(S,T){return new i.FailedPredicateException(this,S,T)}constructor(S){super(S),this._interp=new c.ParserATNSimulator(W._ATN,this)}tagLine(){let S=new v(this._ctx,this.state);this.enterRule(S,0,W.RULE_tagLine);let T;try{this.enterOuterAlt(S,1);{for(this.state=23,this._errHandler.sync(this),T=this._input.LA(1);(T&-32)===0&&(1<<T&(1<<W.MINUS_DOTTY|1<<W.MINUS|1<<W.BQ_STRING|1<<W.BARE_STRING))!==0;)this.state=20,this.tagSpec(),this.state=25,this._errHandler.sync(this),T=this._input.LA(1);this.state=26,this.match(W.EOF)}}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}tagSpec(){let S=new y(this._ctx,this.state);this.enterRule(S,2,W.RULE_tagSpec);let T;try{switch(this.state=49,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,4,this._ctx)){case 1:S=new b(S),this.enterOuterAlt(S,1),this.state=28,this.propName(),this.state=29,this.match(W.EQ),this.state=30,this.eqValue(),this.state=32,this._errHandler.sync(this),T=this._input.LA(1),T===W.PR_BEG&&(this.state=31,this.properties());break;case 2:S=new w(S),this.enterOuterAlt(S,2),this.state=34,this.propName(),this.state=35,this.match(W.EQ),this.state=37,this._errHandler.sync(this),T=this._input.LA(1),T===W.DOTTY&&(this.state=36,this.match(W.DOTTY)),this.state=39,this.properties();break;case 3:S=new C(S),this.enterOuterAlt(S,3),this.state=41,this.propName(),this.state=42,this.properties();break;case 4:S=new _(S),this.enterOuterAlt(S,4),this.state=45,this._errHandler.sync(this),T=this._input.LA(1),T===W.MINUS&&(this.state=44,this.match(W.MINUS)),this.state=47,this.propName();break;case 5:S=new k(S),this.enterOuterAlt(S,5),this.state=48,this.match(W.MINUS_DOTTY);break}}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}string(){let S=new E(this._ctx,this.state);this.enterRule(S,4,W.RULE_string);let T;try{this.enterOuterAlt(S,1),this.state=51,T=this._input.LA(1),(T&-32)===0&&(1<<T&(1<<W.SQ_STRING|1<<W.DQ_STRING|1<<W.NUMERIC_LITERAL|1<<W.BARE_STRING))!==0?(this._input.LA(1)===m.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}identifier(){let S=new R(this._ctx,this.state);this.enterRule(S,6,W.RULE_identifier);let T;try{this.enterOuterAlt(S,1),this.state=53,T=this._input.LA(1),T===W.BQ_STRING||T===W.BARE_STRING?(this._input.LA(1)===m.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}propName(){let S=new j(this._ctx,this.state);this.enterRule(S,8,W.RULE_propName);let T;try{for(this.enterOuterAlt(S,1),this.state=55,this.identifier(),this.state=60,this._errHandler.sync(this),T=this._input.LA(1);T===W.DOT;)this.state=56,this.match(W.DOT),this.state=57,this.identifier(),this.state=62,this._errHandler.sync(this),T=this._input.LA(1)}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}eqValue(){let S=new D(this._ctx,this.state);this.enterRule(S,10,W.RULE_eqValue);try{switch(this.state=66,this._errHandler.sync(this),this._input.LA(1)){case W.SQ_STRING:case W.DQ_STRING:case W.NUMERIC_LITERAL:case W.BARE_STRING:this.enterOuterAlt(S,1),this.state=63,this.string();break;case W.AR_BEG:this.enterOuterAlt(S,2),this.state=64,this.arrayValue();break;case W.RF_BEG:this.enterOuterAlt(S,3),this.state=65,this.reference();break;default:throw new l.NoViableAltException(this)}}catch(T){if(T instanceof p.RecognitionException)S.exception=T,this._errHandler.reportError(this,T),this._errHandler.recover(this,T);else throw T}finally{this.exitRule()}return S}arrayElement(){let S=new I(this._ctx,this.state);this.enterRule(S,12,W.RULE_arrayElement);let T;try{switch(this.state=75,this._errHandler.sync(this),this._input.LA(1)){case W.SQ_STRING:case W.DQ_STRING:case W.NUMERIC_LITERAL:case W.BARE_STRING:this.enterOuterAlt(S,1),this.state=68,this.string(),this.state=70,this._errHandler.sync(this),T=this._input.LA(1),T===W.PR_BEG&&(this.state=69,this.properties());break;case W.PR_BEG:this.enterOuterAlt(S,2),this.state=72,this.properties();break;case W.AR_BEG:this.enterOuterAlt(S,3),this.state=73,this.arrayValue();break;case W.RF_BEG:this.enterOuterAlt(S,4),this.state=74,this.reference();break;default:throw new l.NoViableAltException(this)}}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}reference(){let S=new B(this._ctx,this.state);this.enterRule(S,14,W.RULE_reference);try{this.enterOuterAlt(S,1),this.state=77,this.match(W.RF_BEG),this.state=78,this.propName(),this.state=79,this.match(W.RF_END)}catch(T){if(T instanceof p.RecognitionException)S.exception=T,this._errHandler.reportError(this,T),this._errHandler.recover(this,T);else throw T}finally{this.exitRule()}return S}arrayValue(){let S=new U(this._ctx,this.state);this.enterRule(S,16,W.RULE_arrayValue);let T;try{let M;switch(this.state=97,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,11,this._ctx)){case 1:this.enterOuterAlt(S,1);{for(this.state=81,this.match(W.AR_BEG),this.state=82,this.arrayElement(),this.state=87,this._errHandler.sync(this),M=this.interpreter.adaptivePredict(this._input,9,this._ctx);M!==2&&M!==o.ATN.INVALID_ALT_NUMBER;)M===1&&(this.state=83,this.match(W.COMMA),this.state=84,this.arrayElement()),this.state=89,this._errHandler.sync(this),M=this.interpreter.adaptivePredict(this._input,9,this._ctx);this.state=91,this._errHandler.sync(this),T=this._input.LA(1),T===W.COMMA&&(this.state=90,this.match(W.COMMA)),this.state=93,this.match(W.AR_END)}break;case 2:this.enterOuterAlt(S,2),this.state=95,this.match(W.AR_BEG),this.state=96,this.match(W.AR_END);break}}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}properties(){let S=new K(this._ctx,this.state);this.enterRule(S,18,W.RULE_properties);let T;try{this.enterOuterAlt(S,1);{switch(this.state=99,this.match(W.PR_BEG),this.state=107,this._errHandler.sync(this),this._input.LA(1)){case W.DOTTY:this.state=100,this.match(W.DOTTY);break;case W.MINUS_DOTTY:case W.MINUS:case W.PR_END:case W.BQ_STRING:case W.BARE_STRING:for(this.state=104,this._errHandler.sync(this),T=this._input.LA(1);(T&-32)===0&&(1<<T&(1<<W.MINUS_DOTTY|1<<W.MINUS|1<<W.BQ_STRING|1<<W.BARE_STRING))!==0;)this.state=101,this.tagSpec(),this.state=106,this._errHandler.sync(this),T=this._input.LA(1);break;default:throw new l.NoViableAltException(this)}this.state=109,this.match(W.PR_END)}}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}static get _ATN(){return W.__ATN||(W.__ATN=new s.ATNDeserializer().deserialize(h.toCharArray(W._serializedATN))),W.__ATN}};oe.MalloyTagParser=x,x.MINUS_DOTTY=1,x.DOTTY=2,x.DOT=3,x.MINUS=4,x.EQ=5,x.RF_BEG=6,x.RF_END=7,x.PR_BEG=8,x.PR_END=9,x.AR_BEG=10,x.COMMA=11,x.AR_END=12,x.SQ_STRING=13,x.DQ_STRING=14,x.BQ_STRING=15,x.NUMERIC_LITERAL=16,x.BARE_STRING=17,x.COMMENT=18,x.WHITE_SPACE=19,x.UNEXPECTED_CHAR=20,x.RULE_tagLine=0,x.RULE_tagSpec=1,x.RULE_string=2,x.RULE_identifier=3,x.RULE_propName=4,x.RULE_eqValue=5,x.RULE_arrayElement=6,x.RULE_reference=7,x.RULE_arrayValue=8,x.RULE_properties=9,x.ruleNames=["tagLine","tagSpec","string","identifier","propName","eqValue","arrayElement","reference","arrayValue","properties"],x._LITERAL_NAMES=[void 0,"'-...'","'...'","'.'","'-'","'='","'$('","')'","'{'","'}'","'['","','","']'"],x._SYMBOLIC_NAMES=[void 0,"MINUS_DOTTY","DOTTY","DOT","MINUS","EQ","RF_BEG","RF_END","PR_BEG","PR_END","AR_BEG","COMMA","AR_END","SQ_STRING","DQ_STRING","BQ_STRING","NUMERIC_LITERAL","BARE_STRING","COMMENT","WHITE_SPACE","UNEXPECTED_CHAR"],x.VOCABULARY=new g.VocabularyImpl(x._LITERAL_NAMES,x._SYMBOLIC_NAMES,[]),x._serializedATN=`줝쪺֍꾺体؇쉁r \x07 \x07\b \b
|
|
24
|
+
ÅÄÆÇÇÅÇÈÈÉÉÊ\bÊ8ËÌ\vÌ:qs}¢¨«¯±µ·½Ç\b`,Ot}var oe={},v0;function X2(){if(v0)return oe;v0=1;var e=oe&&oe.__createBinding||(Object.create?(function($,S,T,M){M===void 0&&(M=T);var H=Object.getOwnPropertyDescriptor(S,T);(!H||("get"in H?!S.__esModule:H.writable||H.configurable))&&(H={enumerable:!0,get:function(){return S[T]}}),Object.defineProperty($,M,H)}):(function($,S,T,M){M===void 0&&(M=T),$[M]=S[T]})),t=oe&&oe.__setModuleDefault||(Object.create?(function($,S){Object.defineProperty($,"default",{enumerable:!0,value:S})}):function($,S){$.default=S}),r=oe&&oe.__importStar||(function(){var $=function(S){return $=Object.getOwnPropertyNames||function(T){var M=[];for(var H in T)Object.prototype.hasOwnProperty.call(T,H)&&(M[M.length]=H);return M},$(S)};return function(S){if(S&&S.__esModule)return S;var T={};if(S!=null)for(var M=$(S),H=0;H<M.length;H++)M[H]!=="default"&&e(T,S,M[H]);return t(T,S),T}})();Object.defineProperty(oe,"__esModule",{value:!0}),oe.PropertiesContext=oe.ArrayValueContext=oe.ReferenceContext=oe.ArrayElementContext=oe.EqValueContext=oe.PropNameContext=oe.IdentifierContext=oe.StringContext=oe.TagEmptyContext=oe.TagDefContext=oe.TagUpdatePropertiesContext=oe.TagReplacePropertiesContext=oe.TagEqContext=oe.TagSpecContext=oe.TagLineContext=oe.MalloyTagParser=void 0;const o=F2(),s=Op(),i=B2(),l=$2(),a=z2(),u=q2(),c=W2(),p=G2(),m=U2(),g=Pp(),h=r(Fp());let x=class W extends a.Parser{get vocabulary(){return W.VOCABULARY}get grammarFileName(){return"MalloyTag.g4"}get ruleNames(){return W.ruleNames}get serializedATN(){return W._serializedATN}createFailedPredicateException(S,T){return new i.FailedPredicateException(this,S,T)}constructor(S){super(S),this._interp=new c.ParserATNSimulator(W._ATN,this)}tagLine(){let S=new v(this._ctx,this.state);this.enterRule(S,0,W.RULE_tagLine);let T;try{this.enterOuterAlt(S,1);{for(this.state=23,this._errHandler.sync(this),T=this._input.LA(1);(T&-32)===0&&(1<<T&(1<<W.MINUS_DOTTY|1<<W.MINUS|1<<W.BQ_STRING|1<<W.BARE_STRING))!==0;)this.state=20,this.tagSpec(),this.state=25,this._errHandler.sync(this),T=this._input.LA(1);this.state=26,this.match(W.EOF)}}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}tagSpec(){let S=new y(this._ctx,this.state);this.enterRule(S,2,W.RULE_tagSpec);let T;try{switch(this.state=49,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,4,this._ctx)){case 1:S=new b(S),this.enterOuterAlt(S,1),this.state=28,this.propName(),this.state=29,this.match(W.EQ),this.state=30,this.eqValue(),this.state=32,this._errHandler.sync(this),T=this._input.LA(1),T===W.PR_BEG&&(this.state=31,this.properties());break;case 2:S=new w(S),this.enterOuterAlt(S,2),this.state=34,this.propName(),this.state=35,this.match(W.EQ),this.state=37,this._errHandler.sync(this),T=this._input.LA(1),T===W.DOTTY&&(this.state=36,this.match(W.DOTTY)),this.state=39,this.properties();break;case 3:S=new C(S),this.enterOuterAlt(S,3),this.state=41,this.propName(),this.state=42,this.properties();break;case 4:S=new _(S),this.enterOuterAlt(S,4),this.state=45,this._errHandler.sync(this),T=this._input.LA(1),T===W.MINUS&&(this.state=44,this.match(W.MINUS)),this.state=47,this.propName();break;case 5:S=new k(S),this.enterOuterAlt(S,5),this.state=48,this.match(W.MINUS_DOTTY);break}}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}string(){let S=new E(this._ctx,this.state);this.enterRule(S,4,W.RULE_string);let T;try{this.enterOuterAlt(S,1),this.state=51,T=this._input.LA(1),(T&-32)===0&&(1<<T&(1<<W.SQ_STRING|1<<W.DQ_STRING|1<<W.NUMERIC_LITERAL|1<<W.BARE_STRING))!==0?(this._input.LA(1)===m.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}identifier(){let S=new R(this._ctx,this.state);this.enterRule(S,6,W.RULE_identifier);let T;try{this.enterOuterAlt(S,1),this.state=53,T=this._input.LA(1),T===W.BQ_STRING||T===W.BARE_STRING?(this._input.LA(1)===m.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}propName(){let S=new j(this._ctx,this.state);this.enterRule(S,8,W.RULE_propName);let T;try{for(this.enterOuterAlt(S,1),this.state=55,this.identifier(),this.state=60,this._errHandler.sync(this),T=this._input.LA(1);T===W.DOT;)this.state=56,this.match(W.DOT),this.state=57,this.identifier(),this.state=62,this._errHandler.sync(this),T=this._input.LA(1)}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}eqValue(){let S=new D(this._ctx,this.state);this.enterRule(S,10,W.RULE_eqValue);try{switch(this.state=66,this._errHandler.sync(this),this._input.LA(1)){case W.SQ_STRING:case W.DQ_STRING:case W.NUMERIC_LITERAL:case W.BARE_STRING:this.enterOuterAlt(S,1),this.state=63,this.string();break;case W.AR_BEG:this.enterOuterAlt(S,2),this.state=64,this.arrayValue();break;case W.RF_BEG:this.enterOuterAlt(S,3),this.state=65,this.reference();break;default:throw new l.NoViableAltException(this)}}catch(T){if(T instanceof p.RecognitionException)S.exception=T,this._errHandler.reportError(this,T),this._errHandler.recover(this,T);else throw T}finally{this.exitRule()}return S}arrayElement(){let S=new I(this._ctx,this.state);this.enterRule(S,12,W.RULE_arrayElement);let T;try{switch(this.state=75,this._errHandler.sync(this),this._input.LA(1)){case W.SQ_STRING:case W.DQ_STRING:case W.NUMERIC_LITERAL:case W.BARE_STRING:this.enterOuterAlt(S,1),this.state=68,this.string(),this.state=70,this._errHandler.sync(this),T=this._input.LA(1),T===W.PR_BEG&&(this.state=69,this.properties());break;case W.PR_BEG:this.enterOuterAlt(S,2),this.state=72,this.properties();break;case W.AR_BEG:this.enterOuterAlt(S,3),this.state=73,this.arrayValue();break;case W.RF_BEG:this.enterOuterAlt(S,4),this.state=74,this.reference();break;default:throw new l.NoViableAltException(this)}}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}reference(){let S=new B(this._ctx,this.state);this.enterRule(S,14,W.RULE_reference);try{this.enterOuterAlt(S,1),this.state=77,this.match(W.RF_BEG),this.state=78,this.propName(),this.state=79,this.match(W.RF_END)}catch(T){if(T instanceof p.RecognitionException)S.exception=T,this._errHandler.reportError(this,T),this._errHandler.recover(this,T);else throw T}finally{this.exitRule()}return S}arrayValue(){let S=new U(this._ctx,this.state);this.enterRule(S,16,W.RULE_arrayValue);let T;try{let M;switch(this.state=97,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,11,this._ctx)){case 1:this.enterOuterAlt(S,1);{for(this.state=81,this.match(W.AR_BEG),this.state=82,this.arrayElement(),this.state=87,this._errHandler.sync(this),M=this.interpreter.adaptivePredict(this._input,9,this._ctx);M!==2&&M!==o.ATN.INVALID_ALT_NUMBER;)M===1&&(this.state=83,this.match(W.COMMA),this.state=84,this.arrayElement()),this.state=89,this._errHandler.sync(this),M=this.interpreter.adaptivePredict(this._input,9,this._ctx);this.state=91,this._errHandler.sync(this),T=this._input.LA(1),T===W.COMMA&&(this.state=90,this.match(W.COMMA)),this.state=93,this.match(W.AR_END)}break;case 2:this.enterOuterAlt(S,2),this.state=95,this.match(W.AR_BEG),this.state=96,this.match(W.AR_END);break}}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}properties(){let S=new K(this._ctx,this.state);this.enterRule(S,18,W.RULE_properties);let T;try{this.enterOuterAlt(S,1);{switch(this.state=99,this.match(W.PR_BEG),this.state=107,this._errHandler.sync(this),this._input.LA(1)){case W.DOTTY:this.state=100,this.match(W.DOTTY);break;case W.MINUS_DOTTY:case W.MINUS:case W.PR_END:case W.BQ_STRING:case W.BARE_STRING:for(this.state=104,this._errHandler.sync(this),T=this._input.LA(1);(T&-32)===0&&(1<<T&(1<<W.MINUS_DOTTY|1<<W.MINUS|1<<W.BQ_STRING|1<<W.BARE_STRING))!==0;)this.state=101,this.tagSpec(),this.state=106,this._errHandler.sync(this),T=this._input.LA(1);break;default:throw new l.NoViableAltException(this)}this.state=109,this.match(W.PR_END)}}catch(M){if(M instanceof p.RecognitionException)S.exception=M,this._errHandler.reportError(this,M),this._errHandler.recover(this,M);else throw M}finally{this.exitRule()}return S}static get _ATN(){return W.__ATN||(W.__ATN=new s.ATNDeserializer().deserialize(h.toCharArray(W._serializedATN))),W.__ATN}};oe.MalloyTagParser=x,x.MINUS_DOTTY=1,x.DOTTY=2,x.DOT=3,x.MINUS=4,x.EQ=5,x.RF_BEG=6,x.RF_END=7,x.PR_BEG=8,x.PR_END=9,x.AR_BEG=10,x.COMMA=11,x.AR_END=12,x.SQ_STRING=13,x.DQ_STRING=14,x.BQ_STRING=15,x.NUMERIC_LITERAL=16,x.BARE_STRING=17,x.COMMENT=18,x.WHITE_SPACE=19,x.UNEXPECTED_CHAR=20,x.RULE_tagLine=0,x.RULE_tagSpec=1,x.RULE_string=2,x.RULE_identifier=3,x.RULE_propName=4,x.RULE_eqValue=5,x.RULE_arrayElement=6,x.RULE_reference=7,x.RULE_arrayValue=8,x.RULE_properties=9,x.ruleNames=["tagLine","tagSpec","string","identifier","propName","eqValue","arrayElement","reference","arrayValue","properties"],x._LITERAL_NAMES=[void 0,"'-...'","'...'","'.'","'-'","'='","'$('","')'","'{'","'}'","'['","','","']'"],x._SYMBOLIC_NAMES=[void 0,"MINUS_DOTTY","DOTTY","DOT","MINUS","EQ","RF_BEG","RF_END","PR_BEG","PR_END","AR_BEG","COMMA","AR_END","SQ_STRING","DQ_STRING","BQ_STRING","NUMERIC_LITERAL","BARE_STRING","COMMENT","WHITE_SPACE","UNEXPECTED_CHAR"],x.VOCABULARY=new g.VocabularyImpl(x._LITERAL_NAMES,x._SYMBOLIC_NAMES,[]),x._serializedATN=`줝쪺֍꾺体؇쉁r \x07 \x07\b \b
|
|
25
25
|
|
|
26
26
|
\v \v\x07
|
|
27
27
|
\f\x1B\v#
|
|
@@ -74,7 +74,7 @@ ${x} `)}
|
|
|
74
74
|
${x} ]`),this.properties)for(const y in this.properties){const b=i.tagFrom(this.properties[y]);v+=`
|
|
75
75
|
${x} ${y}: ${b.peek(h+2)}`}return v+=`
|
|
76
76
|
${x}}`,v}static fromTagLine(h,x=0,v,...y){return p(h,v,y,x)}static fromTagLines(h,x,...v){const y=[];let b=x;for(let w=0;w<h.length;w++){const C=h[w],_=p(C,b,v,w);b=_.tag,y.push(..._.log)}return{tag:b,log:y}}constructor(h={}){h.eq&&(this.eq=h.eq),h.properties&&(this.properties=h.properties),h.deleted&&(this.deleted=h.deleted),h.prefix&&(this.prefix=h.prefix)}static withPrefix(h){return new i({prefix:h})}tag(...h){return this.find(h)}text(...h){var x;const v=(x=this.find(h))===null||x===void 0?void 0:x.eq;if(typeof v=="string")return v}numeric(...h){var x;const v=(x=this.find(h))===null||x===void 0?void 0:x.eq;if(typeof v=="string"){const y=Number.parseFloat(v);if(!Number.isNaN(y))return y}}bare(...h){const x=this.find(h);if(x!==void 0)return x.properties===void 0||Object.entries(x.properties).length===0}get dict(){const h={};if(this.properties)for(const x in this.properties)h[x]=i.tagFrom(this.properties[x]);return h}array(...h){var x;const v=(x=this.find(h))===null||x===void 0?void 0:x.eq;if(!(v===void 0||typeof v=="string"))return v.map(y=>typeof y=="string"?new i({eq:y}):i.tagFrom(y))}textArray(...h){var x;const v=(x=this.find(h))===null||x===void 0?void 0:x.eq;if(!(v===void 0||typeof v=="string"))return v.reduce((y,b)=>typeof b.eq=="string"?y.concat(b.eq):y,[])}numericArray(...h){var x;const v=(x=this.find(h))===null||x===void 0?void 0:x.eq;if(!(v===void 0||typeof v=="string"))return v.reduce((y,b)=>{if(typeof b.eq=="string"){const w=Number.parseFloat(b.eq);if(!Number.isNaN(w))return y.concat(w)}return y},[])}getProperties(){return this.properties===void 0&&(this.properties={}),this.properties}clone(){return new i(structuredClone(this))}static escapeString(h){return h.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n")}static escapeProp(h){return h.replace(/\\/g,"\\\\").replace(/`/g,"\\`")}static quoteAndEscape(h,x=!1){return h.match(/^[0-9A-Za-z_]+$/)?h:x?`\`${i.escapeProp(h)}\``:`"${i.escapeString(h)}"`}toString(){var h;let x=(h=this.prefix)!==null&&h!==void 0?h:"# ";function v(w){var C;const _=Object.keys((C=w.properties)!==null&&C!==void 0?C:{});for(let k=0;k<_.length;k++)b(_[k],w.properties[_[k]]),k<_.length-1&&(x+=" ")}function y(w,C=!1){if(w.eq!==void 0)if(C||(x+=" = "),Array.isArray(w.eq)){x+="[";for(let _=0;_<w.eq.length;_++)y(w.eq[_],!0),_!==w.eq.length-1&&(x+=", ");x+="]"}else x+=i.quoteAndEscape(`${w.eq}`);if(w.properties){const _=Object.keys(w.properties);!C&&_.length===1&&!_.some(k=>{var E;return((E=w.properties)!==null&&E!==void 0?E:{})[k].deleted})&&w.eq===void 0?(x+=".",v(w)):((!C||w.eq!==void 0)&&(x+=" "),x+="{ ",v(w),x+=" }")}}function b(w,C){if(C.deleted){x+=`-${i.quoteAndEscape(w,!0)}`;return}x+=i.quoteAndEscape(w,!0),y(C)}return v(this),x+=`
|
|
77
|
-
`,x}find(h){var x;let v=i.tagFrom(this);for(const y of h)if(typeof y=="number"){if(v.eq===void 0||!Array.isArray(v.eq)||v.eq.length<=y)return;v=i.tagFrom(v.eq[y])}else{const b=(x=v.properties)!==null&&x!==void 0?x:{};if(y in b)v=i.tagFrom(b[y]);else return}return v.deleted?void 0:v}has(...h){return this.find(h)!==void 0}set(h,x=null){const v=i.tagFrom(this);let y=v;for(const b of h)if(typeof b=="number"){if(y.eq===void 0||!Array.isArray(y.eq))y.eq=Array.from({length:b+1}).map(w=>({}));else if(y.eq.length<=b){const w=y.eq,C=Array.from({length:b+1}).map((_,k)=>k<w.length?w[k]:{});y.eq=C}y=y.eq[b]}else{const w=y.properties;w===void 0?(y.properties={[b]:{}},y=y.properties[b]):b in w?(y=w[b],y.deleted&&(y.deleted=!1)):(w[b]={},y=w[b])}return x===null?y.eq=void 0:typeof x=="string"?y.eq=x:typeof x=="number"?y.eq=x.toString():Array.isArray(x)&&(y.eq=x.map(b=>({eq:typeof b=="string"?b:b.toString()}))),v}delete(...h){return this.remove(h,!1)}unset(...h){return this.remove(h,!0)}remove(h,x=!1){var v;const y=i.tagFrom(this);let b=y;for(const C of h.slice(0,h.length-1))if(typeof C=="number"){if(b.eq===void 0||!Array.isArray(b.eq)){if(!x)return y;b.eq=Array.from({length:C}).map(_=>({}))}else if(b.eq.length<=C){if(!x)return y;const _=b.eq,k=Array.from({length:C}).map((E,R)=>R<_.length?_[R]:{});b.eq=k}b=b.eq[C]}else{const _=b.properties;if(_===void 0){if(!x)return y;b.properties={[C]:{}},b=b.properties[C]}else if(C in _)b=_[C];else{if(!x)return y;_[C]={},b=_[C]}}const w=h[h.length-1];return typeof w=="string"?b.properties&&w in b.properties?delete b.properties[w]:x&&((v=b.properties)!==null&&v!==void 0||(b.properties={}),b.properties[w]={deleted:!0}):Array.isArray(b.eq)&&b.eq.splice(w,1),y}}Qo.Tag=i,i.ids=new Map,i.nextTagId=1e3;class l{constructor(h){this.line=h,this.log=[]}syntaxError(h,x,v,y,b,w){const C={code:"tag-parse-syntax-error",message:b,line:this.line,offset:y};this.log.push(C)}semanticError(h,x,v){const y={code:x,message:v,line:this.line,offset:h.start.charPositionInLine};this.log.push(y)}}function a(g){const h=g.buildOn;return h instanceof i?h:new i}function u(g,h){var x,v;let y=g.getProperties();for(const b of h.slice(0,h.length-1)){let w;y[b]===void 0?(w=new i({}),y[b]=w):((x=(v=y[b]).properties)!==null&&x!==void 0||(v.properties={}),w=i.tagFrom(y[b])),y=w.getProperties()}return[h[h.length-1],y]}function c(g){return g.SQ_STRING()||g.DQ_STRING()?(0,s.parseString)(g.text,g.text[0]):g.text}function p(g,h,x,v){if(g[0]==="#"){const j=g.indexOf(" ");j>0?g=g.slice(j):g=""}const y=o.CharStreams.fromString(g),b=new t.MalloyTagLexer(y),w=new o.CommonTokenStream(b),C=new l(v),_=new r.MalloyTagParser(w);_.removeErrorListeners(),_.addErrorListener(C);const k=_.tagLine();return{tag:new m(x,C).tagLineToTag(k,h),log:C.log}}class m extends e.AbstractParseTreeVisitor{constructor(h=[],x){super(),this.scopes=[],this.msgLog=x,this.scopes.unshift(...h)}defaultResult(){return new i}visitString(h){return new i({eq:c(h)})}getPropName(h){return h.identifier().map(x=>x.BARE_STRING()?x.text:(0,s.parseString)(x.text,x.text[0]))}getTags(h,x){for(const v of h)v.buildOn=x,this.visit(v);return x}tagLineToTag(h,x){return x=x?.clone()||new i({}),this.scopes.unshift(x),this.getTags(h.tagSpec(),x),x}visitTagLine(h){throw new Error("INTERNAL: ERROR: Call tagLineToTag, not vistTagLine")}visitProperties(h){return this.getTags(h.tagSpec(),a(h))}visitArrayValue(h){return new i({eq:this.getArray(h)})}getArray(h){return h.arrayElement().map(x=>this.visit(x))}visitArrayElement(h){const x=h.properties(),v=x?this.visitProperties(x):void 0,y=h.string();let b=y?c(y):void 0;const w=h.arrayValue();if(w&&(b=this.getArray(w)),v)return b!==void 0&&(v.eq=b),v;const C=h.reference();return C?this.visitReference(C):new i({eq:b})}visitReference(h){const x=this.getPropName(h.propName());for(const v of this.scopes)if(v.has(x[0])){const y=v.tag(...x);if(y)return y.clone();break}return this.msgLog.semanticError(h,"tag-property-not-found",`Reference to undefined property ${x.join(".")}`),this.defaultResult()}visitTagEq(h){const x=a(h),v=this.getPropName(h.propName()),[y,b]=u(x,v),w=this.visit(h.eqValue()),C=h.properties();if(C)if(C.DOTTY()===void 0){const _=this.visitProperties(C).dict;b[y]={...w,properties:_}}else b[y]={...b[y],...w};else b[y]=w;return x}visitTagReplaceProperties(h){const x=a(h),v=this.getPropName(h.propName()),[y,b]=u(x,v),w=h.properties(),C=this.visitProperties(w);return h.DOTTY()===void 0?b[y]={properties:C.dict}:b[y].properties=C.dict,x}visitTagUpdateProperties(h){const x=a(h),v=this.getPropName(h.propName()),[y,b]=u(x,v),w=h.properties();w.buildOn=i.tagFrom(b[y]);const C=this.visitProperties(w),_=b[y]||new i({}),k={..._.properties,...C.dict};return b[y]={..._,properties:k},x}visitTagDef(h){const x=a(h),v=this.getPropName(h.propName()),[y,b]=u(x,v);return h.MINUS()?b[y]={deleted:!0}:b[y]=new i({}),x}visitTagEmpty(h){const x=h.buildOn;return x.properties={},x}}return Qo}var C0;function K2(){return C0||(C0=1,function(e){var t=It&&It.__createBinding||(Object.create?function(i,l,a,u){u===void 0&&(u=a);var c=Object.getOwnPropertyDescriptor(l,a);(!c||("get"in c?!l.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return l[a]}}),Object.defineProperty(i,u,c)}:function(i,l,a,u){u===void 0&&(u=a),i[u]=l[a]}),r=It&&It.__setModuleDefault||(Object.create?function(i,l){Object.defineProperty(i,"default",{enumerable:!0,value:l})}:function(i,l){i.default=l}),o=It&&It.__exportStar||function(i,l){for(var a in i)a!=="default"&&!Object.prototype.hasOwnProperty.call(l,a)&&t(l,i,a)},s=It&&It.__importStar||function(){var i=function(l){return i=Object.getOwnPropertyNames||function(a){var u=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(u[u.length]=c);return u},i(l)};return function(l){if(l&&l.__esModule)return l;var a={};if(l!=null)for(var u=i(l),c=0;c<u.length;c++)u[c]!=="default"&&t(a,l,u[c]);return r(a,l),a}}();Object.defineProperty(e,"__esModule",{value:!0}),e.ParseUtil=void 0,o(Z2(),e),e.ParseUtil=s(Bp())}(It)),It}var Q2=K2(),yr={},Pt={},_0;function ko(){if(_0)return Pt;_0=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.isChainOp=e,Pt.isStringCondition=t,Pt.isStringFilter=r,Pt.isBooleanFilter=o,Pt.isNumberFilter=s,Pt.isTemporalFilter=i,Pt.isFilterExpression=l,Pt.isFilterable=a;function e(u){return["and","or",","].includes(u)}function t(u){return["starts","ends","contains","="].includes(u.operator)}function r(u){return"operator"in u&&typeof u.operator=="string"&&["starts","ends","contains","=","~","null","empty","and","or",",","()"].includes(u.operator)}function o(u){return"operator"in u&&typeof u.operator=="string"&&["null","true","false","false_or_null"].includes(u.operator)}function s(u){return"operator"in u&&typeof u.operator=="string"&&["range","<=",">=","!=","=",">","<","and","or","()","null"].includes(u.operator)}function i(u){return"operator"in u&&typeof u.operator=="string"&&["literal","before","after","to","for","in","and","or","in_last","this","last","next","()","null"].includes(u.operator)}function l(u){return!!u&&"operator"in u}function a(u){return["string","number","boolean","timestamp","date"].includes(u)}return Pt}var Jo={},S0;function J2(){return S0||(S0=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.BooleanFilterExpression=void 0,Jo.BooleanFilterExpression={parse(e){var t;if(e.match(/^\s*$/))return{parsed:null,log:[]};const r={parsed:null,log:[]};let o=e.toLowerCase().trim().replace(/\s\s+/," "),s=!1;if(o.startsWith("not ")&&(s=!0,o=o.slice(4)),o==="true")r.parsed={operator:"true"};else if(o==="false")r.parsed={operator:"false_or_null"};else if(o==="=false")r.parsed={operator:"false"};else if(o==="null")r.parsed={operator:"null"};else if(o==="not null")r.parsed={operator:"null",not:!0};else{const i=e.match(/[^\s]/),l=i&&(t=i.index)!==null&&t!==void 0?t:0;r.log=[{message:"Illegal boolean filter. Must be one of true,false,=false,null,not null",severity:"error",startIndex:l,endIndex:l+e.length-1}]}return s&&r.parsed&&(r.parsed.not=!0),r},unparse(e){if(e===null)return"";const t=e.not?"not ":"";switch(e.operator){case"true":case"null":return t+e.operator;case"false_or_null":return t+"false";case"false":return t+"=false"}}}),Jo}var Ft={},zr={},tt={},k0;function Fl(){if(k0)return tt;k0=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.maybeNot=t,tt.unescape=r,tt.escape=o,tt.matchOp=i,tt.conjoin=a,tt.joinNumbers=u,tt.mkRange=c,tt.mkValues=p,tt.numNot=m,tt.temporalNot=g,tt.joinTemporal=h,tt.timeLiteral=x,tt.mkUnits=v;const e=ko();function t(y){const[b,w]=y;return b&&w&&(0,e.isStringFilter)(w)?{...w,not:!0}:w}function r(y){return y.replace(/\\(.)/g,"$1")}function o(y){const b=y.toLowerCase();return b==="null"||b==="empty"?"\\"+y:y.replace(/([,; |()\\%_-])/g,"\\$1")}function s(y){let b=!1,w=!1,C=0,_=!1;const k=y.length;for(let E=0;E<k;E+=1){const R=y[E];if(R===" "||R===" "){C+=1;continue}C=0,R==="%"?(_=!0,E===0&&(b=!0),w=!0):(w=!1,R==="\\"?E+=1:R==="_"&&(_=!0))}return{hasLike:_,percentEnd:w&&k>1,percentStart:b&&k>1,endSpace:C}}function i(y){let b=y.trimStart();const{hasLike:w,percentEnd:C,percentStart:_,endSpace:k}=s(b);if(k>0&&(b=b.slice(0,-k)),w){if(_&&C){const E=b.slice(1,-1);if(!s(E).hasLike&&E.length>0)return{operator:"contains",values:[r(E)]}}else if(C){const E=b.slice(0,-1);if(!s(E).hasLike)return{operator:"starts",values:[r(E)]}}else if(_){const E=b.slice(1);if(!s(E).hasLike)return{operator:"ends",values:[r(E)]}}return{operator:"~",escaped_values:[b]}}return b.toLowerCase()==="null"?{operator:"null"}:b.toLowerCase()==="empty"?{operator:"empty"}:{operator:"=",values:[r(b)]}}function l(y,b){var w,C;return y.operator===b.operator&&((w=y.not)!==null&&w!==void 0?w:!1)===((C=b.not)!==null&&C!==void 0?C:!1)}function a(y,b,w){if(b=b.toLowerCase(),(0,e.isStringFilter)(y)&&(0,e.isStringFilter)(w)){if(b===","){if(y.operator==="~"&&l(y,w))return{...y,escaped_values:[...y.escaped_values,...w.escaped_values]};if((0,e.isStringCondition)(y)&&l(y,w))return{...y,values:[...y.values,...w.values]}}const C=b===","?",":b==="|"?"or":b===";"?"and":void 0;if(C)return y.operator===C?{...y,members:[...y.members,w]}:{operator:C,members:[y,w]}}return null}function u(y,b,w){if(b=b.toLowerCase(),(0,e.isNumberFilter)(y)&&(0,e.isNumberFilter)(w)){if(b==="or"&&y.operator==="="&&l(y,w)){const C={operator:"=",values:[...y.values,...w.values]};return y.not&&(C.not=!0),C}if(b==="and"||b==="or")return y.operator===b?{...y,members:[...y.members,w]}:{operator:b,members:[y,w]}}return null}function c(y,b,w,C){return{operator:"range",startValue:b,startOperator:y==="("?">":">=",endValue:w,endOperator:C===")"?"<":"<="}}function p(y,b){return{values:[y,...b]}}function m(y,b){return(0,e.isNumberFilter)(y)&&b?y.operator==="="?{operator:"!=",values:y.values}:y.operator==="!="?{operator:"=",values:y.values}:{...y,not:!0}:y}function g(y,b){return(0,e.isTemporalFilter)(y)&&b?{...y,not:!0}:y}function h(y,b,w){return b=b.toLowerCase(),(0,e.isTemporalFilter)(y)&&(0,e.isTemporalFilter)(w)&&(b==="and"||b==="or")?y.operator===b?{...y,members:[...y.members,w]}:{operator:b,members:[y,w]}:null}function x(y,b){const w={moment:"literal",literal:y};return b&&(w.units=b),w}function v(y){switch(y.toLowerCase()){case"second":case"seconds":return"second";case"minute":case"minutes":return"minute";case"hour":case"hours":return"hour";case"day":case"days":return"day";case"week":case"weeks":return"week";case"month":case"months":return"month";case"quarter":case"quarters":return"quarter";case"year":case"years":return"year"}}return tt}var E0;function ey(){if(E0)return zr;E0=1;var e=zr&&zr.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(zr,"__esModule",{value:!0});function t(u){return u[0]}const r=e(bc()),o=Fl(),s=r.default.keywords({AND:"and",OR:"or",NOT:"not",NULL_KW:"null",TO:"to"}),i=r.default.compile({WS:/[ \t]+/,id:{match:/[a-zA-Z]+/,type:u=>s(u.toLowerCase())},oparen:"(",cparen:")",obrack:"[",cbrack:"]",comma:",",op:/<=|>=|<|>/,ne:"!=",eq:"=",float:/-?(?:\d+)?\.\d+(?:[Ee][+-]?\d+)?/,numberE:/-?\d+[Ee][+-]?\d+/,integer:/-?\d+/}),l=i.next;i.next=(u=>()=>{for(;;){const c=u.call(i);if(c===void 0||c.type!=="WS")return c}})(l);const a={Lexer:i,ParserRules:[{name:"numberFilter",symbols:["numberFilter","conjunction","numberUnary"],postprocess:([u,c,p])=>(0,o.joinNumbers)(u,c[0].text,p)},{name:"numberFilter",symbols:["numberUnary"],postprocess:u=>u[0]},{name:"numberUnary$ebnf$1",symbols:[i.has("NOT")?{type:"NOT"}:NOT],postprocess:t},{name:"numberUnary$ebnf$1",symbols:[],postprocess:()=>null},{name:"numberUnary",symbols:["numberUnary$ebnf$1","clause"],postprocess:([u,c])=>(0,o.numNot)(c,u)},{name:"clause",symbols:[i.has("NULL_KW")?{type:"NULL_KW"}:NULL_KW],postprocess:()=>({operator:"null"})},{name:"clause$ebnf$1",symbols:[]},{name:"clause$ebnf$1",symbols:["clause$ebnf$1","numberList"],postprocess:u=>u[0].concat([u[1]])},{name:"clause",symbols:["N","clause$ebnf$1"],postprocess:([u,c])=>({operator:"=",...(0,o.mkValues)(u,c)})},{name:"clause$ebnf$2",symbols:[]},{name:"clause$ebnf$2",symbols:["clause$ebnf$2","numberList"],postprocess:u=>u[0].concat([u[1]])},{name:"clause",symbols:[i.has("eq")?{type:"eq"}:eq,"N","clause$ebnf$2"],postprocess:([u,c,p])=>({operator:"=",...(0,o.mkValues)(c,p)})},{name:"clause$ebnf$3",symbols:[]},{name:"clause$ebnf$3",symbols:["clause$ebnf$3","numberList"],postprocess:u=>u[0].concat([u[1]])},{name:"clause",symbols:[i.has("ne")?{type:"ne"}:ne,"N","clause$ebnf$3"],postprocess:([u,c,p])=>({operator:"!=",...(0,o.mkValues)(c,p)})},{name:"clause",symbols:[i.has("op")?{type:"op"}:op,"N"],postprocess:([u,c])=>({operator:u.text,values:[c]})},{name:"clause",symbols:[i.has("oparen")?{type:"oparen"}:oparen,"numberFilter",i.has("cparen")?{type:"cparen"}:cparen],postprocess:([u,c,p])=>({operator:"()",expr:c})},{name:"clause",symbols:["openInterval","N",i.has("TO")?{type:"TO"}:TO,"N","closeInterval"],postprocess:([u,c,p,m,g])=>(0,o.mkRange)(u[0].text,c,m,g[0].text)},{name:"numberList",symbols:[i.has("comma")?{type:"comma"}:comma,"N"],postprocess:([u,c])=>c},{name:"closeInterval",symbols:[i.has("cbrack")?{type:"cbrack"}:cbrack]},{name:"closeInterval",symbols:[i.has("cparen")?{type:"cparen"}:cparen]},{name:"openInterval",symbols:[i.has("obrack")?{type:"obrack"}:obrack]},{name:"openInterval",symbols:[i.has("oparen")?{type:"oparen"}:oparen]},{name:"N$subexpression$1",symbols:[i.has("float")?{type:"float"}:float]},{name:"N$subexpression$1",symbols:[i.has("numberE")?{type:"numberE"}:numberE]},{name:"N$subexpression$1",symbols:[i.has("integer")?{type:"integer"}:integer]},{name:"N",symbols:["N$subexpression$1"],postprocess:([u])=>u[0].text},{name:"conjunction",symbols:[i.has("OR")?{type:"OR"}:OR]},{name:"conjunction",symbols:[i.has("AND")?{type:"AND"}:AND]}],ParserStart:"numberFilter"};return zr.default=a,zr}var wi={},R0;function Cc(){if(R0)return wi;R0=1,Object.defineProperty(wi,"__esModule",{value:!0}),wi.run_parser=t;const e=ko();function t(r,o){try{o.feed(r);const i=o.finish()[0];return(0,e.isFilterExpression)(i)?{parsed:i,log:[]}:{parsed:null,log:[]}}catch(s){let i=s.message,l=1,a=r.length;if(s.token){const u=s.token;l=u.col,a=u.text.length;const p=s.message.match(/(?<=A ).*(?= based on:)/g).map(m=>m.replace(/\s+token/i,""));i=`Unexpected ${u.type} token "${u.value}"`,p&&p.length&&(i+=` Tokens expected: ${[...new Set(p)]}`)}return{parsed:null,log:[{message:i,startIndex:l-1,endIndex:l-1+a-1,severity:"error"}]}}}return wi}var A0;function ty(){return A0||(A0=1,function(e){var t=Ft&&Ft.__createBinding||(Object.create?function(c,p,m,g){g===void 0&&(g=m);var h=Object.getOwnPropertyDescriptor(p,m);(!h||("get"in h?!p.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return p[m]}}),Object.defineProperty(c,g,h)}:function(c,p,m,g){g===void 0&&(g=m),c[g]=p[m]}),r=Ft&&Ft.__setModuleDefault||(Object.create?function(c,p){Object.defineProperty(c,"default",{enumerable:!0,value:p})}:function(c,p){c.default=p}),o=Ft&&Ft.__importStar||function(){var c=function(p){return c=Object.getOwnPropertyNames||function(m){var g=[];for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&(g[g.length]=h);return g},c(p)};return function(p){if(p&&p.__esModule)return p;var m={};if(p!=null)for(var g=c(p),h=0;h<g.length;h++)g[h]!=="default"&&t(m,p,g[h]);return r(m,p),m}}(),s=Ft&&Ft.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.NumberFilterExpression=void 0;const i=ko(),l=o(wc()),a=s(ey()),u=Cc();e.NumberFilterExpression={parse(c){if(c.match(/^\s*$/))return{parsed:null,log:[]};const p=new l.Parser(l.Grammar.fromCompiled(a.default)),m=(0,u.run_parser)(c,p);return m.parsed&&(0,i.isNumberFilter)(m.parsed)?{parsed:m.parsed,log:[]}:{parsed:null,log:m.log}},unparse(c){if(c===null)return"";switch(c.operator){case"=":return c.values.join(", ");case"!=":return"!= "+c.values.join(", ");case">":case"<":case"<=":case">=":return c.not?c.values.map(p=>c.operator==="="?`not ${p}`:`not ${c.operator} ${p}`).join(", "):c.values.map(p=>`${c.operator} ${p}`).join(", ");case"range":{const p=c.startOperator===">"?"(":"[",m=c.endOperator==="<"?")":"]",g=`${p}${c.startValue} to ${c.endValue}${m}`;return c.not?`not ${g}`:g}case"null":return c.not?"not null":"null";case"and":case"or":return c.members.map(p=>e.NumberFilterExpression.unparse(p)).join(` ${c.operator} `);case"()":{const p="("+e.NumberFilterExpression.unparse(c.expr)+")";return c.not?"not "+p:p}}return`no unparse for ${JSON.stringify(c)}`}}}(Ft)),Ft}var Bt={},qr={},T0;function ny(){if(T0)return qr;T0=1;var e=qr&&qr.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(qr,"__esModule",{value:!0});function t(a){return a[0]}const r=e(bc()),o=Fl(),s=r.default.compile({WS:/[ \t]+/,comma:",",semi:";",or:"|",open:"(",close:")",minus:"-",matchStr:/(?:\\[^\n]|[^\n,;()|])+/}),i=s.next;s.next=(a=>()=>{for(;;){const u=a.call(s);if(u==null||u.type!=="WS")return u}})(i);const l={Lexer:s,ParserRules:[{name:"stringFilter",symbols:["stringFilter","conjunction","sfUnary"],postprocess:([a,u,c])=>(0,o.conjoin)(a,u[0].text,c)},{name:"stringFilter",symbols:["sfUnary"],postprocess:a=>a[0]},{name:"sfUnary$ebnf$1",symbols:[s.has("minus")?{type:"minus"}:minus],postprocess:t},{name:"sfUnary$ebnf$1",symbols:[],postprocess:()=>null},{name:"sfUnary",symbols:["sfUnary$ebnf$1","clause"],postprocess:a=>(0,o.maybeNot)(a)},{name:"parens",symbols:[s.has("open")?{type:"open"}:open,"stringFilter",s.has("close")?{type:"close"}:close],postprocess:([a,u,c])=>({operator:"()",expr:u})},{name:"clause",symbols:[s.has("matchStr")?{type:"matchStr"}:matchStr],postprocess:([a])=>(0,o.matchOp)(a.text)},{name:"clause",symbols:["parens"],postprocess:a=>a[0]},{name:"conjunction",symbols:[s.has("comma")?{type:"comma"}:comma]},{name:"conjunction",symbols:[s.has("semi")?{type:"semi"}:semi]},{name:"conjunction",symbols:[s.has("or")?{type:"or"}:or]}],ParserStart:"stringFilter"};return qr.default=l,qr}var j0;function ry(){return j0||(j0=1,function(e){var t=Bt&&Bt.__createBinding||(Object.create?function(p,m,g,h){h===void 0&&(h=g);var x=Object.getOwnPropertyDescriptor(m,g);(!x||("get"in x?!m.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return m[g]}}),Object.defineProperty(p,h,x)}:function(p,m,g,h){h===void 0&&(h=g),p[h]=m[g]}),r=Bt&&Bt.__setModuleDefault||(Object.create?function(p,m){Object.defineProperty(p,"default",{enumerable:!0,value:m})}:function(p,m){p.default=m}),o=Bt&&Bt.__importStar||function(){var p=function(m){return p=Object.getOwnPropertyNames||function(g){var h=[];for(var x in g)Object.prototype.hasOwnProperty.call(g,x)&&(h[h.length]=x);return h},p(m)};return function(m){if(m&&m.__esModule)return m;var g={};if(m!=null)for(var h=p(m),x=0;x<h.length;x++)h[x]!=="default"&&t(g,m,h[x]);return r(g,m),g}}(),s=Bt&&Bt.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.StringFilterExpression=void 0;const i=ko(),l=o(wc()),a=s(ny()),u=Fl(),c=Cc();e.StringFilterExpression={parse(p){if(p.match(/^\s*$/))return{parsed:null,log:[]};const m=new l.Parser(l.Grammar.fromCompiled(a.default)),g=(0,c.run_parser)(p,m);return g.parsed&&(0,i.isStringFilter)(g.parsed)?{parsed:g.parsed,log:[]}:{parsed:null,log:g.log}},unparse(p){if(p===null)return"";switch(p.operator){case"=":return p.not?p.values.map(m=>"-"+(0,u.escape)(m)).join(", "):p.values.map(m=>(0,u.escape)(m)).join(", ");case"~":return p.not?p.escaped_values.map(m=>"-"+m).join(", "):p.escaped_values.join(", ");case"starts":return p.not?p.values.map(m=>"-"+(0,u.escape)(m)+"%").join(", "):p.values.map(m=>(0,u.escape)(m)+"%").join(", ");case"ends":return p.not?p.values.map(m=>"-%"+(0,u.escape)(m)).join(", "):p.values.map(m=>"%"+(0,u.escape)(m)).join(", ");case"contains":return p.not?p.values.map(m=>"-%"+(0,u.escape)(m)+"%").join(", "):p.values.map(m=>"%"+(0,u.escape)(m)+"%").join(", ");case"or":return p.members.map(m=>e.StringFilterExpression.unparse(m)).join(" | ");case"and":return p.members.map(m=>e.StringFilterExpression.unparse(m)).join("; ");case",":return p.members.map(m=>e.StringFilterExpression.unparse(m)).join(", ");case"()":{const m="("+e.StringFilterExpression.unparse(p.expr)+")";return p.not?"-"+m:m}case"null":return p.not?"-null":"null";case"empty":return p.not?"-empty":"empty"}}}}(Bt)),Bt}var $t={},Wr={},D0;function oy(){if(D0)return Wr;D0=1;var e=Wr&&Wr.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Wr,"__esModule",{value:!0});function t(u){return u[0]}const r=e(bc()),o=Fl(),s=r.default.keywords({AND:"and",OR:"or",NOT:"not",NULL_KW:"null",TO:"to",NOW:"now",LAST:"last",THIS:"this",NEXT:"next",AGO:"ago",FROM:"from",BEFORE:"before",AFTER:"after",THROUGH:"through",STARTING:"starting",FOR:"for",TODAY:"today",YESTERDAY:"yesterday",TOMORROW:"tomorrow",SECOND:"second",MINUTE:"minute",HOUR:"hour",DAY:"day",WEEK:"week",MONTH:"month",QUARTER:"quarter",YEAR:"year",SECONDS:"seconds",MINUTES:"minutes",HOURS:"hours",DAYS:"days",WEEKS:"weeks",MONTHS:"months",QUARTERS:"quarters",YEARS:"years",MONDAY:"monday",TUESDAY:"tuesday",WEDNESDAY:"wednesday",THURSDAY:"thursday",FRIDAY:"friday",SATURDAY:"saturday",SUNDAY:"sunday"}),i=r.default.compile({WS:/[ \t]+/,id:{match:/[a-zA-Z]+/,type:u=>s(u.toLowerCase())},oparen:"(",cparen:")",comma:",",literal:/\d\d\d\d-\d\d-\d\d[ Tt]\d\d:\d\d(?::\d\d(?:[.,]\d*)?)/,lit_week:/\d\d\d\d-\d\d-\d\d-[Ww][Kk]/,lit_quarter:/\d\d\d\d-[qQ][1234]/,lit_min:/\d\d\d\d-\d\d-\d\d[ Tt]\d\d:\d\d/,lit_hour:/\d\d\d\d-\d\d-\d\d[ Tt]\d\d/,lit_day:/\d\d\d\d-\d\d-\d\d/,lit_month:/\d\d\d\d-\d\d/,lit_year:/\d\d\d\d/,n:/\d+/}),l=i.next;i.next=(u=>()=>{for(;;){const c=u.call(i);if(c===void 0||c.type!=="WS")return c}})(l);const a={Lexer:i,ParserRules:[{name:"temporalFilter",symbols:["temporalFilter","conjunction","temporalUnary"],postprocess:([u,c,p])=>(0,o.joinTemporal)(u,c[0].text,p)},{name:"temporalFilter",symbols:["temporalUnary"],postprocess:u=>u[0]},{name:"temporalUnary$ebnf$1",symbols:[i.has("NOT")?{type:"NOT"}:NOT],postprocess:t},{name:"temporalUnary$ebnf$1",symbols:[],postprocess:()=>null},{name:"temporalUnary",symbols:["temporalUnary$ebnf$1","clause"],postprocess:([u,c])=>(0,o.temporalNot)(c,u)},{name:"duration",symbols:["number","unit"],postprocess:([u,c])=>({units:c,n:u})},{name:"number",symbols:[i.has("n")?{type:"n"}:n],postprocess:([u])=>u.text},{name:"number",symbols:[i.has("lityear")?{type:"lityear"}:lityear],postprocess:([u])=>u.text},{name:"unit$subexpression$1",symbols:[i.has("SECOND")?{type:"SECOND"}:SECOND]},{name:"unit$subexpression$1",symbols:[i.has("MINUTE")?{type:"MINUTE"}:MINUTE]},{name:"unit$subexpression$1",symbols:[i.has("HOUR")?{type:"HOUR"}:HOUR]},{name:"unit$subexpression$1",symbols:[i.has("DAY")?{type:"DAY"}:DAY]},{name:"unit$subexpression$1",symbols:[i.has("WEEK")?{type:"WEEK"}:WEEK]},{name:"unit$subexpression$1",symbols:[i.has("MONTH")?{type:"MONTH"}:MONTH]},{name:"unit$subexpression$1",symbols:[i.has("QUARTER")?{type:"QUARTER"}:QUARTER]},{name:"unit$subexpression$1",symbols:[i.has("YEAR")?{type:"YEAR"}:YEAR]},{name:"unit$subexpression$1",symbols:[i.has("SECONDS")?{type:"SECONDS"}:SECONDS]},{name:"unit$subexpression$1",symbols:[i.has("MINUTES")?{type:"MINUTES"}:MINUTES]},{name:"unit$subexpression$1",symbols:[i.has("HOURS")?{type:"HOURS"}:HOURS]},{name:"unit$subexpression$1",symbols:[i.has("DAYS")?{type:"DAYS"}:DAYS]},{name:"unit$subexpression$1",symbols:[i.has("WEEKS")?{type:"WEEKS"}:WEEKS]},{name:"unit$subexpression$1",symbols:[i.has("MONTHS")?{type:"MONTHS"}:MONTHS]},{name:"unit$subexpression$1",symbols:[i.has("QUARTERS")?{type:"QUARTERS"}:QUARTERS]},{name:"unit$subexpression$1",symbols:[i.has("YEARS")?{type:"YEARS"}:YEARS]},{name:"unit",symbols:["unit$subexpression$1"],postprocess:([u])=>(0,o.mkUnits)(u[0].text)},{name:"clause",symbols:[i.has("NULL_KW")?{type:"NULL_KW"}:NULL_KW],postprocess:()=>({operator:"null"})},{name:"clause",symbols:["parens"],postprocess:u=>u[0]},{name:"clause",symbols:["duration"],postprocess:([u])=>({operator:"in_last",...u})},{name:"clause",symbols:[i.has("BEFORE")?{type:"BEFORE"}:BEFORE,"moment"],postprocess:([u,c])=>({operator:"before",before:c})},{name:"clause",symbols:[i.has("STARTING")?{type:"STARTING"}:STARTING,"moment"],postprocess:([u,c])=>({operator:"before",before:c,not:!0})},{name:"clause",symbols:[i.has("AFTER")?{type:"AFTER"}:AFTER,"moment"],postprocess:([u,c])=>({operator:"after",after:c})},{name:"clause",symbols:[i.has("THROUGH")?{type:"THROUGH"}:THROUGH,"moment"],postprocess:([u,c])=>({operator:"after",after:c,not:!0})},{name:"clause",symbols:["moment",i.has("TO")?{type:"TO"}:TO,"moment"],postprocess:([u,c,p])=>({operator:"to",fromMoment:u,toMoment:p})},{name:"clause",symbols:["moment",i.has("FOR")?{type:"FOR"}:FOR,"duration"],postprocess:([u,c,p])=>({...p,operator:"for",begin:u})},{name:"clause$subexpression$1",symbols:[i.has("LAST")?{type:"LAST"}:LAST]},{name:"clause$subexpression$1",symbols:[i.has("NEXT")?{type:"NEXT"}:NEXT]},{name:"clause",symbols:["clause$subexpression$1","duration"],postprocess:([u,c])=>({operator:u[0].text,...c})},{name:"clause",symbols:["moment"],postprocess:([u])=>({operator:"in",in:u})},{name:"lastNextThis",symbols:[i.has("THIS")?{type:"THIS"}:THIS],postprocess:([u])=>u.text.toLowerCase()},{name:"lastNextThis",symbols:[i.has("NEXT")?{type:"NEXT"}:NEXT],postprocess:([u])=>u.text.toLowerCase()},{name:"lastNextThis",symbols:[i.has("LAST")?{type:"LAST"}:LAST],postprocess:([u])=>u.text.toLowerCase()},{name:"moment",symbols:[i.has("NOW")?{type:"NOW"}:NOW],postprocess:()=>({moment:"now"})},{name:"moment",symbols:["lastNextThis","unit"],postprocess:([u,c])=>({moment:u,units:c})},{name:"moment",symbols:[i.has("TODAY")?{type:"TODAY"}:TODAY],postprocess:()=>({moment:"today"})},{name:"moment",symbols:[i.has("YESTERDAY")?{type:"YESTERDAY"}:YESTERDAY],postprocess:()=>({moment:"yesterday"})},{name:"moment",symbols:[i.has("TOMORROW")?{type:"TOMORROW"}:TOMORROW],postprocess:()=>({moment:"tomorrow"})},{name:"moment",symbols:["duration",i.has("AGO")?{type:"AGO"}:AGO],postprocess:([u,c])=>({moment:"ago",...u})},{name:"moment",symbols:["duration",i.has("FROM")?{type:"FROM"}:FROM,i.has("NOW")?{type:"NOW"}:NOW],postprocess:([u,c])=>({moment:"from_now",...u})},{name:"moment",symbols:[i.has("NEXT")?{type:"NEXT"}:NEXT,"weekday"],postprocess:([u,c])=>({moment:c.toLowerCase(),which:"next"})},{name:"moment",symbols:[i.has("LAST")?{type:"LAST"}:LAST,"weekday"],postprocess:([u,c])=>({moment:c.toLowerCase(),which:"last"})},{name:"moment",symbols:["weekday"],postprocess:([u])=>({moment:u.toLowerCase(),which:"last"})},{name:"moment",symbols:["timeLiteral"],postprocess:u=>u[0]},{name:"timeLiteral",symbols:[i.has("literal")?{type:"literal"}:literal],postprocess:([u])=>(0,o.timeLiteral)(u.text)},{name:"timeLiteral",symbols:[i.has("lit_day")?{type:"lit_day"}:lit_day],postprocess:([u])=>(0,o.timeLiteral)(u.text,"day")},{name:"timeLiteral",symbols:[i.has("lit_min")?{type:"lit_min"}:lit_min],postprocess:([u])=>(0,o.timeLiteral)(u.text,"minute")},{name:"timeLiteral",symbols:[i.has("lit_hour")?{type:"lit_hour"}:lit_hour],postprocess:([u])=>(0,o.timeLiteral)(u.text,"hour")},{name:"timeLiteral",symbols:[i.has("lit_month")?{type:"lit_month"}:lit_month],postprocess:([u])=>(0,o.timeLiteral)(u.text,"month")},{name:"timeLiteral",symbols:[i.has("lit_quarter")?{type:"lit_quarter"}:lit_quarter],postprocess:([u])=>(0,o.timeLiteral)(u.text,"quarter")},{name:"timeLiteral",symbols:[i.has("lit_week")?{type:"lit_week"}:lit_week],postprocess:([u])=>(0,o.timeLiteral)(u.text,"week")},{name:"timeLiteral",symbols:[i.has("lit_year")?{type:"lit_year"}:lit_year],postprocess:([u])=>(0,o.timeLiteral)(u.text,"year")},{name:"weekday$subexpression$1",symbols:[i.has("MONDAY")?{type:"MONDAY"}:MONDAY]},{name:"weekday$subexpression$1",symbols:[i.has("TUESDAY")?{type:"TUESDAY"}:TUESDAY]},{name:"weekday$subexpression$1",symbols:[i.has("WEDNESDAY")?{type:"WEDNESDAY"}:WEDNESDAY]},{name:"weekday$subexpression$1",symbols:[i.has("THURSDAY")?{type:"THURSDAY"}:THURSDAY]},{name:"weekday$subexpression$1",symbols:[i.has("FRIDAY")?{type:"FRIDAY"}:FRIDAY]},{name:"weekday$subexpression$1",symbols:[i.has("SATURDAY")?{type:"SATURDAY"}:SATURDAY]},{name:"weekday$subexpression$1",symbols:[i.has("SUNDAY")?{type:"SUNDAY"}:SUNDAY]},{name:"weekday",symbols:["weekday$subexpression$1"],postprocess:([u])=>u[0].text},{name:"parens",symbols:[i.has("oparen")?{type:"oparen"}:oparen,"temporalFilter",i.has("cparen")?{type:"cparen"}:cparen],postprocess:([u,c,p])=>({operator:"()",expr:c})},{name:"conjunction",symbols:[i.has("OR")?{type:"OR"}:OR]},{name:"conjunction",symbols:[i.has("AND")?{type:"AND"}:AND]}],ParserStart:"temporalFilter"};return Wr.default=a,Wr}var L0;function sy(){return L0||(L0=1,function(e){var t=$t&&$t.__createBinding||(Object.create?function(g,h,x,v){v===void 0&&(v=x);var y=Object.getOwnPropertyDescriptor(h,x);(!y||("get"in y?!h.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return h[x]}}),Object.defineProperty(g,v,y)}:function(g,h,x,v){v===void 0&&(v=x),g[v]=h[x]}),r=$t&&$t.__setModuleDefault||(Object.create?function(g,h){Object.defineProperty(g,"default",{enumerable:!0,value:h})}:function(g,h){g.default=h}),o=$t&&$t.__importStar||function(){var g=function(h){return g=Object.getOwnPropertyNames||function(x){var v=[];for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&(v[v.length]=y);return v},g(h)};return function(h){if(h&&h.__esModule)return h;var x={};if(h!=null)for(var v=g(h),y=0;y<v.length;y++)v[y]!=="default"&&t(x,h,v[y]);return r(x,h),x}}(),s=$t&&$t.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.TemporalFilterExpression=void 0;const i=ko(),l=s(oy()),a=o(wc()),u=Cc();e.TemporalFilterExpression={parse(g){if(g.match(/^\s*$/))return{parsed:null,log:[]};const h=new a.Parser(a.Grammar.fromCompiled(l.default)),x=(0,u.run_parser)(g,h);return x.parsed&&(0,i.isTemporalFilter)(x.parsed)?{parsed:x.parsed,log:[]}:{parsed:null,log:x.log}},unparse(g){if(g===null)return"";switch(g.operator){case"null":return c(g,"null");case"in":return c(g,m(g.in));case"()":return"("+e.TemporalFilterExpression.unparse(g.expr)+")";case"in_last":return c(g,p(g));case"last":case"next":return c(g,`${g.operator} ${p(g)}`);case"before":return`${g.not?"starting":"before"} ${m(g.before)}`;case"after":return`${g.not?"through":"after"} ${m(g.after)}`;case"to":return c(g,`${m(g.fromMoment)} to ${m(g.toMoment)}`);case"for":return c(g,`${m(g.begin)} for ${p(g)}`);case"or":return g.members.map(h=>e.TemporalFilterExpression.unparse(h)).join(" or ");case"and":return g.members.map(h=>e.TemporalFilterExpression.unparse(h)).join(" and ")}}};function c(g,h){return"not"in g&&g.not?"not "+h:h}function p(g){return g.n==="1"?`1 ${g.units}`:`${g.n} ${g.units}s`}function m(g){switch(g.moment){case"literal":return g.literal;case"now":case"today":case"yesterday":case"tomorrow":return g.moment;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return g.which==="next"?"next "+g.moment:g.moment;case"this":case"next":case"last":return`${g.moment} ${g.units}`;case"ago":return`${p(g)} ago`;case"from_now":return`${p(g)} from now`}}}($t)),$t}var N0;function iy(){return N0||(N0=1,function(e){var t=yr&&yr.__createBinding||(Object.create?function(a,u,c,p){p===void 0&&(p=c);var m=Object.getOwnPropertyDescriptor(u,c);(!m||("get"in m?!u.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(a,p,m)}:function(a,u,c,p){p===void 0&&(p=c),a[p]=u[c]}),r=yr&&yr.__exportStar||function(a,u){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&t(u,a,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.TemporalFilterExpression=e.StringFilterExpression=e.NumberFilterExpression=e.BooleanFilterExpression=void 0,r(ko(),e);var o=J2();Object.defineProperty(e,"BooleanFilterExpression",{enumerable:!0,get:function(){return o.BooleanFilterExpression}});var s=ty();Object.defineProperty(e,"NumberFilterExpression",{enumerable:!0,get:function(){return s.NumberFilterExpression}});var i=ry();Object.defineProperty(e,"StringFilterExpression",{enumerable:!0,get:function(){return i.StringFilterExpression}});var l=sy();Object.defineProperty(e,"TemporalFilterExpression",{enumerable:!0,get:function(){return l.TemporalFilterExpression}})}(yr)),yr}var bn=iy(),ly=Object.defineProperty,ay=Object.getPrototypeOf,uy=Reflect.get,$p=e=>{throw TypeError(e)},cy=(e,t,r)=>t in e?ly(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t,r)=>cy(e,typeof t!="symbol"?t+"":t,r),_c=(e,t,r)=>t.has(e)||$p("Cannot "+r),ut=(e,t,r)=>(_c(e,t,"read from private field"),r?r.call(e):t.get(e)),Gr=(e,t,r)=>t.has(e)?$p("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),nn=(e,t,r,o)=>(_c(e,t,"write to private field"),t.set(e,r),r),M0=(e,t,r)=>(_c(e,t,"access private method"),r),dy=(e,t,r)=>uy(ay(e),r,t),Ur,wn,vr,Xn,Yr,br,Hr,Ci,Pa,es;function q(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e?.(s),r===!1||!s.defaultPrevented)return t?.(s)}}function I0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Bl(...e){return t=>{let r=!1;const o=e.map(s=>{const i=I0(s,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<o.length;s++){const i=o[s];typeof i=="function"?i():I0(e[s],null)}}}}function ae(...e){return f.useCallback(Bl(...e),e)}function fy(e,t){const r=f.createContext(t),o=i=>{const{children:l,...a}=i,u=f.useMemo(()=>a,Object.values(a));return d.jsx(r.Provider,{value:u,children:l})};o.displayName=e+"Provider";function s(i){const l=f.useContext(r);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[o,s]}function Kt(e,t=[]){let r=[];function o(i,l){const a=f.createContext(l),u=r.length;r=[...r,l];const c=m=>{var g;const{scope:h,children:x,...v}=m,y=((g=h?.[e])==null?void 0:g[u])||a,b=f.useMemo(()=>v,Object.values(v));return d.jsx(y.Provider,{value:b,children:x})};c.displayName=i+"Provider";function p(m,g){var h;const x=((h=g?.[e])==null?void 0:h[u])||a,v=f.useContext(x);if(v)return v;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${i}\``)}return[c,p]}const s=()=>{const i=r.map(l=>f.createContext(l));return function(a){const u=a?.[e]||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return s.scopeName=e,[o,py(s,...t)]}function py(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const l=o.reduce((a,{useScope:u,scopeName:c})=>{const m=u(i)[`__scope${c}`];return{...a,...m}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return r.scopeName=t.scopeName,r}var lr=f.forwardRef((e,t)=>{const{children:r,...o}=e,s=f.Children.toArray(r),i=s.find(my);if(i){const l=i.props.children,a=s.map(u=>u===i?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:u);return d.jsx(Su,{...o,ref:t,children:f.isValidElement(l)?f.cloneElement(l,void 0,a):null})}return d.jsx(Su,{...o,ref:t,children:r})});lr.displayName="Slot";var Su=f.forwardRef((e,t)=>{const{children:r,...o}=e;if(f.isValidElement(r)){const s=gy(r),i=hy(o,r.props);return r.type!==f.Fragment&&(i.ref=t?Bl(t,s):s),f.cloneElement(r,i)}return f.Children.count(r)>1?f.Children.only(null):null});Su.displayName="SlotClone";var zp=({children:e})=>d.jsx(d.Fragment,{children:e});function my(e){return f.isValidElement(e)&&e.type===zp}function hy(e,t){const r={...t};for(const o in t){const s=e[o],i=t[o];/^on[A-Z]/.test(o)?s&&i?r[o]=(...a)=>{i(...a),s(...a)}:s&&(r[o]=s):o==="style"?r[o]={...s,...i}:o==="className"&&(r[o]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}function gy(e){var t,r;let o=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var xy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ee=xy.reduce((e,t)=>{const r=f.forwardRef((o,s)=>{const{asChild:i,...l}=o,a=i?lr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(a,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function qp(e,t){e&&Rn.flushSync(()=>e.dispatchEvent(t))}function Ye(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])}function yy(e,t=globalThis?.document){const r=Ye(e);f.useEffect(()=>{const o=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[r,t])}var vy="DismissableLayer",ku="dismissableLayer.update",by="dismissableLayer.pointerDownOutside",wy="dismissableLayer.focusOutside",O0,Wp=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Eo=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:l,onDismiss:a,...u}=e,c=f.useContext(Wp),[p,m]=f.useState(null),g=p?.ownerDocument??globalThis?.document,[,h]=f.useState({}),x=ae(t,R=>m(R)),v=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=p?v.indexOf(p):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,_=w>=b,k=Sy(R=>{const j=R.target,D=[...c.branches].some(I=>I.contains(j));!_||D||(s?.(R),l?.(R),R.defaultPrevented||a?.())},g),E=ky(R=>{const j=R.target;[...c.branches].some(I=>I.contains(j))||(i?.(R),l?.(R),R.defaultPrevented||a?.())},g);return yy(R=>{w===c.layers.size-1&&(o?.(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},g),f.useEffect(()=>{if(p)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(O0=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),P0(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=O0)}},[p,g,r,c]),f.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),P0())},[p,c]),f.useEffect(()=>{const R=()=>h({});return document.addEventListener(ku,R),()=>document.removeEventListener(ku,R)},[]),d.jsx(ee.div,{...u,ref:x,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,E.onFocusCapture),onBlurCapture:q(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,k.onPointerDownCapture)})});Eo.displayName=vy;var Cy="DismissableLayerBranch",_y=f.forwardRef((e,t)=>{const r=f.useContext(Wp),o=f.useRef(null),s=ae(t,o);return f.useEffect(()=>{const i=o.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),d.jsx(ee.div,{...e,ref:s})});_y.displayName=Cy;function Sy(e,t=globalThis?.document){const r=Ye(e),o=f.useRef(!1),s=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!o.current){let u=function(){Gp(by,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=u,t.addEventListener("click",s.current,{once:!0})):u()}else t.removeEventListener("click",s.current);o.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}function ky(e,t=globalThis?.document){const r=Ye(e),o=f.useRef(!1);return f.useEffect(()=>{const s=i=>{i.target&&!o.current&&Gp(wy,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function P0(){const e=new CustomEvent(ku);document.dispatchEvent(e)}function Gp(e,t,r,{discrete:o}){const s=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),o?qp(s,i):s.dispatchEvent(i)}var lt=globalThis?.document?f.useLayoutEffect:()=>{},Ey=M2.useId||(()=>{}),Ry=0;function jt(e){const[t,r]=f.useState(Ey());return lt(()=>{r(o=>o??String(Ry++))},[e]),t?`radix-${t}`:""}const Ay=["top","right","bottom","left"],ar=Math.min,vt=Math.max,il=Math.round,_i=Math.floor,cn=e=>({x:e,y:e}),Ty={left:"right",right:"left",bottom:"top",top:"bottom"},jy={start:"end",end:"start"};function Eu(e,t,r){return vt(e,ar(t,r))}function In(e,t){return typeof e=="function"?e(t):e}function On(e){return e.split("-")[0]}function Ro(e){return e.split("-")[1]}function Sc(e){return e==="x"?"y":"x"}function kc(e){return e==="y"?"height":"width"}function ur(e){return["top","bottom"].includes(On(e))?"y":"x"}function Ec(e){return Sc(ur(e))}function Dy(e,t,r){r===void 0&&(r=!1);const o=Ro(e),s=Ec(e),i=kc(s);let l=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=ll(l)),[l,ll(l)]}function Ly(e){const t=ll(e);return[Ru(e),t,Ru(t)]}function Ru(e){return e.replace(/start|end/g,t=>jy[t])}function Ny(e,t,r){const o=["left","right"],s=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?i:l;default:return[]}}function My(e,t,r,o){const s=Ro(e);let i=Ny(On(e),r==="start",o);return s&&(i=i.map(l=>l+"-"+s),t&&(i=i.concat(i.map(Ru)))),i}function ll(e){return e.replace(/left|right|bottom|top/g,t=>Ty[t])}function Iy(e){return{top:0,right:0,bottom:0,left:0,...e}}function Up(e){return typeof e!="number"?Iy(e):{top:e,right:e,bottom:e,left:e}}function al(e){const{x:t,y:r,width:o,height:s}=e;return{width:o,height:s,top:r,left:t,right:t+o,bottom:r+s,x:t,y:r}}function F0(e,t,r){let{reference:o,floating:s}=e;const i=ur(t),l=Ec(t),a=kc(l),u=On(t),c=i==="y",p=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,g=o[a]/2-s[a]/2;let h;switch(u){case"top":h={x:p,y:o.y-s.height};break;case"bottom":h={x:p,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:m};break;case"left":h={x:o.x-s.width,y:m};break;default:h={x:o.x,y:o.y}}switch(Ro(t)){case"start":h[l]-=g*(r&&c?-1:1);break;case"end":h[l]+=g*(r&&c?-1:1);break}return h}const Oy=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:i=[],platform:l}=r,a=i.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:s}),{x:p,y:m}=F0(c,o,u),g=o,h={},x=0;for(let v=0;v<a.length;v++){const{name:y,fn:b}=a[v],{x:w,y:C,data:_,reset:k}=await b({x:p,y:m,initialPlacement:o,placement:g,strategy:s,middlewareData:h,rects:c,platform:l,elements:{reference:e,floating:t}});p=w??p,m=C??m,h={...h,[y]:{...h[y],..._}},k&&x<=50&&(x++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(c=k.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:s}):k.rects),{x:p,y:m}=F0(c,g,u)),v=-1)}return{x:p,y:m,placement:g,strategy:s,middlewareData:h}};async function Es(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:g=!1,padding:h=0}=In(t,e),x=Up(h),y=a[g?m==="floating"?"reference":"floating":m],b=al(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:u})),w=m==="floating"?{x:o,y:s,width:l.floating.width,height:l.floating.height}:l.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},k=al(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:C,strategy:u}):w);return{top:(b.top-k.top+x.top)/_.y,bottom:(k.bottom-b.bottom+x.bottom)/_.y,left:(b.left-k.left+x.left)/_.x,right:(k.right-b.right+x.right)/_.x}}const Py=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:c,padding:p=0}=In(e,t)||{};if(c==null)return{};const m=Up(p),g={x:r,y:o},h=Ec(s),x=kc(h),v=await l.getDimensions(c),y=h==="y",b=y?"top":"left",w=y?"bottom":"right",C=y?"clientHeight":"clientWidth",_=i.reference[x]+i.reference[h]-g[h]-i.floating[x],k=g[h]-i.reference[h],E=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c));let R=E?E[C]:0;(!R||!await(l.isElement==null?void 0:l.isElement(E)))&&(R=a.floating[C]||i.floating[x]);const j=_/2-k/2,D=R/2-v[x]/2-1,I=ar(m[b],D),B=ar(m[w],D),U=I,K=R-v[x]-B,$=R/2-v[x]/2+j,S=Eu(U,$,K),T=!u.arrow&&Ro(s)!=null&&$!==S&&i.reference[x]/2-($<U?I:B)-v[x]/2<0,M=T?$<U?$-U:$-K:0;return{[h]:g[h]+M,data:{[h]:S,centerOffset:$-S-M,...T&&{alignmentOffset:M}},reset:T}}}),Fy=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:i,rects:l,initialPlacement:a,platform:u,elements:c}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:v=!0,...y}=In(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const b=On(s),w=ur(a),C=On(a)===a,_=await(u.isRTL==null?void 0:u.isRTL(c.floating)),k=g||(C||!v?[ll(a)]:Ly(a)),E=x!=="none";!g&&E&&k.push(...My(a,v,x,_));const R=[a,...k],j=await Es(t,y),D=[];let I=((o=i.flip)==null?void 0:o.overflows)||[];if(p&&D.push(j[b]),m){const $=Dy(s,l,_);D.push(j[$[0]],j[$[1]])}if(I=[...I,{placement:s,overflows:D}],!D.every($=>$<=0)){var B,U;const $=(((B=i.flip)==null?void 0:B.index)||0)+1,S=R[$];if(S)return{data:{index:$,overflows:I},reset:{placement:S}};let T=(U=I.filter(M=>M.overflows[0]<=0).sort((M,H)=>M.overflows[1]-H.overflows[1])[0])==null?void 0:U.placement;if(!T)switch(h){case"bestFit":{var K;const M=(K=I.filter(H=>{if(E){const z=ur(H.placement);return z===w||z==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(z=>z>0).reduce((z,fe)=>z+fe,0)]).sort((H,z)=>H[1]-z[1])[0])==null?void 0:K[0];M&&(T=M);break}case"initialPlacement":T=a;break}if(s!==T)return{reset:{placement:T}}}return{}}}};function B0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $0(e){return Ay.some(t=>e[t]>=0)}const By=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:o="referenceHidden",...s}=In(e,t);switch(o){case"referenceHidden":{const i=await Es(t,{...s,elementContext:"reference"}),l=B0(i,r.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:$0(l)}}}case"escaped":{const i=await Es(t,{...s,altBoundary:!0}),l=B0(i,r.floating);return{data:{escapedOffsets:l,escaped:$0(l)}}}default:return{}}}}};async function $y(e,t){const{placement:r,platform:o,elements:s}=e,i=await(o.isRTL==null?void 0:o.isRTL(s.floating)),l=On(r),a=Ro(r),u=ur(r)==="y",c=["left","top"].includes(l)?-1:1,p=i&&u?-1:1,m=In(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:x}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&typeof x=="number"&&(h=a==="end"?x*-1:x),u?{x:h*p,y:g*c}:{x:g*c,y:h*p}}const zy=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:i,placement:l,middlewareData:a}=t,u=await $y(t,e);return l===((r=a.offset)==null?void 0:r.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:s+u.x,y:i+u.y,data:{...u,placement:l}}}}},qy=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:y=>{let{x:b,y:w}=y;return{x:b,y:w}}},...u}=In(e,t),c={x:r,y:o},p=await Es(t,u),m=ur(On(s)),g=Sc(m);let h=c[g],x=c[m];if(i){const y=g==="y"?"top":"left",b=g==="y"?"bottom":"right",w=h+p[y],C=h-p[b];h=Eu(w,h,C)}if(l){const y=m==="y"?"top":"left",b=m==="y"?"bottom":"right",w=x+p[y],C=x-p[b];x=Eu(w,x,C)}const v=a.fn({...t,[g]:h,[m]:x});return{...v,data:{x:v.x-r,y:v.y-o,enabled:{[g]:i,[m]:l}}}}}},Wy=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:s,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=In(e,t),p={x:r,y:o},m=ur(s),g=Sc(m);let h=p[g],x=p[m];const v=In(a,t),y=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const C=g==="y"?"height":"width",_=i.reference[g]-i.floating[C]+y.mainAxis,k=i.reference[g]+i.reference[C]-y.mainAxis;h<_?h=_:h>k&&(h=k)}if(c){var b,w;const C=g==="y"?"width":"height",_=["top","left"].includes(On(s)),k=i.reference[m]-i.floating[C]+(_&&((b=l.offset)==null?void 0:b[m])||0)+(_?0:y.crossAxis),E=i.reference[m]+i.reference[C]+(_?0:((w=l.offset)==null?void 0:w[m])||0)-(_?y.crossAxis:0);x<k?x=k:x>E&&(x=E)}return{[g]:h,[m]:x}}}},Gy=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:s,rects:i,platform:l,elements:a}=t,{apply:u=()=>{},...c}=In(e,t),p=await Es(t,c),m=On(s),g=Ro(s),h=ur(s)==="y",{width:x,height:v}=i.floating;let y,b;m==="top"||m==="bottom"?(y=m,b=g===(await(l.isRTL==null?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(b=m,y=g==="end"?"top":"bottom");const w=v-p.top-p.bottom,C=x-p.left-p.right,_=ar(v-p[y],w),k=ar(x-p[b],C),E=!t.middlewareData.shift;let R=_,j=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(j=C),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(R=w),E&&!g){const I=vt(p.left,0),B=vt(p.right,0),U=vt(p.top,0),K=vt(p.bottom,0);h?j=x-2*(I!==0||B!==0?I+B:vt(p.left,p.right)):R=v-2*(U!==0||K!==0?U+K:vt(p.top,p.bottom))}await u({...t,availableWidth:j,availableHeight:R});const D=await l.getDimensions(a.floating);return x!==D.width||v!==D.height?{reset:{rects:!0}}:{}}}};function $l(){return typeof window<"u"}function Ao(e){return Yp(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mn(e){var t;return(t=(Yp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yp(e){return $l()?e instanceof Node||e instanceof bt(e).Node:!1}function Ut(e){return $l()?e instanceof Element||e instanceof bt(e).Element:!1}function dn(e){return $l()?e instanceof HTMLElement||e instanceof bt(e).HTMLElement:!1}function z0(e){return!$l()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function Us(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Yt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function Uy(e){return["table","td","th"].includes(Ao(e))}function zl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Rc(e){const t=Ac(),r=Ut(e)?Yt(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function Yy(e){let t=cr(e);for(;dn(t)&&!go(t);){if(Rc(t))return t;if(zl(t))return null;t=cr(t)}return null}function Ac(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function go(e){return["html","body","#document"].includes(Ao(e))}function Yt(e){return bt(e).getComputedStyle(e)}function ql(e){return Ut(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cr(e){if(Ao(e)==="html")return e;const t=e.assignedSlot||e.parentNode||z0(e)&&e.host||mn(e);return z0(t)?t.host:t}function Hp(e){const t=cr(e);return go(t)?e.ownerDocument?e.ownerDocument.body:e.body:dn(t)&&Us(t)?t:Hp(t)}function Rs(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=Hp(e),i=s===((o=e.ownerDocument)==null?void 0:o.body),l=bt(s);if(i){const a=Au(l);return t.concat(l,l.visualViewport||[],Us(s)?s:[],a&&r?Rs(a):[])}return t.concat(s,Rs(s,[],r))}function Au(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vp(e){const t=Yt(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const s=dn(e),i=s?e.offsetWidth:r,l=s?e.offsetHeight:o,a=il(r)!==i||il(o)!==l;return a&&(r=i,o=l),{width:r,height:o,$:a}}function Tc(e){return Ut(e)?e:e.contextElement}function io(e){const t=Tc(e);if(!dn(t))return cn(1);const r=t.getBoundingClientRect(),{width:o,height:s,$:i}=Vp(t);let l=(i?il(r.width):r.width)/o,a=(i?il(r.height):r.height)/s;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const Hy=cn(0);function Xp(e){const t=bt(e);return!Ac()||!t.visualViewport?Hy:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vy(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==bt(e)?!1:t}function Ar(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),i=Tc(e);let l=cn(1);t&&(o?Ut(o)&&(l=io(o)):l=io(e));const a=Vy(i,r,o)?Xp(i):cn(0);let u=(s.left+a.x)/l.x,c=(s.top+a.y)/l.y,p=s.width/l.x,m=s.height/l.y;if(i){const g=bt(i),h=o&&Ut(o)?bt(o):o;let x=g,v=Au(x);for(;v&&o&&h!==x;){const y=io(v),b=v.getBoundingClientRect(),w=Yt(v),C=b.left+(v.clientLeft+parseFloat(w.paddingLeft))*y.x,_=b.top+(v.clientTop+parseFloat(w.paddingTop))*y.y;u*=y.x,c*=y.y,p*=y.x,m*=y.y,u+=C,c+=_,x=bt(v),v=Au(x)}}return al({width:p,height:m,x:u,y:c})}function jc(e,t){const r=ql(e).scrollLeft;return t?t.left+r:Ar(mn(e)).left+r}function Zp(e,t,r){r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=o.left+t.scrollLeft-(r?0:jc(e,o)),i=o.top+t.scrollTop;return{x:s,y:i}}function Xy(e){let{elements:t,rect:r,offsetParent:o,strategy:s}=e;const i=s==="fixed",l=mn(o),a=t?zl(t.floating):!1;if(o===l||a&&i)return r;let u={scrollLeft:0,scrollTop:0},c=cn(1);const p=cn(0),m=dn(o);if((m||!m&&!i)&&((Ao(o)!=="body"||Us(l))&&(u=ql(o)),dn(o))){const h=Ar(o);c=io(o),p.x=h.x+o.clientLeft,p.y=h.y+o.clientTop}const g=l&&!m&&!i?Zp(l,u,!0):cn(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+p.x+g.x,y:r.y*c.y-u.scrollTop*c.y+p.y+g.y}}function Zy(e){return Array.from(e.getClientRects())}function Ky(e){const t=mn(e),r=ql(e),o=e.ownerDocument.body,s=vt(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=vt(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-r.scrollLeft+jc(e);const a=-r.scrollTop;return Yt(o).direction==="rtl"&&(l+=vt(t.clientWidth,o.clientWidth)-s),{width:s,height:i,x:l,y:a}}function Qy(e,t){const r=bt(e),o=mn(e),s=r.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,u=0;if(s){i=s.width,l=s.height;const c=Ac();(!c||c&&t==="fixed")&&(a=s.offsetLeft,u=s.offsetTop)}return{width:i,height:l,x:a,y:u}}function Jy(e,t){const r=Ar(e,!0,t==="fixed"),o=r.top+e.clientTop,s=r.left+e.clientLeft,i=dn(e)?io(e):cn(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y,u=s*i.x,c=o*i.y;return{width:l,height:a,x:u,y:c}}function q0(e,t,r){let o;if(t==="viewport")o=Qy(e,r);else if(t==="document")o=Ky(mn(e));else if(Ut(t))o=Jy(t,r);else{const s=Xp(e);o={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return al(o)}function Kp(e,t){const r=cr(e);return r===t||!Ut(r)||go(r)?!1:Yt(r).position==="fixed"||Kp(r,t)}function e3(e,t){const r=t.get(e);if(r)return r;let o=Rs(e,[],!1).filter(a=>Ut(a)&&Ao(a)!=="body"),s=null;const i=Yt(e).position==="fixed";let l=i?cr(e):e;for(;Ut(l)&&!go(l);){const a=Yt(l),u=Rc(l);!u&&a.position==="fixed"&&(s=null),(i?!u&&!s:!u&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Us(l)&&!u&&Kp(e,l))?o=o.filter(p=>p!==l):s=a,l=cr(l)}return t.set(e,o),o}function t3(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const l=[...r==="clippingAncestors"?zl(t)?[]:e3(t,this._c):[].concat(r),o],a=l[0],u=l.reduce((c,p)=>{const m=q0(t,p,s);return c.top=vt(m.top,c.top),c.right=ar(m.right,c.right),c.bottom=ar(m.bottom,c.bottom),c.left=vt(m.left,c.left),c},q0(t,a,s));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function n3(e){const{width:t,height:r}=Vp(e);return{width:t,height:r}}function r3(e,t,r){const o=dn(t),s=mn(t),i=r==="fixed",l=Ar(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=cn(0);if(o||!o&&!i)if((Ao(t)!=="body"||Us(s))&&(a=ql(t)),o){const g=Ar(t,!0,i,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else s&&(u.x=jc(s));const c=s&&!o&&!i?Zp(s,a):cn(0),p=l.left+a.scrollLeft-u.x-c.x,m=l.top+a.scrollTop-u.y-c.y;return{x:p,y:m,width:l.width,height:l.height}}function Fa(e){return Yt(e).position==="static"}function W0(e,t){if(!dn(e)||Yt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return mn(e)===r&&(r=r.ownerDocument.body),r}function Qp(e,t){const r=bt(e);if(zl(e))return r;if(!dn(e)){let s=cr(e);for(;s&&!go(s);){if(Ut(s)&&!Fa(s))return s;s=cr(s)}return r}let o=W0(e,t);for(;o&&Uy(o)&&Fa(o);)o=W0(o,t);return o&&go(o)&&Fa(o)&&!Rc(o)?r:o||Yy(e)||r}const o3=async function(e){const t=this.getOffsetParent||Qp,r=this.getDimensions,o=await r(e.floating);return{reference:r3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function s3(e){return Yt(e).direction==="rtl"}const i3={convertOffsetParentRelativeRectToViewportRelativeRect:Xy,getDocumentElement:mn,getClippingRect:t3,getOffsetParent:Qp,getElementRects:o3,getClientRects:Zy,getDimensions:n3,getScale:io,isElement:Ut,isRTL:s3};function Jp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function l3(e,t){let r=null,o;const s=mn(e);function i(){var a;clearTimeout(o),(a=r)==null||a.disconnect(),r=null}function l(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),i();const c=e.getBoundingClientRect(),{left:p,top:m,width:g,height:h}=c;if(a||t(),!g||!h)return;const x=_i(m),v=_i(s.clientWidth-(p+g)),y=_i(s.clientHeight-(m+h)),b=_i(p),C={rootMargin:-x+"px "+-v+"px "+-y+"px "+-b+"px",threshold:vt(0,ar(1,u))||1};let _=!0;function k(E){const R=E[0].intersectionRatio;if(R!==u){if(!_)return l();R?l(!1,R):o=setTimeout(()=>{l(!1,1e-7)},1e3)}R===1&&!Jp(c,e.getBoundingClientRect())&&l(),_=!1}try{r=new IntersectionObserver(k,{...C,root:s.ownerDocument})}catch{r=new IntersectionObserver(k,C)}r.observe(e)}return l(!0),i}function a3(e,t,r,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,c=Tc(e),p=s||i?[...c?Rs(c):[],...Rs(t)]:[];p.forEach(b=>{s&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});const m=c&&a?l3(c,r):null;let g=-1,h=null;l&&(h=new ResizeObserver(b=>{let[w]=b;w&&w.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var C;(C=h)==null||C.observe(t)})),r()}),c&&!u&&h.observe(c),h.observe(t));let x,v=u?Ar(e):null;u&&y();function y(){const b=Ar(e);v&&!Jp(v,b)&&r(),v=b,x=requestAnimationFrame(y)}return r(),()=>{var b;p.forEach(w=>{s&&w.removeEventListener("scroll",r),i&&w.removeEventListener("resize",r)}),m?.(),(b=h)==null||b.disconnect(),h=null,u&&cancelAnimationFrame(x)}}const u3=zy,c3=qy,d3=Fy,f3=Gy,p3=By,G0=Py,m3=Wy,h3=(e,t,r)=>{const o=new Map,s={platform:i3,...r},i={...s.platform,_c:o};return Oy(e,t,{...s,platform:i})};var Yi=typeof document<"u"?f.useLayoutEffect:f.useEffect;function ul(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 r,o,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!ul(e[o],t[o]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(t,s[o]))return!1;for(o=r;o--!==0;){const i=s[o];if(!(i==="_owner"&&e.$$typeof)&&!ul(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function em(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function U0(e,t){const r=em(e);return Math.round(t*r)/r}function Ba(e){const t=f.useRef(e);return Yi(()=>{t.current=e}),t}function g3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:s,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[p,m]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=f.useState(o);ul(g,o)||h(o);const[x,v]=f.useState(null),[y,b]=f.useState(null),w=f.useCallback(H=>{H!==E.current&&(E.current=H,v(H))},[]),C=f.useCallback(H=>{H!==R.current&&(R.current=H,b(H))},[]),_=i||x,k=l||y,E=f.useRef(null),R=f.useRef(null),j=f.useRef(p),D=u!=null,I=Ba(u),B=Ba(s),U=Ba(c),K=f.useCallback(()=>{if(!E.current||!R.current)return;const H={placement:t,strategy:r,middleware:g};B.current&&(H.platform=B.current),h3(E.current,R.current,H).then(z=>{const fe={...z,isPositioned:U.current!==!1};$.current&&!ul(j.current,fe)&&(j.current=fe,Rn.flushSync(()=>{m(fe)}))})},[g,t,r,B,U]);Yi(()=>{c===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(H=>({...H,isPositioned:!1})))},[c]);const $=f.useRef(!1);Yi(()=>($.current=!0,()=>{$.current=!1}),[]),Yi(()=>{if(_&&(E.current=_),k&&(R.current=k),_&&k){if(I.current)return I.current(_,k,K);K()}},[_,k,K,I,D]);const S=f.useMemo(()=>({reference:E,floating:R,setReference:w,setFloating:C}),[w,C]),T=f.useMemo(()=>({reference:_,floating:k}),[_,k]),M=f.useMemo(()=>{const H={position:r,left:0,top:0};if(!T.floating)return H;const z=U0(T.floating,p.x),fe=U0(T.floating,p.y);return a?{...H,transform:"translate("+z+"px, "+fe+"px)",...em(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:z,top:fe}},[r,a,T.floating,p.x,p.y]);return f.useMemo(()=>({...p,update:K,refs:S,elements:T,floatingStyles:M}),[p,K,S,T,M])}const x3=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:o,padding:s}=typeof e=="function"?e(r):e;return o&&t(o)?o.current!=null?G0({element:o.current,padding:s}).fn(r):{}:o?G0({element:o,padding:s}).fn(r):{}}}},y3=(e,t)=>({...u3(e),options:[e,t]}),v3=(e,t)=>({...c3(e),options:[e,t]}),b3=(e,t)=>({...m3(e),options:[e,t]}),w3=(e,t)=>({...d3(e),options:[e,t]}),C3=(e,t)=>({...f3(e),options:[e,t]}),_3=(e,t)=>({...p3(e),options:[e,t]}),S3=(e,t)=>({...x3(e),options:[e,t]});var k3="Arrow",tm=f.forwardRef((e,t)=>{const{children:r,width:o=10,height:s=5,...i}=e;return d.jsx(ee.svg,{...i,ref:t,width:o,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});tm.displayName=k3;var E3=tm;function R3(e){const[t,r]=f.useState(void 0);return lt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let l,a;if("borderBoxSize"in i){const u=i.borderBoxSize,c=Array.isArray(u)?u[0]:u;l=c.inlineSize,a=c.blockSize}else l=e.offsetWidth,a=e.offsetHeight;r({width:l,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else r(void 0)},[e]),t}var Dc="Popper",[nm,mr]=Kt(Dc),[A3,rm]=nm(Dc),om=e=>{const{__scopePopper:t,children:r}=e,[o,s]=f.useState(null);return d.jsx(A3,{scope:t,anchor:o,onAnchorChange:s,children:r})};om.displayName=Dc;var sm="PopperAnchor",im=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:o,...s}=e,i=rm(sm,r),l=f.useRef(null),a=ae(t,l);return f.useEffect(()=>{i.onAnchorChange(o?.current||l.current)}),o?null:d.jsx(ee.div,{...s,ref:a})});im.displayName=sm;var Lc="PopperContent",[T3,j3]=nm(Lc),lm=f.forwardRef((e,t)=>{var r,o,s,i,l,a;const{__scopePopper:u,side:c="bottom",sideOffset:p=0,align:m="center",alignOffset:g=0,arrowPadding:h=0,avoidCollisions:x=!0,collisionBoundary:v=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:_,...k}=e,E=rm(Lc,u),[R,j]=f.useState(null),D=ae(t,ze=>j(ze)),[I,B]=f.useState(null),U=R3(I),K=U?.width??0,$=U?.height??0,S=c+(m!=="center"?"-"+m:""),T=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},M=Array.isArray(v)?v:[v],H=M.length>0,z={padding:T,boundary:M.filter(L3),altBoundary:H},{refs:fe,floatingStyles:Oe,placement:we,isPositioned:Le,middlewareData:Ae}=g3({strategy:"fixed",placement:S,whileElementsMounted:(...ze)=>a3(...ze,{animationFrame:C==="always"}),elements:{reference:E.anchor},middleware:[y3({mainAxis:p+$,alignmentAxis:g}),x&&v3({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?b3():void 0,...z}),x&&w3({...z}),C3({...z,apply:({elements:ze,rects:qe,availableWidth:Ct,availableHeight:_t})=>{const{width:qn,height:xi}=qe.reference,Wn=ze.floating.style;Wn.setProperty("--radix-popper-available-width",`${Ct}px`),Wn.setProperty("--radix-popper-available-height",`${_t}px`),Wn.setProperty("--radix-popper-anchor-width",`${qn}px`),Wn.setProperty("--radix-popper-anchor-height",`${xi}px`)}}),I&&S3({element:I,padding:h}),N3({arrowWidth:K,arrowHeight:$}),w&&_3({strategy:"referenceHidden",...z})]}),[Je,Te]=cm(we),Z=Ye(_);lt(()=>{Le&&Z?.()},[Le,Z]);const ue=(r=Ae.arrow)==null?void 0:r.x,pe=(o=Ae.arrow)==null?void 0:o.y,X=((s=Ae.arrow)==null?void 0:s.centerOffset)!==0,[he,ce]=f.useState();return lt(()=>{R&&ce(window.getComputedStyle(R).zIndex)},[R]),d.jsx("div",{ref:fe.setFloating,"data-radix-popper-content-wrapper":"",style:{...Oe,transform:Le?Oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(i=Ae.transformOrigin)==null?void 0:i.x,(l=Ae.transformOrigin)==null?void 0:l.y].join(" "),...((a=Ae.hide)==null?void 0:a.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(T3,{scope:u,placedSide:Je,onArrowChange:B,arrowX:ue,arrowY:pe,shouldHideArrow:X,children:d.jsx(ee.div,{"data-side":Je,"data-align":Te,...k,ref:D,style:{...k.style,animation:Le?void 0:"none"}})})})});lm.displayName=Lc;var am="PopperArrow",D3={top:"bottom",right:"left",bottom:"top",left:"right"},um=f.forwardRef(function(t,r){const{__scopePopper:o,...s}=t,i=j3(am,o),l=D3[i.placedSide];return d.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:d.jsx(E3,{...s,ref:r,style:{...s.style,display:"block"}})})});um.displayName=am;function L3(e){return e!==null}var N3=e=>({name:"transformOrigin",options:e,fn(t){var r,o,s;const{placement:i,rects:l,middlewareData:a}=t,c=((r=a.arrow)==null?void 0:r.centerOffset)!==0,p=c?0:e.arrowWidth,m=c?0:e.arrowHeight,[g,h]=cm(i),x={start:"0%",center:"50%",end:"100%"}[h],v=(((o=a.arrow)==null?void 0:o.x)??0)+p/2,y=(((s=a.arrow)==null?void 0:s.y)??0)+m/2;let b="",w="";return g==="bottom"?(b=c?x:`${v}px`,w=`${-m}px`):g==="top"?(b=c?x:`${v}px`,w=`${l.floating.height+m}px`):g==="right"?(b=`${-m}px`,w=c?x:`${y}px`):g==="left"&&(b=`${l.floating.width+m}px`,w=c?x:`${y}px`),{data:{x:b,y:w}}}});function cm(e){const[t,r="center"]=e.split("-");return[t,r]}var Wl=om,Ys=im,Gl=lm,Ul=um,M3="Portal",To=f.forwardRef((e,t)=>{var r;const{container:o,...s}=e,[i,l]=f.useState(!1);lt(()=>l(!0),[]);const a=o||i&&((r=globalThis?.document)==null?void 0:r.body);return a?I2.createPortal(d.jsx(ee.div,{...s,ref:t}),a):null});To.displayName=M3;function I3(e,t){return f.useReducer((r,o)=>t[r][o]??r,e)}var Qe=e=>{const{present:t,children:r}=e,o=O3(t),s=typeof r=="function"?r({present:o.isPresent}):f.Children.only(r),i=ae(o.ref,P3(s));return typeof r=="function"||o.isPresent?f.cloneElement(s,{ref:i}):null};Qe.displayName="Presence";function O3(e){const[t,r]=f.useState(),o=f.useRef({}),s=f.useRef(e),i=f.useRef("none"),l=e?"mounted":"unmounted",[a,u]=I3(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=Si(o.current);i.current=a==="mounted"?c:"none"},[a]),lt(()=>{const c=o.current,p=s.current;if(p!==e){const g=i.current,h=Si(c);e?u("MOUNT"):h==="none"||c?.display==="none"?u("UNMOUNT"):u(p&&g!==h?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,u]),lt(()=>{if(t){let c;const p=t.ownerDocument.defaultView??window,m=h=>{const v=Si(o.current).includes(h.animationName);if(h.target===t&&v&&(u("ANIMATION_END"),!s.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},g=h=>{h.target===t&&(i.current=Si(o.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(c=>{c&&(o.current=getComputedStyle(c)),r(c)},[])}}function Si(e){return e?.animationName||"none"}function P3(e){var t,r;let o=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function dr({prop:e,defaultProp:t,onChange:r=()=>{}}){const[o,s]=F3({defaultProp:t,onChange:r}),i=e!==void 0,l=i?e:o,a=Ye(r),u=f.useCallback(c=>{if(i){const m=typeof c=="function"?c(e):c;m!==e&&a(m)}else s(c)},[i,e,s,a]);return[l,u]}function F3({defaultProp:e,onChange:t}){const r=f.useState(e),[o]=r,s=f.useRef(o),i=Ye(t);return f.useEffect(()=>{s.current!==o&&(i(o),s.current=o)},[o,s,i]),r}var B3="VisuallyHidden",Nc=f.forwardRef((e,t)=>d.jsx(ee.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Nc.displayName=B3;var $3=Nc,[Yl,QD]=Kt("Tooltip",[mr]),Hl=mr(),dm="TooltipProvider",z3=700,Tu="tooltip.open",[q3,Mc]=Yl(dm),fm=e=>{const{__scopeTooltip:t,delayDuration:r=z3,skipDelayDuration:o=300,disableHoverableContent:s=!1,children:i}=e,[l,a]=f.useState(!0),u=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const p=c.current;return()=>window.clearTimeout(p)},[]),d.jsx(q3,{scope:t,isOpenDelayed:l,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),a(!1)},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a(!0),o)},[o]),isPointerInTransitRef:u,onPointerInTransitChange:f.useCallback(p=>{u.current=p},[]),disableHoverableContent:s,children:i})};fm.displayName=dm;var Vl="Tooltip",[W3,Hs]=Yl(Vl),jo=e=>{const{__scopeTooltip:t,children:r,open:o,defaultOpen:s=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:a}=e,u=Mc(Vl,e.__scopeTooltip),c=Hl(t),[p,m]=f.useState(null),g=jt(),h=f.useRef(0),x=l??u.disableHoverableContent,v=a??u.delayDuration,y=f.useRef(!1),[b=!1,w]=dr({prop:o,defaultProp:s,onChange:R=>{R?(u.onOpen(),document.dispatchEvent(new CustomEvent(Tu))):u.onClose(),i?.(R)}}),C=f.useMemo(()=>b?y.current?"delayed-open":"instant-open":"closed",[b]),_=f.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,w(!0)},[w]),k=f.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),E=f.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,w(!0),h.current=0},v)},[v,w]);return f.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),d.jsx(Wl,{...c,children:d.jsx(W3,{scope:t,contentId:g,open:b,stateAttribute:C,trigger:p,onTriggerChange:m,onTriggerEnter:f.useCallback(()=>{u.isOpenDelayed?E():_()},[u.isOpenDelayed,E,_]),onTriggerLeave:f.useCallback(()=>{x?k():(window.clearTimeout(h.current),h.current=0)},[k,x]),onOpen:_,onClose:k,disableHoverableContent:x,children:r})})};jo.displayName=Vl;var ju="TooltipTrigger",Do=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...o}=e,s=Hs(ju,r),i=Mc(ju,r),l=Hl(r),a=f.useRef(null),u=ae(t,a,s.onTriggerChange),c=f.useRef(!1),p=f.useRef(!1),m=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),d.jsx(Ys,{asChild:!0,...l,children:d.jsx(ee.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...o,ref:u,onPointerMove:q(e.onPointerMove,g=>{g.pointerType!=="touch"&&!p.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),p.current=!0)}),onPointerLeave:q(e.onPointerLeave,()=>{s.onTriggerLeave(),p.current=!1}),onPointerDown:q(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:q(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:q(e.onBlur,s.onClose),onClick:q(e.onClick,s.onClose)})})});Do.displayName=ju;var Ic="TooltipPortal",[G3,U3]=Yl(Ic,{forceMount:void 0}),Lo=e=>{const{__scopeTooltip:t,forceMount:r,children:o,container:s}=e,i=Hs(Ic,t);return d.jsx(G3,{scope:t,forceMount:r,children:d.jsx(Qe,{present:r||i.open,children:d.jsx(To,{asChild:!0,container:s,children:o})})})};Lo.displayName=Ic;var xo="TooltipContent",No=f.forwardRef((e,t)=>{const r=U3(xo,e.__scopeTooltip),{forceMount:o=r.forceMount,side:s="top",...i}=e,l=Hs(xo,e.__scopeTooltip);return d.jsx(Qe,{present:o||l.open,children:l.disableHoverableContent?d.jsx(pm,{side:s,...i,ref:t}):d.jsx(Y3,{side:s,...i,ref:t})})}),Y3=f.forwardRef((e,t)=>{const r=Hs(xo,e.__scopeTooltip),o=Mc(xo,e.__scopeTooltip),s=f.useRef(null),i=ae(t,s),[l,a]=f.useState(null),{trigger:u,onClose:c}=r,p=s.current,{onPointerInTransitChange:m}=o,g=f.useCallback(()=>{a(null),m(!1)},[m]),h=f.useCallback((x,v)=>{const y=x.currentTarget,b={x:x.clientX,y:x.clientY},w=Z3(b,y.getBoundingClientRect()),C=K3(b,w),_=Q3(v.getBoundingClientRect()),k=e5([...C,..._]);a(k),m(!0)},[m]);return f.useEffect(()=>()=>g(),[g]),f.useEffect(()=>{if(u&&p){const x=y=>h(y,p),v=y=>h(y,u);return u.addEventListener("pointerleave",x),p.addEventListener("pointerleave",v),()=>{u.removeEventListener("pointerleave",x),p.removeEventListener("pointerleave",v)}}},[u,p,h,g]),f.useEffect(()=>{if(l){const x=v=>{const y=v.target,b={x:v.clientX,y:v.clientY},w=u?.contains(y)||p?.contains(y),C=!J3(b,l);w?g():C&&(g(),c())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[u,p,l,c,g]),d.jsx(pm,{...e,ref:i})}),[H3,V3]=Yl(Vl,{isInside:!1}),pm=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:o,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:l,...a}=e,u=Hs(xo,r),c=Hl(r),{onClose:p}=u;return f.useEffect(()=>(document.addEventListener(Tu,p),()=>document.removeEventListener(Tu,p)),[p]),f.useEffect(()=>{if(u.trigger){const m=g=>{const h=g.target;h?.contains(u.trigger)&&p()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[u.trigger,p]),d.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:m=>m.preventDefault(),onDismiss:p,children:d.jsxs(Gl,{"data-state":u.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(zp,{children:o}),d.jsx(H3,{scope:r,isInside:!0,children:d.jsx($3,{id:u.contentId,role:"tooltip",children:s||o})})]})})});No.displayName=xo;var mm="TooltipArrow",X3=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...o}=e,s=Hl(r);return V3(mm,r).isInside?null:d.jsx(Ul,{...s,...o,ref:t})});X3.displayName=mm;function Z3(e,t){const r=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,o,s,i)){case i:return"left";case s:return"right";case r:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function K3(e,t,r=5){const o=[];switch(t){case"top":o.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":o.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":o.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":o.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return o}function Q3(e){const{top:t,right:r,bottom:o,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:o},{x:s,y:o}]}function J3(e,t){const{x:r,y:o}=e;let s=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const a=t[i].x,u=t[i].y,c=t[l].x,p=t[l].y;u>o!=p>o&&r<(c-a)*(o-u)/(p-u)+a&&(s=!s)}return s}function e5(e){const t=e.slice();return t.sort((r,o)=>r.x<o.x?-1:r.x>o.x?1:r.y<o.y?-1:r.y>o.y?1:0),t5(t)}function t5(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const s=e[o];for(;t.length>=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(s.y-l.y)>=(i.y-l.y)*(s.x-l.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let o=e.length-1;o>=0;o--){const s=e[o];for(;r.length>=2;){const i=r[r.length-1],l=r[r.length-2];if((i.x-l.x)*(s.y-l.y)>=(i.y-l.y)*(s.x-l.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Mo=jo,Io=Do,Oo=Lo,Po=No;const be=f.createContext({});function hm(e,t){return f.useMemo(()=>{if(e)return new J.ASTQuery({query:t,source:e})},[e,t])}const gm=f.createContext({focusMainView:()=>{},isMainViewFocused:!0,focusNestView:()=>{},isNestViewFocused:()=>!1,focusedNestView:null});function n5({rootQuery:e,focusedNestViewPath:t,onFocusedNestViewPathChange:r,children:o}){const s=f.useMemo(()=>{if(t.length===0)return null;if(e){const c=e.definition;if(c instanceof J.ASTArrowQueryDefinition)return Hi(c.view,[...t].reverse())}return null},[e,t]),i=f.useCallback(()=>{r([])},[r]),l=f.useCallback(c=>{r([...c])},[r]),a=f.useCallback(c=>JSON.stringify(c)===JSON.stringify(t),[t]),u=t.length===0;return d.jsx(gm.Provider,{value:{focusMainView:i,isMainViewFocused:u,focusNestView:l,isNestViewFocused:a,focusedNestView:s},children:o})}function Vs(){return f.useContext(gm)}const Hi=(e,t)=>{if(t.length===0)return null;if(e instanceof J.ASTArrowViewDefinition)return Hi(e.view,t);if(e instanceof J.ASTSegmentViewDefinition){const r=t.pop(),o=e.operations.items.find(s=>s instanceof J.ASTNestViewOperation&&s.name===r);return o===void 0?(t.push(r),null):t.length===0?o.view:Hi(o.view.definition,t)}return e instanceof J.ASTRefinementViewDefinition?Hi(e.refinement,t):null};function JD({source:e,query:t,onQueryChange:r,focusedNestViewPath:o,onFocusedNestViewPathChange:s,children:i,topValues:l,onDrill:a}){const u=hm(e,t);return d.jsx(fm,{children:d.jsx(n5,{rootQuery:u,focusedNestViewPath:o,onFocusedNestViewPathChange:s,children:d.jsx(be.Provider,{value:{source:e,rootQuery:u,setQuery:r,topValues:l,onDrill:a},children:i})})})}var ts={},Y0;function r5(){if(Y0)return ts;Y0=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.styleq=void 0;var e=new WeakMap,t="$$css";function r(s){var i,l,a;return s!=null&&(i=s.disableCache===!0,l=s.disableMix===!0,a=s.transform),function(){for(var c=[],p="",m=null,g=i?null:e,h=new Array(arguments.length),x=0;x<arguments.length;x++)h[x]=arguments[x];for(;h.length>0;){var v=h.pop();if(!(v==null||v===!1)){if(Array.isArray(v)){for(var y=0;y<v.length;y++)h.push(v[y]);continue}var b=a!=null?a(v):v;if(b.$$css){var w="";if(g!=null&&g.has(b)){var C=g.get(b);C!=null&&(w=C[0],c.push.apply(c,C[1]),g=C[2])}else{var _=[];for(var k in b){var E=b[k];k!==t&&(typeof E=="string"||E===null?c.includes(k)||(c.push(k),g!=null&&_.push(k),typeof E=="string"&&(w+=w?" "+E:E)):console.error("styleq: ".concat(k," typeof ").concat(String(E),' is not "string" or "null".')))}if(g!=null){var R=new WeakMap;g.set(b,[w,_,R]),g=R}}w&&(p=p?w+" "+p:w)}else if(l)m==null&&(m={}),m=Object.assign({},b,m);else{var j=null;for(var D in b){var I=b[D];I!==void 0&&(c.includes(D)||(I!=null&&(m==null&&(m={}),j==null&&(j={}),j[D]=I),c.push(D),g=null))}j!=null&&(m=Object.assign(j,m))}}}var B=[p,m];return B}}var o=r();return ts.styleq=o,o.factory=r,ts}var xm=r5();const Lr=e=>new Error(`'stylex.${e}' should never be called at runtime. It should be compiled away by '@stylexjs/babel-plugin'`),xt=e=>Lr(`types.${e}`);function ym(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[o,s]=xm.styleq(t),i={};return o!=null&&o!==""&&(i.className=o),s!=null&&Object.keys(s).length>0&&(i.style=s),i}function o5(){const{className:e,style:t}=ym(...arguments),r={};return e!=null&&e!==""&&(r.class=e),t!=null&&Object.keys(t).length>0&&(r.style=Object.keys(t).map(o=>`${o}:${t[o]};`).join("")),r}function s5(e){throw Lr("create")}function i5(e){throw Lr("defineVars")}const l5=(e,t)=>{throw Lr("createTheme")},a5=e=>{throw Lr("include")},u5=s5,c5=i5,d5=l5,f5=a5,p5={angle:e=>{throw xt("angle")},color:e=>{throw xt("color")},url:e=>{throw xt("url")},image:e=>{throw xt("image")},integer:e=>{throw xt("integer")},lengthPercentage:e=>{throw xt("lengthPercentage")},length:e=>{throw xt("length")},percentage:e=>{throw xt("percentage")},number:e=>{throw xt("number")},resolution:e=>{throw xt("resolution")},time:e=>{throw xt("time")},transformFunction:e=>{throw xt("transformFunction")},transformList:e=>{throw xt("transformList")}},m5=e=>{throw Lr("keyframes")},h5=function(){throw Lr("firstThatWorks")};function A(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[o]=xm.styleq(t);return o}A.props=ym;A.attrs=o5;A.create=u5;A.defineVars=c5;A.createTheme=d5;A.include=f5;A.keyframes=m5;A.firstThatWorks=h5;A.types=p5;const Pn={default:{padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,borderRadius:"mly4pepcl",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,color:"mly1rs82da",backgroundColor:"mly1jmk7v",maxWidth:"mlyxc7z9f",boxShadow:"mly17fq3gk",zIndex:"mlyhtitgo",$$css:!0},card:{width:"mly1g65f5b",maxHeight:"mly1kbvuzt",zIndex:"mlyhtitgo",$$css:!0}},Y={largeBody:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mlyo1l8bm",fontSize:"mly1j61zf2",lineHeight:"mly1fc57z9",letterSpacing:"mly12oo3zp",$$css:!0},emphasized:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mly1xlr1w8",fontSize:"mlyif65rj",lineHeight:"mly1fc57z9",letterSpacing:"mly1gu5id8",$$css:!0},body:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mlyo1l8bm",fontSize:"mlyif65rj",lineHeight:"mly1fc57z9",letterSpacing:"mly12oo3zp",$$css:!0},link:{fontFamily:"mly1rj5sg5",color:"mlykfrnou",fontWeight:"mlyo1l8bm",fontSize:"mlyif65rj",lineHeight:"mly1fc57z9",letterSpacing:"mly12oo3zp",$$css:!0},supporting:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mlyo1l8bm",fontSize:"mlyfifm61",lineHeight:"mly1d3mw78",letterSpacing:"mly12oo3zp",$$css:!0},badge:{fontFamily:"mly1rj5sg5",color:"mly183j0n7",fontWeight:"mly1s688f",fontSize:"mlyfifm61",lineHeight:"mly1d3mw78",letterSpacing:"mly1gu5id8",$$css:!0},tooltipText:{fontFamily:"mly1rj5sg5",color:"mly1rs82da",fontSize:"mlyif65rj",fontStyle:"mly1j61x8r",fontWeight:"mlyo1l8bm",lineHeight:"mly1fc57z9",$$css:!0}},g5=e=>f.createElement("svg",{width:110,height:110,viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"cahevron_down",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M52.9466923,41.3127809 C54.0529774,40.2742275 55.7502198,40.2309545 56.9057514,41.1829617 L57.0533077,41.3127809 L81.5533077,64.3127809 C82.7612755,65.4467914 82.8212296,67.34534 81.6872191,68.5533077 C80.5968243,69.7148152 78.7995712,69.8149195 77.5890551,68.8127704 L77.4466923,68.6872191 L54.9999906,47.615 L32.5533077,68.6872191 C31.3918003,69.7776139 29.5918121,69.7641211 28.4469384,68.6875913 L28.3127809,68.5533077 C27.2223861,67.3918003 27.2358789,65.5918121 28.3124087,64.4469384 L28.4466923,64.3127809 L52.9466923,41.3127809 Z",id:"Path",fill:"currentColor",fillRule:"nonzero",transform:"translate(55.000000, 55.000005) rotate(-180.000000) translate(-55.000000, -55.000005) "}))),x5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"chevron_left",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M52.9466923,41.3127809 C54.0529774,40.2742275 55.7502198,40.2309545 56.9057514,41.1829617 L57.0533077,41.3127809 L81.5533077,64.3127809 C82.7612755,65.4467914 82.8212296,67.34534 81.6872191,68.5533077 C80.5968243,69.7148152 78.7995712,69.8149195 77.5890551,68.8127704 L77.4466923,68.6872191 L54.9999906,47.615 L32.5533077,68.6872191 C31.3918003,69.7776139 29.5918121,69.7641211 28.4469384,68.6875913 L28.3127809,68.5533077 C27.2223861,67.3918003 27.2358789,65.5918121 28.3124087,64.4469384 L28.4466923,64.3127809 L52.9466923,41.3127809 Z",id:"Path",fill:"currentColor",fillRule:"nonzero",transform:"translate(55.000000, 55.000005) rotate(-90.000000) translate(-55.000000, -55.000005) "}))),y5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"chevron_right",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M52.9466923,41.3127809 C54.0529774,40.2742275 55.7502198,40.2309545 56.9057514,41.1829617 L57.0533077,41.3127809 L81.5533077,64.3127809 C82.7612755,65.4467914 82.8212296,67.34534 81.6872191,68.5533077 C80.5968243,69.7148152 78.7995712,69.8149195 77.5890551,68.8127704 L77.4466923,68.6872191 L54.9999906,47.615 L32.5533077,68.6872191 C31.3918003,69.7776139 29.5918121,69.7641211 28.4469384,68.6875913 L28.3127809,68.5533077 C27.2223861,67.3918003 27.2358789,65.5918121 28.3124087,64.4469384 L28.4466923,64.3127809 L52.9466923,41.3127809 Z",id:"Path",fill:"currentColor",fillRule:"nonzero",transform:"translate(55.000000, 55.000005) rotate(-270.000000) translate(-55.000000, -55.000005) "}))),v5=e=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 0 24 24",width:24,...e},f.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),f.createElement("path",{fill:"currentColor",d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),vm=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"query_clear_hover",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("circle",{className:"circle hoverfill",fill:"transparent",cx:55,cy:55,r:55}),f.createElement("path",{d:"M78.1428571,25 L85,31.8571429 L61.857,55 L85,78.1428571 L78.1428571,85 L55,61.857 L31.8571429,85 L25,78.1428571 L48.142,55 L25,31.8571429 L31.8571429,25 L55,48.143 L78.1428571,25 Z",className:"cross primaryfill",fill:"currentColor"}))),b5=e=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},f.createElement("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})),w5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"query_add",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M75.8285714,28 L82,34.1714286 L61.171,55 L82,75.8285714 L75.8285714,82 L54.999,61.171 L34.1714286,82 L28,75.8285714 L48.828,55 L28,34.1714286 L34.1714286,28 L55,48.829 L75.8285714,28 Z",id:"Combined-Shape-Copy",fill:"currentColor",transform:"translate(55.000000, 55.000000) rotate(-315.000000) translate(-55.000000, -55.000000) ",className:"primaryfill"}))),C5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"5 5 100 100",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"insert_measure",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M64.4079772,43.4952662 C64.4079772,65.775216 64.4079772,77.6781315 64.4079772,79.2040126 C64.4079772,81.4928343 72.4309475,81.4935567 72.4309475,79.2040126 C72.4309475,77.6776499 72.4309475,65.7747344 72.4309475,43.4952662 L82.1242499,53.5032288 C82.9082803,54.3127101 83.9390395,54.7167092 84.9596343,54.7167092 C85.980229,54.7167092 87.0118722,54.3119686 87.7950187,53.5032288 C89.3623612,51.8850077 89.3623612,49.2552488 87.7950187,47.6371608 L71.2655269,30.5703346 C70.8943747,30.1871342 70.4404886,29.8781937 69.9456129,29.6650532 C69.9247535,29.6546561 69.9046123,29.6546561 69.883753,29.6435167 C69.4298852,29.4519166 68.9350096,29.3457171 68.4192709,29.3457171 C67.9035322,29.3457171 67.4086565,29.4519147 66.9547887,29.6435167 C66.9339294,29.6539139 66.9137882,29.6539139 66.8929288,29.6650532 C66.3980532,29.8781937 65.9441854,30.1863928 65.5730149,30.5703346 L49.0328429,47.6474271 C47.4655004,49.2656482 47.4655004,51.8954071 49.0328429,53.5134951 C50.6001855,55.1205753 53.1472623,55.1205753 54.714476,53.5023554 L64.4079772,43.4952662 Z",id:"Path-Copy-3",fill:"currentColor",className:"primaryfill",fillRule:"nonzero",transform:"translate(68.413931, 55.133308) rotate(-270.000000) translate(-68.413931, -55.133308) "}),f.createElement("rect",{id:"Rectangle-Copy-50",className:"primaryfill",fill:"currentColor",fillRule:"nonzero",transform:"translate(32.019040, 39.025784) rotate(-90.000000) translate(-32.019040, -39.025784) ",x:24.0122609,y:34.8667243,width:16.0135574,height:8.31811859}),f.createElement("rect",{id:"Rectangle-Copy-51",className:"primaryfill",fill:"currentColor",fillRule:"nonzero",transform:"translate(32.019040, 72.330197) rotate(-90.000000) translate(-32.019040, -72.330197) ",x:24.0122609,y:68.1711376,width:16.0135574,height:8.31811859}),f.createElement("circle",{id:"Oval-Copy-16",className:"primarystroke",stroke:"currentColor",strokeWidth:7,fillRule:"nonzero",transform:"translate(32.019040, 88.946306) rotate(-180.000000) translate(-32.019040, -88.946306) ",cx:32.0190396,cy:88.9463056,r:9.09652528}),f.createElement("circle",{id:"Oval-Copy-20",className:"primarystroke",stroke:"currentColor",strokeWidth:7,fillRule:"nonzero",transform:"translate(32.019040, 55.133308) rotate(-90.000000) translate(-32.019040, -55.133308) ",cx:32.0190396,cy:55.1333084,r:9.09652528}),f.createElement("circle",{id:"Oval-Copy-21",className:"primarystroke",stroke:"currentColor",strokeWidth:7,fillRule:"nonzero",cx:32.0190396,cy:23.2007668,r:9.09652528}))),_5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"insert_filter",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M87.3843313,20.5 C88.0702245,20.5 88.6794354,20.684137 89.1839151,20.9924545 C89.72968,21.3260038 90.1536978,21.8060023 90.4194477,22.364077 C90.6824778,22.9164401 90.7905536,23.5453405 90.7077209,24.1843828 C90.641307,24.6967561 90.4522801,25.21669 90.1181537,25.7073778 L89.9660074,25.9157747 L65.9667297,54.9330833 L65.9667297,86.0952768 C65.9667297,87.3578277 65.3421199,88.3687734 64.46847,88.9512067 C64.0000984,89.2634544 63.4591929,89.4523731 62.9014864,89.49211 C62.4335638,89.5254497 61.9536386,89.4542406 61.4987219,89.2647425 L61.3053966,89.1762469 L45.2981054,81.501442 C44.7448345,81.2248066 44.1940182,80.794047 43.8075879,80.2144017 C43.516589,79.7779032 43.3168206,79.2579753 43.2760203,78.6543848 L43.268304,78.4241163 L43.268304,54.9330833 L19.2778986,25.9265022 C18.8405281,25.4244753 18.5999563,24.8470099 18.5253334,24.2601464 C18.4451968,23.6299215 18.5577673,22.9877736 18.8297244,22.4166636 C19.0989541,21.8512813 19.5239716,21.3563425 20.06756,21.0111708 C20.5069962,20.7321343 21.0239609,20.5500465 21.6001779,20.5088845 L21.8507024,20.5 L87.3843313,20.5 Z M80.4108174,26.9794004 L28.8312662,26.9794004 L49.2106529,51.6044926 L49.3557497,51.8317181 C49.767411,52.5135117 49.9668805,53.1962297 49.9668805,53.8764024 L49.9668805,53.8764024 L49.9668805,76.3587304 L59.2681532,80.9104171 L59.2681532,53.6572264 L59.2765596,53.4785743 C59.3429907,52.7639199 59.7932531,52.0547544 60.2732157,51.568472 L60.2732157,51.568472 L80.4108174,26.9794004 Z",id:"Shape-Copy-2",stroke:"currentColor",fill:"currentColor",className:"primaryfill primarystroke",fillRule:"nonzero"}))),S5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"insert_group_by",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M31.7463881,49.3114698 C32.6824928,49.3083801 33.6154932,49.1963884 34.5261904,48.9793527 L45.0010173,67.8024842 L45.0010173,67.8032565 C43.2956473,70.2493007 42.5480527,73.2367133 42.8986175,76.1988173 C43.2492613,79.1601303 44.6742783,81.890304 46.9033203,83.870708 C49.1330544,85.851903 52.0117188,86.9463056 54.9937928,86.9463056 C57.9758669,86.9463056 60.8545313,85.8518634 63.0834745,83.870708 C65.3132086,81.890304 66.7382058,79.1601303 67.0889682,76.1988173 C67.4396121,73.2369111 66.6919779,70.2493007 64.9865684,67.8032565 L75.4613953,48.980125 L75.4613953,48.9793527 C78.5099046,49.699958 81.7183727,49.2180056 84.4200741,47.6338999 C87.1225664,46.0505653 89.1106817,43.4862425 89.9717699,40.4749053 C90.8328581,37.4635681 90.5008399,34.235723 89.0449384,31.4630387 C87.5882658,28.6903544 85.1197206,26.584791 82.151685,25.5847028 C79.1834516,24.5837248 75.9441385,24.7652355 73.1066007,26.0913707 C70.2688652,27.4167347 68.0507969,29.7848559 66.9138836,32.7028673 L43.0841815,32.7028673 C42.0044302,29.9371034 39.9514417,27.6601133 37.310837,26.3015513 C34.6702324,24.9429696 31.623898,24.5961814 28.7454313,25.32606 C25.8669647,26.0559385 23.3534966,27.8122421 21.6791694,30.2652067 C20.0046839,32.7173803 19.284138,35.6972794 19.6532888,38.644554 C20.021708,41.5910378 21.4544362,44.3012413 23.6819162,46.2662229 C25.9086844,48.2303345 28.776474,49.3139413 31.7460915,49.3115686 L31.7463881,49.3114698 Z M54.9987359,80.3146003 C53.5304767,80.3146003 52.1224442,79.7314725 51.0836021,78.6934213 C50.0455509,77.6545989 49.4624231,76.2465862 49.4624231,74.7782874 C49.4624231,73.3099887 50.0455509,71.9019957 51.0836021,70.8639445 C52.1224245,69.8251221 53.5304372,69.2419944 54.9987359,69.2419944 C56.4670347,69.2419944 57.8750277,69.8251221 58.9138698,70.8639445 C59.951921,71.9019957 60.5350488,73.3099887 60.5350488,74.7782874 C60.5350488,76.2465862 59.951921,77.6545792 58.9138698,78.6934213 C57.8750474,79.7314725 56.4670347,80.3146003 54.9987359,80.3146003 Z M78.2510838,31.5953952 C79.7193431,31.5953952 81.1273755,32.1785229 82.1654268,33.2165742 C83.203478,34.2553966 83.7873769,35.6634093 83.7873769,37.131708 C83.7873769,38.6000068 83.203478,40.0079998 82.1654268,41.046051 C81.1273755,42.0848734 79.7193826,42.6680011 78.2510838,42.6680011 C76.7828246,42.6680011 75.3740012,42.0848734 74.33595,41.046051 C73.2978987,40.0079998 72.714771,38.6000068 72.714771,37.131708 C72.714771,35.6634093 73.2978987,34.2554163 74.33595,33.2165742 C75.3740012,32.1785229 76.7827851,31.5953952 78.2510838,31.5953952 Z M43.7166018,39.3459801 L66.2808701,39.3459801 C66.7149337,41.7696815 67.8734779,44.0047541 69.6028318,45.75738 L59.7591401,63.5727121 C56.7137943,62.2774614 53.2720118,62.2774614 50.2258752,63.5727121 L40.3380911,45.75738 C42.0882652,44.0118524 43.2661865,41.7758109 43.7156132,39.3459801 L43.7166018,39.3459801 Z M31.7465858,31.5953952 C33.214845,31.5953952 34.6236684,32.1785229 35.6617196,33.2165742 C36.6997709,34.2553966 37.2828986,35.6634093 37.2828986,37.131708 C37.2828986,38.6000068 36.6997709,40.0079998 35.6617196,41.046051 C34.6236684,42.0848734 33.2148846,42.6680011 31.7465858,42.6680011 C30.2783266,42.6680011 28.8702941,42.0848734 27.8322428,41.046051 C26.7941916,40.0079998 26.2102927,38.6000068 26.2102927,37.131708 C26.2102927,35.6634093 26.7941916,34.2554163 27.8322428,33.2165742 C28.8702941,32.1785229 30.278287,31.5953952 31.7465858,31.5953952 L31.7465858,31.5953952 Z",id:"Shape-Copy-3",fill:"currentColor",fillRule:"nonzero",className:"primaryfill"}))),k5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"insert_limit",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("rect",{id:"Rectangle-Copy-46",className:"primaryfill",fill:"currentColor",x:24,y:23,width:61.9377906,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-47",className:"primaryfill",fill:"currentColor",x:24,y:39,width:61.9377906,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-48",className:"primaryfill",fill:"currentColor",x:24,y:55,width:53.5,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-49",className:"primaryfill",fill:"currentColor",x:24,y:71.1904762,width:40,height:7.61904762,rx:3.80952381}),f.createElement("path",{d:"M77.1113683,65.3807638 L87.6203313,83.396129 C87.8986116,83.8731809 87.7374754,84.4854986 87.2604234,84.7637789 C87.1074874,84.8529916 86.933607,84.9 86.7565524,84.9 L65.7386264,84.9 C65.1863417,84.9 64.7386264,84.4522847 64.7386264,83.9 C64.7386264,83.7229454 64.7856348,83.549065 64.8748475,83.396129 L75.3838105,65.3807638 C75.6620908,64.9037119 76.2744085,64.7425757 76.7514604,65.020856 C76.9004641,65.1077747 77.0244495,65.2317602 77.1113683,65.3807638 Z",id:"Triangle-Copy-2",fill:"currentColor",className:"primaryfill",transform:"translate(76.247589, 74.400000) rotate(-90.000000) translate(-76.247589, -74.400000) "}))),E5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"insert_nest",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M27.3181186,27 C29.5272576,27 31.3181186,28.790861 31.3181186,31 L31.318,59.317 L72.9431634,59.317258 L62.9360743,49.6237568 C61.3178543,48.0565431 61.3178543,45.5094664 62.9249345,43.9421238 C64.5430225,42.3747812 67.1727815,42.3747812 68.7910025,43.9421238 L68.7910025,43.9421238 L85.8680951,60.4822957 C86.2520369,60.8534663 86.560236,61.307334 86.7733764,61.8022097 C86.7845158,61.823069 86.7845158,61.8432103 86.7949129,61.8640696 C86.986515,62.3179374 87.0927126,62.812813 87.0927126,63.3285517 C87.0927126,63.8442904 86.9865131,64.3391661 86.7949129,64.7930338 C86.7837736,64.8138932 86.7837736,64.8340344 86.7733764,64.8548938 C86.560236,65.3497694 86.2512954,65.8036556 85.8680951,66.1748077 L85.8680951,66.1748077 L68.8012688,82.7042995 C67.1831809,84.2716421 64.5534219,84.2716421 62.9352009,82.7042995 C62.1264611,81.921153 61.7217204,80.8895099 61.7217204,79.8689151 C61.7217204,78.8483204 62.1257196,77.8175611 62.9352009,77.0335308 L62.9352009,77.0335308 L72.9431634,67.3402284 L27.234417,67.3402284 C25.2840646,67.3402284 23.6511005,66.037955 23.2100653,64.2817501 C23.0737364,63.8793045 23,63.4482633 23,63 L23,31 C23,28.790861 24.790861,27 27,27 L27.3181186,27 Z",id:"Combined-Shape-Copy",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),R5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"insert_order_by",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M30.5506412,37.7046734 L30.5506412,81.9762916 C30.5506412,84.1931505 32.3445678,85.9877768 34.5621264,85.9877768 C36.7789852,85.9877768 38.5736115,84.1938502 38.5736115,81.9762916 L38.5736115,37.7046734 L48.2669139,47.3979757 C49.0509443,48.1820061 50.0817035,48.5733031 51.1022983,48.5733031 C52.122893,48.5733031 53.1545362,48.1812879 53.9376827,47.3979757 C55.5050252,45.8306331 55.5050252,43.2835564 53.9376827,41.7163427 L37.4081909,25.1861143 C37.0370387,24.8149622 36.5831526,24.515735 36.0882769,24.3092959 C36.0674175,24.2992257 36.0472763,24.2992257 36.026417,24.2884366 C35.5725492,24.1028605 35.0776736,24 34.5619349,24 C34.0461961,24 33.5513205,24.1028586 33.0974527,24.2884366 C33.0765934,24.2985068 33.0564522,24.2985068 33.0355928,24.3092959 C32.5407172,24.515735 32.0868494,24.814244 31.7156789,25.1861143 L15.1755069,41.7262862 C13.6081644,43.2936288 13.6081644,45.8407055 15.1755069,47.4079192 C16.7428495,48.9644712 19.2899263,48.9644712 20.85714,47.3971298 L30.5506412,37.7046734 Z",id:"Path-Copy",fill:"currentColor",fillRule:"nonzero",className:"primaryfill"}),f.createElement("path",{d:"M79.9439284,72.2964315 L79.9439284,28.0137648 C79.9439284,25.796906 78.1500018,24.0022797 75.9324432,24.0022797 C73.7155844,24.0022797 71.920958,25.7962062 71.920958,28.0137648 L71.920958,72.2853831 L62.2276557,62.5920808 C60.6603131,61.0247382 58.1233641,61.0247382 56.5460227,62.5920808 C54.9786801,64.1594234 54.9786801,66.7065001 56.5460227,68.2737138 L73.0861946,84.8138857 C73.4573467,85.1850378 73.9112329,85.484265 74.4061086,85.6907041 C74.4269679,85.7007743 74.4471091,85.7007743 74.4679685,85.7115634 C74.9218362,85.8971395 75.4167119,86 75.9324506,86 C76.4481893,86 76.943065,85.8971414 77.3969327,85.7115634 C77.4177921,85.7014932 77.4379333,85.7014932 77.4587926,85.6907041 C77.9536683,85.484265 78.407536,85.185756 78.7787066,84.8138857 L95.3188785,68.2737138 C96.8862211,66.7063712 96.8862211,64.1592945 95.3188785,62.5920808 C93.7515359,61.0355288 91.2044592,61.0355288 89.6372455,62.6028702 L79.9439284,72.2964315 Z",id:"Path-Copy-2",className:"primaryfill",fill:"currentColor",fillRule:"nonzero"}))),A5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("title",null,"join_icon_one_to_many"),f.createElement("g",{id:"join_icon_one_to_many",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group",transform:"translate(12.759300, 12.500000) rotate(-180.000000) translate(-12.759300, -12.500000) translate(4.000000, 3.712487)",fill:"currentColor"},f.createElement("polygon",{id:"Path-Copy-15",fillRule:"nonzero",transform:"translate(6.382256, 8.736227) scale(-1, 1) rotate(180.000000) translate(-6.382256, -8.736227) ",points:"2.80570594 3.41828749 3.48860316 2.68777302 9.95880577 8.73622728 3.48860316 14.7846815 2.80570594 14.0541671 8.494 8.736"}),f.createElement("rect",{id:"Rectangle-Copy-91",transform:"translate(2.000000, 2.000000) scale(-1, 1) translate(-2.000000, -2.000000) ",x:0,y:0,width:4,height:4}),f.createElement("rect",{id:"Rectangle-Copy-92",transform:"translate(2.000000, 8.736227) scale(-1, 1) translate(-2.000000, -8.736227) ",x:0,y:6.73622728,width:4,height:4}),f.createElement("rect",{id:"Rectangle-Copy-86",transform:"translate(15.518600, 8.736227) scale(-1, 1) translate(-15.518600, -8.736227) ",x:13.5186005,y:6.73622728,width:4,height:4}),f.createElement("rect",{id:"Rectangle-Copy-87",transform:"translate(2.000000, 15.575026) scale(-1, 1) translate(-2.000000, -15.575026) ",x:0,y:13.5750258,width:4,height:4}),f.createElement("polygon",{id:"Line-3-Copy-68",fillRule:"nonzero",transform:"translate(8.495445, 8.736227) scale(-1, 1) translate(-8.495445, -8.736227) ",points:"14.9954453 8.23622728 14.9954453 9.23622728 1.99544525 9.23622728 1.99544525 8.23622728"})))),T5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("title",null,"join_icon_many_to_one"),f.createElement("g",{id:"join_icon_many_to_one",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("polygon",{id:"Path-Copy-14",fill:"currentColor",fillRule:"nonzero",transform:"translate(10.382256, 12.736227) scale(-1, 1) rotate(180.000000) translate(-10.382256, -12.736227) ",points:"6.80570594 7.41828749 7.48860316 6.68777302 13.9588058 12.7362273 7.48860316 18.7846815 6.80570594 18.0541671 12.494 12.736"}),f.createElement("rect",{id:"Rectangle-Copy-90",fill:"currentColor",x:4,y:4,width:4,height:4}),f.createElement("rect",{id:"Rectangle-Copy-89",fill:"currentColor",x:4,y:10.7362273,width:4,height:4}),f.createElement("rect",{id:"Rectangle-Copy-85",fill:"currentColor",x:17.5186005,y:10.7362273,width:4,height:4}),f.createElement("rect",{id:"Rectangle-Copy-84",fill:"currentColor",x:4,y:17.5750258,width:4,height:4}),f.createElement("polygon",{id:"Line-3-Copy-67",fill:"currentColor",fillRule:"nonzero",points:"18.9954453 12.2362273 18.9954453 13.2362273 5.99544525 13.2362273 5.99544525 12.2362273"}))),j5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("title",null,"join_icon_one_to_one"),f.createElement("g",{id:"join_icon_one_to_one",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("rect",{id:"Rectangle-Copy-89",fill:"currentColor",x:4,y:10.7362273,width:4,height:4}),f.createElement("rect",{id:"Rectangle-Copy-85",fill:"currentColor",x:17.5186005,y:10.7362273,width:4,height:4}),f.createElement("polygon",{id:"Line-3-Copy-67",fill:"currentColor",fillRule:"nonzero",points:"18.9954453 12.2362273 18.9954453 13.2362273 5.99544525 13.2362273 5.99544525 12.2362273"}))),D5=e=>f.createElement("svg",{width:"78px",height:"73px",viewBox:"-5 -10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("title",null,"database_b"),f.createElement("g",{id:"icons",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"database_b",transform:"translate(-0.000189, 0.800000)",fill:"currentColor",fillRule:"nonzero"},f.createElement("g",{id:"Shape-2"},f.createElement("path",{d:"M38.9978747,0 C49.4323909,0 58.8817175,1.35601948 65.8935492,3.63769481 C69.399635,4.77856169 72.3064537,6.14483766 74.4415973,7.78792208 C76.5767408,9.43100649 78,11.4644805 78,13.7176948 L78,59.1428571 C77.5289095,61.1095617 75.9098694,63.0619481 74.4415973,64.2103247 C72.3064537,65.8534091 69.3994651,67.2213799 65.8935492,68.3623052 C58.8808682,70.6440097 49.4317114,72 38.9978747,72 C28.564038,72 19.1123333,70.6439805 12.0988029,68.3623052 C8.59271719,67.2214383 5.68589845,65.8534091 3.55075491,64.2103247 C1.77316722,62.6163312 0.466092472,61.0553571 0.000162359918,59.1428571 L0.000162359918,12.826461 C-0.00497251122,12.4857468 0.111806422,12.1513003 0.334077073,11.8687938 C0.867540225,10.3512127 2.01808874,8.96790097 3.55089079,7.78869643 C5.68603434,6.14561201 8.59302294,4.77924838 12.0989388,3.63846916 C19.1116199,1.35676461 28.562815,0.000774350649 38.9980106,0.000774350649 L38.9978747,0 Z M38.9980026,4.39968547 C29.1795807,4.39968547 20.2971169,5.97898133 14.0341392,8.43960024 C10.9023181,9.66989245 8.43317659,11.1339692 6.85248078,12.602151 C3.94393403,15.3862114 4.29446142,18.3655235 6.85248078,20.7802963 C8.43327627,22.2484263 10.9024843,23.7104505 14.0341392,24.9407772 C20.2982797,27.4014306 29.1795807,28.9827618 38.9980026,28.9827618 C48.8164245,28.9827618 57.7038721,27.4014306 63.968511,24.9407772 C67.1003321,23.710485 69.5714672,22.2484781 71.152163,20.7802963 C74.08729,18.0024452 73.4953805,14.8214996 71.152163,12.602151 C69.5713675,11.1340209 67.100166,9.66992695 63.968511,8.43960024 C57.705035,5.97894683 48.8172551,4.39968547 38.9980026,4.39968547 Z M73.3181233,24.4886668 C71.264963,26.4046321 68.5511168,28.0180283 65.3038377,29.3722628 C58.4452957,32.2325658 49.203832,33.9324103 38.9993316,33.9324103 C28.7948312,33.9324103 19.5508756,32.2325291 12.691503,29.3722628 C9.44422385,28.0179367 6.73170664,26.4046321 4.67921092,24.4886668 L4.67921092,34.5578783 C4.85118531,35.7254798 5.51373193,36.9581006 6.85314528,38.278818 C8.43394077,39.8377628 10.9031488,41.3838137 14.0348037,42.6902452 C20.2989442,45.3031082 29.1802452,46.9886668 38.9986671,46.9886668 C48.817089,46.9886668 57.7045366,45.3030899 63.9691755,42.6902452 C67.1009966,41.3838503 69.5721317,39.8378178 71.1528275,38.278818 C72.4811934,36.9688517 73.1398693,35.7461761 73.3189539,34.5871829 L73.3181233,24.4886668 Z M73.3181233,43.1016944 C71.264963,44.782251 68.5517813,46.1967717 65.3038377,47.3852582 C58.4452957,49.8941247 49.203832,51.3851147 38.9993316,51.3851147 C28.7948312,51.3851147 19.5508756,49.8940926 12.691503,47.3852582 C9.44422385,46.197334 6.73170664,44.7841788 4.67921092,43.1036222 L4.67921092,55.7057886 C4.85118531,56.7299305 5.51373193,57.811103 6.85314528,58.9695481 C8.43394077,60.3369502 10.9031488,61.6911148 14.0348037,62.8370291 C20.2989442,65.1288579 29.1802452,66.6016944 38.9986671,66.6016944 C48.817089,66.6016944 57.7045366,65.1288579 63.9691755,62.8370291 C67.1009966,61.6911469 69.5721317,60.3369984 71.1528275,58.9695481 C72.4811934,57.8205331 73.1398693,56.7480839 73.3189539,55.7314925 L73.3181233,43.1016944 Z",id:"Shape"}))))),H0=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"2.5 2.5 11 11",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-number",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M12,7 L12,6 L10,6 L10,4 L9,4 L9,6 L7,6 L7,4 L6,4 L6,6 L4,6 L4,7 L6,7 L6,9 L4,9 L4,10 L6,10 L6,12 L7,12 L7,10 L9,10 L9,12 L10,12 L10,10 L12,10 L12,9 L10,9 L10,7 L12,7 Z M9,9 L7,9 L7,7 L9,7 L9,9 Z",id:"Shape-Copy-21",fill:"currentColor",fillRule:"nonzero"}))),L5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-projection",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M11.3362588,4 L11.3362588,12 L8,9.90676786 L4.6637412,12 L4.6637412,4 L11.3362588,4 Z M10.336,5 L5.663,5 L5.663,10.191 L8,8.72623637 L10.336,10.191 L10.336,5 Z",id:"Rectangle",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),V0=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-string",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M4.8045,10.45 L5.2245,9.253 L7.1425,9.253 L7.5625,10.45 L8.6055,10.45 L6.7225,5.438 L5.6375,5.438 L3.7615,10.45 L4.8045,10.45 Z M6.8345,8.385 L5.5255,8.385 L5.9735,7.125 L6.1555,6.523 L6.2115,6.523 L6.3935,7.125 L6.8345,8.385 Z M10.2505,10.562 C10.4791667,10.562 10.681,10.5176667 10.856,10.429 C11.031,10.3403333 11.1721667,10.226 11.2795,10.086 L11.2795,10.086 L11.3355,10.086 L11.3355,10.45 L12.2385,10.45 L12.2385,8.252 C12.2385,7.76666667 12.0961667,7.398 11.8115,7.146 C11.5268333,6.894 11.1115,6.768 10.5655,6.768 C10.2575,6.768 9.97283333,6.82866667 9.7115,6.95 C9.45016667,7.07133333 9.23316667,7.244 9.0605,7.468 L9.0605,7.468 L9.6485,7.93 C9.75116667,7.804 9.88066667,7.7025 10.037,7.6255 C10.1933333,7.5485 10.3555,7.51 10.5235,7.51 C10.7708333,7.51 10.968,7.57066667 11.115,7.692 C11.262,7.81333333 11.3355,7.972 11.3355,8.168 L11.3355,8.168 L11.3355,8.322 C11.0741667,8.21466667 10.7591667,8.161 10.3905,8.161 C10.1245,8.161 9.88183333,8.21 9.6625,8.308 C9.44316667,8.406 9.2705,8.546 9.1445,8.728 C9.0185,8.91 8.9555,9.12 8.9555,9.358 C8.9555,9.71733333 9.07683333,10.0078333 9.3195,10.2295 C9.56216667,10.4511667 9.8725,10.562 10.2505,10.562 Z M10.4675,9.848 C10.2761667,9.848 10.1291667,9.8025 10.0265,9.7115 C9.92383333,9.6205 9.8725,9.50266667 9.8725,9.358 C9.8725,9.00333333 10.1105,8.826 10.5865,8.826 C10.8478333,8.826 11.0975,8.882 11.3355,8.994 C11.3355,9.22266667 11.2573333,9.42216667 11.101,9.5925 C10.9446667,9.76283333 10.7335,9.848 10.4675,9.848 Z",id:"Aa-Copy",fill:"currentColor",fillRule:"nonzero"}))),N5=e=>f.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("path",{clipRule:"evenodd",d:"m2.5 2c-.27614 0-.5.22386-.5.5v10c0 .2761.22386.5.5.5h2c.27614 0 .5-.2239.5-.5s-.22386-.5-.5-.5h-1.5v-9h1.5c.27614 0 .5-.22386.5-.5s-.22386-.5-.5-.5zm8 0c-.2761 0-.5.22386-.5.5s.2239.5.5.5h1.5v9h-1.5c-.2761 0-.5.2239-.5.5s.2239.5.5.5h2c.2761 0 .5-.2239.5-.5v-10c0-.27614-.2239-.5-.5-.5zm-4.5 5h-1v1h1zm1 0h1v1h-1zm3 0h-1v1h1z",fill:"currentColor",fillRule:"evenodd"})),M5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"2.5 2.5 11 11",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-on-off",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group-Copy",transform:"translate(4.295444, 4.604157)",fill:"currentColor",fillRule:"nonzero"},f.createElement("path",{d:"M1.61912392,3.08712961 L5.78998715,3.08712961 C6.6842046,3.08712961 7.40911107,2.39605211 7.40911107,1.54356481 C7.40911107,0.691077503 6.6842046,0 5.78998715,0 L1.61912392,0 C0.724906472,0 0,0.691077503 0,1.54356481 C0,2.39605211 0.724906472,3.08712961 1.61912392,3.08712961 Z M1.61912392,0.617425922 L5.78998715,0.617425922 C6.32651762,0.617425922 6.7614615,1.03207242 6.7614615,1.54356481 C6.7614615,2.05505719 6.32651762,2.46970369 5.78998715,2.46970369 L1.61912392,2.46970369 C1.08259345,2.46970369 0.647649569,2.05505719 0.647649569,1.54356481 C0.647649569,1.03207242 1.08259345,0.617425922 1.61912392,0.617425922 Z",id:"Shape-Copy-20"}),f.createElement("path",{d:"M1.83745135,2.13685198 C2.08762004,2.13888594 2.31428875,1.98975367 2.4114368,1.75920941 C2.50858486,1.52866515 2.45700749,1.2622842 2.28082919,1.08466199 C2.10465088,0.907039785 1.83869956,0.853289683 1.60736972,0.948552441 C1.37603988,1.0438152 1.22505383,1.26925874 1.22505383,1.51943543 C1.22505383,1.85847446 1.49842318,2.13409557 1.83745135,2.13685198 L1.83745135,2.13685198 Z",id:"Path-Copy-14"}),f.createElement("path",{d:"M5.78998714,3.70455553 L1.6191239,3.70455553 C0.724906454,3.70455553 0,4.39563305 0,5.24812034 C0,6.10060763 0.724906454,6.79168514 1.6191239,6.79168514 L5.78998714,6.79168514 C6.68420459,6.79168514 7.40911107,6.10060764 7.40911107,5.24812034 C7.40911107,4.39563304 6.68420459,3.70455553 5.78998714,3.70455553 L5.78998714,3.70455553 Z M5.78998714,6.17425922 L1.6191239,6.17425922 C1.08259342,6.17425922 0.647649538,5.75961272 0.647649538,5.24812034 C0.647649538,4.73662796 1.08259342,4.32198146 1.6191239,4.32198146 L5.78998714,4.32198146 C6.32651761,4.32198146 6.7614615,4.73662796 6.7614615,5.24812034 C6.7614615,5.75961272 6.32651761,6.17425922 5.78998714,6.17425922 L5.78998714,6.17425922 Z",id:"Shape-Copy-21"}),f.createElement("path",{d:"M5.54392378,4.67774545 C5.2937551,4.6757115 5.06708639,4.82484377 4.96993833,5.05538803 C4.87279028,5.28593228 4.92436765,5.55231324 5.10054595,5.72993544 C5.27672426,5.90755765 5.54267558,5.96130775 5.77400542,5.86604499 C6.00533526,5.77078224 6.15632131,5.5453387 6.15632131,5.295162 C6.15632131,4.95612297 5.88295196,4.68050187 5.54392378,4.67774545 Z",id:"Path-Copy-15"})))),I5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-date",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group-Copy-22",transform:"translate(4.753763, 4.094719)",fill:"currentColor",fillRule:"nonzero"},f.createElement("path",{d:"M5.84322609,0.649247344 L5.51860242,0.649247344 L5.51860242,0 L4.86935508,0 L4.86935508,0.649247344 L1.62311836,0.649247344 L1.62311836,0 L0.973871015,0 L0.973871015,0.649247344 L0.649247344,0.649247344 C0.292161305,0.649247344 0,0.941408648 0,1.29849469 L0,6.49247344 C0,6.84955947 0.292161305,7.14172078 0.649247344,7.14172078 L5.84322609,7.14172078 C6.20031213,7.14172078 6.49247344,6.84955947 6.49247344,6.49247344 L6.49247344,1.29849469 C6.49247344,0.941408648 6.20031213,0.649247344 5.84322609,0.649247344 Z M5.84322609,6.49247344 L0.649247344,6.49247344 L0.649247344,2.2723657 L5.84322609,2.2723657 L5.84322609,6.49247344 Z",id:"Shape"})))),O5=e=>f.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("g",{clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"},f.createElement("path",{d:"m3 3.5c0-.82843.67157-1.5 1.5-1.5h1c.27614 0 .5.22386.5.5s-.22386.5-.5.5h-1c-.27614 0-.5.22386-.5.5v2.88197c0 .43292-.18638.83753-.49993 1.11803.31355.2805.49993.68511.49993 1.11803v2.88197c0 .2761.22386.5.5.5h1c.27614 0 .5.2239.5.5s-.22386.5-.5.5h-1c-.82843 0-1.5-.6716-1.5-1.5v-2.88197c0-.18938-.107-.36251-.27639-.44721l-.44722-.22361c-.16939-.08469-.27639-.25782-.27639-.44721s.107-.36252.27639-.44721l.44722-.22361c.16939-.0847.27639-.25783.27639-.44721z"}),f.createElement("path",{d:"m12 3.5c0-.82843-.6716-1.5-1.5-1.5h-1c-.27614 0-.5.22386-.5.5s.22386.5.5.5h1c.2761 0 .5.22386.5.5v2.88197c0 .43292.1864.83753.4999 1.11803-.3135.2805-.4999.68511-.4999 1.11803v2.88197c0 .2761-.2239.5-.5.5h-1c-.27614 0-.5.2239-.5.5s.22386.5.5.5h1c.8284 0 1.5-.6716 1.5-1.5v-2.88197c0-.18938.107-.36251.2764-.44721l.4472-.22361c.1694-.08469.2764-.25782.2764-.44721s-.107-.36252-.2764-.44721l-.4472-.22361c-.1694-.0847-.2764-.25783-.2764-.44721z"}))),P5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"2.5 2.5 11 11",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-number",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M12,7 L12,6 L10,6 L10,4 L9,4 L9,6 L7,6 L7,4 L6,4 L6,6 L4,6 L4,7 L6,7 L6,9 L4,9 L4,10 L6,10 L6,12 L7,12 L7,10 L9,10 L9,12 L10,12 L10,10 L12,10 L12,9 L10,9 L10,7 L12,7 Z M9,9 L7,9 L7,7 L9,7 L9,9 Z",id:"Shape-Copy-21",fill:"currentColor",fillRule:"nonzero"}))),F5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-projection",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M11.3362588,4 L11.3362588,12 L8,9.90676786 L4.6637412,12 L4.6637412,4 L11.3362588,4 Z M10.336,5 L5.663,5 L5.663,10.191 L8,8.72623637 L10.336,10.191 L10.336,5 Z",id:"Rectangle",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),B5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-projection",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M11.3362588,4 L11.3362588,12 L8,9.90676786 L4.6637412,12 L4.6637412,4 L11.3362588,4 Z",id:"Rectangle",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),$5=e=>f.createElement("svg",{fill:"none",height:110,viewBox:"1 1 12.5 12.5",width:15,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("path",{clipRule:"evenodd",d:"m2 5.5c0-.27614.22386-.5.5-.5h2c.27614 0 .5.22386.5.5s-.22386.5-.5.5h-1.5v1h1.5c.27614 0 .5.22386.5.5v2c0 .27614-.22386.5-.5.5h-2c-.27614 0-.5-.22386-.5-.5s.22386-.5.5-.5h1.5v-1h-1.5c-.27614 0-.5-.22386-.5-.5zm4 0c0-.27614.22386-.5.5-.5h2c.27614 0 .5.22386.5.5v4.5h.5c.27614 0 .5.2239.5.5s-.22386.5-.5.5h-1c-.27614 0-.5-.2239-.5-.5v-.5h-1.5c-.27614 0-.5-.22386-.5-.5zm2 3.5h-1v-3h1zm2.5-4c.2761 0 .5.22386.5.5v3.5h1.5c.2761 0 .5.22386.5.5s-.2239.5-.5.5h-2c-.2761 0-.5-.22386-.5-.5v-4c0-.27614.2239-.5.5-.5z",fill:"currentColor",fillRule:"evenodd"})),z5=e=>f.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("g",{fill:"currentColor"},f.createElement("path",{d:"m4.5 7.5c0 .55228-.44772 1-1 1s-1-.44772-1-1 .44772-1 1-1 1 .44772 1 1z"}),f.createElement("path",{d:"m8.5 7.5c0 .55228-.44772 1-1 1s-1-.44772-1-1 .44772-1 1-1 1 .44772 1 1z"}),f.createElement("path",{d:"m11.5 8.5c.5523 0 1-.44772 1-1s-.4477-1-1-1-1 .44772-1 1 .4477 1 1 1z"}))),q5=e=>f.createElement("svg",{fill:"none",height:110,viewBox:"3 3 9 9",width:15,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("path",{clipRule:"evenodd",d:"m4.74513 11.5809 6.48017-3.64512c.3398-.19115.3398-.68043 0-.87158l-6.48017-3.64507c-.3333-.18749-.74513.05337-.74513.43578v7.29019c0 .3824.41183.6232.74513.4358zm.25487-6.87106v5.58026l4.96027-2.79011z",fill:"currentColor",fillRule:"evenodd"})),W5=e=>f.createElement("svg",{height:16,viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("circle",{cx:8,cy:8,r:8,fill:"currentColor"}),f.createElement("circle",{cx:8,cy:8,r:4,fill:"#FFFFFF"})),G5=e=>f.createElement("svg",{height:16,viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("circle",{cx:8,cy:8,r:8,fill:"currentColor"}),f.createElement("circle",{cx:8,cy:8,r:7,fill:"#FFFFFF"})),U5=e=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},f.createElement("path",{d:"m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"})),Y5=e=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},f.createElement("path",{d:"m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})),H5=e=>f.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("g",{clipRule:"evenodd",fill:"#151515",fillRule:"evenodd"},f.createElement("path",{d:"m10 7.50001c0 1.38072-1.11928 2.49999-2.49999 2.49999s-2.5-1.11927-2.5-2.49999c0-1.38071 1.11929-2.5 2.5-2.5s2.49999 1.11929 2.49999 2.5zm-.99999 0c0 .82843-.67157 1.5-1.5 1.5-.82842 0-1.5-.67157-1.5-1.5 0-.82842.67158-1.5 1.5-1.5.82843 0 1.5.67158 1.5 1.5z"}),f.createElement("path",{d:"m8.92908 3.05724c-.34403-1.52302-2.5141-1.52302-2.85813 0-.07078.31333-.43034.46227-.70195.29076-1.3202-.83367-2.85467.7008-2.021 2.021.17151.27161.02257.63117-.29076.70195-1.52302.34403-1.52302 2.5141 0 2.85813.31333.07077.46227.43034.29076.70195-.83367 1.32017.7008 2.85467 2.021 2.02097.27161-.1715.63117-.0225.70195.2908.34403 1.523 2.5141 1.523 2.85813 0 .07077-.3133.43034-.4623.70195-.2908 1.32017.8337 2.85467-.7008 2.02097-2.02097-.1715-.27161-.0225-.63118.2908-.70195 1.523-.34403 1.523-2.5141 0-2.85813-.3133-.07078-.4623-.43034-.2908-.70195.8337-1.3202-.7008-2.85467-2.02097-2.021-.27161.17151-.63118.02257-.70195-.29076zm-1.8827.22034c.1092-.48347.79806-.48347.90727 0 .22296.98707 1.35568 1.45625 2.21135.91595.419-.26464.9061.22246.6415.64154-.5403.85562-.0711 1.98834.916 2.21131.4834.1092.4834.79806 0 .90727-.9871.22296-1.4563 1.35568-.916 2.21135.2646.419-.2225.9061-.6415.6415-.85567-.5403-1.98839-.0711-2.21135.916-.10921.4834-.79807.4834-.90727 0-.22297-.9871-1.35569-1.4563-2.21131-.916-.41908.2646-.90618-.2225-.64154-.6415.5403-.85567.07112-1.98839-.91595-2.21135-.48347-.10921-.48347-.79807 0-.90727.98707-.22297 1.45625-1.35569.91595-2.21131-.26464-.41908.22246-.90618.64154-.64154.85562.5403 1.98834.07112 2.21131-.91595z"}))),V5=e=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},f.createElement("path",{d:"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})),X5=e=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},f.createElement("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240ZM330-120 120-330v-300l210-210h300l210 210v300L630-120H330Zm34-80h232l164-164v-232L596-760H364L200-596v232l164 164Zm116-280Z"})),Z5=e=>f.createElement("svg",{height:20,viewBox:"0 0 20 20",width:20,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("g",{fill:"none",stroke:"currentColor"},f.createElement("path",{d:"m17.08 11.15c.01.16.02.32.02.49 0 3.89-3.16 7.05-7.05 7.05-3.89-.01-7.05-3.16-7.05-7.06 0-3.89 3.16-7.05 7.05-7.05.85 0 1.66.15 2.41.42",strokeWidth:1.1}),f.createElement("path",{d:"m9.9 2 2.89 2.89-3 3.01"}))),K5=e=>f.createElement("svg",{height:24,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",stroke:"none",...e},f.createElement("path",{fill:"currentColor",stroke:"none",d:"m20 24h-16c-2.2 0-4-1.8-4-4v-16c0-2.2 1.8-4 4-4h16c2.2 0 4 1.8 4 4v16c0 2.2-1.8 4-4 4zm-16-22c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-16c0-1.1-.9-2-2-2z"}),f.createElement("path",{fill:"currentColor",d:"m8 24c-.6 0-1-.4-1-1v-22c0-.6.4-1 1-1s1 .4 1 1v22c0 .6-.4 1-1 1z"}),f.createElement("path",{fill:"currentColor",d:"m14 13c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l3-3c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-3 3c-.2.2-.4.3-.7.3z"}),f.createElement("path",{fill:"currentColor",d:"m17 16c-.3 0-.5-.1-.7-.3l-3-3c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l3 3c.4.4.4 1 0 1.4-.2.2-.4.3-.7.3z"})),Q5=e=>f.createElement("svg",{fill:"none",height:24,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("path",{d:"m11 8h10m-10 0c0 1.65685-1.34315 3-3 3s-3-1.34315-3-3m6 0c0-1.65685-1.34315-3-3-3s-3 1.34315-3 3m0 0h-2m10 8h-10m10 0c0-1.6569 1.3431-3 3-3s3 1.3431 3 3m-6 0c0 1.6569 1.3431 3 3 3s3-1.3431 3-3m0 0h2",stroke:"currentColor",strokeWidth:1.5})),X0=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_bar_chart",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group-3",transform:"translate(20.000000, 24.000000)",fill:"currentColor"},f.createElement("g",{id:"Group-2",transform:"translate(34.500000, 31.000000) rotate(-270.000000) translate(-34.500000, -31.000000) translate(3.500000, -3.500000)"},f.createElement("path",{d:"M-26.056314,30.056314 L34.943686,30.056314 C37.152825,30.056314 38.943686,31.847175 38.943686,34.056314 L38.943686,34.943686 C38.943686,37.152825 37.152825,38.943686 34.943686,38.943686 L-26.056314,38.943686 C-28.265453,38.943686 -30.056314,37.152825 -30.056314,34.943686 L-30.056314,34.056314 C-30.056314,31.847175 -28.265453,30.056314 -26.056314,30.056314 Z",id:"Rectangle-Copy-59",transform:"translate(4.443686, 34.500000) rotate(-90.000000) translate(-4.443686, -34.500000) "}),f.createElement("path",{d:"M-0.491247385,37.8466366 L44.9281075,37.8466366 C47.1372465,37.8466366 48.9281075,39.6374976 48.9281075,41.8466366 L48.9281075,42.7340086 C48.9281075,44.9431476 47.1372465,46.7340086 44.9281075,46.7340086 L-0.491247385,46.7340086 C-2.70038638,46.7340086 -4.49124739,44.9431476 -4.49124739,42.7340086 L-4.49124739,41.8466366 C-4.49124739,39.6374976 -2.70038638,37.8466366 -0.491247385,37.8466366 Z",id:"Rectangle-Copy-62",transform:"translate(22.218430, 42.290323) rotate(-90.000000) translate(-22.218430, -42.290323) "}),f.createElement("path",{d:"M23.3837854,43.9469253 L56.6025627,43.9469253 C58.8117017,43.9469253 60.6025627,45.7377863 60.6025627,47.9469253 L60.6025627,48.8342973 C60.6025627,51.0434363 58.8117017,52.8342973 56.6025627,52.8342973 L23.3837854,52.8342973 C21.1746464,52.8342973 19.3837854,51.0434363 19.3837854,48.8342973 L19.3837854,47.9469253 C19.3837854,45.7377863 21.1746464,43.9469253 23.3837854,43.9469253 Z",id:"Rectangle-Copy-66",transform:"translate(39.993174, 48.390611) rotate(-90.000000) translate(-39.993174, -48.390611) "}),f.createElement("path",{d:"M46.7286345,49.7286345 L68.8072017,49.7286345 C71.0163407,49.7286345 72.8072017,51.5194955 72.8072017,53.7286345 L72.8072017,54.1927983 C72.8072017,56.4019373 71.0163407,58.1927983 68.8072017,58.1927983 L46.7286345,58.1927983 C44.5194955,58.1927983 42.7286345,56.4019373 42.7286345,54.1927983 L42.7286345,53.7286345 C42.7286345,51.5194955 44.5194955,49.7286345 46.7286345,49.7286345 Z",id:"Rectangle-Copy-67",transform:"translate(57.767918, 53.960716) rotate(-90.000000) translate(-57.767918, -53.960716) "}))))),J5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_boolean",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"noun_switch_3350414-2",transform:"translate(20.000000, 22.000000)",fill:"currentColor",fillRule:"nonzero"},f.createElement("g",{id:"noun_switch_3350414"},f.createElement("path",{d:"M15.2972028,30.8 L54.7027972,30.8 C63.151209,30.8 70,23.9051851 70,15.4 C70,6.89481485 63.151209,0 54.7027972,0 L15.2972028,0 C6.84879098,0 0,6.89481485 0,15.4 C0,23.9051851 6.84879098,30.8 15.2972028,30.8 Z M15.2972028,6.16 L54.7027972,6.16 C59.7718443,6.16 63.8811189,10.2968889 63.8811189,15.4 C63.8811189,20.5031111 59.7718443,24.64 54.7027972,24.64 L15.2972028,24.64 C10.2281557,24.64 6.11888112,20.5031111 6.11888112,15.4 C6.11888112,10.2968889 10.2281557,6.16 15.2972028,6.16 Z",id:"Shape"}),f.createElement("path",{d:"M19.6340542,21.9997804 C22.2930484,22.0215224 24.7022661,20.4273668 25.7348338,17.9629544 C26.7674016,15.4985421 26.2191958,12.6510518 24.3466309,10.7523518 C22.474066,8.85365189 19.6473211,8.27908795 17.1885612,9.29740315 C14.7298014,10.3157183 13.125,12.7256064 13.125,15.3998806 C13.125,19.0240523 16.0305897,21.9703156 19.6340542,21.9997804 L19.6340542,21.9997804 Z",id:"Path"}),f.createElement("path",{d:"M54.7027971,35.2 L15.2972025,35.2 C6.84879081,35.2 0,42.094815 0,50.6 C0,59.105185 6.84879081,66 15.2972025,66 L54.7027971,66 C63.151209,66 70,59.1051851 70,50.6 C70,42.0948149 63.151209,35.2 54.7027971,35.2 L54.7027971,35.2 Z M54.7027971,59.84 L15.2972025,59.84 C10.2281554,59.84 6.11888082,55.7031111 6.11888082,50.6 C6.11888082,45.4968889 10.2281554,41.36 15.2972025,41.36 L54.7027971,41.36 C59.7718442,41.36 63.8811189,45.4968889 63.8811189,50.6 C63.8811189,55.7031111 59.7718442,59.84 54.7027971,59.84 L54.7027971,59.84 Z",id:"Shape"}),f.createElement("path",{d:"M50.3659458,44.0002196 C47.7069516,43.9784776 45.2977339,45.5726332 44.2651662,48.0370456 C43.2325984,50.5014579 43.7808042,53.3489482 45.6533691,55.2476482 C47.525934,57.1463481 50.3526789,57.720912 52.8114388,56.7025969 C55.2701986,55.6842817 56.875,53.2743936 56.875,50.6001194 C56.875,46.9759477 53.9694103,44.0296844 50.3659458,44.0002196 Z",id:"Path"}))))),ev=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_column_chart",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group",transform:"translate(23.500000, 19.500000)",fill:"currentColor"},f.createElement("path",{d:"M-26.5,30.5 L35.5,30.5 C37.709139,30.5 39.5,32.290861 39.5,34.5 L39.5,35.5 C39.5,37.709139 37.709139,39.5 35.5,39.5 L-26.5,39.5 C-28.709139,39.5 -30.5,37.709139 -30.5,35.5 L-30.5,34.5 C-30.5,32.290861 -28.709139,30.5 -26.5,30.5 Z",id:"Rectangle-Copy-59",transform:"translate(4.500000, 35.000000) rotate(-90.000000) translate(-4.500000, -35.000000) "}),f.createElement("path",{d:"M-0.5,38.5 L45.5,38.5 C47.709139,38.5 49.5,40.290861 49.5,42.5 L49.5,43.5 C49.5,45.709139 47.709139,47.5 45.5,47.5 L-0.5,47.5 C-2.709139,47.5 -4.5,45.709139 -4.5,43.5 L-4.5,42.5 C-4.5,40.290861 -2.709139,38.5 -0.5,38.5 Z",id:"Rectangle-Copy-62",transform:"translate(22.500000, 43.000000) rotate(-90.000000) translate(-22.500000, -43.000000) "}),f.createElement("path",{d:"M23.5,45.5 L57.5,45.5 C59.709139,45.5 61.5,47.290861 61.5,49.5 L61.5,50.5 C61.5,52.709139 59.709139,54.5 57.5,54.5 L23.5,54.5 C21.290861,54.5 19.5,52.709139 19.5,50.5 L19.5,49.5 C19.5,47.290861 21.290861,45.5 23.5,45.5 Z",id:"Rectangle-Copy-66",transform:"translate(40.500000, 50.000000) rotate(-90.000000) translate(-40.500000, -50.000000) "}),f.createElement("path",{d:"M47.5,50.5 L70.5,50.5 C72.709139,50.5 74.5,52.290861 74.5,54.5 L74.5,55.5 C74.5,57.709139 72.709139,59.5 70.5,59.5 L47.5,59.5 C45.290861,59.5 43.5,57.709139 43.5,55.5 L43.5,54.5 C43.5,52.290861 45.290861,50.5 47.5,50.5 Z",id:"Rectangle-Copy-67",transform:"translate(59.000000, 55.000000) rotate(-90.000000) translate(-59.000000, -55.000000) "})))),tv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_currency",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group",transform:"translate(19.000000, 19.000000)"},f.createElement("circle",{id:"Oval",stroke:"currentColor",strokeWidth:7,cx:36,cy:36,r:32.5}),f.createElement("path",{d:"M35.7525,20.06 C38.5425,20.06 40.7775,20.7425 42.4575,22.1075 C44.1375,23.4725 45.2775,25.01 45.8775,26.72 L41.4225,28.61 C41.1225,27.53 40.4925,26.6 39.5325,25.82 C38.5725,25.04 37.3275,24.65 35.7975,24.65 C34.3275,24.65 33.0825,25.04 32.0625,25.82 C31.0425,26.6 30.5325,27.59 30.5325,28.79 C30.5325,29.9 30.99,30.8225 31.905,31.5575 C32.759,32.2435 34.0507333,32.8968333 35.7802,33.5175 L38.2275,34.37 C40.9875,35.33 43.1175,36.575 44.6175,38.105 C46.1175,39.635 46.8675,41.675 46.8675,44.225 C46.8675,46.325 46.335,48.0875 45.27,49.5125 C44.205,50.9375 42.84,51.995 41.175,52.685 C39.51,53.375 37.8075,53.72 36.0675,53.72 C33.3975,53.72 30.9975,52.94 28.8675,51.38 C26.7375,49.82 25.2525,47.63 24.4125,44.81 L29.0925,42.92 C29.5725,44.72 30.4275,46.19 31.6575,47.33 C32.8875,48.47 34.3725,49.04 36.1125,49.04 C37.7325,49.04 39.105,48.62 40.23,47.78 C41.355,46.94 41.9175,45.785 41.9175,44.315 C41.9175,42.965 41.4225,41.8475 40.4325,40.9625 C39.4975,40.1266667 37.9202778,39.3109028 35.7008333,38.5152083 L33.2775,37.655 C31.0875,36.875 29.265,35.7875 27.81,34.3925 C26.355,32.9975 25.6275,31.145 25.6275,28.835 C25.6275,27.245 26.055,25.775 26.91,24.425 C27.765,23.075 28.965,22.01 30.51,21.23 C32.055,20.45 33.8025,20.06 35.7525,20.06 Z",id:"Path",fill:"currentColor",fillRule:"nonzero"}),f.createElement("line",{x1:36,y1:14,x2:36,y2:21,id:"Line-Copy-4",stroke:"currentColor",strokeWidth:5}),f.createElement("line",{x1:36,y1:52,x2:36,y2:59,id:"Line-Copy-5",stroke:"currentColor",strokeWidth:5})),f.createElement("g",{id:"S",transform:"translate(43.412500, 37.060000)"}))),nv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_dashboard",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"dashboard_black_24dp",transform:"translate(13.000000, 13.000000)"},f.createElement("path",{d:"M5,0 L80,0 C82.7614237,-5.07265313e-16 85,2.23857625 85,5 L85,80 C85,82.7614237 82.7614237,85 80,85 L5,85 C2.23857625,85 3.38176876e-16,82.7614237 0,80 L0,5 C-3.38176876e-16,2.23857625 2.23857625,5.07265313e-16 5,0 Z",id:"Path"}),f.createElement("path",{d:"M67,18 L67,25 L53,25 L53,18 L67,18 M32,18 L32,39 L18,39 L18,18 L32,18 M67,46 L67,67 L53,67 L53,46 L67,46 M32,60 L32,67 L18,67 L18,60 L32,60 M69,11 L51,11 C48.2385763,11 46,13.2385763 46,16 L46,27 C46,29.7614237 48.2385763,32 51,32 L69,32 C71.7614237,32 74,29.7614237 74,27 L74,16 C74,13.2385763 71.7614237,11 69,11 Z M34,11 L16,11 C13.2385763,11 11,13.2385763 11,16 L11,41 C11,43.7614237 13.2385763,46 16,46 L34,46 C36.7614237,46 39,43.7614237 39,41 L39,16 C39,13.2385763 36.7614237,11 34,11 Z M69,39 L51,39 C48.2385763,39 46,41.2385763 46,44 L46,69 C46,71.7614237 48.2385763,74 51,74 L69,74 C71.7614237,74 74,71.7614237 74,69 L74,44 C74,41.2385763 71.7614237,39 69,39 Z M34,53 L16,53 C13.2385763,53 11,55.2385763 11,58 L11,69 C11,71.7614237 13.2385763,74 16,74 L34,74 C36.7614237,74 39,71.7614237 39,69 L39,58 C39,55.2385763 36.7614237,53 34,53 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"})))),rv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_image",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M81.4444444,28.5555556 L81.4444444,81.4444444 L28.5555556,81.4444444 L28.5555556,28.5555556 L81.4444444,28.5555556 M81.4444444,21 L28.5555556,21 C24.4,21 21,24.4 21,28.5555556 L21,81.4444444 C21,85.6 24.4,89 28.5555556,89 L81.4444444,89 C85.6,89 89,85.6 89,81.4444444 L89,28.5555556 C89,24.4 85.6,21 81.4444444,21 Z M63.0844444,54.4711111 L51.7511111,69.0911111 L43.6666667,59.3066667 L32.3333333,73.8888889 L77.6666667,73.8888889 L63.0844444,54.4711111 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"}))),ov=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_json",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"{;}",transform:"translate(24.000000, 22.000000)",fill:"currentColor",fillRule:"nonzero"},f.createElement("path",{d:"M17.0296296,66 C13.2765432,66 10.3209877,64.871179 8.16296296,62.6135371 C6.00493827,60.3558952 4.92592593,57.3296943 4.92592593,53.5349345 L4.92592593,41.6462882 C4.92592593,39.9170306 4.45679012,38.5840611 3.51851852,37.6473799 C2.58024691,36.7106987 1.40740741,36.2423581 0,36.2423581 L0,29.7576419 C1.40740741,29.7576419 2.58024691,29.2893013 3.51851852,28.3526201 C4.45679012,27.4159389 4.92592593,26.0829694 4.92592593,24.3537118 L4.92592593,12.4650655 C4.92592593,8.67030568 6.00493827,5.6441048 8.16296296,3.38646288 C10.3209877,1.12882096 13.2765432,0 17.0296296,0 L19,0 L19,6.41266376 L17.7333333,6.41266376 C16.091358,6.41266376 14.7425926,6.98908297 13.687037,8.1419214 C12.6314815,9.29475983 12.1037037,10.8318777 12.1037037,12.7532751 L12.1037037,24.3537118 C12.1037037,26.7074236 11.7166667,28.5687773 10.9425926,29.9377729 C10.1685185,31.3067686 8.93703704,32.2554585 7.24814815,32.7838428 L7.24814815,33.2161572 C8.93703704,33.7445415 10.1685185,34.6812227 10.9425926,36.0262009 C11.7166667,37.371179 12.1037037,39.2445415 12.1037037,41.6462882 L12.1037037,53.2467249 C12.1037037,55.1681223 12.6314815,56.7052402 13.687037,57.8580786 C14.7425926,59.010917 16.091358,59.5873362 17.7333333,59.5873362 L19,59.5873362 L19,66 L17.0296296,66 Z",id:"Path"}),f.createElement("path",{d:"M44,59.5873362 L45.4074074,59.5873362 C47.0493827,59.5873362 48.3864198,59.010917 49.4185185,57.8580786 C50.4506173,56.7052402 50.9666667,55.1681223 50.9666667,53.2467249 L50.9666667,41.6462882 C50.9666667,39.2445415 51.3537037,37.371179 52.1277778,36.0262009 C52.9018519,34.6812227 54.1333333,33.7445415 55.8222222,33.2161572 L55.8222222,32.7838428 C54.1333333,32.2554585 52.9018519,31.3067686 52.1277778,29.9377729 C51.3537037,28.5687773 50.9666667,26.7074236 50.9666667,24.3537118 L50.9666667,12.7532751 C50.9666667,10.8318777 50.4506173,9.29475983 49.4185185,8.1419214 C48.3864198,6.98908297 47.0493827,6.41266376 45.4074074,6.41266376 L44,6.41266376 L44,0 L46.0407407,0 C49.7938272,0 52.7493827,1.12882096 54.9074074,3.38646288 C57.0654321,5.6441048 58.1444444,8.67030568 58.1444444,12.4650655 L58.1444444,24.3537118 C58.1444444,26.0829694 58.6018519,27.4159389 59.5166667,28.3526201 C60.4314815,29.2893013 61.5925926,29.7576419 63,29.7576419 L63,36.2423581 C61.5925926,36.2423581 60.4314815,36.7106987 59.5166667,37.6473799 C58.6018519,38.5840611 58.1444444,39.9170306 58.1444444,41.6462882 L58.1444444,53.5349345 C58.1444444,57.3296943 57.0654321,60.3558952 54.9074074,62.6135371 C52.7493827,64.871179 49.7938272,66 46.0407407,66 L44,66 L44,59.5873362 Z",id:"Path"})))),ki=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_line",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M88.1848681,33.1583406 C89.7542734,31.6035859 92.2869054,31.6154626 93.8416601,33.1848679 C95.3445896,34.7019597 95.3835892,37.1191334 93.9668812,38.6829968 L93.8151328,38.84166 L66.2578818,66.14166 C64.8378618,67.5484238 62.6084032,67.6843587 61.0319068,66.4919462 L60.8595019,66.3539866 L45.2420004,53.1430003 L21.844917,76.8176775 C20.3437446,78.336508 17.927116,78.4009733 16.3484126,77.0008213 L16.1881594,76.850753 C14.6693289,75.3495806 14.6048635,72.932952 16.0050156,71.3542486 L16.1550839,71.1939954 L42.1550839,44.8881592 C43.5729843,43.4535802 45.8262314,43.3057778 47.4155704,44.5116324 L47.583248,44.646014 L63.2290004,57.8810003 L88.1848681,33.1583406 Z",id:"Path-10",fill:"currentColor",fillRule:"nonzero"}))),Z0=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_link",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"link_black_24dp",transform:"translate(5.000000, 5.000000)"},f.createElement("path",{d:"M5,0 L96,0 C98.7614237,-5.07265313e-16 101,2.23857625 101,5 L101,96 C101,98.7614237 98.7614237,101 96,101 L5,101 C2.23857625,101 3.38176876e-16,98.7614237 0,96 L0,5 C-3.38176876e-16,2.23857625 2.23857625,5.07265313e-16 5,0 Z",id:"Path"}),f.createElement("path",{d:"M71,30 L58.4,30 C56.0804041,30 54.2,31.8804041 54.2,34.2 C54.2,36.5195959 56.0804041,38.4 58.4,38.4 L71,38.4 L71,38.4 C77.93,38.4 83.6,44.07 83.6,51 C83.6,57.93 77.93,63.6 71,63.6 L58.4,63.6 C56.0804041,63.6 54.2,65.4804041 54.2,67.8 C54.2,70.1195959 56.0804041,72 58.4,72 L71,72 L71,72 C82.592,72 92,62.592 92,51 C92,39.408 82.592,30 71,30 Z M41.6,63.6 L29,63.6 L29,63.6 C22.07,63.6 16.4,57.93 16.4,51 C16.4,44.07 22.07,38.4 29,38.4 L41.6,38.4 C43.9195959,38.4 45.8,36.5195959 45.8,34.2 C45.8,31.8804041 43.9195959,30 41.6,30 L29,30 L29,30 C17.408,30 8,39.408 8,51 C8,62.592 17.408,72 29,72 L41.6,72 C43.9195959,72 45.8,70.1195959 45.8,67.8 C45.8,65.4804041 43.9195959,63.6 41.6,63.6 Z M37.4,46.8 L62.6,46.8 C64.9195959,46.8 66.8,48.6804041 66.8,51 C66.8,53.3195959 64.9195959,55.2 62.6,55.2 L37.4,55.2 C35.0804041,55.2 33.2,53.3195959 33.2,51 C33.2,48.6804041 35.0804041,46.8 37.4,46.8 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"})))),sv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_list",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("rect",{id:"Rectangle-Copy-58",fill:"currentColor",x:24.1587742,y:27,width:61.9377906,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-61",fill:"currentColor",x:24.1587742,y:43,width:61.9377906,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-64",fill:"currentColor",x:24.1587742,y:59,width:62,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-65",fill:"currentColor",x:24.1587742,y:75.1904762,width:62,height:7.61904762,rx:3.80952381}))),iv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_list_detail",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("rect",{id:"Rectangle-Copy-58",fill:"currentColor",x:22.1587742,y:27,width:15.983946,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-59",fill:"currentColor",x:44.1587742,y:27,width:43.9558514,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-61",fill:"currentColor",x:22.1587742,y:43,width:15.983946,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-62",fill:"currentColor",x:44.1587742,y:43,width:43.9558514,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-64",fill:"currentColor",x:22.1587742,y:59,width:16,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-66",fill:"currentColor",x:44.1587742,y:59,width:44,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-65",fill:"currentColor",x:22.1587742,y:75.1904762,width:16,height:7.61904762,rx:3.80952381}),f.createElement("rect",{id:"Rectangle-Copy-67",fill:"currentColor",x:44.1587742,y:75.1904762,width:44,height:7.61904762,rx:3.80952381}))),lv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_map_points",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group-Copy-36",transform:"translate(30.000000, 19.000000)",fill:"currentColor",fillRule:"nonzero"},f.createElement("path",{d:"M25,0 C11.1785714,0 0,11.268 0,25.2 C0,44.1 25,72 25,72 C25,72 50,44.1 50,25.2 C50,11.268 38.8214286,0 25,0 Z M7.14285714,25.2 C7.14285714,15.264 15.1428571,7.2 25,7.2 C34.8571429,7.2 42.8571429,15.264 42.8571429,25.2 C42.8571429,35.568 32.5714286,51.084 25,60.768 C17.5714286,51.156 7.14285714,35.46 7.14285714,25.2 Z",id:"Shape"}),f.createElement("path",{d:"M25,34 C29.97052,34 34,29.97052 34,25 C34,20.029444 29.97052,16 25,16 C20.02948,16 16,20.029444 16,25 C16,29.97052 20.02948,34 25,34 Z",id:"Path"})))),av=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_map_segment",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group-Copy-36",transform:"translate(11.000000, 27.000000)",fillRule:"nonzero"},f.createElement("path",{d:"M17,0 C7.60142857,0 0,7.6685 0,17.15 C0,30.0125 17,49 17,49 C17,49 34,30.0125 34,17.15 C34,7.6685 26.3985714,0 17,0 Z M4.85714286,17.15 C4.85714286,10.388 10.2971429,4.9 17,4.9 C23.7028571,4.9 29.1428571,10.388 29.1428571,17.15 C29.1428571,24.206 22.1485714,34.7655 17,41.356 C11.9485714,34.8145 4.85714286,24.1325 4.85714286,17.15 Z",id:"Shape",fill:"currentColor"}),f.createElement("path",{d:"M17,24 C20.31368,24 23,21.31368 23,18 C23,14.686296 20.31368,12 17,12 C13.68632,12 11,14.686296 11,18 C11,21.31368 13.68632,24 17,24 Z",id:"Path",fill:"currentColor"})),f.createElement("g",{id:"Group-Copy-37",transform:"translate(62.000000, 27.000000)",fillRule:"nonzero"},f.createElement("path",{d:"M17,0 C7.60142857,0 0,7.6685 0,17.15 C0,30.0125 17,49 17,49 C17,49 34,30.0125 34,17.15 C34,7.6685 26.3985714,0 17,0 Z M4.85714286,17.15 C4.85714286,10.388 10.2971429,4.9 17,4.9 C23.7028571,4.9 29.1428571,10.388 29.1428571,17.15 C29.1428571,24.206 22.1485714,34.7655 17,41.356 C11.9485714,34.8145 4.85714286,24.1325 4.85714286,17.15 Z",id:"Shape",fill:"currentColor"}),f.createElement("path",{d:"M17,24 C20.31368,24 23,21.31368 23,18 C23,14.686296 20.31368,12 17,12 C13.68632,12 11,14.686296 11,18 C11,21.31368 13.68632,24 17,24 Z",id:"Path",fill:"currentColor"})),f.createElement("line",{x1:28.5,y1:81.5,x2:79.5,y2:81.5,id:"Line-3",stroke:"currentColor",strokeWidth:5,strokeLinecap:"round",strokeDasharray:"5,10"}))),uv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_map_shape",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"noun-world-4667432-2",transform:"translate(19.000000, 19.000000)",fill:"currentColor",fillRule:"nonzero"},f.createElement("g",{id:"noun-world-4667432"},f.createElement("path",{d:"M36,5 C18.8798665,5 5,18.8793071 5,36 C5,53.1206929 18.8793071,67 36,67 C53.1206929,67 67,53.1206929 67,36 C67,18.8793071 53.1206929,5 36,5 Z M0,36 C0,16.1177143 16.1177143,0 36,0 C55.8822857,0 72,16.1177143 72,36 C72,55.8822857 55.8822857,72 36,72 C16.1177143,72 0,55.8822857 0,36 Z",id:"Shape"}),f.createElement("path",{d:"M37.2848685,1.50131372 C37.8999474,1.48477633 38.4631152,1.71654937 38.8767996,2.10376364 C39.2928262,2.49317029 39.5578301,3.03960333 39.57434,3.65023916 L39.57434,3.65023916 L40.0344656,20.7428771 C40.0487121,21.2893502 39.8586306,21.8212062 39.4992535,22.2375953 L39.4992535,22.2375953 L32.1172188,30.7832284 C31.7924232,31.1592888 31.3490374,31.4169308 30.8586892,31.5134813 L30.8586892,31.5134813 L24.6865498,32.7324332 L28.0628423,42.7359018 C28.4533111,43.8925701 28.4513039,45.0197005 28.1633304,46.0321806 C27.8503264,47.132665 27.1975708,48.0987342 26.3338575,48.8190181 C25.4716664,49.5380326 24.3999821,50.0114808 23.2508211,50.1317463 C22.1949716,50.2422462 21.0728206,50.0558305 19.9867908,49.4837618 L19.9867908,49.4837618 L1.68382097,39.8433672 C1.13885361,39.5565384 0.764084629,39.078393 0.597525292,38.5380041 C0.430427538,37.9958684 0.472619244,37.3906551 0.763987861,36.8508084 C1.05393693,36.3139129 1.53648052,35.9433066 2.08313472,35.7791188 C2.62798313,35.6154734 3.2361363,35.657153 3.77860632,35.9426925 L3.77860632,35.9426925 L22.0816454,45.5831236 C22.3171919,45.7071442 22.5603781,45.7498863 22.7897862,45.7258621 C23.0398735,45.6996723 23.2725259,45.5956093 23.4599703,45.4392842 C23.6458558,45.2842591 23.7880139,45.0772117 23.8554593,44.8399997 C23.9169381,44.6237728 23.9147045,44.383346 23.8314444,44.1367864 L23.8314444,44.1367864 L19.6527943,31.7569079 C19.4493668,31.1542234 19.517516,30.4944328 19.8403231,29.9450638 C20.1614725,29.3985413 20.7046793,29.014044 21.3323155,28.8900909 L21.3323155,28.8900909 L29.2286003,27.3302661 L35.5513871,20.0108413 L35.1144494,3.7686887 C35.0979491,3.15801867 35.3331708,2.59836837 35.7276711,2.18746751 C36.1199426,1.77888802 36.6699139,1.51752889 37.2848685,1.50131372 Z",id:"Path",stroke:"currentColor"}),f.createElement("path",{d:"M42.2538467,56.3169014 C42.834665,56.3169014 43.3919278,56.5473051 43.8025756,56.957964 L43.8025756,56.957964 L50.5634819,63.7190531 C50.990585,64.1465338 51.2042254,64.7070592 51.2042254,65.267637 C51.2042254,65.8282064 50.9905908,66.3887389 50.5631792,66.8165562 C50.1353619,67.244019 49.5748515,67.4577465 49.0143336,67.4577465 C48.453827,67.4577465 47.893307,67.2440267 47.4652769,66.8163886 L47.4652769,66.8163886 L41.3467145,60.697095 L29.639469,60.697095 L23.5207389,66.8165562 C23.0929158,67.2440249 22.5323953,67.4577465 21.9719658,67.4577465 C21.4114352,67.4577465 20.8509999,67.2439558 20.4235838,66.8165562 C19.995665,66.388992 19.7816901,65.8283383 19.7816901,65.2676696 C19.7816901,64.7070094 19.9956592,64.1463486 20.4234173,63.7189168 L20.4234173,63.7189168 L27.1839229,56.9576493 C27.5952192,56.5470739 28.1516855,56.3169014 28.7323368,56.3169014 L28.7323368,56.3169014 Z",id:"Path",stroke:"currentColor"}),f.createElement("path",{d:"M63.9378166,21.2379048 C64.4225216,20.8714311 65.0086399,20.7379975 65.5642349,20.8181856 C66.1191803,20.8982799 66.6440521,21.191578 67.006552,21.6798365 C67.3682973,22.1662502 67.5006358,22.75458 67.4216695,23.3126471 C67.3426278,23.8712474 67.0519787,24.3991735 66.5692317,24.7645164 L66.5692317,24.7645164 L53.5947929,34.5837331 L50.8571888,42.8725775 L63.4236834,55.5534973 C63.8498746,55.9835692 64.0634024,56.5474048 64.0634024,57.111468 C64.0634024,57.6755228 63.8498803,58.2393656 63.4235328,58.6696236 C62.9952729,59.1014133 62.434079,59.3169014 61.8731786,59.3169014 C61.3121772,59.3169014 60.7510686,59.1013441 60.3230649,58.6694716 L60.3230649,58.6694716 L46.8022881,45.0255804 C46.5094233,44.730049 46.31189,44.3642735 46.2203738,43.9732706 C46.1289585,43.5826987 46.1433461,43.1669732 46.2741073,42.7711741 L46.2741073,42.7711741 L49.6544877,32.5388634 C49.7943202,32.1133276 50.0607882,31.7409505 50.416846,31.4711161 L50.416846,31.4711161 Z",id:"Path",stroke:"currentColor"}))))),K0=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_number",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group",transform:"translate(20.000000, 20.000000)",fill:"currentColor"},f.createElement("path",{d:"M-10.5,30.5 L51.5,30.5 C53.709139,30.5 55.5,32.290861 55.5,34.5 L55.5,35.5 C55.5,37.709139 53.709139,39.5 51.5,39.5 L-10.5,39.5 C-12.709139,39.5 -14.5,37.709139 -14.5,35.5 L-14.5,34.5 C-14.5,32.290861 -12.709139,30.5 -10.5,30.5 Z",id:"Rectangle-Copy-60",transform:"translate(20.500000, 35.000000) rotate(-90.000000) translate(-20.500000, -35.000000) "}),f.createElement("path",{d:"M19.5,30.5 L81.5,30.5 C83.709139,30.5 85.5,32.290861 85.5,34.5 L85.5,35.5 C85.5,37.709139 83.709139,39.5 81.5,39.5 L19.5,39.5 C17.290861,39.5 15.5,37.709139 15.5,35.5 L15.5,34.5 C15.5,32.290861 17.290861,30.5 19.5,30.5 Z",id:"Rectangle-Copy-61",transform:"translate(50.500000, 35.000000) rotate(-90.000000) translate(-50.500000, -35.000000) "}),f.createElement("path",{d:"M4,14 L66,14 C68.209139,14 70,15.790861 70,18 L70,19 C70,21.209139 68.209139,23 66,23 L4,23 C1.790861,23 2.705415e-16,21.209139 0,19 L0,18 C-2.705415e-16,15.790861 1.790861,14 4,14 Z",id:"Rectangle-Copy-63",transform:"translate(35.000000, 18.500000) rotate(-360.000000) translate(-35.000000, -18.500000) "}),f.createElement("path",{d:"M4,44 L66,44 C68.209139,44 70,45.790861 70,48 L70,49 C70,51.209139 68.209139,53 66,53 L4,53 C1.790861,53 2.705415e-16,51.209139 0,49 L0,48 C-2.705415e-16,45.790861 1.790861,44 4,44 Z",id:"Rectangle-Copy-62",transform:"translate(35.000000, 48.500000) rotate(-360.000000) translate(-35.000000, -48.500000) "})))),cv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_percent",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"%-copy-5",transform:"translate(19.000000, 22.000000)",fill:"currentColor",fillRule:"nonzero"},f.createElement("path",{d:"M16.1194226,31.5251397 C19.1010499,31.5251397 21.8186789,30.8184358 24.2723097,29.4050279 C26.7259405,27.9916201 28.6671041,26.0712291 30.0958005,23.6438547 C31.5244969,21.2164804 32.2388451,18.5893855 32.2388451,15.7625698 C32.2388451,12.9357542 31.5244969,10.3086592 30.0958005,7.88128492 C28.6671041,5.45391061 26.7259405,3.53351955 24.2723097,2.12011173 C21.8186789,0.706703911 19.1010499,0 16.1194226,0 C13.1377953,0 10.4201662,0.706703911 7.96653543,2.12011173 C5.51290464,3.53351955 3.57174103,5.45391061 2.14304462,7.88128492 C0.714348206,10.3086592 0,12.9357542 0,15.7625698 C0,18.5893855 0.714348206,21.2164804 2.14304462,23.6438547 C3.57174103,26.0712291 5.51290464,27.9916201 7.96653543,29.4050279 C10.4201662,30.8184358 13.1377953,31.5251397 16.1194226,31.5251397 Z M19.9645575,62.4787112 L57.1929452,7.56550735 C58.3200259,5.90302296 57.8859954,3.64163362 56.223511,2.5145529 C56.2107419,2.50589603 56.1979177,2.49732049 56.1850394,2.48882682 C54.4804105,1.3645685 52.1887314,1.81914062 51.0422905,3.50893047 L13.7228276,58.5157377 C12.6107181,60.1549252 13.0379992,62.3852921 14.6771866,63.4974016 C14.7072768,63.5178164 14.7376757,63.5377723 14.7683727,63.5572626 C16.507245,64.6613129 18.8087263,64.1836036 19.9645575,62.4787112 Z M16.1194226,24.150838 C13.8832021,24.150838 12.0041557,23.3519553 10.4822835,21.7541899 C8.9604112,20.1564246 8.19947507,18.1592179 8.19947507,15.7625698 C8.19947507,13.3044693 8.9604112,11.2918994 10.4822835,9.72486034 C12.0041557,8.15782123 13.8832021,7.37430168 16.1194226,7.37430168 C18.4177603,7.37430168 20.3278653,8.15782123 21.8497375,9.72486034 C23.3716098,11.2918994 24.1325459,13.3044693 24.1325459,15.7625698 C24.1325459,18.2206704 23.3716098,20.2332402 21.8497375,21.8002793 C20.3278653,23.3673184 18.4177603,24.150838 16.1194226,24.150838 Z M54.8805774,66 C57.8622047,66 60.5798338,65.2932961 63.0334646,63.8798883 C65.4870954,62.4664804 67.428259,60.5460894 68.8569554,58.1187151 C70.2856518,55.6913408 71,53.0642458 71,50.2374302 C71,47.4106145 70.2856518,44.7835196 68.8569554,42.3561453 C67.428259,39.9287709 65.4870954,38.0083799 63.0334646,36.5949721 C60.5798338,35.1815642 57.8622047,34.4748603 54.8805774,34.4748603 C51.8989501,34.4748603 49.1813211,35.1815642 46.7276903,36.5949721 C44.2740595,38.0083799 42.3328959,39.9287709 40.9041995,42.3561453 C39.4755031,44.7835196 38.7611549,47.4106145 38.7611549,50.2374302 C38.7611549,53.0642458 39.4755031,55.6913408 40.9041995,58.1187151 C42.3328959,60.5460894 44.2740595,62.4664804 46.7276903,63.8798883 C49.1813211,65.2932961 51.8989501,66 54.8805774,66 Z M54.8805774,58.6256983 C52.644357,58.6256983 50.7653106,57.8268156 49.2434383,56.2290503 C47.7215661,54.6312849 46.9606299,52.6340782 46.9606299,50.2374302 C46.9606299,47.7793296 47.7215661,45.7667598 49.2434383,44.1997207 C50.7653106,42.6326816 52.644357,41.849162 54.8805774,41.849162 C57.1789151,41.849162 59.0890201,42.6326816 60.6108924,44.1997207 C62.1327647,45.7667598 62.8937008,47.7793296 62.8937008,50.2374302 C62.8937008,52.6340782 62.1172353,54.6312849 60.5643045,56.2290503 C59.0113736,57.8268156 57.1167979,58.6256983 54.8805774,58.6256983 Z",id:"%-copy-2"})))),dv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"5 5 100 100",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_scatter",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M29.1340462,83.93 C36.5885775,83.93 42.6340462,77.8857969 42.6340462,70.43 C42.6340462,62.9742031 36.5885775,56.93 29.1340462,56.93 C21.679515,56.93 15.6340462,62.9742031 15.6340462,70.43 C15.6340462,77.8857969 21.679515,83.93 29.1340462,83.93 Z",id:"Path-Copy-3",stroke:"#9aa0a6",className:"primarystroke",strokeWidth:7,fillRule:"nonzero"}),f.createElement("path",{d:"M68.2840462,92.63 C73.6709212,92.63 78.0340462,88.264925 78.0340462,82.88 C78.0340462,77.495075 73.6709212,73.13 68.2840462,73.13 C62.8971712,73.13 58.5340462,77.495075 58.5340462,82.88 C58.5340462,88.264925 62.8971712,92.63 68.2840462,92.63 Z",id:"Path-Copy-2",stroke:"#9aa0a6",className:"primarystroke",strokeWidth:7,fillRule:"nonzero",transform:"translate(68.284046, 82.880000) rotate(-360.000000) translate(-68.284046, -82.880000) "}),f.createElement("path",{d:"M67.8242963,57.43 C78.8701296,57.43 87.8242963,48.4758333 87.8242963,37.43 C87.8242963,26.3842917 78.8701296,17.43 67.8242963,17.43 C56.7784629,17.43 47.8242963,26.3842917 47.8242963,37.43 C47.8242963,48.4758333 56.7784629,57.43 67.8242963,57.43 Z",id:"Path-Copy",stroke:"#9aa0a6",className:"primarystroke",strokeWidth:7,fillRule:"nonzero"}))),fv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 110 110",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_sparkline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},f.createElement("polyline",{id:"Path-11",stroke:"#9aa0a6",strokeWidth:6,points:"10 54.8274509 25.9215088 61.0844803 40.1501567 54.8274509 53.3907166 68.7215958 69.5925598 42 83.3327332 64.4487228 100.431152 57.8274509"}))),pv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_table",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M81.0526316,23 L28.9473684,23 C25.1263158,23 22,26.1662162 22,30.036036 L22,79.2882883 C22,83.1581081 25.1263158,86.3243243 28.9473684,86.3243243 L81.0526316,86.3243243 C84.8736842,86.3243243 88,83.1581081 88,79.2882883 L88,30.036036 C88,26.1662162 84.8736842,23 81.0526316,23 Z M80.8648649,30.1351351 L80.8648649,40.8378378 L28.2432432,40.8378378 L28.2432432,30.1351351 L80.8648649,30.1351351 Z M63.9189189,79.1891892 L46.0810811,79.1891892 L46.0810811,47.972973 L63.9189189,47.972973 L63.9189189,79.1891892 Z M28.2432432,47.972973 L38.9459459,47.972973 L38.9459459,79.1891892 L28.2432432,79.1891892 L28.2432432,47.972973 Z M71.0540541,79.1891892 L71.0540541,47.972973 L81.7567568,47.972973 L81.7567568,79.1891892 L71.0540541,79.1891892 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"}))),mv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_text",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("rect",{id:"Rectangle-Copy",stroke:"currentColor",strokeWidth:6,x:15.5,y:35,width:79,height:40,rx:5}),f.createElement("g",{id:"abc",transform:"translate(33.090000, 44.134000)",fill:"currentColor",fillRule:"nonzero"},f.createElement("path",{d:"M4.81,19.032 C3.406,19.032 2.25333333,18.6203333 1.352,17.797 C0.450666667,16.9736667 0,15.8946667 0,14.56 C0,13.676 0.234,12.896 0.702,12.22 C1.17,11.544 1.81133333,11.024 2.626,10.66 C3.44066667,10.296 4.342,10.114 5.33,10.114 C6.69933333,10.114 7.86933333,10.3133333 8.84,10.712 L8.84,10.14 C8.84,9.412 8.567,8.82266667 8.021,8.372 C7.475,7.92133333 6.74266667,7.696 5.824,7.696 C5.2,7.696 4.59766667,7.839 4.017,8.125 C3.43633333,8.411 2.95533333,8.788 2.574,9.256 L0.39,7.54 C1.03133333,6.708 1.83733333,6.06666667 2.808,5.616 C3.77866667,5.16533333 4.836,4.94 5.98,4.94 C8.008,4.94 9.55066667,5.408 10.608,6.344 C11.6653333,7.28 12.194,8.64933333 12.194,10.452 L12.194,18.616 L8.84,18.616 L8.84,17.264 L8.632,17.264 C8.23333333,17.784 7.709,18.2086667 7.059,18.538 C6.409,18.8673333 5.65933333,19.032 4.81,19.032 Z M5.616,16.38 C6.604,16.38 7.38833333,16.0636667 7.969,15.431 C8.54966667,14.7983333 8.84,14.0573333 8.84,13.208 C7.956,12.792 7.02866667,12.584 6.058,12.584 C4.29,12.584 3.406,13.2426667 3.406,14.56 C3.406,15.0973333 3.59666667,15.535 3.978,15.873 C4.35933333,16.211 4.90533333,16.38 5.616,16.38 Z",id:"Shape"}),f.createElement("path",{d:"M22.724,19.032 C21.8226667,19.032 21.021,18.8413333 20.319,18.46 C19.617,18.0786667 19.0926667,17.602 18.746,17.03 L18.538,17.03 L18.538,18.616 L15.34,18.616 L15.34,0 L18.746,0 L18.746,5.096 L18.538,6.968 L18.746,6.968 C19.11,6.396 19.6386667,5.915 20.332,5.525 C21.0253333,5.135 21.8226667,4.94 22.724,4.94 C23.92,4.94 25.0076667,5.239 25.987,5.837 C26.9663333,6.435 27.7333333,7.27133333 28.288,8.346 C28.8426667,9.42066667 29.12,10.634 29.12,11.986 C29.12,13.3553333 28.8426667,14.573 28.288,15.639 C27.7333333,16.705 26.9663333,17.537 25.987,18.135 C25.0076667,18.733 23.92,19.032 22.724,19.032 Z M22.126,15.886 C22.7673333,15.886 23.3653333,15.7213333 23.92,15.392 C24.4746667,15.0626667 24.9166667,14.6033333 25.246,14.014 C25.5753333,13.4246667 25.74,12.7486667 25.74,11.986 C25.74,11.2233333 25.5753333,10.5473333 25.246,9.958 C24.9166667,9.36866667 24.4746667,8.91366667 23.92,8.593 C23.3653333,8.27233333 22.7673333,8.112 22.126,8.112 C21.502,8.112 20.9126667,8.27233333 20.358,8.593 C19.8033333,8.91366667 19.3613333,9.36866667 19.032,9.958 C18.7026667,10.5473333 18.538,11.2233333 18.538,11.986 C18.538,12.7486667 18.7026667,13.4246667 19.032,14.014 C19.3613333,14.6033333 19.8033333,15.0626667 20.358,15.392 C20.9126667,15.7213333 21.502,15.886 22.126,15.886 Z",id:"Shape"}),f.createElement("path",{d:"M37.986,19.032 C36.6513333,19.032 35.4553333,18.733 34.398,18.135 C33.3406667,17.537 32.513,16.7006667 31.915,15.626 C31.317,14.5513333 31.018,13.338 31.018,11.986 C31.018,10.634 31.317,9.425 31.915,8.359 C32.513,7.293 33.3406667,6.45666667 34.398,5.85 C35.4553333,5.24333333 36.6513333,4.94 37.986,4.94 C39.4593333,4.94 40.7246667,5.25633333 41.782,5.889 C42.8393333,6.52166667 43.602,7.41866667 44.07,8.58 L40.95,9.88 C40.3953333,8.70133333 39.4073333,8.112 37.986,8.112 C36.946,8.112 36.0923333,8.46733333 35.425,9.178 C34.7576667,9.88866667 34.424,10.8246667 34.424,11.986 C34.424,13.1646667 34.7576667,14.1093333 35.425,14.82 C36.0923333,15.5306667 36.946,15.886 37.986,15.886 C39.4246667,15.886 40.4646667,15.262 41.106,14.014 L44.2,15.366 C43.628,16.5273333 42.8133333,17.4286667 41.756,18.07 C40.6986667,18.7113333 39.442,19.032 37.986,19.032 Z",id:"Path"})))),hv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_time",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group-Copy-19",transform:"translate(51.307692, 36.538462)",fill:"currentColor",fillRule:"nonzero"},f.createElement("polygon",{id:"Path",points:"5.30769231 0 0 0 0 21.7906683 18.5769231 33.2307692 21.2307692 28.7636822 5.30769231 19.0668348"})),f.createElement("circle",{id:"Oval",stroke:"currentColor",strokeWidth:7,cx:55,cy:55,r:32.5}))),gv=e=>f.createElement("svg",{height:56,viewBox:"0 0 56 56",width:56,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("path",{fill:"currentColor",d:"m23.957 41.7695c3.8906 0 7.5234-1.2656 10.4766-3.375l11.1093 11.1094c.5156.5156 1.1953.7735 1.8985.7735 1.5234 0 2.625-1.1719 2.625-2.6719 0-.7032-.2342-1.3594-.7502-1.875l-11.0389-11.0626c2.3203-3.0468 3.7031-6.8203 3.7031-10.9218 0-9.9141-8.1094-18.0235-18.0234-18.0235-9.9375 0-18.0234 8.1094-18.0234 18.0235 0 9.914 8.0859 18.0234 18.0234 18.0234zm0-3.8906c-7.7578 0-14.1328-6.3984-14.1328-14.1328s6.375-14.1328 14.1328-14.1328c7.7344 0 14.1328 6.3984 14.1328 14.1328s-6.3984 14.1328-14.1328 14.1328z"})),xv={chevronDown:g5,chevronLeft:x5,chevronRight:y5,clear:vm,meatballs:z5,play:q5,copy:b5,checkmark:v5,radioChecked:W5,radioUnchecked:G5,warning:U5,check_circle:Y5,gear:H5,info:V5,error:X5,refresh:Z5,sidebarCollapse:K5,filterSliders:Q5,aggregate:C5,dimension:V0,filter:_5,groupBy:S5,insert:w5,limit:k5,orderBy:R5,measure:H0,nest:E5,array:N5,boolean:M5,database:D5,date:I5,json:O5,number:P5,query:F5,search:gv,sql_native:$5,string:V0,view:L5,view_filled:B5,many_to_one:A5,one_to_many:T5,one_to_one:j5,viz_bar_chart:X0,viz_bar:X0,viz_boolean:J5,viz_bytes:K0,viz_cartesian_chart:ki,viz_column_chart:ev,viz_currency:tv,viz_dashboard:nv,viz_image:rv,viz_json:ov,viz_line_chart:ki,viz_line:ki,viz_link:Z0,viz_list:sv,viz_list_detail:iv,viz_point_map:lv,viz_segment_map:av,viz_shape_map:uv,viz_number:K0,viz_percent:cv,viz_scatter_chart:dv,viz_single_value:H0,viz_sparkline:fv,viz_table:pv,viz_text:mv,viz_time:hv,viz_url:Z0,viz_vega:ki};function ie({name:e,color:t="primary",customStyle:r}){const o=xv[e];return o?d.jsx(o,{...A.props(yv.main,vv[t],r),"data-testid":`icon-${t}-${e}`}):null}const yv={main:{display:"mly1rg5ohu",width:"mly1kky2od",height:"mlylup9mm",overflow:"mly1rea2x4",overflowX:null,overflowY:null,$$css:!0}},vv={primary:{color:"mly1p68tcb",$$css:!0},secondary:{color:"mly1r0d382",$$css:!0},disabled:{color:"mly16un6j3",$$css:!0},primaryOnMedia:{color:"mly1kiansi",$$css:!0},gray:{color:"mlyann5r3",$$css:!0},purple:{color:"mly1ywypuw",$$css:!0},green:{color:"mly1evcnq1",$$css:!0},cyan:{color:"mly1h091fy",$$css:!0},info:{color:"mly1tw9ct1",$$css:!0},warning:{color:"mly7neac5",$$css:!0},positive:{color:"mly1l99qkd",$$css:!0},negative:{color:"mly109d434",$$css:!0}},bv="gray";function er({label:e,color:t=bv,icon:r,customStyle:o}){return d.jsxs("div",{...A.props(Q0.main,wv[t],o),children:[r&&d.jsx(ie,{color:t,name:r}),d.jsx("div",{"data-testid":"badge-label",...A.props(Y.badge,Q0.label),children:e})]})}const Q0={main:{display:"mly3nfvp2",height:"mly1qx5ct2",minWidth:"mlyt4ypqs",padding:"mlyxzb6uj",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,justifyContent:"mlyl56j7k",alignItems:"mly6s0dn4",gap:"mly1jnr06f",rowGap:null,columnGap:null,flexShrink:"mly2lah0s",borderRadius:"mly10hpsqq",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,background:"mlysu8s4a",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0},label:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textAlign:"mly2b8uid",leadingTrim:"mly11e9jwx",textEdge:"mly1vqy1sf",textOverflow:"mlylyipyv",color:"mly1ard1hs",$$css:!0}},wv={gray:{"--mly10mhzaa":"mly1rve117","--mly1ojyoay":"mlybcavtu",$$css:!0},purple:{"--mly10mhzaa":"mlyihc5ie","--mly1ojyoay":"mlywis56f",$$css:!0},green:{"--mly10mhzaa":"mly10cf5cp","--mly1ojyoay":"mlyy280wj",$$css:!0},cyan:{"--mly10mhzaa":"mlykvi9ht","--mly1ojyoay":"mly1eg6ybj",$$css:!0}},Cv="horizontal";function lo({orientation:e=Cv,customStyle:t}){return d.jsx("div",{...A.props(_v.main,Sv[e],t)})}const _v={main:{background:"mly1xnbgy5",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0}},Sv={horizontal:{height:"mlyjm9jq1",width:"mlyh8yej3",$$css:!0},vertical:{height:"mlypyat2d",width:"mly1i1rx1s",$$css:!0}};function kv({children:e}){return d.jsx("div",{className:"mly78zum5 mlydt5ytf mly167g77z",children:f.Children.map(e,t=>t)})}var Ev=f.createContext(void 0);function Xs(e){const t=f.useContext(Ev);return e||t||"ltr"}function Du(e,[t,r]){return Math.min(r,Math.max(t,e))}function Rv(e,t){return f.useReducer((r,o)=>t[r][o]??r,e)}var Oc="ScrollArea",[bm,eL]=Kt(Oc),[Av,Lt]=bm(Oc),wm=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:o="hover",dir:s,scrollHideDelay:i=600,...l}=e,[a,u]=f.useState(null),[c,p]=f.useState(null),[m,g]=f.useState(null),[h,x]=f.useState(null),[v,y]=f.useState(null),[b,w]=f.useState(0),[C,_]=f.useState(0),[k,E]=f.useState(!1),[R,j]=f.useState(!1),D=ae(t,B=>u(B)),I=Xs(s);return d.jsx(Av,{scope:r,type:o,dir:I,scrollHideDelay:i,scrollArea:a,viewport:c,onViewportChange:p,content:m,onContentChange:g,scrollbarX:h,onScrollbarXChange:x,scrollbarXEnabled:k,onScrollbarXEnabledChange:E,scrollbarY:v,onScrollbarYChange:y,scrollbarYEnabled:R,onScrollbarYEnabledChange:j,onCornerWidthChange:w,onCornerHeightChange:_,children:d.jsx(ee.div,{dir:I,...l,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":C+"px",...e.style}})})});wm.displayName=Oc;var Cm="ScrollAreaViewport",_m=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:o,nonce:s,...i}=e,l=Lt(Cm,r),a=f.useRef(null),u=ae(t,a,l.onViewportChange);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),d.jsx(ee.div,{"data-radix-scroll-area-viewport":"",...i,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:d.jsx("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});_m.displayName=Cm;var hn="ScrollAreaScrollbar",Sm=f.forwardRef((e,t)=>{const{forceMount:r,...o}=e,s=Lt(hn,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=s,a=e.orientation==="horizontal";return f.useEffect(()=>(a?i(!0):l(!0),()=>{a?i(!1):l(!1)}),[a,i,l]),s.type==="hover"?d.jsx(Tv,{...o,ref:t,forceMount:r}):s.type==="scroll"?d.jsx(jv,{...o,ref:t,forceMount:r}):s.type==="auto"?d.jsx(km,{...o,ref:t,forceMount:r}):s.type==="always"?d.jsx(Pc,{...o,ref:t}):null});Sm.displayName=hn;var Tv=f.forwardRef((e,t)=>{const{forceMount:r,...o}=e,s=Lt(hn,e.__scopeScrollArea),[i,l]=f.useState(!1);return f.useEffect(()=>{const a=s.scrollArea;let u=0;if(a){const c=()=>{window.clearTimeout(u),l(!0)},p=()=>{u=window.setTimeout(()=>l(!1),s.scrollHideDelay)};return a.addEventListener("pointerenter",c),a.addEventListener("pointerleave",p),()=>{window.clearTimeout(u),a.removeEventListener("pointerenter",c),a.removeEventListener("pointerleave",p)}}},[s.scrollArea,s.scrollHideDelay]),d.jsx(Qe,{present:r||i,children:d.jsx(km,{"data-state":i?"visible":"hidden",...o,ref:t})})}),jv=f.forwardRef((e,t)=>{const{forceMount:r,...o}=e,s=Lt(hn,e.__scopeScrollArea),i=e.orientation==="horizontal",l=Zl(()=>u("SCROLL_END"),100),[a,u]=Rv("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return f.useEffect(()=>{if(a==="idle"){const c=window.setTimeout(()=>u("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(c)}},[a,s.scrollHideDelay,u]),f.useEffect(()=>{const c=s.viewport,p=i?"scrollLeft":"scrollTop";if(c){let m=c[p];const g=()=>{const h=c[p];m!==h&&(u("SCROLL"),l()),m=h};return c.addEventListener("scroll",g),()=>c.removeEventListener("scroll",g)}},[s.viewport,i,u,l]),d.jsx(Qe,{present:r||a!=="hidden",children:d.jsx(Pc,{"data-state":a==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:q(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:q(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),km=f.forwardRef((e,t)=>{const r=Lt(hn,e.__scopeScrollArea),{forceMount:o,...s}=e,[i,l]=f.useState(!1),a=e.orientation==="horizontal",u=Zl(()=>{if(r.viewport){const c=r.viewport.offsetWidth<r.viewport.scrollWidth,p=r.viewport.offsetHeight<r.viewport.scrollHeight;l(a?c:p)}},10);return yo(r.viewport,u),yo(r.content,u),d.jsx(Qe,{present:o||i,children:d.jsx(Pc,{"data-state":i?"visible":"hidden",...s,ref:t})})}),Pc=f.forwardRef((e,t)=>{const{orientation:r="vertical",...o}=e,s=Lt(hn,e.__scopeScrollArea),i=f.useRef(null),l=f.useRef(0),[a,u]=f.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=jm(a.viewport,a.content),p={...o,sizes:a,onSizesChange:u,hasThumb:c>0&&c<1,onThumbChange:g=>i.current=g,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:g=>l.current=g};function m(g,h){return Ov(g,l.current,a,h)}return r==="horizontal"?d.jsx(Dv,{...p,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const g=s.viewport.scrollLeft,h=J0(g,a,s.dir);i.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:g=>{s.viewport&&(s.viewport.scrollLeft=g)},onDragScroll:g=>{s.viewport&&(s.viewport.scrollLeft=m(g,s.dir))}}):r==="vertical"?d.jsx(Lv,{...p,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const g=s.viewport.scrollTop,h=J0(g,a);i.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:g=>{s.viewport&&(s.viewport.scrollTop=g)},onDragScroll:g=>{s.viewport&&(s.viewport.scrollTop=m(g))}}):null}),Dv=f.forwardRef((e,t)=>{const{sizes:r,onSizesChange:o,...s}=e,i=Lt(hn,e.__scopeScrollArea),[l,a]=f.useState(),u=f.useRef(null),c=ae(t,u,i.onScrollbarXChange);return f.useEffect(()=>{u.current&&a(getComputedStyle(u.current))},[u]),d.jsx(Rm,{"data-orientation":"horizontal",...s,ref:c,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Xl(r)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,m)=>{if(i.viewport){const g=i.viewport.scrollLeft+p.deltaX;e.onWheelScroll(g),Lm(g,m)&&p.preventDefault()}},onResize:()=>{u.current&&i.viewport&&l&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:dl(l.paddingLeft),paddingEnd:dl(l.paddingRight)}})}})}),Lv=f.forwardRef((e,t)=>{const{sizes:r,onSizesChange:o,...s}=e,i=Lt(hn,e.__scopeScrollArea),[l,a]=f.useState(),u=f.useRef(null),c=ae(t,u,i.onScrollbarYChange);return f.useEffect(()=>{u.current&&a(getComputedStyle(u.current))},[u]),d.jsx(Rm,{"data-orientation":"vertical",...s,ref:c,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Xl(r)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,m)=>{if(i.viewport){const g=i.viewport.scrollTop+p.deltaY;e.onWheelScroll(g),Lm(g,m)&&p.preventDefault()}},onResize:()=>{u.current&&i.viewport&&l&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:dl(l.paddingTop),paddingEnd:dl(l.paddingBottom)}})}})}),[Nv,Em]=bm(hn),Rm=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:o,hasThumb:s,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:a,onThumbPositionChange:u,onDragScroll:c,onWheelScroll:p,onResize:m,...g}=e,h=Lt(hn,r),[x,v]=f.useState(null),y=ae(t,D=>v(D)),b=f.useRef(null),w=f.useRef(""),C=h.viewport,_=o.content-o.viewport,k=Ye(p),E=Ye(u),R=Zl(m,10);function j(D){if(b.current){const I=D.clientX-b.current.left,B=D.clientY-b.current.top;c({x:I,y:B})}}return f.useEffect(()=>{const D=I=>{const B=I.target;x?.contains(B)&&k(I,_)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[C,x,_,k]),f.useEffect(E,[o,E]),yo(x,R),yo(h.content,R),d.jsx(Nv,{scope:r,scrollbar:x,hasThumb:s,onThumbChange:Ye(i),onThumbPointerUp:Ye(l),onThumbPositionChange:E,onThumbPointerDown:Ye(a),children:d.jsx(ee.div,{...g,ref:y,style:{position:"absolute",...g.style},onPointerDown:q(e.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),b.current=x.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),j(D))}),onPointerMove:q(e.onPointerMove,j),onPointerUp:q(e.onPointerUp,D=>{const I=D.target;I.hasPointerCapture(D.pointerId)&&I.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=w.current,h.viewport&&(h.viewport.style.scrollBehavior=""),b.current=null})})})}),cl="ScrollAreaThumb",Am=f.forwardRef((e,t)=>{const{forceMount:r,...o}=e,s=Em(cl,e.__scopeScrollArea);return d.jsx(Qe,{present:r||s.hasThumb,children:d.jsx(Mv,{ref:t,...o})})}),Mv=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:o,...s}=e,i=Lt(cl,r),l=Em(cl,r),{onThumbPositionChange:a}=l,u=ae(t,m=>l.onThumbChange(m)),c=f.useRef(void 0),p=Zl(()=>{c.current&&(c.current(),c.current=void 0)},100);return f.useEffect(()=>{const m=i.viewport;if(m){const g=()=>{if(p(),!c.current){const h=Pv(m,a);c.current=h,a()}};return a(),m.addEventListener("scroll",g),()=>m.removeEventListener("scroll",g)}},[i.viewport,p,a]),d.jsx(ee.div,{"data-state":l.hasThumb?"visible":"hidden",...s,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:q(e.onPointerDownCapture,m=>{const h=m.target.getBoundingClientRect(),x=m.clientX-h.left,v=m.clientY-h.top;l.onThumbPointerDown({x,y:v})}),onPointerUp:q(e.onPointerUp,l.onThumbPointerUp)})});Am.displayName=cl;var Fc="ScrollAreaCorner",Tm=f.forwardRef((e,t)=>{const r=Lt(Fc,e.__scopeScrollArea),o=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&o?d.jsx(Iv,{...e,ref:t}):null});Tm.displayName=Fc;var Iv=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,...o}=e,s=Lt(Fc,r),[i,l]=f.useState(0),[a,u]=f.useState(0),c=!!(i&&a);return yo(s.scrollbarX,()=>{var p;const m=((p=s.scrollbarX)==null?void 0:p.offsetHeight)||0;s.onCornerHeightChange(m),u(m)}),yo(s.scrollbarY,()=>{var p;const m=((p=s.scrollbarY)==null?void 0:p.offsetWidth)||0;s.onCornerWidthChange(m),l(m)}),c?d.jsx(ee.div,{...o,ref:t,style:{width:i,height:a,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function dl(e){return e?parseInt(e,10):0}function jm(e,t){const r=e/t;return isNaN(r)?0:r}function Xl(e){const t=jm(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-r)*t;return Math.max(o,18)}function Ov(e,t,r,o="ltr"){const s=Xl(r),i=s/2,l=t||i,a=s-l,u=r.scrollbar.paddingStart+l,c=r.scrollbar.size-r.scrollbar.paddingEnd-a,p=r.content-r.viewport,m=o==="ltr"?[0,p]:[p*-1,0];return Dm([u,c],m)(e)}function J0(e,t,r="ltr"){const o=Xl(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-s,l=t.content-t.viewport,a=i-o,u=r==="ltr"?[0,l]:[l*-1,0],c=Du(e,u);return Dm([0,l],[0,a])(c)}function Dm(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(r-e[0])}}function Lm(e,t){return e>0&&e<t}var Pv=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},o=0;return function s(){const i={left:e.scrollLeft,top:e.scrollTop},l=r.left!==i.left,a=r.top!==i.top;(l||a)&&t(),r=i,o=window.requestAnimationFrame(s)}(),()=>window.cancelAnimationFrame(o)};function Zl(e,t){const r=Ye(e),o=f.useRef(0);return f.useEffect(()=>()=>window.clearTimeout(o.current),[]),f.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,t)},[r,t])}function yo(e,t){const r=Ye(t);lt(()=>{let o=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(r)});return s.observe(e),()=>{window.cancelAnimationFrame(o),s.unobserve(e)}}},[e,r])}var Fv=wm,Bv=_m,ef=Sm,tf=Am,$v=Tm;function Bc({children:e}){return d.jsxs(Fv,{className:"mlyh8yej3 mly5yr21d mlyb3r6kr mly1bo1i26 mly1fzkygm mlynu5hmx mly1u5txqc",children:[d.jsx(Bv,{className:"mlyh8yej3 mly5yr21d mly1pjcqnp",children:f.Children.map(e,t=>t)}),d.jsx(ef,{className:"mly78zum5 mly3j5mvw mly15sj6ns mly14znju7 mlyehqz9p mly1xc55vz",orientation:"vertical",children:d.jsx(tf,{className:"mly98rzlu mly1o4sr5b mly12oqio5"})}),d.jsx(ef,{className:"mly78zum5 mly3j5mvw mly15sj6ns mly14znju7 mlydt5ytf mlyztvwtv mlydk7pt",orientation:"horizontal",children:d.jsx(tf,{className:"mly98rzlu mly1o4sr5b mly12oqio5"})}),d.jsx($v,{className:"mly3j5mvw mly1d3ksz1 mly14znju7"})]})}const zv="default",qv="default";function ke({variant:e=zv,size:t=qv,icon:r,label:o,tooltip:s,isDisabled:i=!1,customStyle:l,...a}){const u=d.jsxs("button",{...A.props($a.main,Wv[e],Gv[t],l),type:"button",disabled:i,...a,children:[d.jsxs("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4 mly167g77z",children:[r&&d.jsx(ie,{name:r,customStyle:$a.icon}),o&&d.jsx("div",{...A.props(e==="primary"?Y.emphasized:Y.body,$a.label),children:o})]}),i&&d.jsx("div",{className:"mly10l6tqk mlyu96u03 mly3m8u43 mlyzy8d55 mly47corl mlyur7f20 mlyh8yej3 mly5yr21d"})]});return s?d.jsxs(jo,{delayDuration:300,children:[d.jsx(Do,{asChild:!0,children:u}),d.jsx(Lo,{children:d.jsx(No,{sideOffset:8,...A.props(Y.body,Pn.default),children:s})})]}):u}const $a={main:{display:"mly3nfvp2",flexDirection:"mlydt5ytf",justifyContent:"mlyl56j7k",alignItems:"mly6s0dn4",position:"mly1n2onr6",gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderWidth:"mlyc342km",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,cursor:"mly1ypdohk mly1s07b3s",flexShrink:"mly2lah0s",userSelect:"mly87ps6o",$$css:!0},icon:{color:"mlyuk6yi3",$$css:!0},label:{color:"mlyaerthn",whiteSpace:"mlyuxw1ft",$$css:!0}},Wv={default:{background:"mlygqa5hp mly1uceoyp mly1cncicd",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,"--mlyxo3nik":"mlypfd894 mlyiv1q3g","--mly1hpdckv":"mly5xbp4t mly1iu3zmn",$$css:!0},flat:{background:"mly1md70p1 mly14hn1a8 mlywghvya",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,"--mlyxo3nik":"mlypfd894 mlyiv1q3g","--mly1hpdckv":"mly5xbp4t mly1iu3zmn",$$css:!0},primary:{background:"mlyhcrij8 mly1vdl2d1 mly1u4cpcs",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,"--mlyxo3nik":"mly1n5rdk7 mly1dsjhx","--mly1hpdckv":"mly3mt86g mly13vk70h",$$css:!0}},Gv={default:{height:"mlyc9qbxq",padding:"mly153ncpu",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},compact:{height:"mly1fgtraw",padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}},sr={main:{display:"mlywz0xwf",gridAutoFlow:"mly1mt1orb",alignItems:"mly6s0dn4",justifyContent:"mlyl56j7k",gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderWidth:"mlyc342km",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,cursor:"mly1ypdohk",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,background:"mly1np9qvj mly1uceoyp",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,position:"mly1n2onr6",$$css:!0},icon:{color:"mlywn9h7t",$$css:!0},label:{color:"mly1xre2ib",textOverflow:"mlylyipyv",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,whiteSpace:"mlyuxw1ft",$$css:!0}},$c={default:{"--mlyvygx4q":"mly1izbou4","--mly13n7235":"mly8bgh0r",$$css:!0},purple:{"--mlyvygx4q":"mly1f8soc4","--mly13n7235":"mly1r5zvhd",$$css:!0},green:{"--mlyvygx4q":"mlyf8wvcd","--mly13n7235":"mly1u6t2w6",$$css:!0},cyan:{"--mlyvygx4q":"mlyrtwgpv","--mly13n7235":"mlys5r2en",$$css:!0}},zc={default:{padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},compact:{padding:"mlyxzb6uj",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}},Fo="default",qc="default";function Be({label:e,icon:t,color:r=Fo,size:o=qc,onClick:s,onHover:i,asButtonTrigger:l=!1,tooltip:a,tooltipProps:u,customStyle:c,dragProps:p,...m}){const g=s!==void 0||l,h=d.jsxs("div",{...A.props(sr.main,$c[r],zc[o],!g&&Uv.nonInteractive,c),...p?.attributes,...p?.listeners,children:[t&&d.jsx(ie,{name:t,customStyle:sr.icon}),g&&d.jsx("button",{className:"mlyh8yej3 mly5yr21d mly10l6tqk mly13vifvy mlyu96u03 mly1md70p1 mlyng3xce mly1ypdohk",...s&&{onClick:s},...i&&{onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1)},...m}),e&&d.jsx("div",{...A.props(Y.body,sr.label),children:e})]});return a?d.jsxs(Mo,{delayDuration:300,children:[d.jsx(Io,{asChild:!0,children:h}),d.jsx(Oo,{children:d.jsx(Po,{...u,...A.props(Y.tooltipText,typeof a=="string"?Pn.default:Pn.card),children:a})})]}):h}const Uv={nonInteractive:{cursor:"mlyt0e3qv",background:"mly1np9qvj",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0}};function Zs({children:e,color:t=Fo,customStyle:r}){const o=f.Children.count(e);return d.jsx("div",{...A.props(cs.main,r),children:f.Children.map(e,(s,i)=>f.cloneElement(s,{customStyle:{...s.props.customStyle,...Yv(i,o)},color:Hv(s,t)}))})}const Yv=(e,t)=>t===1?cs.onlyChild:e===0?cs.firstChild:e===t-1?cs.lastChild:cs.innerChild,Hv=(e,t)=>{const r=e.props.color;return r===void 0?t:r},cs={main:{display:"mlyrvj5dj",gridAutoFlow:"mly1mt1orb",alignItems:"mly6s0dn4",gap:"mly12mrbbr",rowGap:null,columnGap:null,$$css:!0},firstChild:{borderRadius:"mlytah5vv",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},innerChild:{borderRadius:null,borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},lastChild:{borderRadius:"mly19ctu66",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},onlyChild:{borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0}};function Kl({errorMessage:e}){return d.jsxs(jo,{delayDuration:0,children:[d.jsx(Do,{asChild:!0,children:d.jsx("div",{className:"mlygd8bvy mly1fgtraw mly78zum5 mly6s0dn4 mlyl56j7k",children:d.jsx(ie,{name:"warning",customStyle:Vv.errorIcon})})}),d.jsx(Lo,{children:d.jsx(No,{children:d.jsx("div",{...A.props(Y.body,Pn.default),children:e})})})]})}const Vv={errorIcon:{color:"mly1e2nbdu",$$css:!0}};function Lu({value:e,onChange:t,onRemove:r,icon:o,color:s=Fo,size:i=qc,customStyle:l,type:a,errorMessage:u}){const[c,p]=f.useState(!1),m=f.useRef(null),g=f.useRef(null),h=({target:y})=>{t(a==="number"?parseFloat(y.value||"0"):y.value)},x=()=>{p(!0)},v=y=>{var b;g.current==null||y.relatedTarget!==g.current?p(!1):(b=m.current)==null||b.focus()};return d.jsxs("div",{className:"mly78zum5 mly6s0dn4",children:[d.jsxs("div",{...A.props(sr.main,$c[s],zc[i],c&&ns.focused,!!u&&ns.hasError,l),children:[o&&d.jsx(ie,{name:o,customStyle:ns.icon}),d.jsxs("span",{className:"mlywz0xwf",children:[d.jsx("span",{...A.props(Y.body,ns.placeholder),style:{whiteSpaceCollapse:"preserve"},children:e}),d.jsx("input",{...A.props(ns.input,Y.body),ref:m,pattern:a==="number"?"^-?[0-9.]*$":void 0,value:e,onChange:h,onFocus:x,onBlur:v,size:1})]}),r&&c&&d.jsx("button",{className:"mly3nfvp2 mlyc342km mly1md70p1 mly1717udv mly1ypdohk",ref:g,onClick:r,tabIndex:0,children:d.jsx(ie,{name:"clear"})})]}),u&&d.jsx(Kl,{errorMessage:u})]})}const ns={focused:{background:"mlyotlr4g",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,boxShadow:"mlyn8fsvk",$$css:!0},hasError:{border:"mly1dc9p4k",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},icon:{color:"mlywn9h7t",$$css:!0},placeholder:{background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,color:"mly19co3pv",gridArea:"mly15r89dc",gridRow:null,gridRowStart:null,gridRowEnd:null,gridColumn:null,gridColumnStart:null,gridColumnEnd:null,whiteSpace:"mlyuxw1ft",minWidth:"mlygc0pbm",$$css:!0},input:{color:"mly1xre2ib",gridArea:"mly15r89dc",gridRow:null,gridRowStart:null,gridRowEnd:null,gridColumn:null,gridColumnStart:null,gridColumnEnd:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderStyle:"mlyng3xce",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,whiteSpace:"mlyuxw1ft",minWidth:"mlygc0pbm",$$css:!0}};function Wc(e){const t=e+"CollectionProvider",[r,o]=Kt(t),[s,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),l=h=>{const{scope:x,children:v}=h,y=Ie.useRef(null),b=Ie.useRef(new Map).current;return d.jsx(s,{scope:x,itemMap:b,collectionRef:y,children:v})};l.displayName=t;const a=e+"CollectionSlot",u=Ie.forwardRef((h,x)=>{const{scope:v,children:y}=h,b=i(a,v),w=ae(x,b.collectionRef);return d.jsx(lr,{ref:w,children:y})});u.displayName=a;const c=e+"CollectionItemSlot",p="data-radix-collection-item",m=Ie.forwardRef((h,x)=>{const{scope:v,children:y,...b}=h,w=Ie.useRef(null),C=ae(x,w),_=i(c,v);return Ie.useEffect(()=>(_.itemMap.set(w,{ref:w,...b}),()=>void _.itemMap.delete(w))),d.jsx(lr,{[p]:"",ref:C,children:y})});m.displayName=c;function g(h){const x=i(e+"CollectionConsumer",h);return Ie.useCallback(()=>{const y=x.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((_,k)=>b.indexOf(_.ref.current)-b.indexOf(k.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:l,Slot:u,ItemSlot:m},g,o]}var za=0;function Ql(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??nf()),document.body.insertAdjacentElement("beforeend",e[1]??nf()),za++,()=>{za===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),za--}},[])}function nf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var qa="focusScope.autoFocusOnMount",Wa="focusScope.autoFocusOnUnmount",rf={bubbles:!1,cancelable:!0},Xv="FocusScope",Ks=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...l}=e,[a,u]=f.useState(null),c=Ye(s),p=Ye(i),m=f.useRef(null),g=ae(t,v=>u(v)),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(o){let v=function(C){if(h.paused||!a)return;const _=C.target;a.contains(_)?m.current=_:Kn(m.current,{select:!0})},y=function(C){if(h.paused||!a)return;const _=C.relatedTarget;_!==null&&(a.contains(_)||Kn(m.current,{select:!0}))},b=function(C){if(document.activeElement===document.body)for(const k of C)k.removedNodes.length>0&&Kn(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",y);const w=new MutationObserver(b);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),w.disconnect()}}},[o,a,h.paused]),f.useEffect(()=>{if(a){sf.add(h);const v=document.activeElement;if(!a.contains(v)){const b=new CustomEvent(qa,rf);a.addEventListener(qa,c),a.dispatchEvent(b),b.defaultPrevented||(Zv(tb(Nm(a)),{select:!0}),document.activeElement===v&&Kn(a))}return()=>{a.removeEventListener(qa,c),setTimeout(()=>{const b=new CustomEvent(Wa,rf);a.addEventListener(Wa,p),a.dispatchEvent(b),b.defaultPrevented||Kn(v??document.body,{select:!0}),a.removeEventListener(Wa,p),sf.remove(h)},0)}}},[a,c,p,h]);const x=f.useCallback(v=>{if(!r&&!o||h.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,b=document.activeElement;if(y&&b){const w=v.currentTarget,[C,_]=Kv(w);C&&_?!v.shiftKey&&b===_?(v.preventDefault(),r&&Kn(C,{select:!0})):v.shiftKey&&b===C&&(v.preventDefault(),r&&Kn(_,{select:!0})):b===w&&v.preventDefault()}},[r,o,h.paused]);return d.jsx(ee.div,{tabIndex:-1,...l,ref:g,onKeyDown:x})});Ks.displayName=Xv;function Zv(e,{select:t=!1}={}){const r=document.activeElement;for(const o of e)if(Kn(o,{select:t}),document.activeElement!==r)return}function Kv(e){const t=Nm(e),r=of(t,e),o=of(t.reverse(),e);return[r,o]}function Nm(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function of(e,t){for(const r of e)if(!Qv(r,{upTo:t}))return r}function Qv(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Jv(e){return e instanceof HTMLInputElement&&"select"in e}function Kn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Jv(e)&&t&&e.select()}}var sf=eb();function eb(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=lf(e,t),e.unshift(t)},remove(t){var r;e=lf(e,t),(r=e[0])==null||r.resume()}}}function lf(e,t){const r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}function tb(e){return e.filter(t=>t.tagName!=="A")}function nb(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var rb=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Vr=new WeakMap,Ei=new WeakMap,Ri={},Ga=0,Mm=function(e){return e&&(e.host||Mm(e.parentNode))},ob=function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=Mm(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},sb=function(e,t,r,o){var s=ob(t,Array.isArray(e)?e:[e]);Ri[r]||(Ri[r]=new WeakMap);var i=Ri[r],l=[],a=new Set,u=new Set(s),c=function(m){!m||a.has(m)||(a.add(m),c(m.parentNode))};s.forEach(c);var p=function(m){!m||u.has(m)||Array.prototype.forEach.call(m.children,function(g){if(a.has(g))p(g);else try{var h=g.getAttribute(o),x=h!==null&&h!=="false",v=(Vr.get(g)||0)+1,y=(i.get(g)||0)+1;Vr.set(g,v),i.set(g,y),l.push(g),v===1&&x&&Ei.set(g,!0),y===1&&g.setAttribute(r,"true"),x||g.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",g,b)}})};return p(t),a.clear(),Ga++,function(){l.forEach(function(m){var g=Vr.get(m)-1,h=i.get(m)-1;Vr.set(m,g),i.set(m,h),g||(Ei.has(m)||m.removeAttribute(o),Ei.delete(m)),h||m.removeAttribute(r)}),Ga--,Ga||(Vr=new WeakMap,Vr=new WeakMap,Ei=new WeakMap,Ri={})}},Jl=function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),s=rb(e);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live]"))),sb(o,s,r,"aria-hidden")):function(){return null}},ln=function(){return ln=Object.assign||function(t){for(var r,o=1,s=arguments.length;o<s;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ln.apply(this,arguments)};function Im(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(r[o[s]]=e[o[s]]);return r}function ib(e,t,r){for(var o=0,s=t.length,i;o<s;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var Vi="right-scroll-bar-position",Xi="width-before-scroll-bar",lb="with-scroll-bars-hidden",ab="--removed-body-scroll-bar-size";function Ua(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ub(e,t){var r=f.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var s=r.value;s!==o&&(r.value=o,r.callback(o,s))}}}})[0];return r.callback=t,r.facade}var cb=typeof window<"u"?f.useLayoutEffect:f.useEffect,af=new WeakMap;function db(e,t){var r=ub(null,function(o){return e.forEach(function(s){return Ua(s,o)})});return cb(function(){var o=af.get(r);if(o){var s=new Set(o),i=new Set(e),l=r.current;s.forEach(function(a){i.has(a)||Ua(a,null)}),i.forEach(function(a){s.has(a)||Ua(a,l)})}af.set(r,e)},[e]),r}function fb(e){return e}function pb(e,t){t===void 0&&(t=fb);var r=[],o=!1,s={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var l=t(i,o);return r.push(l),function(){r=r.filter(function(a){return a!==l})}},assignSyncMedium:function(i){for(o=!0;r.length;){var l=r;r=[],l.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){o=!0;var l=[];if(r.length){var a=r;r=[],a.forEach(i),l=r}var u=function(){var p=l;l=[],p.forEach(i)},c=function(){return Promise.resolve().then(u)};c(),r={push:function(p){l.push(p),c()},filter:function(p){return l=l.filter(p),r}}}};return s}function mb(e){e===void 0&&(e={});var t=pb(null);return t.options=ln({async:!0,ssr:!1},e),t}var Om=function(e){var t=e.sideCar,r=Im(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return f.createElement(o,ln({},r))};Om.isSideCarExport=!0;function hb(e,t){return e.useMedium(t),Om}var Pm=mb(),Ya=function(){},ea=f.forwardRef(function(e,t){var r=f.useRef(null),o=f.useState({onScrollCapture:Ya,onWheelCapture:Ya,onTouchMoveCapture:Ya}),s=o[0],i=o[1],l=e.forwardProps,a=e.children,u=e.className,c=e.removeScrollBar,p=e.enabled,m=e.shards,g=e.sideCar,h=e.noIsolation,x=e.inert,v=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,C=Im(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=g,k=db([r,t]),E=ln(ln({},C),s);return f.createElement(f.Fragment,null,p&&f.createElement(_,{sideCar:Pm,removeScrollBar:c,shards:m,noIsolation:h,inert:x,setCallbacks:i,allowPinchZoom:!!v,lockRef:r,gapMode:w}),l?f.cloneElement(f.Children.only(a),ln(ln({},E),{ref:k})):f.createElement(b,ln({},E,{className:u,ref:k}),a))});ea.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ea.classNames={fullWidth:Xi,zeroRight:Vi};var gb=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xb(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gb();return t&&e.setAttribute("nonce",t),e}function yb(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function vb(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bb=function(){var e=0,t=null;return{add:function(r){e==0&&(t=xb())&&(yb(t,r),vb(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wb=function(){var e=bb();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Fm=function(){var e=wb(),t=function(r){var o=r.styles,s=r.dynamic;return e(o,s),null};return t},Cb={left:0,top:0,right:0,gap:0},Ha=function(e){return parseInt(e||"",10)||0},_b=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Ha(r),Ha(o),Ha(s)]},Sb=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Cb;var t=_b(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}},kb=Fm(),ao="data-scroll-locked",Eb=function(e,t,r,o){var s=e.left,i=e.top,l=e.right,a=e.gap;return r===void 0&&(r="margin"),`
|
|
77
|
+
`,x}find(h){var x;let v=i.tagFrom(this);for(const y of h)if(typeof y=="number"){if(v.eq===void 0||!Array.isArray(v.eq)||v.eq.length<=y)return;v=i.tagFrom(v.eq[y])}else{const b=(x=v.properties)!==null&&x!==void 0?x:{};if(y in b)v=i.tagFrom(b[y]);else return}return v.deleted?void 0:v}has(...h){return this.find(h)!==void 0}set(h,x=null){const v=i.tagFrom(this);let y=v;for(const b of h)if(typeof b=="number"){if(y.eq===void 0||!Array.isArray(y.eq))y.eq=Array.from({length:b+1}).map(w=>({}));else if(y.eq.length<=b){const w=y.eq,C=Array.from({length:b+1}).map((_,k)=>k<w.length?w[k]:{});y.eq=C}y=y.eq[b]}else{const w=y.properties;w===void 0?(y.properties={[b]:{}},y=y.properties[b]):b in w?(y=w[b],y.deleted&&(y.deleted=!1)):(w[b]={},y=w[b])}return x===null?y.eq=void 0:typeof x=="string"?y.eq=x:typeof x=="number"?y.eq=x.toString():Array.isArray(x)&&(y.eq=x.map(b=>({eq:typeof b=="string"?b:b.toString()}))),v}delete(...h){return this.remove(h,!1)}unset(...h){return this.remove(h,!0)}remove(h,x=!1){var v;const y=i.tagFrom(this);let b=y;for(const C of h.slice(0,h.length-1))if(typeof C=="number"){if(b.eq===void 0||!Array.isArray(b.eq)){if(!x)return y;b.eq=Array.from({length:C}).map(_=>({}))}else if(b.eq.length<=C){if(!x)return y;const _=b.eq,k=Array.from({length:C}).map((E,R)=>R<_.length?_[R]:{});b.eq=k}b=b.eq[C]}else{const _=b.properties;if(_===void 0){if(!x)return y;b.properties={[C]:{}},b=b.properties[C]}else if(C in _)b=_[C];else{if(!x)return y;_[C]={},b=_[C]}}const w=h[h.length-1];return typeof w=="string"?b.properties&&w in b.properties?delete b.properties[w]:x&&((v=b.properties)!==null&&v!==void 0||(b.properties={}),b.properties[w]={deleted:!0}):Array.isArray(b.eq)&&b.eq.splice(w,1),y}}Qo.Tag=i,i.ids=new Map,i.nextTagId=1e3;class l{constructor(h){this.line=h,this.log=[]}syntaxError(h,x,v,y,b,w){const C={code:"tag-parse-syntax-error",message:b,line:this.line,offset:y};this.log.push(C)}semanticError(h,x,v){const y={code:x,message:v,line:this.line,offset:h.start.charPositionInLine};this.log.push(y)}}function a(g){const h=g.buildOn;return h instanceof i?h:new i}function u(g,h){var x,v;let y=g.getProperties();for(const b of h.slice(0,h.length-1)){let w;y[b]===void 0?(w=new i({}),y[b]=w):((x=(v=y[b]).properties)!==null&&x!==void 0||(v.properties={}),w=i.tagFrom(y[b])),y=w.getProperties()}return[h[h.length-1],y]}function c(g){return g.SQ_STRING()||g.DQ_STRING()?(0,s.parseString)(g.text,g.text[0]):g.text}function p(g,h,x,v){if(g[0]==="#"){const j=g.indexOf(" ");j>0?g=g.slice(j):g=""}const y=o.CharStreams.fromString(g),b=new t.MalloyTagLexer(y),w=new o.CommonTokenStream(b),C=new l(v),_=new r.MalloyTagParser(w);_.removeErrorListeners(),_.addErrorListener(C);const k=_.tagLine();return{tag:new m(x,C).tagLineToTag(k,h),log:C.log}}class m extends e.AbstractParseTreeVisitor{constructor(h=[],x){super(),this.scopes=[],this.msgLog=x,this.scopes.unshift(...h)}defaultResult(){return new i}visitString(h){return new i({eq:c(h)})}getPropName(h){return h.identifier().map(x=>x.BARE_STRING()?x.text:(0,s.parseString)(x.text,x.text[0]))}getTags(h,x){for(const v of h)v.buildOn=x,this.visit(v);return x}tagLineToTag(h,x){return x=x?.clone()||new i({}),this.scopes.unshift(x),this.getTags(h.tagSpec(),x),x}visitTagLine(h){throw new Error("INTERNAL: ERROR: Call tagLineToTag, not vistTagLine")}visitProperties(h){return this.getTags(h.tagSpec(),a(h))}visitArrayValue(h){return new i({eq:this.getArray(h)})}getArray(h){return h.arrayElement().map(x=>this.visit(x))}visitArrayElement(h){const x=h.properties(),v=x?this.visitProperties(x):void 0,y=h.string();let b=y?c(y):void 0;const w=h.arrayValue();if(w&&(b=this.getArray(w)),v)return b!==void 0&&(v.eq=b),v;const C=h.reference();return C?this.visitReference(C):new i({eq:b})}visitReference(h){const x=this.getPropName(h.propName());for(const v of this.scopes)if(v.has(x[0])){const y=v.tag(...x);if(y)return y.clone();break}return this.msgLog.semanticError(h,"tag-property-not-found",`Reference to undefined property ${x.join(".")}`),this.defaultResult()}visitTagEq(h){const x=a(h),v=this.getPropName(h.propName()),[y,b]=u(x,v),w=this.visit(h.eqValue()),C=h.properties();if(C)if(C.DOTTY()===void 0){const _=this.visitProperties(C).dict;b[y]={...w,properties:_}}else b[y]={...b[y],...w};else b[y]=w;return x}visitTagReplaceProperties(h){const x=a(h),v=this.getPropName(h.propName()),[y,b]=u(x,v),w=h.properties(),C=this.visitProperties(w);return h.DOTTY()===void 0?b[y]={properties:C.dict}:b[y].properties=C.dict,x}visitTagUpdateProperties(h){const x=a(h),v=this.getPropName(h.propName()),[y,b]=u(x,v),w=h.properties();w.buildOn=i.tagFrom(b[y]);const C=this.visitProperties(w),_=b[y]||new i({}),k={..._.properties,...C.dict};return b[y]={..._,properties:k},x}visitTagDef(h){const x=a(h),v=this.getPropName(h.propName()),[y,b]=u(x,v);return h.MINUS()?b[y]={deleted:!0}:b[y]=new i({}),x}visitTagEmpty(h){const x=h.buildOn;return x.properties={},x}}return Qo}var C0;function K2(){return C0||(C0=1,(function(e){var t=It&&It.__createBinding||(Object.create?(function(i,l,a,u){u===void 0&&(u=a);var c=Object.getOwnPropertyDescriptor(l,a);(!c||("get"in c?!l.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return l[a]}}),Object.defineProperty(i,u,c)}):(function(i,l,a,u){u===void 0&&(u=a),i[u]=l[a]})),r=It&&It.__setModuleDefault||(Object.create?(function(i,l){Object.defineProperty(i,"default",{enumerable:!0,value:l})}):function(i,l){i.default=l}),o=It&&It.__exportStar||function(i,l){for(var a in i)a!=="default"&&!Object.prototype.hasOwnProperty.call(l,a)&&t(l,i,a)},s=It&&It.__importStar||(function(){var i=function(l){return i=Object.getOwnPropertyNames||function(a){var u=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(u[u.length]=c);return u},i(l)};return function(l){if(l&&l.__esModule)return l;var a={};if(l!=null)for(var u=i(l),c=0;c<u.length;c++)u[c]!=="default"&&t(a,l,u[c]);return r(a,l),a}})();Object.defineProperty(e,"__esModule",{value:!0}),e.ParseUtil=void 0,o(Z2(),e),e.ParseUtil=s(Bp())})(It)),It}var Q2=K2(),yr={},Pt={},_0;function ko(){if(_0)return Pt;_0=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.isChainOp=e,Pt.isStringCondition=t,Pt.isStringFilter=r,Pt.isBooleanFilter=o,Pt.isNumberFilter=s,Pt.isTemporalFilter=i,Pt.isFilterExpression=l,Pt.isFilterable=a;function e(u){return["and","or",","].includes(u)}function t(u){return["starts","ends","contains","="].includes(u.operator)}function r(u){return"operator"in u&&typeof u.operator=="string"&&["starts","ends","contains","=","~","null","empty","and","or",",","()"].includes(u.operator)}function o(u){return"operator"in u&&typeof u.operator=="string"&&["null","true","false","false_or_null"].includes(u.operator)}function s(u){return"operator"in u&&typeof u.operator=="string"&&["range","<=",">=","!=","=",">","<","and","or","()","null"].includes(u.operator)}function i(u){return"operator"in u&&typeof u.operator=="string"&&["literal","before","after","to","for","in","and","or","in_last","this","last","next","()","null"].includes(u.operator)}function l(u){return!!u&&"operator"in u}function a(u){return["string","number","boolean","timestamp","date"].includes(u)}return Pt}var Jo={},S0;function J2(){return S0||(S0=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.BooleanFilterExpression=void 0,Jo.BooleanFilterExpression={parse(e){var t;if(e.match(/^\s*$/))return{parsed:null,log:[]};const r={parsed:null,log:[]};let o=e.toLowerCase().trim().replace(/\s\s+/," "),s=!1;if(o.startsWith("not ")&&(s=!0,o=o.slice(4)),o==="true")r.parsed={operator:"true"};else if(o==="false")r.parsed={operator:"false_or_null"};else if(o==="=false")r.parsed={operator:"false"};else if(o==="null")r.parsed={operator:"null"};else if(o==="not null")r.parsed={operator:"null",not:!0};else{const i=e.match(/[^\s]/),l=i&&(t=i.index)!==null&&t!==void 0?t:0;r.log=[{message:"Illegal boolean filter. Must be one of true,false,=false,null,not null",severity:"error",startIndex:l,endIndex:l+e.length-1}]}return s&&r.parsed&&(r.parsed.not=!0),r},unparse(e){if(e===null)return"";const t=e.not?"not ":"";switch(e.operator){case"true":case"null":return t+e.operator;case"false_or_null":return t+"false";case"false":return t+"=false"}}}),Jo}var Ft={},zr={},tt={},k0;function Fl(){if(k0)return tt;k0=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.maybeNot=t,tt.unescape=r,tt.escape=o,tt.matchOp=i,tt.conjoin=a,tt.joinNumbers=u,tt.mkRange=c,tt.mkValues=p,tt.numNot=m,tt.temporalNot=g,tt.joinTemporal=h,tt.timeLiteral=x,tt.mkUnits=v;const e=ko();function t(y){const[b,w]=y;return b&&w&&(0,e.isStringFilter)(w)?{...w,not:!0}:w}function r(y){return y.replace(/\\(.)/g,"$1")}function o(y){const b=y.toLowerCase();return b==="null"||b==="empty"?"\\"+y:y.replace(/([,; |()\\%_-])/g,"\\$1")}function s(y){let b=!1,w=!1,C=0,_=!1;const k=y.length;for(let E=0;E<k;E+=1){const R=y[E];if(R===" "||R===" "){C+=1;continue}C=0,R==="%"?(_=!0,E===0&&(b=!0),w=!0):(w=!1,R==="\\"?E+=1:R==="_"&&(_=!0))}return{hasLike:_,percentEnd:w&&k>1,percentStart:b&&k>1,endSpace:C}}function i(y){let b=y.trimStart();const{hasLike:w,percentEnd:C,percentStart:_,endSpace:k}=s(b);if(k>0&&(b=b.slice(0,-k)),w){if(_&&C){const E=b.slice(1,-1);if(!s(E).hasLike&&E.length>0)return{operator:"contains",values:[r(E)]}}else if(C){const E=b.slice(0,-1);if(!s(E).hasLike)return{operator:"starts",values:[r(E)]}}else if(_){const E=b.slice(1);if(!s(E).hasLike)return{operator:"ends",values:[r(E)]}}return{operator:"~",escaped_values:[b]}}return b.toLowerCase()==="null"?{operator:"null"}:b.toLowerCase()==="empty"?{operator:"empty"}:{operator:"=",values:[r(b)]}}function l(y,b){var w,C;return y.operator===b.operator&&((w=y.not)!==null&&w!==void 0?w:!1)===((C=b.not)!==null&&C!==void 0?C:!1)}function a(y,b,w){if(b=b.toLowerCase(),(0,e.isStringFilter)(y)&&(0,e.isStringFilter)(w)){if(b===","){if(y.operator==="~"&&l(y,w))return{...y,escaped_values:[...y.escaped_values,...w.escaped_values]};if((0,e.isStringCondition)(y)&&l(y,w))return{...y,values:[...y.values,...w.values]}}const C=b===","?",":b==="|"?"or":b===";"?"and":void 0;if(C)return y.operator===C?{...y,members:[...y.members,w]}:{operator:C,members:[y,w]}}return null}function u(y,b,w){if(b=b.toLowerCase(),(0,e.isNumberFilter)(y)&&(0,e.isNumberFilter)(w)){if(b==="or"&&y.operator==="="&&l(y,w)){const C={operator:"=",values:[...y.values,...w.values]};return y.not&&(C.not=!0),C}if(b==="and"||b==="or")return y.operator===b?{...y,members:[...y.members,w]}:{operator:b,members:[y,w]}}return null}function c(y,b,w,C){return{operator:"range",startValue:b,startOperator:y==="("?">":">=",endValue:w,endOperator:C===")"?"<":"<="}}function p(y,b){return{values:[y,...b]}}function m(y,b){return(0,e.isNumberFilter)(y)&&b?y.operator==="="?{operator:"!=",values:y.values}:y.operator==="!="?{operator:"=",values:y.values}:{...y,not:!0}:y}function g(y,b){return(0,e.isTemporalFilter)(y)&&b?{...y,not:!0}:y}function h(y,b,w){return b=b.toLowerCase(),(0,e.isTemporalFilter)(y)&&(0,e.isTemporalFilter)(w)&&(b==="and"||b==="or")?y.operator===b?{...y,members:[...y.members,w]}:{operator:b,members:[y,w]}:null}function x(y,b){const w={moment:"literal",literal:y};return b&&(w.units=b),w}function v(y){switch(y.toLowerCase()){case"second":case"seconds":return"second";case"minute":case"minutes":return"minute";case"hour":case"hours":return"hour";case"day":case"days":return"day";case"week":case"weeks":return"week";case"month":case"months":return"month";case"quarter":case"quarters":return"quarter";case"year":case"years":return"year"}}return tt}var E0;function ey(){if(E0)return zr;E0=1;var e=zr&&zr.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(zr,"__esModule",{value:!0});function t(u){return u[0]}const r=e(bc()),o=Fl(),s=r.default.keywords({AND:"and",OR:"or",NOT:"not",NULL_KW:"null",TO:"to"}),i=r.default.compile({WS:/[ \t]+/,id:{match:/[a-zA-Z]+/,type:u=>s(u.toLowerCase())},oparen:"(",cparen:")",obrack:"[",cbrack:"]",comma:",",op:/<=|>=|<|>/,ne:"!=",eq:"=",float:/-?(?:\d+)?\.\d+(?:[Ee][+-]?\d+)?/,numberE:/-?\d+[Ee][+-]?\d+/,integer:/-?\d+/}),l=i.next;i.next=(u=>()=>{for(;;){const c=u.call(i);if(c===void 0||c.type!=="WS")return c}})(l);const a={Lexer:i,ParserRules:[{name:"numberFilter",symbols:["numberFilter","conjunction","numberUnary"],postprocess:([u,c,p])=>(0,o.joinNumbers)(u,c[0].text,p)},{name:"numberFilter",symbols:["numberUnary"],postprocess:u=>u[0]},{name:"numberUnary$ebnf$1",symbols:[i.has("NOT")?{type:"NOT"}:NOT],postprocess:t},{name:"numberUnary$ebnf$1",symbols:[],postprocess:()=>null},{name:"numberUnary",symbols:["numberUnary$ebnf$1","clause"],postprocess:([u,c])=>(0,o.numNot)(c,u)},{name:"clause",symbols:[i.has("NULL_KW")?{type:"NULL_KW"}:NULL_KW],postprocess:()=>({operator:"null"})},{name:"clause$ebnf$1",symbols:[]},{name:"clause$ebnf$1",symbols:["clause$ebnf$1","numberList"],postprocess:u=>u[0].concat([u[1]])},{name:"clause",symbols:["N","clause$ebnf$1"],postprocess:([u,c])=>({operator:"=",...(0,o.mkValues)(u,c)})},{name:"clause$ebnf$2",symbols:[]},{name:"clause$ebnf$2",symbols:["clause$ebnf$2","numberList"],postprocess:u=>u[0].concat([u[1]])},{name:"clause",symbols:[i.has("eq")?{type:"eq"}:eq,"N","clause$ebnf$2"],postprocess:([u,c,p])=>({operator:"=",...(0,o.mkValues)(c,p)})},{name:"clause$ebnf$3",symbols:[]},{name:"clause$ebnf$3",symbols:["clause$ebnf$3","numberList"],postprocess:u=>u[0].concat([u[1]])},{name:"clause",symbols:[i.has("ne")?{type:"ne"}:ne,"N","clause$ebnf$3"],postprocess:([u,c,p])=>({operator:"!=",...(0,o.mkValues)(c,p)})},{name:"clause",symbols:[i.has("op")?{type:"op"}:op,"N"],postprocess:([u,c])=>({operator:u.text,values:[c]})},{name:"clause",symbols:[i.has("oparen")?{type:"oparen"}:oparen,"numberFilter",i.has("cparen")?{type:"cparen"}:cparen],postprocess:([u,c,p])=>({operator:"()",expr:c})},{name:"clause",symbols:["openInterval","N",i.has("TO")?{type:"TO"}:TO,"N","closeInterval"],postprocess:([u,c,p,m,g])=>(0,o.mkRange)(u[0].text,c,m,g[0].text)},{name:"numberList",symbols:[i.has("comma")?{type:"comma"}:comma,"N"],postprocess:([u,c])=>c},{name:"closeInterval",symbols:[i.has("cbrack")?{type:"cbrack"}:cbrack]},{name:"closeInterval",symbols:[i.has("cparen")?{type:"cparen"}:cparen]},{name:"openInterval",symbols:[i.has("obrack")?{type:"obrack"}:obrack]},{name:"openInterval",symbols:[i.has("oparen")?{type:"oparen"}:oparen]},{name:"N$subexpression$1",symbols:[i.has("float")?{type:"float"}:float]},{name:"N$subexpression$1",symbols:[i.has("numberE")?{type:"numberE"}:numberE]},{name:"N$subexpression$1",symbols:[i.has("integer")?{type:"integer"}:integer]},{name:"N",symbols:["N$subexpression$1"],postprocess:([u])=>u[0].text},{name:"conjunction",symbols:[i.has("OR")?{type:"OR"}:OR]},{name:"conjunction",symbols:[i.has("AND")?{type:"AND"}:AND]}],ParserStart:"numberFilter"};return zr.default=a,zr}var wi={},R0;function Cc(){if(R0)return wi;R0=1,Object.defineProperty(wi,"__esModule",{value:!0}),wi.run_parser=t;const e=ko();function t(r,o){try{o.feed(r);const i=o.finish()[0];return(0,e.isFilterExpression)(i)?{parsed:i,log:[]}:{parsed:null,log:[]}}catch(s){let i=s.message,l=1,a=r.length;if(s.token){const u=s.token;l=u.col,a=u.text.length;const p=s.message.match(/(?<=A ).*(?= based on:)/g).map(m=>m.replace(/\s+token/i,""));i=`Unexpected ${u.type} token "${u.value}"`,p&&p.length&&(i+=` Tokens expected: ${[...new Set(p)]}`)}return{parsed:null,log:[{message:i,startIndex:l-1,endIndex:l-1+a-1,severity:"error"}]}}}return wi}var A0;function ty(){return A0||(A0=1,(function(e){var t=Ft&&Ft.__createBinding||(Object.create?(function(c,p,m,g){g===void 0&&(g=m);var h=Object.getOwnPropertyDescriptor(p,m);(!h||("get"in h?!p.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return p[m]}}),Object.defineProperty(c,g,h)}):(function(c,p,m,g){g===void 0&&(g=m),c[g]=p[m]})),r=Ft&&Ft.__setModuleDefault||(Object.create?(function(c,p){Object.defineProperty(c,"default",{enumerable:!0,value:p})}):function(c,p){c.default=p}),o=Ft&&Ft.__importStar||(function(){var c=function(p){return c=Object.getOwnPropertyNames||function(m){var g=[];for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&(g[g.length]=h);return g},c(p)};return function(p){if(p&&p.__esModule)return p;var m={};if(p!=null)for(var g=c(p),h=0;h<g.length;h++)g[h]!=="default"&&t(m,p,g[h]);return r(m,p),m}})(),s=Ft&&Ft.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.NumberFilterExpression=void 0;const i=ko(),l=o(wc()),a=s(ey()),u=Cc();e.NumberFilterExpression={parse(c){if(c.match(/^\s*$/))return{parsed:null,log:[]};const p=new l.Parser(l.Grammar.fromCompiled(a.default)),m=(0,u.run_parser)(c,p);return m.parsed&&(0,i.isNumberFilter)(m.parsed)?{parsed:m.parsed,log:[]}:{parsed:null,log:m.log}},unparse(c){if(c===null)return"";switch(c.operator){case"=":return c.values.join(", ");case"!=":return"!= "+c.values.join(", ");case">":case"<":case"<=":case">=":return c.not?c.values.map(p=>c.operator==="="?`not ${p}`:`not ${c.operator} ${p}`).join(", "):c.values.map(p=>`${c.operator} ${p}`).join(", ");case"range":{const p=c.startOperator===">"?"(":"[",m=c.endOperator==="<"?")":"]",g=`${p}${c.startValue} to ${c.endValue}${m}`;return c.not?`not ${g}`:g}case"null":return c.not?"not null":"null";case"and":case"or":return c.members.map(p=>e.NumberFilterExpression.unparse(p)).join(` ${c.operator} `);case"()":{const p="("+e.NumberFilterExpression.unparse(c.expr)+")";return c.not?"not "+p:p}}return`no unparse for ${JSON.stringify(c)}`}}})(Ft)),Ft}var Bt={},qr={},T0;function ny(){if(T0)return qr;T0=1;var e=qr&&qr.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(qr,"__esModule",{value:!0});function t(a){return a[0]}const r=e(bc()),o=Fl(),s=r.default.compile({WS:/[ \t]+/,comma:",",semi:";",or:"|",open:"(",close:")",minus:"-",matchStr:/(?:\\[^\n]|[^\n,;()|])+/}),i=s.next;s.next=(a=>()=>{for(;;){const u=a.call(s);if(u==null||u.type!=="WS")return u}})(i);const l={Lexer:s,ParserRules:[{name:"stringFilter",symbols:["stringFilter","conjunction","sfUnary"],postprocess:([a,u,c])=>(0,o.conjoin)(a,u[0].text,c)},{name:"stringFilter",symbols:["sfUnary"],postprocess:a=>a[0]},{name:"sfUnary$ebnf$1",symbols:[s.has("minus")?{type:"minus"}:minus],postprocess:t},{name:"sfUnary$ebnf$1",symbols:[],postprocess:()=>null},{name:"sfUnary",symbols:["sfUnary$ebnf$1","clause"],postprocess:a=>(0,o.maybeNot)(a)},{name:"parens",symbols:[s.has("open")?{type:"open"}:open,"stringFilter",s.has("close")?{type:"close"}:close],postprocess:([a,u,c])=>({operator:"()",expr:u})},{name:"clause",symbols:[s.has("matchStr")?{type:"matchStr"}:matchStr],postprocess:([a])=>(0,o.matchOp)(a.text)},{name:"clause",symbols:["parens"],postprocess:a=>a[0]},{name:"conjunction",symbols:[s.has("comma")?{type:"comma"}:comma]},{name:"conjunction",symbols:[s.has("semi")?{type:"semi"}:semi]},{name:"conjunction",symbols:[s.has("or")?{type:"or"}:or]}],ParserStart:"stringFilter"};return qr.default=l,qr}var j0;function ry(){return j0||(j0=1,(function(e){var t=Bt&&Bt.__createBinding||(Object.create?(function(p,m,g,h){h===void 0&&(h=g);var x=Object.getOwnPropertyDescriptor(m,g);(!x||("get"in x?!m.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return m[g]}}),Object.defineProperty(p,h,x)}):(function(p,m,g,h){h===void 0&&(h=g),p[h]=m[g]})),r=Bt&&Bt.__setModuleDefault||(Object.create?(function(p,m){Object.defineProperty(p,"default",{enumerable:!0,value:m})}):function(p,m){p.default=m}),o=Bt&&Bt.__importStar||(function(){var p=function(m){return p=Object.getOwnPropertyNames||function(g){var h=[];for(var x in g)Object.prototype.hasOwnProperty.call(g,x)&&(h[h.length]=x);return h},p(m)};return function(m){if(m&&m.__esModule)return m;var g={};if(m!=null)for(var h=p(m),x=0;x<h.length;x++)h[x]!=="default"&&t(g,m,h[x]);return r(g,m),g}})(),s=Bt&&Bt.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.StringFilterExpression=void 0;const i=ko(),l=o(wc()),a=s(ny()),u=Fl(),c=Cc();e.StringFilterExpression={parse(p){if(p.match(/^\s*$/))return{parsed:null,log:[]};const m=new l.Parser(l.Grammar.fromCompiled(a.default)),g=(0,c.run_parser)(p,m);return g.parsed&&(0,i.isStringFilter)(g.parsed)?{parsed:g.parsed,log:[]}:{parsed:null,log:g.log}},unparse(p){if(p===null)return"";switch(p.operator){case"=":return p.not?p.values.map(m=>"-"+(0,u.escape)(m)).join(", "):p.values.map(m=>(0,u.escape)(m)).join(", ");case"~":return p.not?p.escaped_values.map(m=>"-"+m).join(", "):p.escaped_values.join(", ");case"starts":return p.not?p.values.map(m=>"-"+(0,u.escape)(m)+"%").join(", "):p.values.map(m=>(0,u.escape)(m)+"%").join(", ");case"ends":return p.not?p.values.map(m=>"-%"+(0,u.escape)(m)).join(", "):p.values.map(m=>"%"+(0,u.escape)(m)).join(", ");case"contains":return p.not?p.values.map(m=>"-%"+(0,u.escape)(m)+"%").join(", "):p.values.map(m=>"%"+(0,u.escape)(m)+"%").join(", ");case"or":return p.members.map(m=>e.StringFilterExpression.unparse(m)).join(" | ");case"and":return p.members.map(m=>e.StringFilterExpression.unparse(m)).join("; ");case",":return p.members.map(m=>e.StringFilterExpression.unparse(m)).join(", ");case"()":{const m="("+e.StringFilterExpression.unparse(p.expr)+")";return p.not?"-"+m:m}case"null":return p.not?"-null":"null";case"empty":return p.not?"-empty":"empty"}}}})(Bt)),Bt}var $t={},Wr={},D0;function oy(){if(D0)return Wr;D0=1;var e=Wr&&Wr.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Wr,"__esModule",{value:!0});function t(u){return u[0]}const r=e(bc()),o=Fl(),s=r.default.keywords({AND:"and",OR:"or",NOT:"not",NULL_KW:"null",TO:"to",NOW:"now",LAST:"last",THIS:"this",NEXT:"next",AGO:"ago",FROM:"from",BEFORE:"before",AFTER:"after",THROUGH:"through",STARTING:"starting",FOR:"for",TODAY:"today",YESTERDAY:"yesterday",TOMORROW:"tomorrow",SECOND:"second",MINUTE:"minute",HOUR:"hour",DAY:"day",WEEK:"week",MONTH:"month",QUARTER:"quarter",YEAR:"year",SECONDS:"seconds",MINUTES:"minutes",HOURS:"hours",DAYS:"days",WEEKS:"weeks",MONTHS:"months",QUARTERS:"quarters",YEARS:"years",MONDAY:"monday",TUESDAY:"tuesday",WEDNESDAY:"wednesday",THURSDAY:"thursday",FRIDAY:"friday",SATURDAY:"saturday",SUNDAY:"sunday"}),i=r.default.compile({WS:/[ \t]+/,id:{match:/[a-zA-Z]+/,type:u=>s(u.toLowerCase())},oparen:"(",cparen:")",comma:",",literal:/\d\d\d\d-\d\d-\d\d[ Tt]\d\d:\d\d(?::\d\d(?:[.,]\d*)?)/,lit_week:/\d\d\d\d-\d\d-\d\d-[Ww][Kk]/,lit_quarter:/\d\d\d\d-[qQ][1234]/,lit_min:/\d\d\d\d-\d\d-\d\d[ Tt]\d\d:\d\d/,lit_hour:/\d\d\d\d-\d\d-\d\d[ Tt]\d\d/,lit_day:/\d\d\d\d-\d\d-\d\d/,lit_month:/\d\d\d\d-\d\d/,lit_year:/\d\d\d\d/,n:/\d+/}),l=i.next;i.next=(u=>()=>{for(;;){const c=u.call(i);if(c===void 0||c.type!=="WS")return c}})(l);const a={Lexer:i,ParserRules:[{name:"temporalFilter",symbols:["temporalFilter","conjunction","temporalUnary"],postprocess:([u,c,p])=>(0,o.joinTemporal)(u,c[0].text,p)},{name:"temporalFilter",symbols:["temporalUnary"],postprocess:u=>u[0]},{name:"temporalUnary$ebnf$1",symbols:[i.has("NOT")?{type:"NOT"}:NOT],postprocess:t},{name:"temporalUnary$ebnf$1",symbols:[],postprocess:()=>null},{name:"temporalUnary",symbols:["temporalUnary$ebnf$1","clause"],postprocess:([u,c])=>(0,o.temporalNot)(c,u)},{name:"duration",symbols:["number","unit"],postprocess:([u,c])=>({units:c,n:u})},{name:"number",symbols:[i.has("n")?{type:"n"}:n],postprocess:([u])=>u.text},{name:"number",symbols:[i.has("lityear")?{type:"lityear"}:lityear],postprocess:([u])=>u.text},{name:"unit$subexpression$1",symbols:[i.has("SECOND")?{type:"SECOND"}:SECOND]},{name:"unit$subexpression$1",symbols:[i.has("MINUTE")?{type:"MINUTE"}:MINUTE]},{name:"unit$subexpression$1",symbols:[i.has("HOUR")?{type:"HOUR"}:HOUR]},{name:"unit$subexpression$1",symbols:[i.has("DAY")?{type:"DAY"}:DAY]},{name:"unit$subexpression$1",symbols:[i.has("WEEK")?{type:"WEEK"}:WEEK]},{name:"unit$subexpression$1",symbols:[i.has("MONTH")?{type:"MONTH"}:MONTH]},{name:"unit$subexpression$1",symbols:[i.has("QUARTER")?{type:"QUARTER"}:QUARTER]},{name:"unit$subexpression$1",symbols:[i.has("YEAR")?{type:"YEAR"}:YEAR]},{name:"unit$subexpression$1",symbols:[i.has("SECONDS")?{type:"SECONDS"}:SECONDS]},{name:"unit$subexpression$1",symbols:[i.has("MINUTES")?{type:"MINUTES"}:MINUTES]},{name:"unit$subexpression$1",symbols:[i.has("HOURS")?{type:"HOURS"}:HOURS]},{name:"unit$subexpression$1",symbols:[i.has("DAYS")?{type:"DAYS"}:DAYS]},{name:"unit$subexpression$1",symbols:[i.has("WEEKS")?{type:"WEEKS"}:WEEKS]},{name:"unit$subexpression$1",symbols:[i.has("MONTHS")?{type:"MONTHS"}:MONTHS]},{name:"unit$subexpression$1",symbols:[i.has("QUARTERS")?{type:"QUARTERS"}:QUARTERS]},{name:"unit$subexpression$1",symbols:[i.has("YEARS")?{type:"YEARS"}:YEARS]},{name:"unit",symbols:["unit$subexpression$1"],postprocess:([u])=>(0,o.mkUnits)(u[0].text)},{name:"clause",symbols:[i.has("NULL_KW")?{type:"NULL_KW"}:NULL_KW],postprocess:()=>({operator:"null"})},{name:"clause",symbols:["parens"],postprocess:u=>u[0]},{name:"clause",symbols:["duration"],postprocess:([u])=>({operator:"in_last",...u})},{name:"clause",symbols:[i.has("BEFORE")?{type:"BEFORE"}:BEFORE,"moment"],postprocess:([u,c])=>({operator:"before",before:c})},{name:"clause",symbols:[i.has("STARTING")?{type:"STARTING"}:STARTING,"moment"],postprocess:([u,c])=>({operator:"before",before:c,not:!0})},{name:"clause",symbols:[i.has("AFTER")?{type:"AFTER"}:AFTER,"moment"],postprocess:([u,c])=>({operator:"after",after:c})},{name:"clause",symbols:[i.has("THROUGH")?{type:"THROUGH"}:THROUGH,"moment"],postprocess:([u,c])=>({operator:"after",after:c,not:!0})},{name:"clause",symbols:["moment",i.has("TO")?{type:"TO"}:TO,"moment"],postprocess:([u,c,p])=>({operator:"to",fromMoment:u,toMoment:p})},{name:"clause",symbols:["moment",i.has("FOR")?{type:"FOR"}:FOR,"duration"],postprocess:([u,c,p])=>({...p,operator:"for",begin:u})},{name:"clause$subexpression$1",symbols:[i.has("LAST")?{type:"LAST"}:LAST]},{name:"clause$subexpression$1",symbols:[i.has("NEXT")?{type:"NEXT"}:NEXT]},{name:"clause",symbols:["clause$subexpression$1","duration"],postprocess:([u,c])=>({operator:u[0].text,...c})},{name:"clause",symbols:["moment"],postprocess:([u])=>({operator:"in",in:u})},{name:"lastNextThis",symbols:[i.has("THIS")?{type:"THIS"}:THIS],postprocess:([u])=>u.text.toLowerCase()},{name:"lastNextThis",symbols:[i.has("NEXT")?{type:"NEXT"}:NEXT],postprocess:([u])=>u.text.toLowerCase()},{name:"lastNextThis",symbols:[i.has("LAST")?{type:"LAST"}:LAST],postprocess:([u])=>u.text.toLowerCase()},{name:"moment",symbols:[i.has("NOW")?{type:"NOW"}:NOW],postprocess:()=>({moment:"now"})},{name:"moment",symbols:["lastNextThis","unit"],postprocess:([u,c])=>({moment:u,units:c})},{name:"moment",symbols:[i.has("TODAY")?{type:"TODAY"}:TODAY],postprocess:()=>({moment:"today"})},{name:"moment",symbols:[i.has("YESTERDAY")?{type:"YESTERDAY"}:YESTERDAY],postprocess:()=>({moment:"yesterday"})},{name:"moment",symbols:[i.has("TOMORROW")?{type:"TOMORROW"}:TOMORROW],postprocess:()=>({moment:"tomorrow"})},{name:"moment",symbols:["duration",i.has("AGO")?{type:"AGO"}:AGO],postprocess:([u,c])=>({moment:"ago",...u})},{name:"moment",symbols:["duration",i.has("FROM")?{type:"FROM"}:FROM,i.has("NOW")?{type:"NOW"}:NOW],postprocess:([u,c])=>({moment:"from_now",...u})},{name:"moment",symbols:[i.has("NEXT")?{type:"NEXT"}:NEXT,"weekday"],postprocess:([u,c])=>({moment:c.toLowerCase(),which:"next"})},{name:"moment",symbols:[i.has("LAST")?{type:"LAST"}:LAST,"weekday"],postprocess:([u,c])=>({moment:c.toLowerCase(),which:"last"})},{name:"moment",symbols:["weekday"],postprocess:([u])=>({moment:u.toLowerCase(),which:"last"})},{name:"moment",symbols:["timeLiteral"],postprocess:u=>u[0]},{name:"timeLiteral",symbols:[i.has("literal")?{type:"literal"}:literal],postprocess:([u])=>(0,o.timeLiteral)(u.text)},{name:"timeLiteral",symbols:[i.has("lit_day")?{type:"lit_day"}:lit_day],postprocess:([u])=>(0,o.timeLiteral)(u.text,"day")},{name:"timeLiteral",symbols:[i.has("lit_min")?{type:"lit_min"}:lit_min],postprocess:([u])=>(0,o.timeLiteral)(u.text,"minute")},{name:"timeLiteral",symbols:[i.has("lit_hour")?{type:"lit_hour"}:lit_hour],postprocess:([u])=>(0,o.timeLiteral)(u.text,"hour")},{name:"timeLiteral",symbols:[i.has("lit_month")?{type:"lit_month"}:lit_month],postprocess:([u])=>(0,o.timeLiteral)(u.text,"month")},{name:"timeLiteral",symbols:[i.has("lit_quarter")?{type:"lit_quarter"}:lit_quarter],postprocess:([u])=>(0,o.timeLiteral)(u.text,"quarter")},{name:"timeLiteral",symbols:[i.has("lit_week")?{type:"lit_week"}:lit_week],postprocess:([u])=>(0,o.timeLiteral)(u.text,"week")},{name:"timeLiteral",symbols:[i.has("lit_year")?{type:"lit_year"}:lit_year],postprocess:([u])=>(0,o.timeLiteral)(u.text,"year")},{name:"weekday$subexpression$1",symbols:[i.has("MONDAY")?{type:"MONDAY"}:MONDAY]},{name:"weekday$subexpression$1",symbols:[i.has("TUESDAY")?{type:"TUESDAY"}:TUESDAY]},{name:"weekday$subexpression$1",symbols:[i.has("WEDNESDAY")?{type:"WEDNESDAY"}:WEDNESDAY]},{name:"weekday$subexpression$1",symbols:[i.has("THURSDAY")?{type:"THURSDAY"}:THURSDAY]},{name:"weekday$subexpression$1",symbols:[i.has("FRIDAY")?{type:"FRIDAY"}:FRIDAY]},{name:"weekday$subexpression$1",symbols:[i.has("SATURDAY")?{type:"SATURDAY"}:SATURDAY]},{name:"weekday$subexpression$1",symbols:[i.has("SUNDAY")?{type:"SUNDAY"}:SUNDAY]},{name:"weekday",symbols:["weekday$subexpression$1"],postprocess:([u])=>u[0].text},{name:"parens",symbols:[i.has("oparen")?{type:"oparen"}:oparen,"temporalFilter",i.has("cparen")?{type:"cparen"}:cparen],postprocess:([u,c,p])=>({operator:"()",expr:c})},{name:"conjunction",symbols:[i.has("OR")?{type:"OR"}:OR]},{name:"conjunction",symbols:[i.has("AND")?{type:"AND"}:AND]}],ParserStart:"temporalFilter"};return Wr.default=a,Wr}var L0;function sy(){return L0||(L0=1,(function(e){var t=$t&&$t.__createBinding||(Object.create?(function(g,h,x,v){v===void 0&&(v=x);var y=Object.getOwnPropertyDescriptor(h,x);(!y||("get"in y?!h.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return h[x]}}),Object.defineProperty(g,v,y)}):(function(g,h,x,v){v===void 0&&(v=x),g[v]=h[x]})),r=$t&&$t.__setModuleDefault||(Object.create?(function(g,h){Object.defineProperty(g,"default",{enumerable:!0,value:h})}):function(g,h){g.default=h}),o=$t&&$t.__importStar||(function(){var g=function(h){return g=Object.getOwnPropertyNames||function(x){var v=[];for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&(v[v.length]=y);return v},g(h)};return function(h){if(h&&h.__esModule)return h;var x={};if(h!=null)for(var v=g(h),y=0;y<v.length;y++)v[y]!=="default"&&t(x,h,v[y]);return r(x,h),x}})(),s=$t&&$t.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.TemporalFilterExpression=void 0;const i=ko(),l=s(oy()),a=o(wc()),u=Cc();e.TemporalFilterExpression={parse(g){if(g.match(/^\s*$/))return{parsed:null,log:[]};const h=new a.Parser(a.Grammar.fromCompiled(l.default)),x=(0,u.run_parser)(g,h);return x.parsed&&(0,i.isTemporalFilter)(x.parsed)?{parsed:x.parsed,log:[]}:{parsed:null,log:x.log}},unparse(g){if(g===null)return"";switch(g.operator){case"null":return c(g,"null");case"in":return c(g,m(g.in));case"()":return"("+e.TemporalFilterExpression.unparse(g.expr)+")";case"in_last":return c(g,p(g));case"last":case"next":return c(g,`${g.operator} ${p(g)}`);case"before":return`${g.not?"starting":"before"} ${m(g.before)}`;case"after":return`${g.not?"through":"after"} ${m(g.after)}`;case"to":return c(g,`${m(g.fromMoment)} to ${m(g.toMoment)}`);case"for":return c(g,`${m(g.begin)} for ${p(g)}`);case"or":return g.members.map(h=>e.TemporalFilterExpression.unparse(h)).join(" or ");case"and":return g.members.map(h=>e.TemporalFilterExpression.unparse(h)).join(" and ")}}};function c(g,h){return"not"in g&&g.not?"not "+h:h}function p(g){return g.n==="1"?`1 ${g.units}`:`${g.n} ${g.units}s`}function m(g){switch(g.moment){case"literal":return g.literal;case"now":case"today":case"yesterday":case"tomorrow":return g.moment;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return g.which==="next"?"next "+g.moment:g.moment;case"this":case"next":case"last":return`${g.moment} ${g.units}`;case"ago":return`${p(g)} ago`;case"from_now":return`${p(g)} from now`}}})($t)),$t}var N0;function iy(){return N0||(N0=1,(function(e){var t=yr&&yr.__createBinding||(Object.create?(function(a,u,c,p){p===void 0&&(p=c);var m=Object.getOwnPropertyDescriptor(u,c);(!m||("get"in m?!u.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(a,p,m)}):(function(a,u,c,p){p===void 0&&(p=c),a[p]=u[c]})),r=yr&&yr.__exportStar||function(a,u){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&t(u,a,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.TemporalFilterExpression=e.StringFilterExpression=e.NumberFilterExpression=e.BooleanFilterExpression=void 0,r(ko(),e);var o=J2();Object.defineProperty(e,"BooleanFilterExpression",{enumerable:!0,get:function(){return o.BooleanFilterExpression}});var s=ty();Object.defineProperty(e,"NumberFilterExpression",{enumerable:!0,get:function(){return s.NumberFilterExpression}});var i=ry();Object.defineProperty(e,"StringFilterExpression",{enumerable:!0,get:function(){return i.StringFilterExpression}});var l=sy();Object.defineProperty(e,"TemporalFilterExpression",{enumerable:!0,get:function(){return l.TemporalFilterExpression}})})(yr)),yr}var bn=iy(),ly=Object.defineProperty,ay=Object.getPrototypeOf,uy=Reflect.get,$p=e=>{throw TypeError(e)},cy=(e,t,r)=>t in e?ly(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t,r)=>cy(e,typeof t!="symbol"?t+"":t,r),_c=(e,t,r)=>t.has(e)||$p("Cannot "+r),ut=(e,t,r)=>(_c(e,t,"read from private field"),r?r.call(e):t.get(e)),Gr=(e,t,r)=>t.has(e)?$p("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),nn=(e,t,r,o)=>(_c(e,t,"write to private field"),t.set(e,r),r),M0=(e,t,r)=>(_c(e,t,"access private method"),r),dy=(e,t,r)=>uy(ay(e),r,t),Ur,wn,vr,Xn,Yr,br,Hr,Ci,Pa,es;function q(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e?.(s),r===!1||!s.defaultPrevented)return t?.(s)}}function I0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Bl(...e){return t=>{let r=!1;const o=e.map(s=>{const i=I0(s,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<o.length;s++){const i=o[s];typeof i=="function"?i():I0(e[s],null)}}}}function ae(...e){return f.useCallback(Bl(...e),e)}function fy(e,t){const r=f.createContext(t),o=i=>{const{children:l,...a}=i,u=f.useMemo(()=>a,Object.values(a));return d.jsx(r.Provider,{value:u,children:l})};o.displayName=e+"Provider";function s(i){const l=f.useContext(r);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[o,s]}function Kt(e,t=[]){let r=[];function o(i,l){const a=f.createContext(l),u=r.length;r=[...r,l];const c=m=>{var g;const{scope:h,children:x,...v}=m,y=((g=h?.[e])==null?void 0:g[u])||a,b=f.useMemo(()=>v,Object.values(v));return d.jsx(y.Provider,{value:b,children:x})};c.displayName=i+"Provider";function p(m,g){var h;const x=((h=g?.[e])==null?void 0:h[u])||a,v=f.useContext(x);if(v)return v;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${i}\``)}return[c,p]}const s=()=>{const i=r.map(l=>f.createContext(l));return function(a){const u=a?.[e]||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return s.scopeName=e,[o,py(s,...t)]}function py(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const l=o.reduce((a,{useScope:u,scopeName:c})=>{const m=u(i)[`__scope${c}`];return{...a,...m}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return r.scopeName=t.scopeName,r}var lr=f.forwardRef((e,t)=>{const{children:r,...o}=e,s=f.Children.toArray(r),i=s.find(my);if(i){const l=i.props.children,a=s.map(u=>u===i?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:u);return d.jsx(Su,{...o,ref:t,children:f.isValidElement(l)?f.cloneElement(l,void 0,a):null})}return d.jsx(Su,{...o,ref:t,children:r})});lr.displayName="Slot";var Su=f.forwardRef((e,t)=>{const{children:r,...o}=e;if(f.isValidElement(r)){const s=gy(r),i=hy(o,r.props);return r.type!==f.Fragment&&(i.ref=t?Bl(t,s):s),f.cloneElement(r,i)}return f.Children.count(r)>1?f.Children.only(null):null});Su.displayName="SlotClone";var zp=({children:e})=>d.jsx(d.Fragment,{children:e});function my(e){return f.isValidElement(e)&&e.type===zp}function hy(e,t){const r={...t};for(const o in t){const s=e[o],i=t[o];/^on[A-Z]/.test(o)?s&&i?r[o]=(...a)=>{i(...a),s(...a)}:s&&(r[o]=s):o==="style"?r[o]={...s,...i}:o==="className"&&(r[o]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}function gy(e){var t,r;let o=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var xy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ee=xy.reduce((e,t)=>{const r=f.forwardRef((o,s)=>{const{asChild:i,...l}=o,a=i?lr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(a,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function qp(e,t){e&&Rn.flushSync(()=>e.dispatchEvent(t))}function Ye(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])}function yy(e,t=globalThis?.document){const r=Ye(e);f.useEffect(()=>{const o=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[r,t])}var vy="DismissableLayer",ku="dismissableLayer.update",by="dismissableLayer.pointerDownOutside",wy="dismissableLayer.focusOutside",O0,Wp=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Eo=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:l,onDismiss:a,...u}=e,c=f.useContext(Wp),[p,m]=f.useState(null),g=p?.ownerDocument??globalThis?.document,[,h]=f.useState({}),x=ae(t,R=>m(R)),v=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=p?v.indexOf(p):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,_=w>=b,k=Sy(R=>{const j=R.target,D=[...c.branches].some(I=>I.contains(j));!_||D||(s?.(R),l?.(R),R.defaultPrevented||a?.())},g),E=ky(R=>{const j=R.target;[...c.branches].some(I=>I.contains(j))||(i?.(R),l?.(R),R.defaultPrevented||a?.())},g);return yy(R=>{w===c.layers.size-1&&(o?.(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},g),f.useEffect(()=>{if(p)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(O0=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),P0(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=O0)}},[p,g,r,c]),f.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),P0())},[p,c]),f.useEffect(()=>{const R=()=>h({});return document.addEventListener(ku,R),()=>document.removeEventListener(ku,R)},[]),d.jsx(ee.div,{...u,ref:x,style:{pointerEvents:C?_?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,E.onFocusCapture),onBlurCapture:q(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,k.onPointerDownCapture)})});Eo.displayName=vy;var Cy="DismissableLayerBranch",_y=f.forwardRef((e,t)=>{const r=f.useContext(Wp),o=f.useRef(null),s=ae(t,o);return f.useEffect(()=>{const i=o.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),d.jsx(ee.div,{...e,ref:s})});_y.displayName=Cy;function Sy(e,t=globalThis?.document){const r=Ye(e),o=f.useRef(!1),s=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!o.current){let u=function(){Gp(by,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=u,t.addEventListener("click",s.current,{once:!0})):u()}else t.removeEventListener("click",s.current);o.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}function ky(e,t=globalThis?.document){const r=Ye(e),o=f.useRef(!1);return f.useEffect(()=>{const s=i=>{i.target&&!o.current&&Gp(wy,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function P0(){const e=new CustomEvent(ku);document.dispatchEvent(e)}function Gp(e,t,r,{discrete:o}){const s=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),o?qp(s,i):s.dispatchEvent(i)}var lt=globalThis?.document?f.useLayoutEffect:()=>{},Ey=M2.useId||(()=>{}),Ry=0;function jt(e){const[t,r]=f.useState(Ey());return lt(()=>{r(o=>o??String(Ry++))},[e]),t?`radix-${t}`:""}const Ay=["top","right","bottom","left"],ar=Math.min,vt=Math.max,il=Math.round,_i=Math.floor,cn=e=>({x:e,y:e}),Ty={left:"right",right:"left",bottom:"top",top:"bottom"},jy={start:"end",end:"start"};function Eu(e,t,r){return vt(e,ar(t,r))}function In(e,t){return typeof e=="function"?e(t):e}function On(e){return e.split("-")[0]}function Ro(e){return e.split("-")[1]}function Sc(e){return e==="x"?"y":"x"}function kc(e){return e==="y"?"height":"width"}function ur(e){return["top","bottom"].includes(On(e))?"y":"x"}function Ec(e){return Sc(ur(e))}function Dy(e,t,r){r===void 0&&(r=!1);const o=Ro(e),s=Ec(e),i=kc(s);let l=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=ll(l)),[l,ll(l)]}function Ly(e){const t=ll(e);return[Ru(e),t,Ru(t)]}function Ru(e){return e.replace(/start|end/g,t=>jy[t])}function Ny(e,t,r){const o=["left","right"],s=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?i:l;default:return[]}}function My(e,t,r,o){const s=Ro(e);let i=Ny(On(e),r==="start",o);return s&&(i=i.map(l=>l+"-"+s),t&&(i=i.concat(i.map(Ru)))),i}function ll(e){return e.replace(/left|right|bottom|top/g,t=>Ty[t])}function Iy(e){return{top:0,right:0,bottom:0,left:0,...e}}function Up(e){return typeof e!="number"?Iy(e):{top:e,right:e,bottom:e,left:e}}function al(e){const{x:t,y:r,width:o,height:s}=e;return{width:o,height:s,top:r,left:t,right:t+o,bottom:r+s,x:t,y:r}}function F0(e,t,r){let{reference:o,floating:s}=e;const i=ur(t),l=Ec(t),a=kc(l),u=On(t),c=i==="y",p=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,g=o[a]/2-s[a]/2;let h;switch(u){case"top":h={x:p,y:o.y-s.height};break;case"bottom":h={x:p,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:m};break;case"left":h={x:o.x-s.width,y:m};break;default:h={x:o.x,y:o.y}}switch(Ro(t)){case"start":h[l]-=g*(r&&c?-1:1);break;case"end":h[l]+=g*(r&&c?-1:1);break}return h}const Oy=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:i=[],platform:l}=r,a=i.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:s}),{x:p,y:m}=F0(c,o,u),g=o,h={},x=0;for(let v=0;v<a.length;v++){const{name:y,fn:b}=a[v],{x:w,y:C,data:_,reset:k}=await b({x:p,y:m,initialPlacement:o,placement:g,strategy:s,middlewareData:h,rects:c,platform:l,elements:{reference:e,floating:t}});p=w??p,m=C??m,h={...h,[y]:{...h[y],..._}},k&&x<=50&&(x++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(c=k.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:s}):k.rects),{x:p,y:m}=F0(c,g,u)),v=-1)}return{x:p,y:m,placement:g,strategy:s,middlewareData:h}};async function Es(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:g=!1,padding:h=0}=In(t,e),x=Up(h),y=a[g?m==="floating"?"reference":"floating":m],b=al(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:u})),w=m==="floating"?{x:o,y:s,width:l.floating.width,height:l.floating.height}:l.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},k=al(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:C,strategy:u}):w);return{top:(b.top-k.top+x.top)/_.y,bottom:(k.bottom-b.bottom+x.bottom)/_.y,left:(b.left-k.left+x.left)/_.x,right:(k.right-b.right+x.right)/_.x}}const Py=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:c,padding:p=0}=In(e,t)||{};if(c==null)return{};const m=Up(p),g={x:r,y:o},h=Ec(s),x=kc(h),v=await l.getDimensions(c),y=h==="y",b=y?"top":"left",w=y?"bottom":"right",C=y?"clientHeight":"clientWidth",_=i.reference[x]+i.reference[h]-g[h]-i.floating[x],k=g[h]-i.reference[h],E=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c));let R=E?E[C]:0;(!R||!await(l.isElement==null?void 0:l.isElement(E)))&&(R=a.floating[C]||i.floating[x]);const j=_/2-k/2,D=R/2-v[x]/2-1,I=ar(m[b],D),B=ar(m[w],D),U=I,K=R-v[x]-B,$=R/2-v[x]/2+j,S=Eu(U,$,K),T=!u.arrow&&Ro(s)!=null&&$!==S&&i.reference[x]/2-($<U?I:B)-v[x]/2<0,M=T?$<U?$-U:$-K:0;return{[h]:g[h]+M,data:{[h]:S,centerOffset:$-S-M,...T&&{alignmentOffset:M}},reset:T}}}),Fy=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:i,rects:l,initialPlacement:a,platform:u,elements:c}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:v=!0,...y}=In(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const b=On(s),w=ur(a),C=On(a)===a,_=await(u.isRTL==null?void 0:u.isRTL(c.floating)),k=g||(C||!v?[ll(a)]:Ly(a)),E=x!=="none";!g&&E&&k.push(...My(a,v,x,_));const R=[a,...k],j=await Es(t,y),D=[];let I=((o=i.flip)==null?void 0:o.overflows)||[];if(p&&D.push(j[b]),m){const $=Dy(s,l,_);D.push(j[$[0]],j[$[1]])}if(I=[...I,{placement:s,overflows:D}],!D.every($=>$<=0)){var B,U;const $=(((B=i.flip)==null?void 0:B.index)||0)+1,S=R[$];if(S)return{data:{index:$,overflows:I},reset:{placement:S}};let T=(U=I.filter(M=>M.overflows[0]<=0).sort((M,H)=>M.overflows[1]-H.overflows[1])[0])==null?void 0:U.placement;if(!T)switch(h){case"bestFit":{var K;const M=(K=I.filter(H=>{if(E){const z=ur(H.placement);return z===w||z==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(z=>z>0).reduce((z,fe)=>z+fe,0)]).sort((H,z)=>H[1]-z[1])[0])==null?void 0:K[0];M&&(T=M);break}case"initialPlacement":T=a;break}if(s!==T)return{reset:{placement:T}}}return{}}}};function B0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $0(e){return Ay.some(t=>e[t]>=0)}const By=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:o="referenceHidden",...s}=In(e,t);switch(o){case"referenceHidden":{const i=await Es(t,{...s,elementContext:"reference"}),l=B0(i,r.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:$0(l)}}}case"escaped":{const i=await Es(t,{...s,altBoundary:!0}),l=B0(i,r.floating);return{data:{escapedOffsets:l,escaped:$0(l)}}}default:return{}}}}};async function $y(e,t){const{placement:r,platform:o,elements:s}=e,i=await(o.isRTL==null?void 0:o.isRTL(s.floating)),l=On(r),a=Ro(r),u=ur(r)==="y",c=["left","top"].includes(l)?-1:1,p=i&&u?-1:1,m=In(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:x}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&typeof x=="number"&&(h=a==="end"?x*-1:x),u?{x:h*p,y:g*c}:{x:g*c,y:h*p}}const zy=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:i,placement:l,middlewareData:a}=t,u=await $y(t,e);return l===((r=a.offset)==null?void 0:r.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:s+u.x,y:i+u.y,data:{...u,placement:l}}}}},qy=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:y=>{let{x:b,y:w}=y;return{x:b,y:w}}},...u}=In(e,t),c={x:r,y:o},p=await Es(t,u),m=ur(On(s)),g=Sc(m);let h=c[g],x=c[m];if(i){const y=g==="y"?"top":"left",b=g==="y"?"bottom":"right",w=h+p[y],C=h-p[b];h=Eu(w,h,C)}if(l){const y=m==="y"?"top":"left",b=m==="y"?"bottom":"right",w=x+p[y],C=x-p[b];x=Eu(w,x,C)}const v=a.fn({...t,[g]:h,[m]:x});return{...v,data:{x:v.x-r,y:v.y-o,enabled:{[g]:i,[m]:l}}}}}},Wy=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:s,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=In(e,t),p={x:r,y:o},m=ur(s),g=Sc(m);let h=p[g],x=p[m];const v=In(a,t),y=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const C=g==="y"?"height":"width",_=i.reference[g]-i.floating[C]+y.mainAxis,k=i.reference[g]+i.reference[C]-y.mainAxis;h<_?h=_:h>k&&(h=k)}if(c){var b,w;const C=g==="y"?"width":"height",_=["top","left"].includes(On(s)),k=i.reference[m]-i.floating[C]+(_&&((b=l.offset)==null?void 0:b[m])||0)+(_?0:y.crossAxis),E=i.reference[m]+i.reference[C]+(_?0:((w=l.offset)==null?void 0:w[m])||0)-(_?y.crossAxis:0);x<k?x=k:x>E&&(x=E)}return{[g]:h,[m]:x}}}},Gy=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:s,rects:i,platform:l,elements:a}=t,{apply:u=()=>{},...c}=In(e,t),p=await Es(t,c),m=On(s),g=Ro(s),h=ur(s)==="y",{width:x,height:v}=i.floating;let y,b;m==="top"||m==="bottom"?(y=m,b=g===(await(l.isRTL==null?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(b=m,y=g==="end"?"top":"bottom");const w=v-p.top-p.bottom,C=x-p.left-p.right,_=ar(v-p[y],w),k=ar(x-p[b],C),E=!t.middlewareData.shift;let R=_,j=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(j=C),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(R=w),E&&!g){const I=vt(p.left,0),B=vt(p.right,0),U=vt(p.top,0),K=vt(p.bottom,0);h?j=x-2*(I!==0||B!==0?I+B:vt(p.left,p.right)):R=v-2*(U!==0||K!==0?U+K:vt(p.top,p.bottom))}await u({...t,availableWidth:j,availableHeight:R});const D=await l.getDimensions(a.floating);return x!==D.width||v!==D.height?{reset:{rects:!0}}:{}}}};function $l(){return typeof window<"u"}function Ao(e){return Yp(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mn(e){var t;return(t=(Yp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yp(e){return $l()?e instanceof Node||e instanceof bt(e).Node:!1}function Ut(e){return $l()?e instanceof Element||e instanceof bt(e).Element:!1}function dn(e){return $l()?e instanceof HTMLElement||e instanceof bt(e).HTMLElement:!1}function z0(e){return!$l()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function Us(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Yt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function Uy(e){return["table","td","th"].includes(Ao(e))}function zl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Rc(e){const t=Ac(),r=Ut(e)?Yt(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function Yy(e){let t=cr(e);for(;dn(t)&&!go(t);){if(Rc(t))return t;if(zl(t))return null;t=cr(t)}return null}function Ac(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function go(e){return["html","body","#document"].includes(Ao(e))}function Yt(e){return bt(e).getComputedStyle(e)}function ql(e){return Ut(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cr(e){if(Ao(e)==="html")return e;const t=e.assignedSlot||e.parentNode||z0(e)&&e.host||mn(e);return z0(t)?t.host:t}function Hp(e){const t=cr(e);return go(t)?e.ownerDocument?e.ownerDocument.body:e.body:dn(t)&&Us(t)?t:Hp(t)}function Rs(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=Hp(e),i=s===((o=e.ownerDocument)==null?void 0:o.body),l=bt(s);if(i){const a=Au(l);return t.concat(l,l.visualViewport||[],Us(s)?s:[],a&&r?Rs(a):[])}return t.concat(s,Rs(s,[],r))}function Au(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vp(e){const t=Yt(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const s=dn(e),i=s?e.offsetWidth:r,l=s?e.offsetHeight:o,a=il(r)!==i||il(o)!==l;return a&&(r=i,o=l),{width:r,height:o,$:a}}function Tc(e){return Ut(e)?e:e.contextElement}function io(e){const t=Tc(e);if(!dn(t))return cn(1);const r=t.getBoundingClientRect(),{width:o,height:s,$:i}=Vp(t);let l=(i?il(r.width):r.width)/o,a=(i?il(r.height):r.height)/s;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const Hy=cn(0);function Xp(e){const t=bt(e);return!Ac()||!t.visualViewport?Hy:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vy(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==bt(e)?!1:t}function Ar(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),i=Tc(e);let l=cn(1);t&&(o?Ut(o)&&(l=io(o)):l=io(e));const a=Vy(i,r,o)?Xp(i):cn(0);let u=(s.left+a.x)/l.x,c=(s.top+a.y)/l.y,p=s.width/l.x,m=s.height/l.y;if(i){const g=bt(i),h=o&&Ut(o)?bt(o):o;let x=g,v=Au(x);for(;v&&o&&h!==x;){const y=io(v),b=v.getBoundingClientRect(),w=Yt(v),C=b.left+(v.clientLeft+parseFloat(w.paddingLeft))*y.x,_=b.top+(v.clientTop+parseFloat(w.paddingTop))*y.y;u*=y.x,c*=y.y,p*=y.x,m*=y.y,u+=C,c+=_,x=bt(v),v=Au(x)}}return al({width:p,height:m,x:u,y:c})}function jc(e,t){const r=ql(e).scrollLeft;return t?t.left+r:Ar(mn(e)).left+r}function Zp(e,t,r){r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=o.left+t.scrollLeft-(r?0:jc(e,o)),i=o.top+t.scrollTop;return{x:s,y:i}}function Xy(e){let{elements:t,rect:r,offsetParent:o,strategy:s}=e;const i=s==="fixed",l=mn(o),a=t?zl(t.floating):!1;if(o===l||a&&i)return r;let u={scrollLeft:0,scrollTop:0},c=cn(1);const p=cn(0),m=dn(o);if((m||!m&&!i)&&((Ao(o)!=="body"||Us(l))&&(u=ql(o)),dn(o))){const h=Ar(o);c=io(o),p.x=h.x+o.clientLeft,p.y=h.y+o.clientTop}const g=l&&!m&&!i?Zp(l,u,!0):cn(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+p.x+g.x,y:r.y*c.y-u.scrollTop*c.y+p.y+g.y}}function Zy(e){return Array.from(e.getClientRects())}function Ky(e){const t=mn(e),r=ql(e),o=e.ownerDocument.body,s=vt(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=vt(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-r.scrollLeft+jc(e);const a=-r.scrollTop;return Yt(o).direction==="rtl"&&(l+=vt(t.clientWidth,o.clientWidth)-s),{width:s,height:i,x:l,y:a}}function Qy(e,t){const r=bt(e),o=mn(e),s=r.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,u=0;if(s){i=s.width,l=s.height;const c=Ac();(!c||c&&t==="fixed")&&(a=s.offsetLeft,u=s.offsetTop)}return{width:i,height:l,x:a,y:u}}function Jy(e,t){const r=Ar(e,!0,t==="fixed"),o=r.top+e.clientTop,s=r.left+e.clientLeft,i=dn(e)?io(e):cn(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y,u=s*i.x,c=o*i.y;return{width:l,height:a,x:u,y:c}}function q0(e,t,r){let o;if(t==="viewport")o=Qy(e,r);else if(t==="document")o=Ky(mn(e));else if(Ut(t))o=Jy(t,r);else{const s=Xp(e);o={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return al(o)}function Kp(e,t){const r=cr(e);return r===t||!Ut(r)||go(r)?!1:Yt(r).position==="fixed"||Kp(r,t)}function e3(e,t){const r=t.get(e);if(r)return r;let o=Rs(e,[],!1).filter(a=>Ut(a)&&Ao(a)!=="body"),s=null;const i=Yt(e).position==="fixed";let l=i?cr(e):e;for(;Ut(l)&&!go(l);){const a=Yt(l),u=Rc(l);!u&&a.position==="fixed"&&(s=null),(i?!u&&!s:!u&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Us(l)&&!u&&Kp(e,l))?o=o.filter(p=>p!==l):s=a,l=cr(l)}return t.set(e,o),o}function t3(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const l=[...r==="clippingAncestors"?zl(t)?[]:e3(t,this._c):[].concat(r),o],a=l[0],u=l.reduce((c,p)=>{const m=q0(t,p,s);return c.top=vt(m.top,c.top),c.right=ar(m.right,c.right),c.bottom=ar(m.bottom,c.bottom),c.left=vt(m.left,c.left),c},q0(t,a,s));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function n3(e){const{width:t,height:r}=Vp(e);return{width:t,height:r}}function r3(e,t,r){const o=dn(t),s=mn(t),i=r==="fixed",l=Ar(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=cn(0);if(o||!o&&!i)if((Ao(t)!=="body"||Us(s))&&(a=ql(t)),o){const g=Ar(t,!0,i,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else s&&(u.x=jc(s));const c=s&&!o&&!i?Zp(s,a):cn(0),p=l.left+a.scrollLeft-u.x-c.x,m=l.top+a.scrollTop-u.y-c.y;return{x:p,y:m,width:l.width,height:l.height}}function Fa(e){return Yt(e).position==="static"}function W0(e,t){if(!dn(e)||Yt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return mn(e)===r&&(r=r.ownerDocument.body),r}function Qp(e,t){const r=bt(e);if(zl(e))return r;if(!dn(e)){let s=cr(e);for(;s&&!go(s);){if(Ut(s)&&!Fa(s))return s;s=cr(s)}return r}let o=W0(e,t);for(;o&&Uy(o)&&Fa(o);)o=W0(o,t);return o&&go(o)&&Fa(o)&&!Rc(o)?r:o||Yy(e)||r}const o3=async function(e){const t=this.getOffsetParent||Qp,r=this.getDimensions,o=await r(e.floating);return{reference:r3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function s3(e){return Yt(e).direction==="rtl"}const i3={convertOffsetParentRelativeRectToViewportRelativeRect:Xy,getDocumentElement:mn,getClippingRect:t3,getOffsetParent:Qp,getElementRects:o3,getClientRects:Zy,getDimensions:n3,getScale:io,isElement:Ut,isRTL:s3};function Jp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function l3(e,t){let r=null,o;const s=mn(e);function i(){var a;clearTimeout(o),(a=r)==null||a.disconnect(),r=null}function l(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),i();const c=e.getBoundingClientRect(),{left:p,top:m,width:g,height:h}=c;if(a||t(),!g||!h)return;const x=_i(m),v=_i(s.clientWidth-(p+g)),y=_i(s.clientHeight-(m+h)),b=_i(p),C={rootMargin:-x+"px "+-v+"px "+-y+"px "+-b+"px",threshold:vt(0,ar(1,u))||1};let _=!0;function k(E){const R=E[0].intersectionRatio;if(R!==u){if(!_)return l();R?l(!1,R):o=setTimeout(()=>{l(!1,1e-7)},1e3)}R===1&&!Jp(c,e.getBoundingClientRect())&&l(),_=!1}try{r=new IntersectionObserver(k,{...C,root:s.ownerDocument})}catch{r=new IntersectionObserver(k,C)}r.observe(e)}return l(!0),i}function a3(e,t,r,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,c=Tc(e),p=s||i?[...c?Rs(c):[],...Rs(t)]:[];p.forEach(b=>{s&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});const m=c&&a?l3(c,r):null;let g=-1,h=null;l&&(h=new ResizeObserver(b=>{let[w]=b;w&&w.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var C;(C=h)==null||C.observe(t)})),r()}),c&&!u&&h.observe(c),h.observe(t));let x,v=u?Ar(e):null;u&&y();function y(){const b=Ar(e);v&&!Jp(v,b)&&r(),v=b,x=requestAnimationFrame(y)}return r(),()=>{var b;p.forEach(w=>{s&&w.removeEventListener("scroll",r),i&&w.removeEventListener("resize",r)}),m?.(),(b=h)==null||b.disconnect(),h=null,u&&cancelAnimationFrame(x)}}const u3=zy,c3=qy,d3=Fy,f3=Gy,p3=By,G0=Py,m3=Wy,h3=(e,t,r)=>{const o=new Map,s={platform:i3,...r},i={...s.platform,_c:o};return Oy(e,t,{...s,platform:i})};var Yi=typeof document<"u"?f.useLayoutEffect:f.useEffect;function ul(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 r,o,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!ul(e[o],t[o]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(t,s[o]))return!1;for(o=r;o--!==0;){const i=s[o];if(!(i==="_owner"&&e.$$typeof)&&!ul(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function em(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function U0(e,t){const r=em(e);return Math.round(t*r)/r}function Ba(e){const t=f.useRef(e);return Yi(()=>{t.current=e}),t}function g3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:s,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[p,m]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=f.useState(o);ul(g,o)||h(o);const[x,v]=f.useState(null),[y,b]=f.useState(null),w=f.useCallback(H=>{H!==E.current&&(E.current=H,v(H))},[]),C=f.useCallback(H=>{H!==R.current&&(R.current=H,b(H))},[]),_=i||x,k=l||y,E=f.useRef(null),R=f.useRef(null),j=f.useRef(p),D=u!=null,I=Ba(u),B=Ba(s),U=Ba(c),K=f.useCallback(()=>{if(!E.current||!R.current)return;const H={placement:t,strategy:r,middleware:g};B.current&&(H.platform=B.current),h3(E.current,R.current,H).then(z=>{const fe={...z,isPositioned:U.current!==!1};$.current&&!ul(j.current,fe)&&(j.current=fe,Rn.flushSync(()=>{m(fe)}))})},[g,t,r,B,U]);Yi(()=>{c===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(H=>({...H,isPositioned:!1})))},[c]);const $=f.useRef(!1);Yi(()=>($.current=!0,()=>{$.current=!1}),[]),Yi(()=>{if(_&&(E.current=_),k&&(R.current=k),_&&k){if(I.current)return I.current(_,k,K);K()}},[_,k,K,I,D]);const S=f.useMemo(()=>({reference:E,floating:R,setReference:w,setFloating:C}),[w,C]),T=f.useMemo(()=>({reference:_,floating:k}),[_,k]),M=f.useMemo(()=>{const H={position:r,left:0,top:0};if(!T.floating)return H;const z=U0(T.floating,p.x),fe=U0(T.floating,p.y);return a?{...H,transform:"translate("+z+"px, "+fe+"px)",...em(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:z,top:fe}},[r,a,T.floating,p.x,p.y]);return f.useMemo(()=>({...p,update:K,refs:S,elements:T,floatingStyles:M}),[p,K,S,T,M])}const x3=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:o,padding:s}=typeof e=="function"?e(r):e;return o&&t(o)?o.current!=null?G0({element:o.current,padding:s}).fn(r):{}:o?G0({element:o,padding:s}).fn(r):{}}}},y3=(e,t)=>({...u3(e),options:[e,t]}),v3=(e,t)=>({...c3(e),options:[e,t]}),b3=(e,t)=>({...m3(e),options:[e,t]}),w3=(e,t)=>({...d3(e),options:[e,t]}),C3=(e,t)=>({...f3(e),options:[e,t]}),_3=(e,t)=>({...p3(e),options:[e,t]}),S3=(e,t)=>({...x3(e),options:[e,t]});var k3="Arrow",tm=f.forwardRef((e,t)=>{const{children:r,width:o=10,height:s=5,...i}=e;return d.jsx(ee.svg,{...i,ref:t,width:o,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});tm.displayName=k3;var E3=tm;function R3(e){const[t,r]=f.useState(void 0);return lt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let l,a;if("borderBoxSize"in i){const u=i.borderBoxSize,c=Array.isArray(u)?u[0]:u;l=c.inlineSize,a=c.blockSize}else l=e.offsetWidth,a=e.offsetHeight;r({width:l,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else r(void 0)},[e]),t}var Dc="Popper",[nm,mr]=Kt(Dc),[A3,rm]=nm(Dc),om=e=>{const{__scopePopper:t,children:r}=e,[o,s]=f.useState(null);return d.jsx(A3,{scope:t,anchor:o,onAnchorChange:s,children:r})};om.displayName=Dc;var sm="PopperAnchor",im=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:o,...s}=e,i=rm(sm,r),l=f.useRef(null),a=ae(t,l);return f.useEffect(()=>{i.onAnchorChange(o?.current||l.current)}),o?null:d.jsx(ee.div,{...s,ref:a})});im.displayName=sm;var Lc="PopperContent",[T3,j3]=nm(Lc),lm=f.forwardRef((e,t)=>{var r,o,s,i,l,a;const{__scopePopper:u,side:c="bottom",sideOffset:p=0,align:m="center",alignOffset:g=0,arrowPadding:h=0,avoidCollisions:x=!0,collisionBoundary:v=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:_,...k}=e,E=rm(Lc,u),[R,j]=f.useState(null),D=ae(t,ze=>j(ze)),[I,B]=f.useState(null),U=R3(I),K=U?.width??0,$=U?.height??0,S=c+(m!=="center"?"-"+m:""),T=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},M=Array.isArray(v)?v:[v],H=M.length>0,z={padding:T,boundary:M.filter(L3),altBoundary:H},{refs:fe,floatingStyles:Oe,placement:we,isPositioned:Le,middlewareData:Ae}=g3({strategy:"fixed",placement:S,whileElementsMounted:(...ze)=>a3(...ze,{animationFrame:C==="always"}),elements:{reference:E.anchor},middleware:[y3({mainAxis:p+$,alignmentAxis:g}),x&&v3({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?b3():void 0,...z}),x&&w3({...z}),C3({...z,apply:({elements:ze,rects:qe,availableWidth:Ct,availableHeight:_t})=>{const{width:qn,height:xi}=qe.reference,Wn=ze.floating.style;Wn.setProperty("--radix-popper-available-width",`${Ct}px`),Wn.setProperty("--radix-popper-available-height",`${_t}px`),Wn.setProperty("--radix-popper-anchor-width",`${qn}px`),Wn.setProperty("--radix-popper-anchor-height",`${xi}px`)}}),I&&S3({element:I,padding:h}),N3({arrowWidth:K,arrowHeight:$}),w&&_3({strategy:"referenceHidden",...z})]}),[Je,Te]=cm(we),Z=Ye(_);lt(()=>{Le&&Z?.()},[Le,Z]);const ue=(r=Ae.arrow)==null?void 0:r.x,pe=(o=Ae.arrow)==null?void 0:o.y,X=((s=Ae.arrow)==null?void 0:s.centerOffset)!==0,[he,ce]=f.useState();return lt(()=>{R&&ce(window.getComputedStyle(R).zIndex)},[R]),d.jsx("div",{ref:fe.setFloating,"data-radix-popper-content-wrapper":"",style:{...Oe,transform:Le?Oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(i=Ae.transformOrigin)==null?void 0:i.x,(l=Ae.transformOrigin)==null?void 0:l.y].join(" "),...((a=Ae.hide)==null?void 0:a.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(T3,{scope:u,placedSide:Je,onArrowChange:B,arrowX:ue,arrowY:pe,shouldHideArrow:X,children:d.jsx(ee.div,{"data-side":Je,"data-align":Te,...k,ref:D,style:{...k.style,animation:Le?void 0:"none"}})})})});lm.displayName=Lc;var am="PopperArrow",D3={top:"bottom",right:"left",bottom:"top",left:"right"},um=f.forwardRef(function(t,r){const{__scopePopper:o,...s}=t,i=j3(am,o),l=D3[i.placedSide];return d.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:d.jsx(E3,{...s,ref:r,style:{...s.style,display:"block"}})})});um.displayName=am;function L3(e){return e!==null}var N3=e=>({name:"transformOrigin",options:e,fn(t){var r,o,s;const{placement:i,rects:l,middlewareData:a}=t,c=((r=a.arrow)==null?void 0:r.centerOffset)!==0,p=c?0:e.arrowWidth,m=c?0:e.arrowHeight,[g,h]=cm(i),x={start:"0%",center:"50%",end:"100%"}[h],v=(((o=a.arrow)==null?void 0:o.x)??0)+p/2,y=(((s=a.arrow)==null?void 0:s.y)??0)+m/2;let b="",w="";return g==="bottom"?(b=c?x:`${v}px`,w=`${-m}px`):g==="top"?(b=c?x:`${v}px`,w=`${l.floating.height+m}px`):g==="right"?(b=`${-m}px`,w=c?x:`${y}px`):g==="left"&&(b=`${l.floating.width+m}px`,w=c?x:`${y}px`),{data:{x:b,y:w}}}});function cm(e){const[t,r="center"]=e.split("-");return[t,r]}var Wl=om,Ys=im,Gl=lm,Ul=um,M3="Portal",To=f.forwardRef((e,t)=>{var r;const{container:o,...s}=e,[i,l]=f.useState(!1);lt(()=>l(!0),[]);const a=o||i&&((r=globalThis?.document)==null?void 0:r.body);return a?I2.createPortal(d.jsx(ee.div,{...s,ref:t}),a):null});To.displayName=M3;function I3(e,t){return f.useReducer((r,o)=>t[r][o]??r,e)}var Qe=e=>{const{present:t,children:r}=e,o=O3(t),s=typeof r=="function"?r({present:o.isPresent}):f.Children.only(r),i=ae(o.ref,P3(s));return typeof r=="function"||o.isPresent?f.cloneElement(s,{ref:i}):null};Qe.displayName="Presence";function O3(e){const[t,r]=f.useState(),o=f.useRef({}),s=f.useRef(e),i=f.useRef("none"),l=e?"mounted":"unmounted",[a,u]=I3(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=Si(o.current);i.current=a==="mounted"?c:"none"},[a]),lt(()=>{const c=o.current,p=s.current;if(p!==e){const g=i.current,h=Si(c);e?u("MOUNT"):h==="none"||c?.display==="none"?u("UNMOUNT"):u(p&&g!==h?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,u]),lt(()=>{if(t){let c;const p=t.ownerDocument.defaultView??window,m=h=>{const v=Si(o.current).includes(h.animationName);if(h.target===t&&v&&(u("ANIMATION_END"),!s.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},g=h=>{h.target===t&&(i.current=Si(o.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(c=>{c&&(o.current=getComputedStyle(c)),r(c)},[])}}function Si(e){return e?.animationName||"none"}function P3(e){var t,r;let o=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function dr({prop:e,defaultProp:t,onChange:r=()=>{}}){const[o,s]=F3({defaultProp:t,onChange:r}),i=e!==void 0,l=i?e:o,a=Ye(r),u=f.useCallback(c=>{if(i){const m=typeof c=="function"?c(e):c;m!==e&&a(m)}else s(c)},[i,e,s,a]);return[l,u]}function F3({defaultProp:e,onChange:t}){const r=f.useState(e),[o]=r,s=f.useRef(o),i=Ye(t);return f.useEffect(()=>{s.current!==o&&(i(o),s.current=o)},[o,s,i]),r}var B3="VisuallyHidden",Nc=f.forwardRef((e,t)=>d.jsx(ee.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Nc.displayName=B3;var $3=Nc,[Yl,KD]=Kt("Tooltip",[mr]),Hl=mr(),dm="TooltipProvider",z3=700,Tu="tooltip.open",[q3,Mc]=Yl(dm),fm=e=>{const{__scopeTooltip:t,delayDuration:r=z3,skipDelayDuration:o=300,disableHoverableContent:s=!1,children:i}=e,[l,a]=f.useState(!0),u=f.useRef(!1),c=f.useRef(0);return f.useEffect(()=>{const p=c.current;return()=>window.clearTimeout(p)},[]),d.jsx(q3,{scope:t,isOpenDelayed:l,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(c.current),a(!1)},[]),onClose:f.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a(!0),o)},[o]),isPointerInTransitRef:u,onPointerInTransitChange:f.useCallback(p=>{u.current=p},[]),disableHoverableContent:s,children:i})};fm.displayName=dm;var Vl="Tooltip",[W3,Hs]=Yl(Vl),jo=e=>{const{__scopeTooltip:t,children:r,open:o,defaultOpen:s=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:a}=e,u=Mc(Vl,e.__scopeTooltip),c=Hl(t),[p,m]=f.useState(null),g=jt(),h=f.useRef(0),x=l??u.disableHoverableContent,v=a??u.delayDuration,y=f.useRef(!1),[b=!1,w]=dr({prop:o,defaultProp:s,onChange:R=>{R?(u.onOpen(),document.dispatchEvent(new CustomEvent(Tu))):u.onClose(),i?.(R)}}),C=f.useMemo(()=>b?y.current?"delayed-open":"instant-open":"closed",[b]),_=f.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,w(!0)},[w]),k=f.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),E=f.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,w(!0),h.current=0},v)},[v,w]);return f.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),d.jsx(Wl,{...c,children:d.jsx(W3,{scope:t,contentId:g,open:b,stateAttribute:C,trigger:p,onTriggerChange:m,onTriggerEnter:f.useCallback(()=>{u.isOpenDelayed?E():_()},[u.isOpenDelayed,E,_]),onTriggerLeave:f.useCallback(()=>{x?k():(window.clearTimeout(h.current),h.current=0)},[k,x]),onOpen:_,onClose:k,disableHoverableContent:x,children:r})})};jo.displayName=Vl;var ju="TooltipTrigger",Do=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...o}=e,s=Hs(ju,r),i=Mc(ju,r),l=Hl(r),a=f.useRef(null),u=ae(t,a,s.onTriggerChange),c=f.useRef(!1),p=f.useRef(!1),m=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),d.jsx(Ys,{asChild:!0,...l,children:d.jsx(ee.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...o,ref:u,onPointerMove:q(e.onPointerMove,g=>{g.pointerType!=="touch"&&!p.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),p.current=!0)}),onPointerLeave:q(e.onPointerLeave,()=>{s.onTriggerLeave(),p.current=!1}),onPointerDown:q(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:q(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:q(e.onBlur,s.onClose),onClick:q(e.onClick,s.onClose)})})});Do.displayName=ju;var Ic="TooltipPortal",[G3,U3]=Yl(Ic,{forceMount:void 0}),Lo=e=>{const{__scopeTooltip:t,forceMount:r,children:o,container:s}=e,i=Hs(Ic,t);return d.jsx(G3,{scope:t,forceMount:r,children:d.jsx(Qe,{present:r||i.open,children:d.jsx(To,{asChild:!0,container:s,children:o})})})};Lo.displayName=Ic;var xo="TooltipContent",No=f.forwardRef((e,t)=>{const r=U3(xo,e.__scopeTooltip),{forceMount:o=r.forceMount,side:s="top",...i}=e,l=Hs(xo,e.__scopeTooltip);return d.jsx(Qe,{present:o||l.open,children:l.disableHoverableContent?d.jsx(pm,{side:s,...i,ref:t}):d.jsx(Y3,{side:s,...i,ref:t})})}),Y3=f.forwardRef((e,t)=>{const r=Hs(xo,e.__scopeTooltip),o=Mc(xo,e.__scopeTooltip),s=f.useRef(null),i=ae(t,s),[l,a]=f.useState(null),{trigger:u,onClose:c}=r,p=s.current,{onPointerInTransitChange:m}=o,g=f.useCallback(()=>{a(null),m(!1)},[m]),h=f.useCallback((x,v)=>{const y=x.currentTarget,b={x:x.clientX,y:x.clientY},w=Z3(b,y.getBoundingClientRect()),C=K3(b,w),_=Q3(v.getBoundingClientRect()),k=e5([...C,..._]);a(k),m(!0)},[m]);return f.useEffect(()=>()=>g(),[g]),f.useEffect(()=>{if(u&&p){const x=y=>h(y,p),v=y=>h(y,u);return u.addEventListener("pointerleave",x),p.addEventListener("pointerleave",v),()=>{u.removeEventListener("pointerleave",x),p.removeEventListener("pointerleave",v)}}},[u,p,h,g]),f.useEffect(()=>{if(l){const x=v=>{const y=v.target,b={x:v.clientX,y:v.clientY},w=u?.contains(y)||p?.contains(y),C=!J3(b,l);w?g():C&&(g(),c())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[u,p,l,c,g]),d.jsx(pm,{...e,ref:i})}),[H3,V3]=Yl(Vl,{isInside:!1}),pm=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:o,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:l,...a}=e,u=Hs(xo,r),c=Hl(r),{onClose:p}=u;return f.useEffect(()=>(document.addEventListener(Tu,p),()=>document.removeEventListener(Tu,p)),[p]),f.useEffect(()=>{if(u.trigger){const m=g=>{const h=g.target;h?.contains(u.trigger)&&p()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[u.trigger,p]),d.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:m=>m.preventDefault(),onDismiss:p,children:d.jsxs(Gl,{"data-state":u.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(zp,{children:o}),d.jsx(H3,{scope:r,isInside:!0,children:d.jsx($3,{id:u.contentId,role:"tooltip",children:s||o})})]})})});No.displayName=xo;var mm="TooltipArrow",X3=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...o}=e,s=Hl(r);return V3(mm,r).isInside?null:d.jsx(Ul,{...s,...o,ref:t})});X3.displayName=mm;function Z3(e,t){const r=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,o,s,i)){case i:return"left";case s:return"right";case r:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function K3(e,t,r=5){const o=[];switch(t){case"top":o.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":o.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":o.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":o.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return o}function Q3(e){const{top:t,right:r,bottom:o,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:o},{x:s,y:o}]}function J3(e,t){const{x:r,y:o}=e;let s=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const a=t[i].x,u=t[i].y,c=t[l].x,p=t[l].y;u>o!=p>o&&r<(c-a)*(o-u)/(p-u)+a&&(s=!s)}return s}function e5(e){const t=e.slice();return t.sort((r,o)=>r.x<o.x?-1:r.x>o.x?1:r.y<o.y?-1:r.y>o.y?1:0),t5(t)}function t5(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const s=e[o];for(;t.length>=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(s.y-l.y)>=(i.y-l.y)*(s.x-l.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let o=e.length-1;o>=0;o--){const s=e[o];for(;r.length>=2;){const i=r[r.length-1],l=r[r.length-2];if((i.x-l.x)*(s.y-l.y)>=(i.y-l.y)*(s.x-l.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Mo=jo,Io=Do,Oo=Lo,Po=No;const be=f.createContext({});function hm(e,t){return f.useMemo(()=>{if(e)return new J.ASTQuery({query:t,source:e})},[e,t])}const gm=f.createContext({focusMainView:()=>{},isMainViewFocused:!0,focusNestView:()=>{},isNestViewFocused:()=>!1,focusedNestView:null});function n5({rootQuery:e,focusedNestViewPath:t,onFocusedNestViewPathChange:r,children:o}){const s=f.useMemo(()=>{if(t.length===0)return null;if(e){const c=e.definition;if(c instanceof J.ASTArrowQueryDefinition)return Hi(c.view,[...t].reverse())}return null},[e,t]),i=f.useCallback(()=>{r([])},[r]),l=f.useCallback(c=>{r([...c])},[r]),a=f.useCallback(c=>JSON.stringify(c)===JSON.stringify(t),[t]),u=t.length===0;return d.jsx(gm.Provider,{value:{focusMainView:i,isMainViewFocused:u,focusNestView:l,isNestViewFocused:a,focusedNestView:s},children:o})}function Vs(){return f.useContext(gm)}const Hi=(e,t)=>{if(t.length===0)return null;if(e instanceof J.ASTArrowViewDefinition)return Hi(e.view,t);if(e instanceof J.ASTSegmentViewDefinition){const r=t.pop(),o=e.operations.items.find(s=>s instanceof J.ASTNestViewOperation&&s.name===r);return o===void 0?(t.push(r),null):t.length===0?o.view:Hi(o.view.definition,t)}return e instanceof J.ASTRefinementViewDefinition?Hi(e.refinement,t):null};function QD({source:e,query:t,onQueryChange:r,focusedNestViewPath:o,onFocusedNestViewPathChange:s,children:i,topValues:l,onDrill:a}){const u=hm(e,t);return d.jsx(fm,{children:d.jsx(n5,{rootQuery:u,focusedNestViewPath:o,onFocusedNestViewPathChange:s,children:d.jsx(be.Provider,{value:{source:e,rootQuery:u,setQuery:r,topValues:l,onDrill:a},children:i})})})}var ts={},Y0;function r5(){if(Y0)return ts;Y0=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.styleq=void 0;var e=new WeakMap,t="$$css";function r(s){var i,l,a;return s!=null&&(i=s.disableCache===!0,l=s.disableMix===!0,a=s.transform),function(){for(var c=[],p="",m=null,g=i?null:e,h=new Array(arguments.length),x=0;x<arguments.length;x++)h[x]=arguments[x];for(;h.length>0;){var v=h.pop();if(!(v==null||v===!1)){if(Array.isArray(v)){for(var y=0;y<v.length;y++)h.push(v[y]);continue}var b=a!=null?a(v):v;if(b.$$css){var w="";if(g!=null&&g.has(b)){var C=g.get(b);C!=null&&(w=C[0],c.push.apply(c,C[1]),g=C[2])}else{var _=[];for(var k in b){var E=b[k];k!==t&&(typeof E=="string"||E===null?c.includes(k)||(c.push(k),g!=null&&_.push(k),typeof E=="string"&&(w+=w?" "+E:E)):console.error("styleq: ".concat(k," typeof ").concat(String(E),' is not "string" or "null".')))}if(g!=null){var R=new WeakMap;g.set(b,[w,_,R]),g=R}}w&&(p=p?w+" "+p:w)}else if(l)m==null&&(m={}),m=Object.assign({},b,m);else{var j=null;for(var D in b){var I=b[D];I!==void 0&&(c.includes(D)||(I!=null&&(m==null&&(m={}),j==null&&(j={}),j[D]=I),c.push(D),g=null))}j!=null&&(m=Object.assign(j,m))}}}var B=[p,m];return B}}var o=r();return ts.styleq=o,o.factory=r,ts}var xm=r5();const Lr=e=>new Error(`'stylex.${e}' should never be called at runtime. It should be compiled away by '@stylexjs/babel-plugin'`),xt=e=>Lr(`types.${e}`);function ym(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[o,s]=xm.styleq(t),i={};return o!=null&&o!==""&&(i.className=o),s!=null&&Object.keys(s).length>0&&(i.style=s),i}function o5(){const{className:e,style:t}=ym(...arguments),r={};return e!=null&&e!==""&&(r.class=e),t!=null&&Object.keys(t).length>0&&(r.style=Object.keys(t).map(o=>`${o}:${t[o]};`).join("")),r}function s5(e){throw Lr("create")}function i5(e){throw Lr("defineVars")}const l5=(e,t)=>{throw Lr("createTheme")},a5=e=>{throw Lr("include")},u5=s5,c5=i5,d5=l5,f5=a5,p5={angle:e=>{throw xt("angle")},color:e=>{throw xt("color")},url:e=>{throw xt("url")},image:e=>{throw xt("image")},integer:e=>{throw xt("integer")},lengthPercentage:e=>{throw xt("lengthPercentage")},length:e=>{throw xt("length")},percentage:e=>{throw xt("percentage")},number:e=>{throw xt("number")},resolution:e=>{throw xt("resolution")},time:e=>{throw xt("time")},transformFunction:e=>{throw xt("transformFunction")},transformList:e=>{throw xt("transformList")}},m5=e=>{throw Lr("keyframes")},h5=function(){throw Lr("firstThatWorks")};function A(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[o]=xm.styleq(t);return o}A.props=ym;A.attrs=o5;A.create=u5;A.defineVars=c5;A.createTheme=d5;A.include=f5;A.keyframes=m5;A.firstThatWorks=h5;A.types=p5;const Pn={default:{padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,borderRadius:"mly4pepcl",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,color:"mly1rs82da",backgroundColor:"mly1jmk7v",maxWidth:"mlyxc7z9f",boxShadow:"mly17fq3gk",zIndex:"mlyhtitgo",$$css:!0},card:{width:"mly1g65f5b",maxHeight:"mly1kbvuzt",zIndex:"mlyhtitgo",$$css:!0}},Y={largeBody:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mlyo1l8bm",fontSize:"mly1j61zf2",lineHeight:"mly1fc57z9",letterSpacing:"mly12oo3zp",$$css:!0},emphasized:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mly1xlr1w8",fontSize:"mlyif65rj",lineHeight:"mly1fc57z9",letterSpacing:"mly1gu5id8",$$css:!0},body:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mlyo1l8bm",fontSize:"mlyif65rj",lineHeight:"mly1fc57z9",letterSpacing:"mly12oo3zp",$$css:!0},link:{fontFamily:"mly1rj5sg5",color:"mlykfrnou",fontWeight:"mlyo1l8bm",fontSize:"mlyif65rj",lineHeight:"mly1fc57z9",letterSpacing:"mly12oo3zp",$$css:!0},supporting:{fontFamily:"mly1rj5sg5",color:"mly1dhlylr",fontWeight:"mlyo1l8bm",fontSize:"mlyfifm61",lineHeight:"mly1d3mw78",letterSpacing:"mly12oo3zp",$$css:!0},badge:{fontFamily:"mly1rj5sg5",color:"mly183j0n7",fontWeight:"mly1s688f",fontSize:"mlyfifm61",lineHeight:"mly1d3mw78",letterSpacing:"mly1gu5id8",$$css:!0},tooltipText:{fontFamily:"mly1rj5sg5",color:"mly1rs82da",fontSize:"mlyif65rj",fontStyle:"mly1j61x8r",fontWeight:"mlyo1l8bm",lineHeight:"mly1fc57z9",$$css:!0}},g5=e=>f.createElement("svg",{width:110,height:110,viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"cahevron_down",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M52.9466923,41.3127809 C54.0529774,40.2742275 55.7502198,40.2309545 56.9057514,41.1829617 L57.0533077,41.3127809 L81.5533077,64.3127809 C82.7612755,65.4467914 82.8212296,67.34534 81.6872191,68.5533077 C80.5968243,69.7148152 78.7995712,69.8149195 77.5890551,68.8127704 L77.4466923,68.6872191 L54.9999906,47.615 L32.5533077,68.6872191 C31.3918003,69.7776139 29.5918121,69.7641211 28.4469384,68.6875913 L28.3127809,68.5533077 C27.2223861,67.3918003 27.2358789,65.5918121 28.3124087,64.4469384 L28.4466923,64.3127809 L52.9466923,41.3127809 Z",id:"Path",fill:"currentColor",fillRule:"nonzero",transform:"translate(55.000000, 55.000005) rotate(-180.000000) translate(-55.000000, -55.000005) "}))),x5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"chevron_left",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M52.9466923,41.3127809 C54.0529774,40.2742275 55.7502198,40.2309545 56.9057514,41.1829617 L57.0533077,41.3127809 L81.5533077,64.3127809 C82.7612755,65.4467914 82.8212296,67.34534 81.6872191,68.5533077 C80.5968243,69.7148152 78.7995712,69.8149195 77.5890551,68.8127704 L77.4466923,68.6872191 L54.9999906,47.615 L32.5533077,68.6872191 C31.3918003,69.7776139 29.5918121,69.7641211 28.4469384,68.6875913 L28.3127809,68.5533077 C27.2223861,67.3918003 27.2358789,65.5918121 28.3124087,64.4469384 L28.4466923,64.3127809 L52.9466923,41.3127809 Z",id:"Path",fill:"currentColor",fillRule:"nonzero",transform:"translate(55.000000, 55.000005) rotate(-90.000000) translate(-55.000000, -55.000005) "}))),y5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"chevron_right",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M52.9466923,41.3127809 C54.0529774,40.2742275 55.7502198,40.2309545 56.9057514,41.1829617 L57.0533077,41.3127809 L81.5533077,64.3127809 C82.7612755,65.4467914 82.8212296,67.34534 81.6872191,68.5533077 C80.5968243,69.7148152 78.7995712,69.8149195 77.5890551,68.8127704 L77.4466923,68.6872191 L54.9999906,47.615 L32.5533077,68.6872191 C31.3918003,69.7776139 29.5918121,69.7641211 28.4469384,68.6875913 L28.3127809,68.5533077 C27.2223861,67.3918003 27.2358789,65.5918121 28.3124087,64.4469384 L28.4466923,64.3127809 L52.9466923,41.3127809 Z",id:"Path",fill:"currentColor",fillRule:"nonzero",transform:"translate(55.000000, 55.000005) rotate(-270.000000) translate(-55.000000, -55.000005) "}))),v5=e=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 0 24 24",width:24,...e},f.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),f.createElement("path",{fill:"currentColor",d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),vm=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"query_clear_hover",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("circle",{className:"circle hoverfill",fill:"transparent",cx:55,cy:55,r:55}),f.createElement("path",{d:"M78.1428571,25 L85,31.8571429 L61.857,55 L85,78.1428571 L78.1428571,85 L55,61.857 L31.8571429,85 L25,78.1428571 L48.142,55 L25,31.8571429 L31.8571429,25 L55,48.143 L78.1428571,25 Z",className:"cross primaryfill",fill:"currentColor"}))),b5=e=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},f.createElement("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})),w5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"query_add",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M75.8285714,28 L82,34.1714286 L61.171,55 L82,75.8285714 L75.8285714,82 L54.999,61.171 L34.1714286,82 L28,75.8285714 L48.828,55 L28,34.1714286 L34.1714286,28 L55,48.829 L75.8285714,28 Z",id:"Combined-Shape-Copy",fill:"currentColor",transform:"translate(55.000000, 55.000000) rotate(-315.000000) translate(-55.000000, -55.000000) ",className:"primaryfill"}))),C5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"5 5 100 100",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"insert_measure",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M64.4079772,43.4952662 C64.4079772,65.775216 64.4079772,77.6781315 64.4079772,79.2040126 C64.4079772,81.4928343 72.4309475,81.4935567 72.4309475,79.2040126 C72.4309475,77.6776499 72.4309475,65.7747344 72.4309475,43.4952662 L82.1242499,53.5032288 C82.9082803,54.3127101 83.9390395,54.7167092 84.9596343,54.7167092 C85.980229,54.7167092 87.0118722,54.3119686 87.7950187,53.5032288 C89.3623612,51.8850077 89.3623612,49.2552488 87.7950187,47.6371608 L71.2655269,30.5703346 C70.8943747,30.1871342 70.4404886,29.8781937 69.9456129,29.6650532 C69.9247535,29.6546561 69.9046123,29.6546561 69.883753,29.6435167 C69.4298852,29.4519166 68.9350096,29.3457171 68.4192709,29.3457171 C67.9035322,29.3457171 67.4086565,29.4519147 66.9547887,29.6435167 C66.9339294,29.6539139 66.9137882,29.6539139 66.8929288,29.6650532 C66.3980532,29.8781937 65.9441854,30.1863928 65.5730149,30.5703346 L49.0328429,47.6474271 C47.4655004,49.2656482 47.4655004,51.8954071 49.0328429,53.5134951 C50.6001855,55.1205753 53.1472623,55.1205753 54.714476,53.5023554 L64.4079772,43.4952662 Z",id:"Path-Copy-3",fill:"currentColor",className:"primaryfill",fillRule:"nonzero",transform:"translate(68.413931, 55.133308) rotate(-270.000000) translate(-68.413931, -55.133308) "}),f.createElement("rect",{id:"Rectangle-Copy-50",className:"primaryfill",fill:"currentColor",fillRule:"nonzero",transform:"translate(32.019040, 39.025784) rotate(-90.000000) translate(-32.019040, -39.025784) ",x:24.0122609,y:34.8667243,width:16.0135574,height:8.31811859}),f.createElement("rect",{id:"Rectangle-Copy-51",className:"primaryfill",fill:"currentColor",fillRule:"nonzero",transform:"translate(32.019040, 72.330197) rotate(-90.000000) translate(-32.019040, -72.330197) ",x:24.0122609,y:68.1711376,width:16.0135574,height:8.31811859}),f.createElement("circle",{id:"Oval-Copy-16",className:"primarystroke",stroke:"currentColor",strokeWidth:7,fillRule:"nonzero",transform:"translate(32.019040, 88.946306) rotate(-180.000000) translate(-32.019040, -88.946306) ",cx:32.0190396,cy:88.9463056,r:9.09652528}),f.createElement("circle",{id:"Oval-Copy-20",className:"primarystroke",stroke:"currentColor",strokeWidth:7,fillRule:"nonzero",transform:"translate(32.019040, 55.133308) rotate(-90.000000) translate(-32.019040, -55.133308) ",cx:32.0190396,cy:55.1333084,r:9.09652528}),f.createElement("circle",{id:"Oval-Copy-21",className:"primarystroke",stroke:"currentColor",strokeWidth:7,fillRule:"nonzero",cx:32.0190396,cy:23.2007668,r:9.09652528}))),_5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"insert_filter",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M87.3843313,20.5 C88.0702245,20.5 88.6794354,20.684137 89.1839151,20.9924545 C89.72968,21.3260038 90.1536978,21.8060023 90.4194477,22.364077 C90.6824778,22.9164401 90.7905536,23.5453405 90.7077209,24.1843828 C90.641307,24.6967561 90.4522801,25.21669 90.1181537,25.7073778 L89.9660074,25.9157747 L65.9667297,54.9330833 L65.9667297,86.0952768 C65.9667297,87.3578277 65.3421199,88.3687734 64.46847,88.9512067 C64.0000984,89.2634544 63.4591929,89.4523731 62.9014864,89.49211 C62.4335638,89.5254497 61.9536386,89.4542406 61.4987219,89.2647425 L61.3053966,89.1762469 L45.2981054,81.501442 C44.7448345,81.2248066 44.1940182,80.794047 43.8075879,80.2144017 C43.516589,79.7779032 43.3168206,79.2579753 43.2760203,78.6543848 L43.268304,78.4241163 L43.268304,54.9330833 L19.2778986,25.9265022 C18.8405281,25.4244753 18.5999563,24.8470099 18.5253334,24.2601464 C18.4451968,23.6299215 18.5577673,22.9877736 18.8297244,22.4166636 C19.0989541,21.8512813 19.5239716,21.3563425 20.06756,21.0111708 C20.5069962,20.7321343 21.0239609,20.5500465 21.6001779,20.5088845 L21.8507024,20.5 L87.3843313,20.5 Z M80.4108174,26.9794004 L28.8312662,26.9794004 L49.2106529,51.6044926 L49.3557497,51.8317181 C49.767411,52.5135117 49.9668805,53.1962297 49.9668805,53.8764024 L49.9668805,53.8764024 L49.9668805,76.3587304 L59.2681532,80.9104171 L59.2681532,53.6572264 L59.2765596,53.4785743 C59.3429907,52.7639199 59.7932531,52.0547544 60.2732157,51.568472 L60.2732157,51.568472 L80.4108174,26.9794004 Z",id:"Shape-Copy-2",stroke:"currentColor",fill:"currentColor",className:"primaryfill primarystroke",fillRule:"nonzero"}))),S5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"insert_group_by",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M31.7463881,49.3114698 C32.6824928,49.3083801 33.6154932,49.1963884 34.5261904,48.9793527 L45.0010173,67.8024842 L45.0010173,67.8032565 C43.2956473,70.2493007 42.5480527,73.2367133 42.8986175,76.1988173 C43.2492613,79.1601303 44.6742783,81.890304 46.9033203,83.870708 C49.1330544,85.851903 52.0117188,86.9463056 54.9937928,86.9463056 C57.9758669,86.9463056 60.8545313,85.8518634 63.0834745,83.870708 C65.3132086,81.890304 66.7382058,79.1601303 67.0889682,76.1988173 C67.4396121,73.2369111 66.6919779,70.2493007 64.9865684,67.8032565 L75.4613953,48.980125 L75.4613953,48.9793527 C78.5099046,49.699958 81.7183727,49.2180056 84.4200741,47.6338999 C87.1225664,46.0505653 89.1106817,43.4862425 89.9717699,40.4749053 C90.8328581,37.4635681 90.5008399,34.235723 89.0449384,31.4630387 C87.5882658,28.6903544 85.1197206,26.584791 82.151685,25.5847028 C79.1834516,24.5837248 75.9441385,24.7652355 73.1066007,26.0913707 C70.2688652,27.4167347 68.0507969,29.7848559 66.9138836,32.7028673 L43.0841815,32.7028673 C42.0044302,29.9371034 39.9514417,27.6601133 37.310837,26.3015513 C34.6702324,24.9429696 31.623898,24.5961814 28.7454313,25.32606 C25.8669647,26.0559385 23.3534966,27.8122421 21.6791694,30.2652067 C20.0046839,32.7173803 19.284138,35.6972794 19.6532888,38.644554 C20.021708,41.5910378 21.4544362,44.3012413 23.6819162,46.2662229 C25.9086844,48.2303345 28.776474,49.3139413 31.7460915,49.3115686 L31.7463881,49.3114698 Z M54.9987359,80.3146003 C53.5304767,80.3146003 52.1224442,79.7314725 51.0836021,78.6934213 C50.0455509,77.6545989 49.4624231,76.2465862 49.4624231,74.7782874 C49.4624231,73.3099887 50.0455509,71.9019957 51.0836021,70.8639445 C52.1224245,69.8251221 53.5304372,69.2419944 54.9987359,69.2419944 C56.4670347,69.2419944 57.8750277,69.8251221 58.9138698,70.8639445 C59.951921,71.9019957 60.5350488,73.3099887 60.5350488,74.7782874 C60.5350488,76.2465862 59.951921,77.6545792 58.9138698,78.6934213 C57.8750474,79.7314725 56.4670347,80.3146003 54.9987359,80.3146003 Z M78.2510838,31.5953952 C79.7193431,31.5953952 81.1273755,32.1785229 82.1654268,33.2165742 C83.203478,34.2553966 83.7873769,35.6634093 83.7873769,37.131708 C83.7873769,38.6000068 83.203478,40.0079998 82.1654268,41.046051 C81.1273755,42.0848734 79.7193826,42.6680011 78.2510838,42.6680011 C76.7828246,42.6680011 75.3740012,42.0848734 74.33595,41.046051 C73.2978987,40.0079998 72.714771,38.6000068 72.714771,37.131708 C72.714771,35.6634093 73.2978987,34.2554163 74.33595,33.2165742 C75.3740012,32.1785229 76.7827851,31.5953952 78.2510838,31.5953952 Z M43.7166018,39.3459801 L66.2808701,39.3459801 C66.7149337,41.7696815 67.8734779,44.0047541 69.6028318,45.75738 L59.7591401,63.5727121 C56.7137943,62.2774614 53.2720118,62.2774614 50.2258752,63.5727121 L40.3380911,45.75738 C42.0882652,44.0118524 43.2661865,41.7758109 43.7156132,39.3459801 L43.7166018,39.3459801 Z M31.7465858,31.5953952 C33.214845,31.5953952 34.6236684,32.1785229 35.6617196,33.2165742 C36.6997709,34.2553966 37.2828986,35.6634093 37.2828986,37.131708 C37.2828986,38.6000068 36.6997709,40.0079998 35.6617196,41.046051 C34.6236684,42.0848734 33.2148846,42.6680011 31.7465858,42.6680011 C30.2783266,42.6680011 28.8702941,42.0848734 27.8322428,41.046051 C26.7941916,40.0079998 26.2102927,38.6000068 26.2102927,37.131708 C26.2102927,35.6634093 26.7941916,34.2554163 27.8322428,33.2165742 C28.8702941,32.1785229 30.278287,31.5953952 31.7465858,31.5953952 L31.7465858,31.5953952 Z",id:"Shape-Copy-3",fill:"currentColor",fillRule:"nonzero",className:"primaryfill"}))),k5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"insert_limit",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("rect",{id:"Rectangle-Copy-46",className:"primaryfill",fill:"currentColor",x:24,y:23,width:61.9377906,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-47",className:"primaryfill",fill:"currentColor",x:24,y:39,width:61.9377906,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-48",className:"primaryfill",fill:"currentColor",x:24,y:55,width:53.5,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-49",className:"primaryfill",fill:"currentColor",x:24,y:71.1904762,width:40,height:7.61904762,rx:3.80952381}),f.createElement("path",{d:"M77.1113683,65.3807638 L87.6203313,83.396129 C87.8986116,83.8731809 87.7374754,84.4854986 87.2604234,84.7637789 C87.1074874,84.8529916 86.933607,84.9 86.7565524,84.9 L65.7386264,84.9 C65.1863417,84.9 64.7386264,84.4522847 64.7386264,83.9 C64.7386264,83.7229454 64.7856348,83.549065 64.8748475,83.396129 L75.3838105,65.3807638 C75.6620908,64.9037119 76.2744085,64.7425757 76.7514604,65.020856 C76.9004641,65.1077747 77.0244495,65.2317602 77.1113683,65.3807638 Z",id:"Triangle-Copy-2",fill:"currentColor",className:"primaryfill",transform:"translate(76.247589, 74.400000) rotate(-90.000000) translate(-76.247589, -74.400000) "}))),E5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"insert_nest",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M27.3181186,27 C29.5272576,27 31.3181186,28.790861 31.3181186,31 L31.318,59.317 L72.9431634,59.317258 L62.9360743,49.6237568 C61.3178543,48.0565431 61.3178543,45.5094664 62.9249345,43.9421238 C64.5430225,42.3747812 67.1727815,42.3747812 68.7910025,43.9421238 L68.7910025,43.9421238 L85.8680951,60.4822957 C86.2520369,60.8534663 86.560236,61.307334 86.7733764,61.8022097 C86.7845158,61.823069 86.7845158,61.8432103 86.7949129,61.8640696 C86.986515,62.3179374 87.0927126,62.812813 87.0927126,63.3285517 C87.0927126,63.8442904 86.9865131,64.3391661 86.7949129,64.7930338 C86.7837736,64.8138932 86.7837736,64.8340344 86.7733764,64.8548938 C86.560236,65.3497694 86.2512954,65.8036556 85.8680951,66.1748077 L85.8680951,66.1748077 L68.8012688,82.7042995 C67.1831809,84.2716421 64.5534219,84.2716421 62.9352009,82.7042995 C62.1264611,81.921153 61.7217204,80.8895099 61.7217204,79.8689151 C61.7217204,78.8483204 62.1257196,77.8175611 62.9352009,77.0335308 L62.9352009,77.0335308 L72.9431634,67.3402284 L27.234417,67.3402284 C25.2840646,67.3402284 23.6511005,66.037955 23.2100653,64.2817501 C23.0737364,63.8793045 23,63.4482633 23,63 L23,31 C23,28.790861 24.790861,27 27,27 L27.3181186,27 Z",id:"Combined-Shape-Copy",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),R5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"insert_order_by",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M30.5506412,37.7046734 L30.5506412,81.9762916 C30.5506412,84.1931505 32.3445678,85.9877768 34.5621264,85.9877768 C36.7789852,85.9877768 38.5736115,84.1938502 38.5736115,81.9762916 L38.5736115,37.7046734 L48.2669139,47.3979757 C49.0509443,48.1820061 50.0817035,48.5733031 51.1022983,48.5733031 C52.122893,48.5733031 53.1545362,48.1812879 53.9376827,47.3979757 C55.5050252,45.8306331 55.5050252,43.2835564 53.9376827,41.7163427 L37.4081909,25.1861143 C37.0370387,24.8149622 36.5831526,24.515735 36.0882769,24.3092959 C36.0674175,24.2992257 36.0472763,24.2992257 36.026417,24.2884366 C35.5725492,24.1028605 35.0776736,24 34.5619349,24 C34.0461961,24 33.5513205,24.1028586 33.0974527,24.2884366 C33.0765934,24.2985068 33.0564522,24.2985068 33.0355928,24.3092959 C32.5407172,24.515735 32.0868494,24.814244 31.7156789,25.1861143 L15.1755069,41.7262862 C13.6081644,43.2936288 13.6081644,45.8407055 15.1755069,47.4079192 C16.7428495,48.9644712 19.2899263,48.9644712 20.85714,47.3971298 L30.5506412,37.7046734 Z",id:"Path-Copy",fill:"currentColor",fillRule:"nonzero",className:"primaryfill"}),f.createElement("path",{d:"M79.9439284,72.2964315 L79.9439284,28.0137648 C79.9439284,25.796906 78.1500018,24.0022797 75.9324432,24.0022797 C73.7155844,24.0022797 71.920958,25.7962062 71.920958,28.0137648 L71.920958,72.2853831 L62.2276557,62.5920808 C60.6603131,61.0247382 58.1233641,61.0247382 56.5460227,62.5920808 C54.9786801,64.1594234 54.9786801,66.7065001 56.5460227,68.2737138 L73.0861946,84.8138857 C73.4573467,85.1850378 73.9112329,85.484265 74.4061086,85.6907041 C74.4269679,85.7007743 74.4471091,85.7007743 74.4679685,85.7115634 C74.9218362,85.8971395 75.4167119,86 75.9324506,86 C76.4481893,86 76.943065,85.8971414 77.3969327,85.7115634 C77.4177921,85.7014932 77.4379333,85.7014932 77.4587926,85.6907041 C77.9536683,85.484265 78.407536,85.185756 78.7787066,84.8138857 L95.3188785,68.2737138 C96.8862211,66.7063712 96.8862211,64.1592945 95.3188785,62.5920808 C93.7515359,61.0355288 91.2044592,61.0355288 89.6372455,62.6028702 L79.9439284,72.2964315 Z",id:"Path-Copy-2",className:"primaryfill",fill:"currentColor",fillRule:"nonzero"}))),A5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("title",null,"join_icon_one_to_many"),f.createElement("g",{id:"join_icon_one_to_many",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group",transform:"translate(12.759300, 12.500000) rotate(-180.000000) translate(-12.759300, -12.500000) translate(4.000000, 3.712487)",fill:"currentColor"},f.createElement("polygon",{id:"Path-Copy-15",fillRule:"nonzero",transform:"translate(6.382256, 8.736227) scale(-1, 1) rotate(180.000000) translate(-6.382256, -8.736227) ",points:"2.80570594 3.41828749 3.48860316 2.68777302 9.95880577 8.73622728 3.48860316 14.7846815 2.80570594 14.0541671 8.494 8.736"}),f.createElement("rect",{id:"Rectangle-Copy-91",transform:"translate(2.000000, 2.000000) scale(-1, 1) translate(-2.000000, -2.000000) ",x:0,y:0,width:4,height:4}),f.createElement("rect",{id:"Rectangle-Copy-92",transform:"translate(2.000000, 8.736227) scale(-1, 1) translate(-2.000000, -8.736227) ",x:0,y:6.73622728,width:4,height:4}),f.createElement("rect",{id:"Rectangle-Copy-86",transform:"translate(15.518600, 8.736227) scale(-1, 1) translate(-15.518600, -8.736227) ",x:13.5186005,y:6.73622728,width:4,height:4}),f.createElement("rect",{id:"Rectangle-Copy-87",transform:"translate(2.000000, 15.575026) scale(-1, 1) translate(-2.000000, -15.575026) ",x:0,y:13.5750258,width:4,height:4}),f.createElement("polygon",{id:"Line-3-Copy-68",fillRule:"nonzero",transform:"translate(8.495445, 8.736227) scale(-1, 1) translate(-8.495445, -8.736227) ",points:"14.9954453 8.23622728 14.9954453 9.23622728 1.99544525 9.23622728 1.99544525 8.23622728"})))),T5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("title",null,"join_icon_many_to_one"),f.createElement("g",{id:"join_icon_many_to_one",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("polygon",{id:"Path-Copy-14",fill:"currentColor",fillRule:"nonzero",transform:"translate(10.382256, 12.736227) scale(-1, 1) rotate(180.000000) translate(-10.382256, -12.736227) ",points:"6.80570594 7.41828749 7.48860316 6.68777302 13.9588058 12.7362273 7.48860316 18.7846815 6.80570594 18.0541671 12.494 12.736"}),f.createElement("rect",{id:"Rectangle-Copy-90",fill:"currentColor",x:4,y:4,width:4,height:4}),f.createElement("rect",{id:"Rectangle-Copy-89",fill:"currentColor",x:4,y:10.7362273,width:4,height:4}),f.createElement("rect",{id:"Rectangle-Copy-85",fill:"currentColor",x:17.5186005,y:10.7362273,width:4,height:4}),f.createElement("rect",{id:"Rectangle-Copy-84",fill:"currentColor",x:4,y:17.5750258,width:4,height:4}),f.createElement("polygon",{id:"Line-3-Copy-67",fill:"currentColor",fillRule:"nonzero",points:"18.9954453 12.2362273 18.9954453 13.2362273 5.99544525 13.2362273 5.99544525 12.2362273"}))),j5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("title",null,"join_icon_one_to_one"),f.createElement("g",{id:"join_icon_one_to_one",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("rect",{id:"Rectangle-Copy-89",fill:"currentColor",x:4,y:10.7362273,width:4,height:4}),f.createElement("rect",{id:"Rectangle-Copy-85",fill:"currentColor",x:17.5186005,y:10.7362273,width:4,height:4}),f.createElement("polygon",{id:"Line-3-Copy-67",fill:"currentColor",fillRule:"nonzero",points:"18.9954453 12.2362273 18.9954453 13.2362273 5.99544525 13.2362273 5.99544525 12.2362273"}))),D5=e=>f.createElement("svg",{width:"78px",height:"73px",viewBox:"-5 -10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("title",null,"database_b"),f.createElement("g",{id:"icons",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"database_b",transform:"translate(-0.000189, 0.800000)",fill:"currentColor",fillRule:"nonzero"},f.createElement("g",{id:"Shape-2"},f.createElement("path",{d:"M38.9978747,0 C49.4323909,0 58.8817175,1.35601948 65.8935492,3.63769481 C69.399635,4.77856169 72.3064537,6.14483766 74.4415973,7.78792208 C76.5767408,9.43100649 78,11.4644805 78,13.7176948 L78,59.1428571 C77.5289095,61.1095617 75.9098694,63.0619481 74.4415973,64.2103247 C72.3064537,65.8534091 69.3994651,67.2213799 65.8935492,68.3623052 C58.8808682,70.6440097 49.4317114,72 38.9978747,72 C28.564038,72 19.1123333,70.6439805 12.0988029,68.3623052 C8.59271719,67.2214383 5.68589845,65.8534091 3.55075491,64.2103247 C1.77316722,62.6163312 0.466092472,61.0553571 0.000162359918,59.1428571 L0.000162359918,12.826461 C-0.00497251122,12.4857468 0.111806422,12.1513003 0.334077073,11.8687938 C0.867540225,10.3512127 2.01808874,8.96790097 3.55089079,7.78869643 C5.68603434,6.14561201 8.59302294,4.77924838 12.0989388,3.63846916 C19.1116199,1.35676461 28.562815,0.000774350649 38.9980106,0.000774350649 L38.9978747,0 Z M38.9980026,4.39968547 C29.1795807,4.39968547 20.2971169,5.97898133 14.0341392,8.43960024 C10.9023181,9.66989245 8.43317659,11.1339692 6.85248078,12.602151 C3.94393403,15.3862114 4.29446142,18.3655235 6.85248078,20.7802963 C8.43327627,22.2484263 10.9024843,23.7104505 14.0341392,24.9407772 C20.2982797,27.4014306 29.1795807,28.9827618 38.9980026,28.9827618 C48.8164245,28.9827618 57.7038721,27.4014306 63.968511,24.9407772 C67.1003321,23.710485 69.5714672,22.2484781 71.152163,20.7802963 C74.08729,18.0024452 73.4953805,14.8214996 71.152163,12.602151 C69.5713675,11.1340209 67.100166,9.66992695 63.968511,8.43960024 C57.705035,5.97894683 48.8172551,4.39968547 38.9980026,4.39968547 Z M73.3181233,24.4886668 C71.264963,26.4046321 68.5511168,28.0180283 65.3038377,29.3722628 C58.4452957,32.2325658 49.203832,33.9324103 38.9993316,33.9324103 C28.7948312,33.9324103 19.5508756,32.2325291 12.691503,29.3722628 C9.44422385,28.0179367 6.73170664,26.4046321 4.67921092,24.4886668 L4.67921092,34.5578783 C4.85118531,35.7254798 5.51373193,36.9581006 6.85314528,38.278818 C8.43394077,39.8377628 10.9031488,41.3838137 14.0348037,42.6902452 C20.2989442,45.3031082 29.1802452,46.9886668 38.9986671,46.9886668 C48.817089,46.9886668 57.7045366,45.3030899 63.9691755,42.6902452 C67.1009966,41.3838503 69.5721317,39.8378178 71.1528275,38.278818 C72.4811934,36.9688517 73.1398693,35.7461761 73.3189539,34.5871829 L73.3181233,24.4886668 Z M73.3181233,43.1016944 C71.264963,44.782251 68.5517813,46.1967717 65.3038377,47.3852582 C58.4452957,49.8941247 49.203832,51.3851147 38.9993316,51.3851147 C28.7948312,51.3851147 19.5508756,49.8940926 12.691503,47.3852582 C9.44422385,46.197334 6.73170664,44.7841788 4.67921092,43.1036222 L4.67921092,55.7057886 C4.85118531,56.7299305 5.51373193,57.811103 6.85314528,58.9695481 C8.43394077,60.3369502 10.9031488,61.6911148 14.0348037,62.8370291 C20.2989442,65.1288579 29.1802452,66.6016944 38.9986671,66.6016944 C48.817089,66.6016944 57.7045366,65.1288579 63.9691755,62.8370291 C67.1009966,61.6911469 69.5721317,60.3369984 71.1528275,58.9695481 C72.4811934,57.8205331 73.1398693,56.7480839 73.3189539,55.7314925 L73.3181233,43.1016944 Z",id:"Shape"}))))),H0=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"2.5 2.5 11 11",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-number",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M12,7 L12,6 L10,6 L10,4 L9,4 L9,6 L7,6 L7,4 L6,4 L6,6 L4,6 L4,7 L6,7 L6,9 L4,9 L4,10 L6,10 L6,12 L7,12 L7,10 L9,10 L9,12 L10,12 L10,10 L12,10 L12,9 L10,9 L10,7 L12,7 Z M9,9 L7,9 L7,7 L9,7 L9,9 Z",id:"Shape-Copy-21",fill:"currentColor",fillRule:"nonzero"}))),L5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-projection",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M11.3362588,4 L11.3362588,12 L8,9.90676786 L4.6637412,12 L4.6637412,4 L11.3362588,4 Z M10.336,5 L5.663,5 L5.663,10.191 L8,8.72623637 L10.336,10.191 L10.336,5 Z",id:"Rectangle",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),V0=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-string",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M4.8045,10.45 L5.2245,9.253 L7.1425,9.253 L7.5625,10.45 L8.6055,10.45 L6.7225,5.438 L5.6375,5.438 L3.7615,10.45 L4.8045,10.45 Z M6.8345,8.385 L5.5255,8.385 L5.9735,7.125 L6.1555,6.523 L6.2115,6.523 L6.3935,7.125 L6.8345,8.385 Z M10.2505,10.562 C10.4791667,10.562 10.681,10.5176667 10.856,10.429 C11.031,10.3403333 11.1721667,10.226 11.2795,10.086 L11.2795,10.086 L11.3355,10.086 L11.3355,10.45 L12.2385,10.45 L12.2385,8.252 C12.2385,7.76666667 12.0961667,7.398 11.8115,7.146 C11.5268333,6.894 11.1115,6.768 10.5655,6.768 C10.2575,6.768 9.97283333,6.82866667 9.7115,6.95 C9.45016667,7.07133333 9.23316667,7.244 9.0605,7.468 L9.0605,7.468 L9.6485,7.93 C9.75116667,7.804 9.88066667,7.7025 10.037,7.6255 C10.1933333,7.5485 10.3555,7.51 10.5235,7.51 C10.7708333,7.51 10.968,7.57066667 11.115,7.692 C11.262,7.81333333 11.3355,7.972 11.3355,8.168 L11.3355,8.168 L11.3355,8.322 C11.0741667,8.21466667 10.7591667,8.161 10.3905,8.161 C10.1245,8.161 9.88183333,8.21 9.6625,8.308 C9.44316667,8.406 9.2705,8.546 9.1445,8.728 C9.0185,8.91 8.9555,9.12 8.9555,9.358 C8.9555,9.71733333 9.07683333,10.0078333 9.3195,10.2295 C9.56216667,10.4511667 9.8725,10.562 10.2505,10.562 Z M10.4675,9.848 C10.2761667,9.848 10.1291667,9.8025 10.0265,9.7115 C9.92383333,9.6205 9.8725,9.50266667 9.8725,9.358 C9.8725,9.00333333 10.1105,8.826 10.5865,8.826 C10.8478333,8.826 11.0975,8.882 11.3355,8.994 C11.3355,9.22266667 11.2573333,9.42216667 11.101,9.5925 C10.9446667,9.76283333 10.7335,9.848 10.4675,9.848 Z",id:"Aa-Copy",fill:"currentColor",fillRule:"nonzero"}))),N5=e=>f.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("path",{clipRule:"evenodd",d:"m2.5 2c-.27614 0-.5.22386-.5.5v10c0 .2761.22386.5.5.5h2c.27614 0 .5-.2239.5-.5s-.22386-.5-.5-.5h-1.5v-9h1.5c.27614 0 .5-.22386.5-.5s-.22386-.5-.5-.5zm8 0c-.2761 0-.5.22386-.5.5s.2239.5.5.5h1.5v9h-1.5c-.2761 0-.5.2239-.5.5s.2239.5.5.5h2c.2761 0 .5-.2239.5-.5v-10c0-.27614-.2239-.5-.5-.5zm-4.5 5h-1v1h1zm1 0h1v1h-1zm3 0h-1v1h1z",fill:"currentColor",fillRule:"evenodd"})),M5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"2.5 2.5 11 11",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-on-off",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group-Copy",transform:"translate(4.295444, 4.604157)",fill:"currentColor",fillRule:"nonzero"},f.createElement("path",{d:"M1.61912392,3.08712961 L5.78998715,3.08712961 C6.6842046,3.08712961 7.40911107,2.39605211 7.40911107,1.54356481 C7.40911107,0.691077503 6.6842046,0 5.78998715,0 L1.61912392,0 C0.724906472,0 0,0.691077503 0,1.54356481 C0,2.39605211 0.724906472,3.08712961 1.61912392,3.08712961 Z M1.61912392,0.617425922 L5.78998715,0.617425922 C6.32651762,0.617425922 6.7614615,1.03207242 6.7614615,1.54356481 C6.7614615,2.05505719 6.32651762,2.46970369 5.78998715,2.46970369 L1.61912392,2.46970369 C1.08259345,2.46970369 0.647649569,2.05505719 0.647649569,1.54356481 C0.647649569,1.03207242 1.08259345,0.617425922 1.61912392,0.617425922 Z",id:"Shape-Copy-20"}),f.createElement("path",{d:"M1.83745135,2.13685198 C2.08762004,2.13888594 2.31428875,1.98975367 2.4114368,1.75920941 C2.50858486,1.52866515 2.45700749,1.2622842 2.28082919,1.08466199 C2.10465088,0.907039785 1.83869956,0.853289683 1.60736972,0.948552441 C1.37603988,1.0438152 1.22505383,1.26925874 1.22505383,1.51943543 C1.22505383,1.85847446 1.49842318,2.13409557 1.83745135,2.13685198 L1.83745135,2.13685198 Z",id:"Path-Copy-14"}),f.createElement("path",{d:"M5.78998714,3.70455553 L1.6191239,3.70455553 C0.724906454,3.70455553 0,4.39563305 0,5.24812034 C0,6.10060763 0.724906454,6.79168514 1.6191239,6.79168514 L5.78998714,6.79168514 C6.68420459,6.79168514 7.40911107,6.10060764 7.40911107,5.24812034 C7.40911107,4.39563304 6.68420459,3.70455553 5.78998714,3.70455553 L5.78998714,3.70455553 Z M5.78998714,6.17425922 L1.6191239,6.17425922 C1.08259342,6.17425922 0.647649538,5.75961272 0.647649538,5.24812034 C0.647649538,4.73662796 1.08259342,4.32198146 1.6191239,4.32198146 L5.78998714,4.32198146 C6.32651761,4.32198146 6.7614615,4.73662796 6.7614615,5.24812034 C6.7614615,5.75961272 6.32651761,6.17425922 5.78998714,6.17425922 L5.78998714,6.17425922 Z",id:"Shape-Copy-21"}),f.createElement("path",{d:"M5.54392378,4.67774545 C5.2937551,4.6757115 5.06708639,4.82484377 4.96993833,5.05538803 C4.87279028,5.28593228 4.92436765,5.55231324 5.10054595,5.72993544 C5.27672426,5.90755765 5.54267558,5.96130775 5.77400542,5.86604499 C6.00533526,5.77078224 6.15632131,5.5453387 6.15632131,5.295162 C6.15632131,4.95612297 5.88295196,4.68050187 5.54392378,4.67774545 Z",id:"Path-Copy-15"})))),I5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-date",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group-Copy-22",transform:"translate(4.753763, 4.094719)",fill:"currentColor",fillRule:"nonzero"},f.createElement("path",{d:"M5.84322609,0.649247344 L5.51860242,0.649247344 L5.51860242,0 L4.86935508,0 L4.86935508,0.649247344 L1.62311836,0.649247344 L1.62311836,0 L0.973871015,0 L0.973871015,0.649247344 L0.649247344,0.649247344 C0.292161305,0.649247344 0,0.941408648 0,1.29849469 L0,6.49247344 C0,6.84955947 0.292161305,7.14172078 0.649247344,7.14172078 L5.84322609,7.14172078 C6.20031213,7.14172078 6.49247344,6.84955947 6.49247344,6.49247344 L6.49247344,1.29849469 C6.49247344,0.941408648 6.20031213,0.649247344 5.84322609,0.649247344 Z M5.84322609,6.49247344 L0.649247344,6.49247344 L0.649247344,2.2723657 L5.84322609,2.2723657 L5.84322609,6.49247344 Z",id:"Shape"})))),O5=e=>f.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("g",{clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"},f.createElement("path",{d:"m3 3.5c0-.82843.67157-1.5 1.5-1.5h1c.27614 0 .5.22386.5.5s-.22386.5-.5.5h-1c-.27614 0-.5.22386-.5.5v2.88197c0 .43292-.18638.83753-.49993 1.11803.31355.2805.49993.68511.49993 1.11803v2.88197c0 .2761.22386.5.5.5h1c.27614 0 .5.2239.5.5s-.22386.5-.5.5h-1c-.82843 0-1.5-.6716-1.5-1.5v-2.88197c0-.18938-.107-.36251-.27639-.44721l-.44722-.22361c-.16939-.08469-.27639-.25782-.27639-.44721s.107-.36252.27639-.44721l.44722-.22361c.16939-.0847.27639-.25783.27639-.44721z"}),f.createElement("path",{d:"m12 3.5c0-.82843-.6716-1.5-1.5-1.5h-1c-.27614 0-.5.22386-.5.5s.22386.5.5.5h1c.2761 0 .5.22386.5.5v2.88197c0 .43292.1864.83753.4999 1.11803-.3135.2805-.4999.68511-.4999 1.11803v2.88197c0 .2761-.2239.5-.5.5h-1c-.27614 0-.5.2239-.5.5s.22386.5.5.5h1c.8284 0 1.5-.6716 1.5-1.5v-2.88197c0-.18938.107-.36251.2764-.44721l.4472-.22361c.1694-.08469.2764-.25782.2764-.44721s-.107-.36252-.2764-.44721l-.4472-.22361c-.1694-.0847-.2764-.25783-.2764-.44721z"}))),P5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"2.5 2.5 11 11",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-number",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M12,7 L12,6 L10,6 L10,4 L9,4 L9,6 L7,6 L7,4 L6,4 L6,6 L4,6 L4,7 L6,7 L6,9 L4,9 L4,10 L6,10 L6,12 L7,12 L7,10 L9,10 L9,12 L10,12 L10,10 L12,10 L12,9 L10,9 L10,7 L12,7 Z M9,9 L7,9 L7,7 L9,7 L9,9 Z",id:"Shape-Copy-21",fill:"currentColor",fillRule:"nonzero"}))),F5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-projection",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M11.3362588,4 L11.3362588,12 L8,9.90676786 L4.6637412,12 L4.6637412,4 L11.3362588,4 Z M10.336,5 L5.663,5 L5.663,10.191 L8,8.72623637 L10.336,10.191 L10.336,5 Z",id:"Rectangle",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),B5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"3.5 3.5 9 9",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"type-icon-projection",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M11.3362588,4 L11.3362588,12 L8,9.90676786 L4.6637412,12 L4.6637412,4 L11.3362588,4 Z",id:"Rectangle",fill:"currentColor",className:"primaryfill",fillRule:"nonzero"}))),$5=e=>f.createElement("svg",{fill:"none",height:110,viewBox:"1 1 12.5 12.5",width:15,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("path",{clipRule:"evenodd",d:"m2 5.5c0-.27614.22386-.5.5-.5h2c.27614 0 .5.22386.5.5s-.22386.5-.5.5h-1.5v1h1.5c.27614 0 .5.22386.5.5v2c0 .27614-.22386.5-.5.5h-2c-.27614 0-.5-.22386-.5-.5s.22386-.5.5-.5h1.5v-1h-1.5c-.27614 0-.5-.22386-.5-.5zm4 0c0-.27614.22386-.5.5-.5h2c.27614 0 .5.22386.5.5v4.5h.5c.27614 0 .5.2239.5.5s-.22386.5-.5.5h-1c-.27614 0-.5-.2239-.5-.5v-.5h-1.5c-.27614 0-.5-.22386-.5-.5zm2 3.5h-1v-3h1zm2.5-4c.2761 0 .5.22386.5.5v3.5h1.5c.2761 0 .5.22386.5.5s-.2239.5-.5.5h-2c-.2761 0-.5-.22386-.5-.5v-4c0-.27614.2239-.5.5-.5z",fill:"currentColor",fillRule:"evenodd"})),z5=e=>f.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("g",{fill:"currentColor"},f.createElement("path",{d:"m4.5 7.5c0 .55228-.44772 1-1 1s-1-.44772-1-1 .44772-1 1-1 1 .44772 1 1z"}),f.createElement("path",{d:"m8.5 7.5c0 .55228-.44772 1-1 1s-1-.44772-1-1 .44772-1 1-1 1 .44772 1 1z"}),f.createElement("path",{d:"m11.5 8.5c.5523 0 1-.44772 1-1s-.4477-1-1-1-1 .44772-1 1 .4477 1 1 1z"}))),q5=e=>f.createElement("svg",{fill:"none",height:110,viewBox:"3 3 9 9",width:15,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("path",{clipRule:"evenodd",d:"m4.74513 11.5809 6.48017-3.64512c.3398-.19115.3398-.68043 0-.87158l-6.48017-3.64507c-.3333-.18749-.74513.05337-.74513.43578v7.29019c0 .3824.41183.6232.74513.4358zm.25487-6.87106v5.58026l4.96027-2.79011z",fill:"currentColor",fillRule:"evenodd"})),W5=e=>f.createElement("svg",{height:16,viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("circle",{cx:8,cy:8,r:8,fill:"currentColor"}),f.createElement("circle",{cx:8,cy:8,r:4,fill:"#FFFFFF"})),G5=e=>f.createElement("svg",{height:16,viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("circle",{cx:8,cy:8,r:8,fill:"currentColor"}),f.createElement("circle",{cx:8,cy:8,r:7,fill:"#FFFFFF"})),U5=e=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},f.createElement("path",{d:"m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"})),Y5=e=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},f.createElement("path",{d:"m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})),H5=e=>f.createElement("svg",{fill:"none",height:15,viewBox:"0 0 15 15",width:15,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("g",{clipRule:"evenodd",fill:"#151515",fillRule:"evenodd"},f.createElement("path",{d:"m10 7.50001c0 1.38072-1.11928 2.49999-2.49999 2.49999s-2.5-1.11927-2.5-2.49999c0-1.38071 1.11929-2.5 2.5-2.5s2.49999 1.11929 2.49999 2.5zm-.99999 0c0 .82843-.67157 1.5-1.5 1.5-.82842 0-1.5-.67157-1.5-1.5 0-.82842.67158-1.5 1.5-1.5.82843 0 1.5.67158 1.5 1.5z"}),f.createElement("path",{d:"m8.92908 3.05724c-.34403-1.52302-2.5141-1.52302-2.85813 0-.07078.31333-.43034.46227-.70195.29076-1.3202-.83367-2.85467.7008-2.021 2.021.17151.27161.02257.63117-.29076.70195-1.52302.34403-1.52302 2.5141 0 2.85813.31333.07077.46227.43034.29076.70195-.83367 1.32017.7008 2.85467 2.021 2.02097.27161-.1715.63117-.0225.70195.2908.34403 1.523 2.5141 1.523 2.85813 0 .07077-.3133.43034-.4623.70195-.2908 1.32017.8337 2.85467-.7008 2.02097-2.02097-.1715-.27161-.0225-.63118.2908-.70195 1.523-.34403 1.523-2.5141 0-2.85813-.3133-.07078-.4623-.43034-.2908-.70195.8337-1.3202-.7008-2.85467-2.02097-2.021-.27161.17151-.63118.02257-.70195-.29076zm-1.8827.22034c.1092-.48347.79806-.48347.90727 0 .22296.98707 1.35568 1.45625 2.21135.91595.419-.26464.9061.22246.6415.64154-.5403.85562-.0711 1.98834.916 2.21131.4834.1092.4834.79806 0 .90727-.9871.22296-1.4563 1.35568-.916 2.21135.2646.419-.2225.9061-.6415.6415-.85567-.5403-1.98839-.0711-2.21135.916-.10921.4834-.79807.4834-.90727 0-.22297-.9871-1.35569-1.4563-2.21131-.916-.41908.2646-.90618-.2225-.64154-.6415.5403-.85567.07112-1.98839-.91595-2.21135-.48347-.10921-.48347-.79807 0-.90727.98707-.22297 1.45625-1.35569.91595-2.21131-.26464-.41908.22246-.90618.64154-.64154.85562.5403 1.98834.07112 2.21131-.91595z"}))),V5=e=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},f.createElement("path",{d:"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})),X5=e=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},f.createElement("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240ZM330-120 120-330v-300l210-210h300l210 210v300L630-120H330Zm34-80h232l164-164v-232L596-760H364L200-596v232l164 164Zm116-280Z"})),Z5=e=>f.createElement("svg",{height:20,viewBox:"0 0 20 20",width:20,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("g",{fill:"none",stroke:"currentColor"},f.createElement("path",{d:"m17.08 11.15c.01.16.02.32.02.49 0 3.89-3.16 7.05-7.05 7.05-3.89-.01-7.05-3.16-7.05-7.06 0-3.89 3.16-7.05 7.05-7.05.85 0 1.66.15 2.41.42",strokeWidth:1.1}),f.createElement("path",{d:"m9.9 2 2.89 2.89-3 3.01"}))),K5=e=>f.createElement("svg",{height:24,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",stroke:"none",...e},f.createElement("path",{fill:"currentColor",stroke:"none",d:"m20 24h-16c-2.2 0-4-1.8-4-4v-16c0-2.2 1.8-4 4-4h16c2.2 0 4 1.8 4 4v16c0 2.2-1.8 4-4 4zm-16-22c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-16c0-1.1-.9-2-2-2z"}),f.createElement("path",{fill:"currentColor",d:"m8 24c-.6 0-1-.4-1-1v-22c0-.6.4-1 1-1s1 .4 1 1v22c0 .6-.4 1-1 1z"}),f.createElement("path",{fill:"currentColor",d:"m14 13c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l3-3c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-3 3c-.2.2-.4.3-.7.3z"}),f.createElement("path",{fill:"currentColor",d:"m17 16c-.3 0-.5-.1-.7-.3l-3-3c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l3 3c.4.4.4 1 0 1.4-.2.2-.4.3-.7.3z"})),Q5=e=>f.createElement("svg",{fill:"none",height:24,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("path",{d:"m11 8h10m-10 0c0 1.65685-1.34315 3-3 3s-3-1.34315-3-3m6 0c0-1.65685-1.34315-3-3-3s-3 1.34315-3 3m0 0h-2m10 8h-10m10 0c0-1.6569 1.3431-3 3-3s3 1.3431 3 3m-6 0c0 1.6569 1.3431 3 3 3s3-1.3431 3-3m0 0h2",stroke:"currentColor",strokeWidth:1.5})),X0=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_bar_chart",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group-3",transform:"translate(20.000000, 24.000000)",fill:"currentColor"},f.createElement("g",{id:"Group-2",transform:"translate(34.500000, 31.000000) rotate(-270.000000) translate(-34.500000, -31.000000) translate(3.500000, -3.500000)"},f.createElement("path",{d:"M-26.056314,30.056314 L34.943686,30.056314 C37.152825,30.056314 38.943686,31.847175 38.943686,34.056314 L38.943686,34.943686 C38.943686,37.152825 37.152825,38.943686 34.943686,38.943686 L-26.056314,38.943686 C-28.265453,38.943686 -30.056314,37.152825 -30.056314,34.943686 L-30.056314,34.056314 C-30.056314,31.847175 -28.265453,30.056314 -26.056314,30.056314 Z",id:"Rectangle-Copy-59",transform:"translate(4.443686, 34.500000) rotate(-90.000000) translate(-4.443686, -34.500000) "}),f.createElement("path",{d:"M-0.491247385,37.8466366 L44.9281075,37.8466366 C47.1372465,37.8466366 48.9281075,39.6374976 48.9281075,41.8466366 L48.9281075,42.7340086 C48.9281075,44.9431476 47.1372465,46.7340086 44.9281075,46.7340086 L-0.491247385,46.7340086 C-2.70038638,46.7340086 -4.49124739,44.9431476 -4.49124739,42.7340086 L-4.49124739,41.8466366 C-4.49124739,39.6374976 -2.70038638,37.8466366 -0.491247385,37.8466366 Z",id:"Rectangle-Copy-62",transform:"translate(22.218430, 42.290323) rotate(-90.000000) translate(-22.218430, -42.290323) "}),f.createElement("path",{d:"M23.3837854,43.9469253 L56.6025627,43.9469253 C58.8117017,43.9469253 60.6025627,45.7377863 60.6025627,47.9469253 L60.6025627,48.8342973 C60.6025627,51.0434363 58.8117017,52.8342973 56.6025627,52.8342973 L23.3837854,52.8342973 C21.1746464,52.8342973 19.3837854,51.0434363 19.3837854,48.8342973 L19.3837854,47.9469253 C19.3837854,45.7377863 21.1746464,43.9469253 23.3837854,43.9469253 Z",id:"Rectangle-Copy-66",transform:"translate(39.993174, 48.390611) rotate(-90.000000) translate(-39.993174, -48.390611) "}),f.createElement("path",{d:"M46.7286345,49.7286345 L68.8072017,49.7286345 C71.0163407,49.7286345 72.8072017,51.5194955 72.8072017,53.7286345 L72.8072017,54.1927983 C72.8072017,56.4019373 71.0163407,58.1927983 68.8072017,58.1927983 L46.7286345,58.1927983 C44.5194955,58.1927983 42.7286345,56.4019373 42.7286345,54.1927983 L42.7286345,53.7286345 C42.7286345,51.5194955 44.5194955,49.7286345 46.7286345,49.7286345 Z",id:"Rectangle-Copy-67",transform:"translate(57.767918, 53.960716) rotate(-90.000000) translate(-57.767918, -53.960716) "}))))),J5=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_boolean",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"noun_switch_3350414-2",transform:"translate(20.000000, 22.000000)",fill:"currentColor",fillRule:"nonzero"},f.createElement("g",{id:"noun_switch_3350414"},f.createElement("path",{d:"M15.2972028,30.8 L54.7027972,30.8 C63.151209,30.8 70,23.9051851 70,15.4 C70,6.89481485 63.151209,0 54.7027972,0 L15.2972028,0 C6.84879098,0 0,6.89481485 0,15.4 C0,23.9051851 6.84879098,30.8 15.2972028,30.8 Z M15.2972028,6.16 L54.7027972,6.16 C59.7718443,6.16 63.8811189,10.2968889 63.8811189,15.4 C63.8811189,20.5031111 59.7718443,24.64 54.7027972,24.64 L15.2972028,24.64 C10.2281557,24.64 6.11888112,20.5031111 6.11888112,15.4 C6.11888112,10.2968889 10.2281557,6.16 15.2972028,6.16 Z",id:"Shape"}),f.createElement("path",{d:"M19.6340542,21.9997804 C22.2930484,22.0215224 24.7022661,20.4273668 25.7348338,17.9629544 C26.7674016,15.4985421 26.2191958,12.6510518 24.3466309,10.7523518 C22.474066,8.85365189 19.6473211,8.27908795 17.1885612,9.29740315 C14.7298014,10.3157183 13.125,12.7256064 13.125,15.3998806 C13.125,19.0240523 16.0305897,21.9703156 19.6340542,21.9997804 L19.6340542,21.9997804 Z",id:"Path"}),f.createElement("path",{d:"M54.7027971,35.2 L15.2972025,35.2 C6.84879081,35.2 0,42.094815 0,50.6 C0,59.105185 6.84879081,66 15.2972025,66 L54.7027971,66 C63.151209,66 70,59.1051851 70,50.6 C70,42.0948149 63.151209,35.2 54.7027971,35.2 L54.7027971,35.2 Z M54.7027971,59.84 L15.2972025,59.84 C10.2281554,59.84 6.11888082,55.7031111 6.11888082,50.6 C6.11888082,45.4968889 10.2281554,41.36 15.2972025,41.36 L54.7027971,41.36 C59.7718442,41.36 63.8811189,45.4968889 63.8811189,50.6 C63.8811189,55.7031111 59.7718442,59.84 54.7027971,59.84 L54.7027971,59.84 Z",id:"Shape"}),f.createElement("path",{d:"M50.3659458,44.0002196 C47.7069516,43.9784776 45.2977339,45.5726332 44.2651662,48.0370456 C43.2325984,50.5014579 43.7808042,53.3489482 45.6533691,55.2476482 C47.525934,57.1463481 50.3526789,57.720912 52.8114388,56.7025969 C55.2701986,55.6842817 56.875,53.2743936 56.875,50.6001194 C56.875,46.9759477 53.9694103,44.0296844 50.3659458,44.0002196 Z",id:"Path"}))))),ev=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_column_chart",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group",transform:"translate(23.500000, 19.500000)",fill:"currentColor"},f.createElement("path",{d:"M-26.5,30.5 L35.5,30.5 C37.709139,30.5 39.5,32.290861 39.5,34.5 L39.5,35.5 C39.5,37.709139 37.709139,39.5 35.5,39.5 L-26.5,39.5 C-28.709139,39.5 -30.5,37.709139 -30.5,35.5 L-30.5,34.5 C-30.5,32.290861 -28.709139,30.5 -26.5,30.5 Z",id:"Rectangle-Copy-59",transform:"translate(4.500000, 35.000000) rotate(-90.000000) translate(-4.500000, -35.000000) "}),f.createElement("path",{d:"M-0.5,38.5 L45.5,38.5 C47.709139,38.5 49.5,40.290861 49.5,42.5 L49.5,43.5 C49.5,45.709139 47.709139,47.5 45.5,47.5 L-0.5,47.5 C-2.709139,47.5 -4.5,45.709139 -4.5,43.5 L-4.5,42.5 C-4.5,40.290861 -2.709139,38.5 -0.5,38.5 Z",id:"Rectangle-Copy-62",transform:"translate(22.500000, 43.000000) rotate(-90.000000) translate(-22.500000, -43.000000) "}),f.createElement("path",{d:"M23.5,45.5 L57.5,45.5 C59.709139,45.5 61.5,47.290861 61.5,49.5 L61.5,50.5 C61.5,52.709139 59.709139,54.5 57.5,54.5 L23.5,54.5 C21.290861,54.5 19.5,52.709139 19.5,50.5 L19.5,49.5 C19.5,47.290861 21.290861,45.5 23.5,45.5 Z",id:"Rectangle-Copy-66",transform:"translate(40.500000, 50.000000) rotate(-90.000000) translate(-40.500000, -50.000000) "}),f.createElement("path",{d:"M47.5,50.5 L70.5,50.5 C72.709139,50.5 74.5,52.290861 74.5,54.5 L74.5,55.5 C74.5,57.709139 72.709139,59.5 70.5,59.5 L47.5,59.5 C45.290861,59.5 43.5,57.709139 43.5,55.5 L43.5,54.5 C43.5,52.290861 45.290861,50.5 47.5,50.5 Z",id:"Rectangle-Copy-67",transform:"translate(59.000000, 55.000000) rotate(-90.000000) translate(-59.000000, -55.000000) "})))),tv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_currency",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group",transform:"translate(19.000000, 19.000000)"},f.createElement("circle",{id:"Oval",stroke:"currentColor",strokeWidth:7,cx:36,cy:36,r:32.5}),f.createElement("path",{d:"M35.7525,20.06 C38.5425,20.06 40.7775,20.7425 42.4575,22.1075 C44.1375,23.4725 45.2775,25.01 45.8775,26.72 L41.4225,28.61 C41.1225,27.53 40.4925,26.6 39.5325,25.82 C38.5725,25.04 37.3275,24.65 35.7975,24.65 C34.3275,24.65 33.0825,25.04 32.0625,25.82 C31.0425,26.6 30.5325,27.59 30.5325,28.79 C30.5325,29.9 30.99,30.8225 31.905,31.5575 C32.759,32.2435 34.0507333,32.8968333 35.7802,33.5175 L38.2275,34.37 C40.9875,35.33 43.1175,36.575 44.6175,38.105 C46.1175,39.635 46.8675,41.675 46.8675,44.225 C46.8675,46.325 46.335,48.0875 45.27,49.5125 C44.205,50.9375 42.84,51.995 41.175,52.685 C39.51,53.375 37.8075,53.72 36.0675,53.72 C33.3975,53.72 30.9975,52.94 28.8675,51.38 C26.7375,49.82 25.2525,47.63 24.4125,44.81 L29.0925,42.92 C29.5725,44.72 30.4275,46.19 31.6575,47.33 C32.8875,48.47 34.3725,49.04 36.1125,49.04 C37.7325,49.04 39.105,48.62 40.23,47.78 C41.355,46.94 41.9175,45.785 41.9175,44.315 C41.9175,42.965 41.4225,41.8475 40.4325,40.9625 C39.4975,40.1266667 37.9202778,39.3109028 35.7008333,38.5152083 L33.2775,37.655 C31.0875,36.875 29.265,35.7875 27.81,34.3925 C26.355,32.9975 25.6275,31.145 25.6275,28.835 C25.6275,27.245 26.055,25.775 26.91,24.425 C27.765,23.075 28.965,22.01 30.51,21.23 C32.055,20.45 33.8025,20.06 35.7525,20.06 Z",id:"Path",fill:"currentColor",fillRule:"nonzero"}),f.createElement("line",{x1:36,y1:14,x2:36,y2:21,id:"Line-Copy-4",stroke:"currentColor",strokeWidth:5}),f.createElement("line",{x1:36,y1:52,x2:36,y2:59,id:"Line-Copy-5",stroke:"currentColor",strokeWidth:5})),f.createElement("g",{id:"S",transform:"translate(43.412500, 37.060000)"}))),nv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_dashboard",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"dashboard_black_24dp",transform:"translate(13.000000, 13.000000)"},f.createElement("path",{d:"M5,0 L80,0 C82.7614237,-5.07265313e-16 85,2.23857625 85,5 L85,80 C85,82.7614237 82.7614237,85 80,85 L5,85 C2.23857625,85 3.38176876e-16,82.7614237 0,80 L0,5 C-3.38176876e-16,2.23857625 2.23857625,5.07265313e-16 5,0 Z",id:"Path"}),f.createElement("path",{d:"M67,18 L67,25 L53,25 L53,18 L67,18 M32,18 L32,39 L18,39 L18,18 L32,18 M67,46 L67,67 L53,67 L53,46 L67,46 M32,60 L32,67 L18,67 L18,60 L32,60 M69,11 L51,11 C48.2385763,11 46,13.2385763 46,16 L46,27 C46,29.7614237 48.2385763,32 51,32 L69,32 C71.7614237,32 74,29.7614237 74,27 L74,16 C74,13.2385763 71.7614237,11 69,11 Z M34,11 L16,11 C13.2385763,11 11,13.2385763 11,16 L11,41 C11,43.7614237 13.2385763,46 16,46 L34,46 C36.7614237,46 39,43.7614237 39,41 L39,16 C39,13.2385763 36.7614237,11 34,11 Z M69,39 L51,39 C48.2385763,39 46,41.2385763 46,44 L46,69 C46,71.7614237 48.2385763,74 51,74 L69,74 C71.7614237,74 74,71.7614237 74,69 L74,44 C74,41.2385763 71.7614237,39 69,39 Z M34,53 L16,53 C13.2385763,53 11,55.2385763 11,58 L11,69 C11,71.7614237 13.2385763,74 16,74 L34,74 C36.7614237,74 39,71.7614237 39,69 L39,58 C39,55.2385763 36.7614237,53 34,53 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"})))),rv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_image",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M81.4444444,28.5555556 L81.4444444,81.4444444 L28.5555556,81.4444444 L28.5555556,28.5555556 L81.4444444,28.5555556 M81.4444444,21 L28.5555556,21 C24.4,21 21,24.4 21,28.5555556 L21,81.4444444 C21,85.6 24.4,89 28.5555556,89 L81.4444444,89 C85.6,89 89,85.6 89,81.4444444 L89,28.5555556 C89,24.4 85.6,21 81.4444444,21 Z M63.0844444,54.4711111 L51.7511111,69.0911111 L43.6666667,59.3066667 L32.3333333,73.8888889 L77.6666667,73.8888889 L63.0844444,54.4711111 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"}))),ov=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_json",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"{;}",transform:"translate(24.000000, 22.000000)",fill:"currentColor",fillRule:"nonzero"},f.createElement("path",{d:"M17.0296296,66 C13.2765432,66 10.3209877,64.871179 8.16296296,62.6135371 C6.00493827,60.3558952 4.92592593,57.3296943 4.92592593,53.5349345 L4.92592593,41.6462882 C4.92592593,39.9170306 4.45679012,38.5840611 3.51851852,37.6473799 C2.58024691,36.7106987 1.40740741,36.2423581 0,36.2423581 L0,29.7576419 C1.40740741,29.7576419 2.58024691,29.2893013 3.51851852,28.3526201 C4.45679012,27.4159389 4.92592593,26.0829694 4.92592593,24.3537118 L4.92592593,12.4650655 C4.92592593,8.67030568 6.00493827,5.6441048 8.16296296,3.38646288 C10.3209877,1.12882096 13.2765432,0 17.0296296,0 L19,0 L19,6.41266376 L17.7333333,6.41266376 C16.091358,6.41266376 14.7425926,6.98908297 13.687037,8.1419214 C12.6314815,9.29475983 12.1037037,10.8318777 12.1037037,12.7532751 L12.1037037,24.3537118 C12.1037037,26.7074236 11.7166667,28.5687773 10.9425926,29.9377729 C10.1685185,31.3067686 8.93703704,32.2554585 7.24814815,32.7838428 L7.24814815,33.2161572 C8.93703704,33.7445415 10.1685185,34.6812227 10.9425926,36.0262009 C11.7166667,37.371179 12.1037037,39.2445415 12.1037037,41.6462882 L12.1037037,53.2467249 C12.1037037,55.1681223 12.6314815,56.7052402 13.687037,57.8580786 C14.7425926,59.010917 16.091358,59.5873362 17.7333333,59.5873362 L19,59.5873362 L19,66 L17.0296296,66 Z",id:"Path"}),f.createElement("path",{d:"M44,59.5873362 L45.4074074,59.5873362 C47.0493827,59.5873362 48.3864198,59.010917 49.4185185,57.8580786 C50.4506173,56.7052402 50.9666667,55.1681223 50.9666667,53.2467249 L50.9666667,41.6462882 C50.9666667,39.2445415 51.3537037,37.371179 52.1277778,36.0262009 C52.9018519,34.6812227 54.1333333,33.7445415 55.8222222,33.2161572 L55.8222222,32.7838428 C54.1333333,32.2554585 52.9018519,31.3067686 52.1277778,29.9377729 C51.3537037,28.5687773 50.9666667,26.7074236 50.9666667,24.3537118 L50.9666667,12.7532751 C50.9666667,10.8318777 50.4506173,9.29475983 49.4185185,8.1419214 C48.3864198,6.98908297 47.0493827,6.41266376 45.4074074,6.41266376 L44,6.41266376 L44,0 L46.0407407,0 C49.7938272,0 52.7493827,1.12882096 54.9074074,3.38646288 C57.0654321,5.6441048 58.1444444,8.67030568 58.1444444,12.4650655 L58.1444444,24.3537118 C58.1444444,26.0829694 58.6018519,27.4159389 59.5166667,28.3526201 C60.4314815,29.2893013 61.5925926,29.7576419 63,29.7576419 L63,36.2423581 C61.5925926,36.2423581 60.4314815,36.7106987 59.5166667,37.6473799 C58.6018519,38.5840611 58.1444444,39.9170306 58.1444444,41.6462882 L58.1444444,53.5349345 C58.1444444,57.3296943 57.0654321,60.3558952 54.9074074,62.6135371 C52.7493827,64.871179 49.7938272,66 46.0407407,66 L44,66 L44,59.5873362 Z",id:"Path"})))),ki=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_line",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M88.1848681,33.1583406 C89.7542734,31.6035859 92.2869054,31.6154626 93.8416601,33.1848679 C95.3445896,34.7019597 95.3835892,37.1191334 93.9668812,38.6829968 L93.8151328,38.84166 L66.2578818,66.14166 C64.8378618,67.5484238 62.6084032,67.6843587 61.0319068,66.4919462 L60.8595019,66.3539866 L45.2420004,53.1430003 L21.844917,76.8176775 C20.3437446,78.336508 17.927116,78.4009733 16.3484126,77.0008213 L16.1881594,76.850753 C14.6693289,75.3495806 14.6048635,72.932952 16.0050156,71.3542486 L16.1550839,71.1939954 L42.1550839,44.8881592 C43.5729843,43.4535802 45.8262314,43.3057778 47.4155704,44.5116324 L47.583248,44.646014 L63.2290004,57.8810003 L88.1848681,33.1583406 Z",id:"Path-10",fill:"currentColor",fillRule:"nonzero"}))),Z0=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_link",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"link_black_24dp",transform:"translate(5.000000, 5.000000)"},f.createElement("path",{d:"M5,0 L96,0 C98.7614237,-5.07265313e-16 101,2.23857625 101,5 L101,96 C101,98.7614237 98.7614237,101 96,101 L5,101 C2.23857625,101 3.38176876e-16,98.7614237 0,96 L0,5 C-3.38176876e-16,2.23857625 2.23857625,5.07265313e-16 5,0 Z",id:"Path"}),f.createElement("path",{d:"M71,30 L58.4,30 C56.0804041,30 54.2,31.8804041 54.2,34.2 C54.2,36.5195959 56.0804041,38.4 58.4,38.4 L71,38.4 L71,38.4 C77.93,38.4 83.6,44.07 83.6,51 C83.6,57.93 77.93,63.6 71,63.6 L58.4,63.6 C56.0804041,63.6 54.2,65.4804041 54.2,67.8 C54.2,70.1195959 56.0804041,72 58.4,72 L71,72 L71,72 C82.592,72 92,62.592 92,51 C92,39.408 82.592,30 71,30 Z M41.6,63.6 L29,63.6 L29,63.6 C22.07,63.6 16.4,57.93 16.4,51 C16.4,44.07 22.07,38.4 29,38.4 L41.6,38.4 C43.9195959,38.4 45.8,36.5195959 45.8,34.2 C45.8,31.8804041 43.9195959,30 41.6,30 L29,30 L29,30 C17.408,30 8,39.408 8,51 C8,62.592 17.408,72 29,72 L41.6,72 C43.9195959,72 45.8,70.1195959 45.8,67.8 C45.8,65.4804041 43.9195959,63.6 41.6,63.6 Z M37.4,46.8 L62.6,46.8 C64.9195959,46.8 66.8,48.6804041 66.8,51 C66.8,53.3195959 64.9195959,55.2 62.6,55.2 L37.4,55.2 C35.0804041,55.2 33.2,53.3195959 33.2,51 C33.2,48.6804041 35.0804041,46.8 37.4,46.8 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"})))),sv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_list",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("rect",{id:"Rectangle-Copy-58",fill:"currentColor",x:24.1587742,y:27,width:61.9377906,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-61",fill:"currentColor",x:24.1587742,y:43,width:61.9377906,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-64",fill:"currentColor",x:24.1587742,y:59,width:62,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-65",fill:"currentColor",x:24.1587742,y:75.1904762,width:62,height:7.61904762,rx:3.80952381}))),iv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_list_detail",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("rect",{id:"Rectangle-Copy-58",fill:"currentColor",x:22.1587742,y:27,width:15.983946,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-59",fill:"currentColor",x:44.1587742,y:27,width:43.9558514,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-61",fill:"currentColor",x:22.1587742,y:43,width:15.983946,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-62",fill:"currentColor",x:44.1587742,y:43,width:43.9558514,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-64",fill:"currentColor",x:22.1587742,y:59,width:16,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-66",fill:"currentColor",x:44.1587742,y:59,width:44,height:8,rx:4}),f.createElement("rect",{id:"Rectangle-Copy-65",fill:"currentColor",x:22.1587742,y:75.1904762,width:16,height:7.61904762,rx:3.80952381}),f.createElement("rect",{id:"Rectangle-Copy-67",fill:"currentColor",x:44.1587742,y:75.1904762,width:44,height:7.61904762,rx:3.80952381}))),lv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_map_points",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group-Copy-36",transform:"translate(30.000000, 19.000000)",fill:"currentColor",fillRule:"nonzero"},f.createElement("path",{d:"M25,0 C11.1785714,0 0,11.268 0,25.2 C0,44.1 25,72 25,72 C25,72 50,44.1 50,25.2 C50,11.268 38.8214286,0 25,0 Z M7.14285714,25.2 C7.14285714,15.264 15.1428571,7.2 25,7.2 C34.8571429,7.2 42.8571429,15.264 42.8571429,25.2 C42.8571429,35.568 32.5714286,51.084 25,60.768 C17.5714286,51.156 7.14285714,35.46 7.14285714,25.2 Z",id:"Shape"}),f.createElement("path",{d:"M25,34 C29.97052,34 34,29.97052 34,25 C34,20.029444 29.97052,16 25,16 C20.02948,16 16,20.029444 16,25 C16,29.97052 20.02948,34 25,34 Z",id:"Path"})))),av=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_map_segment",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group-Copy-36",transform:"translate(11.000000, 27.000000)",fillRule:"nonzero"},f.createElement("path",{d:"M17,0 C7.60142857,0 0,7.6685 0,17.15 C0,30.0125 17,49 17,49 C17,49 34,30.0125 34,17.15 C34,7.6685 26.3985714,0 17,0 Z M4.85714286,17.15 C4.85714286,10.388 10.2971429,4.9 17,4.9 C23.7028571,4.9 29.1428571,10.388 29.1428571,17.15 C29.1428571,24.206 22.1485714,34.7655 17,41.356 C11.9485714,34.8145 4.85714286,24.1325 4.85714286,17.15 Z",id:"Shape",fill:"currentColor"}),f.createElement("path",{d:"M17,24 C20.31368,24 23,21.31368 23,18 C23,14.686296 20.31368,12 17,12 C13.68632,12 11,14.686296 11,18 C11,21.31368 13.68632,24 17,24 Z",id:"Path",fill:"currentColor"})),f.createElement("g",{id:"Group-Copy-37",transform:"translate(62.000000, 27.000000)",fillRule:"nonzero"},f.createElement("path",{d:"M17,0 C7.60142857,0 0,7.6685 0,17.15 C0,30.0125 17,49 17,49 C17,49 34,30.0125 34,17.15 C34,7.6685 26.3985714,0 17,0 Z M4.85714286,17.15 C4.85714286,10.388 10.2971429,4.9 17,4.9 C23.7028571,4.9 29.1428571,10.388 29.1428571,17.15 C29.1428571,24.206 22.1485714,34.7655 17,41.356 C11.9485714,34.8145 4.85714286,24.1325 4.85714286,17.15 Z",id:"Shape",fill:"currentColor"}),f.createElement("path",{d:"M17,24 C20.31368,24 23,21.31368 23,18 C23,14.686296 20.31368,12 17,12 C13.68632,12 11,14.686296 11,18 C11,21.31368 13.68632,24 17,24 Z",id:"Path",fill:"currentColor"})),f.createElement("line",{x1:28.5,y1:81.5,x2:79.5,y2:81.5,id:"Line-3",stroke:"currentColor",strokeWidth:5,strokeLinecap:"round",strokeDasharray:"5,10"}))),uv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_map_shape",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"noun-world-4667432-2",transform:"translate(19.000000, 19.000000)",fill:"currentColor",fillRule:"nonzero"},f.createElement("g",{id:"noun-world-4667432"},f.createElement("path",{d:"M36,5 C18.8798665,5 5,18.8793071 5,36 C5,53.1206929 18.8793071,67 36,67 C53.1206929,67 67,53.1206929 67,36 C67,18.8793071 53.1206929,5 36,5 Z M0,36 C0,16.1177143 16.1177143,0 36,0 C55.8822857,0 72,16.1177143 72,36 C72,55.8822857 55.8822857,72 36,72 C16.1177143,72 0,55.8822857 0,36 Z",id:"Shape"}),f.createElement("path",{d:"M37.2848685,1.50131372 C37.8999474,1.48477633 38.4631152,1.71654937 38.8767996,2.10376364 C39.2928262,2.49317029 39.5578301,3.03960333 39.57434,3.65023916 L39.57434,3.65023916 L40.0344656,20.7428771 C40.0487121,21.2893502 39.8586306,21.8212062 39.4992535,22.2375953 L39.4992535,22.2375953 L32.1172188,30.7832284 C31.7924232,31.1592888 31.3490374,31.4169308 30.8586892,31.5134813 L30.8586892,31.5134813 L24.6865498,32.7324332 L28.0628423,42.7359018 C28.4533111,43.8925701 28.4513039,45.0197005 28.1633304,46.0321806 C27.8503264,47.132665 27.1975708,48.0987342 26.3338575,48.8190181 C25.4716664,49.5380326 24.3999821,50.0114808 23.2508211,50.1317463 C22.1949716,50.2422462 21.0728206,50.0558305 19.9867908,49.4837618 L19.9867908,49.4837618 L1.68382097,39.8433672 C1.13885361,39.5565384 0.764084629,39.078393 0.597525292,38.5380041 C0.430427538,37.9958684 0.472619244,37.3906551 0.763987861,36.8508084 C1.05393693,36.3139129 1.53648052,35.9433066 2.08313472,35.7791188 C2.62798313,35.6154734 3.2361363,35.657153 3.77860632,35.9426925 L3.77860632,35.9426925 L22.0816454,45.5831236 C22.3171919,45.7071442 22.5603781,45.7498863 22.7897862,45.7258621 C23.0398735,45.6996723 23.2725259,45.5956093 23.4599703,45.4392842 C23.6458558,45.2842591 23.7880139,45.0772117 23.8554593,44.8399997 C23.9169381,44.6237728 23.9147045,44.383346 23.8314444,44.1367864 L23.8314444,44.1367864 L19.6527943,31.7569079 C19.4493668,31.1542234 19.517516,30.4944328 19.8403231,29.9450638 C20.1614725,29.3985413 20.7046793,29.014044 21.3323155,28.8900909 L21.3323155,28.8900909 L29.2286003,27.3302661 L35.5513871,20.0108413 L35.1144494,3.7686887 C35.0979491,3.15801867 35.3331708,2.59836837 35.7276711,2.18746751 C36.1199426,1.77888802 36.6699139,1.51752889 37.2848685,1.50131372 Z",id:"Path",stroke:"currentColor"}),f.createElement("path",{d:"M42.2538467,56.3169014 C42.834665,56.3169014 43.3919278,56.5473051 43.8025756,56.957964 L43.8025756,56.957964 L50.5634819,63.7190531 C50.990585,64.1465338 51.2042254,64.7070592 51.2042254,65.267637 C51.2042254,65.8282064 50.9905908,66.3887389 50.5631792,66.8165562 C50.1353619,67.244019 49.5748515,67.4577465 49.0143336,67.4577465 C48.453827,67.4577465 47.893307,67.2440267 47.4652769,66.8163886 L47.4652769,66.8163886 L41.3467145,60.697095 L29.639469,60.697095 L23.5207389,66.8165562 C23.0929158,67.2440249 22.5323953,67.4577465 21.9719658,67.4577465 C21.4114352,67.4577465 20.8509999,67.2439558 20.4235838,66.8165562 C19.995665,66.388992 19.7816901,65.8283383 19.7816901,65.2676696 C19.7816901,64.7070094 19.9956592,64.1463486 20.4234173,63.7189168 L20.4234173,63.7189168 L27.1839229,56.9576493 C27.5952192,56.5470739 28.1516855,56.3169014 28.7323368,56.3169014 L28.7323368,56.3169014 Z",id:"Path",stroke:"currentColor"}),f.createElement("path",{d:"M63.9378166,21.2379048 C64.4225216,20.8714311 65.0086399,20.7379975 65.5642349,20.8181856 C66.1191803,20.8982799 66.6440521,21.191578 67.006552,21.6798365 C67.3682973,22.1662502 67.5006358,22.75458 67.4216695,23.3126471 C67.3426278,23.8712474 67.0519787,24.3991735 66.5692317,24.7645164 L66.5692317,24.7645164 L53.5947929,34.5837331 L50.8571888,42.8725775 L63.4236834,55.5534973 C63.8498746,55.9835692 64.0634024,56.5474048 64.0634024,57.111468 C64.0634024,57.6755228 63.8498803,58.2393656 63.4235328,58.6696236 C62.9952729,59.1014133 62.434079,59.3169014 61.8731786,59.3169014 C61.3121772,59.3169014 60.7510686,59.1013441 60.3230649,58.6694716 L60.3230649,58.6694716 L46.8022881,45.0255804 C46.5094233,44.730049 46.31189,44.3642735 46.2203738,43.9732706 C46.1289585,43.5826987 46.1433461,43.1669732 46.2741073,42.7711741 L46.2741073,42.7711741 L49.6544877,32.5388634 C49.7943202,32.1133276 50.0607882,31.7409505 50.416846,31.4711161 L50.416846,31.4711161 Z",id:"Path",stroke:"currentColor"}))))),K0=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_number",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group",transform:"translate(20.000000, 20.000000)",fill:"currentColor"},f.createElement("path",{d:"M-10.5,30.5 L51.5,30.5 C53.709139,30.5 55.5,32.290861 55.5,34.5 L55.5,35.5 C55.5,37.709139 53.709139,39.5 51.5,39.5 L-10.5,39.5 C-12.709139,39.5 -14.5,37.709139 -14.5,35.5 L-14.5,34.5 C-14.5,32.290861 -12.709139,30.5 -10.5,30.5 Z",id:"Rectangle-Copy-60",transform:"translate(20.500000, 35.000000) rotate(-90.000000) translate(-20.500000, -35.000000) "}),f.createElement("path",{d:"M19.5,30.5 L81.5,30.5 C83.709139,30.5 85.5,32.290861 85.5,34.5 L85.5,35.5 C85.5,37.709139 83.709139,39.5 81.5,39.5 L19.5,39.5 C17.290861,39.5 15.5,37.709139 15.5,35.5 L15.5,34.5 C15.5,32.290861 17.290861,30.5 19.5,30.5 Z",id:"Rectangle-Copy-61",transform:"translate(50.500000, 35.000000) rotate(-90.000000) translate(-50.500000, -35.000000) "}),f.createElement("path",{d:"M4,14 L66,14 C68.209139,14 70,15.790861 70,18 L70,19 C70,21.209139 68.209139,23 66,23 L4,23 C1.790861,23 2.705415e-16,21.209139 0,19 L0,18 C-2.705415e-16,15.790861 1.790861,14 4,14 Z",id:"Rectangle-Copy-63",transform:"translate(35.000000, 18.500000) rotate(-360.000000) translate(-35.000000, -18.500000) "}),f.createElement("path",{d:"M4,44 L66,44 C68.209139,44 70,45.790861 70,48 L70,49 C70,51.209139 68.209139,53 66,53 L4,53 C1.790861,53 2.705415e-16,51.209139 0,49 L0,48 C-2.705415e-16,45.790861 1.790861,44 4,44 Z",id:"Rectangle-Copy-62",transform:"translate(35.000000, 48.500000) rotate(-360.000000) translate(-35.000000, -48.500000) "})))),cv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_percent",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"%-copy-5",transform:"translate(19.000000, 22.000000)",fill:"currentColor",fillRule:"nonzero"},f.createElement("path",{d:"M16.1194226,31.5251397 C19.1010499,31.5251397 21.8186789,30.8184358 24.2723097,29.4050279 C26.7259405,27.9916201 28.6671041,26.0712291 30.0958005,23.6438547 C31.5244969,21.2164804 32.2388451,18.5893855 32.2388451,15.7625698 C32.2388451,12.9357542 31.5244969,10.3086592 30.0958005,7.88128492 C28.6671041,5.45391061 26.7259405,3.53351955 24.2723097,2.12011173 C21.8186789,0.706703911 19.1010499,0 16.1194226,0 C13.1377953,0 10.4201662,0.706703911 7.96653543,2.12011173 C5.51290464,3.53351955 3.57174103,5.45391061 2.14304462,7.88128492 C0.714348206,10.3086592 0,12.9357542 0,15.7625698 C0,18.5893855 0.714348206,21.2164804 2.14304462,23.6438547 C3.57174103,26.0712291 5.51290464,27.9916201 7.96653543,29.4050279 C10.4201662,30.8184358 13.1377953,31.5251397 16.1194226,31.5251397 Z M19.9645575,62.4787112 L57.1929452,7.56550735 C58.3200259,5.90302296 57.8859954,3.64163362 56.223511,2.5145529 C56.2107419,2.50589603 56.1979177,2.49732049 56.1850394,2.48882682 C54.4804105,1.3645685 52.1887314,1.81914062 51.0422905,3.50893047 L13.7228276,58.5157377 C12.6107181,60.1549252 13.0379992,62.3852921 14.6771866,63.4974016 C14.7072768,63.5178164 14.7376757,63.5377723 14.7683727,63.5572626 C16.507245,64.6613129 18.8087263,64.1836036 19.9645575,62.4787112 Z M16.1194226,24.150838 C13.8832021,24.150838 12.0041557,23.3519553 10.4822835,21.7541899 C8.9604112,20.1564246 8.19947507,18.1592179 8.19947507,15.7625698 C8.19947507,13.3044693 8.9604112,11.2918994 10.4822835,9.72486034 C12.0041557,8.15782123 13.8832021,7.37430168 16.1194226,7.37430168 C18.4177603,7.37430168 20.3278653,8.15782123 21.8497375,9.72486034 C23.3716098,11.2918994 24.1325459,13.3044693 24.1325459,15.7625698 C24.1325459,18.2206704 23.3716098,20.2332402 21.8497375,21.8002793 C20.3278653,23.3673184 18.4177603,24.150838 16.1194226,24.150838 Z M54.8805774,66 C57.8622047,66 60.5798338,65.2932961 63.0334646,63.8798883 C65.4870954,62.4664804 67.428259,60.5460894 68.8569554,58.1187151 C70.2856518,55.6913408 71,53.0642458 71,50.2374302 C71,47.4106145 70.2856518,44.7835196 68.8569554,42.3561453 C67.428259,39.9287709 65.4870954,38.0083799 63.0334646,36.5949721 C60.5798338,35.1815642 57.8622047,34.4748603 54.8805774,34.4748603 C51.8989501,34.4748603 49.1813211,35.1815642 46.7276903,36.5949721 C44.2740595,38.0083799 42.3328959,39.9287709 40.9041995,42.3561453 C39.4755031,44.7835196 38.7611549,47.4106145 38.7611549,50.2374302 C38.7611549,53.0642458 39.4755031,55.6913408 40.9041995,58.1187151 C42.3328959,60.5460894 44.2740595,62.4664804 46.7276903,63.8798883 C49.1813211,65.2932961 51.8989501,66 54.8805774,66 Z M54.8805774,58.6256983 C52.644357,58.6256983 50.7653106,57.8268156 49.2434383,56.2290503 C47.7215661,54.6312849 46.9606299,52.6340782 46.9606299,50.2374302 C46.9606299,47.7793296 47.7215661,45.7667598 49.2434383,44.1997207 C50.7653106,42.6326816 52.644357,41.849162 54.8805774,41.849162 C57.1789151,41.849162 59.0890201,42.6326816 60.6108924,44.1997207 C62.1327647,45.7667598 62.8937008,47.7793296 62.8937008,50.2374302 C62.8937008,52.6340782 62.1172353,54.6312849 60.5643045,56.2290503 C59.0113736,57.8268156 57.1167979,58.6256983 54.8805774,58.6256983 Z",id:"%-copy-2"})))),dv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"5 5 100 100",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_scatter",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M29.1340462,83.93 C36.5885775,83.93 42.6340462,77.8857969 42.6340462,70.43 C42.6340462,62.9742031 36.5885775,56.93 29.1340462,56.93 C21.679515,56.93 15.6340462,62.9742031 15.6340462,70.43 C15.6340462,77.8857969 21.679515,83.93 29.1340462,83.93 Z",id:"Path-Copy-3",stroke:"#9aa0a6",className:"primarystroke",strokeWidth:7,fillRule:"nonzero"}),f.createElement("path",{d:"M68.2840462,92.63 C73.6709212,92.63 78.0340462,88.264925 78.0340462,82.88 C78.0340462,77.495075 73.6709212,73.13 68.2840462,73.13 C62.8971712,73.13 58.5340462,77.495075 58.5340462,82.88 C58.5340462,88.264925 62.8971712,92.63 68.2840462,92.63 Z",id:"Path-Copy-2",stroke:"#9aa0a6",className:"primarystroke",strokeWidth:7,fillRule:"nonzero",transform:"translate(68.284046, 82.880000) rotate(-360.000000) translate(-68.284046, -82.880000) "}),f.createElement("path",{d:"M67.8242963,57.43 C78.8701296,57.43 87.8242963,48.4758333 87.8242963,37.43 C87.8242963,26.3842917 78.8701296,17.43 67.8242963,17.43 C56.7784629,17.43 47.8242963,26.3842917 47.8242963,37.43 C47.8242963,48.4758333 56.7784629,57.43 67.8242963,57.43 Z",id:"Path-Copy",stroke:"#9aa0a6",className:"primarystroke",strokeWidth:7,fillRule:"nonzero"}))),fv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"0 0 110 110",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_sparkline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},f.createElement("polyline",{id:"Path-11",stroke:"#9aa0a6",strokeWidth:6,points:"10 54.8274509 25.9215088 61.0844803 40.1501567 54.8274509 53.3907166 68.7215958 69.5925598 42 83.3327332 64.4487228 100.431152 57.8274509"}))),pv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_table",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M81.0526316,23 L28.9473684,23 C25.1263158,23 22,26.1662162 22,30.036036 L22,79.2882883 C22,83.1581081 25.1263158,86.3243243 28.9473684,86.3243243 L81.0526316,86.3243243 C84.8736842,86.3243243 88,83.1581081 88,79.2882883 L88,30.036036 C88,26.1662162 84.8736842,23 81.0526316,23 Z M80.8648649,30.1351351 L80.8648649,40.8378378 L28.2432432,40.8378378 L28.2432432,30.1351351 L80.8648649,30.1351351 Z M63.9189189,79.1891892 L46.0810811,79.1891892 L46.0810811,47.972973 L63.9189189,47.972973 L63.9189189,79.1891892 Z M28.2432432,47.972973 L38.9459459,47.972973 L38.9459459,79.1891892 L28.2432432,79.1891892 L28.2432432,47.972973 Z M71.0540541,79.1891892 L71.0540541,47.972973 L81.7567568,47.972973 L81.7567568,79.1891892 L71.0540541,79.1891892 Z",id:"Shape",fill:"currentColor",fillRule:"nonzero"}))),mv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"10 10 90 90",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_text",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("rect",{id:"Rectangle-Copy",stroke:"currentColor",strokeWidth:6,x:15.5,y:35,width:79,height:40,rx:5}),f.createElement("g",{id:"abc",transform:"translate(33.090000, 44.134000)",fill:"currentColor",fillRule:"nonzero"},f.createElement("path",{d:"M4.81,19.032 C3.406,19.032 2.25333333,18.6203333 1.352,17.797 C0.450666667,16.9736667 0,15.8946667 0,14.56 C0,13.676 0.234,12.896 0.702,12.22 C1.17,11.544 1.81133333,11.024 2.626,10.66 C3.44066667,10.296 4.342,10.114 5.33,10.114 C6.69933333,10.114 7.86933333,10.3133333 8.84,10.712 L8.84,10.14 C8.84,9.412 8.567,8.82266667 8.021,8.372 C7.475,7.92133333 6.74266667,7.696 5.824,7.696 C5.2,7.696 4.59766667,7.839 4.017,8.125 C3.43633333,8.411 2.95533333,8.788 2.574,9.256 L0.39,7.54 C1.03133333,6.708 1.83733333,6.06666667 2.808,5.616 C3.77866667,5.16533333 4.836,4.94 5.98,4.94 C8.008,4.94 9.55066667,5.408 10.608,6.344 C11.6653333,7.28 12.194,8.64933333 12.194,10.452 L12.194,18.616 L8.84,18.616 L8.84,17.264 L8.632,17.264 C8.23333333,17.784 7.709,18.2086667 7.059,18.538 C6.409,18.8673333 5.65933333,19.032 4.81,19.032 Z M5.616,16.38 C6.604,16.38 7.38833333,16.0636667 7.969,15.431 C8.54966667,14.7983333 8.84,14.0573333 8.84,13.208 C7.956,12.792 7.02866667,12.584 6.058,12.584 C4.29,12.584 3.406,13.2426667 3.406,14.56 C3.406,15.0973333 3.59666667,15.535 3.978,15.873 C4.35933333,16.211 4.90533333,16.38 5.616,16.38 Z",id:"Shape"}),f.createElement("path",{d:"M22.724,19.032 C21.8226667,19.032 21.021,18.8413333 20.319,18.46 C19.617,18.0786667 19.0926667,17.602 18.746,17.03 L18.538,17.03 L18.538,18.616 L15.34,18.616 L15.34,0 L18.746,0 L18.746,5.096 L18.538,6.968 L18.746,6.968 C19.11,6.396 19.6386667,5.915 20.332,5.525 C21.0253333,5.135 21.8226667,4.94 22.724,4.94 C23.92,4.94 25.0076667,5.239 25.987,5.837 C26.9663333,6.435 27.7333333,7.27133333 28.288,8.346 C28.8426667,9.42066667 29.12,10.634 29.12,11.986 C29.12,13.3553333 28.8426667,14.573 28.288,15.639 C27.7333333,16.705 26.9663333,17.537 25.987,18.135 C25.0076667,18.733 23.92,19.032 22.724,19.032 Z M22.126,15.886 C22.7673333,15.886 23.3653333,15.7213333 23.92,15.392 C24.4746667,15.0626667 24.9166667,14.6033333 25.246,14.014 C25.5753333,13.4246667 25.74,12.7486667 25.74,11.986 C25.74,11.2233333 25.5753333,10.5473333 25.246,9.958 C24.9166667,9.36866667 24.4746667,8.91366667 23.92,8.593 C23.3653333,8.27233333 22.7673333,8.112 22.126,8.112 C21.502,8.112 20.9126667,8.27233333 20.358,8.593 C19.8033333,8.91366667 19.3613333,9.36866667 19.032,9.958 C18.7026667,10.5473333 18.538,11.2233333 18.538,11.986 C18.538,12.7486667 18.7026667,13.4246667 19.032,14.014 C19.3613333,14.6033333 19.8033333,15.0626667 20.358,15.392 C20.9126667,15.7213333 21.502,15.886 22.126,15.886 Z",id:"Shape"}),f.createElement("path",{d:"M37.986,19.032 C36.6513333,19.032 35.4553333,18.733 34.398,18.135 C33.3406667,17.537 32.513,16.7006667 31.915,15.626 C31.317,14.5513333 31.018,13.338 31.018,11.986 C31.018,10.634 31.317,9.425 31.915,8.359 C32.513,7.293 33.3406667,6.45666667 34.398,5.85 C35.4553333,5.24333333 36.6513333,4.94 37.986,4.94 C39.4593333,4.94 40.7246667,5.25633333 41.782,5.889 C42.8393333,6.52166667 43.602,7.41866667 44.07,8.58 L40.95,9.88 C40.3953333,8.70133333 39.4073333,8.112 37.986,8.112 C36.946,8.112 36.0923333,8.46733333 35.425,9.178 C34.7576667,9.88866667 34.424,10.8246667 34.424,11.986 C34.424,13.1646667 34.7576667,14.1093333 35.425,14.82 C36.0923333,15.5306667 36.946,15.886 37.986,15.886 C39.4246667,15.886 40.4646667,15.262 41.106,14.014 L44.2,15.366 C43.628,16.5273333 42.8133333,17.4286667 41.756,18.07 C40.6986667,18.7113333 39.442,19.032 37.986,19.032 Z",id:"Path"})))),hv=e=>f.createElement("svg",{width:"110px",height:"110px",viewBox:"15 15 80 80",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},f.createElement("g",{id:"viz_time",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},f.createElement("g",{id:"Group-Copy-19",transform:"translate(51.307692, 36.538462)",fill:"currentColor",fillRule:"nonzero"},f.createElement("polygon",{id:"Path",points:"5.30769231 0 0 0 0 21.7906683 18.5769231 33.2307692 21.2307692 28.7636822 5.30769231 19.0668348"})),f.createElement("circle",{id:"Oval",stroke:"currentColor",strokeWidth:7,cx:55,cy:55,r:32.5}))),gv=e=>f.createElement("svg",{height:56,viewBox:"0 0 56 56",width:56,xmlns:"http://www.w3.org/2000/svg",...e},f.createElement("path",{fill:"currentColor",d:"m23.957 41.7695c3.8906 0 7.5234-1.2656 10.4766-3.375l11.1093 11.1094c.5156.5156 1.1953.7735 1.8985.7735 1.5234 0 2.625-1.1719 2.625-2.6719 0-.7032-.2342-1.3594-.7502-1.875l-11.0389-11.0626c2.3203-3.0468 3.7031-6.8203 3.7031-10.9218 0-9.9141-8.1094-18.0235-18.0234-18.0235-9.9375 0-18.0234 8.1094-18.0234 18.0235 0 9.914 8.0859 18.0234 18.0234 18.0234zm0-3.8906c-7.7578 0-14.1328-6.3984-14.1328-14.1328s6.375-14.1328 14.1328-14.1328c7.7344 0 14.1328 6.3984 14.1328 14.1328s-6.3984 14.1328-14.1328 14.1328z"})),xv={chevronDown:g5,chevronLeft:x5,chevronRight:y5,clear:vm,meatballs:z5,play:q5,copy:b5,checkmark:v5,radioChecked:W5,radioUnchecked:G5,warning:U5,check_circle:Y5,gear:H5,info:V5,error:X5,refresh:Z5,sidebarCollapse:K5,filterSliders:Q5,aggregate:C5,dimension:V0,filter:_5,groupBy:S5,insert:w5,limit:k5,orderBy:R5,measure:H0,nest:E5,array:N5,boolean:M5,database:D5,date:I5,json:O5,number:P5,query:F5,search:gv,sql_native:$5,string:V0,view:L5,view_filled:B5,many_to_one:A5,one_to_many:T5,one_to_one:j5,viz_bar_chart:X0,viz_bar:X0,viz_boolean:J5,viz_bytes:K0,viz_cartesian_chart:ki,viz_column_chart:ev,viz_currency:tv,viz_dashboard:nv,viz_image:rv,viz_json:ov,viz_line_chart:ki,viz_line:ki,viz_link:Z0,viz_list:sv,viz_list_detail:iv,viz_point_map:lv,viz_segment_map:av,viz_shape_map:uv,viz_number:K0,viz_percent:cv,viz_scatter_chart:dv,viz_single_value:H0,viz_sparkline:fv,viz_table:pv,viz_text:mv,viz_time:hv,viz_url:Z0,viz_vega:ki};function ie({name:e,color:t="primary",customStyle:r}){const o=xv[e];return o?d.jsx(o,{...A.props(yv.main,vv[t],r),"data-testid":`icon-${t}-${e}`}):null}const yv={main:{display:"mly1rg5ohu",width:"mly1kky2od",height:"mlylup9mm",overflow:"mly1rea2x4",overflowX:null,overflowY:null,$$css:!0}},vv={primary:{color:"mly1p68tcb",$$css:!0},secondary:{color:"mly1r0d382",$$css:!0},disabled:{color:"mly16un6j3",$$css:!0},primaryOnMedia:{color:"mly1kiansi",$$css:!0},gray:{color:"mlyann5r3",$$css:!0},purple:{color:"mly1ywypuw",$$css:!0},green:{color:"mly1evcnq1",$$css:!0},cyan:{color:"mly1h091fy",$$css:!0},info:{color:"mly1tw9ct1",$$css:!0},warning:{color:"mly7neac5",$$css:!0},positive:{color:"mly1l99qkd",$$css:!0},negative:{color:"mly109d434",$$css:!0}},bv="gray";function er({label:e,color:t=bv,icon:r,customStyle:o}){return d.jsxs("div",{...A.props(Q0.main,wv[t],o),children:[r&&d.jsx(ie,{color:t,name:r}),d.jsx("div",{"data-testid":"badge-label",...A.props(Y.badge,Q0.label),children:e})]})}const Q0={main:{display:"mly3nfvp2",height:"mly1qx5ct2",minWidth:"mlyt4ypqs",padding:"mlyxzb6uj",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,justifyContent:"mlyl56j7k",alignItems:"mly6s0dn4",gap:"mly1jnr06f",rowGap:null,columnGap:null,flexShrink:"mly2lah0s",borderRadius:"mly10hpsqq",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,background:"mlysu8s4a",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0},label:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textAlign:"mly2b8uid",leadingTrim:"mly11e9jwx",textEdge:"mly1vqy1sf",textOverflow:"mlylyipyv",color:"mly1ard1hs",$$css:!0}},wv={gray:{"--mly10mhzaa":"mly1rve117","--mly1ojyoay":"mlybcavtu",$$css:!0},purple:{"--mly10mhzaa":"mlyihc5ie","--mly1ojyoay":"mlywis56f",$$css:!0},green:{"--mly10mhzaa":"mly10cf5cp","--mly1ojyoay":"mlyy280wj",$$css:!0},cyan:{"--mly10mhzaa":"mlykvi9ht","--mly1ojyoay":"mly1eg6ybj",$$css:!0}},Cv="horizontal";function lo({orientation:e=Cv,customStyle:t}){return d.jsx("div",{...A.props(_v.main,Sv[e],t)})}const _v={main:{background:"mly1xnbgy5",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0}},Sv={horizontal:{height:"mlyjm9jq1",width:"mlyh8yej3",$$css:!0},vertical:{height:"mlypyat2d",width:"mly1i1rx1s",$$css:!0}};function kv({children:e}){return d.jsx("div",{className:"mly78zum5 mlydt5ytf mly167g77z",children:f.Children.map(e,t=>t)})}var Ev=f.createContext(void 0);function Xs(e){const t=f.useContext(Ev);return e||t||"ltr"}function Du(e,[t,r]){return Math.min(r,Math.max(t,e))}function Rv(e,t){return f.useReducer((r,o)=>t[r][o]??r,e)}var Oc="ScrollArea",[bm,JD]=Kt(Oc),[Av,Lt]=bm(Oc),wm=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:o="hover",dir:s,scrollHideDelay:i=600,...l}=e,[a,u]=f.useState(null),[c,p]=f.useState(null),[m,g]=f.useState(null),[h,x]=f.useState(null),[v,y]=f.useState(null),[b,w]=f.useState(0),[C,_]=f.useState(0),[k,E]=f.useState(!1),[R,j]=f.useState(!1),D=ae(t,B=>u(B)),I=Xs(s);return d.jsx(Av,{scope:r,type:o,dir:I,scrollHideDelay:i,scrollArea:a,viewport:c,onViewportChange:p,content:m,onContentChange:g,scrollbarX:h,onScrollbarXChange:x,scrollbarXEnabled:k,onScrollbarXEnabledChange:E,scrollbarY:v,onScrollbarYChange:y,scrollbarYEnabled:R,onScrollbarYEnabledChange:j,onCornerWidthChange:w,onCornerHeightChange:_,children:d.jsx(ee.div,{dir:I,...l,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":C+"px",...e.style}})})});wm.displayName=Oc;var Cm="ScrollAreaViewport",_m=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:o,nonce:s,...i}=e,l=Lt(Cm,r),a=f.useRef(null),u=ae(t,a,l.onViewportChange);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),d.jsx(ee.div,{"data-radix-scroll-area-viewport":"",...i,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:d.jsx("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});_m.displayName=Cm;var hn="ScrollAreaScrollbar",Sm=f.forwardRef((e,t)=>{const{forceMount:r,...o}=e,s=Lt(hn,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=s,a=e.orientation==="horizontal";return f.useEffect(()=>(a?i(!0):l(!0),()=>{a?i(!1):l(!1)}),[a,i,l]),s.type==="hover"?d.jsx(Tv,{...o,ref:t,forceMount:r}):s.type==="scroll"?d.jsx(jv,{...o,ref:t,forceMount:r}):s.type==="auto"?d.jsx(km,{...o,ref:t,forceMount:r}):s.type==="always"?d.jsx(Pc,{...o,ref:t}):null});Sm.displayName=hn;var Tv=f.forwardRef((e,t)=>{const{forceMount:r,...o}=e,s=Lt(hn,e.__scopeScrollArea),[i,l]=f.useState(!1);return f.useEffect(()=>{const a=s.scrollArea;let u=0;if(a){const c=()=>{window.clearTimeout(u),l(!0)},p=()=>{u=window.setTimeout(()=>l(!1),s.scrollHideDelay)};return a.addEventListener("pointerenter",c),a.addEventListener("pointerleave",p),()=>{window.clearTimeout(u),a.removeEventListener("pointerenter",c),a.removeEventListener("pointerleave",p)}}},[s.scrollArea,s.scrollHideDelay]),d.jsx(Qe,{present:r||i,children:d.jsx(km,{"data-state":i?"visible":"hidden",...o,ref:t})})}),jv=f.forwardRef((e,t)=>{const{forceMount:r,...o}=e,s=Lt(hn,e.__scopeScrollArea),i=e.orientation==="horizontal",l=Zl(()=>u("SCROLL_END"),100),[a,u]=Rv("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return f.useEffect(()=>{if(a==="idle"){const c=window.setTimeout(()=>u("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(c)}},[a,s.scrollHideDelay,u]),f.useEffect(()=>{const c=s.viewport,p=i?"scrollLeft":"scrollTop";if(c){let m=c[p];const g=()=>{const h=c[p];m!==h&&(u("SCROLL"),l()),m=h};return c.addEventListener("scroll",g),()=>c.removeEventListener("scroll",g)}},[s.viewport,i,u,l]),d.jsx(Qe,{present:r||a!=="hidden",children:d.jsx(Pc,{"data-state":a==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:q(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:q(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),km=f.forwardRef((e,t)=>{const r=Lt(hn,e.__scopeScrollArea),{forceMount:o,...s}=e,[i,l]=f.useState(!1),a=e.orientation==="horizontal",u=Zl(()=>{if(r.viewport){const c=r.viewport.offsetWidth<r.viewport.scrollWidth,p=r.viewport.offsetHeight<r.viewport.scrollHeight;l(a?c:p)}},10);return yo(r.viewport,u),yo(r.content,u),d.jsx(Qe,{present:o||i,children:d.jsx(Pc,{"data-state":i?"visible":"hidden",...s,ref:t})})}),Pc=f.forwardRef((e,t)=>{const{orientation:r="vertical",...o}=e,s=Lt(hn,e.__scopeScrollArea),i=f.useRef(null),l=f.useRef(0),[a,u]=f.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=jm(a.viewport,a.content),p={...o,sizes:a,onSizesChange:u,hasThumb:c>0&&c<1,onThumbChange:g=>i.current=g,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:g=>l.current=g};function m(g,h){return Ov(g,l.current,a,h)}return r==="horizontal"?d.jsx(Dv,{...p,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const g=s.viewport.scrollLeft,h=J0(g,a,s.dir);i.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:g=>{s.viewport&&(s.viewport.scrollLeft=g)},onDragScroll:g=>{s.viewport&&(s.viewport.scrollLeft=m(g,s.dir))}}):r==="vertical"?d.jsx(Lv,{...p,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const g=s.viewport.scrollTop,h=J0(g,a);i.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:g=>{s.viewport&&(s.viewport.scrollTop=g)},onDragScroll:g=>{s.viewport&&(s.viewport.scrollTop=m(g))}}):null}),Dv=f.forwardRef((e,t)=>{const{sizes:r,onSizesChange:o,...s}=e,i=Lt(hn,e.__scopeScrollArea),[l,a]=f.useState(),u=f.useRef(null),c=ae(t,u,i.onScrollbarXChange);return f.useEffect(()=>{u.current&&a(getComputedStyle(u.current))},[u]),d.jsx(Rm,{"data-orientation":"horizontal",...s,ref:c,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Xl(r)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,m)=>{if(i.viewport){const g=i.viewport.scrollLeft+p.deltaX;e.onWheelScroll(g),Lm(g,m)&&p.preventDefault()}},onResize:()=>{u.current&&i.viewport&&l&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:dl(l.paddingLeft),paddingEnd:dl(l.paddingRight)}})}})}),Lv=f.forwardRef((e,t)=>{const{sizes:r,onSizesChange:o,...s}=e,i=Lt(hn,e.__scopeScrollArea),[l,a]=f.useState(),u=f.useRef(null),c=ae(t,u,i.onScrollbarYChange);return f.useEffect(()=>{u.current&&a(getComputedStyle(u.current))},[u]),d.jsx(Rm,{"data-orientation":"vertical",...s,ref:c,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Xl(r)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,m)=>{if(i.viewport){const g=i.viewport.scrollTop+p.deltaY;e.onWheelScroll(g),Lm(g,m)&&p.preventDefault()}},onResize:()=>{u.current&&i.viewport&&l&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:dl(l.paddingTop),paddingEnd:dl(l.paddingBottom)}})}})}),[Nv,Em]=bm(hn),Rm=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:o,hasThumb:s,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:a,onThumbPositionChange:u,onDragScroll:c,onWheelScroll:p,onResize:m,...g}=e,h=Lt(hn,r),[x,v]=f.useState(null),y=ae(t,D=>v(D)),b=f.useRef(null),w=f.useRef(""),C=h.viewport,_=o.content-o.viewport,k=Ye(p),E=Ye(u),R=Zl(m,10);function j(D){if(b.current){const I=D.clientX-b.current.left,B=D.clientY-b.current.top;c({x:I,y:B})}}return f.useEffect(()=>{const D=I=>{const B=I.target;x?.contains(B)&&k(I,_)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[C,x,_,k]),f.useEffect(E,[o,E]),yo(x,R),yo(h.content,R),d.jsx(Nv,{scope:r,scrollbar:x,hasThumb:s,onThumbChange:Ye(i),onThumbPointerUp:Ye(l),onThumbPositionChange:E,onThumbPointerDown:Ye(a),children:d.jsx(ee.div,{...g,ref:y,style:{position:"absolute",...g.style},onPointerDown:q(e.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),b.current=x.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),j(D))}),onPointerMove:q(e.onPointerMove,j),onPointerUp:q(e.onPointerUp,D=>{const I=D.target;I.hasPointerCapture(D.pointerId)&&I.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=w.current,h.viewport&&(h.viewport.style.scrollBehavior=""),b.current=null})})})}),cl="ScrollAreaThumb",Am=f.forwardRef((e,t)=>{const{forceMount:r,...o}=e,s=Em(cl,e.__scopeScrollArea);return d.jsx(Qe,{present:r||s.hasThumb,children:d.jsx(Mv,{ref:t,...o})})}),Mv=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:o,...s}=e,i=Lt(cl,r),l=Em(cl,r),{onThumbPositionChange:a}=l,u=ae(t,m=>l.onThumbChange(m)),c=f.useRef(void 0),p=Zl(()=>{c.current&&(c.current(),c.current=void 0)},100);return f.useEffect(()=>{const m=i.viewport;if(m){const g=()=>{if(p(),!c.current){const h=Pv(m,a);c.current=h,a()}};return a(),m.addEventListener("scroll",g),()=>m.removeEventListener("scroll",g)}},[i.viewport,p,a]),d.jsx(ee.div,{"data-state":l.hasThumb?"visible":"hidden",...s,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:q(e.onPointerDownCapture,m=>{const h=m.target.getBoundingClientRect(),x=m.clientX-h.left,v=m.clientY-h.top;l.onThumbPointerDown({x,y:v})}),onPointerUp:q(e.onPointerUp,l.onThumbPointerUp)})});Am.displayName=cl;var Fc="ScrollAreaCorner",Tm=f.forwardRef((e,t)=>{const r=Lt(Fc,e.__scopeScrollArea),o=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&o?d.jsx(Iv,{...e,ref:t}):null});Tm.displayName=Fc;var Iv=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,...o}=e,s=Lt(Fc,r),[i,l]=f.useState(0),[a,u]=f.useState(0),c=!!(i&&a);return yo(s.scrollbarX,()=>{var p;const m=((p=s.scrollbarX)==null?void 0:p.offsetHeight)||0;s.onCornerHeightChange(m),u(m)}),yo(s.scrollbarY,()=>{var p;const m=((p=s.scrollbarY)==null?void 0:p.offsetWidth)||0;s.onCornerWidthChange(m),l(m)}),c?d.jsx(ee.div,{...o,ref:t,style:{width:i,height:a,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function dl(e){return e?parseInt(e,10):0}function jm(e,t){const r=e/t;return isNaN(r)?0:r}function Xl(e){const t=jm(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-r)*t;return Math.max(o,18)}function Ov(e,t,r,o="ltr"){const s=Xl(r),i=s/2,l=t||i,a=s-l,u=r.scrollbar.paddingStart+l,c=r.scrollbar.size-r.scrollbar.paddingEnd-a,p=r.content-r.viewport,m=o==="ltr"?[0,p]:[p*-1,0];return Dm([u,c],m)(e)}function J0(e,t,r="ltr"){const o=Xl(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-s,l=t.content-t.viewport,a=i-o,u=r==="ltr"?[0,l]:[l*-1,0],c=Du(e,u);return Dm([0,l],[0,a])(c)}function Dm(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(r-e[0])}}function Lm(e,t){return e>0&&e<t}var Pv=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},o=0;return(function s(){const i={left:e.scrollLeft,top:e.scrollTop},l=r.left!==i.left,a=r.top!==i.top;(l||a)&&t(),r=i,o=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(o)};function Zl(e,t){const r=Ye(e),o=f.useRef(0);return f.useEffect(()=>()=>window.clearTimeout(o.current),[]),f.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,t)},[r,t])}function yo(e,t){const r=Ye(t);lt(()=>{let o=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(r)});return s.observe(e),()=>{window.cancelAnimationFrame(o),s.unobserve(e)}}},[e,r])}var Fv=wm,Bv=_m,ef=Sm,tf=Am,$v=Tm;function Bc({children:e}){return d.jsxs(Fv,{className:"mlyh8yej3 mly5yr21d mlyb3r6kr mly1bo1i26 mly1fzkygm mlynu5hmx mly1u5txqc",children:[d.jsx(Bv,{className:"mlyh8yej3 mly5yr21d mly1pjcqnp",children:f.Children.map(e,t=>t)}),d.jsx(ef,{className:"mly78zum5 mly3j5mvw mly15sj6ns mly14znju7 mlyehqz9p mly1xc55vz",orientation:"vertical",children:d.jsx(tf,{className:"mly98rzlu mly1o4sr5b mly12oqio5"})}),d.jsx(ef,{className:"mly78zum5 mly3j5mvw mly15sj6ns mly14znju7 mlydt5ytf mlyztvwtv mlydk7pt",orientation:"horizontal",children:d.jsx(tf,{className:"mly98rzlu mly1o4sr5b mly12oqio5"})}),d.jsx($v,{className:"mly3j5mvw mly1d3ksz1 mly14znju7"})]})}const zv="default",qv="default";function ke({variant:e=zv,size:t=qv,icon:r,label:o,tooltip:s,isDisabled:i=!1,customStyle:l,...a}){const u=d.jsxs("button",{...A.props($a.main,Wv[e],Gv[t],l),type:"button",disabled:i,...a,children:[d.jsxs("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4 mly167g77z",children:[r&&d.jsx(ie,{name:r,customStyle:$a.icon}),o&&d.jsx("div",{...A.props(e==="primary"?Y.emphasized:Y.body,$a.label),children:o})]}),i&&d.jsx("div",{className:"mly10l6tqk mlyu96u03 mly3m8u43 mlyzy8d55 mly47corl mlyur7f20 mlyh8yej3 mly5yr21d"})]});return s?d.jsxs(jo,{delayDuration:300,children:[d.jsx(Do,{asChild:!0,children:u}),d.jsx(Lo,{children:d.jsx(No,{sideOffset:8,...A.props(Y.body,Pn.default),children:s})})]}):u}const $a={main:{display:"mly3nfvp2",flexDirection:"mlydt5ytf",justifyContent:"mlyl56j7k",alignItems:"mly6s0dn4",position:"mly1n2onr6",gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderWidth:"mlyc342km",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,cursor:"mly1ypdohk mly1s07b3s",flexShrink:"mly2lah0s",userSelect:"mly87ps6o",$$css:!0},icon:{color:"mlyuk6yi3",$$css:!0},label:{color:"mlyaerthn",whiteSpace:"mlyuxw1ft",$$css:!0}},Wv={default:{background:"mlygqa5hp mly1uceoyp mly1cncicd",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,"--mlyxo3nik":"mlypfd894 mlyiv1q3g","--mly1hpdckv":"mly5xbp4t mly1iu3zmn",$$css:!0},flat:{background:"mly1md70p1 mly14hn1a8 mlywghvya",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,"--mlyxo3nik":"mlypfd894 mlyiv1q3g","--mly1hpdckv":"mly5xbp4t mly1iu3zmn",$$css:!0},primary:{background:"mlyhcrij8 mly1vdl2d1 mly1u4cpcs",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,"--mlyxo3nik":"mly1n5rdk7 mly1dsjhx","--mly1hpdckv":"mly3mt86g mly13vk70h",$$css:!0}},Gv={default:{height:"mlyc9qbxq",padding:"mly153ncpu",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},compact:{height:"mly1fgtraw",padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}},sr={main:{display:"mlywz0xwf",gridAutoFlow:"mly1mt1orb",alignItems:"mly6s0dn4",justifyContent:"mlyl56j7k",gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderWidth:"mlyc342km",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,cursor:"mly1ypdohk",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,background:"mly1np9qvj mly1uceoyp",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,position:"mly1n2onr6",$$css:!0},icon:{color:"mlywn9h7t",$$css:!0},label:{color:"mly1xre2ib",textOverflow:"mlylyipyv",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,whiteSpace:"mlyuxw1ft",$$css:!0}},$c={default:{"--mlyvygx4q":"mly1izbou4","--mly13n7235":"mly8bgh0r",$$css:!0},purple:{"--mlyvygx4q":"mly1f8soc4","--mly13n7235":"mly1r5zvhd",$$css:!0},green:{"--mlyvygx4q":"mlyf8wvcd","--mly13n7235":"mly1u6t2w6",$$css:!0},cyan:{"--mlyvygx4q":"mlyrtwgpv","--mly13n7235":"mlys5r2en",$$css:!0}},zc={default:{padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},compact:{padding:"mlyxzb6uj",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}},Fo="default",qc="default";function Be({label:e,icon:t,color:r=Fo,size:o=qc,onClick:s,onHover:i,asButtonTrigger:l=!1,tooltip:a,tooltipProps:u,customStyle:c,dragProps:p,...m}){const g=s!==void 0||l,h=d.jsxs("div",{...A.props(sr.main,$c[r],zc[o],!g&&Uv.nonInteractive,c),...p?.attributes,...p?.listeners,children:[t&&d.jsx(ie,{name:t,customStyle:sr.icon}),g&&d.jsx("button",{className:"mlyh8yej3 mly5yr21d mly10l6tqk mly13vifvy mlyu96u03 mly1md70p1 mlyng3xce mly1ypdohk",...s&&{onClick:s},...i&&{onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1)},...m}),e&&d.jsx("div",{...A.props(Y.body,sr.label),children:e})]});return a?d.jsxs(Mo,{delayDuration:300,children:[d.jsx(Io,{asChild:!0,children:h}),d.jsx(Oo,{children:d.jsx(Po,{...u,...A.props(Y.tooltipText,typeof a=="string"?Pn.default:Pn.card),children:a})})]}):h}const Uv={nonInteractive:{cursor:"mlyt0e3qv",background:"mly1np9qvj",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0}};function Zs({children:e,color:t=Fo,customStyle:r}){const o=f.Children.count(e);return d.jsx("div",{...A.props(cs.main,r),children:f.Children.map(e,(s,i)=>f.cloneElement(s,{customStyle:{...s.props.customStyle,...Yv(i,o)},color:Hv(s,t)}))})}const Yv=(e,t)=>t===1?cs.onlyChild:e===0?cs.firstChild:e===t-1?cs.lastChild:cs.innerChild,Hv=(e,t)=>{const r=e.props.color;return r===void 0?t:r},cs={main:{display:"mlyrvj5dj",gridAutoFlow:"mly1mt1orb",alignItems:"mly6s0dn4",gap:"mly12mrbbr",rowGap:null,columnGap:null,$$css:!0},firstChild:{borderRadius:"mlytah5vv",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},innerChild:{borderRadius:null,borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},lastChild:{borderRadius:"mly19ctu66",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},onlyChild:{borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0}};function Kl({errorMessage:e}){return d.jsxs(jo,{delayDuration:0,children:[d.jsx(Do,{asChild:!0,children:d.jsx("div",{className:"mlygd8bvy mly1fgtraw mly78zum5 mly6s0dn4 mlyl56j7k",children:d.jsx(ie,{name:"warning",customStyle:Vv.errorIcon})})}),d.jsx(Lo,{children:d.jsx(No,{children:d.jsx("div",{...A.props(Y.body,Pn.default),children:e})})})]})}const Vv={errorIcon:{color:"mly1e2nbdu",$$css:!0}};function Lu({value:e,onChange:t,onRemove:r,icon:o,color:s=Fo,size:i=qc,customStyle:l,type:a,errorMessage:u}){const[c,p]=f.useState(!1),m=f.useRef(null),g=f.useRef(null),h=({target:y})=>{t(a==="number"?parseFloat(y.value||"0"):y.value)},x=()=>{p(!0)},v=y=>{var b;g.current==null||y.relatedTarget!==g.current?p(!1):(b=m.current)==null||b.focus()};return d.jsxs("div",{className:"mly78zum5 mly6s0dn4",children:[d.jsxs("div",{...A.props(sr.main,$c[s],zc[i],c&&ns.focused,!!u&&ns.hasError,l),children:[o&&d.jsx(ie,{name:o,customStyle:ns.icon}),d.jsxs("span",{className:"mlywz0xwf",children:[d.jsx("span",{...A.props(Y.body,ns.placeholder),style:{whiteSpaceCollapse:"preserve"},children:e}),d.jsx("input",{...A.props(ns.input,Y.body),ref:m,pattern:a==="number"?"^-?[0-9.]*$":void 0,value:e,onChange:h,onFocus:x,onBlur:v,size:1})]}),r&&c&&d.jsx("button",{className:"mly3nfvp2 mlyc342km mly1md70p1 mly1717udv mly1ypdohk",ref:g,onClick:r,tabIndex:0,children:d.jsx(ie,{name:"clear"})})]}),u&&d.jsx(Kl,{errorMessage:u})]})}const ns={focused:{background:"mlyotlr4g",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,boxShadow:"mlyn8fsvk",$$css:!0},hasError:{border:"mly1dc9p4k",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},icon:{color:"mlywn9h7t",$$css:!0},placeholder:{background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,color:"mly19co3pv",gridArea:"mly15r89dc",gridRow:null,gridRowStart:null,gridRowEnd:null,gridColumn:null,gridColumnStart:null,gridColumnEnd:null,whiteSpace:"mlyuxw1ft",minWidth:"mlygc0pbm",$$css:!0},input:{color:"mly1xre2ib",gridArea:"mly15r89dc",gridRow:null,gridRowStart:null,gridRowEnd:null,gridColumn:null,gridColumnStart:null,gridColumnEnd:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderStyle:"mlyng3xce",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,whiteSpace:"mlyuxw1ft",minWidth:"mlygc0pbm",$$css:!0}};function Wc(e){const t=e+"CollectionProvider",[r,o]=Kt(t),[s,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),l=h=>{const{scope:x,children:v}=h,y=Ie.useRef(null),b=Ie.useRef(new Map).current;return d.jsx(s,{scope:x,itemMap:b,collectionRef:y,children:v})};l.displayName=t;const a=e+"CollectionSlot",u=Ie.forwardRef((h,x)=>{const{scope:v,children:y}=h,b=i(a,v),w=ae(x,b.collectionRef);return d.jsx(lr,{ref:w,children:y})});u.displayName=a;const c=e+"CollectionItemSlot",p="data-radix-collection-item",m=Ie.forwardRef((h,x)=>{const{scope:v,children:y,...b}=h,w=Ie.useRef(null),C=ae(x,w),_=i(c,v);return Ie.useEffect(()=>(_.itemMap.set(w,{ref:w,...b}),()=>void _.itemMap.delete(w))),d.jsx(lr,{[p]:"",ref:C,children:y})});m.displayName=c;function g(h){const x=i(e+"CollectionConsumer",h);return Ie.useCallback(()=>{const y=x.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((_,k)=>b.indexOf(_.ref.current)-b.indexOf(k.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:l,Slot:u,ItemSlot:m},g,o]}var za=0;function Ql(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??nf()),document.body.insertAdjacentElement("beforeend",e[1]??nf()),za++,()=>{za===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),za--}},[])}function nf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var qa="focusScope.autoFocusOnMount",Wa="focusScope.autoFocusOnUnmount",rf={bubbles:!1,cancelable:!0},Xv="FocusScope",Ks=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...l}=e,[a,u]=f.useState(null),c=Ye(s),p=Ye(i),m=f.useRef(null),g=ae(t,v=>u(v)),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(o){let v=function(C){if(h.paused||!a)return;const _=C.target;a.contains(_)?m.current=_:Kn(m.current,{select:!0})},y=function(C){if(h.paused||!a)return;const _=C.relatedTarget;_!==null&&(a.contains(_)||Kn(m.current,{select:!0}))},b=function(C){if(document.activeElement===document.body)for(const k of C)k.removedNodes.length>0&&Kn(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",y);const w=new MutationObserver(b);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),w.disconnect()}}},[o,a,h.paused]),f.useEffect(()=>{if(a){sf.add(h);const v=document.activeElement;if(!a.contains(v)){const b=new CustomEvent(qa,rf);a.addEventListener(qa,c),a.dispatchEvent(b),b.defaultPrevented||(Zv(tb(Nm(a)),{select:!0}),document.activeElement===v&&Kn(a))}return()=>{a.removeEventListener(qa,c),setTimeout(()=>{const b=new CustomEvent(Wa,rf);a.addEventListener(Wa,p),a.dispatchEvent(b),b.defaultPrevented||Kn(v??document.body,{select:!0}),a.removeEventListener(Wa,p),sf.remove(h)},0)}}},[a,c,p,h]);const x=f.useCallback(v=>{if(!r&&!o||h.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,b=document.activeElement;if(y&&b){const w=v.currentTarget,[C,_]=Kv(w);C&&_?!v.shiftKey&&b===_?(v.preventDefault(),r&&Kn(C,{select:!0})):v.shiftKey&&b===C&&(v.preventDefault(),r&&Kn(_,{select:!0})):b===w&&v.preventDefault()}},[r,o,h.paused]);return d.jsx(ee.div,{tabIndex:-1,...l,ref:g,onKeyDown:x})});Ks.displayName=Xv;function Zv(e,{select:t=!1}={}){const r=document.activeElement;for(const o of e)if(Kn(o,{select:t}),document.activeElement!==r)return}function Kv(e){const t=Nm(e),r=of(t,e),o=of(t.reverse(),e);return[r,o]}function Nm(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function of(e,t){for(const r of e)if(!Qv(r,{upTo:t}))return r}function Qv(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Jv(e){return e instanceof HTMLInputElement&&"select"in e}function Kn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Jv(e)&&t&&e.select()}}var sf=eb();function eb(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=lf(e,t),e.unshift(t)},remove(t){var r;e=lf(e,t),(r=e[0])==null||r.resume()}}}function lf(e,t){const r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}function tb(e){return e.filter(t=>t.tagName!=="A")}function nb(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var rb=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Vr=new WeakMap,Ei=new WeakMap,Ri={},Ga=0,Mm=function(e){return e&&(e.host||Mm(e.parentNode))},ob=function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=Mm(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},sb=function(e,t,r,o){var s=ob(t,Array.isArray(e)?e:[e]);Ri[r]||(Ri[r]=new WeakMap);var i=Ri[r],l=[],a=new Set,u=new Set(s),c=function(m){!m||a.has(m)||(a.add(m),c(m.parentNode))};s.forEach(c);var p=function(m){!m||u.has(m)||Array.prototype.forEach.call(m.children,function(g){if(a.has(g))p(g);else try{var h=g.getAttribute(o),x=h!==null&&h!=="false",v=(Vr.get(g)||0)+1,y=(i.get(g)||0)+1;Vr.set(g,v),i.set(g,y),l.push(g),v===1&&x&&Ei.set(g,!0),y===1&&g.setAttribute(r,"true"),x||g.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",g,b)}})};return p(t),a.clear(),Ga++,function(){l.forEach(function(m){var g=Vr.get(m)-1,h=i.get(m)-1;Vr.set(m,g),i.set(m,h),g||(Ei.has(m)||m.removeAttribute(o),Ei.delete(m)),h||m.removeAttribute(r)}),Ga--,Ga||(Vr=new WeakMap,Vr=new WeakMap,Ei=new WeakMap,Ri={})}},Jl=function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),s=rb(e);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live]"))),sb(o,s,r,"aria-hidden")):function(){return null}},ln=function(){return ln=Object.assign||function(t){for(var r,o=1,s=arguments.length;o<s;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ln.apply(this,arguments)};function Im(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(r[o[s]]=e[o[s]]);return r}function ib(e,t,r){for(var o=0,s=t.length,i;o<s;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var Vi="right-scroll-bar-position",Xi="width-before-scroll-bar",lb="with-scroll-bars-hidden",ab="--removed-body-scroll-bar-size";function Ua(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ub(e,t){var r=f.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var s=r.value;s!==o&&(r.value=o,r.callback(o,s))}}}})[0];return r.callback=t,r.facade}var cb=typeof window<"u"?f.useLayoutEffect:f.useEffect,af=new WeakMap;function db(e,t){var r=ub(null,function(o){return e.forEach(function(s){return Ua(s,o)})});return cb(function(){var o=af.get(r);if(o){var s=new Set(o),i=new Set(e),l=r.current;s.forEach(function(a){i.has(a)||Ua(a,null)}),i.forEach(function(a){s.has(a)||Ua(a,l)})}af.set(r,e)},[e]),r}function fb(e){return e}function pb(e,t){t===void 0&&(t=fb);var r=[],o=!1,s={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var l=t(i,o);return r.push(l),function(){r=r.filter(function(a){return a!==l})}},assignSyncMedium:function(i){for(o=!0;r.length;){var l=r;r=[],l.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){o=!0;var l=[];if(r.length){var a=r;r=[],a.forEach(i),l=r}var u=function(){var p=l;l=[],p.forEach(i)},c=function(){return Promise.resolve().then(u)};c(),r={push:function(p){l.push(p),c()},filter:function(p){return l=l.filter(p),r}}}};return s}function mb(e){e===void 0&&(e={});var t=pb(null);return t.options=ln({async:!0,ssr:!1},e),t}var Om=function(e){var t=e.sideCar,r=Im(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return f.createElement(o,ln({},r))};Om.isSideCarExport=!0;function hb(e,t){return e.useMedium(t),Om}var Pm=mb(),Ya=function(){},ea=f.forwardRef(function(e,t){var r=f.useRef(null),o=f.useState({onScrollCapture:Ya,onWheelCapture:Ya,onTouchMoveCapture:Ya}),s=o[0],i=o[1],l=e.forwardProps,a=e.children,u=e.className,c=e.removeScrollBar,p=e.enabled,m=e.shards,g=e.sideCar,h=e.noIsolation,x=e.inert,v=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,C=Im(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=g,k=db([r,t]),E=ln(ln({},C),s);return f.createElement(f.Fragment,null,p&&f.createElement(_,{sideCar:Pm,removeScrollBar:c,shards:m,noIsolation:h,inert:x,setCallbacks:i,allowPinchZoom:!!v,lockRef:r,gapMode:w}),l?f.cloneElement(f.Children.only(a),ln(ln({},E),{ref:k})):f.createElement(b,ln({},E,{className:u,ref:k}),a))});ea.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ea.classNames={fullWidth:Xi,zeroRight:Vi};var gb=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xb(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gb();return t&&e.setAttribute("nonce",t),e}function yb(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function vb(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bb=function(){var e=0,t=null;return{add:function(r){e==0&&(t=xb())&&(yb(t,r),vb(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wb=function(){var e=bb();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Fm=function(){var e=wb(),t=function(r){var o=r.styles,s=r.dynamic;return e(o,s),null};return t},Cb={left:0,top:0,right:0,gap:0},Ha=function(e){return parseInt(e||"",10)||0},_b=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Ha(r),Ha(o),Ha(s)]},Sb=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Cb;var t=_b(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}},kb=Fm(),ao="data-scroll-locked",Eb=function(e,t,r,o){var s=e.left,i=e.top,l=e.right,a=e.gap;return r===void 0&&(r="margin"),`
|
|
78
78
|
.`.concat(lb,` {
|
|
79
79
|
overflow: hidden `).concat(o,`;
|
|
80
80
|
padding-right: `).concat(a,"px ").concat(o,`;
|
|
@@ -114,7 +114,7 @@ ${x}}`,v}static fromTagLine(h,x=0,v,...y){return p(h,v,y,x)}static fromTagLines(
|
|
|
114
114
|
`)},uf=function(){var e=parseInt(document.body.getAttribute(ao)||"0",10);return isFinite(e)?e:0},Rb=function(){f.useEffect(function(){return document.body.setAttribute(ao,(uf()+1).toString()),function(){var e=uf()-1;e<=0?document.body.removeAttribute(ao):document.body.setAttribute(ao,e.toString())}},[])},Ab=function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,s=o===void 0?"margin":o;Rb();var i=f.useMemo(function(){return Sb(s)},[s]);return f.createElement(kb,{styles:Eb(i,!t,s,r?"":"!important")})},Nu=!1;if(typeof window<"u")try{var Ai=Object.defineProperty({},"passive",{get:function(){return Nu=!0,!0}});window.addEventListener("test",Ai,Ai),window.removeEventListener("test",Ai,Ai)}catch{Nu=!1}var Xr=Nu?{passive:!1}:!1,Tb=function(e){return e.tagName==="TEXTAREA"},Bm=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Tb(e)&&r[t]==="visible")},jb=function(e){return Bm(e,"overflowY")},Db=function(e){return Bm(e,"overflowX")},cf=function(e,t){var r=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=$m(e,o);if(s){var i=zm(e,o),l=i[1],a=i[2];if(l>a)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},Lb=function(e){var t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return[t,r,o]},Nb=function(e){var t=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return[t,r,o]},$m=function(e,t){return e==="v"?jb(t):Db(t)},zm=function(e,t){return e==="v"?Lb(t):Nb(t)},Mb=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ib=function(e,t,r,o,s){var i=Mb(e,window.getComputedStyle(t).direction),l=i*o,a=r.target,u=t.contains(a),c=!1,p=l>0,m=0,g=0;do{var h=zm(e,a),x=h[0],v=h[1],y=h[2],b=v-y-i*x;(x||b)&&$m(e,a)&&(m+=b,g+=x),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(p&&Math.abs(m)<1||!p&&Math.abs(g)<1)&&(c=!0),c},Ti=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},df=function(e){return[e.deltaX,e.deltaY]},ff=function(e){return e&&"current"in e?e.current:e},Ob=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Pb=function(e){return`
|
|
115
115
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
116
116
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
117
|
-
`)},Fb=0,Zr=[];function Bb(e){var t=f.useRef([]),r=f.useRef([0,0]),o=f.useRef(),s=f.useState(Fb++)[0],i=f.useState(Fm)[0],l=f.useRef(e);f.useEffect(function(){l.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var v=ib([e.lockRef.current],(e.shards||[]).map(ff)).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(v,y){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var b=Ti(v),w=r.current,C="deltaX"in v?v.deltaX:w[0]-b[0],_="deltaY"in v?v.deltaY:w[1]-b[1],k,E=v.target,R=Math.abs(C)>Math.abs(_)?"h":"v";if("touches"in v&&R==="h"&&E.type==="range")return!1;var j=cf(R,E);if(!j)return!0;if(j?k=R:(k=R==="v"?"h":"v",j=cf(R,E)),!j)return!1;if(!o.current&&"changedTouches"in v&&(C||_)&&(o.current=k),!k)return!0;var D=o.current||k;return Ib(D,y,v,D==="h"?C:_)},[]),u=f.useCallback(function(v){var y=v;if(!(!Zr.length||Zr[Zr.length-1]!==i)){var b="deltaY"in y?df(y):Ti(y),w=t.current.filter(function(k){return k.name===y.type&&(k.target===y.target||y.target===k.shadowParent)&&Ob(k.delta,b)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var C=(l.current.shards||[]).map(ff).filter(Boolean).filter(function(k){return k.contains(y.target)}),_=C.length>0?a(y,C[0]):!l.current.noIsolation;_&&y.cancelable&&y.preventDefault()}}},[]),c=f.useCallback(function(v,y,b,w){var C={name:v,delta:y,target:b,should:w,shadowParent:$b(b)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(_){return _!==C})},1)},[]),p=f.useCallback(function(v){r.current=Ti(v),o.current=void 0},[]),m=f.useCallback(function(v){c(v.type,df(v),v.target,a(v,e.lockRef.current))},[]),g=f.useCallback(function(v){c(v.type,Ti(v),v.target,a(v,e.lockRef.current))},[]);f.useEffect(function(){return Zr.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",u,Xr),document.addEventListener("touchmove",u,Xr),document.addEventListener("touchstart",p,Xr),function(){Zr=Zr.filter(function(v){return v!==i}),document.removeEventListener("wheel",u,Xr),document.removeEventListener("touchmove",u,Xr),document.removeEventListener("touchstart",p,Xr)}},[]);var h=e.removeScrollBar,x=e.inert;return f.createElement(f.Fragment,null,x?f.createElement(i,{styles:Pb(s)}):null,h?f.createElement(Ab,{gapMode:e.gapMode}):null)}function $b(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zb=hb(Pm,Bb);var Qs=f.forwardRef(function(e,t){return f.createElement(ea,ln({},e,{ref:t,sideCar:zb}))});Qs.classNames=ea.classNames;var qb=[" ","Enter","ArrowUp","ArrowDown"],Wb=[" ","Enter"],Js="Select",[ta,na,Gb]=Wc(Js),[Bo,tL]=Kt(Js,[Gb,mr]),ra=mr(),[Ub,hr]=Bo(Js),[Yb,Hb]=Bo(Js),qm=e=>{const{__scopeSelect:t,children:r,open:o,defaultOpen:s,onOpenChange:i,value:l,defaultValue:a,onValueChange:u,dir:c,name:p,autoComplete:m,disabled:g,required:h,form:x}=e,v=ra(t),[y,b]=f.useState(null),[w,C]=f.useState(null),[_,k]=f.useState(!1),E=Xs(c),[R=!1,j]=dr({prop:o,defaultProp:s,onChange:i}),[D,I]=dr({prop:l,defaultProp:a,onChange:u}),B=f.useRef(null),U=y?x||!!y.closest("form"):!0,[K,$]=f.useState(new Set),S=Array.from(K).map(T=>T.props.value).join(";");return d.jsx(Wl,{...v,children:d.jsxs(Ub,{required:h,scope:t,trigger:y,onTriggerChange:b,valueNode:w,onValueNodeChange:C,valueNodeHasChildren:_,onValueNodeHasChildrenChange:k,contentId:jt(),value:D,onValueChange:I,open:R,onOpenChange:j,dir:E,triggerPointerDownPosRef:B,disabled:g,children:[d.jsx(ta.Provider,{scope:t,children:d.jsx(Yb,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(T=>{$(M=>new Set(M).add(T))},[]),onNativeOptionRemove:f.useCallback(T=>{$(M=>{const H=new Set(M);return H.delete(T),H})},[]),children:r})}),U?d.jsxs(ah,{"aria-hidden":!0,required:h,tabIndex:-1,name:p,autoComplete:m,value:D,onChange:T=>I(T.target.value),disabled:g,form:x,children:[D===void 0?d.jsx("option",{value:""}):null,Array.from(K)]},S):null]})})};qm.displayName=Js;var Wm="SelectTrigger",Gm=f.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:o=!1,...s}=e,i=ra(r),l=hr(Wm,r),a=l.disabled||o,u=ae(t,l.onTriggerChange),c=na(r),p=f.useRef("touch"),[m,g,h]=uh(v=>{const y=c().filter(C=>!C.disabled),b=y.find(C=>C.value===l.value),w=ch(y,v,b);w!==void 0&&l.onValueChange(w.value)}),x=v=>{a||(l.onOpenChange(!0),h()),v&&(l.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return d.jsx(Ys,{asChild:!0,...i,children:d.jsx(ee.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":lh(l.value)?"":void 0,...s,ref:u,onClick:q(s.onClick,v=>{v.currentTarget.focus(),p.current!=="mouse"&&x(v)}),onPointerDown:q(s.onPointerDown,v=>{p.current=v.pointerType;const y=v.target;y.hasPointerCapture(v.pointerId)&&y.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(x(v),v.preventDefault())}),onKeyDown:q(s.onKeyDown,v=>{const y=m.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&g(v.key),!(y&&v.key===" ")&&qb.includes(v.key)&&(x(),v.preventDefault())})})})});Gm.displayName=Wm;var Um="SelectValue",Ym=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:o,style:s,children:i,placeholder:l="",...a}=e,u=hr(Um,r),{onValueNodeHasChildrenChange:c}=u,p=i!==void 0,m=ae(t,u.onValueNodeChange);return lt(()=>{c(p)},[c,p]),d.jsx(ee.span,{...a,ref:m,style:{pointerEvents:"none"},children:lh(u.value)?d.jsx(d.Fragment,{children:l}):i})});Ym.displayName=Um;var Vb="SelectIcon",Xb=f.forwardRef((e,t)=>{const{__scopeSelect:r,children:o,...s}=e;return d.jsx(ee.span,{"aria-hidden":!0,...s,ref:t,children:o||"▼"})});Xb.displayName=Vb;var Zb="SelectPortal",Hm=e=>d.jsx(To,{asChild:!0,...e});Hm.displayName=Zb;var Tr="SelectContent",Vm=f.forwardRef((e,t)=>{const r=hr(Tr,e.__scopeSelect),[o,s]=f.useState();if(lt(()=>{s(new DocumentFragment)},[]),!r.open){const i=o;return i?Rn.createPortal(d.jsx(Xm,{scope:e.__scopeSelect,children:d.jsx(ta.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),i):null}return d.jsx(Zm,{...e,ref:t})});Vm.displayName=Tr;var qt=10,[Xm,gr]=Bo(Tr),Kb="SelectContentImpl",Zm=f.forwardRef((e,t)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:l,side:a,sideOffset:u,align:c,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:h,sticky:x,hideWhenDetached:v,avoidCollisions:y,...b}=e,w=hr(Tr,r),[C,_]=f.useState(null),[k,E]=f.useState(null),R=ae(t,Z=>_(Z)),[j,D]=f.useState(null),[I,B]=f.useState(null),U=na(r),[K,$]=f.useState(!1),S=f.useRef(!1);f.useEffect(()=>{if(C)return Jl(C)},[C]),Ql();const T=f.useCallback(Z=>{const[ue,...pe]=U().map(ce=>ce.ref.current),[X]=pe.slice(-1),he=document.activeElement;for(const ce of Z)if(ce===he||(ce?.scrollIntoView({block:"nearest"}),ce===ue&&k&&(k.scrollTop=0),ce===X&&k&&(k.scrollTop=k.scrollHeight),ce?.focus(),document.activeElement!==he))return},[U,k]),M=f.useCallback(()=>T([j,C]),[T,j,C]);f.useEffect(()=>{K&&M()},[K,M]);const{onOpenChange:H,triggerPointerDownPosRef:z}=w;f.useEffect(()=>{if(C){let Z={x:0,y:0};const ue=X=>{var he,ce;Z={x:Math.abs(Math.round(X.pageX)-(((he=z.current)==null?void 0:he.x)??0)),y:Math.abs(Math.round(X.pageY)-(((ce=z.current)==null?void 0:ce.y)??0))}},pe=X=>{Z.x<=10&&Z.y<=10?X.preventDefault():C.contains(X.target)||H(!1),document.removeEventListener("pointermove",ue),z.current=null};return z.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",pe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",pe,{capture:!0})}}},[C,H,z]),f.useEffect(()=>{const Z=()=>H(!1);return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[H]);const[fe,Oe]=uh(Z=>{const ue=U().filter(he=>!he.disabled),pe=ue.find(he=>he.ref.current===document.activeElement),X=ch(ue,Z,pe);X&&setTimeout(()=>X.ref.current.focus())}),we=f.useCallback((Z,ue,pe)=>{const X=!S.current&&!pe;(w.value!==void 0&&w.value===ue||X)&&(D(Z),X&&(S.current=!0))},[w.value]),Le=f.useCallback(()=>C?.focus(),[C]),Ae=f.useCallback((Z,ue,pe)=>{const X=!S.current&&!pe;(w.value!==void 0&&w.value===ue||X)&&B(Z)},[w.value]),Je=o==="popper"?Mu:Km,Te=Je===Mu?{side:a,sideOffset:u,align:c,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:h,sticky:x,hideWhenDetached:v,avoidCollisions:y}:{};return d.jsx(Xm,{scope:r,content:C,viewport:k,onViewportChange:E,itemRefCallback:we,selectedItem:j,onItemLeave:Le,itemTextRefCallback:Ae,focusSelectedItem:M,selectedItemText:I,position:o,isPositioned:K,searchRef:fe,children:d.jsx(Qs,{as:lr,allowPinchZoom:!0,children:d.jsx(Ks,{asChild:!0,trapped:w.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:q(s,Z=>{var ue;(ue=w.trigger)==null||ue.focus({preventScroll:!0}),Z.preventDefault()}),children:d.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:d.jsx(Je,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:Z=>Z.preventDefault(),...b,...Te,onPlaced:()=>$(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:q(b.onKeyDown,Z=>{const ue=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!ue&&Z.key.length===1&&Oe(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let X=U().filter(he=>!he.disabled).map(he=>he.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const he=Z.target,ce=X.indexOf(he);X=X.slice(ce+1)}setTimeout(()=>T(X)),Z.preventDefault()}})})})})})})});Zm.displayName=Kb;var Qb="SelectItemAlignedPosition",Km=f.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:o,...s}=e,i=hr(Tr,r),l=gr(Tr,r),[a,u]=f.useState(null),[c,p]=f.useState(null),m=ae(t,R=>p(R)),g=na(r),h=f.useRef(!1),x=f.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:b,focusSelectedItem:w}=l,C=f.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&v&&y&&b){const R=i.trigger.getBoundingClientRect(),j=c.getBoundingClientRect(),D=i.valueNode.getBoundingClientRect(),I=b.getBoundingClientRect();if(i.dir!=="rtl"){const he=I.left-j.left,ce=D.left-he,ze=R.left-ce,qe=R.width+ze,Ct=Math.max(qe,j.width),_t=window.innerWidth-qt,qn=Du(ce,[qt,Math.max(qt,_t-Ct)]);a.style.minWidth=qe+"px",a.style.left=qn+"px"}else{const he=j.right-I.right,ce=window.innerWidth-D.right-he,ze=window.innerWidth-R.right-ce,qe=R.width+ze,Ct=Math.max(qe,j.width),_t=window.innerWidth-qt,qn=Du(ce,[qt,Math.max(qt,_t-Ct)]);a.style.minWidth=qe+"px",a.style.right=qn+"px"}const B=g(),U=window.innerHeight-qt*2,K=v.scrollHeight,$=window.getComputedStyle(c),S=parseInt($.borderTopWidth,10),T=parseInt($.paddingTop,10),M=parseInt($.borderBottomWidth,10),H=parseInt($.paddingBottom,10),z=S+T+K+H+M,fe=Math.min(y.offsetHeight*5,z),Oe=window.getComputedStyle(v),we=parseInt(Oe.paddingTop,10),Le=parseInt(Oe.paddingBottom,10),Ae=R.top+R.height/2-qt,Je=U-Ae,Te=y.offsetHeight/2,Z=y.offsetTop+Te,ue=S+T+Z,pe=z-ue;if(ue<=Ae){const he=B.length>0&&y===B[B.length-1].ref.current;a.style.bottom="0px";const ce=c.clientHeight-v.offsetTop-v.offsetHeight,ze=Math.max(Je,Te+(he?Le:0)+ce+M),qe=ue+ze;a.style.height=qe+"px"}else{const he=B.length>0&&y===B[0].ref.current;a.style.top="0px";const ze=Math.max(Ae,S+v.offsetTop+(he?we:0)+Te)+pe;a.style.height=ze+"px",v.scrollTop=ue-Ae+v.offsetTop}a.style.margin=`${qt}px 0`,a.style.minHeight=fe+"px",a.style.maxHeight=U+"px",o?.(),requestAnimationFrame(()=>h.current=!0)}},[g,i.trigger,i.valueNode,a,c,v,y,b,i.dir,o]);lt(()=>C(),[C]);const[_,k]=f.useState();lt(()=>{c&&k(window.getComputedStyle(c).zIndex)},[c]);const E=f.useCallback(R=>{R&&x.current===!0&&(C(),w?.(),x.current=!1)},[C,w]);return d.jsx(e4,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:E,children:d.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:d.jsx(ee.div,{...s,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Km.displayName=Qb;var Jb="SelectPopperPosition",Mu=f.forwardRef((e,t)=>{const{__scopeSelect:r,align:o="start",collisionPadding:s=qt,...i}=e,l=ra(r);return d.jsx(Gl,{...l,...i,ref:t,align:o,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Mu.displayName=Jb;var[e4,Gc]=Bo(Tr,{}),Iu="SelectViewport",Qm=f.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:o,...s}=e,i=gr(Iu,r),l=Gc(Iu,r),a=ae(t,i.onViewportChange),u=f.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),d.jsx(ta.Slot,{scope:r,children:d.jsx(ee.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:q(s.onScroll,c=>{const p=c.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:g}=l;if(g?.current&&m){const h=Math.abs(u.current-p.scrollTop);if(h>0){const x=window.innerHeight-qt*2,v=parseFloat(m.style.minHeight),y=parseFloat(m.style.height),b=Math.max(v,y);if(b<x){const w=b+h,C=Math.min(x,w),_=w-C;m.style.height=C+"px",m.style.bottom==="0px"&&(p.scrollTop=_>0?_:0,m.style.justifyContent="flex-end")}}}u.current=p.scrollTop})})})]})});Qm.displayName=Iu;var Jm="SelectGroup",[t4,n4]=Bo(Jm),eh=f.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,s=jt();return d.jsx(t4,{scope:r,id:s,children:d.jsx(ee.div,{role:"group","aria-labelledby":s,...o,ref:t})})});eh.displayName=Jm;var th="SelectLabel",r4=f.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,s=n4(th,r);return d.jsx(ee.div,{id:s.id,...o,ref:t})});r4.displayName=th;var fl="SelectItem",[o4,nh]=Bo(fl),rh=f.forwardRef((e,t)=>{const{__scopeSelect:r,value:o,disabled:s=!1,textValue:i,...l}=e,a=hr(fl,r),u=gr(fl,r),c=a.value===o,[p,m]=f.useState(i??""),[g,h]=f.useState(!1),x=ae(t,w=>{var C;return(C=u.itemRefCallback)==null?void 0:C.call(u,w,o,s)}),v=jt(),y=f.useRef("touch"),b=()=>{s||(a.onValueChange(o),a.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(o4,{scope:r,value:o,disabled:s,textId:v,isSelected:c,onItemTextChange:f.useCallback(w=>{m(C=>C||(w?.textContent??"").trim())},[]),children:d.jsx(ta.ItemSlot,{scope:r,value:o,disabled:s,textValue:p,children:d.jsx(ee.div,{role:"option","aria-labelledby":v,"data-highlighted":g?"":void 0,"aria-selected":c&&g,"data-state":c?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...l,ref:x,onFocus:q(l.onFocus,()=>h(!0)),onBlur:q(l.onBlur,()=>h(!1)),onClick:q(l.onClick,()=>{y.current!=="mouse"&&b()}),onPointerUp:q(l.onPointerUp,()=>{y.current==="mouse"&&b()}),onPointerDown:q(l.onPointerDown,w=>{y.current=w.pointerType}),onPointerMove:q(l.onPointerMove,w=>{var C;y.current=w.pointerType,s?(C=u.onItemLeave)==null||C.call(u):y.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:q(l.onPointerLeave,w=>{var C;w.currentTarget===document.activeElement&&((C=u.onItemLeave)==null||C.call(u))}),onKeyDown:q(l.onKeyDown,w=>{var C;((C=u.searchRef)==null?void 0:C.current)!==""&&w.key===" "||(Wb.includes(w.key)&&b(),w.key===" "&&w.preventDefault())})})})})});rh.displayName=fl;var ds="SelectItemText",oh=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:o,style:s,...i}=e,l=hr(ds,r),a=gr(ds,r),u=nh(ds,r),c=Hb(ds,r),[p,m]=f.useState(null),g=ae(t,b=>m(b),u.onItemTextChange,b=>{var w;return(w=a.itemTextRefCallback)==null?void 0:w.call(a,b,u.value,u.disabled)}),h=p?.textContent,x=f.useMemo(()=>d.jsx("option",{value:u.value,disabled:u.disabled,children:h},u.value),[u.disabled,u.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=c;return lt(()=>(v(x),()=>y(x)),[v,y,x]),d.jsxs(d.Fragment,{children:[d.jsx(ee.span,{id:u.textId,...i,ref:g}),u.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Rn.createPortal(i.children,l.valueNode):null]})});oh.displayName=ds;var sh="SelectItemIndicator",s4=f.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e;return nh(sh,r).isSelected?d.jsx(ee.span,{"aria-hidden":!0,...o,ref:t}):null});s4.displayName=sh;var Ou="SelectScrollUpButton",i4=f.forwardRef((e,t)=>{const r=gr(Ou,e.__scopeSelect),o=Gc(Ou,e.__scopeSelect),[s,i]=f.useState(!1),l=ae(t,o.onScrollButtonChange);return lt(()=>{if(r.viewport&&r.isPositioned){let a=function(){const c=u.scrollTop>0;i(c)};const u=r.viewport;return a(),u.addEventListener("scroll",a),()=>u.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?d.jsx(ih,{...e,ref:l,onAutoScroll:()=>{const{viewport:a,selectedItem:u}=r;a&&u&&(a.scrollTop=a.scrollTop-u.offsetHeight)}}):null});i4.displayName=Ou;var Pu="SelectScrollDownButton",l4=f.forwardRef((e,t)=>{const r=gr(Pu,e.__scopeSelect),o=Gc(Pu,e.__scopeSelect),[s,i]=f.useState(!1),l=ae(t,o.onScrollButtonChange);return lt(()=>{if(r.viewport&&r.isPositioned){let a=function(){const c=u.scrollHeight-u.clientHeight,p=Math.ceil(u.scrollTop)<c;i(p)};const u=r.viewport;return a(),u.addEventListener("scroll",a),()=>u.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?d.jsx(ih,{...e,ref:l,onAutoScroll:()=>{const{viewport:a,selectedItem:u}=r;a&&u&&(a.scrollTop=a.scrollTop+u.offsetHeight)}}):null});l4.displayName=Pu;var ih=f.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:o,...s}=e,i=gr("SelectScrollButton",r),l=f.useRef(null),a=na(r),u=f.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return f.useEffect(()=>()=>u(),[u]),lt(()=>{var c;const p=a().find(m=>m.ref.current===document.activeElement);(c=p?.ref.current)==null||c.scrollIntoView({block:"nearest"})},[a]),d.jsx(ee.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:q(s.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(o,50))}),onPointerMove:q(s.onPointerMove,()=>{var c;(c=i.onItemLeave)==null||c.call(i),l.current===null&&(l.current=window.setInterval(o,50))}),onPointerLeave:q(s.onPointerLeave,()=>{u()})})}),a4="SelectSeparator",u4=f.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e;return d.jsx(ee.div,{"aria-hidden":!0,...o,ref:t})});u4.displayName=a4;var Fu="SelectArrow",c4=f.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,s=ra(r),i=hr(Fu,r),l=gr(Fu,r);return i.open&&l.position==="popper"?d.jsx(Ul,{...s,...o,ref:t}):null});c4.displayName=Fu;function lh(e){return e===""||e===void 0}var ah=f.forwardRef((e,t)=>{const{value:r,...o}=e,s=f.useRef(null),i=ae(t,s),l=nb(r);return f.useEffect(()=>{const a=s.current,u=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(u,"value").set;if(l!==r&&p){const m=new Event("change",{bubbles:!0});p.call(a,r),a.dispatchEvent(m)}},[l,r]),d.jsx(Nc,{asChild:!0,children:d.jsx("select",{...o,ref:i,defaultValue:r})})});ah.displayName="BubbleSelect";function uh(e){const t=Ye(e),r=f.useRef(""),o=f.useRef(0),s=f.useCallback(l=>{const a=r.current+l;t(a),function u(c){r.current=c,window.clearTimeout(o.current),c!==""&&(o.current=window.setTimeout(()=>u(""),1e3))}(a)},[t]),i=f.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,s,i]}function ch(e,t,r){const s=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let l=d4(e,Math.max(i,0));s.length===1&&(l=l.filter(c=>c!==r));const u=l.find(c=>c.textValue.toLowerCase().startsWith(s.toLowerCase()));return u!==r?u:void 0}function d4(e,t){return e.map((r,o)=>e[(t+o)%e.length])}var f4=qm,p4=Gm,m4=Ym,h4=Hm,g4=Vm,x4=Qm,y4=eh,v4=rh,b4=oh;const w4="default";function oa({value:e,placeholder:t,size:r=w4,icon:o,onChange:s,onKeyDown:i,hasClear:l=!1,customStyle:a}){const[u,c]=f.useState(!1),p=f.useRef(null),m=x=>{s(x.target.value)},g=()=>{c(!0)},h=x=>{p.current==null||x.relatedTarget!==p.current?c(!1):x.target.focus()};return d.jsxs("div",{...A.props(rs.main,u&&rs.focused,C4[r],a),children:[o&&d.jsx(ie,{name:o,color:"secondary"}),d.jsx("input",{...A.props(Y.body,rs.input),value:e,placeholder:t,onChange:m,onFocus:g,onBlur:h,onKeyDown:i}),l&&d.jsx("button",{...A.props(Y.supporting,rs.actionButton,e===""&&rs.hidden),ref:p,onClick:()=>s(""),tabIndex:0,children:"Clear"})]})}const rs={main:{display:"mly78zum5",alignItems:"mly6s0dn4",justifyContent:"mly1nhvcw1",background:"mlyotlr4g",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,border:"mly520xni",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,boxShadow:"mlyk1e6ed",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},focused:{borderColor:"mly1y5yj0f",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,boxShadow:"mlyg48p7p",$$css:!0},input:{flexGrow:"mly1iyjqo2",height:"mly1qx5ct2",minWidth:"mlygc0pbm",padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderStyle:"mlyng3xce",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,"::placeholder_color":"mly1njml60",$$css:!0},actionButton:{display:"mly3nfvp2",borderWidth:"mlyc342km",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,marginLeft:"mly1iog12x",marginInlineStart:null,marginInlineEnd:null,cursor:"mly1ypdohk",color:"mlykfrnou",$$css:!0},hidden:{visibility:"mlylshs6z",$$css:!0}},C4={default:{padding:"mly153ncpu",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},compact:{padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}};function sa({value:e,onChange:t,icon:r,color:o=Fo,size:s=qc,items:i,isSearchable:l=!1,customStyle:a}){var u;const[c,p]=f.useState(""),m=f.useMemo(()=>c?i.filter(x=>x.label.toLowerCase().includes(c.toLowerCase())):i,[i,c]),g=x=>{t(x)},h=(u=i.find(x=>x.value===e))==null?void 0:u.label;return d.jsxs(f4,{value:e,onValueChange:g,required:!0,children:[d.jsxs(p4,{...A.props(sr.main,ms.selectTrigger,$c[o],zc[s],a),children:[r&&d.jsx(ie,{name:r,customStyle:sr.icon}),d.jsx(m4,{asChild:!0,children:d.jsx("div",{...A.props(Y.body,sr.label),children:h})})]}),d.jsx(h4,{children:d.jsx(g4,{side:"bottom",position:"popper",sideOffset:4,children:d.jsxs(x4,{className:"mly4pepcl mlyotlr4g mly17fq3gk",children:[l&&d.jsx(oa,{value:c,onChange:x=>p(x),placeholder:"Search",size:"compact",icon:"search",hasClear:!0,customStyle:ms.searchInput,onKeyDown:x=>{["ArrowUp","ArrowDown"].includes(x.key)||setTimeout(()=>{x.target.focus()},10)}}),d.jsx(y4,{className:"mly78zum5 mlydt5ytf mlyuyqlj2 mlyfawy5m mly195vfkc mlyysyzu8",children:m.map(x=>d.jsx(_4,{value:x.value,selectedValue:e,children:x.label},x.value))})]})})})]})}function _4({children:e,value:t,selectedValue:r,...o}){return d.jsxs(v4,{...A.props(Y.body,ms.selectItem),value:t,...o,children:[t===r?d.jsx(ie,{name:"radioChecked",customStyle:ms.radioChecked}):d.jsx(ie,{name:"radioUnchecked",customStyle:ms.radioUnchecked}),d.jsx(b4,{children:e})]})}const ms={selectTrigger:{whiteSpace:"mlyuxw1ft",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0},selectItem:{display:"mly78zum5",alignItems:"mly6s0dn4",padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,cursor:"mly1ypdohk",outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,":is([data-highlighted])_background":"mly1bw6wve",":is([data-highlighted])_backgroundAttachment":null,":is([data-highlighted])_backgroundClip":null,":is([data-highlighted])_backgroundColor":null,":is([data-highlighted])_backgroundImage":null,":is([data-highlighted])_backgroundOrigin":null,":is([data-highlighted])_backgroundPosition":null,":is([data-highlighted])_backgroundPositionX":null,":is([data-highlighted])_backgroundPositionY":null,":is([data-highlighted])_backgroundRepeat":null,":is([data-highlighted])_backgroundSize":null,':is([data-state="checked"])_background':"mlyamyxth mlyejs3c0",':is([data-state="checked"])_backgroundAttachment':null,':is([data-state="checked"])_backgroundClip':null,':is([data-state="checked"])_backgroundColor':null,':is([data-state="checked"])_backgroundImage':null,':is([data-state="checked"])_backgroundOrigin':null,':is([data-state="checked"])_backgroundPosition':null,':is([data-state="checked"])_backgroundPositionX':null,':is([data-state="checked"])_backgroundPositionY':null,':is([data-state="checked"])_backgroundRepeat':null,':is([data-state="checked"])_backgroundSize':null,$$css:!0},radioChecked:{color:"mlykfrnou",$$css:!0},radioUnchecked:{color:"mlyj5j7qc",$$css:!0},searchInput:{borderRadius:"mly4pepcl",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0}};function S4({header:e,children:t,customStyle:r}){return d.jsxs("div",{...A.props(k4.container,r),children:[d.jsx("div",{className:"mly1717udv",children:e}),d.jsx("div",{className:"mly1y1aw1k mly1iyjqo2 mly78zum5",children:t})]})}const k4={container:{display:"mly78zum5",flexDirection:"mlydt5ytf",background:"mly17eh757",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mly4pepcl",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderStyle:"mly1y0btm7",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderWidth:"mlymkeg23",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderColor:"mly17v018m",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mlyc7ga6q",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,flexShrink:"mly2lah0s",$$css:!0}};function Uc({title:e,children:t,icon:r,defaultOpen:o=!0,controls:s,collapsedControls:i,isFocused:l=!1}){const[a,u]=f.useState(o);return d.jsxs("div",{...{0:{className:"mlygbc89k mly1sxf85j mly1717udv"},1:{className:"mly1sxf85j mly1717udv mlybwr872"}}[!!l<<0],children:[d.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mly52fmzj mlylqzeqv mlyfawy5m mly167g77z mly6s0dn4",children:[d.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mlylqzeqv mly6s0dn4 mly167g77z",children:[r&&d.jsx(ie,{name:r,customStyle:E4.icon}),d.jsx("div",{className:"mlyuxw1ft mlyb3r6kr mlylyipyv mlyehqz9p mly1ghz6dp mly117nqv4",children:e})]}),d.jsxs("div",{className:"mly78zum5",children:[a?d.jsx("div",{className:"mly78zum5 mly6s0dn4 mly1jnr06f",children:s}):d.jsx("div",{className:"mly78zum5 mly6s0dn4 mly1jnr06f",children:i}),d.jsx(ke,{variant:"flat",size:"compact",onClick:()=>u(!a),icon:a?"chevronDown":"chevronRight",tooltip:a?"Collapse":"Expand"})]})]}),d.jsx("div",{...{0:{className:"mly1l4tkcb"},1:{className:"mly1l4tkcb mly1s85apg"}}[!a<<0],children:t})]})}const E4={icon:{$$css:!0}};function R4({label:e,sublabel:t,children:r,isInitiallyExpanded:o=!1}){const[s,i]=f.useState(o),l=()=>{i(a=>!a)};return d.jsxs("div",{children:[d.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mly6s0dn4 mlylqzeqv mlye8ttls mly167g77z mlyur7f20 mly1ypdohk mly1haqvef",onClick:l,children:[s?d.jsx(ie,{name:"chevronDown",color:"secondary"}):d.jsx(ie,{name:"chevronRight",color:"secondary"}),d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly1iyjqo2 mlyb3r6kr",children:[d.jsx("span",{...A.props(Y.body,pf.label),children:e}),t&&d.jsx("span",{...A.props(Y.supporting,pf.sublabel),children:t})]})]}),s&&d.jsx("div",{className:"mly78zum5 mlydt5ytf mly92jh8x mly1jnr06f",children:f.Children.map(r,a=>a)})]})}const pf={label:{flexGrow:"mly1iyjqo2",fontWeight:"mly1xlr1w8",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0},sublabel:{flexGrow:"mly1iyjqo2",color:"mly9dwj6z",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0}},A4={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},T4={single:"1em",double:"2em"},j4=({lineSpacing:e})=>({line(t){const r=[...Array.isArray(t.properties.style)?t.properties.style:typeof t.properties.style=="string"?[t.properties.style]:[]];r.push(`line-height: ${T4[e]};`),t.properties.style=r}}),D4=({showLineNumbers:e})=>{if(e)return{line(t,r){const o={type:"element",tagName:"span",children:[{type:"text",value:`${r}`}],properties:{style:["color: rgba(115, 138, 148, 0.4);","margin-right: 35px;","width: 1px;","display: inline-block;","user-select: none"]}};t.children.unshift(o)}}},L4=[j4,D4];function N4(e){return L4.map(t=>t(e)).filter(t=>t!==void 0)}let st=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function M4(e){return Yc(e)}function Yc(e){return Array.isArray(e)?I4(e):e instanceof RegExp?e:typeof e=="object"?O4(e):e}function I4(e){let t=[];for(let r=0,o=e.length;r<o;r++)t[r]=Yc(e[r]);return t}function O4(e){let t={};for(let r in e)t[r]=Yc(e[r]);return t}function dh(e,...t){return t.forEach(r=>{for(let o in r)e[o]=r[o]}),e}function fh(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?fh(e.substring(0,e.length-1)):e.substr(~t+1)}var Va=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ji=class{static hasCaptures(e){return e===null?!1:(Va.lastIndex=0,Va.test(e))}static replaceCaptures(e,t,r){return e.replace(Va,(o,s,i,l)=>{let a=r[parseInt(s||i,10)];if(a){let u=t.substring(a.start,a.end);for(;u[0]===".";)u=u.substring(1);switch(l){case"downcase":return u.toLowerCase();case"upcase":return u.toUpperCase();default:return u}}else return o})}};function ph(e,t){return e<t?-1:e>t?1:0}function mh(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,o=t.length;if(r===o){for(let s=0;s<r;s++){let i=ph(e[s],t[s]);if(i!==0)return i}return 0}return r-o}function mf(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function hh(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var gh=class{constructor(e){L(this,"cache",new Map),this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},pl=class{constructor(e,t,r){L(this,"_cachedMatchRoot",new gh(o=>this._root.match(o))),this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(B4(e),t)}static createFromParsedTheme(e,t){return z4(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,o=this._cachedMatchRoot.get(t).find(s=>P4(e.parent,s.parentScopes));return o?new xh(o.fontStyle,o.foreground,o.background):null}},Xa=class Zi{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(const o of r)t=new Zi(t,o);return t}static from(...t){let r=null;for(let o=0;o<t.length;o++)r=new Zi(r,t[o]);return r}push(t){return new Zi(this,t)}getSegments(){let t=this;const r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const r=[];let o=this;for(;o&&o!==t;)r.push(o.scopeName),o=o.parent;return o===t?r.reverse():void 0}};function P4(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let o=t[r],s=!1;if(o===">"){if(r===t.length-1)return!1;o=t[++r],s=!0}for(;e&&!F4(e.scopeName,o);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function F4(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var xh=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function B4(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],o=0;for(let s=0,i=t.length;s<i;s++){let l=t[s];if(!l.settings)continue;let a;if(typeof l.scope=="string"){let m=l.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),a=m.split(",")}else Array.isArray(l.scope)?a=l.scope:a=[""];let u=-1;if(typeof l.settings.fontStyle=="string"){u=0;let m=l.settings.fontStyle.split(" ");for(let g=0,h=m.length;g<h;g++)switch(m[g]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let c=null;typeof l.settings.foreground=="string"&&mf(l.settings.foreground)&&(c=l.settings.foreground);let p=null;typeof l.settings.background=="string"&&mf(l.settings.background)&&(p=l.settings.background);for(let m=0,g=a.length;m<g;m++){let x=a[m].trim().split(" "),v=x[x.length-1],y=null;x.length>1&&(y=x.slice(0,x.length-1),y.reverse()),r[o++]=new $4(v,y,s,u,c,p)}}return r}var $4=class{constructor(e,t,r,o,s,i){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=o,this.foreground=s,this.background=i}},An=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(An||{});function z4(e,t){e.sort((u,c)=>{let p=ph(u.scope,c.scope);return p!==0||(p=mh(u.parentScopes,c.parentScopes),p!==0)?p:u.index-c.index});let r=0,o="#000000",s="#ffffff";for(;e.length>=1&&e[0].scope==="";){let u=e.shift();u.fontStyle!==-1&&(r=u.fontStyle),u.foreground!==null&&(o=u.foreground),u.background!==null&&(s=u.background)}let i=new q4(t),l=new xh(r,i.getId(o),i.getId(s)),a=new G4(new Bu(0,null,-1,0,0),[]);for(let u=0,c=e.length;u<c;u++){let p=e[u];a.insert(0,p.scope,p.parentScopes,p.fontStyle,i.getId(p.foreground),i.getId(p.background))}return new pl(i,l,a)}var q4=class{constructor(e){if(L(this,"_isFrozen"),L(this,"_lastColorId"),L(this,"_id2color"),L(this,"_color2id"),this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},W4=Object.freeze([]),Bu=class yh{constructor(t,r,o,s,i){L(this,"scopeDepth"),L(this,"parentScopes"),L(this,"fontStyle"),L(this,"foreground"),L(this,"background"),this.scopeDepth=t,this.parentScopes=r||W4,this.fontStyle=o,this.foreground=s,this.background=i}clone(){return new yh(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let o=0,s=t.length;o<s;o++)r[o]=t[o].clone();return r}acceptOverwrite(t,r,o,s){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),o!==0&&(this.foreground=o),s!==0&&(this.background=s)}},G4=class $u{constructor(t,r=[],o={}){L(this,"_rulesWithParentScopes"),this._mainRule=t,this._children=o,this._rulesWithParentScopes=r}static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let o=0,s=0;for(;t.parentScopes[o]===">"&&o++,r.parentScopes[s]===">"&&s++,!(o>=t.parentScopes.length||s>=r.parentScopes.length);){const i=r.parentScopes[s].length-t.parentScopes[o].length;if(i!==0)return i;o++,s++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let o=t.indexOf("."),s,i;if(o===-1?(s=t,i=""):(s=t.substring(0,o),i=t.substring(o+1)),this._children.hasOwnProperty(s))return this._children[s].match(i)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort($u._cmpBySpecificity),r}insert(t,r,o,s,i,l){if(r===""){this._doInsertHere(t,o,s,i,l);return}let a=r.indexOf("."),u,c;a===-1?(u=r,c=""):(u=r.substring(0,a),c=r.substring(a+1));let p;this._children.hasOwnProperty(u)?p=this._children[u]:(p=new $u(this._mainRule.clone(),Bu.cloneArr(this._rulesWithParentScopes)),this._children[u]=p),p.insert(t+1,c,o,s,i,l)}_doInsertHere(t,r,o,s,i){if(r===null){this._mainRule.acceptOverwrite(t,o,s,i);return}for(let l=0,a=this._rulesWithParentScopes.length;l<a;l++){let u=this._rulesWithParentScopes[l];if(mh(u.parentScopes,r)===0){u.acceptOverwrite(t,o,s,i);return}}o===-1&&(o=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Bu(t,r,o,s,i))}},vo=class kt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const r=kt.getLanguageId(t),o=kt.getTokenType(t),s=kt.getFontStyle(t),i=kt.getForeground(t),l=kt.getBackground(t);console.log({languageId:r,tokenType:o,fontStyle:s,foreground:i,background:l})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,o,s,i,l,a){let u=kt.getLanguageId(t),c=kt.getTokenType(t),p=kt.containsBalancedBrackets(t)?1:0,m=kt.getFontStyle(t),g=kt.getForeground(t),h=kt.getBackground(t);return r!==0&&(u=r),o!==8&&(c=o),s!==null&&(p=s?1:0),i!==-1&&(m=i),l!==0&&(g=l),a!==0&&(h=a),(u<<0|c<<8|p<<10|m<<11|g<<15|h<<24)>>>0}};function ml(e,t){const r=[],o=U4(e);let s=o.next();for(;s!==null;){let u=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":u=1;break;case"L":u=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=o.next()}let c=l();if(r.push({matcher:c,priority:u}),s!==",")break;s=o.next()}return r;function i(){if(s==="-"){s=o.next();const u=i();return c=>!!u&&!u(c)}if(s==="("){s=o.next();const u=a();return s===")"&&(s=o.next()),u}if(hf(s)){const u=[];do u.push(s),s=o.next();while(hf(s));return c=>t(u,c)}return null}function l(){const u=[];let c=i();for(;c;)u.push(c),c=i();return p=>u.every(m=>m(p))}function a(){const u=[];let c=l();for(;c&&(u.push(c),s==="|"||s===",");){do s=o.next();while(s==="|"||s===",");c=l()}return p=>u.some(m=>m(p))}}function hf(e){return!!e&&!!e.match(/[\w\.:]+/)}function U4(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;const o=r[0];return r=t.exec(e),o}}}function vh(e){typeof e.dispose=="function"&&e.dispose()}var As=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Y4=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},H4=class{constructor(){L(this,"_references",[]),L(this,"_seenReferenceKeys",new Set),L(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},V4=class{constructor(e,t){L(this,"seenFullScopeRequests",new Set),L(this,"seenPartialScopeRequests",new Set),L(this,"Q"),this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new As(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new H4;for(const r of e)X4(r,this.initialScopeName,this.repo,t);for(const r of t.references)if(r instanceof As){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function X4(e,t,r,o){const s=r.lookup(e.scopeName);if(!s){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const i=r.lookup(t);e instanceof As?Ki({baseGrammar:i,selfGrammar:s},o):zu(e.ruleName,{baseGrammar:i,selfGrammar:s,repository:s.repository},o);const l=r.injections(e.scopeName);if(l)for(const a of l)o.add(new As(a))}function zu(e,t,r){if(t.repository&&t.repository[e]){const o=t.repository[e];hl([o],t,r)}}function Ki(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&hl(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&hl(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function hl(e,t,r){for(const o of e){if(r.visitedRule.has(o))continue;r.visitedRule.add(o);const s=o.repository?dh({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&hl(o.patterns,{...t,repository:s},r);const i=o.include;if(!i)continue;const l=bh(i);switch(l.kind){case 0:Ki({...t,selfGrammar:t.baseGrammar},r);break;case 1:Ki(t,r);break;case 2:zu(l.ruleName,{...t,repository:s},r);break;case 3:case 4:const a=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const u={baseGrammar:t.baseGrammar,selfGrammar:a,repository:s};l.kind===4?zu(l.ruleName,u,r):Ki(u,r)}else l.kind===4?r.add(new Y4(l.scopeName,l.ruleName)):r.add(new As(l.scopeName));break}}}var Z4=class{constructor(){L(this,"kind",0)}},K4=class{constructor(){L(this,"kind",1)}},Q4=class{constructor(e){L(this,"kind",2),this.ruleName=e}},J4=class{constructor(e){L(this,"kind",3),this.scopeName=e}},e6=class{constructor(e,t){L(this,"kind",4),this.scopeName=e,this.ruleName=t}};function bh(e){if(e==="$base")return new Z4;if(e==="$self")return new K4;const t=e.indexOf("#");if(t===-1)return new J4(e);if(t===0)return new Q4(e.substring(1));{const r=e.substring(0,t),o=e.substring(t+1);return new e6(r,o)}}var t6=/\\(\d+)/,gf=/\\(\d+)/g,n6=-1,wh=-2;var ei=class{constructor(e,t,r,o){L(this,"$location"),L(this,"id"),L(this,"_nameIsCapturing"),L(this,"_name"),L(this,"_contentNameIsCapturing"),L(this,"_contentName"),this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=ji.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=ji.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${fh(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:ji.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ji.replaceCaptures(this._contentName,e,t)}},r6=class extends ei{constructor(e,t,r,o,s){super(e,t,r,o),L(this,"retokenizeCapturedWithRuleId"),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,o){throw new Error("Not supported!")}},o6=class extends ei{constructor(e,t,r,o,s){super(e,t,r,null),L(this,"_match"),L(this,"captures"),L(this,"_cachedCompiledPatterns"),this._match=new Ts(o,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e).compileAG(e,r,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new js,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},xf=class extends ei{constructor(e,t,r,o,s){super(e,t,r,o),L(this,"hasMissingPatterns"),L(this,"patterns"),L(this,"_cachedCompiledPatterns"),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e).compileAG(e,r,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new js,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},qu=class extends ei{constructor(e,t,r,o,s,i,l,a,u,c){super(e,t,r,o),L(this,"_begin"),L(this,"beginCaptures"),L(this,"_end"),L(this,"endHasBackReferences"),L(this,"endCaptures"),L(this,"applyEndPatternLast"),L(this,"hasMissingPatterns"),L(this,"patterns"),L(this,"_cachedCompiledPatterns"),this._begin=new Ts(s,this.id),this.beginCaptures=i,this._end=new Ts(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=u||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,o)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new js;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},gl=class extends ei{constructor(e,t,r,o,s,i,l,a,u){super(e,t,r,o),L(this,"_begin"),L(this,"beginCaptures"),L(this,"whileCaptures"),L(this,"_while"),L(this,"whileHasBackReferences"),L(this,"hasMissingPatterns"),L(this,"patterns"),L(this,"_cachedCompiledPatterns"),L(this,"_cachedCompiledWhilePatterns"),this._begin=new Ts(s,this.id),this.beginCaptures=i,this.whileCaptures=a,this._while=new Ts(l,wh),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e).compileAG(e,r,o)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new js;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,o){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,o)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new js,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},Ch=class nt{static createCaptureRule(t,r,o,s,i){return t.registerRule(l=>new r6(r,l,o,s,i))}static getCompiledRuleId(t,r,o){return t.id||r.registerRule(s=>{if(t.id=s,t.match)return new o6(t.$vscodeTextmateLocation,t.id,t.name,t.match,nt._compileCaptures(t.captures,r,o));if(typeof t.begin>"u"){t.repository&&(o=dh({},o,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new xf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,nt._compilePatterns(i,r,o))}return t.while?new gl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,nt._compileCaptures(t.beginCaptures||t.captures,r,o),t.while,nt._compileCaptures(t.whileCaptures||t.captures,r,o),nt._compilePatterns(t.patterns,r,o)):new qu(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,nt._compileCaptures(t.beginCaptures||t.captures,r,o),t.end,nt._compileCaptures(t.endCaptures||t.captures,r,o),t.applyEndPatternLast,nt._compilePatterns(t.patterns,r,o))}),t.id}static _compileCaptures(t,r,o){let s=[];if(t){let i=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const a=parseInt(l,10);a>i&&(i=a)}for(let l=0;l<=i;l++)s[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const a=parseInt(l,10);let u=0;t[l].patterns&&(u=nt.getCompiledRuleId(t[l],r,o)),s[a]=nt.createCaptureRule(r,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,u)}}return s}static _compilePatterns(t,r,o){let s=[];if(t)for(let i=0,l=t.length;i<l;i++){const a=t[i];let u=-1;if(a.include){const c=bh(a.include);switch(c.kind){case 0:case 1:u=nt.getCompiledRuleId(o[a.include],r,o);break;case 2:let p=o[c.ruleName];p&&(u=nt.getCompiledRuleId(p,r,o));break;case 3:case 4:const m=c.scopeName,g=c.kind===4?c.ruleName:null,h=r.getExternalGrammar(m,o);if(h)if(g){let x=h.repository[g];x&&(u=nt.getCompiledRuleId(x,r,h.repository))}else u=nt.getCompiledRuleId(h.repository.$self,r,h.repository);break}}else u=nt.getCompiledRuleId(a,r,o);if(u!==-1){const c=r.getRule(u);let p=!1;if((c instanceof xf||c instanceof qu||c instanceof gl)&&c.hasMissingPatterns&&c.patterns.length===0&&(p=!0),p)continue;s.push(u)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},Ts=class _h{constructor(t,r){if(L(this,"source"),L(this,"ruleId"),L(this,"hasAnchor"),L(this,"hasBackReferences"),L(this,"_anchorCache"),t&&typeof t=="string"){const o=t.length;let s=0,i=[],l=!1;for(let a=0;a<o;a++)if(t.charAt(a)==="\\"&&a+1<o){const c=t.charAt(a+1);c==="z"?(i.push(t.substring(s,a)),i.push("$(?!\\n)(?<!\\n)"),s=a+2):(c==="A"||c==="G")&&(l=!0),a++}this.hasAnchor=l,s===0?this.source=t:(i.push(t.substring(s,o)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=t6.test(this.source):this.hasBackReferences=!1}clone(){return new _h(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let o=r.map(s=>t.substring(s.start,s.end));return gf.lastIndex=0,this.source.replace(gf,(s,i)=>hh(o[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],r=[],o=[],s=[],i,l,a,u;for(i=0,l=this.source.length;i<l;i++)a=this.source.charAt(i),t[i]=a,r[i]=a,o[i]=a,s[i]=a,a==="\\"&&i+1<l&&(u=this.source.charAt(i+1),u==="A"?(t[i+1]="",r[i+1]="",o[i+1]="A",s[i+1]="A"):u==="G"?(t[i+1]="",r[i+1]="G",o[i+1]="",s[i+1]="G"):(t[i+1]=u,r[i+1]=u,o[i+1]=u,s[i+1]=u),i++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:s.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},js=class{constructor(){L(this,"_items"),L(this,"_hasAnchors"),L(this,"_cached"),L(this,"_anchorCache"),this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(r=>r.source);this._cached=new yf(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let o=this._items.map(s=>s.resolveAnchors(t,r));return new yf(e,o,this._items.map(s=>s.ruleId))}},yf=class{constructor(e,t,r){L(this,"scanner"),this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
117
|
+
`)},Fb=0,Zr=[];function Bb(e){var t=f.useRef([]),r=f.useRef([0,0]),o=f.useRef(),s=f.useState(Fb++)[0],i=f.useState(Fm)[0],l=f.useRef(e);f.useEffect(function(){l.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var v=ib([e.lockRef.current],(e.shards||[]).map(ff)).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(v,y){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var b=Ti(v),w=r.current,C="deltaX"in v?v.deltaX:w[0]-b[0],_="deltaY"in v?v.deltaY:w[1]-b[1],k,E=v.target,R=Math.abs(C)>Math.abs(_)?"h":"v";if("touches"in v&&R==="h"&&E.type==="range")return!1;var j=cf(R,E);if(!j)return!0;if(j?k=R:(k=R==="v"?"h":"v",j=cf(R,E)),!j)return!1;if(!o.current&&"changedTouches"in v&&(C||_)&&(o.current=k),!k)return!0;var D=o.current||k;return Ib(D,y,v,D==="h"?C:_)},[]),u=f.useCallback(function(v){var y=v;if(!(!Zr.length||Zr[Zr.length-1]!==i)){var b="deltaY"in y?df(y):Ti(y),w=t.current.filter(function(k){return k.name===y.type&&(k.target===y.target||y.target===k.shadowParent)&&Ob(k.delta,b)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var C=(l.current.shards||[]).map(ff).filter(Boolean).filter(function(k){return k.contains(y.target)}),_=C.length>0?a(y,C[0]):!l.current.noIsolation;_&&y.cancelable&&y.preventDefault()}}},[]),c=f.useCallback(function(v,y,b,w){var C={name:v,delta:y,target:b,should:w,shadowParent:$b(b)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(_){return _!==C})},1)},[]),p=f.useCallback(function(v){r.current=Ti(v),o.current=void 0},[]),m=f.useCallback(function(v){c(v.type,df(v),v.target,a(v,e.lockRef.current))},[]),g=f.useCallback(function(v){c(v.type,Ti(v),v.target,a(v,e.lockRef.current))},[]);f.useEffect(function(){return Zr.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",u,Xr),document.addEventListener("touchmove",u,Xr),document.addEventListener("touchstart",p,Xr),function(){Zr=Zr.filter(function(v){return v!==i}),document.removeEventListener("wheel",u,Xr),document.removeEventListener("touchmove",u,Xr),document.removeEventListener("touchstart",p,Xr)}},[]);var h=e.removeScrollBar,x=e.inert;return f.createElement(f.Fragment,null,x?f.createElement(i,{styles:Pb(s)}):null,h?f.createElement(Ab,{gapMode:e.gapMode}):null)}function $b(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zb=hb(Pm,Bb);var Qs=f.forwardRef(function(e,t){return f.createElement(ea,ln({},e,{ref:t,sideCar:zb}))});Qs.classNames=ea.classNames;var qb=[" ","Enter","ArrowUp","ArrowDown"],Wb=[" ","Enter"],Js="Select",[ta,na,Gb]=Wc(Js),[Bo,eL]=Kt(Js,[Gb,mr]),ra=mr(),[Ub,hr]=Bo(Js),[Yb,Hb]=Bo(Js),qm=e=>{const{__scopeSelect:t,children:r,open:o,defaultOpen:s,onOpenChange:i,value:l,defaultValue:a,onValueChange:u,dir:c,name:p,autoComplete:m,disabled:g,required:h,form:x}=e,v=ra(t),[y,b]=f.useState(null),[w,C]=f.useState(null),[_,k]=f.useState(!1),E=Xs(c),[R=!1,j]=dr({prop:o,defaultProp:s,onChange:i}),[D,I]=dr({prop:l,defaultProp:a,onChange:u}),B=f.useRef(null),U=y?x||!!y.closest("form"):!0,[K,$]=f.useState(new Set),S=Array.from(K).map(T=>T.props.value).join(";");return d.jsx(Wl,{...v,children:d.jsxs(Ub,{required:h,scope:t,trigger:y,onTriggerChange:b,valueNode:w,onValueNodeChange:C,valueNodeHasChildren:_,onValueNodeHasChildrenChange:k,contentId:jt(),value:D,onValueChange:I,open:R,onOpenChange:j,dir:E,triggerPointerDownPosRef:B,disabled:g,children:[d.jsx(ta.Provider,{scope:t,children:d.jsx(Yb,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(T=>{$(M=>new Set(M).add(T))},[]),onNativeOptionRemove:f.useCallback(T=>{$(M=>{const H=new Set(M);return H.delete(T),H})},[]),children:r})}),U?d.jsxs(ah,{"aria-hidden":!0,required:h,tabIndex:-1,name:p,autoComplete:m,value:D,onChange:T=>I(T.target.value),disabled:g,form:x,children:[D===void 0?d.jsx("option",{value:""}):null,Array.from(K)]},S):null]})})};qm.displayName=Js;var Wm="SelectTrigger",Gm=f.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:o=!1,...s}=e,i=ra(r),l=hr(Wm,r),a=l.disabled||o,u=ae(t,l.onTriggerChange),c=na(r),p=f.useRef("touch"),[m,g,h]=uh(v=>{const y=c().filter(C=>!C.disabled),b=y.find(C=>C.value===l.value),w=ch(y,v,b);w!==void 0&&l.onValueChange(w.value)}),x=v=>{a||(l.onOpenChange(!0),h()),v&&(l.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return d.jsx(Ys,{asChild:!0,...i,children:d.jsx(ee.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":lh(l.value)?"":void 0,...s,ref:u,onClick:q(s.onClick,v=>{v.currentTarget.focus(),p.current!=="mouse"&&x(v)}),onPointerDown:q(s.onPointerDown,v=>{p.current=v.pointerType;const y=v.target;y.hasPointerCapture(v.pointerId)&&y.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(x(v),v.preventDefault())}),onKeyDown:q(s.onKeyDown,v=>{const y=m.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&g(v.key),!(y&&v.key===" ")&&qb.includes(v.key)&&(x(),v.preventDefault())})})})});Gm.displayName=Wm;var Um="SelectValue",Ym=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:o,style:s,children:i,placeholder:l="",...a}=e,u=hr(Um,r),{onValueNodeHasChildrenChange:c}=u,p=i!==void 0,m=ae(t,u.onValueNodeChange);return lt(()=>{c(p)},[c,p]),d.jsx(ee.span,{...a,ref:m,style:{pointerEvents:"none"},children:lh(u.value)?d.jsx(d.Fragment,{children:l}):i})});Ym.displayName=Um;var Vb="SelectIcon",Xb=f.forwardRef((e,t)=>{const{__scopeSelect:r,children:o,...s}=e;return d.jsx(ee.span,{"aria-hidden":!0,...s,ref:t,children:o||"▼"})});Xb.displayName=Vb;var Zb="SelectPortal",Hm=e=>d.jsx(To,{asChild:!0,...e});Hm.displayName=Zb;var Tr="SelectContent",Vm=f.forwardRef((e,t)=>{const r=hr(Tr,e.__scopeSelect),[o,s]=f.useState();if(lt(()=>{s(new DocumentFragment)},[]),!r.open){const i=o;return i?Rn.createPortal(d.jsx(Xm,{scope:e.__scopeSelect,children:d.jsx(ta.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),i):null}return d.jsx(Zm,{...e,ref:t})});Vm.displayName=Tr;var qt=10,[Xm,gr]=Bo(Tr),Kb="SelectContentImpl",Zm=f.forwardRef((e,t)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:l,side:a,sideOffset:u,align:c,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:h,sticky:x,hideWhenDetached:v,avoidCollisions:y,...b}=e,w=hr(Tr,r),[C,_]=f.useState(null),[k,E]=f.useState(null),R=ae(t,Z=>_(Z)),[j,D]=f.useState(null),[I,B]=f.useState(null),U=na(r),[K,$]=f.useState(!1),S=f.useRef(!1);f.useEffect(()=>{if(C)return Jl(C)},[C]),Ql();const T=f.useCallback(Z=>{const[ue,...pe]=U().map(ce=>ce.ref.current),[X]=pe.slice(-1),he=document.activeElement;for(const ce of Z)if(ce===he||(ce?.scrollIntoView({block:"nearest"}),ce===ue&&k&&(k.scrollTop=0),ce===X&&k&&(k.scrollTop=k.scrollHeight),ce?.focus(),document.activeElement!==he))return},[U,k]),M=f.useCallback(()=>T([j,C]),[T,j,C]);f.useEffect(()=>{K&&M()},[K,M]);const{onOpenChange:H,triggerPointerDownPosRef:z}=w;f.useEffect(()=>{if(C){let Z={x:0,y:0};const ue=X=>{var he,ce;Z={x:Math.abs(Math.round(X.pageX)-(((he=z.current)==null?void 0:he.x)??0)),y:Math.abs(Math.round(X.pageY)-(((ce=z.current)==null?void 0:ce.y)??0))}},pe=X=>{Z.x<=10&&Z.y<=10?X.preventDefault():C.contains(X.target)||H(!1),document.removeEventListener("pointermove",ue),z.current=null};return z.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",pe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",pe,{capture:!0})}}},[C,H,z]),f.useEffect(()=>{const Z=()=>H(!1);return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[H]);const[fe,Oe]=uh(Z=>{const ue=U().filter(he=>!he.disabled),pe=ue.find(he=>he.ref.current===document.activeElement),X=ch(ue,Z,pe);X&&setTimeout(()=>X.ref.current.focus())}),we=f.useCallback((Z,ue,pe)=>{const X=!S.current&&!pe;(w.value!==void 0&&w.value===ue||X)&&(D(Z),X&&(S.current=!0))},[w.value]),Le=f.useCallback(()=>C?.focus(),[C]),Ae=f.useCallback((Z,ue,pe)=>{const X=!S.current&&!pe;(w.value!==void 0&&w.value===ue||X)&&B(Z)},[w.value]),Je=o==="popper"?Mu:Km,Te=Je===Mu?{side:a,sideOffset:u,align:c,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:h,sticky:x,hideWhenDetached:v,avoidCollisions:y}:{};return d.jsx(Xm,{scope:r,content:C,viewport:k,onViewportChange:E,itemRefCallback:we,selectedItem:j,onItemLeave:Le,itemTextRefCallback:Ae,focusSelectedItem:M,selectedItemText:I,position:o,isPositioned:K,searchRef:fe,children:d.jsx(Qs,{as:lr,allowPinchZoom:!0,children:d.jsx(Ks,{asChild:!0,trapped:w.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:q(s,Z=>{var ue;(ue=w.trigger)==null||ue.focus({preventScroll:!0}),Z.preventDefault()}),children:d.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:d.jsx(Je,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:Z=>Z.preventDefault(),...b,...Te,onPlaced:()=>$(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:q(b.onKeyDown,Z=>{const ue=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!ue&&Z.key.length===1&&Oe(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let X=U().filter(he=>!he.disabled).map(he=>he.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const he=Z.target,ce=X.indexOf(he);X=X.slice(ce+1)}setTimeout(()=>T(X)),Z.preventDefault()}})})})})})})});Zm.displayName=Kb;var Qb="SelectItemAlignedPosition",Km=f.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:o,...s}=e,i=hr(Tr,r),l=gr(Tr,r),[a,u]=f.useState(null),[c,p]=f.useState(null),m=ae(t,R=>p(R)),g=na(r),h=f.useRef(!1),x=f.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:b,focusSelectedItem:w}=l,C=f.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&v&&y&&b){const R=i.trigger.getBoundingClientRect(),j=c.getBoundingClientRect(),D=i.valueNode.getBoundingClientRect(),I=b.getBoundingClientRect();if(i.dir!=="rtl"){const he=I.left-j.left,ce=D.left-he,ze=R.left-ce,qe=R.width+ze,Ct=Math.max(qe,j.width),_t=window.innerWidth-qt,qn=Du(ce,[qt,Math.max(qt,_t-Ct)]);a.style.minWidth=qe+"px",a.style.left=qn+"px"}else{const he=j.right-I.right,ce=window.innerWidth-D.right-he,ze=window.innerWidth-R.right-ce,qe=R.width+ze,Ct=Math.max(qe,j.width),_t=window.innerWidth-qt,qn=Du(ce,[qt,Math.max(qt,_t-Ct)]);a.style.minWidth=qe+"px",a.style.right=qn+"px"}const B=g(),U=window.innerHeight-qt*2,K=v.scrollHeight,$=window.getComputedStyle(c),S=parseInt($.borderTopWidth,10),T=parseInt($.paddingTop,10),M=parseInt($.borderBottomWidth,10),H=parseInt($.paddingBottom,10),z=S+T+K+H+M,fe=Math.min(y.offsetHeight*5,z),Oe=window.getComputedStyle(v),we=parseInt(Oe.paddingTop,10),Le=parseInt(Oe.paddingBottom,10),Ae=R.top+R.height/2-qt,Je=U-Ae,Te=y.offsetHeight/2,Z=y.offsetTop+Te,ue=S+T+Z,pe=z-ue;if(ue<=Ae){const he=B.length>0&&y===B[B.length-1].ref.current;a.style.bottom="0px";const ce=c.clientHeight-v.offsetTop-v.offsetHeight,ze=Math.max(Je,Te+(he?Le:0)+ce+M),qe=ue+ze;a.style.height=qe+"px"}else{const he=B.length>0&&y===B[0].ref.current;a.style.top="0px";const ze=Math.max(Ae,S+v.offsetTop+(he?we:0)+Te)+pe;a.style.height=ze+"px",v.scrollTop=ue-Ae+v.offsetTop}a.style.margin=`${qt}px 0`,a.style.minHeight=fe+"px",a.style.maxHeight=U+"px",o?.(),requestAnimationFrame(()=>h.current=!0)}},[g,i.trigger,i.valueNode,a,c,v,y,b,i.dir,o]);lt(()=>C(),[C]);const[_,k]=f.useState();lt(()=>{c&&k(window.getComputedStyle(c).zIndex)},[c]);const E=f.useCallback(R=>{R&&x.current===!0&&(C(),w?.(),x.current=!1)},[C,w]);return d.jsx(e4,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:E,children:d.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:d.jsx(ee.div,{...s,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Km.displayName=Qb;var Jb="SelectPopperPosition",Mu=f.forwardRef((e,t)=>{const{__scopeSelect:r,align:o="start",collisionPadding:s=qt,...i}=e,l=ra(r);return d.jsx(Gl,{...l,...i,ref:t,align:o,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Mu.displayName=Jb;var[e4,Gc]=Bo(Tr,{}),Iu="SelectViewport",Qm=f.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:o,...s}=e,i=gr(Iu,r),l=Gc(Iu,r),a=ae(t,i.onViewportChange),u=f.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),d.jsx(ta.Slot,{scope:r,children:d.jsx(ee.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:q(s.onScroll,c=>{const p=c.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:g}=l;if(g?.current&&m){const h=Math.abs(u.current-p.scrollTop);if(h>0){const x=window.innerHeight-qt*2,v=parseFloat(m.style.minHeight),y=parseFloat(m.style.height),b=Math.max(v,y);if(b<x){const w=b+h,C=Math.min(x,w),_=w-C;m.style.height=C+"px",m.style.bottom==="0px"&&(p.scrollTop=_>0?_:0,m.style.justifyContent="flex-end")}}}u.current=p.scrollTop})})})]})});Qm.displayName=Iu;var Jm="SelectGroup",[t4,n4]=Bo(Jm),eh=f.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,s=jt();return d.jsx(t4,{scope:r,id:s,children:d.jsx(ee.div,{role:"group","aria-labelledby":s,...o,ref:t})})});eh.displayName=Jm;var th="SelectLabel",r4=f.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,s=n4(th,r);return d.jsx(ee.div,{id:s.id,...o,ref:t})});r4.displayName=th;var fl="SelectItem",[o4,nh]=Bo(fl),rh=f.forwardRef((e,t)=>{const{__scopeSelect:r,value:o,disabled:s=!1,textValue:i,...l}=e,a=hr(fl,r),u=gr(fl,r),c=a.value===o,[p,m]=f.useState(i??""),[g,h]=f.useState(!1),x=ae(t,w=>{var C;return(C=u.itemRefCallback)==null?void 0:C.call(u,w,o,s)}),v=jt(),y=f.useRef("touch"),b=()=>{s||(a.onValueChange(o),a.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(o4,{scope:r,value:o,disabled:s,textId:v,isSelected:c,onItemTextChange:f.useCallback(w=>{m(C=>C||(w?.textContent??"").trim())},[]),children:d.jsx(ta.ItemSlot,{scope:r,value:o,disabled:s,textValue:p,children:d.jsx(ee.div,{role:"option","aria-labelledby":v,"data-highlighted":g?"":void 0,"aria-selected":c&&g,"data-state":c?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...l,ref:x,onFocus:q(l.onFocus,()=>h(!0)),onBlur:q(l.onBlur,()=>h(!1)),onClick:q(l.onClick,()=>{y.current!=="mouse"&&b()}),onPointerUp:q(l.onPointerUp,()=>{y.current==="mouse"&&b()}),onPointerDown:q(l.onPointerDown,w=>{y.current=w.pointerType}),onPointerMove:q(l.onPointerMove,w=>{var C;y.current=w.pointerType,s?(C=u.onItemLeave)==null||C.call(u):y.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:q(l.onPointerLeave,w=>{var C;w.currentTarget===document.activeElement&&((C=u.onItemLeave)==null||C.call(u))}),onKeyDown:q(l.onKeyDown,w=>{var C;((C=u.searchRef)==null?void 0:C.current)!==""&&w.key===" "||(Wb.includes(w.key)&&b(),w.key===" "&&w.preventDefault())})})})})});rh.displayName=fl;var ds="SelectItemText",oh=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:o,style:s,...i}=e,l=hr(ds,r),a=gr(ds,r),u=nh(ds,r),c=Hb(ds,r),[p,m]=f.useState(null),g=ae(t,b=>m(b),u.onItemTextChange,b=>{var w;return(w=a.itemTextRefCallback)==null?void 0:w.call(a,b,u.value,u.disabled)}),h=p?.textContent,x=f.useMemo(()=>d.jsx("option",{value:u.value,disabled:u.disabled,children:h},u.value),[u.disabled,u.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=c;return lt(()=>(v(x),()=>y(x)),[v,y,x]),d.jsxs(d.Fragment,{children:[d.jsx(ee.span,{id:u.textId,...i,ref:g}),u.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Rn.createPortal(i.children,l.valueNode):null]})});oh.displayName=ds;var sh="SelectItemIndicator",s4=f.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e;return nh(sh,r).isSelected?d.jsx(ee.span,{"aria-hidden":!0,...o,ref:t}):null});s4.displayName=sh;var Ou="SelectScrollUpButton",i4=f.forwardRef((e,t)=>{const r=gr(Ou,e.__scopeSelect),o=Gc(Ou,e.__scopeSelect),[s,i]=f.useState(!1),l=ae(t,o.onScrollButtonChange);return lt(()=>{if(r.viewport&&r.isPositioned){let a=function(){const c=u.scrollTop>0;i(c)};const u=r.viewport;return a(),u.addEventListener("scroll",a),()=>u.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?d.jsx(ih,{...e,ref:l,onAutoScroll:()=>{const{viewport:a,selectedItem:u}=r;a&&u&&(a.scrollTop=a.scrollTop-u.offsetHeight)}}):null});i4.displayName=Ou;var Pu="SelectScrollDownButton",l4=f.forwardRef((e,t)=>{const r=gr(Pu,e.__scopeSelect),o=Gc(Pu,e.__scopeSelect),[s,i]=f.useState(!1),l=ae(t,o.onScrollButtonChange);return lt(()=>{if(r.viewport&&r.isPositioned){let a=function(){const c=u.scrollHeight-u.clientHeight,p=Math.ceil(u.scrollTop)<c;i(p)};const u=r.viewport;return a(),u.addEventListener("scroll",a),()=>u.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?d.jsx(ih,{...e,ref:l,onAutoScroll:()=>{const{viewport:a,selectedItem:u}=r;a&&u&&(a.scrollTop=a.scrollTop+u.offsetHeight)}}):null});l4.displayName=Pu;var ih=f.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:o,...s}=e,i=gr("SelectScrollButton",r),l=f.useRef(null),a=na(r),u=f.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return f.useEffect(()=>()=>u(),[u]),lt(()=>{var c;const p=a().find(m=>m.ref.current===document.activeElement);(c=p?.ref.current)==null||c.scrollIntoView({block:"nearest"})},[a]),d.jsx(ee.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:q(s.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(o,50))}),onPointerMove:q(s.onPointerMove,()=>{var c;(c=i.onItemLeave)==null||c.call(i),l.current===null&&(l.current=window.setInterval(o,50))}),onPointerLeave:q(s.onPointerLeave,()=>{u()})})}),a4="SelectSeparator",u4=f.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e;return d.jsx(ee.div,{"aria-hidden":!0,...o,ref:t})});u4.displayName=a4;var Fu="SelectArrow",c4=f.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,s=ra(r),i=hr(Fu,r),l=gr(Fu,r);return i.open&&l.position==="popper"?d.jsx(Ul,{...s,...o,ref:t}):null});c4.displayName=Fu;function lh(e){return e===""||e===void 0}var ah=f.forwardRef((e,t)=>{const{value:r,...o}=e,s=f.useRef(null),i=ae(t,s),l=nb(r);return f.useEffect(()=>{const a=s.current,u=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(u,"value").set;if(l!==r&&p){const m=new Event("change",{bubbles:!0});p.call(a,r),a.dispatchEvent(m)}},[l,r]),d.jsx(Nc,{asChild:!0,children:d.jsx("select",{...o,ref:i,defaultValue:r})})});ah.displayName="BubbleSelect";function uh(e){const t=Ye(e),r=f.useRef(""),o=f.useRef(0),s=f.useCallback(l=>{const a=r.current+l;t(a),(function u(c){r.current=c,window.clearTimeout(o.current),c!==""&&(o.current=window.setTimeout(()=>u(""),1e3))})(a)},[t]),i=f.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,s,i]}function ch(e,t,r){const s=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let l=d4(e,Math.max(i,0));s.length===1&&(l=l.filter(c=>c!==r));const u=l.find(c=>c.textValue.toLowerCase().startsWith(s.toLowerCase()));return u!==r?u:void 0}function d4(e,t){return e.map((r,o)=>e[(t+o)%e.length])}var f4=qm,p4=Gm,m4=Ym,h4=Hm,g4=Vm,x4=Qm,y4=eh,v4=rh,b4=oh;const w4="default";function oa({value:e,placeholder:t,size:r=w4,icon:o,onChange:s,onKeyDown:i,hasClear:l=!1,customStyle:a}){const[u,c]=f.useState(!1),p=f.useRef(null),m=x=>{s(x.target.value)},g=()=>{c(!0)},h=x=>{p.current==null||x.relatedTarget!==p.current?c(!1):x.target.focus()};return d.jsxs("div",{...A.props(rs.main,u&&rs.focused,C4[r],a),children:[o&&d.jsx(ie,{name:o,color:"secondary"}),d.jsx("input",{...A.props(Y.body,rs.input),value:e,placeholder:t,onChange:m,onFocus:g,onBlur:h,onKeyDown:i}),l&&d.jsx("button",{...A.props(Y.supporting,rs.actionButton,e===""&&rs.hidden),ref:p,onClick:()=>s(""),tabIndex:0,children:"Clear"})]})}const rs={main:{display:"mly78zum5",alignItems:"mly6s0dn4",justifyContent:"mly1nhvcw1",background:"mlyotlr4g",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,border:"mly520xni",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,boxShadow:"mlyk1e6ed",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},focused:{borderColor:"mly1y5yj0f",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,boxShadow:"mlyg48p7p",$$css:!0},input:{flexGrow:"mly1iyjqo2",height:"mly1qx5ct2",minWidth:"mlygc0pbm",padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderStyle:"mlyng3xce",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,"::placeholder_color":"mly1njml60",$$css:!0},actionButton:{display:"mly3nfvp2",borderWidth:"mlyc342km",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,background:"mly1md70p1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,marginLeft:"mly1iog12x",marginInlineStart:null,marginInlineEnd:null,cursor:"mly1ypdohk",color:"mlykfrnou",$$css:!0},hidden:{visibility:"mlylshs6z",$$css:!0}},C4={default:{padding:"mly153ncpu",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},compact:{padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}};function sa({value:e,onChange:t,icon:r,color:o=Fo,size:s=qc,items:i,isSearchable:l=!1,customStyle:a}){var u;const[c,p]=f.useState(""),m=f.useMemo(()=>c?i.filter(x=>x.label.toLowerCase().includes(c.toLowerCase())):i,[i,c]),g=x=>{t(x)},h=(u=i.find(x=>x.value===e))==null?void 0:u.label;return d.jsxs(f4,{value:e,onValueChange:g,required:!0,children:[d.jsxs(p4,{...A.props(sr.main,ms.selectTrigger,$c[o],zc[s],a),children:[r&&d.jsx(ie,{name:r,customStyle:sr.icon}),d.jsx(m4,{asChild:!0,children:d.jsx("div",{...A.props(Y.body,sr.label),children:h})})]}),d.jsx(h4,{children:d.jsx(g4,{side:"bottom",position:"popper",sideOffset:4,children:d.jsxs(x4,{className:"mly4pepcl mlyotlr4g mly17fq3gk",children:[l&&d.jsx(oa,{value:c,onChange:x=>p(x),placeholder:"Search",size:"compact",icon:"search",hasClear:!0,customStyle:ms.searchInput,onKeyDown:x=>{["ArrowUp","ArrowDown"].includes(x.key)||setTimeout(()=>{x.target.focus()},10)}}),d.jsx(y4,{className:"mly78zum5 mlydt5ytf mlyuyqlj2 mlyfawy5m mly195vfkc mlyysyzu8",children:m.map(x=>d.jsx(_4,{value:x.value,selectedValue:e,children:x.label},x.value))})]})})})]})}function _4({children:e,value:t,selectedValue:r,...o}){return d.jsxs(v4,{...A.props(Y.body,ms.selectItem),value:t,...o,children:[t===r?d.jsx(ie,{name:"radioChecked",customStyle:ms.radioChecked}):d.jsx(ie,{name:"radioUnchecked",customStyle:ms.radioUnchecked}),d.jsx(b4,{children:e})]})}const ms={selectTrigger:{whiteSpace:"mlyuxw1ft",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0},selectItem:{display:"mly78zum5",alignItems:"mly6s0dn4",padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,cursor:"mly1ypdohk",outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,":is([data-highlighted])_background":"mly1bw6wve",":is([data-highlighted])_backgroundAttachment":null,":is([data-highlighted])_backgroundClip":null,":is([data-highlighted])_backgroundColor":null,":is([data-highlighted])_backgroundImage":null,":is([data-highlighted])_backgroundOrigin":null,":is([data-highlighted])_backgroundPosition":null,":is([data-highlighted])_backgroundPositionX":null,":is([data-highlighted])_backgroundPositionY":null,":is([data-highlighted])_backgroundRepeat":null,":is([data-highlighted])_backgroundSize":null,':is([data-state="checked"])_background':"mlyamyxth mlyejs3c0",':is([data-state="checked"])_backgroundAttachment':null,':is([data-state="checked"])_backgroundClip':null,':is([data-state="checked"])_backgroundColor':null,':is([data-state="checked"])_backgroundImage':null,':is([data-state="checked"])_backgroundOrigin':null,':is([data-state="checked"])_backgroundPosition':null,':is([data-state="checked"])_backgroundPositionX':null,':is([data-state="checked"])_backgroundPositionY':null,':is([data-state="checked"])_backgroundRepeat':null,':is([data-state="checked"])_backgroundSize':null,$$css:!0},radioChecked:{color:"mlykfrnou",$$css:!0},radioUnchecked:{color:"mlyj5j7qc",$$css:!0},searchInput:{borderRadius:"mly4pepcl",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0}};function S4({header:e,children:t,customStyle:r}){return d.jsxs("div",{...A.props(k4.container,r),children:[d.jsx("div",{className:"mly1717udv",children:e}),d.jsx("div",{className:"mly1y1aw1k mly1iyjqo2 mly78zum5",children:t})]})}const k4={container:{display:"mly78zum5",flexDirection:"mlydt5ytf",background:"mly17eh757",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mly4pepcl",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderStyle:"mly1y0btm7",borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderWidth:"mlymkeg23",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderColor:"mly17v018m",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mlyc7ga6q",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,flexShrink:"mly2lah0s",$$css:!0}};function Uc({title:e,children:t,icon:r,defaultOpen:o=!0,controls:s,collapsedControls:i,isFocused:l=!1}){const[a,u]=f.useState(o);return d.jsxs("div",{...{0:{className:"mlygbc89k mly1sxf85j mly1717udv"},1:{className:"mly1sxf85j mly1717udv mlybwr872"}}[!!l<<0],children:[d.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mly52fmzj mlylqzeqv mlyfawy5m mly167g77z mly6s0dn4",children:[d.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mlylqzeqv mly6s0dn4 mly167g77z",children:[r&&d.jsx(ie,{name:r,customStyle:E4.icon}),d.jsx("div",{className:"mlyuxw1ft mlyb3r6kr mlylyipyv mlyehqz9p mly1ghz6dp mly117nqv4",children:e})]}),d.jsxs("div",{className:"mly78zum5",children:[a?d.jsx("div",{className:"mly78zum5 mly6s0dn4 mly1jnr06f",children:s}):d.jsx("div",{className:"mly78zum5 mly6s0dn4 mly1jnr06f",children:i}),d.jsx(ke,{variant:"flat",size:"compact",onClick:()=>u(!a),icon:a?"chevronDown":"chevronRight",tooltip:a?"Collapse":"Expand"})]})]}),d.jsx("div",{...{0:{className:"mly1l4tkcb"},1:{className:"mly1l4tkcb mly1s85apg"}}[!a<<0],children:t})]})}const E4={icon:{$$css:!0}};function R4({label:e,sublabel:t,children:r,isInitiallyExpanded:o=!1}){const[s,i]=f.useState(o),l=()=>{i(a=>!a)};return d.jsxs("div",{children:[d.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mly6s0dn4 mlylqzeqv mlye8ttls mly167g77z mlyur7f20 mly1ypdohk mly1haqvef",onClick:l,children:[s?d.jsx(ie,{name:"chevronDown",color:"secondary"}):d.jsx(ie,{name:"chevronRight",color:"secondary"}),d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly1iyjqo2 mlyb3r6kr",children:[d.jsx("span",{...A.props(Y.body,pf.label),children:e}),t&&d.jsx("span",{...A.props(Y.supporting,pf.sublabel),children:t})]})]}),s&&d.jsx("div",{className:"mly78zum5 mlydt5ytf mly92jh8x mly1jnr06f",children:f.Children.map(r,a=>a)})]})}const pf={label:{flexGrow:"mly1iyjqo2",fontWeight:"mly1xlr1w8",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0},sublabel:{flexGrow:"mly1iyjqo2",color:"mly9dwj6z",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0}},A4={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},T4={single:"1em",double:"2em"},j4=({lineSpacing:e})=>({line(t){const r=[...Array.isArray(t.properties.style)?t.properties.style:typeof t.properties.style=="string"?[t.properties.style]:[]];r.push(`line-height: ${T4[e]};`),t.properties.style=r}}),D4=({showLineNumbers:e})=>{if(e)return{line(t,r){const o={type:"element",tagName:"span",children:[{type:"text",value:`${r}`}],properties:{style:["color: rgba(115, 138, 148, 0.4);","margin-right: 35px;","width: 1px;","display: inline-block;","user-select: none"]}};t.children.unshift(o)}}},L4=[j4,D4];function N4(e){return L4.map(t=>t(e)).filter(t=>t!==void 0)}let st=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function M4(e){return Yc(e)}function Yc(e){return Array.isArray(e)?I4(e):e instanceof RegExp?e:typeof e=="object"?O4(e):e}function I4(e){let t=[];for(let r=0,o=e.length;r<o;r++)t[r]=Yc(e[r]);return t}function O4(e){let t={};for(let r in e)t[r]=Yc(e[r]);return t}function dh(e,...t){return t.forEach(r=>{for(let o in r)e[o]=r[o]}),e}function fh(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?fh(e.substring(0,e.length-1)):e.substr(~t+1)}var Va=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ji=class{static hasCaptures(e){return e===null?!1:(Va.lastIndex=0,Va.test(e))}static replaceCaptures(e,t,r){return e.replace(Va,(o,s,i,l)=>{let a=r[parseInt(s||i,10)];if(a){let u=t.substring(a.start,a.end);for(;u[0]===".";)u=u.substring(1);switch(l){case"downcase":return u.toLowerCase();case"upcase":return u.toUpperCase();default:return u}}else return o})}};function ph(e,t){return e<t?-1:e>t?1:0}function mh(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,o=t.length;if(r===o){for(let s=0;s<r;s++){let i=ph(e[s],t[s]);if(i!==0)return i}return 0}return r-o}function mf(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function hh(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var gh=class{constructor(e){L(this,"cache",new Map),this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},pl=class{constructor(e,t,r){L(this,"_cachedMatchRoot",new gh(o=>this._root.match(o))),this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(B4(e),t)}static createFromParsedTheme(e,t){return z4(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,o=this._cachedMatchRoot.get(t).find(s=>P4(e.parent,s.parentScopes));return o?new xh(o.fontStyle,o.foreground,o.background):null}},Xa=class Zi{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(const o of r)t=new Zi(t,o);return t}static from(...t){let r=null;for(let o=0;o<t.length;o++)r=new Zi(r,t[o]);return r}push(t){return new Zi(this,t)}getSegments(){let t=this;const r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const r=[];let o=this;for(;o&&o!==t;)r.push(o.scopeName),o=o.parent;return o===t?r.reverse():void 0}};function P4(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let o=t[r],s=!1;if(o===">"){if(r===t.length-1)return!1;o=t[++r],s=!0}for(;e&&!F4(e.scopeName,o);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function F4(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var xh=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function B4(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],o=0;for(let s=0,i=t.length;s<i;s++){let l=t[s];if(!l.settings)continue;let a;if(typeof l.scope=="string"){let m=l.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),a=m.split(",")}else Array.isArray(l.scope)?a=l.scope:a=[""];let u=-1;if(typeof l.settings.fontStyle=="string"){u=0;let m=l.settings.fontStyle.split(" ");for(let g=0,h=m.length;g<h;g++)switch(m[g]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let c=null;typeof l.settings.foreground=="string"&&mf(l.settings.foreground)&&(c=l.settings.foreground);let p=null;typeof l.settings.background=="string"&&mf(l.settings.background)&&(p=l.settings.background);for(let m=0,g=a.length;m<g;m++){let x=a[m].trim().split(" "),v=x[x.length-1],y=null;x.length>1&&(y=x.slice(0,x.length-1),y.reverse()),r[o++]=new $4(v,y,s,u,c,p)}}return r}var $4=class{constructor(e,t,r,o,s,i){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=o,this.foreground=s,this.background=i}},An=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(An||{});function z4(e,t){e.sort((u,c)=>{let p=ph(u.scope,c.scope);return p!==0||(p=mh(u.parentScopes,c.parentScopes),p!==0)?p:u.index-c.index});let r=0,o="#000000",s="#ffffff";for(;e.length>=1&&e[0].scope==="";){let u=e.shift();u.fontStyle!==-1&&(r=u.fontStyle),u.foreground!==null&&(o=u.foreground),u.background!==null&&(s=u.background)}let i=new q4(t),l=new xh(r,i.getId(o),i.getId(s)),a=new G4(new Bu(0,null,-1,0,0),[]);for(let u=0,c=e.length;u<c;u++){let p=e[u];a.insert(0,p.scope,p.parentScopes,p.fontStyle,i.getId(p.foreground),i.getId(p.background))}return new pl(i,l,a)}var q4=class{constructor(e){if(L(this,"_isFrozen"),L(this,"_lastColorId"),L(this,"_id2color"),L(this,"_color2id"),this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},W4=Object.freeze([]),Bu=class yh{constructor(t,r,o,s,i){L(this,"scopeDepth"),L(this,"parentScopes"),L(this,"fontStyle"),L(this,"foreground"),L(this,"background"),this.scopeDepth=t,this.parentScopes=r||W4,this.fontStyle=o,this.foreground=s,this.background=i}clone(){return new yh(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let o=0,s=t.length;o<s;o++)r[o]=t[o].clone();return r}acceptOverwrite(t,r,o,s){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),o!==0&&(this.foreground=o),s!==0&&(this.background=s)}},G4=class $u{constructor(t,r=[],o={}){L(this,"_rulesWithParentScopes"),this._mainRule=t,this._children=o,this._rulesWithParentScopes=r}static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let o=0,s=0;for(;t.parentScopes[o]===">"&&o++,r.parentScopes[s]===">"&&s++,!(o>=t.parentScopes.length||s>=r.parentScopes.length);){const i=r.parentScopes[s].length-t.parentScopes[o].length;if(i!==0)return i;o++,s++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let o=t.indexOf("."),s,i;if(o===-1?(s=t,i=""):(s=t.substring(0,o),i=t.substring(o+1)),this._children.hasOwnProperty(s))return this._children[s].match(i)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort($u._cmpBySpecificity),r}insert(t,r,o,s,i,l){if(r===""){this._doInsertHere(t,o,s,i,l);return}let a=r.indexOf("."),u,c;a===-1?(u=r,c=""):(u=r.substring(0,a),c=r.substring(a+1));let p;this._children.hasOwnProperty(u)?p=this._children[u]:(p=new $u(this._mainRule.clone(),Bu.cloneArr(this._rulesWithParentScopes)),this._children[u]=p),p.insert(t+1,c,o,s,i,l)}_doInsertHere(t,r,o,s,i){if(r===null){this._mainRule.acceptOverwrite(t,o,s,i);return}for(let l=0,a=this._rulesWithParentScopes.length;l<a;l++){let u=this._rulesWithParentScopes[l];if(mh(u.parentScopes,r)===0){u.acceptOverwrite(t,o,s,i);return}}o===-1&&(o=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Bu(t,r,o,s,i))}},vo=class kt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const r=kt.getLanguageId(t),o=kt.getTokenType(t),s=kt.getFontStyle(t),i=kt.getForeground(t),l=kt.getBackground(t);console.log({languageId:r,tokenType:o,fontStyle:s,foreground:i,background:l})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,o,s,i,l,a){let u=kt.getLanguageId(t),c=kt.getTokenType(t),p=kt.containsBalancedBrackets(t)?1:0,m=kt.getFontStyle(t),g=kt.getForeground(t),h=kt.getBackground(t);return r!==0&&(u=r),o!==8&&(c=o),s!==null&&(p=s?1:0),i!==-1&&(m=i),l!==0&&(g=l),a!==0&&(h=a),(u<<0|c<<8|p<<10|m<<11|g<<15|h<<24)>>>0}};function ml(e,t){const r=[],o=U4(e);let s=o.next();for(;s!==null;){let u=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":u=1;break;case"L":u=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=o.next()}let c=l();if(r.push({matcher:c,priority:u}),s!==",")break;s=o.next()}return r;function i(){if(s==="-"){s=o.next();const u=i();return c=>!!u&&!u(c)}if(s==="("){s=o.next();const u=a();return s===")"&&(s=o.next()),u}if(hf(s)){const u=[];do u.push(s),s=o.next();while(hf(s));return c=>t(u,c)}return null}function l(){const u=[];let c=i();for(;c;)u.push(c),c=i();return p=>u.every(m=>m(p))}function a(){const u=[];let c=l();for(;c&&(u.push(c),s==="|"||s===",");){do s=o.next();while(s==="|"||s===",");c=l()}return p=>u.some(m=>m(p))}}function hf(e){return!!e&&!!e.match(/[\w\.:]+/)}function U4(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;const o=r[0];return r=t.exec(e),o}}}function vh(e){typeof e.dispose=="function"&&e.dispose()}var As=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Y4=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},H4=class{constructor(){L(this,"_references",[]),L(this,"_seenReferenceKeys",new Set),L(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},V4=class{constructor(e,t){L(this,"seenFullScopeRequests",new Set),L(this,"seenPartialScopeRequests",new Set),L(this,"Q"),this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new As(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new H4;for(const r of e)X4(r,this.initialScopeName,this.repo,t);for(const r of t.references)if(r instanceof As){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function X4(e,t,r,o){const s=r.lookup(e.scopeName);if(!s){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const i=r.lookup(t);e instanceof As?Ki({baseGrammar:i,selfGrammar:s},o):zu(e.ruleName,{baseGrammar:i,selfGrammar:s,repository:s.repository},o);const l=r.injections(e.scopeName);if(l)for(const a of l)o.add(new As(a))}function zu(e,t,r){if(t.repository&&t.repository[e]){const o=t.repository[e];hl([o],t,r)}}function Ki(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&hl(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&hl(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function hl(e,t,r){for(const o of e){if(r.visitedRule.has(o))continue;r.visitedRule.add(o);const s=o.repository?dh({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&hl(o.patterns,{...t,repository:s},r);const i=o.include;if(!i)continue;const l=bh(i);switch(l.kind){case 0:Ki({...t,selfGrammar:t.baseGrammar},r);break;case 1:Ki(t,r);break;case 2:zu(l.ruleName,{...t,repository:s},r);break;case 3:case 4:const a=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const u={baseGrammar:t.baseGrammar,selfGrammar:a,repository:s};l.kind===4?zu(l.ruleName,u,r):Ki(u,r)}else l.kind===4?r.add(new Y4(l.scopeName,l.ruleName)):r.add(new As(l.scopeName));break}}}var Z4=class{constructor(){L(this,"kind",0)}},K4=class{constructor(){L(this,"kind",1)}},Q4=class{constructor(e){L(this,"kind",2),this.ruleName=e}},J4=class{constructor(e){L(this,"kind",3),this.scopeName=e}},e6=class{constructor(e,t){L(this,"kind",4),this.scopeName=e,this.ruleName=t}};function bh(e){if(e==="$base")return new Z4;if(e==="$self")return new K4;const t=e.indexOf("#");if(t===-1)return new J4(e);if(t===0)return new Q4(e.substring(1));{const r=e.substring(0,t),o=e.substring(t+1);return new e6(r,o)}}var t6=/\\(\d+)/,gf=/\\(\d+)/g,n6=-1,wh=-2;var ei=class{constructor(e,t,r,o){L(this,"$location"),L(this,"id"),L(this,"_nameIsCapturing"),L(this,"_name"),L(this,"_contentNameIsCapturing"),L(this,"_contentName"),this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=ji.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=ji.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${fh(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:ji.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ji.replaceCaptures(this._contentName,e,t)}},r6=class extends ei{constructor(e,t,r,o,s){super(e,t,r,o),L(this,"retokenizeCapturedWithRuleId"),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,o){throw new Error("Not supported!")}},o6=class extends ei{constructor(e,t,r,o,s){super(e,t,r,null),L(this,"_match"),L(this,"captures"),L(this,"_cachedCompiledPatterns"),this._match=new Ts(o,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e).compileAG(e,r,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new js,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},xf=class extends ei{constructor(e,t,r,o,s){super(e,t,r,o),L(this,"hasMissingPatterns"),L(this,"patterns"),L(this,"_cachedCompiledPatterns"),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e).compileAG(e,r,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new js,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},qu=class extends ei{constructor(e,t,r,o,s,i,l,a,u,c){super(e,t,r,o),L(this,"_begin"),L(this,"beginCaptures"),L(this,"_end"),L(this,"endHasBackReferences"),L(this,"endCaptures"),L(this,"applyEndPatternLast"),L(this,"hasMissingPatterns"),L(this,"patterns"),L(this,"_cachedCompiledPatterns"),this._begin=new Ts(s,this.id),this.beginCaptures=i,this._end=new Ts(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=u||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,o)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new js;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},gl=class extends ei{constructor(e,t,r,o,s,i,l,a,u){super(e,t,r,o),L(this,"_begin"),L(this,"beginCaptures"),L(this,"whileCaptures"),L(this,"_while"),L(this,"whileHasBackReferences"),L(this,"hasMissingPatterns"),L(this,"patterns"),L(this,"_cachedCompiledPatterns"),L(this,"_cachedCompiledWhilePatterns"),this._begin=new Ts(s,this.id),this.beginCaptures=i,this.whileCaptures=a,this._while=new Ts(l,wh),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e).compileAG(e,r,o)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new js;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,o){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,o)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new js,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},Ch=class nt{static createCaptureRule(t,r,o,s,i){return t.registerRule(l=>new r6(r,l,o,s,i))}static getCompiledRuleId(t,r,o){return t.id||r.registerRule(s=>{if(t.id=s,t.match)return new o6(t.$vscodeTextmateLocation,t.id,t.name,t.match,nt._compileCaptures(t.captures,r,o));if(typeof t.begin>"u"){t.repository&&(o=dh({},o,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new xf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,nt._compilePatterns(i,r,o))}return t.while?new gl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,nt._compileCaptures(t.beginCaptures||t.captures,r,o),t.while,nt._compileCaptures(t.whileCaptures||t.captures,r,o),nt._compilePatterns(t.patterns,r,o)):new qu(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,nt._compileCaptures(t.beginCaptures||t.captures,r,o),t.end,nt._compileCaptures(t.endCaptures||t.captures,r,o),t.applyEndPatternLast,nt._compilePatterns(t.patterns,r,o))}),t.id}static _compileCaptures(t,r,o){let s=[];if(t){let i=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const a=parseInt(l,10);a>i&&(i=a)}for(let l=0;l<=i;l++)s[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const a=parseInt(l,10);let u=0;t[l].patterns&&(u=nt.getCompiledRuleId(t[l],r,o)),s[a]=nt.createCaptureRule(r,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,u)}}return s}static _compilePatterns(t,r,o){let s=[];if(t)for(let i=0,l=t.length;i<l;i++){const a=t[i];let u=-1;if(a.include){const c=bh(a.include);switch(c.kind){case 0:case 1:u=nt.getCompiledRuleId(o[a.include],r,o);break;case 2:let p=o[c.ruleName];p&&(u=nt.getCompiledRuleId(p,r,o));break;case 3:case 4:const m=c.scopeName,g=c.kind===4?c.ruleName:null,h=r.getExternalGrammar(m,o);if(h)if(g){let x=h.repository[g];x&&(u=nt.getCompiledRuleId(x,r,h.repository))}else u=nt.getCompiledRuleId(h.repository.$self,r,h.repository);break}}else u=nt.getCompiledRuleId(a,r,o);if(u!==-1){const c=r.getRule(u);let p=!1;if((c instanceof xf||c instanceof qu||c instanceof gl)&&c.hasMissingPatterns&&c.patterns.length===0&&(p=!0),p)continue;s.push(u)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},Ts=class _h{constructor(t,r){if(L(this,"source"),L(this,"ruleId"),L(this,"hasAnchor"),L(this,"hasBackReferences"),L(this,"_anchorCache"),t&&typeof t=="string"){const o=t.length;let s=0,i=[],l=!1;for(let a=0;a<o;a++)if(t.charAt(a)==="\\"&&a+1<o){const c=t.charAt(a+1);c==="z"?(i.push(t.substring(s,a)),i.push("$(?!\\n)(?<!\\n)"),s=a+2):(c==="A"||c==="G")&&(l=!0),a++}this.hasAnchor=l,s===0?this.source=t:(i.push(t.substring(s,o)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=t6.test(this.source):this.hasBackReferences=!1}clone(){return new _h(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let o=r.map(s=>t.substring(s.start,s.end));return gf.lastIndex=0,this.source.replace(gf,(s,i)=>hh(o[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],r=[],o=[],s=[],i,l,a,u;for(i=0,l=this.source.length;i<l;i++)a=this.source.charAt(i),t[i]=a,r[i]=a,o[i]=a,s[i]=a,a==="\\"&&i+1<l&&(u=this.source.charAt(i+1),u==="A"?(t[i+1]="",r[i+1]="",o[i+1]="A",s[i+1]="A"):u==="G"?(t[i+1]="",r[i+1]="G",o[i+1]="",s[i+1]="G"):(t[i+1]=u,r[i+1]=u,o[i+1]=u,s[i+1]=u),i++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:o.join(""),A1_G1:s.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},js=class{constructor(){L(this,"_items"),L(this,"_hasAnchors"),L(this,"_cached"),L(this,"_anchorCache"),this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(r=>r.source);this._cached=new yf(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let o=this._items.map(s=>s.resolveAnchors(t,r));return new yf(e,o,this._items.map(s=>s.ruleId))}},yf=class{constructor(e,t,r){L(this,"scanner"),this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
118
118
|
`)}findNextMatchSync(e,t,r){const o=this.scanner.findNextMatchSync(e,t,r);return o?{ruleId:this.rules[o.index],captureIndices:o.captureIndices}:null}},Za=class{constructor(e,t){this.languageId=e,this.tokenType=t}},s6=(Ur=class{constructor(e,t){L(this,"_defaultAttributes"),L(this,"_embeddedLanguagesMatcher"),L(this,"_getBasicScopeAttributes",new gh(r=>{const o=this._scopeToLanguage(r),s=this._toStandardTokenType(r);return new Za(o,s)})),this._defaultAttributes=new Za(e,8),this._embeddedLanguagesMatcher=new i6(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Ur._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(Ur.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},L(Ur,"_NULL_SCOPE_METADATA",new Za(0,0)),L(Ur,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Ur),i6=class{constructor(e){if(L(this,"values"),L(this,"scopesRegExp"),e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([r,o])=>hh(r));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},vf=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Sh(e,t,r,o,s,i,l,a){const u=t.content.length;let c=!1,p=-1;if(l){const h=l6(e,t,r,o,s,i);s=h.stack,o=h.linePos,r=h.isFirstLine,p=h.anchorPosition}const m=Date.now();for(;!c;){if(a!==0&&Date.now()-m>a)return new vf(s,!0);g()}return new vf(s,!1);function g(){const h=a6(e,t,r,o,s,p);if(!h){i.produce(s,u),c=!0;return}const x=h.captureIndices,v=h.matchedRuleId,y=x&&x.length>0?x[0].end>o:!1;if(v===n6){const b=s.getRule(e);i.produce(s,x[0].start),s=s.withContentNameScopesList(s.nameScopesList),fs(e,t,r,s,i,b.endCaptures,x),i.produce(s,x[0].end);const w=s;if(s=s.parent,p=w.getAnchorPos(),!y&&w.getEnterPos()===o){s=w,i.produce(s,u),c=!0;return}}else{const b=e.getRule(v);i.produce(s,x[0].start);const w=s,C=b.getName(t.content,x),_=s.contentNameScopesList.pushAttributed(C,e);if(s=s.push(v,o,p,x[0].end===u,null,_,_),b instanceof qu){const k=b;fs(e,t,r,s,i,k.beginCaptures,x),i.produce(s,x[0].end),p=x[0].end;const E=k.getContentName(t.content,x),R=_.pushAttributed(E,e);if(s=s.withContentNameScopesList(R),k.endHasBackReferences&&(s=s.withEndRule(k.getEndWithResolvedBackReferences(t.content,x))),!y&&w.hasSameRuleAs(s)){s=s.pop(),i.produce(s,u),c=!0;return}}else if(b instanceof gl){const k=b;fs(e,t,r,s,i,k.beginCaptures,x),i.produce(s,x[0].end),p=x[0].end;const E=k.getContentName(t.content,x),R=_.pushAttributed(E,e);if(s=s.withContentNameScopesList(R),k.whileHasBackReferences&&(s=s.withEndRule(k.getWhileWithResolvedBackReferences(t.content,x))),!y&&w.hasSameRuleAs(s)){s=s.pop(),i.produce(s,u),c=!0;return}}else if(fs(e,t,r,s,i,b.captures,x),i.produce(s,x[0].end),s=s.pop(),!y){s=s.safePop(),i.produce(s,u),c=!0;return}}x[0].end>o&&(o=x[0].end,r=!1)}}function l6(e,t,r,o,s,i){let l=s.beginRuleCapturedEOL?0:-1;const a=[];for(let u=s;u;u=u.pop()){const c=u.getRule(e);c instanceof gl&&a.push({rule:c,stack:u})}for(let u=a.pop();u;u=a.pop()){const{ruleScanner:c,findOptions:p}=d6(u.rule,e,u.stack.endRule,r,o===l),m=c.findNextMatchSync(t,o,p);if(m){if(m.ruleId!==wh){s=u.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(u.stack,m.captureIndices[0].start),fs(e,t,r,u.stack,i,u.rule.whileCaptures,m.captureIndices),i.produce(u.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>o&&(o=m.captureIndices[0].end,r=!1))}else{s=u.stack.pop();break}}return{stack:s,linePos:o,anchorPosition:l,isFirstLine:r}}function a6(e,t,r,o,s,i){const l=u6(e,t,r,o,s,i),a=e.getInjections();if(a.length===0)return l;const u=c6(a,e,t,r,o,s,i);if(!u)return l;if(!l)return u;const c=l.captureIndices[0].start,p=u.captureIndices[0].start;return p<c||u.priorityMatch&&p===c?u:l}function u6(e,t,r,o,s,i){const l=s.getRule(e),{ruleScanner:a,findOptions:u}=kh(l,e,s.endRule,r,o===i),c=a.findNextMatchSync(t,o,u);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function c6(e,t,r,o,s,i,l){let a=Number.MAX_VALUE,u=null,c,p=0;const m=i.contentNameScopesList.getScopeNames();for(let g=0,h=e.length;g<h;g++){const x=e[g];if(!x.matcher(m))continue;const v=t.getRule(x.ruleId),{ruleScanner:y,findOptions:b}=kh(v,t,null,o,s===l),w=y.findNextMatchSync(r,s,b);if(!w)continue;const C=w.captureIndices[0].start;if(!(C>=a)&&(a=C,u=w.captureIndices,c=w.ruleId,p=x.priority,a===s))break}return u?{priorityMatch:p===-1,captureIndices:u,matchedRuleId:c}:null}function kh(e,t,r,o,s){return{ruleScanner:e.compileAG(t,r,o,s),findOptions:0}}function d6(e,t,r,o,s){return{ruleScanner:e.compileWhileAG(t,r,o,s),findOptions:0}}function fs(e,t,r,o,s,i,l){if(i.length===0)return;const a=t.content,u=Math.min(i.length,l.length),c=[],p=l[0].end;for(let m=0;m<u;m++){const g=i[m];if(g===null)continue;const h=l[m];if(h.length===0)continue;if(h.start>p)break;for(;c.length>0&&c[c.length-1].endPos<=h.start;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?s.produceFromScopes(c[c.length-1].scopes,h.start):s.produce(o,h.start),g.retokenizeCapturedWithRuleId){const v=g.getName(a,l),y=o.contentNameScopesList.pushAttributed(v,e),b=g.getContentName(a,l),w=y.pushAttributed(b,e),C=o.push(g.retokenizeCapturedWithRuleId,h.start,-1,!1,null,y,w),_=e.createOnigString(a.substring(0,h.end));Sh(e,_,r&&h.start===0,h.start,C,s,!1,0),vh(_);continue}const x=g.getName(a,l);if(x!==null){const y=(c.length>0?c[c.length-1].scopes:o.contentNameScopesList).pushAttributed(x,e);c.push(new f6(y,h.end))}}for(;c.length>0;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var f6=class{constructor(e,t){L(this,"scopes"),L(this,"endPos"),this.scopes=e,this.endPos=t}};function p6(e,t,r,o,s,i,l,a){return new h6(e,t,r,o,s,i,l,a)}function bf(e,t,r,o,s){const i=ml(t,xl),l=Ch.getCompiledRuleId(r,o,s.repository);for(const a of i)e.push({debugSelector:t,matcher:a.matcher,ruleId:l,grammar:s,priority:a.priority})}function xl(e,t){if(t.length<e.length)return!1;let r=0;return e.every(o=>{for(let s=r;s<t.length;s++)if(m6(t[s],o))return r=s+1,!0;return!1})}function m6(e,t){if(!e)return!1;if(e===t)return!0;const r=t.length;return e.length>r&&e.substr(0,r)===t&&e[r]==="."}var h6=class{constructor(e,t,r,o,s,i,l,a){if(L(this,"_rootId"),L(this,"_lastRuleId"),L(this,"_ruleId2desc"),L(this,"_includedGrammars"),L(this,"_grammarRepository"),L(this,"_grammar"),L(this,"_injections"),L(this,"_basicScopeAttributesProvider"),L(this,"_tokenTypeMatchers"),this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=a,this._basicScopeAttributesProvider=new s6(r,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=wf(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const u of Object.keys(s)){const c=ml(u,xl);for(const p of c)this._tokenTypeMatchers.push({matcher:p.matcher,type:s[u]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},t=[],r=this._rootScopeName,o=e.lookup(r);if(o){const s=o.injections;if(s)for(let l in s)bf(t,l,s[l],this,o);const i=this._grammarRepository.injections(r);i&&i.forEach(l=>{const a=this.getExternalGrammar(l);if(a){const u=a.injectionSelector;u&&bf(t,u,a,this,a)}})}return t.sort((s,i)=>s.priority-i.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=wf(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){const o=this._tokenize(e,t,!1,r);return{tokens:o.lineTokens.getResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}tokenizeLine2(e,t,r=0){const o=this._tokenize(e,t,!0,r);return{tokens:o.lineTokens.getBinaryResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}_tokenize(e,t,r,o){this._rootId===-1&&(this._rootId=Ch.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===Wu.NULL){s=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),m=vo.set(0,c.languageId,c.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),g=this.getRule(this._rootId).getName(null,null);let h;g?h=hs.createRootAndLookUpScopeName(g,m,this):h=hs.createRoot("unknown",m),t=new Wu(null,this._rootId,-1,-1,!1,null,h,h)}else s=!1,t.reset();e=e+`
|
|
119
119
|
`;const i=this.createOnigString(e),l=i.content.length,a=new x6(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),u=Sh(this,i,s,0,t,a,!0,o);return vh(i),{lineLength:l,lineTokens:a,ruleStack:u.stack,stoppedEarly:u.stoppedEarly}}};function wf(e,t){return e=M4(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var hs=class sn{constructor(t,r,o){this.parent=t,this.scopePath=r,this.tokenAttributes=o}static fromExtension(t,r){let o=t,s=t?.scopePath??null;for(const i of r)s=Xa.push(s,i.scopeNames),o=new sn(o,s,i.encodedTokenAttributes);return o}static createRoot(t,r){return new sn(null,new Xa(null,t),r)}static createRootAndLookUpScopeName(t,r,o){const s=o.getMetadataForScope(t),i=new Xa(null,t),l=o.themeProvider.themeMatch(i),a=sn.mergeAttributes(r,s,l);return new sn(null,i,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return sn.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,o){let s=-1,i=0,l=0;return o!==null&&(s=o.fontStyle,i=o.foregroundId,l=o.backgroundId),vo.set(t,r.languageId,r.tokenType,null,s,i,l)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return sn._pushAttributed(this,t,r);const o=t.split(/ /g);let s=this;for(const i of o)s=sn._pushAttributed(s,i,r);return s}static _pushAttributed(t,r,o){const s=o.getMetadataForScope(r),i=t.scopePath.push(r),l=o.themeProvider.themeMatch(i),a=sn.mergeAttributes(t.tokenAttributes,s,l);return new sn(t,i,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var r;const o=[];let s=this;for(;s&&s!==t;)o.push({encodedTokenAttributes:s.tokenAttributes,scopeNames:s.scopePath.getExtensionIfDefined(((r=s.parent)==null?void 0:r.scopePath)??null)}),s=s.parent;return s===t?o.reverse():void 0}},Wu=(wn=class{constructor(e,t,r,o,s,i,l,a){L(this,"_stackElementBrand"),L(this,"_enterPos"),L(this,"_anchorPos"),L(this,"depth"),this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=i,this.nameScopesList=l,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=o}equals(e){return e===null?!1:wn._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?hs.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){wn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,r,o,s,i,l){return new wn(this,e,t,r,o,s,i,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var r,o;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(o=this.contentNameScopesList)==null?void 0:o.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new wn(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const r=hs.fromExtension(e?.nameScopesList??null,t.nameScopesList);return new wn(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,r,hs.fromExtension(r,t.contentNameScopesList))}},L(wn,"NULL",new wn(null,0,0,0,!1,null,null,null)),wn),g6=class{constructor(e,t){L(this,"balancedBracketScopes"),L(this,"unbalancedBracketScopes"),L(this,"allowAny",!1),this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):ml(r,xl).map(o=>o.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>ml(r,xl).map(o=>o.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},x6=class{constructor(e,t,r,o){L(this,"_emitBinaryTokens"),L(this,"_lineText"),L(this,"_tokens"),L(this,"_binaryTokens"),L(this,"_lastTokenEndIndex"),L(this,"_tokenTypeOverrides"),this.balancedBracketSelectors=o,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=e?.tokenAttributes??0,i=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const l=e?.getScopeNames()??[];for(const a of this._tokenTypeOverrides)a.matcher(l)&&(s=vo.set(s,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(l))}if(i&&(s=vo.set(s,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),this._lastTokenEndIndex=t;return}const o=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:o}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let o=0,s=this._binaryTokens.length;o<s;o++)r[o]=this._binaryTokens[o];return r}},y6=class{constructor(e,t){L(this,"_grammars",new Map),L(this,"_rawGrammars",new Map),L(this,"_injectionGrammars",new Map),L(this,"_theme"),this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,o,s){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,p6(e,i,t,r,o,s,this,this._onigLib))}return this._grammars.get(e)}},v6=class{constructor(t){L(this,"_options"),L(this,"_syncRegistry"),L(this,"_ensureGrammarCache"),this._options=t,this._syncRegistry=new y6(pl.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,r){this._syncRegistry.setTheme(pl.createFromRawTheme(t,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,r,o){return this.loadGrammarWithConfiguration(t,r,{embeddedLanguages:o})}loadGrammarWithConfiguration(t,r,o){return this._loadGrammar(t,r,o.embeddedLanguages,o.tokenTypes,new g6(o.balancedBracketSelectors||[],o.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,r,o,s,i){const l=new V4(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(a=>this._loadSingleGrammar(a.scopeName)),l.processQueue();return this._grammarForScopeName(t,r,o,s,i)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const r=this._options.loadGrammar(t);if(r){const o=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(r,o)}}addGrammar(t,r=[],o=0,s=null){return this._syncRegistry.addGrammar(t,r),this._grammarForScopeName(t.scopeName,o,s)}_grammarForScopeName(t,r=0,o=null,s=null,i=null){return this._syncRegistry.grammarForScopeName(t,r,o,s,i)}},Gu=Wu.NULL;const b6=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class ti{constructor(t,r,o){this.normal=r,this.property=t,o&&(this.space=o)}}ti.prototype.normal={};ti.prototype.property={};ti.prototype.space=void 0;function Eh(e,t){const r={},o={};for(const s of e)Object.assign(r,s.property),Object.assign(o,s.normal);return new ti(r,o,t)}function Uu(e){return e.toLowerCase()}class ft{constructor(t,r){this.attribute=r,this.property=t}}ft.prototype.attribute="";ft.prototype.booleanish=!1;ft.prototype.boolean=!1;ft.prototype.commaOrSpaceSeparated=!1;ft.prototype.commaSeparated=!1;ft.prototype.defined=!1;ft.prototype.mustUseProperty=!1;ft.prototype.number=!1;ft.prototype.overloadedBoolean=!1;ft.prototype.property="";ft.prototype.spaceSeparated=!1;ft.prototype.space=void 0;let w6=0;const re=Nr(),We=Nr(),Rh=Nr(),F=Nr(),Ee=Nr(),uo=Nr(),yt=Nr();function Nr(){return 2**++w6}const Yu=Object.freeze(Object.defineProperty({__proto__:null,boolean:re,booleanish:We,commaOrSpaceSeparated:yt,commaSeparated:uo,number:F,overloadedBoolean:Rh,spaceSeparated:Ee},Symbol.toStringTag,{value:"Module"})),Ka=Object.keys(Yu);class Hc extends ft{constructor(t,r,o,s){let i=-1;if(super(t,r),Cf(this,"space",s),typeof o=="number")for(;++i<Ka.length;){const l=Ka[i];Cf(this,Ka[i],(o&Yu[l])===Yu[l])}}}Hc.prototype.defined=!0;function Cf(e,t,r){r&&(e[t]=r)}function $o(e){const t={},r={};for(const[o,s]of Object.entries(e.properties)){const i=new Hc(o,e.transform(e.attributes||{},o),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(i.mustUseProperty=!0),t[o]=i,r[Uu(o)]=o,r[Uu(i.attribute)]=o}return new ti(t,r,e.space)}const Ah=$o({properties:{ariaActiveDescendant:null,ariaAtomic:We,ariaAutoComplete:null,ariaBusy:We,ariaChecked:We,ariaColCount:F,ariaColIndex:F,ariaColSpan:F,ariaControls:Ee,ariaCurrent:null,ariaDescribedBy:Ee,ariaDetails:null,ariaDisabled:We,ariaDropEffect:Ee,ariaErrorMessage:null,ariaExpanded:We,ariaFlowTo:Ee,ariaGrabbed:We,ariaHasPopup:null,ariaHidden:We,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ee,ariaLevel:F,ariaLive:null,ariaModal:We,ariaMultiLine:We,ariaMultiSelectable:We,ariaOrientation:null,ariaOwns:Ee,ariaPlaceholder:null,ariaPosInSet:F,ariaPressed:We,ariaReadOnly:We,ariaRelevant:null,ariaRequired:We,ariaRoleDescription:Ee,ariaRowCount:F,ariaRowIndex:F,ariaRowSpan:F,ariaSelected:We,ariaSetSize:F,ariaSort:null,ariaValueMax:F,ariaValueMin:F,ariaValueNow:F,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Th(e,t){return t in e?e[t]:t}function jh(e,t){return Th(e,t.toLowerCase())}const C6=$o({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:uo,acceptCharset:Ee,accessKey:Ee,action:null,allow:null,allowFullScreen:re,allowPaymentRequest:re,allowUserMedia:re,alt:null,as:null,async:re,autoCapitalize:null,autoComplete:Ee,autoFocus:re,autoPlay:re,blocking:Ee,capture:null,charSet:null,checked:re,cite:null,className:Ee,cols:F,colSpan:null,content:null,contentEditable:We,controls:re,controlsList:Ee,coords:F|uo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:re,defer:re,dir:null,dirName:null,disabled:re,download:Rh,draggable:We,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:re,formTarget:null,headers:Ee,height:F,hidden:re,high:F,href:null,hrefLang:null,htmlFor:Ee,httpEquiv:Ee,id:null,imageSizes:null,imageSrcSet:null,inert:re,inputMode:null,integrity:null,is:null,isMap:re,itemId:null,itemProp:Ee,itemRef:Ee,itemScope:re,itemType:Ee,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:re,low:F,manifest:null,max:null,maxLength:F,media:null,method:null,min:null,minLength:F,multiple:re,muted:re,name:null,nonce:null,noModule:re,noValidate:re,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:re,optimum:F,pattern:null,ping:Ee,placeholder:null,playsInline:re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:re,referrerPolicy:null,rel:Ee,required:re,reversed:re,rows:F,rowSpan:F,sandbox:Ee,scope:null,scoped:re,seamless:re,selected:re,shadowRootClonable:re,shadowRootDelegatesFocus:re,shadowRootMode:null,shape:null,size:F,sizes:null,slot:null,span:F,spellCheck:We,src:null,srcDoc:null,srcLang:null,srcSet:null,start:F,step:null,style:null,tabIndex:F,target:null,title:null,translate:null,type:null,typeMustMatch:re,useMap:null,value:We,width:F,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ee,axis:null,background:null,bgColor:null,border:F,borderColor:null,bottomMargin:F,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:re,declare:re,event:null,face:null,frame:null,frameBorder:null,hSpace:F,leftMargin:F,link:null,longDesc:null,lowSrc:null,marginHeight:F,marginWidth:F,noResize:re,noHref:re,noShade:re,noWrap:re,object:null,profile:null,prompt:null,rev:null,rightMargin:F,rules:null,scheme:null,scrolling:We,standby:null,summary:null,text:null,topMargin:F,valueType:null,version:null,vAlign:null,vLink:null,vSpace:F,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:re,disableRemotePlayback:re,prefix:null,property:null,results:F,security:null,unselectable:null},space:"html",transform:jh}),_6=$o({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:yt,accentHeight:F,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:F,amplitude:F,arabicForm:null,ascent:F,attributeName:null,attributeType:null,azimuth:F,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:F,by:null,calcMode:null,capHeight:F,className:Ee,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:F,diffuseConstant:F,direction:null,display:null,dur:null,divisor:F,dominantBaseline:null,download:re,dx:null,dy:null,edgeMode:null,editable:null,elevation:F,enableBackground:null,end:null,event:null,exponent:F,externalResourcesRequired:null,fill:null,fillOpacity:F,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:uo,g2:uo,glyphName:uo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:F,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:F,horizOriginX:F,horizOriginY:F,id:null,ideographic:F,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:F,k:F,k1:F,k2:F,k3:F,k4:F,kernelMatrix:yt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:F,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:F,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:F,overlineThickness:F,paintOrder:null,panose1:null,path:null,pathLength:F,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ee,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:F,pointsAtY:F,pointsAtZ:F,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yt,rev:yt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yt,requiredFeatures:yt,requiredFonts:yt,requiredFormats:yt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:F,specularExponent:F,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:F,strikethroughThickness:F,string:null,stroke:null,strokeDashArray:yt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:F,strokeOpacity:F,strokeWidth:null,style:null,surfaceScale:F,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yt,tabIndex:F,tableValues:null,target:null,targetX:F,targetY:F,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:F,underlineThickness:F,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:F,values:null,vAlphabetic:F,vMathematical:F,vectorEffect:null,vHanging:F,vIdeographic:F,version:null,vertAdvY:F,vertOriginX:F,vertOriginY:F,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:F,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Th}),Dh=$o({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Lh=$o({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:jh}),Nh=$o({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),S6=/[A-Z]/g,_f=/-[a-z]/g,k6=/^data[-\w.:]+$/i;function E6(e,t){const r=Uu(t);let o=t,s=ft;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&k6.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(_f,A6);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!_f.test(i)){let l=i.replace(S6,R6);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}s=Hc}return new s(o,t)}function R6(e){return"-"+e.toLowerCase()}function A6(e){return e.charAt(1).toUpperCase()}const T6=Eh([Ah,C6,Dh,Lh,Nh],"html"),Mh=Eh([Ah,_6,Dh,Lh,Nh],"svg"),Sf={}.hasOwnProperty;function j6(e,t){const r=t||{};function o(s,...i){let l=o.invalid;const a=o.handlers;if(s&&Sf.call(s,e)){const u=String(s[e]);l=Sf.call(a,u)?a[u]:o.unknown}if(l)return l.call(this,s,...i)}return o.handlers=r.handlers||{},o.invalid=r.invalid,o.unknown=r.unknown,o}const D6=/["&'<>`]/g,L6=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,N6=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,M6=/[|\\{}()[\]^$+*?.]/g,kf=new WeakMap;function I6(e,t){if(e=e.replace(t.subset?O6(t.subset):D6,o),t.subset||t.escapeOnly)return e;return e.replace(L6,r).replace(N6,o);function r(s,i,l){return t.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,l.charCodeAt(i+2),t)}function o(s,i,l){return t.format(s.charCodeAt(0),l.charCodeAt(i+1),t)}}function O6(e){let t=kf.get(e);return t||(t=P6(e),kf.set(e,t)),t}function P6(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(M6,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const F6=/[\dA-Fa-f]/;function B6(e,t,r){const o="&#x"+e.toString(16).toUpperCase();return r&&t&&!F6.test(String.fromCharCode(t))?o:o+";"}const $6=/\d/;function z6(e,t,r){const o="&#"+String(e);return r&&t&&!$6.test(String.fromCharCode(t))?o:o+";"}const q6=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Qa={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},W6=["cent","copy","divide","gt","lt","not","para","times"],Ih={}.hasOwnProperty,Hu={};let Di;for(Di in Qa)Ih.call(Qa,Di)&&(Hu[Qa[Di]]=Di);const G6=/[^\dA-Za-z]/;function U6(e,t,r,o){const s=String.fromCharCode(e);if(Ih.call(Hu,s)){const i=Hu[s],l="&"+i;return r&&q6.includes(i)&&!W6.includes(i)&&(!o||t&&t!==61&&G6.test(String.fromCharCode(t)))?l:l+";"}return""}function Y6(e,t,r){let o=B6(e,t,r.omitOptionalSemicolons),s;if((r.useNamedReferences||r.useShortestReferences)&&(s=U6(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!s)&&r.useShortestReferences){const i=z6(e,t,r.omitOptionalSemicolons);i.length<o.length&&(o=i)}return s&&(!r.useShortestReferences||s.length<o.length)?s:o}function co(e,t){return I6(e,Object.assign({format:Y6},t))}const H6=/^>|^->|<!--|-->|--!>|<!-$/g,V6=[">"],X6=["<",">"];function Z6(e,t,r,o){return o.settings.bogusComments?"<?"+co(e.value,Object.assign({},o.settings.characterReferences,{subset:V6}))+">":"<!--"+e.value.replace(H6,s)+"-->";function s(i){return co(i,Object.assign({},o.settings.characterReferences,{subset:X6}))}}function K6(e,t,r,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}function Ef(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let o=0,s=r.indexOf(t);for(;s!==-1;)o++,s=r.indexOf(t,s+t.length);return o}function Q6(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function J6(e){return e.join(" ").trim()}const e7=/[ \t\n\f\r]/g;function Vc(e){return typeof e=="object"?e.type==="text"?Rf(e.value):!1:Rf(e)}function Rf(e){return e.replace(e7,"")===""}const Ve=Ph(1),Oh=Ph(-1),t7=[];function Ph(e){return t;function t(r,o,s){const i=r?r.children:t7;let l=(o||0)+e,a=i[l];if(!s)for(;a&&Vc(a);)l+=e,a=i[l];return a}}const n7={}.hasOwnProperty;function Fh(e){return t;function t(r,o,s){return n7.call(e,r.tagName)&&e[r.tagName](r,o,s)}}const Xc=Fh({body:o7,caption:Ja,colgroup:Ja,dd:a7,dt:l7,head:Ja,html:r7,li:i7,optgroup:u7,option:c7,p:s7,rp:Af,rt:Af,tbody:f7,td:Tf,tfoot:p7,th:Tf,thead:d7,tr:m7});function Ja(e,t,r){const o=Ve(r,t,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&Vc(o.value.charAt(0)))}function r7(e,t,r){const o=Ve(r,t);return!o||o.type!=="comment"}function o7(e,t,r){const o=Ve(r,t);return!o||o.type!=="comment"}function s7(e,t,r){const o=Ve(r,t);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function i7(e,t,r){const o=Ve(r,t);return!o||o.type==="element"&&o.tagName==="li"}function l7(e,t,r){const o=Ve(r,t);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function a7(e,t,r){const o=Ve(r,t);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function Af(e,t,r){const o=Ve(r,t);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function u7(e,t,r){const o=Ve(r,t);return!o||o.type==="element"&&o.tagName==="optgroup"}function c7(e,t,r){const o=Ve(r,t);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function d7(e,t,r){const o=Ve(r,t);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function f7(e,t,r){const o=Ve(r,t);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function p7(e,t,r){return!Ve(r,t)}function m7(e,t,r){const o=Ve(r,t);return!o||o.type==="element"&&o.tagName==="tr"}function Tf(e,t,r){const o=Ve(r,t);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}const h7=Fh({body:y7,colgroup:v7,head:x7,html:g7,tbody:b7});function g7(e){const t=Ve(e,-1);return!t||t.type!=="comment"}function x7(e){const t=new Set;for(const o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(t.has(o.tagName))return!1;t.add(o.tagName)}const r=e.children[0];return!r||r.type==="element"}function y7(e){const t=Ve(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Vc(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function v7(e,t,r){const o=Oh(r,t),s=Ve(e,-1,!0);return r&&o&&o.type==="element"&&o.tagName==="colgroup"&&Xc(o,r.children.indexOf(o),r)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function b7(e,t,r){const o=Oh(r,t),s=Ve(e,-1);return r&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&Xc(o,r.children.indexOf(o),r)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const Li={name:[[`
|
|
120
120
|
\f\r &/=>`.split(""),`
|
|
@@ -274,14 +274,14 @@ var bg;function N(){return bg.apply(null,arguments)}function yw(e){bg=e}function
|
|
|
274
274
|
[`+i+"] ";for(l in arguments[0])ge(arguments[0],l)&&(s+=l+": "+arguments[0][l]+", ");s=s.slice(0,-2)}else s=arguments[i];o.push(s)}Cg(e+`
|
|
275
275
|
Arguments: `+Array.prototype.slice.call(o).join("")+`
|
|
276
276
|
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var tp={};function _g(e,t){N.deprecationHandler!=null&&N.deprecationHandler(e,t),tp[e]||(Cg(t),tp[e]=!0)}N.suppressDeprecationWarnings=!1;N.deprecationHandler=null;function xn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function bw(e){var t,r;for(r in e)ge(e,r)&&(t=e[r],xn(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function tc(e,t){var r=nr({},e),o;for(o in t)ge(t,o)&&(Rr(e[o])&&Rr(t[o])?(r[o]={},nr(r[o],e[o]),nr(r[o],t[o])):t[o]!=null?r[o]=t[o]:delete r[o]);for(o in e)ge(e,o)&&!ge(t,o)&&Rr(e[o])&&(r[o]=nr({},r[o]));return r}function dd(e){e!=null&&this.set(e)}var nc;Object.keys?nc=Object.keys:nc=function(e){var t,r=[];for(t in e)ge(e,t)&&r.push(t);return r};var ww={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Cw(e,t,r){var o=this._calendar[e]||this._calendar.sameElse;return xn(o)?o.call(t,r):o}function fn(e,t,r){var o=""+Math.abs(e),s=t-o.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+o}var fd=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Oi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,cu={},fo={};function Q(e,t,r,o){var s=o;typeof o=="string"&&(s=function(){return this[o]()}),e&&(fo[e]=s),t&&(fo[t[0]]=function(){return fn(s.apply(this,arguments),t[1],t[2])}),r&&(fo[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function _w(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Sw(e){var t=e.match(fd),r,o;for(r=0,o=t.length;r<o;r++)fo[t[r]]?t[r]=fo[t[r]]:t[r]=_w(t[r]);return function(s){var i="",l;for(l=0;l<o;l++)i+=xn(t[l])?t[l].call(s,e):t[l];return i}}function Ji(e,t){return e.isValid()?(t=Sg(t,e.localeData()),cu[t]=cu[t]||Sw(t),cu[t](e)):e.localeData().invalidDate()}function Sg(e,t){var r=5;function o(s){return t.longDateFormat(s)||s}for(Oi.lastIndex=0;r>=0&&Oi.test(e);)e=e.replace(Oi,o),Oi.lastIndex=0,r-=1;return e}var kw={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Ew(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(fd).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var Rw="Invalid date";function Aw(){return this._invalidDate}var Tw="%d",jw=/\d{1,2}/;function Dw(e){return this._ordinal.replace("%d",e)}var Lw={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Nw(e,t,r,o){var s=this._relativeTime[r];return xn(s)?s(e,t,r,o):s.replace(/%d/i,e)}function Mw(e,t){var r=this._relativeTime[e>0?"future":"past"];return xn(r)?r(t):r.replace(/%s/i,t)}var np={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Mt(e){return typeof e=="string"?np[e]||np[e.toLowerCase()]:void 0}function pd(e){var t={},r,o;for(o in e)ge(e,o)&&(r=Mt(o),r&&(t[r]=e[o]));return t}var Iw={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Ow(e){var t=[],r;for(r in e)ge(e,r)&&t.push({unit:r,priority:Iw[r]});return t.sort(function(o,s){return o.priority-s.priority}),t}var kg=/\d/,wt=/\d\d/,Eg=/\d{3}/,md=/\d{4}/,da=/[+-]?\d{6}/,De=/\d\d?/,Rg=/\d\d\d\d?/,Ag=/\d\d\d\d\d\d?/,fa=/\d{1,3}/,hd=/\d{1,4}/,pa=/[+-]?\d{1,6}/,qo=/\d+/,ma=/[+-]?\d+/,Pw=/Z|[+-]\d\d:?\d\d/gi,ha=/Z|[+-]\d\d(?::?\d\d)?/gi,Fw=/[+-]?\d+(\.\d{1,3})?/,oi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Wo=/^[1-9]\d?/,gd=/^([1-9]\d|\d)/,Sl;Sl={};function G(e,t,r){Sl[e]=xn(t)?t:function(o,s){return o&&r?r:t}}function Bw(e,t){return ge(Sl,e)?Sl[e](t._strict,t._locale):new RegExp($w(e))}function $w(e){return Dn(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,o,s,i){return r||o||s||i}))}function Dn(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Rt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Rt(t)),r}var rc={};function Se(e,t){var r,o=t,s;for(typeof e=="string"&&(e=[e]),Fn(t)&&(o=function(i,l){l[t]=de(i)}),s=e.length,r=0;r<s;r++)rc[e[r]]=o}function si(e,t){Se(e,function(r,o,s,i){s._w=s._w||{},t(r,s._w,s,i)})}function zw(e,t,r){t!=null&&ge(rc,e)&&rc[e](t,r._a,r,e)}function ga(e){return e%4===0&&e%100!==0||e%400===0}var it=0,Tn=1,an=2,He=3,Gt=4,jn=5,Er=6,qw=7,Ww=8;Q("Y",0,0,function(){var e=this.year();return e<=9999?fn(e,4):"+"+e});Q(0,["YY",2],0,function(){return this.year()%100});Q(0,["YYYY",4],0,"year");Q(0,["YYYYY",5],0,"year");Q(0,["YYYYYY",6,!0],0,"year");G("Y",ma);G("YY",De,wt);G("YYYY",hd,md);G("YYYYY",pa,da);G("YYYYYY",pa,da);Se(["YYYYY","YYYYYY"],it);Se("YYYY",function(e,t){t[it]=e.length===2?N.parseTwoDigitYear(e):de(e)});Se("YY",function(e,t){t[it]=N.parseTwoDigitYear(e)});Se("Y",function(e,t){t[it]=parseInt(e,10)});function vs(e){return ga(e)?366:365}N.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var Tg=Go("FullYear",!0);function Gw(){return ga(this.year())}function Go(e,t){return function(r){return r!=null?(jg(this,e,r),N.updateOffset(this,t),this):Ns(this,e)}}function Ns(e,t){if(!e.isValid())return NaN;var r=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return o?r.getUTCSeconds():r.getSeconds();case"Minutes":return o?r.getUTCMinutes():r.getMinutes();case"Hours":return o?r.getUTCHours():r.getHours();case"Date":return o?r.getUTCDate():r.getDate();case"Day":return o?r.getUTCDay():r.getDay();case"Month":return o?r.getUTCMonth():r.getMonth();case"FullYear":return o?r.getUTCFullYear():r.getFullYear();default:return NaN}}function jg(e,t,r){var o,s,i,l,a;if(!(!e.isValid()||isNaN(r))){switch(o=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?o.setUTCMilliseconds(r):o.setMilliseconds(r));case"Seconds":return void(s?o.setUTCSeconds(r):o.setSeconds(r));case"Minutes":return void(s?o.setUTCMinutes(r):o.setMinutes(r));case"Hours":return void(s?o.setUTCHours(r):o.setHours(r));case"Date":return void(s?o.setUTCDate(r):o.setDate(r));case"FullYear":break;default:return}i=r,l=e.month(),a=e.date(),a=a===29&&l===1&&!ga(i)?28:a,s?o.setUTCFullYear(i,l,a):o.setFullYear(i,l,a)}}function Uw(e){return e=Mt(e),xn(this[e])?this[e]():this}function Yw(e,t){if(typeof e=="object"){e=pd(e);var r=Ow(e),o,s=r.length;for(o=0;o<s;o++)this[r[o].unit](e[r[o].unit])}else if(e=Mt(e),xn(this[e]))return this[e](t);return this}function Hw(e,t){return(e%t+t)%t}var Fe;Array.prototype.indexOf?Fe=Array.prototype.indexOf:Fe=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function xd(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Hw(t,12);return e+=(t-r)/12,r===1?ga(e)?29:28:31-r%7%2}Q("M",["MM",2],"Mo",function(){return this.month()+1});Q("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Q("MMMM",0,0,function(e){return this.localeData().months(this,e)});G("M",De,Wo);G("MM",De,wt);G("MMM",function(e,t){return t.monthsShortRegex(e)});G("MMMM",function(e,t){return t.monthsRegex(e)});Se(["M","MM"],function(e,t){t[Tn]=de(e)-1});Se(["MMM","MMMM"],function(e,t,r,o){var s=r._locale.monthsParse(e,o,r._strict);s!=null?t[Tn]=s:se(r).invalidMonth=e});var Vw="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Dg="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Lg=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Xw=oi,Zw=oi;function Kw(e,t){return e?Ht(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Lg).test(t)?"format":"standalone"][e.month()]:Ht(this._months)?this._months:this._months.standalone}function Qw(e,t){return e?Ht(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Lg.test(t)?"format":"standalone"][e.month()]:Ht(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Jw(e,t,r){var o,s,i,l=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)i=gn([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(s=Fe.call(this._shortMonthsParse,l),s!==-1?s:null):(s=Fe.call(this._longMonthsParse,l),s!==-1?s:null):t==="MMM"?(s=Fe.call(this._shortMonthsParse,l),s!==-1?s:(s=Fe.call(this._longMonthsParse,l),s!==-1?s:null)):(s=Fe.call(this._longMonthsParse,l),s!==-1?s:(s=Fe.call(this._shortMonthsParse,l),s!==-1?s:null))}function eC(e,t,r){var o,s,i;if(this._monthsParseExact)return Jw.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(s=gn([2e3,o]),r&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[o]&&(i="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[o].test(e))return o;if(r&&t==="MMM"&&this._shortMonthsParse[o].test(e))return o;if(!r&&this._monthsParse[o].test(e))return o}}function Ng(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=de(t);else if(t=e.localeData().monthsParse(t),!Fn(t))return e}var r=t,o=e.date();return o=o<29?o:Math.min(o,xd(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,o):e._d.setMonth(r,o),e}function Mg(e){return e!=null?(Ng(this,e),N.updateOffset(this,!0),this):Ns(this,"Month")}function tC(){return xd(this.year(),this.month())}function nC(e){return this._monthsParseExact?(ge(this,"_monthsRegex")||Ig.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ge(this,"_monthsShortRegex")||(this._monthsShortRegex=Xw),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function rC(e){return this._monthsParseExact?(ge(this,"_monthsRegex")||Ig.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ge(this,"_monthsRegex")||(this._monthsRegex=Zw),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ig(){function e(u,c){return c.length-u.length}var t=[],r=[],o=[],s,i,l,a;for(s=0;s<12;s++)i=gn([2e3,s]),l=Dn(this.monthsShort(i,"")),a=Dn(this.months(i,"")),t.push(l),r.push(a),o.push(a),o.push(l);t.sort(e),r.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function oC(e,t,r,o,s,i,l){var a;return e<100&&e>=0?(a=new Date(e+400,t,r,o,s,i,l),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,o,s,i,l),a}function Ms(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function kl(e,t,r){var o=7+t-r,s=(7+Ms(e,0,o).getUTCDay()-t)%7;return-s+o-1}function Og(e,t,r,o,s){var i=(7+r-o)%7,l=kl(e,o,s),a=1+7*(t-1)+i+l,u,c;return a<=0?(u=e-1,c=vs(u)+a):a>vs(e)?(u=e+1,c=a-vs(e)):(u=e,c=a),{year:u,dayOfYear:c}}function Is(e,t,r){var o=kl(e.year(),t,r),s=Math.floor((e.dayOfYear()-o-1)/7)+1,i,l;return s<1?(l=e.year()-1,i=s+Ln(l,t,r)):s>Ln(e.year(),t,r)?(i=s-Ln(e.year(),t,r),l=e.year()+1):(l=e.year(),i=s),{week:i,year:l}}function Ln(e,t,r){var o=kl(e,t,r),s=kl(e+1,t,r);return(vs(e)-o+s)/7}Q("w",["ww",2],"wo","week");Q("W",["WW",2],"Wo","isoWeek");G("w",De,Wo);G("ww",De,wt);G("W",De,Wo);G("WW",De,wt);si(["w","ww","W","WW"],function(e,t,r,o){t[o.substr(0,1)]=de(e)});function sC(e){return Is(e,this._week.dow,this._week.doy).week}var iC={dow:0,doy:6};function lC(){return this._week.dow}function aC(){return this._week.doy}function uC(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function cC(e){var t=Is(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Q("d",0,"do","day");Q("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Q("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Q("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Q("e",0,0,"weekday");Q("E",0,0,"isoWeekday");G("d",De);G("e",De);G("E",De);G("dd",function(e,t){return t.weekdaysMinRegex(e)});G("ddd",function(e,t){return t.weekdaysShortRegex(e)});G("dddd",function(e,t){return t.weekdaysRegex(e)});si(["dd","ddd","dddd"],function(e,t,r,o){var s=r._locale.weekdaysParse(e,o,r._strict);s!=null?t.d=s:se(r).invalidWeekday=e});si(["d","e","E"],function(e,t,r,o){t[o]=de(e)});function dC(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function fC(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function yd(e,t){return e.slice(t,7).concat(e.slice(0,t))}var pC="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pg="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),mC="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),hC=oi,gC=oi,xC=oi;function yC(e,t){var r=Ht(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?yd(r,this._week.dow):e?r[e.day()]:r}function vC(e){return e===!0?yd(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function bC(e){return e===!0?yd(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function wC(e,t,r){var o,s,i,l=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=gn([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(s=Fe.call(this._weekdaysParse,l),s!==-1?s:null):t==="ddd"?(s=Fe.call(this._shortWeekdaysParse,l),s!==-1?s:null):(s=Fe.call(this._minWeekdaysParse,l),s!==-1?s:null):t==="dddd"?(s=Fe.call(this._weekdaysParse,l),s!==-1||(s=Fe.call(this._shortWeekdaysParse,l),s!==-1)?s:(s=Fe.call(this._minWeekdaysParse,l),s!==-1?s:null)):t==="ddd"?(s=Fe.call(this._shortWeekdaysParse,l),s!==-1||(s=Fe.call(this._weekdaysParse,l),s!==-1)?s:(s=Fe.call(this._minWeekdaysParse,l),s!==-1?s:null)):(s=Fe.call(this._minWeekdaysParse,l),s!==-1||(s=Fe.call(this._weekdaysParse,l),s!==-1)?s:(s=Fe.call(this._shortWeekdaysParse,l),s!==-1?s:null))}function CC(e,t,r){var o,s,i;if(this._weekdaysParseExact)return wC.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(s=gn([2e3,1]).day(o),r&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[o].test(e))return o;if(r&&t==="ddd"&&this._shortWeekdaysParse[o].test(e))return o;if(r&&t==="dd"&&this._minWeekdaysParse[o].test(e))return o;if(!r&&this._weekdaysParse[o].test(e))return o}}function _C(e){if(!this.isValid())return e!=null?this:NaN;var t=Ns(this,"Day");return e!=null?(e=dC(e,this.localeData()),this.add(e-t,"d")):t}function SC(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function kC(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=fC(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function EC(e){return this._weekdaysParseExact?(ge(this,"_weekdaysRegex")||vd.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ge(this,"_weekdaysRegex")||(this._weekdaysRegex=hC),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function RC(e){return this._weekdaysParseExact?(ge(this,"_weekdaysRegex")||vd.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ge(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=gC),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function AC(e){return this._weekdaysParseExact?(ge(this,"_weekdaysRegex")||vd.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ge(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=xC),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function vd(){function e(p,m){return m.length-p.length}var t=[],r=[],o=[],s=[],i,l,a,u,c;for(i=0;i<7;i++)l=gn([2e3,1]).day(i),a=Dn(this.weekdaysMin(l,"")),u=Dn(this.weekdaysShort(l,"")),c=Dn(this.weekdays(l,"")),t.push(a),r.push(u),o.push(c),s.push(a),s.push(u),s.push(c);t.sort(e),r.sort(e),o.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function bd(){return this.hours()%12||12}function TC(){return this.hours()||24}Q("H",["HH",2],0,"hour");Q("h",["hh",2],0,bd);Q("k",["kk",2],0,TC);Q("hmm",0,0,function(){return""+bd.apply(this)+fn(this.minutes(),2)});Q("hmmss",0,0,function(){return""+bd.apply(this)+fn(this.minutes(),2)+fn(this.seconds(),2)});Q("Hmm",0,0,function(){return""+this.hours()+fn(this.minutes(),2)});Q("Hmmss",0,0,function(){return""+this.hours()+fn(this.minutes(),2)+fn(this.seconds(),2)});function Fg(e,t){Q(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Fg("a",!0);Fg("A",!1);function Bg(e,t){return t._meridiemParse}G("a",Bg);G("A",Bg);G("H",De,gd);G("h",De,Wo);G("k",De,Wo);G("HH",De,wt);G("hh",De,wt);G("kk",De,wt);G("hmm",Rg);G("hmmss",Ag);G("Hmm",Rg);G("Hmmss",Ag);Se(["H","HH"],He);Se(["k","kk"],function(e,t,r){var o=de(e);t[He]=o===24?0:o});Se(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Se(["h","hh"],function(e,t,r){t[He]=de(e),se(r).bigHour=!0});Se("hmm",function(e,t,r){var o=e.length-2;t[He]=de(e.substr(0,o)),t[Gt]=de(e.substr(o)),se(r).bigHour=!0});Se("hmmss",function(e,t,r){var o=e.length-4,s=e.length-2;t[He]=de(e.substr(0,o)),t[Gt]=de(e.substr(o,2)),t[jn]=de(e.substr(s)),se(r).bigHour=!0});Se("Hmm",function(e,t,r){var o=e.length-2;t[He]=de(e.substr(0,o)),t[Gt]=de(e.substr(o))});Se("Hmmss",function(e,t,r){var o=e.length-4,s=e.length-2;t[He]=de(e.substr(0,o)),t[Gt]=de(e.substr(o,2)),t[jn]=de(e.substr(s))});function jC(e){return(e+"").toLowerCase().charAt(0)==="p"}var DC=/[ap]\.?m?\.?/i,LC=Go("Hours",!0);function NC(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var $g={calendar:ww,longDateFormat:kw,invalidDate:Rw,ordinal:Tw,dayOfMonthOrdinalParse:jw,relativeTime:Lw,months:Vw,monthsShort:Dg,week:iC,weekdays:pC,weekdaysMin:mC,weekdaysShort:Pg,meridiemParse:DC},Ne={},ss={},Os;function MC(e,t){var r,o=Math.min(e.length,t.length);for(r=0;r<o;r+=1)if(e[r]!==t[r])return r;return o}function rp(e){return e&&e.toLowerCase().replace("_","-")}function IC(e){for(var t=0,r,o,s,i;t<e.length;){for(i=rp(e[t]).split("-"),r=i.length,o=rp(e[t+1]),o=o?o.split("-"):null;r>0;){if(s=xa(i.slice(0,r).join("-")),s)return s;if(o&&o.length>=r&&MC(i,o)>=r-1)break;r--}t++}return Os}function OC(e){return!!(e&&e.match("^[^/\\\\]*$"))}function xa(e){var t=null,r;if(Ne[e]===void 0&&typeof module<"u"&&module&&module.exports&&OC(e))try{t=Os._abbr,r=require,r("./locale/"+e),ir(t)}catch{Ne[e]=null}return Ne[e]}function ir(e,t){var r;return e&&(ct(t)?r=$n(e):r=wd(e,t),r?Os=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Os._abbr}function wd(e,t){if(t!==null){var r,o=$g;if(t.abbr=e,Ne[e]!=null)_g("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=Ne[e]._config;else if(t.parentLocale!=null)if(Ne[t.parentLocale]!=null)o=Ne[t.parentLocale]._config;else if(r=xa(t.parentLocale),r!=null)o=r._config;else return ss[t.parentLocale]||(ss[t.parentLocale]=[]),ss[t.parentLocale].push({name:e,config:t}),null;return Ne[e]=new dd(tc(o,t)),ss[e]&&ss[e].forEach(function(s){wd(s.name,s.config)}),ir(e),Ne[e]}else return delete Ne[e],null}function PC(e,t){if(t!=null){var r,o,s=$g;Ne[e]!=null&&Ne[e].parentLocale!=null?Ne[e].set(tc(Ne[e]._config,t)):(o=xa(e),o!=null&&(s=o._config),t=tc(s,t),o==null&&(t.abbr=e),r=new dd(t),r.parentLocale=Ne[e],Ne[e]=r),ir(e)}else Ne[e]!=null&&(Ne[e].parentLocale!=null?(Ne[e]=Ne[e].parentLocale,e===ir()&&ir(e)):Ne[e]!=null&&delete Ne[e]);return Ne[e]}function $n(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Os;if(!Ht(e)){if(t=xa(e),t)return t;e=[e]}return IC(e)}function FC(){return nc(Ne)}function Cd(e){var t,r=e._a;return r&&se(e).overflow===-2&&(t=r[Tn]<0||r[Tn]>11?Tn:r[an]<1||r[an]>xd(r[it],r[Tn])?an:r[He]<0||r[He]>24||r[He]===24&&(r[Gt]!==0||r[jn]!==0||r[Er]!==0)?He:r[Gt]<0||r[Gt]>59?Gt:r[jn]<0||r[jn]>59?jn:r[Er]<0||r[Er]>999?Er:-1,se(e)._overflowDayOfYear&&(t<it||t>an)&&(t=an),se(e)._overflowWeeks&&t===-1&&(t=qw),se(e)._overflowWeekday&&t===-1&&(t=Ww),se(e).overflow=t),e}var BC=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,$C=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,zC=/Z|[+-]\d\d(?::?\d\d)?/,Pi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],du=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],qC=/^\/?Date\((-?\d+)/i,WC=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,GC={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function zg(e){var t,r,o=e._i,s=BC.exec(o)||$C.exec(o),i,l,a,u,c=Pi.length,p=du.length;if(s){for(se(e).iso=!0,t=0,r=c;t<r;t++)if(Pi[t][1].exec(s[1])){l=Pi[t][0],i=Pi[t][2]!==!1;break}if(l==null){e._isValid=!1;return}if(s[3]){for(t=0,r=p;t<r;t++)if(du[t][1].exec(s[3])){a=(s[2]||" ")+du[t][0];break}if(a==null){e._isValid=!1;return}}if(!i&&a!=null){e._isValid=!1;return}if(s[4])if(zC.exec(s[4]))u="Z";else{e._isValid=!1;return}e._f=l+(a||"")+(u||""),Sd(e)}else e._isValid=!1}function UC(e,t,r,o,s,i){var l=[YC(e),Dg.indexOf(t),parseInt(r,10),parseInt(o,10),parseInt(s,10)];return i&&l.push(parseInt(i,10)),l}function YC(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function HC(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function VC(e,t,r){if(e){var o=Pg.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(o!==s)return se(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function XC(e,t,r){if(e)return GC[e];if(t)return 0;var o=parseInt(r,10),s=o%100,i=(o-s)/100;return i*60+s}function qg(e){var t=WC.exec(HC(e._i)),r;if(t){if(r=UC(t[4],t[3],t[2],t[5],t[6],t[7]),!VC(t[1],r,e))return;e._a=r,e._tzm=XC(t[8],t[9],t[10]),e._d=Ms.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),se(e).rfc2822=!0}else e._isValid=!1}function ZC(e){var t=qC.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(zg(e),e._isValid===!1)delete e._isValid;else return;if(qg(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:N.createFromInputFallback(e)}N.createFromInputFallback=Nt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function to(e,t,r){return e??t??r}function KC(e){var t=new Date(N.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function _d(e){var t,r,o=[],s,i,l;if(!e._d){for(s=KC(e),e._w&&e._a[an]==null&&e._a[Tn]==null&&QC(e),e._dayOfYear!=null&&(l=to(e._a[it],s[it]),(e._dayOfYear>vs(l)||e._dayOfYear===0)&&(se(e)._overflowDayOfYear=!0),r=Ms(l,0,e._dayOfYear),e._a[Tn]=r.getUTCMonth(),e._a[an]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=o[t]=s[t];for(;t<7;t++)e._a[t]=o[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[He]===24&&e._a[Gt]===0&&e._a[jn]===0&&e._a[Er]===0&&(e._nextDay=!0,e._a[He]=0),e._d=(e._useUTC?Ms:oC).apply(null,o),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[He]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(se(e).weekdayMismatch=!0)}}function QC(e){var t,r,o,s,i,l,a,u,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,l=4,r=to(t.GG,e._a[it],Is(je(),1,4).year),o=to(t.W,1),s=to(t.E,1),(s<1||s>7)&&(u=!0)):(i=e._locale._week.dow,l=e._locale._week.doy,c=Is(je(),i,l),r=to(t.gg,e._a[it],c.year),o=to(t.w,c.week),t.d!=null?(s=t.d,(s<0||s>6)&&(u=!0)):t.e!=null?(s=t.e+i,(t.e<0||t.e>6)&&(u=!0)):s=i),o<1||o>Ln(r,i,l)?se(e)._overflowWeeks=!0:u!=null?se(e)._overflowWeekday=!0:(a=Og(r,o,s,i,l),e._a[it]=a.year,e._dayOfYear=a.dayOfYear)}N.ISO_8601=function(){};N.RFC_2822=function(){};function Sd(e){if(e._f===N.ISO_8601){zg(e);return}if(e._f===N.RFC_2822){qg(e);return}e._a=[],se(e).empty=!0;var t=""+e._i,r,o,s,i,l,a=t.length,u=0,c,p;for(s=Sg(e._f,e._locale).match(fd)||[],p=s.length,r=0;r<p;r++)i=s[r],o=(t.match(Bw(i,e))||[])[0],o&&(l=t.substr(0,t.indexOf(o)),l.length>0&&se(e).unusedInput.push(l),t=t.slice(t.indexOf(o)+o.length),u+=o.length),fo[i]?(o?se(e).empty=!1:se(e).unusedTokens.push(i),zw(i,o,e)):e._strict&&!o&&se(e).unusedTokens.push(i);se(e).charsLeftOver=a-u,t.length>0&&se(e).unusedInput.push(t),e._a[He]<=12&&se(e).bigHour===!0&&e._a[He]>0&&(se(e).bigHour=void 0),se(e).parsedDateParts=e._a.slice(0),se(e).meridiem=e._meridiem,e._a[He]=JC(e._locale,e._a[He],e._meridiem),c=se(e).era,c!==null&&(e._a[it]=e._locale.erasConvertYear(c,e._a[it])),_d(e),Cd(e)}function JC(e,t,r){var o;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(o=e.isPM(r),o&&t<12&&(t+=12),!o&&t===12&&(t=0)),t)}function e_(e){var t,r,o,s,i,l,a=!1,u=e._f.length;if(u===0){se(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<u;s++)i=0,l=!1,t=cd({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],Sd(t),ud(t)&&(l=!0),i+=se(t).charsLeftOver,i+=se(t).unusedTokens.length*10,se(t).score=i,a?i<o&&(o=i,r=t):(o==null||i<o||l)&&(o=i,r=t,l&&(a=!0));nr(e,r||t)}function t_(e){if(!e._d){var t=pd(e._i),r=t.day===void 0?t.date:t.day;e._a=wg([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(o){return o&&parseInt(o,10)}),_d(e)}}function n_(e){var t=new ri(Cd(Wg(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Wg(e){var t=e._i,r=e._f;return e._locale=e._locale||$n(e._l),t===null||r===void 0&&t===""?ca({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Vt(t)?new ri(Cd(t)):(ni(t)?e._d=t:Ht(r)?e_(e):r?Sd(e):r_(e),ud(e)||(e._d=null),e))}function r_(e){var t=e._i;ct(t)?e._d=new Date(N.now()):ni(t)?e._d=new Date(t.valueOf()):typeof t=="string"?ZC(e):Ht(t)?(e._a=wg(t.slice(0),function(r){return parseInt(r,10)}),_d(e)):Rr(t)?t_(e):Fn(t)?e._d=new Date(t):N.createFromInputFallback(e)}function Gg(e,t,r,o,s){var i={};return(t===!0||t===!1)&&(o=t,t=void 0),(r===!0||r===!1)&&(o=r,r=void 0),(Rr(e)&&ad(e)||Ht(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=s,i._l=r,i._i=e,i._f=t,i._strict=o,n_(i)}function je(e,t,r,o){return Gg(e,t,r,o,!1)}var o_=Nt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=je.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ca()}),s_=Nt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=je.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ca()});function Ug(e,t){var r,o;if(t.length===1&&Ht(t[0])&&(t=t[0]),!t.length)return je();for(r=t[0],o=1;o<t.length;++o)(!t[o].isValid()||t[o][e](r))&&(r=t[o]);return r}function i_(){var e=[].slice.call(arguments,0);return Ug("isBefore",e)}function l_(){var e=[].slice.call(arguments,0);return Ug("isAfter",e)}var a_=function(){return Date.now?Date.now():+new Date},is=["year","quarter","month","week","day","hour","minute","second","millisecond"];function u_(e){var t,r=!1,o,s=is.length;for(t in e)if(ge(e,t)&&!(Fe.call(is,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(o=0;o<s;++o)if(e[is[o]]){if(r)return!1;parseFloat(e[is[o]])!==de(e[is[o]])&&(r=!0)}return!0}function c_(){return this._isValid}function d_(){return Qt(NaN)}function ya(e){var t=pd(e),r=t.year||0,o=t.quarter||0,s=t.month||0,i=t.week||t.isoWeek||0,l=t.day||0,a=t.hour||0,u=t.minute||0,c=t.second||0,p=t.millisecond||0;this._isValid=u_(t),this._milliseconds=+p+c*1e3+u*6e4+a*1e3*60*60,this._days=+l+i*7,this._months=+s+o*3+r*12,this._data={},this._locale=$n(),this._bubble()}function el(e){return e instanceof ya}function oc(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function f_(e,t,r){var o=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),i=0,l;for(l=0;l<o;l++)de(e[l])!==de(t[l])&&i++;return i+s}function Yg(e,t){Q(e,0,0,function(){var r=this.utcOffset(),o="+";return r<0&&(r=-r,o="-"),o+fn(~~(r/60),2)+t+fn(~~r%60,2)})}Yg("Z",":");Yg("ZZ","");G("Z",ha);G("ZZ",ha);Se(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=kd(ha,e)});var p_=/([\+\-]|\d\d)/gi;function kd(e,t){var r=(t||"").match(e),o,s,i;return r===null?null:(o=r[r.length-1]||[],s=(o+"").match(p_)||["-",0,0],i=+(s[1]*60)+de(s[2]),i===0?0:s[0]==="+"?i:-i)}function Ed(e,t){var r,o;return t._isUTC?(r=t.clone(),o=(Vt(e)||ni(e)?e.valueOf():je(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+o),N.updateOffset(r,!1),r):je(e).local()}function sc(e){return-Math.round(e._d.getTimezoneOffset())}N.updateOffset=function(){};function m_(e,t,r){var o=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=kd(ha,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(s=sc(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),o!==e&&(!t||this._changeInProgress?Xg(this,Qt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,N.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?o:sc(this)}function h_(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function g_(e){return this.utcOffset(0,e)}function x_(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(sc(this),"m")),this}function y_(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=kd(Pw,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function v_(e){return this.isValid()?(e=e?je(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function b_(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function w_(){if(!ct(this._isDSTShifted))return this._isDSTShifted;var e={},t;return cd(e,this),e=Wg(e),e._a?(t=e._isUTC?gn(e._a):je(e._a),this._isDSTShifted=this.isValid()&&f_(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function C_(){return this.isValid()?!this._isUTC:!1}function __(){return this.isValid()?this._isUTC:!1}function Hg(){return this.isValid()?this._isUTC&&this._offset===0:!1}var S_=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,k_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Qt(e,t){var r=e,o=null,s,i,l;return el(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Fn(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(o=S_.exec(e))?(s=o[1]==="-"?-1:1,r={y:0,d:de(o[an])*s,h:de(o[He])*s,m:de(o[Gt])*s,s:de(o[jn])*s,ms:de(oc(o[Er]*1e3))*s}):(o=k_.exec(e))?(s=o[1]==="-"?-1:1,r={y:Cr(o[2],s),M:Cr(o[3],s),w:Cr(o[4],s),d:Cr(o[5],s),h:Cr(o[6],s),m:Cr(o[7],s),s:Cr(o[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(l=E_(je(r.from),je(r.to)),r={},r.ms=l.milliseconds,r.M=l.months),i=new ya(r),el(e)&&ge(e,"_locale")&&(i._locale=e._locale),el(e)&&ge(e,"_isValid")&&(i._isValid=e._isValid),i}Qt.fn=ya.prototype;Qt.invalid=d_;function Cr(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function sp(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function E_(e,t){var r;return e.isValid()&&t.isValid()?(t=Ed(t,e),e.isBefore(t)?r=sp(e,t):(r=sp(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Vg(e,t){return function(r,o){var s,i;return o!==null&&!isNaN(+o)&&(_g(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=o,o=i),s=Qt(r,o),Xg(this,s,e),this}}function Xg(e,t,r,o){var s=t._milliseconds,i=oc(t._days),l=oc(t._months);e.isValid()&&(o=o??!0,l&&Ng(e,Ns(e,"Month")+l*r),i&&jg(e,"Date",Ns(e,"Date")+i*r),s&&e._d.setTime(e._d.valueOf()+s*r),o&&N.updateOffset(e,i||l))}var R_=Vg(1,"add"),A_=Vg(-1,"subtract");function Zg(e){return typeof e=="string"||e instanceof String}function T_(e){return Vt(e)||ni(e)||Zg(e)||Fn(e)||D_(e)||j_(e)||e===null||e===void 0}function j_(e){var t=Rr(e)&&!ad(e),r=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,i,l=o.length;for(s=0;s<l;s+=1)i=o[s],r=r||ge(e,i);return t&&r}function D_(e){var t=Ht(e),r=!1;return t&&(r=e.filter(function(o){return!Fn(o)&&Zg(e)}).length===0),t&&r}function L_(e){var t=Rr(e)&&!ad(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,i;for(s=0;s<o.length;s+=1)i=o[s],r=r||ge(e,i);return t&&r}function N_(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function M_(e,t){arguments.length===1&&(arguments[0]?T_(arguments[0])?(e=arguments[0],t=void 0):L_(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||je(),o=Ed(r,this).startOf("day"),s=N.calendarFormat(this,o)||"sameElse",i=t&&(xn(t[s])?t[s].call(this,r):t[s]);return this.format(i||this.localeData().calendar(s,this,je(r)))}function I_(){return new ri(this)}function O_(e,t){var r=Vt(e)?e:je(e);return this.isValid()&&r.isValid()?(t=Mt(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function P_(e,t){var r=Vt(e)?e:je(e);return this.isValid()&&r.isValid()?(t=Mt(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function F_(e,t,r,o){var s=Vt(e)?e:je(e),i=Vt(t)?t:je(t);return this.isValid()&&s.isValid()&&i.isValid()?(o=o||"()",(o[0]==="("?this.isAfter(s,r):!this.isBefore(s,r))&&(o[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function B_(e,t){var r=Vt(e)?e:je(e),o;return this.isValid()&&r.isValid()?(t=Mt(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(o=r.valueOf(),this.clone().startOf(t).valueOf()<=o&&o<=this.clone().endOf(t).valueOf())):!1}function $_(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function z_(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function q_(e,t,r){var o,s,i;if(!this.isValid())return NaN;if(o=Ed(e,this),!o.isValid())return NaN;switch(s=(o.utcOffset()-this.utcOffset())*6e4,t=Mt(t),t){case"year":i=tl(this,o)/12;break;case"month":i=tl(this,o);break;case"quarter":i=tl(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-s)/864e5;break;case"week":i=(this-o-s)/6048e5;break;default:i=this-o}return r?i:Rt(i)}function tl(e,t){if(e.date()<t.date())return-tl(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),o=e.clone().add(r,"months"),s,i;return t-o<0?(s=e.clone().add(r-1,"months"),i=(t-o)/(o-s)):(s=e.clone().add(r+1,"months"),i=(t-o)/(s-o)),-(r+i)||0}N.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";N.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function W_(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function G_(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Ji(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):xn(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ji(r,"Z")):Ji(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function U_(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,o,s,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+o+s+i)}function Y_(e){e||(e=this.isUtc()?N.defaultFormatUtc:N.defaultFormat);var t=Ji(this,e);return this.localeData().postformat(t)}function H_(e,t){return this.isValid()&&(Vt(e)&&e.isValid()||je(e).isValid())?Qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function V_(e){return this.from(je(),e)}function X_(e,t){return this.isValid()&&(Vt(e)&&e.isValid()||je(e).isValid())?Qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Z_(e){return this.to(je(),e)}function Kg(e){var t;return e===void 0?this._locale._abbr:(t=$n(e),t!=null&&(this._locale=t),this)}var Qg=Nt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Jg(){return this._locale}var El=1e3,po=60*El,Rl=60*po,e1=(365*400+97)*24*Rl;function mo(e,t){return(e%t+t)%t}function t1(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-e1:new Date(e,t,r).valueOf()}function n1(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-e1:Date.UTC(e,t,r)}function K_(e){var t,r;if(e=Mt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?n1:t1,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=mo(t+(this._isUTC?0:this.utcOffset()*po),Rl);break;case"minute":t=this._d.valueOf(),t-=mo(t,po);break;case"second":t=this._d.valueOf(),t-=mo(t,El);break}return this._d.setTime(t),N.updateOffset(this,!0),this}function Q_(e){var t,r;if(e=Mt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?n1:t1,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Rl-mo(t+(this._isUTC?0:this.utcOffset()*po),Rl)-1;break;case"minute":t=this._d.valueOf(),t+=po-mo(t,po)-1;break;case"second":t=this._d.valueOf(),t+=El-mo(t,El)-1;break}return this._d.setTime(t),N.updateOffset(this,!0),this}function J_(){return this._d.valueOf()-(this._offset||0)*6e4}function eS(){return Math.floor(this.valueOf()/1e3)}function tS(){return new Date(this.valueOf())}function nS(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function rS(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function oS(){return this.isValid()?this.toISOString():null}function sS(){return ud(this)}function iS(){return nr({},se(this))}function lS(){return se(this).overflow}function aS(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Q("N",0,0,"eraAbbr");Q("NN",0,0,"eraAbbr");Q("NNN",0,0,"eraAbbr");Q("NNNN",0,0,"eraName");Q("NNNNN",0,0,"eraNarrow");Q("y",["y",1],"yo","eraYear");Q("y",["yy",2],0,"eraYear");Q("y",["yyy",3],0,"eraYear");Q("y",["yyyy",4],0,"eraYear");G("N",Rd);G("NN",Rd);G("NNN",Rd);G("NNNN",vS);G("NNNNN",bS);Se(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,o){var s=r._locale.erasParse(e,o,r._strict);s?se(r).era=s:se(r).invalidEra=e});G("y",qo);G("yy",qo);G("yyy",qo);G("yyyy",qo);G("yo",wS);Se(["y","yy","yyy","yyyy"],it);Se(["yo"],function(e,t,r,o){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[it]=r._locale.eraYearOrdinalParse(e,s):t[it]=parseInt(e,10)});function uS(e,t){var r,o,s,i=this._eras||$n("en")._eras;for(r=0,o=i.length;r<o;++r){switch(typeof i[r].since){case"string":s=N(i[r].since).startOf("day"),i[r].since=s.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":s=N(i[r].until).startOf("day").valueOf(),i[r].until=s.valueOf();break}}return i}function cS(e,t,r){var o,s,i=this.eras(),l,a,u;for(e=e.toUpperCase(),o=0,s=i.length;o<s;++o)if(l=i[o].name.toUpperCase(),a=i[o].abbr.toUpperCase(),u=i[o].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(a===e)return i[o];break;case"NNNN":if(l===e)return i[o];break;case"NNNNN":if(u===e)return i[o];break}else if([l,a,u].indexOf(e)>=0)return i[o]}function dS(e,t){var r=e.since<=e.until?1:-1;return t===void 0?N(e.since).year():N(e.since).year()+(t-e.offset)*r}function fS(){var e,t,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return o[e].name;return""}function pS(){var e,t,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return o[e].narrow;return""}function mS(){var e,t,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return o[e].abbr;return""}function hS(){var e,t,r,o,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=s[e].since<=s[e].until?1:-1,o=this.clone().startOf("day").valueOf(),s[e].since<=o&&o<=s[e].until||s[e].until<=o&&o<=s[e].since)return(this.year()-N(s[e].since).year())*r+s[e].offset;return this.year()}function gS(e){return ge(this,"_erasNameRegex")||Ad.call(this),e?this._erasNameRegex:this._erasRegex}function xS(e){return ge(this,"_erasAbbrRegex")||Ad.call(this),e?this._erasAbbrRegex:this._erasRegex}function yS(e){return ge(this,"_erasNarrowRegex")||Ad.call(this),e?this._erasNarrowRegex:this._erasRegex}function Rd(e,t){return t.erasAbbrRegex(e)}function vS(e,t){return t.erasNameRegex(e)}function bS(e,t){return t.erasNarrowRegex(e)}function wS(e,t){return t._eraYearOrdinalRegex||qo}function Ad(){var e=[],t=[],r=[],o=[],s,i,l,a,u,c=this.eras();for(s=0,i=c.length;s<i;++s)l=Dn(c[s].name),a=Dn(c[s].abbr),u=Dn(c[s].narrow),t.push(l),e.push(a),r.push(u),o.push(l),o.push(a),o.push(u);this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}Q(0,["gg",2],0,function(){return this.weekYear()%100});Q(0,["GG",2],0,function(){return this.isoWeekYear()%100});function va(e,t){Q(0,[e,e.length],0,t)}va("gggg","weekYear");va("ggggg","weekYear");va("GGGG","isoWeekYear");va("GGGGG","isoWeekYear");G("G",ma);G("g",ma);G("GG",De,wt);G("gg",De,wt);G("GGGG",hd,md);G("gggg",hd,md);G("GGGGG",pa,da);G("ggggg",pa,da);si(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,o){t[o.substr(0,2)]=de(e)});si(["gg","GG"],function(e,t,r,o){t[o]=N.parseTwoDigitYear(e)});function CS(e){return r1.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function _S(e){return r1.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function SS(){return Ln(this.year(),1,4)}function kS(){return Ln(this.isoWeekYear(),1,4)}function ES(){var e=this.localeData()._week;return Ln(this.year(),e.dow,e.doy)}function RS(){var e=this.localeData()._week;return Ln(this.weekYear(),e.dow,e.doy)}function r1(e,t,r,o,s){var i;return e==null?Is(this,o,s).year:(i=Ln(e,o,s),t>i&&(t=i),AS.call(this,e,t,r,o,s))}function AS(e,t,r,o,s){var i=Og(e,t,r,o,s),l=Ms(i.year,0,i.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}Q("Q",0,"Qo","quarter");G("Q",kg);Se("Q",function(e,t){t[Tn]=(de(e)-1)*3});function TS(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Q("D",["DD",2],"Do","date");G("D",De,Wo);G("DD",De,wt);G("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Se(["D","DD"],an);Se("Do",function(e,t){t[an]=de(e.match(De)[0])});var o1=Go("Date",!0);Q("DDD",["DDDD",3],"DDDo","dayOfYear");G("DDD",fa);G("DDDD",Eg);Se(["DDD","DDDD"],function(e,t,r){r._dayOfYear=de(e)});function jS(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Q("m",["mm",2],0,"minute");G("m",De,gd);G("mm",De,wt);Se(["m","mm"],Gt);var DS=Go("Minutes",!1);Q("s",["ss",2],0,"second");G("s",De,gd);G("ss",De,wt);Se(["s","ss"],jn);var LS=Go("Seconds",!1);Q("S",0,0,function(){return~~(this.millisecond()/100)});Q(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Q(0,["SSS",3],0,"millisecond");Q(0,["SSSS",4],0,function(){return this.millisecond()*10});Q(0,["SSSSS",5],0,function(){return this.millisecond()*100});Q(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Q(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Q(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Q(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});G("S",fa,kg);G("SS",fa,wt);G("SSS",fa,Eg);var rr,s1;for(rr="SSSS";rr.length<=9;rr+="S")G(rr,qo);function NS(e,t){t[Er]=de(("0."+e)*1e3)}for(rr="S";rr.length<=9;rr+="S")Se(rr,NS);s1=Go("Milliseconds",!1);Q("z",0,0,"zoneAbbr");Q("zz",0,0,"zoneName");function MS(){return this._isUTC?"UTC":""}function IS(){return this._isUTC?"Coordinated Universal Time":""}var P=ri.prototype;P.add=R_;P.calendar=M_;P.clone=I_;P.diff=q_;P.endOf=Q_;P.format=Y_;P.from=H_;P.fromNow=V_;P.to=X_;P.toNow=Z_;P.get=Uw;P.invalidAt=lS;P.isAfter=O_;P.isBefore=P_;P.isBetween=F_;P.isSame=B_;P.isSameOrAfter=$_;P.isSameOrBefore=z_;P.isValid=sS;P.lang=Qg;P.locale=Kg;P.localeData=Jg;P.max=s_;P.min=o_;P.parsingFlags=iS;P.set=Yw;P.startOf=K_;P.subtract=A_;P.toArray=nS;P.toObject=rS;P.toDate=tS;P.toISOString=G_;P.inspect=U_;typeof Symbol<"u"&&Symbol.for!=null&&(P[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});P.toJSON=oS;P.toString=W_;P.unix=eS;P.valueOf=J_;P.creationData=aS;P.eraName=fS;P.eraNarrow=pS;P.eraAbbr=mS;P.eraYear=hS;P.year=Tg;P.isLeapYear=Gw;P.weekYear=CS;P.isoWeekYear=_S;P.quarter=P.quarters=TS;P.month=Mg;P.daysInMonth=tC;P.week=P.weeks=uC;P.isoWeek=P.isoWeeks=cC;P.weeksInYear=ES;P.weeksInWeekYear=RS;P.isoWeeksInYear=SS;P.isoWeeksInISOWeekYear=kS;P.date=o1;P.day=P.days=_C;P.weekday=SC;P.isoWeekday=kC;P.dayOfYear=jS;P.hour=P.hours=LC;P.minute=P.minutes=DS;P.second=P.seconds=LS;P.millisecond=P.milliseconds=s1;P.utcOffset=m_;P.utc=g_;P.local=x_;P.parseZone=y_;P.hasAlignedHourOffset=v_;P.isDST=b_;P.isLocal=C_;P.isUtcOffset=__;P.isUtc=Hg;P.isUTC=Hg;P.zoneAbbr=MS;P.zoneName=IS;P.dates=Nt("dates accessor is deprecated. Use date instead.",o1);P.months=Nt("months accessor is deprecated. Use month instead",Mg);P.years=Nt("years accessor is deprecated. Use year instead",Tg);P.zone=Nt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",h_);P.isDSTShifted=Nt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",w_);function OS(e){return je(e*1e3)}function PS(){return je.apply(null,arguments).parseZone()}function i1(e){return e}var xe=dd.prototype;xe.calendar=Cw;xe.longDateFormat=Ew;xe.invalidDate=Aw;xe.ordinal=Dw;xe.preparse=i1;xe.postformat=i1;xe.relativeTime=Nw;xe.pastFuture=Mw;xe.set=bw;xe.eras=uS;xe.erasParse=cS;xe.erasConvertYear=dS;xe.erasAbbrRegex=xS;xe.erasNameRegex=gS;xe.erasNarrowRegex=yS;xe.months=Kw;xe.monthsShort=Qw;xe.monthsParse=eC;xe.monthsRegex=rC;xe.monthsShortRegex=nC;xe.week=sC;xe.firstDayOfYear=aC;xe.firstDayOfWeek=lC;xe.weekdays=yC;xe.weekdaysMin=bC;xe.weekdaysShort=vC;xe.weekdaysParse=CC;xe.weekdaysRegex=EC;xe.weekdaysShortRegex=RC;xe.weekdaysMinRegex=AC;xe.isPM=jC;xe.meridiem=NC;function Al(e,t,r,o){var s=$n(),i=gn().set(o,t);return s[r](i,e)}function l1(e,t,r){if(Fn(e)&&(t=e,e=void 0),e=e||"",t!=null)return Al(e,t,r,"month");var o,s=[];for(o=0;o<12;o++)s[o]=Al(e,o,r,"month");return s}function Td(e,t,r,o){typeof e=="boolean"?(Fn(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Fn(t)&&(r=t,t=void 0),t=t||"");var s=$n(),i=e?s._week.dow:0,l,a=[];if(r!=null)return Al(t,(r+i)%7,o,"day");for(l=0;l<7;l++)a[l]=Al(t,(l+i)%7,o,"day");return a}function FS(e,t){return l1(e,t,"months")}function BS(e,t){return l1(e,t,"monthsShort")}function $S(e,t,r){return Td(e,t,r,"weekdays")}function zS(e,t,r){return Td(e,t,r,"weekdaysShort")}function qS(e,t,r){return Td(e,t,r,"weekdaysMin")}ir("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=de(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});N.lang=Nt("moment.lang is deprecated. Use moment.locale instead.",ir);N.langData=Nt("moment.langData is deprecated. Use moment.localeData instead.",$n);var _n=Math.abs;function WS(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this}function a1(e,t,r,o){var s=Qt(t,r);return e._milliseconds+=o*s._milliseconds,e._days+=o*s._days,e._months+=o*s._months,e._bubble()}function GS(e,t){return a1(this,e,t,1)}function US(e,t){return a1(this,e,t,-1)}function ip(e){return e<0?Math.floor(e):Math.ceil(e)}function YS(){var e=this._milliseconds,t=this._days,r=this._months,o=this._data,s,i,l,a,u;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=ip(ic(r)+t)*864e5,t=0,r=0),o.milliseconds=e%1e3,s=Rt(e/1e3),o.seconds=s%60,i=Rt(s/60),o.minutes=i%60,l=Rt(i/60),o.hours=l%24,t+=Rt(l/24),u=Rt(u1(t)),r+=u,t-=ip(ic(u)),a=Rt(r/12),r%=12,o.days=t,o.months=r,o.years=a,this}function u1(e){return e*4800/146097}function ic(e){return e*146097/4800}function HS(e){if(!this.isValid())return NaN;var t,r,o=this._milliseconds;if(e=Mt(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+o/864e5,r=this._months+u1(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(ic(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return t*24+o/36e5;case"minute":return t*1440+o/6e4;case"second":return t*86400+o/1e3;case"millisecond":return Math.floor(t*864e5)+o;default:throw new Error("Unknown unit "+e)}}function zn(e){return function(){return this.as(e)}}var c1=zn("ms"),VS=zn("s"),XS=zn("m"),ZS=zn("h"),KS=zn("d"),QS=zn("w"),JS=zn("M"),ek=zn("Q"),tk=zn("y"),nk=c1;function rk(){return Qt(this)}function ok(e){return e=Mt(e),this.isValid()?this[e+"s"]():NaN}function Mr(e){return function(){return this.isValid()?this._data[e]:NaN}}var sk=Mr("milliseconds"),ik=Mr("seconds"),lk=Mr("minutes"),ak=Mr("hours"),uk=Mr("days"),ck=Mr("months"),dk=Mr("years");function fk(){return Rt(this.days()/7)}var kn=Math.round,ro={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function pk(e,t,r,o,s){return s.relativeTime(t||1,!!r,e,o)}function mk(e,t,r,o){var s=Qt(e).abs(),i=kn(s.as("s")),l=kn(s.as("m")),a=kn(s.as("h")),u=kn(s.as("d")),c=kn(s.as("M")),p=kn(s.as("w")),m=kn(s.as("y")),g=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||l<=1&&["m"]||l<r.m&&["mm",l]||a<=1&&["h"]||a<r.h&&["hh",a]||u<=1&&["d"]||u<r.d&&["dd",u];return r.w!=null&&(g=g||p<=1&&["w"]||p<r.w&&["ww",p]),g=g||c<=1&&["M"]||c<r.M&&["MM",c]||m<=1&&["y"]||["yy",m],g[2]=t,g[3]=+e>0,g[4]=o,pk.apply(null,g)}function hk(e){return e===void 0?kn:typeof e=="function"?(kn=e,!0):!1}function gk(e,t){return ro[e]===void 0?!1:t===void 0?ro[e]:(ro[e]=t,e==="s"&&(ro.ss=t-1),!0)}function xk(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,o=ro,s,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(o=Object.assign({},ro,t),t.s!=null&&t.ss==null&&(o.ss=t.s-1)),s=this.localeData(),i=mk(this,!r,o,s),r&&(i=s.pastFuture(+this,i)),s.postformat(i)}var fu=Math.abs;function Kr(e){return(e>0)-(e<0)||+e}function ba(){if(!this.isValid())return this.localeData().invalidDate();var e=fu(this._milliseconds)/1e3,t=fu(this._days),r=fu(this._months),o,s,i,l,a=this.asSeconds(),u,c,p,m;return a?(o=Rt(e/60),s=Rt(o/60),e%=60,o%=60,i=Rt(r/12),r%=12,l=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=a<0?"-":"",c=Kr(this._months)!==Kr(a)?"-":"",p=Kr(this._days)!==Kr(a)?"-":"",m=Kr(this._milliseconds)!==Kr(a)?"-":"",u+"P"+(i?c+i+"Y":"")+(r?c+r+"M":"")+(t?p+t+"D":"")+(s||o||e?"T":"")+(s?m+s+"H":"")+(o?m+o+"M":"")+(e?m+l+"S":"")):"P0D"}var me=ya.prototype;me.isValid=c_;me.abs=WS;me.add=GS;me.subtract=US;me.as=HS;me.asMilliseconds=c1;me.asSeconds=VS;me.asMinutes=XS;me.asHours=ZS;me.asDays=KS;me.asWeeks=QS;me.asMonths=JS;me.asQuarters=ek;me.asYears=tk;me.valueOf=nk;me._bubble=YS;me.clone=rk;me.get=ok;me.milliseconds=sk;me.seconds=ik;me.minutes=lk;me.hours=ak;me.days=uk;me.weeks=fk;me.months=ck;me.years=dk;me.humanize=xk;me.toISOString=ba;me.toString=ba;me.toJSON=ba;me.locale=Kg;me.localeData=Jg;me.toIsoString=Nt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ba);me.lang=Qg;Q("X",0,0,"unix");Q("x",0,0,"valueOf");G("x",ma);G("X",Fw);Se("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Se("x",function(e,t,r){r._d=new Date(de(e))});//! moment.js
|
|
277
|
-
N.version="2.30.1";yw(je);N.fn=P;N.min=i_;N.max=l_;N.now=a_;N.utc=gn;N.unix=OS;N.months=FS;N.isDate=ni;N.locale=ir;N.invalid=ca;N.duration=Qt;N.isMoment=Vt;N.weekdays=$S;N.parseZone=PS;N.localeData=$n;N.isDuration=el;N.monthsShort=BS;N.weekdaysMin=qS;N.defineLocale=wd;N.updateLocale=PC;N.locales=FC;N.weekdaysShort=zS;N.normalizeUnits=Mt;N.relativeTimeRounding=hk;N.relativeTimeThreshold=gk;N.calendarFormat=N_;N.prototype=P;N.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var jd="Popover",[d1,oL]=Kt(jd,[mr]),ii=mr(),[yk,xr]=d1(jd),f1=e=>{const{__scopePopover:t,children:r,open:o,defaultOpen:s,onOpenChange:i,modal:l=!1}=e,a=ii(t),u=f.useRef(null),[c,p]=f.useState(!1),[m=!1,g]=dr({prop:o,defaultProp:s,onChange:i});return d.jsx(Wl,{...a,children:d.jsx(yk,{scope:t,contentId:jt(),triggerRef:u,open:m,onOpenChange:g,onOpenToggle:f.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:c,onCustomAnchorAdd:f.useCallback(()=>p(!0),[]),onCustomAnchorRemove:f.useCallback(()=>p(!1),[]),modal:l,children:r})})};f1.displayName=jd;var p1="PopoverAnchor",m1=f.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,s=xr(p1,r),i=ii(r),{onCustomAnchorAdd:l,onCustomAnchorRemove:a}=s;return f.useEffect(()=>(l(),()=>a()),[l,a]),d.jsx(Ys,{...i,...o,ref:t})});m1.displayName=p1;var h1="PopoverTrigger",Dd=f.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,s=xr(h1,r),i=ii(r),l=ae(t,s.triggerRef),a=d.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":v1(s.open),...o,ref:l,onClick:q(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:d.jsx(Ys,{asChild:!0,...i,children:a})});Dd.displayName=h1;var Ld="PopoverPortal",[vk,bk]=d1(Ld,{forceMount:void 0}),g1=e=>{const{__scopePopover:t,forceMount:r,children:o,container:s}=e,i=xr(Ld,t);return d.jsx(vk,{scope:t,forceMount:r,children:d.jsx(Qe,{present:r||i.open,children:d.jsx(To,{asChild:!0,container:s,children:o})})})};g1.displayName=Ld;var Co="PopoverContent",Nd=f.forwardRef((e,t)=>{const r=bk(Co,e.__scopePopover),{forceMount:o=r.forceMount,...s}=e,i=xr(Co,e.__scopePopover);return d.jsx(Qe,{present:o||i.open,children:i.modal?d.jsx(wk,{...s,ref:t}):d.jsx(Ck,{...s,ref:t})})});Nd.displayName=Co;var wk=f.forwardRef((e,t)=>{const r=xr(Co,e.__scopePopover),o=f.useRef(null),s=ae(t,o),i=f.useRef(!1);return f.useEffect(()=>{const l=o.current;if(l)return Jl(l)},[]),d.jsx(Qs,{as:lr,allowPinchZoom:!0,children:d.jsx(x1,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,l=>{var a;l.preventDefault(),i.current||(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,l=>{const a=l.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,c=a.button===2||u;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:q(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),Ck=f.forwardRef((e,t)=>{const r=xr(Co,e.__scopePopover),o=f.useRef(!1),s=f.useRef(!1);return d.jsx(x1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,a;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(o.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),o.current=!1,s.current=!1},onInteractOutside:i=>{var l,a;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=i.target;((a=r.triggerRef.current)==null?void 0:a.contains(u))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),x1=f.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:p,...m}=e,g=xr(Co,r),h=ii(r);return Ql(),d.jsx(Ks,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:i,children:d.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:p,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>g.onOpenChange(!1),children:d.jsx(Gl,{"data-state":v1(g.open),role:"dialog",id:g.contentId,...h,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),y1="PopoverClose",_k=f.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,s=xr(y1,r);return d.jsx(ee.button,{type:"button",...o,ref:t,onClick:q(e.onClick,()=>s.onOpenChange(!1))})});_k.displayName=y1;var Sk="PopoverArrow",kk=f.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,s=ii(r);return d.jsx(Ul,{...s,...o,ref:t})});kk.displayName=Sk;function v1(e){return e?"open":"closed"}var li=f1,b1=m1,wa=Dd,ai=g1,Ca=Nd;const Ek={wrapper:{position:"mly1n2onr6",$$css:!0}},Rk=e=>{const[t,r]=e.split("-");return{side:t,align:r||"center"}},Ak=({open:e,setOpen:t,children:r,width:o=350,maxHeight:s,placement:i="right-start",referenceDiv:l,zIndex:a=10,xOffset:u=0,yOffset:c=10,disabled:p=!1,customStyle:m})=>{const g=f.useRef(null),{side:h,align:x}=Rk(i),v=()=>h==="top"||h==="bottom"?c:u,y=()=>h==="top"||h==="bottom"?u:c;return d.jsx("div",{...A.props(Ek.wrapper,m),ref:g,children:d.jsxs(li,{open:e&&!p,onOpenChange:t,children:[d.jsx(b1,{asChild:!0,children:d.jsx("div",{ref:l||g})}),e&&!p&&d.jsx(ai,{children:d.jsx(Ca,{className:"mly15q0wj1 mly12oqio5 mly1a3rnpv mly12azwz9 mly64z8l9",side:h,align:x,sideOffset:v(),alignOffset:y(),style:{width:typeof o=="string"?o:`${o}px`,zIndex:a,...s?{maxHeight:`${s}px`}:{}},avoidCollisions:!0,children:r})})]})})},nl={wrapper:{position:"mly1n2onr6",$$css:!0},checkIcon:{verticalAlign:"mly1n8ftqi",width:"mlyw4jnvo",minWidth:"mlyt4ypqs",opacity:"mly1vqud6w",visibility:"mlylshs6z",color:"mly1pc1dlx",$$css:!0},checkIconSelected:{visibility:"mlynpuxes",$$css:!0},selectListDiv:{fontSize:"mlymhiqyu",fontFamily:"mly12xrqmb",textTransform:"mly6mezaz",fontWeight:"mly1fcty0u",width:"mlyh8yej3",padding:"mly1b4vry6",maxHeight:"mly1phlbz0",display:"mly78zum5",flexDirection:"mlydt5ytf",$$css:!0}},yn=({autoFocus:e,value:t,onChange:r,options:o,placeholder:s="Select",disabled:i=!1,valueEqual:l=(c,p)=>c===p,width:a=200,customStyle:u})=>{var c;const[p,m]=f.useState(!1),[g,h]=f.useState(!1),[x,v]=f.useState(!1),y=t!==void 0&&((c=o.find(w=>l(w.value,t)))==null?void 0:c.label)||s,b=w=>{r?.(w),m(!1)};return d.jsxs("div",{...A.props(nl.wrapper,u),children:[d.jsxs("button",{type:"button",autoFocus:e,...{0:{className:"mlyjbqb8w mlymhiqyu mly1vspu6z mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3"},4:{className:"mlyjbqb8w mlymhiqyu mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mlyss3vti"},2:{className:"mlyjbqb8w mlymhiqyu mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz"},6:{className:"mlyjbqb8w mlymhiqyu mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz"},1:{className:"mlymhiqyu mly1vspu6z mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mlyt0e3qv mly1jjku57"},5:{className:"mlymhiqyu mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mlyss3vti mlyt0e3qv mly1jjku57"},3:{className:"mlymhiqyu mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz mlyt0e3qv mly1jjku57"},7:{className:"mlymhiqyu mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz mlyt0e3qv mly1jjku57"}}[!!g<<2|!!x<<1|!!i<<0],onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onFocus:()=>v(!0),onBlur:()=>v(!1),onClick:w=>{w.preventDefault(),w.stopPropagation(),i||m(!0)},disabled:i,children:[y,d.jsx(ie,{name:"chevronDown"})]}),d.jsx(Ak,{open:p,setOpen:m,placement:"bottom-start",width:a,maxHeight:500,children:d.jsx(Tk,{options:o,value:t,valueEqual:l,onChange:b})})]})};function Tk({options:e,value:t,onChange:r,valueEqual:o=(i,l)=>i===l,customStyle:s}){const[i,l]=f.useState(null);return d.jsx(Bc,{children:d.jsx("div",{...A.props(nl.selectListDiv,s),children:e.reduce((a,u,c)=>{const p=t!==void 0&&o(t,u.value);return u.divider&&a.push(f.createElement("div",{className:"mly77krkw mlyh8yej3 mlynfbntj",key:"divider"+c})),a.push(d.jsxs("label",{...{0:{className:"mlydqdrvq mly1ypdohk mlyuxw1ft mlylyipyv mly1pc1dlx mlyrvj5dj mly1mt1orb mlylqzeqv mly6s0dn4"},1:{className:"mlydqdrvq mly1ypdohk mlyuxw1ft mlylyipyv mly1pc1dlx mlyrvj5dj mly1mt1orb mlylqzeqv mly6s0dn4 mly6wxqrg"}}[(i===c)<<0],onMouseEnter:()=>l(c),onMouseLeave:()=>l(null),onClick:()=>r(u.value),children:[d.jsx("input",{className:"mlynalus7 mlyqtp20y",type:"radio",defaultChecked:p}),d.jsx(ie,{name:"checkmark",customStyle:{...nl.checkIcon,...p?nl.checkIconSelected:void 0}}),d.jsx("span",{className:"mlyet2fuk mlyb3r6kr mlylyipyv mly1fc57z9",children:u.label})]},c)),a},[])})})}const _o={second:"YYYY-MM-DD HH:mm:ss",minute:"YYYY-MM-DD HH:mm",hour:"YYYY-MM-DD HH:00",day:"YYYY-MM-DD",week:"YYYY-MM-DD-[WK]",month:"YYYY-MM",quarter:"YYYY-[Q]Q",year:"YYYY"},lc={second:/\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d/,minute:/\d\d\d\d-\d\d-\d\d \d\d:\d\d/,hour:/\d\d\d\d-\d\d-\d\d \d\d:00/,day:/\d\d\d\d-\d\d-\d\d/,week:/\d\d\d\d-\d\d-\d\d-WK/,month:/\d\d\d\d-\d\d/,quarter:/\d\d\d\d-Q\d/,year:/\d\d\d\d/},Tl=({value:e,setValue:t,placeholder:r,autoFocus:o,units:s,onFocus:i,onBlur:l,isActive:a,customStyle:u,forwardRef:c})=>{const p=_o[s],[m,g]=f.useState(N.utc(e).format(p));return f.useEffect(()=>{g(N.utc(e).format(p))},[e,p]),d.jsx("input",{...A.props(u,a?jk.active:null),type:"text",placeholder:r||p,value:m,onFocus:i,onBlur:l,onChange:h=>{const x=h.target.value;g(x);const v=lc[s];if(x.match(v)){const y=N.utc(x,p);y.isValid()&&t(y.toDate())}},autoFocus:o,ref:c})};function Fi(e,t){if(e.moment==="literal"){const{literal:r}=e;for(const o in lc){const s=o;if(r.match(lc[s]))return s}}return t?"second":"day"}const jk={active:{backgroundColor:"mly1vzefiq",$$css:!0}};function Dk(e){return["January","February","March","April","May","June","July","August","September","October","November","December"][e]}const lp=Object.keys(_o);function Md({value:e,setValue:t,units:r,maxLevel:o,customStyle:s,forwardRef:i}){const[l,a]=f.useState(e),u=Nk(l),[c,p]=f.useState(r),m=Math.floor(N.utc(l).year()/10)*10;f.useEffect(()=>{const _=lp.findIndex(E=>E===r);lp.findIndex(E=>E===c)<_&&p(r)},[r,c]),f.useEffect(()=>{a(e)},[e]);const g=_=>{const k=N.utc(l).year(_).toDate();a(k),t(k)},h=_=>{const k=()=>g(m+_);return _===-1||_===10?d.jsx("div",{onClick:k,className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1fcty0u mly1ypdohk mly6mezaz mly1sxf85j mlyt89l8w mly1fxp9ov mly358b0h",children:m+_}):d.jsx("div",{onClick:k,...{0:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1fcty0u mly1ypdohk mly6mezaz mly1sxf85j mlyt89l8w mly1fxp9ov"},1:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1fcty0u mly1ypdohk mly6mezaz mly1sxf85j mlyt89l8w mly1fxp9ov mly6wxqrg mly10bk7bj"}}[(N.utc(l).year()===m+_)<<0],children:m+_})},x=_=>{const k=N.utc(l).month(_).toDate();a(k),t(k)},v=_=>{a(_),t(_)},y=_=>{a(_),t(_)},b=_=>{const k=N.utc(l).quarter(_+1).toDate();a(k),t(k)},w=_=>{const k=()=>x(_),E=N.utc(l).month()===_&&N.utc(l).year()===N.utc(e).year();return d.jsx("div",{onClick:k,...{0:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov"},1:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov mly6wxqrg mly10bk7bj"}}[!!E<<0],children:Dk(_)})},C=_=>{const k=()=>b(_),E=N.utc(l).quarter()-1===_&&N.utc(l).year()===N.utc(e).year();return d.jsxs("div",{onClick:k,...{0:{className:"mly1rxuhir mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov"},1:{className:"mly1rxuhir mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov mly6wxqrg mly10bk7bj"}}[!!E<<0],children:["Q",_+1]})};return d.jsxs("div",{...A.props(Lk.outer,s),ref:i,children:[d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly1nejdyq mlyu06os2",children:[d.jsx("div",{className:"mly1sxf85j mly1nn3v0j mly6wrskw mlymzs88n mly1ypdohk mlyjg9ulk",children:d.jsx(ke,{variant:"default",size:"compact",icon:"chevronLeft",onClick:()=>{c==="day"||c==="week"?a(N.utc(l).subtract(1,"month").toDate()):c==="month"||c==="quarter"?a(N.utc(l).subtract(1,"year").toDate()):c==="year"?a(N.utc(l).subtract(10,"years").toDate()):v(N.utc(l).subtract(1,"days").toDate())}})}),d.jsxs("div",{className:"mly1sxf85j mlyfawy5m mly123j3cw mly1iyjqo2 mly2b8uid mly1ypdohk mly6mezaz mly1fcty0u mlyjg9ulk",onClick:()=>{p(c==="day"||c==="week"?"month":c==="month"||c==="quarter"?"year":c==="hour"||c==="minute"||c==="second"?"day":o)},children:[(c==="day"||c==="week")&&N.utc(l).format("MMMM YYYY"),(c==="month"||c==="quarter")&&N.utc(l).format("YYYY"),c==="year"&&d.jsxs(d.Fragment,{children:[m,"-",m+9]}),(c==="hour"||c==="minute"||c==="second")&&d.jsx(d.Fragment,{children:N.utc(l).format("MMMM D, YYYY")})]}),d.jsx("div",{className:"mly1sxf85j mly1nn3v0j mly6wrskw mlymzs88n mly1ypdohk mlyjg9ulk",children:d.jsx(ke,{variant:"default",size:"compact",icon:"chevronRight",onClick:()=>{c==="day"||c==="week"?a(N.utc(l).add(1,"month").toDate()):c==="month"||c==="quarter"?a(N.utc(l).add(1,"year").toDate()):c==="year"?a(N.utc(l).add(10,"years").toDate()):v(N.utc(l).add(1,"days").toDate())}})})]}),c==="day"&&d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly195vfkc mly87ps6o",children:[d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"M"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"W"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"F"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"})]}),u.map((_,k)=>d.jsx("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:_.map(E=>d.jsx("div",{onClick:()=>{v(E.date)},...{0:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly358b0h"},2:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly1v5ugh9"},1:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly6wxqrg mly1nwq7qm mly10bk7bj"},3:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly6wxqrg mly1nwq7qm mly10bk7bj"}}[!!E.isCurrentMonth<<1|(e.getTime()===E.date.valueOf())<<0],children:E.number},E.number))},k))]}),c==="month"&&d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlyk2yuxw",children:[d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[w(0),w(1),w(2)]}),d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[w(3),w(4),w(5)]}),d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[w(6),w(7),w(8)]}),d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[w(9),w(10),w(11)]})]}),c==="year"&&d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlyk2yuxw",children:[d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(-1),h(0),h(1)]}),d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(2),h(3),h(4)]}),d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(5),h(6),h(7)]}),d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(8),h(9),h(10)]})]}),c==="quarter"&&d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlyk2yuxw",children:[C(0),C(1),C(2),C(3)]}),c==="week"&&d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly195vfkc mly87ps6o",children:[d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"M"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"W"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"F"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"})]}),u.map((_,k)=>d.jsx("div",{onClick:()=>{y(_[0].date)},...{0:{className:"mly78zum5 mly1ypdohk mly1q0g3np mly195vfkc mly1f96onm mly1qughib mlyfj9a5l mlyt89l8w"},1:{className:"mly78zum5 mly1ypdohk mly1q0g3np mly195vfkc mly1f96onm mly1qughib mlyfj9a5l mlyt89l8w mly6wxqrg mly1nwq7qm mly10bk7bj"}}[(e.getTime()===_[0].date.valueOf())<<0],children:_.map(E=>d.jsx("div",{...{0:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mly358b0h"},1:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mly1v5ugh9"}}[!!E.isCurrentMonth<<0],children:E.number},E.number))},k))]}),(c==="hour"||c==="minute"||c==="second")&&d.jsx("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlylo07zb",children:d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly87ps6o mly1l1ennw mly883omv",children:[d.jsx(au,{label:"Hours",value:parseInt(N.utc(l).format("hh")),setValue:_=>{const k=N.utc(l).hour()>=12?"PM":"AM",E=parseInt(N.utc(`${_} ${k}`,["hh A"]).format("H"));t(N.utc(l).hour(E).toDate())},width:"40px"}),(r==="minute"||r==="second")&&d.jsx(au,{label:"Minutes",value:N.utc(l).minutes(),setValue:_=>{t(N.utc(l).minute(_).toDate())},width:"40px"}),r==="second"&&d.jsx(au,{label:"Seconds",value:N.utc(l).seconds(),setValue:_=>{t(N.utc(l).second(_).toDate())},width:"40px"}),d.jsx("div",{style:{display:"flex",justifyContent:"flex-end",flexDirection:"column"},children:d.jsx(yn,{value:N.utc(l).hour()>=12?"PM":"AM",onChange:_=>{const k=parseInt(N.utc(l).format("h")),E=parseInt(N.utc(`${k} ${_}`,["hh A"]).format("H"));t(N.utc(l).hour(E).toDate())},options:[{value:"AM",label:"AM"},{value:"PM",label:"PM"}]})})]})})]})}const Lk={outer:{userSelect:"mly87ps6o",fontSize:"mlymhiqyu",fontFamily:"mly12xrqmb",$$css:!0}};function Nk(e){const t=N.utc(e).date(1),r=t.day(),o=t.daysInMonth(),s=t.clone().subtract(1,"day").daysInMonth(),i=[];for(let l=0;l<6;l++){const a=[];for(let u=0;u<7;u++)if(l===0&&u<r){const c=r-u;a.push({number:s-c+1,date:t.clone().subtract(c,"days").toDate(),isCurrentMonth:!1})}else{const c=l*7+u-r;c<o?a.push({number:c+1,date:t.clone().add(c,"days").toDate(),isCurrentMonth:!0}):a.push({number:c-o+1,date:t.clone().add(c,"days").toDate(),isCurrentMonth:!1})}i.push(a)}return i}function Mk({width:e,minWidth:t,onWidthChange:r}){const o=s=>{const i=e,l=s.clientX,a=()=>{document.body.removeEventListener("mousemove",u),document.body.removeEventListener("mouseup",a),document.body.style.cursor="initial",document.body.style.userSelect="initial"},u=c=>{const p=i+(c.clientX-l);r(Math.max(p,t))};document.body.addEventListener("mousemove",u),document.body.addEventListener("mouseup",a),document.body.style.cursor="ew-resize",document.body.style.userSelect="none"};return d.jsx("div",{className:"mly7eptgl mly1ftt334 mly5yr21d mly1vjfegm mly10l6tqk mly13vifvy mly1bkpikb",onMouseDown:s=>o(s)})}function ac({title:e,description:t,variant:r="info",children:o}){return d.jsxs("div",{className:"mly1q4ynmn mlyh8yej3 mly5yr21d mly78zum5 mlydt5ytf mly1kmqopl mly16zck5j",children:[d.jsxs("div",{...A.props(ls.header,Ok[r],o?ls.headerWithContent:null),children:[d.jsx("div",{className:"mly1qx5ct2 mly78zum5 mlyl56j7k mly6s0dn4",children:d.jsx(ie,{...Ik[r]})}),d.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyb3r6kr",children:[d.jsx("div",{...A.props(ls.title,Y.emphasized),children:e}),d.jsx("div",{...A.props(ls.description,Y.supporting),children:t})]})]}),o&&d.jsx("div",{...A.props(ls.content,Y.body),children:d.jsx(Bc,{children:o})})]})}const ls={header:{borderRadius:"mly1q4ynmn",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,width:"mlyh8yej3",padding:"mlyc7ga6q",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,boxSizing:"mly9f619",display:"mly78zum5",flexDirection:"mly1q0g3np",alignItems:"mly7a106z",justifyContent:"mlylqzeqv",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},headerWithContent:{borderRadius:"mlyq516e8",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},title:{textOverflow:"mlylyipyv",whiteSpace:"mlyuxw1ft",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0},description:{textOverflow:"mlylyipyv",whiteSpace:"mlyuxw1ft",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0},content:{padding:"mly1tamke2",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,backgroundColor:"mly12peec7",borderRadius:"mly11zuszs",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0}},Ik={info:{name:"info",color:"info"},success:{name:"check_circle",color:"positive"},warn:{name:"warning",color:"warning"},critical:{name:"error",color:"negative"}},Ok={info:{backgroundColor:"mly1pnbjq1",$$css:!0},success:{backgroundColor:"mly1x3oq6j",$$css:!0},warn:{backgroundColor:"mly1x7w6om",$$css:!0},critical:{backgroundColor:"mlyrkwa2d",$$css:!0}},w1=f.createContext({});function Pk({defaultExpandedItemId:e,children:t,customStyle:r}){const[o,s]=f.useState(e),i=l=>{s(a=>{if(a!==l)return l})};return d.jsx(w1.Provider,{value:{expandedItemId:o,onExpandedItemChange:i},children:d.jsx("div",{...A.props(Fk.main,r),children:f.Children.map(t,l=>d.jsxs(d.Fragment,{children:[l,d.jsx(lo,{})]}))})})}const Fk={main:{display:"mly78zum5",flexDirection:"mlydt5ytf",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,flexGrow:"mly1iyjqo2",$$css:!0}};function pu({id:e,label:t,sublabel:r,startIcon:o,badge:s,endIcon:i,children:l}){const{expandedItemId:a,onExpandedItemChange:u}=f.useContext(w1);return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"mly78zum5 mly6s0dn4 mlylqzeqv mlye8ttls mly167g77z mly1ypdohk",onClick:()=>u?.(e),children:[o&&d.jsx(d.Fragment,{children:o}),d.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyb3r6kr mly1iyjqo2",children:[d.jsx("span",{...A.props(Y.body,ap.label),children:t}),r&&d.jsx("span",{...A.props(Y.supporting,ap.sublabel),children:r})]}),s&&s,i&&i]}),e===a&&d.jsx("div",{className:"mly78zum5 mlydt5ytf mly1iyjqo2 mlytdwleo mly1jnr06f mly10cdfl8 mlyysyzu8",children:f.Children.map(l,c=>c)})]})}const ap={label:{flexGrow:"mly1iyjqo2",fontWeight:"mly1xlr1w8",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0},sublabel:{flexGrow:"mly1iyjqo2",color:"mly9dwj6z",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0}};var mu="rovingFocusGroup.onEntryFocus",Bk={bubbles:!1,cancelable:!0},_a="RovingFocusGroup",[uc,C1,$k]=Wc(_a),[zk,Sa]=Kt(_a,[$k]),[qk,Wk]=zk(_a),_1=f.forwardRef((e,t)=>d.jsx(uc.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(uc.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Gk,{...e,ref:t})})}));_1.displayName=_a;var Gk=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:s=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...m}=e,g=f.useRef(null),h=ae(t,g),x=Xs(i),[v=null,y]=dr({prop:l,defaultProp:a,onChange:u}),[b,w]=f.useState(!1),C=Ye(c),_=C1(r),k=f.useRef(!1),[E,R]=f.useState(0);return f.useEffect(()=>{const j=g.current;if(j)return j.addEventListener(mu,C),()=>j.removeEventListener(mu,C)},[C]),d.jsx(qk,{scope:r,orientation:o,dir:x,loop:s,currentTabStopId:v,onItemFocus:f.useCallback(j=>y(j),[y]),onItemShiftTab:f.useCallback(()=>w(!0),[]),onFocusableItemAdd:f.useCallback(()=>R(j=>j+1),[]),onFocusableItemRemove:f.useCallback(()=>R(j=>j-1),[]),children:d.jsx(ee.div,{tabIndex:b||E===0?-1:0,"data-orientation":o,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:q(e.onMouseDown,()=>{k.current=!0}),onFocus:q(e.onFocus,j=>{const D=!k.current;if(j.target===j.currentTarget&&D&&!b){const I=new CustomEvent(mu,Bk);if(j.currentTarget.dispatchEvent(I),!I.defaultPrevented){const B=_().filter(T=>T.focusable),U=B.find(T=>T.active),K=B.find(T=>T.id===v),S=[U,K,...B].filter(Boolean).map(T=>T.ref.current);E1(S,p)}}k.current=!1}),onBlur:q(e.onBlur,()=>w(!1))})})}),S1="RovingFocusGroupItem",k1=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:s=!1,tabStopId:i,...l}=e,a=jt(),u=i||a,c=Wk(S1,r),p=c.currentTabStopId===u,m=C1(r),{onFocusableItemAdd:g,onFocusableItemRemove:h}=c;return f.useEffect(()=>{if(o)return g(),()=>h()},[o,g,h]),d.jsx(uc.ItemSlot,{scope:r,id:u,focusable:o,active:s,children:d.jsx(ee.span,{tabIndex:p?0:-1,"data-orientation":c.orientation,...l,ref:t,onMouseDown:q(e.onMouseDown,x=>{o?c.onItemFocus(u):x.preventDefault()}),onFocus:q(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:q(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){c.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=Hk(x,c.orientation,c.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let b=m().filter(w=>w.focusable).map(w=>w.ref.current);if(v==="last")b.reverse();else if(v==="prev"||v==="next"){v==="prev"&&b.reverse();const w=b.indexOf(x.currentTarget);b=c.loop?Vk(b,w+1):b.slice(w+1)}setTimeout(()=>E1(b))}})})})});k1.displayName=S1;var Uk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Yk(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Hk(e,t,r){const o=Yk(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Uk[o]}function E1(e,t=!1){const r=document.activeElement;for(const o of e)if(o===r||(o.focus({preventScroll:t}),document.activeElement!==r))return}function Vk(e,t){return e.map((r,o)=>e[(t+o)%e.length])}var R1=_1,A1=k1,cc=["Enter"," "],Xk=["ArrowDown","PageUp","Home"],T1=["ArrowUp","PageDown","End"],Zk=[...Xk,...T1],Kk={ltr:[...cc,"ArrowRight"],rtl:[...cc,"ArrowLeft"]},Qk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ui="Menu",[Ps,Jk,eE]=Wc(ui),[Ir,j1]=Kt(ui,[eE,mr,Sa]),ka=mr(),D1=Sa(),[tE,Or]=Ir(ui),[nE,ci]=Ir(ui),L1=e=>{const{__scopeMenu:t,open:r=!1,children:o,dir:s,onOpenChange:i,modal:l=!0}=e,a=ka(t),[u,c]=f.useState(null),p=f.useRef(!1),m=Ye(i),g=Xs(s);return f.useEffect(()=>{const h=()=>{p.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>p.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),d.jsx(Wl,{...a,children:d.jsx(tE,{scope:t,open:r,onOpenChange:m,content:u,onContentChange:c,children:d.jsx(nE,{scope:t,onClose:f.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:p,dir:g,modal:l,children:o})})})};L1.displayName=ui;var rE="MenuAnchor",Id=f.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e,s=ka(r);return d.jsx(Ys,{...s,...o,ref:t})});Id.displayName=rE;var Od="MenuPortal",[oE,N1]=Ir(Od,{forceMount:void 0}),M1=e=>{const{__scopeMenu:t,forceMount:r,children:o,container:s}=e,i=Or(Od,t);return d.jsx(oE,{scope:t,forceMount:r,children:d.jsx(Qe,{present:r||i.open,children:d.jsx(To,{asChild:!0,container:s,children:o})})})};M1.displayName=Od;var Dt="MenuContent",[sE,Pd]=Ir(Dt),I1=f.forwardRef((e,t)=>{const r=N1(Dt,e.__scopeMenu),{forceMount:o=r.forceMount,...s}=e,i=Or(Dt,e.__scopeMenu),l=ci(Dt,e.__scopeMenu);return d.jsx(Ps.Provider,{scope:e.__scopeMenu,children:d.jsx(Qe,{present:o||i.open,children:d.jsx(Ps.Slot,{scope:e.__scopeMenu,children:l.modal?d.jsx(iE,{...s,ref:t}):d.jsx(lE,{...s,ref:t})})})})}),iE=f.forwardRef((e,t)=>{const r=Or(Dt,e.__scopeMenu),o=f.useRef(null),s=ae(t,o);return f.useEffect(()=>{const i=o.current;if(i)return Jl(i)},[]),d.jsx(Fd,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:q(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),lE=f.forwardRef((e,t)=>{const r=Or(Dt,e.__scopeMenu);return d.jsx(Fd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Fd=f.forwardRef((e,t)=>{const{__scopeMenu:r,loop:o=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:a,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:g,onDismiss:h,disableOutsideScroll:x,...v}=e,y=Or(Dt,r),b=ci(Dt,r),w=ka(r),C=D1(r),_=Jk(r),[k,E]=f.useState(null),R=f.useRef(null),j=ae(t,R,y.onContentChange),D=f.useRef(0),I=f.useRef(""),B=f.useRef(0),U=f.useRef(null),K=f.useRef("right"),$=f.useRef(0),S=x?Qs:f.Fragment,T=x?{as:lr,allowPinchZoom:!0}:void 0,M=z=>{var fe,Oe;const we=I.current+z,Le=_().filter(pe=>!pe.disabled),Ae=document.activeElement,Je=(fe=Le.find(pe=>pe.ref.current===Ae))==null?void 0:fe.textValue,Te=Le.map(pe=>pe.textValue),Z=vE(Te,we,Je),ue=(Oe=Le.find(pe=>pe.textValue===Z))==null?void 0:Oe.ref.current;(function pe(X){I.current=X,window.clearTimeout(D.current),X!==""&&(D.current=window.setTimeout(()=>pe(""),1e3))})(we),ue&&setTimeout(()=>ue.focus())};f.useEffect(()=>()=>window.clearTimeout(D.current),[]),Ql();const H=f.useCallback(z=>{var fe,Oe;return K.current===((fe=U.current)==null?void 0:fe.side)&&wE(z,(Oe=U.current)==null?void 0:Oe.area)},[]);return d.jsx(sE,{scope:r,searchRef:I,onItemEnter:f.useCallback(z=>{H(z)&&z.preventDefault()},[H]),onItemLeave:f.useCallback(z=>{var fe;H(z)||((fe=R.current)==null||fe.focus(),E(null))},[H]),onTriggerLeave:f.useCallback(z=>{H(z)&&z.preventDefault()},[H]),pointerGraceTimerRef:B,onPointerGraceIntentChange:f.useCallback(z=>{U.current=z},[]),children:d.jsx(S,{...T,children:d.jsx(Ks,{asChild:!0,trapped:s,onMountAutoFocus:q(i,z=>{var fe;z.preventDefault(),(fe=R.current)==null||fe.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:d.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:g,onDismiss:h,children:d.jsx(R1,{asChild:!0,...C,dir:b.dir,orientation:"vertical",loop:o,currentTabStopId:k,onCurrentTabStopIdChange:E,onEntryFocus:q(u,z=>{b.isUsingKeyboardRef.current||z.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(Gl,{role:"menu","aria-orientation":"vertical","data-state":K1(y.open),"data-radix-menu-content":"",dir:b.dir,...w,...v,ref:j,style:{outline:"none",...v.style},onKeyDown:q(v.onKeyDown,z=>{const Oe=z.target.closest("[data-radix-menu-content]")===z.currentTarget,we=z.ctrlKey||z.altKey||z.metaKey,Le=z.key.length===1;Oe&&(z.key==="Tab"&&z.preventDefault(),!we&&Le&&M(z.key));const Ae=R.current;if(z.target!==Ae||!Zk.includes(z.key))return;z.preventDefault();const Te=_().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);T1.includes(z.key)&&Te.reverse(),xE(Te)}),onBlur:q(e.onBlur,z=>{z.currentTarget.contains(z.target)||(window.clearTimeout(D.current),I.current="")}),onPointerMove:q(e.onPointerMove,Fs(z=>{const fe=z.target,Oe=$.current!==z.clientX;if(z.currentTarget.contains(fe)&&Oe){const we=z.clientX>$.current?"right":"left";K.current=we,$.current=z.clientX}}))})})})})})})});I1.displayName=Dt;var aE="MenuGroup",Bd=f.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e;return d.jsx(ee.div,{role:"group",...o,ref:t})});Bd.displayName=aE;var uE="MenuLabel",O1=f.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e;return d.jsx(ee.div,{...o,ref:t})});O1.displayName=uE;var jl="MenuItem",up="menu.itemSelect",Ea=f.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:o,...s}=e,i=f.useRef(null),l=ci(jl,e.__scopeMenu),a=Pd(jl,e.__scopeMenu),u=ae(t,i),c=f.useRef(!1),p=()=>{const m=i.current;if(!r&&m){const g=new CustomEvent(up,{bubbles:!0,cancelable:!0});m.addEventListener(up,h=>o?.(h),{once:!0}),qp(m,g),g.defaultPrevented?c.current=!1:l.onClose()}};return d.jsx(P1,{...s,ref:u,disabled:r,onClick:q(e.onClick,p),onPointerDown:m=>{var g;(g=e.onPointerDown)==null||g.call(e,m),c.current=!0},onPointerUp:q(e.onPointerUp,m=>{var g;c.current||(g=m.currentTarget)==null||g.click()}),onKeyDown:q(e.onKeyDown,m=>{const g=a.searchRef.current!=="";r||g&&m.key===" "||cc.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});Ea.displayName=jl;var P1=f.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:o=!1,textValue:s,...i}=e,l=Pd(jl,r),a=D1(r),u=f.useRef(null),c=ae(t,u),[p,m]=f.useState(!1),[g,h]=f.useState("");return f.useEffect(()=>{const x=u.current;x&&h((x.textContent??"").trim())},[i.children]),d.jsx(Ps.ItemSlot,{scope:r,disabled:o,textValue:s??g,children:d.jsx(A1,{asChild:!0,...a,focusable:!o,children:d.jsx(ee.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...i,ref:c,onPointerMove:q(e.onPointerMove,Fs(x=>{o?l.onItemLeave(x):(l.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:q(e.onPointerLeave,Fs(x=>l.onItemLeave(x))),onFocus:q(e.onFocus,()=>m(!0)),onBlur:q(e.onBlur,()=>m(!1))})})})}),cE="MenuCheckboxItem",F1=f.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:o,...s}=e;return d.jsx(W1,{scope:e.__scopeMenu,checked:r,children:d.jsx(Ea,{role:"menuitemcheckbox","aria-checked":Dl(r)?"mixed":r,...s,ref:t,"data-state":zd(r),onSelect:q(s.onSelect,()=>o?.(Dl(r)?!0:!r),{checkForDefaultPrevented:!1})})})});F1.displayName=cE;var B1="MenuRadioGroup",[dE,fE]=Ir(B1,{value:void 0,onValueChange:()=>{}}),$1=f.forwardRef((e,t)=>{const{value:r,onValueChange:o,...s}=e,i=Ye(o);return d.jsx(dE,{scope:e.__scopeMenu,value:r,onValueChange:i,children:d.jsx(Bd,{...s,ref:t})})});$1.displayName=B1;var z1="MenuRadioItem",q1=f.forwardRef((e,t)=>{const{value:r,...o}=e,s=fE(z1,e.__scopeMenu),i=r===s.value;return d.jsx(W1,{scope:e.__scopeMenu,checked:i,children:d.jsx(Ea,{role:"menuitemradio","aria-checked":i,...o,ref:t,"data-state":zd(i),onSelect:q(o.onSelect,()=>{var l;return(l=s.onValueChange)==null?void 0:l.call(s,r)},{checkForDefaultPrevented:!1})})})});q1.displayName=z1;var $d="MenuItemIndicator",[W1,pE]=Ir($d,{checked:!1}),G1=f.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:o,...s}=e,i=pE($d,r);return d.jsx(Qe,{present:o||Dl(i.checked)||i.checked===!0,children:d.jsx(ee.span,{...s,ref:t,"data-state":zd(i.checked)})})});G1.displayName=$d;var mE="MenuSeparator",U1=f.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e;return d.jsx(ee.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});U1.displayName=mE;var hE="MenuArrow",Y1=f.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e,s=ka(r);return d.jsx(Ul,{...s,...o,ref:t})});Y1.displayName=hE;var gE="MenuSub",[sL,H1]=Ir(gE),ps="MenuSubTrigger",V1=f.forwardRef((e,t)=>{const r=Or(ps,e.__scopeMenu),o=ci(ps,e.__scopeMenu),s=H1(ps,e.__scopeMenu),i=Pd(ps,e.__scopeMenu),l=f.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:u}=i,c={__scopeMenu:e.__scopeMenu},p=f.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return f.useEffect(()=>p,[p]),f.useEffect(()=>{const m=a.current;return()=>{window.clearTimeout(m),u(null)}},[a,u]),d.jsx(Id,{asChild:!0,...c,children:d.jsx(P1,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":K1(r.open),...e,ref:Bl(t,s.onTriggerChange),onClick:m=>{var g;(g=e.onClick)==null||g.call(e,m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:q(e.onPointerMove,Fs(m=>{i.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!r.open&&!l.current&&(i.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:q(e.onPointerLeave,Fs(m=>{var g,h;p();const x=(g=r.content)==null?void 0:g.getBoundingClientRect();if(x){const v=(h=r.content)==null?void 0:h.dataset.side,y=v==="right",b=y?-5:5,w=x[y?"left":"right"],C=x[y?"right":"left"];i.onPointerGraceIntentChange({area:[{x:m.clientX+b,y:m.clientY},{x:w,y:x.top},{x:C,y:x.top},{x:C,y:x.bottom},{x:w,y:x.bottom}],side:v}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(m),m.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:q(e.onKeyDown,m=>{var g;const h=i.searchRef.current!=="";e.disabled||h&&m.key===" "||Kk[o.dir].includes(m.key)&&(r.onOpenChange(!0),(g=r.content)==null||g.focus(),m.preventDefault())})})})});V1.displayName=ps;var X1="MenuSubContent",Z1=f.forwardRef((e,t)=>{const r=N1(Dt,e.__scopeMenu),{forceMount:o=r.forceMount,...s}=e,i=Or(Dt,e.__scopeMenu),l=ci(Dt,e.__scopeMenu),a=H1(X1,e.__scopeMenu),u=f.useRef(null),c=ae(t,u);return d.jsx(Ps.Provider,{scope:e.__scopeMenu,children:d.jsx(Qe,{present:o||i.open,children:d.jsx(Ps.Slot,{scope:e.__scopeMenu,children:d.jsx(Fd,{id:a.contentId,"aria-labelledby":a.triggerId,...s,ref:c,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var m;l.isUsingKeyboardRef.current&&((m=u.current)==null||m.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:q(e.onFocusOutside,p=>{p.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:q(e.onEscapeKeyDown,p=>{l.onClose(),p.preventDefault()}),onKeyDown:q(e.onKeyDown,p=>{var m;const g=p.currentTarget.contains(p.target),h=Qk[l.dir].includes(p.key);g&&h&&(i.onOpenChange(!1),(m=a.trigger)==null||m.focus(),p.preventDefault())})})})})})});Z1.displayName=X1;function K1(e){return e?"open":"closed"}function Dl(e){return e==="indeterminate"}function zd(e){return Dl(e)?"indeterminate":e?"checked":"unchecked"}function xE(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function yE(e,t){return e.map((r,o)=>e[(t+o)%e.length])}function vE(e,t,r){const s=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let l=yE(e,Math.max(i,0));s.length===1&&(l=l.filter(c=>c!==r));const u=l.find(c=>c.toLowerCase().startsWith(s.toLowerCase()));return u!==r?u:void 0}function bE(e,t){const{x:r,y:o}=e;let s=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const a=t[i].x,u=t[i].y,c=t[l].x,p=t[l].y;u>o!=p>o&&r<(c-a)*(o-u)/(p-u)+a&&(s=!s)}return s}function wE(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return bE(r,t)}function Fs(e){return t=>t.pointerType==="mouse"?e(t):void 0}var CE=L1,_E=Id,SE=M1,kE=I1,EE=Bd,RE=O1,AE=Ea,TE=F1,jE=$1,DE=q1,LE=G1,NE=U1,ME=Y1,IE=V1,OE=Z1,qd="DropdownMenu",[PE,iL]=Kt(qd,[j1]),at=j1(),[FE,Q1]=PE(qd),J1=e=>{const{__scopeDropdownMenu:t,children:r,dir:o,open:s,defaultOpen:i,onOpenChange:l,modal:a=!0}=e,u=at(t),c=f.useRef(null),[p=!1,m]=dr({prop:s,defaultProp:i,onChange:l});return d.jsx(FE,{scope:t,triggerId:jt(),triggerRef:c,contentId:jt(),open:p,onOpenChange:m,onOpenToggle:f.useCallback(()=>m(g=>!g),[m]),modal:a,children:d.jsx(CE,{...u,open:p,onOpenChange:m,dir:o,modal:a,children:r})})};J1.displayName=qd;var ex="DropdownMenuTrigger",tx=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:o=!1,...s}=e,i=Q1(ex,r),l=at(r);return d.jsx(_E,{asChild:!0,...l,children:d.jsx(ee.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...s,ref:Bl(t,i.triggerRef),onPointerDown:q(e.onPointerDown,a=>{!o&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:q(e.onKeyDown,a=>{o||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});tx.displayName=ex;var BE="DropdownMenuPortal",nx=e=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return d.jsx(SE,{...o,...r})};nx.displayName=BE;var rx="DropdownMenuContent",ox=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=Q1(rx,r),i=at(r),l=f.useRef(!1);return d.jsx(kE,{id:s.contentId,"aria-labelledby":s.triggerId,...i,...o,ref:t,onCloseAutoFocus:q(e.onCloseAutoFocus,a=>{var u;l.current||(u=s.triggerRef.current)==null||u.focus(),l.current=!1,a.preventDefault()}),onInteractOutside:q(e.onInteractOutside,a=>{const u=a.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0,p=u.button===2||c;(!s.modal||p)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ox.displayName=rx;var $E="DropdownMenuGroup",zE=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(EE,{...s,...o,ref:t})});zE.displayName=$E;var qE="DropdownMenuLabel",WE=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(RE,{...s,...o,ref:t})});WE.displayName=qE;var GE="DropdownMenuItem",sx=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(AE,{...s,...o,ref:t})});sx.displayName=GE;var UE="DropdownMenuCheckboxItem",YE=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(TE,{...s,...o,ref:t})});YE.displayName=UE;var HE="DropdownMenuRadioGroup",VE=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(jE,{...s,...o,ref:t})});VE.displayName=HE;var XE="DropdownMenuRadioItem",ZE=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(DE,{...s,...o,ref:t})});ZE.displayName=XE;var KE="DropdownMenuItemIndicator",QE=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(LE,{...s,...o,ref:t})});QE.displayName=KE;var JE="DropdownMenuSeparator",eR=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(NE,{...s,...o,ref:t})});eR.displayName=JE;var tR="DropdownMenuArrow",nR=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(ME,{...s,...o,ref:t})});nR.displayName=tR;var rR="DropdownMenuSubTrigger",oR=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(IE,{...s,...o,ref:t})});oR.displayName=rR;var sR="DropdownMenuSubContent",iR=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(OE,{...s,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});iR.displayName=sR;var lR=J1,cp=tx,aR=nx,uR=ox,cR=sx;function Wd({trigger:e,tooltip:t,onOpenChange:r,children:o,tooltipProps:s}){const[i,l]=f.useState(),a=u=>{u&&l(!1),r?.(u)};return d.jsxs(lR,{onOpenChange:a,children:[t?d.jsxs(Mo,{open:i,onOpenChange:l,delayDuration:300,children:[d.jsx(Io,{asChild:!0,children:d.jsx(cp,{asChild:!0,children:e})}),d.jsx(Oo,{children:d.jsx(Po,{...s,...A.props(typeof t=="string"?Pn.default:Pn.card),children:t})})]}):d.jsx(cp,{asChild:!0,children:e}),d.jsx(aR,{children:d.jsx(uR,{...A.props(Y.body,rl.content),side:"bottom",align:"start",sideOffset:4,onCloseAutoFocus:u=>u.preventDefault(),children:f.Children.map(o,u=>u)})})]})}function Bs({icon:e,label:t,sublabel:r,onClick:o,disabled:s}){return d.jsxs(cR,{className:"mly78zum5 mly6s0dn4 mlye8ttls mly167g77z mly1kogg8i mly1ypdohk mly1a2a7pz mly1bw6wve mly5ezrf1 mly15rdse5 mly1z060rf mly5deeek mly1jacekv mly7ouyw2 mly7h4d18",onClick:i=>{o?.(i)},disabled:s,children:[e&&d.jsx(ie,{name:e,customStyle:rl.icon}),d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly1iyjqo2",children:[d.jsx("span",{...A.props(Y.body,rl.label),children:t}),r&&d.jsx("span",{...A.props(Y.supporting,rl.sublabel),children:r})]})]})}const rl={content:{display:"mly78zum5",flexDirection:"mlydt5ytf",borderRadius:"mly1q4ynmn",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,background:"mlyotlr4g",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,boxShadow:"mly17fq3gk",padding:"mlyfawy5m",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},icon:{color:"mly1mguc6l",$$css:!0},label:{flexGrow:"mly1iyjqo2",color:"mly12lmysb",$$css:!0},sublabel:{flexGrow:"mly1iyjqo2",color:"mly15jt5ur",$$css:!0}},Ra=f.createContext({});function dR({runQuery:e}){const{rootQuery:t,setQuery:r,source:o}=f.useContext(be),{onCollapse:s}=f.useContext(Ra),{focusMainView:i}=Vs(),l=!t||t.isEmpty(),a=t?.isRunnable(),u=()=>{o&&t&&e(o,t.build())};return d.jsxs("div",{className:"mly78zum5 mly1qughib mly6s0dn4 mlye8ttls",children:[d.jsxs("div",{className:"mly78zum5 mly167g77z mly6s0dn4 mlydqdrvq",children:[d.jsx(ie,{name:"filterSliders"}),d.jsx("div",{...A.props(Y.largeBody,fR.title),children:"Query"})]}),d.jsxs("div",{className:"mly78zum5 mly167g77z",children:[d.jsx(ke,{onClick:()=>{i(),r?.(void 0)},isDisabled:!t||t?.isEmpty(),label:"Clear",variant:"flat",size:"compact"}),d.jsxs(jo,{children:[d.jsx(Do,{asChild:!0,children:d.jsx(ke,{icon:"play",onClick:u,isDisabled:!a,label:"Run",variant:"primary",size:"compact"})}),d.jsx(Lo,{children:d.jsx(No,{children:d.jsx("div",{...A.props(Y.body,Pn.default),children:a?"Execute the query.":l?"The current query is empty.":"The current query cannot be executed."})})})]}),s&&d.jsx(ke,{icon:"sidebarCollapse",tooltip:"Close the source panel",onClick:s,size:"compact",variant:"flat"})]})]})}const fR={title:{fontWeight:"mly1xlr1w8",$$css:!0}},Xt={labelWithIcon:{display:"mly78zum5",alignItems:"mly6s0dn4",whiteSpace:"mlyuxw1ft",gap:"mly167g77z",rowGap:null,columnGap:null,overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0},queryCard:{border:"mlyzkdzjc",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,borderRadius:"mly1sxf85j",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},title:{whiteSpace:"mlyuxw1ft",padding:"mly17qkr04",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},tokenContainer:{display:"mly78zum5",flexDirection:"mlydt5ytf",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0}};function pR({value:e,customStyle:t}){if(!e)return d.jsx(Be,{label:"∅"});switch(e.kind){case"boolean_literal":return d.jsx(Be,{label:e.boolean_value?"true":"false",customStyle:t});case"date_literal":return d.jsx(Be,{label:e.date_value,customStyle:t});case"timestamp_literal":return d.jsx(Be,{label:e.timestamp_value,customStyle:t});case"null_literal":return d.jsx(Be,{label:"∅"});case"number_literal":return d.jsx(Be,{label:e.number_value.toLocaleString(),customStyle:t});case"string_literal":return d.jsx(Be,{label:e.string_value,customStyle:t});case"filter_expression_literal":return d.jsx(Be,{label:e.filter_expression_value,customStyle:t})}}const dc="# ",mR=["table","bar","dashboard","json","line","list","list_detail","point_map","scatter_chart","segment_map","shape_map"],hR=["table","bar_chart","dashboard","json","line_chart","list","list_detail","point_map","scatter_chart","segment_map","shape_map"],gR=["number","boolean","currency","image","url","percent","text","time"],xR=[...hR,...gR];function Gd(e){if(e){const t=e.getProperties(),r=Object.keys(t);for(const o of r)if(xR.includes(o)&&!t[o].deleted)return o}return null}function yR(e){switch(e){case"bar_chart":return"bar";case"line_chart":return"line";default:return e}}function Aa(e){return bR[e]}function ix(e){return wR[e]}function ol(e){let t;switch(e.kind){case"view":t="query";break;case"dimension":case"measure":t=Aa(e.type.kind);break;case"join":t=vR(e.relationship);break}return t}function vR(e){return CR[e]}function lx(e){const t=e.getTag();return`viz_${Gd(t)??"table"}`}const bR={array_type:"array",string_type:"string",date_type:"date",boolean_type:"boolean",number_type:"number",json_type:"json",record_type:"json",sql_native_type:"sql_native",timestamp_type:"date",filter_expression_type:"filter"},wR={view:"purple",dimension:"cyan",measure:"green",join:void 0},CR={many:"many_to_one",cross:"one_to_many",one:"one_to_one"};function jr({field:e,hoverActions:t,hoverActionsVisible:r,...o}){let s=e.name;return e.kind==="dimension"&&(e.type.kind==="timestamp_type"||e.type.kind==="date_type")&&e.type.timeframe&&(s+=`.${e.type.timeframe}`),d.jsxs("div",{...{0:{className:"mly78zum5 mly6s0dn4 mly1nhvcw1 mly1jnr06f mly28fmrt mly1x0xcia"},1:{className:"mly78zum5 mly6s0dn4 mly1nhvcw1 mly1jnr06f mlym9y5t7"}}[!!r<<0],children:[d.jsx(Be,{label:s,color:ix(e.kind),icon:ol(e),...o}),t&&d.jsx("div",{className:"mly1vsucm1 mly2lah0s",children:t})]})}function _R({drills:e}){return e.length?d.jsxs("div",{children:[d.jsx("div",{...A.props(Xt.title),children:"drills"}),d.jsx("div",{className:"mly78zum5 mlydt5ytf mly1jnr06f",children:e.map((t,r)=>{const o=t.filter.expression.getFieldInfo();return o?d.jsxs(Zs,{color:"cyan",customStyle:SR.tokenGroup,children:[d.jsx(jr,{field:o}),d.jsx(Be,{label:"="}),t.filter instanceof J.ASTFilterWithLiteralEquality?d.jsx(pR,{value:t.filter.value.node}):d.jsx(Be,{label:t.filter.filterString})]},r):null})})]}):null}const SR={tokenGroup:{display:"mly78zum5",$$css:!0}};function kR(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return f.useMemo(()=>o=>{t.forEach(s=>s(o))},t)}const Ta=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Uo(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ud(e){return"nodeType"in e}function pt(e){var t,r;return e?Uo(e)?e:Ud(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function Yd(e){const{Document:t}=pt(e);return e instanceof t}function di(e){return Uo(e)?!1:e instanceof pt(e).HTMLElement}function ax(e){return e instanceof pt(e).SVGElement}function Yo(e){return e?Uo(e)?e.document:Ud(e)?Yd(e)?e:di(e)||ax(e)?e.ownerDocument:document:document:document}const pn=Ta?f.useLayoutEffect:f.useEffect;function Hd(e){const t=f.useRef(e);return pn(()=>{t.current=e}),f.useCallback(function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return t.current==null?void 0:t.current(...o)},[])}function ER(){const e=f.useRef(null),t=f.useCallback((o,s)=>{e.current=setInterval(o,s)},[]),r=f.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function $s(e,t){t===void 0&&(t=[e]);const r=f.useRef(e);return pn(()=>{r.current!==e&&(r.current=e)},t),r}function fi(e,t){const r=f.useRef();return f.useMemo(()=>{const o=e(r.current);return r.current=o,o},[...t])}function Ll(e){const t=Hd(e),r=f.useRef(null),o=f.useCallback(s=>{s!==r.current&&t?.(s,r.current),r.current=s},[]);return[r,o]}function fc(e){const t=f.useRef();return f.useEffect(()=>{t.current=e},[e]),t.current}let hu={};function pi(e,t){return f.useMemo(()=>{if(t)return t;const r=hu[e]==null?0:hu[e]+1;return hu[e]=r,e+"-"+r},[e,t])}function ux(e){return function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return o.reduce((i,l)=>{const a=Object.entries(l);for(const[u,c]of a){const p=i[u];p!=null&&(i[u]=p+e*c)}return i},{...t})}}const ho=ux(1),Nl=ux(-1);function RR(e){return"clientX"in e&&"clientY"in e}function Vd(e){if(!e)return!1;const{KeyboardEvent:t}=pt(e.target);return t&&e instanceof t}function AR(e){if(!e)return!1;const{TouchEvent:t}=pt(e.target);return t&&e instanceof t}function pc(e){if(AR(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return RR(e)?{x:e.clientX,y:e.clientY}:null}const zs=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[zs.Translate.toString(e),zs.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:o}=e;return t+" "+r+"ms "+o}}}),dp="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function TR(e){return e.matches(dp)?e:e.querySelector(dp)}const jR={display:"none"};function DR(e){let{id:t,value:r}=e;return Ie.createElement("div",{id:t,style:jR},r)}function LR(e){let{id:t,announcement:r,ariaLiveType:o="assertive"}=e;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Ie.createElement("div",{id:t,style:s,role:"status","aria-live":o,"aria-atomic":!0},r)}function NR(){const[e,t]=f.useState("");return{announce:f.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const cx=f.createContext(null);function MR(e){const t=f.useContext(cx);f.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function IR(){const[e]=f.useState(()=>new Set),t=f.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[f.useCallback(o=>{let{type:s,event:i}=o;e.forEach(l=>{var a;return(a=l[s])==null?void 0:a.call(l,i)})},[e]),t]}const PR={draggable:`
|
|
277
|
+
N.version="2.30.1";yw(je);N.fn=P;N.min=i_;N.max=l_;N.now=a_;N.utc=gn;N.unix=OS;N.months=FS;N.isDate=ni;N.locale=ir;N.invalid=ca;N.duration=Qt;N.isMoment=Vt;N.weekdays=$S;N.parseZone=PS;N.localeData=$n;N.isDuration=el;N.monthsShort=BS;N.weekdaysMin=qS;N.defineLocale=wd;N.updateLocale=PC;N.locales=FC;N.weekdaysShort=zS;N.normalizeUnits=Mt;N.relativeTimeRounding=hk;N.relativeTimeThreshold=gk;N.calendarFormat=N_;N.prototype=P;N.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var jd="Popover",[d1,rL]=Kt(jd,[mr]),ii=mr(),[yk,xr]=d1(jd),f1=e=>{const{__scopePopover:t,children:r,open:o,defaultOpen:s,onOpenChange:i,modal:l=!1}=e,a=ii(t),u=f.useRef(null),[c,p]=f.useState(!1),[m=!1,g]=dr({prop:o,defaultProp:s,onChange:i});return d.jsx(Wl,{...a,children:d.jsx(yk,{scope:t,contentId:jt(),triggerRef:u,open:m,onOpenChange:g,onOpenToggle:f.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:c,onCustomAnchorAdd:f.useCallback(()=>p(!0),[]),onCustomAnchorRemove:f.useCallback(()=>p(!1),[]),modal:l,children:r})})};f1.displayName=jd;var p1="PopoverAnchor",m1=f.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,s=xr(p1,r),i=ii(r),{onCustomAnchorAdd:l,onCustomAnchorRemove:a}=s;return f.useEffect(()=>(l(),()=>a()),[l,a]),d.jsx(Ys,{...i,...o,ref:t})});m1.displayName=p1;var h1="PopoverTrigger",Dd=f.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,s=xr(h1,r),i=ii(r),l=ae(t,s.triggerRef),a=d.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":v1(s.open),...o,ref:l,onClick:q(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:d.jsx(Ys,{asChild:!0,...i,children:a})});Dd.displayName=h1;var Ld="PopoverPortal",[vk,bk]=d1(Ld,{forceMount:void 0}),g1=e=>{const{__scopePopover:t,forceMount:r,children:o,container:s}=e,i=xr(Ld,t);return d.jsx(vk,{scope:t,forceMount:r,children:d.jsx(Qe,{present:r||i.open,children:d.jsx(To,{asChild:!0,container:s,children:o})})})};g1.displayName=Ld;var Co="PopoverContent",Nd=f.forwardRef((e,t)=>{const r=bk(Co,e.__scopePopover),{forceMount:o=r.forceMount,...s}=e,i=xr(Co,e.__scopePopover);return d.jsx(Qe,{present:o||i.open,children:i.modal?d.jsx(wk,{...s,ref:t}):d.jsx(Ck,{...s,ref:t})})});Nd.displayName=Co;var wk=f.forwardRef((e,t)=>{const r=xr(Co,e.__scopePopover),o=f.useRef(null),s=ae(t,o),i=f.useRef(!1);return f.useEffect(()=>{const l=o.current;if(l)return Jl(l)},[]),d.jsx(Qs,{as:lr,allowPinchZoom:!0,children:d.jsx(x1,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,l=>{var a;l.preventDefault(),i.current||(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,l=>{const a=l.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,c=a.button===2||u;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:q(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),Ck=f.forwardRef((e,t)=>{const r=xr(Co,e.__scopePopover),o=f.useRef(!1),s=f.useRef(!1);return d.jsx(x1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,a;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(o.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),o.current=!1,s.current=!1},onInteractOutside:i=>{var l,a;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=i.target;((a=r.triggerRef.current)==null?void 0:a.contains(u))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),x1=f.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:p,...m}=e,g=xr(Co,r),h=ii(r);return Ql(),d.jsx(Ks,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:i,children:d.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:p,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>g.onOpenChange(!1),children:d.jsx(Gl,{"data-state":v1(g.open),role:"dialog",id:g.contentId,...h,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),y1="PopoverClose",_k=f.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,s=xr(y1,r);return d.jsx(ee.button,{type:"button",...o,ref:t,onClick:q(e.onClick,()=>s.onOpenChange(!1))})});_k.displayName=y1;var Sk="PopoverArrow",kk=f.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,s=ii(r);return d.jsx(Ul,{...s,...o,ref:t})});kk.displayName=Sk;function v1(e){return e?"open":"closed"}var li=f1,b1=m1,wa=Dd,ai=g1,Ca=Nd;const Ek={wrapper:{position:"mly1n2onr6",$$css:!0}},Rk=e=>{const[t,r]=e.split("-");return{side:t,align:r||"center"}},Ak=({open:e,setOpen:t,children:r,width:o=350,maxHeight:s,placement:i="right-start",referenceDiv:l,zIndex:a=10,xOffset:u=0,yOffset:c=10,disabled:p=!1,customStyle:m})=>{const g=f.useRef(null),{side:h,align:x}=Rk(i),v=()=>h==="top"||h==="bottom"?c:u,y=()=>h==="top"||h==="bottom"?u:c;return d.jsx("div",{...A.props(Ek.wrapper,m),ref:g,children:d.jsxs(li,{open:e&&!p,onOpenChange:t,children:[d.jsx(b1,{asChild:!0,children:d.jsx("div",{ref:l||g})}),e&&!p&&d.jsx(ai,{children:d.jsx(Ca,{className:"mly15q0wj1 mly12oqio5 mly1a3rnpv mly12azwz9 mly64z8l9",side:h,align:x,sideOffset:v(),alignOffset:y(),style:{width:typeof o=="string"?o:`${o}px`,zIndex:a,...s?{maxHeight:`${s}px`}:{}},avoidCollisions:!0,children:r})})]})})},nl={wrapper:{position:"mly1n2onr6",$$css:!0},checkIcon:{verticalAlign:"mly1n8ftqi",width:"mlyw4jnvo",minWidth:"mlyt4ypqs",opacity:"mly1vqud6w",visibility:"mlylshs6z",color:"mly1pc1dlx",$$css:!0},checkIconSelected:{visibility:"mlynpuxes",$$css:!0},selectListDiv:{fontSize:"mlymhiqyu",fontFamily:"mly12xrqmb",textTransform:"mly6mezaz",fontWeight:"mly1fcty0u",width:"mlyh8yej3",padding:"mly1b4vry6",maxHeight:"mly1phlbz0",display:"mly78zum5",flexDirection:"mlydt5ytf",$$css:!0}},yn=({autoFocus:e,value:t,onChange:r,options:o,placeholder:s="Select",disabled:i=!1,valueEqual:l=(c,p)=>c===p,width:a=200,customStyle:u})=>{var c;const[p,m]=f.useState(!1),[g,h]=f.useState(!1),[x,v]=f.useState(!1),y=t!==void 0&&((c=o.find(w=>l(w.value,t)))==null?void 0:c.label)||s,b=w=>{r?.(w),m(!1)};return d.jsxs("div",{...A.props(nl.wrapper,u),children:[d.jsxs("button",{type:"button",autoFocus:e,...{0:{className:"mlyjbqb8w mlymhiqyu mly1vspu6z mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3"},4:{className:"mlyjbqb8w mlymhiqyu mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mlyss3vti"},2:{className:"mlyjbqb8w mlymhiqyu mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz"},6:{className:"mlyjbqb8w mlymhiqyu mly12oqio5 mly1gqu590 mly1ypdohk mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz"},1:{className:"mlymhiqyu mly1vspu6z mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mlyt0e3qv mly1jjku57"},5:{className:"mlymhiqyu mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mlyss3vti mlyt0e3qv mly1jjku57"},3:{className:"mlymhiqyu mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz mlyt0e3qv mly1jjku57"},7:{className:"mlymhiqyu mly12oqio5 mly1gqu590 mly1pc1dlx mly78zum5 mly1qughib mly6mezaz mly6s0dn4 mly12xrqmb mlyh8yej3 mly1gnnqk1 mlyv3vvaf mly1a2a7pz mlyt0e3qv mly1jjku57"}}[!!g<<2|!!x<<1|!!i<<0],onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onFocus:()=>v(!0),onBlur:()=>v(!1),onClick:w=>{w.preventDefault(),w.stopPropagation(),i||m(!0)},disabled:i,children:[y,d.jsx(ie,{name:"chevronDown"})]}),d.jsx(Ak,{open:p,setOpen:m,placement:"bottom-start",width:a,maxHeight:500,children:d.jsx(Tk,{options:o,value:t,valueEqual:l,onChange:b})})]})};function Tk({options:e,value:t,onChange:r,valueEqual:o=(i,l)=>i===l,customStyle:s}){const[i,l]=f.useState(null);return d.jsx(Bc,{children:d.jsx("div",{...A.props(nl.selectListDiv,s),children:e.reduce((a,u,c)=>{const p=t!==void 0&&o(t,u.value);return u.divider&&a.push(f.createElement("div",{className:"mly77krkw mlyh8yej3 mlynfbntj",key:"divider"+c})),a.push(d.jsxs("label",{...{0:{className:"mlydqdrvq mly1ypdohk mlyuxw1ft mlylyipyv mly1pc1dlx mlyrvj5dj mly1mt1orb mlylqzeqv mly6s0dn4"},1:{className:"mlydqdrvq mly1ypdohk mlyuxw1ft mlylyipyv mly1pc1dlx mlyrvj5dj mly1mt1orb mlylqzeqv mly6s0dn4 mly6wxqrg"}}[(i===c)<<0],onMouseEnter:()=>l(c),onMouseLeave:()=>l(null),onClick:()=>r(u.value),children:[d.jsx("input",{className:"mlynalus7 mlyqtp20y",type:"radio",defaultChecked:p}),d.jsx(ie,{name:"checkmark",customStyle:{...nl.checkIcon,...p?nl.checkIconSelected:void 0}}),d.jsx("span",{className:"mlyet2fuk mlyb3r6kr mlylyipyv mly1fc57z9",children:u.label})]},c)),a},[])})})}const _o={second:"YYYY-MM-DD HH:mm:ss",minute:"YYYY-MM-DD HH:mm",hour:"YYYY-MM-DD HH:00",day:"YYYY-MM-DD",week:"YYYY-MM-DD-[WK]",month:"YYYY-MM",quarter:"YYYY-[Q]Q",year:"YYYY"},lc={second:/\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d/,minute:/\d\d\d\d-\d\d-\d\d \d\d:\d\d/,hour:/\d\d\d\d-\d\d-\d\d \d\d:00/,day:/\d\d\d\d-\d\d-\d\d/,week:/\d\d\d\d-\d\d-\d\d-WK/,month:/\d\d\d\d-\d\d/,quarter:/\d\d\d\d-Q\d/,year:/\d\d\d\d/},Tl=({value:e,setValue:t,placeholder:r,autoFocus:o,units:s,onFocus:i,onBlur:l,isActive:a,customStyle:u,forwardRef:c})=>{const p=_o[s],[m,g]=f.useState(N.utc(e).format(p));return f.useEffect(()=>{g(N.utc(e).format(p))},[e,p]),d.jsx("input",{...A.props(u,a?jk.active:null),type:"text",placeholder:r||p,value:m,onFocus:i,onBlur:l,onChange:h=>{const x=h.target.value;g(x);const v=lc[s];if(x.match(v)){const y=N.utc(x,p);y.isValid()&&t(y.toDate())}},autoFocus:o,ref:c})};function Fi(e,t){if(e.moment==="literal"){const{literal:r}=e;for(const o in lc){const s=o;if(r.match(lc[s]))return s}}return t?"second":"day"}const jk={active:{backgroundColor:"mly1vzefiq",$$css:!0}};function Dk(e){return["January","February","March","April","May","June","July","August","September","October","November","December"][e]}const lp=Object.keys(_o);function Md({value:e,setValue:t,units:r,maxLevel:o,customStyle:s,forwardRef:i}){const[l,a]=f.useState(e),u=Nk(l),[c,p]=f.useState(r),m=Math.floor(N.utc(l).year()/10)*10;f.useEffect(()=>{const _=lp.findIndex(E=>E===r);lp.findIndex(E=>E===c)<_&&p(r)},[r,c]),f.useEffect(()=>{a(e)},[e]);const g=_=>{const k=N.utc(l).year(_).toDate();a(k),t(k)},h=_=>{const k=()=>g(m+_);return _===-1||_===10?d.jsx("div",{onClick:k,className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1fcty0u mly1ypdohk mly6mezaz mly1sxf85j mlyt89l8w mly1fxp9ov mly358b0h",children:m+_}):d.jsx("div",{onClick:k,...{0:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1fcty0u mly1ypdohk mly6mezaz mly1sxf85j mlyt89l8w mly1fxp9ov"},1:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1fcty0u mly1ypdohk mly6mezaz mly1sxf85j mlyt89l8w mly1fxp9ov mly6wxqrg mly10bk7bj"}}[(N.utc(l).year()===m+_)<<0],children:m+_})},x=_=>{const k=N.utc(l).month(_).toDate();a(k),t(k)},v=_=>{a(_),t(_)},y=_=>{a(_),t(_)},b=_=>{const k=N.utc(l).quarter(_+1).toDate();a(k),t(k)},w=_=>{const k=()=>x(_),E=N.utc(l).month()===_&&N.utc(l).year()===N.utc(e).year();return d.jsx("div",{onClick:k,...{0:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov"},1:{className:"mly1247r65 mlyfvyar9 mlymcgfsh mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov mly6wxqrg mly10bk7bj"}}[!!E<<0],children:Dk(_)})},C=_=>{const k=()=>b(_),E=N.utc(l).quarter()-1===_&&N.utc(l).year()===N.utc(e).year();return d.jsxs("div",{onClick:k,...{0:{className:"mly1rxuhir mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov"},1:{className:"mly1rxuhir mly36usyh mly78zum5 mly6s0dn4 mlyl56j7k mly8fuzfi mly1v5ugh9 mly1ypdohk mly6mezaz mly1sxf85j mly1fcty0u mlyt89l8w mly1fxp9ov mly6wxqrg mly10bk7bj"}}[!!E<<0],children:["Q",_+1]})};return d.jsxs("div",{...A.props(Lk.outer,s),ref:i,children:[d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly1nejdyq mlyu06os2",children:[d.jsx("div",{className:"mly1sxf85j mly1nn3v0j mly6wrskw mlymzs88n mly1ypdohk mlyjg9ulk",children:d.jsx(ke,{variant:"default",size:"compact",icon:"chevronLeft",onClick:()=>{c==="day"||c==="week"?a(N.utc(l).subtract(1,"month").toDate()):c==="month"||c==="quarter"?a(N.utc(l).subtract(1,"year").toDate()):c==="year"?a(N.utc(l).subtract(10,"years").toDate()):v(N.utc(l).subtract(1,"days").toDate())}})}),d.jsxs("div",{className:"mly1sxf85j mlyfawy5m mly123j3cw mly1iyjqo2 mly2b8uid mly1ypdohk mly6mezaz mly1fcty0u mlyjg9ulk",onClick:()=>{p(c==="day"||c==="week"?"month":c==="month"||c==="quarter"?"year":c==="hour"||c==="minute"||c==="second"?"day":o)},children:[(c==="day"||c==="week")&&N.utc(l).format("MMMM YYYY"),(c==="month"||c==="quarter")&&N.utc(l).format("YYYY"),c==="year"&&d.jsxs(d.Fragment,{children:[m,"-",m+9]}),(c==="hour"||c==="minute"||c==="second")&&d.jsx(d.Fragment,{children:N.utc(l).format("MMMM D, YYYY")})]}),d.jsx("div",{className:"mly1sxf85j mly1nn3v0j mly6wrskw mlymzs88n mly1ypdohk mlyjg9ulk",children:d.jsx(ke,{variant:"default",size:"compact",icon:"chevronRight",onClick:()=>{c==="day"||c==="week"?a(N.utc(l).add(1,"month").toDate()):c==="month"||c==="quarter"?a(N.utc(l).add(1,"year").toDate()):c==="year"?a(N.utc(l).add(10,"years").toDate()):v(N.utc(l).add(1,"days").toDate())}})})]}),c==="day"&&d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly195vfkc mly87ps6o",children:[d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"M"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"W"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"F"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"})]}),u.map((_,k)=>d.jsx("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:_.map(E=>d.jsx("div",{onClick:()=>{v(E.date)},...{0:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly358b0h"},2:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly1v5ugh9"},1:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly6wxqrg mly1nwq7qm mly10bk7bj"},3:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mlyfj9a5l mlyt89l8w mly6wxqrg mly1nwq7qm mly10bk7bj"}}[!!E.isCurrentMonth<<1|(e.getTime()===E.date.valueOf())<<0],children:E.number},E.number))},k))]}),c==="month"&&d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlyk2yuxw",children:[d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[w(0),w(1),w(2)]}),d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[w(3),w(4),w(5)]}),d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[w(6),w(7),w(8)]}),d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[w(9),w(10),w(11)]})]}),c==="year"&&d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlyk2yuxw",children:[d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(-1),h(0),h(1)]}),d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(2),h(3),h(4)]}),d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(5),h(6),h(7)]}),d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly195vfkc",children:[h(8),h(9),h(10)]})]}),c==="quarter"&&d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlyk2yuxw",children:[C(0),C(1),C(2),C(3)]}),c==="week"&&d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly195vfkc mly87ps6o",children:[d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly195vfkc mly1qughib",children:[d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"M"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"W"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"T"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"F"}),d.jsx("div",{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly117nqv4 mly1v5ugh9",children:"S"})]}),u.map((_,k)=>d.jsx("div",{onClick:()=>{y(_[0].date)},...{0:{className:"mly78zum5 mly1ypdohk mly1q0g3np mly195vfkc mly1f96onm mly1qughib mlyfj9a5l mlyt89l8w"},1:{className:"mly78zum5 mly1ypdohk mly1q0g3np mly195vfkc mly1f96onm mly1qughib mlyfj9a5l mlyt89l8w mly6wxqrg mly1nwq7qm mly10bk7bj"}}[(e.getTime()===_[0].date.valueOf())<<0],children:_.map(E=>d.jsx("div",{...{0:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mly358b0h"},1:{className:"mlyjxf2f8 mlywrnneb mly4x6u8j mlyqyhut4 mly14odnwx mly78zum5 mly6s0dn4 mlyl56j7k mly1ypdohk mly1f96onm mlyfifm61 mly1v5ugh9"}}[!!E.isCurrentMonth<<0],children:E.number},E.number))},k))]}),(c==="hour"||c==="minute"||c==="second")&&d.jsx("div",{className:"mly78zum5 mlydt5ytf mly87ps6o mly1l1ennw mlylo07zb",children:d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly87ps6o mly1l1ennw mly883omv",children:[d.jsx(au,{label:"Hours",value:parseInt(N.utc(l).format("hh")),setValue:_=>{const k=N.utc(l).hour()>=12?"PM":"AM",E=parseInt(N.utc(`${_} ${k}`,["hh A"]).format("H"));t(N.utc(l).hour(E).toDate())},width:"40px"}),(r==="minute"||r==="second")&&d.jsx(au,{label:"Minutes",value:N.utc(l).minutes(),setValue:_=>{t(N.utc(l).minute(_).toDate())},width:"40px"}),r==="second"&&d.jsx(au,{label:"Seconds",value:N.utc(l).seconds(),setValue:_=>{t(N.utc(l).second(_).toDate())},width:"40px"}),d.jsx("div",{style:{display:"flex",justifyContent:"flex-end",flexDirection:"column"},children:d.jsx(yn,{value:N.utc(l).hour()>=12?"PM":"AM",onChange:_=>{const k=parseInt(N.utc(l).format("h")),E=parseInt(N.utc(`${k} ${_}`,["hh A"]).format("H"));t(N.utc(l).hour(E).toDate())},options:[{value:"AM",label:"AM"},{value:"PM",label:"PM"}]})})]})})]})}const Lk={outer:{userSelect:"mly87ps6o",fontSize:"mlymhiqyu",fontFamily:"mly12xrqmb",$$css:!0}};function Nk(e){const t=N.utc(e).date(1),r=t.day(),o=t.daysInMonth(),s=t.clone().subtract(1,"day").daysInMonth(),i=[];for(let l=0;l<6;l++){const a=[];for(let u=0;u<7;u++)if(l===0&&u<r){const c=r-u;a.push({number:s-c+1,date:t.clone().subtract(c,"days").toDate(),isCurrentMonth:!1})}else{const c=l*7+u-r;c<o?a.push({number:c+1,date:t.clone().add(c,"days").toDate(),isCurrentMonth:!0}):a.push({number:c-o+1,date:t.clone().add(c,"days").toDate(),isCurrentMonth:!1})}i.push(a)}return i}function Mk({width:e,minWidth:t,onWidthChange:r}){const o=s=>{const i=e,l=s.clientX,a=()=>{document.body.removeEventListener("mousemove",u),document.body.removeEventListener("mouseup",a),document.body.style.cursor="initial",document.body.style.userSelect="initial"},u=c=>{const p=i+(c.clientX-l);r(Math.max(p,t))};document.body.addEventListener("mousemove",u),document.body.addEventListener("mouseup",a),document.body.style.cursor="ew-resize",document.body.style.userSelect="none"};return d.jsx("div",{className:"mly7eptgl mly1ftt334 mly5yr21d mly1vjfegm mly10l6tqk mly13vifvy mly1bkpikb",onMouseDown:s=>o(s)})}function ac({title:e,description:t,variant:r="info",children:o}){return d.jsxs("div",{className:"mly1q4ynmn mlyh8yej3 mly5yr21d mly78zum5 mlydt5ytf mly1kmqopl mly16zck5j",children:[d.jsxs("div",{...A.props(ls.header,Ok[r],o?ls.headerWithContent:null),children:[d.jsx("div",{className:"mly1qx5ct2 mly78zum5 mlyl56j7k mly6s0dn4",children:d.jsx(ie,{...Ik[r]})}),d.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyb3r6kr",children:[d.jsx("div",{...A.props(ls.title,Y.emphasized),children:e}),d.jsx("div",{...A.props(ls.description,Y.supporting),children:t})]})]}),o&&d.jsx("div",{...A.props(ls.content,Y.body),children:d.jsx(Bc,{children:o})})]})}const ls={header:{borderRadius:"mly1q4ynmn",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,width:"mlyh8yej3",padding:"mlyc7ga6q",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,boxSizing:"mly9f619",display:"mly78zum5",flexDirection:"mly1q0g3np",alignItems:"mly7a106z",justifyContent:"mlylqzeqv",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},headerWithContent:{borderRadius:"mlyq516e8",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},title:{textOverflow:"mlylyipyv",whiteSpace:"mlyuxw1ft",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0},description:{textOverflow:"mlylyipyv",whiteSpace:"mlyuxw1ft",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0},content:{padding:"mly1tamke2",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,backgroundColor:"mly12peec7",borderRadius:"mly11zuszs",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0}},Ik={info:{name:"info",color:"info"},success:{name:"check_circle",color:"positive"},warn:{name:"warning",color:"warning"},critical:{name:"error",color:"negative"}},Ok={info:{backgroundColor:"mly1pnbjq1",$$css:!0},success:{backgroundColor:"mly1x3oq6j",$$css:!0},warn:{backgroundColor:"mly1x7w6om",$$css:!0},critical:{backgroundColor:"mlyrkwa2d",$$css:!0}},w1=f.createContext({});function Pk({defaultExpandedItemId:e,children:t,customStyle:r}){const[o,s]=f.useState(e),i=l=>{s(a=>{if(a!==l)return l})};return d.jsx(w1.Provider,{value:{expandedItemId:o,onExpandedItemChange:i},children:d.jsx("div",{...A.props(Fk.main,r),children:f.Children.map(t,l=>d.jsxs(d.Fragment,{children:[l,d.jsx(lo,{})]}))})})}const Fk={main:{display:"mly78zum5",flexDirection:"mlydt5ytf",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,flexGrow:"mly1iyjqo2",$$css:!0}};function pu({id:e,label:t,sublabel:r,startIcon:o,badge:s,endIcon:i,children:l}){const{expandedItemId:a,onExpandedItemChange:u}=f.useContext(w1);return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"mly78zum5 mly6s0dn4 mlylqzeqv mlye8ttls mly167g77z mly1ypdohk",onClick:()=>u?.(e),children:[o&&d.jsx(d.Fragment,{children:o}),d.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyb3r6kr mly1iyjqo2",children:[d.jsx("span",{...A.props(Y.body,ap.label),children:t}),r&&d.jsx("span",{...A.props(Y.supporting,ap.sublabel),children:r})]}),s&&s,i&&i]}),e===a&&d.jsx("div",{className:"mly78zum5 mlydt5ytf mly1iyjqo2 mlytdwleo mly1jnr06f mly10cdfl8 mlyysyzu8",children:f.Children.map(l,c=>c)})]})}const ap={label:{flexGrow:"mly1iyjqo2",fontWeight:"mly1xlr1w8",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0},sublabel:{flexGrow:"mly1iyjqo2",color:"mly9dwj6z",overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0}};var mu="rovingFocusGroup.onEntryFocus",Bk={bubbles:!1,cancelable:!0},_a="RovingFocusGroup",[uc,C1,$k]=Wc(_a),[zk,Sa]=Kt(_a,[$k]),[qk,Wk]=zk(_a),_1=f.forwardRef((e,t)=>d.jsx(uc.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(uc.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Gk,{...e,ref:t})})}));_1.displayName=_a;var Gk=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:s=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...m}=e,g=f.useRef(null),h=ae(t,g),x=Xs(i),[v=null,y]=dr({prop:l,defaultProp:a,onChange:u}),[b,w]=f.useState(!1),C=Ye(c),_=C1(r),k=f.useRef(!1),[E,R]=f.useState(0);return f.useEffect(()=>{const j=g.current;if(j)return j.addEventListener(mu,C),()=>j.removeEventListener(mu,C)},[C]),d.jsx(qk,{scope:r,orientation:o,dir:x,loop:s,currentTabStopId:v,onItemFocus:f.useCallback(j=>y(j),[y]),onItemShiftTab:f.useCallback(()=>w(!0),[]),onFocusableItemAdd:f.useCallback(()=>R(j=>j+1),[]),onFocusableItemRemove:f.useCallback(()=>R(j=>j-1),[]),children:d.jsx(ee.div,{tabIndex:b||E===0?-1:0,"data-orientation":o,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:q(e.onMouseDown,()=>{k.current=!0}),onFocus:q(e.onFocus,j=>{const D=!k.current;if(j.target===j.currentTarget&&D&&!b){const I=new CustomEvent(mu,Bk);if(j.currentTarget.dispatchEvent(I),!I.defaultPrevented){const B=_().filter(T=>T.focusable),U=B.find(T=>T.active),K=B.find(T=>T.id===v),S=[U,K,...B].filter(Boolean).map(T=>T.ref.current);E1(S,p)}}k.current=!1}),onBlur:q(e.onBlur,()=>w(!1))})})}),S1="RovingFocusGroupItem",k1=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:s=!1,tabStopId:i,...l}=e,a=jt(),u=i||a,c=Wk(S1,r),p=c.currentTabStopId===u,m=C1(r),{onFocusableItemAdd:g,onFocusableItemRemove:h}=c;return f.useEffect(()=>{if(o)return g(),()=>h()},[o,g,h]),d.jsx(uc.ItemSlot,{scope:r,id:u,focusable:o,active:s,children:d.jsx(ee.span,{tabIndex:p?0:-1,"data-orientation":c.orientation,...l,ref:t,onMouseDown:q(e.onMouseDown,x=>{o?c.onItemFocus(u):x.preventDefault()}),onFocus:q(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:q(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){c.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=Hk(x,c.orientation,c.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let b=m().filter(w=>w.focusable).map(w=>w.ref.current);if(v==="last")b.reverse();else if(v==="prev"||v==="next"){v==="prev"&&b.reverse();const w=b.indexOf(x.currentTarget);b=c.loop?Vk(b,w+1):b.slice(w+1)}setTimeout(()=>E1(b))}})})})});k1.displayName=S1;var Uk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Yk(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Hk(e,t,r){const o=Yk(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Uk[o]}function E1(e,t=!1){const r=document.activeElement;for(const o of e)if(o===r||(o.focus({preventScroll:t}),document.activeElement!==r))return}function Vk(e,t){return e.map((r,o)=>e[(t+o)%e.length])}var R1=_1,A1=k1,cc=["Enter"," "],Xk=["ArrowDown","PageUp","Home"],T1=["ArrowUp","PageDown","End"],Zk=[...Xk,...T1],Kk={ltr:[...cc,"ArrowRight"],rtl:[...cc,"ArrowLeft"]},Qk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ui="Menu",[Ps,Jk,eE]=Wc(ui),[Ir,j1]=Kt(ui,[eE,mr,Sa]),ka=mr(),D1=Sa(),[tE,Or]=Ir(ui),[nE,ci]=Ir(ui),L1=e=>{const{__scopeMenu:t,open:r=!1,children:o,dir:s,onOpenChange:i,modal:l=!0}=e,a=ka(t),[u,c]=f.useState(null),p=f.useRef(!1),m=Ye(i),g=Xs(s);return f.useEffect(()=>{const h=()=>{p.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>p.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),d.jsx(Wl,{...a,children:d.jsx(tE,{scope:t,open:r,onOpenChange:m,content:u,onContentChange:c,children:d.jsx(nE,{scope:t,onClose:f.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:p,dir:g,modal:l,children:o})})})};L1.displayName=ui;var rE="MenuAnchor",Id=f.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e,s=ka(r);return d.jsx(Ys,{...s,...o,ref:t})});Id.displayName=rE;var Od="MenuPortal",[oE,N1]=Ir(Od,{forceMount:void 0}),M1=e=>{const{__scopeMenu:t,forceMount:r,children:o,container:s}=e,i=Or(Od,t);return d.jsx(oE,{scope:t,forceMount:r,children:d.jsx(Qe,{present:r||i.open,children:d.jsx(To,{asChild:!0,container:s,children:o})})})};M1.displayName=Od;var Dt="MenuContent",[sE,Pd]=Ir(Dt),I1=f.forwardRef((e,t)=>{const r=N1(Dt,e.__scopeMenu),{forceMount:o=r.forceMount,...s}=e,i=Or(Dt,e.__scopeMenu),l=ci(Dt,e.__scopeMenu);return d.jsx(Ps.Provider,{scope:e.__scopeMenu,children:d.jsx(Qe,{present:o||i.open,children:d.jsx(Ps.Slot,{scope:e.__scopeMenu,children:l.modal?d.jsx(iE,{...s,ref:t}):d.jsx(lE,{...s,ref:t})})})})}),iE=f.forwardRef((e,t)=>{const r=Or(Dt,e.__scopeMenu),o=f.useRef(null),s=ae(t,o);return f.useEffect(()=>{const i=o.current;if(i)return Jl(i)},[]),d.jsx(Fd,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:q(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),lE=f.forwardRef((e,t)=>{const r=Or(Dt,e.__scopeMenu);return d.jsx(Fd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Fd=f.forwardRef((e,t)=>{const{__scopeMenu:r,loop:o=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:a,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:g,onDismiss:h,disableOutsideScroll:x,...v}=e,y=Or(Dt,r),b=ci(Dt,r),w=ka(r),C=D1(r),_=Jk(r),[k,E]=f.useState(null),R=f.useRef(null),j=ae(t,R,y.onContentChange),D=f.useRef(0),I=f.useRef(""),B=f.useRef(0),U=f.useRef(null),K=f.useRef("right"),$=f.useRef(0),S=x?Qs:f.Fragment,T=x?{as:lr,allowPinchZoom:!0}:void 0,M=z=>{var fe,Oe;const we=I.current+z,Le=_().filter(pe=>!pe.disabled),Ae=document.activeElement,Je=(fe=Le.find(pe=>pe.ref.current===Ae))==null?void 0:fe.textValue,Te=Le.map(pe=>pe.textValue),Z=vE(Te,we,Je),ue=(Oe=Le.find(pe=>pe.textValue===Z))==null?void 0:Oe.ref.current;(function pe(X){I.current=X,window.clearTimeout(D.current),X!==""&&(D.current=window.setTimeout(()=>pe(""),1e3))})(we),ue&&setTimeout(()=>ue.focus())};f.useEffect(()=>()=>window.clearTimeout(D.current),[]),Ql();const H=f.useCallback(z=>{var fe,Oe;return K.current===((fe=U.current)==null?void 0:fe.side)&&wE(z,(Oe=U.current)==null?void 0:Oe.area)},[]);return d.jsx(sE,{scope:r,searchRef:I,onItemEnter:f.useCallback(z=>{H(z)&&z.preventDefault()},[H]),onItemLeave:f.useCallback(z=>{var fe;H(z)||((fe=R.current)==null||fe.focus(),E(null))},[H]),onTriggerLeave:f.useCallback(z=>{H(z)&&z.preventDefault()},[H]),pointerGraceTimerRef:B,onPointerGraceIntentChange:f.useCallback(z=>{U.current=z},[]),children:d.jsx(S,{...T,children:d.jsx(Ks,{asChild:!0,trapped:s,onMountAutoFocus:q(i,z=>{var fe;z.preventDefault(),(fe=R.current)==null||fe.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:d.jsx(Eo,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:g,onDismiss:h,children:d.jsx(R1,{asChild:!0,...C,dir:b.dir,orientation:"vertical",loop:o,currentTabStopId:k,onCurrentTabStopIdChange:E,onEntryFocus:q(u,z=>{b.isUsingKeyboardRef.current||z.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(Gl,{role:"menu","aria-orientation":"vertical","data-state":K1(y.open),"data-radix-menu-content":"",dir:b.dir,...w,...v,ref:j,style:{outline:"none",...v.style},onKeyDown:q(v.onKeyDown,z=>{const Oe=z.target.closest("[data-radix-menu-content]")===z.currentTarget,we=z.ctrlKey||z.altKey||z.metaKey,Le=z.key.length===1;Oe&&(z.key==="Tab"&&z.preventDefault(),!we&&Le&&M(z.key));const Ae=R.current;if(z.target!==Ae||!Zk.includes(z.key))return;z.preventDefault();const Te=_().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);T1.includes(z.key)&&Te.reverse(),xE(Te)}),onBlur:q(e.onBlur,z=>{z.currentTarget.contains(z.target)||(window.clearTimeout(D.current),I.current="")}),onPointerMove:q(e.onPointerMove,Fs(z=>{const fe=z.target,Oe=$.current!==z.clientX;if(z.currentTarget.contains(fe)&&Oe){const we=z.clientX>$.current?"right":"left";K.current=we,$.current=z.clientX}}))})})})})})})});I1.displayName=Dt;var aE="MenuGroup",Bd=f.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e;return d.jsx(ee.div,{role:"group",...o,ref:t})});Bd.displayName=aE;var uE="MenuLabel",O1=f.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e;return d.jsx(ee.div,{...o,ref:t})});O1.displayName=uE;var jl="MenuItem",up="menu.itemSelect",Ea=f.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:o,...s}=e,i=f.useRef(null),l=ci(jl,e.__scopeMenu),a=Pd(jl,e.__scopeMenu),u=ae(t,i),c=f.useRef(!1),p=()=>{const m=i.current;if(!r&&m){const g=new CustomEvent(up,{bubbles:!0,cancelable:!0});m.addEventListener(up,h=>o?.(h),{once:!0}),qp(m,g),g.defaultPrevented?c.current=!1:l.onClose()}};return d.jsx(P1,{...s,ref:u,disabled:r,onClick:q(e.onClick,p),onPointerDown:m=>{var g;(g=e.onPointerDown)==null||g.call(e,m),c.current=!0},onPointerUp:q(e.onPointerUp,m=>{var g;c.current||(g=m.currentTarget)==null||g.click()}),onKeyDown:q(e.onKeyDown,m=>{const g=a.searchRef.current!=="";r||g&&m.key===" "||cc.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});Ea.displayName=jl;var P1=f.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:o=!1,textValue:s,...i}=e,l=Pd(jl,r),a=D1(r),u=f.useRef(null),c=ae(t,u),[p,m]=f.useState(!1),[g,h]=f.useState("");return f.useEffect(()=>{const x=u.current;x&&h((x.textContent??"").trim())},[i.children]),d.jsx(Ps.ItemSlot,{scope:r,disabled:o,textValue:s??g,children:d.jsx(A1,{asChild:!0,...a,focusable:!o,children:d.jsx(ee.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...i,ref:c,onPointerMove:q(e.onPointerMove,Fs(x=>{o?l.onItemLeave(x):(l.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:q(e.onPointerLeave,Fs(x=>l.onItemLeave(x))),onFocus:q(e.onFocus,()=>m(!0)),onBlur:q(e.onBlur,()=>m(!1))})})})}),cE="MenuCheckboxItem",F1=f.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:o,...s}=e;return d.jsx(W1,{scope:e.__scopeMenu,checked:r,children:d.jsx(Ea,{role:"menuitemcheckbox","aria-checked":Dl(r)?"mixed":r,...s,ref:t,"data-state":zd(r),onSelect:q(s.onSelect,()=>o?.(Dl(r)?!0:!r),{checkForDefaultPrevented:!1})})})});F1.displayName=cE;var B1="MenuRadioGroup",[dE,fE]=Ir(B1,{value:void 0,onValueChange:()=>{}}),$1=f.forwardRef((e,t)=>{const{value:r,onValueChange:o,...s}=e,i=Ye(o);return d.jsx(dE,{scope:e.__scopeMenu,value:r,onValueChange:i,children:d.jsx(Bd,{...s,ref:t})})});$1.displayName=B1;var z1="MenuRadioItem",q1=f.forwardRef((e,t)=>{const{value:r,...o}=e,s=fE(z1,e.__scopeMenu),i=r===s.value;return d.jsx(W1,{scope:e.__scopeMenu,checked:i,children:d.jsx(Ea,{role:"menuitemradio","aria-checked":i,...o,ref:t,"data-state":zd(i),onSelect:q(o.onSelect,()=>{var l;return(l=s.onValueChange)==null?void 0:l.call(s,r)},{checkForDefaultPrevented:!1})})})});q1.displayName=z1;var $d="MenuItemIndicator",[W1,pE]=Ir($d,{checked:!1}),G1=f.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:o,...s}=e,i=pE($d,r);return d.jsx(Qe,{present:o||Dl(i.checked)||i.checked===!0,children:d.jsx(ee.span,{...s,ref:t,"data-state":zd(i.checked)})})});G1.displayName=$d;var mE="MenuSeparator",U1=f.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e;return d.jsx(ee.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});U1.displayName=mE;var hE="MenuArrow",Y1=f.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e,s=ka(r);return d.jsx(Ul,{...s,...o,ref:t})});Y1.displayName=hE;var gE="MenuSub",[oL,H1]=Ir(gE),ps="MenuSubTrigger",V1=f.forwardRef((e,t)=>{const r=Or(ps,e.__scopeMenu),o=ci(ps,e.__scopeMenu),s=H1(ps,e.__scopeMenu),i=Pd(ps,e.__scopeMenu),l=f.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:u}=i,c={__scopeMenu:e.__scopeMenu},p=f.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return f.useEffect(()=>p,[p]),f.useEffect(()=>{const m=a.current;return()=>{window.clearTimeout(m),u(null)}},[a,u]),d.jsx(Id,{asChild:!0,...c,children:d.jsx(P1,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":K1(r.open),...e,ref:Bl(t,s.onTriggerChange),onClick:m=>{var g;(g=e.onClick)==null||g.call(e,m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:q(e.onPointerMove,Fs(m=>{i.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!r.open&&!l.current&&(i.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:q(e.onPointerLeave,Fs(m=>{var g,h;p();const x=(g=r.content)==null?void 0:g.getBoundingClientRect();if(x){const v=(h=r.content)==null?void 0:h.dataset.side,y=v==="right",b=y?-5:5,w=x[y?"left":"right"],C=x[y?"right":"left"];i.onPointerGraceIntentChange({area:[{x:m.clientX+b,y:m.clientY},{x:w,y:x.top},{x:C,y:x.top},{x:C,y:x.bottom},{x:w,y:x.bottom}],side:v}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(m),m.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:q(e.onKeyDown,m=>{var g;const h=i.searchRef.current!=="";e.disabled||h&&m.key===" "||Kk[o.dir].includes(m.key)&&(r.onOpenChange(!0),(g=r.content)==null||g.focus(),m.preventDefault())})})})});V1.displayName=ps;var X1="MenuSubContent",Z1=f.forwardRef((e,t)=>{const r=N1(Dt,e.__scopeMenu),{forceMount:o=r.forceMount,...s}=e,i=Or(Dt,e.__scopeMenu),l=ci(Dt,e.__scopeMenu),a=H1(X1,e.__scopeMenu),u=f.useRef(null),c=ae(t,u);return d.jsx(Ps.Provider,{scope:e.__scopeMenu,children:d.jsx(Qe,{present:o||i.open,children:d.jsx(Ps.Slot,{scope:e.__scopeMenu,children:d.jsx(Fd,{id:a.contentId,"aria-labelledby":a.triggerId,...s,ref:c,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var m;l.isUsingKeyboardRef.current&&((m=u.current)==null||m.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:q(e.onFocusOutside,p=>{p.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:q(e.onEscapeKeyDown,p=>{l.onClose(),p.preventDefault()}),onKeyDown:q(e.onKeyDown,p=>{var m;const g=p.currentTarget.contains(p.target),h=Qk[l.dir].includes(p.key);g&&h&&(i.onOpenChange(!1),(m=a.trigger)==null||m.focus(),p.preventDefault())})})})})})});Z1.displayName=X1;function K1(e){return e?"open":"closed"}function Dl(e){return e==="indeterminate"}function zd(e){return Dl(e)?"indeterminate":e?"checked":"unchecked"}function xE(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function yE(e,t){return e.map((r,o)=>e[(t+o)%e.length])}function vE(e,t,r){const s=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let l=yE(e,Math.max(i,0));s.length===1&&(l=l.filter(c=>c!==r));const u=l.find(c=>c.toLowerCase().startsWith(s.toLowerCase()));return u!==r?u:void 0}function bE(e,t){const{x:r,y:o}=e;let s=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const a=t[i].x,u=t[i].y,c=t[l].x,p=t[l].y;u>o!=p>o&&r<(c-a)*(o-u)/(p-u)+a&&(s=!s)}return s}function wE(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return bE(r,t)}function Fs(e){return t=>t.pointerType==="mouse"?e(t):void 0}var CE=L1,_E=Id,SE=M1,kE=I1,EE=Bd,RE=O1,AE=Ea,TE=F1,jE=$1,DE=q1,LE=G1,NE=U1,ME=Y1,IE=V1,OE=Z1,qd="DropdownMenu",[PE,sL]=Kt(qd,[j1]),at=j1(),[FE,Q1]=PE(qd),J1=e=>{const{__scopeDropdownMenu:t,children:r,dir:o,open:s,defaultOpen:i,onOpenChange:l,modal:a=!0}=e,u=at(t),c=f.useRef(null),[p=!1,m]=dr({prop:s,defaultProp:i,onChange:l});return d.jsx(FE,{scope:t,triggerId:jt(),triggerRef:c,contentId:jt(),open:p,onOpenChange:m,onOpenToggle:f.useCallback(()=>m(g=>!g),[m]),modal:a,children:d.jsx(CE,{...u,open:p,onOpenChange:m,dir:o,modal:a,children:r})})};J1.displayName=qd;var ex="DropdownMenuTrigger",tx=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:o=!1,...s}=e,i=Q1(ex,r),l=at(r);return d.jsx(_E,{asChild:!0,...l,children:d.jsx(ee.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...s,ref:Bl(t,i.triggerRef),onPointerDown:q(e.onPointerDown,a=>{!o&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:q(e.onKeyDown,a=>{o||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});tx.displayName=ex;var BE="DropdownMenuPortal",nx=e=>{const{__scopeDropdownMenu:t,...r}=e,o=at(t);return d.jsx(SE,{...o,...r})};nx.displayName=BE;var rx="DropdownMenuContent",ox=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=Q1(rx,r),i=at(r),l=f.useRef(!1);return d.jsx(kE,{id:s.contentId,"aria-labelledby":s.triggerId,...i,...o,ref:t,onCloseAutoFocus:q(e.onCloseAutoFocus,a=>{var u;l.current||(u=s.triggerRef.current)==null||u.focus(),l.current=!1,a.preventDefault()}),onInteractOutside:q(e.onInteractOutside,a=>{const u=a.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0,p=u.button===2||c;(!s.modal||p)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ox.displayName=rx;var $E="DropdownMenuGroup",zE=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(EE,{...s,...o,ref:t})});zE.displayName=$E;var qE="DropdownMenuLabel",WE=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(RE,{...s,...o,ref:t})});WE.displayName=qE;var GE="DropdownMenuItem",sx=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(AE,{...s,...o,ref:t})});sx.displayName=GE;var UE="DropdownMenuCheckboxItem",YE=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(TE,{...s,...o,ref:t})});YE.displayName=UE;var HE="DropdownMenuRadioGroup",VE=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(jE,{...s,...o,ref:t})});VE.displayName=HE;var XE="DropdownMenuRadioItem",ZE=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(DE,{...s,...o,ref:t})});ZE.displayName=XE;var KE="DropdownMenuItemIndicator",QE=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(LE,{...s,...o,ref:t})});QE.displayName=KE;var JE="DropdownMenuSeparator",eR=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(NE,{...s,...o,ref:t})});eR.displayName=JE;var tR="DropdownMenuArrow",nR=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(ME,{...s,...o,ref:t})});nR.displayName=tR;var rR="DropdownMenuSubTrigger",oR=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(IE,{...s,...o,ref:t})});oR.displayName=rR;var sR="DropdownMenuSubContent",iR=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,s=at(r);return d.jsx(OE,{...s,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});iR.displayName=sR;var lR=J1,cp=tx,aR=nx,uR=ox,cR=sx;function Wd({trigger:e,tooltip:t,onOpenChange:r,children:o,tooltipProps:s}){const[i,l]=f.useState(),a=u=>{u&&l(!1),r?.(u)};return d.jsxs(lR,{onOpenChange:a,children:[t?d.jsxs(Mo,{open:i,onOpenChange:l,delayDuration:300,children:[d.jsx(Io,{asChild:!0,children:d.jsx(cp,{asChild:!0,children:e})}),d.jsx(Oo,{children:d.jsx(Po,{...s,...A.props(typeof t=="string"?Pn.default:Pn.card),children:t})})]}):d.jsx(cp,{asChild:!0,children:e}),d.jsx(aR,{children:d.jsx(uR,{...A.props(Y.body,rl.content),side:"bottom",align:"start",sideOffset:4,onCloseAutoFocus:u=>u.preventDefault(),children:f.Children.map(o,u=>u)})})]})}function Bs({icon:e,label:t,sublabel:r,onClick:o,disabled:s}){return d.jsxs(cR,{className:"mly78zum5 mly6s0dn4 mlye8ttls mly167g77z mly1kogg8i mly1ypdohk mly1a2a7pz mly1bw6wve mly5ezrf1 mly15rdse5 mly1z060rf mly5deeek mly1jacekv mly7ouyw2 mly7h4d18",onClick:i=>{o?.(i)},disabled:s,children:[e&&d.jsx(ie,{name:e,customStyle:rl.icon}),d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly1iyjqo2",children:[d.jsx("span",{...A.props(Y.body,rl.label),children:t}),r&&d.jsx("span",{...A.props(Y.supporting,rl.sublabel),children:r})]})]})}const rl={content:{display:"mly78zum5",flexDirection:"mlydt5ytf",borderRadius:"mly1q4ynmn",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,background:"mlyotlr4g",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,boxShadow:"mly17fq3gk",padding:"mlyfawy5m",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},icon:{color:"mly1mguc6l",$$css:!0},label:{flexGrow:"mly1iyjqo2",color:"mly12lmysb",$$css:!0},sublabel:{flexGrow:"mly1iyjqo2",color:"mly15jt5ur",$$css:!0}},Ra=f.createContext({});function dR({runQuery:e}){const{rootQuery:t,setQuery:r,source:o}=f.useContext(be),{onCollapse:s}=f.useContext(Ra),{focusMainView:i}=Vs(),l=!t||t.isEmpty(),a=t?.isRunnable(),u=()=>{o&&t&&e(o,t.build())};return d.jsxs("div",{className:"mly78zum5 mly1qughib mly6s0dn4 mlye8ttls",children:[d.jsxs("div",{className:"mly78zum5 mly167g77z mly6s0dn4 mlydqdrvq",children:[d.jsx(ie,{name:"filterSliders"}),d.jsx("div",{...A.props(Y.largeBody,fR.title),children:"Query"})]}),d.jsxs("div",{className:"mly78zum5 mly167g77z",children:[d.jsx(ke,{onClick:()=>{i(),r?.(void 0)},isDisabled:!t||t?.isEmpty(),label:"Clear",variant:"flat",size:"compact"}),d.jsxs(jo,{children:[d.jsx(Do,{asChild:!0,children:d.jsx(ke,{icon:"play",onClick:u,isDisabled:!a,label:"Run",variant:"primary",size:"compact"})}),d.jsx(Lo,{children:d.jsx(No,{children:d.jsx("div",{...A.props(Y.body,Pn.default),children:a?"Execute the query.":l?"The current query is empty.":"The current query cannot be executed."})})})]}),s&&d.jsx(ke,{icon:"sidebarCollapse",tooltip:"Close the source panel",onClick:s,size:"compact",variant:"flat"})]})]})}const fR={title:{fontWeight:"mly1xlr1w8",$$css:!0}},Xt={labelWithIcon:{display:"mly78zum5",alignItems:"mly6s0dn4",whiteSpace:"mlyuxw1ft",gap:"mly167g77z",rowGap:null,columnGap:null,overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0},queryCard:{border:"mlyzkdzjc",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,borderRadius:"mly1sxf85j",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},title:{whiteSpace:"mlyuxw1ft",padding:"mly17qkr04",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},tokenContainer:{display:"mly78zum5",flexDirection:"mlydt5ytf",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0}};function pR({value:e,customStyle:t}){if(!e)return d.jsx(Be,{label:"∅"});switch(e.kind){case"boolean_literal":return d.jsx(Be,{label:e.boolean_value?"true":"false",customStyle:t});case"date_literal":return d.jsx(Be,{label:e.date_value,customStyle:t});case"timestamp_literal":return d.jsx(Be,{label:e.timestamp_value,customStyle:t});case"null_literal":return d.jsx(Be,{label:"∅"});case"number_literal":return d.jsx(Be,{label:e.number_value.toLocaleString(),customStyle:t});case"string_literal":return d.jsx(Be,{label:e.string_value,customStyle:t});case"filter_expression_literal":return d.jsx(Be,{label:e.filter_expression_value,customStyle:t})}}const dc="# ",mR=["table","bar","dashboard","json","line","list","list_detail","point_map","scatter_chart","segment_map","shape_map"],hR=["table","bar_chart","dashboard","json","line_chart","list","list_detail","point_map","scatter_chart","segment_map","shape_map"],gR=["number","boolean","currency","image","url","percent","text","time"],xR=[...hR,...gR];function Gd(e){if(e){const t=e.getProperties(),r=Object.keys(t);for(const o of r)if(xR.includes(o)&&!t[o].deleted)return o}return null}function yR(e){switch(e){case"bar_chart":return"bar";case"line_chart":return"line";default:return e}}function Aa(e){return bR[e]}function ix(e){return wR[e]}function ol(e){let t;switch(e.kind){case"view":t="query";break;case"dimension":case"measure":t=Aa(e.type.kind);break;case"join":t=vR(e.relationship);break}return t}function vR(e){return CR[e]}function lx(e){const t=e.getTag();return`viz_${Gd(t)??"table"}`}const bR={array_type:"array",string_type:"string",date_type:"date",boolean_type:"boolean",number_type:"number",json_type:"json",record_type:"json",sql_native_type:"sql_native",timestamp_type:"date",filter_expression_type:"filter"},wR={view:"purple",dimension:"cyan",measure:"green",join:void 0},CR={many:"many_to_one",cross:"one_to_many",one:"one_to_one"};function jr({field:e,hoverActions:t,hoverActionsVisible:r,...o}){let s=e.name;return e.kind==="dimension"&&(e.type.kind==="timestamp_type"||e.type.kind==="date_type")&&e.type.timeframe&&(s+=`.${e.type.timeframe}`),d.jsxs("div",{...{0:{className:"mly78zum5 mly6s0dn4 mly1nhvcw1 mly1jnr06f mly28fmrt mly1x0xcia"},1:{className:"mly78zum5 mly6s0dn4 mly1nhvcw1 mly1jnr06f mlym9y5t7"}}[!!r<<0],children:[d.jsx(Be,{label:s,color:ix(e.kind),icon:ol(e),...o}),t&&d.jsx("div",{className:"mly1vsucm1 mly2lah0s",children:t})]})}function _R({drills:e}){return e.length?d.jsxs("div",{children:[d.jsx("div",{...A.props(Xt.title),children:"drills"}),d.jsx("div",{className:"mly78zum5 mlydt5ytf mly1jnr06f",children:e.map((t,r)=>{const o=t.filter.expression.getFieldInfo();return o?d.jsxs(Zs,{color:"cyan",customStyle:SR.tokenGroup,children:[d.jsx(jr,{field:o}),d.jsx(Be,{label:"="}),t.filter instanceof J.ASTFilterWithLiteralEquality?d.jsx(pR,{value:t.filter.value.node}):d.jsx(Be,{label:t.filter.filterString})]},r):null})})]}):null}const SR={tokenGroup:{display:"mly78zum5",$$css:!0}};function kR(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return f.useMemo(()=>o=>{t.forEach(s=>s(o))},t)}const Ta=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Uo(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ud(e){return"nodeType"in e}function pt(e){var t,r;return e?Uo(e)?e:Ud(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function Yd(e){const{Document:t}=pt(e);return e instanceof t}function di(e){return Uo(e)?!1:e instanceof pt(e).HTMLElement}function ax(e){return e instanceof pt(e).SVGElement}function Yo(e){return e?Uo(e)?e.document:Ud(e)?Yd(e)?e:di(e)||ax(e)?e.ownerDocument:document:document:document}const pn=Ta?f.useLayoutEffect:f.useEffect;function Hd(e){const t=f.useRef(e);return pn(()=>{t.current=e}),f.useCallback(function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return t.current==null?void 0:t.current(...o)},[])}function ER(){const e=f.useRef(null),t=f.useCallback((o,s)=>{e.current=setInterval(o,s)},[]),r=f.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function $s(e,t){t===void 0&&(t=[e]);const r=f.useRef(e);return pn(()=>{r.current!==e&&(r.current=e)},t),r}function fi(e,t){const r=f.useRef();return f.useMemo(()=>{const o=e(r.current);return r.current=o,o},[...t])}function Ll(e){const t=Hd(e),r=f.useRef(null),o=f.useCallback(s=>{s!==r.current&&t?.(s,r.current),r.current=s},[]);return[r,o]}function fc(e){const t=f.useRef();return f.useEffect(()=>{t.current=e},[e]),t.current}let hu={};function pi(e,t){return f.useMemo(()=>{if(t)return t;const r=hu[e]==null?0:hu[e]+1;return hu[e]=r,e+"-"+r},[e,t])}function ux(e){return function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return o.reduce((i,l)=>{const a=Object.entries(l);for(const[u,c]of a){const p=i[u];p!=null&&(i[u]=p+e*c)}return i},{...t})}}const ho=ux(1),Nl=ux(-1);function RR(e){return"clientX"in e&&"clientY"in e}function Vd(e){if(!e)return!1;const{KeyboardEvent:t}=pt(e.target);return t&&e instanceof t}function AR(e){if(!e)return!1;const{TouchEvent:t}=pt(e.target);return t&&e instanceof t}function pc(e){if(AR(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return RR(e)?{x:e.clientX,y:e.clientY}:null}const zs=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[zs.Translate.toString(e),zs.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:o}=e;return t+" "+r+"ms "+o}}}),dp="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function TR(e){return e.matches(dp)?e:e.querySelector(dp)}const jR={display:"none"};function DR(e){let{id:t,value:r}=e;return Ie.createElement("div",{id:t,style:jR},r)}function LR(e){let{id:t,announcement:r,ariaLiveType:o="assertive"}=e;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Ie.createElement("div",{id:t,style:s,role:"status","aria-live":o,"aria-atomic":!0},r)}function NR(){const[e,t]=f.useState("");return{announce:f.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const cx=f.createContext(null);function MR(e){const t=f.useContext(cx);f.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function IR(){const[e]=f.useState(()=>new Set),t=f.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[f.useCallback(o=>{let{type:s,event:i}=o;e.forEach(l=>{var a;return(a=l[s])==null?void 0:a.call(l,i)})},[e]),t]}const PR={draggable:`
|
|
278
278
|
To pick up a draggable item, press the space bar.
|
|
279
279
|
While dragging, use the arrow keys to move the item.
|
|
280
280
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
281
281
|
`},FR={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function BR(e){let{announcements:t=FR,container:r,hiddenTextDescribedById:o,screenReaderInstructions:s=PR}=e;const{announce:i,announcement:l}=NR(),a=pi("DndLiveRegion"),[u,c]=f.useState(!1);if(f.useEffect(()=>{c(!0)},[]),MR(f.useMemo(()=>({onDragStart(m){let{active:g}=m;i(t.onDragStart({active:g}))},onDragMove(m){let{active:g,over:h}=m;t.onDragMove&&i(t.onDragMove({active:g,over:h}))},onDragOver(m){let{active:g,over:h}=m;i(t.onDragOver({active:g,over:h}))},onDragEnd(m){let{active:g,over:h}=m;i(t.onDragEnd({active:g,over:h}))},onDragCancel(m){let{active:g,over:h}=m;i(t.onDragCancel({active:g,over:h}))}}),[i,t])),!u)return null;const p=Ie.createElement(Ie.Fragment,null,Ie.createElement(DR,{id:o,value:s.draggable}),Ie.createElement(LR,{id:a,announcement:l}));return r?Rn.createPortal(p,r):p}var Ue;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Ue||(Ue={}));function Ml(){}function $R(e,t){return f.useMemo(()=>({sensor:e,options:{}}),[e,t])}function zR(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return f.useMemo(()=>[...t].filter(o=>o!=null),[...t])}const Zt=Object.freeze({x:0,y:0});function qR(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function WR(e,t){let{data:{value:r}}=e,{data:{value:o}}=t;return r-o}function GR(e,t){let{data:{value:r}}=e,{data:{value:o}}=t;return o-r}function UR(e,t){if(!e||e.length===0)return null;const[r]=e;return r[t]}function fp(e,t,r){return t===void 0&&(t=e.left),r===void 0&&(r=e.top),{x:t+e.width*.5,y:r+e.height*.5}}const YR=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:o}=e;const s=fp(t,t.left,t.top),i=[];for(const l of o){const{id:a}=l,u=r.get(a);if(u){const c=qR(fp(u),s);i.push({id:a,data:{droppableContainer:l,value:c}})}}return i.sort(WR)};function HR(e,t){const r=Math.max(t.top,e.top),o=Math.max(t.left,e.left),s=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),l=s-o,a=i-r;if(o<s&&r<i){const u=t.width*t.height,c=e.width*e.height,p=l*a,m=p/(u+c-p);return Number(m.toFixed(4))}return 0}const VR=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:o}=e;const s=[];for(const i of o){const{id:l}=i,a=r.get(l);if(a){const u=HR(a,t);u>0&&s.push({id:l,data:{droppableContainer:i,value:u}})}}return s.sort(GR)};function XR(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}function dx(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Zt}function ZR(e){return function(r){for(var o=arguments.length,s=new Array(o>1?o-1:0),i=1;i<o;i++)s[i-1]=arguments[i];return s.reduce((l,a)=>({...l,top:l.top+e*a.y,bottom:l.bottom+e*a.y,left:l.left+e*a.x,right:l.right+e*a.x}),{...r})}}const KR=ZR(1);function QR(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function JR(e,t,r){const o=QR(t);if(!o)return e;const{scaleX:s,scaleY:i,x:l,y:a}=o,u=e.left-l-(1-s)*parseFloat(r),c=e.top-a-(1-i)*parseFloat(r.slice(r.indexOf(" ")+1)),p=s?e.width/s:e.width,m=i?e.height/i:e.height;return{width:p,height:m,top:c,right:u+p,bottom:c+m,left:u}}const eA={ignoreTransform:!1};function Ho(e,t){t===void 0&&(t=eA);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:p}=pt(e).getComputedStyle(e);c&&(r=JR(r,c,p))}const{top:o,left:s,width:i,height:l,bottom:a,right:u}=r;return{top:o,left:s,width:i,height:l,bottom:a,right:u}}function pp(e){return Ho(e,{ignoreTransform:!0})}function tA(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function nA(e,t){return t===void 0&&(t=pt(e).getComputedStyle(e)),t.position==="fixed"}function rA(e,t){t===void 0&&(t=pt(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(s=>{const i=t[s];return typeof i=="string"?r.test(i):!1})}function Xd(e,t){const r=[];function o(s){if(t!=null&&r.length>=t||!s)return r;if(Yd(s)&&s.scrollingElement!=null&&!r.includes(s.scrollingElement))return r.push(s.scrollingElement),r;if(!di(s)||ax(s)||r.includes(s))return r;const i=pt(e).getComputedStyle(s);return s!==e&&rA(s,i)&&r.push(s),nA(s,i)?r:o(s.parentNode)}return e?o(e):r}function fx(e){const[t]=Xd(e,1);return t??null}function gu(e){return!Ta||!e?null:Uo(e)?e:Ud(e)?Yd(e)||e===Yo(e).scrollingElement?window:di(e)?e:null:null}function px(e){return Uo(e)?e.scrollX:e.scrollLeft}function mx(e){return Uo(e)?e.scrollY:e.scrollTop}function mc(e){return{x:px(e),y:mx(e)}}var Xe;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Xe||(Xe={}));function hx(e){return!Ta||!e?!1:e===document.scrollingElement}function gx(e){const t={x:0,y:0},r=hx(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},s=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,l=e.scrollTop>=o.y,a=e.scrollLeft>=o.x;return{isTop:s,isLeft:i,isBottom:l,isRight:a,maxScroll:o,minScroll:t}}const oA={x:.2,y:.2};function sA(e,t,r,o,s){let{top:i,left:l,right:a,bottom:u}=r;o===void 0&&(o=10),s===void 0&&(s=oA);const{isTop:c,isBottom:p,isLeft:m,isRight:g}=gx(e),h={x:0,y:0},x={x:0,y:0},v={height:t.height*s.y,width:t.width*s.x};return!c&&i<=t.top+v.height?(h.y=Xe.Backward,x.y=o*Math.abs((t.top+v.height-i)/v.height)):!p&&u>=t.bottom-v.height&&(h.y=Xe.Forward,x.y=o*Math.abs((t.bottom-v.height-u)/v.height)),!g&&a>=t.right-v.width?(h.x=Xe.Forward,x.x=o*Math.abs((t.right-v.width-a)/v.width)):!m&&l<=t.left+v.width&&(h.x=Xe.Backward,x.x=o*Math.abs((t.left+v.width-l)/v.width)),{direction:h,speed:x}}function iA(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:l}=window;return{top:0,left:0,right:i,bottom:l,width:i,height:l}}const{top:t,left:r,right:o,bottom:s}=e.getBoundingClientRect();return{top:t,left:r,right:o,bottom:s,width:e.clientWidth,height:e.clientHeight}}function xx(e){return e.reduce((t,r)=>ho(t,mc(r)),Zt)}function lA(e){return e.reduce((t,r)=>t+px(r),0)}function aA(e){return e.reduce((t,r)=>t+mx(r),0)}function uA(e,t){if(t===void 0&&(t=Ho),!e)return;const{top:r,left:o,bottom:s,right:i}=t(e);fx(e)&&(s<=0||i<=0||r>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const cA=[["x",["left","right"],lA],["y",["top","bottom"],aA]];class Zd{constructor(t,r){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=Xd(r),s=xx(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,l,a]of cA)for(const u of l)Object.defineProperty(this,u,{get:()=>{const c=a(o),p=s[i]-c;return this.rect[u]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class bs{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...r)})},this.target=t}add(t,r,o){var s;(s=this.target)==null||s.addEventListener(t,r,o),this.listeners.push([t,r,o])}}function dA(e){const{EventTarget:t}=pt(e);return e instanceof t?e:Yo(e)}function xu(e,t){const r=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(r**2+o**2)>t:"x"in t&&"y"in t?r>t.x&&o>t.y:"x"in t?r>t.x:"y"in t?o>t.y:!1}var Et;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Et||(Et={}));function mp(e){e.preventDefault()}function fA(e){e.stopPropagation()}var ye;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(ye||(ye={}));const yx={start:[ye.Space,ye.Enter],cancel:[ye.Esc],end:[ye.Space,ye.Enter,ye.Tab]},pA=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case ye.Right:return{...r,x:r.x+25};case ye.Left:return{...r,x:r.x-25};case ye.Down:return{...r,y:r.y+25};case ye.Up:return{...r,y:r.y-25}}};class vx{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:r}}=t;this.props=t,this.listeners=new bs(Yo(r)),this.windowListeners=new bs(pt(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Et.Resize,this.handleCancel),this.windowListeners.add(Et.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Et.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,o=t.node.current;o&&uA(o),r(Zt)}handleKeyDown(t){if(Vd(t)){const{active:r,context:o,options:s}=this.props,{keyboardCodes:i=yx,coordinateGetter:l=pA,scrollBehavior:a="smooth"}=s,{code:u}=t;if(i.end.includes(u)){this.handleEnd(t);return}if(i.cancel.includes(u)){this.handleCancel(t);return}const{collisionRect:c}=o.current,p=c?{x:c.left,y:c.top}:Zt;this.referenceCoordinates||(this.referenceCoordinates=p);const m=l(t,{active:r,context:o.current,currentCoordinates:p});if(m){const g=Nl(m,p),h={x:0,y:0},{scrollableAncestors:x}=o.current;for(const v of x){const y=t.code,{isTop:b,isRight:w,isLeft:C,isBottom:_,maxScroll:k,minScroll:E}=gx(v),R=iA(v),j={x:Math.min(y===ye.Right?R.right-R.width/2:R.right,Math.max(y===ye.Right?R.left:R.left+R.width/2,m.x)),y:Math.min(y===ye.Down?R.bottom-R.height/2:R.bottom,Math.max(y===ye.Down?R.top:R.top+R.height/2,m.y))},D=y===ye.Right&&!w||y===ye.Left&&!C,I=y===ye.Down&&!_||y===ye.Up&&!b;if(D&&j.x!==m.x){const B=v.scrollLeft+g.x,U=y===ye.Right&&B<=k.x||y===ye.Left&&B>=E.x;if(U&&!g.y){v.scrollTo({left:B,behavior:a});return}U?h.x=v.scrollLeft-B:h.x=y===ye.Right?v.scrollLeft-k.x:v.scrollLeft-E.x,h.x&&v.scrollBy({left:-h.x,behavior:a});break}else if(I&&j.y!==m.y){const B=v.scrollTop+g.y,U=y===ye.Down&&B<=k.y||y===ye.Up&&B>=E.y;if(U&&!g.x){v.scrollTo({top:B,behavior:a});return}U?h.y=v.scrollTop-B:h.y=y===ye.Down?v.scrollTop-k.y:v.scrollTop-E.y,h.y&&v.scrollBy({top:-h.y,behavior:a});break}}this.handleMove(t,ho(Nl(m,this.referenceCoordinates),h))}}}handleMove(t,r){const{onMove:o}=this.props;t.preventDefault(),o(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}vx.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:o=yx,onActivation:s}=t,{active:i}=r;const{code:l}=e.nativeEvent;if(o.start.includes(l)){const a=i.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),s?.({event:e.nativeEvent}),!0)}return!1}}];function hp(e){return!!(e&&"distance"in e)}function gp(e){return!!(e&&"delay"in e)}class Kd{constructor(t,r,o){var s;o===void 0&&(o=dA(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=r;const{event:i}=t,{target:l}=i;this.props=t,this.events=r,this.document=Yo(l),this.documentListeners=new bs(this.document),this.listeners=new bs(o),this.windowListeners=new bs(pt(l)),this.initialCoordinates=(s=pc(i))!=null?s:Zt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:r,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Et.Resize,this.handleCancel),this.windowListeners.add(Et.DragStart,mp),this.windowListeners.add(Et.VisibilityChange,this.handleCancel),this.windowListeners.add(Et.ContextMenu,mp),this.documentListeners.add(Et.Keydown,this.handleKeydown),r){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(gp(r)){this.timeoutId=setTimeout(this.handleStart,r.delay),this.handlePending(r);return}if(hp(r)){this.handlePending(r);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,r){const{active:o,onPending:s}=this.props;s(o,t,this.initialCoordinates,r)}handleStart(){const{initialCoordinates:t}=this,{onStart:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(Et.Click,fA,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Et.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;const{activated:o,initialCoordinates:s,props:i}=this,{onMove:l,options:{activationConstraint:a}}=i;if(!s)return;const u=(r=pc(t))!=null?r:Zt,c=Nl(s,u);if(!o&&a){if(hp(a)){if(a.tolerance!=null&&xu(c,a.tolerance))return this.handleCancel();if(xu(c,a.distance))return this.handleStart()}if(gp(a)&&xu(c,a.tolerance))return this.handleCancel();this.handlePending(a,c);return}t.cancelable&&t.preventDefault(),l(u)}handleEnd(){const{onAbort:t,onEnd:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleCancel(){const{onAbort:t,onCancel:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleKeydown(t){t.code===ye.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const mA={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Qd extends Kd{constructor(t){const{event:r}=t,o=Yo(r.target);super(t,mA,o)}}Qd.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:o}=t;return!r.isPrimary||r.button!==0?!1:(o?.({event:r}),!0)}}];const hA={move:{name:"mousemove"},end:{name:"mouseup"}};var hc;(function(e){e[e.RightClick=2]="RightClick"})(hc||(hc={}));class gA extends Kd{constructor(t){super(t,hA,Yo(t.event.target))}}gA.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:o}=t;return r.button===hc.RightClick?!1:(o?.({event:r}),!0)}}];const yu={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class xA extends Kd{constructor(t){super(t,yu)}static setup(){return window.addEventListener(yu.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(yu.move.name,t)};function t(){}}}xA.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:o}=t;const{touches:s}=r;return s.length>1?!1:(o?.({event:r}),!0)}}];var ws;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ws||(ws={}));var Il;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Il||(Il={}));function yA(e){let{acceleration:t,activator:r=ws.Pointer,canScroll:o,draggingRect:s,enabled:i,interval:l=5,order:a=Il.TreeOrder,pointerCoordinates:u,scrollableAncestors:c,scrollableAncestorRects:p,delta:m,threshold:g}=e;const h=bA({delta:m,disabled:!i}),[x,v]=ER(),y=f.useRef({x:0,y:0}),b=f.useRef({x:0,y:0}),w=f.useMemo(()=>{switch(r){case ws.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case ws.DraggableRect:return s}},[r,s,u]),C=f.useRef(null),_=f.useCallback(()=>{const E=C.current;if(!E)return;const R=y.current.x*b.current.x,j=y.current.y*b.current.y;E.scrollBy(R,j)},[]),k=f.useMemo(()=>a===Il.TreeOrder?[...c].reverse():c,[a,c]);f.useEffect(()=>{if(!i||!c.length||!w){v();return}for(const E of k){if(o?.(E)===!1)continue;const R=c.indexOf(E),j=p[R];if(!j)continue;const{direction:D,speed:I}=sA(E,j,w,t,g);for(const B of["x","y"])h[B][D[B]]||(I[B]=0,D[B]=0);if(I.x>0||I.y>0){v(),C.current=E,x(_,l),y.current=I,b.current=D;return}}y.current={x:0,y:0},b.current={x:0,y:0},v()},[t,_,o,v,i,l,JSON.stringify(w),JSON.stringify(h),x,c,k,p,JSON.stringify(g)])}const vA={x:{[Xe.Backward]:!1,[Xe.Forward]:!1},y:{[Xe.Backward]:!1,[Xe.Forward]:!1}};function bA(e){let{delta:t,disabled:r}=e;const o=fc(t);return fi(s=>{if(r||!o||!s)return vA;const i={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[Xe.Backward]:s.x[Xe.Backward]||i.x===-1,[Xe.Forward]:s.x[Xe.Forward]||i.x===1},y:{[Xe.Backward]:s.y[Xe.Backward]||i.y===-1,[Xe.Forward]:s.y[Xe.Forward]||i.y===1}}},[r,t,o])}function wA(e,t){const r=t!=null?e.get(t):void 0,o=r?r.node.current:null;return fi(s=>{var i;return t==null?null:(i=o??s)!=null?i:null},[o,t])}function CA(e,t){return f.useMemo(()=>e.reduce((r,o)=>{const{sensor:s}=o,i=s.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,o)}));return[...r,...i]},[]),[e,t])}var qs;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(qs||(qs={}));var gc;(function(e){e.Optimized="optimized"})(gc||(gc={}));const xp=new Map;function _A(e,t){let{dragging:r,dependencies:o,config:s}=t;const[i,l]=f.useState(null),{frequency:a,measure:u,strategy:c}=s,p=f.useRef(e),m=y(),g=$s(m),h=f.useCallback(function(b){b===void 0&&(b=[]),!g.current&&l(w=>w===null?b:w.concat(b.filter(C=>!w.includes(C))))},[g]),x=f.useRef(null),v=fi(b=>{if(m&&!r)return xp;if(!b||b===xp||p.current!==e||i!=null){const w=new Map;for(let C of e){if(!C)continue;if(i&&i.length>0&&!i.includes(C.id)&&C.rect.current){w.set(C.id,C.rect.current);continue}const _=C.node.current,k=_?new Zd(u(_),_):null;C.rect.current=k,k&&w.set(C.id,k)}return w}return b},[e,i,r,m,u]);return f.useEffect(()=>{p.current=e},[e]),f.useEffect(()=>{m||h()},[r,m]),f.useEffect(()=>{i&&i.length>0&&l(null)},[JSON.stringify(i)]),f.useEffect(()=>{m||typeof a!="number"||x.current!==null||(x.current=setTimeout(()=>{h(),x.current=null},a))},[a,m,h,...o]),{droppableRects:v,measureDroppableContainers:h,measuringScheduled:i!=null};function y(){switch(c){case qs.Always:return!1;case qs.BeforeDragging:return r;default:return!r}}}function bx(e,t){return fi(r=>e?r||(typeof t=="function"?t(e):e):null,[t,e])}function SA(e,t){return bx(e,t)}function kA(e){let{callback:t,disabled:r}=e;const o=Hd(t),s=f.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(o)},[o,r]);return f.useEffect(()=>()=>s?.disconnect(),[s]),s}function ja(e){let{callback:t,disabled:r}=e;const o=Hd(t),s=f.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(o)},[r]);return f.useEffect(()=>()=>s?.disconnect(),[s]),s}function EA(e){return new Zd(Ho(e),e)}function yp(e,t,r){t===void 0&&(t=EA);const[o,s]=f.useState(null);function i(){s(u=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=u??r)!=null?c:null}const p=t(e);return JSON.stringify(u)===JSON.stringify(p)?u:p})}const l=kA({callback(u){if(e)for(const c of u){const{type:p,target:m}=c;if(p==="childList"&&m instanceof HTMLElement&&m.contains(e)){i();break}}}}),a=ja({callback:i});return pn(()=>{i(),e?(a?.observe(e),l?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),l?.disconnect())},[e]),o}function RA(e){const t=bx(e);return dx(e,t)}const vp=[];function AA(e){const t=f.useRef(e),r=fi(o=>e?o&&o!==vp&&e&&t.current&&e.parentNode===t.current.parentNode?o:Xd(e):vp,[e]);return f.useEffect(()=>{t.current=e},[e]),r}function TA(e){const[t,r]=f.useState(null),o=f.useRef(e),s=f.useCallback(i=>{const l=gu(i.target);l&&r(a=>a?(a.set(l,mc(l)),new Map(a)):null)},[]);return f.useEffect(()=>{const i=o.current;if(e!==i){l(i);const a=e.map(u=>{const c=gu(u);return c?(c.addEventListener("scroll",s,{passive:!0}),[c,mc(c)]):null}).filter(u=>u!=null);r(a.length?new Map(a):null),o.current=e}return()=>{l(e),l(i)};function l(a){a.forEach(u=>{const c=gu(u);c?.removeEventListener("scroll",s)})}},[s,e]),f.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,l)=>ho(i,l),Zt):xx(e):Zt,[e,t])}function bp(e,t){t===void 0&&(t=[]);const r=f.useRef(null);return f.useEffect(()=>{r.current=null},t),f.useEffect(()=>{const o=e!==Zt;o&&!r.current&&(r.current=e),!o&&r.current&&(r.current=null)},[e]),r.current?Nl(e,r.current):Zt}function jA(e){f.useEffect(()=>{if(!Ta)return;const t=e.map(r=>{let{sensor:o}=r;return o.setup==null?void 0:o.setup()});return()=>{for(const r of t)r?.()}},e.map(t=>{let{sensor:r}=t;return r}))}function DA(e,t){return f.useMemo(()=>e.reduce((r,o)=>{let{eventName:s,handler:i}=o;return r[s]=l=>{i(l,t)},r},{}),[e,t])}function wx(e){return f.useMemo(()=>e?tA(e):null,[e])}const wp=[];function LA(e,t){t===void 0&&(t=Ho);const[r]=e,o=wx(r?pt(r):null),[s,i]=f.useState(wp);function l(){i(()=>e.length?e.map(u=>hx(u)?o:new Zd(t(u),u)):wp)}const a=ja({callback:l});return pn(()=>{a?.disconnect(),l(),e.forEach(u=>a?.observe(u))},[e]),s}function NA(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return di(t)?t:e}function MA(e){let{measure:t}=e;const[r,o]=f.useState(null),s=f.useCallback(c=>{for(const{target:p}of c)if(di(p)){o(m=>{const g=t(p);return m?{...m,width:g.width,height:g.height}:g});break}},[t]),i=ja({callback:s}),l=f.useCallback(c=>{const p=NA(c);i?.disconnect(),p&&i?.observe(p),o(p?t(p):null)},[t,i]),[a,u]=Ll(l);return f.useMemo(()=>({nodeRef:a,rect:r,setRef:u}),[r,a,u])}const IA=[{sensor:Qd,options:{}},{sensor:vx,options:{}}],OA={current:{}},sl={draggable:{measure:pp},droppable:{measure:pp,strategy:qs.WhileDragging,frequency:gc.Optimized},dragOverlay:{measure:Ho}};class Cs extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,o;return(r=(o=this.get(t))==null?void 0:o.node.current)!=null?r:void 0}}const PA={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Cs,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Ml},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:sl,measureDroppableContainers:Ml,windowRect:null,measuringScheduled:!1},FA={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Ml,draggableNodes:new Map,over:null,measureDroppableContainers:Ml},Da=f.createContext(FA),Cx=f.createContext(PA);function BA(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Cs}}}function $A(e,t){switch(t.type){case Ue.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Ue.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Ue.DragEnd:case Ue.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ue.RegisterDroppable:{const{element:r}=t,{id:o}=r,s=new Cs(e.droppable.containers);return s.set(o,r),{...e,droppable:{...e.droppable,containers:s}}}case Ue.SetDroppableDisabled:{const{id:r,key:o,disabled:s}=t,i=e.droppable.containers.get(r);if(!i||o!==i.key)return e;const l=new Cs(e.droppable.containers);return l.set(r,{...i,disabled:s}),{...e,droppable:{...e.droppable,containers:l}}}case Ue.UnregisterDroppable:{const{id:r,key:o}=t,s=e.droppable.containers.get(r);if(!s||o!==s.key)return e;const i=new Cs(e.droppable.containers);return i.delete(r),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function zA(e){let{disabled:t}=e;const{active:r,activatorEvent:o,draggableNodes:s}=f.useContext(Da),i=fc(o),l=fc(r?.id);return f.useEffect(()=>{if(!t&&!o&&i&&l!=null){if(!Vd(i)||document.activeElement===i.target)return;const a=s.get(l);if(!a)return;const{activatorNode:u,node:c}=a;if(!u.current&&!c.current)return;requestAnimationFrame(()=>{for(const p of[u.current,c.current]){if(!p)continue;const m=TR(p);if(m){m.focus();break}}})}},[o,t,s,l,i]),null}function qA(e,t){let{transform:r,...o}=t;return e!=null&&e.length?e.reduce((s,i)=>i({transform:s,...o}),r):r}function WA(e){return f.useMemo(()=>({draggable:{...sl.draggable,...e?.draggable},droppable:{...sl.droppable,...e?.droppable},dragOverlay:{...sl.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function GA(e){let{activeNode:t,measure:r,initialRect:o,config:s=!0}=e;const i=f.useRef(!1),{x:l,y:a}=typeof s=="boolean"?{x:s,y:s}:s;pn(()=>{if(!l&&!a||!t){i.current=!1;return}if(i.current||!o)return;const c=t?.node.current;if(!c||c.isConnected===!1)return;const p=r(c),m=dx(p,o);if(l||(m.x=0),a||(m.y=0),i.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){const g=fx(c);g&&g.scrollBy({top:m.y,left:m.x})}},[t,l,a,o,r])}const _x=f.createContext({...Zt,scaleX:1,scaleY:1});var Jn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Jn||(Jn={}));const UA=f.memo(function(t){var r,o,s,i;let{id:l,accessibility:a,autoScroll:u=!0,children:c,sensors:p=IA,collisionDetection:m=VR,measuring:g,modifiers:h,...x}=t;const v=f.useReducer($A,void 0,BA),[y,b]=v,[w,C]=IR(),[_,k]=f.useState(Jn.Uninitialized),E=_===Jn.Initialized,{draggable:{active:R,nodes:j,translate:D},droppable:{containers:I}}=y,B=R!=null?j.get(R):null,U=f.useRef({initial:null,translated:null}),K=f.useMemo(()=>{var et;return R!=null?{id:R,data:(et=B?.data)!=null?et:OA,rect:U}:null},[R,B]),$=f.useRef(null),[S,T]=f.useState(null),[M,H]=f.useState(null),z=$s(x,Object.values(x)),fe=pi("DndDescribedBy",l),Oe=f.useMemo(()=>I.getEnabled(),[I]),we=WA(g),{droppableRects:Le,measureDroppableContainers:Ae,measuringScheduled:Je}=_A(Oe,{dragging:E,dependencies:[D.x,D.y],config:we.droppable}),Te=wA(j,R),Z=f.useMemo(()=>M?pc(M):null,[M]),ue=N2(),pe=SA(Te,we.draggable.measure);GA({activeNode:R!=null?j.get(R):null,config:ue.layoutShiftCompensation,initialRect:pe,measure:we.draggable.measure});const X=yp(Te,we.draggable.measure,pe),he=yp(Te?Te.parentElement:null),ce=f.useRef({activatorEvent:null,active:null,activeNode:Te,collisionRect:null,collisions:null,droppableRects:Le,draggableNodes:j,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ze=I.getNodeFor((r=ce.current.over)==null?void 0:r.id),qe=MA({measure:we.dragOverlay.measure}),Ct=(o=qe.nodeRef.current)!=null?o:Te,_t=E?(s=qe.rect)!=null?s:X:null,qn=!!(qe.nodeRef.current&&qe.rect),xi=RA(qn?null:X),Wn=wx(Ct?pt(Ct):null),Gn=AA(E?ze??Te:null),yi=LA(Gn),vi=qA(h,{transform:{x:D.x-xi.x,y:D.y-xi.y,scaleX:1,scaleY:1},activatorEvent:M,active:K,activeNodeRect:X,containerNodeRect:he,draggingNodeRect:_t,over:ce.current.over,overlayNodeRect:qe.rect,scrollableAncestors:Gn,scrollableAncestorRects:yi,windowRect:Wn}),f0=Z?ho(Z,D):null,p0=TA(Gn),E2=bp(p0),R2=bp(p0,[X]),Fr=ho(vi,E2),Br=_t?KR(_t,vi):null,Vo=K&&Br?m({active:K,collisionRect:Br,droppableRects:Le,droppableContainers:Oe,pointerCoordinates:f0}):null,m0=UR(Vo,"id"),[Un,h0]=f.useState(null),A2=qn?vi:ho(vi,R2),T2=XR(A2,(i=Un?.rect)!=null?i:null,X),Ia=f.useRef(null),g0=f.useCallback((et,mt)=>{let{sensor:ht,options:Yn}=mt;if($.current==null)return;const St=j.get($.current);if(!St)return;const gt=et.nativeEvent,en=new ht({active:$.current,activeNode:St,event:gt,options:Yn,context:ce,onAbort(Ke){if(!j.get(Ke))return;const{onDragAbort:tn}=z.current,vn={id:Ke};tn?.(vn),w({type:"onDragAbort",event:vn})},onPending(Ke,Hn,tn,vn){if(!j.get(Ke))return;const{onDragPending:Zo}=z.current,Vn={id:Ke,constraint:Hn,initialCoordinates:tn,offset:vn};Zo?.(Vn),w({type:"onDragPending",event:Vn})},onStart(Ke){const Hn=$.current;if(Hn==null)return;const tn=j.get(Hn);if(!tn)return;const{onDragStart:vn}=z.current,Xo={activatorEvent:gt,active:{id:Hn,data:tn.data,rect:U}};Rn.unstable_batchedUpdates(()=>{vn?.(Xo),k(Jn.Initializing),b({type:Ue.DragStart,initialCoordinates:Ke,active:Hn}),w({type:"onDragStart",event:Xo}),T(Ia.current),H(gt)})},onMove(Ke){b({type:Ue.DragMove,coordinates:Ke})},onEnd:$r(Ue.DragEnd),onCancel:$r(Ue.DragCancel)});Ia.current=en;function $r(Ke){return async function(){const{active:tn,collisions:vn,over:Xo,scrollAdjustedTranslate:Zo}=ce.current;let Vn=null;if(tn&&Zo){const{cancelDrop:Ko}=z.current;Vn={activatorEvent:gt,active:tn,collisions:vn,delta:Zo,over:Xo},Ke===Ue.DragEnd&&typeof Ko=="function"&&await Promise.resolve(Ko(Vn))&&(Ke=Ue.DragCancel)}$.current=null,Rn.unstable_batchedUpdates(()=>{b({type:Ke}),k(Jn.Uninitialized),h0(null),T(null),H(null),Ia.current=null;const Ko=Ke===Ue.DragEnd?"onDragEnd":"onDragCancel";if(Vn){const Oa=z.current[Ko];Oa?.(Vn),w({type:Ko,event:Vn})}})}}},[j]),j2=f.useCallback((et,mt)=>(ht,Yn)=>{const St=ht.nativeEvent,gt=j.get(Yn);if($.current!==null||!gt||St.dndKit||St.defaultPrevented)return;const en={active:gt};et(ht,mt.options,en)===!0&&(St.dndKit={capturedBy:mt.sensor},$.current=Yn,g0(ht,mt))},[j,g0]),x0=CA(p,j2);jA(p),pn(()=>{X&&_===Jn.Initializing&&k(Jn.Initialized)},[X,_]),f.useEffect(()=>{const{onDragMove:et}=z.current,{active:mt,activatorEvent:ht,collisions:Yn,over:St}=ce.current;if(!mt||!ht)return;const gt={active:mt,activatorEvent:ht,collisions:Yn,delta:{x:Fr.x,y:Fr.y},over:St};Rn.unstable_batchedUpdates(()=>{et?.(gt),w({type:"onDragMove",event:gt})})},[Fr.x,Fr.y]),f.useEffect(()=>{const{active:et,activatorEvent:mt,collisions:ht,droppableContainers:Yn,scrollAdjustedTranslate:St}=ce.current;if(!et||$.current==null||!mt||!St)return;const{onDragOver:gt}=z.current,en=Yn.get(m0),$r=en&&en.rect.current?{id:en.id,rect:en.rect.current,data:en.data,disabled:en.disabled}:null,Ke={active:et,activatorEvent:mt,collisions:ht,delta:{x:St.x,y:St.y},over:$r};Rn.unstable_batchedUpdates(()=>{h0($r),gt?.(Ke),w({type:"onDragOver",event:Ke})})},[m0]),pn(()=>{ce.current={activatorEvent:M,active:K,activeNode:Te,collisionRect:Br,collisions:Vo,droppableRects:Le,draggableNodes:j,draggingNode:Ct,draggingNodeRect:_t,droppableContainers:I,over:Un,scrollableAncestors:Gn,scrollAdjustedTranslate:Fr},U.current={initial:_t,translated:Br}},[K,Te,Vo,Br,j,Ct,_t,Le,I,Un,Gn,Fr]),yA({...ue,delta:D,draggingRect:Br,pointerCoordinates:f0,scrollableAncestors:Gn,scrollableAncestorRects:yi});const D2=f.useMemo(()=>({active:K,activeNode:Te,activeNodeRect:X,activatorEvent:M,collisions:Vo,containerNodeRect:he,dragOverlay:qe,draggableNodes:j,droppableContainers:I,droppableRects:Le,over:Un,measureDroppableContainers:Ae,scrollableAncestors:Gn,scrollableAncestorRects:yi,measuringConfiguration:we,measuringScheduled:Je,windowRect:Wn}),[K,Te,X,M,Vo,he,qe,j,I,Le,Un,Ae,Gn,yi,we,Je,Wn]),L2=f.useMemo(()=>({activatorEvent:M,activators:x0,active:K,activeNodeRect:X,ariaDescribedById:{draggable:fe},dispatch:b,draggableNodes:j,over:Un,measureDroppableContainers:Ae}),[M,x0,K,X,b,fe,j,Un,Ae]);return Ie.createElement(cx.Provider,{value:C},Ie.createElement(Da.Provider,{value:L2},Ie.createElement(Cx.Provider,{value:D2},Ie.createElement(_x.Provider,{value:T2},c)),Ie.createElement(zA,{disabled:a?.restoreFocus===!1})),Ie.createElement(BR,{...a,hiddenTextDescribedById:fe}));function N2(){const et=S?.autoScrollEnabled===!1,mt=typeof u=="object"?u.enabled===!1:u===!1,ht=E&&!et&&!mt;return typeof u=="object"?{...u,enabled:ht}:{enabled:ht}}}),YA=f.createContext(null),Cp="button",HA="Draggable";function VA(e){let{id:t,data:r,disabled:o=!1,attributes:s}=e;const i=pi(HA),{activators:l,activatorEvent:a,active:u,activeNodeRect:c,ariaDescribedById:p,draggableNodes:m,over:g}=f.useContext(Da),{role:h=Cp,roleDescription:x="draggable",tabIndex:v=0}=s??{},y=u?.id===t,b=f.useContext(y?_x:YA),[w,C]=Ll(),[_,k]=Ll(),E=DA(l,t),R=$s(r);pn(()=>(m.set(t,{id:t,key:i,node:w,activatorNode:_,data:R}),()=>{const D=m.get(t);D&&D.key===i&&m.delete(t)}),[m,t]);const j=f.useMemo(()=>({role:h,tabIndex:v,"aria-disabled":o,"aria-pressed":y&&h===Cp?!0:void 0,"aria-roledescription":x,"aria-describedby":p.draggable}),[o,h,v,y,x,p.draggable]);return{active:u,activatorEvent:a,activeNodeRect:c,attributes:j,isDragging:y,listeners:o?void 0:E,node:w,over:g,setNodeRef:C,setActivatorNodeRef:k,transform:b}}function XA(){return f.useContext(Cx)}const ZA="Droppable",KA={timeout:25};function QA(e){let{data:t,disabled:r=!1,id:o,resizeObserverConfig:s}=e;const i=pi(ZA),{active:l,dispatch:a,over:u,measureDroppableContainers:c}=f.useContext(Da),p=f.useRef({disabled:r}),m=f.useRef(!1),g=f.useRef(null),h=f.useRef(null),{disabled:x,updateMeasurementsFor:v,timeout:y}={...KA,...s},b=$s(v??o),w=f.useCallback(()=>{if(!m.current){m.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{c(Array.isArray(b.current)?b.current:[b.current]),h.current=null},y)},[y]),C=ja({callback:w,disabled:x||!l}),_=f.useCallback((j,D)=>{C&&(D&&(C.unobserve(D),m.current=!1),j&&C.observe(j))},[C]),[k,E]=Ll(_),R=$s(t);return f.useEffect(()=>{!C||!k.current||(C.disconnect(),m.current=!1,C.observe(k.current))},[k,C]),f.useEffect(()=>(a({type:Ue.RegisterDroppable,element:{id:o,key:i,disabled:r,node:k,rect:g,data:R}}),()=>a({type:Ue.UnregisterDroppable,key:i,id:o})),[o]),f.useEffect(()=>{r!==p.current.disabled&&(a({type:Ue.SetDroppableDisabled,id:o,key:i,disabled:r}),p.current.disabled=r)},[o,i,r,a]),{active:l,rect:g,isOver:u?.id===o,node:k,over:u,setNodeRef:E}}function Jd(e,t,r){const o=e.slice();return o.splice(r<0?o.length+r:r,0,o.splice(t,1)[0]),o}function JA(e,t){return e.reduce((r,o,s)=>{const i=t.get(o);return i&&(r[s]=i),r},Array(e.length))}function Bi(e){return e!==null&&e>=0}function eT(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function tT(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Sx=e=>{let{rects:t,activeIndex:r,overIndex:o,index:s}=e;const i=Jd(t,o,r),l=t[s],a=i[s];return!a||!l?null:{x:a.left-l.left,y:a.top-l.top,scaleX:a.width/l.width,scaleY:a.height/l.height}},kx="Sortable",Ex=Ie.createContext({activeIndex:-1,containerId:kx,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Sx,disabled:{draggable:!1,droppable:!1}});function nT(e){let{children:t,id:r,items:o,strategy:s=Sx,disabled:i=!1}=e;const{active:l,dragOverlay:a,droppableRects:u,over:c,measureDroppableContainers:p}=XA(),m=pi(kx,r),g=a.rect!==null,h=f.useMemo(()=>o.map(E=>typeof E=="object"&&"id"in E?E.id:E),[o]),x=l!=null,v=l?h.indexOf(l.id):-1,y=c?h.indexOf(c.id):-1,b=f.useRef(h),w=!eT(h,b.current),C=y!==-1&&v===-1||w,_=tT(i);pn(()=>{w&&x&&p(h)},[w,h,x,p]),f.useEffect(()=>{b.current=h},[h]);const k=f.useMemo(()=>({activeIndex:v,containerId:m,disabled:_,disableTransforms:C,items:h,overIndex:y,useDragOverlay:g,sortedRects:JA(h,u),strategy:s}),[v,m,_.draggable,_.droppable,C,h,y,u,g,s]);return Ie.createElement(Ex.Provider,{value:k},t)}const rT=e=>{let{id:t,items:r,activeIndex:o,overIndex:s}=e;return Jd(r,o,s).indexOf(t)},oT=e=>{let{containerId:t,isSorting:r,wasDragging:o,index:s,items:i,newIndex:l,previousItems:a,previousContainerId:u,transition:c}=e;return!c||!o||a!==i&&s===l?!1:r?!0:l!==s&&t===u},sT={duration:200,easing:"ease"},Rx="transform",iT=zs.Transition.toString({property:Rx,duration:0,easing:"linear"}),lT={roleDescription:"sortable"};function aT(e){let{disabled:t,index:r,node:o,rect:s}=e;const[i,l]=f.useState(null),a=f.useRef(r);return pn(()=>{if(!t&&r!==a.current&&o.current){const u=s.current;if(u){const c=Ho(o.current,{ignoreTransform:!0}),p={x:u.left-c.left,y:u.top-c.top,scaleX:u.width/c.width,scaleY:u.height/c.height};(p.x||p.y)&&l(p)}}r!==a.current&&(a.current=r)},[t,r,o,s]),f.useEffect(()=>{i&&l(null)},[i]),i}function uT(e){let{animateLayoutChanges:t=oT,attributes:r,disabled:o,data:s,getNewIndex:i=rT,id:l,strategy:a,resizeObserverConfig:u,transition:c=sT}=e;const{items:p,containerId:m,activeIndex:g,disabled:h,disableTransforms:x,sortedRects:v,overIndex:y,useDragOverlay:b,strategy:w}=f.useContext(Ex),C=cT(o,h),_=p.indexOf(l),k=f.useMemo(()=>({sortable:{containerId:m,index:_,items:p},...s}),[m,s,_,p]),E=f.useMemo(()=>p.slice(p.indexOf(l)),[p,l]),{rect:R,node:j,isOver:D,setNodeRef:I}=QA({id:l,data:k,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...u}}),{active:B,activatorEvent:U,activeNodeRect:K,attributes:$,setNodeRef:S,listeners:T,isDragging:M,over:H,setActivatorNodeRef:z,transform:fe}=VA({id:l,data:k,attributes:{...lT,...r},disabled:C.draggable}),Oe=kR(I,S),we=!!B,Le=we&&!x&&Bi(g)&&Bi(y),Ae=!b&&M,Je=Ae&&Le?fe:null,Z=Le?Je??(a??w)({rects:v,activeNodeRect:K,activeIndex:g,overIndex:y,index:_}):null,ue=Bi(g)&&Bi(y)?i({id:l,items:p,activeIndex:g,overIndex:y}):_,pe=B?.id,X=f.useRef({activeId:pe,items:p,newIndex:ue,containerId:m}),he=p!==X.current.items,ce=t({active:B,containerId:m,isDragging:M,isSorting:we,id:l,index:_,items:p,newIndex:X.current.newIndex,previousItems:X.current.items,previousContainerId:X.current.containerId,transition:c,wasDragging:X.current.activeId!=null}),ze=aT({disabled:!ce,index:_,node:j,rect:R});return f.useEffect(()=>{we&&X.current.newIndex!==ue&&(X.current.newIndex=ue),m!==X.current.containerId&&(X.current.containerId=m),p!==X.current.items&&(X.current.items=p)},[we,ue,m,p]),f.useEffect(()=>{if(pe===X.current.activeId)return;if(pe!=null&&X.current.activeId==null){X.current.activeId=pe;return}const Ct=setTimeout(()=>{X.current.activeId=pe},50);return()=>clearTimeout(Ct)},[pe]),{active:B,activeIndex:g,attributes:$,data:k,rect:R,index:_,newIndex:ue,items:p,isOver:D,isSorting:we,isDragging:M,listeners:T,node:j,overIndex:y,over:H,setNodeRef:Oe,setActivatorNodeRef:z,setDroppableNodeRef:I,setDraggableNodeRef:S,transform:ze??Z,transition:qe()};function qe(){if(ze||he&&X.current.newIndex===_)return iT;if(!(Ae&&!Vd(U)||!c)&&(we||ce))return zs.Transition.toString({...c,property:Rx})}}function cT(e,t){var r,o;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e?.draggable)!=null?r:t.draggable,droppable:(o=e?.droppable)!=null?o:t.droppable}}ye.Down,ye.Right,ye.Up,ye.Left;function mi({onClick:e}){return d.jsx(ke,{icon:"clear",variant:"flat",size:"compact",tooltip:"Remove",onClick:e})}const Nn={main:{display:"mly78zum5",alignItems:"mly6s0dn4",justifyContent:"mly1nhvcw1",gap:"mly1jnr06f",rowGap:null,columnGap:null,cursor:"mly1ypdohk","--mlyvpnzvp":"mly11ogjb6 mly157rht3",$$css:!0},hoverActions:{display:"mly2b4tyj",flexShrink:"mly2lah0s",$$css:!0},hoverOpen:{display:"mly3nfvp2",$$css:!0}},dt={content:{background:"mly1b4wx6v",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,borderWidth:"mlymkeg23",borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,boxShadow:"mlyx2l43u",fontFamily:"mly6icuqf",margin:"mlykib98w",marginInline:null,marginInlineStart:null,marginLeft:null,marginInlineEnd:null,marginRight:null,marginBlock:null,marginTop:null,marginBottom:null,maxHeight:"mly3d5gib",display:"mly78zum5",flexDirection:"mlydt5ytf",$$css:!0},item:{alignItems:"mly6s0dn4",color:"mly1q8pm5h mlyqweix6",padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,cursor:"mlyt0e3qv",userSelect:"mly87ps6o",display:"mly78zum5",justifyContent:"mly1qughib",borderRadius:"mly18zih8k",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},clickable:{backgroundColor:"mlyk1j4u7",$$css:!0},label:{display:"mly78zum5",alignItems:"mly6s0dn4",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},tooltip:{$$css:!0}},_p='#" ',Ax=e=>{const t=e.filter(r=>r.value.startsWith(_p)).map(r=>r.value.slice(_p.length).trim());if(t.length)return t.join(`
|
|
282
|
-
`)},dT="#NO_UI",e0=e=>!!e.find(r=>r.value.startsWith(dT));function Sp(e){return e.kind==="join"?3:e.kind==="view"?2:e.kind==="dimension"?1:0}function fT(e){return e.sort((t,r)=>{const o=Sp(t),s=Sp(r);return o===s?t.name.localeCompare(r.name):s-o})}const kp=["fieldName","fieldPath","fieldValue","fieldType","fieldRange","weight"];function Tx(e){return new Set([...kp,...e.schema.fields.map(r=>r.name)]).size===kp.length}function jx(e){return e instanceof J.ASTArrowQueryDefinition?e.view:e.definition}function Pr(e){return e?jx(e).getInputSchema():{fields:[]}}function fr(e){return!e0(e.annotations??[])}function t0(e,t,r=[]){if(!e.find(s=>s.name===t))return t;if(r.length){const s=[...r];for(;s.length;)if(t=`${s.pop()} ${t}`,!e.find(l=>l.name===t))return t}let o=2;for(;e.find(s=>s.name===`${t} ${o}`);)o++;return`${t} ${o}`}function pT({field:e}){if(e.kind==="view")return d.jsx(er,{label:"view",icon:"view_filled",color:"purple",customStyle:$i.noBackground});if(e.kind==="dimension")return d.jsx(er,{label:"dimension",icon:ol(e),color:"cyan",customStyle:$i.noBackground});if(e.kind==="measure")return d.jsx(er,{label:"measure",icon:ol(e),color:"green",customStyle:$i.noBackground});if(e.kind==="join")return d.jsx(er,{label:"join",icon:ol(e),color:"gray",customStyle:$i.noBackground})}const $i={noBackground:{backgroundColor:"mlyjbqb8w",$$css:!0}};var n0="Dialog",[Dx,
|
|
282
|
+
`)},dT="#NO_UI",e0=e=>!!e.find(r=>r.value.startsWith(dT));function Sp(e){return e.kind==="join"?3:e.kind==="view"?2:e.kind==="dimension"?1:0}function fT(e){return e.sort((t,r)=>{const o=Sp(t),s=Sp(r);return o===s?t.name.localeCompare(r.name):s-o})}const kp=["fieldName","fieldPath","fieldValue","fieldType","fieldRange","weight"];function Tx(e){return new Set([...kp,...e.schema.fields.map(r=>r.name)]).size===kp.length}function jx(e){return e instanceof J.ASTArrowQueryDefinition?e.view:e.definition}function Pr(e){return e?jx(e).getInputSchema():{fields:[]}}function fr(e){return!e0(e.annotations??[])}function t0(e,t,r=[]){if(!e.find(s=>s.name===t))return t;if(r.length){const s=[...r];for(;s.length;)if(t=`${s.pop()} ${t}`,!e.find(l=>l.name===t))return t}let o=2;for(;e.find(s=>s.name===`${t} ${o}`);)o++;return`${t} ${o}`}function pT({field:e}){if(e.kind==="view")return d.jsx(er,{label:"view",icon:"view_filled",color:"purple",customStyle:$i.noBackground});if(e.kind==="dimension")return d.jsx(er,{label:"dimension",icon:ol(e),color:"cyan",customStyle:$i.noBackground});if(e.kind==="measure")return d.jsx(er,{label:"measure",icon:ol(e),color:"green",customStyle:$i.noBackground});if(e.kind==="join")return d.jsx(er,{label:"join",icon:ol(e),color:"gray",customStyle:$i.noBackground})}const $i={noBackground:{backgroundColor:"mlyjbqb8w",$$css:!0}};var n0="Dialog",[Dx,iL]=Kt(n0),[mT,Jt]=Dx(n0),Lx=e=>{const{__scopeDialog:t,children:r,open:o,defaultOpen:s,onOpenChange:i,modal:l=!0}=e,a=f.useRef(null),u=f.useRef(null),[c=!1,p]=dr({prop:o,defaultProp:s,onChange:i});return d.jsx(mT,{scope:t,triggerRef:a,contentRef:u,contentId:jt(),titleId:jt(),descriptionId:jt(),open:c,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(m=>!m),[p]),modal:l,children:r})};Lx.displayName=n0;var Nx="DialogTrigger",hT=f.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,s=Jt(Nx,r),i=ae(t,s.triggerRef);return d.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":s0(s.open),...o,ref:i,onClick:q(e.onClick,s.onOpenToggle)})});hT.displayName=Nx;var r0="DialogPortal",[gT,Mx]=Dx(r0,{forceMount:void 0}),Ix=e=>{const{__scopeDialog:t,forceMount:r,children:o,container:s}=e,i=Jt(r0,t);return d.jsx(gT,{scope:t,forceMount:r,children:f.Children.map(o,l=>d.jsx(Qe,{present:r||i.open,children:d.jsx(To,{asChild:!0,container:s,children:l})}))})};Ix.displayName=r0;var Ol="DialogOverlay",Ox=f.forwardRef((e,t)=>{const r=Mx(Ol,e.__scopeDialog),{forceMount:o=r.forceMount,...s}=e,i=Jt(Ol,e.__scopeDialog);return i.modal?d.jsx(Qe,{present:o||i.open,children:d.jsx(xT,{...s,ref:t})}):null});Ox.displayName=Ol;var xT=f.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,s=Jt(Ol,r);return d.jsx(Qs,{as:lr,allowPinchZoom:!0,shards:[s.contentRef],children:d.jsx(ee.div,{"data-state":s0(s.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Dr="DialogContent",Px=f.forwardRef((e,t)=>{const r=Mx(Dr,e.__scopeDialog),{forceMount:o=r.forceMount,...s}=e,i=Jt(Dr,e.__scopeDialog);return d.jsx(Qe,{present:o||i.open,children:i.modal?d.jsx(yT,{...s,ref:t}):d.jsx(vT,{...s,ref:t})})});Px.displayName=Dr;var yT=f.forwardRef((e,t)=>{const r=Jt(Dr,e.__scopeDialog),o=f.useRef(null),s=ae(t,r.contentRef,o);return f.useEffect(()=>{const i=o.current;if(i)return Jl(i)},[]),d.jsx(Fx,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=r.triggerRef.current)==null||l.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,a=l.button===0&&l.ctrlKey===!0;(l.button===2||a)&&i.preventDefault()}),onFocusOutside:q(e.onFocusOutside,i=>i.preventDefault())})}),vT=f.forwardRef((e,t)=>{const r=Jt(Dr,e.__scopeDialog),o=f.useRef(!1),s=f.useRef(!1);return d.jsx(Fx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,a;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(o.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),o.current=!1,s.current=!1},onInteractOutside:i=>{var l,a;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=i.target;((a=r.triggerRef.current)==null?void 0:a.contains(u))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),Fx=f.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,...l}=e,a=Jt(Dr,r),u=f.useRef(null),c=ae(t,u);return Ql(),d.jsxs(d.Fragment,{children:[d.jsx(Ks,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:i,children:d.jsx(Eo,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":s0(a.open),...l,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(bT,{titleId:a.titleId}),d.jsx(CT,{contentRef:u,descriptionId:a.descriptionId})]})]})}),o0="DialogTitle",Bx=f.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,s=Jt(o0,r);return d.jsx(ee.h2,{id:s.titleId,...o,ref:t})});Bx.displayName=o0;var $x="DialogDescription",zx=f.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,s=Jt($x,r);return d.jsx(ee.p,{id:s.descriptionId,...o,ref:t})});zx.displayName=$x;var qx="DialogClose",Wx=f.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,s=Jt(qx,r);return d.jsx(ee.button,{type:"button",...o,ref:t,onClick:q(e.onClick,()=>s.onOpenChange(!1))})});Wx.displayName=qx;function s0(e){return e?"open":"closed"}var Gx="DialogTitleWarning",[lL,Ux]=fy(Gx,{contentName:Dr,titleName:o0,docsSlug:"dialog"}),bT=({titleId:e})=>{const t=Ux(Gx),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
283
283
|
|
|
284
284
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
285
285
|
|
|
286
286
|
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},wT="DialogDescriptionWarning",CT=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ux(wT).contentName}}.`;return f.useEffect(()=>{var s;const i=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},Yx=Lx,Hx=Ix,Vx=Ox,Xx=Px,Zx=Bx,Kx=zx,_T=Wx;const ve={left:{display:"mly78zum5",justifyContent:"mly1lvf691",$$css:!0},right:{display:"mly78zum5",justifyContent:"mly1rfj78v",$$css:!0},heading:{gridColumn:"mly623te4",gridColumnStart:null,gridColumnEnd:null,fontWeight:"mly117nqv4",$$css:!0},label:{whiteSpace:"mlyuxw1ft",$$css:!0},divider:{gridColumn:"mly1a80n4u",gridColumnStart:null,gridColumnEnd:null,borderTop:"mlye536se",borderTopWidth:null,borderTopStyle:null,borderTopColor:null,$$css:!0},editor:{display:"mly78zum5",flexDirection:"mlydt5ytf",gap:"mly167g77z",rowGap:null,columnGap:null,overflow:"mlyb3r6kr",overflowX:null,overflowY:null,$$css:!0},editorGrid:{display:"mlyrvj5dj",gridTemplateColumns:"mly16kridx",gridAutoRows:"mlysd5ean",gap:"mly167g77z",rowGap:null,columnGap:null,overflowY:"mly1odjw0f",$$css:!0},editorRow:{display:"mly78zum5",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editorCell:{flexGrow:"mly1iyjqo2",$$css:!0},input:{border:"mly27xtdb",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,color:"mlyizdh9v",padding:"mly34lxi1",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0},card:{maxWidth:"mly1dc814f",$$css:!0},infoTrigger:{display:"mly3nfvp2",alignItems:"mly1071x5a",justifyContent:"mlyl56j7k",paddingRight:"mlyy13l1i",paddingInlineStart:null,paddingInlineEnd:null,paddingTop:"mly1iorvi4",$$css:!0}};function i0({children:e,customStyle:t}){return d.jsx("div",{...A.props(ST.container,Y.body,t),children:e})}const ST={container:{boxShadow:"mly5n1uv4",backgroundColor:"mly12peec7",borderRadius:"mly4pepcl",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,padding:"mlyc7ga6q",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,display:"mly78zum5",flexDirection:"mlydt5ytf",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0}};function pr({info:e}){return d.jsxs(Mo,{children:[d.jsx(Io,{asChild:!0,children:d.jsx("div",{...A.props(ve.infoTrigger,Y.body),children:d.jsx(ie,{name:"info",color:"disabled"})})}),d.jsx(Oo,{children:d.jsx(Po,{side:"right",align:"start",children:d.jsx(i0,{customStyle:ve.card,children:e})})})]})}function Qx(e,t){f.useEffect(()=>{const r=Array.isArray(e)?e:[e];let o=!1;const s=(u,c)=>!u.current||c.target instanceof Element&&u.current.contains(c.target),i=u=>r.some(c=>s(c,u)),l=u=>{!o||i(u)||(t(u),o=!1)},a=u=>{i(u)||(o=!0)};return document.addEventListener("mouseup",l),document.addEventListener("mousedown",a),()=>{document.removeEventListener("mouseup",l),document.removeEventListener("mousedown",a)}},[e,t])}const hi=({values:e,setValues:t,autoFocus:r,placeholder:o,type:s="text",value:i,setValue:l,focusElement:a,color:u=Fo,customStyle:c})=>{const[p,m]=f.useState(""),[g,h]=f.useState(!1),x=f.useRef(null),v=f.useRef(null),[y,b]=f.useState(void 0),w=f.useRef([]),C=i||p,_=l||m,k=f.useCallback(D=>{var I;const B=[...e];B.splice(D,1),t(B),y===0?e.length===1?(b(void 0),(I=x.current)==null||I.focus()):b(0):b(D-1)},[y,t,e]),E=f.useMemo(()=>(w.current=new Array(e.length),e.map((D,I)=>d.jsx(kT,{color:u,onClick:()=>{b(I)},onDelete:()=>k(I),forwardRef:B=>{w.current[I]=B},children:D},D))),[u,k,e]);f.useEffect(()=>{var D;y!==void 0&&((D=w.current[y])==null||D.focus())},[E,y]);const R=D=>{var I,B;D.key==="Backspace"?y!==void 0&&k(y):D.key==="ArrowRight"?y===e.length-1?(b(void 0),(I=x.current)==null||I.focus()):y!==void 0&&b(y+1):D.key==="ArrowLeft"?y!==void 0&&y>0&&b(y-1):(B=x.current)==null||B.focus()},j=()=>{C.length>0&&!e.includes(C)&&(t([...e,C]),_(""))};return Qx(a?[v,a]:v,()=>{h(!1),j()}),d.jsx("div",{...A.props(Y.body,xc.main),children:d.jsxs("div",{...A.props(xc.content,c),onKeyUp:R,onClick:()=>{var D;return(D=x.current)==null?void 0:D.focus()},ref:v,children:[E,d.jsx("input",{className:"mly1gs6z28 mly1a2a7pz mly6icuqf mlyif65rj mlyayvuls mly83z2og mly1onzeue mly195ery5 mly1iyjqo2",ref:x,type:s,placeholder:e.length===0?o:"",value:C,size:1,onChange:D=>{_(D.target.value)},onKeyDown:D=>{D.key==="Enter"&&C!==""&&(j(),D.stopPropagation(),D.preventDefault())},onKeyUp:D=>{var I,B,U,K;D.key==="Backspace"?C===""&&e.length>0&&(j(),(I=x.current)==null||I.blur(),b(e.length-1)):D.key==="ArrowLeft"&&(((B=x.current)==null?void 0:B.selectionStart)===0||((U=x.current)==null?void 0:U.selectionStart)===null)&&(j(),(K=x.current)==null||K.blur(),b(e.length-1),D.preventDefault(),D.stopPropagation())},onFocus:()=>{h(!0),b(void 0)},autoFocus:r})]})})},kT=({children:e,color:t=Fo,forwardRef:r,onClick:o,onDelete:s})=>d.jsxs("div",{onClick:o,tabIndex:0,ref:r,...A.props(xc.pill,ET[t]),children:[e,d.jsx("div",{title:"Remove",className:"mly3nfvp2",children:d.jsx(vm,{onClick:()=>s(),className:"mly6jxa94 mly1v9usgg"})})]}),xc={main:{borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,border:"mlyvckdp7",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mlybsehbd",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,display:"mlyrvj5dj",minHeight:"mly2lwn1j",overflow:"mlyysyzu8",overflowX:null,overflowY:null,$$css:!0},content:{outline:"mly1a2a7pz",outlineColor:null,outlineOffset:null,outlineStyle:null,outlineWidth:null,display:"mly78zum5",flexWrap:"mly1a02dak",gap:"mly1ed6fcf",rowGap:null,columnGap:null,borderColor:"mly1akygb0 mlyetl2wx",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},pill:{backgroundColor:"mlyy9rfsq",borderRadius:"mly1sxf85j",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,color:"mly1xre2ib",display:"mly78zum5",alignItems:"mly6s0dn4",gap:"mly1nejdyq",rowGap:null,columnGap:null,padding:"mly1e41zw8",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,textTransform:"mly6mezaz",cursor:"mly1ypdohk",height:"mly1qx5ct2",whiteSpace:"mlyuxw1ft",$$css:!0}},ET={default:{"--mlyvygx4q":"mly1izbou4","--mly13n7235":"mly8bgh0r",$$css:!0},purple:{"--mlyvygx4q":"mly1f8soc4","--mly13n7235":"mly1r5zvhd",$$css:!0},green:{"--mlyvygx4q":"mlyf8wvcd","--mly13n7235":"mly1u6t2w6",$$css:!0},cyan:{"--mlyvygx4q":"mlyrtwgpv","--mly13n7235":"mlys5r2en",$$css:!0}};function RT({view:e,name:t,path:r,current:o,option:s,updateCurrent:i}){return d.jsxs(d.Fragment,{children:[d.jsx("div",{...A.props(ve.label,ve.left),children:d.jsxs("label",{children:[s.title??t,":"]})}),d.jsx("div",{}),s.description?d.jsx(pr,{info:s.description}):d.jsx("div",{}),s.oneOf.map((l,a)=>{switch(l.type){case"string":return d.jsx(AT,{view:e,name:t,path:r,updateCurrent:i,current:o,option:l},a);case"number":return d.jsx(TT,{view:e,name:t,path:r,updateCurrent:i,current:o,option:l},a);case"array":return d.jsx(jT,{view:e,name:t,path:r,updateCurrent:i,current:o,option:l},a)}return null})]})}function AT({path:e,current:t,updateCurrent:r,option:o}){const s=typeof t=="string",[i,l]=f.useState(s?t:"");return o.enum?d.jsxs(d.Fragment,{children:[d.jsx("div",{...A.props(ve.left),children:d.jsx("input",{type:"radio",checked:s&&o.enum.includes(t),onChange:({target:{checked:a}})=>{a&&r(e,i)}})}),o.enum.length>1?d.jsx(yn,{value:i,options:o.enum.map(a=>({label:a,value:a})),onChange:a=>{l(a),r(e,a)}}):d.jsx("div",{children:o.enum[0]}),d.jsx("div",{})]}):d.jsxs(d.Fragment,{children:[d.jsx("div",{...A.props(ve.left),children:d.jsx("input",{type:"radio",checked:s,onChange:({target:{checked:a}})=>{a&&r(e,i)}})}),d.jsx("input",{value:i,onChange:({target:{value:a}})=>{l(a),r(e,a)}}),d.jsx("div",{})]})}function TT({path:e,current:t,updateCurrent:r,option:o}){const s=typeof t=="number",[i,l]=f.useState(s?t:o.minimum??0);return d.jsxs(d.Fragment,{children:[d.jsx("div",{...A.props(ve.left),children:d.jsx("input",{type:"radio",checked:s,onChange:({target:{checked:a}})=>{a&&r(e,i)}})}),d.jsx("input",{type:"number",min:o.minimum,max:o.maximum,value:i,onChange:({target:{valueAsNumber:a}})=>{l(i),r(e,a)},...A.props(ve.input)}),d.jsx("div",{})]})}function jT({path:e,current:t,updateCurrent:r}){const o=Array.isArray(t),[s,i]=f.useState(o?t:[]);return d.jsxs(d.Fragment,{children:[d.jsx("div",{...A.props(ve.left),children:d.jsx("input",{type:"radio",checked:o,onChange:({target:{checked:l}})=>{l&&r(e,s)}})}),d.jsx(hi,{values:s,setValues:l=>{i(l),r(e,l)}}),d.jsx("div",{})]})}function DT({name:e,path:t,current:r,option:o,updateCurrent:s}){return d.jsxs(d.Fragment,{children:[d.jsx("div",{...A.props(ve.left,ve.label),children:d.jsxs("label",{children:[o.title??e,":"]})}),d.jsx(hi,{values:r,setValues:i=>{s(t,i)}}),o.description?d.jsx(pr,{info:o.description}):d.jsx("div",{})]})}function LT({name:e,path:t,current:r,option:o,updateCurrent:s}){return d.jsxs(d.Fragment,{children:[d.jsx("div",{...A.props(ve.left,ve.label),children:d.jsxs("label",{children:[o.title??e,":"]})}),d.jsx("input",{value:r,type:"number",min:o.minimum,max:o.maximum,onChange:({target:{valueAsNumber:i}})=>{s(t,i)},...A.props(ve.input)},e),o.description?d.jsx(pr,{info:o.description}):d.jsx("div",{})]})}function NT({name:e,path:t,current:r,option:o,updateCurrent:s}){return o.enum?d.jsxs(d.Fragment,{children:[f.createElement("div",{...A.props(ve.left,ve.label),key:`${e}-label`},d.jsxs("label",{children:[o.title??e,":"]})),d.jsx(yn,{value:r,options:o.enum.map(i=>({label:i,value:i})),onChange:i=>{s(t,i)}},e),o.description?d.jsx(pr,{info:o.description}):d.jsx("div",{})]}):d.jsxs(d.Fragment,{children:[f.createElement("div",{...A.props(ve.left,ve.label),key:`${e}-label`},d.jsxs("label",{children:[o.title??e,":"]})),d.jsx("input",{value:r,onChange:({target:{value:i}})=>{s(t,i)}},e),o.description?d.jsx(pr,{info:o.description}):d.jsx("div",{})]})}function MT({name:e,path:t,current:r,option:o,updateCurrent:s}){return d.jsxs(d.Fragment,{children:[d.jsx("div",{...A.props(ve.left),children:d.jsxs("label",{...A.props(ve.label),htmlFor:`${e}-checkbox`,children:[o.title??e,":"]},`${e}-label`)}),d.jsx("div",{...A.props(ve.right),children:d.jsx("input",{type:"checkbox",checked:r,onChange:({target:{checked:i}})=>{s(t,i)},id:`${e}-checkbox`})}),o.description?d.jsx(pr,{info:o.description}):d.jsx("div",{})]})}function IT({view:e,name:t,path:r,current:o,option:s,updateCurrent:i}){const[l,a]=f.useState(""),u=f.useRef(null),p=(o??[]).map(v=>{try{return JSON.parse(v)[0]}catch(y){return console.warn("Failed to parse field",v,y),""}}),m=(v,y)=>{const b=y.map(w=>JSON.stringify([w]));i(v,b)},g=l.toLocaleLowerCase(),x=e.definition.getOutputSchema().fields.filter(v=>v.name.toLocaleLowerCase().includes(g)).filter(v=>!p.includes(v.name)).filter(v=>{var y;return!("fieldTypes"in s.items)||((y=s.items.fieldTypes)==null?void 0:y.includes(v.type.kind))});return d.jsxs(d.Fragment,{children:[d.jsx("div",{...A.props(ve.left,ve.label),children:d.jsxs("label",{children:[s.title??t,":"]})}),d.jsxs("div",{style:{minHeight:0,display:"grid",gap:4},children:[d.jsx(hi,{values:p,setValues:v=>{m(r,v)},value:l,setValue:a,focusElement:u}),d.jsx(OT,{ref:u,fields:x,search:l,onClick:v=>{m(r,[...p,v])}})]}),s.description?d.jsx(pr,{info:s.description}):d.jsx("div",{})]})}function OT({ref:e,fields:t,search:r,onClick:o}){if(t.length)return d.jsx("div",{ref:e,className:"mly78zum5 mly1a02dak mly1jnr06f",children:t.map(s=>d.jsx(jr,{field:s,onClick:()=>o(s.name),tooltip:d.jsx(Ws,{field:s,path:[]}),tooltipProps:{side:"right",align:"start",sideOffset:4,alignOffset:24}},s.name))});if(r)return d.jsx("div",{"data-disabled":"true",children:"No matching fields"})}function Jx({view:e,name:t,path:r,current:o,option:s,updateCurrent:i}){const[l,a]=f.useState(r.length===0);return d.jsxs(d.Fragment,{children:[t?d.jsxs(d.Fragment,{children:[d.jsxs("div",{...A.props(ve.label,ve.heading),children:[d.jsx("label",{children:s.title??t}),s.description?d.jsx(pr,{info:s.description}):null]}),d.jsx(ke,{variant:"flat",size:"compact",onClick:()=>a(!l),icon:l?"chevronDown":"chevronRight",tooltip:l?"Collapse":"Expand"})]}):null,l?Object.entries(s.properties).map(([u,c])=>{const p=[...r,t,u].join(".");if(c.type==="boolean")return d.jsx(MT,{view:e,name:u,path:[...r,u],option:c,current:o[u],updateCurrent:i},p);if(c.type==="string")return d.jsx(NT,{view:e,name:u,path:[...r,u],option:c,current:o[u],updateCurrent:i},p);if(c.type==="number")return d.jsx(LT,{view:e,name:u,path:[...r,u],option:c,current:o[u],updateCurrent:i},p);if(c.type==="object")return d.jsx(Jx,{view:e,name:u,path:[...r,u],option:c,current:o[u]??{},updateCurrent:i},p);if(c.type==="array"){if(c.items.type==="string")return"subtype"in c.items&&c.items.subtype==="field"?d.jsx(IT,{view:e,name:u,path:[...r,u],option:c,current:o[u]??[],updateCurrent:i},p):d.jsx(DT,{view:e,name:u,path:[...r,u],option:c,current:o[u]??[],updateCurrent:i},p);console.warn("Unsupported array type",c.items.type)}else if(c.type==="oneOf")return d.jsx(RT,{view:e,name:u,path:[...r,u],option:c,current:o[u],updateCurrent:i},p);return null}):null,d.jsx("div",{...A.props(ve.divider)})]})}function PT({rootQuery:e,view:t,plugin:r,setOpen:o}){const{setQuery:s}=f.useContext(be),[i,l]=f.useState(r.getSettings());console.info("RendererEditor current settings:",i);const a=r.getSchema(),u=(c,p)=>{const m={...i};let g=m;for(let h=0;h<c.length-1;h++)c[h]in g||(g[c[h]]={}),g=g[c[h]];g[c[c.length-1]]=p,l(m)};return d.jsxs("div",{...A.props(ve.editor),children:[d.jsx("div",{...A.props(ve.editorGrid),children:d.jsx(Jx,{view:t,name:"",path:[],option:a,current:i,updateCurrent:u})}),d.jsxs("div",{...A.props(ve.editorRow),children:[d.jsx(ke,{label:"Cancel",onClick:()=>{o(!1)},customStyle:ve.editorCell}),d.jsx(ke,{variant:"primary",label:"Apply",onClick:()=>{const p=r.settingsToTag(i).toString(),m=t.getOrAddAnnotations(),g=m.items.find(h=>h.value.startsWith(dc+"viz"));g&&m.remove(g),t.getOrAddAnnotations().add(new J.ASTAnnotation({value:p})),s?.(e.build()),o(!1)},customStyle:ve.editorCell})]})]})}const rt={displayNone:{display:"mly1s85apg",$$css:!0},overlay:{background:"mly5uxqc1",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,position:"mlyixxii4",top:"mly13vifvy",left:"mlyu96u03",right:"mly3m8u43",insetInlineStart:null,insetInlineEnd:null,bottom:"mly1ey2m1c",display:"mlyrvj5dj",placeItems:"mly1ku5rj1",alignItems:null,justifyItems:null,zIndex:"mly11uqc5h",$$css:!0},title:{fontSize:"mly1j61zf2",margin:"mly1ghz6dp",marginInline:null,marginInlineStart:null,marginLeft:null,marginInlineEnd:null,marginRight:null,marginBlock:null,marginTop:null,marginBottom:null,display:"mly78zum5",justifyContent:"mly1qughib",alignItems:"mly6s0dn4",borderBottom:"mlyllpv0l",borderBottomWidth:null,borderBottomStyle:null,borderBottomColor:null,lineHeight:"mly1rl49lg",$$css:!0},close:{border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,background:"mly1md70p1 mly14hn1a8 mlywghvya",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0},content:{display:"mly78zum5",flexDirection:"mlydt5ytf",boxShadow:"mly5n1uv4",backgroundColor:"mly12peec7",borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,minWidth:"mlylm99nl",maxWidth:"mly1jkqq1h",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editor:{width:"mlyqyf9gi",display:"mly78zum5",flexDirection:"mlydt5ytf",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editorRow:{display:"mly78zum5",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editorCell:{flexGrow:"mly1iyjqo2",$$css:!0},input:{border:"mly2yh2zd",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,color:"mlyizdh9v",padding:"mly9cpjcd",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,borderRadius:"mly1sxf85j",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0}};function FT({rootQuery:e,plugin:t,view:r,customStyle:o,open:s,setOpen:i}){return!t||!s?null:d.jsx(Yx,{onOpenChange:l=>i(l),open:s,children:d.jsx(Hx,{children:d.jsx(Vx,{...A.props(rt.overlay),children:d.jsxs(Xx,{...A.props(Y.body,rt.content,BT.content,o),children:[d.jsxs(Zx,{...A.props(rt.title),children:["Visualization Settings",d.jsx(_T,{...A.props(rt.close),children:d.jsx(ie,{name:"clear"})})]}),d.jsx(Kx,{...A.props(rt.displayNone),children:"Edit visualization parameters"}),d.jsx(PT,{rootQuery:e,view:r,plugin:t,setOpen:i})]})})})})}const BT={content:{maxWidth:"mly14zcgw3",width:"mly14rvwrp",maxHeight:"mly1l4ul0t",$$css:!0}};function e2({rootQuery:e,view:t}){const{setQuery:r}=f.useContext(be),o=f.useMemo(()=>new _u.MalloyRenderer,[]),[s,i]=f.useState("table"),[l,a]=f.useState(),[u,c]=f.useState(""),[p,m]=f.useState(!1),g=t.getTag().toString();f.useEffect(()=>{var y;c("");const b=o.createViz({onError:E=>{console.error("Malloy render error",E),c(E.message)}});b.setResult({schema:t.definition.getOutputSchema(),annotations:g.split(`
|
|
287
|
-
`).map(E=>({value:E})),connection_name:""});const w=b.getMetadata();if(w){const E=b.getActivePlugin(w.getRootField().key);if(E){if(_u.isCoreVizPluginInstance(E)){i(E.name),a(E);return}E.name==="error"&&c(E.getMetadata().message)}}const C=t.getTag(),k=((y=t.getTag(dc).tag("viz"))==null?void 0:y.text())??yR(Gd(C)??"table");i(k),a(void 0)},[o,t,g]);const h=y=>{t.setTagProperty(["viz"],y,dc),r?.(e.build())},x=mR.map(y=>({icon:d.jsx(ie,{name:`viz_${y}`}),label:t2(y),value:y,onClick:()=>h(y)})),v=[d.jsx(sa,{customStyle:zi.first,icon:`viz_${s}`,value:s,items:x,onChange:y=>h(y)},"first")];return l&&v.push(d.jsx(Be,{icon:"gear",onClick:()=>m(!0),customStyle:zi.trigger,tooltip:"Edit Settings..."},"gear")),u&&v.push(d.jsx(Be,{icon:"warning",tooltip:u,customStyle:zi.trigger})),d.jsxs(d.Fragment,{children:[d.jsx(Zs,{customStyle:zi.group,children:v}),d.jsx(FT,{open:p,setOpen:m,rootQuery:e,plugin:l,view:t})]})}const zi={trigger:{height:"mly1ktj5wk",$$css:!0},group:{width:"mlyh8yej3",gridTemplateColumns:"mly52fmzj",$$css:!0},first:{justifyContent:"mlylqzeqv",$$css:!0}};function t2(e){return e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function $T({annotations:e}){const{tag:t}=Q2.Tag.fromTagLines(e.map(o=>o.value)),r=Gd(t)??"table";return d.jsx(Be,{label:t2(r),icon:`viz_${r}`})}function l0({viewInfo:e,isCompact:t,style:r}){const o=e.schema.fields.filter(s=>s.kind==="dimension");return d.jsx("div",{...A.props(yc.attributeTableContainer,r),children:d.jsx("table",{className:"mly1mwwwfo mly9f619 mlyh8yej3 mly5yr21d",children:d.jsxs("tbody",{children:[d.jsx(Ep,{attribute:"chart type",children:d.jsx("div",{className:"mly1rg5ohu",children:d.jsx($T,{annotations:e.annotations||[]})})}),d.jsx(Ep,{attribute:"output",children:o.map(s=>d.jsx("span",{children:d.jsx(jr,{field:s,size:t?"compact":"default"})},`${s.kind}::${s.name}`))})]})})})}function Ep({attribute:e,children:t}){return d.jsxs("tr",{className:"mlydpxx8g",children:[d.jsx("td",{...A.props(yc.attributeTableKeyCell,Y.supporting),children:d.jsx("div",{...A.props(yc.attributeTableKeyCellContent,Y.supporting),children:e})}),d.jsx("td",{className:"mly78zum5 mly1a02dak mly195vfkc",children:t})]})}const yc={attributeTableContainer:{padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mly1q4ynmn",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,backgroundColor:"mly12nb83b",boxSizing:"mly9f619",width:"mlyh8yej3",height:"mly1m3v4wt",overflow:"mlyysyzu8",overflowX:null,overflowY:null,$$css:!0},attributeTableKeyCell:{whiteSpace:"mlyuxw1ft",width:"mly1f1nlb9",verticalAlign:"mly16dsc37",$$css:!0},attributeTableKeyCellContent:{height:"mly1fgtraw",display:"mly78zum5",alignItems:"mly6s0dn4",$$css:!0}};function zT({field:e,path:t}){const{topValues:r}=f.useContext(be),o=[...t,e.name].join("."),s=r?.find(i=>i.fieldName===o);return s?d.jsxs("div",{className:"mly12nb83b mly1iorvi4 mlyjkvuk6 mly163pfp mlyy13l1i mly12oqio5",children:[d.jsx("div",{className:"mly117nqv4",children:"Top Values"}),s.values.slice(0,6).map(i=>d.jsxs("div",{className:"mly78zum5 mly1qughib mly883omv mly6s0dn4",children:[d.jsx("div",{children:d.jsx("div",{className:"mlylyipyv mly6mezaz mlyb3r6kr mlyuxw1ft",children:i.fieldValue===null?d.jsx("span",{children:"∅"}):i.fieldValue})}),d.jsx("div",{className:"mly78zum5 mly883omv mly13a6bvl mly6s0dn4 mlyb3r6kr mly2lah0s mly9dwj6z",children:qT(i.weight)})]},i.fieldValue))]}):null}function qT(e){return e===null?"∅":e<1e3?e.toLocaleString():e<1e4?(e/1e3).toFixed(1)+"K":e<1e6?Math.floor(e/1e3).toLocaleString()+"K":e<1e7?(e/1e6).toFixed(1)+"M":Math.floor(e/1e3).toLocaleString()+"M"}function Rp({children:e,ref:t,customStyle:r,isTooltipContent:o=!1,...s}){const i=e.split(/((?:http|https):\/\/\S*)\b/),l=i.length>1,a=i.map((u,c)=>u.match(/^(http|https):/)?d.jsx("a",{href:u,...{0:{},1:{className:"mly198oq2i"}}[!!o<<0],children:u},c):u);return d.jsx("div",{ref:t,...A.props(l&&Ap.preWrap,l&&Ap.breakWord,r),...s,children:a})}const Ap={preWrap:{whiteSpace:"mly126k92a",$$css:!0},breakWord:{wordWrap:"mly1vvkbs",$$css:!0}};function n2({text:e,containerRef:t,align:r="center",side:o="top"}){const s=f.useRef(null),[i,l]=f.useState(!1),[a,u]=f.useState(!1),c=()=>(s.current&&s.current.scrollHeight>s.current.clientHeight)??!1;return d.jsxs(Mo,{open:(i||a)&&c(),children:[d.jsx(Io,{asChild:!0,children:d.jsx(Rp,{ref:s,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onPointerMove:p=>p.preventDefault(),customStyle:[Y.supporting,WT.text],children:e})}),d.jsx(Oo,{container:t?.current,children:d.jsx(Po,{side:o,align:r,children:d.jsx(Rp,{onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),isTooltipContent:!0,customStyle:[Y.body,Pn.default],children:e})})})]})}const WT={text:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,display:"mly104kibb","-webkit-line-clamp":"mly1gzmk7r","-webkit-box-orient":"mly1ua5tub",$$css:!0}};function Ws({field:e,path:t}){const{source:r}=f.useContext(be),o=f.useRef(null),s=[r?.name??"",...t].join(" > "),l=Ax(e.annotations??[])??"";let a=null;return e.kind==="view"?a=d.jsx(l0,{viewInfo:e,isCompact:!0,style:qi.viewAttributeTable}):e.kind==="dimension"&&(a=d.jsx(zT,{field:e,path:t})),d.jsxs(i0,{customStyle:qi.container,children:[d.jsxs("div",{ref:o,children:[d.jsx("div",{className:"mly12nagc",children:d.jsx(pT,{field:e})}),d.jsx("div",{...A.props(Y.supporting,qi.path),children:s}),d.jsx("div",{...A.props(Y.emphasized,qi.title),children:e.name}),l&&d.jsx(n2,{text:l,containerRef:o})]}),a&&d.jsx("div",{children:a})]})}const qi={container:{width:"mlybl57os",maxHeight:"mlyq3t0pi",$$css:!0},path:{color:"mly9dwj6z",$$css:!0},viewAttributeTable:{height:"mlyn866dk",$$css:!0},title:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0}},Re={filterDialog:{display:"mly78zum5",flexDirection:"mlydt5ytf",padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,minWidth:"mlyytlacd",maxWidth:"mly1pdpmub",gap:"mly167g77z",rowGap:null,columnGap:null,minHeight:"mly2lwn1j",maxHeight:"mly3d5gib",$$css:!0},filterDialogHeader:{fontWeight:"mly117nqv4",$$css:!0},filterTypeDropdown:{width:"mlyh8yej3",$$css:!0},buttonGroup:{display:"mly78zum5",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editor:{display:"mly78zum5",flexDirection:"mlydt5ytf",gap:"mly167g77z",rowGap:null,columnGap:null,minHeight:"mly2lwn1j",$$css:!0},editorRow:{display:"mlyrvj5dj",gridAutoFlow:"mly1mt1orb",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editorCell:{flexGrow:"mly1iyjqo2",$$css:!0},input:{border:"mly2yh2zd",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,color:"mlyizdh9v",padding:"mly9cpjcd",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,borderRadius:"mly1sxf85j",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,minWidth:"mlygc0pbm",$$css:!0}};function GT(e){return e.operator==="null"&&e.not?"-null":e.operator}function UT({filter:e,setFilter:t}){const r=GT(e),o=s=>{t(s==="-null"?{operator:"null",not:!0}:{operator:s})};return d.jsx("div",{...A.props(Re.editor),children:d.jsx(yn,{value:r,onChange:o,options:[{value:"true",label:"is true"},{value:"false",label:"is false"},{value:"null",label:"is null"},{value:"-null",label:"is not null"},{value:"false_or_null",label:"is false or null"}],customStyle:Re.filterTypeDropdown})})}function YT(e,t){const{topValues:r}=f.useContext(be);if(r&&e){let o=r;if(t){const s=r.find(i=>i.fieldName===t);s?o=[s]:o=[]}return e=e.toLowerCase(),{searchResults:o.reduce((s,i)=>(i.values.filter(l=>{var a;return((a=l.fieldValue)==null?void 0:a.toLowerCase().includes(e))??!1}).forEach(l=>{s.push({fieldValue:l.fieldValue,fieldName:i.fieldName,fieldType:"string",weight:l.weight})}),s),[]),isLoading:!1}}return{searchResults:void 0,isLoading:!1}}function r2({onClick:e,search:t,filter:r,fieldPath:o,ref:s,customStyle:i,showPath:l=!0,hideNoMatchMessage:a=!1}){const{searchResults:u}=YT(t,o),c=f.useMemo(()=>u&&u.filter(p=>p.fieldType==="string"&&p.fieldValue!==null).filter(p=>r?r(p.fieldValue??""):!0).sort((p,m)=>m.weight-p.weight).slice(0,100),[u,r]);return d.jsx("div",{ref:s,...A.props(i),children:c?.length?c.map(p=>d.jsxs("div",{role:"menuitem",tabIndex:-1,...A.props(dt.item,o2.valueItem),onClick:()=>e(p),children:[d.jsx(HT,{value:p}),l?d.jsx("div",{className:"mly1jwwhvr",children:p.fieldName}):null]},p.fieldName+":"+p.fieldValue)):t&&!a?d.jsx("div",{...A.props(dt.item),"data-disabled":"true",children:"No matching values"}):null})}function HT({value:e}){return d.jsx(Be,{label:e.fieldValue??"∅",icon:"filter",color:"purple",customStyle:o2.token})}const o2={valueItem:{height:"mly1qx5ct2",paddingTop:"mly1y1aw1k",paddingBottom:"mlywib8y2",display:"mly78zum5",justifyContent:"mly1qughib",cursor:"mly1ypdohk",$$css:!0},token:{cursor:"mly1ypdohk",$$css:!0}},_s={is_equal_to:{operator:"="},starts_with:{operator:"starts"},ends_with:{operator:"ends"},contains:{operator:"contains"},matches:{operator:"~"},is_blank:{operator:"empty"},is_null:{operator:"null"},is_not_equal_to:{operator:"=",not:!0},does_not_start_with:{operator:"starts",not:!0},does_not_end_with:{operator:"ends",not:!0},does_not_contain:{operator:"contains",not:!0},does_not_match:{operator:"~",not:!0},is_not_blank:{operator:"empty",not:!0},is_not_null:{operator:"null",not:!0}};function VT(e){for(const t in _s){const r=t,o=_s[r],s="not"in e?e.not:!1,i="not"in o?o.not:!1;if(o.operator===e.operator&&i===s)return r}throw new Error(`Unhandled string filter type ${e.operator}`)}const XT=({filter:e,setFilter:t,field:r,path:o})=>{e??(e={operator:"=",values:[]});const[s,i]=f.useState(""),l=f.useRef(null),a=VT(e),[u,c]=f.useState(e),p=g=>{m(QT(u,g))},m=g=>{c(g),t(g)};return d.jsxs("div",{...A.props(Re.editor),children:[d.jsx(yn,{value:a,onChange:p,options:[{value:"is_equal_to",label:"is"},{value:"starts_with",label:"starts with"},{value:"ends_with",label:"ends with"},{value:"contains",label:"contains"},{value:"is_blank",label:"is blank"},{value:"is_null",label:"is null"},{value:"matches",label:"matches"},{value:"is_not_equal_to",label:"is not"},{value:"does_not_start_with",label:"does not start with"},{value:"does_not_end_with",label:"does not end with"},{value:"does_not_contain",label:"does not contain"},{value:"is_not_blank",label:"is not blank"},{value:"is_not_null",label:"is not null"},{value:"does_not_match",label:"does not match"}],customStyle:Re.filterTypeDropdown},"type"),u.operator==="="||u.operator==="starts"||u.operator==="ends"||u.operator==="contains"?d.jsxs(d.Fragment,{children:[d.jsx(Tp,{values:u.values,setValues:g=>m({...u,values:g}),searchValue:s,setSearchValue:i,focusElement:l},"editor"),d.jsx("div",{style:{minHeight:0,display:"grid"},children:d.jsx(r2,{ref:l,search:s,fieldPath:[...o,r.name].join("."),onClick:g=>{g.fieldValue&&(m({...u,values:[...u.values,g.fieldValue]}),i(""))},customStyle:JT.valueList,showPath:!1,filter:g=>!u.values.includes(g),hideNoMatchMessage:!0})})]}):u.operator==="~"?d.jsx(Tp,{values:u.escaped_values,setValues:g=>m({...u,escaped_values:g}),escape:!0,searchValue:s,setSearchValue:i},"editor"):null]})};function Tp({color:e,values:t,setValues:r,searchValue:o,setSearchValue:s,focusElement:i}){return d.jsx(hi,{color:e,values:t,setValues:r,value:o,setValue:s,focusElement:i})}function ZT(e){return e.replace(/(["%_^])/g,"^$1")}function KT(e){return e.replace(/\^(["%_^])/g,"$1")}function QT(e,t){const r="values"in e?e.values:"escaped_values"in e?e.escaped_values.map(KT):[];switch(t){case"is_equal_to":case"is_not_equal_to":case"starts_with":case"does_not_start_with":case"contains":case"does_not_contain":case"ends_with":case"does_not_end_with":return{..._s[t],values:r};case"is_blank":case"is_not_blank":case"is_null":case"is_not_null":return{..._s[t]};case"matches":case"does_not_match":return{..._s[t],escaped_values:r.map(ZT)}}}const JT={valueList:{maxHeight:"mly3d5gib",width:"mly1hfn5x7",overflow:"mlyysyzu8",overflowX:null,overflowY:null,$$css:!0}},jp=e=>e==="range",oo={is_equal_to:{operator:"="},is_not_equal_to:{operator:"=",not:!0},is_greater_than:{operator:">"},is_less_than:{operator:"<"},is_greater_than_or_equal_to:{operator:">="},is_less_than_or_equal_to:{operator:"<="},is_between:{operator:"range",startOperator:">=",endOperator:"<="},is_null:{operator:"null"},is_not_null:{operator:"null",not:!0}};function ej(e){for(const t in oo){const r=t,o=oo[r],s="not"in e?e.not:!1,i="not"in o?o.not:!1;if(o.operator===e.operator&&i===s)return r}throw new Error(`Unhandled number filter type ${e.operator}`)}const tj=({filter:e,setFilter:t})=>{e??(e={operator:"=",values:[]});const[r,o]=f.useState(jp(e.operator)?["0","0"]:["0"]),[s,i]=f.useState(""),l=c=>{const p=e,m=oj(e,c);m.operator!=="null"&&(!p.values||p.values.length===0)&&(m.values=["0"]),t(m)},a=ej(e);f.useEffect(()=>{if(i(""),jp(e.operator)){const c=e;o([c.startValue,c.endValue])}else{const c=e;if(c.values){let p=c.values;(!p||p.length===0)&&(p=["0"]),o(p)}else o(["0"])}},[e]);const u=c=>{o(c),c.some(m=>isNaN(parseFloat(m)))?i("Every value must be numeric."):c.length===0?i("Requires at least one numeric value."):(i(""),e.operator==="range"?t({...e,startOperator:">=",startValue:c[0],endOperator:"<=",endValue:c[1]}):t({...e,values:c}))};return d.jsxs(d.Fragment,{children:[d.jsx(yn,{value:a,onChange:l,options:[{value:"is_equal_to",label:"is"},{value:"is_not_equal_to",label:"is not"},{value:"is_greater_than",label:"is greater than"},{value:"is_less_than",label:"is less than"},{value:"is_greater_than_or_equal_to",label:"is greater than or equal to"},{value:"is_less_than_or_equal_to",label:"is less than or equal to"},{value:"is_between",label:"between"},{value:"is_null",label:"is null"},{value:"is_not_null",label:"is not null"}]}),s?d.jsx(Kl,{errorMessage:s}):null,nj(e,r,u)]})};function nj(e,t,r){switch(e.operator){case"!=":case"=":return d.jsx(rj,{values:t.map(String),setValues:o=>r(o),type:"number"});case">":case"<":case">=":case"<=":return d.jsx(vu,{value:t[0],setValue:o=>r([o]),type:"number"});case"range":return d.jsxs("div",{className:"mlyrvj5dj mly15396mt mly167g77z mlypqajaz",children:[d.jsx(vu,{value:t[0],setValue:o=>r([o,t[1]]),type:"number"}),d.jsx("span",{children:"to"}),d.jsx(vu,{value:t[1],setValue:o=>r([t[0],o]),type:"number"})]})}return null}function vu({value:e,setValue:t}){return d.jsx("input",{type:"number",value:e,onChange:r=>{t(r.target.value)},className:"mly27xtdb mly12oqio5 mlyizdh9v mly34lxi1"})}function rj({values:e,setValues:t}){return d.jsx(hi,{values:e,setValues:t,type:"number"})}function oj(e,t){const r="values"in e?e.values:[];switch(t){case"is_equal_to":case"is_not_equal_to":return{...oo[t],values:r};case"is_greater_than":case"is_less_than":case"is_greater_than_or_equal_to":case"is_less_than_or_equal_to":return{...oo[t],values:r.length>0?[r[0]]:r};case"is_null":case"is_not_null":return{...oo[t]};case"is_between":return{...oo[t],startValue:r.length>0?r[0]:"0",endValue:r.length>1?r[1]:"0"}}}function sj(e){return(e.operator==="null"||e.operator==="after"||e.operator==="before")&&e.not?`-${e.operator}`:e.operator}function ij(e,t){return e.operator==="last"||e.operator==="next"||e.operator==="in_last"?e.units:e.operator==="to"?Fi(e.fromMoment,t):e.operator==="before"?Fi(e.before,t):e.operator==="after"?Fi(e.after,t):e.operator==="in"?Fi(e.in,t):t?"second":"day"}const Dp=({filter:e,setFilter:t,isDateTime:r})=>{e??(e={operator:"last",n:"7",units:"day"});const[o,s]=f.useState(ij(e,r)),[i,l]=f.useState(e),a=m=>{u(pj(i,m,o))},u=m=>{l(m),t(m)},c=r?"second":"day",p=sj(i);return d.jsxs("div",{...A.props(Re.editor),children:[d.jsxs("div",{...A.props(Re.editorRow),children:[d.jsx(yn,{value:p,onChange:a,options:[{value:"in_last",label:"last"},{value:"last",label:"last complete"},{value:"next",label:"next complete"},{value:"-before",label:"starting"},{value:"after",label:"after"},{value:"before",label:"before"},{value:"-after",label:"through"},{value:"in",label:"is"},{value:"to",label:"between"},{value:"null",label:"null"},{value:"-null",label:"not null"}],customStyle:Re.editorCell}),lj(i,u,o,s,c)]}),aj(i,u,o,s,c)]})};function lj(e,t,r,o,s){switch(e.operator){case"in_last":case"last":case"next":return d.jsx(uj,{currentFilter:e,maxLevel:s,updateFilter:t,units:r,setUnits:o});case"after":case"before":case"to":case"in":return d.jsx(cj,{currentFilter:e,maxLevel:s,updateFilter:t,units:r,setUnits:o})}return null}function aj(e,t,r,o,s){switch(e.operator){case"after":case"before":case"in":return d.jsx(dj,{currentFilter:e,maxLevel:s,updateFilter:t,units:r,setUnits:o});case"to":return d.jsx(fj,{currentFilter:e,maxLevel:s,updateFilter:t,units:r,setUnits:o})}return null}const Pl=[{value:"year",label:"years"},{value:"quarter",label:"quarters"},{value:"month",label:"months"},{value:"week",label:"weeks"},{value:"day",label:"days"}],s2=[{value:"hour",label:"hours"},{value:"minute",label:"minutes"},{value:"second",label:"seconds"}];function uj({currentFilter:e,updateFilter:t,setUnits:r,maxLevel:o}){const{n:s,units:i}=e,l=o==="day"?Pl:[...Pl,...s2],a=c=>{const p=c.target.value;t({...e,n:p})},u=c=>{r(c),t({...e,units:c})};return d.jsxs(d.Fragment,{children:[d.jsx("input",{type:"number",value:s,...A.props(Re.input,Re.editorCell),onChange:a}),d.jsx(yn,{options:l,value:i,onChange:u,customStyle:Re.editorCell})]})}function cj({currentFilter:e,updateFilter:t,units:r,setUnits:o,maxLevel:s}){const i=s==="day"?Pl:[...Pl,...s2],l=a=>{switch(o(a),e.operator){case"after":t({...e,after:as(e.after,a)});return;case"before":t({...e,before:as(e.before,a)});return;case"to":t({...e,fromMoment:as(e.fromMoment,a),toMoment:as(e.toMoment,a)});return;case"in":{t({...e,in:as(e.in,a)});return}}};return d.jsx(yn,{options:i,value:r,onChange:l,customStyle:Re.editorCell})}function dj({currentFilter:e,updateFilter:t,units:r,maxLevel:o}){const s=e.operator==="after"?e.after:e.operator==="before"?e.before:e.in,i=so(s),l=a=>{t({...e,[e.operator]:So(a,r)})};return d.jsxs(d.Fragment,{children:[d.jsx("div",{...A.props(Re.editorRow),children:d.jsx(Tl,{value:i,setValue:l,units:r,customStyle:{...Re.input,...Re.editorCell}})}),d.jsx("div",{...A.props(Re.editorRow),children:d.jsx(Md,{value:i,setValue:l,units:r,maxLevel:o,customStyle:Re.editorCell})})]})}function fj({currentFilter:e,updateFilter:t,units:r,maxLevel:o}){const{fromMoment:s,toMoment:i}=e,l=so(s),a=so(i),[u,c]=f.useState(l),[p,m]=f.useState("from"),g=y=>{t({...e,fromMoment:So(y,r)})},h=y=>{t({...e,toMoment:So(y,r)})},x=y=>{p==="from"?g(y):h(y),c(y)},v=y=>{if(m(y),y==="from"){const b=so(s);c(b)}else{const b=so(i);c(b)}};return d.jsxs(d.Fragment,{children:[d.jsxs("div",{...A.props(Re.editorRow),children:[d.jsx(Tl,{value:l,setValue:g,units:r,customStyle:{...Re.input,...Re.editorCell},onFocus:()=>v("from"),isActive:p==="from"}),d.jsx(Tl,{value:a,setValue:h,units:r,customStyle:{...Re.input,...Re.editorCell},onFocus:()=>v("to"),isActive:p==="to"})]}),d.jsx("div",{...A.props(Re.editorRow),children:d.jsx(Md,{value:u,setValue:x,units:r,maxLevel:o,customStyle:Re.editorCell})})]})}function So(e,t){return{moment:"literal",literal:N.utc(e).format(_o[t]),units:t}}function so(e){return e&&e.moment==="literal"?N.utc(e.literal,_o[e.units??"second"]).toDate():new Date}function as(e,t){return So(so(e),t)}function pj(e,t,r){let o="7",s=So(new Date,r),i=So(new Date,r),l=!1;switch(t.startsWith("-")&&(t=t.slice(1),l=!0),e.operator){case"in_last":case"last":case"next":o=e.n,r=e.units;break;case"after":s=e.after,i=e.after;break;case"before":s=e.before,i=e.before;break;case"to":s=e.fromMoment,i=e.toMoment;break}switch(t){case"in_last":case"last":case"next":return{operator:t,n:o,units:r};case"after":return{operator:t,after:s,not:l};case"before":return{operator:t,before:s,not:l};case"in":return{operator:t,in:s};case"to":return{operator:t,fromMoment:s,toMoment:i};case"null":return{operator:t,not:l}}return e}function mj({fieldInfo:e,path:t,filter:r,onFilterApply:o,onOpenChange:s}){const[i,l]=f.useState(r??hj(e)),a=()=>{s(!1)},u=()=>{o(i),s(!1)},c=x=>{l({kind:"boolean",parsed:x})},p=x=>{l({kind:"string",parsed:x})},m=x=>{l({kind:"number",parsed:x})},g=x=>{l({kind:"timestamp",parsed:x})},h=x=>{l({kind:"date",parsed:x})};return d.jsxs("div",{...A.props(Y.body,Re.filterDialog),onKeyDown:x=>{x.key==="Enter"?u():x.key==="Esc"&&a()},children:[d.jsx("div",{...A.props(Re.filterDialogHeader),children:e.name}),i.kind==="boolean"&&d.jsx(UT,{setFilter:c,filter:i.parsed??{operator:"null"}}),i.kind==="string"&&d.jsx(XT,{setFilter:p,filter:i.parsed??{operator:"null"},field:e,path:t}),i.kind==="number"&&d.jsx(tj,{setFilter:m,filter:i.parsed??{operator:"null"}}),i.kind==="date"&&d.jsx(Dp,{setFilter:h,filter:i.parsed??{operator:"null"},isDateTime:!1}),i.kind==="timestamp"&&d.jsx(Dp,{setFilter:g,filter:i.parsed??{operator:"null"},isDateTime:!0}),d.jsxs("div",{...A.props(Re.buttonGroup),children:[d.jsx(ke,{variant:"default",label:"Cancel",onClick:a,style:{flexGrow:1}}),d.jsx(ke,{variant:"primary",label:"Apply",onClick:u,style:{flexGrow:1}})]})]})}function hj(e){return e.type.kind==="string_type"?{kind:"string",parsed:{operator:"=",values:[]}}:e.type.kind==="boolean_type"?{kind:"boolean",parsed:{operator:"true"}}:e.type.kind==="number_type"?{kind:"number",parsed:{operator:">",values:["0"]}}:e.type.kind==="date_type"?{kind:"date",parsed:{operator:"last",n:"7",units:"day"}}:{kind:"timestamp",parsed:{operator:"last",n:"7",units:"day"}}}function Gs({fieldInfo:e,path:t,filter:r,setFilter:o,trigger:s,anchor:i,layoutProps:l,onOpenChange:a}){const[u,c]=f.useState(!1),p=m=>{c(m),a?.(m)};return d.jsxs(li,{open:u,onOpenChange:p,modal:!0,children:[i?d.jsx(b1,{asChild:!0,children:i}):d.jsx(wa,{asChild:!0,children:s}),d.jsx(ai,{children:d.jsx(Ca,{...l,className:"mly78zum5 mlydt5ytf mly5n1uv4 mly12peec7 mlyur7f20",children:d.jsx(mj,{fieldInfo:e,filter:r,path:t,onFilterApply:o,onOpenChange:p})})})]})}const gj=e=>(e.kind==="dimension"||e.kind==="measure")&&(e.type.kind==="array_type"&&e.type.element_type.kind==="record_type"||e.type.kind==="record_type");function a0({view:e,fields:t,onAddOperation:r,search:o="",types:s,filter:i,isFilterOperation:l,customStyle:a}){const u=f.useMemo(()=>{const c=[],p=o.toLocaleLowerCase(),m=(g,h,x,v)=>{const y=fT(v).filter(C=>C.kind!=="join").filter(C=>C.name.toLocaleLowerCase().includes(p)&&g.includes(C.kind)).filter(C=>i?i(e,C,h):!0),b=v.filter(C=>C.kind==="join"),w=v.filter(gj);y.length&&c.push({path:h,name:h.length?h.join(" > "):x,fields:y});for(const C of w)C.type.kind==="array_type"&&C.type.element_type.kind==="record_type"?m(g,[...h,C.name],C.name,C.type.element_type.fields.map(_=>({kind:C.kind,..._}))):C.type.kind==="record_type"&&m(g,[...h,C.name],C.name,C.type.fields.map(_=>({kind:C.kind,..._})));for(const C of b)m(g.filter(_=>_!=="view"),[...h,C.name],C.name,C.schema.fields)};return m(s,[],"Source",t),c},[t,i,o,e,s]);return d.jsx("div",{...A.props(a),children:u.length?u.map(c=>d.jsxs("div",{children:[d.jsx("div",{...A.props(dt.item,Wi.fieldItem,Wi.sticky),"data-disabled":"true",children:c.name}),c.fields.map(p=>l&&(p.kind==="dimension"||p.kind==="measure")?d.jsx(Gs,{fieldInfo:p,path:c.path,setFilter:m=>r(p,c.path,m),anchor:d.jsx("div",{role:"menuitem",tabIndex:-1,...A.props(dt.item,Wi.fieldItem),children:d.jsx(Dd,{asChild:!0,children:d.jsx(jr,{field:p,tooltip:d.jsx(Ws,{field:p,path:c.path}),tooltipProps:{side:"right",align:"start",sideOffset:4,alignOffset:24}})})}),layoutProps:{align:"start",side:"right",sideOffset:2,alignOffset:4}},c.name+":"+p.name):d.jsx("div",{role:"menuitem",tabIndex:-1,...A.props(dt.item,Wi.fieldItem),children:d.jsx(jr,{field:p,onClick:()=>r(p,c.path),tooltip:d.jsx(Ws,{field:p,path:c.path}),tooltipProps:{side:"right",align:"start",sideOffset:4,alignOffset:24}})},c.name+":"+p.name))]},c.name)):d.jsx("div",{...A.props(dt.item),"data-disabled":"true",children:"No matching fields"})})}const Wi={fieldItem:{height:"mly1qx5ct2",paddingTop:"mly1y1aw1k",paddingBottom:"mlywib8y2",$$css:!0},sticky:{position:"mly7wzq59",top:"mly13vifvy",zIndex:"mly1vjfegm",backgroundColor:"mly9nb4jr",borderBottom:"mlyv3yj8d",borderBottomWidth:null,borderBottomStyle:null,borderBottomColor:null,$$css:!0}};function xj({view:e,fields:t,types:r,filter:o,onAddOperation:s,isFilterOperation:i}){const[l,a]=f.useState("");return d.jsxs("div",{...A.props(dt.content,yj.content),role:"menu",children:[d.jsx("div",{...A.props(dt.item),children:d.jsx(oa,{icon:"search",value:l,onChange:a,placeholder:"Search..."})}),d.jsx(lo,{}),d.jsx("div",{className:"mly1odjw0f",children:d.jsx(a0,{view:e,fields:t,search:l,types:r,filter:o,onAddOperation:s,isFilterOperation:i})})]})}const yj={content:{maxHeight:"mly3d5gib",$$css:!0}};function La(e,t){return[...e||[],t].join(".")}function vj(e){return e.operations.items.find(t=>t instanceof J.ASTLimitViewOperation)!==void 0}function bj(e,t){return e.operations.items.find(r=>r instanceof J.ASTOrderByViewOperation&&r.name===t)!==void 0}function i2(e){const t=new Map;for(const r of e.operations.items)if(r instanceof J.ASTGroupByViewOperation||r instanceof J.ASTAggregateViewOperation){const o=r.field.getReference();o&&t.set(r.name,La(o.path,o.name))}return t}function wj(e,t,r){const o=i2(e),s=La(t,r);return!!e.operations.items.find(i=>i instanceof J.ASTOrderByViewOperation&&o.has(i.name)?s===o.get(i.name):!1)}function Cj(e,t,r,o){return t===o&&(e||[]).join(".")===(r||[]).join(".")}function _j(e,t,r){return!!e.operations.items.find(s=>{if(s instanceof J.ASTGroupByViewOperation||s instanceof J.ASTAggregateViewOperation){const i=s.field.getReference();return i?Cj(t,r,i.path,i.name):!1}return!1})}function Sj(e,t){return e.operations.items.reduce((r,o)=>{if(o instanceof J.ASTNestViewOperation&&o.name===t)do r+=1;while(e.hasFieldNamed(`${t} ${r}`));return r},1)}function Na(e,t,r){const o=t.kind==="dimension"?t.type.kind:"string",s=e.getOrAddDefaultSegment(),{fields:i}=e.getOutputSchema();let l;i.find(a=>a.name===t.name)&&(l=t0(i,t.name,r)),o==="date_type"?s.addDateGroupBy(t.name,r,"day"):o==="timestamp_type"?s.addTimestampGroupBy(t.name,r,"second"):s.addGroupBy(t.name,r,l)}function Ma(e,t,r){const o=e.getOrAddDefaultSegment(),{fields:s}=e.getOutputSchema();let i;s.find(l=>l.name===t.name)&&(i=t0(s,t.name,r)),o.addAggregate(t.name,r,i)}function u0(e,t){const r=e.getOrAddDefaultSegment(),{fields:o}=e.getOutputSchema();let s;o.find(i=>i.name===t.name)&&(s=t0(o,t.name)),r.addNest(t.name,s)}function kj(e,t,r,o="desc"){const s=La(t,r);let i=r;const l=e.getOrAddDefaultSegment(),a=i2(l);for(const u of a.entries())if(u[1]===s){i=u[0];break}l.addOrderBy(i,o)}function Ej(e,t,r="desc"){e.getOrAddDefaultSegment().addOrderBy(t.name,r)}function l2(e,t,r,o){const s=e.getOrAddDefaultSegment();t.kind==="dimension"?s.addWhere(t.name,r,o):s.addHaving(t.name,r,o)}function Mn(e){if(!e)return;const t=jx(e);if(t instanceof J.ASTSegmentViewDefinition)return t;if(t instanceof J.ASTRefinementViewDefinition&&t.refinement instanceof J.ASTSegmentViewDefinition)return t.refinement}function Rj({actionTitle:e,view:t,fields:r,title:o,types:s,onClick:i}){const[l,a]=f.useState(!1),u=Mn(t),c=(p,m,g)=>!u?.hasField(m.name,g)&&fr(m);return d.jsxs("div",{...A.props(Xt.title,Nn.main),children:[d.jsx("div",{children:o}),d.jsx("div",{...A.props(Nn.hoverActions,l?Nn.hoverOpen:void 0),children:d.jsxs(li,{onOpenChange:a,children:[d.jsx(wa,{asChild:!0,children:d.jsx("div",{className:"mly1md70p1 mly1aejobo mlyq1n1xh mly1ypdohk",children:e})}),d.jsx(ai,{children:d.jsx(Nd,{side:"right",align:"start",alignOffset:-16,children:d.jsx(xj,{view:t,fields:r,types:s,filter:c,onAddOperation:i})})})]})})]})}function a2({rootQuery:e,view:t,target:r,open:o,setOpen:s}){const[i,l]=f.useState(""),{setQuery:a}=f.useContext(be);if(f.useEffect(()=>{r&&l(r.name)},[r,o]),!r)return null;const u=()=>{r.name=i,a?.(e?.build()),s(!1)},{fields:c}=t.getOutputSchema(),p=i!==r.name&&c.some(m=>m.name===i);return d.jsx(Yx,{open:o,onOpenChange:s,children:d.jsx(Hx,{children:d.jsx(Vx,{...A.props(rt.overlay),children:d.jsxs(Xx,{...A.props(rt.content,Y.body),children:[d.jsxs(Kx,{...A.props(rt.displayNone),children:["Rename ",r.name]}),d.jsxs(Zx,{...A.props(rt.title),children:["Rename ",r.name]}),d.jsxs("div",{...A.props(rt.editor),children:[d.jsxs("div",{...A.props(rt.editorRow),children:[d.jsx("input",{value:i,onChange:m=>l(m.target.value),...A.props({...rt.editorCell,...rt.input}),onKeyDown:m=>{m.key==="Enter"?u():m.key==="Esc"&&s(!1)}}),p&&d.jsx(Kl,{errorMessage:"Name already in use"})]}),d.jsxs("div",{...A.props(rt.editorRow),children:[d.jsx(ke,{label:"Cancel",onClick:()=>s(!1),customStyle:rt.editorCell}),d.jsx(ke,{variant:"primary",label:"Rename",onClick:u,customStyle:rt.editorCell,disabled:p})]})]})]})})})})}function u2({rootQuery:e,segment:t,view:r,operations:o,kind:s}){const{setQuery:i}=f.useContext(be),l=zR($R(Qd)),a=f.useMemo(()=>o.map(m=>({id:m.name,operation:m})),[o]);if(o.length===0)return null;function u(m){const h=t.operations.items.filter(y=>y instanceof J.ASTAggregateViewOperation||y instanceof J.ASTGroupByViewOperation||y instanceof J.ASTNestViewOperation).map(y=>y.name),{active:x,over:v}=m;if(v&&x.id!==v.id){const y=h.indexOf(x.id),b=h.indexOf(v.id);t.reorderFields(Jd(h,y,b)),i?.(e.build())}}const{fields:c}=Pr(r),p=s==="group_by"?{title:"group by",actionTitle:"Add group by",types:["dimension"],onClick:(m,g)=>{Na(r,m,g),i?.(e.build())}}:{title:"aggregate",actionTitle:"Add aggregate",types:["measure"],onClick:(m,g)=>{Ma(r,m,g),i?.(e.build())}};return d.jsxs("div",{children:[d.jsx(Rj,{rootQuery:e,view:r,fields:c,...p}),d.jsx("div",{...A.props(Xt.tokenContainer),children:d.jsx(UA,{sensors:l,collisionDetection:YR,onDragEnd:u,children:d.jsx(nT,{items:a,children:a.map(m=>d.jsx(Tj,{rootQuery:e,id:m.id,color:s==="group_by"?"cyan":"green",view:r,operation:m.operation},m.id))})})})]})}const Aj=[];function Tj({rootQuery:e,id:t,view:r,operation:o,color:s}){var i;const{setQuery:l}=f.useContext(be),a=o.getFieldInfo(),u=((i=o.field.getReference())==null?void 0:i.path)??Aj,{attributes:c,listeners:p,setNodeRef:m,transform:g,transition:h}=uT({id:t,data:{name:a.name}}),[x,v]=f.useState(!1),[y,b]=f.useState(),[w,C]=f.useState(!1),_={transform:zs.Transform.toString(g),transition:h},k=f.useMemo(()=>d.jsxs(d.Fragment,{children:[d.jsx(Wd,{trigger:d.jsx(ke,{variant:"flat",icon:"meatballs",size:"compact",tooltip:"More Actions"}),onOpenChange:C,children:[d.jsx(Bs,{label:"Rename",onClick:()=>{b(o),v(!0)}},"rename")]},[...u,a.name].join(".")),d.jsx(mi,{onClick:()=>{o.delete(),l?.(e?.build())}})]}),[a,o,u,e,l]),E=Lj(a,o.field);let R="orderBy";return(a.kind==="dimension"||a.kind==="measure")&&(R=Aa(a.type.kind)),d.jsxs("div",{id:t,ref:m,style:_,children:[E?d.jsxs("div",{...{0:{className:"mly78zum5 mly6s0dn4 mly1nhvcw1 mly1jnr06f mly11ogjb6 mly1g9of4s"},1:{className:"mly78zum5 mly6s0dn4 mly1nhvcw1 mly1jnr06f mly1ae5hkt"}}[!!w<<0],children:[d.jsxs(Zs,{customStyle:Nj.tokenGroup,children:[d.jsx(Be,{color:s,icon:R,label:a.name,dragProps:{attributes:c,listeners:p}}),d.jsx(sa,{color:s,value:E.value,onChange:j=>{o.field.expression instanceof J.ASTTimeTruncationExpression&&(o.field.expression.truncation=j),l?.(e.build())},items:E.options})]}),k&&d.jsx("div",{className:"mly2b4tyj mly2lah0s",children:k})]}):d.jsx(jr,{field:a,color:s,hoverActionsVisible:w,hoverActions:k,tooltip:d.jsx(Ws,{field:a,path:u}),tooltipProps:{side:"right",align:"start",alignOffset:28},dragProps:{attributes:c,listeners:p}}),d.jsx(a2,{rootQuery:e,view:r,target:y,open:x,setOpen:v})]})}const jj=["day","week","month","quarter","year"],Dj=["second","minute","hour","day","week","month","quarter","year"];function Lj(e,t){return e.kind!=="dimension"||!(t.expression instanceof J.ASTTimeTruncationExpression)?null:e.type.kind==="timestamp_type"?{value:e.type.timeframe??"second",options:Dj.map(r=>({label:r,value:r}))}:e.type.kind==="date_type"?{value:e.type.timeframe??"day",options:jj.map(r=>({label:r,value:r}))}:null}const Nj={tokenGroup:{display:"mly78zum5",$$css:!0}};function Mj({rootQuery:e,segment:t,view:r,groupBys:o}){return d.jsx(u2,{rootQuery:e,segment:t,view:r,operations:o,kind:"group_by"})}class Ij extends f.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,r){console.error(t,r)}render(){return this.state.hasError?this.props.fallback:this.props.children}}const c2=(e,t)=>{if(e.parsed===null)return{op:"",value:t};let r="",o=t;switch(e.kind){case"boolean":{const s=e.parsed,{operator:i,not:l}=s;r=l?"is not":"is",o=i}break;case"string":{const s=e.parsed,{operator:i}=s;switch(i){case"~":r="is like",o=s.escaped_values.join(", ");break;case"=":{const{not:l,values:a}=s;r=l?"is not":"is",o=a.join(", ")}break;case"contains":{const{not:l,values:a}=s;r=l?"does not contain":"contains",o=a.join(", ")}break;case"starts":{const{not:l,values:a}=s;r=l?"does not start with":"starts with",o=a.join(", ")}break;case"ends":{const{not:l,values:a}=s;r=l?"does not end with":"ends with",o=a.join(", ")}break;case"empty":{const{not:l}=s;r=l?"is not empty":"is empty",o=""}break;case"null":{const{not:l}=s;r=l?"is not":"is",o="null"}break}}break;case"number":{const s=e.parsed,{operator:i}=s;switch(i){case"=":case"!=":case"<=":case">=":case"<":case">":r=i,o=s.values.join(", ");break;case"range":r="in between",o=s.startValue+" and "+s.endValue;break;case"null":r=s.not?"is not":"is",o="null";break}}break;case"date":case"timestamp":{const s=e.parsed,{operator:i}=s;switch(i){case"after":{const{not:l}=s;r=l?"through":"is after",o=bu(s.after)}break;case"before":{const{not:l}=s;r=l?"starting":"is before",o=bu(s.before)}break;case"in":{const{not:l}=s;r=`is${l?" not":""} in`,o=bu(s.in)}break;case"in_last":{const{not:l}=s;r=`is${l?" not":""} in last`,o=s.n+" "+s.units}break;case"last":{const{not:l}=s;r=`is${l?" not":""} last complete`,o=s.n+" "+s.units}break;case"next":{const{not:l}=s;r=`is${l?" not":""} next complete`,o=s.n+" "+s.units}break;case"for":{const{not:l}=s;r=`is${l?" not":""} for`,o=s.n+" "+s.units}break;case"null":r=s.not?"is not":"is",o="null";break}}}return{op:r,value:o}};function bu(e){return e?e.moment==="literal"?e.literal:e.moment==="now"?"now":e.moment:""}function Oj({rootQuery:e,filters:t}){const{setQuery:r}=f.useContext(be);return t.length===0?null:d.jsxs("div",{children:[d.jsx("div",{...A.props(Xt.title),children:"filter by"}),d.jsx("div",{...A.props(Xt.tokenContainer),children:t.map((o,s)=>d.jsx(Ij,{fallback:d.jsxs("div",{children:["Invalid filter",d.jsx(mi,{onClick:()=>{o.delete(),r?.(e.build())}})]}),children:d.jsx(Pj,{filterOperation:o,rootQuery:e})},s))})]})}function Pj({rootQuery:e,filterOperation:t}){const{setQuery:r}=f.useContext(be),o=f.useCallback(h=>{t.filter instanceof J.ASTFilterWithFilterString&&t.filter.setFilter(h),r?.(e.build())},[t.filter,e,r]),{filter:s}=t;if(!(s instanceof J.ASTFilterWithFilterString))return null;const{expression:i,filterString:l}=s;if(!(i instanceof J.ASTReferenceExpression))return null;const a=s.getFieldInfo(),u=s.getFilter(),c=i.path??[],{op:p,value:m}=c2(u,l),g=`${a.name} ${p} ${m}`;return d.jsxs("div",{...A.props(Nn.main),children:[d.jsx(Gs,{fieldInfo:a,path:c,filter:u,setFilter:o,trigger:d.jsx(Be,{icon:"filter",color:"cyan",label:g}),layoutProps:{align:"start",side:"bottom",sideOffset:1}}),d.jsx("div",{...A.props(Nn.hoverActions),children:d.jsx(mi,{onClick:()=>{t.delete(),r?.(e.build())}})})]})}function Fj({rootQuery:e,limit:t}){const{setQuery:r}=f.useContext(be);return t?d.jsxs("div",{children:[d.jsx("div",{...A.props(Xt.title),children:"limit"}),d.jsxs("div",{...A.props(Nn.main),children:[d.jsx(Lu,{type:"number",value:t.limit,onChange:o=>{t.limit=o,r?.(e.build())},errorMessage:t.limit<0?"Limit must be positive":void 0}),d.jsx("div",{...A.props(Nn.hoverActions),children:d.jsx(mi,{onClick:()=>{t.delete(),r?.(e.build())}})})]})]}):null}function Bj({rootQuery:e,segment:t,view:r,aggregates:o}){return d.jsx(u2,{rootQuery:e,segment:t,view:r,operations:o,kind:"aggregate"})}function $j({rootQuery:e,orderBys:t}){const{setQuery:r}=f.useContext(be);return t.length===0?null:d.jsxs("div",{children:[d.jsx("div",{...A.props(Xt.title),children:"order by"}),d.jsx("div",{...A.props(Xt.tokenContainer),children:t.map(o=>{const{fieldReference:s}=o,i=s.getFieldInfo(),l=s.path??[];let a="orderBy";(i.kind==="dimension"||i.kind==="measure")&&(a=Aa(i.type.kind));const u=ix(i.kind);return d.jsxs("div",{...A.props(Nn.main),children:[d.jsxs(Zs,{children:[d.jsx(Be,{color:u,icon:a,label:i.name}),d.jsx(sa,{color:u,items:[{label:"ascending",value:"asc"},{label:"descending",value:"desc"}],value:o.direction??"asc",onChange:c=>{o.direction=c,r?.(e.build())}})]}),d.jsx("div",{...A.props(Nn.hoverActions),children:d.jsx(mi,{onClick:()=>{o.delete(),r?.(e.build())}})})]},[...l,i.name].join("."))})})]})}function zj({rootQuery:e,view:t}){return d.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[d.jsx(e2,{rootQuery:e,view:t}),d.jsx(Ss,{rootQuery:e,view:t,viewDef:t.definition})]})}function _r({icon:e,label:t,detail:r,disable:o,onClick:s,open:i}){const l=o?.(),a=()=>{o?.()||s?.()};return d.jsxs(Mo,{children:[d.jsx(Io,{asChild:!0,children:d.jsxs("div",{role:"menuitem",tabIndex:-1,...A.props(dt.item,dt.clickable,i?qj.open:null),onClick:a,"data-disabled":l?"true":void 0,children:[d.jsxs("div",{...A.props(dt.label),children:[e,d.jsx("div",{children:t})]}),i!==void 0&&d.jsx(ie,{name:"chevronRight",color:"gray"})]})}),r?d.jsx(Oo,{children:d.jsx(Po,{...A.props(dt.tooltip),side:"right",align:"start",alignOffset:-16,children:r})}):null]})}const qj={open:{background:"mly16o7sp0",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0}};function Wj({rootQuery:e,view:t}){const{setQuery:r}=f.useContext(be),o=Mn(t),s=o?vj(o):!1;return d.jsx(_r,{icon:d.jsx(ie,{name:"limit"}),label:"Limit",disable:()=>s,onClick:()=>{t.getOrAddDefaultSegment().setLimit(10),r?.(e.build())}})}function Gj({rootQuery:e,view:t}){const{setQuery:r}=f.useContext(be);return d.jsx(_r,{icon:d.jsx(ie,{name:"nest"}),label:"Add blank nested query",onClick:()=>{const o=t.getOrAddDefaultSegment(),s=Sj(o,"Nest");o.addEmptyNest(s>1?`Nest ${s}`:"Nest"),r?.(e.build())}})}function gi({view:e,fields:t,onAddOperation:r,types:o,filter:s,isFilterOperation:i,search:l}){return d.jsx(a0,{types:o,filter:s,view:e,fields:t,onAddOperation:r,isFilterOperation:i,search:l,customStyle:Uj.list})}const Uj={list:{minWidth:"mly2ixbly",maxWidth:"mly1j9u4d2",$$css:!0}};function Yj({rootQuery:e,view:t,search:r}){const{setQuery:o}=f.useContext(be),s=t.getOutputSchema().fields,i=Mn(t),l=f.useMemo(()=>s.filter(a=>a.kind==="dimension").filter(a=>Hj.includes(a.type.kind)).filter(a=>i?!bj(i,a.name):!0),[s,i]);return d.jsx(gi,{label:"Add order by",icon:"orderBy",view:t,fields:l,types:["dimension"],onAddOperation:a=>{Ej(t,a),o?.(e.build())},disabledMessage:"There must be at least one field in the output to order by.",search:r})}const Hj=["string_type","number_type","boolean_type","date_type","timestamp_type"];function Vj({rootQuery:e,view:t,search:r}){const{setQuery:o}=f.useContext(be),{fields:s}=Pr(t),i=Mn(t),l=(a,u,c)=>!i?.hasField(u.name,c)&&fr(u);return d.jsx(gi,{label:"Add group by",icon:"groupBy",view:t,fields:s,types:["dimension"],filter:l,onAddOperation:(a,u)=>{Na(t,a,u),o?.(e.build())},search:r})}function Xj({rootQuery:e,view:t,search:r}){const{setQuery:o}=f.useContext(be),{fields:s}=Pr(t),i=Mn(t),l=(a,u,c)=>!i?.hasField(u.name,c)&&fr(u);return d.jsx(gi,{label:"Add aggregate",icon:"aggregate",view:t,fields:s,types:["measure"],filter:l,onAddOperation:(a,u)=>{Ma(t,a,u),o?.(e.build())},search:r})}function Zj({view:e,search:t}){const{rootQuery:r,setQuery:o}=f.useContext(be),{fields:s}=Pr(e);return d.jsx(gi,{label:"Add filter",icon:"filter",view:e,fields:s,types:["measure","dimension"],filter:(i,l)=>(l.kind==="dimension"||l.kind==="measure")&&Kj.has(l.type.kind)&&fr(l),onAddOperation:(i,l,a)=>{a&&(i.kind==="dimension"||i.kind==="measure")&&(l2(e,i,l,a),o?.(r?.build()))},isFilterOperation:!0,search:t})}const Kj=new Set(["string_type","boolean_type","number_type","date_type","timestamp_type"]);function Qj({rootQuery:e,view:t,search:r}){const{setQuery:o}=f.useContext(be),s=Pr(t).fields,i=f.useMemo(()=>s.filter(l=>l.kind==="view"&&!Tx(l)),[s]);return d.jsx(gi,{label:"Add view",icon:"view",view:t,fields:i,types:["view"],filter:(l,a)=>fr(a),onAddOperation:l=>{e.isEmpty()?e.setView(l.name):u0(t,l),o?.(e.build())},search:r})}function d2({rootQuery:e,view:t}){const[r,o]=f.useState(!1),[s,i]=f.useState(""),{setQuery:l}=f.useContext(be),[a,u]=f.useState(""),c=Mn(t),p=m=>{i(m===s?"":m)};return d.jsxs(li,{open:r,onOpenChange:m=>{o(m),m||u("")},children:[d.jsx(wa,{asChild:!0,children:d.jsx(ke,{icon:"insert",variant:"flat",size:"compact",onClick:()=>o(!r),tooltip:"Add query elements"})}),d.jsx(ai,{children:d.jsxs(Ca,{onPointerDownOutside:()=>o(!1),...A.props(dt.content),side:"bottom",align:"start",role:"menu",children:[d.jsx("div",{...A.props(dt.item),children:d.jsx(oa,{icon:"search",value:a,onChange:u,placeholder:"Search...",customStyle:Jj.search})}),d.jsx(lo,{}),d.jsxs("div",{className:"mly78zum5 mly1odjw0f mlywib8y2 mly1xyq3li",children:[a&&!s?d.jsxs("div",{className:"mly1odjw0f",children:[d.jsx(a0,{view:t,fields:Pr(t).fields,filter:(m,g,h)=>!c?.hasField(g.name,h)&&fr(g),types:["dimension","measure","view"],onAddOperation:function(m,g){m.kind==="dimension"?Na(t,m,g):m.kind==="measure"?Ma(t,m,g):u0(t,m),l?.(e.build())},search:a}),d.jsx(lo,{}),d.jsx(r2,{search:a,onClick:m=>{const g=m.fieldName.split("."),h=g.pop();t.getOrAddDefaultSegment().addWhere(h,g,{kind:"string",parsed:{operator:"=",values:[m.fieldValue??"∅"]}}),l?.(e.build())}})]}):d.jsxs("div",{"data-testid":"add-menu-operations",className:"mly18kybhu",children:[d.jsx(_r,{icon:d.jsx(ie,{name:"groupBy"}),label:"Add group by",onClick:()=>p("group_by"),open:s==="group_by"}),d.jsx(_r,{icon:d.jsx(ie,{name:"aggregate"}),label:"Add aggregate",onClick:()=>p("aggregate"),open:s==="aggregate"}),d.jsx(_r,{icon:d.jsx(ie,{name:"filter"}),label:"Add filter",onClick:()=>p("where"),open:s==="where"}),d.jsx(_r,{icon:d.jsx(ie,{name:"view"}),label:"Add view",onClick:()=>p("view"),open:s==="view"}),d.jsx(lo,{}),d.jsx(Wj,{rootQuery:e,view:t}),d.jsx(_r,{icon:d.jsx(ie,{name:"orderBy"}),label:"Order by",onClick:()=>p("order_by"),open:s==="order_by"}),d.jsx(Gj,{rootQuery:e,view:t})]}),d.jsxs("div",{"data-testid":"add-menu-right-column",style:{overflowY:"auto"},children:[s==="group_by"&&d.jsx(Vj,{rootQuery:e,view:t,search:a}),s==="aggregate"&&d.jsx(Xj,{rootQuery:e,view:t,search:a}),s==="where"&&d.jsx(Zj,{rootQuery:e,view:t,search:a}),s==="view"&&d.jsx(Qj,{rootQuery:e,view:t,search:a}),s==="order_by"&&d.jsx(Yj,{rootQuery:e,view:t,search:a})]})]})]})})]})}const Jj={search:{width:"mlyh8yej3",$$css:!0}},vc=Ie.createContext([]);function f2({children:e,nest:t}){const{focusNestView:r,focusMainView:o}=Vs(),s=f.useContext(vc);return d.jsx("div",{onPointerDown:i=>{i.stopPropagation(),t?r([...s,t.name]):o()},children:t?d.jsx(vc.Provider,{value:[...s,t.name],children:d.jsx("div",{children:e})}):d.jsx("div",{children:e})})}function eD({rootQuery:e,view:t,nests:r}){return r.length===0?null:d.jsx("div",{...A.props(Xt.tokenContainer),children:r.map(o=>d.jsx(tD,{rootQuery:e,view:t,nest:o},o.name))})}function tD({rootQuery:e,view:t,nest:r}){const{setQuery:o}=f.useContext(be),[s,i]=f.useState(!1),l=f.useContext(vc),{focusNestView:a,isNestViewFocused:u}=Vs(),c=p=>d.jsxs(d.Fragment,{children:[d.jsxs(Wd,{trigger:d.jsx(ke,{variant:"flat",icon:"meatballs",size:"compact",tooltip:"More Actions"}),children:[d.jsx(Bs,{icon:"clear",label:"Delete Query",onClick:()=>{a([...l]),p.delete(),o?.(e.build())}}),d.jsx(Bs,{label:"Rename",onClick:()=>{i(!0)}})]}),d.jsx(d2,{rootQuery:e,view:p.view})]});return d.jsx(f2,{nest:r,children:d.jsxs("div",{className:"mlyj3b58b mly1yf7rl7 mly1xmf6yo mlyh8yej3",children:[d.jsx(Uc,{title:r.name,icon:lx(r.view),defaultOpen:!0,controls:c(r),collapsedControls:c(r),isFocused:u([...l,r.name]),children:d.jsx(zj,{rootQuery:e,view:r.view})}),d.jsx(a2,{rootQuery:e,view:t,target:r,open:s,setOpen:i})]},r.name)})}function nD({rootQuery:e,view:t,viewDef:r}){const o=[],s=[],i=[],l=[],a=[],u=[];let c;if(!(r instanceof J.ASTSegmentViewDefinition))return null;const p=r;return p.operations.items.forEach(m=>{m instanceof J.ASTGroupByViewOperation?o.push(m):m instanceof J.ASTAggregateViewOperation?s.push(m):m instanceof J.ASTWhereViewOperation||m instanceof J.ASTHavingViewOperation?l.push(m):m instanceof J.ASTOrderByViewOperation?a.push(m):m instanceof J.ASTNestViewOperation?u.push(m):m instanceof J.ASTDrillViewOperation?i.push(m):c=m}),d.jsxs("div",{className:"mly1tpqehw mly10lvyaf",children:[d.jsx(Mj,{rootQuery:e,segment:p,view:t,groupBys:o}),d.jsx(Bj,{rootQuery:e,segment:p,view:t,aggregates:s}),d.jsx(_R,{rootQuery:e,drills:i}),d.jsx(Oj,{rootQuery:e,filters:l}),d.jsx($j,{rootQuery:e,orderBys:a}),d.jsx(eD,{rootQuery:e,view:t,nests:u}),d.jsx(Fj,{rootQuery:e,limit:c})]})}function Ss({rootQuery:e,view:t,viewDef:r}){return r instanceof J.ASTArrowViewDefinition?d.jsx(Ss,{rootQuery:e,view:t,viewDef:r.view}):r instanceof J.ASTRefinementViewDefinition?d.jsxs("div",{children:[d.jsx(Ss,{rootQuery:e,view:t,viewDef:r.base}),d.jsx(Ss,{rootQuery:e,view:t,viewDef:r.refinement})]}):r instanceof J.ASTSegmentViewDefinition?d.jsx(nD,{rootQuery:e,view:t,viewDef:r}):d.jsx(rD,{rootQuery:e,viewDef:r})}function rD({viewDef:e}){const[t,r]=f.useState(!1);return d.jsxs("div",{...{0:{className:"mly78zum5 mlydt5ytf mly1cy8zhl mly1nhvcw1 mly12oqio5 mlygqa5hp mlyt7dq6l mlywib8y2 mly163pfp mlyy13l1i"},1:{className:"mly78zum5 mlydt5ytf mly1cy8zhl mly1nhvcw1 mly12oqio5 mlygqa5hp mlyt7dq6l mly163pfp mlyy13l1i mly18d9i69"}}[!!t<<0],children:[d.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mly1g3yg12 mlyydnxy5 mly6s0dn4 mlylqzeqv mly167g77z mly12oqio5 mlyc342km mly1n2onr6 mlyb3r6kr mlygqa5hp mlyh8yej3",children:[d.jsx(ie,{name:"query",color:"purple"}),d.jsx("div",{className:"mlyuxw1ft mlyb3r6kr mlylyipyv",children:e.name}),d.jsx(ke,{icon:t?"chevronRight":"chevronDown",onClick:()=>r(!t),size:"compact"})]}),!t&&d.jsx(l0,{viewInfo:e.getViewInfo(),style:oD.preview})]})}const oD={preview:{height:"mlyt7dq6l",maxHeight:"mly1hkcv85",background:"mlyo6guvx",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0}};function sD({rootQuery:e,query:t,setQuery:r}){const{focusMainView:o,isMainViewFocused:s}=Vs();return d.jsx(f2,{children:d.jsxs(Uc,{title:"Main query",isFocused:s,controls:d.jsxs(d.Fragment,{children:[d.jsx(Wd,{trigger:d.jsx(ke,{variant:"flat",icon:"meatballs",size:"compact",tooltip:"More Actions"}),children:r?d.jsxs(d.Fragment,{children:[d.jsx(Bs,{icon:"clear",label:"Clear query",onClick:()=>{o(),r?.(void 0)},disabled:e.isEmpty()}),d.jsx(Bs,{icon:"nest",label:"Nest query",onClick:()=>{e.definition instanceof J.ASTArrowQueryDefinition&&e.definition.view.convertToNest("Nest"),r?.(e.build())},disabled:e.isEmpty()||!(e.definition instanceof J.ASTArrowQueryDefinition)})]}):d.jsx(d.Fragment,{})}),t.definition instanceof J.ASTArrowQueryDefinition?d.jsx(d2,{rootQuery:e,view:t.definition}):null]}),collapsedControls:d.jsx(ie,{name:lx(t)}),children:[t.definition instanceof J.ASTArrowQueryDefinition?d.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[!t.isEmpty()&&d.jsx(e2,{rootQuery:e,view:t}),d.jsx(Ss,{rootQuery:e,view:t.definition,viewDef:t.definition.view})]}):null,t.isEmpty()?d.jsx("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4 mlyng8ra",children:d.jsxs("div",{className:"mly78zum5 mly6s0dn4 mlywzxoxx",children:[d.jsx("div",{children:"Click"}),d.jsx(ie,{name:"insert",color:"disabled"}),d.jsx("div",{children:"to get started"})]})}):null]})})}function iD({rootQuery:e}){return e.definition instanceof J.ASTArrowQueryDefinition?d.jsx("div",{...A.props(Xt.queryCard,lD.content),children:d.jsxs("div",{...A.props(Xt.labelWithIcon),children:[d.jsx(ie,{name:"database"}),d.jsx("div",{className:"mlyb3r6kr mlylyipyv mly117nqv4",children:e.definition.as.ArrowQueryDefinition().source.as.ReferenceQueryArrowSource().name})]})}):null}const lD={content:{display:"mlyrvj5dj",gridAutoFlow:"mly1mt1orb",gridTemplateColumns:"mlybyjr8",gap:"mly1jnr06f",rowGap:null,columnGap:null,$$css:!0}};function aD({value:e,setValue:t,customStyle:r}){const[o,s]=f.useState(""),[i,l]=f.useState(!1),a=f.useRef(null),u=f.useRef(null),c=e.kind==="date_literal",p=c?e.date_value:e.timestamp_value,m=c?"day":"second",g=h=>{h?(s(""),t(c?{kind:"date_literal",date_value:N.utc(h).format(_o.day)}:{kind:"timestamp_literal",timestamp_value:N.utc(h).format(_o.second)})):s("Invalid date")};return Qx([a,u],()=>{l(!1)}),d.jsxs(li,{open:i,onOpenChange:()=>{},children:[d.jsx(wa,{asChild:!0,children:d.jsx("div",{...A.props(sr.main,us.wrapper,r),children:d.jsx(Tl,{value:N.utc(p).toDate(),setValue:g,units:m,onFocus:()=>l(!0),customStyle:{...us.input,...c?us.dateInput:us.timestampInput},forwardRef:a})})}),o&&d.jsx(Kl,{errorMessage:o}),d.jsx(ai,{children:d.jsx(Ca,{align:"center",asChild:!0,children:d.jsx(Md,{value:N.utc(p).toDate(),setValue:g,units:m,maxLevel:m,customStyle:us.datePicker,forwardRef:u})})})]})}const us={input:{border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,height:"mlyd7y6wv",backgroundColor:"mlyjbqb8w mlytw1abo",$$css:!0},dateInput:{width:"mly869kya",$$css:!0},timestampInput:{width:"mlynrytzq",$$css:!0},wrapper:{$$css:!0},datePicker:{display:"mly78zum5",flexDirection:"mlydt5ytf",boxShadow:"mly5n1uv4",backgroundColor:"mly12peec7",borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,width:"mly1hfn5x7",$$css:!0}};function uD({filterType:e,value:t,setValue:r}){let o=null;switch(e){case"string_type":{const{parsed:c}=bn.StringFilterExpression.parse(t.filter_expression_value);o={kind:"string",parsed:c}}break;case"number_type":{const{parsed:c}=bn.NumberFilterExpression.parse(t.filter_expression_value);o={kind:"number",parsed:c}}break;case"boolean_type":{const{parsed:c}=bn.BooleanFilterExpression.parse(t.filter_expression_value);o={kind:"boolean",parsed:c}}break;case"date_type":{const{parsed:c}=bn.TemporalFilterExpression.parse(t.filter_expression_value);o={kind:"date",parsed:c}}break;case"timestamp_type":{const{parsed:c}=bn.TemporalFilterExpression.parse(t.filter_expression_value);o={kind:"timestamp",parsed:c}}break}const{op:s,value:i}=c2(o,t.filter_expression_value),l=`${s} ${i}`,a={kind:"dimension",name:"parameter",type:{kind:e}},u=c=>{switch(c.kind){case"string":r({kind:"filter_expression_literal",filter_expression_value:bn.StringFilterExpression.unparse(c.parsed)});break;case"boolean":r({kind:"filter_expression_literal",filter_expression_value:bn.BooleanFilterExpression.unparse(c.parsed)});break;case"number":r({kind:"filter_expression_literal",filter_expression_value:bn.NumberFilterExpression.unparse(c.parsed)});break;case"date":case"timestamp":r({kind:"filter_expression_literal",filter_expression_value:bn.TemporalFilterExpression.unparse(c.parsed)});break}};return d.jsx(Gs,{fieldInfo:a,path:[],filter:o,setFilter:u,trigger:d.jsx(Be,{label:l}),layoutProps:{align:"start",side:"bottom",sideOffset:1}})}function cD({value:e,filterType:t,setValue:r,customStyle:o}){if(!e)return null;switch(e.kind){case"boolean_literal":return d.jsx(sa,{value:e.boolean_value?"true":"false",items:[{label:"true",value:"true"},{label:"false",value:"false"}],onChange:s=>r({kind:"boolean_literal",boolean_value:s==="true"}),customStyle:o});case"date_literal":case"timestamp_literal":return d.jsx(aD,{value:e,setValue:r,customStyle:o});case"null_literal":return d.jsx(Be,{label:"∅"});case"number_literal":return d.jsx(Lu,{value:e.number_value,type:"number",onChange:s=>r({kind:"number_literal",number_value:s}),customStyle:o});case"string_literal":return d.jsx(Lu,{value:e.string_value,onChange:s=>r({kind:"string_literal",string_value:s}),customStyle:o});case"filter_expression_literal":return d.jsx(uD,{value:e,filterType:t,setValue:r,customStyle:o})}}function dD({rootQuery:e}){const{setQuery:t}=f.useContext(be);if(e.definition instanceof J.ASTArrowQueryDefinition){const r=e.definition.as.ArrowQueryDefinition().source.as.ReferenceQueryArrowSource(),o=r.getSourceParameters();return!o||o.length===0?null:d.jsx(Uc,{title:"Source parameters",children:d.jsx("div",{className:"mly78zum5 mlydt5ytf mly1jnr06f mlynm25rq",children:o.map(s=>{var i;return d.jsxs(Zs,{customStyle:fD.tokenGroup,children:[d.jsx(Be,{icon:Aa(s.type.kind),label:s.name}),d.jsx(cD,{filterType:s.type.kind==="filter_expression_type"?s.type.filter_type.kind:"string_type",value:((i=r.tryGetParameter(s.name))==null?void 0:i.parameter.value)??s.default_value,setValue:l=>{r.setParameter(s.name,l),t?.(e.build())}})]},s.name)})})})}return null}const fD={tokenGroup:{display:"mly78zum5",$$css:!0}};function pD(){const{rootQuery:e,setQuery:t}=f.useContext(be);return e?d.jsxs("div",{...A.props(Y.body,mD.main),children:[d.jsx(iD,{rootQuery:e}),d.jsx(dD,{rootQuery:e}),d.jsx(sD,{rootQuery:e,query:e,setQuery:t})]}):(console.error("Missing <MalloyExplorerProvider>"),null)}const mD={main:{display:"mly78zum5",flexDirection:"mlydt5ytf",overflow:"mlyysyzu8",overflowX:null,overflowY:null,gap:"mly167g77z",rowGap:null,columnGap:null,padding:"mly1fut7tt",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}};function uL({runQuery:e}){return d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly5yr21d mlyotlr4g mly1roky18",children:[d.jsx(dR,{runQuery:e}),d.jsx(pD,{})]})}function hD({viewInfo:e,onClick:t}){const r=Ax(e.annotations??[]);return d.jsx("div",{children:d.jsx(S4,{header:d.jsxs("div",{children:[d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib",children:[d.jsx(er,{label:"view",icon:"view_filled",color:"purple",customStyle:Lp.viewBadge}),d.jsx(ke,{variant:"default",size:"compact",label:"Add",onClick:t})]}),d.jsxs("div",{children:[d.jsx("div",{...A.props(Y.emphasized),children:e.name}),r&&d.jsx(n2,{text:r})]})]}),customStyle:Lp.card,children:d.jsx(l0,{viewInfo:e})})})}const Lp={viewBadge:{backgroundColor:"mlyjbqb8w",$$css:!0},card:{width:"mlyxsgkw5",$$css:!0}};function gD({views:e,onSelectView:t}){return d.jsx("div",{className:"mly78zum5 mlydt5ytf mlyh8yej3 mly5yr21d mlyysyzu8",children:d.jsxs("div",{className:"mly1bpp3o7 mly78zum5 mlydt5ytf mlyl56j7k mly6s0dn4",children:[d.jsx("div",{...A.props(xD.header,Y.emphasized),children:"Start with a Bookmarked View"}),d.jsx("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4 mly1a02dak mly883omv mlym6i5cn",children:e.filter(r=>!e0(r.annotations??[])).slice(0,3).map(r=>d.jsx(hD,{viewInfo:r,onClick:()=>{t(r)}},r.name))})]})})}const xD={header:{paddingBottom:"mly1l90r2v",$$css:!0}};var c0="Tabs",[yD,cL]=Kt(c0,[Sa]),p2=Sa(),[vD,d0]=yD(c0),m2=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,onValueChange:s,defaultValue:i,orientation:l="horizontal",dir:a,activationMode:u="automatic",...c}=e,p=Xs(a),[m,g]=dr({prop:o,onChange:s,defaultProp:i});return d.jsx(vD,{scope:r,baseId:jt(),value:m,onValueChange:g,orientation:l,dir:p,activationMode:u,children:d.jsx(ee.div,{dir:p,"data-orientation":l,...c,ref:t})})});m2.displayName=c0;var h2="TabsList",g2=f.forwardRef((e,t)=>{const{__scopeTabs:r,loop:o=!0,...s}=e,i=d0(h2,r),l=p2(r);return d.jsx(R1,{asChild:!0,...l,orientation:i.orientation,dir:i.dir,loop:o,children:d.jsx(ee.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:t})})});g2.displayName=h2;var x2="TabsTrigger",y2=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,disabled:s=!1,...i}=e,l=d0(x2,r),a=p2(r),u=w2(l.baseId,o),c=C2(l.baseId,o),p=o===l.value;return d.jsx(A1,{asChild:!0,...a,focusable:!s,active:p,children:d.jsx(ee.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":c,"data-state":p?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:u,...i,ref:t,onMouseDown:q(e.onMouseDown,m=>{!s&&m.button===0&&m.ctrlKey===!1?l.onValueChange(o):m.preventDefault()}),onKeyDown:q(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&l.onValueChange(o)}),onFocus:q(e.onFocus,()=>{const m=l.activationMode!=="manual";!p&&!s&&m&&l.onValueChange(o)})})})});y2.displayName=x2;var v2="TabsContent",b2=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,forceMount:s,children:i,...l}=e,a=d0(v2,r),u=w2(a.baseId,o),c=C2(a.baseId,o),p=o===a.value,m=f.useRef(p);return f.useEffect(()=>{const g=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(g)},[]),d.jsx(Qe,{present:s||p,children:({present:g})=>d.jsx(ee.div,{"data-state":p?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":u,hidden:!g,id:c,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:g&&i})})});b2.displayName=v2;function w2(e,t){return`${e}-trigger-${t}`}function C2(e,t){return`${e}-content-${t}`}var bD=m2,wD=g2,Gi=y2,Ui=b2;const CD={compiling:"Compiling",running:"Running",finished:"Finished",canceled:"Canceled"},_D="start",SD="bottom";function kD({runInfo:e}){return d.jsxs(Mo,{children:[d.jsx(Io,{asChild:!0,children:d.jsxs("div",{...A.props(wu.triggerContentContainer,Y.body),children:[d.jsx(ie,{name:"info",color:"disabled"})," Query run details"]})}),d.jsx(Oo,{children:d.jsx(Po,{side:SD,align:_D,children:d.jsx(i0,{customStyle:wu.card,children:d.jsxs(d.Fragment,{children:[e.customContent,e?.performanceAspects&&Object.entries(e.performanceAspects).map(([t,r])=>d.jsx("div",{children:Object.entries(r).map(([o,s])=>d.jsxs("div",{children:[d.jsxs("span",{...A.props(Y.emphasized),children:[o,":"]})," ",d.jsx("span",{...A.props(Y.body),children:s})]},o))},t)),e.queryLink&&d.jsx("a",{href:e.queryLink.href,target:"_blank",rel:"noreferrer",...A.props(wu.link,Y.link),children:e.queryLink.linkText})]})})})})]})}const wu={card:{maxWidth:"mly1dc814f",$$css:!0},triggerContentContainer:{display:"mly3nfvp2",alignItems:"mly6s0dn4",justifyContent:"mlylqzeqv",$$css:!0},link:{backgroundColor:"mlyjbqb8w",border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,cursor:"mly1ypdohk",textDecoration:"mly1hl2dhg",textDecorationColor:null,textDecorationLine:null,textDecorationStyle:null,textDecorationThickness:null,$$css:!0}};function ED({source:e,query:t}){let r;switch(t.executionState){case"compiling":case"running":r=d.jsx(jD,{onCancel:t.onCancel,executionState:t.executionState,queryResolutionStartMillis:t.queryResolutionStartMillis});break;case"canceled":r=d.jsx("div",{className:"mly78zum5 mlydt5ytf mlyh8yej3 mly5yr21d mlyl56j7k mly6s0dn4 mly1665zp3",children:d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly6s0dn4 mlyl56j7k mly167g77z",children:[d.jsx("div",{...A.props(Y.emphasized),children:"Query Canceled"}),d.jsx("div",{...A.props(Y.body),children:"Your query was canceled; nothing to display."})]})});break;case"finished":r=d.jsx(RD,{source:e,response:t.response});break}return r}function RD({source:e,response:t}){let r=null;return t?t.error||t.messages?r=d.jsx(AD,{messages:[...t.error?[t.error]:[],...t.messages?t.messages:[]]}):t.result||(r=d.jsx(ac,{title:"Empty Result",variant:"critical"})):r=d.jsx(ac,{title:"Empty Response",variant:"critical"}),d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly167g77z mly5yr21d",children:[t?.runInfo&&d.jsx(kD,{runInfo:t.runInfo}),r,t?.result&&d.jsx(TD,{result:t.result,source:e})]})}function AD({messages:e}){return d.jsx("div",{children:e.map(t=>{let r=null;if(t.customRenderer)r=t.customRenderer;else{let o;switch(t.severity){case"DEBUG":case"INFO":o="info";break;case"WARN":o="warn";break;case"ERROR":case"FATAL":o="critical";break;default:o="critical"}r=d.jsx(ac,{title:t.title,description:t.description,variant:o,children:t.content})}return d.jsx("div",{children:r},t.title)})})}function TD({result:e,source:t}){const{onDrill:r,setQuery:o}=f.useContext(be),s=f.useRef(null),i=f.useMemo(()=>new _u.MalloyRenderer().createViz({onDrill:u=>{if(r){r(u);return}const{stableQuery:c}=u,p=new J.ASTQuery({query:c,source:t});o?.(p.build())},tableConfig:{enableDrill:!0}}),[r,t,o]);return f.useEffect(()=>{s.current&&i&&(i.setResult(e),i.render(s.current))},[i,e]),i?d.jsx("div",{ref:s,className:"mly5yr21d mly1n2onr6 mly1ja2u2z mlyb3r6kr mlyh8yej3"}):d.jsx("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4",children:d.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyl56j7k mly6s0dn4 mly167g77z",children:[d.jsx(vg,{size:"large"}),d.jsx("div",{...A.props(Y.emphasized),children:"Rendering..."})]})})}function jD({onCancel:e,executionState:t,queryResolutionStartMillis:r}){const o=DD(r);return d.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyh8yej3 mly5yr21d mlyl56j7k mly6s0dn4 mly1665zp3",children:[d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly6s0dn4 mlyl56j7k mly167g77z",children:[d.jsx(vg,{size:"large",customStyle:LD.spinner}),d.jsx("div",{...A.props(Y.emphasized),children:`${CD[t]} query...`}),d.jsx("div",{...A.props(Y.body),children:`Total time elapsed: ${(o/1e3).toFixed(0)}s`})]}),d.jsx(ke,{onClick:e,label:"Cancel Query"})]})}function DD(e){const[t,r]=f.useState(Date.now()-e);return f.useEffect(()=>{const o=setInterval(()=>{r(Date.now()-e)},1e3);return()=>clearInterval(o)},[e]),t}const LD={spinner:{marginBottom:"mly1e56ztr",$$css:!0}};function ND({query:e,debug:t}){var r;const[o,s]=f.useState((r=t?.debuggers)==null?void 0:r.at(0));return d.jsxs("div",{children:[!!t?.debuggers.length&&d.jsxs("div",{className:"mly78zum5 mly167g77z mly6s0dn4",children:[d.jsx("div",{...A.props(Y.largeBody),children:"Debug with:"}),d.jsx(yn,{options:t.debuggers.map(i=>({label:i,value:i})),value:o,onChange:i=>s(i)}),d.jsx(ke,{variant:"default",label:"Run",isDisabled:!o,onClick:()=>o&&t.onDebugQuery(e,o)})]}),d.jsx(Ju,{code:JSON.stringify(e,null,2),language:"json"})]})}const MD=800;function ID({text:e,label:t}){const[r,o]=f.useState(!1);return f.useEffect(()=>{if(!r)return()=>{};const s=setTimeout(()=>{o(!1)},MD);return()=>{clearTimeout(s),o(!1)}},[r]),d.jsx(ke,{variant:"flat",size:"compact",label:r?"Copied!":t,icon:"copy",isDisabled:r,onClick:()=>{navigator.clipboard.writeText(e).then(()=>o(!0))}})}var Pe=function(e){return e.RESULTS="Results",e.MALLOY="Malloy",e.SQL="SQL",e.RAW_QUERY="Raw Query",e}(Pe||{});function dL({source:e,draftQuery:t,setDraftQuery:r,submittedQuery:o,options:s}){var i,l,a;const[u,c]=f.useState(Pe.MALLOY),p=(i=hm(e,t))==null?void 0:i.toMalloy(),m=e.schema.fields.filter(x=>x.kind==="view"),g=o!==void 0;!g&&(u===Pe.RESULTS||u===Pe.SQL)&&c(Pe.MALLOY),f.useEffect(()=>{c(Pe.RESULTS)},[o]);const h=(()=>{var x,v;return u===Pe.MALLOY&&p?p:u===Pe.SQL&&((v=(x=o?.response)==null?void 0:x.result)!=null&&v.sql)?o.response.result.sql:u===Pe.RAW_QUERY?JSON.stringify(t):null})();return t||o?d.jsxs(bD,{...A.props(on.tabRoot,Y.body),value:u,onValueChange:x=>c(x),children:[d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly6s0dn4 mly153ncpu",children:[d.jsxs(wD,{className:"mly78zum5 mly6s0dn4 mly167g77z",children:[d.jsx(Gi,{value:Pe.RESULTS,disabled:!g,...A.props(Y.body,on.tab,!g&&on.disabledTab),title:g?void 0:"Run a query to see the results.",children:Pe.RESULTS}),d.jsx(Gi,{value:Pe.MALLOY,...A.props(Y.body,on.tab),children:Pe.MALLOY}),d.jsx(Gi,{value:Pe.SQL,disabled:!g,...A.props(Y.body,on.tab,!g&&on.disabledTab),title:g?void 0:"Run a query to see generated SQL.",children:Pe.SQL}),s?.showRawQuery&&d.jsx(Gi,{value:Pe.RAW_QUERY,...A.props(Y.body,on.tab),children:Pe.RAW_QUERY})]}),u!==Pe.RESULTS&&h&&d.jsx(ID,{text:h,label:"Copy Code"})]}),d.jsxs("div",{className:"mly1iyjqo2 mlyb3r6kr",children:[d.jsx(Ui,{value:Pe.RESULTS,className:"mlyc7ga6q mlyh8yej3 mly5yr21d mly9f619",children:o&&d.jsxs(d.Fragment,{children:[t&&o&&!OD(t,o.query)&&d.jsxs("div",{...A.props(on.warning,Y.body),children:[d.jsx(ie,{name:"warning",color:"warning",customStyle:on.warningIcon}),d.jsxs("div",{children:[d.jsx("span",{children:"Query was updated. Run query to see new result or"}),d.jsx("button",{...A.props(on.warningAction,Y.link),onClick:()=>{r(o.query)},children:" revert "}),d.jsx("span",{children:"to the last run query."})]})]}),d.jsx(ED,{source:e,query:o})]})}),d.jsx(Ui,{value:Pe.MALLOY,className:"mlywp4ipm mlyh8yej3 mly5yr21d mly9f619",children:d.jsx(Ju,{code:p??"",language:"malloy"})}),d.jsx(Ui,{value:Pe.SQL,className:"mlywp4ipm mlyh8yej3 mly5yr21d mly9f619",children:((a=(l=o?.response)==null?void 0:l.result)==null?void 0:a.sql)&&d.jsx(Ju,{code:o.response.result.sql,language:"sql"})}),s?.showRawQuery&&d.jsx(Ui,{value:Pe.RAW_QUERY,className:"mlywp4ipm mlyh8yej3 mly5yr21d mly9f619",children:d.jsx(ND,{query:t,debug:s.debugOptions?{debuggers:s.debugOptions.debuggers,onDebugQuery:s.debugOptions.onDebugQuery}:void 0})})]})]}):d.jsx(gD,{views:m,onSelectView:x=>r(PD(x.name,e.name))})}function OD(e,t){return JSON.stringify(e)===JSON.stringify(t)}function PD(e,t){return{definition:{kind:"arrow",source:{kind:"source_reference",name:t},view:{kind:"view_reference",name:e}}}}const on={tabRoot:{height:"mly5yr21d",width:"mlyh8yej3",display:"mly78zum5",flexDirection:"mlydt5ytf",$$css:!0},tab:{border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,backgroundColor:"mlyjbqb8w",cursor:"mly1ypdohk",":is([data-state='active'])_color":"mlyb0tsu4",":is([data-state='active'])_fontWeight":"mly1uifvsu",":is([data-state='active'])_backgroundColor":"mly14vaotu",$$css:!0},disabledTab:{color:"mly1jwwhvr",cursor:"mly1ipiool",$$css:!0},warning:{display:"mly78zum5",alignItems:"mly6s0dn4",marginBottom:"mly1e56ztr",$$css:!0},warningAction:{backgroundColor:"mlyjbqb8w",border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,cursor:"mly1ypdohk",$$css:!0},warningIcon:{paddingRight:"mlyy13l1i",paddingInlineStart:null,paddingInlineEnd:null,$$css:!0}};function ks(e,t=[]){return e.flatMap(r=>{switch(r.kind){case"view":return Tx(r)?[]:t.length>0?[]:[{path:t,field:r}];case"measure":case"dimension":return r.type.kind==="array_type"&&r.type.element_type.kind==="record_type"?[{path:t,field:r},...ks(r.type.element_type.fields.map(o=>({kind:r.kind,...o})),[...t,r.name])]:r.type.kind==="record_type"?[{path:t,field:r},...ks(r.type.fields.map(o=>({kind:r.kind,...o})),[...t,r.name])]:[{path:t,field:r}];case"join":return ks(r.schema.fields,[...t,r.name]);default:return[]}})}function FD(e){return ks(e.schema.fields)}function _2(e,t){return Object.values(t.reduce((r,o)=>{const s=[e.name,...o.path].join(".");return r[s]||(r[s]={groupPath:o.path,items:[]}),r[s].items.push(o),r},{}))}function S2(e){return Object.values(e.reduce((t,r)=>{const o=r.field.kind;return t[o]||(t[o]={group:o,items:[]}),t[o].items.push(r),t},{}))}const BD={view:"Views",measure:"Measures",dimension:"Dimensions"};function $D(e,t,r){const o=La(r,t.name),i=f.useMemo(()=>{const{fields:p}=Pr(e),m=r.join(".");return ks(p).filter(g=>g.path.join(".")===m)},[r,e]).find(p=>t.name===p.field.name),l=f.useMemo(()=>{const p=Mn(e);return i?.field.kind!=="dimension"?"Grouping is only available on a dimenion.":p?.hasField(t.name,r)?"Cannot group by a field already in the view.":fr(t)?"":"This field is annotated with #NO_UI."},[e,i?.field.kind,t,r]),a=f.useMemo(()=>{if(i?.field.kind!=="measure")return"Aggregation only supports measure fields.";const p=Mn(e);return p?.hasField(t.name,r)?"This field is already used in the query.":fr(t)?"":"This field is annotated with #NO_UI."},[i?.field.kind,e,t,r]),u=f.useMemo(()=>i?["dimension","measure"].includes(i.field.kind)?zD.includes(i.field.type.kind)?"":"Filtering only supports string, boolean, number, date and time fields.":"Filtering is only available for a dimension or measure.":`Unexpected Error: Could not find a field ${o}.`,[o,i]),c=f.useMemo(()=>{if(!i)return`Unexpected Error: Could not find a field ${o}.`;const p=Mn(e);return p&&wj(p,r,t.name)?"Query is already ordered by this field.":!p||!_j(p,r,t.name)?"Order by is only available for fields in the output.":["dimension","measure"].includes(i.field.kind)?qD.includes(i.field.type.kind)?"":"Order By only supports string, boolean, number, date and time fields.":"Order By is only available for dimension or measure fields."},[i,e,r,t.name,o]);return{isGroupByAllowed:!l,groupByDisabledReason:l,isAggregateAllowed:!a,aggregateDisabledReason:a,isFilterAllowed:!u,filterDisabledReason:u,isOrderByAllowed:!c,orderByDisabledReason:c}}const zD=["string_type","boolean_type","number_type","date_type","timestamp_type"],qD=["string_type","number_type","boolean_type","date_type","timestamp_type"];function k2({field:e,path:t,viewDef:r}){const{rootQuery:o,setQuery:s}=Ie.useContext(be),{focusedNestView:i}=Vs(),l=i??r,{groupByDisabledReason:a,aggregateDisabledReason:u,filterDisabledReason:c,orderByDisabledReason:p}=$D(l,e,t),[m,g]=f.useState(),[h,x]=f.useState(!1),v=(w,C)=>{(e.kind==="dimension"||e.kind==="measure")&&(w==="groupBy"&&!a?Na(l,e,t):w==="aggregate"&&!u?Ma(l,e,t):w==="orderBy"&&!p?kj(l,t,e.name):w==="filter"&&!c&&C&&l2(l,e,t,C),s?.(o?.build()))},y=()=>{e.kind==="view"&&o?.isEmpty()&&(o?.setView(e.name),s?.(o?.build()))},b=()=>{e.kind==="view"&&(u0(l,e),s?.(o?.build()))};return d.jsx(jr,{field:e,hoverActions:e.kind==="view"?d.jsxs(d.Fragment,{children:[d.jsx(Zn,{icon:"insert",disabled:!o?.isEmpty(),onClick:y,tooltip:o?.isEmpty()?"Add view":"Can only add a view to an empty query.",onTooltipOpenChange:x}),d.jsx(Zn,{icon:"nest",onClick:b,tooltip:"Add as new nested query",onTooltipOpenChange:x})]}):e.kind==="measure"?d.jsxs(d.Fragment,{children:[d.jsx(Zn,{icon:"aggregate",tooltip:u||"Add as aggregate",disabled:!!u,onClick:()=>v("aggregate"),onTooltipOpenChange:x}),d.jsx(Gs,{fieldInfo:e,path:t,setFilter:w=>v("filter",w),trigger:d.jsx(Zn,{icon:"filter",tooltip:c||"Add as filter",disabled:!!c,onTooltipOpenChange:x}),onOpenChange:g,layoutProps:{align:"start"}}),d.jsx(Zn,{icon:"orderBy",tooltip:p||"Add as order by",disabled:!!p,onClick:()=>v("orderBy"),onTooltipOpenChange:x})]}):e.kind==="dimension"?d.jsxs(d.Fragment,{children:[d.jsx(Zn,{icon:"groupBy",tooltip:a||"Add as group by",disabled:!!a,onClick:()=>v("groupBy"),onTooltipOpenChange:x}),d.jsx(Gs,{fieldInfo:e,path:t,setFilter:w=>v("filter",w),trigger:d.jsx(Zn,{icon:"filter",tooltip:c||"Add as filter",disabled:!!c,onTooltipOpenChange:x}),onOpenChange:g,layoutProps:{align:"start"}}),d.jsx(Zn,{icon:"orderBy",tooltip:p||"Add as order by",disabled:!!p,onClick:()=>v("orderBy"),onTooltipOpenChange:x})]}):null,onClick:e.kind==="dimension"&&!a?()=>v("groupBy"):e.kind==="measure"&&!u?()=>v("aggregate"):e.kind==="view"?()=>{o?.isEmpty()?y():b()}:void 0,hoverActionsVisible:m||h,tooltip:d.jsx(Ws,{field:e,path:t}),tooltipProps:{side:"right",align:"start",alignOffset:28}})}function Zn({tooltip:e,onTooltipOpenChange:t,...r}){return d.jsxs(jo,{delayDuration:300,onOpenChange:t,children:[d.jsx(Do,{asChild:!0,children:d.jsx(ke,{variant:"flat",size:"compact",...r})}),d.jsx(Lo,{children:d.jsx(No,{sideOffset:8,...A.props(Y.body,Pn.default),children:e})})]})}const Np=["dimension","measure","view"];function WD({source:e,items:t}){const r=f.useMemo(()=>S2(t).sort((i,l)=>Np.indexOf(i.group)-Np.indexOf(l.group)).map(i=>({...i,items:_2(e,i.items)})),[e,t]),{rootQuery:o}=f.useContext(be),s=o?.definition;return s instanceof J.ASTArrowQueryDefinition?d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly1cy8zhl mlyou54vl mlye8ttls mly10cdfl8",children:[d.jsx("div",{...A.props(Y.body,Mp.heading),children:`${t.length} result${t.length>1?"s":""}`}),r.map(({group:i,items:l})=>d.jsxs("div",{children:[d.jsx("div",{...A.props(Y.body,Mp.groupTitle),children:BD[i]}),d.jsx("div",{className:"mly78zum5 mlydt5ytf mlyou54vl",children:l.map(({groupPath:a,items:u})=>f.createElement("div",{className:"mly78zum5 mlydt5ytf mly1jnr06f",key:a.join(".")},d.jsx("div",{...A.props(Y.supporting),children:a.join(" > ")}),u.map(({field:c,path:p})=>d.jsx(k2,{field:c,path:p,viewDef:s},[...p,c.name].join(".")))))})]},i))]}):null}const Mp={heading:{fontWeight:"mly1xlr1w8",$$css:!0},groupTitle:{fontWeight:"mly1xlr1w8",fontSize:"mlyfifm61",$$css:!0}},GD=(e,t)=>t.at(-1)??e.name,UD=(e,t)=>t.length>0?`joined to ${[...t.slice(0,-1),e.name].join(" > ")}`:void 0;function Cu({source:e,fieldItems:t,fieldGroupType:r}){const o=f.useMemo(()=>e?S2(t).map(a=>({...a,items:_2(e,a.items)})):[],[e,t]),s=f.useMemo(()=>{var a;return((a=o.find(({group:u})=>u===r))==null?void 0:a.items)??[]},[o,r]),{rootQuery:i}=f.useContext(be),l=i?.definition;return l instanceof J.ASTArrowQueryDefinition?d.jsx("div",{className:"mly78zum5 mlydt5ytf mly167g77z",children:d.jsx(kv,{children:s.map((a,u)=>d.jsx(R4,{label:GD(e,a.groupPath),sublabel:UD(e,a.groupPath),isInitiallyExpanded:u===0,children:a.items.map(({field:c,path:p})=>d.jsx(k2,{field:c,path:p,viewDef:l},[...p,c.name].join(".")))},a.groupPath.join(".")))})}):null}function fL({onRefresh:e}){const{source:t}=f.useContext(be),[r,o]=f.useState(""),{onCollapse:s}=f.useContext(Ra),i=f.useMemo(()=>t?FD(t).filter(m=>!e0(m.field.annotations??[])):[],[t]),l=i.filter(m=>m.field.kind==="view"),a=i.filter(m=>m.field.kind==="measure"),u=i.filter(m=>m.field.kind==="dimension"),c=f.useMemo(()=>{if(r){const m=r.toLocaleLowerCase();return i.filter(g=>g.field.name.toLocaleLowerCase().includes(m))}return[]},[i,r]),p=!!r;return t?d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly5yr21d mly1gzqxud mlyfuqftd",children:[d.jsxs("div",{...A.props(Y.body,Ip.header),children:[d.jsxs("div",{className:"mly78zum5 mly1qughib",children:[d.jsxs("div",{className:"mly78zum5 mly6s0dn4 mly167g77z mlydqdrvq mlyb3r6kr",children:[d.jsx(ie,{name:"database",color:"gray"}),d.jsx("div",{...A.props(Y.largeBody,Ip.title),children:t.name})]}),d.jsxs("div",{className:"mly78zum5",children:[d.jsx(ke,{icon:"refresh",tooltip:"Refresh the source",onClick:e,size:"compact",variant:"flat"}),s&&d.jsx(ke,{icon:"sidebarCollapse",tooltip:"Close the source panel",onClick:s,size:"compact",variant:"flat"})]})]}),d.jsx(oa,{value:r,onChange:m=>o(m),placeholder:"Search",size:"compact",icon:"search",hasClear:!0})]}),d.jsx(lo,{}),d.jsx("div",{className:"mly78zum5 mlydt5ytf mlyysyzu8 mly1iyjqo2",children:p?d.jsx(WD,{source:t,items:c}):d.jsxs(Pk,{defaultExpandedItemId:"views",children:[d.jsx(pu,{id:"dimensions",label:"Dimensions",startIcon:d.jsx(ie,{name:"dimension",color:"cyan"}),badge:d.jsx(er,{label:u.length.toString(),color:"cyan"}),children:d.jsx(Cu,{source:t,fieldItems:i,fieldGroupType:"dimension"})},"dimensions"),d.jsx(pu,{id:"measures",label:"Measures",startIcon:d.jsx(ie,{name:"measure",color:"green"}),badge:d.jsx(er,{label:a.length.toString(),color:"green"}),children:d.jsx(Cu,{source:t,fieldItems:i,fieldGroupType:"measure"})},"measures"),d.jsx(pu,{id:"views",label:"Views",startIcon:d.jsx(ie,{name:"view",color:"purple"}),badge:d.jsx(er,{label:l.length.toString(),color:"purple"}),children:d.jsx(Cu,{source:t,fieldItems:i,fieldGroupType:"view"})},"views")]})})]}):null}const Ip={header:{display:"mly78zum5",flexDirection:"mlydt5ytf",padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},title:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",fontWeight:"mly1xlr1w8",color:"mly1ue28sr",$$css:!0}};function YD({icon:e,title:t,tooltip:r}){const{onExpand:o}=f.useContext(Ra);return d.jsx("div",{className:"mly78zum5 mlydt5ytf mly7a106z mlylqzeqv mly5yr21d mly1gzqxud mlyfuqftd",children:d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly6s0dn4 mlyl56j7k mly167g77z mlye8ttls",children:[d.jsx(ke,{icon:e,variant:"flat",size:"compact",tooltip:r,onClick:o}),t&&d.jsx("div",{...A.props(Y.body,HD.title),children:t})]})})}const HD={title:{fontWeight:"mly1xlr1w8",cursor:"mlyt0e3qv","writing-mode":"mly35i7",$$css:!0}};function pL({isInitiallyExpanded:e=!0,initialWidth:t,minWidth:r,icon:o,title:s,children:i}){const[l,a]=f.useState(e),[u,c]=f.useState(t),p=!l;return d.jsxs(Ra.Provider,{value:{onExpand:()=>a(!0),onCollapse:()=>a(!1)},children:[d.jsxs("div",{...{0:{className:"mly1n2onr6 mly5yr21d mly3psx0u"},1:{className:"mly1n2onr6 mly5yr21d mly3psx0u mly1s85apg"}}[!!p<<0],style:{width:`${u}px`},children:[i,d.jsx(Mk,{width:u,minWidth:r,onWidthChange:c})]}),p&&d.jsx(YD,{icon:o,title:s})]})}export{JD as MalloyExplorerProvider,dR as QueryActionBar,pD as QueryEditor,uL as QueryPanel,pL as ResizableCollapsiblePanel,Mk as ResizeBar,dL as ResultPanel,fL as SourcePanel};
|
|
287
|
+
`).map(E=>({value:E})),connection_name:""});const w=b.getMetadata();if(w){const E=b.getActivePlugin(w.getRootField().key);if(E){if(_u.isCoreVizPluginInstance(E)){i(E.name),a(E);return}E.name==="error"&&c(E.getMetadata().message)}}const C=t.getTag(),k=((y=t.getTag(dc).tag("viz"))==null?void 0:y.text())??yR(Gd(C)??"table");i(k),a(void 0)},[o,t,g]);const h=y=>{t.setTagProperty(["viz"],y,dc),r?.(e.build())},x=mR.map(y=>({icon:d.jsx(ie,{name:`viz_${y}`}),label:t2(y),value:y,onClick:()=>h(y)})),v=[d.jsx(sa,{customStyle:zi.first,icon:`viz_${s}`,value:s,items:x,onChange:y=>h(y)},"first")];return l&&v.push(d.jsx(Be,{icon:"gear",onClick:()=>m(!0),customStyle:zi.trigger,tooltip:"Edit Settings..."},"gear")),u&&v.push(d.jsx(Be,{icon:"warning",tooltip:u,customStyle:zi.trigger})),d.jsxs(d.Fragment,{children:[d.jsx(Zs,{customStyle:zi.group,children:v}),d.jsx(FT,{open:p,setOpen:m,rootQuery:e,plugin:l,view:t})]})}const zi={trigger:{height:"mly1ktj5wk",$$css:!0},group:{width:"mlyh8yej3",gridTemplateColumns:"mly52fmzj",$$css:!0},first:{justifyContent:"mlylqzeqv",$$css:!0}};function t2(e){return e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function $T({annotations:e}){const{tag:t}=Q2.Tag.fromTagLines(e.map(o=>o.value)),r=Gd(t)??"table";return d.jsx(Be,{label:t2(r),icon:`viz_${r}`})}function l0({viewInfo:e,isCompact:t,style:r}){const o=e.schema.fields.filter(s=>s.kind==="dimension");return d.jsx("div",{...A.props(yc.attributeTableContainer,r),children:d.jsx("table",{className:"mly1mwwwfo mly9f619 mlyh8yej3 mly5yr21d",children:d.jsxs("tbody",{children:[d.jsx(Ep,{attribute:"chart type",children:d.jsx("div",{className:"mly1rg5ohu",children:d.jsx($T,{annotations:e.annotations||[]})})}),d.jsx(Ep,{attribute:"output",children:o.map(s=>d.jsx("span",{children:d.jsx(jr,{field:s,size:t?"compact":"default"})},`${s.kind}::${s.name}`))})]})})})}function Ep({attribute:e,children:t}){return d.jsxs("tr",{className:"mlydpxx8g",children:[d.jsx("td",{...A.props(yc.attributeTableKeyCell,Y.supporting),children:d.jsx("div",{...A.props(yc.attributeTableKeyCellContent,Y.supporting),children:e})}),d.jsx("td",{className:"mly78zum5 mly1a02dak mly195vfkc",children:t})]})}const yc={attributeTableContainer:{padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,gap:"mly167g77z",rowGap:null,columnGap:null,borderRadius:"mly1q4ynmn",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,backgroundColor:"mly12nb83b",boxSizing:"mly9f619",width:"mlyh8yej3",height:"mly1m3v4wt",overflow:"mlyysyzu8",overflowX:null,overflowY:null,$$css:!0},attributeTableKeyCell:{whiteSpace:"mlyuxw1ft",width:"mly1f1nlb9",verticalAlign:"mly16dsc37",$$css:!0},attributeTableKeyCellContent:{height:"mly1fgtraw",display:"mly78zum5",alignItems:"mly6s0dn4",$$css:!0}};function zT({field:e,path:t}){const{topValues:r}=f.useContext(be),o=[...t,e.name].join("."),s=r?.find(i=>i.fieldName===o);return s?d.jsxs("div",{className:"mly12nb83b mly1iorvi4 mlyjkvuk6 mly163pfp mlyy13l1i mly12oqio5",children:[d.jsx("div",{className:"mly117nqv4",children:"Top Values"}),s.values.slice(0,6).map(i=>d.jsxs("div",{className:"mly78zum5 mly1qughib mly883omv mly6s0dn4",children:[d.jsx("div",{children:d.jsx("div",{className:"mlylyipyv mly6mezaz mlyb3r6kr mlyuxw1ft",children:i.fieldValue===null?d.jsx("span",{children:"∅"}):i.fieldValue})}),d.jsx("div",{className:"mly78zum5 mly883omv mly13a6bvl mly6s0dn4 mlyb3r6kr mly2lah0s mly9dwj6z",children:qT(i.weight)})]},i.fieldValue))]}):null}function qT(e){return e===null?"∅":e<1e3?e.toLocaleString():e<1e4?(e/1e3).toFixed(1)+"K":e<1e6?Math.floor(e/1e3).toLocaleString()+"K":e<1e7?(e/1e6).toFixed(1)+"M":Math.floor(e/1e3).toLocaleString()+"M"}function Rp({children:e,ref:t,customStyle:r,isTooltipContent:o=!1,...s}){const i=e.split(/((?:http|https):\/\/\S*)\b/),l=i.length>1,a=i.map((u,c)=>u.match(/^(http|https):/)?d.jsx("a",{href:u,...{0:{},1:{className:"mly198oq2i"}}[!!o<<0],children:u},c):u);return d.jsx("div",{ref:t,...A.props(l&&Ap.preWrap,l&&Ap.breakWord,r),...s,children:a})}const Ap={preWrap:{whiteSpace:"mly126k92a",$$css:!0},breakWord:{wordWrap:"mly1vvkbs",$$css:!0}};function n2({text:e,containerRef:t,align:r="center",side:o="top"}){const s=f.useRef(null),[i,l]=f.useState(!1),[a,u]=f.useState(!1),c=()=>(s.current&&s.current.scrollHeight>s.current.clientHeight)??!1;return d.jsxs(Mo,{open:(i||a)&&c(),children:[d.jsx(Io,{asChild:!0,children:d.jsx(Rp,{ref:s,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onPointerMove:p=>p.preventDefault(),customStyle:[Y.supporting,WT.text],children:e})}),d.jsx(Oo,{container:t?.current,children:d.jsx(Po,{side:o,align:r,children:d.jsx(Rp,{onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),isTooltipContent:!0,customStyle:[Y.body,Pn.default],children:e})})})]})}const WT={text:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,display:"mly104kibb","-webkit-line-clamp":"mly1gzmk7r","-webkit-box-orient":"mly1ua5tub",$$css:!0}};function Ws({field:e,path:t}){const{source:r}=f.useContext(be),o=f.useRef(null),s=[r?.name??"",...t].join(" > "),l=Ax(e.annotations??[])??"";let a=null;return e.kind==="view"?a=d.jsx(l0,{viewInfo:e,isCompact:!0,style:qi.viewAttributeTable}):e.kind==="dimension"&&(a=d.jsx(zT,{field:e,path:t})),d.jsxs(i0,{customStyle:qi.container,children:[d.jsxs("div",{ref:o,children:[d.jsx("div",{className:"mly12nagc",children:d.jsx(pT,{field:e})}),d.jsx("div",{...A.props(Y.supporting,qi.path),children:s}),d.jsx("div",{...A.props(Y.emphasized,qi.title),children:e.name}),l&&d.jsx(n2,{text:l,containerRef:o})]}),a&&d.jsx("div",{children:a})]})}const qi={container:{width:"mlybl57os",maxHeight:"mlyq3t0pi",$$css:!0},path:{color:"mly9dwj6z",$$css:!0},viewAttributeTable:{height:"mlyn866dk",$$css:!0},title:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",$$css:!0}},Re={filterDialog:{display:"mly78zum5",flexDirection:"mlydt5ytf",padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,minWidth:"mlyytlacd",maxWidth:"mly1pdpmub",gap:"mly167g77z",rowGap:null,columnGap:null,minHeight:"mly2lwn1j",maxHeight:"mly3d5gib",$$css:!0},filterDialogHeader:{fontWeight:"mly117nqv4",$$css:!0},filterTypeDropdown:{width:"mlyh8yej3",$$css:!0},buttonGroup:{display:"mly78zum5",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editor:{display:"mly78zum5",flexDirection:"mlydt5ytf",gap:"mly167g77z",rowGap:null,columnGap:null,minHeight:"mly2lwn1j",$$css:!0},editorRow:{display:"mlyrvj5dj",gridAutoFlow:"mly1mt1orb",gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},editorCell:{flexGrow:"mly1iyjqo2",$$css:!0},input:{border:"mly2yh2zd",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,color:"mlyizdh9v",padding:"mly9cpjcd",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,borderRadius:"mly1sxf85j",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,minWidth:"mlygc0pbm",$$css:!0}};function GT(e){return e.operator==="null"&&e.not?"-null":e.operator}function UT({filter:e,setFilter:t}){const r=GT(e),o=s=>{t(s==="-null"?{operator:"null",not:!0}:{operator:s})};return d.jsx("div",{...A.props(Re.editor),children:d.jsx(yn,{value:r,onChange:o,options:[{value:"true",label:"is true"},{value:"false",label:"is false"},{value:"null",label:"is null"},{value:"-null",label:"is not null"},{value:"false_or_null",label:"is false or null"}],customStyle:Re.filterTypeDropdown})})}function YT(e,t){const{topValues:r}=f.useContext(be);if(r&&e){let o=r;if(t){const s=r.find(i=>i.fieldName===t);s?o=[s]:o=[]}return e=e.toLowerCase(),{searchResults:o.reduce((s,i)=>(i.values.filter(l=>{var a;return((a=l.fieldValue)==null?void 0:a.toLowerCase().includes(e))??!1}).forEach(l=>{s.push({fieldValue:l.fieldValue,fieldName:i.fieldName,fieldType:"string",weight:l.weight})}),s),[]),isLoading:!1}}return{searchResults:void 0,isLoading:!1}}function r2({onClick:e,search:t,filter:r,fieldPath:o,ref:s,customStyle:i,showPath:l=!0,hideNoMatchMessage:a=!1}){const{searchResults:u}=YT(t,o),c=f.useMemo(()=>u&&u.filter(p=>p.fieldType==="string"&&p.fieldValue!==null).filter(p=>r?r(p.fieldValue??""):!0).sort((p,m)=>m.weight-p.weight).slice(0,100),[u,r]);return d.jsx("div",{ref:s,...A.props(i),children:c?.length?c.map(p=>d.jsxs("div",{role:"menuitem",tabIndex:-1,...A.props(dt.item,o2.valueItem),onClick:()=>e(p),children:[d.jsx(HT,{value:p}),l?d.jsx("div",{className:"mly1jwwhvr",children:p.fieldName}):null]},p.fieldName+":"+p.fieldValue)):t&&!a?d.jsx("div",{...A.props(dt.item),"data-disabled":"true",children:"No matching values"}):null})}function HT({value:e}){return d.jsx(Be,{label:e.fieldValue??"∅",icon:"filter",color:"purple",customStyle:o2.token})}const o2={valueItem:{height:"mly1qx5ct2",paddingTop:"mly1y1aw1k",paddingBottom:"mlywib8y2",display:"mly78zum5",justifyContent:"mly1qughib",cursor:"mly1ypdohk",$$css:!0},token:{cursor:"mly1ypdohk",$$css:!0}},_s={is_equal_to:{operator:"="},starts_with:{operator:"starts"},ends_with:{operator:"ends"},contains:{operator:"contains"},matches:{operator:"~"},is_blank:{operator:"empty"},is_null:{operator:"null"},is_not_equal_to:{operator:"=",not:!0},does_not_start_with:{operator:"starts",not:!0},does_not_end_with:{operator:"ends",not:!0},does_not_contain:{operator:"contains",not:!0},does_not_match:{operator:"~",not:!0},is_not_blank:{operator:"empty",not:!0},is_not_null:{operator:"null",not:!0}};function VT(e){for(const t in _s){const r=t,o=_s[r],s="not"in e?e.not:!1,i="not"in o?o.not:!1;if(o.operator===e.operator&&i===s)return r}throw new Error(`Unhandled string filter type ${e.operator}`)}const XT=({filter:e,setFilter:t,field:r,path:o})=>{e??(e={operator:"=",values:[]});const[s,i]=f.useState(""),l=f.useRef(null),a=VT(e),[u,c]=f.useState(e),p=g=>{m(QT(u,g))},m=g=>{c(g),t(g)};return d.jsxs("div",{...A.props(Re.editor),children:[d.jsx(yn,{value:a,onChange:p,options:[{value:"is_equal_to",label:"is"},{value:"starts_with",label:"starts with"},{value:"ends_with",label:"ends with"},{value:"contains",label:"contains"},{value:"is_blank",label:"is blank"},{value:"is_null",label:"is null"},{value:"matches",label:"matches"},{value:"is_not_equal_to",label:"is not"},{value:"does_not_start_with",label:"does not start with"},{value:"does_not_end_with",label:"does not end with"},{value:"does_not_contain",label:"does not contain"},{value:"is_not_blank",label:"is not blank"},{value:"is_not_null",label:"is not null"},{value:"does_not_match",label:"does not match"}],customStyle:Re.filterTypeDropdown},"type"),u.operator==="="||u.operator==="starts"||u.operator==="ends"||u.operator==="contains"?d.jsxs(d.Fragment,{children:[d.jsx(Tp,{values:u.values,setValues:g=>m({...u,values:g}),searchValue:s,setSearchValue:i,focusElement:l},"editor"),d.jsx("div",{style:{minHeight:0,display:"grid"},children:d.jsx(r2,{ref:l,search:s,fieldPath:[...o,r.name].join("."),onClick:g=>{g.fieldValue&&(m({...u,values:[...u.values,g.fieldValue]}),i(""))},customStyle:JT.valueList,showPath:!1,filter:g=>!u.values.includes(g),hideNoMatchMessage:!0})})]}):u.operator==="~"?d.jsx(Tp,{values:u.escaped_values,setValues:g=>m({...u,escaped_values:g}),escape:!0,searchValue:s,setSearchValue:i},"editor"):null]})};function Tp({color:e,values:t,setValues:r,searchValue:o,setSearchValue:s,focusElement:i}){return d.jsx(hi,{color:e,values:t,setValues:r,value:o,setValue:s,focusElement:i})}function ZT(e){return e.replace(/(["%_^])/g,"^$1")}function KT(e){return e.replace(/\^(["%_^])/g,"$1")}function QT(e,t){const r="values"in e?e.values:"escaped_values"in e?e.escaped_values.map(KT):[];switch(t){case"is_equal_to":case"is_not_equal_to":case"starts_with":case"does_not_start_with":case"contains":case"does_not_contain":case"ends_with":case"does_not_end_with":return{..._s[t],values:r};case"is_blank":case"is_not_blank":case"is_null":case"is_not_null":return{..._s[t]};case"matches":case"does_not_match":return{..._s[t],escaped_values:r.map(ZT)}}}const JT={valueList:{maxHeight:"mly3d5gib",width:"mly1hfn5x7",overflow:"mlyysyzu8",overflowX:null,overflowY:null,$$css:!0}},jp=e=>e==="range",oo={is_equal_to:{operator:"="},is_not_equal_to:{operator:"=",not:!0},is_greater_than:{operator:">"},is_less_than:{operator:"<"},is_greater_than_or_equal_to:{operator:">="},is_less_than_or_equal_to:{operator:"<="},is_between:{operator:"range",startOperator:">=",endOperator:"<="},is_null:{operator:"null"},is_not_null:{operator:"null",not:!0}};function ej(e){for(const t in oo){const r=t,o=oo[r],s="not"in e?e.not:!1,i="not"in o?o.not:!1;if(o.operator===e.operator&&i===s)return r}throw new Error(`Unhandled number filter type ${e.operator}`)}const tj=({filter:e,setFilter:t})=>{e??(e={operator:"=",values:[]});const[r,o]=f.useState(jp(e.operator)?["0","0"]:["0"]),[s,i]=f.useState(""),l=c=>{const p=e,m=oj(e,c);m.operator!=="null"&&(!p.values||p.values.length===0)&&(m.values=["0"]),t(m)},a=ej(e);f.useEffect(()=>{if(i(""),jp(e.operator)){const c=e;o([c.startValue,c.endValue])}else{const c=e;if(c.values){let p=c.values;(!p||p.length===0)&&(p=["0"]),o(p)}else o(["0"])}},[e]);const u=c=>{o(c),c.some(m=>isNaN(parseFloat(m)))?i("Every value must be numeric."):c.length===0?i("Requires at least one numeric value."):(i(""),e.operator==="range"?t({...e,startOperator:">=",startValue:c[0],endOperator:"<=",endValue:c[1]}):t({...e,values:c}))};return d.jsxs(d.Fragment,{children:[d.jsx(yn,{value:a,onChange:l,options:[{value:"is_equal_to",label:"is"},{value:"is_not_equal_to",label:"is not"},{value:"is_greater_than",label:"is greater than"},{value:"is_less_than",label:"is less than"},{value:"is_greater_than_or_equal_to",label:"is greater than or equal to"},{value:"is_less_than_or_equal_to",label:"is less than or equal to"},{value:"is_between",label:"between"},{value:"is_null",label:"is null"},{value:"is_not_null",label:"is not null"}]}),s?d.jsx(Kl,{errorMessage:s}):null,nj(e,r,u)]})};function nj(e,t,r){switch(e.operator){case"!=":case"=":return d.jsx(rj,{values:t.map(String),setValues:o=>r(o),type:"number"});case">":case"<":case">=":case"<=":return d.jsx(vu,{value:t[0],setValue:o=>r([o]),type:"number"});case"range":return d.jsxs("div",{className:"mlyrvj5dj mly15396mt mly167g77z mlypqajaz",children:[d.jsx(vu,{value:t[0],setValue:o=>r([o,t[1]]),type:"number"}),d.jsx("span",{children:"to"}),d.jsx(vu,{value:t[1],setValue:o=>r([t[0],o]),type:"number"})]})}return null}function vu({value:e,setValue:t}){return d.jsx("input",{type:"number",value:e,onChange:r=>{t(r.target.value)},className:"mly27xtdb mly12oqio5 mlyizdh9v mly34lxi1"})}function rj({values:e,setValues:t}){return d.jsx(hi,{values:e,setValues:t,type:"number"})}function oj(e,t){const r="values"in e?e.values:[];switch(t){case"is_equal_to":case"is_not_equal_to":return{...oo[t],values:r};case"is_greater_than":case"is_less_than":case"is_greater_than_or_equal_to":case"is_less_than_or_equal_to":return{...oo[t],values:r.length>0?[r[0]]:r};case"is_null":case"is_not_null":return{...oo[t]};case"is_between":return{...oo[t],startValue:r.length>0?r[0]:"0",endValue:r.length>1?r[1]:"0"}}}function sj(e){return(e.operator==="null"||e.operator==="after"||e.operator==="before")&&e.not?`-${e.operator}`:e.operator}function ij(e,t){return e.operator==="last"||e.operator==="next"||e.operator==="in_last"?e.units:e.operator==="to"?Fi(e.fromMoment,t):e.operator==="before"?Fi(e.before,t):e.operator==="after"?Fi(e.after,t):e.operator==="in"?Fi(e.in,t):t?"second":"day"}const Dp=({filter:e,setFilter:t,isDateTime:r})=>{e??(e={operator:"last",n:"7",units:"day"});const[o,s]=f.useState(ij(e,r)),[i,l]=f.useState(e),a=m=>{u(pj(i,m,o))},u=m=>{l(m),t(m)},c=r?"second":"day",p=sj(i);return d.jsxs("div",{...A.props(Re.editor),children:[d.jsxs("div",{...A.props(Re.editorRow),children:[d.jsx(yn,{value:p,onChange:a,options:[{value:"in_last",label:"last"},{value:"last",label:"last complete"},{value:"next",label:"next complete"},{value:"-before",label:"starting"},{value:"after",label:"after"},{value:"before",label:"before"},{value:"-after",label:"through"},{value:"in",label:"is"},{value:"to",label:"between"},{value:"null",label:"null"},{value:"-null",label:"not null"}],customStyle:Re.editorCell}),lj(i,u,o,s,c)]}),aj(i,u,o,s,c)]})};function lj(e,t,r,o,s){switch(e.operator){case"in_last":case"last":case"next":return d.jsx(uj,{currentFilter:e,maxLevel:s,updateFilter:t,units:r,setUnits:o});case"after":case"before":case"to":case"in":return d.jsx(cj,{currentFilter:e,maxLevel:s,updateFilter:t,units:r,setUnits:o})}return null}function aj(e,t,r,o,s){switch(e.operator){case"after":case"before":case"in":return d.jsx(dj,{currentFilter:e,maxLevel:s,updateFilter:t,units:r,setUnits:o});case"to":return d.jsx(fj,{currentFilter:e,maxLevel:s,updateFilter:t,units:r,setUnits:o})}return null}const Pl=[{value:"year",label:"years"},{value:"quarter",label:"quarters"},{value:"month",label:"months"},{value:"week",label:"weeks"},{value:"day",label:"days"}],s2=[{value:"hour",label:"hours"},{value:"minute",label:"minutes"},{value:"second",label:"seconds"}];function uj({currentFilter:e,updateFilter:t,setUnits:r,maxLevel:o}){const{n:s,units:i}=e,l=o==="day"?Pl:[...Pl,...s2],a=c=>{const p=c.target.value;t({...e,n:p})},u=c=>{r(c),t({...e,units:c})};return d.jsxs(d.Fragment,{children:[d.jsx("input",{type:"number",value:s,...A.props(Re.input,Re.editorCell),onChange:a}),d.jsx(yn,{options:l,value:i,onChange:u,customStyle:Re.editorCell})]})}function cj({currentFilter:e,updateFilter:t,units:r,setUnits:o,maxLevel:s}){const i=s==="day"?Pl:[...Pl,...s2],l=a=>{switch(o(a),e.operator){case"after":t({...e,after:as(e.after,a)});return;case"before":t({...e,before:as(e.before,a)});return;case"to":t({...e,fromMoment:as(e.fromMoment,a),toMoment:as(e.toMoment,a)});return;case"in":{t({...e,in:as(e.in,a)});return}}};return d.jsx(yn,{options:i,value:r,onChange:l,customStyle:Re.editorCell})}function dj({currentFilter:e,updateFilter:t,units:r,maxLevel:o}){const s=e.operator==="after"?e.after:e.operator==="before"?e.before:e.in,i=so(s),l=a=>{t({...e,[e.operator]:So(a,r)})};return d.jsxs(d.Fragment,{children:[d.jsx("div",{...A.props(Re.editorRow),children:d.jsx(Tl,{value:i,setValue:l,units:r,customStyle:{...Re.input,...Re.editorCell}})}),d.jsx("div",{...A.props(Re.editorRow),children:d.jsx(Md,{value:i,setValue:l,units:r,maxLevel:o,customStyle:Re.editorCell})})]})}function fj({currentFilter:e,updateFilter:t,units:r,maxLevel:o}){const{fromMoment:s,toMoment:i}=e,l=so(s),a=so(i),[u,c]=f.useState(l),[p,m]=f.useState("from"),g=y=>{t({...e,fromMoment:So(y,r)})},h=y=>{t({...e,toMoment:So(y,r)})},x=y=>{p==="from"?g(y):h(y),c(y)},v=y=>{if(m(y),y==="from"){const b=so(s);c(b)}else{const b=so(i);c(b)}};return d.jsxs(d.Fragment,{children:[d.jsxs("div",{...A.props(Re.editorRow),children:[d.jsx(Tl,{value:l,setValue:g,units:r,customStyle:{...Re.input,...Re.editorCell},onFocus:()=>v("from"),isActive:p==="from"}),d.jsx(Tl,{value:a,setValue:h,units:r,customStyle:{...Re.input,...Re.editorCell},onFocus:()=>v("to"),isActive:p==="to"})]}),d.jsx("div",{...A.props(Re.editorRow),children:d.jsx(Md,{value:u,setValue:x,units:r,maxLevel:o,customStyle:Re.editorCell})})]})}function So(e,t){return{moment:"literal",literal:N.utc(e).format(_o[t]),units:t}}function so(e){return e&&e.moment==="literal"?N.utc(e.literal,_o[e.units??"second"]).toDate():new Date}function as(e,t){return So(so(e),t)}function pj(e,t,r){let o="7",s=So(new Date,r),i=So(new Date,r),l=!1;switch(t.startsWith("-")&&(t=t.slice(1),l=!0),e.operator){case"in_last":case"last":case"next":o=e.n,r=e.units;break;case"after":s=e.after,i=e.after;break;case"before":s=e.before,i=e.before;break;case"to":s=e.fromMoment,i=e.toMoment;break}switch(t){case"in_last":case"last":case"next":return{operator:t,n:o,units:r};case"after":return{operator:t,after:s,not:l};case"before":return{operator:t,before:s,not:l};case"in":return{operator:t,in:s};case"to":return{operator:t,fromMoment:s,toMoment:i};case"null":return{operator:t,not:l}}return e}function mj({fieldInfo:e,path:t,filter:r,onFilterApply:o,onOpenChange:s}){const[i,l]=f.useState(r??hj(e)),a=()=>{s(!1)},u=()=>{o(i),s(!1)},c=x=>{l({kind:"boolean",parsed:x})},p=x=>{l({kind:"string",parsed:x})},m=x=>{l({kind:"number",parsed:x})},g=x=>{l({kind:"timestamp",parsed:x})},h=x=>{l({kind:"date",parsed:x})};return d.jsxs("div",{...A.props(Y.body,Re.filterDialog),onKeyDown:x=>{x.key==="Enter"?u():x.key==="Esc"&&a()},children:[d.jsx("div",{...A.props(Re.filterDialogHeader),children:e.name}),i.kind==="boolean"&&d.jsx(UT,{setFilter:c,filter:i.parsed??{operator:"null"}}),i.kind==="string"&&d.jsx(XT,{setFilter:p,filter:i.parsed??{operator:"null"},field:e,path:t}),i.kind==="number"&&d.jsx(tj,{setFilter:m,filter:i.parsed??{operator:"null"}}),i.kind==="date"&&d.jsx(Dp,{setFilter:h,filter:i.parsed??{operator:"null"},isDateTime:!1}),i.kind==="timestamp"&&d.jsx(Dp,{setFilter:g,filter:i.parsed??{operator:"null"},isDateTime:!0}),d.jsxs("div",{...A.props(Re.buttonGroup),children:[d.jsx(ke,{variant:"default",label:"Cancel",onClick:a,style:{flexGrow:1}}),d.jsx(ke,{variant:"primary",label:"Apply",onClick:u,style:{flexGrow:1}})]})]})}function hj(e){return e.type.kind==="string_type"?{kind:"string",parsed:{operator:"=",values:[]}}:e.type.kind==="boolean_type"?{kind:"boolean",parsed:{operator:"true"}}:e.type.kind==="number_type"?{kind:"number",parsed:{operator:">",values:["0"]}}:e.type.kind==="date_type"?{kind:"date",parsed:{operator:"last",n:"7",units:"day"}}:{kind:"timestamp",parsed:{operator:"last",n:"7",units:"day"}}}function Gs({fieldInfo:e,path:t,filter:r,setFilter:o,trigger:s,anchor:i,layoutProps:l,onOpenChange:a}){const[u,c]=f.useState(!1),p=m=>{c(m),a?.(m)};return d.jsxs(li,{open:u,onOpenChange:p,modal:!0,children:[i?d.jsx(b1,{asChild:!0,children:i}):d.jsx(wa,{asChild:!0,children:s}),d.jsx(ai,{children:d.jsx(Ca,{...l,className:"mly78zum5 mlydt5ytf mly5n1uv4 mly12peec7 mlyur7f20",children:d.jsx(mj,{fieldInfo:e,filter:r,path:t,onFilterApply:o,onOpenChange:p})})})]})}const gj=e=>(e.kind==="dimension"||e.kind==="measure")&&(e.type.kind==="array_type"&&e.type.element_type.kind==="record_type"||e.type.kind==="record_type");function a0({view:e,fields:t,onAddOperation:r,search:o="",types:s,filter:i,isFilterOperation:l,customStyle:a}){const u=f.useMemo(()=>{const c=[],p=o.toLocaleLowerCase(),m=(g,h,x,v)=>{const y=fT(v).filter(C=>C.kind!=="join").filter(C=>C.name.toLocaleLowerCase().includes(p)&&g.includes(C.kind)).filter(C=>i?i(e,C,h):!0),b=v.filter(C=>C.kind==="join"),w=v.filter(gj);y.length&&c.push({path:h,name:h.length?h.join(" > "):x,fields:y});for(const C of w)C.type.kind==="array_type"&&C.type.element_type.kind==="record_type"?m(g,[...h,C.name],C.name,C.type.element_type.fields.map(_=>({kind:C.kind,..._}))):C.type.kind==="record_type"&&m(g,[...h,C.name],C.name,C.type.fields.map(_=>({kind:C.kind,..._})));for(const C of b)m(g.filter(_=>_!=="view"),[...h,C.name],C.name,C.schema.fields)};return m(s,[],"Source",t),c},[t,i,o,e,s]);return d.jsx("div",{...A.props(a),children:u.length?u.map(c=>d.jsxs("div",{children:[d.jsx("div",{...A.props(dt.item,Wi.fieldItem,Wi.sticky),"data-disabled":"true",children:c.name}),c.fields.map(p=>l&&(p.kind==="dimension"||p.kind==="measure")?d.jsx(Gs,{fieldInfo:p,path:c.path,setFilter:m=>r(p,c.path,m),anchor:d.jsx("div",{role:"menuitem",tabIndex:-1,...A.props(dt.item,Wi.fieldItem),children:d.jsx(Dd,{asChild:!0,children:d.jsx(jr,{field:p,tooltip:d.jsx(Ws,{field:p,path:c.path}),tooltipProps:{side:"right",align:"start",sideOffset:4,alignOffset:24}})})}),layoutProps:{align:"start",side:"right",sideOffset:2,alignOffset:4}},c.name+":"+p.name):d.jsx("div",{role:"menuitem",tabIndex:-1,...A.props(dt.item,Wi.fieldItem),children:d.jsx(jr,{field:p,onClick:()=>r(p,c.path),tooltip:d.jsx(Ws,{field:p,path:c.path}),tooltipProps:{side:"right",align:"start",sideOffset:4,alignOffset:24}})},c.name+":"+p.name))]},c.name)):d.jsx("div",{...A.props(dt.item),"data-disabled":"true",children:"No matching fields"})})}const Wi={fieldItem:{height:"mly1qx5ct2",paddingTop:"mly1y1aw1k",paddingBottom:"mlywib8y2",$$css:!0},sticky:{position:"mly7wzq59",top:"mly13vifvy",zIndex:"mly1vjfegm",backgroundColor:"mly9nb4jr",borderBottom:"mlyv3yj8d",borderBottomWidth:null,borderBottomStyle:null,borderBottomColor:null,$$css:!0}};function xj({view:e,fields:t,types:r,filter:o,onAddOperation:s,isFilterOperation:i}){const[l,a]=f.useState("");return d.jsxs("div",{...A.props(dt.content,yj.content),role:"menu",children:[d.jsx("div",{...A.props(dt.item),children:d.jsx(oa,{icon:"search",value:l,onChange:a,placeholder:"Search..."})}),d.jsx(lo,{}),d.jsx("div",{className:"mly1odjw0f",children:d.jsx(a0,{view:e,fields:t,search:l,types:r,filter:o,onAddOperation:s,isFilterOperation:i})})]})}const yj={content:{maxHeight:"mly3d5gib",$$css:!0}};function La(e,t){return[...e||[],t].join(".")}function vj(e){return e.operations.items.find(t=>t instanceof J.ASTLimitViewOperation)!==void 0}function bj(e,t){return e.operations.items.find(r=>r instanceof J.ASTOrderByViewOperation&&r.name===t)!==void 0}function i2(e){const t=new Map;for(const r of e.operations.items)if(r instanceof J.ASTGroupByViewOperation||r instanceof J.ASTAggregateViewOperation){const o=r.field.getReference();o&&t.set(r.name,La(o.path,o.name))}return t}function wj(e,t,r){const o=i2(e),s=La(t,r);return!!e.operations.items.find(i=>i instanceof J.ASTOrderByViewOperation&&o.has(i.name)?s===o.get(i.name):!1)}function Cj(e,t,r,o){return t===o&&(e||[]).join(".")===(r||[]).join(".")}function _j(e,t,r){return!!e.operations.items.find(s=>{if(s instanceof J.ASTGroupByViewOperation||s instanceof J.ASTAggregateViewOperation){const i=s.field.getReference();return i?Cj(t,r,i.path,i.name):!1}return!1})}function Sj(e,t){return e.operations.items.reduce((r,o)=>{if(o instanceof J.ASTNestViewOperation&&o.name===t)do r+=1;while(e.hasFieldNamed(`${t} ${r}`));return r},1)}function Na(e,t,r){const o=t.kind==="dimension"?t.type.kind:"string",s=e.getOrAddDefaultSegment(),{fields:i}=e.getOutputSchema();let l;i.find(a=>a.name===t.name)&&(l=t0(i,t.name,r)),o==="date_type"?s.addDateGroupBy(t.name,r,"day"):o==="timestamp_type"?s.addTimestampGroupBy(t.name,r,"second"):s.addGroupBy(t.name,r,l)}function Ma(e,t,r){const o=e.getOrAddDefaultSegment(),{fields:s}=e.getOutputSchema();let i;s.find(l=>l.name===t.name)&&(i=t0(s,t.name,r)),o.addAggregate(t.name,r,i)}function u0(e,t){const r=e.getOrAddDefaultSegment(),{fields:o}=e.getOutputSchema();let s;o.find(i=>i.name===t.name)&&(s=t0(o,t.name)),r.addNest(t.name,s)}function kj(e,t,r,o="desc"){const s=La(t,r);let i=r;const l=e.getOrAddDefaultSegment(),a=i2(l);for(const u of a.entries())if(u[1]===s){i=u[0];break}l.addOrderBy(i,o)}function Ej(e,t,r="desc"){e.getOrAddDefaultSegment().addOrderBy(t.name,r)}function l2(e,t,r,o){const s=e.getOrAddDefaultSegment();t.kind==="dimension"?s.addWhere(t.name,r,o):s.addHaving(t.name,r,o)}function Mn(e){if(!e)return;const t=jx(e);if(t instanceof J.ASTSegmentViewDefinition)return t;if(t instanceof J.ASTRefinementViewDefinition&&t.refinement instanceof J.ASTSegmentViewDefinition)return t.refinement}function Rj({actionTitle:e,view:t,fields:r,title:o,types:s,onClick:i}){const[l,a]=f.useState(!1),u=Mn(t),c=(p,m,g)=>!u?.hasField(m.name,g)&&fr(m);return d.jsxs("div",{...A.props(Xt.title,Nn.main),children:[d.jsx("div",{children:o}),d.jsx("div",{...A.props(Nn.hoverActions,l?Nn.hoverOpen:void 0),children:d.jsxs(li,{onOpenChange:a,children:[d.jsx(wa,{asChild:!0,children:d.jsx("div",{className:"mly1md70p1 mly1aejobo mlyq1n1xh mly1ypdohk",children:e})}),d.jsx(ai,{children:d.jsx(Nd,{side:"right",align:"start",alignOffset:-16,children:d.jsx(xj,{view:t,fields:r,types:s,filter:c,onAddOperation:i})})})]})})]})}function a2({rootQuery:e,view:t,target:r,open:o,setOpen:s}){const[i,l]=f.useState(""),{setQuery:a}=f.useContext(be);if(f.useEffect(()=>{r&&l(r.name)},[r,o]),!r)return null;const u=()=>{r.name=i,a?.(e?.build()),s(!1)},{fields:c}=t.getOutputSchema(),p=i!==r.name&&c.some(m=>m.name===i);return d.jsx(Yx,{open:o,onOpenChange:s,children:d.jsx(Hx,{children:d.jsx(Vx,{...A.props(rt.overlay),children:d.jsxs(Xx,{...A.props(rt.content,Y.body),children:[d.jsxs(Kx,{...A.props(rt.displayNone),children:["Rename ",r.name]}),d.jsxs(Zx,{...A.props(rt.title),children:["Rename ",r.name]}),d.jsxs("div",{...A.props(rt.editor),children:[d.jsxs("div",{...A.props(rt.editorRow),children:[d.jsx("input",{value:i,onChange:m=>l(m.target.value),...A.props({...rt.editorCell,...rt.input}),onKeyDown:m=>{m.key==="Enter"?u():m.key==="Esc"&&s(!1)}}),p&&d.jsx(Kl,{errorMessage:"Name already in use"})]}),d.jsxs("div",{...A.props(rt.editorRow),children:[d.jsx(ke,{label:"Cancel",onClick:()=>s(!1),customStyle:rt.editorCell}),d.jsx(ke,{variant:"primary",label:"Rename",onClick:u,customStyle:rt.editorCell,disabled:p})]})]})]})})})})}function u2({rootQuery:e,segment:t,view:r,operations:o,kind:s}){const{setQuery:i}=f.useContext(be),l=zR($R(Qd)),a=f.useMemo(()=>o.map(m=>({id:m.name,operation:m})),[o]);if(o.length===0)return null;function u(m){const h=t.operations.items.filter(y=>y instanceof J.ASTAggregateViewOperation||y instanceof J.ASTGroupByViewOperation||y instanceof J.ASTNestViewOperation).map(y=>y.name),{active:x,over:v}=m;if(v&&x.id!==v.id){const y=h.indexOf(x.id),b=h.indexOf(v.id);t.reorderFields(Jd(h,y,b)),i?.(e.build())}}const{fields:c}=Pr(r),p=s==="group_by"?{title:"group by",actionTitle:"Add group by",types:["dimension"],onClick:(m,g)=>{Na(r,m,g),i?.(e.build())}}:{title:"aggregate",actionTitle:"Add aggregate",types:["measure"],onClick:(m,g)=>{Ma(r,m,g),i?.(e.build())}};return d.jsxs("div",{children:[d.jsx(Rj,{rootQuery:e,view:r,fields:c,...p}),d.jsx("div",{...A.props(Xt.tokenContainer),children:d.jsx(UA,{sensors:l,collisionDetection:YR,onDragEnd:u,children:d.jsx(nT,{items:a,children:a.map(m=>d.jsx(Tj,{rootQuery:e,id:m.id,color:s==="group_by"?"cyan":"green",view:r,operation:m.operation},m.id))})})})]})}const Aj=[];function Tj({rootQuery:e,id:t,view:r,operation:o,color:s}){var i;const{setQuery:l}=f.useContext(be),a=o.getFieldInfo(),u=((i=o.field.getReference())==null?void 0:i.path)??Aj,{attributes:c,listeners:p,setNodeRef:m,transform:g,transition:h}=uT({id:t,data:{name:a.name}}),[x,v]=f.useState(!1),[y,b]=f.useState(),[w,C]=f.useState(!1),_={transform:zs.Transform.toString(g),transition:h},k=f.useMemo(()=>d.jsxs(d.Fragment,{children:[d.jsx(Wd,{trigger:d.jsx(ke,{variant:"flat",icon:"meatballs",size:"compact",tooltip:"More Actions"}),onOpenChange:C,children:[d.jsx(Bs,{label:"Rename",onClick:()=>{b(o),v(!0)}},"rename")]},[...u,a.name].join(".")),d.jsx(mi,{onClick:()=>{o.delete(),l?.(e?.build())}})]}),[a,o,u,e,l]),E=Lj(a,o.field);let R="orderBy";return(a.kind==="dimension"||a.kind==="measure")&&(R=Aa(a.type.kind)),d.jsxs("div",{id:t,ref:m,style:_,children:[E?d.jsxs("div",{...{0:{className:"mly78zum5 mly6s0dn4 mly1nhvcw1 mly1jnr06f mly11ogjb6 mly1g9of4s"},1:{className:"mly78zum5 mly6s0dn4 mly1nhvcw1 mly1jnr06f mly1ae5hkt"}}[!!w<<0],children:[d.jsxs(Zs,{customStyle:Nj.tokenGroup,children:[d.jsx(Be,{color:s,icon:R,label:a.name,dragProps:{attributes:c,listeners:p}}),d.jsx(sa,{color:s,value:E.value,onChange:j=>{o.field.expression instanceof J.ASTTimeTruncationExpression&&(o.field.expression.truncation=j),l?.(e.build())},items:E.options})]}),k&&d.jsx("div",{className:"mly2b4tyj mly2lah0s",children:k})]}):d.jsx(jr,{field:a,color:s,hoverActionsVisible:w,hoverActions:k,tooltip:d.jsx(Ws,{field:a,path:u}),tooltipProps:{side:"right",align:"start",alignOffset:28},dragProps:{attributes:c,listeners:p}}),d.jsx(a2,{rootQuery:e,view:r,target:y,open:x,setOpen:v})]})}const jj=["day","week","month","quarter","year"],Dj=["second","minute","hour","day","week","month","quarter","year"];function Lj(e,t){return e.kind!=="dimension"||!(t.expression instanceof J.ASTTimeTruncationExpression)?null:e.type.kind==="timestamp_type"?{value:e.type.timeframe??"second",options:Dj.map(r=>({label:r,value:r}))}:e.type.kind==="date_type"?{value:e.type.timeframe??"day",options:jj.map(r=>({label:r,value:r}))}:null}const Nj={tokenGroup:{display:"mly78zum5",$$css:!0}};function Mj({rootQuery:e,segment:t,view:r,groupBys:o}){return d.jsx(u2,{rootQuery:e,segment:t,view:r,operations:o,kind:"group_by"})}class Ij extends f.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,r){console.error(t,r)}render(){return this.state.hasError?this.props.fallback:this.props.children}}const c2=(e,t)=>{if(e.parsed===null)return{op:"",value:t};let r="",o=t;switch(e.kind){case"boolean":{const s=e.parsed,{operator:i,not:l}=s;r=l?"is not":"is",o=i}break;case"string":{const s=e.parsed,{operator:i}=s;switch(i){case"~":r="is like",o=s.escaped_values.join(", ");break;case"=":{const{not:l,values:a}=s;r=l?"is not":"is",o=a.join(", ")}break;case"contains":{const{not:l,values:a}=s;r=l?"does not contain":"contains",o=a.join(", ")}break;case"starts":{const{not:l,values:a}=s;r=l?"does not start with":"starts with",o=a.join(", ")}break;case"ends":{const{not:l,values:a}=s;r=l?"does not end with":"ends with",o=a.join(", ")}break;case"empty":{const{not:l}=s;r=l?"is not empty":"is empty",o=""}break;case"null":{const{not:l}=s;r=l?"is not":"is",o="null"}break}}break;case"number":{const s=e.parsed,{operator:i}=s;switch(i){case"=":case"!=":case"<=":case">=":case"<":case">":r=i,o=s.values.join(", ");break;case"range":r="in between",o=s.startValue+" and "+s.endValue;break;case"null":r=s.not?"is not":"is",o="null";break}}break;case"date":case"timestamp":{const s=e.parsed,{operator:i}=s;switch(i){case"after":{const{not:l}=s;r=l?"through":"is after",o=bu(s.after)}break;case"before":{const{not:l}=s;r=l?"starting":"is before",o=bu(s.before)}break;case"in":{const{not:l}=s;r=`is${l?" not":""} in`,o=bu(s.in)}break;case"in_last":{const{not:l}=s;r=`is${l?" not":""} in last`,o=s.n+" "+s.units}break;case"last":{const{not:l}=s;r=`is${l?" not":""} last complete`,o=s.n+" "+s.units}break;case"next":{const{not:l}=s;r=`is${l?" not":""} next complete`,o=s.n+" "+s.units}break;case"for":{const{not:l}=s;r=`is${l?" not":""} for`,o=s.n+" "+s.units}break;case"null":r=s.not?"is not":"is",o="null";break}}}return{op:r,value:o}};function bu(e){return e?e.moment==="literal"?e.literal:e.moment==="now"?"now":e.moment:""}function Oj({rootQuery:e,filters:t}){const{setQuery:r}=f.useContext(be);return t.length===0?null:d.jsxs("div",{children:[d.jsx("div",{...A.props(Xt.title),children:"filter by"}),d.jsx("div",{...A.props(Xt.tokenContainer),children:t.map((o,s)=>d.jsx(Ij,{fallback:d.jsxs("div",{children:["Invalid filter",d.jsx(mi,{onClick:()=>{o.delete(),r?.(e.build())}})]}),children:d.jsx(Pj,{filterOperation:o,rootQuery:e})},s))})]})}function Pj({rootQuery:e,filterOperation:t}){const{setQuery:r}=f.useContext(be),o=f.useCallback(h=>{t.filter instanceof J.ASTFilterWithFilterString&&t.filter.setFilter(h),r?.(e.build())},[t.filter,e,r]),{filter:s}=t;if(!(s instanceof J.ASTFilterWithFilterString))return null;const{expression:i,filterString:l}=s;if(!(i instanceof J.ASTReferenceExpression))return null;const a=s.getFieldInfo(),u=s.getFilter(),c=i.path??[],{op:p,value:m}=c2(u,l),g=`${a.name} ${p} ${m}`;return d.jsxs("div",{...A.props(Nn.main),children:[d.jsx(Gs,{fieldInfo:a,path:c,filter:u,setFilter:o,trigger:d.jsx(Be,{icon:"filter",color:"cyan",label:g}),layoutProps:{align:"start",side:"bottom",sideOffset:1}}),d.jsx("div",{...A.props(Nn.hoverActions),children:d.jsx(mi,{onClick:()=>{t.delete(),r?.(e.build())}})})]})}function Fj({rootQuery:e,limit:t}){const{setQuery:r}=f.useContext(be);return t?d.jsxs("div",{children:[d.jsx("div",{...A.props(Xt.title),children:"limit"}),d.jsxs("div",{...A.props(Nn.main),children:[d.jsx(Lu,{type:"number",value:t.limit,onChange:o=>{t.limit=o,r?.(e.build())},errorMessage:t.limit<0?"Limit must be positive":void 0}),d.jsx("div",{...A.props(Nn.hoverActions),children:d.jsx(mi,{onClick:()=>{t.delete(),r?.(e.build())}})})]})]}):null}function Bj({rootQuery:e,segment:t,view:r,aggregates:o}){return d.jsx(u2,{rootQuery:e,segment:t,view:r,operations:o,kind:"aggregate"})}function $j({rootQuery:e,orderBys:t}){const{setQuery:r}=f.useContext(be);return t.length===0?null:d.jsxs("div",{children:[d.jsx("div",{...A.props(Xt.title),children:"order by"}),d.jsx("div",{...A.props(Xt.tokenContainer),children:t.map(o=>{const{fieldReference:s}=o,i=s.getFieldInfo(),l=s.path??[];let a="orderBy";(i.kind==="dimension"||i.kind==="measure")&&(a=Aa(i.type.kind));const u=ix(i.kind);return d.jsxs("div",{...A.props(Nn.main),children:[d.jsxs(Zs,{children:[d.jsx(Be,{color:u,icon:a,label:i.name}),d.jsx(sa,{color:u,items:[{label:"ascending",value:"asc"},{label:"descending",value:"desc"}],value:o.direction??"asc",onChange:c=>{o.direction=c,r?.(e.build())}})]}),d.jsx("div",{...A.props(Nn.hoverActions),children:d.jsx(mi,{onClick:()=>{o.delete(),r?.(e.build())}})})]},[...l,i.name].join("."))})})]})}function zj({rootQuery:e,view:t}){return d.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[d.jsx(e2,{rootQuery:e,view:t}),d.jsx(Ss,{rootQuery:e,view:t,viewDef:t.definition})]})}function _r({icon:e,label:t,detail:r,disable:o,onClick:s,open:i}){const l=o?.(),a=()=>{o?.()||s?.()};return d.jsxs(Mo,{children:[d.jsx(Io,{asChild:!0,children:d.jsxs("div",{role:"menuitem",tabIndex:-1,...A.props(dt.item,dt.clickable,i?qj.open:null),onClick:a,"data-disabled":l?"true":void 0,children:[d.jsxs("div",{...A.props(dt.label),children:[e,d.jsx("div",{children:t})]}),i!==void 0&&d.jsx(ie,{name:"chevronRight",color:"gray"})]})}),r?d.jsx(Oo,{children:d.jsx(Po,{...A.props(dt.tooltip),side:"right",align:"start",alignOffset:-16,children:r})}):null]})}const qj={open:{background:"mly16o7sp0",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,$$css:!0}};function Wj({rootQuery:e,view:t}){const{setQuery:r}=f.useContext(be),o=Mn(t),s=o?vj(o):!1;return d.jsx(_r,{icon:d.jsx(ie,{name:"limit"}),label:"Limit",disable:()=>s,onClick:()=>{t.getOrAddDefaultSegment().setLimit(10),r?.(e.build())}})}function Gj({rootQuery:e,view:t}){const{setQuery:r}=f.useContext(be);return d.jsx(_r,{icon:d.jsx(ie,{name:"nest"}),label:"Add blank nested query",onClick:()=>{const o=t.getOrAddDefaultSegment(),s=Sj(o,"Nest");o.addEmptyNest(s>1?`Nest ${s}`:"Nest"),r?.(e.build())}})}function gi({view:e,fields:t,onAddOperation:r,types:o,filter:s,isFilterOperation:i,search:l}){return d.jsx(a0,{types:o,filter:s,view:e,fields:t,onAddOperation:r,isFilterOperation:i,search:l,customStyle:Uj.list})}const Uj={list:{minWidth:"mly2ixbly",maxWidth:"mly1j9u4d2",$$css:!0}};function Yj({rootQuery:e,view:t,search:r}){const{setQuery:o}=f.useContext(be),s=t.getOutputSchema().fields,i=Mn(t),l=f.useMemo(()=>s.filter(a=>a.kind==="dimension").filter(a=>Hj.includes(a.type.kind)).filter(a=>i?!bj(i,a.name):!0),[s,i]);return d.jsx(gi,{label:"Add order by",icon:"orderBy",view:t,fields:l,types:["dimension"],onAddOperation:a=>{Ej(t,a),o?.(e.build())},disabledMessage:"There must be at least one field in the output to order by.",search:r})}const Hj=["string_type","number_type","boolean_type","date_type","timestamp_type"];function Vj({rootQuery:e,view:t,search:r}){const{setQuery:o}=f.useContext(be),{fields:s}=Pr(t),i=Mn(t),l=(a,u,c)=>!i?.hasField(u.name,c)&&fr(u);return d.jsx(gi,{label:"Add group by",icon:"groupBy",view:t,fields:s,types:["dimension"],filter:l,onAddOperation:(a,u)=>{Na(t,a,u),o?.(e.build())},search:r})}function Xj({rootQuery:e,view:t,search:r}){const{setQuery:o}=f.useContext(be),{fields:s}=Pr(t),i=Mn(t),l=(a,u,c)=>!i?.hasField(u.name,c)&&fr(u);return d.jsx(gi,{label:"Add aggregate",icon:"aggregate",view:t,fields:s,types:["measure"],filter:l,onAddOperation:(a,u)=>{Ma(t,a,u),o?.(e.build())},search:r})}function Zj({view:e,search:t}){const{rootQuery:r,setQuery:o}=f.useContext(be),{fields:s}=Pr(e);return d.jsx(gi,{label:"Add filter",icon:"filter",view:e,fields:s,types:["measure","dimension"],filter:(i,l)=>(l.kind==="dimension"||l.kind==="measure")&&Kj.has(l.type.kind)&&fr(l),onAddOperation:(i,l,a)=>{a&&(i.kind==="dimension"||i.kind==="measure")&&(l2(e,i,l,a),o?.(r?.build()))},isFilterOperation:!0,search:t})}const Kj=new Set(["string_type","boolean_type","number_type","date_type","timestamp_type"]);function Qj({rootQuery:e,view:t,search:r}){const{setQuery:o}=f.useContext(be),s=Pr(t).fields,i=f.useMemo(()=>s.filter(l=>l.kind==="view"&&!Tx(l)),[s]);return d.jsx(gi,{label:"Add view",icon:"view",view:t,fields:i,types:["view"],filter:(l,a)=>fr(a),onAddOperation:l=>{e.isEmpty()?e.setView(l.name):u0(t,l),o?.(e.build())},search:r})}function d2({rootQuery:e,view:t}){const[r,o]=f.useState(!1),[s,i]=f.useState(""),{setQuery:l}=f.useContext(be),[a,u]=f.useState(""),c=Mn(t),p=m=>{i(m===s?"":m)};return d.jsxs(li,{open:r,onOpenChange:m=>{o(m),m||u("")},children:[d.jsx(wa,{asChild:!0,children:d.jsx(ke,{icon:"insert",variant:"flat",size:"compact",onClick:()=>o(!r),tooltip:"Add query elements"})}),d.jsx(ai,{children:d.jsxs(Ca,{onPointerDownOutside:()=>o(!1),...A.props(dt.content),side:"bottom",align:"start",role:"menu",children:[d.jsx("div",{...A.props(dt.item),children:d.jsx(oa,{icon:"search",value:a,onChange:u,placeholder:"Search...",customStyle:Jj.search})}),d.jsx(lo,{}),d.jsxs("div",{className:"mly78zum5 mly1odjw0f mlywib8y2 mly1xyq3li",children:[a&&!s?d.jsxs("div",{className:"mly1odjw0f",children:[d.jsx(a0,{view:t,fields:Pr(t).fields,filter:(m,g,h)=>!c?.hasField(g.name,h)&&fr(g),types:["dimension","measure","view"],onAddOperation:function(m,g){m.kind==="dimension"?Na(t,m,g):m.kind==="measure"?Ma(t,m,g):u0(t,m),l?.(e.build())},search:a}),d.jsx(lo,{}),d.jsx(r2,{search:a,onClick:m=>{const g=m.fieldName.split("."),h=g.pop();t.getOrAddDefaultSegment().addWhere(h,g,{kind:"string",parsed:{operator:"=",values:[m.fieldValue??"∅"]}}),l?.(e.build())}})]}):d.jsxs("div",{"data-testid":"add-menu-operations",className:"mly18kybhu",children:[d.jsx(_r,{icon:d.jsx(ie,{name:"groupBy"}),label:"Add group by",onClick:()=>p("group_by"),open:s==="group_by"}),d.jsx(_r,{icon:d.jsx(ie,{name:"aggregate"}),label:"Add aggregate",onClick:()=>p("aggregate"),open:s==="aggregate"}),d.jsx(_r,{icon:d.jsx(ie,{name:"filter"}),label:"Add filter",onClick:()=>p("where"),open:s==="where"}),d.jsx(_r,{icon:d.jsx(ie,{name:"view"}),label:"Add view",onClick:()=>p("view"),open:s==="view"}),d.jsx(lo,{}),d.jsx(Wj,{rootQuery:e,view:t}),d.jsx(_r,{icon:d.jsx(ie,{name:"orderBy"}),label:"Order by",onClick:()=>p("order_by"),open:s==="order_by"}),d.jsx(Gj,{rootQuery:e,view:t})]}),d.jsxs("div",{"data-testid":"add-menu-right-column",style:{overflowY:"auto"},children:[s==="group_by"&&d.jsx(Vj,{rootQuery:e,view:t,search:a}),s==="aggregate"&&d.jsx(Xj,{rootQuery:e,view:t,search:a}),s==="where"&&d.jsx(Zj,{rootQuery:e,view:t,search:a}),s==="view"&&d.jsx(Qj,{rootQuery:e,view:t,search:a}),s==="order_by"&&d.jsx(Yj,{rootQuery:e,view:t,search:a})]})]})]})})]})}const Jj={search:{width:"mlyh8yej3",$$css:!0}},vc=Ie.createContext([]);function f2({children:e,nest:t}){const{focusNestView:r,focusMainView:o}=Vs(),s=f.useContext(vc);return d.jsx("div",{onPointerDown:i=>{i.stopPropagation(),t?r([...s,t.name]):o()},children:t?d.jsx(vc.Provider,{value:[...s,t.name],children:d.jsx("div",{children:e})}):d.jsx("div",{children:e})})}function eD({rootQuery:e,view:t,nests:r}){return r.length===0?null:d.jsx("div",{...A.props(Xt.tokenContainer),children:r.map(o=>d.jsx(tD,{rootQuery:e,view:t,nest:o},o.name))})}function tD({rootQuery:e,view:t,nest:r}){const{setQuery:o}=f.useContext(be),[s,i]=f.useState(!1),l=f.useContext(vc),{focusNestView:a,isNestViewFocused:u}=Vs(),c=p=>d.jsxs(d.Fragment,{children:[d.jsxs(Wd,{trigger:d.jsx(ke,{variant:"flat",icon:"meatballs",size:"compact",tooltip:"More Actions"}),children:[d.jsx(Bs,{icon:"clear",label:"Delete Query",onClick:()=>{a([...l]),p.delete(),o?.(e.build())}}),d.jsx(Bs,{label:"Rename",onClick:()=>{i(!0)}})]}),d.jsx(d2,{rootQuery:e,view:p.view})]});return d.jsx(f2,{nest:r,children:d.jsxs("div",{className:"mlyj3b58b mly1yf7rl7 mly1xmf6yo mlyh8yej3",children:[d.jsx(Uc,{title:r.name,icon:lx(r.view),defaultOpen:!0,controls:c(r),collapsedControls:c(r),isFocused:u([...l,r.name]),children:d.jsx(zj,{rootQuery:e,view:r.view})}),d.jsx(a2,{rootQuery:e,view:t,target:r,open:s,setOpen:i})]},r.name)})}function nD({rootQuery:e,view:t,viewDef:r}){const o=[],s=[],i=[],l=[],a=[],u=[];let c;if(!(r instanceof J.ASTSegmentViewDefinition))return null;const p=r;return p.operations.items.forEach(m=>{m instanceof J.ASTGroupByViewOperation?o.push(m):m instanceof J.ASTAggregateViewOperation?s.push(m):m instanceof J.ASTWhereViewOperation||m instanceof J.ASTHavingViewOperation?l.push(m):m instanceof J.ASTOrderByViewOperation?a.push(m):m instanceof J.ASTNestViewOperation?u.push(m):m instanceof J.ASTDrillViewOperation?i.push(m):c=m}),d.jsxs("div",{className:"mly1tpqehw mly10lvyaf",children:[d.jsx(Mj,{rootQuery:e,segment:p,view:t,groupBys:o}),d.jsx(Bj,{rootQuery:e,segment:p,view:t,aggregates:s}),d.jsx(_R,{rootQuery:e,drills:i}),d.jsx(Oj,{rootQuery:e,filters:l}),d.jsx($j,{rootQuery:e,orderBys:a}),d.jsx(eD,{rootQuery:e,view:t,nests:u}),d.jsx(Fj,{rootQuery:e,limit:c})]})}function Ss({rootQuery:e,view:t,viewDef:r}){return r instanceof J.ASTArrowViewDefinition?d.jsx(Ss,{rootQuery:e,view:t,viewDef:r.view}):r instanceof J.ASTRefinementViewDefinition?d.jsxs("div",{children:[d.jsx(Ss,{rootQuery:e,view:t,viewDef:r.base}),d.jsx(Ss,{rootQuery:e,view:t,viewDef:r.refinement})]}):r instanceof J.ASTSegmentViewDefinition?d.jsx(nD,{rootQuery:e,view:t,viewDef:r}):d.jsx(rD,{rootQuery:e,viewDef:r})}function rD({viewDef:e}){const[t,r]=f.useState(!1);return d.jsxs("div",{...{0:{className:"mly78zum5 mlydt5ytf mly1cy8zhl mly1nhvcw1 mly12oqio5 mlygqa5hp mlyt7dq6l mlywib8y2 mly163pfp mlyy13l1i"},1:{className:"mly78zum5 mlydt5ytf mly1cy8zhl mly1nhvcw1 mly12oqio5 mlygqa5hp mlyt7dq6l mly163pfp mlyy13l1i mly18d9i69"}}[!!t<<0],children:[d.jsxs("div",{className:"mlyrvj5dj mly1mt1orb mly1g3yg12 mlyydnxy5 mly6s0dn4 mlylqzeqv mly167g77z mly12oqio5 mlyc342km mly1n2onr6 mlyb3r6kr mlygqa5hp mlyh8yej3",children:[d.jsx(ie,{name:"query",color:"purple"}),d.jsx("div",{className:"mlyuxw1ft mlyb3r6kr mlylyipyv",children:e.name}),d.jsx(ke,{icon:t?"chevronRight":"chevronDown",onClick:()=>r(!t),size:"compact"})]}),!t&&d.jsx(l0,{viewInfo:e.getViewInfo(),style:oD.preview})]})}const oD={preview:{height:"mlyt7dq6l",maxHeight:"mly1hkcv85",background:"mlyo6guvx",backgroundAttachment:null,backgroundClip:null,backgroundColor:null,backgroundImage:null,backgroundOrigin:null,backgroundPosition:null,backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,backgroundSize:null,borderRadius:"mly12oqio5",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,$$css:!0}};function sD({rootQuery:e,query:t,setQuery:r}){const{focusMainView:o,isMainViewFocused:s}=Vs();return d.jsx(f2,{children:d.jsxs(Uc,{title:"Main query",isFocused:s,controls:d.jsxs(d.Fragment,{children:[d.jsx(Wd,{trigger:d.jsx(ke,{variant:"flat",icon:"meatballs",size:"compact",tooltip:"More Actions"}),children:r?d.jsxs(d.Fragment,{children:[d.jsx(Bs,{icon:"clear",label:"Clear query",onClick:()=>{o(),r?.(void 0)},disabled:e.isEmpty()}),d.jsx(Bs,{icon:"nest",label:"Nest query",onClick:()=>{e.definition instanceof J.ASTArrowQueryDefinition&&e.definition.view.convertToNest("Nest"),r?.(e.build())},disabled:e.isEmpty()||!(e.definition instanceof J.ASTArrowQueryDefinition)})]}):d.jsx(d.Fragment,{})}),t.definition instanceof J.ASTArrowQueryDefinition?d.jsx(d2,{rootQuery:e,view:t.definition}):null]}),collapsedControls:d.jsx(ie,{name:lx(t)}),children:[t.definition instanceof J.ASTArrowQueryDefinition?d.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[!t.isEmpty()&&d.jsx(e2,{rootQuery:e,view:t}),d.jsx(Ss,{rootQuery:e,view:t.definition,viewDef:t.definition.view})]}):null,t.isEmpty()?d.jsx("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4 mlyng8ra",children:d.jsxs("div",{className:"mly78zum5 mly6s0dn4 mlywzxoxx",children:[d.jsx("div",{children:"Click"}),d.jsx(ie,{name:"insert",color:"disabled"}),d.jsx("div",{children:"to get started"})]})}):null]})})}function iD({rootQuery:e}){return e.definition instanceof J.ASTArrowQueryDefinition?d.jsx("div",{...A.props(Xt.queryCard,lD.content),children:d.jsxs("div",{...A.props(Xt.labelWithIcon),children:[d.jsx(ie,{name:"database"}),d.jsx("div",{className:"mlyb3r6kr mlylyipyv mly117nqv4",children:e.definition.as.ArrowQueryDefinition().source.as.ReferenceQueryArrowSource().name})]})}):null}const lD={content:{display:"mlyrvj5dj",gridAutoFlow:"mly1mt1orb",gridTemplateColumns:"mlybyjr8",gap:"mly1jnr06f",rowGap:null,columnGap:null,$$css:!0}};function aD({value:e,setValue:t,customStyle:r}){const[o,s]=f.useState(""),[i,l]=f.useState(!1),a=f.useRef(null),u=f.useRef(null),c=e.kind==="date_literal",p=c?e.date_value:e.timestamp_value,m=c?"day":"second",g=h=>{h?(s(""),t(c?{kind:"date_literal",date_value:N.utc(h).format(_o.day)}:{kind:"timestamp_literal",timestamp_value:N.utc(h).format(_o.second)})):s("Invalid date")};return Qx([a,u],()=>{l(!1)}),d.jsxs(li,{open:i,onOpenChange:()=>{},children:[d.jsx(wa,{asChild:!0,children:d.jsx("div",{...A.props(sr.main,us.wrapper,r),children:d.jsx(Tl,{value:N.utc(p).toDate(),setValue:g,units:m,onFocus:()=>l(!0),customStyle:{...us.input,...c?us.dateInput:us.timestampInput},forwardRef:a})})}),o&&d.jsx(Kl,{errorMessage:o}),d.jsx(ai,{children:d.jsx(Ca,{align:"center",asChild:!0,children:d.jsx(Md,{value:N.utc(p).toDate(),setValue:g,units:m,maxLevel:m,customStyle:us.datePicker,forwardRef:u})})})]})}const us={input:{border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,height:"mlyd7y6wv",backgroundColor:"mlyjbqb8w mlytw1abo",$$css:!0},dateInput:{width:"mly869kya",$$css:!0},timestampInput:{width:"mlynrytzq",$$css:!0},wrapper:{$$css:!0},datePicker:{display:"mly78zum5",flexDirection:"mlydt5ytf",boxShadow:"mly5n1uv4",backgroundColor:"mly12peec7",borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,width:"mly1hfn5x7",$$css:!0}};function uD({filterType:e,value:t,setValue:r}){let o=null;switch(e){case"string_type":{const{parsed:c}=bn.StringFilterExpression.parse(t.filter_expression_value);o={kind:"string",parsed:c}}break;case"number_type":{const{parsed:c}=bn.NumberFilterExpression.parse(t.filter_expression_value);o={kind:"number",parsed:c}}break;case"boolean_type":{const{parsed:c}=bn.BooleanFilterExpression.parse(t.filter_expression_value);o={kind:"boolean",parsed:c}}break;case"date_type":{const{parsed:c}=bn.TemporalFilterExpression.parse(t.filter_expression_value);o={kind:"date",parsed:c}}break;case"timestamp_type":{const{parsed:c}=bn.TemporalFilterExpression.parse(t.filter_expression_value);o={kind:"timestamp",parsed:c}}break}const{op:s,value:i}=c2(o,t.filter_expression_value),l=`${s} ${i}`,a={kind:"dimension",name:"parameter",type:{kind:e}},u=c=>{switch(c.kind){case"string":r({kind:"filter_expression_literal",filter_expression_value:bn.StringFilterExpression.unparse(c.parsed)});break;case"boolean":r({kind:"filter_expression_literal",filter_expression_value:bn.BooleanFilterExpression.unparse(c.parsed)});break;case"number":r({kind:"filter_expression_literal",filter_expression_value:bn.NumberFilterExpression.unparse(c.parsed)});break;case"date":case"timestamp":r({kind:"filter_expression_literal",filter_expression_value:bn.TemporalFilterExpression.unparse(c.parsed)});break}};return d.jsx(Gs,{fieldInfo:a,path:[],filter:o,setFilter:u,trigger:d.jsx(Be,{label:l}),layoutProps:{align:"start",side:"bottom",sideOffset:1}})}function cD({value:e,filterType:t,setValue:r,customStyle:o}){if(!e)return null;switch(e.kind){case"boolean_literal":return d.jsx(sa,{value:e.boolean_value?"true":"false",items:[{label:"true",value:"true"},{label:"false",value:"false"}],onChange:s=>r({kind:"boolean_literal",boolean_value:s==="true"}),customStyle:o});case"date_literal":case"timestamp_literal":return d.jsx(aD,{value:e,setValue:r,customStyle:o});case"null_literal":return d.jsx(Be,{label:"∅"});case"number_literal":return d.jsx(Lu,{value:e.number_value,type:"number",onChange:s=>r({kind:"number_literal",number_value:s}),customStyle:o});case"string_literal":return d.jsx(Lu,{value:e.string_value,onChange:s=>r({kind:"string_literal",string_value:s}),customStyle:o});case"filter_expression_literal":return d.jsx(uD,{value:e,filterType:t,setValue:r,customStyle:o})}}function dD({rootQuery:e}){const{setQuery:t}=f.useContext(be);if(e.definition instanceof J.ASTArrowQueryDefinition){const r=e.definition.as.ArrowQueryDefinition().source.as.ReferenceQueryArrowSource(),o=r.getSourceParameters();return!o||o.length===0?null:d.jsx(Uc,{title:"Source parameters",children:d.jsx("div",{className:"mly78zum5 mlydt5ytf mly1jnr06f mlynm25rq",children:o.map(s=>{var i;return d.jsxs(Zs,{customStyle:fD.tokenGroup,children:[d.jsx(Be,{icon:Aa(s.type.kind),label:s.name}),d.jsx(cD,{filterType:s.type.kind==="filter_expression_type"?s.type.filter_type.kind:"string_type",value:((i=r.tryGetParameter(s.name))==null?void 0:i.parameter.value)??s.default_value,setValue:l=>{r.setParameter(s.name,l),t?.(e.build())}})]},s.name)})})})}return null}const fD={tokenGroup:{display:"mly78zum5",$$css:!0}};function pD(){const{rootQuery:e,setQuery:t}=f.useContext(be);return e?d.jsxs("div",{...A.props(Y.body,mD.main),children:[d.jsx(iD,{rootQuery:e}),d.jsx(dD,{rootQuery:e}),d.jsx(sD,{rootQuery:e,query:e,setQuery:t})]}):(console.error("Missing <MalloyExplorerProvider>"),null)}const mD={main:{display:"mly78zum5",flexDirection:"mlydt5ytf",overflow:"mlyysyzu8",overflowX:null,overflowY:null,gap:"mly167g77z",rowGap:null,columnGap:null,padding:"mly1fut7tt",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,$$css:!0}};function aL({runQuery:e}){return d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly5yr21d mlyotlr4g mly1roky18",children:[d.jsx(dR,{runQuery:e}),d.jsx(pD,{})]})}function hD({viewInfo:e,onClick:t}){const r=Ax(e.annotations??[]);return d.jsx("div",{children:d.jsx(S4,{header:d.jsxs("div",{children:[d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib",children:[d.jsx(er,{label:"view",icon:"view_filled",color:"purple",customStyle:Lp.viewBadge}),d.jsx(ke,{variant:"default",size:"compact",label:"Add",onClick:t})]}),d.jsxs("div",{children:[d.jsx("div",{...A.props(Y.emphasized),children:e.name}),r&&d.jsx(n2,{text:r})]})]}),customStyle:Lp.card,children:d.jsx(l0,{viewInfo:e})})})}const Lp={viewBadge:{backgroundColor:"mlyjbqb8w",$$css:!0},card:{width:"mlyxsgkw5",$$css:!0}};function gD({views:e,onSelectView:t}){return d.jsx("div",{className:"mly78zum5 mlydt5ytf mlyh8yej3 mly5yr21d mlyysyzu8",children:d.jsxs("div",{className:"mly1bpp3o7 mly78zum5 mlydt5ytf mlyl56j7k mly6s0dn4",children:[d.jsx("div",{...A.props(xD.header,Y.emphasized),children:"Start with a Bookmarked View"}),d.jsx("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4 mly1a02dak mly883omv mlym6i5cn",children:e.filter(r=>!e0(r.annotations??[])).slice(0,3).map(r=>d.jsx(hD,{viewInfo:r,onClick:()=>{t(r)}},r.name))})]})})}const xD={header:{paddingBottom:"mly1l90r2v",$$css:!0}};var c0="Tabs",[yD,uL]=Kt(c0,[Sa]),p2=Sa(),[vD,d0]=yD(c0),m2=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,onValueChange:s,defaultValue:i,orientation:l="horizontal",dir:a,activationMode:u="automatic",...c}=e,p=Xs(a),[m,g]=dr({prop:o,onChange:s,defaultProp:i});return d.jsx(vD,{scope:r,baseId:jt(),value:m,onValueChange:g,orientation:l,dir:p,activationMode:u,children:d.jsx(ee.div,{dir:p,"data-orientation":l,...c,ref:t})})});m2.displayName=c0;var h2="TabsList",g2=f.forwardRef((e,t)=>{const{__scopeTabs:r,loop:o=!0,...s}=e,i=d0(h2,r),l=p2(r);return d.jsx(R1,{asChild:!0,...l,orientation:i.orientation,dir:i.dir,loop:o,children:d.jsx(ee.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:t})})});g2.displayName=h2;var x2="TabsTrigger",y2=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,disabled:s=!1,...i}=e,l=d0(x2,r),a=p2(r),u=w2(l.baseId,o),c=C2(l.baseId,o),p=o===l.value;return d.jsx(A1,{asChild:!0,...a,focusable:!s,active:p,children:d.jsx(ee.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":c,"data-state":p?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:u,...i,ref:t,onMouseDown:q(e.onMouseDown,m=>{!s&&m.button===0&&m.ctrlKey===!1?l.onValueChange(o):m.preventDefault()}),onKeyDown:q(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&l.onValueChange(o)}),onFocus:q(e.onFocus,()=>{const m=l.activationMode!=="manual";!p&&!s&&m&&l.onValueChange(o)})})})});y2.displayName=x2;var v2="TabsContent",b2=f.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,forceMount:s,children:i,...l}=e,a=d0(v2,r),u=w2(a.baseId,o),c=C2(a.baseId,o),p=o===a.value,m=f.useRef(p);return f.useEffect(()=>{const g=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(g)},[]),d.jsx(Qe,{present:s||p,children:({present:g})=>d.jsx(ee.div,{"data-state":p?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":u,hidden:!g,id:c,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:g&&i})})});b2.displayName=v2;function w2(e,t){return`${e}-trigger-${t}`}function C2(e,t){return`${e}-content-${t}`}var bD=m2,wD=g2,Gi=y2,Ui=b2;const CD={compiling:"Compiling",running:"Running",finished:"Finished",canceled:"Canceled"},_D="start",SD="bottom";function kD({runInfo:e}){return d.jsxs(Mo,{children:[d.jsx(Io,{asChild:!0,children:d.jsxs("div",{...A.props(wu.triggerContentContainer,Y.body),children:[d.jsx(ie,{name:"info",color:"disabled"})," Query run details"]})}),d.jsx(Oo,{children:d.jsx(Po,{side:SD,align:_D,children:d.jsx(i0,{customStyle:wu.card,children:d.jsxs(d.Fragment,{children:[e.customContent,e?.performanceAspects&&Object.entries(e.performanceAspects).map(([t,r])=>d.jsx("div",{children:Object.entries(r).map(([o,s])=>d.jsxs("div",{children:[d.jsxs("span",{...A.props(Y.emphasized),children:[o,":"]})," ",d.jsx("span",{...A.props(Y.body),children:s})]},o))},t)),e.queryLink&&d.jsx("a",{href:e.queryLink.href,target:"_blank",rel:"noreferrer",...A.props(wu.link,Y.link),children:e.queryLink.linkText})]})})})})]})}const wu={card:{maxWidth:"mly1dc814f",$$css:!0},triggerContentContainer:{display:"mly3nfvp2",alignItems:"mly6s0dn4",justifyContent:"mlylqzeqv",$$css:!0},link:{backgroundColor:"mlyjbqb8w",border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,cursor:"mly1ypdohk",textDecoration:"mly1hl2dhg",textDecorationColor:null,textDecorationLine:null,textDecorationStyle:null,textDecorationThickness:null,$$css:!0}};function ED({source:e,query:t}){let r;switch(t.executionState){case"compiling":case"running":r=d.jsx(jD,{onCancel:t.onCancel,executionState:t.executionState,queryResolutionStartMillis:t.queryResolutionStartMillis});break;case"canceled":r=d.jsx("div",{className:"mly78zum5 mlydt5ytf mlyh8yej3 mly5yr21d mlyl56j7k mly6s0dn4 mly1665zp3",children:d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly6s0dn4 mlyl56j7k mly167g77z",children:[d.jsx("div",{...A.props(Y.emphasized),children:"Query Canceled"}),d.jsx("div",{...A.props(Y.body),children:"Your query was canceled; nothing to display."})]})});break;case"finished":r=d.jsx(RD,{source:e,response:t.response});break}return r}function RD({source:e,response:t}){let r=null;return t?t.error||t.messages?r=d.jsx(AD,{messages:[...t.error?[t.error]:[],...t.messages?t.messages:[]]}):t.result||(r=d.jsx(ac,{title:"Empty Result",variant:"critical"})):r=d.jsx(ac,{title:"Empty Response",variant:"critical"}),d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly167g77z mly5yr21d",children:[t?.runInfo&&d.jsx(kD,{runInfo:t.runInfo}),r,t?.result&&d.jsx(TD,{result:t.result,source:e})]})}function AD({messages:e}){return d.jsx("div",{children:e.map(t=>{let r=null;if(t.customRenderer)r=t.customRenderer;else{let o;switch(t.severity){case"DEBUG":case"INFO":o="info";break;case"WARN":o="warn";break;case"ERROR":case"FATAL":o="critical";break;default:o="critical"}r=d.jsx(ac,{title:t.title,description:t.description,variant:o,children:t.content})}return d.jsx("div",{children:r},t.title)})})}function TD({result:e,source:t}){const{onDrill:r,setQuery:o}=f.useContext(be),s=f.useRef(null),i=f.useMemo(()=>new _u.MalloyRenderer().createViz({onDrill:u=>{if(r){r(u);return}const{stableQuery:c}=u,p=new J.ASTQuery({query:c,source:t});o?.(p.build())},tableConfig:{enableDrill:!0}}),[r,t,o]);return f.useEffect(()=>{s.current&&i&&(i.setResult(e),i.render(s.current))},[i,e]),i?d.jsx("div",{ref:s,className:"mly5yr21d mly1n2onr6 mly1ja2u2z mlyb3r6kr mlyh8yej3"}):d.jsx("div",{className:"mly78zum5 mlyl56j7k mly6s0dn4",children:d.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyl56j7k mly6s0dn4 mly167g77z",children:[d.jsx(vg,{size:"large"}),d.jsx("div",{...A.props(Y.emphasized),children:"Rendering..."})]})})}function jD({onCancel:e,executionState:t,queryResolutionStartMillis:r}){const o=DD(r);return d.jsxs("div",{className:"mly78zum5 mlydt5ytf mlyh8yej3 mly5yr21d mlyl56j7k mly6s0dn4 mly1665zp3",children:[d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly6s0dn4 mlyl56j7k mly167g77z",children:[d.jsx(vg,{size:"large",customStyle:LD.spinner}),d.jsx("div",{...A.props(Y.emphasized),children:`${CD[t]} query...`}),d.jsx("div",{...A.props(Y.body),children:`Total time elapsed: ${(o/1e3).toFixed(0)}s`})]}),d.jsx(ke,{onClick:e,label:"Cancel Query"})]})}function DD(e){const[t,r]=f.useState(Date.now()-e);return f.useEffect(()=>{const o=setInterval(()=>{r(Date.now()-e)},1e3);return()=>clearInterval(o)},[e]),t}const LD={spinner:{marginBottom:"mly1e56ztr",$$css:!0}};function ND({query:e,debug:t}){var r;const[o,s]=f.useState((r=t?.debuggers)==null?void 0:r.at(0));return d.jsxs("div",{children:[!!t?.debuggers.length&&d.jsxs("div",{className:"mly78zum5 mly167g77z mly6s0dn4",children:[d.jsx("div",{...A.props(Y.largeBody),children:"Debug with:"}),d.jsx(yn,{options:t.debuggers.map(i=>({label:i,value:i})),value:o,onChange:i=>s(i)}),d.jsx(ke,{variant:"default",label:"Run",isDisabled:!o,onClick:()=>o&&t.onDebugQuery(e,o)})]}),d.jsx(Ju,{code:JSON.stringify(e,null,2),language:"json"})]})}const MD=800;function ID({text:e,label:t}){const[r,o]=f.useState(!1);return f.useEffect(()=>{if(!r)return()=>{};const s=setTimeout(()=>{o(!1)},MD);return()=>{clearTimeout(s),o(!1)}},[r]),d.jsx(ke,{variant:"flat",size:"compact",label:r?"Copied!":t,icon:"copy",isDisabled:r,onClick:()=>{navigator.clipboard.writeText(e).then(()=>o(!0))}})}var Pe=(function(e){return e.RESULTS="Results",e.MALLOY="Malloy",e.SQL="SQL",e.RAW_QUERY="Raw Query",e})(Pe||{});function cL({source:e,draftQuery:t,setDraftQuery:r,submittedQuery:o,options:s}){var i,l,a;const[u,c]=f.useState(Pe.MALLOY),p=(i=hm(e,t))==null?void 0:i.toMalloy(),m=e.schema.fields.filter(x=>x.kind==="view"),g=o!==void 0;!g&&(u===Pe.RESULTS||u===Pe.SQL)&&c(Pe.MALLOY),f.useEffect(()=>{c(Pe.RESULTS)},[o]);const h=(()=>{var x,v;return u===Pe.MALLOY&&p?p:u===Pe.SQL&&((v=(x=o?.response)==null?void 0:x.result)!=null&&v.sql)?o.response.result.sql:u===Pe.RAW_QUERY?JSON.stringify(t):null})();return t||o?d.jsxs(bD,{...A.props(on.tabRoot,Y.body),value:u,onValueChange:x=>c(x),children:[d.jsxs("div",{className:"mly78zum5 mly1q0g3np mly1qughib mly6s0dn4 mly153ncpu",children:[d.jsxs(wD,{className:"mly78zum5 mly6s0dn4 mly167g77z",children:[d.jsx(Gi,{value:Pe.RESULTS,disabled:!g,...A.props(Y.body,on.tab,!g&&on.disabledTab),title:g?void 0:"Run a query to see the results.",children:Pe.RESULTS}),d.jsx(Gi,{value:Pe.MALLOY,...A.props(Y.body,on.tab),children:Pe.MALLOY}),d.jsx(Gi,{value:Pe.SQL,disabled:!g,...A.props(Y.body,on.tab,!g&&on.disabledTab),title:g?void 0:"Run a query to see generated SQL.",children:Pe.SQL}),s?.showRawQuery&&d.jsx(Gi,{value:Pe.RAW_QUERY,...A.props(Y.body,on.tab),children:Pe.RAW_QUERY})]}),u!==Pe.RESULTS&&h&&d.jsx(ID,{text:h,label:"Copy Code"})]}),d.jsxs("div",{className:"mly1iyjqo2 mlyb3r6kr",children:[d.jsx(Ui,{value:Pe.RESULTS,className:"mlyc7ga6q mlyh8yej3 mly5yr21d mly9f619",children:o&&d.jsxs(d.Fragment,{children:[t&&o&&!OD(t,o.query)&&d.jsxs("div",{...A.props(on.warning,Y.body),children:[d.jsx(ie,{name:"warning",color:"warning",customStyle:on.warningIcon}),d.jsxs("div",{children:[d.jsx("span",{children:"Query was updated. Run query to see new result or"}),d.jsx("button",{...A.props(on.warningAction,Y.link),onClick:()=>{r(o.query)},children:" revert "}),d.jsx("span",{children:"to the last run query."})]})]}),d.jsx(ED,{source:e,query:o})]})}),d.jsx(Ui,{value:Pe.MALLOY,className:"mlywp4ipm mlyh8yej3 mly5yr21d mly9f619",children:d.jsx(Ju,{code:p??"",language:"malloy"})}),d.jsx(Ui,{value:Pe.SQL,className:"mlywp4ipm mlyh8yej3 mly5yr21d mly9f619",children:((a=(l=o?.response)==null?void 0:l.result)==null?void 0:a.sql)&&d.jsx(Ju,{code:o.response.result.sql,language:"sql"})}),s?.showRawQuery&&d.jsx(Ui,{value:Pe.RAW_QUERY,className:"mlywp4ipm mlyh8yej3 mly5yr21d mly9f619",children:d.jsx(ND,{query:t,debug:s.debugOptions?{debuggers:s.debugOptions.debuggers,onDebugQuery:s.debugOptions.onDebugQuery}:void 0})})]})]}):d.jsx(gD,{views:m,onSelectView:x=>r(PD(x.name,e.name))})}function OD(e,t){return JSON.stringify(e)===JSON.stringify(t)}function PD(e,t){return{definition:{kind:"arrow",source:{kind:"source_reference",name:t},view:{kind:"view_reference",name:e}}}}const on={tabRoot:{height:"mly5yr21d",width:"mlyh8yej3",display:"mly78zum5",flexDirection:"mlydt5ytf",$$css:!0},tab:{border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mlydqdrvq",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,borderRadius:"mlyur7f20",borderStartStartRadius:null,borderStartEndRadius:null,borderEndStartRadius:null,borderEndEndRadius:null,borderTopLeftRadius:null,borderTopRightRadius:null,borderBottomLeftRadius:null,borderBottomRightRadius:null,backgroundColor:"mlyjbqb8w",cursor:"mly1ypdohk",":is([data-state='active'])_color":"mlyb0tsu4",":is([data-state='active'])_fontWeight":"mly1uifvsu",":is([data-state='active'])_backgroundColor":"mly14vaotu",$$css:!0},disabledTab:{color:"mly1jwwhvr",cursor:"mly1ipiool",$$css:!0},warning:{display:"mly78zum5",alignItems:"mly6s0dn4",marginBottom:"mly1e56ztr",$$css:!0},warningAction:{backgroundColor:"mlyjbqb8w",border:"mly1gs6z28",borderWidth:null,borderInlineWidth:null,borderInlineStartWidth:null,borderLeftWidth:null,borderInlineEndWidth:null,borderRightWidth:null,borderBlockWidth:null,borderTopWidth:null,borderBottomWidth:null,borderStyle:null,borderInlineStyle:null,borderInlineStartStyle:null,borderLeftStyle:null,borderInlineEndStyle:null,borderRightStyle:null,borderBlockStyle:null,borderTopStyle:null,borderBottomStyle:null,borderColor:null,borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,padding:"mly1717udv",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,cursor:"mly1ypdohk",$$css:!0},warningIcon:{paddingRight:"mlyy13l1i",paddingInlineStart:null,paddingInlineEnd:null,$$css:!0}};function ks(e,t=[]){return e.flatMap(r=>{switch(r.kind){case"view":return Tx(r)?[]:t.length>0?[]:[{path:t,field:r}];case"measure":case"dimension":return r.type.kind==="array_type"&&r.type.element_type.kind==="record_type"?[{path:t,field:r},...ks(r.type.element_type.fields.map(o=>({kind:r.kind,...o})),[...t,r.name])]:r.type.kind==="record_type"?[{path:t,field:r},...ks(r.type.fields.map(o=>({kind:r.kind,...o})),[...t,r.name])]:[{path:t,field:r}];case"join":return ks(r.schema.fields,[...t,r.name]);default:return[]}})}function FD(e){return ks(e.schema.fields)}function _2(e,t){return Object.values(t.reduce((r,o)=>{const s=[e.name,...o.path].join(".");return r[s]||(r[s]={groupPath:o.path,items:[]}),r[s].items.push(o),r},{}))}function S2(e){return Object.values(e.reduce((t,r)=>{const o=r.field.kind;return t[o]||(t[o]={group:o,items:[]}),t[o].items.push(r),t},{}))}const BD={view:"Views",measure:"Measures",dimension:"Dimensions"};function $D(e,t,r){const o=La(r,t.name),i=f.useMemo(()=>{const{fields:p}=Pr(e),m=r.join(".");return ks(p).filter(g=>g.path.join(".")===m)},[r,e]).find(p=>t.name===p.field.name),l=f.useMemo(()=>{const p=Mn(e);return i?.field.kind!=="dimension"?"Grouping is only available on a dimenion.":p?.hasField(t.name,r)?"Cannot group by a field already in the view.":fr(t)?"":"This field is annotated with #NO_UI."},[e,i?.field.kind,t,r]),a=f.useMemo(()=>{if(i?.field.kind!=="measure")return"Aggregation only supports measure fields.";const p=Mn(e);return p?.hasField(t.name,r)?"This field is already used in the query.":fr(t)?"":"This field is annotated with #NO_UI."},[i?.field.kind,e,t,r]),u=f.useMemo(()=>i?["dimension","measure"].includes(i.field.kind)?zD.includes(i.field.type.kind)?"":"Filtering only supports string, boolean, number, date and time fields.":"Filtering is only available for a dimension or measure.":`Unexpected Error: Could not find a field ${o}.`,[o,i]),c=f.useMemo(()=>{if(!i)return`Unexpected Error: Could not find a field ${o}.`;const p=Mn(e);return p&&wj(p,r,t.name)?"Query is already ordered by this field.":!p||!_j(p,r,t.name)?"Order by is only available for fields in the output.":["dimension","measure"].includes(i.field.kind)?qD.includes(i.field.type.kind)?"":"Order By only supports string, boolean, number, date and time fields.":"Order By is only available for dimension or measure fields."},[i,e,r,t.name,o]);return{isGroupByAllowed:!l,groupByDisabledReason:l,isAggregateAllowed:!a,aggregateDisabledReason:a,isFilterAllowed:!u,filterDisabledReason:u,isOrderByAllowed:!c,orderByDisabledReason:c}}const zD=["string_type","boolean_type","number_type","date_type","timestamp_type"],qD=["string_type","number_type","boolean_type","date_type","timestamp_type"];function k2({field:e,path:t,viewDef:r}){const{rootQuery:o,setQuery:s}=Ie.useContext(be),{focusedNestView:i}=Vs(),l=i??r,{groupByDisabledReason:a,aggregateDisabledReason:u,filterDisabledReason:c,orderByDisabledReason:p}=$D(l,e,t),[m,g]=f.useState(),[h,x]=f.useState(!1),v=(w,C)=>{(e.kind==="dimension"||e.kind==="measure")&&(w==="groupBy"&&!a?Na(l,e,t):w==="aggregate"&&!u?Ma(l,e,t):w==="orderBy"&&!p?kj(l,t,e.name):w==="filter"&&!c&&C&&l2(l,e,t,C),s?.(o?.build()))},y=()=>{e.kind==="view"&&o?.isEmpty()&&(o?.setView(e.name),s?.(o?.build()))},b=()=>{e.kind==="view"&&(u0(l,e),s?.(o?.build()))};return d.jsx(jr,{field:e,hoverActions:e.kind==="view"?d.jsxs(d.Fragment,{children:[d.jsx(Zn,{icon:"insert",disabled:!o?.isEmpty(),onClick:y,tooltip:o?.isEmpty()?"Add view":"Can only add a view to an empty query.",onTooltipOpenChange:x}),d.jsx(Zn,{icon:"nest",onClick:b,tooltip:"Add as new nested query",onTooltipOpenChange:x})]}):e.kind==="measure"?d.jsxs(d.Fragment,{children:[d.jsx(Zn,{icon:"aggregate",tooltip:u||"Add as aggregate",disabled:!!u,onClick:()=>v("aggregate"),onTooltipOpenChange:x}),d.jsx(Gs,{fieldInfo:e,path:t,setFilter:w=>v("filter",w),trigger:d.jsx(Zn,{icon:"filter",tooltip:c||"Add as filter",disabled:!!c,onTooltipOpenChange:x}),onOpenChange:g,layoutProps:{align:"start"}}),d.jsx(Zn,{icon:"orderBy",tooltip:p||"Add as order by",disabled:!!p,onClick:()=>v("orderBy"),onTooltipOpenChange:x})]}):e.kind==="dimension"?d.jsxs(d.Fragment,{children:[d.jsx(Zn,{icon:"groupBy",tooltip:a||"Add as group by",disabled:!!a,onClick:()=>v("groupBy"),onTooltipOpenChange:x}),d.jsx(Gs,{fieldInfo:e,path:t,setFilter:w=>v("filter",w),trigger:d.jsx(Zn,{icon:"filter",tooltip:c||"Add as filter",disabled:!!c,onTooltipOpenChange:x}),onOpenChange:g,layoutProps:{align:"start"}}),d.jsx(Zn,{icon:"orderBy",tooltip:p||"Add as order by",disabled:!!p,onClick:()=>v("orderBy"),onTooltipOpenChange:x})]}):null,onClick:e.kind==="dimension"&&!a?()=>v("groupBy"):e.kind==="measure"&&!u?()=>v("aggregate"):e.kind==="view"?()=>{o?.isEmpty()?y():b()}:void 0,hoverActionsVisible:m||h,tooltip:d.jsx(Ws,{field:e,path:t}),tooltipProps:{side:"right",align:"start",alignOffset:28}})}function Zn({tooltip:e,onTooltipOpenChange:t,...r}){return d.jsxs(jo,{delayDuration:300,onOpenChange:t,children:[d.jsx(Do,{asChild:!0,children:d.jsx(ke,{variant:"flat",size:"compact",...r})}),d.jsx(Lo,{children:d.jsx(No,{sideOffset:8,...A.props(Y.body,Pn.default),children:e})})]})}const Np=["dimension","measure","view"];function WD({source:e,items:t}){const r=f.useMemo(()=>S2(t).sort((i,l)=>Np.indexOf(i.group)-Np.indexOf(l.group)).map(i=>({...i,items:_2(e,i.items)})),[e,t]),{rootQuery:o}=f.useContext(be),s=o?.definition;return s instanceof J.ASTArrowQueryDefinition?d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly1cy8zhl mlyou54vl mlye8ttls mly10cdfl8",children:[d.jsx("div",{...A.props(Y.body,Mp.heading),children:`${t.length} result${t.length>1?"s":""}`}),r.map(({group:i,items:l})=>d.jsxs("div",{children:[d.jsx("div",{...A.props(Y.body,Mp.groupTitle),children:BD[i]}),d.jsx("div",{className:"mly78zum5 mlydt5ytf mlyou54vl",children:l.map(({groupPath:a,items:u})=>f.createElement("div",{className:"mly78zum5 mlydt5ytf mly1jnr06f",key:a.join(".")},d.jsx("div",{...A.props(Y.supporting),children:a.join(" > ")}),u.map(({field:c,path:p})=>d.jsx(k2,{field:c,path:p,viewDef:s},[...p,c.name].join(".")))))})]},i))]}):null}const Mp={heading:{fontWeight:"mly1xlr1w8",$$css:!0},groupTitle:{fontWeight:"mly1xlr1w8",fontSize:"mlyfifm61",$$css:!0}},GD=(e,t)=>t.at(-1)??e.name,UD=(e,t)=>t.length>0?`joined to ${[...t.slice(0,-1),e.name].join(" > ")}`:void 0;function Cu({source:e,fieldItems:t,fieldGroupType:r}){const o=f.useMemo(()=>e?S2(t).map(a=>({...a,items:_2(e,a.items)})):[],[e,t]),s=f.useMemo(()=>{var a;return((a=o.find(({group:u})=>u===r))==null?void 0:a.items)??[]},[o,r]),{rootQuery:i}=f.useContext(be),l=i?.definition;return l instanceof J.ASTArrowQueryDefinition?d.jsx("div",{className:"mly78zum5 mlydt5ytf mly167g77z",children:d.jsx(kv,{children:s.map((a,u)=>d.jsx(R4,{label:GD(e,a.groupPath),sublabel:UD(e,a.groupPath),isInitiallyExpanded:u===0,children:a.items.map(({field:c,path:p})=>d.jsx(k2,{field:c,path:p,viewDef:l},[...p,c.name].join(".")))},a.groupPath.join(".")))})}):null}function dL({onRefresh:e}){const{source:t}=f.useContext(be),[r,o]=f.useState(""),{onCollapse:s}=f.useContext(Ra),i=f.useMemo(()=>t?FD(t).filter(m=>!e0(m.field.annotations??[])):[],[t]),l=i.filter(m=>m.field.kind==="view"),a=i.filter(m=>m.field.kind==="measure"),u=i.filter(m=>m.field.kind==="dimension"),c=f.useMemo(()=>{if(r){const m=r.toLocaleLowerCase();return i.filter(g=>g.field.name.toLocaleLowerCase().includes(m))}return[]},[i,r]),p=!!r;return t?d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly5yr21d mly1gzqxud mlyfuqftd",children:[d.jsxs("div",{...A.props(Y.body,Ip.header),children:[d.jsxs("div",{className:"mly78zum5 mly1qughib",children:[d.jsxs("div",{className:"mly78zum5 mly6s0dn4 mly167g77z mlydqdrvq mlyb3r6kr",children:[d.jsx(ie,{name:"database",color:"gray"}),d.jsx("div",{...A.props(Y.largeBody,Ip.title),children:t.name})]}),d.jsxs("div",{className:"mly78zum5",children:[d.jsx(ke,{icon:"refresh",tooltip:"Refresh the source",onClick:e,size:"compact",variant:"flat"}),s&&d.jsx(ke,{icon:"sidebarCollapse",tooltip:"Close the source panel",onClick:s,size:"compact",variant:"flat"})]})]}),d.jsx(oa,{value:r,onChange:m=>o(m),placeholder:"Search",size:"compact",icon:"search",hasClear:!0})]}),d.jsx(lo,{}),d.jsx("div",{className:"mly78zum5 mlydt5ytf mlyysyzu8 mly1iyjqo2",children:p?d.jsx(WD,{source:t,items:c}):d.jsxs(Pk,{defaultExpandedItemId:"views",children:[d.jsx(pu,{id:"dimensions",label:"Dimensions",startIcon:d.jsx(ie,{name:"dimension",color:"cyan"}),badge:d.jsx(er,{label:u.length.toString(),color:"cyan"}),children:d.jsx(Cu,{source:t,fieldItems:i,fieldGroupType:"dimension"})},"dimensions"),d.jsx(pu,{id:"measures",label:"Measures",startIcon:d.jsx(ie,{name:"measure",color:"green"}),badge:d.jsx(er,{label:a.length.toString(),color:"green"}),children:d.jsx(Cu,{source:t,fieldItems:i,fieldGroupType:"measure"})},"measures"),d.jsx(pu,{id:"views",label:"Views",startIcon:d.jsx(ie,{name:"view",color:"purple"}),badge:d.jsx(er,{label:l.length.toString(),color:"purple"}),children:d.jsx(Cu,{source:t,fieldItems:i,fieldGroupType:"view"})},"views")]})})]}):null}const Ip={header:{display:"mly78zum5",flexDirection:"mlydt5ytf",padding:"mlye8ttls",paddingInline:null,paddingStart:null,paddingLeft:null,paddingEnd:null,paddingRight:null,paddingBlock:null,paddingTop:null,paddingBottom:null,gap:"mly167g77z",rowGap:null,columnGap:null,$$css:!0},title:{overflow:"mlyb3r6kr",overflowX:null,overflowY:null,textOverflow:"mlylyipyv",fontWeight:"mly1xlr1w8",color:"mly1ue28sr",$$css:!0}};function YD({icon:e,title:t,tooltip:r}){const{onExpand:o}=f.useContext(Ra);return d.jsx("div",{className:"mly78zum5 mlydt5ytf mly7a106z mlylqzeqv mly5yr21d mly1gzqxud mlyfuqftd",children:d.jsxs("div",{className:"mly78zum5 mlydt5ytf mly6s0dn4 mlyl56j7k mly167g77z mlye8ttls",children:[d.jsx(ke,{icon:e,variant:"flat",size:"compact",tooltip:r,onClick:o}),t&&d.jsx("div",{...A.props(Y.body,HD.title),children:t})]})})}const HD={title:{fontWeight:"mly1xlr1w8",cursor:"mlyt0e3qv","writing-mode":"mly35i7",$$css:!0}};function fL({isInitiallyExpanded:e=!0,initialWidth:t,minWidth:r,icon:o,title:s,children:i}){const[l,a]=f.useState(e),[u,c]=f.useState(t),p=!l;return d.jsxs(Ra.Provider,{value:{onExpand:()=>a(!0),onCollapse:()=>a(!1)},children:[d.jsxs("div",{...{0:{className:"mly1n2onr6 mly5yr21d mly3psx0u"},1:{className:"mly1n2onr6 mly5yr21d mly3psx0u mly1s85apg"}}[!!p<<0],style:{width:`${u}px`},children:[i,d.jsx(Mk,{width:u,minWidth:r,onWidthChange:c})]}),p&&d.jsx(YD,{icon:o,title:s})]})}export{QD as MalloyExplorerProvider,dR as QueryActionBar,pD as QueryEditor,aL as QueryPanel,fL as ResizableCollapsiblePanel,Mk as ResizeBar,cL as ResultPanel,dL as SourcePanel};
|