@baseline-ui/core 2.1.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.css +10 -0
- package/dist/Accordion.mjs +1 -0
- package/dist/ActionButton.css +10 -0
- package/dist/ActionButton.mjs +1 -0
- package/dist/ActionGroup.css +10 -0
- package/dist/ActionGroup.mjs +1 -0
- package/dist/ActionIconButton.css +10 -0
- package/dist/ActionIconButton.mjs +1 -0
- package/dist/Actionable.css +10 -0
- package/dist/Actionable.mjs +1 -0
- package/dist/AlertDialog.css +10 -0
- package/dist/AlertDialog.mjs +1 -0
- package/dist/AudioPlayer.css +10 -0
- package/dist/AudioPlayer.mjs +1 -0
- package/dist/Avatar.css +10 -0
- package/dist/Avatar.mjs +1 -0
- package/dist/Box.mjs +1 -0
- package/dist/ButtonSelect.css +10 -0
- package/dist/ButtonSelect.mjs +1 -0
- package/dist/Calendar.css +10 -0
- package/dist/Calendar.mjs +1 -0
- package/dist/Checkbox.css +10 -0
- package/dist/Checkbox.mjs +1 -0
- package/dist/Code.css +10 -0
- package/dist/Code.mjs +1 -0
- package/dist/ColorInput.css +10 -0
- package/dist/ColorInput.mjs +1 -0
- package/dist/ColorSwatch.css +10 -0
- package/dist/ColorSwatch.mjs +1 -0
- package/dist/ColorSwatchPicker.css +10 -0
- package/dist/ColorSwatchPicker.mjs +1 -0
- package/dist/ComboBox.css +10 -0
- package/dist/ComboBox.mjs +1 -0
- package/dist/DateField.css +10 -0
- package/dist/DateField.mjs +1 -0
- package/dist/DateFormat.mjs +1 -0
- package/dist/DeviceProvider.mjs +1 -0
- package/dist/Dialog.css +10 -0
- package/dist/Dialog.mjs +1 -0
- package/dist/Disclosure.css +10 -0
- package/dist/Disclosure.mjs +1 -0
- package/dist/DomNodeRenderer.mjs +1 -0
- package/dist/Drawer.css +10 -0
- package/dist/Drawer.mjs +1 -0
- package/dist/Editor.css +10 -0
- package/dist/Editor.mjs +1 -0
- package/dist/FileInput.css +10 -0
- package/dist/FileInput.mjs +1 -0
- package/dist/FileList.css +10 -0
- package/dist/FileList.mjs +1 -0
- package/dist/FileUploader.css +10 -0
- package/dist/FileUploader.mjs +1 -0
- package/dist/FrameProvider.mjs +1 -0
- package/dist/FreehandCanvas.css +10 -0
- package/dist/FreehandCanvas.mjs +1 -0
- package/dist/GridList.css +10 -0
- package/dist/GridList.mjs +1 -0
- package/dist/Group.mjs +1 -0
- package/dist/I18nProvider.mjs +1 -0
- package/dist/Icon.mjs +1 -0
- package/dist/ImageDropZone.css +10 -0
- package/dist/ImageDropZone.mjs +1 -0
- package/dist/ImageGallery.css +10 -0
- package/dist/ImageGallery.mjs +1 -0
- package/dist/InlineAlert.css +10 -0
- package/dist/InlineAlert.mjs +1 -0
- package/dist/InlineToolbar.css +10 -0
- package/dist/InlineToolbar.mjs +10 -0
- package/dist/Kbd.css +10 -0
- package/dist/Kbd.mjs +1 -0
- package/dist/Link.css +10 -0
- package/dist/Link.mjs +1 -0
- package/dist/ListBox.css +10 -0
- package/dist/ListBox.mjs +1 -0
- package/dist/Markdown.css +10 -0
- package/dist/Markdown.mjs +1 -0
- package/dist/Menu.css +10 -0
- package/dist/Menu.mjs +1 -0
- package/dist/MessageFormat.mjs +1 -0
- package/dist/Modal.css +10 -0
- package/dist/Modal.mjs +1 -0
- package/dist/NumberFormat.mjs +1 -0
- package/dist/NumberInput.css +10 -0
- package/dist/NumberInput.mjs +1 -0
- package/dist/Pagination.css +10 -0
- package/dist/Pagination.mjs +1 -0
- package/dist/Panel.css +10 -0
- package/dist/Panel.mjs +1 -0
- package/dist/PointPicker.css +10 -0
- package/dist/PointPicker.mjs +1 -0
- package/dist/Popover.css +10 -0
- package/dist/Popover.mjs +1 -0
- package/dist/Portal.css +10 -0
- package/dist/Portal.mjs +1 -0
- package/dist/PortalContainerProvider.mjs +1 -0
- package/dist/Preview.css +10 -0
- package/dist/Preview.mjs +1 -0
- package/dist/ProgressBar.css +10 -0
- package/dist/ProgressBar.mjs +1 -0
- package/dist/ProgressSpinner.css +10 -0
- package/dist/ProgressSpinner.mjs +1 -0
- package/dist/RadioGroup.css +10 -0
- package/dist/RadioGroup.mjs +1 -0
- package/dist/Reaction.css +10 -0
- package/dist/Reaction.mjs +1 -0
- package/dist/ScrollControlButton.css +10 -0
- package/dist/ScrollControlButton.mjs +1 -0
- package/dist/SearchInput.css +10 -0
- package/dist/SearchInput.mjs +1 -0
- package/dist/Select.css +10 -0
- package/dist/Select.mjs +1 -0
- package/dist/Separator.css +10 -0
- package/dist/Separator.mjs +1 -0
- package/dist/Skeleton.css +10 -0
- package/dist/Skeleton.mjs +1 -0
- package/dist/Slider.css +10 -0
- package/dist/Slider.mjs +1 -0
- package/dist/StatusCard.css +10 -0
- package/dist/StatusCard.mjs +1 -0
- package/dist/Stepper.css +10 -0
- package/dist/Stepper.mjs +1 -0
- package/dist/Switch.css +10 -0
- package/dist/Switch.mjs +1 -0
- package/dist/Table.css +10 -0
- package/dist/Table.mjs +1 -0
- package/dist/Tabs.css +10 -0
- package/dist/Tabs.mjs +1 -0
- package/dist/Tag.css +10 -0
- package/dist/Tag.mjs +1 -0
- package/dist/TagGroup.css +10 -0
- package/dist/TagGroup.mjs +1 -0
- package/dist/TaggedPagination.css +10 -0
- package/dist/TaggedPagination.mjs +1 -0
- package/dist/Text.css +10 -0
- package/dist/Text.mjs +1 -0
- package/dist/TextInput.css +10 -0
- package/dist/TextInput.mjs +1 -0
- package/dist/ThemeProvider.css +10 -0
- package/dist/ThemeProvider.mjs +1 -0
- package/dist/TimeField.css +10 -0
- package/dist/TimeField.mjs +1 -0
- package/dist/Toast.css +10 -0
- package/dist/Toast.mjs +1 -0
- package/dist/ToggleButton.css +10 -0
- package/dist/ToggleButton.mjs +1 -0
- package/dist/ToggleIconButton.css +10 -0
- package/dist/ToggleIconButton.mjs +1 -0
- package/dist/Toolbar.css +10 -0
- package/dist/Toolbar.mjs +1 -0
- package/dist/Tooltip.css +10 -0
- package/dist/Tooltip.mjs +1 -0
- package/dist/TreeView.css +10 -0
- package/dist/TreeView.mjs +1 -0
- package/dist/UNSAFE_ListBox.css +10 -0
- package/dist/UNSAFE_ListBox.mjs +1 -0
- package/dist/Virtualizer.mjs +1 -0
- package/dist/chunk-22BJMDCA.mjs +10 -0
- package/dist/chunk-246VHB32.mjs +10 -0
- package/dist/chunk-2CZ3OV4X.mjs +10 -0
- package/dist/chunk-2JANDORZ.mjs +11 -0
- package/dist/chunk-2MS356Q7.mjs +10 -0
- package/dist/chunk-2PH5GN2S.mjs +0 -0
- package/dist/chunk-2RCST7ET.mjs +10 -0
- package/dist/chunk-2UUKKXBD.mjs +10 -0
- package/dist/chunk-2VY4FAOY.mjs +10 -0
- package/dist/chunk-2WAKHFPS.mjs +10 -0
- package/dist/chunk-34TYNTXM.mjs +10 -0
- package/dist/chunk-3CWP2VCB.mjs +10 -0
- package/dist/chunk-3FYY26ED.mjs +10 -0
- package/dist/chunk-3HKG74G4.mjs +0 -0
- package/dist/chunk-3UH5CQQF.mjs +10 -0
- package/dist/chunk-3W6RWDIE.mjs +10 -0
- package/dist/chunk-44OUOGJ4.mjs +10 -0
- package/dist/chunk-4N6CLPAY.mjs +10 -0
- package/dist/chunk-4NYPVKDO.mjs +10 -0
- package/dist/chunk-4PYEGHW5.mjs +10 -0
- package/dist/chunk-4QEH5CGK.mjs +10 -0
- package/dist/chunk-4SW77SGW.mjs +10 -0
- package/dist/chunk-4WW2MVQN.mjs +0 -0
- package/dist/chunk-4ZJMZB5B.mjs +10 -0
- package/dist/chunk-545KDVGI.mjs +10 -0
- package/dist/chunk-54IAJ3RI.mjs +0 -0
- package/dist/chunk-566SP7NE.mjs +10 -0
- package/dist/chunk-5ANNWMLJ.mjs +0 -0
- package/dist/chunk-5BAHJXOI.mjs +10 -0
- package/dist/chunk-5HXTXIE5.mjs +10 -0
- package/dist/chunk-5IC46G5J.mjs +10 -0
- package/dist/chunk-5KD2MNNX.mjs +10 -0
- package/dist/chunk-5ODZPQL2.mjs +10 -0
- package/dist/chunk-5PQHOVGX.mjs +0 -0
- package/dist/chunk-5ULL6IBX.mjs +10 -0
- package/dist/chunk-5YHNHEDK.mjs +0 -0
- package/dist/chunk-63KRQW56.mjs +10 -0
- package/dist/chunk-66CUIXA6.mjs +10 -0
- package/dist/chunk-66NJ7EYY.mjs +10 -0
- package/dist/chunk-6F66XVOA.mjs +0 -0
- package/dist/chunk-6IRWW75G.mjs +10 -0
- package/dist/chunk-6IX6BM7C.mjs +0 -0
- package/dist/chunk-6XARU7F2.mjs +0 -0
- package/dist/chunk-6YQHZ5RZ.mjs +0 -0
- package/dist/chunk-6Z6HOW6T.mjs +10 -0
- package/dist/chunk-6ZFBX7C7.mjs +10 -0
- package/dist/chunk-6ZQE5SHE.mjs +10 -0
- package/dist/chunk-6ZV4UYEG.mjs +10 -0
- package/dist/chunk-77BAFSDX.mjs +10 -0
- package/dist/chunk-7AQAC6QK.mjs +10 -0
- package/dist/chunk-7AY6C5M5.mjs +10 -0
- package/dist/chunk-7PRJIPFA.mjs +10 -0
- package/dist/chunk-7ZYMMUDM.mjs +10 -0
- package/dist/chunk-A24DWFQ2.mjs +10 -0
- package/dist/chunk-A6ZQQSAX.mjs +10 -0
- package/dist/chunk-AC7OXVHA.mjs +10 -0
- package/dist/chunk-AGUSZG6K.mjs +0 -0
- package/dist/chunk-AGYQLGBZ.mjs +10 -0
- package/dist/chunk-AKES5B6C.mjs +10 -0
- package/dist/chunk-AMQX3KZR.mjs +10 -0
- package/dist/chunk-AMW7LGCF.mjs +10 -0
- package/dist/chunk-AMYRLAIC.mjs +10 -0
- package/dist/chunk-AQYBKDT2.mjs +16 -0
- package/dist/chunk-AUOQSTS5.mjs +10 -0
- package/dist/chunk-AV4ZP5SY.mjs +10 -0
- package/dist/chunk-AZRPXTYJ.mjs +10 -0
- package/dist/chunk-B7PSE5KC.mjs +10 -0
- package/dist/chunk-BED7T5CL.mjs +10 -0
- package/dist/chunk-BGMVPFYK.mjs +10 -0
- package/dist/chunk-BJVFZYUV.mjs +10 -0
- package/dist/chunk-BKDQLDOK.mjs +10 -0
- package/dist/chunk-BLHN7I5Z.mjs +0 -0
- package/dist/chunk-BTVDMO5C.mjs +10 -0
- package/dist/chunk-BU5H25MV.mjs +10 -0
- package/dist/chunk-C342HL26.mjs +0 -0
- package/dist/chunk-C5P23FUW.mjs +10 -0
- package/dist/chunk-C6OMLVIQ.mjs +0 -0
- package/dist/chunk-CAWUDHAE.mjs +10 -0
- package/dist/chunk-CFDKFUTO.mjs +10 -0
- package/dist/chunk-CFLEBB5T.mjs +10 -0
- package/dist/chunk-CFRTAJP2.mjs +0 -0
- package/dist/chunk-CGFLGZL4.mjs +10 -0
- package/dist/chunk-CHTLOFCT.mjs +10 -0
- package/dist/chunk-CPSUI4IW.mjs +10 -0
- package/dist/chunk-CSPZMYVG.mjs +10 -0
- package/dist/chunk-CV6JQGJ3.mjs +10 -0
- package/dist/chunk-CWPFUB7B.mjs +10 -0
- package/dist/chunk-D3IZ4HBL.mjs +10 -0
- package/dist/chunk-D5EEZT5J.mjs +10 -0
- package/dist/chunk-DD5FWULD.mjs +10 -0
- package/dist/chunk-DECHIERQ.mjs +10 -0
- package/dist/chunk-DIHILOKU.mjs +10 -0
- package/dist/chunk-DOL6RDMF.mjs +10 -0
- package/dist/chunk-DRYSJSKA.mjs +10 -0
- package/dist/chunk-DY6WY36N.mjs +0 -0
- package/dist/chunk-E3PFPOHX.mjs +0 -0
- package/dist/chunk-E6VOSF6Z.mjs +10 -0
- package/dist/chunk-EA6GA4WC.mjs +10 -0
- package/dist/chunk-EK3RIYMV.mjs +10 -0
- package/dist/chunk-ELXWR5TS.mjs +10 -0
- package/dist/chunk-EMCEJKBJ.mjs +10 -0
- package/dist/chunk-ENDOKA57.mjs +10 -0
- package/dist/chunk-EU75HMPG.mjs +10 -0
- package/dist/chunk-EX2LI2CV.mjs +10 -0
- package/dist/chunk-EZXMEGV7.mjs +0 -0
- package/dist/chunk-F2HESRBD.mjs +10 -0
- package/dist/chunk-F2X474RV.mjs +10 -0
- package/dist/chunk-F7PGMOQF.mjs +10 -0
- package/dist/chunk-FJ2JRD3H.mjs +10 -0
- package/dist/chunk-FKYHERP4.mjs +0 -0
- package/dist/chunk-FP5EWPOF.mjs +10 -0
- package/dist/chunk-FRZTJBLY.mjs +10 -0
- package/dist/chunk-FTYXFTJV.mjs +10 -0
- package/dist/chunk-FXCHST4Z.mjs +10 -0
- package/dist/chunk-GCZFXILF.mjs +10 -0
- package/dist/chunk-GEZGEZAP.mjs +10 -0
- package/dist/chunk-GFLVN5JQ.mjs +10 -0
- package/dist/chunk-GKODQS6E.mjs +10 -0
- package/dist/chunk-GOSLHCDP.mjs +0 -0
- package/dist/chunk-GXOXYPQQ.mjs +10 -0
- package/dist/chunk-H44PBNVX.mjs +10 -0
- package/dist/chunk-H7OUUCSA.mjs +10 -0
- package/dist/chunk-HBBRMEES.mjs +10 -0
- package/dist/chunk-HHI7CEUP.mjs +10 -0
- package/dist/chunk-HI44JQA7.mjs +10 -0
- package/dist/chunk-HLDCVJXD.mjs +10 -0
- package/dist/chunk-HONWMHMX.mjs +10 -0
- package/dist/chunk-HT55YHTN.mjs +10 -0
- package/dist/chunk-HWOMGFBL.mjs +10 -0
- package/dist/chunk-HXTAOYOD.mjs +10 -0
- package/dist/chunk-I3RGYL4B.mjs +10 -0
- package/dist/chunk-I3YGB2BE.mjs +10 -0
- package/dist/chunk-IB23KCIW.mjs +10 -0
- package/dist/chunk-IHLJTHGQ.mjs +10 -0
- package/dist/chunk-ILBAZFBL.mjs +0 -0
- package/dist/chunk-INDVRI57.mjs +10 -0
- package/dist/chunk-IUQOFRI3.mjs +10 -0
- package/dist/chunk-IVVZSESM.mjs +10 -0
- package/dist/chunk-IW4GXU75.mjs +10 -0
- package/dist/chunk-IYFTU6IC.mjs +10 -0
- package/dist/chunk-J3MJZQUJ.mjs +10 -0
- package/dist/chunk-J4NO4WYU.mjs +0 -0
- package/dist/chunk-J5YWAPLN.mjs +10 -0
- package/dist/chunk-J7EAQSKX.mjs +10 -0
- package/dist/chunk-J7K7I5U2.mjs +10 -0
- package/dist/chunk-JBXZ6ZHP.mjs +10 -0
- package/dist/chunk-JDLUGVXG.mjs +10 -0
- package/dist/chunk-JI4SJ53O.mjs +11 -0
- package/dist/chunk-JJG67M2S.mjs +10 -0
- package/dist/chunk-JJPCZOOI.mjs +10 -0
- package/dist/chunk-JQ4ZGZPV.mjs +15 -0
- package/dist/chunk-JUXBZ2ZN.mjs +10 -0
- package/dist/chunk-K6IQ4ALU.mjs +0 -0
- package/dist/chunk-K6X2BHPP.mjs +10 -0
- package/dist/chunk-KCHAWPUN.mjs +10 -0
- package/dist/chunk-KEVERVHK.mjs +10 -0
- package/dist/chunk-KG5PDPBK.mjs +10 -0
- package/dist/chunk-KKJ6XIU3.mjs +10 -0
- package/dist/chunk-KPEONVLU.mjs +10 -0
- package/dist/chunk-KUEDQO7P.mjs +10 -0
- package/dist/chunk-KY3JKXSX.mjs +10 -0
- package/dist/chunk-LQMEFFFM.mjs +10 -0
- package/dist/chunk-LZFTBNPW.mjs +10 -0
- package/dist/chunk-M5M3EPG5.mjs +10 -0
- package/dist/chunk-MEYMETYC.mjs +11 -0
- package/dist/chunk-MEZNZ5W6.mjs +10 -0
- package/dist/chunk-MFH2E2GU.mjs +10 -0
- package/dist/chunk-MI7DCFP2.mjs +10 -0
- package/dist/chunk-MIHIAPBG.mjs +10 -0
- package/dist/chunk-MLNPTVVX.mjs +10 -0
- package/dist/chunk-MRJFGHFW.mjs +10 -0
- package/dist/chunk-MUNFBB7D.mjs +0 -0
- package/dist/chunk-MVK5CB64.mjs +10 -0
- package/dist/chunk-MXKP7NQ4.mjs +10 -0
- package/dist/chunk-MZ4O6LWG.mjs +0 -0
- package/dist/chunk-N2XGJKZG.mjs +10 -0
- package/dist/chunk-N5RZGO7Y.mjs +10 -0
- package/dist/chunk-N7MTFSWR.mjs +10 -0
- package/dist/chunk-NA3IF43N.mjs +10 -0
- package/dist/chunk-NGZRN4SF.mjs +10 -0
- package/dist/chunk-NHM3H5JU.mjs +0 -0
- package/dist/chunk-NO55UIGK.mjs +0 -0
- package/dist/chunk-NRKHWSOP.mjs +0 -0
- package/dist/chunk-NSC53QWT.mjs +10 -0
- package/dist/chunk-NV7KQVPE.mjs +10 -0
- package/dist/chunk-O4VZ6XEP.mjs +10 -0
- package/dist/chunk-O57ZEY3V.mjs +0 -0
- package/dist/chunk-O66FNQSB.mjs +10 -0
- package/dist/chunk-O7XK2WIX.mjs +10 -0
- package/dist/chunk-OAY74XPB.mjs +10 -0
- package/dist/chunk-OC42IZG2.mjs +10 -0
- package/dist/chunk-OLJWK3LS.mjs +10 -0
- package/dist/chunk-OMT6ZWSV.mjs +11 -0
- package/dist/chunk-OO7BXL2N.mjs +10 -0
- package/dist/chunk-P44XZ4PV.mjs +10 -0
- package/dist/chunk-P5GO3XIS.mjs +10 -0
- package/dist/chunk-PAQQ7MQG.mjs +10 -0
- package/dist/chunk-PBFIKNYZ.mjs +10 -0
- package/dist/chunk-PBO4SFGS.mjs +10 -0
- package/dist/chunk-PF3OQKXP.mjs +10 -0
- package/dist/chunk-PHZZLBH3.mjs +10 -0
- package/dist/chunk-PZTVDABF.mjs +0 -0
- package/dist/chunk-Q5UMLFN3.mjs +10 -0
- package/dist/chunk-QAUEG3EX.mjs +0 -0
- package/dist/chunk-QBJDGBTU.mjs +0 -0
- package/dist/chunk-QMDDCVAF.mjs +10 -0
- package/dist/chunk-QNBBJ5HC.mjs +11 -0
- package/dist/chunk-R32OJDN2.mjs +10 -0
- package/dist/chunk-RC7QITNV.mjs +10 -0
- package/dist/chunk-RCBUNCHV.mjs +10 -0
- package/dist/chunk-RFTDIXEG.mjs +10 -0
- package/dist/chunk-RJC3HQDZ.mjs +10 -0
- package/dist/chunk-RJWPSJX2.mjs +10 -0
- package/dist/chunk-RMUV6NJJ.mjs +10 -0
- package/dist/chunk-ROHLZINC.mjs +10 -0
- package/dist/chunk-RSKKEGJZ.mjs +10 -0
- package/dist/chunk-RT4LMB6X.mjs +10 -0
- package/dist/chunk-RXSYDMT6.mjs +10 -0
- package/dist/chunk-S3V4OOC3.mjs +10 -0
- package/dist/chunk-SAZLJ66W.mjs +10 -0
- package/dist/chunk-SMAYNDQQ.mjs +10 -0
- package/dist/chunk-TAROK7TO.mjs +10 -0
- package/dist/chunk-TAYP2OGC.mjs +10 -0
- package/dist/chunk-TBSQUJ67.mjs +10 -0
- package/dist/chunk-TDXALNX3.mjs +10 -0
- package/dist/chunk-TEQE6WCH.mjs +10 -0
- package/dist/chunk-THRAJMLX.mjs +10 -0
- package/dist/chunk-TI5RR7KX.mjs +10 -0
- package/dist/chunk-TIHKHXTS.mjs +10 -0
- package/dist/chunk-TJEK54BW.mjs +10 -0
- package/dist/chunk-TK4QXU3W.mjs +10 -0
- package/dist/chunk-TKQOQVZD.mjs +10 -0
- package/dist/chunk-TO2TQ2LE.mjs +10 -0
- package/dist/chunk-TO6OQF2Y.mjs +10 -0
- package/dist/chunk-TZ4MVY4E.mjs +10 -0
- package/dist/chunk-U2ODAIZG.mjs +10 -0
- package/dist/chunk-U4K44ZHN.mjs +10 -0
- package/dist/chunk-UCNHDT36.mjs +10 -0
- package/dist/chunk-UCZZLAPB.mjs +10 -0
- package/dist/chunk-UQJGSVXP.mjs +10 -0
- package/dist/chunk-USMC34OO.mjs +10 -0
- package/dist/chunk-UTQ7AIPM.mjs +0 -0
- package/dist/chunk-UUBOEBYZ.mjs +10 -0
- package/dist/chunk-V3L4SVVF.mjs +10 -0
- package/dist/chunk-VCIX4HG7.mjs +0 -0
- package/dist/chunk-VDUFLHKK.mjs +10 -0
- package/dist/chunk-VG7J427T.mjs +10 -0
- package/dist/chunk-VHDXSFQC.mjs +10 -0
- package/dist/chunk-VLQ4S7XC.mjs +10 -0
- package/dist/chunk-VTX6R6KM.mjs +10 -0
- package/dist/chunk-VXB5SVQC.mjs +10 -0
- package/dist/chunk-W6QO7FPZ.mjs +10 -0
- package/dist/chunk-WAFYFWH4.mjs +0 -0
- package/dist/chunk-WAOWR7MR.mjs +10 -0
- package/dist/chunk-WL27JGVG.mjs +10 -0
- package/dist/chunk-WOVAT6U4.mjs +10 -0
- package/dist/chunk-WSCZ34XO.mjs +10 -0
- package/dist/chunk-WSQGB4ZE.mjs +0 -0
- package/dist/chunk-WWSGOGLA.mjs +10 -0
- package/dist/chunk-X3AXUU3H.mjs +10 -0
- package/dist/chunk-X3OCHEQM.mjs +12 -0
- package/dist/chunk-X7DI4I2U.mjs +10 -0
- package/dist/chunk-XB657BXX.mjs +10 -0
- package/dist/chunk-XBBPWSJI.mjs +0 -0
- package/dist/chunk-XJGQXVMR.mjs +10 -0
- package/dist/chunk-XPISSX5R.mjs +10 -0
- package/dist/chunk-XTH6B5FE.mjs +10 -0
- package/dist/chunk-XVBOKL6D.mjs +10 -0
- package/dist/chunk-XWLESSHN.mjs +10 -0
- package/dist/chunk-XXANV3FM.mjs +10 -0
- package/dist/chunk-XZ2VSOJD.mjs +29 -0
- package/dist/chunk-Y4DRSGEJ.mjs +10 -0
- package/dist/chunk-Y6XQJ4X2.mjs +10 -0
- package/dist/chunk-YB3KW7JC.mjs +10 -0
- package/dist/chunk-YCI6BEXQ.mjs +10 -0
- package/dist/chunk-YGSCHWU3.mjs +10 -0
- package/dist/chunk-YIGT3OP2.mjs +10 -0
- package/dist/chunk-YOBESAXG.mjs +10 -0
- package/dist/chunk-YS3Y5KGV.mjs +10 -0
- package/dist/chunk-YT36W3OS.mjs +10 -0
- package/dist/chunk-YV3WI6OV.mjs +10 -0
- package/dist/chunk-YV5CNDCW.mjs +0 -0
- package/dist/chunk-YVYMYKYN.mjs +10 -0
- package/dist/chunk-ZANUFNOL.mjs +0 -0
- package/dist/chunk-ZGRRD3TU.mjs +10 -0
- package/dist/chunk-ZLAY7NNY.mjs +10 -0
- package/dist/chunk-ZLDT2KDZ.mjs +10 -0
- package/dist/chunk-ZNN43VZV.mjs +10 -0
- package/dist/chunk-ZREX7XOO.mjs +10 -0
- package/dist/chunk-ZRWDMNNY.mjs +10 -0
- package/dist/chunk-ZVODDLGL.mjs +10 -0
- package/dist/hooks/useDevice.mjs +1 -0
- package/dist/hooks/useI18n.mjs +1 -0
- package/dist/hooks/useImage.mjs +1 -0
- package/dist/hooks/useIntersectionObserver.mjs +1 -0
- package/dist/hooks/useIsFirstRender.mjs +1 -0
- package/dist/hooks/useIsTouchDevice.mjs +1 -0
- package/dist/hooks/useLiveInteractionModality.mjs +1 -0
- package/dist/hooks/useLocalStorage.mjs +1 -0
- package/dist/hooks/useMedia.mjs +1 -0
- package/dist/hooks/useMutationObserver.mjs +1 -0
- package/dist/hooks/usePortalContainer.mjs +1 -0
- package/dist/hooks/usePreventFocus.mjs +1 -0
- package/dist/hooks/useResizeObserver.mjs +1 -0
- package/dist/hooks/useTextSelection.mjs +1 -0
- package/dist/hooks/useUndoRedo.mjs +1 -0
- package/dist/index.d.ts +811 -70
- package/dist/index.js +21 -21
- package/dist/index.mjs +1 -43
- package/dist/messageIds.mjs +1 -0
- package/dist/react-aria.d.ts +133 -133
- package/dist/react-aria.mjs +1 -0
- package/dist/react-stately.d.ts +82 -82
- package/dist/react-stately.mjs +1 -0
- package/dist/utils/a11y.mjs +1 -0
- package/dist/utils/classNames.mjs +1 -0
- package/dist/utils/colors.mjs +1 -0
- package/dist/utils/constants.mjs +10 -0
- package/dist/utils/devWarn.mjs +1 -0
- package/dist/utils/dom.mjs +1 -0
- package/dist/utils/invariant.mjs +1 -0
- package/dist/utils/isInIframe.mjs +1 -0
- package/dist/utils/isInShadowDOM.mjs +1 -0
- package/dist/utils/isRect.mjs +1 -0
- package/dist/utils/keyboards.mjs +1 -0
- package/dist/utils/math.mjs +1 -0
- package/dist/utils/objects.mjs +1 -0
- package/dist/utils/onDropOrPaste.mjs +1 -0
- package/dist/utils/overlays.mjs +1 -0
- package/dist/utils/reactAriaCompat.mjs +1 -0
- package/dist/utils/reactAriaComponentsCompat.mjs +1 -0
- package/dist/utils/resolveAriaLabelAttrs.mjs +1 -0
- package/dist/utils/resolvePublicUrl.mjs +10 -0
- package/dist/utils/strings.mjs +1 -0
- package/dist/utils/style.mjs +1 -0
- package/dist/utils/svgs.mjs +1 -0
- package/dist/utils/validations.mjs +1 -0
- package/intl/ar.json +2 -2
- package/intl/cs.json +2 -2
- package/intl/cy.json +4 -4
- package/intl/da.json +3 -3
- package/intl/de.json +3 -3
- package/intl/el.json +2 -2
- package/intl/en-GB.json +2 -2
- package/intl/en.json +2 -2
- package/intl/fi.json +3 -3
- package/intl/fr-CA.json +1 -1
- package/intl/fr.json +2 -2
- package/intl/he.json +3 -3
- package/intl/hr.json +3 -3
- package/intl/id.json +3 -3
- package/intl/ja.json +2 -2
- package/intl/ko.json +1 -1
- package/intl/ms.json +2 -2
- package/intl/nb-NO.json +3 -3
- package/intl/nl.json +4 -4
- package/intl/pt-PT.json +1 -1
- package/intl/pt.json +3 -3
- package/intl/ru.json +2 -2
- package/intl/sk.json +2 -2
- package/intl/sl.json +4 -4
- package/intl/sv.json +3 -3
- package/intl/th.json +1 -1
- package/intl/tr.json +3 -3
- package/intl/uk.json +1 -1
- package/intl/zh-Hant.json +2 -2
- package/messages.json +2 -2
- package/package.json +8 -5
- package/sbom.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -1,43 +1 @@
|
|
|
1
|
-
import Un,{createContext,forwardRef,useEffect,useContext,useRef,useState,useMemo,useImperativeHandle,createElement,useCallback,useLayoutEffect,useId,useReducer,Fragment as Fragment$1,cloneElement,version,isValidElement}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import R2,{flushSync,createPortal}from'react-dom';import {useSyncExternalStore}from'use-sync-external-store/shim/index.js';import {createCalendar,endOfMonth,isSameMonth,isToday,isSameDay,DateFormatter,toCalendar,toCalendarDate,today,isEqualCalendar,getWeeksInMonth,startOfWeek,getDayOfWeek,endOfWeek,startOfMonth,maxDate,minDate,Time,toZoned,toTime,GregorianCalendar,startOfYear,CalendarDate,toCalendarDateTime,getLocalTimeZone,now,isEqualDay}from'@internationalized/date';import*as R8 from'dompurify';import R8__default from'dompurify';import {useGranularLayoutEffect,useGranularEffect}from'granular-hooks';import {sprinkles,breakpoints,lightTheme,themes,themeVars,layoutSprinkleValues}from'@baseline-ui/tokens';import {CheckmarkIcon,SearchIcon,CaretLeftIcon,CaretRightIcon,AvatarIcon,MoreIcon,QuestionmarkCircleIcon,PauseIcon,PlayIcon,TextIcon as TextIcon$1,HighlightTextIcon}from'@baseline-ui/icons/24';import {CaretDownIcon,MinusIcon,PlusIcon,XIcon as XIcon$3,ChevronRightIcon,ChevronRightFilledIcon,CaretLeftIcon as CaretLeftIcon$4,CaretRightIcon as CaretRightIcon$4}from'@baseline-ui/icons/8';import {ReadOnlyIcon,ErrorCircleFilledIcon,XIcon as XIcon$2,CheckmarkIcon as CheckmarkIcon$2,CheckmarkCircleFilledIcon,ErrorAltCircleFilledIcon as ErrorAltCircleFilledIcon$1,CalendarIcon,CaretLeftIcon as CaretLeftIcon$2,CaretRightIcon as CaretRightIcon$2,AvatarIcon as AvatarIcon$1,WarningFilledIcon as WarningFilledIcon$1,InfoCircleFilledIcon as InfoCircleFilledIcon$1,HelpIcon,UndoIcon,RedoIcon,TrashIcon,ArrowDownCircleFilledIcon,CircleFilledIcon,ErrorCircleIcon,WarningIcon,AttachmentsIcon}from'@baseline-ui/icons/16';import {MotionConfig,motion,AnimatePresence,useReducedMotion,MotionGlobalConfig}from'motion/react';export{MotionGlobalConfig}from'motion/react';import {assignInlineVars}from'@vanilla-extract/dynamic';import {XIcon,SearchIcon as SearchIcon$1,CheckmarkIcon as CheckmarkIcon$1,CheckCircleFilledIcon,ErrorAltCircleFilledIcon,CaretLeftIcon as CaretLeftIcon$1,CaretRightIcon as CaretRightIcon$1,WarningFilledIcon,InfoCircleFilledIcon,TextIcon,BoldIcon,ItalicIcon,UnderlineIcon,ArrowUpCircleFilledIcon,AtIcon,XCircleFilledIcon,UploadIcon,PlusIcon as PlusIcon$2,MinusIcon as MinusIcon$2,LinkIcon}from'@baseline-ui/icons/20';import {XIcon as XIcon$1,CheckmarkIcon as CheckmarkIcon$3,CaretLeftIcon as CaretLeftIcon$3,CaretRightIcon as CaretRightIcon$3,PlusIcon as PlusIcon$1,CaretUpIcon,CaretDownIcon as CaretDownIcon$1,MinusIcon as MinusIcon$1}from'@baseline-ui/icons/12';import {getStroke}from'perfect-freehand';import oF from'just-camel-case';import GY from'just-kebab-case';import oJ from'markdown-it';import {usePanelRef,Panel,useGroupRef,useDefaultLayout,Group,Separator}from'react-resizable-panels';import*as pF from'comlink';/**
|
|
2
|
-
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
-
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
-
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
-
* This notice may not be removed from this file.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
var OK=Object.defineProperty;var N1=(e,t)=>{for(var r in t)OK(e,r,{get:t[r],enumerable:true});};var F1=false;function Cp(){F1=true;}function nr(){return F1}var Pp="react-aria-clear-focus",xu="react-aria-focus";var G=e=>e?.ownerDocument??document,X=e=>e&&"window"in e&&e.window===e?e:G(e).defaultView||window;function KK(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Dr(e){return KK(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function Y(e,t){if(!nr())return t&&e?e.contains(t):false;if(!e||!t)return false;let r=t;for(;r!==null;){if(r===e)return true;let o=r.assignedSlot;o?r=o:Dr(r)?r=r.host:r=r.parentNode;}return false}var ue=(e=document)=>{if(!nr())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function $(e){let t=e.target;if(nr()&&t&&"shadowRoot"in t&&t.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return t}function Fr(e,t=document){if(typeof t.getElementById=="function"){let o=t.getElementById(e);if(o)return o}let r=t.children||[];for(let o of r){if(o.getAttribute&&o.getAttribute("id")===e)return o;if(o.shadowRoot){let i=Fr(e,o.shadowRoot);if(i)return i}let n=Fr(e,o);if(n)return n}return null}function vo(e){if(!e)return false;let t=e.getRootNode(),r=X(e);if(!(t instanceof r.Document||t instanceof r.ShadowRoot))return false;let o=t.activeElement;return o!=null&&e.contains(o)}function cl(e){let t=oh(G(e));t!==e&&(t&&Sp(t,e),e&&qn(e,t));}function Sp(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:true,relatedTarget:t}));}function qn(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:true,relatedTarget:t}));}function oh(e){let t=ue(e),r=t?.getAttribute("aria-activedescendant");return r&&Fr(r,e)||t}function Ve(e){if(VK(e))e.focus({preventScroll:true});else {let t=BK(e);e.focus(),HK(t);}}var Dp=null;function VK(e){if(Dp==null){Dp=false;try{G(e).createElement("div").focus({get preventScroll(){return Dp=!0,!0}});}catch{}}return Dp}function BK(e){let t=e.parentNode,r=[],o=G(e),n=X(e),i=o.scrollingElement||o.documentElement;for(;t&&t!==i;){if(Dr(t)){t=t.host;continue}t instanceof n.HTMLElement&&(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;}return i instanceof n.HTMLElement&&r.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),r}function HK(e){for(let{element:t,scrollTop:r,scrollLeft:o}of e)t.scrollTop=r,t.scrollLeft=o;}var $K=typeof Element<"u"&&"checkVisibility"in Element.prototype;function jK(e){let t=X(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return false;let{display:r,visibility:o}=e.style,n=r!=="none"&&o!=="hidden"&&o!=="collapse";if(n){let{getComputedStyle:i}=X(e),{display:a,visibility:l}=i(e);n=a!=="none"&&l!=="hidden"&&l!=="collapse";}return n}function GK(e,t){return !e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):true)}function kp(e,t){return $K?e.checkVisibility({visibilityProperty:true})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&jK(e)&&GK(e,t)&&(!e.parentElement||kp(e.parentElement,e))}var nh=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],UK=nh.join(':not([hidden]):not([data-bui-avoid-focus="true"]),')+',[tabindex]:not([disabled]):not([hidden]):not([data-bui-avoid-focus="true"])';nh.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var WK=nh.join(':not([hidden]):not([tabindex="-1"]),');function Xn(e,t){return e.matches(UK)&&!K1(e)&&(t?.skipVisibilityCheck||kp(e))}function Hi(e){return e.matches(WK)&&kp(e)&&!K1(e)}function K1(e){let t=e;for(;t!=null;){if(t instanceof X(t).HTMLElement&&t.inert)return true;t=t.parentElement;}return false}var te=typeof document<"u"?Un.useLayoutEffect:()=>{};function Cu(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Ep(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t});}function zp(e){let t=useRef({isFocused:false,observer:null});return te(()=>{let r=t.current;return ()=>{r.observer&&(r.observer.disconnect(),r.observer=null);}},[]),useCallback(r=>{let o=$(r),n=X(o);if(o instanceof n.HTMLButtonElement||o instanceof n.HTMLInputElement||o instanceof n.HTMLTextAreaElement||o instanceof n.HTMLSelectElement){t.current.isFocused=true;let i=o,a=l=>{if(t.current.isFocused=false,i.disabled){let s=Cu(l);e?.(s);}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null);};i.addEventListener("focusout",a,{once:true}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){t.current.observer?.disconnect();let l=i===ue(G(i))?null:ue(G(i));i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:true,relatedTarget:l}));}}),t.current.observer.observe(i,{attributes:true,attributeFilter:["disabled"]});}},[e])}var Tu=false;function ih(e){for(;e&&!Xn(e,{skipVisibilityCheck:true});)e=e.parentElement;let t=X(e),r=ue(t.document);if(!r||r===e)return;Tu=true;let o=false,n=d=>{($(d)===r||o)&&d.stopImmediatePropagation();},i=d=>{($(d)===r||o)&&(d.stopImmediatePropagation(),!e&&!o&&(o=true,Ve(r),c()));},a=d=>{($(d)===e||o)&&d.stopImmediatePropagation();},l=d=>{($(d)===e||o)&&(d.stopImmediatePropagation(),o||(o=true,Ve(r),c()));},s=t.document;t.addEventListener("blur",n,true),t.addEventListener("focusout",i,true),t.addEventListener("focusin",l,true),t.addEventListener("focus",a,true),s.addEventListener("blur",n,true),s.addEventListener("focusout",i,true),s.addEventListener("focusin",l,true),s.addEventListener("focus",a,true);let u=[];if(nr()){let d=new Set;for(let m of [r,e])if(m){let f=m.getRootNode();f instanceof X(m).ShadowRoot&&d.add(f);}u=[...d];for(let m of u)m.addEventListener("blur",n,true),m.addEventListener("focusout",i,true),m.addEventListener("focusin",l,true),m.addEventListener("focus",a,true);}let c=()=>{cancelAnimationFrame(p),t.removeEventListener("blur",n,true),t.removeEventListener("focusout",i,true),t.removeEventListener("focusin",l,true),t.removeEventListener("focus",a,true),s.removeEventListener("blur",n,true),s.removeEventListener("focusout",i,true),s.removeEventListener("focusin",l,true),s.removeEventListener("focus",a,true);for(let d of u)d.removeEventListener("blur",n,true),d.removeEventListener("focusout",i,true),d.removeEventListener("focusin",l,true),d.removeEventListener("focus",a,true);Tu=false,o=false;},p=requestAnimationFrame(c);return c}function wp(e){if(typeof window>"u"||window.navigator==null)return false;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function ah(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):false}function Tn(e){if(process.env.NODE_ENV==="test")return e;let t=null;return ()=>(t==null&&(t=e()),t)}var ht=Tn(function(){return ah(/^Mac/i)}),Pu=Tn(function(){return ah(/^iPhone/i)}),$i=Tn(function(){return ah(/^iPad/i)||ht()&&navigator.maxTouchPoints>1}),Bt=Tn(function(){return Pu()||$i()}),Yn=Tn(function(){return ht()||Bt()}),Zn=Tn(function(){return wp(/AppleWebKit/i)&&!ji()}),ji=Tn(function(){return wp(/Chrome/i)}),ir=Tn(function(){return wp(/Android/i)}),Rp=Tn(function(){return wp(/Firefox/i)});function Cn(e){return e.pointerType===""&&e.isTrusted?true:ir()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function dl(e){return !ir()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}var QK=createContext({isNative:true,open:rV,useHref:e=>e});function Yr(){return useContext(QK)}function eV(e,t){let r=e.getAttribute("target");return (!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Xr(e,t,r=true){let{metaKey:o,ctrlKey:n,altKey:i,shiftKey:a}=t;Rp()&&X(e).event?.type?.startsWith("key")&&e.target==="_blank"&&(ht()?o=true:n=true);let l=Zn()&&ht()&&!$i()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:n,altKey:i,shiftKey:a}):new MouseEvent("click",{metaKey:o,ctrlKey:n,altKey:i,shiftKey:a,detail:1,bubbles:true,cancelable:true});Xr.isOpening=r,Ve(e),e.dispatchEvent(l),Xr.isOpening=false;}Xr.isOpening=false;function tV(e,t){if(e instanceof X(e).HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=G(e).createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r);}}function rV(e,t){tV(e,r=>Xr(r,t));}function pl(e){let r=Yr().useHref(e.href??"");return {"data-href":e.href?r:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function Jn(e){let r=Yr().useHref(e?.href??""),o={};if(e)for(let n of ["href","target","rel","download","ping","referrerPolicy"])n in e&&(o[n]=n==="href"?r:e[n]);return o}function Ip(e,t,r,o){let n=X(e.currentTarget);!t.isNative&&e.currentTarget instanceof n.HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&eV(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,o));}var _p={prefix:String(Math.round(Math.random()*1e10)),current:0},V1=Un.createContext(_p),iV=Un.createContext(false);var aV=!!(typeof window<"u"&&window.document&&window.document.createElement),lh=new WeakMap;function lV(e=false){let t=useContext(V1),r=useRef(null);if(r.current===null&&!e){let o=Un.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(o){let n=lh.get(o);n==null?lh.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==n.state&&(t.current=n.id,lh.delete(o));}r.current=++t.current;}return r.current}function sV(e){let t=useContext(V1);t===_p&&!aV&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=lV(!!e),o=t===_p&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${o}-${r}`}function uV(e){let t=Un.useId(),[r]=useState(Zr()),o=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${_p.prefix}`;return e||`${o}-${t}`}var B1=typeof Un.useId=="function"?uV:sV;function cV(){return false}function dV(){return true}function pV(e){return ()=>{}}function Zr(){return typeof Un.useSyncExternalStore=="function"?Un.useSyncExternalStore(pV,cV,dV):useContext(iV)}var Pn=null,ml="keyboard",Du=new Set,Su=new Map,Ui=false,uh=false,mV={Tab:true,Escape:true};function Ap(e,t){for(let r of Du)r(e,t);}function fV(e){return !(e.metaKey||!ht()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Mp(e){Ui=true,!Xr.isOpening&&fV(e)&&(Pn="keyboard",ml="keyboard",Ap("keyboard",e));}function Jr(e){Pn="pointer",ml="pointerType"in e?e.pointerType:"mouse",(e.type==="mousedown"||e.type==="pointerdown")&&(Ui=true,Ap("pointer",e));}function j1(e){!Xr.isOpening&&Cn(e)&&(Ui=true,Pn="virtual",ml="virtual");}function G1(e){let t=$(e),r="nodeType"in t&&t.nodeType===Node.DOCUMENT_NODE,o=r?t.defaultView||window:X(t),n=r?t:G(t);t===o||t===n||Tu||!e.isTrusted||(!Ui&&!uh&&(Pn="virtual",ml="virtual",Ap("virtual",e)),Ui=false,uh=false);}function U1(){Tu||(Ui=false,uh=true);}function Lp(e){if(typeof window>"u"||typeof document>"u")return;let t=X(e),r=G(e);if(Su.get(t))return;let o=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:true,writable:true,value:function(){Ui=true,o.apply(this,arguments);}}),r.addEventListener("keydown",Mp,true),r.addEventListener("keyup",Mp,true),r.addEventListener("click",j1,true),t.addEventListener("focus",G1,true),t.addEventListener("blur",U1,false),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",Jr,true),r.addEventListener("pointermove",Jr,true),r.addEventListener("pointerup",Jr,true)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",Jr,true),r.addEventListener("mousemove",Jr,true),r.addEventListener("mouseup",Jr,true)),t.addEventListener("beforeunload",()=>{W1(e);},{once:true}),Su.set(t,{focus:o});}var W1=(e,t)=>{let r=X(e),o=G(e);t&&o.removeEventListener("DOMContentLoaded",t),Su.has(r)&&(Reflect.defineProperty(r.HTMLElement.prototype,"focus",{configurable:true,writable:true,value:Su.get(r).focus}),o.removeEventListener("keydown",Mp,true),o.removeEventListener("keyup",Mp,true),o.removeEventListener("click",j1,true),r.removeEventListener("focus",G1,true),r.removeEventListener("blur",U1,false),typeof PointerEvent<"u"?(o.removeEventListener("pointerdown",Jr,true),o.removeEventListener("pointermove",Jr,true),o.removeEventListener("pointerup",Jr,true)):process.env.NODE_ENV==="test"&&(o.removeEventListener("mousedown",Jr,true),o.removeEventListener("mousemove",Jr,true),o.removeEventListener("mouseup",Jr,true)),Su.delete(r));};function ku(e){let t=G(e),r;return t.readyState!=="loading"?Lp(e):(r=()=>{Lp(e);},t.addEventListener("DOMContentLoaded",r)),()=>W1(e,r)}typeof document<"u"&&ku();function At(){return Pn!=="pointer"}function Dt(){return Pn}function ar(e){Pn=e,ml=e,Ap(e,null);}function Op(){return ml}function Yt(){Lp();let[e,t]=useState(Pn);return useEffect(()=>{let r=()=>{t(Pn);};return Du.add(r),()=>{Du.delete(r);}},[]),Zr()?null:e}var yV=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function bV(e,t,r){let o=r?$(r):void 0,n=G(o),i=X(o),a=typeof i<"u"?i.HTMLInputElement:HTMLInputElement,l=typeof i<"u"?i.HTMLTextAreaElement:HTMLTextAreaElement,s=typeof i<"u"?i.HTMLElement:HTMLElement,u=typeof i<"u"?i.KeyboardEvent:KeyboardEvent,c=ue(n);return e=e||c instanceof a&&!yV.has(c.type)||c instanceof l||c instanceof s&&c.isContentEditable,!(e&&t==="keyboard"&&r instanceof u&&!mV[r.key])}function q1(e={}){let{isTextInput:t,autoFocus:r}=e,[o,n]=useState(r||At());return Eu(i=>{n(i);},[t],{isTextInput:t}),{isFocusVisible:o}}function Eu(e,t,r){Lp(),useEffect(()=>{if(r?.enabled===false)return;let o=(n,i)=>{bV(!!r?.isTextInput,n,i)&&e(At());};return Du.add(o),()=>{Du.delete(o);}},t);}var X1={"ar-AE":{collectionLabel:"\u0645\u0642\u062A\u0631\u062D\u0627\u062A"},"bg-BG":{collectionLabel:"\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F"},"cs-CZ":{collectionLabel:"N\xE1vrhy"},"da-DK":{collectionLabel:"Forslag"},"de-DE":{collectionLabel:"Empfehlungen"},"el-GR":{collectionLabel:"\u03A0\u03C1\u03BF\u03C4\u03AC\u03C3\u03B5\u03B9\u03C2"},"en-US":{collectionLabel:"Suggestions"},"es-ES":{collectionLabel:"Sugerencias"},"et-EE":{collectionLabel:"Soovitused"},"fi-FI":{collectionLabel:"Ehdotukset"},"fr-FR":{collectionLabel:"Suggestions"},"he-IL":{collectionLabel:"\u05D4\u05E6\u05E2\u05D5\u05EA"},"hr-HR":{collectionLabel:"Prijedlozi"},"hu-HU":{collectionLabel:"Javaslatok"},"it-IT":{collectionLabel:"Suggerimenti"},"ja-JP":{collectionLabel:"\u5019\u88DC"},"ko-KR":{collectionLabel:"\uC81C\uC548"},"lt-LT":{collectionLabel:"Pasi\u016Blymai"},"lv-LV":{collectionLabel:"Ieteikumi"},"nb-NO":{collectionLabel:"Forslag"},"nl-NL":{collectionLabel:"Suggesties"},"pl-PL":{collectionLabel:"Sugestie"},"pt-BR":{collectionLabel:"Sugest\xF5es"},"pt-PT":{collectionLabel:"Sugest\xF5es"},"ro-RO":{collectionLabel:"Sugestii"},"ru-RU":{collectionLabel:"\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F"},"sk-SK":{collectionLabel:"N\xE1vrhy"},"sl-SI":{collectionLabel:"Predlogi"},"sr-SP":{collectionLabel:"Predlozi"},"sv-SE":{collectionLabel:"F\xF6rslag"},"tr-TR":{collectionLabel:"\xD6neriler"},"uk-UA":{collectionLabel:"\u041F\u0440\u043E\u043F\u043E\u0437\u0438\u0446\u0456\u0457"},"zh-CN":{collectionLabel:"\u5EFA\u8BAE"},"zh-TW":{collectionLabel:"\u5EFA\u8B70"}};function Bo(e){return ht()?e.metaKey:e.ctrlKey}var gV=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Np(e){let t=X(e);return e instanceof t.HTMLInputElement&&!gV.has(e.type)||e instanceof t.HTMLTextAreaElement||e instanceof t.HTMLElement&&e.isContentEditable}function We(...e){return (...t)=>{for(let r of e)typeof r=="function"&&r(...t);}}function Y1(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Y1(e[t]))&&(o&&(o+=" "),o+=r);}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function hV(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Y1(e))&&(o&&(o+=" "),o+=t);return o}var Z1=hV;function fl(e){let[t,r]=useState(e),o=useRef(t),n=useRef(null),i=useRef(()=>{if(!n.current)return;let l=n.current.next();if(l.done){n.current=null;return}o.current===l.value?i.current():r(l.value);});te(()=>{o.current=t,n.current&&i.current();});let a=useCallback(l=>{n.current=l(o.current),i.current();},[i]);return [t,a]}var SV=!!(typeof window<"u"&&window.document&&window.document.createElement),yl=new Map,zu;typeof FinalizationRegistry<"u"&&(zu=new FinalizationRegistry(e=>{yl.delete(e);}));function ee(e){let[t,r]=useState(e),o=useRef(null),n=B1(t),i=useRef(null);if(zu&&zu.register(i,n),SV){let a=yl.get(n);a&&!a.includes(o)?a.push(o):yl.set(n,[o]);}return te(()=>{let a=n;return ()=>{zu&&zu.unregister(i),yl.delete(a);}},[n]),useEffect(()=>{let a=o.current;return a&&r(a),()=>{a&&(o.current=null);}}),n}function Q1(e,t){if(e===t)return e;let r=yl.get(e);if(r)return r.forEach(n=>n.current=t),t;let o=yl.get(t);return o?(o.forEach(n=>n.current=e),e):t}function vt(e=[],t){let r=ee(),[o,n]=fl(r),i=useCallback(()=>{let a=G(t?.current);n(function*(){yield r,yield Fr(r,a)?r:void 0;});},[r,n,t]);return te(i,[r,i,...e]),o}function se(...e){return e.length===1&&e[0]?e[0]:t=>{let r=false,o=e.map(n=>{let i=eD(n,t);return r||=typeof i=="function",i});if(r)return ()=>{o.forEach((n,i)=>{typeof n=="function"?n():eD(e[i],null);});}}}function eD(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t);}function A(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let o=e[r];for(let n in o){let i=t[n],a=o[n];typeof i=="function"&&typeof a=="function"&&n[0]==="o"&&n[1]==="n"&&n.charCodeAt(2)>=65&&n.charCodeAt(2)<=90?t[n]=We(i,a):(n==="className"||n==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[n]=Z1(i,a):n==="id"&&i&&a?t.id=Q1(i,a):n==="ref"&&i&&a?t.ref=se(i,a):t[n]=a!==void 0?a:i;}}return t}var zV=Un.useInsertionEffect??te;function Pe(e){let t=useRef(null);return zV(()=>{t.current=e;},[e]),useCallback((...r)=>{let o=t.current;return o?.(...r)},[])}function at(e,t,r,o){let n=Pe(r),i=r==null;useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,n,o),()=>{a.removeEventListener(t,n,o);}},[e,t,o,i]);}function Qe(e,t){let{id:r,"aria-label":o,"aria-labelledby":n}=e;return r=ee(r),n&&o?n=[...new Set([r,...n.trim().split(/\s+/)])].join(" "):n&&(n=n.trim().split(/\s+/).join(" ")),!o&&!n&&t&&(o=t),{id:r,"aria-label":o,"aria-labelledby":n}}var RV=Symbol.for("react-aria.i18n.locale"),IV=Symbol.for("react-aria.i18n.strings"),Fp,lr=class e{strings;defaultLocale;constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,o])=>o)),this.defaultLocale=r;}getStringForLocale(t,r){let n=this.getStringsForLocale(r)[t];if(!n)throw new Error(`Could not find intl message ${t} in ${r} locale`);return n}getStringsForLocale(t){let r=this.strings[t];return r||(r=_V(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[RV];if(Fp===void 0){let n=window[IV];if(!n)return null;Fp={};for(let i in n)Fp[i]=new e({[r]:n[i]},r);}let o=Fp?.[t];if(!o)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return o}};function _V(e,t,r="en-US"){if(t[e])return t[e];let o=MV(e);if(t[o])return t[o];for(let n in t)if(n.startsWith(o+"-"))return t[n];return t[r]}function MV(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var tD=new Map,rD=new Map,Sn=class{locale;strings;constructor(t,r){this.locale=t,this.strings=r;}format(t,r){let o=this.strings.getStringForLocale(t,this.locale);return typeof o=="function"?o(r,this):o}plural(t,r,o="cardinal"){let n=r["="+t];if(n)return typeof n=="function"?n():n;let i=this.locale+":"+o,a=tD.get(i);a||(a=new Intl.PluralRules(this.locale,{type:o}),tD.set(i,a));let l=a.select(t);return n=r[l]||r.other,typeof n=="function"?n():n}number(t){let r=rD.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),rD.set(this.locale,r)),r.format(t)}select(t,r){let o=t[r]||t.other;return typeof o=="function"?o():o}};var LV=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),AV=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function wu(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),o=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(o)return o.direction==="rtl";if(r.script)return LV.has(r.script)}let t=e.split("-")[0];return AV.has(t)}var nD=Symbol.for("react-aria.i18n.locale");function iD(){let e=typeof window<"u"&&window[nD]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return {locale:e,direction:wu(e)?"rtl":"ltr"}}var dh=iD(),Ru=new Set;function oD(){dh=iD();for(let e of Ru)e(dh);}function ph(){let e=Zr(),[t,r]=useState(dh);return useEffect(()=>(Ru.size===0&&window.addEventListener("languagechange",oD),Ru.add(r),()=>{Ru.delete(r),Ru.size===0&&window.removeEventListener("languagechange",oD);}),[]),e?{locale:typeof window<"u"&&window[nD]||"en-US",direction:"ltr"}:t}var mh=Un.createContext(null);function KV(e){let{locale:t,children:r}=e,o=Un.useMemo(()=>({locale:t,direction:wu(t)?"rtl":"ltr"}),[t]);return jsx(mh.Provider,{value:o,children:r})}function VV(e){let{children:t}=e,r=ph();return jsx(mh.Provider,{value:r,children:t})}function Iu(e){let{locale:t,children:r}=e;return t?jsx(KV,{locale:t,children:r}):jsx(VV,{children:r})}function Q(){let e=ph();return useContext(mh)||e}var lD=new WeakMap;function HV(e){let t=lD.get(e);return t||(t=new lr(e),lD.set(e,t)),t}function Vp(e,t){return t&&lr.getGlobalDictionaryForPackage(t)||HV(e)}function ve(e,t){let{locale:r}=Q(),o=Vp(e,t);return useMemo(()=>new Sn(r,o),[r,o])}function ce(e){let t=useRef(null),r=useRef(void 0),o=useCallback(n=>{if(typeof e=="function"){let i=e,a=i(n);return ()=>{typeof a=="function"?a():i(null);}}else if(e)return e.current=n,()=>{e.current=null;}},[e]);return useMemo(()=>({get current(){return t.current},set current(n){t.current=n,r.current&&(r.current(),r.current=void 0),n!=null&&(r.current=o(n));}}),[o])}function fh(e,t){let{inputRef:r,collectionRef:o,filter:n,disableAutoFocusFirst:i=false,disableVirtualFocus:a=false}=e,l=ee(),s=useRef(void 0),u=useRef(false),c=useRef(null),p=Dt()==="virtual"&&(Bt()||ir()),[d,m]=useState(!p&&!a),[f,y]=useState(false),[g,b]=useState(false);useEffect(()=>()=>clearTimeout(s.current),[]);let x=Pe(K=>{!K.isTrusted&&d&&r.current&&ue(G(r.current))!==r.current&&Op()!=="touch"&&r.current.focus();let I=$(K);K.isTrusted||!I||c.current===I.id||(clearTimeout(s.current),I!==o.current?u.current?(c.current=I.id,s.current=setTimeout(()=>{t.setFocusedNodeId(I.id);},500)):(c.current=I.id,t.setFocusedNodeId(I.id)):c.current&&!Fr(c.current,G(o.current))&&(c.current=null,t.setFocusedNodeId(null)),u.current=false);}),[h,v]=useState(null),C=useCallback(K=>{v(K),K!=null?(K.getAttribute("tabindex")!=null&&m(false),y(true)):y(false);},[]);te(()=>(h?.addEventListener("focusin",x),()=>{h?.removeEventListener("focusin",x);}),[h]);let T=ce(useMemo(()=>se(o,C),[o,C])),P=useCallback(()=>{if(!o.current){b(true);return}u.current=true,o.current?.dispatchEvent(new CustomEvent(xu,{cancelable:true,bubbles:true,detail:{focusStrategy:"first"}}));},[o]),k=useCallback(K=>{b(false),cl(ue(G(r.current))),c.current=null,t.setFocusedNodeId(null);let I=new CustomEvent(Pp,{cancelable:true,bubbles:true,detail:{clearFocusKey:K}});clearTimeout(s.current),u.current=false,o.current?.dispatchEvent(I);},[o,t]),S=useRef("");at(r,"beforeinput",K=>{let{inputType:I}=K;S.current=I;});let w=K=>{(S.current==="insertText"||S.current==="insertCompositionText"||S.current==="insertFromComposition")&&!i?P():S.current&&(S.current.includes("insert")||S.current.includes("delete")||S.current.includes("history"))&&(k(true),oh(G(r.current))===r.current&&qn(r.current,null)),t.setInputValue(K);},E=useRef(null),R=K=>{if(E.current=$(K.nativeEvent),K.nativeEvent.isComposing)return;let I=c.current;switch(I!==null&&G(r.current).getElementById(I)==null&&(c.current=null,I=null),K.key){case "a":if(Bo(K))return;break;case "Escape":if(K.isDefaultPrevented())return;break;case " ":return;case "Tab":"continuePropagation"in K&&K.continuePropagation();return;case "Home":case "End":case "PageDown":case "PageUp":case "ArrowUp":case "ArrowDown":case "ArrowRight":case "ArrowLeft":{if((K.key==="Home"||K.key==="End")&&I==null&&K.shiftKey)return;if(K.key==="ArrowRight"||K.key==="ArrowLeft"){if(I==null){K.isPropagationStopped()||K.stopPropagation();return}break}K.preventDefault();let U=new CustomEvent(xu,{cancelable:true,bubbles:true});o.current?.dispatchEvent(U);break}}K.isPropagationStopped()||K.stopPropagation();let H=true;if(o.current!==null)if(I==null)H=o.current?.dispatchEvent(new KeyboardEvent(K.nativeEvent.type,K.nativeEvent))||false;else {let U=Fr(I,G(o.current));U&&(H=U?.dispatchEvent(new KeyboardEvent(K.nativeEvent.type,K.nativeEvent))||false);}if(H)switch(K.key){case "ArrowLeft":case "ArrowRight":{k();break}case "Enter":I!=null&&Fr(I,G(r.current))?.dispatchEvent(new PointerEvent("click",K.nativeEvent));break}else K.preventDefault();},_=Pe(K=>{if($(K)===E.current){K.stopImmediatePropagation();let I=c.current;I==null?o.current?.dispatchEvent(new KeyboardEvent(K.type,K)):Fr(I,G(o.current))?.dispatchEvent(new KeyboardEvent(K.type,K));}});useEffect(()=>{let K=G(r.current);return K.addEventListener("keyup",_,true),()=>{K.removeEventListener("keyup",_,true);}},[_]);let D=ve(X1,"@react-aria/autocomplete"),F=Qe({id:l,"aria-label":D.format("collectionLabel")}),z=useCallback((K,I)=>n?n(K,t.inputValue,I):true,[t.inputValue,n]),N=K=>{if(!K.isTrusted)return;let I=c.current?Fr(c.current,G(r.current)):null;I&&Sp(I,K.relatedTarget);},V=K=>{if(!K.isTrusted)return;if(c.current?Fr(c.current,G(r.current)):null){let H=$(K.nativeEvent);queueMicrotask(()=>{Sp(H,o.current),qn(o.current,H);});}},M=K=>{K.button!==0||K.pointerType==="touch"||c.current==null||r.current==null||$(K)===r.current&&k();},O={value:t.inputValue,onChange:w},B={onKeyDown:R,"aria-activedescendant":t.focusedNodeId??void 0,onBlur:N,onFocus:V,onPointerDown:M};return O={...O,...d&&f&&B,enterKeyHint:"go","aria-controls":f?l:void 0,"aria-autocomplete":"list",autoCorrect:"off",spellCheck:"false",autoComplete:"off"},{inputProps:O,collectionProps:A(F,{shouldUseVirtualFocus:d,disallowTypeAhead:d,autoFocus:g?"first":false}),collectionRef:T,filter:n!=null?z:void 0}}var YV=typeof document<"u"?Un.useInsertionEffect??Un.useLayoutEffect:()=>{};function ye(e,t,r){let[o,n]=useState(e||t),i=useRef(o),a=useRef(e!==void 0),l=e!==void 0;useEffect(()=>{let p=a.current;p!==l&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),a.current=l;},[l]);let s=l?e:o;YV(()=>{i.current=s;});let[,u]=useReducer(()=>({}),{}),c=useCallback((p,...d)=>{let m=typeof p=="function"?p(i.current):p;Object.is(i.current,m)||(i.current=m,n(m),u(),r?.(m,...d));},[r]);return [s,c]}function yh(e){let{onInputChange:t,inputValue:r,defaultInputValue:o=""}=e,n=u=>{t&&t(u);},[i,a]=useState(null),[l,s]=ye(r,o,n);return {inputValue:l,setInputValue:s,focusedNodeId:i,setFocusedNodeId:a}}var Qr=Symbol("default");function ct({values:e,children:t}){for(let[r,o]of e)t=jsx(r.Provider,{value:o,children:t});return t}function Fe(e){let{className:t,style:r,children:o,defaultClassName:n=void 0,defaultChildren:i=void 0,defaultStyle:a,values:l,render:s}=e;return useMemo(()=>{let u,c,p;return typeof t=="function"?u=t({...l,defaultClassName:n}):u=t,typeof r=="function"?c=r({...l,defaultStyle:a||{}}):c=r,typeof o=="function"?p=o({...l,defaultChildren:i}):o==null?p=i:p=o,{className:u??n,style:c||a?{...a,...c}:void 0,children:p??i,"data-rac":"",render:s?d=>s(d,l):void 0}},[t,r,o,n,i,a,l,s])}function eo(e,t){let r=useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let o=t||Qr;if(!r.slots[o]){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(a=>`"${a}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${n}.`)}return r.slots[o]}return r}function Re(e,t,r){let o=eo(r,e.slot)||{},{ref:n,...i}=o,a=ce(useMemo(()=>se(t,n),[t,n])),l=A(i,e);return "style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?l.style=s=>{let u=typeof i.style=="function"?i.style(s):i.style,c={...s.defaultStyle,...u},p=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return {...c,...p}}:l.style={...i.style,...e.style}),[l,a]}function Mu(e=true){let[t,r]=useState(e),o=useRef(false),n=useCallback(i=>{o.current=true,r(!!i);},[]);return te(()=>{o.current||r(false);},[]),[n,t]}function $p(e){let t=/^(data-.*)$/,r={};for(let o in e)t.test(o)||(r[o]=e[o]);return r}function rB(e,t,r){let{render:o,...n}=t,i=useRef(null),a=useMemo(()=>se(r,i),[r,i]);te(()=>{process.env.NODE_ENV!=="production"&&o&&(i.current?i.current.localName!==e&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${e}>, got <${i.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"));},[e,o]);let l={...n,ref:a};return o?o(l,void 0):jsx(e,{...l})}var pD={},xe=new Proxy({},{get(e,t){if(typeof t!="string")return;let r=pD[t];return r||(r=forwardRef(rB.bind(null,t)),pD[t]=r),r}});var bD=createContext(null),Gp=createContext(null),Ho=createContext(null),Qn=createContext(null);function gh(e){let t=eo(bD,e.slot);e=A(t,e);let{filter:r,disableAutoFocusFirst:o}=e,n=yh(e),i=useRef(null),a=useRef(null),{inputProps:l,collectionProps:s,collectionRef:u,filter:c}=fh({...$p(e),filter:r,disableAutoFocusFirst:o,inputRef:i,collectionRef:a},n);return jsx(ct,{values:[[Gp,n],[Qn,{...l,ref:i}],[Ho,{...s,filter:c,ref:u}]],children:e.children})}var nB=new Set(["id"]),iB=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),aB=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),lB=new Set(["dir","lang","hidden","inert","translate"]),gD=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),sB=/^(data-.*)$/;function re(e,t={}){let{labelable:r,isLink:o,global:n,events:i=n,propNames:a}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(nB.has(s)||r&&iB.has(s)||o&&aB.has(s)||n&&lB.has(s)||i&&(gD.has(s)||s.endsWith("Capture")&&gD.has(s.slice(0,-7)))||a?.has(s)||sB.test(s))&&(l[s]=e[s]);return l}var hD=new WeakMap,vD=new WeakSet;function xD(e){return "propertyName"in e}function uB(){let e=new Map,t=new Set,r=a=>{let l=$(a);if(!xD(a)||!l)return;let s=e.get(l);s&&(s.delete(a.propertyName),s.size===0&&(l.removeEventListener("transitioncancel",r),e.delete(l)),e.size===0&&CD(i));},o=(a,l)=>{let s=e.get(a);s||(s=new Set,e.set(a,s),a.addEventListener("transitioncancel",r,{once:true})),s.add(l);},i={transitionsByElement:e,transitionCallbacks:t,track:o,onTransitionStart:a=>{let l=$(a);!xD(a)||!l||o(l,a.propertyName);},onTransitionEnd:r};return i}function TD(e){let t=hD.get(e);return t||(t=uB(),hD.set(e,t)),t}function cB(e){let t=[],r=e?.getRootNode()??null;Dr(r)&&t.push(r);let o=G(e).body;return o&&t.push(o),t}function CD(e){for(let t of e.transitionCallbacks)t();e.transitionCallbacks.clear();}function dB(e,t){let r=Dr(e)?e:G(e),o=Dr(e)?e.getAnimations?.():G(e).getAnimations?.();for(let n of o??[]){if(n.playState==="finished"||!("transitionProperty"in n))continue;let i=n.effect?.target;i&&i.getRootNode()===r&&t.track(i,n.transitionProperty);}}function hh(e){if(typeof window>"u")return;let t=cB(e).filter(o=>!vD.has(o));if(t.length===0)return;let r=TD(G(e));for(let o of t)vD.add(o),o.addEventListener("transitionrun",r.onTransitionStart),o.addEventListener("transitionend",r.onTransitionEnd),dB(o,r);}typeof document<"u"&&(document.readyState!=="loading"?hh():document.addEventListener("DOMContentLoaded",()=>hh()));function pB(e){for(let[t]of e.transitionsByElement)"isConnected"in t&&(!t.isConnected||!t.ownerDocument?.defaultView)&&e.transitionsByElement.delete(t);e.transitionsByElement.size===0&&CD(e);}function Up(e,t){hh(t);let r=TD(G(t));requestAnimationFrame(()=>{pB(r),r.transitionsByElement.size===0?e():r.transitionCallbacks.add(e);});}function Ue(e){if(!e.isConnected)return;let t=G(e);if(Dt()==="virtual"){let r=ue(t);Up(()=>{let o=ue(t);(o===r||o===t.body)&&e.isConnected&&Ve(e);},e);}else Ve(e);}function Zt(e){let{isDisabled:t,onFocus:r,onBlur:o,onFocusChange:n}=e,i=useCallback(s=>{if($(s)===s.currentTarget)return o&&o(s),n&&n(false),true},[o,n]),a=zp(i),l=useCallback(s=>{let u=$(s),c=G(u),p=c?ue(c):ue();u===s.currentTarget&&u===p&&(r&&r(s),n&&n(true),a(s));},[n,r,a]);return {focusProps:{onFocus:!t&&(r||n||o)?l:void 0,onBlur:!t&&(o||n)?i:void 0}}}function vh(e){if(!e)return;let t=true;return r=>{let o={...r,preventDefault(){r.preventDefault();},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=true;},continuePropagation(){t=false,typeof r.continuePropagation=="function"&&r.continuePropagation();},isPropagationStopped(){return t}};e(o),t&&r.stopPropagation();}}function Le(e){return {keyboardProps:e.isDisabled?{}:{onKeyDown:vh(e.onKeyDown),onKeyUp:vh(e.onKeyUp)}}}function bl(e,t){te(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null);}});}var gl=Un.createContext(null);function bB(e){let t=useContext(gl)||{};bl(t,e);let{ref:r,...o}=t;return o}var Wp=Un.forwardRef(function(t,r){let{children:o,...n}=t,i=ce(r),a={...n,ref:i};return jsx(gl.Provider,{value:a,children:o})});function rt(e,t){let{focusProps:r}=Zt(e),{keyboardProps:o}=Le(e),n=A(r,o),i=bB(t),a=e.isDisabled?{}:i,l=useRef(e.autoFocus);useEffect(()=>{l.current&&t.current&&Ue(t.current),l.current=false;},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:A({...n,tabIndex:s},a)}}var hl=forwardRef(({children:e,...t},r)=>{r=ce(r);let{focusableProps:o}=rt(t,r),n=Un.Children.only(e);useEffect(()=>{if(process.env.NODE_ENV==="production")return;let a=r.current;if(!a||!(a instanceof X(a).Element)){console.error("<Focusable> child must forward its ref to a DOM element.");return}if(!t.isDisabled&&!Xn(a)){console.warn("<Focusable> child must be focusable. Please ensure the tabIndex prop is passed through.");return}if(a.localName!=="button"&&a.localName!=="input"&&a.localName!=="select"&&a.localName!=="textarea"&&a.localName!=="a"&&a.localName!=="area"&&a.localName!=="summary"&&a.localName!=="img"&&a.localName!=="svg"){let l=a.getAttribute("role");l?l!=="application"&&l!=="button"&&l!=="checkbox"&&l!=="combobox"&&l!=="gridcell"&&l!=="link"&&l!=="menuitem"&&l!=="menuitemcheckbox"&&l!=="menuitemradio"&&l!=="option"&&l!=="radio"&&l!=="searchbox"&&l!=="separator"&&l!=="slider"&&l!=="spinbutton"&&l!=="switch"&&l!=="tab"&&l!=="tabpanel"&&l!=="textbox"&&l!=="treeitem"&&l!=="img"&&l!=="meter"&&l!=="progressbar"&&console.warn(`<Focusable> child must have an interactive ARIA role. Got "${l}".`):console.warn("<Focusable> child must have an interactive ARIA role.");}},[r,t.isDisabled]);let i=parseInt(Un.version,10)<19?n.ref:n.props.ref;return Un.cloneElement(n,{...A(o,n.props),ref:se(i,r)})});var vl="default",xh="",qp=new WeakMap;function Au(e){let t=X(e);if(Bt()){if(vl==="default"){let r=G(e);xh=r.documentElement.style.webkitUserSelect,r.documentElement.style.webkitUserSelect="none";}vl="disabled";}else if(e instanceof t.HTMLElement||e instanceof t.SVGElement){let r="userSelect"in e.style?"userSelect":"webkitUserSelect";qp.set(e,e.style[r]),e.style[r]="none";}}function xl(e){let t=X(e);if(Bt()){if(vl!=="disabled")return;vl="restoring",setTimeout(()=>{Up(()=>{if(vl==="restoring"){let r=G(e);r.documentElement.style.webkitUserSelect==="none"&&(r.documentElement.style.webkitUserSelect=xh||""),xh="",vl="default";}},e);},300);}else if((e instanceof t.HTMLElement||e instanceof t.SVGElement)&&e&&qp.has(e)){let r=qp.get(e),o="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[o]==="none"&&(e.style[o]=r),e.getAttribute("style")===""&&e.removeAttribute("style"),qp.delete(e);}}function DD(e){return e?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}var Th=new WeakMap;function Xp(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return DD(t);if(Th.has(t))return Th.get(t);let r=t.querySelector('meta[property="csp-nonce"]'),o=r&&r instanceof X(r).HTMLMetaElement&&(r.nonce||r.content)||DD(t)||void 0;return o!==void 0&&Th.set(t,o),o}var Wi=Un.createContext({register:()=>{}});Wi.displayName="PressResponderContext";function zt(){let e=useRef(new Map),t=useCallback((n,i,a,l)=>{let s=l?.once?(...u)=>{e.current.delete(a),a(...u);}:a;e.current.set(a,{type:i,eventTarget:n,fn:s,options:l}),n.addEventListener(i,s,l);},[]),r=useCallback((n,i,a,l)=>{let s=e.current.get(a)?.fn||a;n.removeEventListener(i,s,l),e.current.delete(a);},[]),o=useCallback(()=>{e.current.forEach((n,i)=>{r(n.eventTarget,n.type,i,n.options);});},[r]);return useEffect(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}function kB(e){let t=useContext(Wi);if(t){let{register:r,ref:o,...n}=t;e=A(n,e),r();}return bl(t,e.ref),e}var Tl=class{type;pointerType;target;shiftKey;ctrlKey;metaKey;altKey;x;y;key;#e=true;constructor(t,r,o,n){let a=(n?.target??o.currentTarget)?.getBoundingClientRect(),l,s=0,u,c=null;o.clientX!=null&&o.clientY!=null&&(u=o.clientX,c=o.clientY),a&&(u!=null&&c!=null?(l=u-a.left,s=c-a.top):(l=a.width/2,s=a.height/2)),this.type=t,this.pointerType=r,this.target=o.currentTarget,this.shiftKey=o.shiftKey,this.metaKey=o.metaKey,this.ctrlKey=o.ctrlKey,this.altKey=o.altKey,this.x=l,this.y=s,this.key=o.key;}continuePropagation(){this.#e=false;}get shouldStopPropagation(){return this.#e}},kD=Symbol("linkClicked"),ED="react-aria-pressable-style",zD="data-react-aria-pressable";function Ae(e){let{onPress:t,onPressChange:r,onPressStart:o,onPressEnd:n,onPressUp:i,onClick:a,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:p,ref:d,...m}=kB(e),[f,y]=useState(false),g=useRef({isPressed:false,ignoreEmulatedMouseEvents:false,didFirePressStart:false,isTriggeringEvent:false,activePointerId:null,target:null,isOverTarget:false,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:x}=zt(),h=useCallback((D,F)=>{let z=g.current;if(l||z.didFirePressStart)return false;let N=true;if(z.isTriggeringEvent=true,o){let V=new Tl("pressstart",F,D);o(V),N=V.shouldStopPropagation;}return r&&r(true),z.isTriggeringEvent=false,z.didFirePressStart=true,y(true),N},[l,o,r]),v=useCallback((D,F,z=true)=>{let N=g.current;if(!N.didFirePressStart)return false;N.didFirePressStart=false,N.isTriggeringEvent=true;let V=true;if(n){let M=new Tl("pressend",F,D);n(M),V=M.shouldStopPropagation;}if(r&&r(false),y(false),t&&z&&!l){let M=new Tl("press",F,D);t(M),V&&=M.shouldStopPropagation;}return N.isTriggeringEvent=false,V},[l,n,r,t]),C=Pe(v),T=useCallback((D,F)=>{let z=g.current;if(l)return false;if(i){z.isTriggeringEvent=true;let N=new Tl("pressup",F,D);return i(N),z.isTriggeringEvent=false,N.shouldStopPropagation}return true},[l,i]),P=Pe(T),k=useCallback(D=>{let F=g.current;if(F.isPressed&&F.target){F.didFirePressStart&&F.pointerType!=null&&v(Xi(F.target,D),F.pointerType,false),F.isPressed=false,F.isOverTarget=false,F.activePointerId=null,F.pointerType=null,x(),p||xl(F.target);for(let z of F.disposables)z();F.disposables=[];}},[p,x,v]),S=Pe(k);useEffect(()=>{l&&g.current.isPressed&&S({currentTarget:g.current.target,shiftKey:false,ctrlKey:false,metaKey:false,altKey:false});},[l]);let w=useCallback(D=>{c&&k(D);},[c,k]),E=useCallback(D=>{l||a?.(D);},[l,a]),R=useCallback((D,F)=>{if(!l&&a){let z=new MouseEvent("click",D);Ep(z,F),a(Cu(z));}},[l,a]),_=useMemo(()=>{let D=g.current,F={onKeyDown(N){if(Sh(N.nativeEvent,N.currentTarget)&&Y(N.currentTarget,$(N))){ID($(N),N.key)&&N.preventDefault();let V=true;!D.isPressed&&!N.repeat&&(D.target=N.currentTarget,D.isPressed=true,D.pointerType="keyboard",V=h(N,"keyboard"));let M=N.currentTarget,O=B=>{Sh(B,M)&&!B.repeat&&Y(M,$(B))&&D.target&&P(Xi(D.target,B),"keyboard");};b(G(N.currentTarget),"keyup",We(O,z),true),V&&N.stopPropagation(),N.metaKey&&ht()&&D.metaKeyEvents?.set(N.key,N.nativeEvent);}else N.key==="Meta"&&(D.metaKeyEvents=new Map);},onClick(N){if(!(N&&!Y(N.currentTarget,$(N)))&&N&&N.button===0&&!D.isTriggeringEvent&&!Xr.isOpening){let V=true;if(l&&N.preventDefault(),!D.ignoreEmulatedMouseEvents&&!D.isPressed&&(D.pointerType==="virtual"||Cn(N.nativeEvent))){let M=h(N,"virtual"),O=P(N,"virtual"),B=C(N,"virtual");E(N),V=M&&O&&B;}else if(D.isPressed&&D.pointerType!=="keyboard"){let M=D.pointerType||N.nativeEvent.pointerType||"virtual",O=P(Xi(N.currentTarget,N),M),B=C(Xi(N.currentTarget,N),M,true);V=O&&B,D.isOverTarget=false,E(N),S(N);}D.ignoreEmulatedMouseEvents=false,V&&N.stopPropagation();}}},z=N=>{if(D.isPressed&&D.target&&Sh(N,D.target)){ID($(N),N.key)&&N.preventDefault();let V=$(N),M=Y(D.target,V);C(Xi(D.target,N),"keyboard",M),M&&R(N,D.target),x(),N.key!=="Enter"&&Dh(D.target)&&Y(D.target,V)&&!N[kD]&&(N[kD]=true,Xr(D.target,N,false)),D.isPressed=false,D.metaKeyEvents?.delete(N.key);}else if(N.key==="Meta"&&D.metaKeyEvents?.size){let V=D.metaKeyEvents;D.metaKeyEvents=void 0;for(let M of V.values())D.target?.dispatchEvent(new KeyboardEvent("keyup",M));}};if(typeof PointerEvent<"u"){F.onPointerDown=M=>{if(M.button!==0||!Y(M.currentTarget,$(M)))return;if(dl(M.nativeEvent)){D.pointerType="virtual";return}D.pointerType=M.pointerType;let O=true;if(!D.isPressed){D.isPressed=true,D.isOverTarget=true,D.activePointerId=M.pointerId,D.target=M.currentTarget,p||Au(D.target),O=h(M,D.pointerType);let B=$(M);"releasePointerCapture"in B&&("hasPointerCapture"in B?B.hasPointerCapture(M.pointerId)&&B.releasePointerCapture(M.pointerId):B.releasePointerCapture(M.pointerId)),b(G(M.currentTarget),"pointerup",N,false),b(G(M.currentTarget),"pointercancel",V,false);}O&&M.stopPropagation();},F.onMouseDown=M=>{if(Y(M.currentTarget,$(M))&&M.button===0){if(u){let O=ih($(M));O&&D.disposables.push(O);}M.stopPropagation();}},F.onPointerUp=M=>{!Y(M.currentTarget,$(M))||D.pointerType==="virtual"||M.button===0&&!D.isPressed&&P(M,D.pointerType||M.pointerType);},F.onPointerEnter=M=>{M.pointerId===D.activePointerId&&D.target&&!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=true,h(Xi(D.target,M),D.pointerType));},F.onPointerLeave=M=>{M.pointerId===D.activePointerId&&D.target&&D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=false,C(Xi(D.target,M),D.pointerType,false),w(M));};let N=M=>{if(M.pointerId===D.activePointerId&&D.isPressed&&M.button===0&&D.target){if(Y(D.target,$(M))&&D.pointerType!=null){let O=false,B=setTimeout(()=>{D.isPressed&&D.target instanceof X(D.target).HTMLElement&&(O?S(M):(Ve(D.target),D.target.click()));},80);b(M.currentTarget,"click",()=>O=true,true),D.disposables.push(()=>clearTimeout(B));}else S(M);D.isOverTarget=false;}},V=M=>{S(M);};F.onDragStart=M=>{Y(M.currentTarget,$(M))&&S(M);};}else if(process.env.NODE_ENV==="test"){F.onMouseDown=M=>{if(M.button!==0||!Y(M.currentTarget,$(M)))return;if(D.ignoreEmulatedMouseEvents){M.stopPropagation();return}if(D.isPressed=true,D.isOverTarget=true,D.target=M.currentTarget,D.pointerType=Cn(M.nativeEvent)?"virtual":"mouse",flushSync(()=>h(M,D.pointerType))&&M.stopPropagation(),u){let B=ih($(M));B&&D.disposables.push(B);}b(G(M.currentTarget),"mouseup",N,false);},F.onMouseEnter=M=>{if(!Y(M.currentTarget,$(M)))return;let O=true;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=true,O=h(M,D.pointerType)),O&&M.stopPropagation();},F.onMouseLeave=M=>{if(!Y(M.currentTarget,$(M)))return;let O=true;D.isPressed&&!D.ignoreEmulatedMouseEvents&&D.pointerType!=null&&(D.isOverTarget=false,O=C(M,D.pointerType,false),w(M)),O&&M.stopPropagation();},F.onMouseUp=M=>{Y(M.currentTarget,$(M))&&!D.ignoreEmulatedMouseEvents&&M.button===0&&!D.isPressed&&P(M,D.pointerType||"mouse");};let N=M=>{if(M.button===0){if(D.ignoreEmulatedMouseEvents){D.ignoreEmulatedMouseEvents=false;return}D.target&&Y(D.target,$(M))&&D.pointerType!=null||S(M),D.isOverTarget=false;}};F.onTouchStart=M=>{if(!Y(M.currentTarget,$(M)))return;let O=EB(M.nativeEvent);if(!O)return;D.activePointerId=O.identifier,D.ignoreEmulatedMouseEvents=true,D.isOverTarget=true,D.isPressed=true,D.target=M.currentTarget,D.pointerType="touch",p||Au(D.target),h(ei(D.target,M),D.pointerType)&&M.stopPropagation(),b(X(M.currentTarget),"scroll",V,true);},F.onTouchMove=M=>{if(!Y(M.currentTarget,$(M)))return;if(!D.isPressed){M.stopPropagation();return}let O=wD(M.nativeEvent,D.activePointerId),B=true;O&&RD(O,M.currentTarget)?!D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=true,B=h(ei(D.target,M),D.pointerType)):D.isOverTarget&&D.pointerType!=null&&(D.isOverTarget=false,B=C(ei(D.target,M),D.pointerType,false),w(ei(D.target,M))),B&&M.stopPropagation();},F.onTouchEnd=M=>{if(!Y(M.currentTarget,$(M)))return;if(!D.isPressed){M.stopPropagation();return}let O=wD(M.nativeEvent,D.activePointerId),B=true;O&&RD(O,M.currentTarget)&&D.pointerType!=null?(P(ei(D.target,M),D.pointerType),B=C(ei(D.target,M),D.pointerType),R(M.nativeEvent,D.target)):D.isOverTarget&&D.pointerType!=null&&(B=C(ei(D.target,M),D.pointerType,false)),B&&M.stopPropagation(),D.isPressed=false,D.activePointerId=null,D.isOverTarget=false,D.ignoreEmulatedMouseEvents=true,D.target&&!p&&xl(D.target),x();},F.onTouchCancel=M=>{Y(M.currentTarget,$(M))&&(M.stopPropagation(),D.isPressed&&S(ei(D.target,M)));};let V=M=>{D.isPressed&&Y($(M),D.target)&&S({currentTarget:D.target,shiftKey:false,ctrlKey:false,metaKey:false,altKey:false});};F.onDragStart=M=>{Y(M.currentTarget,$(M))&&S(M);};}return F},[b,l,u,x,p,w,h,E,R]);return useEffect(()=>{if(!d||process.env.NODE_ENV==="test")return;let D=G(d.current);if(!D||!D.head||D.getElementById(ED))return;let F=D.createElement("style");F.id=ED;let z=Xp(D);z&&(F.nonce=z),F.textContent=`
|
|
11
|
-
@layer {
|
|
12
|
-
[${zD}] {
|
|
13
|
-
touch-action: pan-x pan-y pinch-zoom;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
`.trim(),D.head.prepend(F);},[d]),useEffect(()=>{let D=g.current;return ()=>{p||xl(D.target??void 0);for(let F of D.disposables)F();D.disposables=[];}},[p]),{isPressed:s||f,pressProps:A(m,_,{[zD]:true})}}function Dh(e){return e.tagName==="A"&&e.hasAttribute("href")}function Sh(e,t){let{key:r,code:o}=e,n=t,i=n.getAttribute("role");return (r==="Enter"||r===" "||r==="Spacebar"||o==="Space")&&!(n instanceof X(n).HTMLInputElement&&!_D(n,r)||n instanceof X(n).HTMLTextAreaElement||n.isContentEditable)&&!((i==="link"||!i&&Dh(n))&&r!=="Enter")}function EB(e){let{targetTouches:t}=e;return t.length>0?t[0]:null}function wD(e,t){let r=e.changedTouches;for(let o=0;o<r.length;o++){let n=r[o];if(n.identifier===t)return n}return null}function ei(e,t){let r=0,o=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,o=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:o}}function Xi(e,t){let r=t.clientX,o=t.clientY;return {currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:o,key:t.key}}function zB(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function wB(e,t){return !(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function RD(e,t){let r=t.getBoundingClientRect(),o=zB(e);return wB(r,o)}function RB(e){let t=X(e);return e instanceof t.HTMLInputElement?false:e instanceof t.HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Dh(e)}function ID(e,t){return e instanceof X(e).HTMLInputElement?!_D(e,t):RB(e)}var IB=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function _D(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":IB.has(e.type)}function kh(e,t){let{elementType:r="a",onPress:o,onPressStart:n,onPressEnd:i,onClick:a,isDisabled:l,...s}=e,u={};r!=="a"&&(u={role:"link",tabIndex:l?void 0:0});let{focusableProps:c}=rt(e,t),{pressProps:p,isPressed:d}=Ae({onPress:o,onPressStart:n,onPressEnd:i,onClick:a,isDisabled:l,ref:t}),m=re(s,{labelable:true}),f=A(c,p),y=Yr(),g=Jn(e);return {isPressed:d,linkProps:A(m,g,{...f,...u,"aria-disabled":l||void 0,"aria-current":e["aria-current"],onClick:b=>{p.onClick?.(b),Ip(b,y,e.href,e.routerOptions);}})}}var Ht=class{static type;type;key;value=null;level=0;hasChildNodes=false;rendered=null;textValue="";"aria-label"=void 0;index=0;parentKey=null;prevKey=null;nextKey=null;firstChildKey=null;lastChildKey=null;props={};render;colSpan=null;colIndex=null;constructor(t){this.type=this.constructor.type,this.key=t;}get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,r,o){let n=this.clone();return r.addDescendants(n,t),n}},Yi=class extends Ht{filter(t,r,o){let[n,i]=MD(t,r,this.firstChildKey,o),a=this.clone();return a.firstChildKey=n,a.lastChildKey=i,a}},Ou=class extends Ht{static type="header"},Dn=class extends Ht{static type="loader"},Zi=class extends Yi{static type="item";filter(t,r,o){if(o(this.textValue,this)){let n=this.clone();return r.addDescendants(n,t),n}return null}},ti=class extends Yi{static type="section";filter(t,r,o){let n=super.filter(t,r,o);if(n&&n.lastChildKey!==null){let i=t.getItem(n.lastChildKey);if(i&&i.type!=="header")return n}return null}},kn=class{keyMap=new Map;firstKey=null;lastKey=null;frozen=false;itemCount=0;get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0;}getChildren(t){let r=this.keyMap;return {*[Symbol.iterator](){let o=r.get(t),n=o?.firstChildKey!=null?r.get(o.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?r.get(n.nextKey):void 0;}}}getKeyBefore(t){let r=this.keyMap.get(t);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);return r?.key??null}return r.parentKey}getKeyAfter(t){let r=this.keyMap.get(t);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}getItem(t){return this.keyMap.get(t)??null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,r=new t;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r.itemCount=this.itemCount,r}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t);}addDescendants(t,r){this.addNode(t);let o=r.getChildren(t.key);for(let n of o)this.addDescendants(n,r);}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let r=this.keyMap.get(t);r!=null&&r.type==="item"&&this.itemCount--,this.keyMap.delete(t);}commit(t,r,o=false){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=r,this.frozen=!o;}filter(t){let r=new this.constructor,[o,n]=MD(this,r,this.firstKey,t);return r?.commit(o,n),r}};function MD(e,t,r,o){if(r==null)return [null,null];let n=null,i=null,a=e.getItem(r);for(;a!=null;){let l=a.filter(e,t,o);l!=null&&(l.nextKey=null,i&&(l.prevKey=i.key,i.nextKey=l.key),n==null&&(n=l),t.addNode(l),i=l),a=a.nextKey!=null?e.getItem(a.nextKey):null;}if(i&&i.type==="separator"){let l=i.prevKey;t.removeNode(i.key),l!=null?(i=t.getItem(l),i.nextKey=null):i=null;}return [n?.key??null,i?.key??null]}var Yp=class{_firstChild=null;_lastChild=null;_previousSibling=null;_nextSibling=null;_parentNode=null;_minInvalidChildIndex=null;ownerDocument;constructor(t){this.ownerDocument=t;}*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling;}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this);}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this);}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this);}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this);}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this);}get isConnected(){return this.parentNode?.isConnected||false}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this));}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null;}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate();}insertBefore(t,r){if(r==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=r,t.previousSibling=r.previousSibling,t.index=r.index-1,this.firstChild===r?this.firstChild=t:r.previousSibling&&(r.previousSibling.nextSibling=t),r.previousSibling=t,t.parentNode=r.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate();}removeChild(t){t.parentNode===this&&(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate());}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}},Nu=class e extends Yp{nodeType=8;node;isMutated=true;_index=0;isHidden=false;constructor(t,r){super(r),this.node=null;}get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this);}get level(){return this.parentNode instanceof e?this.parentNode.level+(this.parentNode.node?.type==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=true),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,r=this.getMutableNode();if(r!=null&&(r.index=this.index,r.level=this.level,r.parentKey=this.parentNode instanceof e?this.parentNode.node?.key??null:null,r.prevKey=this.previousVisibleSibling?.node?.key??null,r.nextKey=t?.node?.key??null,r.hasChildNodes=!!this.firstChild,r.firstChildKey=this.firstVisibleChild?.node?.key??null,r.lastChildKey=this.lastVisibleChild?.node?.key??null,(r.colSpan!=null||r.colIndex!=null)&&t)){let o=(r.colIndex??r.index)+(r.colSpan??1);if(t.node!=null&&o!==t.node.colIndex){let n=t.getMutableNode();n.colIndex=o;}}}setProps(t,r,o,n,i){let a,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(a=new o(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),c.ref=r,a.props=c,a.rendered=n,a.render=i,a.value=l,t["aria-label"]&&(a["aria-label"]=t["aria-label"]),a.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(a.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate();}get style(){let t=this;return {get display(){return t.isHidden?"none":""},set display(r){let o=r==="none";if(t.isHidden!==o){(t.parentNode?.firstVisibleChild===t||t.parentNode?.lastVisibleChild===t)&&t.ownerDocument.markDirty(t.parentNode);let n=t.previousVisibleSibling,i=t.nextVisibleSibling;n&&t.ownerDocument.markDirty(n),i&&t.ownerDocument.markDirty(i),t.isHidden=o,t.ownerDocument.markDirty(t);}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}},Zp=class extends Yp{nodeType=11;ownerDocument=this;dirtyNodes=new Set;isSSR=false;nodeId=0;nodesByProps=new WeakMap;collection;nextCollection=null;subscriptions=new Set;queuedRender=false;inSubscription=false;constructor(t){super(null),this.collection=t,this.nextCollection=t;}get isConnected(){return true}createElement(t){return new Nu(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t);}addNode(t){if(t.isHidden||t.node==null)return;let r=this.getMutableCollection();if(!r.getItem(t.node.key))for(let o of t)this.addNode(o);r.addNode(t.node);}removeNode(t){for(let r of t)this.removeNode(r);t.node&&this.getMutableCollection().removeNode(t.node.key);}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=false,this.updateCollection(),this.collection)}updateCollection(){for(let t of this.dirtyNodes)t instanceof Nu&&(!t.isConnected||t.isHidden)?this.removeNode(t):t.updateChildIndices();for(let t of this.dirtyNodes)t instanceof Nu?(t.isConnected&&!t.isHidden&&(t.updateNode(),this.addNode(t)),t.node&&this.dirtyNodes.delete(t),t.isMutated=false):this.dirtyNodes.delete(t);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null));}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=true,this.inSubscription=true,this.isSSR||(this.collection=this.collection.clone());for(let t of this.subscriptions)t();this.inSubscription=false;}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=false,this.firstChild=null,this.lastChild=null,this.nodeId=0);}};function En(e){let{children:t,items:r,idScope:o,addIdAndValue:n,dependencies:i=[]}=e,a=useMemo(()=>process.env.NODE_ENV!=="production"&&typeof t=="function"?t.toString():void 0,[t]),l=useMemo(()=>new WeakMap,[...i,a]);return useMemo(()=>{if(r&&typeof t=="function"){let s=[];for(let u of r){let c=MB(u)?u:null,p=c?l.get(c):null;if(!p){p=t(u);let d=p.props.id??u?.key??u?.id;o!=null&&p.props.id==null&&d!=null&&(d=o+":"+d);let m=d??s.length;p=cloneElement(p,n?{key:m,id:d,value:u}:{key:m}),c&&l.set(c,p);}s.push(p);}return s}else if(typeof t!="function")return t},[t,r,l,o,n])}function MB(e){switch(typeof e){case "object":return e!=null;case "function":case "symbol":return true;default:return false}}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:true,enumerable:true,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:true,enumerable:true,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:true,enumerable:true,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:true,enumerable:true,value:function(e,t){return this.content.insertBefore(e,t)}}));var Jp=createContext(false);function LD(e){if(useContext(Jp))return jsx(Fragment,{children:e.children});let r=jsx(Jp.Provider,{value:true,children:e.children});return jsx("template",{children:r})}function Rh(e){let t=(r,o)=>useContext(Jp)?null:e(r,o);return t.displayName=e.displayName||e.name,forwardRef(t)}function Ih(){return useContext(Jp)}var KD=createContext(false),Ku=createContext(null);function to(e){if(useContext(Ku))return e.content;let{collection:r,document:o}=jB(e.createCollection);return jsxs(Fragment,{children:[jsx(LD,{children:jsx(Ku.Provider,{value:o,children:e.content})}),jsx(BB,{render:e.children,collection:r})]})}function BB({collection:e,render:t}){return t(e)}function HB(e,t,r){let o=Zr(),n=useRef(o);n.current=o;let i=useCallback(()=>n.current?r():t(),[t,r]);return useSyncExternalStore(e,i)}var $B=typeof Un.useSyncExternalStore=="function"?Un.useSyncExternalStore:HB;function jB(e){let[t]=useState(()=>new Zp(e?.()||new kn)),r=useCallback(a=>t.subscribe(a),[t]),o=useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),n=useCallback(()=>(t.isSSR=true,t.getCollection()),[t]);return {collection:$B(r,o,n),document:t}}var _h=createContext(null);function GB(e){return class extends Ht{static type=e}}function VD(e,t,r,o,n,i){typeof e=="string"&&(e=GB(e));let a=useCallback(s=>{s?.setProps(t,r,e,o,i);},[t,r,o,i,e]),l=useContext(_h);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,r,e,o,i),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),n?jsx(_h.Provider,{value:s,children:n}):null}return jsx(e.type,{ref:a,children:n})}function sr(e,t){let r=({node:n})=>t(n.props,n.props.ref,n),o=forwardRef((n,i)=>{let a=useContext(gl);if(!useContext(KD)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(n,i)}return VD(e,n,i,"children"in n?n.children:null,null,s=>jsx(gl.Provider,{value:a,children:jsx(r,{node:s})}))});return o.displayName=t.name,o}function Kr(e,t,r=BD){let o=({node:i})=>t(i.props,i.props.ref,i),n=forwardRef((i,a)=>{let l=r(i);return VD(e,i,a,null,l,s=>jsx(o,{node:s}))??jsx(Fragment,{})});return n.displayName=t.name,n}function BD(e){return En({...e,addIdAndValue:true})}var OD=createContext(null);function wt(e){let t=useContext(OD),r=(t?.dependencies||[]).concat(e.dependencies),o=e.idScope??t?.idScope,n=BD({...e,idScope:o,dependencies:r});return useContext(Ku)&&(n=jsx(UB,{children:n})),t=useMemo(()=>({dependencies:r,idScope:o}),[o,...r]),jsx(OD.Provider,{value:t,children:n})}function UB({children:e}){let t=useContext(Ku),r=useMemo(()=>jsx(Ku.Provider,{value:null,children:jsx(KD.Provider,{value:true,children:e})}),[e]);return Zr()?jsx(_h.Provider,{value:t,children:r}):createPortal(r,t)}var em=createContext(null);var Qi={CollectionRoot({collection:e,renderDropIndicator:t}){return $D(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return $D(e,t,r)}};function $D(e,t,r){return En({items:t?e.getChildren(t.key):e,dependencies:[r],children(o){if(o.type==="content")return jsx(Fragment,{});let n=o.render(o);return !r||o.type!=="item"?n:jsxs(Fragment,{children:[r({type:"item",key:o.key,dropPosition:"before"}),n,Mh(e,o,r)]})}})}function Mh(e,t,r){let o=t.key,n=e.getKeyAfter(o),i=n!=null?e.getItem(n):null;for(;i!=null&&i.type!=="item";)n=e.getKeyAfter(i.key),i=n!=null?e.getItem(n):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let l=[];if(a==null){let s=t;for(;s?.type==="item"&&(!i||s.parentKey!==i.parentKey&&i.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});isValidElement(u)&&l.push(cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null;}}return l}var ze=createContext(Qi);function UD(e){return useMemo(()=>e!=null?new Set([e]):null,[e])}function lt(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:n}=e,i=useRef({isFocusWithin:false}),{addGlobalListener:a,removeAllGlobalListeners:l}=zt(),s=useCallback(p=>{Y(p.currentTarget,$(p))&&i.current.isFocusWithin&&!Y(p.currentTarget,p.relatedTarget)&&(i.current.isFocusWithin=false,l(),r&&r(p),n&&n(false));},[r,n,i,l]),u=zp(s),c=useCallback(p=>{if(!Y(p.currentTarget,$(p)))return;let d=$(p),m=G(d),f=ue(m);if(!i.current.isFocusWithin&&f===d){o&&o(p),n&&n(true),i.current.isFocusWithin=true,u(p);let y=p.currentTarget;a(m,"focus",g=>{let b=$(g);if(i.current.isFocusWithin&&!Y(y,b)){let x=new m.defaultView.FocusEvent("blur",{relatedTarget:b});Ep(x,y);let h=Cu(x);s(h);}},{capture:true});}},[o,n,u,a,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}function oe(e={}){let{autoFocus:t=false,isTextInput:r,within:o}=e,n=useRef({isFocused:false,isFocusVisible:t||At()}),[i,a]=useState(false),[l,s]=useState(()=>n.current.isFocused&&n.current.isFocusVisible),u=useCallback(()=>s(n.current.isFocused&&n.current.isFocusVisible),[]),c=useCallback(m=>{n.current.isFocused=m,n.current.isFocusVisible=At(),a(m),u();},[u]);Eu(m=>{n.current.isFocusVisible=m,u();},[r,i],{enabled:i,isTextInput:r});let{focusProps:p}=Zt({isDisabled:o,onFocusChange:c}),{focusWithinProps:d}=lt({isDisabled:!o,onFocusWithinChange:c});return {isFocused:i,isFocusVisible:l,focusProps:o?d:p}}var rm=false,tm=0;function Lh(){rm=true,setTimeout(()=>{rm=false;},500);}function ZD(e){e.pointerType==="touch"&&Lh();}function nH(e=document){if(!(typeof e>"u"))return tm===0&&(typeof PointerEvent<"u"?e.addEventListener("pointerup",ZD):process.env.NODE_ENV==="test"&&e.addEventListener("touchend",Lh)),tm++,()=>{tm--,!(tm>0)&&(typeof PointerEvent<"u"?e.removeEventListener("pointerup",ZD):process.env.NODE_ENV==="test"&&e.removeEventListener("touchend",Lh));}}function ie(e,t){let{onHoverStart:r,onHoverChange:o,onHoverEnd:n,isDisabled:i}=e,[a,l]=useState(false),s=useRef({isHovered:false,ignoreEmulatedMouseEvents:false,pointerType:"",target:null}).current;useEffect(()=>nH(G(t?.current)),[]);let{addGlobalListener:u,removeAllGlobalListeners:c}=zt(),{hoverProps:p,triggerHoverEnd:d}=useMemo(()=>{let m=(g,b)=>{if(s.pointerType=b,i||b==="touch"||s.isHovered||!Y(g.currentTarget,$(g)))return;s.isHovered=true;let x=g.currentTarget;s.target=x,u(G($(g)),"pointerover",h=>{s.isHovered&&s.target&&!Y(s.target,$(h))&&f(h,h.pointerType);},{capture:true}),r&&r({type:"hoverstart",target:x,pointerType:b}),o&&o(true),l(true);},f=(g,b)=>{let x=s.target;s.pointerType="",s.target=null,!(b==="touch"||!s.isHovered||!x)&&(s.isHovered=false,c(),n&&n({type:"hoverend",target:x,pointerType:b}),o&&o(false),l(false));},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=g=>{rm&&g.pointerType==="mouse"||m(g,g.pointerType);},y.onPointerLeave=g=>{!i&&Y(g.currentTarget,$(g))&&f(g,g.pointerType);}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=true;},y.onMouseEnter=g=>{!s.ignoreEmulatedMouseEvents&&!rm&&m(g,"mouse"),s.ignoreEmulatedMouseEvents=false;},y.onMouseLeave=g=>{!i&&Y(g.currentTarget,$(g))&&f(g,"mouse");}),{hoverProps:y,triggerHoverEnd:f}},[r,o,n,i,s,u,c]);return useEffect(()=>{i&&d({currentTarget:s.target},s.pointerType);},[i]),{hoverProps:p,isHovered:a}}var xo=null;function ot(e,t="assertive",r=7e3){xo?xo.announce(e,t,r):(xo=new Ah,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?xo.announce(e,t,r):setTimeout(()=>{xo?.isAttached()&&xo?.announce(e,t,r);},100));}function om(e){xo&&xo.clear(e);}function JD(){xo&&(xo.destroy(),xo=null);}var Ah=class{node=null;assertiveLog=null;politeLog=null;constructor(){typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node));}isAttached(){return this.node?.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null);}announce(t,r="assertive",o=7e3){if(!this.node)return;let n=document.createElement("div");typeof t=="object"?(n.setAttribute("role","img"),n.setAttribute("aria-labelledby",t["aria-labelledby"])):n.textContent=t,r==="assertive"?this.assertiveLog?.appendChild(n):this.politeLog?.appendChild(n),t!==""&&setTimeout(()=>{n.remove();},o);}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""));}};function dt(e,t){let{elementType:r="button",isDisabled:o,onPress:n,onPressStart:i,onPressEnd:a,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:p,href:d,target:m,rel:f,type:y="button"}=e,g;r==="button"?g={type:y,disabled:o,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:g={role:"button",href:r==="a"&&!o?d:void 0,target:r==="a"?m:void 0,type:r==="input"?y:void 0,disabled:r==="input"?o:void 0,"aria-disabled":!o||r==="input"?void 0:o,rel:r==="a"?f:void 0};let{pressProps:b,isPressed:x}=Ae({onPressStart:i,onPressEnd:a,onPressChange:s,onPress:n,onPressUp:l,onClick:p,isDisabled:o,preventFocusOnPress:u,ref:t}),{focusableProps:h}=rt(e,t);c&&(h.tabIndex=o?-1:h.tabIndex);let v=A(h,b,re(e,{labelable:true}));return {isPressed:x,buttonProps:A(g,v,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function Xe(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function nm(e,t){let r=e,o=0,n=t.toString(),i=n.toLowerCase().indexOf("e-");if(i>0)o=Math.abs(Math.floor(Math.log10(Math.abs(t))))+i;else {let a=n.indexOf(".");a>=0&&(o=n.length-a);}if(o>0){let a=Math.pow(10,o);r=Math.round(r*a)/a;}return r}function ft(e,t,r,o){t=Number(t),r=Number(r);let n=(e-(isNaN(t)?0:t))%o,i=nm(Math.abs(n)*2>=o?e+Math.sign(n)*(o-Math.abs(n)):e-n,o);return isNaN(t)?!isNaN(r)&&i>r&&(i=Math.floor(nm(r/o,o))*o):i<t?i=t:!isNaN(r)&&i>r&&(i=t+Math.floor(nm((r-t)/o,o))*o),i=nm(i,o),i}function xt(e,t,r=10){let o=Math.pow(r,t);return Math.round(e*o)/o}function Jt(e){let{id:t,label:r,"aria-labelledby":o,"aria-label":n,labelElementType:i="label"}=e;t=ee(t);let a=ee(),l={};r?(o=o?`${a} ${o}`:a,l={id:a,htmlFor:i==="label"?t:void 0}):!o&&!n&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=Qe({id:t,"aria-label":n,"aria-labelledby":o});return {labelProps:l,fieldProps:s}}var Oh=new Map,Nh=false;try{Nh=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero";}catch{}var im=false;try{im=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit";}catch{}var QD={degree:{narrow:{default:"\xB0","ja-JP":" \u5EA6","zh-TW":"\u5EA6","sl-SI":" \xB0"}}},$t=class{numberFormatter;options;constructor(t,r={}){this.numberFormatter=iH(t,r),this.options=r;}format(t){let r="";if(!Nh&&this.options.signDisplay!=null?r=aH(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!im){let{unit:o,unitDisplay:n="short",locale:i}=this.resolvedOptions();if(!o)return r;let a=QD[o]?.[n];r+=a[i]||a.default;}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return `${this.format(t)} \u2013 ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let o=this.numberFormatter.formatToParts(t),n=this.numberFormatter.formatToParts(r);return [...o.map(i=>({...i,source:"startRange"})),{type:"literal",value:" \u2013 ",source:"shared"},...n.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return !Nh&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!im&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}};function iH(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!im){let{unit:i,unitDisplay:a="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!QD[i]?.[a])throw new Error(`Unsupported unit ${i} with unitDisplay = ${a}`);t={...t,style:"decimal"};}let o=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Oh.has(o))return Oh.get(o);let n=new Intl.NumberFormat(e,t);return Oh.set(o,n),n}function aH(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let o=false;if(t==="always"?o=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):o=r>0),o){let n=e.format(-r),i=e.format(r),a=n.replace(i,"").replace(/\u200e|\u061C/,"");return [...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),n.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(r)}}var lH=new RegExp("^.*\\(.*\\).*$"),sH=["latn","arab","hanidec","deva","beng","fullwide"],oi=class{locale;options;constructor(t,r={}){this.locale=t,this.options=r;}parse(t){return Fh(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,o){return Fh(this.locale,this.options,t).isValidPartialNumber(t,r,o)}getNumberingSystem(t){return Fh(this.locale,this.options,t).options.numberingSystem}},ek=new Map;function Fh(e,t,r){let o=tk(e,t);if(!e.includes("-nu-")&&!o.isValidPartialNumber(r)){for(let n of sH)if(n!==o.options.numberingSystem){let i=tk(e+(e.includes("-u-")?"-nu-":"-u-nu-")+n,t);if(i.isValidPartialNumber(r))return i}}return o}function tk(e,t){let r=e+(t?Object.entries(t).sort((n,i)=>n[0]<i[0]?-1:1).join():""),o=ek.get(r);return o||(o=new Kh(e,t),ek.set(r,o)),o}var Kh=class{formatter;options;symbols;locale;constructor(t,r={}){this.locale=t,r.roundingIncrement!==1&&r.roundingIncrement!=null&&(r.maximumFractionDigits==null&&r.minimumFractionDigits==null?(r.maximumFractionDigits=0,r.minimumFractionDigits=0):r.maximumFractionDigits==null?r.maximumFractionDigits=r.minimumFractionDigits:r.minimumFractionDigits==null&&(r.minimumFractionDigits=r.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=uH(t,this.formatter,this.options,r),this.options.style==="percent"&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.");}parse(t){let r=this.formatter.resolvedOptions().useGrouping,o=this.sanitize(t);if(!r&&this.symbols.group&&o.includes(this.symbols.group))return NaN;if(this.symbols.group&&(o=o.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(o=o.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(o=o.replace(this.symbols.minusSign,"-")),o=o.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let i=o.indexOf("-");o=o.replace("-",""),o=o.replace("+","");let a=o.indexOf(".");a===-1&&(a=o.length),o=o.replace(".",""),a-2===0?o=`0.${o}`:a-2===-1?o=`0.0${o}`:a-2===-2?o="0.00":o=`${o.slice(0,a-2)}.${o.slice(a-2)}`,i>-1&&(o=`-${o}`);}let n=o?+o:NaN;if(isNaN(n))return NaN;if(this.options.style==="percent"){let i={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new oi(this.locale,i).parse(new $t(this.locale,i).format(n))}return this.options.currencySign==="accounting"&&lH.test(t)&&(n=-1*n),n}sanitize(t){let r=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(o=>o.unit===t)?this.symbols.noNumeralUnits.find(o=>o.unit===t).value.toString():(t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=ri(t,",",this.symbols.decimal),t=ri(t,"\u060C",this.symbols.decimal)),this.symbols.group&&r&&(t=ri(t,".",this.symbols.group))),this.symbols.group==="\u2019"&&t.includes("'")&&r&&(t=ri(t,"'",this.symbols.group)),this.symbols.group==="'"&&t.includes("\u2019")&&r&&(t=ri(t,"\u2019",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&r&&(t=ri(t," ",this.symbols.group),t=ri(t,/\u00A0/g,this.symbols.group)),t)}isValidPartialNumber(t,r=-1/0,o=1/0){let n=this.formatter.resolvedOptions().useGrouping;return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&o>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?false:(this.symbols.group&&n&&(t=ri(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}},rk=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),ok=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function uH(e,t,r,o){let n=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:true}),i=n.formatToParts(-10000.111),a=n.formatToParts(10000.111),l=ok.map(T=>n.formatToParts(T)),s=l.map((T,P)=>{let k=T.find(S=>S.type==="unit");return k&&!T.some(S=>S.type==="integer"||S.type==="fraction")?{unit:k.value,value:ok[P]}:null}).filter(T=>!!T),u=i.find(T=>T.type==="minusSign")?.value??"-",c=a.find(T=>T.type==="plusSign")?.value;!c&&(o?.signDisplay==="exceptZero"||o?.signDisplay==="always")&&(c="+");let d=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(T=>T.type==="decimal")?.value,m=i.find(T=>T.type==="group")?.value,f=i.filter(T=>!rk.has(T.type)).map(T=>nk(T.value)),y=l.flatMap(T=>T.filter(P=>!rk.has(P.type)).map(P=>nk(P.value))),g=[...new Set([...f,...y])].sort((T,P)=>P.length-T.length),b=g.length===0?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${g.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),x=[...new Intl.NumberFormat(r.locale,{useGrouping:false}).format(9876543210)].reverse(),h=new Map(x.map((T,P)=>[T,P])),v=new RegExp(`[${x.join("")}]`,"g");return {minusSign:u,plusSign:c,decimal:d,group:m,literals:b,numeral:v,numerals:x,index:T=>String(h.get(T)),noNumeralUnits:s}}function ri(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function nk(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function To(e={}){let{locale:t}=Q();return useMemo(()=>new $t(t,e),[t,e])}function Vu(e){let{value:t=0,minValue:r=0,maxValue:o=100,valueLabel:n,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,l=re(e,{labelable:true}),{labelProps:s,fieldProps:u}=Jt({...e,labelElementType:"span"});t=Xe(t,r,o);let c=(t-r)/(o-r),p=To(a);if(!i&&!n){let d=a.style==="percent"?c:t;n=p.format(d);}return {progressBarProps:A(l,{...u,"aria-valuenow":i?void 0:t,"aria-valuemin":r,"aria-valuemax":o,"aria-valuetext":i?void 0:n,role:"progressbar"}),labelProps:s}}var ro=createContext({});var ea={"ar-AE":{dateRange:e=>`${e.startDate} \u0625\u0644\u0649 ${e.endDate}`,dateSelected:e=>`${e.date} \u0627\u0644\u0645\u062D\u062F\u062F`,finishRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0625\u0646\u0647\u0627\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",maximumDate:"\u0622\u062E\u0631 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",minimumDate:"\u0623\u0648\u0644 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",next:"\u0627\u0644\u062A\u0627\u0644\u064A",previous:"\u0627\u0644\u0633\u0627\u0628\u0642",selectedDateDescription:e=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${e.date}`,selectedRangeDescription:e=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${e.dateRange}`,startRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0628\u062F\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",todayDate:e=>`\u0627\u0644\u064A\u0648\u0645\u060C ${e.date}`,todayDateSelected:e=>`\u0627\u0644\u064A\u0648\u0645\u060C ${e.date} \u0645\u062D\u062F\u062F`},"bg-BG":{dateRange:e=>`${e.startDate} \u0434\u043E ${e.endDate}`,dateSelected:e=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0435 ${e.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u0434\u043E\u0432\u044A\u0440\u0448\u0438\u0442\u0435 \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u044A\u0440\u0432\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u043F\u0440\u0435\u0434",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${e.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0438\u0441\u0442\u044A\u043F\u0438\u0442\u0435 \u043A\u044A\u043C \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",todayDate:e=>`\u0414\u043D\u0435\u0441, ${e.date}`,todayDateSelected:e=>`\u0414\u043D\u0435\u0441, ${e.date} \u0441\u0430 \u0438\u0437\u0431\u0440\u0430\u043D\u0438`},"cs-CZ":{dateRange:e=>`${e.startDate} a\u017E ${e.endDate}`,dateSelected:e=>`Vybr\xE1no ${e.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDb\u011Br rozsahu dat",maximumDate:"Posledn\xED dostupn\xE9 datum",minimumDate:"Prvn\xED dostupn\xE9 datum",next:"Dal\u0161\xED",previous:"P\u0159edchoz\xED",selectedDateDescription:e=>`Vybran\xE9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xE9 obdob\xED: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm zah\xE1j\xEDte v\xFDb\u011Br rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybr\xE1no ${e.date}`},"da-DK":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldf\xF8re valg af datoomr\xE5de",maximumDate:"Sidste ledige dato",minimumDate:"F\xF8rste ledige dato",next:"N\xE6ste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoomr\xE5de",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"de-DE":{dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgew\xE4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verf\xFCgbares Datum",minimumDate:"Erstes verf\xFCgbares Datum",next:"Weiter",previous:"Zur\xFCck",selectedDateDescription:e=>`Ausgew\xE4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xE4hlter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgew\xE4hlt`},"el-GR":{dateRange:e=>`${e.startDate} \u03AD\u03C9\u03C2 ${e.endDate}`,dateSelected:e=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 ${e.date}`,finishRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BF\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",maximumDate:"\u03A4\u03B5\u03BB\u03B5\u03C5\u03C4\u03B1\u03AF\u03B1 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",minimumDate:"\u03A0\u03C1\u03CE\u03C4\u03B7 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",next:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF",previous:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF",selectedDateDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${e.date}`,selectedRangeDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${e.dateRange}`,startRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",todayDate:e=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, ${e.date}`,todayDateSelected:e=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03C4\u03B7\u03BA\u03B5 ${e.date}`},"en-US":{previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`},"es-ES":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"\xDAltima fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`},"et-EE":{dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimise l\xF5petamiseks",maximumDate:"Viimane saadaolev kuup\xE4ev",minimumDate:"Esimene saadaolev kuup\xE4ev",next:"J\xE4rgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuup\xE4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimiseks",todayDate:e=>`T\xE4na, ${e.date}`,todayDateSelected:e=>`T\xE4na, ${e.date} valitud`},"fi-FI":{dateRange:e=>`${e.startDate} \u2013 ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",maximumDate:"Viimeinen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",minimumDate:"Ensimm\xE4inen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xE4li: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",todayDate:e=>`T\xE4n\xE4\xE4n, ${e.date}`,todayDateSelected:e=>`T\xE4n\xE4\xE4n, ${e.date} valittu`},"fr-FR":{dateRange:e=>`${e.startDate} \xE0 ${e.endDate}`,dateSelected:e=>`${e.date} s\xE9lectionn\xE9`,finishRangeSelectionPrompt:"Cliquer pour finir de s\xE9lectionner la plage de dates",maximumDate:"Derni\xE8re date disponible",minimumDate:"Premi\xE8re date disponible",next:"Suivant",previous:"Pr\xE9c\xE9dent",selectedDateDescription:e=>`Date s\xE9lectionn\xE9e\xA0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xE9lectionn\xE9e\xA0: ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer \xE0 s\xE9lectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd\u2019hui, ${e.date} s\xE9lectionn\xE9`},"he-IL":{dateRange:e=>`${e.startDate} \u05E2\u05D3 ${e.endDate}`,dateSelected:e=>`${e.date} \u05E0\u05D1\u05D7\u05E8`,finishRangeSelectionPrompt:"\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05E1\u05D9\u05D9\u05DD \u05D0\u05EA \u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",maximumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05D0\u05D7\u05E8\u05D5\u05DF",minimumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05E8\u05D0\u05E9\u05D5\u05DF",next:"\u05D4\u05D1\u05D0",previous:"\u05D4\u05E7\u05D5\u05D3\u05DD",selectedDateDescription:e=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${e.date}`,selectedRangeDescription:e=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${e.dateRange}`,startRangeSelectionPrompt:"\u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1\u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",todayDate:e=>`\u05D4\u05D9\u05D5\u05DD, ${e.date}`,todayDateSelected:e=>`\u05D4\u05D9\u05D5\u05DD, ${e.date} \u05E0\u05D1\u05D7\u05E8`},"hr-HR":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite raspon odabranih datuma",maximumDate:"Posljednji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Sljede\u0107i",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`},"hu-HU":{dateRange:e=>`${e.startDate}\u2013${e.endDate}`,dateSelected:e=>`${e.date} kiv\xE1lasztva`,finishRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek befejez\xE9s\xE9hez",maximumDate:"Utols\xF3 el\xE9rhet\u0151 d\xE1tum",minimumDate:"Az els\u0151 el\xE9rhet\u0151 d\xE1tum",next:"K\xF6vetkez\u0151",previous:"El\u0151z\u0151",selectedDateDescription:e=>`Kijel\xF6lt d\xE1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xF6lt tartom\xE1ny: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek ind\xEDt\xE1s\xE1hoz",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijel\xF6lve`},"it-IT":{dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell\u2019intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l\u2019intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`},"ja-JP":{dateRange:e=>`${e.startDate} \u304B\u3089 ${e.endDate}`,dateSelected:e=>`${e.date} \u3092\u9078\u629E`,finishRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u7D42\u4E86",maximumDate:"\u6700\u7D42\u5229\u7528\u53EF\u80FD\u65E5",minimumDate:"\u6700\u521D\u306E\u5229\u7528\u53EF\u80FD\u65E5",next:"\u6B21\u3078",previous:"\u524D\u3078",selectedDateDescription:e=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${e.date}`,selectedRangeDescription:e=>`\u9078\u629E\u7BC4\u56F2 : ${e.dateRange}`,startRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u958B\u59CB",todayDate:e=>`\u672C\u65E5\u3001${e.date}`,todayDateSelected:e=>`\u672C\u65E5\u3001${e.date} \u3092\u9078\u629E`},"ko-KR":{dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} \uC120\uD0DD\uB428`,finishRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC644\uB8CC\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",maximumDate:"\uB9C8\uC9C0\uB9C9\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",minimumDate:"\uCC98\uC74C\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",next:"\uB2E4\uC74C",previous:"\uC774\uC804",selectedDateDescription:e=>`\uC120\uD0DD \uC77C\uC790: ${e.date}`,selectedRangeDescription:e=>`\uC120\uD0DD \uBC94\uC704: ${e.dateRange}`,startRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC2DC\uC791\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",todayDate:e=>`\uC624\uB298, ${e.date}`,todayDateSelected:e=>`\uC624\uB298, ${e.date} \uC120\uD0DD\uB428`},"lt-LT":{dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustel\u0117kite, kad baigtum\u0117te pasirinkti dat\u0173 interval\u0105",maximumDate:"Paskutin\u0117 galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustel\u0117kite, kad prad\u0117tum\u0117te pasirinkti dat\u0173 interval\u0105",todayDate:e=>`\u0160iandien, ${e.date}`,todayDateSelected:e=>`\u0160iandien, pasirinkta ${e.date}`},"lv-LV":{dateRange:e=>`No ${e.startDate} l\u012Bdz ${e.endDate}`,dateSelected:e=>`Atlas\u012Bts: ${e.date}`,finishRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"P\u0113d\u0113jais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"T\u0101l\u0101k",previous:"Atpaka\u013C",selectedDateDescription:e=>`Atlas\u012Btais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u012Btais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai s\u0101ktu datumu diapazona atlasi",todayDate:e=>`\u0160odien, ${e.date}`,todayDateSelected:e=>`Atlas\u012Bta \u0161odiena, ${e.date}`},"nb-NO":{dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for \xE5 fullf\xF8re valg av datoomr\xE5de",maximumDate:"Siste tilgjengelige dato",minimumDate:"F\xF8rste tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xE5de: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for \xE5 starte valg av datoomr\xE5de",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`},"nl-NL":{dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`},"pl-PL":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zako\u0144czy\u0107 wyb\xF3r zakresu dat",maximumDate:"Ostatnia dost\u0119pna data",minimumDate:"Pierwsza dost\u0119pna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocz\u0105\u0107 wyb\xF3r zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`},"pt-BR":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a sele\xE7\xE3o do intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a sele\xE7\xE3o do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"pt-PT":{dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para come\xE7ar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`},"ro-RO":{dateRange:e=>`De la ${e.startDate} p\xE2n\u0103 la ${e.endDate}`,dateSelected:e=>`${e.date} selectat\u0103`,finishRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a finaliza selec\u0163ia razei pentru dat\u0103",maximumDate:"Ultima dat\u0103 disponibil\u0103",minimumDate:"Prima dat\u0103 disponibil\u0103",next:"Urm\u0103torul",previous:"\xCEnainte",selectedDateDescription:e=>`Dat\u0103 selectat\u0103: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a \xEEncepe selec\u0163ia razei pentru dat\u0103",todayDate:e=>`Ast\u0103zi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectat\u0103`},"ru-RU":{dateRange:e=>`\u0421 ${e.startDate} \u043F\u043E ${e.endDate}`,dateSelected:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043E ${e.date}`,finishRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0432\u0430\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",next:"\u0414\u0430\u043B\u0435\u0435",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${e.dateRange}`,startRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",todayDate:e=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, ${e.date}`,todayDateSelected:e=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, \u0432\u044B\u0431\u0440\u0430\u043D\u043E ${e.date}`},"sk-SK":{dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybrat\xFD d\xE1tum ${e.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDber rozsahu d\xE1tumov",maximumDate:"Posledn\xFD dostupn\xFD d\xE1tum",minimumDate:"Prv\xFD dostupn\xFD d\xE1tum",next:"Nasleduj\xFAce",previous:"Predch\xE1dzaj\xFAce",selectedDateDescription:e=>`Vybrat\xFD d\xE1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xFD rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm spust\xEDte v\xFDber rozsahu d\xE1tumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybrat\xFD dne\u0161n\xFD d\xE1tum ${e.date}`},"sl-SI":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokon\u010Danje izbire datumskega obsega",maximumDate:"Zadnji razpolo\u017Eljivi datum",minimumDate:"Prvi razpolo\u017Eljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u010Dje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za za\u010Detek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`},"sr-SP":{dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite opseg izabranih datuma",maximumDate:"Zadnji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Slede\u0107i",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`},"sv-SE":{dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka f\xF6r att avsluta val av datumintervall",maximumDate:"Sista tillg\xE4ngliga datum",minimumDate:"F\xF6rsta tillg\xE4ngliga datum",next:"N\xE4sta",previous:"F\xF6reg\xE5ende",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka f\xF6r att v\xE4lja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`},"tr-TR":{dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} se\xE7ildi`,finishRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini tamamlamak i\xE7in t\u0131klay\u0131n",maximumDate:"Son m\xFCsait tarih",minimumDate:"\u0130lk m\xFCsait tarih",next:"Sonraki",previous:"\xD6nceki",selectedDateDescription:e=>`Se\xE7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xE7ilen Aral\u0131k: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini ba\u015Flatmak i\xE7in t\u0131klay\u0131n",todayDate:e=>`Bug\xFCn, ${e.date}`,todayDateSelected:e=>`Bug\xFCn, ${e.date} se\xE7ildi`},"uk-UA":{dateRange:e=>`${e.startDate} \u2014 ${e.endDate}`,dateSelected:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u043E ${e.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",maximumDate:"\u041E\u0441\u0442\u0430\u043D\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0448\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439",previous:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456\u0439",selectedDateDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${e.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",todayDate:e=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, ${e.date}`,todayDateSelected:e=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, \u0432\u0438\u0431\u0440\u0430\u043D\u043E ${e.date}`},"zh-CN":{dateRange:e=>`${e.startDate} \u81F3 ${e.endDate}`,dateSelected:e=>`\u5DF2\u9009\u62E9 ${e.date}`,finishRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5B8C\u6210\u9009\u62E9\u65E5\u671F\u8303\u56F4",maximumDate:"\u6700\u540E\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9875",previous:"\u4E0A\u4E00\u9875",selectedDateDescription:e=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${e.date}`,selectedRangeDescription:e=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${e.dateRange}`,startRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5F00\u59CB\u9009\u62E9\u65E5\u671F\u8303\u56F4",todayDate:e=>`\u4ECA\u5929\uFF0C\u5373 ${e.date}`,todayDateSelected:e=>`\u5DF2\u9009\u62E9\u4ECA\u5929\uFF0C\u5373 ${e.date}`},"zh-TW":{dateRange:e=>`${e.startDate} \u81F3 ${e.endDate}`,dateSelected:e=>`\u5DF2\u9078\u53D6 ${e.date}`,finishRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u5B8C\u6210\u9078\u53D6\u65E5\u671F\u7BC4\u570D",maximumDate:"\u6700\u5F8C\u4E00\u500B\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u500B\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9801",previous:"\u4E0A\u4E00\u9801",selectedDateDescription:e=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${e.date}`,selectedRangeDescription:e=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${e.dateRange}`,startRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u958B\u59CB\u9078\u53D6\u65E5\u671F\u7BC4\u570D",todayDate:e=>`\u4ECA\u5929\uFF0C${e.date}`,todayDateSelected:e=>`\u5DF2\u9078\u53D6\u4ECA\u5929\uFF0C${e.date}`}};function am(e,t){let r=useRef(null);return e&&r.current&&t(e,r.current)&&(e=r.current),r.current=e,e}function Rt(e){e=am(e??{},yH);let{locale:t}=Q();return useMemo(()=>new DateFormatter(t,e),[t,e])}function yH(e,t){if(e===t)return true;let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return false;for(let n of r)if(t[n]!==e[n])return false;return true}var Pl=new WeakMap;function Cl(e){return e?.calendar.identifier==="gregory"&&e.era==="BC"?"short":void 0}function ak(e){let t=ve(ea,"@react-aria/calendar"),r,o;"highlightedRange"in e?{start:r,end:o}=e.highlightedRange||{}:(r=Array.isArray(e.value)?e.value[0]:e.value??void 0,o=Array.isArray(e.value)?e.value.at(-1):e.value??void 0);let n=Rt({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Cl(r)||Cl(o),timeZone:e.timeZone}),{locale:i}=Q(),a=useMemo(()=>new Intl.ListFormat(i),[i]),l="anchorDate"in e?e.anchorDate:null;return useMemo(()=>{if(!l&&r&&o){if(isSameDay(r,o)){let s=n.format(r.toDate(e.timeZone));return t.format("selectedDateDescription",{date:s})}else if("highlightedRange"in e){let s=Bh(n,t,r,o,e.timeZone);return t.format("selectedRangeDescription",{dateRange:s})}else if(Array.isArray(e.value)){let s=e.value.map(c=>n.format(c.toDate(e.timeZone))),u=a.format(s);return t.format("selectedDateDescription",{date:u})}}return ""},[r,o,l,e,t,n,a])}function Bu(e,t,r,o){let n=ve(ea,"@react-aria/calendar"),i=Cl(e)||Cl(t),a=Rt({month:"long",year:"numeric",era:i,calendar:e.calendar.identifier,timeZone:r}),l=Rt({month:"long",year:"numeric",day:"numeric",era:i,calendar:e.calendar.identifier,timeZone:r});return useMemo(()=>{if(isSameDay(e,startOfMonth(e))){let s=e,u=t;if(e.calendar.getFormattableMonth&&(s=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(u=t.calendar.getFormattableMonth(t)),isSameDay(t,endOfMonth(e)))return a.format(s.toDate(r));if(isSameDay(t,endOfMonth(t)))return o?Bh(a,n,s,u,r):a.formatRange(s.toDate(r),u.toDate(r))}return o?Bh(l,n,e,t,r):l.formatRange(e.toDate(r),t.toDate(r))},[e,t,a,l,n,r,o])}function Bh(e,t,r,o,n){let i=e.formatRangeToParts(r.toDate(n),o.toDate(n)),a=-1;for(let u=0;u<i.length;u++){let c=i[u];if(c.source==="shared"&&c.type==="literal")a=u;else if(c.source==="endRange")break}let l="",s="";for(let u=0;u<i.length;u++)u<a?l+=i[u].value:u>a&&(s+=i[u].value);return t.format("dateRange",{startDate:l,endDate:s})}function zn(e,t){let r=useRef(true),o=useRef(null),n=Pe(e);useEffect(()=>(r.current=true,()=>{r.current=false;}),[]),useEffect(()=>{let i=o.current;r.current?r.current=false:(!i||t.some((a,l)=>!Object.is(a,i[l])))&&n(),o.current=t;},t);}function sm(e,t){let r=ve(ea,"@react-aria/calendar"),o=re(e),n=Bu(t.visibleRange.start,t.visibleRange.end,t.timeZone,false),i=Bu(t.visibleRange.start,t.visibleRange.end,t.timeZone,true);zn(()=>{t.isFocused||ot(i);},[i]);let a=ak(t);zn(()=>{a&&ot(a,"polite",4e3);},[a]);let l=vt([!!e.errorMessage,e.isInvalid,e.validationState]);Pl.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:l,selectedDateDescription:a});let[s,u]=useState(false),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&s&&(u(false),t.setFocused(true));let[p,d]=useState(false),m=e.isDisabled||t.isPreviousVisibleRangeInvalid();m&&p&&(d(false),t.setFocused(true));let f=Qe({id:e.id,"aria-label":[e["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return {calendarProps:A(o,f,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":r.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":r.format("previous"),isDisabled:m,onFocusChange:d},errorMessageProps:{id:l},title:n}}function Hh(e,t){return sm(e,t)}function $h(e,t){let{startDate:r=t.visibleRange.start,endDate:o=t.visibleRange.end,firstDayOfWeek:n}=e,{direction:i}=Q(),a=y=>{switch(y.key){case "Enter":case " ":y.preventDefault(),t.selectFocusedDate();break;case "PageUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousSection(y.shiftKey);break;case "PageDown":y.preventDefault(),y.stopPropagation(),t.focusNextSection(y.shiftKey);break;case "End":y.preventDefault(),y.stopPropagation(),t.focusSectionEnd();break;case "Home":y.preventDefault(),y.stopPropagation(),t.focusSectionStart();break;case "ArrowLeft":y.preventDefault(),y.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case "ArrowUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousRow();break;case "ArrowRight":y.preventDefault(),y.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case "ArrowDown":y.preventDefault(),y.stopPropagation(),t.focusNextRow();break;case "Escape":"setAnchorDate"in t&&(y.preventDefault(),t.setAnchorDate(null));break}},l=Bu(r,o,t.timeZone,true),{ariaLabel:s,ariaLabelledBy:u}=Pl.get(t),c=Qe({"aria-label":[s,l].filter(Boolean).join(", "),"aria-labelledby":u}),p=Rt({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=Q(),m=useMemo(()=>{let y=t.visibleDuration.days&&t.visibleDuration.days<7,g=y?r:startOfWeek(today(t.timeZone),d,n),b=y?t.visibleDuration.days:7;return [...new Array(b).keys()].map(x=>{let v=g.add({days:x}).toDate(t.timeZone);return p.format(v)})},[d,t.timeZone,p,n,r,t.visibleDuration.days]),f=t.getWeeksInMonth(r);return {gridProps:A(c,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||t.selectionMode==="multiple"||void 0,onKeyDown:a,onFocus:()=>t.setFocused(true),onBlur:()=>t.setFocused(false)}),headerProps:{"aria-hidden":true},weekDays:m,weeksInMonth:f}}function jt(e,t){if(!e)return false;let o=X(e).getComputedStyle(e),n=/(auto|scroll)/.test(o.overflow+o.overflowX+o.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Ze(e,t){let r=e;for(jt(r,t)&&(r=r.parentElement);r&&!jt(r,t);)r=r.parentElement;let o=G(e);return r||o.scrollingElement||o.documentElement}function Sl(e,t){let r=[],o=G(e),n=o.scrollingElement||o.documentElement;for(;e&&(jt(e,t)&&r.push(e),e!==n);)e=e.parentElement;return r}function jh(e,t){let o=G(t).defaultView||window,n=ck(e,t,"left"),i=ck(e,t,"top"),a=t.offsetWidth,l=t.offsetHeight,s=e.scrollLeft,u=e.scrollTop,{borderTopWidth:c,borderLeftWidth:p,scrollPaddingTop:d,scrollPaddingRight:m,scrollPaddingBottom:f,scrollPaddingLeft:y}=o.getComputedStyle(e),{scrollMarginTop:g,scrollMarginRight:b,scrollMarginBottom:x,scrollMarginLeft:h}=o.getComputedStyle(t),v=s+parseInt(p,10),C=u+parseInt(c,10),T=v+e.clientWidth,P=C+e.clientHeight,k=parseInt(d,10)||0,S=parseInt(f,10)||0,w=parseInt(m,10)||0,E=parseInt(y,10)||0,R=parseInt(g,10)||0,_=parseInt(x,10)||0,D=parseInt(b,10)||0,F=parseInt(h,10)||0,z=n-F,N=n+a+D,V=i-R,M=i+l+_,O=s+parseInt(p,10)+E,B=T-w,K=u+parseInt(c,10)+k,I=P-S;if((z>O||N<B)&&(z<=s+E?s=z-parseInt(p,10)-E:N>T-w&&(s+=N-T+w)),(V>K||M<I)&&(V<=C+k?u=V-parseInt(c,10)-k:M>P-S&&(u+=M-P+S)),process.env.NODE_ENV==="test"){e.scrollLeft=s,e.scrollTop=u;return}e.scrollTo({left:s,top:u});}function ck(e,t,r){let o=r==="left"?"offsetLeft":"offsetTop",n=0;for(;t.offsetParent&&(n+=t[o],t.offsetParent!==e);){if(Y(t.offsetParent,e)){n-=e[o];break}t=t.offsetParent;}return n}function kt(e,t){let r=G(e),o=r.defaultView||window;if(e&&Y(r.body,e)){let n=r.scrollingElement||r.documentElement,i=o.getComputedStyle(n).overflow==="hidden";if(!i&&!ji()){let{left:a,top:l}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:s,top:u}=e.getBoundingClientRect();(Math.abs(a-s)>1||Math.abs(l-u)>1)&&(t?.containingElement?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}));}else {let a=Sl(e);i||a.push(n);for(let l of a)jh(l,e);}}}var TH=0,dk=new WeakMap;function Tt(e,t){let[r,o]=useState();return te(()=>{if(!e)return;let n=t?.current?.getRootNode()||document,i=n?.ownerDocument||document,a=dk.get(n);a||(a=new Map,dk.set(n,a));let l=a.get(e);if(l)o(l.element.id);else {let s=`react-aria-description-${TH++}`;o(s);let u=i.createElement("div");u.id=s,u.style.display="none",u.textContent=e,"body"in n?n.body.appendChild(u):n.appendChild(u),l={refCount:0,element:u},a.set(e,l);}return l.refCount++,()=>{l&&--l.refCount===0&&(l.element.remove(),a.delete(e));}},[e]),{"aria-describedby":e?r:void 0}}function Wh(e,t,r){let{date:o,isDisabled:n}=e,{errorMessageId:i,selectedDateDescription:a}=Pl.get(t),l=ve(ea,"@react-aria/calendar"),s=Rt({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Cl(o),timeZone:t.timeZone}),u=t.isCellFocused(o)&&!e.isOutsideMonth;n=n||t.isCellDisabled(o)||!!e.isOutsideMonth;let c=t.isCellUnavailable(o),p=!n&&!c,d=t.isSelected(o)&&p,m=false;t.isValueInvalid&&("highlightedRange"in t?m=!t.anchorDate&&t.highlightedRange!=null&&o.compare(t.highlightedRange.start)>=0&&o.compare(t.highlightedRange.end)<=0:Array.isArray(t.value)?m=t.value.some(E=>isSameDay(E,o)):t.value&&(m=isSameDay(t.value,o))),m&&!n&&(d=true),o=am(o,isEqualDay);let f=useMemo(()=>o.toDate(t.timeZone),[o,t.timeZone]),y=isToday(o,t.timeZone),g=useMemo(()=>{let E="";return "highlightedRange"in t&&t.value&&!t.anchorDate&&(isSameDay(o,t.value.start)||isSameDay(o,t.value.end))&&(E=a+", "),E+=s.format(f),y?E=l.format(d?"todayDateSelected":"todayDate",{date:E}):d&&(E=l.format("dateSelected",{date:E})),t.minValue&&isSameDay(o,t.minValue)?E+=", "+l.format("minimumDate"):t.maxValue&&isSameDay(o,t.maxValue)&&(E+=", "+l.format("maximumDate")),E},[s,f,l,d,y,o,t,a]),b="";"anchorDate"in t&&u&&!t.isReadOnly&&p&&(t.anchorDate?b=l.format("finishRangeSelectionPrompt"):b=l.format("startRangeSelectionPrompt"));let x=Tt(b),h=useRef(false),v=useRef(false),C=useRef(void 0),{pressProps:T,isPressed:P}=Ae({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:true,isDisabled:!p||t.isReadOnly,onPressStart(E){if(t.isReadOnly){t.setFocusedDate(o),t.setFocused(true);return}if("highlightedRange"in t&&!t.anchorDate&&(E.pointerType==="mouse"||E.pointerType==="touch")){if(t.highlightedRange&&!m){if(isSameDay(o,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(o),t.setFocused(true),t.setDragging(true),v.current=true;return}else if(isSameDay(o,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(o),t.setFocused(true),t.setDragging(true),v.current=true;return}}let R=()=>{t.setDragging(true),C.current=void 0,t.selectDate(o),t.setFocusedDate(o),t.setFocused(true),h.current=true;};E.pointerType==="touch"?C.current=setTimeout(R,200):R();}},onPressEnd(){v.current=false,h.current=false,clearTimeout(C.current),C.current=void 0;},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(o),t.setFocusedDate(o),t.setFocused(true));},onPressUp(E){t.isReadOnly||("anchorDate"in t&&C.current&&(t.selectDate(o),t.setFocusedDate(o),t.setFocused(true)),"anchorDate"in t&&(v.current?t.setAnchorDate(o):t.anchorDate&&!h.current?(t.selectDate(o),t.setFocusedDate(o),t.setFocused(true)):E.pointerType==="keyboard"&&!t.anchorDate?(t.selectDate(o),t.focusNearestAvailableDate(o)):E.pointerType==="virtual"&&(t.selectDate(o),t.setFocusedDate(o),t.setFocused(true))));}}),k;n||(k=isSameDay(o,t.focusedDate)?0:-1),useEffect(()=>{u&&r.current&&(Ve(r.current),Dt()!=="pointer"&&ue(G(r.current))===r.current&&kt(r.current,{containingElement:Ze(r.current)}));},[u,r]);let S=Rt({day:"numeric",timeZone:t.timeZone,calendar:o.calendar.identifier}),w=useMemo(()=>S.formatToParts(f).find(E=>E.type==="day").value,[S,f]);return {cellProps:{role:"gridcell","aria-disabled":!p||void 0,"aria-selected":d||void 0,"aria-invalid":m||void 0},buttonProps:A(T,{onFocus(){n||(t.setFocusedDate(o),t.setFocused(true));},tabIndex:k,role:"button","aria-disabled":!p||void 0,"aria-label":g,"aria-invalid":m||void 0,"aria-describedby":[m?i:void 0,x["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(E){"highlightDate"in t&&(E.pointerType!=="touch"||t.isDragging)&&p&&t.highlightDate(o);},onPointerDown(E){let R=$(E);R instanceof X(R).HTMLElement&&"releasePointerCapture"in R&&("hasPointerCapture"in R?R.hasPointerCapture(E.pointerId)&&R.releasePointerCapture(E.pointerId):R.releasePointerCapture(E.pointerId));},onContextMenu(E){E.preventDefault();}}),isPressed:P,isFocused:u,isSelected:d,isDisabled:n,isUnavailable:c,isOutsideVisibleRange:o.compare(t.visibleRange.start)<0||o.compare(t.visibleRange.end)>0,isInvalid:m,formattedDate:w}}function qh(e,t){let r=useMemo(()=>{let i=t.visibleRange.start;return e.offset&&(i=i.add(e.offset)),i},[t.visibleRange.start,e.offset]),o=t.visibleDuration.days||t.visibleDuration.weeks,n=Rt({day:e.format?.day||(o?"numeric":void 0),month:e.format?.month||"long",year:e.format?.year||"numeric",era:e.format?.era||r&&r.calendar.identifier==="gregory"&&r.era==="BC"?"short":void 0,calendar:t.visibleRange?.start.calendar.identifier,timeZone:t.timeZone});return useMemo(()=>{if(o)return n.formatRange(r.toDate(t.timeZone),t.visibleRange.end.toDate(t.timeZone));let i=r.calendar.getFormattableMonth?r.calendar.getFormattableMonth(r):r;return n.format(i.toDate(t.timeZone))},[n,o,r,t.timeZone,t.visibleRange.end])}function Xh(e,t,r){let{commitBehavior:o="select",...n}=e,i=sm(n,t),a=useRef(false),l=useRef(typeof window<"u"?window:null);at(l,"pointerdown",c=>{a.current=c.width===0&&c.height===0;});let s={clear:()=>t.clearSelection(),reset:()=>t.setAnchorDate(null),select:()=>t.commitSelection()};return at(l,"pointerup",c=>{if(a.current){a.current=false;return}if(t.setDragging(false),!t.anchorDate)return;let p=$(c);r.current&&vo(r.current)&&(!Y(r.current,p)||!p.closest('button, [role="button"]'))&&s[o]();}),i.calendarProps.onBlur=c=>{r.current&&(!c.relatedTarget||!Y(r.current,c.relatedTarget))&&t.anchorDate&&s[o]();},at(r,"touchmove",c=>{t.isDragging&&c.preventDefault();},{passive:false,capture:true}),i}function $o(e,t,r){return t!=null&&e.compare(t)<0||r!=null&&e.compare(r)>0}function Hu(e,t,r,o,n){let i={};for(let l in t)i[l]=Math.floor(t[l]/2),i[l]>0&&t[l]%2===0&&i[l]--;let a=ni(e,t,r).subtract(i);return Dl(e,a,t,r,o,n)}function ni(e,t,r,o,n){let i=e;return t.years?i=startOfYear(e):t.months?i=startOfMonth(e):(t.weeks||t.days&&t.days>7)&&(i=startOfWeek(e,r)),Dl(e,i,t,r,o,n)}function cm(e,t,r,o,n){let i={...t};i.days?i.days--:i.weeks?i.weeks--:i.months?i.months--:i.years&&i.years--;let a=ni(e,t,r).subtract(i);return Dl(e,a,t,r,o,n)}function Dl(e,t,r,o,n,i){if(n&&e.compare(n)>=0){let a=maxDate(t,ni(toCalendarDate(n),r,o));a&&(t=a);}if(i&&e.compare(i)<=0){let a=minDate(t,cm(toCalendarDate(i),r,o));a&&(t=a);}return t}function oo(e,t,r){if(t){let o=maxDate(e,toCalendarDate(t));o&&(e=o);}if(r){let o=minDate(e,toCalendarDate(r));o&&(e=o);}return e}function dm(e,t,r){if(!r)return e;for(;e.compare(t)>=0&&r(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function bk(e,t){return e===t?true:e.days===t.days&&e.weeks===t.weeks&&e.months===t.months&&e.years===t.years}function $u(e){let t=useMemo(()=>new DateFormatter(e.locale),[e.locale]),r=useMemo(()=>t.resolvedOptions(),[t]),{locale:o,createCalendar:n,visibleDuration:i={months:1},minValue:a,maxValue:l,selectionAlignment:s,isDateUnavailable:u,pageBehavior:c="visible",selectionMode:p="single",firstDayOfWeek:d,weeksInMonth:m}=e,f=useMemo(()=>n(r.calendar),[n,r.calendar]),[y,g]=ye(e.value,e.defaultValue??null,e.onChange),b=useMemo(()=>Array.isArray(y)?y.map(H=>toCalendar(toCalendarDate(H),f)):y?toCalendar(toCalendarDate(y),f):null,[y,f]),x=useMemo(()=>{let H=Array.isArray(y)?y[0]:y;return H&&"timeZone"in H?H.timeZone:r.timeZone},[y,r.timeZone]),h=useMemo(()=>e.focusedValue?oo(toCalendar(toCalendarDate(e.focusedValue),f),a,l):void 0,[e.focusedValue,f,a,l]),v=useMemo(()=>e.defaultFocusedValue?oo(toCalendar(toCalendarDate(e.defaultFocusedValue),f),a,l):b?oo(Array.isArray(b)?b[0]:b,a,l):oo(toCalendar(today(x),f),a,l),[e.defaultFocusedValue,b,x,f,a,l]),[C,T]=ye(h,v,e.onFocusChange),P=()=>{switch(s){case "start":return ni(C,i,o,a,l);case "end":return cm(C,i,o,a,l);default:return Hu(C,i,o,a,l)}},[k,S]=useState(P),[w,E]=useState(e.autoFocus||false),[R,_]=useState(i);bk(i,R)||(_(i),S(P()));let D=useMemo(()=>{let H={...i};return H.days?H.days--:H.days=-1,k.add(H)},[k,i]),[F,z]=useState(f);if(!isEqualCalendar(f,F)){let H=toCalendar(C,f);S(Hu(H,i,o,a,l)),T(H),z(f);}$o(C,a,l)?T(oo(C,a,l)):C.compare(k)<0?S(cm(C,i,o,a,l)):C.compare(D)>0&&S(ni(C,i,o,a,l));function N(H){H=oo(H,a,l),T(H);}function V(H){let U=oo(H,a,l),q=dm(U,k,u);if(!q)return null;let W=Array.isArray(y)?y[0]:y,J=toCalendar(q,W?.calendar||new GregorianCalendar);return W&&"hour"in W?W.set(J):J}function M(H){if(!e.isDisabled&&!e.isReadOnly){if(H===null){g(p==="multiple"?[]:null);return}if(Array.isArray(H))g(H.map(V).filter(Boolean));else {let U=V(H);U&&g(U);}}}let O=useMemo(()=>b?Array.isArray(b)?b.some(H=>u?.(H)||$o(H,a,l)):u?.(b)||$o(b,a,l):false,[b,u,a,l]),B=e.isInvalid||e.validationState==="invalid"||O,K=B?"invalid":null,I=useMemo(()=>c==="visible"?i:Yh(i),[c,i]);return {isDisabled:e.isDisabled??false,isReadOnly:e.isReadOnly??false,value:b,setValue:M,selectionMode:p,visibleDuration:i,visibleRange:{start:k,end:D},minValue:a,maxValue:l,focusedDate:C,timeZone:x,validationState:K,isValueInvalid:B,setFocusedDate(H){N(H);},focusNextDay(){N(C.add({days:1}));},focusPreviousDay(){N(C.subtract({days:1}));},focusNextRow(){i.days?this.focusNextPage():(i.weeks||i.months||i.years)&&N(C.add({weeks:1}));},focusPreviousRow(){i.days?this.focusPreviousPage():(i.weeks||i.months||i.years)&&N(C.subtract({weeks:1}));},focusNextPage(){let H=k.add(I);T(oo(C.add(I),a,l)),S(ni(Dl(C,H,I,o,a,l),I,o));},focusPreviousPage(){let H=k.subtract(I);T(oo(C.subtract(I),a,l)),S(ni(Dl(C,H,I,o,a,l),I,o));},focusSectionStart(){i.days?N(k):i.weeks?N(startOfWeek(C,o)):(i.months||i.years)&&N(startOfMonth(C));},focusSectionEnd(){i.days?N(D):i.weeks?N(endOfWeek(C,o)):(i.months||i.years)&&N(endOfMonth(C));},focusNextSection(H){if(!H&&!i.days){N(C.add(Yh(i)));return}i.days?this.focusNextPage():i.weeks?N(C.add({months:1})):(i.months||i.years)&&N(C.add({years:1}));},focusPreviousSection(H){if(!H&&!i.days){N(C.subtract(Yh(i)));return}i.days?this.focusPreviousPage():i.weeks?N(C.subtract({months:1})):(i.months||i.years)&&N(C.subtract({years:1}));},selectFocusedDate(){u&&u(C)||this.selectDate(C);},selectDate(H){if(!(e.isDisabled||e.isReadOnly))if(p==="multiple"&&H!=null){let U=V(H);if(!U)return;let q=[];Array.isArray(y)?q=y:y!=null&&(q=[y]);let W=q.findIndex(me=>isSameDay(me,U)),J=W>=0?q.slice(0,W).concat(q.slice(W+1)):[...q,U];g(J);}else M(H);},isFocused:w,setFocused:E,isInvalid(H){return $o(H,a,l)},isSelected(H){return !b||this.isCellDisabled(H)||this.isCellUnavailable(H)?false:Array.isArray(b)?b.some(U=>isSameDay(U,H)):isSameDay(H,b)},isCellFocused(H){return w&&C&&isSameDay(H,C)},isCellDisabled(H){return e.isDisabled||H.compare(k)<0||H.compare(D)>0||this.isInvalid(H)},isCellUnavailable(H){return e.isDateUnavailable?e.isDateUnavailable(H):false},isPreviousVisibleRangeInvalid(){let H=k.subtract({days:1});return isSameDay(H,k)||this.isInvalid(H)},isNextVisibleRangeInvalid(){let H=D.add({days:1});return isSameDay(H,D)||this.isInvalid(H)},getDatesInWeek(H,U=k){let q=U.add({weeks:H}),W=[],J=i.days&&i.days<7?i.days:7;if(J===7){q=startOfWeek(q,o,d);let me=getDayOfWeek(q,o,d);for(let ne=0;ne<me;ne++)W.push(null);}for(;W.length<J;){W.push(q);let me=q.add({days:1});if(isSameDay(q,me))break;q=me;}for(;W.length<J;)W.push(null);return W},getWeeksInMonth(H=k){let U=m||getWeeksInMonth(H,o,d);return (i.weeks||i.days)&&(U=i.weeks??0,i.days&&(U+=Math.ceil(i.days/7))),U}}}function Yh(e){let t={...e};for(let r in e)t[r]=1;return t}function Qh(e){let{value:t,defaultValue:r,onChange:o,createCalendar:n,locale:i,visibleDuration:a={months:1},minValue:l,maxValue:s,...u}=e,[c,p]=ye(t,r||null,o),[d,m]=useState(null),f="center";if(c&&c.start&&c.end){let _=Hu(toCalendarDate(c.start),a,i,l,s).add(a).subtract({days:1});c.end.compare(_)>0&&(f="start");}let y=useMemo(()=>{let R=e.isDateUnavailable;if(R)return _=>R(_,d)},[e.isDateUnavailable,d]),g=useCallback(R=>{if(R&&y&&!e.allowsNonContiguousRanges){let _=xk(R,y,a,-1),D=xk(R,y,a,1);return {start:_,end:D}}else return null},[y,a,e.allowsNonContiguousRanges]),b=useMemo(()=>g(d),[g,d]),x=useMemo(()=>maxDate(l,b?.start),[l,b]),h=useMemo(()=>minDate(s,b?.end),[s,b]),v=$u({...u,value:c&&c.start,createCalendar:n,locale:i,visibleDuration:a,minValue:x,maxValue:h,selectionAlignment:e.selectionAlignment||f,isDateUnavailable:y}),C=d?Zh(d,v.focusedDate):c&&Zh(c.start,c.end),T=R=>{if(e.isReadOnly)return;let _=oo(R,x,h),D=dm(_,v.visibleRange.start,y);if(D)if(!d)m(D);else {let F=Zh(d,D);F&&p({start:vk(F.start,c?.start),end:vk(F.end,c?.end)}),m(null);}},[P,k]=useState(false),S=useMemo(()=>!c||d?false:y&&(y(c.start)||y(c.end))?true:$o(c.start,l,s)||$o(c.end,l,s),[y,c,d,l,s]),w=e.isInvalid||e.validationState==="invalid"||S;return {...v,value:c,setValue:p,anchorDate:d,setAnchorDate:m,highlightedRange:C,validationState:w?"invalid":null,isValueInvalid:w,selectFocusedDate(){v.isCellUnavailable(v.focusedDate)||T(v.focusedDate);},commitSelection(){T(v.focusedDate);},selectDate:T,highlightDate(R){d&&v.setFocusedDate(R);},isSelected(R){return !!(C&&R.compare(C.start)>=0&&R.compare(C.end)<=0&&!v.isCellDisabled(R)&&!v.isCellUnavailable(R))},isInvalid(R){return v.isInvalid(R)||$o(R,b?.start,b?.end)},isDragging:P,setDragging:k,clearSelection(){m(null),p(null);},focusNearestAvailableDate(R){let _=g(R),D=z=>this.isInvalid(z)||$o(z,_?.start,_?.end),F=R.add({days:1});D(F)&&(F=R.subtract({days:1})),D(F)||(this.setFocusedDate(F),this.setFocused(true));}}}function Zh(e,t){return !e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:toCalendarDate(e),end:toCalendarDate(t)})}function vk(e,t){return e=toCalendar(e,t?.calendar||new GregorianCalendar),t&&"hour"in t?t.set(e):e}function xk(e,t,r,o){let n=e.add({days:o}),i=e.subtract(r),a=e.add(r);for(;(o<0?n.compare(i)>=0:n.compare(a)<=0)&&!t(n);)n=n.add({days:o});if(t(n))return n.add({days:-o})}var Gu=createContext({}),Uu=forwardRef(function(t,r){[t,r]=Re(t,r,Gu);let{children:o,level:n=3,className:i,...a}=t,l=xe[`h${n}`];return jsx(l,{...a,ref:r,className:i??"react-aria-Heading",children:o})});var Co=createContext({}),ii=forwardRef(function(t,r){[t,r]=Re(t,r,Co);let{elementType:o="span",...n}=t,i=xe[o];return jsx(i,{className:"react-aria-Text",...n,ref:r})});var Tk={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Ot(e={}){let{style:t,isFocusable:r}=e,[o,n]=useState(false),{focusWithinProps:i}=lt({isDisabled:!r,onFocusWithinChange:l=>n(l)}),a=useMemo(()=>o?t:t?{...Tk,...t}:Tk,[o]);return {visuallyHiddenProps:{...i,style:a}}}function Oe(e){let{children:t,elementType:r="div",isFocusable:o,style:n,...i}=e,{visuallyHiddenProps:a}=Ot(e);return jsx(r,{...A(i,a),children:t})}var ym=createContext(null),bm=createContext(null),Go=createContext(null),Uo=createContext(null),ev=forwardRef(function(t,r){[t,r]=Re(t,r,ym);let{locale:o}=Q(),n=$u({...t,locale:o,createCalendar:t.createCalendar||createCalendar}),{calendarProps:i,prevButtonProps:a,nextButtonProps:l,errorMessageProps:s,title:u}=Hh(t,n),c=Fe({...t,values:{state:n,isDisabled:t.isDisabled||false,isInvalid:n.isValueInvalid},defaultClassName:"react-aria-Calendar"}),p=re(t,{global:true});return jsx(xe.div,{...A(p,c,i),ref:r,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":n.isValueInvalid||void 0,children:jsxs(ct,{values:[[ro,{slots:{previous:a,next:l}}],[Gu,{"aria-hidden":true,level:2,children:u}],[Go,n],[ym,t],[Co,{slots:{errorMessage:s}}]],children:[jsx(Oe,{children:jsx("h2",{children:i["aria-label"]})}),c.children,jsx(Oe,{children:jsx("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>n.focusNextPage(),tabIndex:-1})})]})})}),tv=forwardRef(function(t,r){[t,r]=Re(t,r,bm);let{locale:o}=Q(),n=Qh({...t,locale:o,createCalendar:t.createCalendar||createCalendar}),{calendarProps:i,prevButtonProps:a,nextButtonProps:l,errorMessageProps:s,title:u}=Xh(t,n,r),c=Fe({...t,values:{state:n,isDisabled:t.isDisabled||false,isInvalid:n.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),p=re(t,{global:true});return jsx(xe.div,{...A(c,p,i),ref:r,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":n.isValueInvalid||void 0,children:jsxs(ct,{values:[[ro,{slots:{previous:a,next:l}}],[Gu,{"aria-hidden":true,level:2,children:u}],[Uo,n],[bm,t],[Co,{slots:{errorMessage:s}}]],children:[jsx(Oe,{children:jsx("h2",{children:i["aria-label"]})}),c.children,jsx(Oe,{children:jsx("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>n.focusNextPage(),tabIndex:-1})})]})})}),gm=createContext(null),qu=forwardRef(function(t,r){let o=useContext(Go),n=useContext(Uo),i=eo(ym),a=eo(bm),l=o??n,s=l.visibleRange.start;t.offset&&(s=s.add(t.offset));let u=i?.firstDayOfWeek??a?.firstDayOfWeek,{gridProps:c,headerProps:p,weekDays:d,weeksInMonth:m}=$h({startDate:s,endDate:endOfMonth(s),weekdayStyle:t.weekdayStyle,firstDayOfWeek:u},l),f=re(t,{global:true});return jsx(gm.Provider,{value:{headerProps:p,weekDays:d,startDate:s,weeksInMonth:m},children:jsx(xe.table,{render:t.render,...A(f,c),ref:r,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid",children:typeof t.children!="function"?t.children:jsxs(Fragment,{children:[jsx(kl,{children:y=>jsx(El,{children:y})}),jsx(zl,{children:t.children})]})})})});function t$(e,t){let{children:r,style:o,className:n}=e,{headerProps:i,weekDays:a}=useContext(gm),l=re(e,{global:true});return jsx(xe.thead,{render:e.render,...A(l,i),ref:t,style:o,className:n??"react-aria-CalendarGridHeader",children:jsx("tr",{children:a.map((s,u)=>Un.cloneElement(r(s),{key:u}))})})}var kl=forwardRef(t$);function r$(e,t){let{children:r,style:o,className:n}=e,i=re(e,{global:true});return jsx(xe.th,{render:e.render,...i,ref:t,style:o,className:n||"react-aria-CalendarHeaderCell",children:r})}var El=forwardRef(r$);function o$(e,t){let{children:r,style:o,className:n}=e,i=useContext(Go),a=useContext(Uo),l=i??a,{startDate:s,weeksInMonth:u}=useContext(gm),c=re(e,{global:true});return jsx(xe.tbody,{render:e.render,...c,ref:t,style:o,className:n??"react-aria-CalendarGridBody",children:[...new Array(u).keys()].map(p=>jsx("tr",{children:l.getDatesInWeek(p,s).map((d,m)=>d?Un.cloneElement(r(d),{key:m}):jsx("td",{},m))},p))})}var zl=forwardRef(o$);var rv=forwardRef(function({date:t,...r},o){let n=useContext(Go),i=useContext(Uo),a=n??i,{startDate:l}=useContext(gm)??{startDate:a.visibleRange.start},s=a.visibleDuration.days||a.visibleDuration.weeks?false:!isSameMonth(l,t),u=isToday(t,a.timeZone),c=useRef(null),{cellProps:p,buttonProps:d,...m}=Wh({date:t,isOutsideMonth:s},a,c),{hoverProps:f,isHovered:y}=ie({...r,isDisabled:m.isDisabled||m.isUnavailable}),{focusProps:g,isFocusVisible:b}=oe();b&&=m.isFocused;let x=false,h=false;"highlightedRange"in a&&a.highlightedRange&&(x=isSameDay(t,a.highlightedRange.start),h=isSameDay(t,a.highlightedRange.end));let v=Fe({...r,defaultChildren:m.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:y,isOutsideMonth:s,isFocusVisible:b,isSelectionStart:x,isSelectionEnd:h,isToday:u,...m}}),C={"data-focused":m.isFocused||void 0,"data-hovered":y||void 0,"data-pressed":m.isPressed||void 0,"data-unavailable":m.isUnavailable||void 0,"data-disabled":m.isDisabled||void 0,"data-focus-visible":b||void 0,"data-outside-visible-range":m.isOutsideVisibleRange||void 0,"data-outside-month":s||void 0,"data-selected":m.isSelected||void 0,"data-selection-start":x||void 0,"data-selection-end":h||void 0,"data-invalid":m.isInvalid||void 0,"data-today":u||void 0},T=re(r,{global:true});return jsx("td",{...p,ref:o,children:jsx(xe.div,{...A(T,d,g,f,C,v),ref:c})})});forwardRef(function(t,r){let{offset:o,format:n,className:i="react-aria-CalendarHeading",...a}=t,l=Un.useContext(Go),s=Un.useContext(Uo),c=qh({offset:o,format:n},l||s);return jsx(Uu,{...a,className:i,ref:r,children:c})});var Sk=new WeakMap;function Vr(e){let{description:t,errorMessage:r,isInvalid:o,validationState:n,ref:i}=e,{labelProps:a,fieldProps:l}=Jt(e),s=vt([!!t,!!r,o,n],i),u=vt([!!t,!!r,o,n],i);return l=A(l,{"aria-describedby":[s,u,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:l,descriptionProps:{id:s},errorMessageProps:{id:u}}}var lv={badInput:false,customError:false,patternMismatch:false,rangeOverflow:false,rangeUnderflow:false,stepMismatch:false,tooLong:false,tooShort:false,typeMismatch:false,valueMissing:false,valid:true},Ek={...lv,customError:true,valid:false},li={isInvalid:false,validationDetails:lv,validationErrors:[]},vm=createContext({}),Br="__reactAriaFormValidationState";function Nt(e){if(e[Br]){let{realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:n,commitValidation:i}=e[Br];return {realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:n,commitValidation:i}}return u$(e)}function u$(e){let{isInvalid:t,validationState:r,name:o,value:n,builtinValidation:i,validate:a,validationBehavior:l="aria"}=e;r&&(t||=r==="invalid");let s=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Ek}:null,u=useMemo(()=>{if(!a||n==null)return null;let w=c$(a,n);return kk(w)},[a,n]);i?.validationDetails.valid&&(i=void 0);let c=useContext(vm),p=useMemo(()=>o?Array.isArray(o)?o.flatMap(w=>av(c[w])):av(c[o]):[],[c,o]),[d,m]=useState(c),[f,y]=useState(false);c!==d&&(m(c),y(false));let g=useMemo(()=>kk(f?[]:p),[f,p]),b=useRef(li),[x,h]=useState(li),v=useRef(li),C=()=>{if(!T)return;P(false);let w=u||i||b.current;iv(w,v.current)||(v.current=w,h(w));},[T,P]=useState(false);return useEffect(C),{realtimeValidation:s||g||u||i||li,displayValidation:l==="native"?s||g||x:s||g||u||i||x,updateValidation(w){l==="aria"&&!iv(x,w)?h(w):b.current=w;},resetValidation(){let w=li;iv(w,v.current)||(v.current=w,h(w)),l==="native"&&P(false),y(true);},commitValidation(){l==="native"&&P(true),y(true);}}}function av(e){return e?Array.isArray(e)?e:[e]:[]}function c$(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return av(r)}return []}function kk(e){return e.length?{isInvalid:true,validationErrors:e,validationDetails:Ek}:null}function iv(e,t){return e===t?true:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,o)=>r===t.validationErrors[o])&&Object.entries(e.validationDetails).every(([r,o])=>t.validationDetails[r]===o)}function It(e,t,r){let o=Pe(n=>{r&&!n.defaultPrevented&&r(t);});useEffect(()=>{let n=e?.current?.form;return n?.addEventListener("reset",o),()=>{n?.removeEventListener("reset",o);}},[e]);}function Wo(e,t,r){let{validationBehavior:o,focus:n}=e;te(()=>{if(o==="native"&&r?.current&&"setCustomValidity"in r.current&&!r.current.disabled){let u=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(u),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(y$(r.current));}});let i=useRef(false),a=Pe(()=>{i.current||t.resetValidation();}),l=Pe(u=>{t.displayValidation.isInvalid||t.commitValidation();let c=r?.current?.form;!u.defaultPrevented&&r&&c&&b$(c)===r.current&&(n?n():r.current?.focus(),ar("keyboard")),u.preventDefault();}),s=Pe(()=>{t.commitValidation();});useEffect(()=>{let u=r?.current;if(!u)return;let c=u.form,p=c?.reset;if(c){let d=X(u);c.reset=()=>{let m=d.event?d:window,f=m.event;i.current=!f||f.type==="message"&&typeof m.MessagePort=="function"&&$(f)instanceof m.MessagePort;try{p?.call(c);}finally{i.current=false;}};}return u.addEventListener("invalid",l),u.addEventListener("change",s),c?.addEventListener("reset",a),()=>{u.removeEventListener("invalid",l),u.removeEventListener("change",s),c?.removeEventListener("reset",a),c&&(c.reset=p);}},[r,o]);}function f$(e){let t=e.validity;return {badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function y$(e){return {isInvalid:!e.validity.valid,validationDetails:f$(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function b$(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(r.validity?.valid===false)return r}return null}function x$(e=true){let[t,r]=useState(e),o=useRef(false),n=useCallback(i=>{o.current=true,r(!!i);},[]);return te(()=>{o.current||r(false);},[]),[n,t]}function Xu(e=true){let t=ee(),[r,o]=x$(e);return {id:o?t:void 0,ref:r}}function xm(e,t,r){let{isDisabled:o=false,isReadOnly:n=false,value:i,name:a,form:l,children:s,isRequired:u,validationBehavior:c="aria","aria-label":p,"aria-labelledby":d,"aria-describedby":m,onPressStart:f,onPressEnd:y,onPressChange:g,onPress:b,onPressUp:x,onClick:h}=e,v=Nt({...e,value:t.isSelected}),{isInvalid:C,validationErrors:T,validationDetails:P}=v.displayValidation;Wo(e,v,r);let k=B=>{B.stopPropagation(),t.setSelected($(B).checked);},S=s!=null,w=p!=null||d!=null;!S&&!w&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:E,isPressed:R}=Ae({onPressStart:f,onPressEnd:y,onPressChange:g,onPress:b,onPressUp:x,onClick:h,isDisabled:o}),[_,D]=useState(false),{pressProps:F}=Ae({onPressStart(B){if(B.pointerType==="keyboard"||B.pointerType==="virtual"){B.continuePropagation();return}f?.(B),g?.(true),D(true);},onPressEnd(B){if(B.pointerType==="keyboard"||B.pointerType==="virtual"){B.continuePropagation();return}y?.(B),g?.(false),D(false);},onPressUp(B){if(B.pointerType==="keyboard"||B.pointerType==="virtual"){B.continuePropagation();return}x?.(B);},onClick:h,onPress(B){if(B.pointerType==="keyboard"||B.pointerType==="virtual"){B.continuePropagation();return}b?.(B),t.toggle(),r.current?.focus();let{[Br]:K}=e,{commitValidation:I}=K||v;I();},isDisabled:o||n}),{focusableProps:z}=rt(e,r),N=A(E,z),V=re(e,{labelable:true});It(r,t.defaultSelected,t.setSelected);let M=Xu(),O=Xu();return {labelProps:A(F,{onClick:B=>B.preventDefault()}),inputProps:A(V,{checked:t.isSelected,"aria-required":u&&c==="aria"||void 0,required:u&&c==="native","aria-invalid":C||e.validationState==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":n||void 0,"aria-describedby":[M.id,O.id,m].filter(Boolean).join(" ")||void 0,onChange:k,disabled:o,...i==null?{}:{value:i},name:a,form:l,type:"checkbox",...N}),descriptionProps:M,errorMessageProps:O,isSelected:t.isSelected,isPressed:R||_,isDisabled:o,isReadOnly:n,isInvalid:C||e.validationState==="invalid",validationErrors:T,validationDetails:P}}function Yu(e,t,r){let{labelProps:o,inputProps:n,descriptionProps:i,errorMessageProps:a,isSelected:l,isPressed:s,isDisabled:u,isReadOnly:c,isInvalid:p,validationErrors:d,validationDetails:m}=xm(e,t,r),{isIndeterminate:f}=e;return useEffect(()=>{r.current&&(r.current.indeterminate=!!f);}),{labelProps:A(o,useMemo(()=>({onMouseDown:y=>y.preventDefault()}),[])),inputProps:n,descriptionProps:i,errorMessageProps:a,isSelected:l,isPressed:s,isDisabled:u,isReadOnly:c,isInvalid:p,validationErrors:d,validationDetails:m}}function Er(e={}){let{isReadOnly:t}=e,[r,o]=ye(e.isSelected,e.defaultSelected||false,e.onChange),[n]=useState(r);function i(l){t||o(l);}function a(){t||o(!r);}return {isSelected:r,defaultSelected:e.defaultSelected??n,setSelected:i,toggle:a}}function sv(e,t,r){let o=Er({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(y){y?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(y);}}),{name:n,form:i,descriptionId:a,errorMessageId:l,validationBehavior:s}=Sk.get(t);s=e.validationBehavior??s;let{realtimeValidation:u}=Nt({...e,value:o.isSelected,name:void 0,validationBehavior:"aria"}),c=useRef(li),p=()=>{t.setInvalid(e.value,u.isInvalid?u:c.current);};useEffect(p);let d=t.realtimeValidation.isInvalid?t.realtimeValidation:u,m=s==="native"?t.displayValidation:d,f=Yu({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||n,form:e.form||i,isRequired:e.isRequired??t.isRequired,validationBehavior:s,[Br]:{realtimeValidation:d,displayValidation:m,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(y){c.current=y,p();}}},o,r);return {...f,inputProps:{...f.inputProps,"aria-describedby":[f.inputProps["aria-describedby"],t.isInvalid?l:null,a].filter(Boolean).join(" ")||void 0}}}var Tm=createContext(null);forwardRef(function(t,r){[t,r]=Re(t,r,Tm);let{validationErrors:o,validationBehavior:n="native",children:i,className:a,...l}=t;return jsx(xe.form,{noValidate:n!=="native",...l,ref:r,className:a||"react-aria-Form",children:jsx(Tm.Provider,{value:{...t,validationBehavior:n},children:jsx(vm.Provider,{value:o??{},children:i})})})});var oa=createContext(null),wl=createContext(null);createContext(null);var Rk=createContext(null);var Ik=createContext(null);function I$(e,t){let{validationBehavior:r}=eo(Tm)||{},o=e.validationBehavior??r??"native",n=useContext(Rk),i=ce(useMemo(()=>se(t,e.inputRef!==void 0?e.inputRef:null),[t,e.inputRef])),a={...$p(e),children:typeof e.children=="function"?true:e.children,value:e.value,validationBehavior:o};return [n?sv(a,n,i):Yu(a,Er(e),i),i]}var cv=forwardRef(function(t,r){let{inputRef:o=null,...n}=t;[t,r]=Re(n,r,oa);let[i,a]=I$(t,o);return jsx(Ik.Provider,{value:{...i,inputRef:a,defaultClassName:"react-aria-Checkbox",isIndeterminate:t.isIndeterminate,isRequired:t.isRequired},children:jsx(_k,{...t,ref:r})})}),_k=forwardRef(function(t,r){let{labelProps:o,inputProps:n,isSelected:i,isDisabled:a,isReadOnly:l,isPressed:s,isInvalid:u,inputRef:c,defaultClassName:p,isIndeterminate:d,isRequired:m}=useContext(Ik),{isFocused:f,isFocusVisible:y,focusProps:g}=oe(),b=a||l,{hoverProps:x,isHovered:h}=ie({...t,isDisabled:b}),v=Fe({...t,defaultClassName:p,values:{isSelected:i,isIndeterminate:d||false,isPressed:s,isHovered:h,isFocused:f,isFocusVisible:y,isDisabled:a,isReadOnly:l,isInvalid:u,isRequired:m||false}}),C=re(t,{global:true});return delete C.id,delete C.onClick,jsxs(xe.label,{...A(C,o,x,v),ref:r,slot:t.slot||void 0,"data-selected":i||void 0,"data-indeterminate":d||void 0,"data-pressed":s||void 0,"data-hovered":h||void 0,"data-focused":f||void 0,"data-focus-visible":y||void 0,"data-disabled":a||void 0,"data-readonly":l||void 0,"data-invalid":u||void 0,"data-required":m||void 0,children:[jsx(Oe,{elementType:"span",children:jsx("input",{...A(n,g),ref:c})}),v.children]})});var Pm={"ar-AE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u0623\u062F\u0627\u0629 \u0627\u0646\u062A\u0642\u0627\u0621 \u0627\u0644\u0644\u0648\u0646",colorSwatch:"\u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u0623\u0644\u0648\u0627\u0646",transparent:"\u0634\u0641\u0627\u0641",twoDimensionalSlider:"\u0645\u064F\u0646\u0632\u0644\u0642 2D"},"bg-BG":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u043E \u0437\u0430 \u0438\u0437\u0431\u0438\u0440\u0430\u043D\u0435 \u043D\u0430 \u0446\u0432\u044F\u0442",colorSwatch:"\u0446\u0432\u0435\u0442\u043D\u0430 \u043C\u043E\u0441\u0442\u0440\u0430",transparent:"\u043F\u0440\u043E\u0437\u0440\u0430\u0447\u0435\u043D",twoDimensionalSlider:"2D \u043F\u043B\u044A\u0437\u0433\u0430\u0447"},"cs-CZ":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xFDb\u011Br barvy",colorSwatch:"barevn\xFD vzorek",transparent:"pr\u016Fhledn\xFD",twoDimensionalSlider:"2D posuvn\xEDk"},"da-DK":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Farvev\xE6lger",colorSwatch:"farvepr\xF8ve",transparent:"gennemsigtig",twoDimensionalSlider:"2D-skyder"},"de-DE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Farbw\xE4hler",colorSwatch:"Farbfeld",transparent:"transparent",twoDimensionalSlider:"2D-Schieberegler"},"el-GR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03B1\u03C2 \u03C7\u03C1\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",colorSwatch:"\u03C7\u03C1\u03C9\u03BC\u03B1\u03C4\u03B9\u03BA\u03CC \u03B4\u03B5\u03AF\u03B3\u03BC\u03B1",transparent:"\u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AD\u03C2",twoDimensionalSlider:"\u03A1\u03C5\u03B8\u03BC\u03B9\u03C3\u03C4\u03B9\u03BA\u03CC 2D"},"en-US":{colorPicker:"Color picker",twoDimensionalSlider:"2D slider",colorNameAndValue:e=>`${e.name}: ${e.value}`,colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorSwatch:"color swatch",transparent:"transparent"},"es-ES":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selector de color",colorSwatch:"muestra de color",transparent:"transparente",twoDimensionalSlider:"Regulador 2D"},"et-EE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xE4rvivalija",colorSwatch:"v\xE4rvin\xE4idis",transparent:"l\xE4bipaistev",twoDimensionalSlider:"2D-liugur"},"fi-FI":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xE4rimuokkain",colorSwatch:"v\xE4rimalli",transparent:"l\xE4pin\xE4kyv\xE4",twoDimensionalSlider:"2D-liukus\xE4\xE4din"},"fr-FR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\xA0: ${e.value}`,colorPicker:"S\xE9lecteur de couleurs",colorSwatch:"\xC9chantillon de couleurs",transparent:"Transparent",twoDimensionalSlider:"Curseur\xA02D"},"he-IL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u05D1\u05D5\u05D7\u05E8 \u05D4\u05E6\u05D1\u05E2\u05D9\u05DD",colorSwatch:"\u05D3\u05D5\u05D2\u05DE\u05D9\u05EA \u05E6\u05D1\u05E2",transparent:"\u05E9\u05E7\u05D5\u05E3",twoDimensionalSlider:"\u05DE\u05D7\u05D5\u05D5\u05DF \u05D3\u05D5 \u05DE\u05D9\u05DE\u05D3\u05D9"},"hr-HR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Odabir boje",colorSwatch:"uzorak boje",transparent:"transparentno",twoDimensionalSlider:"2D kliza\u010D"},"hu-HU":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Sz\xEDnv\xE1laszt\xF3",colorSwatch:"sz\xEDnt\xE1r",transparent:"\xE1tl\xE1tsz\xF3",twoDimensionalSlider:"2D-cs\xFAszka"},"it-IT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selettore colore",colorSwatch:"campione di colore",transparent:"trasparente",twoDimensionalSlider:"Cursore 2D"},"ja-JP":{colorInputLabel:e=>`${e.label}\u3001${e.channelLabel}`,colorNameAndValue:e=>`${e.name} : ${e.value}`,colorPicker:"\u30AB\u30E9\u30FC\u30D4\u30C3\u30AB\u30FC",colorSwatch:"\u30AB\u30E9\u30FC\u30B9\u30A6\u30A9\u30C3\u30C1",transparent:"\u900F\u660E",twoDimensionalSlider:"2D \u30B9\u30E9\u30A4\u30C0\u30FC"},"ko-KR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\uC0C9\uC0C1 \uD53C\uCEE4",colorSwatch:"\uC0C9\uC0C1 \uACAC\uBCF8",transparent:"\uD22C\uBA85\uB3C4",twoDimensionalSlider:"2D \uC2AC\uB77C\uC774\uB354"},"lt-LT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Spalv\u0173 parinkiklis",colorSwatch:"spalv\u0173 pavyzdys",transparent:"skaidrus",twoDimensionalSlider:"2D slankiklis"},"lv-LV":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Kr\u0101su atlas\u012Bt\u0101js",colorSwatch:"kr\u0101su paraugs",transparent:"caursp\u012Bd\u012Bgs",twoDimensionalSlider:"2D sl\u012Bdnis"},"nb-NO":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Fargevelger",colorSwatch:"fargekart",transparent:"gjennomsiktig",twoDimensionalSlider:"2D-glidebryter"},"nl-NL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Kleurkiezer",colorSwatch:"kleurstaal",transparent:"transparant",twoDimensionalSlider:"2D-schuifregelaar"},"pl-PL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Pr\xF3bnik kolor\xF3w",colorSwatch:"pr\xF3bka koloru",transparent:"przezroczysty",twoDimensionalSlider:"Suwak 2D"},"pt-BR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Seletor de cores",colorSwatch:"amostra de cores",transparent:"transparente",twoDimensionalSlider:"Controle deslizante 2D"},"pt-PT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Seletor de cores",colorSwatch:"amostra de cor",transparent:"transparente",twoDimensionalSlider:"Controle deslizante 2D"},"ro-RO":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selector de culori",colorSwatch:"specimen de culoare",transparent:"transparent",twoDimensionalSlider:"Glisor 2D"},"ru-RU":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u041F\u0430\u043B\u0438\u0442\u0440\u0430 \u0446\u0432\u0435\u0442\u043E\u0432",colorSwatch:"\u0446\u0432\u0435\u0442\u043E\u0432\u043E\u0439 \u043E\u0431\u0440\u0430\u0437\u0435\u0446",transparent:"\u043F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439",twoDimensionalSlider:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A 2D"},"sk-SK":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"V\xFDber farieb",colorSwatch:"vzorkovn\xEDk farieb",transparent:"transparentn\xFD",twoDimensionalSlider:"2D jazdec"},"sl-SI":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Izbirnik barv",colorSwatch:"barvna paleta",transparent:"prozorno",twoDimensionalSlider:"2D drsnik"},"sr-SP":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Bira\u010D boja",colorSwatch:"Uzorak boje",transparent:"providno",twoDimensionalSlider:"2D kliza\u010D"},"sv-SE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"F\xE4rgv\xE4ljaren",colorSwatch:"f\xE4rgruta",transparent:"genomskinlig",twoDimensionalSlider:"2D-reglage"},"tr-TR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Renk Se\xE7ici",colorSwatch:"renk \xF6rne\u011Fi",transparent:"saydam",twoDimensionalSlider:"2D s\xFCrg\xFC"},"uk-UA":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"\u041F\u0430\u043B\u0456\u0442\u0440\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",colorSwatch:"\u0437\u0440\u0430\u0437\u043E\u043A \u043A\u043E\u043B\u044C\u043E\u0440\u0443",transparent:"\u043F\u0440\u043E\u0437\u043E\u0440\u0438\u0439",twoDimensionalSlider:"\u041F\u043E\u0432\u0437\u0443\u043D\u043E\u043A 2D"},"zh-CN":{colorInputLabel:e=>`${e.label}\u3001${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\uFF1A${e.value}`,colorPicker:"\u62FE\u8272\u5668",colorSwatch:"\u989C\u8272\u8272\u677F",transparent:"\u900F\u660E",twoDimensionalSlider:"2D \u6ED1\u5757"},"zh-TW":{colorInputLabel:e=>`${e.label}\uFF0C${e.channelLabel}`,colorNameAndValue:e=>`${e.name}\uFF1A${e.value}`,colorPicker:"\u6AA2\u8272\u5668",colorSwatch:"\u8272\u7968",transparent:"\u900F\u660E",twoDimensionalSlider:"2D \u6ED1\u687F"}};var Mk={"ar-AE":{alpha:"\u0623\u0644\u0641\u0627",black:"\u0623\u0633\u0648\u062F",blue:"\u0623\u0632\u0631\u0642","blue purple":"\u0623\u0631\u062C\u0648\u0627\u0646\u064A \u0645\u0632\u0631\u0642",brightness:"\u0627\u0644\u0633\u0637\u0648\u0639",brown:"\u0628\u0646\u064A","brown yellow":"\u0623\u0635\u0641\u0631 \u0628\u0646\u064A",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u0633\u0645\u0627\u0648\u064A","cyan blue":"\u0623\u0632\u0631\u0642 \u0633\u0645\u0627\u0648\u064A",dark:"\u062F\u0627\u0643\u0646",gray:"\u0631\u0645\u0627\u062F\u064A",grayish:"\u0645\u0627\u0626\u0644 \u0644\u0644\u0631\u0645\u0627\u062F\u064A",green:"\u0623\u062E\u0636\u0631","green cyan":"\u0633\u0645\u0627\u0648\u064A \u0645\u062E\u0636\u0631",hue:"\u062F\u0631\u062C\u0629 \u0627\u0644\u0644\u0648\u0646",light:"\u0641\u0627\u062A\u062D",lightness:"\u0627\u0644\u0625\u0636\u0627\u0621\u0629",magenta:"\u0623\u0631\u062C\u0648\u0627\u0646\u064A","magenta pink":"\u0623\u0631\u062C\u0648\u0627\u0646\u064A \u0648\u0631\u062F\u064A",orange:"\u0628\u0631\u062A\u0642\u0627\u0644\u064A","orange yellow":"\u0623\u0635\u0641\u0631 \u0628\u0631\u062A\u0642\u0627\u0644\u064A",pale:"\u0628\u0627\u0647\u062A",pink:"\u0648\u0631\u062F\u064A","pink red":"\u0623\u062D\u0645\u0631 \u0648\u0631\u062F\u064A",purple:"\u0623\u0631\u062C\u0648\u0627\u0646\u064A","purple magenta":"\u0628\u0646\u0641\u0633\u062C\u064A",red:"\u0623\u062D\u0645\u0631","red orange":"\u0628\u0631\u062A\u0642\u0627\u0644\u064A \u0645\u062D\u0645\u0631",saturation:"\u0627\u0644\u062A\u0634\u0628\u0639",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u0634\u0641\u0627\u0641`,"very dark":"\u062F\u0627\u0643\u0646 \u062C\u062F\u064B\u0627","very light":"\u0641\u0627\u062A\u062D \u062C\u062F\u064B\u0627",vibrant:"\u0633\u0627\u0637\u0639",white:"\u0623\u0628\u064A\u0636",yellow:"\u0623\u0635\u0641\u0631","yellow green":"\u0623\u062E\u0636\u0631 \u0645\u0635\u0641\u0631"},"bg-BG":{alpha:"\u0410\u043B\u0444\u0430",black:"\u0447\u0435\u0440\u043D\u043E",blue:"\u0421\u0438\u043D\u044C\u043E","blue purple":"\u0441\u0438\u043D\u044C\u043E \u043B\u0438\u043B\u0430\u0432\u043E",brightness:"\u042F\u0440\u043A\u043E\u0441\u0442",brown:"\u043A\u0430\u0444\u044F\u0432\u043E","brown yellow":"\u043A\u0430\u0444\u044F\u0432\u043E \u0436\u044A\u043B\u0442\u043E",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u0446\u0438\u0430\u043D","cyan blue":"\u0446\u0438\u0430\u043D \u0441\u0438\u043D\u044C\u043E",dark:"\u0442\u044A\u043C\u043D\u043E",gray:"\u0441\u0438\u0432\u043E",grayish:"\u0441\u0438\u0432\u043A\u0430\u0432",green:"\u0417\u0435\u043B\u0435\u043D\u043E","green cyan":"\u0437\u0435\u043B\u0435\u043D \u0446\u0438\u0430\u043D",hue:"\u041E\u0442\u0442\u0435\u043D\u044A\u043A",light:"\u0441\u0432\u0435\u0442\u043B\u043E",lightness:"\u041B\u0435\u043A\u043E\u0442\u0430",magenta:"\u043C\u0430\u0433\u0435\u043D\u0442\u0430","magenta pink":"\u043C\u0430\u0433\u0435\u043D\u0442\u0430 \u0440\u043E\u0437\u043E\u0432\u043E",orange:"\u043E\u0440\u0430\u043D\u0436\u0435\u0432\u043E","orange yellow":"\u043E\u0440\u0430\u043D\u0436\u0435\u0432\u043E \u0436\u044A\u043B\u0442\u043E",pale:"\u0431\u043B\u0435\u0434\u043E",pink:"\u0440\u043E\u0437\u043E\u0432\u043E","pink red":"\u0440\u043E\u0437\u043E\u0432\u043E \u0447\u0435\u0440\u0432\u0435\u043D\u043E",purple:"\u043B\u0438\u043B\u0430\u0432\u043E","purple magenta":"\u043B\u0438\u043B\u0430\u0432\u043E \u043C\u0430\u0433\u0435\u043D\u0442\u0430",red:"\u0427\u0435\u0440\u0432\u0435\u043D\u043E","red orange":"\u0447\u0435\u0440\u0432\u0435\u043D \u043F\u043E\u0440\u0442\u043E\u043A\u0430\u043B",saturation:"\u041D\u0430\u0441\u0438\u0442\u0435\u043D\u043E\u0441\u0442",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u043F\u0440\u043E\u0437\u0440\u0430\u0447\u0435\u043D`,"very dark":"\u043C\u043D\u043E\u0433\u043E \u0442\u044A\u043C\u043D\u043E","very light":"\u043C\u043D\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u043B\u043E",vibrant:" \u044F\u0440\u043A\u043E",white:"\u0431\u044F\u043B\u043E",yellow:"\u0436\u044A\u043B\u0442\u043E","yellow green":"\u0436\u044A\u043B\u0442\u043E \u0437\u0435\u043B\u0435\u043D"},"cs-CZ":{alpha:"Alfa",black:"\u010Dern\xE1",blue:"Modr\xE1","blue purple":"modrofialov\xE1",brightness:"Jas",brown:"hn\u011Bd\xE1","brown yellow":"hn\u011Bdo\u017Elut\xE1",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tyrkysov\xE1","cyan blue":"tyrkysovomodr\xE1",dark:"tmav\xE1",gray:"\u0161ed\xE1",grayish:"na\u0161edl\xE1",green:"Zelen\xE1","green cyan":"zelenotyrkysov\xE1",hue:"Odst\xEDn",light:"sv\u011Btl\xE1",lightness:"Sv\u011Btlost",magenta:"purpurov\xE1","magenta pink":"purpurov\u011B r\u016F\u017Eov\xE1",orange:"oran\u017Eov\xE1","orange yellow":"oran\u017Eovo\u017Elut\xE1",pale:"bled\xE1",pink:"r\u016F\u017Eov\xE1","pink red":"r\u016F\u017Eovo\u010Derven\xE1",purple:"fialov\xE1","purple magenta":"fialov\u011B purpurov\xE1",red:"\u010Cerven\xE1","red orange":"\u010Dervenooran\u017Eov\xE1",saturation:"Sytost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} pr\u016Fhledn\xE9`,"very dark":"velmi tmav\xE1","very light":"velmi sv\u011Btl\xE1",vibrant:"z\xE1\u0159iv\xE1",white:"b\xEDl\xE1",yellow:"\u017Elut\xE1","yellow green":"\u017Elutozelen\xE1"},"da-DK":{alpha:"Alfa",black:"sort",blue:"Bl\xE5","blue purple":"bl\xE5lilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyan bl\xE5",dark:"m\xF8rk",gray:"gr\xE5",grayish:"gr\xE5lig",green:"Gr\xF8n","green cyan":"gr\xF8n cyan",hue:"Tone",light:"lys",lightness:"Lyshed",magenta:"magenta","magenta pink":"magenta pink",orange:"orange","orange yellow":"orangegul",pale:"bleg",pink:"lyser\xF8d","pink red":"lyser\xF8dlig r\xF8d",purple:"lilla","purple magenta":"lilla magenta",red:"R\xF8d","red orange":"r\xF8dorange",saturation:"Farvem\xE6tning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gennemsigtig`,"very dark":"meget m\xF8rk","very light":"meget lys",vibrant:"klar",white:"hvid",yellow:"gul","yellow green":"gulgr\xF8n"},"de-DE":{alpha:"Alpha",black:"Schwarz",blue:"Blau","blue purple":"Blaulila",brightness:"Helligkeit",brown:"Braun","brown yellow":"Braungelb",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Cyanblau",dark:"dunkles",gray:"Grau",grayish:"gr\xE4uliches",green:"Gr\xFCn","green cyan":"Gr\xFCncyan",hue:"Farbton",light:"helles",lightness:"Leuchtkraft",magenta:"Magenta","magenta pink":"Magentarosa",orange:"Orange","orange yellow":"Orangegelb",pale:"blasses",pink:"Rosa","pink red":"Rosarot",purple:"Lila","purple magenta":"Lilamagenta",red:"Rot","red orange":"Rotorange",saturation:"S\xE4ttigung",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, zu ${e.percentTransparent} transparent`,"very dark":"sehr dunkles","very light":"sehr helles",vibrant:"lebhaftes",white:"Wei\xDF",yellow:"Gelb","yellow green":"Gelbgr\xFCn"},"el-GR":{alpha:"\u0386\u03BB\u03C6\u03B1",black:"\u03BC\u03B1\u03CD\u03C1\u03BF",blue:"\u039C\u03C0\u03BB\u03B5","blue purple":"\u03BC\u03C0\u03BB\u03B5 \u03BC\u03C9\u03B2",brightness:"\u03A6\u03C9\u03C4\u03B5\u03B9\u03BD\u03CC\u03C4\u03B7\u03C4\u03B1",brown:"\u03BA\u03B1\u03C6\u03AD","brown yellow":"\u03BA\u03B1\u03C6\u03AD \u03BA\u03AF\u03C4\u03C1\u03B9\u03BD\u03BF",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u03BA\u03C5\u03B1\u03BD\u03CC","cyan blue":"\u03BA\u03C5\u03B1\u03BD\u03CC \u03BC\u03C0\u03BB\u03B5",dark:"\u03C3\u03BA\u03BF\u03CD\u03C1\u03BF",gray:"\u03B3\u03BA\u03C1\u03B9",grayish:"\u03B3\u03BA\u03C1\u03B9\u03B6\u03C9\u03C0\u03CC",green:"\u03A0\u03C1\u03AC\u03C3\u03B9\u03BD\u03BF","green cyan":"\u03C0\u03C1\u03AC\u03C3\u03B9\u03BD\u03BF \u03BA\u03C5\u03B1\u03BD\u03CC",hue:"\u03A4\u03CC\u03BD\u03BF\u03C2",light:"\u03B1\u03BD\u03BF\u03B9\u03C7\u03C4\u03CC",lightness:"\u03A6\u03C9\u03C4\u03B5\u03B9\u03BD\u03CC\u03C4\u03B7\u03C4\u03B1",magenta:"\u03BC\u03B1\u03C4\u03B6\u03AD\u03BD\u03C4\u03B1","magenta pink":"\u03BC\u03B1\u03C4\u03B6\u03AD\u03BD\u03C4\u03B1 \u03C1\u03BF\u03B6",orange:"\u03C0\u03BF\u03C1\u03C4\u03BF\u03BA\u03B1\u03BB\u03AF","orange yellow":"\u03C0\u03BF\u03C1\u03C4\u03BF\u03BA\u03B1\u03BB\u03AF \u03BA\u03AF\u03C4\u03C1\u03B9\u03BD\u03BF",pale:"\u03B1\u03BD\u03BF\u03B9\u03C7\u03C4\u03CC",pink:"\u03C1\u03BF\u03B6","pink red":"\u03C1\u03BF\u03B6 \u03BA\u03CC\u03BA\u03BA\u03B9\u03BD\u03BF",purple:"\u03BC\u03C9\u03B2","purple magenta":"\u03BC\u03C9\u03B2 \u03BC\u03B1\u03C4\u03B6\u03AD\u03BD\u03C4\u03B1",red:"\u039A\u03CC\u03BA\u03BA\u03B9\u03BD\u03BF","red orange":"\u03BA\u03CC\u03BA\u03BA\u03B9\u03BD\u03BF \u03C0\u03BF\u03C1\u03C4\u03BF\u03BA\u03B1\u03BB\u03AF",saturation:"\u039A\u03BF\u03C1\u03B5\u03C3\u03BC\u03CC\u03C2",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AD\u03C2`,"very dark":"\u03C0\u03BF\u03BB\u03CD \u03C3\u03BA\u03BF\u03CD\u03C1\u03BF","very light":"\u03C0\u03BF\u03BB\u03CD \u03B1\u03BD\u03BF\u03B9\u03C7\u03C4\u03CC",vibrant:"\u03AD\u03BD\u03C4\u03BF\u03BD\u03BF",white:"\u03BB\u03B5\u03C5\u03BA\u03CC",yellow:"\u03BA\u03AF\u03C4\u03C1\u03B9\u03BD\u03BF","yellow green":"\u03BA\u03AF\u03C4\u03C1\u03B9\u03BD\u03BF \u03C0\u03C1\u03AC\u03C3\u03B9\u03BD\u03BF"},"en-US":{hue:"Hue",saturation:"Saturation",lightness:"Lightness",brightness:"Brightness",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"very dark",dark:"dark",light:"light","very light":"very light",pale:"pale",grayish:"grayish",vibrant:"vibrant",black:"black",white:"white",gray:"gray",pink:"pink","pink red":"pink red","red orange":"red orange",brown:"brown",orange:"orange","orange yellow":"orange yellow","brown yellow":"brown yellow",yellow:"yellow","yellow green":"yellow green","green cyan":"green cyan",cyan:"cyan","cyan blue":"cyan blue","blue purple":"blue purple",purple:"purple","purple magenta":"purple magenta",magenta:"magenta","magenta pink":"magenta pink"},"es-ES":{alpha:"Alpha",black:"negro",blue:"Azul","blue purple":"p\xFArpura azulado",brightness:"Brillo",brown:"marr\xF3n","brown yellow":"amarillo amarronado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"azul cian",dark:"oscuro",gray:"gris",grayish:"gris\xE1ceo",green:"Verde","green cyan":"cian verdoso",hue:"Tono",light:"claro",lightness:"Luminosidad",magenta:"magenta","magenta pink":"rosa magenta",orange:"naranja","orange yellow":"amarillo anaranjado",pale:"p\xE1lido",pink:"rosa","pink red":"rojo rosado",purple:"morado","purple magenta":"magenta viol\xE1ceo",red:"Rojo","red orange":"naranja rojizo",saturation:"Saturaci\xF3n",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muy oscuro","very light":"muy claro",vibrant:"intenso",white:"blanco",yellow:"amarillo","yellow green":"verde amarillento"},"et-EE":{alpha:"Alfa",black:"must",blue:"Sinine","blue purple":"sinakaslilla",brightness:"Heledus",brown:"pruun","brown yellow":"pruunikaskollane",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ts\xFCaan","cyan blue":"ts\xFCaansinine",dark:"tume",gray:"hall",grayish:"hallikas",green:"Roheline","green cyan":"ts\xFCaanroheline",hue:"V\xE4rv",light:"valgus",lightness:"Valgus",magenta:"magentapunane","magenta pink":"magentaroosa",orange:"oran\u017E","orange yellow":"oran\u017Eikaskollane",pale:"kahvatu",pink:"roosa","pink red":"vaarikapunane",purple:"lilla","purple magenta":"purpurne magenta",red:"Punane","red orange":"punakasoran\u017E",saturation:"K\xFCllastus",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} l\xE4bipaistev`,"very dark":"v\xE4ga tume","very light":"v\xE4ga hele",vibrant:"ere",white:"valge",yellow:"kollane","yellow green":"kollakasroheline"},"fi-FI":{alpha:"Alpha",black:"musta",blue:"Sininen","blue purple":"sinivioletti",brightness:"Kirkkaus",brown:"ruskea","brown yellow":"ruskeankeltainen",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"syaani","cyan blue":"syaaninsininen",dark:"tumma",gray:"harmaa",grayish:"harmahtava",green:"Vihre\xE4","green cyan":"vihre\xE4nsyaani",hue:"S\xE4vy",light:"vaalea",lightness:"Valom\xE4\xE4r\xE4",magenta:"magenta","magenta pink":"magentapinkki",orange:"oranssi","orange yellow":"oranssinkeltainen",pale:"vaalea",pink:"pinkki","pink red":"vaaleanpunainen",purple:"violetti","purple magenta":"violettimagenta",red:"Punainen","red orange":"punaoranssi",saturation:"V\xE4rikyll\xE4isyys",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} l\xE4pin\xE4kyv\xE4`,"very dark":"hyvin tumma","very light":"eritt\xE4in vaalea",vibrant:"eloisa",white:"valkea",yellow:"keltainen","yellow green":"keltavihre\xE4"},"fr-FR":{alpha:"Alpha",black:"Noir",blue:"Bleu","blue purple":"Violet bleu",brightness:"Luminosit\xE9",brown:"Brun","brown yellow":"Jaune brun",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Bleu cyan",dark:"Sombre",gray:"Gris",grayish:"Gris\xE2tre",green:"Vert","green cyan":"Cyan vert",hue:"Teinte",light:"Clair",lightness:"Luminosit\xE9",magenta:"Magenta","magenta pink":"Rose magenta",orange:"Orange","orange yellow":"Jaune orang\xE9",pale:"P\xE2le",pink:"Rose","pink red":"Rouge ros\xE9",purple:"Violet","purple magenta":"Magenta violet",red:"Rouge","red orange":"Orange rouge",saturation:"Saturation",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"Tr\xE8s sombre","very light":"Tr\xE8s clair",vibrant:"Vif",white:"Blanc",yellow:"Jaune","yellow green":"Vert jaune"},"he-IL":{alpha:"\u05D0\u05DC\u05E4\u05D0",black:"\u05E9\u05D7\u05D5\u05E8",blue:"\u05DB\u05D7\u05D5\u05DC","blue purple":"\u05DB\u05D7\u05D5\u05DC \u05E1\u05D2\u05D5\u05DC",brightness:"\u05D1\u05D4\u05D9\u05E8\u05D5\u05EA",brown:"\u05D7\u05D5\u05DD","brown yellow":"\u05D7\u05D5\u05DD \u05E6\u05D4\u05D5\u05D1",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u05D8\u05D5\u05E8\u05E7\u05D9\u05D6","cyan blue":"\u05DB\u05D7\u05D5\u05DC \u05E6\u05D9\u05D0\u05DF",dark:"\u05DB\u05D4\u05D4",gray:"\u05D0\u05E4\u05D5\u05E8",grayish:"\u05D0\u05E4\u05E8\u05E4\u05E8",green:"\u05D9\u05E8\u05D5\u05E7","green cyan":"\u05E6\u05D9\u05D0\u05DF \u05D9\u05E8\u05D5\u05E7",hue:"\u05D2\u05D5\u05D5\u05DF",light:"\u05D0\u05D5\u05E8",lightness:"\u05DB\u05DE\u05D5\u05EA \u05D0\u05D5\u05E8",magenta:"\u05DE\u05D2'\u05E0\u05D8\u05D4","magenta pink":"\u05D5\u05E8\u05D5\u05D3 \u05DE\u05D2'\u05E0\u05D8\u05D4",orange:"\u05DB\u05EA\u05D5\u05DD","orange yellow":"\u05DB\u05EA\u05D5\u05DD \u05E6\u05D4\u05D5\u05D1",pale:"\u05D7\u05D9\u05D5\u05D5\u05E8",pink:"\u05D5\u05E8\u05D5\u05D3","pink red":"\u05D5\u05E8\u05D5\u05D3 \u05D0\u05D3\u05D5\u05DD",purple:"\u05E1\u05D2\u05D5\u05DC","purple magenta":"\u05DE\u05D2'\u05E0\u05D8\u05D4 \u05E1\u05D2\u05D5\u05DC",red:"\u05D0\u05D3\u05D5\u05DD","red orange":"\u05DB\u05EA\u05D5\u05DD \u05D0\u05D3\u05D5\u05DD",saturation:"\u05E8\u05D5\u05D5\u05D9\u05D4",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u05E9\u05E7\u05D5\u05E3`,"very dark":"\u05DB\u05D4\u05D4 \u05DE\u05D0\u05D5\u05D3","very light":"\u05D1\u05D4\u05D9\u05E8 \u05DE\u05D0\u05D5\u05D3",vibrant:"\u05EA\u05D5\u05E1\u05E1",white:"\u05DC\u05D1\u05DF",yellow:"\u05E6\u05D4\u05D5\u05D1","yellow green":"\u05E6\u05D4\u05D5\u05D1 \u05D9\u05E8\u05D5\u05E7"},"hr-HR":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavo ljubi\u010Dasta",brightness:"Svjetlina",brown:"sme\u0111a","brown yellow":"sme\u0111e \u017Euta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasto",green:"Zelena","green cyan":"zelena cijan",hue:"Nijansa",light:"svjetlo",lightness:"Osvijetljenost",magenta:"magenta","magenta pink":"magentno ru\u017Ei\u010Dasta",orange:"naran\u010Dasta","orange yellow":"naran\u010Dasto \u017Euta",pale:"blijeda",pink:"ru\u017Ei\u010Dasta","pink red":"ru\u017Ei\u010Dasto crvena",purple:"ljubi\u010Dasta","purple magenta":"ljubi\u010Dasta magenta",red:"Crvena","red orange":"crveno naran\u010Dasta",saturation:"Zasi\u0107enost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirnosti`,"very dark":"jako tamna","very light":"vrlo svijetlo",vibrant:"vibrantna",white:"bijela",yellow:"\u017Euto","yellow green":"\u017Euto zelena"},"hu-HU":{alpha:"Alfa",black:"fekete",blue:"K\xE9k","blue purple":"k\xE9k lila",brightness:"F\xE9nyess\xE9g",brown:"barna","brown yellow":"barna s\xE1rga",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ci\xE1nk\xE9k","cyan blue":"ci\xE1nk\xE9k",dark:"s\xF6t\xE9t",gray:"sz\xFCrke",grayish:"sz\xFCrk\xE9s",green:"Z\xF6ld","green cyan":"z\xF6ld ci\xE1nk\xE9k",hue:"Sz\xEDn\xE1rnyalat",light:"vil\xE1gos",lightness:"Vil\xE1goss\xE1g",magenta:"b\xEDbor","magenta pink":"b\xEDbor r\xF3zsasz\xEDn",orange:"narancs","orange yellow":"narancss\xE1rga",pale:"halv\xE1ny",pink:"r\xF3zsasz\xEDn","pink red":"r\xF3zsasz\xEDn piros",purple:"lila","purple magenta":"lila b\xEDbor",red:"Piros","red orange":"piros narancs",saturation:"Tel\xEDtetts\xE9g",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \xE1tl\xE1tsz\xF3`,"very dark":"nagyon s\xF6t\xE9t","very light":"nagyon vil\xE1gos",vibrant:"\xE9l\xE9nk",white:"feh\xE9r",yellow:"s\xE1rga","yellow green":"s\xE1rga z\xF6ld"},"it-IT":{alpha:"Alfa",black:"nero",blue:"Blu","blue purple":"blu viola",brightness:"Luminosit\xE0",brown:"marrone","brown yellow":"giallo bruno",colorName:e=>`${e.hue} ${e.chroma} ${e.lightness}`,cyan:"ciano","cyan blue":"blu ciano",dark:"scuro",gray:"grigio",grayish:"grigiastro",green:"Verde","green cyan":"verde ciano",hue:"Tonalit\xE0",light:"chiaro",lightness:"Luminosit\xE0",magenta:"magenta","magenta pink":"rosa magenta",orange:"arancio","orange yellow":"giallo arancio",pale:"tenue",pink:"rosa","pink red":"rosa rosso",purple:"viola","purple magenta":"viola magenta",red:"Rosso","red orange":"rosso arancio",saturation:"Saturazione",transparentColorName:e=>`${e.hue} ${e.chroma} ${e.lightness}, trasparenza ${e.percentTransparent}`,"very dark":"molto scuro","very light":"molto chiaro",vibrant:"vivace",white:"bianco",yellow:"giallo","yellow green":"giallo verde"},"ja-JP":{alpha:"\u30A2\u30EB\u30D5\u30A1",black:"\u30D6\u30E9\u30C3\u30AF",blue:"\u9752","blue purple":"\u30D6\u30EB\u30FC\u30D1\u30FC\u30D7\u30EB",brightness:"\u660E\u308B\u3055",brown:"\u30D6\u30E9\u30A6\u30F3","brown yellow":"\u30D6\u30E9\u30A6\u30F3\u30A4\u30A8\u30ED\u30FC",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u30B7\u30A2\u30F3","cyan blue":"\u30B7\u30A2\u30F3\u30D6\u30EB\u30FC",dark:"\u30C0\u30FC\u30AF",gray:"\u30B0\u30EC\u30FC",grayish:"\u30B0\u30EC\u30A4\u30C3\u30B7\u30E5",green:"\u7DD1","green cyan":"\u30B0\u30EA\u30FC\u30F3\u30B7\u30A2\u30F3",hue:"\u8272\u76F8",light:"\u30E9\u30A4\u30C8",lightness:"\u660E\u5EA6",magenta:"\u30DE\u30BC\u30F3\u30BF","magenta pink":"\u30DE\u30BC\u30F3\u30BF\u30D4\u30F3\u30AF",orange:"\u30AA\u30EC\u30F3\u30B8","orange yellow":"\u30AA\u30EC\u30F3\u30B8\u30A4\u30A8\u30ED\u30FC",pale:"\u30DA\u30FC\u30EB",pink:"\u30D4\u30F3\u30AF","pink red":"\u30D4\u30F3\u30AF\u30EC\u30C3\u30C9",purple:"\u30D1\u30FC\u30D7\u30EB","purple magenta":"\u30D1\u30FC\u30D7\u30EB\u30DE\u30BC\u30F3\u30BF",red:"\u8D64","red orange":"\u30EC\u30C3\u30C9\u30AA\u30EC\u30F3\u30B8",saturation:"\u5F69\u5EA6",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u900F\u660E`,"very dark":"\u6700\u3082\u6697\u3044","very light":"\u30D9\u30EA\u30FC\u30E9\u30A4\u30C8",vibrant:"\u9BAE\u3084\u304B",white:"\u30DB\u30EF\u30A4\u30C8",yellow:"\u30A4\u30A8\u30ED\u30FC","yellow green":"\u30A4\u30A8\u30ED\u30FC\u30B0\u30EA\u30FC\u30F3"},"ko-KR":{alpha:"\uC54C\uD30C",black:"\uAC80\uC740\uC0C9",blue:"\uD30C\uB791","blue purple":"\uCCAD\uC790\uC0C9",brightness:"\uBA85\uB3C4",brown:"\uAC08\uC0C9","brown yellow":"\uD669\uAC08\uC0C9",colorName:e=>`${e.lightness}, ${e.chroma}, ${e.hue}`,cyan:"\uCCAD\uB85D\uC0C9","cyan blue":"\uCCAD\uB85D\uC0C9",dark:"\uB2E4\uD06C",gray:"\uD68C\uC0C9",grayish:"\uD68C\uAC08\uC0C9",green:"\uCD08\uB85D","green cyan":"\uCCAD\uB85D\uC0C9",hue:"\uC0C9\uC870",light:"\uB77C\uC774\uD2B8",lightness:"\uBC1D\uAE30",magenta:"\uC790\uD64D\uC0C9","magenta pink":"\uB9C8\uC820\uD0C0 \uD551\uD06C",orange:"\uC8FC\uD669\uC0C9","orange yellow":"\uBD88\uADF8\uC2A4\uB984\uD55C \uB178\uB791",pale:"\uD759\uC0C9",pink:"\uBD84\uD64D\uC0C9","pink red":"\uD551\uD06C \uB808\uB4DC",purple:"\uC790\uC8FC\uC0C9","purple magenta":"\uBCF4\uB77C\uBE5B \uC790\uD64D\uC0C9",red:"\uBE68\uAC15","red orange":"\uBD89\uC740 \uC8FC\uD669\uC0C9",saturation:"\uCC44\uB3C4",transparentColorName:e=>`${e.lightness}, ${e.chroma}, ${e.hue}, ${e.percentTransparent} \uD22C\uBA85\uB3C4`,"very dark":"\uB9E4\uC6B0 \uC5B4\uB450\uC6B4","very light":"\uB9E4\uC6B0 \uC5F0\uD568",vibrant:"\uAC15\uB82C\uD55C",white:"\uD770\uC0C9",yellow:"\uB178\uB780\uC0C9","yellow green":"\uC5F0\uB450\uC0C9"},"lt-LT":{alpha:"Alfa",black:"juoda",blue:"M\u0117lyna","blue purple":"melsvai violetin\u0117",brightness:"Ry\u0161kumas",brown:"ruda","brown yellow":"rusvai geltona",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u017Ealsvai m\u0117lyna","cyan blue":"\u017Ealsvai m\u0117lyna",dark:"tamsi",gray:"pilka",grayish:"pilk\u0161va",green:"\u017Dalia","green cyan":"\u017Ealsvai m\u0117lyna",hue:"Atspalvis",light:"\u0161viesi",lightness:"\u0160viesumas",magenta:"rausvai raudona","magenta pink":"purpurin\u0117",orange:"oran\u017Ein\u0117","orange yellow":"oran\u017Einio atspalvio geltona",pale:"bly\u0161ki",pink:"ro\u017Ein\u0117","pink red":"ro\u017Ein\u0117 raudona",purple:"violetin\u0117","purple magenta":"purpurin\u0117 rausvai raudona",red:"Raudona","red orange":"rausvai oran\u017Ein\u0117",saturation:"\u012Esotinimas",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} skaidri`,"very dark":"labai tamsi","very light":"labai \u0161viesi",vibrant:"ry\u0161ki",white:"balta",yellow:"geltona","yellow green":"gelsvai \u017Ealia"},"lv-LV":{alpha:"Alfa",black:"melns",blue:"Zila","blue purple":"zili violets",brightness:"Spilgtums",brown:"br\u016Bns","brown yellow":"br\u016Bni dzeltens",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ci\u0101ns","cyan blue":"ci\u0101na zils",dark:"tum\u0161s",gray:"pel\u0113ks",grayish:"pel\u0113c\u012Bgs",green:"Za\u013Ca","green cyan":"za\u013C\u0161 ci\u0101ns",hue:"Nokr\u0101sa",light:"gai\u0161s",lightness:"Gai\u0161ums",magenta:"fuksiju","magenta pink":"fuksiju roz\u0101",orange:"oran\u017Es","orange yellow":"oran\u017Ei dzeltens",pale:"b\u0101ls",pink:"roz\u0101","pink red":"roz\u012Bgi sarkans",purple:"violets","purple magenta":"violets fuksiju",red:"Sarkana","red orange":"sarkan\u012Bgi oran\u017Es",saturation:"Pies\u0101tin\u0101jums",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} caursp\u012Bd\u012Bgs`,"very dark":"\u013Coti tum\u0161s","very light":"\u013Coti gai\u0161s",vibrant:"ko\u0161s",white:"balts",yellow:"dzeltens","yellow green":"dzelteni za\u013C\u0161"},"nb-NO":{alpha:"Alfa",black:"svart",blue:"Bl\xE5","blue purple":"bl\xE5lilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanbl\xE5",dark:"m\xF8rk",gray:"gr\xE5",grayish:"gr\xE5aktig",green:"Gr\xF8nn","green cyan":"gr\xF8nncyan",hue:"Fargetone",light:"lys",lightness:"Lyshet",magenta:"magenta","magenta pink":"magentarosa",orange:"oransje","orange yellow":"oransjegul",pale:"blek",pink:"rosa","pink red":"rosar\xF8d",purple:"lilla","purple magenta":"lillamagenta",red:"R\xF8d","red orange":"r\xF8doransje",saturation:"Metning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gjennomsiktig`,"very dark":"sv\xE6rt m\xF8rk","very light":"sv\xE6rt lys",vibrant:"levende",white:"hvit",yellow:"gul","yellow green":"gulgr\xF8nn"},"nl-NL":{alpha:"Alfa",black:"zwart",blue:"Blauw","blue purple":"paarsblauw",brightness:"Helderheid",brown:"bruin","brown yellow":"bruingeel",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyaan","cyan blue":"cyaanblauw",dark:"donker",gray:"grijs",grayish:"grijsachtig",green:"Groen","green cyan":"cyaangroen",hue:"Kleurtoon",light:"licht",lightness:"Lichtsterkte",magenta:"magenta","magenta pink":"magentaroze",orange:"oranje","orange yellow":"oranjegeel",pale:"bleek",pink:"roze","pink red":"rozerood",purple:"paars","purple magenta":"magentapaars",red:"Rood","red orange":"roodoranje",saturation:"Verzadiging",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparant`,"very dark":"heel donker","very light":"heel licht",vibrant:"levendig",white:"wit",yellow:"geel","yellow green":"geelgroen"},"pl-PL":{alpha:"Alfa",black:"czarny",blue:"Niebieski","blue purple":"niebiesko-fioletowy",brightness:"Jasno\u015B\u0107",brown:"br\u0105zowy","brown yellow":"br\u0105zowo-\u017C\xF3\u0142ty",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyjanowy","cyan blue":"cyjanowo-niebieski",dark:"ciemny",gray:"szary",grayish:"szarawy",green:"Zielony","green cyan":"zielono-cyjanowy",hue:"Odcie\u0144",light:"jasny",lightness:"Jaskrawo\u015B\u0107",magenta:"purpurowy","magenta pink":"purpurowo-r\xF3\u017Cowy",orange:"pomara\u0144czowy","orange yellow":"pomara\u0144czowo-\u017C\xF3\u0142ty",pale:"blady",pink:"r\xF3\u017Cowy","pink red":"r\xF3\u017Cowo-czerwony",purple:"fioletowy","purple magenta":"fioletowo-purpurowy",red:"Czerwony","red orange":"czerwono-pomara\u0144czowy",saturation:"Nasycenie",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} przezroczysto\u015Bci`,"very dark":"bardzo ciemny","very light":"bardzo jasny",vibrant:"intensywny",white:"bia\u0142y",yellow:"\u017C\xF3\u0142ty","yellow green":"\u017C\xF3\u0142to-zielony"},"pt-BR":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"roxo azulado",brightness:"Brilho",brown:"marrom","brown yellow":"marrom amarelado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinza",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Matiz",light:"claro",lightness:"Luminosidade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo alaranjado",pale:"p\xE1lido",pink:"rosa","pink red":"rosa avermelhado",purple:"roxo","purple magenta":"roxo-magenta",red:"Vermelho","red orange":"laranja avermelhado",saturation:"Satura\xE7\xE3o",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde amarelado"},"pt-PT":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"azul-p\xFArpura",brightness:"Luminosidade",brown:"castanho","brown yellow":"amarelo-castanho",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinzento",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Tonalidade",light:"claro",lightness:"Claridade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo-laranja",pale:"p\xE1lido",pink:"cor-de-rosa","pink red":"vermelho-rosa",purple:"p\xFArpura","purple magenta":"p\xFArpura-magenta",red:"Vermelho","red orange":"laranja-vermelho",saturation:"Satura\xE7\xE3o",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde-amarelo"},"ro-RO":{alpha:"Alfa",black:"negru",blue:"Albastru","blue purple":"albastru-violet",brightness:"Luminozitate",brown:"maro","brown yellow":"galben maro",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"bleu","cyan blue":"albastru-bleu",dark:"\xEEnchis",gray:"gri",grayish:"cenu\u0219iu",green:"Verde","green cyan":"verde bleu",hue:"Nuan\u021B\u0103",light:"deschis",lightness:"Luminozitate",magenta:"fucsia","magenta pink":"roz-fucsia",orange:"portocaliu","orange yellow":"galben-portocaliu",pale:"pal",pink:"roz","pink red":"roz-ro\u0219u",purple:"violet","purple magenta":"violet-fucsia",red:"Ro\u0219u","red orange":"portocaliu-ro\u0219u",saturation:"Satura\u021Bie",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"foarte \xEEnchis","very light":"foarte deschis",vibrant:"plin de via\u021B\u0103",white:"alb",yellow:"galben","yellow green":"galben-verde"},"ru-RU":{alpha:"\u0410\u043B\u044C\u0444\u0430",black:"\u0447\u0435\u0440\u043D\u044B\u0439",blue:"\u0421\u0438\u043D\u0438\u0439","blue purple":"\u0441\u0438\u043D\u0435-\u0444\u0438\u043E\u043B\u0435\u0442\u043E\u0432\u044B\u0439",brightness:"\u042F\u0440\u043A\u043E\u0441\u0442\u044C",brown:"\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u044B\u0439","brown yellow":"\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u043E-\u0436\u0435\u043B\u0442\u044B\u0439",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u0433\u043E\u043B\u0443\u0431\u043E\u0439","cyan blue":"\u0446\u0432\u0435\u0442 \u043C\u043E\u0440\u0441\u043A\u043E\u0439 \u0432\u043E\u043B\u043D\u044B",dark:"\u0442\u0435\u043C\u043D\u044B\u0439",gray:"\u0441\u0435\u0440\u044B\u0439",grayish:"\u0441\u0435\u0440\u043E\u0432\u0430\u0442\u044B\u0439",green:"\u0417\u0435\u043B\u0435\u043D\u044B\u0439","green cyan":"\u0441\u0438\u043D\u0435-\u0437\u0435\u043B\u0435\u043D\u044B\u0439",hue:"\u041E\u0442\u0442\u0435\u043D\u043E\u043A",light:"\u0441\u0432\u0435\u0442\u043B\u044B\u0439",lightness:"\u041E\u0441\u0432\u0435\u0449\u0435\u043D\u043D\u043E\u0441\u0442\u044C",magenta:"\u043F\u0443\u0440\u043F\u0443\u0440\u043D\u044B\u0439","magenta pink":"\u043F\u0443\u0440\u043F\u0443\u0440\u043D\u043E-\u0440\u043E\u0437\u043E\u0432\u044B\u0439",orange:"\u043E\u0440\u0430\u043D\u0436\u0435\u0432\u044B\u0439","orange yellow":"\u043E\u0440\u0430\u043D\u0436\u0435\u0432\u043E-\u0436\u0435\u043B\u0442\u044B\u0439",pale:"\u0431\u043B\u0435\u0434\u043D\u044B\u0439",pink:"\u0440\u043E\u0437\u043E\u0432\u044B\u0439","pink red":"\u0440\u043E\u0437\u043E\u0432\u043E-\u043A\u0440\u0430\u0441\u043D\u044B\u0439",purple:"\u0444\u0438\u043E\u043B\u0435\u0442\u043E\u0432\u044B\u0439","purple magenta":"\u0444\u0438\u043E\u043B\u0435\u0442\u043E\u0432\u043E-\u043F\u0443\u0440\u043F\u0443\u0440\u043D\u044B\u0439",red:"\u041A\u0440\u0430\u0441\u043D\u044B\u0439","red orange":"\u043A\u0440\u0430\u0441\u043D\u043E-\u043E\u0440\u0430\u043D\u0436\u0435\u0432\u044B\u0439",saturation:"\u041D\u0430\u0441\u044B\u0449\u0435\u043D\u043D\u043E\u0441\u0442\u044C",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, \u043F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439 \u043D\u0430 ${e.percentTransparent}`,"very dark":"\u043E\u0447\u0435\u043D\u044C \u0442\u0435\u043C\u043D\u044B\u0439","very light":"\u043E\u0447\u0435\u043D\u044C \u0441\u0432\u0435\u0442\u043B\u044B\u0439",vibrant:"\u044F\u0440\u043A\u0438\u0439",white:"\u0431\u0435\u043B\u044B\u0439",yellow:"\u0436\u0435\u043B\u0442\u044B\u0439","yellow green":"\u0436\u0435\u043B\u0442\u043E-\u0437\u0435\u043B\u0435\u043D\u044B\u0439"},"sk-SK":{alpha:"Alfa",black:"\u010Dierna",blue:"Modr\xE1","blue purple":"modrofialov\xE1",brightness:"Jas",brown:"hned\xE1","brown yellow":"hnedo\u017Elt\xE1",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"az\xFArov\xE1","cyan blue":"az\xFArov\xE1 modr\xE1",dark:"tmav\xE1",gray:"siv\xE1",grayish:"sivast\xE1",green:"Zelen\xE1","green cyan":"zelen\xE1 az\xFArov\xE1",hue:"Odtie\u0148",light:"svetl\xE1",lightness:"Svetlos\u0165",magenta:"purpurov\xE1","magenta pink":"ru\u017Eov\xE1 purpurov\xE1",orange:"oran\u017Eov\xE1","orange yellow":"oran\u017Eovo\u017Elt\xE1",pale:"bled\xE1",pink:"ru\u017Eov\xE1","pink red":"ru\u017Eovo\u010Derven\xE1",purple:"fialov\xE1","purple magenta":"fialov\xE1 purpurov\xE1",red:"\u010Cerven\xE1","red orange":"\u010Dervenooran\u017Eov\xE1",saturation:"S\xFDtos\u0165",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prieh\u013Eadn\xE1`,"very dark":"ve\u013Emi tmav\xE1","very light":"ve\u013Emi svetl\xE1",vibrant:"energick\xE1",white:"biela",yellow:"\u017Elt\xE1","yellow green":"\u017Eltozelen\xE1"},"sl-SI":{alpha:"Alfa",black:"\u010Drna",blue:"Modra","blue purple":"modro vijoli\u010Dna",brightness:"Svetlost",brown:"rjava","brown yellow":"rjavo rumena",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"cian modra",dark:"temna",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zelena cian",hue:"Barva",light:"svetla",lightness:"Lahkost",magenta:"\u0161krlatna","magenta pink":"\u0161krlatno roza",orange:"oran\u017Ena","orange yellow":"oran\u017Eno rumena",pale:"bleda",pink:"roza","pink red":"roza rde\u010Da",purple:"vijoli\u010Dna","purple magenta":"vijoli\u010Dno \u0161krlatna",red:"Rde\u010Da","red orange":"rde\u010De oran\u017Ena",saturation:"Nasi\u010Denost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozorna`,"very dark":"zelo temna","very light":"zelo svetla",vibrant:"\u017Eivahna",white:"bela",yellow:"rumena","yellow green":"rumeno zelena"},"sr-SP":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavoljubi\u010Dasta",brightness:"Osvetljenost",brown:"sme\u0111a","brown yellow":"sme\u0111e\u017Euta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zeleno cijan",hue:"Nijansa",light:"svetla",lightness:"Osvetljenje",magenta:"purpurnocrvena","magenta pink":"magenta ru\u017Ei\u010Dasta",orange:"narand\u017Easta","orange yellow":"narand\u017Easto\u017Euta",pale:"bledo",pink:"ru\u017Ei\u010Dasta","pink red":"ru\u017Ei\u010Dastocrvena",purple:"ljubi\u010Dasta","purple magenta":"ljubi\u010Dasta magenta",red:"Crvena","red orange":"crvenonarand\u017Easta",saturation:"Zasi\u0107enje",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirna`,"very dark":"veoma tamno","very light":"vrlo svetlo",vibrant:"\u017Eivopisna",white:"bela",yellow:"\u017Euto","yellow green":"\u017Eutozelena"},"sv-SE":{alpha:"Alfa",black:"svart",blue:"Bl\xE5tt","blue purple":"bl\xE5lila",brightness:"Ljusstyrka",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanbl\xE5",dark:"m\xF6rk",gray:"gr\xE5",grayish:"gr\xE5aktig",green:"Gr\xF6nt","green cyan":"gr\xF6n cyan",hue:"Nyans",light:"ljus",lightness:"Ljushet",magenta:"magenta","magenta pink":"magentarosa",orange:"orange","orange yellow":"orangegul",pale:"blek",pink:"rosa","pink red":"rosar\xF6d",purple:"lila","purple magenta":"lila magenta",red:"R\xF6tt","red orange":"r\xF6dorange",saturation:"M\xE4ttnad",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} genomskinlig`,"very dark":"mycket m\xF6rk","very light":"mycket ljus",vibrant:"livfull",white:"vit",yellow:"gul","yellow green":"gulgr\xF6n"},"tr-TR":{alpha:"Alfa",black:"siyah",blue:"Mavi","blue purple":"mavi mor",brightness:"Parlakl\u0131k",brown:"kahverengi","brown yellow":"kahverengi sar\u0131",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"camg\xF6be\u011Fi","cyan blue":"camg\xF6be\u011Fi mavi",dark:"koyu",gray:"gri",grayish:"grimsi",green:"Ye\u015Fil","green cyan":"ye\u015Fil camg\xF6be\u011Fi",hue:"Ton",light:"a\xE7\u0131k",lightness:"Canl\u0131l\u0131k",magenta:"eflatun","magenta pink":"eflatun pembe",orange:"turuncu","orange yellow":"turuncu sar\u0131",pale:"solgun",pink:"pembe","pink red":"pembe k\u0131rm\u0131z\u0131",purple:"mor","purple magenta":"mor eflatun",red:"K\u0131rm\u0131z\u0131","red orange":"k\u0131rm\u0131z\u0131 portakal",saturation:"Doygunluk",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} saydam`,"very dark":"\xE7ok koyu","very light":"\xE7ok a\xE7\u0131k",vibrant:"canl\u0131",white:"beyaz",yellow:"sar\u0131","yellow green":"sar\u0131 ye\u015Fil"},"uk-UA":{alpha:"\u0410\u043B\u044C\u0444\u0430",black:"\u0447\u043E\u0440\u043D\u0438\u0439",blue:"\u0421\u0438\u043D\u0456\u0439","blue purple":"\u0441\u0438\u043D\u044C\u043E-\u0444\u0456\u043E\u043B\u0435\u0442\u043E\u0432\u0438\u0439",brightness:"\u042F\u0441\u043A\u0440\u0430\u0432\u0456\u0441\u0442\u044C",brown:"\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u0438\u0439","brown yellow":"\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u043E-\u0436\u043E\u0432\u0442\u0438\u0439",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u0431\u043B\u0430\u043A\u0438\u0442\u043D\u0438\u0439","cyan blue":"\u0441\u0438\u043D\u044C\u043E-\u0431\u043B\u0430\u043A\u0438\u0442\u043D\u0438\u0439",dark:"\u0442\u0435\u043C\u043D\u0438\u0439",gray:"\u0441\u0456\u0440\u0438\u0439",grayish:"\u0441\u0456\u0440\u0443\u0432\u0430\u0442\u0438\u0439",green:"\u0417\u0435\u043B\u0435\u043D\u0438\u0439","green cyan":"\u0437\u0435\u043B\u0435\u043D\u043E-\u0431\u043B\u0430\u043A\u0438\u0442\u043D\u0438\u0439",hue:"\u0422\u043E\u043D",light:"\u0441\u0432\u0456\u0442\u043B\u0438\u0439",lightness:"\u041E\u0441\u0432\u0456\u0442\u043B\u0435\u043D\u0456\u0441\u0442\u044C",magenta:"\u043F\u0443\u0440\u043F\u0443\u0440\u043E\u0432\u0438\u0439","magenta pink":"\u043F\u0443\u0440\u043F\u0443\u0440\u043E\u0432\u043E-\u0440\u043E\u0436\u0435\u0432\u0438\u0439",orange:"\u043F\u043E\u043C\u0430\u0440\u0430\u043D\u0447\u0435\u0432\u0438\u0439","orange yellow":"\u043F\u043E\u043C\u0430\u0440\u0430\u043D\u0447\u0435\u0432\u043E-\u0436\u043E\u0432\u0442\u0438\u0439",pale:"\u0431\u043B\u0456\u0434\u0438\u0439",pink:"\u0440\u043E\u0436\u0435\u0432\u0438\u0439","pink red":"\u0440\u043E\u0436\u0435\u0432\u043E-\u0447\u0435\u0440\u0432\u043E\u043D\u0438\u0439",purple:"\u0444\u0456\u043E\u043B\u0435\u0442\u043E\u0432\u0438\u0439","purple magenta":"\u0444\u0456\u043E\u043B\u0435\u0442\u043E\u0432\u043E-\u043F\u0443\u0440\u043F\u0443\u0440\u043E\u0432\u0438\u0439",red:"\u0427\u0435\u0440\u0432\u043E\u043D\u0438\u0439","red orange":"\u0447\u0435\u0440\u0432\u043E\u043D\u043E-\u043F\u043E\u043C\u0430\u0440\u0430\u043D\u0447\u0435\u0432\u0438\u0439",saturation:"\u041D\u0430\u0441\u0438\u0447\u0435\u043D\u0456\u0441\u0442\u044C",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, \u043F\u0440\u043E\u0437\u043E\u0440\u0438\u0439 \u043D\u0430 ${e.percentTransparent}`,"very dark":"\u0434\u0443\u0436\u0435 \u0442\u0435\u043C\u043D\u0438\u0439","very light":"\u0434\u0443\u0436\u0435 \u0441\u0432\u0456\u0442\u043B\u0438\u0439",vibrant:"\u044F\u0441\u043A\u0440\u0430\u0432\u0438\u0439",white:"\u0431\u0456\u043B\u0438\u0439",yellow:"\u0436\u043E\u0432\u0442\u0438\u0439","yellow green":"\u0436\u043E\u0432\u0442\u043E-\u0437\u0435\u043B\u0435\u043D\u0438\u0439"},"zh-CN":{alpha:"Alpha",black:"\u9ED1\u8272",blue:"\u84DD\u8272","blue purple":"\u84DD\u7D2B\u8272",brightness:"\u4EAE\u5EA6",brown:"\u68D5\u8272\u7684","brown yellow":"\u68D5\u9EC4\u8272",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u84DD\u7EFF\u8272","cyan blue":"\u9752\u84DD\u8272",dark:"\u6DF1\u8272",gray:"\u7070\u8272",grayish:"\u6D45\u7070\u8272\u7684",green:"\u7EFF\u8272","green cyan":"\u7EFF\u9752\u8272",hue:"\u8272\u76F8",light:"\u6D45\u8272",lightness:"\u660E\u4EAE\u5EA6",magenta:"\u7D2B\u7EA2\u8272","magenta pink":"\u7D2B\u7C89\u8272",orange:"\u6A59\u8272","orange yellow":"\u6A59\u9EC4\u8272",pale:"\u82CD\u767D\u7684",pink:"\u7C89\u8272","pink red":"\u7C89\u7EA2\u8272",purple:"\u7D2B\u8272","purple magenta":"\u7D2B\u6D0B\u7EA2\u8272",red:"\u7EA2\u8272","red orange":"\u7EA2\u6A59\u8272",saturation:"\u9971\u548C\u5EA6",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u900F\u660E`,"very dark":"\u5F88\u6697","very light":"\u5F88\u6D45",vibrant:"\u751F\u673A\u52C3\u52C3",white:"\u767D\u8272",yellow:"\u9EC4\u8272","yellow green":"\u9EC4\u8272/\u7EFF\u8272"},"zh-TW":{alpha:"Alpha",black:"\u9ED1",blue:"\u85CD\u8272","blue purple":"\u85CD\u7D2B",brightness:"\u4EAE\u5EA6",brown:"\u68D5","brown yellow":"\u68D5\u9EC3",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"\u9752","cyan blue":"\u9752\u85CD",dark:"\u6697",gray:"\u7070",grayish:"\u504F\u7070",green:"\u7DA0\u8272","green cyan":"\u9752\u7DA0",hue:"\u8272\u76F8",light:"\u6DFA",lightness:"\u660E\u4EAE",magenta:"\u6D0B\u7D05","magenta pink":"\u6DFA\u6D0B\u7D05",orange:"\u6A59","orange yellow":"\u6A59\u9EC3",pale:"\u6DE1",pink:"\u7C89\u7D05","pink red":"\u7C89\u7D05",purple:"\u7D2B","purple magenta":"\u7D2B\u6D0B\u7D05",red:"\u7D05\u8272","red orange":"\u6A59\u7D05",saturation:"\u98FD\u548C\u5EA6",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} \u900F\u660E`,"very dark":"\u5F88\u6697","very light":"\u5F88\u6DFA",vibrant:"\u9BAE\u8C54",white:"\u767D",yellow:"\u9EC3","yellow green":"\u9EC3\u7DA0"}};var dv=new lr(Mk);function _e(e){let t=Qu.parse(e)||ec.parse(e)||tc.parse(e);if(t)return t;throw new Error("Invalid color value: "+e)}function si(e){return typeof e=="string"?_e(e):e}function Fk(e){return e===360?e:(e%360+360)%360}var Lk=.68,M$=.85,Ak=.55,Ok=.001,pv=[[0,"pink"],[15,"red"],[48,"orange"],[94,"yellow"],[135,"green"],[175,"cyan"],[264,"blue"],[284,"purple"],[320,"magenta"],[349,"pink"]],Ju=class{toHexInt(){return this.toFormat("rgb").toHexInt()}getChannelValue(t){if(t in this)return this[t];throw new Error("Unsupported color channel: "+t)}withChannelValue(t,r){if(t in this){let o=this.clone();return o[t]=r,o}throw new Error("Unsupported color channel: "+t)}getChannelName(t,r){return (lr.getGlobalDictionaryForPackage("@react-stately/color")||dv).getStringForLocale(t,r)}getColorSpaceAxes(t){let{xChannel:r,yChannel:o}=t,n=r||this.getColorChannels().find(l=>l!==o),i=o||this.getColorChannels().find(l=>l!==n),a=this.getColorChannels().find(l=>l!==n&&l!==i);return {xChannel:n,yChannel:i,zChannel:a}}getColorName(t){let[r,o,n]=Nk(this),i=lr.getGlobalDictionaryForPackage("@react-stately/color")||dv;if(r>.999)return i.getStringForLocale("white",t);if(r<.001)return i.getStringForLocale("black",t);let a;[a,r]=this.getOklchHue(r,o,n,t);let l="",s="";o<=.1&&o>=Ok?r>=.7?s="pale":s="grayish":o>=.15&&(s="vibrant"),r<.3?l="very dark":r<Ak?l="dark":r<.7||(r<.85?l="light":l="very light"),s&&(s=i.getStringForLocale(s,t)),l&&(l=i.getStringForLocale(l,t));let u=this.getChannelValue("alpha"),c=new Sn(t,i);if(u<1){let p=new $t(t,{style:"percent"}).format(1-u);return c.format("transparentColorName",{lightness:l,chroma:s,hue:a,percentTransparent:p}).replace(/\s+/g," ").trim()}else return c.format("colorName",{lightness:l,chroma:s,hue:a}).replace(/\s+/g," ").trim()}getOklchHue(t,r,o,n){let i=lr.getGlobalDictionaryForPackage("@react-stately/color")||dv;if(r<Ok)return [i.getStringForLocale("gray",n),t];for(let a=0;a<pv.length;a++){let[l,s]=pv[a],[u,c]=pv[a+1]||[360,"pink"];if(o>=l&&o<u)return s==="orange"&&(t<Lk?s="brown":t=t-Lk+Ak),o>l+(u-l)/2&&s!==c?s=`${s} ${c}`:s==="yellow"&&t<M$&&(s="yellow green"),[i.getStringForLocale(s,n).toLocaleLowerCase(n),t]}throw new Error("Unexpected hue")}getHueName(t){let[r,o,n]=Nk(this),[i]=this.getOklchHue(r,o,n,t);return i}},Qu=class e extends Ju{constructor(r,o,n,i){super();this.red=r;this.green=o;this.blue=n;this.alpha=i;}red;green;blue;alpha;static parse(r){let o=[];if(/^#[\da-f]+$/i.test(r)&&[4,5,7,9].includes(r.length)){let i=(r.length<6?r.replace(/[^#]/gi,"$&$&"):r).slice(1).split("");for(;i.length>0;)o.push(parseInt(i.splice(0,2).join(""),16));o[3]=o[3]!==void 0?o[3]/255:void 0;}let n=r.match(/^rgba?\((.*)\)$/);if(n?.[1]&&(o=n[1].split(",").map(i=>Number(i.trim())),o=o.map((i,a)=>Xe(i??0,0,a<3?255:1))),!(o[0]===void 0||o[1]===void 0||o[2]===void 0))return o.length<3?void 0:new e(o[0],o[1],o[2],o[3]??1)}toString(r="css"){switch(r){case "hex":return "#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case "hexa":return "#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case "rgb":return `rgb(${this.red}, ${this.green}, ${this.blue})`;case "css":case "rgba":return `rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;default:return this.toFormat(r).toString(r)}}toFormat(r){switch(r){case "hex":case "hexa":case "rgb":case "rgba":return this;case "hsb":case "hsba":return this.toHSB();case "hsl":case "hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+r)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){let r=this.red/255,o=this.green/255,n=this.blue/255,i=Math.min(r,o,n),a=Math.max(r,o,n),l=a-i,s=a===0?0:l/a,u=0;if(l!==0){switch(a){case r:u=(o-n)/l+(o<n?6:0);break;case o:u=(n-r)/l+2;break;case n:u=(r-o)/l+4;break}u/=6;}return new ec(xt(u*360,2),xt(s*100,2),xt(a*100,2),this.alpha)}toHSL(){let r=this.red/255,o=this.green/255,n=this.blue/255,i=Math.min(r,o,n),a=Math.max(r,o,n),l=(a+i)/2,s=a-i,u,c;if(s===0)u=c=0;else {switch(c=s/(l<.5?a+i:2-a-i),a){case r:u=(o-n)/s+(o<n?6:0);break;case o:u=(n-r)/s+2;break;case n:default:u=(r-o)/s+4;break}u/=6;}return new tc(xt(u*360,2),xt(c*100,2),xt(l*100,2),this.alpha)}clone(){return new e(this.red,this.green,this.blue,this.alpha)}getChannelRange(r){switch(r){case "red":case "green":case "blue":return {minValue:0,maxValue:255,step:1,pageSize:17};case "alpha":return {minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+r)}}getChannelFormatOptions(r){switch(r){case "red":case "green":case "blue":return {style:"decimal"};case "alpha":return {style:"percent"};default:throw new Error("Unknown color channel: "+r)}}formatChannelValue(r,o){let n=this.getChannelFormatOptions(r),i=this.getChannelValue(r);return new $t(o,n).format(i)}getColorSpace(){return "rgb"}static colorChannels=["red","green","blue"];getColorChannels(){return e.colorChannels}},L$=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,ec=class e extends Ju{constructor(r,o,n,i){super();this.hue=r;this.saturation=o;this.brightness=n;this.alpha=i;}hue;saturation;brightness;alpha;static parse(r){let o;if(o=r.match(L$)){let[n,i,a,l]=(o[1]??o[2]).split(",").map(s=>Number(s.trim().replace("%","")));return new e(Fk(n),Xe(i,0,100),Xe(a,0,100),Xe(l??1,0,1))}}toString(r="css"){switch(r){case "css":return this.toHSL().toString("css");case "hex":return this.toRGB().toString("hex");case "hexa":return this.toRGB().toString("hexa");case "hsb":return `hsb(${this.hue}, ${xt(this.saturation,2)}%, ${xt(this.brightness,2)}%)`;case "hsba":return `hsba(${this.hue}, ${xt(this.saturation,2)}%, ${xt(this.brightness,2)}%, ${this.alpha})`;default:return this.toFormat(r).toString(r)}}toFormat(r){switch(r){case "hsb":case "hsba":return this;case "hsl":case "hsla":return this.toHSL();case "rgb":case "rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+r)}}toHSL(){let r=this.saturation/100,o=this.brightness/100,n=o*(1-r/2);return r=n===0||n===1?0:(o-n)/Math.min(n,1-n),new tc(xt(this.hue,2),xt(r*100,2),xt(n*100,2),this.alpha)}toRGB(){let r=this.hue,o=this.saturation/100,n=this.brightness/100,i=(a,l=(a+r/60)%6)=>n-o*n*Math.max(Math.min(l,4-l,1),0);return new Qu(Math.round(i(5)*255),Math.round(i(3)*255),Math.round(i(1)*255),this.alpha)}clone(){return new e(this.hue,this.saturation,this.brightness,this.alpha)}getChannelRange(r){switch(r){case "hue":return {minValue:0,maxValue:360,step:1,pageSize:15};case "saturation":case "brightness":return {minValue:0,maxValue:100,step:1,pageSize:10};case "alpha":return {minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+r)}}getChannelFormatOptions(r){switch(r){case "hue":return {style:"unit",unit:"degree",unitDisplay:"narrow"};case "saturation":case "brightness":case "alpha":return {style:"percent"};default:throw new Error("Unknown color channel: "+r)}}formatChannelValue(r,o){let n=this.getChannelFormatOptions(r),i=this.getChannelValue(r);return (r==="saturation"||r==="brightness")&&(i/=100),new $t(o,n).format(i)}getColorSpace(){return "hsb"}static colorChannels=["hue","saturation","brightness"];getColorChannels(){return e.colorChannels}},A$=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,tc=class e extends Ju{constructor(r,o,n,i){super();this.hue=r;this.saturation=o;this.lightness=n;this.alpha=i;}hue;saturation;lightness;alpha;static parse(r){let o;if(o=r.match(A$)){let[n,i,a,l]=(o[1]??o[2]).split(",").map(s=>Number(s.trim().replace("%","")));return new e(Fk(n),Xe(i,0,100),Xe(a,0,100),Xe(l??1,0,1))}}toString(r="css"){switch(r){case "hex":return this.toRGB().toString("hex");case "hexa":return this.toRGB().toString("hexa");case "hsl":return `hsl(${this.hue}, ${xt(this.saturation,2)}%, ${xt(this.lightness,2)}%)`;case "css":case "hsla":return `hsla(${this.hue}, ${xt(this.saturation,2)}%, ${xt(this.lightness,2)}%, ${this.alpha})`;default:return this.toFormat(r).toString(r)}}toFormat(r){switch(r){case "hsl":case "hsla":return this;case "hsb":case "hsba":return this.toHSB();case "rgb":case "rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+r)}}toHSB(){let r=this.saturation/100,o=this.lightness/100,n=o+r*Math.min(o,1-o);return r=n===0?0:2*(1-o/n),new ec(xt(this.hue,2),xt(r*100,2),xt(n*100,2),this.alpha)}toRGB(){let r=this.hue,o=this.saturation/100,n=this.lightness/100,i=o*Math.min(n,1-n),a=(l,s=(l+r/30)%12)=>n-i*Math.max(Math.min(s-3,9-s,1),-1);return new Qu(Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255),this.alpha)}clone(){return new e(this.hue,this.saturation,this.lightness,this.alpha)}getChannelRange(r){switch(r){case "hue":return {minValue:0,maxValue:360,step:1,pageSize:15};case "saturation":case "lightness":return {minValue:0,maxValue:100,step:1,pageSize:10};case "alpha":return {minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+r)}}getChannelFormatOptions(r){switch(r){case "hue":return {style:"unit",unit:"degree",unitDisplay:"narrow"};case "saturation":case "lightness":case "alpha":return {style:"percent"};default:throw new Error("Unknown color channel: "+r)}}formatChannelValue(r,o){let n=this.getChannelFormatOptions(r),i=this.getChannelValue(r);return (r==="saturation"||r==="lightness")&&(i/=100),new $t(o,n).format(i)}getColorSpace(){return "hsl"}static colorChannels=["hue","saturation","lightness"];getColorChannels(){return e.colorChannels}};function Nk(e){let t=e.toFormat("rgb"),r=t.getChannelValue("red")/255,o=t.getChannelValue("green")/255,n=t.getChannelValue("blue")/255;[r,o,n]=N$(r,o,n);let[i,a,l]=F$(r,o,n),[s,u,c]=K$(i,a,l);return O$(s,u,c)}function O$(e,t,r){var o=Math.atan2(r,t)*180/Math.PI;return [e,Math.sqrt(t**2+r**2),o>=0?o:o+360]}function N$(e,t,r){return [mv(e),mv(t),mv(r)]}function mv(e){let t=e<0?-1:1,r=Math.abs(e);return r<=.04045?e/12.92:t*Math.pow((r+.055)/1.055,2.4)}function F$(e,t,r){return fv([.4123907992659595,.35758433938387796,.1804807884018343,.21263900587151036,.7151686787677559,.07219231536073371,.01933081871559185,.11919477979462599,.9505321522496606],e,t,r)}function K$(e,t,r){let o=[.819022437996703,.3619062600528904,-0.1288737815209879,.0329836539323885,.9292868615863434,.0361446663506424,.0481771893596242,.2642395317527308,.6335478284694309],n=[.210454268309314,.7936177747023054,-0.0040720430116193,1.9779985324311684,-2.42859224204858,.450593709617411,.0259040424655478,.7827717124575296,-0.8086757549230774],[i,a,l]=fv(o,e,t,r);return fv(n,Math.cbrt(i),Math.cbrt(a),Math.cbrt(l))}function fv(e,t,r,o){let n=e[0]*t+e[1]*r+e[2]*o,i=e[3]*t+e[4]*r+e[5]*o,a=e[6]*t+e[7]*r+e[8]*o;return [n,i,a]}var Kk=e=>[0,60,120,180,240,300,360].map(t=>e.withChannelValue("hue",t).toString("css")).join(", "),Vk=e=>`${e.withChannelValue("saturation",0)}, transparent`,H$={hue:Kk,saturation:Vk,lightness:()=>"black, transparent, white"},$$={hue:Kk,saturation:Vk,brightness:()=>"black, transparent"};function Bk({direction:e,state:t,zChannel:r,xChannel:o,yChannel:n}){return useMemo(()=>{let a=e==="rtl"?"left":"right",l={},s=t.value.getChannelValue(r);switch(t.value.getColorSpace()){case "rgb":{let d=_e("rgb(0, 0, 0)");l={background:[`linear-gradient(to ${a}, ${d.withChannelValue(o,0)}, ${d.withChannelValue(o,255)})`,`linear-gradient(to top, ${d.withChannelValue(n,0)}, ${d.withChannelValue(n,255)})`,d.withChannelValue(r,s)].join(","),backgroundBlendMode:"screen"};break}case "hsl":{let d=t.value.getColorChannels(),m=_e("hsl(0, 100%, 50%)").withChannelValue(r,s),f=d.filter(y=>y!==r).map(y=>`linear-gradient(to ${y===o?a:"top"}, ${H$[y](m)})`).reverse();r==="hue"&&f.push(m.toString("css")),l={background:f.join(", ")};break}case "hsb":{let d=t.value.getColorChannels(),m=_e("hsb(0, 100%, 100%)").withChannelValue(r,s),f=d.filter(y=>y!==r).map(y=>`linear-gradient(to ${y===o?a:"top"}, ${$$[y](m)})`).reverse();r==="hue"&&f.push(m.toString("css")),l={background:f.join(", ")};break}}let{x:u,y:c}=t.getThumbPosition();e==="rtl"&&(u=1-u);let p={forcedColorAdjust:"none"};return {colorAreaStyleProps:{style:{position:"relative",touchAction:"none",...p,...l}},thumbStyleProps:{style:{position:"absolute",left:`${u*100}%`,top:`${c*100}%`,transform:"translate(-50%, -50%)",touchAction:"none",...p}}}},[e,t,r,o,n])}function In(e){let{onMoveStart:t,onMove:r,onMoveEnd:o}=e,n=useRef({didMove:false,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=zt(),l=useCallback((d,m,f,y)=>{f===0&&y===0||(n.current.didMove||(n.current.didMove=true,t?.({type:"movestart",pointerType:m,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey})),r?.({type:"move",pointerType:m,deltaX:f,deltaY:y,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}));},[t,r,n]),s=Pe(l),u=useCallback((d,m)=>{xl(),n.current.didMove&&o?.({type:"moveend",pointerType:m,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey});},[o,n]),c=Pe(u);return {moveProps:useMemo(()=>{let d={},m=()=>{Au(),n.current.didMove=false;};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let y=h=>{h.button===0&&(s(h,"mouse",h.pageX-(n.current.lastPosition?.pageX??0),h.pageY-(n.current.lastPosition?.pageY??0)),n.current.lastPosition={pageX:h.pageX,pageY:h.pageY});},g=h=>{if(h.button===0){c(h,"mouse");let v=X($(h));a(v,"mousemove",y,false),a(v,"mouseup",g,false);}};d.onMouseDown=h=>{if(h.button===0){m(),h.stopPropagation(),h.preventDefault(),n.current.lastPosition={pageX:h.pageX,pageY:h.pageY};let v=X($(h));i(v,"mousemove",y,false),i(v,"mouseup",g,false);}};let b=h=>{let v=[...h.changedTouches].findIndex(({identifier:C})=>C===n.current.id);if(v>=0){let{pageX:C,pageY:T}=h.changedTouches[v];s(h,"touch",C-(n.current.lastPosition?.pageX??0),T-(n.current.lastPosition?.pageY??0)),n.current.lastPosition={pageX:C,pageY:T};}},x=h=>{if([...h.changedTouches].findIndex(({identifier:C})=>C===n.current.id)>=0){c(h,"touch"),n.current.id=null;let C=X($(h));a(C,"touchmove",b),a(C,"touchend",x),a(C,"touchcancel",x);}};d.onTouchStart=h=>{if(h.changedTouches.length===0||n.current.id!=null)return;let{pageX:v,pageY:C,identifier:T}=h.changedTouches[0];m(),h.stopPropagation(),h.preventDefault(),n.current.lastPosition={pageX:v,pageY:C},n.current.id=T;let P=X($(h));i(P,"touchmove",b,false),i(P,"touchend",x,false),i(P,"touchcancel",x,false);};}else {let y=b=>{if(b.pointerId===n.current.id){let x=b.pointerType||"mouse";s(b,x,b.pageX-(n.current.lastPosition?.pageX??0),b.pageY-(n.current.lastPosition?.pageY??0)),n.current.lastPosition={pageX:b.pageX,pageY:b.pageY};}},g=b=>{if(b.pointerId===n.current.id){let x=b.pointerType||"mouse";c(b,x),n.current.id=null;let h=X($(b));a(h,"pointermove",y,false),a(h,"pointerup",g,false),a(h,"pointercancel",g,false);}};d.onPointerDown=b=>{if(b.button===0&&n.current.id==null){m(),b.stopPropagation(),b.preventDefault(),n.current.lastPosition={pageX:b.pageX,pageY:b.pageY},n.current.id=b.pointerId;let x=X($(b));i(x,"pointermove",y,false),i(x,"pointerup",g,false),i(x,"pointercancel",g,false);}};}let f=(y,g,b)=>{m(),s(y,"keyboard",g,b),c(y,"keyboard");};return d.onKeyDown=y=>{switch(y.key){case "Left":case "ArrowLeft":y.preventDefault(),y.stopPropagation(),f(y,-1,0);break;case "Right":case "ArrowRight":y.preventDefault(),y.stopPropagation(),f(y,1,0);break;case "Up":case "ArrowUp":y.preventDefault(),y.stopPropagation(),f(y,0,-1);break;case "Down":case "ArrowDown":y.preventDefault(),y.stopPropagation(),f(y,0,1);break}},d},[i,a,n])}}function Sm(e,t){let{isDisabled:r,inputXRef:o,inputYRef:n,containerRef:i,"aria-label":a,xName:l,yName:s,form:u}=e,c=ve(Pm,"@react-aria/color"),{addGlobalListener:p,removeGlobalListener:d}=zt(),{direction:m,locale:f}=Q(),[y,g]=useState(null),b=useCallback((le=o)=>{le.current&&Ve(le.current);},[o]);It(o,t.defaultValue,t.setValue);let[x,h]=useState(false),[v,C]=useState(false),{xChannel:T,yChannel:P,zChannel:k}=t.channels,S=t.xChannelStep,w=t.yChannelStep,E=useRef(null),{keyboardProps:R}=Le({onKeyDown(le){if(!/^(PageUp|PageDown|Home|End)$/.test(le.key)){le.continuePropagation();return}le.preventDefault(),t.setDragging(true),h(true);let ae;switch(le.key){case "PageUp":t.incrementY(t.yChannelPageStep),ae="y";break;case "PageDown":t.decrementY(t.yChannelPageStep),ae="y";break;case "Home":m==="rtl"?t.incrementX(t.xChannelPageStep):t.decrementX(t.xChannelPageStep),ae="x";break;case "End":m==="rtl"?t.decrementX(t.xChannelPageStep):t.incrementX(t.xChannelPageStep),ae="x";break}t.setDragging(false),ae&&(b(ae==="x"?o:n),g(ae));}}),_={onMoveStart(){E.current=null,t.setDragging(true);},onMove({deltaX:le,deltaY:ae,pointerType:we,shiftKey:Sr}){let{incrementX:Vo,decrementX:Wn,incrementY:Vt,decrementY:Lt,xChannelPageStep:or,xChannelStep:St,yChannelPageStep:hu,yChannelStep:vu,getThumbPosition:th,setColorFromPoint:rh}=t;E.current==null&&(E.current=th());let{width:mt,height:ul}=i.current?.getBoundingClientRect()||{width:0,height:0},L1=le!==0||ae!==0;if(we==="keyboard"){let A1=Sr&&or>St?or:St,O1=Sr&&hu>vu?hu:vu;le>0&&m==="ltr"||le<0&&m==="rtl"?Vo(A1):le<0&&m==="ltr"||le>0&&m==="rtl"?Wn(A1):ae>0?Lt(O1):ae<0&&Vt(O1),h(L1),y=L1&&Math.abs(ae)>Math.abs(le)?"y":"x",g(y);}else E.current.x+=(m==="rtl"?-1:1)*le/mt,E.current.y+=ae/ul,rh(E.current.x,E.current.y);},onMoveEnd(){N.current=false,t.setDragging(false),b(y==="x"?o:n);}},{moveProps:D}=In(_),{focusWithinProps:F}=lt({onFocusWithinChange:le=>{le||(h(false),C(false));}}),z=useRef(void 0),N=useRef(false),{moveProps:V}=In({onMoveStart(){N.current&&_.onMoveStart();},onMove(le){N.current&&_.onMove(le);},onMoveEnd(){N.current&&_.onMoveEnd();}}),M=le=>{let ae=X(i.current);t.isDragging||(z.current=le,h(false),b(),t.setDragging(true),typeof PointerEvent<"u"?p(ae,"pointerup",O,false):(p(ae,"mouseup",O,false),p(ae,"touchend",O,false)));},O=le=>{let ae=X(i.current);(le.pointerId??le.changedTouches?.[0].identifier)===z.current&&(h(false),b(),t.setDragging(false),z.current=void 0,N.current=false,typeof PointerEvent<"u"?d(ae,"pointerup",O,false):(d(ae,"mouseup",O,false),d(ae,"touchend",O,false)));},B=(le,ae,we,Sr)=>{let Vo=le.getBoundingClientRect(),{width:Wn,height:Vt}=Vo,Lt=(we-Vo.x)/Wn,or=(Sr-Vo.y)/Vt;m==="rtl"&&(Lt=1-Lt);let St=X(i.current);Lt>=0&&Lt<=1&&or>=0&&or<=1&&!t.isDragging&&z.current===void 0&&(N.current=true,h(false),z.current=ae,t.setColorFromPoint(Lt,or),b(),t.setDragging(true),typeof PointerEvent<"u"?p(St,"pointerup",K,false):(p(St,"mouseup",K,false),p(St,"touchend",K,false)));},K=le=>{let ae=le.pointerId??le.changedTouches?.[0].identifier;if(N.current&&ae===z.current){N.current=false,h(false),z.current=void 0,t.setDragging(false),b();let we=X(i.current);typeof PointerEvent<"u"?d(we,"pointerup",K,false):(d(we,"mouseup",K,false),d(we,"touchend",K,false));}},I=r?{}:A({...typeof PointerEvent<"u"?{onPointerDown:le=>{le.pointerType==="mouse"&&(le.button!==0||le.altKey||le.ctrlKey||le.metaKey)||B(le.currentTarget,le.pointerId,le.clientX,le.clientY);}}:{onMouseDown:le=>{le.button!==0||le.altKey||le.ctrlKey||le.metaKey||B(le.currentTarget,void 0,le.clientX,le.clientY);},onTouchStart:le=>{B(le.currentTarget,le.changedTouches[0].identifier,le.changedTouches[0].clientX,le.changedTouches[0].clientY);}}},V),H=r?{}:A({...typeof PointerEvent<"u"?{onPointerDown:le=>{le.pointerType==="mouse"&&(le.button!==0||le.altKey||le.ctrlKey||le.metaKey)||M(le.pointerId);}}:{onMouseDown:le=>{le.button!==0||le.altKey||le.ctrlKey||le.metaKey||M(void 0);},onTouchStart:le=>{M(le.changedTouches[0].identifier);}}},F,R,D),{focusProps:U}=Zt({onFocus:()=>{g("x");}}),{focusProps:q}=Zt({onFocus:()=>{g("y");}}),W=le=>{let{target:ae}=le;C(true),ae===o.current?t.setXValue(parseFloat(ae.value)):ae===n.current&&t.setYValue(parseFloat(ae.value));},J=Bt()||ir(),me=t.getDisplayColor(),ne=useCallback(le=>`${v||x?c.format("colorNameAndValue",{name:me.getChannelName(le,f),value:me.formatChannelValue(le,f)}):[c.format("colorNameAndValue",{name:me.getChannelName(le,f),value:me.formatChannelValue(le,f)}),c.format("colorNameAndValue",{name:me.getChannelName(le===P?T:P,f),value:me.formatChannelValue(le===P?T:P,f)}),c.format("colorNameAndValue",{name:me.getChannelName(k,f),value:me.formatChannelValue(k,f)})].join(", ")}, ${me.getColorName(f)}`,[f,me,c,v,x,T,P,k]),de=c.format("colorPicker"),ke=Qe({...e,"aria-label":a?c.format("colorInputLabel",{label:a,channelLabel:de}):de}),Ge=Qe({...e,"aria-label":a?c.format("colorInputLabel",{label:a,channelLabel:de}):de}),ut=Qe({...e,"aria-label":a?`${a}, ${de}`:void 0},J?de:void 0),br=c.format("twoDimensionalSlider"),{visuallyHiddenProps:Ee}=Ot({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}}),{colorAreaStyleProps:Ce,thumbStyleProps:qe}=Bk({direction:m,state:t,xChannel:T,yChannel:P,zChannel:k});return {colorAreaProps:{...ut,...I,...Ce,role:"group"},thumbProps:{...H,...qe,role:"presentation"},xInputProps:{...ke,...Ee,...U,type:"range",min:t.value.getChannelRange(T).minValue,max:t.value.getChannelRange(T).maxValue,step:S,"aria-roledescription":br,"aria-valuetext":ne(T),"aria-orientation":"horizontal","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:r,value:t.value.getChannelValue(T),name:l,form:u,tabIndex:J||!y||y==="x"?void 0:-1,"aria-hidden":J||!y||y==="x"||x?void 0:"true",onChange:W},yInputProps:{...Ge,...Ee,...q,type:"range",min:t.value.getChannelRange(P).minValue,max:t.value.getChannelRange(P).maxValue,step:w,"aria-roledescription":br,"aria-valuetext":ne(P),"aria-orientation":"vertical","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:r,value:t.value.getChannelValue(P),name:s,form:u,tabIndex:J||y==="y"?void 0:-1,"aria-hidden":J||y==="y"||x?void 0:"true",onChange:W}}}var U$=_e("#ffffff");function Dm(e){let{value:t,defaultValue:r,colorSpace:o,xChannel:n,yChannel:i,onChange:a,onChangeEnd:l}=e;!t&&!r&&(r=U$),t&&(t=si(t)),r&&(r=si(r));let[s,u]=ye(t,r,a),[c]=useState(s),p=useMemo(()=>o&&s?s.toFormat(o):s,[s,o]),d=useRef(p),m=z=>{d.current=z,u(z);},f=useMemo(()=>p.getColorSpaceAxes({xChannel:n,yChannel:i}),[p,n,i]),y=p.getChannelRange(f.xChannel),g=p.getChannelRange(f.yChannel),{minValue:b,maxValue:x,step:h,pageSize:v}=y,{minValue:C,maxValue:T,step:P,pageSize:k}=g,[S,w]=useState(false),E=useRef(false),R=p.getChannelValue(f.xChannel),_=p.getChannelValue(f.yChannel),D=z=>{if(z===R)return;let N=p.withChannelValue(f.xChannel,z);m(N);},F=z=>{if(z===_)return;let N=p.withChannelValue(f.yChannel,z);m(N);};return {channels:f,xChannelStep:h,yChannelStep:P,xChannelPageStep:v,yChannelPageStep:k,value:p,defaultValue:t!==void 0?c:r,setValue(z){m(si(z));},xValue:R,setXValue:D,yValue:_,setYValue:F,setColorFromPoint(z,N){let V=b+Xe(z,0,1)*(x-b),M=C+(1-Xe(N,0,1))*(T-C),O;V!==R&&(V=ft(V,b,x,h),O=p.withChannelValue(f.xChannel,V)),M!==_&&(M=ft(M,C,T,P),O=(O||p).withChannelValue(f.yChannel,M)),O&&m(O);},getThumbPosition(){let z=(R-b)/(x-b),N=1-(_-C)/(T-C);return {x:z,y:N}},incrementX(z=1){D(R+z>x?x:ft(R+z,b,x,h));},incrementY(z=1){F(_+z>T?T:ft(_+z,C,T,P));},decrementX(z=1){D(ft(R-z,b,x,h));},decrementY(z=1){F(ft(_-z,C,T,P));},setDragging(z){let N=E.current;E.current=z,l&&!z&&N&&l(d.current),w(z);},isDragging:S,getDisplayColor(){return p.withChannelValue("alpha",1)}}}function Hr(e,t){let{inputElementType:r="input",isDisabled:o=false,isRequired:n=false,isReadOnly:i=false,type:a="text",validationBehavior:l="aria"}=e,[s,u]=ye(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=rt(e,t),p=Nt({...e,value:s}),{isInvalid:d,validationErrors:m,validationDetails:f}=p.displayValidation,{labelProps:y,fieldProps:g,descriptionProps:b,errorMessageProps:x}=Vr({...e,isInvalid:d,errorMessage:e.errorMessage||m,ref:t}),h=re(e,{labelable:true}),v={type:a,pattern:e.pattern},[C]=useState(s);return It(t,e.defaultValue??C,u),Wo(e,p,t),{labelProps:y,inputProps:A(h,r==="input"?v:void 0,{disabled:o,readOnly:i,required:n&&l==="native","aria-required":n&&l==="aria"||void 0,"aria-invalid":d||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:s,onChange:T=>u($(T).value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(Un.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...g}),descriptionProps:b,errorMessageProps:x,isInvalid:d,validationErrors:m,validationDetails:f}}function Wk(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function km(e,t,r){let o=Pe(p=>{let d=r.current;if(!d)return;let m=null;switch(p.inputType){case "historyUndo":case "historyRedo":return;case "insertLineBreak":return;case "deleteContent":case "deleteByCut":case "deleteByDrag":m=d.value.slice(0,d.selectionStart)+d.value.slice(d.selectionEnd);break;case "deleteContentForward":m=d.selectionEnd===d.selectionStart?d.value.slice(0,d.selectionStart)+d.value.slice(d.selectionEnd+1):d.value.slice(0,d.selectionStart)+d.value.slice(d.selectionEnd);break;case "deleteContentBackward":m=d.selectionEnd===d.selectionStart?d.value.slice(0,d.selectionStart-1)+d.value.slice(d.selectionStart):d.value.slice(0,d.selectionStart)+d.value.slice(d.selectionEnd);break;case "deleteSoftLineBackward":case "deleteHardLineBackward":m=d.value.slice(d.selectionStart);break;default:p.data!=null&&(m=d.value.slice(0,d.selectionStart)+p.data+d.value.slice(d.selectionEnd));break}(m==null||!t.validate(m))&&p.preventDefault();});useEffect(()=>{if(!Wk()||!r.current)return;let p=r.current;return p.addEventListener("beforeinput",o,false),()=>{p.removeEventListener("beforeinput",o,false);}},[r]);let n=Wk()?null:p=>{let d=$(p),m=d.value.slice(0,d.selectionStart)+p.data+d.value.slice(d.selectionEnd);t.validate(m)||p.preventDefault();},{labelProps:i,inputProps:a,descriptionProps:l,errorMessageProps:s,...u}=Hr(e,r),c=useRef(null);return {inputProps:A(a,{onBeforeInput:n,onCompositionStart(){let{value:p,selectionStart:d,selectionEnd:m}=r.current;c.current={value:p,selectionStart:d,selectionEnd:m};},onCompositionEnd(){if(r.current&&!t.validate(r.current.value)){let{value:p,selectionStart:d,selectionEnd:m}=c.current;r.current.value=p,r.current.setSelectionRange(d,m),t.setInputValue(p);}}}),labelProps:i,descriptionProps:l,errorMessageProps:s,...u}}function Em(e,t){let{onScroll:r,isDisabled:o}=e,n=useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),r&&r({deltaX:i.deltaX,deltaY:i.deltaY}));},[r]);at(t,"wheel",o?void 0:n);}var qk={"ar-AE":{Empty:"\u0641\u0627\u0631\u063A"},"bg-BG":{Empty:"\u0418\u0437\u043F\u0440\u0430\u0437\u043D\u0438"},"cs-CZ":{Empty:"Pr\xE1zdn\xE9"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"\u0386\u03B4\u03B5\u03B9\u03BF"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vac\xEDo"},"et-EE":{Empty:"T\xFChjenda"},"fi-FI":{Empty:"Tyhj\xE4"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"\u05E8\u05D9\u05E7"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"\xDCres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"\u7A7A"},"ko-KR":{Empty:"\uBE44\uC5B4 \uC788\uC74C"},"lt-LT":{Empty:"Tu\u0161\u010Dias"},"lv-LV":{Empty:"Tuk\u0161s"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"\u041D\u0435 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043E"},"sk-SK":{Empty:"Pr\xE1zdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Bo\u015F"},"uk-UA":{Empty:"\u041F\u0443\u0441\u0442\u043E"},"zh-CN":{Empty:"\u7A7A"},"zh-TW":{Empty:"\u7A7A\u767D"}};var Zk=()=>{};function Rl(e){let t=useRef(void 0),{value:r,textValue:o,minValue:n,maxValue:i,isDisabled:a,isReadOnly:l,isRequired:s,onIncrement:u,onIncrementPage:c,onDecrement:p,onDecrementPage:d,onDecrementToMin:m,onIncrementToMax:f}=e,y=ve(qk,"@react-aria/spinbutton"),g=useRef(false),b=useCallback(()=>{clearTimeout(t.current),g.current=false;},[]),x=Pe(()=>{b();});useEffect(()=>()=>x(),[]);let h=I=>{if(!(I.ctrlKey||I.metaKey||I.shiftKey||I.altKey||l||I.nativeEvent.isComposing))switch(I.key){case "PageUp":if(c){I.preventDefault(),c?.();break}case "ArrowUp":case "Up":u&&(I.preventDefault(),u?.());break;case "PageDown":if(d){I.preventDefault(),d?.();break}case "ArrowDown":case "Down":p&&(I.preventDefault(),p?.());break;case "Home":m&&(I.preventDefault(),m?.());break;case "End":f&&(I.preventDefault(),f?.());break}},v=useRef(false),C=()=>{v.current=true;},T=()=>{v.current=false;},P=o===""?y.format("Empty"):(o||`${r}`).replace("-","\u2212");useEffect(()=>{v.current&&(om("assertive"),ot(P,"assertive"));},[P]);let k=useCallback(()=>{b();},[b]),S=Pe(u??Zk),w=Pe(p??Zk),E=Pe(()=>{(i===void 0||isNaN(i)||r===void 0||isNaN(r)||r<i)&&(S(),R(60));}),R=Pe(I=>{x(),g.current=true,t.current=window.setTimeout(E,I);}),_=Pe(()=>{(n===void 0||isNaN(n)||r===void 0||isNaN(r)||r>n)&&(w(),D(60));}),D=Pe(I=>{x(),g.current=true,t.current=window.setTimeout(_,I);}),F=I=>{I.preventDefault();},{addGlobalListener:z,removeAllGlobalListeners:N}=zt(),V=useRef(false),[M,O]=useState(null);useEffect(()=>{M==="touch"?R(600):M?R(400):M||x();},[M]);let[B,K]=useState(null);return useEffect(()=>{B==="touch"?D(600):B?D(400):B||x();},[B]),{spinButtonProps:{role:"spinbutton","aria-valuenow":r!==void 0&&!isNaN(r)?r:void 0,"aria-valuetext":P,"aria-valuemin":n,"aria-valuemax":i,"aria-disabled":a||void 0,"aria-readonly":l||void 0,"aria-required":s||void 0,onKeyDown:h,onFocus:C,onBlur:T},incrementButtonProps:{onPressStart:I=>{b(),I.pointerType!=="touch"?(u?.(),O("mouse")):(z(window,"pointercancel",k,{capture:true}),V.current=false,O("touch")),z(window,"contextmenu",F);},onPressUp:I=>{b(),I.pointerType==="touch"&&(V.current=true),N(),O(null);},onPressEnd:I=>{b(),I.pointerType==="touch"&&!g.current&&V.current&&u?.(),V.current=false,O(null);},onFocus:C,onBlur:T},decrementButtonProps:{onPressStart:I=>{b(),I.pointerType!=="touch"?(p?.(),K("mouse")):(z(window,"pointercancel",k,{capture:true}),V.current=false,K("touch"));},onPressUp:I=>{b(),I.pointerType==="touch"&&(V.current=true),N(),K(null);},onPressEnd:I=>{b(),I.pointerType==="touch"&&!g.current&&V.current&&p?.(),V.current=false,K(null);},onFocus:C,onBlur:T}}}function Rm(e,t,r){let{isDisabled:o,isReadOnly:n,isRequired:i,isWheelDisabled:a,validationBehavior:l="aria"}=e,{colorValue:s,inputValue:u,increment:c,decrement:p,incrementToMax:d,decrementToMin:m,commit:f}=t,y=ee(),{spinButtonProps:g}=Rl({isDisabled:o,isReadOnly:n,isRequired:i,maxValue:16777215,minValue:0,onIncrement:c,onIncrementToMax:d,onDecrement:p,onDecrementToMin:m,value:s?s.toHexInt():void 0,textValue:s?s.toString("hex"):void 0}),[b,x]=useState(false),{focusWithinProps:h}=lt({isDisabled:o,onFocusWithinChange:x}),v=useCallback(S=>{Math.abs(S.deltaY)<=Math.abs(S.deltaX)||(S.deltaY>0?c():S.deltaY<0&&p());},[p,c]);Em({onScroll:v,isDisabled:a||o||n||!b},r);let T=S=>{t.validate(S)&&t.setInputValue(S);},{inputProps:P,...k}=km({...e,id:y,value:u,defaultValue:"!",validate:void 0,[Br]:t,type:"text",autoComplete:"off",onChange:T},t,r);return It(r,t.defaultColorValue,t.setColorValue),P=A(P,g,h,{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false",onBlur:f}),l==="native"&&(P["aria-required"]=void 0),{inputProps:P,...k}}var Jk={"ar-AE":{decrease:e=>`\u062E\u0641\u0636 ${e.fieldLabel}`,increase:e=>`\u0632\u064A\u0627\u062F\u0629 ${e.fieldLabel}`,numberField:"\u062D\u0642\u0644 \u0631\u0642\u0645\u064A"},"bg-BG":{decrease:e=>`\u041D\u0430\u043C\u0430\u043B\u044F\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0441\u0438\u043B\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,numberField:"\u041D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043F\u043E\u043B\u0435\u0442\u043E"},"cs-CZ":{decrease:e=>`Sn\xED\u017Eit ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161it ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xD8g ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xF6hen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`\u039C\u03B5\u03AF\u03C9\u03C3\u03B7 ${e.fieldLabel}`,increase:e=>`\u0391\u03CD\u03BE\u03B7\u03C3\u03B7 ${e.fieldLabel}`,numberField:"\u03A0\u03B5\u03B4\u03AF\u03BF \u03B1\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD"},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"},"et-EE":{decrease:e=>`V\xE4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xE4li"},"fi-FI":{decrease:e=>`V\xE4henn\xE4 ${e.fieldLabel}`,increase:e=>`Lis\xE4\xE4 ${e.fieldLabel}`,numberField:"Numerokentt\xE4"},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`\u05D4\u05E7\u05D8\u05DF ${e.fieldLabel}`,increase:e=>`\u05D4\u05D2\u05D3\u05DC ${e.fieldLabel}`,numberField:"\u05E9\u05D3\u05D4 \u05DE\u05E1\u05E4\u05E8"},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} cs\xF6kkent\xE9se`,increase:e=>`${e.fieldLabel} n\xF6vel\xE9se`,numberField:"Sz\xE1mmez\u0151"},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}\u3092\u7E2E\u5C0F`,increase:e=>`${e.fieldLabel}\u3092\u62E1\u5927`,numberField:"\u6570\u5024\u30D5\u30A3\u30FC\u30EB\u30C9"},"ko-KR":{decrease:e=>`${e.fieldLabel} \uAC10\uC18C`,increase:e=>`${e.fieldLabel} \uC99D\uAC00`,numberField:"\uBC88\uD638 \uD544\uB4DC"},"lt-LT":{decrease:e=>`Suma\u017Einti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazin\u0101\u0161ana ${e.fieldLabel}`,increase:e=>`Palielin\u0101\u0161ana ${e.fieldLabel}`,numberField:"Skait\u013Cu lauks"},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xD8k ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u0119ksz ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xE9rico"},"ro-RO":{decrease:e=>`Sc\u0103dere ${e.fieldLabel}`,increase:e=>`Cre\u0219tere ${e.fieldLabel}`,numberField:"C\xE2mp numeric"},"ru-RU":{decrease:e=>`\u0423\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,numberField:"\u0427\u0438\u0441\u043B\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435"},"sk-SK":{decrease:e=>`Zn\xED\u017Ei\u0165 ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161i\u0165 ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u010Dajte ${e.fieldLabel}`,numberField:"\u0160tevil\u010Dno polje"},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xD6ka ${e.fieldLabel}`,numberField:"Nummerf\xE4lt"},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u0131r`,numberField:"Say\u0131 alan\u0131"},"uk-UA":{decrease:e=>`\u0417\u043C\u0435\u043D\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,increase:e=>`\u0417\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,numberField:"\u041F\u043E\u043B\u0435 \u043D\u043E\u043C\u0435\u0440\u0430"},"zh-CN":{decrease:e=>`\u964D\u4F4E ${e.fieldLabel}`,increase:e=>`\u63D0\u9AD8 ${e.fieldLabel}`,numberField:"\u6570\u5B57\u5B57\u6BB5"},"zh-TW":{decrease:e=>`\u7E2E\u5C0F ${e.fieldLabel}`,increase:e=>`\u653E\u5927 ${e.fieldLabel}`,numberField:"\u6578\u5B57\u6B04\u4F4D"}};function rc(e,t,r){let{id:o,decrementAriaLabel:n,incrementAriaLabel:i,isDisabled:a,isReadOnly:l,isRequired:s,minValue:u,maxValue:c,autoFocus:p,label:d,formatOptions:m,onBlur:f=()=>{},onFocus:y,onFocusChange:g,onKeyDown:b,onKeyUp:x,description:h,errorMessage:v,isWheelDisabled:C,...T}=e,{increment:P,incrementToMax:k,decrement:S,decrementToMin:w,numberValue:E,inputValue:R,commit:_,commitValidation:D}=t,F=ve(Jk,"@react-aria/numberfield"),z=useCallback(()=>{let mt=r.current?.value??"";flushSync(()=>{_();}),r.current?.value!==mt&&ot(r.current?.value??"","assertive");},[_,r]),N=ee(o),{focusProps:V}=Zt({onBlur(){z();}}),M=To(m),O=useMemo(()=>M.resolvedOptions(),[M]),B=To({...m,currencySign:void 0}),K=useMemo(()=>isNaN(E)?"":B.format(E),[B,E]),{spinButtonProps:I,incrementButtonProps:H,decrementButtonProps:U}=Rl({isDisabled:a,isReadOnly:l,isRequired:s,maxValue:c,minValue:u,onIncrement:P,onIncrementToMax:k,onDecrement:S,onDecrementToMin:w,value:E,textValue:K}),[q,W]=useState(false),{focusWithinProps:J}=lt({isDisabled:a,onFocusWithinChange:W}),me=useCallback(mt=>{Math.abs(mt.deltaY)<=Math.abs(mt.deltaX)||(mt.deltaY>0?P():mt.deltaY<0&&S());},[S,P]);Em({onScroll:me,isDisabled:C||a||l||!q},r);let de=(O.maximumFractionDigits??0)>0,ke=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,Ge="numeric";Pu()?ke?Ge="text":de&&(Ge="decimal"):ir()&&(ke?Ge="numeric":de&&(Ge="decimal"));let ut=mt=>{t.validate(mt)&&t.setInputValue(mt);},br=mt=>{e.onPaste?.(mt);let ul=$(mt);ul&&(ul.selectionEnd??-1)-(ul.selectionStart??0)===ul.value.length&&(mt.preventDefault(),_(mt.clipboardData?.getData?.("text/plain")?.trim()??""));},Ee=re(e),Ce=useCallback(mt=>{mt.nativeEvent.isComposing||(mt.key==="Enter"?(flushSync(()=>{_();}),D()):mt.continuePropagation());},[_,D]),{isInvalid:qe,validationErrors:le,validationDetails:ae}=t.displayValidation,{labelProps:we,inputProps:Sr,descriptionProps:Vo,errorMessageProps:Wn}=km({...T,...Ee,name:void 0,form:void 0,label:d,autoFocus:p,isDisabled:a,isReadOnly:l,isRequired:s,validate:void 0,[Br]:t,value:R,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:N,type:"text",inputMode:Ge,onChange:ut,onBlur:f,onFocus:y,onFocusChange:g,onKeyDown:useMemo(()=>We(Ce,b),[Ce,b]),onKeyUp:x,onPaste:br,description:h,errorMessage:v},t,r);It(r,t.defaultNumberValue,t.setNumberValue),tj(t,e.validationBehavior,e.commitBehavior,r,t.minValue,t.maxValue,e.step,t.numberValue);let Vt=A(I,V,Sr,{role:null,"aria-roledescription":Bt()?null:F.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(Vt["aria-required"]=void 0);let Lt=mt=>{ue(G(r.current))!==r.current&&(mt.pointerType==="mouse"?r.current?.focus():mt.target.focus());},or=e["aria-label"]||(typeof e.label=="string"?e.label:""),St;or||(St=e.label!=null?we.id:e["aria-labelledby"]);let hu=ee(),vu=ee(),th=A(H,{"aria-label":i||F.format("increase",{fieldLabel:or}).trim(),id:St&&!i?hu:null,"aria-labelledby":St&&!i?`${hu} ${St}`:null,"aria-controls":N,excludeFromTabOrder:true,preventFocusOnPress:true,allowFocusWhenDisabled:true,isDisabled:!t.canIncrement,onPressStart:Lt}),rh=A(U,{"aria-label":n||F.format("decrease",{fieldLabel:or}).trim(),id:St&&!n?vu:null,"aria-labelledby":St&&!n?`${vu} ${St}`:null,"aria-controls":N,excludeFromTabOrder:true,preventFocusOnPress:true,allowFocusWhenDisabled:true,isDisabled:!t.canDecrement,onPressStart:Lt});return {groupProps:{...J,role:"group","aria-disabled":a,"aria-invalid":qe?"true":void 0},labelProps:we,inputProps:Vt,incrementButtonProps:th,decrementButtonProps:rh,errorMessageProps:Wn,descriptionProps:Vo,isInvalid:qe,validationErrors:le,validationDetails:ae}}var gr=null;function tj(e,t,r,o,n,i,a,l){te(()=>{let s=o.current;if(r!=="validate"||e.realtimeValidation.isInvalid||!s||s.disabled||(!gr&&typeof document<"u"&&(gr=document.createElement("input"),gr.type="number"),!gr))return;gr.min=n!=null&&!isNaN(n)?String(n):"",gr.max=i!=null&&!isNaN(i)?String(i):"",gr.step=a!=null&&!isNaN(a)?String(a):"",gr.value=l!=null&&!isNaN(l)?String(l):"";let u=s.validity.valid&&gr.validity.valid,c=s.validationMessage||gr.validationMessage,p={isInvalid:!u,validationErrors:c?[c]:[],validationDetails:{badInput:s.validity.badInput,customError:s.validity.customError,patternMismatch:s.validity.patternMismatch,rangeOverflow:gr.validity.rangeOverflow,rangeUnderflow:gr.validity.rangeUnderflow,stepMismatch:gr.validity.stepMismatch,tooLong:s.validity.tooLong,tooShort:s.validity.tooShort,typeMismatch:s.validity.typeMismatch,valueMissing:s.validity.valueMissing,valid:u}};e.updateValidation(p),t==="native"&&!gr.validity.valid&&s.setCustomValidity(gr.validationMessage);});}function vv(e){return useMemo(()=>{if(typeof e=="string")try{return _e(e)}catch{return}return e},[e])}var Im=_e("#000000"),tE=_e("#FFFFFF"),nj=Im.toHexInt(),ij=tE.toHexInt();function _m(e){let{value:t,defaultValue:r,onChange:o}=e,{step:n}=Im.getChannelRange("red"),i=vv(r),[a,l]=ye(vv(t),i,o),[s]=useState(a),[u,c]=useState(()=>(t||r)&&a?a.toString("hex"):""),p=Nt({...e,value:a}),d=T=>{if(!a||!T){l(T);return}if(T.toHexInt()!==a.toHexInt()){l(T);return}},[m,f]=useState(a);m!==a&&(c(a?a.toString("hex"):""),f(a));let y=useMemo(()=>{let T;try{T=_e(u.startsWith("#")?u:`#${u}`);}catch{T=null;}return T},[u]);return {...p,validate:T=>T===""||!!T.match(/^#?[0-9a-f]{0,6}$/i)?.[0],colorValue:a,defaultColorValue:i??s,setColorValue:l,inputValue:u,setInputValue:c,commit:()=>{if(!u.length){d(null),c(t===void 0||a===null?"":a.toString("hex"));return}if(y==null){c(a?a.toString("hex"):"");return}d(y);let T="";a&&(T=a.toString("hex")),c(T),p.commitValidation();},increment:()=>{let T=eE(y,n);T===a&&c(T.toString("hex")),d(T),p.commitValidation();},incrementToMax:()=>d(tE),decrement:()=>{let T=eE(y,-n);T===a&&c(T.toString("hex")),d(T),p.commitValidation();},decrementToMin:()=>d(Im)}}function eE(e,t){let r=e||Im,o=r.toHexInt(),n=Math.min(Math.max(o+t,nj),ij);if(n!==o){let i=`#${n.toString(16).padStart(6,"0").toUpperCase()}`;r=_e(i);}return r}function nc(e){let{minValue:t,maxValue:r,step:o,formatOptions:n,value:i,defaultValue:a=NaN,onChange:l,locale:s,isDisabled:u,isReadOnly:c,commitBehavior:p="snap"}=e;i===null&&(i=NaN);let d=useCallback(U=>o===void 0||isNaN(o)?Xe(U,t,r):ft(U,t,r,o),[o,t,r]);i!==void 0&&!isNaN(i)&&p==="snap"&&(i=d(i)),!isNaN(a)&&p==="snap"&&(a=d(a));let[m,f]=ye(i,isNaN(a)?NaN:a,l),[y]=useState(m),[g,b]=useState(()=>isNaN(m)?"":new $t(s,n).format(m)),x=useMemo(()=>new oi(s,n),[s,n]),h=useMemo(()=>x.getNumberingSystem(g),[x,g]),v=useMemo(()=>new $t(s,{...n,numberingSystem:h}),[s,n,h]),C=useMemo(()=>v.resolvedOptions(),[v]),T=useCallback(U=>isNaN(U)||U===null?"":v.format(U),[v]),P=Nt({...e,value:m}),k=o!==void 0&&!isNaN(o)?o:1;C.style==="percent"&&(o===void 0||isNaN(o))&&(k=.01);let[S,w]=useState(m),[E,R]=useState(s),[_,D]=useState(n);(!Object.is(m,S)||s!==E||!aj(n,_))&&(b(T(m)),w(m),R(s),D(n));let F=useMemo(()=>x.parse(g),[x,g]),z=U=>{let q=U===void 0?g:U,W=F;if(U!==void 0&&(W=x.parse(q)),!q.length){f(NaN),b(i===void 0?"":T(m));return}if(isNaN(W)){b(T(m));return}let J=p==="snap"?d(W):W;J=x.parse(T(J));let me=J!==m;f(J),b(T(i===void 0?J:m)),me&&P.commitValidation();},N=(U,q=0)=>{let W=F;if(isNaN(W)){let J=isNaN(q)?0:q;return ft(J,t,r,k)}else {let J=ft(W,t,r,k);return U==="+"&&J>W||U==="-"&&J<W?J:ft(Tv(U,W,k),t,r,k)}},V=()=>{let U=N("+",t);U===m&&b(T(U)),f(U),P.commitValidation();},M=()=>{let U=N("-",r);U===m&&b(T(U)),f(U),P.commitValidation();},O=()=>{r!=null&&(f(ft(r,t,r,k)),P.commitValidation());},B=()=>{t!=null&&(f(t),P.commitValidation());},K=useMemo(()=>!u&&!c&&(isNaN(F)||r===void 0||isNaN(r)||ft(F,t,r,k)>F||Tv("+",F,k)<=r),[u,c,t,r,k,F]),I=useMemo(()=>!u&&!c&&(isNaN(F)||t===void 0||isNaN(t)||ft(F,t,r,k)<F||Tv("-",F,k)>=t),[u,c,t,r,k,F]);return {...P,validate:U=>x.isValidPartialNumber(U,t,r),increment:V,incrementToMax:O,decrement:M,decrementToMin:B,canIncrement:K,canDecrement:I,minValue:t,maxValue:r,numberValue:F,defaultNumberValue:isNaN(a)?y:a,setNumberValue:f,setInputValue:b,inputValue:g,commit:z}}function aj(e,t){if(e===t)return true;if(!e||!t)return false;let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return false;for(let n of r)if(t[n]!==e[n])return false;return true}function Tv(e,t,r){let o=e==="+"?t+r:t-r;if(t%1!==0||r%1!==0){let n=t.toString().split("."),i=r.toString().split("."),a=n[1]&&n[1].length||0,l=i[1]&&i[1].length||0,s=Math.pow(10,Math.max(a,l));t=Math.round(t*s),r=Math.round(r*s),o=e==="+"?t+r:t-r,o/=s;}return o}var sj=createContext({}),uj=e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,...n}=e;return n},oE=Rh(function(t,r){[t,r]=Re(t,r,sj);let{hoverProps:o,isHovered:n}=ie({...t,isDisabled:t.disabled}),{isFocused:i,isFocusVisible:a,focusProps:l}=oe({isTextInput:true,autoFocus:t.autoFocus}),s=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",u=Fe({...t,values:{isHovered:n,isFocused:i,isFocusVisible:a,isDisabled:t.disabled||false,isInvalid:s},defaultClassName:"react-aria-Input"});return jsx(xe.input,{...A(uj(t),l,o),...u,ref:r,"data-focused":i||void 0,"data-disabled":t.disabled||void 0,"data-hovered":n||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})});var ic=new WeakMap;function ac(e,t){let r=ic.get(e);if(!r)throw new Error("Unknown slider state");return `${r.id}-${t}`}function lc(e,t,r){let{labelProps:o,fieldProps:n}=Jt(e),i=e.orientation==="vertical";ic.set(t,{id:o.id??n.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:a}=Q(),{addGlobalListener:l,removeGlobalListener:s}=zt(),u=useRef(null),c=a==="rtl",p=useRef(null),{moveProps:d}=In({onMoveStart(){p.current=null;},onMove({deltaX:g,deltaY:b}){if(!r.current)return;let{height:x,width:h}=r.current.getBoundingClientRect(),v=i?x:h;p.current==null&&u.current!=null&&(p.current=t.getThumbPercent(u.current)*v);let C=i?b:g;if((i||c)&&(C=-C),p.current+=C,u.current!=null&&r.current){let T=Xe(p.current/v,0,1);t.setThumbPercent(u.current,T);}},onMoveEnd(){u.current!=null&&(t.setThumbDragging(u.current,false),u.current=null);}}),m=useRef(void 0),f=(g,b,x,h)=>{if(r.current&&!e.isDisabled&&t.values.every((v,C)=>!t.isThumbDragging(C))){let v=X(g.currentTarget),{height:C,width:T,top:P,left:k}=r.current.getBoundingClientRect(),S=i?C:T,_=((i?h:x)-(i?P:k))/S;(a==="rtl"||i)&&(_=1-_);let D=t.getPercentValue(_),F,z=t.values.findIndex(N=>D-N<0);if(z===0)F=z;else if(z===-1)F=t.values.length-1;else {let N=t.values[z-1],V=t.values[z];Math.abs(N-D)<Math.abs(V-D)?F=z-1:F=z;}F>=0&&t.isThumbEditable(F)?(g.preventDefault(),u.current=F,t.setFocusedThumb(F),m.current=b,t.setThumbDragging(u.current,true),t.setThumbValue(F,D),l(v,"mouseup",y,false),l(v,"touchend",y,false),l(v,"pointerup",y,false)):u.current=null;}},y=g=>{let b=g.pointerId??g.changedTouches?.[0].identifier,x=X(g.currentTarget);b===m.current&&(u.current!=null&&(t.setThumbDragging(u.current,false),u.current=null),s(x,"mouseup",y,false),s(x,"touchend",y,false),s(x,"pointerup",y,false));};return "htmlFor"in o&&o.htmlFor&&(delete o.htmlFor,o.onClick=g=>{G(g.currentTarget).getElementById(ac(t,0))?.focus(),ar("keyboard");}),{labelProps:o,groupProps:{role:"group",...n},trackProps:A({onMouseDown(g){g.button!==0||g.altKey||g.ctrlKey||g.metaKey||f(g,void 0,g.clientX,g.clientY);},onPointerDown(g){g.pointerType==="mouse"&&(g.button!==0||g.altKey||g.ctrlKey||g.metaKey)||f(g,g.pointerId,g.clientX,g.clientY);},onTouchStart(g){f(g,g.changedTouches[0].identifier,g.changedTouches[0].clientX,g.changedTouches[0].clientY);},style:{position:"relative",touchAction:"none"}},d),outputProps:{htmlFor:t.values.map((g,b)=>ac(t,b)).join(" "),"aria-live":"off"}}}function sc(e,t){let{index:r=0,isRequired:o,validationState:n,isInvalid:i,trackRef:a,inputRef:l,orientation:s=t.orientation,name:u,form:c}=e,p=e.isDisabled||t.isDisabled,d=s==="vertical",{direction:m}=Q(),{addGlobalListener:f,removeGlobalListener:y}=zt(),g=ic.get(t),{labelProps:b,fieldProps:x}=Jt({...e,id:ac(t,r),"aria-labelledby":`${g.id} ${e["aria-labelledby"]??""}`.trim()}),h=t.values[r],v=useCallback(()=>{l.current&&Ve(l.current);},[l]),C=t.focusedThumb===r;useEffect(()=>{C&&v();},[C,v]);let T=m==="rtl",P=useRef(null),{keyboardProps:k}=Le({onKeyDown(z){let{getThumbMaxValue:N,getThumbMinValue:V,decrementThumb:M,incrementThumb:O,setThumbValue:B,setThumbDragging:K,pageSize:I}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(z.key)){z.continuePropagation();return}switch(z.preventDefault(),K(r,true),z.key){case "PageUp":O(r,I);break;case "PageDown":M(r,I);break;case "Home":B(r,V(r));break;case "End":B(r,N(r));break}K(r,false);}}),{moveProps:S}=In({onMoveStart(){P.current=null,t.setThumbDragging(r,true);},onMove({deltaX:z,deltaY:N,pointerType:V,shiftKey:M}){let{getThumbPercent:O,setThumbPercent:B,decrementThumb:K,incrementThumb:I,step:H,pageSize:U}=t;if(!a.current)return;let{width:q,height:W}=a.current.getBoundingClientRect(),J=d?W:q;if(P.current==null&&(P.current=O(r)*J),V==="keyboard")z>0&&T||z<0&&!T||N>0?K(r,M?U:H):I(r,M?U:H);else {let me=d?N:z;(d||T)&&(me=-me),P.current+=me,B(r,Xe(P.current/J,0,1));}},onMoveEnd(){t.setThumbDragging(r,false);}});t.setThumbEditable(r,!p);let{focusableProps:w}=rt(A(e,{onFocus:()=>t.setFocusedThumb(r),onBlur:()=>t.setFocusedThumb(void 0)}),l),E=useRef(void 0),R=z=>{v(),E.current=z,t.setThumbDragging(r,true);let N=X(l.current);f(N,"mouseup",_,false),f(N,"touchend",_,false),f(N,"pointerup",_,false);},_=z=>{if((z.pointerId??z.changedTouches?.[0].identifier)===E.current){v(),t.setThumbDragging(r,false);let V=X(l.current);y(V,"mouseup",_,false),y(V,"touchend",_,false),y(V,"pointerup",_,false);}},D=t.getThumbPercent(r);(d||m==="rtl")&&(D=1-D);let F=p?{}:A(k,S,{onMouseDown:z=>{z.button!==0||z.altKey||z.ctrlKey||z.metaKey||R();},onPointerDown:z=>{z.button!==0||z.altKey||z.ctrlKey||z.metaKey||R(z.pointerId);},onTouchStart:z=>{R(z.changedTouches[0].identifier);}});return It(l,t.defaultValues[r],z=>{t.setThumbValue(r,z);}),{inputProps:A(w,x,{type:"range",tabIndex:p?void 0:0,min:t.getThumbMinValue(r),max:t.getThumbMaxValue(r),step:t.step,value:h,name:u,form:c,disabled:p,"aria-orientation":s,"aria-valuetext":t.getThumbValueLabel(r),"aria-required":o||void 0,"aria-invalid":i||n==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[g["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[g["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:z=>{t.setThumbValue(r,parseFloat($(z).value));}}),thumbProps:{...F,style:{position:"absolute",[d?"top":"left"]:`${D*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:b,isDragging:t.isThumbDragging(r),isDisabled:p,isFocused:C}}function Mm(e,t){let{trackRef:r,inputRef:o,orientation:n,channel:i,"aria-label":a,name:l,form:s}=e,{locale:u,direction:c}=Q();!e.label&&!a&&!e["aria-labelledby"]&&(a=t.value.getChannelName(i,u));let{groupProps:p,trackProps:d,labelProps:m,outputProps:f}=lc({...e,"aria-label":a},t,r),{inputProps:y,thumbProps:g}=sc({index:0,orientation:n,isDisabled:e.isDisabled,name:l,form:s,trackRef:r,inputRef:o},t),b=t.getDisplayColor(),x=()=>{let C;switch(n==="vertical"?C="top":c==="ltr"?C="right":C="left",i){case "hue":{let T=[0,60,120,180,240,300,360].map(P=>b.withChannelValue("hue",P).toString("css")).join(", ");return `linear-gradient(to ${C}, ${T})`}case "lightness":{let T=t.getThumbMinValue(0),P=t.getThumbMaxValue(0),k=b.withChannelValue(i,T).toString("css"),S=b.withChannelValue(i,(P-T)/2).toString("css"),w=b.withChannelValue(i,P).toString("css");return `linear-gradient(to ${C}, ${k}, ${S}, ${w})`}case "saturation":case "brightness":case "red":case "green":case "blue":case "alpha":{let T=b.withChannelValue(i,t.getThumbMinValue(0)).toString("css"),P=b.withChannelValue(i,t.getThumbMaxValue(0)).toString("css");return `linear-gradient(to ${C}, ${T}, ${P})`}default:throw new Error("Unknown color channel: "+i)}},h={forcedColorAdjust:"none"};i==="hue"?y["aria-valuetext"]+=`, ${b.getHueName(u)}`:i!=="alpha"&&(y["aria-valuetext"]+=`, ${b.getColorName(u)}`);let{visuallyHiddenProps:v}=Ot({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}});return {trackProps:{...A(p,d),style:{...d.style,...h,background:x()}},inputProps:{...y,style:{...y.style,...v.style}},thumbProps:{...g,style:{...g.style,...h}},labelProps:m,outputProps:f}}var fj=0,yj=100,bj=1;function uc(e){let{isDisabled:t=false,minValue:r=fj,maxValue:o=yj,numberFormatter:n,step:i=bj,orientation:a="horizontal"}=e,l=useMemo(()=>{let I=(o-r)/10;return I=ft(I,0,I+i,i),Math.max(I,i)},[i,o,r]),s=useCallback(I=>I?.map((H,U)=>{let q=U===0?r:I[U-1],W=U===I.length-1?o:I[U+1];return ft(H,q,W,i)}),[r,o,i]),u=useMemo(()=>s(aE(e.value)),[e.value,s]),c=useMemo(()=>s(aE(e.defaultValue)??[r]),[e.defaultValue,r,s]),p=lE(e.value,e.defaultValue,e.onChange),d=lE(e.value,e.defaultValue,e.onChangeEnd),[m,f]=ye(u,c,p),[y]=useState(m),[g,b]=useState(new Array(m.length).fill(false)),x=useRef(new Array(m.length).fill(true)),[h,v]=useState(void 0),C=useRef(m),T=useRef(g),P=I=>{C.current=I,f(I);},k=I=>{T.current=I,b(I);};function S(I){return (I-r)/(o-r)}function w(I){return I===0?r:m[I-1]}function E(I){return I===m.length-1?o:m[I+1]}function R(I){return x.current[I]}function _(I,H){x.current[I]=H;}function D(I,H){if(t||!R(I))return;let U=w(I),q=E(I);H=ft(H,U,q,i);let W=iE(C.current,I,H);P(W);}function F(I,H){if(t||!R(I))return;H&&(C.current=m);let U=T.current[I];T.current=iE(T.current,I,H),k(T.current),d&&U&&!T.current.some(Boolean)&&d(C.current);}let z=useRef(null);function N(I=m){switch(typeof I=="number"&&(I=[I]),I.length){case 0:return "";case 1:return n.format(I[0]);case 2:return n.formatRange(I[0],I[1]);default:{let H=I.map(q=>n.format(q)),U=z.current;return (!U||U.resolvedOptions().locale!==n.resolvedOptions().locale)&&(U=z.current=new Intl.ListFormat(n.resolvedOptions().locale,{type:"unit"})),U.format(H)}}}function V(I,H){D(I,O(H));}function M(I){return Math.round((I-r)/i)*i+r}function O(I){let H=I*(o-r)+r;return Xe(M(H),r,o)}function B(I,H=1){let U=Math.max(H,i);D(I,ft(m[I]+U,r,o,i));}function K(I,H=1){let U=Math.max(H,i);D(I,ft(m[I]-U,r,o,i));}return {values:m,defaultValues:e.defaultValue!==void 0?c:y,getThumbValue:I=>m[I],setThumbValue:D,setThumbPercent:V,isThumbDragging:I=>g[I],setThumbDragging:F,focusedThumb:h,setFocusedThumb:v,getThumbPercent:I=>S(m[I]),getValuePercent:S,getThumbValueLabel:I=>N(m[I]),getFormattedValue:N,getThumbMinValue:w,getThumbMaxValue:E,getPercentValue:O,isThumbEditable:R,setThumbEditable:_,incrementThumb:B,decrementThumb:K,step:i,pageSize:l,orientation:a,isDisabled:t}}function iE(e,t,r){return e[t]===r?e:[...e.slice(0,t),r,...e.slice(t+1)]}function aE(e){if(e!=null)return Array.isArray(e)?e:[e]}function lE(e,t,r){return o=>{r?.(typeof e=="number"||typeof t=="number"?o[0]:o);}}function Am(e){let{channel:t,colorSpace:r,value:o,defaultValue:n,onChange:i,locale:a,...l}=e;if(o==null&&n==null)throw new Error("useColorSliderState requires a value or defaultValue");o&&(o=si(o)),n&&(n=si(n));let[s,u]=ye(o,n,i),c=useMemo(()=>r&&s?s.toFormat(r):s,[s,r]),[p]=useState(s),d=n??p,m=useMemo(()=>r&&d?d.toFormat(r):d,[d,r]),f=useMemo(()=>new Intl.NumberFormat,[]),y=uc({...c.getChannelRange(t),...l,numberFormatter:f,value:c.getChannelValue(t),defaultValue:m.getChannelValue(t),onChange(x){u(c.withChannelValue(t,x));},onChangeEnd(x){e.onChangeEnd&&e.onChangeEnd(c.withChannelValue(t,x));}}),{step:g,pageSize:b}=c.getChannelRange(t);return {...y,value:c,setValue(x){u(si(x));},getDisplayColor(){switch(t){case "hue":return _e(`hsl(${c.getChannelValue("hue")}, 100%, 50%)`);case "lightness":case "brightness":case "saturation":case "red":case "green":case "blue":return c.withChannelValue("alpha",1);case "alpha":return c;default:throw new Error("Unknown color channel: "+t)}},getThumbValueLabel(){return c.formatChannelValue(t,a)},getFormattedValue(){return c.formatChannelValue(t,a)},step:g,pageSize:b,isDragging:y.isThumbDragging(0)}}function Om(e){let{color:t,colorName:r}=e,o=t||"#fff0",n=useMemo(()=>typeof o=="string"?_e(o):o,[o]),{locale:i}=Q(),a=re(e,{labelable:true}),l=ve(Pm,"@react-aria/color"),s=ee(e.id);return r||(r=n.getChannelValue("alpha")===0?l.format("transparent"):n.getColorName(i)),{colorSwatchProps:{...a,role:"img","aria-roledescription":l.format("colorSwatch"),"aria-label":[r,e["aria-label"]||""].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]?`${s} ${e["aria-labelledby"]}`:void 0,id:s,style:{backgroundColor:n.toString("css"),forcedColorAdjust:"none"}},color:n||null}}var sE={"ar-AE":{colorSwatchPicker:"\u062A\u063A\u064A\u064A\u0631\u0627\u062A \u0627\u0644\u0623\u0644\u0648\u0627\u0646",dropzoneLabel:"DropZone",selectPlaceholder:"\u062D\u062F\u062F \u0639\u0646\u0635\u0631\u064B\u0627",tableResizer:"\u0623\u062F\u0627\u0629 \u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062D\u062C\u0645"},"bg-BG":{colorSwatchPicker:"\u0426\u0432\u0435\u0442\u043E\u0432\u0438 \u043C\u043E\u0441\u0442\u0440\u0438",dropzoneLabel:"DropZone",selectPlaceholder:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043F\u0440\u0435\u0434\u043C\u0435\u0442",tableResizer:"\u041F\u0440\u0435\u043E\u0440\u0430\u0437\u043C\u0435\u0440\u0438\u0442\u0435\u043B"},"cs-CZ":{colorSwatchPicker:"Vzorky barev",dropzoneLabel:"M\xEDsto pro p\u0159eta\u017Een\xED",selectPlaceholder:"Vyberte polo\u017Eku",tableResizer:"Zm\u011Bna velikosti"},"da-DK":{colorSwatchPicker:"Farvepr\xF8ver",dropzoneLabel:"DropZone",selectPlaceholder:"V\xE6lg et element",tableResizer:"St\xF8rrelses\xE6ndring"},"de-DE":{colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element w\xE4hlen",tableResizer:"Gr\xF6\xDFenanpassung"},"el-GR":{colorSwatchPicker:"\u03A7\u03C1\u03C9\u03BC\u03B1\u03C4\u03B9\u03BA\u03AC \u03B4\u03B5\u03AF\u03B3\u03BC\u03B1\u03C4\u03B1",dropzoneLabel:"DropZone",selectPlaceholder:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03B1\u03BD\u03C4\u03B9\u03BA\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF",tableResizer:"\u0391\u03BB\u03BB\u03B1\u03B3\u03AE \u03BC\u03B5\u03B3\u03AD\u03B8\u03BF\u03C5\u03C2"},"en-US":{selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"},"es-ES":{colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un art\xEDculo",tableResizer:"Cambiador de tama\xF1o"},"et-EE":{colorSwatchPicker:"V\xE4rvin\xE4idised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige \xFCksus",tableResizer:"Suuruse muutja"},"fi-FI":{colorSwatchPicker:"V\xE4rimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"},"fr-FR":{colorSwatchPicker:"\xC9chantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"S\xE9lectionner un \xE9l\xE9ment",tableResizer:"Redimensionneur"},"he-IL":{colorSwatchPicker:"\u05D3\u05D5\u05D2\u05DE\u05D9\u05D5\u05EA \u05E6\u05D1\u05E2",dropzoneLabel:"DropZone",selectPlaceholder:"\u05D1\u05D7\u05E8 \u05E4\u05E8\u05D9\u05D8",tableResizer:"\u05E9\u05D9\u05E0\u05D5\u05D9 \u05D2\u05D5\u05D3\u05DC"},"hr-HR":{colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spu\u0161tanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veli\u010Dine"},"hu-HU":{colorSwatchPicker:"Sz\xEDnt\xE1rak",dropzoneLabel:"DropZone",selectPlaceholder:"V\xE1lasszon ki egy elemet",tableResizer:"\xC1tm\xE9retez\u0151"},"it-IT":{colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"},"ja-JP":{colorSwatchPicker:"\u30AB\u30E9\u30FC\u30B9\u30A6\u30A9\u30C3\u30C1",dropzoneLabel:"\u30C9\u30ED\u30C3\u30D7\u30BE\u30FC\u30F3",selectPlaceholder:"\u9805\u76EE\u3092\u9078\u629E",tableResizer:"\u30B5\u30A4\u30BA\u5909\u66F4\u30C4\u30FC\u30EB"},"ko-KR":{colorSwatchPicker:"\uC0C9\uC0C1 \uACAC\uBCF8",dropzoneLabel:"\uB4DC\uB86D \uC601\uC5ED",selectPlaceholder:"\uD56D\uBAA9 \uC120\uD0DD",tableResizer:"\uD06C\uAE30 \uC870\uC815\uAE30"},"lt-LT":{colorSwatchPicker:"Spalv\u0173 pavyzd\u017Eiai",dropzoneLabel:"\u201EDropZone\u201C",selectPlaceholder:"Pasirinkite element\u0105",tableResizer:"Dyd\u017Eio keitiklis"},"lv-LV":{colorSwatchPicker:"Kr\u0101su paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izv\u0113l\u0113ties vienumu",tableResizer:"Izm\u0113ra main\u012Bt\u0101js"},"nb-NO":{colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"St\xF8rrelsesendrer"},"nl-NL":{colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"},"pl-PL":{colorSwatchPicker:"Pr\xF3bki kolor\xF3w",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"},"pt-BR":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"pt-PT":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"ro-RO":{colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zon\u0103 de plasare",selectPlaceholder:"Selecta\u021Bi un element",tableResizer:"Instrument de redimensionare"},"ru-RU":{colorSwatchPicker:"\u0426\u0432\u0435\u0442\u043E\u0432\u044B\u0435 \u043E\u0431\u0440\u0430\u0437\u0446\u044B",dropzoneLabel:"DropZone",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442",tableResizer:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0440\u0430\u0437\u043C\u0435\u0440\u0430"},"sk-SK":{colorSwatchPicker:"Vzorkovn\xEDky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte polo\u017Eku",tableResizer:"N\xE1stroj na zmenu ve\u013Ekosti"},"sl-SI":{colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"},"sr-SP":{colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veli\u010Dine"},"sv-SE":{colorSwatchPicker:"F\xE4rgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"V\xE4lj en artikel",tableResizer:"Storleks\xE4ndrare"},"tr-TR":{colorSwatchPicker:"Renk \xF6rnekleri",dropzoneLabel:"B\u0131rakma B\xF6lgesi",selectPlaceholder:"Bir \xF6\u011Fe se\xE7in",tableResizer:"Yeniden boyutland\u0131r\u0131c\u0131"},"uk-UA":{colorSwatchPicker:"\u0417\u0440\u0430\u0437\u043A\u0438 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",dropzoneLabel:"DropZone",selectPlaceholder:"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0435\u043B\u0435\u043C\u0435\u043D\u0442",tableResizer:"\u0417\u0430\u0441\u0456\u0431 \u0437\u043C\u0456\u043D\u0435\u043D\u043D\u044F \u0440\u043E\u0437\u043C\u0456\u0440\u0443"},"zh-CN":{colorSwatchPicker:"\u989C\u8272\u8272\u677F",dropzoneLabel:"\u653E\u7F6E\u533A\u57DF",selectPlaceholder:"\u9009\u62E9\u4E00\u4E2A\u9879\u76EE",tableResizer:"\u5C3A\u5BF8\u8C03\u6574\u5668"},"zh-TW":{colorSwatchPicker:"\u8272\u7968",dropzoneLabel:"\u653E\u7F6E\u5340",selectPlaceholder:"\u9078\u53D6\u9805\u76EE",tableResizer:"\u5927\u5C0F\u8ABF\u6574\u5668"}};var ia=new WeakMap;function vj(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Nm(e,t){let r=ia.get(e);if(!r)throw new Error("Unknown list");return `${r.id}-option-${vj(t)}`}var kv=class{filter;root;whatToShow;_doc;_walkerStack=[];_currentNode;_currentSetFor=new Set;constructor(t,r,o,n){this._doc=t,this.root=r,this.filter=n??null,this.whatToShow=o??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,o,this._acceptNode));let i=r.shadowRoot;if(i){let a=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a);}}_acceptNode=t=>{if(t.nodeType===Node.ELEMENT_NODE){let r=t.shadowRoot;if(r){let o=this._doc.createTreeWalker(r,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(o),NodeFilter.FILTER_ACCEPT}else {if(typeof this.filter=="function")return this.filter(t);if(this.filter?.acceptNode)return this.filter.acceptNode(t);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP};get currentNode(){return this._currentNode}set currentNode(t){if(!Y(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");let r=[],o=t,n=t;for(this._currentNode=t;o&&o!==this.root;)if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let a=o,l=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});r.push(l),l.currentNode=n,this._currentSetFor.add(l),o=n=a.host;}else o=o.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=n,this._currentSetFor.add(i),this._walkerStack=r;}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return Y(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){let t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){let o;if(typeof this.filter=="function"?o=this.filter(t):this.filter?.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let n=this.nextNode();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){let t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}let r=t.previousNode();if(r){if(r.shadowRoot){let n;if(typeof this.filter=="function"?n=this.filter(r):this.filter?.acceptNode&&(n=this.filter.acceptNode(r)),n===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let i=this.lastChild();return i&&(this.currentNode=i),i}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}};function Fm(e,t,r,o){return nr()?new kv(e,t,r,o):e.createTreeWalker(t,r,o)}var wv=Un.createContext(null),Rv="react-aria-focus-scope-restore",nt=null;function Et(e){let{children:t,contain:r,restoreFocus:o,autoFocus:n,ownerDocument:i}=e,a=useRef(null),l=useRef(null),s=useRef([]),{parentNode:u}=useContext(wv)||{},c=useMemo(()=>new dc({scopeRef:s}),[s]);te(()=>{let m=u||_t.root;if(_t.getTreeNode(m.scopeRef)&&nt&&!Km(nt,m.scopeRef)){let f=_t.getTreeNode(nt);f&&(m=f);}m.addChild(c),_t.addNode(c);},[c,u]),te(()=>{let m=_t.getTreeNode(s);m&&(m.contain=!!r);},[r]),te(()=>{let m=a.current?.nextSibling,f=[],y=g=>g.stopPropagation();for(;m&&m!==l.current;)f.push(m),m.addEventListener(Rv,y),m=m.nextSibling;return s.current=f,()=>{for(let g of f)g.removeEventListener(Rv,y);}},[t]),Dj(s,o,r),Pj(s,r),kj(s,o,r,i),Sj(s,n),useEffect(()=>{let m=ue(G(s.current?s.current[0]:void 0)),f=null;if(no(m,s.current)){for(let y of _t.traverse())y.scopeRef&&no(m,y.scopeRef.current)&&(f=y);f===_t.getTreeNode(s)&&(nt=f.scopeRef);}},[s]),te(()=>()=>{let m=_t.getTreeNode(s)?.parent?.scopeRef??null;(s===nt||Km(s,nt))&&(!m||_t.getTreeNode(m))&&(nt=m),_t.removeTreeNode(s);},[s]);let p=useMemo(()=>xj(s),[]),d=useMemo(()=>({focusManager:p,parentNode:c}),[c,p]);return jsxs(wv.Provider,{value:d,children:[jsx("span",{"data-focus-scope-start":true,hidden:true,ref:a}),t,jsx("span",{"data-focus-scope-end":true,hidden:true,ref:l})]})}function _l(){return useContext(wv)?.focusManager}function xj(e){return {focusNext(t={}){let r=e.current,{from:o,tabbable:n,wrap:i,accept:a}=t,l=o||ue(G(r[0]??void 0)),s=r[0].previousElementSibling,u=aa(r),c=et(u,{tabbable:n,accept:a},r);c.currentNode=no(l,r)?l:s;let p=c.nextNode();return !p&&i&&(c.currentNode=s,p=c.nextNode()),p&&zr(p,true),p},focusPrevious(t={}){let r=e.current,{from:o,tabbable:n,wrap:i,accept:a}=t,l=o||ue(G(r[0]??void 0)),s=r[r.length-1].nextElementSibling,u=aa(r),c=et(u,{tabbable:n,accept:a},r);c.currentNode=no(l,r)?l:s;let p=c.previousNode();return !p&&i&&(c.currentNode=s,p=c.previousNode()),p&&zr(p,true),p},focusFirst(t={}){let r=e.current,{tabbable:o,accept:n}=t,i=aa(r),a=et(i,{tabbable:o,accept:n},r);a.currentNode=r[0].previousElementSibling;let l=a.nextNode();return l&&zr(l,true),l},focusLast(t={}){let r=e.current,{tabbable:o,accept:n}=t,i=aa(r),a=et(i,{tabbable:o,accept:n},r);a.currentNode=r[r.length-1].nextElementSibling;let l=a.previousNode();return l&&zr(l,true),l}}}function aa(e){return e[0].parentElement}function cc(e){let t=_t.getTreeNode(nt);for(;t&&t.scopeRef!==e;){if(t.contain)return false;t=t.parent;}return true}function Tj(e){if(!e.form)return Array.from(G(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(o=>!o.form);let t=e.form.elements.namedItem(e.name),r=X(e);return t instanceof r.RadioNodeList?Array.from(t).filter(o=>o instanceof r.HTMLInputElement):t instanceof r.HTMLInputElement?[t]:[]}function Cj(e){if(e.checked)return true;let t=Tj(e);return t.length>0&&!t.some(r=>r.checked)}function Pj(e,t){let r=useRef(void 0),o=useRef(void 0);te(()=>{let n=e.current;if(!t){o.current&&(cancelAnimationFrame(o.current),o.current=void 0);return}let i=G(n?n[0]:void 0),a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!cc(e)||u.isComposing)return;let c=ue(i),p=e.current;if(!p||!no(c,p))return;let d=aa(p),m=et(d,{tabbable:true},p);if(!c)return;m.currentNode=c;let f=u.shiftKey?m.previousNode():m.nextNode();f||(m.currentNode=u.shiftKey?p[p.length-1].nextElementSibling:p[0].previousElementSibling,f=u.shiftKey?m.previousNode():m.nextNode()),u.preventDefault(),f&&(zr(f,true),f instanceof X(f).HTMLInputElement&&f.select());},l=u=>{(!nt||Km(nt,e))&&no($(u),e.current)?(nt=e,r.current=$(u)):cc(e)&&!ui($(u),e)?r.current?r.current.focus():nt&&nt.current&&Iv(nt.current):cc(e)&&(r.current=$(u));},s=u=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{let c=Dt(),p=(c==="virtual"||c===null)&&ir()&&ji(),d=ue(i);if(!p&&d&&cc(e)&&!ui(d,e)){nt=e;let m=$(u);m&&m.isConnected?(r.current=m,r.current?.focus()):nt.current&&Iv(nt.current);}});};return i.addEventListener("keydown",a,false),i.addEventListener("focusin",l,false),n?.forEach(u=>u.addEventListener("focusin",l,false)),n?.forEach(u=>u.addEventListener("focusout",s,false)),()=>{i.removeEventListener("keydown",a,false),i.removeEventListener("focusin",l,false),n?.forEach(u=>u.removeEventListener("focusin",l,false)),n?.forEach(u=>u.removeEventListener("focusout",s,false));}},[e,t]),te(()=>()=>{o.current&&cancelAnimationFrame(o.current);},[o]);}function yE(e){return ui(e)}function no(e,t){return !e||!t?false:t.some(r=>Y(r,e))}function ui(e,t=null){if(e instanceof X(e).Element&&e.closest("[data-react-aria-top-layer]"))return true;for(let{scopeRef:r}of _t.traverse(_t.getTreeNode(t)))if(r&&no(e,r.current))return true;return false}function bE(e){return ui(e,nt)}function Km(e,t){let r=_t.getTreeNode(t)?.parent;for(;r;){if(r.scopeRef===e)return true;r=r.parent;}return false}function zr(e,t=false){if(e!=null&&!t)try{Ue(e);}catch{}else if(e!=null)try{e.focus();}catch{}}function gE(e,t=true){let r=e[0].previousElementSibling,o=aa(e),n=et(o,{tabbable:t},e);n.currentNode=r;let i=n.nextNode();return t&&!i&&(o=aa(e),n=et(o,{tabbable:false},e),n.currentNode=r,i=n.nextNode()),i}function Iv(e,t=true){zr(gE(e,t));}function Sj(e,t){let r=Un.useRef(t);useEffect(()=>{if(r.current){nt=e;let o=G(e.current?e.current[0]:void 0);!no(ue(o),nt.current)&&e.current&&Iv(e.current);}r.current=false;},[e]);}function Dj(e,t,r){te(()=>{if(t||r)return;let o=e.current,n=G(o?o[0]:void 0),i=a=>{let l=$(a);no(l,e.current)?nt=e:yE(l)||(nt=null);};return n.addEventListener("focusin",i,false),o?.forEach(a=>a.addEventListener("focusin",i,false)),()=>{n.removeEventListener("focusin",i,false),o?.forEach(a=>a.removeEventListener("focusin",i,false));}},[e,t,r]);}function uE(e){let t=_t.getTreeNode(nt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return false;t=t.parent;}return t?.scopeRef===e}function kj(e,t,r,o){let n=useRef(typeof document<"u"?ue(o??G(e.current?e.current[0]:void 0)):null);te(()=>{let i=e.current,a=G(i?i[0]:void 0);if(!t||r)return;let l=()=>{(!nt||Km(nt,e))&&no(ue(a),e.current)&&(nt=e);};return a.addEventListener("focusin",l,false),i?.forEach(s=>s.addEventListener("focusin",l,false)),()=>{a.removeEventListener("focusin",l,false),i?.forEach(s=>s.removeEventListener("focusin",l,false));}},[e,r]),te(()=>{let i=G(e.current?e.current[0]:void 0);if(!t)return;let a=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!cc(e)||l.isComposing)return;let s=ue(i);if(!s||!ui(s,e)||!uE(e))return;let u=_t.getTreeNode(e);if(!u)return;let c=u.nodeToRestore,p=et(i.body,{tabbable:true});p.currentNode=s;let d=l.shiftKey?p.previousNode():p.nextNode();if((!c||!c.isConnected||c===i.body)&&(c=void 0,u.nodeToRestore=void 0),(!d||!ui(d,e))&&c){p.currentNode=c;do d=l.shiftKey?p.previousNode():p.nextNode();while(ui(d,e));l.preventDefault(),l.stopPropagation(),d?zr(d,true):yE(c)?zr(c,true):s.blur();}};return r||i.addEventListener("keydown",a,true),()=>{r||i.removeEventListener("keydown",a,true);}},[e,t,r]),te(()=>{let i=G(e.current?e.current[0]:void 0);if(!t)return;let a=_t.getTreeNode(e);if(a)return a.nodeToRestore=n.current??void 0,()=>{let l=_t.getTreeNode(e);if(!l)return;let s=l.nodeToRestore,u=ue(i);if(t&&s&&(u&&ui(u,e)||u===i.body&&uE(e))){let c=_t.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let p=c.getTreeNode(e);for(;p;){if(p.nodeToRestore&&p.nodeToRestore.isConnected){cE(p.nodeToRestore);return}p=p.parent;}for(p=c.getTreeNode(e);p;){if(p.scopeRef&&p.scopeRef.current&&_t.getTreeNode(p.scopeRef)){let d=gE(p.scopeRef.current,true);cE(d);return}p=p.parent;}}});}}},[e,t]);}function cE(e){e.dispatchEvent(new CustomEvent(Rv,{bubbles:true,cancelable:true}))&&zr(e);}function et(e,t,r){let o=t?.tabbable?Hi:Xn,n=e?.nodeType===Node.ELEMENT_NODE?e:null,i=G(n),a=Fm(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(l){return Y(t?.from,l)||t?.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!Cj(l)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:o(l)&&(!r||no(l,r))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}function ci(e,t={}){return {focusNext(r={}){let o=e.current;if(!o)return null;let{from:n,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=r,s=n||ue(G(o)),u=et(o,{tabbable:i,accept:l});Y(o,s)&&(u.currentNode=s);let c=u.nextNode();return !c&&a&&(u.currentNode=o,c=u.nextNode()),c&&zr(c,true),c},focusPrevious(r=t){let o=e.current;if(!o)return null;let{from:n,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=r,s=n||ue(G(o)),u=et(o,{tabbable:i,accept:l});if(Y(o,s))u.currentNode=s;else {let p=zv(u);return p&&zr(p,true),p??null}let c=u.previousNode();if(!c&&a){u.currentNode=o;let p=zv(u);if(!p)return null;c=p;}return c&&zr(c,true),c??null},focusFirst(r=t){let o=e.current;if(!o)return null;let{tabbable:n=t.tabbable,accept:i=t.accept}=r,l=et(o,{tabbable:n,accept:i}).nextNode();return l&&zr(l,true),l},focusLast(r=t){let o=e.current;if(!o)return null;let{tabbable:n=t.tabbable,accept:i=t.accept}=r,a=et(o,{tabbable:n,accept:i}),l=zv(a);return l&&zr(l,true),l??null}}}function zv(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}var _v=class e{root;fastMap=new Map;constructor(){this.root=new dc({scopeRef:null}),this.fastMap.set(null,this.root);}get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,o){let n=this.fastMap.get(r??null);if(!n)return;let i=new dc({scopeRef:t});n.addChild(i),i.parent=n,this.fastMap.set(t,i),o&&(i.nodeToRestore=o);}addNode(t){this.fastMap.set(t.scopeRef,t);}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let o=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&no(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let n=r.children;o&&(o.removeChild(r),n.size>0&&n.forEach(i=>o&&o.addChild(i))),this.fastMap.delete(r.scopeRef);}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r);}clone(){let t=new e;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent?.scopeRef??null,r.nodeToRestore);return t}},dc=class{scopeRef;nodeToRestore;parent;children=new Set;contain=false;constructor(t){this.scopeRef=t.scopeRef;}addChild(t){this.children.add(t),t.parent=this;}removeChild(t){this.children.delete(t),t.parent=void 0;}},_t=new _v;function pc(e){return Yn()?e.altKey:e.ctrlKey}function qo(e,t){let r=`[data-key="${CSS.escape(String(t))}"]`,o=e.current?.dataset.collection;return o&&(r=`[data-collection="${CSS.escape(o)}"]${r}`),e.current?.querySelector(r)}var hE=new WeakMap;function vE(e){let t=ee();return hE.set(e,t),t}function xE(e){return hE.get(e)}var TE=1e3;function Vm(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:o}=e,n=useRef({search:"",timeout:void 0}),i=l=>{if(n.current.search.length>0&&l.key===" "){if(l.preventDefault(),(!("continuePropagation"in l)||"continuePropagation"in l&&!l.isPropagationStopped())&&l.stopPropagation(),n.current.search+=" ",t.getKeyForSearch!=null){let s=t.getKeyForSearch(n.current.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(n.current.search)),s!=null&&(r.setFocusedKey(s),o&&o(s));}clearTimeout(n.current.timeout),n.current.timeout=setTimeout(()=>{n.current.search="";},TE);}},a=l=>{let s=Rj(l.key);if(!(!s||l.ctrlKey||l.metaKey||l.altKey||!Y(l.currentTarget,$(l))||n.current.search.length===0&&s===" ")){if(n.current.search+=s,t.getKeyForSearch!=null){let u=t.getKeyForSearch(n.current.search,r.focusedKey);if(u==null&&(u=t.getKeyForSearch(n.current.search)),u!=null)r.setFocusedKey(u),o&&o(u),l.preventDefault(),"continuePropagation"in l||l.stopPropagation();else {n.current.search="",clearTimeout(n.current.timeout),n.current.timeout=void 0;return}}clearTimeout(n.current.timeout),n.current.timeout=setTimeout(()=>{n.current.search="";},TE);}};return useEffect(()=>{let l=n.current.timeout;return ()=>{clearTimeout(l);}},[n]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0,onKeyDown:t.getKeyForSearch?a:void 0}}}function Rj(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Mv(e,t){let r=useRef(true),o=useRef(null);te(()=>(r.current=true,()=>{r.current=false;}),[]),te(()=>{r.current?r.current=false:(!o.current||t.some((n,i)=>!Object.is(n,o[i])))&&e(),o.current=t;},t);}function di(e){let{selectionManager:t,keyboardDelegate:r,ref:o,autoFocus:n=false,shouldFocusWrap:i=false,disallowEmptySelection:a=false,disallowSelectAll:l=false,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=false,shouldUseVirtualFocus:p,allowsTabNavigation:d=false,scrollRef:m=o,linkBehavior:f="action",UNSTABLE_focusOnEntry:y}=e,{direction:g}=Q(),b=Yr(),x=z=>{if(z.altKey&&z.key==="Tab"&&z.preventDefault(),!o.current||!Y(o.current,$(z)))return;let N=(V,M)=>{if(V!=null){if(t.isLink(V)&&f==="selection"&&u&&!pc(z)){flushSync(()=>{t.setFocusedKey(V,M);});let O=qo(o,V),B=t.getItemProps(V);O&&b.open(O,z,B.href,B.routerOptions);return}if(t.setFocusedKey(V,M),t.isLink(V)&&f==="override")return;z.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&!pc(z)&&t.replaceSelection(V);}};switch(z.key){case "ArrowDown":{if(r.getKeyBelow){let V=t.focusedKey!=null?r.getKeyBelow?.(t.focusedKey):r.getFirstKey?.();V==null&&i&&(V=r.getFirstKey?.(t.focusedKey)),V!=null&&(z.preventDefault(),N(V));}break}case "ArrowUp":{if(r.getKeyAbove){let V=t.focusedKey!=null?r.getKeyAbove?.(t.focusedKey):r.getLastKey?.();V==null&&i&&(V=r.getLastKey?.(t.focusedKey)),V!=null&&(z.preventDefault(),N(V));}break}case "ArrowLeft":{if(r.getKeyLeftOf){let V=t.focusedKey!=null?r.getKeyLeftOf?.(t.focusedKey):r.getFirstKey?.();V==null&&i&&(V=g==="rtl"?r.getFirstKey?.(t.focusedKey):r.getLastKey?.(t.focusedKey)),V!=null&&(z.preventDefault(),N(V,g==="rtl"?"first":"last"));}break}case "ArrowRight":{if(r.getKeyRightOf){let V=t.focusedKey!=null?r.getKeyRightOf?.(t.focusedKey):r.getFirstKey?.();V==null&&i&&(V=g==="rtl"?r.getLastKey?.(t.focusedKey):r.getFirstKey?.(t.focusedKey)),V!=null&&(z.preventDefault(),N(V,g==="rtl"?"last":"first"));}break}case "Home":if(r.getFirstKey){if(t.focusedKey===null&&z.shiftKey)return;z.preventDefault();let V=r.getFirstKey(t.focusedKey,Bo(z));t.setFocusedKey(V),V!=null&&(Bo(z)&&z.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&t.replaceSelection(V));}break;case "End":if(r.getLastKey){if(t.focusedKey===null&&z.shiftKey)return;z.preventDefault();let V=r.getLastKey(t.focusedKey,Bo(z));t.setFocusedKey(V),V!=null&&(Bo(z)&&z.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&t.replaceSelection(V));}break;case "PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let V=r.getKeyPageBelow(t.focusedKey);V!=null&&(z.preventDefault(),N(V));}break;case "PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let V=r.getKeyPageAbove(t.focusedKey);V!=null&&(z.preventDefault(),N(V));}break;case "a":Bo(z)&&t.selectionMode==="multiple"&&l!==true&&(z.preventDefault(),t.selectAll());break;case "Escape":s==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(z.stopPropagation(),z.preventDefault(),t.clearSelection());break;case "Tab":if(!d){if(z.shiftKey)o.current.focus();else {let V=et(o.current,{tabbable:true}),M,O;do O=V.lastChild(),O&&(M=O);while(O);let B=G(o.current),K=ue(B);M&&(!Y(M,K)||K&&!Hi(K))&&Ve(M);}break}}},h=useRef({top:0,left:0});at(m,"scroll",()=>{h.current={top:m.current?.scrollTop??0,left:m.current?.scrollLeft??0};});let v=z=>{if(t.isFocused){Y(z.currentTarget,$(z))||t.setFocused(false);return}if(!Y(z.currentTarget,$(z)))return;let N=Dt();t.setFocused(true);let V=M=>{M!=null&&(t.setFocusedKey(M),u&&!t.isSelected(M)&&t.replaceSelection(M));};if(y&&(N==="keyboard"||N==="virtual"))V(y==="first"?r.getFirstKey?.():r.getLastKey?.());else if(t.focusedKey==null){let M=z.relatedTarget;M&&z.currentTarget.compareDocumentPosition(M)&Node.DOCUMENT_POSITION_FOLLOWING?V(t.lastSelectedKey??r.getLastKey?.()):V(t.firstSelectedKey??r.getFirstKey?.());}else m.current&&(m.current.scrollTop=h.current.top,m.current.scrollLeft=h.current.left);if(t.focusedKey!=null&&m.current){let M=qo(o,t.focusedKey),O=X(M);M instanceof O.HTMLElement&&(!Y(M,ue(O.document))&&!p&&Ve(M),(N==="keyboard"||y&&N==="virtual")&&kt(M,{containingElement:o.current}));}},C=z=>{Y(z.currentTarget,z.relatedTarget)||t.setFocused(false);},T=useRef(false);at(o,xu,p?z=>{let{detail:N}=z;z.stopPropagation(),t.setFocused(true),N?.focusStrategy==="first"&&(T.current=true);}:void 0);let P=r.getFirstKey?.()??null;Mv(()=>{if(T.current)if(P==null){let z=ue();cl(o.current),qn(z,null),t.collection.size>0&&(T.current=false);}else t.setFocusedKey(P),T.current=false;},[P,t.collection.size]),Mv(()=>{t.collection.size>0&&(T.current=false);},[t.focusedKey]),at(o,Pp,p?z=>{z.stopPropagation(),t.setFocused(false),z.detail?.clearFocusKey&&t.setFocusedKey(null);}:void 0);let k=useRef(n),S=useRef(false);useEffect(()=>{if(k.current){let z=null;n==="first"&&(z=r.getFirstKey?.()??null),n==="last"&&(z=r.getLastKey?.()??null);let N=t.selectedKeys;if(N.size){for(let V of N)if(t.canSelectItem(V)){z=V;break}}t.setFocused(true),t.setFocusedKey(z),z==null&&!p&&o.current&&Ue(o.current),t.collection.size>0&&(k.current=false,S.current=true);}});let w=useRef(t.focusedKey),E=useRef(null);useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==w.current||S.current)&&m.current&&o.current){let z=Dt(),N=qo(o,t.focusedKey),V=X(N);if(!(N instanceof V.HTMLElement))return;(z==="keyboard"||S.current)&&(E.current&&cancelAnimationFrame(E.current),E.current=requestAnimationFrame(()=>{m.current&&(jh(m.current,N),z!=="virtual"&&kt(N,{containingElement:o.current}));}));}!p&&t.isFocused&&t.focusedKey==null&&w.current!=null&&o.current&&Ue(o.current),w.current=t.focusedKey,S.current=false;}),useEffect(()=>()=>{E.current&&cancelAnimationFrame(E.current);},[]),at(o,"react-aria-focus-scope-restore",z=>{z.preventDefault(),t.setFocused(true);});let R={onKeyDown:x,onFocus:v,onBlur:C,onMouseDown(z){m.current===$(z)&&z.preventDefault();}},{typeSelectProps:_}=Vm({keyboardDelegate:r,selectionManager:t});c||(R=A(_,R));let D;p||(D=t.focusedKey==null?0:-1);let F=vE(t.collection);return {collectionProps:A(R,{tabIndex:D,"data-collection":F})}}var la=class{ref;constructor(t){this.ref=t;}getItemRect(t){let r=this.ref.current;if(!r)return null;let o=t!=null?qo(this.ref,t):null;if(!o)return null;let n=r.getBoundingClientRect(),i=o.getBoundingClientRect();return {x:i.left-n.left-r.clientLeft+r.scrollLeft,y:i.top-n.top-r.clientTop+r.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;return {width:t?.scrollWidth??0,height:t?.scrollHeight??0}}getVisibleRect(){let t=this.ref.current;return {x:t?.scrollLeft??0,y:t?.scrollTop??0,width:t?.clientWidth??0,height:t?.clientHeight??0}}};var Ct=class{collection;disabledKeys;disabledBehavior;ref;collator;layout;orientation;direction;layoutDelegate;constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new la(r.ref);}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new la(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0);}isDisabled(t){return this.disabledBehavior==="all"&&(t.props?.isDisabled||this.disabledKeys.has(t.key))&&t.props?.disabledBehavior!=="selection"}findNextNonDisabled(t,r,o=false){let n=t;for(;n!=null;){let i=this.collection.getItem(n);if(i?.type==="item"&&(o||!this.isDisabled(i)))return n;n=r(n);}return null}getNextKey(t,r){let o=t;return o=this.collection.getKeyAfter(o),this.findNextNonDisabled(o,n=>this.collection.getKeyAfter(n),r?.includeDisabled)}getPreviousKey(t,r){let o=t;return o=this.collection.getKeyBefore(o),this.findNextNonDisabled(o,n=>this.collection.getKeyBefore(n),r?.includeDisabled)}findKey(t,r,o){let n=t,i=this.layoutDelegate.getItemRect(n);if(!i||n==null)return null;let a=i;do{if(n=r(n),n==null)break;i=this.layoutDelegate.getItemRect(n);}while(i&&o(a,i)&&n!=null);return n}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}isReversed(t){let r=this.getNextKey(t),o=qo(this.ref,t);if(r!=null){let i=qo(this.ref,r);return !o||!i?false:o.getBoundingClientRect().top>i.getBoundingClientRect().top}let n=this.getPreviousKey(t);if(n!=null){let i=qo(this.ref,n);return !o||!i?false:i.getBoundingClientRect().top>o.getBoundingClientRect().top}return false}getKeyBelow(t,r){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,o=>this.getNextKey(o,r),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getPreviousKey(t,r):this.getNextKey(t,r):this.getNextKey(t,r)}getKeyAbove(t,r){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,o=>this.getPreviousKey(o,r),this.isSameRow):this.orientation==="vertical"?this.isReversed(t)?this.getNextKey(t,r):this.getPreviousKey(t,r):this.getPreviousKey(t,r)}getNextColumn(t,r,o){return r?this.getPreviousKey(t,o):this.getNextKey(t,o)}getKeyRightOf(t,r){let o=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[o]?(t=this.layoutDelegate[o](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[o](n),r?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl",r):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl",r),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl",r):null}getKeyLeftOf(t,r){let o=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[o]?(t=this.layoutDelegate[o](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[o](n),r?.includeDisabled)):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr",r):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr",r),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr",r):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,o=this.layoutDelegate.getItemRect(t);if(!o)return null;let n=this.isReversed(t);if(r&&!jt(r))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let a=Math.max(0,o.x+o.width-this.layoutDelegate.getVisibleRect().width);for(;o&&o.x>a&&i!=null;)i=this.getKeyAbove(i),o=i==null?null:this.layoutDelegate.getItemRect(i);}else {let a=this.layoutDelegate.getVisibleRect(),l=n?o.y-a.height:Math.max(0,o.y+o.height-a.height);for(;o&&o.y>l&&i!=null;)i=this.getKeyAbove(i),o=i==null?null:this.layoutDelegate.getItemRect(i);}return i??(n?this.getLastKey():this.getFirstKey())}getKeyPageBelow(t){let r=this.ref.current,o=this.layoutDelegate.getItemRect(t);if(!o)return null;let n=this.isReversed(t);if(r&&!jt(r))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,o.x-o.width+this.layoutDelegate.getVisibleRect().width);for(;o&&o.x<a&&i!=null;)i=this.getKeyBelow(i),o=i==null?null:this.layoutDelegate.getItemRect(i);}else {let a=Math.min(this.layoutDelegate.getContentSize().height,o.y-o.height+this.layoutDelegate.getVisibleRect().height);for(;o&&o.y<a&&i!=null;)i=this.getKeyBelow(i),o=i==null?null:this.layoutDelegate.getItemRect(i);}return i??(n?this.getFirstKey():this.getLastKey())}getKeyForSearch(t,r){if(!this.collator)return null;let o=this.collection,n=r||this.getFirstKey();for(;n!=null;){let i=o.getItem(n);if(!i)return null;let a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return n;n=this.getNextKey(n);}return null}};var Av=new Map;function Qt(e){let{locale:t}=Q(),r=t+(e?Object.entries(e).sort((n,i)=>n[0]<i[0]?-1:1).join():"");if(Av.has(r))return Av.get(r);let o=new Intl.Collator(t,e);return Av.set(r,o),o}function pi(e){let{selectionManager:t,collection:r,disabledKeys:o,ref:n,keyboardDelegate:i,layoutDelegate:a,orientation:l}=e,s=Qt({usage:"search",sensitivity:"base"}),u=t.disabledBehavior,c=useMemo(()=>i||new Ct({collection:r,disabledKeys:o,disabledBehavior:u,ref:n,collator:s,layoutDelegate:a,orientation:l}),[i,a,r,o,n,s,u,l]),{collectionProps:p}=di({...e,ref:n,selectionManager:t,keyboardDelegate:c});return {listProps:p}}function Ll(e,t,r){let o=re(e,{labelable:true}),n=e.selectionBehavior||"toggle",i=e.orientation||"vertical",a=e.linkBehavior||(n==="replace"?"action":"override");n==="toggle"&&a==="action"&&(a="override");let{listProps:l}=pi({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:s}=lt({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),u=ee(e.id);ia.set(t,{id:u,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:c,fieldProps:p}=Jt({...e,id:u,labelElementType:"span"});return {labelProps:c,listBoxProps:A(o,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox","aria-orientation":i,...A(p,l)})}}function He(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function hr(e){return sa(e,0)}function sa(e,t){if(t<0)return;let r=0;for(let o of e){if(r===t)return o;r++;}}function Xo(e){let t;for(let r of e)t=r;return t}function mc(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let o=[...PE(e,t),t],n=[...PE(e,r),r],i=o.slice(0,n.length).findIndex((a,l)=>a!==n[l]);return i!==-1?(t=o[i],r=n[i],t.index-r.index):o.findIndex(a=>a===r)>=0?1:(n.findIndex(a=>a===t)>=0,-1)}function PE(e,t){let r=[],o=t;for(;o?.parentKey!=null;)o=e.getItem(o.parentKey),o&&r.unshift(o);return r}var SE=new WeakMap;function ua(e){let t=SE.get(e);if(t!=null)return t;let r=0,o=n=>{for(let i of n)i.type==="section"?o(He(i,e)):i.type==="item"&&r++;};return o(e),SE.set(e,r),r}var Lj=500;function Bm(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:o,onLongPress:n,threshold:i=Lj,accessibilityDescription:a}=e,l=useRef(void 0),{addGlobalListener:s,removeGlobalListener:u}=zt(),{pressProps:c}=Ae({isDisabled:t,onPressStart(d){if(d.continuePropagation(),(d.pointerType==="mouse"||d.pointerType==="touch")&&(r&&r({...d,type:"longpressstart"}),l.current=setTimeout(()=>{d.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:true})),G(d.target).activeElement!==d.target&&Ve(d.target),n&&n({...d,type:"longpress"}),l.current=void 0;},i),d.pointerType==="touch")){let m=y=>{y.preventDefault();},f=X(d.target);s(d.target,"contextmenu",m,{once:true}),s(f,"pointerup",()=>{setTimeout(()=>{u(d.target,"contextmenu",m);},30);},{once:true});}},onPressEnd(d){l.current&&clearTimeout(l.current),o&&(d.pointerType==="mouse"||d.pointerType==="touch")&&o({...d,type:"longpressend"});}}),p=Tt(n&&!t?a:void 0);return {longPressProps:A(c,p)}}function wr(e){let{id:t,selectionManager:r,key:o,ref:n,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:p="action"}=e,d=Yr();t=ee(t);let m=O=>{if(O.pointerType==="keyboard"&&pc(O))r.toggleSelection(o);else {if(r.selectionMode==="none")return;if(r.isLink(o)){if(p==="selection"&&n.current){let B=r.getItemProps(o);d.open(n.current,O,B.href,B.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(p==="override"||p==="none")return}r.selectionMode==="single"?r.isSelected(o)&&!r.disallowEmptySelection?r.toggleSelection(o):r.replaceSelection(o):O&&O.shiftKey?r.extendSelection(o):r.selectionBehavior==="toggle"||O&&(Bo(O)||O.pointerType==="touch"||O.pointerType==="virtual")?r.toggleSelection(o):r.replaceSelection(o);}};useEffect(()=>{o===r.focusedKey&&r.isFocused&&(a?cl(n.current):l?l():ue(G(n.current))!==n.current&&n.current&&Ue(n.current));},[n,o,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),s=s||r.isDisabled(o);let f={};!a&&!s?f={tabIndex:o===r.focusedKey?0:-1,onFocus(O){$(O)===n.current&&r.setFocusedKey(o);}}:s&&(f.onMouseDown=O=>{O.preventDefault();}),useEffect(()=>{s&&r.focusedKey===o&&r.setFocusedKey(null);},[r,s,o]);let y=r.isLink(o)&&p==="override",g=u&&e.UNSTABLE_itemBehavior==="action",b=r.isLink(o)&&p!=="selection"&&p!=="none",x=!s&&r.canSelectItem(o)&&!y&&!g,h=(u||b)&&!s,v=h&&(r.selectionBehavior==="replace"?!x:!x||r.isEmpty),C=h&&x&&r.selectionBehavior==="replace",T=v||C,P=useRef(null),k=T&&x,S=useRef(false),w=useRef(false),E=r.getItemProps(o),R=O=>{u&&(u(),n.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:true}))),b&&n.current&&d.open(n.current,O,E.href,E.routerOptions);},_={ref:n};if(i?(_.onPressStart=O=>{P.current=O.pointerType,S.current=k,O.pointerType==="keyboard"&&(!T||EE(O.key))&&m(O);},c?(_.onPressUp=v?void 0:O=>{O.pointerType==="mouse"&&x&&m(O);},_.onPress=v?R:O=>{O.pointerType!=="keyboard"&&O.pointerType!=="mouse"&&x&&m(O);}):_.onPress=O=>{if(v||C&&O.pointerType!=="mouse"){if(O.pointerType==="keyboard"&&!kE(O.key))return;R(O);}else O.pointerType!=="keyboard"&&x&&m(O);}):(_.onPressStart=O=>{P.current=O.pointerType,S.current=k,w.current=v,x&&(O.pointerType==="mouse"&&!v||O.pointerType==="keyboard"&&(!h||EE(O.key)))&&m(O);},_.onPress=O=>{(O.pointerType==="touch"||O.pointerType==="pen"||O.pointerType==="virtual"||O.pointerType==="keyboard"&&T&&kE(O.key)||O.pointerType==="mouse"&&w.current)&&(T?R(O):x&&m(O));}),f["data-collection"]=xE(r.collection),f["data-key"]=o,_.preventFocusOnPress=a,a&&(_=A(_,{onPressStart(O){O.pointerType!=="touch"&&(r.setFocused(true),r.setFocusedKey(o));},onPress(O){O.pointerType==="touch"&&(r.setFocused(true),r.setFocusedKey(o));}})),E)for(let O of ["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])E[O]&&(_[O]=We(_[O],E[O]));let{pressProps:D,isPressed:F}=Ae(_),z=C?O=>{P.current==="mouse"&&(O.stopPropagation(),O.preventDefault(),R(O));}:void 0,{longPressProps:N}=Bm({isDisabled:!k,onLongPress(O){O.pointerType==="touch"&&(m(O),r.setSelectionBehavior("toggle"));}}),V=O=>{P.current==="touch"&&S.current&&O.preventDefault();},M=p!=="none"&&r.isLink(o)?O=>{Xr.isOpening||O.preventDefault();}:void 0;return {itemProps:A(f,x||v||a&&!s?D:{},k?N:{},{onDoubleClick:z,onDragStartCapture:V,onClick:M,id:t},a?{onMouseDown:O=>O.preventDefault()}:void 0),isPressed:F,isSelected:r.isSelected(o),isFocused:r.isFocused&&r.focusedKey===o,isDisabled:s,allowsSelection:x,hasAction:T}}function kE(e){return e==="Enter"}function EE(e){return e===" "}function Al(e,t,r){let{key:o}=e,n=ia.get(t),i=e.isDisabled??t.selectionManager.isDisabled(o),a=e.isSelected??t.selectionManager.isSelected(o),l=e.shouldSelectOnPressUp??n?.shouldSelectOnPressUp,s=e.shouldFocusOnHover??n?.shouldFocusOnHover,u=e.shouldUseVirtualFocus??n?.shouldUseVirtualFocus,c=e.isVirtualized??n?.isVirtualized,p=vt(void 0,r),d=vt(void 0,r),m={role:"option","aria-disabled":i||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?a:void 0,"aria-label":e["aria-label"],"aria-labelledby":p,"aria-describedby":d},f=t.collection.getItem(o);if(c){let S=Number(f?.index);m["aria-posinset"]=Number.isNaN(S)?void 0:S+1,m["aria-setsize"]=ua(t.collection);}let y=n?.onAction?()=>n?.onAction?.(o):void 0,g=Nm(t,o),{itemProps:b,isPressed:x,isFocused:h,hasAction:v,allowsSelection:C}=wr({selectionManager:t.selectionManager,key:o,ref:r,shouldSelectOnPressUp:l,allowsDifferentPressOrigin:l&&s,shouldUseVirtualFocus:u,isDisabled:i,onAction:y||f?.props?.onAction?We(f?.props?.onAction,y):void 0,linkBehavior:n?.linkBehavior,UNSTABLE_itemBehavior:n?.UNSTABLE_itemBehavior,id:g}),{hoverProps:T}=ie({isDisabled:i||!s,onHoverStart(){At()||(t.selectionManager.setFocused(true),t.selectionManager.setFocusedKey(o));}}),P=re(f?.props);delete P.id;let k=Jn(f?.props);return {optionProps:{...m,...A(P,b,T,k),id:g},labelProps:{id:p},descriptionProps:{id:d},isFocused:h,isFocusVisible:h&&t.selectionManager.isFocused&&At(),isSelected:a,isDisabled:i,isPressed:x,allowsSelection:C,hasAction:v}}function Ol(e){let{heading:t,"aria-label":r}=e,o=vt([!!t]);return {itemProps:{role:"presentation"},headingProps:t?{id:o,role:"presentation",onMouseDown:n=>{n.preventDefault();}}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?o:void 0}}}var Ft=createContext({}),_n=createContext(null),Po=forwardRef(function(t,r){let{render:o}=useContext(_n);return jsx(Fragment,{children:o(t,r)})});function ca(e,t){let r=e?.renderDropIndicator,o=e?.isVirtualDragging?.(),n=useCallback(i=>{if(o||t?.isDropTarget(i))return r?r(i):jsx(Po,{target:i})},[t?.target,o,r]);return e?.useDropIndicator?n:void 0}function Nl(e,t,r){let o=e.focusedKey,n=null;if(t?.isVirtualDragging?.()&&r?.target?.type==="item"&&(n=r.target.key,r.target.dropPosition==="after")){let i=r.collection.getKeyAfter(n),a=null;if(i!=null){let l=r.collection.getItem(n)?.level??0;for(;i!=null;){let s=r.collection.getItem(i);if(!s)break;if(s.type!=="item"){i=r.collection.getKeyAfter(i);continue}if((s.level??0)<=l)break;a=i,i=r.collection.getKeyAfter(i);}}n=i??a??n;}return useMemo(()=>new Set([o,n].filter(i=>i!=null)),[o,n])}var Fl=createContext({}),Hm=sr(Ou,function(t,r){return [t,r]=Re(t,r,Fl),jsx(xe.header,{className:"react-aria-Header",...t,ref:r,children:t.children})});function da(e){let t=version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var pa=class{keyMap=new Map;iterable;firstKey=null;lastKey=null;_size;constructor(t){this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let l of a.childNodes)r(l);};for(let a of t)r(a);let o=null,n=0,i=0;for(let[a,l]of this.keyMap)o?(o.nextKey=a,l.prevKey=o.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=n++),(l.type==="section"||l.type==="item")&&i++,o=l,o.nextKey=void 0;this._size=i,this.lastKey=o?.key??null;}*[Symbol.iterator](){yield*this.iterable;}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey??null:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){let r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}};var $r=class e extends Set{anchorKey;currentKey;constructor(t,r,o){super(t),t instanceof e?(this.anchorKey=r??t.anchorKey,this.currentKey=o??t.currentKey):(this.anchorKey=r??null,this.currentKey=o??null);}};function jj(e,t){if(e.size!==t.size)return false;for(let r of e)if(!t.has(r))return false;return true}function So(e){let{selectionMode:t="none",disallowEmptySelection:r=false,allowDuplicateSelectionEvents:o,selectionBehavior:n="toggle",disabledBehavior:i="all"}=e,a=useRef(false),[,l]=useState(false),s=useRef(null),u=useRef(null),[,c]=useState(null),p=useMemo(()=>RE(e.selectedKeys),[e.selectedKeys]),d=useMemo(()=>RE(e.defaultSelectedKeys,new $r),[e.defaultSelectedKeys]),[m,f]=ye(p,d,e.onSelectionChange),y=useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[g,b]=useState(n);n==="replace"&&g==="toggle"&&typeof m=="object"&&m.size===0&&b("replace");let x=useRef(n);return useEffect(()=>{n!==x.current&&(b(n),x.current=n);},[n]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:g,setSelectionBehavior:b,get isFocused(){return a.current},setFocused(h){a.current=h,l(h);},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(h,v="first"){s.current=h,u.current=v,c(h);},selectedKeys:m,setSelectedKeys(h){(o||!jj(h,m))&&f(h);},disabledKeys:y,disabledBehavior:i}}function RE(e,t){return e?e==="all"?"all":new $r(e):t}var Do=class e{collection;state;allowsCellSelection;_isSelectAll;layoutDelegate;fullCollection;constructor(t,r,o){this.collection=t,this.state=r,this.allowsCellSelection=o?.allowsCellSelection??false,this._isSelectAll=null,this.layoutDelegate=o?.layoutDelegate||null,this.fullCollection=o?.fullCollection||null;}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t);}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t);}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r);}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return false;let r=this.getKey(t);return r==null?false:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return false;if(this.state.selectedKeys==="all")return true;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(o=>r.has(o)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&mc(this.collection,o,t)<0)&&(t=o);}return t?.key??null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&mc(this.collection,o,t)>0)&&(t=o);}return t?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let o;if(this.state.selectedKeys==="all")o=new $r([r],r,r);else {let n=this.state.selectedKeys,i=n.anchorKey??r;o=new $r(n,i,r);for(let a of this.getKeyRange(i,n.currentKey??r))o.delete(a);for(let a of this.getKeyRange(r,i))this.canSelectItem(a)&&o.add(a);}this.state.setSelectedKeys(o);}getKeyRange(t,r){let o=this.collection.getItem(t),n=this.collection.getItem(r);return o&&n?mc(this.collection,o,n)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],n=t;for(;n!=null;){let i=this.collection.getItem(n);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&o.push(n),n===r)return o;n=this.collection.getKeyAfter(n);}return []}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return !r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let o=new $r(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);o.has(r)?o.delete(r):this.canSelectItem(r)&&(o.add(r),o.anchorKey=r,o.currentKey=r),!(this.disallowEmptySelection&&o.size===0)&&this.state.setSelectedKeys(o);}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let o=this.canSelectItem(r)?new $r([r],r,r):new $r;this.state.setSelectedKeys(o);}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new $r;for(let o of t){let n=this.getKey(o);if(n!=null&&(r.add(n),this.selectionMode==="single"))break}this.state.setSelectedKeys(r);}getSelectAllKeys(){let t=this.fullCollection??this.collection,r=[],o=n=>{for(;n!=null;){if(this.canSelectItemIn(n,t)){let i=t.getItem(n);i?.type==="item"&&r.push(n),i?.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&o(hr(He(i,t))?.key??null);}n=t.getKeyAfter(n);}};return o(t.getFirstKey()),r}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all");}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new $r);}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll();}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t));}isSelectionEqual(t){if(t===this.state.selectedKeys)return true;let r=this.selectedKeys;if(t.size!==r.size)return false;for(let o of t)if(!r.has(o))return false;for(let o of r)if(!t.has(o))return false;return true}canSelectItem(t){return this.canSelectItemIn(t,this.collection)}canSelectItemIn(t,r){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return false;let o=r.getItem(t);return !(!o||o?.props?.isDisabled||o.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){let r=this.collection.getItem(t);return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!r?.props?.isDisabled)&&r?.props?.disabledBehavior!=="selection"}isLink(t){return !!this.collection.getItem(t)?.props?.href}getItemProps(t){return this.collection.getItem(t)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}};var jm=class{context;cache=new WeakMap;build(t,r){return this.context=r,IE(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:o}=t;if(Un.isValidElement(r)&&r.type===Un.Fragment)yield*this.iterateCollection({children:r.props.children,items:o});else if(typeof r=="function"){if(!o)throw new Error("props.children was a function but props.items is missing");let n=0;for(let i of o)yield*this.getFullNode({value:i,index:n},{renderer:r}),n++;}else {let n=[];Un.Children.forEach(r,a=>{a&&n.push(a);});let i=0;for(let a of n){let l=this.getFullNode({element:a,index:i},{});for(let s of l)i++,yield s;}}}getKey(t,r,o,n){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return `${n}${r.key}`;let i=r.value;if(i!=null){let a=i.key??i.id;if(a==null)throw new Error("No key found for item");return a}return n?`${n}.${r.index}`:`$.${r.index}`}getChildState(t,r){return {renderer:r.renderer||t.renderer}}*getFullNode(t,r,o,n){if(Un.isValidElement(t.element)&&t.element.type===Un.Fragment){let s=[];Un.Children.forEach(t.element.props.children,c=>{s.push(c);});let u=t.index??0;for(let c of s)yield*this.getFullNode({element:c,index:u++},r,o,n);return}let i=t.element;if(!i&&t.value&&r&&r.renderer){let s=this.cache.get(t.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=t.index,s.parentKey=n?n.key:null,yield s;return}i=r.renderer(t.value);}if(Un.isValidElement(i)){let s=i.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let d=i.type;throw new Error(`Unknown element <${d}> in collection.`)}let u=s.getCollectionNode(i.props,this.context),c=t.index??0,p=u.next();for(;!p.done&&p.value;){let d=p.value;t.index=c;let m=d.key??null;m==null&&(m=d.element?null:this.getKey(i,t,r,o));let y=[...this.getFullNode({...d,key:m,index:c,wrapper:Gj(t.wrapper,d.wrapper)},this.getChildState(r,d),o?`${o}${i.key}`:i.key,n)];for(let g of y){if(g.value=d.value??t.value??null,g.value&&this.cache.set(g.value,g),t.type&&g.type!==t.type)throw new Error(`Unsupported type <${Kv(g.type)}> in <${Kv(n?.type??"unknown parent type")}>. Only <${Kv(t.type)}> is supported.`);c++,yield g;}p=u.next(y);}return}if(t.key==null||t.type==null)return;let a=this,l={type:t.type,props:t.props,key:t.key,parentKey:n?n.key:null,value:t.value??null,level:(n?.level??0)+(n?.type==="item"?1:0),index:t.index,rendered:t.rendered,textValue:t.textValue??"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||false,childNodes:IE(function*(){if(!t.hasChildNodes||!t.childNodes)return;let s=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${l.key}${u.key}`);let c=a.getFullNode({...u,index:s},a.getChildState(r,u),l.key,l);for(let p of c)s++,yield p;}})};yield l;}};function IE(e){let t=[],r=null;return {*[Symbol.iterator](){for(let o of t)yield o;r||(r=e());for(let o of r)t.push(o),yield o;}}}function Gj(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Kv(e){return e[0].toUpperCase()+e.slice(1)}function Kl(e,t,r){let o=useMemo(()=>new jm,[]),{children:n,items:i,collection:a}=e;return useMemo(()=>{if(a)return a;let s=o.build({children:n,items:i},r);return t(s)},[o,n,i,a,r,t])}function Mt(e){let{filter:t,layoutDelegate:r}=e,o=So(e),n=useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=useCallback(u=>t?new pa(t(u)):new pa(u),[t]),a=useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=Kl(e,i,a),s=useMemo(()=>new Do(l,o,{layoutDelegate:r}),[l,o,r]);return ME(l,s),{collection:l,disabledKeys:n,selectionManager:s}}function Um(e,t){let r=useMemo(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),o=e.selectionManager.withCollection(r);return ME(r,o),{collection:r,selectionManager:o,disabledKeys:e.disabledKeys}}function ME(e,t){let r=useRef(null);useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){let o=r.current.getKeyAfter(t.focusedKey),n=null;for(;o!=null;){let i=e.getItem(o);if(i&&i.type==="item"&&!t.isDisabled(o)){n=o;break}o=r.current.getKeyAfter(o);}if(n==null)for(o=r.current.getKeyBefore(t.focusedKey);o!=null;){let i=e.getItem(o);if(i&&i.type==="item"&&!t.isDisabled(o)){n=o;break}o=r.current.getKeyBefore(o);}t.setFocusedKey(n);}r.current=e;},[e,t]);}function fa(e,t){let{collection:r,onLoadMore:o,scrollOffset:n=1}=e,i=useRef(null),a=Pe(l=>{for(let s of l)s.isIntersecting&&o&&o();});te(()=>(t.current&&(i.current=new IntersectionObserver(a,{root:Ze(t?.current),rootMargin:`0px ${100*n}% ${100*n}% ${100*n}%`}),i.current.observe(t.current)),()=>{i.current&&i.current.disconnect();}),[r,t,n]);}var AE=createContext(null);function mi(e){let t=useRef({});return jsx(AE.Provider,{value:t,children:e.children})}var OE=forwardRef(function(t,r){let{name:o,isVisible:n=true,children:i,className:a,style:l,render:s,...u}=t,[c,p]=useState(n?"visible":"hidden"),d=useContext(AE);if(!d)throw new Error("<SharedElement> must be rendered inside a <SharedElementTransition>");n&&c==="hidden"&&p("visible"),r=ce(r),te(()=>{let f=r.current,y=d.current,g=y?.[o],b=null;if(f&&n&&g){p("visible");let x=f.getAnimations(),h=g.style.map(([v,C])=>{let T=f.style[v];if(v==="translate"){let P=g.rect,k=f.getBoundingClientRect(),S=P.left-k?.left,w=P.top-k?.top;f.style.translate=`${S}px ${w}px`;}else f.style[v]=C;return [v,T]});for(let v of f.getAnimations())x.includes(v)||v.cancel();b=requestAnimationFrame(()=>{b=null;for(let[v,C]of h)f.style[v]=C;}),delete y?.[o];}else f&&n&&!g?(queueMicrotask(()=>flushSync(()=>p("entering"))),b=requestAnimationFrame(()=>{b=null,p("visible");})):f&&!n&&queueMicrotask(()=>{y?.[o]?(delete y?.[o],flushSync(()=>p("exiting")),Promise.all(f.getAnimations().map(x=>x.finished)).then(()=>p("hidden")).catch(()=>{})):p("hidden");});return ()=>{if(b!=null&&cancelAnimationFrame(b),f&&f.isConnected&&!f.hasAttribute("data-exiting")){let x=window.getComputedStyle(f);if(x.transitionProperty!=="none"){let h=x.transitionProperty.split(/\s*,\s*/);y[o]={rect:f.getBoundingClientRect(),style:h.map(v=>[v,x[v]])};}}}},[r,d,o,n]);let m=Fe({children:i,className:a,style:l,render:s,values:{isEntering:c==="entering",isExiting:c==="exiting"}});return c==="hidden"?null:jsx(xe.div,{...u,...m,ref:r,"data-entering":c==="entering"||void 0,"data-exiting":c==="exiting"||void 0})});var Mn=createContext({isSelected:false});forwardRef(function(t,r){[t,r]=Re(t,r,Mn);let{isSelected:o,...n}=t;return jsx(OE,{...n,ref:r,className:t.className||"react-aria-SelectionIndicator",name:"SelectionIndicator",isVisible:o})});function Vv(e){let t=re(e,{labelable:true}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var Wm=createContext({});var Ln=createContext(null),io=createContext(null),Hv=forwardRef(function(t,r){[t,r]=Re(t,r,Ln);let o=useContext(io);return o?jsx(HE,{state:o,props:t,listBoxRef:r}):jsx(to,{content:jsx(wt,{...t}),children:n=>jsx(i2,{props:t,listBoxRef:r,collection:n})})});function i2({props:e,listBoxRef:t,collection:r}){e={...e,collection:r,children:null,items:null};let{layoutDelegate:o}=useContext(ze),n=Mt({...e,layoutDelegate:o});return jsx(HE,{state:n,props:e,listBoxRef:t})}function HE({state:e,props:t,listBoxRef:r}){[t,r]=Re(t,r,Ho);let{dragAndDropHooks:o,layout:n="stack",orientation:i="vertical",filter:a}=t,l=Um(e,a),{collection:s,selectionManager:u}=l,c=!!o?.useDraggableCollectionState,p=!!o?.useDroppableCollectionState,{direction:d}=Q(),{disabledBehavior:m,disabledKeys:f}=u,y=Qt({usage:"search",sensitivity:"base"}),{isVirtualized:g,layoutDelegate:b,dropTargetDelegate:x,CollectionRoot:h}=useContext(ze),v=useMemo(()=>t.keyboardDelegate||new Ct({collection:s,collator:y,ref:r,disabledKeys:f,disabledBehavior:m,layout:n,orientation:i,direction:d,layoutDelegate:b}),[s,y,r,m,f,i,d,t.keyboardDelegate,n,b]),{listBoxProps:C}=Ll({...t,shouldSelectOnPressUp:c||t.shouldSelectOnPressUp,keyboardDelegate:v,isVirtualized:g},l,r),T=useRef(c),P=useRef(p);useEffect(()=>{process.env.NODE_ENV!=="production"&&(T.current!==c&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),P.current!==p&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[c,p]);let k,S,w,E=false,R=null,_=useRef(null);if(c&&o){k=o.useDraggableCollectionState({collection:s,selectionManager:u,preview:o.renderDragPreview?_:void 0}),o.useDraggableCollection({},k,r);let K=o.DragPreview;R=o.renderDragPreview?jsx(K,{ref:_,children:o.renderDragPreview}):null;}if(p&&o){S=o.useDroppableCollectionState({collection:s,selectionManager:u});let K=o.dropTargetDelegate||x||new o.ListDropTargetDelegate(s,r,{orientation:i,layout:n,direction:d});w=o.useDroppableCollection({keyboardDelegate:v,dropTargetDelegate:K},S,r),E=S.isDropTarget({type:"root"});}let{focusProps:D,isFocused:F,isFocusVisible:z}=oe(),N=l.collection.size===0,V={isDropTarget:E,isEmpty:N,isFocused:F,isFocusVisible:z,layout:t.layout||"stack",orientation:i,state:l},M=Fe({...t,children:void 0,defaultClassName:"react-aria-ListBox",values:V}),O=null;N&&t.renderEmptyState&&(O=jsx("div",{role:"option",style:{display:"contents"},children:t.renderEmptyState(V)}));let B=re(t,{global:true});return jsx(Et,{children:jsxs(xe.div,{...A(B,M,C,D,w?.collectionProps),ref:r,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":E||void 0,"data-empty":N||void 0,"data-focused":F||void 0,"data-focus-visible":z||void 0,"data-layout":t.layout||"stack","data-orientation":i,children:[jsx(ct,{values:[[Ln,t],[io,l],[Ft,{dragAndDropHooks:o,dragState:k,dropState:S}],[Wm,{elementType:"div"}],[_n,{render:a2}],[em,{name:"ListBoxSection",render:$E}]],children:jsx(mi,{children:jsx(h,{collection:s,scrollRef:r,persistedKeys:Nl(u,o,S),renderDropIndicator:ca(o,S)})})}),O,R]})})}function $E(e,t,r,o="react-aria-ListBoxSection"){let n=useContext(io),{dragAndDropHooks:i,dropState:a}=useContext(Ft),{CollectionBranch:l}=useContext(ze),[s,u]=Mu(),{headingProps:c,groupProps:p}=Ol({heading:u,"aria-label":e["aria-label"]??void 0}),d=Fe({...e,children:void 0,defaultClassName:o,values:void 0}),m=re(e,{global:true});return delete m.id,jsx(xe.section,{...A(m,d,p),ref:t,children:jsx(Fl.Provider,{value:{...c,ref:s},children:jsx(l,{collection:n.collection,parent:r,renderDropIndicator:ca(i,a)})})})}var $v=Kr(ti,$E),jv=sr(Zi,function(t,r,o){let n=ce(r),i=useContext(io),{dragAndDropHooks:a,dragState:l,dropState:s}=useContext(Ft),u=l&&!(l.isDisabled||l.selectionManager.isDisabled(o.key)),{optionProps:c,labelProps:p,descriptionProps:d,...m}=Al({key:o.key,"aria-label":t?.["aria-label"]},i,n),{hoverProps:f,isHovered:y}=ie({isDisabled:!m.allowsSelection&&!m.hasAction&&!u,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),{keyboardProps:g}=Le(t),{focusProps:b}=Zt(t),x=null;l&&a&&(x=a.useDraggableItem({key:o.key,hasAction:m.hasAction},l,n));let h=null;s&&a&&(h=a.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},s,n));let v=l&&l.isDragging(o.key),C=Fe({...t,children:t.children,defaultClassName:"react-aria-ListBoxItem",values:{...m,isHovered:y,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!l,isDragging:v,isDropTarget:h?.isDropTarget}});useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.");},[o.textValue]);let T=t.href?xe.a:xe.div,P=re(t,{global:true});return delete P.id,delete P.onClick,t.href&&c.tabIndex==null&&(c.tabIndex=-1),jsx(T,{...A(P,C,c,f,g,b,x?.dragProps,h?.dropProps),ref:n,"data-allows-dragging":!!l||void 0,"data-selected":m.isSelected||void 0,"data-disabled":m.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":m.isFocusVisible||void 0,"data-pressed":m.isPressed||void 0,"data-dragging":v||void 0,"data-drop-target":h?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,children:jsx(ct,{values:[[Co,{slots:{[Qr]:p,label:p,description:d}}],[Mn,{isSelected:m.isSelected}]],children:C.children})})});function a2(e,t){t=ce(t);let{dragAndDropHooks:r,dropState:o}=useContext(Ft),{dropIndicatorProps:n,isHidden:i,isDropTarget:a}=r.useDropIndicator(e,o,t);return i?null:jsx(s2,{...e,dropIndicatorProps:n,isDropTarget:a,ref:t})}function l2(e,t){let{dropIndicatorProps:r,isDropTarget:o,...n}=e,i=Fe({...n,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return jsx(Fragment,{children:jsx(xe.div,{...r,...i,role:"option",ref:t,"data-drop-target":o||void 0})})}var s2=forwardRef(l2);sr(Dn,function(t,r,o){let n=useContext(io),{isLoading:i,onLoadMore:a,scrollOffset:l,...s}=t,u=useRef(null),c=useMemo(()=>({onLoadMore:a,collection:n?.collection,sentinelRef:u,scrollOffset:l}),[a,l,n?.collection]);fa(c,u);let p=Fe({...s,children:o.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),d={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:da(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})}),i&&p.children&&jsx(Fragment,{children:jsx(xe.div,{...A(re(t,{global:true}),d),...p,role:"option",ref:r,children:p.children})})]})});var c2=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function GE(e){return e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer!==void 0}var fc=new WeakMap,Rr=[];function fi(e,t){let r=X(e?.[0]),o=t instanceof r.Element?{root:t}:t,n=o?.root??G(e?.[0]).body,i=o?.shouldUseInert&&c2,a=new Set(e),l=new Set,s=g=>i&&g instanceof r.HTMLElement?g.inert:g.getAttribute("aria-hidden")==="true",u=(g,b)=>{i&&g instanceof r.HTMLElement?g.inert=b:b?g.setAttribute("aria-hidden","true"):(g.removeAttribute("aria-hidden"),g instanceof r.HTMLElement&&(g.inert=false));},c=new Set;if(nr())for(let g of e){let b=g;for(;b&&b!==n;){let x=b.getRootNode();"shadowRoot"in x&&c.add(x.shadowRoot),b=x.parentNode;}}let p=g=>{for(let v of g.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))a.add(v);let b=v=>{if(l.has(v)||a.has(v)||v.parentElement&&l.has(v.parentElement)&&v.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let C of a)if(Y(v,C))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},x=Fm(G(g),g,NodeFilter.SHOW_ELEMENT,{acceptNode:b}),h=b(g);if(h===NodeFilter.FILTER_ACCEPT&&d(g),h!==NodeFilter.FILTER_REJECT){let v=x.nextNode();for(;v!=null;)d(v),v=x.nextNode();}},d=g=>{let b=fc.get(g)??0;s(g)&&b===0||(b===0&&u(g,true),l.add(g),fc.set(g,b+1));};Rr.length&&Rr[Rr.length-1].disconnect(),p(n);let m=new MutationObserver(g=>{for(let b of g)if(b.type==="childList"){if(b.target.isConnected&&![...a,...l].some(x=>Y(x,b.target)))for(let x of b.addedNodes)(x instanceof r.HTMLElement||x instanceof r.SVGElement)&&GE(x)?a.add(x):x instanceof r.Element&&p(x);if(nr()){for(let x of c)if(!x.isConnected){m.disconnect();break}}}});m.observe(n,{childList:true,subtree:true});let f=new Set;if(nr())for(let g of c){let b=new MutationObserver(x=>{for(let h of x)if(h.type==="childList"){if(h.target.isConnected&&![...a,...l].some(v=>Y(v,h.target)))for(let v of h.addedNodes)(v instanceof r.HTMLElement||v instanceof r.SVGElement)&&GE(v)?a.add(v):v instanceof r.Element&&p(v);if(nr()){for(let v of c)if(!v.isConnected){m.disconnect();break}}}});b.observe(g,{childList:true,subtree:true}),f.add(b);}let y={visibleNodes:a,hiddenNodes:l,observe(){m.observe(n,{childList:true,subtree:true});},disconnect(){m.disconnect();}};return Rr.push(y),()=>{if(m.disconnect(),nr())for(let g of f)g.disconnect();for(let g of l){let b=fc.get(g);b!=null&&(b===1?(u(g,false),fc.delete(g)):fc.set(g,b-1));}y===Rr[Rr.length-1]?(Rr.pop(),Rr.length&&Rr[Rr.length-1].observe()):Rr.splice(Rr.indexOf(y),1);}}function UE(e){let t=Rr[Rr.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e);}}var WE={"ar-AE":{buttonLabel:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0642\u062A\u0631\u062D\u0627\u062A",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u062E\u064A\u0627\u0631`,other:()=>`${t.number(e.optionCount)} \u062E\u064A\u0627\u0631\u0627\u062A`})} \u0645\u062A\u0627\u062D\u0629.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 \u0627\u0644\u0645\u062F\u062E\u0644\u0629 ${e.groupTitle}, \u0645\u0639 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u062E\u064A\u0627\u0631`,other:()=>`${t.number(e.groupCount)} \u062E\u064A\u0627\u0631\u0627\u062A`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u0645\u062D\u062F\u062F",other:""},e.isSelected)}`,listboxLabel:"\u0645\u0642\u062A\u0631\u062D\u0627\u062A",selectedAnnouncement:e=>`${e.optionText}\u060C \u0645\u062D\u062F\u062F`},"bg-BG":{buttonLabel:"\u041F\u043E\u043A\u0430\u0436\u0438 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u043E\u043F\u0446\u0438\u044F`,other:()=>`${t.number(e.optionCount)} \u043E\u043F\u0446\u0438\u0438`})} \u043D\u0430 \u0440\u0430\u0437\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u0412\u044A\u0432\u0435\u0434\u0435\u043D\u0430 \u0433\u0440\u0443\u043F\u0430 ${e.groupTitle}, \u0441 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u043E\u043F\u0446\u0438\u044F`,other:()=>`${t.number(e.groupCount)} \u043E\u043F\u0446\u0438\u0438`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u0438\u0437\u0431\u0440\u0430\u043D\u0438",other:""},e.isSelected)}`,listboxLabel:"\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F",selectedAnnouncement:e=>`${e.optionText}, \u0438\u0437\u0431\u0440\u0430\u043D\u0438`},"cs-CZ":{buttonLabel:"Zobrazit doporu\u010Den\xED",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} mo\u017Enost`,other:()=>`jsou/je ${t.number(e.optionCount)} mo\u017Enosti/-\xED`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadan\xE1 skupina \u201E${e.groupTitle}\u201C ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} mo\u017Enost\xED`,other:()=>`se ${t.number(e.groupCount)} mo\u017Enostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybr\xE1no)",other:""},e.isSelected)}`,listboxLabel:"N\xE1vrhy",selectedAnnouncement:e=>`${e.optionText}, vybr\xE1no`},"da-DK":{buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilg\xE6ngelig`,other:()=>`${t.number(e.optionCount)} muligheder tilg\xE6ngelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`},"de-DE":{buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verf\xFCgbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgew\xE4hlt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgew\xE4hlt`},"el-GR":{buttonLabel:"\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u03C0\u03C1\u03BF\u03C4\u03AC\u03C3\u03B5\u03C9\u03BD",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE`,other:()=>`${t.number(e.optionCount)} \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2 `})} \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B5\u03C2.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u0395\u03B9\u03C3\u03B1\u03B3\u03BC\u03AD\u03BD\u03B7 \u03BF\u03BC\u03AC\u03B4\u03B1 ${e.groupTitle}, \u03BC\u03B5 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE`,other:()=>`${t.number(e.groupCount)} \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF",other:""},e.isSelected)}`,listboxLabel:"\u03A0\u03C1\u03BF\u03C4\u03AC\u03C3\u03B5\u03B9\u03C2",selectedAnnouncement:e=>`${e.optionText}, \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5`},"en-US":{focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"},"es-ES":{buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opci\xF3n`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opci\xF3n`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`},"et-EE":{buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud r\xFChm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`},"fi-FI":{buttonLabel:"N\xE4yt\xE4 ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhm\xE4\xE4n ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`},"fr-FR":{buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", s\xE9lectionn\xE9(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, s\xE9lectionn\xE9`},"he-IL":{buttonLabel:"\u05D4\u05E6\u05D2 \u05D4\u05E6\u05E2\u05D5\u05EA",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`\u05D0\u05E4\u05E9\u05E8\u05D5\u05EA ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} \u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA`})} \u05D1\u05DE\u05E6\u05D1 \u05D6\u05DE\u05D9\u05DF.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u05E0\u05DB\u05E0\u05E1 \u05DC\u05E7\u05D1\u05D5\u05E6\u05D4 ${e.groupTitle}, \u05E2\u05DD ${t.plural(e.groupCount,{one:()=>`\u05D0\u05E4\u05E9\u05E8\u05D5\u05EA ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} \u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u05E0\u05D1\u05D7\u05E8",other:""},e.isSelected)}`,listboxLabel:"\u05D4\u05E6\u05E2\u05D5\u05EA",selectedAnnouncement:e=>`${e.optionText}, \u05E0\u05D1\u05D7\u05E8`},"hr-HR":{buttonLabel:"Prika\u017Ei prijedloge",countAnnouncement:(e,t)=>`Dostupno jo\u0161: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`},"hu-HU":{buttonLabel:"Javaslatok megjelen\xEDt\xE9se",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehet\u0151s\xE9g`,other:()=>`${t.number(e.optionCount)} lehet\u0151s\xE9g`})} \xE1ll rendelkez\xE9sre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Bel\xE9pett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehet\u0151s\xE9get`,other:()=>`${t.number(e.groupCount)} lehet\u0151s\xE9get`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijel\xF6lve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijel\xF6lve`},"it-IT":{buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`},"ja-JP":{buttonLabel:"\u5019\u88DC\u3092\u8868\u793A",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u500B\u306E\u30AA\u30D7\u30B7\u30E7\u30F3`,other:()=>`${t.number(e.optionCount)} \u500B\u306E\u30AA\u30D7\u30B7\u30E7\u30F3`})}\u3092\u5229\u7528\u3067\u304D\u307E\u3059\u3002`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u5165\u529B\u3055\u308C\u305F\u30B0\u30EB\u30FC\u30D7 ${e.groupTitle}\u3001${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u500B\u306E\u30AA\u30D7\u30B7\u30E7\u30F3`,other:()=>`${t.number(e.groupCount)} \u500B\u306E\u30AA\u30D7\u30B7\u30E7\u30F3`})}\u3092\u542B\u3080\u3002`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"\u3001\u9078\u629E\u6E08\u307F",other:""},e.isSelected)}`,listboxLabel:"\u5019\u88DC",selectedAnnouncement:e=>`${e.optionText}\u3001\u9078\u629E\u6E08\u307F`},"ko-KR":{buttonLabel:"\uC81C\uC548 \uC0AC\uD56D \uD45C\uC2DC",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}\uAC1C \uC635\uC158`,other:()=>`${t.number(e.optionCount)}\uAC1C \uC635\uC158`})}\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\uC785\uB825\uD55C \uADF8\uB8F9 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}\uAC1C \uC635\uC158`,other:()=>`${t.number(e.groupCount)}\uAC1C \uC635\uC158`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \uC120\uD0DD\uB428",other:""},e.isSelected)}`,listboxLabel:"\uC81C\uC548",selectedAnnouncement:e=>`${e.optionText}, \uC120\uD0DD\uB428`},"lt-LT":{buttonLabel:"Rodyti pasi\u016Blymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-i\u0173)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u012Evesta grup\u0117 ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-i\u0173)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasi\u016Blymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`},"lv-LV":{buttonLabel:"R\u0101d\u012Bt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievad\u012Bta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcij\u0101m`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlas\u012Bta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlas\u012Bta`},"nb-NO":{buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`},"nl-NL":{buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`},"pl-PL":{buttonLabel:"Wy\u015Bwietlaj sugestie",countAnnouncement:(e,t)=>`dost\u0119pna/dost\u0119pne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Do\u0142\u0105czono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcj\u0105`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`},"pt-BR":{buttonLabel:"Mostrar sugest\xF5es",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} op\xE7\xE3o`,other:()=>`${t.number(e.optionCount)} op\xE7\xF5es`})} dispon\xEDvel.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} op\xE7\xE3o`,other:()=>`${t.number(e.groupCount)} op\xE7\xF5es`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugest\xF5es",selectedAnnouncement:e=>`${e.optionText}, selecionado`},"pt-PT":{buttonLabel:"Apresentar sugest\xF5es",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} op\xE7\xE3o`,other:()=>`${t.number(e.optionCount)} op\xE7\xF5es`})} dispon\xEDvel.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} op\xE7\xE3o`,other:()=>`${t.number(e.groupCount)} op\xE7\xF5es`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugest\xF5es",selectedAnnouncement:e=>`${e.optionText}, selecionado`},"ro-RO":{buttonLabel:"Afi\u0219are sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} op\u021Biune`,other:()=>`${t.number(e.optionCount)} op\u021Biuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} op\u021Biune`,other:()=>`${t.number(e.groupCount)} op\u021Biuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`},"ru-RU":{buttonLabel:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440`,other:()=>`${t.number(e.optionCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432`})} \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u0412\u0432\u0435\u0434\u0435\u043D\u043D\u0430\u044F \u0433\u0440\u0443\u043F\u043F\u0430 ${e.groupTitle}, \u0441 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u043C`,other:()=>`${t.number(e.groupCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430\u043C\u0438`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u043C\u0438",other:""},e.isSelected)}`,listboxLabel:"\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F",selectedAnnouncement:e=>`${e.optionText}, \u0432\u044B\u0431\u0440\u0430\u043D\u043E`},"sk-SK":{buttonLabel:"Zobrazi\u0165 n\xE1vrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mo\u017Enos\u0165`,other:()=>`${t.number(e.optionCount)} mo\u017Enosti/-\xED`})} k dispoz\xEDcii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadan\xE1 skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mo\u017Enos\u0165ou`,other:()=>`${t.number(e.groupCount)} mo\u017Enos\u0165ami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybrat\xE9",other:""},e.isSelected)}`,listboxLabel:"N\xE1vrhy",selectedAnnouncement:e=>`${e.optionText}, vybrat\xE9`},"sl-SI":{buttonLabel:"Prika\u017Ei predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`},"sr-SP":{buttonLabel:"Prika\u017Ei predloge",countAnnouncement:(e,t)=>`Dostupno jo\u0161: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`},"sv-SE":{buttonLabel:"Visa f\xF6rslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillg\xE4ngliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"F\xF6rslag",selectedAnnouncement:e=>`${e.optionText}, valda`},"tr-TR":{buttonLabel:"\xD6nerileri g\xF6ster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} se\xE7enek`,other:()=>`${t.number(e.optionCount)} se\xE7enekler`})} kullan\u0131labilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} se\xE7enek`,other:()=>`${t.number(e.groupCount)} se\xE7enekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", se\xE7ildi",other:""},e.isSelected)}`,listboxLabel:"\xD6neriler",selectedAnnouncement:e=>`${e.optionText}, se\xE7ildi`},"uk-UA":{buttonLabel:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0438 \u043F\u0440\u043E\u043F\u043E\u0437\u0438\u0446\u0456\u0457",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440`,other:()=>`${t.number(e.optionCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0438(-\u0456\u0432)`})} \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u0412\u0432\u0435\u0434\u0435\u043D\u0430 \u0433\u0440\u0443\u043F\u0430 ${e.groupTitle}, \u0437 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440`,other:()=>`${t.number(e.groupCount)} \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0438(-\u0456\u0432)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u0432\u0438\u0431\u0440\u0430\u043D\u043E",other:""},e.isSelected)}`,listboxLabel:"\u041F\u0440\u043E\u043F\u043E\u0437\u0438\u0446\u0456\u0457",selectedAnnouncement:e=>`${e.optionText}, \u0432\u0438\u0431\u0440\u0430\u043D\u043E`},"zh-CN":{buttonLabel:"\u663E\u793A\u5EFA\u8BAE",countAnnouncement:(e,t)=>`\u6709 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u4E2A\u9009\u9879`,other:()=>`${t.number(e.optionCount)} \u4E2A\u9009\u9879`})}\u53EF\u7528\u3002`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u8FDB\u5165\u4E86 ${e.groupTitle} \u7EC4\uFF0C\u5176\u4E2D\u6709 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u4E2A\u9009\u9879`,other:()=>`${t.number(e.groupCount)} \u4E2A\u9009\u9879`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u5DF2\u9009\u62E9",other:""},e.isSelected)}`,listboxLabel:"\u5EFA\u8BAE",selectedAnnouncement:e=>`${e.optionText}, \u5DF2\u9009\u62E9`},"zh-TW":{buttonLabel:"\u986F\u793A\u5EFA\u8B70",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} \u9078\u9805`,other:()=>`${t.number(e.optionCount)} \u9078\u9805`})} \u53EF\u7528\u3002`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`\u8F38\u5165\u7684\u7FA4\u7D44 ${e.groupTitle}, \u6709 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} \u9078\u9805`,other:()=>`${t.number(e.groupCount)} \u9078\u9805`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", \u5DF2\u9078\u53D6",other:""},e.isSelected)}`,listboxLabel:"\u5EFA\u8B70",selectedAnnouncement:e=>`${e.optionText}, \u5DF2\u9078\u53D6`}};var qE={"ar-AE":{longPressMessage:"\u0627\u0636\u063A\u0637 \u0645\u0637\u0648\u0644\u0627\u064B \u0623\u0648 \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Alt + \u0627\u0644\u0633\u0647\u0645 \u0644\u0623\u0633\u0641\u0644 \u0644\u0641\u062A\u062D \u0627\u0644\u0642\u0627\u0626\u0645\u0629"},"bg-BG":{longPressMessage:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt+ \u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u043D\u0430\u0434\u043E\u043B\u0443, \u0437\u0430 \u0434\u0430 \u043E\u0442\u0432\u043E\u0440\u0438\u0442\u0435 \u043C\u0435\u043D\u044E\u0442\u043E"},"cs-CZ":{longPressMessage:"Dlouh\xFDm stiskem nebo stisknut\xEDm kl\xE1ves Alt + \u0161ipka dol\u016F otev\u0159ete nab\xEDdku"},"da-DK":{longPressMessage:"Langt tryk eller tryk p\xE5 Alt + pil ned for at \xE5bne menuen"},"de-DE":{longPressMessage:"Dr\xFCcken Sie lange oder dr\xFCcken Sie Alt + Nach-unten, um das Men\xFC zu \xF6ffnen"},"el-GR":{longPressMessage:"\u03A0\u03B9\u03AD\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + \u03BA\u03AC\u03C4\u03C9 \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B1\u03BD\u03BF\u03AF\u03BE\u03B5\u03C4\u03B5 \u03C4\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xFA"},"et-EE":{longPressMessage:"Men\xFC\xFC avamiseks vajutage pikalt v\xF5i vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai n\xE4pp\xE4inyhdistelm\xE4ll\xE4 Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de mani\xE8re prolong\xE9e ou appuyez sur Alt\xA0+\xA0Fl\xE8che vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05D0\u05D5 \u05D4\u05E7\u05E9 Alt + ArrowDown \u05DB\u05D3\u05D9 \u05DC\u05E4\u05EA\u05D5\u05D7 \u05D0\u05EA \u05D4\u05EA\u05E4\u05E8\u05D9\u05D8"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xEDl gombot a men\xFC megnyit\xE1s\xE1hoz"},"it-IT":{longPressMessage:"Premi a lungo o premi Alt + Freccia gi\xF9 per aprire il menu"},"ja-JP":{longPressMessage:"\u9577\u62BC\u3057\u307E\u305F\u306F Alt+\u4E0B\u77E2\u5370\u30AD\u30FC\u3067\u30E1\u30CB\u30E5\u30FC\u3092\u958B\u304F"},"ko-KR":{longPressMessage:"\uAE38\uAC8C \uB204\uB974\uAC70\uB098 Alt + \uC544\uB798\uCABD \uD654\uC0B4\uD45C\uB97C \uB20C\uB7EC \uBA54\uB274 \uC5F4\uAE30"},"lt-LT":{longPressMessage:"Nor\u0117dami atidaryti meniu, nuspaud\u0119 palaikykite arba paspauskite \u201EAlt + ArrowDown\u201C."},"lv-LV":{longPressMessage:"Lai atv\u0113rtu izv\u0113lni, turiet nospiestu vai nospiediet tausti\u0146u kombin\u0101ciju Alt + lejupv\u0113rst\u0101 bulti\u0146a"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for \xE5 \xE5pne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naci\u015Bnij i przytrzymaj lub naci\u015Bnij klawisze Alt + Strza\u0142ka w d\xF3\u0142, aby otworzy\u0107 menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Ap\u0103sa\u021Bi lung sau ap\u0103sa\u021Bi pe Alt + s\u0103geat\u0103 \xEEn jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E"},"sk-SK":{longPressMessage:"Ponuku otvor\xEDte dlh\xFDm stla\u010Den\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Alt + kl\xE1vesu so \u0161\xEDpkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in dr\u017Eite gumb ali pritisnite Alt+pu\u0161\u010Dica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"H\xE5ll nedtryckt eller tryck p\xE5 Alt + pil ned\xE5t f\xF6r att \xF6ppna menyn"},"tr-TR":{longPressMessage:"Men\xFCy\xFC a\xE7mak i\xE7in uzun bas\u0131n veya Alt + A\u015Fa\u011F\u0131 Ok tu\u015Funa bas\u0131n"},"uk-UA":{longPressMessage:"\u0414\u043E\u0432\u0433\u043E \u0430\u0431\u043E \u0437\u0432\u0438\u0447\u0430\u0439\u043D\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u043A\u043E\u043C\u0431\u0456\u043D\u0430\u0446\u0456\u044E \u043A\u043B\u0430\u0432\u0456\u0448 Alt \u0456 \u0441\u0442\u0440\u0456\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0449\u043E\u0431 \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 \u043C\u0435\u043D\u044E"},"zh-CN":{longPressMessage:"\u957F\u6309\u6216\u6309 Alt + \u5411\u4E0B\u65B9\u5411\u952E\u4EE5\u6253\u5F00\u83DC\u5355"},"zh-TW":{longPressMessage:"\u9577\u6309\u6216\u6309 Alt+\u5411\u4E0B\u9375\u4EE5\u958B\u555F\u529F\u80FD\u8868"}};var Gv=new WeakMap;function XE(e){let{triggerRef:t,isOpen:r,onClose:o}=e;useEffect(()=>{if(!r||o===null)return;let n=X(t.current),i=a=>{let l=$(a);if(!t.current||l instanceof n.Node&&!Y(l,t.current)||l instanceof n.HTMLInputElement||l instanceof n.HTMLTextAreaElement)return;let s=o||Gv.get(t.current);s&&s();};return n.addEventListener("scroll",i,true),()=>{n.removeEventListener("scroll",i,true);}},[r,o,t]);}function An(e,t,r){let{type:o}=e,{isOpen:n}=t;useEffect(()=>{r&&r.current&&Gv.set(r.current,t.close);});let i;o==="menu"?i=true:o==="listbox"&&(i="listbox");let a=ee();return {triggerProps:{"aria-haspopup":i,"aria-expanded":n,"aria-controls":n?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}function ya(e,t,r){let{type:o="menu",isDisabled:n,trigger:i="press"}=e,a=ee(),{triggerProps:l,overlayProps:s}=An({type:o},t,r),u=m=>{if(!n&&!(i==="longPress"&&!m.altKey)&&r&&r.current)switch(m.key){case "Enter":case " ":if(i==="longPress"||m.isDefaultPrevented())return;case "ArrowDown":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),t.toggle("first");break;case "ArrowUp":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),t.toggle("last");break;default:"continuePropagation"in m&&m.continuePropagation();}},c=ve(qE,"@react-aria/menu"),{longPressProps:p}=Bm({isDisabled:n||i!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close();},onLongPress(){t.open("first");}}),d={preventFocusOnPress:true,onPressStart(m){m.pointerType!=="touch"&&m.pointerType!=="keyboard"&&!n&&(Ve(m.target),t.open(m.pointerType==="virtual"?"first":null));},onPress(m){m.pointerType==="touch"&&!n&&(Ve(m.target),t.toggle());}};return delete l.onPress,{menuTriggerProps:{...l,...i==="press"?d:p,id:a,onKeyDown:u},menuProps:{...s,"aria-labelledby":a,autoFocus:t.focusStrategy||true,onClose:t.close}}}function bc(e,t){let{buttonRef:r,popoverRef:o,inputRef:n,listBoxRef:i,keyboardDelegate:a,layoutDelegate:l,shouldFocusWrap:s,isReadOnly:u,isDisabled:c}=e,p=useRef(null);r=r??p;let d=ve(WE,"@react-aria/combobox"),{menuTriggerProps:m,menuProps:f}=ya({type:"listbox",isDisabled:c||u},t,r);ia.set(t,{id:f.id});let{collection:y}=t,{disabledKeys:g}=t.selectionManager,b=useMemo(()=>a||new Ct({collection:y,disabledKeys:g,ref:i,layoutDelegate:l}),[a,l,y,g,i]),{collectionProps:x}=di({selectionManager:t.selectionManager,keyboardDelegate:b,disallowTypeAhead:true,disallowEmptySelection:true,shouldFocusWrap:s,ref:n}),h=Yr(),v=ne=>{if(!ne.nativeEvent.isComposing)switch(ne.key){case "Enter":case "Tab":if(t.isOpen&&ne.key==="Enter"&&ne.preventDefault(),t.isOpen&&i.current&&t.selectionManager.focusedKey!=null){let de=t.collection.getItem(t.selectionManager.focusedKey);if(de?.props.href){let ke=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);ne.key==="Enter"&&ke instanceof HTMLAnchorElement&&h.open(ke,ne,de.props.href,de.props.routerOptions),t.close();break}else if(de?.props.onAction){de.props.onAction(),t.close();break}}(ne.key==="Enter"||t.isOpen)&&t.commit(),ne.key==="Tab"&&ne.continuePropagation();break;case "Escape":(!t.selectionManager.isEmpty||t.inputValue===""||e.allowsCustomValue)&&ne.continuePropagation(),t.revert();break;case "ArrowDown":t.open("first","manual");break;case "ArrowUp":t.open("last","manual");break;case "ArrowLeft":case "ArrowRight":t.selectionManager.setFocusedKey(null);break}},C=ne=>{let de=r?.current&&r.current===ne.relatedTarget,ke=Y(o.current,ne.relatedTarget);de||ke||(e.onBlur&&e.onBlur(ne),t.setFocused(false));},T=ne=>{t.isFocused||(e.onFocus&&e.onFocus(ne),t.setFocused(true));},P=f2([t.selectionManager.selectedKeys,t.selectionManager.selectionMode]),{isInvalid:k,validationErrors:S,validationDetails:w}=t.displayValidation,{labelProps:E,inputProps:R,descriptionProps:_,errorMessageProps:D}=Hr({...e,isRequired:e.selectionMode==="multiple"?e.isRequired&&t.selectionManager.isEmpty:e.isRequired,onChange:t.setInputValue,onKeyDown:u?e.onKeyDown:We(t.isOpen&&x.onKeyDown,v,e.onKeyDown),onBlur:C,value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:T,autoComplete:"off",validate:void 0,[Br]:t,"aria-describedby":[P,e["aria-describedby"]].filter(Boolean).join(" ")||void 0},n);It(n,t.defaultValue,t.setValue);let F=ne=>{ne.pointerType==="touch"&&(n.current?.focus(),t.toggle(null,"manual"));},z=ne=>{ne.pointerType!=="touch"&&(n.current?.focus(),t.toggle(ne.pointerType==="keyboard"||ne.pointerType==="virtual"?"first":null,"manual"));},N=Qe({id:m.id,"aria-label":d.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||E.id}),V=Qe({id:f.id,"aria-label":d.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||E.id}),M=useRef(0),O=ne=>{if(c||u)return;if(ne.timeStamp-M.current<500){ne.preventDefault(),n.current?.focus();return}let de=$(ne).getBoundingClientRect(),ke=ne.changedTouches[0],Ge=Math.ceil(de.left+.5*de.width),ut=Math.ceil(de.top+.5*de.height);ke.clientX===Ge&&ke.clientY===ut&&(ne.preventDefault(),n.current?.focus(),t.toggle(null,"manual"),M.current=ne.timeStamp);},B=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0,K=B?.parentKey??null,I=t.selectionManager.focusedKey??null,H=useRef(K),U=useRef(I);useEffect(()=>{if(Yn()&&B!=null&&I!=null&&I!==U.current){let ne=t.selectionManager.isSelected(I),de=K!=null?t.collection.getItem(K):null,ke=de?.["aria-label"]||(typeof de?.rendered=="string"?de.rendered:"")||"",Ge=d.format("focusAnnouncement",{isGroupChange:(de&&K!==H.current)??false,groupTitle:ke,groupCount:de?[...He(de,t.collection)].length:0,optionText:B["aria-label"]||B.textValue||"",isSelected:ne});ot(Ge);}H.current=K,U.current=I;});let q=ua(t.collection),W=useRef(q),J=useRef(t.isOpen);useEffect(()=>{let ne=t.isOpen!==J.current&&(t.selectionManager.focusedKey==null||Yn());if(t.isOpen&&(ne||q!==W.current)){let de=d.format("countAnnouncement",{optionCount:q});ot(de);}W.current=q,J.current=t.isOpen;});let me=useRef(t.selectedKey);return useEffect(()=>{if(Yn()&&t.isFocused&&t.selectedItem&&t.selectedKey!==me.current){let ne=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",de=d.format("selectedAnnouncement",{optionText:ne});ot(de);}me.current=t.selectedKey;}),useEffect(()=>{if(t.isOpen)return fi([n.current,o.current].filter(ne=>ne!=null))},[t.isOpen,n,o]),zn(()=>{!B&&n.current&&ue(G(n.current))===n.current&&qn(n.current,null);},[B]),at(i,"react-aria-item-action",t.isOpen?()=>{t.close();}:void 0),{labelProps:E,buttonProps:{...m,...N,excludeFromTabOrder:true,preventFocusOnPress:true,onPress:F,onPressStart:z,isDisabled:c||u},inputProps:A(R,{role:"combobox","aria-expanded":m["aria-expanded"],"aria-controls":t.isOpen?f.id:void 0,"aria-autocomplete":"list","aria-activedescendant":B?Nm(t,B.key):void 0,onTouchEnd:O,autoCorrect:"off",spellCheck:"false"}),listBoxProps:A(f,V,{onAction:void 0,autoFocus:t.focusStrategy||true,shouldUseVirtualFocus:true,shouldSelectOnPressUp:true,shouldFocusOnHover:true,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),valueProps:{id:P},descriptionProps:_,errorMessageProps:D,isInvalid:k,validationErrors:S,validationDetails:w}}function f2(e=[]){let t=ee(),[r,o]=useState(true),[n,i]=useState(e);return n.some((a,l)=>!Object.is(a,e[l]))&&(o(true),i(e)),useEffect(()=>{r&&!document.getElementById(t)&&o(false);},[t,r,n]),r?t:void 0}function vr(e){let[t,r]=ye(e.isOpen,e.defaultOpen||false,e.onOpenChange),o=useCallback(()=>{r(true);},[r]),n=useCallback(()=>{r(false);},[r]),i=useCallback(()=>{r(!t);},[r,t]);return {isOpen:t,setOpen:r,open:o,close:n,toggle:i}}function hc(e){let{defaultFilter:t,menuTrigger:r="input",allowsEmptyCollection:o=false,allowsCustomValue:n,shouldCloseOnBlur:i=true,selectionMode:a="single"}=e,[l,s]=useState(false),[u,c]=useState(false),[p,d]=useState(null),m=useMemo(()=>e.defaultValue!==void 0?e.defaultValue:a==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,a]),f=useMemo(()=>e.value!==void 0?e.value:a==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,a]),[y,g]=ye(f,m,e.onChange),b=a==="single"&&Array.isArray(y)?y[0]:y,x=ae=>{if(a==="single"){let we=Array.isArray(ae)?ae[0]??null:ae;g(we),we!==b&&e.onSelectionChange?.(we);}else {let we=[];Array.isArray(ae)?we=ae:ae!=null&&(we=[ae]),g(we);}},{collection:h,selectionManager:v,disabledKeys:C}=Mt({...e,items:e.items??e.defaultItems,selectionMode:a,disallowEmptySelection:a==="single",allowDuplicateSelectionEvents:true,selectedKeys:useMemo(()=>g2(b),[b]),onSelectionChange:ae=>{if(ae!=="all")if(a==="single"){let we=ae.values().next().value??null;we===b?(e.onSelectionChange?.(we),W(),I()):x(we);}else x([...ae]);}}),T=a==="single"?v.firstSelectedKey:null,P=useMemo(()=>[...v.selectedKeys].map(ae=>h.getItem(ae)).filter(ae=>ae!=null),[v.selectedKeys,h]),[k,S]=ye(e.inputValue,ZE(e.defaultInputValue,T,h)||"",e.onInputChange),[w]=useState(b),[E]=useState(k),R=h,_=useMemo(()=>e.items!=null||!t?h:b2(h,k,t),[h,k,t,e.items]),[D,F]=useState(_),z=useRef("focus"),V=vr({...e,onOpenChange:ae=>{e.onOpenChange&&e.onOpenChange(ae,ae?z.current:void 0),v.setFocused(ae),ae||v.setFocusedKey(null);},isOpen:void 0,defaultOpen:void 0}),M=(ae=null,we)=>{let Sr=we==="manual"||we==="focus"&&r==="focus";(o||_.size>0||Sr&&R.size>0||e.items)&&(Sr&&!V.isOpen&&e.items===void 0&&s(true),z.current=we,d(ae),V.open());},O=(ae=null,we)=>{let Sr=we==="manual"||we==="focus"&&r==="focus";!(o||_.size>0||Sr&&R.size>0||e.items)&&!V.isOpen||(Sr&&!V.isOpen&&e.items===void 0&&s(true),V.isOpen||(z.current=we),K(ae));},B=useCallback(()=>{F(l?R:_);},[l,R,_]),K=useCallback((ae=null)=>{V.isOpen&&B(),d(ae),V.toggle();},[V,B]),I=useCallback(()=>{V.isOpen&&(B(),V.close());},[V,B]),[H,U]=useState(k),q=useRef(false),W=()=>{let ae=T!=null?h.getItem(T)?.textValue??"":"";q.current=false,U(ae),S(ae);},J=useRef(b),me=useRef(T!=null?h.getItem(T)?.textValue??"":"");useEffect(()=>{u&&(_.size>0||o)&&!V.isOpen&&k!==H&&r!=="manual"&&M(null,"input"),!l&&!o&&V.isOpen&&_.size===0&&I(),b!=null&&b!==J.current&&a==="single"&&I(),k!==H&&(q.current=true,v.setFocusedKey(null),s(false),a==="single"&&k===""&&(e.inputValue===void 0||f===void 0)&&x(null)),b!==J.current&&(e.inputValue===void 0||f===void 0)?W():H!==k&&U(k);let ae=T!=null?h.getItem(T)?.textValue??"":"";(!u||!q.current)&&T!=null&&e.inputValue===void 0&&T===J.current&&me.current!==ae&&(q.current=false,U(ae),S(ae)),J.current=b,me.current=ae;});let ne=Nt({...e,value:useMemo(()=>Array.isArray(b)&&b.length===0?null:{inputValue:k,value:b,selectedKey:T},[k,T,b])}),de=()=>{n&&T==null?ke():Ge();},ke=()=>{if(a==="multiple"){U(k),I();return}let ae=null;J.current=ae,x(ae),I();},Ge=(ae=false)=>{if(f!==void 0&&e.inputValue!==void 0){let we=T!=null?h.getItem(T)?.textValue??"":"";(ae||a==="multiple"||k!==we)&&(e.onSelectionChange?.(T),e.onChange?.(b)),U(we),I();}else W(),I();},ut=()=>{if(n){let ae=T!=null?h.getItem(T)?.textValue??"":"";k===ae?Ge():ke();}else Ge();},br=()=>{V.isOpen&&v.focusedKey!=null?v.isSelected(v.focusedKey)&&a==="single"?Ge(true):v.select(v.focusedKey):ut();},Ee=useRef([k,b]),Ce=ae=>{ae?(Ee.current=[k,b],r==="focus"&&!e.isReadOnly&&M(null,"focus")):(i&&ut(),(k!==Ee.current[0]||b!==Ee.current[1])&&ne.commitValidation()),c(ae);},qe=useMemo(()=>V.isOpen?l?R:_:D,[V.isOpen,R,_,l,D]),le=e.defaultSelectedKey??(a==="single"?w:null);return {...ne,...V,focusStrategy:p,toggle:O,open:M,close:ut,selectionManager:v,value:b,defaultValue:m??w,setValue:x,selectedKey:T,selectedItems:P,defaultSelectedKey:le,setSelectedKey:x,disabledKeys:C,isFocused:u,setFocused:Ce,selectedItem:P[0]??null,collection:qe,inputValue:k,defaultInputValue:ZE(e.defaultInputValue,le,h)??E,setInputValue:S,commit:br,revert:de}}function b2(e,t,r){return new pa(JE(e,e,t,r))}function JE(e,t,r,o){let n=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let a=JE(e,He(i,e),r,o);[...a].some(l=>l.type==="item")&&n.push({...i,childNodes:a});}else i.type==="item"&&o(i.textValue,r)?n.push({...i}):i.type!=="item"&&n.push({...i});return n}function ZE(e,t,r){return e==null&&t!=null?r.getItem(t)?.textValue??"":e}function g2(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}var Ir=Un.forwardRef(({children:e,...t},r)=>{let o=useRef(false),n=useContext(Wi),i=A(n||{},{...t,register(){o.current=true,n&&n.register();}});return i.ref=ce(r||n?.ref),bl(n,i.ref),useEffect(()=>{o.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),o.current=true);},[]),jsx(Wi.Provider,{value:i,children:e})});function Xm({children:e}){let t=useMemo(()=>({register:()=>{}}),[]);return jsx(Wi.Provider,{value:t,children:e})}var D2=createContext({});function ez(){return useContext(D2)??{}}var tz=Un.createContext(null);function Xv(e){let t=Zr(),{portalContainer:r=t?null:G(null).body,isExiting:o}=e,[n,i]=useState(false),a=useMemo(()=>({contain:n,setContain:i}),[n,i]),{getContainer:l}=ez();if(!e.portalContainer&&l&&(r=l()),!r)return null;let s=e.children;return e.disableFocusManagement||(s=jsx(Et,{restoreFocus:true,contain:(e.shouldContainFocus||n)&&!o,ownerDocument:G(r),children:s})),s=jsx(tz.Provider,{value:a,children:jsx(Xm,{children:s})}),R2.createPortal(s,r)}function Ym(){let t=useContext(tz)?.setContain;te(()=>{t?.(true);},[t]);}function vc(e,t){let{role:r="dialog"}=e,o=vt([],t);o=e["aria-label"]?void 0:o;let n=useRef(false);useEffect(()=>{if(!t.current)return;let a=G(t.current),l=t.current&&ue(a);if(t.current&&!Y(t.current,l)){Ue(t.current);let s=setTimeout(()=>{let u=ue(a);(u===t.current||u===a.body)&&(n.current=true,t.current&&(t.current.blur(),Ue(t.current)),n.current=false);},500);return ()=>{clearTimeout(s);}}},[t]),Ym();let i=useRef(false);return useEffect(()=>{if(process.env.NODE_ENV!=="production"&&!i.current&&t.current){let a=t.current,l=a.hasAttribute("aria-label"),s=a.hasAttribute("aria-labelledby");!l&&!s&&(console.warn("A dialog must have a title for accessibility. Either provide an aria-label or aria-labelledby prop, or render a heading element inside the dialog."),i.current=true);}}),{dialogProps:{...re(e,{labelable:true}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:a=>{n.current&&a.stopPropagation();}},titleProps:{id:o}}}var va=1e7;function nz(e,t,r){let o=Jv(t.body,r);return e==="left"?{...o,left:-va/2,width:va,totalWidth:va,scroll:{...o.scroll,left:0}}:{...o,top:-va/2,height:va,totalHeight:va,scroll:{...o.scroll,top:0}}}var ao={top:"top",bottom:"top",left:"left",right:"left"},xc={top:"bottom",bottom:"top",left:"right",right:"left"},I2={top:"left",left:"top"},Zv={top:"height",left:"width"},sz={width:"totalWidth",height:"totalHeight"},Zm={};function _2(e){let t=X(e);return typeof t<"u"&&t.visualViewport?t.visualViewport:null}function Jv(e,t){let r=G(e),o=0,n=0,i=0,a=0,l=0,s=0,u={},c=(t?.scale??1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let p=r.documentElement;i=p.clientWidth,a=p.clientHeight,o=t?.width??i,n=t?.height??a,u.top=p.scrollTop||e.scrollTop,u.left=p.scrollLeft||e.scrollLeft,t&&(l=t.offsetTop,s=t.offsetLeft);}else (({width:o,height:n,top:l,left:s}=Tc(e,false))),u.top=e.scrollTop,u.left=e.scrollLeft,i=o,a=n;return Zn()&&(e.tagName==="BODY"||e.tagName==="HTML")&&c&&(u.top=0,u.left=0,l=t?.pageTop??0,s=t?.pageLeft??0),{width:o,height:n,totalWidth:i,totalHeight:a,scroll:u,top:l,left:s}}function M2(e){return {top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Jm(e,t,r,o,n,i,a){let l=n.scroll[e]??0,s=o[Zv[e]],u=a[e]+o.scroll[ao[e]]+i,c=a[e]+o.scroll[ao[e]]+s-i,p=t-l+o.scroll[ao[e]]+a[e]-o[ao[e]],d=t-l+r+o.scroll[ao[e]]+a[e]-o[ao[e]];return p<u?u-p:d>c?Math.max(c-d,u-p):0}function L2(e){let r=X(e).getComputedStyle(e);return {top:parseInt(r.marginTop,10)||0,bottom:parseInt(r.marginBottom,10)||0,left:parseInt(r.marginLeft,10)||0,right:parseInt(r.marginRight,10)||0}}function Yv(e){if(Zm[e])return Zm[e];let[t,r]=e.split(" "),o=ao[t]||"right",n=I2[o];ao[r]||(r="center");let i=Zv[o],a=Zv[n];return Zm[e]={placement:t,crossPlacement:r,axis:o,crossAxis:n,size:i,crossSize:a},Zm[e]}function Qm(e,t,r,o,n,i,a,l,s,u,c){let{placement:p,crossPlacement:d,axis:m,crossAxis:f,size:y,crossSize:g}=o,b={};b[f]=e[f]??0,d==="center"?b[f]+=((e[g]??0)-(r[g]??0))/2:d!==f&&(b[f]+=(e[g]??0)-(r[g]??0)),b[f]+=i;let x=e[f]-r[g]+s+u,h=e[f]+e[g]-s-u;if(b[f]=Xe(b[f],x,h),p===m){let v=l?c[y]:c[sz[y]];b[xc[m]]=Math.floor(v-e[m]+n);}else b[m]=Math.floor(e[m]+e[y]+n);return b}function A2(e,t,r,o,n,i,a,l,s,u,c){let p=(e.top!=null?e.top:s[sz.height]-(e.bottom??0)-a)-(s.scroll.top??0),d=u?r.top:0,m={top:Math.max(t.top+d,(c?.offsetTop??t.top)+d),bottom:Math.min(t.top+t.height+d,(c?.offsetTop??0)+(c?.height??0))};return l!=="top"?Math.max(0,m.bottom-p-((n.top??0)+(n.bottom??0)+i)):Math.max(0,p+a-m.top-((n.top??0)+(n.bottom??0)+i))}function iz(e,t,r,o,n,i,a,l){let{placement:s,axis:u,size:c}=i;return s===u?Math.max(0,r[u]-(a.scroll[u]??0)-(e[u]+(l?t[u]:0))-(o[u]??0)-o[xc[u]]-n):Math.max(0,e[c]+e[u]+(l?t[u]:0)-r[u]-r[c]+(a.scroll[u]??0)-(o[u]??0)-o[xc[u]]-n)}function O2(e,t,r,o,n,i,a,l,s,u,c,p,d,m,f,y,g,b,x,h,v,C){let T=Yv(e),{size:P,crossAxis:k,crossSize:S,placement:w,crossPlacement:E}=T,R=Qm(t,l,r,T,c,p,u,d,f,y,s),_=c,D=x?va:iz(l,u,t,n,i+c,T,s,g);if(a&&r[P]>D){let ne=Yv(`${xc[w]} ${E}`),de=Qm(t,l,r,ne,c,p,u,d,f,y,s);iz(l,u,t,n,i+c,ne,s,g)>D&&(T=ne,R=de,_=c);}if(C==="anchor"&&h&&(T.placement==="top"||T.placement==="bottom")){let ne=x?0:Jm(k,R[k],r[S],l,s,i,u);if(ne!==0){let de=T.crossPlacement==="center"?ne>0?"left":"right":xc[T.crossPlacement];if(de){let ke=Yv(`${T.placement} ${de}`),Ge=Qm(t,l,r,ke,c,p,u,d,f,y,s),ut=x?0:Jm(k,Ge[k],r[S],l,s,i,u);Math.abs(ut)<Math.abs(ne)&&(T=ke,R=Ge);}}}let F="bottom";T.axis==="top"?T.placement==="top"?F="top":T.placement==="bottom"&&(F="bottom"):T.crossAxis==="top"&&(T.crossPlacement==="top"?F="bottom":T.crossPlacement==="bottom"&&(F="top"));let z=C==="anchor"&&h&&(T.placement==="top"||T.placement==="bottom")&&T.crossPlacement!=="center",N=z||x?0:Jm(k,R[k],r[S],l,s,i,u);R[k]+=N;let V=x||!v?void 0:A2(R,l,u,d,n,i,r.height,F,s,g,b);m&&(V==null||m<V)&&(V=m),r.height=V!=null?Math.min(r.height,V):r.height,R=Qm(t,l,r,T,_,p,u,d,f,y,s),N=z||x?0:Jm(k,R[k],r[S],l,s,i,u),R[k]+=N;let M={},O=t[k]-R[k]-n[ao[k]],B=O+.5*t[S],K=f/2+y,I=ao[k]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),H=r[S]-I-f/2-y,U=t[k]+f/2-(R[k]+n[ao[k]]),q=t[k]+t[S]-f/2-(R[k]+n[ao[k]]),W=Xe(B,U,q);M[k]=Xe(W,K,H),{placement:w,crossPlacement:E}=T,f?O=M[k]:E==="right"?O+=t[S]:E==="center"&&(O+=t[S]/2);let J=w==="left"||w==="top"?r[P]:0,me={x:w==="top"||w==="bottom"?O:J,y:w==="left"||w==="right"?O:J};return {position:R,maxHeight:V,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:w,triggerAnchorPoint:me}}function uz(e){let{placement:t,targetNode:r,overlayNode:o,scrollNode:n,padding:i,shouldFlip:a,boundaryElement:l,boundaryAxis:s="both",horizontalBoundaryBehavior:u="shift",offset:c,crossOffset:p,maxHeight:d,arrowSize:m=0,arrowBoundaryOffset:f=0,targetRect:y}=e,g=G(o),b=X(o),x=_2(o),h=o instanceof b.HTMLElement?N2(o):g.documentElement,v=h===g.documentElement,C=b.getComputedStyle(h).position,T=!!C&&C!=="static",P=v?Tc(r,false,y):az(r,h,false,y);if(!v){let{marginTop:K,marginLeft:I}=b.getComputedStyle(r);P.top+=parseInt(K,10)||0,P.left+=parseInt(I,10)||0;}let k=Tc(o,true),S=L2(o);k.width+=(S.left??0)+(S.right??0),k.height+=(S.top??0)+(S.bottom??0);let w=M2(n),E=l===null,R=l??g.body,_=!E&&s!=="vertical",D=!E&&s!=="horizontal",F=Jv(R,x),z=_?F:nz("left",g,x),N=D?F:nz("top",g,x),V={...N,left:z.left,width:z.width,totalWidth:z.totalWidth,scroll:{top:N.scroll.top,left:z.scroll.left}},M=Jv(h,x);T&&!v&&(V.top-=M.top,V.left-=M.left,M.top=0,M.left=0);let O=E?{top:0,left:0,width:0,height:0}:az(R,h,false),B=!E&&Y(R,h)&&h!==R;return O2(t,P,k,w,S,i,a,V,M,O,c,p,T,d,m,f,B,x,E,_,D,u)}function ef(e,t){let r=X(e),{top:o,left:n,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof r.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:o,left:n,width:i,height:a}}function Tc(e,t,r){let o=G(e),{top:n,left:i,width:a,height:l}=r||ef(e,t),{scrollTop:s,scrollLeft:u,clientTop:c,clientLeft:p}=o.documentElement;return {top:n+s-c,left:i+u-p,width:a,height:l}}function az(e,t,r,o){let n=X(e),i=n.getComputedStyle(e),a;if(i.position==="fixed")a=o||ef(e,r);else {a=Tc(e,r,o);let l=Tc(t,r),s=n.getComputedStyle(t);l.top+=(parseInt(s.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(s.borderLeftWidth,10)||0)-t.scrollLeft,a.top-=l.top,a.left-=l.left;}return a.top-=parseInt(i.marginTop,10)||0,a.left-=parseInt(i.marginLeft,10)||0,a}function N2(e){let t=G(e),r=X(e),o=e.offsetParent;if(o&&o===t.body&&r.getComputedStyle(o).position==="static"&&!lz(o)&&(o=t.documentElement),o==null)for(o=e.parentElement;o&&!lz(o);)o=o.parentElement;return o||t.documentElement}function lz(e){let r=X(e).getComputedStyle(e);return r.transform!=="none"||/transform|perspective/.test(r.willChange)||r.filter!=="none"||r.contain==="paint"||"backdropFilter"in r&&r.backdropFilter!=="none"||"WebkitBackdropFilter"in r&&r.WebkitBackdropFilter!=="none"}function jr(e){let{ref:t,box:r,onResize:o}=e,n=Pe(o);useEffect(()=>{let i=t?.current;if(!i)return;let a=X(i);if(typeof a.ResizeObserver>"u")return a.addEventListener("resize",n,false),()=>{a.removeEventListener("resize",n,false);};{let l=new a.ResizeObserver(s=>{s.length&&n();});return l.observe(i,{box:r}),()=>{i&&l.unobserve(i);}}},[t,r]);}function tx(e){return typeof document>"u"?null:X(e).visualViewport??null}function xa(e){let{direction:t}=Q(),{arrowSize:r,targetRef:o,overlayRef:n,arrowRef:i,scrollRef:a=n,placement:l="bottom",containerPadding:s=12,shouldFlip:u=true,boundaryElement:c,boundaryAxis:p="both",horizontalBoundaryBehavior:d="shift",offset:m=0,crossOffset:f=0,shouldUpdatePosition:y=true,shouldCloseOnScroll:g=true,isOpen:b=true,onClose:x,maxHeight:h,arrowBoundaryOffset:v=0,getTargetRect:C}=e,T=c??(typeof document<"u"?o.current?.ownerDocument.body??n.current?.ownerDocument.body??document.body:void 0),[P,k]=useState(null),S=[y,l,n.current,o.current,i?.current,a.current,s,u,T,p,d,m,f,b,t,h,v,r],w=useRef(tx(n.current)?.scale);useEffect(()=>{b&&(w.current=tx(n.current)?.scale);},[b,n]);let E=useCallback(()=>{if(y===false||!b||!n.current||!o.current||T===void 0||tx(n.current)?.scale!==w.current)return;let N=G(n.current),V=ue(N),M=X(N.body),O=null;if(a.current&&Y(a.current,V)){let I=V?.getBoundingClientRect(),H=a.current.getBoundingClientRect();O={type:"top",offset:(I?.top??0)-H.top},O.offset>H.height/2&&(O.type="bottom",O.offset=(I?.bottom??0)-H.bottom);}let B=n.current;!h&&n.current&&(B.style.top="0px",B.style.bottom="",B.style.maxHeight=(M.visualViewport?.height??M.innerHeight)+"px");let K=uz({placement:B2(l,t),overlayNode:n.current,targetNode:o.current,scrollNode:a.current||n.current,padding:s,shouldFlip:u,boundaryElement:T,boundaryAxis:p,horizontalBoundaryBehavior:d,offset:m,crossOffset:f,maxHeight:h,arrowSize:r??(i?.current?ef(i.current,true).width:0),arrowBoundaryOffset:v,targetRect:C?.(o.current)});if(K.position){if(B.style.top="",B.style.bottom="",B.style.left="",B.style.right="",Object.keys(K.position).forEach(I=>B.style[I]=K.position[I]+"px"),B.style.maxHeight=K.maxHeight!=null?K.maxHeight+"px":"",O&&V&&a.current){let I=V.getBoundingClientRect(),H=a.current.getBoundingClientRect(),U=I[O.type]-H[O.type];a.current.scrollTop+=U-O.offset;}k(K);}},S);te(E,S);let R=T?X(T):o.current?X(o.current):n.current?X(n.current):void 0;V2(E,R);let _=useRef(null),D=useCallback(()=>{_.current!==null&&cancelAnimationFrame(_.current),_.current=requestAnimationFrame(()=>{_.current=null,E();});},[E]);useEffect(()=>()=>{_.current!==null&&cancelAnimationFrame(_.current);},[]),jr({ref:n,onResize:D}),jr({ref:o,onResize:D});let F=useRef(false);te(()=>{let N,V=()=>{F.current=true,clearTimeout(N),N=setTimeout(()=>{F.current=false;},500),E();},O=X(n.current).visualViewport,B=()=>{F.current&&V();};return O?.addEventListener("resize",V),O?.addEventListener("scroll",B),()=>{O?.removeEventListener("resize",V),O?.removeEventListener("scroll",B);}},[E]);let z=useCallback(()=>{F.current||x?.();},[x,F]);return XE({triggerRef:o,isOpen:b,onClose:g?x&&z:null}),{overlayProps:{style:{position:P?"absolute":"fixed",top:P?void 0:0,left:P?void 0:0,zIndex:1e5,...P?.position,maxHeight:P==null?"100vh":P.maxHeight!=null?`${P.maxHeight}px`:""}},placement:P?.placement??null,triggerAnchorPoint:P?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:P?.arrowOffsetLeft,top:P?.arrowOffsetTop}},updatePosition:E}}function V2(e,t=window){te(()=>(t?.addEventListener("resize",e,false),()=>{t?.removeEventListener("resize",e,false);}),[e,t]);}function B2(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function ko(e){let{ref:t,onInteractOutside:r,isDisabled:o,onInteractOutsideStart:n}=e,i=useRef({isPointerDown:false,ignoreEmulatedMouseEvents:false}),a=Pe(s=>{r&&Cc(s,t)&&(n&&n(s),i.current.isPointerDown=true);}),l=Pe(s=>{r&&r(s);});useEffect(()=>{let s=i.current;if(o)return;let u=t.current,c=G(u);if(typeof PointerEvent<"u"){let p=m=>{m.pointerType==="pen"&&s.isPointerDown&&Cc(m,t)&&(l(m),s.isPointerDown=false);},d=m=>{s.isPointerDown&&Cc(m,t)&&(l(m),s.isPointerDown=false);};return c.addEventListener("pointerdown",a,true),c.addEventListener("pointerup",p,true),c.addEventListener("click",d,true),()=>{c.removeEventListener("pointerdown",a,true),c.removeEventListener("pointerup",p,true),c.removeEventListener("click",d,true);}}else if(process.env.NODE_ENV==="test"){let p=m=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=false:s.isPointerDown&&Cc(m,t)&&l(m),s.isPointerDown=false;},d=m=>{s.ignoreEmulatedMouseEvents=true,s.isPointerDown&&Cc(m,t)&&l(m),s.isPointerDown=false;};return c.addEventListener("mousedown",a,true),c.addEventListener("mouseup",p,true),c.addEventListener("touchstart",a,true),c.addEventListener("touchend",d,true),()=>{c.removeEventListener("mousedown",a,true),c.removeEventListener("mouseup",p,true),c.removeEventListener("touchstart",a,true),c.removeEventListener("touchend",d,true);}}},[t,o]);}function Cc(e,t){if(e.button>0)return false;let r=$(e);if(r){let o=r.ownerDocument;if(!o||!Y(o.documentElement,r)||r.closest("[data-react-aria-top-layer]"))return false}return t.current?!e.composedPath().includes(t.current):false}var Zo=[];function tf(e,t){let{onClose:r,shouldCloseOnBlur:o,isOpen:n,isDismissable:i=false,isKeyboardDismissDisabled:a=false,shouldCloseOnInteractOutside:l}=e,s=useRef();useEffect(()=>{if(n&&!Zo.includes(t))return Zo.push(t),()=>{let f=Zo.indexOf(t);f>=0&&Zo.splice(f,1);}},[n,t]);let u=()=>{Zo[Zo.length-1]===t&&r&&r();},c=f=>{let y=Zo[Zo.length-1];s.current=y,(!l||l($(f)))&&y===t&&f.stopPropagation();},p=f=>{(!l||l($(f)))&&(Zo[Zo.length-1]===t&&f.stopPropagation(),s.current===t&&u()),s.current=void 0;},d=f=>{f.key==="Escape"&&!a&&!f.nativeEvent.isComposing&&(f.stopPropagation(),f.preventDefault(),u());};ko({ref:t,onInteractOutside:i&&n?p:void 0,onInteractOutsideStart:c});let{focusWithinProps:m}=lt({isDisabled:!o,onBlurWithin:f=>{!f.relatedTarget||bE(f.relatedTarget)||(!l||l(f.relatedTarget))&&r?.();}});return {overlayProps:{onKeyDown:d,...m},underlayProps:{}}}var rf=new WeakMap;function nf(e={},t){let{isDisabled:r,root:o}=e;te(()=>{if(r)return;let n=o?.ownerDocument??G(t?.current),i=rf.get(n);return i||(i={count:0},rf.set(n,i)),i.count++,i.count===1&&(Bt()?i.restore=W2(n):i.restore=U2(o??n.documentElement)),()=>{let a=rf.get(n);a&&(a.count--,a.count===0&&(a.restore?.(),rf.delete(n)));}},[r,o]);}function U2(e){let r=(e.ownerDocument.defaultView??window).innerWidth-e.clientWidth,o=e===e.ownerDocument.documentElement;return We(o&&r>0&&("scrollbarGutter"in e.style?of(e,"scrollbarGutter","stable"):of(e,"paddingRight",`${r}px`)),of(e,"overflow","hidden"))}function W2(e){let t=e.defaultView??window;t.visualViewport;let o=of(e.documentElement,"overflow","hidden"),n,i=false,a=m=>{let f=$(m);n=jt(f)?f:Ze(f,true),i=false;let y=f.ownerDocument.defaultView.getSelection();y&&!y.isCollapsed&&y.containsNode(f,true)&&(i=true);let g=X(f);m.composedPath().some(b=>b instanceof g.HTMLInputElement&&b.type==="range")&&(i=true),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&ue(G(f))===f&&(i=true);},l=e.createElement("style"),s=Xp(e);s&&(l.nonce=s),l.textContent=`
|
|
17
|
-
@layer {
|
|
18
|
-
* {
|
|
19
|
-
overscroll-behavior: contain;
|
|
20
|
-
}
|
|
21
|
-
}`.trim(),e.head.prepend(l);let u=m=>{if(!(m.touches.length===2||i)){if(!n||n===e.documentElement||n===e.body){m.preventDefault();return}n.scrollHeight===n.clientHeight&&n.scrollWidth===n.clientWidth&&m.preventDefault();}},c=m=>{let f=$(m),y=m.relatedTarget;y&&Np(y)?(y.focus({preventScroll:true}),dz(y,Np(f),e)):y||f.parentElement?.closest("[tabindex]")?.focus({preventScroll:true});},p=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(m){let f=ue(e),y=f!=null&&Np(f);p.call(this,{...m,preventScroll:true}),(!m||!m.preventScroll)&&dz(this,y,e);};let d=We(rx(e,"touchstart",a,{passive:false,capture:true}),rx(e,"touchmove",u,{passive:false,capture:true}),rx(e,"blur",c,true));return ()=>{o(),d(),l.remove(),t.HTMLElement.prototype.focus=p;}}function of(e,t,r){let o=e.style[t];return e.style[t]=r,()=>{e.style[t]=o;}}function rx(e,t,r,o){return e.addEventListener(t,r,o),()=>{e.removeEventListener(t,r,o);}}function dz(e,t,r){let o=r.defaultView?.visualViewport;t||!o?pz(e,r):o.addEventListener("resize",()=>pz(e,r),{once:true});}function pz(e,t){let r=t.scrollingElement||t.documentElement,o=e;for(;o&&o!==r;){let n=Ze(o);if(n!==t.documentElement&&n!==t.body&&n!==o){let i=n.getBoundingClientRect(),a=o.getBoundingClientRect();if(a.top<i.top||a.bottom>i.top+o.clientHeight){let l=i.bottom,s=t.defaultView?.visualViewport;s&&(l=Math.min(l,s.offsetTop+s.height));let u=a.top-i.top-((l-i.top)/2-a.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+u)),behavior:"smooth"});}}o=n.parentElement;}}function ox(e,t){let{triggerRef:r,popoverRef:o,groupRef:n,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l,shouldCloseOnScroll:s=true,...u}=e,c=u.trigger==="SubmenuTrigger",{overlayProps:p,underlayProps:d}=tf({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:true,isDismissable:!i||c,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l},n??o),{overlayProps:m,arrowProps:f,placement:y,triggerAnchorPoint:g,updatePosition:b}=xa({...u,targetRef:r,overlayRef:o,isOpen:t.isOpen,shouldCloseOnScroll:s,onClose:i&&!c&&s?t.close:null}),x=o.current?.ownerDocument.documentElement??r.current?.ownerDocument.documentElement;return nf({isDisabled:i||!t.isOpen,root:x},o),te(()=>{if(t.isOpen&&o.current)return i?UE(n?.current??o.current):fi([n?.current??o.current],{shouldUseInert:false,root:G(o.current)?.body})},[i,t.isOpen,o,n]),{popoverProps:A(p,m),arrowProps:f,underlayProps:d,placement:y,triggerAnchorPoint:g,updatePosition:b}}var mz={"ar-AE":{dismiss:"\u062A\u062C\u0627\u0647\u0644"},"bg-BG":{dismiss:"\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schlie\xDFen"},"el-GR":{dismiss:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"L\xF5peta"},"fi-FI":{dismiss:"Hylk\xE4\xE4"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"\u05D4\u05EA\u05E2\u05DC\u05DD"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutas\xEDt\xE1s"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"\u9589\u3058\u308B"},"ko-KR":{dismiss:"\uBB34\uC2DC"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Ner\u0101d\u012Bt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"},"sk-SK":{dismiss:"Zru\u0161i\u0165"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"},"zh-CN":{dismiss:"\u53D6\u6D88"},"zh-TW":{dismiss:"\u95DC\u9589"}};function af(e){let{onDismiss:t,...r}=e,o=ve(mz,"@react-aria/overlays"),n=Qe(r,o.format("dismiss"));return jsx(Oe,{children:jsx("button",{...n,tabIndex:-1,onClick:()=>{t&&t();},style:{width:1,height:1}})})}var Vl=createContext(null);createContext(null);var lf=new WeakMap;function nx(e,t,r){let{shouldFocusWrap:o=true,onKeyDown:n,onKeyUp:i,...a}=e;!e["aria-label"]&&!e["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let l=re(e,{labelable:true}),{listProps:s}=pi({...a,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:o,linkBehavior:"override"});return lf.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:A(l,{onKeyDown:n,onKeyUp:i},{role:"menu",...s,onKeyDown:u=>{(u.key!=="Escape"||e.shouldUseVirtualFocus)&&s.onKeyDown?.(u);}})}}function ix(e,t,r){let{id:o,key:n,closeOnSelect:i,shouldCloseOnSelect:a,isVirtualized:l,"aria-haspopup":s,onPressStart:u,onPressUp:c,onPress:p,onPressChange:d,onPressEnd:m,onClick:f,onHoverStart:y,onHoverChange:g,onHoverEnd:b,onKeyDown:x,onKeyUp:h,onFocus:v,onFocusChange:C,onBlur:T,selectionManager:P=t.selectionManager}=e,k=!!s,S=k&&e["aria-expanded"]==="true",w=e.isDisabled??P.isDisabled(n),E=e.isSelected??P.isSelected(n),R=lf.get(t),_=t.collection.getItem(n),D=e.onClose||R.onClose,F=Yr(),z=()=>{if(!k&&(_?.props?.onAction?_.props.onAction():e.onAction&&e.onAction(n),R.onAction)){let Ee=R.onAction;Ee(n,_?.value);}},N="menuitem";k||(P.selectionMode==="single"?N="menuitemradio":P.selectionMode==="multiple"&&(N="menuitemcheckbox"));let V=vt(),M=vt(),O=vt(),B={id:o,"aria-disabled":w||void 0,role:N,"aria-label":e["aria-label"],"aria-labelledby":V,"aria-describedby":[e["aria-describedby"],M,O].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};if(P.selectionMode!=="none"&&!k&&(B["aria-checked"]=E),l){let Ee=Number(_?.index);B["aria-posinset"]=Number.isNaN(Ee)?void 0:Ee+1,B["aria-setsize"]=ua(t.collection);}let K=useRef(false),I=Ee=>{d?.(Ee),K.current=Ee;},H=useRef(null),U=Ee=>{Ee.pointerType!=="keyboard"&&(H.current={pointerType:Ee.pointerType}),Ee.pointerType==="mouse"&&(K.current||Ee.target.click()),c?.(Ee);},q=Ee=>{f?.(Ee),z(),Ip(Ee,F,_.props.href,_?.props.routerOptions);let Ce=H.current?.pointerType==="keyboard"?H.current?.key==="Enter"||P.selectionMode==="none"||P.isLink(n):P.selectionMode!=="multiple"||P.isLink(n);Ce=a??i??Ce,D&&!k&&Ce&&D(),H.current=null;},{itemProps:W,isFocused:J}=wr({id:o,selectionManager:P,key:n,ref:r,shouldSelectOnPressUp:true,allowsDifferentPressOrigin:true,linkBehavior:"none",shouldUseVirtualFocus:R.shouldUseVirtualFocus}),{pressProps:me,isPressed:ne}=Ae({onPressStart:u,onPress:p,onPressUp:U,onPressChange:I,onPressEnd:m,isDisabled:w}),{hoverProps:de}=ie({isDisabled:w,onHoverStart(Ee){!At()&&!(S&&s)&&(P.setFocused(true),P.setFocusedKey(n)),y?.(Ee);},onHoverChange:g,onHoverEnd:b}),{keyboardProps:ke}=Le({onKeyDown:Ee=>{if(Ee.repeat){Ee.continuePropagation();return}switch(Ee.key){case " ":H.current={pointerType:"keyboard",key:" "},$(Ee).click(),ar("keyboard");break;case "Enter":H.current={pointerType:"keyboard",key:"Enter"},$(Ee).tagName!=="A"&&$(Ee).click(),ar("keyboard");break;default:k||Ee.continuePropagation(),x?.(Ee);break}},onKeyUp:h}),{focusableProps:Ge}=rt({onBlur:T,onFocus:v,onFocusChange:C},r),ut=re(_?.props);delete ut.id;let br=Jn(_?.props);return {menuItemProps:{...B,...A(ut,br,k?{onFocus:W.onFocus,"data-collection":W["data-collection"],"data-key":W["data-key"]}:W,me,de,ke,Ge,R.shouldUseVirtualFocus||k?{onMouseDown:Ee=>Ee.preventDefault()}:void 0,w?void 0:{onClick:q}),tabIndex:W.tabIndex!=null&&S&&!R.shouldUseVirtualFocus?-1:W.tabIndex},labelProps:{id:V},descriptionProps:{id:M},keyboardShortcutProps:{id:O},isFocused:J,isFocusVisible:J&&P.isFocused&&At()&&!S,isSelected:E,isPressed:ne,isDisabled:w}}function ax(e){let{heading:t,"aria-label":r}=e,o=vt([!!t]);return {itemProps:{role:"presentation"},headingProps:t?{id:o,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?o:void 0}}}var sf=2,Y2=50,Z2=1e3,gz=Math.PI/12;function hz(e){let{menuRef:t,submenuRef:r,isOpen:o,isDisabled:n}=e,i=useRef(void 0),a=useRef(void 0),l=useRef(0),s=useRef(void 0),u=useRef(void 0),c=useRef(void 0),p=useRef(2),[d,m]=useState(false);jr({ref:o?r:void 0,onResize:()=>{r.current&&(a.current=r.current.getBoundingClientRect(),c.current=void 0);}});let y=()=>{m(false),p.current=sf,i.current=void 0;},g=Yt(),b=Pe(x=>{d&&x.preventDefault();});useEffect(()=>{d&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents="";},[t,d]),te(()=>{let x=r.current,h=t.current;if(n||!x||!o||g!=="pointer"||!h){y();return}a.current=x.getBoundingClientRect();let v=T=>{if(T.pointerType==="touch"||T.pointerType==="pen")return;let P=Date.now();if(P-l.current<Y2)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:k,clientY:S}=T;if(!i.current){i.current={x:k,y:S};return}if(!a.current)return;if(c.current||(c.current=k>a.current.right?"left":"right"),k<h.getBoundingClientRect().left||k>h.getBoundingClientRect().right||S<h.getBoundingClientRect().top||S>h.getBoundingClientRect().bottom){y();return}let w=i.current.x,E=i.current.y,R=c.current==="right"?a.current.left-w:w-a.current.right,_=Math.atan2(E-a.current.top,R)+gz,D=Math.atan2(E-a.current.bottom,R)-gz,F=Math.atan2(E-S,c.current==="left"?-(k-w):k-w),z=F<_&&F>D;p.current=z?Math.min(p.current+1,sf):Math.max(p.current-1,0),p.current>=sf?m(true):m(false),l.current=P,i.current={x:k,y:S},z&&(s.current=setTimeout(()=>{y(),u.current=setTimeout(()=>{let N=G(h).elementFromPoint(k,S);N&&Y(h,N)&&N.dispatchEvent(new PointerEvent("pointerover",{bubbles:true,cancelable:true}));},100);},Z2));},C=X(h);return C.addEventListener("pointermove",v),process.env.NODE_ENV!=="test"&&C.addEventListener("pointerdown",b,true),()=>{C.removeEventListener("pointermove",v),process.env.NODE_ENV!=="test"&&C.removeEventListener("pointerdown",b,true),clearTimeout(s.current),clearTimeout(u.current),p.current=sf;}},[n,o,t,g,m,r]);}function sx(e,t,r){let{parentMenuRef:o,submenuRef:n,type:i="menu",isDisabled:a,delay:l=200,shouldUseVirtualFocus:s}=e,u=ee(),c=ee(),{direction:p}=Q(),d=useRef(void 0),m=useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=void 0);},[d]),f=useCallback(P=>{m(),t.open(P);},[t,m]),y=useCallback(()=>{m(),t.close();},[t,m]);te(()=>()=>{m();},[m]);let g=P=>{if(vo(P.currentTarget))switch(P.key){case "ArrowLeft":p==="ltr"&&Y(P.currentTarget,$(P))&&(P.preventDefault(),P.stopPropagation(),y(),!s&&r.current&&Ve(r.current));break;case "ArrowRight":p==="rtl"&&Y(P.currentTarget,$(P))&&(P.preventDefault(),P.stopPropagation(),y(),!s&&r.current&&Ve(r.current));break;case "Escape":Y(n.current,$(P))&&(P.stopPropagation(),y(),!s&&r.current&&Ve(r.current));break}},b={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:t.focusStrategy??void 0,onKeyDown:g}},x=P=>{switch(P.key){case "ArrowRight":a||(p==="ltr"?(P.preventDefault(),t.isOpen||f("first"),i==="menu"&&n?.current&&ue()===r?.current&&Ve(n.current)):t.isOpen?y():P.continuePropagation());break;case "ArrowLeft":a||(p==="rtl"?(P.preventDefault(),t.isOpen||f("first"),i==="menu"&&n?.current&&ue()===r?.current&&Ve(n.current)):t.isOpen?y():P.continuePropagation());break;default:P.continuePropagation();break}},h=P=>{!a&&(P.pointerType==="virtual"||P.pointerType==="keyboard")&&f("first");},v=P=>{!a&&(P.pointerType==="touch"||P.pointerType==="mouse")&&f();},C=P=>{a||(P&&!t.isOpen?d.current||(d.current=setTimeout(()=>{f();},l)):P||m());};at(o,"focusin",P=>{t.isOpen&&Y(o.current,$(P))&&$(P)!==r.current&&y();});let T=P=>P!==r.current;return hz({menuRef:o,submenuRef:n,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:h,onPress:v,onHoverChange:C,onKeyDown:x,isOpen:t.isOpen},submenuProps:b,popoverProps:{isNonModal:true,shouldCloseOnInteractOutside:T}}}function uf(e){let t=vr(e),[r,o]=useState(null),[n,i]=useState([]),a=()=>{i([]),t.close();};return {focusStrategy:r,...t,open(u=null){o(u),t.open();},toggle(u=null){o(u),t.toggle();},close(){a();},expandedKeysStack:n,openSubmenu:(u,c)=>{i(p=>c>p.length?p:[...p.slice(0,c),u]);},closeSubmenu:(u,c)=>{i(p=>p[c]===u?p.slice(0,c):p);}}}function cx(e,t){let{triggerKey:r}=e,{expandedKeysStack:o,openSubmenu:n,closeSubmenu:i,close:a}=t,[l]=useState(o?.length),s=useMemo(()=>o[l]===r,[o,r,l]),[u,c]=useState(null),p=useCallback(f=>{c(f??null),n(r,l);},[n,l,r]),d=useCallback(()=>{c(null),i(r,l);},[i,l,r]),m=useCallback(f=>{c(f??null),s?d():p(f);},[d,p,s]);return useMemo(()=>({focusStrategy:u,isOpen:s,open:p,close:d,closeAll:a,submenuLevel:l,setOpen:()=>{},toggle:m}),[s,p,d,a,u,m,l])}var dx=createContext({});forwardRef(function(t,r){return [t,r]=Re(t,r,dx),jsx(xe.kbd,{dir:"ltr",...t,ref:r})});var cf=class{keyMap=new Map;iterable;firstKey=null;lastKey=null;constructor(t,{expandedKeys:r}={}){this.iterable=t,r=r||new Set;let o=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||r.has(a.key)))for(let l of a.childNodes)o(l);};for(let a of t)o(a);let n=null,i=0;for(let[a,l]of this.keyMap)n?(n.nextKey=a,l.prevKey=n.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=i++),n=l,n.nextKey=void 0;this.lastKey=n?.key??null;}*[Symbol.iterator](){yield*this.iterable;}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey??null:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){let r=[...this.getKeys()];return this.getItem(r[t])}};function Pc(e){let{onExpandedChange:t}=e,[r,o]=ye(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),n=So(e),i=useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=Kl(e,useCallback(s=>new cf(s,{expandedKeys:r}),[r]),null);return useEffect(()=>{n.focusedKey!=null&&!a.getItem(n.focusedKey)&&n.setFocusedKey(null);},[a,n.focusedKey]),{collection:a,expandedKeys:r,disabledKeys:i,toggleKey:s=>{o(iG(r,s));},setExpandedKeys:o,selectionManager:new Do(a,n)}}function iG(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var pf=createContext(null),Dc=createContext(null),Sc=createContext(null),df=createContext(null);function yx(e){let t=uf(e),r=useRef(null),{menuTriggerProps:o,menuProps:n}=ya({...e,type:"menu"},t,r),i=useRef(null);return Ih()?null:jsx(ct,{values:[[pf,{...n,ref:i}],[Ca,t],[Sc,t],[Vl,{trigger:"MenuTrigger",triggerRef:r,scrollRef:i,placement:"bottom start","aria-labelledby":n["aria-labelledby"]}]],children:jsx(Ir,{...o,ref:r,isPressed:t.isOpen,children:e.children})})}var Cz=createContext(null),mx=class extends Ht{static type="submenutrigger";filter(t,r,o){let n=t.getItem(this.firstChildKey);if(n&&o(n.textValue,this)){let i=this.clone();return r.addDescendants(i,t),i}return null}},bx=Kr(mx,(e,t,r)=>{let{CollectionBranch:o}=useContext(ze),n=useContext(Dc),i=useContext(Sc),a=cx({triggerKey:r.key},i),l=useRef(null),s=ce(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=useContext(Cz),{submenuTriggerProps:p,submenuProps:d,popoverProps:m}=sx({parentMenuRef:u,submenuRef:l,delay:e.delay,shouldUseVirtualFocus:c},a,s);return jsxs(ct,{values:[[Bl,{...p,onAction:void 0,ref:s}],[pf,{ref:l,...d}],[Ca,a],[Vl,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":d["aria-labelledby"],...m}]],children:[jsx(o,{collection:n.collection,parent:r}),e.children[1]]})},e=>e.children[0]),mf=forwardRef(function(t,r){return [t,r]=Re(t,r,pf),jsx(to,{content:jsx(wt,{...t}),children:o=>jsx(sG,{props:t,collection:o,menuRef:r})})});function sG({props:e,collection:t,menuRef:r}){[e,r]=Re(e,r,Ho);let{filter:o,...n}=e,i=useMemo(()=>o?t.filter(o):t,[t,o]),a=Pc({...e,collection:i,children:void 0}),l=useContext(Sc),{isVirtualized:s,CollectionRoot:u}=useContext(ze),{menuProps:c}=nx({...e,isVirtualized:s,onClose:e.onClose||l?.close},a,r),p=Fe({...e,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:a.collection.size===0}}),d=null;a.collection.size===0&&e.renderEmptyState&&(d=jsx("div",{role:"menuitem",style:{display:"contents"},children:e.renderEmptyState()}));let m=re(e,{global:true});return jsx(Et,{children:jsxs(xe.div,{...A(m,p,c),ref:r,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll,children:[jsx(ct,{values:[[Dc,a],[Wm,{elementType:"div"}],[em,{name:"MenuSection",render:Pz}],[Cz,{parentMenuRef:r,shouldUseVirtualFocus:n?.shouldUseVirtualFocus}],[Bl,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[Ho,null],[Qn,null],[df,a.selectionManager],[Sc,l??uf({})]],children:jsx(mi,{children:jsx(u,{collection:a.collection,persistedKeys:UD(a.selectionManager.focusedKey),scrollRef:r})})}),d]})})}var fx=class extends Do{parent;constructor(t,r){super(t.collection,r),this.parent=t;}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,r){return this.parent.setFocusedKey(t,r)}setFocused(t){this.parent.setFocused(t);}get childFocusStrategy(){return this.parent.childFocusStrategy}};function Pz(e,t,r,o="react-aria-MenuSection"){let n=useContext(Dc),{CollectionBranch:i}=useContext(ze),[a,l]=Mu(),{headingProps:s,groupProps:u}=ax({heading:l,"aria-label":r.props["aria-label"]??void 0}),c=Fe({...e,children:void 0,defaultClassName:o,className:r.props?.className,style:r.props?.style,values:void 0}),p=useContext(df),d=So(e),m=e.selectionMode!=null?new fx(p,d):p,f=eo(Bl)?.shouldCloseOnSelect,y=re(e,{global:true});return delete y.id,jsx(xe.section,{...A(y,c,u),ref:t,children:jsx(ct,{values:[[Fl,{...s,ref:a}],[df,m],[Bl,{shouldCloseOnSelect:e.shouldCloseOnSelect??f}]],children:jsx(i,{collection:n.collection,parent:r})})})}var gx=Kr(ti,Pz),Bl=createContext(null),hx=sr(Zi,function(t,r,o){[t,r]=Re(t,r,Bl);let n=eo(Bl)?.id,i=useContext(Dc),a=ce(r),l=useContext(df),{isVirtualized:s}=useContext(ze),{menuItemProps:u,labelProps:c,descriptionProps:p,keyboardShortcutProps:d,...m}=ix({...t,id:n,key:o.key,selectionManager:l,isVirtualized:s},i,a),{hoverProps:f,isHovered:y}=ie({isDisabled:m.isDisabled}),g=Fe({...t,children:o.rendered,defaultClassName:"react-aria-MenuItem",values:{...m,isHovered:y,isFocusVisible:m.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!t["aria-haspopup"],isOpen:t["aria-expanded"]==="true"}}),b=t.href?xe.a:xe.div,x=re(t,{global:true});return delete x.id,delete x.onClick,jsx(b,{...A(x,g,u,f),ref:a,"data-disabled":m.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":m.isFocusVisible||void 0,"data-pressed":m.isPressed||void 0,"data-selected":m.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!t["aria-haspopup"]||void 0,"data-open":t["aria-expanded"]==="true"||void 0,children:jsx(ct,{values:[[Co,{slots:{[Qr]:c,label:c,description:p}}],[dx,d],[Mn,{isSelected:m.isSelected}]],children:g.children})})});createContext(null);var Ca=createContext(null);function yi(e){let t=Qt({usage:"search",...e}),r=useCallback((i,a)=>a.length===0?true:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(0,a.length),a)===0),[t]),o=useCallback((i,a)=>a.length===0?true:(i=i.normalize("NFC"),a=a.normalize("NFC"),t.compare(i.slice(-a.length),a)===0),[t]),n=useCallback((i,a)=>{if(a.length===0)return true;i=i.normalize("NFC"),a=a.normalize("NFC");let l=0,s=a.length;for(;l+s<=i.length;l++){let u=i.slice(l,l+s);if(t.compare(a,u)===0)return true}return false},[t]);return useMemo(()=>({startsWith:r,endsWith:o,contains:n}),[r,o,n])}var ff={"ar-AE":{calendar:"\u0627\u0644\u062A\u0642\u0648\u064A\u0645",day:"\u064A\u0648\u0645",dayPeriod:"\u0635/\u0645",endDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621",era:"\u0627\u0644\u0639\u0635\u0631",hour:"\u0627\u0644\u0633\u0627\u0639\u0627\u062A",minute:"\u0627\u0644\u062F\u0642\u0627\u0626\u0642",month:"\u0627\u0644\u0634\u0647\u0631",second:"\u0627\u0644\u062B\u0648\u0627\u0646\u064A",selectedDateDescription:e=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${e.date}`,selectedRangeDescription:e=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${e.startDate} \u0625\u0644\u0649 ${e.endDate}`,selectedTimeDescription:e=>`\u0627\u0644\u0648\u0642\u062A \u0627\u0644\u0645\u062D\u062F\u062F: ${e.time}`,startDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621",timeZoneName:"\u0627\u0644\u062A\u0648\u0642\u064A\u062A",weekday:"\u0627\u0644\u064A\u0648\u0645",year:"\u0627\u0644\u0633\u0646\u0629"},"bg-BG":{calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D",dayPeriod:"\u043F\u0440.\u043E\u0431./\u0441\u043B.\u043E\u0431.",endDate:"\u041A\u0440\u0430\u0439\u043D\u0430 \u0434\u0430\u0442\u0430",era:"\u0435\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${e.startDate} \u0434\u043E ${e.endDate}`,selectedTimeDescription:e=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0432\u0440\u0435\u043C\u0435: ${e.time}`,startDate:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430 \u0434\u0430\u0442\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0435\u043D \u043E\u0442 \u0441\u0435\u0434\u043C\u0438\u0446\u0430\u0442\u0430",year:"\u0433\u043E\u0434\u0438\u043D\u0430"},"cs-CZ":{calendar:"Kalend\xE1\u0159",day:"den",dayPeriod:"\u010D\xE1st dne",endDate:"Kone\u010Dn\xE9 datum",era:"letopo\u010Det",hour:"hodina",minute:"minuta",month:"m\u011Bs\xEDc",second:"sekunda",selectedDateDescription:e=>`Vybran\xE9 datum: ${e.date}`,selectedRangeDescription:e=>`Vybran\xE9 obdob\xED: ${e.startDate} a\u017E ${e.endDate}`,selectedTimeDescription:e=>`Vybran\xFD \u010Das: ${e.time}`,startDate:"Po\u010D\xE1te\u010Dn\xED datum",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"den v t\xFDdnu",year:"rok"},"da-DK":{calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"\xE6ra",hour:"time",minute:"minut",month:"m\xE5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"\xE5r"},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:"Tagesh\xE4lfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgew\xE4hltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgew\xE4hlter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgew\xE4hlte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",day:"\u03B7\u03BC\u03AD\u03C1\u03B1",dayPeriod:"\u03C0.\u03BC./\u03BC.\u03BC.",endDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",era:"\u03C0\u03B5\u03C1\u03AF\u03BF\u03B4\u03BF\u03C2",hour:"\u03CE\u03C1\u03B1",minute:"\u03BB\u03B5\u03C0\u03C4\u03CC",month:"\u03BC\u03AE\u03BD\u03B1\u03C2",second:"\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03BF",selectedDateDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${e.date}`,selectedRangeDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${e.startDate} \u03AD\u03C9\u03C2 ${e.endDate}`,selectedTimeDescription:e=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03CE\u03C1\u03B1: ${e.time}`,startDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2",timeZoneName:"\u03B6\u03CE\u03BD\u03B7 \u03CE\u03C1\u03B1\u03C2",weekday:"\u03BA\u03B1\u03B8\u03B7\u03BC\u03B5\u03C1\u03B9\u03BD\u03AE",year:"\u03AD\u03C4\u03BF\u03C2"},"en-US":{era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`},"es-ES":{calendar:"Calendario",day:"d\xEDa",dayPeriod:"a.\xA0m./p.\xA0m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"d\xEDa de la semana",year:"a\xF1o"},"et-EE":{calendar:"Kalender",day:"p\xE4ev",dayPeriod:"enne/p\xE4rast l\xF5unat",endDate:"L\xF5ppkuup\xE4ev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuup\xE4ev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuup\xE4ev",timeZoneName:"ajav\xF6\xF6nd",weekday:"n\xE4dalap\xE4ev",year:"aasta"},"fi-FI":{calendar:"Kalenteri",day:"p\xE4iv\xE4",dayPeriod:"vuorokaudenaika",endDate:"P\xE4\xE4ttymisp\xE4iv\xE4",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${e.date}`,selectedRangeDescription:e=>`Valittu aikav\xE4li: ${e.startDate} \u2013 ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamisp\xE4iv\xE4",timeZoneName:"aikavy\xF6hyke",weekday:"viikonp\xE4iv\xE4",year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"\xE8re",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date s\xE9lectionn\xE9e\xA0: ${e.date}`,selectedRangeDescription:e=>`Plage s\xE9lectionn\xE9e\xA0: ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie\xA0: ${e.time}`,startDate:"Date de d\xE9but",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"ann\xE9e"},"he-IL":{calendar:"\u05DC\u05D5\u05D7 \u05E9\u05E0\u05D4",day:"\u05D9\u05D5\u05DD",dayPeriod:"\u05DC\u05E4\u05E0\u05D4\u05F4\u05E6/\u05D0\u05D7\u05D4\u05F4\u05E6",endDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E1\u05D9\u05D5\u05DD",era:"\u05EA\u05E7\u05D5\u05E4\u05D4",hour:"\u05E9\u05E2\u05D4",minute:"\u05D3\u05E7\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",second:"\u05E9\u05E0\u05D9\u05D9\u05D4",selectedDateDescription:e=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${e.date}`,selectedRangeDescription:e=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${e.startDate} \u05E2\u05D3 ${e.endDate}`,selectedTimeDescription:e=>`\u05D6\u05DE\u05DF \u05E0\u05D1\u05D7\u05E8: ${e.time}`,startDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05EA\u05D7\u05DC\u05D4",timeZoneName:"\u05D0\u05D6\u05D5\u05E8 \u05D6\u05DE\u05DF",weekday:"\u05D9\u05D5\u05DD \u05D1\u05E9\u05D1\u05D5\u05E2",year:"\u05E9\u05E0\u05D4"},"hr-HR":{calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum zavr\u0161etka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum po\u010Detka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"},"hu-HU":{calendar:"Napt\xE1r",day:"nap",dayPeriod:"napszak",endDate:"Befejez\u0151 d\xE1tum",era:"\xE9ra",hour:"\xF3ra",minute:"perc",month:"h\xF3nap",second:"m\xE1sodperc",selectedDateDescription:e=>`Kijel\xF6lt d\xE1tum: ${e.date}`,selectedRangeDescription:e=>`Kijel\xF6lt tartom\xE1ny: ${e.startDate}\u2013${e.endDate}`,selectedTimeDescription:e=>`Kijel\xF6lt id\u0151: ${e.time}`,startDate:"Kezd\u0151 d\xE1tum",timeZoneName:"id\u0151z\xF3na",weekday:"h\xE9t napja",year:"\xE9v"},"it-IT":{calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"},"ja-JP":{calendar:"\u30AB\u30EC\u30F3\u30C0\u30FC",day:"\u65E5",dayPeriod:"\u5348\u524D/\u5348\u5F8C",endDate:"\u7D42\u4E86\u65E5",era:"\u6642\u4EE3",hour:"\u6642",minute:"\u5206",month:"\u6708",second:"\u79D2",selectedDateDescription:e=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${e.date}`,selectedRangeDescription:e=>`\u9078\u629E\u7BC4\u56F2 : ${e.startDate} \u304B\u3089 ${e.endDate}`,selectedTimeDescription:e=>`\u9078\u629E\u3057\u305F\u6642\u9593 : ${e.time}`,startDate:"\u958B\u59CB\u65E5",timeZoneName:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",weekday:"\u66DC\u65E5",year:"\u5E74"},"ko-KR":{calendar:"\uB2EC\uB825",day:"\uC77C",dayPeriod:"\uC624\uC804/\uC624\uD6C4",endDate:"\uC885\uB8CC\uC77C",era:"\uC5F0\uD638",hour:"\uC2DC",minute:"\uBD84",month:"\uC6D4",second:"\uCD08",selectedDateDescription:e=>`\uC120\uD0DD \uC77C\uC790: ${e.date}`,selectedRangeDescription:e=>`\uC120\uD0DD \uBC94\uC704: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`\uC120\uD0DD \uC2DC\uAC04: ${e.time}`,startDate:"\uC2DC\uC791\uC77C",timeZoneName:"\uC2DC\uAC04\uB300",weekday:"\uC694\uC77C",year:"\uB144"},"lt-LT":{calendar:"Kalendorius",day:"diena",dayPeriod:"iki piet\u0173 / po piet\u0173",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minut\u0117",month:"m\u0117nuo",second:"sekund\u0117",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Prad\u017Eios data",timeZoneName:"laiko juosta",weekday:"savait\u0117s diena",year:"metai"},"lv-LV":{calendar:"Kalend\u0101rs",day:"diena",dayPeriod:"priek\u0161pusdien\u0101/p\u0113cpusdien\u0101",endDate:"Beigu datums",era:"\u0113ra",hour:"stundas",minute:"min\u016Btes",month:"m\u0113nesis",second:"sekundes",selectedDateDescription:e=>`Atlas\u012Btais datums: ${e.date}`,selectedRangeDescription:e=>`Atlas\u012Btais diapazons: no ${e.startDate} l\u012Bdz ${e.endDate}`,selectedTimeDescription:e=>`Atlas\u012Btais laiks: ${e.time}`,startDate:"S\u0101kuma datums",timeZoneName:"laika josla",weekday:"ned\u0113\u013Cas diena",year:"gads"},"nb-NO":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"m\xE5ned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt omr\xE5de: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"\xE5r"},"nl-NL":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"},"pl-PL":{calendar:"Kalendarz",day:"dzie\u0144",dayPeriod:"rano / po po\u0142udniu / wieczorem",endDate:"Data ko\u0144cowa",era:"era",hour:"godzina",minute:"minuta",month:"miesi\u0105c",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data pocz\u0105tkowa",timeZoneName:"strefa czasowa",weekday:"dzie\u0144 tygodnia",year:"rok"},"pt-BR":{calendar:"Calend\xE1rio",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"},"pt-PT":{calendar:"Calend\xE1rio",day:"dia",dayPeriod:"am/pm",endDate:"Data de T\xE9rmino",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de In\xEDcio",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"},"ro-RO":{calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dat\u0103 final",era:"er\u0103",hour:"or\u0103",minute:"minut",month:"lun\u0103",second:"secund\u0103",selectedDateDescription:e=>`Dat\u0103 selectat\u0103: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} p\xE2n\u0103 la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectat\u0103: ${e.time}`,startDate:"Dat\u0103 \xEEnceput",timeZoneName:"fus orar",weekday:"ziua din s\u0103pt\u0103m\xE2n\u0103",year:"an"},"ru-RU":{calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C",day:"\u0434\u0435\u043D\u044C",dayPeriod:"AM/PM",endDate:"\u0414\u0430\u0442\u0430 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",era:"\u044D\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u044F\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: \u0441 ${e.startDate} \u043F\u043E ${e.endDate}`,selectedTimeDescription:e=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F: ${e.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u043E\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",year:"\u0433\u043E\u0434"},"sk-SK":{calendar:"Kalend\xE1r",day:"de\u0148",dayPeriod:"AM/PM",endDate:"D\xE1tum ukon\u010Denia",era:"letopo\u010Det",hour:"hodina",minute:"min\xFAta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybrat\xFD d\xE1tum: ${e.date}`,selectedRangeDescription:e=>`Vybrat\xFD rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybrat\xFD \u010Das: ${e.time}`,startDate:"D\xE1tum za\u010Datia",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"de\u0148 t\xFD\u017Ed\u0148a",year:"rok"},"sl-SI":{calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano obmo\u010Dje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani \u010Das: ${e.time}`,startDate:"Datum za\u010Detka",timeZoneName:"\u010Dasovni pas",weekday:"dan v tednu",year:"leto"},"sr-SP":{calendar:"Kalendar",day:"\u0434\u0430\u043D",dayPeriod:"\u043F\u0440\u0435 \u043F\u043E\u0434\u043D\u0435/\u043F\u043E \u043F\u043E\u0434\u043D\u0435",endDate:"Datum zavr\u0161etka",era:"\u0435\u0440\u0430",hour:"\u0441\u0430\u0442",minute:"\u043C\u0438\u043D\u0443\u0442",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum po\u010Detka",timeZoneName:"\u0432\u0440\u0435\u043C\u0435\u043D\u0441\u043A\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0430\u043D \u0443 \u043D\u0435\u0434\u0435\u0459\u0438",year:"\u0433\u043E\u0434\u0438\u043D\u0430"},"sv-SE":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"m\xE5nad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"\xE5r"},"tr-TR":{calendar:"Takvim",day:"g\xFCn",dayPeriod:"\xD6\xD6/\xD6S",endDate:"Biti\u015F Tarihi",era:"\xE7a\u011F",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Se\xE7ilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Se\xE7ilen Aral\u0131k: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Se\xE7ilen Zaman: ${e.time}`,startDate:"Ba\u015Flang\u0131\xE7 Tarihi",timeZoneName:"saat dilimi",weekday:"haftan\u0131n g\xFCn\xFC",year:"y\u0131l"},"uk-UA":{calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D\u044C",dayPeriod:"\u0434\u043F/\u043F\u043F",endDate:"\u0414\u0430\u0442\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F",era:"\u0435\u0440\u0430",hour:"\u0433\u043E\u0434\u0438\u043D\u0430",minute:"\u0445\u0432\u0438\u043B\u0438\u043D\u0430",month:"\u043C\u0456\u0441\u044F\u0446\u044C",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${e.date}`,selectedRangeDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${e.startDate} \u2014 ${e.endDate}`,selectedTimeDescription:e=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0447\u0430\u0441: ${e.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0438\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u0442\u0438\u0436\u043D\u044F",year:"\u0440\u0456\u043A"},"zh-CN":{calendar:"\u65E5\u5386",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7ED3\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:e=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${e.date}`,selectedRangeDescription:e=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${e.startDate} \u81F3 ${e.endDate}`,selectedTimeDescription:e=>`\u9009\u5B9A\u7684\u65F6\u95F4\uFF1A${e.time}`,startDate:"\u5F00\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"},"zh-TW":{calendar:"\u65E5\u66C6",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7D50\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:e=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${e.date}`,selectedRangeDescription:e=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${e.startDate} \u81F3 ${e.endDate}`,selectedTimeDescription:e=>`\u9078\u5B9A\u7684\u6642\u9593\uFF1A${e.time}`,startDate:"\u958B\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"}};function Ez(e,t,r){let{direction:o}=Q(),n=useMemo(()=>ci(t),[t]),i=s=>{if(Y(s.currentTarget,$(s))&&(s.altKey&&(s.key==="ArrowDown"||s.key==="ArrowUp")&&"setOpen"in e&&(s.preventDefault(),s.stopPropagation(),e.setOpen(true)),!r))switch(s.key){case "ArrowLeft":if(s.preventDefault(),s.stopPropagation(),o==="rtl"){if(t.current){let u=$(s),c=kz(t.current,u.getBoundingClientRect().left,-1);c&&c.focus();}}else n.focusPrevious();break;case "ArrowRight":if(s.preventDefault(),s.stopPropagation(),o==="rtl"){if(t.current){let u=$(s),c=kz(t.current,u.getBoundingClientRect().left,1);c&&c.focus();}}else n.focusNext();break}},a=s=>{if(!t.current)return;let u=et(t.current,{tabbable:true});if(s&&(u.currentNode=s,s=u.previousNode()),!s){let c;do c=u.lastChild(),c&&(s=c);while(c)}for(;s?.hasAttribute("data-placeholder");){let c=u.previousNode();if(c&&c.hasAttribute("data-placeholder"))s=c;else break}s&&s.focus();},{pressProps:l}=Ae({preventFocusOnPress:true,allowTextSelectionOnPress:true});return A(l,{onKeyDown:i,onPointerDown(s){s.pointerType==="mouse"&&a($(s));},onPointerUp(s){(s.pointerType==="touch"||s.pointerType==="pen")&&a($(s));},onMouseDown(s){typeof PointerEvent>"u"&&a($(s));},onTouchEnd(s){typeof PointerEvent>"u"&&a($(s));}})}function kz(e,t,r){let o=et(e,{tabbable:true}),n=o.nextNode(),i=null,a=1/0;for(;n;){let s=n.getBoundingClientRect().left-t,u=Math.abs(s);Math.sign(s)===r&&u<a&&(i=n,a=u),n=o.nextNode();}return i}var Tx=new WeakMap,xx="__reactAriaDateFieldRole",fG="__reactAriaDateFieldFocusManager";function yf(e,t,r){let{isInvalid:o,validationErrors:n,validationDetails:i}=t.displayValidation,{labelProps:a,fieldProps:l,descriptionProps:s,errorMessageProps:u}=Vr({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||n,ref:r}),c=useRef(null),{focusWithinProps:p}=lt({...e,onFocusWithin(S){c.current=t.value,e.onFocus?.(S);},onBlurWithin:S=>{t.confirmPlaceholder(),t.value!==c.current&&t.commitValidation(),e.onBlur?.(S);},onFocusWithinChange:e.onFocusChange}),d=ve(ff,"@react-aria/datepicker"),m=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",f=t.maxGranularity==="hour"?"time":"date",y=t.value?d.format(m,{[f]:t.formatValue({month:"long"})}):"",g=Tt(y,r),b=e[xx]==="presentation"?l["aria-describedby"]:[g["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=e[fG],h=useMemo(()=>x||ci(r),[x,r]),v=Ez(t,r,e[xx]==="presentation");Tx.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[a.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:b,focusManager:h});let C=useRef(e.autoFocus),T;e[xx]==="presentation"?T={role:"presentation"}:T=A(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":b}),useEffect(()=>{C.current&&h.focusFirst(),C.current=false;},[h]),It(e.inputRef,t.defaultValue,t.setValue),Wo({...e,focus(){h.focusFirst();}},t,e.inputRef);let P={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(P.type="text",P.hidden=true,P.required=e.isRequired,P.onChange=()=>{});let k=re(e);return {labelProps:{...a,onClick:()=>{h.focusFirst();}},fieldProps:A(k,T,v,p,{onKeyDown(S){e.onKeyDown&&e.onKeyDown(S);},onKeyUp(S){e.onKeyUp&&e.onKeyUp(S);},style:{unicodeBidi:"isolate"}}),inputProps:P,descriptionProps:s,errorMessageProps:u,isInvalid:o,validationErrors:n,validationDetails:i}}function Cx(e,t,r){let o=yf(e,t,r);return o.inputProps.value=t.timeValue?.toString()||"",o}function wz(){let{locale:e}=Q(),t=Vp(ff,"@react-aria/datepicker");return useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new Px(e,t)}},[e,t])}var Px=class{locale;dictionary;constructor(t,r){this.locale=t,this.dictionary=r;}of(t){return this.dictionary.getStringForLocale(t,this.locale)}};function Dx(e,t,r){let o=useRef(""),{locale:n,direction:i}=Q(),a=wz(),{ariaLabel:l,ariaLabelledBy:s,ariaDescribedBy:u,focusManager:c}=Tx.get(t),[p,d]=useState(null),m=e.isPlaceholder?"":e.text,f=useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),y=Rt({month:"long",timeZone:f.timeZone}),g=Rt({hour:"numeric",hour12:f.hour12,timeZone:f.timeZone});if(e.type==="month"&&!e.isPlaceholder){let K=y.format(t.dateValue);m=K!==m?`${m} \u2013 ${K}`:K;}else e.type==="hour"&&!e.isPlaceholder&&(m=g.format(t.dateValue));let{spinButtonProps:b}=Rl({value:e.value??void 0,textValue:m,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{o.current="",t.increment(e.type);},onDecrement:()=>{o.current="",t.decrement(e.type);},onIncrementPage:()=>{o.current="",t.incrementPage(e.type);},onDecrementPage:()=>{o.current="",t.decrementPage(e.type);},onIncrementToMax:()=>{o.current="",t.incrementToMax(e.type);},onDecrementToMin:()=>{o.current="",t.decrementToMin(e.type);}}),x=useMemo(()=>new oi(n,{maximumFractionDigits:0}),[n]),h=()=>{if(e.text===e.placeholder&&c.focusPrevious(),x.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let K=e.text.slice(0,-1),I=x.parse(K);K=I===0?"":K,K.length===0||I===0?t.clearSegment(e.type):t.setSegment(e.type,I),o.current=K;}else (e.type==="dayPeriod"||e.type==="era")&&t.clearSegment(e.type);},v=K=>{if(K.key==="a"&&(ht()?K.metaKey:K.ctrlKey)&&K.preventDefault(),!(K.ctrlKey||K.metaKey||K.shiftKey||K.altKey))switch(K.key){case "Backspace":case "Delete":{K.preventDefault(),K.stopPropagation(),h();break}}},{startsWith:C}=yi({sensitivity:"base"}),T=Rt({hour:"numeric",hour12:true}),P=useMemo(()=>{let K=new Date;return K.setHours(0),T.formatToParts(K).find(I=>I.type==="dayPeriod").value},[T]),k=useMemo(()=>{let K=new Date;return K.setHours(12),T.formatToParts(K).find(I=>I.type==="dayPeriod").value},[T]),S=Rt({year:"numeric",era:"narrow",timeZone:"UTC"}),w=useMemo(()=>{if(e.type!=="era")return [];let K=toCalendar(new CalendarDate(1,1,1),t.calendar),I=t.calendar.getEras().map(U=>{let q=K.set({year:1,month:1,day:1,era:U}).toDate("UTC"),J=S.formatToParts(q).find(me=>me.type==="era").value;return {era:U,formatted:J}}),H=TG(I.map(U=>U.formatted));if(H)for(let U of I)U.formatted=U.formatted.slice(H);return I},[S,t.calendar,e.type]),E=K=>{if(t.isDisabled||t.isReadOnly)return;let I=o.current+K;switch(e.type){case "dayPeriod":if(C(P,K))t.setSegment("dayPeriod",0);else if(C(k,K))t.setSegment("dayPeriod",1);else break;c.focusNext();break;case "era":{let H=w.find(U=>C(U.formatted,K));H&&(t.setSegment("era",H.era),c.focusNext());break}case "day":case "hour":case "minute":case "second":case "month":case "year":{if(!x.isValidPartialNumber(I))return;let H=x.parse(I),U=H;if(e.maxValue!==void 0&&H>e.maxValue&&(U=x.parse(K)),isNaN(H))return;t.setSegment(e.type,U),e.maxValue!==void 0&&(+(H+"0")>e.maxValue||I.length>=String(e.maxValue).length)?(o.current="",c.focusNext()):o.current=I;break}}};useEffect(()=>{d(G(r.current));},[r]);let R=()=>{o.current="",r.current&&kt(r.current,{containingElement:Ze(r.current)}),p?.defaultView?.getSelection()?.collapse(r.current);},_=useRef(typeof document<"u"?document:null);_.current=p,at(_,"selectionchange",()=>{let K=p?.defaultView?.getSelection();K?.anchorNode&&Y(r.current,K?.anchorNode)&&K.collapse(r.current);});let D=useRef("");at(r,"beforeinput",K=>{if(r.current)switch(K.preventDefault(),K.inputType){case "deleteContentBackward":case "deleteContentForward":x.isValidPartialNumber(e.text)&&!t.isReadOnly&&h();break;case "insertCompositionText":D.current=r.current.textContent,r.current.textContent=r.current.textContent;break;default:K.data!=null&&E(K.data);break}}),at(r,"input",K=>{let{inputType:I,data:H}=K;I==="insertCompositionText"&&(r.current&&(r.current.textContent=D.current),H!=null&&(C(P,H)||C(k,H))&&E(H));}),te(()=>{let K=r.current;return ()=>{ue(G(K))===K&&(c.focusPrevious()||c.focusNext());}},[r,c]);let F=Bt()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},z=useMemo(()=>t.segments.find(K=>K.isEditable),[t.segments]);e!==z&&!t.isInvalid&&(u=void 0);let N=ee(),V=!t.isDisabled&&!t.isReadOnly&&e.isEditable,M=e.type==="literal"?"":a.of(e.type),O=Qe({"aria-label":`${M}${l?`, ${l}`:""}${s?", ":""}`,"aria-labelledby":s});if(e.type==="literal")return {segmentProps:{"aria-hidden":true}};let B={caretColor:"transparent"};if(i==="rtl"){B.unicodeBidi="embed";let K=f[e.type];(K==="numeric"||K==="2-digit")&&(B.direction="ltr");}return {segmentProps:A(b,O,{id:N,...F,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":u,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:V,suppressContentEditableWarning:V,spellCheck:V?"false":void 0,autoCorrect:V?"off":void 0,[parseInt(Un.version,10)>=17?"enterKeyHint":"enterkeyhint"]:V?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!V?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:v,onFocus:R,style:B,onPointerDown(K){K.stopPropagation();},onMouseDown(K){K.stopPropagation();}})}}function TG(e){e.sort();let t=e[0],r=e[e.length-1];for(let o=0;o<t.length;o++)if(t[o]!==r[o])return o;return 0}var Rz={"ar-AE":{rangeOverflow:e=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${e.maxValue} \u0623\u0648 \u0642\u0628\u0644 \u0630\u0644\u0643.`,rangeReversed:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621 \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0642\u0628\u0644 \u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621.",rangeUnderflow:e=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${e.minValue} \u0623\u0648 \u0628\u0639\u062F \u0630\u0644\u0643.`,unavailableDate:"\u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0645\u062D\u062F\u062F\u0629 \u063A\u064A\u0631 \u0645\u062A\u0627\u062D\u0629."},"bg-BG":{rangeOverflow:e=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${e.maxValue} \u0438\u043B\u0438 \u043F\u043E-\u0440\u0430\u043D\u043D\u0430.`,rangeReversed:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 \u043F\u0440\u0435\u0434\u0438 \u043A\u0440\u0430\u0439\u043D\u0430\u0442\u0430.",rangeUnderflow:e=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${e.minValue} \u0438\u043B\u0438 \u043F\u043E-\u043A\u044A\u0441\u043D\u043E.`,unavailableDate:"\u0418\u0437\u0431\u0440\u0430\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435 \u0435 \u043D\u0430\u043B\u0438\u0447\u043D\u0430."},"cs-CZ":{rangeOverflow:e=>`Hodnota mus\xED b\xFDt ${e.maxValue} nebo d\u0159\xEDv\u011Bj\u0161\xED.`,rangeReversed:"Datum zah\xE1jen\xED mus\xED p\u0159edch\xE1zet datu ukon\u010Den\xED.",rangeUnderflow:e=>`Hodnota mus\xED b\xFDt ${e.minValue} nebo pozd\u011Bj\u0161\xED.`,unavailableDate:"Vybran\xE9 datum nen\xED k dispozici."},"da-DK":{rangeOverflow:e=>`V\xE6rdien skal v\xE6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal v\xE6re f\xF8r slutdatoen.",rangeUnderflow:e=>`V\xE6rdien skal v\xE6re ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilg\xE6ngelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xFCher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xE4ter sein.`,unavailableDate:"Das ausgew\xE4hlte Datum ist nicht verf\xFCgbar."},"el-GR":{rangeOverflow:e=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${e.maxValue} \u03AE \u03C0\u03B1\u03BB\u03B1\u03B9\u03CC\u03C4\u03B5\u03C1\u03B7.`,rangeReversed:"\u0397 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2.",rangeUnderflow:e=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${e.minValue} \u03AE \u03BC\u03B5\u03C4\u03B1\u03B3\u03B5\u03BD\u03AD\u03C3\u03C4\u03B5\u03C1\u03B7.`,unavailableDate:"\u0397 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03B4\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalizaci\xF3n.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`V\xE4\xE4rtus peab olema ${e.maxValue} v\xF5i varasem.`,rangeReversed:"Alguskuup\xE4ev peab olema enne l\xF5ppkuup\xE4eva.",rangeUnderflow:e=>`V\xE4\xE4rtus peab olema ${e.minValue} v\xF5i hilisem.`,unavailableDate:"Valitud kuup\xE4ev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xE4 aikaisempi.`,rangeReversed:"Aloitusp\xE4iv\xE4n on oltava ennen lopetusp\xE4iv\xE4\xE4.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xE4 my\xF6h\xE4isempi.`,unavailableDate:"Valittu p\xE4iv\xE4m\xE4\xE4r\xE4 ei ole k\xE4ytett\xE4viss\xE4."},"fr-FR":{rangeOverflow:e=>`La valeur doit \xEAtre ${e.maxValue} ou ant\xE9rieure.`,rangeReversed:"La date de d\xE9but doit \xEAtre ant\xE9rieure \xE0 la date de fin.",rangeUnderflow:e=>`La valeur doit \xEAtre ${e.minValue} ou ult\xE9rieure.`,unavailableDate:"La date s\xE9lectionn\xE9e n\u2019est pas disponible."},"he-IL":{rangeOverflow:e=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${e.maxValue} \u05D0\u05D5 \u05DE\u05D5\u05E7\u05D3\u05DD \u05D9\u05D5\u05EA\u05E8.`,rangeReversed:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05D4\u05EA\u05D7\u05DC\u05D4 \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DC\u05E4\u05E0\u05D9 \u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E1\u05D9\u05D5\u05DD.",rangeUnderflow:e=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${e.minValue} \u05D0\u05D5 \u05DE\u05D0\u05D5\u05D7\u05E8 \u05D9\u05D5\u05EA\u05E8.`,unavailableDate:"\u05D4\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E0\u05D1\u05D7\u05E8 \u05D0\u05D9\u05E0\u05D5 \u05D6\u05DE\u05D9\u05DF."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum po\u010Detka mora biti prije datuma zavr\u0161etka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az \xE9rt\xE9knek ${e.maxValue} vagy kor\xE1bbinak kell lennie.`,rangeReversed:"A kezd\u0151 d\xE1tumnak a befejez\u0151 d\xE1tumn\xE1l kor\xE1bbinak kell lennie.",rangeUnderflow:e=>`Az \xE9rt\xE9knek ${e.minValue} vagy k\xE9s\u0151bbinek kell lennie.`,unavailableDate:"A kiv\xE1lasztott d\xE1tum nem \xE9rhet\u0151 el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`\u5024\u306F ${e.maxValue} \u4EE5\u4E0B\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u306F\u7D42\u4E86\u65E5\u3088\u308A\u524D\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",rangeUnderflow:e=>`\u5024\u306F ${e.minValue} \u4EE5\u4E0A\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,unavailableDate:"\u9078\u629E\u3057\u305F\u65E5\u4ED8\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002"},"ko-KR":{rangeOverflow:e=>`\uAC12\uC740 ${e.maxValue} \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,rangeReversed:"\uC2DC\uC791\uC77C\uC740 \uC885\uB8CC\uC77C \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.",rangeUnderflow:e=>`\uAC12\uC740 ${e.minValue} \uC774\uD6C4\uC5EC\uC57C \uD569\uB2C8\uB2E4.`,unavailableDate:"\uC120\uD0DD\uD55C \uB0A0\uC9DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},"lt-LT":{rangeOverflow:e=>`Reik\u0161m\u0117 turi b\u016Bti ${e.maxValue} arba ankstesn\u0117.`,rangeReversed:"Prad\u017Eios data turi b\u016Bti ankstesn\u0117 nei pabaigos data.",rangeUnderflow:e=>`Reik\u0161m\u0117 turi b\u016Bti ${e.minValue} arba naujesn\u0117.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${e.maxValue} vai agr\u0101kai.`,rangeReversed:"S\u0101kuma datumam ir j\u0101b\u016Bt pirms beigu datuma.",rangeUnderflow:e=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${e.minValue} vai v\u0113l\u0101kai.`,unavailableDate:"Atlas\u012Btais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien m\xE5 v\xE6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen m\xE5 v\xE6re f\xF8r sluttdatoen.",rangeUnderflow:e=>`Verdien m\xE5 v\xE6re ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${e.maxValue} lub wcze\u015Bniejsz\u0105.`,rangeReversed:"Data rozpocz\u0119cia musi by\u0107 wcze\u015Bniejsza ni\u017C data zako\u0144czenia.",rangeUnderflow:e=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${e.minValue} lub p\xF3\u017Aniejsz\u0105.`,unavailableDate:"Wybrana data jest niedost\u0119pna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior \xE0 data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de in\xEDcio deve ser anterior \xE0 data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie s\u0103 fie ${e.maxValue} sau anterioar\u0103.`,rangeReversed:"Data de \xEEnceput trebuie s\u0103 fie anterioar\u0103 datei de sf\xE2r\u0219it.",rangeUnderflow:e=>`Valoarea trebuie s\u0103 fie ${e.minValue} sau ulterioar\u0103.`,unavailableDate:"Data selectat\u0103 nu este disponibil\u0103."},"ru-RU":{rangeOverflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u043F\u043E\u0437\u0436\u0435 ${e.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u043F\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u0442\u0435 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F.",rangeUnderflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u0440\u0430\u043D\u044C\u0448\u0435 ${e.minValue}.`,unavailableDate:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."},"sk-SK":{rangeOverflow:e=>`Hodnota mus\xED by\u0165 ${e.maxValue} alebo skor\u0161ia.`,rangeReversed:"D\xE1tum za\u010Diatku mus\xED by\u0165 skor\u0161\xED ako d\xE1tum konca.",rangeUnderflow:e=>`Hodnota mus\xED by\u0165 ${e.minValue} alebo neskor\u0161ia.`,unavailableDate:"Vybrat\xFD d\xE1tum je nedostupn\xFD."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starej\u0161a.`,rangeReversed:"Za\u010Detni datum mora biti pred kon\u010Dnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novej\u0161a.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum po\u010Detka mora biti pre datuma zavr\u0161etka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`V\xE4rdet m\xE5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet m\xE5ste vara f\xF6re slutdatumet.",rangeUnderflow:e=>`V\xE4rdet m\xE5ste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet \xE4r inte tillg\xE4ngligt."},"tr-TR":{rangeOverflow:e=>`De\u011Fer, ${e.maxValue} veya \xF6ncesi olmal\u0131d\u0131r.`,rangeReversed:"Ba\u015Flang\u0131\xE7 tarihi biti\u015F tarihinden \xF6nce olmal\u0131d\u0131r.",rangeUnderflow:e=>`De\u011Fer, ${e.minValue} veya sonras\u0131 olmal\u0131d\u0131r.`,unavailableDate:"Se\xE7ilen tarih kullan\u0131lam\u0131yor."},"uk-UA":{rangeOverflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u043F\u0456\u0437\u043D\u0456\u0448\u0435 ${e.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443 \u043C\u0430\u0454 \u043F\u0435\u0440\u0435\u0434\u0443\u0432\u0430\u0442\u0438 \u0434\u0430\u0442\u0456 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F.",rangeUnderflow:e=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u0440\u0430\u043D\u0456\u0448\u0435 ${e.minValue}.`,unavailableDate:"\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."},"zh-CN":{rangeOverflow:e=>`\u503C\u5FC5\u987B\u662F ${e.maxValue} \u6216\u66F4\u65E9\u65E5\u671F\u3002`,rangeReversed:"\u5F00\u59CB\u65E5\u671F\u5FC5\u987B\u65E9\u4E8E\u7ED3\u675F\u65E5\u671F\u3002",rangeUnderflow:e=>`\u503C\u5FC5\u987B\u662F ${e.minValue} \u6216\u66F4\u665A\u65E5\u671F\u3002`,unavailableDate:"\u6240\u9009\u65E5\u671F\u4E0D\u53EF\u7528\u3002"},"zh-TW":{rangeOverflow:e=>`\u503C\u5FC5\u9808\u662F ${e.maxValue} \u6216\u66F4\u65E9\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u671F\u5FC5\u9808\u5728\u7D50\u675F\u65E5\u671F\u4E4B\u524D\u3002",rangeUnderflow:e=>`\u503C\u5FC5\u9808\u662F ${e.minValue} \u6216\u66F4\u665A\u3002`,unavailableDate:"\u6240\u9078\u65E5\u671F\u7121\u6CD5\u4F7F\u7528\u3002"}};var zG=new lr(Rz);function wG(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e]);}catch{e="en-US";}return e}function _z(e,t,r,o,n){let i=e!=null&&r!=null&&e.compare(r)>0,a=e!=null&&t!=null&&e.compare(t)<0,l=e!=null&&o?.(e)||false,s=i||a||l,u=[];if(s){let c=wG(),p=lr.getGlobalDictionaryForPackage("@react-stately/datepicker")||zG,d=new Sn(c,p),m=new DateFormatter(c,kc({},n)),f=m.resolvedOptions().timeZone;a&&t!=null&&u.push(d.format("rangeUnderflow",{minValue:m.format(t.toDate(f))})),i&&r!=null&&u.push(d.format("rangeOverflow",{maxValue:m.format(r.toDate(f))})),l&&u.push(d.format("unavailableDate"));}return {isInvalid:s,validationErrors:u,validationDetails:{badInput:l,customError:false,patternMismatch:false,rangeOverflow:i,rangeUnderflow:a,stepMismatch:false,tooLong:false,tooShort:false,typeMismatch:false,valueMissing:false,valid:!s}}}var RG={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},IG={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function kc(e,t){e={...t.shouldForceLeadingZeros?IG:RG,...e};let o=t.granularity||"minute",n=Object.keys(e),i=n.indexOf(t.maxGranularity??"year");i<0&&(i=0);let a=n.indexOf(o);if(a<0&&(a=2),i>a)throw new Error("maxGranularity must be greater than granularity");let l=n.slice(i,a+1).reduce((u,c)=>(u[c]=e[c],u),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(o==="hour"||o==="minute"||o==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&i===0&&(l.era="short"),l}function kx(e,t){if(e===null)return null;if(e)return toCalendar(e,t)}function Mz(e,t,r,o){if(e)return kx(e,r);let n=toCalendar(now(o??getLocalTimeZone()).set({hour:0,minute:0,second:0,millisecond:0}),r);return t==="year"||t==="month"||t==="day"?toCalendarDate(n):o?n:toCalendarDateTime(n)}function Lz(e,t){let r=e&&"timeZone"in e?e.timeZone:void 0,o=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[n,i]=useState([o,r]);e&&(n[0]!==o||n[1]!==r)&&i([o,r]),t||(t=e?o:n[0]);let a=e?r:n[1];return [t,a]}var _G=new lr({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"\u12D3\u12D3\u12D3\u12D3",month:"\u121A\u121C",day:"\u1240\u1240"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"\u0633\u0646\u0629",month:"\u0634\u0647\u0631",day:"\u064A\u0648\u0645"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bg:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bn:{year:"yyyy",month:"\u09AE\u09BF\u09AE\u09BF",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"\u0633\u0627\u06B5",month:"\u0645\u0627\u0646\u06AF",day:"\u0695\u06C6\u0698"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"\u017A\u017A"},el:{year:"\u03B5\u03B5\u03B5\u03B5",month:"\u03BC\u03BC",day:"\u03B7\u03B7"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"\u0633\u0627\u0644",month:"\u0645\u0627\u0647",day:"\u0631\u0648\u0632"},ff:{year:"hhhh",month:"ll",day:"\xF1\xF1"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"\u05E9\u05E0\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",day:"\u05D9\u05D5\u05DD"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"\xE9\xE9\xE9\xE9",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"\xE1\xE1\xE1\xE1",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"\u5E74",month:"\u6708",day:"\u65E5"},ka:{year:"\u10EC\u10EC\u10EC\u10EC",month:"\u10D7\u10D7",day:"\u10E0\u10E0"},kk:{year:"\u0436\u0436\u0436\u0436",month:"\u0430\u0430",day:"\u043A\u043A"},kn:{year:"\u0CB5\u0CB5\u0CB5\u0CB5",month:"\u0CAE\u0CBF\u0CAE\u0CC0",day:"\u0CA6\u0CBF\u0CA6\u0CBF"},ko:{year:"\uC5F0\uB3C4",month:"\uC6D4",day:"\uC77C"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"\u0E9B\u0E9B\u0E9B\u0E9B",month:"\u0E94\u0E94",day:"\u0EA7\u0EA7"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"\u0D35\u0D7C\u0D37\u0D02",month:"\u0D2E\u0D3E\u0D38\u0D02",day:"\u0D24\u0D40\u0D2F\u0D24\u0D3F"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},no:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},sv:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"\u0441\u0441\u0441\u0441",month:"\u043C\u043C",day:"\u0440\u0440"},th:{year:"\u0E1B\u0E1B\u0E1B\u0E1B",month:"\u0E14\u0E14",day:"\u0E27\u0E27"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"\u0440\u0440\u0440\u0440",month:"\u043C\u043C",day:"\u0434\u0434"},"zh-CN":{year:"\u5E74",month:"\u6708",day:"\u65E5"},"zh-TW":{year:"\u5E74",month:"\u6708",day:"\u65E5"}},"en");function Az(e,t,r){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?_G.getStringForLocale(e,r):"\u2013\u2013"}var Eo=class e{calendar;era;year;month;day;hour;hourCycle;dayPeriod;minute;second;millisecond;offset;constructor(t,r,o){if(this.era=o?.era??null,this.calendar=t,this.year=o?.year??null,this.month=o?.month??null,this.day=o?.day??null,this.hour=o?.hour??null,this.hourCycle=r,this.dayPeriod=null,this.minute=o?.minute??null,this.second=o?.second??null,this.millisecond=o?.millisecond??null,this.offset="offset"in(o??{})?o.offset:null,this.hour!=null){let[n,i]=jl(this.hour,r);this.dayPeriod=n,this.hour=i;}}copy(){let t=new e(this.calendar,this.hourCycle);return t.era=this.era,t.year=this.year,t.month=this.month,t.day=this.day,t.hour=this.hour,t.dayPeriod=this.dayPeriod,t.minute=this.minute,t.second=this.second,t.millisecond=this.millisecond,t.offset=this.offset,t}isComplete(t){return t.every(r=>this[r]!=null)}validate(t,r){return r.every(o=>{if((o==="hour"||o==="dayPeriod")&&"hour"in t){let[n,i]=jl(t.hour,this.hourCycle);return this.dayPeriod===n&&this.hour===i}return this[o]===t[o]})}isCleared(t){return t.every(r=>this[r]===null)}set(t,r,o){let n=this.copy();return n[t]=r,t==="hour"&&n.dayPeriod==null&&"hour"in o&&(n.dayPeriod=jl(o.hour,this.hourCycle)[0]),t==="year"&&n.era==null&&(n.era=o.era),t!=="second"&&t!=="literal"&&t!=="timeZoneName"&&(n.offset=null),n}clear(t){let r=this.copy();return r[t]=null,t==="year"&&(r.era=null),r.offset=null,r}cycle(t,r,o,n){let i=this.copy();if(i[t]==null&&t!=="dayPeriod"&&t!=="era"){if(t==="hour"&&"hour"in o){let[a,l]=jl(o.hour,this.hourCycle);i.dayPeriod=a,i.hour=l;}else i[t]=o[t];return t==="year"&&i.era==null&&(i.era=o.era),i}switch(t){case "era":{let a=this.calendar.getEras(),l=a.indexOf(i.era);l=Pa(l,r,0,a.length-1),i.era=a[l];break}case "year":{let a=new CalendarDate(this.calendar,this.era??o.era,this.year??o.year,this.month??1,this.day??1);a=a.cycle(t,r,{round:t==="year"}),i.era=a.era,i.year=a.year;break}case "month":i.month=Pa(i.month??1,r,1,this.calendar.getMaximumMonthsInYear());break;case "day":i.day=Pa(i.day??1,r,1,this.calendar.getMaximumDaysInMonth());break;case "hour":{let a=n.some(l=>["year","month","day"].includes(l));if("timeZone"in o&&(!a||i.year!=null&&i.month!=null&&i.day!=null)){let l=this.toValue(o);l=l.cycle("hour",r,{hourCycle:this.hourCycle==="h12"?12:24,round:false});let[s,u]=jl(l.hour,this.hourCycle);i.hour=u,i.dayPeriod=s,i.offset=l.offset;}else {let l=i.hour??0,s=this.getSegmentLimits("hour");i.hour=Pa(l,r,s.minValue,s.maxValue),i.dayPeriod==null&&"hour"in o&&(i.dayPeriod=jl(o.hour,this.hourCycle)[0]);}break}case "dayPeriod":i.dayPeriod=Pa(i.dayPeriod??0,r,0,1);break;case "minute":i.minute=Pa(i.minute??0,r,0,59,true);break;case "second":i.second=Pa(i.second??0,r,0,59,true);break}return i}toValue(t){if("hour"in t){let r=this.hour;r!=null?r=LG(r,this.dayPeriod??0,this.hourCycle):(this.hourCycle==="h12"||this.hourCycle==="h11")&&(r=this.dayPeriod===1?12:0);let o=t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day,hour:r??t.hour,minute:this.minute??t.minute,second:this.second??t.second,millisecond:this.millisecond??t.millisecond});return "offset"in o&&this.offset!=null&&o.offset!==this.offset&&(o=o.add({milliseconds:o.offset-this.offset})),o}else return t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day})}getSegmentLimits(t){switch(t){case "era":{let r=this.calendar.getEras();return {value:this.era!=null?r.indexOf(this.era):r.length-1,minValue:0,maxValue:r.length-1}}case "year":return {value:this.year,minValue:1,maxValue:9999};case "month":return {value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case "day":return {value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case "dayPeriod":return {value:this.dayPeriod,minValue:0,maxValue:1};case "hour":{let r=0,o=23;return this.hourCycle==="h12"?(r=1,o=12):this.hourCycle==="h11"&&(r=0,o=11),{value:this.hour,minValue:r,maxValue:o}}case "minute":return {value:this.minute,minValue:0,maxValue:59};case "second":return {value:this.second,minValue:0,maxValue:59}}}};function Pa(e,t,r,o,n=false){if(n){e+=Math.sign(t),e<r&&(e=o);let i=Math.abs(t);t>0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>o&&(e=r);}else e+=t,e<r?e=o-(r-e-1):e>o&&(e=r+(e-o-1));return e}function jl(e,t){let r=e>=12?1:0;switch(t){case "h11":e>=12&&(e-=12);break;case "h12":e===0?e=12:e>12&&(e-=12);break;case "h23":r=null;break;case "h24":e+=1,r=null;}return [r,e]}function LG(e,t,r){switch(r){case "h11":t===1&&(e+=12);break;case "h12":e===12&&(e=0),t===1&&(e+=12);break;case "h24":e-=1;break}return e}var wx={year:true,month:true,day:true,hour:true,minute:true,second:true,dayPeriod:true,era:true},Oz={year:5,month:2,day:7,hour:2,minute:15,second:15},OG={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function zc(e){let{locale:t,createCalendar:r,hideTimeZone:o,isDisabled:n=false,isReadOnly:i=false,isRequired:a=false,minValue:l,maxValue:s,isDateUnavailable:u}=e,c=e.value||e.defaultValue||e.placeholderValue||null,[p,d]=Lz(c,e.granularity),m=d||"UTC";if(c&&!(p in c))throw new Error("Invalid granularity "+p+" for value "+c.toString());let[f,y]=useMemo(()=>{let J=new DateFormatter(t,{dateStyle:"short",timeStyle:"short",hour12:e.hourCycle!=null?e.hourCycle===12:void 0}).resolvedOptions();return [r(J.calendar),J.hourCycle]},[t,e.hourCycle,r]),[g,b]=ye(e.value,e.defaultValue??null,e.onChange),[x]=useState(g),h=useMemo(()=>kx(g,f)??null,[g,f]),[v,C]=useState(()=>new Eo(f,y,h)),T=f.identifier==="gregory"&&v.era==="BC",P=useMemo(()=>({granularity:p,maxGranularity:e.maxGranularity??"year",timeZone:d,hideTimeZone:o,hourCycle:e.hourCycle,showEra:T,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,p,e.hourCycle,e.shouldForceLeadingZeros,d,o,T]),k=useMemo(()=>kc({},P),[P]),S=useMemo(()=>new DateFormatter(t,k),[t,k]),w=useMemo(()=>S.resolvedOptions(),[S]),E=useMemo(()=>Mz(e.placeholderValue,p,f,d),[e.placeholderValue,p,f,d]),R=useMemo(()=>{let W=y==="h11"||y==="h12",J=["era","year","month","day","hour",...W?["dayPeriod"]:[],"minute","second"],me=J.indexOf(e.maxGranularity||"era"),ne=J.indexOf(p==="hour"&&W?"dayPeriod":p);return J.slice(me,ne+1)},[e.maxGranularity,p,y]),[_,D]=useState(h),[F,z]=useState(f),[N,V]=useState(y);(h!==_||y!==N||!isEqualCalendar(f,F))&&(v=new Eo(f,y,h),D(h),z(f),V(y),C(v));let M=W=>{if(!(e.isDisabled||e.isReadOnly))if(W==null||W instanceof Eo&&W.isCleared(R))C(new Eo(f,y,h)),b(null);else if(!(W instanceof Eo))W=toCalendar(W,c?.calendar||new GregorianCalendar),C(new Eo(f,y,h)),b(W);else {if(W.isComplete(R)){let J=W.toValue(h??E);if(W.validate(J,R)){let me=toCalendar(J,c?.calendar||new GregorianCalendar);if(!g||me.compare(g)!==0){C(new Eo(f,y,h)),b(me);return}}}C(W);}},O=useMemo(()=>v.toValue(h??E).toDate(m),[v,m,h,E]),B=useMemo(()=>NG(O,v,S,w,f,t,p),[O,S,w,v,f,t,p]),K=(W,J)=>{M(v.cycle(W,J,E,R));},I=useMemo(()=>_z(g,l,s,u,P),[g,l,s,u,P]),H=Nt({...e,value:g,builtinValidation:I}),U=H.displayValidation.isInvalid,q=e.validationState||(U?"invalid":null);return {...H,value:h,defaultValue:e.defaultValue??x,dateValue:O,calendar:f,setValue:M,segments:B,dateFormatter:S,validationState:q,isInvalid:U,granularity:p,maxGranularity:e.maxGranularity??"year",isDisabled:n,isReadOnly:i,isRequired:a,increment(W){K(W,1);},decrement(W){K(W,-1);},incrementPage(W){K(W,Oz[W]||1);},decrementPage(W){K(W,-(Oz[W]||1));},incrementToMax(W){let J=W==="hour"&&y==="h12"?11:v.getSegmentLimits(W).maxValue;M(v.set(W,J,E));},decrementToMin(W){let J=W==="hour"&&y==="h12"?12:v.getSegmentLimits(W).minValue;M(v.set(W,J,E));},setSegment(W,J){M(v.set(W,J,E));},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&v.isComplete(R)){let W=v.toValue(h??E),J=toCalendar(W,c?.calendar||new GregorianCalendar);(!g||J.compare(g)!==0)&&b(J),C(new Eo(f,y,h));}},clearSegment(W){let J=v;W!=="timeZoneName"&&W!=="literal"&&(J=v.clear(W)),M(J);},formatValue(W){if(!h)return "";let J=kc(W,P);return new DateFormatter(t,J).format(O)},getDateFormatter(W,J){let me={...P,...J},ne=kc({},me);return new DateFormatter(W,ne)}}}function NG(e,t,r,o,n,i,a){let l=["hour","minute","second"],s=r.formatToParts(e),u=new $t(i,{useGrouping:false}),c=new $t(i,{useGrouping:false,minimumIntegerDigits:2});for(let d of s)if(d.type==="year"||d.type==="month"||d.type==="day"||d.type==="hour"){let m=t[d.type]??0;o[d.type]==="2-digit"?d.value=c.format(m):d.value=u.format(m);}let p=[];for(let d of s){let m=OG[d.type]||d.type,f=wx[m];m==="era"&&n.getEras().length===1&&(f=false);let y=wx[m]&&t[d.type]==null,g=wx[m]?Az(m,d.value,i):null,b={type:m,text:y?g:d.value,...t.getSegmentLimits(m),isPlaceholder:y,placeholder:g,isEditable:f};m==="hour"?(p.push({type:"literal",text:"\u2066",isPlaceholder:false,placeholder:"",isEditable:false}),p.push(b),m===a&&p.push({type:"literal",text:"\u2069",isPlaceholder:false,placeholder:"",isEditable:false})):l.includes(m)&&m===a?(p.push(b),p.push({type:"literal",text:"\u2069",isPlaceholder:false,placeholder:"",isEditable:false})):p.push(b);}return p}function Rx(e){let{placeholderValue:t=new Time,minValue:r,maxValue:o,defaultValue:n,granularity:i,validate:a}=e,[l,s]=ye(e.value,n??null,e.onChange),u=l||t,c=u&&"day"in u?u:void 0,p=n&&"timeZone"in n?n.timeZone:void 0,d=useMemo(()=>{let v=u&&"timeZone"in u?u.timeZone:void 0;return (v||p)&&t?toZoned(Ul(t),v||p):Ul(t)},[t,u,p]),m=useMemo(()=>Ul(r,c),[r,c]),f=useMemo(()=>Ul(o,c),[o,c]),y=useMemo(()=>l&&"day"in l?toTime(l):l,[l]),g=useMemo(()=>l==null?null:Ul(l),[l]),b=useMemo(()=>n==null?null:Ul(n),[n]);return {...zc({...e,value:g,defaultValue:b,minValue:m,maxValue:f,onChange:v=>{s(c||p?v:v&&toTime(v));},granularity:i||"minute",maxGranularity:"hour",placeholderValue:d??void 0,createCalendar:()=>new GregorianCalendar,validate:useCallback(()=>a?.(l),[a,l])}),timeValue:y}}function Ul(e,t=today(getLocalTimeZone())){return e?"day"in e?e:toCalendarDateTime(t,e):null}function Ix(e,t,r){let{isDisabled:o}=e,n=ee(),i=ee(),a=Zr(),l=useRef(null),s=useCallback(()=>{l.current=requestAnimationFrame(()=>{r.current&&r.current.setAttribute("hidden","until-found");}),flushSync(()=>{t.toggle();});},[r,t]);at(r,"beforematch",s);let u=useRef(null);return te(()=>{if(l.current&&cancelAnimationFrame(l.current),r.current&&!a){let c=r.current;u.current==null||typeof c.getAnimations!="function"?t.isExpanded?(c.removeAttribute("hidden"),c.style.setProperty("--disclosure-panel-width","auto"),c.style.setProperty("--disclosure-panel-height","auto")):(c.setAttribute("hidden","until-found"),c.style.setProperty("--disclosure-panel-width","0px"),c.style.setProperty("--disclosure-panel-height","0px")):t.isExpanded!==u.current&&(t.isExpanded?(c.removeAttribute("hidden"),c.style.setProperty("--disclosure-panel-width",c.scrollWidth+"px"),c.style.setProperty("--disclosure-panel-height",c.scrollHeight+"px"),Promise.all(c.getAnimations().map(p=>p.finished)).then(()=>{c.style.setProperty("--disclosure-panel-width","auto"),c.style.setProperty("--disclosure-panel-height","auto");}).catch(()=>{})):(c.style.setProperty("--disclosure-panel-width",c.scrollWidth+"px"),c.style.setProperty("--disclosure-panel-height",c.scrollHeight+"px"),window.getComputedStyle(c).height,c.style.setProperty("--disclosure-panel-width","0px"),c.style.setProperty("--disclosure-panel-height","0px"),Promise.all(c.getAnimations().map(p=>p.finished)).then(()=>c.setAttribute("hidden","until-found")).catch(()=>{}))),u.current=t.isExpanded;}},[o,r,t.isExpanded,a]),useEffect(()=>()=>{l.current&&cancelAnimationFrame(l.current);},[]),{buttonProps:{id:n,"aria-expanded":t.isExpanded,"aria-controls":i,onPress:c=>{!o&&c.pointerType!=="keyboard"&&t.toggle();},isDisabled:o,onPressStart(c){c.pointerType==="keyboard"&&!o&&t.toggle();}},panelProps:{id:i,role:"group","aria-labelledby":n,"aria-hidden":!t.isExpanded,hidden:a?!t.isExpanded:void 0}}}function Mx(e){let[t,r]=ye(e.isExpanded,e.defaultExpanded||false,e.onExpandedChange),o=useCallback(()=>{r(true);},[r]),n=useCallback(()=>{r(false);},[r]),i=useCallback(()=>{r(!t);},[r,t]);return {isExpanded:t,setExpanded:r,expand:o,collapse:n,toggle:i}}var Sa=(a=>(a[a.none=0]="none",a[a.cancel=0]="cancel",a[a.move=1]="move",a[a.copy=2]="copy",a[a.link=4]="link",a[a.all=7]="all",a))(Sa||{}),Lx={...Sa,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},Ax=Kz(Lx);Ax[7]="all";var Da={none:"cancel",link:"link",copy:"copy",move:"move"},gf=Kz(Da);function Kz(e){let t={};for(let r in e)t[e[r]]=r;return t}var Vz=new Set(["text/plain","text/uri-list","text/html"]),wc="application/vnd.react-aria.items+json",Rc="application/octet-stream";var hf=new WeakMap,Nx=Symbol();function Bz(e){let{id:t}=hf.get(e)||{};if(!t)throw new Error("Droppable item outside a droppable collection");return t}function Hz(e){let{ref:t}=hf.get(e)||{};if(!t)throw new Error("Droppable item outside a droppable collection");return t}function Jo(e){let t=new Set;for(let r of e)for(let o of Object.keys(r))t.add(o);return t}function $z(e){return e||(e="virtual"),e==="pointer"&&(e="virtual"),e==="virtual"&&typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(pointer: coarse)").matches&&(e="touch"),e}function Wl(){return $z(Yt())}function Fx(){return $z(Dt())}function Ic(e,t){let r=new Map,o=false,n=[];for(let i of t){let a=Object.keys(i);a.length>1&&(o=true);let l={};for(let s of a){let u=r.get(s);u?o=true:(u=[],r.set(s,u));let c=i[s];l[s]=c,u.push(c);}n.push(l);}for(let[i,a]of r)if(Vz.has(i)){let l=a.join(`
|
|
22
|
-
`);e.items.add(l,i);}else e.items.add(a[0],i);if(o){let i=JSON.stringify(n);e.items.add(i,wc);}}var ka=class{types;includesUnknownTypes;constructor(t){this.types=new Set;let r=false;for(let o of t.items)o.type!==wc&&(o.kind==="file"&&(r=true),o.type?this.types.add(o.type):this.types.add(Rc));this.includesUnknownTypes=!r&&t.types.includes("Files");}has(t){if(Array.isArray(t))return t.some(r=>this.has(r));if(this.includesUnknownTypes||t===Nx&&this.types.has(Rc)||t==="*/*")return true;if(typeof t=="string"){if(t.endsWith("/*")){for(let r of this.types)if(r.startsWith(t.slice(0,-2)))return true;return false}return this.types.has(t)}return false}};function vf(e){let t=[];if(!e)return t;let r=false;if(e.types.includes(wc))try{let o=e.getData(wc),n=JSON.parse(o);for(let i of n)t.push({kind:"text",types:new Set(Object.keys(i)),getText:a=>Promise.resolve(i[a])});r=!0;}catch{}if(!r){let o=new Map;for(let n of e.items)if(n.kind==="string")o.set(n.type||Rc,e.getData(n.type));else if(n.kind==="file")if(typeof n.webkitGetAsEntry=="function"){let i=n.webkitGetAsEntry();if(!i)continue;i.isFile?t.push(Ox(n.getAsFile())):i.isDirectory&&t.push(jz(i));}else t.push(Ox(n.getAsFile()));o.size>0&&t.push({kind:"text",types:new Set(o.keys()),getText:n=>Promise.resolve(o.get(n))});}return t}function qG(e){return typeof e.text=="function"?e.text():new Promise((t,r)=>{let o=new FileReader;o.onload=()=>{t(o.result);},o.onerror=r,o.readAsText(e);})}function Ox(e){if(!e)throw new Error("No file provided");return {kind:"file",type:e.type||Rc,name:e.name,getText:()=>qG(e),getFile:()=>Promise.resolve(e)}}function jz(e){return {kind:"directory",name:e.name,getEntries:()=>XG(e)}}async function*XG(e){let t=e.createReader(),r;do{r=await new Promise((o,n)=>{t.readEntries(o,n);});for(let o of r)if(o.isFile){let n=await YG(o);yield Ox(n);}else o.isDirectory&&(yield jz(o));}while(r.length>0)}function YG(e){return new Promise((t,r)=>e.file(t,r))}var bt={draggingKeys:new Set};function Gz(e){bt.draggingCollectionRef=e;}function Uz(e){bt.draggingKeys=e;}function Ea(e){bt.dropCollectionRef=e;}function xf(){bt={draggingKeys:new Set};}function Wz(e){bt=e;}function Gr(e){let{draggingCollectionRef:t,dropCollectionRef:r}=bt;return t?.current!=null&&t.current===(e?.current||r?.current)}var _c;function ql(e){_c=e;}var Tf=0;function Cf(e){Tf=e;}var Kx=new Map,Mc=new Map,wo=null,Pf=new Set;function Sf(e){return Kx.set(e.element,e),wo?.updateValidDropTargets(),()=>{Kx.delete(e.element),wo?.updateValidDropTargets();}}function Xz(e){return Mc.set(e.element,e),()=>{Mc.delete(e.element);}}function Yz(e,t){if(wo)throw new Error("Cannot begin dragging while already dragging");wo=new Vx(e,t),requestAnimationFrame(()=>{wo&&(wo.setup(),Fx()==="keyboard"&&wo.next());});for(let r of Pf)r();}function Xl(){let[e,t]=useState(wo);return useEffect(()=>{let r=()=>t(wo);return Pf.add(r),()=>{Pf.delete(r);}},[]),e}function Bx(){return !!wo}function QG(){wo=null;for(let e of Pf)e();}var qz=["pointerdown","pointermove","pointerenter","pointerleave","pointerover","pointerout","pointerup","mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","touchstart","touchmove","touchend","focusin","focusout"],eU=["pointerup","mouseup","touchend"],tU={keyboard:"dragStartedKeyboard",touch:"dragStartedTouch",virtual:"dragStartedVirtual"},Vx=class{dragTarget;validDropTargets=[];currentDropTarget=null;currentDropItem=null;dropOperation=null;mutationObserver=null;restoreAriaHidden=null;stringFormatter;isVirtualClick=false;initialFocused;constructor(t,r){this.dragTarget=t,this.stringFormatter=r,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.cancelEvent=this.cancelEvent.bind(this),this.initialFocused=false;}setup(){let t=X(this.dragTarget.element),r=t.document;r.addEventListener("keydown",this.onKeyDown,true),r.addEventListener("keyup",this.onKeyUp,true),t.addEventListener("focus",this.onFocus,true),t.addEventListener("blur",this.onBlur,true),r.addEventListener("click",this.onClick,true),r.addEventListener("pointerdown",this.onPointerDown,true);for(let o of qz)r.addEventListener(o,this.cancelEvent,true);this.mutationObserver=new MutationObserver(()=>this.updateValidDropTargets()),this.updateValidDropTargets(),ot(this.stringFormatter.format(tU[Fx()]));}teardown(){let t=X(this.dragTarget.element),r=t.document;r.removeEventListener("keydown",this.onKeyDown,true),r.removeEventListener("keyup",this.onKeyUp,true),t.removeEventListener("focus",this.onFocus,true),t.removeEventListener("blur",this.onBlur,true),r.removeEventListener("click",this.onClick,true),r.removeEventListener("pointerdown",this.onPointerDown,true);for(let o of qz)r.removeEventListener(o,this.cancelEvent,true);this.mutationObserver?.disconnect(),this.restoreAriaHidden?.();}onKeyDown(t){if(this.cancelEvent(t),t.key==="Escape"){this.cancel();return}t.key==="Tab"&&!(t.metaKey||t.altKey||t.ctrlKey)&&(t.shiftKey?this.previous():this.next()),typeof this.currentDropTarget?.onKeyDown=="function"&&this.currentDropTarget.onKeyDown(t,this.dragTarget);}onKeyUp(t){this.cancelEvent(t),t.key==="Enter"&&(t.altKey||Y(this.getCurrentActivateButton(),$(t))?this.activate(this.currentDropTarget,this.currentDropItem):this.drop());}getCurrentActivateButton(){return this.currentDropItem?.activateButtonRef?.current??this.currentDropTarget?.activateButtonRef?.current??null}onFocus(t){let r=this.getCurrentActivateButton(),o=$(t);if(o===r){this.cancelEvent(t);return}o!==this.dragTarget.element&&this.cancelEvent(t);let n=X(this.dragTarget.element);if(!(o instanceof n.HTMLElement)||o===this.dragTarget.element)return;let i=this.validDropTargets.find(l=>l.element===o)||this.validDropTargets.find(l=>Y(l.element,o));if(!i){this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus();return}let a=Mc.get(o);i&&this.setCurrentDropTarget(i,a);}onBlur(t){let r=this.getCurrentActivateButton();if(r&&t.relatedTarget===r){this.cancelEvent(t);return}$(t)!==this.dragTarget.element&&this.cancelEvent(t);let o=X(this.dragTarget.element);(!t.relatedTarget||!(t.relatedTarget instanceof o.HTMLElement))&&(this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus());}onClick(t){if(this.cancelEvent(t),Cn(t)||this.isVirtualClick){let r=Mc.values(),o=$(t),n=[...r].find(l=>l.element===o||Y(l.activateButtonRef?.current,o)),i=this.validDropTargets.find(l=>Y(l.element,o)),a=n?.activateButtonRef?.current??i?.activateButtonRef?.current;if(Y(a,o)&&i){this.activate(i,n);return}if($(t)===this.dragTarget.element){this.cancel();return}i&&(this.setCurrentDropTarget(i,n),this.drop(n));}}onPointerDown(t){this.cancelEvent(t),this.isVirtualClick=dl(t);}cancelEvent(t){let r=$(t);(t.type==="focusin"||t.type==="focusout")&&(r===this.dragTarget?.element||r===this.getCurrentActivateButton())||(eU.includes(t.type)||t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation());}updateValidDropTargets(){if(!this.mutationObserver)return;if(this.mutationObserver.disconnect(),this.restoreAriaHidden&&this.restoreAriaHidden(),this.validDropTargets=rU(this.dragTarget),this.validDropTargets.length>0){let n=this.findNearestDropTarget();this.validDropTargets=[...this.validDropTargets.slice(n),...this.validDropTargets.slice(0,n)];}this.currentDropTarget&&!this.validDropTargets.includes(this.currentDropTarget)&&this.setCurrentDropTarget(this.validDropTargets[0]);let t=Jo(this.dragTarget.items),r=[...Mc.values()].filter(n=>typeof n.getDropOperation=="function"?n.getDropOperation(t,this.dragTarget.allowedDropOperations)!=="cancel":true),o=this.validDropTargets.filter(n=>!r.some(i=>Y(n.element,i.element)));this.restoreAriaHidden=fi([this.dragTarget.element,...r.flatMap(n=>n.activateButtonRef?.current?[n.element,n.activateButtonRef?.current]:[n.element]),...o.flatMap(n=>n.activateButtonRef?.current?[n.element,n.activateButtonRef?.current]:[n.element])],{shouldUseInert:true}),this.mutationObserver.observe(G(this.dragTarget.element).body,{subtree:true,attributes:true,attributeFilter:["aria-hidden","inert"]});}next(){if(!this.currentDropTarget){this.setCurrentDropTarget(this.validDropTargets[0]);return}let t=this.validDropTargets.indexOf(this.currentDropTarget);if(t<0){this.setCurrentDropTarget(this.validDropTargets[0]);return}t===this.validDropTargets.length-1?this.dragTarget.element.closest('[aria-hidden="true"], [inert]')?this.setCurrentDropTarget(this.validDropTargets[0]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[t+1]);}previous(){if(!this.currentDropTarget){this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]);return}let t=this.validDropTargets.indexOf(this.currentDropTarget);if(t<0){this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]);return}t===0?this.dragTarget.element.closest('[aria-hidden="true"], [inert]')?this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[t-1]);}findNearestDropTarget(){let t=this.dragTarget.element.getBoundingClientRect(),r=1/0,o=-1;for(let n=0;n<this.validDropTargets.length;n++){let a=this.validDropTargets[n].element.getBoundingClientRect(),l=a.left-t.left,s=a.top-t.top,u=l*l+s*s;u<r&&(r=u,o=n);}return o}setCurrentDropTarget(t,r){if(t!==this.currentDropTarget){if(this.currentDropTarget&&typeof this.currentDropTarget.onDropExit=="function"){let o=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDropExit({type:"dropexit",x:o.left+o.width/2,y:o.top+o.height/2});}if(this.currentDropTarget=t,t){if(typeof t.onDropEnter=="function"){let o=t.element.getBoundingClientRect();t.onDropEnter({type:"dropenter",x:o.left+o.width/2,y:o.top+o.height/2},this.dragTarget);}r||t?.element.focus();}}if(r!=null&&r!==this.currentDropItem&&(this.currentDropTarget&&typeof this.currentDropTarget.onDropTargetEnter=="function"&&this.currentDropTarget.onDropTargetEnter(r.target),r.element.focus(),this.currentDropItem=r,!this.initialFocused)){let o=r?.element.getAttribute("aria-label");o&&ot(o,"polite"),this.initialFocused=true;}}end(){if(this.teardown(),QG(),typeof this.dragTarget.onDragEnd=="function"){let o=(this.currentDropTarget&&this.dropOperation!=="cancel"?this.currentDropTarget:this.dragTarget).element.getBoundingClientRect();this.dragTarget.onDragEnd({type:"dragend",x:o.x+o.width/2,y:o.y+o.height/2,dropOperation:this.dropOperation||"cancel"});}let t=G(this.dragTarget.element);this.currentDropTarget&&!this.currentDropTarget.preventFocusOnDrop&&ue(t)?.dispatchEvent(new FocusEvent("focusin",{bubbles:true})),this.setCurrentDropTarget(null);}cancel(){this.setCurrentDropTarget(null),this.end(),this.dragTarget.element.closest('[aria-hidden="true"], [inert]')||this.dragTarget.element.focus(),ue(G(this.dragTarget.element))?.dispatchEvent(new FocusEvent("focusin",{bubbles:true})),ot(this.stringFormatter.format("dropCanceled"));}drop(t){if(!this.currentDropTarget){this.cancel();return}if(typeof t?.getDropOperation=="function"){let r=Jo(this.dragTarget.items);this.dropOperation=t.getDropOperation(r,this.dragTarget.allowedDropOperations);}else if(typeof this.currentDropTarget.getDropOperation=="function"){let r=Jo(this.dragTarget.items);this.dropOperation=this.currentDropTarget.getDropOperation(r,this.dragTarget.allowedDropOperations);}else this.dropOperation=this.dragTarget.allowedDropOperations[0];if(typeof this.currentDropTarget.onDrop=="function"){let r=this.dragTarget.items.map(n=>({kind:"text",types:new Set(Object.keys(n)),getText:i=>Promise.resolve(n[i])})),o=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDrop({type:"drop",x:o.left+o.width/2,y:o.top+o.height/2,items:r,dropOperation:this.dropOperation},t?.target??null);}this.end(),ot(this.stringFormatter.format("dropComplete"));}activate(t,r){if(t&&typeof t.onDropActivate=="function"){let o=r?.target??null,n=t.element.getBoundingClientRect();t.onDropActivate({type:"dropactivate",x:n.left+n.width/2,y:n.top+n.height/2},o);}}};function rU(e){let t=Jo(e.items);return [...Kx.values()].filter(r=>r.element.closest('[aria-hidden="true"], [inert]')?false:typeof r.getDropOperation=="function"?r.getDropOperation(t,e.allowedDropOperations)!=="cancel":true)}var bi={"ar-AE":{dragDescriptionKeyboard:"\u0627\u0636\u063A\u0637 Enter \u0644\u0628\u062F\u0621 \u0627\u0644\u0633\u062D\u0628.",dragDescriptionKeyboardAlt:"\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Alt + Enter \u0644\u0628\u062F\u0621 \u0627\u0644\u0633\u062D\u0628.",dragDescriptionLongPress:"\u0627\u0636\u063A\u0637 \u0628\u0627\u0633\u062A\u0645\u0631\u0627\u0631 \u0644\u0628\u062F\u0621 \u0627\u0644\u0633\u062D\u0628.",dragDescriptionTouch:"\u0627\u0636\u063A\u0637 \u0645\u0631\u062A\u064A\u0646 \u0644\u0628\u062F\u0621 \u0627\u0644\u0633\u062D\u0628.",dragDescriptionVirtual:"\u0627\u0646\u0642\u0631 \u0644\u0628\u062F\u0621 \u0627\u0644\u0633\u062D\u0628.",dragItem:e=>`\u0627\u0633\u062D\u0628 ${e.itemText}`,dragSelectedItems:(e,t)=>`\u0627\u0633\u062D\u0628 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0639\u0646\u0635\u0631 \u0645\u062D\u062F\u062F`,other:()=>`${t.number(e.count)} \u0639\u0646\u0627\u0635\u0631 \u0645\u062D\u062F\u062F\u0629`})}`,dragSelectedKeyboard:(e,t)=>`\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Enter \u0644\u0644\u0633\u062D\u0628 ${t.plural(e.count,{one:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629",other:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629"})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D\u064A Alt + Enter \u0644\u0644\u0633\u062D\u0628 ${t.plural(e.count,{one:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629",other:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629"})}.`,dragSelectedLongPress:(e,t)=>`\u0627\u0636\u063A\u0637 \u0628\u0627\u0633\u062A\u0645\u0631\u0627\u0631 \u0644\u0644\u0633\u062D\u0628 ${t.plural(e.count,{one:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629",other:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629"})}.`,dragStartedKeyboard:"\u0628\u062F\u0623 \u0627\u0644\u0633\u062D\u0628. \u0627\u0636\u063A\u0637 Tab \u0644\u0644\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0645\u0648\u0636\u0639 \u0627\u0644\u0625\u0641\u0644\u0627\u062A\u060C \u062B\u0645 \u0627\u0636\u063A\u0637 Enter \u0644\u0644\u0625\u0641\u0644\u0627\u062A\u060C \u0623\u0648 \u0627\u0636\u063A\u0637 Escape \u0644\u0644\u0625\u0644\u063A\u0627\u0621.",dragStartedTouch:"\u0628\u062F\u0623 \u0627\u0644\u0633\u062D\u0628. \u0627\u0646\u062A\u0642\u0644 \u0625\u0644\u0649 \u0645\u0648\u0636\u0639 \u0627\u0644\u0625\u0641\u0644\u0627\u062A\u060C \u062B\u0645 \u0627\u0636\u063A\u0637 \u0645\u0631\u062A\u064A\u0646 \u0644\u0644\u0625\u0641\u0644\u0627\u062A.",dragStartedVirtual:"\u0628\u062F\u0623 \u0627\u0644\u0633\u062D\u0628. \u0627\u0646\u062A\u0642\u0644 \u0625\u0644\u0649 \u0645\u0643\u0627\u0646 \u0627\u0644\u0625\u0641\u0644\u0627\u062A\u060C \u062B\u0645 \u0627\u0646\u0642\u0631 \u0623\u0648 \u0627\u0636\u063A\u0637 Enter \u0644\u0644\u0625\u0641\u0644\u0627\u062A.",dropCanceled:"\u062A\u0645 \u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0625\u0641\u0644\u0627\u062A.",dropComplete:"\u0627\u0643\u062A\u0645\u0644 \u0627\u0644\u0625\u0641\u0644\u0627\u062A.",dropDescriptionKeyboard:"\u0627\u0636\u063A\u0637 Enter \u0644\u0644\u0625\u0641\u0644\u0627\u062A. \u0627\u0636\u063A\u0637 Escape \u0644\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0633\u062D\u0628.",dropDescriptionTouch:"\u0627\u0636\u063A\u0637 \u0645\u0631\u062A\u064A\u0646 \u0644\u0644\u0625\u0641\u0644\u0627\u062A.",dropDescriptionVirtual:"\u0627\u0646\u0642\u0631 \u0644\u0644\u0625\u0641\u0644\u0627\u062A.",dropIndicator:"\u0645\u0624\u0634\u0631 \u0627\u0644\u0625\u0641\u0644\u0627\u062A",dropOnItem:e=>`\u0625\u0641\u0644\u0627\u062A ${e.itemText}`,dropOnRoot:"\u0627\u0644\u0625\u0641\u0644\u0627\u062A",endDragKeyboard:"\u0627\u0644\u0633\u062D\u0628. \u0627\u0636\u063A\u0637 Enter \u0644\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0633\u062D\u0628.",endDragTouch:"\u0627\u0644\u0633\u062D\u0628. \u0627\u0636\u063A\u0637 \u0645\u0631\u062A\u064A\u0646 \u0644\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0633\u062D\u0628.",endDragVirtual:"\u0627\u0644\u0633\u062D\u0628. \u0627\u0646\u0642\u0631 \u0644\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0633\u062D\u0628.",insertAfter:e=>`\u0623\u062F\u062E\u0644 \u0628\u0639\u062F ${e.itemText}`,insertBefore:e=>`\u0623\u062F\u062E\u0644 \u0642\u0628\u0644 ${e.itemText}`,insertBetween:e=>`\u0623\u062F\u062E\u0644 \u0628\u064A\u0646 ${e.beforeItemText} \u0648 ${e.afterItemText}`},"bg-BG":{dragDescriptionKeyboard:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u0442\u0435.",dragDescriptionKeyboardAlt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt + Enter, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u0442\u0435.",dragDescriptionLongPress:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u0442\u0435.",dragDescriptionTouch:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u0434\u0432\u0443\u043A\u0440\u0430\u0442\u043D\u043E, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u0442\u0435.",dragDescriptionVirtual:"\u0429\u0440\u0430\u043A\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u0442\u0435.",dragItem:e=>`\u041F\u043B\u044A\u0437\u043D\u0438 ${e.itemText}`,dragSelectedItems:(e,t)=>`\u041F\u043B\u044A\u0437\u043D\u0438 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430`})}`,dragSelectedKeyboard:(e,t)=>`\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Enter, \u0437\u0430 \u0434\u0430 \u043F\u043B\u044A\u0437\u043D\u0435\u0442\u0435 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt \u0438 Enter, \u0437\u0430 \u0434\u0430 \u043F\u043B\u044A\u0437\u043D\u0435\u0442\u0435 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438`})}.`,dragSelectedLongPress:(e,t)=>`\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E, \u0437\u0430 \u0434\u0430 \u043F\u043B\u044A\u0437\u043D\u0435\u0442\u0435 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438`})}.`,dragStartedKeyboard:"\u0417\u0430\u043F\u043E\u0447\u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201ETab\u201C, \u0437\u0430 \u0434\u0430 \u0441\u0435 \u043F\u0440\u0438\u0434\u0432\u0438\u0436\u0438\u0442\u0435 \u0434\u043E \u0446\u0435\u043B\u0442\u0430, \u0441\u043B\u0435\u0434 \u043A\u043E\u0435\u0442\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435 \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEscape\u201C \u0437\u0430 \u043E\u0442\u043C\u044F\u043D\u0430.",dragStartedTouch:"\u0417\u0430\u043F\u043E\u0447\u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u041F\u0440\u0438\u0434\u0432\u0438\u0436\u0435\u0442\u0435 \u0441\u0435 \u0434\u043E \u0446\u0435\u043B\u0442\u0430, \u0441\u043B\u0435\u0434 \u043A\u043E\u0435\u0442\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u0434\u0432\u0443\u043A\u0440\u0430\u0442\u043D\u043E, \u0437\u0430 \u0434\u0430 \u043F\u0443\u0441\u043D\u0435\u0442\u0435.",dragStartedVirtual:"\u0417\u0430\u043F\u043E\u0447\u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u041F\u0440\u0438\u0434\u0432\u0438\u0436\u0435\u0442\u0435 \u0441\u0435 \u0434\u043E \u0446\u0435\u043B\u0442\u0430, \u0441\u043B\u0435\u0434 \u043A\u043E\u0435\u0442\u043E \u0449\u0440\u0430\u043A\u043D\u0435\u0442\u0435 \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435.",dropCanceled:"\u041F\u0443\u0441\u043A\u0430\u043D\u0435\u0442\u043E \u0435 \u043E\u0442\u043C\u0435\u043D\u0435\u043D\u043E.",dropComplete:"\u041F\u0443\u0441\u043A\u0430\u043D\u0435\u0442\u043E \u0435 \u0437\u0430\u0432\u044A\u0440\u0448\u0435\u043D\u043E.",dropDescriptionKeyboard:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEscape\u201C \u0437\u0430 \u043E\u0442\u043C\u044F\u043D\u0430 \u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435\u0442\u043E.",dropDescriptionTouch:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u0434\u0432\u0443\u043A\u0440\u0430\u0442\u043D\u043E \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435.",dropDescriptionVirtual:"\u0429\u0440\u0430\u043A\u043D\u0435\u0442\u0435 \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435.",dropIndicator:"\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440 \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435",dropOnItem:e=>`\u041F\u0443\u0441\u043D\u0438 \u0432\u044A\u0440\u0445\u0443 ${e.itemText}`,dropOnRoot:"\u041F\u0443\u0441\u043D\u0438 \u0432\u044A\u0440\u0445\u0443",endDragKeyboard:"\u041F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C \u0437\u0430 \u043E\u0442\u043C\u044F\u043D\u0430 \u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435\u0442\u043E.",endDragTouch:"\u041F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u0434\u0432\u0443\u043A\u0440\u0430\u0442\u043D\u043E \u0437\u0430 \u043E\u0442\u043C\u044F\u043D\u0430 \u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435\u0442\u043E.",endDragVirtual:"\u041F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u0429\u0440\u0430\u043A\u043D\u0435\u0442\u0435 \u0437\u0430 \u043E\u0442\u043C\u044F\u043D\u0430.",insertAfter:e=>`\u0412\u043C\u044A\u043A\u043D\u0438 \u0441\u043B\u0435\u0434 ${e.itemText}`,insertBefore:e=>`\u0412\u043C\u044A\u043A\u043D\u0438 \u043F\u0440\u0435\u0434\u0438 ${e.itemText}`,insertBetween:e=>`\u0412\u043C\u044A\u043A\u043D\u0438 \u043C\u0435\u0436\u0434\u0443 ${e.beforeItemText} \u0438 ${e.afterItemText}`},"cs-CZ":{dragDescriptionKeyboard:"Stisknut\xEDm kl\xE1vesy Enter za\u010Dnete s p\u0159etahov\xE1n\xEDm.",dragDescriptionKeyboardAlt:"Stisknut\xEDm Alt + Enter zah\xE1j\xEDte p\u0159etahov\xE1n\xED.",dragDescriptionLongPress:"Dlouh\xFDm stisknut\xEDm zah\xE1j\xEDte p\u0159etahov\xE1n\xED.",dragDescriptionTouch:"Poklep\xE1n\xEDm za\u010Dnete s p\u0159etahov\xE1n\xEDm.",dragDescriptionVirtual:"Kliknut\xEDm za\u010Dnete s p\u0159etahov\xE1n\xEDm.",dragItem:e=>`P\u0159et\xE1hnout ${e.itemText}`,dragSelectedItems:(e,t)=>`P\u0159et\xE1hnout ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u017Eku`,few:()=>`${t.number(e.count)} vybran\xE9 polo\u017Eky`,other:()=>`${t.number(e.count)} vybran\xFDch polo\u017Eek`})}`,dragSelectedKeyboard:(e,t)=>`Stisknut\xEDm kl\xE1vesy Enter p\u0159et\xE1hn\u011Bte ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u017Eku`,other:()=>`${t.number(e.count)} vybran\xE9 polo\u017Eky`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stisknut\xEDm Alt + Enter p\u0159et\xE1hn\u011Bte ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u017Eku`,other:()=>`${t.number(e.count)} vybran\xE9 polo\u017Eky`})}.`,dragSelectedLongPress:(e,t)=>`Dlouh\xFDm stisknut\xEDm p\u0159et\xE1hnete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou polo\u017Eku`,other:()=>`${t.number(e.count)} vybran\xE9 polo\u017Eky`})}.`,dragStartedKeyboard:"Za\u010Dn\u011Bte s p\u0159etahov\xE1n\xEDm. Po stisknut\xED kl\xE1vesy Tab najd\u011Bte po\u017Eadovan\xFD c\xEDl a stisknut\xEDm kl\xE1vesy Enter p\u0159eta\u017Een\xED dokon\u010Dete nebo stisknut\xEDm kl\xE1vesy Esc akci zru\u0161te.",dragStartedTouch:"Za\u010Dn\u011Bte s p\u0159etahov\xE1n\xEDm. Najd\u011Bte po\u017Eadovan\xFD c\xEDl a poklep\xE1n\xEDm p\u0159eta\u017Een\xED dokon\u010Dete.",dragStartedVirtual:"Za\u010Dn\u011Bte s p\u0159etahov\xE1n\xEDm. Najd\u011Bte po\u017Eadovan\xFD c\xEDl a kliknut\xEDm nebo stisknut\xEDm kl\xE1vesy Enter p\u0159eta\u017Een\xED dokon\u010Dete.",dropCanceled:"P\u0159eta\u017Een\xED bylo zru\u0161eno.",dropComplete:"P\u0159eta\u017Een\xED bylo dokon\u010Deno.",dropDescriptionKeyboard:"Stisknut\xEDm kl\xE1vesy Enter p\u0159eta\u017Een\xED dokon\u010Dete nebo stisknut\xEDm kl\xE1vesy Esc akci zru\u0161te.",dropDescriptionTouch:"Poklep\xE1n\xEDm p\u0159eta\u017Een\xED dokon\u010Dete.",dropDescriptionVirtual:"Kliknut\xEDm objekt p\u0159et\xE1hn\u011Bte.",dropIndicator:"indik\xE1tor p\u0159eta\u017Een\xED",dropOnItem:e=>`P\u0159et\xE1hnout na ${e.itemText}`,dropOnRoot:"P\u0159et\xE1hnout na",endDragKeyboard:"Prob\xEDh\xE1 p\u0159etahov\xE1n\xED. Stisknut\xEDm kl\xE1vesy Enter p\u0159eta\u017Een\xED zru\u0161\xEDte.",endDragTouch:"Prob\xEDh\xE1 p\u0159etahov\xE1n\xED. Poklep\xE1n\xEDm p\u0159eta\u017Een\xED zru\u0161\xEDte.",endDragVirtual:"Prob\xEDh\xE1 p\u0159etahov\xE1n\xED. Kliknut\xEDm p\u0159eta\u017Een\xED zru\u0161\xEDte.",insertAfter:e=>`Vlo\u017Eit za ${e.itemText}`,insertBefore:e=>`Vlo\u017Eit p\u0159ed ${e.itemText}`,insertBetween:e=>`Vlo\u017Eit mezi ${e.beforeItemText} a ${e.afterItemText}`},"da-DK":{dragDescriptionKeyboard:"Tryk p\xE5 Enter for at starte med at tr\xE6kke.",dragDescriptionKeyboardAlt:"Tryk p\xE5 Alt + Enter for at starte med at tr\xE6kke.",dragDescriptionLongPress:"Tryk l\xE6nge for at starte med at tr\xE6kke.",dragDescriptionTouch:"Dobbelttryk for at starte med at tr\xE6kke.",dragDescriptionVirtual:"Klik for at starte med at tr\xE6kke.",dragItem:e=>`Tr\xE6k ${e.itemText}`,dragSelectedItems:(e,t)=>`Tr\xE6k ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}`,dragSelectedKeyboard:(e,t)=>`Tryk p\xE5 Enter for at tr\xE6kke ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryk p\xE5 Alt + Enter for at tr\xE6kke ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Tryk l\xE6nge for at tr\xE6kke ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:"Startet med at tr\xE6kke. Tryk p\xE5 Tab for at g\xE5 til et slip-m\xE5l, tryk derefter p\xE5 Enter for at slippe, eller tryk p\xE5 Escape for at annullere.",dragStartedTouch:"Startet med at tr\xE6kke. G\xE5 til et slip-m\xE5l, og dobbelttryk derefter for at slippe.",dragStartedVirtual:"Startet med at tr\xE6kke. G\xE5 til et slip-m\xE5l, og klik eller tryk derefter p\xE5 enter for at slippe.",dropCanceled:"Slip annulleret.",dropComplete:"Slip fuldf\xF8rt.",dropDescriptionKeyboard:"Tryk p\xE5 Enter for at slippe. Tryk p\xE5 Escape for at annullere tr\xE6kning.",dropDescriptionTouch:"Dobbelttryk for at slippe.",dropDescriptionVirtual:"Klik for at slippe.",dropIndicator:"slip-indikator",dropOnItem:e=>`Slip p\xE5 ${e.itemText}`,dropOnRoot:"Slip p\xE5",endDragKeyboard:"Tr\xE6kning. Tryk p\xE5 enter for at annullere tr\xE6k.",endDragTouch:"Tr\xE6kning. Dobbelttryk for at annullere tr\xE6k.",endDragVirtual:"Tr\xE6kning. Klik for at annullere tr\xE6kning.",insertAfter:e=>`Inds\xE6t efter ${e.itemText}`,insertBefore:e=>`Inds\xE6t f\xF8r ${e.itemText}`,insertBetween:e=>`Inds\xE6t mellem ${e.beforeItemText} og ${e.afterItemText}`},"de-DE":{dragDescriptionKeyboard:"Dr\xFCcken Sie die Eingabetaste, um den Ziehvorgang zu starten.",dragDescriptionKeyboardAlt:"Alt + Eingabe dr\xFCcken, um den Ziehvorgang zu starten.",dragDescriptionLongPress:"Lang dr\xFCcken, um mit dem Ziehen zu beginnen.",dragDescriptionTouch:"Tippen Sie doppelt, um den Ziehvorgang zu starten.",dragDescriptionVirtual:"Zum Starten des Ziehvorgangs klicken.",dragItem:e=>`${e.itemText} ziehen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xE4hltes Objekt`,other:()=>`${t.number(e.count)} ausgew\xE4hlte Objekte`})} ziehen`,dragSelectedKeyboard:(e,t)=>`Eingabetaste dr\xFCcken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xE4hltes Element`,other:()=>`${t.number(e.count)} ausgew\xE4hlte Elemente`})} zu ziehen.`,dragSelectedKeyboardAlt:(e,t)=>`Alt + Eingabetaste dr\xFCcken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xE4hltes Element`,other:()=>`${t.number(e.count)} ausgew\xE4hlte Elemente`})} zu ziehen.`,dragSelectedLongPress:(e,t)=>`Lang dr\xFCcken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgew\xE4hltes Element`,other:()=>`${t.number(e.count)} ausgew\xE4hlte Elemente`})} zu ziehen.`,dragStartedKeyboard:"Ziehvorgang gestartet. Dr\xFCcken Sie die Tabulatortaste, um zu einem Ablegeziel zu navigieren und dr\xFCcken Sie dann die Eingabetaste, um das Objekt abzulegen, oder Escape, um den Vorgang abzubrechen.",dragStartedTouch:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und tippen Sie doppelt, um das Objekt abzulegen.",dragStartedVirtual:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und klicken Sie oder dr\xFCcken Sie die Eingabetaste, um das Objekt abzulegen.",dropCanceled:"Ablegen abgebrochen.",dropComplete:"Ablegen abgeschlossen.",dropDescriptionKeyboard:"Dr\xFCcken Sie die Eingabetaste, um das Objekt abzulegen. Dr\xFCcken Sie Escape, um den Vorgang abzubrechen.",dropDescriptionTouch:"Tippen Sie doppelt, um das Objekt abzulegen.",dropDescriptionVirtual:"Zum Ablegen klicken.",dropIndicator:"Ablegeanzeiger",dropOnItem:e=>`Auf ${e.itemText} ablegen`,dropOnRoot:"Ablegen auf",endDragKeyboard:"Ziehvorgang l\xE4uft. Dr\xFCcken Sie die Eingabetaste, um den Vorgang abzubrechen.",endDragTouch:"Ziehvorgang l\xE4uft. Tippen Sie doppelt, um den Vorgang abzubrechen.",endDragVirtual:"Ziehvorgang l\xE4uft. Klicken Sie, um den Vorgang abzubrechen.",insertAfter:e=>`Nach ${e.itemText} einf\xFCgen`,insertBefore:e=>`Vor ${e.itemText} einf\xFCgen`,insertBetween:e=>`Zwischen ${e.beforeItemText} und ${e.afterItemText} einf\xFCgen`},"el-GR":{dragDescriptionKeyboard:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",dragDescriptionKeyboardAlt:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + Enter \u03B3\u03B9\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",dragDescriptionLongPress:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC.",dragDescriptionTouch:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B4\u03CD\u03BF \u03C6\u03BF\u03C1\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",dragDescriptionVirtual:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC.",dragItem:e=>`\u039C\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC ${e.itemText}`,dragSelectedItems:(e,t)=>`\u039C\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03C3\u03B5 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF`,other:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1`})}`,dragSelectedKeyboard:(e,t)=>`\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03CD\u03C1\u03B5\u03C4\u03B5 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF`,other:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + Enter \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03CD\u03C1\u03B5\u03C4\u03B5 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF`,other:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1`})}.`,dragSelectedLongPress:(e,t)=>`\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03CD\u03C1\u03B5\u03C4\u03B5 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF`,other:()=>`${t.number(e.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1`})}.`,dragStartedKeyboard:"\u0397 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03BE\u03B5\u03BA\u03AF\u03BD\u03B7\u03C3\u03B5. \u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03C0\u03BB\u03AE\u03BA\u03C4\u03C1\u03BF Tab \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BC\u03B5\u03C4\u03B1\u03B2\u03B5\u03AF\u03C4\u03B5 \u03C3\u03B5 \u03AD\u03BD\u03B1\u03BD \u03C0\u03C1\u03BF\u03BF\u03C1\u03B9\u03C3\u03BC\u03CC \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7\u03C2 \u03BA\u03B1\u03B9, \u03C3\u03C4\u03B7 \u03C3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1, \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Escape \u03B3\u03B9\u03B1 \u03B1\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7.",dragStartedTouch:"\u0397 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03BE\u03B5\u03BA\u03AF\u03BD\u03B7\u03C3\u03B5. \u039C\u03B5\u03C4\u03B1\u03B2\u03B5\u03AF\u03C4\u03B5 \u03C3\u03B5 \u03AD\u03BD\u03B1\u03BD \u03C0\u03C1\u03BF\u03BF\u03C1\u03B9\u03C3\u03BC\u03CC \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7\u03C2 \u03BA\u03B1\u03B9, \u03C3\u03C4\u03B7 \u03C3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1, \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B4\u03CD\u03BF \u03C6\u03BF\u03C1\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7.",dragStartedVirtual:"\u0397 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03BE\u03B5\u03BA\u03AF\u03BD\u03B7\u03C3\u03B5. \u039C\u03B5\u03C4\u03B1\u03B2\u03B5\u03AF\u03C4\u03B5 \u03C3\u03B5 \u03AD\u03BD\u03B1\u03BD \u03C0\u03C1\u03BF\u03BF\u03C1\u03B9\u03C3\u03BC\u03CC \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7\u03C2 \u03BA\u03B1\u03B9, \u03C3\u03C4\u03B7 \u03C3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1, \u03BA\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7.",dropCanceled:"\u0397 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 \u03B1\u03BA\u03C5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5.",dropComplete:"\u0397 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 \u03BF\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5.",dropDescriptionKeyboard:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7. \u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Escape \u03B3\u03B9\u03B1 \u03B1\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",dropDescriptionTouch:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B4\u03CD\u03BF \u03C6\u03BF\u03C1\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7.",dropDescriptionVirtual:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7.",dropIndicator:"\u03B4\u03B5\u03AF\u03BA\u03C4\u03B7\u03C2 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7\u03C2",dropOnItem:e=>`\u0391\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 \u03C3\u03B5 ${e.itemText}`,dropOnRoot:"\u0391\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 \u03C3\u03B5",endDragKeyboard:"\u039C\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03C3\u03B5 \u03B5\u03BE\u03AD\u03BB\u03B9\u03BE\u03B7. \u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03B1\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",endDragTouch:"\u039C\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03C3\u03B5 \u03B5\u03BE\u03AD\u03BB\u03B9\u03BE\u03B7. \u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B4\u03CD\u03BF \u03C6\u03BF\u03C1\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03B1\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",endDragVirtual:"\u039C\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03C3\u03B5 \u03B5\u03BE\u03AD\u03BB\u03B9\u03BE\u03B7. \u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03B1\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",insertAfter:e=>`\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03BC\u03B5\u03C4\u03AC \u03B1\u03C0\u03CC ${e.itemText}`,insertBefore:e=>`\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03C0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC ${e.itemText}`,insertBetween:e=>`\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03BC\u03B5\u03C4\u03B1\u03BE\u03CD ${e.beforeItemText} \u03BA\u03B1\u03B9 ${e.afterItemText}`},"en-US":{dragItem:e=>`Drag ${e.itemText}`,dragSelectedItems:(e,t)=>`Drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}`,dragDescriptionKeyboard:"Press Enter to start dragging.",dragDescriptionKeyboardAlt:"Press Alt + Enter to start dragging.",dragDescriptionTouch:"Double tap to start dragging.",dragDescriptionVirtual:"Click to start dragging.",dragDescriptionLongPress:"Long press to start dragging.",dragSelectedKeyboard:(e,t)=>`Press Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Press Alt + Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedLongPress:(e,t)=>`Long press to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragStartedKeyboard:"Started dragging. Press Tab to navigate to a drop target, then press Enter to drop, or press Escape to cancel.",dragStartedTouch:"Started dragging. Navigate to a drop target, then double tap to drop.",dragStartedVirtual:"Started dragging. Navigate to a drop target, then click or press Enter to drop.",endDragKeyboard:"Dragging. Press Enter to cancel drag.",endDragTouch:"Dragging. Double tap to cancel drag.",endDragVirtual:"Dragging. Click to cancel drag.",dropDescriptionKeyboard:"Press Enter to drop. Press Escape to cancel drag.",dropDescriptionTouch:"Double tap to drop.",dropDescriptionVirtual:"Click to drop.",dropCanceled:"Drop canceled.",dropComplete:"Drop complete.",dropIndicator:"drop indicator",dropOnRoot:"Drop on",dropOnItem:e=>`Drop on ${e.itemText}`,insertBefore:e=>`Insert before ${e.itemText}`,insertBetween:e=>`Insert between ${e.beforeItemText} and ${e.afterItemText}`,insertAfter:e=>`Insert after ${e.itemText}`},"es-ES":{dragDescriptionKeyboard:"Pulse Intro para empezar a arrastrar.",dragDescriptionKeyboardAlt:"Pulse Intro para empezar a arrastrar.",dragDescriptionLongPress:"Mantenga pulsado para comenzar a arrastrar.",dragDescriptionTouch:"Pulse dos veces para iniciar el arrastre.",dragDescriptionVirtual:"Haga clic para iniciar el arrastre.",dragItem:e=>`Arrastrar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}`,dragSelectedKeyboard:(e,t)=>`Pulse Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pulse Alt + Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedLongPress:(e,t)=>`Mantenga pulsado para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragStartedKeyboard:"Se ha empezado a arrastrar. Pulse el tabulador para ir al destino donde se vaya a colocar y, a continuaci\xF3n, pulse Intro para soltar, o pulse Escape para cancelar.",dragStartedTouch:"Se ha empezado a arrastrar. Vaya al destino donde se vaya a colocar y, a continuaci\xF3n, pulse dos veces para soltar.",dragStartedVirtual:"Se ha empezado a arrastrar. Vaya al destino donde se vaya a colocar y, a continuaci\xF3n, haga clic o pulse Intro para soltar.",dropCanceled:"Se ha cancelado la colocaci\xF3n.",dropComplete:"Colocaci\xF3n finalizada.",dropDescriptionKeyboard:"Pulse Intro para soltar. Pulse Escape para cancelar el arrastre.",dropDescriptionTouch:"Pulse dos veces para soltar.",dropDescriptionVirtual:"Haga clic para soltar.",dropIndicator:"indicador de colocaci\xF3n",dropOnItem:e=>`Soltar en ${e.itemText}`,dropOnRoot:"Soltar en",endDragKeyboard:"Arrastrando. Pulse Intro para cancelar el arrastre.",endDragTouch:"Arrastrando. Pulse dos veces para cancelar el arrastre.",endDragVirtual:"Arrastrando. Haga clic para cancelar el arrastre.",insertAfter:e=>`Insertar despu\xE9s de ${e.itemText}`,insertBefore:e=>`Insertar antes de ${e.itemText}`,insertBetween:e=>`Insertar entre ${e.beforeItemText} y ${e.afterItemText}`},"et-EE":{dragDescriptionKeyboard:"Lohistamise alustamiseks vajutage klahvi Enter.",dragDescriptionKeyboardAlt:"Lohistamise alustamiseks vajutage klahvikombinatsiooni Alt + Enter.",dragDescriptionLongPress:"Vajutage pikalt lohistamise alustamiseks.",dragDescriptionTouch:"Topeltpuudutage lohistamise alustamiseks.",dragDescriptionVirtual:"Kl\xF5psake lohistamise alustamiseks.",dragItem:e=>`Lohista ${e.itemText}`,dragSelectedItems:(e,t)=>`Lohista ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xFCksust`,other:()=>`${t.number(e.count)} valitud \xFCksust`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xFCksuse`,other:()=>`${t.number(e.count)} valitud \xFCksuse`})} lohistamiseks vajutage sisestusklahvi Enter.`,dragSelectedKeyboardAlt:(e,t)=>`Lohistamiseks vajutage klahvikombinatsiooni Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xFCksuse`,other:()=>`${t.number(e.count)} valitud \xFCksuse`})} jaoks.`,dragSelectedLongPress:(e,t)=>`Pikk vajutus ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud \xFCksuse`,other:()=>`${t.number(e.count)} valitud \xFCksuse`})} lohistamiseks.`,dragStartedKeyboard:"Alustati lohistamist. Kukutamise sihtm\xE4rgi juurde navigeerimiseks vajutage klahvi Tab, seej\xE4rel vajutage kukutamiseks klahvi Enter v\xF5i loobumiseks klahvi Escape.",dragStartedTouch:"Alustati lohistamist. Navigeerige kukutamise sihtm\xE4rgi juurde ja topeltpuudutage kukutamiseks.",dragStartedVirtual:"Alustati lohistamist. Navigeerige kukutamise sihtm\xE4rgi juurde ja kukutamiseks kl\xF5psake v\xF5i vajutage klahvi Enter.",dropCanceled:"Lohistamisest loobuti.",dropComplete:"Lohistamine on tehtud.",dropDescriptionKeyboard:"Kukutamiseks vajutage klahvi Enter. Lohistamisest loobumiseks vajutage klahvi Escape.",dropDescriptionTouch:"Kukutamiseks topeltpuudutage.",dropDescriptionVirtual:"Kukutamiseks kl\xF5psake.",dropIndicator:"lohistamise indikaator",dropOnItem:e=>`Kukuta asukohta ${e.itemText}`,dropOnRoot:"Kukuta asukohta",endDragKeyboard:"Lohistamine. Lohistamisest loobumiseks vajutage klahvi Enter.",endDragTouch:"Lohistamine. Lohistamisest loobumiseks topeltpuudutage.",endDragVirtual:"Lohistamine. Lohistamisest loobumiseks kl\xF5psake.",insertAfter:e=>`Sisesta ${e.itemText} j\xE4rele`,insertBefore:e=>`Sisesta ${e.itemText} ette`,insertBetween:e=>`Sisesta ${e.beforeItemText} ja ${e.afterItemText} vahele`},"fi-FI":{dragDescriptionKeyboard:"Aloita vet\xE4minen painamalla Enter-n\xE4pp\xE4int\xE4.",dragDescriptionKeyboardAlt:"Aloita vet\xE4minen painamalla Alt + Enter -n\xE4pp\xE4inyhdistelm\xE4\xE4.",dragDescriptionLongPress:"Aloita vet\xE4minen pit\xE4m\xE4ll\xE4 painettuna.",dragDescriptionTouch:"Aloita vet\xE4minen kaksoisnapauttamalla.",dragDescriptionVirtual:"Aloita vet\xE4minen napsauttamalla.",dragItem:e=>`Ved\xE4 kohdetta ${e.itemText}`,dragSelectedItems:(e,t)=>`Ved\xE4 ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittua kohdetta`,other:()=>`${t.number(e.count)} valittua kohdetta`})}`,dragSelectedKeyboard:(e,t)=>`Ved\xE4 painamalla Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Ved\xE4 painamalla Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedLongPress:(e,t)=>`Ved\xE4 pit\xE4m\xE4ll\xE4 painettuna ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragStartedKeyboard:"Vet\xE4minen aloitettu. Siirry pudotuskohteeseen painamalla sarkainn\xE4pp\xE4int\xE4 ja sitten pudota painamalla Enter-n\xE4pp\xE4int\xE4 tai peruuta painamalla Escape-n\xE4pp\xE4int\xE4.",dragStartedTouch:"Vet\xE4minen aloitettu. Siirry pudotuskohteeseen ja pudota kaksoisnapauttamalla.",dragStartedVirtual:"Vet\xE4minen aloitettu. Siirry pudotuskohteeseen ja pudota napsauttamalla tai painamalla Enter-n\xE4pp\xE4int\xE4.",dropCanceled:"Pudotus peruutettu.",dropComplete:"Pudotus suoritettu.",dropDescriptionKeyboard:"Pudota painamalla Enter-n\xE4pp\xE4int\xE4. Peruuta vet\xE4minen painamalla Escape-n\xE4pp\xE4int\xE4.",dropDescriptionTouch:"Pudota kaksoisnapauttamalla.",dropDescriptionVirtual:"Pudota napsauttamalla.",dropIndicator:"pudotuksen ilmaisin",dropOnItem:e=>`Pudota kohteeseen ${e.itemText}`,dropOnRoot:"Pudota kohteeseen",endDragKeyboard:"Vedet\xE4\xE4n. Peruuta vet\xE4minen painamalla Enter-n\xE4pp\xE4int\xE4.",endDragTouch:"Vedet\xE4\xE4n. Peruuta vet\xE4minen kaksoisnapauttamalla.",endDragVirtual:"Vedet\xE4\xE4n. Peruuta vet\xE4minen napsauttamalla.",insertAfter:e=>`Lis\xE4\xE4 kohteen ${e.itemText} j\xE4lkeen`,insertBefore:e=>`Lis\xE4\xE4 ennen kohdetta ${e.itemText}`,insertBetween:e=>`Lis\xE4\xE4 kohteiden ${e.beforeItemText} ja ${e.afterItemText} v\xE4liin`},"fr-FR":{dragDescriptionKeyboard:"Appuyez sur Entr\xE9e pour commencer le d\xE9placement.",dragDescriptionKeyboardAlt:"Appuyez sur Alt\xA0+\xA0Entr\xE9e pour commencer \xE0 faire glisser.",dragDescriptionLongPress:"Appuyez de mani\xE8re prolong\xE9e pour commencer \xE0 faire glisser.",dragDescriptionTouch:"Touchez deux fois pour commencer le d\xE9placement.",dragDescriptionVirtual:"Cliquez pour commencer le d\xE9placement.",dragItem:e=>`D\xE9placer ${e.itemText}`,dragSelectedItems:(e,t)=>`D\xE9placer ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xE9l\xE9ment s\xE9lectionn\xE9`,other:()=>`${t.number(e.count)} \xE9l\xE9ments s\xE9lectionn\xE9s`})}`,dragSelectedKeyboard:(e,t)=>`Appuyez sur Entr\xE9e pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xE9l\xE9ment s\xE9lectionn\xE9`,other:()=>`${t.number(e.count)} \xE9l\xE9ments s\xE9lectionn\xE9s`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Appuyez sur Alt\xA0+\xA0Entr\xE9e pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xE9l\xE9ment s\xE9lectionn\xE9`,other:()=>`${t.number(e.count)} \xE9l\xE9ments s\xE9lectionn\xE9s`})}.`,dragSelectedLongPress:(e,t)=>`Appuyez de mani\xE8re prolong\xE9e pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} \xE9l\xE9ment s\xE9lectionn\xE9`,other:()=>`${t.number(e.count)} \xE9l\xE9ments s\xE9lectionn\xE9s`})}.`,dragStartedKeyboard:"D\xE9placement commenc\xE9. Appuyez sur Tabulation pour acc\xE9der \xE0 une cible de d\xE9p\xF4t, puis appuyez sur Entr\xE9e pour d\xE9poser, ou appuyez sur \xC9chap pour annuler.",dragStartedTouch:"D\xE9placement commenc\xE9. Acc\xE9dez \xE0 une cible de d\xE9p\xF4t, puis touchez deux fois pour d\xE9poser.",dragStartedVirtual:"D\xE9placement commenc\xE9. Acc\xE9dez \xE0 une cible de d\xE9p\xF4t, puis cliquez ou appuyez sur Entr\xE9e pour d\xE9poser.",dropCanceled:"D\xE9p\xF4t annul\xE9.",dropComplete:"D\xE9p\xF4t termin\xE9.",dropDescriptionKeyboard:"Appuyez sur Entr\xE9e pour d\xE9poser. Appuyez sur \xC9chap pour annuler le d\xE9placement.",dropDescriptionTouch:"Touchez deux fois pour d\xE9poser.",dropDescriptionVirtual:"Cliquez pour d\xE9poser.",dropIndicator:"indicateur de d\xE9p\xF4t",dropOnItem:e=>`D\xE9poser sur ${e.itemText}`,dropOnRoot:"D\xE9poser sur",endDragKeyboard:"D\xE9placement. Appuyez sur Entr\xE9e pour annuler le d\xE9placement.",endDragTouch:"D\xE9placement. Touchez deux fois pour annuler le d\xE9placement.",endDragVirtual:"D\xE9placement. Cliquez pour annuler le d\xE9placement.",insertAfter:e=>`Ins\xE9rer apr\xE8s ${e.itemText}`,insertBefore:e=>`Ins\xE9rer avant ${e.itemText}`,insertBetween:e=>`Ins\xE9rer entre ${e.beforeItemText} et ${e.afterItemText}`},"he-IL":{dragDescriptionKeyboard:"\u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05DC\u05D2\u05E8\u05D5\u05E8.",dragDescriptionKeyboardAlt:"\u05D4\u05E7\u05E9 Alt + Enter \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05DC\u05D2\u05E8\u05D5\u05E8.",dragDescriptionLongPress:"\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05DC\u05D2\u05E8\u05D5\u05E8.",dragDescriptionTouch:"\u05D4\u05E7\u05E9 \u05E4\u05E2\u05DE\u05D9\u05D9\u05DD \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1\u05D2\u05E8\u05D9\u05E8\u05D4.",dragDescriptionVirtual:"\u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05DC\u05D2\u05E8\u05D5\u05E8.",dragItem:e=>`\u05D2\u05E8\u05D5\u05E8 \u05D0\u05EA ${e.itemText}`,dragSelectedItems:(e,t)=>`\u05D2\u05E8\u05D5\u05E8 ${t.plural(e.count,{one:()=>`\u05E4\u05E8\u05D9\u05D8 \u05E0\u05D1\u05D7\u05E8 ${t.number(e.count)}`,other:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E9\u05E0\u05D1\u05D7\u05E8\u05D5`})}`,dragSelectedKeyboard:(e,t)=>`\u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05D2\u05E8\u05D5\u05E8 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8 \u05E9\u05E0\u05D1\u05D7\u05E8`,other:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E9\u05E0\u05D1\u05D7\u05E8\u05D5`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u05D4\u05E7\u05E9 Alt + Enter \u05DB\u05D3\u05D9 \u05DC\u05D2\u05E8\u05D5\u05E8 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8 \u05E9\u05E0\u05D1\u05D7\u05E8`,other:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E9\u05E0\u05D1\u05D7\u05E8\u05D5`})}.`,dragSelectedLongPress:(e,t)=>`\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05DB\u05D3\u05D9 \u05DC\u05D2\u05E8\u05D5\u05E8 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8 \u05E9\u05E0\u05D1\u05D7\u05E8`,other:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E9\u05E0\u05D1\u05D7\u05E8\u05D5`})}.`,dragStartedKeyboard:"\u05D4\u05EA\u05D7\u05DC\u05EA \u05DC\u05D2\u05E8\u05D5\u05E8. \u05D4\u05E7\u05E9 \u05E2\u05DC Tab \u05DB\u05D3\u05D9 \u05DC\u05E0\u05D5\u05D5\u05D8 \u05DC\u05E0\u05E7\u05D5\u05D3\u05EA \u05D4\u05D2\u05E8\u05D9\u05E8\u05D4 \u05D5\u05DC\u05D0\u05D7\u05E8 \u05DE\u05DB\u05DF \u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8 \u05D0\u05D5 \u05E2\u05DC Escape \u05DB\u05D3\u05D9 \u05DC\u05D1\u05D8\u05DC.",dragStartedTouch:"\u05D4\u05EA\u05D7\u05DC\u05EA \u05DC\u05D2\u05E8\u05D5\u05E8. \u05E0\u05D5\u05D5\u05D8 \u05DC\u05E0\u05E7\u05D5\u05D3\u05EA \u05D4\u05E9\u05D7\u05E8\u05D5\u05E8 \u05D5\u05DC\u05D0\u05D7\u05E8 \u05DE\u05DB\u05DF \u05D4\u05E7\u05E9 \u05E4\u05E2\u05DE\u05D9\u05D9\u05DD \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8.",dragStartedVirtual:"\u05D4\u05EA\u05D7\u05DC\u05EA \u05DC\u05D2\u05E8\u05D5\u05E8. \u05E0\u05D5\u05D5\u05D8 \u05DC\u05E0\u05E7\u05D5\u05D3\u05EA \u05D4\u05E9\u05D7\u05E8\u05D5\u05E8 \u05D5\u05DC\u05D0\u05D7\u05E8 \u05DE\u05DB\u05DF \u05DC\u05D7\u05E5 \u05D0\u05D5 \u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8.",dropCanceled:"\u05D4\u05E9\u05D7\u05E8\u05D5\u05E8 \u05D1\u05D5\u05D8\u05DC.",dropComplete:"\u05D4\u05E9\u05D7\u05E8\u05D5\u05E8 \u05D4\u05D5\u05E9\u05DC\u05DD.",dropDescriptionKeyboard:"\u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8. \u05D4\u05E7\u05E9 \u05E2\u05DC Escape \u05DB\u05D3\u05D9 \u05DC\u05D1\u05D8\u05DC \u05D0\u05EA \u05D4\u05D2\u05E8\u05D9\u05E8\u05D4.",dropDescriptionTouch:"\u05D4\u05E7\u05E9 \u05E4\u05E2\u05DE\u05D9\u05D9\u05DD \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8.",dropDescriptionVirtual:"\u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8.",dropIndicator:"\u05DE\u05D7\u05D5\u05D5\u05DF \u05E9\u05D7\u05E8\u05D5\u05E8",dropOnItem:e=>`\u05E9\u05D7\u05E8\u05E8 \u05E2\u05DC ${e.itemText}`,dropOnRoot:"\u05E9\u05D7\u05E8\u05E8 \u05E2\u05DC",endDragKeyboard:"\u05D2\u05D5\u05E8\u05E8. \u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05D1\u05D8\u05DC \u05D0\u05EA \u05D4\u05D2\u05E8\u05D9\u05E8\u05D4.",endDragTouch:"\u05D2\u05D5\u05E8\u05E8. \u05D4\u05E7\u05E9 \u05E4\u05E2\u05DE\u05D9\u05D9\u05DD \u05DB\u05D3\u05D9 \u05DC\u05D1\u05D8\u05DC \u05D0\u05EA \u05D4\u05D2\u05E8\u05D9\u05E8\u05D4.",endDragVirtual:"\u05D2\u05D5\u05E8\u05E8. \u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05D1\u05D8\u05DC \u05D0\u05EA \u05D4\u05D2\u05E8\u05D9\u05E8\u05D4.",insertAfter:e=>`\u05D4\u05D5\u05E1\u05E3 \u05D0\u05D7\u05E8\u05D9 ${e.itemText}`,insertBefore:e=>`\u05D4\u05D5\u05E1\u05E3 \u05DC\u05E4\u05E0\u05D9 ${e.itemText}`,insertBetween:e=>`\u05D4\u05D5\u05E1\u05E3 \u05D1\u05D9\u05DF ${e.beforeItemText} \u05DC\u05D1\u05D9\u05DF ${e.afterItemText}`},"hr-HR":{dragDescriptionKeyboard:"Pritisnite Enter da biste po\u010Deli povla\u010Diti.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter za po\u010Detak povla\u010Denja.",dragDescriptionLongPress:"Dugo pritisnite za po\u010Detak povla\u010Denja.",dragDescriptionTouch:"Dvaput dodirnite da biste po\u010Deli povla\u010Diti.",dragDescriptionVirtual:"Kliknite da biste po\u010Deli povla\u010Diti.",dragItem:e=>`Povucite stavku ${e.itemText}`,dragSelectedItems:(e,t)=>`Povucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabranu stavku`,other:()=>`ovoliko odabranih stavki: ${t.number(e.count)}`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter za povla\u010Denje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter za povla\u010Denje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedLongPress:(e,t)=>`Dugo pritisnite za povla\u010Denje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragStartedKeyboard:"Po\u010Deli ste povla\u010Diti. Pritisnite tipku tabulatora da biste do\u0161li do cilja ispu\u0161tanja, a zatim Enter da biste ispustili stavku ili Escape da biste prekinuli povla\u010Denje.",dragStartedTouch:"Po\u010Deli ste povla\u010Diti. Do\u0111ite do cilja ispu\u0161tanja, a zatim dvaput dodirnite da biste ispustili stavku.",dragStartedVirtual:"Po\u010Deli ste povla\u010Diti. Do\u0111ite do cilja ispu\u0161tanja, a zatim kliknite ili pritisnite Enter da biste ispustili stavku.",dropCanceled:"Povla\u010Denje je prekinuto.",dropComplete:"Ispu\u0161tanje je dovr\u0161eno.",dropDescriptionKeyboard:"Pritisnite Enter da biste ispustili stavku. Pritisnite Escape da biste prekinuli povla\u010Denje.",dropDescriptionTouch:"Dvaput dodirnite da biste ispustili stavku.",dropDescriptionVirtual:"Kliknite da biste ispustili stavku.",dropIndicator:"pokazatelj ispu\u0161tanja",dropOnItem:e=>`Ispustite na stavku ${e.itemText}`,dropOnRoot:"Ispustite na",endDragKeyboard:"Povla\u010Denje. Pritisnite Enter da biste prekinuli povla\u010Denje.",endDragTouch:"Povla\u010Denje. Dvaput dodirnite da biste prekinuli povla\u010Denje.",endDragVirtual:"Povla\u010Denje. Kliknite da biste prekinuli povla\u010Denje.",insertAfter:e=>`Umetnite iza stavke ${e.itemText}`,insertBefore:e=>`Ispustite ispred stavke ${e.itemText}`,insertBetween:e=>`Umetnite izme\u0111u stavki ${e.beforeItemText} i ${e.afterItemText}`},"hu-HU":{dragDescriptionKeyboard:"Nyomja le az Enter billenty\u0171t a h\xFAz\xE1s megkezd\xE9s\xE9hez.",dragDescriptionKeyboardAlt:"Nyomja le az Alt + Enter billenty\u0171ket a h\xFAz\xE1s megkezd\xE9s\xE9hez.",dragDescriptionLongPress:"Hosszan nyomja meg a h\xFAz\xE1s elind\xEDt\xE1s\xE1hoz.",dragDescriptionTouch:"Koppintson dupl\xE1n a h\xFAz\xE1s megkezd\xE9s\xE9hez.",dragDescriptionVirtual:"Kattintson a h\xFAz\xE1s megkezd\xE9s\xE9hez.",dragItem:e=>`${e.itemText} h\xFAz\xE1sa`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xF6lt elem`,other:()=>`${t.number(e.count)} kijel\xF6lt elem`})} h\xFAz\xE1sa`,dragSelectedKeyboard:(e,t)=>`Nyomja meg az Entert ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xF6lt elem`,other:()=>`${t.number(e.count)} kijel\xF6lt elem`})} h\xFAz\xE1s\xE1hoz.`,dragSelectedKeyboardAlt:(e,t)=>`Nyomja meg az Alt + Enter billenty\u0171ket ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xF6lt elem`,other:()=>`${t.number(e.count)} kijel\xF6lt elem`})} h\xFAz\xE1s\xE1hoz.`,dragSelectedLongPress:(e,t)=>`Tartsa lenyomva hosszan ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijel\xF6lt elem`,other:()=>`${t.number(e.count)} kijel\xF6lt elem`})} h\xFAz\xE1s\xE1hoz.`,dragStartedKeyboard:"H\xFAz\xE1s megkezdve. Nyomja le a Tab billenty\u0171t az elenged\xE9si c\xE9lhoz navig\xE1l\xE1s\xE1hoz, majd nyomja le az Enter billenty\u0171t az elenged\xE9shez, vagy nyomja le az Escape billenty\u0171t a megszak\xEDt\xE1shoz.",dragStartedTouch:"H\xFAz\xE1s megkezdve. Navig\xE1ljon egy elenged\xE9si c\xE9lhoz, majd koppintson dupl\xE1n az elenged\xE9shez.",dragStartedVirtual:"H\xFAz\xE1s megkezdve. Navig\xE1ljon egy elenged\xE9si c\xE9lhoz, majd kattintson vagy nyomja le az Enter billenty\u0171t az elenged\xE9shez.",dropCanceled:"Elenged\xE9s megszak\xEDtva.",dropComplete:"Elenged\xE9s teljes\xEDtve.",dropDescriptionKeyboard:"Nyomja le az Enter billenty\u0171t az elenged\xE9shez. Nyomja le az Escape billenty\u0171t a h\xFAz\xE1s megszak\xEDt\xE1s\xE1hoz.",dropDescriptionTouch:"Koppintson dupl\xE1n az elenged\xE9shez.",dropDescriptionVirtual:"Kattintson az elenged\xE9shez.",dropIndicator:"elenged\xE9sjelz\u0151",dropOnItem:e=>`Elenged\xE9s erre: ${e.itemText}`,dropOnRoot:"Elenged\xE9s erre:",endDragKeyboard:"H\xFAz\xE1s folyamatban. Nyomja le az Enter billenty\u0171t a h\xFAz\xE1s megszak\xEDt\xE1s\xE1hoz.",endDragTouch:"H\xFAz\xE1s folyamatban. Koppintson dupl\xE1n a h\xFAz\xE1s megszak\xEDt\xE1s\xE1hoz.",endDragVirtual:"H\xFAz\xE1s folyamatban. Kattintson a h\xFAz\xE1s megszak\xEDt\xE1s\xE1hoz.",insertAfter:e=>`Besz\xFAr\xE1s ${e.itemText} ut\xE1n`,insertBefore:e=>`Besz\xFAr\xE1s ${e.itemText} el\xE9`,insertBetween:e=>`Besz\xFAr\xE1s ${e.beforeItemText} \xE9s ${e.afterItemText} k\xF6z\xE9`},"it-IT":{dragDescriptionKeyboard:"Premi Invio per iniziare a trascinare.",dragDescriptionKeyboardAlt:"Premi Alt + Invio per iniziare a trascinare.",dragDescriptionLongPress:"Premi a lungo per iniziare a trascinare.",dragDescriptionTouch:"Tocca due volte per iniziare a trascinare.",dragDescriptionVirtual:"Fai clic per iniziare a trascinare.",dragItem:e=>`Trascina ${e.itemText}`,dragSelectedItems:(e,t)=>`Trascina ${t.plural(e.count,{one:()=>`${t.number(e.count)} altro elemento selezionato`,other:()=>`${t.number(e.count)} altri elementi selezionati`})}`,dragSelectedKeyboard:(e,t)=>`Premi Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Premi Alt + Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedLongPress:(e,t)=>`Premi a lungo per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragStartedKeyboard:"Hai iniziato a trascinare. Premi Tab per arrivare sull\u2019area di destinazione, quindi premi Invio per rilasciare o Esc per annullare.",dragStartedTouch:"Hai iniziato a trascinare. Arriva sull\u2019area di destinazione, quindi tocca due volte per rilasciare.",dragStartedVirtual:"Hai iniziato a trascinare. Arriva sull\u2019area di destinazione, quindi fai clic o premi Invio per rilasciare.",dropCanceled:"Rilascio annullato.",dropComplete:"Rilascio completato.",dropDescriptionKeyboard:"Premi Invio per rilasciare. Premi Esc per annullare.",dropDescriptionTouch:"Tocca due volte per rilasciare.",dropDescriptionVirtual:"Fai clic per rilasciare.",dropIndicator:"indicatore di rilascio",dropOnItem:e=>`Rilascia su ${e.itemText}`,dropOnRoot:"Rilascia su",endDragKeyboard:"Trascinamento. Premi Invio per annullare.",endDragTouch:"Trascinamento. Tocca due volte per annullare.",endDragVirtual:"Trascinamento. Fai clic per annullare.",insertAfter:e=>`Inserisci dopo ${e.itemText}`,insertBefore:e=>`Inserisci prima di ${e.itemText}`,insertBetween:e=>`Inserisci tra ${e.beforeItemText} e ${e.afterItemText}`},"ja-JP":{dragDescriptionKeyboard:"Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u3066\u304F\u3060\u3055\u3044\u3002",dragDescriptionKeyboardAlt:"Alt+Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002",dragDescriptionLongPress:"\u9577\u62BC\u3057\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002",dragDescriptionTouch:"\u30C0\u30D6\u30EB\u30BF\u30C3\u30D7\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002",dragDescriptionVirtual:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002",dragItem:e=>`${e.itemText} \u3092\u30C9\u30E9\u30C3\u30B0`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u500B\u306E\u9078\u629E\u9805\u76EE`,other:()=>`${t.number(e.count)} \u500B\u306E\u9078\u629E\u9805\u76EE`})} \u3092\u30C9\u30E9\u30C3\u30B0`,dragSelectedKeyboard:(e,t)=>`Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u3001${t.plural(e.count,{one:()=>`${t.number(e.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`,other:()=>`${t.number(e.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`})}\u3092\u30C9\u30E9\u30C3\u30B0\u3057\u307E\u3059\u3002`,dragSelectedKeyboardAlt:(e,t)=>`Alt+Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u3001${t.plural(e.count,{one:()=>`${t.number(e.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`,other:()=>`${t.number(e.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`})}\u3092\u30C9\u30E9\u30C3\u30B0\u3057\u307E\u3059\u3002`,dragSelectedLongPress:(e,t)=>`\u9577\u62BC\u3057\u3057\u3066\u3001${t.plural(e.count,{one:()=>`${t.number(e.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`,other:()=>`${t.number(e.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`})}\u3092\u30C9\u30E9\u30C3\u30B0\u3057\u307E\u3059\u3002`,dragStartedKeyboard:"\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002Tab \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u30BF\u30FC\u30B2\u30C3\u30C8\u306B\u3044\u3069\u3046\u3057\u3001Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3059\u308B\u304B\u3001Esc \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002",dragStartedTouch:"\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3057\u305F\u3002\u30C9\u30ED\u30C3\u30D7\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u306B\u79FB\u52D5\u3057\u3001\u30C0\u30D6\u30EB\u30BF\u30C3\u30D7\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059\u3002",dragStartedVirtual:"\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3057\u305F\u3002\u30C9\u30ED\u30C3\u30D7\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u306B\u79FB\u52D5\u3057\u3001\u30AF\u30EA\u30C3\u30AF\u307E\u305F\u306F Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059\u3002",dropCanceled:"\u30C9\u30ED\u30C3\u30D7\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F\u3002",dropComplete:"\u30C9\u30ED\u30C3\u30D7\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002",dropDescriptionKeyboard:"Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059\u3002Esc \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002",dropDescriptionTouch:"\u30C0\u30D6\u30EB\u30BF\u30C3\u30D7\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059\u3002",dropDescriptionVirtual:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059\u3002",dropIndicator:"\u30C9\u30ED\u30C3\u30D7\u30A4\u30F3\u30B8\u30B1\u30FC\u30BF\u30FC",dropOnItem:e=>`${e.itemText} \u306B\u30C9\u30ED\u30C3\u30D7`,dropOnRoot:"\u30C9\u30ED\u30C3\u30D7\u5834\u6240",endDragKeyboard:"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u3044\u307E\u3059\u3002Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002",endDragTouch:"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u3044\u307E\u3059\u3002\u30C0\u30D6\u30EB\u30BF\u30C3\u30D7\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002",endDragVirtual:"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u3044\u307E\u3059\u3002\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002",insertAfter:e=>`${e.itemText} \u306E\u5F8C\u306B\u633F\u5165`,insertBefore:e=>`${e.itemText} \u306E\u524D\u306B\u633F\u5165`,insertBetween:e=>`${e.beforeItemText} \u3068 ${e.afterItemText} \u306E\u9593\u306B\u633F\u5165`},"ko-KR":{dragDescriptionKeyboard:"\uB4DC\uB798\uADF8\uB97C \uC2DC\uC791\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC138\uC694.",dragDescriptionKeyboardAlt:"\uB4DC\uB798\uADF8\uB97C \uC2DC\uC791\uD558\uB824\uBA74 Alt + Enter\uB97C \uB204\uB974\uC2ED\uC2DC\uC624.",dragDescriptionLongPress:"\uB4DC\uB798\uADF8\uB97C \uC2DC\uC791\uD558\uB824\uBA74 \uAE38\uAC8C \uB204\uB974\uC2ED\uC2DC\uC624.",dragDescriptionTouch:"\uB4DC\uB798\uADF8\uB97C \uC2DC\uC791\uD558\uB824\uBA74 \uB354\uBE14 \uD0ED\uD558\uC138\uC694.",dragDescriptionVirtual:"\uB4DC\uB798\uADF8\uB97C \uC2DC\uC791\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC138\uC694.",dragItem:e=>`${e.itemText} \uB4DC\uB798\uADF8`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`,other:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`})} \uB4DC\uB798\uADF8`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`,other:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`})}\uC744 \uB4DC\uB798\uADF8\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC2ED\uC2DC\uC624.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`,other:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`})}\uC744 \uB4DC\uB798\uADF8\uD558\uB824\uBA74 Alt + Enter\uB97C \uB204\uB974\uC2ED\uC2DC\uC624.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`,other:()=>`${t.number(e.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`})}\uC744 \uB4DC\uB798\uADF8\uD558\uB824\uBA74 \uAE38\uAC8C \uB204\uB974\uC2ED\uC2DC\uC624.`,dragStartedKeyboard:"\uB4DC\uB798\uADF8\uAC00 \uC2DC\uC791\uB418\uC5C8\uC2B5\uB2C8\uB2E4. Tab\uC744 \uB20C\uB7EC \uB4DC\uB86D \uB300\uC0C1\uC73C\uB85C \uC774\uB3D9\uD55C \uB2E4\uC74C Enter\uB97C \uB20C\uB7EC \uB4DC\uB86D\uD558\uAC70\uB098 Esc\uB97C \uB20C\uB7EC \uCDE8\uC18C\uD558\uC138\uC694.",dragStartedTouch:"\uB4DC\uB798\uADF8\uAC00 \uC2DC\uC791\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB4DC\uB86D \uB300\uC0C1\uC73C\uB85C \uC774\uB3D9\uD55C \uB2E4\uC74C \uB354\uBE14 \uD0ED\uD558\uC5EC \uB4DC\uB86D\uD558\uC138\uC694.",dragStartedVirtual:"\uB4DC\uB798\uADF8\uAC00 \uC2DC\uC791\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB4DC\uB86D \uB300\uC0C1\uC73C\uB85C \uC774\uB3D9\uD55C \uB2E4\uC74C \uD074\uB9AD\uD558\uAC70\uB098 Enter\uB97C \uB20C\uB7EC \uB4DC\uB86D\uD558\uC138\uC694.",dropCanceled:"\uB4DC\uB86D\uC774 \uCDE8\uC18C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",dropComplete:"\uB4DC\uB86D\uC774 \uC644\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",dropDescriptionKeyboard:"\uB4DC\uB86D\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC138\uC694. \uB4DC\uB798\uADF8\uB97C \uCDE8\uC18C\uD558\uB824\uBA74 Esc\uB97C \uB204\uB974\uC138\uC694.",dropDescriptionTouch:"\uB354\uBE14 \uD0ED\uD558\uC5EC \uB4DC\uB86D\uD558\uC138\uC694.",dropDescriptionVirtual:"\uB4DC\uB86D\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC138\uC694.",dropIndicator:"\uB4DC\uB86D \uD45C\uC2DC\uAE30",dropOnItem:e=>`${e.itemText}\uC5D0 \uB4DC\uB86D`,dropOnRoot:"\uB4DC\uB86D \uB300\uC0C1",endDragKeyboard:"\uB4DC\uB798\uADF8 \uC911\uC785\uB2C8\uB2E4. \uB4DC\uB798\uADF8\uB97C \uCDE8\uC18C\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC138\uC694.",endDragTouch:"\uB4DC\uB798\uADF8 \uC911\uC785\uB2C8\uB2E4. \uB4DC\uB798\uADF8\uB97C \uCDE8\uC18C\uD558\uB824\uBA74 \uB354\uBE14 \uD0ED\uD558\uC138\uC694.",endDragVirtual:"\uB4DC\uB798\uADF8 \uC911\uC785\uB2C8\uB2E4. \uB4DC\uB798\uADF8\uB97C \uCDE8\uC18C\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC138\uC694.",insertAfter:e=>`${e.itemText} \uC774\uD6C4\uC5D0 \uC0BD\uC785`,insertBefore:e=>`${e.itemText} \uC774\uC804\uC5D0 \uC0BD\uC785`,insertBetween:e=>`${e.beforeItemText} \uBC0F ${e.afterItemText} \uC0AC\uC774\uC5D0 \uC0BD\uC785`},"lt-LT":{dragDescriptionKeyboard:"Paspauskite \u201EEnter\u201C, kad prad\u0117tum\u0117te vilkti.",dragDescriptionKeyboardAlt:"Paspauskite \u201EAlt + Enter\u201C, kad prad\u0117tum\u0117te vilkti.",dragDescriptionLongPress:"Palaikykite nuspaud\u0119, kad prad\u0117tum\u0117te vilkti.",dragDescriptionTouch:"Palieskite dukart, kad prad\u0117tum\u0117te vilkti.",dragDescriptionVirtual:"Spustel\u0117kite, kad prad\u0117tum\u0117te vilkti.",dragItem:e=>`Vilkti ${e.itemText}`,dragSelectedItems:(e,t)=>`Vilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u0105 element\u0105`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}`,dragSelectedKeyboard:(e,t)=>`Paspauskite \u201EEnter\u201C, jei norite nuvilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u0105 element\u0105`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Paspauskite \u201EAlt + Enter\u201C, kad nuvilktum\u0117te ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u0105 element\u0105`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedLongPress:(e,t)=>`Nuspaud\u0119 palaikykite, kad nuvilktum\u0117te ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinkt\u0105 element\u0105`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragStartedKeyboard:"Prad\u0117ta vilkti. Paspauskite \u201ETab\u201C, kad pereitum\u0117te \u012F tiesiogin\u0119 paskirties viet\u0105, tada paspauskite \u201EEnter\u201C, kad numestum\u0117te, arba \u201EEscape\u201C, kad at\u0161auktum\u0117te.",dragStartedTouch:"Prad\u0117ta vilkti. Eikite \u012F tiesiogin\u0119 paskirties viet\u0105, tada palieskite dukart, kad numestum\u0117te.",dragStartedVirtual:"Prad\u0117ta vilkti. Eikite \u012F tiesiogin\u0119 paskirties viet\u0105 ir spustel\u0117kite arba paspauskite \u201EEnter\u201C, kad numestum\u0117te.",dropCanceled:"Numetimas at\u0161auktas.",dropComplete:"Numesta.",dropDescriptionKeyboard:"Paspauskite \u201EEnter\u201C, kad numestum\u0117te. Paspauskite \u201EEscape\u201C, kad at\u0161auktum\u0117te vilkim\u0105.",dropDescriptionTouch:"Palieskite dukart, kad numestum\u0117te.",dropDescriptionVirtual:"Spustel\u0117kite, kad numestum\u0117te.",dropIndicator:"numetimo indikatorius",dropOnItem:e=>`Numesti ant ${e.itemText}`,dropOnRoot:"Numesti ant",endDragKeyboard:"Velkama. Paspauskite \u201EEnter\u201C, kad at\u0161auktum\u0117te vilkim\u0105.",endDragTouch:"Velkama. Spustel\u0117kite dukart, kad at\u0161auktum\u0117te vilkim\u0105.",endDragVirtual:"Velkama. Spustel\u0117kite, kad at\u0161auktum\u0117te vilkim\u0105.",insertAfter:e=>`\u012Eterpti po ${e.itemText}`,insertBefore:e=>`\u012Eterpti prie\u0161 ${e.itemText}`,insertBetween:e=>`\u012Eterpti tarp ${e.beforeItemText} ir ${e.afterItemText}`},"lv-LV":{dragDescriptionKeyboard:"Nospiediet Enter, lai s\u0101ktu vilk\u0161anu.",dragDescriptionKeyboardAlt:"Nospiediet tausti\u0146u kombin\u0101ciju Alt+Enter, lai s\u0101ktu vilk\u0161anu.",dragDescriptionLongPress:"Turiet nospiestu, lai s\u0101ktu vilk\u0161anu.",dragDescriptionTouch:"Veiciet dubultsk\u0101rienu, lai s\u0101ktu vilk\u0161anu.",dragDescriptionVirtual:"Noklik\u0161\u0137iniet, lai s\u0101ktu vilk\u0161anu.",dragItem:e=>`Velciet ${e.itemText}`,dragSelectedItems:(e,t)=>`Velciet ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u012Bto vienumu`,other:()=>`${t.number(e.count)} atlas\u012Btos vienumus`})}`,dragSelectedKeyboard:(e,t)=>`Nospiediet tausti\u0146u Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u012Bto vienumu`,other:()=>`${t.number(e.count)} atlas\u012Btos vienumus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Nospiediet tausti\u0146u kombin\u0101ciju Alt+Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u012Bto vienumu`,other:()=>`${t.number(e.count)} atlas\u012Btos vienumus`})}.`,dragSelectedLongPress:(e,t)=>`Turiet nospiestu, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlas\u012Bto vienumu`,other:()=>`${t.number(e.count)} atlas\u012Btos vienumus`})}.`,dragStartedKeyboard:"Uzs\u0101kta vilk\u0161ana. Nospiediet tausti\u0146u Tab, lai p\u0101rietu uz nome\u0161anas m\u0113r\u0137i, p\u0113c tam nospiediet Enter, lai nomestu, vai nospiediet Escape, lai atceltu.",dragStartedTouch:"Uzs\u0101kta vilk\u0161ana. P\u0101rejiet uz nome\u0161anas m\u0113r\u0137i, p\u0113c tam veiciet dubultsk\u0101rienu, lai nomestu.",dragStartedVirtual:"Uzs\u0101kta vilk\u0161ana. P\u0101rejiet uz nome\u0161anas m\u0113r\u0137i, p\u0113c tam nospiediet Enter, lai nomestu.",dropCanceled:"Nome\u0161ana atcelta.",dropComplete:"Nome\u0161ana pabeigta.",dropDescriptionKeyboard:"Nospiediet Enter, lai nomestu. Nospiediet Escape, lai atceltu vilk\u0161anu.",dropDescriptionTouch:"Veiciet dubultsk\u0101rienu, lai nomestu.",dropDescriptionVirtual:"Noklik\u0161\u0137iniet, lai nomestu.",dropIndicator:"nome\u0161anas indikators",dropOnItem:e=>`Nometiet uz ${e.itemText}`,dropOnRoot:"Nometiet uz",endDragKeyboard:"Notiek vilk\u0161ana. Nospiediet Enter, lai atceltu vilk\u0161anu.",endDragTouch:"Notiek vilk\u0161ana. Veiciet dubultsk\u0101rienu, lai atceltu vilk\u0161anu.",endDragVirtual:"Notiek vilk\u0161ana. Noklik\u0161\u0137iniet, lai atceltu vilk\u0161anu.",insertAfter:e=>`Ievietojiet p\u0113c ${e.itemText}`,insertBefore:e=>`Ievietojiet pirms ${e.itemText}`,insertBetween:e=>`Ievietojiet starp ${e.beforeItemText} un ${e.afterItemText}`},"nb-NO":{dragDescriptionKeyboard:"Trykk p\xE5 Enter for \xE5 begynne \xE5 dra.",dragDescriptionKeyboardAlt:"Trykk p\xE5 Alt + Enter for \xE5 begynne \xE5 dra.",dragDescriptionLongPress:"Trykk lenge for \xE5 begynne \xE5 dra.",dragDescriptionTouch:"Dobbelttrykk for \xE5 begynne \xE5 dra.",dragDescriptionVirtual:"Klikk for \xE5 begynne \xE5 dra.",dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} merket element`,other:()=>`${t.number(e.count)} merkede elementer`})}`,dragSelectedKeyboard:(e,t)=>`Trykk Enter for \xE5 dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Trykk p\xE5 Alt + Enter for \xE5 dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Trykk lenge for \xE5 dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:"Begynte \xE5 dra. Trykk p\xE5 Tab for \xE5 navigere til et m\xE5l, og trykk deretter p\xE5 Enter for \xE5 slippe eller p\xE5 Esc for \xE5 avbryte.",dragStartedTouch:"Begynte \xE5 dra. Naviger til et m\xE5l, og dobbelttrykk for \xE5 slippe.",dragStartedVirtual:"Begynte \xE5 dra. Naviger til et m\xE5l, og klikk eller trykk p\xE5 Enter for \xE5 slippe.",dropCanceled:"Avbr\xF8t slipping.",dropComplete:"Slippingen er fullf\xF8rt.",dropDescriptionKeyboard:"Trykk p\xE5 Enter for \xE5 slippe. Trykk p\xE5 Esc hvis du vil avbryte draingen.",dropDescriptionTouch:"Dobbelttrykk for \xE5 slippe.",dropDescriptionVirtual:"Klikk for \xE5 slippe.",dropIndicator:"slippeindikator",dropOnItem:e=>`Slipp p\xE5 ${e.itemText}`,dropOnRoot:"Slipp p\xE5",endDragKeyboard:"Drar. Trykk p\xE5 Enter hvis du vil avbryte.",endDragTouch:"Drar. Dobbelttrykk hvis du vil avbryte.",endDragVirtual:"Drar. Klikk hvis du vil avbryte.",insertAfter:e=>`Sett inn etter ${e.itemText}`,insertBefore:e=>`Sett inn f\xF8r ${e.itemText}`,insertBetween:e=>`Sett inn mellom ${e.beforeItemText} og ${e.afterItemText}`},"nl-NL":{dragDescriptionKeyboard:"Druk op Enter om te slepen.",dragDescriptionKeyboardAlt:"Druk op Alt + Enter om te slepen.",dragDescriptionLongPress:"Houd lang ingedrukt om te slepen.",dragDescriptionTouch:"Dubbeltik om te slepen.",dragDescriptionVirtual:"Klik om met slepen te starten.",dragItem:e=>`${e.itemText} slepen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} slepen`,dragSelectedKeyboard:(e,t)=>`Druk op Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedKeyboardAlt:(e,t)=>`Druk op Alt + Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedLongPress:(e,t)=>`Houd lang ingedrukt om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragStartedKeyboard:"Begonnen met slepen. Druk op Tab om naar een locatie te gaan. Druk dan op Enter om neer te zetten, of op Esc om te annuleren.",dragStartedTouch:"Begonnen met slepen. Ga naar de gewenste locatie en dubbeltik om neer te zetten.",dragStartedVirtual:"Begonnen met slepen. Ga naar de gewenste locatie en klik of druk op Enter om neer te zetten.",dropCanceled:"Neerzetten geannuleerd.",dropComplete:"Neerzetten voltooid.",dropDescriptionKeyboard:"Druk op Enter om neer te zetten. Druk op Esc om het slepen te annuleren.",dropDescriptionTouch:"Dubbeltik om neer te zetten.",dropDescriptionVirtual:"Klik om neer te zetten.",dropIndicator:"aanwijzer voor neerzetten",dropOnItem:e=>`Neerzetten op ${e.itemText}`,dropOnRoot:"Neerzetten op",endDragKeyboard:"Bezig met slepen. Druk op Enter om te annuleren.",endDragTouch:"Bezig met slepen. Dubbeltik om te annuleren.",endDragVirtual:"Bezig met slepen. Klik om te annuleren.",insertAfter:e=>`Plaatsen na ${e.itemText}`,insertBefore:e=>`Plaatsen v\xF3\xF3r ${e.itemText}`,insertBetween:e=>`Plaatsen tussen ${e.beforeItemText} en ${e.afterItemText}`},"pl-PL":{dragDescriptionKeyboard:"Naci\u015Bnij Enter, aby rozpocz\u0105\u0107 przeci\u0105ganie.",dragDescriptionKeyboardAlt:"Naci\u015Bnij Alt + Enter, aby rozpocz\u0105\u0107 przeci\u0105ganie.",dragDescriptionLongPress:"Naci\u015Bnij i przytrzymaj, aby rozpocz\u0105\u0107 przeci\u0105ganie.",dragDescriptionTouch:"Dotknij dwukrotnie, aby rozpocz\u0105\u0107 przeci\u0105ganie.",dragDescriptionVirtual:"Kliknij, aby rozpocz\u0105\u0107 przeci\u0105ganie.",dragItem:e=>`Przeci\u0105gnij ${e.itemText}`,dragSelectedItems:(e,t)=>`Przeci\u0105gnij ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybranych element\xF3w`})}`,dragSelectedKeyboard:(e,t)=>`Naci\u015Bnij Enter, aby przeci\u0105gn\u0105\u0107 ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-\xF3w)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Naci\u015Bnij Alt + Enter, aby przeci\u0105gn\u0105\u0107 ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-\xF3w)`})}.`,dragSelectedLongPress:(e,t)=>`Naci\u015Bnij i przytrzymaj, aby przeci\u0105gn\u0105\u0107 ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-\xF3w)`})}.`,dragStartedKeyboard:"Rozpocz\u0119to przeci\u0105ganie. Naci\u015Bnij Tab, aby wybra\u0107 miejsce docelowe, a nast\u0119pnie naci\u015Bnij Enter, aby upu\u015Bci\u0107, lub Escape, aby anulowa\u0107.",dragStartedTouch:"Rozpocz\u0119to przeci\u0105ganie. Wybierz miejsce, w kt\xF3rym chcesz upu\u015Bci\u0107 element, a nast\u0119pnie dotknij dwukrotnie, aby upu\u015Bci\u0107.F",dragStartedVirtual:"Rozpocz\u0119to przeci\u0105ganie. Wybierz miejsce, w kt\xF3rym chcesz upu\u015Bci\u0107 element, a nast\u0119pnie kliknij lub naci\u015Bnij Enter, aby upu\u015Bci\u0107.",dropCanceled:"Anulowano upuszczenie.",dropComplete:"Zako\u0144czono upuszczanie.",dropDescriptionKeyboard:"Naci\u015Bnij Enter, aby upu\u015Bci\u0107. Naci\u015Bnij Escape, aby anulowa\u0107 przeci\u0105gni\u0119cie.",dropDescriptionTouch:"Dotknij dwukrotnie, aby upu\u015Bci\u0107.",dropDescriptionVirtual:"Kliknij, aby upu\u015Bci\u0107.",dropIndicator:"wska\u017Anik upuszczenia",dropOnItem:e=>`Upu\u015B\u0107 na ${e.itemText}`,dropOnRoot:"Upu\u015B\u0107",endDragKeyboard:"Przeci\u0105ganie. Naci\u015Bnij Enter, aby anulowa\u0107 przeci\u0105gni\u0119cie.",endDragTouch:"Przeci\u0105ganie. Kliknij dwukrotnie, aby anulowa\u0107 przeci\u0105gni\u0119cie.",endDragVirtual:"Przeci\u0105ganie. Kliknij, aby anulowa\u0107 przeci\u0105ganie.",insertAfter:e=>`Umie\u015B\u0107 za ${e.itemText}`,insertBefore:e=>`Umie\u015B\u0107 przed ${e.itemText}`,insertBetween:e=>`Umie\u015B\u0107 mi\u0119dzy ${e.beforeItemText} i ${e.afterItemText}`},"pt-BR":{dragDescriptionKeyboard:"Pressione Enter para come\xE7ar a arrastar.",dragDescriptionKeyboardAlt:"Pressione Alt + Enter para come\xE7ar a arrastar.",dragDescriptionLongPress:"Pressione e segure para come\xE7ar a arrastar.",dragDescriptionTouch:"Toque duas vezes para come\xE7ar a arrastar.",dragDescriptionVirtual:"Clique para come\xE7ar a arrastar.",dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Pressione Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pressione Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Pressione e segure para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Comece a arrastar. Pressione Tab para navegar at\xE9 um alvo e, em seguida, pressione Enter para soltar ou pressione Escape para cancelar.",dragStartedTouch:"Comece a arrastar. Navegue at\xE9 um alvo e toque duas vezes para soltar.",dragStartedVirtual:"Comece a arrastar. Navegue at\xE9 um alvo e clique ou pressione Enter para soltar.",dropCanceled:"Libera\xE7\xE3o cancelada.",dropComplete:"Libera\xE7\xE3o conclu\xEDda.",dropDescriptionKeyboard:"Pressione Enter para soltar. Pressione Escape para cancelar.",dropDescriptionTouch:"Toque duas vezes para soltar.",dropDescriptionVirtual:"Clique para soltar.",dropIndicator:"indicador de libera\xE7\xE3o",dropOnItem:e=>`Soltar em ${e.itemText}`,dropOnRoot:"Soltar",endDragKeyboard:"Arrastando. Pressione Enter para cancelar.",endDragTouch:"Arrastando. Toque duas vezes para cancelar.",endDragVirtual:"Arrastando. Clique para cancelar.",insertAfter:e=>`Inserir ap\xF3s ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`},"pt-PT":{dragDescriptionKeyboard:"Prima Enter para iniciar o arrasto.",dragDescriptionKeyboardAlt:"Prima Alt + Enter para iniciar o arrasto.",dragDescriptionLongPress:"Prima longamente para come\xE7ar a arrastar.",dragDescriptionTouch:"Fa\xE7a duplo toque para come\xE7ar a arrastar.",dragDescriptionVirtual:"Clique para iniciar o arrasto.",dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Prima Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Prima Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Prima longamente para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Arrasto iniciado. Prima a tecla de tabula\xE7\xE3o para navegar para um destino para largar, e em seguida prima Enter para largar ou prima Escape para cancelar.",dragStartedTouch:"Arrasto iniciado. Navegue para um destino para largar, e em seguida fa\xE7a duplo toque para largar.",dragStartedVirtual:"Arrasto iniciado. Navegue para um destino para largar, e em seguida clique ou prima Enter para largar.",dropCanceled:"Largar cancelado.",dropComplete:"Largar completo.",dropDescriptionKeyboard:"Prima Enter para largar. Prima Escape para cancelar o arrasto.",dropDescriptionTouch:"Fa\xE7a duplo toque para largar.",dropDescriptionVirtual:"Clique para largar.",dropIndicator:"Indicador de largar",dropOnItem:e=>`Largar em ${e.itemText}`,dropOnRoot:"Largar em",endDragKeyboard:"A arrastar. Prima Enter para cancelar o arrasto.",endDragTouch:"A arrastar. Fa\xE7a duplo toque para cancelar o arrasto.",endDragVirtual:"A arrastar. Clique para cancelar o arrasto.",insertAfter:e=>`Inserir depois de ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`},"ro-RO":{dragDescriptionKeyboard:"Ap\u0103sa\u021Bi pe Enter pentru a \xEEncepe glisarea.",dragDescriptionKeyboardAlt:"Ap\u0103sa\u021Bi pe Alt + Enter pentru a \xEEncepe glisarea.",dragDescriptionLongPress:"Ap\u0103sa\u021Bi lung pentru a \xEEncepe glisarea.",dragDescriptionTouch:"Atinge\u021Bi de dou\u0103 ori pentru a \xEEncepe s\u0103 glisa\u021Bi.",dragDescriptionVirtual:"Face\u021Bi clic pentru a \xEEncepe glisarea.",dragItem:e=>`Glisa\u021Bi ${e.itemText}`,dragSelectedItems:(e,t)=>`Glisa\u021Bi ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}`,dragSelectedKeyboard:(e,t)=>`Ap\u0103sa\u021Bi pe Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Ap\u0103sa\u021Bi pe Alt + Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedLongPress:(e,t)=>`Ap\u0103sa\u021Bi lung pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragStartedKeyboard:"A \xEEnceput glisarea. Ap\u0103sa\u021Bi pe Tab pentru a naviga la o \u021Bint\u0103 de fixare, apoi ap\u0103sa\u021Bi pe Enter pentru a fixa sau ap\u0103sa\u021Bi pe Escape pentru a anula glisarea.",dragStartedTouch:"A \xEEnceput glisarea. Naviga\u021Bi la o \u021Bint\u0103 de fixare, apoi atinge\u021Bi de dou\u0103 ori pentru a fixa.",dragStartedVirtual:"A \xEEnceput glisarea. Naviga\u021Bi la o \u021Bint\u0103 de fixare, apoi face\u021Bi clic sau ap\u0103sa\u021Bi pe Enter pentru a fixa.",dropCanceled:"Fixare anulat\u0103.",dropComplete:"Fixare finalizat\u0103.",dropDescriptionKeyboard:"Ap\u0103sa\u021Bi pe Enter pentru a fixa. Ap\u0103sa\u021Bi pe Escape pentru a anula glisarea.",dropDescriptionTouch:"Atinge\u021Bi de dou\u0103 ori pentru a fixa.",dropDescriptionVirtual:"Face\u021Bi clic pentru a fixa.",dropIndicator:"indicator de fixare",dropOnItem:e=>`Fixa\u021Bi pe ${e.itemText}`,dropOnRoot:"Fixare pe",endDragKeyboard:"Se gliseaz\u0103. Ap\u0103sa\u021Bi pe Enter pentru a anula glisarea.",endDragTouch:"Se gliseaz\u0103. Atinge\u021Bi de dou\u0103 ori pentru a anula glisarea.",endDragVirtual:"Se gliseaz\u0103. Face\u021Bi clic pentru a anula glisarea.",insertAfter:e=>`Insera\u021Bi dup\u0103 ${e.itemText}`,insertBefore:e=>`Insera\u021Bi \xEEnainte de ${e.itemText}`,insertBetween:e=>`Insera\u021Bi \xEEntre ${e.beforeItemText} \u0219i ${e.afterItemText}`},"ru-RU":{dragDescriptionKeyboard:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter \u0434\u043B\u044F \u043D\u0430\u0447\u0430\u043B\u0430 \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F.",dragDescriptionKeyboardAlt:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + Enter, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u0442\u044C.",dragDescriptionLongPress:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u0442\u044C.",dragDescriptionTouch:"\u0414\u0432\u0430\u0436\u0434\u044B \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u0434\u043B\u044F \u043D\u0430\u0447\u0430\u043B\u0430 \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F.",dragDescriptionVirtual:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435 \u0434\u043B\u044F \u043D\u0430\u0447\u0430\u043B\u0430 \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F.",dragItem:e=>`\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C ${e.itemText}`,dragSelectedItems:(e,t)=>`\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u044D\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u044D\u043B\u0435\u043C`})}`,dragSelectedKeyboard:(e,t)=>`\u041D\u0430\u0436\u043C\u0438\u0442\u0435 Enter \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430`,other:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u041D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + Enter \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430`,other:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432`})}.`,dragSelectedLongPress:(e,t)=>`\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430`,other:()=>`${t.number(e.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432`})}.`,dragStartedKeyboard:"\u041D\u0430\u0447\u0430\u0442\u043E \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Tab \u0434\u043B\u044F \u0432\u044B\u0431\u043E\u0440\u0430 \u0446\u0435\u043B\u0438, \u0437\u0430\u0442\u0435\u043C \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435, \u0438\u043B\u0438 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Escape \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F.",dragStartedTouch:"\u041D\u0430\u0447\u0430\u0442\u043E \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0446\u0435\u043B\u044C, \u0437\u0430\u0442\u0435\u043C \u0434\u0432\u0430\u0436\u0434\u044B \u043D\u0430\u0436\u043C\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435.",dragStartedVirtual:"\u041D\u0430\u0447\u0430\u0442\u043E \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Tab \u0434\u043B\u044F \u0432\u044B\u0431\u043E\u0440\u0430 \u0446\u0435\u043B\u0438, \u0437\u0430\u0442\u0435\u043C \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435.",dropCanceled:"\u041F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435 \u043E\u0442\u043C\u0435\u043D\u0435\u043D\u043E.",dropComplete:"\u041F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E.",dropDescriptionKeyboard:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Escape \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B.",dropDescriptionTouch:"\u0414\u0432\u0430\u0436\u0434\u044B \u043D\u0430\u0436\u043C\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435.",dropDescriptionVirtual:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435.",dropIndicator:"\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F",dropOnItem:e=>`\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C \u043D\u0430 ${e.itemText}`,dropOnRoot:"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C \u043D\u0430",endDragKeyboard:"\u041F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B.",endDragTouch:"\u041F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u0414\u0432\u0430\u0436\u0434\u044B \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B.",endDragVirtual:"\u041F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435 \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B.",insertAfter:e=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043F\u043E\u0441\u043B\u0435 ${e.itemText}`,insertBefore:e=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0434 ${e.itemText}`,insertBetween:e=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043C\u0435\u0436\u0434\u0443 ${e.beforeItemText} \u0438 ${e.afterItemText}`},"sk-SK":{dragDescriptionKeyboard:"Stla\u010Den\xEDm kl\xE1vesu Enter za\u010Dnete pres\xFAvanie.",dragDescriptionKeyboardAlt:"Stla\u010Den\xEDm kl\xE1vesov Alt + Enter za\u010Dnete pres\xFAvanie.",dragDescriptionLongPress:"Dlh\xFDm stla\u010Den\xEDm za\u010Dnete pres\xFAvanie.",dragDescriptionTouch:"Dvojit\xFDm kliknut\xEDm za\u010Dnete pres\xFAvanie.",dragDescriptionVirtual:"Kliknut\xEDm za\u010Dnete pres\xFAvanie.",dragItem:e=>`Presun\xFA\u0165 polo\u017Eku ${e.itemText}`,dragSelectedItems:(e,t)=>`Presun\xFA\u0165 ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xFA polo\u017Eku`,other:()=>`${t.number(e.count)} vybrat\xE9 polo\u017Eky`})}`,dragSelectedKeyboard:(e,t)=>`Stla\u010Den\xEDm kl\xE1vesu Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xFA polo\u017Eku`,other:()=>`${t.number(e.count)} vybrat\xFDch polo\u017Eiek`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stla\u010Den\xEDm kl\xE1vesov Alt + Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xFA polo\u017Eku`,other:()=>`${t.number(e.count)} vybrat\xFDch polo\u017Eiek`})}.`,dragSelectedLongPress:(e,t)=>`Dlh\xFDm stla\u010Den\xEDm presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybrat\xFA polo\u017Eku`,other:()=>`${t.number(e.count)} vybrat\xFDch polo\u017Eiek`})}.`,dragStartedKeyboard:"Pres\xFAvanie sa za\u010Dalo. Do cie\u013Eov\xE9ho umiestnenia prejdete stla\u010Den\xEDm kl\xE1vesu Tab. Ak chcete polo\u017Eku umiestni\u0165, stla\u010Dte kl\xE1ves Enter alebo stla\u010Dte kl\xE1ves Esc, ak chcete pres\xFAvanie zru\u0161i\u0165.",dragStartedTouch:"Pres\xFAvanie sa za\u010Dalo. Prejdite na cie\u013Eov\xE9 umiestnenie a dvojit\xFDm kliknut\xEDm umiestnite polo\u017Eku.",dragStartedVirtual:"Pres\xFAvanie sa za\u010Dalo. Prejdite na cie\u013Eov\xE9 umiestnenie a kliknut\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Enter umiestnite polo\u017Eku.",dropCanceled:"Umiestnenie zru\u0161en\xE9.",dropComplete:"Umiestnenie dokon\u010Den\xE9.",dropDescriptionKeyboard:"Stla\u010Den\xEDm kl\xE1vesu Enter umiestnite polo\u017Eku. Stla\u010Den\xEDm kl\xE1vesu Esc zru\u0161\xEDte pres\xFAvanie.",dropDescriptionTouch:"Dvojit\xFDm kliknut\xEDm umiestnite polo\u017Eku.",dropDescriptionVirtual:"Kliknut\xEDm umiestnite polo\u017Eku.",dropIndicator:"indik\xE1tor umiestnenia",dropOnItem:e=>`Umiestni\u0165 na polo\u017Eku ${e.itemText}`,dropOnRoot:"Umiestni\u0165 na",endDragKeyboard:"Prebieha pres\xFAvanie. Ak ho chcete zru\u0161i\u0165, stla\u010Dte kl\xE1ves Enter.",endDragTouch:"Prebieha pres\xFAvanie. Dvojit\xFDm kliknut\xEDm ho m\xF4\u017Eete zru\u0161i\u0165.",endDragVirtual:"Prebieha pres\xFAvanie.",insertAfter:e=>`Vlo\u017Ei\u0165 za polo\u017Eku ${e.itemText}`,insertBefore:e=>`Vlo\u017Ei\u0165 pred polo\u017Eku ${e.itemText}`,insertBetween:e=>`Vlo\u017Ei\u0165 medzi polo\u017Eky ${e.beforeItemText} a ${e.afterItemText}`},"sl-SI":{dragDescriptionKeyboard:"Pritisnite tipko Enter za za\u010Detek vle\u010Denja.",dragDescriptionKeyboardAlt:"Pritisnite tipki Alt + Enter za za\u010Detek vle\u010Denja.",dragDescriptionLongPress:"Pritisnite in zadr\u017Eite za za\u010Detek vle\u010Denja.",dragDescriptionTouch:"Dvotapnite za za\u010Detek vle\u010Denja.",dragDescriptionVirtual:"Kliknite za za\u010Detek vle\u010Denja.",dragItem:e=>`Povleci ${e.itemText}`,dragSelectedItems:(e,t)=>`Povlecite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbran element`,other:()=>`izbrane elemente (${t.number(e.count)})`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite tipko Enter, da povle\u010Dete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite tipki Alt + Enter, da povle\u010Dete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite in zadr\u017Eite, da povle\u010Dete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragStartedKeyboard:"Vle\u010Denje se je za\u010Delo. Pritisnite tipko Tab za pomik na mesto, kamor \u017Eelite spustiti elemente, in pritisnite tipko Enter, da jih spustite, ali tipko Escape, da prekli\u010Dete postopek.",dragStartedTouch:"Vle\u010Denje se je za\u010Delo. Pomaknite se na mesto, kamor \u017Eelite spustiti elemente, in dvotapnite, da jih spustite.",dragStartedVirtual:"Vle\u010Denje se je za\u010Delo. Pomaknite se na mesto, kamor \u017Eelite spustiti elemente, in kliknite ali pritisnite tipko Enter, da jih spustite.",dropCanceled:"Spust je preklican.",dropComplete:"Spust je kon\u010Dan.",dropDescriptionKeyboard:"Pritisnite tipko Enter, da spustite. Pritisnite tipko Escape, da prekli\u010Dete vle\u010Denje.",dropDescriptionTouch:"Dvotapnite, da spustite.",dropDescriptionVirtual:"Kliknite, da spustite.",dropIndicator:"indikator spusta",dropOnItem:e=>`Spusti na mesto ${e.itemText}`,dropOnRoot:"Spusti na mesto",endDragKeyboard:"Vle\u010Denje. Pritisnite tipko Enter za preklic vle\u010Denja.",endDragTouch:"Vle\u010Denje. Dvotapnite za preklic vle\u010Denja.",endDragVirtual:"Vle\u010Denje. Kliknite, da prekli\u010Dete vle\u010Denje.",insertAfter:e=>`Vstavi za ${e.itemText}`,insertBefore:e=>`Vstavi pred ${e.itemText}`,insertBetween:e=>`Vstavi med ${e.beforeItemText} in ${e.afterItemText}`},"sr-SP":{dragDescriptionKeyboard:"Pritisnite Enter da biste zapo\u010Deli prevla\u010Denje.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter da biste zapo\u010Deli prevla\u010Denje.",dragDescriptionLongPress:"Pritisnite dugo da biste zapo\u010Deli prevla\u010Denje.",dragDescriptionTouch:"Dvaput dodirnite da biste zapo\u010Deli prevla\u010Denje.",dragDescriptionVirtual:"Kliknite da biste zapo\u010Deli prevla\u010Denje.",dragItem:e=>`Prevucite ${e.itemText}`,dragSelectedItems:(e,t)=>`Prevucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabrane stavke`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite dugo da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragStartedKeyboard:"Prevla\u010Denje je zapo\u010Deto. Pritisnite Tab da biste oti\u0161li do cilja za otpu\u0161tanje, zatim pritisnite Enter za ispu\u0161tanje ili pritisnite Escape za otkazivanje.",dragStartedTouch:"Prevla\u010Denje je zapo\u010Deto. Idite do cilja za otpu\u0161tanje, a zatim dvaput dodirnite za otpu\u0161tanje.",dragStartedVirtual:"Prevla\u010Denje je zapo\u010Deto. Idite do cilja za otpu\u0161tanje, a zatim kliknite ili pritinite Enter za otpu\u0161tanje.",dropCanceled:"Otpu\u0161tanje je otkazano.",dropComplete:"Prevla\u010Denje je zavr\u0161eno.",dropDescriptionKeyboard:"Pritisnite Enter da biste otpustili. Pritisnite Escape da biste otkazali prevla\u010Denje.",dropDescriptionTouch:"Dvaput dodirnite za otpu\u0161tanje.",dropDescriptionVirtual:"Kliknite za otpu\u0161tanje.",dropIndicator:"Indikator otpu\u0161tanja",dropOnItem:e=>`Otpusti na ${e.itemText}`,dropOnRoot:"Otpusti na",endDragKeyboard:"Prevla\u010Denje u toku. Pritisnite Enter da biste otkazali prevla\u010Denje.",endDragTouch:"Prevla\u010Denje u toku. Dvaput dodirnite da biste otkazali prevla\u010Denje.",endDragVirtual:"Prevla\u010Denje u toku. Kliknite da biste otkazali prevla\u010Denje.",insertAfter:e=>`Umetnite posle ${e.itemText}`,insertBefore:e=>`Umetnite ispred ${e.itemText}`,insertBetween:e=>`Umetnite izme\u0111u ${e.beforeItemText} i ${e.afterItemText}`},"sv-SE":{dragDescriptionKeyboard:"Tryck p\xE5 enter f\xF6r att b\xF6rja dra.",dragDescriptionKeyboardAlt:"Tryck p\xE5 Alt + Retur f\xF6r att b\xF6rja dra.",dragDescriptionLongPress:"Tryck l\xE4nge f\xF6r att b\xF6rja dra.",dragDescriptionTouch:"Dubbeltryck f\xF6r att b\xF6rja dra.",dragDescriptionVirtual:"Klicka f\xF6r att b\xF6rja dra.",dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valt objekt`,other:()=>`${t.number(e.count)} valda objekt`})}`,dragSelectedKeyboard:(e,t)=>`Tryck p\xE5 Retur f\xF6r att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryck p\xE5 Alt + Retur f\xF6r att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedLongPress:(e,t)=>`Tryck l\xE4nge f\xF6r att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragStartedKeyboard:"B\xF6rja dra. Tryck p\xE5 tabb f\xF6r att navigera till m\xE5let, tryck p\xE5 enter f\xF6r att sl\xE4ppa eller p\xE5 escape f\xF6r att avbryta.",dragStartedTouch:"B\xF6rja dra. Navigera till ett m\xE5l och dubbeltryck f\xF6r att sl\xE4ppa.",dragStartedVirtual:"B\xF6rja dra. Navigera till ett m\xE5l och klicka eller tryck p\xE5 enter f\xF6r att sl\xE4ppa.",dropCanceled:"Sl\xE4pp\xE5tg\xE4rd avbr\xF6ts.",dropComplete:"Sl\xE4pp\xE5tg\xE4rd klar.",dropDescriptionKeyboard:"Tryck p\xE5 enter f\xF6r att sl\xE4ppa. Tryck p\xE5 escape f\xF6r att avbryta drag\xE5tg\xE4rd.",dropDescriptionTouch:"Dubbeltryck f\xF6r att sl\xE4ppa.",dropDescriptionVirtual:"Klicka f\xF6r att sl\xE4ppa.",dropIndicator:"sl\xE4ppindikator",dropOnItem:e=>`Sl\xE4pp p\xE5 ${e.itemText}`,dropOnRoot:"Sl\xE4pp p\xE5",endDragKeyboard:"Drar. Tryck p\xE5 enter f\xF6r att avbryta drag\xE5tg\xE4rd.",endDragTouch:"Drar. Dubbeltryck f\xF6r att avbryta drag\xE5tg\xE4rd.",endDragVirtual:"Drar. Klicka f\xF6r att avbryta drag\xE5tg\xE4rd.",insertAfter:e=>`Infoga efter ${e.itemText}`,insertBefore:e=>`Infoga f\xF6re ${e.itemText}`,insertBetween:e=>`Infoga mellan ${e.beforeItemText} och ${e.afterItemText}`},"tr-TR":{dragDescriptionKeyboard:"S\xFCr\xFCklemeyi ba\u015Flatmak i\xE7in Enter'a bas\u0131n.",dragDescriptionKeyboardAlt:"S\xFCr\xFCklemeyi ba\u015Flatmak i\xE7in Alt + Enter'a bas\u0131n.",dragDescriptionLongPress:"S\xFCr\xFCklemeye ba\u015Flamak i\xE7in uzun bas\u0131n.",dragDescriptionTouch:"S\xFCr\xFCklemeyi ba\u015Flatmak i\xE7in \xE7ift t\u0131klay\u0131n.",dragDescriptionVirtual:"S\xFCr\xFCklemeyi ba\u015Flatmak i\xE7in t\u0131klay\u0131n.",dragItem:e=>`${e.itemText}\u2019i s\xFCr\xFCkle`,dragSelectedItems:(e,t)=>`S\xFCr\xFCkle ${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xE7ili \xF6ge`,other:()=>`${t.number(e.count)} se\xE7ili \xF6ge`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xE7ilmi\u015F \xF6\u011Fe`,other:()=>`${t.number(e.count)} se\xE7ilmi\u015F \xF6\u011Fe`})} \xF6\u011Fesini s\xFCr\xFCklemek i\xE7in Enter'a bas\u0131n.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xE7ilmi\u015F \xF6\u011Fe`,other:()=>`${t.number(e.count)} se\xE7ilmi\u015F \xF6\u011Fe`})} \xF6\u011Fesini s\xFCr\xFCklemek i\xE7in Alt + Enter tu\u015Funa bas\u0131n.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} se\xE7ilmi\u015F \xF6\u011Fe`,other:()=>`${t.number(e.count)} se\xE7ilmi\u015F \xF6\u011Fe`})} \xF6\u011Fesini s\xFCr\xFCklemek i\xE7in uzun bas\u0131n.`,dragStartedKeyboard:"S\xFCr\xFCkleme ba\u015Flat\u0131ld\u0131. Bir b\u0131rakma hedefine gitmek i\xE7in Tab\u2019a bas\u0131n, ard\u0131ndan b\u0131rakmak i\xE7in Enter\u2019a bas\u0131n veya iptal etmek i\xE7in Escape\u2019e bas\u0131n.",dragStartedTouch:"S\xFCr\xFCkleme ba\u015Flat\u0131ld\u0131. Bir b\u0131rakma hedefine gidin, ard\u0131ndan b\u0131rakmak i\xE7in \xE7ift t\u0131klay\u0131n.",dragStartedVirtual:"S\xFCr\xFCkleme ba\u015Flat\u0131ld\u0131. Bir b\u0131rakma hedefine gidin, ard\u0131ndan b\u0131rakmak i\xE7in Enter\u2019a t\u0131klay\u0131n veya bas\u0131n.",dropCanceled:"B\u0131rakma iptal edildi.",dropComplete:"B\u0131rakma tamamland\u0131.",dropDescriptionKeyboard:"B\u0131rakmak i\xE7in Enter'a bas\u0131n. S\xFCr\xFCklemeyi iptal etmek i\xE7in Escape'e bas\u0131n.",dropDescriptionTouch:"B\u0131rakmak i\xE7in \xE7ift t\u0131klay\u0131n.",dropDescriptionVirtual:"B\u0131rakmak i\xE7in t\u0131klay\u0131n.",dropIndicator:"b\u0131rakma g\xF6stergesi",dropOnItem:e=>`${e.itemText} \xFCzerine b\u0131rak`,dropOnRoot:"B\u0131rak\u0131n",endDragKeyboard:"S\xFCr\xFCkleme. S\xFCr\xFCklemeyi iptal etmek i\xE7in Enter'a bas\u0131n.",endDragTouch:"S\xFCr\xFCkleme. S\xFCr\xFCklemeyi iptal etmek i\xE7in \xE7ift t\u0131klay\u0131n.",endDragVirtual:"S\xFCr\xFCkleme. S\xFCr\xFCklemeyi iptal etmek i\xE7in t\u0131klay\u0131n.",insertAfter:e=>`${e.itemText}\u2019den sonra gir`,insertBefore:e=>`${e.itemText}\u2019den \xF6nce gir`,insertBetween:e=>`${e.beforeItemText} ve ${e.afterItemText} aras\u0131na gir`},"uk-UA":{dragDescriptionKeyboard:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dragDescriptionKeyboardAlt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Alt + Enter, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dragDescriptionLongPress:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0456 \u0443\u0442\u0440\u0438\u043C\u0443\u0439\u0442\u0435, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dragDescriptionTouch:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0434\u0432\u0456\u0447\u0456, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dragDescriptionVirtual:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dragItem:e=>`\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 ${e.itemText}`,dragSelectedItems:(e,t)=>`\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0456\u0442\u044C ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0445 \u0435\u043B\u0435\u043C`})}`,dragSelectedKeyboard:(e,t)=>`\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0445 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438(-\u0456\u0432)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Alt + Enter, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0445 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438(-\u0456\u0432)`})}.`,dragSelectedLongPress:(e,t)=>`\u0423\u0442\u0440\u0438\u043C\u0443\u0439\u0442\u0435, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0445 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438(-\u0456\u0432)`})}.`,dragStartedKeyboard:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F \u043F\u043E\u0447\u0430\u043B\u043E\u0441\u044F. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Tab, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0439\u0442\u0438 \u0434\u043E \u0446\u0456\u043B\u0456 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F, \u043F\u043E\u0442\u0456\u043C \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438, \u0430\u0431\u043E Escape, \u0449\u043E\u0431 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438.",dragStartedTouch:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F \u043F\u043E\u0447\u0430\u043B\u043E\u0441\u044F. \u041F\u0435\u0440\u0435\u0439\u0434\u0456\u0442\u044C \u0434\u043E \u0446\u0456\u043B\u0456 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F, \u043F\u043E\u0442\u0456\u043C \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0434\u0432\u0456\u0447\u0456, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438.",dragStartedVirtual:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F \u043F\u043E\u0447\u0430\u043B\u043E\u0441\u044F. \u041F\u0435\u0440\u0435\u0439\u0434\u0456\u0442\u044C \u0434\u043E \u0446\u0456\u043B\u0456 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F, \u043F\u043E\u0442\u0456\u043C \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438.",dropCanceled:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F \u0441\u043A\u0430\u0441\u043E\u0432\u0430\u043D\u043E.",dropComplete:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E.",dropDescriptionKeyboard:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Escape, \u0449\u043E\u0431 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dropDescriptionTouch:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0434\u0432\u0456\u0447\u0456, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438.",dropDescriptionVirtual:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438.",dropIndicator:"\u0456\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F",dropOnItem:e=>`\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 \u043D\u0430 ${e.itemText}`,dropOnRoot:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 \u043D\u0430",endDragKeyboard:"\u0422\u0440\u0438\u0432\u0430\u0454 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",endDragTouch:"\u0422\u0440\u0438\u0432\u0430\u0454 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0434\u0432\u0456\u0447\u0456, \u0449\u043E\u0431 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",endDragVirtual:"\u0422\u0440\u0438\u0432\u0430\u0454 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",insertAfter:e=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043F\u0456\u0441\u043B\u044F ${e.itemText}`,insertBefore:e=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043F\u0435\u0440\u0435\u0434 ${e.itemText}`,insertBetween:e=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043C\u0456\u0436 ${e.beforeItemText} \u0456 ${e.afterItemText}`},"zh-CN":{dragDescriptionKeyboard:"\u6309 Enter \u5F00\u59CB\u62D6\u52A8\u3002",dragDescriptionKeyboardAlt:"\u6309 Alt + Enter \u5F00\u59CB\u62D6\u52A8\u3002",dragDescriptionLongPress:"\u957F\u6309\u4EE5\u5F00\u59CB\u62D6\u52A8\u3002",dragDescriptionTouch:"\u53CC\u51FB\u5F00\u59CB\u62D6\u52A8\u3002",dragDescriptionVirtual:"\u5355\u51FB\u5F00\u59CB\u62D6\u52A8\u3002",dragItem:e=>`\u62D6\u52A8 ${e.itemText}`,dragSelectedItems:(e,t)=>`\u62D6\u52A8 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u9009\u4E2D\u9879\u76EE`,other:()=>`${t.number(e.count)} \u9009\u4E2D\u9879\u76EE`})}`,dragSelectedKeyboard:(e,t)=>`\u6309 Enter \u4EE5\u62D6\u52A8 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u4E2A\u9009\u5B9A\u9879`,other:()=>`${t.number(e.count)} \u4E2A\u9009\u5B9A\u9879`})}\u3002`,dragSelectedKeyboardAlt:(e,t)=>`\u6309 Alt + Enter \u4EE5\u62D6\u52A8 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u4E2A\u9009\u5B9A\u9879`,other:()=>`${t.number(e.count)} \u4E2A\u9009\u5B9A\u9879`})}\u3002`,dragSelectedLongPress:(e,t)=>`\u957F\u6309\u4EE5\u62D6\u52A8 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u4E2A\u9009\u5B9A\u9879`,other:()=>`${t.number(e.count)} \u4E2A\u9009\u5B9A\u9879`})}\u3002`,dragStartedKeyboard:"\u5DF2\u5F00\u59CB\u62D6\u52A8\u3002\u6309 Tab \u5BFC\u822A\u5230\u653E\u7F6E\u76EE\u6807\uFF0C\u7136\u540E\u6309 Enter \u653E\u7F6E\u6216\u6309 Escape \u53D6\u6D88\u3002",dragStartedTouch:"\u5DF2\u5F00\u59CB\u62D6\u52A8\u3002\u5BFC\u822A\u5230\u653E\u7F6E\u76EE\u6807\uFF0C\u7136\u540E\u53CC\u51FB\u653E\u7F6E\u3002",dragStartedVirtual:"\u5DF2\u5F00\u59CB\u62D6\u52A8\u3002\u5BFC\u822A\u5230\u653E\u7F6E\u76EE\u6807\uFF0C\u7136\u540E\u5355\u51FB\u6216\u6309 Enter \u653E\u7F6E\u3002",dropCanceled:"\u653E\u7F6E\u5DF2\u53D6\u6D88\u3002",dropComplete:"\u653E\u7F6E\u5DF2\u5B8C\u6210\u3002",dropDescriptionKeyboard:"\u6309 Enter \u653E\u7F6E\u3002\u6309 Escape \u53D6\u6D88\u62D6\u52A8\u3002",dropDescriptionTouch:"\u53CC\u51FB\u653E\u7F6E\u3002",dropDescriptionVirtual:"\u5355\u51FB\u653E\u7F6E\u3002",dropIndicator:"\u653E\u7F6E\u6807\u8BB0",dropOnItem:e=>`\u653E\u7F6E\u4E8E ${e.itemText}`,dropOnRoot:"\u653E\u7F6E\u4E8E",endDragKeyboard:"\u6B63\u5728\u62D6\u52A8\u3002\u6309 Enter \u53D6\u6D88\u62D6\u52A8\u3002",endDragTouch:"\u6B63\u5728\u62D6\u52A8\u3002\u53CC\u51FB\u53D6\u6D88\u62D6\u52A8\u3002",endDragVirtual:"\u6B63\u5728\u62D6\u52A8\u3002\u5355\u51FB\u53D6\u6D88\u62D6\u52A8\u3002",insertAfter:e=>`\u63D2\u5165\u5230 ${e.itemText} \u4E4B\u540E`,insertBefore:e=>`\u63D2\u5165\u5230 ${e.itemText} \u4E4B\u524D`,insertBetween:e=>`\u63D2\u5165\u5230 ${e.beforeItemText} \u548C ${e.afterItemText} \u4E4B\u95F4`},"zh-TW":{dragDescriptionKeyboard:"\u6309 Enter \u9375\u4EE5\u958B\u59CB\u62D6\u66F3\u3002",dragDescriptionKeyboardAlt:"\u6309 Alt+Enter \u9375\u4EE5\u958B\u59CB\u62D6\u66F3\u3002",dragDescriptionLongPress:"\u9577\u6309\u4EE5\u958B\u59CB\u62D6\u66F3\u3002",dragDescriptionTouch:"\u8F15\u9EDE\u5169\u4E0B\u4EE5\u958B\u59CB\u62D6\u66F3\u3002",dragDescriptionVirtual:"\u6309\u4E00\u4E0B\u6ED1\u9F20\u4EE5\u958B\u59CB\u62D6\u66F3\u3002",dragItem:e=>`\u62D6\u66F3\u300C${e.itemText}\u300D`,dragSelectedItems:(e,t)=>`\u62D6\u66F3 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`,other:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`})}`,dragSelectedKeyboard:(e,t)=>`\u6309 Enter \u9375\u4EE5\u62D6\u66F3 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`,other:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`})}\u3002`,dragSelectedKeyboardAlt:(e,t)=>`\u6309 Alt+Enter \u9375\u4EE5\u62D6\u66F3 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`,other:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`})}\u3002`,dragSelectedLongPress:(e,t)=>`\u9577\u6309\u4EE5\u62D6\u66F3 ${t.plural(e.count,{one:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`,other:()=>`${t.number(e.count)} \u500B\u9078\u5B9A\u9805\u76EE`})}\u3002`,dragStartedKeyboard:"\u5DF2\u958B\u59CB\u62D6\u66F3\u3002\u6309 Tab \u9375\u4EE5\u700F\u89BD\u81F3\u653E\u7F6E\u76EE\u6A19\uFF0C\u7136\u5F8C\u6309 Enter \u9375\u4EE5\u653E\u7F6E\uFF0C\u6216\u6309 Escape \u9375\u4EE5\u53D6\u6D88\u3002",dragStartedTouch:"\u5DF2\u958B\u59CB\u62D6\u66F3\u3002\u700F\u89BD\u81F3\u653E\u7F6E\u76EE\u6A19\uFF0C\u7136\u5F8C\u8F15\u9EDE\u5169\u4E0B\u4EE5\u653E\u7F6E\u3002",dragStartedVirtual:"\u5DF2\u958B\u59CB\u62D6\u66F3\u3002\u700F\u89BD\u81F3\u653E\u7F6E\u76EE\u6A19\uFF0C\u7136\u5F8C\u6309\u4E00\u4E0B\u6ED1\u9F20\u6216\u6309 Enter \u9375\u4EE5\u653E\u7F6E\u3002",dropCanceled:"\u653E\u7F6E\u5DF2\u53D6\u6D88\u3002",dropComplete:"\u653E\u7F6E\u5DF2\u5B8C\u6210\u3002",dropDescriptionKeyboard:"\u6309 Enter \u9375\u4EE5\u653E\u7F6E\u3002\u6309 Escape \u9375\u4EE5\u53D6\u6D88\u62D6\u66F3\u3002",dropDescriptionTouch:"\u8F15\u9EDE\u5169\u4E0B\u4EE5\u653E\u7F6E\u3002",dropDescriptionVirtual:"\u6309\u4E00\u4E0B\u6ED1\u9F20\u4EE5\u653E\u7F6E\u3002",dropIndicator:"\u653E\u7F6E\u6307\u793A\u5668",dropOnItem:e=>`\u653E\u7F6E\u5728\u300C${e.itemText}\u300D\u4E0A`,dropOnRoot:"\u653E\u7F6E\u5728",endDragKeyboard:"\u62D6\u66F3\u4E2D\u3002\u6309 Enter \u9375\u4EE5\u53D6\u6D88\u62D6\u66F3\u3002",endDragTouch:"\u62D6\u66F3\u4E2D\u3002\u8F15\u9EDE\u5169\u4E0B\u4EE5\u53D6\u6D88\u62D6\u66F3\u3002",endDragVirtual:"\u62D6\u66F3\u4E2D\u3002\u6309\u4E00\u4E0B\u6ED1\u9F20\u4EE5\u53D6\u6D88\u62D6\u66F3\u3002",insertAfter:e=>`\u63D2\u5165\u81F3\u300C${e.itemText}\u300D\u4E4B\u5F8C`,insertBefore:e=>`\u63D2\u5165\u81F3\u300C${e.itemText}\u300D\u4E4B\u524D`,insertBetween:e=>`\u63D2\u5165\u81F3\u300C${e.beforeItemText}\u300D\u548C\u300C${e.afterItemText}\u300D\u4E4B\u9593`}};var oU={keyboard:"dropDescriptionKeyboard",touch:"dropDescriptionTouch",virtual:"dropDescriptionVirtual"};function Df(e){let t=ve(bi,"@react-aria/dnd"),r=Wl(),o=Xl();return {dropProps:{...Tt(o?t.format(oU[r]):"",e),onClick:()=>{}}}}var aU=800;function za(e){let{hasDropButton:t,isDisabled:r}=e,[o,n]=useState(false),i=useRef({x:0,y:0,dragOverElements:new Set,dropEffect:"none",allowedOperations:7,dropActivateTimer:void 0}).current,a=h=>{if(n(true),typeof e.onDropEnter=="function"){let v=h.currentTarget.getBoundingClientRect();e.onDropEnter({type:"dropenter",x:h.clientX-v.x,y:h.clientY-v.y});}},l=h=>{if(n(false),typeof e.onDropExit=="function"){let v=h.currentTarget.getBoundingClientRect();e.onDropExit({type:"dropexit",x:h.clientX-v.x,y:h.clientY-v.y});}},s=h=>{h.preventDefault(),h.stopPropagation();let v=Zz(h);if(h.clientX===i.x&&h.clientY===i.y&&v===i.allowedOperations){h.dataTransfer.dropEffect=i.dropEffect;return}i.x=h.clientX,i.y=h.clientY;let C=i.dropEffect;if(v!==i.allowedOperations){let T=Hx(v),P=T[0];if(typeof e.getDropOperation=="function"){let k=new ka(h.dataTransfer);P=kf(v,e.getDropOperation(k,T));}i.dropEffect=gf[P]||"none";}if(typeof e.getDropOperationForPoint=="function"){let T=new ka(h.dataTransfer),P=h.currentTarget.getBoundingClientRect(),k=kf(v,e.getDropOperationForPoint(T,Hx(v),i.x-P.x,i.y-P.y));i.dropEffect=gf[k]||"none";}if(i.allowedOperations=v,h.dataTransfer.dropEffect=i.dropEffect,i.dropEffect==="none"&&C!=="none"?l(h):i.dropEffect!=="none"&&C==="none"&&a(h),typeof e.onDropMove=="function"&&i.dropEffect!=="none"){let T=h.currentTarget.getBoundingClientRect();e.onDropMove({type:"dropmove",x:i.x-T.x,y:i.y-T.y});}if(clearTimeout(i.dropActivateTimer),e.onDropActivate&&typeof e.onDropActivate=="function"&&i.dropEffect!=="none"){let T=e.onDropActivate,P=h.currentTarget.getBoundingClientRect();i.dropActivateTimer=setTimeout(()=>{T({type:"dropactivate",x:i.x-P.x,y:i.y-P.y});},aU);}},u=h=>{if(h.preventDefault(),h.stopPropagation(),i.dragOverElements.add($(h)),i.dragOverElements.size>1)return;let v=Zz(h),C=Hx(v),T=C[0];if(typeof e.getDropOperation=="function"){let P=new ka(h.dataTransfer);T=kf(v,e.getDropOperation(P,C));}if(typeof e.getDropOperationForPoint=="function"){let P=new ka(h.dataTransfer),k=h.currentTarget.getBoundingClientRect();T=kf(v,e.getDropOperationForPoint(P,C,h.clientX-k.x,h.clientY-k.y));}i.x=h.clientX,i.y=h.clientY,i.allowedOperations=v,i.dropEffect=gf[T]||"none",h.dataTransfer.dropEffect=i.dropEffect,T!=="cancel"&&a(h);},c=h=>{h.preventDefault(),h.stopPropagation();let v=$(h);if(i.dragOverElements.delete(v),v===h.currentTarget)for(let C of i.dragOverElements)Y(h.currentTarget,C)||i.dragOverElements.delete(C);i.dragOverElements.size>0||(i.dropEffect!=="none"&&l(h),clearTimeout(i.dropActivateTimer));},p=h=>{if(h.preventDefault(),h.stopPropagation(),ql(i.dropEffect),typeof e.onDrop=="function"){let C=Da[i.dropEffect],T=vf(h.dataTransfer),P=h.currentTarget.getBoundingClientRect(),k={type:"drop",x:h.clientX-P.x,y:h.clientY-P.y,items:T,dropOperation:C};e.onDrop(k);}let v={...bt};i.dragOverElements.clear(),l(h),clearTimeout(i.dropActivateTimer),v.draggingCollectionRef==null?ql(void 0):Wz(v);},d=Pe(h=>{typeof e.onDropEnter=="function"&&e.onDropEnter(h);}),m=Pe(h=>{typeof e.onDropExit=="function"&&e.onDropExit(h);}),f=Pe(h=>{typeof e.onDropActivate=="function"&&e.onDropActivate(h);}),y=Pe(h=>{typeof e.onDrop=="function"&&e.onDrop(h);}),g=Pe((h,v)=>e.getDropOperation?e.getDropOperation(h,v):v[0]),{ref:b}=e;te(()=>{if(!(r||!b.current))return Sf({element:b.current,getDropOperation:g,onDropEnter(h){n(true),d(h);},onDropExit(h){n(false),m(h);},onDrop:y,onDropActivate:f})},[r,b]);let{dropProps:x}=Df(b);return r?{dropProps:{},dropButtonProps:{isDisabled:true},isDropTarget:false}:{dropProps:{...!t&&x,onDragEnter:u,onDragOver:s,onDragLeave:c,onDrop:p},dropButtonProps:{...t&&x},isDropTarget:o}}function Zz(e){let t=Lx[e.dataTransfer.effectAllowed];Tf&&(t&=Tf);let r=0;return ht()?(e.altKey&&(r|=2),e.ctrlKey&&!$i()&&(r|=4),e.metaKey&&(r|=1)):(e.altKey&&(r|=4),e.shiftKey&&(r|=1),e.ctrlKey&&(r|=2)),r?t&r:t}function Hx(e){let t=[];return e&1&&t.push("move"),e&2&&t.push("copy"),e&4&&t.push("link"),t}function kf(e,t){let r=Sa[t];return e&r?t:"cancel"}var $x=new Map;function Zl(e,t,r){let o=$x.get(e);o||(o=new Map,$x.set(e,o));let n=o.get(t);if(!n){let i=new Set,a=l=>{for(let s of i)s(l);};n={listener:a,handlers:i},o.set(t,n),e.addEventListener(t,a);}return n.handlers.add(r),()=>{n.handlers.delete(r),n.handlers.size===0&&(e.removeEventListener(t,n.listener),o.delete(t),o.size===0&&$x.delete(e));}}function Lc(e){let{isDisabled:t}=e,r=useRef(false),[o,n]=useState(null),{focusProps:i}=Zt({onFocus:d=>{n(G($(d)));},onFocusChange:d=>{r.current=d;}}),a=Pe(d=>{r.current&&e.getItems&&d.preventDefault();}),l=Pe(d=>{!r.current||!e.getItems||(d.preventDefault(),d.clipboardData&&(Ic(d.clipboardData,e.getItems({action:"copy"})),e.onCopy?.()));}),s=Pe(d=>{r.current&&e.onCut&&e.getItems&&d.preventDefault();}),u=Pe(d=>{!r.current||!e.onCut||!e.getItems||(d.preventDefault(),d.clipboardData&&(Ic(d.clipboardData,e.getItems({action:"cut"})),e.onCut()));}),c=Pe(d=>{r.current&&e.onPaste&&d.preventDefault();}),p=Pe(d=>{if(!(!r.current||!e.onPaste)&&(d.preventDefault(),d.clipboardData)){let m=vf(d.clipboardData);e.onPaste(m);}});return useEffect(()=>{if(!(t||!o))return We(Zl(o,"beforecopy",a),Zl(o,"copy",l),Zl(o,"beforecut",s),Zl(o,"cut",u),Zl(o,"beforepaste",c),Zl(o,"paste",p))},[t,o]),{clipboardProps:i}}var Jl=forwardRef(function(t,r){let{onSelect:o,acceptedFileTypes:n,allowsMultiple:i,defaultCamera:a,children:l,acceptDirectory:s,...u}=t,c=ce(r),p=re(u,{global:true});return jsxs(Fragment,{children:[jsx(Ir,{onPress:()=>{c.current?.value&&(c.current.value=""),c.current?.click();},children:l}),jsx(oE,{...p,className:"",type:"file",ref:c,style:{display:"none"},accept:n?.toString(),onChange:d=>o?.($(d).files),capture:a,multiple:i,webkitdirectory:s?"":void 0})]})});var Ac=new WeakMap;function Oc(e,t){let{id:r}=Ac.get(e)??{};if(!r)throw new Error("Unknown list");return `${r}-${mU(t)}`}function mU(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}var Ql={"ar-AE":{deselectedItem:e=>`${e.item} \u063A\u064A\u0631 \u0627\u0644\u0645\u062D\u062F\u062F`,longPressToSelect:"\u0627\u0636\u063A\u0637 \u0645\u0637\u0648\u0644\u064B\u0627 \u0644\u0644\u062F\u062E\u0648\u0644 \u0625\u0644\u0649 \u0648\u0636\u0639 \u0627\u0644\u062A\u062D\u062F\u064A\u062F.",select:"\u062A\u062D\u062F\u064A\u062F",selectedAll:"\u062C\u0645\u064A\u0639 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062D\u062F\u062F\u0629.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u0644\u0645 \u064A\u062A\u0645 \u062A\u062D\u062F\u064A\u062F \u0639\u0646\u0627\u0635\u0631",one:()=>`${t.number(e.count)} \u0639\u0646\u0635\u0631 \u0645\u062D\u062F\u062F`,other:()=>`${t.number(e.count)} \u0639\u0646\u0635\u0631 \u0645\u062D\u062F\u062F`})}.`,selectedItem:e=>`${e.item} \u0627\u0644\u0645\u062D\u062F\u062F`},"bg-BG":{deselectedItem:e=>`${e.item} \u043D\u0435 \u0435 \u0438\u0437\u0431\u0440\u0430\u043D.`,longPressToSelect:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u0438 \u0437\u0430\u0434\u0440\u044A\u0436\u0442\u0435 \u0437\u0430 \u0434\u0430 \u0432\u043B\u0435\u0437\u0435\u0442\u0435 \u0432 \u0438\u0437\u0431\u0438\u0440\u0430\u0442\u0435\u043B\u0435\u043D \u0440\u0435\u0436\u0438\u043C.",select:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435",selectedAll:"\u0412\u0441\u0438\u0447\u043A\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438 \u0441\u0430 \u0438\u0437\u0431\u0440\u0430\u043D\u0438.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u041D\u044F\u043C\u0430 \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438",one:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${t.number(e.count)} \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438`})}.`,selectedItem:e=>`${e.item} \u0438\u0437\u0431\u0440\u0430\u043D.`},"cs-CZ":{deselectedItem:e=>`Polo\u017Eka ${e.item} nen\xED vybr\xE1na.`,longPressToSelect:"Dlouh\xFDm stisknut\xEDm p\u0159ejdete do re\u017Eimu v\xFDb\u011Bru.",select:"Vybrat",selectedAll:"Vybr\xE1ny v\u0161echny polo\u017Eky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybr\xE1ny \u017E\xE1dn\xE9 polo\u017Eky",one:()=>`Vybr\xE1na ${t.number(e.count)} polo\u017Eka`,other:()=>`Vybr\xE1no ${t.number(e.count)} polo\u017Eek`})}.`,selectedItem:e=>`Vybr\xE1na polo\u017Eka ${e.item}.`},"da-DK":{deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"V\xE6lg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`},"de-DE":{deselectedItem:e=>`${e.item} nicht ausgew\xE4hlt.`,longPressToSelect:"Gedr\xFCckt halten, um Auswahlmodus zu \xF6ffnen.",select:"Ausw\xE4hlen",selectedAll:"Alle Elemente ausgew\xE4hlt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgew\xE4hlt",one:()=>`${t.number(e.count)} Element ausgew\xE4hlt`,other:()=>`${t.number(e.count)} Elemente ausgew\xE4hlt`})}.`,selectedItem:e=>`${e.item} ausgew\xE4hlt.`},"el-GR":{deselectedItem:e=>`\u0394\u03B5\u03BD \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 \u03C4\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF ${e.item}.`,longPressToSelect:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BC\u03C0\u03B5\u03AF\u03C4\u03B5 \u03C3\u03B5 \u03BB\u03B5\u03B9\u03C4\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE\u03C2.",select:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE",selectedAll:"\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B1\u03BD \u03CC\u03BB\u03B1 \u03C4\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u0394\u03B5\u03BD \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B1\u03BD \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",one:()=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 ${t.number(e.count)} \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF`,other:()=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B1\u03BD ${t.number(e.count)} \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1`})}.`,selectedItem:e=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 \u03C4\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF ${e.item}.`},"en-US":{deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."},"es-ES":{deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selecci\xF3n.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ning\xFAn elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`},"et-EE":{deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikure\u017Eiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"K\xF5ik \xFCksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\xDCksusi pole valitud",one:()=>`${t.number(e.count)} \xFCksus valitud`,other:()=>`${t.number(e.count)} \xFCksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`},"fi-FI":{deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitk\xE4\xE4n.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yht\xE4\xE4n kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`},"fr-FR":{deselectedItem:e=>`${e.item} non s\xE9lectionn\xE9.`,longPressToSelect:"Appuyez de mani\xE8re prolong\xE9e pour passer en mode de s\xE9lection.",select:"S\xE9lectionner",selectedAll:"Tous les \xE9l\xE9ments s\xE9lectionn\xE9s.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun \xE9l\xE9ment s\xE9lectionn\xE9",one:()=>`${t.number(e.count)} \xE9l\xE9ment s\xE9lectionn\xE9`,other:()=>`${t.number(e.count)} \xE9l\xE9ments s\xE9lectionn\xE9s`})}.`,selectedItem:e=>`${e.item} s\xE9lectionn\xE9.`},"he-IL":{deselectedItem:e=>`${e.item} \u05DC\u05D0 \u05E0\u05D1\u05D7\u05E8.`,longPressToSelect:"\u05D4\u05E7\u05E9\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05DC\u05DB\u05E0\u05D9\u05E1\u05D4 \u05DC\u05DE\u05E6\u05D1 \u05D1\u05D7\u05D9\u05E8\u05D4.",select:"\u05D1\u05D7\u05E8",selectedAll:"\u05DB\u05DC \u05D4\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E0\u05D1\u05D7\u05E8\u05D5.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u05DC\u05D0 \u05E0\u05D1\u05D7\u05E8\u05D5 \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",one:()=>`\u05E4\u05E8\u05D9\u05D8 ${t.number(e.count)} \u05E0\u05D1\u05D7\u05E8`,other:()=>`${t.number(e.count)} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E0\u05D1\u05D7\u05E8\u05D5`})}.`,selectedItem:e=>`${e.item} \u05E0\u05D1\u05D7\u05E8.`},"hr-HR":{deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u na\u010Din odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`},"hu-HU":{deselectedItem:e=>`${e.item} nincs kijel\xF6lve.`,longPressToSelect:"Nyomja hosszan a kijel\xF6l\xE9shez.",select:"Kijel\xF6l\xE9s",selectedAll:"Az \xF6sszes elem kijel\xF6lve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijel\xF6lve",one:()=>`${t.number(e.count)} elem kijel\xF6lve`,other:()=>`${t.number(e.count)} elem kijel\xF6lve`})}.`,selectedItem:e=>`${e.item} kijel\xF6lve.`},"it-IT":{deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalit\xE0 di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`},"ja-JP":{deselectedItem:e=>`${e.item} \u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,longPressToSelect:"\u9577\u62BC\u3057\u3057\u3066\u9078\u629E\u30E2\u30FC\u30C9\u3092\u958B\u304D\u307E\u3059\u3002",select:"\u9078\u629E",selectedAll:"\u3059\u3079\u3066\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F\u3002",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u9805\u76EE\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093",one:()=>`${t.number(e.count)} \u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F`,other:()=>`${t.number(e.count)} \u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F`})}\u3002`,selectedItem:e=>`${e.item} \u3092\u9078\u629E\u3057\u307E\u3057\u305F\u3002`},"ko-KR":{deselectedItem:e=>`${e.item}\uC774(\uAC00) \uC120\uD0DD\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.`,longPressToSelect:"\uC120\uD0DD \uBAA8\uB4DC\uB85C \uB4E4\uC5B4\uAC00\uB824\uBA74 \uAE38\uAC8C \uB204\uB974\uC2ED\uC2DC\uC624.",select:"\uC120\uD0DD",selectedAll:"\uBAA8\uB4E0 \uD56D\uBAA9\uC774 \uC120\uD0DD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\uC120\uD0DD\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",one:()=>`${t.number(e.count)}\uAC1C \uD56D\uBAA9\uC774 \uC120\uD0DD\uB418\uC5C8\uC2B5\uB2C8\uB2E4`,other:()=>`${t.number(e.count)}\uAC1C \uD56D\uBAA9\uC774 \uC120\uD0DD\uB418\uC5C8\uC2B5\uB2C8\uB2E4`})}.`,selectedItem:e=>`${e.item}\uC774(\uAC00) \uC120\uD0DD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.`},"lt-LT":{deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Nor\u0117dami \u012Fjungti pasirinkimo re\u017Eim\u0105, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas n\u0117 vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta element\u0173: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`},"lv-LV":{deselectedItem:e=>`Vienums ${e.item} nav atlas\u012Bts.`,longPressToSelect:"Ilgi turiet nospiestu. lai iesl\u0113gtu atlases re\u017E\u012Bmu.",select:"Atlas\u012Bt",selectedAll:"Atlas\u012Bti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlas\u012Bts neviens vienums",one:()=>`Atlas\u012Bto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlas\u012Bto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlas\u012Bts vienums ${e.item}.`},"nb-NO":{deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for \xE5 g\xE5 inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`},"nl-NL":{deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`},"pl-PL":{deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naci\u015Bnij i przytrzymaj, aby wej\u015B\u0107 do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono \u017Cadnych element\xF3w",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych element\xF3w`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`},"pt-BR":{deselectedItem:e=>`${e.item} n\xE3o selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de sele\xE7\xE3o.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`},"pt-PT":{deselectedItem:e=>`${e.item} n\xE3o selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de sele\xE7\xE3o.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`},"ro-RO":{deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Ap\u0103sa\u021Bi lung pentru a intra \xEEn modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`},"ru-RU":{deselectedItem:e=>`${e.item} \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043E.`,longPressToSelect:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0434\u043B\u044F \u0432\u0445\u043E\u0434\u0430 \u0432 \u0440\u0435\u0436\u0438\u043C \u0432\u044B\u0431\u043E\u0440\u0430.",select:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",selectedAll:"\u0412\u044B\u0431\u0440\u0430\u043D\u044B \u0432\u0441\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u041D\u0435\u0442 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432",one:()=>`${t.number(e.count)} \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0432\u044B\u0431\u0440\u0430\u043D`,other:()=>`${t.number(e.count)} \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u0432\u044B\u0431\u0440\u0430\u043D\u043E`})}.`,selectedItem:e=>`${e.item} \u0432\u044B\u0431\u0440\u0430\u043D\u043E.`},"sk-SK":{deselectedItem:e=>`Nevybrat\xE9 polo\u017Eky: ${e.item}.`,longPressToSelect:"Dlh\u0161\xEDm stla\u010Den\xEDm prejdite do re\u017Eimu v\xFDberu.",select:"Vybra\u0165",selectedAll:"V\u0161etky vybrat\xE9 polo\u017Eky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u017Diadne vybrat\xE9 polo\u017Eky",one:()=>`${t.number(e.count)} vybrat\xE1 polo\u017Eka`,other:()=>`Po\u010Det vybrat\xFDch polo\u017Eiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybrat\xE9 polo\u017Eky: ${e.item}.`},"sl-SI":{deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni na\u010Din pritisnite in dlje \u010Dasa dr\u017Eite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`},"sr-SP":{deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u re\u017Eim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`},"sv-SE":{deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck l\xE4nge n\xE4r du vill \xF6ppna v\xE4ljarl\xE4ge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`},"tr-TR":{deselectedItem:e=>`${e.item} se\xE7ilmedi.`,longPressToSelect:"Se\xE7im moduna girmek i\xE7in uzun bas\u0131n.",select:"Se\xE7",selectedAll:"T\xFCm \xF6geler se\xE7ildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hi\xE7bir \xF6ge se\xE7ilmedi",one:()=>`${t.number(e.count)} \xF6ge se\xE7ildi`,other:()=>`${t.number(e.count)} \xF6ge se\xE7ildi`})}.`,selectedItem:e=>`${e.item} se\xE7ildi.`},"uk-UA":{deselectedItem:e=>`${e.item} \u043D\u0435 \u0432\u0438\u0431\u0440\u0430\u043D\u043E.`,longPressToSelect:"\u0412\u0438\u043A\u043E\u043D\u0430\u0439\u0442\u0435 \u0434\u043E\u0432\u0433\u0435 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u043D\u043D\u044F, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0435\u0436\u0438\u043C \u0432\u0438\u0431\u043E\u0440\u0443.",select:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438",selectedAll:"\u0423\u0441\u0456 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438 \u0432\u0438\u0431\u0440\u0430\u043D\u043E.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u0416\u043E\u0434\u043D\u0438\u0445 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432 \u043D\u0435 \u0432\u0438\u0431\u0440\u0430\u043D\u043E",one:()=>`${t.number(e.count)} \u0435\u043B\u0435\u043C\u0435\u043D\u0442 \u0432\u0438\u0431\u0440\u0430\u043D\u043E`,other:()=>`\u0412\u0438\u0431\u0440\u0430\u043D\u043E \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} \u0432\u0438\u0431\u0440\u0430\u043D\u043E.`},"zh-CN":{deselectedItem:e=>`\u672A\u9009\u62E9 ${e.item}\u3002`,longPressToSelect:"\u957F\u6309\u4EE5\u8FDB\u5165\u9009\u62E9\u6A21\u5F0F\u3002",select:"\u9009\u62E9",selectedAll:"\u5DF2\u9009\u62E9\u6240\u6709\u9879\u76EE\u3002",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u672A\u9009\u62E9\u9879\u76EE",one:()=>`\u5DF2\u9009\u62E9 ${t.number(e.count)} \u4E2A\u9879\u76EE`,other:()=>`\u5DF2\u9009\u62E9 ${t.number(e.count)} \u4E2A\u9879\u76EE`})}\u3002`,selectedItem:e=>`\u5DF2\u9009\u62E9 ${e.item}\u3002`},"zh-TW":{deselectedItem:e=>`\u672A\u9078\u53D6\u300C${e.item}\u300D\u3002`,longPressToSelect:"\u9577\u6309\u4EE5\u9032\u5165\u9078\u64C7\u6A21\u5F0F\u3002",select:"\u9078\u53D6",selectedAll:"\u5DF2\u9078\u53D6\u6240\u6709\u9805\u76EE\u3002",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"\u672A\u9078\u53D6\u4EFB\u4F55\u9805\u76EE",one:()=>`\u5DF2\u9078\u53D6 ${t.number(e.count)} \u500B\u9805\u76EE`,other:()=>`\u5DF2\u9078\u53D6 ${t.number(e.count)} \u500B\u9805\u76EE`})}\u3002`,selectedItem:e=>`\u5DF2\u9078\u53D6\u300C${e.item}\u300D\u3002`}};function Ef(e,t){let{getRowText:r=l=>t.collection.getTextValue?.(l)??t.collection.getItem(l)?.textValue}=e,o=ve(Ql,"@react-aria/grid"),n=t.selectionManager.rawSelection,i=useRef(n),a=useCallback(()=>{if(!t.selectionManager.isFocused||n===i.current){i.current=n;return}let l=Qz(n,i.current),s=Qz(i.current,n),u=t.selectionManager.selectionBehavior==="replace",c=[];if(t.selectionManager.selectedKeys.size===1&&u){let p=t.selectionManager.selectedKeys.keys().next().value;if(p!=null&&t.collection.getItem(p)){let d=r(p);d&&c.push(o.format("selectedItem",{item:d}));}}else if(l.size===1&&s.size===0){let p=l.keys().next().value;if(p!=null){let d=r(p);d&&c.push(o.format("selectedItem",{item:d}));}}else if(s.size===1&&l.size===0){let p=s.keys().next().value;if(p!=null&&t.collection.getItem(p)){let d=r(p);d&&c.push(o.format("deselectedItem",{item:d}));}}t.selectionManager.selectionMode==="multiple"&&(c.length===0||n==="all"||n.size>1||i.current==="all"||i.current?.size>1)&&c.push(n==="all"?o.format("selectedAll"):o.format("selectedCount",{count:n.size})),c.length>0&&ot(c.join(" ")),i.current=n;},[n,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,r,o]);zn(()=>{if(t.selectionManager.isFocused)a();else {let l=requestAnimationFrame(a);return ()=>cancelAnimationFrame(l)}},[n,t.selectionManager.isFocused]);}function Qz(e,t){let r=new Set;if(e==="all"||t==="all")return r;for(let o of e.keys())t.has(o)||r.add(o);return r}function es(e,t){let r=t?.isDisabled,[o,n]=useState(false);return te(()=>{if(e?.current&&!r){let i=()=>{if(e.current){let l=et(e.current,{tabbable:true});n(!!l.nextNode());}};i();let a=new MutationObserver(i);return a.observe(e.current,{subtree:true,childList:true,attributes:true,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect();}}}),r?false:o}function zf(e){let t=ve(Ql,"@react-aria/grid"),r=Yt(),o=(r==="pointer"||r==="virtual"||r==null)&&typeof window<"u"&&"ontouchstart"in window,n=useMemo(()=>{let a=e.selectionManager.selectionMode,l=e.selectionManager.selectionBehavior,s;return o&&(s=t.format("longPressToSelect")),l==="replace"&&a!=="none"&&e.hasItemActions?s:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,o]);return Tt(n)}function wa(e,t,r){let{isVirtualized:o,keyboardDelegate:n,layoutDelegate:i,onAction:a,disallowTypeAhead:l,linkBehavior:s="action",keyboardNavigationBehavior:u="arrow",escapeKeyBehavior:c="clearSelection",shouldSelectOnPressUp:p}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:d}=pi({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:r,keyboardDelegate:n,layoutDelegate:i,isVirtualized:o,selectOnFocus:t.selectionManager.selectionBehavior==="replace",shouldFocusWrap:e.shouldFocusWrap,linkBehavior:s,disallowTypeAhead:l,autoFocus:e.autoFocus,escapeKeyBehavior:c,UNSTABLE_focusOnEntry:e.UNSTABLE_focusOnEntry}),m=ee(e.id);Ac.set(t,{id:m,onAction:a,linkBehavior:s,keyboardNavigationBehavior:u,shouldSelectOnPressUp:p});let f=zf({selectionManager:t.selectionManager,hasItemActions:!!a}),y=es(r,{isDisabled:t.collection.size!==0}),g=re(e,{labelable:true}),b=A(g,{role:"grid",id:m,"aria-multiselectable":t.selectionManager.selectionMode==="multiple"?"true":void 0},t.collection.size===0?{tabIndex:y?-1:0}:d,f);return o&&(b["aria-rowcount"]=t.collection.size,b["aria-colcount"]=1),Ef({},t),{gridProps:b}}var ew={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Ra(e,t,r){let{node:o,isVirtualized:n}=e,{direction:i}=Q(),{onAction:a,linkBehavior:l,keyboardNavigationBehavior:s,shouldSelectOnPressUp:u}=Ac.get(t),c=vt(),p=useRef(null),d=()=>{r.current!==null&&(p.current!=null&&o.key!==p.current||!vo(r.current))&&Ue(r.current);},m={},f=e.hasChildItems,y=t.selectionManager.isLink(o.key);if(o!=null&&"expandedKeys"in t){let R=t.collection.getChildren?.(o.key);f=f||[...R??[]].length>1,a==null&&!y&&t.selectionManager.selectionMode==="none"&&f&&(a=()=>t.toggleKey(o.key));let _=f?t.expandedKeys.has(o.key):void 0,D=1,F=o.index;if(o.level>=0&&o?.parentKey!=null){let z=t.collection.getItem(o.parentKey);if(z){let N=vU(z,t.collection);D=[...N].filter(V=>V.type==="item").length,F>0&&N[0].type!=="item"&&(F-=1);}}else D=[...t.collection].filter(z=>z.level===0&&z.type==="item").length;m={"aria-expanded":_,"aria-level":o.level+1,"aria-posinset":F+1,"aria-setsize":D};}let{itemProps:g,...b}=wr({selectionManager:t.selectionManager,key:o.key,ref:r,shouldSelectOnPressUp:e.shouldSelectOnPressUp||u,onAction:a||o.props?.onAction?We(o.props?.onAction,a?()=>a(o.key):void 0):void 0,focus:d,linkBehavior:l}),x=R=>{let _=ue(G(r.current));if(!Y(R.currentTarget,$(R))||!r.current||!_)return;let D=et(r.current);if(D.currentNode=_,!tw(R,t,o,f,i,_,r.current))switch(R.key){case "ArrowLeft":{if(s==="arrow"){let F=i==="rtl"?D.nextNode():D.previousNode();if(F)R.preventDefault(),R.stopPropagation(),Ue(F),kt(F,{containingElement:Ze(r.current)});else if(R.preventDefault(),R.stopPropagation(),i==="rtl")Ue(r.current),kt(r.current,{containingElement:Ze(r.current)});else {D.currentNode=r.current;let z=rw(D);z&&(Ue(z),kt(z,{containingElement:Ze(r.current)}));}}break}case "ArrowRight":{if(s==="arrow"){let F=i==="rtl"?D.previousNode():D.nextNode();if(F)R.preventDefault(),R.stopPropagation(),Ue(F),kt(F,{containingElement:Ze(r.current)});else if(R.preventDefault(),R.stopPropagation(),i==="ltr")Ue(r.current),kt(r.current,{containingElement:Ze(r.current)});else {D.currentNode=r.current;let z=rw(D);z&&(Ue(z),kt(z,{containingElement:Ze(r.current)}));}}break}case "ArrowUp":case "ArrowDown":!R.altKey&&Y(r.current,$(R))&&(R.stopPropagation(),R.preventDefault(),r.current.parentElement?.dispatchEvent(new KeyboardEvent(R.nativeEvent.type,R.nativeEvent)));break}},h=R=>{if(p.current=o.key,$(R)!==r.current){At()||t.selectionManager.setFocusedKey(o.key);return}},v=R=>{let _=ue(G(r.current));if(!(!Y(R.currentTarget,$(R))||!r.current||!_)){if(s==="tab"){if($(R)!==r.current&&R.key!=="Tab"){R.stopPropagation();return}if(tw(R,t,o,f,i,_,r.current))return}switch(R.key){case "Tab":if(s==="tab"){let D=et(r.current,{tabbable:true});D.currentNode=_,(R.shiftKey?D.previousNode():D.nextNode())&&R.stopPropagation();}}}},C=pl(o.props),T=b.hasAction?C:{},P=A(g,T,{role:"row",onKeyDownCapture:s==="arrow"?x:void 0,onFocus:h,"aria-label":o["aria-label"]||o.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(o.key)?t.selectionManager.isSelected(o.key):void 0,"aria-disabled":t.selectionManager.isDisabled(o.key)||void 0,"aria-labelledby":c&&(o["aria-label"]||o.textValue)?`${Oc(t,o.key)} ${c}`:void 0,id:Oc(t,o.key)}),k=P.onKeyDown;P.onKeyDown=R=>{v(R),R.isPropagationStopped()||k?.(R);};let S=P.onPointerDown;P.onPointerDown=R=>{let _=$(R);if(_&&_!==r.current&&Hi(_)){R.stopPropagation();return}S?.(R);};let w=P.onMouseDown;if(P.onMouseDown=R=>{let _=$(R);if(_&&_!==r.current&&Hi(_)){R.stopPropagation();return}w?.(R);},n){let{collection:R}=t,_=[...R];P["aria-rowindex"]=_.find(D=>D.type==="section")?[...R.getKeys()].filter(D=>R.getItem(D)?.type!=="section").findIndex(D=>D===o.key)+1:o.index+1;}let E={role:"gridcell","aria-colindex":1};return {rowProps:{...A(P,m)},gridCellProps:E,descriptionProps:{id:c},...b}}function tw(e,t,r,o,n,i,a){if(!("expandedKeys"in t)||i!==a)return false;if(e.key===ew.expand[n]&&t.selectionManager.focusedKey===r.key&&o&&!t.expandedKeys.has(r.key))return t.toggleKey(r.key),e.stopPropagation(),true;if(e.key===ew.collapse[n]&&t.selectionManager.focusedKey===r.key){if(o&&t.expandedKeys.has(r.key))return t.toggleKey(r.key),e.stopPropagation(),true;if(!t.expandedKeys.has(r.key)&&r.parentKey&&t.collection.getItem(r.parentKey)?.type==="item")return t.selectionManager.setFocusedKey(r.parentKey),e.stopPropagation(),true}return false}function rw(e){let t=null,r=null;do r=e.lastChild(),r&&(t=r);while(r);return t}function vU(e,t){let r=t.getChildren?.(e.key),o=r?Array.from(r):[],n=o.length>0?o[0]:null,i=[];for(;n;)i.push(n),n=n.nextKey!=null?t.getItem(n.nextKey):null;return i}function wf(e,t){let{key:r}=e,o=t.selectionManager,n=ee(),i=!t.selectionManager.canSelectItem(r),a=t.selectionManager.isSelected(r),l=()=>o.toggleSelection(r),s=ve(Ql,"@react-aria/grid");return {checkboxProps:{id:n,"aria-label":s.format("select"),isSelected:a,isDisabled:i,onChange:l}}}function ts(e,t){let{key:r}=e,{checkboxProps:o}=wf(e,t);return {checkboxProps:{...o,"aria-labelledby":`${o.id} ${Oc(t,r)}`}}}function jx(e,t,r){let{overlayProps:o,underlayProps:n}=tf({...e,isOpen:t.isOpen,onClose:t.close},r);return nf({isDisabled:!t.isOpen,root:e.root},r),Ym(),useEffect(()=>{if(t.isOpen&&r.current)return fi([r.current],{shouldUseInert:e.shouldUseInert??false,root:e.root})},[t.isOpen,r,e.root,e.shouldUseInert]),{modalProps:A(o),underlayProps:n}}var Rf=new WeakMap;function Gx(e,t,r){let{value:o,children:n,"aria-label":i,"aria-labelledby":a,onPressStart:l,onPressEnd:s,onPressChange:u,onPress:c,onPressUp:p,onClick:d}=e,m=e.isDisabled||t.isDisabled,f=n!=null,y=i!=null||a!=null;!f&&!y&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let g=t.selectedValue===o,b=z=>{z.stopPropagation(),t.setSelectedValue(o);},{pressProps:x,isPressed:h}=Ae({onPressStart:l,onPressEnd:s,onPressChange:u,onPress:c,onPressUp:p,onClick:d,isDisabled:m}),{pressProps:v,isPressed:C}=Ae({onPressStart:l,onPressEnd:s,onPressChange:u,onPressUp:p,onClick:d,isDisabled:m,onPress(z){c?.(z),t.setSelectedValue(o),r.current?.focus();}}),{focusableProps:T}=rt(A(e,{onFocus:()=>t.setLastFocusedValue(o)}),r),P=A(x,T),k=re(e,{labelable:true}),S=-1;t.selectedValue!=null?t.selectedValue===o&&(S=0):(t.lastFocusedValue===o||t.lastFocusedValue==null)&&(S=0),m&&(S=void 0);let{name:w,form:E,descriptionId:R,errorMessageId:_,validationBehavior:D}=Rf.get(t);It(r,t.defaultSelectedValue,t.setSelectedValue),Wo({validationBehavior:D},t,r);let F=Xu();return {labelProps:A(v,useMemo(()=>({onClick:z=>z.preventDefault(),onMouseDown:z=>z.preventDefault()}),[])),inputProps:A(k,{...P,type:"radio",name:w,form:E,tabIndex:S,disabled:m,required:t.isRequired&&D==="native",checked:g,value:o,onChange:b,"aria-describedby":[e["aria-describedby"],F.id,t.isInvalid?_:null,R].filter(Boolean).join(" ")||void 0}),descriptionProps:F,isDisabled:m,isSelected:g,isPressed:h||C}}function Ux(e,t,r){let{name:o,form:n,isReadOnly:i,isRequired:a,isDisabled:l,orientation:s="vertical",validationBehavior:u="aria"}=e,{direction:c}=Q(),{isInvalid:p,validationErrors:d,validationDetails:m}=t.displayValidation,{labelProps:f,fieldProps:y,descriptionProps:g,errorMessageProps:b}=Vr({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||d,ref:r}),x=re(e,{labelable:true}),{focusWithinProps:h}=lt({onBlurWithin(T){e.onBlur?.(T),t.selectedValue||t.setLastFocusedValue(null);},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),v=T=>{let P;switch(T.key){case "ArrowRight":c==="rtl"&&s!=="vertical"?P="prev":P="next";break;case "ArrowLeft":c==="rtl"&&s!=="vertical"?P="next":P="prev";break;case "ArrowDown":P="next";break;case "ArrowUp":P="prev";break;default:return}T.preventDefault();let k=et(T.currentTarget,{from:$(T),accept:w=>w instanceof X(w).HTMLInputElement&&w.type==="radio"}),S;P==="next"?(S=k.nextNode(),S||(k.currentNode=T.currentTarget,S=k.firstChild())):(S=k.previousNode(),S||(k.currentNode=T.currentTarget,S=k.lastChild())),S&&(S.focus(),t.setSelectedValue(S.value));},C=ee(o);return Rf.set(t,{name:C,form:n,descriptionId:g.id,errorMessageId:b.id,validationBehavior:u}),{radioGroupProps:A(x,{role:"radiogroup",onKeyDown:v,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":i||void 0,"aria-required":a||void 0,"aria-disabled":l||void 0,"aria-orientation":s,...y,...h}),labelProps:f,descriptionProps:g,errorMessageProps:b,isInvalid:p,validationErrors:d,validationDetails:m}}var PU=Math.round(Math.random()*1e10),SU=0;function Wx(e){let t=useMemo(()=>e.name||`radio-group-${PU}-${++SU}`,[e.name]),[r,o]=ye(e.value,e.defaultValue??null,e.onChange),[n]=useState(r),[i,a]=useState(null),l=Nt({...e,value:r}),s=c=>{!e.isReadOnly&&!e.isDisabled&&(o(c),l.commitValidation());},u=l.displayValidation.isInvalid;return {...l,name:t,selectedValue:r,defaultSelectedValue:e.value!==void 0?n:e.defaultValue??null,setSelectedValue:s,lastFocusedValue:i,setLastFocusedValue:a,isDisabled:e.isDisabled||false,isReadOnly:e.isReadOnly||false,isRequired:e.isRequired||false,validationState:e.validationState||(u?"invalid":null),isInvalid:u}}var nw={"ar-AE":{"Clear search":"\u0645\u0633\u062D \u0627\u0644\u0628\u062D\u062B"},"bg-BG":{"Clear search":"\u0418\u0437\u0447\u0438\u0441\u0442\u0432\u0430\u043D\u0435 \u043D\u0430 \u0442\u044A\u0440\u0441\u0435\u043D\u0435"},"cs-CZ":{"Clear search":"Vymazat hled\xE1n\xED"},"da-DK":{"Clear search":"Ryd s\xF8gning"},"de-DE":{"Clear search":"Suche zur\xFCcksetzen"},"el-GR":{"Clear search":"\u0391\u03C0\u03B1\u03BB\u03BF\u03B9\u03C6\u03AE \u03B1\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7\u03C2"},"en-US":{"Clear search":"Clear search"},"es-ES":{"Clear search":"Borrar b\xFAsqueda"},"et-EE":{"Clear search":"T\xFChjenda otsing"},"fi-FI":{"Clear search":"Tyhjenn\xE4 haku"},"fr-FR":{"Clear search":"Effacer la recherche"},"he-IL":{"Clear search":"\u05E0\u05E7\u05D4 \u05D7\u05D9\u05E4\u05D5\u05E9"},"hr-HR":{"Clear search":"Obri\u0161i pretragu"},"hu-HU":{"Clear search":"Keres\xE9s t\xF6rl\xE9se"},"it-IT":{"Clear search":"Cancella ricerca"},"ja-JP":{"Clear search":"\u691C\u7D22\u3092\u30AF\u30EA\u30A2"},"ko-KR":{"Clear search":"\uAC80\uC0C9 \uC9C0\uC6B0\uAE30"},"lt-LT":{"Clear search":"I\u0161valyti ie\u0161k\u0105"},"lv-LV":{"Clear search":"Not\u012Br\u012Bt mekl\u0113\u0161anu"},"nb-NO":{"Clear search":"T\xF8m s\xF8k"},"nl-NL":{"Clear search":"Zoekactie wissen"},"pl-PL":{"Clear search":"Wyczy\u015B\u0107 zawarto\u015B\u0107 wyszukiwania"},"pt-BR":{"Clear search":"Limpar pesquisa"},"pt-PT":{"Clear search":"Limpar pesquisa"},"ro-RO":{"Clear search":"\u015Eterge\u0163i c\u0103utarea"},"ru-RU":{"Clear search":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A"},"sk-SK":{"Clear search":"Vymaza\u0165 vyh\u013Ead\xE1vanie"},"sl-SI":{"Clear search":"Po\u010Disti iskanje"},"sr-SP":{"Clear search":"Obri\u0161i pretragu"},"sv-SE":{"Clear search":"Rensa s\xF6kning"},"tr-TR":{"Clear search":"Aramay\u0131 temizle"},"uk-UA":{"Clear search":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u043F\u043E\u0448\u0443\u043A"},"zh-CN":{"Clear search":"\u6E05\u9664\u641C\u7D22"},"zh-TW":{"Clear search":"\u6E05\u9664\u641C\u5C0B\u689D\u4EF6"}};function qx(e,t,r){let o=ve(nw,"@react-aria/searchfield"),{isDisabled:n,isReadOnly:i,onSubmit:a,onClear:l,type:s="search"}=e,u=b=>{let x=b.key;x==="Enter"&&(n||i)&&b.preventDefault(),!(n||i)&&(x==="Enter"&&a&&(b.preventDefault(),a(t.value)),x==="Escape"&&(t.value===""&&(!r.current||r.current.value==="")?b.continuePropagation():(b.preventDefault(),t.setValue(""),l&&l())));},c=()=>{t.setValue(""),l&&l();},p=()=>{r.current?.focus();},{labelProps:d,inputProps:m,descriptionProps:f,errorMessageProps:y,...g}=Hr({...e,value:t.value,onChange:t.setValue,onKeyDown:i?e.onKeyDown:We(u,e.onKeyDown),type:s},r);return {labelProps:d,inputProps:{...m,defaultValue:void 0},clearButtonProps:{"aria-label":o.format("Clear search"),excludeFromTabOrder:true,preventFocusOnPress:true,isDisabled:n||i,onPress:c,onPressStart:p},descriptionProps:f,errorMessageProps:y,...g}}function Xx(e){let[t,r]=ye(iw(e.value),iw(e.defaultValue)||"",e.onChange);return {value:t,setValue:r}}function iw(e){if(e!=null)return e.toString()}var If=new WeakMap;function Yx(e,t,r){let{keyboardDelegate:o,isDisabled:n,isRequired:i,name:a,form:l,validationBehavior:s="aria"}=e,u=Qt({usage:"search",sensitivity:"base"}),c=useMemo(()=>o||new Ct(t.collection,t.disabledKeys,r,u),[o,t.collection,t.disabledKeys,u,r]),{menuTriggerProps:p,menuProps:d}=ya({isDisabled:n,type:"listbox"},t,r),m=S=>{if(t.selectionManager.selectionMode!=="multiple")switch(S.key){case "ArrowLeft":{S.preventDefault();let w=t.selectedKey!=null?c.getKeyAbove?.(t.selectedKey):c.getFirstKey?.();w!=null&&t.setSelectedKey(w);break}case "ArrowRight":{S.preventDefault();let w=t.selectedKey!=null?c.getKeyBelow?.(t.selectedKey):c.getFirstKey?.();w!=null&&t.setSelectedKey(w);break}}},{typeSelectProps:f}=Vm({keyboardDelegate:c,selectionManager:t.selectionManager,onTypeSelect(S){t.setSelectedKey(S);}}),{isInvalid:y,validationErrors:g,validationDetails:b}=t.displayValidation,{labelProps:x,fieldProps:h,descriptionProps:v,errorMessageProps:C}=Vr({...e,labelElementType:"span",isInvalid:y,errorMessage:e.errorMessage||g,ref:r});t.selectionManager.selectionMode==="multiple"&&(f={});let T=re(e,{labelable:true}),P=A(f,p,h),k=ee();return If.set(t,{isDisabled:n,isRequired:i,name:a,form:l,validationBehavior:s}),{labelProps:{...x,onClick:()=>{e.isDisabled||(r.current?.focus(),ar("keyboard"));}},triggerProps:A(T,{...P,isDisabled:n,onKeyDown:We(P.onKeyDown,m,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[k,P["aria-labelledby"],P["aria-label"]&&!P["aria-labelledby"]?P.id:null].filter(Boolean).join(" "),onFocus(S){t.isFocused||(e.onFocus&&e.onFocus(S),e.onFocusChange&&e.onFocusChange(true),t.setFocused(true));},onBlur(S){t.isOpen||(e.onBlur&&e.onBlur(S),e.onFocusChange&&e.onFocusChange(false),t.setFocused(false));}}),valueProps:{id:k},menuProps:{...d,onAction:void 0,autoFocus:t.focusStrategy||true,shouldSelectOnPressUp:true,shouldFocusOnHover:true,disallowEmptySelection:true,linkBehavior:"selection",onBlur:S=>{Y(S.currentTarget,S.relatedTarget)||(e.onBlur&&e.onBlur(S),e.onFocusChange&&e.onFocusChange(false),t.setFocused(false));},"aria-labelledby":[h["aria-labelledby"],P["aria-label"]&&!h["aria-labelledby"]?P.id:null].filter(Boolean).join(" ")},descriptionProps:v,errorMessageProps:C,isInvalid:y,validationErrors:g,validationDetails:b,hiddenSelectProps:{isDisabled:n,name:a,label:e.label,state:t,triggerRef:r,form:l}}}function sw(e,t,r){let o=If.get(t)||{},{autoComplete:n,name:i=o.name,form:a=o.form,isDisabled:l=o.isDisabled}=e,{validationBehavior:s,isRequired:u}=o,{visuallyHiddenProps:c}=Ot({style:{position:"fixed",top:0,left:0}});It(e.selectRef,t.defaultValue,t.setValue),Wo({validationBehavior:s,focus:()=>r.current?.focus()},t,e.selectRef);let p=t.setValue,d=useCallback(m=>{let f=$(m);f.multiple?p(Array.from(f.selectedOptions,y=>y.value)):p(m.currentTarget.value);},[p]);return {containerProps:{...c,"aria-hidden":true,"data-react-aria-prevent-focus":true,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:n,disabled:l,multiple:t.selectionManager.selectionMode==="multiple",required:s==="native"&&u,name:i,form:a,value:t.value??"",onChange:d,onInput:d}}}function Zx(e){let{state:t,triggerRef:r,label:o,name:n,form:i,isDisabled:a}=e,l=useRef(null),s=useRef(null),{containerProps:u,selectProps:c}=sw({...e,selectRef:t.collection.size<=300?l:s},t,r),p=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return jsx("div",{...u,"data-testid":"hidden-select-container",children:jsxs("label",{children:[o,jsxs("select",{...c,ref:l,children:[jsx("option",{value:"",label:"\xA0",children:"\xA0"}),[...t.collection.getKeys()].map(d=>{let m=t.collection.getItem(d);if(m&&m.type==="item")return jsx("option",{value:m.key,children:m.textValue},m.key)}),t.collection.size===0&&n&&p.map((d,m)=>jsx("option",{value:d??""},m))]})]})});if(n){let d=If.get(t)||{},{validationBehavior:m}=d;p.length===0&&(p=[null]);let f=p.map((y,g)=>{let b={type:"hidden",autoComplete:c.autoComplete,name:n,form:i,disabled:a,value:y??""};return m==="native"?jsx("input",{...b,ref:g===0?s:null,style:{display:"none"},type:"text",required:g===0?c.required:false,onChange:()=>{}},g):jsx("input",{...b,ref:g===0?s:null},g)});return jsx(Fragment,{children:f})}return null}function Nc(e){let{selectionMode:t="single",shouldCloseOnSelect:r=t==="single"}=e,o=vr(e),[n,i]=useState(null),a=useMemo(()=>e.defaultValue!==void 0?e.defaultValue:t==="single"?e.defaultSelectedKey??null:[],[e.defaultValue,e.defaultSelectedKey,t]),l=useMemo(()=>e.value!==void 0?e.value:t==="single"?e.selectedKey:void 0,[e.value,e.selectedKey,t]),[s,u]=ye(l,a,e.onChange),c=t==="single"&&Array.isArray(s)?s[0]:s,p=h=>{if(t==="single"){let v=Array.isArray(h)?h[0]??null:h;u(v),v!==c&&e.onSelectionChange?.(v);}else {let v=[];Array.isArray(h)?v=h:h!=null&&(v=[h]),u(v);}},d=Mt({...e,selectionMode:t,disallowEmptySelection:t==="single",allowDuplicateSelectionEvents:true,selectedKeys:useMemo(()=>zU(c),[c]),onSelectionChange:h=>{if(h!=="all"){if(t==="single"){let v=h.values().next().value??null;p(v);}else p([...h]);r&&o.close(),y.commitValidation();}}}),m=d.selectionManager.firstSelectedKey,f=useMemo(()=>[...d.selectionManager.selectedKeys].map(h=>d.collection.getItem(h)).filter(h=>h!=null),[d.selectionManager.selectedKeys,d.collection]),y=Nt({...e,value:Array.isArray(c)&&c.length===0?null:c}),[g,b]=useState(false),[x]=useState(c);return {...y,...d,...o,value:c,defaultValue:a??x,setValue:p,selectedKey:m,setSelectedKey:p,selectedItem:f[0]??null,selectedItems:f,defaultSelectedKey:e.defaultSelectedKey??(e.selectionMode==="single"?x:null),focusStrategy:n,open(h=null){(d.collection.size!==0||e.allowsEmptyCollection)&&(i(h),o.open());},toggle(h=null){(d.collection.size!==0||e.allowsEmptyCollection)&&(i(h),o.toggle());},isFocused:g,setFocused:b}}function zU(e){if(e!==void 0)return e===null?[]:Array.isArray(e)?e:[e]}function Fc(e,t,r){let{labelProps:o,inputProps:n,isSelected:i,...a}=xm(e,t,r);return {labelProps:o,inputProps:{...n,role:"switch",checked:i},isSelected:i,...a}}var Mf=class{keyMap=new Map;columnCount;rows;constructor(t){this.keyMap=new Map,this.columnCount=t?.columnCount,this.rows=[];let r=i=>{let a=this.keyMap.get(i.key);t.visitNode&&(i=t.visitNode(i)),this.keyMap.set(i.key,i);let l=new Set,s=null,u=false;if(i.type==="item"){for(let c of i.childNodes)if(c.props?.colSpan!==void 0){u=true;break}}for(let c of i.childNodes)c.type==="cell"&&u&&(c.colspan=c.props?.colSpan,c.colSpan=c.props?.colSpan,c.colIndex=s?(s.colIndex??s.index)+(s.colSpan??1):c.index),c.type==="cell"&&c.parentKey==null&&(c.parentKey=i.key),l.add(c.key),s?(s.nextKey=c.key,c.prevKey=s.key):c.prevKey=null,r(c),s=c;if(s&&(s.nextKey=null),a)for(let c of a.childNodes)l.has(c.key)||o(c);},o=i=>{this.keyMap.delete(i.key);for(let a of i.childNodes)this.keyMap.get(a.key)===a&&o(a);},n=null;for(let[i,a]of t.items.entries()){let l={...a,level:a.level??0,key:a.key??"row-"+i,type:a.type??"row",value:a.value??null,hasChildNodes:true,childNodes:[...a.childNodes],rendered:a.rendered,textValue:a.textValue??"",index:a.index??i};n?(n.nextKey=l.key,l.prevKey=n.key):l.prevKey=null,this.rows.push(l),r(l),n=l;}n&&(n.nextKey=null);}*[Symbol.iterator](){yield*[...this.rows];}get size(){return [...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey??null:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey??null:null}getFirstKey(){return [...this.rows][0]?.key}getLastKey(){let t=[...this.rows];return t[t.length-1]?.key}getItem(t){return this.keyMap.get(t)??null}at(t){let r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){return this.keyMap.get(t)?.childNodes||[]}};var uw="row-header-column-"+Math.random().toString(36).slice(2),Qx="row-header-column-"+Math.random().toString(36).slice(2);for(;uw===Qx;)Qx="row-header-column-"+Math.random().toString(36).slice(2);function Lf(e,t){if(t.length===0)return [];let r=[],o=new Map;for(let s of t){let u=s.parentKey,c=[s];for(;u!=null;){let p=e.get(u);if(!p)break;if(o.has(p)){p.colSpan??=0,p.colSpan++,p.colspan=p.colSpan;let{column:d,index:m}=o.get(p);if(m>c.length)break;for(let f=m;f<c.length;f++)d.splice(f,0,null);for(let f=c.length;f<d.length;f++)d[f]&&o.has(d[f])&&(o.get(d[f]).index=f);}else p.colSpan=1,p.colspan=1,c.push(p),o.set(p,{column:c,index:c.length-1});u=p.parentKey;}r.push(c),s.index=r.length-1;}let n=Math.max(...r.map(s=>s.length)),i=Array(n).fill(0).map(()=>[]),a=0;for(let s of r){let u=n-1;for(let c of s){if(c){let p=i[u],d=p.reduce((m,f)=>m+(f.colSpan??1),0);if(d<a){let m={type:"placeholder",key:"placeholder-"+c.key,colspan:a-d,colSpan:a-d,index:d,value:null,rendered:null,level:u,hasChildNodes:false,childNodes:[],textValue:""};p.length>0&&(p[p.length-1].nextKey=m.key,m.prevKey=p[p.length-1].key),p.push(m);}p.length>0&&(p[p.length-1].nextKey=c.key,c.prevKey=p[p.length-1].key),c.level=u,c.colIndex=a,p.push(c);}u--;}a++;}let l=0;for(let s of i){let u=s.reduce((c,p)=>c+(p.colSpan??1),0);if(u<t.length){let c={type:"placeholder",key:"placeholder-"+s[s.length-1].key,colSpan:t.length-u,colspan:t.length-u,index:u,value:null,rendered:null,level:l,hasChildNodes:false,childNodes:[],textValue:"",prevKey:s[s.length-1].key};s.push(c);}l++;}return i.map((s,u)=>({type:"headerrow",key:"headerrow-"+u,index:u,value:null,rendered:null,level:0,hasChildNodes:true,childNodes:s,textValue:""}))}var Kc=class extends Mf{headerRows;columns;rowHeaderColumnKeys;body;_size=0;constructor(t,r,o){let n=new Set,i=null,a=[];if(o?.showSelectionCheckboxes){let p={type:"column",key:uw,value:null,textValue:"",level:0,index:o?.showDragButtons?1:0,hasChildNodes:false,rendered:null,childNodes:[],props:{isSelectionCell:true}};a.unshift(p);}if(o?.showDragButtons){let p={type:"column",key:Qx,value:null,textValue:"",level:0,index:0,hasChildNodes:false,rendered:null,childNodes:[],props:{isDragButtonCell:true}};a.unshift(p);}let l=[],s=new Map,u=p=>{switch(p.type){case "body":i=p;break;case "column":s.set(p.key,p),p.hasChildNodes||(a.push(p),p.props.isRowHeader&&n.add(p.key));break;case "item":l.push(p);return}for(let d of p.childNodes)u(d);};for(let p of t)u(p);let c=Lf(s,a);if(c.forEach((p,d)=>l.splice(d,0,p)),super({columnCount:a.length,items:l,visitNode:p=>(p.column=a[p.index],p)}),this.columns=a,this.rowHeaderColumnKeys=n,this.body=i,this.headerRows=c,this._size=[...i.childNodes].length,this.rowHeaderColumnKeys.size===0){let p=this.columns.find(d=>!d.props?.isDragButtonCell&&!d.props?.isSelectionCell);p&&this.rowHeaderColumnKeys.add(p.key);}}*[Symbol.iterator](){yield*this.body.childNodes;}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){return this.keyMap.get(t)?.prevKey??null}getKeyAfter(t){return this.keyMap.get(t)?.nextKey??null}getFirstKey(){return hr(this.body.childNodes)?.key??null}getLastKey(){return Xo(this.body.childNodes)?.key??null}getItem(t){return t===this.body.key?this.body:this.keyMap.get(t)??null}at(t){let r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){if(t===this.body.key)return this.body.childNodes;let r=this.getItem(t);return r?.type==="item"?[...r.childNodes].filter(o=>o.type==="cell"):super.getChildren(t)}getTextValue(t){let r=this.getItem(t);if(!r)return "";if(r.textValue)return r.textValue;let o=this.rowHeaderColumnKeys;if(o){let n=[];for(let i of r.childNodes){let a=this.columns[i.index];if(o.has(a.key)&&i.textValue&&n.push(i.textValue),n.length===o.size)break}return n.join(" ")}return ""}};function wU(e){return e!=null&&(!isNaN(e)||String(e).match(/^(\d+)(?=%$)/)!==null)}function RU(e){if(!e||typeof e=="number")return 1;let t=e.match(/^(.+)(?=fr$)/);return t?parseFloat(t[0]):(process.env.NODE_ENV!=="production"&&console.warn(`width: ${e} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`,"defaulting to '1fr'"),1)}function eT(e,t){if(typeof e=="string"){let r=e.match(/^(\d+)(?=%$)/);if(!r)throw new Error("Only percentages or numbers are supported for static column widths");return t*(parseFloat(r[0])/100)}return e}function tT(e,t){return e!=null?eT(e,t):Number.MAX_SAFE_INTEGER}function rT(e,t){return e!=null?eT(e,t):0}function cw(e,t,r,o,n){let i=false,a=t.map((l,s)=>{let u=r.get(l.key)!=null?r.get(l.key)??"1fr":l.width??l.defaultWidth??o?.(s)??"1fr",c=false,p=0,d=0,m=0;wU(u)?(p=eT(u,e),c=true):(d=RU(u),d<=0&&(c=true));let f=rT(l.minWidth??n?.(s)??0,e),y=tT(l.maxWidth,e),g=Math.max(f,Math.min(p,y));return c?m=g:p>g&&(c=true,m=g),c||(i=true),{frozen:c,baseSize:p,hypotheticalMainSize:g,min:f,max:y,flex:d,targetMainSize:m,violation:0}});for(;i;){let l=0,s=0;a.forEach(p=>{p.frozen?l+=p.targetMainSize:(l+=p.baseSize,s+=p.flex);});let u=e-l;u>0&&a.forEach(p=>{if(!p.frozen){let d=p.flex/s;p.targetMainSize=p.baseSize+d*u;}});let c=0;a.forEach(p=>{if(p.violation=0,!p.frozen){let{min:d,max:m,targetMainSize:f}=p;p.targetMainSize=Math.max(d,Math.min(f,m)),p.violation=p.targetMainSize-f,c+=p.violation;}}),i=false,a.forEach(p=>{c===0||Math.sign(c)===Math.sign(p.violation)?p.frozen=true:p.frozen||(i=true);});}return IU(a)}function IU(e){let t=0,r=0,o=[];return e.forEach(function(n){let i=n.targetMainSize,a=Math.round(i+t)-r;t+=i,r+=a,o.push(a);}),o}var rs=class{getDefaultWidth;getDefaultMinWidth;columnWidths=new Map;columnMinWidths=new Map;columnMaxWidths=new Map;constructor(t){this.getDefaultWidth=t?.getDefaultWidth??(()=>"1fr"),this.getDefaultMinWidth=t?.getDefaultMinWidth??(()=>75);}splitColumnsIntoControlledAndUncontrolled(t){return t.reduce((r,o)=>(o.props.width!=null?r[0].set(o.key,o):r[1].set(o.key,o),r),[new Map,new Map])}recombineColumns(t,r,o,n){return new Map(t.map(i=>o.has(i.key)?[i.key,r.get(i.key)]:[i.key,n.get(i.key).props.width]))}getInitialUncontrolledWidths(t){return new Map(Array.from(t).map(([r,o])=>[r,o.props.defaultWidth??this.getDefaultWidth?.(o)??"1fr"]))}getColumnWidth(t){return this.columnWidths.get(t)??0}getColumnMinWidth(t){return this.columnMinWidths.get(t)??0}getColumnMaxWidth(t){return this.columnMaxWidths.get(t)??0}resizeColumnWidth(t,r,o,n){let i=this.columnWidths,a=true,l=new Map;return n=Math.max(this.getColumnMinWidth(o),Math.min(this.getColumnMaxWidth(o),Math.floor(n))),t.columns.forEach(s=>{s.key===o?(l.set(s.key,n),a=false):a?l.set(s.key,i.get(s.key)??0):l.set(s.key,s.props.width??r.get(s.key));}),l}buildColumnWidths(t,r,o){return this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,cw(t,r.columns.map(i=>({...i.props,key:i.key})),o,i=>this.getDefaultWidth(r.columns[i]),i=>this.getDefaultMinWidth(r.columns[i])).forEach((i,a)=>{let l=r.columns[a].key,s=r.columns[a];this.columnWidths.set(l,i),this.columnMinWidths.set(l,rT(s.props.minWidth??this.getDefaultMinWidth(s),t)),this.columnMaxWidths.set(l,tT(s.props.maxWidth,t));}),this.columnWidths}};function iT(e,t){let{getDefaultWidth:r,getDefaultMinWidth:o,tableWidth:n=0}=e,[i,a]=useState(null),l=useMemo(()=>new rs({getDefaultWidth:r,getDefaultMinWidth:o}),[r,o]),[s,u]=useMemo(()=>l.splitColumnsIntoControlledAndUncontrolled(t.collection.columns),[t.collection.columns,l]),[c,p]=useState(()=>l.getInitialUncontrolledWidths(u)),[d,m]=useState(t.collection.columns);if(t.collection.columns!==d){if(t.collection.columns.length!==d.length||t.collection.columns.some((h,v)=>h.key!==d[v].key)){let h=l.getInitialUncontrolledWidths(u);p(h);}m(t.collection.columns);}let f=useMemo(()=>l.recombineColumns(t.collection.columns,c,u,s),[t.collection.columns,c,u,s,l]),y=useCallback(h=>{a(h);},[a]),g=useCallback((h,v)=>{let C=l.resizeColumnWidth(t.collection,c,h,v),T=new Map(Array.from(u).map(([P])=>[P,C.get(P)]));return T.set(h,v),p(T),C},[u,p,l,t.collection,c]),b=useCallback(()=>{a(null);},[a]),x=useMemo(()=>l.buildColumnWidths(n,t.collection,f),[n,t.collection,f,l]);return useMemo(()=>({resizingColumn:i,updateResizedColumns:g,startResize:y,endResize:b,getColumnWidth:h=>l.getColumnWidth(h),getColumnMinWidth:h=>l.getColumnMinWidth(h),getColumnMaxWidth:h=>l.getColumnMaxWidth(h),tableState:t,columnWidths:x}),[l,x,i,g,y,b,t])}function pw(e){let{collection:t,focusMode:r}=e,o=e.UNSAFE_selectionState||So(e),n=useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=o.setFocusedKey;o.setFocusedKey=(s,u)=>{if(r==="cell"&&s!=null){let c=t.getItem(s);if(c?.type==="item"){let p=He(c,t);u==="last"?s=Xo(p)?.key??null:s=hr(p)?.key??null;}}i(s,u);};let a=useMemo(()=>new Do(t,o),[t,o]),l=useRef(null);return useEffect(()=>{if(o.focusedKey!=null&&l.current&&!t.getItem(o.focusedKey)){let s=l.current.getItem(o.focusedKey),u=s?.parentKey!=null&&(s.type==="cell"||s.type==="rowheader"||s.type==="column")?l.current.getItem(s.parentKey):s;if(!u){o.setFocusedKey(null);return}let c=l.current.rows,p=t.rows,d=c.length-p.length,m=Math.min(d>1?Math.max(u.index-d+1,0):u.index,p.length-1),f=null;for(;m>=0;){if(!a.isDisabled(p[m].key)&&p[m].type!=="headerrow"){f=p[m];break}m<p.length-1?m++:(m>u.index&&(m=u.index),m--);}if(f){let y=f.hasChildNodes?[...He(f,t)]:[],g=f.hasChildNodes&&u!==s&&s&&s.index<y.length?y[s.index].key:f.key;o.setFocusedKey(g);}else o.setFocusedKey(null);}l.current=t;},[t,a,o,o.focusedKey]),{collection:t,disabledKeys:n,isKeyboardNavigationDisabled:false,selectionManager:a}}var OU={ascending:"descending",descending:"ascending"};function aT(e){let[t,r]=useState(false),{selectionMode:o="none",showSelectionCheckboxes:n,showDragButtons:i,treeColumn:a=null}=e,l=useMemo(()=>({showSelectionCheckboxes:n&&o!=="none",showDragButtons:i,selectionMode:o,columns:[]}),[e.children,n,o,i]),s=Kl(e,useCallback(m=>new Kc(m,null,l),[l]),l),{disabledKeys:u,selectionManager:c}=pw({...e,collection:s,disabledBehavior:e.disabledBehavior||"selection"}),[p,d]=ye(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);return {collection:s,disabledKeys:u,selectionManager:c,showSelectionCheckboxes:e.showSelectionCheckboxes||false,sortDescriptor:e.sortDescriptor??null,isKeyboardNavigationDisabled:s.size===0||t,setKeyboardNavigationDisabled:r,sort(m,f){e.onSortChange?.({column:m,direction:f??(e.sortDescriptor?.column===m?OU[e.sortDescriptor.direction]:"ascending")});},expandedKeys:p,toggleKey(m){d(f=>{let y=new Set(f);return y.has(m)?y.delete(m):y.add(m),y});},treeColumn:a}}function lT(e,t){let r=useMemo(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),o=e.selectionManager.withCollection(r);return {...e,collection:r,selectionManager:o}}var fw=10,yw=5,os=class{delegate=null;state=null;direction="ltr";pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null};setup(t,r,o){this.delegate=t,this.state=r,this.direction=o;}getDropTargetFromPoint(t,r,o){let n=this.delegate.getDropTargetFromPoint(t,r,o);return !n||n.type==="root"?n:this.resolveDropTarget(n,t,r,o)}resolveDropTarget(t,r,o,n){let i=this.pointerTracking,a=o-i.lastY,l=r-i.lastX,s=i.yDirection,u=i.xDirection;if(Math.abs(a)>yw&&(s=a>0?"down":"up",i.yDirection=s,i.lastY=o),Math.abs(l)>fw&&(u=l>0?"right":"left",i.xDirection=u,i.lastX=r),t.dropPosition==="before"){let d=this.state.collection.getKeyBefore(t.key);for(;d!=null;){let m=this.state.collection.getItem(d);if(m?.type==="item")break;d=m?.parentKey??null;}if(d!=null){let m={type:"item",key:d,dropPosition:"after"};n(m)&&(t=m);}}let c=this.getPotentialTargets(t,n);if(c.length===0)return {type:"root"};let p;return c.length>1?p=this.selectTarget(c,t,r,o,s,u):(p=c[0],i.boundaryContext=null),p}getPotentialTargets(t,r){if(t.dropPosition==="on")return [t];let o=t,n=this.state.collection,i=n.getItem(o.key);for(;i&&i?.type!=="item"&&i.nextKey!=null;)o.key=i.nextKey,i=n.getItem(i.nextKey);let a=[o];if(i&&i.hasChildNodes&&this.state.expandedKeys.has(i.key)&&n.getChildren&&o.dropPosition==="after"){let u=i.firstChildKey!=null?n.getItem(i.firstChildKey):null;for(;u&&u.type!=="item";)u=u.nextKey!=null?n.getItem(u.nextKey):null;if(u?.type==="item"){let c={type:"item",key:u.key,dropPosition:"before"};return r(c)?[c]:[]}}if(i?.nextKey!=null)return [t];let l=i?.parentKey,s=[];for(;l!=null;){let u=n.getItem(l),c=u?.nextKey!=null?n.getItem(u.nextKey):null;if(!c||c.parentKey!==l){let d={type:"item",key:l,dropPosition:"after"};if(r(d)&&s.push(d),c)break}l=u?.parentKey;}if(s.length>0&&a.push(...s),a.length===1){let u=n.getKeyAfter(o.key),c=u!=null?n.getItem(u):null;if(u!=null&&c&&i&&c.level!=null&&i.level!=null&&c.level>i.level){let p={type:"item",key:u,dropPosition:"before"};if(r(p))return [p]}}return a.filter(r)}selectTarget(t,r,o,n,i,a){if(t.length<2)return t[0];let l=this.pointerTracking,u=this.state.collection.getItem(r.key)?.parentKey;if(u==null)return t[0];if(!l.boundaryContext||l.boundaryContext.parentKey!==u){let f=l.yDirection==="up"?t.length-1:0;l.boundaryContext={parentKey:u,preferredTargetIndex:f,lastSwitchY:n,lastSwitchX:o};}let c=l.boundaryContext,p=Math.abs(o-c.lastSwitchX);if(Math.abs(n-c.lastSwitchY)>yw&&i){let f=c.preferredTargetIndex||0;i==="down"&&f===0?c.preferredTargetIndex=t.length-1:i==="up"&&f===t.length-1&&(c.preferredTargetIndex=0),l.xDirection=null;}if(p>fw&&a){let f=c.preferredTargetIndex||0;a==="left"?this.direction==="ltr"?f<t.length-1&&(c.preferredTargetIndex=f+1,c.lastSwitchX=o):f>0&&(c.preferredTargetIndex=f-1,c.lastSwitchX=o):a==="right"&&(this.direction==="ltr"?f>0&&(c.preferredTargetIndex=f-1,c.lastSwitchX=o):f<t.length-1&&(c.preferredTargetIndex=f+1,c.lastSwitchX=o)),l.yDirection=null;}let m=Math.max(0,Math.min(c.preferredTargetIndex||0,t.length-1));return t[m]}};var ns=class{collection;disabledKeys;disabledBehavior;direction;collator;layoutDelegate;focusMode;constructor(t){if(this.collection=t.collection,this.disabledKeys=t.disabledKeys,this.disabledBehavior=t.disabledBehavior||"all",this.direction=t.direction,this.collator=t.collator,!t.layout&&!t.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=t.layoutDelegate||(t.layout?new sT(t.layout):new la(t.ref)),this.focusMode=t.focusMode??"row";}isCell(t){return t.type==="cell"}isRow(t){return t.type==="row"||t.type==="item"}isDisabled(t){return this.disabledBehavior==="all"&&(t.props?.isDisabled||this.disabledKeys.has(t.key))&&t.props?.disabledBehavior!=="selection"}findPreviousKey(t,r,o=false){let n=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;n!=null;){let i=this.collection.getItem(n);if(!i)return null;if((o||!this.isDisabled(i))&&(!r||r(i)))return n;n=this.collection.getKeyBefore(n);}return null}findNextKey(t,r,o=false){let n=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;n!=null;){let i=this.collection.getItem(n);if(!i)return null;if((o||!this.isDisabled(i))&&(!r||r(i)))return n;if(n=this.collection.getKeyAfter(n),n==null)return null}return null}getKeyForItemInRowByIndex(t,r=0){if(r<0)return null;let o=this.collection.getItem(t);if(!o)return null;let n=0;for(let i of He(o,this.collection)){if(i.colSpan&&i.colSpan+n>r||(i.colSpan&&(n=n+i.colSpan-1),n===r))return i.key??null;n++;}return null}getKeyBelow(t,r){let o=t,n=this.collection.getItem(o);if(!n||(this.isCell(n)&&(o=n.parentKey??null),o==null))return null;if(o=this.findNextKey(o,i=>i.type==="item",r?.includeDisabled),o!=null){if(this.isCell(n)){let i=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(o,i)}if(this.focusMode==="row")return o}return null}getKeyAbove(t,r){let o=t,n=this.collection.getItem(o);if(!n||(this.isCell(n)&&(o=n.parentKey??null),o==null))return null;if(o=this.findPreviousKey(o,i=>i.type==="item",r?.includeDisabled),o!=null){if(this.isCell(n)){let i=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(o,i)}if(this.focusMode==="row")return o}return null}getKeyRightOf(t){let r=this.collection.getItem(t);if(!r)return null;if(this.isRow(r)){let o=He(r,this.collection);return (this.direction==="rtl"?Xo(o)?.key:hr(o)?.key)??null}if(this.isCell(r)&&r.parentKey!=null){let o=this.collection.getItem(r.parentKey);if(!o)return null;let n=He(o,this.collection),i=(this.direction==="rtl"?sa(n,r.index-1):sa(n,r.index+1))??null;return i?i.key??null:this.focusMode==="row"?r.parentKey??null:(this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t))??null}return null}getKeyLeftOf(t){let r=this.collection.getItem(t);if(!r)return null;if(this.isRow(r)){let o=He(r,this.collection);return (this.direction==="rtl"?hr(o)?.key:Xo(o)?.key)??null}if(this.isCell(r)&&r.parentKey!=null){let o=this.collection.getItem(r.parentKey);if(!o)return null;let n=He(o,this.collection),i=(this.direction==="rtl"?sa(n,r.index+1):sa(n,r.index-1))??null;return i?i.key??null:this.focusMode==="row"?r.parentKey??null:(this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t))??null}return null}getFirstKey(t,r){let o=t??null,n;if(o!=null){if(n=this.collection.getItem(o),!n)return null;if(this.isCell(n)&&!r&&n.parentKey!=null){let i=this.collection.getItem(n.parentKey);return i?hr(He(i,this.collection))?.key??null:null}}if(o=this.findNextKey(void 0,i=>i.type==="item"),o!=null&&(n&&this.isCell(n)&&r||this.focusMode==="cell")){let i=this.collection.getItem(o);if(!i)return null;o=hr(He(i,this.collection))?.key??null;}return o}getLastKey(t,r){let o=t??null,n;if(o!=null){if(n=this.collection.getItem(o),!n)return null;if(this.isCell(n)&&!r&&n.parentKey!=null){let i=this.collection.getItem(n.parentKey);if(!i)return null;let a=He(i,this.collection);return Xo(a)?.key??null}}if(o=this.findPreviousKey(void 0,i=>i.type==="item"),o!=null&&(n&&this.isCell(n)&&r||this.focusMode==="cell")){let i=this.collection.getItem(o);if(!i)return null;let a=He(i,this.collection);o=Xo(a)?.key??null;}return o}getKeyPageAbove(t){let r=t,o=this.layoutDelegate.getItemRect(r);if(!o)return null;let n=Math.max(0,o.y+o.height-this.layoutDelegate.getVisibleRect().height);for(;o&&o.y>n&&r!=null&&(r=this.getKeyAbove(r)??null,r!=null);)o=this.layoutDelegate.getItemRect(r);return r}getKeyPageBelow(t){let r=t,o=this.layoutDelegate.getItemRect(r);if(!o)return null;let n=this.layoutDelegate.getVisibleRect().height,i=Math.min(this.layoutDelegate.getContentSize().height,o.y+n);for(;o&&o.y+o.height<i;){let a=this.getKeyBelow(r);if(a==null)break;o=this.layoutDelegate.getItemRect(a),r=a;}return r}getKeyForSearch(t,r){let o=r??null;if(!this.collator)return null;let n=this.collection;if(o=r??this.getFirstKey(),o==null)return null;let i=n.getItem(o);if(!i)return null;i.type==="cell"&&(o=i.parentKey??null);let a=false;for(;o!=null;){let l=n.getItem(o);if(!l)return null;if(l.textValue){let s=l.textValue.slice(0,t.length);if(this.collator.compare(s,t)===0)return this.isRow(l)&&this.focusMode==="cell"?hr(He(l,this.collection))?.key??null:l.key}o=this.findNextKey(o,s=>s.type==="item"),o==null&&!a&&(o=this.getFirstKey(),a=true);}return null}},sT=class{layout;constructor(t){this.layout=t;}getContentSize(){return this.layout.getContentSize()}getItemRect(t){return this.layout.getLayoutInfo(t)?.rect||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}};var is=new WeakMap;function gw(e,t,r){let{isVirtualized:o,disallowTypeAhead:n,keyboardDelegate:i,focusMode:a,scrollRef:l,getRowText:s,onRowAction:u,onCellAction:c,escapeKeyBehavior:p="clearSelection",shouldSelectOnPressUp:d}=e,{selectionManager:m}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let f=Qt({usage:"search",sensitivity:"base"}),{direction:y}=Q(),g=t.selectionManager.disabledBehavior,b=useMemo(()=>i||new ns({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:g,ref:r,direction:y,collator:f,focusMode:a}),[i,t.collection,t.disabledKeys,g,r,y,f,a]),{collectionProps:x}=di({ref:r,selectionManager:m,keyboardDelegate:b,scrollRef:l,disallowTypeAhead:n,escapeKeyBehavior:p}),h=ee(e.id);is.set(t,{keyboardDelegate:b,actions:{onRowAction:u,onCellAction:c},shouldSelectOnPressUp:d});let v=zf({selectionManager:m,hasItemActions:!!(u||c)}),C=re(e,{labelable:true}),T=useCallback(w=>{if(m.isFocused){Y(w.currentTarget,$(w))||m.setFocused(false);return}Y(w.currentTarget,$(w))&&m.setFocused(true);},[m]),P=useMemo(()=>({onBlur:x.onBlur,onFocus:T}),[T,x.onBlur]),k=es(r,{isDisabled:t.collection.size!==0}),S=A(C,{role:"grid",id:h,"aria-multiselectable":m.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?P:x,t.collection.size===0&&{tabIndex:k?-1:0}||void 0,v);return o&&(S["aria-rowcount"]=t.collection.size,S["aria-colcount"]=t.collection.columnCount),Ef({getRowText:s},t),{gridProps:S}}var Af=new WeakMap;function uT(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Of(e,t){let r=Af.get(e);if(!r)throw new Error("Unknown grid");return `${r}-${uT(t)}`}function cT(e,t,r){let o=Af.get(e);if(!o)throw new Error("Unknown grid");return `${o}-${uT(t)}-${uT(r)}`}function Bc(e,t){return [...e.collection.rowHeaderColumnKeys].map(r=>cT(e,t,r)).join(" ")}var Qo={"ar-AE":{ascending:"\u062A\u0635\u0627\u0639\u062F\u064A",ascendingSort:e=>`\u062A\u0631\u062A\u064A\u0628 \u062D\u0633\u0628 \u0627\u0644\u0639\u0645\u0648\u062F ${e.columnName} \u0628\u062A\u0631\u062A\u064A\u0628 \u062A\u0635\u0627\u0639\u062F\u064A`,columnSize:e=>`${e.value} \u0628\u0627\u0644\u0628\u0643\u0633\u0644`,descending:"\u062A\u0646\u0627\u0632\u0644\u064A",descendingSort:e=>`\u062A\u0631\u062A\u064A\u0628 \u062D\u0633\u0628 \u0627\u0644\u0639\u0645\u0648\u062F ${e.columnName} \u0628\u062A\u0631\u062A\u064A\u0628 \u062A\u0646\u0627\u0632\u0644\u064A`,resizerDescription:"\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D Enter \u0644\u0628\u062F\u0621 \u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062D\u062C\u0645",select:"\u062A\u062D\u062F\u064A\u062F",selectAll:"\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0643\u0644",sortable:"\u0639\u0645\u0648\u062F \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0631\u062A\u064A\u0628",collapse:"\u0637\u064A",expand:"\u062A\u0645\u062F\u064A\u062F"},"bg-BG":{ascending:"\u0432\u044A\u0437\u0445\u043E\u0434\u044F\u0449",ascendingSort:e=>`\u0441\u043E\u0440\u0442\u0438\u0440\u0430\u043D\u043E \u043F\u043E \u043A\u043E\u043B\u043E\u043D\u0430 ${e.columnName} \u0432\u044A\u0432 \u0432\u044A\u0437\u0445\u043E\u0434\u044F\u0449 \u0440\u0435\u0434`,columnSize:e=>`${e.value} \u043F\u0438\u043A\u0441\u0435\u043B\u0430`,descending:"\u043D\u0438\u0437\u0445\u043E\u0434\u044F\u0449",descendingSort:e=>`\u0441\u043E\u0440\u0442\u0438\u0440\u0430\u043D\u043E \u043F\u043E \u043A\u043E\u043B\u043E\u043D\u0430 ${e.columnName} \u0432 \u043D\u0438\u0437\u0445\u043E\u0434\u044F\u0449 \u0440\u0435\u0434`,resizerDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u0440\u0435\u043E\u0440\u0430\u0437\u043C\u0435\u0440\u044F\u0432\u0430\u0442\u0435",select:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435",selectAll:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0432\u0441\u0438\u0447\u043A\u043E",sortable:"\u0441\u043E\u0440\u0442\u0438\u0440\u0430\u0449\u0430 \u043A\u043E\u043B\u043E\u043D\u0430",collapse:"\u0421\u0432\u0438\u0432\u0430\u043D\u0435",expand:"\u0420\u0430\u0437\u0448\u0438\u0440\u044F\u0432\u0430\u043D\u0435"},"cs-CZ":{ascending:"vzestupn\u011B",ascendingSort:e=>`\u0159azeno vzestupn\u011B podle sloupce ${e.columnName}`,columnSize:e=>`${e.value} pixel\u016F`,descending:"sestupn\u011B",descendingSort:e=>`\u0159azeno sestupn\u011B podle sloupce ${e.columnName}`,resizerDescription:"Stisknut\xEDm kl\xE1vesy Enter za\u010Dnete m\u011Bnit velikost",select:"Vybrat",selectAll:"Vybrat v\u0161e",sortable:"sloupec s mo\u017Enost\xED \u0159azen\xED",collapse:"Sbalit",expand:"Rozt\xE1hnout"},"da-DK":{ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende r\xE6kkef\xF8lge`,columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende r\xE6kkef\xF8lge`,resizerDescription:"Tryk p\xE5 Enter for at \xE6ndre st\xF8rrelse",select:"V\xE6lg",selectAll:"V\xE6lg alle",sortable:"sorterbar kolonne",collapse:"Skjul",expand:"Udvid"},"de-DE":{ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Gr\xF6\xDFen\xE4nderung dr\xFCcken",select:"Ausw\xE4hlen",selectAll:"Alles ausw\xE4hlen",sortable:"sortierbare Spalte",collapse:"Reduzieren",expand:"Erweitern"},"el-GR":{ascending:"\u03B1\u03CD\u03BE\u03BF\u03C5\u03C3\u03B1",ascendingSort:e=>`\u03B4\u03B9\u03B1\u03BB\u03BF\u03B3\u03AE \u03B1\u03BD\u03AC \u03C3\u03C4\u03AE\u03BB\u03B7 ${e.columnName} \u03C3\u03B5 \u03B1\u03CD\u03BE\u03BF\u03C5\u03C3\u03B1 \u03C3\u03B5\u03B9\u03C1\u03AC`,columnSize:e=>`${e.value} pixel`,descending:"\u03C6\u03B8\u03AF\u03BD\u03BF\u03C5\u03C3\u03B1",descendingSort:e=>`\u03B4\u03B9\u03B1\u03BB\u03BF\u03B3\u03AE \u03B1\u03BD\u03AC \u03C3\u03C4\u03AE\u03BB\u03B7 ${e.columnName} \u03C3\u03B5 \u03C6\u03B8\u03AF\u03BD\u03BF\u03C5\u03C3\u03B1 \u03C3\u03B5\u03B9\u03C1\u03AC`,resizerDescription:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7 \u03C4\u03B7\u03C2 \u03B1\u03BB\u03BB\u03B1\u03B3\u03AE\u03C2 \u03BC\u03B5\u03B3\u03AD\u03B8\u03BF\u03C5\u03C2",select:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE",selectAll:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03CC\u03BB\u03C9\u03BD",sortable:"\u03A3\u03C4\u03AE\u03BB\u03B7 \u03B4\u03B9\u03B1\u03BB\u03BF\u03B3\u03AE\u03C2",collapse:"\u03A3\u03CD\u03BC\u03C0\u03C4\u03C5\u03BE\u03B7",expand:"\u0391\u03BD\u03AC\u03C0\u03C4\u03C5\u03BE\u03B7"},"en-US":{select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing",expand:"Expand",collapse:"Collapse"},"es-ES":{ascending:"ascendente",ascendingSort:e=>`ordenado por columna ${e.columnName} en sentido ascendente`,columnSize:e=>`${e.value} p\xEDxeles`,descending:"descendente",descendingSort:e=>`ordenado por columna ${e.columnName} en orden descendente`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable",collapse:"Contraer",expand:"Ampliar"},"et-EE":{ascending:"t\xF5usev j\xE4rjestus",ascendingSort:e=>`sorditud veeru j\xE4rgi ${e.columnName} t\xF5usvas j\xE4rjestuses`,columnSize:e=>`${e.value} pikslit`,descending:"laskuv j\xE4rjestus",descendingSort:e=>`sorditud veeru j\xE4rgi ${e.columnName} laskuvas j\xE4rjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali k\xF5ik",sortable:"sorditav veerg",collapse:"Ahenda",expand:"Laienda"},"fi-FI":{ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xE4rjestyksess\xE4`,columnSize:e=>`${e.value} pikseli\xE4`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa j\xE4rjestyksess\xE4`,resizerDescription:"Aloita koon muutos painamalla Enter-n\xE4pp\xE4int\xE4",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake",collapse:"Pienenn\xE4",expand:"Laajenna"},"fr-FR":{ascending:"croissant",ascendingSort:e=>`tri\xE9 en fonction de la colonne\xA0${e.columnName} par ordre croissant`,columnSize:e=>`${e.value}\xA0pixels`,descending:"d\xE9croissant",descendingSort:e=>`tri\xE9 en fonction de la colonne\xA0${e.columnName} par ordre d\xE9croissant`,resizerDescription:"Appuyez sur Entr\xE9e pour commencer le redimensionnement.",select:"S\xE9lectionner",selectAll:"S\xE9lectionner tout",sortable:"colonne triable",collapse:"R\xE9duire",expand:"D\xE9velopper"},"he-IL":{ascending:"\u05E2\u05D5\u05DC\u05D4",ascendingSort:e=>`\u05DE\u05D5\u05D9\u05DF \u05DC\u05E4\u05D9 \u05E2\u05DE\u05D5\u05D3\u05D4 ${e.columnName} \u05D1\u05E1\u05D3\u05E8 \u05E2\u05D5\u05DC\u05D4`,columnSize:e=>`${e.value} \u05E4\u05D9\u05E7\u05E1\u05DC\u05D9\u05DD`,descending:"\u05D9\u05D5\u05E8\u05D3",descendingSort:e=>`\u05DE\u05D5\u05D9\u05DF \u05DC\u05E4\u05D9 \u05E2\u05DE\u05D5\u05D3\u05D4 ${e.columnName} \u05D1\u05E1\u05D3\u05E8 \u05D9\u05D5\u05E8\u05D3`,resizerDescription:"\u05D4\u05E7\u05E9 Enter \u05DB\u05D3\u05D9 \u05DC\u05E9\u05E0\u05D5\u05EA \u05D0\u05EA \u05D4\u05D2\u05D5\u05D3\u05DC",select:"\u05D1\u05D7\u05E8",selectAll:"\u05D1\u05D7\u05E8 \u05D4\u05DB\u05D5\u05DC",sortable:"\u05E2\u05DE\u05D5\u05D3\u05D4 \u05E9\u05E0\u05D9\u05EA\u05DF \u05DC\u05DE\u05D9\u05D9\u05DF",collapse:"\u05DB\u05D5\u05D5\u05E5",expand:"\u05D4\u05E8\u05D7\u05D1"},"hr-HR":{ascending:"rastu\u0107i",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastu\u0107em redoslijedom`,columnSize:e=>`${e.value} piksela`,descending:"padaju\u0107i",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padaju\u0107im redoslijedom`,resizerDescription:"Pritisnite Enter da biste zapo\u010Deli promenu veli\u010Dine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se mo\u017Ee razvrstati",collapse:"Sa\u017Emi",expand:"Pro\u0161iri"},"hu-HU":{ascending:"n\xF6vekv\u0151",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, n\xF6vekv\u0151 sorrendben`,columnSize:e=>`${e.value} k\xE9ppont`,descending:"cs\xF6kken\u0151",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, cs\xF6kken\u0151 sorrendben`,resizerDescription:"Nyomja le az Enter billenty\u0171t az \xE1tm\xE9retez\xE9s megkezd\xE9s\xE9hez",select:"Kijel\xF6l\xE9s",selectAll:"\xD6sszes kijel\xF6l\xE9se",sortable:"rendezend\u0151 oszlop",collapse:"\xD6sszecsuk\xE1s",expand:"Kibont\xE1s"},"it-IT":{ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile",collapse:"Comprimi",expand:"Espandi"},"ja-JP":{ascending:"\u6607\u9806",ascendingSort:e=>`\u5217 ${e.columnName} \u3092\u6607\u9806\u3067\u4E26\u3079\u66FF\u3048`,columnSize:e=>`${e.value} \u30D4\u30AF\u30BB\u30EB`,descending:"\u964D\u9806",descendingSort:e=>`\u5217 ${e.columnName} \u3092\u964D\u9806\u3067\u4E26\u3079\u66FF\u3048`,resizerDescription:"Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30B5\u30A4\u30BA\u5909\u66F4\u3092\u958B\u59CB",select:"\u9078\u629E",selectAll:"\u3059\u3079\u3066\u9078\u629E",sortable:"\u4E26\u3079\u66FF\u3048\u53EF\u80FD\u306A\u5217",collapse:"\u6298\u308A\u305F\u305F\u3080",expand:"\u5C55\u958B"},"ko-KR":{ascending:"\uC624\uB984\uCC28\uC21C",ascendingSort:e=>`${e.columnName} \uC5F4\uC744 \uAE30\uC900\uC73C\uB85C \uC624\uB984\uCC28\uC21C\uC73C\uB85C \uC815\uB82C\uB428`,columnSize:e=>`${e.value} \uD53D\uC140`,descending:"\uB0B4\uB9BC\uCC28\uC21C",descendingSort:e=>`${e.columnName} \uC5F4\uC744 \uAE30\uC900\uC73C\uB85C \uB0B4\uB9BC\uCC28\uC21C\uC73C\uB85C \uC815\uB82C\uB428`,resizerDescription:"\uD06C\uAE30 \uC870\uC815\uC744 \uC2DC\uC791\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC138\uC694.",select:"\uC120\uD0DD",selectAll:"\uBAA8\uB450 \uC120\uD0DD",sortable:"\uC815\uB82C \uAC00\uB2A5\uD55C \uC5F4",collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},"lt-LT":{ascending:"did\u0117jan\u010Dia tvarka",ascendingSort:e=>`surikiuota pagal stulpel\u012F ${e.columnName} did\u0117jan\u010Dia tvarka`,columnSize:e=>`${e.value} piks.`,descending:"ma\u017E\u0117jan\u010Dia tvarka",descendingSort:e=>`surikiuota pagal stulpel\u012F ${e.columnName} ma\u017E\u0117jan\u010Dia tvarka`,resizerDescription:"Paspauskite \u201EEnter\u201C, kad prad\u0117tum\u0117te keisti dyd\u012F",select:"Pasirinkti",selectAll:"Pasirinkti visk\u0105",sortable:"rikiuojamas stulpelis",collapse:"Sutraukti",expand:"I\u0161skleisti"},"lv-LV":{ascending:"augo\u0161\u0101 sec\u012Bb\u0101",ascendingSort:e=>`k\u0101rtots p\u0113c kolonnas ${e.columnName} augo\u0161\u0101 sec\u012Bb\u0101`,columnSize:e=>`${e.value} pikse\u013Ci`,descending:"dilsto\u0161\u0101 sec\u012Bb\u0101",descendingSort:e=>`k\u0101rtots p\u0113c kolonnas ${e.columnName} dilsto\u0161\u0101 sec\u012Bb\u0101`,resizerDescription:"Nospiediet Enter, lai s\u0101ktu izm\u0113ru main\u012B\u0161anu",select:"Atlas\u012Bt",selectAll:"Atlas\u012Bt visu",sortable:"k\u0101rtojam\u0101 kolonna",collapse:"Sak\u013Caut",expand:"Izv\u0113rst"},"nb-NO":{ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkef\xF8lge`,columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkef\xF8lge`,resizerDescription:"Trykk p\xE5 Enter for \xE5 starte st\xF8rrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres",collapse:"Skjul",expand:"Utvid"},"nl-NL":{ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom",collapse:"Samenvouwen",expand:"Uitvouwen"},"pl-PL":{ascending:"rosn\u0105co",ascendingSort:e=>`posortowano wed\u0142ug kolumny ${e.columnName} w porz\u0105dku rosn\u0105cym`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malej\u0105co",descendingSort:e=>`posortowano wed\u0142ug kolumny ${e.columnName} w porz\u0105dku malej\u0105cym`,resizerDescription:"Naci\u015Bnij Enter, aby rozpocz\u0105\u0107 zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z mo\u017Cliwo\u015Bci\u0105 sortowania",collapse:"Zwi\u0144",expand:"Rozwi\u0144"},"pt-BR":{ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para come\xE7ar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classific\xE1vel",collapse:"Recolher",expand:"Expandir"},"pt-PT":{ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna orden\xE1vel",collapse:"Colapsar",expand:"Expandir"},"ro-RO":{ascending:"cresc\u0103toare",ascendingSort:e=>`sortate dup\u0103 coloana ${e.columnName} \xEEn ordine cresc\u0103toare`,columnSize:e=>`${e.value} pixeli`,descending:"descresc\u0103toare",descendingSort:e=>`sortate dup\u0103 coloana ${e.columnName} \xEEn ordine descresc\u0103toare`,resizerDescription:"Ap\u0103sa\u021Bi pe Enter pentru a \xEEncepe redimensionarea",select:"Selectare",selectAll:"Selectare total\u0103",sortable:"coloan\u0103 sortabil\u0103",collapse:"Restr\xE2nge\u021Bi",expand:"Extinde\u021Bi"},"ru-RU":{ascending:"\u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0430\u043D\u0438\u0435",ascendingSort:e=>`\u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446 ${e.columnName} \u0432 \u043F\u043E\u0440\u044F\u0434\u043A\u0435 \u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0430\u043D\u0438\u044F`,columnSize:e=>`${e.value} \u043F\u0438\u043A\u0441.`,descending:"\u0443\u0431\u044B\u0432\u0430\u043D\u0438\u0435",descendingSort:e=>`\u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446 ${e.columnName} \u0432 \u043F\u043E\u0440\u044F\u0434\u043A\u0435 \u0443\u0431\u044B\u0432\u0430\u043D\u0438\u044F`,resizerDescription:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter \u0434\u043B\u044F \u043D\u0430\u0447\u0430\u043B\u0430 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0440\u0430\u0437\u043C\u0435\u0440\u043E\u0432",select:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",selectAll:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435",sortable:"\u0441\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u043C\u044B\u0439 \u0441\u0442\u043E\u043B\u0431\u0435\u0446",collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C"},"sk-SK":{ascending:"vzostupne",ascendingSort:e=>`zoraden\xE9 zostupne pod\u013Ea st\u013Apca ${e.columnName}`,columnSize:e=>`Po\u010Det pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoraden\xE9 zostupne pod\u013Ea st\u013Apca ${e.columnName}`,resizerDescription:"Stla\u010Den\xEDm kl\xE1vesu Enter za\u010Dnete zmenu ve\u013Ekosti",select:"Vybra\u0165",selectAll:"Vybra\u0165 v\u0161etko",sortable:"zoradite\u013En\xFD st\u013Apec",collapse:"Zbali\u0165",expand:"Rozbali\u0165"},"sl-SI":{ascending:"nara\u0161\u010Dajo\u010De",ascendingSort:e=>`razvr\u0161\u010Deno po stolpcu ${e.columnName} v nara\u0161\u010Dajo\u010Dem vrstnem redu`,columnSize:e=>`${e.value} slikovnih pik`,descending:"padajo\u010De",descendingSort:e=>`razvr\u0161\u010Deno po stolpcu ${e.columnName} v padajo\u010Dem vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da za\u010Dnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec",collapse:"Strni",expand:"Raz\u0161iri"},"sr-SP":{ascending:"rastu\u0107i",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastu\u0107im redosledom`,columnSize:e=>`${e.value} piksela`,descending:"padaju\u0107i",descendingSort:e=>`sortirano po kolonama ${e.columnName} padaju\u0107im redosledom`,resizerDescription:"Pritisnite Enter da biste zapo\u010Deli promenu veli\u010Dine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se mo\u017Ee sortirati",collapse:" Skupi",expand:"Pro\u0161iri"},"sv-SE":{ascending:"stigande",ascendingSort:e=>`sorterat p\xE5 kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat p\xE5 kolumn ${e.columnName} i fallande ordning`,resizerDescription:"Tryck p\xE5 Retur f\xF6r att b\xF6rja \xE4ndra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn",collapse:"D\xF6lj",expand:"Expandera"},"tr-TR":{ascending:"artan s\u0131rada",ascendingSort:e=>`${e.columnName} s\xFCtuna g\xF6re artan d\xFCzende s\u0131rala`,columnSize:e=>`${e.value} piksel`,descending:"azalan s\u0131rada",descendingSort:e=>`${e.columnName} s\xFCtuna g\xF6re azalan d\xFCzende s\u0131rala`,resizerDescription:"Yeniden boyutland\u0131rmak i\xE7in Enter'a bas\u0131n",select:"Se\xE7",selectAll:"T\xFCm\xFCn\xFC Se\xE7",sortable:"S\u0131ralanabilir s\xFCtun",collapse:"Daralt",expand:"Geni\u015Flet"},"uk-UA":{ascending:"\u0432\u0438\u0441\u0445\u0456\u0434\u043D\u0438\u0439",ascendingSort:e=>`\u0432\u0456\u0434\u0441\u043E\u0440\u0442\u043E\u0432\u0430\u043D\u043E \u0437\u0430 \u0441\u0442\u043E\u0432\u043F\u0446\u0435\u043C ${e.columnName} \u0443 \u0432\u0438\u0441\u0445\u0456\u0434\u043D\u043E\u043C\u0443 \u043F\u043E\u0440\u044F\u0434\u043A\u0443`,columnSize:e=>`${e.value} \u043F\u0456\u043A\u0441.`,descending:"\u043D\u0438\u0437\u0445\u0456\u0434\u043D\u0438\u0439",descendingSort:e=>`\u0432\u0456\u0434\u0441\u043E\u0440\u0442\u043E\u0432\u0430\u043D\u043E \u0437\u0430 \u0441\u0442\u043E\u0432\u043F\u0446\u0435\u043C ${e.columnName} \u0443 \u043D\u0438\u0437\u0445\u0456\u0434\u043D\u043E\u043C\u0443 \u043F\u043E\u0440\u044F\u0434\u043A\u0443`,resizerDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u0437\u043C\u0456\u043D\u0443 \u0440\u043E\u0437\u043C\u0456\u0440\u0443",select:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438",selectAll:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0435",sortable:"\u0441\u043E\u0440\u0442\u0443\u0432\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u043E\u0432\u043F\u0435\u0446\u044C",collapse:"\u0417\u0433\u043E\u0440\u043D\u0443\u0442\u0438",expand:"\u0420\u043E\u0437\u0433\u043E\u0440\u043D\u0443\u0442\u0438"},"zh-CN":{ascending:"\u5347\u5E8F",ascendingSort:e=>`\u6309\u5217 ${e.columnName} \u5347\u5E8F\u6392\u5E8F`,columnSize:e=>`${e.value} \u50CF\u7D20`,descending:"\u964D\u5E8F",descendingSort:e=>`\u6309\u5217 ${e.columnName} \u964D\u5E8F\u6392\u5E8F`,resizerDescription:"\u6309\u201C\u8F93\u5165\u201D\u952E\u5F00\u59CB\u8C03\u6574\u5927\u5C0F\u3002",select:"\u9009\u62E9",selectAll:"\u5168\u9009",sortable:"\u53EF\u6392\u5E8F\u7684\u5217",collapse:"\u6298\u53E0",expand:"\u6269\u5C55"},"zh-TW":{ascending:"\u905E\u589E",ascendingSort:e=>`\u5DF2\u4F9D\u64DA\u300C${e.columnName}\u300D\u6B04\u905E\u589E\u6392\u5E8F`,columnSize:e=>`${e.value} \u50CF\u7D20`,descending:"\u905E\u6E1B",descendingSort:e=>`\u5DF2\u4F9D\u64DA\u300C${e.columnName}\u300D\u6B04\u905E\u6E1B\u6392\u5E8F`,resizerDescription:"\u6309 Enter \u9375\u4EE5\u958B\u59CB\u8ABF\u6574\u5927\u5C0F",select:"\u9078\u53D6",selectAll:"\u5168\u9078",sortable:"\u53EF\u6392\u5E8F\u7684\u6B04",collapse:"\u6536\u5408",expand:"\u5C55\u958B"}};var Nf=class extends ns{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t,r){let o=this.collection.getItem(t);if(!o)return null;if(o.type==="column"){let n=hr(He(o,this.collection));if(n)return n.key;let i=this.getFirstKey();return i==null||!this.collection.getItem(i)?null:super.getKeyForItemInRowByIndex(i,o.index)}return super.getKeyBelow(t,r)}getKeyAbove(t,r){let o=this.collection.getItem(t);if(!o)return null;if(o.type==="column"){let a=o.parentKey!=null?this.collection.getItem(o.parentKey):null;return a&&a.type==="column"?a.key:null}let n=super.getKeyAbove(t,r),i=n!=null?this.collection.getItem(n):null;return i&&i.type!=="headerrow"?n:this.isCell(o)?this.collection.columns[o.index].key:this.collection.columns[0].key}findNextColumnKey(t){let r=this.findNextKey(t.key,n=>n.type==="column");if(r!=null)return r;let o=this.collection.headerRows[t.level];for(let n of He(o,this.collection))if(n.type==="column")return n.key;return null}findPreviousColumnKey(t){let r=this.findPreviousKey(t.key,i=>i.type==="column");if(r!=null)return r;let o=this.collection.headerRows[t.level],n=[...He(o,this.collection)];for(let i=n.length-1;i>=0;i--){let a=n[i];if(a.type==="column")return a.key}return null}getKeyRightOf(t){let r=this.collection.getItem(t);return r?r.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(r):this.findNextColumnKey(r):super.getKeyRightOf(t):null}getKeyLeftOf(t){let r=this.collection.getItem(t);return r?r.type==="column"?this.direction==="rtl"?this.findNextColumnKey(r):this.findPreviousColumnKey(r):super.getKeyLeftOf(t):null}getKeyForSearch(t,r){if(!this.collator)return null;let o=this.collection,n=r??this.getFirstKey();if(n==null)return null;let i=o.getItem(n);i?.type==="cell"&&(n=i.parentKey??null);let a=false;for(;n!=null;){let l=o.getItem(n);if(!l)return null;if(l.textValue){let s=l.textValue.slice(0,t.length);if(this.collator.compare(s,t)===0)return l.key}for(let s of He(l,this.collection)){let u=o.columns[s.index];if(o.rowHeaderColumnKeys.has(u.key)&&s.textValue){let c=s.textValue.slice(0,t.length);if(this.collator.compare(c,t)===0)return (r!=null?o.getItem(r):i)?.type==="cell"?s.key:l.key}}n=this.getKeyBelow(n),n==null&&!a&&(n=this.getFirstKey(),a=true);}return null}};function dT(e,t,r){let{keyboardDelegate:o,isVirtualized:n,layoutDelegate:i,layout:a}=e,l=Qt({usage:"search",sensitivity:"base"}),{direction:s}=Q(),u=t.selectionManager.disabledBehavior,c=useMemo(()=>o||new Nf({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:u,ref:r,direction:s,collator:l,layoutDelegate:i,layout:a}),[o,t.collection,t.disabledKeys,u,r,s,l,i,a]),p=ee(e.id);Af.set(t,p);let{gridProps:d}=gw({...e,id:p,keyboardDelegate:c},t,r);n&&(d["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),t.treeColumn!=null&&(d.role="treegrid");let{column:m,direction:f}=t.sortDescriptor||{},y=ve(Qo,"@react-aria/table"),g=useMemo(()=>{let x=t.collection.columns.find(h=>h.key===m)?.textValue??"";return f&&m?y.format(`${f}Sort`,{columnName:x}):void 0},[f,m,t.collection.columns]),b=Tt(g);return zn(()=>{g&&ot(g,"assertive",500);},[g]),{gridProps:A(d,b,{"aria-describedby":[b["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")})}}function Ff(e,t,r){let{node:o,isVirtualized:n,focusMode:i="child",shouldSelectOnPressUp:a,onAction:l}=e,{direction:s}=Q(),{keyboardDelegate:u,actions:{onCellAction:c}}=is.get(t),p=useRef(null),d=()=>{if(r.current){let x=et(r.current);if(i==="child"){if(vo(r.current)&&r.current!==ue(G(r.current)))return;let h=t.selectionManager.childFocusStrategy==="last"?pT(x):x.firstChild();if(h){Ue(h);return}}(p.current!=null&&o.key!==p.current||!vo(r.current))&&Ue(r.current);}},{itemProps:m,isPressed:f}=wr({selectionManager:t.selectionManager,key:o.key,ref:r,focus:d,shouldSelectOnPressUp:a,onAction:c?()=>c(o.key):l,isDisabled:t.collection.size===0}),y=x=>{let h=ue(G(r.current));if(!Y(x.currentTarget,$(x))||t.isKeyboardNavigationDisabled||!r.current||!h)return;let v=et(r.current);switch(v.currentNode=h,x.key){case "ArrowLeft":{let C=s==="rtl"?v.nextNode():v.previousNode();if(i==="child"&&C===r.current&&(C=null),x.preventDefault(),x.stopPropagation(),C)Ue(C),kt(C,{containingElement:Ze(r.current)});else {if(u.getKeyLeftOf?.(o.key)!==o.key){r.current.parentElement?.dispatchEvent(new KeyboardEvent(x.nativeEvent.type,x.nativeEvent));break}i==="cell"&&s==="rtl"?(Ue(r.current),kt(r.current,{containingElement:Ze(r.current)})):(v.currentNode=r.current,C=s==="rtl"?v.firstChild():pT(v),C&&(Ue(C),kt(C,{containingElement:Ze(r.current)})));}break}case "ArrowRight":{let C=s==="rtl"?v.previousNode():v.nextNode();if(i==="child"&&C===r.current&&(C=null),x.preventDefault(),x.stopPropagation(),C)Ue(C),kt(C,{containingElement:Ze(r.current)});else {if(u.getKeyRightOf?.(o.key)!==o.key){r.current.parentElement?.dispatchEvent(new KeyboardEvent(x.nativeEvent.type,x.nativeEvent));break}i==="cell"&&s==="ltr"?(Ue(r.current),kt(r.current,{containingElement:Ze(r.current)})):(v.currentNode=r.current,C=s==="rtl"?pT(v):v.firstChild(),C&&(Ue(C),kt(C,{containingElement:Ze(r.current)})));}break}case "ArrowUp":case "ArrowDown":!x.altKey&&Y(r.current,$(x))&&(x.stopPropagation(),x.preventDefault(),r.current.parentElement?.dispatchEvent(new KeyboardEvent(x.nativeEvent.type,x.nativeEvent)));break}},g=x=>{if(p.current=o.key,$(x)!==r.current){At()||t.selectionManager.setFocusedKey(o.key);return}requestAnimationFrame(()=>{i==="child"&&ue(G(r.current))===r.current&&d();});},b=A(m,{role:"gridcell",onKeyDownCapture:y,"aria-colspan":o.colSpan,"aria-colindex":o.colIndex!=null?o.colIndex+1:void 0,colSpan:n?void 0:o.colSpan,onFocus:g});return n&&(b["aria-colindex"]=(o.colIndex??o.index)+1),a&&b.tabIndex!=null&&b.onPointerDown==null&&(b.onPointerDown=x=>{let h=x.currentTarget,v=h.getAttribute("tabindex");h.removeAttribute("tabindex"),requestAnimationFrame(()=>{v!=null&&h.setAttribute("tabindex",v);});}),{gridCellProps:b,isPressed:f}}function pT(e){let t=null,r=null;do r=e.lastChild(),r&&(t=r);while(r);return t}function mT(e,t,r){let{node:o}=e,n=o.props.allowsSorting,{gridCellProps:i}=Ff({...e,focusMode:"child"},t,r),a=o.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:l,isPressed:s}=Ae({isDisabled:!n||a,onPress(){t.sort(o.key);},ref:r}),{focusableProps:u}=rt({},r),c,p=t.sortDescriptor?.column===o.key,d=t.sortDescriptor?.direction;o.props.allowsSorting&&!ir()&&(c=p?d:"none");let m=ve(Qo,"@react-aria/table"),f;n&&(f=`${m.format("sortable")}`,p&&d&&ir()&&(f=`${f}, ${m.format(d)}`));let y=Tt(f),g=t.collection.size===0;return useEffect(()=>{g&&t.selectionManager.focusedKey===o.key&&t.selectionManager.setFocusedKey(null);},[g,t.selectionManager,o.key]),{columnHeaderProps:{...A(u,i,l,y,g?{tabIndex:-1}:null),role:"columnheader",id:Of(t,o.key),"aria-colspan":o.colSpan&&o.colSpan>1?o.colSpan:void 0,"aria-sort":c},isPressed:s}}function vw(e,t,r){let{node:o,isVirtualized:n,shouldSelectOnPressUp:i,onAction:a}=e,{actions:l,shouldSelectOnPressUp:s}=is.get(t),u=l.onRowAction?()=>l.onRowAction?.(o.key):a,{itemProps:c,...p}=wr({selectionManager:t.selectionManager,key:o.key,ref:r,shouldSelectOnPressUp:s||i,onAction:u||o?.props?.onAction?We(o?.props?.onAction,u):void 0,isDisabled:t.collection.size===0}),d=t.selectionManager.isSelected(o.key),m={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?d:void 0,"aria-disabled":p.isDisabled||void 0,...c};return n&&(m["aria-rowindex"]=o.index+1),{rowProps:m,...p}}var xw={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function fT(e,t,r){let{node:o,isVirtualized:n}=e,{rowProps:i,...a}=vw(e,t,r),{direction:l}=Q();n&&t.treeColumn==null?i["aria-rowindex"]=o.index+1+t.collection.headerRows.length:delete i["aria-rowindex"];let s=t.treeColumn!=null&&(t.expandedKeys==="all"||t.expandedKeys.has(o.key)),u=ve(Qo,"@react-aria/table"),c=Qe({"aria-label":s?u.format("collapse"):u.format("expand"),"aria-labelledby":Bc(t,o.key)}),p={},d={};if(t.treeColumn!=null){let y=t.collection.getItem(o.key);if(y!=null){let g=Tw(t.collection,o),b=y.props?.hasChildRows||y.props?.UNSTABLE_childItems||g?.type!=="cell",x=t.collection.getItem(o.parentKey),h=x.type==="tablebody"||x.type==="body",v=Tw(t.collection,x);for(;v&&v.type!=="item"&&v.prevKey!=null;)v=t.collection.getItem(v.prevKey);p={onKeyDown:C=>{C.key===xw.expand[l]&&t.selectionManager.focusedKey===y.key&&b&&t.expandedKeys!=="all"&&!t.expandedKeys.has(y.key)?(t.toggleKey(y.key),C.stopPropagation()):C.key===xw.collapse[l]&&t.selectionManager.focusedKey===y.key&&(t.expandedKeys!=="all"?b&&t.expandedKeys.has(y.key)?(t.toggleKey(y.key),C.stopPropagation()):!t.expandedKeys.has(y.key)&&y.parentKey!=null&&y.level>0&&(t.selectionManager.setFocusedKey(y.parentKey),C.stopPropagation()):t.expandedKeys==="all"&&(t.toggleKey(y.key),C.stopPropagation()));},"aria-expanded":b?t.expandedKeys==="all"||t.expandedKeys.has(o.key):void 0,"aria-level":y.level+1,"aria-posinset":y.index-(h?0:t.collection.columnCount)+1,"aria-setsize":v.index-(h?0:t.collection.columnCount)+1},d={isDisabled:a.isDisabled,onPress:()=>{a.isDisabled||(t.toggleKey(o.key),t.selectionManager.setFocused(true),t.selectionManager.setFocusedKey(o.key));},excludeFromTabOrder:true,preventFocusOnPress:true,"data-react-aria-prevent-focus":true,...c};}}let m=pl(o.props),f=a.hasAction?m:{};return {rowProps:{...A(i,p,f),"aria-labelledby":Bc(t,o.key)},expandButtonProps:d,...a}}function Tw(e,t){return "lastChildKey"in t?t.lastChildKey!=null?e.getItem(t.lastChildKey):null:Array.from(t.childNodes).findLast(r=>r.parentKey===t.key)}function yT(e,t,r){let{node:o,isVirtualized:n}=e,i={role:"row"};return n&&t.treeColumn==null&&(i["aria-rowindex"]=o.index+1),{rowProps:i}}function bT(e,t,r){let{gridCellProps:o,isPressed:n}=Ff(e,t,r),i=e.node.column?.key;return i!=null&&t.collection.rowHeaderColumnKeys.has(i)&&(o.role="rowheader",o.id=cT(t,e.node.parentKey,i)),{gridCellProps:o,isPressed:n}}function gT(e,t){let{key:r}=e,{checkboxProps:o}=wf(e,t);return {checkboxProps:{...o,"aria-labelledby":`${o.id} ${Bc(t,r)}`}}}function hT(e){let{isEmpty:t,isSelectAll:r,selectionMode:o}=e.selectionManager;return {checkboxProps:{"aria-label":ve(Qo,"@react-aria/table").format(o==="single"?"select":"selectAll"),isSelected:r,isDisabled:o!=="multiple"||e.collection.size===0||e.collection.rows.length===1&&e.collection.rows[0].type==="loader",isIndeterminate:!t&&!r,onChange:()=>e.selectionManager.toggleSelectAll()}}}function vT(e,t,r){let{column:o,triggerRef:n,isDisabled:i,onResizeStart:a,onResize:l,onResizeEnd:s,"aria-label":u}=e,c=ve(Qo,"@react-aria/table"),p=ee(),d=t.resizingColumn===o.key,m=useRef(d),f=useRef(null),y=useRef(false),g=t.tableState.isKeyboardNavigationDisabled,{direction:b}=Q(),x=useCallback(I=>{m.current||(f.current=t.updateResizedColumns(I.key,t.getColumnWidth(I.key)),t.startResize(I.key),t.tableState.setKeyboardNavigationDisabled(true),a?.(f.current)),m.current=true;},[t,a]),h=useCallback((I,H)=>{let U=t.updateResizedColumns(I.key,H);l?.(U),f.current=U;},[t,l]),v=useCallback(I=>{m.current&&(f.current==null&&(f.current=t.updateResizedColumns(I.key,t.getColumnWidth(I.key))),t.endResize(),t.tableState.setKeyboardNavigationDisabled(false),s?.(f.current),m.current=false,n?.current&&!y.current&&Ue(n.current)),f.current=null;},[t,n,s]),{keyboardProps:C}=Le({onKeyDown:I=>{g?(I.key==="Escape"||I.key==="Enter"||I.key===" "||I.key==="Tab")&&(I.preventDefault(),v(o)):(I.continuePropagation(),I.key==="Enter"&&x(o));}}),T=useRef(0),{moveProps:P}=In({onMoveStart(){T.current=t.getColumnWidth(o.key),x(o);},onMove(I){let{deltaX:H,deltaY:U,pointerType:q}=I;b==="rtl"&&(H*=-1),q==="keyboard"&&(U!==0&&H===0&&(H=U*-1),H*=10),H!==0&&(T.current+=H,h(o,T.current));},onMoveEnd(I){let{pointerType:H}=I;T.current=0,(H==="mouse"||H==="touch"&&y.current)&&v(o);}}),k=useCallback(I=>{g&&P.onKeyDown?.(I);},[g,P]),S=Math.floor(t.getColumnMinWidth(o.key)),w=Math.floor(t.getColumnMaxWidth(o.key));w===1/0&&(w=Number.MAX_SAFE_INTEGER);let E=Math.floor(t.getColumnWidth(o.key)),R=Yt();R==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(R="touch");let _=n?.current==null&&(R==="keyboard"||R==="virtual")&&!d?c.format("resizerDescription"):void 0,D=Tt(_),F={"aria-label":u,"aria-orientation":"horizontal","aria-labelledby":`${p} ${Of(t.tableState,o.key)}`,"aria-valuetext":c.format("columnSize",{value:E}),type:"range",min:S,max:w,value:E,...D},z=useCallback(()=>{r.current&&Ue(r.current);},[r]),N=t.resizingColumn,V=useRef(null),M=Pe(x);useEffect(()=>{if(V.current!==N&&N!=null&&N===o.key){y.current=ue(G(r.current))===r.current,M(o);let I=setTimeout(()=>z(),0),H=setTimeout(z,400);return ()=>{clearTimeout(I),clearTimeout(H);}}V.current=N;},[N,o,z,r]);let O=I=>{let H=t.getColumnWidth(o.key),U=parseFloat($(I).value);U>H?U=H+10:U=H-10,h(o,U);},{pressProps:B}=Ae({preventFocusOnPress:true,onPressStart:I=>{if(!(I.ctrlKey||I.altKey||I.metaKey||I.shiftKey||I.pointerType==="keyboard")){if(I.pointerType==="virtual"&&t.resizingColumn!=null){v(o);return}z(),I.pointerType!=="virtual"&&x(o);}},onPress:I=>{(I.pointerType==="touch"&&y.current||I.pointerType==="mouse")&&t.resizingColumn!=null&&v(o);}}),{visuallyHiddenProps:K}=Ot();return {resizerProps:A(C,{...P,onKeyDown:k},B,{style:{touchAction:"none"}}),inputProps:A(K,{id:p,onBlur:()=>{v(o);},onChange:O,disabled:i},F),isResizing:d}}function Cw(){return {rowGroupProps:{role:"rowgroup"}}}function Kf(){return Cw()}var xT=class extends kn{headerRows=[];columns=[];rows=[];rowHeaderColumnKeys=new Set;head=new Bf(-1);columnsDirty=true;expandedKeys=new Set;withExpandedKeys(t){let r=this.clone();return r.expandedKeys=t,r.frozen=this.frozen,r.rows=Array.from(r.getRows()),r}addNode(t){super.addNode(t),this.columnsDirty||=t.type==="column",t.type==="tableheader"&&(this.head=t);}getRows(){let t=[];for(let r of this)(r.type==="tablebody"||r.type==="tablefooter")&&t.push(...this.getChildren(r.key));return t}get body(){for(let t of this)if(t.type==="tablebody")return t;return new Hf(-2)}commit(t,r,o=false){this.updateColumns(o),this.firstKey=t,this.lastKey=r,this.rows=[];for(let n of this.getRows()){let i=n.lastChildKey;if(i!=null){let a=this.getItem(i);for(;a&&a.type!=="cell";)a=a.prevKey!=null?this.getItem(a.prevKey):null;if(a){let l=(a.colIndex??a.index)+(a.colSpan??1);if(l!==this.columns.length&&!o)throw new Error(`Cell count must match column count. Found ${l} cells and ${this.columns.length} columns.`)}}this.rows.push(n);}super.commit(t,r,o);}updateColumns(t){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let r=new Map,o=n=>{n.type==="column"&&(r.set(n.key,n),n.hasChildNodes||(n.index=this.columns.length,this.columns.push(n),n.props.isRowHeader&&this.rowHeaderColumnKeys.add(n.key)));for(let i of this.getChildren(n.key))o(i);};for(let n of this.getChildren(this.head.key))o(n);if(this.headerRows=Lf(r,this.columns),this.columnsDirty=false,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!t)throw new Error("A table must have at least one Column with the isRowHeader prop set to true")}get columnCount(){return this.columns.length}*[Symbol.iterator](){let t=this.firstKey;for(;t!=null;){let r=this.getItem(t);r&&(yield r),t=r?.nextKey??null;}}getFirstKey(){for(let t of this)if(t.type==="tablebody")return t.firstChildKey??null;return null}getLastKey(){let t=this.lastKey;if(t==null)return null;let r=this.getItem(t);for(;r?.lastChildKey!=null&&(r.type!=="item"||this.expandedKeys.has(r.key));)r=this.getItem(r.lastChildKey);return r?.key}getKeyAfter(t){let r=this.getItem(t);if(r?.type==="column")return r.nextKey??null;if(!r)return null;if(r.type==="item"&&r.firstChildKey!=null&&this.expandedKeys.has(r.key)){let o=this.getItem(r.firstChildKey);for(;o;){if(o.type==="item")return o.key;o=o.nextKey!=null?this.getItem(o.nextKey):null;}}return super.getKeyAfter(t)}getKeyBefore(t){let r=this.getItem(t);if(r?.type==="column")return r.prevKey??null;if(!r)return null;let o=null;if(r.prevKey!=null){for(r=this.getItem(r.prevKey);r&&(r.type!=="item"||this.expandedKeys.has(r.key))&&r.lastChildKey!=null;)r=this.getItem(r.lastChildKey);o=r?.key??null;}return o==null&&(o=r.parentKey),o!=null&&this.getItem(o)?.type==="tableheader"?null:o}getChildren(t){let r=this.getItem(t);if(!r){for(let n of this.headerRows)if(n.key===t)return n.childNodes}let o=this;return r?.type==="tablebody"||r?.type==="tablefooter"?{*[Symbol.iterator](){let n=r.firstChildKey,i=n!=null?o.getItem(n):null;for(;i;){yield i;let a=o.getKeyAfter(i.key);if(i=a!=null?o.getItem(a):null,i&&i.parentKey===r.parentKey)break}}}:{*[Symbol.iterator](){let n=o.getItem(t),i=n?.firstChildKey!=null?o.getItem(n.firstChildKey):null;for(;i&&(yield i,i=i.nextKey!=null?o.getItem(i.nextKey):null,!(n?.type==="item"&&i?.type!=="cell")););}}}clone(){let t=super.clone();return t.headerRows=this.headerRows,t.columns=this.columns,t.rows=this.rows,t.rowHeaderColumnKeys=this.rowHeaderColumnKeys,t.head=this.head,t}getTextValue(t){let r=this.getItem(t);if(!r)return "";if(r.textValue)return r.textValue;let o=this.rowHeaderColumnKeys,n=[];for(let i of this.getChildren(t)){let a=this.columns[i.index];if(o.has(a.key)&&i.textValue&&n.push(i.textValue),n.length===o.size)break}return n.join(" ")}},DT=createContext(null);forwardRef(function(t,r){let o=ce(r),n=useRef(null),i=useRef(null),[a,l]=useState(0);te(()=>{let u=n.current;for(;u&&u!==o.current&&!jt(u);)u=u.parentElement;i.current=u;},[o]),jr({ref:i,box:"border-box",onResize(){l(i.current?.clientWidth??0);}}),te(()=>{l(i.current?.clientWidth??0);},[]);let s=useMemo(()=>({tableRef:n,scrollRef:i,tableWidth:a,useTableColumnResizeState:iT,onResizeStart:t.onResizeStart,onResize:t.onResize,onResizeEnd:t.onResizeEnd}),[n,a,t.onResizeStart,t.onResize,t.onResizeEnd]);return jsx(xe.div,{render:t.render,...re(t,{global:true}),ref:o,className:t.className||"react-aria-ResizableTableContainer",style:t.style,onScroll:t.onScroll,children:jsx(DT.Provider,{value:s,children:t.children})})});var Sw=createContext(null),Ro=createContext(null),ss=createContext(null),kT=forwardRef(function(t,r){[t,r]=Re(t,r,Sw);let o=So(t),{selectionBehavior:n,selectionMode:i,disallowEmptySelection:a}=o,l=!!t.dragAndDropHooks?.useDraggableCollectionState,s=useMemo(()=>({selectionBehavior:i==="none"?null:n,selectionMode:i,disallowEmptySelection:a,allowsDragging:l}),[n,i,a,l]),u=jsx(UU.Provider,{value:s,children:jsx(wt,{...t})});return jsx(to,{content:u,createCollection:()=>new xT,children:c=>jsx(GU,{props:t,forwardedRef:r,selectionState:o,collection:c})})}),jU=forwardRef(function(t,r){let{isVirtualized:o}=useContext(ze);return o?jsx(xe.div,{...t,ref:r}):jsx(xe.table,{...t,ref:r})}),Pw={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function GU({props:e,forwardedRef:t,selectionState:r,collection:o}){[e,t]=Re(e,t,Ho);let{shouldUseVirtualFocus:n,disallowTypeAhead:i,filter:a,...l}=e,s=useContext(DT);t=ce(useMemo(()=>se(t,s?.tableRef),[t,s?.tableRef]));let[u,c]=ye(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange);o=useMemo(()=>o.withExpandedKeys(u),[o,u]);let p=aT({...l,collection:o,children:void 0,UNSAFE_selectionState:r,expandedKeys:u,onExpandedChange:c}),d=lT(p,a),{isVirtualized:m,layoutDelegate:f,dropTargetDelegate:y,CollectionRoot:g}=useContext(ze),{dragAndDropHooks:b}=e,{gridProps:x}=dT({...l,layoutDelegate:f,isVirtualized:m},d,t),h=d.selectionManager,v=!!b?.useDraggableCollectionState,C=!!b?.useDroppableCollectionState,T=useRef(v),P=useRef(C);useEffect(()=>{process.env.NODE_ENV!=="production"&&(T.current!==v&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),P.current!==C&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[v,C]);let k,S,w,E=false,R=null,_=useRef(null),{direction:D}=Q(),[F]=useState(()=>new os);if(v&&b){k=b.useDraggableCollectionState({collection:d.collection,selectionManager:h,preview:b.renderDragPreview?_:void 0}),b.useDraggableCollection({},k,t);let H=b.DragPreview;R=b.renderDragPreview?jsx(H,{ref:_,children:b.renderDragPreview}):null;}if(C&&b){S=b.useDroppableCollectionState({collection:d.collection,selectionManager:h});let H=new Ct({collection:d.collection,disabledKeys:h.disabledKeys,disabledBehavior:h.disabledBehavior,ref:t,layoutDelegate:f}),U=b.dropTargetDelegate||y||new b.ListDropTargetDelegate(o.rows,t);F.setup(U,p,D),w=b.useDroppableCollection({keyboardDelegate:H,dropTargetDelegate:F,onDropActivate:q=>{if(q.target.type==="item"){let W=q.target.key,J=p.collection.getItem(W),me=u.has(W);J&&J.hasChildNodes&&(!me||b?.isVirtualDragging?.())&&p.toggleKey(W);}},onKeyDown:q=>{let W=S?.target;if(W&&W.type==="item"&&W.dropPosition==="on"){let J=p.collection.getItem(W.key);(q.key===Pw.expand[D]&&J?.hasChildNodes&&!p.expandedKeys.has(W.key)||q.key===Pw.collapse[D]&&J?.hasChildNodes&&p.expandedKeys.has(W.key))&&p.toggleKey(W.key);}}},S,t),E=S.isDropTarget({type:"root"});}let{focusProps:z,isFocused:N,isFocusVisible:V}=oe(),M=Fe({...e,children:void 0,defaultClassName:"react-aria-Table",values:{isDropTarget:E,isFocused:N,isFocusVisible:V,state:d}}),O=!!(v&&!k?.isDisabled),B=M.style,K=null;s&&(K=s.useTableColumnResizeState({tableWidth:s.tableWidth},d),m||(B={...B,tableLayout:"fixed",width:"min-content"}));let I=re(e,{global:true});return jsxs(ct,{values:[[Ro,d],[ss,K],[Ft,{dragAndDropHooks:b,dragState:k,dropState:S}],[_n,{render:QU}],[Ho,null],[Qn,null]],children:[jsx(Et,{children:jsx(jU,{...A(I,M,x,z,w?.collectionProps),style:B,ref:t,slot:e.slot||void 0,onScroll:e.onScroll,"data-allows-dragging":O||void 0,"data-drop-target":E||void 0,"data-focused":N||void 0,"data-focus-visible":V||void 0,children:jsx(mi,{children:jsx(g,{collection:d.collection,scrollRef:s?.scrollRef??t,persistedKeys:Nl(h,b,S)})})})}),R]})}var UU=createContext(null);var Bf=class extends Ht{static type="tableheader"},WU=forwardRef(function(t,r){let{isVirtualized:o}=useContext(ze);return o?jsx(xe.div,{...t,ref:r}):jsx(xe.thead,{...t,ref:r})}),ET=Kr(Bf,(e,t)=>{let r=useContext(Ro).collection,o=En({items:r.headerRows,children:useCallback(s=>{if(s.type==="headerrow")return jsx(XU,{item:s});throw new Error("Unsupported node type in TableHeader: "+s.type)},[])}),{rowGroupProps:n}=Kf(),{hoverProps:i,isHovered:a}=ie({onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),l=Fe({...e,children:void 0,defaultClassName:"react-aria-TableHeader",values:{isHovered:a}});return jsx(WU,{...A(re(e,{global:true}),n,i),...l,ref:t,"data-hovered":a||void 0,children:o})},e=>jsx(wt,{dependencies:e.dependencies,items:e.columns,children:e.children})),qU=forwardRef(function(t,r){let{isVirtualized:o}=useContext(ze);return o?jsx("div",{...t,ref:r}):jsx("tr",{...t,ref:r})});function XU({item:e}){let t=useRef(null),r=useContext(Ro),{isVirtualized:o,CollectionBranch:n}=useContext(ze),{rowProps:i}=yT({node:e,isVirtualized:o},r),{checkboxProps:a}=hT(r);return jsx(qU,{...i,ref:t,children:jsx(ct,{values:[[oa,{slots:{selection:a}}],[wl,{slots:{selection:a}}]],children:jsx(n,{collection:r.collection,parent:e})})})}var TT=class extends Ht{static type="column"},YU=forwardRef(function(t,r){let{isVirtualized:o}=useContext(ze);return o?jsx(xe.div,{...t,ref:r}):jsx(xe.th,{...t,ref:r})}),zT=sr(TT,(e,t,r)=>{let o=ce(t),n=useContext(Ro),{isVirtualized:i}=useContext(ze),{columnHeaderProps:a,isPressed:l}=mT({node:r,isVirtualized:i},n,o),{isFocused:s,isFocusVisible:u,focusProps:c}=oe(),p=useContext(ss),d=false;if(p)d=p.resizingColumn===r.key;else if(process.env.NODE_ENV!=="production")for(let x in ["width","defaultWidth","minWidth","maxWidth"])x in r.props&&console.warn(`The ${x} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);let{hoverProps:m,isHovered:f}=ie({isDisabled:!e.allowsSorting}),y=Fe({...e,children:r.rendered,defaultClassName:"react-aria-Column",values:{isHovered:f,isPressed:l,isFocused:s,isFocusVisible:u,allowsSorting:r.props.allowsSorting,sortDirection:n.sortDescriptor?.column===r.key?n.sortDescriptor.direction:void 0,isResizing:d,startResize:()=>{if(p)p.startResize(r.key),n.setKeyboardNavigationDisabled(true);else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing")},sort:x=>{n.sort(r.key,x);}}}),g=y.style;p&&(g={...g,width:p.getColumnWidth(r.key)});let b=re(e,{global:true});return delete b.id,jsx(YU,{...A(b,a,c,m),...y,style:g,ref:o,"data-hovered":f||void 0,"data-pressed":l||void 0,"data-focused":s||void 0,"data-focus-visible":u||void 0,"data-resizing":d||void 0,"data-allows-sorting":r.props.allowsSorting||void 0,"data-sort-direction":n.sortDescriptor?.column===r.key?n.sortDescriptor.direction:void 0,children:jsx(ct,{values:[[Dw,{column:r,triggerRef:o}],[ze,Qi]],children:y.children})})}),Dw=createContext(null);forwardRef(function(t,r){let o=useContext(ss);if(!o)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");let n=ve(sE,"react-aria-components"),{onResizeStart:i,onResize:a,onResizeEnd:l}=useContext(DT),{column:s,triggerRef:u}=useContext(Dw),c=useRef(null),{resizerProps:p,inputProps:d,isResizing:m}=vT({column:s,"aria-label":t["aria-label"]||n.format("tableResizer"),onResizeStart:i,onResize:a,onResizeEnd:l,triggerRef:u},o,c),{focusProps:f,isFocused:y,isFocusVisible:g}=oe(),{hoverProps:b,isHovered:x}=ie(t),h=o.getColumnMinWidth(s.key)>=o.getColumnWidth(s.key),v=o.getColumnMaxWidth(s.key)<=o.getColumnWidth(s.key),{direction:C}=Q(),T="both";h?T=C==="rtl"?"right":"left":v?T=C==="rtl"?"left":"right":T="both";let P=ce(r),[k,S]=useState("");useEffect(()=>{if(!P.current)return;let F=X(P.current).getComputedStyle(P.current);S(F.cursor);},[P,T]);let w=Fe({...t,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:y,isFocusVisible:g,isResizing:m,isHovered:x,resizableDirection:T}}),[E,R]=useState(false),_=F=>{F.pointerType==="mouse"&&R(true);};!m&&E&&R(false);let D=re(t,{global:true});return jsxs(xe.div,{ref:P,role:"presentation",...A(D,w,p,{onPointerDown:_},b),"data-hovered":x||void 0,"data-focused":y||void 0,"data-focus-visible":g||void 0,"data-resizing":m||void 0,"data-resizable-direction":T,children:[w.children,jsx("input",{ref:c,...A(d,f)}),m&&E&&R2.createPortal(jsx("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:k}}),G(P.current).body)]})});var Hf=class extends Yi{static type="tablebody"},JU=forwardRef(function(t,r){let{isVirtualized:o}=useContext(ze);return o?jsx(xe.div,{...t,ref:r}):jsx(xe.tbody,{...t,ref:r})}),wT=Kr(Hf,(e,t,r)=>{let o=useContext(Ro),{isVirtualized:n}=useContext(ze),i=o.collection,{CollectionBranch:a}=useContext(ze),{dragAndDropHooks:l,dropState:s}=useContext(Ft),u=!!l?.useDroppableCollectionState&&!s?.isDisabled,c=u&&!!s&&(s.isDropTarget({type:"root"})??false),p=i.size===0,d={isDropTarget:c,isEmpty:p},m=Fe({...e,children:void 0,defaultClassName:"react-aria-TableBody",values:d}),f,y=i.columnCount;if(p&&e.renderEmptyState&&o){let x={},h={},v={};n?(h["aria-colspan"]=y,v={display:"contents"}):h.colSpan=y,f=jsx(as,{role:"row",...x,style:v,children:jsx(ls,{role:"rowheader",...h,style:v,children:e.renderEmptyState(d)})});}let{rowGroupProps:g}=Kf(),b=re(e,{global:true});return jsxs(JU,{...A(b,m,g),ref:t,"data-empty":p||void 0,children:[u&&jsx(nW,{}),jsx(a,{collection:i,parent:r,renderDropIndicator:ca(l,s)}),f]})});forwardRef(function(t,r){let{isVirtualized:o}=useContext(ze);return o?jsx(xe.div,{...t,ref:r}):jsx(xe.tfoot,{...t,ref:r})});var kw=createContext({isFocusVisibleWithinRow:false}),CT=class extends Ht{static type="item";filter(t,r,o){let n=t.getChildren(this.key);for(let i of n)if(o(i.textValue,i)){let a=this.clone();return r.addDescendants(a,t),a}return null}},as=forwardRef(function(t,r){let{isVirtualized:o}=useContext(ze);return o?jsx(xe.div,{...t,ref:r}):jsx(xe.tr,{...t,ref:r})}),RT=Kr(CT,(e,t,r)=>{let o=ce(t),n=useContext(Ro),{dragAndDropHooks:i,dragState:a,dropState:l}=useContext(Ft),{isVirtualized:s,CollectionBranch:u}=useContext(ze),c=a&&!(a.isDisabled||a.selectionManager.isDisabled(r.key)),{rowProps:p,expandButtonProps:d,...m}=fT({node:r,shouldSelectOnPressUp:!!a,isVirtualized:s},n,o),{isFocused:f,isFocusVisible:y,focusProps:g}=oe(),{isFocusVisible:b,focusProps:x}=oe({within:true}),{hoverProps:h,isHovered:v}=ie({isDisabled:!m.allowsSelection&&!m.hasAction&&!c,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{checkboxProps:C}=gT({key:r.key},n),T;a&&i&&(T=i.useDraggableItem({key:r.key,hasDragButton:true},a,o));let P,k=useRef(null),{visuallyHiddenProps:S}=Ot();l&&i&&(P=i.useDropIndicator({target:{type:"item",key:r.key,dropPosition:"on"}},l,k));let w=useRef(null);useEffect(()=>{a&&!w.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');},[]);let E=a&&a.isDragging(r.key),{children:R,..._}=e,D=e.hasChildItems||n.collection.getItem(r.lastChildKey)?.type!=="cell",F=D&&n.expandedKeys.has(r.key),z=Fe({..._,defaultClassName:"react-aria-Row",defaultStyle:{"--table-row-level":r.level+1},values:{...m,state:n,isHovered:v,isFocused:f,isFocusVisible:y,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,isDragging:E,isDropTarget:P?.isDropTarget,isFocusVisibleWithin:b,id:r.key,hasChildItems:D,isExpanded:F,level:r.level+1}}),N=re(e,{global:true});return delete N.id,delete N.onClick,jsxs(Fragment,{children:[P&&!P.isHidden&&jsx(as,{role:"row",style:{height:0},children:jsx(ls,{role:"gridcell",colSpan:n.collection.columnCount,style:{padding:0},children:jsx("div",{role:"button",...S,...P.dropIndicatorProps,ref:k})})}),jsx(as,{...A(N,z,p,g,h,T?.dragProps,x),ref:o,"data-disabled":m.isDisabled||void 0,"data-selected":m.isSelected||void 0,"data-hovered":v||void 0,"data-focused":m.isFocused||void 0,"data-focus-visible":y||void 0,"data-pressed":m.isPressed||void 0,"data-dragging":E||void 0,"data-drop-target":P?.isDropTarget||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode,"data-focus-visible-within":b||void 0,"data-expanded":F||void 0,"data-has-child-items":D||void 0,"data-level":r.level+1,children:jsx(ct,{values:[[oa,{slots:{[Qr]:{},selection:C}}],[wl,{slots:{[Qr]:{},selection:C}}],[ro,{slots:{[Qr]:{},chevron:d,drag:{...T?.dragButtonProps,ref:w,style:{pointerEvents:"none"}}}}],[Mn,{isSelected:m.isSelected}],[kw,{isFocusVisibleWithinRow:b}]],children:jsx(u,{collection:n.collection,parent:r})})})]})},e=>{if(e.id==null&&typeof e.children=="function")throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");let t=[e.value].concat(e.dependencies);return jsx(wt,{dependencies:t,items:e.columns,idScope:e.id,children:e.children})}),PT=class extends Ht{static type="cell"},ls=forwardRef(function(t,r){let{isVirtualized:o}=useContext(ze);return o?jsx(xe.div,{...t,ref:r}):jsx(xe.td,{...t,ref:r})}),IT=sr(PT,(e,t,r)=>{let o=ce(t),n=useContext(Ro),{dragState:i}=useContext(Ft),{isVirtualized:a}=useContext(ze);r.column=n.collection.columns[r.index];let{gridCellProps:l,isPressed:s}=bT({node:r,shouldSelectOnPressUp:!!i,isVirtualized:a},n,o),{isFocused:u,isFocusVisible:c,focusProps:p}=oe(),{hoverProps:d,isHovered:m}=ie({}),{isFocusVisibleWithinRow:f}=useContext(kw),y=r.parentKey!=null?n.selectionManager.isSelected(r.parentKey):false,g=r.colIndex||r.index,b=n.collection.getItem(r.parentKey),x=b.props.hasChildItems||n.collection.getItem(b.lastChildKey)?.type!=="cell",h=x&&n.expandedKeys.has(r.parentKey),v=n.selectionManager.isDisabled(r.parentKey),C=Fe({...e,defaultClassName:"react-aria-Cell",values:{isFocused:u,isFocusVisible:c,isFocusVisibleWithinRow:f,isPressed:s,isHovered:m,isSelected:y,id:r.key,columnIndex:g,hasChildItems:x,isExpanded:h,isDisabled:v,level:b.level+1,isTreeColumn:r.column.key===n.treeColumn}}),T=re(e,{global:true});return delete T.id,jsx(ls,{...A(T,C,l,p,d),ref:o,"data-focused":u||void 0,"data-focus-visible":c||void 0,"data-focus-visible-within-row":f||void 0,"data-pressed":s||void 0,"data-selected":y||void 0,"data-column-index":g,"data-expanded":h||void 0,"data-has-child-items":x||void 0,"data-level":b.level+1,"data-tree-column":r.column.key===n.treeColumn||void 0,"data-disabled":v||void 0,children:jsx(ze.Provider,{value:Qi,children:C.children})})});function QU(e,t){t=ce(t);let{dragAndDropHooks:r,dropState:o}=useContext(Ft),n=useRef(null),{dropIndicatorProps:i,isHidden:a,isDropTarget:l}=r.useDropIndicator(e,o,n);if(a)return null;let s=o&&e.target.type==="item"?(o.collection.getItem(e.target.key)?.level||0)+1:1;return jsx(oW,{...e,dropIndicatorProps:i,isDropTarget:l,buttonRef:n,level:s,ref:t})}var eW=forwardRef(function(t,r){let{isVirtualized:o}=useContext(ze);return o?jsx(xe.div,{...t,ref:r}):jsx(xe.tr,{...t,ref:r})}),tW=forwardRef(function(t,r){let{isVirtualized:o}=useContext(ze);return o?jsx(xe.div,{...t,ref:r}):jsx(xe.td,{...t,ref:r})});function rW(e,t){let{dropIndicatorProps:r,isDropTarget:o,buttonRef:n,level:i,...a}=e,l=useContext(Ro),{visuallyHiddenProps:s}=Ot(),u=Fe({...a,defaultClassName:"react-aria-DropIndicator",defaultStyle:{"--table-row-level":i+1},values:{isDropTarget:o}});return jsx(eW,{...re(e,{global:true}),...u,role:"row",ref:t,"data-drop-target":o||void 0,"aria-level":i,children:jsxs(tW,{role:"gridcell",colSpan:l.collection.columnCount,style:{padding:0},children:[jsx("div",{...s,role:"button",...r,ref:n}),u.children]})})}var oW=forwardRef(rW);function nW(){let e=useContext(Ro),{dragAndDropHooks:t,dropState:r}=useContext(Ft),o=useRef(null),{dropIndicatorProps:n}=t.useDropIndicator({target:{type:"root"}},r,o),i=r.isDropTarget({type:"root"}),{visuallyHiddenProps:a}=Ot();return !i&&n["aria-hidden"]?null:jsx(as,{role:"row","aria-hidden":n["aria-hidden"],style:{height:0},children:jsx(ls,{role:"gridcell",colSpan:e.collection.columnCount,style:{padding:0},children:jsx("div",{role:"button",...a,...n,ref:o})})})}var _T=sr(Dn,function(t,r,o){let n=useContext(Ro),{isVirtualized:i}=useContext(ze),{isLoading:a,onLoadMore:l,scrollOffset:s,...u}=t,c=n.collection.columns.length,p=useRef(null),d=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:p,scrollOffset:s}),[l,s,n?.collection]);fa(d,p);let m=Fe({...u,children:o.rendered,defaultClassName:"react-aria-TableLoadingIndicator",defaultStyle:{"--table-row-level":o.level+1},values:void 0}),f={},y={},g={};return i?(y["aria-colspan"]=c,g={display:"contents"}):y.colSpan=c,jsxs(Fragment,{children:[jsx(as,{style:{height:0},inert:da(true),children:jsx(ls,{style:{padding:0,border:0},children:jsx("div",{"data-testid":"loadMoreSentinel",ref:p,style:{position:"relative",height:1,width:1}})})}),a&&m.children&&jsx(as,{...A(re(t,{global:true}),f),...m,role:"row",ref:r,"aria-level":o.level+1,"data-level":o.level+1,children:jsx(ls,{role:"rowheader",...y,style:g,children:m.children})})]})});var Gt=class e{x;y;constructor(t=0,r=0){this.x=t,this.y=r;}copy(){return new e(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}isOrigin(){return this.x===0&&this.y===0}};var Se=class e{x;y;width;height;constructor(t=0,r=0,o=0,n=0){this.x=t,this.y=r,this.width=o,this.height=n;}get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new Gt(this.x,this.y)}get topRight(){return new Gt(this.maxX,this.y)}get bottomLeft(){return new Gt(this.x,this.maxY)}get bottomRight(){return new Gt(this.maxX,this.maxY)}intersects(t){return (process.env.NODE_ENV==="test"&&!process.env.VIRT_ON||this.area>0&&t.area>0)&&this.x<=t.x+t.width&&t.x<=this.x+this.width&&this.y<=t.y+t.height&&t.y<=this.y+this.height}containsRect(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.maxX&&this.maxY>=t.maxY}containsPoint(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.x&&this.maxY>=t.y}getCornerInRect(t){for(let r of ["topLeft","topRight","bottomLeft","bottomRight"])if(t.containsPoint(this[r]))return r;return null}equals(t){return t.x===this.x&&t.y===this.y&&t.width===this.width&&t.height===this.height}pointEquals(t){return this.x===t.x&&this.y===t.y}sizeEquals(t){return this.width===t.width&&this.height===t.height}union(t){let r=Math.min(this.x,t.x),o=Math.min(this.y,t.y),n=Math.max(this.maxX,t.maxX)-r,i=Math.max(this.maxY,t.maxY)-o;return new e(r,o,n,i)}intersection(t){if(!this.intersects(t))return new e(0,0,0,0);let r=Math.max(this.x,t.x),o=Math.max(this.y,t.y);return new e(r,o,Math.min(this.maxX,t.maxX)-r,Math.min(this.maxY,t.maxY)-o)}copy(){return new e(this.x,this.y,this.width,this.height)}};var Ie=class e{width;height;constructor(t=0,r=0){this.width=Math.max(t,0),this.height=Math.max(r,0);}copy(){return new e(this.width,this.height)}equals(t){return this.width===t.width&&this.height===t.height}get area(){return this.width*this.height}};var iW=0,$f=class{virtualizer;layoutInfo;content;rendered;viewType;key;children;reusableViews;constructor(t,r){this.virtualizer=t,this.key=++iW,this.viewType=r,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null;}prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null;}getReusableView(t){let r=this.reusableViews.get(t);return r&&r.length>0?r.shift():new MT(this.virtualizer,this,t)}reuseChild(t){t.prepareForReuse();let r=this.reusableViews.get(t.viewType);r||(r=[],this.reusableViews.set(t.viewType,r)),r.push(t);}},jf=class extends $f{constructor(t){super(t,"root");}},MT=class extends $f{parent;constructor(t,r,o){super(t,o),this.parent=r;}};function zw(e,t){if(e===t)return true;if(e.size!==t.size)return false;for(let r of e)if(!t.has(r))return false;return true}var Gf=class{startTime=0;velocity=new Gt(0,0);visibleRect=new Se;setVisibleRect(t){let r=performance.now()-this.startTime;r<500&&(t.x!==this.visibleRect.x&&r>0&&(this.velocity.x=(t.x-this.visibleRect.x)/r),t.y!==this.visibleRect.y&&r>0&&(this.velocity.y=(t.y-this.visibleRect.y)/r)),this.startTime=performance.now(),this.visibleRect=t;}getOverscannedRect(){let t=this.visibleRect.copy(),r=this.visibleRect.height/3;t.height+=r,this.velocity.y<0&&(t.y-=r);let o=this.visibleRect.width/3;return t.width+=o,this.velocity.x<0&&(t.x-=o),t}};var Uf=class{delegate;collection;layout;contentSize;visibleRect;size;persistedKeys;_visibleViews;_renderedContent;_rootView;_isScrolling;_invalidationContext;_overscanManager;constructor(t){this.delegate=t.delegate,this.collection=t.collection,this.layout=t.layout,this.contentSize=new Ie,this.visibleRect=new Se,this.size=new Ie,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new jf(this),this._isScrolling=false,this._invalidationContext={},this._overscanManager=new Gf;}isPersistedKey(t){if(this.persistedKeys.has(t))return true;for(let r of this.persistedKeys)for(;r!=null;){let o=this.layout.getLayoutInfo(r);if(!o||o.parentKey==null)break;if(r=o.parentKey,r===t)return true}return false}getParentView(t){return t.parentKey!=null?this._visibleViews.get(t.parentKey):this._rootView}getReusableView(t){let o=this.getParentView(t).getReusableView(t.type);return o.layoutInfo=t,this._renderView(o),o}_renderView(t){if(t.layoutInfo){let{type:r,key:o,content:n}=t.layoutInfo;t.content=n||this.collection.getItem(o),t.rendered=this._renderContent(r,t.content);}}_renderContent(t,r){let o=r!=null?this._renderedContent.get(r):null;if(o!=null)return o;let n=this.delegate.renderView(t,r);return r&&this._renderedContent.set(r,n),n}keyAtPoint(t){let r=new Se(t.x,t.y,1,1),o=r.area===0?[]:this.layout.getVisibleLayoutInfos(r);for(let n of o)if(n.rect.intersects(r))return n.key;return null}relayout(t={}){this.layout.update(t),this.contentSize=this.layout.getContentSize();let r=this.visibleRect,o=t.contentChanged?0:r.x,n=t.contentChanged?0:r.y;if(o=Math.max(0,Math.min(this.contentSize.width-r.width,o)),n=Math.max(0,Math.min(this.contentSize.height-r.height,n)),o!==r.x||n!==r.y){let i=new Se(o,n,r.width,r.height);this.delegate.setVisibleRect(i);}else this.updateSubviews();}getVisibleLayoutInfos(){let t=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,r=t&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"),o=t&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"),n;t&&!(r&&o)?n=new Se(0,0,this.contentSize.width,this.contentSize.height):n=this._overscanManager.getOverscannedRect();let i=this.layout.getVisibleLayoutInfos(n),a=new Map;for(let l of i)a.set(l.key,l);return a}updateSubviews(){let t=this.getVisibleLayoutInfos(),r=new Set;for(let[o,n]of this._visibleViews){let i=t.get(o);(!i||n.parent!==this.getParentView(i))&&(this._visibleViews.delete(o),n.parent.reuseChild(n),r.add(n));}for(let[o,n]of t){let i=this._visibleViews.get(o);if(!i)i=this.getReusableView(n),i.parent.children.add(i),this._visibleViews.set(o,i),r.delete(i);else {i.layoutInfo=n;let a=this.collection.getItem(n.key);i.content!==a&&(i.content!=null&&this._renderedContent.delete(i.content),this._renderView(i));}}for(let o of r)o.parent.children.delete(o),o.parent.reusableViews.clear();if(!this._isScrolling)for(let o of t.keys()){let n=this._visibleViews.get(o);n.parent.children.delete(n),n.parent.children.add(n);}}render(t){let r=this,o=false,n=false,i=false,a=false,l=false,s=false;if(t.collection!==this.collection&&(r.collection=t.collection,o=true),(t.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),t.layout.virtualizer=this,r.layout=t.layout,o=true),t.persistedKeys&&!zw(t.persistedKeys,this.persistedKeys)&&(r.persistedKeys=t.persistedKeys,s=true),!this.visibleRect.equals(t.visibleRect)||!this.size.equals(t.size)){this._overscanManager.setVisibleRect(t.visibleRect);let u=new Se(this.visibleRect.x,this.visibleRect.y,this.size.width,this.size.height),c=new Se(t.visibleRect.x,t.visibleRect.y,t.size.width,t.size.height);this.layout.shouldInvalidate(c,u)?(n=!t.visibleRect.pointEquals(this.visibleRect),i=!this.size.equals(t.size),o=true):s=true,r.visibleRect=t.visibleRect,r.size=t.size;}return t.invalidationContext!==this._invalidationContext&&(t.invalidationContext&&(i||=t.invalidationContext.sizeChanged||false,n||=t.invalidationContext.offsetChanged||false,a||=t.invalidationContext.itemSizeChanged||false,l||=t.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&t.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(t.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions),o||=a||i||n||l),this._invalidationContext=t.invalidationContext),t.isScrolling!==this._isScrolling&&(this._isScrolling=t.isScrolling,t.isScrolling||(s=true)),o?this.relayout({offsetChanged:n,sizeChanged:i,itemSizeChanged:a,layoutOptionsChanged:l,layoutOptions:this._invalidationContext.layoutOptions}):s&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(t){return this._visibleViews.get(t)}invalidate(t){this.delegate.invalidate(t);}updateItemSize(t,r){if(!this.layout.updateItemSize)return;this.layout.updateItemSize(t,r)&&this.invalidate({itemSizeChanged:true});}};var sW=typeof document<"u"?Un.useLayoutEffect:()=>{};function LT(e){let[t,r]=useState(new Se(0,0,0,0)),[o,n]=useState(new Ie),[i,a]=useState(false),[l,s]=useState({}),u=useRef(false),[c]=useState(()=>new Uf({collection:e.collection,layout:e.layout,delegate:{setVisibleRect(b){r(b),u.current=true;},renderView:e.renderView,invalidate:s}}));sW(()=>{u.current&&(u.current=false,e.onVisibleRectChange(t));});let p=useMemo(()=>e.layoutOptions!=null?{...l,layoutOptions:e.layoutOptions}:l,[l,e.layoutOptions]),d=c.render({layout:e.layout,collection:e.collection,persistedKeys:e.persistedKeys,layoutOptions:e.layoutOptions,visibleRect:t,size:o,invalidationContext:p,isScrolling:i}),m=c.contentSize,f=useCallback(()=>{a(true);},[]),y=useCallback(()=>{a(false);},[]);return useMemo(()=>({virtualizer:c,visibleViews:d,setVisibleRect:r,size:o,setSize:n,contentSize:m,isScrolling:i,startScrolling:f,endScrolling:y}),[c,d,r,o,n,m,i,f,y])}var On=class{virtualizer=null;shouldInvalidate(t,r){return t.width!==r.width||t.height!==r.height}shouldInvalidateLayoutOptions(t,r){return t!==r}update(t){}getItemRect(t){return this.getLayoutInfo(t)?.rect??null}getVisibleRect(){return this.virtualizer.visibleRect}};var gt=class e{type;key;parentKey;content;rect;estimatedSize;isSticky;opacity;transform;zIndex;allowOverflow;constructor(t,r,o){this.type=t,this.key=r,this.parentKey=null,this.content=null,this.rect=o,this.estimatedSize=false,this.isSticky=false,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=false;}copy(){let t=new e(this.type,this.key,this.rect.copy());return t.estimatedSize=this.estimatedSize,t.opacity=this.opacity,t.transform=this.transform,t.parentKey=this.parentKey,t.content=this.content,t.isSticky=this.isSticky,t.zIndex=this.zIndex,t.allowOverflow=this.allowOverflow,t}};var xr={minItemSize:new Ie(200,200),maxItemSize:new Ie(1/0,1/0),preserveAspectRatio:false,minSpace:new Ie(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48},Uc=class extends On{gap=xr.minSpace;dropIndicatorThickness=2;numColumns=0;direction="ltr";contentSize=new Ie;layoutInfos=new Map;margin=0;shouldInvalidateLayoutOptions(t,r){return t.maxColumns!==r.maxColumns||t.dropIndicatorThickness!==r.dropIndicatorThickness||t.preserveAspectRatio!==r.preserveAspectRatio||!(t.minItemSize||xr.minItemSize).equals(r.minItemSize||xr.minItemSize)||!(t.maxItemSize||xr.maxItemSize).equals(r.maxItemSize||xr.maxItemSize)||!(t.minSpace||xr.minSpace).equals(r.minSpace||xr.minSpace)||t.maxHorizontalSpace!==r.maxHorizontalSpace||t.loaderHeight!==r.loaderHeight||t.direction!==r.direction}update(t){let{minItemSize:r=xr.minItemSize,maxItemSize:o=xr.maxItemSize,preserveAspectRatio:n=xr.preserveAspectRatio,minSpace:i=xr.minSpace,maxHorizontalSpace:a=xr.maxSpace,maxColumns:l=xr.maxColumns,dropIndicatorThickness:s=xr.dropIndicatorThickness,loaderHeight:u=xr.loaderHeight,direction:c="ltr"}=t.layoutOptions||{};this.dropIndicatorThickness=s,this.direction=c;let p=this.virtualizer.size.width,d=Math.min(o.width,p),m=Number.isFinite(o.height)?o.height:Math.floor(r.height/r.width*d),f=Math.floor(p/(r.width+i.width)),y=Math.max(1,Math.min(l,f));this.numColumns=y;let g=p-i.width*Math.max(0,y),b=Math.floor(g/y);b=Math.max(r.width,Math.min(d,b));let x=(b-r.width)/Math.max(1,d-r.width),h=r.height+Math.floor((m-r.height)*x);h=Math.max(r.height,Math.min(m,h));let v=Math.min(Math.max(a,i.width),Math.floor((p-y*b)/(y+1)));this.gap=new Ie(v,i.height),this.margin=Math.floor((p-y*b-v*(y+1))/2);let C=this.virtualizer.collection,T=C.size,P=C.getLastKey();for(let F=0;F<2&&P!=null;F++){if(C.getItem(P)?.type==="skeleton"){T++;break}P=C.getKeyBefore(P);}let k=Math.ceil(T/y),S=C[Symbol.iterator](),w=k>0?i.height:0,E=new Map,R=null,_=0;for(let F=0;F<k;F++){let z=0,N=[];for(let V=0;V<y;V++){let M=R||S.next().value;if(!M)break;if(M.type==="loader")continue;M.type==="skeleton"&&(R=M);let O=R?`${R.key}-${_++}`:M.key,B=this.layoutInfos.get(O),K=M;R&&(K=B&&B.content.key===O?B.content:{...R,key:O});let I=v+V*(b+v)+this.margin,H=h,U=!n;B&&U&&(H=B.rect.height,U=t.layoutOptionsChanged||t.sizeChanged||B.estimatedSize||B.content!==K);let q=new Se(I,w,b,H),W=new gt(M.type,O,q);W.estimatedSize=U,W.allowOverflow=true,W.content=K,E.set(O,W),N.push(W),z=Math.max(z,W.rect.height);}for(let V of N)V.rect.height=z;w+=z+i.height,R&&F===k-1&&w<this.virtualizer.size.height&&k++;}let D=C.getItem(C.getLastKey());if(D?.type==="loader"){(_>0||!D.props.isLoading)&&(u=0);let F=p-v*2,z=new Se(v,w,F,u),N=new gt("loader",D.key,z);E.set(D.key,N),w=N.rect.maxY;}this.layoutInfos=E,this.contentSize=new Ie(this.virtualizer.size.width,w);}getLayoutInfo(t){return this.layoutInfos.get(t)||null}getContentSize(){return this.contentSize}getVisibleLayoutInfos(t){let r=[];for(let o of this.layoutInfos.values())(o.rect.intersects(t)||this.virtualizer.isPersistedKey(o.key)||o.type==="loader")&&r.push(o);return r}updateItemSize(t,r){let o=this.layoutInfos.get(t);if(!r||!o)return false;if(r.height!==o.rect.height){let n=o.copy();return n.rect.height=r.height,n.estimatedSize=false,this.layoutInfos.set(t,n),true}return false}getDropTargetFromPoint(t,r,o){if(this.layoutInfos.size===0)return {type:"root"};t+=this.virtualizer.visibleRect.x,r+=this.virtualizer.visibleRect.y,this.direction==="rtl"&&this.numColumns>1&&(t=this.contentSize.width-t);let n=null;if(this.numColumns===1){let c=new Se(t,Math.max(0,r-this.gap.height),1,Math.max(1,this.gap.height*2)),p=this.getVisibleLayoutInfos(c),d=1/0;for(let m of p){if(!m.rect.intersects(c))continue;let f=Math.abs(m.rect.y-r),y=Math.abs(m.rect.maxY-r),g=Math.min(f,y);g<d&&(d=g,n=m.key);}}else {let c=new Se(Math.max(0,t-this.gap.width),r,this.gap.width*2,1),p=this.getVisibleLayoutInfos(c),d=1/0;for(let m of p){if(!m.rect.intersects(c))continue;let f=Math.abs(m.rect.x-t),y=Math.abs(m.rect.maxX-t),g=Math.min(f,y);g<d&&(d=g,n=m.key);}}let i=n!=null?this.getLayoutInfo(n):null;if(!i)return {type:"root"};let a={type:"item",key:i.key,dropPosition:"on"},l=this.numColumns===1?r:t,s=this.numColumns===1?i.rect.y:i.rect.x,u=this.numColumns===1?i.rect.height:i.rect.width;if(o(a))l<s+5?a.dropPosition="before":l>s+u-5&&(a.dropPosition="after");else {let c=s+u/2;l<=c&&o({...a,dropPosition:"before"})?a.dropPosition="before":l>=c&&o({...a,dropPosition:"after"})&&(a.dropPosition="after");}return a}getDropTargetLayoutInfo(t){let r=this.getLayoutInfo(t.key),o;return this.numColumns===1?o=new Se(r.rect.x,t.dropPosition==="before"?r.rect.y-this.gap.height/2-this.dropIndicatorThickness/2:r.rect.maxY+this.gap.height/2-this.dropIndicatorThickness/2,r.rect.width,this.dropIndicatorThickness):o=new Se(t.dropPosition==="before"?r.rect.x-this.gap.width/2-this.dropIndicatorThickness/2:r.rect.maxX+this.gap.width/2-this.dropIndicatorThickness/2,r.rect.y,this.dropIndicatorThickness,r.rect.height),new gt("dropIndicator",t.key+":"+t.dropPosition,o)}};var Ma=48,en=class extends On{rowSize;orientation;estimatedRowSize;headingSize;estimatedHeadingSize;loaderSize;dropIndicatorThickness;gap;padding;layoutNodes;contentSize;lastCollection;rootNodes;invalidateEverything;validRect;requestedRect;constructor(t={}){super(),this.rowSize=t?.rowSize??t?.rowHeight??null,this.orientation=t.orientation??"vertical",this.estimatedRowSize=t?.estimatedRowSize??t?.estimatedRowHeight??null,this.headingSize=t?.headingSize??t?.headingHeight??null,this.estimatedHeadingSize=t?.estimatedHeadingSize??t?.estimatedHeadingHeight??null,this.loaderSize=t?.loaderSize??t?.loaderHeight??null,this.dropIndicatorThickness=t.dropIndicatorThickness||2,this.gap=t.gap||0,this.padding=t.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=false,this.validRect=new Se,this.requestedRect=new Se,this.contentSize=new Ie;}get collection(){return this.virtualizer.collection}get rowHeight(){return this.rowSize}get estimatedRowHeight(){return this.estimatedRowSize}get headingHeight(){return this.headingSize}get estimatedHeadingHeight(){return this.estimatedHeadingSize}get loaderHeight(){return this.loaderSize}getLayoutInfo(t){return this.ensureLayoutInfo(t),this.layoutNodes.get(t)?.layoutInfo||null}getVisibleLayoutInfos(t){let r=this.orientation==="horizontal"?"x":"y",o=this.orientation==="horizontal"?"width":"height";if(t[o]>1){let a=(this.rowSize??this.estimatedRowSize??Ma)+this.gap;t=t.copy();let l=Math.floor(t[r]/a)*a,s=t[o]+t[r]-l;t[r]=l,t[o]=Math.ceil(s/a)*a;}this.layoutIfNeeded(t);let n=[],i=a=>{for(let l of a)this.isVisible(l,t)&&(n.push(l.layoutInfo),l.children&&i(l.children));};return i(this.rootNodes),n}layoutIfNeeded(t){if(this.lastCollection){this.requestedRect.containsRect(t)||(this.requestedRect=this.requestedRect.union(t),this.rootNodes=this.buildCollection());for(let r of this.virtualizer.persistedKeys)if(this.ensureLayoutInfo(r))return}}ensureLayoutInfo(t){return !this.layoutNodes.has(t)&&this.requestedRect.area<this.contentSize.area&&this.lastCollection?(this.requestedRect=new Se(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new Se(0,0,this.contentSize.width,this.contentSize.height),true):false}isVisible(t,r){return t.layoutInfo.rect.intersects(r)||t.layoutInfo.isSticky||t.layoutInfo.type==="header"||t.layoutInfo.type==="loader"||this.virtualizer.isPersistedKey(t.layoutInfo.key)}shouldInvalidateEverything(t){let r=t.layoutOptions;return t.sizeChanged||this.rowSize!==(r?.rowSize??r?.rowHeight??this.rowSize)||this.orientation!==(r?.orientation??this.orientation)||this.headingSize!==(r?.headingSize??r?.headingHeight??this.headingSize)||this.loaderSize!==(r?.loaderSize??r?.loaderHeight??this.loaderSize)||this.gap!==(r?.gap??this.gap)||this.padding!==(r?.padding??this.padding)}shouldInvalidateLayoutOptions(t,r){return (t?.rowSize??t?.rowHeight)!==(r?.rowSize??r?.rowHeight)||t.orientation!==r.orientation||(t?.estimatedRowSize??t?.estimatedRowHeight)!==(r?.estimatedRowSize??r?.estimatedRowHeight)||(t?.headingSize??t?.headingHeight)!==(r?.headingSize??r?.headingHeight)||(t?.estimatedHeadingSize??t?.estimatedHeadingHeight)!==(r?.estimatedHeadingSize??r?.estimatedHeadingHeight)||(t?.loaderSize??t?.loaderHeight)!==(r?.loaderSize??r?.loaderHeight)||t.dropIndicatorThickness!==r.dropIndicatorThickness||t.gap!==r.gap||t.padding!==r.padding}update(t){let r=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(t),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let o=t.layoutOptions;if(this.rowSize=o?.rowSize??o?.rowHeight??this.rowSize,this.orientation=o?.orientation??this.orientation,this.estimatedRowSize=o?.estimatedRowSize??o?.estimatedRowHeight??this.estimatedRowSize,this.headingSize=o?.headingSize??o?.headingHeight??this.headingSize,this.estimatedHeadingSize=o?.estimatedHeadingSize??o?.estimatedHeadingHeight??this.estimatedHeadingSize,this.loaderSize=o?.loaderSize??o?.loaderHeight??this.loaderSize,this.dropIndicatorThickness=o?.dropIndicatorThickness??this.dropIndicatorThickness,this.gap=o?.gap??this.gap,this.padding=o?.padding??this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&r!==this.lastCollection)for(let n of this.lastCollection.getKeys())r.getItem(n)||this.layoutNodes.get(n)&&this.layoutNodes.delete(n);this.lastCollection=r,this.invalidateEverything=false,this.validRect=this.requestedRect.copy();}buildCollection(t=this.padding){let r=this.virtualizer.collection,o=this.orientation==="horizontal"?"x":"y",n=this.orientation==="horizontal"?"maxX":"maxY",i=uW(r,u=>u.type!=="content"),a=i.filter(u=>u.type==="loader"),l=[],s=r?.size===0;s&&(t=0);for(let u of i){let c=(this.rowSize??this.estimatedRowSize??Ma)+this.gap;if(u.type==="item"&&t+c<this.requestedRect[o]&&!this.isValid(u,t)){t+=c;continue}let p=this.orientation==="horizontal"?this.buildChild(u,t,this.padding,null):this.buildChild(u,this.padding,t,null);if(t=p.layoutInfo.rect[n]+this.gap,l.push(p),u.type==="loader"){let d=a.indexOf(u);a.splice(d,1);}if((u.type==="item"||u.type==="loader")&&t>this.requestedRect[n]){let d=i.indexOf(u);for(let m of a){let f=i.indexOf(m);t+=(f-d-1)*c;let y=this.orientation==="horizontal"?this.buildChild(m,t,this.padding,null):this.buildChild(m,this.padding,t,null);l.push(y),t=y.layoutInfo.rect[n],d=f;}t+=(i.length-d-1)*c;break}}return t=Math.max(t-this.gap,0),t+=s?0:this.padding,this.contentSize=this.orientation==="horizontal"?new Ie(t,this.virtualizer.size.height):new Ie(this.virtualizer.size.width,t),l}isValid(t,r){let o=this.layoutNodes.get(t.key),n=this.orientation==="horizontal"?"x":"y";return !this.invalidateEverything&&!!o&&o.node===t&&r===o.layoutInfo.rect[n]&&o.layoutInfo.rect.intersects(this.validRect)&&o.validRect.containsRect(o.layoutInfo.rect.intersection(this.requestedRect))}buildChild(t,r,o,n){if(this.isValid(t,this.orientation==="horizontal"?r:o))return this.layoutNodes.get(t.key);let i=this.buildNode(t,r,o);return i.layoutInfo.parentKey=n??null,i.layoutInfo.allowOverflow=true,this.layoutNodes.set(t.key,i),i}buildNode(t,r,o){switch(t.type){case "section":return this.buildSection(t,r,o);case "item":return this.buildItem(t,r,o);case "header":return this.buildSectionHeader(t,r,o);case "loader":return this.buildLoader(t,r,o);case "separator":return this.buildItem(t,r,o);default:throw new Error("Unsupported node type: "+t.type)}}buildLoader(t,r,o){let n=new Se(r,o,this.padding,0),i=new gt(t.type,t.key,n);return this.orientation==="horizontal"?(n.height=this.virtualizer.contentSize.height-this.padding-o,n.width=t.props.isLoading?this.loaderSize??this.rowSize??this.estimatedRowSize??Ma:0):(n.width=this.virtualizer.contentSize.width-this.padding-r,n.height=t.props.isLoading?this.loaderSize??this.rowSize??this.estimatedRowSize??Ma:0),{layoutInfo:i,validRect:n.intersection(this.requestedRect)}}buildSection(t,r,o){let n=this.virtualizer.collection,i=this.virtualizer.size.width-this.padding-r,a=this.virtualizer.size.height-this.padding-o,l=this.orientation==="horizontal"?new Se(r,o,0,a):new Se(r,o,i,0),s=new gt(t.type,t.key,l),u=this.orientation==="horizontal"?r:o,c=this.orientation==="horizontal"?"x":"y",p=this.orientation==="horizontal"?"maxX":"maxY",d=this.orientation==="horizontal"?"width":"height",m=0,f=[];for(let y of He(t,n)){if(y.type==="content")continue;let g=(this.rowSize??this.estimatedRowSize??Ma)+this.gap;if(u+g<this.requestedRect[c]&&!this.isValid(t,u)){u+=g,m++;continue}let b=this.orientation==="horizontal"?this.buildChild(y,u,o,s.key):this.buildChild(y,r,u,s.key);if(u=b.layoutInfo.rect[p]+this.gap,f.push(b),u>this.requestedRect[p]){u+=([...He(t,n)].length-(f.length+m))*g;break}}return u-=this.gap,l[d]=u-(this.orientation==="horizontal"?r:o),{layoutInfo:s,children:f,validRect:s.rect.intersection(this.requestedRect),node:t}}buildSectionHeader(t,r,o){let n=this.orientation==="horizontal"?"height":"width",i=this.orientation==="horizontal"?"width":"height",a=this.virtualizer.size[n]-this.padding-(this.orientation==="horizontal"?o:r),l=this.headingSize,s=false;if(l==null){let p=this.layoutNodes.get(t.key),d=p?.layoutInfo;if(d){let m=this.virtualizer.collection.getItem(t.key),f=this.lastCollection?this.lastCollection.getItem(t.key):null;l=p.layoutInfo.rect[i],s=a!==d.rect[n]||m!==f||d.estimatedSize;}else l=t.rendered?this.estimatedHeadingSize:0,s=true;}l==null&&(l=Ma);let u=this.orientation==="horizontal"?new Se(r,o,l,a-o):new Se(r,o,a-r,l),c=new gt("header",t.key,u);return c.estimatedSize=s,{layoutInfo:c,children:[],validRect:c.rect.intersection(this.requestedRect),node:t}}buildItem(t,r,o){let n=this.orientation==="horizontal"?"height":"width",i=this.orientation==="horizontal"?"width":"height",a=this.virtualizer.size[n]-this.padding-(this.orientation==="horizontal"?o:r),l=this.rowSize,s=false;if(l==null){let p=this.layoutNodes.get(t.key);p?(l=p.layoutInfo.rect[i],s=a!==p.layoutInfo.rect[n]||t!==p.node||p.layoutInfo.estimatedSize):(l=this.estimatedRowSize,s=true);}l==null&&(l=Ma);let u=this.orientation==="horizontal"?new Se(r,o,l,a):new Se(r,o,a,l),c=new gt(t.type,t.key,u);return c.estimatedSize=s,{layoutInfo:c,children:[],validRect:c.rect.intersection(this.requestedRect),node:t}}updateItemSize(t,r){let o=this.layoutNodes.get(t);if(!o)return false;let n=this.virtualizer.collection,i=o.layoutInfo,a=this.orientation==="horizontal"?"x":"y",l=this.orientation==="horizontal"?"width":"height";if(i.estimatedSize=false,i.rect[l]!==r[l]){let s=i.copy();s.rect[l]=r[l],o.layoutInfo=s,this.validRect[l]=Math.min(this.validRect[l],i.rect[a]-this.validRect[a]),o.node?.type==="item"&&(this.requestedRect[l]+=s.rect[l]-i.rect[l]),this.updateLayoutNode(t,i,s);let u=i.parentKey!=null?n.getItem(i.parentKey):null;for(;u;)this.updateLayoutNode(u.key,i,s),u=u.parentKey!=null?n.getItem(u.parentKey):null;return true}return false}updateLayoutNode(t,r,o){let n=this.layoutNodes.get(t);n&&(n.validRect=n.validRect.intersection(this.validRect),n.layoutInfo===r&&(n.layoutInfo=o));}getContentSize(){return this.contentSize}getDropTargetFromPoint(t,r,o){t+=this.virtualizer.visibleRect.x,r+=this.virtualizer.visibleRect.y;let n=new Se(t,Math.max(0,r-this.gap),1,Math.max(1,this.gap*2)),i=this.getVisibleLayoutInfos(n),a=null,l=1/0;for(let p of i){if(!p.rect.intersects(n))continue;let d=Math.abs(p.rect.y-r),m=Math.abs(p.rect.maxY-r),f=Math.min(d,m);f<l&&(l=f,a=p.key);}if(a==null||this.virtualizer.collection.size===0)return {type:"root"};let s=this.getLayoutInfo(a);if(!s)return null;let u=s.rect,c={type:"item",key:s.key,dropPosition:"on"};return o(c)?r<=u.y+10&&o({...c,dropPosition:"before"})?c.dropPosition="before":r>=u.maxY-10&&o({...c,dropPosition:"after"})&&(c.dropPosition="after"):r<=u.y+u.height/2&&o({...c,dropPosition:"before"})?c.dropPosition="before":o({...c,dropPosition:"after"})&&(c.dropPosition="after"),c}getDropTargetLayoutInfo(t){let r=this.getLayoutInfo(t.key),o;if(t.dropPosition==="before")o=this.orientation==="horizontal"?new Se(Math.max(0,r.rect.x-this.dropIndicatorThickness/2),r.rect.y,this.dropIndicatorThickness,r.rect.height):new Se(r.rect.x,Math.max(0,r.rect.y-this.dropIndicatorThickness/2),r.rect.width,this.dropIndicatorThickness);else if(t.dropPosition==="after"){let n=this.collection.getItem(t.key);if(n){let i=n.level??0,a=this.collection.getKeyAfter(t.key);for(;a!=null;){let l=this.collection.getItem(a);if(!l||l.level<=i)break;r=this.getLayoutInfo(a)||r,a=this.collection.getKeyAfter(a);}}o=this.orientation==="horizontal"?new Se(r.rect.maxX-this.dropIndicatorThickness/2,r.rect.y,this.dropIndicatorThickness,r.rect.height):new Se(r.rect.x,r.rect.maxY-this.dropIndicatorThickness/2,r.rect.width,this.dropIndicatorThickness);}else o=r.rect;return new gt("dropIndicator",t.key+":"+t.dropPosition,o)}};function uW(e,t){let r=[];for(let o of e)t(o)&&r.push(o);return r}var Iw=48,Wc=class extends en{lastCollection=null;columnWidths=new Map;stickyColumnIndices;lastPersistedKeys=null;persistedIndices=new Map;constructor(t){super(t),this.stickyColumnIndices=[];}get collection(){return this.virtualizer.collection}get rowHeight(){return super.rowHeight}get estimatedRowHeight(){return super.estimatedRowHeight}get headingHeight(){return super.headingHeight}get estimatedHeadingHeight(){return super.estimatedHeadingHeight}get loaderHeight(){return super.loaderHeight}columnsChanged(t,r){return !r||t.columns!==r.columns&&t.columns.length!==r.columns.length||t.columns.some((o,n)=>o.key!==r.columns[n].key||o.props.width!==r.columns[n].props.width||o.props.minWidth!==r.columns[n].props.minWidth||o.props.maxWidth!==r.columns[n].props.maxWidth)}shouldInvalidateLayoutOptions(t,r){return t.columnWidths!==r.columnWidths||super.shouldInvalidateLayoutOptions(t,r)}update(t){let r=this.virtualizer.collection;if(t.layoutOptions?.columnWidths){for(let[o,n]of t.layoutOptions.columnWidths)if(this.columnWidths.get(o)!==n){this.columnWidths=t.layoutOptions.columnWidths,t.sizeChanged=true;break}}else if(t.sizeChanged||this.columnsChanged(r,this.lastCollection)){let o=new rs({});this.columnWidths=o.buildColumnWidths(this.virtualizer.size.width-this.padding*2,r,new Map),t.sizeChanged=true;}super.update(t);}buildCollection(){this.stickyColumnIndices=[];let t=this.virtualizer.collection;for(let i of t.columns)(this.isStickyColumn(i)||t.rowHeaderColumnKeys.has(i.key))&&this.stickyColumnIndices.push(i.index);let r=[],o=0,n=0;if(t.head){for(let i of t)switch(i.type){case "tableheader":{let a=this.buildTableHeader();o=a.layoutInfo.rect.maxY+this.gap,n=Math.max(n,a.layoutInfo.rect.width),this.layoutNodes.set(a.layoutInfo.key,a),r.push(a);break}case "tablebody":case "tablefooter":{let a=this.buildRowGroup(o,i);o=a.layoutInfo.rect.maxY+this.gap,n=Math.max(n,a.layoutInfo.rect.width),this.layoutNodes.set(a.layoutInfo.key,a),r.push(a);break}}o>0&&(o-=this.gap);for(let i of r)i.layoutInfo.rect.width=n;}else {let i=this.buildTableHeader();this.layoutNodes.set(i.layoutInfo.key,i);let a=this.buildBody(i.layoutInfo.rect.maxY+this.gap);a.layoutInfo.rect.width=Math.max(i.layoutInfo.rect.width,a.layoutInfo.rect.width),o=a.layoutInfo.rect.maxY,n=a.layoutInfo.rect.width,r=[i,a];}return this.lastPersistedKeys=null,this.contentSize=new Ie(n+this.padding*2,o+this.padding),r}buildTableHeader(){let t=this.virtualizer.collection,r=new Se(this.padding,this.padding,0,0),o=new gt("header",t.head?.key??"header",r);o.isSticky=true,o.zIndex=1;let n=this.padding,i=0,a=[];for(let l of t.headerRows){let s=this.buildChild(l,this.padding,n,o.key);s.layoutInfo.parentKey=o.key,n=s.layoutInfo.rect.maxY,i=Math.max(i,s.layoutInfo.rect.width),s.index=a.length,a.push(s);}return r.width=i,r.height=n-this.padding,{layoutInfo:o,children:a,validRect:o.rect,node:t.head}}buildHeaderRow(t,r,o){let n=new Se(r,o,0,0),i=new gt("headerrow",t.key,n),a=0,l=[];for(let s of He(t,this.virtualizer.collection)){let u=this.buildChild(s,r,o,i.key);u.layoutInfo.parentKey=i.key,r=u.layoutInfo.rect.maxX,a=Math.max(a,u.layoutInfo.rect.height),u.index=l.length,l.push(u);}for(let[s,u]of l.entries())u.layoutInfo.zIndex=l.length-s+1;return this.setChildHeights(l,a),n.height=a,n.width=r-n.x,{layoutInfo:i,children:l,validRect:n,node:t}}setChildHeights(t,r){for(let o of t)o.layoutInfo.rect.height!==r&&(o.layoutInfo=o.layoutInfo.copy(),o.layoutInfo.rect.height=r);}getRenderedColumnWidth(t){let r=this.virtualizer.collection,o=t.colSpan??1,n=t.colIndex??t.index,i=0;for(let a=n;a<n+o;a++){let l=r.columns[a];l?.key!=null&&(i+=this.columnWidths.get(l.key)??0);}return i}getEstimatedHeight(t,r,o,n){let i=false;if(o==null){let a=this.layoutNodes.get(t.key);a?(o=a.layoutInfo.rect.height,i=t!==a.node||r!==a.layoutInfo.rect.width||a.layoutInfo.estimatedSize):(o=n??Iw,i=true);}return {height:o,isEstimated:i}}getEstimatedRowHeight(){return this.rowHeight??this.estimatedRowHeight??Iw}buildColumn(t,r,o){let n=this.getRenderedColumnWidth(t),{height:i,isEstimated:a}=this.getEstimatedHeight(t,n,this.headingHeight??this.rowHeight,this.estimatedHeadingHeight??this.estimatedRowHeight),l=new Se(r,o,n,i),s=new gt(t.type,t.key,l);return s.isSticky=this.isStickyColumn(t),s.zIndex=s.isSticky?2:1,s.estimatedSize=a,{layoutInfo:s,children:[],validRect:s.rect,node:t}}isStickyColumn(t){return false}buildBody(t){let r=this.virtualizer.collection;return this.buildRowGroup(t,r.body)}buildRowGroup(t,r){let o=this.virtualizer.collection,n=new Se(this.padding,t,0,0),i=new gt("rowgroup",r.key,n),a=t,l=0,s=[],u=this.getEstimatedRowHeight()+this.gap,c=He(r,o);for(let d of c){if(t+u<this.requestedRect.y&&!this.isValid(d,t)||t>this.requestedRect.maxY&&d.type!=="loader"){t+=u;continue}let m=this.buildChild(d,this.padding,t,i.key);m.layoutInfo.parentKey=i.key,m.index=s.length,t=m.layoutInfo.rect.maxY+this.gap,l=Math.max(l,m.layoutInfo.rect.width),s.push(m);}return o?.size===0?t=this.virtualizer.size.height:t-=this.gap,n.width=l,n.height=t-a,{layoutInfo:i,children:s,validRect:i.rect.intersection(this.requestedRect),node:r}}buildLoader(t,r,o){let n=super.buildLoader(t,r,o),i=this.virtualizer.collection;return n.layoutInfo.rect.width=this.layoutNodes.get(i.head?.key??"header").layoutInfo.rect.width,n.validRect=n.layoutInfo.rect.intersection(this.requestedRect),n}buildNode(t,r,o){switch(t.type){case "headerrow":return this.buildHeaderRow(t,r,o);case "item":return this.buildRow(t,r,o);case "column":case "placeholder":return this.buildColumn(t,r,o);case "cell":return this.buildCell(t,r,o);case "loader":return this.buildLoader(t,r,o);default:throw new Error("Unknown node type "+t.type)}}buildRow(t,r,o){let n=this.virtualizer.collection,i=new Se(r,o,0,0),a=new gt("row",t.key,i),l=[],s=0;for(let u of He(t,n))if(u.type==="cell")if(r>this.requestedRect.maxX){let c=this.layoutNodes.get(u.key);if(c)c.layoutInfo.rect.x=r,r+=c.layoutInfo.rect.width;else break}else {let c=this.buildChild(u,r,o,a.key);r=c.layoutInfo.rect.maxX,s=Math.max(s,c.layoutInfo.rect.height),c.index=l.length,l.push(c);}return this.setChildHeights(l,s),i.width=this.layoutNodes.get(n.head?.key??"header").layoutInfo.rect.width,i.height=s,{layoutInfo:a,children:l,validRect:i.intersection(this.requestedRect),node:t}}buildCell(t,r,o){let n=this.getRenderedColumnWidth(t),{height:i,isEstimated:a}=this.getEstimatedHeight(t,n,this.rowHeight,this.estimatedRowHeight),l=new Se(r,o,n,i),s=new gt(t.type,t.key,l);return s.isSticky=this.isStickyColumn(t),s.zIndex=s.isSticky?2:1,s.estimatedSize=a,{layoutInfo:s,children:[],validRect:l,node:t}}getVisibleLayoutInfos(t){if(t.height>1){let o=this.getEstimatedRowHeight();t.y=Math.floor(t.y/o)*o,t.height=Math.ceil(t.height/o)*o;}this.layoutIfNeeded(t);let r=[];this.buildPersistedIndices();for(let o of this.rootNodes)r.push(o.layoutInfo),this.addVisibleLayoutInfos(r,o,t);return r}addVisibleLayoutInfos(t,r,o){if(!(!r.children||r.children.length===0))switch(r.layoutInfo.type){case "header":{for(let n of r.children)t.push(n.layoutInfo),this.addVisibleLayoutInfos(t,n,o);break}case "rowgroup":{let n=this.binarySearch(r.children,o.topLeft,"y"),i=this.binarySearch(r.children,o.bottomRight,"y"),a=this.persistedIndices.get(r.layoutInfo.key),l=0;for(;a&&l<a.length&&a[l]<n;){let u=a[l];u<r.children.length&&(t.push(r.children[u].layoutInfo),this.addVisibleLayoutInfos(t,r.children[u],o)),l++;}for(let u=n;u<=i;u++){for(;a&&l<a.length&&a[l]<u;)l++;t.push(r.children[u].layoutInfo),this.addVisibleLayoutInfos(t,r.children[u],o);}for(;a&&l<a.length;){let u=a[l++];u<r.children.length&&(t.push(r.children[u].layoutInfo),this.addVisibleLayoutInfos(t,r.children[u],o));}let s=r.children.at(-1);s?.layoutInfo.type==="loader"&&t.push(s.layoutInfo);break}case "headerrow":case "row":{let n=this.binarySearch(r.children,o.topLeft,"x"),i=this.binarySearch(r.children,o.topRight,"x"),a=0,l=this.persistedIndices.get(r.layoutInfo.key)||this.stickyColumnIndices;for(;a<l.length&&l[a]<n;){let s=l[a];s<r.children.length&&t.push(r.children[s].layoutInfo),a++;}for(let s=n;s<=i;s++){for(;a<l.length&&l[a]<s;)a++;t.push(r.children[s].layoutInfo);}for(;a<l.length;){let s=l[a++];s<r.children.length&&t.push(r.children[s].layoutInfo);}break}default:throw new Error("Unknown node type "+r.layoutInfo.type)}}binarySearch(t,r,o){let n=0,i=t.length-1;for(;n<=i;){let a=n+i>>1,l=t[a];if(o==="x"&&l.layoutInfo.rect.maxX<=r.x||o==="y"&&l.layoutInfo.rect.maxY<=r.y)n=a+1;else if(o==="x"&&l.layoutInfo.rect.x>r.x||o==="y"&&l.layoutInfo.rect.y>r.y)i=a-1;else return a}return Math.max(0,Math.min(t.length-1,n))}buildPersistedIndices(){if(this.virtualizer.persistedKeys!==this.lastPersistedKeys){this.lastPersistedKeys=this.virtualizer.persistedKeys,this.persistedIndices.clear();for(let t of this.virtualizer.persistedKeys){let r=this.layoutNodes.get(t)?.layoutInfo;for(;r&&r.parentKey;){let o=this.virtualizer.collection.getItem(r.key),n=this.persistedIndices.get(r.parentKey);n||(n=o?.type==="cell"||o?.type==="column"?[...this.stickyColumnIndices]:[],this.persistedIndices.set(r.parentKey,n));let i=this.layoutNodes.get(r.key)?.index;i!=null&&!n.includes(i)&&n.push(i),r=this.layoutNodes.get(r.parentKey)?.layoutInfo;}}for(let t of this.persistedIndices.values())t.sort((r,o)=>r-o);}}getDropTargetFromPoint(t,r,o){t+=this.virtualizer.visibleRect.x,r+=this.virtualizer.visibleRect.y;let n=new Se(t,Math.max(0,r-this.gap),1,Math.max(1,this.gap*2)),i=this.getVisibleLayoutInfos(n),a=null,l=1/0;for(let p of i){if(p.type!=="row"||!p.rect.intersects(n))continue;let d=Math.abs(p.rect.y-r),m=Math.abs(p.rect.maxY-r),f=Math.min(d,m);f<l&&(l=f,a=p.key);}if(a==null||this.virtualizer.collection.size===0)return {type:"root"};let s=this.getLayoutInfo(a);if(!s)return null;let u=s.rect,c={type:"item",key:s.key,dropPosition:"on"};return o(c)?r<=u.y+10&&o({...c,dropPosition:"before"})?c.dropPosition="before":r>=u.maxY-10&&o({...c,dropPosition:"after"})&&(c.dropPosition="after"):r<=u.y+u.height/2&&o({...c,dropPosition:"before"})?c.dropPosition="before":o({...c,dropPosition:"after"})&&(c.dropPosition="after"),c}getDropTargetLayoutInfo(t){let r=super.getDropTargetLayoutInfo(t);return r.parentKey=this.virtualizer.collection.getItem(t.key)?.parentKey??null,r}};var AT=class extends gt{column=0;index=0;copy(){let t=super.copy();return t.column=this.column,t.index=this.index,t}},Ur={minItemSize:new Ie(200,200),maxItemSize:new Ie(1/0,1/0),minSpace:new Ie(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48},qc=class extends On{contentSize=new Ie;layoutInfos=new Map;numColumns=0;dropIndicatorThickness=2;margin=0;shouldInvalidateLayoutOptions(t,r){return t.maxColumns!==r.maxColumns||t.dropIndicatorThickness!==r.dropIndicatorThickness||!(t.minItemSize||Ur.minItemSize).equals(r.minItemSize||Ur.minItemSize)||!(t.maxItemSize||Ur.maxItemSize).equals(r.maxItemSize||Ur.maxItemSize)||!(t.minSpace||Ur.minSpace).equals(r.minSpace||Ur.minSpace)||t.maxHorizontalSpace!==r.maxHorizontalSpace||t.loaderHeight!==r.loaderHeight}update(t){let{minItemSize:r=Ur.minItemSize,maxItemSize:o=Ur.maxItemSize,minSpace:n=Ur.minSpace,maxHorizontalSpace:i=Ur.maxSpace,maxColumns:a=Ur.maxColumns,dropIndicatorThickness:l=Ur.dropIndicatorThickness,loaderHeight:s=Ur.loaderHeight}=t.layoutOptions||{};this.dropIndicatorThickness=l;let u=this.virtualizer.size.width,c=Math.min(o.width,u),p=Number.isFinite(o.height)?o.height:Math.floor(r.height/r.width*c),d=Math.floor(u/(r.width+n.width)),m=Math.max(1,Math.min(a,d)),f=u-n.width*Math.max(0,m),y=Math.floor(f/m);y=Math.max(r.width,Math.min(c,y));let g=(y-r.width)/Math.max(1,c-r.width),b=r.height+Math.floor((p-r.height)*g);b=Math.max(r.height,Math.min(p,b));let x=Math.min(Math.max(i,n.width),Math.floor((u-m*y)/(m+1)));this.margin=Math.floor((u-m*y-x*(m+1))/2);let h=Array(m).fill(n.height),v=new Map,C=0,T=(R,_)=>{let D=this.layoutInfos.get(R),F=b,z=true;D&&(F=D.rect.height/D.rect.width*y,z=t.sizeChanged||D.estimatedSize||D.content!==_);let V=(m===this.numColumns&&D&&D.index===C&&D.rect.y<this.virtualizer.visibleRect.maxY?D.column:void 0)??h.reduce((I,H,U)=>H<h[I]?U:I,0),M=x+V*(y+x)+this.margin,O=h[V],B=new Se(M,O,y,F),K=new AT(_.type,R,B);K.estimatedSize=z,K.allowOverflow=true,K.content=_,K.column=V,K.index=C++,v.set(R,K),h[V]+=K.rect.height+n.height;},P=this.virtualizer.collection,k=0;for(let R of P)if(R.type==="skeleton"){let _=[...h];for(;!h.every((D,F)=>D!==_[F])||Math.min(...h)<this.virtualizer.size.height;){let D=`${R.key}-${k++}`,F=this.layoutInfos.get(D)?.content||{...R};T(D,F);}break}else R.type!=="loader"&&T(R.key,R);let w=P?.size===0&&P.getItem(P.getFirstKey())?.type!=="skeleton"?0:Math.max(...h),E=P.getItem(P.getLastKey());if(E?.type==="loader"){(k>0||!E.props.isLoading)&&(s=0);let R=u-x*2,_=new Se(x,w,R,s),D=new gt("loader",E.key,_);v.set(E.key,D),w=D.rect.maxY;}this.contentSize=new Ie(this.virtualizer.size.width,w),this.layoutInfos=v,this.numColumns=m;}getLayoutInfo(t){return this.layoutInfos.get(t)}getContentSize(){return this.contentSize}getVisibleLayoutInfos(t){let r=[];for(let o of this.layoutInfos.values())(o.rect.intersects(t)||this.virtualizer.isPersistedKey(o.key)||o.type==="loader")&&r.push(o);return r}updateItemSize(t,r){let o=this.layoutInfos.get(t);if(!r||!o)return false;if(r.height!==o.rect.height){let n=o.copy();return n.rect.height=r.height,n.estimatedSize=false,this.layoutInfos.set(t,n),true}return false}getKeyRightOf(t){let r=this.getLayoutInfo(t);if(!r)return null;let o=new Se(r.rect.maxX,r.rect.y,this.virtualizer.visibleRect.maxX-r.rect.maxX,r.rect.height),n=this.getVisibleLayoutInfos(o),i=null,a=1/0;for(let l of n){if(l.key===t)continue;let s=l.rect.x-o.x,u=Math.min(l.rect.maxY,o.maxY)-Math.max(l.rect.y,o.y),c=s-u;c<a&&(a=c,i=l.key);}return i}getKeyLeftOf(t){let r=this.getLayoutInfo(t);if(!r)return null;let o=new Se(0,r.rect.y,r.rect.x,r.rect.height),n=this.getVisibleLayoutInfos(o),i=null,a=1/0;for(let l of n){if(l.key===t)continue;let s=o.maxX-l.rect.maxX,u=Math.min(l.rect.maxY,o.maxY)-Math.max(l.rect.y,o.y),c=s-u;c<a&&(a=c,i=l.key);}return i}getKeyRange(t,r){let o=this.getLayoutInfo(t),n=this.getLayoutInfo(r);if(!o||!n)return [];let i=o.rect.union(n.rect),a=[];for(let l of this.layoutInfos.values())i.intersection(l.rect).area>l.rect.area/2&&a.push(l.key);return a}getDropTargetFromPoint(t,r){if(this.layoutInfos.size===0)return {type:"root"};t+=this.virtualizer.visibleRect.x,r+=this.virtualizer.visibleRect.y;let o=this.virtualizer.keyAtPoint(new Gt(t,r));return o==null?{type:"root"}:{type:"item",key:o,dropPosition:"on"}}};var cs=class extends Wc{useLayoutOptions(){let t=useContext(ss);return useMemo(()=>({columnWidths:t?.columnWidths}),[t?.columnWidths])}};var OT=new WeakMap;function ds(e,t,r){if(!e)return "";typeof t=="string"&&(t=t.replace(/\s+/g,""));let o=OT.get(e);return process.env.NODE_ENV!=="production"&&!o&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${o}-${r}-${t}`}function NT(e,t,r){let{key:o,isDisabled:n,shouldSelectOnPressUp:i}=e,{selectionManager:a,selectedKey:l}=t,s=o===l,u=n||t.isDisabled||t.selectionManager.isDisabled(o),c=t.collection.getItem(o),{itemProps:p,isPressed:d}=wr({selectionManager:a,key:o,ref:r,isDisabled:u,shouldSelectOnPressUp:i??c?.props.href!=null,linkBehavior:"selection"}),m=ds(t,o,"tab"),f=ds(t,o,"tabpanel"),{tabIndex:y}=p,g=re(c?.props,{labelable:true});delete g.id;let b=Jn(c?.props),{focusableProps:x}=rt({...c?.props,isDisabled:u},r);return {tabProps:A(g,x,b,p,{id:m,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?f:void 0,tabIndex:u?void 0:y,role:"tab"}),isSelected:s,isDisabled:u,isPressed:d}}function FT(e,t,r){let o=es(r)?void 0:0,n=ds(t,e.id??t?.selectedKey,"tabpanel"),i=Qe({...e,id:n,"aria-labelledby":ds(t,t?.selectedKey,"tab")});return {tabPanelProps:A(i,{tabIndex:o,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}var Wf=class{collection;flipDirection;disabledKeys;tabDirection;constructor(t,r,o,n=new Set){this.collection=t,this.flipDirection=r==="rtl"&&o==="horizontal",this.disabledKeys=n,this.tabDirection=o==="horizontal";}getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}isDisabled(t){return this.disabledKeys.has(t)||!!this.collection.getItem(t)?.props?.isDisabled}getFirstKey(){let t=this.collection.getFirstKey();return t!=null&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return t!=null&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}getKeyAbove(t){return this.tabDirection?null:this.getPreviousKey(t)}getKeyBelow(t){return this.tabDirection?null:this.getNextKey(t)}getNextKey(t){let r=t;do r=this.collection.getKeyAfter(r),r==null&&(r=this.collection.getFirstKey());while(r!=null&&this.isDisabled(r)&&r!==t);return r}getPreviousKey(t){let r=t;do r=this.collection.getKeyBefore(r),r==null&&(r=this.collection.getLastKey());while(r!=null&&this.isDisabled(r)&&r!==t);return r}};function KT(e,t,r){let{orientation:o="horizontal",keyboardActivation:n="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:l}=t,{direction:s}=Q(),u=useMemo(()=>new Wf(i,s,o,l),[i,l,o,s]),{collectionProps:c}=di({ref:r,selectionManager:a,keyboardDelegate:u,selectOnFocus:n==="automatic",disallowEmptySelection:true,scrollRef:r,linkBehavior:"selection"}),p=ee();OT.set(t,p);let d=Qe({...e,id:p});return {tabListProps:{...A(c,d),role:"tablist","aria-orientation":o,tabIndex:void 0}}}function qf(e){let[t,r]=ye(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),o=useMemo(()=>t!=null?[t]:[],[t]),{collection:n,disabledKeys:i,selectionManager:a}=Mt({...e,selectionMode:"single",disallowEmptySelection:true,allowDuplicateSelectionEvents:true,selectedKeys:o,onSelectionChange:s=>{if(s==="all")return;let u=s.values().next().value??null;u===t&&e.onSelectionChange&&e.onSelectionChange(u),r(u);}}),l=t!=null?n.getItem(t):null;return {collection:n,disabledKeys:i,selectionManager:a,selectedKey:t,setSelectedKey:r,selectedItem:l}}function VT(e){let t=qf({...e,onSelectionChange:e.onSelectionChange?a=>{a!=null&&e.onSelectionChange?.(a);}:void 0,suppressTextValueWarning:true,defaultSelectedKey:e.defaultSelectedKey??_w(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:r,collection:o,selectedKey:n}=t,i=useRef(n);return useEffect(()=>{let a=n;e.selectedKey==null&&(r.isEmpty||a==null||!o.getItem(a))&&(a=_w(o,t.disabledKeys),a!=null&&r.setSelectedKeys([a])),(a!=null&&r.focusedKey==null||!r.isFocused&&a!==i.current)&&r.setFocusedKey(a),i.current=a;}),{...t,isDisabled:e.isDisabled||false}}function _w(e,t){let r=null;if(e){for(r=e.getFirstKey();r!=null&&(t.has(r)||e.getItem(r)?.props?.isDisabled)&&r!==e.getLastKey();)r=e.getKeyAfter(r);r!=null&&(t.has(r)||e.getItem(r)?.props?.isDisabled)&&r===e.getLastKey()&&(r=e.getFirstKey());}return r}var BT=new WeakMap;function HT(e,t,r){let{direction:o}=Q(),n=e.keyboardDelegate||new Ct({collection:t.collection,ref:r,orientation:"horizontal",direction:o,disabledKeys:t.disabledKeys,disabledBehavior:t.selectionManager.disabledBehavior}),{labelProps:i,fieldProps:a,descriptionProps:l,errorMessageProps:s}=Vr({...e,labelElementType:"span",ref:r}),{gridProps:u}=wa({...e,...a,keyboardDelegate:n,shouldFocusWrap:true,linkBehavior:"override",keyboardNavigationBehavior:"tab"},t,r),[c,p]=useState(false),{focusWithinProps:d}=lt({onFocusWithinChange:p}),m=re(e),f=useRef(t.collection.size);return useEffect(()=>{r.current&&f.current>0&&t.collection.size===0&&c&&r.current.focus(),f.current=t.collection.size;},[t.collection.size,c,r]),BT.set(t,{onRemove:e.onRemove}),{gridProps:A(u,m,{role:t.collection.size?"grid":"group","aria-atomic":false,"aria-relevant":"additions","aria-live":c?"polite":"off",...d,...a}),labelProps:i,descriptionProps:l,errorMessageProps:s}}var Mw={"ar-AE":{removeButtonLabel:"\u0625\u0632\u0627\u0644\u0629",removeDescription:"\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D DELETE \u0644\u0625\u0632\u0627\u0644\u0629 \u0639\u0644\u0627\u0645\u0629."},"bg-BG":{removeButtonLabel:"\u041F\u0440\u0435\u043C\u0430\u0445\u0432\u0430\u043D\u0435",removeDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Delete, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0435\u043C\u0430\u0445\u043D\u0435\u0442\u0435 \u043C\u0430\u0440\u043A\u0435\u0440\u0430."},"cs-CZ":{removeButtonLabel:"Odebrat",removeDescription:"Stisknut\xEDm kl\xE1vesy Delete odeberete zna\u010Dku."},"da-DK":{removeButtonLabel:"Fjern",removeDescription:"Tryk p\xE5 Slet for at fjerne tag."},"de-DE":{removeButtonLabel:"Entfernen",removeDescription:"Auf \u201EL\xF6schen\u201C dr\xFCcken, um das Tag zu entfernen."},"el-GR":{removeButtonLabel:"\u039A\u03B1\u03C4\u03AC\u03C1\u03B3\u03B7\u03C3\u03B7",removeDescription:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BA\u03B1\u03C4\u03B1\u03C1\u03B3\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C4\u03B9\u03BA\u03AD\u03C4\u03B1."},"en-US":{removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"},"es-ES":{removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."},"et-EE":{removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."},"fi-FI":{removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."},"fr-FR":{removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l\u2019\xE9tiquette."},"he-IL":{removeButtonLabel:"\u05D4\u05E1\u05E8",removeDescription:"\u05DC\u05D7\u05E5 \u05E2\u05DC \u05DE\u05D7\u05E7 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05E1\u05D9\u05E8 \u05EA\u05D2."},"hr-HR":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."},"hu-HU":{removeButtonLabel:"Elt\xE1vol\xEDt\xE1s",removeDescription:"Nyomja meg a Delete billenty\u0171t a c\xEDmke elt\xE1vol\xEDt\xE1s\xE1hoz."},"it-IT":{removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."},"ja-JP":{removeButtonLabel:"\u524A\u9664",removeDescription:"\u30BF\u30B0\u3092\u524A\u9664\u3059\u308B\u306B\u306F\u3001Delete \u30AD\u30FC\u3092\u62BC\u3057\u307E\u3059\u3002"},"ko-KR":{removeButtonLabel:"\uC81C\uAC70",removeDescription:"\uD0DC\uADF8\uB97C \uC81C\uAC70\uD558\uB824\uBA74 Delete \uD0A4\uB97C \uB204\uB974\uC2ED\uC2DC\uC624."},"lt-LT":{removeButtonLabel:"Pa\u0161alinti",removeDescription:"Nor\u0117dami pa\u0161alinti \u017Eym\u0105, paspauskite \u201EDelete\u201C klavi\u0161\u0105."},"lv-LV":{removeButtonLabel:"No\u0146emt",removeDescription:"Nospiediet Delete [Dz\u0113st], lai no\u0146emtu tagu."},"nb-NO":{removeButtonLabel:"Fjern",removeDescription:"Trykk p\xE5 Slett for \xE5 fjerne taggen."},"nl-NL":{removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."},"pl-PL":{removeButtonLabel:"Usu\u0144",removeDescription:"Naci\u015Bnij Usu\u0144, aby usun\u0105\u0107 znacznik."},"pt-BR":{removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."},"pt-PT":{removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."},"ro-RO":{removeButtonLabel:"\xCEndep\u0103rta\u0163i",removeDescription:"Ap\u0103sa\u021Bi pe Delete (\u0218tergere) pentru a elimina eticheta."},"ru-RU":{removeButtonLabel:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",removeDescription:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 DELETE, \u0447\u0442\u043E\u0431\u044B \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0442\u0435\u0433."},"sk-SK":{removeButtonLabel:"Odstr\xE1ni\u0165",removeDescription:"Ak chcete odstr\xE1ni\u0165 zna\u010Dku, stla\u010Dte kl\xE1ves Delete."},"sl-SI":{removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."},"sr-SP":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obri\u0161i da biste uklonili oznaku."},"sv-SE":{removeButtonLabel:"Ta bort",removeDescription:"Tryck p\xE5 Radera f\xF6r att ta bort taggen."},"tr-TR":{removeButtonLabel:"Kald\u0131r",removeDescription:"Etiketi kald\u0131rmak i\xE7in Sil tu\u015Funa bas\u0131n."},"uk-UA":{removeButtonLabel:"\u0412\u0438\u043B\u0443\u0447\u0438\u0442\u0438",removeDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Delete, \u0449\u043E\u0431 \u0432\u0438\u043B\u0443\u0447\u0438\u0442\u0438 \u0442\u0435\u0433."},"zh-CN":{removeButtonLabel:"\u5220\u9664",removeDescription:"\u6309\u4E0B\u201C\u5220\u9664\u201D\u4EE5\u5220\u9664\u6807\u8BB0\u3002"},"zh-TW":{removeButtonLabel:"\u79FB\u9664",removeDescription:"\u6309 Delete \u9375\u4EE5\u79FB\u9664\u6A19\u8A18\u3002"}};function $T(e,t,r){let{item:o}=e,n=ve(Mw,"@react-aria/tag"),i=ee(),{onRemove:a}=BT.get(t)||{},{rowProps:l,gridCellProps:s,...u}=Ra({node:o},t,r),{descriptionProps:c,...p}=u,d=t.disabledKeys.has(o.key)||o.props.isDisabled,m=P=>{if(P.key==="Delete"||P.key==="Backspace"){if(d)return;P.preventDefault(),t.selectionManager.isSelected(o.key)?a?.(new Set(t.selectionManager.selectedKeys)):a?.(new Set([o.key]));}},f=Yt();f==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(f="pointer");let y=a&&(f==="keyboard"||f==="virtual")?n.format("removeDescription"):"",g=Tt(y,r),b=o.key===t.selectionManager.focusedKey,x=t.selectionManager.focusedKey!=null,h=-1;!d&&(b||!x)&&(h=0);let v=re(o.props),C=pl(o.props),{focusableProps:T}=rt({...o.props,isDisabled:d},r);return {removeButtonProps:{"aria-label":n.format("removeButtonLabel"),"aria-labelledby":`${i} ${l.id}`,isDisabled:d,id:i,onPress:()=>a?a(new Set([o.key])):null},rowProps:A(T,l,v,C,{tabIndex:h,onKeyDown:a?m:void 0,"aria-describedby":g["aria-describedby"]}),gridCellProps:A(s,{"aria-errormessage":e["aria-errormessage"],"aria-label":e["aria-label"]}),...p,allowsRemoving:!!a}}var Xf={"ar-AE":{close:"\u0625\u063A\u0644\u0627\u0642",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0625\u0634\u0639\u0627\u0631`,other:()=>`${t.number(e.count)} \u0625\u0634\u0639\u0627\u0631\u0627\u062A`})}.`},"bg-BG":{close:"\u0417\u0430\u0442\u0432\u043E\u0440\u0438",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0438\u0437\u0432\u0435\u0441\u0442\u0438\u0435`,other:()=>`${t.number(e.count)} \u0438\u0437\u0432\u0435\u0441\u0442\u0438\u044F`})}.`},"cs-CZ":{close:"Zav\u0159\xEDt",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ozn\xE1men\xED`,other:()=>`${t.number(e.count)} ozn\xE1men\xED`})}.`},"da-DK":{close:"Luk",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} besked`,other:()=>`${t.number(e.count)} beskeder`})}.`},"de-DE":{close:"Schlie\xDFen",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} Benachrichtigung`,other:()=>`${t.number(e.count)} Benachrichtigungen`})}.`},"el-GR":{close:"\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7`,other:()=>`${t.number(e.count)} \u03B5\u03B9\u03B4\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9\u03C2`})}.`},"en-US":{close:"Close",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`},"es-ES":{close:"Cerrar",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificaci\xF3n`,other:()=>`${t.number(e.count)} notificaciones`})}.`},"et-EE":{close:"Sule",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} teatis`,other:()=>`${t.number(e.count)} teatist`})}.`},"fi-FI":{close:"Sulje",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ilmoitus`,other:()=>`${t.number(e.count)} ilmoitusta`})}.`},"fr-FR":{close:"Fermer",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`},"he-IL":{close:"\u05E1\u05D2\u05D5\u05E8",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u05D4\u05EA\u05E8\u05D0\u05D4`,other:()=>`${t.number(e.count)} \u05D4\u05EA\u05E8\u05D0\u05D5\u05EA`})}.`},"hr-HR":{close:"Zatvori",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obavijest`,other:()=>`${t.number(e.count)} obavijesti`})}.`},"hu-HU":{close:"Bez\xE1r\xE1s",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \xE9rtes\xEDt\xE9s`,other:()=>`${t.number(e.count)} \xE9rtes\xEDt\xE9s`})}.`},"it-IT":{close:"Chiudi",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica`,other:()=>`${t.number(e.count)} notifiche`})}.`},"ja-JP":{close:"\u9589\u3058\u308B",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u500B\u306E\u901A\u77E5`,other:()=>`${t.number(e.count)} \u500B\u306E\u901A\u77E5`})}\u3002`},"ko-KR":{close:"\uB2EB\uAE30",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\uAC1C \uC54C\uB9BC`,other:()=>`${t.number(e.count)}\uAC1C \uC54C\uB9BC`})}.`},"lt-LT":{close:"U\u017Edaryti",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} prane\u0161imas`,other:()=>`${t.number(e.count)} prane\u0161imai`})}.`},"lv-LV":{close:"Aizv\u0113rt",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} pazi\u0146ojums`,other:()=>`${t.number(e.count)} pazi\u0146ojumi`})}.`},"nb-NO":{close:"Lukk",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} varsling`,other:()=>`${t.number(e.count)} varsler`})}.`},"nl-NL":{close:"Sluiten",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} melding`,other:()=>`${t.number(e.count)} meldingen`})}.`},"pl-PL":{close:"Zamknij",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} powiadomienie`,few:()=>`${t.number(e.count)} powiadomienia`,many:()=>`${t.number(e.count)} powiadomie\u0144`,other:()=>`${t.number(e.count)} powiadomienia`})}.`},"pt-BR":{close:"Fechar",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica\xE7\xE3o`,other:()=>`${t.number(e.count)} notifica\xE7\xF5es`})}.`},"pt-PT":{close:"Fechar",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica\xE7\xE3o`,other:()=>`${t.number(e.count)} notifica\xE7\xF5es`})}.`},"ro-RO":{close:"\xCEnchide\u0163i",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificare`,other:()=>`${t.number(e.count)} notific\u0103ri`})}.`},"ru-RU":{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u0435`,other:()=>`${t.number(e.count)} \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F`})}.`},"sk-SK":{close:"Zatvori\u0165",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ozn\xE1menie`,few:()=>`${t.number(e.count)} ozn\xE1menia`,other:()=>`${t.number(e.count)} ozn\xE1men\xED`})}.`},"sl-SI":{close:"Zapri",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obvestilo`,two:()=>`${t.number(e.count)} obvestili`,few:()=>`${t.number(e.count)} obvestila`,other:()=>`${t.number(e.count)} obvestil`})}.`},"sr-SP":{close:"Zatvori",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obave\u0161tenje`,other:()=>`${t.number(e.count)} obave\u0161tenja`})}.`},"sv-SE":{close:"St\xE4ng",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} meddelande`,other:()=>`${t.number(e.count)} meddelanden`})}.`},"tr-TR":{close:"Kapat",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} bildirim`,other:()=>`${t.number(e.count)} bildirim`})}.`},"uk-UA":{close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u0441\u043F\u043E\u0432\u0456\u0449\u0435\u043D\u043D\u044F`,other:()=>`${t.number(e.count)} \u0441\u043F\u043E\u0432\u0456\u0449\u0435\u043D\u043D\u044F`})}.`},"zh-CN":{close:"\u5173\u95ED",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u4E2A\u901A\u77E5`,other:()=>`${t.number(e.count)} \u4E2A\u901A\u77E5`})}\u3002`},"zh-TW":{close:"\u95DC\u9589",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u500B\u901A\u77E5`,other:()=>`${t.number(e.count)} \u500B\u901A\u77E5`})}\u3002`}};function jT(e,t,r){let{key:o,timer:n,timeout:i}=e.toast;useEffect(()=>{if(!(n==null||i==null))return n.reset(i),()=>{n.pause();}},[n,i]);let a=ee(),l=vt(),s=ve(Xf,"@react-aria/toast"),[u,c]=useState(false);return te(()=>{c(true);},[]),{toastProps:{...re(e,{labelable:true}),role:"alertdialog","aria-modal":"false","aria-labelledby":e["aria-labelledby"]||a,"aria-describedby":e["aria-describedby"]||l,tabIndex:0},contentProps:{role:"alert","aria-atomic":"true","aria-hidden":u?void 0:"true"},titleProps:{id:a},descriptionProps:{id:l},closeButtonProps:{"aria-label":s.format("close"),onPress:()=>t.close(o)}}}var Ow=1,GT=Symbol.for("react-aria-landmark-manager");function SW(e){return document.addEventListener("react-aria-landmark-manager-change",e),()=>document.removeEventListener("react-aria-landmark-manager-change",e)}function Aw(){if(typeof document>"u")return null;let e=document[GT];return e&&e.version>=Ow?e:(document[GT]=new UT,document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")),document[GT])}function DW(){return useSyncExternalStore(SW,Aw,Aw)}var UT=class{landmarks=[];isListening=false;refCount=0;version=Ow;constructor(){this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this);}setupIfNeeded(){this.isListening||(document.addEventListener("keydown",this.f6Handler,{capture:true}),document.addEventListener("focusin",this.focusinHandler,{capture:true}),document.addEventListener("focusout",this.focusoutHandler,{capture:true}),this.isListening=true);}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener("keydown",this.f6Handler,{capture:true}),document.removeEventListener("focusin",this.focusinHandler,{capture:true}),document.removeEventListener("focusout",this.focusoutHandler,{capture:true}),this.isListening=false);}focusLandmark(t,r){this.landmarks.find(o=>o.ref.current===t)?.focus?.(r);}getLandmarksByRole(t){return new Set(this.landmarks.filter(r=>r.role===t))}getLandmarkByRole(t){return this.landmarks.find(r=>r.role===t)}addLandmark(t){if(this.setupIfNeeded(),this.landmarks.find(n=>n.ref===t.ref)||!t.ref.current)return;if(this.landmarks.filter(n=>n.role==="main").length>1&&process.env.NODE_ENV!=="production"&&console.error('Page can contain no more than one landmark with the role "main".'),this.landmarks.length===0){this.landmarks=[t],this.checkLabels(t.role);return}let r=0,o=this.landmarks.length-1;for(;r<=o;){let n=Math.floor((r+o)/2),i=t.ref.current.compareDocumentPosition(this.landmarks[n].ref.current);!!(i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS)?r=n+1:o=n-1;}this.landmarks.splice(r,0,t),this.checkLabels(t.role);}updateLandmark(t){let r=this.landmarks.findIndex(o=>o.ref===t.ref);r>=0&&(this.landmarks[r]={...this.landmarks[r],...t},this.checkLabels(this.landmarks[r].role));}removeLandmark(t){this.landmarks=this.landmarks.filter(r=>r.ref!==t),this.teardownIfNeeded();}checkLabels(t){let r=this.getLandmarksByRole(t);if(r.size>1){let o=[...r].filter(n=>!n.label);if(o.length>0&&process.env.NODE_ENV!=="production")console.warn(`Page contains more than one landmark with the '${t}' role. If two or more landmarks on a page share the same role, all must be labeled with an aria-label or aria-labelledby attribute: `,o.map(n=>n.ref.current));else if(process.env.NODE_ENV!=="production"){let n=[...r].map(a=>a.label);n.filter((a,l)=>n.indexOf(a)!==l).forEach(a=>{console.warn(`Page contains more than one landmark with the '${t}' role and '${a}' label. If two or more landmarks on a page share the same role, they must have unique labels: `,[...r].filter(l=>l.label===a).map(l=>l.ref.current));});}}}closestLandmark(t){let r=new Map(this.landmarks.map(n=>[n.ref.current,n])),o=t;for(;o&&!r.has(o)&&o!==document.body&&o.parentElement;)o=o.parentElement;return r.get(o)}getNextLandmark(t,{backward:r}){let o=this.closestLandmark(t),n=r?this.landmarks.length-1:0;o&&(n=this.landmarks.indexOf(o)+(r?-1:1));let i=()=>{if(n<0){if(!t.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"backward"},bubbles:true,cancelable:true})))return true;n=this.landmarks.length-1;}else if(n>=this.landmarks.length){if(!t.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"forward"},bubbles:true,cancelable:true})))return true;n=0;}return n<0||n>=this.landmarks.length};if(i())return;let a=n;for(;this.landmarks[n].ref.current?.closest("[aria-hidden=true]");){if(n+=r?-1:1,i())return;if(n===a)break}return this.landmarks[n]}f6Handler(t){t.key==="F6"&&(t.altKey?this.focusMain():this.navigate($(t),t.shiftKey))&&(t.preventDefault(),t.stopPropagation());}focusMain(){let t=this.getLandmarkByRole("main");return t&&t.ref.current&&t.ref.current.isConnected?(this.focusLandmark(t.ref.current,"forward"),true):false}navigate(t,r){let o=this.getNextLandmark(t,{backward:r});if(!o)return false;if(o.lastFocused){let n=o.lastFocused;if(Y(document.body,n))return n.focus(),true}return o.ref.current&&o.ref.current.isConnected?(this.focusLandmark(o.ref.current,r?"backward":"forward"),true):false}focusinHandler(t){let r=this.closestLandmark($(t));r&&r.ref.current!==$(t)&&this.updateLandmark({ref:r.ref,lastFocused:$(t)});let o=t.relatedTarget;if(o){let n=this.closestLandmark(o);n&&n.ref.current===o&&n.blur();}}focusoutHandler(t){let r=$(t),o=t.relatedTarget;if(!o||o===document){let n=this.closestLandmark(r);n&&n.ref.current===r&&n.blur();}}createLandmarkController(){let t=this;return t.refCount++,t.setupIfNeeded(),{navigate(r,o){let n=o?.from||document.activeElement;return t.navigate(n,r==="backward")},focusNext(r){let o=r?.from||document.activeElement;return t.navigate(o,false)},focusPrevious(r){let o=r?.from||document.activeElement;return t.navigate(o,true)},focusMain(){return t.focusMain()},dispose(){t&&(t.refCount--,t.teardownIfNeeded(),t=null);}}}registerLandmark(t){return this.landmarks.find(r=>r.ref===t.ref)?this.updateLandmark(t):this.addLandmark(t),()=>this.removeLandmark(t.ref)}};function Nw(e,t){let{role:r,"aria-label":o,"aria-labelledby":n,focus:i}=e,a=DW(),l=o||n,[s,u]=useState(false),c=useCallback(()=>{u(true);},[u]),p=useCallback(()=>{u(false);},[u]);return te(()=>{if(a)return a.registerLandmark({ref:t,label:l,role:r,focus:i||c,blur:p})},[a,l,t,r,i,c,p]),useEffect(()=>{s&&t.current?.focus();},[s,t]),{landmarkProps:{role:r,tabIndex:s?-1:void 0,"aria-label":o,"aria-labelledby":n}}}function WT(e,t,r){let o=ve(Xf,"@react-aria/toast"),{landmarkProps:n}=Nw({role:"region","aria-label":e["aria-label"]||o.format("notifications",{count:t.visibleToasts.length})},r),i=useRef(false),a=useRef(false),l=useCallback(()=>{i.current||a.current?t.pauseAll():t.resumeAll();},[t]),{hoverProps:s}=ie({onHoverStart:()=>{i.current=true,l();},onHoverEnd:()=>{i.current=false,l();}}),u=useRef([]),c=useRef(t.visibleToasts),p=useRef(null);te(()=>{if(p.current===-1||t.visibleToasts.length===0||!r.current){u.current=[],c.current=t.visibleToasts;return}if(u.current=[...r.current.querySelectorAll('[role="alertdialog"]')],c.current.length===t.visibleToasts.length&&t.visibleToasts.every((g,b)=>g.key===c.current[b].key)){c.current=t.visibleToasts;return}let f=c.current.map((g,b)=>({...g,i:b,isRemoved:!t.visibleToasts.some(x=>g.key===x.key)})),y=f.findIndex(g=>g.i===p.current&&g.isRemoved);if(y>-1)if(Dt()==="pointer"&&d.current?.isConnected)Ve(d.current);else {let g=0,b,x;for(;g<=y;)f[g].isRemoved||(x=Math.max(0,g-1)),g++;for(;g<f.length;){if(!f[g].isRemoved){b=g-1;break}g++;}x===void 0&&b===void 0&&(x=0),x>=0&&x<u.current.length?Ve(u.current[x]):b>=0&&b<u.current.length&&Ve(u.current[b]);}c.current=t.visibleToasts;},[t.visibleToasts,r]);let d=useRef(null),{focusWithinProps:m}=lt({onFocusWithin:f=>{a.current=true,d.current=f.relatedTarget,l();},onBlurWithin:()=>{a.current=false,d.current=null,l();}});return useEffect(()=>{t.visibleToasts.length===0&&d.current?.isConnected&&(Dt()==="pointer"?Ve(d.current):d.current.focus(),d.current=null);},[r,t.visibleToasts.length]),useEffect(()=>()=>{d.current?.isConnected&&(Dt()==="pointer"?Ve(d.current):d.current.focus(),d.current=null);},[r]),{regionProps:A(n,s,m,{tabIndex:-1,"data-react-aria-top-layer":true,onFocus:f=>{let y=$(f).closest('[role="alertdialog"]');p.current=u.current.findIndex(g=>g===y);},onBlur:()=>{p.current=-1;}})}}function XT(e){let t=useCallback(n=>e.subscribe(n),[e]),r=useCallback(()=>e.visibleToasts,[e]);return {visibleToasts:useSyncExternalStore(t,r,r),add:(n,i)=>e.add(n,i),close:n=>e.close(n),pauseAll:()=>e.pauseAll(),resumeAll:()=>e.resumeAll()}}var Yf=class{queue=[];subscriptions=new Set;maxVisibleToasts;wrapUpdate;visibleToasts=[];constructor(t){this.maxVisibleToasts=t?.maxVisibleToasts??1/0,this.wrapUpdate=t?.wrapUpdate;}runWithWrapUpdate(t,r){this.wrapUpdate?this.wrapUpdate(t,r):t();}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}add(t,r={}){let o="_"+Math.random().toString(36).slice(2),n={...r,content:t,key:o,timer:r.timeout?new qT(()=>this.close(o),r.timeout):void 0};return this.queue.unshift(n),this.updateVisibleToasts("add"),o}close(t){let r=this.queue.findIndex(o=>o.key===t);r>=0&&(this.queue[r].onClose?.(),this.queue.splice(r,1)),this.updateVisibleToasts("remove");}updateVisibleToasts(t){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let r of this.subscriptions)r();},t);}pauseAll(){for(let t of this.visibleToasts)t.timer&&t.timer.pause();}resumeAll(){for(let t of this.visibleToasts)t.timer&&t.timer.resume();}clear(){this.queue=[],this.updateVisibleToasts("clear");}},qT=class{timerId;startTime=null;remaining;callback;constructor(t,r){this.remaining=r,this.callback=t;}reset(t){this.remaining=t,this.resume();}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime);}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback();},this.remaining));}};function YT(e,t,r){let{isSelected:o}=t,{isPressed:n,buttonProps:i}=dt({...e,onPress:We(t.toggle,e.onPress)},r);return {isPressed:n,isSelected:o,isDisabled:e.isDisabled||false,buttonProps:A(i,{"aria-pressed":o})}}function Zf(e,t){let{"aria-label":r,"aria-labelledby":o,orientation:n="horizontal",isSingleTabStop:i=true}=e,[a,l]=useState(false);te(()=>{l(!!(t.current&&t.current.parentElement?.closest('[role="toolbar"]')));});let{direction:s}=Q(),u=s==="rtl"&&n==="horizontal",c=ci(t),p=y=>{if(Y(y.currentTarget,$(y))){if(n==="horizontal"&&y.key==="ArrowRight"||n==="vertical"&&y.key==="ArrowDown")u?c.focusPrevious():c.focusNext();else if(n==="horizontal"&&y.key==="ArrowLeft"||n==="vertical"&&y.key==="ArrowUp")u?c.focusNext():c.focusPrevious();else if(y.key==="Tab"){if(!i)return;y.stopPropagation();let g=G(t.current);d.current=ue(g),y.shiftKey?c.focusFirst():c.focusLast();return}else return;y.stopPropagation(),y.preventDefault();}},d=useRef(null),m=y=>{let g=y.relatedTarget;(g===null||!Y(y.currentTarget,g))&&!d.current&&(d.current=$(y));},f=y=>{let g=y.relatedTarget,b=g===null||!Y(y.currentTarget,g),x=Y(t.current,$(y));d.current&&b&&x&&(d.current?.focus(),d.current=null);};return {toolbarProps:{...re(e,{labelable:true}),role:a?"group":"toolbar","aria-orientation":n,"aria-label":r,"aria-labelledby":r==null?o:void 0,onKeyDownCapture:a?void 0:p,onFocusCapture:a?void 0:f,onBlurCapture:a?void 0:m}}}var IW=1500,Hw=500,La={},_W=0,Xc=false,tn=null,Aa=null;function ZT(e={}){let{delay:t=IW,closeDelay:r=Hw}=e,{isOpen:o,open:n,close:i}=vr(e),a=useMemo(()=>`${++_W}`,[]),l=useRef(null),s=useRef(i),u=()=>{La[a]=d;},c=()=>{for(let f in La)f!==a&&(La[f](true),delete La[f]);},p=()=>{l.current&&clearTimeout(l.current),l.current=null,c(),u(),Xc=true,n(),tn&&(clearTimeout(tn),tn=null),Aa&&(clearTimeout(Aa),Aa=null);},d=f=>{f||r<=0?(l.current&&clearTimeout(l.current),l.current=null,s.current()):l.current||(l.current=setTimeout(()=>{l.current=null,s.current();},r)),tn&&(clearTimeout(tn),tn=null),Xc&&(Aa&&clearTimeout(Aa),Aa=setTimeout(()=>{delete La[a],Aa=null,Xc=false;},Math.max(Hw,r)));},m=()=>{c(),u(),!o&&!Xc?(tn&&clearTimeout(tn),tn=setTimeout(()=>{tn=null,Xc=true,p();},t)):o||p();};return useEffect(()=>{s.current=i;},[i]),useEffect(()=>()=>{l.current&&clearTimeout(l.current),La[a]&&delete La[a];},[a]),{isOpen:o,open:f=>{!f&&t>0&&!l.current?m():p();},close:d}}function JT(e,t,r){let o=re(e,{labelable:true}),{hoverProps:n}=ie({onHoverStart:()=>t?.open(true),onHoverEnd:()=>t?.close()},r);return {tooltipProps:A(o,n,{role:"tooltip"})}}function QT(e,t,r){let{isDisabled:o,trigger:n,shouldCloseOnPress:i=true}=e,a=ee(),l=useRef(false),s=useRef(false),u=()=>{(l.current||s.current)&&t.open(s.current);},c=x=>{!l.current&&!s.current&&t.close(x);};useEffect(()=>{let x=v=>{r&&r.current&&v.key==="Escape"&&(v.stopPropagation(),t.close(true));},h=G(r?.current);if(t.isOpen)return h.addEventListener("keydown",x,true),()=>{h.removeEventListener("keydown",x,true);}},[r,t]);let p=()=>{n!=="focus"&&(Dt()==="pointer"?l.current=true:l.current=false,u());},d=()=>{n!=="focus"&&(s.current=false,l.current=false,c());},m=()=>{i&&(s.current=false,l.current=false,c(true));},f=()=>{At()&&(s.current=true,u());},y=()=>{s.current=false,l.current=false,c(true);},{hoverProps:g}=ie({isDisabled:o,onHoverStart:p,onHoverEnd:d}),{focusableProps:b}=rt({isDisabled:o,onFocus:f,onBlur:y},r);return {triggerProps:{"aria-describedby":t.isOpen?a:void 0,...A(b,g,{onPointerDown:m,onKeyDown:m}),tabIndex:void 0},tooltipProps:{id:a}}}function eC(e,t,r){let{gridProps:o}=wa(e,t,r);return o.role="treegrid",{gridProps:o}}var jw={"ar-AE":{collapse:"\u0637\u064A",expand:"\u062A\u0645\u062F\u064A\u062F"},"bg-BG":{collapse:"\u0421\u0432\u0438\u0432\u0430\u043D\u0435",expand:"\u0420\u0430\u0437\u0448\u0438\u0440\u044F\u0432\u0430\u043D\u0435"},"cs-CZ":{collapse:"Sbalit",expand:"Rozt\xE1hnout"},"da-DK":{collapse:"Skjul",expand:"Udvid"},"de-DE":{collapse:"Reduzieren",expand:"Erweitern"},"el-GR":{collapse:"\u03A3\u03CD\u03BC\u03C0\u03C4\u03C5\u03BE\u03B7",expand:"\u0391\u03BD\u03AC\u03C0\u03C4\u03C5\u03BE\u03B7"},"en-US":{expand:"Expand",collapse:"Collapse"},"es-ES":{collapse:"Contraer",expand:"Ampliar"},"et-EE":{collapse:"Ahenda",expand:"Laienda"},"fi-FI":{collapse:"Pienenn\xE4",expand:"Laajenna"},"fr-FR":{collapse:"R\xE9duire",expand:"D\xE9velopper"},"he-IL":{collapse:"\u05DB\u05D5\u05D5\u05E5",expand:"\u05D4\u05E8\u05D7\u05D1"},"hr-HR":{collapse:"Sa\u017Emi",expand:"Pro\u0161iri"},"hu-HU":{collapse:"\xD6sszecsuk\xE1s",expand:"Kibont\xE1s"},"it-IT":{collapse:"Comprimi",expand:"Espandi"},"ja-JP":{collapse:"\u6298\u308A\u305F\u305F\u3080",expand:"\u5C55\u958B"},"ko-KR":{collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},"lt-LT":{collapse:"Sutraukti",expand:"I\u0161skleisti"},"lv-LV":{collapse:"Sak\u013Caut",expand:"Izv\u0113rst"},"nb-NO":{collapse:"Skjul",expand:"Utvid"},"nl-NL":{collapse:"Samenvouwen",expand:"Uitvouwen"},"pl-PL":{collapse:"Zwi\u0144",expand:"Rozwi\u0144"},"pt-BR":{collapse:"Recolher",expand:"Expandir"},"pt-PT":{collapse:"Colapsar",expand:"Expandir"},"ro-RO":{collapse:"Restr\xE2nge\u021Bi",expand:"Extinde\u021Bi"},"ru-RU":{collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C"},"sk-SK":{collapse:"Zbali\u0165",expand:"Rozbali\u0165"},"sl-SI":{collapse:"Strni",expand:"Raz\u0161iri"},"sr-SP":{collapse:" Skupi",expand:"Pro\u0161iri"},"sv-SE":{collapse:"D\xF6lj",expand:"Expandera"},"tr-TR":{collapse:"Daralt",expand:"Geni\u015Flet"},"uk-UA":{collapse:"\u0417\u0433\u043E\u0440\u043D\u0443\u0442\u0438",expand:"\u0420\u043E\u0437\u0433\u043E\u0440\u043D\u0443\u0442\u0438"},"zh-CN":{collapse:"\u6298\u53E0",expand:"\u6269\u5C55"},"zh-TW":{collapse:"\u6536\u5408",expand:"\u5C55\u958B"}};function Jf(e,t,r){let{node:o}=e,n=Ra(e,t,r),i=n.rowProps["aria-expanded"]===true,a=ve(jw,"@react-aria/tree"),l=Qe({"aria-label":i?a.format("collapse"):a.format("expand"),"aria-labelledby":n.rowProps.id}),s={onPress:()=>{n.isDisabled||(t.toggleKey(o.key),t.selectionManager.setFocused(true),t.selectionManager.setFocusedKey(o.key));},excludeFromTabOrder:true,preventFocusOnPress:true,"data-react-aria-prevent-focus":true,...l};return {...n,expandButtonProps:s}}var tC=class e extends kn{expandedKeys=new Set;withExpandedKeys(t,r){let o=this.clone();return o.expandedKeys=r,e.cloneAncestorSections(r,t,o),e.cloneAncestorSections(t,r,o),o.frozen=this.frozen,o}static cloneAncestorSections(t,r,o){for(let n of t)if(!r.has(n)){let i=n;for(;i!=null;){let a=o.getItem(i);if(a?.type==="section"){o.keyMap.set(i,a.clone());break}else i=a?.parentKey??null;}}}*[Symbol.iterator](){let t=this.getFirstKey(),r=t!=null?this.getItem(t):null;for(;r;)if(yield r,r.type==="section")r=r.nextKey!=null?this.getItem(r.nextKey):null;else {let o=this.getKeyAfter(r.key);r=o!=null?this.getItem(o):null;}}getLastKey(){let t=this.lastKey;if(t==null)return null;let r=this.getItem(t);for(;r?.lastChildKey!=null&&(r.type!=="item"||this.expandedKeys.has(r.key));)r=this.getItem(r.lastChildKey);return r?.key}getKeyAfter(t){let r=this.getItem(t);if(!r)return null;if((this.expandedKeys.has(r.key)||r.type!=="item")&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.getItem(r.parentKey);else return null}return null}getKeyBefore(t){let r=this.getItem(t);if(!r)return null;if(r.prevKey!=null){for(r=this.getItem(r.prevKey);r&&(r.type!=="item"||this.expandedKeys.has(r.key))&&r.lastChildKey!=null;)r=this.getItem(r.lastChildKey);return r?.key??null}return r.parentKey}getChildren(t){let r=this;return {*[Symbol.iterator](){let o=r.getItem(t),n=o?.firstChildKey!=null?r.getItem(o.firstChildKey):null;if(o&&o.type==="section"&&n)for(;n&&n.key!==o.nextKey;){yield r.getItem(n.key);let i=r.getKeyAfter(n.key);n=i!=null?r.getItem(i):null;}else for(;n;)yield n,n=n.nextKey!=null?r.getItem(n.nextKey):null;}}}getTextValue(t){let r=this.getItem(t);return r?r.textValue:""}},Ww=createContext(null),ry=createContext(null),iC=forwardRef(function(t,r){return [t,r]=Re(t,r,Ww),jsx(to,{content:jsx(wt,{...t}),createCollection:()=>new tC,children:o=>jsx(OW,{props:t,collection:o,treeRef:r})})}),Gw={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function OW({props:e,collection:t,treeRef:r}){let{dragAndDropHooks:o}=e,{direction:n}=Q(),i=Qt({usage:"search",sensitivity:"base"}),a=!!o?.useDraggableCollectionState,l=!!o?.useDroppableCollectionState,s=useRef(a),u=useRef(l);useEffect(()=>{s.current!==a&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),u.current!==l&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");},[a,l]);let{selectionMode:c="none",expandedKeys:p,defaultExpandedKeys:d,onExpandedChange:m,disabledBehavior:f="all"}=e,{CollectionRoot:y,isVirtualized:g,layoutDelegate:b,dropTargetDelegate:x}=useContext(ze),[h,v]=ye(p?new Set(p):void 0,d?new Set(d):new Set,m),[C,T]=useState(t),[P,k]=useState(h),[S,w]=useState(()=>t.withExpandedKeys(P,h));(!HW(P,h)||t!==C)&&(w(t.withExpandedKeys(P,h)),T(t),k(h));let E=Pc({...e,selectionMode:c,expandedKeys:h,onExpandedChange:v,collection:S,children:void 0,disabledBehavior:f}),{gridProps:R}=eC({...e,isVirtualized:g,layoutDelegate:b},E,r),_,D,F,z=false,N=null,V=useRef(null);if(a&&o){_=o.useDraggableCollectionState({collection:E.collection,selectionManager:E.selectionManager,preview:o.renderDragPreview?V:void 0}),o.useDraggableCollection({},_,r);let J=o.DragPreview;N=o.renderDragPreview?jsx(J,{ref:V,children:o.renderDragPreview}):null;}let[M]=useState(()=>new os);if(l&&o){D=o.useDroppableCollectionState({collection:E.collection,selectionManager:E.selectionManager});let J=o.dropTargetDelegate||x||new o.ListDropTargetDelegate(E.collection,r,{direction:n});M.setup(J,E,n);let me=new Ct({collection:E.collection,collator:i,ref:r,disabledKeys:E.selectionManager.disabledKeys,disabledBehavior:E.selectionManager.disabledBehavior,direction:n,layoutDelegate:b});F=o.useDroppableCollection({keyboardDelegate:me,dropTargetDelegate:M,onDropActivate:ne=>{if(ne.target.type==="item"){let de=ne.target.key,ke=E.collection.getItem(de),Ge=h.has(de);ke&&ke.hasChildNodes&&(!Ge||o?.isVirtualDragging?.())&&E.toggleKey(de);}},onKeyDown:ne=>{let de=D?.target;if(de&&de.type==="item"&&de.dropPosition==="on"){let ke=E.collection.getItem(de.key);(ne.key===Gw.expand[n]&&ke?.hasChildNodes&&!E.expandedKeys.has(de.key)||ne.key===Gw.collapse[n]&&ke?.hasChildNodes&&E.expandedKeys.has(de.key))&&E.toggleKey(de.key);}}},D,r),z=D.isDropTarget({type:"root"});}let O=!!(a&&!_?.isDisabled),{focusProps:B,isFocused:K,isFocusVisible:I}=oe(),H={isEmpty:E.collection.size===0,isFocused:K,isFocusVisible:I,isDropTarget:z,selectionMode:E.selectionManager.selectionMode,allowsDragging:!!O,state:E},U=Fe({...e,children:void 0,defaultClassName:"react-aria-Tree",values:H}),q=null;if(E.collection.size===0&&e.renderEmptyState){let{isEmpty:J,...me}=H,ne=e.renderEmptyState({...me});q=jsx("div",{role:"row",style:{display:"contents"},...{"aria-level":1},children:jsx("div",{role:"gridcell",style:{display:"contents"},children:ne})});}let W=re(e,{global:true});return jsxs(Fragment,{children:[jsx(Et,{children:jsxs(xe.div,{...A(W,U,R,B,F?.collectionProps),ref:r,slot:e.slot||void 0,"data-empty":E.collection.size===0||void 0,"data-focused":K||void 0,"data-drop-target":z||void 0,"data-focus-visible":I||void 0,"data-selection-mode":E.selectionManager.selectionMode==="none"?void 0:E.selectionManager.selectionMode,"data-allows-dragging":!!O||void 0,children:[jsxs(ct,{values:[[ry,E],[Ft,{dragAndDropHooks:o,dragState:_,dropState:D}],[_n,{render:FW}]],children:[l&&jsx(BW,{}),jsx(mi,{children:jsx(y,{collection:E.collection,persistedKeys:Nl(E.selectionManager,o,D),scrollRef:r,renderDropIndicator:ca(o,D)})})]}),q]})}),N]})}var rC=class extends Ht{static type="content"},aC=sr(rC,function(t){let r=useContext(qw),o=Fe({children:t.children,values:r});return jsx(ze.Provider,{value:Qi,children:o.children})}),qw=createContext(null),oC=class extends Ht{static type="item"},lC=Kr(oC,(e,t,r)=>{let o=useContext(ry);t=ce(t);let{dragAndDropHooks:n,dragState:i,dropState:a}=useContext(Ft),l=i&&!(i.isDisabled||i.selectionManager.isDisabled(r.key)),{rowProps:s,gridCellProps:u,expandButtonProps:c,descriptionProps:p,...d}=Jf({node:r,shouldSelectOnPressUp:!!i},o,t),m=s["aria-expanded"]===true,f=e.hasChildItems||[...o.collection.getChildren(r.key)].length>1,y=s["aria-level"]||1,{hoverProps:g,isHovered:b}=ie({isDisabled:!d.allowsSelection&&!d.hasAction&&!l,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{isFocusVisible:x,focusProps:h}=oe(),{isFocusVisible:v,focusProps:C}=oe({within:true}),{checkboxProps:T}=ts({key:r.key},o),P=null;i&&n&&(P=n.useDraggableItem({key:r.key,hasDragButton:true},i,t));let k=null,S=useRef(null),w=useRef(null),E=useRef(null),{visuallyHiddenProps:R}=Ot();a&&n&&(k=n.useDropIndicator({target:{type:"item",key:r.key,dropPosition:"on"},activateButtonRef:E},a,w));let _=i&&i.isDragging(r.key),D=k?.isDropTarget,F=o.selectionManager.selectionMode,z=o.selectionManager.selectionBehavior,N=Un.useMemo(()=>({...d,isHovered:b,isFocusVisible:x,isExpanded:m,hasChildItems:f,level:y,selectionMode:F,selectionBehavior:z,isFocusVisibleWithin:v,state:o,id:r.key,allowsDragging:!!i,isDragging:_,isDropTarget:D}),[d,b,x,m,f,y,v,o,r.key,i,_,D,z,F]),V=Fe({...e,children:r.rendered,defaultClassName:"react-aria-TreeItem",defaultStyle:{"--tree-item-level":y},values:N});useEffect(()=>{!r.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <TreeItem> elements in order to support accessibility features such as type to select.");},[r.textValue]),useEffect(()=>{f&&!S.current&&process.env.NODE_ENV!=="production"&&console.warn("Expandable tree items must contain a expand button so screen reader users can expand/collapse the item.");},[]);let M=useRef(null);useEffect(()=>{i&&!M.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Tree must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');},[]);let O=En({items:o.collection.getChildren(r.key),children:I=>{switch(I.type){case "content":return I.render(I);case "loader":case "item":return jsx(Fragment,{});default:throw new Error("Unsupported element type in TreeRow: "+I.type)}}}),B=ee(),K=re(e,{global:true});return delete K.id,delete K.onClick,jsxs(Fragment,{children:[k&&!k.isHidden&&jsx("div",{role:"row","aria-level":s["aria-level"],"aria-expanded":s["aria-expanded"],"aria-label":k.dropIndicatorProps["aria-label"],children:jsxs("div",{role:"gridcell","aria-colindex":1,style:{display:"contents"},children:[jsx("div",{role:"button",...R,...k.dropIndicatorProps,ref:w}),s["aria-expanded"]!=null?jsx("div",{role:"button",...R,id:B,"aria-label":c["aria-label"],"aria-labelledby":`${B} ${s.id}`,tabIndex:-1,ref:E}):null]})}),jsx(xe.div,{...A(K,s,h,g,C,P?.dragProps),...V,ref:t,"data-expanded":f&&m||void 0,"data-has-child-items":f||void 0,"data-level":y,"data-selected":d.isSelected||void 0,"data-disabled":d.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":x||void 0,"data-pressed":d.isPressed||void 0,"data-selection-mode":o.selectionManager.selectionMode==="none"?void 0:o.selectionManager.selectionMode,"data-allows-dragging":!!i||void 0,"data-dragging":_||void 0,"data-drop-target":D||void 0,children:jsx("div",{...u,style:{display:"contents"},children:jsx(ct,{values:[[oa,{slots:{selection:T}}],[wl,{slots:{selection:T}}],[ro,{slots:{[Qr]:{},chevron:{...c,ref:S},drag:{...P?.dragButtonProps,ref:M,style:{pointerEvents:"none"}}}}],[qw,{...N}],[Mn,{isSelected:d.isSelected}]],children:O})})})]})});sr(Dn,function(t,r,o){let{isVirtualized:n}=useContext(ze),i=useContext(ry),{isLoading:a,onLoadMore:l,scrollOffset:s,...u}=t,c=useRef(null),p=useMemo(()=>({onLoadMore:l,collection:i?.collection,sentinelRef:c,scrollOffset:s}),[l,s,i?.collection]);fa(p,c),r=ce(r);let{rowProps:d,gridCellProps:m}=Jf({node:o},i,r),f=d["aria-level"]||1,y={role:"row","aria-level":d["aria-level"]},g=Fe({...u,children:o.rendered,defaultClassName:"react-aria-TreeLoader",values:{level:f}}),b={};return n&&(b={display:"contents"}),jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:da(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:c,style:{position:"absolute",height:1,width:1}})}),a&&g.children&&jsx(xe.div,{ref:r,...A(re(t),y),...g,"data-level":f,children:jsx("div",{...m,style:b,children:g.children})})]})});function FW(e,t){t=ce(t);let{dragAndDropHooks:r,dropState:o}=useContext(Ft),n=useRef(null),{dropIndicatorProps:i,isHidden:a,isDropTarget:l}=r.useDropIndicator(e,o,n);if(a)return null;let s=o&&e.target.type==="item"?(o.collection.getItem(e.target.key)?.level||0)+1:1;return jsx(VW,{...e,dropIndicatorProps:i,isDropTarget:l,ref:t,buttonRef:n,level:s})}function KW(e,t){let{dropIndicatorProps:r,isDropTarget:o,buttonRef:n,level:i,...a}=e,{visuallyHiddenProps:l}=Ot(),s=Fe({...a,defaultClassName:"react-aria-DropIndicator",defaultStyle:{position:"relative","--tree-item-level":i},values:{isDropTarget:o}});return jsx(xe.div,{...s,role:"row","aria-level":i,ref:t,"data-drop-target":o||void 0,children:jsxs("div",{role:"gridcell",children:[jsx("div",{...l,role:"button",...r,ref:n}),s.children]})})}var VW=forwardRef(KW);function BW(){let{dragAndDropHooks:e,dropState:t}=useContext(Ft),r=useRef(null),{dropIndicatorProps:o}=e.useDropIndicator({target:{type:"root"}},t,r),n=t.isDropTarget({type:"root"}),{visuallyHiddenProps:i}=Ot();return !n&&o["aria-hidden"]?null:jsx("div",{role:"row","aria-hidden":o["aria-hidden"],style:{position:"absolute"},children:jsx("div",{role:"gridcell",children:jsx("div",{role:"button",...i,...o,ref:r})})})}function HW(e,t){if(e.size!==t.size)return false;for(let r of e)if(!t.has(r))return false;return true}var Xw={keyboard:{start:"dragDescriptionKeyboard",end:"endDragKeyboard"},touch:{start:"dragDescriptionTouch",end:"endDragTouch"},virtual:{start:"dragDescriptionVirtual",end:"endDragVirtual"}};function Yw(e){let{hasDragButton:t,isDisabled:r,elementRef:o}=e,n=ve(bi,"@react-aria/dnd"),i=useRef({options:e,x:0,y:0}).current;i.options=e;let a=useRef(null),[l,s]=useState(false),u=T=>{a.current=T,s(!!T);},{addGlobalListener:c,removeAllGlobalListeners:p}=zt(),d=useRef(null),m=T=>{if(T.defaultPrevented)return;if(T.stopPropagation(),d.current==="virtual"){T.preventDefault(),b($(T)),d.current=null;return}typeof e.onDragStart=="function"&&e.onDragStart({type:"dragstart",x:T.clientX,y:T.clientY});let P=e.getItems();T.dataTransfer.clearData?.(),Ic(T.dataTransfer,P);let k=7;if(typeof e.getAllowedDropOperations=="function"){let E=e.getAllowedDropOperations();k=0;for(let R of E)k|=Sa[R]||0;}Cf(k);let S=Ax[k]||"none";T.dataTransfer.effectAllowed=S==="cancel"?"none":S,typeof e.preview?.current=="function"&&e.preview.current(P,(E,R,_)=>{if(!E)return;let D=E.getBoundingClientRect(),F=T.currentTarget.getBoundingClientRect(),z=T.clientX-F.x,N=T.clientY-F.y;(z>D.width||N>D.height)&&(z=D.width/2,N=D.height/2);let V=z,M=N;typeof R=="number"&&typeof _=="number"&&(V=R,M=_),V=Math.max(0,Math.min(V,D.width)),M=Math.max(0,Math.min(M,D.height));let O=2*Math.round(D.height/2);E.style.height=`${O}px`,T.dataTransfer.setDragImage(E,V,M);}),c(X($(T)),"drop",E=>{E.preventDefault(),E.stopPropagation(),console.warn("Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.");},{once:true}),i.x=T.clientX,i.y=T.clientY;let w=$(T);requestAnimationFrame(()=>{u(w);});},f=T=>{T.stopPropagation(),!(T.clientX===i.x&&T.clientY===i.y)&&(typeof e.onDragMove=="function"&&e.onDragMove({type:"dragmove",x:T.clientX,y:T.clientY}),i.x=T.clientX,i.y=T.clientY);},y=T=>{if(T.stopPropagation(),typeof e.onDragEnd=="function"){let P={type:"dragend",x:T.clientX,y:T.clientY,dropOperation:Da[T.dataTransfer.dropEffect]};_c&&(P.dropOperation=Da[_c]),e.onDragEnd(P);}u(null),p(),Cf(0),ql(void 0);};useEffect(()=>()=>{if(a.current&&(!a.current.isConnected||parseInt(version,10)<17)){if(typeof i.options.onDragEnd=="function"){let T={type:"dragend",x:0,y:0,dropOperation:Da[_c||"none"]};i.options.onDragEnd(T);}u(null),Cf(0),ql(void 0);}},[i]);let g=T=>{T.pointerType!=="keyboard"&&T.pointerType!=="virtual"||b(T.target);},b=T=>{if(typeof i.options.onDragStart=="function"){let P=T.getBoundingClientRect();i.options.onDragStart({type:"dragstart",x:P.x+P.width/2,y:P.y+P.height/2});}Yz({element:T,items:i.options.getItems(),allowedDropOperations:typeof i.options.getAllowedDropOperations=="function"?i.options.getAllowedDropOperations():["move","copy","link"],onDragEnd(P){u(null),typeof i.options.onDragEnd=="function"&&i.options.onDragEnd(P);}},n),u(T);},x=Wl(),h=l?Xw[x].end:Xw[x].start,v=Tt(n.format(h),o),C={};return t||(C={...v,onPointerDown(T){if(d.current=dl(T.nativeEvent)?"virtual":T.pointerType,T.width<1&&T.height<1)d.current="virtual";else {let P=T.currentTarget.getBoundingClientRect(),k=T.clientX-P.x,S=T.clientY-P.y,w=P.width/2,E=P.height/2;Math.abs(k-w)<=.5&&Math.abs(S-E)<=.5?d.current="virtual":d.current=T.pointerType;}},onKeyDownCapture(T){$(T)===T.currentTarget&&T.key==="Enter"&&(T.preventDefault(),T.stopPropagation());},onKeyUpCapture(T){$(T)===T.currentTarget&&T.key==="Enter"&&(T.preventDefault(),T.stopPropagation(),b($(T)));},onClick(T){(Cn(T.nativeEvent)||d.current==="virtual")&&(T.preventDefault(),T.stopPropagation(),b($(T)));}}),r?{dragProps:{draggable:"false"},dragButtonProps:{},isDragging:false}:{dragProps:{...C,draggable:"true",onDragStart:m,onDrag:f,onDragEnd:y},dragButtonProps:{...v,onPress:g},isDragging:l}}var hi=Un.forwardRef(function(t,r){let o=t.children,[n,i]=useState(null),a=useRef(null),l=useRef(void 0);return useImperativeHandle(r,()=>(s,u)=>{let c=o(s),p,d,m;c&&typeof c=="object"&&"element"in c?(p=c.element,d=c.x,m=c.y):p=c,flushSync(()=>{i(p);}),u(a.current,d,m),l.current=requestAnimationFrame(()=>{i(null);});},[o]),useEffect(()=>()=>{l.current&&cancelAnimationFrame(l.current);},[]),n?jsx("div",{style:{zIndex:-100,position:"fixed",top:0,left:-1e5},ref:a,children:n}):null});function Qw(e,t,r,o,n=false,i=false){switch(o){case "left":return n?uC(e,t,r,i,"left"):cC(e,t,r,i,"left");case "right":return n?cC(e,t,r,i,"right"):uC(e,t,r,i,"right");case "up":return cC(e,t,r,i);case "down":return uC(e,t,r,i)}}function uC(e,t,r,o=false,n=null){if(!r)return {type:"root"};if(r.type==="root"){let i=e.getFirstKey?.()??null;return i!=null?{type:"item",key:i,dropPosition:"before"}:null}if(r.type==="item"){let i=null;n?i=n==="right"?e.getKeyRightOf?.(r.key,{includeDisabled:true}):e.getKeyLeftOf?.(r.key,{includeDisabled:true}):i=e.getKeyBelow?.(r.key,{includeDisabled:true});let a=dC(t,r.key,l=>t.getKeyAfter(l));if(i!=null&&i!==a)return {type:"item",key:i,dropPosition:r.dropPosition};switch(r.dropPosition){case "before":return {type:"item",key:r.key,dropPosition:"on"};case "on":{let l=t.getItem(r.key),s=i!=null?t.getItem(i):null;return l&&s&&s.level>=l.level?{type:"item",key:s.key,dropPosition:"before"}:{type:"item",key:r.key,dropPosition:"after"}}case "after":{let l=t.getItem(r.key),s=l?.nextKey!=null?t.getItem(l.nextKey):null;for(;s!=null&&s.type!=="item";)s=s.nextKey!=null?t.getItem(s.nextKey):null;if(l&&s==null&&l.parentKey!=null){let u=t.getItem(l.parentKey),c=u?.nextKey!=null?t.getItem(u.nextKey):null;if(c?.type==="item")return {type:"item",key:c.key,dropPosition:"before"};if(u?.type==="item")return {type:"item",key:u.key,dropPosition:"after"}}if(s)return {type:"item",key:s.key,dropPosition:"on"}}}}return o?{type:"root"}:null}function cC(e,t,r,o=false,n=null){if(!r||o&&r.type==="root"){let i=null,a=e.getLastKey?.();for(;a!=null;){let l=t.getItem(a);if(l?.type!=="item")break;i=a,a=l?.parentKey;}return i!=null?{type:"item",key:i,dropPosition:"after"}:null}if(r.type==="item"){let i=null;n?i=n==="left"?e.getKeyLeftOf?.(r.key,{includeDisabled:true}):e.getKeyRightOf?.(r.key,{includeDisabled:true}):i=e.getKeyAbove?.(r.key,{includeDisabled:true});let a=dC(t,r.key,l=>t.getKeyBefore(l));if(i!=null&&i!==a)return {type:"item",key:i,dropPosition:r.dropPosition};switch(r.dropPosition){case "before":{let l=t.getItem(r.key);if(l&&l.prevKey!=null){let s=Jw(t,l.prevKey);if(s)return s}return i!=null?{type:"item",key:i,dropPosition:"on"}:{type:"root"}}case "on":return {type:"item",key:r.key,dropPosition:"before"};case "after":{let l=Jw(t,r.key);return l||{type:"item",key:r.key,dropPosition:"on"}}}}return r.type!=="root"?{type:"root"}:null}function Jw(e,t){let r=e.getItem(t),o=dC(e,t,i=>e.getKeyAfter(i)),n=o!=null?e.getItem(o):null;if(r&&n&&n.level>r.level){let i=null;if("lastChildKey"in r)for(i=r.lastChildKey!=null?e.getItem(r.lastChildKey):null;i&&i.type!=="item"&&i.prevKey!=null;)i=e.getItem(i.prevKey);else i=Array.from(r.childNodes).findLast(a=>a.type==="item")||null;if(i)return {type:"item",key:i.key,dropPosition:"after"}}return null}function dC(e,t,r){let o=r(t),n=o!=null?e.getItem(o):null;for(;n&&n.type!=="item";)o=r(n.key),n=o!=null?e.getItem(o):null;return o}var ny=20;function tR(e){let t=useRef(null),r=useRef(true),o=useRef(true);useEffect(()=>{if(e.current){t.current=jt(e.current)?e.current:Ze(e.current);let a=window.getComputedStyle(t.current);r.current=/(auto|scroll)/.test(a.overflowX),o.current=/(auto|scroll)/.test(a.overflowY);}},[e]);let n=useRef({timer:void 0,dx:0,dy:0}).current;useEffect(()=>()=>{n.timer&&(cancelAnimationFrame(n.timer),n.timer=void 0);},[n]);let i=useCallback(()=>{r.current&&t.current&&(t.current.scrollLeft+=n.dx),o.current&&t.current&&(t.current.scrollTop+=n.dy),n.timer&&(n.timer=requestAnimationFrame(i));},[t,n]);return {move(a,l){if(!Zn()||Bt()||!t.current)return;let s=t.current.getBoundingClientRect(),u=ny,c=ny,p=s.height-ny,d=s.width-ny;a<u||a>d||l<c||l>p?(a<u?n.dx=a-u:a>d&&(n.dx=a-d),l<c?n.dy=l-c:l>p&&(n.dy=l-p),n.timer||(n.timer=requestAnimationFrame(i))):this.stop();},stop(){n.timer&&(cancelAnimationFrame(n.timer),n.timer=void 0);}}}function ms(e,t,r){let o=useRef({props:e,state:t,nextTarget:null,dropOperation:null}).current;o.props=e,o.state=t;let n=useCallback(async d=>{let{onInsert:m,onRootDrop:f,onItemDrop:y,onReorder:g,onMove:b,acceptedDragTypes:x="all",shouldAcceptItemDrop:h}=o.props,{draggingKeys:v}=bt,C=Gr(r),{target:T,dropOperation:P,items:k}=d,S=k;(x!=="all"||h)&&(S=k.filter(w=>{let E;return w.kind==="directory"?E=new Set([Nx]):E=w.kind==="file"?new Set([w.type]):w.types,x==="all"||x.some(R=>E.has(R))?T.type==="item"&&T.dropPosition==="on"&&h?h(T,E):true:false})),S.length>0&&(T.type==="root"&&f&&await f({items:S,dropOperation:P}),T.type==="item"&&(T.dropPosition==="on"&&y&&await y({items:S,dropOperation:P,isInternal:C,target:T}),b&&C&&await b({keys:v,dropOperation:P,target:T}),T.dropPosition!=="on"&&(!C&&m&&await m({items:S,dropOperation:P,target:T}),C&&g&&await g({keys:v,dropOperation:P,target:T}))));},[o,r]),i=tR(r),{dropProps:a}=za({ref:r,onDropEnter(){o.nextTarget!=null&&t.setTarget(o.nextTarget);},onDropMove(d){o.nextTarget!=null&&t.setTarget(o.nextTarget);},getDropOperationForPoint(d,m,f,y){let{draggingKeys:g,dropCollectionRef:b}=bt,x=Gr(r),h=C=>t.getDropOperation({target:C,types:d,allowedOperations:m,isInternal:x,draggingKeys:g})!=="cancel",v=e.dropTargetDelegate.getDropTargetFromPoint(f,y,h);if(!v)return o.dropOperation="cancel",o.nextTarget=null,"cancel";if(o.dropOperation=t.getDropOperation({target:v,types:d,allowedOperations:m,isInternal:x,draggingKeys:g}),o.dropOperation==="cancel"){let C={type:"root"},T=t.getDropOperation({target:C,types:d,allowedOperations:m,isInternal:x,draggingKeys:g});T!=="cancel"&&(v=C,o.dropOperation=T);}return v&&o.dropOperation!=="cancel"&&r?.current!==b?.current&&Ea(r),o.nextTarget=o.dropOperation==="cancel"?null:v,o.dropOperation},onDropExit(){Ea(void 0),t.setTarget(null),i.stop();},onDropActivate(d){t.target?.type==="item"&&typeof e.onDropActivate=="function"&&e.onDropActivate({type:"dropactivate",x:d.x,y:d.y,target:t.target});},onDrop(d){Ea(r),t.target&&u(d,t.target);let{draggingCollectionRef:m}=bt;m==null&&xf();}}),l=useRef(null),s=useCallback(()=>{let{state:d}=o;if(l.current){let{target:m,collection:f,selectedKeys:y,focusedKey:g,isInternal:b,draggingKeys:x}=l.current;if(d.collection.size>f.size&&d.selectionManager.isSelectionEqual(y)){let h=new Set,v=d.collection.getFirstKey();for(;v!=null;){let C=d.collection.getItem(v);C?.type==="item"&&!f.getItem(C.key)&&h.add(C.key),C?.hasChildNodes&&d.collection.getItem(C.lastChildKey)?.type==="item"?v=C.firstChildKey:v=d.collection.getKeyAfter(v);}if(d.selectionManager.setSelectedKeys(h),d.selectionManager.focusedKey===g){let C=h.keys().next().value;if(C!=null){let T=d.collection.getItem(C),P=l.current.target,k=d.collection.expandedKeys?d.collection.expandedKeys.has(T?.parentKey):false;T&&(T?.type==="cell"||P.type==="item"&&P.dropPosition==="on"&&!k)&&(C=T.parentKey),C!=null&&d.selectionManager.setFocusedKey(C),d.selectionManager.selectionMode==="none"&&ar("keyboard");}}}else g!=null&&d.selectionManager.focusedKey===g&&b&&m.type==="item"&&m.dropPosition!=="on"&&x.has(d.collection.getItem(g)?.parentKey)?(d.selectionManager.setFocusedKey(d.collection.getItem(g)?.parentKey??null),ar("keyboard")):d.selectionManager.focusedKey===g&&m.type==="item"&&m.dropPosition==="on"&&d.collection.getItem(m.key)!=null?(d.selectionManager.setFocusedKey(m.key),ar("keyboard")):d.selectionManager.focusedKey!=null&&!d.selectionManager.isSelected(d.selectionManager.focusedKey)&&ar("keyboard");d.selectionManager.setFocused(true);}},[o]),u=useCallback((d,m)=>{let{state:f}=o;l.current={timeout:void 0,focusedKey:f.selectionManager.focusedKey,collection:f.collection,selectedKeys:f.selectionManager.selectedKeys,draggingKeys:bt.draggingKeys,isInternal:Gr(r),target:m},(o.props.onDrop||n)({type:"drop",x:d.x,y:d.y,target:m,items:d.items,dropOperation:d.dropOperation}),l.current.timeout=setTimeout(()=>{s(),l.current=null;},50);},[o,n,r,s]);useEffect(()=>()=>{l.current&&clearTimeout(l.current.timeout);},[]),te(()=>{l.current&&t.collection!==l.current.collection&&s();});let{direction:c}=Q();useEffect(()=>{if(!r.current)return;let d=(y,g=true,b="down")=>Qw(o.props.keyboardDelegate,o.state.collection,y,b,c==="rtl",g),m=(y,g=true)=>d(y,g,"up"),f=(y,g,b,x,h=true)=>{let v=0,C,{draggingKeys:T}=bt,P=Gr(r);do{let k=x(y,h);if(!k)return null;y=k,C=o.state.getDropOperation({target:k,types:g,allowedOperations:b,isInternal:P,draggingKeys:T}),y.type==="root"&&v++;}while(C==="cancel"&&!o.state.isDropTarget(y)&&v<2);return C==="cancel"?null:y};return Sf({element:r.current,preventFocusOnDrop:true,getDropOperation(y,g){if(o.state.target){let{draggingKeys:x}=bt,h=Gr(r);return o.state.getDropOperation({target:o.state.target,types:y,allowedOperations:g,isInternal:h,draggingKeys:x})}return f(null,y,g,d)?"move":"cancel"},onDropEnter(y,g){let b=Jo(g.items),x=o.state.selectionManager,h=null;Ea(r);let v=x.focusedKey,C="after",T=v!=null?o.state.collection.getItem(v):null;if(T?.type==="cell"&&(v=T.parentKey),v!=null&&x.isSelected(v)&&(x.selectedKeys.size>1&&x.firstSelectedKey===v?C="before":v=x.lastSelectedKey),v!=null){h={type:"item",key:v,dropPosition:C};let{draggingKeys:P}=bt,k=Gr(r);o.state.getDropOperation({target:h,types:b,allowedOperations:g.allowedDropOperations,isInternal:k,draggingKeys:P})==="cancel"&&(h=f(h,b,g.allowedDropOperations,d,false)??f(h,b,g.allowedDropOperations,m,false));}h||(h=f(null,b,g.allowedDropOperations,d)),o.state.setTarget(h);},onDropExit(){Ea(void 0),o.state.setTarget(null);},onDropTargetEnter(y){o.state.setTarget(y);},onDropActivate(y,g){g?.type==="item"&&g?.dropPosition==="on"&&typeof o.props.onDropActivate=="function"&&o.props.onDropActivate({type:"dropactivate",x:y.x,y:y.y,target:g});},onDrop(y,g){Ea(r),o.state.target&&u(y,g||o.state.target);},onKeyDown(y,g){let{keyboardDelegate:b}=o.props,x=Jo(g.items);switch(y.key){case "ArrowDown":{if(b.getKeyBelow){let h=f(o.state.target,x,g.allowedDropOperations,(v,C)=>d(v,C,"down"));o.state.setTarget(h);}break}case "ArrowUp":{if(b.getKeyAbove){let h=f(o.state.target,x,g.allowedDropOperations,(v,C)=>d(v,C,"up"));o.state.setTarget(h);}break}case "ArrowLeft":{if(b.getKeyLeftOf){let h=f(o.state.target,x,g.allowedDropOperations,(v,C)=>d(v,C,"left"));o.state.setTarget(h);}break}case "ArrowRight":{if(b.getKeyRightOf){let h=f(o.state.target,x,g.allowedDropOperations,(v,C)=>d(v,C,"right"));o.state.setTarget(h);}break}case "Home":{if(b.getFirstKey){let h=f(null,x,g.allowedDropOperations,d);o.state.setTarget(h);}break}case "End":{if(b.getLastKey){let h=f(null,x,g.allowedDropOperations,m);o.state.setTarget(h);}break}case "PageDown":{if(b.getKeyPageBelow){let h=o.state.target;if(!h)h=f(null,x,g.allowedDropOperations,d);else {let v=b.getFirstKey?.();h.type==="item"&&(v=h.key);let C=null;v!=null&&(C=b.getKeyPageBelow(v));let T=h.type==="item"?h.dropPosition:"after";if((C==null||h.type==="item"&&h.key===b.getLastKey?.())&&(C=b.getLastKey?.()??null,T="after"),C==null)break;h={type:"item",key:C,dropPosition:T};let{draggingCollectionRef:P,draggingKeys:k}=bt,S=P?.current===r?.current;o.state.getDropOperation({target:h,types:x,allowedOperations:g.allowedDropOperations,isInternal:S,draggingKeys:k})==="cancel"&&(h=f(h,x,g.allowedDropOperations,d,false)??f(h,x,g.allowedDropOperations,m,false));}o.state.setTarget(h??o.state.target);}break}case "PageUp":{if(!b.getKeyPageAbove)break;let h=o.state.target;if(!h)h=f(null,x,g.allowedDropOperations,m);else if(h.type==="item"){if(h.key===b.getFirstKey?.())h={type:"root"};else {let P=b.getKeyPageAbove(h.key),k=h.dropPosition;if(P==null&&(P=b.getFirstKey?.(),k="before"),P==null)break;h={type:"item",key:P,dropPosition:k};}let{draggingKeys:v}=bt,C=Gr(r);o.state.getDropOperation({target:h,types:x,allowedOperations:g.allowedDropOperations,isInternal:C,draggingKeys:v})==="cancel"&&(h=f(h,x,g.allowedDropOperations,m,false)??f(h,x,g.allowedDropOperations,d,false));}o.state.setTarget(h??o.state.target);break}}o.props.onKeyDown?.(y);}})},[o,r,u,c]);let p=ee();return hf.set(t,{id:p,ref:r}),{collectionProps:A(a,{id:p,"aria-describedby":null})}}function Yc(e,t,r){let{dropProps:o}=Df(r),n=Hz(t);useEffect(()=>{if(r.current)return Xz({element:r.current,target:e.target,getDropOperation(c,p){let{draggingKeys:d}=bt,m=Gr(n);return t.getDropOperation({target:e.target,types:c,allowedOperations:p,isInternal:m,draggingKeys:d})},activateButtonRef:e.activateButtonRef})},[r,e.target,t,n,e.activateButtonRef]);let i=Xl(),{draggingKeys:a}=bt,l=Gr(n),s=i&&t.getDropOperation({target:e.target,types:Jo(i.dragTarget.items),allowedOperations:i.dragTarget.allowedDropOperations,isInternal:l,draggingKeys:a})!=="cancel",u=t.isDropTarget(e.target);return useEffect(()=>{i&&u&&r.current&&r.current.focus();},[u,i,r]),{dropProps:{...o,"aria-hidden":!i||s?void 0:"true"},isDropTarget:u}}function fs(e,t,r){let{target:o}=e,{collection:n}=t,i=ve(bi,"@react-aria/dnd"),a=Xl(),{dropProps:l}=Yc(e,t,r),s=ee(),u=f=>f==null?"":n.getTextValue?.(f)??n.getItem(f)?.textValue??"",c="",p;if(o.type==="root")c=i.format("dropOnRoot"),p=`${s} ${Bz(t)}`;else if(o.dropPosition==="on")c=i.format("dropOnItem",{itemText:u(o.key)});else {let f,y;if(o.dropPosition==="before"){let g=n.getItem(o.key)?.prevKey,b=g!=null?n.getItem(g):null;f=b?.type==="item"?b.key:null;}else f=o.key;if(o.dropPosition==="after"){let g=n.getItem(o.key)?.nextKey,b=g!=null?n.getItem(g):null;y=b?.type==="item"?b.key:null;}else y=o.key;f!=null&&y!=null?c=i.format("insertBetween",{beforeItemText:u(f),afterItemText:u(y)}):f!=null?c=i.format("insertAfter",{itemText:u(f)}):y!=null&&(c=i.format("insertBefore",{itemText:u(y)}));}let d=t.isDropTarget(o),m=a?l["aria-hidden"]:"true";return {dropIndicatorProps:{...l,id:s,"aria-roledescription":i.format("dropIndicator"),"aria-label":c,"aria-labelledby":p,"aria-hidden":m,tabIndex:-1},isDropTarget:d,isHidden:!d&&!!m}}var QW={keyboard:{selected:"dragSelectedKeyboard",notSelected:"dragDescriptionKeyboard"},touch:{selected:"dragSelectedLongPress",notSelected:"dragDescriptionLongPress"},virtual:{selected:"dragDescriptionVirtual",notSelected:"dragDescriptionVirtual"}};function vi(e,t,r){let o=ve(bi,"@react-aria/dnd"),n=t.isDisabled||t.selectionManager.isDisabled(e.key),{dragProps:i,dragButtonProps:a}=Yw({elementRef:r,getItems(){return t.getItems(e.key)},preview:t.preview,getAllowedDropOperations:t.getAllowedDropOperations,hasDragButton:e.hasDragButton,onDragStart(f){t.startDrag(e.key,f),Uz(t.draggingKeys);},onDragMove(f){t.moveDrag(f);},onDragEnd(f){let{dropOperation:y}=f,g=y==="cancel"?false:Gr();t.endDrag({...f,keys:t.draggingKeys,isInternal:g}),xf();}}),l=t.collection.getItem(e.key),s=t.getKeysForDrag(e.key).size,u=s>1&&t.selectionManager.isSelected(e.key),c,p,d=Wl();if(!e.hasDragButton&&t.selectionManager.selectionMode!=="none"){let f=QW[d][u?"selected":"notSelected"];e.hasAction&&d==="keyboard"&&(f+="Alt"),u?p=o.format(f,{count:s}):p=o.format(f),delete i.onClick;}else if(u)c=o.format("dragSelectedItems",{count:s});else {let f=t.collection.getTextValue?.(e.key)??l?.textValue??"";c=o.format("dragItem",{itemText:f});}let m=Tt(p,r);if(p&&Object.assign(i,m),!e.hasDragButton&&e.hasAction){let{onKeyDownCapture:f,onKeyUpCapture:y}=i;d==="touch"&&delete i["aria-describedby"],i.onKeyDownCapture=g=>{g.altKey&&f?.(g);},i.onKeyUpCapture=g=>{g.altKey&&y?.(g);};}return {dragProps:n?{}:i,dragButtonProps:{...a,isDisabled:n,"aria-label":c}}}function ys(e,t,r){let{draggingCollectionRef:o}=bt;t.draggingKeys.size>0&&o?.current!==r.current&&Gz(r);}function bs(e){let{getItems:t,isDisabled:r,collection:o,selectionManager:n,onDragStart:i,onDragMove:a,onDragEnd:l,preview:s,getAllowedDropOperations:u}=e,[,c]=useState(false),p=useRef(new Set),d=useRef(null),m=f=>{let y=new Set;if(n.isSelected(f))for(let g of n.selectedKeys){let b=o.getItem(g);if(b){let x=false,h=b.parentKey;for(;h!=null;){if(n.selectedKeys.has(h)){x=true;break}let v=o.getItem(h);h=v?v.parentKey:null;}x||y.add(g);}}else y.add(f);return y};return {collection:o,selectionManager:n,get draggedKey(){return d.current},get draggingKeys(){return p.current},isDragging(f){return p.current.has(f)},getKeysForDrag:m,getItems(f){let y=m(f),g=[];for(let b of y){let x=o.getItem(b)?.value;x!=null&&g.push(x);}return t(m(f),g)},isDisabled:r,preview:s,getAllowedDropOperations:u,startDrag(f,y){let g=m(f);p.current=g,d.current=f,n.setFocused(false),c(true),typeof i=="function"&&i({...y,keys:g});},moveDrag(f){typeof a=="function"&&a({...f,keys:p.current});},endDrag(f){let{isInternal:y}=f;typeof l=="function"&&l({...f,keys:p.current,isInternal:y}),p.current=new Set,d.current=null,c(false);}}}function gs(e){let{acceptedDragTypes:t="all",isDisabled:r,onInsert:o,onRootDrop:n,onItemDrop:i,onReorder:a,onMove:l,shouldAcceptItemDrop:s,collection:u,selectionManager:c,onDropEnter:p,getDropOperation:d,onDrop:m}=e,[f,y]=useState(null),g=useRef(null),b=h=>{if(h.dropPosition==="before"){let v=u.getItem(h.key);return v&&v.prevKey!=null?{type:"item",key:v.prevKey,dropPosition:"after"}:null}else if(h.dropPosition==="after"){let v=u.getItem(h.key);return v&&v.nextKey!=null?{type:"item",key:v.nextKey,dropPosition:"before"}:null}return null},x=useCallback(h=>{let{target:v,types:C,allowedOperations:T,isInternal:P,draggingKeys:k}=h;if(r||!v)return "cancel";if(t==="all"||t.some(S=>C.has(S))){let S=o&&v.type==="item"&&!P&&(v.dropPosition==="before"||v.dropPosition==="after"),w=a&&v.type==="item"&&P&&(v.dropPosition==="before"||v.dropPosition==="after")&&n8(u,v,k),E=v.type!=="item"||v.dropPosition!=="on"||!s||s(v,C),R=l&&v.type==="item"&&P&&E,_=n&&v.type==="root"&&!P,D=i&&v.type==="item"&&v.dropPosition==="on"&&!(P&&v.key!=null&&k.has(v.key))&&E;if(m||S||w||R||_||D)return d?d(v,C,T):T[0]}return "cancel"},[r,u,t,d,o,n,i,s,a,l,m]);return {collection:u,selectionManager:c,isDisabled:r,target:f,setTarget(h){if(this.isDropTarget(h))return;let v=g.current;v&&typeof e.onDropExit=="function"&&e.onDropExit({type:"dropexit",x:0,y:0,target:v}),h&&typeof p=="function"&&p({type:"dropenter",x:0,y:0,target:h}),g.current=h??null,y(h??null);},isDropTarget(h){let v=g.current;return !v||!h?false:mC(h,v)?true:h?.type==="item"&&v?.type==="item"&&h.key!==v.key&&h.dropPosition!==v.dropPosition&&h.dropPosition!=="on"&&v.dropPosition!=="on"?mC(b(h),v)||mC(h,b(v)):false},getDropOperation(h){let{target:v,isInternal:C,draggingKeys:T}=h;if(C&&v.type==="item"&&T.size>0){if(T.has(v.key)&&v.dropPosition==="on")return "cancel";let P=v.key;for(;P!=null;){let S=u.getItem(P)?.parentKey;if(S!=null&&T.has(S))return "cancel";P=S??null;}}return x(h)}}}function mC(e,t){if(!e)return !t;switch(e.type){case "root":return t?.type==="root";case "item":return t?.type==="item"&&t?.key===e.key&&t?.dropPosition===e.dropPosition}}function n8(e,t,r){let o=e.getItem(t.key);for(let n of r)if(e.getItem(n)?.parentKey!==o?.parentKey)return false;return true}var xi=class{collection;ref;layout;orientation;direction;constructor(t,r,o){this.collection=t,this.ref=r,this.layout=o?.layout||"stack",this.orientation=o?.orientation||"vertical",this.direction=o?.direction||"ltr";}getPrimaryStart(t){return this.orientation==="horizontal"?t.left:t.top}getPrimaryEnd(t){return this.orientation==="horizontal"?t.right:t.bottom}getSecondaryStart(t){return this.orientation==="horizontal"?t.top:t.left}getSecondaryEnd(t){return this.orientation==="horizontal"?t.bottom:t.right}getFlowStart(t){return this.layout==="stack"?this.getPrimaryStart(t):this.getSecondaryStart(t)}getFlowEnd(t){return this.layout==="stack"?this.getPrimaryEnd(t):this.getSecondaryEnd(t)}getFlowSize(t){return this.getFlowEnd(t)-this.getFlowStart(t)}getDropTargetFromPoint(t,r,o){if(this.collection[Symbol.iterator]().next().done||!this.ref.current)return {type:"root"};let n=this.ref.current.getBoundingClientRect(),i=this.orientation==="horizontal"?t:r,a=this.orientation==="horizontal"?r:t;i+=this.getPrimaryStart(n),a+=this.getSecondaryStart(n);let l=this.layout==="stack"?i:a,s=this.orientation==="horizontal"&&this.direction==="rtl",u=this.layout==="grid"&&this.orientation==="vertical"&&this.direction==="rtl",c=this.layout==="stack"?s:u,p=this.ref.current?.dataset.collection,d=this.ref.current.querySelectorAll(p?`[data-collection="${CSS.escape(p)}"]`:"[data-key]"),m=new Map,f=X(this.ref.current);for(let v of d)v instanceof f.HTMLElement&&v.dataset.key!=null&&m.set(v.dataset.key,v);let y=[...this.collection].filter(v=>v.type==="item");if(y.length<1)return {type:"root"};let g=0,b=y.length;for(;g<b;){let v=Math.floor((g+b)/2),C=y[v],T=m.get(String(C.key));if(!T)break;let P=T.getBoundingClientRect(),k=S=>{S?g=v+1:b=v;};if(i<this.getPrimaryStart(P))k(s);else if(i>this.getPrimaryEnd(P))k(!s);else if(a<this.getSecondaryStart(P))k(u);else if(a>this.getSecondaryEnd(P))k(!u);else {let S={type:"item",key:C.key,dropPosition:"on"};if(o(S))l<=this.getFlowStart(P)+5&&o({...S,dropPosition:"before"})?S.dropPosition=c?"after":"before":l>=this.getFlowEnd(P)-5&&o({...S,dropPosition:"after"})&&(S.dropPosition=c?"before":"after");else {let w=this.getFlowStart(P)+this.getFlowSize(P)/2;l<=w&&o({...S,dropPosition:"before"})?S.dropPosition=c?"after":"before":l>=w&&o({...S,dropPosition:"after"})&&(S.dropPosition=c?"before":"after");}return S}}let x=y[Math.min(g,y.length-1)];return n=m.get(String(x.key))?.getBoundingClientRect(),n&&(i<this.getPrimaryStart(n)||Math.abs(l-this.getFlowStart(n))<Math.abs(l-this.getFlowEnd(n)))?{type:"item",key:x.key,dropPosition:c?"after":"before"}:{type:"item",key:x.key,dropPosition:c?"before":"after"}}};function Na(e){return {dragAndDropHooks:useMemo(()=>{let{onDrop:r,onInsert:o,onItemDrop:n,onReorder:i,onMove:a,onRootDrop:l,getItems:s,renderDragPreview:u,renderDropIndicator:c,dropTargetDelegate:p}=e,d=!!s,m=!!(r||o||n||i||a||l),f={};return d&&(f.useDraggableCollectionState=function(g){return bs({...g,...e})},f.useDraggableCollection=ys,f.useDraggableItem=vi,f.DragPreview=hi,f.renderDragPreview=u,f.isVirtualDragging=Bx),m&&(f.useDroppableCollectionState=function(g){return gs({...g,...e})},f.useDroppableItem=Yc,f.useDroppableCollection=function(g,b,x){return ms({...g,...e},b,x)},f.useDropIndicator=fs,f.renderDropIndicator=c,f.dropTargetDelegate=p,f.ListDropTargetDelegate=xi),f},[e])}}var fC=new WeakMap;function a8(e=false,t=document){if(!fC.has(t)||e){let r=t.createElement("div"),o=r.style;o.width="50px",o.height="50px",o.overflow="scroll",o.direction="rtl";let n=t.createElement("div"),i=n.style;i.width="100px",i.height="100px",r.appendChild(n),t.body.appendChild(r);let a;r.scrollLeft>0?a="positive-descending":(r.scrollLeft=1,r.scrollLeft===0?a="negative":a="positive-ascending"),t.body.removeChild(r),fC.set(t,a);}return fC.get(t)}function aR(e,t){let{scrollLeft:r}=e;if(t==="rtl"){let{scrollWidth:o,clientWidth:n}=e;switch(a8(false,G(e))){case "negative":r=-r;break;case "positive-descending":r=o-n-r;break}}return r}function u8(e,t){t=ce(t);let{scrollViewProps:r,contentProps:o}=ly(e,t);return jsx("div",{role:"presentation",...r,ref:t,children:jsx("div",{...o,children:e.children})})}Un.forwardRef(u8);function ly(e,t){let{contentSize:r,onVisibleRectChange:o,onSizeChange:n,innerStyle:i,onScrollStart:a,onScrollEnd:l,scrollDirection:s="both",onScroll:u,allowsWindowScrolling:c,...p}=e,d=useRef({scrollPosition:new Gt,size:new Ie,viewportOffset:new Gt,viewportSize:new Ie,scrollEndTime:0,scrollTimeout:null,isScrolling:false,lastVisibleRect:new Se}).current,{direction:m}=Q(),f=useCallback(()=>{let w=c?new Se(d.viewportOffset.x+d.scrollPosition.x,d.viewportOffset.y+d.scrollPosition.y,Math.max(0,Math.min(d.size.width-d.viewportOffset.x,d.viewportSize.width)),Math.max(0,Math.min(d.size.height-d.viewportOffset.y,d.viewportSize.height))):new Se(d.scrollPosition.x,d.scrollPosition.y,d.size.width,d.size.height);(w.area>0||d.lastVisibleRect.area>0)&&(o(w),d.lastVisibleRect=w);},[d,c,o]),[y,g]=useState(false),b=useCallback(w=>{let E=$(w);if(!Y(E,t.current))return;if(u&&E===t.current&&u(w),E!==t.current){let _=t.current.getBoundingClientRect(),D=_.x<0?-_.x:0,F=_.y<0?-_.y:0;if(D===d.viewportOffset.x&&F===d.viewportOffset.y)return;d.viewportOffset=new Gt(D,F);}else {let _=E.scrollTop,D=aR(E,m);d.scrollPosition=new Gt(Math.max(0,Math.min(D,r.width-d.size.width)),Math.max(0,Math.min(_,r.height-d.size.height)));}let R=X(w.currentTarget);flushSync(()=>{f(),d.isScrolling||(d.isScrolling=true,g(true),R.dispatchEvent(new R.Event("tk.disconnect-observer")),a&&a());let _=Date.now();d.scrollEndTime<=_+50&&(d.scrollEndTime=_+300,d.scrollTimeout!=null&&clearTimeout(d.scrollTimeout),d.scrollTimeout=setTimeout(()=>{d.isScrolling=false,g(false),d.scrollTimeout=null,R.dispatchEvent(new R.Event("tk.connect-observer")),l&&l();},300));});},[u,t,m,d,r,f,a,l]);at(t,"scroll",b),useEffect(()=>()=>{if(d.scrollTimeout!=null&&clearTimeout(d.scrollTimeout),d.isScrolling){let w=X(t.current);w.dispatchEvent(new w.Event("tk.connect-observer"));}},[]);let x=useRef(false),h=useCallback(w=>{let E=t.current;if(!E||x.current)return;x.current=true;let R=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,_=X(E),D=Object.getOwnPropertyNames(_.HTMLElement.prototype).includes("clientWidth"),F=Object.getOwnPropertyNames(_.HTMLElement.prototype).includes("clientHeight"),z=E.clientWidth,N=E.clientHeight,V=R&&!D?1/0:z,M=R&&!F?1/0:N,O=window.innerWidth,B=window.innerHeight,K=d.viewportSize.width!==O||d.viewportSize.height!==B;K&&(d.viewportSize=new Ie(O,B)),(d.size.width!==V||d.size.height!==M||K)&&(d.size=new Ie(V,M),w(()=>{f(),n?.(d.size);}),(!R&&z!==E.clientWidth||N!==E.clientHeight)&&(d.size=new Ie(E.clientWidth,E.clientHeight),w(()=>{f(),n?.(d.size);}))),x.current=false;},[t,d,f,n]),v=Pe(h);te(()=>{d.viewportSize=new Ie(window.innerWidth,window.innerHeight);let w=()=>{v(flushSync);};return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)},[d]);let C=useRef(null),[T,P]=useState({});te(()=>{if(!x.current&&(C.current==null||!r.equals(C.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){P({}),C.current=r;return}else queueMicrotask(()=>v(flushSync));C.current=r;}),te(()=>{v(w=>w());},[T]);let k=useCallback(()=>{h(flushSync);},[h]);jr({ref:t,box:"border-box",onResize:k});let S={padding:0,...p.style};return s==="horizontal"?(S.overflowX="auto",S.overflowY="hidden"):s==="vertical"||r.width===d.size.width?(S.overflowY="auto",S.overflowX="hidden"):S.overflow="auto",i={width:Number.isFinite(r.width)?r.width:void 0,height:Number.isFinite(r.height)?r.height:void 0,pointerEvents:y?"none":"auto",position:"relative",...i},{isScrolling:y,scrollViewProps:{...p,style:S},contentProps:{role:"presentation",style:i}}}function uR(e){let{layoutInfo:t,virtualizer:r,ref:o}=e,n=t?.key,i=useCallback(()=>{if(n!=null&&o.current){let a=p8(o.current);r.updateItemSize(n,a);}},[r,n,o]);return te(()=>{t?.estimatedSize&&i();}),{updateSize:i}}function p8(e){let t=e.style.height;e.style.height="";let r=new Ie(e.scrollWidth,e.scrollHeight);return e.style.height=t,r}function sy(e){let{style:t,className:r,layoutInfo:o,virtualizer:n,parent:i,children:a}=e,{direction:l}=Q(),s=useRef(null);return uR({layoutInfo:o,virtualizer:n,ref:s}),jsx("div",{role:"presentation",ref:s,className:r,style:{...dR(o,l,i),...t},children:a})}var cR=new WeakMap;function dR(e,t,r){let o=t==="rtl"?"right":"left",n=cR.get(e);if(n&&n[o]!=null){if(!r)return n;let l=e.rect.y-r.rect.y,s=e.rect.x-r.rect.x;if(n.top===l&&n[o]===s)return n}let i={top:e.rect.y-(r&&!(r.allowOverflow&&e.isSticky)?r.rect.y:0),[o]:e.rect.x-(r&&!(r.allowOverflow&&e.isSticky)?r.rect.x:0),width:e.rect.width,height:e.rect.height};Object.entries(i).forEach(([l,s])=>{Number.isFinite(s)||(i[l]=void 0);});let a={position:e.isSticky?"sticky":"absolute",display:e.isSticky?"inline-block":void 0,overflow:e.allowOverflow?"visible":"hidden",opacity:e.opacity,zIndex:e.zIndex,transform:e.transform??void 0,contain:"size layout style",...i};return cR.set(e,a),a}var yR=createContext(null),bR=createContext(null);function uy(e){let{children:t,layout:r,layoutOptions:o}=e,n=useMemo(()=>typeof r=="function"?new r:r,[r]),i=useMemo(()=>({isVirtualized:true,layoutDelegate:n,dropTargetDelegate:n.getDropTargetFromPoint?n:void 0,CollectionRoot:b8,CollectionBranch:g8}),[n]);return jsx(ze.Provider,{value:i,children:jsx(bR.Provider,{value:{layout:n,layoutOptions:o},children:t})})}function b8({collection:e,persistedKeys:t,scrollRef:r,renderDropIndicator:o}){let{layout:n,layoutOptions:i}=useContext(bR),a=n.useLayoutOptions?.(),l=LT({allowsWindowScrolling:true,layout:n,collection:e,renderView:(u,c)=>c?.render?.(c),onVisibleRectChange(u){let c=r?.current;c&&(c.scrollLeft=u.x,c.scrollTop=u.y);},persistedKeys:t,layoutOptions:useMemo(()=>i&&a?{...i,...a}:i||a,[i,a])}),{contentProps:s}=ly({onVisibleRectChange:l.setVisibleRect,onSizeChange:l.setSize,contentSize:l.contentSize,onScrollStart:l.startScrolling,onScrollEnd:l.endScrolling,allowsWindowScrolling:true},r);return jsx("div",{...s,children:jsx(yR.Provider,{value:l,children:gR(null,l.visibleViews,o)})})}function g8({parent:e,renderDropIndicator:t}){let o=useContext(yR).virtualizer.getVisibleView(e.key);return gR(o,Array.from(o.children),t)}function gR(e,t,r){return t.map(o=>h8(e,o,r))}function h8(e,t,r){let o=jsx(sy,{layoutInfo:t.layoutInfo,virtualizer:t.virtualizer,parent:e?.layoutInfo,children:t.rendered},t.key),{collection:n,layout:i}=t.virtualizer,a=t.content;return a?.type==="item"&&r&&i.getDropTargetLayoutInfo&&(o=jsxs(Un.Fragment,{children:[pR(e,t,{type:"item",key:t.content.key,dropPosition:"before"},r),o,Mh(n,a,l=>pR(e,t,l,r))]},t.key)),o}function pR(e,t,r,o){let n=o(r);if(n){let i=t.virtualizer.layout.getDropTargetLayoutInfo(r);n=jsx(sy,{layoutInfo:i,virtualizer:t.virtualizer,parent:e?.layoutInfo,children:n});}return n}var vs=Un.forwardRef(({children:e,...t},r)=>{r=ce(r);let{pressProps:o}=Ae({...t,ref:r}),{focusableProps:n}=rt(t,r),i=Un.Children.only(e);useEffect(()=>{if(process.env.NODE_ENV==="production")return;let l=r.current;if(!l||!(l instanceof X(l).Element)){console.error("<Pressable> child must forward its ref to a DOM element.");return}if(!t.isDisabled&&!Xn(l)){console.warn("<Pressable> child must be focusable. Please ensure the tabIndex prop is passed through.");return}if(l.localName!=="button"&&l.localName!=="input"&&l.localName!=="select"&&l.localName!=="textarea"&&l.localName!=="a"&&l.localName!=="area"&&l.localName!=="summary"){let s=l.getAttribute("role");s?s!=="application"&&s!=="button"&&s!=="checkbox"&&s!=="combobox"&&s!=="gridcell"&&s!=="link"&&s!=="menuitem"&&s!=="menuitemcheckbox"&&s!=="menuitemradio"&&s!=="option"&&s!=="radio"&&s!=="searchbox"&&s!=="separator"&&s!=="slider"&&s!=="spinbutton"&&s!=="switch"&&s!=="tab"&&s!=="textbox"&&s!=="treeitem"&&console.warn(`<Pressable> child must have an interactive ARIA role. Got "${s}".`):console.warn("<Pressable> child must have an interactive ARIA role.");}},[r,t.isDisabled]);let a=parseInt(Un.version,10)<19?i.ref:i.props.ref;return Un.cloneElement(i,{...A(o,n,i.props),ref:se(a,r)})});function dy(e){let{initialItems:t=[],initialSelectedKeys:r,getKey:o=u=>u.id??u.key,filter:n,initialFilterText:i=""}=e,[a,l]=useState({items:t,selectedKeys:r==="all"?"all":new Set(r||[]),filterText:i}),s=useMemo(()=>n?a.items.filter(u=>n(u,a.filterText)):a.items,[a.items,a.filterText,n]);return {...a,items:s,...P8({getKey:o},l),getItem(u){return a.items.find(c=>o(c)===u)}}}function P8(e,t){let{cursor:r,getKey:o}=e;return {setSelectedKeys(n){t(i=>({...i,selectedKeys:n}));},addKeysToSelection(n){t(i=>i.selectedKeys==="all"?i:n==="all"?{...i,selectedKeys:"all"}:{...i,selectedKeys:new Set([...i.selectedKeys,...n])});},removeKeysFromSelection(n){t(i=>{if(n==="all")return {...i,selectedKeys:new Set};let a=i.selectedKeys==="all"?new Set(i.items.map(o)):new Set(i.selectedKeys);for(let l of n)a.delete(l);return {...i,selectedKeys:a}});},setFilterText(n){t(i=>({...i,filterText:n}));},insert(n,...i){t(a=>Zc(a,n,...i));},insertBefore(n,...i){t(a=>{let l=a.items.findIndex(s=>o?.(s)===n);if(l===-1)if(a.items.length===0)l=0;else return a;return Zc(a,l,...i)});},insertAfter(n,...i){t(a=>{let l=a.items.findIndex(s=>o?.(s)===n);if(l===-1)if(a.items.length===0)l=0;else return a;return Zc(a,l+1,...i)});},prepend(...n){t(i=>Zc(i,0,...n));},append(...n){t(i=>Zc(i,i.items.length,...n));},remove(...n){t(i=>{let a=new Set(n),l=i.items.filter(u=>!a.has(o(u))),s="all";if(i.selectedKeys!=="all"){s=new Set(i.selectedKeys);for(let u of n)s.delete(u);}return r==null&&l.length===0&&(s=new Set),{...i,items:l,selectedKeys:s}});},removeSelectedItems(){t(n=>{if(n.selectedKeys==="all")return {...n,items:[],selectedKeys:new Set};let i=n.selectedKeys,a=n.items.filter(l=>!i.has(o(l)));return {...n,items:a,selectedKeys:new Set}});},move(n,i){t(a=>{let l=a.items.findIndex(c=>o(c)===n);if(l===-1)return a;let s=a.items.slice(),[u]=s.splice(l,1);return s.splice(i,0,u),{...a,items:s}});},moveBefore(n,i){t(a=>{let l=a.items.findIndex(c=>o(c)===n);if(l===-1)return a;let u=(Array.isArray(i)?i:[...i]).map(c=>a.items.findIndex(p=>o(p)===c)).sort((c,p)=>c-p);return hR(a,u,l)});},moveAfter(n,i){t(a=>{let l=a.items.findIndex(c=>o(c)===n);if(l===-1)return a;let u=(Array.isArray(i)?i:[...i]).map(c=>a.items.findIndex(p=>o(p)===c)).sort((c,p)=>c-p);return hR(a,u,l+1)});},update(n,i){t(a=>{let l=a.items.findIndex(u=>o(u)===n);if(l===-1)return a;let s;return typeof i=="function"?s=i(a.items[l]):s=i,{...a,items:[...a.items.slice(0,l),s,...a.items.slice(l+1)]}});}}}function Zc(e,t,...r){return {...e,items:[...e.items.slice(0,t),...r,...e.items.slice(t)]}}function hR(e,t,r){r-=t.filter(i=>i<r).length;let o=t.map(i=>({from:i,to:r++}));for(let i=0;i<o.length;i++){let a=o[i].from;for(let l=i;l<o.length;l++)o[l].from>a&&o[l].from--;}for(let i=0;i<o.length;i++){let a=o[i];for(let l=o.length-1;l>i;l--){let s=o[l];s.from<a.to?a.to++:s.from++;}}let n=e.items.slice();for(let i of o){let[a]=n.splice(i.from,1);n.splice(i.to,0,a);}return {...e,items:n}}function gC(e){let{initialItems:t=[],initialSelectedKeys:r,getKey:o=y=>y.id??y.key,getChildren:n=y=>y.children}=e,[i,a]=useState(()=>p(t,new Map)),{items:l,nodeMap:s}=i,[u,c]=useState(new Set(r||[]));function p(y=[],g,b){return y==null&&(y=[]),{items:y.map(x=>{let h={key:o(x),parentKey:b??null,value:x,children:null};return h.children=p(n(x),g,h.key).items,g.set(h.key,h),h}),nodeMap:g}}function d(y,g,b,x){let h=g==null?null:x.get(g);if(h==null)return {items:y,nodeMap:x};let v=new Map(x),C=b(h);for(C==null?f(h,v):m(C,v);h&&h.parentKey;){let T=v.get(h.parentKey),P={key:T.key,parentKey:T.parentKey,value:T.value,children:null},k=T.children;C==null&&k&&(k=k.filter(S=>S!==h)),P.children=k?.map(S=>S===h?C:S)??null,v.set(P.key,P),C=P,h=T;}return C==null&&(y=y.filter(T=>T!==h)),{items:y.map(T=>T===h?C:T),nodeMap:v}}function m(y,g){if(g.set(y.key,y),y.children)for(let b of y.children)m(b,g);}function f(y,g){if(g.delete(y.key),y.children)for(let b of y.children)f(b,g);}return {items:l,selectedKeys:u,setSelectedKeys:c,getItem(y){return s.get(y)},insert(y,g,...b){a(({items:x,nodeMap:h})=>{let{items:v,nodeMap:C}=p(b,new Map(h),y);return y==null?{items:[...x.slice(0,g),...v,...x.slice(g)],nodeMap:C}:d(x,y,T=>({key:T.key,parentKey:T.parentKey,value:T.value,children:[...T.children.slice(0,g),...v,...T.children.slice(g)]}),C)});},insertBefore(y,...g){let b=s.get(y);if(!b)return;let x=s.get(b.parentKey),v=(x?x.children:l).indexOf(b);this.insert(x?.key??null,v,...g);},insertAfter(y,...g){let b=s.get(y);if(!b)return;let x=s.get(b.parentKey),v=(x?x.children:l).indexOf(b);this.insert(x?.key??null,v+1,...g);},prepend(y,...g){this.insert(y,0,...g);},append(y,...g){if(y==null)this.insert(null,l.length,...g);else {let b=s.get(y);if(!b)return;this.insert(y,b.children.length,...g);}},remove(...y){if(y.length===0)return;let g=l,b=s,x;for(let v of y)x=d(g,v,()=>null,b),b=x.nodeMap,g=x.items;a(x);let h=new Set(u);for(let v of u)x.nodeMap.has(v)||h.delete(v);c(h);},removeSelectedItems(){this.remove(...u);},move(y,g,b){a(({items:x,nodeMap:h})=>{let v=h.get(y);if(!v)return {items:x,nodeMap:h};let{items:C,nodeMap:T}=d(x,y,()=>null,h),P={...v,parentKey:g};return g==null?(m(P,T),{items:[...C.slice(0,b),P,...C.slice(b)],nodeMap:T}):d(C,g,k=>({key:k.key,parentKey:k.parentKey,value:k.value,children:[...k.children.slice(0,b),P,...k.children.slice(b)]}),T)});},moveBefore(y,g){a(b=>{let{items:x,nodeMap:h}=b,v=h.get(y);if(!v)return b;let C=v.parentKey??null,T=null;C!=null&&(T=h.get(C)??null);let P=T?.children?T.children.indexOf(v):x.indexOf(v);return xR(b,g,T,P,d,m)});},moveAfter(y,g){a(b=>{let{items:x,nodeMap:h}=b,v=h.get(y);if(!v)return b;let C=v.parentKey??null,T=null;C!=null&&(T=h.get(C)??null);let P=T?.children?T.children.indexOf(v):x.indexOf(v);return P++,xR(b,g,T,P,d,m)});},update(y,g){a(({items:b,nodeMap:x})=>d(b,y,h=>{let v={key:h.key,parentKey:h.parentKey,value:g,children:null},C=p(n(g),x,v.key);return v.children=C.items,v},x));}}}function xR(e,t,r,o,n,i){let{items:a,nodeMap:l}=e,s=r,u=new Set(t);for(;s?.parentKey!=null;){if(u.has(s.key))throw new Error("Cannot move an item to be a child of itself.");s=l.get(s.parentKey)??null;}let c=o,p=Array.isArray(t)?t:[...t],d=new Map,m=[],f=a,y=l,g=0;function b(C,{inorder:T,postorder:P}){if(T?.(C),C!=null)for(let k of C.children??[])b(k,{inorder:T,postorder:P}),P?.(k);}function x(C){p.includes(C.key)&&d.set(C.key,g++);}function h(C){if(p.includes(C.key)){m.push({...y.get(C.key),parentKey:r?.key??null});let{items:T,nodeMap:P}=n(f,C.key,()=>null,y);f=T,y=P;}(C.parentKey===r||C.parentKey===r?.key)&&p.includes(C.key)&&(r?.children?r.children.indexOf(C):a.indexOf(C))<c&&o--;}b({children:a},{inorder:x,postorder:h});let v=m.sort((C,T)=>d.get(C.key)>d.get(T.key)?1:-1);return !r||r.key==null?(v.forEach(C=>{i(C,y);}),{items:[...f.slice(0,o),...v,...f.slice(o)],nodeMap:y}):n(f,r.key,C=>({key:C.key,parentKey:C.parentKey,value:C.value,children:[...C.children.slice(0,o),...v,...C.children.slice(o)]}),y)}var xs=class extends Uc{useLayoutOptions(){let{direction:t}=Q();return useMemo(()=>({direction:t}),[t])}};function CR(e){return null}CR.getCollectionNode=function*(t,r){let{childItems:o,title:n,children:i}=t,a=t.title||t.children,l=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!l&&!r?.suppressTextValueWarning&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield {type:"item",props:t,rendered:a,textValue:l,"aria-label":t["aria-label"],hasChildNodes:D8(t),*childNodes(){if(o)for(let s of o)yield {type:"item",value:s};else if(n){let s=[];Un.Children.forEach(i,u=>{s.push({type:"item",element:u});}),yield*s;}}};};function D8(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&Un.Children.count(e.children)>0)}var uo=CR;function PR(e){return null}PR.getCollectionNode=function*(t){let{children:r,title:o,items:n}=t;yield {type:"section",props:t,hasChildNodes:true,rendered:o,"aria-label":t["aria-label"],*childNodes(){if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let i of n)yield {type:"item",value:i,renderer:r};}else {let i=[];Un.Children.forEach(r,a=>{i.push({type:"item",element:a});}),yield*i;}}};};var hC=PR;function CGe(e){return e.closest(".BaselineUI-Portal")||e.closest(".BaselineUI-Popover-Content")}function SR(e){return typeof e=="object"&&typeof e.left=="number"&&typeof e.top=="number"&&(typeof e.width=="number"||e.width===void 0)&&(typeof e.height=="number"||e.height===void 0)}function ge(e,t){if(!e)throw new Error(t||"Invariant failed")}function L(...e){let t=e.filter(Boolean),r=[];for(let o of t)if(Array.isArray(o))r.push(L(...o));else if(typeof o=="object"){let n=Object.keys(o);for(let i of n)o[i]&&r.push(i);}else typeof o=="string"&&r.push(o);return r.join(" ")}function zGe(e,t){if(!e)return null;if(typeof e=="string")return t.querySelector(e);if(e instanceof HTMLElement)return e;if("current"in e)return e.current}function py({text:e,fontSize:t=16,fontFamily:r="Arial",fontWeight:o="normal",fontStyle:n="normal",font:i,element:a}){let s=G(a).createElement("canvas").getContext("2d");if(!s)return {width:0,height:0};s.font=i||`${n} ${o} ${t}px ${r}`;let u=s.measureText(e);return {width:u.width,height:u.actualBoundingBoxAscent+u.actualBoundingBoxDescent}}function wGe({text:e,maxWidth:t,initialFontSize:r=50,fontFamily:o="Arial",fontWeight:n="normal",fontStyle:i="normal",element:a}){let{width:l}=py({text:e,fontSize:r,fontFamily:o,fontWeight:n,fontStyle:i,element:a}),s=r,u=l;for(;u>t;)s-=.5,u=py({text:e,fontSize:s,fontFamily:o,fontWeight:n,fontStyle:i,element:a}).width;return Math.max(s,1)}var DR=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'];function RGe(e){return DR.some(t=>e.matches(t))}function kR(e){return e.querySelectorAll(DR.join(", "))}function E8(e){return e.nodeType===Node.DOCUMENT_NODE||Dr(e)}function Jc(e=document.documentElement){let t=e.getRootNode();if(!E8(t))return null;let r=t.activeElement;for(;r?.shadowRoot?.activeElement;)r=r.shadowRoot.activeElement;return r}var z8=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ER(e){return e instanceof HTMLInputElement&&!z8.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function my(e){let t=e.getBoundingClientRect(),r=X(e),o=e.getRootNode();if(o instanceof r.ShadowRoot){let i=o.host,a=0,l=0,s=e;for(;s&&s!==i;){a+=s.offsetLeft,l+=s.offsetTop;let u=s.offsetParent;if(!u||!i.contains(u))break;s=u;}return {x:a,y:l,width:t.width,height:t.height}}return {x:t.left+r.scrollX,y:t.top+r.scrollY,width:t.width,height:t.height}}function IGe(e,t){let r=my(e);return {x:r.x+(t?.x??0),y:r.y+(t?.y??0)}}var fy=(e,t)=>(e+t)/2;function yy(e,t=true){if(!e.length)return "";let r=e.length;if(r<4)return "";let o=e[0],n=e[1],i=e[2],a=`M${o[0].toFixed(2)},${o[1].toFixed(2)} Q${n[0].toFixed(2)},${n[1].toFixed(2)} ${fy(n[0],i[0]).toFixed(2)},${fy(n[1],i[1]).toFixed(2)} T`;for(let l=2,s=r-1;l<s;l++)o=e[l],n=e[l+1],a+=`${fy(o[0],n[0]).toFixed(2)},${fy(o[1],n[1]).toFixed(2)} `;return t&&(a+="Z"),a}function w8(e){return e.split("/").pop()?.split(".").shift()}function zR(e){let t={};for(let r of Object.keys(e)){let o=w8(r)??"";t[o]=e[r];}return t}function he(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>!!t))}function vC(e,t){return typeof e=="boolean"?e?t:void 0:{...t,...e}}function wR(e){if(e===void 0)return null;try{return _e(e)}catch{return null}}function xC(e){return e.toString(16).padStart(2,"0")}function jGe(e,t){ge(t>=0&&t<=100,"Percent must be between 0 and 100");let r=_e(e),o=r.getChannelValue("red"),n=r.getChannelValue("green"),i=r.getChannelValue("blue"),a=Math.round(o+(255-o)*t/100),l=Math.round(n+(255-n)*t/100),s=Math.round(i+(255-i)*t/100);return `#${xC(a)}${xC(l)}${xC(s)}`}function Ti(e,t){if(e===t)return true;let r=wR(e),o=wR(t);return r===null||o===null?false:r.toString("rgba")===o.toString("rgba")}function TC(e,t){if(e=e.trim(),e.includes(" "))return false;try{return new URL(e),!0}catch{return t?TC(`https://${e}`):false}}function by(e,t=false){return ht()?e.replace("Ctrl+",t?"\u2318":"Cmd+").replace("Alt+",t?"\u2325":"Option+").replace("Shift+",t?"\u21E7":"Shift+").replace("Enter+",t?"\u21A9":"Enter+").replace("Space+",t?"\u2423":"Space+").replace("Enter",t?"\u21A9":"Enter"):e}var Ut=(e,t,r)=>Math.min(Math.max(e,t),r);var RR=e=>e.charAt(0).toUpperCase()+e.slice(1),IR=e=>new DOMParser().parseFromString(R8__default.sanitize(e),"text/html").body.textContent||"";function JGe(e){try{let t=e.ownerDocument;return t?.defaultView?t.defaultView!==window.top:!1}catch{return true}}function _R(e){return e?Dr(e.getRootNode()):false}var rUe=["onBeforeInput","children"],MR=new Set;function LR(e){let{onBeforeInput:t,children:r,...o}=e;if(typeof t=="function"){let n=new Error("safeSpreadProps onBeforeInput drop").stack??"unknown";MR.has(n)||(MR.add(n),console.error("[safeSpreadProps] dropping onBeforeInput handler from React Aria props; verify this is intentional after the next subtree sync."));}return o}var AR=new Set;function Ts(e,t){process.env.NODE_ENV!=="production"&&(AR.has(e)||(AR.add(e),console.warn(t)));}function I8(e,t,r){let o=r.split(",").map(a=>a.trim().toLowerCase()).filter(Boolean);if(!o.length)return true;let n=e.toLowerCase(),i=t.toLowerCase();return o.some(a=>a.startsWith(".")?n.endsWith(a):a.endsWith("/*")?i.startsWith(a.slice(0,-1)):i===a)}async function Cs({items:e,accept:t}){return (await Promise.allSettled(e.filter(o=>o.kind==="file"&&(!t||I8(o.name,o.type,t))).map(async o=>o.getFile()))).filter(o=>o.status==="fulfilled").map(o=>o.value)}function gy(e){return !!e&&"label"in e&&!!e.label}function hy(e){return !!e&&"children"in e&&!!e.children&&"title"in e}function M8(e){return hy(e)?jsx(hC,{items:e.children,title:e.title,"aria-label":e.title,children:t=>jsx(uo,{textValue:t.label,children:t.label},t.id)},e.id):jsx(uo,{textValue:e.label,children:e.label},e.id)}function Ci(){return useCallback(e=>M8(e),[])}var L8=16,vy=50,NR=30;function Ps({ref:e,isDisabled:t}){let r=useRef(null),o=useRef({isScrollableX:true,isScrollableY:true}),n=useRef({x:0,y:0}),i=useRef(),a=useRef(0);useEffect(()=>{if(t||!e.current)return;let l=e.current,s=X(l),u=jt(l)?l:Ze(l),c=s.getComputedStyle(u);r.current=u,o.current={isScrollableX:/(auto|scroll)/.test(c.overflowX),isScrollableY:/(auto|scroll)/.test(c.overflowY)};},[t,e]),useEffect(()=>{if(t||!e.current||!r.current)return;let l=r.current,s=()=>{if(!l)return;let{isScrollableX:m,isScrollableY:f}=o.current,{x:y,y:g}=n.current;m&&y!==0&&(l.scrollLeft+=y),f&&g!==0&&(l.scrollTop+=g),i.current=requestAnimationFrame(s);},u=(m,f)=>m<vy?-NR*(1-m/vy):m>f-vy?NR*(1-(f-m)/vy):0,c=(m,f,y,g)=>{let b=performance.now();if(b-a.current<L8)return;let x=u(m,y),h=u(f,g);(x!==n.current.x||h!==n.current.y)&&(n.current={x,y:h},a.current=b,(x!==0||h!==0)&&!i.current&&(i.current=requestAnimationFrame(s)));},p=m=>{if(m.preventDefault(),!l)return;let f=m,y=l.getBoundingClientRect(),g=f.clientX-y.left,b=f.clientY-y.top;c(g,b,y.width,y.height);},d=()=>{n.current={x:0,y:0},i.current&&(cancelAnimationFrame(i.current),i.current=void 0);};return l.addEventListener("dragover",p),l.addEventListener("dragend",d),l.addEventListener("drop",d),()=>{l.removeEventListener("dragover",p),l.removeEventListener("dragend",d),l.removeEventListener("drop",d),i.current&&cancelAnimationFrame(i.current);}},[t,e]);}function xy(e,t,r){let{direction:o}=Q(),n=bs({...e,collection:t.collection,selectionManager:t.selectionManager,isDisabled:!e.enableReorder,getItems:e.getItems||(l=>[...l].map(s=>{let u=t.collection.getItem(s);return ge(u,"Expected item to be defined."),{"text/plain":u.textValue}}))});ys(e,n,r);let i=gs({...e,collection:t.collection,selectionManager:t.selectionManager}),{collectionProps:a}=ms({...e,keyboardDelegate:new Ct({collection:t.collection,disabledKeys:t.disabledKeys,ref:r,orientation:e.orientation,layout:e.layout,direction:o}),dropTargetDelegate:new xi(t.collection,r)},i,r);return {collectionProps:a,dragState:n,dropState:i}}function Ty({type:e="listbox",handle:t},r,o){let n=useCallback(a=>e==="listbox"?o.current?.querySelector(`[data-key="${a}"][role="option"]`):o.current?.querySelector(`[data-key="${a}"][role="row"]`),[e,o]),i=useCallback((a,l)=>{let s=n(a);s&&s?.scrollIntoView({block:"nearest",inline:"nearest",...l});},[n]);useImperativeHandle(t,()=>({scrollIntoView:i,setFocusedKey:a=>{r.selectionManager.setFocused(true),r.selectionManager.setFocusedKey(a),i(a),n(a)?.focus();}}),[i,r.selectionManager,n]),useGranularEffect(()=>{let a=r.selectionManager.focusedKey;_R(o.current)&&a&&i(a);},[r.selectionManager.focusedKey],[i,o]);}function N8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function F8(e){var t=N8(e,"string");return typeof t=="symbol"?t:String(t)}function K8(e,t,r){return t=F8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true}):e[t]=r,e}function KR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o);}return r}function VR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KR(Object(r),true).forEach(function(o){K8(e,o,r[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KR(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o));});}return e}function BR(e,t){var r={};for(var o in e)r[o]=t(e[o],o);return r}var V8=(e,t,r)=>{for(var o of Object.keys(e)){var n;if(e[o]!==((n=t[o])!==null&&n!==void 0?n:r[o]))return false}return true},j=e=>{var t=r=>{var o=e.defaultClassName,n=VR(VR({},e.defaultVariants),r);for(var i in n){var a,l=(a=n[i])!==null&&a!==void 0?a:e.defaultVariants[i];if(l!=null){var s=l;typeof s=="boolean"&&(s=s===true?"true":"false");var u=e.variantClassNames[i][s];u&&(o+=" "+u);}}for(var[c,p]of e.compoundVariants)V8(c,n,e.defaultVariants)&&(o+=" "+p);return o};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return BR(e.variantClassNames,r=>BR(r,o=>o.split(" ")[0]))}},t};var Cy=j({defaultClassName:"_6n12k9b _1yep5z6ls _1yep5z6lr _1yep5z6ic _1yep5z6la",variantClassNames:{isDropTarget:{true:"_1yep5z6140"},orientation:{vertical:"_1yep5z617q",horizontal:"_1yep5z617r"}},defaultVariants:{},compoundVariants:[]}),HR="_6n12k98 _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu",$R=j({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),jR=j({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6la _1yep5z6ld _1yep5z6lq _1yep5z6lp _1yep5z6ln _1yep5z6lk",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x _1yep5z614g _1yep5z614h _1yep5z614i"},isHovered:{true:"_1yep5z6125",false:"_1yep5z6124"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup82 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),GR="_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",UR="_6n12k90";function $8(e){return sprinkles.properties.has(e)}var Z=Un.forwardRef(({elementType:e="div",children:t,...r},o)=>{let n=e,{sprinkleProps:i,domProps:a}=useMemo(()=>{let l={},s={};for(let u in r)$8(u)?l[u]=r[u]:s[u]=r[u];return {sprinkleProps:l,domProps:s}},[r]);return jsx(n,{...a,className:L(sprinkles(i),"BaselineUI-Box",a.className),ref:o,children:t})});Z.displayName="Box";var qR=j({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var De=Un.forwardRef(({className:e,style:t,variant:r="primary",orientation:o="horizontal",UNSAFE_omitRole:n,elementType:i="div","data-block-id":a,"data-block-class":l,...s},u)=>{let{separatorProps:c}=Vv({...s,orientation:o,elementType:i});return jsx(i,{...c,className:L(qR({isVertical:o==="vertical",isSecondary:r==="secondary"}),"BaselineUI-Separator",e),"data-orientation":o,"data-block-id":a,"data-block-class":l,style:t,role:n?void 0:c.role,ref:u})});De.displayName="Separator";function Fa(e,t,r){return typeof e=="function"?e(t,r):e}function Py(e,t,r){return typeof e=="function"?e(t,r):e}function ed(e,t){return typeof e=="function"?e(t):e}function Sy(e,t){return typeof e=="function"?e(t):e}var Dy=Un.forwardRef(({item:e,isDisabled:t,isFocusVisible:r,isSelected:o,liProps:n,showSelectedIcon:i,description:a,descriptionProps:l,labelProps:s,isFocused:u,isPressed:c,_state:p},d)=>{ge(e.value&&gy(e.value),"Item cannot be a section");let m=useRef(null),{icon:f,label:y}=e.value,{hoverProps:g,isHovered:b}=ie({isDisabled:t},m),x=he({"data-selected":o,"data-disabled":t,"data-focused":u,"data-hovered":b,"data-pressed":c,"data-focus-visible":r,"data-selection-mode":p.selectionManager.selectionMode});return jsxs("li",{...A(n,g,x),className:L(jR({isHovered:b,isFocused:r,isFirstChild:p.collection.getFirstKey()===e.key,isLastChild:p.collection.getLastKey()===e.key,isDisabled:t}),n.className,"BaselineUI-ListBox-Option"),style:n.style,ref:se(d,m),children:[jsxs(Z,{display:"flex",alignItems:"center",gap:"lg",children:[i?jsx("span",{"aria-hidden":true,style:{height:24,width:24},children:o?jsx(CheckmarkIcon,{size:24}):null}):null,f?jsx(f,{size:24}):null,jsx("span",{...s,children:y})]}),a?jsx("span",{className:$R({isDisabled:t}),...l,children:a}):null]})});Dy.displayName="DefaultListOption";var Ss=({dropState:e,orientation:t="vertical",dropIndicatorStyle:r,dropIndicatorClassName:o,renderDropIndicator:n=({isDropTarget:a,isHidden:l,dropIndicatorProps:s,orientation:u},c)=>l?null:jsx("li",{...s,ref:c,"data-drop-target":a,className:L(Cy({isDropTarget:a,orientation:u}),"BaselineUI-DropIndicator",o),style:r}),...i})=>{let a=Un.useRef(null),{dropIndicatorProps:l,isHidden:s,isDropTarget:u}=fs(i,e,a);return n({dropIndicatorProps:{...l,role:"option"},isHidden:s,isDropTarget:u,orientation:t},a)};var ZR=({item:e,children:t,state:r,dragState:o,elementRef:n,...i})=>{let{dragProps:a}=vi({key:e.key},o,n);return jsxs(Fragment,{children:[jsx(Ss,{target:{type:"item",key:e.key,dropPosition:"before"},...i}),t(a),r.collection.getKeyAfter(e.key)==null&&jsx(Ss,{target:{type:"item",key:e.key,dropPosition:"after"},...i})]})};ZR.displayName="DraggableListOption";var rd=Un.forwardRef(({item:e,renderOption:t=(d,m,f)=>jsx(Dy,{item:d,liProps:m.optionProps,...m,ref:f}),showSelectedIcon:r,state:o,dragState:n,dropState:i,orientation:a,dropIndicatorStyle:l,dropIndicatorClassName:s,optionStyle:u,optionClassName:c},p)=>{let d=Un.useRef(null),m=Al({key:e.key},o,d),{value:f}=e;ge(f&&gy(f),"ListSection should not be passed to ListOption");let y={isFocusVisible:m.isFocusVisible,isSelected:m.isSelected,isFocused:m.isFocused,isDisabled:m.isDisabled,isPressed:m.isPressed},g={style:Py(u,f,y),className:Fa(c,f,y)};return n&&i?jsx(ZR,{orientation:a,state:o,item:e,dropState:i,dragState:n,elementRef:d,dropIndicatorStyle:l,dropIndicatorClassName:s,children:b=>t(e,{...m,showSelectedIcon:r,_state:o,optionProps:{...A(m.optionProps,b),...g}},se(d,p))}):t(e,{...m,showSelectedIcon:r,_state:o,optionProps:{...m.optionProps,...g}},se(d,p))});rd.displayName="Option";var QR=({section:e,state:t,sectionClassName:r,sectionStyle:o,showSectionHeader:n,renderSectionHeader:i,withSectionHeaderPadding:a=false,...l})=>{let s=Un.useRef(null),{itemProps:u,groupProps:c,headingProps:p}=Ol({heading:n?i?.(e,s)||e.rendered:void 0,"aria-label":e["aria-label"]}),d=t.collection.getChildren?.(e.key);ge(d,"children must be defined");let{value:m}=e;ge(m&&hy(m),"section must be a ListSection");let f=typeof o=="function"?o(m):o,y=typeof r=="function"?r(m):r;return jsxs(Fragment,{children:[e.key===t.collection.getFirstKey()?null:jsx(De,{UNSAFE_omitRole:true}),jsxs("li",{...u,style:{...u.style,...f},className:L(UR,y,"BaselineUI-ListBox-Section"),children:[e.rendered&&n?i?.(e,s,p)||jsx(Z,{...p,className:L("BaselineUI-ListBox-SectionHeader",GR),ref:s,paddingX:"lg",typography:"label.md.medium",color:"text.primary",paddingInlineStart:a?"5xl":"lg",paddingInlineEnd:"lg",children:e.rendered}):null,jsx("ul",{...c,children:[...d].map(g=>jsx(rd,{item:g,state:t,...l},g.key))})]})]})};var PC=Un.createContext(null),SC=Un.forwardRef(({className:e,layout:t="stack",orientation:r="vertical",showSelectedIcon:o=true,style:n,renderOption:i,enableReorder:a=false,"data-block-id":l,"data-block-class":s,renderDragPreview:u,onReorder:c,state:p,listBoxHandle:d,...m},f)=>{let y=Un.useRef(null),{direction:g}=Q(),b=Un.useRef(null),{listBoxProps:x}=Ll({...m,shouldSelectOnPressUp:a,keyboardDelegate:new Ct({collection:p.collection,ref:b,layout:t,orientation:r,direction:g,disabledKeys:p.disabledKeys})},p,b);Ty({handle:d},p,b);let{collectionProps:h,dragState:v,dropState:C}=xy({...m,onReorder:c,layout:t,orientation:r,enableReorder:a,preview:y},p,b),{isFocusVisible:T,isFocused:P,focusProps:k}=oe(),S=he({"data-block-id":l,"data-block-class":s,"data-layout":t,"data-empty":p.collection.size===0,"data-focused":P,"data-focus-visible":T,"data-orientation":r});return Ps({ref:b,isDisabled:!a}),jsxs("ul",{...A(x,k,S,h),className:L(HR,"BaselineUI-ListBox",e),style:n,ref:se(f,b),children:[[...p.collection].map(w=>{let E={key:w.key,state:p,dragState:v,dropState:C,renderOption:i,renderDropIndicator:m.renderDropIndicator,renderSectionHeader:m.renderSectionHeader,showSelectedIcon:o,orientation:r,dropIndicatorStyle:m.dropIndicatorStyle,dropIndicatorClassName:m.dropIndicatorClassName,optionStyle:m.optionStyle,optionClassName:m.optionClassName,sectionClassName:m.sectionClassName,sectionStyle:m.sectionStyle,showSectionHeader:m.showSectionHeader,withSectionHeaderPadding:m.withSectionHeaderPadding};return w.type==="section"?createElement(QR,{...E,key:w.key,section:w}):createElement(rd,{...E,key:w.key,item:w})}),u?jsx(hi,{ref:y,children:u}):null]})});SC.displayName="ListBoxCore";var tI=Un.forwardRef((e,t)=>{let r=Ci(),o=Mt({...e,children:r});return jsx(SC,{...e,ref:t,state:o})});tI.displayName="ListBoxStandalone";var on=Un.forwardRef((e,t)=>{let r=useContext(PC);return useEffect(()=>{if(!e.items&&!r)throw new Error("ListBox: You must provide a `state` or `items` prop to render the listbox.")},[e.items,r]),r?jsx(SC,{...e,ref:t,state:r}):jsx(tI,{...e,ref:t})});on.displayName="ListBox";var wy="uf19bsf _1yep5z6la",rI=j({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5 _1yep5z6lp _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6lk z9nup8a",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z611a"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"uf19bsd _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8",popover:"uf19bse _1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6nf _1yep5z6ng _1yep5z6nh _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z6vr _1yep5z6vs _1yep5z6vt"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:true,isFocusVisible:false},"_1yep5z61o9"],[{variant:"primary",isHovered:true,isFocusVisible:false},"_1yep5z61o9"],[{variant:"secondary",isHovered:true,isFocusVisible:false},"_1yep5z61nc"],[{variant:"tertiary",isHovered:true,isFocusVisible:false},"_1yep5z61nb _1yep5z61o9"],[{variant:"ghost",isHovered:true,isFocusVisible:false},"_1yep5z61nh"],[{variant:"popover",isHovered:true,isFocusVisible:false},"_1yep5z61q6 _1yep5z61tx _1yep5z61u1 _1yep5z61ty"],[{variant:"ghost",isDisabled:false},"_1yep5z61ng"],[{variant:"popover",size:"lg"},"_1yep5z61io _1yep5z61ip _1yep5z61iq _1yep5z61jc _1yep5z61jd _1yep5z61je _1yep5z61k0 _1yep5z61k1 _1yep5z61k2 _1yep5z61ko _1yep5z61kp _1yep5z61kq"]]});var od=Un.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Io=({children:e,...t})=>{let r=Un.useRef(null),o=vr(t),n=An(t,o),i=useMemo(()=>({state:o,overlayTriggerAria:n,triggerRef:r}),[o,n]);return jsx(od.Provider,{value:i,children:e})};var nI=j({defaultClassName:"_1gzftth2",variantClassNames:{placement:{bottom:"_1gzftth3",top:"_1gzftth4",right:"_1gzftth5",left:"_1gzftth6"}},defaultVariants:{},compoundVariants:[]}),iI=j({defaultClassName:"_1gzftth7",variantClassNames:{placement:{bottom:"_1gzftth8",top:"_1gzftth9",right:"_1gzfttha",left:"_1gzftthb"}},defaultVariants:{},compoundVariants:[]}),aI="_1gzftth1 _1yep5z6is _1yep5z6it _1yep5z6iu",lI="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6d7",sI="_1gzftthd",uI="_1gzftthc",cI="var(--_1gzftth0)";var Ry=Un.createContext({isSelected:false,ref:void 0}),_o=({children:e,anchorRect:t})=>{let{state:r,overlayTriggerAria:o,triggerRef:n}=useContext(od);ge(r,"PopoverTrigger must be used within a Popover");let{triggerProps:i}=o;ge(!t&&e||t&&!e,"Either one of anchorRect or children has to be provided."),ge(!t||SR(t),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height.");let a=useMemo(()=>({...i,isSelected:r.isOpen,ref:n}),[i,r.isOpen,n]);return t?jsx("div",{className:L(sI,"BaselineUI-PopoverTrigger-Hidden"),style:t,ref:n,tabIndex:-1},JSON.stringify(t)):typeof e=="function"?e({isOpen:r.isOpen,triggerProps:i,triggerRef:n}):Un.isValidElement(e)?jsx(Ry.Provider,{value:a,children:e}):null};var cr=({label:e,tooltip:t,...r})=>({tooltipProps:useMemo(()=>{let n={size:"sm",variant:"inverse",text:e,includeArrow:false,placement:"bottom start",offset:4,...r};if(typeof t=="object")return {...n,...t};if(t)return n},[e,r,t])});function Iy({tooltip:e,"aria-label":t,"aria-labelledby":r},o){let[n,i]=useState(t||"");useEffect(()=>{if(r){let s=G(o.current).querySelector(`#${r}`);s&&i(s.textContent||"");}else t&&i(t);},[r,o,t]);let{tooltipProps:a}=cr({label:n,tooltip:e});return {tooltipProps:a}}var _y=e=>{let t=Un.useRef(null),{ref:r,...o}=useContext(Ry)||{},{buttonProps:n,isPressed:i}=dt({...e,...o},t),{isFocusVisible:a,isFocused:l,focusProps:s}=oe(),{hoverProps:u,isHovered:c}=ie({isDisabled:e.isDisabled});return {buttonProps:A(n,s,u),isPressed:i,ref:se(t,r||null),isFocusVisible:a,isFocused:l,isHovered:c,uiStateOptions:{isHovered:c,isFocused:l,isPressed:i,isDisabled:e.isDisabled,isFocusVisible:a}}},My=(e,t)=>{let r=Un.useRef(null),{ref:o,...n}=useContext(Ry)||{},{buttonProps:i,isPressed:a}=YT({...e,...n},t,r);(i.role==="radio"||i.role==="checkbox")&&(i["aria-pressed"]=void 0);let{isFocusVisible:l,isFocused:s,focusProps:u}=oe(),{hoverProps:c,isHovered:p}=ie({isDisabled:e.isDisabled});return {buttonProps:A(i,u,c),isPressed:a,ref:se(r,o||null),isFocusVisible:l,isFocused:s,isHovered:p,uiStateOptions:{isHovered:p,isFocused:s,isPressed:a,isDisabled:e.isDisabled,isFocusVisible:l,isSelected:t.isSelected}}};var Ly=j({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6dy _1yep5z6la z9nup88",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5",toolbar:"oom8bs6",success:"oom8bs7",warning:"oom8bs8",error:"oom8bs9","success-secondary":"oom8bsa","warning-secondary":"oom8bsb","error-secondary":"oom8bsc","success-tertiary":"oom8bsd","warning-tertiary":"oom8bse","error-tertiary":"oom8bsf"},isDisabled:{true:"oom8bsg"},isFocusVisible:{true:"oom8bsh"},isHovered:{true:"oom8bsi"},size:{sm:"oom8bsj",md:"oom8bsk",lg:"oom8bsl"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:true},"oom8bsm"],[{variant:"secondary",isHovered:true},"oom8bsn"],[{variant:"tertiary",isHovered:true},"oom8bso"],[{variant:"ghost",isHovered:true},"oom8bsp"],[{variant:"success",isHovered:true},"oom8bsq"],[{variant:"warning",isHovered:true},"oom8bsr"],[{variant:"error",isHovered:true},"oom8bss"],[{variant:"primary",isFocusVisible:true},"oom8bst"],[{variant:"tertiary",isFocusVisible:true},"oom8bsu"],[{variant:"success",isFocusVisible:true},"oom8bsv"],[{variant:"success-secondary",isHovered:true},"oom8bsw"],[{variant:"success-secondary",isFocusVisible:true},"oom8bsx"],[{variant:"success-tertiary",isHovered:true},"oom8bsy"],[{variant:"success-tertiary",isFocusVisible:true},"oom8bsz"],[{variant:"warning",isFocusVisible:true},"oom8bs10"],[{variant:"warning-secondary",isHovered:true},"oom8bs11"],[{variant:"warning-secondary",isFocusVisible:true},"oom8bs12"],[{variant:"warning-tertiary",isHovered:true},"oom8bs13"],[{variant:"warning-tertiary",isFocusVisible:true},"oom8bs14"],[{variant:"error",isFocusVisible:true},"oom8bs15"],[{variant:"error-secondary",isHovered:true},"oom8bs16"],[{variant:"error-secondary",isFocusVisible:true},"oom8bs17"],[{variant:"error-tertiary",isHovered:true},"oom8bs18"],[{variant:"error-tertiary",isFocusVisible:true},"oom8bs19"]]}),DC=j({defaultClassName:"oom8bs1a _1yep5z6la",variantClassNames:{isDisabled:{true:"oom8bs1b"},isFocusVisible:{true:"oom8bs1c"},isHovered:{true:"_1yep5z6115"},variant:{primary:"_1yep5z611c",secondary:"_1yep5z6118",tertiary:"_1yep5z611d",ghost:"_1yep5z611d",popover:"_1yep5z6118",toolbar:"_1yep5z6118",success:"_1yep5z611b",warning:"_1yep5z611b",error:"_1yep5z611b","success-secondary":"_1yep5z610m","warning-secondary":"_1yep5z610q","error-secondary":"_1yep5z610i","success-tertiary":"_1yep5z610l","warning-tertiary":"_1yep5z610p","error-tertiary":"_1yep5z610h"}},defaultVariants:{},compoundVariants:[[{variant:"tertiary",isHovered:true},"_1yep5z61nf"],[{variant:"ghost",isHovered:true},"_1yep5z61nh"],[{variant:"tertiary",isFocusVisible:true},"_1yep5z61nf"],[{variant:"success-tertiary",isHovered:true},"_1yep5z61ne"],[{variant:"success-tertiary",isFocusVisible:true},"_1yep5z61ne"],[{variant:"warning-tertiary",isHovered:true},"_1yep5z61ne"],[{variant:"warning-tertiary",isFocusVisible:true},"_1yep5z61ne"],[{variant:"error-tertiary",isHovered:true},"_1yep5z61ne"],[{variant:"error-tertiary",isFocusVisible:true},"_1yep5z61ne"],[{variant:"secondary",isDisabled:true},"_1yep5z61nd"],[{variant:"tertiary",isDisabled:true},"_1yep5z61nd"],[{variant:"ghost",isDisabled:true},"_1yep5z61nd"],[{variant:"popover",isDisabled:true},"_1yep5z61nd"],[{variant:"toolbar",isDisabled:true},"_1yep5z61nd"],[{variant:"success-secondary",isDisabled:true},"_1yep5z61nd"],[{variant:"success-tertiary",isDisabled:true},"_1yep5z61nd"],[{variant:"warning-secondary",isDisabled:true},"_1yep5z61nd"],[{variant:"warning-tertiary",isDisabled:true},"_1yep5z61nd"],[{variant:"error-secondary",isDisabled:true},"_1yep5z61nd"],[{variant:"error-tertiary",isDisabled:true},"_1yep5z61nd"]]});var f3={sm:16,md:20,lg:24},Me=Un.forwardRef((e,t)=>{let[r,o]=Re(e,t,ro),{label:n,style:i,className:a,iconStart:l,iconEnd:s,variant:u="primary",elementType:c="button",isDisabled:p,size:d="sm","data-block-id":m,"data-block-class":f,slot:y,...g}=r,{buttonProps:b,isPressed:x,ref:h,isFocusVisible:v,isFocused:C,isHovered:T,uiStateOptions:P}=_y({...g,elementType:c,isDisabled:p}),k=f3[d],S=he({"data-block-id":m,"data-block-class":f,"data-disabled":p,"data-focused":C,"data-focus-visible":v,"data-hovered":T,"data-pressed":x});return jsxs(c,{...A(b,S),className:L(Ly({isDisabled:!!p,isFocusVisible:v,isHovered:T,variant:u,size:d}),"BaselineUI-ActionButton",typeof a=="function"?a(P):a),style:typeof i=="function"?i(P):i,ref:se(o,h),children:[!!l&&jsx(l,{size:k,className:DC({variant:u,isDisabled:p,isFocusVisible:v,isHovered:T})}),n,!!s&&jsx(s,{size:k,className:DC({variant:u,isDisabled:p,isFocusVisible:v,isHovered:T})}),u==="popover"&&jsx(CaretDownIcon,{size:8,className:wy})]})});Me.displayName="ActionButton";var yI=Un.forwardRef(({className:e,style:t,node:r,"data-block-id":o,"data-block-class":n,...i},a)=>{let l=Un.useRef(null);Un.useEffect(()=>{let c=l.current;return c?.append(r),()=>{c?.contains(r)&&r.remove();}},[r]);let{pressProps:s,isPressed:u}=Ae(i);return jsx("div",{...s,className:e,style:t,"data-block-id":o,"data-block-class":n,"data-pressed":u,"data-testid":"dom-node-renderer",ref:se(a,l)})});yI.displayName="DomNodeRenderer";var bI=j({defaultClassName:"z9nup83",variantClassNames:{size:{xs:"z9nup84",sm:"z9nup85"}},defaultVariants:{},compoundVariants:[]}),gI="z9nup80",ks="z9nup82",hI="z9nup86";function vI({ref:e,onIntersect:t,isDisabled:r,threshold:o,rootMargin:n,root:i}){let a=Un.useRef(t);te(()=>{a.current=t;}),useEffect(()=>{let l=e.current;if(r||!l)return;let s=new IntersectionObserver(([u])=>{a.current(u);},{root:i?.current,rootMargin:n,threshold:o});return s.observe(l),()=>{s.disconnect();}},[e,r,i,n,o]);}function Ay({ref:e,onResize:t,isDisabled:r}){let[o,n]=Un.useState(),i=Un.useRef(t);return te(()=>{i.current=t;}),Un.useEffect(()=>{let a=e.current;if(r||!a)return;let l=new ResizeObserver(([s])=>{n(s.contentRect),i.current?.(s);});return l.observe(a),()=>{l.disconnect();}},[e,r]),{size:o}}function Oy({src:e,alt:t}){let[r,o]=useState(false),[n,i]=useState(false),[a,l]=useState(false);return useEffect(()=>{if(!e){o(false),i(false),l(false);return}o(false),i(false),l(true);let s=new Image,u=()=>{o(true),l(false);},c=()=>{i(true),l(false);};return s.addEventListener("load",u),s.addEventListener("error",c),s.src=e,s.complete&&s.naturalWidth>0&&u(),()=>{s.removeEventListener("load",u),s.removeEventListener("error",c);}},[e]),{isLoaded:r,hasError:n,isLoading:a,imgProps:{src:a?void 0:e,alt:t}}}function Ny(){let e=useRef(true);return useEffect(()=>{e.current=false;},[]),e.current}var xI="SET_STATE",Fy="UNDO",Ky="REDO",D3=(e,t)=>{let{past:r,present:o,future:n}=e;switch(t.type){case xI:return {past:[...r,o],present:t.data,future:[]};case Fy:return {past:r.slice(0,r?.length-1),present:r[r?.length-1],future:[o,...n]};case Ky:return {past:[...r,o],present:n[0],future:n.slice(1)};default:throw new Error("Invalid action type")}},TI=(e={},{isDisabled:t,onAction:r})=>{let o=Ny(),[n,i]=useReducer(D3,{past:[],present:e,future:[]}),{past:a,present:l,future:s}=n,u=y=>{i({type:xI,data:y});},c=useRef(),p=()=>{a.length&&(c.current=Fy,i({type:Fy}));},d=()=>{s.length&&(c.current=Ky,i({type:Ky}));},m=!!a?.length,f=!!s?.length;return useGranularEffect(()=>{(c.current===Fy||c.current===Ky)&&(r?.(l,c.current),c.current=void 0);},[l],[r,o]),{state:l,push:t?()=>{}:u,undo:t?()=>{}:p,redo:t?()=>{}:d,pastStates:a,futureStates:s,canUndo:m,canRedo:f}};var nd=class{messages;defaultLocale;constructor(t,r="en-US"){this.messages=Object.fromEntries(Object.entries(t).filter(([,o])=>o)),this.defaultLocale=r;}getStringForLocale(t,r){let o=this.messages[r];o||(o=k3(r,this.messages,this.defaultLocale),this.messages[r]=o);let n=o[t];if(!n)throw new Error(`Could not find intl message ${t} in ${r} locale`);return n}};function k3(e,t,r="en-US"){if(t[e])return t[e];let o=E3(e);if(t[o])return t[o];for(let n in t)if(n.startsWith(o+"-"))return t[n];return t[r]}function E3(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var RC=function(e,t){return RC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o;}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n]);},RC(e,t)};function id(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");RC(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var Be=function(){return Be=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);}return t},Be.apply(this,arguments)};function CI(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 n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}function Vy(e,t,r){if(arguments.length===2)for(var o=0,n=t.length,i;o<n;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))}function By(e,t){var r=t&&t.cache?t.cache:L3,o=t&&t.serializer?t.serializer:_3,n=t&&t.strategy?t.strategy:w3;return n(e,{cache:r,serializer:o})}function z3(e){return e==null||typeof e=="number"||typeof e=="boolean"}function PI(e,t,r,o){var n=z3(o)?o:r(o),i=t.get(n);return typeof i>"u"&&(i=e.call(this,o),t.set(n,i)),i}function SI(e,t,r){var o=Array.prototype.slice.call(arguments,3),n=r(o),i=t.get(n);return typeof i>"u"&&(i=e.apply(this,o),t.set(n,i)),i}function IC(e,t,r,o,n){return r.bind(t,e,o,n)}function w3(e,t){var r=e.length===1?PI:SI;return IC(e,this,r,t.cache.create(),t.serializer)}function R3(e,t){return IC(e,this,SI,t.cache.create(),t.serializer)}var _3=function(){return JSON.stringify(arguments)},M3=(function(){function e(){this.cache=Object.create(null);}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r;},e})(),L3={create:function(){return new M3}},Hy={variadic:R3};var Ke;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG";})(Ke||(Ke={}));var it;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag";})(it||(it={}));var Ka;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime";})(Ka||(Ka={}));function _C(e){return e.type===it.literal}function MC(e){return e.type===it.argument}function ad(e){return e.type===it.number}function ld(e){return e.type===it.date}function sd(e){return e.type===it.time}function ud(e){return e.type===it.select}function cd(e){return e.type===it.plural}function DI(e){return e.type===it.pound}function dd(e){return e.type===it.tag}function $y(e){return !!(e&&typeof e=="object"&&e.type===Ka.number)}function pd(e){return !!(e&&typeof e=="object"&&e.type===Ka.dateTime)}var LC=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;var A3=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function kI(e){var t={};return e.replace(A3,function(r){var o=r.length;switch(r[0]){case "G":t.era=o===4?"long":o===5?"narrow":"short";break;case "y":t.year=o===2?"2-digit":"numeric";break;case "Y":case "u":case "U":case "r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case "q":case "Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case "M":case "L":t.month=["numeric","2-digit","short","long","narrow"][o-1];break;case "w":case "W":throw new RangeError("`w/W` (week) patterns are not supported");case "d":t.day=["numeric","2-digit"][o-1];break;case "D":case "F":case "g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case "E":t.weekday=o===4?"long":o===5?"narrow":"short";break;case "e":if(o<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][o-4];break;case "c":if(o<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][o-4];break;case "a":t.hour12=true;break;case "b":case "B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case "h":t.hourCycle="h12",t.hour=["numeric","2-digit"][o-1];break;case "H":t.hourCycle="h23",t.hour=["numeric","2-digit"][o-1];break;case "K":t.hourCycle="h11",t.hour=["numeric","2-digit"][o-1];break;case "k":t.hourCycle="h24",t.hour=["numeric","2-digit"][o-1];break;case "j":case "J":case "C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case "m":t.minute=["numeric","2-digit"][o-1];break;case "s":t.second=["numeric","2-digit"][o-1];break;case "S":case "A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case "z":t.timeZoneName=o<4?"short":"long";break;case "Z":case "O":case "v":case "V":case "X":case "x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return ""}),t}var EI=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function II(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(EI).filter(function(d){return d.length>0}),r=[],o=0,n=t;o<n.length;o++){var i=n[o],a=i.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var l=a[0],s=a.slice(1),u=0,c=s;u<c.length;u++){var p=c[u];if(p.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:s});}return r}function O3(e){return e.replace(/^(.*?)-/,"")}var zI=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_I=/^(@+)?(\+|#+)?[rs]?$/g,N3=/(\*)(0+)|(#+)(0+)|(0+)/g,MI=/^(0+)$/;function wI(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(_I,function(r,o,n){return typeof n!="string"?(t.minimumSignificantDigits=o.length,t.maximumSignificantDigits=o.length):n==="+"?t.minimumSignificantDigits=o.length:o[0]==="#"?t.maximumSignificantDigits=o.length:(t.minimumSignificantDigits=o.length,t.maximumSignificantDigits=o.length+(typeof n=="string"?n.length:0)),""}),t}function LI(e){switch(e){case "sign-auto":return {signDisplay:"auto"};case "sign-accounting":case "()":return {currencySign:"accounting"};case "sign-always":case "+!":return {signDisplay:"always"};case "sign-accounting-always":case "()!":return {signDisplay:"always",currencySign:"accounting"};case "sign-except-zero":case "+?":return {signDisplay:"exceptZero"};case "sign-accounting-except-zero":case "()?":return {signDisplay:"exceptZero",currencySign:"accounting"};case "sign-never":case "+_":return {signDisplay:"never"}}}function F3(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!MI.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length;}return t}function RI(e){var t={},r=LI(e);return r||t}function AI(e){for(var t={},r=0,o=e;r<o.length;r++){var n=o[r];switch(n.stem){case "percent":case "%":t.style="percent";continue;case "%x100":t.style="percent",t.scale=100;continue;case "currency":t.style="currency",t.currency=n.options[0];continue;case "group-off":case ",_":t.useGrouping=false;continue;case "precision-integer":case ".":t.maximumFractionDigits=0;continue;case "measure-unit":case "unit":t.style="unit",t.unit=O3(n.options[0]);continue;case "compact-short":case "K":t.notation="compact",t.compactDisplay="short";continue;case "compact-long":case "KK":t.notation="compact",t.compactDisplay="long";continue;case "scientific":t=Be(Be(Be({},t),{notation:"scientific"}),n.options.reduce(function(s,u){return Be(Be({},s),RI(u))},{}));continue;case "engineering":t=Be(Be(Be({},t),{notation:"engineering"}),n.options.reduce(function(s,u){return Be(Be({},s),RI(u))},{}));continue;case "notation-simple":t.notation="standard";continue;case "unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case "unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case "unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case "unit-width-iso-code":t.currencyDisplay="symbol";continue;case "scale":t.scale=parseFloat(n.options[0]);continue;case "rounding-mode-floor":t.roundingMode="floor";continue;case "rounding-mode-ceiling":t.roundingMode="ceil";continue;case "rounding-mode-down":t.roundingMode="trunc";continue;case "rounding-mode-up":t.roundingMode="expand";continue;case "rounding-mode-half-even":t.roundingMode="halfEven";continue;case "rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case "rounding-mode-half-up":t.roundingMode="halfExpand";continue;case "integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(N3,function(s,u,c,p,d,m){if(u)t.minimumIntegerDigits=c.length;else {if(p&&d)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return ""});continue}if(MI.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(zI.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(zI,function(s,u,c,p,d,m){return c==="*"?t.minimumFractionDigits=u.length:p&&p[0]==="#"?t.maximumFractionDigits=p.length:d&&m?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=n.options[0];i==="w"?t=Be(Be({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=Be(Be({},t),wI(i)));continue}if(_I.test(n.stem)){t=Be(Be({},t),wI(n.stem));continue}var a=LI(n.stem);a&&(t=Be(Be({},t),a));var l=F3(n.stem);l&&(t=Be(Be({},t),l));}return t}var md={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function OI(e,t){for(var r="",o=0;o<e.length;o++){var n=e.charAt(o);if(n==="j"){for(var i=0;o+1<e.length&&e.charAt(o+1)===n;)i++,o++;var a=1+(i&1),l=i<2?1:3+(i>>1),s="a",u=K3(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)r+=s;for(;a-- >0;)r=u+r;}else n==="J"?r+="H":r+=n;}return r}function K3(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case "h24":return "k";case "h23":return "H";case "h12":return "h";case "h11":return "K";default:throw new Error("Invalid hourCycle")}var r=e.language,o;r!=="root"&&(o=e.maximize().region);var n=md[o||""]||md[r||""]||md["".concat(r,"-001")]||md["001"];return n[0]}var AC,V3=new RegExp("^".concat(LC.source,"*")),B3=new RegExp("".concat(LC.source,"*$"));function $e(e,t){return {start:e,end:t}}var H3=!!String.prototype.startsWith&&"_a".startsWith("a",1),$3=!!String.fromCodePoint,j3=!!Object.fromEntries,G3=!!String.prototype.codePointAt,U3=!!String.prototype.trimStart,W3=!!String.prototype.trimEnd,q3=!!Number.isSafeInteger,X3=q3?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},NC=true;try{NI=BI("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),NC=((AC=NI.exec("a"))===null||AC===void 0?void 0:AC[0])==="a";}catch{NC=false;}var NI,FI=H3?function(t,r,o){return t.startsWith(r,o)}:function(t,r,o){return t.slice(o,o+r.length)===r},FC=$3?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var o="",n=t.length,i=0,a;n>i;){if(a=t[i++],a>1114111)throw RangeError(a+" is not a valid code point");o+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320);}return o},KI=j3?Object.fromEntries:function(t){for(var r={},o=0,n=t;o<n.length;o++){var i=n[o],a=i[0],l=i[1];r[a]=l;}return r},VI=G3?function(t,r){return t.codePointAt(r)}:function(t,r){var o=t.length;if(!(r<0||r>=o)){var n=t.charCodeAt(r),i;return n<55296||n>56319||r+1===o||(i=t.charCodeAt(r+1))<56320||i>57343?n:(n-55296<<10)+(i-56320)+65536}},Y3=U3?function(t){return t.trimStart()}:function(t){return t.replace(V3,"")},Z3=W3?function(t){return t.trimEnd()}:function(t){return t.replace(B3,"")};function BI(e,t){return new RegExp(e,t)}var KC;NC?(OC=BI("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),KC=function(t,r){var o;OC.lastIndex=r;var n=OC.exec(t);return (o=n[1])!==null&&o!==void 0?o:""}):KC=function(t,r){for(var o=[];;){var n=VI(t,r);if(n===void 0||$I(n)||e9(n))break;o.push(n),r+=n>=65536?2:1;}return FC.apply(void 0,o)};var OC,HI=(function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons;}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",false)},e.prototype.parseMessage=function(t,r,o){for(var n=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,o);if(a.err)return a;n.push(a.val);}else {if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),n.push({type:it.pound,location:$e(l,this.clonePosition())});}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(o)break;return this.error(Ke.UNMATCHED_CLOSING_TAG,$e(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&VC(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;n.push(a.val);}else {var a=this.parseLiteral(t,r);if(a.err)return a;n.push(a.val);}}}return {val:n,err:null}},e.prototype.parseTag=function(t,r){var o=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return {val:{type:it.literal,value:"<".concat(n,"/>"),location:$e(o,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,true);if(i.err)return i;var a=i.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!VC(this.char()))return this.error(Ke.INVALID_TAG,$e(l,this.clonePosition()));var s=this.clonePosition(),u=this.parseTagName();return n!==u?this.error(Ke.UNMATCHED_CLOSING_TAG,$e(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:it.tag,value:n,children:a,location:$e(o,this.clonePosition())},err:null}:this.error(Ke.INVALID_TAG,$e(l,this.clonePosition())))}else return this.error(Ke.UNCLOSED_TAG,$e(o,this.clonePosition()))}else return this.error(Ke.INVALID_TAG,$e(o,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Q3(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var o=this.clonePosition(),n="";;){var i=this.tryParseQuote(r);if(i){n+=i;continue}var a=this.tryParseUnquoted(t,r);if(a){n+=a;continue}var l=this.tryParseLeftAngleBracket();if(l){n+=l;continue}break}var s=$e(o,this.clonePosition());return {val:{type:it.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return !this.isEOF()&&this.char()===60&&(this.ignoreTag||!J3(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var o=this.char();if(o===39)if(this.peek()===39)r.push(39),this.bump();else {this.bump();break}else r.push(o);this.bump();}return FC.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var o=this.char();return o===60||o===123||o===35&&(r==="plural"||r==="selectordinal")||o===125&&t>0?null:(this.bump(),FC(o))},e.prototype.parseArgument=function(t,r){var o=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ke.EXPECT_ARGUMENT_CLOSING_BRACE,$e(o,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Ke.EMPTY_ARGUMENT,$e(o,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Ke.MALFORMED_ARGUMENT,$e(o,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ke.EXPECT_ARGUMENT_CLOSING_BRACE,$e(o,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:it.argument,value:n,location:$e(o,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ke.EXPECT_ARGUMENT_CLOSING_BRACE,$e(o,this.clonePosition())):this.parseArgumentOptions(t,r,n,o);default:return this.error(Ke.MALFORMED_ARGUMENT,$e(o,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),o=KC(this.message,r),n=r+o.length;this.bumpTo(n);var i=this.clonePosition(),a=$e(t,i);return {value:o,location:a}},e.prototype.parseArgumentOptions=function(t,r,o,n){var i,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(l){case "":return this.error(Ke.EXPECT_ARGUMENT_TYPE,$e(a,s));case "number":case "date":case "time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var d=Z3(p.val);if(d.length===0)return this.error(Ke.EXPECT_ARGUMENT_STYLE,$e(this.clonePosition(),this.clonePosition()));var m=$e(c,this.clonePosition());u={style:d,styleLocation:m};}var f=this.tryParseArgumentClose(n);if(f.err)return f;var y=$e(n,this.clonePosition());if(u&&FI(u?.style,"::",0)){var g=Y3(u.style.slice(2));if(l==="number"){var p=this.parseNumberSkeletonFromString(g,u.styleLocation);return p.err?p:{val:{type:it.number,value:o,location:y,style:p.val},err:null}}else {if(g.length===0)return this.error(Ke.EXPECT_DATE_TIME_SKELETON,y);var b=g;this.locale&&(b=OI(g,this.locale));var d={type:Ka.dateTime,pattern:b,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?kI(b):{}},x=l==="date"?it.date:it.time;return {val:{type:x,value:o,location:y,style:d},err:null}}}return {val:{type:l==="number"?it.number:l==="date"?it.date:it.time,value:o,location:y,style:(i=u?.style)!==null&&i!==void 0?i:null},err:null}}case "plural":case "selectordinal":case "select":{var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Ke.EXPECT_SELECT_ARGUMENT_OPTIONS,$e(h,Be({},h)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),C=0;if(l!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(Ke.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$e(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(Ke.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ke.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),v=this.parseIdentifierIfPossible(),C=p.val;}var T=this.tryParsePluralOrSelectOptions(t,l,r,v);if(T.err)return T;var f=this.tryParseArgumentClose(n);if(f.err)return f;var P=$e(n,this.clonePosition());return l==="select"?{val:{type:it.select,value:o,options:KI(T.val),location:P},err:null}:{val:{type:it.plural,value:o,options:KI(T.val),offset:C,pluralType:l==="plural"?"cardinal":"ordinal",location:P},err:null}}default:return this.error(Ke.INVALID_ARGUMENT_TYPE,$e(a,s))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Ke.EXPECT_ARGUMENT_CLOSING_BRACE,$e(t,this.clonePosition())):(this.bump(),{val:true,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var o=this.char();switch(o){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Ke.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,$e(n,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return {val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return {val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var o=[];try{o=II(t);}catch{return this.error(Ke.INVALID_NUMBER_SKELETON,r)}return {val:{type:Ka.number,tokens:o,location:r,parsedOptions:this.shouldParseSkeletons?AI(o):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,o,n){for(var i,a=false,l=[],s=new Set,u=n.value,c=n.location;;){if(u.length===0){var p=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(Ke.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ke.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=$e(p,this.clonePosition()),u=this.message.slice(p.offset,this.offset());}else break}if(s.has(u))return this.error(r==="select"?Ke.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ke.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(a=true),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Ke.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ke.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,$e(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(t+1,r,o);if(f.err)return f;var y=this.tryParseArgumentClose(m);if(y.err)return y;l.push([u,{value:f.val,location:$e(m,this.clonePosition())}]),s.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,c=i.location;}return l.length===0?this.error(r==="select"?Ke.EXPECT_SELECT_ARGUMENT_SELECTOR:Ke.EXPECT_PLURAL_ARGUMENT_SELECTOR,$e(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Ke.MISSING_OTHER_CLAUSE,$e(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var o=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(o=-1);for(var i=false,a=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)i=true,a=a*10+(l-48),this.bump();else break}var s=$e(n,this.clonePosition());return i?(a*=o,X3(a)?{val:a,err:null}:this.error(r,s)):this.error(t,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return {offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=VI(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return {val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2);}},e.prototype.bumpIf=function(t){if(FI(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return true}return false},e.prototype.bumpUntil=function(t){var r=this.offset(),o=this.message.indexOf(t,r);return o>=0?(this.bumpTo(o),true):(this.bumpTo(this.message.length),false)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&$I(this.char());)this.bump();},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),o=this.message.charCodeAt(r+(t>=65536?2:1));return o??null},e})();function VC(e){return e>=97&&e<=122||e>=65&&e<=90}function J3(e){return VC(e)||e===47}function Q3(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function $I(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function e9(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function BC(e){e.forEach(function(t){if(delete t.location,ud(t)||cd(t))for(var r in t.options)delete t.options[r].location,BC(t.options[r].value);else ad(t)&&$y(t.style)||(ld(t)||sd(t))&&pd(t.style)?delete t.style.location:dd(t)&&BC(t.children);});}function jI(e,t){t===void 0&&(t={}),t=Be({shouldParseSkeletons:true,requiresOtherClause:true},t);var r=new HI(e,t).parse();if(r.err){var o=SyntaxError(Ke[r.err.kind]);throw o.location=r.err.location,o.originalMessage=r.err.message,o}return t?.captureLocation||BC(r.val),r.val}var Va;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";})(Va||(Va={}));var fd=(function(e){id(t,e);function t(r,o,n){var i=e.call(this,r)||this;return i.code=o,i.originalMessage=n,i}return t.prototype.toString=function(){return "[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error);var HC=(function(e){id(t,e);function t(r,o,n,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(o,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Va.INVALID_VALUE,i)||this}return t})(fd);var GI=(function(e){id(t,e);function t(r,o,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(o),Va.INVALID_VALUE,n)||this}return t})(fd);var UI=(function(e){id(t,e);function t(r,o){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(o,'"'),Va.MISSING_VALUE,o)||this}return t})(fd);var dr;(function(e){e[e.literal=0]="literal",e[e.object=1]="object";})(dr||(dr={}));function t9(e){return e.length<2?e:e.reduce(function(t,r){var o=t[t.length-1];return !o||o.type!==dr.literal||r.type!==dr.literal?t.push(r):o.value+=r.value,t},[])}function r9(e){return typeof e=="function"}function yd(e,t,r,o,n,i,a){if(e.length===1&&_C(e[0]))return [{type:dr.literal,value:e[0].value}];for(var l=[],s=0,u=e;s<u.length;s++){var c=u[s];if(_C(c)){l.push({type:dr.literal,value:c.value});continue}if(DI(c)){typeof i=="number"&&l.push({type:dr.literal,value:r.getNumberFormat(t).format(i)});continue}var p=c.value;if(!(n&&p in n))throw new UI(p,a);var d=n[p];if(MC(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),l.push({type:typeof d=="string"?dr.literal:dr.object,value:d});continue}if(ld(c)){var m=typeof c.style=="string"?o.date[c.style]:pd(c.style)?c.style.parsedOptions:void 0;l.push({type:dr.literal,value:r.getDateTimeFormat(t,m).format(d)});continue}if(sd(c)){var m=typeof c.style=="string"?o.time[c.style]:pd(c.style)?c.style.parsedOptions:o.time.medium;l.push({type:dr.literal,value:r.getDateTimeFormat(t,m).format(d)});continue}if(ad(c)){var m=typeof c.style=="string"?o.number[c.style]:$y(c.style)?c.style.parsedOptions:void 0;m&&m.scale&&(d=d*(m.scale||1)),l.push({type:dr.literal,value:r.getNumberFormat(t,m).format(d)});continue}if(dd(c)){var f=c.children,y=c.value,g=n[y];if(!r9(g))throw new GI(y,"function",a);var b=yd(f,t,r,o,n,i),x=g(b.map(function(C){return C.value}));Array.isArray(x)||(x=[x]),l.push.apply(l,x.map(function(C){return {type:typeof C=="string"?dr.literal:dr.object,value:C}}));}if(ud(c)){var h=c.options[d]||c.options.other;if(!h)throw new HC(c.value,d,Object.keys(c.options),a);l.push.apply(l,yd(h.value,t,r,o,n));continue}if(cd(c)){var h=c.options["=".concat(d)];if(!h){if(!Intl.PluralRules)throw new fd(`Intl.PluralRules is not available in this environment.
|
|
23
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
24
|
-
`,Va.MISSING_INTL_API,a);var v=r.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));h=c.options[v]||c.options.other;}if(!h)throw new HC(c.value,d,Object.keys(c.options),a);l.push.apply(l,yd(h.value,t,r,o,n,d-(c.offset||0)));continue}}return t9(l)}function o9(e,t){return t?Be(Be(Be({},e||{}),t||{}),Object.keys(e).reduce(function(r,o){return r[o]=Be(Be({},e[o]),t[o]||{}),r},{})):e}function n9(e,t){return t?Object.keys(e).reduce(function(r,o){return r[o]=o9(e[o],t[o]),r},Be({},e)):e}function $C(e){return {create:function(){return {get:function(t){return e[t]},set:function(t,r){e[t]=r;}}}}}function i9(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:By(function(){for(var t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return new((t=Intl.NumberFormat).bind.apply(t,Vy([void 0],r,false)))},{cache:$C(e.number),strategy:Hy.variadic}),getDateTimeFormat:By(function(){for(var t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return new((t=Intl.DateTimeFormat).bind.apply(t,Vy([void 0],r,false)))},{cache:$C(e.dateTime),strategy:Hy.variadic}),getPluralRules:By(function(){for(var t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return new((t=Intl.PluralRules).bind.apply(t,Vy([void 0],r,false)))},{cache:$C(e.pluralRules),strategy:Hy.variadic})}}var WI=(function(){function e(t,r,o,n){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var c=i.formatToParts(u);if(c.length===1)return c[0].value;var p=c.reduce(function(d,m){return !d.length||m.type!==dr.literal||typeof d[d.length-1]!="string"?d.push(m.value):d[d.length-1]+=m.value,d},[]);return p.length<=1?p[0]||"":p},this.formatToParts=function(u){return yd(i.ast,i.locales,i.formatters,i.formats,u,void 0,i.message)},this.resolvedOptions=function(){var u;return {locale:((u=i.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=n||{};a.formatters;var s=CI(a,["formatters"]);this.ast=e.__parse(t,Be(Be({},s),{locale:this.resolvedLocale}));}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=n9(e.formats,o),this.formatters=n&&n.formatters||i9(this.formatterCache);}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:false,configurable:true}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=jI,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})();var qI=WI;var bd=class{locale;messages;cache;constructor(t,r){this.locale=t,this.messages=r,this.cache={};}format(t,r){let o=this.cache[t];if(!o){let i=this.messages.getStringForLocale(t,this.locale);if(!i)throw new Error(`Could not find intl message ${t} in ${this.locale} locale`);o=new qI(i,this.locale),this.cache[t]=o;}let n;return r&&(n=Object.keys(r).reduce((i,a)=>(i[a]=r[a]==null?false:r[a],i),{})),o.format(n)}};var YI=new WeakMap;function l9(e){let t=YI.get(e);return t||(t=new nd(e),YI.set(e,t)),t}function jy(e){let{locale:t}=Q(),r=useMemo(()=>l9(e),[e]),o=useMemo(()=>new bd(t,r),[t,r]);return useCallback((n,i)=>o.format(n,i),[o])}var e_=process.env.NODE_ENV!=="production",jC=Un.createContext({messages:{},shouldLogMissingMessages:e_,hasMissingErrorLoggedFor:{current:new Set},setLang:()=>{}}),t_=({children:e,messages:t={},shouldLogMissingMessages:r=e_,...o})=>{let n=useRef(new Set),i=useRef(false),[a,l]=useState(o.locale||"");useEffect(()=>{i.current?n.current.clear():i.current=true;},[a,o.locale]);let s=Un.useMemo(()=>({messages:t,shouldLogMissingMessages:r,hasMissingErrorLoggedFor:n,setLang:l}),[t,r,l]);return jsx(Iu,{...o,children:jsx(jC.Provider,{value:s,children:e})})};t_.displayName="I18nProvider";var i4e=["bui.alertDialog.close","bui.audioPlayer.audioTimeline","bui.audioPlayer.pause","bui.audioPlayer.play","bui.buttonSelect.more","bui.buttonSelect.moreWithLabel","bui.calendar.nextMonth","bui.calendar.nextYear","bui.calendar.previousMonth","bui.calendar.previousYear","bui.calendar.selectMonth","bui.calendar.selectYear","bui.colorInput.add","bui.colorInput.addColor","bui.colorInput.cancel","bui.colorInput.colorFormat","bui.colorInput.colorPresets","bui.colorInput.customColors","bui.colorInput.indeterminate","bui.colorInput.newColor","bui.colorInput.noColor","bui.colorInput.removeColor","bui.colorInput.transparent","bui.colorSwatch.none","bui.dateField.openCalendar","bui.drawer.close","bui.editor.action","bui.editor.addLink","bui.editor.backgroundColor","bui.editor.bold","bui.editor.cancel","bui.editor.close","bui.editor.copy","bui.editor.cut","bui.editor.editLink","bui.editor.fontColor","bui.editor.help","bui.editor.italic","bui.editor.linkAnnotation","bui.editor.mention","bui.editor.openHelpDialog","bui.editor.paste","bui.editor.redo","bui.editor.removeLink","bui.editor.save","bui.editor.selectAll","bui.editor.shortcut","bui.editor.submit","bui.editor.toolbarFocus","bui.editor.underline","bui.editor.undo","bui.fileList.loading","bui.fileList.removeHint","bui.freehandCanvas.redo","bui.freehandCanvas.undo","bui.imageDropZone.selectImage","bui.imageGallery.cancel","bui.imageGallery.delete","bui.imageGallery.loading","bui.inlineAlert.close","bui.pagination.goToPage","bui.pagination.nextPage","bui.pagination.pageXofY","bui.pagination.prevPage","bui.select.clear","bui.select.more","bui.select.search","bui.select.selectAll","bui.stepper.completed","bui.stepper.label","bui.stepper.step","bui.table.loading","bui.toolbar.more","bui.treeView.collapse","bui.treeView.expand","bui.treeView.rename","bui.useMedia.paused","bui.useMedia.playing"],r_={close:["bui.alertDialog.close","bui.drawer.close","bui.editor.close","bui.inlineAlert.close"],audioTimeline:["bui.audioPlayer.audioTimeline"],pause:["bui.audioPlayer.pause"],play:["bui.audioPlayer.play"],more:["bui.buttonSelect.more","bui.select.more","bui.toolbar.more"],moreWithLabel:["bui.buttonSelect.moreWithLabel"],nextMonth:["bui.calendar.nextMonth"],nextYear:["bui.calendar.nextYear"],previousMonth:["bui.calendar.previousMonth"],previousYear:["bui.calendar.previousYear"],selectMonth:["bui.calendar.selectMonth"],selectYear:["bui.calendar.selectYear"],add:["bui.colorInput.add"],addColor:["bui.colorInput.addColor"],cancel:["bui.colorInput.cancel","bui.editor.cancel","bui.imageGallery.cancel"],colorFormat:["bui.colorInput.colorFormat"],colorPresets:["bui.colorInput.colorPresets"],customColors:["bui.colorInput.customColors"],indeterminate:["bui.colorInput.indeterminate"],newColor:["bui.colorInput.newColor"],noColor:["bui.colorInput.noColor"],removeColor:["bui.colorInput.removeColor"],transparent:["bui.colorInput.transparent"],none:["bui.colorSwatch.none"],openCalendar:["bui.dateField.openCalendar"],action:["bui.editor.action"],addLink:["bui.editor.addLink"],backgroundColor:["bui.editor.backgroundColor"],bold:["bui.editor.bold"],copy:["bui.editor.copy"],cut:["bui.editor.cut"],editLink:["bui.editor.editLink"],fontColor:["bui.editor.fontColor"],help:["bui.editor.help"],italic:["bui.editor.italic"],linkAnnotation:["bui.editor.linkAnnotation"],mention:["bui.editor.mention"],openHelpDialog:["bui.editor.openHelpDialog"],paste:["bui.editor.paste"],redo:["bui.editor.redo","bui.freehandCanvas.redo"],removeLink:["bui.editor.removeLink"],save:["bui.editor.save"],selectAll:["bui.editor.selectAll","bui.select.selectAll"],shortcut:["bui.editor.shortcut"],submit:["bui.editor.submit"],toolbarFocus:["bui.editor.toolbarFocus"],underline:["bui.editor.underline"],undo:["bui.editor.undo","bui.freehandCanvas.undo"],loading:["bui.fileList.loading","bui.imageGallery.loading","bui.table.loading"],removeHint:["bui.fileList.removeHint"],selectImage:["bui.imageDropZone.selectImage"],delete:["bui.imageGallery.delete"],goToPage:["bui.pagination.goToPage"],nextPage:["bui.pagination.nextPage"],pageXofY:["bui.pagination.pageXofY"],prevPage:["bui.pagination.prevPage"],clear:["bui.select.clear"],search:["bui.select.search"],completed:["bui.stepper.completed"],label:["bui.stepper.label"],step:["bui.stepper.step"],collapse:["bui.treeView.collapse"],expand:["bui.treeView.expand"],rename:["bui.treeView.rename"],paused:["bui.useMedia.paused"],playing:["bui.useMedia.playing"]};var Gy={},d9={"en-US":Gy};function p9(e,t){let{language:r}=new Intl.Locale(t);return !!(e[t]||e[r]||Object.entries(e).some(([o,n])=>n&&o.startsWith(`${r}-`)))}function m9(e){return Object.values(e).some(Boolean)}function f9(e,t,r){let o=t.lastIndexOf(".");if(o===-1)return;let n=t.slice(o+1);try{return e(n,r)}catch{return}}function y9(e){return e instanceof Error&&e.message.startsWith("Could not find intl message")}function b9(e,t){if(process.env.NODE_ENV==="production")return "";let r=(r_[t]??[]).filter(o=>o!==e);return r.length===0?"":` Note that \`${t}\` also answers for ${r.map(o=>`\`${o}\``).join(", ")}, so this one entry translates all of them.`}function n_(e){let t;for(let r of Object.keys(e)){let o=r.replaceAll("_","-");o!==r&&(t??={...e},t[o]={...e[r],...t[o]});}return t??e}function i_(e,t,r){if(t)for(let o of Object.keys(e)){let n=o.replaceAll("_","-");if(n!==o&&Object.prototype.hasOwnProperty.call(e,n)){let i=`locale-alias:${o}:${n}`;r.current.has(i)||(console.warn(`BUI \u{1F30D}: Locale supplied in multiple formats ("${o}" and "${n}"). Using the hyphenated entry; provide a single locale ID format to avoid ambiguity.`),r.current.add(i));}}}function fe(e){let{messages:t,shouldLogMissingMessages:r,hasMissingErrorLoggedFor:o,setLang:n}=useContext(jC),i=useMemo(()=>e?zR(e):void 0,[e]);useEffect(()=>{i&&i_(i,r,o),i_(t,r,o);},[i,t,o,r]);let a=useMemo(()=>{let b=i?n_(i):void 0,x=n_(t);if(!b)return x;if(Object.keys(x).length===0)return b;let h=new Set([...Object.keys(b),...Object.keys(x)]),v={};for(let C of h)v[C]={...b[C],...x[C]};return v},[i,t]),l=jy(a),s=Q();useEffect(()=>{n(s.locale);},[s.locale,n]);let u=useMemo(()=>p9(a,s.locale),[a,s.locale]),c=useMemo(()=>!u&&m9(a)&&new Intl.Locale(s.locale).language!=="en",[u,a,s.locale]),p=useCallback(b=>{if(!c||!b.startsWith("bui."))return;let x=`no-catalog:${s.locale}`;if(r&&!o.current.has(x)){let h=Object.keys(a).filter(v=>a[v]).map(v=>`\`${v}\``).join(", ");console.warn(`BUI \u{1F30D}: No supplied catalog covers locale: \`${s.locale}\` (catalogs supplied for ${h}). Every message will use its English \`defaultMessage\`. File the catalog under a key that matches the active locale.`),o.current.add(x);}},[c,o,s.locale,r,a]),d=useCallback(b=>{b.startsWith("bui.")&&r&&!o.current.has(b)&&(console.warn(`BUI \u{1F30D}: Translation not found for key: \`${b}\` for locale: \`${s.locale}\`. The message's \`defaultMessage\` will be used instead.`),o.current.add(b));},[o,s.locale,r]),m=useCallback(b=>{let x=`legacy:${b}`;if(r&&!o.current.has(x)){let h=b.slice(b.lastIndexOf(".")+1);console.warn(`BUI \u{1F30D}: Translation for \`${b}\` resolved via the deprecated bare id \`${h}\` for locale: \`${s.locale}\`. Regenerate your translation catalog with namespaced keys; the bare-id fallback will be removed in a future major.${b9(b,h)}`),o.current.add(x);}},[o,s.locale,r]),f=jy(d9),y=useCallback((b,x,h)=>{let v=x?.defaultMessage??Gy[b];if(!v)return b;if(!v.includes("{")||Gy[b]!==v)return v;try{return f(b,h)}catch{return v}},[f]),g=useCallback((b,x)=>{let h=typeof b=="object"?b:void 0,v=h?.id??b;if(!u)return p(v),y(v,h,x);try{return l(v,x)}catch(C){if(y9(C)&&v.startsWith("bui.")){let T=f9(l,v,x);if(T!==void 0)return m(v),T}return d(v),y(v,h,x)}},[l,y,u,m,p,d]);return useMemo(()=>({formatMessage:g,locale:s}),[g,s])}var Te=e=>{for(let{id:t,defaultMessage:r}of Object.values(e))r&&(Gy[t]=r);return e};function b4e(e,t,r){let o=Un.useRef(null),n=Un.useRef(r);te(()=>{n.current=r;});let i=JSON.stringify(t);return Un.useEffect(()=>{if(!e)return;let a=new MutationObserver((l,s)=>{n.current(l,s);});return o.current=a,a.observe(e,t),()=>{a.disconnect(),o.current=null;}},[e,i]),o.current}function a_(e,t){let[r,o]=useState(()=>{try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch(i){return console.log(i),t}});return [r,i=>{try{let a=typeof i=="function"?i(r):i;o(a),window.localStorage.setItem(e,JSON.stringify(a));}catch(a){console.log(a);}}]}function P4e({ref:e,onSelectionChange:t,onSelectionEnd:r,isDisabled:o}){let n=Un.useRef(null);Ae({ref:e,isDisabled:o,onPressEnd(){let a=X(e.current).getSelection();a&&e.current?.contains(a.anchorNode)&&r?.(a);},onPressStart(){let i=X(e.current);n.current=i.getSelection(),n.current&&n.current.removeAllRanges();}}),useEffect(()=>{let i=e.current;if(!i||o)return;function a(){let u=X(i).getSelection();u&&e.current?.contains(u.anchorNode)&&t(u);}let l=G(i);return l.addEventListener("selectionchange",a),()=>{l.removeEventListener("selectionchange",a);}},[e,t,o]);}var Uy=Un.createContext({breakpoints:breakpoints}),C9=({children:e,breakpoints:t=breakpoints})=>{let r=useMemo(()=>({breakpoints:t}),[t]);return jsx(Uy.Provider,{value:r,children:e})};function Pi(e){let{breakpoints:t=breakpoints}=useContext(Uy),r=useMemo(()=>({tablet:`screen and (min-width: ${t.tablet}px)`,desktop:`screen and (min-width: ${t.desktop}px)`}),[t]),o=useCallback(()=>{let a=X(typeof window>"u"?void 0:e),l=a.matchMedia(r.tablet);return a.matchMedia(r.desktop).matches?"desktop":l.matches?"tablet":"mobile"},[e,r]),[n,i]=Un.useState(o);return te(()=>{let a=X(e),l=()=>{i(o());};return a.addEventListener("resize",l),l(),()=>{a.removeEventListener("resize",l);}},[e,o]),n}var UC=Un.createContext(void 0),Wy=({portalContainer:e,children:t})=>jsx(UC.Provider,{value:e,children:t});Wy.displayName="PortalContainerProvider";function M9(e){return e?.nodeType===Node.DOCUMENT_NODE}function L9(){let{containerWidth:e,containerHeight:t}=Un.useContext(co);return {width:e,height:t}}var co=Un.createContext({container:null,portalContainer:null,shouldContainOverlays:false,isContainerPositioned:false,containerWidth:void 0,containerHeight:void 0,shouldUseContainerAsBoundary:false}),A9=({children:e,container:t,portalContainer:r,shouldContainOverlays:o="auto",shouldUseContainerAsBoundary:n=false})=>{let i=Pi(),[a,l]=useState(),[s,u]=useState(),[c,p]=useState(document),d=t??c.body;useEffect(()=>{let v=d?.getRootNode(),C;return M9(v)&&v!==document&&(C=ku(v.body)),()=>{C?.();}},[d]);let m=useMemo(()=>{let v=d===d.ownerDocument.body,C=d===document.body;return v||C||o==="never"?false:o==="always"?true:i!=="mobile"},[o,i,d]),[f,y]=useState(false),g=useRef(new WeakMap),b=Ny();useEffect(()=>{if(!d||b&&g.current.get(d))return;g.current.set(d,true);let C=X(d).getComputedStyle(d),T=!!C.position&&C.position!=="static";T||console.warn("FrameProvider: container is not positioned. Please ensure the container is non-static."),y(T);let P=d.getBoundingClientRect();(P.width===0||P.height===0)&&console.error("FrameProvider: container does not have a width or height. Please ensure that the container is visible and has a width and height.");function k({width:w,height:E}){d&&(l(w),u(E));}let S=new ResizeObserver(w=>{for(let E of w)k({width:E.contentRect.width,height:E.contentRect.height});});return m&&(k({width:P.width,height:P.height}),S.observe(d)),d.dataset.shouldContainOverlays=m.toString(),()=>{S.disconnect(),d.dataset.shouldContainOverlays="";}},[d,m,b]);let x=r||d||c.body,h=useMemo(()=>({container:d,portalContainer:x,shouldContainOverlays:m,isContainerPositioned:f,containerWidth:a,containerHeight:s,shouldUseContainerAsBoundary:n}),[d,x,m,f,a,s,n]);return jsx(co.Provider,{value:h,children:jsxs(Wy,{portalContainer:h.portalContainer||void 0,children:[e,jsx("div",{ref:v=>{v&&p(v.ownerDocument);},className:sprinkles({display:"none"})})]})})};function pr(e){let t=useContext(UC),{portalContainer:r}=useContext(co);return e||t||r||void 0}function Xy({ownerDocument:e=document}){let t=Yt(),[r,o]=useState(t==="keyboard"?"keyboard":"pointer");return useEffect(()=>{let n=()=>{o("pointer");},i=()=>{o("keyboard");};return e.addEventListener("pointermove",n,{passive:true,capture:true}),e.addEventListener("pointerdown",n,{passive:true,capture:true}),e.addEventListener("keydown",i,true),()=>{e.removeEventListener("pointermove",n,{capture:true}),e.removeEventListener("pointerdown",n,{capture:true}),e.removeEventListener("keydown",i,true);}},[e]),r}function V9(){return Object.prototype.hasOwnProperty.call(HTMLElement.prototype,"inert")}function Yy({ref:e,isDisabled:t}){useEffect(()=>{if(!e.current||t)return;let r=e.current;if(V9())return r.setAttribute("inert","true"),()=>{r.removeAttribute("inert");};let o=new Map,n=r.hasAttribute("aria-hidden")?r.getAttribute("aria-hidden")==="true":null;r.setAttribute("aria-hidden","true");let i=()=>{if(!e.current)return;let l=kR(e.current);for(let s of l)o.has(s)||(o.set(s,s.getAttribute("tabindex")),s.setAttribute("tabindex","-1"));};i();let a=new MutationObserver(l=>{for(let s of l)if(s.type==="childList"){for(let u of s.removedNodes)u instanceof Element&&o.delete(u);i();}});return a.observe(e.current,{childList:true,subtree:true,attributes:false}),()=>{a.disconnect();for(let[l,s]of o.entries())l.isConnected&&(s===null?l.removeAttribute("tabindex"):l.setAttribute("tabindex",s));n===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n?"true":"false");}},[e,t]);}var WC="var(--_1hotumh0)";function qC(e=typeof window>"u"?void 0:window){let[t,r]=useState("light"),[o,n]=useState(false),[i,a]=useState(false),[l,s]=useState(false);return useEffect(()=>{if(!e)return;let u=e.matchMedia("(prefers-color-scheme: dark)"),c=p=>{r(p.matches?"dark":"light");};return u.matches&&r("dark"),u.addEventListener("change",c),()=>{u.removeEventListener("change",c);}},[e]),useEffect(()=>{if(!e)return;let u=e.matchMedia("(prefers-contrast: more)"),c=p=>{n(p.matches);};return n(u.matches),u.addEventListener("change",c),()=>{u.removeEventListener("change",c);}},[e]),useEffect(()=>{if(!e)return;let u=e.matchMedia("(prefers-reduced-motion: reduce)"),c=p=>{a(p.matches);};return u.matches&&a(true),u.addEventListener("change",c),()=>{u.removeEventListener("change",c);}},[e]),useEffect(()=>{if(!e)return;let u=e.matchMedia("(prefers-reduced-transparency: reduce)"),c=p=>{s(p.matches);};return u.matches&&s(true),u.addEventListener("change",c),()=>{u.removeEventListener("change",c);}},[e]),{colorScheme:t,highContrast:o,reducedMotion:i,transparency:l}}var Es=createContext({theme:lightTheme,setTheme:()=>{},shouldHandleVirtualKeyboard:true});var m_="var(--hj25q10)";var Qy={LIGHT:themes.base.light,DARK:themes.base.dark},eb=Un.forwardRef(({theme:e="system",children:t,setTheme:r,onThemeChange:o,className:n,style:i,UNSAFE_domProps:a,"data-block-id":l,"data-block-class":s,reducedMotion:u="user",shouldHandleVirtualKeyboard:c=true,minTouchTargetSize:p=24},d)=>{let{direction:m}=Q(),{colorScheme:f,reducedMotion:y,highContrast:g,transparency:b}=qC(),{name:x,...h}=useMemo(()=>{switch(e){case "system":return f==="light"?Qy.LIGHT:Qy.DARK;case "light":return Qy.LIGHT;case "dark":return Qy.DARK;default:return e}},[f,e]),v=Pi(),C={"data-theme":x,"data-block-id":l,"data-block-class":s,"data-reduced-motion":u==="user"?y:u==="always","data-high-contrast":g,"data-transparency":b,"data-device":v},T=useMemo(()=>({theme:h,setTheme:P=>{r?.(P),o?.(P);},shouldHandleVirtualKeyboard:c}),[h,r,o,c]);return useEffect(()=>{r&&console.warn("ThemeProvider: The `setTheme` prop is deprecated and will be removed in a future version of Baseline UI. Use the `onThemeChange` prop instead.");},[r]),jsx(Es.Provider,{value:T,children:jsx(MotionConfig,{reducedMotion:u,children:jsx("div",{...A(a,C),className:L(gI,"BaselineUI-ThemeProvider",n),style:{...assignInlineVars(themeVars,h),...assignInlineVars({[WC]:m==="rtl"?"-1":"1",[m_]:`${p}px`}),...i},dir:m,ref:d,children:t})})})});eb.displayName="ThemeProvider";function Y7e(){MotionGlobalConfig.skipAnimations=true;}function Z7e(){MotionGlobalConfig.skipAnimations=false;}var Mr=Un.forwardRef(({className:e,style:t,children:r,"data-block-id":o,"data-block-class":n,portalContainer:i,...a},l)=>{let{theme:s,shouldHandleVirtualKeyboard:u}=useContext(Es),c=pr();return jsx(Xv,{...a,portalContainer:i??c,children:jsx(eb,{ref:l,theme:s,shouldHandleVirtualKeyboard:u,style:t,className:L("BaselineUI-Portal",e),"data-block-id":o,"data-block-class":n,children:r})})});Mr.displayName="Portal";function tb({placement:e,isDisabled:t}){let r=useMemo(()=>{if(t)return {x:0,y:0};switch(e){case "top":return {x:0,y:-4};case "bottom":return {x:0,y:4};case "left":return {x:-4,y:0};case "right":return {x:4,y:0};default:return {x:0,y:4}}},[e,t]);return {transitionProps:{initial:t?{opacity:1,scale:1,...r}:{opacity:0,scale:.98,...r},animate:{opacity:1,scale:1,x:0,y:0},transition:{ease:"easeOut"}}}}var v_=j({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),x_=j({defaultClassName:"_1jwycy87 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6e7",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dv"},variant:{default:"_1yep5z6g9 _1yep5z6ez",inverse:"_1yep5z6d7 _1yep5z6g1 _1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var YC=Un.forwardRef(({children:e,state:t,overlayProps:r,arrowProps:o,placement:n="bottom",variant:i,size:a,tooltipProps:l,includeArrow:s},u)=>{let c=useRef(null),{tooltipProps:p}=JT({isOpen:t.isOpen},t,c),d=n==="center"?"bottom":n,{transitionProps:m}=tb({placement:n});return jsxs(motion.span,{...A(r,m),ref:se(u,c),"data-placement":d,children:[s?jsx("div",{className:v_({placement:d,variant:i}),...o}):null,jsx("div",{...A(p,l),className:x_({variant:i,size:a}),children:e})]})});YC.displayName="TooltipContent";var tt=Un.forwardRef(({children:e,placement:t="bottom",delay:r=1e3,closeDelay:o=500,variant:n="default",size:i="md",includeArrow:a=true,portalContainer:l,className:s,style:u,"data-block-id":c,"data-block-class":p,...d},m)=>{let f=Un.useRef(null),y=Un.useRef(null),g=!d.text||d.isDisabled,b=ZT({...d,delay:r,closeDelay:o}),{triggerProps:x,tooltipProps:h}=QT({...d,isDisabled:g},b,f),v=pr(l),{overlayProps:C,arrowProps:T,placement:P,updatePosition:k}=xa({arrowSize:a?13:0,targetRef:f,arrowBoundaryOffset:a?8:0,offset:a?12:2,overlayRef:y,placement:t,isOpen:b.isOpen,...d});vI({ref:y,threshold:1,onIntersect:k,isDisabled:!b.isOpen}),Ay({ref:f,onResize:k,isDisabled:!b.isOpen});let S=Un.isValidElement(e)?jsx(Wp,{...x,ref:f,children:e}):typeof e=="function"?e({triggerProps:x,triggerRef:f}):null;return jsxs(Fragment,{children:[S,b.isOpen?jsx(Mr,{disableFocusManagement:true,portalContainer:v,className:s,style:u,"data-block-id":c,"data-block-class":p,children:jsx(YC,{ref:se(m,y),state:b,arrowProps:T,overlayProps:C,placement:P??"bottom",tooltipProps:h,variant:n,size:i,includeArrow:a,children:d.text})}):null]})});tt.displayName="Tooltip";var n4={xxs:8,xs:12,sm:16,md:20,lg:24},pe=Un.forwardRef((e,t)=>{let r=ce(t),{tooltipProps:o}=Iy(e,r);return o?jsx(tt,{...o,children:jsx(JC,{...e,ref:r})}):jsx(JC,{...e,ref:r})});pe.displayName="ActionIconButton";var JC=Un.forwardRef((e,t)=>{let[r,o]=Re(e,t,ro),{className:n,style:i,icon:a,size:l="md",variant:s="primary",UNSAFE_isVisuallyInteractiveOnly:u,elementType:c=u?"div":"button",isExcludedFromRovingFocus:p,isDisabled:d,"data-block-id":m,"data-block-class":f,"aria-label":y,"aria-labelledby":g,slot:b,...x}=r;useEffect(()=>{!y&&!g&&!u&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");},[y,g,u]);let{buttonProps:h,isPressed:v,ref:C,isFocusVisible:T,isFocused:P,isHovered:k,uiStateOptions:S}=_y({...x,"aria-label":y,"aria-labelledby":g,isDisabled:d,excludeFromTabOrder:x.excludeFromTabOrder??p,elementType:c}),w=he({"data-block-id":m,"data-block-class":f,"data-focused":P,"data-focus-visible":T,"data-disabled":d,"data-hovered":k,"data-pressed":v,"data-bui-avoid-focus":p});return jsxs(c,{...A(h,w),className:L(rI({variant:s,size:l,isDisabled:!!d,isFocusVisible:T,isHovered:k}),"BaselineUI-ActionIconButton",typeof n=="function"?n(S):n),ref:se(o,C),style:typeof i=="function"?i(S):i,...u&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsx(a,{role:"presentation",size:n4[l]}),s==="popover"&&jsx(CaretDownIcon,{size:8,className:wy})]})});JC.displayName="ActionIconButtonCore";var zs=j({defaultClassName:"nrh1ehy _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6111"},hasError:{true:"_1yep5z610h"},labelPosition:{start:"nrh1eh11",top:"nrh1eh12"}},defaultVariants:{},compoundVariants:[]}),P_="nrh1ehx _1yep5z6iv _1yep5z6iw _1yep5z6ix",ob=j({defaultClassName:"nrh1ehm _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6ln _1yep5z6ly _1yep5z6lq _1yep5z6dy",variantClassNames:{isDisabled:{true:"nrh1ehn"},labelPosition:{top:"nrh1eho",start:"nrh1ehp"},isMultiLine:{true:"nrh1ehq"}},defaultVariants:{},compoundVariants:[]}),Si=j({defaultClassName:"nrh1ehr _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lk",variantClassNames:{validationState:{valid:"nrh1ehs",error:"_1yep5z610h",warning:"_1yep5z610p"},isReadOnly:{true:"_1yep5z6118"},isMultiLine:{true:"_1yep5z6qx _1yep5z6qy _1yep5z6qz _1yep5z615v _1yep5z615w _1yep5z615x"}},defaultVariants:{},compoundVariants:[]}),Di="_1yep5z6ev _1yep5z6dy",nn=j({defaultClassName:"nrh1eh3 _1yep5z6iv _1yep5z6iw _1yep5z6ix",variantClassNames:{labelPosition:{top:"_1yep5z6t9 _1yep5z6ta _1yep5z6tb",start:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6157 _1yep5z6158 _1yep5z6159"},hasMessage:{true:"nrh1eh6"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:false},"_1yep5z61sj _1yep5z61sk _1yep5z61sl"]]}),an=j({defaultClassName:"nrh1eh0 _1yep5z6ln",variantClassNames:{labelPosition:{top:"_1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6157 _1yep5z6158 _1yep5z6159",start:"_1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),ki=j({defaultClassName:"nrh1eh7 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{validationState:{valid:"nrh1eh8",error:"_1yep5z612q",warning:"nrh1eha"},isHovered:{true:"nrh1ehb"},isFocused:{true:"_1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6184 _1yep5z6182 _1yep5z6134 _1yep5z617v _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"nrh1ehd"},variant:{primary:"nrh1ehe",ghost:"nrh1ehf"},isReadOnly:{true:"_1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8"},isMultiLine:{true:"nrh1ehh _1yep5z615g _1yep5z615h _1yep5z615i"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:true,isFocused:false,validationState:"valid"},"_1yep5z61pa _1yep5z61u5 _1yep5z61u7"],[{variant:"ghost",isFocused:false,isHovered:false,validationState:"valid"},"_1yep5z61pm"],[{isHovered:true,validationState:"valid",isDisabled:false,isReadOnly:false,isFocused:false,variant:"primary"},"_1yep5z61pb"],[{isHovered:true,validationState:"warning",isDisabled:false,isReadOnly:false,isFocused:false},"_1yep5z61pb"],[{isReadOnly:true,variant:"primary",isFocused:false},"nrh1ehi"],[{isReadOnly:true,isFocused:true},"_1yep5z61io _1yep5z61ip _1yep5z61iq _1yep5z61jc _1yep5z61jd _1yep5z61je _1yep5z61k0 _1yep5z61k1 _1yep5z61k2 _1yep5z61ko _1yep5z61kp _1yep5z61kq"],[{isHovered:true,isFocused:false,isDisabled:false,isReadOnly:false},"nrh1ehj"],[{isMultiLine:true,isReadOnly:true},"nrh1ehk"],[{isMultiLine:true,isDisabled:true},"nrh1ehl"]]});function eP({description:e,errorMessage:t,warningMessage:r}){return e?"description":t?"errorMessage":r?"warningMessage":null}function mr({description:e,errorMessageProps:t,descriptionProps:r,warningMessage:o,warningMessageProps:n,errorMessage:i,labelPosition:a,isDisabled:l}){switch(eP({description:e,errorMessage:i,warningMessage:o})){case "description":return jsx("div",{...r,className:zs({isDisabled:l,labelPosition:a}),"aria-disabled":l,children:e});case "errorMessage":return jsx("div",{...t,className:zs({hasError:true,labelPosition:a}),"aria-disabled":l,children:i});case "warningMessage":return jsx("div",{...n,className:zs({isDisabled:l,labelPosition:a}),"aria-disabled":l,children:o});default:return null}}var S_=j({defaultClassName:"_1lnwne1 z9nup81",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup82"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:true,isInteractive:true},"_1lnwne4"]]}),D_="_1lnwne0";var Nn=Un.forwardRef(({className:e,style:t,labelPosition:r="top",variant:o="primary",showStepper:n=true,...i},a)=>{let l=Un.useRef(null),{locale:s}=Q(),u=nc({...i,locale:s}),{hoverProps:c,isHovered:p}=ie({isDisabled:i.isDisabled}),{focusProps:d,isFocusVisible:m,isFocused:f}=oe(),{labelProps:y,decrementButtonProps:g,inputProps:b,incrementButtonProps:x,groupProps:h,descriptionProps:v,errorMessageProps:C}=rc(i,u,l),T=useMemo(()=>i.isReadOnly?ReadOnlyIcon:i.isInvalid?ErrorCircleFilledIcon:null,[i.isInvalid,i.isReadOnly]),P=mr({description:i.description,errorMessageProps:C,descriptionProps:v,errorMessage:i.errorMessage,labelPosition:r,isDisabled:i.isDisabled}),k=he({"data-disabled":i.isDisabled,"data-readonly":i.isReadOnly,"data-hovered":p,"data-focused":f,"data-focus-visible":m,"data-invalid":i.isInvalid,"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"]});return jsxs("div",{style:t,className:L(an({labelPosition:r}),"BaselineUI-NumberInput",e),...k,ref:a,children:[i.label?jsxs("div",{className:nn({labelPosition:r,hasMessage:!!P}),children:[jsx("label",{...y,className:Di,children:i.label}),r==="start"&&P]}):null,jsxs("div",{className:L({[ks]:i.isDisabled}),children:[jsxs("div",{...A(h,c),className:L(ki({isHovered:p,isDisabled:!!i.isDisabled,isReadOnly:!!i.isReadOnly,validationState:i.isInvalid?"error":"valid",isFocused:f,variant:o}),{[D_]:r==="start"},"BaselineUI-NumberInput-Container"),children:[jsx("input",{...A(b,d),ref:l,className:L("BaselineUI-NumberInput-Input",ob({isDisabled:i.isDisabled,labelPosition:r}))}),T?jsx(T,{className:Si({validationState:"error",isReadOnly:i.isReadOnly}),size:16}):null,n?jsxs("div",{className:S_({isHoveredOrFocused:p||f,isInteractive:!i.isReadOnly&&!i.isDisabled}),children:[jsx(pe,{variant:"secondary",size:"xxs",icon:MinusIcon,...g,className:"BaselineUI-NumberInput-DecrementButton",isExcludedFromRovingFocus:true}),jsx(De,{style:{height:16},orientation:"vertical"}),jsx(pe,{variant:"secondary",size:"xxs",icon:PlusIcon,...x,className:"BaselineUI-NumberInput-DecrementButton",isExcludedFromRovingFocus:true})]}):null]}),r==="top"&&P]})]})});Nn.displayName="NumberInput";var E_="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln",z_="_14uvjig3 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",w_="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl",R_=j({defaultClassName:"_14uvjig0 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"},hasNumberInput:{false:"_1yep5z6ol _1yep5z6om _1yep5z6on"}},defaultVariants:{},compoundVariants:[]}),I_=j({defaultClassName:"_14uvjigb _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6g9 _1yep5z6lp _1yep5z6la",variantClassNames:{active:{true:"_14uvjigc _1yep5z612i _1yep5z6181 _1yep5z617t"},isDisabled:{true:"_14uvjigd _1yep5z612m"},isReadOnly:{true:"_1yep5z614p _1yep5z614q _1yep5z614r"},isFocusVisible:{true:"_14uvjigf _1yep5z612i _1yep5z617d"},isHovered:{true:"_14uvjigg _1yep5z612i"}},defaultVariants:{},compoundVariants:[]}),__="z9nup8a _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",M_="_14uvjig4 z9nup87 _1yep5z6g5 _1yep5z6ln",L_=j({defaultClassName:"_14uvjig5 _1yep5z6g9 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6lo",variantClassNames:{active:{true:"_1yep5z612i"},isFocusVisible:{true:"_1yep5z612i"},isDisabled:{true:"_1yep5z612m"},isHovered:{true:"_1yep5z612i"}},defaultVariants:{},compoundVariants:[]});var Rs=Un.forwardRef(({className:e,style:t,onChange:r,onChangeEnd:o,numberFormatOptions:n,isDisabled:i,step:a,minValue:l,maxValue:s,value:u,"aria-label":c,"aria-labelledby":p,"aria-details":d,"aria-describedby":m,"data-block-id":f,"data-block-class":y,defaultValue:g,isReadOnly:b,label:x,id:h,includeNumberInput:v,numberInputClassName:C,numberInputStyle:T},P)=>{let k=Un.useRef(null),S={onChange:r===void 0?void 0:z=>{r(z[0]);},isDisabled:i||b,step:a,minValue:l,maxValue:s,onChangeEnd:o===void 0?void 0:z=>{o(z[0]);},value:u===void 0?void 0:[u],defaultValue:g===void 0?void 0:[g],"aria-label":c,"aria-labelledby":p,"aria-details":d,"aria-describedby":m,id:h,label:x},w=To(n),E=uc({...S,numberFormatter:w}),{trackProps:R,groupProps:_,labelProps:D}=lc(S,E,k),F=jsx(Nn,{variant:"ghost",showStepper:false,className:C,"aria-label":c,"aria-labelledby":D.id,isDisabled:i,isReadOnly:b,value:E.getThumbValue(0),formatOptions:n,onChange:z=>{E.setThumbValue(0,z);},style:{width:60,textAlign:"right",flexShrink:0,...T}});return jsxs("div",{..._,style:t,"data-block-id":f,"data-block-class":y,className:L(E_,"BaselineUI-Slider",e),children:[x?jsxs("div",{className:w_,children:[jsx("label",{...D,className:L(R_({isDisabled:i,hasNumberInput:!!v}),"BaselineUI-Slider-Label"),children:x}),v?F:null]}):null,jsxs("div",{className:z_,children:[jsx("div",{...R,className:L(M_,"BaselineUI-Slider-Track"),ref:se(k,P),"data-testid":"track",children:jsx(d4,{state:E,trackRef:k,isDisabled:i,isReadOnly:b})}),v&&!x?F:null]})]})});Rs.displayName="Slider";function d4({state:e,trackRef:t,isDisabled:r,isReadOnly:o}){let n=Un.useRef(null),{thumbProps:i,inputProps:a,isDragging:l}=sc({trackRef:t,inputRef:n},e),{focusProps:s,isFocused:u,isFocusVisible:c}=oe(),{hoverProps:p,isHovered:d}=ie({isDisabled:r}),{direction:m}=Q(),f=he({"data-disabled":r,"data-readonly":o,"data-hovered":d,"data-focus-visible":c,"data-dragging":l,"data-focused":u});return jsxs(Fragment,{children:[jsx("div",{className:L(L_({isDisabled:r,isFocusVisible:c,active:l,isHovered:d}),"BaselineUI-Slider-TrackHighlight"),style:{width:m==="rtl"?`calc(100% - ${i.style?.left})`:i.style?.left},"data-testid":"track-highlight"}),jsxs("div",{...A(i,p,f),className:L(__,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsx("div",{className:L(I_({isDisabled:r,isFocusVisible:c,active:l,isReadOnly:o,isHovered:d}),"BaselineUI-Slider-Thumb")}),jsx(Oe,{children:jsx("input",{ref:n,...A(a,s)})})]})]})}var A_=j({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z610x",title:"_1yep5z610x",label:"_1yep5z610y",value:"_1yep5z610y",helper:"_1yep5z610z",body:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61lj"],[{type:"title",size:"md"},"_1yep5z61lm"],[{type:"title",size:"lg"},"_1yep5z61lp"],[{type:"body",size:"sm"},"_1yep5z61m9"],[{type:"body",size:"md"},"_1yep5z61mc"],[{type:"body",size:"lg"},"_1yep5z61mc"],[{type:"subtitle",size:"sm"},"_1yep5z61m5"],[{type:"subtitle",size:"md"},"_1yep5z61m8"],[{type:"subtitle",size:"lg"},"_1yep5z61m8"],[{type:"label",size:"md"},"_1yep5z61m7"],[{type:"label",size:"lg"},"_1yep5z61m7"],[{type:"value",size:"md"},"_1yep5z61m7"],[{type:"value",size:"lg"},"_1yep5z61m7"],[{type:"helper",size:"sm"},"_1yep5z61m1"]]});var Ye=Un.forwardRef((e,t)=>{let[r,o]=Re({...e,slot:e.slot??null},t,Co),{elementType:n="span",type:i="title",children:a,size:l="md",...s}=r;return jsx(n,{...s,className:L(A_({size:l,type:i}),"BaselineUI-Text",s.className),ref:o,children:a})});Ye.displayName="Text";var O_=j({defaultClassName:"siobe20 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6",variantClassNames:{background:{subtle:"_1yep5z6124",medium:"_1yep5z6125"},isFocusVisible:{true:"_1yep5z617u _1yep5z617w _1yep5z617x _1yep5z6140"}},defaultVariants:{},compoundVariants:[]}),N_="siobe24";var nb=Un.forwardRef(({className:e,style:t,children:r,background:o="medium",title:n,action:i,"data-block-id":a,"data-block-class":l,onCloseRequest:s,contentStyle:u,contentClassName:c,...p},d)=>{let{formatMessage:m}=fe(),f=Un.useRef(null),{dialogProps:y,titleProps:g}=vc(p,f),{focusProps:b,isFocusVisible:x}=oe();return jsxs("div",{...A(y,b),className:L(O_({background:o,isFocusVisible:x}),"BaselineUI-Drawer",e),"data-block-id":a,"data-block-class":l,style:t,ref:se(d,f),children:[jsxs(Z,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:N_,children:[jsx(Ye,{type:"title",size:"sm",...g,className:hI,children:n}),jsxs(Z,{children:[i?jsx(pe,{...i,variant:"secondary"}):null,jsx(pe,{variant:"secondary",size:"md",icon:XIcon,onPress:s,"aria-label":m(b4.close)})]})]}),jsx(De,{variant:o==="subtle"?"primary":"secondary"}),jsx(Z,{display:"flex",flexDirection:"column",flex:1,style:{overflow:"auto",...u},className:L(c,"BaselineUI-Drawer-Content"),children:r})]})});nb.displayName="Drawer";var b4=Te({close:{id:"bui.drawer.close",defaultMessage:"Close"}});var Fn=Un.createContext({state:null,triggerProps:{},overlayProps:{}}),ln=({children:e,...t})=>{let r=vr(t),{triggerProps:o,overlayProps:n}=An({type:"dialog"},r),i=useMemo(()=>({state:r,triggerProps:o,overlayProps:n}),[r,o,n]);return jsx(Fn.Provider,{value:i,children:e})};ln.displayName="Modal";function $_(e,t,r){let[o,n]=useState({}),i=useRef(false),[a,l]=useState(null),{container:s,shouldContainOverlays:u,isContainerPositioned:c,containerHeight:p,portalContainer:d}=useContext(co);useEffect(()=>{if(!e)return;let g=X(e),b=g.visualViewport,x=()=>{let h=r?b?.height??g.innerHeight:g.innerHeight,v=g.innerHeight-h;if(i.current=r?v>60:false,i.current){let C=ue(e.ownerDocument);C&&ER(C)&&C.scrollIntoView({behavior:"smooth",block:"center"});}if(t)n({maxHeight:(h||0)*.8,bottom:v});else {let C=`${h||0}px`,T=u?`min(${C}, ${p?p+"px":C})`:C;n({maxHeight:`calc(${T} - (2 * ${themeVars.spacing.xl} + env(safe-area-inset-top) + env(safe-area-inset-bottom)))`,top:i.current?`calc(env(safe-area-inset-top) + ${themeVars.spacing.xl})`:void 0});}};return x(),b?.addEventListener("resize",x),g.addEventListener("resize",x),()=>{b?.removeEventListener("resize",x),g.removeEventListener("resize",x);}},[e,t,u,r,p]);let m=d&&!Y(s,d);useEffect(()=>{if(!s||!u||c&&!m)return;let g=()=>{s&&l(my(s));};g();let b=new ResizeObserver(()=>{g();});return b.observe(s),()=>{b.disconnect();}},[s,u,c,m]);let f=useMemo(()=>({...o,overflow:"auto",position:"relative"}),[o]),y=useMemo(()=>{if(!t&&i.current)return {alignItems:"flex-start"};if(u&&(!c||m)){let g=a||(s?my(s):{x:0,y:0,height:0,width:0});return {position:"absolute",left:g.x,top:g.y,height:g.height,width:g.width}}return {}},[t,i.current,s,c,u,a,m]);return {dialogStyle:f,containerStyle:y}}var j_="aml2vl8 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ij _1yep5z6ik _1yep5z6il",G_="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",U_=j({defaultClassName:"aml2vl3 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6is _1yep5z6it _1yep5z6iu",variantClassNames:{enableDrawer:{false:"_1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",true:"aml2vl5"},shouldContainOverlays:{true:"aml2vl6",false:"aml2vl7"}},defaultVariants:{},compoundVariants:[]}),W_=j({defaultClassName:"aml2vl0 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6gb",variantClassNames:{shouldContainOverlays:{true:"aml2vl1",false:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});var nP=Un.forwardRef(({children:e,className:t,style:r,isDismissable:o=true,isKeyboardDismissDisabled:n=false,portalContainer:i,disableAnimation:a,enableDrawer:l=false,"data-block-id":s,"data-block-class":u,shouldCloseOnInteractOutside:c,UNSAFE_enableInert:p,disableFocusManagement:d},m)=>{let{state:f}=Un.useContext(Fn),[y,g]=Un.useState(true),b=Un.useRef(null),[x,h]=Un.useState(null),{shouldHandleVirtualKeyboard:v}=useContext(Es),{shouldContainOverlays:C,container:T,portalContainer:P}=useContext(co),k=Pi(),S=typeof l=="boolean"&&l||l==="auto"&&k==="mobile";ge(f,"ModalContent must be a child of Modal");let w=Un.useRef(null),E=typeof o=="function"?o(S):o,R=typeof n=="function"?n(S):n,_=typeof p=="function"?p(S):p??false,D=i||P,F=useMemo(()=>C&&T?T:D?.ownerDocument?.body??T?.ownerDocument?.body??document.body,[C,T,D]),{modalProps:z,underlayProps:N}=jx({isDismissable:y&&E,shouldCloseOnInteractOutside:U=>!T?.contains(U)&&C&&!D?.contains(U)?false:c?.(U)??true,isKeyboardDismissDisabled:R,root:F,shouldUseInert:_},f,w),{dialogStyle:V,containerStyle:M}=$_(x,S,v),O=useMemo(()=>({isDrawer:S,closeDrawer:f.close,dialogStyle:V,dialogRef:b,setDialogElement:h,isWithinModal:true}),[S,f.close,V,b,h]),B=useMemo(()=>({setIsPopoverSafelyClosed:g}),[g]),K={duration:.3,type:"tween",ease:"easeOut"},I={type:"spring",duration:.3},H={open:{opacity:1,transform:S?"translateY(0%)":"scale(1)"},closed:a?{opacity:1,transform:S?"translateY(0%)":"scale(1)"}:{opacity:0,transform:S?"translateY(100%)":"scale(0.95)"}};return jsx(ab.Provider,{value:O,children:jsx(lb.Provider,{value:B,children:jsxs(Mr,{className:L(U_({enableDrawer:S,shouldContainOverlays:C}),t),"data-block-id":s,"data-block-class":u,style:{...r,...M},portalContainer:i,disableFocusManagement:d,ref:m,children:[jsx(motion.div,{...N,variants:{open:{opacity:1},closed:{opacity:a?1:0}},initial:"closed",animate:"open",exit:"closed","data-testid":"underlay",transition:K,className:L(W_({shouldContainOverlays:C}),"BaselineUI-Modal-Underlay")}),jsx(motion.div,{...z,ref:w,"data-drawer":S,className:L(S?j_:G_,"BaselineUI-Modal-Content"),variants:H,transition:S?K:I,initial:"closed",animate:"open",exit:"closed",children:typeof e=="function"?e(f):e})]})})})});nP.displayName="ModalContentCore";var ab=Un.createContext({isDrawer:false,closeDrawer:()=>{},dialogStyle:{},setDialogElement:()=>{},isWithinModal:false}),lb=Un.createContext({setIsPopoverSafelyClosed:()=>{}}),sn=Un.forwardRef(({shouldAnimateOnMount:e=true,disableAnimation:t,...r},o)=>{let{state:n}=Un.useContext(Fn);return jsx(AnimatePresence,{initial:e&&!t,children:n?.isOpen?jsx(nP,{...r,disableAnimation:t,ref:o}):null})});sn.displayName="ModalContent";var Z_="var(--cjv3et0)",J_=j({defaultClassName:"cjv3et1 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1",variantClassNames:{size:{sm:"cjv3et2",md:"cjv3et3",lg:"cjv3et4",content:"cjv3et5"},variant:{primary:"_1yep5z6137",ghost:"cjv3et7"},overlayType:{modal:"cjv3et8",popover:"cjv3et9"},isDrawer:{true:"cjv3eta _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8 _1yep5z617q"},isFocusVisible:{true:"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u1"}},defaultVariants:{},compoundVariants:[]});function Q_(e,t){let r=e["aria-label"],o=e["aria-labelledby"],[n,i]=useState(()=>r||"");return useEffect(()=>{if(r){i(r);return}if(!o){i("");return}let a=t?.current?.getRootNode()??G(null),l=o.replaceAll(":",String.raw`\:`),s=a.querySelector(`#${l}`);if(s?.textContent){i(s.textContent);return}let u=G(null),c=a===u?u.body:a,p=new MutationObserver(()=>{let d=a.querySelector(`#${l}`);d?.textContent&&(i(d.textContent),p.disconnect());});return p.observe(c,{childList:true,subtree:true}),()=>{p.disconnect();}},[r,o,t]),n}var aP=Un.createContext({titleProps:{}}),Lr=Un.forwardRef(({children:e,className:t,style:r,inheritDrawer:o,size:n="md",variant:i="primary","data-block-id":a,"data-block-class":l,drawerBackground:s,...u},c)=>{let p=Un.useRef(null),d=Un.useRef(null),{containerWidth:m,shouldContainOverlays:f}=useContext(co),{isDrawer:y,closeDrawer:g,dialogStyle:b,setDialogElement:x,isWithinModal:h}=useContext(ab),v=Q_(u,d),{focusProps:C,isFocusVisible:T}=oe(),{dialogProps:P,titleProps:k}=vc(u,p),S=useMemo(()=>({titleProps:k}),[k]);return y&&o?jsx(nb,{title:v,onCloseRequest:g,className:t,style:b,...u,"data-drawer":true,"data-block-id":a,"data-block-class":l,ref:se(c,d,w=>{x(w);}),background:s,children:e}):jsx(aP.Provider,{value:S,children:jsx("section",{...A(P,C),"data-block-id":a,"data-block-class":l,"data-focus-visible":T,"data-overlay-type":h?"modal":"popover",ref:se(p,c,w=>{x(w);}),style:{...b,...r,...assignInlineVars({[Z_]:m&&f?`${m}px`:"100vw"})},className:L(J_({size:y?"content":n,variant:i,isDrawer:y,isFocusVisible:T,overlayType:h?"modal":"popover"}),"BaselineUI-Dialog",t),children:e})})});Lr.displayName="Dialog";var tM=Un.forwardRef(({children:e,className:t,style:r},o)=>{let{titleProps:n}=useContext(aP);return Un.isValidElement(e)?Un.cloneElement(e,{...n,ref:o,className:L(e.props.className,t),style:{...e.props.style,...r}}):jsx("h3",{...n,ref:o,className:t,style:r,children:e})});tM.displayName="DialogTitle";var nM=({children:e,isOpen:t,popoverContentRef:r,portalContainer:o,style:n})=>{let[i,a]=useState(false),[l,s]=useState(null),u=useRef(null),{setIsPopoverSafelyClosed:c}=useContext(lb);useEffect(()=>{t?(a(true),u.current&&clearTimeout(u.current)):u.current=setTimeout(()=>{a(false);},300);},[t]),useEffect(()=>()=>{u.current&&clearTimeout(u.current);},[]);let p=r.current,d=useRef(null);return o?d.current=o:p&&(d.current=G(p).body),useEffect(()=>{p&&s(p.getBoundingClientRect());},[p]),useEffect(()=>{c(!i);},[i,c]),jsxs(Fragment,{children:[i?R2.createPortal(jsx("div",{"aria-hidden":true,style:{position:"absolute",left:n?.left,top:n?.top,width:l?.width,height:l?.height,zIndex:n?.zIndex?+n.zIndex-1:void 0},className:"BaselineUI-Popover-ClickPreventionLayer","data-testid":"event-leak-prevention-layer"}),d.current??G(p).body):null,e]})};var{color:_s}=themeVars,iM=({placement:e,arrowProps:t})=>jsxs(Fragment,{children:[jsxs("svg",{...t,className:L(t.className,nI({placement:e}),"BaselineUI-PopoverContent-Arrow"),style:{...t.style,position:"absolute"},width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-testid":"arrow",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.019 0h1.228l6.272 7.237L13.791 0h1.228v1h-.772L7.519 8.763.791 1H.019V0Z",fill:_s.border.medium}),jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:_s.background.primary.subtle,stroke:_s.background.primary.subtle})]}),jsxs("svg",{...t,className:L(t.className,iI({placement:e}),"BaselineUI-PopoverContent-Arrow-Focused"),width:"15",height:"11",viewBox:"0 0 15 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t.style,position:"absolute"},"data-testid":"arrow-focused",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.543371 2H0V0H1.45663L7.5 6.97312L13.5434 0H15V2H14.4566L7.5 10.0269L0.543371 2Z",fill:_s.border.interactive.enabled}),jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:_s.background.primary.subtle,stroke:_s.background.primary.subtle})]})]});function lM({triggerRef:e,updatePosition:t,isOpen:r,boundaryElement:o,isDisabled:n=false}){let i=useRef(null),a=useRef(t);a.current=t;let l=useCallback(()=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{a.current(),i.current=null;});},[]);useGranularEffect(()=>{if(!r||n||!e.current)return;let s=G(e.current),u=X(s.body),c=[];u.addEventListener("scroll",l,true),c.push([u,"scroll"]);let p=new Set;o&&p.add(o);let d=Sl(e.current),m=new Set([...p,...d]);for(let f of m)f!==s.body&&(f.addEventListener("scroll",l,true),c.push([f,"scroll"]));return ()=>{i.current&&(cancelAnimationFrame(i.current),i.current=null);for(let[f,y]of c)f.removeEventListener(y,l,true);}},[r,n,o],[l,e]);}var W4=["top","bottom","left","right"],uP=Un.forwardRef(({portalClassName:e,portalStyle:t,className:r,style:o,state:n,overlayProps:i,underlayClassName:a,children:l,includeArrow:s=false,offset:u=2,portalContainer:c,contentContainerClassName:p,contentContainerStyle:d,setPopoverStyle:m,"data-block-id":f,"data-block-class":y,disableAnimation:g,popoverContainerRef:b,shouldContainFocus:x,arrowClassName:h,arrowStyle:v,disableFocusManagement:C,boundaryElement:T,boundaryAxis:P,horizontalBoundaryBehavior:k,shouldRepositionOnScroll:S=false,elementHandle:w,...E},R)=>{let _=ce(b),D=pr(c),{container:F,shouldUseContainerAsBoundary:z}=useContext(co),N=useMemo(()=>T===void 0?z&&F?F:void 0:T,[T,z,F]),V=s?8:0,{underlayProps:M,popoverProps:O,placement:B,arrowProps:K,updatePosition:I}=ox({...E,offset:u+V,popoverRef:_,containerPadding:E.containerPadding||0,boundaryElement:N,boundaryAxis:P,horizontalBoundaryBehavior:k,shouldCloseOnScroll:!S},n);lM({triggerRef:E.triggerRef,updatePosition:I,isOpen:n.isOpen,boundaryElement:N,isDisabled:!S}),useImperativeHandle(w,()=>({updatePosition:I}),[I]),delete O.style?.position;let[H,U]=useState();te(()=>{let ke=E.triggerRef.current;ke&&U(ke.offsetWidth);},[E.triggerRef]);let q=useCallback(ke=>{U(ke.target.offsetWidth);},[]);Ay({ref:E.triggerRef,isDisabled:!n.isOpen,onResize:q});let W=(B==="center"?"bottom":B)||"bottom",J=useMemo(()=>({isOpen:n.isOpen}),[n.isOpen]),{transitionProps:me}=tb({placement:B||"bottom",isDisabled:g}),ne=useMemo(()=>({...O.style,...assignInlineVars({[cI]:`${H??0}px`}),...Sy(o,J)}),[O.style,H,o,J]);useEffect(()=>{m({left:O.style?.left,top:O.style?.top,zIndex:ne.zIndex});},[O.style?.left,O.style?.top,m,ne.zIndex]);let de=useMemo(()=>({...K,className:L(K.className,ed(h,J)),style:{...K.style,...Sy(v,J)}}),[K,h,v,J]);return jsxs(Mr,{portalContainer:D,style:t,className:e,ref:R,"data-block-id":f,"data-block-class":y,shouldContainFocus:x,disableFocusManagement:C,children:[!E.isNonModal&&jsx("div",{...M,className:L(uI,ed(a,J),"BaselineUI-Popover-Underlay")}),jsxs(motion.div,{...A(O,me),style:ne,ref:_,className:L(aI,ed(r,J),"BaselineUI-Popover-ContentContainer"),"data-placement":W4.find(ke=>B?.includes(ke))??"",children:[s?jsx(iM,{placement:W,arrowProps:de}):null,jsx(af,{onDismiss:n.close}),jsx("div",{...i,style:Sy(d,J),className:L(lI,ed(p,J),"BaselineUI-Popover-Content"),children:typeof l=="function"?l(n):l}),jsx(af,{onDismiss:n.close})]})]})});uP.displayName="PopoverContentCore";var Pt=Un.forwardRef(({state:e,overlayProps:t,portalContainer:r,...o},n)=>{let{state:i,overlayTriggerAria:{overlayProps:a},triggerRef:l}=useContext(od),[s,u]=useState({}),c=pr(r),p=e||i,d=o.triggerRef||l,m=t||a;ge(d);let f=Un.useRef(null);return jsx(nM,{isOpen:p?.isOpen??false,popoverContentRef:f,portalContainer:c,style:s,children:p?.isOpen?jsx(uP,{ref:n,...o,triggerRef:d,overlayProps:m,state:p,portalContainer:c,setPopoverStyle:u,popoverContainerRef:f}):null})});Pt.displayName="PopoverContent";var Ms=({icon:e,tooltip:t,label:r,isFocusable:o=true,...n})=>{let{tooltipProps:i}=cr({label:r,tooltip:t,offset:9});return jsx(tt,{...i,children:({triggerProps:a,triggerRef:l})=>jsx(Z,{display:"inline-flex",...a,ref:l,tabIndex:o?0:void 0,"data-testid":"icon-with-tooltip",children:jsx(e,{...n})})})};var mM=Un.forwardRef(({className:e,style:t,onChange:r,"data-block-id":o,icon:n,formatValue:i=m=>m,tooltip:a=true,iconTooltip:l=true,popoverContentProps:s,isDisabled:u,onTriggerPress:c,...p},d)=>{let m=ce(d),[f,y]=ye(p.value,p.defaultValue||0,r),[g,b]=Un.useState(false),{keyboardProps:x}=Le({onKeyDown:T=>{(T.key==="Enter"||T.key==="Escape")&&b(false);}}),{tooltipProps:h}=cr({label:p["aria-label"],tooltip:a}),v=i(f||0),C=h?.isDisabled||p["aria-label"]?`${p["aria-label"]}, ${v}`:v.toString();return jsxs(Z,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:L("BaselineUI-IconSlider",e),"data-block-id":o,style:t,ref:m,children:[n?jsx(Ms,{icon:n,label:p["aria-label"],tooltip:l,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary"})}):null,jsxs(Io,{type:"dialog",isOpen:g,onOpenChange:b,children:[jsx(_o,{children:jsx(tt,{...h,children:jsx(Me,{label:v,variant:"popover","aria-label":C,isDisabled:u,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"},onPressStart:c})})}),jsx(Pt,{placement:"bottom start",...s,children:jsx(Lr,{size:"content","aria-label":C,children:jsx(Et,{autoFocus:true,children:jsx(Z,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...x,children:jsx(Rs,{...p,onChange:T=>{y(T),r?.(T);},value:f})})})})})]})]})});mM.displayName="IconSlider";var fM=j({defaultClassName:"bpklwa7 z9nup88",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"bpklwac"]]}),yM=j({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),bM="bpklwad",gM=j({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),hM="bpklwa6",vM=j({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var CM=Un.forwardRef(({className:e,label:t,labelPosition:r="top",statusLabel:o,style:n,"data-block-id":i,"data-block-class":a,...l},s)=>{let u=Un.useRef(null),c=Er(l),{inputProps:p,isPressed:d,labelProps:m}=Fc({...l,children:t},c,u),{isFocusVisible:f,focusProps:y}=oe(),{hoverProps:g,isHovered:b}=ie({isDisabled:l.isDisabled}),x=he({"data-block-id":i,"data-block-class":a,"data-focused":f,"data-disabled":l.isDisabled,"data-focus-visible":f,"data-selected":c.isSelected,"data-readonly":l.isReadOnly,"data-hovered":b,"data-pressed":d}),h=jsx("div",{className:L(fM({isSelected:c.isSelected,isDisabled:!!l.isDisabled,isFocused:f,isReadOnly:!!l.isReadOnly}),"BaselineUI-Switch-Track"),children:jsx("div",{className:L(yM({isSelected:c.isSelected,isDisabled:l.isDisabled,isReadOnly:l.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxs("label",{...A(x,m,g),className:L(gM({labelPosition:r}),"BaselineUI-Switch",e),style:n,ref:s,children:[t?jsx("span",{className:L(bM,"BaselineUI-Switch-Label"),children:t}):null,jsx(Oe,{children:jsx("input",{...A(p,y),ref:u})}),o?jsxs("div",{className:vM({labelPosition:r}),children:[jsx("span",{className:L("BaselineUI-Switch-Status-Label",hM),children:c.isSelected?o.on:o.off}),h]}):h]})});CM.displayName="Switch";function As(e){let t=/^(data-.*)$/,r={};for(let o in e)t.test(o)||(r[o]=e[o]);return r}var PM="_19n40yy9 _1yep5z6ly _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6eu",SM=j({defaultClassName:"_19n40yy0 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6g1 _1yep5z6m1 _1yep5z6lz _1yep5z6hg _1yep5z6f5 _1yep5z6ln _1yep5z6e6",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3 _1yep5z6106"},variant:{primary:"_1yep5z6137",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_1yep5z6oc _1yep5z6od _1yep5z6oe"},isDisabled:{true:"_19n40yy8 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]});var e7={sm:SearchIcon$1,md:SearchIcon,lg:SearchIcon},mb=Un.forwardRef(({className:e,size:t="md",variant:r="primary","data-block-id":o,"data-block-class":n,style:i,isClearFocusable:a=false,...l},s)=>{let u=Un.useRef(null);[l,u]=Re(l,u,Qn);let c=Xx(l),{inputProps:p,clearButtonProps:d}=qx({...As(l),"aria-haspopup":false,"aria-autocomplete":"none",type:"search"},c,u),{focusProps:m,isFocusVisible:f,isFocused:y}=oe({within:true,isTextInput:true}),g=e7[t],b=t==="sm"?XIcon$1:XIcon$2,x=he({"data-block-id":o,"data-block-class":n,"data-focused":y,"data-disabled":l.isDisabled,"data-focus-visible":f}),h=re(l,{global:true});return delete h.id,jsxs("div",{...h,...x,className:L(SM({size:t,isFocused:y,variant:r,hasText:!!c.value,isDisabled:l.isDisabled}),"BaselineUI-SearchInput",e),style:i,ref:s,children:[jsx(g,{size:t==="sm"?20:24}),jsx("input",{...A(p,m),className:PM,ref:u}),c.value!==""&&jsx(pe,{icon:b,...d,size:t==="sm"?"xs":"sm",variant:"secondary",isExcludedFromRovingFocus:!a,excludeFromTabOrder:!a,...a?{onPressStart:v=>{d.onPressStart?.(v),d.onPress?.(v);}}:{}})]})});mb.displayName="SearchInput";var fb=j({defaultClassName:"_16vugd0b _1yep5z6ev _1yep5z6dy",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),yb=j({defaultClassName:"_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if z9nup88",variantClassNames:{labelPosition:{end:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vl _1yep5z6vm _1yep5z6vn",start:"_1yep5z615a _1yep5z615b _1yep5z615c _1yep5z616m _1yep5z616n _1yep5z616o"}},defaultVariants:{},compoundVariants:[]}),Os=j({defaultClassName:"_16vugd03 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6m1 _1yep5z6lz _1yep5z6h6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6f8 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6lp _1yep5z6la _1yep5z6lk",variantClassNames:{isIndeterminate:{true:"_1yep5z6181 _1yep5z612c"},isSelected:{true:"_16vugd05"},isFocusVisible:{true:"_16vugd06"},isHovered:{true:"_1yep5z613a"},isDisabled:{true:"_16vugd08 _1yep5z613e"},isReadOnly:{true:"_16vugd09 _1yep5z6118 _1yep5z6184 _1yep5z6182 _1yep5z613e"},hasError:{true:"_1yep5z612q _1yep5z6184 _1yep5z6182"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61of"],[{isSelected:true,isDisabled:false,isReadOnly:false,hasError:false},"_1yep5z61u4"],[{isSelected:true,isDisabled:true},"_1yep5z61op _1yep5z61nf"],[{isSelected:true,isDisabled:true,hasError:false},"_1yep5z61u4"],[{isHovered:true,isSelected:true,isReadOnly:false},"_1yep5z61ol _1yep5z61nf"],[{isHovered:true,isSelected:true,isReadOnly:false,hasError:false},"_1yep5z61u4"],[{isHovered:true,isSelected:false,isIndeterminate:true,isReadOnly:false},"_1yep5z61ol _1yep5z61nf"],[{isHovered:true,isSelected:false,isIndeterminate:true,isReadOnly:false,hasError:false},"_1yep5z61u4"]]});var bb=({renderOption:e,optionClassName:t,optionStyle:r,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:a,withSectionHeaderPadding:l}={})=>Object.values({renderOption:e,optionClassName:t,optionStyle:r,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:a,withSectionHeaderPadding:l});var EM=j({defaultClassName:"_1fjxa6ld _1yep5z6ls _1yep5z6lr _1yep5z6ic _1yep5z6la",variantClassNames:{isDropTarget:{true:"_1yep5z6140"},orientation:{vertical:"_1yep5z617q",horizontal:"_1yep5z617r"}},defaultVariants:{},compoundVariants:[]}),zM="_1fjxa6la _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu",wM=j({defaultClassName:"_1fjxa6lb _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),RM=j({defaultClassName:"_1fjxa6l3 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6la _1yep5z6ld _1yep5z6lq _1yep5z6lp _1yep5z6ln _1yep5z6lk",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x _1yep5z614g _1yep5z614h _1yep5z614i"},isFirstChild:{true:"_1fjxa6l5"},isLastChild:{true:"_1fjxa6l6"},isHovered:{true:"_1yep5z6125",false:"_1yep5z6124"},isDisabled:{true:"z9nup82 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),IM="_1fjxa6lh _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",_M="_1fjxa6l1",MM="_1fjxa6l2",LM="_1fjxa6l0";var NM=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),hb=Un.createContext({}),un=Un.forwardRef(({withSectionHeaderPadding:e=false,showSectionHeader:t=false,renderSectionHeader:r,optionStyle:o,optionClassName:n,sectionStyle:i,sectionClassName:a,renderOption:l,className:s,dragAndDropHooks:u,listBoxHandle:c,"data-block-id":p,"data-block-class":d,...m},f)=>{let y=ce(f),g=Un.useRef(false),b=Un.useRef(null),x=useContext(io),{isVirtualized:h,layoutDelegate:v}=useContext(ze);useEffect(()=>{x&&(l||o||n)&&console.warn("ListBox: If a state is provided via the ListStateContext, the `renderOption`, `optionStyle`, `optionClassName`, `sectionStyle`, `sectionClassName`, and `renderSectionHeader` props will be ignored.");},[x,l,o,n,i,a,r]),Ps({ref:y,isDisabled:!u});let C=useCallback(S=>y.current?.querySelector(`[data-key="${S}"][role="option"]`),[y]);useEffect(()=>{if(!h)return;let S=y.current,w=S?.ownerDocument,E=w?.defaultView;if(S==null||w==null||E==null)return;let R=()=>{let I=Jc(S);return I==null||I===w.body||I===w.documentElement},_=()=>S.querySelector('[role="option"][tabindex="0"]')??S.querySelector('[role="option"][data-focused="true"]'),D=()=>{let I=Jc(S);return I!=null&&Y(S,I)},F=I=>I.composedPath().some(H=>H instanceof E.Node&&Y(S,H)),z=()=>{g.current=false;},N=()=>{b.current!=null&&E.cancelAnimationFrame(b.current),b.current=E.requestAnimationFrame(()=>{if(b.current=null,D())return;if(!R()){z();return}let I=_();I?.focus({preventScroll:true});});},V=I=>{NM.has(I.key)&&(g.current=true);},M=I=>{!NM.has(I.key)||!R()||!g.current||N();},O=I=>{F(I)||D()||z();},B=I=>{F(I)||z();},K=new MutationObserver(I=>{I.some(({addedNodes:H,removedNodes:U})=>H.length>0||U.length>0)&&g.current&&N();});return S.addEventListener("keydown",V),w.addEventListener("keydown",M,true),w.addEventListener("focusin",O,true),w.addEventListener("pointerdown",B,true),K.observe(S,{childList:true,subtree:true}),()=>{S.removeEventListener("keydown",V),w.removeEventListener("keydown",M,true),w.removeEventListener("focusin",O,true),w.removeEventListener("pointerdown",B,true),K.disconnect(),b.current!=null&&E.cancelAnimationFrame(b.current),z(),b.current=null;}},[h,y]);let T=useCallback((S,w)=>{if(!y.current)return;let E=C(S);if(E)E.scrollIntoView({block:"nearest",inline:"nearest",...w});else if(h&&v){let R=v.getItemRect(S);if(!R)return;v.virtualizer.delegate.setVisibleRect(R);}},[C,h,v,y]);useImperativeHandle(c,()=>({scrollIntoView:T,setFocusedKey:S=>{let w=C(S);!y.current||!w||(w.focus(),T(S));}}),[T,C,y]);let P={renderOption:l,optionClassName:n,optionStyle:o,renderSectionHeader:r,sectionClassName:a,sectionStyle:i,showSectionHeader:t,withSectionHeaderPadding:e},k=m.items?.[0]?.id;return jsx(Hv,{...m,dependencies:[...m.dependencies??[],k,...bb(P)],"data-block-id":p,"data-block-class":d,dragAndDropHooks:u,ref:y,className:L(zM,"BaselineUI-ListBox",s),children:S=>jsx(mP,{item:S,isFirstCollectionItem:k===S.id,...P},S.id)})});un.displayName="UNSAFE_ListBox";var o7=Un.createContext({}),mP=e=>{let t=useContext(o7),{item:r,isFirstCollectionItem:o,id:n,value:i,...a}={...t,...e};return ge(r,"Item is required"),"children"in r?jsx(Dd,{section:r,componentName:"ListBox",isFirstCollectionItem:o,...a}):jsx(Ba,{item:r,componentName:"ListBox",...a})};var Dd=Un.forwardRef(({section:e,isFirstCollectionItem:t,showSectionHeader:r,renderSectionHeader:o,withSectionHeaderPadding:n,sectionStyle:i,sectionClassName:a,componentName:l="ListBox",selectionMode:s,selectedKeys:u,defaultSelectedKeys:c,onSelectionChange:p,disabledKeys:d,disallowEmptySelection:m,...f},y)=>{let{isVirtualized:g}=useContext(ze),b=o?.(e),x=l==="ListBox"?$v:gx,h=s==null?{}:{selectionMode:s,selectedKeys:u,defaultSelectedKeys:c,onSelectionChange:p,disabledKeys:d,disallowEmptySelection:m};return jsxs(x,{id:e.id,"aria-label":e.title,...h,className:L(`BaselineUI-${l}-Section`,_M,g&&!t&&MM,typeof a=="function"?a(e):a),style:typeof i=="function"?i(e):i,ref:y,children:[r?b?jsx(Hm,{className:`BaselineUI-${l}-SectionHeader`,children:b}):jsx(Hm,{className:`BaselineUI-${l}-SectionHeader`,children:jsx(Z,{className:L(IM,`BaselineUI-${l}-SectionHeaderDefault`),paddingX:"lg",typography:"label.md.semibold",color:"text.primary",paddingInlineStart:n?"5xl":"lg",paddingInlineEnd:"lg",children:e.title})}):null,jsx(wt,{items:e.children,children:v=>jsx(Ba,{componentName:l,item:v,...f},v.id)})]})});Dd.displayName="ListSection";var l7=({componentName:e})=>{let{direction:t}=Q();return jsx(Z,{"aria-hidden":true,display:"flex",alignItems:"center",color:"icon.secondary",className:`BaselineUI-${e}-SubmenuChevron`,style:t==="rtl"?{transform:"scaleX(-1)"}:void 0,children:jsx(ChevronRightFilledIcon,{size:8})})},kd=({item:e,isSelected:t,isHovered:r,isFocusVisible:o,isDisabled:n,selectionIcon:i="checkmark",selectionMode:a,componentName:l="ListBox",hasSubmenu:s=false})=>{let u=e.icon,c=a!=="none",p="keyboardShortcut"in e?e.keyboardShortcut:e.description;return jsxs(Z,{display:"flex",alignItems:"center",gap:"lg",className:L(RM({isHovered:r,isFocused:o,isDisabled:n}),`BaselineUI-${l}-OptionDefault`),children:[jsxs(Z,{display:"flex",alignItems:"center",flex:1,gap:"lg",children:[c&&i==="checkmark"?jsx("span",{"aria-hidden":true,style:{height:24,width:24},className:`BaselineUI-${l}-SelectionIndicator`,children:t?jsx(CheckmarkIcon,{size:24}):null}):null,c&&i==="checkbox"?jsx("span",{"aria-hidden":true,style:{height:16,width:16},children:jsx("div",{className:Os({isSelected:t,isIndeterminate:false,isFocusVisible:false,isDisabled:n,isReadOnly:false,hasError:false,isHovered:false}),children:t?jsx(CheckmarkIcon$3,{size:12}):null})}):null,u?jsx(u,{size:24}):null,jsx(ii,{slot:"label",elementType:"span",children:e.label})]}),s?jsx(l7,{componentName:l}):p?jsx(ii,{slot:"description",className:L(wM({isDisabled:n}),`BaselineUI-${l}-OptionDescription`),children:p}):null]})},Ba=Un.forwardRef(({item:e,optionStyle:t,optionClassName:r,renderOption:o,componentName:n="ListBox",...i},a)=>{let{onPress:l,onKeyDown:s}=useContext(hb);return jsx(n==="ListBox"?jv:hx,{...A(As(i),{onPress:c=>l?.(c,e.id),onKeyDown:s?c=>{s(c,e.id),c.continuePropagation();}:void 0}),id:e.id,value:e,className:c=>L(LM,`BaselineUI-${n}-Option`,typeof r=="function"?r(e,c):r),style:c=>typeof t=="function"?t(e,c):t,textValue:e.label,ref:a,children:c=>o?o(e,c):jsx(kd,{componentName:n,...c,item:e})})});Ba.displayName="ListOption";var yP="xyd2ss0 _1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6pi _1yep5z6pj _1yep5z6pk _1yep5z6qo _1yep5z6qp _1yep5z6qq _1yep5z6oc _1yep5z6od _1yep5z6oe _1yep5z6ru _1yep5z6rv _1yep5z6rw _1yep5z6u6 _1yep5z6u7 _1yep5z6u8 _1yep5z6vc _1yep5z6vd _1yep5z6ve _1yep5z6t0 _1yep5z6t1 _1yep5z6t2 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq _1yep5z617v _1yep5z617u _1yep5z6143 _1yep5z617y _1yep5z6124";var vb=e=>e!=null&&typeof e=="object"&&!(Symbol.iterator in e);function VM(e,t,r){let o=vb(t)||vb(r),n=t!=null&&!vb(t)||r!=null&&!vb(r);return e&&n?"Menu: an object `selectionMode` expects `selectedKeys`/`defaultSelectedKeys` to be records keyed by section id.":!e&&o?"Menu: a per-section `selectedKeys`/`defaultSelectedKeys` record requires the object form of `selectionMode`.":null}var xb=Un.forwardRef(({defaultOpen:e,onOpenChange:t,isOpen:r,isDisabled:o,contentClassName:n,placement:i="bottom start",isNonModal:a,shouldFlip:l,shouldUpdatePosition:s,boundaryElement:u,boundaryAxis:c,horizontalBoundaryBehavior:p,crossOffset:d,offset:m,triggerLabel:f,renderTrigger:y=({buttonProps:S,ref:w})=>jsx(Me,{...S,variant:"popover",ref:w,"data-testid":"menu-trigger"}),portalContainer:g,selectionMode:b,selectedKeys:x,defaultSelectedKeys:h,onSelectionChange:v,disabledKeys:C,disallowEmptySelection:T,...P},k)=>{let S=pr(g),w=b!=null&&typeof b=="object",E=Un.useMemo(()=>C==null?void 0:new Set(C),[C]),R=VM(w,x,h);if(R)throw new Error(R);return useEffect(()=>{!f&&!y&&console.warn("The `triggerLabel` prop is required when no `renderTrigger` or `children` is provided.");},[y,f]),jsxs(yx,{defaultOpen:e,onOpenChange:t,isOpen:r,children:[jsx($M,{isDisabled:o,renderTrigger:y,triggerLabel:f}),jsx(jM,{placement:i,isNonModal:a,shouldFlip:l,shouldUpdatePosition:s,boundaryElement:u,boundaryAxis:c,horizontalBoundaryBehavior:p,crossOffset:d,offset:m||2,className:"BaselineUI-Menu-Popover",portalContainer:S,children:jsx(mf,{...P,disabledKeys:E,...w?{}:{selectionMode:b,selectedKeys:x,defaultSelectedKeys:h,onSelectionChange:v,disallowEmptySelection:T},className:L(yP,n),ref:k,children:HM(P.items,S,{onAction:P.onAction,disabledKeys:E,contentClassName:n,selection:w?{modes:b,selectedKeys:x,defaultSelectedKeys:h,onSelectionChange:v,disallowEmptySelection:T}:void 0})})})]})});function HM(e,t,r){return e.map((o,n)=>{if("children"in o){let i=o,a=r.selection?.modes[i.id],l=r.selection;return jsx(Dd,{section:i,componentName:"Menu",isFirstCollectionItem:n===0,showSectionHeader:!!i.title,...a?{selectionMode:a,selectedKeys:l?.selectedKeys?.[i.id],defaultSelectedKeys:l?.defaultSelectedKeys?.[i.id],disabledKeys:r.disabledKeys,disallowEmptySelection:l?.disallowEmptySelection,onSelectionChange:s=>{l?.onSelectionChange?.(s,{sectionId:i.id});}}:{}},i.id)}return o.items?jsxs(bx,{children:[jsx(Ba,{item:o,componentName:"Menu"}),jsx(jM,{className:"BaselineUI-Menu-SubmenuPopover",portalContainer:t,children:jsx(mf,{className:L(yP,r.contentClassName),onAction:r.onAction,disabledKeys:r.disabledKeys,children:HM(o.items,t,r)})})]},o.id):jsx(Ba,{item:o,componentName:"Menu"},o.id)})}var $M=Un.forwardRef(({renderTrigger:e,triggerLabel:t,isDisabled:r,...o},n)=>{let i=useContext(Ca);return e?.({buttonProps:{...o,isDisabled:r,label:typeof t=="function"?t(i?.isOpen||false):t,isOpen:i?.isOpen||false,className:"BaselineUI-Menu-Trigger"},ref:n})});$M.displayName="MyTrigger";var jM=({children:e,...t})=>{let r=useContext(Ca),[o]=Re(t,void 0,Vl);return r?.isOpen?jsx(Pt,{...o,state:r,children:e}):null};xb.displayName="Menu";var Tb=j({defaultClassName:"_13f0naj0",variantClassNames:{variant:{default:"_13f0naj1",inline:"_13f0naj2"},isHovered:{true:"_13f0naj3"},isFocusVisible:{true:"_13f0naj4"},isDisabled:{true:"_13f0naj5"},size:{sm:"_13f0naj6",md:"_13f0naj7",lg:"_13f0naj8"},type:{body:"_13f0naj9",label:"_13f0naja"},isActive:{true:"_13f0najb"}},defaultVariants:{},compoundVariants:[[{isActive:true,isDisabled:false},"_13f0najc"],[{type:"body",size:"sm"},"_13f0najd"],[{type:"body",size:"md"},"_13f0naje"],[{type:"body",size:"lg"},"_13f0najf"],[{type:"label",size:"sm"},"_13f0najg"],[{type:"label",size:"md"},"_13f0najh"],[{type:"label",size:"lg"},"_13f0naji"]]});var WM=Un.forwardRef(({className:e,style:t,children:r,variant:o="default",size:n="md",elementType:i="a",type:a="body","data-block-id":l,"data-block-class":s,title:u,role:c,...p},d)=>{let m=Un.useRef(null),{linkProps:f,isPressed:y}=kh({...p,elementType:p.onPress?"span":i},m),{isFocusVisible:g,isFocused:b,focusProps:x}=oe(),{hoverProps:h,isHovered:v}=ie({isDisabled:p.isDisabled}),C=i,T=he({"data-block-id":l,"data-block-class":s,"data-disabled":p.isDisabled,"data-focused":b,"data-pressed":y,"data-focus-visible":g,"data-hovered":v,role:c,title:u});return jsx(C,{...A(f,x,h,T),className:L(Tb({variant:o,isFocusVisible:g,isHovered:v,isDisabled:p.isDisabled,size:n,isActive:y,type:a}),"BaselineUI-Link",e),ref:se(m,d),style:t,children:r})});WM.displayName="Link";function zi({isReadOnly:e,validationState:t}){return e?ReadOnlyIcon:t==="error"?ErrorCircleFilledIcon:t==="warning"?WarningFilledIcon$1:null}var qM="_1hgzo20",XM=j({defaultClassName:"_1hgzo22 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6dy",variantClassNames:{isPlaceholder:{true:"_1hgzo23"},isDisabled:{true:"_1hgzo24"}},defaultVariants:{},compoundVariants:[]}),YM="_1hgzo21 _1yep5z69c _1yep5z69d _1yep5z69e";var m7="Choose file",f7="No file chosen";function y7(e,t){return e.length===0?t:e.length===1?e[0].name:`${e.length} files`}var JM=Un.forwardRef(({className:e,style:t,label:r,buttonLabel:o=m7,placeholder:n=f7,description:i,errorMessage:a,warningMessage:l,validationState:s,labelPosition:u="top",isDisabled:c,autoFocus:p,buttonStyle:d,buttonClassName:m,onValueChange:f,onSelect:y,acceptedFileTypes:g,allowsMultiple:b,defaultCamera:x,acceptDirectory:h,"aria-label":v,"aria-describedby":C,...T},P)=>{let[k,S]=Un.useState([]),w=ee(),E=ee(),R=ee(),_=ee(),D=ee(),F=ee(),{isFocusVisible:z,focusProps:N}=oe({within:true}),V=a?"error":s,M=V==="warning"&&!!l,O=a?_:M?D:i?R:void 0,B=mr({description:a||M?void 0:i,errorMessage:a,warningMessage:M?l:void 0,descriptionProps:{id:R},errorMessageProps:{id:_},warningMessageProps:{id:D},labelPosition:u,isDisabled:c}),K=ne=>ne.filter(Boolean).join(" ")||void 0,I=v?void 0:K([r?w:void 0,E]),H=K([C,O,F]),U=ne=>{let de=ne?[...ne]:[];S(de),f?.(de),y?.(ne);},q=y7(k,n),W=k.length===0,J=zi({validationState:V}),me=he({"data-disabled":c,"data-validation-state":V});return jsx(Jl,{acceptedFileTypes:g,allowsMultiple:b,defaultCamera:x,acceptDirectory:h,onSelect:U,children:jsxs("div",{ref:P,...T,...me,className:L("BaselineUI-FileInput",an({labelPosition:u}),e),style:t,children:[r||u==="start"&&B?jsxs("div",{className:nn({labelPosition:u,hasMessage:!!B}),children:[jsx(Z,{id:w,elementType:"span",className:Di,children:r}),u==="start"&&B]}):null,jsxs("div",{...N,className:L(ki({validationState:V,isDisabled:c,variant:"primary",isFocused:z,isHovered:false,isReadOnly:false}),YM),children:[jsx(Me,{id:E,label:o,variant:"primary",size:"sm",autoFocus:p,isDisabled:c,"aria-label":v,"aria-labelledby":I,"aria-describedby":H,style:d,className:L(qM,m)}),jsx("span",{id:F,className:XM({isPlaceholder:W,isDisabled:c}),children:q}),J?jsx(J,{className:Si({validationState:V}),size:16}):null]}),u==="top"&&B]})})});JM.displayName="FileInput";var QM="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln",eL="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl",tL=j({defaultClassName:"_12vfhl44",variantClassNames:{variant:{success:"_1yep5z611s",error:"_1yep5z611o",active:"_1yep5z6120"}},defaultVariants:{},compoundVariants:[]}),rL="_1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ev _1yep5z6dy",oL="_12vfhl43 _1yep5z6g5 _1yep5z6ln",nL="_12vfhl42 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",iL="_1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k",aL=j({defaultClassName:"_12vfhl40 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dy _1yep5z6eu",variantClassNames:{hasLabel:{false:"_1yep5z6pi _1yep5z6pj _1yep5z6pk"}},defaultVariants:{},compoundVariants:[]});var lL=Un.forwardRef(({className:e,style:t,variant:r="active",showValue:o,description:n,errorMessage:i,"data-block-id":a,"data-block-class":l,...s},u)=>{let c=ee(),{labelProps:p,progressBarProps:d}=Vu({...s,"aria-describedby":n?c:s["aria-describedby"]}),{minValue:m=0,maxValue:f=100,value:y=0,label:g}=s,b=(y-m)/(f-m),x=`${Math.round(b*100)}%`,h=jsx("output",{className:aL({hasLabel:!!g}),children:d["aria-valuetext"]}),v=r==="error"?i:n;return jsxs("div",{...d,style:t,className:L(QM,"BaselineUI-ProgressBar",e),"data-block-id":a,"data-block-class":l,ref:u,children:[g?jsxs("div",{className:eL,children:[jsx("label",{...p,className:rL,children:g}),o?h:null]}):null,jsxs("div",{className:iL,children:[jsxs("div",{className:nL,children:[jsx("div",{className:oL,children:jsx("div",{style:{width:x},className:tL({variant:r})})}),!g&&o?h:null]}),v?jsx("div",{className:zs({hasError:r==="error"}),id:c,children:v}):null]})]})});lL.displayName="ProgressBar";function sL({className:e}){return jsx("span",{className:e,"aria-hidden":"true","data-testid":"textinput-resize-grip",children:jsxs("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M4.72031 3.71962C5.01321 3.42683 5.488 3.42676 5.78086 3.71962C6.07352 4.01249 6.07358 4.48733 5.78086 4.78016L4.78086 5.78016C4.48803 6.07299 4.01322 6.07286 3.72031 5.78016C3.42742 5.48727 3.42742 5.01251 3.72031 4.71962L4.72031 3.71962Z",fill:"currentColor"}),jsx("path",{d:"M4.22031 0.219616C4.51321 -0.0731691 4.988 -0.0732413 5.28086 0.219616C5.57352 0.512488 5.57358 0.987325 5.28086 1.28016L1.27988 5.28016C0.986955 5.57268 0.512099 5.57293 0.219333 5.28016C-0.073139 4.98737 -0.0730827 4.51244 0.219333 4.21962L4.22031 0.219616Z",fill:"currentColor"})]})})}var Ha=Un.forwardRef(({labelPosition:e="top",className:t,style:r,labelProps:o,isDisabled:n=false,isReadOnly:i=false,label:a,message:l,"data-block-id":s,validationState:u="valid",isFocused:c=false,variant:p="primary",children:d,fieldProps:m,wrapperRef:f,wrapperClassName:y,isInvalid:g,isMultiLine:b=false},x)=>{let{hoverProps:h,isHovered:v}=ie({isDisabled:n}),C=zi({isReadOnly:i,validationState:u});return jsxs("div",{className:L(an({labelPosition:e}),t),"data-block-id":s,style:r,ref:x,children:[a||e==="start"&&l?jsxs("div",{className:nn({labelPosition:e,hasMessage:!!l}),children:[jsx(Z,{...o,elementType:"label",color:"text.secondary",typography:"label.md.medium",children:a}),e==="start"&&l]}):null,jsxs("div",{className:L({[ks]:n}),children:[jsxs("div",{...A(m,h),className:L(ki({validationState:g?"error":u,isHovered:v,isFocused:c,variant:p,isReadOnly:i,isDisabled:n,isMultiLine:b}),y),ref:f,children:[d,C?jsx(C,{className:Si({validationState:u,isReadOnly:i,isMultiLine:b}),size:16}):null,b&&!i&&!n?jsx(sL,{className:P_}):null]}),e==="top"&&l]})]})});Ha.displayName="SharedInput";var wi=Un.forwardRef(({className:e,validationState:t,variant:r="primary",labelPosition:o="top",inputStyle:n,inputClassName:i,isMultiLine:a=false,rows:l,"data-block-id":s,"data-block-class":u,...c},p)=>{let d=Un.useRef(null),{inputProps:m,labelProps:f,descriptionProps:y,errorMessageProps:g,validationErrors:b}=Hr({...c,inputElementType:a?"textarea":"input",validationState:t?t==="error"?"invalid":"valid":void 0},d),x=c.errorMessage||b.join(" "),h=mr({...c,errorMessage:x,descriptionProps:y,errorMessageProps:g,labelPosition:o});x&&(t="error");let{isFocused:v,focusProps:C,isFocusVisible:T}=oe(),P=he({"data-readonly":c.isReadOnly,"data-disabled":c.isDisabled,"data-validation-state":t,"data-focused":v,"data-focus-visible":T}),k=L(ob({isDisabled:c.isDisabled,labelPosition:o,isMultiLine:a}),"BaselineUI-TextInput-Input",i);return jsx(Ha,{variant:r,labelProps:f,isFocused:v,message:h,ref:p,labelPosition:o,className:L("BaselineUI-TextInput",e),validationState:t,isMultiLine:a,"data-block-id":s,"data-block-class":u,...c,children:a?jsx("textarea",{...A(m,C,P),className:k,style:n,rows:l,ref:d}):jsx("input",{...A(m,C,P),className:k,style:n,ref:d})})});wi.displayName="TextInput";var Ns=({value:e,...t})=>{let r=To(t);return jsx(Fragment,{children:r.format(e)})};Ns.displayName="NumberFormat";var cL="_1yep5z6iv _1yep5z6iw _1yep5z6ix",dL=j({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup82"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true,isReadOnly:false},"_9b1tml7"],[{isSelected:true,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml8"],[{isSelected:false,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml9"],[{isSelected:true,isDisabled:true},"_9b1tmla"],[{isSelected:true,isReadOnly:true},"_9b1tmlb"]]}),pL=j({defaultClassName:"_9b1tmlf _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6eu _1yep5z6la _1yep5z6e9",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61n6"],[{isSelected:true,isDisabled:true},"_1yep5z61n6"],[{isSelected:false,isDisabled:true},"_1yep5z61n4"]]}),mL=j({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var bL=Un.forwardRef(({className:e,count:t,style:r,size:o="md",icon:n,"data-block-id":i,"data-block-class":a,...l},s)=>{let u={isRequired:false},c=n||(o==="md"?CheckmarkIcon$1:CheckmarkIcon$2);!l["aria-label"]&&!l["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let p=Un.useRef(null),d=Er({...l,...u}),{inputProps:m,isPressed:f,isDisabled:y,isReadOnly:g,isSelected:b}=Fc({...l,...u},d,p),{focusProps:x,isFocused:h,isFocusVisible:v}=oe(),{hoverProps:C,isHovered:T}=ie({}),P=he({"data-block-id":i,"data-block-class":a,"data-focused":h,"data-focus-visible":v,"data-disabled":y,"data-hovered":T,"data-pressed":f,"data-selected":b});return jsxs("label",{ref:s,style:r,className:L(cL,"BaselineUI-Reaction",e),...P,children:[jsx(Oe,{children:jsx("input",{...m,...x,ref:p})}),jsxs("div",{...C,className:dL({isSelected:b,isFocusVisible:v,isHovered:T,isReadOnly:g,isDisabled:y}),children:[jsx("div",{className:mL({isDisabled:y,isReadOnly:g}),children:jsx(c,{size:o==="md"?20:16})}),jsx("div",{className:pL({isSelected:d.isSelected,isDisabled:y,isReadOnly:g,size:o}),children:jsx(Ns,{value:t})})]})]})});bL.displayName="Reaction";var gL="_1azy5686",hL="_1azy5685",vL="var(--_1azy5680)",xL="_1azy5688",TL="_1azy5689",CL="_1azy5681 z9nup81",PL="_1azy5682";var SL="_1azy5687";var w7={sm:16,md:20},R7={sm:[CheckmarkCircleFilledIcon,ErrorAltCircleFilledIcon$1],md:[CheckCircleFilledIcon,ErrorAltCircleFilledIcon]},dn=Un.forwardRef(({className:e,style:t,size:r="md",variant:o="active","data-block-id":n,"data-block-class":i,...a},l)=>{let{labelProps:s,progressBarProps:u}=Vu({...a,isIndeterminate:true}),c=w7[r],p=c/2-2,d=2*p*Math.PI,m=R7[r][o==="success"?0:1];return jsxs("div",{className:L(CL,"BaselineUI-ProgressSpinner",e),ref:l,style:{...assignInlineVars({[vL]:`${d}px`}),...t},"data-block-id":n,"data-block-class":i,children:[jsxs("div",{...u,className:PL,children:[(o==="active"||o==="inactive")&&jsxs("svg",{height:c,width:c,viewBox:`0 0 ${c} ${c}`,children:[jsx("circle",{role:"presentation",className:gL,cx:c/2,cy:c/2,r:p,fill:"none",stroke:"none"}),o==="active"&&jsx("circle",{role:"presentation",className:hL,cx:c/2,cy:c/2,r:p,fill:"none",stroke:"none"})]}),o==="success"&&jsx(m,{className:SL,size:c}),o==="error"&&jsx(m,{className:xL,size:c})]}),a.label?jsx("span",{...s,className:TL,children:a.label}):null]})});dn.displayName="ProgressSpinner";var Sb=j({defaultClassName:"_5uw3kp0 oom8bs0 z9nup81",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{sm:"_5uw3kp5",md:"_5uw3kp6",lg:"_5uw3kp7"},variant:{primary:"_5uw3kp8",toolbar:"_5uw3kp9"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true},"_5uw3kpa"],[{isSelected:true,isDisabled:true},"_5uw3kpb"],[{variant:"primary",size:"lg"},"_5uw3kpc"]]}),DL=j({defaultClassName:"_5uw3kpd _1yep5z6f5",variantClassNames:{isDisabled:{true:"_1yep5z611a"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]});var _7={sm:16,md:20,lg:24},Db=Un.forwardRef(({className:e,style:t,iconStart:r,size:o="md",elementType:n="button",variant:i="toolbar",...a},l)=>{let s=Er(a),{buttonProps:u,isPressed:c,ref:p,isFocusVisible:d,isFocused:m,isHovered:f,uiStateOptions:y}=My(a,s),g=he({"data-block-id":a["data-block-id"],"data-block-class":a["data-block-class"],"data-focused":m,"data-focus-visible":d,"data-disabled":a.isDisabled,"data-hovered":f,"data-pressed":c,"data-selected":s.isSelected});return jsxs(n,{...A(u,g),className:L(Sb({isHovered:f,isFocusVisible:d,isSelected:s.isSelected,size:o,isDisabled:a.isDisabled,variant:i}),"BaselineUI-ToggleButton",typeof e=="function"?e(y):e),style:typeof t=="function"?t(y):t,ref:se(p,l),children:[r?jsx(r,{size:_7[o],className:DL({isDisabled:a.isDisabled,isSelected:s.isSelected})}):null,a.label]})});Db.displayName="ToggleButton";var kL=j({defaultClassName:"_1lo17ci9 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6dy _1yep5z6eu",variantClassNames:{size:{xs:"_1lo17cia",sm:"_1lo17cib"},isSelected:{true:"_1yep5z612i _1yep5z6112"},isSelectionStart:{true:"_1yep5z6112"},isSelectionEnd:{true:"_1yep5z6112"},isInRange:{true:"_1lo17cif"},isToday:{true:"_1lo17cig"},isOutsideMonth:{true:"_1yep5z6111"},isDisabled:{true:"_1lo17cii _1yep5z6111"},isReadOnly:{true:"_1lo17cij"},isHovered:{true:"_1yep5z6126"},isFocusVisible:{true:"_1lo17cil"},isUnavailable:{true:"_1lo17cim"}},defaultVariants:{},compoundVariants:[[{isToday:true,isSelected:true},"_1yep5z61n5"],[{isToday:true,isSelectionStart:true},"_1yep5z61n5"],[{isToday:true,isSelectionEnd:true},"_1yep5z61n5"],[{isHovered:true,isReadOnly:true},"_1lo17cin"],[{isHovered:true,isUnavailable:true},"_1lo17cio"],[{isSelected:true,isHovered:true,isReadOnly:false},"_1yep5z61om"],[{isSelectionStart:true,isHovered:true,isReadOnly:false},"_1yep5z61om"],[{isSelectionEnd:true,isHovered:true,isReadOnly:false},"_1yep5z61om"],[{isInRange:true,isHovered:true,isReadOnly:false},"_1lo17cip"],[{isInRange:true,isFocusVisible:true},"_1lo17ciq"]]}),kb="_1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6",Eb=j({defaultClassName:"_1lo17ci0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6m1 _1yep5z6lz _1yep5z6h3 _1yep5z6g1",variantClassNames:{size:{xs:"_1lo17ci1",sm:"_1lo17ci2"}},defaultVariants:{},compoundVariants:[]}),zb="_1lo17ci4",wb="_1lo17ci5",Rb=j({defaultClassName:"_1lo17ci6 _1yep5z6eu _1yep5z6dy",variantClassNames:{size:{xs:"_1lo17ci7",sm:"_1lo17ci8"}},defaultVariants:{},compoundVariants:[]}),EL="_1lo17ci3 _1yep5z6ev _1yep5z6e1";function Ib({date:e,size:t,isRange:r}){let o=useContext(Go),n=useContext(Uo),a=(o??n)?.isReadOnly??false;return jsx(rv,{date:e,className:({isSelected:l,isSelectionStart:s,isSelectionEnd:u,isOutsideMonth:c,isDisabled:p,isFocusVisible:d,isHovered:m,isUnavailable:f,isToday:y})=>kL({size:t,isSelected:r?void 0:l,isSelectionStart:r?s:void 0,isSelectionEnd:r?u:void 0,isInRange:r?l&&!s&&!u:void 0,isOutsideMonth:c,isDisabled:p,isFocusVisible:d,isHovered:m,isUnavailable:f,isToday:y,isReadOnly:a})})}var Ks=({children:e,listBoxProps:t,...r})=>jsx(Ln.Provider,{value:useMemo(()=>({items:r.items}),[r.items]),children:jsx(to,{content:jsx(wt,{items:r.items,dependencies:[r.items?.[0]?.id,...bb(t)],children:o=>createElement(mP,{...t,key:o.id,item:o,isFirstCollectionItem:r.items?.[0]?.id===o.id})}),children:e})});var F7=e=>Na({getItems:(t,r)=>r.map(o=>({"text/plain":o.label})),renderDropIndicator(t){return jsx(Po,{target:t,className:({isDropTarget:r})=>L(EM({isDropTarget:r}),"BaselineUI-DropIndicator")})},...e});var PP="_1mdhlqvd _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6kd _1yep5z6ke _1yep5z6kf",wL=j({defaultClassName:"_1mdhlqv9",variantClassNames:{isOpen:{true:"_1mdhlqva"}},defaultVariants:{},compoundVariants:[]}),RL="_1mdhlqvi",IL=j({defaultClassName:"_1mdhlqve _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",variantClassNames:{isVirtualized:{true:"_1mdhlqvf"}},defaultVariants:{},compoundVariants:[]}),Vs="_1mdhlqvc cjv3et1 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1 _1yep5z6137 cjv3et5",_L="_1mdhlqvg",ML="_1mdhlqvh _1yep5z64x _1yep5z64y _1yep5z64z _1yep5z679 _1yep5z67a _1yep5z67b _1yep5z68f _1yep5z68g _1yep5z68h _1yep5z663 _1yep5z664 _1yep5z665",LL=j({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isOpen:{true:"_1mdhlqv2"},isDisabled:{true:"z9nup82 _1yep5z6ey"},isHovered:{true:"_1mdhlqv4"},variant:{primary:"_1mdhlqv5",ghost:"_1mdhlqv6"},isReadOnly:{true:"_1mdhlqv7"},areTagsVisible:{true:"_1mdhlqv8 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z6k4 _1yep5z6k5 _1yep5z6k6"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:true,isReadOnly:false,isDisabled:false},"_1yep5z6h5"],[{isHovered:true,isReadOnly:false,isDisabled:false},"_1yep5z6la"]]}),AL="_1yep5z66x _1yep5z66y _1yep5z66z",SP="_1mdhlqvb _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k";var Rd=j({defaultClassName:"vi3slum",variantClassNames:{variant:{neutral:"_1yep5z6118",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z611b"},isDisabled:{true:"_1yep5z61nd"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]}),_b=j({defaultClassName:"vi3slu0 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ax _1yep5z6ay _1yep5z6az _1yep5z6bl _1yep5z6bm _1yep5z6bn _1yep5z6c9 _1yep5z6ca _1yep5z6cb _1yep5z6cx _1yep5z6cy _1yep5z6cz _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6la _1yep5z6lq _1yep5z6ld",variantClassNames:{isFocusVisible:{true:"vi3slu1"},variant:{neutral:"_1yep5z6128",red:"_1yep5z611n",green:"_1yep5z611r",blue:"_1yep5z611z","high-contrast":"_1yep5z612c"},isDisabled:{true:"vi3slu7 _1yep5z6127"},allowsRemoving:{true:"vi3slu8"},isSelected:{true:"_1yep5z612i"},allowsSelection:{true:"vi3slua"},isHovered:{true:"vi3slub"},size:{md:"vi3sluc",sm:"vi3slud"}},defaultVariants:{},compoundVariants:[[{allowsSelection:true,isHovered:true,variant:"neutral"},"_1yep5z61oa"],[{allowsSelection:true,isHovered:true,variant:"red"},"_1yep5z61np"],[{allowsSelection:true,isHovered:true,variant:"blue"},"_1yep5z61o1"],[{allowsSelection:true,isHovered:true,variant:"green"},"_1yep5z61nt"],[{allowsSelection:true,isHovered:true,variant:"high-contrast"},"_1yep5z61oe"],[{allowsSelection:true,isSelected:true,isHovered:true},"_1yep5z61om"],[{variant:"high-contrast",isDisabled:true},"_1yep5z61oa"],[{allowsRemoving:true,size:"md"},"_1yep5z619c _1yep5z619d _1yep5z619e"],[{allowsRemoving:true,size:"sm"},"_1yep5z61af _1yep5z61ag _1yep5z61ah"]]}),OL="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69f _1yep5z69g _1yep5z69h",NL=j({defaultClassName:"vi3sluu _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lp _1yep5z6ly _1yep5z6f5 z9nup8a",variantClassNames:{variant:{neutral:"vi3sluv",red:"vi3sluw",green:"vi3slux",blue:"vi3sluy","high-contrast":"vi3sluz"},isHovered:{true:"vi3slu10"}},defaultVariants:{},compoundVariants:[[{isHovered:true,variant:"neutral"},"vi3slu11"],[{isHovered:true,variant:"red"},"vi3slu12"],[{isHovered:true,variant:"blue"},"vi3slu13"],[{isHovered:true,variant:"green"},"vi3slu14"],[{isHovered:true,variant:"high-contrast"},"vi3slu15"]]}),Mb=j({defaultClassName:"vi3slue",variantClassNames:{variant:{neutral:"_1yep5z610x",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z6112"},isDisabled:{true:"_1yep5z61n4"},isSelected:{true:"_1yep5z6113"}},defaultVariants:{},compoundVariants:[]});var Lb=Un.createContext(null),Ab=Un.createContext(null);var Ob=Un.forwardRef((e,t)=>{let r=Un.useContext(Lb),o=Un.useContext(Ab);return r&&o?jsx(VL,{...e,ref:t,groupCtx:r,itemCtx:o}):jsx(KL,{...e,ref:t})});Ob.displayName="Tag";var KL=Un.forwardRef(({children:e,variant:t="neutral",size:r="md",icon:o,isDisabled:n=false,isSelected:i=false,onRemove:a,className:l,style:s,"data-block-id":u,"data-block-class":c},p)=>{let{focusProps:d,isFocusVisible:m}=oe({within:true}),{hoverProps:f,isHovered:y}=ie({isDisabled:n}),{hoverProps:g,isHovered:b}=ie({isDisabled:n}),x=!!a;return jsx(DP,{ref:p,outerProps:A(d,g),variant:t,size:r,Icon:o,isDisabled:n,isSelected:i,isFocusVisible:m,isTagHovered:b,allowsRemoving:x,allowsSelection:false,removeButtonProps:f,defaultRemoveProps:{"aria-label":"Remove",disabled:n,onClick:a},isRemoveHovered:y,className:l,style:s,"data-block-id":u,"data-block-class":c,children:e})});KL.displayName="TagStandalone";var VL=Un.forwardRef(({groupCtx:e,itemCtx:t,variant:r,...o},n)=>{let{state:i,variant:a,size:l}=e,{item:s}=t,u=Un.useRef(null),{rowProps:c,gridCellProps:p,removeButtonProps:d,allowsRemoving:m,isDisabled:f,isSelected:y,allowsSelection:g}=$T({item:s},i,u),b=Un.useRef(null),{buttonProps:x}=dt({...d,excludeFromTabOrder:true},b),{focusProps:h,isFocusVisible:v}=oe({within:true}),{hoverProps:C,isHovered:T}=ie({isDisabled:f}),{hoverProps:P,isHovered:k}=ie({isDisabled:f}),S=s.value?.icon,w=s.value?.data?.variant??r??a,E=o.size??l??"md";return jsx(DP,{ref:R=>{u.current=R,typeof n=="function"?n(R):n&&(n.current=R);},outerProps:A(c,h,P),gridCellProps:p,variant:w,size:E,Icon:S,isDisabled:f,isSelected:y,isFocusVisible:v,isTagHovered:k,allowsRemoving:m,allowsSelection:g,removeButtonProps:A(x,C),isRemoveHovered:T,children:s.rendered})});VL.displayName="TagInGroup";var DP=Un.forwardRef(({children:e,outerProps:t,gridCellProps:r,variant:o="neutral",size:n,Icon:i,isDisabled:a,isSelected:l,isFocusVisible:s,isTagHovered:u,allowsRemoving:c,allowsSelection:p,removeButtonProps:d,defaultRemoveProps:m,isRemoveHovered:f,className:y,style:g,"data-block-id":b,"data-block-class":x},h)=>{let v=n==="md"?XIcon$1:XIcon$3,C=n==="md"?CheckmarkIcon$2:CheckmarkIcon$3;return jsx("div",{...t,ref:h,"aria-disabled":a||void 0,className:L(_b({isFocusVisible:s,variant:o,isDisabled:a,allowsRemoving:c,isSelected:l,allowsSelection:p,isHovered:u,size:n}),Mb({variant:o,isDisabled:a,isSelected:l}),"BaselineUI-Tag",y),style:g,"data-block-id":b,"data-block-class":x,children:jsxs("div",{...r,className:OL,children:[l?jsx(C,{size:n==="md"?16:12,className:L(Rd({variant:o,isDisabled:a,isSelected:l}),"BaselineUI-Tag-Icon")}):null,!l&&i?jsx(i,{size:n==="md"?16:12,className:L(Rd({variant:o,isDisabled:a,isSelected:l}),"BaselineUI-Tag-Icon")}):null,jsx(Z,{paddingY:n==="md"?"sm":"none",typography:n==="sm"?"label.sm.medium":"label.md.medium",children:e}),c?jsx("button",{type:"button",...A(d,m??{}),className:NL({variant:o,isHovered:f}),children:jsx(v,{size:n==="md"?12:8})}):null]})})});DP.displayName="TagView";var BL="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z69i _1yep5z69j _1yep5z69k";var G7=({item:e})=>{let t=useMemo(()=>({item:e}),[e]);return jsx(Ab.Provider,{value:t,children:jsx(Ob,{children:e.rendered})})},Nb=Un.forwardRef(({className:e,style:t,"data-block-id":r,"data-block-class":o,items:n,size:i="md",isDisabled:a=false,...l},s)=>{let u=useMemo(()=>n.map(y=>({...y,data:{variant:y.variant}})),[n]),c=Ci(),p=Un.useRef(null),d=Mt({...l,items:u,children:c,disabledKeys:a?n.map(y=>y.id):l.disabledKeys}),{gridProps:m}=HT(l,d,p),f=useMemo(()=>({state:d,variant:l.variant,size:i}),[d,l.variant,i]);return jsx("div",{...m,className:L(BL,"BaselineUI-TagGroup",e),style:t,"data-block-id":r,"data-block-class":o,ref:se(s,p),children:jsx(Lb.Provider,{value:f,children:[...d.collection].map(y=>jsx(G7,{item:y},y.key))})})});Nb.displayName="TagGroup";var _d=Un.forwardRef(({variant:e,isOpen:t,validationState:r="valid",valueProps:o,className:n,style:i,value:a,"data-block-id":l,"data-block-class":s,fallbackValue:u,selectionMode:c="single",onRemove:p,maxCount:d=2,...m},f)=>{let{formatMessage:y}=fe(),g=a?.[0]??null,b=g?.label??u,x=g?.icon??null,h=Un.useRef(null),v=!!(c==="multiple"&&a&&a?.length>0),{buttonProps:C,isPressed:T}=dt({...m,elementType:"div",isDisabled:m.isDisabled||m.isReadOnly},h),{hoverProps:P,isHovered:k}=ie({isDisabled:m.isDisabled}),{focusProps:S,isFocused:w,isFocusVisible:E}=oe(),R=zi({isReadOnly:m.isReadOnly,validationState:r});m.isReadOnly&&(C.disabled=false);let _=he({"data-disabled":m.isDisabled,"data-readonly":m.isReadOnly,"data-focused":w,"data-focus-visible":E,"data-hovered":k,"data-pressed":T,"data-open":t,"data-block-id":l,"data-block-class":s}),D=m["aria-labelledby"],F=useCallback(()=>{ge(Array.isArray(a),"value must be an array");let N=a.slice(0,d),V=a.slice(d),M=[...N,...V.length>0?[{label:y(q7.more,{count:V.length}),id:"remaining-value"}]:[]];return jsx(Nb,{items:M,onRemove:m.isReadOnly?void 0:O=>{O.has("remaining-value")?p?.(new Set(V.map(B=>B.id))):p?.(O);},"aria-labelledby":D,className:SP,isDisabled:m.isDisabled})},[a,d,y,D,m.isDisabled,p,m.isReadOnly]),z=c==="multiple";return jsxs("div",{...A(z?Object.fromEntries(Object.entries(C).filter(([N])=>N.startsWith("on"))):A(C,S),P,_),ref:z?f:se(f,h),className:L(LL({isFocused:E,isDisabled:!!m.isDisabled,isOpen:t,isHovered:k,variant:e,isReadOnly:!!m.isReadOnly,areTagsVisible:v}),ki({variant:e,isHovered:k,isFocused:E,validationState:r,isDisabled:!!m.isDisabled,isReadOnly:m.isReadOnly}),n,"BaselineUI-Select-Button"),"data-testid":"select-button",style:i,children:[jsxs(Z,{display:"flex",flexDirection:"row",alignItems:"center",gap:"md",flex:1,paddingRight:"md",children:[c==="multiple"&&a&&a.length>0?F():jsxs("span",{className:SP,children:[x?jsx(x,{size:24}):null,jsx("span",{...o,children:b})]}),R?jsx("span",{"aria-hidden":true,className:L(Si({validationState:r,isReadOnly:!!m.isReadOnly}),AL),children:jsx(R,{size:16})}):null]}),jsx("div",{...z?{...A(C,S),ref:h}:{},className:_L,children:jsx(CaretDownIcon,{size:8,className:wL({isOpen:t})})})]})});_d.displayName="SelectButton";var q7=Te({more:{id:"bui.select.more",defaultMessage:"+{count} more"}});var Vb=Un.createContext({state:null,popoverAnchorRef:null}),zP=Un.forwardRef(({className:e,style:t,labelPosition:r="top",variant:o="primary","data-block-id":n,"data-block-class":i,onTriggerPress:a,placement:l="bottom start",triggerClassName:s,triggerStyle:u,state:c,optionStyle:p,optionClassName:d,showSectionHeader:m,hideSelectAll:f,hideClear:y,renderTrigger:g=({buttonProps:h,selectedValue:v,valueProps:C,isOpen:T,ref:P,selectionMode:k,onRemove:S,maxCount:w})=>jsx(_d,{...h,className:s,style:u,isOpen:T,isReadOnly:b.isReadOnly,ref:P,variant:o,validationState:b.validationState,valueProps:C,value:v,fallbackValue:b.placeholder,selectionMode:k,onRemove:S,maxCount:w}),...b},x)=>{let{popoverAnchorRef:h}=useContext(Vb),v=Un.useRef(null),{formatMessage:C}=fe(),T=useContext(Gp),{isVirtualized:P}=useContext(ze),k=pr(b.portalContainer),{labelProps:S,triggerProps:w,valueProps:E,menuProps:R,descriptionProps:_,errorMessageProps:D}=Yx({...As(b),validationState:b.validationState==="error"?"invalid":"valid"},c,v),F=ee(),z=eP(b)==="warningMessage",N=mr({...b,descriptionProps:_,errorMessageProps:D,warningMessageProps:{id:F},labelPosition:r}),V=c.selectedItems?.map(M=>M.value)??null;return jsxs(Fragment,{children:[jsxs("div",{style:t,className:L(an({labelPosition:r}),"BaselineUI-Select",e),"data-block-id":n,"data-block-class":i,ref:x,children:[b.label||N?jsxs("div",{className:nn({labelPosition:r,hasMessage:!!N}),children:[b.label?jsx("div",{...S,className:L(Di,"BaselineUI-Select-Label"),children:b.label}):null,r==="start"&&N]}):null,jsx(Zx,{state:c,triggerRef:v,isDisabled:b.isDisabled,label:b.label,name:b.name}),g({buttonProps:A({onPressStart:a,"aria-labelledby":S.id},w,z?{"aria-describedby":[w["aria-describedby"],F].filter(Boolean).join(" ")}:null),selectedValue:V,valueProps:E,isOpen:c.isOpen,ref:v,selectionMode:b.selectionMode??"single",onRemove:M=>{c.selectionManager.setSelectedKeys(new Set([...c.selectionManager.selectedKeys].filter(O=>!M.has(O))));},maxCount:b.maxCount??2}),r==="top"&&N]}),c?jsx(io.Provider,{value:c,children:jsx(Pt,{placement:l,state:c,portalContainer:k,offset:2,triggerRef:h||v,style:t,className:"BaselineUI-Select-Popover",...b,children:jsxs(Z,{display:"flex",flex:1,flexDirection:"column",className:Vs,children:[T?jsxs(Fragment,{children:[jsx(mb,{size:"sm","aria-label":C(Fb.search),placeholder:C(Fb.search),className:L(ML,"BaselineUI-Select-SearchInput"),autoFocus:true}),jsx(De,{})]}):null,jsx(Ln.Provider,{value:R,children:jsx(un,{label:b.label,escapeKeyBehavior:"none",className:IL({isVirtualized:P}),optionStyle:p,optionClassName:d,showSectionHeader:m})}),c.selectionManager.selectionMode==="multiple"&&(!f||!y)&&jsxs(Z,{display:"flex",flexDirection:"row",className:RL,children:[!f&&jsx(Me,{variant:"ghost",size:"md",label:C(Fb.selectAll),"data-testid":"select-all-button",onPress:()=>{if(c.selectionManager.isSelectAll)return;let O=[...c.collection.getKeys()].filter(B=>!c.selectionManager.disabledKeys.has(B)&&c.selectionManager.canSelectItem(B));c.selectionManager.setSelectedKeys(new Set(O));},className:PP}),!f&&!y&&jsx(De,{orientation:"vertical"}),!y&&jsx(Me,{variant:"ghost",label:C(Fb.clear),size:"md","data-testid":"select-clear-button",onPress:()=>{c.selectionManager.isEmpty||c.selectionManager.clearSelection();},className:PP})]})]})})}):null]})});zP.displayName="SelectCore";var GL=Un.forwardRef(({collection:e,...t},r)=>{let o=Nc({...t,collection:e,validationState:t.validationState==="error"?"invalid":"valid",children:void 0});return jsx(zP,{...t,ref:r,state:o})});GL.displayName="SelectStandalone";var po=Un.forwardRef(({optionStyle:e,optionClassName:t,showSectionHeader:r,...o},n)=>{let{state:i}=useContext(Vb);useEffect(()=>{ge(i||o.items,"Select: A `state` that can be passed via context or `items` are required.");},[o.items,i]);let a=useMemo(()=>({renderOption:(l,s)=>jsx(kd,{...s,item:l,selectionIcon:s.selectionMode==="multiple"?"checkbox":"checkmark"}),optionStyle:e,optionClassName:t,showSectionHeader:r}),[e,t,r]);return i?jsx(zP,{...o,optionStyle:e,optionClassName:t,showSectionHeader:r,ref:n,state:i}):jsx(Ks,{items:o.items,listBoxProps:a,children:l=>jsx(GL,{collection:l,...o,ref:n})})});po.displayName="Select";var Fb=Te({selectAll:{id:"bui.select.selectAll",defaultMessage:"Select All"},clear:{id:"bui.select.clear",defaultMessage:"Clear"},search:{id:"bui.select.search",defaultMessage:"Search"}});var WL=Un.forwardRef(({className:e,style:t,variant:r,"data-block-id":o,icon:n,tooltip:i=true,iconTooltip:a=true,...l},s)=>{let u=Un.useRef(null),{tooltipProps:c}=cr({label:l["aria-label"],tooltip:i}),p=useCallback(({buttonProps:d,selectedValue:m,valueProps:f,isOpen:y,ref:g})=>jsx(tt,{...c,children:jsx(_d,{...d,isOpen:y,isReadOnly:l.isReadOnly,ref:g,variant:r,validationState:l.validationState,value:m,fallbackValue:l.placeholder,valueProps:f})}),[l,c,r]);return jsxs(Z,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:L("BaselineUI-IconSelect",e),"data-block-id":o,style:t,ref:se(s,u),children:[n?jsx(Ms,{icon:n,label:l["aria-label"],tooltip:a,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary",display:"flex",flexShrink:0})}):null,jsx(po,{...l,renderTrigger:p})]})});WL.displayName="IconSelect";var Ld=class extends xs{useLayoutOptions(){let{direction:t}=Q();return {direction:t}}};var qL={LIST_BOX:{layout:en,layoutOptions:{rowHeight:36}},TREE_VIEW:{layout:en,layoutOptions:{rowHeight:44}},IMAGE_GALLERY:{layout:Ld,layoutOptions:{minItemSize:new Ie(114,167),maxItemSize:new Ie(114,167),dropIndicatorThickness:2,maxHorizontalSpace:0,minSpace:new Ie(4,16),preserveAspectRatio:true}},TABLE:{layout:cs,layoutOptions:{rowHeight:48,headingHeight:48}}};function oA(){let e=useContext(Go),t=useContext(Uo),r=e??t;if(!r)throw new Error("CalendarHeader must be used inside a Calendar or RangeCalendar");return r}function eq(e,t){let r=new CalendarDate(e,t,1);return r.calendar.getDaysInMonth(r)}function Ad(e,t,r){return Math.min(r,eq(e,t))}function tq(){let{formatMessage:e}=fe();return jsxs(Z,{display:"flex",alignItems:"center",justifyContent:"space-between",style:{height:48},children:[jsx(pe,{slot:"previous",icon:CaretLeftIcon$3,size:"xs","aria-label":e(Mo.previousMonth)}),jsx(Uu,{className:EL}),jsx(pe,{slot:"next",icon:CaretRightIcon$3,size:"xs","aria-label":e(Mo.nextMonth)})]})}var Hb=5,eA=5;function rq(e,t,r){let o=[];for(let n=e;n<=t;n++)for(let i=0;i<12;i++){let a=new Date(2024,i,1);o.push({id:`${i+1}-${n}`,label:`${r.format(a)} ${n}`});}return o}function oq(){let e=oA(),{formatMessage:t}=fe(),{locale:r}=Q(),o=e.focusedDate,n=useMemo(()=>new Intl.DateTimeFormat(r,{month:"long"}),[r]),i=e.minValue?e.minValue.year:1900,a=e.maxValue?e.maxValue.year:2100,l=useRef(Math.max(i,o.year-Hb)),s=useRef(Math.min(a,o.year+Hb)),[u,c]=useState(l.current),[p,d]=useState(s.current),m=useMemo(()=>rq(u,p,n),[u,p,n]);if(o.year<u){let b=Math.max(i,o.year-eA);c(b);}else if(o.year>p){let b=Math.min(a,o.year+eA);d(b);}let f=useCallback(b=>{if(b==null)return;let[x,h]=String(b).split("-").map(Number),v=Ad(h,x,o.day);e.setFocusedDate(new CalendarDate(h,x,v));},[o.day,e]),y=o.year,g=useCallback(()=>{let b=Math.max(i,y-Hb),x=Math.min(a,y+Hb);b<u&&c(b),x>p&&d(x);},[i,a,y,u,p]);return jsxs(Z,{display:"flex",alignItems:"center",justifyContent:"space-between",style:{height:48},children:[jsx(uy,{...qL.LIST_BOX,children:jsx(po,{"aria-label":t(Mo.selectMonth),items:m,variant:"ghost",value:`${o.month}-${o.year}`,onSelectionChange:f,onTriggerPress:g,maxHeight:300,style:{width:"fit-content"}})}),jsxs(Z,{display:"flex",alignItems:"center",gap:"2xl",children:[jsx(pe,{slot:"previous",icon:CaretLeftIcon$3,size:"xs","aria-label":t(Mo.previousMonth)}),jsx(pe,{slot:"next",icon:CaretRightIcon$3,size:"xs","aria-label":t(Mo.nextMonth)})]})]})}function nq(){let e=oA(),{formatMessage:t}=fe(),{locale:r}=Q(),o=e.focusedDate,n=e.isDisabled,i=useMemo(()=>{let y=new Intl.DateTimeFormat(r,{month:"short"});return Array.from({length:12},(g,b)=>{let x=new Date(2024,b,1);return {id:String(b+1),label:y.format(x)}})},[r]),a=useMemo(()=>{let y=o.year,g=e.minValue?e.minValue.year:y-50,b=e.maxValue?e.maxValue.year:y+50;return Array.from({length:b-g+1},(x,h)=>{let v=g+h;return {id:String(v),label:String(v)}})},[o.year,e.minValue,e.maxValue]),{month:l,year:s,day:u}=o,c=e.setFocusedDate,p=useCallback(y=>{let g=l+y,b=s;g<1?(g=12,b-=1):g>12&&(g=1,b+=1);let x=Ad(b,g,u);c(new CalendarDate(b,g,x));},[l,s,u,c]),d=useCallback(y=>{let g=s+y,b=Ad(g,l,u);c(new CalendarDate(g,l,b));},[s,l,u,c]),m=useCallback(y=>{if(y==null)return;let g=Number(y),b=Ad(s,g,u);c(new CalendarDate(s,g,b));},[s,u,c]),f=useCallback(y=>{if(y==null)return;let g=Number(y),b=Ad(g,l,u);c(new CalendarDate(g,l,b));},[l,u,c]);return jsxs(Z,{display:"flex",alignItems:"center",justifyContent:"space-between",style:{height:48},children:[jsxs(Z,{display:"flex",alignItems:"center",justifyContent:"space-between",paddingX:"xs",style:{flex:"1 0 0"},children:[jsx(pe,{slot:null,icon:CaretLeftIcon$4,size:"xxs",variant:"primary",isDisabled:n,onPress:()=>{p(-1);},"aria-label":t(Mo.previousMonth)}),jsx(po,{"aria-label":t(Mo.selectMonth),items:i,variant:"ghost",value:String(o.month),onSelectionChange:m,isDisabled:n,style:{width:"fit-content"}}),jsx(pe,{slot:null,icon:CaretRightIcon$4,size:"xxs",variant:"primary",isDisabled:n,onPress:()=>{p(1);},"aria-label":t(Mo.nextMonth)})]}),jsx(De,{orientation:"vertical",style:{alignSelf:"center",height:32}}),jsxs(Z,{display:"flex",alignItems:"center",justifyContent:"space-between",paddingX:"xs",style:{flex:"1 0 0"},children:[jsx(pe,{slot:null,icon:CaretLeftIcon$4,size:"xxs",variant:"primary",isDisabled:n,onPress:()=>{d(-1);},"aria-label":t(Mo.previousYear)}),jsx(po,{"aria-label":t(Mo.selectYear),items:a,variant:"ghost",value:String(o.year),onSelectionChange:f,isDisabled:n,style:{width:"fit-content"}}),jsx(pe,{slot:null,icon:CaretRightIcon$4,size:"xxs",variant:"primary",isDisabled:n,onPress:()=>{d(1);},"aria-label":t(Mo.nextYear)})]})]})}function jb({headerVariant:e}){switch(e){case "selectMonth":return jsx(oq,{});case "selectMonthAndYear":return jsx(nq,{});default:return jsx(tq,{})}}var Mo=Te({selectMonth:{defaultMessage:"Select month",id:"bui.calendar.selectMonth"},previousMonth:{defaultMessage:"Previous month",id:"bui.calendar.previousMonth"},nextMonth:{defaultMessage:"Next month",id:"bui.calendar.nextMonth"},selectYear:{defaultMessage:"Select year",id:"bui.calendar.selectYear"},previousYear:{defaultMessage:"Previous year",id:"bui.calendar.previousYear"},nextYear:{defaultMessage:"Next year",id:"bui.calendar.nextYear"}});var Gb=Un.forwardRef(({className:e,style:t,size:r="sm",title:o,headerVariant:n="title",...i},a)=>{let l=ee();return jsxs("div",{className:L(Eb({size:r}),"BaselineUI-Calendar",e),style:t,ref:a,children:[o?jsxs(Fragment,{children:[jsxs(Z,{display:"flex",alignItems:"center",gap:"lg",paddingX:"lg",style:{height:56},children:[jsx(Z,{color:"text.primary",flexShrink:0,display:"inline-flex",alignItems:"center",children:jsx(CalendarIcon,{})}),jsx(Ye,{id:l,type:"title",size:r==="xs"?"sm":"md",children:o})]}),jsx(De,{})]}):null,jsxs(ev,{...i,"aria-labelledby":o?l:void 0,className:kb,children:[jsx(jb,{headerVariant:n}),jsx(De,{}),jsxs(qu,{className:wb,style:{borderSpacing:0},children:[jsx(kl,{children:s=>jsx(El,{className:Rb({size:r}),children:s})}),jsx(zl,{className:zb,children:s=>jsx(Ib,{date:s,size:r})})]})]})]})});Gb.displayName="Calendar";var nA=Un.forwardRef(({className:e,style:t,size:r="sm",title:o,headerVariant:n="title",...i},a)=>{let l=ee();return jsxs("div",{className:L(Eb({size:r}),"BaselineUI-RangeCalendar",e),style:t,ref:a,children:[o?jsxs(Fragment,{children:[jsxs(Z,{display:"flex",alignItems:"center",gap:"lg",paddingX:"lg",style:{height:56},children:[jsx(Z,{color:"text.primary",flexShrink:0,display:"inline-flex",alignItems:"center",children:jsx(CalendarIcon,{})}),jsx(Ye,{id:l,type:"title",size:r==="xs"?"sm":"md",children:o})]}),jsx(De,{})]}):null,jsxs(tv,{...i,"aria-labelledby":o?l:void 0,className:kb,children:[jsx(jb,{headerVariant:n}),jsx(De,{}),jsxs(qu,{className:wb,style:{borderSpacing:0},children:[jsx(kl,{children:s=>jsx(El,{className:Rb({size:r}),children:s})}),jsx(zl,{className:zb,children:s=>jsx(Ib,{date:s,size:r,isRange:true})})]})]})]})});nA.displayName="RangeCalendar";var fq=({label:e,...t})=>{let{isSelected:r,isIndeterminate:o,isFocusVisible:n,isDisabled:i,isReadOnly:a,isHovered:l,isInvalid:s}=t;return jsxs(Fragment,{children:[jsxs("div",{className:Os({isSelected:r&&!o,isIndeterminate:o,isFocusVisible:n,isDisabled:i,isReadOnly:a,hasError:s,isHovered:l}),children:[r&&!o?jsx(CheckmarkIcon$3,{size:12}):null,o?jsx(MinusIcon$1,{size:12}):null]}),e?jsx("span",{className:fb({isDisabled:i}),children:e}):null]})},aA=Un.forwardRef(({className:e,style:t,label:r,labelPosition:o="end",slot:n,...i},a)=>jsx(cv,{...i,className:L(yb({labelPosition:o}),"BaselineUI-Checkbox",e),style:t,slot:n,ref:a,children:l=>jsx(fq,{label:r,...l})}));aA.displayName="Checkbox";var lA=j({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),sA="_1nsi9h1f _1yep5z6ly _1yep5z6lq _1yep5z6eu",uA=j({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6g1 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6zy",sm:"_1nsi9h12 _1yep5z6101",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6za _1yep5z6184 _1yep5z6182 _1yep5z6136",pinned:"_1yep5z617q"}},defaultVariants:{},compoundVariants:[]}),cA=j({defaultClassName:"_1nsi9h1g _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]});var Sq={style:"decimal"},Dq={xs:[CaretLeftIcon$3,CaretRightIcon$3],sm:[CaretLeftIcon$2,CaretRightIcon$2],md:[CaretLeftIcon$1,CaretRightIcon$1],lg:[CaretLeftIcon,CaretRightIcon]},mA=Un.forwardRef(({className:e,style:t,minValue:r=1,defaultValue:o=1,incrementAriaLabel:n,decrementAriaLabel:i,"aria-label":a,size:l="md",variant:s="floating",hideActions:u,isDisabled:c,...p},d)=>{let{locale:m}=Q(),f=fe(),y={...p,formatOptions:Sq,minValue:r,incrementAriaLabel:n||f.formatMessage(Ub.nextPage),decrementAriaLabel:i||f.formatMessage(Ub.prevPage),defaultValue:o,"aria-label":a||f.formatMessage(Ub.goToPage)},g=Un.useRef(null),b=nc({...y,locale:m}),{inputProps:x,decrementButtonProps:h,incrementButtonProps:v,groupProps:C}=rc({...y,onKeyDown:F=>{F.key==="Enter"&&g.current?.blur(),p.onKeyDown?.(F);},isDisabled:c},b,g),{hoverProps:T,isHovered:P}=ie({}),{focusProps:k,isFocused:S,isFocusVisible:w}=oe(),E=s==="floating",[R,_]=Dq[l],D=he({"data-focus-visible":w,"data-focused":S,"data-hovered":P,"data-block-id":p["data-block-id"],"data-block-class":p["data-block-class"]});return jsxs("div",{...A(C,T,D),className:L(uA({size:l,variant:s}),"BaselineUI-Pagination",e),style:t,ref:d,children:[u?null:jsxs(Fragment,{children:[jsx(pe,{icon:R,...h,elementType:"div",size:l,style:{height:"100%",...E&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",isExcludedFromRovingFocus:true,isDisabled:c||h.isDisabled}),s==="floating"&&jsx(De,{orientation:"vertical"})]}),jsxs("div",{className:lA({isFocused:S,variant:s,size:l}),"aria-label":f.formatMessage(Ub.pageXofY,{arg0:x.value,arg1:b.maxValue}),children:[jsx("input",{...A(x,k),ref:g,className:L("BaselineUI-Pagination-Input",sA),style:{width:`${x.value?.toString().length||1}ch`}}),jsxs("span",{className:cA({isDisabled:c}),children:["/ ",jsx(Ns,{value:b.maxValue})]})]}),u?null:jsxs(Fragment,{children:[s==="floating"&&jsx(De,{orientation:"vertical"}),jsx(pe,{icon:_,...v,elementType:"div",size:l,style:{height:"100%",...E&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",isExcludedFromRovingFocus:true,isDisabled:c||v.isDisabled})]})]})});mA.displayName="Pagination";var Ub=Te({nextPage:{defaultMessage:"Next Page",id:"bui.pagination.nextPage"},prevPage:{defaultMessage:"Previous Page",id:"bui.pagination.prevPage"},goToPage:{defaultMessage:"Go to Page",id:"bui.pagination.goToPage"},pageXofY:{defaultMessage:"Page {arg0} of {arg1}",id:"bui.pagination.pageXofY"}});var fA=({date:e,...t})=>{let r=Rt(t);return jsx(Fragment,{children:r.format(e)})};fA.displayName="DateFormat";var yA="_1yep5z6ln",bA=j({defaultClassName:"_1kvz17db _1yep5z6la _1yep5z6lc",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),gA=j({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6la _1yep5z6lb",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),hA="_1kvz17de",vA="_1yep5z6ev _1yep5z6dy",xA=j({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6la _1yep5z6ld",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6g2",false:"_1yep5z6g3"},isDisabled:{true:"z9nup82"}},defaultVariants:{},compoundVariants:[]}),TA="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",CA=j({defaultClassName:"_1kvz17d7 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var RP=Un.forwardRef(({children:e,className:t,style:r},o)=>{let{headers:n}=useContext(Ii),{disabledKeys:i}=useContext(Ii),{keyboardProps:a}=Le({onKeyDown:l=>{let s=ue(G(l.target)),u=[...n?.keys()||[]].findIndex(f=>{let y=n?.get(f)?.current;return y?y===s:false}),c=n?.get(u||0),p=n?.size||0,d=f=>{let y=n.get(f-1<0?p-1:f-1);i?.has(y?.current?.dataset.key||"")?d(f-1):y?.current?.focus();},m=f=>{let y=n.get((f+1)%p);i?.has(y?.current?.dataset.key||"")?m(f+1):y?.current?.focus();};if(c)switch(l.key){case "Home":{l.preventDefault(),m(-1);break}case "End":{l.preventDefault(),d(p);break}case "ArrowDown":{l.preventDefault(),m(u);break}case "ArrowUp":{l.preventDefault(),d(u);break}default:l.continuePropagation();}}});return jsx("div",{...LR(a),style:r,className:L(yA,t),ref:o,children:Un.Children.map(e,(l,s)=>Un.cloneElement(l,{index:s}))})});RP.displayName="AccordionBase";var Ii=Un.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),DA=Un.forwardRef(({children:e,disabledKeys:t,defaultExpandedKeys:r=new Set,expandedKeys:o,expansionMode:n="multiple",onChange:i,className:a,style:l},s)=>{let[u,c]=Un.useState(r),p=Un.useRef(new Map).current,[d,m]=Un.useState(n);useEffect(()=>{m(n);},[n]),useEffect(()=>{i?.(u);},[u,i]);let f=useMemo(()=>({expandedKeys:o||u,setExpandedKeys:o?()=>{}:c,disabledKeys:t,headers:p,expansionMode:d}),[o,u,t,p,d]);return jsx(Ii.Provider,{value:f,children:jsx(Et,{children:jsx(RP,{className:a,style:l,ref:s,children:e})})})});DA.displayName="Accordion";var _P=Un.forwardRef(({title:e,actions:t,controlId:r,value:o,id:n,index:i,subLabel:a,showActionsOnTriggerOnly:l},s)=>{let u=Un.useRef(null),{expandedKeys:c,setExpandedKeys:p,expansionMode:d,disabledKeys:m,headers:f}=useContext(Ii),y=m?.has(o),g=_l();ge(g);let{focusNext:b,focusPrevious:x}=g,{keyboardProps:h}=Le({onKeyDown:D=>{D.key==="ArrowRight"?b({wrap:true}):D.key==="ArrowLeft"?x({wrap:true}):D.continuePropagation();},isDisabled:y});useEffect(()=>{ge(typeof i=="number","AccordionItem must have an index"),f?.set(i,u);},[i,f]);let v=()=>{p(D=>{let F=new Set(D);return F.has(o)?F.delete(o):(d==="single"&&F.clear(),F.add(o)),F});},{buttonProps:C}=dt({"aria-expanded":c.has(o),"aria-controls":r,onPress:v,isDisabled:y},u),{pressProps:T}=Ae({onPress:v,isDisabled:y}),{focusProps:P,isFocusVisible:k}=oe(),{hoverProps:S,isHovered:w}=ie({isDisabled:y}),{focusProps:E,isFocusVisible:R}=oe({within:true}),_=c.has(o);return jsxs("h3",{...A(h,T,S,E),className:xA({isFocusVisible:k,isHovered:w,isDisabled:y}),ref:s,children:[jsxs("div",{className:CA({isDisabled:!!y}),children:[jsx(ChevronRightIcon,{className:gA({isExpanded:_}),size:8}),jsx("button",{...A(C,P),id:n,"data-key":o,className:TA,ref:u,children:e})]}),t?.length?jsx("div",{"data-testid":"action-buttons",className:bA({showActionsOnTriggerOnly:l,isTriggered:R||w}),children:t.map((D,F)=>jsx(pe,{variant:"secondary",size:"sm",excludeFromTabOrder:true,isDisabled:y,...D},F))}):null,a?jsx("div",{className:vA,children:a}):null]})});_P.displayName="AccordionHeader";var zA=Un.forwardRef(({title:e,actions:t,children:r,value:o,index:n,subLabel:i,style:a,className:l,showActionsOnTriggerOnly:s},u)=>{let c=ee(),p=ee(),{expandedKeys:d}=useContext(Ii),m=d.has(o);return jsxs(Fragment,{children:[jsx(Et,{children:jsx(_P,{value:o,actions:t,id:p,title:e,controlId:c,ref:u,index:n,subLabel:i,showActionsOnTriggerOnly:s})}),jsx(AnimatePresence,{initial:false,children:m?jsx(motion.section,{role:"region","aria-labelledby":p,id:c,className:hA,variants:{open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},initial:"closed",animate:"open",exit:"closed",children:jsx("div",{style:a,className:l,children:r})}):null})]})});zA.displayName="AccordionItem";var wA="_1017q4c5",RA=j({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),IA="_1017q4c4";var Hq={sm:AvatarIcon$1,md:AvatarIcon},Us=Un.forwardRef(({className:e,style:t,size:r="md",icon:o=Hq[r],name:n,imgSrc:i,showInitials:a,isDisabled:l,hasNotifications:s,imgLoading:u,"data-block-id":c,"data-block-class":p},d)=>{let m=n?.split(" ").map(f=>f[0]).join("");return jsxs("span",{className:L(RA({size:r,isDisabled:l}),"BaselineUI-Avatar",e),"data-disabled":l,ref:d,style:t,"aria-disabled":l,"data-block-id":c,"data-block-class":p,children:[i?jsx("img",{src:i,alt:n,loading:u,className:IA}):null,!a&&!i&&jsx(o,{size:r==="sm"?16:24}),a&&!i?r==="sm"?m[0]:m:null,s?jsx("div",{"data-testid":"notification",className:wA}):null]})});Us.displayName="Avatar";var _A="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",MA=j({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6la _1yep5z6ld _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z610x"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6111"},variant:{primary:"_1x62fhbb _1yep5z6zy",ghost:"_1yep5z6101"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61n0"],[{variant:"primary",isSelected:true},"_1yep5z61o7"],[{variant:"ghost",isSelected:true,isFocusVisible:false},"_1x62fhbd"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61n7"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:true},"_1yep5z61o8"]]}),LA=j({defaultClassName:"_1x62fhb3 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),AA="_1x62fhbl",LP=j({defaultClassName:"_1x62fhbf _1yep5z6f6",variantClassNames:{isHovered:{true:"_1yep5z6118"},isSelected:{true:"_1x62fhbh"},isDisabled:{true:"_1yep5z611a"},variant:{primary:"_1x62fhbj",ghost:"_1x62fhbk"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61nb"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61ng"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1yep5z61nd"]]}),OA="_1yep5z6lu _1yep5z6lr _1yep5z6hx _1yep5z6lt",NA=j({defaultClassName:"_1x62fhb0 _1yep5z6ln _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1yep5z6126",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var FA=({state:e,...t})=>{let r=Un.useRef(null),{tabPanelProps:o}=FT(t,e,r),{selectedItem:n}=e,{focusProps:i,isFocusVisible:a}=oe();if(!n?.value)return null;let{className:l,style:s,"data-block-id":u}=n.value;return jsx("div",{...A(o,i),ref:r,className:L({[OA]:a},"Baseline-Tabs-TabPanel",l),"data-block-id":u,style:s,children:n?.props.children})};var NP=Un.forwardRef(({className:e,style:t,tabHeaderStyle:r,tabHeaderClassName:o,variant:n="primary",actions:i,onRemove:a,"data-block-id":l,...s},u)=>{let c=VT({...s,selectedKey:s.selectedValue,defaultSelectedKey:s.defaultSelectedValue,disabledKeys:s.disabledValues}),p=Un.useRef(null),{tabListProps:d}=KT({...s,selectedKey:s.selectedValue,defaultSelectedKey:s.defaultSelectedValue,disabledKeys:s.disabledValues},c,p);return jsxs("div",{className:L("BaselineUI-Tabs",e),style:t,ref:u,"data-block-id":l,children:[jsxs("div",{className:L(NA({variant:n}),o),style:r,children:[jsx("div",{...d,className:LA({variant:n}),ref:p,children:[...c.collection].map(m=>(ge(m.value,"TabItem requires a value prop"),jsx(KA,{item:m,state:c,onRemove:a,variant:n},m.key)))}),i?.map((m,f)=>jsx("div",{className:_A,children:jsx(pe,{...m,variant:"secondary",size:"sm",className:L(AA,m.className)})},f))]}),jsx(FA,{state:c},c.selectedItem?.key)]})});NP.displayName="TabsBase";var KA=({item:e,onRemove:t,state:r,variant:o})=>{let{key:n,value:i}=e,a=Un.useRef(null),{tabProps:l,isSelected:s,isDisabled:u}=NT({key:n},r,a),{hoverProps:c,isHovered:p}=ie({});ge(i,"TabButton requires a value prop");let{title:d,icon:m,titleStyle:f,titleClassName:y}=i,{focusProps:g,isFocusVisible:b,isFocused:x}=oe(),{keyboardProps:h}=Le({onKeyDown:C=>{C.key==="Backspace"&&t?t(n):C.continuePropagation();}}),v=he({"data-selected":s,"data-disabled":u,"data-focused":x,"data-hovered":p,"data-focus-visible":b});return jsxs("div",{...A(h,l,c,g,v),className:L(MA({isHovered:p,isSelected:s,isFocusVisible:b,isDisabled:u,variant:o}),"BaselineUI-Tabs-TabButton",y),style:f,ref:a,children:[m?jsx(m,{size:20,className:LP({isHovered:p,isSelected:s,isDisabled:u,variant:o})}):null,d,t?jsx(pe,{variant:"secondary",elementType:"div",icon:XIcon$3,size:"xxs",onPress:()=>{t(n);},excludeFromTabOrder:true,UNSAFE_isVisuallyInteractiveOnly:true,style:{display:"inline-flex",opacity:s||x||p?1:0},className:LP({isHovered:p,isSelected:s,isDisabled:u,variant:o})}):null]})};KA.displayName="TabButton";var BA=Un.forwardRef(function({children:t,...r},o){let n=useMemo(()=>Un.Children.map(t,i=>!i||!Un.isValidElement(i)||typeof i.type=="string"?null:{...i.props,id:i.props.value}).filter(Boolean),[t]);return jsx(NP,{...r,ref:o,items:n,children:i=>jsx(uo,{title:i.title,children:i.children},i.key)})});BA.displayName="Tabs";var HA=({children:e,title:t,value:r})=>(ge(r,"TabItem requires a value prop"),ge(t,"TabItem requires a title prop"),ge(e,"TabItem requires children"),e);HA.displayName="TabItem";var $A=j({defaultClassName:"kfun6yt _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6af _1yep5z6ag _1yep5z6ah",variantClassNames:{arrangement:{single:"_1yep5z6vi _1yep5z6vj _1yep5z6vk",multi:"_1yep5z6157 _1yep5z6158 _1yep5z6159",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]}),jA=j({defaultClassName:"kfun6y0 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ln",variantClassNames:{variant:{info:"_1yep5z611y",warning:"_1yep5z611u",error:"_1yep5z611m",success:"_1yep5z611q"},arrangement:{single:"kfun6y5 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z615m _1yep5z615n _1yep5z615o",multi:"kfun6y6",compact:"kfun6y7 _1yep5z6mc _1yep5z6md _1yep5z6me _1yep5z6oo _1yep5z6op _1yep5z6oq _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z615d _1yep5z615e _1yep5z615f _1yep5z6wi _1yep5z6wj _1yep5z6wk"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:false,arrangement:"single"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasButton:true,arrangement:"compact"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasCloseButton:true,arrangement:"compact"},"_1yep5z61af _1yep5z61ag _1yep5z61ah _1yep5z6199 _1yep5z619a _1yep5z619b"]]}),GA=j({defaultClassName:"kfun6yq _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6106",md:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),UA=j({defaultClassName:"kfun6ym _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{arrangement:{single:"kfun6yn",multi:"_1yep5z615j _1yep5z615k _1yep5z615l",compact:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6pi _1yep5z6pj _1yep5z6pk _1yep5z6qo _1yep5z6qp _1yep5z6qq _1yep5z6oc _1yep5z6od _1yep5z6oe _1yep5z6161 _1yep5z6162 _1yep5z6163"}},defaultVariants:{},compoundVariants:[]}),WA=j({defaultClassName:"kfun6yh _1yep5z6lk",variantClassNames:{variant:{info:"_1yep5z610t",warning:"_1yep5z610p",error:"_1yep5z610h",success:"_1yep5z610l"}},defaultVariants:{},compoundVariants:[]}),qA=j({defaultClassName:"kfun6ye _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6108",md:"_1yep5z610b"}},defaultVariants:{},compoundVariants:[]}),XA=j({defaultClassName:"kfun6ya _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{arrangement:{single:"_1yep5z615m _1yep5z615n _1yep5z615o",multi:"_1yep5z6r0 _1yep5z6r1 _1yep5z6r2 _1yep5z6tc _1yep5z6td _1yep5z6te",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]});var nX={error:{sm:ErrorAltCircleFilledIcon$1,md:ErrorAltCircleFilledIcon},info:{sm:InfoCircleFilledIcon$1,md:InfoCircleFilledIcon},success:{sm:CheckmarkCircleFilledIcon,md:CheckCircleFilledIcon},warning:{sm:WarningFilledIcon$1,md:WarningFilledIcon}},qb=Un.forwardRef(({className:e,description:t,actionLabel:r,onAction:o,style:n,variant:i="info",title:a,arrangement:l="single",onClose:s,size:u="sm","data-block-id":c,"data-block-class":p,elementProps:d},m)=>{let f=fe(),y=r&&jsx(Me,{variant:l==="compact"?"tertiary":"ghost",label:r,onPress:o}),g=nX[i][u];return jsxs("div",{className:L(jA({variant:i,arrangement:l,hasButton:!!r||!!s,hasCloseButton:!!s}),"BaselineUI-InlineAlert",e),"data-block-id":c,"data-block-class":p,style:n,role:"alert",ref:m,...d?.root,children:[jsxs("div",{className:XA({arrangement:l}),children:[jsx(g,{className:WA({variant:i}),size:16}),jsxs("div",{className:$A({arrangement:l}),...d?.content,children:[jsx("h3",{className:qA({size:u}),...d?.title,children:a}),jsx("section",{className:GA({size:u}),...d?.description,children:t})]}),l==="compact"&&y]}),jsxs("div",{className:UA({arrangement:l}),children:[l!=="compact"&&y,s?jsx(pe,{variant:"secondary",icon:XIcon$2,size:"sm",onPress:s,"aria-label":f.formatMessage(iX.close),...d?.close}):null]})]})});qb.displayName="InlineAlert";var iX=Te({close:{defaultMessage:"Close",id:"bui.inlineAlert.close"}});var YA="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6ln",ZA="_1dbkl5e",JA=j({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6ly _1yep5z6lq _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6lp _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup82 _1yep5z6111"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),QA="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl",e5=j({defaultClassName:"_1dbkl50 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6oi _1yep5z6oj _1yep5z6ok",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Xb="_1dbkl5l _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69f _1yep5z69g _1yep5z69h",t5="_1dbkl5f z9nup86",Yb="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if",r5="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6lq",o5="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl",Zb=j({defaultClassName:"_1dbkl5h _1dbkl5g _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8"}},defaultVariants:{},compoundVariants:[]}),KP="_1dbkl5v _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",n5=j({defaultClassName:"_1dbkl5q _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6br _1yep5z6bs _1yep5z6bt _1yep5z6d3 _1yep5z6d4 _1yep5z6d5 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lz _1yep5z6h4 _1yep5z6lq _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z6134"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z617q"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isFocused:false},"_1yep5z61pb"]]}),i5=j({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f5 _1yep5z6lp _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6la _1yep5z6ld",variantClassNames:{isHovered:{true:"_1yep5z6126"},isFocusVisible:{true:"_1yep5z617w _1yep5z617u _1yep5z617x _1yep5z6140"},isDisabled:{true:"_1yep5z611a"}},defaultVariants:{},compoundVariants:[]}),Jb="_1dbkl5g",jd="_1dbkl5u",Qb="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",VP="_1dbkl5x",a5="_1dbkl5w",BP="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n",eg=j({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lu _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6lz _1yep5z6m2",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z617u _1yep5z6140 _1yep5z617w"}},defaultVariants:{},compoundVariants:[]}),HP="z9nup83 z9nup85 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6ig _1yep5z6ih _1yep5z6ii";var s5=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],Gd=_e("#000000").toFormat("hsla"),mo="hsla",fo="hexa";function lX(e){let t=document.createElement("canvas").getContext("2d");return ge(t,"Failed to get canvas context"),t.fillStyle=e,t.fillStyle}function Ga(e){if(typeof e=="string")try{return _e(e).toFormat(mo)}catch{return _e(lX(e)).toFormat(mo)}else if(e)return e.toFormat(mo);return null}function u5(e,t){return e?.getChannelValue("alpha")?t?.toString(fo)===e.toString(fo):!t?.getChannelValue("alpha")}function c5(e,t,r){return t?.label?t.label:e?.getChannelValue("alpha")===0?r:e?.toString("rgba")}var yn="NONE";function d5(e,t){let r=t?.map(n=>({id:_e(n.color).toString(fo),label:n.label}))||[],o={id:yn,label:e};return [...r,o]}var tg=(e,{optionProps:t,isFocusVisible:r,isSelected:o},n)=>(ge(e.value&&"label"in e.value,"Item must have label"),jsx("li",{...t,ref:n,className:r5,children:jsx(_i,{color:e.value.id,isFocusVisible:r,isSelected:o,"aria-label":e.value.label,isInteractive:true})})),p5=(e,t=4)=>{let r=e.getChannelValue("alpha")===0,o=`repeating-conic-gradient(transparent 0% 25%, ${themeVars.color.background.secondary.medium} 25% 50%)`;return {backgroundImage:r?o:`linear-gradient(${e.toString("hexa")}, ${e.toString("hexa")}), ${o}`,backgroundSize:`${t}px ${t}px`}};var m5=j({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6lk _1yep5z6ic _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf z9nup8a",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617z"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isFocusVisible:true},"_1344e9q6"],[{isSelected:true,isFocusVisible:true},"_1344e9q7 _1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2"],[{isSelected:true,isDisabled:true},"_1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2 _1yep5z61qd"],[{isHovered:true,isSelected:false},"_1yep5z61u2 _1yep5z61tz _1yep5z61tx _1yep5z61q7"]]}),f5="_1yep5z6f6",y5="_1344e9q9 _1yep5z6fl";var _i=Un.forwardRef(({color:e,isFocusVisible:t,isSelected:r,isInteractive:o,isDisabled:n,style:i,className:a,id:l,tooltip:s,isIndeterminate:u,indeterminateIcon:c=HelpIcon,"data-block-id":p,"data-block-class":d,...m},f)=>{let y=e&&e!==yn&&(typeof e=="string"?_e(e):e),{formatMessage:g}=fe(),b=!y,{colorSwatchProps:x}=Om({color:b?"#000000":e}),{hoverProps:h,isHovered:v}=ie({isDisabled:n||!o}),C=he({"data-focus-visible":t,"data-selected":r,"data-hovered":v,"data-block-id":p,"data-block-class":d,"data-disabled":n,"data-interactive":o,"data-indeterminate":u}),T=b?g(b5.none):x["aria-label"],P=m["aria-label"]??T,{tooltipProps:k}=cr({tooltip:s,label:P}),S=jsx("div",{...A(h,C,b?{}:x),style:i,"aria-label":b?g(b5.none):x["aria-label"],role:"img",className:L(m5({removeBlendMode:b,isFocusVisible:t,isDisabled:!!n,isSelected:!!r,isHovered:v}),"BaselineUI-ColorSwatch",a),ref:f,id:l,...m,children:jsxs(Z,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:n?"medium":void 0,style:y&&!u?p5(y,4):void 0,children:[b&&!u?jsx("div",{className:y5}):null,u&&c?jsx(c,{role:"presentation",size:16,className:f5,"aria-hidden":"true"}):null]})});return k&&!n?jsx(tt,{...k,children:jsx(hl,{children:S})}):S});_i.displayName="ColorSwatch";var b5=Te({none:{id:"bui.colorSwatch.none",defaultMessage:"None"}});var qd=Un.forwardRef(({color:e,colorLabel:t,colorName:r,isIndeterminate:o,indeterminateIcon:n,...i},a)=>{let l=Un.useRef(null),{hoverProps:s,isHovered:u}=ie({isDisabled:i.isDisabled}),{buttonProps:c,isPressed:p}=dt(i,l),{isFocusVisible:d,focusProps:m}=oe(),f=he({"data-block-id":i["data-block-id"],"data-focused":d,"data-focus-visible":d,"data-disabled":i.isDisabled,"data-hovered":u,"data-pressed":p}),y=ee(),g=ee();return jsxs("button",{...A(c,s,m,f),style:i.style,className:L(JA({isHovered:u,isFocusVisible:d||i.isOpen,isDisabled:i.isDisabled,labelPosition:i.labelPosition}),"BaselineUI-ColorInputButton",i.className),ref:se(a,l),id:y,"aria-labelledby":i["aria-labelledby"]||`${y} ${g}`,children:[jsx(_i,{color:e?.toString("hexa"),isIndeterminate:o,indeterminateIcon:n}),t?jsx("div",{className:t5,id:g,"aria-hidden":"true",children:r}):typeof r=="string"&&jsx(Oe,{children:r})]})});qd.displayName="ColorInputButton";var og=Un.forwardRef(({className:e,style:t,icon:r,...o},n)=>{let i=Un.useRef(null),{hoverProps:a,isHovered:l}=ie({isDisabled:o.isDisabled}),{buttonProps:s,isPressed:u}=dt(o,i),{isFocusVisible:c,focusProps:p}=oe(),d=he({"data-block-id":o["data-block-id"],"data-focused":c,"data-focus-visible":c,"data-disabled":o.isDisabled,"data-hovered":l,"data-pressed":u});return jsxs("button",{...A(s,a,p,d),ref:se(n,i),style:t,className:L(i5({isHovered:l||u||o.isOpen,isFocusVisible:c,isDisabled:o.isDisabled}),"BaselineUI-IconColorInputButton","BaselineUI-IconColorInput-Button",e),children:[jsx(r,{size:16}),jsx("div",{className:ZA,style:{backgroundColor:o.color||void 0}})]})});og.displayName="IconColorInputButton";var $P=Un.forwardRef(({setColor:e,color:t,triggerRef:r,autoFocus:o,presets:n,state:i,isIndeterminate:a},l)=>{let{formatMessage:s}=fe(),u=useCallback(c=>{if(c instanceof Set&&c.size){let p=[...c][0],d=n.find(m=>m.id===p);ge(d,"Preset not found"),e(d.id===yn?null:_e(d.id).toFormat(mo)),i.close();}},[i,n,e]);return jsx("div",{className:L(Qb,"BaselineUI-ColorInput-Presets"),style:{minWidth:r.current?.offsetWidth},ref:l,children:jsx(on,{autoFocus:o,items:n,layout:"grid","aria-label":s(mX.colorPresets),className:Xb,renderOption:tg,selectionMode:"single",selectedKeys:a?[]:[t?.toString(fo)||yn],onSelectionChange:u,escapeKeyBehavior:"none"})})});$P.displayName="ColorPresetList";var mX=Te({colorPresets:{defaultMessage:"Color Presets",id:"bui.colorInput.colorPresets"}});var ng=({children:e})=>{let{triggerProps:t}=Un.useContext(Fn);return jsx(Ir,{...t,children:e})};ng.displayName="ModalTrigger";var gX=({children:e})=>{let{state:t}=Un.useContext(Fn);return jsx(Ir,{onPress:()=>{t?.close();},children:e})};var v5=({value:e,...t})=>{let r=Un.useRef(null),o=Un.useRef(null),n=Un.useRef(null),i=Dm({...t,value:e}),{colorAreaProps:a,xInputProps:l,yInputProps:s,thumbProps:u}=Sm({...t,value:e,inputXRef:r,inputYRef:o,containerRef:n},i);useEffect(()=>{r.current?.focus();},[]);let{focusProps:c,isFocusVisible:p}=oe();return jsx("div",{ref:n,...a,className:L(YA,"BaselineUI-ColorInput-ColorArea"),children:jsxs("div",{...u,className:L(eg({isFocusVisible:p}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...u.style,transform:"translate(-50%, -50%)",backgroundColor:Ga(e)?.withChannelValue("alpha",1).toString("css")},children:[jsx("input",{ref:r,...l,...c}),jsx("input",{ref:o,...s,...c})]})})};var x5=({color:e,setColor:t,allowAlpha:r,...o})=>{let n=_m({value:e,onChange:p=>{t(Ga(p)?.toFormat(mo).withChannelValue("alpha",e.getChannelValue("alpha")??1)||Gd);}}),i=Un.useRef(null),{inputProps:a}=Rm({...o,"aria-label":"Hex"},n,i),{focusProps:l,isFocused:s}=oe({isTextInput:true}),{hoverProps:u,isHovered:c}=ie({});return jsxs("div",{className:L(KP,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"hexa":"hex",children:[jsx("input",{...A(a,l,u),ref:i,className:n5({isFocused:s,isHovered:c,allowAlpha:r})}),r?jsx(C5,{color:e,setColor:t}):null]})},T5=({color:e,setColor:t,allowAlpha:r})=>{let o=e.toFormat("rgba"),{locale:n}=Q();return jsxs("div",{className:L(KP,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"rgba":"rgb",children:[jsx(Nn,{"aria-label":e.getChannelName("red",n),value:o.getChannelValue("red"),showStepper:false,className:jd,onChange:i=>{t(o.withChannelValue("red",i).toFormat(mo));},step:1,minValue:0,maxValue:255}),jsx(Nn,{"aria-label":e.getChannelName("green",n),value:o.getChannelValue("green"),showStepper:false,className:jd,onChange:i=>{t(o.withChannelValue("green",i).toFormat(mo));},step:1,minValue:0,maxValue:255}),jsx(Nn,{"aria-label":e.getChannelName("blue",n),value:o.getChannelValue("blue"),showStepper:false,className:jd,onChange:i=>{t(o.withChannelValue("blue",i).toFormat(mo));},step:1,minValue:0,maxValue:255}),r?jsx(C5,{color:e,setColor:t}):null]})},PX={style:"percent",maximumFractionDigits:0},C5=({color:e,setColor:t})=>{let{locale:r}=Q(),o=useCallback(n=>{t(e.withChannelValue("alpha",n));},[e,t]);return jsx(Nn,{"aria-label":e.getChannelName("alpha",r),value:e.getChannelValue("alpha"),formatOptions:PX,className:jd,showStepper:false,onChange:o,minValue:0,maxValue:1})};var UP=({channel:e,...t})=>{let{locale:r}=Q(),o=Am({...t,channel:e,locale:r}),n=Un.useRef(null),i=Un.useRef(null),{trackProps:a,thumbProps:l,inputProps:s}=Mm({...t,channel:e,trackRef:n,inputRef:i,"aria-label":o.value.getChannelName(e,r)},o),{focusProps:u,isFocusVisible:c}=oe();return jsxs("div",{className:L(Yb,{[bI({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...a,ref:n,children:[e==="alpha"&&jsx("div",{className:HP}),jsx("div",{className:Yb,style:a.style}),jsxs("div",{className:L(eg({isFocusVisible:c}),"BaselineUI-ColorInput-ColorSliderThumb"),...l,children:[jsx("div",{className:HP,style:{backgroundColor:"#ffffff"}}),jsx("div",{style:{backgroundColor:o.getDisplayColor().toString("css"),height:8},className:Yb}),jsx(Oe,{children:jsx("input",{ref:i,...s,...u})})]})]})};var ig=({color:e,setColor:t,allowAlpha:r,onChangeEnd:o})=>{let[n,i]=Un.useState("hex"),{formatMessage:a}=fe();return jsxs(Fragment,{children:[jsx(v5,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:t,onChangeEnd:o}),jsxs("div",{className:BP,children:[jsx(UP,{channel:"hue",value:e,onChange:t,onChangeEnd:o}),r?jsx(UP,{channel:"alpha",value:e,onChange:t,onChangeEnd:o}):null]}),jsxs("div",{className:L(BP,sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsx(po,{label:a(kX.colorFormat),labelPosition:"start",variant:"ghost",items:s5,selectedKey:n,onSelectionChange:l=>{i(l);}}),n==="hex"&&jsx(x5,{color:e,setColor:l=>{t(l),o?.(l);},allowAlpha:r}),n==="rgb"&&jsx(T5,{color:e,setColor:l=>{t(l),o?.(l);},allowAlpha:r})]})]})},kX=Te({colorFormat:{defaultMessage:"Color Format",id:"bui.colorInput.colorFormat"}});var k5=({color:e,setColor:t,storePickedColorKey:r,addColorButtonLabel:o,removeColorButtonLabel:n,customColorsLabel:i,pickerMode:a,allowAlpha:l,isIndeterminate:s})=>{let{locale:u}=Q(),{formatMessage:c}=fe(),p=Un.useRef(null),d=Pi(p.current),[m,f]=a_(r,[]),y=Un.useRef(null),[g,b]=Un.useState(e),x=Un.useMemo(()=>m.map(k=>({id:k,label:_e(k).getColorName(u),description:k})),[m,u]),h=useCallback(()=>{let k=a==="active"?e:g;if(m.includes(k.toString(fo))){y.current?.querySelector(`[data-key='${k.toString(fo)}']`)?.classList.add(VP);return}f([...m,k.toString(fo)]);},[m,e,f,g,a]);useEffect(()=>{let k=y.current;function S(w){w.animationName===a5&&$(w)?.classList.remove(VP);}return k?.addEventListener("animationend",S),()=>{k?.removeEventListener("animationend",S);}},[]);let v=ee(),C=jsx(pe,{ref:p,variant:"secondary",size:"md","aria-label":o,icon:PlusIcon$2,onPress:a==="active"?h:void 0}),T=useCallback(k=>jsxs(Lr,{size:"content",className:Zb({includesCustomColorPicker:true}),style:{paddingBlockEnd:0},"aria-label":c(XP.newColor),children:[jsx(ig,{color:g,setColor:b,allowAlpha:l}),jsx(De,{}),jsx(Z,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxs(Z,{display:"inline-flex",gap:"lg",children:[jsx(Me,{label:c(XP.cancel),size:"sm",variant:"secondary",onPress:k}),jsx(Me,{label:c(XP.add),variant:"primary",onPress:()=>{h(),k();},size:"sm"})]})})]}),[g,h,c,l]),P=useCallback(k=>{ge(k instanceof Set,"Key must be a set");let S=[...k][0];S&&t(_e(S).toFormat(mo));},[t]);return jsxs(Fragment,{children:[jsx(De,{}),jsxs("div",{className:L(o5,"BaselineUI-ColorInput-CustomColors"),children:[jsx("span",{id:v,children:i}),jsxs(Z,{display:"flex",children:[!!m.length&&m.includes(e.toString(fo))&&jsx(pe,{variant:"secondary",size:"md",elementType:"div",icon:MinusIcon$2,"aria-label":n,onPress:()=>{f(m.filter(k=>k!==e.toString(fo)));}}),a==="active"&&C,a==="lazy"&&(d==="mobile"?jsxs(ln,{children:[jsx(ng,{children:C}),jsx(sn,{style:{zIndex:1e5},children:({close:k})=>T(k)})]}):jsxs(Io,{type:"dialog",children:[jsx(_o,{children:C}),jsx(Pt,{placement:"right top",className:Jb,offset:6,children:({close:k})=>T(k)})]}))]})]}),!!m.length&&jsx(on,{items:x,layout:"grid","aria-labelledby":v,className:L(Xb,Qb,sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:tg,ref:y,autoFocus:false,selectionMode:"single",selectedKeys:s?[]:[e.toString(fo)],onSelectionChange:P})]})},XP=Te({newColor:{defaultMessage:"New Custom Color",id:"bui.colorInput.newColor"},cancel:{defaultMessage:"Cancel",id:"bui.colorInput.cancel"},add:{defaultMessage:"Add",id:"bui.colorInput.add"}});function z5({colorLabel:e,color:t,presets:r,isIndeterminate:o}){let{formatMessage:n}=fe(),{locale:i}=Q(),a=useMemo(()=>o?{id:"indeterminate",label:n(E5.indeterminate)}:r.find(u=>u.id===yn?!t:t?u5(t,_e(u.id)):false),[r,t,o,n]),l=useMemo(()=>{if(typeof e=="function")return e?.(t,{isIndeterminate:!!o});if(typeof e=="boolean")return e?c5(t,a,n(E5.transparent)):false;throw new TypeError("`colorLabel` must be a function or a boolean")},[t,e,n,a,o]),s=useMemo(()=>{if(a?.label)return a.label;t?.getColorName(i);},[t,i,a?.label]);return {colorName:l,humanReadableName:s}}var E5=Te({transparent:{defaultMessage:"Transparent",id:"bui.colorInput.transparent"},indeterminate:{defaultMessage:"Indeterminate",id:"bui.colorInput.indeterminate"}});var Xs=Un.forwardRef(({className:e,style:t,allowRemoval:r,allowAlpha:o=true,presets:n,labelPosition:i="top",colorLabel:a=true,includePicker:l=true,onChange:s,onChangeEnd:u,defaultValue:c,storePickedColorKey:p="baselinePickedColor",value:d,addColorButtonLabel:m,removeColorButtonLabel:f,customColorsLabel:y,onTriggerPress:g,renderTriggerButton:b=({isOpen:E,color:R,ref:_,colorName:D,triggerProps:F,labelId:z,isIndeterminate:N,indeterminateIcon:V})=>jsx(qd,{...A(F,{...S.label?{"aria-labelledby":z}:{"aria-label":S["aria-label"]}}),ref:_,isOpen:E,isDisabled:S.isDisabled,labelPosition:i,color:R,colorLabel:a,colorName:D,isIndeterminate:N,indeterminateIcon:V}),pickerMode:x="active",offset:h=2,placement:v=i==="start"?"bottom end":"bottom start","data-block-id":C,"data-block-class":T,isIndeterminate:P,indeterminateIcon:k,...S},w)=>{let E=Un.useRef(null),R=Un.useRef(null),_=vr(S),{triggerProps:D,overlayProps:F}=An({type:"listbox"},_,E),z=pr(S.portalContainer),[N,V]=ye(d===void 0?void 0:Ga(d),Ga(c),J=>s?.(J?.toFormat("rgba")||null)),{formatMessage:M}=fe(),O=useMemo(()=>d5(M(lg.noColor),n),[n,M]),B=ee(),{colorName:K}=z5({colorLabel:a,color:N,presets:O,isIndeterminate:P}),I=useMemo(()=>O.filter(J=>r||J.id!==yn),[O,r]),H=m||M(lg.addColor),U=f||M(lg.removeColor),q=y||M(lg.customColors),W=jsx(k5,{color:N||Gd,setColor:J=>{V(J),u?.(J?.toFormat("rgba")||null);},storePickedColorKey:p,addColorButtonLabel:H,removeColorButtonLabel:U,customColorsLabel:q,pickerMode:x,allowAlpha:o,isIndeterminate:!!P});return jsxs(Fragment,{children:[jsxs("div",{className:L({[QA]:i==="start"},"BaselineUI-ColorInput-Trigger",e),"data-block-id":C,"data-block-class":T,style:t,ref:w,children:[S.label?jsx("label",{id:B,className:e5({labelPosition:i}),children:S.label}):null,b({isOpen:_.isOpen,color:N,ref:E,colorName:K,triggerProps:A(D,{onPress:g}),labelId:B,isIndeterminate:P,indeterminateIcon:k})]}),jsx(Pt,{...S,portalContainer:z,placement:v,state:_,offset:h,className:L(Jb,"BaselineUI-ColorInput-Popover"),triggerRef:E,overlayProps:F,children:jsxs(Lr,{size:"content",className:Zb({includesCustomColorPicker:l}),ref:R,"aria-labelledby":S.label?B:void 0,"aria-label":S["aria-label"],children:[l&&x==="active"?jsxs(Fragment,{children:[jsx(ig,{color:N||Gd,setColor:V,allowAlpha:o,onChangeEnd:J=>{u?.(J?.toFormat("rgba")||null);}}),W]}):null,!!I.length&&jsxs(Fragment,{children:[l&&x==="active"?jsx(De,{}):null,jsx($P,{autoFocus:l&&x==="active"?false:"first",state:_,triggerRef:E,presets:I,color:N,setColor:J=>{V(J),u?.(J?.toFormat("rgba")||null);},isIndeterminate:!!P})]}),l&&x==="lazy"?W:null]})})]})});Xs.displayName="ColorInput";var lg=Te({addColor:{defaultMessage:"Add Color",id:"bui.colorInput.addColor"},removeColor:{defaultMessage:"Remove Color",id:"bui.colorInput.removeColor"},customColors:{defaultMessage:"Custom Colors",id:"bui.colorInput.customColors"},noColor:{defaultMessage:"None",id:"bui.colorInput.noColor"},transparent:{defaultMessage:"Transparent",id:"bui.colorInput.transparent"}});var I5=Un.forwardRef(({className:e,style:t,icon:r,variant:o="standard","data-block-id":n,tooltip:i=true,iconTooltip:a=true,...l},s)=>{let u=Un.useRef(null),{tooltipProps:c}=cr({label:l["aria-label"],tooltip:i}),p=useCallback(({isOpen:d,color:m,ref:f,colorName:y,triggerProps:g,isIndeterminate:b,indeterminateIcon:x})=>jsx(tt,{...c,children:o==="standard"?jsx(qd,{...g,"aria-label":l["aria-label"],ref:f,isOpen:d,isDisabled:l.isDisabled,color:m,colorLabel:false,colorName:y,isIndeterminate:b,indeterminateIcon:x}):jsx(og,{...g,isOpen:d,icon:TextIcon,color:m?.toString("hexa"),ref:f,isDisabled:l.isDisabled,"aria-label":l["aria-label"],isIndeterminate:b,indeterminateIcon:x})}),[l,c,o]);return jsxs(Z,{display:"flex",flexDirection:"row",gap:"md",paddingX:o==="standard"?"md":"none",alignItems:"center",className:L("BaselineUI-IconColorInput",e),"data-block-id":n,style:t,ref:se(s,u),children:[o==="standard"&&r?jsx(Ms,{icon:r,label:l["aria-label"],tooltip:a,"aria-hidden":"true",size:24,isFocusable:false,className:sprinkles({color:"icon.primary"})}):null,jsx(Xs,{...l,colorLabel:false,renderTriggerButton:p})]})});I5.displayName="IconColorInput";var sg=j({defaultClassName:"mnnh5s1 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6la _1yep5z6ld _1yep5z6lp _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ln",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq _1yep5z6138 _1yep5z6183 _1yep5z6184",false:"_1yep5z617q _1yep5z6127"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6126"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z613j _1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"mnnh5s8 _1yep5z6zd"}},defaultVariants:{},compoundVariants:[[{isHovered:true,hasLoadedImage:false},"_1yep5z61oh"],[{isHovered:true,hasLoadedImage:true},"mnnh5s9"],[{isInline:true,isDisabled:true},"_1yep5z61pb"],[{hasLoadedImage:true,includeCheckeredBackground:true},"_1yep5z61o9"]]}),_5="_1yep5z6d8",ug=j({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var M5=j({defaultClassName:"_1i0ytqa3 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6lo _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z612f",false:"_1yep5z612h"},isDisabled:{true:"_1i0ytqa7 _1yep5z6zd",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:true,isFocusVisible:true},"_1i0ytqa9 _1yep5z61p7 _1yep5z61u5 _1yep5z61u7"],[{isInline:false,isFocusVisible:true},"_1i0ytqaa"],[{isInline:true,isDisabled:true},"_1yep5z61oi"],[{isInline:false,isDisabled:true},"_1yep5z61ok"]]}),L5="_1i0ytqa0",cg=j({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ln",variantClassNames:{isInline:{false:"_1yep5z6126"},isDisabled:{true:"_1i0ytqad _1yep5z6zd"}},defaultVariants:{},compoundVariants:[]}),A5=j({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6ln",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});function O5({line:e,options:t}){let r=useRef([]),o=useMemo(()=>{let n=Math.ceil(e.length/Ys),i;for(let a=0;a<n;a++)if(!(!(a===n-1)&&!!r.current[a])){let u=e.slice(a*Ys-(a>0?1:0),a*Ys+Ys);i=yy(getStroke(u.map(([c,p,d])=>({x:c,y:p,pressure:d})),t)),u.length>=(a>0?Ys+1:Ys)&&(r.current[a]=i);}return i},[e,t]);return [...r.current,o]}var Ys=180;var UX={size:1,thinning:0,smoothing:0,streamline:0,easing:e=>e,start:{taper:0,easing:e=>e,cap:true},end:{taper:0,easing:e=>e,cap:true},simulatePressure:false},K5=Un.forwardRef(({className:e,style:t,canvasClassName:r,canvasStyle:o,isBound:n=true,strokeWidth:i=2,strokeColor:a="#3A87FD",onChange:l,defaultValue:s,onChangeEnd:u,enableHistory:c=false,isInline:p=true,isDisabled:d,placeholder:m,clearLabel:f,undoLabel:y,redoLabel:g,footerClassName:b,canvasRef:x,value:h,footerStyle:v,"data-block-id":C,"data-block-class":T,"aria-label":P="Drawing canvas",description:k="This is a canvas for drawing using a mouse or touch input.",...S},w)=>{let E=fe(),R=Un.useRef(null),[_,D]=Un.useState(h||s||[]),F=Un.useMemo(()=>({...UX,...S}),[S]),[z,N]=Un.useState(),V=ee(),{labelProps:M,fieldProps:O}=Jt({...S,"aria-label":P,labelElementType:"span"}),{isFocusVisible:B,focusProps:K}=oe({within:true}),{hoverProps:I,isHovered:H}=ie({isDisabled:d}),{undo:U,redo:q,canRedo:W,canUndo:J,push:me}=TI(_,{onAction:Ce=>{Ce&&(D(Ce),u?.(Ce));},isDisabled:!c}),{keyboardProps:ne}=Le({onKeyDown:Ce=>{Ce.key==="Backspace"?Ee():Ce.key==="z"&&(Ce.metaKey||Ce.ctrlKey)&&(Ce.shiftKey?W&&q():J&&U());}}),[de,ke]=useState(false),Ge=useCallback(Ce=>{let qe=Ce.currentTarget.getBoundingClientRect();N(qe),Ce.target.setPointerCapture(Ce.pointerId);let le=[Ce.clientX-qe.x,Ce.clientY-qe.y,Ce.pressure];D(ae=>[...ae,[le]]),ke(true);},[]),ut=useCallback(Ce=>{if(Ce.buttons!==1||!z)return;let le=H5(Ce.nativeEvent).map(ae=>[n?Xe(ae.clientX-z.left,0,z.width):ae.clientX-z.left,n?Xe(ae.clientY-z.top,0,z.height):ae.clientY-z.top,ae.pressure]);D(ae=>{let we=[...ae];return we[ae.length-1]=[...we[ae.length-1],...le],we});},[z,n]),br=()=>{z&&(u?.(_),me(_),ke(false),N(void 0));};useEffect(()=>{l?.(_);},[_,l]);let Ee=()=>{D([]),l?.([]),me([]);};return jsxs("div",{ref:se(R,w),className:L(L5,"BaselineUI-FreehandCanvas",e),style:t,"aria-disabled":d,"data-block-id":C,"data-block-class":T,children:[S.label||c?jsxs("div",{className:A5({isInline:p}),children:[S.label?jsx(Ye,{type:"label",size:"sm",...M,children:S.label}):jsx("span",{}),c?jsxs("div",{children:[jsx(pe,{variant:"secondary",size:"sm",isDisabled:!J||d,icon:UndoIcon,onPress:U,"aria-label":y||E.formatMessage(F5.undo)}),jsx(pe,{variant:"secondary",size:"sm",isDisabled:!W||d,icon:RedoIcon,onPress:q,"aria-label":g||E.formatMessage(F5.redo)})]}):null]}):null,jsxs("div",{role:"application",...A(K,ne,I,O),tabIndex:d?void 0:0,className:L(sg({isInline:p,isHovered:H}),M5({isFocusVisible:B,isInline:p,isDisabled:!!d}),r),"aria-describedby":S["aria-describedby"]||V,style:o,ref:x,children:[jsx(Oe,{children:jsx("div",{id:V,children:k})}),jsx("svg",{width:o?.width||"100%",height:o?.height||"100%",onPointerDown:Ge,onPointerMove:ut,onPointerUp:br,children:(h||_).map((Ce,qe,le)=>qe<le.length-1||!de?jsx(V5,{line:Ce,options:F,strokeColor:a,strokeWidth:i},qe):jsx(B5,{line:Ce,options:F,strokeColor:a,strokeWidth:i},qe))})]}),m||f?jsx("div",{style:v,className:L(cg({isInline:p,isDisabled:d}),b),children:(_.length||!m)&&f?jsx(Me,{size:"sm",variant:"ghost",label:f,isDisabled:d,onPress:Ee}):jsx(Me,{size:"sm",variant:"ghost",label:m,isDisabled:true})}):null]})});K5.displayName="FreehandCanvas";var V5=Un.memo(({line:e,options:t,strokeColor:r,strokeWidth:o})=>{let n=useMemo(()=>yy(getStroke(e.map(([i,a,l])=>({x:i,y:a,pressure:l})),t)),[e,t]);return jsx("path",{d:n,stroke:r,strokeWidth:o})});V5.displayName="Stroke";var B5=Un.memo(({line:e,options:t,strokeColor:r,strokeWidth:o})=>{let n=O5({line:e,options:t});return jsx(Fragment,{children:n.map((i,a)=>jsx("path",{d:i,stroke:r,strokeWidth:o},a))})});B5.displayName="SplitStroke";function H5(e){if(typeof e.getCoalescedEvents=="function"){let t=e.getCoalescedEvents();return t.length>0?t.flatMap(r=>H5(r)):[e]}return [e]}var F5=Te({undo:{defaultMessage:"Undo",id:"bui.freehandCanvas.undo"},redo:{defaultMessage:"Redo",id:"bui.freehandCanvas.redo"}});var j5=Un.forwardRef(({className:e,style:t,isInline:r=true,accept:o="image/*",defaultImageSrc:n,imageSrc:i,imageAlt:a,pickerButtonLabel:l,isDisabled:s,onDrop:u,onPaste:c,includeCheckeredBackground:p=true,"data-block-id":d,"data-block-class":m,pickerButtonStyle:f,pickerButtonClassName:y,footerClassName:g,footerStyle:b,clearLabel:x,placeholder:h,labelStyle:v,labelClassName:C,maxFileSize:T,onFileSizeError:P,onFileTypeError:k,...S},w)=>{let E=Un.useRef(null),R=Un.useRef(null),{formatMessage:_}=fe(),D=Ce=>!T||Ce.size<=T?true:(P?.(Ce),false),F=Ce=>YX(Ce,o)?true:(k?.(Ce),false),z=Ce=>F(Ce)&&D(Ce),[N,V]=ye(i,n||null,Ce=>{ge(typeof Ce!="string"),S.onValueChange?.(Ce?[Ce]:[]);}),M=useMemo(()=>XX(N||void 0),[N]),{fieldProps:O,labelProps:B}=Vr({...S,ref:E}),{dropProps:K,isDropTarget:I}=za({ref:E,onDrop:async Ce=>{if(s)return;let qe=await Cs({items:Ce.items});qe.length&&z(qe[0])&&V(qe[0]),u?.(Ce);},...S}),{clipboardProps:H}=Lc({onPaste:async Ce=>{if(s)return;let qe=await Cs({items:Ce});qe.length&&z(qe[0])&&V(qe[0]),c?.(Ce);},...S}),U=()=>{V(null),R.current&&(R.current.value="");},q={type:"file",onChange:Ce=>{let qe=[...Ce.target.files];qe.length&&z(qe[0])?V(qe[0]):qe.length&&(Ce.target.value=""),S.onChange?.(Ce);},accept:o,disabled:s},{focusProps:W,isFocused:J,isFocusVisible:me}=oe({within:true}),{hoverProps:ne,isHovered:de}=ie({isDisabled:s}),{imgProps:ke,isLoading:Ge,isLoaded:ut}=Oy({src:M,alt:a||""}),br={label:l||_(ZX.selectImage),onPress:()=>E.current?.click(),variant:"secondary",isDisabled:s,excludeFromTabOrder:true,className:L(Ly({isFocusVisible:me}),{[_5]:I&&!s},y),style:f},Ee=he({"data-loaded":ut,"data-block-id":d,"data-block-class":m,"data-hovered":de,"data-focused":J,"data-drop-target":I,"data-disabled":s,"data-focus-visible":me});return jsxs(Z,{...Ee,className:L("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:t,ref:w,children:[jsxs("label",{...A(K,ne,W,B),className:L(sg({isInline:r,isHovered:de,isDisabled:s,hasLoadedImage:!!M&&ut,showFocusRing:I||!!M&&me}),C),style:v,ref:E,children:[jsx(Oe,{children:jsx("input",{...A(O,H,q),ref:R})}),!M&&jsx(Me,{...br}),!!M&&(Ge?jsx(dn,{}):jsx("img",{className:ug({isInline:r,isDisabled:s,hasLoadedImage:!!M&&ut&&p}),...ke}))]}),h||x?jsx("div",{style:b,className:L(cg({isInline:r,isDisabled:s}),g),children:(M||!h)&&x?jsx(Me,{size:"sm",variant:"ghost",label:x,isDisabled:s,onPress:U}):jsx(Me,{size:"sm",variant:"ghost",label:h,isDisabled:true})}):null]})});j5.displayName="ImageDropZone";function XX(e){return !e||typeof e=="string"?e:URL.createObjectURL(e)}function YX(e,t){if(!t)return true;let r=t.split(",").map(i=>i.trim().toLowerCase()).filter(Boolean);if(r.length===0)return true;let o=e.type.toLowerCase(),n=e.name.toLowerCase();return r.some(i=>i==="*/*"?true:i.startsWith(".")?n.endsWith(i):o?i.endsWith("/*")?o.startsWith(i.slice(0,-1)):o===i:true)}var ZX=Te({selectImage:{defaultMessage:"Select Image",id:"bui.imageDropZone.selectImage"}});var G5="_1vm2oh49 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6g4",eS="_1vm2oh48 _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",U5=j({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6lt _1yep5z6lr _1yep5z6ic _1yep5z6lu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6la _1yep5z6lp _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6137 _1yep5z6182 _1yep5z6184",false:"_1yep5z612h"},isFocusVisible:{true:"_1yep5z613j _1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"mnnh5s8 z9nup82 _1yep5z6zd"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:true},"_1yep5z61oi"],[{accent:"theme",isInline:true},"_1yep5z61o7"],[{accent:"positive",isInline:false},"_1yep5z61ok"],[{accent:"theme",isInline:false},"_1yep5z61o9"],[{isFocusVisible:true,isInline:true},"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u0"],[{isHovered:true,isInline:true},"_1yep5z61u0 _1yep5z61q3 _1yep5z61tx _1yep5z61tz"],[{isHovered:true,isInline:false,accent:"positive"},"_1yep5z61oj"],[{isHovered:true,isInline:false,accent:"theme"},"_1yep5z61ob"],[{isHovered:true,isInline:true,accent:"theme"},"_1yep5z61o8"]]});var q5=Un.forwardRef(({className:e,style:t,isDisabled:r,isInline:o=true,imageAlt:n,imageSrc:i,svgSrc:a,textValue:l,textStyle:s,onPress:u,onDelete:c,deleteAriaLabel:p,addAriaLabel:d,accent:m="positive","data-block-id":f,"data-block-class":y,...g},b)=>{let{focusProps:x,isFocused:h,isFocusVisible:v}=oe({within:true}),{isHovered:C,hoverProps:T}=ie({isDisabled:r}),{pressProps:P}=Ae({isDisabled:r,onPress:u});ge(i||a||l,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let k=he({"data-hovered":C,"data-focus-visible":v,"data-focused":h,"data-disabled":r});return jsxs("div",{...g,className:L(U5({isInline:o,isFocusVisible:v,isDisabled:r,isHovered:C,accent:m}),"BaselineUI-Preview",e),"data-block-id":f,"data-block-class":y,"aria-label":g["aria-label"]||n||l,style:t,ref:b,children:[typeof a=="string"?jsx("button",{disabled:r,...A(T,x,P,k),className:eS,"aria-label":d,dangerouslySetInnerHTML:{__html:a}}):jsxs("button",{...A(T,x,P,k),disabled:r,style:s,"aria-label":d,className:eS,children:[i?jsx("img",{src:i,alt:n,className:ug({isInline:o,isDisabled:r})}):null,!!a&&typeof a=="object"&&a,l]}),c?jsx(pe,{isDisabled:r,className:G5,"aria-label":p,size:"xs",icon:TrashIcon,onPress:c}):null]})});q5.displayName="Preview";var X5="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e",Y5=j({defaultClassName:"cw3m0n5 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),Z5="cw3m0n4",J5="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6lk",Q5=j({defaultClassName:"cw3m0n0 _1yep5z61j6 _1yep5z61j7 _1yep5z61j8 _1yep5z61ju _1yep5z61jv _1yep5z61jw _1yep5z61ki _1yep5z61kj _1yep5z61kk _1yep5z61l6 _1yep5z61l7 _1yep5z61l8 _1yep5z61nb _1yep5z61tg",variantClassNames:{isHovered:{true:"cw3m0n1"},isReadOnly:{true:"cw3m0n2"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isReadOnly:false},"cw3m0n3"]]});var tY=({label:e,description:t},{isSelected:r,isFocusVisible:o,isDisabled:n,optionLabelPosition:i,isHovered:a,isReadOnly:l})=>jsxs("div",{className:yb({labelPosition:i}),children:[jsx("div",{className:L(Os({isSelected:r,isFocusVisible:o,isDisabled:n,isReadOnly:l,isHovered:a}),Q5({isHovered:a})),children:r?jsx("div",{className:Z5}):null}),e?jsxs("div",{className:X5,children:[jsx("span",{className:fb({isDisabled:n}),children:e}),t?jsx("span",{className:Y5({isDisabled:n}),children:t}):null]}):null]}),e6=({state:e,renderOption:t=tY,item:r,optionLabelPosition:o="end",optionStyle:n,optionClassName:i,isReadOnly:a,...l})=>{let s=!!l.isDisabled||!!l.disabledValues?.includes(r.id),u=Un.useRef(null),{inputProps:c,isPressed:p,isSelected:d,labelProps:m}=Gx({...l,isDisabled:s,children:r.label,value:r.id},e,u),{focusProps:f,isFocusVisible:y,isFocused:g}=oe(),{hoverProps:b,isHovered:x}=ie({isDisabled:s},u),h=he({"data-selected":d,"data-focused":g,"data-focus-visible":y,"data-hovered":x,"data-disabled":s,"data-pressed":p,"data-read-only":a});return jsxs("label",{...A(m,b,h),style:n,className:L("BaselineUI-Radio-Item",i),children:[jsx(Oe,{children:jsx("input",{...A(c,f),ref:u})}),t(r,{isFocusVisible:y,isSelected:d,isFocused:g,isHovered:x,isDisabled:s,optionLabelPosition:o,isReadOnly:a})]})};var r6=Un.forwardRef(({className:e,style:t,optionsContainerClassName:r,optionsContainerStyle:o,items:n,labelPosition:i="top",renderOption:a,"aria-label":l,"aria-labelledby":s,"aria-describedby":u,"aria-details":c,"data-block-id":p,"data-block-class":d,...m},f)=>{let y=ce(f),g=Wx(m),{radioGroupProps:b,labelProps:x,descriptionProps:h,errorMessageProps:v}=Ux({...m,"aria-label":l,"aria-labelledby":s,"aria-describedby":u,"aria-details":c},g,y),C=mr({...m,descriptionProps:h,errorMessageProps:v,labelPosition:i}),T=he({"data-orientation":m.orientation,"data-block-id":p,"data-block-class":d,"data-disabled":m.isDisabled,"data-readonly":m.isReadOnly});return jsxs("div",{...A(b,T),className:L(an({labelPosition:i}),"BaselineUI-RadioGroup",e),style:t,ref:y,children:[m.label||C?jsxs("div",{className:nn({labelPosition:i,hasMessage:!!C}),children:[jsx("span",{...x,className:L(Di,"BaselineUI-RadioGroup-Label"),children:m.label}),i==="start"&&C]}):null,jsx("div",{className:L(J5,{[ks]:m.isDisabled},r),style:o,children:n.map(P=>jsx(e6,{state:g,renderOption:a,item:P,...m,value:P.id},P.id))}),i==="top"&&C]})});r6.displayName="RadioGroup";var o6=({id:e,defaultMessage:t,elementType:r=Fragment$1})=>{ge(e||t,"`id` or `defaultMessage` is required.");let n=fe().formatMessage({id:e,defaultMessage:t});return jsx(r,{children:n})};o6.displayName="MessageFormat";var n6=Un.forwardRef(({className:e,style:t,children:r,"data-block-id":o,"data-block-class":n,role:i="group",isDisabled:a,...l},s)=>{let{hoverProps:u,isHovered:c}=ie({isDisabled:a});return jsx("div",{...u,role:i,"data-hovered":c,"data-disabled":a,"data-block-id":o,"data-block-class":n,className:e,style:t,...l,ref:s,children:r})});n6.displayName="Group";var sY=0,iS="UNSUPPORTED_IN_MENU";function a6(e){return useMemo(()=>Un.Children.toArray(e).map(t=>{let r=t,o=`item${++sY}`,n=Js(r,Io),i=i6(r),a,l;if(n){let b=Js(n,_o);ge(b),a=i6(b),l=Js(n,Pt).props.children;}else i?a=i:a=r;let{onPress:s,label:u,"aria-label":c,iconStart:p,isDisabled:d,icon:m}=a.props,f=u||c||iS;ge(typeof f=="string","ActionGroup children must have a string label");let y=`${o}-${f}`;return createElement(uo,{...{key:y,onPress:s,textValue:f,"aria-label":c,icon:p||m,dialogContent:l,isDisabled:d},key:y},r)}),[e])}function Js(e,t){if(t){for(let r of Un.Children.toArray(e))if(Un.isValidElement(r)){if(r.type===t)return r;if(r.props.children){let o=Js(r.props.children,t);if(o)return o}}}}function i6(e){return Js(e,Me)||Js(e,pe)}var cY=new Set(["text","search","password","tel","url"]);function pg({props:e,ref:t}){let{toolbarProps:r}=Zf(e,t),{direction:o}=Q(),n=o==="rtl";return {toolbarProps:{...r,onKeyDownCapture:i=>{let a=i.target,l=i.key,s=()=>{let u=t.current;if(!u)return;let c=ue(G(u));if(!c||!Y(u,c)||c.dataset.buiAvoidFocus!=="true")return;let p=mY(u),d=p.indexOf(c);if(d===-1)return;let m=dY({key:l,orientation:e.orientation??"horizontal",isRTL:n});if(!m)return;let f=d+m;for(;f>=0&&f<p.length;){let y=p[f];if(y.dataset.buiAvoidFocus!=="true"&&!y.matches('[disabled], [aria-disabled="true"]')){y.focus();return}f+=m;}};if(fY(a)&&cY.has(a.type)){let u=a.selectionStart===0,c=a.selectionEnd===a.value.length;(u&&(n&&i.key==="ArrowRight"||!n&&i.key==="ArrowLeft")||c&&(n&&i.key==="ArrowLeft"||!n&&i.key==="ArrowRight"))&&(r.onKeyDownCapture?.(i),s());return}r.onKeyDownCapture?.(i),s();}}}}function dY({key:e,orientation:t,isRTL:r}){return t==="vertical"?e==="ArrowUp"?-1:e==="ArrowDown"?1:null:e==="ArrowLeft"?r?1:-1:e==="ArrowRight"?r?-1:1:null}var pY='button, [role="button"], input, [tabindex]';function mY(e){let t=[],r=o=>{t.push(...o.querySelectorAll(pY));for(let n of o.querySelectorAll("*"))n.shadowRoot&&r(n.shadowRoot);};return r(e),t}function fY(e){return e.tagName.toLowerCase()==="input"}var l6="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6lf",s6={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var lS=Un.forwardRef(({className:e,style:t,children:r,collapsibleMenuProps:o,"data-block-id":n,"data-block-class":i,renderSpacer:a,onKeyDown:l,isSingleTabStop:s=true,...u},c)=>{let{formatMessage:p}=fe(),[d,m]=useState(),f=a6(r),y=Mt({...u,children:f}),g=ce(c),b=useRef(null),[{visibleItems:x,isMeasuring:h},v]=fl({visibleItems:y.collection.size,isMeasuring:false}),C=useCallback(()=>{let _=D=>{if(b.current&&g.current){let F=[...b.current.children],z=g.current.getBoundingClientRect().width,N=D<y.collection.size,V=0,M=0;if(N){let O=F.pop();O&&(V+=d6(O,false,true));}for(let[O,B]of F.entries())if(V+=d6(B,O===0,O===F.length-1),Math.round(V)<=Math.round(z))M++;else break;return M}return D};v(function*(){yield {visibleItems:y.collection.size,isMeasuring:true};let D=_(y.collection.size),F=D<y.collection.size&&D>0;yield {visibleItems:D,isMeasuring:F},F&&(yield {visibleItems:_(D),isMeasuring:false});});},[v,g,y.collection.size]),T=useMemo(()=>({get current(){return g.current?.parentElement}}),[g]);jr({ref:T,onResize:C}),te(C,[y.collection,C]);let{toolbarProps:P}=pg({props:{...u,isSingleTabStop:s},ref:g}),k=[...y.collection],S=k.slice(0,x),w=k.slice(x).filter(_=>_.textValue!==iS),E=w.length>0;useEffect(()=>{m(void 0);},[w.length]),useEffect(()=>{u.orientation==="vertical"&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[u.orientation]);let{keyboardProps:R}=Le({onKeyDown:l});return jsxs(Et,{children:[jsx("div",{...A(P,R),className:e,"data-block-id":n,"data-block-class":i,"data-collapse":true,style:{...t,flexBasis:h?"100%":void 0},ref:g,children:jsxs("div",{ref:b,className:l6,children:[S.map(_=>_.rendered),E?jsxs(Fragment,{children:[!h&&a?jsx(Z,{flexGrow:1}):null,jsx(xb,{placement:"bottom end",renderTrigger:({buttonProps:_,ref:D})=>jsx(pe,{..._,size:"md",icon:MoreIcon,"aria-label":p(xY.more),variant:"toolbar",ref:D,tooltip:true}),...o,disabledKeys:w.filter(_=>_.props?.isDisabled).map(_=>_.key),items:w.map(_=>{let D=_.textValue||_["aria-label"];return ge(D,"ActionItem must have a label"),{id:_.key,label:D,icon:_.props.icon}}),onAction:_=>{let D=y.collection.getItem(_);ge(D,"Item not found");let{onPress:F,dialogContent:z}=D.props;F?.(),m(z);}})]}):null]})}),jsx(ln,{isOpen:!!d,onOpenChange:_=>{_||m(void 0);},children:jsx(sn,{enableDrawer:"auto",style:{zIndex:1e5},children:d?Un.cloneElement(d,{inheritDrawer:true}):null})})]})});lS.displayName="CollapsibleToolbar";function d6(e,t,r){let n=X(e).getComputedStyle(e);return e.getBoundingClientRect().width+(t?0:p6(n.marginLeft))+(r?0:p6(n.marginRight))}function p6(e){let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}var xY=Te({more:{id:"bui.toolbar.more",defaultMessage:"More"}});var sS=Un.forwardRef(({className:e,style:t,isSingleTabStop:r=true,"data-block-id":o,"data-block-class":n,"aria-controls":i,onKeyDown:a,...l},s)=>{let u=Un.useRef(null),{toolbarProps:c}=pg({props:{...l,isSingleTabStop:r},ref:u}),{keyboardProps:p}=Le({onKeyDown:a});return jsx("div",{...A(c,p),...i?{"aria-controls":i}:{},className:L(s6[l.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,"data-block-id":o,"data-block-class":n,ref:se(s,u),children:l.children})});sS.displayName="WrappedToolbar";var mg=Un.forwardRef((e,t)=>{let r=e.isCollapsible?lS:sS;return jsx(r,{...e,ref:t})});mg.displayName="Toolbar";var f6=j({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),y6=j({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup82 _1yep5z611a"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:true},"_1yep5z61u0 _1yep5z61tz _1yep5z61tx _1yep5z61qd _1yep5z61nd"],[{isSelected:false,isHovered:true,isDisabled:false},"_1yep5z6g3"],[{isSelected:false,isFocusVisible:true,isDisabled:false},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:true,isFocusVisible:true,isDisabled:false},"_1j5skr7k _1yep5z61ty _1yep5z61tx _1yep5z61q4 _1yep5z61ne"],[{isSelected:true,isFocusVisible:false,isDisabled:false},"_1yep5z61tx _1yep5z61tz _1yep5z61q3 _1yep5z61u0"]]}),b6=j({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z617x _1yep5z617w _1yep5z6140 _1yep5z617u"},isSelected:{true:"_1yep5z6119"},isDisabled:{true:"z9nup82 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61nc"]]}),g6=j({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z617x _1yep5z617w _1yep5z6140 _1yep5z617u"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup82 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61o9"],[{isSelected:true,isDisabled:false},"_1yep5z61o9 _1yep5z61ng"],[{isSelected:true,isDisabled:true},"_1yep5z61o9 _1yep5z61nd"]]}),h6=j({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup82 _1yep5z611c"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false},"_1j5skr7c _1yep5z61nf"],[{isSelected:false,isDisabled:true},"_1j5skr7d _1yep5z61nd"],[{isSelected:false,isHovered:true},"_1yep5z61o9"],[{isSelected:false,isFocusVisible:true},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:true,isFocusVisible:true},"_1j5skr7e _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]});var kY={xxs:8,xs:12,sm:16,md:20,lg:24},Wr=Un.forwardRef((e,t)=>{let r=ce(t),{tooltipProps:o}=Iy(e,r);return o?jsx(tt,{...o,children:jsx(uS,{...e,ref:t})}):jsx(uS,{...e,ref:t})});Wr.displayName="ToggleIconButton";var uS=Un.forwardRef(({className:e,style:t,icon:r,size:o="md",variant:n="primary","data-block-id":i,"data-block-class":a,...l},s)=>{let u=Er(l),{buttonProps:c,isPressed:p,ref:d,isFocusVisible:m,isFocused:f,isHovered:y,uiStateOptions:g}=My(l,u),b=useMemo(()=>typeof r=="function"?r:u.isSelected?r.selected:r.unselected,[r,u.isSelected]),x={isSelected:u.isSelected,isHovered:y,isFocusVisible:m,isDisabled:!!l.isDisabled},h=he({"data-hovered":y,"data-selected":u.isSelected,"data-focus-visible":m,"data-disabled":l.isDisabled,"data-block-id":i,"data-block-class":a,"data-focused":f,"data-pressed":p});return jsx("button",{...A(c,h),className:L(n==="toolbar"&&h6(x),n==="primary"&&y6(x),n==="secondary"&&b6(x),n==="tertiary"&&g6(x),f6({size:o}),"BaselineUI-ToggleIconButton",typeof e=="function"?e(g):e),style:typeof t=="function"?t(g):t,ref:se(d,s),children:jsx(b,{size:kY[o]})})});uS.displayName="ToggleIconButtonCore";var x6="f6jv6bm",T6="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6js _1yep5z6jt _1yep5z6ju",eu="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",C6=j({defaultClassName:"f6jv6b0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6g1",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vo _1yep5z6vp _1yep5z6vq _1yep5z615m _1yep5z615n _1yep5z615o",false:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[[{isInline:true,isMinimal:false},"_1yep5z61ir _1yep5z61is _1yep5z61it _1yep5z61jf _1yep5z61jg _1yep5z61jh _1yep5z61k3 _1yep5z61k4 _1yep5z61k5 _1yep5z61kr _1yep5z61ks _1yep5z61kt _1yep5z61u7 _1yep5z61u5 _1yep5z61pa"]]}),Jd=j({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6lq",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),P6="f6jv6b6",S6="f6jv6bj _1yep5z6wr _1yep5z6ws _1yep5z6wt _1yep5z6xf _1yep5z6xg _1yep5z6xh _1yep5z6y3 _1yep5z6y4 _1yep5z6y5 _1yep5z6yr _1yep5z6ys _1yep5z6yt",D6="f6jv6bk";var k6="f6jv6bn _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6ly _1yep5z6lt _1yep5z6lr _1yep5z6hx _1yep5z6eu",E6=j({defaultClassName:"f6jv6bg _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6lq _1yep5z6la _1yep5z6ld _1yep5z6lp",variantClassNames:{isHovered:{true:"_1yep5z6126"},isDisabled:{true:"_1yep5z6zd"}},defaultVariants:{},compoundVariants:[]}),z6="_1yep5z6jy _1yep5z6jz _1yep5z6k0",w6="f6jv6bf f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu _1yep5z6e3 _1yep5z6ln",R6=j({defaultClassName:"f6jv6bc _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",variantClassNames:{isInline:{true:"_1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6184 _1yep5z6182 _1yep5z6137",false:"_1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8"}},defaultVariants:{},compoundVariants:[]}),I6="f6jv6bl",_6="f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu",fg=j({defaultClassName:"f6jv6b7",variantClassNames:{isInline:{true:"f6jv6b8",false:"f6jv6b9"}},defaultVariants:{},compoundVariants:[]}),yg="f6jv6ba _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl",Qd="f6jv6bo";var bg=Un.forwardRef(({value:e,defaultValue:t,onChange:r,placeholder:o,spellCheck:n,textBoxRef:i,isInline:a,isMinimal:l,isDisabled:s,editableContentAriaLabel:u,editorHandle:c,autoFocus:p,saveOnEnter:d,onSave:m},f)=>{let y=Un.useRef(null),[g,b]=ye(e,t||"",r),x=useCallback(_=>{b(_.currentTarget.value||"");},[b]),h=useCallback(_=>{(d&&_.key==="Enter"&&!_.shiftKey||(_.ctrlKey||_.metaKey)&&_.key==="Enter")&&(_.preventDefault(),m());},[d,m]);useImperativeHandle(f,()=>({clear:()=>{b("");}}));let v=useCallback(_=>{_.currentTarget.style.height="16px",_.currentTarget.style.height=_.currentTarget.scrollHeight+"px";},[]);useGranularLayoutEffect(()=>{let _=y.current;_&&(_.style.height="16px",_.style.height=_.scrollHeight+"px");},[l],[g]),useImperativeHandle(c,()=>({setCaretPosition:_=>{y.current&&(y.current.focus(),y.current.setSelectionRange(_,_));},focus:()=>{y.current&&y.current.focus();}}));let C=p===true||p==="start"||p==="end",T=typeof p=="string"?p:void 0;useEffect(()=>{if(T&&y.current){let _=T==="start"?0:T==="end"?y.current.value.length:void 0;_!==void 0&&y.current.setSelectionRange(_,_);}},[T]);let{focusProps:P,isFocused:k,isFocusVisible:S}=oe(),{hoverProps:w,isHovered:E}=ie({}),R=he({"data-focus-visible":S,"data-hovered":E,"data-focused":k});return jsx("textarea",{...A(P,w,R),ref:se(y,i),className:L({[Jd()]:!l,[fg({isInline:a})]:!l,[_6]:!l,[w6]:l},"BaselineUI-Editor-PlainEditorEditingArea"),autoFocus:C,onChange:x,disabled:s,onInput:v,value:g,placeholder:o,spellCheck:n,"aria-label":u,onKeyDown:h})});bg.displayName="PlainEditor";var O6=[["Toolbar Focus","Alt+F10"],["Bold","Ctrl+B"],["Italic","Ctrl+I"],["Underline","Ctrl+U"],["Select All","Ctrl+A"],["Cut","Ctrl+X"],["Copy","Ctrl+C"],["Paste","Ctrl+V"],["Undo","Ctrl+Z"],["Redo","Ctrl+Shift+Z"],["Submit","Ctrl+Enter"],["Open Help Dialog","Ctrl+Shift+H"]],{dialog:{row:ep}}=layoutSprinkleValues,N6=({isOpen:e,onClose:t})=>{let{formatMessage:r}=fe(),o=ee();return jsx(ln,{isOpen:e,onOpenChange:n=>{n||t();},children:jsx(sn,{enableDrawer:"auto",style:{zIndex:999999},children:jsxs(Lr,{"aria-labelledby":o,className:S6,drawerBackground:"subtle",children:[jsxs(Z,{paddingLeft:ep.padding.horizontal.lg,paddingRight:ep.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:D6,children:[jsx(Ye,{id:o,elementType:"h3",type:"title",size:"md",children:r(tp.help)}),jsx(pe,{icon:XIcon,size:"md",variant:"secondary","aria-label":r(tp.close),"data-testid":"editor-help-dialog-close-button",onPress:t})]}),jsx(De,{className:I6}),jsxs(Z,{paddingX:ep.padding.horizontal.lg,role:"table","aria-labelledby":o,backgroundColor:"background.primary.subtle",children:[jsx("div",{role:"rowgroup",children:jsxs(Z,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:ep.padding.vertical.md,color:"text.primary",children:[jsx("h6",{className:sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",children:r(tp.action)}),jsx("h6",{className:sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:r(tp.shortcut)})]})}),jsx("div",{role:"rowgroup",children:O6.map(([n,i],a)=>jsxs(Fragment$1,{children:[jsxs(Z,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:ep.padding.vertical.xs,style:{minHeight:40},children:[jsx(Ye,{type:"subtitle",size:"sm",role:"cell",children:r(tp[oF(n)])}),jsx(Ye,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:by(i,true)})]}),a!==O6.length-1&&jsx(De,{})]},n))})]})]})})})},tp=Te({toolbarFocus:{id:"bui.editor.toolbarFocus",defaultMessage:"Toolbar Focus"},help:{id:"bui.editor.help",defaultMessage:"Help"},close:{id:"bui.editor.close",defaultMessage:"Close"},action:{id:"bui.editor.action",defaultMessage:"Action"},shortcut:{id:"bui.editor.shortcut",defaultMessage:"Shortcut"},bold:{id:"bui.editor.bold",defaultMessage:"Bold"},italic:{id:"bui.editor.italic",defaultMessage:"Italic"},underline:{id:"bui.editor.underline",defaultMessage:"Underline"},selectAll:{id:"bui.editor.selectAll",defaultMessage:"Select All"},cut:{id:"bui.editor.cut",defaultMessage:"Cut"},copy:{id:"bui.editor.copy",defaultMessage:"Copy"},paste:{id:"bui.editor.paste",defaultMessage:"Paste"},undo:{id:"bui.editor.undo",defaultMessage:"Undo"},redo:{id:"bui.editor.redo",defaultMessage:"Redo"},openHelpDialog:{id:"bui.editor.openHelpDialog",defaultMessage:"Open Help Dialog"},submit:{id:"bui.editor.submit",defaultMessage:"Submit"}});var LY=_e("#ffffff00").toString("hexa"),dS=[{label:"Red",color:"#ff0000"},{label:"Green",color:"#00ff00"},{label:"Blue",color:"#0000ff"},{label:"Yellow",color:"#ffff00"},{label:"Cyan",color:"#00ffff"},{label:"Magenta",color:"#ff00ff"},{label:"Black",color:"#000000"},{label:"White",color:"#ffffff"},{label:"Gray",color:"#808080"},{label:"Orange",color:"#ffa500"},{label:"Brown",color:"#a52a2a"},{label:"Purple",color:"#800080"}];[...dS,{label:"Transparent",color:LY}];var ru="p",bo="a",bn="mention",Li="mention_input";function pS(e,t){return typeof e=="object"&&e!==null&&"type"in e&&e.type===t}function je(e){return typeof e=="object"&&e!==null&&"text"in e&&!("type"in e)}function st(e){return pS(e,bo)}function Vn(e){return pS(e,bn)}function Bn(e){return pS(e,Li)}function go(e){return Vn(e)||Bn(e)}function ou(){return [{type:ru,children:[{text:""}]}]}function gg(e,t){return e.bold===t.bold&&e.italic===t.italic&&e.underline===t.underline&&Ti(e.color,t.color)&&Ti(e.backgroundColor,t.backgroundColor)}function hg(e,t){let r=false;for(let i=0;i<e.length;i++){let a=e[i];if(a.text===""&&!(t&&e.length===1)){r=true;break}if(i>0&&gg(e[i-1],a)){r=true;break}}if(!r)return e;let o=e.filter(i=>i.text!==""),n=[];for(let i of o){let a=n.at(-1);a!==void 0&&gg(a,i)?n[n.length-1]={...a,text:a.text+i.text}:n.push(i);}return n}function AY(e){let t=(i,a)=>i===0&&a===e.length||i>0&&go(e[i-1]),r=false,o=-1;for(let i=0;i<=e.length;i++){let a=e[i],l=i<e.length&&je(a);if(l&&o===-1)o=i;else if(!l&&o!==-1){let s=e.slice(o,i);if(hg(s,t(o,i))!==s){r=true;break}o=-1;}}if(!r)return e;let n=[];o=-1;for(let i=0;i<=e.length;i++){let a=e[i],l=i<e.length&&je(a);if(l&&o===-1)o=i;else if(!l&&o!==-1){let s=e.slice(o,i),u=hg(s,t(o,i));for(let c of u)n.push(c);o=-1;}!l&&i<e.length&&n.push(a);}return n}function OY(e){let t=false;for(let o=1;o<e.length;o++){let n=e[o-1],i=e[o];if(st(n)&&st(i)&&n.url===i.url){t=true;break}}if(!t)return e;let r=[];for(let o of e){let n=r.at(-1);if(st(o)&&n!==void 0&&st(n)&&n.url===o.url){let i=hg([...n.children,...o.children],false);r[r.length-1]={...n,children:i};}else r.push(o);}return r}function NY(e){let t=hg(e.children,e.children.length===1);return t.reduce((o,n)=>o+n.text,"")===""?null:t===e.children?e:{...e,children:t}}function FY(e){let t=false,r=[];for(let s of e)if(st(s)){let u=NY(s);u===null?t=true:(r.push(u),u!==s&&(t=true));}else r.push(s);let o=t?r:e,n=AY(o),i=OY(n),a=(s,u)=>go(s[u])&&(u===s.length-1||!je(s[u+1])),l=i;if(i.some((s,u)=>a(i,u))){l=[];for(let[s,u]of i.entries())l.push(u),a(i,s)&&l.push({text:""});}return l.length===0?[{text:""}]:l===o&&!t?e:l}function qt(e){if(e.length===0)return ou();let t=false,r=e.map(o=>{let n=FY(o.children);return n===o.children?o:(t=true,{...o,children:n})});return t?r:e}function Or(e){if(je(e))return e.text.length;switch(e.type){case bo:{let t=0;for(let r=0;r<e.children.length;r++)t+=e.children[r].text.length;return t}case bn:return e.displayName.length;case Li:return e.children[0].text.length;default:return e}}function nu(e){if(e.length===0)return 0;let t=e.length-1;for(let r of e)for(let o of r.children)t+=Or(o);return t}var KY=1,fS=3;function rp(e){return e.nodeType===KY}function iu(e,t){return e.tagName.toLowerCase()===t}function VY(e){if(!rp(e))return false;let t=e.tagName.toLowerCase();return t==="p"||t==="div"}function BY(e){return rp(e)&&e.querySelector("p, div")!==null}var HY=new RegExp("["+String.fromCodePoint(8203)+String.fromCodePoint(65279)+"]","g"),$Y=String.fromCodePoint(160);function Ya(e){return e.replaceAll(HY,"").replaceAll($Y," ")}function K6(e,t){let r={...t},o=e.tagName.toLowerCase();(o==="b"||o==="strong")&&(r.bold=true),(o==="i"||o==="em")&&(r.italic=true),o==="u"&&(r.underline=true);let n=e.style;if(n){let i=n.fontWeight;(i==="bold"||Number.parseInt(i,10)>=600&&i!=="")&&(r.bold=true),n.fontStyle==="italic"&&(r.italic=true),n.textDecoration?.includes("underline")&&(r.underline=true);let a=n.color;a&&(r.color=a);let l=n.backgroundColor;l&&(r.backgroundColor=l);}return r}function vg(e,t,r,o){for(let n=0;n<e.childNodes.length;n++){let i=e.childNodes[n];if(i.nodeType===fS){let l=i.nodeValue??"",s=Ya(l);s.length>0&&o.push(B6(s,t));continue}if(!rp(i))continue;if(iu(i,"span")&&i.dataset.userId!==void 0){let l=i.dataset.userId??"",s=i.textContent??"",u=s.startsWith("@")?s.slice(1):s;o.push({type:bn,value:l,displayName:u,children:[{text:""}]});continue}if(iu(i,"span")&&i.dataset.mentionAnchor!==void 0){let l=i.textContent??"";o.push({type:Li,children:[{text:l}]});continue}if(iu(i,"a")){{let l=i.getAttribute("href")??"",s=[];V6(i,t,s);let u=yS(s);u.some(p=>p.text.length>0)&&o.push({type:bo,url:l,children:u});}continue}if(iu(i,"br")){o.push({text:"\0BR\0"});continue}let a=K6(i,t);vg(i,a,r,o);}}function V6(e,t,r){for(let o=0;o<e.childNodes.length;o++){let n=e.childNodes[o];if(n.nodeType===fS){let a=n.nodeValue??"",l=Ya(a);l.length>0&&r.push(B6(l,t));continue}if(!rp(n))continue;if(iu(n,"br")){r.push({text:"\0BR\0"});continue}let i=K6(n,t);V6(n,i,r);}}function B6(e,t){let r={text:e};return t.bold&&(r.bold=true),t.italic&&(r.italic=true),t.underline&&(r.underline=true),t.color&&(r.color=t.color),t.backgroundColor&&(r.backgroundColor=t.backgroundColor),r}var H6="\0BR\0";function yS(e){let t=[...e];if(t.length===1&&mS(t[0]))return [{text:""}];let r=t.length,o=0;for(;o<r&&mS(t[r-1-o]);)o+=1;let n=o>=2?o-1:0;r-=o;let i=[];for(let a=0;a<r;a++){let l=t[a];mS(l)?F6(i):i.push(l);}for(let a=0;a<n;a++)F6(i);return i}function mS(e){return "text"in e&&e.text===H6}function F6(e){let t=e.at(-1);t!==void 0&&"text"in t&&!("type"in t)?t.text+=`
|
|
25
|
-
`:e.push({text:`
|
|
26
|
-
`});}function jY(e){let t=[];vg(e,{},false,t);let r=yS(t);return {type:ru,children:r.length>0?r:[{text:""}]}}function xg(e){let t=e.childNodes;if(t.length===0)return ou();let r=[],o=[];function n(){if(o.length===0)return;let a=yS(o);r.push({type:ru,children:a.length>0?a:[{text:""}]}),o=[];}function i(a){for(let l of a)if(VY(l))n(),r.push(jY(l));else if(l.nodeType===fS){let s=l.nodeValue??"",u=Ya(s);u.trim().length>0&&o.push({text:u});}else rp(l)&&(iu(l,"br")?o.push({text:H6}):BY(l)?(n(),i(l.childNodes)):vg(l,{},false,o));}return i(t),n(),r.length===0?ou():qt(r)}function UY(e){return Object.entries(e).map(([t,r])=>`${GY(t)}:${r}`).filter(([,t])=>!!t).join(";")}function j6(e){return "text"in e}function op(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function gn(e){let t=e.trim(),r=t.replaceAll(/[\u0000- ]/g,""),o=/^([a-z][a-z0-9+.-]*):/i.exec(r);if(!o)return t;let n=o[1].toLowerCase();return new Set(["javascript","data","vbscript"]).has(n)?"":t}function G6(e,t){if(!(t.mac?t.metaKey:t.ctrlKey))return {isLinkClick:false,url:null};let o=e?.closest?.("a")??null;if(!o)return {isLinkClick:false,url:null};let n=gn(o.getAttribute("href")??"");return {isLinkClick:true,url:n===""?null:n}}function WY(e){return e.text.includes(`
|
|
27
|
-
`)?e.text.split(`
|
|
28
|
-
`).map(r=>{let o={text:r};return r.length>0&&(e.bold!==void 0&&(o.bold=e.bold),e.italic!==void 0&&(o.italic=e.italic),e.underline!==void 0&&(o.underline=e.underline),e.color!==void 0&&(o.color=e.color),e.backgroundColor!==void 0&&(o.backgroundColor=e.backgroundColor)),o}):[e]}function qY(e){let t=[[]],r=0;for(let o of e)if(j6(o)){let n=WY(o);for(let i=0;i<n.length;i++)t[r].push(n[i]),i<n.length-1&&(r++,t[r]=[]);}else t[r].push(o);return t}function Hn(e){if(!e)return "";function t(r){if(j6(r)){if(r.text==="")return "";let n=op(r.text);if(r.bold&&(n=`<b>${n}</b>`),r.italic&&(n=`<i>${n}</i>`),r.underline&&(n=`<u>${n}</u>`),r.color||r.backgroundColor){let i=UY(he({color:r.color||void 0,backgroundColor:r.backgroundColor||void 0}));n=`<span style="${op(i)}">${n}</span>`;}return n}let o=r.children?.map(n=>Hn(n)).join("");switch(r.type){case ru:return qY(r.children).map(i=>`<p>${i.map(l=>Hn(l)).join("")}</p>`).join("");case bo:return `<a href="${op(gn(r.url))}">${o}</a>`;case bn:return `<span data-user-id="${op(r.value)}">${op(r.displayName)}</span>`;default:return o}}return Array.isArray(e)?e.map(r=>t(r)).join(""):t(e)}function bS(e){let t=new DOMParser().parseFromString(R8.default.sanitize(e),"text/html");if(!t.body.querySelector("p, div")){let r=t.createElement("p");r.append(...t.body.childNodes),t.body.append(r);}return xg(t.body)}var XY=new Set(["(","[","{","<",'"',"'","`","\xAB"]),YY=new Set([".",",","!","?",":",";",'"',"'","`","\xBB"]),ZY=new Map([[")","("],["]","["],["}","{"]]);function U6(e,t){let r=0;for(let o of e)o===t&&r++;return r}function Tg(e){let t=0,r=e.length;for(;t<r&&XY.has(e[t]);)t++;for(;r>t;){let a=e[r-1];if(YY.has(a)){r--;continue}let l=ZY.get(a);if(l!==void 0){let s=e.slice(t,r);if(U6(s,a)>U6(s,l)){r--;continue}}break}if(r<=t)return null;let o=e.slice(t,r),n;if(/^https?:\/\//i.test(o))n=o;else if(/^www\./i.test(o)){if(o.length<=4)return null;n=`https://${o}`;}else return null;let i;try{i=new URL(n);}catch{return null}return i.hostname===""?null:{start:t,end:r,url:n}}function JY(e){let t=[],r=/\S+/g,o;for(;(o=r.exec(e))!==null;){let n=Tg(o[0]);if(n){let i=o.index+n.start,a=o.index+n.end;t.push({start:i,end:a,text:e.slice(i,a),url:n.url});}}return t}function W6(e){let t=e.trim();if(t===""||/\s/.test(t))return null;let r=Tg(t);return r&&r.start===0&&r.end===t.length?r.url:null}function QY(e){let t=JY(e.text);if(t.length===0)return null;let r=[],o=0;for(let n of t)n.start>o&&r.push({...e,text:e.text.slice(o,n.start)}),r.push({type:bo,url:n.url,children:[{...e,text:n.text}]}),o=n.end;return o<e.text.length&&r.push({...e,text:e.text.slice(o)}),r}function gS(e){let t=false,r=e.map(o=>{let n=false,i=[];for(let a of o.children){let l=je(a)?QY(a):null;l?(i.push(...l),n=true):i.push(a);}return n?(t=true,{...o,children:i}):o});return t?r:e}function q6(e){return Vn(e)?0:Or(e)}function X6(e){return e.children.reduce((t,r)=>t+Or(r),0)}function hS(e,t,r){return Math.min(Math.max(e,t),r)}function Ai(e,t){return e.path[0]!==t.path[0]?e.path[0]<t.path[0]?-1:1:e.path[1]!==t.path[1]?e.path[1]<t.path[1]?-1:1:e.offset!==t.offset?e.offset<t.offset?-1:1:0}function fr(e){return Ai(e.anchor,e.focus)===0}function vS(e){return Ai(e.anchor,e.focus)<=0?e:{anchor:e.focus,focus:e.anchor}}function Lo(e,t){let r=hS(t.path[0],0,e.length-1),o=e[r].children,n=hS(t.path[1],0,o.length-1),i=hS(t.offset,0,q6(o[n]));return {path:[r,n],offset:i}}function au(e){let t=e.length-1,r=e[t].children,o=r.length-1;return {path:[t,o],offset:q6(r[o])}}function rr(e,t){let r=Math.max(t,0);for(let o=0;o<e.length;o++){let n=e[o],i=X6(n);if(r>i){r-=i+1;continue}let a=n.children;for(let l=0;l<a.length;l++){let s=a[l],u=Or(s);if(Vn(s)){if(r===0)return {path:[o,l],offset:0};if(r<u)return {path:[o,l+1],offset:0}}else if(r<=u)return {path:[o,l],offset:r};r-=u;}}return au(e)}function Kt(e,t){let[r,o]=t.path,n=0;for(let a=0;a<r;a++)n+=X6(e[a])+1;let i=e[r].children;for(let a=0;a<o;a++)n+=Or(i[a]);return n+t.offset}function Oi(e,t,r,o,n){let i=r==="atomic";if(e<o.path[0]||e>n.path[0])return null;let a=0;if(e===o.path[0]){if(t<o.path[1])return null;t===o.path[1]&&(a=i?0:o.offset);}let l=i?1:r;if(e===n.path[0]){if(t>n.path[1])return null;t===n.path[1]&&(l=i?n.offset>0?1:0:n.offset);}return a>=l?null:{from:a,to:l}}function xS(e,t,r){let o=0;for(let n of e.children)r(n,Math.max(t.from-o,0),Math.min(t.to-o,n.text.length)),o+=n.text.length;}function Z6(e,t,r,o){for(let n=t.path[0];n<=r.path[0]&&n<e.length;n++){let i=e[n].children;for(let[a,l]of i.entries())if(!go(l)){if(je(l)){let s=Oi(n,a,l.text.length,t,r);s&&o(l,s.from,s.to);}else if(st(l)){let s=Oi(n,a,Or(l),t,r);s&&xS(l,s,(u,c,p)=>{c<p&&o(u,c,p);});}}}}function J6(e){return je(e)?e:st(e)?e.children.at(-1)??null:null}function Q6(e,t){let r=Lo(e,t),o=e[r.path[0]].children,n=o[r.path[1]],i=r.path[1]>0?J6(o[r.path[1]-1]):null;if(je(n))return r.offset>0?n:i??n;if(st(n)){if(r.offset===0)return i??n.children[0]??null;let a=0;for(let l of n.children)if(a+=l.text.length,r.offset<=a)return l;return n.children.at(-1)??null}return Bn(n)?r.offset>0?n.children[0]:i??n.children[0]:i}function Y6(e){let t={};return e.bold&&(t.bold=true),e.italic&&(t.italic=true),e.underline&&(t.underline=true),e.color!==void 0&&(t.color=e.color),e.backgroundColor!==void 0&&(t.backgroundColor=e.backgroundColor),t}function eZ(e,t){let r={};return e.bold&&t.bold&&(r.bold=true),e.italic&&t.italic&&(r.italic=true),e.underline&&t.underline&&(r.underline=true),e.color!==void 0&&Ti(e.color,t.color)&&(r.color=e.color),e.backgroundColor!==void 0&&Ti(e.backgroundColor,t.backgroundColor)&&(r.backgroundColor=e.backgroundColor),r}function Ja(e,t){if(fr(t)){let a=Q6(e,t.focus);return a?Y6(a):{}}let r=vS(t),o=Lo(e,r.anchor),n=Lo(e,r.focus),i=null;return Z6(e,o,n,a=>{let l=Y6(a);i=i===null?l:eZ(i,l);}),i??{}}function Cg(e,t,r){if(r===e)return {doc:e,range:t};let o=qt(r);return {doc:o,range:{anchor:rr(o,Kt(e,Lo(e,t.anchor))),focus:rr(o,Kt(e,Lo(e,t.focus)))}}}function e0(e,t,r,o){let n={...e,text:e.text.slice(t,r)},i=o(n);if(gg(i,n))return null;let a=[];return t>0&&a.push({...e,text:e.text.slice(0,t)}),a.push(i),r<e.text.length&&a.push({...e,text:e.text.slice(r)}),a}function tZ(e,t,r){let o=false,n=[];return xS(e,t,(i,a,l)=>{let s=a<l?e0(i,a,l,r):null;s?(n.push(...s),o=true):n.push(i);}),o?{...e,children:n}:null}function t0(e,t,r,o){let n=false,i=e.map((a,l)=>{if(l<t.path[0]||l>r.path[0])return a;let s=false,u=[];for(let[c,p]of a.children.entries())if(je(p)){let d=Oi(l,c,p.text.length,t,r),m=d?e0(p,d.from,d.to,o):null;m?(u.push(...m),s=true):u.push(p);}else if(st(p)){let d=Oi(l,c,Or(p),t,r),m=d?tZ(p,d,o):null;m?(u.push(m),s=true):u.push(p);}else u.push(p);return s?(n=true,{...a,children:u}):a});return n?i:e}function lu(e,t){let r=vS(t);return [Lo(e,r.anchor),Lo(e,r.focus)]}function TS(e,t,r){if(fr(t))return {doc:e,range:t};let[o,n]=lu(e,t),i=false,a=true;return Z6(e,o,n,s=>{i=true,s[r]||(a=false);}),i?Cg(e,t,t0(e,o,n,a?s=>{let u={...s};return delete u[r],u}:s=>s[r]?s:{...s,[r]:true})):{doc:e,range:t}}function CS(e,t,r,o){if(fr(t))return {doc:e,range:t};let[n,i]=lu(e,t);return Cg(e,t,t0(e,n,i,l=>{if(l[r]===o)return l;let s={...l};return o===void 0?delete s[r]:s[r]=o,s}))}function r0(e,t){let r=[],o=[],n=0;for(let i of e){let a=n+i.text.length;a<=t?r.push(i):n>=t?o.push(i):(r.push({...i,text:i.text.slice(0,t-n)}),o.push({...i,text:i.text.slice(t-n)})),n=a;}return [r,o]}function Za(e,t,r){if(t>=e.length)return [[...e],[]];let o=e.slice(0,t),n=e.slice(t+1),i=e[t];if(je(i))o.push({...i,text:i.text.slice(0,r)}),n.unshift({...i,text:i.text.slice(r)});else if(st(i)){let[a,l]=r0(i.children,r);o.push({...i,children:a}),n.unshift({...i,children:l});}else r===0?n.unshift(i):o.push(i);return [o,n]}function PS(e,t){let[r,o]=lu(e,t);for(let n=r.path[0];n<=o.path[0]&&n<e.length;n++)for(let[i,a]of e[n].children.entries()){if(!st(a))continue;let l={path:[n,i],offset:0},s={path:[n,i],offset:Or(a)};if(Ai(r,s)<=0&&Ai(o,l)>=0)return {paragraphIndex:n,inlineIndex:i,link:a}}return null}function o0(e,t){let r=PS(e,t);if(!r)return null;let{paragraphIndex:o,inlineIndex:n,link:i}=r;return {url:i.url,range:{anchor:{path:[o,n],offset:0},focus:{path:[o,n],offset:Or(i)}}}}function n0(e,t){let[r,o]=lu(e,t);for(let n=r.path[0];n<=o.path[0]&&n<e.length;n++)for(let[i,a]of e[n].children.entries()){if(je(a))continue;let l=go(a)?"atomic":Or(a);if(Oi(n,i,l,r,o))return true}return false}function rZ(e,t,r,o){let n=[],i=(a,l,s)=>{l<s&&n.push({...a,text:a.text.slice(l,s)});};for(let[a,l]of e[t].children.entries())if(!go(l)){if(je(l)){let s=Oi(t,a,l.text.length,r,o);s&&i(l,s.from,s.to);}else if(st(l)){let s=Oi(t,a,Or(l),r,o);s&&xS(l,s,i);}}return n}function SS(e,t,r){if(fr(t))return {doc:e,range:t};let[o,n]=lu(e,t);for(let l=o.path[0];l<=n.path[0]&&l<e.length;l++)for(let[s,u]of e[l].children.entries())if(go(u)&&Oi(l,s,"atomic",o,n))return {doc:e,range:t};let i=false,a=e.map((l,s)=>{if(s<o.path[0]||s>n.path[0])return l;let u=rZ(e,s,o,n);if(u.length===0)return l;let c=l.children,[p]=s===o.path[0]?Za(c,o.path[1],o.offset):[[]],d=s===n.path[0]?Za(c,n.path[1],n.offset)[1]:[];return i=true,{...l,children:[...p,{type:bo,url:r,children:u},...d]}});return i?Cg(e,t,a):{doc:e,range:t}}function i0(e,t,r){let o=PS(e,t);if(!o||o.link.url===r)return {doc:e,range:t};let{paragraphIndex:n,inlineIndex:i,link:a}=o,l=e.map((s,u)=>u!==n?s:{...s,children:s.children.map((c,p)=>p===i?{...a,url:r}:c)});return {doc:qt(l),range:t}}function a0(e,t){let r=PS(e,t);if(!r)return {doc:e,range:t};let{paragraphIndex:o,inlineIndex:n,link:i}=r,a=e.map((l,s)=>s!==o?l:{...l,children:l.children.flatMap((u,c)=>c===n?i.children:[u])});return Cg(e,t,a)}function su(e,t){if(fr(t))return {doc:e,range:t};let[r,o]=lu(e,t);if(Ai(r,o)===0)return {doc:e,range:t};let n=Kt(e,r),i=Za(e[r.path[0]].children,r.path[1],r.offset)[0],a=Za(e[o.path[0]].children,o.path[1],o.offset)[1],l={...e[r.path[0]],children:[...i,...a]},s=qt([...e.slice(0,r.path[0]),l,...e.slice(o.path[0]+1)]),u=rr(s,n);return {doc:s,range:{anchor:u,focus:u}}}function np(e,t,r){let o=Lo(e,t);if(r==="")return {doc:e,range:{anchor:o,focus:o}};let n=Q6(e,o),i=n?{...n,text:r}:{text:r},a=o.path[0],l=e[a].children,s=l[o.path[1]],u;if(st(s)&&o.offset>0&&o.offset<Or(s)){let[d,m]=r0(s.children,o.offset),f={...s,children:[...d,i,...m]};u=l.map((y,g)=>g===o.path[1]?f:y);}else {let[d,m]=Za(l,o.path[1],o.offset);u=[...d,i,...m];}let c=qt(e.map((d,m)=>m===a?{...d,children:u}:d)),p=rr(c,Kt(e,o)+r.length);return {doc:c,range:{anchor:p,focus:p}}}function l0(e,t,r){let o=qt(r),n=nu(o),i=e,a;if(fr(t))a=Lo(e,t.focus);else {let m=su(e,t);i=m.doc,a=m.range.focus;}if(o.length===1&&n===0)return {doc:i,range:{anchor:a,focus:a}};let l=a.path[0],[s,u]=Za(i[l].children,a.path[1],a.offset),c=o.length===1?[{...i[l],children:[...s,...o[0].children,...u]}]:[{...i[l],children:[...s,...o[0].children]},...o.slice(1,-1),{...o.at(-1),children:[...o.at(-1).children,...u]}],p=qt([...i.slice(0,l),...c,...i.slice(l+1)]),d=rr(p,Kt(i,a)+n);return {doc:p,range:{anchor:d,focus:d}}}function s0(e,t){if(fr(t))return np(e,t.focus,`
|
|
29
|
-
`);let r=su(e,t);return np(r.doc,r.range.focus,`
|
|
30
|
-
`)}function u0(e,t){for(let[r,o]of e.entries()){let n=o.children.indexOf(t);if(n!==-1)return [r,n]}return null}function c0(e){for(let[t,r]of e.entries())for(let[o,n]of r.children.entries())if(Bn(n))return [t,o];return null}function d0(e){let t=au(e);return {anchor:t,focus:t}}function p0(e,t){let r=e,o;if(fr(t))o=Lo(e,t.focus);else {let p=su(e,t);r=p.doc,o=p.range.focus;}let n={type:Li,children:[{text:""}]},i=o.path[0],[a,l]=Za(r[i].children,o.path[1],o.offset),s=qt(r.map((p,d)=>d===i?{...p,children:[...a,n,...l]}:p)),c={path:u0(s,n)??[0,0],offset:0};return {doc:s,range:{anchor:c,focus:c}}}function m0(e,t){let r=c0(e);if(!r)return {doc:e,range:d0(e)};let[o,n]=r,i={type:bn,value:t.id,displayName:t.displayName,children:[{text:""}]},a=qt(e.map((c,p)=>p===o?{...c,children:c.children.map((d,m)=>m===n?i:d)}:c)),[l,s]=u0(a,i)??[o,n],u={path:[l,s+1],offset:0};return {doc:a,range:{anchor:u,focus:u}}}function f0(e,t){let r=c0(e);if(!r)return {doc:e,range:d0(e)};let[o,n]=r,i=e[o].children,a=n>0?J6(i[n-1]):null,l=a?{...a,text:t}:{text:t},s=Kt(e,{path:[o,n],offset:0})+t.length,u=qt(e.map((p,d)=>d===o?{...p,children:i.map((m,f)=>f===n?l:m)}:p)),c=rr(u,s);return {doc:u,range:{anchor:c,focus:c}}}function oZ(e){let t=[];return e.color&&t.push(`color:${e.color}`),e.backgroundColor&&t.push(`background-color:${e.backgroundColor}`),t.join(";")}function nZ(e){for(let t of e.children)if(go(t)||st(t)&&t.children.map(o=>o.text).join("").length>0||je(t)&&t.text.length>0)return false;return true}function y0(e,t,r,o){if(r.text==="")return;let n=r.text.split(`
|
|
31
|
-
`);for(let i=0;i<n.length;i++){let a=n[i],l=i===n.length-1;if(a.length>0){let u=e.createTextNode(a);if(r.underline){let p=e.createElement("u");p.append(u),u=p;}if(r.italic){let p=e.createElement("i");p.append(u),u=p;}if(r.bold){let p=e.createElement("b");p.append(u),u=p;}let c=oZ(r);if(c){let p=e.createElement("span");p.setAttribute("style",c),p.append(u),u=p;}t.append(u);}(!l||a===""&&n.length>1&&o)&&t.append(e.createElement("br"));}}function iZ(e,t,r,o){if(je(r)){y0(e,t,r,o);return}switch(r.type){case bo:{let n=e.createElement("a");n.setAttribute("href",gn(r.url)),n.className=Tb({size:"sm",variant:"inline"});for(let i of r.children)y0(e,n,i,false);t.append(n);break}case bn:{let n=e.createElement("span");n.setAttribute("contenteditable","false"),n.dataset.userId=r.value,n.textContent=`@${r.displayName}`,t.append(n);break}case Li:{let n=e.createElement("span");n.setAttribute("contenteditable","false"),n.dataset.mentionAnchor="true",n.textContent=r.children[0].text,t.append(n);break}}}function DS(e){return je(e)?e.text!=="":st(e)?e.children.some(t=>t.text!==""):true}function aZ(e,t){let r=e.createElement("p");if(nZ(t))return r.append(e.createElement("br")),r;let o=-1;for(let n=t.children.length-1;n>=0;n--)if(DS(t.children[n])){o=n;break}for(let[n,i]of t.children.entries())iZ(e,r,i,n===o);return r}function ip(e,t){let r=t.ownerDocument,o=r.createDocumentFragment();for(let n of e)o.append(aZ(r,n));t.replaceChildren(o);}var lZ=1,sZ=3,uZ=11;function Ao(e){return e.nodeType===lZ}function g0(e){return e.nodeType===uZ&&"host"in e}function Sg(e){return e.nodeType===sZ}function ap(e,t){return e.tagName.toLowerCase()===t}function cZ(e){return ap(e,"span")?e.getAttribute("contenteditable")==="false":false}function dZ(e,t,r,o,n){if(o===e){let l=e.childNodes,s=Math.min(n,l.length);return s===0?{found:true,point:{path:[r,0],offset:0}}:pZ(t,r,s)}let i=e.childNodes,a=0;for(let l=0;l<t.children.length;l++){let s=t.children[l];if(je(s)){let u=Dg(t.children,l),c=v0(s.text,i,a,r,l,o,n,u);if(c.found)return c;a+=Qa(s.text,u);}else if(st(s)){if(a>=i.length)continue;let u=i[a];if(!Ao(u)||!ap(u,"a")){a++;continue}let c=mZ(s,u,r,l,o,n);if(c.found)return c;a++;}else if(Vn(s)||Bn(s)){if(a>=i.length)continue;let u=i[a];if(!Ao(u)||!cZ(u)){a++;continue}if(o===u||(Ao(o)||Sg(o))&&Y(u,o))return {found:true,point:{path:[r,l+1],offset:0}};a++;}}return {found:false}}function pZ(e,t,r){let o=0;for(let a=0;a<e.children.length;a++){let l=e.children[a],s=je(l)?Qa(l.text,Dg(e.children,a)):1;if(o+s>=r){if(je(l))return {found:true,point:{path:[t,a],offset:h0(l.text,r-o)}};if(go(l))return {found:true,point:{path:[t,a+1],offset:0}};{let u=l.children.reduce((c,p)=>c+p.text.length,0);return {found:true,point:{path:[t,a],offset:u}}}}o+=s;}let n=e.children.length-1,i=e.children[n];if(je(i))return {found:true,point:{path:[t,n],offset:i.text.length}};if(go(i))return {found:true,point:{path:[t,n+1],offset:0}};if(st(i)){let a=i.children.reduce((l,s)=>l+s.text.length,0);return {found:true,point:{path:[t,n],offset:a}}}return {found:false}}function Dg(e,t){for(let r=t+1;r<e.length;r++)if(DS(e[r]))return false;return true}function Qa(e,t){if(e==="")return 0;let r=e.split(`
|
|
32
|
-
`),o=0;for(let n=0;n<r.length;n++)r[n].length>0&&o++,n<r.length-1&&o++;return t&&e.endsWith(`
|
|
33
|
-
`)&&o++,o}function h0(e,t){if(e==="")return 0;let r=e.split(`
|
|
34
|
-
`),o=0,n=0;for(let i=0;i<r.length&&!(o>=t);i++){if(r[i].length>0){if(o+1>=t){n+=r[i].length,o++;break}n+=r[i].length,o++;}if(i<r.length-1){if(o+1>=t){n++,o++;break}n++,o++;}}return e.endsWith(`
|
|
35
|
-
`)&&o<t&&(n=e.length),Math.min(n,e.length)}function v0(e,t,r,o,n,i,a,l=false){if(e==="")return {found:false};let s=e.split(`
|
|
36
|
-
`),u=r,c=0;for(let p=0;p<s.length;p++){let d=s[p],m=p===s.length-1;if(d.length>0&&u<t.length){let f=t[u],y=kg(f);if(y!==null){if(i===y){let g=Math.min(a,d.length);return {found:true,point:{path:[o,n],offset:c+g}}}if(Ao(i)&&Y(i,y))return {found:true,point:{path:[o,n],offset:c+(a===0?0:d.length)}}}c+=d.length,u++;}if(m){if(m&&l&&e.endsWith(`
|
|
37
|
-
`)&&d===""&&u<t.length){let f=t[u];if(Ao(f)&&ap(f,"br")&&i===f)return {found:true,point:{path:[o,n],offset:c}};u++;}}else if(u<t.length){let f=t[u];if(Ao(f)&&ap(f,"br")&&i===f)return {found:true,point:{path:[o,n],offset:c+(a===0?0:1)}};c++,u++;}}return {found:false}}function mZ(e,t,r,o,n,i){if(!Ao(t))return {found:false};if(n===t){let u=t.childNodes,c=Math.min(i,u.length),p=0,d=0,m=0;for(let f of e.children){let y=Qa(f.text,false);if(m+y>=c){d=p+h0(f.text,c-m);break}p+=f.text.length,m+=y;}return m>=e.children.reduce((f,y)=>f+Qa(y.text,false),0)&&(d=e.children.reduce((f,y)=>f+y.text.length,0)),{found:true,point:{path:[r,o],offset:d}}}if(!Y(t,n))return {found:false};let a=t.childNodes,l=0,s=0;for(let u of e.children){let c=v0(u.text,a,s,r,o,n,i);if(c.found)return {found:true,point:{path:[r,o],offset:l+c.point.offset}};l+=u.text.length,s+=Qa(u.text,false);}return {found:false}}function kg(e){if(Sg(e))return e;if(Ao(e)){let t=e;for(;Ao(t)&&t.childNodes.length===1;){let r=t.childNodes[0];if(Sg(r))return r;if(Ao(r))t=r;else break}}return null}function Pg(e,t,r,o){try{if(r!==e&&!Y(e,r)||t.length===0)return null;if(r===e){let i=Math.min(o,e.childNodes.length);if(i===0)return {path:[0,0],offset:0};let a=Math.min(i,t.length)-1,l=t[a];if(!l)return null;let s=l.children.length-1,u=l.children[s];if(!u)return null;let c=je(u)?u.text.length:st(u)?u.children.reduce((p,d)=>p+d.text.length,0):0;return {path:[a,s],offset:c}}let n=e.children;for(let i=0;i<t.length;i++){let a=n[i];if(!a)return null;let l=t[i];if(r!==a&&!Y(a,r))continue;let s=dZ(a,l,i,r,o);return s.found?s.point:null}return null}catch{return null}}function b0(e,t,r){try{let[o,n]=r.path,i=r.offset;if(o<0||o>=t.length)return null;let a=t[o];if(n<0||n>=a.children.length)return null;let l=a.children[n],s=e.children[o];if(!s)return null;let u=s.childNodes,c=0;for(let p=0;p<n;p++){let d=a.children[p];je(d)?c+=Qa(d.text,Dg(a.children,p)):c++;}if(je(l))return x0(l.text,i,u,c,s,Dg(a.children,n));if(st(l)){if(c>=u.length)return null;let p=u[c];return !Ao(p)||!ap(p,"a")?null:fZ(l,i,p)}else if(Vn(l)||Bn(l)){let p=c+1;if(p<u.length){let d=u[p];if(Sg(d))return {node:d,offset:0}}return {node:s,offset:Math.min(p,s.childNodes.length)}}return null}catch{return null}}function x0(e,t,r,o,n,i=false){if(e==="")return {node:n,offset:o};let a=e.split(`
|
|
38
|
-
`),l=o,s=0;for(let u=0;u<a.length;u++){let c=a[u],p=u===a.length-1;if(c.length>0&&l<r.length){let d=r[l];if(t>=s&&t<=s+c.length){let m=kg(d);return m!==null?{node:m,offset:t-s}:{node:n,offset:l}}s+=c.length,l++;}if(p){if(p&&e.endsWith(`
|
|
39
|
-
`)&&c===""&&l<=r.length){if(t===s)return {node:n,offset:Math.min(l,n.childNodes.length)};i&&l++;}}else if(l<r.length){if(t===s)return {node:n,offset:l};s++,l++;}}if(l>o&&l-1<r.length){let u=r[l-1],c=kg(u);return c!==null?{node:c,offset:c.length}:{node:n,offset:l}}return {node:n,offset:Math.min(l,n.childNodes.length)}}function fZ(e,t,r){let o=r.childNodes,n=0,i=0;for(let a of e.children){let l=a.text.length;if(t<=n+l)return x0(a.text,t-n,o,i,r);n+=l,i+=Qa(a.text,false);}if(o.length>0){let a=r.lastChild,l=a===null?null:kg(a);return l!==null?{node:l,offset:l.length}:{node:r,offset:o.length}}return {node:r,offset:0}}function Eg(e){let t=e.getRootNode();if(typeof t.getSelection=="function")return t.getSelection();let r=e.ownerDocument;if(!r)return null;let o=r.defaultView;return o?o.getSelection():null}function yZ(e,t){let r=e.getComposedRanges;if(typeof r!="function")return null;let o;try{o=r.call(e,{shadowRoots:[t]});}catch{try{o=r.call(e,t);}catch{return null}}let n=o?.[0];return n?{startContainer:n.startContainer,startOffset:n.startOffset,endContainer:n.endContainer,endOffset:n.endOffset}:null}function kS(e,t){let r=t.rangeCount>0?t.getRangeAt(0):null,o=r?{startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset}:null;if(o&&Y(e,o.startContainer))return o;let n=e.getRootNode();if(g0(n)){let i=yZ(t,n);if(i&&Y(e,i.startContainer))return i}return o}function zg(e,t){try{let r=Eg(e);if(!r)return null;let{anchorNode:o,focusNode:n}=r;if(o&&n&&Y(e,o)&&Y(e,n)){let s=Pg(e,t,o,r.anchorOffset),u=Pg(e,t,n,r.focusOffset);if(s!==null&&u!==null)return {anchor:s,focus:u}}let i=kS(e,r);if(!i)return null;let a=Pg(e,t,i.startContainer,i.startOffset);if(a===null)return null;let l=Pg(e,t,i.endContainer,i.endOffset);return l===null?null:{anchor:a,focus:l}}catch{return null}}function uu(e,t,r){try{let o=b0(e,t,r.anchor);if(o===null)return;let n=b0(e,t,r.focus);if(n===null)return;let i=e.ownerDocument;if(!i)return;let a=Eg(e);if(!a)return;if(Ai(r.anchor,r.focus)>0||g0(e.getRootNode())){a.setBaseAndExtent(o.node,o.offset,n.node,n.offset);return}let s=i.createRange();s.setStart(o.node,o.offset),s.setEnd(n.node,n.offset),a.removeAllRanges(),a.addRange(s);}catch{}}var T0="typing";var wg=class{undoStack=[];redoStack=[];now;maxDepth;lastKind=null;lastTime=null;constructor(t={}){this.now=t.now??Date.now,this.maxDepth=t.maxDepth??100;}record(t,r){let o=this.now();this.redoStack.length>0&&(this.redoStack=[]);let n=r===T0&&this.lastKind===T0&&this.lastTime!==null&&o-this.lastTime<=1e3;this.lastKind=r,this.lastTime=o,!n&&(this.undoStack.push(t),this.undoStack.length>this.maxDepth&&this.undoStack.shift());}undo(t){let r=this.undoStack.pop();return r?(this.redoStack.push(t),this.lastKind=null,this.lastTime=null,r):null}redo(t){let r=this.redoStack.pop();return r?(this.undoStack.push(t),this.lastKind=null,this.lastTime=null,r):null}clear(){this.undoStack=[],this.redoStack=[],this.lastKind=null,this.lastTime=null;}get canUndo(){return this.undoStack.length>0}get canRedo(){return this.redoStack.length>0}};var bZ=1,lp=class e{doc=ou();lastKnownHtml="";cachedRange=null;composing=false;pending=null;preservePendingSelectionChanges=0;history=new wg;opts;el=null;pendingExternalRender=null;keyboardShortcutsOverride=void 0;constructor(t={}){this.opts=t,this.lastKnownHtml=Hn(this.doc);}setKeyboardShortcutsEnabled(t){this.keyboardShortcutsOverride=t;}attach(t){this.el=t,ip(this.doc,t),this.cachedRange&&uu(t,this.doc,this.cachedRange);let r=this.handleBeforeInputBound,o=this.handleInputBound,n=this.handlePasteBound,i=this.handleCompositionStartBound,a=this.handleCompositionEndBound,l=this.handleSelectionChangeBound,s=this.handlePointerDownBound,u=t.ownerDocument;return t.addEventListener("beforeinput",r),t.addEventListener("input",o),t.addEventListener("paste",n),t.addEventListener("compositionstart",i),t.addEventListener("compositionend",a),t.addEventListener("pointerdown",s),u.addEventListener("selectionchange",l),()=>{t.removeEventListener("beforeinput",r),t.removeEventListener("input",o),t.removeEventListener("paste",n),t.removeEventListener("compositionstart",i),t.removeEventListener("compositionend",a),t.removeEventListener("pointerdown",s),u.removeEventListener("selectionchange",l),this.el===t&&(this.el=null);}}handleBeforeInputBound=t=>{let r=t;if($(r)===this.el){if(this.opts.isReadOnly?.()){r.preventDefault();return}this.refreshSelectionFromDom(),this.handleBeforeInput(r);}};handleInputBound=t=>{$(t)===this.el&&(this.composing||this.syncFromDom());};handlePasteBound=t=>{let r=t,o=$(r);!o||!Y(this.el,o)||(o.nodeType===bZ?o:o.parentElement)?.closest('input, [contenteditable="false"]')||(r.preventDefault(),!this.opts.isReadOnly?.()&&(this.composing||(this.refreshSelectionFromDom(),this.insertPastedData(r.clipboardData))));};handlePointerDownBound=()=>{this.preservePendingSelectionChanges=0;};handleCompositionStartBound=()=>{this.composing=true;};handleCompositionEndBound=()=>{if(this.composing=false,this.pendingExternalRender){let t=this.pendingExternalRender;this.pendingExternalRender=null,t();return}this.syncFromDom();};handleSelectionChangeBound=()=>{this.el&&this.handleSelectionChange();};refreshSelectionFromDom(){if(!this.el)return;let t=zg(this.el,this.doc);t&&(this.cachedRange=t);}getDoc(){return this.doc}getValue(){return Hn(this.doc)}setValue(t,r={}){if(t===this.lastKnownHtml)return;let o,n;try{o=qt(bS(t)),n=Hn(o);}catch(s){process.env.NODE_ENV!=="production"&&console.error("[Editor] setValue failed to parse value:",s);return}let i=this.cachedRange?Kt(this.doc,this.cachedRange.anchor):null,a=e.docHasMentionInput(this.doc);this.doc=o,this.lastKnownHtml=n,this.pending=null,this.history.clear();let l=()=>{if(this.el&&(ip(o,this.el),i!==null)){let s=Math.min(i,nu(o)),u=rr(o,s),c={anchor:u,focus:u};this.cachedRange=c,uu(this.el,o,c);}};this.el&&(this.composing?this.pendingExternalRender=l:l()),a&&!e.docHasMentionInput(o)&&this.opts.onMentionInputRemoved?.(),r.emit&&(this.opts.onChange?.(n),this.emitSelectionChange());}static docHasMentionInput(t){return t.some(r=>r.children.some(o=>Bn(o)))}exec(t,...r){this.refreshSelectionFromDom();let o=this.cachedRange,n=this.doc,i=o??this.collapsedAtDocEnd(),a={doc:n,range:o},l;try{l=this.dispatchCommand(t,r);}catch(s){process.env.NODE_ENV!=="production"&&console.error(`[Editor] command "${t}" threw:`,s);return}if(l.doc===n){if(t==="toggleMark"&&fr(i)){let[s]=r;this.setPendingMark(s,i),this.emitSelectionChange();return}if(t==="setMarkValue"&&fr(i)){let[s,u]=r;this.setPendingColorMark(s,u,i),this.emitSelectionChange();return}this.pending=null;return}if(this.pending=null,t==="insertSoftBreak"){let s=this.mergePendingMarks(Ja(n,i));if(Object.keys(s).length>0){let u=Kt(l.doc,l.range.anchor);this.pending={marks:s,caretOffset:u},this.preservePendingSelectionChanges=10;}}this.history.record(a,t),this.applyDocChange(l.doc,l.range,true);}undo(){if(!this.history.canUndo)return;let t={doc:this.doc,range:this.cachedRange},r=this.history.undo(t);r&&(this.pending=null,this.applyDocChange(r.doc,r.range,true));}redo(){if(!this.history.canRedo)return;let t={doc:this.doc,range:this.cachedRange},r=this.history.redo(t);r&&(this.pending=null,this.applyDocChange(r.doc,r.range,true));}canUndo(){return this.history.canUndo}canRedo(){return this.history.canRedo}focus(){this.el?.focus();}setCaretPosition(t){if(!this.el)return;let r=rr(this.doc,t);this.select({anchor:r,focus:r});}select(t){this.el&&(this.el.focus(),this.cachedRange=t,uu(this.el,this.doc,t));}selectStart(){this.setCaretPosition(0);}selectEnd(){let t=au(this.doc);this.select({anchor:t,focus:t});}getSelectionState(){return this.buildSelectionState(this.cachedRange)}buildSelectionState(t){let r=t?Ja(this.doc,t):{},o=this.mergePendingMarks(r),n=t?o0(this.doc,t):null;return {marks:o,link:n,range:t}}mergePendingMarks(t){return this.pending?this.pending.marks:t}setPendingMark(t,r){let o=Kt(this.doc,r.anchor),n=Ja(this.doc,r),i=this.pending?{...this.pending.marks}:{...n};i[t]?delete i[t]:i[t]=true,this.pending={marks:i,caretOffset:o};}setPendingColorMark(t,r,o){let n=Kt(this.doc,o.anchor),i=Ja(this.doc,o),a=this.pending?{...this.pending.marks}:{...i};r===void 0?delete a[t]:a[t]=r,this.pending={marks:a,caretOffset:n};}emitSelectionChange(){this.opts.onSelectionChange&&this.opts.onSelectionChange(this.buildSelectionState(this.cachedRange));}applyDocChange(t,r,o){if(this.doc=t,this.cachedRange=r,this.el&&!this.composing&&(ip(t,this.el),r&&uu(this.el,t,r)),o){let n=Hn(t);this.lastKnownHtml=n,this.opts.onChange?.(n),this.emitSelectionChange();}}handleBeforeInput(t){let{inputType:r}=t;if(r==="insertParagraph"||r==="insertLineBreak"){t.preventDefault();let n=this.detectAutoLinkBeforeCaret();this.exec("insertSoftBreak"),n&&this.applyAutoLink(n);return}if(r==="insertText"&&t.data===" "){let n=this.detectAutoLinkBeforeCaret();if(n){t.preventDefault(),this.exec("insertText"," "),this.applyAutoLink(n);return}}if(r==="insertFromPaste"||r==="insertFromDrop"){t.preventDefault(),this.handlePasteInput(t);return}let o=this.keyboardShortcutsOverride??this.opts.areKeyboardShortcutsEnabled?.()??true;if(r==="formatBold"){t.preventDefault(),o&&this.exec("toggleMark","bold");return}if(r==="formatItalic"){t.preventDefault(),o&&this.exec("toggleMark","italic");return}if(r==="formatUnderline"){t.preventDefault(),o&&this.exec("toggleMark","underline");return}if(r==="historyUndo"){t.preventDefault(),o&&this.undo();return}if(r==="historyRedo"){t.preventDefault(),o&&this.redo();return}if(r==="insertText"&&t.data==="@"&&this.shouldTriggerMention()&&this.opts.canStartMention?.()!==false){t.preventDefault();let n=this.doc;this.exec("insertMentionInput"),this.doc===n?this.exec("insertText","@"):this.opts.onMentionTrigger?.();}}shouldTriggerMention(){if(!this.cachedRange)return true;if(!fr(this.cachedRange))return false;let t=this.cachedRange,[r,o]=t.anchor.path,n=t.anchor.offset,i=this.doc;if(r>=i.length)return true;let a=i[r];if(o>=a.children.length)return true;let l=a.children[o];if(n===0&&o===0)return true;let s=null;if(je(l)){let u=l.text;if(n>0)s=u[n-1];else if(o>0)s=this.lastCharOf(a.children[o-1]);else return true}else if(st(l)){let u=l.children.map(c=>c.text).join("");if(n>0)s=u[n-1]??null;else if(o>0)s=this.lastCharOf(a.children[o-1]);else return true}else if(n===0&&o>0)s=this.lastCharOf(a.children[o-1]);else return true;return s===null?true:/^[\s"']$/.test(s)}lastCharOf(t){if(je(t)){let r=t.text;return r.length>0?r.at(-1)??null:null}if(st(t)){let o=(t.children??[]).at(-1);return o&&o.text.length>0?o.text.at(-1)??null:null}if(Vn(t)){let r=t.displayName??"";return r.length>0?r.at(-1)??null:null}return null}autoLinkEnabled(){return this.opts.autoLink?.()??true}detectAutoLinkBeforeCaret(){return !this.autoLinkEnabled()||this.composing?null:this.findAutoLinkBeforeCaret()}findAutoLinkBeforeCaret(){let t=this.cachedRange;if(!t||!fr(t))return null;let r=t.anchor,o=this.doc,n=r.path[0];if(n>=o.length)return null;let i=o[n].children,a=r.path[1],l=r.offset;if(a>=i.length){a=i.length-1;let d=i[a];if(!d||!je(d))return null;l=d.text.length;}else {let d=i[a];je(d)&&l>d.text.length&&(l=d.text.length);}let s=i[a];if(je(s)&&l<s.text.length&&!/\s/.test(s.text[l]))return null;let u="";for(;;){let d=i[a];if(!d||!je(d))break;if(l>0){let m=d.text[l-1];if(/\s/.test(m))break;u=m+u,l-=1;}else {if(a===0)break;let m=i[a-1];if(!je(m))break;a-=1,l=m.text.length;}}if(u==="")return null;let c=Tg(u);if(!c)return null;let p=Kt(o,{path:[n,a],offset:l});return {startAbs:p+c.start,endAbs:p+c.end,url:c.url}}applyAutoLink(t){let r=gn(t.url);if(r==="")return;let o=this.doc,n={anchor:rr(o,t.startAbs),focus:rr(o,t.endAbs)},i={doc:o,range:this.cachedRange},a=SS(o,n,r);if(a.doc===o)return;let l=this.cachedRange?Kt(o,this.cachedRange.anchor):t.endAbs;this.history.record(i,"wrapLink");let s=rr(a.doc,l);this.applyDocChange(a.doc,{anchor:s,focus:s},true);}handlePasteInput(t){this.insertPastedData(t.dataTransfer);}insertPastedData(t){if(!t)return;let r=this.autoLinkEnabled(),o=t.getData("text/plain");if(r&&o){let i=this.cachedRange;if(i&&!fr(i)&&i.anchor.path[0]===i.focus.path[0]){let a=W6(o),l=a?gn(a):"";if(l&&!n0(this.doc,i)){this.exec("wrapLink",l);return}}}let n=t.getData("text/html");if(n)try{let i=qt(bS(n));r&&(i=qt(gS(i))),this.exec("insertFragment",i);return}catch(i){process.env.NODE_ENV!=="production"&&console.error("[Editor] failed to parse pasted HTML:",i);}if(o){let i=Ya(o.replaceAll(`\r
|
|
40
|
-
`,`
|
|
41
|
-
`).replaceAll("\r",`
|
|
42
|
-
`)),a=qt([{type:"p",children:[{text:i}]}]);r&&(a=qt(gS(a))),this.exec("insertFragment",a);}}syncFromDom(){if(!this.el||this.composing)return;let t=this.doc,r={doc:t,range:this.cachedRange},o=xg(this.el),n=zg(this.el,o);if(!(Hn(o)!==this.lastKnownHtml)){if(n){let p=this.cachedRange;this.cachedRange=n,(!p||!this.rangesEqual(p,n))&&this.emitSelectionChange();}return}this.history.record(r,"typing");let l=o,s=n,u=false;if(!s&&r.range){let p=Math.max(nu(o)-nu(t),0),d=this.pending?this.pending.caretOffset:Kt(t,r.range.anchor),m=rr(o,d+p);s={anchor:m,focus:m};}if(this.pending){let p=this.pending.marks,d=s;if(d){let m=this.applyPendingMarks(o,r.range,d);m.doc!==o&&(l=m.doc,s=m.range,u=true),this.pending=s?{marks:p,caretOffset:Kt(l,s.anchor)}:null,s&&(this.preservePendingSelectionChanges=10);}else this.pending=null;}this.doc=l,this.cachedRange=s;let c=Hn(l);this.lastKnownHtml=c,u&&(ip(l,this.el),s&&uu(this.el,l,s)),this.opts.onChange?.(c),this.emitSelectionChange();}applyPendingMarks(t,r,o){if(!this.pending||!r||!o)return {doc:t,range:o??{anchor:{path:[0,0],offset:0},focus:{path:[0,0],offset:0}}};let n=this.pending.caretOffset,i=o?Kt(t,o.anchor):n;if(i<=n)return {doc:t,range:o??{anchor:{path:[0,0],offset:0},focus:{path:[0,0],offset:0}}};let a=this.applyPendingMarkSnapshot(t,this.pending.marks,n,i),l=rr(a,i);return {doc:a,range:{anchor:l,focus:l}}}applyPendingMarkSnapshot(t,r,o,n){let i=t,a=()=>({anchor:rr(i,o),focus:rr(i,n)});for(let l of ["bold","italic","underline"]){let s=a(),u=!!r[l],c=!!Ja(i,s)[l];if(u!==c){let p=TS(i,s,l);p.doc!==i&&(i=p.doc);}}for(let l of ["color","backgroundColor"]){let s=a(),u=r[l],c=Ja(i,s)[l];if(!Ti(u,c)){let p=CS(i,s,l,u);p.doc!==i&&(i=p.doc);}}return i}handleSelectionChange(){if(!this.el)return;let t=Eg(this.el);if(!t)return;let r=kS(this.el,t);if(!r||!Y(this.el,r.startContainer))return;let o=zg(this.el,this.doc),n=this.cachedRange;this.preservePendingSelectionChanges>0?(this.preservePendingSelectionChanges-=1,this.pending&&o&&(this.pending={...this.pending,caretOffset:Kt(this.doc,o.anchor)})):this.pending&&o&&Kt(this.doc,o.anchor)!==this.pending.caretOffset&&(this.pending=null),o!==null&&(this.cachedRange=o),(!n||!o||!this.rangesEqual(n,o))&&this.emitSelectionChange();}dispatchCommand(t,r){let o=this.doc,n=this.cachedRange??this.collapsedAtDocEnd();switch(t){case "toggleMark":{let[i]=r;return TS(o,n,i)}case "setMarkValue":{let[i,a]=r;return CS(o,n,i,a)}case "wrapLink":{let[i]=r;return SS(o,n,i)}case "updateLinkUrl":{let[i]=r;return i0(o,n,i)}case "unwrapLink":return a0(o,n);case "deleteRange":return su(o,n);case "insertText":{let[i]=r;if(!fr(n)){let a=su(o,n);return np(a.doc,a.range.focus,i)}return np(o,n.anchor,i)}case "insertFragment":{let[i]=r;return l0(o,n,i)}case "insertSoftBreak":return s0(o,n);case "insertMentionInput":return p0(o,n);case "confirmMention":{let[i]=r;return m0(o,i)}case "removeMentionInput":{let[i]=r;return f0(o,i)}default:return {doc:o,range:n}}}collapsedAtDocEnd(){let t=au(this.doc);return {anchor:t,focus:t}}rangesEqual(t,r){return t.anchor.path[0]===r.anchor.path[0]&&t.anchor.path[1]===r.anchor.path[1]&&t.anchor.offset===r.anchor.offset&&t.focus.path[0]===r.focus.path[0]&&t.focus.path[1]===r.focus.path[1]&&t.focus.offset===r.focus.offset}};var sp=Un.createContext(null);function $n(){let e=Un.useContext(sp);if(!e)throw new Error("useEditorContext must be used within an EditorProvider");return e}var Rg=Object.freeze({marks:{},link:null,range:null});function vZ(e){let t=Ya(e.replaceAll(/<br\s*\/?>/gi,""));return t==="<p></p>"||t===""||t==="<p> </p>"}function ES(e={}){let{value:t,defaultValue:r,onChange:o,isDisabled:n,keyboardShortcuts:i,onSelectionChange:a,onMentionTrigger:l,onMentionInputRemoved:s,canStartMention:u,isReadOnly:c,autoLink:p}=e;t!==void 0&&o===void 0&&Ts("use-editor-value-without-onchange","useEditor: `value` without `onChange` is controlled but cannot reflect edits \u2014 they are discarded on the next render. Use `defaultValue` for initial content, or add `onChange`.");let[d,m]=useState(Rg),[f,y]=useState(()=>t??r??""),g=useRef(o);g.current=o;let b=useRef(a);b.current=a;let x=useRef(l);x.current=l;let h=useRef(s);h.current=s;let v=useRef(u);v.current=u;let C=useRef(c);C.current=c;let T=useRef(n);T.current=n;let P=useRef(i);P.current=i;let k=useRef(p);k.current=p;let S=useRef(null);S.current===null&&(S.current=new lp({onChange:z=>{y(z),g.current?.(z);},onSelectionChange:z=>{m(z),b.current?.(z);},onMentionTrigger:()=>{x.current?.();},onMentionInputRemoved:()=>{h.current?.();},canStartMention:()=>v.current?.()??false,autoLink:()=>k.current!==false,isReadOnly:()=>C.current?.()??!!T.current,areKeyboardShortcutsEnabled:()=>P.current!==false}));let w=S.current;useLayoutEffect(()=>{t!==void 0&&w.setValue(t);});let E=useRef(false);useEffect(()=>{if(!E.current){E.current=true;let z=t??r;z&&w.setValue(z);}},[w]),useEffect(()=>{n&&m(Rg);},[n]);let R=t??f,_=vZ(R),D=w.canUndo(),F=w.canRedo();return useMemo(()=>({core:w,selectionState:d,value:R,isEmpty:_,isDisabled:!!n,keyboardShortcuts:i!==false,canUndo:D,canRedo:F,focus:()=>{w.focus();},selectStart:()=>{w.selectStart();},selectEnd:()=>{w.selectEnd();},setCaretPosition:z=>{w.setCaretPosition(z);},undo:()=>{w.undo();},redo:()=>{w.redo();},getValue:()=>w.getValue(),setValue:(z,N)=>{w.setValue(z,N);},exec:(z,...N)=>{w.exec(z,...N);},isMarkActive:z=>!!d.marks[z],toggleMark:z=>{w.exec("toggleMark",z);},setMark:(z,N)=>{w.exec("setMarkValue",z,N);}}),[w,d,R,_,n,i,D,F])}function k0(e,t){let r=e.ctrlKey||e.metaKey,o=e.key.toLowerCase();if(r&&!e.altKey&&o==="z")return e.preventDefault(),e.shiftKey?t.redo():t.undo(),true;if(e.ctrlKey&&!e.altKey&&!e.shiftKey&&o==="y")return e.preventDefault(),t.redo(),true;if(r&&!e.shiftKey&&!e.altKey){if(o==="b")return e.preventDefault(),t.toggleMark("bold"),true;if(o==="i")return e.preventDefault(),t.toggleMark("italic"),true;if(o==="u")return e.preventDefault(),t.toggleMark("underline"),true}return false}function wS(e,t={}){let r=SZ(e),{ref:o,autoFocus:n,onKeyDown:i,keyboardShortcuts:a}=t,l=a??r.keyboardShortcuts,s=useId(),u=useRef(null),c=useRef(null),p=useCallback(y=>{c.current&&(c.current(),c.current=null),y&&(c.current=r.core.attach(y));},[r.core]),d=useMemo(()=>se(u,p,o??null),[p,o]);useEffect(()=>(r.core.setKeyboardShortcutsEnabled(a),()=>{r.core.setKeyboardShortcutsEnabled(void 0);}),[r.core,a]);let m=useRef(false);useEffect(()=>{if(!m.current)switch(m.current=true,n){case true:{r.focus();break}case "start":{r.selectStart();break}case "end":{r.selectEnd();break}}},[r.core]);let{keyboardProps:f}=Le({onKeyDown:y=>{i?.(y)||l&&k0(y,r)||y.continuePropagation();}});return {editableProps:{...f,id:s,ref:d,contentEditable:!r.isDisabled,suppressContentEditableWarning:true,role:"textbox","aria-multiline":true}}}function SZ(e){let t=useContext(sp);if(e)return e;if(!t)throw new Error("useEditable must be passed an editor or used within an EditorProvider");return t}var RS=({editor:e,children:t})=>jsx(sp.Provider,{value:e,children:t});var Ig=({markName:e,icon:t,ariaLabel:r,isDisabled:o})=>{let{core:n,selectionState:i}=$n(),a=!!i.marks[e];return jsx(Wr,{variant:"tertiary",isSelected:a,size:"sm",icon:t,"aria-label":r,"data-testid":`editor-${e}-button`,isDisabled:o,onPress:()=>{n.exec("toggleMark",e),n.focus();},preventFocusOnPress:true})},_S=({colorKey:e,"aria-label":t,isDisabled:r})=>{let{core:o,selectionState:n}=$n(),i=e==="color"?n.marks.color:n.marks.backgroundColor,a=Un.useRef(null),l=useCallback(()=>{a.current=n.range;},[n.range]),s=useCallback(m=>{setTimeout(()=>{let f=o.getSelectionState().range??a.current;f&&o.select(f),o.exec("setMarkValue",e,m);},0);},[o,e]),u=useCallback(m=>{s(m);},[s]),c=useCallback(()=>{s();},[s]),p=useCallback(({ref:m,triggerProps:f})=>jsx(pe,{icon:e==="color"?TextIcon$1:HighlightTextIcon,"aria-label":t,"data-testid":e==="color"?"editor-font-color-button":"editor-background-color-button",size:"md",variant:"popover",isDisabled:r,className:eu,preventFocusOnPress:true,...f,ref:m}),[e,t,r]),d=useCallback(m=>{m?u(m.toString("rgba")):c();},[c,u]);return jsx(Xs,{presets:dS,allowRemoval:true,pickerMode:"lazy",placement:"top end",colorLabel:false,renderTriggerButton:p,onTriggerPress:l,value:i||"#000000",onChange:d,isDisabled:r})};var el={Add:"add",Edit:"edit",Show:"show"},z0=({isDisabled:e})=>{let{formatMessage:t}=fe(),{core:r}=$n();return jsxs(Io,{type:"dialog",children:[jsx(_o,{children:jsx(pe,{icon:LinkIcon,size:"sm",isDisabled:e,"aria-label":t(tl.addLink),"data-testid":"editor-add-link-button",className:eu,preventFocusOnPress:true})}),jsx(Pt,{className:sprinkles({boxShadow:"medium"}),placement:"top end",children:({close:o})=>jsx(Lr,{size:"content",style:{minWidth:240},children:jsx(IZ,{close:()=>{o(),setTimeout(()=>{r.focus();},0);}})})})]})},IZ=({close:e})=>{let{core:t,selectionState:r}=$n(),{formatMessage:o}=fe(),n=r.link?.url,[i,a]=Un.useState(n?el.Show:el.Add),[l,s]=Un.useState(n||""),u=jsx(Z,{padding:"lg",children:jsx(wi,{label:o(tl.link),value:l,autoFocus:true,onChange:s,placeholder:"https://yourdomain.com","data-testid":"editor-link-input"})});return jsxs(Fragment,{children:[i===el.Add&&jsxs(Fragment,{children:[u,jsx(Z,{display:"flex",justifyContent:"flex-end",padding:"lg",className:x6,children:jsx(Me,{isDisabled:!TC(l,true)||gn(l)==="",label:o(tl.addLink),"data-testid":"editor-link-add-button",size:"sm",onPress:()=>{t.exec("wrapLink",l),e?.();},preventFocusOnPress:true})})]}),i===el.Show&&jsxs(Fragment,{children:[jsx(Z,{padding:"lg",children:jsx(Ye,{type:"subtitle",size:"sm",children:n})}),jsxs(Z,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsx(Me,{label:o(tl.editLink),"data-testid":"editor-link-edit-button",size:"sm",variant:"secondary",onPress:()=>{a(el.Edit);},style:{flex:1,justifyContent:"center"}}),jsx(Me,{label:o(tl.removeLink),"data-testid":"editor-link-remove-button",size:"sm",onPress:()=>{t.exec("unwrapLink"),e?.();},preventFocusOnPress:true,style:{flex:1,justifyContent:"center"}})]})]}),i===el.Edit&&jsxs(Fragment,{children:[u,jsxs(Z,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsx(Me,{label:o(tl.cancel),"data-testid":"editor-link-cancel-button",size:"sm",variant:"secondary",onPress:()=>{a(el.Show),e?.();}}),jsx(Me,{label:o(tl.save),"data-testid":"editor-link-save-button",size:"sm",onPress:()=>{gn(l)!==""&&(t.exec("updateLinkUrl",l),e?.());}})]})]})]})},tl=Te({addLink:{id:"bui.editor.addLink",defaultMessage:"Add Link"},editLink:{id:"bui.editor.editLink",defaultMessage:"Edit Link"},removeLink:{id:"bui.editor.removeLink",defaultMessage:"Remove Link"},cancel:{id:"bui.editor.cancel",defaultMessage:"Cancel"},save:{id:"bui.editor.save",defaultMessage:"Save"},link:{id:"bui.editor.linkAnnotation",defaultMessage:"Link"}});var Lg=Un.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),R0=({key:e,value:t},{isDisabled:r,optionProps:o,isFocused:n,_state:i},a)=>{let{hoverProps:l}=ie({isDisabled:r}),{label:s,data:u}=t;return jsxs(Fragment,{children:[jsxs("li",{...A(o,l),className:E6({isDisabled:r,isHovered:n}),"data-active":n,ref:a,children:[jsx(Us,{name:s,...u?.avatar}),jsxs(Z,{display:"flex",flexDirection:"column",children:[jsx(Ye,{type:"subtitle",size:"sm",children:s}),jsx(Ye,{type:"helper",size:"sm",children:u?.description})]})]}),e===i.collection.getLastKey()?null:jsx(De,{})]})};function MS(e){return e.displayName?.trim()||e.name?.trim()||e.id}function LS({anchor:e,onClose:t}){let{core:r}=$n(),{containerRef:o,items:n,maxMentionableUsersSuggestions:i}=useContext(Lg),[a,l]=useState(""),{contains:s}=yi({sensitivity:"base"}),{formatMessage:u}=fe(),c=useRef(false),p=useCallback(()=>{c.current=true,t();},[t]),d=useMemo(()=>{let S=n.filter(w=>a===""||s(MS(w),a)).map(w=>({id:w.id,label:MS(w),data:w}));return i?S.slice(0,i):S},[n,i,a,s]),m=useCallback(S=>jsx(uo,{textValue:S.label,children:S.label},S.id),[]),f=useCallback(S=>{if(c.current||S==null)return;let w=n.find(E=>E.id===S);w&&(p(),r.exec("confirmMention",{id:w.id,displayName:w.displayName??MS(w)}),r.exec("insertText"," "),r.focus());},[p,r,n]),y=hc({items:d,children:m,menuTrigger:"focus",onSelectionChange:f}),g=useCallback(S=>{if(c.current)return;p();let w=S==="backspace"?"":`@${y.inputValue}`;r.exec("removeMentionInput",w),r.focus();},[p,r,y.inputValue]),b=useRef(null),x=useRef(null),h=useRef(null),v=useRef(null);ko({ref:v,onInteractOutside:()=>{y.close();}});let{inputProps:C,listBoxProps:T}=bc({defaultItems:d,inputRef:x,buttonRef:b,listBoxRef:h,popoverRef:v,menuTrigger:"focus","aria-label":u(FZ.mention)},y);useLayoutEffect(()=>{x.current?.focus(),setTimeout(()=>{x.current?.focus();});},[]);let P=useCallback(S=>{let w=S.currentTarget,E=w.selectionStart===0&&w.selectionEnd===0,R=w.selectionStart===w.value.length&&w.selectionEnd===w.value.length;S.key==="Backspace"&&E?(S.preventDefault(),g("backspace")):S.key==="Escape"?g("escape"):S.key==="ArrowLeft"&&E?(S.preventDefault(),g("arrowLeft")):S.key==="ArrowRight"&&R&&(S.preventDefault(),g("arrowRight"));let _=S.metaKey||S.ctrlKey,D=S.key.toLowerCase(),F=_&&!S.shiftKey&&D==="z"&&r.canUndo(),z=(_&&S.shiftKey&&D==="z"||S.ctrlKey&&D==="y")&&r.canRedo();(F||z)&&(S.preventDefault(),F?r.undo():r.redo(),p(),r.focus());},[g,p,r]),k=useMemo(()=>{if(!CSS.supports("field-sizing","content")){let S=X(x.current),w=x.current?S?.getComputedStyle(x.current).font:void 0;return {width:w?py({text:y.inputValue,font:w,element:x.current}).width+10:"4ch"}}},[y.inputValue]);return jsxs(Fragment,{children:[createPortal(jsx("input",{...A(C,{onKeyDown:P,onBlur:()=>{g("blur");},onChange:S=>{l(S.target.value);}}),style:k,className:k6,ref:x}),e),jsx(PC.Provider,{value:y,children:jsx(Pt,{triggerRef:o,isNonModal:true,ref:v,state:y,crossOffset:-2,children:jsx(on,{...T,items:void 0,ref:h,"data-testid":"editor-mention-listbox",className:L(Vs,sprinkles({width:"full"})),renderOption:R0})})})]})}LS.displayName="MentionInputOverlay";var FZ=Te({mention:{defaultMessage:"Mention",id:"bui.editor.mention"}});var NS=Un.forwardRef(({value:e,defaultValue:t,onChange:r,style:o,spellCheck:n,placeholder:i,isInline:a,isDisabled:l,editableContentAriaLabel:s,containerRef:u,onHelpDialogOpenRequest:c,mentionableUsers:p,editorHandle:d,maxMentionableUsersSuggestions:m,autoFocus:f,editorRef:y,saveOnEnter:g,onSave:b,autoLink:x},h)=>{let v=useRef(null),C=useRef(null),{formatMessage:T}=fe(),[P,k]=useState(null),S=useRef(0),[w,E]=useState(false),R=()=>{let O=C.current?.querySelector("[data-mention-anchor]");O&&(S.current+=1,k({anchor:O,id:S.current}));},_=ES({value:e,defaultValue:t,onChange:r,isDisabled:l,onMentionTrigger:R,onMentionInputRemoved:()=>{k(null);},canStartMention:()=>(p?.length??0)>0,autoLink:x}),D=_.core;Un.useEffect(()=>{y&&(y.current=D);},[D,y]);let F=O=>g&&O.key==="Enter"&&!O.shiftKey||(O.ctrlKey||O.metaKey)&&O.key==="Enter"?(O.preventDefault(),b(),true):O.altKey&&O.key==="F10"?(O.preventDefault(),v.current?.querySelector("button")?.focus(),true):false,{editableProps:z}=wS(_,{ref:C,autoFocus:f,onKeyDown:F}),N=O=>{if(l)return;let{isLinkClick:B,url:K}=G6(O.target,{metaKey:O.metaKey,ctrlKey:O.ctrlKey,mac:ht()});B&&(O.preventDefault(),K&&X(O.currentTarget).open(K,"_blank","noopener,noreferrer"));};Un.useEffect(()=>{let O=C.current;if(!O||l)return;let B=G(O),K=X(O),I=U=>{E(ht()?U.metaKey:U.ctrlKey);},H=()=>{E(false);};return B.addEventListener("keydown",I),B.addEventListener("keyup",I),K.addEventListener("blur",H),()=>{B.removeEventListener("keydown",I),B.removeEventListener("keyup",I),K.removeEventListener("blur",H),H();}},[l]),useImperativeHandle(h,()=>({startMention:()=>{p?.length&&(C.current?.querySelector("input[role='combobox']")||(D.exec("insertMentionInput"),R()));}})),useImperativeHandle(d,()=>({setCaretPosition:O=>{_.setCaretPosition(O);},focus:()=>{_.focus();}}));let V=useMemo(()=>({items:p||[],containerRef:u,maxMentionableUsersSuggestions:m}),[p,u,m]),M=_.isEmpty;return jsx(Lg.Provider,{value:V,children:jsxs(RS,{editor:_,children:[jsxs(mg,{className:L(yg,"BaselineUI-Editor-RichEditorToolbar"),"aria-controls":z.id,ref:v,children:[jsxs(Z,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsx(Ig,{markName:"bold",icon:BoldIcon,ariaLabel:T(du.bold),isDisabled:l}),jsx(Ig,{markName:"italic",icon:ItalicIcon,ariaLabel:T(du.italic),isDisabled:l}),jsx(Ig,{markName:"underline",icon:UnderlineIcon,ariaLabel:T(du.underline),isDisabled:l})]}),jsx(De,{orientation:"vertical",className:Qd}),jsx(_S,{colorKey:"color","aria-label":T(du.fontColor),isDisabled:l}),jsx(De,{orientation:"vertical",className:Qd}),jsx(_S,{colorKey:"backgroundColor","aria-label":T(du.backgroundColor),isDisabled:l}),jsx(De,{orientation:"vertical",className:Qd}),jsx(z0,{isDisabled:l}),jsx(De,{orientation:"vertical",className:Qd}),jsx(pe,{className:eu,icon:QuestionmarkCircleIcon,size:"sm","aria-label":T(du.help),"data-testid":"editor-help-button",onPress:c})]}),jsx(De,{variant:"secondary"}),jsxs("div",{style:{position:"relative"},children:[!!(i&&M)&&jsx("span",{"aria-hidden":true,"aria-disabled":true,"data-testid":"editor-placeholder",style:{position:"absolute",pointerEvents:"none",userSelect:"none",top:0,left:0,right:0},className:L(Jd({isDisabled:l}),P6,"BaselineUI-Editor-RichEditorPlaceholder"),children:i}),jsx("div",{...z,onClick:N,"data-mod-held":w?"":void 0,"aria-label":s,"aria-placeholder":i,spellCheck:n,style:o,className:L(Jd({isDisabled:l}),fg({isInline:a}),"BaselineUI-Editor-RichEditorEditingArea")})]}),P!==null&&jsx(LS,{anchor:P.anchor,onClose:()=>{k(null);}},P.id)]})})});NS.displayName="RichEditor";var du=Te({bold:{defaultMessage:"Bold",id:"bui.editor.bold"},italic:{defaultMessage:"Italic",id:"bui.editor.italic"},underline:{defaultMessage:"Underline",id:"bui.editor.underline"},backgroundColor:{defaultMessage:"Background color",id:"bui.editor.backgroundColor"},fontColor:{defaultMessage:"Font color",id:"bui.editor.fontColor"},help:{defaultMessage:"Help",id:"bui.editor.help"}});var L0=Un.memo(Un.forwardRef(({className:e,style:t,"data-block-id":r,"data-block-class":o,enableRichText:n=false,onCancel:i,onSave:a,isInline:l=true,submitButtonIcon:s=ArrowUpCircleFilledIcon,submitButtonAriaLabel:u,cancelButtonAriaLabel:c,"aria-label":p,"aria-describedby":d,"aria-labelledby":m,"aria-details":f,editableContentAriaLabel:y="Editing Area",footerButtons:g,clearOnCancel:b,clearOnSave:x,...h},v)=>{let C=useRef(null),{formatMessage:T}=fe(),P=useRef(null),k=useRef(null),S=useRef(null),w=!n&&h.variant==="minimal",E=useRef(null),[R,_]=Un.useState(h.value||h.defaultValue),D=h.value!==void 0&&h.onChange!==void 0;n&&h.value!==void 0&&!h.onChange&&Ts("editor-rich-value-uncontrolled","Editor: `value` without `onChange` in rich text mode sets the initial content only. Use `defaultValue` for uncontrolled content, or add `onChange` to control the value.");let F=h.value!==void 0&&(!n||D),z=h.value;Un.useEffect(()=>{F&&z!==void 0&&_(z);},[F,z]);let N=h.isDisabled||h.isSaveDisabled||!IR(R||""),{fieldProps:V}=Jt({"aria-label":p,"aria-labelledby":m,labelElementType:"div"});w&&!h.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let M=useCallback(()=>{_(""),n?C.current?.setValue("<p></p>",{emit:true}):k.current?.clear();},[n]),O=useCallback(()=>{N||(a?.(n?C.current?.getValue()??"":P.current.value),x&&M());},[M,x,n,a,N]),B=jsx(pe,{variant:"ghost","aria-label":u||T(KS.save),icon:s,isDisabled:N,"data-testid":"editor-save-button",size:"md",excludeFromTabOrder:w,className:L({[z6]:w},"BaselineUI-Editor-Save"),onPress:O,preventFocusOnPress:true}),[K,I]=Un.useState(false),{keyboardProps:H}=Le({onKeyDown:q=>{(q.metaKey||q.ctrlKey)&&q.shiftKey&&q.key==="h"&&(q.preventDefault(),I(true));}}),U=useCallback(q=>{_(q),h.onChange?.(q);},[h]);return jsxs("div",{...A(V,n?H:{}),role:"application",ref:se(S,v),style:t,"data-block-id":r,"data-block-class":o,className:L(C6({isInline:l,isMinimal:w}),"BaselineUI-Editor",e),"aria-disabled":h.isDisabled,children:[w?jsxs(Fragment,{children:[l?jsx(Us,{className:T6,name:h.avatarName||""}):null,jsxs("div",{className:R6({isInline:l}),children:[jsx(bg,{isMinimal:w,textBoxRef:P,ref:k,isInline:l,editableContentAriaLabel:y,...h,onChange:U,onSave:O}),B]})]}):jsxs(Fragment,{children:[n?jsx(NS,{containerRef:S,ref:E,editorRef:C,isInline:l,editableContentAriaLabel:y,onHelpDialogOpenRequest:()=>{I(true);},...h,value:D?h.value:void 0,defaultValue:h.defaultValue??(D?void 0:h.value),onChange:U,onSave:O}):jsxs(Fragment,{children:[!l&&jsx(De,{variant:"secondary"}),jsx(bg,{onCancel:i,textBoxRef:P,ref:k,isInline:l,editableContentAriaLabel:y,...h,onChange:q=>{_(q),h.onChange?.(q);},onSave:O})]}),jsx(De,{variant:"secondary"}),jsxs("div",{className:L(yg,sprinkles({justifyContent:"space-between"}),"BaselineUI-Editor-Footer"),children:[jsxs(Z,{paddingX:"sm",gap:"sm",display:"flex",children:[n&&h.mentionableUsers?jsx(pe,{icon:AtIcon,size:"sm","aria-label":T(KS.mention),"data-testid":"editor-mention-button",onPress:()=>E.current?.startMention(),preventFocusOnPress:true,className:"BaselineUI-Editor-Mention"}):null,g?.map(({type:q,props:W},J)=>q==="action"?jsx(pe,{...W,size:"sm",isDisabled:h.isDisabled||W.isDisabled},J):jsx(Wr,{...W,size:"sm",variant:"tertiary",isDisabled:h.isDisabled||W.isDisabled},J))]}),jsxs(Z,{children:[!!i&&jsx(pe,{variant:"secondary",icon:XCircleFilledIcon,isDisabled:h.isDisabled,"data-testid":"editor-cancel-button",size:"md",onPress:()=>{i(),b&&M();},"aria-label":c||T(KS.cancel),className:"BaselineUI-Editor-Cancel"}),B]})]})]}),jsx(N6,{isOpen:K,onClose:()=>{I(false);}})]})}));L0.displayName="Editor";var KS=Te({cancel:{defaultMessage:"Cancel",id:"bui.editor.cancel"},save:{defaultMessage:"Save",id:"bui.editor.save"},mention:{defaultMessage:"Mention",id:"bui.editor.mention"}});var A0="_8kqf970 _1yep5z6po _1yep5z6pp _1yep5z6pq _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z615m _1yep5z615n _1yep5z615o _1yep5z6z9 _1yep5z6vi _1yep5z6vj _1yep5z6vk _1yep5z617s _1yep5z6101";var N0=2,K0=Un.forwardRef(({className:e,style:t,hideForKeyboard:r,scrollRef:o,label:n,delay:i=1500,smoothScroll:a=true,"data-block-id":l,"data-block-class":s},u)=>{let c=Un.useRef(null),p=Yt(),[d,m]=Un.useState(false),f=useCallback(()=>{let S=o?.current||G(c.current).body;return X(S).getComputedStyle(S).flexDirection==="column-reverse"?S.scrollTop+N0>=0:S.scrollTop+S.clientHeight+N0>=S.scrollHeight},[o]),[y,g]=Un.useState(f),{buttonProps:b,isPressed:x}=dt({onPress:()=>{let S=o?.current||G(c.current).body;S.scrollTo({top:S.scrollHeight,behavior:a?"smooth":"auto"});}},c),{focusProps:h,isFocused:v,isFocusVisible:C}=oe(),{hoverProps:T,isHovered:P}=ie({}),k=he({"data-block-id":l,"data-block-class":s,"data-pressed":x,"data-focus-visible":C,"data-hovered":P,"data-focused":v});return useEffect(()=>{g(f());},[f]),useEffect(()=>{let S=o?.current||G(c.current).body,w="onscrollend"in X(S),E=()=>{setTimeout(()=>{m(false),g(f());},i);},R=()=>{m(true),w||E();};return S.addEventListener("scroll",R),S.addEventListener("scrollend",E),()=>{S.removeEventListener("scroll",R),S.removeEventListener("scrollend",E);}},[o,i,f]),jsx(AnimatePresence,{initial:false,children:(!r||p!=="keyboard")&&!d&&!y?jsxs(motion.button,{initial:{opacity:0,transform:"translateX(-50%) translateY(10px)"},animate:{opacity:1,transform:"translateX(-50%) translateY(0)"},exit:{opacity:0,transform:"translateX(-50%) translateY(10px)"},transition:{duration:.3},...A(b,h,T,k),className:L(A0,_b({isFocusVisible:C,variant:"high-contrast",isHovered:P}),Mb({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",e),style:t,ref:se(u,c),children:[jsx(ArrowDownCircleFilledIcon,{size:16,className:Rd({variant:"high-contrast"})}),n]}):null})});K0.displayName="ScrollControlButton";function V0({ariaProps:e,fallbackLabelId:t,fallbackDescriptionId:r}){let o={...e};return t&&!o["aria-labelledby"]&&!o["aria-label"]&&(o["aria-labelledby"]=t),r&&!o["aria-describedby"]&&!o["aria-details"]&&(o["aria-describedby"]=r),o}var BS="_1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6kd _1yep5z6ke _1yep5z6kf",B0=j({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oo _1yep5z6op _1yep5z6oq"},hasNoCloseBtn:{true:"_1yep5z6mc _1yep5z6md _1yep5z6me _1yep5z6oo _1yep5z6op _1yep5z6oq _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:true,hasNoCloseBtn:true},"_1yep5z61hr _1yep5z61hs _1yep5z61ht"]]}),H0="_1v0p2z10";var Ng=Un.forwardRef(({className:e,style:t,"data-block-id":r,"data-block-class":o,message:n,title:i,primaryActionLabel:a,primaryActionClassName:l,cancelLabel:s,cancelClassName:u,contentClassName:c,closeButtonClassName:p,buttonsClassName:d,textInputProps:m,icon:f,iconColor:y,showCloseButton:g=true,onPrimaryAction:b,onCancel:x,onClose:h,autoFocusButton:v,isPrimaryActionDisabled:C,...T},P)=>{let k=ee(),S=ee(),{formatMessage:w}=fe(),E=i&&jsx(Ye,{type:"title",size:"sm",elementType:"h3",id:k,children:i}),R=V0({ariaProps:T,fallbackLabelId:i?k:void 0,fallbackDescriptionId:n?S:void 0});return jsxs(Lr,{...R,className:L("BaselineUI-AlertDialog",e),style:t,"data-block-id":r,"data-block-class":o,size:"sm",variant:"primary",role:"alertdialog",ref:P,children:[jsxs("div",{className:B0({hasTitleAndIcon:!!(f&&i),hasNoCloseBtn:!g}),children:[jsxs(Z,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[f?jsx(f,{style:{color:y},size:24}):null,!f&&E,g?jsx(pe,{icon:XIcon,variant:"secondary",size:"md",className:p,"aria-label":w(tJ.close),onPress:h??x}):null]}),f?E:null]}),n?jsx(Z,{elementType:"section",className:L(H0,c),paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",id:S,children:n}):null,m?jsx(Z,{paddingX:"lg",paddingBottom:"lg",children:jsx(wi,{...m})}):null,s||a?jsxs(Fragment,{children:[jsx(De,{}),jsxs(Z,{padding:"lg",display:"flex",gap:"xl",className:d,children:[s?jsx(Me,{variant:"secondary",className:L(BS,u),label:s,onPress:x,autoFocus:v==="cancel"}):null,a?jsx(Me,{className:L(BS,l),label:a,onPress:b,autoFocus:v==="primary",isDisabled:C}):null]})]}):null]})});Ng.displayName="AlertDialog";var tJ=Te({close:{id:"bui.alertDialog.close",defaultMessage:"Close"}});var $0="_1t55bp71",j0="_1yep5z6e3 _1yep5z6eu _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69i _1yep5z69j _1yep5z69k",G0="_1t55bp70";var aJ=oJ(),U0=Un.forwardRef(({className:e,style:t,children:r,"data-block-id":o,"data-block-class":n,showCaret:i},a)=>{let l=useMemo(()=>{let s=r;return (!r||Array.isArray(r)&&r.length===0)&&(s=""),aJ.render(s)},[r]);return jsx("div",{className:L(j0,G0,{[$0]:i},"BaselineUI-Markdown",e),"data-block-id":o,"data-block-class":n,style:t,ref:a,dangerouslySetInnerHTML:{__html:l}})});U0.displayName="Markdown";function X0(e){let{formatMessage:t,locale:r}=fe(),[o,n]=Un.useState(false),[i,a]=Un.useState(0),[l,s]=Un.useState(0),[u,c]=Un.useState(false);useEffect(()=>{if(!e.current)return;let m=e.current,f=()=>{n(false),a(0);},y=()=>{u||a(m.currentTime*100/m.duration);},g=()=>{s(m.duration);};return m.addEventListener("ended",f),m.addEventListener("timeupdate",y),m.addEventListener("loadedmetadata",g),()=>{m.removeEventListener("ended",f),m.removeEventListener("timeupdate",y),m.removeEventListener("loadedmetadata",g);}},[u,e]);let p=useCallback(()=>{(async()=>e.current&&(e.current.paused?(await e.current.play(),n(true),ot(t(q0.playing),"polite")):(e.current.pause(),n(false),ot(t(q0.paused),"polite"))))();},[t,e]),d=useCallback(m=>{e.current&&(e.current.currentTime=m*e.current.duration/100,ot(uJ(e.current.currentTime,r.locale),"assertive"));},[r.locale,e]);return {isPlaying:o,progress:i,duration:l,togglePlay:p,seek:d,setProgress:a,formattedCurrentTime:e.current?.currentTime?HS(e.current?.currentTime):"00:00",formattedDuration:l?HS(l):"00:00",setIsSliderDragging:c}}var q0=Te({playing:{id:"bui.useMedia.playing",defaultMessage:"Playing"},paused:{id:"bui.useMedia.paused",defaultMessage:"Paused"}});function uJ(e,t){if(!("DurationFormat"in Intl))return HS(e);let r=Math.floor(e/3600),o=Math.floor(e%3600/60),n=e%60,i={...r&&{hours:r},...o&&{minutes:o},seconds:Math.floor(n)};return new Intl.DurationFormat(t,{style:"long"}).format(i)}function HS(e){let t=Math.floor(e%3600/60),r=Math.floor(e%60);return [t,r].map(o=>o.toString().padStart(2,"0")).join(":")}var Y0="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q",Z0="rta2n91 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6101 _1yep5z6vl _1yep5z6vm _1yep5z6vn _1yep5z617q _1yep5z610y",J0="rta2n90";var tO=Un.forwardRef(({className:e,style:t,size:r="lg",sources:o,"data-block-id":n,"data-block-class":i,...a},l)=>{let s=Un.useRef(null),{isPlaying:u,progress:c,duration:p,togglePlay:d,seek:m,formattedDuration:f,formattedCurrentTime:y,setProgress:g,setIsSliderDragging:b}=X0(s),{formatMessage:x}=fe(),h=he({"data-block-id":n,"data-block-class":i,"data-state":u?"playing":"paused","data-loaded":p>0});return jsxs("div",{...h,...a,className:L(Y0,"BaselineUI-AudioPlayer",e),role:"group",style:t,ref:l,children:[jsx(Oe,{children:jsx("audio",{ref:s,children:o.map(({url:v,type:C})=>jsx("source",{src:v,type:C},v))})}),jsx(Wr,{icon:u?PauseIcon:PlayIcon,variant:"toolbar",isSelected:u,size:r,"aria-label":x(u?$S.pause:$S.play),style:{borderRadius:"50%"},onPress:d}),jsxs("div",{className:Z0,children:[jsx("span",{"aria-hidden":true,children:y}),jsx(Rs,{"aria-label":x($S.audioTimeline),value:c,minValue:0,maxValue:100,className:J0,onChange:v=>{g(v),b(true);},onChangeEnd:v=>{m(v),b(false);}}),jsx("span",{"aria-hidden":true,children:f})]})]})});tO.displayName="AudioPlayer";var $S=Te({play:{id:"bui.audioPlayer.play",defaultMessage:"Play"},pause:{id:"bui.audioPlayer.pause",defaultMessage:"Pause"},audioTimeline:{id:"bui.audioPlayer.audioTimeline",defaultMessage:"Audio timeline"}});var rO=e=>Na({getItems:(t,r)=>r.map(o=>({"text/plain":o.label})),renderDropIndicator(t){return jsx(Po,{target:t,className:({isDropTarget:r})=>L(Cy({isDropTarget:r}),"BaselineUI-DropIndicator")})},...e});var oO="_1w920rnf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6ig _1yep5z6ih _1yep5z6ii",nO=j({defaultClassName:"_1w920rng",variantClassNames:{isVirtualized:{true:"_1w920rnh",false:"_1w920rni"}},defaultVariants:{},compoundVariants:[]}),iO="_1w920rn1 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",aO=j({defaultClassName:"_1w920rnc",variantClassNames:{isLoading:{false:"_1w920rnd"}},defaultVariants:{},compoundVariants:[]}),lO="_1w920rnb _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",sO="_1w920rn0 _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6le",Kg=j({defaultClassName:"_1w920rn2 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{isFocusVisible:{true:"_1yep5z6lt _1yep5z6lr _1yep5z6hx"},isSelected:{true:"_1yep5z6lt _1yep5z6lr _1yep5z6hx"},isLoading:{true:"_1yep5z616g _1yep5z616h _1yep5z616i"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:true,isSelected:true},"_1w920rn6 _1yep5z6lt _1yep5z6lr _1yep5z6hx"]]}),uO=j({defaultClassName:"_1w920rn7 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ar _1yep5z6as _1yep5z6at _1yep5z6bf _1yep5z6bg _1yep5z6bh _1yep5z6c3 _1yep5z6c4 _1yep5z6c5 _1yep5z6cr _1yep5z6cs _1yep5z6ct _1yep5z6g5 _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocusVisible:{true:"_1w920rn8 _1yep5z6lt _1yep5z6lr _1yep5z6hx"},isSelected:{true:"_1w920rn9"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:true,isSelected:true},"_1w920rna _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]}),cO="_1w920rne";var Vg=({items:e,containerClassName:t,previewClassName:r,itemDataAttribute:o,showCount:n=false,renderFallback:i})=>{let{length:a}=e,l=Un.useRef(null),[s,u]=Un.useState(false),c=e.at(-1);return useLayoutEffect(()=>{if(!l.current)return;let p=l.current.closest(t)?.querySelector(`[${o}='${c?.key}']`)?.cloneNode(true);if(!p){u(true);return}return u(false),l.current.prepend(p),()=>{p.remove();}},[c?.key,t,o]),jsxs("div",{className:r,ref:l,children:[s&&c?i?.(c):null,n&&a>1?jsx(Z,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:cO,children:a}):null]})};function Bg(e,t){return e.find(r=>r.id===t)}function pO(e,t,r){let o=[...e],n=o.filter(l=>r.has(l.id)),i=o.filter(l=>!r.has(l.id)),a=i.findIndex(l=>l.id===t);return i.flatMap((l,s)=>s===a?[...n,l]:l)}function mO(e,t,r){let o=[...e],n=o.filter(l=>r.has(l.id)),i=o.filter(l=>!r.has(l.id)),a=i.findIndex(l=>l.id===t);return i.flatMap((l,s)=>s===a?[l,...n]:l)}function jS(e){return e.map(t=>({id:t.id,label:t.label,data:{src:t.src,alt:t.alt}}))}function fp(e){return e.map(t=>({id:t.id,label:t.label,src:t.data?.src,alt:t.data?.alt}))}var yp={src:"src",alt:"alt"},pu={sm:102,md:170};function fO(e,t){let r=Bg(e,t);return {[yp.src]:r?.data?.src||"",[yp.alt]:r?.data?.alt||"",key:String(t)}}function yO(e){let t=e[yp.src];return t?{src:String(t),alt:e[yp.alt]?String(e[yp.alt]):""}:null}function bO({fit:e,imageDimensions:t,item:r,isSelected:o}){let n={display:"block",objectFit:e},i=typeof t=="function"?r?t(r,{isSelected:o}):void 0:t;if(!i)return n;let a=typeof i.width=="string"?pu[i.width]:i.width;return n.width=a,n.aspectRatio="height"in i?`${a} / ${i.height}`:i.aspectRatio.toString(),n}function gO(){let[e,t]=useState(false);return useEffect(()=>{let r=window.matchMedia("(pointer: coarse)");t(r.matches);let o=n=>{t(n.matches);};return r.addEventListener("change",o),()=>{r.removeEventListener("change",o);}},[]),e}var vO=Un.forwardRef(({className:e,children:t,style:r,isDisabled:o,onTruncatedChange:n,onHoverChange:i},a)=>{let l=useRef(null),{buttonProps:s}=dt({elementType:"span",isDisabled:o},l);useLayoutEffect(()=>{l.current&&n?.(l.current.scrollWidth>l.current.clientWidth);},[t,n]);let{hoverProps:u}=ie({isDisabled:o,onHoverChange:i});return jsx(ii,{elementType:"span",slot:"label",...A(s,u),className:L(e,"BaselineUI-AdaptiveText"),tabIndex:-1,ref:se(l,a),style:r,role:void 0,children:t})});vO.displayName="Label";var WS=Un.memo(Un.forwardRef(({children:e,isOpen:t,isDisabled:r,...o},n)=>{let[i,a]=useState(false),[l,s]=useState(false),u=gO(),c=r||!l||u;return jsx(tt,{text:e,variant:"inverse",includeArrow:false,size:"sm",placement:"bottom start",isOpen:(i||t)&&l,isDisabled:c,children:jsx(vO,{...o,isDisabled:c,onTruncatedChange:s,onHoverChange:a,ref:n,children:e})})}));WS.displayName="AdaptiveText";var DJ=({fit:e,item:t,deleteElement:r})=>{let{formatMessage:o}=fe(),{isLoading:n,imgProps:i}=Oy({src:t.data?.src,alt:t.data?.alt||""});return jsxs("div",{className:lO,children:[n?jsx(dn,{"aria-label":o(bp.loading)}):jsx("div",{role:"img",className:aO({isLoading:n}),"aria-label":i.alt||"",style:{backgroundImage:`url(${i.src})`,backgroundSize:e}}),r]})},xO=({item:e,options:{isFocusVisible:t,isSelected:r,isFocused:o,isDisabled:n,isPressed:i},fit:a="contain",onDelete:l,className:s,imageClassName:u,imageLabelClassName:c,imageDimensions:p,style:d,layoutTransition:m=true,renderImage:f=(y,{deleteElement:g})=>jsx(DJ,{item:y,deleteElement:g,fit:a})})=>{let{formatMessage:y}=fe(),g=l?jsx("div",{className:oO,children:jsx(pe,{"aria-label":y(bp.delete),size:"xs",icon:XIcon$1,onPress:()=>{l(e.id);},UNSAFE_isVisuallyInteractiveOnly:true})}):null,b=fp([e])[0],x=useCallback(S=>{let w={},E=typeof S=="function"?S(b,{isSelected:r}):S;return E&&(w.width=typeof E.width=="string"?pu[E.width]:E.width,w.aspectRatio="height"in E?`${w.width} / ${E.height}`:E?.aspectRatio?.toString()),w},[b,r]),h=useMemo(()=>({isFocusVisible:t,isSelected:r,isFocused:o,isDisabled:n,isPressed:i}),[t,r,o,n,i]),C=!useReducedMotion()&&(typeof m=="boolean"?m:true),T=typeof m=="object"?m:void 0,P=x(p),k=C?motion.div:"div";return jsxs(k,{...C?{layout:"position",initial:false,transition:T}:{},className:L(iO,Fa(s,b,h)),style:Py(d,b,h),children:[jsx(Z,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",flexGrow:0,children:jsx("div",{className:L(Kg({isFocusVisible:t,isSelected:r,isLoading:true}),Fa(u,b,h)),style:P,"data-image-key":e.id,children:f(e,{deleteElement:g??void 0,onDelete:l})})}),jsx(WS,{className:L(uO({isFocusVisible:t,isSelected:r}),c),style:{maxWidth:P.width},isOpen:t,children:e.label})]})};function wJ(e,t){return e==="all"?true:"has"in e&&typeof e.has=="function"?e.has(t):[...e].includes(t)}var SO=Un.forwardRef(({className:e,style:t,fit:r="cover",onReorder:o,"data-block-id":n,"data-block-class":i,onDelete:a,imageWidth:l=pu.sm,aspectRatio:s=3/4,items:u,defaultItems:c=[],onKeyDown:p,imageContainerClassName:d,imageClassName:m,labelClassName:f,onListChange:y,renderImage:g,layoutTransition:b,imageDimensions:x,imageContainerStyle:h,deleteConfirmationTitle:v="Are you sure you want to delete this item?",...C},T)=>{let{isVirtualized:P}=useContext(ze),k=ce(T),[S,w]=useState([]),{formatMessage:E}=fe();useEffect(()=>{(s||l)&&console.warn("ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.");},[l,s]);let R=Un.useMemo(()=>x??{width:l,aspectRatio:s},[x,l,s]),[_,D]=ye(C.selectedKeys,C.defaultSelectedKeys??[],C.onSelectionChange),[F,z]=ye(u?jS(u):void 0,jS(c),y?B=>{y?.(fp(B));}:void 0),N=useCallback(B=>{let K=B.target.key,I=B.keys;if(B.target.dropPosition==="before"){let H=pO(F,K,I);z(H);}else if(B.target.dropPosition==="after"){let H=mO(F,K,I);z(H);}o?.(B);},[F,o,z]),{dragAndDropHooks:V}=rO({onReorder:N,isDisabled:!o,renderDragPreview:B=>jsx(Vg,{items:B,containerClassName:".BaselineUI-ImageGallery",previewClassName:Kg(),itemDataAttribute:"data-image-key",showCount:true,renderFallback:K=>{let I=yO(K);if(!I)return null;let H=Bg(F,K.key),U=H?fp([H])[0]:void 0;return jsx("img",{...I,style:bO({fit:r,imageDimensions:R,item:U,isSelected:wJ(_,K.key)})})}}),getItems:B=>[...B].map(K=>fO(F,K)),renderDropIndicator(B){return jsx(Po,{target:B,className:L(nO({isVirtualized:!!P}),"BaselineUI-DropIndicator")})}}),M=useCallback(()=>{a&&S.length&&(z(F.filter(B=>!S.includes(B.id))),a(S),w([]));},[S,F,a,z]),O=useCallback((B,K)=>{let I={id:B.id,label:B.label,src:B.data?.src,alt:B.data?.alt};return jsx(xO,{item:B,options:K,fit:r,onDelete:a?H=>{w([H]);}:void 0,renderImage:g,className:Fa(d,I,K),imageClassName:m,imageLabelClassName:f,imageDimensions:R,style:h,layoutTransition:b},B.id)},[r,a,g,d,m,f,R,h,b]);return useEffect(()=>{let B=k.current;if(!B)return;let K=I=>{if(p?.(I),I.key==="Backspace"||I.key==="Delete"){if(!a)return;if([..._].length)w([..._]);else {let U=I.target.dataset.key;w([U]);}}};return B.addEventListener("keydown",K),()=>{B.removeEventListener("keydown",K);}},[k,a,p,_]),jsxs(Fragment,{children:[jsx(un,{...C,ref:k,style:t,className:L(sO,"BaselineUI-ImageGallery",e),"data-block-id":n,"data-block-class":i,selectedKeys:_,items:F,dragAndDropHooks:V,layout:"grid",orientation:"vertical",renderOption:O,onSelectionChange:D,optionClassName:o&&!P?sprinkles({marginLeft:"sm"}):void 0}),jsx(ln,{isOpen:!![...S].length,onOpenChange:B=>{B||w([]);},children:jsx(sn,{isDismissable:true,children:jsx(Ng,{showCloseButton:false,title:typeof v=="function"?v(_==="all"?"all":new Set(_)):v,primaryActionLabel:E(bp.delete),cancelLabel:E(bp.cancel),onCancel:()=>{w([]);},onPrimaryAction:M,autoFocusButton:"cancel"})})})]})});SO.displayName="ImageGallery";var bp=Te({delete:{id:"bui.imageGallery.delete",defaultMessage:"Delete"},cancel:{id:"bui.imageGallery.cancel",defaultMessage:"Cancel"},loading:{id:"bui.imageGallery.loading",defaultMessage:"Loading"}});var DO="_1sexph00",kO="_1sexph02",EO="_1sexph01 _1yep5z6189 _1yep5z618a _1yep5z618b _1yep5z61al _1yep5z61am _1yep5z61an _1yep5z61br _1yep5z61bs _1yep5z61bt _1yep5z619f _1yep5z619g _1yep5z619h _1yep5z61sg _1yep5z61sh _1yep5z61si";function zO(e,t){return typeof e=="function"?e(t):e}var IO=Un.forwardRef(({className:e,style:t,items:r,"data-block-id":o,"data-block-class":n,hideLabel:i,size:a="md",isDisabled:l,excludeFromTabOrder:s,onButtonPress:u,onButtonAction:c,isSelected:p,defaultSelected:d,onButtonSelectionChange:m,collection:f,moreAriaLabel:y,optionStyle:g,optionClassName:b,triggerClassName:x,triggerStyle:h,tooltipProps:v,buttonBehaviour:C="toggle",...T},P)=>{let{formatMessage:k}=fe(),S=Nc({...T,collection:f,defaultValue:T.defaultSelectedKey||r?.[0]?.id,children:void 0,selectionMode:"single",validationState:T.validationState==="error"?"invalid":"valid"}),w=useMemo(()=>typeof C=="function"?C(S.value):C,[C,S.value]),[E,R]=ye(p,!!d,B=>{m?.({isSelected:B,selectedKey:S.value});}),{hoverProps:_,isHovered:D}=ie({isDisabled:l}),F=useMemo(()=>{let B=S.collection.getItem(S.value);if(!B)return null;let K=B?.textValue||B?.["aria-label"],I=B.value;ge(I,"ButtonSelect: selectedItem.value is not populated. Ensure ListOption passes value={item} to AriaOption.");let H=I?.icon,U=w==="toggle",q=l||S.disabledKeys.has(S.value),W={size:a,...U&&{isSelected:E},onPress:J=>{U&&R(!E),u?.(J),c?.({isSelected:U?!E:false,selectedKey:S.value,buttonBehaviour:w});},isDisabled:q,excludeFromTabOrder:s,className:L(typeof b=="function"?b(I,{isButton:true,isSelected:E}):b,"BaselineUI-ButtonSelect-Button"),style:typeof g=="function"?g(I,{isButton:true,isSelected:E}):g};return i&&H?jsx(tt,{variant:"inverse",size:"sm",includeArrow:false,text:K,placement:"bottom start",offset:4,...zO(v,"button"),children:w==="action"?jsx(pe,{icon:H,"aria-label":K,variant:"toolbar",...W}):jsx(Wr,{icon:H,"aria-label":K,variant:"toolbar",...W})}):w==="toggle"?jsx(Db,{iconStart:H,label:K,variant:"toolbar",...W}):jsx(Me,{label:K,variant:"toolbar",...W})},[S.collection,S.value,S.disabledKeys,w,l,a,E,s,b,g,i,u,c,R,v]),z=T["aria-label"],N=useCallback(({buttonProps:B,ref:K})=>{delete B["aria-labelledby"];let I=y||(z?k(wO.moreWithLabel,{label:z}):k(wO.more));return jsx(tt,{variant:"inverse",size:"sm",includeArrow:false,text:I,placement:"bottom start",offset:4,...zO(v,"select"),children:jsx(Ir,{...B,children:jsx(pe,{"aria-label":I,ref:K,icon:CaretDownIcon,variant:"toolbar",size:a,className:({isFocusVisible:H})=>L(Sb({isSelected:E&&w==="toggle",isFocusVisible:H}),EO,x,"BaselineUI-ButtonSelect-Trigger"),style:h,isDisabled:l,excludeFromTabOrder:s})})})},[z,w,s,k,E,l,y,a,v,x,h]),V=he({"data-block-id":o,"data-block-class":n,"data-hovered":D,"data-selected":E,"data-disabled":l,"data-expanded":S.isOpen,"data-button-behaviour":w}),M=ce(P),O=useMemo(()=>({state:S,popoverAnchorRef:M}),[S,M]);return jsx(Vb.Provider,{value:O,children:jsxs(Z,{..._,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:L(DO,"BaselineUI-ButtonSelect",e),"aria-label":T["aria-label"],"aria-labelledby":T["aria-labelledby"],"aria-describedby":T["aria-describedby"],"aria-details":T["aria-details"],style:t,ref:M,...V,children:[F,jsx(po,{isDisabled:l,placement:"bottom start",items:r,...T,variant:"ghost",renderTrigger:N,className:L(kO,"BaselineUI-ButtonSelect-Select")})]})})});IO.displayName="ButtonSelectCore";var _O=Un.forwardRef(({onPress:e,optionStyle:t,optionClassName:r,onSelectionChange:o,onOptionPress:n,...i},a)=>{let l=useCallback((d,m)=>{n?.(d,m),i.selectedKey===m&&o?.(m);},[n,o,i.selectedKey]),s=useCallback(d=>{d&&o?.(d);},[o]),u=useCallback((d,m)=>{(d.key==="Enter"||d.key===" ")&&i.selectedKey===m&&o?.(m);},[o,i.selectedKey]),c=useMemo(()=>({onPress:l,onKeyDown:u}),[l,u]),p=useMemo(()=>({renderOption:(d,m)=>jsx(kd,{...m,item:d}),optionStyle:(d,m)=>typeof t=="function"?t(d,{isButton:false,isSelected:m.isSelected}):t,optionClassName:(d,m)=>typeof r=="function"?r(d,{isButton:false,isSelected:m.isSelected}):r}),[t,r]);return jsx(hb.Provider,{value:c,children:jsx(Ks,{items:i.items,listBoxProps:p,children:d=>jsx(IO,{collection:d,onButtonPress:e,onSelectionChange:s,optionStyle:t,optionClassName:r,...i,ref:a})})})});_O.displayName="ButtonSelect";var wO=Te({more:{id:"bui.buttonSelect.more",defaultMessage:"More"},moreWithLabel:{id:"bui.buttonSelect.moreWithLabel",defaultMessage:"More {label}"}});var MO=j({defaultClassName:"_18v88n10 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ln",variantClassNames:{labelPosition:{top:"_1yep5z6157 _1yep5z6158 _1yep5z6159",start:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),LO=j({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6ln _1yep5z6ly _1yep5z6lq _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z6111"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),AO=j({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lk",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z610h",warning:"_1yep5z610p"},isReadOnly:{true:"_1yep5z6118"}},defaultVariants:{},compoundVariants:[]}),OO=j({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z612q",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6184 _1yep5z6182 _1yep5z6134 _1yep5z617v _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z6140"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:true,isFocused:false,validationState:"valid"},"_1yep5z61u7 _1yep5z61u5 _1yep5z61pa"],[{variant:"ghost",isFocused:false,isHovered:false,validationState:"valid"},"_18v88n1n"],[{isHovered:true,validationState:"valid",isDisabled:false,isReadOnly:false,isFocused:false,variant:"primary"},"_1yep5z61pb"],[{isHovered:true,validationState:"warning",isDisabled:false,isReadOnly:false,isFocused:false},"_1yep5z61pb"],[{isReadOnly:true,variant:"primary",isFocused:false},"_18v88n1o"]]}),NO=j({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),FO=j({defaultClassName:"_18v88n19 _1yep5z6iv _1yep5z6iw _1yep5z6ix",variantClassNames:{labelPosition:{top:"_1yep5z6t9 _1yep5z6ta _1yep5z6tb",start:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6157 _1yep5z6158 _1yep5z6159"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:false},"_1yep5z61sj _1yep5z61sk _1yep5z61sl"]]}),KO="_18v88n1y",VO=j({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1yep5z6127 _1yep5z614f _1yep5z617t"},isHovered:{true:"_1yep5z6127 _1yep5z614f _1yep5z617t"},isOpen:{true:"_1yep5z614f _1yep5z617t"}},defaultVariants:{},compoundVariants:[]});function XS(e,t,r,o){if(t!=="number"||e===void 0||e==="")return e;let n=Number.parseFloat(e);if(Number.isNaN(n))return e;let i=n;return r!==void 0&&(i=Math.max(i,r)),o!==void 0&&(i=Math.min(i,o)),i===n?e:String(i)}function $O(e,t){return e.selectedKey==null||t!==e.selectedItem?.textValue}function jO({allowsCustomValue:e,onValueChange:t,inputType:r,minValue:o,maxValue:n},i,a,l){let[s,u]=useState(null),c=useRef(false),p=useRef(null),d=!$O(i,i.inputValue),m=(b,x)=>{p.current=x==null?null:{key:x,value:b},t?.({value:b,key:x});},f=b=>{!c.current||!$O(i,b)||(m(b,null),c.current=false);};useEffect(()=>{if(!t)return;let b=a.current,x=h=>{u($(h));};return b?.addEventListener("focusin",x),()=>{b?.removeEventListener("focusin",x);}},[t,a,i.selectedKey]),useGranularEffect(()=>{if(i.selectedKey==null||i.selectedItem==null){i.selectionManager.isEmpty&&(p.current=null);return}let b=i.selectedKey,x=i.selectedItem.textValue,h=p.current?.key!==b;!h&&(p.current?.value===x||c.current&&!d)||(m(x,b),h&&(c.current=false));},[i.selectedKey,i.selectedItem?.textValue,d],[t,i.selectedItem]);let y=()=>{s===l.current&&e&&c.current&&(c.current=false);};useEffect(()=>{if(!t)return;let b=l.current,x=()=>{c.current=true;};return b?.addEventListener("input",x),()=>{b?.removeEventListener("input",x);}},[l,t]);let{keyboardProps:g}=Le({isDisabled:!t,onKeyDown:b=>{if(e&&b.key==="Enter"&&c.current){let x=XS(l.current?.value,r,o,n);f(x??""),c.current=false;}else b.key==="Escape"&&(i.selectedKey!=null&&(c.current=false),i.close());b.continuePropagation();}});return {inputProps:g,commitCustomValue:f,disarmPendingEdit:y}}var GO=Un.forwardRef(({renderOption:e,optionStyle:t,optionClassName:r,...o},n)=>jsx(Ks,{items:o.items,listBoxProps:{renderOption:e,optionStyle:t,optionClassName:r},children:i=>jsx(UO,{...o,collection:i,ref:n})}));GO.displayName="ComboBox";var UO=Un.forwardRef(({className:e,style:t,inputStyle:r,inputClassName:o,"data-block-id":n,"data-block-class":i,label:a,items:l,isInvalid:s=false,labelPosition:u="top",validationState:c="valid",variant:p="primary",toggleLabel:d,showIcon:m=true,filter:f,minValue:y,maxValue:g,inputType:b="text",onInputSubmit:x,onValueChange:h,tooltip:v,collection:C,onTriggerPress:T,...P},k)=>{let S=ce(k),{contains:w}=yi({sensitivity:"base"}),E=hc({...P,defaultFilter:f||w,defaultItems:l,collection:C,children:void 0,validationState:s?"invalid":"valid"}),R=Un.useRef(null),_=Un.useRef(null),D=Un.useRef(null),F=Un.useRef(null),z=Un.useRef(null),{inputProps:N,commitCustomValue:V,disarmPendingEdit:M}=jO({onValueChange:h,allowsCustomValue:P.allowsCustomValue,inputType:b,minValue:y,maxValue:g},E,S,_),O=Vt=>{let Lt=XS(Vt,b,y,g)??"";return Lt!==Vt&&!x&&!h&&Ts("bui.comboBox.clampNoCallback","ComboBox: minValue/maxValue clamped a value but no onInputSubmit or onValueChange callback is provided. The constraint cannot be enforced without a callback to notify the consumer."),x?.(Lt),Lt},B=()=>{let Vt=_.current?.value??"";!P.allowsCustomValue||!Vt||V(O(Vt));};ko({ref:_,onInteractOutside:Vt=>{let Lt=$(Vt);if(Y(S.current,Lt)||Y(F.current,Lt))return;let or=_.current;if(!or||Jc(or)!==or){M();return}E.isOpen&&(B(),E.close());}});let{buttonProps:K,inputProps:I,listBoxProps:H,labelProps:U,errorMessageProps:q,descriptionProps:W,validationErrors:J}=bc({...P,onBlur:We(P.onBlur,B),inputRef:_,defaultItems:l,buttonRef:R,listBoxRef:D,popoverRef:F,validationState:c==="error"?"invalid":"valid"},E),me=P.errorMessage||J.join(" "),ne=mr({...P,errorMessage:me,descriptionProps:W,errorMessageProps:q,labelPosition:u});me&&(c="error");let{hoverProps:de,isHovered:ke}=ie({isDisabled:P.isDisabled}),{isFocused:Ge,focusProps:ut,isFocusVisible:br}=oe(),Ee=zi({isReadOnly:P.isReadOnly,validationState:c}),Ce=he({"data-read-only":P.isReadOnly,"data-disabled":P.isDisabled,"data-validation-state":c,"data-focused":Ge,"data-focus-visible":br}),{labelProps:qe,fieldProps:le}=Jt({label:a,"aria-label":P["aria-label"],"aria-labelledby":P["aria-labelledby"],"aria-describedby":P["aria-describedby"],"aria-details":P["aria-details"]}),{keyboardProps:ae}=Le({onKeyDown:Vt=>{P.allowsCustomValue&&Vt.key==="Enter"&&O(_.current?.value??"");}}),{tooltipProps:we}=cr({tooltip:v,label:P["aria-label"]}),{pressProps:Sr}=Ae({onPress:T}),Vo=d?.trim()||void 0,Wn=Vt=>{let{triggerProps:Lt,triggerRef:or}=Vt??{};return jsxs("div",{className:L(MO({labelPosition:u}),e,"BaselineUI-ComboBox"),"data-block-id":n,"data-block-class":i,style:t,ref:S,children:[a||u==="start"&&ne?jsxs("div",{className:FO({labelPosition:u,hasMessage:!!ne}),children:[jsx("label",{...A(U,qe),className:NO({isDisabled:P.isDisabled}),children:a}),u==="start"&&ne]}):null,jsxs("div",{...de,className:OO({validationState:c,isHovered:ke,isFocused:Ge,variant:p,isReadOnly:!!P.isReadOnly,isDisabled:!!P.isDisabled}),ref:z,children:[jsx("input",{...A(Sr,Lt,I,N,ut,Ce,le,ae,b==="number"?{type:"number",min:y,max:g,onKeyDown:St=>{(St.key==="ArrowUp"||St.key==="ArrowDown")&&St.preventDefault();}}:null),id:P.id,ref:se(or,_),className:L(LO({isDisabled:P.isDisabled,labelPosition:u}),"BaselineUI-ComboBox-Input",o),style:r}),Ee&&m?jsx(Ee,{className:AO({validationState:c,isReadOnly:P.isReadOnly}),size:16}):null,jsx(Me,{...K,onPressStart:St=>{K.onPressStart?.(St),T?.(St);},ref:R,"data-testid":"combobox-toggle-button",variant:"popover",label:null,"aria-label":Vo??K["aria-label"],"aria-labelledby":Vo?void 0:K["aria-labelledby"],className:VO({isFocusVisible:!P.isDisabled&&!P.isReadOnly&&br,isHovered:!P.isDisabled&&!P.isReadOnly&&ke,isOpen:E.isOpen})})]}),u==="top"&&ne]})};return jsxs(Fragment,{children:[we?jsx(tt,{...we,children:Wn}):Wn(),jsx(Pt,{ref:F,triggerRef:z,state:E,isNonModal:true,crossOffset:-2,className:"BaselineUI-ComboBox-Popover",children:jsx(io.Provider,{value:E,children:jsx(Ln.Provider,{value:useMemo(()=>({...H,ref:D}),[H]),children:jsx(un,{selectionMode:"single",className:L(Vs,KO,"BaselineUI-ComboBox-ListBox")})})})})]})});UO.displayName="ComboBoxInner";var WO=j({defaultClassName:"byycd01 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{},defaultVariants:{},compoundVariants:[]});var ZS=Un.forwardRef(({enableReorder:e,...t},r)=>e?jsx(qO,{ref:r,...t}):jsx(JS,{ref:r,...t}));ZS.displayName="GridListItem";var JS=Un.forwardRef(({item:e,state:t,dropState:r,renderGridItem:o,dragHandleProps:n},i)=>{let a=ce(i),l=Ra({node:e},t,a),s=t.selectionManager.selectionMode!=="none"&&t.selectionManager.selectionBehavior==="toggle",{checkboxProps:u}=ts({key:e.key},t),c={...l,checkBoxProps:s?u:void 0,dragHandleProps:n};return jsxs("div",{"data-grid-list-item-key":e.key,children:[r?jsx(Ss,{target:{type:"item",key:e.key,dropPosition:"before"},dropState:r}):null,o?o(e,c,a):null,r&&t.collection.getKeyAfter(e.key)==null?jsx(Ss,{target:{type:"item",key:e.key,dropPosition:"after"},dropState:r}):null]},e.key)});JS.displayName="BaseGridListItem";var qO=Un.forwardRef(({dragState:e,item:t,...r},o)=>{let n=ce(o),i=vi({key:t.key,hasDragButton:true},e,n);return jsx(JS,{item:t,dragHandleProps:i,ref:n,...r})});qO.displayName="DraggableGridListItem";var KJ=e=>{e.key==="Enter"||e.key==="Escape"||e.stopPropagation();},YO=Un.forwardRef(({className:e,style:t,isEditing:r=false,"data-block-id":o,"data-block-class":n,gridListHandle:i,onReorder:a,enableReorder:l=false,layout:s="stack",orientation:u="vertical",renderGridItem:c,...p},d)=>{let m=Ci(),f=Mt({...p,children:m}),y=Un.useRef(null),g=ce(d),{gridProps:b}=wa(p,f,g);Ty({handle:i,type:"gridlist"},f,g);let{collectionProps:x,dragState:h,dropState:v}=xy({...p,onReorder:a,enableReorder:l,layout:s,orientation:u,preview:y,getItems:P=>[...P].map(k=>{let S=f.collection.getItem(k);return ge(S,"Expected item to be defined."),{key:S.key.toString()}})},f,g),C=r?KJ:b.onKeyDownCapture,T={state:f,dragState:h,dropState:v,enableReorder:l,renderGridItem:c};return jsxs("ul",{...A(b,x),className:L("BaselineUI-GridList",e),"data-block-id":o,"data-block-class":n,style:t,ref:g,"aria-rowcount":f.collection.size,onKeyDownCapture:C,children:[[...f.collection].map(P=>jsx(ZS,{item:P,...T},P.key)),l?jsx(hi,{ref:y,children:P=>jsx(Vg,{items:P,containerClassName:".BaselineUI-GridList",previewClassName:WO(),itemDataAttribute:"data-grid-list-item-key"})}):null]})});YO.displayName="GridList";var HJ={none:"toolbar",single:"radiogroup",multiple:"toolbar"};function jg(e,t,r){let{isDisabled:o,orientation:n="horizontal"}=e,[i,a]=useState(false);te(()=>{a(!!(r.current&&r.current.parentElement?.closest('[role="toolbar"]')));},[r]),[...t.collection.getKeys()].some(m=>!t.disabledKeys.has(m))||(o=true);let{direction:s}=Q(),u=ci(r),c=s==="rtl"&&n==="horizontal",p=m=>{if(Y(m.currentTarget,$(m)))switch(m.key){case "ArrowRight":case "ArrowDown":m.preventDefault(),m.stopPropagation(),m.key==="ArrowRight"&&c?u.focusPrevious({wrap:true}):u.focusNext({wrap:true});break;case "ArrowLeft":case "ArrowUp":m.preventDefault(),m.stopPropagation(),m.key==="ArrowLeft"&&c?u.focusNext({wrap:true}):u.focusPrevious({wrap:true});break}},d=HJ[t.selectionManager.selectionMode];return i&&d==="toolbar"&&(d="group"),{actionGroupProps:{...re(e,{labelable:true}),role:d,"aria-orientation":d==="toolbar"?n:void 0,"aria-disabled":o,onKeyDown:p}}}var jJ={none:void 0,single:"radio",multiple:"checkbox"};function Gg(e,t,r){let o=t.selectionManager.selectionMode,n={role:jJ[o]};if(o!=="none"){let l=t.selectionManager.isSelected(e.key);n["aria-checked"]=l;}let i=e.key===t.selectionManager.focusedKey,a=Pe(()=>{i&&t.selectionManager.setFocusedKey(null);});return useEffect(()=>()=>{a();},[]),{buttonProps:A(n,{tabIndex:i||t.selectionManager.focusedKey==null?0:-1,onFocus(){t.selectionManager.setFocusedKey(e.key);},onPress(){t.selectionManager.select(e.key);}})}}var ZO="_1yep5z6f5",JO="_1dc3b8m0";var QO=Un.forwardRef(({className:e,selectionMode:t,style:r,"data-block-id":o,"data-block-class":n,tooltipProps:i,icon:a,renderActionItem:l,...s},u)=>{let c=ce(u),p=Ci(),d=Mt({...s,selectionMode:t,suppressTextValueWarning:true,children:p}),{actionGroupProps:m}=jg({...s,selectionMode:t,children:p},d,c),f=[...d.collection].map(y=>(ge(y.value),jsx(WJ,{item:y,state:d,isDisabled:s.isDisabled,onAction:s.onAction,tooltipProps:i,renderActionItem:l},y.key)));return a?jsxs(Z,{...m,display:"flex",flexDirection:"row",gap:"md",alignItems:"center",className:L("BaselineUI-ActionGroup",e),"data-block-id":o,"data-block-class":n,style:r,ref:c,children:[jsx(a,{"aria-hidden":"true",size:24,className:ZO}),jsx(Z,{display:"flex",flexDirection:"row",gap:"xs",flex:1,children:f})]}):jsx(Z,{...m,display:"flex",flexDirection:"row",gap:"xs",className:L("BaselineUI-ActionGroup",e),"data-block-id":o,"data-block-class":n,style:r,ref:c,children:f})});QO.displayName="ActionGroup";var WJ=({item:e,state:t,tooltipProps:r,renderActionItem:o,onAction:n,isDisabled:i})=>{let{buttonProps:a}=Gg({key:e.key},t),l=i||t.selectionManager.isDisabled(e.key),s=t.selectionManager.isSelected(e.key);ge(e.value);let{icon:u}=e.value;ge(u);let c=useMemo(()=>(ge(e.value),typeof r=="function"?r(e.value):r),[r,e.value]);return jsx(Ir,{...A(a,{onPress:()=>{n?.(e.key);}}),children:jsx(tt,{text:e.textValue,size:"sm",variant:"inverse",includeArrow:false,offset:4,...c,children:o?.(e,{isSelected:s,isDisabled:l})||jsx(pe,{variant:"tertiary",icon:u,"aria-label":e.textValue,size:"sm",isDisabled:l,className:L({[JO]:s},"BaselineUI-ActionGroup-Item")})})})};var eN="ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",tN="_1yep5z61r7 _1yep5z61r8 _1yep5z61r9 _1yep5z61hl _1yep5z61hm _1yep5z61hn";var oN=Un.forwardRef(({className:e,style:t,items:r,optionsContainerClassName:o,label:n,icon:i,value:a,defaultValue:l,onChange:s,isDisabled:u,optionClassName:c,optionStyle:p,labelPosition:d="top","data-block-id":m,"data-block-class":f,shouldFocusWrap:y,tooltip:g=true,...b},x)=>{let h=useMemo(()=>r.map(C=>({id:C.color,label:C.label})),[r]),v=ee();return useEffect(()=>{!n&&!b["aria-label"]&&!b["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.");},[n,b]),jsxs(Z,{...re(b),className:L("BaselineUI-ColorSwatchPicker",e),"data-block-id":m,"data-block-class":f,display:"flex",flexDirection:d==="top"?"column":"row",alignItems:d==="top"?"flex-start":"center",justifyContent:"space-between",gap:"md",style:t,ref:x,children:[i||n?jsxs(Z,{display:"flex",alignItems:"center",gap:"md",children:[i?jsx(i,{"aria-hidden":"true",size:24,className:sprinkles({color:"icon.primary"})}):null,n?jsx(Ye,{id:v,type:"label",size:"sm",children:n}):null]}):null,jsx(on,{className:L(tN,o),selectionMode:"single",items:h,orientation:"horizontal",defaultSelectedKeys:l?[l]:void 0,disabledKeys:u?h.map(C=>C.id):void 0,isDisabled:u,selectedKeys:a?[a]:void 0,onSelectionChange:C=>{s?.([...C][0]);},optionClassName:c,optionStyle:p,renderOption:(...C)=>QJ(...C,g),shouldFocusWrap:y,...b,"aria-labelledby":n?v:b["aria-labelledby"]})]})});oN.displayName="ColorSwatchPicker";var QJ=({key:e,textValue:t},{isSelected:r,isFocusVisible:o,isDisabled:n,optionProps:i},a,l)=>{let{tooltipProps:s}=cr({label:t,tooltip:l});return jsx(tt,{...s,children:jsx(hl,{children:jsx("li",{...i,"data-disabled":n,className:L(eN,i.className),ref:a,children:jsx(_i,{isFocusVisible:o,color:e,isSelected:r,"aria-label":t,isInteractive:true,isDisabled:n,tooltip:false})})})})};var nN=j({defaultClassName:"_1lrwegk0",variantClassNames:{isSeparator:{true:"_1yep5z610y"}},defaultVariants:{},compoundVariants:[]}),Ug="_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6kj _1yep5z6kk _1yep5z6kl";var e1="\u2013";function Wg({segment:e,state:t}){let r=Un.useRef(null),{segmentProps:o}=Dx(e,t,r),{focusProps:n,isFocused:i}=oe(),a=useMemo(()=>{let{text:l,type:s}=e;switch(s){case "hour":return l.replaceAll(e1,"H");case "minute":return l.replaceAll(e1,"M");case "second":return l.replaceAll(e1,"S");default:return l}},[e]);return jsx(Z,{...A(o,n),typography:"label.md.medium",color:e.isPlaceholder?"text.placeholder":"text.primary",backgroundColor:i?"support.info.subtle":void 0,ref:r,marginLeft:e.type==="timeZoneName"?"xs":void 0,className:nN({isSeparator:e.text===":"||e.text==="/"}),children:e.isPlaceholder?a:e.text})}var aN=Un.forwardRef(({className:e,labelPosition:t,"data-block-id":r,"data-block-class":o,...n},i)=>{let{locale:a}=Q(),l={...n,validationState:void 0,isInvalid:n.validationState==="error"||void 0},s=Rx({...l,locale:a}),u=Un.useRef(null),{labelProps:c,fieldProps:p,descriptionProps:d,errorMessageProps:m,validationErrors:f,isInvalid:y,inputProps:g}=Cx(l,s,u),b=n.errorMessage||f.join(" "),x=mr({...n,errorMessage:b,descriptionProps:d,errorMessageProps:m,labelPosition:t}),{focusProps:h,isFocused:v}=oe({within:true});return jsxs(Ha,{className:L("BaselineUI-TimeField",e),labelProps:c,fieldProps:p,ref:i,wrapperRef:u,wrapperClassName:Ug,labelPosition:t,message:x,isFocused:v,"data-block-id":r,"data-block-class":o,isInvalid:y,...n,children:[jsx(Oe,{children:jsx("input",{...g})}),jsx(Z,{display:"flex",flexDirection:"row",paddingRight:"md",...h,children:s.segments.map((C,T)=>jsx(Wg,{segment:C,state:s},T))})]})});aN.displayName="TimeField";var lN="_10dw1p96",sN="_10dw1p95",uN=j({defaultClassName:"_10dw1p90 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lq _1yep5z6ld _1yep5z6la",variantClassNames:{isSelected:{true:"_1yep5z6126"},isHovered:{true:"_10dw1p92"},isRenaming:{true:"_10dw1p93"},isFocusVisible:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isSelected:false,isRenaming:false},"_1yep5z61o8 _1yep5z61q9 _1yep5z61ty _1yep5z61tx _1yep5z61u1"]]});function pN(e,t){if(typeof e=="function"&&!e.prototype?.isReactComponent){let r=e(t);return isValidElement(r)?e:r}return e}var r1=({item:e,onPrimaryAction:t,onSecondaryAction:r,actionsPosition:o,primaryActionIcon:n,secondaryActionIcon:i,primaryActionAriaLabel:a,secondaryActionAriaLabel:l,onRename:s,renderItemTitle:u})=>{let{formatMessage:c}=fe(),{renamingKey:p,setRenamingKey:d}=useContext(o1),m=p===e.id,f=!!e.children?.length,y=e.icon,g=!!s,b=useRef(false),x=useMemo(()=>{let C=pN(n,e.id),T=pN(i,e.id),P=typeof a=="function"?a(e.id):a,k=typeof l=="function"?l(e.id):l;return C||T?jsxs(Z,{display:"flex",flexDirection:"row",children:[C?jsx(Wr,{icon:C,"aria-label":P,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{t?.(e.id);},tooltip:true}):null,T?jsx(Wr,{icon:T,"aria-label":k,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{r?.(e.id);},tooltip:true}):null]}):null},[n,e.id,i,a,l,t,r]),h=useCallback(C=>{C.key==="Enter"?(b.current=true,s?.({key:e.id,value:C.target.value}),d(null)):C.key==="Escape"&&(b.current=true,d(null));},[e.id,s,d]),v=useCallback(()=>u?u(e):e.label,[u,e]);return jsxs(lC,{id:e.id,textValue:e.label,"data-key":e.id,className:C=>L(sN,uN({isHovered:C.isHovered,isSelected:C.isSelected,isFocusVisible:C.isFocusVisible,isRenaming:m}),"BaselineUI-TreeView-Row"),style:{justifyContent:o==="end"?"space-between":void 0},children:[jsx(aC,{children:C=>{let T=C.level-1;return jsxs(Fragment,{children:[o==="start"?x:null,jsxs(Z,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxs(Z,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${T*2} * ${themeVars.spacing.lg})`},children:[jsx(pe,{icon:ChevronRightIcon,size:"xxs",variant:"secondary",onPress:()=>{C.state.toggleKey(C.id);},"aria-label":c(C.isExpanded?t1.collapse:t1.expand),style:{visibility:f?"visible":"hidden"},className:L(lN,"BaselineUI-TreeView-ExpansionToggle")}),y?jsx(y,{size:16,style:{color:themeVars.color.icon.interactive.disabled}}):null]}),jsxs(Z,{paddingLeft:"sm",paddingY:m?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:P=>{g&&(P.stopPropagation(),P.preventDefault(),d(e.id));},children:[m?jsx("div",{onClick:P=>{P.stopPropagation();},children:jsx(wi,{defaultValue:e.label,autoFocus:true,onBlur:P=>{if(b.current){b.current=false;return}s?.({key:e.id,value:P.target.value}),d(null);},"aria-label":c(t1.rename),onKeyDown:h,className:"BaselineUI-TreeView-RenameInput"})}):jsx(Ye,{type:"label",size:"sm",className:L(sprinkles.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:v()}),e.description?jsx(Ye,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:e.description}):null]})]}),o==="end"?x:null]})}}),jsx(wt,{items:e.children,children:C=>jsx(r1,{item:C,onPrimaryAction:t,onSecondaryAction:r,actionsPosition:o,primaryActionIcon:n,secondaryActionIcon:i,primaryActionAriaLabel:a,secondaryActionAriaLabel:l,onRename:s,renderItemTitle:u})})]})},t1=Te({expand:{id:"bui.treeView.expand",defaultMessage:"Expand"},collapse:{id:"bui.treeView.collapse",defaultMessage:"Collapse"},rename:{id:"bui.treeView.rename",defaultMessage:"Rename"}});var o1=createContext({renamingKey:null,setRenamingKey:()=>{}}),mN=Un.forwardRef(({className:e,style:t,"data-block-id":r,"data-block-class":o,items:n,onPrimaryAction:i,onSecondaryAction:a,primaryActionIcon:l,secondaryActionIcon:s,primaryActionAriaLabel:u,secondaryActionAriaLabel:c,actionsPosition:p="start",onRename:d,onAction:m,renderItemTitle:f,...y},g)=>{let b=useRef(null),[x,h]=useState(null);useEffect(()=>{let C=b.current;if(!C||!d)return;let T=P=>{if(P.key==="F2"){let S=C.querySelector("[data-focused='true']")?.dataset.key;S&&(P.preventDefault(),P.stopPropagation(),h(S));}};return C.addEventListener("keydown",T),()=>{C.removeEventListener("keydown",T);}},[d]);let v=useMemo(()=>({renamingKey:x,setRenamingKey:h}),[x]);return jsx(o1.Provider,{value:v,children:jsx(iC,{ref:se(g,b),items:n.children||[],selectionMode:"multiple",expandedKeys:y.expandedKeys,defaultExpandedKeys:y.defaultExpandedKeys,onExpandedChange:y.onExpandedChange,selectedKeys:y.selectedKeys,onAction:m,"aria-label":y["aria-label"],"aria-labelledby":y["aria-labelledby"],"data-block-id":r,"data-block-class":o,style:t,className:L(e,"BaselineUI-TreeView"),children:C=>jsx(r1,{item:C,onPrimaryAction:i,onSecondaryAction:a,actionsPosition:p,primaryActionIcon:l,secondaryActionIcon:s,primaryActionAriaLabel:u,secondaryActionAriaLabel:c,onRename:d,renderItemTitle:f})})})});mN.displayName="TreeView";var i1=createContext({});function fN(){return useContext(i1)}function Xg(e){return typeof e=="number"?`${e}%`:e}var SQ=forwardRef(({className:e,isCollapsible:t=false,id:r,onResize:o,defaultSize:n,minSize:i,maxSize:a,collapsedSize:l,...s},u)=>{let c=usePanelRef(),p=ee(),d=r??p,{autoSaveId:m}=fN();return useEffect(()=>{m&&!r&&console.warn("Panel: A stable `id` prop is required for size persistence to work correctly when `autoSaveId` is set on the parent `PanelGroup`. Without it, panel sizes will not be saved or restored.");},[m,r]),useImperativeHandle(u,()=>({resize:f=>c.current?.resize(f)})),jsx(Panel,{className:L("BaselineUI-Panel",e),collapsible:t,panelRef:c,id:d,defaultSize:Xg(n),minSize:Xg(i),maxSize:Xg(a),collapsedSize:Xg(l),onResize:o?f=>{o(f.asPercentage);}:void 0,...s})});SQ.displayName="Panel";var _Q=forwardRef(({className:e,autoSaveId:t,direction:r,onLayout:o,...n},i)=>{let a=useGroupRef();useImperativeHandle(i,()=>({setLayout:u=>{let c=a.current;if(!c)return;let p=c.getLayout(),d=Object.keys(p);if(d.length>0){let m={};for(let f of d)f in u&&(m[f]=u[f]);c.setLayout(m);}else c.setLayout(u);}}));let l=useDefaultLayout({id:t??"",storage:t?localStorage:void 0}),s=useMemo(()=>({autoSaveId:t}),[t]);return jsx(i1.Provider,{value:s,children:jsx(Group,{className:L("BaselineUI-PanelGroup",e),groupRef:a,orientation:r,defaultLayout:t?l.defaultLayout:void 0,onLayoutChanged:u=>{t&&l.onLayoutChanged(u),o&&o(u);},...n})})});_Q.displayName="PanelGroup";var bN="_6abhjk0";var LQ=({className:e,isDisabled:t=false,...r})=>jsx(Separator,{disabled:t,className:L(bN,"BaselineUI-PanelResizeHandle",e),...r});LQ.displayName="PanelResizeHandle";var gN=j({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z6lz _1yep5z6m1",variantClassNames:{variant:{info:"_1yep5z6131",warning:"_1yep5z612x",error:"_1yep5z612p",success:"_1yep5z612t"}},defaultVariants:{},compoundVariants:[]}),hN="_1udvgpn5 _1yep5z6ij _1yep5z6ik _1yep5z6il _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n";var NQ=()=>{};function FQ({state:e,...t}){Un.useRef(null);let {toastProps:o,contentProps:n,titleProps:i,descriptionProps:a,closeButtonProps:l}=jT(t,e),s=useMemo(()=>({root:o,title:i,content:n,description:a,close:l}),[o,i,n,a,l]),{canClose:u=true,...c}=t.toast.content;return jsx(qb,{elementProps:s,...c,className:L(gN({variant:c.variant||"info"}),c.className),onClose:u?NQ:void 0})}var vN=Un.forwardRef(({state:e,style:t,className:r,...o},n)=>{let i=ce(n),{regionProps:a}=WT(o,e,i),l={zIndex:1,...t,...a.style};return jsx("div",{...a,ref:i,className:L(hN,r),style:l,children:e.visibleToasts.map(s=>jsx(FQ,{toast:s,state:e},s.key))})});vN.displayName="ToastRegion";var xN=Un.forwardRef(({toastQueue:e,portalContainer:t,...r},o)=>{let n=XT(e),i=pr(t);return n.visibleToasts.length>0?jsx(Mr,{portalContainer:i,ref:o,children:jsx(vN,{state:n,...r})}):null});xN.displayName="GlobalToastRegion";var PN=Un.forwardRef(({className:e,labelPosition:t,"data-block-id":r,"data-block-class":o,pickerType:n="none",...i},a)=>{let{locale:l}=Q(),{formatMessage:s}=fe(),u={...i,validationState:void 0,isInvalid:i.validationState==="error"||void 0},c=zc({...u,locale:l,createCalendar:createCalendar}),p=Un.useRef(null),{labelProps:d,fieldProps:m,validationErrors:f,descriptionProps:y,inputProps:g,errorMessageProps:b,isInvalid:x}=yf(u,c,p),h=i.errorMessage||f.join(" "),v=mr({...i,errorMessage:h,descriptionProps:y,errorMessageProps:b,labelPosition:t}),{focusProps:C,isFocused:T}=oe({within:true}),P=c.value,k=i.isDisabled||i.isReadOnly,[S,w]=Un.useState(false),E=i["aria-label"]??(typeof i.label=="string"?i.label:void 0),R=_=>{let D=c.value;D!=null&&"hour"in D?c.setValue(D.set({year:_.year,month:_.month,day:_.day})):c.setValue(_);};return jsxs(Ha,{className:L("BaselineUI-DateField",e),labelProps:d,fieldProps:m,ref:a,wrapperRef:p,wrapperClassName:Ug,labelPosition:t,message:v,isFocused:T||S,"data-block-id":r,"data-block-class":o,isInvalid:x,...i,children:[jsx(Oe,{children:jsx("input",{...g})}),jsx(Z,{display:"flex",flexDirection:"row",paddingRight:n==="none"?"md":void 0,style:{flex:1},...C,children:c.segments.map((_,D)=>jsx(Wg,{segment:_,state:c},D))}),n==="presentation"?jsx(Z,{color:"text.secondary",display:"flex",alignItems:"center",paddingRight:"md",children:jsx(CalendarIcon,{size:16})}):null,n==="calendar"?jsxs(Io,{type:"dialog",onOpenChange:w,children:[jsx(_o,{children:({triggerProps:_,triggerRef:D})=>jsx(pe,{..._,ref:D,icon:CalendarIcon,variant:"primary",size:"sm",isDisabled:k,"aria-label":s(VQ.openCalendar)})}),jsx(Pt,{placement:"bottom end",offset:2,triggerRef:p,children:jsx(Gb,{value:P,onChange:R,minValue:i.minValue,maxValue:i.maxValue,isDisabled:i.isDisabled,isReadOnly:i.isReadOnly,headerVariant:"selectMonthAndYear","aria-label":E})})]}):null]})});PN.displayName="DateField";var VQ=Te({openCalendar:{defaultMessage:"Open calendar",id:"bui.dateField.openCalendar"}});var HQ=(e,t)=>{e.setAttribute("height",typeof t=="number"?`${t}px`:t),e.setAttribute("width",typeof t=="number"?`${t}px`:t);},$Q=(e,t,r)=>{let o=e.querySelector("title"),n=G(e);if(o)o.textContent=t,o.setAttribute("id",r);else {let i=n.createElement("title");i.textContent=t,i.setAttribute("id",r),e.prepend(i);}},jQ=(e,t)=>{t&&e.classList.add(t);},GQ=(e,t)=>{let r=t.createElement("span");r.innerHTML=R8.default.sanitize(e);let o=r.querySelector("svg");return ge(o,"Icon: svg prop must be a valid svg string"),o},UQ=Un.forwardRef(({size:e,title:t,className:r,style:o,color:n,...i},a)=>{let l=useId(),s=Un.useRef(null),u="svg"in i?i.svg:void 0,c=Un.useMemo(()=>{if(u){let p=G(s.current),d=GQ(u,p);return e&&HQ(d,e),t&&$Q(d,t,l),jQ(d,r),d.outerHTML}},[u,e,t,r,l]);return jsx("span",{className:r,ref:se(a,s),style:{display:"contents",...o,color:n},dangerouslySetInnerHTML:c?{__html:c}:void 0})});UQ.displayName="Icon";var DN=j({defaultClassName:"_1bwul1t8 _1yep5z6lq _1yep5z6ly _1yep5z6eu _1yep5z6g1",variantClassNames:{size:{xs:"_1bwul1t9 _1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6nf _1yep5z6ng _1yep5z6nh _1yep5z6zy",sm:"_1bwul1ta _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z6101",md:"_1bwul1tb _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z6104"}},defaultVariants:{},compoundVariants:[]}),u1=j({defaultClassName:"_1bwul1t3 _1yep5z6ev",variantClassNames:{size:{xs:"_1yep5z6zy",sm:"_1yep5z6101",md:"_1yep5z6104"},isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),kN={xs:"_1bwul1t0",sm:"_1bwul1t1",md:"_1bwul1t2"};var wN=Un.forwardRef(({className:e,style:t,size:r="md",isDisabled:o,decrementAriaLabel:n,incrementAriaLabel:i,"data-block-id":a,"data-block-class":l,label:s,onChange:u,onBlur:c,onKeyDown:p,minValue:d=Number.NEGATIVE_INFINITY,maxValue:m=Number.POSITIVE_INFINITY,defaultValue:f,value:y,description:g=P=>`${P} / ${m}`,onInputChange:b,onChangeSuccess:x,step:h=1,valueToLabelMap:v,...C},T)=>{let P=Un.useRef(null),k=ee(),S=ee(),w=useCallback(q=>v?v.get(q)??q.toString():q.toString(),[v]),E=useCallback(q=>{if(v){let J=[...v.entries()].find(([,me])=>me===q);if(J)return J[0]}return Number.parseInt(q)},[v]),[R,_]=ye(y,f??1,x),[D,F]=useState(w(R)??""),z=R<=d||o,N=R>=m||o,V=useCallback(q=>{if(!q)return;u?.(q);let W=E(q);if(Number.isNaN(W)){F(w(R)??"");return}W>=d&&W<=m&&!o&&!C.isReadOnly?_(W):F(w(R));},[u,E,d,m,o,C.isReadOnly,w,R,_]),M=useCallback(q=>q>=d&&q<=m,[d,m]),O=useCallback(q=>{V(D),c?.(q);},[D,V,c]),B=useCallback(()=>{if(N)return;let q=Math.min(R+h,m);M(q)&&_(q);},[R,N,M,m,_,h]),K=useCallback(()=>{if(z)return;let q=Math.max(R-h,d);M(q)&&_(q);},[R,z,M,d,_,h]),I=useCallback(q=>{if(!(o||C.isReadOnly)){switch(q.key){case "Enter":{V(D);break}case "ArrowUp":{B();break}case "ArrowDown":{K();break}}p?.(q);}},[o,C.isReadOnly,p,V,D,B,K]);useGranularEffect(()=>{F(w(R));},[R],[w]);let{inputProps:H}=Hr({...C,value:D?.toString(),isDisabled:o,onBlur:O,onChange:q=>{F(q),b?.(q);},onKeyDown:I,"aria-labelledby":k,"aria-describedby":S},P),U=typeof g=="function"?g(R):g;return jsxs(Z,{className:L(kN[r],e),display:"flex",flexDirection:"row",alignItems:"center","data-block-id":a,"data-block-class":l,style:t,ref:T,"aria-disabled":o,children:[jsx("span",{id:k,className:u1({size:r,isDisabled:o}),children:s}),jsxs(Z,{display:"flex",flexDirection:"row",borderRadius:"sm",borderColor:"border.subtle",borderStyle:"solid",borderWidth:1,style:{height:"inherit"},children:[jsx(pe,{icon:CaretLeftIcon,elementType:"div",size:r,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-DecrementButton",isExcludedFromRovingFocus:true,isDisabled:o||z||C.isReadOnly,excludeFromTabOrder:true,onPress:K,"aria-label":n,tooltip:true}),jsx(De,{orientation:"vertical"}),jsx("input",{...H,className:DN({size:r}),min:d,max:m}),jsx(De,{orientation:"vertical"}),jsx(pe,{icon:CaretRightIcon,elementType:"div",size:r,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-IncrementButton",isExcludedFromRovingFocus:true,isDisabled:o||N||C.isReadOnly,excludeFromTabOrder:true,onPress:B,"aria-label":i,tooltip:true})]}),U?jsx("span",{id:S,className:u1({size:r,isDisabled:o}),children:U}):null]})});wN.displayName="TaggedPagination";var JQ={node:null,setNode:()=>{},coordinates:null,setCoordinates:()=>{},displayId:void 0,setDisplayId:()=>{},boundsRef:{current:null},isDisabled:false,cursorNode:null,setCursorNode:()=>{},children:null,setChildren:()=>{}},Xt=Un.createContext(JQ),RN=Un.memo(({children:e,isDisabled:t=false})=>{let[r,o]=Un.useState(null),[n,i]=Un.useState(null),[a,l]=Un.useState(null),s=Un.useRef(null),[u,c]=Un.useState(null),[p,d]=Un.useState(),m=Un.useMemo(()=>({node:r,setNode:o,coordinates:u,setCoordinates:c,displayId:p,setDisplayId:d,boundsRef:s,isDisabled:t,cursorNode:n,setCursorNode:i,children:a,setChildren:l}),[r,u,p,c,o,s,t,n,i,a,l]);return jsx(Xt.Provider,{value:m,children:e})});RN.displayName="PointPicker";var IN="m0xg2me";var _N="m0xg2md _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6m1 _1yep5z6m0 _1yep5z6hc",MN="m0xg2mj",LN="_1yep5z6f6",AN="m0xg2mk m0xg2mj",ON=j({defaultClassName:"m0xg2m0",variantClassNames:{isDisabled:{true:"m0xg2m1",false:"m0xg2m2"},isIndicatorVisible:{true:"m0xg2m3",false:"m0xg2m4"}},defaultVariants:{},compoundVariants:[[{isDisabled:false,isIndicatorVisible:true},"m0xg2m5"],[{isDisabled:false,isIndicatorVisible:false},"m0xg2m6"]]}),NN="m0xg2m8",FN="m0xg2mb",c1="m0xg2ma _1yep5z6hd _1yep5z6lz",KN="m0xg2m9 _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z6h4 _1yep5z6lz _1yep5z6id _1yep5z6ie _1yep5z6if",VN="m0xg2m7",BN="m0xg2mc",HN="m0xg2mf";var Yg=L(_N,"BaselineUI-PointPicker-GridLine"),ree=({coordinates:e})=>jsxs(Fragment,{children:[jsx("div",{className:Yg,"data-grid-line-type":"vertical",style:{height:e.y-5,transform:`translate(${e.x}px, 0) translate(-1px, 0) scaleX(0.5)`}}),jsx("div",{className:Yg,"data-grid-line-type":"vertical",style:{height:`calc(100% - ${e.y+4}px)`,transform:`translate(${e.x}px, ${e.y+5}px) translate(-1px, 0) scaleX(0.5)`}})]}),oee=({coordinates:e})=>jsxs(Fragment,{children:[jsx("div",{className:Yg,"data-grid-line-type":"horizontal",style:{width:e.x-5,transform:`translate(0, ${e.y}px) translate(0, -1px) scaleY(0.5)`}}),jsx("div",{className:Yg,"data-grid-line-type":"horizontal",style:{width:`calc(100% - ${e.x+4}px)`,transform:`translate(${e.x+5}px, ${e.y}px) translate(0, -1px) scaleY(0.5)`}})]}),$N=({gridLines:e})=>{let{isDisabled:t,boundsRef:r,coordinates:o}=useContext(Xt),n=useMemo(()=>{let i=typeof e=="function"?e({coordinates:o,boundingRect:r.current}):e;return typeof i=="boolean"?i?o:void 0:i?.coordinates},[e,o,r]);return n&&!t?jsxs(Fragment,{children:[jsx(ree,{coordinates:n}),jsx(oee,{coordinates:n})]}):null};function jN({coordinates:e,setCoordinates:t,boundsRef:r,onKeyDown:o,onKeyUp:n}){let{isDisabled:i}=useContext(Xt);return Le({isDisabled:i,onKeyDown:a=>{o?.(a);let l=a.shiftKey?10:1,s=r.current;if(!s||!e)return;let u;switch(a.key){case "ArrowRight":{a.preventDefault(),u={x:Ut(e.x+l,0,s.width),y:Ut(e.y,0,s.height)};break}case "ArrowLeft":{a.preventDefault(),u={x:Ut(e.x-l,0,s.width),y:Ut(e.y,0,s.height)};break}case "ArrowDown":{a.preventDefault(),u={x:Ut(e.x,0,s.width),y:Ut(e.y+l,0,s.height)};break}case "ArrowUp":{a.preventDefault(),u={x:Ut(e.x,0,s.width),y:Ut(e.y-l,0,s.height)};break}case "Home":{a.preventDefault(),u={x:0,y:Ut(e.y,0,s.height)};break}case "End":{a.preventDefault(),u={x:s.width,y:Ut(e.y,0,s.height)};break}case "PageUp":{a.preventDefault(),u={x:Ut(e.x,0,s.width),y:0};break}case "PageDown":{a.preventDefault(),u={x:Ut(e.x,0,s.width),y:s.height};break}default:{a.continuePropagation();return}}u&&t(u);},onKeyUp:n})}function GN(){let{node:e,coordinates:t}=useContext(Xt);return useMemo(()=>{if(!e||!t)return {x:0,y:0};let{left:r,top:o}=e.getBoundingClientRect();return {x:t.x+r,y:t.y+o}},[t,e])}var{color:WN}=themeVars,YN=Un.forwardRef(({modality:e},t)=>e==="keyboard"?jsxs("svg",{width:92,height:92,viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,className:MN,children:[jsxs("g",{filter:"url(#filter0_d_11407_457970)",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49 43V4h-6v39H4v6h39v39h6V49h39v-6H49zm38 5H48v39h-4V48H5v-4h39V5h4v39h39v4zm-5 28v6h-6v6h12V76h-6zm5 11H77v-4h6v-6h4v10zm-77-5v-6H4v12h12v-6h-6zm5 5H5V77h4v6h6v4zM76 4v6h6v6h6V4H76zm11 11h-4V9h-6V5h10v10zM4 4v12h6v-6h6V4H4zm11 5H9v6H5V5h10v4z",fill:WN.background.positive.subtle}),jsx("path",{d:"M48 44v4h39v-4H48zm-4 4v39h4V48h-4zM5 44v4h39v-4H5zM44 5v39h4V5h-4zm39 72v6h-6v4h10V77h-4zM9 83v-6H5v10h10v-4H9zM77 5v4h6v6h4V5H77zM5 5v10h4V9h6V5H5z",fill:WN.background.positive.interactive.enabled})]}),jsx("defs",{children:jsxs("filter",{id:"filter0_d_11407_457970",x:0,y:0,width:92,height:92,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),jsx("feOffset",{}),jsx("feGaussianBlur",{stdDeviation:2}),jsx("feComposite",{in2:"hardAlpha",operator:"out"}),jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"}),jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_11407_457970"}),jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_11407_457970",result:"shape"})]})})]}):jsx(PlusIcon$1,{className:AN,ref:t}));YN.displayName="PointPickerIndicatorIcon";var dee=({trailingElement:e})=>{let{cursorNode:t}=useContext(Xt),[r,o]=useState({width:0,height:0});return useEffect(()=>{if(!t)return;let n=t.getBoundingClientRect();o(n);let i=new ResizeObserver(a=>{o({width:a[0].contentRect.width,height:a[0].contentRect.height});});return i.observe(t),()=>{i.disconnect();}},[t]),e?jsx(Z,{position:"absolute",style:{left:0,top:0,zIndex:0,transform:`translate(${r.width/2}px, ${r.height/2}px)`},className:"BaselineUI-PointPickerContent-TrailingElement",children:e}):null},m1=Un.forwardRef(({renderTrailingElement:e,renderCursor:t},r)=>{let{coordinates:o,isDisabled:n,node:i}=useContext(Xt),a=Xy({ownerDocument:G(i)}),l=!!(o&&!n),s=useMemo(()=>e?.(),[e]),u=GN(),c=useMemo(()=>{if(!o)return null;let p=t?.({coordinates:o,modality:a});return p===void 0?jsx(YN,{modality:a}):p},[t,o,a]);return l?jsxs(Mr,{style:{left:u.x,top:u.y},className:L(VN,"BaselineUI-PointPickerContent-Cursor"),ref:r,children:[c,s?jsx(dee,{trailingElement:s}):null]}):null});m1.displayName="PointPickerIndicator";var eF=Un.forwardRef(({children:e,className:t,style:r,"data-block-id":o,"data-block-class":n,onFocusChange:i,onBlur:a,onFocus:l,onKeyDown:s,onKeyUp:u,gridLines:c=true,elementHandle:p,onMove:d,onPress:m,onPressStart:f,onPressEnd:y,renderTrailingElement:g,renderCursor:b},x)=>{let{setNode:h,node:v,coordinates:C,setCoordinates:T,displayId:P,boundsRef:k,isDisabled:S,setCursorNode:w,setChildren:E}=useContext(Xt),R=useRef(null),_=useRef(null),D=Xy({ownerDocument:G(v)}),F=useCallback(q=>{T(q??null),d?.({coordinates:q,boundingRect:k.current});},[T,d,k]);useEffect(()=>{if(!S)return E(e),()=>{E(null);}},[e,S,E]),useEffect(()=>{let q=R.current;if(!q||S)return;let W=()=>{let ne=q.getBoundingClientRect();k.current=ne;},J=ne=>{let de=k.current;if(!de)return;let ke="clientX"in ne?ne.clientX:ne.touches[0].clientX,Ge="clientY"in ne?ne.clientY:ne.touches[0].clientY,ut={x:Ut(ke-de.left,0,de.width),y:Ut(Ge-de.top,0,de.height)};F(ut);},me=()=>{F(null);};return q.addEventListener("mousemove",J),q.addEventListener("touchmove",J),q.addEventListener("mouseenter",W),q.addEventListener("mouseleave",me),()=>{q.removeEventListener("mousemove",J),q.removeEventListener("touchmove",J),q.removeEventListener("mouseenter",W),q.removeEventListener("mouseleave",me);}},[k,S,F]);let{pressProps:z}=Ae({isDisabled:S,onPress:q=>{q.pointerType==="keyboard"?C&&m?.({...q,x:C.x,y:C.y}):m?.(q);},onPressStart:f,onPressEnd:y}),{focusProps:N,isFocusVisible:V,isFocused:M}=oe();Yy({ref:_,isDisabled:S}),useImperativeHandle(p,()=>({focus:()=>{S||R.current?.focus();}}));let{focusProps:O}=Zt({isDisabled:S,onFocusChange:i,onFocus:l,onBlur:a});function B(){D==="keyboard"&&setTimeout(()=>{let q=R.current?.getBoundingClientRect();q&&(k.current=q,F({x:Ut(q.width/2,0,q.width),y:Ut(q.height/2,0,q.height)}));},0);}function K(){F(null);}let{keyboardProps:I}=jN({coordinates:C,setCoordinates:F,boundsRef:k,onKeyDown:s,onKeyUp:u});ko({isDisabled:S,ref:R,onInteractOutside:()=>{F(null);}});let H=!!(C&&!S),U=he({"data-focus-visible":V,"data-focused":M,"data-disabled":S,"data-block-id":o,"data-block-class":n,"data-active":C&&!S,"data-modality":D});return jsxs(Fragment,{children:[jsx(m1,{renderTrailingElement:g,renderCursor:b,ref:w}),jsxs("div",{...A(N,O,{onFocus:B,onBlur:K},S?{}:A(I,z)),ref:se(x,R,h),className:L(ON({isDisabled:!!S,isIndicatorVisible:!!H}),"BaselineUI-PointPicker-Content",t),tabIndex:S?void 0:0,style:r,"aria-controls":P,"data-testid":"point-picker-content",...U,children:[jsx($N,{gridLines:c}),jsx("div",{className:IN,ref:_,children:e})]})]})});eF.displayName="PointPickerContent";function tF(e,t,r){let[o,n]=useState(0),i=a=>{n(a),r();};return useGranularEffect(()=>{if(!e||t==="trailing")return;let a=new ResizeObserver(l=>{i(l[0].contentRect.width);});return i(e.getBoundingClientRect().width),a.observe(e),()=>{a.disconnect();}},[e,t],[r]),o}function Pee(e,t){return t==="indicator"?e:e?.querySelector(".BaselineUI-PointPickerContent-TrailingElement")??null}var y1=Un.forwardRef(({children:e,className:t,crossOffset:r,offset:o,placement:n="bottom start",anchorElement:i="indicator"},a)=>{let l=useRef(null),{cursorNode:s,coordinates:u}=useContext(Xt),c=tF(s,i,()=>{m();}),p=Pee(s,i),{overlayProps:d,updatePosition:m}=xa({overlayRef:l,placement:n,targetRef:{get current(){return p}},crossOffset:r??c,offset:o});return useGranularEffect(()=>{m();},[u,r,o],[m]),u?jsx(Mr,{className:L(HN,t),ref:a,children:jsx("div",{ref:l,...d,children:e})}):null});y1.displayName="Floater";var lF=8,kee=7,Eee=7,b1=Un.memo(({children:e,scale:t,renderMagnifierContent:r})=>{let o=useRef(null),{coordinates:n,boundsRef:i,node:a}=useContext(Xt),l=useRef([]);Yy({ref:o}),useEffect(()=>{if(!o.current||r)return;let c=o.current.querySelectorAll("canvas"),p=[],d=o.current.ownerDocument;for(let m of c){let f=m.getContext("2d");if(!f)continue;let y=m.clientWidth,g=m.clientHeight,b=m.width,x=m.height,h=f.getImageData(0,0,b,x);p.push({el:m,width:b,height:x,image:h});let v=d.createElement("canvas");v.width=b,v.height=x;let C=v.getContext("2d");C&&C.drawImage(m,0,0),m.width=y*t,m.height=g*t,m.style.width=`${y}px`,m.style.height=`${g}px`,f.scale(t,t),f.drawImage(v,0,0,y,g);}return l.current=p,()=>{for(let{el:m,width:f,height:y,image:g}of l.current)m.width=f,m.height=y,m.getContext("2d")?.putImageData(g,0,0);}},[a,t,r]);let s=useMemo(()=>r?r({coordinates:n,boundingRect:i.current,children:e}):e?Un.cloneElement(e,{key:"magnifier-content"}):null,[r,n,i,e]),u=useMemo(()=>!i.current||!n?null:{x:n.x/i.current.width,y:n.y/i.current.height},[i,n]);return u?jsx("div",{style:{left:0,transform:`scale(${t}) translate(calc(-${u.x*100}% + ${lF*kee/(2*t)}px), calc(-${u.y*100}% + ${lF*Eee/(2*t)}px))`},className:L(BN,"BaselineUI-PointPickerDisplay-Magnifier"),children:jsx("div",{style:wee(a),ref:o,inert:"true",children:s})}):null});b1.displayName="Magnifier";function zee(e){let t=[];for(let r=0;r<e.length;r++){let o=e[r],n=e.getPropertyValue(o);n&&t.push([o,n]);}for(let r of e)if(r.startsWith("--")){let o=e.getPropertyValue(r);o&&t.push([r,o]);}return Object.fromEntries(t)}function wee(e){if(!e)return {};let r=X(e).getComputedStyle(e),o=e.getBoundingClientRect(),n={...zee(r),position:"static",margin:"0px",left:"0px",top:"0px",transform:"none","-webkit-text-fill-color":"inherit","-webkit-text-stroke-color":"inherit",width:`${o.width}px`,height:`${o.height}px`,interactivity:"inert"};return Object.fromEntries(Object.entries(n).map(([i,a])=>i.startsWith("--")?[i,a]:i.startsWith("-")?[RR(oF(i)),a]:[oF(i),a]))}var Mee=7,Lee=7,Aee={scale:2},Oee={crossOffset:void 0,offset:void 0,placement:"bottom start",anchorElement:"indicator"},uF=Un.forwardRef(({className:e,style:t,description:r,magnifier:o=true,"data-block-id":n,"data-block-class":i,floating:a=false,renderMagnifierContent:l},s)=>{let{coordinates:u,boundsRef:c,setDisplayId:p,isDisabled:d,children:m,cursorNode:f}=useContext(Xt),y=ee(),g=useMemo(()=>vC(o,Aee),[o]),b=useMemo(()=>typeof r=="function"?r({coordinates:u?{x:u.x,y:u.y}:null,boundingRect:c.current}):r,[r,u,c]),x=!d&&!!g&&u,h=useMemo(()=>vC(a,Oee),[a]);useEffect(()=>((!h||h&&f)&&p(y),()=>{p(void 0);}),[f,y,p,h]);let v=jsxs(Z,{ref:h?void 0:s,className:L(NN,"BaselineUI-PointPicker-Display",e),backgroundColor:"background.primary.subtle",boxShadow:"medium",borderRadius:"sm",outlineWidth:1,outlineColor:"border.medium",outlineOffset:-1,outlineStyle:"solid",paddingY:"md",paddingLeft:"md",paddingRight:b?.length?"xl":"md",display:"flex",flexDirection:"row",gap:"lg",alignItems:"center",style:t,id:y,"data-block-id":n,"data-block-class":i,"data-variant":h?"floating":"auto","data-testid":"point-picker-display",children:[g?jsxs("div",{className:KN,children:[x?jsx(b1,{scale:g.scale,renderMagnifierContent:l,children:m}):null,Array.from({length:Mee*Lee}).map((C,T)=>T===24?jsx("div",{className:L(c1,FN)},T):jsx("div",{className:c1},T))]}):null,b?.length?jsx(Z,{display:"flex",gap:"lg",flexDirection:"column",children:b?.map(({label:C,icon:T},P)=>jsxs(Z,{display:"flex",gap:"md",flexDirection:"row",color:"text.secondary",alignItems:"center",children:[jsx(T,{size:12,className:LN}),jsx(Ye,{type:"label",size:"sm",children:C})]},C+P))}):null]});return h?jsx(y1,{ref:s,...h,className:"BaselineUI-PointPicker-Floater",children:v}):v});uF.displayName="PointPickerDisplay";function v1(e){let t=new Blob([e],{type:"text/javascript"}),r=URL.createObjectURL(t),o=new Worker(r);return URL.revokeObjectURL(r),o}function x1(){return v1('var Y=Object.defineProperty;var Z=(n,t,e)=>t in n?Y(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var M=(n,t,e)=>Z(n,typeof t!="symbol"?t+"":t,e);var F=Symbol("Comlink.proxy"),J=Symbol("Comlink.endpoint"),Q=Symbol("Comlink.releaseProxy"),z=Symbol("Comlink.finalizer"),T=Symbol("Comlink.thrown"),B=n=>typeof n=="object"&&n!==null||typeof n=="function",q={canHandle:n=>B(n)&&n[F],serialize(n){let{port1:t,port2:e}=new MessageChannel;return U(n,t),[e,[e]]},deserialize(n){return n.start(),et(n)}},X={canHandle:n=>B(n)&&T in n,serialize({value:n}){let t;return n instanceof Error?t={isError:!0,value:{message:n.message,name:n.name,stack:n.stack}}:t={isError:!1,value:n},[t,[]]},deserialize(n){throw n.isError?Object.assign(new Error(n.value.message),n.value):n.value}},H=new Map([["proxy",q],["throw",X]]);function tt(n,t){for(let e of n)if(t===e||e==="*"||e instanceof RegExp&&e.test(t))return!0;return!1}function U(n,t=globalThis,e=["*"]){t.addEventListener("message",function r(s){if(!s||!s.data)return;if(!tt(e,s.origin)){console.warn(`Invalid origin \'${s.origin}\' for comlink proxy`);return}let{id:o,type:c,path:u}=Object.assign({path:[]},s.data),i=(s.data.argumentList||[]).map(m),a;try{let l=u.slice(0,-1).reduce((f,y)=>f[y],n),h=u.reduce((f,y)=>f[y],n);switch(c){case"GET":a=h;break;case"SET":l[u.slice(-1)[0]]=m(s.data.value),a=!0;break;case"APPLY":a=h.apply(l,i);break;case"CONSTRUCT":{let f=new h(...i);a=at(f)}break;case"ENDPOINT":{let{port1:f,port2:y}=new MessageChannel;U(n,y),a=ot(f,[f])}break;case"RELEASE":a=void 0;break;default:return}}catch(l){a={value:l,[T]:0}}Promise.resolve(a).catch(l=>({value:l,[T]:0})).then(l=>{let[h,f]=_(l);t.postMessage(Object.assign(Object.assign({},h),{id:o}),f),c==="RELEASE"&&(t.removeEventListener("message",r),V(t),z in n&&typeof n[z]=="function"&&n[z]())}).catch(l=>{let[h,f]=_({value:new TypeError("Unserializable return value"),[T]:0});t.postMessage(Object.assign(Object.assign({},h),{id:o}),f)})}),t.start&&t.start()}function nt(n){return n.constructor.name==="MessagePort"}function V(n){nt(n)&&n.close()}function et(n,t){let e=new Map;return n.addEventListener("message",function(s){let{data:o}=s;if(!o||!o.id)return;let c=e.get(o.id);if(c)try{c(o)}finally{e.delete(o.id)}}),I(n,e,[],t)}function S(n){if(n)throw new Error("Proxy has been released and is not useable")}function $(n){return A(n,new Map,{type:"RELEASE"}).then(()=>{V(n)})}var P=new WeakMap,R="FinalizationRegistry"in globalThis&&new FinalizationRegistry(n=>{let t=(P.get(n)||0)-1;P.set(n,t),t===0&&$(n)});function rt(n,t){let e=(P.get(t)||0)+1;P.set(t,e),R&&R.register(n,t,n)}function st(n){R&&R.unregister(n)}function I(n,t,e=[],r=function(){}){let s=!1,o=new Proxy(r,{get(c,u){if(S(s),u===Q)return()=>{st(o),$(n),t.clear(),s=!0};if(u==="then"){if(e.length===0)return{then:()=>o};let i=A(n,t,{type:"GET",path:e.map(a=>a.toString())}).then(m);return i.then.bind(i)}return I(n,t,[...e,u])},set(c,u,i){S(s);let[a,l]=_(i);return A(n,t,{type:"SET",path:[...e,u].map(h=>h.toString()),value:a},l).then(m)},apply(c,u,i){S(s);let a=e[e.length-1];if(a===J)return A(n,t,{type:"ENDPOINT"}).then(m);if(a==="bind")return I(n,t,e.slice(0,-1));let[l,h]=D(i);return A(n,t,{type:"APPLY",path:e.map(f=>f.toString()),argumentList:l},h).then(m)},construct(c,u){S(s);let[i,a]=D(u);return A(n,t,{type:"CONSTRUCT",path:e.map(l=>l.toString()),argumentList:i},a).then(m)}});return rt(o,n),o}function it(n){return Array.prototype.concat.apply([],n)}function D(n){let t=n.map(_);return[t.map(e=>e[0]),it(t.map(e=>e[1]))]}var W=new WeakMap;function ot(n,t){return W.set(n,t),n}function at(n){return Object.assign(n,{[F]:!0})}function _(n){for(let[t,e]of H)if(e.canHandle(n)){let[r,s]=e.serialize(n);return[{type:"HANDLER",name:t,value:r},s]}return[{type:"RAW",value:n},W.get(n)||[]]}function m(n){switch(n.type){case"HANDLER":return H.get(n.name).deserialize(n.value);case"RAW":return n.value}}function A(n,t,e,r){return new Promise(s=>{let o=ct();t.set(o,s),n.start&&n.start(),n.postMessage(Object.assign({id:o},e),r)})}function ct(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var G=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],L=1,x=8,d=new Uint32Array(96),C=class n{static from(t){if(!t||t.byteLength===void 0||t.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[e,r]=new Uint8Array(t,0,2);if(e!==219)throw new Error("Data does not appear to be in a KDBush format.");let s=r>>4;if(s!==L)throw new Error(`Got v${s} data when expected v${L}.`);let o=G[r&15];if(!o)throw new Error("Unrecognized array type.");let[c]=new Uint16Array(t,2,1),[u]=new Uint32Array(t,4,1);return new n(u,c,o,void 0,t)}constructor(t,e=64,r=Float64Array,s=ArrayBuffer,o){if(isNaN(t)||t<0)throw new Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let c=G.indexOf(this.ArrayType),u=t*2*this.ArrayType.BYTES_PER_ELEMENT,i=t*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-i%8)%8;if(c<0)throw new Error(`Unexpected typed array class: ${r}.`);if(o)this.data=o,this.ids=new this.IndexArrayType(o,x,t),this.coords=new r(o,x+i+a,t*2),this._pos=t*2,this._finished=!0;else{let l=this.data=new s(x+u+i+a);this.ids=new this.IndexArrayType(l,x,t),this.coords=new r(l,x+i+a,t*2),this._pos=0,this._finished=!1,new Uint8Array(l,0,2).set([219,(L<<4)+c]),new Uint16Array(l,2,1)[0]=e,new Uint32Array(l,4,1)[0]=t}}add(t,e){let r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){let t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return N(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:o,coords:c,nodeSize:u}=this;d[0]=0,d[1]=o.length-1,d[2]=0;let i=3,a=[];for(;i>0;){let l=d[--i],h=d[--i],f=d[--i];if(h-f<=u){for(let g=f;g<=h;g++){let E=c[2*g],k=c[2*g+1];E>=t&&E<=r&&k>=e&&k<=s&&a.push(o[g])}continue}let y=f+h>>1,w=c[2*y],p=c[2*y+1];w>=t&&w<=r&&p>=e&&p<=s&&a.push(o[y]),(l===0?t<=w:e<=p)&&(d[i++]=f,d[i++]=y-1,d[i++]=1-l),(l===0?r>=w:s>=p)&&(d[i++]=y+1,d[i++]=h,d[i++]=1-l)}return a}within(t,e,r){let s=[];return this.withinInto(t,e,r,s),s}withinInto(t,e,r,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:o,coords:c,nodeSize:u}=this;d[0]=0,d[1]=o.length-1,d[2]=0;let i=3,a=0,l=r*r;for(;i>0;){let h=d[--i],f=d[--i],y=d[--i];if(f-y<=u){for(let E=y;E<=f;E++)j(c[2*E],c[2*E+1],t,e)<=l&&(s[a++]=o[E]);continue}let w=y+f>>1,p=c[2*w],g=c[2*w+1];j(p,g,t,e)<=l&&(s[a++]=o[w]),(h===0?t-r<=p:e-r<=g)&&(d[i++]=y,d[i++]=w-1,d[i++]=1-h),(h===0?t+r>=p:e+r>=g)&&(d[i++]=w+1,d[i++]=f,d[i++]=1-h)}return a}};function N(n,t,e,r,s,o){if(s-r<=e)return;let c=r+s>>1;K(n,t,c,r,s,o),N(n,t,e,r,c-1,1-o),N(n,t,e,c+1,s,1-o)}function K(n,t,e,r,s,o){for(;s>r;){if(s-r>600){let a=s-r+1,l=e-r+1,h=Math.log(a),f=.5*Math.exp(2*h/3),y=.5*Math.sqrt(h*f*(a-f)/a)*(l-a/2<0?-1:1),w=Math.max(r,Math.floor(e-l*f/a+y)),p=Math.min(s,Math.floor(e+(a-l)*f/a+y));K(n,t,e,w,p,o)}let c=t[2*e+o],u=r,i=s;for(b(n,t,r,e),t[2*s+o]>c&&b(n,t,r,s);u<i;){for(b(n,t,u,i),u++,i--;t[2*u+o]<c;)u++;for(;t[2*i+o]>c;)i--}t[2*r+o]===c?b(n,t,r,i):(i++,b(n,t,i,s)),i<=e&&(r=i+1),e<=i&&(s=i-1)}}function b(n,t,e,r){O(n,e,r),O(t,2*e,2*r),O(t,2*e+1,2*r+1)}function O(n,t,e){let r=n[t];n[t]=n[e],n[e]=r}function j(n,t,e,r){let s=n-e,o=t-r;return s*s+o*o}var v=class{constructor(){M(this,"index",null);M(this,"xCoords",null);M(this,"yCoords",null)}buildIndex(t){this.clear(),this.xCoords=new Float64Array(t.length),this.yCoords=new Float64Array(t.length);for(let[r,s]of t.entries())this.xCoords[r]=s.x,this.yCoords[r]=s.y;let e=new C(t.length);for(let r=0;r<t.length;r++)e.add(this.xCoords[r],this.yCoords[r]);return e.finish(),this.index=e,e.data}clear(){this.index=null,this.xCoords=null,this.yCoords=null}findNearestPoint(t,e,r){if(!this.index||!this.xCoords||!this.yCoords)return null;let s=this.index.within(t,e,r);if(s.length===0)return null;let o=s[0],c=1/0;for(let u of s){let i=t-this.xCoords[u],a=e-this.yCoords[u],l=i*i+a*a;l<c&&(c=l,o=u)}return{x:this.xCoords[o],y:this.yCoords[o]}}findPointsInRadius(t,e,r){if(!this.index||!this.xCoords||!this.yCoords)return[];let s=this.index.within(t,e,r),o=Array.from({length:s.length});for(let[c,u]of s.entries())o[c]={x:this.xCoords[u],y:this.yCoords[u]};return o}};U(new v);\n/*! Bundled license information:\n\ncomlink/dist/esm/comlink.mjs:\n (**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *)\n*/\n')}function Fee({snapPoints:e,snapRadius:t=50}){let r=useRef(null),o=useRef(null),n=useMemo(()=>{let s=new x1;return o.current=s,pF.wrap(s)},[]);useEffect(()=>()=>{o.current&&(o.current.terminate(),o.current=null);},[]);let i=useCallback(async()=>{e&&(r.current=await n.buildIndex(e));},[e,n]);useEffect(()=>{e&&e.length>0&&i();},[e,i]);let a=useCallback(async s=>e?(r.current||await i(),n.findNearestPoint(s.x,s.y,t)):null,[e,t,i,n]),l=useCallback(async s=>e?(r.current||await i(),n.findPointsInRadius(s.x,s.y,t)):[],[e,t,i,n]);return {findNearestPoint:a,findPointsInRadius:l}}var mF="_1ltpw2m2 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6ev _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1ltpw2m0",fF="_1ltpw2m1 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6m1 _1yep5z6lz _1yep5z6h3 _1yep5z6g1 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6";var bF=Un.forwardRef(({className:e,style:t,children:r},o)=>jsx("pre",{className:L(fF,"BaselineUI-Code",e),style:t,ref:o,children:jsx("code",{className:mF,children:r})}));bF.displayName="Code";var gF="_1w6k5xli";var hF=j({defaultClassName:"_1w6k5xl1 _1yep5z6m1 _1yep5z6lz _1yep5z6g1 _1yep5z6h3",variantClassNames:{variant:{active:"_1w6k5xl2",warning:"_1w6k5xl3",error:"_1w6k5xl4",denied:"_1w6k5xl5",success:"_1w6k5xl6","active-tinted":"_1yep5z6184 _1yep5z611y _1yep5z6131","warning-tinted":"_1yep5z6184 _1yep5z611u _1yep5z612x","error-tinted":"_1yep5z6184 _1yep5z611m _1yep5z612p","denied-tinted":"_1yep5z6184 _1yep5z6127 _1yep5z6137","success-tinted":"_1yep5z6184 _1yep5z611q _1yep5z612t"}},defaultVariants:{},compoundVariants:[]}),vF=j({defaultClassName:"_1w6k5xlc",variantClassNames:{variant:{active:"_1yep5z610u",warning:"_1yep5z610q",error:"_1yep5z610i",denied:"_1yep5z610x",success:"_1yep5z610m"}},defaultVariants:{},compoundVariants:[]}),C1="_1w6k5xlk",xF="_1w6k5xlj";var {support:P1,icon:TF}=themeVars.color,Wee={warning:jsx(WarningIcon,{size:16,color:P1.warning.strong}),error:jsx(ErrorCircleIcon,{size:16,color:P1.error.strong}),active:jsx(Z,{padding:"xs",display:"flex",alignItems:"center",children:jsx(CircleFilledIcon,{size:16,color:TF.interactive.enabled,className:gF})}),success:jsx(CheckmarkIcon$2,{size:16,color:P1.success.strong}),denied:jsx(XIcon$2,{size:16,color:TF.primary})},Jg=Un.forwardRef(({className:e,style:t,variant:r="active",icon:o,title:n,description:i,renderTrailingElement:a,shouldTruncateTitle:l},s)=>{let u=vF({variant:r.split("-")[0]});return jsxs(Z,{padding:"lg",display:"flex",flexDirection:"row",gap:"md",width:"full",alignItems:"center",borderRadius:"sm",className:L(hF({variant:r}),"BaselineUI-StatusCard",e),style:t,ref:s,children:[jsxs(Z,{display:"flex",alignItems:"center",flexDirection:"row",gap:"md",flex:1,className:l?C1:void 0,children:[jsx(Z,{display:"flex",padding:"xs",alignItems:"center",flexShrink:0,className:"BaselineUI-StatusCard-Icon",children:o?jsx(o,{className:u,size:16}):Wee[r.split("-")[0]]}),jsxs(Z,{display:"flex",flexDirection:"column",gap:"sm",className:l?C1:void 0,children:[jsx(Z,{typography:"label.md.medium",elementType:"h4",color:"text.primary",className:L("BaselineUI-StatusCard-Title",l&&xF),children:l?jsx("span",{title:n,children:n}):n}),i?jsx(Z,{typography:"label.sm.regular",elementType:"span",className:L(u,"BaselineUI-StatusCard-Description"),children:i}):null]})]}),a?.()]})});Jg.displayName="StatusCard";var CF=j({defaultClassName:"wf9zfn0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6m1 _1yep5z6lz",variantClassNames:{variant:{active:"_1yep5z6136 _1yep5z6124",warning:"_1yep5z6136 _1yep5z6124",error:"_1yep5z6136 _1yep5z6124",success:"_1yep5z6136 _1yep5z6124",denied:"_1yep5z6136 _1yep5z6124","warning-tinted":"_1yep5z612x _1yep5z611u","error-tinted":"_1yep5z612p _1yep5z611m","active-tinted":"_1yep5z6131 _1yep5z611y","success-tinted":"_1yep5z612t _1yep5z611q","denied-tinted":"_1yep5z6137 _1yep5z6127"}},defaultVariants:{},compoundVariants:[]}),PF=j({defaultClassName:"wf9zfnb _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6ly _1yep5z6ln _1yep5z6la _1yep5z6lr _1yep5z6ls _1yep5z6lp",variantClassNames:{isFocusVisible:{true:"_1yep5z617w _1yep5z6140 _1yep5z617y"},isHovered:{true:"wf9zfnd"},variant:{active:"wf9zfne",warning:"wf9zfnf",error:"wf9zfng",success:"wf9zfnh",denied:"wf9zfni","warning-tinted":"wf9zfnj","error-tinted":"wf9zfnk","active-tinted":"wf9zfnl","success-tinted":"wf9zfnm","denied-tinted":"wf9zfnn"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isFocusVisible:false},"_1yep5z61ty _1yep5z61tx"],[{variant:"active",isHovered:true,isFocusVisible:false},"_1yep5z61q6"],[{variant:"warning",isHovered:true,isFocusVisible:false},"_1yep5z61q6"],[{variant:"error",isHovered:true,isFocusVisible:false},"_1yep5z61q6"],[{variant:"success",isHovered:true,isFocusVisible:false},"_1yep5z61q6"],[{variant:"denied",isHovered:true,isFocusVisible:false},"_1yep5z61q6"],[{variant:"active-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61q1"],[{variant:"warning-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61px"],[{variant:"error-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61pp"],[{variant:"success-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61pt"],[{variant:"denied-tinted",isHovered:true,isFocusVisible:false},"_1yep5z61q6"]]}),SF="wf9zfno",DF={active:"wf9zfnp",warning:"wf9zfnq",error:"wf9zfnr",success:"wf9zfns",denied:"wf9zfnt","active-tinted":"wf9zfnu","warning-tinted":"wf9zfnv","error-tinted":"wf9zfnw","success-tinted":"wf9zfnx","denied-tinted":"wf9zfny"},kF=j({defaultClassName:"wf9zfnz _1yep5z6f5",variantClassNames:{isPopupOpen:{true:"wf9zfn10",false:"wf9zfn11"}},defaultVariants:{},compoundVariants:[]});var Qee={warning:WarningIcon,error:ErrorCircleIcon,info:CircleFilledIcon,success:CheckmarkIcon$2},RF=Un.forwardRef(({className:e,style:t,children:r,title:o,description:n,variant:i="active",icon:a=Qee[i],headerClassName:l,headerStyle:s,panelClassName:u,panelStyle:c,shouldTruncateTitle:p,...d},m)=>{let f=Mx(d),y=useRef(null),g=useRef(null),{buttonProps:b,panelProps:x}=Ix(d,f,g);return jsxs("div",{className:L(CF({variant:i}),"BaselineUI-Disclosure",e),style:t,ref:m,"data-expanded":f.isExpanded,children:[jsx(IF,{ref:y,...b,variant:i,title:o,description:n,icon:a,className:l,style:s,isExpanded:f.isExpanded,shouldTruncateTitle:p}),jsxs("div",{ref:g,...x,className:L(SF,"BaselineUI-Disclosure-Panel",u),style:c,"data-expanded":f.isExpanded,children:[jsx(De,{className:DF[i]}),r]})]})});RF.displayName="Disclosure";var IF=Un.forwardRef(({className:e,style:t,variant:r="active",icon:o,title:n,description:i,shouldTruncateTitle:a,...l},s)=>{let{isFocusVisible:u,focusProps:c}=oe(),{hoverProps:p,isHovered:d}=ie({}),m=ce(s),{buttonProps:f,isPressed:y}=dt(l,m),g=he({"data-focus-visible":u,"data-hovered":d,"data-pressed":y});return jsx("button",{...A(f,c,p),ref:m,className:L(PF({isFocusVisible:u,isHovered:d,variant:r}),"BaselineUI-Disclosure-Header",e),style:t,...g,children:jsx(Jg,{title:n,description:i,variant:r,icon:o,shouldTruncateTitle:a,renderTrailingElement:()=>jsx(Z,{padding:"sm",display:"inline-flex",children:jsx(CaretUpIcon,{size:12,className:kF({isPopupOpen:l.isExpanded})})}),style:{border:"none"}})})});IF.displayName="DisclosureHeader";var _F="_1h7pyh00",MF="_1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u0";var LF=Un.forwardRef(({className:e,style:t,children:r,childClassName:o,childStyle:n,elementType:i="button",...a},l)=>{let s=Un.Children.only(r);if(!Un.isValidElement(s))throw new Error("Actionable: children must be a single React element");let u=ce(l),{buttonProps:c,isPressed:p}=dt({...a,elementType:i},u),{isFocusVisible:d,isFocused:m,focusProps:f}=oe(),{hoverProps:y,isHovered:g}=ie({isDisabled:a.isDisabled}),b=he({"data-focused":m,"data-focus-visible":d,"data-disabled":a.isDisabled,"data-hovered":g,"data-pressed":p}),x={isHovered:g,isFocused:m,isPressed:p,isDisabled:a.isDisabled,isFocusVisible:d},h=Un.cloneElement(s,{className:L(s.props.className,{[MF]:d},typeof o=="function"?o(x):o,"BaselineUI-Actionable-Child"),style:{...s.props.style,...typeof n=="function"?n(x):n}});return jsx(i==="button"?"button":i,{...A(c,y,f),...b,className:L(_F,"BaselineUI-Actionable",typeof e=="function"?e(x):e),ref:u,style:typeof t=="function"?t(x):t,children:h})});LF.displayName="Actionable";var AF="_1vghdeb0";var tte=new Set(["\u2318","\u2325","\u21E7","\u21A9","\u2423","\u2303"]),rte="+";function ote(e,t){if(t){let r=[],o="";for(let n of e)tte.has(n)?(o&&r.push(o),r.push(n),o=""):o+=n;return o&&r.push(o),r.length===1&&r[0].includes("+")?r[0].split("+").map(n=>n.trim()).filter(Boolean):r}return e.split("+").map(r=>r.trim()).filter(Boolean)}var k1=Un.forwardRef(({children:e,className:t,style:r},o)=>jsx(Z,{elementType:"kbd",ref:o,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"xs",borderWidth:1,borderStyle:"solid",borderColor:"border.medium",backgroundColor:"background.primary.strong",color:"text.primary",typography:"label.md.medium",paddingX:"md",paddingY:"sm",className:L(AF,"BaselineUI-Kbd-Key",t),style:r,children:e}));k1.displayName="KbdKey";var OF=Un.forwardRef(({children:e,shouldUseSymbol:t=false,className:r,style:o},n)=>{let i=by(e,t),a=ote(i,t);return a.length===1?jsx(k1,{ref:n,className:L("BaselineUI-Kbd",r),style:o,children:a[0]}):jsx(Z,{elementType:"span",display:"inline-flex",alignItems:"center",gap:"md",ref:n,className:L("BaselineUI-Kbd",r),style:o,children:a.map((l,s)=>jsxs(Un.Fragment,{children:[jsx(k1,{children:l}),s<a.length-1?jsx(Ye,{type:"label",size:"sm",children:rte}):null]},l))})});OF.displayName="Kbd";var NF=j({defaultClassName:"_1enn18vd _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x"}},defaultVariants:{},compoundVariants:[]}),FF=j({defaultClassName:"_1enn18v2 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6dw _1yep5z6ex _1yep5z6g1 _1yep5z6lq",variantClassNames:{allowsSorting:{true:"_1enn18v3"},isFocusVisible:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x"}},defaultVariants:{},compoundVariants:[]}),KF=j({defaultClassName:"_1enn18vi _1yep5z6ls _1yep5z6lr _1yep5z6ic _1yep5z6la",variantClassNames:{isDropTarget:{true:"_1yep5z6140"}},defaultVariants:{},compoundVariants:[]}),VF=j({defaultClassName:"_1enn18v8 _1yep5z6lq _1yep5z6ld _1yep5z6la",variantClassNames:{isHovered:{true:"_1yep5z6125"},isSelected:{true:"_1yep5z6126"},isFocusVisible:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x"},isDisabled:{true:"_1enn18vc"}},defaultVariants:{},compoundVariants:[]}),BF=j({defaultClassName:"_1enn18vf",variantClassNames:{sortDirection:{ascending:"_1enn18vg",descending:"_1enn18vh"}},defaultVariants:{},compoundVariants:[]}),HF="_1enn18v5",$F="_1enn18v0",jF="_1enn18v1",GF="_1enn18v6",UF="_1enn18v7";var WF=Un.forwardRef(({className:e,style:t,...r},o)=>jsx(kT,{ref:o,className:n=>L(typeof e=="function"?e(n):e,$F,"BaselineUI-Table"),style:t,...r}));WF.displayName="Table";var qF=Un.forwardRef(({className:e,style:t,...r},o)=>jsx(ET,{ref:o,className:n=>L(typeof e=="function"?e(n):e,jF,"BaselineUI-TableHeader"),style:t,...r}));qF.displayName="TableHeader";var XF=Un.forwardRef(({className:e,style:t,children:r,...o},n)=>jsx(zT,{ref:n,className:i=>L(typeof e=="function"?e(i):e,FF({allowsSorting:i.allowsSorting,isFocusVisible:i.isFocusVisible}),"BaselineUI-Column"),style:t,...o,children:i=>jsxs(Fragment,{children:[typeof r=="function"?r(i):r,i.allowsSorting&&i.sortDirection?jsx(CaretDownIcon$1,{className:BF({sortDirection:i.sortDirection}),"aria-hidden":"true"}):null]})}));XF.displayName="Column";var YF=Un.forwardRef(({children:e,className:t,dependencies:r,isLoading:o,items:n,onLoadMore:i,scrollOffset:a,style:l,...s},u)=>{let{formatMessage:c}=fe();return process.env.NODE_ENV!=="production"&&o&&!i&&console.warn("[Baseline UI] TableBody: `isLoading` is set but `onLoadMore` is not provided. The loading spinner will not be displayed. Either provide `onLoadMore` or remove `isLoading`."),jsxs(wT,{ref:u,className:p=>L(typeof t=="function"?t(p):t,HF,"BaselineUI-TableBody"),style:l,...s,children:[n&&typeof e=="function"?jsx(wt,{items:n,dependencies:r,children:e}):typeof e=="function"?null:e,i?jsx(_T,{className:L(GF,"BaselineUI-TableLoadMoreItem"),isLoading:o,onLoadMore:i,scrollOffset:a,children:o?jsx("div",{className:L(UF,"BaselineUI-TableLoadMoreItemContent"),children:jsx(dn,{"aria-label":c(ate.loading),size:"sm"})}):null}):null]})});YF.displayName="TableBody";var ZF=Un.forwardRef(({className:e,style:t,...r},o)=>jsx(RT,{ref:o,className:n=>L(typeof e=="function"?e(n):e,VF({isHovered:n.isHovered,isSelected:n.isSelected,isFocusVisible:n.isFocusVisible,isDisabled:n.isDisabled}),"BaselineUI-Row"),style:t,...r}));ZF.displayName="Row";var JF=Un.forwardRef(({className:e,style:t,...r},o)=>jsx(IT,{ref:o,className:n=>L(typeof e=="function"?e(n):e,NF({isFocusVisible:n.isFocusVisible}),"BaselineUI-Cell"),style:t,...r}));JF.displayName="Cell";var ate=Te({loading:{defaultMessage:"Loading",id:"bui.table.loading"}});function ste(e){let{scrollRef:t,...r}=e;return Ps({ref:t??{current:null},isDisabled:!t}),Na({getItems:o=>[...o].map(n=>({"text/plain":String(n)})),renderDropIndicator(o){return jsx(Po,{target:o,className:({isDropTarget:n})=>L(KF({isDropTarget:n}),"BaselineUI-DropIndicator")})},...r})}var eK="_12qflm1";var tK=Un.forwardRef(({className:e,style:t},r)=>jsx("div",{className:L(eK,"BaselineUI-Skeleton",e),style:t,"aria-hidden":"true",ref:r}));tK.displayName="Skeleton";var rK={"ar-AE":{steplist:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062E\u0637\u0648\u0627\u062A"},"bg-BG":{steplist:"\u0421\u043F\u0438\u0441\u044A\u043A \u0441\u044A\u0441 \u0441\u0442\u044A\u043F\u043A\u0438"},"cs-CZ":{steplist:"Seznam krok\u016F"},"da-DK":{steplist:"Trinliste"},"de-DE":{steplist:"Schrittliste"},"el-GR":{steplist:"\u039B\u03AF\u03C3\u03C4\u03B1 \u03B2\u03B7\u03BC\u03AC\u03C4\u03C9\u03BD"},"en-US":{steplist:"Step List"},"es-ES":{steplist:"Lista de pasos"},"et-EE":{steplist:"Sammude loend"},"fi-FI":{steplist:"Vaiheluettelo"},"fr-FR":{steplist:"Liste des \xE9tapes"},"he-IL":{steplist:"\u05E8\u05E9\u05D9\u05DE\u05EA \u05E6\u05E2\u05D3\u05D9\u05DD"},"hr-HR":{steplist:"Lista koraka"},"hu-HU":{steplist:"L\xE9p\xE9sek list\xE1ja"},"it-IT":{steplist:"Elenco dei passaggi"},"ja-JP":{steplist:"\u624B\u9806\u30EA\u30B9\u30C8"},"ko-KR":{steplist:"\uB2E8\uACC4 \uBAA9\uB85D"},"lt-LT":{steplist:"\u017Dingsni\u0173 s\u0105ra\u0161as"},"lv-LV":{steplist:"Darb\u012Bbu saraksts"},"nb-NO":{steplist:"Trinnliste"},"nl-NL":{steplist:"Stappenlijst"},"pl-PL":{steplist:"Lista krok\xF3w"},"pt-BR":{steplist:"Lista de etapas"},"pt-PT":{steplist:"Lista de passos"},"ro-RO":{steplist:"Lista de pa\u0219i"},"ru-RU":{steplist:"\u0421\u043F\u0438\u0441\u043E\u043A \u0448\u0430\u0433\u043E\u0432"},"sk-SK":{steplist:"Zoznam krokov"},"sl-SI":{steplist:"Seznam korakov"},"sr-SP":{steplist:"Lista koraka"},"sv-SE":{steplist:"Steglista"},"tr-TR":{steplist:"Ad\u0131m Listesi"},"uk-UA":{steplist:"\u0421\u043F\u0438\u0441\u043E\u043A \u043A\u0440\u043E\u043A\u0456\u0432"},"zh-CN":{steplist:"\u6B65\u9AA4\u5217\u8868"},"zh-TW":{steplist:"\u6B65\u9A5F\u6E05\u55AE"}};function E1(e,t,r){let{"aria-label":o}=e,{listProps:n}=pi({...e,...t,allowsTabNavigation:true,ref:r}),i=ve(rK,"@react-aria/steplist");return {listProps:{...{...A(n,re(e,{labelable:true})),"aria-label":o||i.format("steplist")},tabIndex:void 0}}}function z1(e){let t=qf({...e,onSelectionChange:e.onSelectionChange?f=>{f!=null&&e.onSelectionChange?.(f);}:void 0}),[r,o]=ye(e.lastCompletedStep,e.defaultLastCompletedStep??null,e.onLastCompletedStepChange),{setSelectedKey:n,selectedKey:i,collection:a}=t,{indexMap:l,keysLinkedList:s}=useMemo(()=>fte(a),[a]),u=i!=null?l.get(i):0,c=useCallback(f=>f===void 0?false:f!==null&&r!==null&&l.has(f)&&l.has(r)&&l.get(f)<=l.get(r),[l,r]),p=useCallback((f,y)=>{let g=null;if(f&&f.size>0)for(g=f.getFirstKey();g!==f.getLastKey()&&g&&(y.has(g)||c(g));)g=f.getKeyAfter(g);return g},[c]);useEffect(()=>{let f=t.selectedKey;(t.selectionManager.isEmpty||f==null||!t.collection.getItem(f))&&(f=p(t.collection,t.disabledKeys),f!==null&&t.selectionManager.replaceSelection(f)),t.selectionManager.focusedKey==null&&t.selectionManager.setFocusedKey(f);let y=(r!==null?l.get(r):-1)??-1;u!==void 0&&u>0&&u>y+1&&f!==null&&s.has(f)&&o(s.get(f));});function d(f){if(e.isDisabled||t.disabledKeys.has(f)||e.isReadOnly)return false;if(c(f))return true;let y=s.get(f);return c(y)||f===t.collection.getFirstKey()}function m(f){let y=s.get(f);y&&!c(y)&&o(y),n(f);}return {...t,setSelectedKey:m,setLastCompletedStep:o,isCompleted:c,isSelectable:d}}function fte(e){let t=new Map,r=new Map,o=0,n;for(let i of e)t.set(i.key,o),r.set(i.key,n?.key),n=i,o++;return {indexMap:t,keysLinkedList:r}}var nK=j({defaultClassName:"_41r3q2q _1yep5z6jv _1yep5z6jw _1yep5z6jx",variantClassNames:{variant:{condensed:"_41r3q2r _1yep5z617n",expanded:"_41r3q2s _1yep5z6uc _1yep5z6ud _1yep5z6ue _1yep5z6s0 _1yep5z6s1 _1yep5z6s2 _1yep5z6167 _1yep5z6168 _1yep5z6169"},status:{complete:"_1yep5z612i",active:"_41r3q2u",incomplete:"_41r3q2v"}},defaultVariants:{},compoundVariants:[]}),iK=j({defaultClassName:"_1yep5z6ev",variantClassNames:{size:{sm:"_1yep5z6zy",md:"_1yep5z6101"},isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),aK=j({defaultClassName:"_41r3q28 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lz _1yep5z6m1 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6lk",variantClassNames:{size:{sm:"_41r3q29 _1yep5z6zy",md:"_41r3q2a _1yep5z6101"},status:{complete:"_41r3q2b _1yep5z612i _1yep5z6113",active:"_1yep5z6124 _1yep5z610x _1yep5z613a",incomplete:"_1yep5z6124 _1yep5z610x _1yep5z6137"},isDisabled:{true:"_41r3q2e"},isFocusVisible:{true:"_41r3q2f"}},defaultVariants:{},compoundVariants:[[{status:"complete",isDisabled:true},"_41r3q2g _1yep5z61op _1yep5z61n6"],[{status:"active",isDisabled:true},"_1yep5z61o7 _1yep5z61n4 _1yep5z61ph"],[{status:"incomplete",isDisabled:true},"_1yep5z61o7 _1yep5z61n4 _1yep5z61ph"]]}),lK=j({defaultClassName:"_41r3q23 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{variant:{condensed:"_1yep5z617n _1yep5z6vi _1yep5z6vj _1yep5z6vk",expanded:"_41r3q25 _1yep5z6167 _1yep5z6168 _1yep5z6169"},isLast:{true:"_41r3q26"}},defaultVariants:{},compoundVariants:[]}),sK="_41r3q27 _1yep5z60 _1yep5z61 _1yep5z62 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6lp",uK=j({defaultClassName:"_41r3q20 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{condensed:"_1yep5z615m _1yep5z615n _1yep5z615o _1yep5z6vi _1yep5z6vj _1yep5z6vk",expanded:"_1yep5z615g _1yep5z615h _1yep5z615i _1yep5z617q _1yep5z617p _1yep5z6wi _1yep5z6wj _1yep5z6wk"}},defaultVariants:{},compoundVariants:[]}),cK="_41r3q2h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jg _1yep5z6jh _1yep5z6ji _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z69c _1yep5z69d _1yep5z69e",dK=j({defaultClassName:"_1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6101",md:"_1yep5z6104"},isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]});function w1(e,t,r){let{key:o}=e,{selectionManager:n,selectedKey:i}=t,a=!t.isSelectable(o),{itemProps:l}=wr({isDisabled:a,key:o,ref:r,selectionManager:n});return {stepProps:{...l,onKeyDown:c=>{let{key:p}=c;(p==="ArrowDown"||p==="ArrowUp")&&(c.preventDefault(),c.stopPropagation()),l.onKeyDown?.(c);},role:"link","aria-current":i===o?"step":void 0,"aria-disabled":a?true:void 0,tabIndex:a?void 0:0}}}function mK({state:e,item:t,size:r,variant:o,index:n,isLast:i}){let a=useRef(null),l=fe(),{stepProps:s}=w1({key:t.key},e,a),{hoverProps:u,isHovered:c}=ie({}),{focusProps:p,isFocused:d,isFocusVisible:m}=oe(),f=e.isCompleted(t.key),y=e.selectedKey===t.key,g=f?"complete":y?"active":"incomplete",b=e.disabledKeys.has(t.key),x=t["aria-label"],h=!!x&&!t.description,v=o==="expanded"&&!!t.title&&!h,C=o==="expanded"&&!!t.description,T=t.title||l.formatMessage(pK.step,{index:n+1}),P=r==="sm"?CheckmarkIcon$3:CheckmarkIcon$2;return jsxs("li",{className:L("BaselineUI-Stepper-Item",lK({variant:o,isLast:i})),"data-status":g,children:[jsxs("a",{...A(s,u,p),ref:a,"aria-label":x||void 0,className:L("BaselineUI-Stepper-StepLink",sK),"data-status":g,"data-hovered":c||void 0,"data-focused":d||void 0,"data-focus-visible":m||void 0,"data-disabled":b||void 0,children:[jsx("span",{className:L("BaselineUI-Stepper-Indicator",aK({size:r,status:g,isDisabled:b,isFocusVisible:m})),"aria-hidden":"true",children:f?jsx(P,{}):jsx("span",{children:n+1})}),f?jsx(Oe,{children:l.formatMessage(pK.completed)}):null,v?jsxs("span",{className:L("BaselineUI-Stepper-Text",cK),children:[jsx("span",{className:L("BaselineUI-Stepper-Title",dK({size:r,isDisabled:b})),children:t.title}),C?jsx("span",{className:L("BaselineUI-Stepper-Description",iK({size:r,isDisabled:b})),children:t.description}):null]}):x?null:jsx(Oe,{children:T})]}),!i&&jsx("span",{className:L("BaselineUI-Stepper-Connector",nK({variant:o,status:g})),"aria-hidden":"true"})]})}var pK=Te({step:{defaultMessage:"Step {index}",id:"bui.stepper.step"},completed:{defaultMessage:"Completed",id:"bui.stepper.completed"}});var fK=Un.forwardRef(function(t,r){let{items:o,variant:n="expanded",size:i="md",selectedStep:a,defaultSelectedStep:l,onSelectionChange:s,lastCompletedStep:u,defaultLastCompletedStep:c,onLastCompletedStepChange:p,isDisabled:d,className:m,style:f,"aria-label":y}=t,g=fe(),b=useMemo(()=>new Set(o.filter(P=>P.isDisabled).map(P=>P.key)),[o]),x=useMemo(()=>o.map(P=>jsx(uo,{textValue:P.title??String(P.key),children:P.title??""},P.key)),[o]),h=useMemo(()=>new Map(o.map(P=>[P.key,P])),[o]),v=z1({children:x,selectedKey:a,defaultSelectedKey:l,onSelectionChange:s,lastCompletedStep:u,defaultLastCompletedStep:c,onLastCompletedStepChange:p,disabledKeys:b,isDisabled:d}),C=ce(r),{listProps:T}=E1({children:x,"aria-label":y||g.formatMessage(vte.label)},v,C);return jsx("ol",{...T,ref:C,className:L("BaselineUI-Stepper",uK({variant:n}),m),style:f,"data-variant":n,"data-size":i,children:[...v.collection].map((P,k,S)=>{let w=h.get(P.key);return w?jsx(mK,{state:v,item:w,size:i,variant:n,index:k,isLast:k===S.length-1},P.key):null})})});fK.displayName="Stepper";var vte=Te({label:{defaultMessage:"Progress",id:"bui.stepper.label"}});var yK="_1x35j5g0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln _1yep5z6lq",bK=j({defaultClassName:"_1x35j5g1 _1yep5z68f _1yep5z68g _1yep5z68h _1yep5z663 _1yep5z664 _1yep5z665 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1x35j5g2"},isError:{true:"_1x35j5g3"},isDisabled:{true:"_1x35j5g4"}},defaultVariants:{},compoundVariants:[]}),gK="_1x35j5g5 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ln",hK=j({defaultClassName:"_1x35j5g7 _1yep5z6dy _1yep5z6eu",variantClassNames:{isLoading:{true:"_1yep5z610z"}},defaultVariants:{},compoundVariants:[]}),vK="_1yep5z64r _1yep5z64s _1yep5z64t _1yep5z673 _1yep5z674 _1yep5z675 _1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",xK="_1x35j5g6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jg _1yep5z6jh _1yep5z6ji _1yep5z6kd _1yep5z6ke _1yep5z6kf";var Pte=sprinkles({color:"icon.secondary"}),Ste=sprinkles({color:"support.error.medium"});function Dte({item:e,isFocusVisible:t,isDisabled:r,onRemove:o}){let{formatMessage:n}=fe(),i=!!e.isLoading,a=!!(e.errorMessage||e.errorExplanation),l=!r&&!i&&!!o,s=n(TK.loading,{fileName:e.name}),u=e.name;return i?u=s:l&&(u=n(TK.removeHint,{fileName:e.name})),jsxs("div",{className:bK({isDisabled:r,isFocusVisible:t,isError:a}),"data-error":a||void 0,children:[jsx(Oe,{children:jsx(ii,{slot:"label",children:u})}),jsxs("div",{className:gK,children:[jsx(AttachmentsIcon,{width:16,height:16,className:Pte}),jsx("span",{className:xK,children:jsx("span",{className:hK({isLoading:i}),title:e.name,children:e.name})}),jsxs(Z,{elementType:"span",display:"flex",alignItems:"center",gap:"xs",flexShrink:0,children:[a?jsx(ErrorCircleFilledIcon,{width:16,height:16,className:Ste}):null,i?jsx(dn,{size:"sm",className:vK,"aria-label":s}):o?jsx(pe,{icon:MinusIcon$1,size:"xs",variant:"secondary",excludeFromTabOrder:true,preventFocusOnPress:true,isDisabled:r,onPress:()=>{o(e.id);},UNSAFE_isVisuallyInteractiveOnly:true}):null]})]}),a?jsxs(Z,{display:"flex",flexDirection:"column",width:"full",paddingY:"md",children:[e.errorMessage?jsx(Z,{elementType:"span",typography:"label.sm.medium",color:"support.error.medium",children:e.errorMessage}):null,e.errorExplanation?jsx(Z,{elementType:"span",typography:"label.sm.medium",color:"text.helper",children:e.errorExplanation}):null]}):null]})}var PK=Un.forwardRef(({className:e,style:t,items:r,onRemove:o,disabledKeys:n,"aria-label":i,"aria-labelledby":a,"aria-describedby":l,"aria-details":s},u)=>{let c=n==="all",p=Un.useMemo(()=>new Set(n&&n!=="all"?n:[]),[n]),d=Un.useMemo(()=>new Map(r.map(b=>[b.id,b])),[r]),m=Un.useMemo(()=>r.map(b=>({id:b.id,label:b.name})),[r]),f=Un.useCallback((b,{isFocusVisible:x})=>{let h=d.get(b.id);return h?jsx(Dte,{item:h,isFocusVisible:x,isDisabled:c||p.has(h.id),onRemove:o}):null},[d,c,p,o]);if(!r.length)return null;let y=c?m.map(b=>b.id):p,g=b=>{if(!o||b.key!=="Delete"&&b.key!=="Backspace"||c)return;let v=$(b)?.closest("[data-key]")?.dataset.key;v&&(p.has(v)||d.get(v)?.isLoading||(b.preventDefault(),o(v)));};return jsx(Z,{ref:u,className:L("BaselineUI-FileList",e),style:t,onKeyDown:g,children:jsx(un,{"aria-label":i,"aria-labelledby":a,"aria-describedby":l,"aria-details":s,items:m,selectionMode:"none",disabledKeys:y,className:yK,renderOption:f})})});PK.displayName="FileList";var TK=Te({loading:{id:"bui.fileList.loading",defaultMessage:"Loading {fileName}"},removeHint:{id:"bui.fileList.removeHint",defaultMessage:"{fileName}, press Delete or Backspace to remove"}});var SK="_1yep5z6dv _1yep5z6ew",DK=j({defaultClassName:"_12y0zas5 _1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ln _1yep5z6dy _1yep5z6f1",variantClassNames:{isDisabled:{true:"_12y0zas6 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),kK=j({defaultClassName:"_12y0zas0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln _1yep5z6g3",variantClassNames:{isInline:{true:"_1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq _1yep5z6183 _1yep5z6184 _1yep5z6138"},isDropTarget:{true:"_1yep5z612e"},isError:{true:"_1yep5z6182 _1yep5z6185 _1yep5z612q"},isDisabled:{true:"_1yep5z6182 _1yep5z6184 _1yep5z613e"}},defaultVariants:{},compoundVariants:[[{isInline:true,isError:true},"_1yep5z61u6 _1yep5z61u8 _1yep5z61ot"]]}),EK=j({defaultClassName:"_12y0zas7 _1yep5z6f6",variantClassNames:{isDisabled:{true:"_1yep5z611a"}},defaultVariants:{},compoundVariants:[]}),zK="_1yep5z6dv _1yep5z6ee",wK="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",RK="_1yep5z6dy _1yep5z6ev",IK="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ln";var kte="Drop files here or click to upload",Ete="Upload",MK=Un.forwardRef(({className:e,style:t,variant:r="dropzone",isInline:o=false,label:n,description:i,onAdd:a,accept:l,allowsMultiple:s=true,isDisabled:u,errorMessage:c,buttonLabel:p=Ete,dropzoneLabel:d=kte},m)=>{let f=Un.useId(),y=Un.useId(),g=Un.useId(),b=Un.useRef(null),x=Un.useCallback(E=>{if(!E.length)return;let R=s?E:E.slice(0,1);a?.(R);},[s,a]),h=E=>{E&&x([...E]);},{dropProps:v,isDropTarget:C}=za({ref:b,onDrop:async E=>{x(await Cs({items:E.items,accept:l}));}}),{clipboardProps:T}=Lc({isDisabled:u,onPaste:async E=>{x(await Cs({items:E,accept:l}));}}),P=[i?y:null,c?g:null].filter(Boolean).join(" ")||void 0,k=n||i?jsxs("div",{className:wK,children:[n?jsx("div",{id:f,className:RK,children:n}):null,i?jsx("div",{id:y,className:SK,children:i}):null]}):null,S=r==="dropzone"?jsx(Jl,{acceptedFileTypes:l?[l]:void 0,allowsMultiple:s,onSelect:h,children:jsx(vs,{isDisabled:u,children:jsx("div",{ref:b,...A(u?{}:v,T),role:"button",tabIndex:u?-1:0,"aria-labelledby":n?f:void 0,"aria-describedby":P,"aria-disabled":u||void 0,"data-testid":"file-uploader-dropzone",className:kK({isInline:o,isDropTarget:C,isDisabled:u,isError:!!c}),children:jsxs("div",{className:DK({isDisabled:u}),children:[jsx(UploadIcon,{width:20,height:20,className:EK({isDisabled:u})}),jsx("span",{children:d})]})})})}):jsx(Jl,{acceptedFileTypes:l?[l]:void 0,allowsMultiple:s,onSelect:h,children:jsx(Me,{variant:"primary",iconStart:UploadIcon,label:p,isDisabled:u,"aria-describedby":P})}),w=c?jsx(Z,{id:g,elementType:"span",role:"alert",className:zK,children:c}):null;return jsxs("div",{ref:m,className:L(IK,"BaselineUI-FileUploader",e),style:t,"data-variant":r,"data-testid":"file-uploader",children:[k,S,w]})});MK.displayName="FileUploader";Cp();var LK={};N1(LK,{useButton:()=>dt,useFocusManager:()=>_l,useFocusWithin:()=>lt,useTextField:()=>Hr});var AK={};N1(AK,{useListData:()=>dy,useTreeData:()=>gC});
|
|
43
|
-
export{DA as Accordion,zA as AccordionItem,Me as ActionButton,QO as ActionGroup,WJ as ActionGroupItem,pe as ActionIconButton,LF as Actionable,Ng as AlertDialog,tO as AudioPlayer,gh as Autocomplete,Us as Avatar,Z as Box,_O as ButtonSelect,Gb as Calendar,JF as Cell,aA as Checkbox,bF as Code,Xs as ColorInput,_i as ColorSwatch,oN as ColorSwatchPicker,XF as Column,GO as ComboBox,PN as DateField,fA as DateFormat,Dy as DefaultListOption,C9 as DeviceProvider,Uy as DeviceProviderContext,Lr as Dialog,tM as DialogTitle,RF as Disclosure,yI as DomNodeRenderer,nb as Drawer,Rg as EMPTY_SELECTION_STATE,L0 as Editor,lp as EditorCore,RS as EditorProvider,JM as FileInput,PK as FileList,MK as FileUploader,Et as FocusScope,hl as Focusable,A9 as FrameProvider,K5 as FreehandCanvas,xN as GlobalToastRegion,xs as GridLayout,YO as GridList,n6 as Group,t_ as I18nProvider,UQ as Icon,I5 as IconColorInput,og as IconColorInputButton,WL as IconSelect,mM as IconSlider,j5 as ImageDropZone,SO as ImageGallery,qb as InlineAlert,OF as Kbd,WM as Link,on as ListBox,en as ListLayout,Ld as LocaleAwareGridLayout,U0 as Markdown,xb as Menu,o6 as MessageFormat,ln as Modal,gX as ModalClose,sn as ModalContent,ng as ModalTrigger,Ns as NumberFormat,Nn as NumberInput,mA as Pagination,SQ as Panel,_Q as PanelGroup,LQ as PanelResizeHandle,RN as PointPicker,eF as PointPickerContent,uF as PointPickerDisplay,Io as Popover,Pt as PopoverContent,_o as PopoverTrigger,Mr as Portal,Wy as PortalContainerProvider,vs as Pressable,q5 as Preview,lL as ProgressBar,dn as ProgressSpinner,rUe as REACT_ARIA_INCOMPATIBLE_KEYS,r6 as RadioGroup,nA as RangeCalendar,bL as Reaction,ZF as Row,K0 as ScrollControlButton,mb as SearchInput,po as Select,De as Separator,Ie as Size,tK as Skeleton,Rs as Slider,Jg as StatusCard,fK as Stepper,CM as Switch,HA as TabItem,WF as Table,YF as TableBody,qF as TableHeader,cs as TableLayout,BA as Tabs,Ob as Tag,Nb as TagGroup,wN as TaggedPagination,Ye as Text,wi as TextInput,eb as ThemeProvider,aN as TimeField,Yf as ToastQueue,Db as ToggleButton,Wr as ToggleIconButton,mg as Toolbar,tt as Tooltip,mN as TreeView,un as UNSAFE_ListBox,LK as UNSAFE_aria,AK as UNSAFE_stately,qL as VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS,uy as Virtualizer,Oe as VisuallyHidden,qc as WaterfallLayout,ot as announce,Ti as areColorsEqual,vC as booleanOrObjectToConfig,wGe as calculateFontSizeToFitWidth,RR as capitalize,Ut as clamp,L as classNames,zR as cleanKeyFromGlobImport,om as clearAnnouncer,Te as defineMessages,JD as destroyAnnouncer,Ts as devWarnOnce,WC as directionVar,Y7e as disableAnimations,Z7e as enableAnimations,re as filterDOMProps,he as filterTruthyValues,kR as findFocusableElements,my as getAbsoluteBounds,IGe as getAbsolutePosition,Jc as getActiveElement,zGe as getHTMLElement,by as getOsSpecificKeyboardShortcutLabel,G as getOwnerDocument,IR as getPlainText,yy as getSvgPathFromStroke,py as getTextDimensions,k0 as handleEditorShortcut,Wee as iconMap,ge as invariant,RGe as isFocusableElement,JGe as isInIframe,_R as isInShadowDOM,ER as isInputThatOpensKeyboard,CGe as isInsideOverlayContent,SR as isRect,TC as isUrl,r_ as legacyMessageIdMap,jGe as lightenColor,A as mergeProps,se as mergeRefs,i4e as messageIds,Cs as onDropOrPaste,_e as parseColor,LR as safeSpreadProps,Qt as useCollator,Rt as useDateFormatter,Pi as useDevice,F7 as useDragAndDrop,wS as useEditable,ES as useEditor,$n as useEditorContext,yi as useFilter,oe as useFocusRing,q1 as useFocusVisible,L9 as useFrameDimensions,fe as useI18n,ee as useId,Oy as useImage,Yt as useInteractionModality,vI as useIntersectionObserver,Ny as useIsFirstRender,Le as useKeyboard,dy as useListData,Xy as useLiveInteractionModality,a_ as useLocalStorage,Q as useLocale,b4e as useMutationObserver,To as useNumberFormatter,ce as useObjectRef,Fee as usePointProximity,pr as usePortalContainer,Yy as usePreventFocus,Ay as useResizeObserver,ste as useTableDragAndDrop,P4e as useTextSelection,TI as useUndoRedo,qC as useUserPreferences};
|
|
1
|
+
export{a as isInsideOverlayContent}from'./chunk-A6ZQQSAX.mjs';export{a as isInIframe}from'./chunk-IB23KCIW.mjs';export{a as useMutationObserver}from'./chunk-ZLAY7NNY.mjs';export{a as TreeView}from'./chunk-R32OJDN2.mjs';export{a as UNSAFE_aria}from'./chunk-AGYQLGBZ.mjs';export{c as UNSAFE_stately,a as useListData}from'./chunk-INDVRI57.mjs';export{a as TimeField}from'./chunk-CSPZMYVG.mjs';export{b as GlobalToastRegion,a as ToastQueue}from'./chunk-7AQAC6QK.mjs';export{a as Stepper}from'./chunk-PBO4SFGS.mjs';export{a as Switch}from'./chunk-XB657BXX.mjs';export{f as Cell,c as Column,e as Row,a as Table,d as TableBody,b as TableHeader,g as useTableDragAndDrop}from'./chunk-MIHIAPBG.mjs';export{b as TabItem,a as Tabs}from'./chunk-ZRWDMNNY.mjs';import'./chunk-TJEK54BW.mjs';export{a as TaggedPagination}from'./chunk-CFDKFUTO.mjs';export{a as RadioGroup}from'./chunk-XJGQXVMR.mjs';export{a as Reaction}from'./chunk-3CWP2VCB.mjs';import'./chunk-CHTLOFCT.mjs';export{a as ScrollControlButton}from'./chunk-YT36W3OS.mjs';export{a as Skeleton}from'./chunk-F2HESRBD.mjs';export{a as Panel,b as PanelGroup,c as PanelResizeHandle}from'./chunk-LQMEFFFM.mjs';export{a as PointPicker,b as PointPickerContent,c as PointPickerDisplay,d as usePointProximity}from'./chunk-QNBBJ5HC.mjs';export{a as clamp}from'./chunk-JBXZ6ZHP.mjs';export{a as usePreventFocus}from'./chunk-63KRQW56.mjs';export{a as useLiveInteractionModality}from'./chunk-UCNHDT36.mjs';export{a as Preview}from'./chunk-ZVODDLGL.mjs';export{a as ProgressBar}from'./chunk-44OUOGJ4.mjs';export{a as Markdown}from'./chunk-VXB5SVQC.mjs';export{a as MessageFormat}from'./chunk-H7OUUCSA.mjs';export{a as Pagination}from'./chunk-VTX6R6KM.mjs';export{a as NumberFormat}from'./chunk-DRYSJSKA.mjs';export{a as Icon}from'./chunk-CAWUDHAE.mjs';export{a as ImageDropZone}from'./chunk-U4K44ZHN.mjs';export{a as ImageGallery}from'./chunk-O4VZ6XEP.mjs';import'./chunk-CWPFUB7B.mjs';export{a as useImage}from'./chunk-NV7KQVPE.mjs';export{a as InlineAlert}from'./chunk-YGSCHWU3.mjs';export{a as useTextSelection}from'./chunk-TO2TQ2LE.mjs';export{a as Kbd}from'./chunk-P5GO3XIS.mjs';export{a as Link}from'./chunk-C5P23FUW.mjs';export{c as EMPTY_SELECTION_STATE,h as Editor,a as EditorCore,g as EditorProvider,e as handleEditorShortcut,f as useEditable,d as useEditor,b as useEditorContext}from'./chunk-XZ2VSOJD.mjs';export{a as isUrl}from'./chunk-JI4SJ53O.mjs';export{b as areColorsEqual,a as lightenColor}from'./chunk-GKODQS6E.mjs';export{a as Toolbar}from'./chunk-P44XZ4PV.mjs';export{a as capitalize,b as getPlainText}from'./chunk-HI44JQA7.mjs';export{a as Menu}from'./chunk-TI5RR7KX.mjs';import'./chunk-A24DWFQ2.mjs';export{a as getOsSpecificKeyboardShortcutLabel}from'./chunk-3UH5CQQF.mjs';import'./chunk-IHLJTHGQ.mjs';export{a as FileInput}from'./chunk-E6VOSF6Z.mjs';export{a as FileList}from'./chunk-X7DI4I2U.mjs';export{a as ProgressSpinner}from'./chunk-YCI6BEXQ.mjs';import'./chunk-LZFTBNPW.mjs';export{a as FileUploader}from'./chunk-ZREX7XOO.mjs';import'./chunk-TKQOQVZD.mjs';export{a as onDropOrPaste}from'./chunk-TAYP2OGC.mjs';import'./chunk-IVVZSESM.mjs';import'./chunk-MZ4O6LWG.mjs';export{a as FreehandCanvas}from'./chunk-HHI7CEUP.mjs';export{a as getSvgPathFromStroke}from'./chunk-5HXTXIE5.mjs';export{a as useUndoRedo}from'./chunk-MI7DCFP2.mjs';import'./chunk-ELXWR5TS.mjs';import'./chunk-ROHLZINC.mjs';export{a as GridList}from'./chunk-TAROK7TO.mjs';import'./chunk-TEQE6WCH.mjs';import'./chunk-AMQX3KZR.mjs';export{a as Group}from'./chunk-YIGT3OP2.mjs';export{a as ComboBox}from'./chunk-HBBRMEES.mjs';import'./chunk-DOL6RDMF.mjs';export{a as devWarnOnce}from'./chunk-5IC46G5J.mjs';import'./chunk-VCIX4HG7.mjs';export{a as DateField}from'./chunk-FRZTJBLY.mjs';import'./chunk-KG5PDPBK.mjs';export{a as DateFormat}from'./chunk-HT55YHTN.mjs';import'./chunk-O57ZEY3V.mjs';export{a as Disclosure}from'./chunk-WSCZ34XO.mjs';export{b as StatusCard,a as iconMap}from'./chunk-5ODZPQL2.mjs';export{a as DomNodeRenderer}from'./chunk-D5EEZT5J.mjs';export{a as ButtonSelect}from'./chunk-BTVDMO5C.mjs';export{b as ToggleButton}from'./chunk-77BAFSDX.mjs';export{a as Calendar,b as RangeCalendar}from'./chunk-J5YWAPLN.mjs';export{e as GridLayout,b as ListLayout,g as LocaleAwareGridLayout,a as Size,f as TableLayout,h as VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS,d as Virtualizer,c as WaterfallLayout}from'./chunk-TO6OQF2Y.mjs';import'./chunk-N7MTFSWR.mjs';import'./chunk-GXOXYPQQ.mjs';import'./chunk-ENDOKA57.mjs';import'./chunk-UTQ7AIPM.mjs';export{a as Checkbox}from'./chunk-XVBOKL6D.mjs';import'./chunk-ZNN43VZV.mjs';import'./chunk-EA6GA4WC.mjs';import'./chunk-WAOWR7MR.mjs';export{a as Code}from'./chunk-HLDCVJXD.mjs';export{b as ColorInput,c as IconColorInput,a as IconColorInputButton}from'./chunk-OLJWK3LS.mjs';export{a as useLocalStorage}from'./chunk-FTYXFTJV.mjs';export{b as ModalClose,a as ModalTrigger}from'./chunk-DIHILOKU.mjs';export{d as IconSelect,c as Select}from'./chunk-TBSQUJ67.mjs';export{a as TagGroup}from'./chunk-VLQ4S7XC.mjs';export{d as Tag}from'./chunk-VHDXSFQC.mjs';import'./chunk-5ULL6IBX.mjs';export{a as SearchInput}from'./chunk-VG7J427T.mjs';import'./chunk-6F66XVOA.mjs';import'./chunk-EK3RIYMV.mjs';import'./chunk-MXKP7NQ4.mjs';import'./chunk-RC7QITNV.mjs';import'./chunk-NO55UIGK.mjs';export{a as useFilter}from'./chunk-5BAHJXOI.mjs';export{a as useDragAndDrop}from'./chunk-BED7T5CL.mjs';import'./chunk-UCZZLAPB.mjs';export{q as UNSAFE_ListBox}from'./chunk-7AY6C5M5.mjs';import'./chunk-AMYRLAIC.mjs';import'./chunk-E3PFPOHX.mjs';import'./chunk-WSQGB4ZE.mjs';import'./chunk-SMAYNDQQ.mjs';import'./chunk-AMW7LGCF.mjs';export{d as Autocomplete}from'./chunk-KKJ6XIU3.mjs';import'./chunk-BLHN7I5Z.mjs';import'./chunk-BKDQLDOK.mjs';export{a as ColorSwatchPicker}from'./chunk-2CZ3OV4X.mjs';export{a as DefaultListOption,c as ListBox}from'./chunk-RJC3HQDZ.mjs';import'./chunk-WOVAT6U4.mjs';export{a as isInShadowDOM}from'./chunk-GEZGEZAP.mjs';import'./chunk-FJ2JRD3H.mjs';import'./chunk-O66FNQSB.mjs';import'./chunk-AZRPXTYJ.mjs';import'./chunk-YVYMYKYN.mjs';import'./chunk-3HKG74G4.mjs';import'./chunk-J7K7I5U2.mjs';import'./chunk-246VHB32.mjs';import'./chunk-OC42IZG2.mjs';import'./chunk-OMT6ZWSV.mjs';import'./chunk-ILBAZFBL.mjs';export{I as ColorSwatch}from'./chunk-566SP7NE.mjs';export{a as parseColor}from'./chunk-EU75HMPG.mjs';export{a as Accordion,b as AccordionItem}from'./chunk-HWOMGFBL.mjs';export{a as REACT_ARIA_INCOMPATIBLE_KEYS,b as safeSpreadProps}from'./chunk-Q5UMLFN3.mjs';export{a as ActionGroup,b as ActionGroupItem}from'./chunk-EMCEJKBJ.mjs';import'./chunk-6ZV4UYEG.mjs';import'./chunk-NGZRN4SF.mjs';import'./chunk-J4NO4WYU.mjs';import'./chunk-PAQQ7MQG.mjs';import'./chunk-DECHIERQ.mjs';export{a as Actionable}from'./chunk-U2ODAIZG.mjs';export{a as AlertDialog}from'./chunk-H44PBNVX.mjs';import'./chunk-4SW77SGW.mjs';export{a as TextInput}from'./chunk-RJWPSJX2.mjs';import'./chunk-2PH5GN2S.mjs';import'./chunk-2JANDORZ.mjs';import'./chunk-2MS356Q7.mjs';export{a as AudioPlayer}from'./chunk-NA3IF43N.mjs';import'./chunk-IYFTU6IC.mjs';export{b as IconSlider,a as Slider}from'./chunk-7ZYMMUDM.mjs';export{a as ToggleIconButton}from'./chunk-YOBESAXG.mjs';import'./chunk-CFLEBB5T.mjs';import'./chunk-MUNFBB7D.mjs';export{a as NumberInput}from'./chunk-IUQOFRI3.mjs';import'./chunk-KY3JKXSX.mjs';import'./chunk-WAFYFWH4.mjs';import'./chunk-Y6XQJ4X2.mjs';export{a as PopoverContent}from'./chunk-MEYMETYC.mjs';import'./chunk-MFH2E2GU.mjs';import'./chunk-6XARU7F2.mjs';import'./chunk-KCHAWPUN.mjs';import'./chunk-BJVFZYUV.mjs';import'./chunk-5KD2MNNX.mjs';import'./chunk-UQJGSVXP.mjs';import'./chunk-RFTDIXEG.mjs';export{a as Dialog,b as DialogTitle}from'./chunk-S3V4OOC3.mjs';export{a as Drawer}from'./chunk-N5RZGO7Y.mjs';import'./chunk-J7EAQSKX.mjs';import'./chunk-IW4GXU75.mjs';export{b as Modal,e as ModalContent}from'./chunk-PHZZLBH3.mjs';import'./chunk-JQ4ZGZPV.mjs';export{c as calculateFontSizeToFitWidth,e as findFocusableElements,h as getAbsoluteBounds,i as getAbsolutePosition,f as getActiveElement,a as getHTMLElement,b as getTextDimensions,d as isFocusableElement,g as isInputThatOpensKeyboard}from'./chunk-AKES5B6C.mjs';import'./chunk-OAY74XPB.mjs';export{a as Text}from'./chunk-2WAKHFPS.mjs';import'./chunk-F2X474RV.mjs';import'./chunk-5ANNWMLJ.mjs';export{a as Separator}from'./chunk-NSC53QWT.mjs';import'./chunk-CPSUI4IW.mjs';import'./chunk-AC7OXVHA.mjs';import'./chunk-EX2LI2CV.mjs';import'./chunk-SAZLJ66W.mjs';import'./chunk-ZANUFNOL.mjs';import'./chunk-CGFLGZL4.mjs';export{a as createMessageFormatter,c as defineMessages,b as useI18n}from'./chunk-X3OCHEQM.mjs';export{a as cleanKeyFromGlobImport}from'./chunk-XXANV3FM.mjs';export{b as legacyMessageIdMap,a as messageIds}from'./chunk-F7PGMOQF.mjs';import'./chunk-K6IQ4ALU.mjs';import'./chunk-M5M3EPG5.mjs';import'./chunk-W6QO7FPZ.mjs';export{b as ActionButton}from'./chunk-J3MJZQUJ.mjs';import'./chunk-EZXMEGV7.mjs';export{a as Box}from'./chunk-O7XK2WIX.mjs';export{a as ActionIconButton}from'./chunk-GCZFXILF.mjs';export{a as Tooltip}from'./chunk-MEZNZ5W6.mjs';export{a as useIntersectionObserver}from'./chunk-TIHKHXTS.mjs';import'./chunk-FP5EWPOF.mjs';export{a as useResizeObserver}from'./chunk-TK4QXU3W.mjs';import'./chunk-6YQHZ5RZ.mjs';import'./chunk-DY6WY36N.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-THRAJMLX.mjs';export{a as Portal}from'./chunk-MLNPTVVX.mjs';export{a as usePortalContainer}from'./chunk-YV3WI6OV.mjs';import'./chunk-V3L4SVVF.mjs';export{f as MotionGlobalConfig,c as ThemeProvider,d as disableAnimations,e as enableAnimations,a as useUserPreferences}from'./chunk-JUXBZ2ZN.mjs';import'./chunk-JJPCZOOI.mjs';export{a as directionVar}from'./chunk-2UUKKXBD.mjs';import'./chunk-PZTVDABF.mjs';import'./chunk-NRKHWSOP.mjs';export{d as I18nProvider}from'./chunk-GFLVN5JQ.mjs';export{a as useNumberFormatter}from'./chunk-AV4ZP5SY.mjs';import'./chunk-KPEONVLU.mjs';export{c as FrameProvider,a as useFrameDimensions}from'./chunk-QMDDCVAF.mjs';export{a as useIsFirstRender}from'./chunk-DD5FWULD.mjs';export{a as useDevice}from'./chunk-ZGRRD3TU.mjs';import'./chunk-6Z6HOW6T.mjs';import'./chunk-TDXALNX3.mjs';import'./chunk-XBBPWSJI.mjs';import'./chunk-7PRJIPFA.mjs';export{b as PortalContainerProvider}from'./chunk-OO7BXL2N.mjs';export{a as Pressable}from'./chunk-WWSGOGLA.mjs';import'./chunk-34TYNTXM.mjs';import'./chunk-I3YGB2BE.mjs';export{a as FocusScope}from'./chunk-KUEDQO7P.mjs';export{a as useCollator}from'./chunk-USMC34OO.mjs';import'./chunk-NHM3H5JU.mjs';import'./chunk-WL27JGVG.mjs';import'./chunk-2RCST7ET.mjs';import'./chunk-BU5H25MV.mjs';import'./chunk-QAUEG3EX.mjs';export{a as useDateFormatter}from'./chunk-CV6JQGJ3.mjs';export{b as useLocale}from'./chunk-N2XGJKZG.mjs';export{b as DeviceProvider,a as DeviceProviderContext}from'./chunk-22BJMDCA.mjs';import'./chunk-6IX6BM7C.mjs';export{b as VisuallyHidden}from'./chunk-4ZJMZB5B.mjs';import'./chunk-4N6CLPAY.mjs';import'./chunk-FKYHERP4.mjs';import'./chunk-PBFIKNYZ.mjs';import'./chunk-RCBUNCHV.mjs';import'./chunk-5YHNHEDK.mjs';export{b as Popover,j as PopoverTrigger}from'./chunk-4NYPVKDO.mjs';export{a as isRect}from'./chunk-ZLDT2KDZ.mjs';import'./chunk-UUBOEBYZ.mjs';import'./chunk-C342HL26.mjs';import'./chunk-C6OMLVIQ.mjs';import'./chunk-B7PSE5KC.mjs';import'./chunk-VDUFLHKK.mjs';import'./chunk-4PYEGHW5.mjs';import'./chunk-HONWMHMX.mjs';export{a as announce,b as clearAnnouncer,c as destroyAnnouncer}from'./chunk-JJG67M2S.mjs';export{a as invariant}from'./chunk-66CUIXA6.mjs';import'./chunk-6ZFBX7C7.mjs';import'./chunk-PF3OQKXP.mjs';import'./chunk-6IRWW75G.mjs';import'./chunk-MVK5CB64.mjs';import'./chunk-XWLESSHN.mjs';import'./chunk-XTH6B5FE.mjs';import'./chunk-GOSLHCDP.mjs';import'./chunk-CFRTAJP2.mjs';import'./chunk-2VY4FAOY.mjs';import'./chunk-D3IZ4HBL.mjs';import'./chunk-I3RGYL4B.mjs';import'./chunk-RXSYDMT6.mjs';import'./chunk-YV5CNDCW.mjs';import'./chunk-X3AXUU3H.mjs';import'./chunk-5PQHOVGX.mjs';import'./chunk-AGUSZG6K.mjs';import'./chunk-545KDVGI.mjs';import'./chunk-YS3Y5KGV.mjs';export{b as booleanOrObjectToConfig,a as filterTruthyValues}from'./chunk-RSKKEGJZ.mjs';export{a as useFocusRing}from'./chunk-K6X2BHPP.mjs';export{e as Focusable,a as useKeyboard}from'./chunk-BGMVPFYK.mjs';import'./chunk-YB3KW7JC.mjs';export{g as useFocusVisible,f as useInteractionModality}from'./chunk-Y4DRSGEJ.mjs';import'./chunk-3FYY26ED.mjs';import'./chunk-AQYBKDT2.mjs';import'./chunk-66NJ7EYY.mjs';import'./chunk-4WW2MVQN.mjs';import'./chunk-54IAJ3RI.mjs';export{a as useObjectRef}from'./chunk-RT4LMB6X.mjs';import'./chunk-3W6RWDIE.mjs';import'./chunk-MRJFGHFW.mjs';export{c as mergeProps,b as mergeRefs}from'./chunk-TZ4MVY4E.mjs';export{a as filterDOMProps}from'./chunk-KEVERVHK.mjs';export{c as useId}from'./chunk-JDLUGVXG.mjs';import'./chunk-6ZQE5SHE.mjs';export{a as getOwnerDocument}from'./chunk-AUOQSTS5.mjs';import'./chunk-RMUV6NJJ.mjs';export{a as Avatar}from'./chunk-HXTAOYOD.mjs';import'./chunk-FXCHST4Z.mjs';export{a as classNames}from'./chunk-4QEH5CGK.mjs';import'./chunk-XPISSX5R.mjs';
|